@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DsIconButtonProps } from './IconButton';
|
|
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, DsIconButtonProps>;
|
|
8
|
+
args: {
|
|
9
|
+
icon: string;
|
|
10
|
+
'aria-label': string;
|
|
11
|
+
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/** Variantes x tamanhos x cores, com a coluna Disabled. */
|
|
15
|
+
export declare const Matrix: {
|
|
16
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
};
|
|
@@ -6,14 +6,13 @@ export declare enum InputType {
|
|
|
6
6
|
Number = "number"
|
|
7
7
|
}
|
|
8
8
|
export declare enum InputSize {
|
|
9
|
-
Small = "
|
|
10
|
-
Medium = "
|
|
11
|
-
Large = "
|
|
9
|
+
Small = "sm",
|
|
10
|
+
Medium = "md",
|
|
11
|
+
Large = "lg"
|
|
12
12
|
}
|
|
13
13
|
export declare enum InputStatus {
|
|
14
14
|
Default = "",
|
|
15
|
-
Error = "error"
|
|
16
|
-
Success = "success"
|
|
15
|
+
Error = "error"
|
|
17
16
|
}
|
|
18
17
|
export declare enum InputTooltipPlacement {
|
|
19
18
|
Center = "center",
|
|
@@ -30,28 +29,19 @@ export interface InputNameProps {
|
|
|
30
29
|
type: StringConstructor;
|
|
31
30
|
required: boolean;
|
|
32
31
|
}
|
|
33
|
-
export interface InputTestIdProps {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
}
|
|
37
32
|
export interface InputTypeProps {
|
|
38
33
|
type: StringConstructor;
|
|
39
34
|
default: InputType;
|
|
40
35
|
options: InputType[];
|
|
41
36
|
}
|
|
42
|
-
export interface
|
|
37
|
+
export interface InputDisabledProps {
|
|
43
38
|
type: BooleanConstructor;
|
|
44
39
|
default: boolean;
|
|
45
40
|
}
|
|
46
|
-
export interface
|
|
41
|
+
export interface InputAutoFocusProps {
|
|
47
42
|
type: BooleanConstructor;
|
|
48
43
|
default: boolean;
|
|
49
44
|
}
|
|
50
|
-
export interface InputSizeProps {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: InputSize;
|
|
53
|
-
options: InputSize[];
|
|
54
|
-
}
|
|
55
45
|
export interface InputLabelProps {
|
|
56
46
|
type: StringConstructor;
|
|
57
47
|
default: string;
|
|
@@ -64,6 +54,10 @@ export interface InputValueProps {
|
|
|
64
54
|
type: StringConstructor;
|
|
65
55
|
default: string;
|
|
66
56
|
}
|
|
57
|
+
export interface InputMaxLengthProps {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number | undefined;
|
|
60
|
+
}
|
|
67
61
|
export interface InputMinProps {
|
|
68
62
|
type: StringConstructor;
|
|
69
63
|
default: string;
|
|
@@ -72,6 +66,11 @@ export interface InputMaxProps {
|
|
|
72
66
|
type: StringConstructor;
|
|
73
67
|
default: string;
|
|
74
68
|
}
|
|
69
|
+
export interface InputSizeProps {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: InputSize;
|
|
72
|
+
options: InputSize[];
|
|
73
|
+
}
|
|
75
74
|
export interface InputStatusProps {
|
|
76
75
|
type: StringConstructor;
|
|
77
76
|
default: InputStatus;
|
|
@@ -81,18 +80,18 @@ export interface InputFeedbackProps {
|
|
|
81
80
|
type: StringConstructor;
|
|
82
81
|
default: string;
|
|
83
82
|
}
|
|
84
|
-
export interface
|
|
85
|
-
type:
|
|
86
|
-
default:
|
|
87
|
-
}
|
|
88
|
-
export interface InputNoMarginProps {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
83
|
+
export interface InputSupportingTextProps {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
91
86
|
}
|
|
92
87
|
export interface InputIconProps {
|
|
93
88
|
type: StringConstructor;
|
|
94
89
|
default: string;
|
|
95
90
|
}
|
|
91
|
+
export interface InputMaskProps {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
}
|
|
96
95
|
export interface InputTooltipProps {
|
|
97
96
|
type: StringConstructor;
|
|
98
97
|
default: string;
|
|
@@ -107,39 +106,30 @@ export interface InputTooltipPositionProps {
|
|
|
107
106
|
default: InputTooltipPosition;
|
|
108
107
|
options: InputTooltipPosition[];
|
|
109
108
|
}
|
|
110
|
-
export interface InputMaskProps {
|
|
111
|
-
type: StringConstructor;
|
|
112
|
-
default: string;
|
|
113
|
-
}
|
|
114
|
-
export interface InputOnChangeHandlerProps {
|
|
115
|
-
type: FunctionConstructor;
|
|
116
|
-
default: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
117
|
-
}
|
|
118
109
|
export interface InputConfig {
|
|
119
110
|
name: string;
|
|
120
111
|
class: string;
|
|
121
112
|
props: {
|
|
122
113
|
name: InputNameProps;
|
|
123
|
-
testId: InputTestIdProps;
|
|
124
114
|
type: InputTypeProps;
|
|
125
|
-
animated: InputAnimatedProps;
|
|
126
115
|
disabled: InputDisabledProps;
|
|
127
|
-
|
|
116
|
+
autoFocus: InputAutoFocusProps;
|
|
128
117
|
label: InputLabelProps;
|
|
129
118
|
placeholder: InputPlaceholderProps;
|
|
130
119
|
value: InputValueProps;
|
|
131
120
|
min: InputMinProps;
|
|
132
121
|
max: InputMaxProps;
|
|
122
|
+
size: InputSizeProps;
|
|
133
123
|
status: InputStatusProps;
|
|
134
124
|
feedback: InputFeedbackProps;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
125
|
+
supportingText: InputSupportingTextProps;
|
|
126
|
+
leadingIcon: InputIconProps;
|
|
127
|
+
trailingIcon: InputIconProps;
|
|
128
|
+
maxLength: InputMaxLengthProps;
|
|
129
|
+
mask: InputMaskProps;
|
|
138
130
|
tooltip: InputTooltipProps;
|
|
139
131
|
tooltipPlacement: InputTooltipPlacementProps;
|
|
140
132
|
tooltipPosition: InputTooltipPositionProps;
|
|
141
|
-
mask: InputMaskProps;
|
|
142
|
-
onChangeHandler: InputOnChangeHandlerProps;
|
|
143
133
|
};
|
|
144
134
|
}
|
|
145
135
|
declare const inputConfig: InputConfig;
|
|
@@ -1,31 +1,50 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { InputSize, InputStatus, InputTooltipPlacement, InputTooltipPosition, InputType } from './Input.config';
|
|
2
3
|
|
|
3
|
-
export interface DsInputProps
|
|
4
|
+
export interface DsInputProps {
|
|
5
|
+
id?: string;
|
|
4
6
|
name?: string;
|
|
5
7
|
testId?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
type?: `${InputType}`;
|
|
9
10
|
label?: string;
|
|
10
11
|
placeholder?: string;
|
|
11
12
|
value?: string;
|
|
13
|
+
/** Valor inicial do campo (sem máscara, se houver `mask`); lido só na montagem. */
|
|
14
|
+
defaultValue?: string;
|
|
12
15
|
min?: string;
|
|
13
16
|
max?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
status?:
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
size?: `${InputSize}`;
|
|
19
|
+
leadingIcon?: string;
|
|
20
|
+
trailingIcon?: string;
|
|
21
|
+
status?: `${InputStatus}`;
|
|
22
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
19
23
|
feedback?: string;
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
25
|
+
supportingText?: string;
|
|
22
26
|
disabled?: boolean;
|
|
27
|
+
readOnly?: boolean;
|
|
28
|
+
required?: boolean;
|
|
23
29
|
autoFocus?: boolean;
|
|
30
|
+
autoComplete?: string;
|
|
31
|
+
inputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode'];
|
|
24
32
|
mask?: string | object;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
34
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
36
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
37
|
+
tooltip?: string;
|
|
38
|
+
tooltipPlacement?: `${InputTooltipPlacement}`;
|
|
39
|
+
tooltipPosition?: `${InputTooltipPosition}`;
|
|
40
|
+
'aria-describedby'?: string;
|
|
41
|
+
'aria-label'?: string;
|
|
42
|
+
'aria-labelledby'?: string;
|
|
43
|
+
role?: React.AriaRole;
|
|
44
|
+
'aria-activedescendant'?: string;
|
|
45
|
+
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
|
|
46
|
+
'aria-controls'?: string;
|
|
47
|
+
'aria-expanded'?: boolean;
|
|
29
48
|
}
|
|
30
49
|
declare const DsInput: React.ForwardRefExoticComponent<DsInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
50
|
export default DsInput;
|
|
@@ -8,16 +8,43 @@ export declare const Default: {
|
|
|
8
8
|
args: {
|
|
9
9
|
name: string;
|
|
10
10
|
label: string;
|
|
11
|
+
tooltip: string;
|
|
12
|
+
tooltipPlacement: import('.').InputTooltipPlacement;
|
|
13
|
+
tooltipPosition: import('.').InputTooltipPosition;
|
|
11
14
|
placeholder: string;
|
|
12
15
|
value: string;
|
|
13
16
|
min: string;
|
|
14
17
|
max: string;
|
|
15
18
|
type: import('.').InputType;
|
|
19
|
+
size: import('.').InputSize;
|
|
16
20
|
disabled: boolean;
|
|
17
|
-
|
|
21
|
+
leadingIcon: string;
|
|
22
|
+
trailingIcon: string;
|
|
18
23
|
status: import('.').InputStatus;
|
|
19
24
|
feedback: string;
|
|
20
|
-
|
|
21
|
-
noMargin: boolean;
|
|
25
|
+
supportingText: string;
|
|
22
26
|
};
|
|
23
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Tamanhos SM 40, MD 48 (padrão) e LG 56, ao lado do DsSelect e do
|
|
30
|
+
* DsCombobox do mesmo tamanho (os três alinham pela altura do campo).
|
|
31
|
+
*/
|
|
32
|
+
export declare const Sizes: {
|
|
33
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Rótulo maior que o campo: sem `placeholder`, o rótulo quebra em linhas dentro do
|
|
37
|
+
* campo (em repouso) ou sobre a borda (com foco, valor ou erro), em vez de passar
|
|
38
|
+
* da borda direita. A largura de 400px é a do campo.
|
|
39
|
+
*/
|
|
40
|
+
export declare const LongLabel: {
|
|
41
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Estado x texto x ícone leading x ícone trailing. Hovered e Focused aparecem
|
|
45
|
+
* ao interagir (passe o mouse e use Tab); as linhas mostram Enabled, Error e
|
|
46
|
+
* Disabled.
|
|
47
|
+
*/
|
|
48
|
+
export declare const Matrix: {
|
|
49
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
};
|
|
@@ -1,38 +1,27 @@
|
|
|
1
|
+
export declare enum LoadingType {
|
|
2
|
+
Dots = "dots",
|
|
3
|
+
Spinner = "spinner"
|
|
4
|
+
}
|
|
1
5
|
export declare enum LoadingSize {
|
|
2
6
|
Small = "small",
|
|
3
7
|
Medium = "medium",
|
|
4
8
|
Large = "large"
|
|
5
9
|
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Neutral05 = "neutral-05",
|
|
11
|
-
Neutral00 = "neutral-00"
|
|
10
|
+
export interface LoadingTypeProps {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: LoadingType;
|
|
13
|
+
options: LoadingType[];
|
|
12
14
|
}
|
|
13
15
|
export interface LoadingSizeProps {
|
|
14
16
|
type: StringConstructor;
|
|
15
17
|
default: LoadingSize;
|
|
16
18
|
options: LoadingSize[];
|
|
17
19
|
}
|
|
18
|
-
export interface
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface LoadingFullscreenProps {
|
|
20
|
+
export interface LoadingBooleanProps {
|
|
23
21
|
type: BooleanConstructor;
|
|
24
22
|
default: boolean;
|
|
25
23
|
}
|
|
26
|
-
export interface
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: LoadingBackgroundColor;
|
|
29
|
-
options: LoadingBackgroundColor[];
|
|
30
|
-
}
|
|
31
|
-
export interface LoadingIdProps {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
}
|
|
35
|
-
export interface LoadingTestIdProps {
|
|
24
|
+
export interface LoadingTextProps {
|
|
36
25
|
type: StringConstructor;
|
|
37
26
|
default: string;
|
|
38
27
|
}
|
|
@@ -40,12 +29,15 @@ export interface LoadingConfig {
|
|
|
40
29
|
name: string;
|
|
41
30
|
class: string;
|
|
42
31
|
props: {
|
|
43
|
-
|
|
44
|
-
testId: LoadingTestIdProps;
|
|
32
|
+
type: LoadingTypeProps;
|
|
45
33
|
size: LoadingSizeProps;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
complete: LoadingBooleanProps;
|
|
35
|
+
label: LoadingTextProps;
|
|
36
|
+
completeLabel: LoadingTextProps;
|
|
37
|
+
inline: LoadingBooleanProps;
|
|
38
|
+
fullscreen: LoadingBooleanProps;
|
|
39
|
+
opacity: LoadingBooleanProps;
|
|
40
|
+
testId: LoadingTextProps;
|
|
49
41
|
};
|
|
50
42
|
}
|
|
51
43
|
declare const loadingConfig: LoadingConfig;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LoadingSize, LoadingType } from './Loading.config';
|
|
2
2
|
|
|
3
3
|
export interface DsLoadingProps {
|
|
4
|
+
type?: `${LoadingType}`;
|
|
5
|
+
size?: `${LoadingSize}`;
|
|
6
|
+
complete?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
completeLabel?: string;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
fullscreen?: boolean;
|
|
11
|
+
opacity?: boolean;
|
|
4
12
|
id?: string;
|
|
5
|
-
testId?: string;
|
|
6
13
|
className?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
backgroundColor?: string;
|
|
14
|
+
testId?: string;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
11
17
|
}
|
|
12
18
|
declare const DsLoading: {
|
|
13
|
-
({
|
|
14
|
-
propTypes: {
|
|
15
|
-
id: PropTypes.Requireable<string>;
|
|
16
|
-
testId: PropTypes.Requireable<string>;
|
|
17
|
-
size: PropTypes.Requireable<import('./Loading.config').LoadingSize>;
|
|
18
|
-
opacity: PropTypes.Requireable<boolean>;
|
|
19
|
-
fullscreen: PropTypes.Requireable<boolean>;
|
|
20
|
-
backgroundColor: PropTypes.Requireable<string>;
|
|
21
|
-
};
|
|
19
|
+
({ type, size, complete, label, completeLabel, inline, fullscreen, opacity, id, className, testId, "aria-label": ariaLabel, "aria-live": ariaLive, }: DsLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
22
20
|
displayName: string;
|
|
23
21
|
};
|
|
24
22
|
export default DsLoading;
|
|
@@ -6,6 +6,27 @@ export default ComponentProps;
|
|
|
6
6
|
export declare const Default: {
|
|
7
7
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
|
|
8
8
|
args: {
|
|
9
|
-
|
|
9
|
+
inline: boolean;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export declare const Spinner: {
|
|
13
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
|
|
14
|
+
args: {
|
|
15
|
+
inline: boolean;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const SpinnerComplete: {
|
|
20
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsLoadingProps>;
|
|
21
|
+
args: {
|
|
22
|
+
inline: boolean;
|
|
23
|
+
type: string;
|
|
24
|
+
complete: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const Matrix: {
|
|
28
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
};
|
|
30
|
+
export declare const Overlay: {
|
|
31
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
Default = "
|
|
3
|
-
|
|
1
|
+
export declare enum RadioStatus {
|
|
2
|
+
Default = "",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Warning = "warning",
|
|
5
|
+
Skeleton = "skeleton"
|
|
4
6
|
}
|
|
5
7
|
export interface RadioConfig {
|
|
6
8
|
name: string;
|
|
7
9
|
class: string;
|
|
8
10
|
props: {
|
|
9
|
-
|
|
11
|
+
status: {
|
|
10
12
|
type: StringConstructor;
|
|
11
|
-
default:
|
|
12
|
-
options:
|
|
13
|
-
};
|
|
14
|
-
fullWidth: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
13
|
+
default: RadioStatus;
|
|
14
|
+
options: RadioStatus[];
|
|
17
15
|
};
|
|
18
16
|
};
|
|
19
17
|
}
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { RadioStatus } from './Radio.config';
|
|
3
3
|
|
|
4
|
-
export interface DsRadioProps
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export interface DsRadioProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string | number;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
7
12
|
label?: React.ReactNode;
|
|
8
13
|
description?: React.ReactNode;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
status?: `${RadioStatus}`;
|
|
16
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
17
|
+
feedback?: React.ReactNode;
|
|
18
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
19
|
+
supportingText?: React.ReactNode;
|
|
9
20
|
className?: string;
|
|
10
21
|
testId?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
23
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
24
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
25
|
+
'aria-describedby'?: string;
|
|
26
|
+
'aria-label'?: string;
|
|
27
|
+
'aria-labelledby'?: string;
|
|
16
28
|
}
|
|
17
29
|
declare const DsRadio: React.ForwardRefExoticComponent<DsRadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
30
|
export default DsRadio;
|
|
@@ -1,49 +1,16 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { DsRadioProps } from './Radio';
|
|
3
|
-
import { RadioVariant } from './Radio.config';
|
|
4
3
|
|
|
5
4
|
declare const meta: Meta<DsRadioProps>;
|
|
6
5
|
export default meta;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
|
|
17
|
-
args: {
|
|
18
|
-
label: string;
|
|
19
|
-
description: string;
|
|
20
|
-
name: string;
|
|
21
|
-
value: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const Disabled: {
|
|
25
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
|
|
26
|
-
args: {
|
|
27
|
-
label: string;
|
|
28
|
-
description: string;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
name: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const Card: {
|
|
35
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsRadioProps>;
|
|
36
|
-
args: {
|
|
37
|
-
variant: RadioVariant;
|
|
38
|
-
label: string;
|
|
39
|
-
description: string;
|
|
40
|
-
name: string;
|
|
41
|
-
value: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare const CardGroupVertical: {
|
|
45
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
};
|
|
47
|
-
export declare const CardGroupHorizontal: {
|
|
6
|
+
type Story = StoryObj<DsRadioProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const ComDescricao: Story;
|
|
9
|
+
export declare const ComTooltip: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const Erro: Story;
|
|
12
|
+
export declare const Warning: Story;
|
|
13
|
+
export declare const Skeleton: Story;
|
|
14
|
+
export declare const Matrix: {
|
|
48
15
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
49
16
|
};
|
|
@@ -5,8 +5,7 @@ export declare enum SelectSize {
|
|
|
5
5
|
}
|
|
6
6
|
export declare enum SelectStatus {
|
|
7
7
|
Default = "",
|
|
8
|
-
Error = "error"
|
|
9
|
-
Success = "success"
|
|
8
|
+
Error = "error"
|
|
10
9
|
}
|
|
11
10
|
export declare enum SelectTooltipPlacement {
|
|
12
11
|
Center = "center",
|
|
@@ -27,15 +26,11 @@ export interface SelectClassNameProps {
|
|
|
27
26
|
type: StringConstructor;
|
|
28
27
|
default: string;
|
|
29
28
|
}
|
|
30
|
-
export interface SelectAnimatedProps {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
}
|
|
34
29
|
export interface SelectDisabledProps {
|
|
35
30
|
type: BooleanConstructor;
|
|
36
31
|
default: boolean;
|
|
37
32
|
}
|
|
38
|
-
export interface
|
|
33
|
+
export interface SelectAutoFocusProps {
|
|
39
34
|
type: BooleanConstructor;
|
|
40
35
|
default: boolean;
|
|
41
36
|
}
|
|
@@ -43,10 +38,6 @@ export interface SelectNameProps {
|
|
|
43
38
|
type: StringConstructor;
|
|
44
39
|
default: string;
|
|
45
40
|
}
|
|
46
|
-
export interface SelectTestIdProps {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
}
|
|
50
41
|
export interface SelectPlaceholderProps {
|
|
51
42
|
type: StringConstructor;
|
|
52
43
|
}
|
|
@@ -85,7 +76,12 @@ export interface SelectFeedbackProps {
|
|
|
85
76
|
type: StringConstructor;
|
|
86
77
|
default: string;
|
|
87
78
|
}
|
|
79
|
+
export interface SelectSupportingTextProps {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
}
|
|
88
83
|
interface SelectOption {
|
|
84
|
+
disabled?: boolean;
|
|
89
85
|
label?: string;
|
|
90
86
|
value?: string | number | readonly string[];
|
|
91
87
|
}
|
|
@@ -100,12 +96,10 @@ export interface SelectConfig {
|
|
|
100
96
|
props: {
|
|
101
97
|
label: SelectLabelProps;
|
|
102
98
|
className: SelectClassNameProps;
|
|
103
|
-
animated: SelectAnimatedProps;
|
|
104
99
|
disabled: SelectDisabledProps;
|
|
105
|
-
|
|
100
|
+
autoFocus: SelectAutoFocusProps;
|
|
106
101
|
name: SelectNameProps;
|
|
107
102
|
options: SelectOptions;
|
|
108
|
-
testId: SelectTestIdProps;
|
|
109
103
|
placeholder: SelectPlaceholderProps;
|
|
110
104
|
onChange: SelectOnChangeProps;
|
|
111
105
|
value: SelectValueProps;
|
|
@@ -115,6 +109,7 @@ export interface SelectConfig {
|
|
|
115
109
|
tooltipPlacement: SelectTooltipPlacementProps;
|
|
116
110
|
tooltipPosition: SelectTooltipPositionProps;
|
|
117
111
|
feedback: SelectFeedbackProps;
|
|
112
|
+
supportingText: SelectSupportingTextProps;
|
|
118
113
|
};
|
|
119
114
|
}
|
|
120
115
|
declare const selectConfig: SelectConfig;
|
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SelectOptions } from './Select.config';
|
|
2
|
+
import { SelectOptions, SelectSize, SelectStatus, SelectTooltipPlacement, SelectTooltipPosition } from './Select.config';
|
|
3
3
|
|
|
4
4
|
export interface DsSelectProps {
|
|
5
5
|
label: string;
|
|
6
|
+
id?: string;
|
|
6
7
|
className?: string;
|
|
7
8
|
disabled?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
required?: boolean;
|
|
10
|
+
autoFocus?: boolean;
|
|
10
11
|
name?: string;
|
|
11
12
|
testId?: string;
|
|
12
13
|
options: SelectOptions;
|
|
13
14
|
value?: string | number;
|
|
15
|
+
/** Valor inicial do campo; lido só na montagem. */
|
|
16
|
+
defaultValue?: string | number;
|
|
14
17
|
placeholder?: string;
|
|
15
|
-
onChange
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
onChange?(e: React.ChangeEvent<HTMLSelectElement>, value: string | number): void;
|
|
19
|
+
onBlur?: React.FocusEventHandler<HTMLSelectElement>;
|
|
20
|
+
onFocus?: React.FocusEventHandler<HTMLSelectElement>;
|
|
21
|
+
size?: `${SelectSize}`;
|
|
22
|
+
status?: `${SelectStatus}`;
|
|
19
23
|
tooltip?: string;
|
|
20
|
-
tooltipPosition?:
|
|
21
|
-
tooltipPlacement?:
|
|
24
|
+
tooltipPosition?: `${SelectTooltipPosition}`;
|
|
25
|
+
tooltipPlacement?: `${SelectTooltipPlacement}`;
|
|
26
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
22
27
|
feedback?: string;
|
|
28
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
29
|
+
supportingText?: string;
|
|
30
|
+
'aria-describedby'?: string;
|
|
31
|
+
'aria-label'?: string;
|
|
32
|
+
'aria-labelledby'?: string;
|
|
23
33
|
}
|
|
24
|
-
declare const DsSelect: React.ForwardRefExoticComponent<DsSelectProps & React.RefAttributes<
|
|
34
|
+
declare const DsSelect: React.ForwardRefExoticComponent<DsSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
25
35
|
export default DsSelect;
|