@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,8 +1,4 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
|
-
export * from './AccordionItem';
|
|
3
2
|
export * from './Accordion.config';
|
|
4
|
-
export * from './AccordionItem.config';
|
|
5
3
|
export { default as DsAccordion } from './Accordion';
|
|
6
|
-
export { default as DsAccordionItem } from './AccordionItem';
|
|
7
4
|
export { default as accordionConfig } from './Accordion.config';
|
|
8
|
-
export { default as accordionItemConfig } from './AccordionItem.config';
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface ActiveTag {
|
|
2
|
+
id: string;
|
|
3
|
+
text: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
hiddenClose?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ActiveTagsStringProps {
|
|
2
8
|
type: StringConstructor;
|
|
3
9
|
default: string;
|
|
4
10
|
}
|
|
5
|
-
export interface
|
|
11
|
+
export interface ActiveTagsArrayProps {
|
|
6
12
|
type: ArrayConstructor;
|
|
7
|
-
default:
|
|
13
|
+
default: ActiveTag[];
|
|
8
14
|
}
|
|
9
|
-
export interface
|
|
15
|
+
export interface ActiveTagsHandleTagCloseProps {
|
|
10
16
|
type: FunctionConstructor;
|
|
11
|
-
default: () => void;
|
|
17
|
+
default: (_indexToRemove: number, _tag: ActiveTag) => void;
|
|
12
18
|
}
|
|
13
19
|
export interface ActiveTagsConfig {
|
|
14
20
|
name: string;
|
|
15
21
|
class: string;
|
|
16
22
|
props: {
|
|
17
|
-
title:
|
|
18
|
-
activeTags:
|
|
19
|
-
handleTagClose:
|
|
23
|
+
title: ActiveTagsStringProps;
|
|
24
|
+
activeTags: ActiveTagsArrayProps;
|
|
25
|
+
handleTagClose: ActiveTagsHandleTagCloseProps;
|
|
26
|
+
testId: ActiveTagsStringProps;
|
|
20
27
|
};
|
|
21
28
|
}
|
|
22
29
|
declare const activeTagsConfig: ActiveTagsConfig;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
icon: string;
|
|
5
|
-
hiddenClose?: boolean;
|
|
6
|
-
}
|
|
1
|
+
import { ActiveTag } from './ActiveTags.config';
|
|
2
|
+
|
|
3
|
+
export type { ActiveTag };
|
|
7
4
|
export interface DsActiveTagsProps {
|
|
8
|
-
title
|
|
9
|
-
activeTags
|
|
10
|
-
handleTagClose
|
|
5
|
+
title?: string;
|
|
6
|
+
activeTags?: ActiveTag[];
|
|
7
|
+
handleTagClose?: (_indexToRemove: number, _tag: ActiveTag) => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
'aria-labelledby'?: string;
|
|
13
|
+
'aria-describedby'?: string;
|
|
11
14
|
}
|
|
12
15
|
declare const DsActiveTags: {
|
|
13
|
-
({ title, activeTags, handleTagClose, }: DsActiveTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
({ title, activeTags, handleTagClose, id, className, testId, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, }: DsActiveTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
displayName: string;
|
|
15
18
|
};
|
|
16
19
|
export default DsActiveTags;
|
|
@@ -1,17 +1,51 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsActiveTagsProps } from './ActiveTags';
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { ActiveTag, DsActiveTagsProps } from './ActiveTags';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const componentProps: Meta;
|
|
5
|
+
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsActiveTagsProps>;
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
activeTags: ActiveTag[];
|
|
11
|
+
handleTagClose: import('@storybook/addon-actions').HandlerFunction;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const Static: {
|
|
15
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsActiveTagsProps>;
|
|
16
|
+
args: {
|
|
17
|
+
title: string;
|
|
18
|
+
activeTags: ActiveTag[];
|
|
19
|
+
handleTagClose: import('@storybook/addon-actions').HandlerFunction;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const WithoutIcon: {
|
|
7
23
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsActiveTagsProps>;
|
|
8
24
|
args: {
|
|
9
25
|
title: string;
|
|
10
26
|
activeTags: {
|
|
27
|
+
id: string;
|
|
28
|
+
text: string;
|
|
29
|
+
}[];
|
|
30
|
+
handleTagClose: import('@storybook/addon-actions').HandlerFunction;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const Wrapping: {
|
|
34
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsActiveTagsProps>;
|
|
35
|
+
args: {
|
|
36
|
+
title: string;
|
|
37
|
+
activeTags: {
|
|
38
|
+
id: string;
|
|
11
39
|
text: string;
|
|
12
40
|
icon: string;
|
|
13
|
-
title: string;
|
|
14
41
|
}[];
|
|
15
42
|
handleTagClose: import('@storybook/addon-actions').HandlerFunction;
|
|
16
43
|
};
|
|
44
|
+
decorators: ((Story: StoryFn) => import("react/jsx-runtime").JSX.Element)[];
|
|
45
|
+
};
|
|
46
|
+
export declare const Matrix: {
|
|
47
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
};
|
|
49
|
+
export declare const Removing: {
|
|
50
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
17
51
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum AlertType {
|
|
2
|
+
Info = "info",
|
|
3
|
+
Success = "success",
|
|
4
|
+
Warning = "warning",
|
|
5
|
+
Destructive = "destructive"
|
|
6
|
+
}
|
|
7
|
+
export interface AlertTypeProps {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: AlertType;
|
|
10
|
+
options: AlertType[];
|
|
11
|
+
}
|
|
12
|
+
export interface AlertIdProps {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
}
|
|
15
|
+
export interface AlertIconProps {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface AlertAutoCloseProps {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface AlertAutoCloseTimerProps {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
}
|
|
27
|
+
export interface AlertDismissibleProps {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface AlertProgressBarProps {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface AlertTestIdProps {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AlertConfig {
|
|
40
|
+
name: string;
|
|
41
|
+
class: string;
|
|
42
|
+
props: {
|
|
43
|
+
type: AlertTypeProps;
|
|
44
|
+
id: AlertIdProps;
|
|
45
|
+
icon: AlertIconProps;
|
|
46
|
+
autoClose: AlertAutoCloseProps;
|
|
47
|
+
autoCloseTimer: AlertAutoCloseTimerProps;
|
|
48
|
+
dismissible: AlertDismissibleProps;
|
|
49
|
+
progressBar: AlertProgressBarProps;
|
|
50
|
+
testId: AlertTestIdProps;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
declare const alertConfig: AlertConfig;
|
|
54
|
+
export default alertConfig;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MouseEvent, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { AlertType } from './Alert.config';
|
|
3
|
+
|
|
4
|
+
export interface DsAlertAction {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface DsAlertProps {
|
|
9
|
+
id: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
role?: 'alert' | 'status';
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
'aria-labelledby'?: string;
|
|
14
|
+
'aria-describedby'?: string;
|
|
15
|
+
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
16
|
+
onMouseLeave?: MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
type?: `${AlertType}`;
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
message?: ReactNode;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
action?: DsAlertAction;
|
|
22
|
+
icon?: boolean;
|
|
23
|
+
autoClose?: boolean;
|
|
24
|
+
autoCloseTimer?: number;
|
|
25
|
+
dismissible?: boolean;
|
|
26
|
+
progressBar?: boolean;
|
|
27
|
+
testId?: string;
|
|
28
|
+
handleClose?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
+
}
|
|
30
|
+
declare const DsAlert: {
|
|
31
|
+
({ id, className, role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, type, title, message, children, action, icon, autoClose, autoCloseTimer, dismissible, progressBar, handleClose, testId, onMouseEnter, onMouseLeave, }: DsAlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
export default DsAlert;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsAlertProps } from './Alert';
|
|
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, DsAlertProps>;
|
|
8
|
+
args: {
|
|
9
|
+
id: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
role?: "alert" | "status";
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
'aria-labelledby'?: string;
|
|
14
|
+
'aria-describedby'?: string;
|
|
15
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
16
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
type?: `${import('.').AlertType}`;
|
|
18
|
+
title?: import('react').ReactNode;
|
|
19
|
+
message?: import('react').ReactNode;
|
|
20
|
+
children?: import('react').ReactNode;
|
|
21
|
+
action?: import('.').DsAlertAction;
|
|
22
|
+
icon?: boolean;
|
|
23
|
+
autoClose?: boolean;
|
|
24
|
+
autoCloseTimer?: number;
|
|
25
|
+
dismissible?: boolean;
|
|
26
|
+
progressBar?: boolean;
|
|
27
|
+
testId?: string;
|
|
28
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const AlertInfo: {
|
|
32
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
33
|
+
args: {
|
|
34
|
+
type: string;
|
|
35
|
+
id: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
role?: "alert" | "status";
|
|
38
|
+
'aria-label'?: string;
|
|
39
|
+
'aria-labelledby'?: string;
|
|
40
|
+
'aria-describedby'?: string;
|
|
41
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
42
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
43
|
+
title?: import('react').ReactNode;
|
|
44
|
+
message?: import('react').ReactNode;
|
|
45
|
+
children?: import('react').ReactNode;
|
|
46
|
+
action?: import('.').DsAlertAction;
|
|
47
|
+
icon?: boolean;
|
|
48
|
+
autoClose?: boolean;
|
|
49
|
+
autoCloseTimer?: number;
|
|
50
|
+
dismissible?: boolean;
|
|
51
|
+
progressBar?: boolean;
|
|
52
|
+
testId?: string;
|
|
53
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const AlertSuccess: {
|
|
57
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
58
|
+
args: {
|
|
59
|
+
type: string;
|
|
60
|
+
id: string;
|
|
61
|
+
className?: string;
|
|
62
|
+
role?: "alert" | "status";
|
|
63
|
+
'aria-label'?: string;
|
|
64
|
+
'aria-labelledby'?: string;
|
|
65
|
+
'aria-describedby'?: string;
|
|
66
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
67
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
68
|
+
title?: import('react').ReactNode;
|
|
69
|
+
message?: import('react').ReactNode;
|
|
70
|
+
children?: import('react').ReactNode;
|
|
71
|
+
action?: import('.').DsAlertAction;
|
|
72
|
+
icon?: boolean;
|
|
73
|
+
autoClose?: boolean;
|
|
74
|
+
autoCloseTimer?: number;
|
|
75
|
+
dismissible?: boolean;
|
|
76
|
+
progressBar?: boolean;
|
|
77
|
+
testId?: string;
|
|
78
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const AlertWarning: {
|
|
82
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
83
|
+
args: {
|
|
84
|
+
type: string;
|
|
85
|
+
id: string;
|
|
86
|
+
className?: string;
|
|
87
|
+
role?: "alert" | "status";
|
|
88
|
+
'aria-label'?: string;
|
|
89
|
+
'aria-labelledby'?: string;
|
|
90
|
+
'aria-describedby'?: string;
|
|
91
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
92
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
93
|
+
title?: import('react').ReactNode;
|
|
94
|
+
message?: import('react').ReactNode;
|
|
95
|
+
children?: import('react').ReactNode;
|
|
96
|
+
action?: import('.').DsAlertAction;
|
|
97
|
+
icon?: boolean;
|
|
98
|
+
autoClose?: boolean;
|
|
99
|
+
autoCloseTimer?: number;
|
|
100
|
+
dismissible?: boolean;
|
|
101
|
+
progressBar?: boolean;
|
|
102
|
+
testId?: string;
|
|
103
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export declare const AlertDestructive: {
|
|
107
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
108
|
+
args: {
|
|
109
|
+
type: string;
|
|
110
|
+
id: string;
|
|
111
|
+
className?: string;
|
|
112
|
+
role?: "alert" | "status";
|
|
113
|
+
'aria-label'?: string;
|
|
114
|
+
'aria-labelledby'?: string;
|
|
115
|
+
'aria-describedby'?: string;
|
|
116
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
117
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
118
|
+
title?: import('react').ReactNode;
|
|
119
|
+
message?: import('react').ReactNode;
|
|
120
|
+
children?: import('react').ReactNode;
|
|
121
|
+
action?: import('.').DsAlertAction;
|
|
122
|
+
icon?: boolean;
|
|
123
|
+
autoClose?: boolean;
|
|
124
|
+
autoCloseTimer?: number;
|
|
125
|
+
dismissible?: boolean;
|
|
126
|
+
progressBar?: boolean;
|
|
127
|
+
testId?: string;
|
|
128
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const WithAction: {
|
|
132
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
133
|
+
args: {
|
|
134
|
+
action: {
|
|
135
|
+
label: string;
|
|
136
|
+
onClick: () => void;
|
|
137
|
+
};
|
|
138
|
+
id: string;
|
|
139
|
+
className?: string;
|
|
140
|
+
role?: "alert" | "status";
|
|
141
|
+
'aria-label'?: string;
|
|
142
|
+
'aria-labelledby'?: string;
|
|
143
|
+
'aria-describedby'?: string;
|
|
144
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
145
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
146
|
+
type?: `${import('.').AlertType}`;
|
|
147
|
+
title?: import('react').ReactNode;
|
|
148
|
+
message?: import('react').ReactNode;
|
|
149
|
+
children?: import('react').ReactNode;
|
|
150
|
+
icon?: boolean;
|
|
151
|
+
autoClose?: boolean;
|
|
152
|
+
autoCloseTimer?: number;
|
|
153
|
+
dismissible?: boolean;
|
|
154
|
+
progressBar?: boolean;
|
|
155
|
+
testId?: string;
|
|
156
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export declare const WithActionAndClose: {
|
|
160
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
161
|
+
args: {
|
|
162
|
+
action: {
|
|
163
|
+
label: string;
|
|
164
|
+
onClick: () => void;
|
|
165
|
+
};
|
|
166
|
+
dismissible: boolean;
|
|
167
|
+
id: string;
|
|
168
|
+
className?: string;
|
|
169
|
+
role?: "alert" | "status";
|
|
170
|
+
'aria-label'?: string;
|
|
171
|
+
'aria-labelledby'?: string;
|
|
172
|
+
'aria-describedby'?: string;
|
|
173
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
174
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
175
|
+
type?: `${import('.').AlertType}`;
|
|
176
|
+
title?: import('react').ReactNode;
|
|
177
|
+
message?: import('react').ReactNode;
|
|
178
|
+
children?: import('react').ReactNode;
|
|
179
|
+
icon?: boolean;
|
|
180
|
+
autoClose?: boolean;
|
|
181
|
+
autoCloseTimer?: number;
|
|
182
|
+
progressBar?: boolean;
|
|
183
|
+
testId?: string;
|
|
184
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export declare const MessageOnly: {
|
|
188
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAlertProps>;
|
|
189
|
+
args: {
|
|
190
|
+
title: undefined;
|
|
191
|
+
icon: boolean;
|
|
192
|
+
dismissible: boolean;
|
|
193
|
+
id: string;
|
|
194
|
+
className?: string;
|
|
195
|
+
role?: "alert" | "status";
|
|
196
|
+
'aria-label'?: string;
|
|
197
|
+
'aria-labelledby'?: string;
|
|
198
|
+
'aria-describedby'?: string;
|
|
199
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
200
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
|
201
|
+
type?: `${import('.').AlertType}`;
|
|
202
|
+
message?: import('react').ReactNode;
|
|
203
|
+
children?: import('react').ReactNode;
|
|
204
|
+
action?: import('.').DsAlertAction;
|
|
205
|
+
autoClose?: boolean;
|
|
206
|
+
autoCloseTimer?: number;
|
|
207
|
+
progressBar?: boolean;
|
|
208
|
+
testId?: string;
|
|
209
|
+
handleClose?: (event: import('react').MouseEvent<HTMLButtonElement>) => void;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Os quatro tipos com e sem ícone, com título e mensagem e botão de fechar.
|
|
214
|
+
*/
|
|
215
|
+
export declare const Matrix: {
|
|
216
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
217
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
type CarouselHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
2
|
+
export interface CarouselHeadingLevelProps {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: CarouselHeadingLevel;
|
|
5
|
+
options: CarouselHeadingLevel[];
|
|
6
|
+
}
|
|
1
7
|
export interface CarouselConfig {
|
|
2
8
|
name: string;
|
|
3
9
|
class: string;
|
|
4
|
-
props:
|
|
10
|
+
props: {
|
|
11
|
+
headingLevel: CarouselHeadingLevelProps;
|
|
12
|
+
};
|
|
5
13
|
}
|
|
6
14
|
declare const carouselConfig: CarouselConfig;
|
|
7
15
|
export default carouselConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as carouselConfig } from './Carousel.config';
|
|
2
2
|
|
|
3
3
|
type Slide = {
|
|
4
4
|
title: string;
|
|
@@ -12,20 +12,11 @@ export interface DsCarouselProps {
|
|
|
12
12
|
imageWidth?: number | string;
|
|
13
13
|
imageMaxHeight?: number | string;
|
|
14
14
|
imageMaxWidth?: number | string;
|
|
15
|
+
headingLevel?: (typeof carouselConfig.props.headingLevel.options)[number];
|
|
16
|
+
testId?: string;
|
|
15
17
|
}
|
|
16
18
|
declare const DsCarousel: {
|
|
17
|
-
({ slides, interval, imageHeight, imageWidth, imageMaxHeight, imageMaxWidth, }: DsCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
|
|
19
|
-
slides: PropTypes.Validator<(PropTypes.InferProps<{
|
|
20
|
-
title: PropTypes.Validator<string>;
|
|
21
|
-
image: PropTypes.Validator<string>;
|
|
22
|
-
description: PropTypes.Validator<string>;
|
|
23
|
-
}> | null | undefined)[]>;
|
|
24
|
-
interval: PropTypes.Requireable<number>;
|
|
25
|
-
imageHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
26
|
-
imageWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
27
|
-
imageMaxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
28
|
-
imageMaxWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
29
|
-
};
|
|
19
|
+
({ slides, interval, imageHeight, imageWidth, imageMaxHeight, imageMaxWidth, headingLevel, testId, }: DsCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
30
21
|
};
|
|
31
22
|
export default DsCarousel;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsCarouselProps } 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, DsCarouselProps>;
|
|
8
|
+
args: {
|
|
9
|
+
slides: {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
image: string;
|
|
13
|
+
}[];
|
|
14
|
+
interval: number;
|
|
15
|
+
imageHeight: number;
|
|
16
|
+
imageWidth: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const LargeImage: {
|
|
20
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCarouselProps>;
|
|
21
|
+
args: {
|
|
22
|
+
slides: {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
image: string;
|
|
26
|
+
}[];
|
|
27
|
+
interval: number;
|
|
28
|
+
imageHeight: number;
|
|
29
|
+
imageWidth: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
/**
|
|
6
|
+
* Formulário de cotação com dois grupos: o de coberturas (seleção múltipla,
|
|
7
|
+
* obrigatória) e um grupo de um único item para o opt-in. O grupo de coberturas
|
|
8
|
+
* é controlado e mostra `status` e `feedback` no grupo; o envio monta o payload
|
|
9
|
+
* com `FormData`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Formulario: {
|
|
12
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Mesma tela, mas com a validação vindo do backend por cobertura. Aqui o
|
|
16
|
+
* feedback é **do card**, via `status` e `feedback` no item — diferente do
|
|
17
|
+
* exemplo acima, em que o erro era do grupo.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ValidacaoPorCobertura: {
|
|
20
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CheckboxCardStatus } from './CheckboxCard.config';
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
3
2
|
|
|
3
|
+
export declare enum CheckboxCardStatus {
|
|
4
|
+
Default = "",
|
|
5
|
+
Error = "error",
|
|
6
|
+
Warning = "warning"
|
|
7
|
+
}
|
|
8
|
+
export declare const CheckboxCardMessageGlyph: Record<string, string>;
|
|
4
9
|
export declare enum CheckboxCardGroupOrientation {
|
|
5
10
|
Row = "row",
|
|
6
11
|
Column = "column"
|
|
7
12
|
}
|
|
8
13
|
export interface DsCheckboxCardItem {
|
|
9
|
-
value: string;
|
|
14
|
+
value: string | number;
|
|
10
15
|
label?: ReactNode;
|
|
11
16
|
description?: ReactNode;
|
|
12
|
-
icon?: ReactNode;
|
|
13
17
|
disabled?: boolean;
|
|
14
|
-
|
|
15
|
-
status?: CheckboxCardStatus;
|
|
16
|
-
feedback?: ReactNode;
|
|
18
|
+
status?: `${CheckboxCardStatus}`;
|
|
17
19
|
testId?: string;
|
|
18
20
|
}
|
|
19
21
|
export interface CheckboxCardGroupItemsProps {
|
|
@@ -33,6 +35,14 @@ export interface CheckboxCardGroupOrientationProps {
|
|
|
33
35
|
default: CheckboxCardGroupOrientation;
|
|
34
36
|
options: CheckboxCardGroupOrientation[];
|
|
35
37
|
}
|
|
38
|
+
export interface CheckboxCardGroupMaxColumnsProps {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
}
|
|
42
|
+
export interface CheckboxCardGroupMinColumnWidthProps {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
}
|
|
36
46
|
export interface CheckboxCardGroupStatusProps {
|
|
37
47
|
type: StringConstructor;
|
|
38
48
|
default: CheckboxCardStatus;
|
|
@@ -42,9 +52,9 @@ export interface CheckboxCardGroupFeedbackProps {
|
|
|
42
52
|
type: StringConstructor;
|
|
43
53
|
default: string;
|
|
44
54
|
}
|
|
45
|
-
export interface
|
|
46
|
-
type:
|
|
47
|
-
default:
|
|
55
|
+
export interface CheckboxCardGroupSupportingTextProps {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
48
58
|
}
|
|
49
59
|
export interface CheckboxCardGroupFullWidthProps {
|
|
50
60
|
type: BooleanConstructor;
|
|
@@ -58,29 +68,26 @@ export interface CheckboxCardGroupClassNameProps {
|
|
|
58
68
|
type: StringConstructor;
|
|
59
69
|
default: string;
|
|
60
70
|
}
|
|
61
|
-
export interface CheckboxCardGroupTestIdProps {
|
|
62
|
-
type: StringConstructor;
|
|
63
|
-
default: string;
|
|
64
|
-
}
|
|
65
71
|
export interface CheckboxCardGroupOnChangeProps {
|
|
66
72
|
type: FunctionConstructor;
|
|
67
|
-
default: (values: string
|
|
73
|
+
default: (event: ChangeEvent<HTMLInputElement>, values: Array<string | number>) => void;
|
|
68
74
|
}
|
|
69
75
|
export interface CheckboxCardGroupConfig {
|
|
70
76
|
name: string;
|
|
71
77
|
class: string;
|
|
72
78
|
props: {
|
|
73
|
-
|
|
79
|
+
options: CheckboxCardGroupItemsProps;
|
|
74
80
|
value: CheckboxCardGroupValueProps;
|
|
75
81
|
defaultValue: CheckboxCardGroupDefaultValueProps;
|
|
76
82
|
orientation: CheckboxCardGroupOrientationProps;
|
|
83
|
+
maxColumns: CheckboxCardGroupMaxColumnsProps;
|
|
84
|
+
minColumnWidth: CheckboxCardGroupMinColumnWidthProps;
|
|
77
85
|
status: CheckboxCardGroupStatusProps;
|
|
78
86
|
feedback: CheckboxCardGroupFeedbackProps;
|
|
79
|
-
|
|
87
|
+
supportingText: CheckboxCardGroupSupportingTextProps;
|
|
80
88
|
fullWidth: CheckboxCardGroupFullWidthProps;
|
|
81
89
|
disabled: CheckboxCardGroupDisabledProps;
|
|
82
90
|
className: CheckboxCardGroupClassNameProps;
|
|
83
|
-
testId: CheckboxCardGroupTestIdProps;
|
|
84
91
|
onChange: CheckboxCardGroupOnChangeProps;
|
|
85
92
|
};
|
|
86
93
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CheckboxCardGroupOrientation, CheckboxCardStatus, DsCheckboxCardItem } from './CheckboxCardGroup.config';
|
|
3
|
+
|
|
4
|
+
export interface DsCheckboxCardGroupProps {
|
|
5
|
+
options: DsCheckboxCardItem[];
|
|
6
|
+
value?: Array<string | number>;
|
|
7
|
+
defaultValue?: Array<string | number>;
|
|
8
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, values: Array<string | number>) => void;
|
|
9
|
+
onBlur?: React.FocusEventHandler<HTMLFieldSetElement>;
|
|
10
|
+
onFocus?: React.FocusEventHandler<HTMLFieldSetElement>;
|
|
11
|
+
label?: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
status?: `${CheckboxCardStatus}`;
|
|
14
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
15
|
+
feedback?: React.ReactNode;
|
|
16
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
17
|
+
supportingText?: React.ReactNode;
|
|
18
|
+
orientation?: `${CheckboxCardGroupOrientation}`;
|
|
19
|
+
maxColumns?: number;
|
|
20
|
+
/** Largura mínima de cada coluna, em pixels (padrão 320); abaixo disso a grade mostra menos colunas. */
|
|
21
|
+
minColumnWidth?: number;
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
name?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
testId?: string;
|
|
28
|
+
'aria-describedby'?: string;
|
|
29
|
+
'aria-label'?: string;
|
|
30
|
+
'aria-labelledby'?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const DsCheckboxCardGroup: React.ForwardRefExoticComponent<DsCheckboxCardGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
33
|
+
export default DsCheckboxCardGroup;
|