@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum BadgeVariant {
|
|
2
|
+
Neutral = "neutral",
|
|
3
|
+
Brand = "brand",
|
|
4
|
+
Info = "info",
|
|
5
|
+
Success = "success",
|
|
6
|
+
Warning = "warning",
|
|
7
|
+
Destructive = "destructive"
|
|
8
|
+
}
|
|
9
|
+
export declare enum BadgeAppearance {
|
|
10
|
+
Subtle = "subtle",
|
|
11
|
+
Solid = "solid"
|
|
12
|
+
}
|
|
13
|
+
export declare enum BadgeSize {
|
|
14
|
+
Medium = "md",
|
|
15
|
+
Small = "sm"
|
|
16
|
+
}
|
|
17
|
+
export interface BadgeOptionProps<T> {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: T;
|
|
20
|
+
options: T[];
|
|
21
|
+
}
|
|
22
|
+
export interface BadgeStringProps {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
}
|
|
26
|
+
export interface BadgeConfig {
|
|
27
|
+
name: string;
|
|
28
|
+
class: string;
|
|
29
|
+
props: {
|
|
30
|
+
variant: BadgeOptionProps<BadgeVariant>;
|
|
31
|
+
appearance: BadgeOptionProps<BadgeAppearance>;
|
|
32
|
+
size: BadgeOptionProps<BadgeSize>;
|
|
33
|
+
testId: BadgeStringProps;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
declare const badgeConfig: BadgeConfig;
|
|
37
|
+
export default badgeConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeAppearance, BadgeSize, BadgeVariant } from './Badge.config';
|
|
3
|
+
|
|
4
|
+
export declare const formatBadgeCount: (count: number | string) => string;
|
|
5
|
+
export interface DsBadgeProps {
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
variant?: `${BadgeVariant}`;
|
|
8
|
+
appearance?: `${BadgeAppearance}`;
|
|
9
|
+
size?: `${BadgeSize}`;
|
|
10
|
+
icon?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
testId?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
'aria-hidden'?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const DsBadge: {
|
|
19
|
+
({ label, variant, appearance, size, icon, id, className, testId, title, "aria-label": ariaLabel, "aria-hidden": ariaHidden, }: DsBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export default DsBadge;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsBadgeProps } from './Badge';
|
|
3
|
+
import { BadgeAppearance, BadgeVariant } from './Badge.config';
|
|
4
|
+
|
|
5
|
+
declare const componentProps: Meta;
|
|
6
|
+
export default componentProps;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsBadgeProps>;
|
|
9
|
+
args: {
|
|
10
|
+
label: string;
|
|
11
|
+
variant: BadgeVariant;
|
|
12
|
+
appearance: BadgeAppearance;
|
|
13
|
+
size: import('./Badge.config').BadgeSize;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const Status: {
|
|
17
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsBadgeProps>;
|
|
18
|
+
args: {
|
|
19
|
+
label: string;
|
|
20
|
+
variant: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
appearance: BadgeAppearance;
|
|
23
|
+
size: import('./Badge.config').BadgeSize;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const Solid: {
|
|
27
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsBadgeProps>;
|
|
28
|
+
args: {
|
|
29
|
+
label: string;
|
|
30
|
+
variant: string;
|
|
31
|
+
appearance: BadgeAppearance;
|
|
32
|
+
icon: string;
|
|
33
|
+
size: import('./Badge.config').BadgeSize;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const Small: {
|
|
37
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsBadgeProps>;
|
|
38
|
+
args: {
|
|
39
|
+
label: string;
|
|
40
|
+
size: string;
|
|
41
|
+
variant: BadgeVariant;
|
|
42
|
+
appearance: BadgeAppearance;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const Matrix: {
|
|
46
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
};
|
|
48
|
+
export declare const WithoutIcon: {
|
|
49
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
};
|
|
51
|
+
export declare const LongLabel: {
|
|
52
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsBadgeProps>;
|
|
53
|
+
args: {
|
|
54
|
+
label: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
title: string;
|
|
57
|
+
variant: BadgeVariant;
|
|
58
|
+
appearance: BadgeAppearance;
|
|
59
|
+
size: import('./Badge.config').BadgeSize;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const Count: {
|
|
63
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
};
|
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
export declare enum ButtonColor {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Success = "success"
|
|
6
|
-
Danger = "danger",
|
|
7
|
-
Warning = "warning",
|
|
8
|
-
Neutral = "neutral"
|
|
2
|
+
Brand = "brand",
|
|
3
|
+
BrandSecondary = "brand-secondary",
|
|
4
|
+
Destructive = "destructive",
|
|
5
|
+
Success = "success"
|
|
9
6
|
}
|
|
10
7
|
export declare enum ButtonVariant {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
Primary = "primary",
|
|
9
|
+
Secondary = "secondary",
|
|
10
|
+
Ghost = "ghost"
|
|
14
11
|
}
|
|
15
12
|
export declare enum ButtonSize {
|
|
16
|
-
|
|
13
|
+
Small = "sm",
|
|
17
14
|
Medium = "md",
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export declare enum ButtonIconPosition {
|
|
21
|
-
Right = "right",
|
|
22
|
-
Left = "left"
|
|
23
|
-
}
|
|
24
|
-
export declare enum ButtonElevation {
|
|
25
|
-
Elevation1 = 1,
|
|
26
|
-
Elevation2 = 2,
|
|
27
|
-
Elevation3 = 3,
|
|
28
|
-
Elevation4 = 4
|
|
15
|
+
Large = "lg"
|
|
29
16
|
}
|
|
30
17
|
export interface ButtonColorProps {
|
|
31
18
|
type: StringConstructor;
|
|
@@ -42,10 +29,6 @@ export interface ButtonSizeProps {
|
|
|
42
29
|
default: ButtonSize;
|
|
43
30
|
options: ButtonSize[];
|
|
44
31
|
}
|
|
45
|
-
export interface ButtonElevationProps {
|
|
46
|
-
type: NumberConstructor;
|
|
47
|
-
options: ButtonElevation[];
|
|
48
|
-
}
|
|
49
32
|
export interface ButtonDisabledProps {
|
|
50
33
|
type: BooleanConstructor;
|
|
51
34
|
default: boolean;
|
|
@@ -58,11 +41,6 @@ export interface ButtonIconFillProps {
|
|
|
58
41
|
type: BooleanConstructor;
|
|
59
42
|
default: boolean;
|
|
60
43
|
}
|
|
61
|
-
export interface ButtonIconPositionProps {
|
|
62
|
-
type: StringConstructor;
|
|
63
|
-
default: ButtonIconPosition;
|
|
64
|
-
options: ButtonIconPosition[];
|
|
65
|
-
}
|
|
66
44
|
export interface ButtonIdProps {
|
|
67
45
|
type: StringConstructor;
|
|
68
46
|
default: string;
|
|
@@ -82,11 +60,10 @@ export interface ButtonConfig {
|
|
|
82
60
|
color: ButtonColorProps;
|
|
83
61
|
variant: ButtonVariantProps;
|
|
84
62
|
size: ButtonSizeProps;
|
|
85
|
-
elevation: ButtonElevationProps;
|
|
86
63
|
disabled: ButtonDisabledProps;
|
|
87
|
-
|
|
64
|
+
leftIcon: ButtonIconProps;
|
|
65
|
+
rightIcon: ButtonIconProps;
|
|
88
66
|
iconFill: ButtonIconFillProps;
|
|
89
|
-
iconPosition: ButtonIconPositionProps;
|
|
90
67
|
id: ButtonIdProps;
|
|
91
68
|
testId: ButtonTestIdProps;
|
|
92
69
|
fullSize: ButtonFullSizeProps;
|
|
@@ -1,70 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { FocusEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { ButtonColor, ButtonSize, ButtonVariant } from './Button.config';
|
|
3
|
+
import { DsButtonTrackingData } from './Button.tracking';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type PushClickEventKnownOptions = {
|
|
12
|
-
[K in keyof PushClickEventOptions as string extends K ? never : number extends K ? never : K]: PushClickEventOptions[K];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Tracking payload for DsButton (data-owl 2.0.0).
|
|
16
|
-
*
|
|
17
|
-
* The consumer provides the element identity (`elementName`) and the shared
|
|
18
|
-
* business context (`product`, `productCategory`, `squadId`, `source`,
|
|
19
|
-
* `handler`, `businessFlow`). The button fills in what only it knows at click
|
|
20
|
-
* time — `elementType`, the page context (`pagePath`/`pageTitle`/`pageUrl`/
|
|
21
|
-
* `pageReferrer`) and `elementText` — but any value passed here always wins
|
|
22
|
-
* over those defaults.
|
|
23
|
-
*/
|
|
24
|
-
export type DsButtonTrackingData = Omit<PushClickEventKnownOptions, 'elementType' | 'pagePath' | 'pageTitle' | 'pageUrl' | 'pageReferrer'> & Partial<Pick<PushClickEventKnownOptions, 'elementType' | 'pagePath' | 'pageTitle' | 'pageUrl' | 'pageReferrer'>> & {
|
|
25
|
-
/** Any additional custom properties (converted to snake_case by data-owl). */
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
export interface DsButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
29
|
-
children: string | ReactNode;
|
|
30
|
-
className?: string;
|
|
31
|
-
size?: string;
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
icon?: string;
|
|
34
|
-
testId?: string;
|
|
35
|
-
id?: string;
|
|
36
|
-
elevation?: number;
|
|
37
|
-
variant?: string;
|
|
38
|
-
color?: string;
|
|
5
|
+
export type { DsButtonTrackingData };
|
|
6
|
+
export interface DsButtonProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
size?: `${ButtonSize}`;
|
|
9
|
+
leftIcon?: string;
|
|
10
|
+
rightIcon?: string;
|
|
39
11
|
iconFill?: boolean;
|
|
40
|
-
|
|
12
|
+
variant?: `${ButtonVariant}`;
|
|
13
|
+
color?: `${ButtonColor}`;
|
|
41
14
|
fullSize?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
42
16
|
trackingData?: DsButtonTrackingData;
|
|
17
|
+
id?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
type?: 'button' | 'submit' | 'reset';
|
|
21
|
+
name?: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
tabIndex?: number;
|
|
24
|
+
title?: string;
|
|
25
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
26
|
+
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
27
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
28
|
+
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
|
29
|
+
'aria-label'?: string;
|
|
30
|
+
'aria-labelledby'?: string;
|
|
31
|
+
'aria-describedby'?: string;
|
|
32
|
+
'aria-controls'?: string;
|
|
33
|
+
'aria-current'?: boolean | 'page' | 'step' | 'location' | 'date' | 'time';
|
|
34
|
+
'aria-expanded'?: boolean;
|
|
35
|
+
'aria-haspopup'?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
36
|
+
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
37
|
+
'aria-pressed'?: boolean | 'mixed';
|
|
43
38
|
}
|
|
44
39
|
declare const DsButton: {
|
|
45
|
-
({ children, className, onClick, size, disabled,
|
|
46
|
-
propTypes: {
|
|
47
|
-
color: PropTypes.Requireable<import('./Button.config').ButtonColor>;
|
|
48
|
-
variant: PropTypes.Requireable<import('./Button.config').ButtonVariant>;
|
|
49
|
-
size: PropTypes.Requireable<import('./Button.config').ButtonSize>;
|
|
50
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
51
|
-
icon: PropTypes.Requireable<string>;
|
|
52
|
-
iconFill: PropTypes.Requireable<boolean>;
|
|
53
|
-
iconPosition: PropTypes.Requireable<import('./Button.config').ButtonIconPosition>;
|
|
54
|
-
testId: PropTypes.Requireable<string>;
|
|
55
|
-
id: PropTypes.Requireable<string>;
|
|
56
|
-
fullSize: PropTypes.Requireable<boolean>;
|
|
57
|
-
trackingData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
58
|
-
elementName: PropTypes.Validator<string>;
|
|
59
|
-
elementType: PropTypes.Requireable<string>;
|
|
60
|
-
product: PropTypes.Validator<string>;
|
|
61
|
-
productCategory: PropTypes.Validator<string>;
|
|
62
|
-
squadId: PropTypes.Validator<string>;
|
|
63
|
-
source: PropTypes.Validator<string>;
|
|
64
|
-
handler: PropTypes.Validator<string>;
|
|
65
|
-
businessFlow: PropTypes.Validator<string>;
|
|
66
|
-
}>>;
|
|
67
|
-
};
|
|
40
|
+
({ children, className, onClick, onFocus, onBlur, onKeyDown, size, disabled, leftIcon, rightIcon, id, testId, variant, color, iconFill, fullSize, trackingData, type, name, value, tabIndex, title, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-controls": ariaControls, "aria-current": ariaCurrent, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHaspopup, "aria-live": ariaLive, "aria-pressed": ariaPressed, }: DsButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
68
41
|
displayName: string;
|
|
69
42
|
};
|
|
70
43
|
export default DsButton;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { BusinessFlow, EventHandler, EventSource, ProductCategory, Squad } from '@akad/data-owl';
|
|
2
2
|
import { Meta } from '@storybook/react';
|
|
3
3
|
import { DsButtonProps } from './Button';
|
|
4
|
-
import { ThemeProviderProps } from '../../
|
|
4
|
+
import { ThemeProviderProps } from '../../providers/ThemeProvider';
|
|
5
5
|
|
|
6
6
|
declare const componentProps: Meta;
|
|
7
7
|
export default componentProps;
|
|
8
8
|
export declare const Default: {
|
|
9
9
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsButtonProps>;
|
|
10
10
|
args: {
|
|
11
|
+
color: import('./Button.config').ButtonColor;
|
|
11
12
|
variant: import('./Button.config').ButtonVariant;
|
|
12
13
|
fullSize: boolean;
|
|
13
14
|
iconFill: boolean;
|
|
@@ -16,6 +17,14 @@ export declare const Default: {
|
|
|
16
17
|
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
17
18
|
};
|
|
18
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Todas as combinações: 3 variantes x 4 cores x 3 tamanhos, com os
|
|
22
|
+
* ícones nos dois lados. Os estados (hover, pressed, focus) aparecem ao
|
|
23
|
+
* interagir; a coluna Disabled mostra o estado desabilitado.
|
|
24
|
+
*/
|
|
25
|
+
export declare const Matrix: {
|
|
26
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
};
|
|
19
28
|
/**
|
|
20
29
|
* Exemplo com tracking do data-owl 2.0.0: o consumidor passa a identidade do
|
|
21
30
|
* elemento e o contexto de negócio; o botão preenche `elementType`,
|
|
@@ -33,6 +42,7 @@ export declare const WithTracking: {
|
|
|
33
42
|
handler: EventHandler;
|
|
34
43
|
businessFlow: BusinessFlow;
|
|
35
44
|
};
|
|
45
|
+
color: import('./Button.config').ButtonColor;
|
|
36
46
|
variant: import('./Button.config').ButtonVariant;
|
|
37
47
|
fullSize: boolean;
|
|
38
48
|
iconFill: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PushClickEventOptions } from '@akad/data-owl';
|
|
2
|
+
|
|
3
|
+
/** Named keys of `PushClickEventOptions`, without the custom-property index signature. */
|
|
4
|
+
type PushClickEventKnownOptions = {
|
|
5
|
+
[K in keyof PushClickEventOptions as string extends K ? never : number extends K ? never : K]: PushClickEventOptions[K];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Tracking payload for DsButton (data-owl 2.0.0).
|
|
9
|
+
*
|
|
10
|
+
* The consumer provides the element identity (`elementName`) and the shared
|
|
11
|
+
* business context (`product`, `productCategory`, `squadId`, `source`,
|
|
12
|
+
* `handler`, `businessFlow`). The button fills in what only it knows at click
|
|
13
|
+
* time — `elementType`, the page context (`pagePath`/`pageTitle`/`pageUrl`/
|
|
14
|
+
* `pageReferrer`) and `elementText` — but any value passed here always wins
|
|
15
|
+
* over those defaults.
|
|
16
|
+
*/
|
|
17
|
+
export type DsButtonTrackingData = Omit<PushClickEventKnownOptions, 'elementType' | 'pagePath' | 'pageTitle' | 'pageUrl' | 'pageReferrer'> & Partial<Pick<PushClickEventKnownOptions, 'elementType' | 'pagePath' | 'pageTitle' | 'pageUrl' | 'pageReferrer'>> & {
|
|
18
|
+
/** Any additional custom properties (converted to snake_case by data-owl). */
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
export declare const trackButtonClick: (trackingData: DsButtonTrackingData, text?: string) => void;
|
|
22
|
+
export {};
|
|
@@ -1,113 +1,67 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Primary = "primary",
|
|
6
|
-
PrimaryLight = "primary-light",
|
|
7
|
-
PrimaryLighter = "primary-lighter",
|
|
8
|
-
PrimaryLightest = "primary-lightest",
|
|
9
|
-
SecondaryDarker = "secondary-darker",
|
|
10
|
-
SecondaryDark = "secondary-dark",
|
|
11
|
-
Secondary = "secondary",
|
|
12
|
-
SecondaryLight = "secondary-light",
|
|
13
|
-
SecondaryLighter = "secondary-lighter",
|
|
14
|
-
SecondaryLightest = "secondary-lightest",
|
|
15
|
-
Neutral90 = "neutral-90",
|
|
16
|
-
Neutral80 = "neutral-80",
|
|
17
|
-
Neutral70 = "neutral-70",
|
|
18
|
-
Neutral60 = "neutral-60",
|
|
19
|
-
Neutral50 = "neutral-50",
|
|
20
|
-
Neutral40 = "neutral-40",
|
|
21
|
-
Neutral30 = "neutral-30",
|
|
22
|
-
Neutral20 = "neutral-20",
|
|
23
|
-
Neutral10 = "neutral-10",
|
|
24
|
-
Neutral05 = "neutral-05",
|
|
25
|
-
Neutral00 = "neutral-00",
|
|
26
|
-
SuccessDark = "success-dark",
|
|
27
|
-
Success = "success",
|
|
28
|
-
SuccessLight = "success-light",
|
|
29
|
-
SuccessLighter = "success-lighter",
|
|
30
|
-
WarningDark = "warning-dark",
|
|
31
|
-
Warning = "warning",
|
|
32
|
-
WarningLight = "warning-light",
|
|
33
|
-
WarningLighter = "warning-lighter",
|
|
34
|
-
DangerDark = "danger-dark",
|
|
35
|
-
Danger = "danger",
|
|
36
|
-
DangerLight = "danger-light",
|
|
37
|
-
DangerLighter = "danger-lighter",
|
|
38
|
-
InfoDark = "info-dark",
|
|
39
|
-
Info = "info",
|
|
40
|
-
InfoLight = "info-light",
|
|
41
|
-
InfoLighter = "info-lighter"
|
|
42
|
-
}
|
|
43
|
-
export declare enum CardSize {
|
|
44
|
-
None = "none",
|
|
45
|
-
Quark = "quark",
|
|
46
|
-
Nano = "nano",
|
|
47
|
-
XXXS = "xxxs",
|
|
48
|
-
XXS = "xxs",
|
|
49
|
-
XS = "xs"
|
|
1
|
+
export declare enum CardTag {
|
|
2
|
+
Div = "div",
|
|
3
|
+
Section = "section",
|
|
4
|
+
ListItem = "li"
|
|
50
5
|
}
|
|
51
|
-
export declare enum
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
6
|
+
export declare enum CardPadding {
|
|
7
|
+
Small = "sm",
|
|
8
|
+
Medium = "md",
|
|
9
|
+
Large = "lg"
|
|
55
10
|
}
|
|
56
11
|
export declare enum CardRadius {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
SM = "sm",
|
|
60
|
-
MD = "md",
|
|
61
|
-
LG = "lg",
|
|
62
|
-
XL = "xl",
|
|
63
|
-
XXL = "xxl",
|
|
64
|
-
XXXL = "xxxl",
|
|
65
|
-
Pill = "pill"
|
|
12
|
+
Large = "lg",
|
|
13
|
+
Small = "sm"
|
|
66
14
|
}
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
15
|
+
export declare enum CardColor {
|
|
16
|
+
Default = "default",
|
|
17
|
+
Subtle = "subtle",
|
|
18
|
+
Page = "page",
|
|
19
|
+
Muted = "muted",
|
|
20
|
+
Primary = "primary",
|
|
21
|
+
Info = "info",
|
|
22
|
+
Warning = "warning",
|
|
23
|
+
Destructive = "destructive"
|
|
71
24
|
}
|
|
72
|
-
export interface
|
|
25
|
+
export interface CardColorProps {
|
|
73
26
|
type: StringConstructor;
|
|
74
27
|
default: CardColor;
|
|
75
28
|
options: CardColor[];
|
|
76
29
|
}
|
|
77
|
-
export interface
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
default: CardBorder;
|
|
80
|
-
options: CardBorder[];
|
|
81
|
-
}
|
|
82
|
-
export interface CardIdProps {
|
|
30
|
+
export interface CardTagProps {
|
|
83
31
|
type: StringConstructor;
|
|
84
|
-
default:
|
|
32
|
+
default: CardTag;
|
|
33
|
+
options: CardTag[];
|
|
85
34
|
}
|
|
86
|
-
export interface
|
|
35
|
+
export interface CardPaddingProps {
|
|
87
36
|
type: StringConstructor;
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
export interface CardSizeProps {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: CardSize;
|
|
93
|
-
options: CardSize[];
|
|
37
|
+
default: CardPadding;
|
|
38
|
+
options: CardPadding[];
|
|
94
39
|
}
|
|
95
40
|
export interface CardRadiusProps {
|
|
96
41
|
type: StringConstructor;
|
|
97
42
|
default: CardRadius;
|
|
98
43
|
options: CardRadius[];
|
|
99
44
|
}
|
|
45
|
+
export interface CardBooleanProps {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface CardStringProps {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
}
|
|
100
53
|
export interface CardConfig {
|
|
101
54
|
name: string;
|
|
102
55
|
class: string;
|
|
103
56
|
props: {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
borderColor: CardBorderColorProps;
|
|
107
|
-
id: CardIdProps;
|
|
108
|
-
testId: CardTestIdProps;
|
|
109
|
-
size: CardSizeProps;
|
|
57
|
+
as: CardTagProps;
|
|
58
|
+
padding: CardPaddingProps;
|
|
110
59
|
radius: CardRadiusProps;
|
|
60
|
+
bgColor: CardColorProps;
|
|
61
|
+
borderColor: CardColorProps;
|
|
62
|
+
bordered: CardBooleanProps;
|
|
63
|
+
hoverEnabled: CardBooleanProps;
|
|
64
|
+
testId: CardStringProps;
|
|
111
65
|
};
|
|
112
66
|
}
|
|
113
67
|
declare const cardConfig: CardConfig;
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { CardColor, CardPadding, CardRadius, CardTag } from './Card.config';
|
|
3
3
|
|
|
4
4
|
export interface DsCardProps {
|
|
5
|
-
|
|
5
|
+
as?: `${CardTag}`;
|
|
6
|
+
padding?: `${CardPadding}`;
|
|
7
|
+
radius?: `${CardRadius}`;
|
|
8
|
+
bgColor?: `${CardColor}`;
|
|
9
|
+
borderColor?: `${CardColor}`;
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
hoverEnabled?: boolean;
|
|
6
12
|
testId?: string;
|
|
7
|
-
|
|
13
|
+
id?: string;
|
|
8
14
|
className?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
title?: string;
|
|
16
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
'aria-labelledby'?: string;
|
|
19
|
+
children?: ReactNode;
|
|
14
20
|
}
|
|
15
21
|
declare const DsCard: {
|
|
16
|
-
({
|
|
17
|
-
propTypes: {
|
|
18
|
-
id: PropTypes.Requireable<string>;
|
|
19
|
-
testId: PropTypes.Requireable<string>;
|
|
20
|
-
backgroundColor: PropTypes.Requireable<CardColor>;
|
|
21
|
-
border: PropTypes.Requireable<CardBorder>;
|
|
22
|
-
borderColor: PropTypes.Requireable<CardColor>;
|
|
23
|
-
radius: PropTypes.Requireable<import('./Card.config').CardRadius>;
|
|
24
|
-
};
|
|
22
|
+
({ as, padding, radius, bgColor, borderColor, bordered, hoverEnabled, testId, id, className, title, onClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, children, }: DsCardProps): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
25
23
|
displayName: string;
|
|
26
24
|
};
|
|
27
25
|
export default DsCard;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { CardBorder, CardRadius, CardSize } from './Card.config';
|
|
3
2
|
import { DsCardProps } from '.';
|
|
4
3
|
|
|
5
4
|
declare const ComponentProps: Meta;
|
|
@@ -7,58 +6,25 @@ export default ComponentProps;
|
|
|
7
6
|
export declare const Default: {
|
|
8
7
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
9
8
|
};
|
|
10
|
-
export declare const
|
|
11
|
-
render:
|
|
12
|
-
args: {
|
|
13
|
-
borderColor: string;
|
|
14
|
-
};
|
|
9
|
+
export declare const Paddings: {
|
|
10
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
11
|
};
|
|
16
|
-
export declare const
|
|
17
|
-
render:
|
|
18
|
-
args: {
|
|
19
|
-
border: CardBorder;
|
|
20
|
-
};
|
|
12
|
+
export declare const Colors: {
|
|
13
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
21
14
|
};
|
|
22
|
-
export declare const
|
|
23
|
-
render:
|
|
24
|
-
args: {
|
|
25
|
-
border: CardBorder;
|
|
26
|
-
};
|
|
15
|
+
export declare const Hover: {
|
|
16
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
27
17
|
};
|
|
28
|
-
export declare const
|
|
18
|
+
export declare const Borderless: {
|
|
29
19
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
30
20
|
args: {
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
bordered: boolean;
|
|
22
|
+
children: string;
|
|
33
23
|
};
|
|
34
24
|
};
|
|
35
|
-
export declare const
|
|
36
|
-
render:
|
|
37
|
-
args: {
|
|
38
|
-
backgroundColor: string;
|
|
39
|
-
};
|
|
25
|
+
export declare const Nested: {
|
|
26
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
40
27
|
};
|
|
41
|
-
export declare const
|
|
42
|
-
render:
|
|
43
|
-
args: {
|
|
44
|
-
size: CardSize;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const WithoutPadding: {
|
|
48
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
49
|
-
args: {
|
|
50
|
-
size: CardSize;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const WithRadius: {
|
|
54
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
55
|
-
args: {
|
|
56
|
-
radius: CardRadius;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export declare const WithoutRadius: {
|
|
60
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCardProps>;
|
|
61
|
-
args: {
|
|
62
|
-
radius: CardRadius;
|
|
63
|
-
};
|
|
28
|
+
export declare const AsSection: {
|
|
29
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
64
30
|
};
|