@akad/design-system 4.0.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/css/theme-aon.css +1 -1
- package/css/theme-bees.css +1 -1
- package/css/theme-bmc.css +1 -1
- package/css/theme-default.css +1 -1
- package/css/theme-linker.css +1 -1
- package/css/theme-oggi.css +1 -1
- package/css/theme-streetgo.css +1 -1
- package/package.json +13 -4
- package/react/react-lib.js +5373 -5004
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
- package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
- package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
- package/react/src/components/atoms/Badge/index.d.ts +4 -0
- package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
- package/react/src/components/atoms/Button/Button.d.ts +34 -61
- package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
- package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
- package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
- package/react/src/components/atoms/Card/Card.d.ts +16 -18
- package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
- package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
- package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
- package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
- package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
- package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
- package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
- package/react/src/components/atoms/IconButton/index.d.ts +4 -0
- package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
- package/react/src/components/atoms/Input/Input.d.ts +34 -15
- package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
- package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
- package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
- package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
- package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
- package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
- package/react/src/components/atoms/Radio/index.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
- package/react/src/components/atoms/Select/Select.d.ts +20 -10
- package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
- package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
- package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
- package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
- package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
- package/react/src/components/bosons/Container/Container.d.ts +3 -9
- package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
- package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
- package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
- package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
- package/react/src/components/index.d.ts +13 -16
- package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
- package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
- package/react/src/components/molecules/Accordion/index.d.ts +0 -4
- package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
- package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
- package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
- package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
- package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
- package/react/src/components/molecules/Alert/index.d.ts +4 -0
- package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
- package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
- package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -15
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
- package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
- package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
- package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
- package/react/src/components/molecules/Combobox/index.d.ts +4 -0
- package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
- package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
- package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
- package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
- package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
- package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
- package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
- package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
- package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
- package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
- package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
- package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
- package/react/src/components/molecules/Table/Table.d.ts +13 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
- package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
- package/react/src/components/molecules/Tabs/index.d.ts +0 -1
- package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
- package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
- package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
- package/react/src/components/propLeakage.test.d.ts +1 -0
- package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
- package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
- package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
- package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
- package/react/src/enum/layoutTag.d.ts +10 -0
- package/react/src/helpers/feedbackMessage.d.ts +22 -0
- package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
- package/react/src/helpers/testId.d.ts +7 -0
- package/react/src/helpers/testId.test.d.ts +1 -0
- package/react/src/helpers/useInternalValue.d.ts +23 -0
- package/react/src/helpers/useInternalValue.test.d.ts +1 -0
- package/scss/core/README.md +56 -0
- package/scss/core/base/typography.scss +3 -4
- package/scss/core/components/atoms/badge.scss +116 -0
- package/scss/core/components/atoms/button.scss +94 -797
- package/scss/core/components/atoms/card.scss +74 -126
- package/scss/core/components/atoms/checkbox.scss +110 -47
- package/scss/core/components/atoms/feedback-message.scss +38 -0
- package/scss/core/components/atoms/horizontal-rule.scss +4 -5
- package/scss/core/components/atoms/icon-button.scss +18 -0
- package/scss/core/components/atoms/icon.scss +53 -38
- package/scss/core/components/atoms/input.scss +248 -259
- package/scss/core/components/atoms/loading.scss +133 -77
- package/scss/core/components/atoms/radio.scss +84 -100
- package/scss/core/components/atoms/select.scss +151 -176
- package/scss/core/components/atoms/textarea.scss +154 -281
- package/scss/core/components/atoms/tooltip.scss +129 -149
- package/scss/core/components/bosons/caption.scss +10 -0
- package/scss/core/components/bosons/container.scss +5 -1
- package/scss/core/components/bosons/flex.scss +121 -0
- package/scss/core/components/bosons/grid.scss +39 -43
- package/scss/core/components/bosons/heading.scss +29 -0
- package/scss/core/components/bosons/label.scss +21 -0
- package/scss/core/components/bosons/paragraph.scss +62 -0
- package/scss/core/components/bosons/spacer.scss +6 -34
- package/scss/core/components/bosons/subtitle.scss +9 -0
- package/scss/core/components/bosons/wrapper.scss +10 -2
- package/scss/core/components/index.scss +19 -17
- package/scss/core/components/molecules/accordion.scss +42 -48
- package/scss/core/components/molecules/active-tags.scss +102 -28
- package/scss/core/components/molecules/alert.scss +145 -0
- package/scss/core/components/molecules/carousel.scss +4 -4
- package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
- package/scss/core/components/molecules/checkbox-group.scss +39 -0
- package/scss/core/components/molecules/combobox.scss +158 -0
- package/scss/core/components/molecules/indicator.scss +4 -6
- package/scss/core/components/molecules/inline-editable.scss +6 -8
- package/scss/core/components/molecules/password-confirmation.scss +11 -7
- package/scss/core/components/molecules/progress-bar.scss +85 -0
- package/scss/core/components/molecules/radio-card-group.scss +228 -0
- package/scss/core/components/molecules/radio-group.scss +45 -0
- package/scss/core/components/molecules/segment-control.scss +150 -0
- package/scss/core/components/molecules/stepper.scss +130 -57
- package/scss/core/components/molecules/table.scss +19 -18
- package/scss/core/components/molecules/tabs.scss +37 -215
- package/scss/core/components/organisms/modal.scss +68 -0
- package/scss/core/components/organisms/notification-list.scss +17 -17
- package/scss/core/components/templates/two-columns.scss +6 -6
- package/scss/core/functions/breakpoints.scss +4 -11
- package/scss/core/functions/index.scss +0 -3
- package/scss/core/functions/primitive.scss +68 -0
- package/scss/core/helpers/colors.scss +56 -187
- package/scss/core/helpers/display.scss +0 -148
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/order.scss +6 -4
- package/scss/core/index.scss +1 -1
- package/scss/core/mixins/breakpoints.scss +9 -47
- package/scss/core/mixins/choice.scss +88 -0
- package/scss/core/mixins/colors.scss +40 -0
- package/scss/core/mixins/index.scss +3 -2
- package/scss/core/mixins/typography.scss +22 -0
- package/scss/core/{tokens → primitives}/borders.scss +13 -14
- package/scss/core/primitives/breakpoints.scss +14 -0
- package/scss/core/primitives/colors.scss +174 -0
- package/scss/core/primitives/font.scss +34 -0
- package/scss/core/primitives/index.scss +8 -0
- package/scss/core/primitives/opacity.scss +40 -0
- package/scss/core/primitives/shadows.scss +36 -0
- package/scss/core/primitives/sizes.scss +28 -0
- package/scss/core/primitives/spacings.scss +28 -0
- package/scss/core/tokens/breakpoints.scss +12 -19
- package/scss/core/tokens/colors.scss +109 -0
- package/scss/core/tokens/font.scss +27 -0
- package/scss/core/tokens/index.scss +6 -6
- package/scss/core/tokens/sizes.scss +33 -0
- package/scss/core/tokens/spacings.scss +31 -39
- package/scss/core/tokens/typography.scss +144 -19
- package/scss/index.scss +7 -0
- package/scss/themes/aon/index.scss +76 -41
- package/scss/themes/aon/primitives.scss +35 -0
- package/scss/themes/bees/index.scss +52 -34
- package/scss/themes/bees/primitives.scss +19 -0
- package/scss/themes/bmc/index.scss +77 -42
- package/scss/themes/bmc/primitives.scss +33 -0
- package/scss/themes/default/index.scss +15 -59
- package/scss/themes/linker/index.scss +36 -17
- package/scss/themes/linker/primitives.scss +14 -0
- package/scss/themes/oggi/index.scss +77 -42
- package/scss/themes/oggi/primitives.scss +35 -0
- package/scss/themes/streetgo/index.scss +77 -42
- package/scss/themes/streetgo/primitives.scss +34 -0
- package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
- package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
- package/react/src/components/atoms/Caption/index.d.ts +0 -4
- package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
- package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
- package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
- package/react/src/components/atoms/Chip/index.d.ts +0 -4
- package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
- package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
- package/react/src/components/atoms/Heading/index.d.ts +0 -4
- package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
- package/react/src/components/atoms/Option/Option.d.ts +0 -30
- package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
- package/react/src/components/atoms/Option/index.d.ts +0 -4
- package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
- package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
- package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
- package/react/src/components/atoms/Progress/index.d.ts +0 -4
- package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
- package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
- package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
- package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
- package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
- package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
- package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
- package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
- package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
- package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
- package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
- package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
- package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
- package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
- package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
- package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
- package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
- package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
- package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
- package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
- package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
- package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
- package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
- package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
- package/react/src/components/molecules/Notification/index.d.ts +0 -4
- package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
- package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
- package/react/src/components/molecules/Tabs/types.d.ts +0 -23
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
- package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
- package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
- package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
- package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
- package/react/src/enum/colorProps.d.ts +0 -30
- package/scss/core/components/atoms/caption.scss +0 -13
- package/scss/core/components/atoms/chip.scss +0 -101
- package/scss/core/components/atoms/heading.scss +0 -70
- package/scss/core/components/atoms/option.scss +0 -78
- package/scss/core/components/atoms/paragraph.scss +0 -44
- package/scss/core/components/atoms/progress.scss +0 -16
- package/scss/core/components/atoms/radio-card.scss +0 -117
- package/scss/core/components/atoms/segment-control.scss +0 -143
- package/scss/core/components/atoms/subtitle.scss +0 -21
- package/scss/core/components/bosons/flex-layout.scss +0 -45
- package/scss/core/components/bosons/grid-layout.scss +0 -76
- package/scss/core/components/molecules/checkbox-card.scss +0 -473
- package/scss/core/components/molecules/editable-select.scss +0 -145
- package/scss/core/components/molecules/modal.scss +0 -70
- package/scss/core/components/molecules/notification.scss +0 -109
- package/scss/core/components/templates/split-layout.scss +0 -51
- package/scss/core/functions/fonts.scss +0 -17
- package/scss/core/functions/spacings.scss +0 -8
- package/scss/core/functions/tokens.scss +0 -14
- package/scss/core/helpers/elevation.scss +0 -16
- package/scss/core/tokens/icons.scss +0 -2
- package/scss/core/tokens/opacity.scss +0 -6
- package/scss/core/tokens/shadows.scss +0 -15
- package/scss/themes/aon/colors.scss +0 -83
- package/scss/themes/bees/colors.scss +0 -32
- package/scss/themes/bmc/colors.scss +0 -81
- package/scss/themes/default/colors.scss +0 -109
- package/scss/themes/linker/colors.scss +0 -35
- package/scss/themes/oggi/colors.scss +0 -81
- package/scss/themes/streetgo/colors.scss +0 -81
- /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
- /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
- /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
- /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
- /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
- /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
- /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
- /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
- /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
- /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare enum CheckboxStatus {
|
|
2
|
+
Default = "",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Warning = "warning",
|
|
5
|
+
Skeleton = "skeleton"
|
|
6
|
+
}
|
|
3
7
|
export interface CheckboxNameProps {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
required: false;
|
|
6
10
|
}
|
|
7
|
-
export interface
|
|
11
|
+
export interface CheckboxLabelProps {
|
|
8
12
|
type: StringConstructor;
|
|
9
13
|
default: string;
|
|
10
14
|
}
|
|
11
|
-
export interface
|
|
15
|
+
export interface CheckboxDescriptionProps {
|
|
12
16
|
type: StringConstructor;
|
|
13
17
|
default: string;
|
|
14
18
|
}
|
|
15
|
-
export interface
|
|
19
|
+
export interface CheckboxTooltipProps {
|
|
16
20
|
type: StringConstructor;
|
|
17
21
|
default: string;
|
|
18
22
|
}
|
|
19
23
|
export interface CheckboxCheckedProps {
|
|
20
24
|
type: BooleanConstructor;
|
|
21
|
-
|
|
25
|
+
required: false;
|
|
22
26
|
}
|
|
23
|
-
export interface
|
|
27
|
+
export interface CheckboxDefaultCheckedProps {
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
default: boolean;
|
|
26
30
|
}
|
|
@@ -28,34 +32,24 @@ export interface CheckboxDisabledProps {
|
|
|
28
32
|
type: BooleanConstructor;
|
|
29
33
|
default: boolean;
|
|
30
34
|
}
|
|
31
|
-
export interface
|
|
32
|
-
type:
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
export interface DsCheckboxProps {
|
|
36
|
-
id?: string;
|
|
37
|
-
className?: string;
|
|
38
|
-
name?: string;
|
|
39
|
-
testId?: string;
|
|
40
|
-
label?: string | ReactNode;
|
|
41
|
-
description?: string | ReactNode;
|
|
42
|
-
checked?: boolean;
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
changeByChecked?: boolean;
|
|
45
|
-
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
35
|
+
export interface CheckboxStatusProps {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: CheckboxStatus;
|
|
38
|
+
options: CheckboxStatus[];
|
|
46
39
|
}
|
|
47
40
|
export interface CheckboxConfig {
|
|
48
41
|
name: string;
|
|
49
42
|
class: string;
|
|
50
43
|
props: {
|
|
51
44
|
name: CheckboxNameProps;
|
|
52
|
-
|
|
45
|
+
fieldLabel: CheckboxLabelProps;
|
|
53
46
|
label: CheckboxLabelProps;
|
|
54
47
|
description: CheckboxDescriptionProps;
|
|
48
|
+
tooltip: CheckboxTooltipProps;
|
|
49
|
+
status: CheckboxStatusProps;
|
|
55
50
|
checked: CheckboxCheckedProps;
|
|
51
|
+
defaultChecked: CheckboxDefaultCheckedProps;
|
|
56
52
|
disabled: CheckboxDisabledProps;
|
|
57
|
-
changeByChecked: CheckboxChangeByCheckedProps;
|
|
58
|
-
onChangeHandler: CheckboxOnChangeHandlerProps;
|
|
59
53
|
};
|
|
60
54
|
}
|
|
61
55
|
declare const checkboxConfig: CheckboxConfig;
|
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { CheckboxStatus } from './Checkbox.config';
|
|
3
3
|
|
|
4
|
+
export interface DsCheckboxProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
fieldLabel?: ReactNode;
|
|
10
|
+
label?: string | ReactNode;
|
|
11
|
+
description?: string | ReactNode;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
status?: `${CheckboxStatus}`;
|
|
14
|
+
/** Mensagem de validação (vem do register); só aparece com erro ou aviso. */
|
|
15
|
+
feedback?: ReactNode;
|
|
16
|
+
/** Texto de apoio fixo abaixo do campo. */
|
|
17
|
+
supportingText?: ReactNode;
|
|
18
|
+
checked?: boolean;
|
|
19
|
+
defaultChecked?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
value?: string | number;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
24
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
25
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
26
|
+
'aria-describedby'?: string;
|
|
27
|
+
'aria-label'?: string;
|
|
28
|
+
'aria-labelledby'?: string;
|
|
29
|
+
}
|
|
4
30
|
declare const DsCheckbox: React.ForwardRefExoticComponent<DsCheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
31
|
export default DsCheckbox;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { CheckboxStatus } from './Checkbox.config';
|
|
2
3
|
import { DsCheckboxProps } from '.';
|
|
3
4
|
|
|
4
5
|
declare const ComponentProps: Meta;
|
|
@@ -17,7 +18,46 @@ export declare const Disabled: {
|
|
|
17
18
|
name: string;
|
|
18
19
|
disabled: boolean;
|
|
19
20
|
label: string;
|
|
20
|
-
description: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
};
|
|
23
|
+
export declare const WithFieldLabelAndTooltip: {
|
|
24
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxProps>;
|
|
25
|
+
args: {
|
|
26
|
+
name: string;
|
|
27
|
+
fieldLabel: string;
|
|
28
|
+
label: string;
|
|
29
|
+
tooltip: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const WithError: {
|
|
33
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxProps>;
|
|
34
|
+
args: {
|
|
35
|
+
name: string;
|
|
36
|
+
label: string;
|
|
37
|
+
status: CheckboxStatus;
|
|
38
|
+
feedback: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const Warning: {
|
|
42
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxProps>;
|
|
43
|
+
args: {
|
|
44
|
+
name: string;
|
|
45
|
+
label: string;
|
|
46
|
+
status: CheckboxStatus;
|
|
47
|
+
feedback: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const Skeleton: {
|
|
51
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxProps>;
|
|
52
|
+
args: {
|
|
53
|
+
name: string;
|
|
54
|
+
status: CheckboxStatus;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Estados (Enabled, Invalid, Warning, Disabled, Skeleton) x seleção
|
|
59
|
+
* (Unchecked, Checked). O foco aparece ao navegar por teclado.
|
|
60
|
+
*/
|
|
61
|
+
export declare const Matrix: {
|
|
62
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
23
63
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum FeedbackMessageStatus {
|
|
2
|
+
Default = "",
|
|
3
|
+
Error = "error",
|
|
4
|
+
Warning = "warning"
|
|
5
|
+
}
|
|
6
|
+
export interface FeedbackMessageStatusProps {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: FeedbackMessageStatus;
|
|
9
|
+
options: FeedbackMessageStatus[];
|
|
10
|
+
}
|
|
11
|
+
export interface FeedbackMessageTextProps {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
}
|
|
15
|
+
export interface FeedbackMessageConfig {
|
|
16
|
+
name: string;
|
|
17
|
+
class: string;
|
|
18
|
+
props: {
|
|
19
|
+
status: FeedbackMessageStatusProps;
|
|
20
|
+
feedback: FeedbackMessageTextProps;
|
|
21
|
+
supportingText: FeedbackMessageTextProps;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const feedbackMessageConfig: FeedbackMessageConfig;
|
|
25
|
+
export default feedbackMessageConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FeedbackMessageStatus } from './FeedbackMessage.config';
|
|
3
|
+
|
|
4
|
+
export interface DsFeedbackMessageProps {
|
|
5
|
+
/** Id da região, alvo do `aria-describedby` do campo. */
|
|
6
|
+
id?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
/** `error` e `warning` têm prioridade; qualquer outro valor conta como neutro. */
|
|
10
|
+
status?: `${FeedbackMessageStatus}`;
|
|
11
|
+
/** Mensagem de validação; só aparece com erro ou aviso, no lugar do supportingText. */
|
|
12
|
+
feedback?: ReactNode;
|
|
13
|
+
/** Texto de apoio; aparece sempre, e sustenta o erro/aviso quando não há `feedback`. */
|
|
14
|
+
supportingText?: ReactNode;
|
|
15
|
+
/** Uso interno dos componentes do DS: bloco BEM do campo que hospeda a linha. */
|
|
16
|
+
block?: string;
|
|
17
|
+
/** Uso interno dos componentes do DS: `data-testid` do ícone. */
|
|
18
|
+
iconTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Linha de mensagem sob um campo, com ícone e texto. */
|
|
21
|
+
declare const DsFeedbackMessage: {
|
|
22
|
+
({ id, className, testId, status, feedback, supportingText, block, iconTestId, }: DsFeedbackMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export default DsFeedbackMessage;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { FeedbackMessageStatus } from './FeedbackMessage.config';
|
|
3
|
+
import { DsFeedbackMessageProps } from '.';
|
|
4
|
+
|
|
5
|
+
declare const ComponentProps: Meta;
|
|
6
|
+
export default ComponentProps;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFeedbackMessageProps>;
|
|
9
|
+
args: {
|
|
10
|
+
supportingText: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const Neutral: {
|
|
14
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFeedbackMessageProps>;
|
|
15
|
+
args: {
|
|
16
|
+
status: FeedbackMessageStatus;
|
|
17
|
+
supportingText: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const WithError: {
|
|
21
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFeedbackMessageProps>;
|
|
22
|
+
args: {
|
|
23
|
+
status: FeedbackMessageStatus;
|
|
24
|
+
feedback: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const WithWarning: {
|
|
28
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFeedbackMessageProps>;
|
|
29
|
+
args: {
|
|
30
|
+
status: FeedbackMessageStatus;
|
|
31
|
+
feedback: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/** Sem texto, a região continua montada e reserva a linha. */
|
|
35
|
+
export declare const EmptyReservedRow: {
|
|
36
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFeedbackMessageProps>;
|
|
37
|
+
args: {};
|
|
38
|
+
decorators: ((Story: StoryFn) => import("react/jsx-runtime").JSX.Element)[];
|
|
39
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum HorizontalRuleBorderStyle {
|
|
2
2
|
None = "",
|
|
3
3
|
Dashed = "dashed",
|
|
4
4
|
Dotted = "dotted"
|
|
5
5
|
}
|
|
6
|
-
export declare enum
|
|
6
|
+
export declare enum HorizontalRuleSize {
|
|
7
7
|
None = "",
|
|
8
8
|
Small = "small",
|
|
9
9
|
Large = "large"
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface HorizontalRuleBorderStyleProps {
|
|
12
12
|
type: StringConstructor;
|
|
13
|
-
default:
|
|
14
|
-
options:
|
|
13
|
+
default: HorizontalRuleBorderStyle;
|
|
14
|
+
options: HorizontalRuleBorderStyle[];
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface HorizontalRuleSizeProps {
|
|
17
17
|
type: StringConstructor;
|
|
18
|
-
default:
|
|
19
|
-
options:
|
|
18
|
+
default: HorizontalRuleSize;
|
|
19
|
+
options: HorizontalRuleSize[];
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface HorizontalRuleConfig {
|
|
22
22
|
name: string;
|
|
23
23
|
class: string;
|
|
24
24
|
props: {
|
|
25
|
-
borderStyle:
|
|
26
|
-
size:
|
|
25
|
+
borderStyle: HorizontalRuleBorderStyleProps;
|
|
26
|
+
size: HorizontalRuleSizeProps;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
declare const
|
|
30
|
-
export default
|
|
29
|
+
declare const horizontalRuleConfig: HorizontalRuleConfig;
|
|
30
|
+
export default horizontalRuleConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HorizontalRuleBorderStyle, HorizontalRuleSize } from './HorizontalRule.config';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
size?:
|
|
5
|
-
borderStyle?:
|
|
3
|
+
export interface DsHorizontalRuleProps {
|
|
4
|
+
size?: `${HorizontalRuleSize}`;
|
|
5
|
+
borderStyle?: `${HorizontalRuleBorderStyle}`;
|
|
6
|
+
testId?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const
|
|
8
|
-
({ size, borderStyle, }:
|
|
9
|
-
propTypes: {
|
|
10
|
-
size: PropTypes.Requireable<import('./HorizontalRule.config').HRSize>;
|
|
11
|
-
borderStyle: PropTypes.Requireable<import('./HorizontalRule.config').HRBorderStyle>;
|
|
12
|
-
};
|
|
8
|
+
declare const DsHorizontalRule: {
|
|
9
|
+
({ size, borderStyle, testId, }: DsHorizontalRuleProps): import("react/jsx-runtime").JSX.Element;
|
|
13
10
|
displayName: string;
|
|
14
11
|
};
|
|
15
|
-
export default
|
|
12
|
+
export default DsHorizontalRule;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import {
|
|
2
|
+
import { DsHorizontalRuleProps } from '.';
|
|
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, DsHorizontalRuleProps>;
|
|
8
8
|
args: {};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './HorizontalRule';
|
|
2
2
|
export * from './HorizontalRule.config';
|
|
3
|
-
export { default as
|
|
3
|
+
export { default as DsHorizontalRule } from './HorizontalRule';
|
|
4
4
|
export { default as horizontalRuleConfig } from './HorizontalRule.config';
|
|
@@ -1,124 +1,58 @@
|
|
|
1
1
|
export declare enum IconColor {
|
|
2
|
+
Default = "default",
|
|
3
|
+
Strong = "strong",
|
|
4
|
+
Subtle = "subtle",
|
|
5
|
+
Disabled = "disabled",
|
|
6
|
+
Inverse = "inverse",
|
|
7
|
+
OnEmphasis = "on-emphasis",
|
|
2
8
|
Primary = "primary",
|
|
3
|
-
|
|
4
|
-
PrimaryLighter = "primary-lighter",
|
|
5
|
-
PrimaryLight = "primary-light",
|
|
6
|
-
PrimaryDark = "primary-dark",
|
|
7
|
-
PrimaryDarker = "primary-darker",
|
|
8
|
-
Neutral90 = "neutral-90",
|
|
9
|
-
Neutral80 = "neutral-80",
|
|
10
|
-
Neutral60 = "neutral-60",
|
|
11
|
-
Neutral40 = "neutral-40",
|
|
12
|
-
Neutral20 = "neutral-20",
|
|
13
|
-
Neutral10 = "neutral-10",
|
|
14
|
-
Neutral05 = "neutral-05",
|
|
15
|
-
Neutral00 = "neutral-00",
|
|
9
|
+
PrimaryStrong = "primary-strong",
|
|
16
10
|
Secondary = "secondary",
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
SecondaryDark = "secondary-dark",
|
|
21
|
-
SecondaryDarker = "secondary-darker",
|
|
11
|
+
SecondaryStrong = "secondary-strong",
|
|
12
|
+
Destructive = "destructive",
|
|
13
|
+
DestructiveStrong = "destructive-strong",
|
|
22
14
|
Success = "success",
|
|
23
|
-
|
|
24
|
-
SuccessLight = "success-light",
|
|
25
|
-
SuccessDark = "success-dark",
|
|
15
|
+
SuccessStrong = "success-strong",
|
|
26
16
|
Warning = "warning",
|
|
27
|
-
|
|
28
|
-
WarningLight = "warning-light",
|
|
29
|
-
WarningDark = "warning-dark",
|
|
30
|
-
Danger = "danger",
|
|
31
|
-
DangerLighter = "danger-lighter",
|
|
32
|
-
DangerLight = "danger-light",
|
|
33
|
-
DangerDark = "danger-dark",
|
|
17
|
+
WarningStrong = "warning-strong",
|
|
34
18
|
Info = "info",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
InfoDark = "info-dark"
|
|
38
|
-
}
|
|
39
|
-
export declare enum IconVariation {
|
|
40
|
-
Outlined = "outlined",
|
|
41
|
-
Rounded = "rounded",
|
|
42
|
-
Sharp = "sharp"
|
|
19
|
+
InfoStrong = "info-strong",
|
|
20
|
+
Inherit = "inherit"
|
|
43
21
|
}
|
|
44
22
|
export declare enum IconSize {
|
|
45
|
-
XXS = "xxs",
|
|
46
23
|
XS = "xs",
|
|
47
24
|
SM = "sm",
|
|
48
25
|
MD = "md",
|
|
49
26
|
LG = "lg",
|
|
50
27
|
XL = "xl",
|
|
51
|
-
XXL = "
|
|
52
|
-
XXXL = "xxxl",
|
|
53
|
-
Huge = "huge"
|
|
54
|
-
}
|
|
55
|
-
export declare enum IconWeight {
|
|
56
|
-
Bold = "bold",
|
|
57
|
-
Semibold = "semibold",
|
|
58
|
-
Medium = "medium",
|
|
59
|
-
Regular = "regular",
|
|
60
|
-
Light = "light",
|
|
61
|
-
Extralight = "extralight"
|
|
62
|
-
}
|
|
63
|
-
export interface IconFontVariationSettings {
|
|
64
|
-
fill: number;
|
|
65
|
-
grad: number;
|
|
66
|
-
weight: number;
|
|
67
|
-
opticalSize: number;
|
|
68
|
-
}
|
|
69
|
-
export interface IconColorProps {
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
default: IconColor;
|
|
72
|
-
options: IconColor[];
|
|
73
|
-
}
|
|
74
|
-
export interface IconImageProps {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
}
|
|
78
|
-
export interface IconVariationProps {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
default: IconVariation;
|
|
81
|
-
options: IconVariation[];
|
|
82
|
-
}
|
|
83
|
-
export interface IconSizeProps {
|
|
84
|
-
type: StringConstructor;
|
|
85
|
-
default: IconSize;
|
|
86
|
-
options: IconSize[];
|
|
87
|
-
}
|
|
88
|
-
export interface IconFontVariationSettingsProps {
|
|
89
|
-
type: ObjectConstructor;
|
|
90
|
-
default: IconFontVariationSettings;
|
|
91
|
-
}
|
|
92
|
-
export interface IconFillProps {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
}
|
|
96
|
-
export interface IconWeightProps {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: IconWeight;
|
|
99
|
-
options: IconWeight[];
|
|
100
|
-
}
|
|
101
|
-
export interface IconTestIdProps {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
}
|
|
105
|
-
export interface IconOnClickProps {
|
|
106
|
-
type: FunctionConstructor;
|
|
107
|
-
default: () => void;
|
|
28
|
+
XXL = "2xl"
|
|
108
29
|
}
|
|
109
30
|
export interface IconConfig {
|
|
110
31
|
name: string;
|
|
111
32
|
class: string;
|
|
112
33
|
props: {
|
|
113
|
-
color:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
34
|
+
color: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: IconColor;
|
|
37
|
+
options: string[];
|
|
38
|
+
};
|
|
39
|
+
image: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: IconSize;
|
|
46
|
+
options: IconSize[];
|
|
47
|
+
};
|
|
48
|
+
fill: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
testId: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
122
56
|
};
|
|
123
57
|
}
|
|
124
58
|
declare const iconConfig: IconConfig;
|
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MouseEventHandler } from 'react';
|
|
1
|
+
import { IconSize } from './Icon.config';
|
|
3
2
|
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param {String} image
|
|
7
|
-
* @param {String} color
|
|
8
|
-
* @param {String} variation
|
|
9
|
-
*
|
|
10
|
-
* @return DsIcon
|
|
11
|
-
*/
|
|
12
3
|
export interface DsIconProps {
|
|
13
|
-
color?: string;
|
|
14
4
|
image?: string;
|
|
15
|
-
|
|
16
|
-
size?:
|
|
5
|
+
color?: string;
|
|
6
|
+
size?: `${IconSize}`;
|
|
17
7
|
fill?: boolean;
|
|
18
|
-
|
|
8
|
+
id?: string;
|
|
9
|
+
className?: string;
|
|
19
10
|
testId?: string;
|
|
20
|
-
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
'aria-describedby'?: string;
|
|
21
13
|
}
|
|
22
14
|
declare const DsIcon: {
|
|
23
|
-
({ image, color, className, size, fill,
|
|
24
|
-
propTypes: {
|
|
25
|
-
color: PropTypes.Requireable<import('./Icon.config').IconColor>;
|
|
26
|
-
image: PropTypes.Requireable<string>;
|
|
27
|
-
fontVariationSettings: PropTypes.Requireable<object>;
|
|
28
|
-
size: PropTypes.Requireable<import('./Icon.config').IconSize>;
|
|
29
|
-
fill: PropTypes.Requireable<boolean>;
|
|
30
|
-
weight: PropTypes.Requireable<import('./Icon.config').IconWeight>;
|
|
31
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
};
|
|
15
|
+
({ image, color, id, className, size, fill, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, testId, }: DsIconProps): import("react/jsx-runtime").JSX.Element;
|
|
33
16
|
displayName: string;
|
|
34
17
|
};
|
|
35
18
|
export default DsIcon;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
+
import { IconColor, IconSize } from './Icon.config';
|
|
2
3
|
import { DsIconProps } from '.';
|
|
3
4
|
|
|
4
5
|
declare const ComponentProps: Meta;
|
|
@@ -7,13 +8,18 @@ export declare const Default: {
|
|
|
7
8
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsIconProps>;
|
|
8
9
|
args: {
|
|
9
10
|
image: string;
|
|
10
|
-
color:
|
|
11
|
-
size:
|
|
11
|
+
color: IconColor;
|
|
12
|
+
size: IconSize;
|
|
12
13
|
fill: boolean;
|
|
13
|
-
weight: import('.').IconWeight;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const Matrix: {
|
|
17
17
|
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsIconProps>;
|
|
18
18
|
args: {};
|
|
19
19
|
};
|
|
20
|
+
export declare const List: {
|
|
21
|
+
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsIconProps>;
|
|
22
|
+
args: {
|
|
23
|
+
color: IconColor;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ButtonColor, ButtonVariant } from '../Button';
|
|
2
|
+
|
|
3
|
+
export declare enum IconButtonSize {
|
|
4
|
+
ExtraSmall = "xs",
|
|
5
|
+
Small = "sm"
|
|
6
|
+
}
|
|
7
|
+
export interface IconButtonConfig {
|
|
8
|
+
name: string;
|
|
9
|
+
class: string;
|
|
10
|
+
buttonClass: string;
|
|
11
|
+
props: {
|
|
12
|
+
size: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: IconButtonSize;
|
|
15
|
+
options: IconButtonSize[];
|
|
16
|
+
};
|
|
17
|
+
variant: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: ButtonVariant;
|
|
20
|
+
options: ButtonVariant[];
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: ButtonColor;
|
|
25
|
+
options: ButtonColor[];
|
|
26
|
+
};
|
|
27
|
+
iconFill: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
disabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
type: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: 'button' | 'submit' | 'reset';
|
|
38
|
+
};
|
|
39
|
+
id: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
declare const iconButtonConfig: IconButtonConfig;
|
|
46
|
+
export default iconButtonConfig;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FocusEventHandler, MouseEventHandler } from 'react';
|
|
2
|
+
import { IconButtonSize } from './IconButton.config';
|
|
3
|
+
import { ButtonColor, ButtonVariant } from '../Button';
|
|
4
|
+
import { DsButtonTrackingData } from '../Button/Button.tracking';
|
|
5
|
+
|
|
6
|
+
export interface DsIconButtonProps {
|
|
7
|
+
/** Nome do ícone (Material Symbols). */
|
|
8
|
+
icon: string;
|
|
9
|
+
/** Nome acessível do botão. */
|
|
10
|
+
'aria-label': string;
|
|
11
|
+
size?: `${IconButtonSize}`;
|
|
12
|
+
variant?: `${ButtonVariant}`;
|
|
13
|
+
color?: `${ButtonColor}`;
|
|
14
|
+
iconFill?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
17
|
+
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
18
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
19
|
+
id?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
testId?: string;
|
|
22
|
+
type?: 'button' | 'submit' | 'reset';
|
|
23
|
+
trackingData?: DsButtonTrackingData;
|
|
24
|
+
'aria-haspopup'?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
25
|
+
'aria-expanded'?: boolean;
|
|
26
|
+
'aria-controls'?: string;
|
|
27
|
+
'aria-pressed'?: boolean | 'mixed';
|
|
28
|
+
}
|
|
29
|
+
declare const DsIconButton: {
|
|
30
|
+
({ icon, "aria-label": ariaLabel, size, variant, color, iconFill, disabled, onClick, onFocus, onBlur, id, className, testId, type, trackingData, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, "aria-controls": ariaControls, "aria-pressed": ariaPressed, }: DsIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export default DsIconButton;
|