@itcase/ui-react-native 1.10.85 → 1.10.87
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/.storybook-react-native-web/main.ts +25 -3
- package/.storybook-react-native-web/preview.tsx +8 -0
- package/package.json +10 -4
- package/src/components/Avatar/Avatar.interface.ts +34 -3
- package/src/components/Avatar/Avatar.tsx +63 -86
- package/src/components/Avatar/appearance/avatarSize.ts +20 -20
- package/src/components/Avatar/appearance/avatarSurface.ts +8 -4
- package/src/components/Avatar/stories/AvatarCount.stories.tsx +13 -3
- package/src/components/Avatar/stories/AvatarDemo.stories.tsx +76 -0
- package/src/components/Avatar/stories/AvatarGallery.stories.tsx +200 -0
- package/src/components/Avatar/stories/AvatarImage.stories.tsx +15 -6
- package/src/components/Avatar/stories/AvatarInteraction.stories.tsx +5 -1
- package/src/components/Avatar/stories/AvatarLetters.stories.tsx +13 -3
- package/src/components/Avatar/stories/AvatarShape.stories.tsx +20 -2
- package/src/components/Avatar/stories/AvatarSize.stories.tsx +32 -2
- package/src/components/Avatar/stories/AvatarSkeleton.stories.tsx +68 -0
- package/src/components/Avatar/stories/AvatarStories.config.ts +107 -1
- package/src/components/Avatar/stories/AvatarStyle.stories.tsx +14 -2
- package/src/components/Avatar/styles/avatar.ts +3 -0
- package/src/components/AvatarStack/AvatarStack.interface.ts +37 -5
- package/src/components/AvatarStack/AvatarStack.styles.ts +3 -1
- package/src/components/AvatarStack/AvatarStack.tsx +31 -28
- package/src/components/AvatarStack/index.ts +13 -2
- package/src/components/AvatarStack/stories/AvatarStackDemo.stories.tsx +89 -0
- package/src/components/AvatarStack/stories/AvatarStackDirection.stories.tsx +35 -0
- package/src/components/AvatarStack/stories/AvatarStackGallery.stories.tsx +126 -0
- package/src/components/AvatarStack/stories/AvatarStackLength.stories.tsx +55 -0
- package/src/components/AvatarStack/stories/AvatarStackSize.stories.tsx +50 -0
- package/src/components/AvatarStack/stories/AvatarStackStories.config.ts +74 -0
- package/src/components/AvatarStack/stories/__mock__/index.ts +29 -0
- package/src/components/AvatarStack/styles/avatarStack.ts +4 -2
- package/src/components/AvatarStack/styles/avatarStackSize.ts +32 -73
- package/src/components/Badge/Badge.appearance.ts +17 -1
- package/src/components/Badge/Badge.interface.ts +48 -4
- package/src/components/Badge/Badge.tsx +65 -49
- package/src/components/Badge/appearance/badgeAccent.ts +12 -0
- package/src/components/Badge/appearance/badgeDanger.ts +4 -0
- package/src/components/Badge/appearance/badgeDisabled.ts +13 -0
- package/src/components/Badge/appearance/badgeExtra.ts +5 -1
- package/src/components/Badge/appearance/badgeInfo.ts +14 -0
- package/src/components/Badge/appearance/badgeSize.ts +41 -0
- package/src/components/Badge/appearance/badgeSpecial.ts +14 -0
- package/src/components/Badge/appearance/badgeStyle.ts +17 -0
- package/src/components/Badge/appearance/badgeSuccess.ts +14 -0
- package/src/components/Badge/appearance/badgeSurface.ts +30 -0
- package/src/components/Badge/appearance/badgeWarning.ts +14 -0
- package/src/components/Badge/index.ts +2 -0
- package/src/components/Badge/stories/BadgeCounter.stories.tsx +39 -0
- package/src/components/Badge/stories/BadgeDemo.stories.tsx +93 -0
- package/src/components/Badge/stories/BadgeDot.stories.tsx +39 -0
- package/src/components/Badge/stories/BadgeDotIconCounter.stories.tsx +48 -0
- package/src/components/Badge/stories/BadgeFill.stories.tsx +37 -0
- package/src/components/Badge/stories/BadgeGallery.stories.tsx +109 -0
- package/src/components/Badge/stories/BadgeIcon.stories.tsx +45 -0
- package/src/components/Badge/stories/BadgeIconCounter.stories.tsx +46 -0
- package/src/components/Badge/stories/BadgeShape.stories.tsx +38 -15
- package/src/components/Badge/stories/BadgeSize.stories.tsx +58 -11
- package/src/components/Badge/stories/BadgeStories.config.ts +125 -0
- package/src/components/Badge/stories/BadgeStyle.stories.tsx +57 -0
- package/src/components/Badge/styles/badge.ts +3 -0
- package/src/components/Badge/styles/badgeShape.ts +1 -0
- package/src/components/Badge/styles/badgeSize.ts +73 -0
- package/src/components/Badge/styles/badgeType.ts +12 -2
- package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +2 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +15 -23
- package/src/components/Breadcrumbs/stories/BreadcrumbsAppearance.stories.tsx +68 -0
- package/src/components/Breadcrumbs/stories/BreadcrumbsDefault.stories.tsx +32 -0
- package/src/components/Breadcrumbs/stories/BreadcrumbsShape.stories.tsx +77 -0
- package/src/components/Breadcrumbs/stories/BreadcrumbsSize.stories.tsx +86 -0
- package/src/components/Breadcrumbs/stories/BreadcrumbsStyle.stories.tsx +59 -0
- package/src/components/Breadcrumbs/stories/__mock__/index.ts +19 -0
- package/src/components/Button/Button.appearance.ts +14 -0
- package/src/components/Button/Button.interface.ts +46 -5
- package/src/components/Button/Button.styles.ts +2 -0
- package/src/components/Button/Button.tsx +59 -69
- package/src/components/Button/appearance/buttonAccent.ts +9 -0
- package/src/components/Button/appearance/buttonDanger.ts +8 -0
- package/src/components/Button/appearance/buttonError.ts +22 -0
- package/src/components/Button/appearance/buttonExtra.ts +8 -0
- package/src/components/Button/appearance/buttonInfo.ts +30 -0
- package/src/components/Button/appearance/buttonShape.ts +27 -0
- package/src/components/Button/appearance/buttonSize.ts +34 -0
- package/src/components/Button/appearance/buttonSpecial.ts +22 -0
- package/src/components/Button/appearance/buttonSuccess.ts +22 -0
- package/src/components/Button/appearance/buttonWarning.ts +22 -0
- package/src/components/Button/stories/ButtonDefault.stories.tsx +36 -58
- package/src/components/Button/stories/ButtonDemo.stories.tsx +77 -0
- package/src/components/Button/stories/ButtonDisabled.stories.tsx +5 -4
- package/src/components/Button/stories/ButtonGallery.stories.tsx +111 -0
- package/src/components/Button/stories/ButtonIcon.stories.tsx +49 -0
- package/src/components/Button/stories/ButtonLabel.stories.tsx +50 -0
- package/src/components/Button/stories/ButtonLoading.stories.tsx +41 -0
- package/src/components/Button/stories/ButtonShape.stories.tsx +71 -0
- package/src/components/Button/stories/ButtonSize.stories.tsx +29 -12
- package/src/components/Button/stories/ButtonStories.config.ts +129 -16
- package/src/components/Button/stories/ButtonStyle.stories.tsx +9 -10
- package/src/components/Button/styles/button.ts +1 -4
- package/src/components/Button/styles/buttonShape.ts +35 -0
- package/src/components/Cell/stories/CellDirection.stories.tsx +38 -0
- package/src/components/Cell/stories/CellSizeHorizontal.stories.tsx +38 -0
- package/src/components/Cell/stories/CellSizeVertical.stories.tsx +38 -0
- package/src/components/Cell/stories/CellStories.config.ts +12 -0
- package/src/components/Cell/stories/__mock__/index.ts +6 -0
- package/src/components/Checkbox/Checkbox.helpers.ts +63 -0
- package/src/components/Checkbox/Checkbox.interface.ts +42 -24
- package/src/components/Checkbox/Checkbox.tsx +88 -110
- package/src/components/Checkbox/appearance/checkboxDefault.ts +4 -0
- package/src/components/Checkbox/stories/Checkbox.stories.tsx +52 -5
- package/src/components/Checkbox/stories/CheckboxDisabled.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxError.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxGallery.stories.tsx +138 -0
- package/src/components/Checkbox/stories/CheckboxLabel.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxLabelDesc.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxShape.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxSize.stories.tsx +1 -1
- package/src/components/Checkbox/stories/CheckboxStories.config.tsx +55 -2
- package/src/components/Checkbox/styles/checkbox.ts +20 -5
- package/src/components/Checkbox/styles/checkboxSize.ts +16 -0
- package/src/components/Checkmark/Checkmark.appearance.ts +20 -0
- package/src/components/Checkmark/Checkmark.constants.ts +8 -0
- package/src/components/Checkmark/Checkmark.helpers.ts +47 -0
- package/src/components/Checkmark/Checkmark.interface.ts +102 -5
- package/src/components/Checkmark/Checkmark.styles.ts +2 -0
- package/src/components/Checkmark/Checkmark.tsx +104 -23
- package/src/components/Checkmark/appearance/checkmarkAccent.ts +13 -0
- package/src/components/Checkmark/appearance/checkmarkDisabled.ts +13 -0
- package/src/components/Checkmark/appearance/checkmarkError.ts +13 -0
- package/src/components/Checkmark/appearance/checkmarkShape.ts +9 -0
- package/src/components/Checkmark/appearance/checkmarkSize.ts +56 -0
- package/src/components/Checkmark/appearance/checkmarkStyle.ts +17 -0
- package/src/components/Checkmark/appearance/checkmarkSurface.ts +24 -0
- package/src/components/Checkmark/index.ts +26 -4
- package/src/components/Checkmark/stories/CheckmarkChecked.stories.tsx +39 -0
- package/src/components/Checkmark/stories/CheckmarkDefault.stories.tsx +39 -0
- package/src/components/Checkmark/stories/CheckmarkDemo.stories.tsx +85 -0
- package/src/components/Checkmark/stories/CheckmarkGallery.stories.tsx +138 -0
- package/src/components/Checkmark/stories/CheckmarkNegative.stories.tsx +44 -0
- package/src/components/Checkmark/stories/CheckmarkSize.stories.tsx +85 -0
- package/src/components/Checkmark/stories/CheckmarkStories.config.ts +67 -0
- package/src/components/Checkmark/stories/CheckmarkStoryItem.tsx +34 -0
- package/src/components/Checkmark/stories/CheckmarkStyle.stories.tsx +64 -0
- package/src/components/Checkmark/styles/checkmark.ts +7 -2
- package/src/components/Checkmark/styles/checkmarkSize.ts +58 -0
- package/src/components/Chips/Chips.interface.ts +28 -2
- package/src/components/Chips/Chips.tsx +67 -85
- package/src/components/Chips/appearance/chipsAccent.ts +6 -0
- package/src/components/Chips/appearance/chipsDanger.ts +4 -0
- package/src/components/Chips/appearance/chipsDisabled.ts +2 -0
- package/src/components/Chips/appearance/chipsError.ts +4 -0
- package/src/components/Chips/appearance/chipsExtra.ts +4 -0
- package/src/components/Chips/appearance/chipsInfo.ts +4 -0
- package/src/components/Chips/appearance/chipsSpecial.ts +4 -0
- package/src/components/Chips/appearance/chipsSuccess.ts +4 -0
- package/src/components/Chips/appearance/chipsSurface.ts +18 -0
- package/src/components/Chips/appearance/chipsWarning.ts +4 -0
- package/src/components/Chips/stories/ChipsCheckLeft.stories.tsx +28 -22
- package/src/components/Chips/stories/ChipsCheckRight.stories.tsx +28 -22
- package/src/components/Chips/stories/ChipsClear.stories.tsx +28 -22
- package/src/components/Chips/stories/ChipsDefault.stories.tsx +37 -61
- package/src/components/Chips/stories/ChipsDemo.stories.tsx +78 -0
- package/src/components/Chips/stories/ChipsGallery.stories.tsx +113 -0
- package/src/components/Chips/stories/ChipsShape.stories.tsx +22 -2
- package/src/components/Chips/stories/ChipsSize.stories.tsx +26 -2
- package/src/components/Chips/stories/ChipsStories.config.ts +120 -0
- package/src/components/Chips/stories/ChipsStyle.stories.tsx +17 -2
- package/src/components/Choice/Choice.helpers.ts +35 -0
- package/src/components/Choice/Choice.interface.ts +37 -17
- package/src/components/Choice/Choice.tsx +92 -116
- package/src/components/Choice/appearance/choiceDefault.ts +12 -0
- package/src/components/Choice/appearance/choiceDisabled.ts +6 -0
- package/src/components/Choice/appearance/choiceError.ts +6 -0
- package/src/components/Choice/appearance/choiceRequire.ts +6 -0
- package/src/components/Choice/appearance/choiceSuccess.ts +6 -0
- package/src/components/Choice/stories/ChoiceDemo.stories.tsx +82 -0
- package/src/components/Choice/stories/ChoiceGallery.stories.tsx +90 -0
- package/src/components/Choice/stories/ChoiceIcon.stories.tsx +39 -36
- package/src/components/Choice/stories/ChoiceLabel.stories.tsx +45 -36
- package/src/components/Choice/stories/ChoiceLabelIcon.stories.tsx +39 -36
- package/src/components/Choice/stories/ChoiceSize.stories.tsx +17 -10
- package/src/components/Choice/stories/ChoiceStories.config.tsx +92 -43
- package/src/components/Choice/stories/ChoiceStyle.stories.tsx +21 -10
- package/src/components/Choice/stories/__mock__/index.ts +49 -0
- package/src/components/Choice/styles/choice.ts +8 -6
- package/src/components/Code/Code.appearance.ts +2 -0
- package/src/components/Code/Code.helpers.ts +213 -0
- package/src/components/Code/Code.interface.ts +76 -13
- package/src/components/Code/Code.styles.ts +8 -4
- package/src/components/Code/Code.tsx +99 -43
- package/src/components/Code/appearance/codeDefault.ts +5 -3
- package/src/components/Code/appearance/codeDisabled.ts +5 -3
- package/src/components/Code/appearance/codeError.ts +5 -3
- package/src/components/Code/appearance/codeRequire.ts +13 -0
- package/src/components/Code/appearance/codeShape.ts +14 -2
- package/src/components/Code/appearance/codeSize.ts +8 -5
- package/src/components/Code/appearance/codeStyle.ts +9 -6
- package/src/components/Code/appearance/codeSuccess.ts +5 -3
- package/src/components/Code/stories/CodeDefault.stories.tsx +58 -0
- package/src/components/Code/stories/CodeDemo.stories.tsx +80 -0
- package/src/components/Code/stories/CodeDisabled.stories.tsx +53 -0
- package/src/components/Code/stories/CodeError.stories.tsx +52 -0
- package/src/components/Code/stories/CodeGallery.stories.tsx +88 -0
- package/src/components/Code/stories/CodeRequire.stories.tsx +52 -0
- package/src/components/Code/stories/CodeShape.stories.tsx +71 -0
- package/src/components/Code/stories/CodeSize.stories.tsx +35 -0
- package/src/components/Code/stories/CodeStories.config.ts +42 -0
- package/src/components/Code/stories/CodeStyle.stories.tsx +53 -0
- package/src/components/Code/stories/CodeSuccess.stories.tsx +52 -0
- package/src/components/Code/styles/code.ts +9 -8
- package/src/components/Code/styles/codeInputShape.ts +27 -0
- package/src/components/Code/styles/codeSize.ts +17 -12
- package/src/components/ColorInput/ColorInput.interface.ts +21 -7
- package/src/components/ColorInput/ColorInput.tsx +31 -35
- package/src/components/ColorInput/stories/ColorInputDefault.stories.tsx +38 -0
- package/src/components/ColorInput/stories/ColorInputDemo.stories.tsx +85 -0
- package/src/components/ColorInput/stories/ColorInputDisabled.stories.tsx +43 -0
- package/src/components/ColorInput/stories/ColorInputError.stories.tsx +38 -0
- package/src/components/ColorInput/stories/ColorInputGallery.stories.tsx +81 -0
- package/src/components/ColorInput/stories/ColorInputRequire.stories.tsx +38 -0
- package/src/components/ColorInput/stories/ColorInputShape.stories.tsx +65 -0
- package/src/components/ColorInput/stories/ColorInputSize.stories.tsx +50 -0
- package/src/components/ColorInput/stories/ColorInputStories.config.tsx +75 -0
- package/src/components/ColorInput/stories/ColorInputStyle.stories.tsx +50 -0
- package/src/components/ColorInput/stories/ColorInputSuccess.stories.tsx +38 -0
- package/src/components/DatePicker/DatePicker.interface.ts +5 -1
- package/src/components/DatePicker/DatePicker.tsx +38 -32
- package/src/components/DatePicker/appearance/datePickerSurface.ts +1 -0
- package/src/components/DatePicker/stories/DatePicker.stories.tsx +24 -24
- package/src/components/DatePicker/stories/DatePickerSize.stories.tsx +50 -0
- package/src/components/DatePicker/stories/DatePickerStyle.stories.tsx +59 -0
- package/src/components/Divider/Divider.interface.ts +3 -2
- package/src/components/Divider/Divider.tsx +39 -28
- package/src/components/Divider/stories/DividerAppearance.stories.tsx +20 -2
- package/src/components/Divider/stories/DividerDirection.stories.tsx +19 -7
- package/src/components/Divider/stories/DividerSize.stories.tsx +13 -2
- package/src/components/Divider/stories/DividerStories.config.tsx +16 -0
- package/src/components/Divider/styles/divider.ts +10 -0
- package/src/components/Divider/styles/dividerDirection.ts +1 -3
- package/src/components/Dot/stories/Dot.stories.tsx +32 -5
- package/src/components/Drawer/Drawer.interface.ts +6 -2
- package/src/components/Drawer/Drawer.tsx +29 -33
- package/src/components/Drawer/appearance/drawerSurface.ts +3 -0
- package/src/components/Drawer/stories/Drawer.stories.tsx +45 -38
- package/src/components/Drawer/stories/DrawerSize.stories.tsx +77 -0
- package/src/components/Drawer/stories/DrawerSwap.stories.tsx +38 -0
- package/src/components/Drawer/stories/__mock__/index.ts +8 -0
- package/src/components/Dropdown/Dropdown.interface.ts +54 -6
- package/src/components/Dropdown/Dropdown.styles.ts +0 -2
- package/src/components/Dropdown/Dropdown.tsx +17 -21
- package/src/components/Dropdown/DropdownItem.styles.ts +9 -0
- package/src/components/Dropdown/DropdownItem.tsx +114 -86
- package/src/components/Dropdown/appearance/dropdownAccent.ts +18 -0
- package/src/components/Dropdown/appearance/dropdownShape.ts +4 -4
- package/src/components/Dropdown/appearance/dropdownSize.ts +26 -2
- package/src/components/Dropdown/appearance/dropdownSurface.ts +34 -0
- package/src/components/Dropdown/index.ts +6 -4
- package/src/components/Dropdown/stories/DropdownBadge.stories.tsx +44 -0
- package/src/components/Dropdown/stories/DropdownDefault.stories.tsx +44 -0
- package/src/components/Dropdown/stories/DropdownMessage.stories.tsx +44 -0
- package/src/components/Dropdown/stories/DropdownSize.stories.tsx +53 -0
- package/src/components/Dropdown/stories/DropdownSwap.stories.tsx +44 -0
- package/src/components/Dropdown/stories/__mock__/index.tsx +138 -0
- package/src/components/Dropdown/styles/dropdown.ts +0 -5
- package/src/components/Dropdown/styles/dropdownItem.ts +39 -0
- package/src/components/Dropdown/styles/{dropdownSize.ts → dropdownItemSize.ts} +6 -6
- package/src/components/Group/Group.tsx +27 -14
- package/src/components/Group/stories/Group.stories.tsx +23 -16
- package/src/components/Group/stories/GroupAlignItems.stories.tsx +86 -0
- package/src/components/Group/stories/GroupDirection.stories.tsx +90 -0
- package/src/components/Group/stories/GroupJustifyContent.stories.tsx +92 -0
- package/src/components/Group/stories/GroupWrap.stories.tsx +74 -0
- package/src/components/HeroTitle/HeroTitle.interface.ts +2 -0
- package/src/components/HeroTitle/HeroTitle.tsx +30 -20
- package/src/components/HeroTitle/appearance/heroTitleSize.ts +12 -0
- package/src/components/HeroTitle/stories/HeroTitle.stories.tsx +19 -11
- package/src/components/HeroTitle/stories/HeroTitleIcon.stories.tsx +42 -0
- package/src/components/HeroTitle/stories/HeroTitleSize.stories.tsx +77 -0
- package/src/components/Icon/Icon.appearance.ts +32 -0
- package/src/components/Icon/Icon.interface.ts +98 -10
- package/src/components/Icon/Icon.styles.ts +10 -3
- package/src/components/Icon/Icon.tsx +176 -54
- package/src/components/Icon/appearance/iconAccent.ts +19 -0
- package/src/components/Icon/appearance/iconDanger.ts +13 -0
- package/src/components/Icon/appearance/iconDisabled.ts +12 -0
- package/src/components/Icon/appearance/iconError.ts +13 -0
- package/src/components/Icon/appearance/iconExtra.ts +13 -0
- package/src/components/Icon/appearance/iconInfo.ts +18 -0
- package/src/components/Icon/appearance/iconShape.ts +24 -0
- package/src/components/Icon/appearance/iconSize.ts +180 -0
- package/src/components/Icon/appearance/iconSpecial.ts +13 -0
- package/src/components/Icon/appearance/iconStyle.ts +17 -0
- package/src/components/Icon/appearance/iconSuccess.ts +13 -0
- package/src/components/Icon/appearance/iconSurface.ts +31 -0
- package/src/components/Icon/appearance/iconWarning.ts +13 -0
- package/src/components/Icon/index.ts +20 -4
- package/src/components/Icon/stories/IconDefault.stories.tsx +84 -0
- package/src/components/Icon/stories/IconDemo.stories.tsx +78 -0
- package/src/components/Icon/stories/IconDisabled.stories.tsx +36 -0
- package/src/components/Icon/stories/IconGallery.stories.tsx +77 -0
- package/src/components/Icon/stories/IconShape.stories.tsx +92 -0
- package/src/components/Icon/stories/IconSize12.stories.tsx +42 -0
- package/src/components/Icon/stories/IconSize14.stories.tsx +53 -0
- package/src/components/Icon/stories/IconSize16.stories.tsx +64 -0
- package/src/components/Icon/stories/IconSize20.stories.tsx +75 -0
- package/src/components/Icon/stories/IconSize24.stories.tsx +92 -0
- package/src/components/Icon/stories/IconSize32.stories.tsx +104 -0
- package/src/components/Icon/stories/IconSize40.stories.tsx +116 -0
- package/src/components/Icon/stories/IconSkeleton.stories.tsx +87 -0
- package/src/components/Icon/stories/IconStories.config.ts +124 -0
- package/src/components/Icon/stories/IconStyle.stories.tsx +75 -0
- package/src/components/Icon/stories/IconWithBadge.stories.tsx +114 -0
- package/src/components/Icon/styles/icon.ts +17 -3
- package/src/components/Icon/styles/iconBadge.ts +27 -0
- package/src/components/Icon/styles/iconShape.ts +13 -1
- package/src/components/Icon/styles/iconSize.ts +54 -57
- package/src/components/Image/stories/Image.stories.tsx +32 -7
- package/src/components/Input/Input.interface.ts +27 -14
- package/src/components/Input/Input.tsx +46 -92
- package/src/components/Input/stories/InputDefault.stories.tsx +14 -5
- package/src/components/Input/stories/InputDemo.stories.tsx +79 -0
- package/src/components/Input/stories/InputDisabled.stories.tsx +17 -6
- package/src/components/Input/stories/InputError.stories.tsx +19 -4
- package/src/components/Input/stories/InputGallery.stories.tsx +80 -0
- package/src/components/Input/stories/InputReadonly.stories.tsx +7 -3
- package/src/components/Input/stories/InputRequire.stories.tsx +19 -5
- package/src/components/Input/stories/InputShape.stories.tsx +22 -3
- package/src/components/Input/stories/InputSize.stories.tsx +20 -3
- package/src/components/Input/stories/InputStories.config.tsx +66 -0
- package/src/components/Input/stories/InputStyle.stories.tsx +20 -3
- package/src/components/Input/stories/InputSuccess.stories.tsx +19 -4
- package/src/components/InputNumber/InputNumber.interface.ts +30 -16
- package/src/components/InputNumber/InputNumber.tsx +61 -78
- package/src/components/InputNumber/appearance/inputNumberDefault.ts +1 -0
- package/src/components/InputNumber/appearance/inputNumberError.ts +1 -0
- package/src/components/InputNumber/appearance/inputNumberRequire.ts +1 -0
- package/src/components/InputNumber/appearance/inputNumberSuccess.ts +1 -0
- package/src/components/InputNumber/stories/InputNumberDemo.stories.tsx +90 -0
- package/src/components/InputNumber/stories/InputNumberGallery.stories.tsx +72 -0
- package/src/components/InputNumber/stories/InputNumberShape.stories.tsx +78 -0
- package/src/components/InputNumber/stories/InputNumberSize.stories.tsx +60 -0
- package/src/components/InputNumber/stories/InputNumberStories.config.tsx +61 -0
- package/src/components/InputNumber/stories/InputNumberValues.stories.tsx +29 -0
- package/src/components/InputPassword/InputPassword.interface.ts +38 -20
- package/src/components/InputPassword/InputPassword.tsx +65 -111
- package/src/components/InputPassword/appearance/inputPasswordDefault.ts +2 -0
- package/src/components/InputPassword/appearance/inputPasswordDisabled.ts +2 -0
- package/src/components/InputPassword/appearance/inputPasswordError.ts +2 -0
- package/src/components/InputPassword/appearance/inputPasswordRequire.ts +2 -0
- package/src/components/InputPassword/appearance/inputPasswordSuccess.ts +2 -0
- package/src/components/InputPassword/stories/InpputPasswordRequire.stories.tsx +45 -0
- package/src/components/InputPassword/stories/InputPassword.stories.tsx +22 -45
- package/src/components/InputPassword/stories/InputPasswordDefault.stories.tsx +50 -0
- package/src/components/InputPassword/stories/InputPasswordDemo.stories.tsx +89 -0
- package/src/components/InputPassword/stories/InputPasswordDisabled.stories.tsx +50 -0
- package/src/components/InputPassword/stories/InputPasswordError.stories.tsx +45 -0
- package/src/components/InputPassword/stories/InputPasswordGallery.stories.tsx +109 -0
- package/src/components/InputPassword/stories/InputPasswordShape.stories.tsx +71 -0
- package/src/components/InputPassword/stories/InputPasswordSize.stories.tsx +57 -0
- package/src/components/InputPassword/stories/InputPasswordStories.config.tsx +65 -0
- package/src/components/InputPassword/stories/InputPasswordStyle.stories.tsx +57 -0
- package/src/components/InputPassword/stories/InputPasswordSuccess.stories.tsx +45 -0
- package/src/components/InputPassword/stories/InputPasswordType.stories.tsx +26 -0
- package/src/components/InputPassword/stories/InputPasswordValue.stories.tsx +38 -0
- package/src/components/Label/Label.appearance.ts +14 -0
- package/src/components/Label/Label.constants.ts +7 -0
- package/src/components/Label/Label.interface.ts +57 -5
- package/src/components/Label/Label.tsx +100 -72
- package/src/components/Label/appearance/labelAccent.ts +21 -0
- package/src/components/Label/appearance/labelDanger.ts +10 -0
- package/src/components/Label/appearance/labelDisabled.ts +13 -0
- package/src/components/Label/appearance/labelError.ts +20 -0
- package/src/components/Label/appearance/labelExtra.ts +12 -2
- package/src/components/Label/appearance/labelGradient.ts +5 -1
- package/src/components/Label/appearance/labelInfo.ts +20 -0
- package/src/components/Label/appearance/labelSize.ts +56 -7
- package/src/components/Label/appearance/labelSpecial.ts +20 -0
- package/src/components/Label/appearance/labelStyle.ts +17 -0
- package/src/components/Label/appearance/labelSuccess.ts +20 -0
- package/src/components/Label/appearance/labelSurface.ts +11 -1
- package/src/components/Label/appearance/labelWarning.ts +20 -0
- package/src/components/Label/stories/LabelDemo.stories.tsx +76 -0
- package/src/components/Label/stories/LabelGallery.stories.tsx +113 -0
- package/src/components/Label/stories/LabelIconAfter.stories.tsx +75 -0
- package/src/components/Label/stories/LabelIconBefore.stories.tsx +75 -0
- package/src/components/Label/stories/LabelIcons.stories.tsx +81 -0
- package/src/components/Label/stories/LabelShape.stories.tsx +68 -6
- package/src/components/Label/stories/LabelSize.stories.tsx +50 -2
- package/src/components/Label/stories/LabelSkeleton.stories.tsx +90 -0
- package/src/components/Label/stories/LabelStories.config.ts +123 -0
- package/src/components/Label/stories/LabelStyle.stories.tsx +78 -0
- package/src/components/Label/stories/LabelText.stories.tsx +46 -27
- package/src/components/Label/styles/label.ts +6 -0
- package/src/components/Link/Link.interface.ts +12 -5
- package/src/components/Link/Link.tsx +23 -42
- package/src/components/Link/stories/Link.stories.tsx +8 -6
- package/src/components/Link/stories/LinkDefault.stories.tsx +34 -0
- package/src/components/Link/stories/LinkDemo.stories.tsx +51 -0
- package/src/components/Link/stories/LinkGallery.stories.tsx +40 -0
- package/src/components/Link/stories/LinkStories.config.ts +36 -0
- package/src/components/List/List.interface.ts +3 -2
- package/src/components/List/List.tsx +17 -48
- package/src/components/List/__mock__/index.ts +18 -0
- package/src/components/List/stories/List.stories.tsx +19 -32
- package/src/components/List/stories/ListItem.stories.tsx +30 -0
- package/src/components/List/stories/ListSize.stories.tsx +39 -0
- package/src/components/Loader/Loader.interface.ts +15 -2
- package/src/components/Loader/Loader.tsx +27 -56
- package/src/components/Loader/stories/LoaderCircular.stories.tsx +39 -0
- package/src/components/Loader/stories/LoaderDemo.stories.tsx +74 -0
- package/src/components/Loader/stories/LoaderDot.stories.tsx +39 -0
- package/src/components/Loader/stories/LoaderGallery.stories.tsx +74 -0
- package/src/components/Loader/stories/LoaderSize.stories.tsx +19 -6
- package/src/components/Loader/stories/LoaderStories.config.ts +83 -0
- package/src/components/Loader/stories/LoaderStyle.stories.tsx +19 -3
- package/src/components/Loader/stories/LoaderText.stories.tsx +26 -14
- package/src/components/Logo/stories/Logo.stories.tsx +8 -16
- package/src/components/Logo/stories/LogoSize.stories.tsx +43 -0
- package/src/components/MenuItem/MenuItem.interface.ts +5 -2
- package/src/components/MenuItem/MenuItem.tsx +56 -79
- package/src/components/MenuItem/appearance/menuItemAccent.ts +6 -0
- package/src/components/MenuItem/appearance/menuItemError.ts +4 -0
- package/src/components/MenuItem/appearance/menuItemSurface.ts +6 -0
- package/src/components/MenuItem/stories/MenuItemDefault.stories.tsx +53 -0
- package/src/components/MenuItem/stories/MenuItemIcon.stories.tsx +54 -0
- package/src/components/MenuItem/stories/MenuItemIconMuted.stories.tsx +51 -0
- package/src/components/MenuItem/stories/MenuItemMuted.stories.tsx +53 -0
- package/src/components/MenuItem/stories/MenuItemSize.stories.tsx +87 -0
- package/src/components/MenuItem/stories/MenuItemStyle.stories.tsx +62 -0
- package/src/components/Modal/stories/ModalDemo.stories.tsx +30 -0
- package/src/components/Overlay/Overlay.tsx +12 -13
- package/src/components/Overlay/stories/Overlay.stories.tsx +28 -12
- package/src/components/Pagination/Pagination.interface.ts +2 -1
- package/src/components/Pagination/Pagination.tsx +27 -37
- package/src/components/Pagination/stories/PaginationDefault.stories.tsx +41 -0
- package/src/components/Pagination/stories/PaginationDot.stories.tsx +41 -0
- package/src/components/Pagination/stories/PaginationNumber.stories.tsx +32 -0
- package/src/components/Pagination/stories/PaginationSize.stories.tsx +59 -0
- package/src/components/Pressable/Pressable.appearance.ts +30 -0
- package/src/components/Pressable/Pressable.interface.ts +75 -0
- package/src/components/Pressable/Pressable.styles.ts +7 -0
- package/src/components/Pressable/Pressable.tsx +110 -0
- package/src/components/Pressable/appearance/pressableAccent.ts +18 -0
- package/src/components/Pressable/appearance/pressableDanger.ts +12 -0
- package/src/components/Pressable/appearance/pressableDisabled.ts +12 -0
- package/src/components/Pressable/appearance/pressableError.ts +12 -0
- package/src/components/Pressable/appearance/pressableExtra.ts +12 -0
- package/src/components/Pressable/appearance/pressableInfo.ts +11 -0
- package/src/components/Pressable/appearance/pressableShape.ts +24 -0
- package/src/components/Pressable/appearance/pressableSpecial.ts +12 -0
- package/src/components/Pressable/appearance/pressableStyle.ts +17 -0
- package/src/components/Pressable/appearance/pressableSuccess.ts +12 -0
- package/src/components/Pressable/appearance/pressableSurface.ts +27 -0
- package/src/components/Pressable/appearance/pressableWarning.ts +12 -0
- package/src/components/Pressable/index.ts +22 -0
- package/src/components/Pressable/stories/PressableDefault.stories.tsx +45 -0
- package/src/components/Pressable/stories/PressableDemo.stories.tsx +66 -0
- package/src/components/Pressable/stories/PressableGallery.stories.tsx +68 -0
- package/src/components/Pressable/stories/PressableShape.stories.tsx +57 -0
- package/src/components/Pressable/stories/PressableStories.config.ts +62 -0
- package/src/components/Pressable/stories/PressableStyle.stories.tsx +74 -0
- package/src/components/Pressable/styles/pressable.ts +9 -0
- package/src/components/Radio/Radio.interface.ts +29 -16
- package/src/components/Radio/Radio.tsx +42 -78
- package/src/components/Radio/stories/RadioDefault.stories.tsx +13 -4
- package/src/components/Radio/stories/RadioDemo.stories.tsx +76 -0
- package/src/components/Radio/stories/RadioDisabled.stories.tsx +1 -1
- package/src/components/Radio/stories/RadioError.stories.tsx +1 -1
- package/src/components/Radio/stories/RadioGallery.stories.tsx +116 -0
- package/src/components/Radio/stories/RadioRequire.stories.tsx +1 -1
- package/src/components/Radio/stories/RadioSize.stories.tsx +1 -1
- package/src/components/Radio/stories/RadioState.stories.tsx +35 -0
- package/src/components/Radio/stories/RadioStories.config.ts +45 -0
- package/src/components/Radio/stories/RadioStyle.stories.tsx +1 -1
- package/src/components/Radio/stories/RadioSuccess.stories.tsx +1 -1
- package/src/components/RangeSlider/RangeSlider.helpers.ts +37 -0
- package/src/components/RangeSlider/RangeSlider.tsx +27 -163
- package/src/components/RangeSlider/RangeSlider.web.tsx +3 -0
- package/src/components/RangeSlider/RangeSliderCustom.tsx +199 -0
- package/src/components/RangeSlider/stories/RangeSliderDisabled.stories.tsx +32 -0
- package/src/components/RangeSlider/styles/rangeSlider.ts +4 -0
- package/src/components/Response/stories/ResponseConfirm.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseError.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseFail.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseNothingFound.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseRefresh.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseSuccess.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseUnableLoadData.stories.tsx +75 -0
- package/src/components/Response/stories/ResponseWarning.stories.tsx +85 -0
- package/src/components/Scrollbar/stories/Scrollbar.stories.tsx +22 -24
- package/src/components/Search/Search.appearance.ts +22 -0
- package/src/components/Search/Search.interface.ts +96 -6
- package/src/components/Search/Search.styles.ts +7 -1
- package/src/components/Search/Search.tsx +125 -34
- package/src/components/Search/appearance/searchDefault.ts +22 -0
- package/src/components/Search/appearance/searchDisabled.ts +14 -0
- package/src/components/Search/appearance/searchError.ts +14 -0
- package/src/components/Search/appearance/searchRequire.ts +14 -0
- package/src/components/Search/appearance/searchShape.ts +24 -0
- package/src/components/Search/appearance/searchSize.ts +62 -0
- package/src/components/Search/appearance/searchStyle.ts +17 -0
- package/src/components/Search/appearance/searchSuccess.ts +13 -0
- package/src/components/Search/index.ts +17 -4
- package/src/components/Search/stories/SearchInputClear.stories.tsx +36 -0
- package/src/components/Search/stories/SearchInputDefault.stories.tsx +67 -0
- package/src/components/Search/stories/SearchInputDemo.stories.tsx +126 -0
- package/src/components/Search/stories/SearchInputDisabled.stories.tsx +73 -0
- package/src/components/Search/stories/SearchInputError.stories.tsx +65 -0
- package/src/components/Search/stories/SearchInputGallery.stories.tsx +101 -0
- package/src/components/Search/stories/SearchInputRequire.stories.tsx +65 -0
- package/src/components/Search/stories/SearchInputShape.stories.tsx +72 -0
- package/src/components/Search/stories/SearchInputSize.stories.tsx +71 -0
- package/src/components/Search/stories/SearchInputStyle.stories.tsx +53 -0
- package/src/components/Search/stories/SearchInputSuccess.stories.tsx +65 -0
- package/src/components/Search/stories/SearchStories.config.ts +50 -0
- package/src/components/Search/styles/search.ts +28 -12
- package/src/components/Search/styles/searchShape.ts +34 -0
- package/src/components/Search/styles/searchSize.ts +48 -0
- package/src/components/Segmented/Segmented.interface.ts +10 -0
- package/src/components/Segmented/Segmented.tsx +9 -4
- package/src/components/Segmented/appearance/segmentedDefault.ts +4 -0
- package/src/components/Segmented/appearance/segmentedDisabled.ts +2 -0
- package/src/components/Segmented/appearance/segmentedError.ts +2 -0
- package/src/components/Segmented/appearance/segmentedRequire.ts +1 -0
- package/src/components/Segmented/appearance/segmentedSuccess.ts +1 -0
- package/src/components/Segmented/stories/SegmenetedIcon.stories.tsx +45 -0
- package/src/components/Segmented/stories/SegmentedDemo.stories.tsx +81 -0
- package/src/components/Segmented/stories/SegmentedDisabled.stories.tsx +1 -1
- package/src/components/Segmented/stories/SegmentedGallery.stories.tsx +89 -0
- package/src/components/Segmented/stories/SegmentedLabel.stories.tsx +1 -1
- package/src/components/Segmented/stories/SegmentedLabelIcon.stories.tsx +1 -1
- package/src/components/Segmented/stories/SegmentedShape.stories.tsx +1 -1
- package/src/components/Segmented/stories/SegmentedSize.stories.tsx +1 -1
- package/src/components/Segmented/stories/SegmentedStories.config.tsx +49 -1
- package/src/components/Segmented/stories/SegmentedStyle.stories.tsx +1 -1
- package/src/components/Select/Select.interface.ts +23 -2
- package/src/components/Select/Select.tsx +91 -63
- package/src/components/Select/appearance/selectDefault.ts +2 -0
- package/src/components/Select/appearance/selectDisabled.ts +3 -0
- package/src/components/Select/appearance/selectError.ts +2 -0
- package/src/components/Select/appearance/selectRequire.ts +2 -0
- package/src/components/Select/appearance/selectShape.ts +4 -4
- package/src/components/Select/appearance/selectSuccess.ts +2 -0
- package/src/components/Select/index.ts +2 -0
- package/src/components/Select/stories/SelectDefault.stories.tsx +110 -0
- package/src/components/Select/stories/SelectDemo.stories.tsx +81 -0
- package/src/components/Select/stories/SelectDisabled.stories.tsx +71 -0
- package/src/components/Select/stories/SelectError.stories.tsx +70 -0
- package/src/components/Select/stories/SelectGallery.stories.tsx +97 -0
- package/src/components/Select/stories/SelectRequire.stories.tsx +70 -0
- package/src/components/Select/stories/SelectShape.stories.tsx +69 -0
- package/src/components/Select/stories/SelectSize.stories.tsx +61 -0
- package/src/components/Select/stories/SelectStories.config.ts +88 -0
- package/src/components/Select/stories/SelectStyle.stories.tsx +60 -0
- package/src/components/Select/stories/SelectSuccess.stories.tsx +70 -0
- package/src/components/Select/stories/__mock__/index.ts +52 -0
- package/src/components/Select/styles/select.ts +21 -0
- package/src/components/Switch/Switch.constants.ts +4 -0
- package/src/components/Switch/Switch.helpers.ts +102 -0
- package/src/components/Switch/Switch.interface.ts +27 -11
- package/src/components/Switch/Switch.tsx +97 -71
- package/src/components/{Segmented/stories/SegmentedIcon.stories.tsx → Switch/stories/Switch.stories.tsx} +18 -12
- package/src/components/Switch/stories/SwitchDefault.stories.tsx +6 -5
- package/src/components/Switch/stories/SwitchDemo.stories.tsx +81 -0
- package/src/components/Switch/stories/SwitchDisabled.stories.tsx +10 -1
- package/src/components/Switch/stories/SwitchError.stories.tsx +5 -5
- package/src/components/Switch/stories/SwitchGallery.stories.tsx +102 -0
- package/src/components/Switch/stories/SwitchRequire.stories.tsx +5 -5
- package/src/components/Switch/stories/SwitchSize.stories.tsx +5 -4
- package/src/components/Switch/stories/SwitchStories.config.tsx +59 -21
- package/src/components/Switch/stories/SwitchSuccess.stories.tsx +5 -5
- package/src/components/Switch/stories/SwitchTitleDescSwitch.stories.tsx +7 -5
- package/src/components/Switch/stories/SwitchTitleSwitch.stories.tsx +7 -5
- package/src/components/Switch/styles/switch.ts +2 -6
- package/src/components/Tab/stories/TabDefault.stories.tsx +34 -0
- package/src/components/Tab/stories/TabDemo.stories.tsx +27 -0
- package/src/components/Tab/stories/TabSize.stories.tsx +80 -0
- package/src/components/Tab/stories/TabStories.config.ts +12 -0
- package/src/components/Text/stories/TextDemo.stories.tsx +30 -0
- package/src/components/Text/stories/TextSize.stories.tsx +88 -0
- package/src/components/Textarea/Textarea.interface.ts +17 -16
- package/src/components/Textarea/Textarea.tsx +47 -90
- package/src/components/Textarea/stories/Textarea.stories.tsx +14 -46
- package/src/components/Textarea/stories/TextareaDefault.stories.tsx +73 -0
- package/src/components/Textarea/stories/TextareaDisabled.stories.tsx +73 -0
- package/src/components/Textarea/stories/TextareaError.stories.tsx +72 -0
- package/src/components/Textarea/stories/TextareaRequire.stories.tsx +72 -0
- package/src/components/Textarea/stories/TextareaShape.stories.tsx +76 -0
- package/src/components/Textarea/stories/TextareaSize.stories.tsx +57 -0
- package/src/components/Textarea/stories/TextareaStyle.stories.tsx +57 -0
- package/src/components/Textarea/stories/TextareaSuccess.stories.tsx +72 -0
- package/src/components/Textarea/stories/TextareaValue.stories.tsx +43 -0
- package/src/components/Tile/Tile.interface.ts +19 -2
- package/src/components/Tile/Tile.tsx +46 -82
- package/src/components/Tile/appearance/tileSurface.ts +8 -4
- package/src/components/Tile/stories/TileBadge.stories.tsx +1 -1
- package/src/components/Tile/stories/TileDemo.stories.tsx +77 -0
- package/src/components/Tile/stories/TileGallery.stories.tsx +108 -0
- package/src/components/Tile/stories/TileIcon.stories.tsx +1 -1
- package/src/components/Tile/stories/TileShape.stories.tsx +1 -1
- package/src/components/Tile/stories/TileSize.stories.tsx +1 -1
- package/src/components/Tile/stories/TileStories.config.ts +30 -0
- package/src/components/Tile/stories/TileStyle.stories.tsx +20 -6
- package/src/components/Tile/stories/TileSwap.stories.tsx +5 -11
- package/src/components/Title/stories/TitleSize.stories.tsx +77 -0
- package/src/components/Tooltip/Tooltip.interface.ts +17 -2
- package/src/components/Tooltip/Tooltip.tsx +26 -29
- package/src/components/Tooltip/appearance/tooltipShape.ts +4 -4
- package/src/components/Tooltip/stories/TooltipAppearance.stories.tsx +64 -0
- package/src/components/Tooltip/stories/TooltipCustom.stories.tsx +31 -0
- package/src/components/Tooltip/stories/TooltipDemo.stories.tsx +77 -0
- package/src/components/Tooltip/stories/TooltipGallery.stories.tsx +85 -0
- package/src/components/Tooltip/stories/TooltipShape.stories.tsx +73 -0
- package/src/components/Tooltip/stories/TooltipSize.stories.tsx +46 -0
- package/src/components/Tooltip/stories/TooltipStories.config.ts +37 -0
- package/src/components/Tooltip/stories/TooltipStyle.stories.tsx +55 -0
- package/src/components/Warning/Warning.constants.ts +11 -0
- package/src/components/Warning/Warning.helpers.ts +62 -0
- package/src/components/Warning/Warning.interface.ts +13 -1
- package/src/components/Warning/Warning.tsx +16 -5
- package/src/components/Warning/WarningSkeleton.tsx +32 -0
- package/src/components/Warning/WarningSkeleton.web.tsx +56 -0
- package/src/components/Warning/appearance/warningAccent.ts +4 -0
- package/src/components/Warning/appearance/warningError.ts +4 -0
- package/src/components/Warning/appearance/warningInfo.ts +6 -0
- package/src/components/Warning/appearance/warningSuccess.ts +2 -0
- package/src/components/Warning/appearance/warningWarning.ts +6 -0
- package/src/components/Warning/stories/WarningDefault.stories.tsx +24 -7
- package/src/components/Warning/stories/WarningMuted.stories.tsx +22 -2
- package/src/components/Warning/stories/WarningShape.stories.tsx +36 -2
- package/src/components/Warning/stories/WarningSize.stories.tsx +12 -7
- package/src/components/Warning/stories/WarningSkeleton.stories.tsx +30 -0
- package/src/components/Warning/stories/WarningStyle.stories.tsx +22 -2
- package/src/components/Warning/styles/warning.ts +15 -0
- package/src/index.tsx +51 -5
- package/src/storybook/createAppearanceTierStories/createAppearanceTierStories.interface.ts +21 -0
- package/src/storybook/createAppearanceTierStories/createAppearanceTierStories.ts +63 -0
- package/src/storybook/createAppearanceTierStories/index.ts +2 -0
- package/src/storybook/createComponentGallery/createComponentGallery.interface.ts +23 -0
- package/src/storybook/createComponentGallery/createComponentGallery.tsx +134 -0
- package/src/storybook/createComponentGallery/index.ts +25 -0
- package/src/storybook/index.ts +46 -0
- package/src/storybook/renderAppearanceTierRow/index.ts +6 -0
- package/src/storybook/renderAppearanceTierRow/renderAppearanceTierRow.interface.ts +34 -0
- package/src/storybook/renderAppearanceTierRow/renderAppearanceTierRow.tsx +90 -0
- package/src/styles/direction/index.ts +11 -4
- package/src/styles/width/index.ts +6 -2
- package/tsconfig.json +3 -1
- package/src/components/AvatarStack/stories/AvatarStack.stories.tsx +0 -56
- package/src/components/Badge/stories/BadgeDefault.stories.tsx +0 -39
- package/src/components/Badge/stories/BadgeStatus.stories.tsx +0 -23
- package/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx +0 -35
- package/src/components/Cell/stories/Cell.stories.tsx +0 -35
- package/src/components/Checkmark/stories/Checkmark.stories.tsx +0 -22
- package/src/components/Code/stories/Code.stories.tsx +0 -41
- package/src/components/ColorInput/stories/ColorInput.stories.tsx +0 -36
- package/src/components/Dropdown/stories/Dropdown.stories.tsx +0 -62
- package/src/components/Icon/stories/Icon.stories.tsx +0 -45
- package/src/components/InputNumber/stories/InputNumber.stories.tsx +0 -93
- package/src/components/Label/Label.web.tsx +0 -124
- package/src/components/Loader/stories/LoaderDefault.stories.tsx +0 -69
- package/src/components/Loader/stories/LoaderShape.stories.tsx +0 -51
- package/src/components/MenuItem/stories/MenuItem.stories.tsx +0 -52
- package/src/components/Modal/stories/Modal.stories.tsx +0 -47
- package/src/components/Pagination/stories/Pagination.stories.tsx +0 -37
- package/src/components/RangeSlider/stories/RangeSlider.stories.tsx +0 -55
- package/src/components/Response/stories/Response.stories.tsx +0 -22
- package/src/components/Search/stories/Search.stories.tsx +0 -24
- package/src/components/Select/stories/Select.stories.tsx +0 -67
- package/src/components/Tab/stories/Tab.stories.tsx +0 -67
- package/src/components/Text/stories/Text.stories.tsx +0 -84
- package/src/components/Tile/stories/TileDefault.stories.tsx +0 -40
- package/src/components/Title/stories/Title.stories.tsx +0 -68
- package/src/components/Tooltip/stories/Tooltip.stories.tsx +0 -61
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Text } from '../../Text'
|
|
4
|
+
import { Group } from '../Group'
|
|
5
|
+
import type { GroupProps } from '../Group.interface'
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Layout / Group / AlignItems',
|
|
9
|
+
component: Group,
|
|
10
|
+
args: {
|
|
11
|
+
direction: 'vertical',
|
|
12
|
+
fill: 'surfacePrimary',
|
|
13
|
+
borderColor: 'surfaceBorderPrimary',
|
|
14
|
+
style: { width: 500 },
|
|
15
|
+
},
|
|
16
|
+
render: ({ ...args }) => (
|
|
17
|
+
<Group
|
|
18
|
+
width={args.width}
|
|
19
|
+
direction={args.direction}
|
|
20
|
+
alignItems={args.alignItems}
|
|
21
|
+
fill={args.fill}
|
|
22
|
+
borderColor={args.borderColor}
|
|
23
|
+
style={args.style}
|
|
24
|
+
>
|
|
25
|
+
<Group fill="accentPrimary">
|
|
26
|
+
<Text size="xl" textColor="white">
|
|
27
|
+
1
|
|
28
|
+
</Text>
|
|
29
|
+
</Group>
|
|
30
|
+
<Group fill="specialPrimary">
|
|
31
|
+
<Text size="xl" textColor="white">
|
|
32
|
+
2
|
|
33
|
+
</Text>
|
|
34
|
+
</Group>
|
|
35
|
+
<Group fill="extraPrimary">
|
|
36
|
+
<Text size="xl" textColor="white">
|
|
37
|
+
3
|
|
38
|
+
</Text>
|
|
39
|
+
</Group>
|
|
40
|
+
<Group fill="infoPrimary">
|
|
41
|
+
<Text size="xl" textColor="white">
|
|
42
|
+
4
|
|
43
|
+
</Text>
|
|
44
|
+
</Group>
|
|
45
|
+
</Group>
|
|
46
|
+
),
|
|
47
|
+
} satisfies Meta<typeof Group>
|
|
48
|
+
export default meta
|
|
49
|
+
|
|
50
|
+
type Story = StoryObj<typeof meta>
|
|
51
|
+
|
|
52
|
+
export const Default: Story = {
|
|
53
|
+
render: (args: GroupProps) => {
|
|
54
|
+
return <Group {...args} />
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const Stretch: Story = {
|
|
59
|
+
args: {
|
|
60
|
+
alignItems: 'stretch',
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const FlexStart: Story = {
|
|
65
|
+
args: {
|
|
66
|
+
alignItems: 'flex-start',
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const FlexEnd: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
alignItems: 'flex-end',
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const Center: Story = {
|
|
77
|
+
args: {
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const Baseline: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
alignItems: 'baseline',
|
|
85
|
+
},
|
|
86
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Text } from '../../Text'
|
|
4
|
+
import { Group } from '../Group'
|
|
5
|
+
import type { GroupProps } from '../Group.interface'
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Layout / Group / Direction',
|
|
9
|
+
component: Group,
|
|
10
|
+
args: {
|
|
11
|
+
fill: 'surfacePrimary',
|
|
12
|
+
borderColor: 'surfaceBorderPrimary',
|
|
13
|
+
style: { width: 500 },
|
|
14
|
+
},
|
|
15
|
+
render: ({ ...args }) => (
|
|
16
|
+
<Group
|
|
17
|
+
width={args.width}
|
|
18
|
+
direction={args.direction}
|
|
19
|
+
fill={args.fill}
|
|
20
|
+
borderColor={args.borderColor}
|
|
21
|
+
style={args.style}
|
|
22
|
+
>
|
|
23
|
+
<Group fill="accentPrimary">
|
|
24
|
+
<Text size="xl" textColor="white">
|
|
25
|
+
1
|
|
26
|
+
</Text>
|
|
27
|
+
</Group>
|
|
28
|
+
<Group fill="specialPrimary">
|
|
29
|
+
<Text size="xl" textColor="white">
|
|
30
|
+
2
|
|
31
|
+
</Text>
|
|
32
|
+
</Group>
|
|
33
|
+
<Group fill="extraPrimary">
|
|
34
|
+
<Text size="xl" textColor="white">
|
|
35
|
+
3
|
|
36
|
+
</Text>
|
|
37
|
+
</Group>
|
|
38
|
+
<Group fill="infoPrimary">
|
|
39
|
+
<Text size="xl" textColor="white">
|
|
40
|
+
4
|
|
41
|
+
</Text>
|
|
42
|
+
</Group>
|
|
43
|
+
</Group>
|
|
44
|
+
),
|
|
45
|
+
} satisfies Meta<typeof Group>
|
|
46
|
+
export default meta
|
|
47
|
+
|
|
48
|
+
type Story = StoryObj<typeof meta>
|
|
49
|
+
|
|
50
|
+
export const Default: Story = {
|
|
51
|
+
render: (args: GroupProps) => {
|
|
52
|
+
return <Group {...args} />
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const Row: Story = {
|
|
57
|
+
args: {
|
|
58
|
+
direction: 'row',
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const RowReverse: Story = {
|
|
63
|
+
args: {
|
|
64
|
+
direction: 'row-reverse',
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Column: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
direction: 'column',
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const ColumnReverse: Story = {
|
|
75
|
+
args: {
|
|
76
|
+
direction: 'column-reverse',
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const Horizontal: Story = {
|
|
81
|
+
args: {
|
|
82
|
+
direction: 'horizontal',
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const Vertical: Story = {
|
|
87
|
+
args: {
|
|
88
|
+
direction: 'vertical',
|
|
89
|
+
},
|
|
90
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Text } from '../../Text'
|
|
4
|
+
import { Group } from '../Group'
|
|
5
|
+
import type { GroupProps } from '../Group.interface'
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Layout / Group / JustifyContent',
|
|
9
|
+
component: Group,
|
|
10
|
+
args: {
|
|
11
|
+
direction: 'horizontal',
|
|
12
|
+
fill: 'surfacePrimary',
|
|
13
|
+
borderColor: 'surfaceBorderPrimary',
|
|
14
|
+
style: { width: 500 },
|
|
15
|
+
},
|
|
16
|
+
render: ({ ...args }) => (
|
|
17
|
+
<Group
|
|
18
|
+
width={args.width}
|
|
19
|
+
direction={args.direction}
|
|
20
|
+
justifyContent={args.justifyContent}
|
|
21
|
+
fill={args.fill}
|
|
22
|
+
borderColor={args.borderColor}
|
|
23
|
+
style={args.style}
|
|
24
|
+
>
|
|
25
|
+
<Group fill="accentPrimary">
|
|
26
|
+
<Text size="xl" textColor="white">
|
|
27
|
+
1
|
|
28
|
+
</Text>
|
|
29
|
+
</Group>
|
|
30
|
+
<Group fill="specialPrimary">
|
|
31
|
+
<Text size="xl" textColor="white">
|
|
32
|
+
2
|
|
33
|
+
</Text>
|
|
34
|
+
</Group>
|
|
35
|
+
<Group fill="extraPrimary">
|
|
36
|
+
<Text size="xl" textColor="white">
|
|
37
|
+
3
|
|
38
|
+
</Text>
|
|
39
|
+
</Group>
|
|
40
|
+
<Group fill="infoPrimary">
|
|
41
|
+
<Text size="xl" textColor="white">
|
|
42
|
+
4
|
|
43
|
+
</Text>
|
|
44
|
+
</Group>
|
|
45
|
+
</Group>
|
|
46
|
+
),
|
|
47
|
+
} satisfies Meta<typeof Group>
|
|
48
|
+
export default meta
|
|
49
|
+
|
|
50
|
+
type Story = StoryObj<typeof meta>
|
|
51
|
+
|
|
52
|
+
export const Default: Story = {
|
|
53
|
+
render: (args: GroupProps) => {
|
|
54
|
+
return <Group {...args} />
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const FlexStart: Story = {
|
|
59
|
+
args: {
|
|
60
|
+
justifyContent: 'flex-start',
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const FlexEnd: Story = {
|
|
65
|
+
args: {
|
|
66
|
+
justifyContent: 'flex-end',
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const Center: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
justifyContent: 'center',
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const SpaceBetween: Story = {
|
|
77
|
+
args: {
|
|
78
|
+
justifyContent: 'space-between',
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const SpaceAround: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
justifyContent: 'space-around',
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const SpaceEvenly: Story = {
|
|
89
|
+
args: {
|
|
90
|
+
justifyContent: 'space-evenly',
|
|
91
|
+
},
|
|
92
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Text } from '../../Text'
|
|
4
|
+
import { Group } from '../Group'
|
|
5
|
+
import type { GroupProps } from '../Group.interface'
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Layout / Group / Wrap',
|
|
9
|
+
component: Group,
|
|
10
|
+
args: {
|
|
11
|
+
direction: 'horizontal',
|
|
12
|
+
fill: 'surfacePrimary',
|
|
13
|
+
borderColor: 'surfaceBorderPrimary',
|
|
14
|
+
style: { width: 500 },
|
|
15
|
+
},
|
|
16
|
+
render: ({ ...args }) => (
|
|
17
|
+
<Group
|
|
18
|
+
width={args.width}
|
|
19
|
+
direction={args.direction}
|
|
20
|
+
fill={args.fill}
|
|
21
|
+
borderColor={args.borderColor}
|
|
22
|
+
style={args.style}
|
|
23
|
+
wrap={args.wrap}
|
|
24
|
+
>
|
|
25
|
+
<Group fill="accentPrimary">
|
|
26
|
+
<Text size="xl" textColor="white">
|
|
27
|
+
1
|
|
28
|
+
</Text>
|
|
29
|
+
</Group>
|
|
30
|
+
<Group fill="specialPrimary">
|
|
31
|
+
<Text size="xl" textColor="white">
|
|
32
|
+
2
|
|
33
|
+
</Text>
|
|
34
|
+
</Group>
|
|
35
|
+
<Group fill="extraPrimary">
|
|
36
|
+
<Text size="xl" textColor="white">
|
|
37
|
+
3
|
|
38
|
+
</Text>
|
|
39
|
+
</Group>
|
|
40
|
+
<Group fill="infoPrimary">
|
|
41
|
+
<Text size="xl" textColor="white">
|
|
42
|
+
4
|
|
43
|
+
</Text>
|
|
44
|
+
</Group>
|
|
45
|
+
</Group>
|
|
46
|
+
),
|
|
47
|
+
} satisfies Meta<typeof Group>
|
|
48
|
+
export default meta
|
|
49
|
+
|
|
50
|
+
type Story = StoryObj<typeof meta>
|
|
51
|
+
|
|
52
|
+
export const Default: Story = {
|
|
53
|
+
render: (args: GroupProps) => {
|
|
54
|
+
return <Group {...args} />
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const Nowrap: Story = {
|
|
59
|
+
args: {
|
|
60
|
+
wrap: 'nowrap',
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const Wrap: Story = {
|
|
65
|
+
args: {
|
|
66
|
+
wrap: 'wrap',
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const WrapReverse: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
wrap: 'wrap-reverse',
|
|
73
|
+
},
|
|
74
|
+
}
|
|
@@ -17,6 +17,8 @@ import type { IconProps } from '../Icon'
|
|
|
17
17
|
interface HeroTitleAppearanceProps {
|
|
18
18
|
direction?: DirectionProps
|
|
19
19
|
fill?: FillProps
|
|
20
|
+
iconAfterAppearance?: IconProps['appearance']
|
|
21
|
+
iconBeforeAppearance?: IconProps['appearance']
|
|
20
22
|
size?: TitleSizeProps
|
|
21
23
|
textAlign?: TextAlignProps
|
|
22
24
|
textColor?: TextColorProps
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { useMemo } from 'react'
|
|
2
1
|
import { Pressable, View } from 'react-native'
|
|
3
2
|
|
|
3
|
+
import {
|
|
4
|
+
useAppearanceConfig,
|
|
5
|
+
useDevicePropsGenerator,
|
|
6
|
+
} from '@itcase/ui-core/hooks'
|
|
7
|
+
|
|
4
8
|
import { tokens } from '../../styles/tokens'
|
|
5
9
|
import { Icon } from '../Icon'
|
|
6
10
|
import { Title } from '../Title'
|
|
@@ -19,14 +23,7 @@ heroTitleConfig.setAppearance(heroTitleAppearance)
|
|
|
19
23
|
|
|
20
24
|
function HeroTitle(props: HeroTitleProps) {
|
|
21
25
|
const {
|
|
22
|
-
appearance,
|
|
23
|
-
direction,
|
|
24
|
-
size,
|
|
25
|
-
fill,
|
|
26
26
|
text,
|
|
27
|
-
textAlign,
|
|
28
|
-
textColor,
|
|
29
|
-
textWeight,
|
|
30
27
|
iconAfter,
|
|
31
28
|
iconBefore,
|
|
32
29
|
style,
|
|
@@ -36,13 +33,22 @@ function HeroTitle(props: HeroTitleProps) {
|
|
|
36
33
|
children,
|
|
37
34
|
} = props
|
|
38
35
|
|
|
39
|
-
const appearanceConfig =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
const appearanceConfig = useAppearanceConfig(
|
|
37
|
+
props.appearance,
|
|
38
|
+
heroTitleConfig,
|
|
39
|
+
)
|
|
40
|
+
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig)
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
const {
|
|
43
|
+
direction,
|
|
44
|
+
size,
|
|
45
|
+
fill,
|
|
46
|
+
textAlign,
|
|
47
|
+
textColor,
|
|
48
|
+
textWeight,
|
|
49
|
+
iconAfterAppearance,
|
|
50
|
+
iconBeforeAppearance,
|
|
51
|
+
} = propsGenerator
|
|
46
52
|
|
|
47
53
|
const content = (
|
|
48
54
|
<View
|
|
@@ -53,17 +59,21 @@ function HeroTitle(props: HeroTitleProps) {
|
|
|
53
59
|
]}
|
|
54
60
|
>
|
|
55
61
|
{before}
|
|
56
|
-
{iconBefore &&
|
|
62
|
+
{iconBefore && (
|
|
63
|
+
<Icon appearance={iconBeforeAppearance} SVGIcon={iconBefore} />
|
|
64
|
+
)}
|
|
57
65
|
<Title
|
|
58
|
-
size={size ||
|
|
59
|
-
textAlign={textAlign
|
|
60
|
-
textColor={textColor
|
|
66
|
+
size={size || 'h1'}
|
|
67
|
+
textAlign={textAlign}
|
|
68
|
+
textColor={textColor}
|
|
61
69
|
style={style}
|
|
62
|
-
weight={textWeight
|
|
70
|
+
weight={textWeight}
|
|
63
71
|
>
|
|
64
72
|
{children || text}
|
|
65
73
|
</Title>
|
|
66
|
-
{iconAfter &&
|
|
74
|
+
{iconAfter && (
|
|
75
|
+
<Icon appearance={iconAfterAppearance} SVGIcon={iconAfter} />
|
|
76
|
+
)}
|
|
67
77
|
{after}
|
|
68
78
|
</View>
|
|
69
79
|
)
|
|
@@ -3,21 +3,33 @@ import type { HeroTitleAppearance } from '../HeroTitle.interface'
|
|
|
3
3
|
const heroTitleAppearanceSize = {
|
|
4
4
|
sizeH1: {
|
|
5
5
|
size: 'h1',
|
|
6
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
7
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
6
8
|
},
|
|
7
9
|
sizeH2: {
|
|
8
10
|
size: 'h2',
|
|
11
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
12
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
9
13
|
},
|
|
10
14
|
sizeH3: {
|
|
11
15
|
size: 'h3',
|
|
16
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
17
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
12
18
|
},
|
|
13
19
|
sizeH4: {
|
|
14
20
|
size: 'h4',
|
|
21
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
22
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
15
23
|
},
|
|
16
24
|
sizeH5: {
|
|
17
25
|
size: 'h5',
|
|
26
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
27
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
18
28
|
},
|
|
19
29
|
sizeH6: {
|
|
20
30
|
size: 'h6',
|
|
31
|
+
iconAfterAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
32
|
+
iconBeforeAppearance: 'surfacePrimary size24_24 ghost rounded',
|
|
21
33
|
},
|
|
22
34
|
} satisfies HeroTitleAppearance
|
|
23
35
|
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
2
|
|
|
3
3
|
import { HeroTitle } from '../HeroTitle'
|
|
4
|
+
import type { HeroTitleProps } from '../HeroTitle.interface'
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
title: '
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Typography / Hero Title',
|
|
7
8
|
component: HeroTitle,
|
|
8
9
|
args: {
|
|
9
|
-
appearance: '
|
|
10
|
-
|
|
10
|
+
appearance: 'sizeH3',
|
|
11
|
+
textColor: 'surfaceTextPrimary',
|
|
12
|
+
children: 'Hero Title',
|
|
11
13
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
parameters: {
|
|
15
|
+
layout: 'centered',
|
|
16
|
+
design: {
|
|
17
|
+
type: 'figma',
|
|
18
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=2555-2128',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<typeof HeroTitle>
|
|
22
|
+
export default meta
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
type Story = StoryObj<typeof meta>
|
|
17
25
|
|
|
18
|
-
export const
|
|
19
|
-
args: {
|
|
20
|
-
|
|
26
|
+
export const Default: Story = {
|
|
27
|
+
render: (args: HeroTitleProps) => {
|
|
28
|
+
return <HeroTitle {...args} />
|
|
21
29
|
},
|
|
22
30
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { icons40 } from '@itcase/icons-default'
|
|
4
|
+
|
|
5
|
+
import { HeroTitle } from '../HeroTitle'
|
|
6
|
+
import type { HeroTitleProps } from '../HeroTitle.interface'
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'Typography / Hero Title / Icon',
|
|
10
|
+
component: HeroTitle,
|
|
11
|
+
args: {
|
|
12
|
+
appearance: 'sizeH2',
|
|
13
|
+
children: 'Hero Title',
|
|
14
|
+
},
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: 'centered',
|
|
17
|
+
design: {
|
|
18
|
+
type: 'figma',
|
|
19
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=2555-2128',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
} satisfies Meta<typeof HeroTitle>
|
|
23
|
+
|
|
24
|
+
export default meta
|
|
25
|
+
|
|
26
|
+
type Story = StoryObj<typeof meta>
|
|
27
|
+
|
|
28
|
+
export const Before: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
iconBefore: icons40.Placeholder.Default,
|
|
31
|
+
iconBeforeAppearance: 'surfaceSecondary size40_40 ghost rounded',
|
|
32
|
+
},
|
|
33
|
+
render: (args: HeroTitleProps) => <HeroTitle {...args} />,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const After: Story = {
|
|
37
|
+
args: {
|
|
38
|
+
iconAfter: icons40.Placeholder.Default,
|
|
39
|
+
iconAfterAppearance: 'surfaceSecondary size40_40 ghost rounded',
|
|
40
|
+
},
|
|
41
|
+
render: (args: HeroTitleProps) => <HeroTitle {...args} />,
|
|
42
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { HeroTitle } from '../HeroTitle'
|
|
4
|
+
import type { HeroTitleProps } from '../HeroTitle.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Typography / Hero Title / Size',
|
|
8
|
+
component: HeroTitle,
|
|
9
|
+
args: {
|
|
10
|
+
textColor: 'surfaceTextPrimary',
|
|
11
|
+
children: 'Hero Title',
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: 'centered',
|
|
15
|
+
design: {
|
|
16
|
+
type: 'figma',
|
|
17
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=2555-2128',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
} satisfies Meta<typeof HeroTitle>
|
|
21
|
+
export default meta
|
|
22
|
+
|
|
23
|
+
type Story = StoryObj<typeof meta>
|
|
24
|
+
|
|
25
|
+
export const SizeH1: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
appearance: 'sizeH1',
|
|
28
|
+
},
|
|
29
|
+
render: (args: HeroTitleProps) => {
|
|
30
|
+
return <HeroTitle {...args} />
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const SizeH2: Story = {
|
|
35
|
+
args: {
|
|
36
|
+
appearance: 'sizeH2',
|
|
37
|
+
},
|
|
38
|
+
render: (args: HeroTitleProps) => {
|
|
39
|
+
return <HeroTitle {...args} />
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const SizeH3: Story = {
|
|
44
|
+
args: {
|
|
45
|
+
appearance: 'sizeH3',
|
|
46
|
+
},
|
|
47
|
+
render: (args: HeroTitleProps) => {
|
|
48
|
+
return <HeroTitle {...args} />
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const SizeH4: Story = {
|
|
53
|
+
args: {
|
|
54
|
+
appearance: 'sizeH4',
|
|
55
|
+
},
|
|
56
|
+
render: (args: HeroTitleProps) => {
|
|
57
|
+
return <HeroTitle {...args} />
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const SizeH5: Story = {
|
|
62
|
+
args: {
|
|
63
|
+
appearance: 'sizeH5',
|
|
64
|
+
},
|
|
65
|
+
render: (args: HeroTitleProps) => {
|
|
66
|
+
return <HeroTitle {...args} />
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export const SizeH6: Story = {
|
|
71
|
+
args: {
|
|
72
|
+
appearance: 'sizeH6',
|
|
73
|
+
},
|
|
74
|
+
render: (args: HeroTitleProps) => {
|
|
75
|
+
return <HeroTitle {...args} />
|
|
76
|
+
},
|
|
77
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { iconAppearanceAccent } from './appearance/iconAccent'
|
|
2
|
+
import { iconAppearanceDanger } from './appearance/iconDanger'
|
|
3
|
+
import { iconAppearanceDisabled } from './appearance/iconDisabled'
|
|
4
|
+
import { iconAppearanceError } from './appearance/iconError'
|
|
5
|
+
import { iconAppearanceExtra } from './appearance/iconExtra'
|
|
6
|
+
import { iconAppearanceInfo } from './appearance/iconInfo'
|
|
7
|
+
import { iconAppearanceShape } from './appearance/iconShape'
|
|
8
|
+
import { iconAppearanceSize } from './appearance/iconSize'
|
|
9
|
+
import { iconAppearanceSpecial } from './appearance/iconSpecial'
|
|
10
|
+
import { iconAppearanceStyle } from './appearance/iconStyle'
|
|
11
|
+
import { iconAppearanceSuccess } from './appearance/iconSuccess'
|
|
12
|
+
import { iconAppearanceSurface } from './appearance/iconSurface'
|
|
13
|
+
import { iconAppearanceWarning } from './appearance/iconWarning'
|
|
14
|
+
import type { IconAppearance } from './Icon.interface'
|
|
15
|
+
|
|
16
|
+
const iconAppearance = {
|
|
17
|
+
...iconAppearanceDisabled,
|
|
18
|
+
...iconAppearanceSize,
|
|
19
|
+
...iconAppearanceStyle,
|
|
20
|
+
...iconAppearanceAccent,
|
|
21
|
+
...iconAppearanceShape,
|
|
22
|
+
...iconAppearanceDanger,
|
|
23
|
+
...iconAppearanceError,
|
|
24
|
+
...iconAppearanceInfo,
|
|
25
|
+
...iconAppearanceSpecial,
|
|
26
|
+
...iconAppearanceExtra,
|
|
27
|
+
...iconAppearanceSuccess,
|
|
28
|
+
...iconAppearanceSurface,
|
|
29
|
+
...iconAppearanceWarning,
|
|
30
|
+
} satisfies IconAppearance
|
|
31
|
+
|
|
32
|
+
export { iconAppearance }
|