@akad/design-system 4.0.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/css/theme-aon.css +1 -1
- package/css/theme-bees.css +1 -1
- package/css/theme-bmc.css +1 -1
- package/css/theme-default.css +1 -1
- package/css/theme-linker.css +1 -1
- package/css/theme-oggi.css +1 -1
- package/css/theme-streetgo.css +1 -1
- package/package.json +13 -4
- package/react/react-lib.js +5376 -5010
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
- package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
- package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
- package/react/src/components/atoms/Badge/index.d.ts +4 -0
- package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
- package/react/src/components/atoms/Button/Button.d.ts +34 -61
- package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
- package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
- package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
- package/react/src/components/atoms/Card/Card.d.ts +16 -18
- package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
- package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
- package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
- package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
- package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
- package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
- package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
- package/react/src/components/atoms/IconButton/index.d.ts +4 -0
- package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
- package/react/src/components/atoms/Input/Input.d.ts +34 -15
- package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
- package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
- package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
- package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
- package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
- package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
- package/react/src/components/atoms/Radio/index.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
- package/react/src/components/atoms/Select/Select.d.ts +20 -10
- package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
- package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
- package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
- package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
- package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
- package/react/src/components/bosons/Container/Container.d.ts +3 -9
- package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
- package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
- package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
- package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
- package/react/src/components/index.d.ts +13 -16
- package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
- package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
- package/react/src/components/molecules/Accordion/index.d.ts +0 -4
- package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
- package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
- package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
- package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
- package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
- package/react/src/components/molecules/Alert/index.d.ts +4 -0
- package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
- package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
- package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -16
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
- package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
- package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
- package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
- package/react/src/components/molecules/Combobox/index.d.ts +4 -0
- package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
- package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
- package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
- package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
- package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
- package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
- package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
- package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
- package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
- package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
- package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
- package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
- package/react/src/components/molecules/Table/Table.d.ts +13 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
- package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
- package/react/src/components/molecules/Tabs/index.d.ts +0 -1
- package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
- package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
- package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
- package/react/src/components/propLeakage.test.d.ts +1 -0
- package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
- package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
- package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
- package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
- package/react/src/enum/layoutTag.d.ts +10 -0
- package/react/src/helpers/feedbackMessage.d.ts +22 -0
- package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
- package/react/src/helpers/testId.d.ts +7 -0
- package/react/src/helpers/testId.test.d.ts +1 -0
- package/react/src/helpers/useInternalValue.d.ts +23 -0
- package/react/src/helpers/useInternalValue.test.d.ts +1 -0
- package/scss/core/README.md +56 -0
- package/scss/core/base/typography.scss +3 -4
- package/scss/core/components/atoms/badge.scss +116 -0
- package/scss/core/components/atoms/button.scss +94 -797
- package/scss/core/components/atoms/card.scss +74 -126
- package/scss/core/components/atoms/checkbox.scss +110 -47
- package/scss/core/components/atoms/feedback-message.scss +38 -0
- package/scss/core/components/atoms/horizontal-rule.scss +4 -5
- package/scss/core/components/atoms/icon-button.scss +18 -0
- package/scss/core/components/atoms/icon.scss +53 -38
- package/scss/core/components/atoms/input.scss +248 -259
- package/scss/core/components/atoms/loading.scss +133 -77
- package/scss/core/components/atoms/radio.scss +84 -100
- package/scss/core/components/atoms/select.scss +151 -176
- package/scss/core/components/atoms/textarea.scss +154 -281
- package/scss/core/components/atoms/tooltip.scss +129 -149
- package/scss/core/components/bosons/caption.scss +10 -0
- package/scss/core/components/bosons/container.scss +5 -1
- package/scss/core/components/bosons/flex.scss +121 -0
- package/scss/core/components/bosons/grid.scss +39 -43
- package/scss/core/components/bosons/heading.scss +29 -0
- package/scss/core/components/bosons/label.scss +21 -0
- package/scss/core/components/bosons/paragraph.scss +62 -0
- package/scss/core/components/bosons/spacer.scss +6 -34
- package/scss/core/components/bosons/subtitle.scss +9 -0
- package/scss/core/components/bosons/wrapper.scss +10 -2
- package/scss/core/components/index.scss +19 -17
- package/scss/core/components/molecules/accordion.scss +42 -48
- package/scss/core/components/molecules/active-tags.scss +102 -28
- package/scss/core/components/molecules/alert.scss +145 -0
- package/scss/core/components/molecules/carousel.scss +4 -4
- package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
- package/scss/core/components/molecules/checkbox-group.scss +39 -0
- package/scss/core/components/molecules/combobox.scss +158 -0
- package/scss/core/components/molecules/indicator.scss +4 -6
- package/scss/core/components/molecules/inline-editable.scss +6 -8
- package/scss/core/components/molecules/password-confirmation.scss +11 -7
- package/scss/core/components/molecules/progress-bar.scss +85 -0
- package/scss/core/components/molecules/radio-card-group.scss +228 -0
- package/scss/core/components/molecules/radio-group.scss +45 -0
- package/scss/core/components/molecules/segment-control.scss +150 -0
- package/scss/core/components/molecules/stepper.scss +130 -57
- package/scss/core/components/molecules/table.scss +19 -18
- package/scss/core/components/molecules/tabs.scss +37 -215
- package/scss/core/components/organisms/modal.scss +68 -0
- package/scss/core/components/organisms/notification-list.scss +17 -17
- package/scss/core/components/templates/two-columns.scss +6 -6
- package/scss/core/functions/breakpoints.scss +4 -11
- package/scss/core/functions/index.scss +0 -3
- package/scss/core/functions/primitive.scss +68 -0
- package/scss/core/helpers/colors.scss +56 -187
- package/scss/core/helpers/display.scss +0 -148
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/order.scss +6 -4
- package/scss/core/index.scss +1 -1
- package/scss/core/mixins/breakpoints.scss +9 -47
- package/scss/core/mixins/choice.scss +88 -0
- package/scss/core/mixins/colors.scss +40 -0
- package/scss/core/mixins/index.scss +3 -2
- package/scss/core/mixins/typography.scss +22 -0
- package/scss/core/{tokens → primitives}/borders.scss +13 -14
- package/scss/core/primitives/breakpoints.scss +14 -0
- package/scss/core/primitives/colors.scss +174 -0
- package/scss/core/primitives/font.scss +34 -0
- package/scss/core/primitives/index.scss +8 -0
- package/scss/core/primitives/opacity.scss +40 -0
- package/scss/core/primitives/shadows.scss +36 -0
- package/scss/core/primitives/sizes.scss +28 -0
- package/scss/core/primitives/spacings.scss +28 -0
- package/scss/core/tokens/breakpoints.scss +12 -19
- package/scss/core/tokens/colors.scss +109 -0
- package/scss/core/tokens/font.scss +27 -0
- package/scss/core/tokens/index.scss +6 -6
- package/scss/core/tokens/sizes.scss +33 -0
- package/scss/core/tokens/spacings.scss +31 -39
- package/scss/core/tokens/typography.scss +144 -19
- package/scss/index.scss +7 -0
- package/scss/themes/aon/index.scss +76 -41
- package/scss/themes/aon/primitives.scss +35 -0
- package/scss/themes/bees/index.scss +52 -34
- package/scss/themes/bees/primitives.scss +19 -0
- package/scss/themes/bmc/index.scss +77 -42
- package/scss/themes/bmc/primitives.scss +33 -0
- package/scss/themes/default/index.scss +15 -59
- package/scss/themes/linker/index.scss +36 -17
- package/scss/themes/linker/primitives.scss +14 -0
- package/scss/themes/oggi/index.scss +77 -42
- package/scss/themes/oggi/primitives.scss +35 -0
- package/scss/themes/streetgo/index.scss +77 -42
- package/scss/themes/streetgo/primitives.scss +34 -0
- package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
- package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
- package/react/src/components/atoms/Caption/index.d.ts +0 -4
- package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
- package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
- package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
- package/react/src/components/atoms/Chip/index.d.ts +0 -4
- package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
- package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
- package/react/src/components/atoms/Heading/index.d.ts +0 -4
- package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
- package/react/src/components/atoms/Option/Option.d.ts +0 -30
- package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
- package/react/src/components/atoms/Option/index.d.ts +0 -4
- package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
- package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
- package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
- package/react/src/components/atoms/Progress/index.d.ts +0 -4
- package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
- package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
- package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
- package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
- package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
- package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
- package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
- package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
- package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
- package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
- package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
- package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
- package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
- package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
- package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
- package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
- package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
- package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
- package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
- package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
- package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
- package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
- package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
- package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
- package/react/src/components/molecules/Notification/index.d.ts +0 -4
- package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
- package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
- package/react/src/components/molecules/Tabs/types.d.ts +0 -23
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
- package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
- package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
- package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
- package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
- package/react/src/enum/colorProps.d.ts +0 -30
- package/scss/core/components/atoms/caption.scss +0 -13
- package/scss/core/components/atoms/chip.scss +0 -101
- package/scss/core/components/atoms/heading.scss +0 -70
- package/scss/core/components/atoms/option.scss +0 -78
- package/scss/core/components/atoms/paragraph.scss +0 -44
- package/scss/core/components/atoms/progress.scss +0 -16
- package/scss/core/components/atoms/radio-card.scss +0 -117
- package/scss/core/components/atoms/segment-control.scss +0 -143
- package/scss/core/components/atoms/subtitle.scss +0 -21
- package/scss/core/components/bosons/flex-layout.scss +0 -45
- package/scss/core/components/bosons/grid-layout.scss +0 -76
- package/scss/core/components/molecules/checkbox-card.scss +0 -480
- package/scss/core/components/molecules/editable-select.scss +0 -145
- package/scss/core/components/molecules/modal.scss +0 -70
- package/scss/core/components/molecules/notification.scss +0 -109
- package/scss/core/components/templates/split-layout.scss +0 -51
- package/scss/core/functions/fonts.scss +0 -17
- package/scss/core/functions/spacings.scss +0 -8
- package/scss/core/functions/tokens.scss +0 -14
- package/scss/core/helpers/elevation.scss +0 -16
- package/scss/core/tokens/icons.scss +0 -2
- package/scss/core/tokens/opacity.scss +0 -6
- package/scss/core/tokens/shadows.scss +0 -15
- package/scss/themes/aon/colors.scss +0 -83
- package/scss/themes/bees/colors.scss +0 -32
- package/scss/themes/bmc/colors.scss +0 -81
- package/scss/themes/default/colors.scss +0 -109
- package/scss/themes/linker/colors.scss +0 -35
- package/scss/themes/oggi/colors.scss +0 -81
- package/scss/themes/streetgo/colors.scss +0 -81
- /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
- /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
- /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
- /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
- /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
- /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
- /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
- /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
- /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
- /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
|
@@ -1,194 +1,63 @@
|
|
|
1
1
|
// Color utilities (uses CSS vars - dynamic theming)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
'
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
$bg-groups: (
|
|
6
|
+
'surface',
|
|
7
|
+
'border',
|
|
8
|
+
'primary',
|
|
9
|
+
'secondary',
|
|
10
|
+
'success',
|
|
11
|
+
'destructive',
|
|
12
|
+
'warning',
|
|
13
|
+
'info',
|
|
14
|
+
'chart'
|
|
15
|
+
);
|
|
16
|
+
$on-emphasis-tokens: ('default', 'pressed', 'hover-solid');
|
|
17
|
+
$warning-on-emphasis-tokens: ('emphasis');
|
|
18
|
+
$border-bg-tokens: (
|
|
14
19
|
'default',
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@if $
|
|
38
|
-
|
|
39
|
-
} @else {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
color: var(--color__neutral--90); // Dark text on light bg
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Aliases without --default for backward compatibility
|
|
60
|
-
.color__primary {
|
|
61
|
-
color: var(--color__primary);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.bg-color__primary {
|
|
65
|
-
background-color: var(--color__primary);
|
|
66
|
-
color: var(--color__neutral--10); // Automatic contrast color
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Generate secondary utilities
|
|
70
|
-
@each $variant in $brand-color-shades {
|
|
71
|
-
.color__secondary--#{$variant} {
|
|
72
|
-
// Use base variable for 'default', suffixed variable for others
|
|
73
|
-
@if $variant == 'default' {
|
|
74
|
-
color: var(--color__secondary);
|
|
75
|
-
} @else {
|
|
76
|
-
color: var(--color__secondary--#{$variant});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
.bg-color__secondary--#{$variant} {
|
|
80
|
-
@if $variant == 'default' {
|
|
81
|
-
background-color: var(--color__secondary);
|
|
82
|
-
} @else {
|
|
83
|
-
background-color: var(--color__secondary--#{$variant});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Automatic contrast color (maintains old-default behavior)
|
|
87
|
-
@if index(('darker', 'dark', 'default'), $variant) {
|
|
88
|
-
color: var(--color__neutral--10); // Light text on dark bg
|
|
89
|
-
} @else {
|
|
90
|
-
color: var(--color__neutral--90); // Dark text on light bg
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Aliases without --default
|
|
96
|
-
.color__secondary {
|
|
97
|
-
color: var(--color__secondary);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.bg-color__secondary {
|
|
101
|
-
background-color: var(--color__secondary);
|
|
102
|
-
color: var(--color__neutral--10); // Automatic contrast color
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Generate neutral utilities
|
|
106
|
-
@each $variant in $neutral-scale {
|
|
107
|
-
.color__neutral--#{$variant} {
|
|
108
|
-
color: var(--color__neutral--#{$variant});
|
|
109
|
-
}
|
|
110
|
-
.bg-color__neutral--#{$variant} {
|
|
111
|
-
background-color: var(--color__neutral--#{$variant});
|
|
112
|
-
|
|
113
|
-
// Automatic contrast color (maintains old-default behavior)
|
|
114
|
-
@if index(('90', '80', '60'), $variant) {
|
|
115
|
-
color: var(--color__neutral--10); // Light text on dark bg
|
|
116
|
-
} @else if index(('40', '20', '10', '05', '00'), $variant) {
|
|
117
|
-
color: var(--color__neutral--90); // Dark text on light bg
|
|
118
|
-
} @else {
|
|
119
|
-
color: var(--color__neutral--80); // Medium gray - dark text
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Aliases with single hyphen (React uses 'neutral-90' not 'neutral--90')
|
|
124
|
-
.color__neutral-#{$variant} {
|
|
125
|
-
color: var(--color__neutral--#{$variant});
|
|
126
|
-
}
|
|
127
|
-
.bg-color__neutral-#{$variant} {
|
|
128
|
-
background-color: var(--color__neutral--#{$variant});
|
|
129
|
-
|
|
130
|
-
// Automatic contrast color (same logic as double-hyphen version)
|
|
131
|
-
@if index(('90', '80', '60'), $variant) {
|
|
132
|
-
color: var(--color__neutral--10); // Light text on dark bg
|
|
133
|
-
} @else if index(('40', '20', '10', '05', '00'), $variant) {
|
|
134
|
-
color: var(--color__neutral--90); // Dark text on light bg
|
|
135
|
-
} @else {
|
|
136
|
-
color: var(--color__neutral--80); // Medium gray - dark text
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Generate success, warning, danger, info utilities
|
|
142
|
-
@each $semantic in ('success', 'warning', 'danger', 'info') {
|
|
143
|
-
@each $variant in $semantic-color-shades {
|
|
144
|
-
.color__#{$semantic}--#{$variant} {
|
|
145
|
-
// Use base variable for 'default', suffixed variable for others
|
|
146
|
-
@if $variant == 'default' {
|
|
147
|
-
color: var(--color__#{$semantic});
|
|
148
|
-
} @else {
|
|
149
|
-
color: var(--color__#{$semantic}--#{$variant});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
.bg-color__#{$semantic}--#{$variant} {
|
|
153
|
-
@if $variant == 'default' {
|
|
154
|
-
background-color: var(--color__#{$semantic});
|
|
155
|
-
} @else {
|
|
156
|
-
background-color: var(--color__#{$semantic}--#{$variant});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Automatic contrast color (maintains old-default behavior)
|
|
160
|
-
@if $semantic == 'success' or $semantic == 'danger' or $semantic == 'info'
|
|
161
|
-
{
|
|
162
|
-
@if index(('dark', 'default'), $variant) {
|
|
163
|
-
color: var(--color__neutral--10); // Light text on dark bg
|
|
164
|
-
} @else {
|
|
165
|
-
color: var(--color__neutral--90); // Dark text on light bg
|
|
166
|
-
}
|
|
167
|
-
} @else if $semantic == 'warning' {
|
|
168
|
-
// Warning colors are lighter, use dark text for most
|
|
169
|
-
@if $variant == 'dark' {
|
|
170
|
-
color: var(--color__neutral--90); // Dark text
|
|
171
|
-
} @else {
|
|
172
|
-
color: var(--color__neutral--90); // Dark text on warning colors
|
|
20
|
+
'muted',
|
|
21
|
+
'disabled',
|
|
22
|
+
'subtle',
|
|
23
|
+
'strong',
|
|
24
|
+
'darker'
|
|
25
|
+
);
|
|
26
|
+
$border-dark-tokens: ('subtle', 'strong', 'darker');
|
|
27
|
+
|
|
28
|
+
@each $token in map.keys(map.get($colors__semantic, 'foreground')) {
|
|
29
|
+
.color__foreground--#{$token} {
|
|
30
|
+
color: var(--color__foreground--#{$token});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@each $group in $bg-groups {
|
|
35
|
+
@each $token in map.keys(map.get($colors__semantic, $group)) {
|
|
36
|
+
$text: null;
|
|
37
|
+
|
|
38
|
+
@if $group == 'border' and not list.index($border-bg-tokens, $token) {
|
|
39
|
+
// sem helper de fundo (border--primary etc.)
|
|
40
|
+
} @else if $group == 'border' {
|
|
41
|
+
$text: if(list.index($border-dark-tokens, $token), 'inverse', 'default');
|
|
42
|
+
} @else if $group == 'surface' {
|
|
43
|
+
$text: if($token == 'inverse', 'inverse', 'default');
|
|
44
|
+
} @else if $group != 'chart' {
|
|
45
|
+
$solid-tokens: if(
|
|
46
|
+
$group == 'warning',
|
|
47
|
+
$warning-on-emphasis-tokens,
|
|
48
|
+
$on-emphasis-tokens
|
|
49
|
+
);
|
|
50
|
+
$text: if(list.index($solid-tokens, $token), 'on-emphasis', 'default');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@if not($group == 'border' and not list.index($border-bg-tokens, $token)) {
|
|
54
|
+
.bg-color__#{$group}--#{$token} {
|
|
55
|
+
background-color: var(--color__#{$group}--#{$token});
|
|
56
|
+
|
|
57
|
+
@if $text {
|
|
58
|
+
color: var(--color__foreground--#{$text});
|
|
173
59
|
}
|
|
174
60
|
}
|
|
175
61
|
}
|
|
176
62
|
}
|
|
177
|
-
|
|
178
|
-
// Aliases without --default
|
|
179
|
-
.color__#{$semantic} {
|
|
180
|
-
color: var(--color__#{$semantic});
|
|
181
|
-
}
|
|
182
|
-
.bg-color__#{$semantic} {
|
|
183
|
-
background-color: var(--color__#{$semantic});
|
|
184
|
-
|
|
185
|
-
// Automatic contrast color for base semantic colors
|
|
186
|
-
@if $semantic == 'success' or $semantic == 'danger' or $semantic == 'info' {
|
|
187
|
-
color: var(--color__neutral--10); // Light text (these are typically dark)
|
|
188
|
-
} @else if $semantic == 'warning' {
|
|
189
|
-
color: var(
|
|
190
|
-
--color__neutral--90
|
|
191
|
-
); // Dark text (warning is typically light)
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
63
|
}
|
|
@@ -3,80 +3,6 @@
|
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
&-flex {
|
|
7
|
-
display: flex;
|
|
8
|
-
|
|
9
|
-
&__direction {
|
|
10
|
-
&--column {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&--column-reverse {
|
|
15
|
-
flex-direction: column-reverse;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&--row {
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&--row-reverse {
|
|
23
|
-
flex-direction: row-reverse;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__gap {
|
|
28
|
-
@each $space, $value in $spacing {
|
|
29
|
-
&--#{$space} {
|
|
30
|
-
gap: #{$value};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&__align {
|
|
36
|
-
&--start {
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&--center {
|
|
41
|
-
align-items: center;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&--end {
|
|
45
|
-
align-items: flex-end;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--stretch {
|
|
49
|
-
align-items: stretch;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__justify {
|
|
54
|
-
&--start {
|
|
55
|
-
justify-content: flex-start;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--center {
|
|
59
|
-
justify-content: center;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&--end {
|
|
63
|
-
justify-content: flex-end;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&--beetwen {
|
|
67
|
-
justify-content: space-between;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&--around {
|
|
71
|
-
justify-content: space-around;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&--evenly {
|
|
75
|
-
justify-content: space-evenly;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
6
|
&-inline-block {
|
|
81
7
|
display: inline-block;
|
|
82
8
|
}
|
|
@@ -92,80 +18,6 @@
|
|
|
92
18
|
display: block;
|
|
93
19
|
}
|
|
94
20
|
|
|
95
|
-
&-flex {
|
|
96
|
-
display: flex;
|
|
97
|
-
|
|
98
|
-
&__direction {
|
|
99
|
-
&--column {
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&--column-reverse {
|
|
104
|
-
flex-direction: column-reverse;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&--row {
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&--row-reverse {
|
|
112
|
-
flex-direction: row-reverse;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&__gap {
|
|
117
|
-
@each $space, $value in $spacing {
|
|
118
|
-
&--#{$space} {
|
|
119
|
-
gap: #{$value};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__align {
|
|
125
|
-
&--start {
|
|
126
|
-
align-items: flex-start;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&--center {
|
|
130
|
-
align-items: center;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&--end {
|
|
134
|
-
align-items: flex-end;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&--stretch {
|
|
138
|
-
align-items: stretch;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&__justify {
|
|
143
|
-
&--start {
|
|
144
|
-
justify-content: flex-start;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&--center {
|
|
148
|
-
justify-content: center;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&--end {
|
|
152
|
-
justify-content: flex-end;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&--beetwen {
|
|
156
|
-
justify-content: space-between;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&--around {
|
|
160
|
-
justify-content: space-around;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&--evenly {
|
|
164
|
-
justify-content: space-evenly;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
21
|
&-inline-block {
|
|
170
22
|
display: inline-block;
|
|
171
23
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
$columns: 12 !default;
|
|
2
4
|
|
|
3
5
|
@for $i from 1 through $columns {
|
|
@@ -6,11 +8,11 @@ $columns: 12 !default;
|
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
@each $
|
|
10
|
-
$min: device-min($
|
|
11
|
-
$label: if($min, $
|
|
11
|
+
@each $name in map.keys($breakpoint) {
|
|
12
|
+
$min: device-min($name);
|
|
13
|
+
$label: if($min, $name + '-', '');
|
|
12
14
|
|
|
13
|
-
@include device-up($
|
|
15
|
+
@include device-up($name) {
|
|
14
16
|
@for $i from 1 through $columns {
|
|
15
17
|
.order--#{$label}#{$i} {
|
|
16
18
|
order: #{$i};
|
package/scss/core/index.scss
CHANGED
|
@@ -3,28 +3,30 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Usage:
|
|
5
5
|
* .class {
|
|
6
|
-
* @include
|
|
6
|
+
* @include mobile {
|
|
7
7
|
* padding: 0 20px;
|
|
8
8
|
* }
|
|
9
|
-
* @include
|
|
9
|
+
* @include device-up('md') {
|
|
10
10
|
* padding: 0 60px;
|
|
11
11
|
* }
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
@use 'sass:map';
|
|
16
|
+
@use '../functions' as fn;
|
|
17
|
+
@use '../tokens/breakpoints' as tokens;
|
|
16
18
|
|
|
17
19
|
// mobile devices
|
|
18
20
|
@mixin mobile {
|
|
19
|
-
@media (max-width: map.get(
|
|
21
|
+
@media (max-width: map.get(tokens.$breakpoint, 'mobile')) {
|
|
20
22
|
@content;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
// Device breakpoint up. If the breakpoint is the smallest it will
|
|
25
27
|
// return without media query.
|
|
26
|
-
@mixin device-up($name, $breakpoints:
|
|
27
|
-
$min: device-min($name, $breakpoints);
|
|
28
|
+
@mixin device-up($name, $breakpoints: tokens.$breakpoint) {
|
|
29
|
+
$min: fn.device-min($name, $breakpoints);
|
|
28
30
|
|
|
29
31
|
@if $min {
|
|
30
32
|
@media (min-width: $min) {
|
|
@@ -37,8 +39,8 @@
|
|
|
37
39
|
|
|
38
40
|
// Device breakpoint down.
|
|
39
41
|
// If the breakpoint is the largest it will return without media query.
|
|
40
|
-
@mixin device-down($name, $breakpoints:
|
|
41
|
-
$max: device-max($name, $breakpoints);
|
|
42
|
+
@mixin device-down($name, $breakpoints: tokens.$breakpoint) {
|
|
43
|
+
$max: fn.device-max($name, $breakpoints);
|
|
42
44
|
|
|
43
45
|
@if $max {
|
|
44
46
|
@media (max-width: $max) {
|
|
@@ -48,43 +50,3 @@
|
|
|
48
50
|
@content;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
|
-
|
|
52
|
-
// Device breakpoint between
|
|
53
|
-
@mixin device-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
54
|
-
$min: device-min($lower, $breakpoints);
|
|
55
|
-
$max: device-max($upper, $breakpoints);
|
|
56
|
-
|
|
57
|
-
@if $min != null and $max != null {
|
|
58
|
-
@media (min-width: $min) and (max-width: $max) {
|
|
59
|
-
@content;
|
|
60
|
-
}
|
|
61
|
-
} @else if $max == null {
|
|
62
|
-
@include device-up($lower, $breakpoints) {
|
|
63
|
-
@content;
|
|
64
|
-
}
|
|
65
|
-
} @else if $min == null {
|
|
66
|
-
@include device-down($upper, $breakpoints) {
|
|
67
|
-
@content;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Device breakpoint only
|
|
73
|
-
@mixin device-only($name, $breakpoints: $grid-breakpoints) {
|
|
74
|
-
$min: device-min($name, $breakpoints);
|
|
75
|
-
$max: device-max($name, $breakpoints);
|
|
76
|
-
|
|
77
|
-
@if $min != null and $max != null {
|
|
78
|
-
@media (min-width: $min) and (max-width: $max) {
|
|
79
|
-
@content;
|
|
80
|
-
}
|
|
81
|
-
} @else if $max == null {
|
|
82
|
-
@include device-up($name, $breakpoints) {
|
|
83
|
-
@content;
|
|
84
|
-
}
|
|
85
|
-
} @else if $min == null {
|
|
86
|
-
@include device-down($name, $breakpoints) {
|
|
87
|
-
@content;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@mixin choice-input-overlay {
|
|
2
|
+
appearance: none;
|
|
3
|
+
cursor: inherit;
|
|
4
|
+
height: 100%;
|
|
5
|
+
inset: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin choice-info-trigger {
|
|
13
|
+
align-items: center;
|
|
14
|
+
appearance: none;
|
|
15
|
+
background: none;
|
|
16
|
+
border: 0;
|
|
17
|
+
border-radius: $border__radius--pill;
|
|
18
|
+
color: inherit;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
height: $spacing--x5;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
width: $spacing--x5;
|
|
26
|
+
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
outline: $border__width--sm solid var(--color__focus--ring);
|
|
29
|
+
outline-offset: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin feedback-message-reserve {
|
|
34
|
+
min-height: $size__font--sm * 1.5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin choice-feedback-message(
|
|
38
|
+
$prefix,
|
|
39
|
+
$neutral: 'default',
|
|
40
|
+
$neutral-disabled: 'disabled',
|
|
41
|
+
$error: 'destructive'
|
|
42
|
+
) {
|
|
43
|
+
& {
|
|
44
|
+
--#{$prefix}__message: var(--color__foreground--#{$neutral});
|
|
45
|
+
--#{$prefix}__message-icon: var(--#{$prefix}__message);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__message {
|
|
49
|
+
@include feedback-message-reserve;
|
|
50
|
+
|
|
51
|
+
align-items: center;
|
|
52
|
+
display: flex;
|
|
53
|
+
gap: $spacing__offset--sm;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__message-icon {
|
|
57
|
+
color: var(--#{$prefix}__message-icon);
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
|
|
61
|
+
.ds-icon {
|
|
62
|
+
color: inherit;
|
|
63
|
+
line-height: 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__message-text {
|
|
68
|
+
@include typography('caption');
|
|
69
|
+
|
|
70
|
+
color: var(--#{$prefix}__message);
|
|
71
|
+
line-height: 1.5;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&--error {
|
|
75
|
+
--#{$prefix}__message: var(--color__foreground--#{$error});
|
|
76
|
+
--#{$prefix}__message-icon: var(--color__foreground--destructive);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--warning {
|
|
80
|
+
--#{$prefix}__message: var(--color__foreground--warning-strong);
|
|
81
|
+
--#{$prefix}__message-icon: var(--color__foreground--warning);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--disabled {
|
|
85
|
+
--#{$prefix}__message: var(--color__foreground--#{$neutral-disabled});
|
|
86
|
+
--#{$prefix}__message-icon: var(--color__foreground--#{$neutral-disabled});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@mixin semantic-colors {
|
|
5
|
+
@each $group, $group-tokens in $colors__semantic {
|
|
6
|
+
@each $token, $primitive in $group-tokens {
|
|
7
|
+
@if meta.type-of($primitive) == 'map' {
|
|
8
|
+
--color__#{$group}--#{$token}: #{rgba(
|
|
9
|
+
color-hex(map.get($primitive, 'color')),
|
|
10
|
+
map.get($primitive, 'opacity')
|
|
11
|
+
)};
|
|
12
|
+
} @else {
|
|
13
|
+
--color__#{$group}--#{$token}: var(--color__#{$primitive});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin brand-colors($brand, $palette, $tokens) {
|
|
20
|
+
@each $name, $value in $palette {
|
|
21
|
+
--color__#{$brand}-#{$name}: #{$value};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@each $group, $group-tokens in $tokens {
|
|
25
|
+
@each $token, $name in $group-tokens {
|
|
26
|
+
@if not
|
|
27
|
+
map.has-key($colors__semantic, $group) or not
|
|
28
|
+
map.has-key(map.get($colors__semantic, $group), $token)
|
|
29
|
+
{
|
|
30
|
+
@error 'Marca #{$brand}: o token #{$group}--#{$token} não existe em core/tokens/colors.';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@if not map.has-key($palette, $name) {
|
|
34
|
+
@error 'Marca #{$brand}: a cor #{$name} (token #{$group}--#{$token}) não existe na paleta da marca.';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
--color__#{$group}--#{$token}: var(--color__#{$brand}-#{$name});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'breakpoints' as bp;
|
|
3
|
+
@use '../tokens/typography' as tokens;
|
|
4
|
+
|
|
5
|
+
@mixin typography($role) {
|
|
6
|
+
$props: map.get(tokens.$typography, $role);
|
|
7
|
+
$families: (
|
|
8
|
+
'highlight': var(--font__family--highlight),
|
|
9
|
+
'base': var(--font__family--base),
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
font-family: map.get($families, map.get($props, 'font-family'));
|
|
13
|
+
font-size: map.get($props, 'font-size');
|
|
14
|
+
font-weight: map.get($props, 'font-weight');
|
|
15
|
+
line-height: map.get($props, 'line-height');
|
|
16
|
+
|
|
17
|
+
@if map.has-key($props, 'font-size-mobile') {
|
|
18
|
+
@include bp.mobile {
|
|
19
|
+
font-size: map.get($props, 'font-size-mobile');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|