@innovaccer/design-system 3.0.0-15 → 3.0.0-16
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/core/components/atoms/_chip/__tests__/__snapshots__/_chip.test.tsx.snap +9 -9
- package/core/components/atoms/_chip/index.tsx +10 -8
- package/core/components/atoms/avatar/__stories__/{defaultAvatar.story.tsx → defaultAvatar.story.jsx} +0 -0
- package/core/components/atoms/avatar/__stories__/index.story.jsx +27 -0
- package/core/components/atoms/avatar/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/avatar/__stories__/variants/{Size.story.tsx → Size.story.jsx} +0 -0
- package/core/components/atoms/avatarGroup/__stories__/{index.story.tsx → index.story.jsx} +4 -13
- package/core/components/atoms/avatarGroup/__stories__/variants/{BorderColor.story.tsx → BorderColor.story.jsx} +0 -0
- package/core/components/atoms/avatarGroup/__stories__/variants/{CustomPopper.story.tsx → CustomPopper.story.jsx} +2 -2
- package/core/components/atoms/backdrop/__stories__/{index.story.tsx → index.story.jsx} +1 -2
- package/core/components/atoms/badge/_stories_/SolidAlert.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/SolidSecondary.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/SolidWarning.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/SubtleAlert.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/SubtleSecondary.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/SubtleWarning.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/Success.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/index.story.jsx +20 -0
- package/core/components/atoms/badge/_stories_/variants/Appearance.story.jsx +49 -0
- package/core/components/atoms/badge/_stories_/variants/Subtle.story.jsx +49 -0
- package/core/components/atoms/breadcrumbs/__stories__/variants/{lessThan4Levels.story.tsx → lessThan4Levels.story.jsx} +1 -1
- package/core/components/atoms/breadcrumbs/__stories__/variants/{moreThan4Levels.story.tsx → moreThan4Levels.story.jsx} +1 -1
- package/core/components/atoms/button/Button.tsx +1 -2
- package/core/components/atoms/button/__stories__/{Alert.story.tsx → Alert.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{Cancel.story.tsx → Cancel.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{IconButtonGroup.story.tsx → IconButtonGroup.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{IconButtonSecondary.story.tsx → IconButtonSecondary.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{IconLeftSecondary.story.tsx → IconLeftSecondary.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{IconRightSecondary.story.tsx → IconRightSecondary.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{IconTransparent.story.tsx → IconTransparent.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{LabelButtonGroup.story.tsx → LabelButtonGroup.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{LargeIconExpanded.story.tsx → LargeIconExpanded.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{LoadingPrimary.story.tsx → LoadingPrimary.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{Primary.story.tsx → Primary.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/SplitButton.story.jsx +44 -0
- package/core/components/atoms/button/__stories__/{Transparent.story.tsx → Transparent.story.jsx} +0 -0
- package/core/components/atoms/button/__stories__/{index.story.tsx → index.story.jsx} +10 -11
- package/core/components/atoms/button/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +4 -7
- package/core/components/atoms/button/__stories__/variants/{Expanded.story.tsx → Expanded.story.jsx} +4 -7
- package/core/components/atoms/button/__stories__/variants/{Size.story.tsx → Size.story.jsx} +4 -7
- package/core/components/atoms/button/__stories__/variants/icon/Icon.story.jsx +113 -0
- package/core/components/atoms/button/__stories__/variants/icon/IconLeft.story.jsx +61 -0
- package/core/components/atoms/button/__stories__/variants/icon/IconRight.story.jsx +61 -0
- package/core/components/atoms/button/__stories__/variants/state/Alert.story.jsx +86 -0
- package/core/components/atoms/button/__stories__/variants/state/Basic.story.jsx +115 -0
- package/core/components/atoms/button/__stories__/variants/state/Primary.story.jsx +85 -0
- package/core/components/atoms/button/__stories__/variants/state/Transparent.story.jsx +118 -0
- package/core/components/atoms/caption/__stories__/{index.story.tsx → index.story.jsx} +4 -5
- package/core/components/atoms/caption/__stories__/variants/{Error.story.tsx → Error.story.jsx} +0 -0
- package/core/components/atoms/card/__stories__/{default.story.tsx → default.story.jsx} +0 -0
- package/core/components/atoms/card/__stories__/{empty.story.tsx → empty.story.jsx} +0 -0
- package/core/components/atoms/card/__stories__/{flat.story.tsx → flat.story.jsx} +0 -0
- package/core/components/atoms/card/__stories__/{highlight.story.tsx → highlight.story.jsx} +0 -0
- package/core/components/atoms/card/__stories__/{index.story.tsx → index.story.jsx} +1 -2
- package/core/components/atoms/card/__stories__/{nested.story.tsx → nested.story.jsx} +1 -17
- package/core/components/atoms/card/__stories__/{scroll.story.tsx → scroll.story.jsx} +1 -1
- package/core/components/atoms/card/__stories__/{subdued.story.tsx → subdued.story.jsx} +0 -0
- package/core/components/atoms/checkbox/__stories__/{Alignment.story.tsx → Alignment.story.jsx} +0 -0
- package/core/components/atoms/checkbox/__stories__/{DefaultCheckbox.story.tsx → DefaultCheckbox.story.jsx} +0 -0
- package/core/components/atoms/checkbox/__stories__/{Group.story.tsx → Group.story.jsx} +1 -1
- package/core/components/atoms/checkbox/__stories__/{HelpText.story.tsx → HelpText.story.jsx} +1 -1
- package/core/components/atoms/checkbox/__stories__/{Nested.story.tsx → Nested.story.jsx} +4 -2
- package/core/components/atoms/checkbox/__stories__/{Overflow.story.tsx → Overflow.story.jsx} +3 -3
- package/core/components/atoms/checkbox/__stories__/index.story.jsx +38 -0
- package/core/components/atoms/checkbox/__stories__/variants/{Controlled.story.tsx → Controlled.story.jsx} +1 -1
- package/core/components/atoms/checkbox/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +1 -2
- package/core/components/atoms/checkbox/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -4
- package/core/components/atoms/checkbox/__stories__/variants/{Uncontrolled.story.tsx → Uncontrolled.story.jsx} +2 -2
- package/core/components/atoms/checkbox/__stories__/variants/{checkboxList.story.tsx → checkboxList.story.jsx} +2 -2
- package/core/components/atoms/chip/__stories__/{Action.story.tsx → Action.story.jsx} +1 -1
- package/core/components/atoms/chip/__stories__/{Input.story.tsx → Input.story.jsx} +1 -1
- package/core/components/atoms/chip/__stories__/{Selection.story.tsx → Selection.story.jsx} +0 -0
- package/core/components/atoms/chip/__stories__/{index.story.tsx → index.story.jsx} +7 -8
- package/core/components/atoms/chip/__stories__/variants/{Action.story.tsx → Action.story.jsx} +3 -4
- package/core/components/atoms/chip/__stories__/variants/{Input.story.tsx → Input.story.jsx} +3 -4
- package/core/components/atoms/chip/__stories__/variants/{Selection.story.tsx → Selection.story.jsx} +3 -4
- package/core/components/atoms/chip/__stories__/variants/{Type.story.tsx → Type.story.jsx} +6 -7
- package/core/components/atoms/chipGroup/__tests__/__snapshots__/chipGroup.test.tsx.snap +7 -7
- package/core/components/atoms/chipGroup/_stories_/index.story.jsx +46 -0
- package/core/components/atoms/collapsible/Collapsible.tsx +17 -10
- package/core/components/atoms/collapsible/__stories__/CustomTrigger.story.jsx +123 -0
- package/core/components/atoms/collapsible/__stories__/{index.story.tsx → index.story.jsx} +1 -2
- package/core/components/atoms/divider/__stories__/{BasicDividerInCard.story.tsx → BasicDividerInCard.story.jsx} +2 -2
- package/core/components/atoms/divider/__stories__/{HeaderDividerInCard.story.tsx → HeaderDividerInCard.story.jsx} +0 -0
- package/core/components/atoms/divider/__stories__/{IndentedDivider.story.tsx → IndentedDivider.story.jsx} +1 -1
- package/core/components/atoms/divider/__stories__/{Vertical.story.tsx → Vertical.story.jsx} +1 -1
- package/core/components/atoms/divider/__stories__/{index.story.tsx → index.story.jsx} +0 -0
- package/core/components/atoms/divider/__stories__/variants/{HorizontalDivider.story.tsx → HorizontalDivider.story.jsx} +0 -0
- package/core/components/atoms/dropdown/DropdownList.tsx +56 -29
- package/core/components/atoms/dropdown/__stories__/{CustomSearchPlaceholder.story.tsx → CustomSearchPlaceholder.story.jsx} +22 -21
- package/core/components/atoms/dropdown/__stories__/{DropdownItemsWithCheckbox.story.tsx → DropdownItemsWithCheckbox.story.jsx} +22 -21
- package/core/components/atoms/dropdown/__stories__/{DropdownItemsWithIcon.story.tsx → DropdownItemsWithIcon.story.jsx} +26 -25
- package/core/components/atoms/dropdown/__stories__/DropdownItemsWithInfo.story.jsx +44 -0
- package/core/components/atoms/dropdown/__stories__/DropdownWIthIcon.story.jsx +224 -0
- package/core/components/atoms/dropdown/__stories__/DropdownWithActionButtons.story.jsx +74 -0
- package/core/components/atoms/dropdown/__stories__/DropdownWithCaption.story.jsx +73 -0
- package/core/components/atoms/dropdown/__stories__/{Gender.story.tsx → Gender.story.jsx} +15 -14
- package/core/components/atoms/dropdown/__stories__/{LabelPositionInDropdown.story.tsx → LabelPositionInDropdown.story.jsx} +35 -34
- package/core/components/atoms/dropdown/__stories__/{Languages.story.tsx → Languages.story.jsx} +18 -17
- package/core/components/atoms/dropdown/__stories__/{Menu.story.tsx → Menu.story.jsx} +20 -18
- package/core/components/atoms/dropdown/__stories__/Options.tsx +11 -11
- package/core/components/atoms/dropdown/__stories__/{OptionsLessThan50.story.tsx → OptionsLessThan50.story.jsx} +12 -9
- package/core/components/atoms/dropdown/__stories__/{OptionsMoreThan50.story.tsx → OptionsMoreThan50.story.jsx} +4 -5
- package/core/components/atoms/dropdown/__stories__/{SearchInDropdown.story.tsx → SearchInDropdown.story.jsx} +26 -25
- package/core/components/atoms/dropdown/__stories__/StandardDropdown.story.jsx +49 -0
- package/core/components/atoms/dropdown/__stories__/{StatusWithoutLabel.story.tsx → StatusWithoutLabel.story.jsx} +18 -17
- package/core/components/atoms/dropdown/__stories__/{WithCheckboxAndSubInfo.story.tsx → WithCheckboxAndSubInfo.story.jsx} +26 -25
- package/core/components/atoms/dropdown/__stories__/_common_/types.tsx +0 -1
- package/core/components/atoms/dropdown/__stories__/{index.story.tsx → index.story.jsx} +25 -26
- package/core/components/atoms/dropdown/__stories__/variants/{Align.story.tsx → Align.story.jsx} +1 -2
- package/core/components/atoms/dropdown/__stories__/variants/{CustomOption.story.tsx → CustomOption.story.jsx} +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/{CustomTrigger.story.tsx → CustomTrigger.story.jsx} +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/{Disable.story.tsx → Disable.story.jsx} +0 -0
- package/core/components/atoms/dropdown/__stories__/variants/{DisabledOption.story.tsx → DisabledOption.story.jsx} +3 -3
- package/core/components/atoms/dropdown/__stories__/variants/{LoadingType.story.tsx → LoadingType.story.jsx} +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/{MultiOptions.story.tsx → MultiOptions.story.jsx} +3 -3
- package/core/components/atoms/dropdown/__stories__/variants/{OptionType.story.tsx → OptionType.story.jsx} +2 -2
- package/core/components/atoms/dropdown/__stories__/variants/{OptionsWrap.story.tsx → OptionsWrap.story.jsx} +0 -0
- package/core/components/atoms/dropdown/__stories__/variants/{PreSelection.story.tsx → PreSelection.story.jsx} +4 -4
- package/core/components/atoms/dropdown/__stories__/variants/{Search.story.tsx → Search.story.jsx} +0 -0
- package/core/components/atoms/dropdown/__stories__/variants/{Section.story.tsx → Section.story.jsx} +1 -1
- package/core/components/atoms/dropdown/__stories__/variants/{Size.story.tsx → Size.story.jsx} +1 -2
- package/core/components/atoms/dropdown/__stories__/variants/{StaticLimit.story.tsx → StaticLimit.story.jsx} +4 -4
- package/core/components/atoms/dropdown/__stories__/variants/button/ButtonState.story.jsx +96 -0
- package/core/components/atoms/dropdown/__stories__/variants/button/Placeholder.story.jsx +65 -0
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/BulkMultiSelectWithApply.story.jsx +161 -0
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.jsx +258 -0
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelectWithApply.story.jsx +123 -0
- package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/SingleSelect.story.jsx +140 -0
- package/core/components/atoms/heading/__stories__/{index.story.tsx → index.story.jsx} +2 -13
- package/core/components/atoms/heading/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/heading/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/icon/__stories__/{index.story.tsx → index.story.jsx} +5 -13
- package/core/components/atoms/icon/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/icon/__stories__/variants/{Image.story.tsx → Image.story.jsx} +0 -0
- package/core/components/atoms/icon/__stories__/variants/{Type.story.tsx → Type.story.jsx} +3 -4
- package/core/components/atoms/input/__stories__/{BasicInput.story.tsx → BasicInput.story.jsx} +0 -0
- package/core/components/atoms/input/__stories__/{IconLeftInput.story.tsx → IconLeftInput.story.jsx} +1 -1
- package/core/components/atoms/input/__stories__/{InputWithCaption.story.tsx → InputWithCaption.story.jsx} +0 -0
- package/core/components/atoms/input/__stories__/{InputWithLabel.story.tsx → InputWithLabel.story.jsx} +0 -0
- package/core/components/atoms/input/__stories__/{LabelPosition.story.tsx → LabelPosition.story.jsx} +0 -0
- package/core/components/atoms/input/__stories__/{RequiredVsOptional.story.tsx → RequiredVsOptional.story.jsx} +0 -0
- package/core/components/atoms/input/__stories__/{index.story.tsx → index.story.jsx} +17 -18
- package/core/components/atoms/input/__stories__/variants/{ActionIcon.story.tsx → ActionIcon.story.jsx} +1 -1
- package/core/components/atoms/input/__stories__/variants/{MetricInput.story.tsx → MetricInput.story.jsx} +1 -1
- package/core/components/atoms/input/__stories__/variants/{Size.story.tsx → Size.story.jsx} +7 -12
- package/core/components/atoms/input/__stories__/variants/{controlledInput.story.tsx → controlledInput.story.jsx} +2 -2
- package/core/components/atoms/input/__stories__/variants/types/BasicInput.story.jsx +58 -0
- package/core/components/atoms/input/__stories__/variants/types/IconLeft.story.jsx +59 -0
- package/core/components/atoms/input/__stories__/variants/types/InlineLabel.story.jsx +38 -0
- package/core/components/atoms/input/__stories__/variants/types/WithLabel.story.jsx +69 -0
- package/core/components/atoms/label/__stories__/{index.story.tsx → index.story.jsx} +3 -4
- package/core/components/atoms/label/__stories__/variants/{Required.story.tsx → Required.story.jsx} +0 -0
- package/core/components/atoms/label/__stories__/variants/{State.story.tsx → State.story.jsx} +0 -0
- package/core/components/atoms/legend/__stories__/{index.story.tsx → index.story.jsx} +5 -16
- package/core/components/atoms/legend/__stories__/variants/{IconAppearance.story.tsx → IconAppearance.story.jsx} +0 -0
- package/core/components/atoms/legend/__stories__/variants/{labelAppearance.story.tsx → labelAppearance.story.jsx} +1 -2
- package/core/components/atoms/legend/__stories__/variants/{labelWeight.story.tsx → labelWeight.story.jsx} +0 -0
- package/core/components/atoms/link/__stories__/{index.story.tsx → index.story.jsx} +6 -7
- package/core/components/atoms/link/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +0 -0
- package/core/components/atoms/link/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +0 -0
- package/core/components/atoms/link/__stories__/variants/{Size.story.tsx → Size.story.jsx} +0 -0
- package/core/components/atoms/message/__stories__/{Alert.story.tsx → Alert.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/CustomDescription.story.jsx +25 -0
- package/core/components/atoms/message/__stories__/{Info.story.tsx → Info.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/{Success.story.tsx → Success.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/{Warning.story.tsx → Warning.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/{WithActions.story.tsx → WithActions.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/{WithTitle.story.tsx → WithTitle.story.jsx} +1 -1
- package/core/components/atoms/message/__stories__/{index.story.tsx → index.story.jsx} +3 -6
- package/core/components/atoms/message/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/message/__stories__/variants/{AppearanceTitle.story.tsx → AppearanceTitle.story.jsx} +2 -4
- package/core/components/atoms/metaList/_stories_/WithSeparator.story.jsx +29 -0
- package/core/components/atoms/metaList/_stories_/index.story.jsx +28 -0
- package/core/components/atoms/metricInput/__stories__/{DefaultMetric.story.tsx → DefaultMetric.story.jsx} +1 -1
- package/core/components/atoms/metricInput/__stories__/{WithPrefix.story.tsx → WithPrefix.story.jsx} +1 -1
- package/core/components/atoms/metricInput/__stories__/{index.story.tsx → index.story.jsx} +9 -10
- package/core/components/atoms/metricInput/__stories__/variants/{Controlled.story.tsx → Controlled.story.jsx} +1 -1
- package/core/components/atoms/metricInput/__stories__/variants/{Size.story.tsx → Size.story.jsx} +0 -0
- package/core/components/atoms/metricInput/__stories__/{withSuffix.story.tsx → withSuffix.story.jsx} +1 -1
- package/core/components/atoms/outsideClick/__stories__/{index.story.tsx → index.story.jsx} +1 -1
- package/core/components/atoms/paragraph/__stories__/{index.story.tsx → index.story.jsx} +1 -9
- package/core/components/atoms/paragraph/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +2 -2
- package/core/components/atoms/pills/__stories__/{Alert.story.tsx → Alert.story.jsx} +1 -1
- package/core/components/atoms/pills/__stories__/{Default.story.tsx → Default.story.jsx} +3 -3
- package/core/components/atoms/pills/__stories__/{Info.story.tsx → Info.story.jsx} +1 -1
- package/core/components/atoms/pills/__stories__/{SubtleAlert.story.tsx → SubtleAlert.story.jsx} +1 -1
- package/core/components/atoms/pills/__stories__/{SubtleWarning.story.tsx → SubtleWarning.story.jsx} +1 -1
- package/core/components/atoms/pills/__stories__/index.story.jsx +20 -0
- package/core/components/atoms/pills/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +2 -6
- package/core/components/atoms/pills/__stories__/variants/{Subtle.story.tsx → Subtle.story.jsx} +2 -6
- package/core/components/atoms/placeholderImage/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/atoms/placeholderImage/__stories__/variants/{Round.story.tsx → Round.story.jsx} +0 -0
- package/core/components/atoms/placeholderImage/__stories__/variants/{Size.story.tsx → Size.story.jsx} +3 -4
- package/core/components/atoms/placeholderParagraph/__stories__/{index.story.tsx → index.story.jsx} +2 -4
- package/core/components/atoms/placeholderParagraph/__stories__/variants/{Length.story.tsx → Length.story.jsx} +2 -2
- package/core/components/atoms/placeholderParagraph/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/popperWrapper/PopperWrapper.tsx +25 -38
- package/core/components/atoms/progressBar/__stories__/{FiftyPercent.story.tsx → FiftyPercent.story.jsx} +0 -0
- package/core/components/atoms/progressBar/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/atoms/progressRing/__stories__/{index.story.tsx → index.story.jsx} +3 -5
- package/core/components/atoms/progressRing/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/radio/__stories__/{Alignment.story.tsx → Alignment.story.jsx} +0 -0
- package/core/components/atoms/radio/__stories__/{DefaultRadio.story.tsx → DefaultRadio.story.jsx} +0 -0
- package/core/components/atoms/radio/__stories__/{HelpText.story.tsx → HelpText.story.jsx} +1 -1
- package/core/components/atoms/radio/__stories__/{Overflow.story.tsx → Overflow.story.jsx} +0 -0
- package/core/components/atoms/radio/__stories__/RadioGroup.story.jsx +25 -0
- package/core/components/atoms/radio/__stories__/{index.story.tsx → index.story.jsx} +7 -8
- package/core/components/atoms/radio/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/radio/__stories__/variants/{State.story.tsx → State.story.jsx} +0 -0
- package/core/components/atoms/radio/__stories__/variants/{controlledRadioGroup.story.tsx → controlledRadioGroup.story.jsx} +3 -3
- package/core/components/atoms/radio/__stories__/variants/{uncontrolledRadio.story.tsx → uncontrolledRadio.story.jsx} +2 -2
- package/core/components/atoms/rangeSlider/__stories__/index.story.jsx +35 -0
- package/core/components/atoms/rangeSlider/__stories__/variants/{Controlled.story.tsx → Controlled.story.jsx} +2 -3
- package/core/components/atoms/rangeSlider/__stories__/variants/{CustomLabels.story.tsx → CustomLabels.story.jsx} +3 -4
- package/core/components/atoms/rangeSlider/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +0 -0
- package/core/components/atoms/rangeSlider/__stories__/variants/{DiscreteSlider.story.tsx → DiscreteSlider.story.jsx} +0 -0
- package/core/components/atoms/rangeSlider/__stories__/variants/{FreeSlider.story.tsx → FreeSlider.story.jsx} +0 -0
- package/core/components/atoms/rangeSlider/__stories__/variants/{SliderLabel.story.tsx → SliderLabel.story.jsx} +0 -0
- package/core/components/atoms/rangeSlider/__stories__/variants/{Uncontrolled.story.tsx → Uncontrolled.story.jsx} +0 -0
- package/core/components/atoms/slider/__stories__/index.story.jsx +36 -0
- package/core/components/atoms/slider/__stories__/variants/{Controlled.story.tsx → Controlled.story.jsx} +1 -1
- package/core/components/atoms/slider/__stories__/variants/{CustomLabels.story.tsx → CustomLabels.story.jsx} +2 -2
- package/core/components/atoms/slider/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +0 -0
- package/core/components/atoms/slider/__stories__/variants/{DiscreteSlider.story.tsx → DiscreteSlider.story.jsx} +0 -0
- package/core/components/atoms/slider/__stories__/variants/{FreeSlider.story.tsx → FreeSlider.story.jsx} +0 -0
- package/core/components/atoms/slider/__stories__/variants/{SliderLabel.story.tsx → SliderLabel.story.jsx} +0 -0
- package/core/components/atoms/slider/__stories__/variants/{Uncontrolled.story.tsx → Uncontrolled.story.jsx} +0 -0
- package/core/components/atoms/spinner/__stories__/{InlineLoader.story.tsx → InlineLoader.story.jsx} +0 -0
- package/core/components/atoms/spinner/__stories__/{ModalLoader.story.tsx → ModalLoader.story.jsx} +0 -0
- package/core/components/atoms/spinner/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/atoms/spinner/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +2 -2
- package/core/components/atoms/spinner/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/statusHint/__stories__/{Completed.story.tsx → Completed.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{Inactive.story.tsx → Inactive.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{Ongoing.story.tsx → Ongoing.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{alert.story.tsx → alert.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{default.story.tsx → default.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/atoms/statusHint/__stories__/{info.story.tsx → info.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/{success.story.tsx → success.story.jsx} +0 -0
- package/core/components/atoms/statusHint/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/subheading/__stories__/{index.story.tsx → index.story.jsx} +1 -9
- package/core/components/atoms/subheading/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/switchInput/__stories__/{DefaultSwitch.story.tsx → DefaultSwitch.story.jsx} +0 -0
- package/core/components/atoms/switchInput/__stories__/{OffState.story.tsx → OffState.story.jsx} +0 -0
- package/core/components/atoms/switchInput/__stories__/{index.story.tsx → index.story.jsx} +6 -8
- package/core/components/atoms/switchInput/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -2
- package/core/components/atoms/switchInput/__stories__/variants/{State.story.tsx → State.story.jsx} +0 -0
- package/core/components/atoms/text/__stories__/index.story.jsx +34 -0
- package/core/components/atoms/text/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +2 -2
- package/core/components/atoms/text/__stories__/variants/{Size.story.tsx → Size.story.jsx} +0 -0
- package/core/components/atoms/text/__stories__/variants/{Weight.story.tsx → Weight.story.jsx} +0 -0
- package/core/components/atoms/textarea/__stories__/{TextareaWithCaption.story.tsx → TextareaWithCaption.story.jsx} +0 -0
- package/core/components/atoms/textarea/__stories__/{defaultTextarea.story.tsx → defaultTextarea.story.jsx} +1 -1
- package/core/components/atoms/textarea/__stories__/{index.story.tsx → index.story.jsx} +7 -8
- package/core/components/atoms/textarea/__stories__/variants/{Disable.story.tsx → Disable.story.jsx} +1 -1
- package/core/components/atoms/toast/__stories__/{AlertToast.story.tsx → AlertToast.story.jsx} +0 -0
- package/core/components/atoms/toast/__stories__/{InfoToast.story.tsx → InfoToast.story.jsx} +0 -0
- package/core/components/atoms/toast/__stories__/{SuccessToast.story.tsx → SuccessToast.story.jsx} +0 -0
- package/core/components/atoms/toast/__stories__/{ToastWithActions.story.tsx → ToastWithActions.story.jsx} +0 -0
- package/core/components/atoms/toast/__stories__/{WarningToast.story.tsx → WarningToast.story.jsx} +0 -0
- package/core/components/atoms/toast/__stories__/{WithDescription.story.tsx → WithDescription.story.jsx} +3 -1
- package/core/components/atoms/toast/__stories__/{index.story.tsx → index.story.jsx} +6 -7
- package/core/components/atoms/toast/__stories__/variants/{Appearance.story.tsx → Appearance.story.jsx} +1 -2
- package/core/components/atoms/toast/__stories__/variants/{ToastMessage.story.tsx → ToastMessage.story.jsx} +2 -4
- package/core/components/atoms/toast/__stories__/variants/{ToastWithAction.story.tsx → ToastWithAction.story.jsx} +6 -8
- package/core/components/css-utilities/designTokens/Data.tsx +18 -0
- package/core/components/css-utilities/designTokens/Transitions.story.tsx +37 -0
- package/core/components/molecules/chatMessage/__stories__/UserMessage.story.jsx +33 -0
- package/core/components/molecules/chipInput/__stories__/{ChipsInSingleLine.story.tsx → ChipsInSingleLine.story.jsx} +0 -0
- package/core/components/molecules/chipInput/__stories__/{ChipsWrapped.story.tsx → ChipsWrapped.story.jsx} +0 -0
- package/core/components/molecules/chipInput/__stories__/{index.story.tsx → index.story.jsx} +3 -6
- package/core/components/molecules/chipInput/__stories__/variants/{Controlled.story.tsx → Controlled.story.jsx} +0 -0
- package/core/components/molecules/chipInput/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +0 -0
- package/core/components/molecules/chipInput/__tests__/__snapshots__/ChipInput.test.tsx.snap +2 -2
- package/core/components/molecules/dialog/__stories__/{index.story.tsx → index.story.jsx} +7 -19
- package/core/components/molecules/dialog/__stories__/variants/dimension/Large.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/dimension/Medium.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/dimension/Small.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/primaryButton/Alert.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/primaryButton/Basic.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/primaryButton/Primary.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/primaryButton/Success.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/primaryButton/Transparent.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/secondaryButton/Alert.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/secondaryButton/Basic.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/secondaryButton/Primary.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/secondaryButton/Success.story.jsx +88 -0
- package/core/components/molecules/dialog/__stories__/variants/secondaryButton/Transparent.story.jsx +88 -0
- package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +260 -195
- package/core/components/molecules/dropzone/__stories__/{index.story.tsx → index.story.jsx} +7 -8
- package/core/components/molecules/dropzone/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +2 -3
- package/core/components/molecules/dropzone/__stories__/variants/{Format.story.tsx → Format.story.jsx} +2 -3
- package/core/components/molecules/dropzone/__stories__/variants/{Size.story.tsx → Size.story.jsx} +2 -3
- package/core/components/molecules/editableChipInput/__stories__/{Uncontrolled.story.tsx → Uncontrolled.story.jsx} +2 -2
- package/core/components/molecules/editableChipInput/__stories__/{index.story.tsx → index.story.jsx} +7 -8
- package/core/components/molecules/editableChipInput/__tests__/__snapshots__/EditableChipInput.test.tsx.snap +4 -4
- package/core/components/molecules/editableDropdown/__stories__/{index.story.tsx → index.story.jsx} +9 -10
- package/core/components/molecules/editableDropdown/__stories__/variants/{customRenderer.story.tsx → customRenderer.story.jsx} +6 -6
- package/core/components/molecules/editableInput/__stories__/{index.story.tsx → index.story.jsx} +5 -6
- package/core/components/molecules/editableInput/__stories__/variants/{Error.story.tsx → Error.story.jsx} +1 -1
- package/core/components/molecules/editableInput/__stories__/variants/{Size.story.tsx → Size.story.jsx} +4 -4
- package/core/components/molecules/editableInput/__stories__/variants/{Uncontrolled.story.tsx → Uncontrolled.story.jsx} +0 -0
- package/core/components/molecules/emptyState/__stories__/{index.story.tsx → index.story.jsx} +2 -7
- package/core/components/molecules/emptyState/__stories__/{noContentAvailable.story.tsx → noContentAvailable.story.jsx} +2 -6
- package/core/components/molecules/emptyState/__stories__/{noSearchResults.story.tsx → noSearchResults.story.jsx} +0 -0
- package/core/components/molecules/emptyState/__stories__/{pageNotLoaded.story.tsx → pageNotLoaded.story.jsx} +0 -0
- package/core/components/molecules/emptyState/__stories__/{pageNotLoadedWithSVG.story.tsx → pageNotLoadedWithSVG.story.jsx} +0 -0
- package/core/components/molecules/fileList/__stories__/__common__/fileListExample.tsx +1 -3
- package/core/components/molecules/fileList/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/molecules/fileUploader/__stories__/_common_/fileList.tsx +2 -4
- package/core/components/molecules/fileUploader/__stories__/_common_/types.tsx +2 -4
- package/core/components/molecules/fileUploader/__stories__/{index.story.tsx → index.story.jsx} +0 -0
- package/core/components/molecules/fullscreenModal/FullscreenModal.tsx +13 -12
- package/core/components/molecules/fullscreenModal/__stories__/{Custom.story.tsx → Custom.story.jsx} +4 -26
- package/core/components/molecules/fullscreenModal/__stories__/{DefaultWidth.story.tsx → DefaultWidth.story.jsx} +6 -25
- package/core/components/molecules/fullscreenModal/__stories__/{LargeWidth.story.tsx → LargeWidth.story.jsx} +5 -25
- package/core/components/molecules/fullscreenModal/__stories__/{Layering.story.tsx → Layering.story.jsx} +7 -39
- package/core/components/molecules/fullscreenModal/__stories__/{Scrolling.story.tsx → Scrolling.story.jsx} +6 -26
- package/core/components/molecules/fullscreenModal/__stories__/{TwoStepWorkflow.story.tsx → TwoStepWorkflow.story.jsx} +6 -27
- package/core/components/molecules/fullscreenModal/__stories__/{index.story.tsx → index.story.jsx} +6 -34
- package/core/components/molecules/fullscreenModal/__stories__/{twoSteps.story.tsx → twoSteps.story.jsx} +3 -23
- package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Large.story.jsx +127 -0
- package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Medium.story.jsx +128 -0
- package/core/components/molecules/fullscreenModal/__tests__/Fullscreen.test.tsx +2 -5
- package/core/components/molecules/fullscreenModal/__tests__/__snapshots__/Fullscreen.test.tsx.snap +126 -96
- package/core/components/molecules/inputMask/__stories__/{CardNumber.story.tsx → CardNumber.story.jsx} +0 -0
- package/core/components/molecules/inputMask/__stories__/{index.story.tsx → index.story.jsx} +14 -15
- package/core/components/molecules/inputMask/__stories__/{phoneNumber.story.tsx → phoneNumber.story.jsx} +0 -0
- package/core/components/molecules/modal/Modal.tsx +11 -9
- package/core/components/molecules/modal/__stories__/{Alert.story.tsx → Alert.story.jsx} +6 -24
- package/core/components/molecules/modal/__stories__/{Confirmation.story.tsx → Confirmation.story.jsx} +6 -24
- package/core/components/molecules/modal/__stories__/{Dialog.story.tsx → Dialog.story.jsx} +9 -29
- package/core/components/molecules/modal/__stories__/{Input.story.tsx → Input.story.jsx} +8 -26
- package/core/components/molecules/modal/__stories__/{Layering.story.tsx → Layering.story.jsx} +12 -32
- package/core/components/molecules/modal/__stories__/{NoFooter.story.tsx → NoFooter.story.jsx} +9 -29
- package/core/components/molecules/modal/__stories__/{Scrolling.story.tsx → Scrolling.story.jsx} +7 -25
- package/core/components/molecules/modal/__stories__/{index.story.tsx → index.story.jsx} +9 -29
- package/core/components/molecules/modal/__stories__/{old.story.tsx → old.story.jsx} +9 -29
- package/core/components/molecules/modal/__stories__/variants/dimension/Large.story.jsx +102 -0
- package/core/components/molecules/modal/__stories__/variants/dimension/Medium.story.jsx +102 -0
- package/core/components/molecules/modal/__stories__/variants/dimension/Small.story.jsx +102 -0
- package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +240 -180
- package/core/components/molecules/pagination/__stories__/{Basic.story.tsx → Basic.story.jsx} +1 -1
- package/core/components/molecules/pagination/__stories__/{Jump.story.tsx → Jump.story.jsx} +1 -1
- package/core/components/molecules/pagination/__stories__/{index.story.tsx → index.story.jsx} +4 -5
- package/core/components/molecules/pagination/__stories__/variants/{Type.story.tsx → Type.story.jsx} +5 -6
- package/core/components/molecules/placeholder/__stories__/{index.story.tsx → index.story.jsx} +3 -4
- package/core/components/molecules/placeholder/__stories__/{skeletonLoaders.story.tsx → skeletonLoaders.story.jsx} +0 -0
- package/core/components/molecules/placeholder/__stories__/variants/{Image.story.tsx → Image.story.jsx} +0 -0
- package/core/components/molecules/placeholder/__stories__/variants/{ImageShape.story.tsx → ImageShape.story.jsx} +0 -0
- package/core/components/molecules/placeholder/__stories__/variants/{ImageSize.story.tsx → ImageSize.story.jsx} +2 -2
- package/core/components/molecules/popover/Popover.tsx +9 -0
- package/core/components/molecules/popover/__stories__/{Actions.story.tsx → Actions.story.jsx} +3 -3
- package/core/components/molecules/popover/__stories__/{Dark.story.tsx → Dark.story.jsx} +3 -3
- package/core/components/molecules/popover/__stories__/{Inputs.story.tsx → Inputs.story.jsx} +7 -2
- package/core/components/molecules/popover/__stories__/{Light.story.tsx → Light.story.jsx} +7 -2
- package/core/components/molecules/popover/__stories__/{Menu.story.tsx → Menu.story.jsx} +2 -2
- package/core/components/molecules/popover/__stories__/{index.story.tsx → index.story.jsx} +13 -22
- package/core/components/molecules/popover/__stories__/variants/{Position.story.tsx → Position.story.jsx} +2 -13
- package/core/components/molecules/popover/__stories__/variants/{Theme.story.tsx → Theme.story.jsx} +0 -0
- package/core/components/molecules/popover/__stories__/variants/{boundaryElement.story.tsx → boundaryElement.story.jsx} +12 -21
- package/core/components/molecules/popover/__tests__/__snapshots__/Popover.test.tsx.snap +8 -8
- package/core/components/molecules/sidesheet/Sidesheet.tsx +23 -22
- package/core/components/molecules/sidesheet/__stories__/{index.story.tsx → index.story.jsx} +12 -29
- package/core/components/molecules/sidesheet/__stories__/variants/{CustomHeader.story.tsx → CustomHeader.story.jsx} +10 -32
- package/core/components/molecules/sidesheet/__stories__/variants/{Layering.story.tsx → Layering.story.jsx} +15 -32
- package/core/components/molecules/sidesheet/__stories__/variants/{LayeringWithModal.story.tsx → LayeringWithModal.story.jsx} +15 -32
- package/core/components/molecules/sidesheet/__stories__/variants/dimension/Large.story.jsx +127 -0
- package/core/components/molecules/sidesheet/__stories__/variants/dimension/Regular.story.jsx +127 -0
- package/core/components/molecules/sidesheet/__stories__/variants/{stickyFooter.story.tsx → stickyFooter.story.jsx} +10 -27
- package/core/components/molecules/sidesheet/__stories__/variants/{twoSteps.story.tsx → twoSteps.story.jsx} +11 -29
- package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +40 -30
- package/core/components/molecules/stepper/__stories__/{SkippableStep.story.tsx → SkippableStep.story.jsx} +3 -3
- package/core/components/molecules/stepper/__stories__/{StandaloneStepper.story.tsx → StandaloneStepper.story.jsx} +2 -2
- package/core/components/molecules/stepper/__stories__/{StepperInPageHeader.story.tsx → StepperInPageHeader.story.jsx} +2 -2
- package/core/components/molecules/stepper/__stories__/{index.story.tsx → index.story.jsx} +2 -2
- package/core/components/molecules/stepper/__stories__/variants/{ActiveStep.story.tsx → ActiveStep.story.jsx} +2 -2
- package/core/components/molecules/stepper/__stories__/variants/{CompletedStep.story.tsx → CompletedStep.story.jsx} +2 -2
- package/core/components/molecules/stepper/__stories__/variants/{StepperWithSkip.story.tsx → StepperWithSkip.story.jsx} +3 -3
- package/core/components/molecules/stepper/__stories__/variants/{StepperWithTrigger.story.tsx → StepperWithTrigger.story.jsx} +2 -2
- package/core/components/molecules/tabs/Tab.tsx +12 -0
- package/core/components/molecules/tabs/Tabs.tsx +70 -12
- package/core/components/molecules/tabs/__stories__/{BasicTabs.story.tsx → BasicTabs.story.jsx} +4 -4
- package/core/components/molecules/tabs/__stories__/{CustomLabels.story.tsx → CustomLabels.story.jsx} +4 -3
- package/core/components/molecules/tabs/__stories__/DisabledWithActive.story.jsx +65 -0
- package/core/components/molecules/tabs/__stories__/DismissibleTab.story.jsx +89 -0
- package/core/components/molecules/tabs/__stories__/{InlineContent.story.tsx → InlineContent.story.jsx} +4 -3
- package/core/components/molecules/tabs/__stories__/{TabsWithCount.story.tsx → TabsWithCount.story.jsx} +4 -3
- package/core/components/molecules/tabs/__stories__/{TabsWithIcon.story.tsx → TabsWithIcon.story.jsx} +4 -3
- package/core/components/molecules/tabs/__stories__/{index.story.tsx → index.story.jsx} +4 -3
- package/core/components/molecules/tabs/__tests__/Tabs.test.tsx +14 -0
- package/core/components/molecules/tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +18 -0
- package/core/components/molecules/tooltip/Tooltip.tsx +20 -1
- package/core/components/molecules/tooltip/__stories__/index.story.jsx +30 -0
- package/core/components/molecules/tooltip/__stories__/variants/{Position.story.tsx → Position.story.jsx} +3 -14
- package/core/components/molecules/verificationCodeInput/__stories__/{fourFields.story.tsx → fourFields.story.jsx} +0 -0
- package/core/components/molecules/verificationCodeInput/__stories__/{index.story.tsx → index.story.jsx} +10 -11
- package/core/components/molecules/verificationCodeInput/__stories__/{sixFields.story.tsx → sixFields.story.jsx} +0 -0
- package/core/components/molecules/verificationCodeInput/__stories__/variants/{Disabled.story.tsx → Disabled.story.jsx} +0 -0
- package/core/components/molecules/verificationCodeInput/__stories__/variants/{Error.story.tsx → Error.story.jsx} +0 -0
- package/core/components/organisms/calendar/Calendar.tsx +5 -3
- package/core/components/organisms/calendar/__stories__/index.story.jsx +84 -0
- package/core/components/organisms/calendar/__stories__/variants/{disabled.story.tsx → disabled.story.jsx} +1 -2
- package/core/components/organisms/calendar/__stories__/variants/{firstDayOfWeek.story.tsx → firstDayOfWeek.story.jsx} +2 -3
- package/core/components/organisms/calendar/__stories__/variants/size.story.jsx +46 -0
- package/core/components/organisms/calendar/__stories__/variants/{size.story.tsx → view.story.jsx} +3 -4
- package/core/components/organisms/calendar/__stories__/variants/{withEvents.story.tsx → withEvents.story.jsx} +0 -0
- package/core/components/organisms/choiceList/__stories__/{Alignment.story.tsx → Alignment.story.jsx} +0 -0
- package/core/components/organisms/choiceList/__stories__/{AllowMultiple.story.tsx → AllowMultiple.story.jsx} +0 -0
- package/core/components/organisms/choiceList/__stories__/{Controlled.story.tsx → Controlled.story.jsx} +0 -0
- package/core/components/organisms/choiceList/__stories__/{index.story.tsx → index.story.jsx} +0 -0
- package/core/components/organisms/datePicker/__stories__/index.story.jsx +77 -0
- package/core/components/organisms/datePicker/__stories__/variants/{view.story.tsx → view.story.jsx} +1 -2
- package/core/components/organisms/datePicker/__stories__/variants/withInput.story.jsx +62 -0
- package/core/components/organisms/dateRangePicker/DateRangePicker.tsx +2 -1
- package/core/components/organisms/dateRangePicker/__stories__/{index.story.tsx → index.story.jsx} +19 -32
- package/core/components/organisms/dateRangePicker/__stories__/variants/{monthsInView.story.tsx → monthsInView.story.jsx} +1 -1
- package/core/components/organisms/dateRangePicker/__stories__/variants/{rangeLimit.story.tsx → rangeLimit.story.jsx} +0 -0
- package/core/components/organisms/dateRangePicker/__stories__/variants/{view.story.tsx → view.story.jsx} +1 -2
- package/core/components/organisms/dateRangePicker/__stories__/variants/withInput.story.jsx +68 -0
- package/core/components/organisms/dateRangePicker/__stories__/variants/withSingleInput.story.jsx +67 -0
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +138 -2238
- package/core/components/organisms/grid/Cell.tsx +20 -10
- package/core/components/organisms/grid/Grid.tsx +5 -0
- package/core/components/organisms/grid/GridBody.tsx +1 -2
- package/core/components/organisms/grid/__stories__/{GridCell.story.tsx → GridCell.story.jsx} +6 -11
- package/core/components/organisms/grid/__stories__/_common_/editableSchema.tsx +3 -5
- package/core/components/organisms/grid/__stories__/_common_/fetchData.ts +2 -3
- package/core/components/organisms/grid/__stories__/_common_/loaderSchema.ts +1 -2
- package/core/components/organisms/grid/__stories__/_common_/nestedRowRenderer.tsx +1 -2
- package/core/components/organisms/grid/__stories__/_common_/schema.tsx +1 -2
- package/core/components/organisms/grid/__stories__/_common_/simpleLoaderSchema.ts +1 -3
- package/core/components/organisms/grid/__stories__/_common_/simpleSchema.tsx +1 -3
- package/core/components/organisms/grid/__stories__/_common_/statusSchema.ts +1 -3
- package/core/components/organisms/grid/__stories__/{index.story.tsx → index.story.jsx} +18 -19
- package/core/components/organisms/grid/__stories__/variants/{loading.story.tsx → loading.story.jsx} +0 -0
- package/core/components/organisms/horizontalNav/__stories__/{default.story.tsx → default.story.jsx} +2 -3
- package/core/components/organisms/horizontalNav/__stories__/{index.story.tsx → index.story.jsx} +2 -3
- package/core/components/organisms/horizontalNav/__stories__/{leftAlign.story.tsx → leftAlign.story.jsx} +4 -5
- package/core/components/organisms/horizontalNav/__stories__/{withCount.story.tsx → withCount.story.jsx} +2 -3
- package/core/components/organisms/horizontalNav/__stories__/{withIcon.story.tsx → withIcon.story.jsx} +2 -3
- package/core/components/organisms/inlineMessage/__stories__/{InlineMessageWithinTable.story.tsx → InlineMessageWithinTable.story.jsx} +1 -2
- package/core/components/organisms/inlineMessage/__stories__/variants/{Default.story.tsx → Default.story.jsx} +2 -6
- package/core/components/organisms/inlineMessage/__stories__/variants/{Error.story.tsx → Error.story.jsx} +2 -6
- package/core/components/organisms/inlineMessage/__stories__/variants/Info.story.jsx +12 -0
- package/core/components/organisms/inlineMessage/__stories__/variants/{Success.story.tsx → Success.story.jsx} +2 -6
- package/core/components/organisms/inlineMessage/__stories__/variants/{Warning.story.tsx → Warning.story.jsx} +3 -6
- package/core/components/organisms/list/__stories__/_common_/types.tsx +0 -1
- package/core/components/organisms/list/__stories__/{index.story.tsx → index.story.jsx} +13 -14
- package/core/components/organisms/navigation/__stories__/{NavigationTabs.story.tsx → NavigationTabs.story.jsx} +2 -4
- package/core/components/organisms/navigation/__stories__/{NavigationTabsWithCount.story.tsx → NavigationTabsWithCount.story.jsx} +2 -4
- package/core/components/organisms/navigation/__stories__/{NavigationTabsWithIcon.story.tsx → NavigationTabsWithIcon.story.jsx} +2 -4
- package/core/components/organisms/navigation/__stories__/variants/{horizontal.story.tsx → horizontal.story.jsx} +3 -5
- package/core/components/organisms/navigation/__stories__/variants/{vertical.story.tsx → vertical.story.jsx} +6 -9
- package/core/components/organisms/navigation/__stories__/variants/{verticalRound.story.tsx → verticalRound.story.jsx} +6 -9
- package/core/components/organisms/pageHeader/__stories__/{Responsiveness.story.tsx → Responsiveness.story.jsx} +2 -3
- package/core/components/organisms/pageHeader/__stories__/{level2.story.tsx → level2.story.jsx} +2 -2
- package/core/components/organisms/pageHeader/__stories__/variants/{withNavigation.story.tsx → withNavigation.story.jsx} +3 -4
- package/core/components/organisms/pageHeader/__stories__/variants/{withNavigationL1.story.tsx → withNavigationL1.story.jsx} +4 -5
- package/core/components/organisms/pageHeader/__stories__/variants/{withStepper.story.tsx → withStepper.story.jsx} +3 -4
- package/core/components/organisms/pageHeader/__stories__/variants/{withStepperL1.story.tsx → withStepperL1.story.jsx} +5 -6
- package/core/components/organisms/pageHeader/__stories__/variants/{withTabs.story.tsx → withTabs.story.jsx} +13 -15
- package/core/components/organisms/pageHeader/__stories__/variants/{withTabsL1.story.tsx → withTabsL1.story.jsx} +6 -8
- package/core/components/organisms/pageHeader/__stories__/{withFilter.story.tsx → withFilter.story.jsx} +2 -2
- package/core/components/organisms/pageHeader/__stories__/{withFilterL1.story.tsx → withFilterL1.story.jsx} +3 -3
- package/core/components/organisms/pageHeader/__stories__/{withNavigation.story.tsx → withNavigation.story.jsx} +3 -4
- package/core/components/organisms/pageHeader/__stories__/{withNavigationL1.story.tsx → withNavigationL1.story.jsx} +6 -7
- package/core/components/organisms/pageHeader/__stories__/{withStepperL1.story.tsx → withStepperL1.story.jsx} +2 -2
- package/core/components/organisms/table/Table.tsx +0 -1
- package/core/components/organisms/table/__stories__/{CompressedTable.story.tsx → CompressedTable.story.jsx} +1 -2
- package/core/components/organisms/table/__stories__/{DataTable.story.tsx → DataTable.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/{Filtering.story.tsx → Filtering.story.jsx} +2 -0
- package/core/components/organisms/table/__stories__/{NestedTableWithNestedCard.story.tsx → NestedTableWithNestedCard.story.jsx} +4 -5
- package/core/components/organisms/table/__stories__/{PinnedColumn.story.tsx → PinnedColumn.story.jsx} +1 -2
- package/core/components/organisms/table/__stories__/{ResourceTable.story.tsx → ResourceTable.story.jsx} +3 -4
- package/core/components/organisms/table/__stories__/{Selection.story.tsx → Selection.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/{StandardTable.story.tsx → StandardTable.story.jsx} +1 -2
- package/core/components/organisms/table/__stories__/{TableAsDescriptionList.story.tsx → TableAsDescriptionList.story.jsx} +3 -5
- package/core/components/organisms/table/__stories__/{TableAsOptionList.story.tsx → TableAsOptionList.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/{TightStory.story.tsx → TightStory.story.jsx} +1 -2
- package/core/components/organisms/table/__stories__/_common_/types.tsx +1 -2
- package/core/components/organisms/table/__stories__/{asyncTable.story.tsx → asyncTable.story.jsx} +1 -1
- package/core/components/organisms/table/__stories__/{index.story.tsx → index.story.jsx} +22 -23
- package/core/components/organisms/table/__stories__/{syncTable.story.tsx → syncTable.story.jsx} +1 -1
- package/core/components/organisms/table/__stories__/variants/customHeaderCellRenderer.story.jsx +420 -0
- package/core/components/organisms/table/__stories__/variants/{nestedRows.story.tsx → nestedRows.story.jsx} +1 -1
- package/core/components/organisms/table/__stories__/variants/{showHead.story.tsx → showHead.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/variants/{showMenu.story.tsx → showMenu.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/variants/{size.story.tsx → size.story.jsx} +2 -3
- package/core/components/organisms/table/__stories__/variants/{syncLoaderSchema.story.tsx → syncLoaderSchema.story.jsx} +7 -8
- package/core/components/organisms/table/__stories__/variants/{type.story.tsx → type.story.jsx} +3 -4
- package/core/components/organisms/table/__stories__/variants/{withCheckbox.story.tsx → withCheckbox.story.jsx} +3 -4
- package/core/components/organisms/table/__stories__/variants/{withEditableCell.story.tsx → withEditableCell.story.jsx} +1 -1
- package/core/components/organisms/table/__stories__/variants/{withErrorTemplate.story.tsx → withErrorTemplate.story.jsx} +0 -0
- package/core/components/organisms/table/__stories__/variants/{withHeader.story.tsx → withHeader.story.jsx} +13 -1
- package/core/components/organisms/table/__stories__/variants/{withPagination.story.tsx → withPagination.story.jsx} +3 -4
- package/core/components/organisms/timePicker/__stories__/index.story.jsx +54 -0
- package/core/components/organisms/verticalNav/MenuItem.tsx +68 -30
- package/core/components/organisms/verticalNav/VerticalNav.tsx +60 -18
- package/core/components/organisms/verticalNav/__stories__/{ChildItemsWithIcon.story.tsx → ChildItemsWithIcon.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/CustomItemsRenderer.story.jsx +237 -0
- package/core/components/organisms/verticalNav/__stories__/CustomOptionsRenderer.story.jsx +246 -0
- package/core/components/organisms/verticalNav/__stories__/CustomTrigger.story.jsx +116 -0
- package/core/components/organisms/verticalNav/__stories__/{CustomVerticalNav.story.tsx → CustomVerticalNav.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/{FlatEdgedVerticalNav.story.tsx → FlatEdgedVerticalNav.story.jsx} +17 -6
- package/core/components/organisms/verticalNav/__stories__/{Grouping.story.tsx → Grouping.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/{HoverableVerticalNav.story.tsx → HoverableVerticalNav.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/LabelOverflowBehaviour.story.jsx +130 -0
- package/core/components/organisms/verticalNav/__stories__/{NonCollapsibleVerticalNav.story.tsx → NonCollapsibleVerticalNav.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/{RoundEdgedVerticalNav.story.tsx → RoundEdgedVerticalNav.story.jsx} +0 -0
- package/core/components/organisms/verticalNav/__stories__/{SecondaryVerticalNav.story.tsx → SecondaryVerticalNav.story.jsx} +2 -2
- package/core/components/organisms/verticalNav/__stories__/{index.story.tsx → index.story.jsx} +3 -5
- package/core/components/organisms/verticalNav/__stories__/schema.tsx +1 -2
- package/core/components/organisms/verticalNav/__stories__/variants/{Rounded.story.tsx → Rounded.story.jsx} +3 -5
- package/core/components/organisms/verticalNav/__stories__/variants/{Sections.story.tsx → Sections.story.jsx} +3 -5
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +162 -15
- package/core/utils/action.ts +3 -0
- package/core/utils/docPage/index.tsx +2 -15
- package/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
- package/core/components/atoms/avatar/__stories__/index.story.tsx +0 -34
- package/core/components/atoms/button/__stories__/SplitButton.story.tsx +0 -41
- package/core/components/atoms/checkbox/__stories__/index.story.tsx +0 -40
- package/core/components/atoms/dropdown/__stories__/DropdownWIthIcon.story.tsx +0 -222
- package/core/components/atoms/dropdown/__stories__/DropdownWithActionButtons.story.tsx +0 -73
- package/core/components/atoms/dropdown/__stories__/DropdownWithCaption.story.tsx +0 -72
- package/core/components/atoms/dropdown/__stories__/StandardDropdown.story.tsx +0 -48
- package/core/components/atoms/pills/__stories__/index.story.tsx +0 -27
- package/core/components/atoms/radio/__stories__/RadioGroup.story.tsx +0 -22
- package/core/components/atoms/rangeSlider/__stories__/index.story.tsx +0 -37
- package/core/components/atoms/slider/__stories__/index.story.tsx +0 -37
- package/core/components/atoms/text/__stories__/index.story.tsx +0 -55
- package/core/components/molecules/chatMessage/__stories__/UserMessage.story.tsx +0 -37
- package/core/components/molecules/tooltip/__stories__/index.story.tsx +0 -35
- package/core/components/organisms/calendar/__stories__/index.story.tsx +0 -69
- package/core/components/organisms/datePicker/__stories__/index.story.tsx +0 -90
- package/core/components/organisms/datePicker/__stories__/variants/withInput.story.tsx +0 -75
- package/core/components/organisms/dateRangePicker/__stories__/variants/withInput.story.tsx +0 -81
- package/core/components/organisms/dateRangePicker/__stories__/variants/withSingleInput.story.tsx +0 -80
- package/core/components/organisms/inlineMessage/__stories__/variants/Info.story.tsx +0 -16
- package/core/components/organisms/timePicker/__stories__/index.story.tsx +0 -51
|
@@ -10,7 +10,7 @@ exports[`Chip component
|
|
|
10
10
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
11
11
|
>
|
|
12
12
|
<i
|
|
13
|
-
class="material-icons material-icons-round Icon Icon--
|
|
13
|
+
class="material-icons material-icons-round Icon Icon--inverse Chip-icon Chip-icon--left"
|
|
14
14
|
data-test="DesignSystem-GenericChip--Icon"
|
|
15
15
|
role="button"
|
|
16
16
|
style="font-size: 16px; width: 16px;"
|
|
@@ -38,7 +38,7 @@ exports[`Chip component
|
|
|
38
38
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
39
39
|
>
|
|
40
40
|
<i
|
|
41
|
-
class="material-icons material-icons-round Icon Icon--
|
|
41
|
+
class="material-icons material-icons-round Icon Icon--primary Chip-icon Chip-icon--left"
|
|
42
42
|
data-test="DesignSystem-GenericChip--Icon"
|
|
43
43
|
role="button"
|
|
44
44
|
style="font-size: 16px; width: 16px;"
|
|
@@ -94,7 +94,7 @@ exports[`Chip component
|
|
|
94
94
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
95
95
|
>
|
|
96
96
|
<i
|
|
97
|
-
class="material-icons material-icons-round Icon Icon--
|
|
97
|
+
class="material-icons material-icons-round Icon Icon--primaryLighter Chip-icon Chip-icon--left"
|
|
98
98
|
data-test="DesignSystem-GenericChip--Icon"
|
|
99
99
|
role="button"
|
|
100
100
|
style="font-size: 16px; width: 16px;"
|
|
@@ -122,7 +122,7 @@ exports[`Chip component
|
|
|
122
122
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
123
123
|
>
|
|
124
124
|
<i
|
|
125
|
-
class="material-icons material-icons-round Icon Chip-icon Chip-icon--left"
|
|
125
|
+
class="material-icons material-icons-round Icon Icon--inverse Chip-icon Chip-icon--left"
|
|
126
126
|
data-test="DesignSystem-GenericChip--Icon"
|
|
127
127
|
role="button"
|
|
128
128
|
style="font-size: 16px; width: 16px;"
|
|
@@ -136,7 +136,7 @@ exports[`Chip component
|
|
|
136
136
|
ChipLabel
|
|
137
137
|
</span>
|
|
138
138
|
<i
|
|
139
|
-
class="material-icons material-icons-round Icon Chip-icon Chip-icon--right cursor-pointer"
|
|
139
|
+
class="material-icons material-icons-round Icon Icon--subtle Chip-icon Chip-icon--right cursor-pointer"
|
|
140
140
|
data-test="DesignSystem-GenericChip--clearButton"
|
|
141
141
|
role="button"
|
|
142
142
|
style="font-size: 16px; width: 16px;"
|
|
@@ -159,7 +159,7 @@ exports[`Chip component
|
|
|
159
159
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
160
160
|
>
|
|
161
161
|
<i
|
|
162
|
-
class="material-icons material-icons-round Icon Icon--
|
|
162
|
+
class="material-icons material-icons-round Icon Icon--primary Chip-icon Chip-icon--left"
|
|
163
163
|
data-test="DesignSystem-GenericChip--Icon"
|
|
164
164
|
role="button"
|
|
165
165
|
style="font-size: 16px; width: 16px;"
|
|
@@ -173,7 +173,7 @@ exports[`Chip component
|
|
|
173
173
|
ChipLabel
|
|
174
174
|
</span>
|
|
175
175
|
<i
|
|
176
|
-
class="material-icons material-icons-round Icon Icon--
|
|
176
|
+
class="material-icons material-icons-round Icon Icon--primary Chip-icon Chip-icon--right cursor-pointer"
|
|
177
177
|
data-test="DesignSystem-GenericChip--clearButton"
|
|
178
178
|
role="button"
|
|
179
179
|
style="font-size: 16px; width: 16px;"
|
|
@@ -233,7 +233,7 @@ exports[`Chip component
|
|
|
233
233
|
data-test="DesignSystem-GenericChip--GenericChipWrapper"
|
|
234
234
|
>
|
|
235
235
|
<i
|
|
236
|
-
class="material-icons material-icons-round Icon Icon--
|
|
236
|
+
class="material-icons material-icons-round Icon Icon--primaryLighter Chip-icon Chip-icon--left"
|
|
237
237
|
data-test="DesignSystem-GenericChip--Icon"
|
|
238
238
|
role="button"
|
|
239
239
|
style="font-size: 16px; width: 16px;"
|
|
@@ -247,7 +247,7 @@ exports[`Chip component
|
|
|
247
247
|
ChipLabel
|
|
248
248
|
</span>
|
|
249
249
|
<i
|
|
250
|
-
class="material-icons material-icons-round Icon Icon--
|
|
250
|
+
class="material-icons material-icons-round Icon Icon--primaryLighter Chip-icon Chip-icon--right"
|
|
251
251
|
data-test="DesignSystem-GenericChip--clearButton"
|
|
252
252
|
role="button"
|
|
253
253
|
style="font-size: 16px; width: 16px;"
|
|
@@ -38,12 +38,14 @@ export const GenericChip = (props: GenericChipProps) => {
|
|
|
38
38
|
if (onClick) onClick();
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const iconAppearance =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
const iconAppearance = (align: string) =>
|
|
42
|
+
classNames({
|
|
43
|
+
['disabled']: disabled && !selected,
|
|
44
|
+
['primary']: !disabled && selected,
|
|
45
|
+
['primary_lighter']: disabled && selected,
|
|
46
|
+
['subtle']: !disabled && !selected && align === 'right',
|
|
47
|
+
['inverse']: !disabled && !selected && align === 'left',
|
|
48
|
+
}) as IconProps['appearance'];
|
|
47
49
|
|
|
48
50
|
const textAppearance = classNames({
|
|
49
51
|
['disabled']: disabled && !selected,
|
|
@@ -64,7 +66,7 @@ export const GenericChip = (props: GenericChipProps) => {
|
|
|
64
66
|
<Icon
|
|
65
67
|
data-test="DesignSystem-GenericChip--Icon"
|
|
66
68
|
name={icon}
|
|
67
|
-
appearance={iconAppearance}
|
|
69
|
+
appearance={iconAppearance('left')}
|
|
68
70
|
className={iconClass('left')}
|
|
69
71
|
/>
|
|
70
72
|
)}
|
|
@@ -75,7 +77,7 @@ export const GenericChip = (props: GenericChipProps) => {
|
|
|
75
77
|
<Icon
|
|
76
78
|
data-test="DesignSystem-GenericChip--clearButton"
|
|
77
79
|
name="clear"
|
|
78
|
-
appearance={iconAppearance}
|
|
80
|
+
appearance={iconAppearance('right')}
|
|
79
81
|
className={iconClass('right')}
|
|
80
82
|
onClick={onCloseHandler}
|
|
81
83
|
/>
|
package/core/components/atoms/avatar/__stories__/{defaultAvatar.story.tsx → defaultAvatar.story.jsx}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Avatar from '../Avatar';
|
|
3
|
+
|
|
4
|
+
// CSF format story
|
|
5
|
+
export const all = () => {
|
|
6
|
+
const appearance = 'primary';
|
|
7
|
+
const size = 'tiny';
|
|
8
|
+
const withTooltip = true;
|
|
9
|
+
const children = '';
|
|
10
|
+
const firstName = 'John';
|
|
11
|
+
const lastName = 'Doe';
|
|
12
|
+
|
|
13
|
+
const options = {
|
|
14
|
+
appearance,
|
|
15
|
+
withTooltip,
|
|
16
|
+
size,
|
|
17
|
+
firstName,
|
|
18
|
+
lastName,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return <Avatar {...options}>{children}</Avatar>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
title: 'Components/Avatar/All',
|
|
26
|
+
component: Avatar,
|
|
27
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Avatar from '../../Avatar';
|
|
3
3
|
import Text from '@/components/atoms/text';
|
|
4
|
-
import { AccentAppearance } from '@/common.type';
|
|
5
4
|
|
|
6
5
|
// CSF format story
|
|
7
6
|
export const appearance = () => {
|
|
8
7
|
const weight = 'strong';
|
|
9
8
|
|
|
10
|
-
const appearances
|
|
9
|
+
const appearances = [
|
|
11
10
|
'primary',
|
|
12
11
|
'secondary',
|
|
13
12
|
'alert',
|
|
File without changes
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AvatarGroup } from '../AvatarGroup';
|
|
3
|
-
import { number, select, boolean } from '@storybook/addon-knobs';
|
|
4
3
|
import { list } from './AvatarList';
|
|
5
4
|
|
|
6
5
|
export const all = () => {
|
|
7
|
-
const position =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
const on = select('on', ['click', 'hover'], 'hover');
|
|
14
|
-
|
|
15
|
-
const dark = boolean('dark', true);
|
|
16
|
-
|
|
17
|
-
const max = number('max', 2);
|
|
18
|
-
|
|
6
|
+
const position = 'bottom-end';
|
|
7
|
+
const on = 'hover';
|
|
8
|
+
const dark = true;
|
|
9
|
+
const max = 2;
|
|
19
10
|
const options = {
|
|
20
11
|
max,
|
|
21
12
|
popoverOptions: {
|
|
File without changes
|
|
@@ -3,8 +3,8 @@ import { AvatarGroup, Avatar, Text } from '@/index';
|
|
|
3
3
|
import { list } from '../AvatarList';
|
|
4
4
|
|
|
5
5
|
export const customPopper = () => {
|
|
6
|
-
const popperRenderer = (names
|
|
7
|
-
const AvatarList = names.map((avatar
|
|
6
|
+
const popperRenderer = (names) => {
|
|
7
|
+
const AvatarList = names.map((avatar, index) => {
|
|
8
8
|
const { firstName, lastName, appearance } = avatar;
|
|
9
9
|
|
|
10
10
|
return (
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { boolean } from '@storybook/addon-knobs';
|
|
3
2
|
import Backdrop from '../Backdrop';
|
|
4
3
|
import { Paragraph } from '@/index';
|
|
5
4
|
|
|
6
5
|
export const all = () => {
|
|
7
|
-
const open =
|
|
6
|
+
const open = true;
|
|
8
7
|
|
|
9
8
|
const options = {
|
|
10
9
|
open,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const solidAlert = () => (
|
|
5
|
+
<Badge appearance="alert" subtle={false}>
|
|
6
|
+
{'Failed'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Solid Alert',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const solidSecondary = () => (
|
|
5
|
+
<Badge appearance="secondary" subtle={false}>
|
|
6
|
+
{'Closed'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const solidWarning = () => (
|
|
5
|
+
<Badge appearance="warning" subtle={false}>
|
|
6
|
+
{'Disapproved'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Solid Warning',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const subtleAlert = () => (
|
|
5
|
+
<Badge appearance="alert" subtle={true}>
|
|
6
|
+
{'1.41'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Subtle Alert',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const subtleSecondary = () => (
|
|
5
|
+
<Badge appearance="secondary" subtle={true}>
|
|
6
|
+
{'Closed'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Subtle Secondary',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const subtleWarning = () => (
|
|
5
|
+
<Badge appearance="warning" subtle={true}>
|
|
6
|
+
{'Pending'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Subtle Warning',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
export const success = () => (
|
|
5
|
+
<Badge appearance="success" subtle={false}>
|
|
6
|
+
{'Badge'}
|
|
7
|
+
</Badge>
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Badge/Success',
|
|
12
|
+
component: Badge,
|
|
13
|
+
parameters: {
|
|
14
|
+
docs: {
|
|
15
|
+
docPage: {
|
|
16
|
+
title: 'Badge',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../Badge';
|
|
3
|
+
|
|
4
|
+
// CSF format story
|
|
5
|
+
export const all = () => {
|
|
6
|
+
const appearance = 'primary';
|
|
7
|
+
const subtle = false;
|
|
8
|
+
const children = 'Badge';
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<Badge appearance={appearance} subtle={subtle}>
|
|
12
|
+
{children}
|
|
13
|
+
</Badge>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: 'Components/Badge/All',
|
|
19
|
+
component: Badge,
|
|
20
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../../Badge';
|
|
3
|
+
import Text from '@/components/atoms/text';
|
|
4
|
+
|
|
5
|
+
// CSF format story
|
|
6
|
+
export const appearance = () => {
|
|
7
|
+
const subtle = false;
|
|
8
|
+
const weight = 'strong';
|
|
9
|
+
const children = 'Badge';
|
|
10
|
+
const appearances = [
|
|
11
|
+
'primary',
|
|
12
|
+
'secondary',
|
|
13
|
+
'alert',
|
|
14
|
+
'warning',
|
|
15
|
+
'success',
|
|
16
|
+
'accent1',
|
|
17
|
+
'accent2',
|
|
18
|
+
'accent3',
|
|
19
|
+
'accent4',
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div className="d-flex">
|
|
24
|
+
{appearances.map((appear, ind) => {
|
|
25
|
+
return (
|
|
26
|
+
<div key={ind} className="mr-9">
|
|
27
|
+
<Badge appearance={appear} subtle={subtle}>
|
|
28
|
+
{children}
|
|
29
|
+
</Badge>
|
|
30
|
+
<br />
|
|
31
|
+
<Text weight={weight}>{appear.charAt(0).toUpperCase() + appear.slice(1)}</Text>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
})}
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
title: 'Components/Badge/Variants/Appearance',
|
|
41
|
+
component: Badge,
|
|
42
|
+
parameters: {
|
|
43
|
+
docs: {
|
|
44
|
+
docPage: {
|
|
45
|
+
title: 'Badge',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Badge from '../../Badge';
|
|
3
|
+
import Text from '@/components/atoms/text';
|
|
4
|
+
|
|
5
|
+
// CSF format story
|
|
6
|
+
export const subtle = () => {
|
|
7
|
+
const ButtonSubtle = true;
|
|
8
|
+
const weight = 'strong';
|
|
9
|
+
const children = 'Badge';
|
|
10
|
+
const appearances = [
|
|
11
|
+
'primary',
|
|
12
|
+
'secondary',
|
|
13
|
+
'alert',
|
|
14
|
+
'warning',
|
|
15
|
+
'success',
|
|
16
|
+
'accent1',
|
|
17
|
+
'accent2',
|
|
18
|
+
'accent3',
|
|
19
|
+
'accent4',
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div className="d-flex">
|
|
24
|
+
{appearances.map((appear, ind) => {
|
|
25
|
+
return (
|
|
26
|
+
<div key={ind} className="mr-9">
|
|
27
|
+
<Badge appearance={appear} subtle={ButtonSubtle}>
|
|
28
|
+
{children}
|
|
29
|
+
</Badge>
|
|
30
|
+
<br />
|
|
31
|
+
<Text weight={weight}>{appear.charAt(0).toUpperCase() + appear.slice(1)}</Text>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
})}
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
title: 'Components/Badge/Variants/Subtle',
|
|
41
|
+
component: Badge,
|
|
42
|
+
parameters: {
|
|
43
|
+
docs: {
|
|
44
|
+
docPage: {
|
|
45
|
+
title: 'Badge',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -97,6 +97,7 @@ const sizeMapping: Record<ButtonSize, number> = {
|
|
|
97
97
|
large: 20,
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
// eslint-disable-next-line react/display-name
|
|
100
101
|
const ButtonElement = React.forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
|
|
101
102
|
const {
|
|
102
103
|
size = 'regular',
|
|
@@ -179,8 +180,6 @@ const ButtonElement = React.forwardRef<HTMLButtonElement, ButtonProps>((props, r
|
|
|
179
180
|
);
|
|
180
181
|
});
|
|
181
182
|
|
|
182
|
-
ButtonElement.displayName = 'ButtonElement';
|
|
183
|
-
|
|
184
183
|
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
|
|
185
184
|
const { icon, tooltip, children } = props;
|
|
186
185
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Button from '@/components/atoms/button';
|
|
3
|
+
import Dropdown from '@/components/atoms/dropdown';
|
|
4
|
+
|
|
5
|
+
export const splitButton = () => {
|
|
6
|
+
|
|
7
|
+
const options = [
|
|
8
|
+
{
|
|
9
|
+
label: 'Download All',
|
|
10
|
+
value: 'Download All',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: 'Download Selected',
|
|
14
|
+
value: 'Download Selected',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className="d-flex">
|
|
20
|
+
<Button className="mr-2" aria-label="Request review">
|
|
21
|
+
Request review
|
|
22
|
+
</Button>
|
|
23
|
+
<div className="mb-10" style={{ width: '150px' }}>
|
|
24
|
+
<Dropdown menu={true} icon="expand_more" options={options} />
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
title: 'Components/Button/Split Button',
|
|
32
|
+
component: Button,
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
docPage: {
|
|
36
|
+
title: 'Button',
|
|
37
|
+
description: 'Split button.',
|
|
38
|
+
a11yProps: `
|
|
39
|
+
**aria-label:** Add \`aria-label='Request review'\` to describe the action of button
|
|
40
|
+
`,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
package/core/components/atoms/button/__stories__/{Transparent.story.tsx → Transparent.story.jsx}
RENAMED
|
File without changes
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import { action } from '@/utils/action';
|
|
4
3
|
import Button from '../Button';
|
|
5
4
|
|
|
6
5
|
// CSF format story
|
|
7
6
|
export const all = () => {
|
|
8
|
-
const type =
|
|
7
|
+
const type = 'button';
|
|
9
8
|
|
|
10
|
-
const appearance =
|
|
9
|
+
const appearance = 'basic';
|
|
11
10
|
|
|
12
|
-
const size =
|
|
11
|
+
const size = 'large';
|
|
13
12
|
|
|
14
|
-
const disabled =
|
|
13
|
+
const disabled = false;
|
|
15
14
|
|
|
16
|
-
const expanded =
|
|
15
|
+
const expanded = false;
|
|
17
16
|
|
|
18
|
-
const loading =
|
|
17
|
+
const loading = false;
|
|
19
18
|
|
|
20
|
-
const icon =
|
|
19
|
+
const icon = '';
|
|
21
20
|
|
|
22
|
-
const iconAlign =
|
|
21
|
+
const iconAlign = 'right';
|
|
23
22
|
|
|
24
|
-
const children =
|
|
23
|
+
const children = 'Open';
|
|
25
24
|
|
|
26
25
|
return (
|
|
27
26
|
<Button
|