@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
|
@@ -8,7 +8,6 @@ export declare const Default: {
|
|
|
8
8
|
args: {
|
|
9
9
|
label: string;
|
|
10
10
|
disabled: boolean;
|
|
11
|
-
multiple: boolean;
|
|
12
11
|
size: import('.').SelectSize;
|
|
13
12
|
status: import('.').SelectStatus;
|
|
14
13
|
options: {
|
|
@@ -16,7 +15,6 @@ export declare const Default: {
|
|
|
16
15
|
label: string;
|
|
17
16
|
}[];
|
|
18
17
|
className: string;
|
|
19
|
-
animated: boolean;
|
|
20
18
|
name: string;
|
|
21
19
|
testId: string;
|
|
22
20
|
placeholder: string;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
export declare enum TextAreaSize {
|
|
2
|
-
Small = "small",
|
|
3
|
-
Medium = "medium",
|
|
4
|
-
Large = "large"
|
|
5
|
-
}
|
|
6
|
-
export declare enum TextAreaType {
|
|
7
|
-
Text = "text"
|
|
8
|
-
}
|
|
9
1
|
export declare enum TextAreaStatus {
|
|
10
2
|
None = "",
|
|
11
|
-
Error = "error"
|
|
12
|
-
Success = "success"
|
|
3
|
+
Error = "error"
|
|
13
4
|
}
|
|
14
5
|
export declare enum TextAreaResize {
|
|
15
6
|
None = "none",
|
|
@@ -19,32 +10,29 @@ export declare enum TextAreaResize {
|
|
|
19
10
|
Block = "block",
|
|
20
11
|
Inline = "inline"
|
|
21
12
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
export declare enum TextAreaTooltipPlacement {
|
|
14
|
+
Center = "center",
|
|
15
|
+
End = "end",
|
|
16
|
+
Initial = "initial"
|
|
25
17
|
}
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
export declare enum TextAreaTooltipPosition {
|
|
19
|
+
Top = "top",
|
|
20
|
+
Right = "right",
|
|
21
|
+
Bottom = "bottom",
|
|
22
|
+
Left = "left"
|
|
29
23
|
}
|
|
30
|
-
export interface
|
|
24
|
+
export interface TextAreaNameProps {
|
|
31
25
|
type: StringConstructor;
|
|
32
|
-
|
|
33
|
-
options: TextAreaType[];
|
|
26
|
+
required: true;
|
|
34
27
|
}
|
|
35
|
-
export interface
|
|
28
|
+
export interface TextAreaDisabledProps {
|
|
36
29
|
type: BooleanConstructor;
|
|
37
30
|
default: boolean;
|
|
38
31
|
}
|
|
39
|
-
export interface
|
|
32
|
+
export interface TextAreaAutoFocusProps {
|
|
40
33
|
type: BooleanConstructor;
|
|
41
34
|
default: boolean;
|
|
42
35
|
}
|
|
43
|
-
export interface TextAreaSizeProps {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: TextAreaSize;
|
|
46
|
-
options: TextAreaSize[];
|
|
47
|
-
}
|
|
48
36
|
export interface TextAreaLabelProps {
|
|
49
37
|
type: StringConstructor;
|
|
50
38
|
default: string;
|
|
@@ -78,37 +66,36 @@ export interface TextAreaFeedbackProps {
|
|
|
78
66
|
type: StringConstructor;
|
|
79
67
|
default: string;
|
|
80
68
|
}
|
|
81
|
-
export interface
|
|
69
|
+
export interface TextAreaSupportingTextProps {
|
|
82
70
|
type: StringConstructor;
|
|
83
71
|
default: string;
|
|
84
72
|
}
|
|
85
|
-
export interface
|
|
73
|
+
export interface TextAreaResizeProps {
|
|
86
74
|
type: StringConstructor;
|
|
87
|
-
default:
|
|
75
|
+
default: TextAreaResize;
|
|
76
|
+
options: TextAreaResize[];
|
|
88
77
|
}
|
|
89
78
|
export interface TextAreaTooltipProps {
|
|
90
79
|
type: StringConstructor;
|
|
91
80
|
default: string;
|
|
92
81
|
}
|
|
93
|
-
export interface
|
|
82
|
+
export interface TextAreaTooltipPlacementProps {
|
|
94
83
|
type: StringConstructor;
|
|
95
|
-
default:
|
|
96
|
-
options:
|
|
84
|
+
default: TextAreaTooltipPlacement;
|
|
85
|
+
options: TextAreaTooltipPlacement[];
|
|
97
86
|
}
|
|
98
|
-
export interface
|
|
99
|
-
type:
|
|
100
|
-
default:
|
|
87
|
+
export interface TextAreaTooltipPositionProps {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: TextAreaTooltipPosition;
|
|
90
|
+
options: TextAreaTooltipPosition[];
|
|
101
91
|
}
|
|
102
92
|
export interface TextAreaConfig {
|
|
103
93
|
name: string;
|
|
104
94
|
class: string;
|
|
105
95
|
props: {
|
|
106
96
|
name: TextAreaNameProps;
|
|
107
|
-
testId: TextAreaTestIdProps;
|
|
108
|
-
type: TextAreaTypeProps;
|
|
109
|
-
animated: TextAreaAnimatedProps;
|
|
110
97
|
disabled: TextAreaDisabledProps;
|
|
111
|
-
|
|
98
|
+
autoFocus: TextAreaAutoFocusProps;
|
|
112
99
|
label: TextAreaLabelProps;
|
|
113
100
|
placeholder: TextAreaPlaceholderProps;
|
|
114
101
|
value: TextAreaValueProps;
|
|
@@ -117,11 +104,11 @@ export interface TextAreaConfig {
|
|
|
117
104
|
rows: TextAreaRowsProps;
|
|
118
105
|
status: TextAreaStatusProps;
|
|
119
106
|
feedback: TextAreaFeedbackProps;
|
|
120
|
-
|
|
121
|
-
icon: TextAreaIconProps;
|
|
122
|
-
tooltip: TextAreaTooltipProps;
|
|
107
|
+
supportingText: TextAreaSupportingTextProps;
|
|
123
108
|
resize: TextAreaResizeProps;
|
|
124
|
-
|
|
109
|
+
tooltip: TextAreaTooltipProps;
|
|
110
|
+
tooltipPlacement: TextAreaTooltipPlacementProps;
|
|
111
|
+
tooltipPosition: TextAreaTooltipPositionProps;
|
|
125
112
|
};
|
|
126
113
|
}
|
|
127
114
|
declare const textAreaConfig: TextAreaConfig;
|
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { TextAreaResize, TextAreaStatus, TextAreaTooltipPlacement, TextAreaTooltipPosition } from './TextArea.config';
|
|
2
3
|
|
|
3
|
-
export interface DsTextAreaProps
|
|
4
|
+
export interface DsTextAreaProps {
|
|
5
|
+
id?: string;
|
|
4
6
|
name?: string;
|
|
5
7
|
testId?: string;
|
|
6
|
-
|
|
7
|
-
size?: string;
|
|
8
|
+
className?: string;
|
|
8
9
|
label?: string;
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
value?: string | undefined | null;
|
|
12
|
+
/** Valor inicial do campo; lido só na montagem. */
|
|
13
|
+
defaultValue?: string;
|
|
11
14
|
minLength?: number;
|
|
12
15
|
maxLength?: number;
|
|
13
16
|
rows?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
icon?: string;
|
|
17
|
-
status?: string;
|
|
17
|
+
status?: `${TextAreaStatus}`;
|
|
18
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
18
19
|
feedback?: string;
|
|
20
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
21
|
+
supportingText?: string;
|
|
19
22
|
disabled?: boolean;
|
|
23
|
+
readOnly?: boolean;
|
|
20
24
|
required?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
autoFocus?: boolean;
|
|
26
|
+
resize?: `${TextAreaResize}`;
|
|
27
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
28
|
+
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
29
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
30
|
+
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
tooltipPlacement?: `${TextAreaTooltipPlacement}`;
|
|
33
|
+
tooltipPosition?: `${TextAreaTooltipPosition}`;
|
|
34
|
+
'aria-describedby'?: string;
|
|
35
|
+
'aria-label'?: string;
|
|
36
|
+
'aria-labelledby'?: string;
|
|
28
37
|
}
|
|
29
38
|
declare const DsTextArea: React.ForwardRefExoticComponent<DsTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
30
39
|
export default DsTextArea;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
2
|
import { DsTextAreaProps } from '.';
|
|
3
|
-
import { ThemeProviderProps } from '../../
|
|
3
|
+
import { ThemeProviderProps } from '../../providers/ThemeProvider';
|
|
4
4
|
|
|
5
5
|
declare const ComponentProps: Meta;
|
|
6
6
|
export default ComponentProps;
|
|
@@ -15,13 +15,19 @@ export declare const Default: {
|
|
|
15
15
|
maxLength: number | undefined;
|
|
16
16
|
rows: number;
|
|
17
17
|
disabled: boolean;
|
|
18
|
-
animated: boolean;
|
|
19
|
-
size: import('.').TextAreaSize;
|
|
20
|
-
icon: string;
|
|
21
|
-
tooltip: string;
|
|
22
18
|
status: import('.').TextAreaStatus;
|
|
23
19
|
feedback: string;
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
supportingText: string;
|
|
21
|
+
resize: import('.').TextAreaResize;
|
|
22
|
+
tooltip: string;
|
|
23
|
+
tooltipPlacement: import('.').TextAreaTooltipPlacement;
|
|
24
|
+
tooltipPosition: import('.').TextAreaTooltipPosition;
|
|
26
25
|
};
|
|
27
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Estados do campo: o foco aparece ao interagir (Tab); Error e Disabled
|
|
29
|
+
* seguem o Input.
|
|
30
|
+
*/
|
|
31
|
+
export declare const States: {
|
|
32
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum TooltipDirection {
|
|
2
|
+
Bottom = "bottom",
|
|
2
3
|
Top = "top",
|
|
3
4
|
Right = "right",
|
|
4
|
-
Bottom = "bottom",
|
|
5
5
|
Left = "left"
|
|
6
6
|
}
|
|
7
|
-
export declare enum
|
|
7
|
+
export declare enum TooltipAlign {
|
|
8
|
+
Start = "start",
|
|
8
9
|
Center = "center",
|
|
9
|
-
End = "end"
|
|
10
|
-
Initial = "initial"
|
|
10
|
+
End = "end"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
options: TooltipPosition[];
|
|
12
|
+
export declare enum TooltipTheme {
|
|
13
|
+
Light = "light",
|
|
14
|
+
Dark = "dark"
|
|
16
15
|
}
|
|
17
|
-
export interface
|
|
16
|
+
export interface TooltipOptionProps<T> {
|
|
18
17
|
type: StringConstructor;
|
|
19
|
-
default:
|
|
20
|
-
options:
|
|
18
|
+
default: T;
|
|
19
|
+
options: T[];
|
|
21
20
|
}
|
|
22
21
|
export interface TooltipTextProps {
|
|
23
22
|
type: StringConstructor;
|
|
24
23
|
default: string;
|
|
25
24
|
}
|
|
26
|
-
export interface
|
|
27
|
-
type:
|
|
28
|
-
default:
|
|
25
|
+
export interface TooltipOpenProps {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
29
28
|
}
|
|
30
29
|
export interface TooltipConfig {
|
|
31
30
|
name: string;
|
|
32
31
|
class: string;
|
|
33
32
|
props: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
direction: TooltipOptionProps<TooltipDirection>;
|
|
34
|
+
align: TooltipOptionProps<TooltipAlign>;
|
|
35
|
+
theme: TooltipOptionProps<TooltipTheme>;
|
|
36
|
+
label: TooltipTextProps;
|
|
37
|
+
open: TooltipOpenProps;
|
|
38
|
+
testId: TooltipTextProps;
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
declare const tooltipConfig: TooltipConfig;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TooltipAlign, TooltipDirection, TooltipTheme } from './Tooltip.config';
|
|
3
3
|
|
|
4
4
|
export interface DsTooltipProps {
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
direction?: `${TooltipDirection}`;
|
|
7
|
+
align?: `${TooltipAlign}`;
|
|
8
|
+
theme?: `${TooltipTheme}`;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
id?: string;
|
|
9
12
|
className?: string;
|
|
10
13
|
testId?: string;
|
|
14
|
+
'aria-label'?: string;
|
|
11
15
|
}
|
|
12
16
|
declare const DsTooltip: {
|
|
13
|
-
({ children,
|
|
14
|
-
propTypes: {
|
|
15
|
-
position: PropTypes.Requireable<string>;
|
|
16
|
-
placement: PropTypes.Requireable<string>;
|
|
17
|
-
text: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
|
-
testId: PropTypes.Requireable<string>;
|
|
19
|
-
};
|
|
17
|
+
({ children, id, className, direction, align, theme, label, open: forcedOpen, testId, "aria-label": ariaLabel, }: DsTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
20
18
|
displayName: string;
|
|
21
19
|
};
|
|
22
20
|
export default DsTooltip;
|
|
@@ -1,46 +1,23 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import {
|
|
3
|
-
import { DsTooltipProps } from '.';
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { DsTooltipProps } from './Tooltip';
|
|
4
3
|
|
|
5
|
-
declare const ComponentProps: Meta
|
|
4
|
+
declare const ComponentProps: Meta<DsTooltipProps>;
|
|
6
5
|
export default ComponentProps;
|
|
7
6
|
export declare const Default: {
|
|
8
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps>;
|
|
9
8
|
args: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
placement: import('.').TooltipPlacement;
|
|
9
|
+
label: string;
|
|
10
|
+
open: boolean;
|
|
13
11
|
};
|
|
14
12
|
};
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
13
|
+
export declare const Matrix: StoryFn;
|
|
14
|
+
export declare const IconTrigger: StoryFn<DsTooltipProps>;
|
|
15
|
+
export declare const LongLabel: {
|
|
16
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps>;
|
|
17
17
|
args: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
export declare const Bottom: {
|
|
24
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
25
|
-
args: {
|
|
26
|
-
position: string;
|
|
27
|
-
text: string;
|
|
28
|
-
placement: import('.').TooltipPlacement;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const Right: {
|
|
32
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
33
|
-
args: {
|
|
34
|
-
position: string;
|
|
35
|
-
text: string;
|
|
36
|
-
placement: import('.').TooltipPlacement;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export declare const Left: {
|
|
40
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsTooltipProps & DsIconProps>;
|
|
41
|
-
args: {
|
|
42
|
-
position: string;
|
|
43
|
-
text: string;
|
|
44
|
-
placement: import('.').TooltipPlacement;
|
|
18
|
+
label: string;
|
|
19
|
+
open: boolean;
|
|
20
|
+
direction: string;
|
|
21
|
+
align: string;
|
|
45
22
|
};
|
|
46
23
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { LayoutTag } from '../../../enum/layoutTag';
|
|
2
|
+
|
|
3
|
+
export interface ContainerAsProps {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: LayoutTag;
|
|
6
|
+
options: LayoutTag[];
|
|
7
|
+
}
|
|
1
8
|
export interface ContainerFluidProps {
|
|
2
9
|
type: BooleanConstructor;
|
|
3
10
|
default: boolean;
|
|
@@ -10,6 +17,7 @@ export interface ContainerConfig {
|
|
|
10
17
|
name: string;
|
|
11
18
|
class: string;
|
|
12
19
|
props: {
|
|
20
|
+
as: ContainerAsProps;
|
|
13
21
|
fluid: ContainerFluidProps;
|
|
14
22
|
testId: ContainerTestIdProps;
|
|
15
23
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
import { LayoutTag } from '../../../enum/layoutTag';
|
|
3
3
|
|
|
4
4
|
export interface DsContainerProps {
|
|
5
|
+
as?: `${LayoutTag}`;
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
fluid?: boolean;
|
|
7
8
|
className?: string;
|
|
@@ -9,14 +10,7 @@ export interface DsContainerProps {
|
|
|
9
10
|
testId?: string;
|
|
10
11
|
}
|
|
11
12
|
declare const DsContainer: {
|
|
12
|
-
({ children, fluid, className, style, testId, }: DsContainerProps):
|
|
13
|
-
propTypes: {
|
|
14
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
fluid: PropTypes.Requireable<boolean>;
|
|
16
|
-
className: PropTypes.Requireable<string>;
|
|
17
|
-
style: PropTypes.Requireable<object>;
|
|
18
|
-
testId: PropTypes.Requireable<string>;
|
|
19
|
-
};
|
|
13
|
+
({ as, children, fluid, className, style, testId, }: DsContainerProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
20
14
|
displayName: string;
|
|
21
15
|
};
|
|
22
16
|
export default DsContainer;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare enum SpacerSize {
|
|
2
2
|
None = "none",
|
|
3
|
-
Quark = "quark",
|
|
4
|
-
Nano = "nano",
|
|
5
|
-
XXXS = "xxxs",
|
|
6
|
-
XXS = "xxs",
|
|
7
3
|
XS = "xs",
|
|
8
|
-
SM = "sm"
|
|
4
|
+
SM = "sm",
|
|
5
|
+
MD = "md",
|
|
6
|
+
LG = "lg",
|
|
7
|
+
XL = "xl",
|
|
8
|
+
XXL = "2xl"
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface SpacerSizeProps {
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: SpacerSize;
|
|
13
13
|
options: SpacerSize[];
|
|
@@ -16,8 +16,8 @@ export interface SpacerConfig {
|
|
|
16
16
|
name: string;
|
|
17
17
|
class: string;
|
|
18
18
|
props: {
|
|
19
|
-
vertical:
|
|
20
|
-
horizontal:
|
|
19
|
+
vertical: SpacerSizeProps;
|
|
20
|
+
horizontal: SpacerSizeProps;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
declare const spacerConfig: SpacerConfig;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SpacerSize } from './Spacer.config';
|
|
2
2
|
|
|
3
3
|
export interface DsSpacerProps {
|
|
4
|
-
vertical?:
|
|
5
|
-
horizontal?:
|
|
4
|
+
vertical?: `${SpacerSize}`;
|
|
5
|
+
horizontal?: `${SpacerSize}`;
|
|
6
6
|
}
|
|
7
7
|
declare const DsSpacer: {
|
|
8
8
|
({ vertical, horizontal, }: DsSpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
vertical: PropTypes.Requireable<import('./Spacer.config').SpacerSize>;
|
|
11
|
-
horizontal: PropTypes.Requireable<import('./Spacer.config').SpacerSize>;
|
|
12
|
-
};
|
|
13
9
|
displayName: string;
|
|
14
10
|
};
|
|
15
11
|
export default DsSpacer;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
+
import { LayoutTag } from '../../../enum/layoutTag';
|
|
2
|
+
|
|
1
3
|
export declare enum WrapperSpace {
|
|
2
4
|
None = "none",
|
|
3
|
-
Quark = "quark",
|
|
4
|
-
Nano = "nano",
|
|
5
5
|
ExtraSmall = "xs",
|
|
6
6
|
Small = "sm",
|
|
7
7
|
Medium = "md",
|
|
8
|
-
Large = "lg"
|
|
8
|
+
Large = "lg",
|
|
9
|
+
ExtraLarge = "xl",
|
|
10
|
+
XXL = "2xl"
|
|
9
11
|
}
|
|
10
12
|
export interface WrapperSpaceProps {
|
|
11
13
|
type: StringConstructor;
|
|
12
14
|
default?: WrapperSpace;
|
|
13
15
|
options?: WrapperSpace[];
|
|
14
16
|
}
|
|
17
|
+
export interface WrapperAsProps {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: LayoutTag;
|
|
20
|
+
options: LayoutTag[];
|
|
21
|
+
}
|
|
15
22
|
export interface WrapperConfig {
|
|
16
23
|
name: string;
|
|
17
24
|
class: string;
|
|
18
25
|
props: {
|
|
26
|
+
as: WrapperAsProps;
|
|
19
27
|
space: WrapperSpaceProps;
|
|
20
28
|
top: WrapperSpaceProps;
|
|
21
29
|
right: WrapperSpaceProps;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { LayoutTag } from '../../../enum/layoutTag';
|
|
2
3
|
|
|
3
4
|
export interface DsWrapperProps {
|
|
5
|
+
as?: `${LayoutTag}`;
|
|
4
6
|
children?: React.ReactNode;
|
|
5
7
|
space?: string;
|
|
6
8
|
top?: string;
|
|
@@ -9,7 +11,7 @@ export interface DsWrapperProps {
|
|
|
9
11
|
left?: string;
|
|
10
12
|
}
|
|
11
13
|
declare const DsWrapper: {
|
|
12
|
-
({ children, space, top, right, bottom, left, }: DsWrapperProps):
|
|
14
|
+
({ as, children, space, top, right, bottom, left, }: DsWrapperProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
15
|
displayName: string;
|
|
14
16
|
};
|
|
15
17
|
export default DsWrapper;
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
+
export * from './atoms/Badge';
|
|
1
2
|
export * from './atoms/Button';
|
|
2
|
-
export * from './atoms/Caption';
|
|
3
3
|
export * from './atoms/Card';
|
|
4
4
|
export * from './atoms/Checkbox';
|
|
5
|
-
export * from './atoms/
|
|
6
|
-
export * from './atoms/Heading';
|
|
5
|
+
export * from './atoms/FeedbackMessage';
|
|
7
6
|
export * from './atoms/HorizontalRule';
|
|
8
7
|
export * from './atoms/Icon';
|
|
8
|
+
export * from './atoms/IconButton';
|
|
9
9
|
export * from './atoms/Input';
|
|
10
10
|
export * from './atoms/Loading';
|
|
11
|
-
export * from './atoms/Option';
|
|
12
|
-
export * from './atoms/Paragraph';
|
|
13
|
-
export * from './atoms/Progress';
|
|
14
11
|
export * from './atoms/Radio';
|
|
15
|
-
export * from './atoms/SegmentControl';
|
|
16
12
|
export * from './atoms/Select';
|
|
17
|
-
export * from './atoms/Subtitle';
|
|
18
13
|
export * from './atoms/TextArea';
|
|
19
14
|
export * from './atoms/Tooltip';
|
|
20
15
|
export * from './bosons/Container';
|
|
21
|
-
export * from './bosons/FlexLayout';
|
|
22
|
-
export * from './bosons/GridLayout';
|
|
23
16
|
export * from './bosons/Spacer';
|
|
24
17
|
export * from './bosons/Wrapper';
|
|
25
18
|
export * from './molecules/Accordion';
|
|
26
19
|
export * from './molecules/ActiveTags';
|
|
20
|
+
export * from './molecules/Alert';
|
|
27
21
|
export * from './molecules/Carousel';
|
|
28
|
-
export * from './molecules/
|
|
29
|
-
export * from './molecules/
|
|
22
|
+
export * from './molecules/CheckboxCardGroup';
|
|
23
|
+
export * from './molecules/CheckboxGroup';
|
|
24
|
+
export * from './molecules/Combobox';
|
|
30
25
|
export * from './molecules/Indicator';
|
|
31
26
|
export * from './molecules/InlineEditable';
|
|
32
|
-
export * from './molecules/Modal';
|
|
33
|
-
export * from './molecules/Notification';
|
|
34
27
|
export * from './molecules/PasswordConfirmation';
|
|
28
|
+
export * from './molecules/ProgressBar';
|
|
29
|
+
export * from './molecules/RadioCardGroup';
|
|
30
|
+
export * from './molecules/RadioGroup';
|
|
31
|
+
export * from './molecules/SegmentControl';
|
|
35
32
|
export * from './molecules/Stepper';
|
|
36
33
|
export * from './molecules/Table';
|
|
37
34
|
export * from './molecules/Tabs';
|
|
38
|
-
export * from './
|
|
35
|
+
export * from './organisms/Modal';
|
|
39
36
|
export * from './organisms/NotificationList';
|
|
40
|
-
export * from './templates/SplitLayout';
|
|
41
37
|
export * from './templates/TwoColumns';
|
|
38
|
+
export * from './providers/ThemeProvider';
|
|
@@ -5,6 +5,7 @@ export interface AccordionItemsProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
active: boolean;
|
|
8
|
+
icon?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface AccordionOpenItemListIndexProps {
|
|
10
11
|
type: BooleanConstructor;
|
|
@@ -18,6 +19,10 @@ export interface AccordionActiveItemProps {
|
|
|
18
19
|
type: NumberConstructor;
|
|
19
20
|
default: number;
|
|
20
21
|
}
|
|
22
|
+
export interface AccordionHeadingLevelProps {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
options: number[];
|
|
25
|
+
}
|
|
21
26
|
export interface AccordionConfig {
|
|
22
27
|
name: string;
|
|
23
28
|
class: string;
|
|
@@ -25,6 +30,7 @@ export interface AccordionConfig {
|
|
|
25
30
|
openItemListIndex: AccordionOpenItemListIndexProps;
|
|
26
31
|
items: AccordionItemsArrayProps;
|
|
27
32
|
activeItem: AccordionActiveItemProps;
|
|
33
|
+
headingLevel: AccordionHeadingLevelProps;
|
|
28
34
|
};
|
|
29
35
|
}
|
|
30
36
|
declare const accordionConfig: AccordionConfig;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
1
|
import { AccordionItemsProps } from './Accordion.config';
|
|
3
2
|
|
|
4
|
-
interface
|
|
3
|
+
export interface DsAccordionProps {
|
|
5
4
|
items: AccordionItemsProps[];
|
|
6
5
|
activeItem?: number | null;
|
|
7
6
|
onClick?: (index: number) => void;
|
|
7
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const DsAccordion: {
|
|
10
|
-
({ items, activeItem, onClick, }:
|
|
11
|
-
propTypes: {
|
|
12
|
-
items: PropTypes.Requireable<any[]>;
|
|
13
|
-
activeItem: PropTypes.Requireable<number>;
|
|
14
|
-
};
|
|
11
|
+
({ items, activeItem, onClick, headingLevel, testId, }: DsAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
12
|
displayName: string;
|
|
16
13
|
};
|
|
17
14
|
export default DsAccordion;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { DsAccordionProps } from './Accordion';
|
|
3
3
|
|
|
4
4
|
declare const componentProps: Meta;
|
|
5
5
|
export default componentProps;
|
|
6
6
|
export declare const Default: {
|
|
7
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer,
|
|
7
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAccordionProps>;
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
10
|
+
export declare const SemIcone: {
|
|
11
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAccordionProps>;
|
|
12
|
+
args: {};
|
|
13
|
+
};
|
|
14
|
+
export declare const ConteudoRico: {
|
|
15
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsAccordionProps>;
|
|
8
16
|
args: {};
|
|
9
17
|
};
|