@akad/design-system 4.0.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/css/theme-aon.css +1 -1
- package/css/theme-bees.css +1 -1
- package/css/theme-bmc.css +1 -1
- package/css/theme-default.css +1 -1
- package/css/theme-linker.css +1 -1
- package/css/theme-oggi.css +1 -1
- package/css/theme-streetgo.css +1 -1
- package/package.json +13 -4
- package/react/react-lib.js +5373 -5004
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
- package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
- package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
- package/react/src/components/atoms/Badge/index.d.ts +4 -0
- package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
- package/react/src/components/atoms/Button/Button.d.ts +34 -61
- package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
- package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
- package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
- package/react/src/components/atoms/Card/Card.d.ts +16 -18
- package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
- package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
- package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
- package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
- package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
- package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
- package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
- package/react/src/components/atoms/IconButton/index.d.ts +4 -0
- package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
- package/react/src/components/atoms/Input/Input.d.ts +34 -15
- package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
- package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
- package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
- package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
- package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
- package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
- package/react/src/components/atoms/Radio/index.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
- package/react/src/components/atoms/Select/Select.d.ts +20 -10
- package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
- package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
- package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
- package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
- package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
- package/react/src/components/bosons/Container/Container.d.ts +3 -9
- package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
- package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
- package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
- package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
- package/react/src/components/index.d.ts +13 -16
- package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
- package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
- package/react/src/components/molecules/Accordion/index.d.ts +0 -4
- package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
- package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
- package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
- package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
- package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
- package/react/src/components/molecules/Alert/index.d.ts +4 -0
- package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
- package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
- package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -15
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
- package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
- package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
- package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
- package/react/src/components/molecules/Combobox/index.d.ts +4 -0
- package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
- package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
- package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
- package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
- package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
- package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
- package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
- package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
- package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
- package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
- package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
- package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
- package/react/src/components/molecules/Table/Table.d.ts +13 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
- package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
- package/react/src/components/molecules/Tabs/index.d.ts +0 -1
- package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
- package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
- package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
- package/react/src/components/propLeakage.test.d.ts +1 -0
- package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
- package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
- package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
- package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
- package/react/src/enum/layoutTag.d.ts +10 -0
- package/react/src/helpers/feedbackMessage.d.ts +22 -0
- package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
- package/react/src/helpers/testId.d.ts +7 -0
- package/react/src/helpers/testId.test.d.ts +1 -0
- package/react/src/helpers/useInternalValue.d.ts +23 -0
- package/react/src/helpers/useInternalValue.test.d.ts +1 -0
- package/scss/core/README.md +56 -0
- package/scss/core/base/typography.scss +3 -4
- package/scss/core/components/atoms/badge.scss +116 -0
- package/scss/core/components/atoms/button.scss +94 -797
- package/scss/core/components/atoms/card.scss +74 -126
- package/scss/core/components/atoms/checkbox.scss +110 -47
- package/scss/core/components/atoms/feedback-message.scss +38 -0
- package/scss/core/components/atoms/horizontal-rule.scss +4 -5
- package/scss/core/components/atoms/icon-button.scss +18 -0
- package/scss/core/components/atoms/icon.scss +53 -38
- package/scss/core/components/atoms/input.scss +248 -259
- package/scss/core/components/atoms/loading.scss +133 -77
- package/scss/core/components/atoms/radio.scss +84 -100
- package/scss/core/components/atoms/select.scss +151 -176
- package/scss/core/components/atoms/textarea.scss +154 -281
- package/scss/core/components/atoms/tooltip.scss +129 -149
- package/scss/core/components/bosons/caption.scss +10 -0
- package/scss/core/components/bosons/container.scss +5 -1
- package/scss/core/components/bosons/flex.scss +121 -0
- package/scss/core/components/bosons/grid.scss +39 -43
- package/scss/core/components/bosons/heading.scss +29 -0
- package/scss/core/components/bosons/label.scss +21 -0
- package/scss/core/components/bosons/paragraph.scss +62 -0
- package/scss/core/components/bosons/spacer.scss +6 -34
- package/scss/core/components/bosons/subtitle.scss +9 -0
- package/scss/core/components/bosons/wrapper.scss +10 -2
- package/scss/core/components/index.scss +19 -17
- package/scss/core/components/molecules/accordion.scss +42 -48
- package/scss/core/components/molecules/active-tags.scss +102 -28
- package/scss/core/components/molecules/alert.scss +145 -0
- package/scss/core/components/molecules/carousel.scss +4 -4
- package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
- package/scss/core/components/molecules/checkbox-group.scss +39 -0
- package/scss/core/components/molecules/combobox.scss +158 -0
- package/scss/core/components/molecules/indicator.scss +4 -6
- package/scss/core/components/molecules/inline-editable.scss +6 -8
- package/scss/core/components/molecules/password-confirmation.scss +11 -7
- package/scss/core/components/molecules/progress-bar.scss +85 -0
- package/scss/core/components/molecules/radio-card-group.scss +228 -0
- package/scss/core/components/molecules/radio-group.scss +45 -0
- package/scss/core/components/molecules/segment-control.scss +150 -0
- package/scss/core/components/molecules/stepper.scss +130 -57
- package/scss/core/components/molecules/table.scss +19 -18
- package/scss/core/components/molecules/tabs.scss +37 -215
- package/scss/core/components/organisms/modal.scss +68 -0
- package/scss/core/components/organisms/notification-list.scss +17 -17
- package/scss/core/components/templates/two-columns.scss +6 -6
- package/scss/core/functions/breakpoints.scss +4 -11
- package/scss/core/functions/index.scss +0 -3
- package/scss/core/functions/primitive.scss +68 -0
- package/scss/core/helpers/colors.scss +56 -187
- package/scss/core/helpers/display.scss +0 -148
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/order.scss +6 -4
- package/scss/core/index.scss +1 -1
- package/scss/core/mixins/breakpoints.scss +9 -47
- package/scss/core/mixins/choice.scss +88 -0
- package/scss/core/mixins/colors.scss +40 -0
- package/scss/core/mixins/index.scss +3 -2
- package/scss/core/mixins/typography.scss +22 -0
- package/scss/core/{tokens → primitives}/borders.scss +13 -14
- package/scss/core/primitives/breakpoints.scss +14 -0
- package/scss/core/primitives/colors.scss +174 -0
- package/scss/core/primitives/font.scss +34 -0
- package/scss/core/primitives/index.scss +8 -0
- package/scss/core/primitives/opacity.scss +40 -0
- package/scss/core/primitives/shadows.scss +36 -0
- package/scss/core/primitives/sizes.scss +28 -0
- package/scss/core/primitives/spacings.scss +28 -0
- package/scss/core/tokens/breakpoints.scss +12 -19
- package/scss/core/tokens/colors.scss +109 -0
- package/scss/core/tokens/font.scss +27 -0
- package/scss/core/tokens/index.scss +6 -6
- package/scss/core/tokens/sizes.scss +33 -0
- package/scss/core/tokens/spacings.scss +31 -39
- package/scss/core/tokens/typography.scss +144 -19
- package/scss/index.scss +7 -0
- package/scss/themes/aon/index.scss +76 -41
- package/scss/themes/aon/primitives.scss +35 -0
- package/scss/themes/bees/index.scss +52 -34
- package/scss/themes/bees/primitives.scss +19 -0
- package/scss/themes/bmc/index.scss +77 -42
- package/scss/themes/bmc/primitives.scss +33 -0
- package/scss/themes/default/index.scss +15 -59
- package/scss/themes/linker/index.scss +36 -17
- package/scss/themes/linker/primitives.scss +14 -0
- package/scss/themes/oggi/index.scss +77 -42
- package/scss/themes/oggi/primitives.scss +35 -0
- package/scss/themes/streetgo/index.scss +77 -42
- package/scss/themes/streetgo/primitives.scss +34 -0
- package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
- package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
- package/react/src/components/atoms/Caption/index.d.ts +0 -4
- package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
- package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
- package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
- package/react/src/components/atoms/Chip/index.d.ts +0 -4
- package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
- package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
- package/react/src/components/atoms/Heading/index.d.ts +0 -4
- package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
- package/react/src/components/atoms/Option/Option.d.ts +0 -30
- package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
- package/react/src/components/atoms/Option/index.d.ts +0 -4
- package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
- package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
- package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
- package/react/src/components/atoms/Progress/index.d.ts +0 -4
- package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
- package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
- package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
- package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
- package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
- package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
- package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
- package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
- package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
- package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
- package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
- package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
- package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
- package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
- package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
- package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
- package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
- package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
- package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
- package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
- package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
- package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
- package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
- package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
- package/react/src/components/molecules/Notification/index.d.ts +0 -4
- package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
- package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
- package/react/src/components/molecules/Tabs/types.d.ts +0 -23
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
- package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
- package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
- package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
- package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
- package/react/src/enum/colorProps.d.ts +0 -30
- package/scss/core/components/atoms/caption.scss +0 -13
- package/scss/core/components/atoms/chip.scss +0 -101
- package/scss/core/components/atoms/heading.scss +0 -70
- package/scss/core/components/atoms/option.scss +0 -78
- package/scss/core/components/atoms/paragraph.scss +0 -44
- package/scss/core/components/atoms/progress.scss +0 -16
- package/scss/core/components/atoms/radio-card.scss +0 -117
- package/scss/core/components/atoms/segment-control.scss +0 -143
- package/scss/core/components/atoms/subtitle.scss +0 -21
- package/scss/core/components/bosons/flex-layout.scss +0 -45
- package/scss/core/components/bosons/grid-layout.scss +0 -76
- package/scss/core/components/molecules/checkbox-card.scss +0 -473
- package/scss/core/components/molecules/editable-select.scss +0 -145
- package/scss/core/components/molecules/modal.scss +0 -70
- package/scss/core/components/molecules/notification.scss +0 -109
- package/scss/core/components/templates/split-layout.scss +0 -51
- package/scss/core/functions/fonts.scss +0 -17
- package/scss/core/functions/spacings.scss +0 -8
- package/scss/core/functions/tokens.scss +0 -14
- package/scss/core/helpers/elevation.scss +0 -16
- package/scss/core/tokens/icons.scss +0 -2
- package/scss/core/tokens/opacity.scss +0 -6
- package/scss/core/tokens/shadows.scss +0 -15
- package/scss/themes/aon/colors.scss +0 -83
- package/scss/themes/bees/colors.scss +0 -32
- package/scss/themes/bmc/colors.scss +0 -81
- package/scss/themes/default/colors.scss +0 -109
- package/scss/themes/linker/colors.scss +0 -35
- package/scss/themes/oggi/colors.scss +0 -81
- package/scss/themes/streetgo/colors.scss +0 -81
- /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
- /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
- /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
- /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
- /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
- /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
- /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
- /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
- /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
- /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputStatus } from '../../atoms/Input';
|
|
2
3
|
|
|
3
4
|
interface ValidationRule {
|
|
4
5
|
title: string;
|
|
@@ -16,18 +17,23 @@ export interface DsPasswordConfirmationProps {
|
|
|
16
17
|
isEqual: boolean;
|
|
17
18
|
feedback: FeedbackObject;
|
|
18
19
|
}) => void;
|
|
19
|
-
validationList
|
|
20
|
-
instructionLabel
|
|
20
|
+
validationList?: Array<ValidationRule>;
|
|
21
|
+
instructionLabel?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
confirmationLabel?: string;
|
|
21
24
|
testId?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
status?: `${InputStatus}`;
|
|
28
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
29
|
+
feedback?: string;
|
|
30
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
31
|
+
supportingText?: string;
|
|
32
|
+
confirmationStatus?: `${InputStatus}`;
|
|
33
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso, do campo de confirmação. */
|
|
34
|
+
confirmationFeedback?: string;
|
|
35
|
+
/** Texto de apoio fixo abaixo do campo de confirmação. */
|
|
36
|
+
confirmationSupportingText?: string;
|
|
22
37
|
}
|
|
23
|
-
declare const DsPasswordConfirmation:
|
|
24
|
-
({ onChange, validationList, instructionLabel, testId, }: DsPasswordConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
propTypes: {
|
|
26
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
validationList: PropTypes.Requireable<any[]>;
|
|
28
|
-
instructionLabel: PropTypes.Requireable<string>;
|
|
29
|
-
testId: PropTypes.Requireable<string>;
|
|
30
|
-
};
|
|
31
|
-
displayName: string;
|
|
32
|
-
};
|
|
38
|
+
declare const DsPasswordConfirmation: React.ForwardRefExoticComponent<DsPasswordConfirmationProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
39
|
export default DsPasswordConfirmation;
|
package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
2
|
import { DsPasswordConfirmationProps } from '.';
|
|
3
|
-
import { ThemeProviderProps } from '
|
|
3
|
+
import { ThemeProviderProps } from '../../providers/ThemeProvider';
|
|
4
4
|
|
|
5
5
|
declare const ComponentProps: Meta;
|
|
6
6
|
export default ComponentProps;
|
|
@@ -12,3 +12,20 @@ export declare const Default: {
|
|
|
12
12
|
instructionLabel: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Erro vindo de fora (por exemplo, do schema do formulário): cada campo mostra a
|
|
17
|
+
* sua mensagem, com `aria-invalid` e `aria-describedby`. A mensagem "As senhas são
|
|
18
|
+
* diferentes" só aparece depois de sair do campo de confirmação com um valor diferente.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SchemaError: {
|
|
21
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ThemeProviderProps & DsPasswordConfirmationProps>;
|
|
22
|
+
args: {
|
|
23
|
+
onChange: import('@storybook/addon-actions').HandlerFunction;
|
|
24
|
+
status: string;
|
|
25
|
+
feedback: string;
|
|
26
|
+
confirmationStatus: string;
|
|
27
|
+
confirmationFeedback: string;
|
|
28
|
+
validationList: import('./PasswordConfirmation.config').PasswordConfirmationValidationItem[];
|
|
29
|
+
instructionLabel: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ProgressBarType {
|
|
2
|
+
Determinate = "determinate",
|
|
3
|
+
Indeterminate = "indeterminate"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ProgressBarTone {
|
|
6
|
+
Primary = "primary",
|
|
7
|
+
Success = "success",
|
|
8
|
+
Warning = "warning",
|
|
9
|
+
Destructive = "destructive"
|
|
10
|
+
}
|
|
11
|
+
export interface ProgressBarTypeProps {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: ProgressBarType;
|
|
14
|
+
options: ProgressBarType[];
|
|
15
|
+
}
|
|
16
|
+
export interface ProgressBarValueProps {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ProgressBarToneProps {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: ProgressBarTone;
|
|
23
|
+
options: ProgressBarTone[];
|
|
24
|
+
}
|
|
25
|
+
export interface ProgressBarShowPercentageProps {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ProgressBarTestIdProps {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ProgressBarConfig {
|
|
34
|
+
name: string;
|
|
35
|
+
class: string;
|
|
36
|
+
props: {
|
|
37
|
+
type: ProgressBarTypeProps;
|
|
38
|
+
value: ProgressBarValueProps;
|
|
39
|
+
tone: ProgressBarToneProps;
|
|
40
|
+
showPercentage: ProgressBarShowPercentageProps;
|
|
41
|
+
testId: ProgressBarTestIdProps;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
declare const progressBarConfig: ProgressBarConfig;
|
|
45
|
+
export default progressBarConfig;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ProgressBarTone, ProgressBarType } from './ProgressBar.config';
|
|
3
|
+
|
|
4
|
+
export interface DsProgressBarProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
'aria-label'?: string;
|
|
8
|
+
'aria-labelledby'?: string;
|
|
9
|
+
'aria-describedby'?: string;
|
|
10
|
+
type?: `${ProgressBarType}`;
|
|
11
|
+
value?: number;
|
|
12
|
+
tone?: `${ProgressBarTone}`;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
showPercentage?: boolean;
|
|
16
|
+
valueText?: string;
|
|
17
|
+
testId?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const DsProgressBar: {
|
|
20
|
+
({ id: rootId, type, value, tone, title, label, showPercentage, valueText, className, testId, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: DsProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
export default DsProgressBar;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsProgressBarProps } from './ProgressBar';
|
|
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, DsProgressBarProps>;
|
|
8
|
+
args: {
|
|
9
|
+
value: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const Matrix: {
|
|
13
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export declare const Indeterminate: {
|
|
16
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsProgressBarProps>;
|
|
17
|
+
args: {
|
|
18
|
+
type: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const WithTitlePercentageAndLabel: {
|
|
23
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsProgressBarProps>;
|
|
24
|
+
args: {
|
|
25
|
+
label: string;
|
|
26
|
+
showPercentage: boolean;
|
|
27
|
+
title: string;
|
|
28
|
+
value: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const PasswordStrength: {
|
|
32
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum RadioCardGroupStatus {
|
|
2
|
+
Default = "",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Warning = "warning"
|
|
5
|
+
}
|
|
6
|
+
export interface RadioCardGroupConfig {
|
|
7
|
+
name: string;
|
|
8
|
+
class: string;
|
|
9
|
+
props: {
|
|
10
|
+
status: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: RadioCardGroupStatus;
|
|
13
|
+
options: RadioCardGroupStatus[];
|
|
14
|
+
};
|
|
15
|
+
maxColumns: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
minColumnWidth: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
declare const radioCardGroupConfig: RadioCardGroupConfig;
|
|
26
|
+
export default radioCardGroupConfig;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React, ChangeEvent, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { RadioCardGroupStatus } from './RadioCardGroup.config';
|
|
3
|
+
|
|
4
|
+
type RadioValue = string | number | boolean;
|
|
5
|
+
export interface DsRadioCardGroupItem {
|
|
6
|
+
value: RadioValue;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
status?: `${RadioCardGroupStatus}`;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DsRadioCardGroupProps {
|
|
14
|
+
name: string;
|
|
15
|
+
options: DsRadioCardGroupItem[];
|
|
16
|
+
label?: ReactNode;
|
|
17
|
+
value?: RadioValue;
|
|
18
|
+
defaultValue?: RadioValue;
|
|
19
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: RadioValue) => void;
|
|
20
|
+
onBlur?: FocusEventHandler<HTMLFieldSetElement>;
|
|
21
|
+
onFocus?: FocusEventHandler<HTMLFieldSetElement>;
|
|
22
|
+
status?: `${RadioCardGroupStatus}`;
|
|
23
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
24
|
+
feedback?: ReactNode;
|
|
25
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
26
|
+
supportingText?: ReactNode;
|
|
27
|
+
maxColumns?: number;
|
|
28
|
+
/** Largura mínima de cada coluna, em pixels (padrão 320); abaixo disso a grade mostra menos colunas. */
|
|
29
|
+
minColumnWidth?: number;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
id?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
testId?: string;
|
|
35
|
+
'aria-describedby'?: string;
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
'aria-labelledby'?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const DsRadioCardGroup: React.ForwardRefExoticComponent<DsRadioCardGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
40
|
+
export default DsRadioCardGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DsRadioCardGroupProps } from './RadioCardGroup';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<DsRadioCardGroupProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<DsRadioCardGroupProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const ComValorInicial: Story;
|
|
9
|
+
export declare const ComErro: Story;
|
|
10
|
+
export declare const ComAviso: Story;
|
|
11
|
+
/** O status do item só pinta a borda do card; a mensagem é a única, do grupo. */
|
|
12
|
+
export declare const ComStatusNoItem: Story;
|
|
13
|
+
export declare const OpcaoDesabilitada: Story;
|
|
14
|
+
export declare const DuasColunas: Story;
|
|
15
|
+
export declare const Controlado: {
|
|
16
|
+
render: (args: DsRadioCardGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export declare const Matrix: {
|
|
19
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum RadioGroupStatus {
|
|
2
|
+
Default = "",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Warning = "warning"
|
|
5
|
+
}
|
|
6
|
+
export declare enum RadioGroupOrientation {
|
|
7
|
+
Vertical = "vertical",
|
|
8
|
+
Horizontal = "horizontal"
|
|
9
|
+
}
|
|
10
|
+
export interface RadioGroupConfig {
|
|
11
|
+
name: string;
|
|
12
|
+
class: string;
|
|
13
|
+
props: {
|
|
14
|
+
status: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: RadioGroupStatus;
|
|
17
|
+
options: RadioGroupStatus[];
|
|
18
|
+
};
|
|
19
|
+
orientation: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: RadioGroupOrientation;
|
|
22
|
+
options: RadioGroupOrientation[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
declare const radioGroupConfig: RadioGroupConfig;
|
|
27
|
+
export default radioGroupConfig;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React, ChangeEvent, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { RadioGroupOrientation, RadioGroupStatus } from './RadioGroup.config';
|
|
3
|
+
|
|
4
|
+
type RadioValue = string | number | boolean;
|
|
5
|
+
export interface DsRadioGroupItem {
|
|
6
|
+
value: RadioValue;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DsRadioGroupProps {
|
|
14
|
+
id?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
options: DsRadioGroupItem[];
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
value?: RadioValue;
|
|
19
|
+
defaultValue?: RadioValue;
|
|
20
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: RadioValue) => void;
|
|
21
|
+
status?: `${RadioGroupStatus}`;
|
|
22
|
+
orientation?: `${RadioGroupOrientation}`;
|
|
23
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
24
|
+
feedback?: ReactNode;
|
|
25
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
26
|
+
supportingText?: ReactNode;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
testId?: string;
|
|
31
|
+
onBlur?: FocusEventHandler<HTMLFieldSetElement>;
|
|
32
|
+
onFocus?: FocusEventHandler<HTMLFieldSetElement>;
|
|
33
|
+
'aria-describedby'?: string;
|
|
34
|
+
'aria-label'?: string;
|
|
35
|
+
'aria-labelledby'?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const DsRadioGroup: React.ForwardRefExoticComponent<DsRadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
38
|
+
export default DsRadioGroup;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DsRadioGroupProps } from './RadioGroup';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<DsRadioGroupProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<DsRadioGroupProps>;
|
|
7
|
+
export declare const GrupoVertical: Story;
|
|
8
|
+
export declare const GrupoHorizontal: Story;
|
|
9
|
+
export declare const GrupoComErro: Story;
|
|
10
|
+
export declare const GrupoAviso: Story;
|
|
11
|
+
export declare const ComDescricaoETooltip: Story;
|
|
12
|
+
export declare const OpcaoDesabilitada: Story;
|
|
13
|
+
export declare const GrupoDesabilitado: Story;
|
|
14
|
+
export declare const Controlado: {
|
|
15
|
+
render: (args: DsRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const Matrix: {
|
|
18
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare enum SegmentControlSize {
|
|
4
4
|
Small = "sm",
|
|
5
5
|
Medium = "md"
|
|
6
6
|
}
|
|
7
|
+
export declare enum SegmentControlStatus {
|
|
8
|
+
Default = "",
|
|
9
|
+
Error = "error",
|
|
10
|
+
Warning = "warning"
|
|
11
|
+
}
|
|
7
12
|
export interface DsSegmentControlItem {
|
|
8
13
|
value: string;
|
|
9
|
-
label:
|
|
14
|
+
label: string;
|
|
15
|
+
leftIcon?: string;
|
|
16
|
+
rightIcon?: string;
|
|
17
|
+
iconOnly?: boolean;
|
|
10
18
|
disabled?: boolean;
|
|
11
19
|
testId?: string;
|
|
12
20
|
}
|
|
@@ -39,27 +47,28 @@ export interface SegmentControlClassNameProps {
|
|
|
39
47
|
type: StringConstructor;
|
|
40
48
|
default: string;
|
|
41
49
|
}
|
|
42
|
-
export interface SegmentControlTestIdProps {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
}
|
|
46
50
|
export interface SegmentControlOnChangeProps {
|
|
47
51
|
type: FunctionConstructor;
|
|
48
|
-
default: (
|
|
52
|
+
default: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
53
|
+
}
|
|
54
|
+
export interface SegmentControlStatusProps {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: SegmentControlStatus;
|
|
57
|
+
options: SegmentControlStatus[];
|
|
49
58
|
}
|
|
50
59
|
export interface SegmentControlConfig {
|
|
51
60
|
name: string;
|
|
52
61
|
class: string;
|
|
53
62
|
props: {
|
|
54
|
-
|
|
63
|
+
options: SegmentControlItemsProps;
|
|
55
64
|
value: SegmentControlValueProps;
|
|
56
65
|
defaultValue: SegmentControlDefaultValueProps;
|
|
57
66
|
size: SegmentControlSizeProps;
|
|
58
67
|
fullWidth: SegmentControlFullWidthProps;
|
|
59
68
|
disabled: SegmentControlDisabledProps;
|
|
60
69
|
className: SegmentControlClassNameProps;
|
|
61
|
-
testId: SegmentControlTestIdProps;
|
|
62
70
|
onChange: SegmentControlOnChangeProps;
|
|
71
|
+
status: SegmentControlStatusProps;
|
|
63
72
|
};
|
|
64
73
|
}
|
|
65
74
|
declare const segmentControlConfig: SegmentControlConfig;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React, ChangeEvent, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { DsSegmentControlItem, SegmentControlSize, SegmentControlStatus } from './SegmentControl.config';
|
|
3
|
+
|
|
4
|
+
export interface DsSegmentControlProps {
|
|
5
|
+
options: DsSegmentControlItem[];
|
|
6
|
+
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
size?: `${SegmentControlSize}`;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
testId?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
16
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
17
|
+
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
18
|
+
status?: `${SegmentControlStatus}`;
|
|
19
|
+
/** Mensagem de validação; só aparece com `status` erro ou aviso. */
|
|
20
|
+
feedback?: ReactNode;
|
|
21
|
+
/** Texto de apoio fixo abaixo do controle. */
|
|
22
|
+
supportingText?: ReactNode;
|
|
23
|
+
'aria-describedby'?: string;
|
|
24
|
+
'aria-label'?: string;
|
|
25
|
+
'aria-labelledby'?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const DsSegmentControl: React.ForwardRefExoticComponent<DsSegmentControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export default DsSegmentControl;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ChangeEvent } from 'react';
|
|
3
|
+
import { DsSegmentControlProps } from './SegmentControl';
|
|
4
|
+
import { DsSegmentControlItem, SegmentControlSize, SegmentControlStatus } from './SegmentControl.config';
|
|
5
|
+
|
|
6
|
+
declare const meta: Meta<DsSegmentControlProps>;
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const Default: {
|
|
9
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
10
|
+
args: {
|
|
11
|
+
options: DsSegmentControlItem[];
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
size: SegmentControlSize;
|
|
14
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
15
|
+
'aria-label': string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const WithoutSelection: {
|
|
19
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
20
|
+
args: {
|
|
21
|
+
defaultValue: undefined;
|
|
22
|
+
options: DsSegmentControlItem[];
|
|
23
|
+
size: SegmentControlSize;
|
|
24
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
25
|
+
'aria-label': string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const WithError: {
|
|
29
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
30
|
+
args: {
|
|
31
|
+
defaultValue: undefined;
|
|
32
|
+
status: SegmentControlStatus;
|
|
33
|
+
feedback: string;
|
|
34
|
+
options: DsSegmentControlItem[];
|
|
35
|
+
size: SegmentControlSize;
|
|
36
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
37
|
+
'aria-label': string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const Medium: {
|
|
41
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
42
|
+
args: {
|
|
43
|
+
size: SegmentControlSize;
|
|
44
|
+
options: DsSegmentControlItem[];
|
|
45
|
+
defaultValue: string;
|
|
46
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
47
|
+
'aria-label': string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const FullWidth: {
|
|
51
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
52
|
+
args: {
|
|
53
|
+
fullWidth: boolean;
|
|
54
|
+
options: DsSegmentControlItem[];
|
|
55
|
+
defaultValue: string;
|
|
56
|
+
size: SegmentControlSize;
|
|
57
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
58
|
+
'aria-label': string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const WithDisabledItem: {
|
|
62
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
63
|
+
args: {
|
|
64
|
+
options: ({
|
|
65
|
+
value: string;
|
|
66
|
+
label: string;
|
|
67
|
+
disabled?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
value: string;
|
|
70
|
+
label: string;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
})[];
|
|
73
|
+
defaultValue: string;
|
|
74
|
+
size: SegmentControlSize;
|
|
75
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
76
|
+
'aria-label': string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare const FullyDisabled: {
|
|
80
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
81
|
+
args: {
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
options: DsSegmentControlItem[];
|
|
84
|
+
defaultValue: string;
|
|
85
|
+
size: SegmentControlSize;
|
|
86
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
87
|
+
'aria-label': string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export declare const WithIcons: {
|
|
91
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
92
|
+
args: {
|
|
93
|
+
options: DsSegmentControlItem[];
|
|
94
|
+
defaultValue: string;
|
|
95
|
+
size: SegmentControlSize;
|
|
96
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
97
|
+
'aria-label': string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const WithRightIcon: {
|
|
101
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
102
|
+
args: {
|
|
103
|
+
options: {
|
|
104
|
+
rightIcon: string;
|
|
105
|
+
value: string;
|
|
106
|
+
label: string;
|
|
107
|
+
leftIcon?: string;
|
|
108
|
+
iconOnly?: boolean;
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
testId?: string;
|
|
111
|
+
}[];
|
|
112
|
+
defaultValue: string;
|
|
113
|
+
size: SegmentControlSize;
|
|
114
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
115
|
+
'aria-label': string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare const IconOnly: {
|
|
119
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsSegmentControlProps>;
|
|
120
|
+
args: {
|
|
121
|
+
options: DsSegmentControlItem[];
|
|
122
|
+
defaultValue: string;
|
|
123
|
+
size: SegmentControlSize;
|
|
124
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
125
|
+
'aria-label': string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const Matrix: {
|
|
129
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
};
|
|
131
|
+
export declare const Controlled: {
|
|
132
|
+
render: (args: DsSegmentControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
133
|
+
args: {
|
|
134
|
+
options: DsSegmentControlItem[];
|
|
135
|
+
'aria-label': string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
@@ -1,17 +1,52 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare enum StepperState {
|
|
2
|
+
Current = "current",
|
|
3
|
+
Complete = "complete",
|
|
4
|
+
Incomplete = "incomplete",
|
|
5
|
+
Disabled = "disabled",
|
|
6
|
+
Error = "error"
|
|
7
|
+
}
|
|
8
|
+
export declare enum StepperPlatform {
|
|
9
|
+
Desktop = "desktop",
|
|
10
|
+
Mobile = "mobile"
|
|
11
|
+
}
|
|
12
|
+
export interface StepperPlatformProps {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: StepperPlatform;
|
|
15
|
+
options: StepperPlatform[];
|
|
16
|
+
}
|
|
17
|
+
export interface StepperStepsProps {
|
|
2
18
|
type: ArrayConstructor;
|
|
3
19
|
required: boolean;
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
4
22
|
}
|
|
5
|
-
export interface
|
|
23
|
+
export interface StepperCurrentStepProps {
|
|
6
24
|
type: NumberConstructor;
|
|
7
25
|
default: number;
|
|
8
26
|
}
|
|
27
|
+
export interface StepperTruncateTextProps {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface StepperStateLabelsProps {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: Record<StepperState, string>;
|
|
34
|
+
}
|
|
35
|
+
export interface StepperIconsProps {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
default: Record<StepperState, string>;
|
|
38
|
+
}
|
|
9
39
|
export interface StepperConfig {
|
|
10
40
|
name: string;
|
|
11
41
|
class: string;
|
|
42
|
+
interactiveStates: StepperState[];
|
|
12
43
|
props: {
|
|
13
|
-
steps:
|
|
14
|
-
|
|
44
|
+
steps: StepperStepsProps;
|
|
45
|
+
currentStep: StepperCurrentStepProps;
|
|
46
|
+
platform: StepperPlatformProps;
|
|
47
|
+
truncateText: StepperTruncateTextProps;
|
|
48
|
+
stateLabels: StepperStateLabelsProps;
|
|
49
|
+
icons: StepperIconsProps;
|
|
15
50
|
};
|
|
16
51
|
}
|
|
17
52
|
declare const stepperConfig: StepperConfig;
|