@akad/design-system 4.0.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/css/theme-aon.css +1 -1
- package/css/theme-bees.css +1 -1
- package/css/theme-bmc.css +1 -1
- package/css/theme-default.css +1 -1
- package/css/theme-linker.css +1 -1
- package/css/theme-oggi.css +1 -1
- package/css/theme-streetgo.css +1 -1
- package/package.json +13 -4
- package/react/react-lib.js +5376 -5010
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Badge/Badge.config.d.ts +37 -0
- package/react/src/components/atoms/Badge/Badge.d.ts +22 -0
- package/react/src/components/atoms/Badge/Badge.stories.d.ts +64 -0
- package/react/src/components/atoms/Badge/index.d.ts +4 -0
- package/react/src/components/atoms/Button/Button.config.d.ts +11 -34
- package/react/src/components/atoms/Button/Button.d.ts +34 -61
- package/react/src/components/atoms/Button/Button.stories.d.ts +11 -1
- package/react/src/components/atoms/Button/Button.tracking.d.ts +22 -0
- package/react/src/components/atoms/Card/Card.config.d.ts +41 -87
- package/react/src/components/atoms/Card/Card.d.ts +16 -18
- package/react/src/components/atoms/Card/Card.stories.d.ts +13 -47
- package/react/src/components/atoms/Checkbox/Checkbox.config.d.ts +19 -25
- package/react/src/components/atoms/Checkbox/Checkbox.d.ts +28 -2
- package/react/src/components/atoms/Checkbox/Checkbox.stories.d.ts +43 -3
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.config.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.d.ts +25 -0
- package/react/src/components/atoms/FeedbackMessage/FeedbackMessage.stories.d.ts +39 -0
- package/react/src/components/atoms/FeedbackMessage/index.d.ts +4 -0
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.config.d.ts +13 -13
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.d.ts +8 -11
- package/react/src/components/atoms/HorizontalRule/HorizontalRule.stories.d.ts +2 -2
- package/react/src/components/atoms/HorizontalRule/index.d.ts +1 -1
- package/react/src/components/atoms/Icon/Icon.config.d.ts +37 -103
- package/react/src/components/atoms/Icon/Icon.d.ts +8 -25
- package/react/src/components/atoms/Icon/Icon.stories.d.ts +10 -4
- package/react/src/components/atoms/IconButton/IconButton.config.d.ts +46 -0
- package/react/src/components/atoms/IconButton/IconButton.d.ts +33 -0
- package/react/src/components/atoms/IconButton/IconButton.stories.d.ts +17 -0
- package/react/src/components/atoms/IconButton/index.d.ts +4 -0
- package/react/src/components/atoms/Input/Input.config.d.ts +29 -39
- package/react/src/components/atoms/Input/Input.d.ts +34 -15
- package/react/src/components/atoms/Input/Input.stories.d.ts +30 -3
- package/react/src/components/atoms/Loading/Loading.config.d.ts +18 -26
- package/react/src/components/atoms/Loading/Loading.d.ts +13 -15
- package/react/src/components/atoms/Loading/Loading.stories.d.ts +22 -1
- package/react/src/components/atoms/Radio/Radio.config.d.ts +8 -10
- package/react/src/components/atoms/Radio/Radio.d.ts +21 -9
- package/react/src/components/atoms/Radio/Radio.stories.d.ts +10 -43
- package/react/src/components/atoms/Radio/index.d.ts +1 -1
- package/react/src/components/atoms/Select/Select.config.d.ts +9 -14
- package/react/src/components/atoms/Select/Select.d.ts +20 -10
- package/react/src/components/atoms/Select/Select.stories.d.ts +0 -2
- package/react/src/components/atoms/TextArea/TextArea.config.d.ts +30 -43
- package/react/src/components/atoms/TextArea/TextArea.d.ts +23 -14
- package/react/src/components/atoms/TextArea/TextArea.stories.d.ts +13 -7
- package/react/src/components/atoms/Tooltip/Tooltip.config.d.ts +20 -19
- package/react/src/components/atoms/Tooltip/Tooltip.d.ts +9 -11
- package/react/src/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -37
- package/react/src/components/bosons/Container/Container.config.d.ts +8 -0
- package/react/src/components/bosons/Container/Container.d.ts +3 -9
- package/react/src/components/bosons/Spacer/Spacer.config.d.ts +8 -8
- package/react/src/components/bosons/Spacer/Spacer.d.ts +3 -7
- package/react/src/components/bosons/Wrapper/Wrapper.config.d.ts +11 -3
- package/react/src/components/bosons/Wrapper/Wrapper.d.ts +3 -1
- package/react/src/components/index.d.ts +13 -16
- package/react/src/components/molecules/Accordion/Accordion.config.d.ts +6 -0
- package/react/src/components/molecules/Accordion/Accordion.d.ts +4 -7
- package/react/src/components/molecules/Accordion/Accordion.stories.d.ts +10 -2
- package/react/src/components/molecules/Accordion/index.d.ts +0 -4
- package/react/src/components/molecules/ActiveTags/ActiveTags.config.d.ts +15 -8
- package/react/src/components/molecules/ActiveTags/ActiveTags.d.ts +13 -10
- package/react/src/components/molecules/ActiveTags/ActiveTags.stories.d.ts +39 -5
- package/react/src/components/molecules/Alert/Alert.config.d.ts +54 -0
- package/react/src/components/molecules/Alert/Alert.d.ts +34 -0
- package/react/src/components/molecules/Alert/Alert.stories.d.ts +217 -0
- package/react/src/components/molecules/Alert/index.d.ts +4 -0
- package/react/src/components/molecules/Carousel/Carousel.config.d.ts +9 -1
- package/react/src/components/molecules/Carousel/Carousel.d.ts +5 -14
- package/react/src/components/molecules/Carousel/Carousel.stories.d.ts +31 -0
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardForm.stories.d.ts +21 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.config.d.ts +25 -18
- package/react/src/components/molecules/CheckboxCardGroup/CheckboxCardGroup.d.ts +33 -0
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.stories.d.ts +28 -16
- package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/index.d.ts +0 -4
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.config.d.ts +27 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +37 -0
- package/react/src/components/molecules/CheckboxGroup/CheckboxGroup.stories.d.ts +23 -0
- package/react/src/components/molecules/CheckboxGroup/index.d.ts +4 -0
- package/react/src/components/molecules/Combobox/Combobox.config.d.ts +88 -0
- package/react/src/components/molecules/Combobox/Combobox.d.ts +48 -0
- package/react/src/components/molecules/Combobox/Combobox.stories.d.ts +61 -0
- package/react/src/components/molecules/Combobox/index.d.ts +4 -0
- package/react/src/components/molecules/Indicator/Indicator.config.d.ts +4 -4
- package/react/src/components/molecules/Indicator/Indicator.d.ts +5 -1
- package/react/src/components/molecules/InlineEditable/InlineEditable.config.d.ts +24 -53
- package/react/src/components/molecules/InlineEditable/InlineEditable.d.ts +5 -11
- package/react/src/components/molecules/InlineEditable/InlineEditable.stories.d.ts +17 -3
- package/react/src/components/molecules/InlineEditable/index.d.ts +2 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.config.d.ts +23 -2
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.d.ts +19 -13
- package/react/src/components/molecules/PasswordConfirmation/PasswordConfirmation.stories.d.ts +18 -1
- package/react/src/components/molecules/ProgressBar/ProgressBar.config.d.ts +45 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.d.ts +23 -0
- package/react/src/components/molecules/ProgressBar/ProgressBar.stories.d.ts +33 -0
- package/react/src/components/molecules/ProgressBar/index.d.ts +4 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.config.d.ts +26 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.d.ts +40 -0
- package/react/src/components/molecules/RadioCardGroup/RadioCardGroup.stories.d.ts +20 -0
- package/react/src/components/molecules/RadioCardGroup/index.d.ts +4 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.config.d.ts +27 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.d.ts +38 -0
- package/react/src/components/molecules/RadioGroup/RadioGroup.stories.d.ts +19 -0
- package/react/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/react/src/components/{atoms → molecules}/SegmentControl/SegmentControl.config.d.ts +18 -9
- package/react/src/components/molecules/SegmentControl/SegmentControl.d.ts +28 -0
- package/react/src/components/molecules/SegmentControl/SegmentControl.stories.d.ts +137 -0
- package/react/src/components/molecules/Stepper/Stepper.config.d.ts +39 -4
- package/react/src/components/molecules/Stepper/Stepper.d.ts +17 -8
- package/react/src/components/molecules/Stepper/Stepper.stories.d.ts +37 -13
- package/react/src/components/molecules/Table/Table.config.d.ts +6 -15
- package/react/src/components/molecules/Table/Table.d.ts +13 -2
- package/react/src/components/molecules/Table/Table.stories.d.ts +1 -1
- package/react/src/components/molecules/Tabs/Tabs.config.d.ts +21 -25
- package/react/src/components/molecules/Tabs/Tabs.d.ts +6 -9
- package/react/src/components/molecules/Tabs/Tabs.stories.d.ts +51 -24
- package/react/src/components/molecules/Tabs/index.d.ts +0 -1
- package/react/src/components/organisms/Modal/Modal.config.d.ts +21 -0
- package/react/src/components/organisms/Modal/Modal.d.ts +25 -0
- package/react/src/components/organisms/Modal/Modal.stories.d.ts +74 -0
- package/react/src/components/organisms/NotificationList/NotificationList.d.ts +6 -11
- package/react/src/components/propLeakage.test.d.ts +1 -0
- package/react/src/components/{molecules → providers}/ThemeProvider/ThemeProvider.config.d.ts +11 -6
- package/react/src/components/providers/ThemeProvider/ThemeProvider.d.ts +12 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.stories.d.ts +17 -0
- package/react/src/components/providers/ThemeProvider/ThemeProvider.test.d.ts +1 -0
- package/react/src/components/providers/ThemeProvider/index.d.ts +4 -0
- package/react/src/components/templates/TwoColumns/TwoColumns.d.ts +6 -13
- package/react/src/components/{atoms/Caption/Caption.stories.d.ts → templates/TwoColumns/TwoColumns.stories.d.ts} +2 -3
- package/react/src/enum/layoutTag.d.ts +10 -0
- package/react/src/helpers/feedbackMessage.d.ts +22 -0
- package/react/src/helpers/feedbackMessage.test.d.ts +1 -0
- package/react/src/helpers/testId.d.ts +7 -0
- package/react/src/helpers/testId.test.d.ts +1 -0
- package/react/src/helpers/useInternalValue.d.ts +23 -0
- package/react/src/helpers/useInternalValue.test.d.ts +1 -0
- package/scss/core/README.md +56 -0
- package/scss/core/base/typography.scss +3 -4
- package/scss/core/components/atoms/badge.scss +116 -0
- package/scss/core/components/atoms/button.scss +94 -797
- package/scss/core/components/atoms/card.scss +74 -126
- package/scss/core/components/atoms/checkbox.scss +110 -47
- package/scss/core/components/atoms/feedback-message.scss +38 -0
- package/scss/core/components/atoms/horizontal-rule.scss +4 -5
- package/scss/core/components/atoms/icon-button.scss +18 -0
- package/scss/core/components/atoms/icon.scss +53 -38
- package/scss/core/components/atoms/input.scss +248 -259
- package/scss/core/components/atoms/loading.scss +133 -77
- package/scss/core/components/atoms/radio.scss +84 -100
- package/scss/core/components/atoms/select.scss +151 -176
- package/scss/core/components/atoms/textarea.scss +154 -281
- package/scss/core/components/atoms/tooltip.scss +129 -149
- package/scss/core/components/bosons/caption.scss +10 -0
- package/scss/core/components/bosons/container.scss +5 -1
- package/scss/core/components/bosons/flex.scss +121 -0
- package/scss/core/components/bosons/grid.scss +39 -43
- package/scss/core/components/bosons/heading.scss +29 -0
- package/scss/core/components/bosons/label.scss +21 -0
- package/scss/core/components/bosons/paragraph.scss +62 -0
- package/scss/core/components/bosons/spacer.scss +6 -34
- package/scss/core/components/bosons/subtitle.scss +9 -0
- package/scss/core/components/bosons/wrapper.scss +10 -2
- package/scss/core/components/index.scss +19 -17
- package/scss/core/components/molecules/accordion.scss +42 -48
- package/scss/core/components/molecules/active-tags.scss +102 -28
- package/scss/core/components/molecules/alert.scss +145 -0
- package/scss/core/components/molecules/carousel.scss +4 -4
- package/scss/core/components/molecules/checkbox-card-group.scss +280 -0
- package/scss/core/components/molecules/checkbox-group.scss +39 -0
- package/scss/core/components/molecules/combobox.scss +158 -0
- package/scss/core/components/molecules/indicator.scss +4 -6
- package/scss/core/components/molecules/inline-editable.scss +6 -8
- package/scss/core/components/molecules/password-confirmation.scss +11 -7
- package/scss/core/components/molecules/progress-bar.scss +85 -0
- package/scss/core/components/molecules/radio-card-group.scss +228 -0
- package/scss/core/components/molecules/radio-group.scss +45 -0
- package/scss/core/components/molecules/segment-control.scss +150 -0
- package/scss/core/components/molecules/stepper.scss +130 -57
- package/scss/core/components/molecules/table.scss +19 -18
- package/scss/core/components/molecules/tabs.scss +37 -215
- package/scss/core/components/organisms/modal.scss +68 -0
- package/scss/core/components/organisms/notification-list.scss +17 -17
- package/scss/core/components/templates/two-columns.scss +6 -6
- package/scss/core/functions/breakpoints.scss +4 -11
- package/scss/core/functions/index.scss +0 -3
- package/scss/core/functions/primitive.scss +68 -0
- package/scss/core/helpers/colors.scss +56 -187
- package/scss/core/helpers/display.scss +0 -148
- package/scss/core/helpers/index.scss +0 -1
- package/scss/core/helpers/order.scss +6 -4
- package/scss/core/index.scss +1 -1
- package/scss/core/mixins/breakpoints.scss +9 -47
- package/scss/core/mixins/choice.scss +88 -0
- package/scss/core/mixins/colors.scss +40 -0
- package/scss/core/mixins/index.scss +3 -2
- package/scss/core/mixins/typography.scss +22 -0
- package/scss/core/{tokens → primitives}/borders.scss +13 -14
- package/scss/core/primitives/breakpoints.scss +14 -0
- package/scss/core/primitives/colors.scss +174 -0
- package/scss/core/primitives/font.scss +34 -0
- package/scss/core/primitives/index.scss +8 -0
- package/scss/core/primitives/opacity.scss +40 -0
- package/scss/core/primitives/shadows.scss +36 -0
- package/scss/core/primitives/sizes.scss +28 -0
- package/scss/core/primitives/spacings.scss +28 -0
- package/scss/core/tokens/breakpoints.scss +12 -19
- package/scss/core/tokens/colors.scss +109 -0
- package/scss/core/tokens/font.scss +27 -0
- package/scss/core/tokens/index.scss +6 -6
- package/scss/core/tokens/sizes.scss +33 -0
- package/scss/core/tokens/spacings.scss +31 -39
- package/scss/core/tokens/typography.scss +144 -19
- package/scss/index.scss +7 -0
- package/scss/themes/aon/index.scss +76 -41
- package/scss/themes/aon/primitives.scss +35 -0
- package/scss/themes/bees/index.scss +52 -34
- package/scss/themes/bees/primitives.scss +19 -0
- package/scss/themes/bmc/index.scss +77 -42
- package/scss/themes/bmc/primitives.scss +33 -0
- package/scss/themes/default/index.scss +15 -59
- package/scss/themes/linker/index.scss +36 -17
- package/scss/themes/linker/primitives.scss +14 -0
- package/scss/themes/oggi/index.scss +77 -42
- package/scss/themes/oggi/primitives.scss +35 -0
- package/scss/themes/streetgo/index.scss +77 -42
- package/scss/themes/streetgo/primitives.scss +34 -0
- package/react/src/components/atoms/Caption/Caption.config.d.ts +0 -6
- package/react/src/components/atoms/Caption/Caption.d.ts +0 -18
- package/react/src/components/atoms/Caption/index.d.ts +0 -4
- package/react/src/components/atoms/Chip/Chip.config.d.ts +0 -43
- package/react/src/components/atoms/Chip/Chip.d.ts +0 -15
- package/react/src/components/atoms/Chip/Chip.stories.d.ts +0 -33
- package/react/src/components/atoms/Chip/index.d.ts +0 -4
- package/react/src/components/atoms/Heading/Heading.config.d.ts +0 -22
- package/react/src/components/atoms/Heading/Heading.d.ts +0 -19
- package/react/src/components/atoms/Heading/Heading.stories.d.ts +0 -48
- package/react/src/components/atoms/Heading/index.d.ts +0 -4
- package/react/src/components/atoms/Option/Option.config.d.ts +0 -53
- package/react/src/components/atoms/Option/Option.d.ts +0 -30
- package/react/src/components/atoms/Option/Option.stories.d.ts +0 -12
- package/react/src/components/atoms/Option/index.d.ts +0 -4
- package/react/src/components/atoms/Paragraph/Paragraph.config.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.d.ts +0 -19
- package/react/src/components/atoms/Paragraph/Paragraph.stories.d.ts +0 -21
- package/react/src/components/atoms/Paragraph/index.d.ts +0 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +0 -62
- package/react/src/components/atoms/Progress/Progress.d.ts +0 -16
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +0 -17
- package/react/src/components/atoms/Progress/index.d.ts +0 -4
- package/react/src/components/atoms/SegmentControl/SegmentControl.d.ts +0 -18
- package/react/src/components/atoms/SegmentControl/SegmentControl.stories.d.ts +0 -73
- package/react/src/components/atoms/Subtitle/Subtitle.config.d.ts +0 -18
- package/react/src/components/atoms/Subtitle/Subtitle.d.ts +0 -13
- package/react/src/components/atoms/Subtitle/Subtitle.stories.d.ts +0 -23
- package/react/src/components/atoms/Subtitle/index.d.ts +0 -4
- package/react/src/components/bosons/FlexLayout/FlexElement.config.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/FlexElement.d.ts +0 -27
- package/react/src/components/bosons/FlexLayout/FlexLayout.config.d.ts +0 -95
- package/react/src/components/bosons/FlexLayout/FlexLayout.d.ts +0 -28
- package/react/src/components/bosons/FlexLayout/FlexLayout.stories.d.ts +0 -20
- package/react/src/components/bosons/FlexLayout/index.d.ts +0 -8
- package/react/src/components/bosons/GridLayout/GridElement.config.d.ts +0 -17
- package/react/src/components/bosons/GridLayout/GridElement.d.ts +0 -14
- package/react/src/components/bosons/GridLayout/GridElement.test.d.ts +0 -1
- package/react/src/components/bosons/GridLayout/GridLayout.config.d.ts +0 -80
- package/react/src/components/bosons/GridLayout/GridLayout.d.ts +0 -29
- package/react/src/components/bosons/GridLayout/GridLayout.stories.d.ts +0 -12
- package/react/src/components/bosons/GridLayout/index.d.ts +0 -8
- package/react/src/components/molecules/Accordion/AccordionItem.config.d.ts +0 -28
- package/react/src/components/molecules/Accordion/AccordionItem.d.ts +0 -20
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.config.d.ts +0 -70
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.d.ts +0 -21
- package/react/src/components/molecules/CheckboxCard/CheckboxCard.stories.d.ts +0 -135
- package/react/src/components/molecules/CheckboxCard/CheckboxCardForm.stories.d.ts +0 -36
- package/react/src/components/molecules/CheckboxCard/CheckboxCardGroup.d.ts +0 -34
- package/react/src/components/molecules/EditableSelect/EditableSelect.config.d.ts +0 -114
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +0 -134
- package/react/src/components/molecules/EditableSelect/EditableSelect.stories.d.ts +0 -24
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +0 -15
- package/react/src/components/molecules/EditableSelect/index.d.ts +0 -4
- package/react/src/components/molecules/Modal/Modal.config.d.ts +0 -44
- package/react/src/components/molecules/Modal/Modal.d.ts +0 -31
- package/react/src/components/molecules/Modal/Modal.stories.d.ts +0 -45
- package/react/src/components/molecules/Notification/Notification.config.d.ts +0 -64
- package/react/src/components/molecules/Notification/Notification.d.ts +0 -22
- package/react/src/components/molecules/Notification/Notification.stories.d.ts +0 -95
- package/react/src/components/molecules/Notification/index.d.ts +0 -4
- package/react/src/components/molecules/Table/TableRow.d.ts +0 -7
- package/react/src/components/molecules/Tabs/Tab.d.ts +0 -5
- package/react/src/components/molecules/Tabs/types.d.ts +0 -23
- package/react/src/components/molecules/ThemeProvider/ThemeProvider.d.ts +0 -17
- package/react/src/components/molecules/ThemeProvider/index.d.ts +0 -4
- package/react/src/components/templates/SplitLayout/SplitLayout.config.d.ts +0 -7
- package/react/src/components/templates/SplitLayout/SplitLayout.d.ts +0 -9
- package/react/src/components/templates/SplitLayout/index.d.ts +0 -5
- package/react/src/enum/colorProps.d.ts +0 -30
- package/scss/core/components/atoms/caption.scss +0 -13
- package/scss/core/components/atoms/chip.scss +0 -101
- package/scss/core/components/atoms/heading.scss +0 -70
- package/scss/core/components/atoms/option.scss +0 -78
- package/scss/core/components/atoms/paragraph.scss +0 -44
- package/scss/core/components/atoms/progress.scss +0 -16
- package/scss/core/components/atoms/radio-card.scss +0 -117
- package/scss/core/components/atoms/segment-control.scss +0 -143
- package/scss/core/components/atoms/subtitle.scss +0 -21
- package/scss/core/components/bosons/flex-layout.scss +0 -45
- package/scss/core/components/bosons/grid-layout.scss +0 -76
- package/scss/core/components/molecules/checkbox-card.scss +0 -480
- package/scss/core/components/molecules/editable-select.scss +0 -145
- package/scss/core/components/molecules/modal.scss +0 -70
- package/scss/core/components/molecules/notification.scss +0 -109
- package/scss/core/components/templates/split-layout.scss +0 -51
- package/scss/core/functions/fonts.scss +0 -17
- package/scss/core/functions/spacings.scss +0 -8
- package/scss/core/functions/tokens.scss +0 -14
- package/scss/core/helpers/elevation.scss +0 -16
- package/scss/core/tokens/icons.scss +0 -2
- package/scss/core/tokens/opacity.scss +0 -6
- package/scss/core/tokens/shadows.scss +0 -15
- package/scss/themes/aon/colors.scss +0 -83
- package/scss/themes/bees/colors.scss +0 -32
- package/scss/themes/bmc/colors.scss +0 -81
- package/scss/themes/default/colors.scss +0 -109
- package/scss/themes/linker/colors.scss +0 -35
- package/scss/themes/oggi/colors.scss +0 -81
- package/scss/themes/streetgo/colors.scss +0 -81
- /package/react/src/components/atoms/{Caption/Caption.test.d.ts → Badge/Badge.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Chip/Chip.test.d.ts → FeedbackMessage/FeedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/atoms/{Heading/Heading.test.d.ts → IconButton/IconButton.test.d.ts} +0 -0
- /package/react/src/components/atoms/Input/{mask.d.ts → Input.mask.d.ts} +0 -0
- /package/react/src/components/{atoms/Option/Option.test.d.ts → classesNoCss.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Paragraph/Paragraph.test.d.ts → commonProps.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Progress/Progress.test.d.ts → feedbackMessage.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/index.test.d.ts → index.test.d.ts} +0 -0
- /package/react/src/components/{atoms/SegmentControl/SegmentControl.test.d.ts → messageRegion.test.d.ts} +0 -0
- /package/react/src/components/{atoms/Subtitle/Subtitle.test.d.ts → molecules/Alert/Alert.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard → CheckboxCardGroup}/CheckboxCardGroup.test.d.ts +0 -0
- /package/react/src/components/{bosons/FlexLayout/FlexLayout.test.d.ts → molecules/CheckboxCardGroup/index.test.d.ts} +0 -0
- /package/react/src/components/{bosons/GridLayout/GridLayout.test.d.ts → molecules/CheckboxGroup/CheckboxGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{CheckboxCard/CheckboxCard.test.d.ts → Combobox/Combobox.a11y.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.test.d.ts → Combobox/Combobox.test.d.ts} +0 -0
- /package/react/src/components/molecules/{EditableSelect/EditableSelect.utils.test.d.ts → PasswordConfirmation/PasswordConfirmation.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Notification/Notification.test.d.ts → ProgressBar/ProgressBar.test.d.ts} +0 -0
- /package/react/src/components/molecules/{PasswordConfirmation/PasswordConfirmartion.test.d.ts → RadioCardGroup/RadioCardGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{Tabs/Tab.test.d.ts → RadioGroup/RadioGroup.test.d.ts} +0 -0
- /package/react/src/components/molecules/{ThemeProvider/ThemeProvider.test.d.ts → SegmentControl/SegmentControl.test.d.ts} +0 -0
- /package/react/src/components/{atoms → molecules}/SegmentControl/index.d.ts +0 -0
- /package/react/src/components/{templates/SplitLayout/SplitLayout.test.d.ts → molecules/SegmentControl/index.test.d.ts} +0 -0
- /package/react/src/components/molecules/Table/{dataTable.mock.d.ts → Table.mock.d.ts} +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/Modal.test.d.ts +0 -0
- /package/react/src/components/{molecules → organisms}/Modal/index.d.ts +0 -0
- /package/scss/core/components/{molecules → providers}/theme-provider.scss +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export declare enum FlexLayoutJustifyContent {
|
|
2
|
-
Stretch = "stretch",
|
|
3
|
-
FlexStart = "flex-start",
|
|
4
|
-
FlexEnd = "flex-end",
|
|
5
|
-
Center = "center",
|
|
6
|
-
SpaceAround = "space-around",
|
|
7
|
-
SpaceBetween = "space-between"
|
|
8
|
-
}
|
|
9
|
-
export declare enum FlexLayoutAlignItems {
|
|
10
|
-
Stretch = "stretch",
|
|
11
|
-
FlexStart = "flex-start",
|
|
12
|
-
FlexEnd = "flex-end",
|
|
13
|
-
Center = "center"
|
|
14
|
-
}
|
|
15
|
-
export declare enum FlexLayoutDirection {
|
|
16
|
-
Row = "row",
|
|
17
|
-
Column = "column",
|
|
18
|
-
RowReverse = "row-reverse",
|
|
19
|
-
ColumnReverse = "column-reverse"
|
|
20
|
-
}
|
|
21
|
-
export declare enum FlexLayoutWrap {
|
|
22
|
-
NoWrap = "nowrap",
|
|
23
|
-
Wrap = "wrap",
|
|
24
|
-
WrapReverse = "wrap-reverse"
|
|
25
|
-
}
|
|
26
|
-
export declare enum FlexLayoutGap {
|
|
27
|
-
Quark = "quark",
|
|
28
|
-
Nano = "nano",
|
|
29
|
-
XXXS = "xxxs",
|
|
30
|
-
XXS = "xxs",
|
|
31
|
-
XS = "xs",
|
|
32
|
-
SM = "sm",
|
|
33
|
-
MD = "md",
|
|
34
|
-
LG = "lg",
|
|
35
|
-
XL = "xl",
|
|
36
|
-
XXL = "xxl",
|
|
37
|
-
XXXL = "xxxl"
|
|
38
|
-
}
|
|
39
|
-
export interface FlexLayoutJustifyContentProps {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: FlexLayoutJustifyContent;
|
|
42
|
-
required: true;
|
|
43
|
-
options: FlexLayoutJustifyContent[];
|
|
44
|
-
}
|
|
45
|
-
export interface FlexLayoutAlignItemsProps {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: FlexLayoutAlignItems;
|
|
48
|
-
required: true;
|
|
49
|
-
options: FlexLayoutAlignItems[];
|
|
50
|
-
}
|
|
51
|
-
export interface FlexLayoutDirectionProps {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: FlexLayoutDirection;
|
|
54
|
-
required: true;
|
|
55
|
-
options: FlexLayoutDirection[];
|
|
56
|
-
}
|
|
57
|
-
export interface FlexLayoutWrapProps {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: FlexLayoutWrap;
|
|
60
|
-
required: false;
|
|
61
|
-
options: FlexLayoutWrap[];
|
|
62
|
-
}
|
|
63
|
-
export interface FlexLayoutClassNameProps {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
}
|
|
67
|
-
export interface FlexLayoutWidthProps {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
}
|
|
71
|
-
export interface FlexLayoutHeightProps {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
}
|
|
75
|
-
export interface FlexLayoutGapProps {
|
|
76
|
-
type: StringConstructor;
|
|
77
|
-
default: string;
|
|
78
|
-
options: FlexLayoutGap[];
|
|
79
|
-
}
|
|
80
|
-
export interface FlexLayoutConfig {
|
|
81
|
-
name: string;
|
|
82
|
-
class: string;
|
|
83
|
-
props: {
|
|
84
|
-
justifyContent: FlexLayoutJustifyContentProps;
|
|
85
|
-
alignItems: FlexLayoutAlignItemsProps;
|
|
86
|
-
flexDirection: FlexLayoutDirectionProps;
|
|
87
|
-
flexWrap: FlexLayoutWrapProps;
|
|
88
|
-
className: FlexLayoutClassNameProps;
|
|
89
|
-
width: FlexLayoutWidthProps;
|
|
90
|
-
height: FlexLayoutHeightProps;
|
|
91
|
-
gap: FlexLayoutGapProps;
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
declare const flexLayoutConfig: FlexLayoutConfig;
|
|
95
|
-
export default flexLayoutConfig;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
|
|
3
|
-
export interface DsFlexLayoutProps {
|
|
4
|
-
children: JSX.Element | JSX.Element[];
|
|
5
|
-
className?: string;
|
|
6
|
-
justifyContent?: string;
|
|
7
|
-
alignItems?: string;
|
|
8
|
-
flexDirection?: string;
|
|
9
|
-
flexWrap?: string;
|
|
10
|
-
width?: string;
|
|
11
|
-
height?: string;
|
|
12
|
-
gap?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const DsFlexLayout: {
|
|
15
|
-
({ children, className, justifyContent, alignItems, flexDirection, flexWrap, width, height, gap, }: DsFlexLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
justifyContent: PropTypes.Requireable<string>;
|
|
19
|
-
alignItems: PropTypes.Requireable<string>;
|
|
20
|
-
flexDirection: PropTypes.Requireable<string>;
|
|
21
|
-
flexWrap: PropTypes.Requireable<string>;
|
|
22
|
-
width: PropTypes.Requireable<string>;
|
|
23
|
-
height: PropTypes.Requireable<string>;
|
|
24
|
-
gap: PropTypes.Requireable<string>;
|
|
25
|
-
};
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
export default DsFlexLayout;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsFlexLayoutProps } from '.';
|
|
3
|
-
|
|
4
|
-
declare const componentProps: Meta;
|
|
5
|
-
export default componentProps;
|
|
6
|
-
export declare const Default: {
|
|
7
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
8
|
-
};
|
|
9
|
-
export declare const WithComponents: {
|
|
10
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
11
|
-
parameters: {
|
|
12
|
-
theme: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const WithFlexGrow: {
|
|
16
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsFlexLayoutProps>;
|
|
17
|
-
parameters: {
|
|
18
|
-
theme: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './FlexLayout';
|
|
2
|
-
export * from './FlexElement';
|
|
3
|
-
export * from './FlexLayout.config';
|
|
4
|
-
export * from './FlexElement.config';
|
|
5
|
-
export { default as DsFlexLayout } from './FlexLayout';
|
|
6
|
-
export { default as DsFlexElement } from './FlexElement';
|
|
7
|
-
export { default as flexLayoutConfig } from './FlexLayout.config';
|
|
8
|
-
export { default as flexElementConfig } from './FlexElement.config';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface GridProps {
|
|
2
|
-
row: string;
|
|
3
|
-
col: string;
|
|
4
|
-
}
|
|
5
|
-
export interface GridElementProps {
|
|
6
|
-
type: ObjectConstructor;
|
|
7
|
-
default: GridProps;
|
|
8
|
-
}
|
|
9
|
-
export interface GridElementConfig {
|
|
10
|
-
name: string;
|
|
11
|
-
class: string;
|
|
12
|
-
props: {
|
|
13
|
-
grid: GridElementProps;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const gridElementConfig: GridElementConfig;
|
|
17
|
-
export default gridElementConfig;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
type DsGridElementType = {
|
|
4
|
-
children: string | React.ReactElement;
|
|
5
|
-
grid: DsGridElementProps;
|
|
6
|
-
};
|
|
7
|
-
export interface DsGridElementProps {
|
|
8
|
-
row: string;
|
|
9
|
-
col: string;
|
|
10
|
-
mobileRow?: string;
|
|
11
|
-
mobileCol?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const DsGridElement: React.FC<DsGridElementType>;
|
|
14
|
-
export default DsGridElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export declare enum GridLayoutGap {
|
|
2
|
-
Quark = "quark",
|
|
3
|
-
Nano = "nano",
|
|
4
|
-
ExtraSmall = "xs",
|
|
5
|
-
Small = "sm",
|
|
6
|
-
Medium = "md",
|
|
7
|
-
Large = "lg"
|
|
8
|
-
}
|
|
9
|
-
export declare enum GridLayoutAlign {
|
|
10
|
-
Start = "start",
|
|
11
|
-
End = "end",
|
|
12
|
-
Center = "center",
|
|
13
|
-
Stretch = "stretch",
|
|
14
|
-
SpaceAround = "space-around",
|
|
15
|
-
SpaceBetween = "space-between",
|
|
16
|
-
SpaceEvenly = "space-evenly"
|
|
17
|
-
}
|
|
18
|
-
export interface GridLayoutRowsProps {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
required: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface GridLayoutGapProps {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: GridLayoutGap;
|
|
26
|
-
options: GridLayoutGap[];
|
|
27
|
-
}
|
|
28
|
-
export interface GridLayoutVGapProps {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface GridLayoutHGapProps {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface GridLayoutWidthProps {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
}
|
|
40
|
-
export interface GridLayoutHeightProps {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
}
|
|
44
|
-
export interface GridLayoutHorizontalAlignProps {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: GridLayoutAlign;
|
|
47
|
-
options: GridLayoutAlign[];
|
|
48
|
-
}
|
|
49
|
-
export interface GridLayoutVerticalAlignProps {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
default: GridLayoutAlign;
|
|
52
|
-
options: GridLayoutAlign[];
|
|
53
|
-
}
|
|
54
|
-
export interface GridLayoutProps {
|
|
55
|
-
rows?: string;
|
|
56
|
-
gap?: GridLayoutGap;
|
|
57
|
-
vGap?: boolean;
|
|
58
|
-
hGap?: boolean;
|
|
59
|
-
width?: string;
|
|
60
|
-
height?: string;
|
|
61
|
-
horizontalAlign?: GridLayoutAlign;
|
|
62
|
-
verticalAlign?: GridLayoutAlign;
|
|
63
|
-
children: React.ReactNode;
|
|
64
|
-
}
|
|
65
|
-
export interface GridLayoutConfig {
|
|
66
|
-
name: string;
|
|
67
|
-
class: string;
|
|
68
|
-
props: {
|
|
69
|
-
rows: GridLayoutRowsProps;
|
|
70
|
-
gap: GridLayoutGapProps;
|
|
71
|
-
vGap: GridLayoutVGapProps;
|
|
72
|
-
hGap: GridLayoutHGapProps;
|
|
73
|
-
width: GridLayoutWidthProps;
|
|
74
|
-
height: GridLayoutHeightProps;
|
|
75
|
-
horizontalAlign: GridLayoutHorizontalAlignProps;
|
|
76
|
-
verticalAlign: GridLayoutVerticalAlignProps;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
declare const gridLayoutConfig: GridLayoutConfig;
|
|
80
|
-
export default gridLayoutConfig;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
|
|
3
|
-
export interface DsGridLayoutProps {
|
|
4
|
-
children: JSX.Element | JSX.Element[];
|
|
5
|
-
rows?: string;
|
|
6
|
-
gap?: string;
|
|
7
|
-
vGap?: boolean;
|
|
8
|
-
hGap?: boolean;
|
|
9
|
-
horizontalAlign?: string;
|
|
10
|
-
verticalAlign?: string;
|
|
11
|
-
width?: string;
|
|
12
|
-
height?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const DsGridLayout: {
|
|
15
|
-
({ children, rows, gap, vGap, hGap, horizontalAlign, verticalAlign, width, height, }: DsGridLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
children: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
|
|
18
|
-
rows: PropTypes.Requireable<string>;
|
|
19
|
-
gap: PropTypes.Requireable<import('./GridLayout.config').GridLayoutGap>;
|
|
20
|
-
vGap: PropTypes.Requireable<boolean>;
|
|
21
|
-
hGap: PropTypes.Requireable<boolean>;
|
|
22
|
-
width: PropTypes.Requireable<string>;
|
|
23
|
-
height: PropTypes.Requireable<string>;
|
|
24
|
-
horizontalAlign: PropTypes.Requireable<import('./GridLayout.config').GridLayoutAlign>;
|
|
25
|
-
verticalAlign: PropTypes.Requireable<import('./GridLayout.config').GridLayoutAlign>;
|
|
26
|
-
};
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
29
|
-
export default DsGridLayout;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsGridLayoutProps } from '.';
|
|
3
|
-
import { ThemeProviderProps } from '../../molecules/ThemeProvider';
|
|
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, ThemeProviderProps & DsGridLayoutProps>;
|
|
9
|
-
parameters: {
|
|
10
|
-
theme: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './GridLayout';
|
|
2
|
-
export * from './GridElement';
|
|
3
|
-
export * from './GridLayout.config';
|
|
4
|
-
export * from './GridElement.config';
|
|
5
|
-
export { default as DsGridLayout } from './GridLayout';
|
|
6
|
-
export { default as DsGridElement } from './GridElement';
|
|
7
|
-
export { default as gridLayoutConfig } from './GridLayout.config';
|
|
8
|
-
export { default as gridElementConfig } from './GridElement.config';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface AccordionItemTitleProps {
|
|
2
|
-
type: StringConstructor;
|
|
3
|
-
default: string;
|
|
4
|
-
}
|
|
5
|
-
export interface AccordionItemContentProps {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
}
|
|
9
|
-
export interface AccordionItemDisabledProps {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface AccordionItemActiveProps {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface AccordionItemConfig {
|
|
18
|
-
name: string;
|
|
19
|
-
class: string;
|
|
20
|
-
props: {
|
|
21
|
-
title: AccordionItemTitleProps;
|
|
22
|
-
content: AccordionItemContentProps;
|
|
23
|
-
disabled: AccordionItemDisabledProps;
|
|
24
|
-
active: AccordionItemActiveProps;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
declare const accordionItemConfig: AccordionItemConfig;
|
|
28
|
-
export default accordionItemConfig;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
|
|
3
|
-
export interface DsAccordionItemProps {
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
onToggle: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
-
active: boolean;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const DsAccordionItem: {
|
|
11
|
-
({ title, content, onToggle, active, disabled, }: DsAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
active: PropTypes.Requireable<boolean>;
|
|
14
|
-
title: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
15
|
-
content: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
16
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
17
|
-
};
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
export default DsAccordionItem;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Segue a convenção de `status` + `feedback` já usada por DsInput, DsSelect e
|
|
3
|
-
* DsTextArea, incluindo o `Default = ''` — string vazia é falsy, então o
|
|
4
|
-
* modificador de classe simplesmente não é aplicado.
|
|
5
|
-
*
|
|
6
|
-
* `Warning` não existe nos outros três, mas o design do card especifica. Por
|
|
7
|
-
* outro lado, `Success` existe neles e não no card, então não foi inventado
|
|
8
|
-
* aqui.
|
|
9
|
-
*/
|
|
10
|
-
export declare enum CheckboxCardStatus {
|
|
11
|
-
Default = "",
|
|
12
|
-
Error = "error",
|
|
13
|
-
Warning = "warning"
|
|
14
|
-
}
|
|
15
|
-
/** Glifos Material usados pelo box, conforme o design (nós 153:324 e 153:327). */
|
|
16
|
-
export declare const CheckboxCardGlyph: {
|
|
17
|
-
readonly Checked: "check_box";
|
|
18
|
-
readonly Unchecked: "check_box_outline_blank";
|
|
19
|
-
};
|
|
20
|
-
/** Glifos Material do feedback de validação (nós 153:5223 e 153:5232). */
|
|
21
|
-
export declare const CheckboxCardFeedbackGlyph: Record<string, string>;
|
|
22
|
-
export interface CheckboxCardValueProps {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
required: false;
|
|
25
|
-
}
|
|
26
|
-
export interface CheckboxCardStatusProps {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: CheckboxCardStatus;
|
|
29
|
-
options: CheckboxCardStatus[];
|
|
30
|
-
}
|
|
31
|
-
export interface CheckboxCardFeedbackProps {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
34
|
-
}
|
|
35
|
-
export interface CheckboxCardHasFeedbackProps {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface CheckboxCardFullWidthProps {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface CheckboxCardDisabledProps {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface CheckboxCardClassNameProps {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
}
|
|
51
|
-
export interface CheckboxCardTestIdProps {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: string;
|
|
54
|
-
}
|
|
55
|
-
export interface CheckboxCardConfig {
|
|
56
|
-
name: string;
|
|
57
|
-
class: string;
|
|
58
|
-
props: {
|
|
59
|
-
value: CheckboxCardValueProps;
|
|
60
|
-
status: CheckboxCardStatusProps;
|
|
61
|
-
feedback: CheckboxCardFeedbackProps;
|
|
62
|
-
hasFeedback: CheckboxCardHasFeedbackProps;
|
|
63
|
-
fullWidth: CheckboxCardFullWidthProps;
|
|
64
|
-
disabled: CheckboxCardDisabledProps;
|
|
65
|
-
className: CheckboxCardClassNameProps;
|
|
66
|
-
testId: CheckboxCardTestIdProps;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
declare const checkboxCardConfig: CheckboxCardConfig;
|
|
70
|
-
export default checkboxCardConfig;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CheckboxCardStatus } from './CheckboxCard.config';
|
|
3
|
-
|
|
4
|
-
export interface DsCheckboxCardProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'children' | 'className' | 'size' | 'value'> {
|
|
5
|
-
value?: string;
|
|
6
|
-
label?: React.ReactNode;
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
|
-
status?: CheckboxCardStatus;
|
|
10
|
-
feedback?: React.ReactNode;
|
|
11
|
-
/** Reserva o espaço do feedback para o layout não pular quando ele aparece. */
|
|
12
|
-
hasFeedback?: boolean;
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
testId?: string;
|
|
16
|
-
onChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
-
onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
18
|
-
onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const DsCheckboxCard: React.ForwardRefExoticComponent<DsCheckboxCardProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
-
export default DsCheckboxCard;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DsCheckboxCardProps } from './CheckboxCard';
|
|
3
|
-
import { CheckboxCardStatus } from './CheckboxCard.config';
|
|
4
|
-
|
|
5
|
-
declare const meta: Meta<DsCheckboxCardProps>;
|
|
6
|
-
export default meta;
|
|
7
|
-
export declare const Default: {
|
|
8
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
9
|
-
args: {
|
|
10
|
-
label: string;
|
|
11
|
-
name: string;
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const WithDescription: {
|
|
16
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
17
|
-
args: {
|
|
18
|
-
label: string;
|
|
19
|
-
description: string;
|
|
20
|
-
name: string;
|
|
21
|
-
value: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const WithIcon: {
|
|
25
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
26
|
-
args: {
|
|
27
|
-
label: string;
|
|
28
|
-
description: string;
|
|
29
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
name: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Marcado e habilitado: a borda fica `neutral--80` (#424242), então a seleção aparece no
|
|
36
|
-
* card inteiro e não só no box de 20px.
|
|
37
|
-
*
|
|
38
|
-
* Compare com `DisabledChecked`, que segue cinza, e com a linha `Invalid` de
|
|
39
|
-
* `AllStates`, onde a borda de validação tem prioridade sobre a de marcado.
|
|
40
|
-
*/
|
|
41
|
-
export declare const Checked: {
|
|
42
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
43
|
-
args: {
|
|
44
|
-
label: string;
|
|
45
|
-
description: string;
|
|
46
|
-
defaultChecked: boolean;
|
|
47
|
-
name: string;
|
|
48
|
-
value: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
export declare const Disabled: {
|
|
52
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
53
|
-
args: {
|
|
54
|
-
label: string;
|
|
55
|
-
description: string;
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
name: string;
|
|
58
|
-
value: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export declare const DisabledChecked: {
|
|
62
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
63
|
-
args: {
|
|
64
|
-
label: string;
|
|
65
|
-
description: string;
|
|
66
|
-
defaultChecked: boolean;
|
|
67
|
-
disabled: boolean;
|
|
68
|
-
name: string;
|
|
69
|
-
value: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export declare const Controlled: {
|
|
73
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
74
|
-
};
|
|
75
|
-
export declare const FullWidth: {
|
|
76
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
77
|
-
};
|
|
78
|
-
export declare const Error: {
|
|
79
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
80
|
-
args: {
|
|
81
|
-
label: string;
|
|
82
|
-
description: string;
|
|
83
|
-
feedback: string;
|
|
84
|
-
status: CheckboxCardStatus;
|
|
85
|
-
name: string;
|
|
86
|
-
value: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export declare const Warning: {
|
|
90
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
91
|
-
args: {
|
|
92
|
-
label: string;
|
|
93
|
-
description: string;
|
|
94
|
-
feedback: string;
|
|
95
|
-
status: CheckboxCardStatus;
|
|
96
|
-
name: string;
|
|
97
|
-
value: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* `hasFeedback` reserva a altura do feedback, então o card não muda de altura
|
|
102
|
-
* quando o erro aparece.
|
|
103
|
-
*
|
|
104
|
-
* O segundo e o terceiro card têm a **mesma altura** — um sem mensagem, outro
|
|
105
|
-
* com. O primeiro, sem reserva, é mais baixo: a diferença entre ele e o
|
|
106
|
-
* terceiro é exatamente o salto de layout que a reserva evita.
|
|
107
|
-
*
|
|
108
|
-
* Diferente do `DsInput`, aqui a prop **só reserva, nunca esconde**: com
|
|
109
|
-
* `hasFeedback={false}` e um `status` de erro, a mensagem aparece normalmente.
|
|
110
|
-
* No `DsInput`, `hasFeedback={false}` faz o feedback nunca ser exibido.
|
|
111
|
-
*/
|
|
112
|
-
export declare const ReservedFeedback: {
|
|
113
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Espelha a matriz de variantes do Figma: uma linha por estado, coluna da
|
|
117
|
-
* esquerda não marcado e da direita marcado. Falta o `Hover`, que é
|
|
118
|
-
* pseudo-classe CSS e não dá para renderizar estaticamente.
|
|
119
|
-
*/
|
|
120
|
-
export declare const AllStates: {
|
|
121
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
122
|
-
};
|
|
123
|
-
export declare const Playground: {
|
|
124
|
-
render: import('storybook/internal/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DsCheckboxCardProps>;
|
|
125
|
-
args: {
|
|
126
|
-
label: string;
|
|
127
|
-
description: string;
|
|
128
|
-
name: string;
|
|
129
|
-
value: string;
|
|
130
|
-
disabled: boolean;
|
|
131
|
-
fullWidth: boolean;
|
|
132
|
-
status: CheckboxCardStatus;
|
|
133
|
-
feedback: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: Meta;
|
|
4
|
-
export default meta;
|
|
5
|
-
/**
|
|
6
|
-
* Formulário de cotação com os dois componentes: o grupo para escolher
|
|
7
|
-
* coberturas (seleção múltipla, obrigatória) e um card avulso para um opt-in
|
|
8
|
-
* único.
|
|
9
|
-
*
|
|
10
|
-
* Pontos que valem atenção no código:
|
|
11
|
-
*
|
|
12
|
-
* - O grupo é **controlado**, porque a validação precisa ler a seleção antes
|
|
13
|
-
* do submit. Se não houvesse validação, `defaultValue` bastaria e o
|
|
14
|
-
* componente não guardaria estado nenhum.
|
|
15
|
-
* - O card avulso é **não-controlado**: ninguém precisa do valor dele antes
|
|
16
|
-
* do submit, então ele sai do payload nativo do formulário.
|
|
17
|
-
* - "Selecione pelo menos uma" é regra **do grupo**, não de um card, então
|
|
18
|
-
* usa `status` e `feedback` no grupo. Quem faz o wiring de acessibilidade é
|
|
19
|
-
* o componente: `aria-describedby` no `<fieldset>` e `role="alert"` no
|
|
20
|
-
* feedback, para o leitor de tela anunciar sem precisar mover o foco.
|
|
21
|
-
* - `hasFeedback` reserva a altura da mensagem, então os cards não são
|
|
22
|
-
* empurrados quando o erro aparece.
|
|
23
|
-
* - O envio usa `FormData`, sem estado intermediário para os valores: os
|
|
24
|
-
* `name` e `value` dos inputs nativos já montam o payload.
|
|
25
|
-
*/
|
|
26
|
-
export declare const Formulario: {
|
|
27
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Mesma tela, mas com a validação vindo do backend por cobertura. Aqui o
|
|
31
|
-
* feedback é **do card**, via `status` e `feedback` no item — diferente do
|
|
32
|
-
* exemplo acima, em que o erro era do grupo.
|
|
33
|
-
*/
|
|
34
|
-
export declare const ValidacaoPorCobertura: {
|
|
35
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CheckboxCardStatus } from './CheckboxCard.config';
|
|
3
|
-
import { CheckboxCardGroupOrientation, DsCheckboxCardItem } from './CheckboxCardGroup.config';
|
|
4
|
-
|
|
5
|
-
export interface DsCheckboxCardGroupProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, 'children' | 'className' | 'onChange'> {
|
|
6
|
-
items: DsCheckboxCardItem[];
|
|
7
|
-
value?: string[];
|
|
8
|
-
defaultValue?: string[];
|
|
9
|
-
onChange?: (values: string[], event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
-
label?: React.ReactNode;
|
|
11
|
-
description?: React.ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Validação da regra do grupo, como "selecione pelo menos uma". Para
|
|
14
|
-
* validação de um card específico, use `status` no item.
|
|
15
|
-
*/
|
|
16
|
-
status?: CheckboxCardStatus;
|
|
17
|
-
feedback?: React.ReactNode;
|
|
18
|
-
/** Reserva o espaço do feedback para os cards não serem empurrados. */
|
|
19
|
-
hasFeedback?: boolean;
|
|
20
|
-
orientation?: CheckboxCardGroupOrientation;
|
|
21
|
-
/**
|
|
22
|
-
* Faz o `<fieldset>` ocupar toda a largura do container pai. Não afeta os
|
|
23
|
-
* cards: dentro de um grupo eles já têm largura uniforme por CSS, então a
|
|
24
|
-
* prop `fullWidth` do card não é propagada.
|
|
25
|
-
*/
|
|
26
|
-
fullWidth?: boolean;
|
|
27
|
-
className?: string;
|
|
28
|
-
testId?: string;
|
|
29
|
-
onChangeHandler?: (values: string[], event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
30
|
-
onBlurHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
31
|
-
onFocusHandler?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
-
}
|
|
33
|
-
declare const DsCheckboxCardGroup: React.ForwardRefExoticComponent<DsCheckboxCardGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
34
|
-
export default DsCheckboxCardGroup;
|