@itcase/ui-react-native 1.10.85 → 1.10.86
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 +31 -1
- 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 +45 -1
- 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 +44 -3
- package/src/components/Button/Button.styles.ts +2 -0
- package/src/components/Button/Button.tsx +64 -68
- 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 +22 -3
- 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 +25 -0
- 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 +22 -2
- package/src/components/Choice/Choice.tsx +104 -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 +73 -10
- package/src/components/Code/Code.styles.ts +8 -4
- package/src/components/Code/Code.tsx +110 -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 +16 -1
- 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 +3 -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.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 +5 -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 +15 -2
- package/src/components/Input/Input.tsx +51 -89
- 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 +17 -1
- package/src/components/InputNumber/InputNumber.tsx +65 -74
- 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 +20 -1
- package/src/components/InputPassword/InputPassword.tsx +71 -109
- 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 +54 -2
- package/src/components/Label/Label.tsx +100 -71
- 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 +6 -0
- package/src/components/Link/Link.tsx +26 -41
- package/src/components/Link/stories/Link.stories.tsx +7 -5
- 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.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 +13 -0
- package/src/components/Loader/Loader.tsx +38 -55
- 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 +2 -0
- 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 +22 -33
- 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 +15 -2
- 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 +118 -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 +21 -1
- 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 +18 -2
- package/src/components/Switch/Switch.tsx +110 -67
- 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 +3 -1
- package/src/components/Textarea/Textarea.tsx +54 -89
- 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 +16 -0
- 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 +2 -2
- package/src/components/Title/stories/TitleSize.stories.tsx +77 -0
- package/src/components/Tooltip/Tooltip.interface.ts +17 -1
- 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 +12 -0
- 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,75 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / Fail',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const IconTitleDesc: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitle: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
},
|
|
35
|
+
render: (args: ResponseProps) => {
|
|
36
|
+
return <Response {...args} />
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const IconDesc: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
text: 'Description',
|
|
43
|
+
},
|
|
44
|
+
render: (args: ResponseProps) => {
|
|
45
|
+
return <Response {...args} />
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const TitleDesc: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
title: 'Title',
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const Title: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
},
|
|
63
|
+
render: (args: ResponseProps) => {
|
|
64
|
+
return <Response {...args} />
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Desc: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
text: 'Description',
|
|
71
|
+
},
|
|
72
|
+
render: (args: ResponseProps) => {
|
|
73
|
+
return <Response {...args} />
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / NothingFound',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const IconTitleDesc: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitle: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
},
|
|
35
|
+
render: (args: ResponseProps) => {
|
|
36
|
+
return <Response {...args} />
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const IconDesc: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
text: 'Description',
|
|
43
|
+
},
|
|
44
|
+
render: (args: ResponseProps) => {
|
|
45
|
+
return <Response {...args} />
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const TitleDesc: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
title: 'Title',
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const Title: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
},
|
|
63
|
+
render: (args: ResponseProps) => {
|
|
64
|
+
return <Response {...args} />
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Desc: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
text: 'Description',
|
|
71
|
+
},
|
|
72
|
+
render: (args: ResponseProps) => {
|
|
73
|
+
return <Response {...args} />
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / Refresh',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const IconTitleDesc: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitle: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
},
|
|
35
|
+
render: (args: ResponseProps) => {
|
|
36
|
+
return <Response {...args} />
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const IconDesc: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
text: 'Description',
|
|
43
|
+
},
|
|
44
|
+
render: (args: ResponseProps) => {
|
|
45
|
+
return <Response {...args} />
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const TitleDesc: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
title: 'Title',
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const Title: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
},
|
|
63
|
+
render: (args: ResponseProps) => {
|
|
64
|
+
return <Response {...args} />
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Desc: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
text: 'Description',
|
|
71
|
+
},
|
|
72
|
+
render: (args: ResponseProps) => {
|
|
73
|
+
return <Response {...args} />
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / Success',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const IconTitleDesc: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitle: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
},
|
|
35
|
+
render: (args: ResponseProps) => {
|
|
36
|
+
return <Response {...args} />
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const IconDesc: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
text: 'Description',
|
|
43
|
+
},
|
|
44
|
+
render: (args: ResponseProps) => {
|
|
45
|
+
return <Response {...args} />
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const TitleDesc: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
title: 'Title',
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const Title: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
},
|
|
63
|
+
render: (args: ResponseProps) => {
|
|
64
|
+
return <Response {...args} />
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Desc: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
text: 'Description',
|
|
71
|
+
},
|
|
72
|
+
render: (args: ResponseProps) => {
|
|
73
|
+
return <Response {...args} />
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / UnableLoadData',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const IconTitleDesc: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitle: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
},
|
|
35
|
+
render: (args: ResponseProps) => {
|
|
36
|
+
return <Response {...args} />
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const IconDesc: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
text: 'Description',
|
|
43
|
+
},
|
|
44
|
+
render: (args: ResponseProps) => {
|
|
45
|
+
return <Response {...args} />
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const TitleDesc: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
title: 'Title',
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const Title: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
},
|
|
63
|
+
render: (args: ResponseProps) => {
|
|
64
|
+
return <Response {...args} />
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const Desc: Story = {
|
|
69
|
+
args: {
|
|
70
|
+
text: 'Description',
|
|
71
|
+
},
|
|
72
|
+
render: (args: ResponseProps) => {
|
|
73
|
+
return <Response {...args} />
|
|
74
|
+
},
|
|
75
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Response } from '../Response'
|
|
4
|
+
import type { ResponseProps } from '../Response.interface'
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Molecules / Response / Warning',
|
|
8
|
+
component: Response,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
design: {
|
|
12
|
+
type: 'figma',
|
|
13
|
+
url: 'https://www.figma.com/design/FcCWZlLa17BPr0zh3Wq9DO/ITCase---Molecules?node-id=33-35525',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
} satisfies Meta<typeof Response>
|
|
17
|
+
export default meta
|
|
18
|
+
|
|
19
|
+
type Story = StoryObj<typeof meta>
|
|
20
|
+
|
|
21
|
+
export const Default: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
title: 'Title',
|
|
24
|
+
text: 'Description',
|
|
25
|
+
},
|
|
26
|
+
render: (args: ResponseProps) => {
|
|
27
|
+
return <Response {...args} />
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const IconTitleDesc: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
title: 'Title',
|
|
34
|
+
text: 'Description',
|
|
35
|
+
},
|
|
36
|
+
render: (args: ResponseProps) => {
|
|
37
|
+
return <Response {...args} />
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const IconTitle: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
title: 'Title',
|
|
44
|
+
},
|
|
45
|
+
render: (args: ResponseProps) => {
|
|
46
|
+
return <Response {...args} />
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const IconDesc: Story = {
|
|
51
|
+
args: {
|
|
52
|
+
text: 'Description',
|
|
53
|
+
},
|
|
54
|
+
render: (args: ResponseProps) => {
|
|
55
|
+
return <Response {...args} />
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const TitleDesc: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
title: 'Title',
|
|
62
|
+
text: 'Description',
|
|
63
|
+
},
|
|
64
|
+
render: (args: ResponseProps) => {
|
|
65
|
+
return <Response {...args} />
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const Title: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
title: 'Title',
|
|
72
|
+
},
|
|
73
|
+
render: (args: ResponseProps) => {
|
|
74
|
+
return <Response {...args} />
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const Desc: Story = {
|
|
79
|
+
args: {
|
|
80
|
+
text: 'Description',
|
|
81
|
+
},
|
|
82
|
+
render: (args: ResponseProps) => {
|
|
83
|
+
return <Response {...args} />
|
|
84
|
+
},
|
|
85
|
+
}
|
|
@@ -4,8 +4,9 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|
|
4
4
|
|
|
5
5
|
import { Text } from '../../Text'
|
|
6
6
|
import { Scrollbar } from '../Scrollbar'
|
|
7
|
+
import type { ScrollbarProps } from '../Scrollbar.interface'
|
|
7
8
|
|
|
8
|
-
const
|
|
9
|
+
const scrollbarMock = (
|
|
9
10
|
<Fragment>
|
|
10
11
|
<Text>Line 1 — scroll me</Text>
|
|
11
12
|
<Text>Line 2</Text>
|
|
@@ -22,40 +23,37 @@ const longContent = (
|
|
|
22
23
|
</Fragment>
|
|
23
24
|
)
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const meta = {
|
|
26
27
|
title: 'Molecules / Scrollbar',
|
|
27
28
|
component: Scrollbar,
|
|
28
29
|
args: {
|
|
29
30
|
direction: 'vertical',
|
|
30
31
|
scrollHeight: 120,
|
|
31
|
-
children:
|
|
32
|
+
children: scrollbarMock,
|
|
32
33
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
parameters: {
|
|
35
|
+
layout: 'centered',
|
|
36
|
+
design: {
|
|
37
|
+
type: 'figma',
|
|
38
|
+
url: 'https://www.figma.com/design/HmHn0BShJPXHU8SmuIP71M/ITCase---Atoms?node-id=31-79833',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
} satisfies Meta<typeof Scrollbar>
|
|
42
|
+
export default meta
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
type Story = StoryObj<typeof meta>
|
|
38
45
|
|
|
39
|
-
export const
|
|
40
|
-
args: {
|
|
41
|
-
|
|
42
|
-
children: (
|
|
43
|
-
<Fragment>
|
|
44
|
-
<Text>Alpha</Text>
|
|
45
|
-
<Text>Beta</Text>
|
|
46
|
-
<Text>Gamma</Text>
|
|
47
|
-
<Text>Delta</Text>
|
|
48
|
-
<Text>Epsilon</Text>
|
|
49
|
-
<Text>Zeta</Text>
|
|
50
|
-
<Text>Eta</Text>
|
|
51
|
-
<Text>Theta</Text>
|
|
52
|
-
</Fragment>
|
|
53
|
-
),
|
|
46
|
+
export const Demo: Story = {
|
|
47
|
+
render: (args: ScrollbarProps) => {
|
|
48
|
+
return <Scrollbar {...args} />
|
|
54
49
|
},
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
export const
|
|
52
|
+
export const Height: Story = {
|
|
58
53
|
args: {
|
|
59
|
-
scrollHeight:
|
|
54
|
+
scrollHeight: 500,
|
|
55
|
+
},
|
|
56
|
+
render: (args: ScrollbarProps) => {
|
|
57
|
+
return <Scrollbar {...args} />
|
|
60
58
|
},
|
|
61
59
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { searchAppearanceDefault } from './appearance/searchDefault'
|
|
2
|
+
import { searchAppearanceDisabled } from './appearance/searchDisabled'
|
|
3
|
+
import { searchAppearanceError } from './appearance/searchError'
|
|
4
|
+
import { searchAppearanceRequire } from './appearance/searchRequire'
|
|
5
|
+
import { searchAppearanceShape } from './appearance/searchShape'
|
|
6
|
+
import { searchAppearanceSize } from './appearance/searchSize'
|
|
7
|
+
import { searchAppearanceStyle } from './appearance/searchStyle'
|
|
8
|
+
import { searchAppearanceSuccess } from './appearance/searchSuccess'
|
|
9
|
+
import type { SearchAppearance } from './Search.interface'
|
|
10
|
+
|
|
11
|
+
const searchAppearance = {
|
|
12
|
+
...searchAppearanceSize,
|
|
13
|
+
...searchAppearanceStyle,
|
|
14
|
+
...searchAppearanceDefault,
|
|
15
|
+
...searchAppearanceError,
|
|
16
|
+
...searchAppearanceSuccess,
|
|
17
|
+
...searchAppearanceRequire,
|
|
18
|
+
...searchAppearanceDisabled,
|
|
19
|
+
...searchAppearanceShape,
|
|
20
|
+
} satisfies SearchAppearance
|
|
21
|
+
|
|
22
|
+
export { searchAppearance }
|
|
@@ -4,20 +4,110 @@ import type {
|
|
|
4
4
|
ViewStyle,
|
|
5
5
|
} from 'react-native'
|
|
6
6
|
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
AppearanceConfig,
|
|
9
|
+
AppearanceKeysState,
|
|
10
|
+
AppearancePartialRecord,
|
|
11
|
+
AppearanceRecord,
|
|
12
|
+
AppearanceShapeKey,
|
|
13
|
+
AppearanceSizeKey,
|
|
14
|
+
AppearanceStyleKey,
|
|
15
|
+
BorderColorProps,
|
|
16
|
+
CompositeAppearanceStateDefault,
|
|
17
|
+
FillProps,
|
|
18
|
+
ShapeProps,
|
|
19
|
+
SizeProps,
|
|
20
|
+
WidthProps,
|
|
21
|
+
} from '@itcase/types-ui'
|
|
8
22
|
|
|
9
|
-
import type {
|
|
23
|
+
import type { ComponentGalleryArgs } from '../../storybook'
|
|
24
|
+
import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
|
|
25
|
+
import type { TextProps } from '../Text/Text.interface'
|
|
10
26
|
|
|
11
|
-
interface
|
|
12
|
-
onChangeInputText?: (text: string) => void
|
|
13
|
-
onSubmitEditing?: (event: TextInputSubmitEditingEvent) => void
|
|
27
|
+
interface SearchAppearanceProps {
|
|
14
28
|
borderColor?: BorderColorProps
|
|
15
29
|
fill?: FillProps
|
|
30
|
+
iconAfter?: IconProps['SvgImage']
|
|
31
|
+
iconAfterFill?: IconProps['iconFill']
|
|
32
|
+
iconAfterSize?: IconProps['iconSize']
|
|
33
|
+
iconBefore?: IconProps['SvgImage']
|
|
34
|
+
iconBeforeFill?: IconProps['iconFill']
|
|
35
|
+
iconBeforeSize?: IconProps['iconSize']
|
|
36
|
+
iconClear?: IconProps['SvgImage']
|
|
37
|
+
iconClearFill?: IconProps['iconFill']
|
|
38
|
+
iconClearSize?: IconProps['iconSize']
|
|
39
|
+
inputTextColor?: TextProps['textColor']
|
|
40
|
+
inputTextSize?: TextProps['size']
|
|
41
|
+
inputTextWeight?: TextProps['weight']
|
|
42
|
+
placeholderTextColor?: TextProps['textColor']
|
|
43
|
+
placeholderTextSize?: TextProps['size']
|
|
44
|
+
shape?: ShapeProps
|
|
45
|
+
size?: SizeProps
|
|
46
|
+
width?: WidthProps
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface SearchProps extends SearchAppearanceProps {
|
|
50
|
+
isDisabled?: boolean
|
|
51
|
+
onChange?: (value: string) => void
|
|
52
|
+
onChangeInputText?: (text: string) => void
|
|
53
|
+
onClickClean?: () => void
|
|
54
|
+
onSubmitEditing?: (event: TextInputSubmitEditingEvent) => void
|
|
55
|
+
appearance?: CompositeAppearanceStateDefault
|
|
56
|
+
dataTestId?: string
|
|
16
57
|
IconClose?: SvgIconComponent
|
|
17
58
|
IconSearch?: SvgIconComponent
|
|
18
59
|
inputValue?: string
|
|
19
60
|
placeholder?: string
|
|
20
61
|
style?: StyleProp<ViewStyle>
|
|
62
|
+
value?: string
|
|
21
63
|
}
|
|
22
64
|
|
|
23
|
-
|
|
65
|
+
type SearchConfig = AppearanceConfig<AppearanceKeysState, SearchAppearanceProps>
|
|
66
|
+
type SearchAppearance = SearchConfig['appearance']
|
|
67
|
+
type SearchAppearanceStyle = AppearanceRecord<
|
|
68
|
+
AppearanceStyleKey,
|
|
69
|
+
SearchAppearanceProps,
|
|
70
|
+
Extract<keyof SearchAppearanceProps, 'borderColor' | 'fill'>
|
|
71
|
+
>
|
|
72
|
+
type SearchAppearanceShape = Partial<
|
|
73
|
+
Record<AppearanceShapeKey, Partial<Pick<SearchAppearanceProps, 'shape'>>>
|
|
74
|
+
>
|
|
75
|
+
type SearchAppearanceSize = AppearancePartialRecord<
|
|
76
|
+
AppearanceSizeKey,
|
|
77
|
+
SearchAppearanceProps,
|
|
78
|
+
Extract<
|
|
79
|
+
keyof SearchAppearanceProps,
|
|
80
|
+
| 'iconBefore'
|
|
81
|
+
| 'iconBeforeSize'
|
|
82
|
+
| 'iconClear'
|
|
83
|
+
| 'iconClearSize'
|
|
84
|
+
| 'inputTextSize'
|
|
85
|
+
| 'placeholderTextSize'
|
|
86
|
+
| 'size'
|
|
87
|
+
>
|
|
88
|
+
>
|
|
89
|
+
|
|
90
|
+
type SearchAppearanceKey = NonNullable<SearchProps['appearance']>
|
|
91
|
+
|
|
92
|
+
type SearchGalleryStory = ComponentGalleryArgs &
|
|
93
|
+
Pick<SearchProps, 'inputValue' | 'isDisabled' | 'placeholder' | 'value'>
|
|
94
|
+
|
|
95
|
+
type SearchStoryArgs = Omit<SearchProps, 'appearance'> & {
|
|
96
|
+
appearanceShape: string
|
|
97
|
+
appearanceSize: string
|
|
98
|
+
appearanceStyle: string
|
|
99
|
+
appearanceType: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type {
|
|
103
|
+
SearchAppearance,
|
|
104
|
+
SearchAppearanceKey,
|
|
105
|
+
SearchAppearanceProps,
|
|
106
|
+
SearchAppearanceShape,
|
|
107
|
+
SearchAppearanceSize,
|
|
108
|
+
SearchAppearanceStyle,
|
|
109
|
+
SearchConfig,
|
|
110
|
+
SearchGalleryStory,
|
|
111
|
+
SearchProps,
|
|
112
|
+
SearchStoryArgs,
|
|
113
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { searchStyles as searchBaseStyles } from './styles/search'
|
|
2
|
+
import { searchShapeStyles } from './styles/searchShape'
|
|
3
|
+
import { searchSizeStyles } from './styles/searchSize'
|
|
2
4
|
|
|
3
5
|
const styles = {
|
|
4
6
|
...searchBaseStyles,
|
|
5
|
-
|
|
7
|
+
...searchShapeStyles,
|
|
8
|
+
...searchSizeStyles,
|
|
9
|
+
} as typeof searchBaseStyles &
|
|
10
|
+
typeof searchShapeStyles &
|
|
11
|
+
typeof searchSizeStyles
|
|
6
12
|
|
|
7
13
|
export { styles }
|