@akad/design-system 4.0.1 → 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 +5373 -5004
- 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 -15
- 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 -473
- 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,9 +0,0 @@
|
|
|
1
|
-
export interface DsSplitLayoutProps {
|
|
2
|
-
leftContent: React.ReactNode;
|
|
3
|
-
rightContent: React.ReactNode;
|
|
4
|
-
leftBackgroundColor?: string;
|
|
5
|
-
rightBackgroundColor?: string;
|
|
6
|
-
reverseOnMobile?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const DsSplitLayout: React.FC<DsSplitLayoutProps>;
|
|
9
|
-
export default DsSplitLayout;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mapper for color props. Necessary to don't break the old behavior.
|
|
3
|
-
* It is used on DsCard and DsIcon components.
|
|
4
|
-
* @example
|
|
5
|
-
* ColorPropsMapper['primary-darker'] => 'primary--darker'
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ColorPropsMapper {
|
|
8
|
-
'primary-darker' = "primary--darker",
|
|
9
|
-
'primary-dark' = "primary--dark",
|
|
10
|
-
'primary-light' = "primary--light",
|
|
11
|
-
'primary-lighter' = "primary--lighter",
|
|
12
|
-
'primary-lightest' = "primary--lightest",
|
|
13
|
-
'secondary-darker' = "secondary--darker",
|
|
14
|
-
'secondary-dark' = "secondary--dark",
|
|
15
|
-
'secondary-light' = "secondary--light",
|
|
16
|
-
'secondary-lighter' = "secondary--lighter",
|
|
17
|
-
'secondary-lightest' = "secondary--lightest",
|
|
18
|
-
'success-dark' = "success--dark",
|
|
19
|
-
'success-light' = "success--light",
|
|
20
|
-
'success-lighter' = "success--lighter",
|
|
21
|
-
'warning-dark' = "warning--dark",
|
|
22
|
-
'warning-light' = "warning--light",
|
|
23
|
-
'warning-lighter' = "warning--lighter",
|
|
24
|
-
'danger-dark' = "danger--dark",
|
|
25
|
-
'danger-light' = "danger--light",
|
|
26
|
-
'danger-lighter' = "danger--lighter",
|
|
27
|
-
'info-dark' = "info--dark",
|
|
28
|
-
'info-light' = "info--light",
|
|
29
|
-
'info-lighter' = "info--lighter"
|
|
30
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
$chip__font--family: var(--font__family--base) !default;
|
|
2
|
-
$chip__font--weight: $font__weight--semibold !default;
|
|
3
|
-
$chip__font--size: $font__size--xs !default;
|
|
4
|
-
$chip__font--style: normal !default;
|
|
5
|
-
$chip__line-height: 1.25 !default;
|
|
6
|
-
$chip__letter-spacing: 0 !default;
|
|
7
|
-
$chip__padding--y: $spacing__inset--quark !default; // 4px
|
|
8
|
-
$chip__padding--x: $spacing__inset--quark + $spacing__inset--nano !default; // 4px + 8px = 12px
|
|
9
|
-
$chip__min-height: $spacing__inset--sm !default; // 24px
|
|
10
|
-
$chip__border-radius: $border__radius--xs !default;
|
|
11
|
-
$chip__border-width: $border__width--hairline !default;
|
|
12
|
-
$chip__icon--gap: 6px !default;
|
|
13
|
-
$chip__colors: primary, secondary, success, danger, warning, info, neutral;
|
|
14
|
-
$chip__solid: (
|
|
15
|
-
'bg__primary': var(--color__primary),
|
|
16
|
-
'text__primary': var(--color__neutral--00),
|
|
17
|
-
'bg__secondary': var(--color__secondary),
|
|
18
|
-
'text__secondary': var(--color__neutral--00),
|
|
19
|
-
'bg__success': var(--color__success),
|
|
20
|
-
'text__success': var(--color__neutral--00),
|
|
21
|
-
'bg__danger': var(--color__danger),
|
|
22
|
-
'text__danger': var(--color__neutral--00),
|
|
23
|
-
'bg__warning': var(--color__warning),
|
|
24
|
-
'text__warning': var(--color__neutral--90),
|
|
25
|
-
'bg__info': var(--color__info),
|
|
26
|
-
'text__info': var(--color__neutral--00),
|
|
27
|
-
'bg__neutral': var(--color__neutral--80),
|
|
28
|
-
'text__neutral': var(--color__neutral--00),
|
|
29
|
-
) !default;
|
|
30
|
-
$chip__light: (
|
|
31
|
-
'bg__primary': var(--color__primary--lighter),
|
|
32
|
-
'text__primary': var(--color__primary--dark),
|
|
33
|
-
'bg__secondary': var(--color__secondary--lighter),
|
|
34
|
-
'text__secondary': var(--color__secondary--dark),
|
|
35
|
-
'bg__success': var(--color__success--lighter),
|
|
36
|
-
'text__success': var(--color__success--dark),
|
|
37
|
-
'bg__danger': var(--color__danger--lighter),
|
|
38
|
-
'text__danger': var(--color__danger--dark),
|
|
39
|
-
'bg__warning': var(--color__warning--lighter),
|
|
40
|
-
'text__warning': var(--color__warning--dark),
|
|
41
|
-
'bg__info': var(--color__info--lighter),
|
|
42
|
-
'text__info': var(--color__info--dark),
|
|
43
|
-
'bg__neutral': var(--color__neutral--20),
|
|
44
|
-
'text__neutral': var(--color__neutral--80),
|
|
45
|
-
) !default;
|
|
46
|
-
|
|
47
|
-
.ds-chip {
|
|
48
|
-
--chip__border-radius: #{$chip__border-radius};
|
|
49
|
-
--chip__border-width: #{$chip__border-width};
|
|
50
|
-
--chip__min-height: #{$chip__min-height};
|
|
51
|
-
--chip__padding: #{$chip__padding--y} #{$chip__padding--x};
|
|
52
|
-
--chip__icon-gap: #{$chip__icon--gap};
|
|
53
|
-
|
|
54
|
-
align-items: center;
|
|
55
|
-
border: none;
|
|
56
|
-
border-radius: var(--chip__border-radius);
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
font-family: $chip__font--family;
|
|
60
|
-
font-size: $chip__font--size;
|
|
61
|
-
font-style: $chip__font--style;
|
|
62
|
-
font-weight: $chip__font--weight;
|
|
63
|
-
gap: var(--chip__icon-gap);
|
|
64
|
-
justify-content: center;
|
|
65
|
-
letter-spacing: $chip__letter-spacing;
|
|
66
|
-
line-height: $chip__line-height;
|
|
67
|
-
margin: 0;
|
|
68
|
-
max-width: 100%;
|
|
69
|
-
min-height: var(--chip__min-height);
|
|
70
|
-
padding: var(--chip__padding);
|
|
71
|
-
text-align: center;
|
|
72
|
-
vertical-align: middle;
|
|
73
|
-
white-space: nowrap;
|
|
74
|
-
|
|
75
|
-
&__label {
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
text-overflow: ellipsis;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&__icon {
|
|
81
|
-
align-items: center;
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
flex-shrink: 0;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
line-height: 1;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@each $color in $chip__colors {
|
|
89
|
-
&__#{$color} {
|
|
90
|
-
&--solid {
|
|
91
|
-
background-color: get-token($chip__solid, 'bg__' + $color);
|
|
92
|
-
color: get-token($chip__solid, 'text__' + $color);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&--light {
|
|
96
|
-
background-color: get-token($chip__light, 'bg__' + $color);
|
|
97
|
-
color: get-token($chip__light, 'text__' + $color);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// Heading component - h1-h6 HTML tags + .ds-heading classes
|
|
2
|
-
h1,
|
|
3
|
-
.ds-heading,
|
|
4
|
-
.ds-heading--1 {
|
|
5
|
-
font-family: var(--font__family--highlight);
|
|
6
|
-
font-size: $font__size--huge;
|
|
7
|
-
font-weight: $font__weight--bold;
|
|
8
|
-
line-height: 125%;
|
|
9
|
-
|
|
10
|
-
@include mobile {
|
|
11
|
-
font-size: $font__size--xxxl;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
h2,
|
|
16
|
-
.ds-heading--2 {
|
|
17
|
-
font-family: var(--font__family--highlight);
|
|
18
|
-
font-size: $font__size--xxxl;
|
|
19
|
-
line-height: 125%;
|
|
20
|
-
|
|
21
|
-
@include mobile {
|
|
22
|
-
font-size: $font__size--xxl;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
h3,
|
|
27
|
-
.ds-heading--3 {
|
|
28
|
-
font-family: var(--font__family--highlight);
|
|
29
|
-
font-size: $font__size--xxl;
|
|
30
|
-
line-height: 125%;
|
|
31
|
-
|
|
32
|
-
@include mobile {
|
|
33
|
-
font-size: $font__size--xl;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
h4,
|
|
38
|
-
.ds-heading--4 {
|
|
39
|
-
font-family: var(--font__family--highlight);
|
|
40
|
-
font-size: $font__size--xl;
|
|
41
|
-
line-height: 150%;
|
|
42
|
-
|
|
43
|
-
@include mobile {
|
|
44
|
-
font-size: $font__size--lg;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
h5,
|
|
49
|
-
.ds-heading--5 {
|
|
50
|
-
font-family: var(--font__family--highlight);
|
|
51
|
-
font-size: $font__size--lg;
|
|
52
|
-
font-weight: $font__weight--semibold;
|
|
53
|
-
line-height: 150%;
|
|
54
|
-
|
|
55
|
-
@include mobile {
|
|
56
|
-
font-size: $font__size--md;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
h6,
|
|
61
|
-
.ds-heading--6 {
|
|
62
|
-
font-family: var(--font__family--highlight);
|
|
63
|
-
font-size: $font__size--md;
|
|
64
|
-
font-weight: $font__weight--medium;
|
|
65
|
-
line-height: 150%;
|
|
66
|
-
|
|
67
|
-
@include mobile {
|
|
68
|
-
font-size: $font__size--sm;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
.ds-option {
|
|
2
|
-
$self: &;
|
|
3
|
-
|
|
4
|
-
// CSS vars (light mode default)
|
|
5
|
-
--option__fill: var(--color__neutral--80);
|
|
6
|
-
--option__fill--disabled: var(--color__neutral--50);
|
|
7
|
-
--option__background: var(--color__neutral--00);
|
|
8
|
-
|
|
9
|
-
align-items: center;
|
|
10
|
-
display: flex;
|
|
11
|
-
font-family: var(--font__family--base);
|
|
12
|
-
justify-content: flex-start;
|
|
13
|
-
|
|
14
|
-
&__text-container {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: $spacing--quark;
|
|
18
|
-
margin-left: $spacing--nano;
|
|
19
|
-
user-select: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__label {
|
|
23
|
-
align-items: center;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
display: flex;
|
|
26
|
-
font-size: $font__size--sm;
|
|
27
|
-
font-weight: $font__weight--bold;
|
|
28
|
-
gap: $spacing--quark;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__detail {
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
font-size: $font__size--xs;
|
|
34
|
-
font-weight: $font__weight--regular;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__text-container--disabled {
|
|
38
|
-
color: var(--option__fill--disabled);
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ds-option__icon.ds-icon {
|
|
43
|
-
color: var(--option__fill);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&--disabled {
|
|
47
|
-
color: var(--option__fill--disabled);
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
|
|
50
|
-
.ds-option__icon.ds-icon {
|
|
51
|
-
color: var(--option__fill--disabled);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
input {
|
|
56
|
-
/* The native appearance is hidden */
|
|
57
|
-
appearance: none;
|
|
58
|
-
opacity: 0;
|
|
59
|
-
|
|
60
|
-
// necessary to make input clickable
|
|
61
|
-
|
|
62
|
-
padding: $spacing--xxs;
|
|
63
|
-
position: absolute;
|
|
64
|
-
|
|
65
|
-
&:focus {
|
|
66
|
-
& + i.ds-icon {
|
|
67
|
-
box-shadow: inset 0 0 0 $border__width--thin var(--option__fill);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Dark mode
|
|
74
|
-
[data-theme='dark'] .ds-option {
|
|
75
|
-
--option__fill: var(--color__neutral--20);
|
|
76
|
-
--option__fill--disabled: var(--color__neutral--60);
|
|
77
|
-
--option__background: var(--color__neutral--90);
|
|
78
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Paragraph component - p HTML tag + .ds-paragraph classes
|
|
2
|
-
p,
|
|
3
|
-
.ds-paragraph {
|
|
4
|
-
font-family: var(--font__family--base);
|
|
5
|
-
font-size: $font__size--sm;
|
|
6
|
-
line-height: 150%;
|
|
7
|
-
margin: 0;
|
|
8
|
-
|
|
9
|
-
@include mobile {
|
|
10
|
-
font-size: $font__size--xs;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
b,
|
|
14
|
-
strong {
|
|
15
|
-
font-weight: $font__weight--bold;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
a {
|
|
19
|
-
color: var(--color__info);
|
|
20
|
-
display: inline;
|
|
21
|
-
text-decoration: none;
|
|
22
|
-
|
|
23
|
-
&:visited {
|
|
24
|
-
color: var(--color__info--dark);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
color: var(--color__info--light);
|
|
29
|
-
text-decoration: underline;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&--large {
|
|
34
|
-
font-size: $font__size--md;
|
|
35
|
-
|
|
36
|
-
@include mobile {
|
|
37
|
-
font-size: $font__size--sm;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&--small {
|
|
42
|
-
font-size: $font__size--xs;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.ds-progress {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
&__container {
|
|
5
|
-
background-color: var(--color__neutral--30);
|
|
6
|
-
border-radius: $border__radius--pill;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&__progress {
|
|
11
|
-
border-radius: $border__radius--pill;
|
|
12
|
-
padding: $spacing__inset--quark 0;
|
|
13
|
-
transition: 0.2s ease all;
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
$radio-card__padding: $spacing__inset--quark + $spacing__inset--nano !default;
|
|
2
|
-
$radio-card__gap: $spacing__inset--quark + $spacing__inset--nano !default;
|
|
3
|
-
$radio-card__min-height: $spacing--lg !default;
|
|
4
|
-
$radio-card__text-gap: $spacing--quark !default;
|
|
5
|
-
$radio-card__border-radius: $border__radius--xs !default;
|
|
6
|
-
$radio-card__border-width: $border__width--hairline !default;
|
|
7
|
-
$radio-card__outline-width: $border__width--thin !default;
|
|
8
|
-
|
|
9
|
-
// Tipografia
|
|
10
|
-
$radio-card__font--family: var(--font__family--base) !default;
|
|
11
|
-
$radio-card__font--size: $font__size--xs !default;
|
|
12
|
-
$radio-card__font--weight: $font__weight--semibold !default;
|
|
13
|
-
$radio-card__line-height: 1.5 !default;
|
|
14
|
-
|
|
15
|
-
// Cores (light)
|
|
16
|
-
$radio-card__bg: var(--color__neutral--00) !default;
|
|
17
|
-
$radio-card__border: var(--color__neutral--30) !default;
|
|
18
|
-
$radio-card__bg--checked: var(--color__neutral--05) !default;
|
|
19
|
-
$radio-card__border--checked: var(--color__neutral--80) !default;
|
|
20
|
-
$radio-card__text: var(--color__neutral--80) !default;
|
|
21
|
-
|
|
22
|
-
// Cores (dark)
|
|
23
|
-
$radio-card__bg--dark: var(--color__neutral--90) !default;
|
|
24
|
-
$radio-card__border--dark: var(--color__neutral--60) !default;
|
|
25
|
-
$radio-card__text--dark: var(--color__neutral--10) !default;
|
|
26
|
-
$radio-card__bg--checked-dark: var(--color__neutral--80) !default;
|
|
27
|
-
$radio-card__border--checked-dark: var(--color__neutral--30) !default;
|
|
28
|
-
$radio-card__disabled-opacity: 0.55 !default;
|
|
29
|
-
|
|
30
|
-
@mixin radio-card-wrapper {
|
|
31
|
-
align-items: center;
|
|
32
|
-
background-color: #{$radio-card__bg};
|
|
33
|
-
border: $radio-card__border-width solid #{$radio-card__border};
|
|
34
|
-
border-radius: $radio-card__border-radius;
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
font-family: $radio-card__font--family;
|
|
39
|
-
-webkit-font-smoothing: antialiased;
|
|
40
|
-
-moz-osx-font-smoothing: grayscale;
|
|
41
|
-
gap: $radio-card__gap;
|
|
42
|
-
min-height: $radio-card__min-height;
|
|
43
|
-
padding: $radio-card__padding;
|
|
44
|
-
position: relative;
|
|
45
|
-
width: fit-content;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin radio-card-wrapper-checked {
|
|
49
|
-
background-color: #{$radio-card__bg--checked};
|
|
50
|
-
border-color: #{$radio-card__border--checked};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@mixin radio-card-wrapper-focus-visible {
|
|
54
|
-
outline: $radio-card__outline-width solid #{$radio-card__border--checked};
|
|
55
|
-
outline-offset: $radio-card__outline-width;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@mixin radio-card-wrapper-disabled {
|
|
59
|
-
cursor: not-allowed;
|
|
60
|
-
opacity: $radio-card__disabled-opacity;
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin radio-card-input-hidden {
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
inset: 0;
|
|
67
|
-
margin: 0;
|
|
68
|
-
opacity: 0;
|
|
69
|
-
position: absolute;
|
|
70
|
-
z-index: 1;
|
|
71
|
-
|
|
72
|
-
&:disabled {
|
|
73
|
-
cursor: not-allowed;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@mixin radio-card-text-block {
|
|
78
|
-
display: flex;
|
|
79
|
-
flex: 1;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
gap: $radio-card__text-gap;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
min-width: 0;
|
|
84
|
-
pointer-events: none;
|
|
85
|
-
z-index: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@mixin radio-card-text-style {
|
|
89
|
-
color: #{$radio-card__text};
|
|
90
|
-
font-family: inherit;
|
|
91
|
-
font-size: $radio-card__font--size;
|
|
92
|
-
font-style: normal;
|
|
93
|
-
font-weight: $radio-card__font--weight;
|
|
94
|
-
letter-spacing: 0;
|
|
95
|
-
line-height: $radio-card__line-height;
|
|
96
|
-
vertical-align: middle;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@mixin radio-card-dark-mode {
|
|
100
|
-
background-color: #{$radio-card__bg--dark};
|
|
101
|
-
border-color: #{$radio-card__border--dark};
|
|
102
|
-
color: #{$radio-card__text--dark};
|
|
103
|
-
|
|
104
|
-
.ds-radio__label,
|
|
105
|
-
.ds-radio__description {
|
|
106
|
-
color: #{$radio-card__text--dark};
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@mixin radio-card-dark-mode-checked {
|
|
111
|
-
background-color: #{$radio-card__bg--checked-dark};
|
|
112
|
-
border-color: #{$radio-card__border--checked-dark};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@mixin radio-card-dark-mode-focus-visible {
|
|
116
|
-
outline-color: #{$radio-card__border--checked-dark};
|
|
117
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// === SEGMENT CONTROL TOKENS ===
|
|
2
|
-
$segment-control__padding: $spacing__inset--quark !default;
|
|
3
|
-
$segment-control__gap: $spacing--quark !default; // 4px
|
|
4
|
-
$segment-control__border-radius: $border__radius--sm !default;
|
|
5
|
-
$segment-control__item-radius: $border__radius--xs !default;
|
|
6
|
-
$segment-control__padding-y--sm: $spacing__inset--quark !default;
|
|
7
|
-
$segment-control__padding-x--sm: $spacing__inset--xs !default;
|
|
8
|
-
$segment-control__padding-y--md: $spacing__inset--nano !default;
|
|
9
|
-
$segment-control__padding-x--md: $spacing__inset--sm !default;
|
|
10
|
-
$segment-control__transition: 150ms ease-in-out !default;
|
|
11
|
-
|
|
12
|
-
// === SEGMENT CONTROL COMPONENT ===
|
|
13
|
-
.ds-segment-control {
|
|
14
|
-
--segment-control__background-track: var(--color__neutral--20);
|
|
15
|
-
--segment-control__background-item: transparent;
|
|
16
|
-
--segment-control__background-item--hover: var(--color__neutral--30);
|
|
17
|
-
--segment-control__background-item--active: var(--color__neutral--00);
|
|
18
|
-
--segment-control__color-item: var(--color__neutral--90);
|
|
19
|
-
--segment-control__color-item--hover: var(--color__neutral--90);
|
|
20
|
-
--segment-control__color-item--active: var(--color__primary);
|
|
21
|
-
--segment-control__color-item--disabled: var(--color__neutral--50);
|
|
22
|
-
--segment-control__shadow-item--active: #{$shadow__level--1};
|
|
23
|
-
|
|
24
|
-
background-color: var(--segment-control__background-track);
|
|
25
|
-
border-radius: $segment-control__border-radius;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
flex: 0 0 auto;
|
|
29
|
-
font-family: var(--font__family--highlight);
|
|
30
|
-
gap: $segment-control__gap;
|
|
31
|
-
max-width: 100%;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
padding: $segment-control__padding;
|
|
34
|
-
width: fit-content;
|
|
35
|
-
|
|
36
|
-
&--full-width {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex: 1 0 100%;
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ds-segment-control__item {
|
|
43
|
-
align-items: center;
|
|
44
|
-
appearance: none;
|
|
45
|
-
background-color: var(--segment-control__background-item);
|
|
46
|
-
border: 0;
|
|
47
|
-
border-radius: $segment-control__item-radius;
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
color: var(--segment-control__color-item);
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
display: inline-flex;
|
|
52
|
-
flex: 0 0 auto;
|
|
53
|
-
font-family: inherit;
|
|
54
|
-
font-size: $font__size--xs;
|
|
55
|
-
font-weight: $font__weight--medium;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
letter-spacing: 0;
|
|
58
|
-
line-height: 1.4;
|
|
59
|
-
margin: 0;
|
|
60
|
-
position: relative;
|
|
61
|
-
text-align: center;
|
|
62
|
-
transition:
|
|
63
|
-
background-color $segment-control__transition,
|
|
64
|
-
color $segment-control__transition,
|
|
65
|
-
box-shadow $segment-control__transition;
|
|
66
|
-
user-select: none;
|
|
67
|
-
white-space: nowrap;
|
|
68
|
-
width: auto;
|
|
69
|
-
z-index: 0;
|
|
70
|
-
|
|
71
|
-
&:hover:not(
|
|
72
|
-
.ds-segment-control__item--active,
|
|
73
|
-
.ds-segment-control__item--disabled
|
|
74
|
-
) {
|
|
75
|
-
background-color: var(--segment-control__background-item--hover);
|
|
76
|
-
color: var(--segment-control__color-item--hover);
|
|
77
|
-
z-index: 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&--active {
|
|
81
|
-
background-color: var(--segment-control__background-item--active);
|
|
82
|
-
box-shadow: var(--segment-control__shadow-item--active);
|
|
83
|
-
color: var(--segment-control__color-item--active);
|
|
84
|
-
z-index: 2;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&:has(.ds-segment-control__item-input:focus-visible) {
|
|
88
|
-
outline: $border__width--thin solid var(--color__primary);
|
|
89
|
-
outline-offset: $border__width--thin;
|
|
90
|
-
z-index: 3;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&--disabled {
|
|
94
|
-
color: var(--segment-control__color-item--disabled);
|
|
95
|
-
cursor: not-allowed;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ds-segment-control__item-input {
|
|
100
|
-
appearance: none;
|
|
101
|
-
inset: 0;
|
|
102
|
-
margin: 0;
|
|
103
|
-
opacity: 0;
|
|
104
|
-
position: absolute;
|
|
105
|
-
|
|
106
|
-
&:disabled {
|
|
107
|
-
cursor: not-allowed;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Sizes
|
|
112
|
-
&--size-sm {
|
|
113
|
-
min-height: $spacing--xs;
|
|
114
|
-
|
|
115
|
-
.ds-segment-control__item {
|
|
116
|
-
padding: $segment-control__padding-y--sm $segment-control__padding-x--sm;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&--size-md {
|
|
121
|
-
min-height: $spacing--sm;
|
|
122
|
-
|
|
123
|
-
.ds-segment-control__item {
|
|
124
|
-
padding: $segment-control__padding-y--md $segment-control__padding-x--md;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&--full-width .ds-segment-control__item {
|
|
129
|
-
flex: 1 1 0;
|
|
130
|
-
width: auto;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Dark mode
|
|
135
|
-
[data-theme='dark'] .ds-segment-control {
|
|
136
|
-
--segment-control__background-track: var(--color__neutral--80);
|
|
137
|
-
--segment-control__background-item--hover: var(--color__neutral--70);
|
|
138
|
-
--segment-control__background-item--active: var(--color__primary);
|
|
139
|
-
--segment-control__color-item: var(--color__neutral--10);
|
|
140
|
-
--segment-control__color-item--hover: var(--color__neutral--00);
|
|
141
|
-
--segment-control__color-item--active: var(--color__neutral--00);
|
|
142
|
-
--segment-control__color-item--disabled: var(--color__neutral--50);
|
|
143
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Subtitle component
|
|
2
|
-
.ds-subtitle {
|
|
3
|
-
font-family: var(--font__family--base);
|
|
4
|
-
line-height: 150%;
|
|
5
|
-
|
|
6
|
-
&--large {
|
|
7
|
-
font-size: $font__size--lg;
|
|
8
|
-
|
|
9
|
-
@include mobile {
|
|
10
|
-
font-size: $font__size--sm;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&--small {
|
|
15
|
-
font-size: $font__size--md;
|
|
16
|
-
|
|
17
|
-
@include mobile {
|
|
18
|
-
font-size: $font__size--xs;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.ds-flex-layout {
|
|
2
|
-
&--gap-nano {
|
|
3
|
-
gap: $spacing--nano;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&--gap-quark {
|
|
7
|
-
gap: $spacing--quark;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&--gap-xxxs {
|
|
11
|
-
gap: $spacing--xxxs;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&--gap-xxs {
|
|
15
|
-
gap: $spacing--xxs;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&--gap-xs {
|
|
19
|
-
gap: $spacing--xs;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&--gap-sm {
|
|
23
|
-
gap: $spacing--sm;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&--gap-md {
|
|
27
|
-
gap: $spacing--md;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&--gap-lg {
|
|
31
|
-
gap: $spacing--lg;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&--gap-xl {
|
|
35
|
-
gap: $spacing--xl;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&--gap-xxl {
|
|
39
|
-
gap: $spacing--xxl;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&--gap-xxxl {
|
|
43
|
-
gap: $spacing--xxxl;
|
|
44
|
-
}
|
|
45
|
-
}
|