@itcase/ui-react-native 1.10.81
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/index.ts +15 -0
- package/.storybook-react-native/main.ts +13 -0
- package/.storybook-react-native/preview.tsx +83 -0
- package/.storybook-react-native/tsconfig.json +5 -0
- package/.storybook-react-native-web/main.ts +49 -0
- package/.storybook-react-native-web/preview.tsx +104 -0
- package/.storybook-react-native-web/tsconfig.json +5 -0
- package/demoApp/.bundle/config +2 -0
- package/demoApp/.watchmanconfig +8 -0
- package/demoApp/App.tsx +61 -0
- package/demoApp/Gemfile +17 -0
- package/demoApp/README.md +97 -0
- package/demoApp/android/app/build.gradle +119 -0
- package/demoApp/android/app/debug.keystore +0 -0
- package/demoApp/android/app/proguard-rules.pro +10 -0
- package/demoApp/android/app/src/main/AndroidManifest.xml +27 -0
- package/demoApp/android/app/src/main/java/com/demoapp/MainActivity.kt +22 -0
- package/demoApp/android/app/src/main/java/com/demoapp/MainApplication.kt +27 -0
- package/demoApp/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/demoApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/demoApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/demoApp/android/app/src/main/res/values/strings.xml +3 -0
- package/demoApp/android/app/src/main/res/values/styles.xml +9 -0
- package/demoApp/android/build.gradle +21 -0
- package/demoApp/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/demoApp/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/demoApp/android/gradle.properties +49 -0
- package/demoApp/android/gradlew +251 -0
- package/demoApp/android/gradlew.bat +99 -0
- package/demoApp/android/settings.gradle +6 -0
- package/demoApp/app.json +4 -0
- package/demoApp/babel.config.js +7 -0
- package/demoApp/index.js +9 -0
- package/demoApp/ios/.xcode.env +11 -0
- package/demoApp/ios/Podfile +34 -0
- package/demoApp/ios/Podfile.lock +2445 -0
- package/demoApp/ios/demoApp/AppDelegate.swift +48 -0
- package/demoApp/ios/demoApp/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/demoApp/ios/demoApp/Images.xcassets/Contents.json +6 -0
- package/demoApp/ios/demoApp/Info.plist +60 -0
- package/demoApp/ios/demoApp/LaunchScreen.storyboard +47 -0
- package/demoApp/ios/demoApp/PrivacyInfo.xcprivacy +37 -0
- package/demoApp/ios/demoApp.xcodeproj/project.pbxproj +494 -0
- package/demoApp/ios/demoApp.xcodeproj/xcshareddata/xcschemes/demoApp.xcscheme +88 -0
- package/demoApp/ios/demoApp.xcworkspace/contents.xcworkspacedata +10 -0
- package/demoApp/metro-transformer.js +16 -0
- package/demoApp/metro.config.js +296 -0
- package/demoApp/package-lock.json +41233 -0
- package/demoApp/package.json +56 -0
- package/demoApp/tsconfig.json +8 -0
- package/package.json +58 -0
- package/postcss.config.mjs +1 -0
- package/src/components/Avatar/Avatar.appearance.ts +14 -0
- package/src/components/Avatar/Avatar.interface.ts +99 -0
- package/src/components/Avatar/Avatar.styles.ts +11 -0
- package/src/components/Avatar/Avatar.tsx +181 -0
- package/src/components/Avatar/appearance/avatarShape.ts +24 -0
- package/src/components/Avatar/appearance/avatarSize.ts +66 -0
- package/src/components/Avatar/appearance/avatarStyle.ts +17 -0
- package/src/components/Avatar/appearance/avatarSurface.ts +42 -0
- package/src/components/Avatar/index.ts +36 -0
- package/src/components/Avatar/stories/AvatarCount.stories.tsx +35 -0
- package/src/components/Avatar/stories/AvatarImage.stories.tsx +36 -0
- package/src/components/Avatar/stories/AvatarInteraction.stories.tsx +25 -0
- package/src/components/Avatar/stories/AvatarLetters.stories.tsx +36 -0
- package/src/components/Avatar/stories/AvatarShape.stories.tsx +54 -0
- package/src/components/Avatar/stories/AvatarSize.stories.tsx +78 -0
- package/src/components/Avatar/stories/AvatarStories.config.ts +12 -0
- package/src/components/Avatar/stories/AvatarStyle.stories.tsx +42 -0
- package/src/components/Avatar/styles/avatar.ts +32 -0
- package/src/components/Avatar/styles/avatarShape.ts +34 -0
- package/src/components/Avatar/styles/avatarSize.ts +22 -0
- package/src/components/AvatarStack/AvatarStack.interface.ts +19 -0
- package/src/components/AvatarStack/AvatarStack.styles.ts +11 -0
- package/src/components/AvatarStack/AvatarStack.tsx +82 -0
- package/src/components/AvatarStack/index.ts +7 -0
- package/src/components/AvatarStack/stories/AvatarStack.stories.tsx +56 -0
- package/src/components/AvatarStack/styles/avatarStack.ts +17 -0
- package/src/components/AvatarStack/styles/avatarStackDirection.ts +22 -0
- package/src/components/AvatarStack/styles/avatarStackSize.ts +76 -0
- package/src/components/Badge/Badge.appearance.ts +14 -0
- package/src/components/Badge/Badge.interface.ts +50 -0
- package/src/components/Badge/Badge.styles.ts +13 -0
- package/src/components/Badge/Badge.tsx +93 -0
- package/src/components/Badge/appearance/badgeAccent.ts +10 -0
- package/src/components/Badge/appearance/badgeDanger.ts +10 -0
- package/src/components/Badge/appearance/badgeExtra.ts +10 -0
- package/src/components/Badge/appearance/badgeShape.ts +24 -0
- package/src/components/Badge/index.ts +34 -0
- package/src/components/Badge/stories/BadgeDefault.stories.tsx +39 -0
- package/src/components/Badge/stories/BadgeShape.stories.tsx +57 -0
- package/src/components/Badge/stories/BadgeSize.stories.tsx +33 -0
- package/src/components/Badge/stories/BadgeStatus.stories.tsx +23 -0
- package/src/components/Badge/styles/badge.ts +13 -0
- package/src/components/Badge/styles/badgeShape.ts +34 -0
- package/src/components/Badge/styles/badgeSize.ts +25 -0
- package/src/components/Badge/styles/badgeType.ts +20 -0
- package/src/components/Breadcrumbs/Breadcrumbs.appearance.ts +12 -0
- package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +46 -0
- package/src/components/Breadcrumbs/Breadcrumbs.styles.ts +9 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +94 -0
- package/src/components/Breadcrumbs/appearance/breadcrumbsAccent.ts +10 -0
- package/src/components/Breadcrumbs/appearance/breadcrumbsSize.ts +22 -0
- package/src/components/Breadcrumbs/appearance/breadcrumbsSurface.ts +22 -0
- package/src/components/Breadcrumbs/index.ts +26 -0
- package/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx +35 -0
- package/src/components/Breadcrumbs/styles/breadcrumbs.ts +18 -0
- package/src/components/Breadcrumbs/styles/breadcrumbsSize.ts +28 -0
- package/src/components/Button/Button.appearance.ts +16 -0
- package/src/components/Button/Button.interface.ts +76 -0
- package/src/components/Button/Button.styles.ts +11 -0
- package/src/components/Button/Button.tsx +147 -0
- package/src/components/Button/appearance/buttonAccent.ts +24 -0
- package/src/components/Button/appearance/buttonDanger.ts +14 -0
- package/src/components/Button/appearance/buttonExtra.ts +14 -0
- package/src/components/Button/appearance/buttonStyle.ts +17 -0
- package/src/components/Button/appearance/buttonSurface.ts +30 -0
- package/src/components/Button/index.ts +30 -0
- package/src/components/Button/stories/ButtonDefault.stories.tsx +77 -0
- package/src/components/Button/stories/ButtonDisabled.stories.tsx +23 -0
- package/src/components/Button/stories/ButtonSize.stories.tsx +63 -0
- package/src/components/Button/stories/ButtonStories.config.ts +46 -0
- package/src/components/Button/stories/ButtonStyle.stories.tsx +47 -0
- package/src/components/Button/styles/button.ts +26 -0
- package/src/components/Button/styles/buttonSize.ts +42 -0
- package/src/components/Button/styles/buttonText.ts +28 -0
- package/src/components/Cell/Cell.interface.ts +45 -0
- package/src/components/Cell/Cell.styles.ts +13 -0
- package/src/components/Cell/Cell.tsx +96 -0
- package/src/components/Cell/index.ts +17 -0
- package/src/components/Cell/stories/Cell.stories.tsx +35 -0
- package/src/components/Cell/styles/cell.ts +9 -0
- package/src/components/Cell/styles/cellDirection.ts +24 -0
- package/src/components/Cell/styles/cellShape.ts +16 -0
- package/src/components/Cell/styles/cellSize.ts +21 -0
- package/src/components/Checkbox/Checkbox.appearance.ts +22 -0
- package/src/components/Checkbox/Checkbox.interface.ts +99 -0
- package/src/components/Checkbox/Checkbox.styles.ts +13 -0
- package/src/components/Checkbox/Checkbox.tsx +193 -0
- package/src/components/Checkbox/appearance/checkboxDefault.ts +42 -0
- package/src/components/Checkbox/appearance/checkboxDisabled.ts +15 -0
- package/src/components/Checkbox/appearance/checkboxError.ts +15 -0
- package/src/components/Checkbox/appearance/checkboxRequire.ts +15 -0
- package/src/components/Checkbox/appearance/checkboxShape.ts +12 -0
- package/src/components/Checkbox/appearance/checkboxSize.ts +26 -0
- package/src/components/Checkbox/appearance/checkboxStyle.ts +22 -0
- package/src/components/Checkbox/appearance/checkboxSuccess.ts +15 -0
- package/src/components/Checkbox/index.ts +36 -0
- package/src/components/Checkbox/stories/Checkbox.stories.tsx +31 -0
- package/src/components/Checkbox/stories/CheckboxDisabled.stories.tsx +18 -0
- package/src/components/Checkbox/stories/CheckboxError.stories.tsx +53 -0
- package/src/components/Checkbox/stories/CheckboxLabel.stories.tsx +32 -0
- package/src/components/Checkbox/stories/CheckboxLabelDesc.stories.tsx +33 -0
- package/src/components/Checkbox/stories/CheckboxShape.stories.tsx +29 -0
- package/src/components/Checkbox/stories/CheckboxSize.stories.tsx +40 -0
- package/src/components/Checkbox/stories/CheckboxStories.config.tsx +26 -0
- package/src/components/Checkbox/styles/checkbox.ts +35 -0
- package/src/components/Checkbox/styles/checkboxAlign.ts +23 -0
- package/src/components/Checkbox/styles/checkboxShape.ts +37 -0
- package/src/components/Checkbox/styles/checkboxSize.ts +60 -0
- package/src/components/Checkmark/Checkmark.interface.ts +8 -0
- package/src/components/Checkmark/Checkmark.styles.ts +7 -0
- package/src/components/Checkmark/Checkmark.tsx +38 -0
- package/src/components/Checkmark/index.ts +5 -0
- package/src/components/Checkmark/stories/Checkmark.stories.tsx +22 -0
- package/src/components/Checkmark/styles/checkmark.ts +17 -0
- package/src/components/Chips/Chips.appearance.ts +32 -0
- package/src/components/Chips/Chips.interface.ts +103 -0
- package/src/components/Chips/Chips.styles.ts +11 -0
- package/src/components/Chips/Chips.tsx +187 -0
- package/src/components/Chips/appearance/chipsAccent.ts +24 -0
- package/src/components/Chips/appearance/chipsDanger.ts +20 -0
- package/src/components/Chips/appearance/chipsDisabled.ts +14 -0
- package/src/components/Chips/appearance/chipsError.ts +20 -0
- package/src/components/Chips/appearance/chipsExtra.ts +20 -0
- package/src/components/Chips/appearance/chipsInfo.ts +20 -0
- package/src/components/Chips/appearance/chipsShape.ts +24 -0
- package/src/components/Chips/appearance/chipsSize.ts +48 -0
- package/src/components/Chips/appearance/chipsSpecial.ts +20 -0
- package/src/components/Chips/appearance/chipsStyle.ts +17 -0
- package/src/components/Chips/appearance/chipsSuccess.ts +20 -0
- package/src/components/Chips/appearance/chipsSurface.ts +40 -0
- package/src/components/Chips/appearance/chipsWarning.ts +20 -0
- package/src/components/Chips/index.ts +30 -0
- package/src/components/Chips/stories/ChipsCheckLeft.stories.tsx +38 -0
- package/src/components/Chips/stories/ChipsCheckRight.stories.tsx +38 -0
- package/src/components/Chips/stories/ChipsClear.stories.tsx +38 -0
- package/src/components/Chips/stories/ChipsDefault.stories.tsx +90 -0
- package/src/components/Chips/stories/ChipsShape.stories.tsx +51 -0
- package/src/components/Chips/stories/ChipsSize.stories.tsx +57 -0
- package/src/components/Chips/stories/ChipsStyle.stories.tsx +39 -0
- package/src/components/Chips/styles/chips.ts +15 -0
- package/src/components/Chips/styles/chipsShape.ts +34 -0
- package/src/components/Chips/styles/chipsSize.ts +65 -0
- package/src/components/Choice/Choice.appearance.ts +22 -0
- package/src/components/Choice/Choice.interface.ts +119 -0
- package/src/components/Choice/Choice.styles.ts +13 -0
- package/src/components/Choice/Choice.tsx +258 -0
- package/src/components/Choice/appearance/choiceDefault.ts +34 -0
- package/src/components/Choice/appearance/choiceDisabled.ts +19 -0
- package/src/components/Choice/appearance/choiceError.ts +19 -0
- package/src/components/Choice/appearance/choiceRequire.ts +20 -0
- package/src/components/Choice/appearance/choiceShape.ts +24 -0
- package/src/components/Choice/appearance/choiceSize.ts +21 -0
- package/src/components/Choice/appearance/choiceStyle.ts +17 -0
- package/src/components/Choice/appearance/choiceSuccess.ts +20 -0
- package/src/components/Choice/index.ts +31 -0
- package/src/components/Choice/stories/ChoiceIcon.stories.tsx +50 -0
- package/src/components/Choice/stories/ChoiceLabel.stories.tsx +50 -0
- package/src/components/Choice/stories/ChoiceLabelIcon.stories.tsx +50 -0
- package/src/components/Choice/stories/ChoiceSize.stories.tsx +40 -0
- package/src/components/Choice/stories/ChoiceStories.config.tsx +77 -0
- package/src/components/Choice/stories/ChoiceStyle.stories.tsx +46 -0
- package/src/components/Choice/styles/choice.ts +45 -0
- package/src/components/Choice/styles/choiceShape.ts +34 -0
- package/src/components/Choice/styles/choiceSize.ts +58 -0
- package/src/components/Choice/styles/choiceWrap.ts +19 -0
- package/src/components/Code/Code.appearance.ts +20 -0
- package/src/components/Code/Code.interface.ts +43 -0
- package/src/components/Code/Code.styles.ts +11 -0
- package/src/components/Code/Code.tsx +75 -0
- package/src/components/Code/appearance/codeDefault.ts +11 -0
- package/src/components/Code/appearance/codeDisabled.ts +11 -0
- package/src/components/Code/appearance/codeError.ts +11 -0
- package/src/components/Code/appearance/codeShape.ts +15 -0
- package/src/components/Code/appearance/codeSize.ts +18 -0
- package/src/components/Code/appearance/codeStyle.ts +16 -0
- package/src/components/Code/appearance/codeSuccess.ts +11 -0
- package/src/components/Code/index.ts +22 -0
- package/src/components/Code/stories/Code.stories.tsx +41 -0
- package/src/components/Code/styles/code.ts +16 -0
- package/src/components/Code/styles/codeSize.ts +25 -0
- package/src/components/Code/styles/codeVariant.ts +19 -0
- package/src/components/ColorInput/ColorInput.appearance.ts +22 -0
- package/src/components/ColorInput/ColorInput.helpers.ts +7 -0
- package/src/components/ColorInput/ColorInput.interface.ts +48 -0
- package/src/components/ColorInput/ColorInput.styles.ts +9 -0
- package/src/components/ColorInput/ColorInput.tsx +105 -0
- package/src/components/ColorInput/appearance/colorInputDefault.ts +22 -0
- package/src/components/ColorInput/appearance/colorInputDisabled.ts +21 -0
- package/src/components/ColorInput/appearance/colorInputError.ts +21 -0
- package/src/components/ColorInput/appearance/colorInputRequire.ts +21 -0
- package/src/components/ColorInput/appearance/colorInputShape.ts +15 -0
- package/src/components/ColorInput/appearance/colorInputSize.ts +22 -0
- package/src/components/ColorInput/appearance/colorInputStyle.ts +16 -0
- package/src/components/ColorInput/appearance/colorInputSuccess.ts +21 -0
- package/src/components/ColorInput/index.ts +26 -0
- package/src/components/ColorInput/stories/ColorInput.stories.tsx +36 -0
- package/src/components/ColorInput/styles/colorInput.ts +17 -0
- package/src/components/ColorInput/styles/colorInputSize.ts +58 -0
- package/src/components/DatePicker/DatePicker.appearance.ts +12 -0
- package/src/components/DatePicker/DatePicker.constants.ts +3 -0
- package/src/components/DatePicker/DatePicker.helpers.ts +28 -0
- package/src/components/DatePicker/DatePicker.interface.ts +68 -0
- package/src/components/DatePicker/DatePicker.styles.ts +7 -0
- package/src/components/DatePicker/DatePicker.tsx +189 -0
- package/src/components/DatePicker/appearance/datePickerSize.ts +24 -0
- package/src/components/DatePicker/appearance/datePickerStyle.ts +14 -0
- package/src/components/DatePicker/appearance/datePickerSurface.ts +15 -0
- package/src/components/DatePicker/index.ts +22 -0
- package/src/components/DatePicker/stories/DatePicker.stories.tsx +50 -0
- package/src/components/DatePicker/styles/datePicker.ts +45 -0
- package/src/components/Divider/Divider.appearance.ts +22 -0
- package/src/components/Divider/Divider.interface.ts +40 -0
- package/src/components/Divider/Divider.styles.ts +11 -0
- package/src/components/Divider/Divider.tsx +65 -0
- package/src/components/Divider/appearance/dividerAccent.ts +9 -0
- package/src/components/Divider/appearance/dividerError.ts +9 -0
- package/src/components/Divider/appearance/dividerExtra.ts +9 -0
- package/src/components/Divider/appearance/dividerSize.ts +15 -0
- package/src/components/Divider/appearance/dividerSpecial.ts +9 -0
- package/src/components/Divider/appearance/dividerSuccess.ts +9 -0
- package/src/components/Divider/appearance/dividerSurface.ts +18 -0
- package/src/components/Divider/appearance/dividerWarning.ts +9 -0
- package/src/components/Divider/index.ts +28 -0
- package/src/components/Divider/stories/DividerAppearance.stories.tsx +75 -0
- package/src/components/Divider/stories/DividerDirection.stories.tsx +34 -0
- package/src/components/Divider/stories/DividerSize.stories.tsx +33 -0
- package/src/components/Divider/styles/divider.ts +9 -0
- package/src/components/Divider/styles/dividerDirection.ts +25 -0
- package/src/components/Divider/styles/dividerSize.ts +32 -0
- package/src/components/Dot/Dot.interface.ts +18 -0
- package/src/components/Dot/Dot.styles.ts +11 -0
- package/src/components/Dot/Dot.tsx +33 -0
- package/src/components/Dot/index.ts +9 -0
- package/src/components/Dot/stories/Dot.stories.tsx +23 -0
- package/src/components/Dot/styles/dot.ts +9 -0
- package/src/components/Dot/styles/dotShape.ts +22 -0
- package/src/components/Dot/styles/dotSize.ts +25 -0
- package/src/components/Drawer/Drawer.appearance.ts +10 -0
- package/src/components/Drawer/Drawer.interface.ts +67 -0
- package/src/components/Drawer/Drawer.styles.ts +7 -0
- package/src/components/Drawer/Drawer.tsx +132 -0
- package/src/components/Drawer/appearance/drawerSize.ts +36 -0
- package/src/components/Drawer/appearance/drawerSurface.ts +12 -0
- package/src/components/Drawer/index.ts +22 -0
- package/src/components/Drawer/stories/Drawer.stories.tsx +71 -0
- package/src/components/Drawer/styles/drawer.ts +60 -0
- package/src/components/Dropdown/Dropdown.appearance.ts +16 -0
- package/src/components/Dropdown/Dropdown.interface.ts +152 -0
- package/src/components/Dropdown/Dropdown.styles.ts +9 -0
- package/src/components/Dropdown/Dropdown.tsx +134 -0
- package/src/components/Dropdown/DropdownItem.appearance.ts +16 -0
- package/src/components/Dropdown/DropdownItem.tsx +141 -0
- package/src/components/Dropdown/appearance/dropdownAccent.ts +17 -0
- package/src/components/Dropdown/appearance/dropdownShape.ts +24 -0
- package/src/components/Dropdown/appearance/dropdownSize.ts +21 -0
- package/src/components/Dropdown/appearance/dropdownStyle.ts +17 -0
- package/src/components/Dropdown/appearance/dropdownSurface.ts +25 -0
- package/src/components/Dropdown/index.ts +45 -0
- package/src/components/Dropdown/stories/Dropdown.stories.tsx +62 -0
- package/src/components/Dropdown/styles/dropdown.ts +31 -0
- package/src/components/Dropdown/styles/dropdownSize.ts +36 -0
- package/src/components/Group/Group.appearance.ts +8 -0
- package/src/components/Group/Group.interface.ts +53 -0
- package/src/components/Group/Group.styles.ts +15 -0
- package/src/components/Group/Group.tsx +80 -0
- package/src/components/Group/appearance/groupSurface.ts +10 -0
- package/src/components/Group/index.ts +36 -0
- package/src/components/Group/stories/Group.stories.tsx +39 -0
- package/src/components/Group/styles/group.ts +9 -0
- package/src/components/Group/styles/groupAlign.ts +37 -0
- package/src/components/Group/styles/groupDirection.ts +40 -0
- package/src/components/Group/styles/groupJustify.ts +40 -0
- package/src/components/Group/styles/groupWrap.ts +22 -0
- package/src/components/HeroTitle/HeroTitle.appearance.ts +8 -0
- package/src/components/HeroTitle/HeroTitle.interface.ts +51 -0
- package/src/components/HeroTitle/HeroTitle.styles.ts +7 -0
- package/src/components/HeroTitle/HeroTitle.tsx +78 -0
- package/src/components/HeroTitle/appearance/heroTitleSize.ts +24 -0
- package/src/components/HeroTitle/index.ts +16 -0
- package/src/components/HeroTitle/stories/HeroTitle.stories.tsx +22 -0
- package/src/components/HeroTitle/styles/heroTitle.ts +11 -0
- package/src/components/Icon/Icon.interface.ts +42 -0
- package/src/components/Icon/Icon.styles.ts +11 -0
- package/src/components/Icon/Icon.tsx +96 -0
- package/src/components/Icon/index.ts +9 -0
- package/src/components/Icon/stories/Icon.stories.tsx +45 -0
- package/src/components/Icon/styles/icon.ts +12 -0
- package/src/components/Icon/styles/iconShape.ts +19 -0
- package/src/components/Icon/styles/iconSize.ts +61 -0
- package/src/components/Image/Image.interface.ts +31 -0
- package/src/components/Image/Image.styles.ts +7 -0
- package/src/components/Image/Image.tsx +95 -0
- package/src/components/Image/index.ts +5 -0
- package/src/components/Image/stories/Image.stories.tsx +18 -0
- package/src/components/Image/styles/image.ts +17 -0
- package/src/components/Input/Input.appearance.ts +22 -0
- package/src/components/Input/Input.interface.ts +86 -0
- package/src/components/Input/Input.styles.ts +11 -0
- package/src/components/Input/Input.tsx +159 -0
- package/src/components/Input/appearance/inputDefault.ts +20 -0
- package/src/components/Input/appearance/inputDisabled.ts +17 -0
- package/src/components/Input/appearance/inputError.ts +19 -0
- package/src/components/Input/appearance/inputRequire.ts +19 -0
- package/src/components/Input/appearance/inputShape.ts +24 -0
- package/src/components/Input/appearance/inputSize.ts +22 -0
- package/src/components/Input/appearance/inputStyle.ts +17 -0
- package/src/components/Input/appearance/inputSuccess.ts +19 -0
- package/src/components/Input/index.ts +30 -0
- package/src/components/Input/stories/InputDefault.stories.tsx +31 -0
- package/src/components/Input/stories/InputDisabled.stories.tsx +34 -0
- package/src/components/Input/stories/InputError.stories.tsx +30 -0
- package/src/components/Input/stories/InputReadonly.stories.tsx +21 -0
- package/src/components/Input/stories/InputRequire.stories.tsx +30 -0
- package/src/components/Input/stories/InputShape.stories.tsx +52 -0
- package/src/components/Input/stories/InputSize.stories.tsx +40 -0
- package/src/components/Input/stories/InputStyle.stories.tsx +40 -0
- package/src/components/Input/stories/InputSuccess.stories.tsx +30 -0
- package/src/components/Input/styles/input.ts +26 -0
- package/src/components/Input/styles/inputShape.ts +31 -0
- package/src/components/Input/styles/inputSize.ts +33 -0
- package/src/components/InputNumber/InputNumber.appearance.ts +20 -0
- package/src/components/InputNumber/InputNumber.interface.ts +79 -0
- package/src/components/InputNumber/InputNumber.styles.ts +11 -0
- package/src/components/InputNumber/InputNumber.tsx +224 -0
- package/src/components/InputNumber/appearance/inputNumberDefault.ts +14 -0
- package/src/components/InputNumber/appearance/inputNumberError.ts +14 -0
- package/src/components/InputNumber/appearance/inputNumberRequire.ts +14 -0
- package/src/components/InputNumber/appearance/inputNumberShape.ts +24 -0
- package/src/components/InputNumber/appearance/inputNumberSize.ts +30 -0
- package/src/components/InputNumber/appearance/inputNumberStyle.ts +19 -0
- package/src/components/InputNumber/appearance/inputNumberSuccess.ts +14 -0
- package/src/components/InputNumber/index.ts +34 -0
- package/src/components/InputNumber/stories/InputNumber.stories.tsx +93 -0
- package/src/components/InputNumber/styles/inputNumber.ts +25 -0
- package/src/components/InputNumber/styles/inputNumberShape.ts +34 -0
- package/src/components/InputNumber/styles/inputNumberSize.ts +36 -0
- package/src/components/InputPassword/InputPassword.appearance.ts +22 -0
- package/src/components/InputPassword/InputPassword.interface.ts +90 -0
- package/src/components/InputPassword/InputPassword.styles.ts +11 -0
- package/src/components/InputPassword/InputPassword.tsx +202 -0
- package/src/components/InputPassword/appearance/inputPasswordDefault.ts +22 -0
- package/src/components/InputPassword/appearance/inputPasswordDisabled.ts +19 -0
- package/src/components/InputPassword/appearance/inputPasswordError.ts +19 -0
- package/src/components/InputPassword/appearance/inputPasswordRequire.ts +19 -0
- package/src/components/InputPassword/appearance/inputPasswordShape.ts +24 -0
- package/src/components/InputPassword/appearance/inputPasswordSize.ts +26 -0
- package/src/components/InputPassword/appearance/inputPasswordStyle.ts +19 -0
- package/src/components/InputPassword/appearance/inputPasswordSuccess.ts +19 -0
- package/src/components/InputPassword/index.ts +36 -0
- package/src/components/InputPassword/stories/InputPassword.stories.tsx +67 -0
- package/src/components/InputPassword/styles/inputPassword.ts +22 -0
- package/src/components/InputPassword/styles/inputPasswordShape.ts +34 -0
- package/src/components/InputPassword/styles/inputPasswordSize.ts +36 -0
- package/src/components/Label/Label.appearance.ts +20 -0
- package/src/components/Label/Label.interface.ts +59 -0
- package/src/components/Label/Label.styles.ts +11 -0
- package/src/components/Label/Label.tsx +126 -0
- package/src/components/Label/Label.web.tsx +124 -0
- package/src/components/Label/appearance/labelAccent.ts +10 -0
- package/src/components/Label/appearance/labelDanger.ts +10 -0
- package/src/components/Label/appearance/labelExtra.ts +10 -0
- package/src/components/Label/appearance/labelGradient.ts +10 -0
- package/src/components/Label/appearance/labelShape.ts +9 -0
- package/src/components/Label/appearance/labelSize.ts +13 -0
- package/src/components/Label/appearance/labelSurface.ts +22 -0
- package/src/components/Label/index.ts +24 -0
- package/src/components/Label/stories/LabelShape.stories.tsx +33 -0
- package/src/components/Label/stories/LabelSize.stories.tsx +57 -0
- package/src/components/Label/stories/LabelText.stories.tsx +45 -0
- package/src/components/Label/styles/label.ts +13 -0
- package/src/components/Label/styles/labelShape.ts +23 -0
- package/src/components/Label/styles/labelSize.ts +55 -0
- package/src/components/Link/Link.appearance.ts +16 -0
- package/src/components/Link/Link.interface.ts +54 -0
- package/src/components/Link/Link.styles.ts +7 -0
- package/src/components/Link/Link.tsx +119 -0
- package/src/components/Link/appearance/linkAccent.ts +12 -0
- package/src/components/Link/appearance/linkDanger.ts +9 -0
- package/src/components/Link/appearance/linkExtra.ts +9 -0
- package/src/components/Link/appearance/linkStyle.ts +14 -0
- package/src/components/Link/appearance/linkSurface.ts +12 -0
- package/src/components/Link/index.ts +18 -0
- package/src/components/Link/stories/Link.stories.tsx +23 -0
- package/src/components/Link/styles/link.ts +14 -0
- package/src/components/List/List.appearance.ts +28 -0
- package/src/components/List/List.context.ts +7 -0
- package/src/components/List/List.interface.ts +94 -0
- package/src/components/List/List.styles.ts +9 -0
- package/src/components/List/List.tsx +119 -0
- package/src/components/List/ListItem.tsx +68 -0
- package/src/components/List/appearance/listAccent.ts +10 -0
- package/src/components/List/appearance/listDanger.ts +9 -0
- package/src/components/List/appearance/listError.ts +9 -0
- package/src/components/List/appearance/listExtra.ts +9 -0
- package/src/components/List/appearance/listInfo.ts +14 -0
- package/src/components/List/appearance/listSize.ts +27 -0
- package/src/components/List/appearance/listSpecial.ts +9 -0
- package/src/components/List/appearance/listStyle.ts +19 -0
- package/src/components/List/appearance/listSuccess.ts +9 -0
- package/src/components/List/appearance/listSurface.ts +18 -0
- package/src/components/List/appearance/listWarning.ts +9 -0
- package/src/components/List/index.ts +42 -0
- package/src/components/List/stories/List.stories.tsx +48 -0
- package/src/components/List/styles/list.ts +22 -0
- package/src/components/List/styles/listDirection.ts +40 -0
- package/src/components/List/styles/listSize.ts +6 -0
- package/src/components/Loader/Loader.appearance.ts +30 -0
- package/src/components/Loader/Loader.interface.ts +75 -0
- package/src/components/Loader/Loader.styles.ts +11 -0
- package/src/components/Loader/Loader.tsx +135 -0
- package/src/components/Loader/appearance/loaderAccent.ts +16 -0
- package/src/components/Loader/appearance/loaderDanger.ts +11 -0
- package/src/components/Loader/appearance/loaderError.ts +11 -0
- package/src/components/Loader/appearance/loaderExtra.ts +11 -0
- package/src/components/Loader/appearance/loaderInfo.ts +11 -0
- package/src/components/Loader/appearance/loaderShape.ts +24 -0
- package/src/components/Loader/appearance/loaderSize.ts +18 -0
- package/src/components/Loader/appearance/loaderSpecial.ts +11 -0
- package/src/components/Loader/appearance/loaderStyle.ts +17 -0
- package/src/components/Loader/appearance/loaderSuccess.ts +11 -0
- package/src/components/Loader/appearance/loaderSurface.ts +26 -0
- package/src/components/Loader/appearance/loaderWarning.ts +11 -0
- package/src/components/Loader/index.ts +36 -0
- package/src/components/Loader/stories/LoaderDefault.stories.tsx +69 -0
- package/src/components/Loader/stories/LoaderShape.stories.tsx +51 -0
- package/src/components/Loader/stories/LoaderSize.stories.tsx +33 -0
- package/src/components/Loader/stories/LoaderStyle.stories.tsx +39 -0
- package/src/components/Loader/stories/LoaderText.stories.tsx +30 -0
- package/src/components/Loader/styles/loader.ts +14 -0
- package/src/components/Loader/styles/loaderShape.ts +34 -0
- package/src/components/Loader/styles/loaderSize.ts +28 -0
- package/src/components/Logo/Logo.interface.ts +16 -0
- package/src/components/Logo/Logo.styles.ts +11 -0
- package/src/components/Logo/Logo.tsx +53 -0
- package/src/components/Logo/index.ts +9 -0
- package/src/components/Logo/stories/Logo.stories.tsx +31 -0
- package/src/components/Logo/styles/logo.ts +13 -0
- package/src/components/Logo/styles/logoAlign.ts +28 -0
- package/src/components/Logo/styles/logoSize.ts +34 -0
- package/src/components/MenuItem/MenuItem.appearance.ts +18 -0
- package/src/components/MenuItem/MenuItem.interface.ts +100 -0
- package/src/components/MenuItem/MenuItem.styles.ts +13 -0
- package/src/components/MenuItem/MenuItem.tsx +173 -0
- package/src/components/MenuItem/appearance/menuItemAccent.ts +26 -0
- package/src/components/MenuItem/appearance/menuItemError.ts +19 -0
- package/src/components/MenuItem/appearance/menuItemShape.ts +24 -0
- package/src/components/MenuItem/appearance/menuItemSize.ts +48 -0
- package/src/components/MenuItem/appearance/menuItemStyle.ts +17 -0
- package/src/components/MenuItem/appearance/menuItemSurface.ts +38 -0
- package/src/components/MenuItem/index.ts +36 -0
- package/src/components/MenuItem/stories/MenuItem.stories.tsx +52 -0
- package/src/components/MenuItem/styles/menuItem.ts +25 -0
- package/src/components/MenuItem/styles/menuItemJustify.ts +18 -0
- package/src/components/MenuItem/styles/menuItemShape.ts +37 -0
- package/src/components/MenuItem/styles/menuItemSize.ts +65 -0
- package/src/components/Modal/Modal.interface.ts +35 -0
- package/src/components/Modal/Modal.styles.ts +7 -0
- package/src/components/Modal/Modal.tsx +73 -0
- package/src/components/Modal/index.ts +5 -0
- package/src/components/Modal/stories/Modal.stories.tsx +47 -0
- package/src/components/Modal/styles/modal.ts +36 -0
- package/src/components/Overlay/Overlay.appearance.ts +8 -0
- package/src/components/Overlay/Overlay.interface.ts +34 -0
- package/src/components/Overlay/Overlay.styles.ts +7 -0
- package/src/components/Overlay/Overlay.tsx +46 -0
- package/src/components/Overlay/appearance/overlayDefault.ts +12 -0
- package/src/components/Overlay/index.ts +16 -0
- package/src/components/Overlay/stories/Overlay.stories.tsx +24 -0
- package/src/components/Overlay/styles/overlay.ts +18 -0
- package/src/components/Pagination/Pagination.appearance.ts +12 -0
- package/src/components/Pagination/Pagination.interface.ts +46 -0
- package/src/components/Pagination/Pagination.styles.ts +9 -0
- package/src/components/Pagination/Pagination.tsx +107 -0
- package/src/components/Pagination/appearance/paginationAccent.ts +12 -0
- package/src/components/Pagination/appearance/paginationSize.ts +22 -0
- package/src/components/Pagination/appearance/paginationSurface.ts +12 -0
- package/src/components/Pagination/index.ts +24 -0
- package/src/components/Pagination/stories/Pagination.stories.tsx +37 -0
- package/src/components/Pagination/styles/pagination.ts +14 -0
- package/src/components/Pagination/styles/paginationSize.ts +46 -0
- package/src/components/Radio/Radio.appearance.ts +22 -0
- package/src/components/Radio/Radio.interface.ts +83 -0
- package/src/components/Radio/Radio.styles.ts +11 -0
- package/src/components/Radio/Radio.tsx +159 -0
- package/src/components/Radio/appearance/radioDefault.ts +54 -0
- package/src/components/Radio/appearance/radioDisabled.ts +17 -0
- package/src/components/Radio/appearance/radioError.ts +17 -0
- package/src/components/Radio/appearance/radioRequire.ts +17 -0
- package/src/components/Radio/appearance/radioShape.ts +24 -0
- package/src/components/Radio/appearance/radioSize.ts +21 -0
- package/src/components/Radio/appearance/radioStyle.ts +20 -0
- package/src/components/Radio/appearance/radioSuccess.ts +17 -0
- package/src/components/Radio/index.ts +27 -0
- package/src/components/Radio/stories/RadioDefault.stories.tsx +26 -0
- package/src/components/Radio/stories/RadioDisabled.stories.tsx +27 -0
- package/src/components/Radio/stories/RadioError.stories.tsx +26 -0
- package/src/components/Radio/stories/RadioRequire.stories.tsx +26 -0
- package/src/components/Radio/stories/RadioSize.stories.tsx +36 -0
- package/src/components/Radio/stories/RadioStyle.stories.tsx +41 -0
- package/src/components/Radio/stories/RadioSuccess.stories.tsx +26 -0
- package/src/components/Radio/styles/radio.ts +37 -0
- package/src/components/Radio/styles/radioShape.ts +27 -0
- package/src/components/Radio/styles/radioSize.ts +25 -0
- package/src/components/RangeSlider/RangeSlider.interface.ts +35 -0
- package/src/components/RangeSlider/RangeSlider.styles.ts +7 -0
- package/src/components/RangeSlider/RangeSlider.tsx +212 -0
- package/src/components/RangeSlider/index.ts +9 -0
- package/src/components/RangeSlider/stories/RangeSlider.stories.tsx +55 -0
- package/src/components/RangeSlider/styles/rangeSlider.ts +37 -0
- package/src/components/Response/Response.interface.ts +29 -0
- package/src/components/Response/Response.styles.ts +7 -0
- package/src/components/Response/Response.tsx +68 -0
- package/src/components/Response/index.ts +5 -0
- package/src/components/Response/stories/Response.stories.tsx +22 -0
- package/src/components/Response/styles/response.ts +22 -0
- package/src/components/Scrollbar/Scrollbar.interface.ts +19 -0
- package/src/components/Scrollbar/Scrollbar.styles.ts +7 -0
- package/src/components/Scrollbar/Scrollbar.tsx +38 -0
- package/src/components/Scrollbar/index.ts +5 -0
- package/src/components/Scrollbar/stories/Scrollbar.stories.tsx +61 -0
- package/src/components/Scrollbar/styles/scrollbar.ts +12 -0
- package/src/components/Search/Search.interface.ts +23 -0
- package/src/components/Search/Search.styles.ts +7 -0
- package/src/components/Search/Search.tsx +69 -0
- package/src/components/Search/index.ts +5 -0
- package/src/components/Search/stories/Search.stories.tsx +24 -0
- package/src/components/Search/styles/search.ts +28 -0
- package/src/components/Segmented/Segmented.appearance.ts +22 -0
- package/src/components/Segmented/Segmented.interface.ts +101 -0
- package/src/components/Segmented/Segmented.styles.ts +13 -0
- package/src/components/Segmented/Segmented.tsx +219 -0
- package/src/components/Segmented/appearance/segmentedDefault.ts +26 -0
- package/src/components/Segmented/appearance/segmentedDisabled.ts +15 -0
- package/src/components/Segmented/appearance/segmentedError.ts +15 -0
- package/src/components/Segmented/appearance/segmentedRequire.ts +14 -0
- package/src/components/Segmented/appearance/segmentedShape.ts +24 -0
- package/src/components/Segmented/appearance/segmentedSize.ts +31 -0
- package/src/components/Segmented/appearance/segmentedStyle.ts +19 -0
- package/src/components/Segmented/appearance/segmentedSuccess.ts +15 -0
- package/src/components/Segmented/index.ts +38 -0
- package/src/components/Segmented/stories/SegmentedDisabled.stories.tsx +25 -0
- package/src/components/Segmented/stories/SegmentedIcon.stories.tsx +46 -0
- package/src/components/Segmented/stories/SegmentedLabel.stories.tsx +43 -0
- package/src/components/Segmented/stories/SegmentedLabelIcon.stories.tsx +40 -0
- package/src/components/Segmented/stories/SegmentedShape.stories.tsx +54 -0
- package/src/components/Segmented/stories/SegmentedSize.stories.tsx +56 -0
- package/src/components/Segmented/stories/SegmentedStories.config.tsx +89 -0
- package/src/components/Segmented/stories/SegmentedStyle.stories.tsx +42 -0
- package/src/components/Segmented/styles/segmented.ts +27 -0
- package/src/components/Segmented/styles/segmentedShape.ts +37 -0
- package/src/components/Segmented/styles/segmentedSize.ts +65 -0
- package/src/components/Segmented/styles/segmentedWidth.ts +33 -0
- package/src/components/Select/Select.appearance.ts +22 -0
- package/src/components/Select/Select.interface.ts +80 -0
- package/src/components/Select/Select.styles.ts +9 -0
- package/src/components/Select/Select.tsx +178 -0
- package/src/components/Select/appearance/selectDefault.ts +17 -0
- package/src/components/Select/appearance/selectDisabled.ts +13 -0
- package/src/components/Select/appearance/selectError.ts +17 -0
- package/src/components/Select/appearance/selectRequire.ts +17 -0
- package/src/components/Select/appearance/selectShape.ts +21 -0
- package/src/components/Select/appearance/selectSize.ts +30 -0
- package/src/components/Select/appearance/selectStyle.ts +17 -0
- package/src/components/Select/appearance/selectSuccess.ts +17 -0
- package/src/components/Select/index.ts +29 -0
- package/src/components/Select/stories/Select.stories.tsx +67 -0
- package/src/components/Select/styles/select.ts +30 -0
- package/src/components/Select/styles/selectSize.ts +48 -0
- package/src/components/Switch/Switch.appearance.ts +20 -0
- package/src/components/Switch/Switch.interface.ts +70 -0
- package/src/components/Switch/Switch.styles.ts +11 -0
- package/src/components/Switch/Switch.tsx +143 -0
- package/src/components/Switch/appearance/switchDefault.ts +14 -0
- package/src/components/Switch/appearance/switchDisabled.ts +14 -0
- package/src/components/Switch/appearance/switchError.ts +14 -0
- package/src/components/Switch/appearance/switchRequire.ts +14 -0
- package/src/components/Switch/appearance/switchShape.ts +7 -0
- package/src/components/Switch/appearance/switchSize.ts +21 -0
- package/src/components/Switch/appearance/switchStyle.ts +19 -0
- package/src/components/Switch/appearance/switchSuccess.ts +14 -0
- package/src/components/Switch/index.ts +32 -0
- package/src/components/Switch/stories/SwitchDefault.stories.tsx +46 -0
- package/src/components/Switch/stories/SwitchDisabled.stories.tsx +51 -0
- package/src/components/Switch/stories/SwitchError.stories.tsx +46 -0
- package/src/components/Switch/stories/SwitchRequire.stories.tsx +46 -0
- package/src/components/Switch/stories/SwitchSize.stories.tsx +37 -0
- package/src/components/Switch/stories/SwitchStories.config.tsx +28 -0
- package/src/components/Switch/stories/SwitchSuccess.stories.tsx +46 -0
- package/src/components/Switch/stories/SwitchTitleDescSwitch.stories.tsx +50 -0
- package/src/components/Switch/stories/SwitchTitleSwitch.stories.tsx +49 -0
- package/src/components/Switch/styles/switch.ts +43 -0
- package/src/components/Switch/styles/switchAlign.ts +29 -0
- package/src/components/Switch/styles/switchSize.ts +40 -0
- package/src/components/Tab/Tab.interface.ts +21 -0
- package/src/components/Tab/Tab.styles.ts +9 -0
- package/src/components/Tab/Tab.tsx +44 -0
- package/src/components/Tab/index.ts +7 -0
- package/src/components/Tab/stories/Tab.stories.tsx +67 -0
- package/src/components/Tab/styles/tab.ts +19 -0
- package/src/components/Tab/styles/tabSize.ts +41 -0
- package/src/components/Text/Text.interface.ts +32 -0
- package/src/components/Text/Text.styles.ts +7 -0
- package/src/components/Text/Text.tsx +56 -0
- package/src/components/Text/index.ts +5 -0
- package/src/components/Text/stories/Text.stories.tsx +84 -0
- package/src/components/Text/styles/text.ts +7 -0
- package/src/components/Textarea/Textarea.appearance.ts +22 -0
- package/src/components/Textarea/Textarea.interface.ts +81 -0
- package/src/components/Textarea/Textarea.styles.ts +11 -0
- package/src/components/Textarea/Textarea.tsx +158 -0
- package/src/components/Textarea/appearance/textareaDefault.ts +26 -0
- package/src/components/Textarea/appearance/textareaDisabled.ts +17 -0
- package/src/components/Textarea/appearance/textareaError.ts +17 -0
- package/src/components/Textarea/appearance/textareaRequire.ts +17 -0
- package/src/components/Textarea/appearance/textareaShape.ts +24 -0
- package/src/components/Textarea/appearance/textareaSize.ts +22 -0
- package/src/components/Textarea/appearance/textareaStyle.ts +17 -0
- package/src/components/Textarea/appearance/textareaSuccess.ts +17 -0
- package/src/components/Textarea/index.ts +36 -0
- package/src/components/Textarea/stories/Textarea.stories.tsx +61 -0
- package/src/components/Textarea/styles/textarea.ts +17 -0
- package/src/components/Textarea/styles/textareaShape.ts +34 -0
- package/src/components/Textarea/styles/textareaSize.ts +32 -0
- package/src/components/Tile/Tile.appearance.ts +14 -0
- package/src/components/Tile/Tile.interface.ts +97 -0
- package/src/components/Tile/Tile.styles.ts +11 -0
- package/src/components/Tile/Tile.tsx +174 -0
- package/src/components/Tile/appearance/tileShape.ts +24 -0
- package/src/components/Tile/appearance/tileSize.ts +42 -0
- package/src/components/Tile/appearance/tileStyle.ts +17 -0
- package/src/components/Tile/appearance/tileSurface.ts +34 -0
- package/src/components/Tile/index.ts +30 -0
- package/src/components/Tile/stories/TileBadge.stories.tsx +20 -0
- package/src/components/Tile/stories/TileDefault.stories.tsx +40 -0
- package/src/components/Tile/stories/TileIcon.stories.tsx +23 -0
- package/src/components/Tile/stories/TileShape.stories.tsx +52 -0
- package/src/components/Tile/stories/TileSize.stories.tsx +53 -0
- package/src/components/Tile/stories/TileStyle.stories.tsx +40 -0
- package/src/components/Tile/stories/TileSwap.stories.tsx +60 -0
- package/src/components/Tile/styles/tile.ts +27 -0
- package/src/components/Tile/styles/tileShape.ts +34 -0
- package/src/components/Tile/styles/tileSize.ts +62 -0
- package/src/components/Title/Title.interface.ts +26 -0
- package/src/components/Title/Title.styles.ts +7 -0
- package/src/components/Title/Title.tsx +46 -0
- package/src/components/Title/index.ts +5 -0
- package/src/components/Title/stories/Title.stories.tsx +68 -0
- package/src/components/Title/styles/title.ts +7 -0
- package/src/components/Tooltip/Tooltip.appearance.ts +22 -0
- package/src/components/Tooltip/Tooltip.interface.ts +81 -0
- package/src/components/Tooltip/Tooltip.styles.ts +7 -0
- package/src/components/Tooltip/Tooltip.tsx +116 -0
- package/src/components/Tooltip/appearance/tooltipDefault.ts +12 -0
- package/src/components/Tooltip/appearance/tooltipDisabled.ts +11 -0
- package/src/components/Tooltip/appearance/tooltipError.ts +12 -0
- package/src/components/Tooltip/appearance/tooltipRequire.ts +12 -0
- package/src/components/Tooltip/appearance/tooltipShape.ts +24 -0
- package/src/components/Tooltip/appearance/tooltipSize.ts +21 -0
- package/src/components/Tooltip/appearance/tooltipStyle.ts +17 -0
- package/src/components/Tooltip/appearance/tooltipSuccess.ts +12 -0
- package/src/components/Tooltip/index.ts +26 -0
- package/src/components/Tooltip/stories/Tooltip.stories.tsx +61 -0
- package/src/components/Tooltip/styles/tooltip.ts +36 -0
- package/src/components/Warning/Warning.appearance.ts +22 -0
- package/src/components/Warning/Warning.interface.ts +86 -0
- package/src/components/Warning/Warning.styles.ts +11 -0
- package/src/components/Warning/Warning.tsx +116 -0
- package/src/components/Warning/appearance/warningAccent.ts +28 -0
- package/src/components/Warning/appearance/warningError.ts +28 -0
- package/src/components/Warning/appearance/warningInfo.ts +38 -0
- package/src/components/Warning/appearance/warningShape.ts +24 -0
- package/src/components/Warning/appearance/warningSize.ts +20 -0
- package/src/components/Warning/appearance/warningStyle.ts +17 -0
- package/src/components/Warning/appearance/warningSuccess.ts +18 -0
- package/src/components/Warning/appearance/warningWarning.ts +38 -0
- package/src/components/Warning/index.ts +28 -0
- package/src/components/Warning/stories/WarningDefault.stories.tsx +52 -0
- package/src/components/Warning/stories/WarningMuted.stories.tsx +40 -0
- package/src/components/Warning/stories/WarningShape.stories.tsx +52 -0
- package/src/components/Warning/stories/WarningSize.stories.tsx +28 -0
- package/src/components/Warning/stories/WarningStyle.stories.tsx +40 -0
- package/src/components/Warning/styles/warning.ts +13 -0
- package/src/components/Warning/styles/warningShape.ts +38 -0
- package/src/components/Warning/styles/warningSize.ts +31 -0
- package/src/icons/app_logo.svg +56 -0
- package/src/icons/connection.svg +9 -0
- package/src/icons/reject.svg +4 -0
- package/src/images/manager.png +0 -0
- package/src/index.tsx +957 -0
- package/src/module.d.ts +19 -0
- package/src/styles/borderColor/index.ts +35 -0
- package/src/styles/direction/index.ts +30 -0
- package/src/styles/fill/index.ts +58 -0
- package/src/styles/gap/index.ts +19 -0
- package/src/styles/iconFill/index.ts +46 -0
- package/src/styles/shape/index.ts +29 -0
- package/src/styles/textAlign/index.ts +22 -0
- package/src/styles/textColor/index.ts +18 -0
- package/src/styles/textSize/index.ts +55 -0
- package/src/styles/textWeight/index.ts +28 -0
- package/src/styles/titleSize/index.ts +50 -0
- package/src/styles/tokens.ts +31 -0
- package/src/styles/width/index.ts +29 -0
- package/src/utils/colorTokens/colorTokens.interface.ts +3 -0
- package/src/utils/colorTokens/colorTokens.ts +17 -0
- package/src/utils/colorTokens/index.ts +7 -0
- package/src/utils/getVariantsPropsList/getVariantsPropsList.interface.ts +10 -0
- package/src/utils/getVariantsPropsList/getVariantsPropsList.ts +51 -0
- package/src/utils/getVariantsPropsList/index.ts +5 -0
- package/src/utils/index.ts +15 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DropdownAppearanceShape } from '../Dropdown.interface'
|
|
2
|
+
|
|
3
|
+
const dropdownAppearanceShape = {
|
|
4
|
+
circular: {
|
|
5
|
+
shape: 'circular',
|
|
6
|
+
},
|
|
7
|
+
rounded: {
|
|
8
|
+
shape: 'rounded',
|
|
9
|
+
},
|
|
10
|
+
roundedXL: {
|
|
11
|
+
shape: 'rounded',
|
|
12
|
+
},
|
|
13
|
+
roundedL: {
|
|
14
|
+
shape: 'rounded',
|
|
15
|
+
},
|
|
16
|
+
roundedM: {
|
|
17
|
+
shape: 'rounded',
|
|
18
|
+
},
|
|
19
|
+
roundedS: {
|
|
20
|
+
shape: 'rounded',
|
|
21
|
+
},
|
|
22
|
+
} satisfies DropdownAppearanceShape
|
|
23
|
+
|
|
24
|
+
export { dropdownAppearanceShape }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DropdownAppearanceSize } from '../Dropdown.interface'
|
|
2
|
+
|
|
3
|
+
const dropdownAppearanceSize = {
|
|
4
|
+
sizeL: {
|
|
5
|
+
size: 'l',
|
|
6
|
+
labelTextSize: 'm',
|
|
7
|
+
emptyMessageTextSize: 'm',
|
|
8
|
+
},
|
|
9
|
+
sizeS: {
|
|
10
|
+
size: 's',
|
|
11
|
+
labelTextSize: 's',
|
|
12
|
+
emptyMessageTextSize: 'm',
|
|
13
|
+
},
|
|
14
|
+
sizeXS: {
|
|
15
|
+
size: 'xs',
|
|
16
|
+
labelTextSize: 'xs',
|
|
17
|
+
emptyMessageTextSize: 'xs',
|
|
18
|
+
},
|
|
19
|
+
} satisfies DropdownAppearanceSize
|
|
20
|
+
|
|
21
|
+
export { dropdownAppearanceSize }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DropdownAppearanceStyle } from '../Dropdown.interface'
|
|
2
|
+
|
|
3
|
+
const dropdownAppearanceStyle = {
|
|
4
|
+
solid: {
|
|
5
|
+
borderColor: 'none',
|
|
6
|
+
},
|
|
7
|
+
outlined: {
|
|
8
|
+
fill: 'none',
|
|
9
|
+
},
|
|
10
|
+
full: {},
|
|
11
|
+
ghost: {
|
|
12
|
+
fill: 'none',
|
|
13
|
+
borderColor: 'none',
|
|
14
|
+
},
|
|
15
|
+
} satisfies DropdownAppearanceStyle
|
|
16
|
+
|
|
17
|
+
export { dropdownAppearanceStyle }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DropdownAppearance } from '../Dropdown.interface'
|
|
2
|
+
|
|
3
|
+
const dropdownAppearanceSurface = {
|
|
4
|
+
surfacePrimary: {
|
|
5
|
+
fill: 'surfacePrimary',
|
|
6
|
+
fillActive: 'surfaceActivePrimary',
|
|
7
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
8
|
+
labelTextColorActive: 'surfaceTextPrimary',
|
|
9
|
+
emptyMessageTextColor: 'surfaceTextPrimary',
|
|
10
|
+
},
|
|
11
|
+
surfaceQuaternary: {
|
|
12
|
+
fill: 'surfaceQuaternary',
|
|
13
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
14
|
+
},
|
|
15
|
+
surfaceSecondary: {
|
|
16
|
+
fill: 'surfaceSecondary',
|
|
17
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
18
|
+
},
|
|
19
|
+
surfaceTertiary: {
|
|
20
|
+
fill: 'surfaceTertiary',
|
|
21
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
22
|
+
},
|
|
23
|
+
} satisfies DropdownAppearance
|
|
24
|
+
|
|
25
|
+
export { dropdownAppearanceSurface }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Dropdown, dropdownConfig } from './Dropdown'
|
|
2
|
+
import { dropdownAppearance } from './Dropdown.appearance'
|
|
3
|
+
import type {
|
|
4
|
+
DropdownAppearance,
|
|
5
|
+
DropdownAppearanceKey,
|
|
6
|
+
DropdownAppearanceProps,
|
|
7
|
+
DropdownAppearanceShape,
|
|
8
|
+
DropdownAppearanceSize,
|
|
9
|
+
DropdownAppearanceStyle,
|
|
10
|
+
DropdownConfig,
|
|
11
|
+
DropdownItemAppearance,
|
|
12
|
+
DropdownItemConfig,
|
|
13
|
+
DropdownItemProps,
|
|
14
|
+
DropdownListItem,
|
|
15
|
+
DropdownProps,
|
|
16
|
+
} from './Dropdown.interface'
|
|
17
|
+
import { DropdownItem, dropdownItemConfig } from './DropdownItem'
|
|
18
|
+
import { dropdownItemAppearance } from './DropdownItem.appearance'
|
|
19
|
+
import { dropdownSizeList } from './styles/dropdownSize'
|
|
20
|
+
import type { dropdownSizePropsType } from './styles/dropdownSize'
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Dropdown,
|
|
24
|
+
dropdownAppearance,
|
|
25
|
+
dropdownConfig,
|
|
26
|
+
DropdownItem,
|
|
27
|
+
dropdownItemAppearance,
|
|
28
|
+
dropdownItemConfig,
|
|
29
|
+
dropdownSizeList,
|
|
30
|
+
}
|
|
31
|
+
export type {
|
|
32
|
+
DropdownAppearance,
|
|
33
|
+
DropdownAppearanceKey,
|
|
34
|
+
DropdownAppearanceProps,
|
|
35
|
+
DropdownAppearanceShape,
|
|
36
|
+
DropdownAppearanceSize,
|
|
37
|
+
DropdownAppearanceStyle,
|
|
38
|
+
DropdownConfig,
|
|
39
|
+
DropdownItemAppearance,
|
|
40
|
+
DropdownItemConfig,
|
|
41
|
+
DropdownItemProps,
|
|
42
|
+
DropdownListItem,
|
|
43
|
+
DropdownProps,
|
|
44
|
+
dropdownSizePropsType,
|
|
45
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useState } from 'react'
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
4
|
+
|
|
5
|
+
import { Text } from '../../Text'
|
|
6
|
+
import { Dropdown } from '../Dropdown'
|
|
7
|
+
import type { DropdownProps } from '../Dropdown.interface'
|
|
8
|
+
|
|
9
|
+
const dropdownList = [
|
|
10
|
+
{ key: 1, label: 'Item 1', isActive: true },
|
|
11
|
+
{ key: 2, label: 'Item 2' },
|
|
12
|
+
{ key: 3, label: 'Item 3', badgeValue: 3 },
|
|
13
|
+
{ key: 4, label: 'Item 4' },
|
|
14
|
+
{ key: 5, label: 'Item 5' },
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
function DropdownPlayground(props: DropdownProps) {
|
|
18
|
+
const { isOpen, onOpenChange, ...restProps } = props
|
|
19
|
+
const [isMenuOpen, setIsMenuOpen] = useState(Boolean(isOpen))
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<Dropdown
|
|
23
|
+
{...restProps}
|
|
24
|
+
isOpen={isMenuOpen}
|
|
25
|
+
onOpenChange={(nextIsOpen) => {
|
|
26
|
+
setIsMenuOpen(nextIsOpen)
|
|
27
|
+
onOpenChange?.(nextIsOpen)
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const DropdownMeta: Meta<typeof Dropdown> = {
|
|
34
|
+
title: 'Molecules / Dropdown',
|
|
35
|
+
component: Dropdown,
|
|
36
|
+
args: {
|
|
37
|
+
appearance: 'surfacePrimary',
|
|
38
|
+
label: 'Open menu',
|
|
39
|
+
dropdownList: dropdownList,
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default DropdownMeta
|
|
44
|
+
|
|
45
|
+
export const Default: StoryObj<typeof Dropdown> = {
|
|
46
|
+
render: (args) => <DropdownPlayground {...args} />,
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const WithTrigger: StoryObj<typeof Dropdown> = {
|
|
50
|
+
args: {
|
|
51
|
+
label: undefined,
|
|
52
|
+
trigger: <Text>Custom trigger</Text>,
|
|
53
|
+
},
|
|
54
|
+
render: (args) => <DropdownPlayground {...args} />,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const Open: StoryObj<typeof Dropdown> = {
|
|
58
|
+
args: {
|
|
59
|
+
isOpen: true,
|
|
60
|
+
},
|
|
61
|
+
render: (args) => <DropdownPlayground {...args} />,
|
|
62
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
const dropdownStyles = StyleSheet.create({
|
|
4
|
+
dropdown: {
|
|
5
|
+
position: 'relative',
|
|
6
|
+
},
|
|
7
|
+
dropdown__item: {
|
|
8
|
+
minHeight: 44,
|
|
9
|
+
paddingVertical: 12,
|
|
10
|
+
paddingHorizontal: 16,
|
|
11
|
+
},
|
|
12
|
+
dropdown__menu: {
|
|
13
|
+
width: '100%',
|
|
14
|
+
maxHeight: '80%',
|
|
15
|
+
overflow: 'hidden',
|
|
16
|
+
},
|
|
17
|
+
dropdown__overlay: {
|
|
18
|
+
flex: 1,
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
padding: 24,
|
|
21
|
+
backgroundColor: 'hsla(0, 0%, 45%, 0.8)',
|
|
22
|
+
},
|
|
23
|
+
dropdown__overlayPress: {
|
|
24
|
+
...StyleSheet.absoluteFill,
|
|
25
|
+
},
|
|
26
|
+
dropdown__trigger: {
|
|
27
|
+
alignSelf: 'flex-start',
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
export { dropdownStyles }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
import { getVariantsPropsList } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const dropdownSizeStyles = StyleSheet.create({
|
|
6
|
+
dropdown__item_size_l: {
|
|
7
|
+
minHeight: 48,
|
|
8
|
+
paddingVertical: 12,
|
|
9
|
+
paddingHorizontal: 16,
|
|
10
|
+
},
|
|
11
|
+
dropdown__item_size_m: {
|
|
12
|
+
minHeight: 44,
|
|
13
|
+
paddingVertical: 10,
|
|
14
|
+
paddingHorizontal: 16,
|
|
15
|
+
},
|
|
16
|
+
dropdown__item_size_s: {
|
|
17
|
+
minHeight: 40,
|
|
18
|
+
paddingVertical: 8,
|
|
19
|
+
paddingHorizontal: 12,
|
|
20
|
+
},
|
|
21
|
+
dropdown__item_size_xs: {
|
|
22
|
+
minHeight: 32,
|
|
23
|
+
paddingVertical: 6,
|
|
24
|
+
paddingHorizontal: 8,
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const dropdownSizeList = getVariantsPropsList(
|
|
29
|
+
dropdownSizeStyles,
|
|
30
|
+
'dropdown__item_size_',
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
type dropdownSizePropsType = (typeof dropdownSizeList)[number]
|
|
34
|
+
|
|
35
|
+
export { dropdownSizeList, dropdownSizeStyles }
|
|
36
|
+
export type { dropdownSizePropsType }
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native'
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
AppearanceConfig,
|
|
6
|
+
AppearanceKeysDefault,
|
|
7
|
+
BorderColorProps,
|
|
8
|
+
FillActiveProps,
|
|
9
|
+
FillProps,
|
|
10
|
+
ShapeProps,
|
|
11
|
+
WidthProps,
|
|
12
|
+
} from '@itcase/types-ui'
|
|
13
|
+
|
|
14
|
+
import type { GapProps } from '../../styles/gap'
|
|
15
|
+
import type { groupAlignItemsPropsType } from './styles/groupAlign'
|
|
16
|
+
import type { groupDirectionPropsType } from './styles/groupDirection'
|
|
17
|
+
import type { groupJustifyContentPropsType } from './styles/groupJustify'
|
|
18
|
+
import type { groupWrapPropsType } from './styles/groupWrap'
|
|
19
|
+
|
|
20
|
+
interface GroupAppearanceProps {
|
|
21
|
+
borderColor?: BorderColorProps
|
|
22
|
+
fill?: FillProps
|
|
23
|
+
fillActive?: FillActiveProps
|
|
24
|
+
fillDisabled?: FillProps
|
|
25
|
+
shape?: ShapeProps
|
|
26
|
+
width?: WidthProps
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type GroupAppearanceKey = AppearanceKeysDefault
|
|
30
|
+
type GroupConfig = AppearanceConfig<AppearanceKeysDefault, GroupAppearanceProps>
|
|
31
|
+
type GroupAppearance = GroupConfig['appearance']
|
|
32
|
+
|
|
33
|
+
interface GroupProps extends GroupAppearanceProps {
|
|
34
|
+
isActive?: boolean
|
|
35
|
+
isDisabled?: boolean
|
|
36
|
+
onPress?: (event: GestureResponderEvent) => void
|
|
37
|
+
alignItems?: groupAlignItemsPropsType
|
|
38
|
+
appearance?: GroupAppearanceKey
|
|
39
|
+
children?: ReactNode
|
|
40
|
+
direction?: groupDirectionPropsType
|
|
41
|
+
gap?: GapProps
|
|
42
|
+
justifyContent?: groupJustifyContentPropsType
|
|
43
|
+
style?: StyleProp<ViewStyle>
|
|
44
|
+
wrap?: groupWrapPropsType
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type {
|
|
48
|
+
GroupAppearance,
|
|
49
|
+
GroupAppearanceKey,
|
|
50
|
+
GroupAppearanceProps,
|
|
51
|
+
GroupConfig,
|
|
52
|
+
GroupProps,
|
|
53
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { groupStyles as groupBaseStyles } from './styles/group'
|
|
2
|
+
import { groupAlignStyles } from './styles/groupAlign'
|
|
3
|
+
import { groupDirectionStyles } from './styles/groupDirection'
|
|
4
|
+
import { groupJustifyStyles } from './styles/groupJustify'
|
|
5
|
+
import { groupWrapStyles } from './styles/groupWrap'
|
|
6
|
+
|
|
7
|
+
const styles = {
|
|
8
|
+
...groupBaseStyles,
|
|
9
|
+
...groupAlignStyles,
|
|
10
|
+
...groupDirectionStyles,
|
|
11
|
+
...groupJustifyStyles,
|
|
12
|
+
...groupWrapStyles,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { styles }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React, { useMemo } from 'react'
|
|
2
|
+
import { Pressable, View } from 'react-native'
|
|
3
|
+
|
|
4
|
+
import { tokens } from '../../styles/tokens'
|
|
5
|
+
import { groupAppearance } from './Group.appearance'
|
|
6
|
+
import type { GroupConfig, GroupProps } from './Group.interface'
|
|
7
|
+
import { styles } from './Group.styles'
|
|
8
|
+
|
|
9
|
+
const groupConfig: GroupConfig = {
|
|
10
|
+
appearance: {},
|
|
11
|
+
setAppearance: (newComponent) => {
|
|
12
|
+
groupConfig.appearance = newComponent
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
groupConfig.setAppearance(groupAppearance)
|
|
17
|
+
|
|
18
|
+
function Group(props: GroupProps) {
|
|
19
|
+
const {
|
|
20
|
+
appearance,
|
|
21
|
+
width,
|
|
22
|
+
direction,
|
|
23
|
+
justifyContent,
|
|
24
|
+
alignItems,
|
|
25
|
+
fill,
|
|
26
|
+
borderColor,
|
|
27
|
+
gap,
|
|
28
|
+
shape,
|
|
29
|
+
style,
|
|
30
|
+
wrap,
|
|
31
|
+
isActive,
|
|
32
|
+
isDisabled,
|
|
33
|
+
onPress,
|
|
34
|
+
children,
|
|
35
|
+
} = props
|
|
36
|
+
|
|
37
|
+
const appearanceConfig = useMemo(() => {
|
|
38
|
+
if (!appearance || !groupConfig.appearance) {
|
|
39
|
+
return undefined
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return groupConfig.appearance[appearance]
|
|
43
|
+
}, [appearance])
|
|
44
|
+
|
|
45
|
+
const fillKey = isDisabled
|
|
46
|
+
? appearanceConfig?.fillDisabled
|
|
47
|
+
: isActive
|
|
48
|
+
? appearanceConfig?.fillActive
|
|
49
|
+
: fill || appearanceConfig?.fill
|
|
50
|
+
|
|
51
|
+
const borderColorKey = borderColor || appearanceConfig?.borderColor
|
|
52
|
+
const shapeKey = shape || appearanceConfig?.shape
|
|
53
|
+
const widthKey = width || appearanceConfig?.width
|
|
54
|
+
|
|
55
|
+
const groupStyle = [
|
|
56
|
+
styles.group,
|
|
57
|
+
fillKey && tokens[`fill_${fillKey}`],
|
|
58
|
+
borderColorKey && tokens[`border_color_${borderColorKey}`],
|
|
59
|
+
shapeKey && tokens[`shape_${shapeKey}`],
|
|
60
|
+
widthKey && tokens[`width_${widthKey}`],
|
|
61
|
+
gap && tokens[`gap_${gap}`],
|
|
62
|
+
direction && styles[`group_direction_${direction}`],
|
|
63
|
+
wrap && styles[`group_wrap_${wrap}`],
|
|
64
|
+
alignItems && styles[`group_align_${alignItems}`],
|
|
65
|
+
justifyContent && styles[`group_justify_${justifyContent}`],
|
|
66
|
+
style && style,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
if (onPress) {
|
|
70
|
+
return (
|
|
71
|
+
<Pressable disabled={isDisabled} style={groupStyle} onPress={onPress}>
|
|
72
|
+
{children}
|
|
73
|
+
</Pressable>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return <View style={groupStyle}>{children}</View>
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Group, groupConfig }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Group, groupConfig } from './Group'
|
|
2
|
+
import { groupAppearance } from './Group.appearance'
|
|
3
|
+
import type {
|
|
4
|
+
GroupAppearance,
|
|
5
|
+
GroupAppearanceKey,
|
|
6
|
+
GroupConfig,
|
|
7
|
+
GroupProps,
|
|
8
|
+
} from './Group.interface'
|
|
9
|
+
import { groupAlignItemsList } from './styles/groupAlign'
|
|
10
|
+
import type { groupAlignItemsPropsType } from './styles/groupAlign'
|
|
11
|
+
import { groupDirectionList } from './styles/groupDirection'
|
|
12
|
+
import type { groupDirectionPropsType } from './styles/groupDirection'
|
|
13
|
+
import { groupJustifyContentList } from './styles/groupJustify'
|
|
14
|
+
import type { groupJustifyContentPropsType } from './styles/groupJustify'
|
|
15
|
+
import { groupWrapList } from './styles/groupWrap'
|
|
16
|
+
import type { groupWrapPropsType } from './styles/groupWrap'
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Group,
|
|
20
|
+
groupAlignItemsList,
|
|
21
|
+
groupAppearance,
|
|
22
|
+
groupConfig,
|
|
23
|
+
groupDirectionList,
|
|
24
|
+
groupJustifyContentList,
|
|
25
|
+
groupWrapList,
|
|
26
|
+
}
|
|
27
|
+
export type {
|
|
28
|
+
groupAlignItemsPropsType,
|
|
29
|
+
GroupAppearance,
|
|
30
|
+
GroupAppearanceKey,
|
|
31
|
+
GroupConfig,
|
|
32
|
+
groupDirectionPropsType,
|
|
33
|
+
groupJustifyContentPropsType,
|
|
34
|
+
GroupProps,
|
|
35
|
+
groupWrapPropsType,
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
|
|
3
|
+
import { Text } from '../../Text'
|
|
4
|
+
import { Group } from '../Group'
|
|
5
|
+
|
|
6
|
+
const GroupMeta: Meta<typeof Group> = {
|
|
7
|
+
title: 'Layout / Group',
|
|
8
|
+
component: Group,
|
|
9
|
+
args: {
|
|
10
|
+
direction: 'horizontal',
|
|
11
|
+
fill: 'accentPrimary',
|
|
12
|
+
gap: 8,
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default GroupMeta
|
|
17
|
+
|
|
18
|
+
export const Default: StoryObj<typeof Group> = {
|
|
19
|
+
render: (args) => (
|
|
20
|
+
<Group {...args}>
|
|
21
|
+
<Text textColor="white">1</Text>
|
|
22
|
+
<Text textColor="white">2</Text>
|
|
23
|
+
<Text textColor="white">3</Text>
|
|
24
|
+
</Group>
|
|
25
|
+
),
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const Vertical: StoryObj<typeof Group> = {
|
|
29
|
+
args: {
|
|
30
|
+
direction: 'vertical',
|
|
31
|
+
},
|
|
32
|
+
render: (args) => (
|
|
33
|
+
<Group {...args}>
|
|
34
|
+
<Text textColor="white">1</Text>
|
|
35
|
+
<Text textColor="white">2</Text>
|
|
36
|
+
<Text textColor="white">3</Text>
|
|
37
|
+
</Group>
|
|
38
|
+
),
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
import { getVariantsPropsList } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const groupAlignStyles = StyleSheet.create({
|
|
6
|
+
group_align_baseline: {
|
|
7
|
+
alignItems: 'baseline',
|
|
8
|
+
},
|
|
9
|
+
group_align_center: {
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
},
|
|
12
|
+
group_align_end: {
|
|
13
|
+
alignItems: 'flex-end',
|
|
14
|
+
},
|
|
15
|
+
'group_align_flex-end': {
|
|
16
|
+
alignItems: 'flex-end',
|
|
17
|
+
},
|
|
18
|
+
'group_align_flex-start': {
|
|
19
|
+
alignItems: 'flex-start',
|
|
20
|
+
},
|
|
21
|
+
group_align_start: {
|
|
22
|
+
alignItems: 'flex-start',
|
|
23
|
+
},
|
|
24
|
+
group_align_stretch: {
|
|
25
|
+
alignItems: 'stretch',
|
|
26
|
+
},
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const groupAlignItemsList = getVariantsPropsList(
|
|
30
|
+
groupAlignStyles,
|
|
31
|
+
'group_align_',
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
type groupAlignItemsPropsType = (typeof groupAlignItemsList)[number]
|
|
35
|
+
|
|
36
|
+
export { groupAlignItemsList, groupAlignStyles }
|
|
37
|
+
export type { groupAlignItemsPropsType }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
import { getVariantsPropsList } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const groupDirectionStyles = StyleSheet.create({
|
|
6
|
+
group_direction_column: {
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
},
|
|
9
|
+
'group_direction_column-reverse': {
|
|
10
|
+
flexDirection: 'column-reverse',
|
|
11
|
+
},
|
|
12
|
+
group_direction_horizontal: {
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
},
|
|
15
|
+
'group_direction_horizontal-reverse': {
|
|
16
|
+
flexDirection: 'row-reverse',
|
|
17
|
+
},
|
|
18
|
+
group_direction_row: {
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
},
|
|
21
|
+
'group_direction_row-reverse': {
|
|
22
|
+
flexDirection: 'row-reverse',
|
|
23
|
+
},
|
|
24
|
+
group_direction_vertical: {
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
},
|
|
27
|
+
'group_direction_vertical-reverse': {
|
|
28
|
+
flexDirection: 'column-reverse',
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const groupDirectionList = getVariantsPropsList(
|
|
33
|
+
groupDirectionStyles,
|
|
34
|
+
'group_direction_',
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
type groupDirectionPropsType = (typeof groupDirectionList)[number]
|
|
38
|
+
|
|
39
|
+
export { groupDirectionList, groupDirectionStyles }
|
|
40
|
+
export type { groupDirectionPropsType }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
import { getVariantsPropsList } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const groupJustifyStyles = StyleSheet.create({
|
|
6
|
+
group_justify_center: {
|
|
7
|
+
justifyContent: 'center',
|
|
8
|
+
},
|
|
9
|
+
group_justify_end: {
|
|
10
|
+
justifyContent: 'flex-end',
|
|
11
|
+
},
|
|
12
|
+
'group_justify_flex-end': {
|
|
13
|
+
justifyContent: 'flex-end',
|
|
14
|
+
},
|
|
15
|
+
'group_justify_flex-start': {
|
|
16
|
+
justifyContent: 'flex-start',
|
|
17
|
+
},
|
|
18
|
+
'group_justify_space-around': {
|
|
19
|
+
justifyContent: 'space-around',
|
|
20
|
+
},
|
|
21
|
+
'group_justify_space-between': {
|
|
22
|
+
justifyContent: 'space-between',
|
|
23
|
+
},
|
|
24
|
+
'group_justify_space-evenly': {
|
|
25
|
+
justifyContent: 'space-evenly',
|
|
26
|
+
},
|
|
27
|
+
group_justify_start: {
|
|
28
|
+
justifyContent: 'flex-start',
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const groupJustifyContentList = getVariantsPropsList(
|
|
33
|
+
groupJustifyStyles,
|
|
34
|
+
'group_justify_',
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
type groupJustifyContentPropsType = (typeof groupJustifyContentList)[number]
|
|
38
|
+
|
|
39
|
+
export { groupJustifyContentList, groupJustifyStyles }
|
|
40
|
+
export type { groupJustifyContentPropsType }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native'
|
|
2
|
+
|
|
3
|
+
import { getVariantsPropsList } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const groupWrapStyles = StyleSheet.create({
|
|
6
|
+
group_wrap_nowrap: {
|
|
7
|
+
flexWrap: 'nowrap',
|
|
8
|
+
},
|
|
9
|
+
group_wrap_wrap: {
|
|
10
|
+
flexWrap: 'wrap',
|
|
11
|
+
},
|
|
12
|
+
'group_wrap_wrap-reverse': {
|
|
13
|
+
flexWrap: 'wrap-reverse',
|
|
14
|
+
},
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const groupWrapList = getVariantsPropsList(groupWrapStyles, 'group_wrap_')
|
|
18
|
+
|
|
19
|
+
type groupWrapPropsType = (typeof groupWrapList)[number]
|
|
20
|
+
|
|
21
|
+
export { groupWrapList, groupWrapStyles }
|
|
22
|
+
export type { groupWrapPropsType }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { heroTitleAppearanceSize } from './appearance/heroTitleSize'
|
|
2
|
+
import type { HeroTitleAppearance } from './HeroTitle.interface'
|
|
3
|
+
|
|
4
|
+
const heroTitleAppearance = {
|
|
5
|
+
...heroTitleAppearanceSize,
|
|
6
|
+
} satisfies HeroTitleAppearance
|
|
7
|
+
|
|
8
|
+
export { heroTitleAppearance }
|