Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.atls.hyperion.sample

import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import com.atls.hyperion.storybook.fragments.storybook.Storybook
import com.atls.hyperion.ui.components.avatar.stories.AvatarStory
Expand All @@ -25,10 +24,11 @@ import com.atls.hyperion.ui.fragments.datepicker.stories.DatePickerStory
import com.atls.hyperion.ui.fragments.datepicker.stories.DateRangePickerStory
import com.atls.hyperion.ui.primitives.stories.LinkStory
import com.atls.hyperion.ui.primitives.stories.TextStory
import com.atls.hyperion.ui.theme.Theme

@Composable
fun App() {
MaterialTheme {
Theme {
Storybook(
components = listOf(
AvatarStory(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This is the official list of project authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS.txt file.
# See the latter for an explanation.
#
# Names should be added to this file as:
# Name or Organization <email address>

Google LLC
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Copyright 2024 Font Detective LLC <https://github.com/googlefonts/science-gothic/OFL.txt>

This Font Software is licensed under the SIL Open Font License, Version 1.1,
with no Reserved Font Name.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org/

ADDITIONAL non-font source files are licensed to others under the Apache 2.0 open source license (https://www.apache.org/licenses/LICENSE-2.0).

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.atls.hyperion.ui.components.avatar.styles.appearance

import androidx.compose.runtime.Composable
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

@Composable
fun AvatarAppearance.Companion.default(): AvatarAppearance =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.atls.hyperion.ui.components.bottomBar.styles.appearance

import com.atls.hyperion.ui.theme.tokens.effects.Alpha
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

fun BottomBarAppearance.Companion.primary(): BottomBarAppearance =
BottomBarAppearance(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.atls.hyperion.ui.theme.tokens.layout.Elevation
import com.atls.hyperion.ui.theme.tokens.layout.Space
import com.atls.hyperion.ui.theme.typography.FontSize
import com.atls.hyperion.ui.theme.typography.FontWeight
import com.atls.hyperion.ui.theme.typography.NunitoSansFontFamily
import com.atls.hyperion.ui.theme.typography.fontFamilies.NunitoSansFontFamily

@Composable
fun BottomBarShape.WithLabel.Companion.default() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import com.atls.hyperion.ui.components.button.styles.shape.ButtonShape
import com.atls.hyperion.ui.shared.addon.AddonPosition
import com.atls.hyperion.ui.shared.addon.AddonSlotManager
import com.atls.hyperion.ui.theme.tokens.layout.Elevation
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

@OptIn(ExperimentalMaterialApi::class)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.atls.hyperion.ui.components.button.styles.appearance

import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

sealed class Colors(
val textColor: Color,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
package com.atls.hyperion.ui.components.button.styles.appearance

import com.atls.hyperion.ui.theme.tokens.colors.Colors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors
import com.atls.hyperion.ui.components.button.styles.appearance.Colors as ButtonColors

fun ButtonAppearance.Companion.blue(): ButtonAppearance =
ButtonAppearance(
default = ButtonColors.Solid(
backgroundColor = Colors.Button.Blue.Default.background,
textColor = Colors.Button.Blue.Default.font,
borderColor = Colors.Button.Blue.Default.border
backgroundColor = LegacyColors.Button.Blue.Default.background,
textColor = LegacyColors.Button.Blue.Default.font,
borderColor = LegacyColors.Button.Blue.Default.border
),
pressed = ButtonColors.Solid(
backgroundColor = Colors.Button.Blue.Pressed.background,
textColor = Colors.Button.Blue.Pressed.font,
borderColor = Colors.Button.Blue.Pressed.border
backgroundColor = LegacyColors.Button.Blue.Pressed.background,
textColor = LegacyColors.Button.Blue.Pressed.font,
borderColor = LegacyColors.Button.Blue.Pressed.border
),
disabled = ButtonColors.Solid(
backgroundColor = Colors.Button.Blue.Disabled.background,
textColor = Colors.Button.Blue.Disabled.font,
borderColor = Colors.Button.Blue.Disabled.border
backgroundColor = LegacyColors.Button.Blue.Disabled.background,
textColor = LegacyColors.Button.Blue.Disabled.font,
borderColor = LegacyColors.Button.Blue.Disabled.border
)
)

fun ButtonAppearance.Companion.lightBlue(): ButtonAppearance =
ButtonAppearance(
default = ButtonColors.Solid(
backgroundColor = Colors.Button.LightBlue.Default.background,
textColor = Colors.Button.LightBlue.Default.font,
borderColor = Colors.Button.LightBlue.Default.border
backgroundColor = LegacyColors.Button.LightBlue.Default.background,
textColor = LegacyColors.Button.LightBlue.Default.font,
borderColor = LegacyColors.Button.LightBlue.Default.border
),
pressed = ButtonColors.Solid(
backgroundColor = Colors.Button.LightBlue.Pressed.background,
textColor = Colors.Button.LightBlue.Pressed.font,
borderColor = Colors.Button.LightBlue.Pressed.border
backgroundColor = LegacyColors.Button.LightBlue.Pressed.background,
textColor = LegacyColors.Button.LightBlue.Pressed.font,
borderColor = LegacyColors.Button.LightBlue.Pressed.border
),
disabled = ButtonColors.Solid(
backgroundColor = Colors.Button.LightBlue.Disabled.background,
textColor = Colors.Button.LightBlue.Disabled.font,
borderColor = Colors.Button.LightBlue.Disabled.border
backgroundColor = LegacyColors.Button.LightBlue.Disabled.background,
textColor = LegacyColors.Button.LightBlue.Disabled.font,
borderColor = LegacyColors.Button.LightBlue.Disabled.border
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import com.atls.hyperion.ui.theme.tokens.layout.BorderStroke
import com.atls.hyperion.ui.theme.tokens.layout.CornerRadius
import com.atls.hyperion.ui.theme.tokens.layout.Space
import com.atls.hyperion.ui.theme.typography.FontSize
import com.atls.hyperion.ui.theme.typography.LineHeights
import com.atls.hyperion.ui.theme.typography.LineHeight

@Composable
fun ButtonShape.Companion.huge(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.xl3, vertical = Space.lg),
typography = TextStyle(fontSize = FontSize.xl3, lineHeight = LineHeights.xl4),
typography = TextStyle(fontSize = FontSize.xl3, lineHeight = LineHeight.xl4),
borderStroke = BorderStroke.none
)

Expand All @@ -23,7 +23,7 @@ fun ButtonShape.Companion.large(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.xl3, vertical = Space.md),
typography = TextStyle(fontSize = FontSize.xl2, lineHeight = LineHeights.xl3),
typography = TextStyle(fontSize = FontSize.xl2, lineHeight = LineHeight.xl3),
borderStroke = BorderStroke.none
)

Expand All @@ -32,7 +32,7 @@ fun ButtonShape.Companion.semiMedium(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.xl, vertical = Space.sm),
typography = TextStyle(fontSize = FontSize.lg, lineHeight = LineHeights.xl),
typography = TextStyle(fontSize = FontSize.lg, lineHeight = LineHeight.xl),
borderStroke = BorderStroke.none
)

Expand All @@ -41,7 +41,7 @@ fun ButtonShape.Companion.medium(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.lg, vertical = Space.xs),
typography = TextStyle(fontSize = FontSize.md, lineHeight = LineHeights.md),
typography = TextStyle(fontSize = FontSize.md, lineHeight = LineHeight.md),
borderStroke = BorderStroke.none
)

Expand All @@ -50,7 +50,7 @@ fun ButtonShape.Companion.normal(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.xl3, vertical = Space.xs2),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeights.sm),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeight.sm),
borderStroke = BorderStroke.none
)

Expand All @@ -59,7 +59,7 @@ fun ButtonShape.Companion.small(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl4,
paddings = PaddingValues(horizontal = Space.lg, vertical = Space.xs3),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeights.xs),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeight.xs),
borderStroke = BorderStroke.none
)

Expand All @@ -68,6 +68,6 @@ fun ButtonShape.Companion.smallSizeMediumRadii(): ButtonShape =
ButtonShape(
cornerRadius = CornerRadius.xl2_5,
paddings = PaddingValues(horizontal = Space.lg, vertical = Space.xs3),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeights.xs),
typography = TextStyle(fontSize = FontSize.xs, lineHeight = LineHeight.xs),
borderStroke = BorderStroke.none
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.atls.hyperion.ui.components.card.style.appearance
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import com.atls.hyperion.ui.theme.tokens.layout.Elevation
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

data class CardAppearance(
val backgroundColor: Color,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.atls.hyperion.ui.components.card.style.appearance

import androidx.compose.runtime.Composable
import com.atls.hyperion.ui.theme.tokens.colors.Colors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors

@Composable
fun CardAppearance.Companion.white(): CardAppearance =
CardAppearance(
backgroundColor = Colors.Palette.white,
borderColor = Colors.Palette.gray
backgroundColor = LegacyColors.Palette.white,
borderColor = LegacyColors.Palette.gray
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.atls.hyperion.ui.components.checkbox.styles.appearance

import androidx.compose.ui.graphics.Color
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

data class Colors(
val backgroundColor: Color,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.atls.hyperion.ui.components.checkbox.styles.appearance

import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

fun CheckboxAppearance.Companion.blue(): CheckboxAppearance =
CheckboxAppearance(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.atls.hyperion.ui.components.divider.style.appearance

import androidx.compose.runtime.Composable
import com.atls.hyperion.ui.theme.tokens.colors.Colors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors

@Composable
fun DividerAppearance.Companion.default(): DividerAppearance =
DividerAppearance(
color = Colors.Palette.lightPurple
color = LegacyColors.Palette.lightPurple
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.atls.hyperion.ui.components.input.style.appearance.InputAppearance
import com.atls.hyperion.ui.components.input.style.shape.InputShape
import com.atls.hyperion.ui.shared.addon.AddonSlotManager
import com.atls.hyperion.ui.theme.tokens.layout.Weight
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

@Composable
fun Input(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.atls.hyperion.ui.components.input.style.appearance

import androidx.compose.ui.graphics.Color
import com.atls.hyperion.ui.theme.tokens.colors.ColorSet
import com.atls.hyperion.ui.theme.tokens.colors.Colors as ThemeColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as ThemeColors

data class Colors(
val backgroundColor: Color,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.atls.hyperion.ui.components.input.style.appearance

import androidx.compose.runtime.Composable
import com.atls.hyperion.ui.theme.tokens.colors.Colors as TokenColors
import com.atls.hyperion.ui.theme.tokens.colors.LegacyColors as TokenColors

@Composable
fun InputAppearance.Companion.blue(): InputAppearance =
Expand Down
Loading
Loading