@akad/design-system 4.0.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/css/theme-aon.css +1 -1
- package/css/theme-bees.css +1 -1
- package/css/theme-bmc.css +1 -1
- package/css/theme-default.css +1 -1
- package/css/theme-linker.css +1 -1
- package/css/theme-oggi.css +1 -1
- package/css/theme-streetgo.css +1 -1
- package/package.json +13 -4
- package/react/react-lib.js +5376 -5010
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
- package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
- package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
- package/react/src/components/atoms/Badge/index.d.ts +4 -0
- package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
- package/react/src/components/atoms/Button/Button.d.ts +34 -61
- package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
- package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
- package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
- package/react/src/components/atoms/Card/Card.d.ts +16 -18
- package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
- package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
- package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
- package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
- package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
- package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
- package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
- package/react/src/components/atoms/IconButton/index.d.ts +4 -0
- package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
- package/react/src/components/atoms/Input/Input.d.ts +34 -15
- package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
- package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
- package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
- package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
- package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
- package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
- package/react/src/components/atoms/Radio/index.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
- package/react/src/components/atoms/Select/Select.d.ts +20 -10
- package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
- package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
- package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
- package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
- package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
- package/react/src/components/bosons/Container/Container.d.ts +3 -9
- package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
- package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
- package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
- package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
- package/react/src/components/index.d.ts +13 -16
- package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
- package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
- package/react/src/components/molecules/Accordion/index.d.ts +0 -4
- package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
- package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
- package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
- package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
- package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
- package/react/src/components/molecules/Alert/index.d.ts +4 -0
- package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
- package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
- package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -16
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
- package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
- package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
- package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
- package/react/src/components/molecules/Combobox/index.d.ts +4 -0
- package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
- package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
- package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
- package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
- package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
- package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
- package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
- package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
- package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
- package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
- package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
- package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
- package/react/src/components/molecules/Table/Table.d.ts +13 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
- package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
- package/react/src/components/molecules/Tabs/index.d.ts +0 -1
- package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
- package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
- package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
- package/react/src/components/propLeakage.test.d.ts +1 -0
- package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
- package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
- package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
- package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
- package/react/src/enum/layoutTag.d.ts +10 -0
- package/react/src/helpers/feedbackMessage.d.ts +22 -0
- package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
- package/react/src/helpers/testId.d.ts +7 -0
- package/react/src/helpers/testId.test.d.ts +1 -0
- package/react/src/helpers/useInternalValue.d.ts +23 -0
- package/react/src/helpers/useInternalValue.test.d.ts +1 -0
- package/scss/core/README.md +56 -0
- package/scss/core/base/typography.scss +3 -4
- package/scss/core/components/atoms/badge.scss +116 -0
- package/scss/core/components/atoms/button.scss +94 -797
- package/scss/core/components/atoms/card.scss +74 -126
- package/scss/core/components/atoms/checkbox.scss +110 -47
- package/scss/core/components/atoms/feedback-message.scss +38 -0
- package/scss/core/components/atoms/horizontal-rule.scss +4 -5
- package/scss/core/components/atoms/icon-button.scss +18 -0
- package/scss/core/components/atoms/icon.scss +53 -38
- package/scss/core/components/atoms/input.scss +248 -259
- package/scss/core/components/atoms/loading.scss +133 -77
- package/scss/core/components/atoms/radio.scss +84 -100
- package/scss/core/components/atoms/select.scss +151 -176
- package/scss/core/components/atoms/textarea.scss +154 -281
- package/scss/core/components/atoms/tooltip.scss +129 -149
- package/scss/core/components/bosons/caption.scss +10 -0
- package/scss/core/components/bosons/container.scss +5 -1
- package/scss/core/components/bosons/flex.scss +121 -0
- package/scss/core/components/bosons/grid.scss +39 -43
- package/scss/core/components/bosons/heading.scss +29 -0
- package/scss/core/components/bosons/label.scss +21 -0
- package/scss/core/components/bosons/paragraph.scss +62 -0
- package/scss/core/components/bosons/spacer.scss +6 -34
- package/scss/core/components/bosons/subtitle.scss +9 -0
- package/scss/core/components/bosons/wrapper.scss +10 -2
- package/scss/core/components/index.scss +19 -17
- package/scss/core/components/molecules/accordion.scss +42 -48
- package/scss/core/components/molecules/active-tags.scss +102 -28
- package/scss/core/components/molecules/alert.scss +145 -0
- package/scss/core/components/molecules/carousel.scss +4 -4
- package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
- package/scss/core/components/molecules/checkbox-group.scss +39 -0
- package/scss/core/components/molecules/combobox.scss +158 -0
- package/scss/core/components/molecules/indicator.scss +4 -6
- package/scss/core/components/molecules/inline-editable.scss +6 -8
- package/scss/core/components/molecules/password-confirmation.scss +11 -7
- package/scss/core/components/molecules/progress-bar.scss +85 -0
- package/scss/core/components/molecules/radio-card-group.scss +228 -0
- package/scss/core/components/molecules/radio-group.scss +45 -0
- package/scss/core/components/molecules/segment-control.scss +150 -0
- package/scss/core/components/molecules/stepper.scss +130 -57
- package/scss/core/components/molecules/table.scss +19 -18
- package/scss/core/components/molecules/tabs.scss +37 -215
- package/scss/core/components/organisms/modal.scss +68 -0
- package/scss/core/components/organisms/notification-list.scss +17 -17
- package/scss/core/components/templates/two-columns.scss +6 -6
- package/scss/core/functions/breakpoints.scss +4 -11
- package/scss/core/functions/index.scss +0 -3
- package/scss/core/functions/primitive.scss +68 -0
- package/scss/core/helpers/colors.scss +56 -187
- package/scss/core/helpers/display.scss +0 -148
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/order.scss +6 -4
- package/scss/core/index.scss +1 -1
- package/scss/core/mixins/breakpoints.scss +9 -47
- package/scss/core/mixins/choice.scss +88 -0
- package/scss/core/mixins/colors.scss +40 -0
- package/scss/core/mixins/index.scss +3 -2
- package/scss/core/mixins/typography.scss +22 -0
- package/scss/core/{tokens → primitives}/borders.scss +13 -14
- package/scss/core/primitives/breakpoints.scss +14 -0
- package/scss/core/primitives/colors.scss +174 -0
- package/scss/core/primitives/font.scss +34 -0
- package/scss/core/primitives/index.scss +8 -0
- package/scss/core/primitives/opacity.scss +40 -0
- package/scss/core/primitives/shadows.scss +36 -0
- package/scss/core/primitives/sizes.scss +28 -0
- package/scss/core/primitives/spacings.scss +28 -0
- package/scss/core/tokens/breakpoints.scss +12 -19
- package/scss/core/tokens/colors.scss +109 -0
- package/scss/core/tokens/font.scss +27 -0
- package/scss/core/tokens/index.scss +6 -6
- package/scss/core/tokens/sizes.scss +33 -0
- package/scss/core/tokens/spacings.scss +31 -39
- package/scss/core/tokens/typography.scss +144 -19
- package/scss/index.scss +7 -0
- package/scss/themes/aon/index.scss +76 -41
- package/scss/themes/aon/primitives.scss +35 -0
- package/scss/themes/bees/index.scss +52 -34
- package/scss/themes/bees/primitives.scss +19 -0
- package/scss/themes/bmc/index.scss +77 -42
- package/scss/themes/bmc/primitives.scss +33 -0
- package/scss/themes/default/index.scss +15 -59
- package/scss/themes/linker/index.scss +36 -17
- package/scss/themes/linker/primitives.scss +14 -0
- package/scss/themes/oggi/index.scss +77 -42
- package/scss/themes/oggi/primitives.scss +35 -0
- package/scss/themes/streetgo/index.scss +77 -42
- package/scss/themes/streetgo/primitives.scss +34 -0
- package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
- package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
- package/react/src/components/atoms/Caption/index.d.ts +0 -4
- package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
- package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
- package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
- package/react/src/components/atoms/Chip/index.d.ts +0 -4
- package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
- package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
- package/react/src/components/atoms/Heading/index.d.ts +0 -4
- package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
- package/react/src/components/atoms/Option/Option.d.ts +0 -30
- package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
- package/react/src/components/atoms/Option/index.d.ts +0 -4
- package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
- package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
- package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
- package/react/src/components/atoms/Progress/index.d.ts +0 -4
- package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
- package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
- package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
- package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
- package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
- package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
- package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
- package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
- package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
- package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
- package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
- package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
- package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
- package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
- package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
- package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
- package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
- package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
- package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
- package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
- package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
- package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
- package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
- package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
- package/react/src/components/molecules/Notification/index.d.ts +0 -4
- package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
- package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
- package/react/src/components/molecules/Tabs/types.d.ts +0 -23
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
- package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
- package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
- package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
- package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
- package/react/src/enum/colorProps.d.ts +0 -30
- package/scss/core/components/atoms/caption.scss +0 -13
- package/scss/core/components/atoms/chip.scss +0 -101
- package/scss/core/components/atoms/heading.scss +0 -70
- package/scss/core/components/atoms/option.scss +0 -78
- package/scss/core/components/atoms/paragraph.scss +0 -44
- package/scss/core/components/atoms/progress.scss +0 -16
- package/scss/core/components/atoms/radio-card.scss +0 -117
- package/scss/core/components/atoms/segment-control.scss +0 -143
- package/scss/core/components/atoms/subtitle.scss +0 -21
- package/scss/core/components/bosons/flex-layout.scss +0 -45
- package/scss/core/components/bosons/grid-layout.scss +0 -76
- package/scss/core/components/molecules/checkbox-card.scss +0 -480
- package/scss/core/components/molecules/editable-select.scss +0 -145
- package/scss/core/components/molecules/modal.scss +0 -70
- package/scss/core/components/molecules/notification.scss +0 -109
- package/scss/core/components/templates/split-layout.scss +0 -51
- package/scss/core/functions/fonts.scss +0 -17
- package/scss/core/functions/spacings.scss +0 -8
- package/scss/core/functions/tokens.scss +0 -14
- package/scss/core/helpers/elevation.scss +0 -16
- package/scss/core/tokens/icons.scss +0 -2
- package/scss/core/tokens/opacity.scss +0 -6
- package/scss/core/tokens/shadows.scss +0 -15
- package/scss/themes/aon/colors.scss +0 -83
- package/scss/themes/bees/colors.scss +0 -32
- package/scss/themes/bmc/colors.scss +0 -81
- package/scss/themes/default/colors.scss +0 -109
- package/scss/themes/linker/colors.scss +0 -35
- package/scss/themes/oggi/colors.scss +0 -81
- package/scss/themes/streetgo/colors.scss +0 -81
- /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
- /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
- /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
- /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
- /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
- /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
- /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
- /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
- /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
- /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
export declare enum EditableSelectSize {
|
|
2
|
-
Small = "small",
|
|
3
|
-
Medium = "medium",
|
|
4
|
-
Large = "large"
|
|
5
|
-
}
|
|
6
|
-
export interface EditableSelectOption {
|
|
7
|
-
label: string;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
name?: string;
|
|
10
|
-
id?: string | number;
|
|
11
|
-
}
|
|
12
|
-
export interface EditableSelectTestIdProps {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
}
|
|
16
|
-
export interface EditableSelectLabelProps {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
}
|
|
20
|
-
export interface EditableSelectDisabledProps {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface EditableSelectLoadingProps {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
}
|
|
27
|
-
export interface EditableSelectAnimatedProps {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface EditableSelectInputAutoFocusProps {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface EditableSelectPlaceholderProps {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: string;
|
|
38
|
-
}
|
|
39
|
-
export interface EditableSelectIconProps {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: undefined;
|
|
42
|
-
}
|
|
43
|
-
export interface EditableSelectNameProps {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: string;
|
|
46
|
-
}
|
|
47
|
-
export interface EditableSelectNoOptionsMessageProps {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
}
|
|
51
|
-
export interface EditableSelectOptionsProps {
|
|
52
|
-
type: ArrayConstructor;
|
|
53
|
-
default: never[];
|
|
54
|
-
}
|
|
55
|
-
export interface EditableSelectStatusProps {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
default: string;
|
|
58
|
-
}
|
|
59
|
-
export interface EditableSelectValueProps {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
}
|
|
63
|
-
export interface EditableSelectSizeProps {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
options: EditableSelectSize[];
|
|
66
|
-
default: EditableSelectSize;
|
|
67
|
-
}
|
|
68
|
-
export interface EditableSelectOnChangeHandlerProps {
|
|
69
|
-
type: FunctionConstructor;
|
|
70
|
-
default: () => void;
|
|
71
|
-
}
|
|
72
|
-
export interface EditableSelectOnBlurHandlerProps {
|
|
73
|
-
type: FunctionConstructor;
|
|
74
|
-
default: () => void;
|
|
75
|
-
}
|
|
76
|
-
export interface EditableSelectOnFocusHandlerProps {
|
|
77
|
-
type: FunctionConstructor;
|
|
78
|
-
default: () => void;
|
|
79
|
-
}
|
|
80
|
-
export interface EditableSelectOnSelectHandlerProps {
|
|
81
|
-
type: FunctionConstructor;
|
|
82
|
-
default: () => void;
|
|
83
|
-
}
|
|
84
|
-
export interface EditableSelectOnClearHandlerProps {
|
|
85
|
-
type: FunctionConstructor;
|
|
86
|
-
default: () => void;
|
|
87
|
-
}
|
|
88
|
-
export interface EditableSelectConfig {
|
|
89
|
-
name: string;
|
|
90
|
-
class: string;
|
|
91
|
-
props: {
|
|
92
|
-
label: EditableSelectLabelProps;
|
|
93
|
-
testId: EditableSelectTestIdProps;
|
|
94
|
-
animated: EditableSelectAnimatedProps;
|
|
95
|
-
inputAutoFocus: EditableSelectInputAutoFocusProps;
|
|
96
|
-
loading: EditableSelectLoadingProps;
|
|
97
|
-
disabled: EditableSelectDisabledProps;
|
|
98
|
-
icon: EditableSelectIconProps;
|
|
99
|
-
name: EditableSelectNameProps;
|
|
100
|
-
noOptionsMessage: EditableSelectNoOptionsMessageProps;
|
|
101
|
-
options: EditableSelectOptionsProps;
|
|
102
|
-
status: EditableSelectStatusProps;
|
|
103
|
-
value: EditableSelectValueProps;
|
|
104
|
-
size: EditableSelectSizeProps;
|
|
105
|
-
onChangeHandler: EditableSelectOnChangeHandlerProps;
|
|
106
|
-
onBlurHandler: EditableSelectOnBlurHandlerProps;
|
|
107
|
-
onFocusHandler: EditableSelectOnFocusHandlerProps;
|
|
108
|
-
onSelectHandler: EditableSelectOnSelectHandlerProps;
|
|
109
|
-
onClearHandler: EditableSelectOnClearHandlerProps;
|
|
110
|
-
placeholder: EditableSelectPlaceholderProps;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
declare const editableSelectConfig: EditableSelectConfig;
|
|
114
|
-
export default editableSelectConfig;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { EditableSelectOption } from './EditableSelect.config';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* DsEditableSelect - A combobox-style select component with two usage modes.
|
|
5
|
-
*
|
|
6
|
-
* ## Modes
|
|
7
|
-
*
|
|
8
|
-
* **Mode 1: Autocomplete (default)**
|
|
9
|
-
* The user types in the input and the parent component is responsible for
|
|
10
|
-
* filtering and updating the `options` prop accordingly. The dropdown appears
|
|
11
|
-
* only after the user starts typing.
|
|
12
|
-
*
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <DsEditableSelect
|
|
15
|
-
* label="Search"
|
|
16
|
-
* options={filteredOptions}
|
|
17
|
-
* value={inputValue}
|
|
18
|
-
* onChangeHandler={handleFilter}
|
|
19
|
-
* onSelectHandler={handleSelect}
|
|
20
|
-
* />
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* **Mode 2: Searchable Dropdown (showOptionsOnFocus=true)**
|
|
24
|
-
* The dropdown opens immediately when the input is focused, showing all
|
|
25
|
-
* available options. The component filters options internally as the user
|
|
26
|
-
* types. Clicking outside closes the dropdown.
|
|
27
|
-
*
|
|
28
|
-
* ```tsx
|
|
29
|
-
* <DsEditableSelect
|
|
30
|
-
* label="Choose"
|
|
31
|
-
* options={allOptions}
|
|
32
|
-
* value={selectedValue}
|
|
33
|
-
* showOptionsOnFocus
|
|
34
|
-
* onChangeHandler={handleChange}
|
|
35
|
-
* onSelectHandler={handleSelect}
|
|
36
|
-
* onClearHandler={handleClear}
|
|
37
|
-
* />
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* ## Selection lifecycle
|
|
41
|
-
*
|
|
42
|
-
* - `onChangeHandler(event)` — fires on every keystroke (both modes). Update
|
|
43
|
-
* the displayed text state from `event.target.value`.
|
|
44
|
-
* - `onSelectHandler(option)` — fires when a selection is committed:
|
|
45
|
-
* 1. user clicks an option in the dropdown (both modes), OR
|
|
46
|
-
* 2. (Searchable Dropdown only) user blurs the input with text that matches
|
|
47
|
-
* an option's label exactly (case-insensitive, trimmed — auto-select on
|
|
48
|
-
* blur).
|
|
49
|
-
* Update both the displayed text (to `option.label`) and the form-validated
|
|
50
|
-
* value (to `option.value`).
|
|
51
|
-
* - `onClearHandler()` — **Searchable Dropdown only**. Fires when the
|
|
52
|
-
* selection becomes invalid:
|
|
53
|
-
* 1. user blurs with text that does not match any option, OR
|
|
54
|
-
* 2. while typing, the value transitions from matching an option to not
|
|
55
|
-
* matching (e.g., user appends a character to a previously matched label).
|
|
56
|
-
* Clear the form-validated value so subsequent validation sees no selection.
|
|
57
|
-
*
|
|
58
|
-
* In Searchable Dropdown mode, on blur with no match the component **also**
|
|
59
|
-
* dispatches a native `input` event with empty value to force the input
|
|
60
|
-
* display to clear via your existing `onChangeHandler`. This guarantees the
|
|
61
|
-
* display does not retain a stale unmatched value, even if `onClearHandler`
|
|
62
|
-
* is not wired to clear the display.
|
|
63
|
-
*
|
|
64
|
-
* Autocomplete mode keeps the legacy contract: blur only fires
|
|
65
|
-
* `onBlurHandler`; typing only fires `onChangeHandler`. No auto-select, no
|
|
66
|
-
* clear, no native dispatch.
|
|
67
|
-
*
|
|
68
|
-
* ## Highlighted option
|
|
69
|
-
*
|
|
70
|
-
* The option whose label equals `value` (case-sensitive, exact) is rendered
|
|
71
|
-
* with the `--selected` modifier class for visual feedback when the dropdown
|
|
72
|
-
* reopens after a selection.
|
|
73
|
-
*
|
|
74
|
-
* ## Recommended consumer state shape
|
|
75
|
-
*
|
|
76
|
-
* Keep two separate state fields — one for what shows in the input, one for
|
|
77
|
-
* what the form validates:
|
|
78
|
-
*
|
|
79
|
-
* ```tsx
|
|
80
|
-
* const [displayValue, setDisplayValue] = useState('');
|
|
81
|
-
* const [selectedValue, setSelectedValue] = useState<string | null>(null);
|
|
82
|
-
*
|
|
83
|
-
* <DsEditableSelect
|
|
84
|
-
* value={displayValue}
|
|
85
|
-
* onChangeHandler={(e) => setDisplayValue(e.target.value)}
|
|
86
|
-
* onSelectHandler={(opt) => {
|
|
87
|
-
* setDisplayValue(opt.label);
|
|
88
|
-
* setSelectedValue(opt.value);
|
|
89
|
-
* }}
|
|
90
|
-
* onClearHandler={() => setSelectedValue(null)}
|
|
91
|
-
* />
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* Validate `selectedValue`, not `displayValue`. This guarantees that typed-but-
|
|
95
|
-
* not-selected text is treated as no selection.
|
|
96
|
-
*/
|
|
97
|
-
export interface DsEditableSelectProps {
|
|
98
|
-
label?: string;
|
|
99
|
-
name?: string;
|
|
100
|
-
testId?: string;
|
|
101
|
-
value?: string;
|
|
102
|
-
size?: string;
|
|
103
|
-
options?: EditableSelectOption[];
|
|
104
|
-
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement> | React.FormEvent<HTMLInputElement>) => void;
|
|
105
|
-
onSelectHandler?: (selectedOption: object) => void;
|
|
106
|
-
onClearHandler?: () => void;
|
|
107
|
-
icon?: string;
|
|
108
|
-
noOptionsMessage?: string;
|
|
109
|
-
disabled?: boolean;
|
|
110
|
-
status?: string;
|
|
111
|
-
placeholder?: string;
|
|
112
|
-
loading?: boolean;
|
|
113
|
-
animated?: boolean;
|
|
114
|
-
inputAutoFocus?: boolean;
|
|
115
|
-
onBlurHandler?: () => void;
|
|
116
|
-
onFocusHandler?: () => void;
|
|
117
|
-
showOptionsOnFocus?: boolean;
|
|
118
|
-
inputType?: string;
|
|
119
|
-
inputMin?: string;
|
|
120
|
-
inputMax?: string;
|
|
121
|
-
inputTooltip?: string;
|
|
122
|
-
inputTooltipPosition?: string;
|
|
123
|
-
inputTooltipPlacement?: string;
|
|
124
|
-
inputFeedback?: string;
|
|
125
|
-
inputHasFeedback?: boolean;
|
|
126
|
-
inputNoMargin?: boolean;
|
|
127
|
-
inputMask?: string | object;
|
|
128
|
-
inputOnKeyDownHandler?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
129
|
-
}
|
|
130
|
-
declare const DsEditableSelect: {
|
|
131
|
-
({ label, name, testId, value, options, size, onChangeHandler, onSelectHandler, onClearHandler, icon, noOptionsMessage, disabled, status, onBlurHandler, onFocusHandler, animated, inputAutoFocus, placeholder, loading, showOptionsOnFocus, inputType, inputMin, inputMax, inputTooltip, inputTooltipPosition, inputTooltipPlacement, inputFeedback, inputHasFeedback, inputNoMargin, inputMask, inputOnKeyDownHandler, }: DsEditableSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
displayName: string;
|
|
133
|
-
};
|
|
134
|
-
export default DsEditableSelect;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsEditableSelectProps } 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, DsEditableSelectProps>;
|
|
8
|
-
args: {
|
|
9
|
-
label: string;
|
|
10
|
-
name: string;
|
|
11
|
-
options: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const Disabled: {
|
|
18
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsEditableSelectProps>;
|
|
19
|
-
args: {
|
|
20
|
-
name: string;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
label: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EditableSelectOption } from './EditableSelect.config';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Filters options internally by the typed text (case-insensitive).
|
|
5
|
-
* Used when showOptionsOnFocus=true, as the component takes
|
|
6
|
-
* responsibility for filtering options based on the input value.
|
|
7
|
-
*/
|
|
8
|
-
export declare const filterOptionsInternally: (allOptions: EditableSelectOption[], searchTerm: string) => EditableSelectOption[];
|
|
9
|
-
/**
|
|
10
|
-
* Returns options without filtering.
|
|
11
|
-
* Used when showOptionsOnFocus=false (default behavior),
|
|
12
|
-
* as filtering is the parent component's responsibility
|
|
13
|
-
* through the options prop.
|
|
14
|
-
*/
|
|
15
|
-
export declare const getOptionsFromParent: (allOptions: EditableSelectOption[]) => EditableSelectOption[];
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare enum ModalElevation {
|
|
2
|
-
Elevation1 = 1,
|
|
3
|
-
Elevation2 = 2,
|
|
4
|
-
Elevation3 = 3,
|
|
5
|
-
Elevation4 = 4
|
|
6
|
-
}
|
|
7
|
-
export interface ModalElevationProps {
|
|
8
|
-
type: NumberConstructor;
|
|
9
|
-
options: readonly ModalElevation[];
|
|
10
|
-
}
|
|
11
|
-
export declare enum ModalVariant {
|
|
12
|
-
Squared = "squared",
|
|
13
|
-
Rounded = "rounded"
|
|
14
|
-
}
|
|
15
|
-
export interface ModalVariantProps {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: ModalVariant;
|
|
18
|
-
options: ModalVariant[];
|
|
19
|
-
}
|
|
20
|
-
export interface ModalCancelBtnTextProps {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ModalConfirmBtnTextProps {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ModalIsModalOpenProps {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface ModalConfig {
|
|
33
|
-
name: string;
|
|
34
|
-
class: string;
|
|
35
|
-
props: {
|
|
36
|
-
elevation: ModalElevationProps;
|
|
37
|
-
variant: ModalVariantProps;
|
|
38
|
-
cancelBtnText: ModalCancelBtnTextProps;
|
|
39
|
-
confirmBtnText: ModalConfirmBtnTextProps;
|
|
40
|
-
isModalOpen: ModalIsModalOpenProps;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
declare const modalConfig: ModalConfig;
|
|
44
|
-
export default modalConfig;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
export interface DsModalProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
content: ReactNode;
|
|
8
|
-
cancelBtnText: string;
|
|
9
|
-
confirmBtnText: string;
|
|
10
|
-
variant: string;
|
|
11
|
-
elevation?: number;
|
|
12
|
-
isModalOpen: boolean;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
onCancel?: () => void;
|
|
15
|
-
onConfirm?: () => void;
|
|
16
|
-
}
|
|
17
|
-
declare const DsModal: {
|
|
18
|
-
({ className, title, content, cancelBtnText, confirmBtnText, variant, elevation, isModalOpen, onClose, onCancel, onConfirm, ...props }: DsModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
-
propTypes: {
|
|
20
|
-
firstButtonText: PropTypes.Requireable<string>;
|
|
21
|
-
confirmBtnText: PropTypes.Requireable<string>;
|
|
22
|
-
cancelBtnText: PropTypes.Requireable<string>;
|
|
23
|
-
variant: PropTypes.Requireable<import('./Modal.config').ModalVariant>;
|
|
24
|
-
elevation: PropTypes.Requireable<import('./Modal.config').ModalElevation>;
|
|
25
|
-
isModalOpen: PropTypes.Requireable<boolean>;
|
|
26
|
-
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
|
-
};
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
31
|
-
export default DsModal;
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
-
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
10
|
-
isModalOpen: boolean;
|
|
11
|
-
variant: import('.').ModalVariant;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const ModalSquared: {
|
|
15
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
16
|
-
args: {
|
|
17
|
-
variant: string;
|
|
18
|
-
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
19
|
-
isModalOpen: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const ModalWithButtons: {
|
|
23
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
24
|
-
args: {
|
|
25
|
-
cancelBtnText: string;
|
|
26
|
-
confirmBtnText: string;
|
|
27
|
-
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
28
|
-
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
29
|
-
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
30
|
-
isModalOpen: boolean;
|
|
31
|
-
variant: import('.').ModalVariant;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const ModalSquaredWithButtons: {
|
|
35
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsModalProps>;
|
|
36
|
-
args: {
|
|
37
|
-
variant: string;
|
|
38
|
-
cancelBtnText: string;
|
|
39
|
-
confirmBtnText: string;
|
|
40
|
-
onCancel: import('@storybook/addon-actions').HandlerFunction;
|
|
41
|
-
onConfirm: import('@storybook/addon-actions').HandlerFunction;
|
|
42
|
-
onClose: import('@storybook/addon-actions').HandlerFunction;
|
|
43
|
-
isModalOpen: boolean;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare enum NotificationType {
|
|
2
|
-
Success = "success",
|
|
3
|
-
Danger = "danger",
|
|
4
|
-
Warning = "warning",
|
|
5
|
-
Info = "info"
|
|
6
|
-
}
|
|
7
|
-
export declare enum NotificationVariant {
|
|
8
|
-
Rounded = "rounded",
|
|
9
|
-
Squared = "squared"
|
|
10
|
-
}
|
|
11
|
-
export interface NotificationTypeProps {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: NotificationType;
|
|
14
|
-
options: NotificationType[];
|
|
15
|
-
}
|
|
16
|
-
export interface IdProps {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
}
|
|
19
|
-
export interface AutoCloseProps {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface AutoCloseTimerProps {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
default: number;
|
|
26
|
-
}
|
|
27
|
-
export interface DismissibleProps {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface ElevationProps {
|
|
32
|
-
type: NumberConstructor;
|
|
33
|
-
options: number[];
|
|
34
|
-
}
|
|
35
|
-
export interface NotificationVariantProps {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: NotificationVariant;
|
|
38
|
-
options: NotificationVariant[];
|
|
39
|
-
}
|
|
40
|
-
export interface ProgressBarProps {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface TestIdProps {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
}
|
|
48
|
-
export interface NotificationConfig {
|
|
49
|
-
name: string;
|
|
50
|
-
class: string;
|
|
51
|
-
props: {
|
|
52
|
-
type: NotificationTypeProps;
|
|
53
|
-
id: IdProps;
|
|
54
|
-
autoClose: AutoCloseProps;
|
|
55
|
-
autoCloseTimer: AutoCloseTimerProps;
|
|
56
|
-
dismissible: DismissibleProps;
|
|
57
|
-
elevation: ElevationProps;
|
|
58
|
-
variant: NotificationVariantProps;
|
|
59
|
-
progressBar: ProgressBarProps;
|
|
60
|
-
testId: TestIdProps;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
declare const notificationConfig: NotificationConfig;
|
|
64
|
-
export default notificationConfig;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface DsNotificationProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
variant?: string;
|
|
7
|
-
id: string;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
message?: ReactNode;
|
|
10
|
-
autoClose?: boolean;
|
|
11
|
-
autoCloseTimer?: number;
|
|
12
|
-
dismissible?: boolean;
|
|
13
|
-
elevation?: number;
|
|
14
|
-
progressBar?: boolean;
|
|
15
|
-
testId?: string;
|
|
16
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const DsNotification: {
|
|
19
|
-
({ className, type, variant, id, children, message, autoClose, autoCloseTimer, dismissible, elevation, progressBar, handleClose, testId, }: DsNotificationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
22
|
-
export default DsNotification;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsNotificationProps } from './Notification';
|
|
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, DsNotificationProps>;
|
|
8
|
-
args: {
|
|
9
|
-
className?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
variant?: string;
|
|
12
|
-
id: string;
|
|
13
|
-
children?: import('react').ReactNode;
|
|
14
|
-
message?: import('react').ReactNode;
|
|
15
|
-
autoClose?: boolean;
|
|
16
|
-
autoCloseTimer?: number;
|
|
17
|
-
dismissible?: boolean;
|
|
18
|
-
elevation?: number;
|
|
19
|
-
progressBar?: boolean;
|
|
20
|
-
testId?: string;
|
|
21
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const NotificationSuccess: {
|
|
25
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
26
|
-
args: {
|
|
27
|
-
type: string;
|
|
28
|
-
className?: string;
|
|
29
|
-
variant?: string;
|
|
30
|
-
id: string;
|
|
31
|
-
children?: import('react').ReactNode;
|
|
32
|
-
message?: import('react').ReactNode;
|
|
33
|
-
autoClose?: boolean;
|
|
34
|
-
autoCloseTimer?: number;
|
|
35
|
-
dismissible?: boolean;
|
|
36
|
-
elevation?: number;
|
|
37
|
-
progressBar?: boolean;
|
|
38
|
-
testId?: string;
|
|
39
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export declare const NotificationDanger: {
|
|
43
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
44
|
-
args: {
|
|
45
|
-
type: string;
|
|
46
|
-
className?: string;
|
|
47
|
-
variant?: string;
|
|
48
|
-
id: string;
|
|
49
|
-
children?: import('react').ReactNode;
|
|
50
|
-
message?: import('react').ReactNode;
|
|
51
|
-
autoClose?: boolean;
|
|
52
|
-
autoCloseTimer?: number;
|
|
53
|
-
dismissible?: boolean;
|
|
54
|
-
elevation?: number;
|
|
55
|
-
progressBar?: boolean;
|
|
56
|
-
testId?: string;
|
|
57
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export declare const NotificationWarning: {
|
|
61
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
62
|
-
args: {
|
|
63
|
-
type: string;
|
|
64
|
-
className?: string;
|
|
65
|
-
variant?: string;
|
|
66
|
-
id: string;
|
|
67
|
-
children?: import('react').ReactNode;
|
|
68
|
-
message?: import('react').ReactNode;
|
|
69
|
-
autoClose?: boolean;
|
|
70
|
-
autoCloseTimer?: number;
|
|
71
|
-
dismissible?: boolean;
|
|
72
|
-
elevation?: number;
|
|
73
|
-
progressBar?: boolean;
|
|
74
|
-
testId?: string;
|
|
75
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare const NotificationInfo: {
|
|
79
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsNotificationProps>;
|
|
80
|
-
args: {
|
|
81
|
-
type: string;
|
|
82
|
-
className?: string;
|
|
83
|
-
variant?: string;
|
|
84
|
-
id: string;
|
|
85
|
-
children?: import('react').ReactNode;
|
|
86
|
-
message?: import('react').ReactNode;
|
|
87
|
-
autoClose?: boolean;
|
|
88
|
-
autoCloseTimer?: number;
|
|
89
|
-
dismissible?: boolean;
|
|
90
|
-
elevation?: number;
|
|
91
|
-
progressBar?: boolean;
|
|
92
|
-
testId?: string;
|
|
93
|
-
handleClose?: (event: React.MouseEvent) => void;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TabsVariant } from './Tabs.config';
|
|
3
|
-
|
|
4
|
-
export interface DsTabProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
color?: string;
|
|
8
|
-
content?: ReactNode | string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
name?: string;
|
|
12
|
-
index: number;
|
|
13
|
-
title: ReactNode | string;
|
|
14
|
-
onClick?: (index: number) => void;
|
|
15
|
-
tabDataTestId?: string;
|
|
16
|
-
panelDataTestId?: string;
|
|
17
|
-
}
|
|
18
|
-
export type DsTabRenderProps = DsTabProps & {
|
|
19
|
-
variant: TabsVariant;
|
|
20
|
-
tabDomId: string;
|
|
21
|
-
panelDomId?: string;
|
|
22
|
-
hasPanel: boolean;
|
|
23
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
export interface ThemeProviderProps {
|
|
5
|
-
library: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
theme: string;
|
|
8
|
-
}
|
|
9
|
-
declare function ThemeProvider({ library, children, theme }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare namespace ThemeProvider {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
library: PropTypes.Requireable<string>;
|
|
13
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
14
|
-
theme: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default ThemeProvider;
|