@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,15 @@
|
|
|
1
|
+
import AsyncStorage from '@react-native-async-storage/async-storage'
|
|
2
|
+
import { LiteUI } from '@storybook/react-native-ui-lite'
|
|
3
|
+
|
|
4
|
+
import { view } from './storybook.requires'
|
|
5
|
+
|
|
6
|
+
const StorybookUIRoot = view.getStorybookUI({
|
|
7
|
+
CustomUIComponent: LiteUI,
|
|
8
|
+
storage: {
|
|
9
|
+
setItem: AsyncStorage.setItem,
|
|
10
|
+
getItem: AsyncStorage.getItem,
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line import/no-default-export -- React Native entry
|
|
15
|
+
export default StorybookUIRoot
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-native'
|
|
2
|
+
|
|
3
|
+
const main: StorybookConfig = {
|
|
4
|
+
deviceAddons: [
|
|
5
|
+
'@storybook/addon-ondevice-controls',
|
|
6
|
+
'@storybook/addon-ondevice-backgrounds',
|
|
7
|
+
'@storybook/addon-ondevice-actions',
|
|
8
|
+
],
|
|
9
|
+
stories: ['../src/**/*.stories.?(ts|tsx|js|jsx)'],
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line import/no-default-export -- Storybook config
|
|
13
|
+
export default main
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { withBackgrounds } from '@storybook/addon-ondevice-backgrounds'
|
|
2
|
+
import type { Preview } from '@storybook/react-native'
|
|
3
|
+
|
|
4
|
+
import { ONDEVICE_BACKGROUNDS } from '@itcase/storybook-config/config/preview'
|
|
5
|
+
|
|
6
|
+
import { UIProviderApp } from '../../core/src/context/UIProviderApp/UIProviderApp'
|
|
7
|
+
|
|
8
|
+
const atomsMoleculesStoriesOrder = [
|
|
9
|
+
'Overview',
|
|
10
|
+
'Playground',
|
|
11
|
+
'Demo',
|
|
12
|
+
'Gallery',
|
|
13
|
+
'Skeleton',
|
|
14
|
+
'Appearance',
|
|
15
|
+
'Float',
|
|
16
|
+
'Toast',
|
|
17
|
+
'Default',
|
|
18
|
+
'Muted',
|
|
19
|
+
'Label',
|
|
20
|
+
'Icon',
|
|
21
|
+
'Loading',
|
|
22
|
+
'*',
|
|
23
|
+
'Accent',
|
|
24
|
+
'Special',
|
|
25
|
+
'Extra',
|
|
26
|
+
'Surface',
|
|
27
|
+
'Error',
|
|
28
|
+
'Success',
|
|
29
|
+
'Require',
|
|
30
|
+
'Warning',
|
|
31
|
+
'Danger',
|
|
32
|
+
'Info',
|
|
33
|
+
'Disabled',
|
|
34
|
+
'Size',
|
|
35
|
+
'Style',
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
const preview: Preview = {
|
|
39
|
+
parameters: {
|
|
40
|
+
backgrounds: {
|
|
41
|
+
...ONDEVICE_BACKGROUNDS,
|
|
42
|
+
},
|
|
43
|
+
options: {
|
|
44
|
+
storySort: {
|
|
45
|
+
order: [
|
|
46
|
+
'Overview',
|
|
47
|
+
'Mixins',
|
|
48
|
+
'Hooks',
|
|
49
|
+
'Layout',
|
|
50
|
+
'Typography',
|
|
51
|
+
'Atoms',
|
|
52
|
+
['*', atomsMoleculesStoriesOrder],
|
|
53
|
+
'Molecules',
|
|
54
|
+
['*', atomsMoleculesStoriesOrder],
|
|
55
|
+
'Components',
|
|
56
|
+
[
|
|
57
|
+
'*',
|
|
58
|
+
[
|
|
59
|
+
'Overview',
|
|
60
|
+
'Playground',
|
|
61
|
+
'Demo',
|
|
62
|
+
'Skeleton',
|
|
63
|
+
'Size',
|
|
64
|
+
'Appearance',
|
|
65
|
+
'*',
|
|
66
|
+
],
|
|
67
|
+
],
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
decorators: [
|
|
73
|
+
withBackgrounds,
|
|
74
|
+
(Story) => (
|
|
75
|
+
<UIProviderApp>
|
|
76
|
+
<Story />
|
|
77
|
+
</UIProviderApp>
|
|
78
|
+
),
|
|
79
|
+
],
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// eslint-disable-next-line import/no-default-export -- Storybook config
|
|
83
|
+
export default preview
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { dirname, resolve } from 'path'
|
|
2
|
+
import { fileURLToPath } from 'url'
|
|
3
|
+
|
|
4
|
+
import type { StorybookConfig } from '@storybook/react-native-web-vite'
|
|
5
|
+
import { mergeConfig } from 'vite'
|
|
6
|
+
|
|
7
|
+
import { MAIN_CONFIG_REACT_NATIVE_WEB } from '@itcase/storybook-config/config/main'
|
|
8
|
+
|
|
9
|
+
const storybookDir = dirname(fileURLToPath(import.meta.url))
|
|
10
|
+
const coreSrcDir = resolve(storybookDir, '../../core/src')
|
|
11
|
+
|
|
12
|
+
const { viteFinal: storybookConfigViteFinal, ...mainConfigRest } =
|
|
13
|
+
MAIN_CONFIG_REACT_NATIVE_WEB
|
|
14
|
+
|
|
15
|
+
const config: StorybookConfig = {
|
|
16
|
+
...mainConfigRest,
|
|
17
|
+
viteFinal: async (viteConfig) => {
|
|
18
|
+
return mergeConfig(await storybookConfigViteFinal(viteConfig), {
|
|
19
|
+
resolve: {
|
|
20
|
+
alias: [
|
|
21
|
+
{
|
|
22
|
+
find: '@itcase/ui-core/context',
|
|
23
|
+
replacement: resolve(coreSrcDir, 'context'),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
find: '@itcase/ui-core/hoc',
|
|
27
|
+
replacement: resolve(coreSrcDir, 'hoc'),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
find: '@itcase/ui-core/hooks',
|
|
31
|
+
replacement: resolve(coreSrcDir, 'hooks'),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
find: '@itcase/ui-core/types',
|
|
35
|
+
replacement: resolve(coreSrcDir, 'types'),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
find: '@itcase/ui-core/utils',
|
|
39
|
+
replacement: resolve(coreSrcDir, 'utils'),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
stories: ['../src/components/**/*.stories.?(ts|tsx|js|jsx)'],
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line import/no-default-export -- Storybook config
|
|
49
|
+
export default config
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Preview } from '@storybook/react-vite'
|
|
2
|
+
|
|
3
|
+
import { UIProviderApp } from '@itcase/ui-core/context/UIProviderApp'
|
|
4
|
+
|
|
5
|
+
const preview: Preview = {
|
|
6
|
+
parameters: {
|
|
7
|
+
options: {
|
|
8
|
+
storySort: {
|
|
9
|
+
order: [
|
|
10
|
+
'Overview',
|
|
11
|
+
'Mixins',
|
|
12
|
+
'Hooks',
|
|
13
|
+
'Layout',
|
|
14
|
+
'Typography',
|
|
15
|
+
'Atoms',
|
|
16
|
+
[
|
|
17
|
+
'*',
|
|
18
|
+
'Overview',
|
|
19
|
+
'Playground',
|
|
20
|
+
'Demo',
|
|
21
|
+
'Gallery',
|
|
22
|
+
'Skeleton',
|
|
23
|
+
'Appearance',
|
|
24
|
+
'Float',
|
|
25
|
+
'Toast',
|
|
26
|
+
'Default',
|
|
27
|
+
'Muted',
|
|
28
|
+
'Label',
|
|
29
|
+
'Icon',
|
|
30
|
+
'Loading',
|
|
31
|
+
'*',
|
|
32
|
+
'Accent',
|
|
33
|
+
'Special',
|
|
34
|
+
'Extra',
|
|
35
|
+
'Surface',
|
|
36
|
+
'Error',
|
|
37
|
+
'Success',
|
|
38
|
+
'Require',
|
|
39
|
+
'Warning',
|
|
40
|
+
'Danger',
|
|
41
|
+
'Info',
|
|
42
|
+
'Disabled',
|
|
43
|
+
'Size',
|
|
44
|
+
'Style',
|
|
45
|
+
],
|
|
46
|
+
'Molecules',
|
|
47
|
+
[
|
|
48
|
+
'*',
|
|
49
|
+
'Overview',
|
|
50
|
+
'Playground',
|
|
51
|
+
'Demo',
|
|
52
|
+
'Gallery',
|
|
53
|
+
'Skeleton',
|
|
54
|
+
'Appearance',
|
|
55
|
+
'Float',
|
|
56
|
+
'Toast',
|
|
57
|
+
'Default',
|
|
58
|
+
'Muted',
|
|
59
|
+
'Label',
|
|
60
|
+
'Icon',
|
|
61
|
+
'Loading',
|
|
62
|
+
'*',
|
|
63
|
+
'Accent',
|
|
64
|
+
'Special',
|
|
65
|
+
'Extra',
|
|
66
|
+
'Surface',
|
|
67
|
+
'Error',
|
|
68
|
+
'Success',
|
|
69
|
+
'Require',
|
|
70
|
+
'Warning',
|
|
71
|
+
'Danger',
|
|
72
|
+
'Info',
|
|
73
|
+
'Disabled',
|
|
74
|
+
'Size',
|
|
75
|
+
'Style',
|
|
76
|
+
],
|
|
77
|
+
'Components',
|
|
78
|
+
[
|
|
79
|
+
'*',
|
|
80
|
+
[
|
|
81
|
+
'Overview',
|
|
82
|
+
'Playground',
|
|
83
|
+
'Demo',
|
|
84
|
+
'Skeleton',
|
|
85
|
+
'Size',
|
|
86
|
+
'Appearance',
|
|
87
|
+
'*',
|
|
88
|
+
],
|
|
89
|
+
],
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
decorators: [
|
|
95
|
+
(Story) => (
|
|
96
|
+
<UIProviderApp>
|
|
97
|
+
<Story />
|
|
98
|
+
</UIProviderApp>
|
|
99
|
+
),
|
|
100
|
+
],
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// eslint-disable-next-line import/no-default-export -- Storybook config
|
|
104
|
+
export default preview
|
package/demoApp/App.tsx
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sample React Native App
|
|
3
|
+
* https://github.com/facebook/react-native
|
|
4
|
+
*
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native'
|
|
9
|
+
|
|
10
|
+
import { NewAppScreen } from '@react-native/new-app-screen'
|
|
11
|
+
import {
|
|
12
|
+
SafeAreaProvider,
|
|
13
|
+
useSafeAreaInsets,
|
|
14
|
+
} from 'react-native-safe-area-context'
|
|
15
|
+
|
|
16
|
+
import StorybookUI from '../.storybook-react-native'
|
|
17
|
+
|
|
18
|
+
const isStorybookEnabled = process.env.STORYBOOK === 'true'
|
|
19
|
+
|
|
20
|
+
function App() {
|
|
21
|
+
const isDarkMode = useColorScheme() === 'dark'
|
|
22
|
+
|
|
23
|
+
if (isStorybookEnabled) {
|
|
24
|
+
return (
|
|
25
|
+
<SafeAreaProvider>
|
|
26
|
+
<View style={styles.container}>
|
|
27
|
+
<StorybookUI />
|
|
28
|
+
</View>
|
|
29
|
+
</SafeAreaProvider>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<SafeAreaProvider>
|
|
35
|
+
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
|
|
36
|
+
<AppContent />
|
|
37
|
+
</SafeAreaProvider>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function AppContent() {
|
|
42
|
+
const safeAreaInsets = useSafeAreaInsets()
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<View style={styles.container}>
|
|
46
|
+
<NewAppScreen
|
|
47
|
+
templateFileName="App.tsx"
|
|
48
|
+
safeAreaInsets={safeAreaInsets}
|
|
49
|
+
/>
|
|
50
|
+
</View>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const styles = StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
flex: 1,
|
|
57
|
+
},
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line import/no-default-export -- React Native entry
|
|
61
|
+
export default App
|
package/demoApp/Gemfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
|
|
4
|
+
ruby ">= 2.6.10"
|
|
5
|
+
|
|
6
|
+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
|
|
7
|
+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
|
|
8
|
+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
|
|
9
|
+
gem 'xcodeproj', '< 1.26.0'
|
|
10
|
+
gem 'concurrent-ruby', '< 1.3.4'
|
|
11
|
+
|
|
12
|
+
# Ruby 3.4.0 has removed some libraries from the standard library.
|
|
13
|
+
gem 'bigdecimal'
|
|
14
|
+
gem 'logger'
|
|
15
|
+
gem 'benchmark'
|
|
16
|
+
gem 'mutex_m'
|
|
17
|
+
gem 'nkf'
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
|
|
2
|
+
|
|
3
|
+
# Getting Started
|
|
4
|
+
|
|
5
|
+
> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
|
|
6
|
+
|
|
7
|
+
## Step 1: Start Metro
|
|
8
|
+
|
|
9
|
+
First, you will need to run **Metro**, the JavaScript build tool for React Native.
|
|
10
|
+
|
|
11
|
+
To start the Metro dev server, run the following command from the root of your React Native project:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
# Using npm
|
|
15
|
+
npm start
|
|
16
|
+
|
|
17
|
+
# OR using Yarn
|
|
18
|
+
yarn start
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Step 2: Build and run your app
|
|
22
|
+
|
|
23
|
+
With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:
|
|
24
|
+
|
|
25
|
+
### Android
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
# Using npm
|
|
29
|
+
npm run android
|
|
30
|
+
|
|
31
|
+
# OR using Yarn
|
|
32
|
+
yarn android
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### iOS
|
|
36
|
+
|
|
37
|
+
For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).
|
|
38
|
+
|
|
39
|
+
The first time you create a new project, run the Ruby bundler to install CocoaPods itself:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
bundle install
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Then, and every time you update your native dependencies, run:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
bundle exec pod install
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
# Using npm
|
|
55
|
+
npm run ios
|
|
56
|
+
|
|
57
|
+
# OR using Yarn
|
|
58
|
+
yarn ios
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
|
|
62
|
+
|
|
63
|
+
This is one way to run your app — you can also build it directly from Android Studio or Xcode.
|
|
64
|
+
|
|
65
|
+
## Step 3: Modify your app
|
|
66
|
+
|
|
67
|
+
Now that you have successfully run the app, let's make changes!
|
|
68
|
+
|
|
69
|
+
Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).
|
|
70
|
+
|
|
71
|
+
When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:
|
|
72
|
+
|
|
73
|
+
- **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
|
|
74
|
+
- **iOS**: Press <kbd>R</kbd> in iOS Simulator.
|
|
75
|
+
|
|
76
|
+
## Congratulations! :tada:
|
|
77
|
+
|
|
78
|
+
You've successfully run and modified your React Native App. :partying_face:
|
|
79
|
+
|
|
80
|
+
### Now what?
|
|
81
|
+
|
|
82
|
+
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
|
|
83
|
+
- If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).
|
|
84
|
+
|
|
85
|
+
# Troubleshooting
|
|
86
|
+
|
|
87
|
+
If you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
|
|
88
|
+
|
|
89
|
+
# Learn More
|
|
90
|
+
|
|
91
|
+
To learn more about React Native, take a look at the following resources:
|
|
92
|
+
|
|
93
|
+
- [React Native Website](https://reactnative.dev) - learn more about React Native.
|
|
94
|
+
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
|
|
95
|
+
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
|
|
96
|
+
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
|
|
97
|
+
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
apply plugin: "com.android.application"
|
|
2
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
|
3
|
+
apply plugin: "com.facebook.react"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is the configuration block to customize your React Native Android app.
|
|
7
|
+
* By default you don't need to apply any configuration, just uncomment the lines you need.
|
|
8
|
+
*/
|
|
9
|
+
react {
|
|
10
|
+
/* Folders */
|
|
11
|
+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
|
|
12
|
+
// root = file("../../")
|
|
13
|
+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
|
|
14
|
+
// reactNativeDir = file("../../node_modules/react-native")
|
|
15
|
+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
|
|
16
|
+
// codegenDir = file("../../node_modules/@react-native/codegen")
|
|
17
|
+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
|
|
18
|
+
// cliFile = file("../../node_modules/react-native/cli.js")
|
|
19
|
+
|
|
20
|
+
/* Variants */
|
|
21
|
+
// The list of variants to that are debuggable. For those we're going to
|
|
22
|
+
// skip the bundling of the JS bundle and the assets. Default is "debug", "debugOptimized".
|
|
23
|
+
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
|
|
24
|
+
// debuggableVariants = ["liteDebug", "liteDebugOptimized", "prodDebug", "prodDebugOptimized"]
|
|
25
|
+
|
|
26
|
+
/* Bundling */
|
|
27
|
+
// A list containing the node command and its flags. Default is just 'node'.
|
|
28
|
+
// nodeExecutableAndArgs = ["node"]
|
|
29
|
+
//
|
|
30
|
+
// The command to run when bundling. By default is 'bundle'
|
|
31
|
+
// bundleCommand = "ram-bundle"
|
|
32
|
+
//
|
|
33
|
+
// The path to the CLI configuration file. Default is empty.
|
|
34
|
+
// bundleConfig = file(../rn-cli.config.js)
|
|
35
|
+
//
|
|
36
|
+
// The name of the generated asset file containing your JS bundle
|
|
37
|
+
// bundleAssetName = "MyApplication.android.bundle"
|
|
38
|
+
//
|
|
39
|
+
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
|
|
40
|
+
// entryFile = file("../js/MyApplication.android.js")
|
|
41
|
+
//
|
|
42
|
+
// A list of extra flags to pass to the 'bundle' commands.
|
|
43
|
+
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
|
|
44
|
+
// extraPackagerArgs = []
|
|
45
|
+
|
|
46
|
+
/* Hermes Commands */
|
|
47
|
+
// The hermes compiler command to run. By default it is 'hermesc'
|
|
48
|
+
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
|
|
49
|
+
//
|
|
50
|
+
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
|
|
51
|
+
// hermesFlags = ["-O", "-output-source-map"]
|
|
52
|
+
|
|
53
|
+
/* Autolinking */
|
|
54
|
+
autolinkLibrariesWithApp()
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
|
|
59
|
+
*/
|
|
60
|
+
def enableProguardInReleaseBuilds = false
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The preferred build flavor of JavaScriptCore (JSC)
|
|
64
|
+
*
|
|
65
|
+
* For example, to use the international variant, you can use:
|
|
66
|
+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
|
|
67
|
+
*
|
|
68
|
+
* The international variant includes ICU i18n library and necessary data
|
|
69
|
+
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
|
|
70
|
+
* give correct results when using with locales other than en-US. Note that
|
|
71
|
+
* this variant is about 6MiB larger per architecture than default.
|
|
72
|
+
*/
|
|
73
|
+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
|
|
74
|
+
|
|
75
|
+
android {
|
|
76
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
77
|
+
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
78
|
+
compileSdk rootProject.ext.compileSdkVersion
|
|
79
|
+
|
|
80
|
+
namespace "com.demoapp"
|
|
81
|
+
defaultConfig {
|
|
82
|
+
applicationId "com.demoapp"
|
|
83
|
+
minSdkVersion rootProject.ext.minSdkVersion
|
|
84
|
+
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
85
|
+
versionCode 1
|
|
86
|
+
versionName "1.0"
|
|
87
|
+
}
|
|
88
|
+
signingConfigs {
|
|
89
|
+
debug {
|
|
90
|
+
storeFile file('debug.keystore')
|
|
91
|
+
storePassword 'android'
|
|
92
|
+
keyAlias 'androiddebugkey'
|
|
93
|
+
keyPassword 'android'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
buildTypes {
|
|
97
|
+
debug {
|
|
98
|
+
signingConfig signingConfigs.debug
|
|
99
|
+
}
|
|
100
|
+
release {
|
|
101
|
+
// Caution! In production, you need to generate your own keystore file.
|
|
102
|
+
// see https://reactnative.dev/docs/signed-apk-android.
|
|
103
|
+
signingConfig signingConfigs.debug
|
|
104
|
+
minifyEnabled enableProguardInReleaseBuilds
|
|
105
|
+
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
dependencies {
|
|
111
|
+
// The version of react-native is set by the React Native Gradle Plugin
|
|
112
|
+
implementation("com.facebook.react:react-android")
|
|
113
|
+
|
|
114
|
+
if (hermesEnabled.toBoolean()) {
|
|
115
|
+
implementation("com.facebook.react:hermes-android")
|
|
116
|
+
} else {
|
|
117
|
+
implementation jscFlavor
|
|
118
|
+
}
|
|
119
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Add project specific ProGuard rules here.
|
|
2
|
+
# By default, the flags in this file are appended to flags specified
|
|
3
|
+
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
|
|
4
|
+
# You can edit the include path and order by changing the proguardFiles
|
|
5
|
+
# directive in build.gradle.
|
|
6
|
+
#
|
|
7
|
+
# For more details, see
|
|
8
|
+
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
9
|
+
|
|
10
|
+
# Add any project specific keep options here:
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
|
|
3
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
4
|
+
|
|
5
|
+
<application
|
|
6
|
+
android:name=".MainApplication"
|
|
7
|
+
android:label="@string/app_name"
|
|
8
|
+
android:icon="@mipmap/ic_launcher"
|
|
9
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
|
10
|
+
android:allowBackup="false"
|
|
11
|
+
android:theme="@style/AppTheme"
|
|
12
|
+
android:usesCleartextTraffic="${usesCleartextTraffic}"
|
|
13
|
+
android:supportsRtl="true">
|
|
14
|
+
<activity
|
|
15
|
+
android:name=".MainActivity"
|
|
16
|
+
android:label="@string/app_name"
|
|
17
|
+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
|
|
18
|
+
android:launchMode="singleTask"
|
|
19
|
+
android:windowSoftInputMode="adjustResize"
|
|
20
|
+
android:exported="true">
|
|
21
|
+
<intent-filter>
|
|
22
|
+
<action android:name="android.intent.action.MAIN" />
|
|
23
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
|
24
|
+
</intent-filter>
|
|
25
|
+
</activity>
|
|
26
|
+
</application>
|
|
27
|
+
</manifest>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
package com.demoapp
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactActivity
|
|
4
|
+
import com.facebook.react.ReactActivityDelegate
|
|
5
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
6
|
+
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
7
|
+
|
|
8
|
+
class MainActivity : ReactActivity() {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
12
|
+
* rendering of the component.
|
|
13
|
+
*/
|
|
14
|
+
override fun getMainComponentName(): String = "demoApp"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
|
18
|
+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
|
19
|
+
*/
|
|
20
|
+
override fun createReactActivityDelegate(): ReactActivityDelegate =
|
|
21
|
+
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
package com.demoapp
|
|
2
|
+
|
|
3
|
+
import android.app.Application
|
|
4
|
+
import com.facebook.react.PackageList
|
|
5
|
+
import com.facebook.react.ReactApplication
|
|
6
|
+
import com.facebook.react.ReactHost
|
|
7
|
+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
|
|
8
|
+
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
9
|
+
|
|
10
|
+
class MainApplication : Application(), ReactApplication {
|
|
11
|
+
|
|
12
|
+
override val reactHost: ReactHost by lazy {
|
|
13
|
+
getDefaultReactHost(
|
|
14
|
+
context = applicationContext,
|
|
15
|
+
packageList =
|
|
16
|
+
PackageList(this).packages.apply {
|
|
17
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
18
|
+
// add(MyReactNativePackage())
|
|
19
|
+
},
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
override fun onCreate() {
|
|
24
|
+
super.onCreate()
|
|
25
|
+
loadReactNative(this)
|
|
26
|
+
}
|
|
27
|
+
}
|