@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,267 +1,89 @@
|
|
|
1
|
-
// === TABS TOKENS (only used multiple times) ===
|
|
2
|
-
$tabs__padding-title: $spacing__inset--xs !default;
|
|
3
|
-
|
|
4
|
-
// === TABS COMPONENT ===
|
|
5
1
|
.ds-tabs {
|
|
6
|
-
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--tabs__background-title--disabled: var(--color__neutral--30);
|
|
11
|
-
--tabs__color-title: var(--color__neutral--90);
|
|
12
|
-
--tabs__color-title--active: var(--color__primary);
|
|
13
|
-
--tabs__color-title--disabled: var(--color__neutral--50);
|
|
2
|
+
--tabs__label: var(--color__foreground--strong);
|
|
3
|
+
--tabs__label--active: var(--color__foreground--primary);
|
|
4
|
+
--tabs__indicator: var(--color__border--primary);
|
|
5
|
+
--tabs__track: var(--color__border--muted);
|
|
14
6
|
|
|
15
7
|
font-family: var(--font__family--base);
|
|
16
8
|
width: 100%;
|
|
17
9
|
|
|
18
10
|
&__header {
|
|
19
|
-
background-color: var(--tabs__background-header);
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: 1px;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__tab {
|
|
26
|
-
align-items: center;
|
|
27
|
-
background-color: var(--tabs__background-title);
|
|
28
|
-
color: var(--tabs__color-title);
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-grow: 1;
|
|
31
|
-
font-size: $font__size--sm;
|
|
32
|
-
font-weight: $font__weight--semibold;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
padding: $tabs__padding-title;
|
|
35
|
-
|
|
36
|
-
.ds-icon {
|
|
37
|
-
color: var(--tabs__color-title);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-color--primary {
|
|
41
|
-
--tabs__color-title--active: var(--color__primary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-color--secondary {
|
|
45
|
-
--tabs__color-title--active: var(--color__secondary);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-color--neutral {
|
|
49
|
-
--tabs__color-title--active: var(--color__neutral--50);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&-color--success {
|
|
53
|
-
--tabs__color-title--active: var(--color__success);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&-color--warning {
|
|
57
|
-
--tabs__color-title--active: var(--color__warning);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&-color--danger {
|
|
61
|
-
--tabs__color-title--active: var(--color__danger);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-color--info {
|
|
65
|
-
--tabs__color-title--active: var(--color__info);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&--active,
|
|
69
|
-
&:hover {
|
|
70
|
-
background-color: var(--tabs__background-title--active);
|
|
71
|
-
border-top: 2px solid;
|
|
72
|
-
color: var(--tabs__color-title--active);
|
|
73
|
-
padding-top: calc($tabs__padding-title - 2px);
|
|
74
|
-
|
|
75
|
-
.ds-icon {
|
|
76
|
-
color: var(--tabs__color-title--active);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:hover {
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&--disabled {
|
|
85
|
-
background-color: var(--tabs__background-title--disabled) !important;
|
|
86
|
-
border: none !important;
|
|
87
|
-
color: var(--tabs__color-title--disabled) !important;
|
|
88
|
-
cursor: not-allowed !important;
|
|
89
|
-
padding-top: $tabs__padding-title !important;
|
|
90
|
-
|
|
91
|
-
.ds-icon {
|
|
92
|
-
color: var(--tabs__color-title--disabled) !important;
|
|
93
|
-
cursor: not-allowed !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&__content {
|
|
99
|
-
.ds-wrapper {
|
|
100
|
-
display: block;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Dark mode
|
|
106
|
-
[data-theme='dark'] .ds-tabs {
|
|
107
|
-
--tabs__background-header: var(--color__neutral--40);
|
|
108
|
-
--tabs__background-title: var(--color__neutral--80);
|
|
109
|
-
--tabs__background-title--active: var(--color__neutral--100);
|
|
110
|
-
--tabs__background-title--disabled: var(--color__neutral--70);
|
|
111
|
-
--tabs__color-title: var(--color__neutral--10);
|
|
112
|
-
--tabs__color-title--active: var(--color__primary);
|
|
113
|
-
--tabs__color-title--disabled: var(--color__neutral--50);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// === NAVIGATION VARIANT (ex‑TabBar: sublinhado, tablist WAI‑ARIA) ===
|
|
117
|
-
$tabs-nav__indicator-height: 3px !default;
|
|
118
|
-
$tabs-nav__padding-top: 16px !default;
|
|
119
|
-
$tabs-nav__padding-bottom: 13px !default;
|
|
120
|
-
$tabs-nav__padding-x: 24px !default;
|
|
121
|
-
$tabs-nav__gap: 0 !default;
|
|
122
|
-
$tabs-nav__panel-padding-top: $spacing__inset--sm !default;
|
|
123
|
-
$tabs-nav__label-color: var(--color__neutral--70) !default;
|
|
124
|
-
$tabs-nav__active-color: var(--color__primary) !default;
|
|
125
|
-
|
|
126
|
-
.ds-tabs.ds-tabs--navigation {
|
|
127
|
-
--tabs-nav__track: var(--color__neutral--40);
|
|
128
|
-
--tabs-nav__label: #{$tabs-nav__label-color};
|
|
129
|
-
--tabs-nav__label--active: #{$tabs-nav__active-color};
|
|
130
|
-
--tabs-nav__indicator: #{$tabs-nav__active-color};
|
|
131
|
-
|
|
132
|
-
font-family: var(--font__family--base);
|
|
133
|
-
width: 100%;
|
|
134
|
-
|
|
135
|
-
.ds-tabs__header {
|
|
136
11
|
align-items: flex-end;
|
|
137
|
-
|
|
138
|
-
border-bottom: 1px solid var(--tabs-nav__track);
|
|
12
|
+
border-bottom: $border__width--xs solid var(--tabs__track);
|
|
139
13
|
display: flex;
|
|
140
14
|
flex-flow: row nowrap;
|
|
141
|
-
gap: $tabs-nav__gap;
|
|
142
15
|
justify-content: flex-start;
|
|
143
16
|
width: 100%;
|
|
144
17
|
}
|
|
145
18
|
|
|
146
|
-
|
|
19
|
+
&__tab {
|
|
20
|
+
align-items: center;
|
|
21
|
+
appearance: none;
|
|
147
22
|
background: transparent;
|
|
148
|
-
border:
|
|
149
|
-
border-
|
|
23
|
+
border: 0;
|
|
24
|
+
border-radius: $border__radius--xs;
|
|
150
25
|
box-sizing: border-box;
|
|
151
|
-
color: var(--
|
|
26
|
+
color: var(--tabs__label);
|
|
152
27
|
cursor: pointer;
|
|
28
|
+
display: inline-flex;
|
|
153
29
|
flex: 0 0 auto;
|
|
154
|
-
flex-grow: 0;
|
|
155
|
-
font-family: var(--font__family--base);
|
|
156
|
-
font-size: $font__size--md;
|
|
157
30
|
font-style: normal;
|
|
158
|
-
|
|
31
|
+
gap: $spacing__offset--sm;
|
|
32
|
+
justify-content: center;
|
|
159
33
|
letter-spacing: 0;
|
|
160
|
-
line-height: 1.5;
|
|
161
34
|
margin: 0;
|
|
162
35
|
max-width: 100%;
|
|
163
|
-
padding: $
|
|
164
|
-
calc($tabs-nav__padding-bottom + $tabs-nav__indicator-height);
|
|
36
|
+
padding: $spacing__inset--md $spacing__inset--lg;
|
|
165
37
|
position: relative;
|
|
166
38
|
text-align: center;
|
|
167
39
|
width: auto;
|
|
168
40
|
|
|
169
|
-
|
|
170
|
-
color: inherit;
|
|
171
|
-
}
|
|
41
|
+
@include typography('body-lg-bold');
|
|
172
42
|
|
|
173
|
-
&:
|
|
174
|
-
|
|
175
|
-
outline-offset: 4px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&:hover:not(:disabled, .ds-tabs__tab--disabled) {
|
|
179
|
-
background: transparent;
|
|
180
|
-
border-top: none;
|
|
181
|
-
color: var(--tabs-nav__label--active);
|
|
182
|
-
padding-top: $tabs-nav__padding-top;
|
|
43
|
+
&:enabled:hover {
|
|
44
|
+
color: var(--tabs__label--active);
|
|
183
45
|
}
|
|
184
46
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&-color--secondary {
|
|
191
|
-
--tabs-nav__label--active: var(--color__secondary);
|
|
192
|
-
--tabs-nav__indicator: var(--color__secondary);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&-color--neutral {
|
|
196
|
-
--tabs-nav__label--active: var(--color__neutral--70);
|
|
197
|
-
--tabs-nav__indicator: var(--color__neutral--50);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&-color--success {
|
|
201
|
-
--tabs-nav__label--active: var(--color__success);
|
|
202
|
-
--tabs-nav__indicator: var(--color__success);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&-color--warning {
|
|
206
|
-
--tabs-nav__label--active: var(--color__warning);
|
|
207
|
-
--tabs-nav__indicator: var(--color__warning);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&-color--danger {
|
|
211
|
-
--tabs-nav__label--active: var(--color__danger);
|
|
212
|
-
--tabs-nav__indicator: var(--color__danger);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&-color--info {
|
|
216
|
-
--tabs-nav__label--active: var(--color__info);
|
|
217
|
-
--tabs-nav__indicator: var(--color__info);
|
|
47
|
+
&:focus-visible {
|
|
48
|
+
outline: $border__width--sm solid var(--color__focus--ring);
|
|
49
|
+
outline-offset: $border__width--sm;
|
|
218
50
|
}
|
|
219
51
|
|
|
220
52
|
&--active {
|
|
221
|
-
|
|
222
|
-
border-top: none;
|
|
223
|
-
color: var(--tabs-nav__label--active);
|
|
224
|
-
padding-top: $tabs-nav__padding-top;
|
|
53
|
+
color: var(--tabs__label--active);
|
|
225
54
|
|
|
226
55
|
&::after {
|
|
227
|
-
background-color: var(--
|
|
228
|
-
bottom:
|
|
56
|
+
background-color: var(--tabs__indicator);
|
|
57
|
+
bottom: -$border__width--xs;
|
|
229
58
|
content: '';
|
|
230
|
-
height: $
|
|
231
|
-
|
|
59
|
+
height: $border__width--md;
|
|
60
|
+
inset-inline: 0;
|
|
232
61
|
position: absolute;
|
|
233
|
-
right: 0;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.ds-icon {
|
|
237
|
-
color: inherit;
|
|
238
62
|
}
|
|
239
63
|
}
|
|
240
64
|
|
|
241
65
|
&--disabled,
|
|
242
66
|
&:disabled {
|
|
243
|
-
|
|
244
|
-
border: none !important;
|
|
245
|
-
color: var(--color__neutral--50) !important;
|
|
67
|
+
color: var(--color__foreground--disabled);
|
|
246
68
|
cursor: not-allowed;
|
|
247
|
-
padding-top: $tabs-nav__padding-top !important;
|
|
248
|
-
pointer-events: none;
|
|
249
69
|
}
|
|
250
70
|
}
|
|
251
71
|
|
|
252
|
-
|
|
253
|
-
|
|
72
|
+
&--full-width &__tab {
|
|
73
|
+
flex: 1 1 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__panel {
|
|
77
|
+
padding: $spacing__inset--lg;
|
|
254
78
|
width: 100%;
|
|
255
79
|
|
|
256
80
|
.ds-wrapper {
|
|
257
81
|
display: block;
|
|
258
82
|
}
|
|
259
83
|
}
|
|
260
|
-
}
|
|
261
84
|
|
|
262
|
-
[data-theme='dark']
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
--tabs-nav__indicator: #{$tabs-nav__active-color};
|
|
85
|
+
:where([data-theme='dark']) & {
|
|
86
|
+
--tabs__track: var(--color__border--subtle);
|
|
87
|
+
--tabs__label: var(--color__foreground--inverse);
|
|
88
|
+
}
|
|
267
89
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.ds-modal {
|
|
2
|
+
background: transparent;
|
|
3
|
+
border: 0;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
color: inherit;
|
|
6
|
+
margin: auto;
|
|
7
|
+
max-height: none;
|
|
8
|
+
max-width: min(
|
|
9
|
+
var(--modal__max-width, 550px),
|
|
10
|
+
calc(100% - #{$spacing__inset--xl})
|
|
11
|
+
);
|
|
12
|
+
overflow: visible;
|
|
13
|
+
padding: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
|
|
16
|
+
&::backdrop {
|
|
17
|
+
background: var(--color__surface--overlay);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__panel {
|
|
21
|
+
background: var(--color__surface--default);
|
|
22
|
+
border-radius: var(--modal__border-radius, #{$border__radius--xs});
|
|
23
|
+
box-shadow: var(--modal__shadow, #{$shadow__level--3});
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
color: var(--color__foreground--default);
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: $spacing__offset--md;
|
|
29
|
+
max-height: calc(100vh - #{$spacing--x8});
|
|
30
|
+
padding: $spacing__inset--lg;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__header {
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
gap: $spacing__offset--md;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__close {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
margin-left: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__title {
|
|
47
|
+
@include typography('headline-4');
|
|
48
|
+
|
|
49
|
+
flex: 1 1 auto;
|
|
50
|
+
margin: 0;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__body {
|
|
55
|
+
@include typography('body-lg');
|
|
56
|
+
|
|
57
|
+
min-height: 0;
|
|
58
|
+
overflow: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__actions {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
gap: $spacing__offset--sm;
|
|
66
|
+
justify-content: flex-end;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ds-notification-list {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: $
|
|
4
|
+
gap: $spacing__offset--md;
|
|
5
5
|
position: fixed;
|
|
6
6
|
width: 400px;
|
|
7
7
|
|
|
@@ -14,63 +14,63 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&--top-left {
|
|
17
|
-
left: $spacing--
|
|
18
|
-
top: $spacing--
|
|
17
|
+
left: $spacing--x4;
|
|
18
|
+
top: $spacing--x4;
|
|
19
19
|
|
|
20
20
|
@include mobile {
|
|
21
21
|
left: 0;
|
|
22
|
-
top: $spacing--
|
|
22
|
+
top: $spacing--x3;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&--top-center {
|
|
27
27
|
left: 50%;
|
|
28
|
-
top: $spacing--
|
|
28
|
+
top: $spacing--x4;
|
|
29
29
|
transform: translateX(-50%);
|
|
30
30
|
|
|
31
31
|
@include mobile {
|
|
32
32
|
left: 0;
|
|
33
|
-
top: $spacing--
|
|
33
|
+
top: $spacing--x3;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&--top-right {
|
|
38
|
-
right: $spacing--
|
|
39
|
-
top: $spacing--
|
|
38
|
+
right: $spacing--x4;
|
|
39
|
+
top: $spacing--x4;
|
|
40
40
|
|
|
41
41
|
@include mobile {
|
|
42
42
|
left: 0;
|
|
43
|
-
top: $spacing--
|
|
43
|
+
top: $spacing--x3;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&--bottom-left {
|
|
48
|
-
bottom: $spacing--
|
|
49
|
-
left: $spacing--
|
|
48
|
+
bottom: $spacing--x4;
|
|
49
|
+
left: $spacing--x4;
|
|
50
50
|
|
|
51
51
|
@include mobile {
|
|
52
|
-
bottom: $spacing--
|
|
52
|
+
bottom: $spacing--x3;
|
|
53
53
|
left: 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
&--bottom-center {
|
|
58
|
-
bottom: $spacing--
|
|
58
|
+
bottom: $spacing--x4;
|
|
59
59
|
left: 50%;
|
|
60
60
|
transform: translateX(-50%);
|
|
61
61
|
|
|
62
62
|
@include mobile {
|
|
63
|
-
bottom: $spacing--
|
|
63
|
+
bottom: $spacing--x3;
|
|
64
64
|
left: 0;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&--bottom-right {
|
|
69
|
-
bottom: $spacing--
|
|
70
|
-
right: $spacing--
|
|
69
|
+
bottom: $spacing--x4;
|
|
70
|
+
right: $spacing--x4;
|
|
71
71
|
|
|
72
72
|
@include mobile {
|
|
73
|
-
bottom: $spacing--
|
|
73
|
+
bottom: $spacing--x3;
|
|
74
74
|
left: 0;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
padding-top: 42px;
|
|
15
15
|
position: sticky;
|
|
16
16
|
top: 0;
|
|
17
|
-
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
> * {
|
|
19
|
+
margin-bottom: $spacing__offset--md;
|
|
20
|
+
}
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
> *:last-child {
|
|
23
|
+
margin-bottom: 0;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Breakpoint Function
|
|
3
3
|
*/
|
|
4
|
+
@use 'sass:list';
|
|
4
5
|
@use 'sass:map';
|
|
5
|
-
|
|
6
|
-
@function breakpoint($key) {
|
|
7
|
-
@if map-has-key($breakpoint, $key) {
|
|
8
|
-
@return map.get($breakpoint, $key);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@warn "Unknown `#{$key}` in $breakpoint.";
|
|
12
|
-
@return null;
|
|
13
|
-
}
|
|
6
|
+
@use '../tokens/breakpoints' as tokens;
|
|
14
7
|
|
|
15
8
|
// Minimum device breakpoint width. Smallest breakpoint will be a null value
|
|
16
|
-
@function device-min($name, $breakpoints:
|
|
9
|
+
@function device-min($name, $breakpoints: tokens.$breakpoint) {
|
|
17
10
|
$min: map.get($breakpoints, $name);
|
|
18
11
|
|
|
19
12
|
@return if(0 != $min, $min, null);
|
|
@@ -22,7 +15,7 @@
|
|
|
22
15
|
// Maximum device breakpoint width. Largest breakpoint will be a null value
|
|
23
16
|
@function device-max(
|
|
24
17
|
$name,
|
|
25
|
-
$breakpoints:
|
|
18
|
+
$breakpoints: tokens.$breakpoint,
|
|
26
19
|
$breakpoint-names: map-keys($breakpoints)
|
|
27
20
|
) {
|
|
28
21
|
$next: if(
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
@use '../primitives/colors' as colors;
|
|
4
|
+
@use '../primitives/font' as font;
|
|
5
|
+
@use '../primitives/sizes' as sizes;
|
|
6
|
+
@use '../primitives/spacings' as spacings;
|
|
7
|
+
@use '../primitives/breakpoints' as breakpoints;
|
|
8
|
+
@use '../primitives/opacity' as opacity;
|
|
9
|
+
@use '../primitives/borders' as borders;
|
|
10
|
+
@use '../primitives/shadows' as shadows;
|
|
11
|
+
|
|
12
|
+
@function primitive($name, $type: 'colors') {
|
|
13
|
+
$registry: (
|
|
14
|
+
'colors': colors.$colors__primitives,
|
|
15
|
+
'spacings': spacings.$spacings__primitives,
|
|
16
|
+
'sizes': sizes.$sizes__primitives,
|
|
17
|
+
'breakpoints': breakpoints.$breakpoint__primitives,
|
|
18
|
+
'font-weight': font.$font-weight__primitives,
|
|
19
|
+
'font-family': font.$font-family__primitives,
|
|
20
|
+
'line-height': font.$line-height__primitives,
|
|
21
|
+
'opacity': opacity.$opacity__primitives,
|
|
22
|
+
'border-radius': borders.$border-radius__primitives,
|
|
23
|
+
'border-width': borders.$border-width__primitives,
|
|
24
|
+
'shadow-color': shadows.$shadow-color__primitives,
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
@if not map.has-key($registry, $type) {
|
|
28
|
+
@error 'O tipo de primitiva #{$type} não existe em core/primitives.';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
$scale: map.get($registry, $type);
|
|
32
|
+
|
|
33
|
+
@if $type == 'colors' {
|
|
34
|
+
@if not string.index($name, '--') {
|
|
35
|
+
@error 'A primitiva #{$name} não existe em core/primitives/#{$type}.';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
$hue: string.slice($name, 1, string.index($name, '--') - 1);
|
|
39
|
+
$step: string.slice($name, string.index($name, '--') + 2);
|
|
40
|
+
|
|
41
|
+
@if not
|
|
42
|
+
map.has-key($scale, $hue) or not
|
|
43
|
+
map.has-key(map.get($scale, $hue), $step)
|
|
44
|
+
{
|
|
45
|
+
@error 'A primitiva #{$name} não existe em core/primitives/#{$type}.';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@return $name;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@if not map.has-key($scale, $name) {
|
|
52
|
+
@error 'A primitiva #{$name} não existe em core/primitives/#{$type}.';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@if $type == 'font-family' {
|
|
56
|
+
@return $name;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@return map.get($scale, $name);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@function color-hex($name) {
|
|
63
|
+
$name: primitive($name);
|
|
64
|
+
$hue: string.slice($name, 1, string.index($name, '--') - 1);
|
|
65
|
+
$step: string.slice($name, string.index($name, '--') + 2);
|
|
66
|
+
|
|
67
|
+
@return map.get(map.get(colors.$colors__primitives, $hue), $step);
|
|
68
|
+
}
|