@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,17 +1,26 @@
|
|
|
1
|
+
import { StepperPlatform, StepperState } from './Stepper.config';
|
|
2
|
+
|
|
1
3
|
export interface DsStepProps {
|
|
2
|
-
index?: number;
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
icon: string;
|
|
5
4
|
label: string;
|
|
6
|
-
|
|
5
|
+
optionalLabel?: string;
|
|
6
|
+
state?: `${StepperState}`;
|
|
7
7
|
}
|
|
8
8
|
export interface DsStepperProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
id?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
testId?: string;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
'aria-labelledby'?: string;
|
|
14
|
+
'aria-describedby'?: string;
|
|
15
|
+
steps: DsStepProps[];
|
|
16
|
+
currentStep?: number;
|
|
17
|
+
platform?: `${StepperPlatform}`;
|
|
18
|
+
truncateText?: boolean;
|
|
19
|
+
stateLabels?: Partial<Record<StepperState, string>>;
|
|
20
|
+
onChange?: (index: number) => void;
|
|
12
21
|
}
|
|
13
22
|
declare const DsStepper: {
|
|
14
|
-
({ steps,
|
|
23
|
+
({ id, testId, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, steps, currentStep, platform, truncateText, stateLabels, onChange, className, }: DsStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
15
24
|
displayName: string;
|
|
16
25
|
};
|
|
17
26
|
export default DsStepper;
|
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsStepperProps } from './Stepper';
|
|
2
|
+
import { DsStepperProps, DsStepProps } from './Stepper';
|
|
3
|
+
import { StepperState } from './Stepper.config';
|
|
3
4
|
|
|
4
5
|
declare const componentProps: Meta;
|
|
5
6
|
export default componentProps;
|
|
6
7
|
export declare const Default: {
|
|
7
8
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsStepperProps>;
|
|
8
9
|
args: {
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
currentStep: number;
|
|
11
|
+
steps: DsStepProps[];
|
|
12
|
+
'aria-label': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const OptionalLabel: {
|
|
16
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsStepperProps>;
|
|
17
|
+
args: {
|
|
18
|
+
currentStep: number;
|
|
19
|
+
steps: DsStepProps[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const Mobile: {
|
|
23
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsStepperProps>;
|
|
24
|
+
args: {
|
|
25
|
+
currentStep: number;
|
|
26
|
+
platform: string;
|
|
27
|
+
steps: DsStepProps[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const Truncated: {
|
|
31
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsStepperProps>;
|
|
32
|
+
args: {
|
|
33
|
+
currentStep: number;
|
|
34
|
+
truncateText: boolean;
|
|
35
|
+
steps: {
|
|
17
36
|
label: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
onChange: import('@storybook/addon-actions').HandlerFunction;
|
|
37
|
+
optionalLabel?: string;
|
|
38
|
+
state?: `${StepperState}`;
|
|
39
|
+
}[];
|
|
22
40
|
};
|
|
23
41
|
};
|
|
42
|
+
export declare const Interactive: {
|
|
43
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
};
|
|
45
|
+
export declare const Matrix: {
|
|
46
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export interface DsTableProps {
|
|
2
|
-
columns: Array<DsTableColumnsProps>;
|
|
3
|
-
data: Array<DsTableCoverageItem>;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
1
|
export interface DsTableColumnsProps {
|
|
7
2
|
name: string;
|
|
8
3
|
label?: React.ReactNode;
|
|
@@ -15,19 +10,15 @@ export interface DsTableCoverageItem {
|
|
|
15
10
|
valor: React.ReactNode;
|
|
16
11
|
lmi: React.ReactNode;
|
|
17
12
|
}
|
|
18
|
-
export interface
|
|
19
|
-
columns: Array<DsTableColumnsProps>;
|
|
20
|
-
item: DsTableCoverageItem;
|
|
21
|
-
}
|
|
22
|
-
export interface HeaderProps {
|
|
13
|
+
export interface TableHeaderProps {
|
|
23
14
|
type: ArrayConstructor;
|
|
24
15
|
default: unknown[];
|
|
25
16
|
}
|
|
26
|
-
export interface
|
|
17
|
+
export interface TableItemsProps {
|
|
27
18
|
type: ArrayConstructor;
|
|
28
19
|
default: unknown[];
|
|
29
20
|
}
|
|
30
|
-
export interface
|
|
21
|
+
export interface TableColumnsProps {
|
|
31
22
|
type: ArrayConstructor;
|
|
32
23
|
default: unknown[];
|
|
33
24
|
}
|
|
@@ -35,9 +26,9 @@ export interface TableConfig {
|
|
|
35
26
|
name: string;
|
|
36
27
|
class: string;
|
|
37
28
|
props: {
|
|
38
|
-
header:
|
|
39
|
-
items:
|
|
40
|
-
columns:
|
|
29
|
+
header: TableHeaderProps;
|
|
30
|
+
items: TableItemsProps;
|
|
31
|
+
columns: TableColumnsProps;
|
|
41
32
|
};
|
|
42
33
|
}
|
|
43
34
|
declare const tableConfig: TableConfig;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DsTableColumnsProps, DsTableCoverageItem } from './Table.config';
|
|
2
2
|
|
|
3
|
+
export interface DsTableRowProps {
|
|
4
|
+
columns: Array<DsTableColumnsProps>;
|
|
5
|
+
item: DsTableCoverageItem;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DsTableProps {
|
|
9
|
+
columns: Array<DsTableColumnsProps>;
|
|
10
|
+
data: Array<DsTableCoverageItem>;
|
|
11
|
+
className?: string;
|
|
12
|
+
testId?: string;
|
|
13
|
+
}
|
|
3
14
|
declare const DsTable: {
|
|
4
|
-
({ columns, data, className }: DsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
({ columns, data, className, testId }: DsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
5
16
|
displayName: string;
|
|
6
17
|
};
|
|
7
18
|
export default DsTable;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Segmented = "segmented",
|
|
13
|
-
Navigation = "navigation"
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DsTabsItem {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
icon?: string;
|
|
6
|
+
content?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
panelTestId?: string;
|
|
14
12
|
}
|
|
15
13
|
export interface TabsTabsProps {
|
|
16
14
|
type: ArrayConstructor;
|
|
@@ -20,23 +18,21 @@ export interface TabsSelectedTabProps {
|
|
|
20
18
|
type: NumberConstructor;
|
|
21
19
|
default: number;
|
|
22
20
|
}
|
|
23
|
-
export interface
|
|
24
|
-
type:
|
|
25
|
-
default:
|
|
26
|
-
options: TabsColor[];
|
|
21
|
+
export interface TabsFullWidthProps {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
27
24
|
}
|
|
28
25
|
export interface TabsClassNameProps {
|
|
29
26
|
type: StringConstructor;
|
|
30
27
|
default: string;
|
|
31
28
|
}
|
|
29
|
+
export interface TabsTestIdProps {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
}
|
|
32
33
|
export interface TabsOnChangeProps {
|
|
33
34
|
type: FunctionConstructor;
|
|
34
|
-
default: () => void;
|
|
35
|
-
}
|
|
36
|
-
export interface TabsVariantProps {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: TabsVariant;
|
|
39
|
-
options: TabsVariant[];
|
|
35
|
+
default: (index: number) => void;
|
|
40
36
|
}
|
|
41
37
|
export interface TabsConfig {
|
|
42
38
|
name: string;
|
|
@@ -44,9 +40,9 @@ export interface TabsConfig {
|
|
|
44
40
|
props: {
|
|
45
41
|
tabs: TabsTabsProps;
|
|
46
42
|
selectedTab: TabsSelectedTabProps;
|
|
47
|
-
|
|
48
|
-
variant: TabsVariantProps;
|
|
43
|
+
fullWidth: TabsFullWidthProps;
|
|
49
44
|
className: TabsClassNameProps;
|
|
45
|
+
testId: TabsTestIdProps;
|
|
50
46
|
onChange: TabsOnChangeProps;
|
|
51
47
|
};
|
|
52
48
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { DsTabProps } from './types';
|
|
2
|
+
import { DsTabsItem } from './Tabs.config';
|
|
4
3
|
|
|
5
|
-
export type { DsTabProps } from './types';
|
|
6
4
|
export interface DsTabsProps {
|
|
7
|
-
tabs:
|
|
5
|
+
tabs: DsTabsItem[];
|
|
8
6
|
selectedTab?: number;
|
|
9
|
-
color?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
variant?: TabsVariant;
|
|
12
7
|
onChange?: (index: number) => void;
|
|
8
|
+
fullWidth?: boolean;
|
|
13
9
|
'aria-label'?: string;
|
|
14
10
|
'aria-labelledby'?: string;
|
|
15
|
-
|
|
11
|
+
className?: string;
|
|
12
|
+
testId?: string;
|
|
16
13
|
}
|
|
17
|
-
declare const DsTabs: React.
|
|
14
|
+
declare const DsTabs: React.ForwardRefExoticComponent<DsTabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
15
|
export default DsTabs;
|
|
@@ -1,40 +1,67 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
2
|
import { DsTabsProps } from './Tabs';
|
|
3
|
-
import {
|
|
3
|
+
import { DsTabsItem } from './Tabs.config';
|
|
4
4
|
|
|
5
5
|
declare const componentProps: Meta;
|
|
6
6
|
export default componentProps;
|
|
7
7
|
export declare const Default: {
|
|
8
8
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTabsProps>;
|
|
9
9
|
args: {
|
|
10
|
-
|
|
11
|
-
selectedTab
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} | {
|
|
19
|
-
name: string;
|
|
20
|
-
title: string;
|
|
21
|
-
content: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
})[];
|
|
24
|
-
onChange: import('@storybook/addon-actions').HandlerFunction;
|
|
10
|
+
tabs: DsTabsItem[];
|
|
11
|
+
selectedTab?: number;
|
|
12
|
+
onChange?: (index: number) => void;
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
'aria-labelledby'?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
testId?: string;
|
|
25
18
|
};
|
|
26
19
|
};
|
|
27
|
-
export declare const
|
|
20
|
+
export declare const WithIcons: {
|
|
28
21
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTabsProps>;
|
|
29
22
|
args: {
|
|
30
23
|
tabs: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
content
|
|
24
|
+
icon: string;
|
|
25
|
+
label: import('react').ReactNode;
|
|
26
|
+
content?: import('react').ReactNode;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
hidden?: boolean;
|
|
29
|
+
name?: string;
|
|
30
|
+
testId?: string;
|
|
31
|
+
panelTestId?: string;
|
|
34
32
|
}[];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
selectedTab?: number;
|
|
34
|
+
onChange?: (index: number) => void;
|
|
35
|
+
fullWidth?: boolean;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
'aria-labelledby'?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
testId?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const WithDisabled: {
|
|
43
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTabsProps>;
|
|
44
|
+
args: {
|
|
45
|
+
tabs: DsTabsItem[];
|
|
46
|
+
selectedTab?: number;
|
|
47
|
+
onChange?: (index: number) => void;
|
|
48
|
+
fullWidth?: boolean;
|
|
49
|
+
'aria-label'?: string;
|
|
50
|
+
'aria-labelledby'?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
testId?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const FullWidth: {
|
|
56
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTabsProps>;
|
|
57
|
+
args: {
|
|
58
|
+
fullWidth: boolean;
|
|
59
|
+
tabs: DsTabsItem[];
|
|
60
|
+
selectedTab?: number;
|
|
61
|
+
onChange?: (index: number) => void;
|
|
62
|
+
'aria-label'?: string;
|
|
63
|
+
'aria-labelledby'?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
testId?: string;
|
|
39
66
|
};
|
|
40
67
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ModalTextProps {
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
default: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ModalBooleanProps {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ModalConfig {
|
|
10
|
+
name: string;
|
|
11
|
+
class: string;
|
|
12
|
+
props: {
|
|
13
|
+
cancelBtnText: ModalTextProps;
|
|
14
|
+
confirmBtnText: ModalTextProps;
|
|
15
|
+
isOpen: ModalBooleanProps;
|
|
16
|
+
showClose: ModalBooleanProps;
|
|
17
|
+
dismissible: ModalBooleanProps;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const modalConfig: ModalConfig;
|
|
21
|
+
export default modalConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface DsModalProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
'aria-label'?: string;
|
|
8
|
+
'aria-labelledby'?: string;
|
|
9
|
+
'aria-describedby'?: string;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
body?: ReactNode;
|
|
12
|
+
showClose?: boolean;
|
|
13
|
+
dismissible?: boolean;
|
|
14
|
+
cancelBtnText?: string;
|
|
15
|
+
confirmBtnText?: string;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onCancel?: () => void;
|
|
19
|
+
onConfirm?: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare const DsModal: {
|
|
22
|
+
({ id, className, testId, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, title, body, showClose, dismissible, cancelBtnText, confirmBtnText, isOpen, onClose, onCancel, onConfirm, }: DsModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export default DsModal;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsModalProps } from '.';
|
|
3
|
+
|
|
4
|
+
declare const componentProps: Meta;
|
|
5
|
+
export default componentProps;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
body: string;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const WithButtons: {
|
|
16
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
17
|
+
args: {
|
|
18
|
+
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
19
|
+
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
20
|
+
title: string;
|
|
21
|
+
body: string;
|
|
22
|
+
isOpen: boolean;
|
|
23
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const OnlyConfirm: {
|
|
27
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
28
|
+
args: {
|
|
29
|
+
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
30
|
+
title: string;
|
|
31
|
+
body: string;
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const AlertInsideBody: {
|
|
37
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
38
|
+
args: {
|
|
39
|
+
body: import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
41
|
+
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
42
|
+
title: string;
|
|
43
|
+
isOpen: boolean;
|
|
44
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const WithoutClose: {
|
|
48
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
49
|
+
args: {
|
|
50
|
+
showClose: boolean;
|
|
51
|
+
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
52
|
+
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
53
|
+
title: string;
|
|
54
|
+
body: string;
|
|
55
|
+
isOpen: boolean;
|
|
56
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const NotDismissible: {
|
|
60
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
61
|
+
args: {
|
|
62
|
+
showClose: boolean;
|
|
63
|
+
dismissible: boolean;
|
|
64
|
+
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
65
|
+
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
66
|
+
title: string;
|
|
67
|
+
body: string;
|
|
68
|
+
isOpen: boolean;
|
|
69
|
+
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const Matrix: {
|
|
73
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DsAlertProps } from '../../molecules/Alert';
|
|
2
|
+
import { NotificationListPosition } from './NotificationList.config';
|
|
3
3
|
|
|
4
4
|
export interface DsNotificationListProps {
|
|
5
5
|
className?: string;
|
|
6
|
-
position?:
|
|
6
|
+
position?: `${NotificationListPosition}`;
|
|
7
7
|
fluid?: boolean;
|
|
8
|
-
notifications:
|
|
8
|
+
notifications: DsAlertProps[];
|
|
9
9
|
removeNotification: (notificationid: string) => void;
|
|
10
|
+
testId?: string;
|
|
10
11
|
}
|
|
11
12
|
declare const DsNotificationList: {
|
|
12
|
-
({ className, position, fluid, notifications, removeNotification, }: DsNotificationListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
position: PropTypes.Requireable<import('./NotificationList.config').NotificationListPosition>;
|
|
15
|
-
fluid: PropTypes.Requireable<boolean>;
|
|
16
|
-
notifications: PropTypes.Requireable<any[]>;
|
|
17
|
-
removeNotification: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
};
|
|
13
|
+
({ className, position, fluid, notifications, removeNotification, testId, }: DsNotificationListProps): import("react/jsx-runtime").JSX.Element;
|
|
19
14
|
displayName: string;
|
|
20
15
|
};
|
|
21
16
|
export default DsNotificationList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts
RENAMED
|
@@ -3,15 +3,20 @@ export declare enum Theme {
|
|
|
3
3
|
Dark = "dark"
|
|
4
4
|
}
|
|
5
5
|
export declare enum Library {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Default = "default",
|
|
7
|
+
Aon = "aon",
|
|
8
|
+
Bees = "bees",
|
|
9
|
+
Bmc = "bmc",
|
|
10
|
+
Linker = "linker",
|
|
11
|
+
Oggi = "oggi",
|
|
12
|
+
Streetgo = "streetgo"
|
|
8
13
|
}
|
|
9
|
-
export interface
|
|
14
|
+
export interface ThemeProviderThemeProps {
|
|
10
15
|
type: StringConstructor;
|
|
11
16
|
default: Theme;
|
|
12
17
|
options: Theme[];
|
|
13
18
|
}
|
|
14
|
-
export interface
|
|
19
|
+
export interface ThemeProviderLibraryProps {
|
|
15
20
|
type: StringConstructor;
|
|
16
21
|
default: Library;
|
|
17
22
|
options: Library[];
|
|
@@ -20,8 +25,8 @@ export interface ThemeProviderConfig {
|
|
|
20
25
|
name: string;
|
|
21
26
|
class: string;
|
|
22
27
|
props: {
|
|
23
|
-
theme:
|
|
24
|
-
library:
|
|
28
|
+
theme: ThemeProviderThemeProps;
|
|
29
|
+
library: ThemeProviderLibraryProps;
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
declare const themeProviderConfig: ThemeProviderConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ThemeProviderProps {
|
|
4
|
+
library: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
theme: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ThemeProvider: {
|
|
9
|
+
({ library, children, theme }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { ThemeProviderProps } from '.';
|
|
3
|
+
|
|
4
|
+
declare const componentProps: Meta;
|
|
5
|
+
export default componentProps;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps>;
|
|
8
|
+
args: {
|
|
9
|
+
library: string;
|
|
10
|
+
theme: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Todas as marcas lado a lado, com os mesmos componentes: só o `data-library`
|
|
15
|
+
* muda a cor.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AllLibraries: StoryFn<ThemeProviderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
|
|
3
1
|
export interface DsTwoColumnsProps {
|
|
4
|
-
breadcrumb?: React.
|
|
5
|
-
header: React.
|
|
6
|
-
main: React.
|
|
7
|
-
sidebar: React.
|
|
2
|
+
breadcrumb?: React.ReactNode;
|
|
3
|
+
header: React.ReactNode;
|
|
4
|
+
main: React.ReactNode;
|
|
5
|
+
sidebar: React.ReactNode;
|
|
6
|
+
testId?: string;
|
|
8
7
|
}
|
|
9
8
|
declare const DsTwoColumns: {
|
|
10
|
-
({ header, main, sidebar, breadcrumb, }: DsTwoColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
breadcrumb: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
-
main: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
sidebar: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
-
};
|
|
9
|
+
({ header, main, sidebar, breadcrumb, testId, }: DsTwoColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
10
|
displayName: string;
|
|
18
11
|
};
|
|
19
12
|
export default DsTwoColumns;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { DsTwoColumnsProps } from '.';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer,
|
|
8
|
-
args: {};
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTwoColumnsProps>;
|
|
9
8
|
};
|