@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.
Files changed (771) hide show
  1. package/.storybook-react-native/index.ts +15 -0
  2. package/.storybook-react-native/main.ts +13 -0
  3. package/.storybook-react-native/preview.tsx +83 -0
  4. package/.storybook-react-native/tsconfig.json +5 -0
  5. package/.storybook-react-native-web/main.ts +49 -0
  6. package/.storybook-react-native-web/preview.tsx +104 -0
  7. package/.storybook-react-native-web/tsconfig.json +5 -0
  8. package/demoApp/.bundle/config +2 -0
  9. package/demoApp/.watchmanconfig +8 -0
  10. package/demoApp/App.tsx +61 -0
  11. package/demoApp/Gemfile +17 -0
  12. package/demoApp/README.md +97 -0
  13. package/demoApp/android/app/build.gradle +119 -0
  14. package/demoApp/android/app/debug.keystore +0 -0
  15. package/demoApp/android/app/proguard-rules.pro +10 -0
  16. package/demoApp/android/app/src/main/AndroidManifest.xml +27 -0
  17. package/demoApp/android/app/src/main/java/com/demoapp/MainActivity.kt +22 -0
  18. package/demoApp/android/app/src/main/java/com/demoapp/MainApplication.kt +27 -0
  19. package/demoApp/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  20. package/demoApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  21. package/demoApp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  22. package/demoApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  23. package/demoApp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  24. package/demoApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  25. package/demoApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  26. package/demoApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  27. package/demoApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  28. package/demoApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  29. package/demoApp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  30. package/demoApp/android/app/src/main/res/values/strings.xml +3 -0
  31. package/demoApp/android/app/src/main/res/values/styles.xml +9 -0
  32. package/demoApp/android/build.gradle +21 -0
  33. package/demoApp/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  34. package/demoApp/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  35. package/demoApp/android/gradle.properties +49 -0
  36. package/demoApp/android/gradlew +251 -0
  37. package/demoApp/android/gradlew.bat +99 -0
  38. package/demoApp/android/settings.gradle +6 -0
  39. package/demoApp/app.json +4 -0
  40. package/demoApp/babel.config.js +7 -0
  41. package/demoApp/index.js +9 -0
  42. package/demoApp/ios/.xcode.env +11 -0
  43. package/demoApp/ios/Podfile +34 -0
  44. package/demoApp/ios/Podfile.lock +2445 -0
  45. package/demoApp/ios/demoApp/AppDelegate.swift +48 -0
  46. package/demoApp/ios/demoApp/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  47. package/demoApp/ios/demoApp/Images.xcassets/Contents.json +6 -0
  48. package/demoApp/ios/demoApp/Info.plist +60 -0
  49. package/demoApp/ios/demoApp/LaunchScreen.storyboard +47 -0
  50. package/demoApp/ios/demoApp/PrivacyInfo.xcprivacy +37 -0
  51. package/demoApp/ios/demoApp.xcodeproj/project.pbxproj +494 -0
  52. package/demoApp/ios/demoApp.xcodeproj/xcshareddata/xcschemes/demoApp.xcscheme +88 -0
  53. package/demoApp/ios/demoApp.xcworkspace/contents.xcworkspacedata +10 -0
  54. package/demoApp/metro-transformer.js +16 -0
  55. package/demoApp/metro.config.js +296 -0
  56. package/demoApp/package-lock.json +41233 -0
  57. package/demoApp/package.json +56 -0
  58. package/demoApp/tsconfig.json +8 -0
  59. package/package.json +58 -0
  60. package/postcss.config.mjs +1 -0
  61. package/src/components/Avatar/Avatar.appearance.ts +14 -0
  62. package/src/components/Avatar/Avatar.interface.ts +99 -0
  63. package/src/components/Avatar/Avatar.styles.ts +11 -0
  64. package/src/components/Avatar/Avatar.tsx +181 -0
  65. package/src/components/Avatar/appearance/avatarShape.ts +24 -0
  66. package/src/components/Avatar/appearance/avatarSize.ts +66 -0
  67. package/src/components/Avatar/appearance/avatarStyle.ts +17 -0
  68. package/src/components/Avatar/appearance/avatarSurface.ts +42 -0
  69. package/src/components/Avatar/index.ts +36 -0
  70. package/src/components/Avatar/stories/AvatarCount.stories.tsx +35 -0
  71. package/src/components/Avatar/stories/AvatarImage.stories.tsx +36 -0
  72. package/src/components/Avatar/stories/AvatarInteraction.stories.tsx +25 -0
  73. package/src/components/Avatar/stories/AvatarLetters.stories.tsx +36 -0
  74. package/src/components/Avatar/stories/AvatarShape.stories.tsx +54 -0
  75. package/src/components/Avatar/stories/AvatarSize.stories.tsx +78 -0
  76. package/src/components/Avatar/stories/AvatarStories.config.ts +12 -0
  77. package/src/components/Avatar/stories/AvatarStyle.stories.tsx +42 -0
  78. package/src/components/Avatar/styles/avatar.ts +32 -0
  79. package/src/components/Avatar/styles/avatarShape.ts +34 -0
  80. package/src/components/Avatar/styles/avatarSize.ts +22 -0
  81. package/src/components/AvatarStack/AvatarStack.interface.ts +19 -0
  82. package/src/components/AvatarStack/AvatarStack.styles.ts +11 -0
  83. package/src/components/AvatarStack/AvatarStack.tsx +82 -0
  84. package/src/components/AvatarStack/index.ts +7 -0
  85. package/src/components/AvatarStack/stories/AvatarStack.stories.tsx +56 -0
  86. package/src/components/AvatarStack/styles/avatarStack.ts +17 -0
  87. package/src/components/AvatarStack/styles/avatarStackDirection.ts +22 -0
  88. package/src/components/AvatarStack/styles/avatarStackSize.ts +76 -0
  89. package/src/components/Badge/Badge.appearance.ts +14 -0
  90. package/src/components/Badge/Badge.interface.ts +50 -0
  91. package/src/components/Badge/Badge.styles.ts +13 -0
  92. package/src/components/Badge/Badge.tsx +93 -0
  93. package/src/components/Badge/appearance/badgeAccent.ts +10 -0
  94. package/src/components/Badge/appearance/badgeDanger.ts +10 -0
  95. package/src/components/Badge/appearance/badgeExtra.ts +10 -0
  96. package/src/components/Badge/appearance/badgeShape.ts +24 -0
  97. package/src/components/Badge/index.ts +34 -0
  98. package/src/components/Badge/stories/BadgeDefault.stories.tsx +39 -0
  99. package/src/components/Badge/stories/BadgeShape.stories.tsx +57 -0
  100. package/src/components/Badge/stories/BadgeSize.stories.tsx +33 -0
  101. package/src/components/Badge/stories/BadgeStatus.stories.tsx +23 -0
  102. package/src/components/Badge/styles/badge.ts +13 -0
  103. package/src/components/Badge/styles/badgeShape.ts +34 -0
  104. package/src/components/Badge/styles/badgeSize.ts +25 -0
  105. package/src/components/Badge/styles/badgeType.ts +20 -0
  106. package/src/components/Breadcrumbs/Breadcrumbs.appearance.ts +12 -0
  107. package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +46 -0
  108. package/src/components/Breadcrumbs/Breadcrumbs.styles.ts +9 -0
  109. package/src/components/Breadcrumbs/Breadcrumbs.tsx +94 -0
  110. package/src/components/Breadcrumbs/appearance/breadcrumbsAccent.ts +10 -0
  111. package/src/components/Breadcrumbs/appearance/breadcrumbsSize.ts +22 -0
  112. package/src/components/Breadcrumbs/appearance/breadcrumbsSurface.ts +22 -0
  113. package/src/components/Breadcrumbs/index.ts +26 -0
  114. package/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx +35 -0
  115. package/src/components/Breadcrumbs/styles/breadcrumbs.ts +18 -0
  116. package/src/components/Breadcrumbs/styles/breadcrumbsSize.ts +28 -0
  117. package/src/components/Button/Button.appearance.ts +16 -0
  118. package/src/components/Button/Button.interface.ts +76 -0
  119. package/src/components/Button/Button.styles.ts +11 -0
  120. package/src/components/Button/Button.tsx +147 -0
  121. package/src/components/Button/appearance/buttonAccent.ts +24 -0
  122. package/src/components/Button/appearance/buttonDanger.ts +14 -0
  123. package/src/components/Button/appearance/buttonExtra.ts +14 -0
  124. package/src/components/Button/appearance/buttonStyle.ts +17 -0
  125. package/src/components/Button/appearance/buttonSurface.ts +30 -0
  126. package/src/components/Button/index.ts +30 -0
  127. package/src/components/Button/stories/ButtonDefault.stories.tsx +77 -0
  128. package/src/components/Button/stories/ButtonDisabled.stories.tsx +23 -0
  129. package/src/components/Button/stories/ButtonSize.stories.tsx +63 -0
  130. package/src/components/Button/stories/ButtonStories.config.ts +46 -0
  131. package/src/components/Button/stories/ButtonStyle.stories.tsx +47 -0
  132. package/src/components/Button/styles/button.ts +26 -0
  133. package/src/components/Button/styles/buttonSize.ts +42 -0
  134. package/src/components/Button/styles/buttonText.ts +28 -0
  135. package/src/components/Cell/Cell.interface.ts +45 -0
  136. package/src/components/Cell/Cell.styles.ts +13 -0
  137. package/src/components/Cell/Cell.tsx +96 -0
  138. package/src/components/Cell/index.ts +17 -0
  139. package/src/components/Cell/stories/Cell.stories.tsx +35 -0
  140. package/src/components/Cell/styles/cell.ts +9 -0
  141. package/src/components/Cell/styles/cellDirection.ts +24 -0
  142. package/src/components/Cell/styles/cellShape.ts +16 -0
  143. package/src/components/Cell/styles/cellSize.ts +21 -0
  144. package/src/components/Checkbox/Checkbox.appearance.ts +22 -0
  145. package/src/components/Checkbox/Checkbox.interface.ts +99 -0
  146. package/src/components/Checkbox/Checkbox.styles.ts +13 -0
  147. package/src/components/Checkbox/Checkbox.tsx +193 -0
  148. package/src/components/Checkbox/appearance/checkboxDefault.ts +42 -0
  149. package/src/components/Checkbox/appearance/checkboxDisabled.ts +15 -0
  150. package/src/components/Checkbox/appearance/checkboxError.ts +15 -0
  151. package/src/components/Checkbox/appearance/checkboxRequire.ts +15 -0
  152. package/src/components/Checkbox/appearance/checkboxShape.ts +12 -0
  153. package/src/components/Checkbox/appearance/checkboxSize.ts +26 -0
  154. package/src/components/Checkbox/appearance/checkboxStyle.ts +22 -0
  155. package/src/components/Checkbox/appearance/checkboxSuccess.ts +15 -0
  156. package/src/components/Checkbox/index.ts +36 -0
  157. package/src/components/Checkbox/stories/Checkbox.stories.tsx +31 -0
  158. package/src/components/Checkbox/stories/CheckboxDisabled.stories.tsx +18 -0
  159. package/src/components/Checkbox/stories/CheckboxError.stories.tsx +53 -0
  160. package/src/components/Checkbox/stories/CheckboxLabel.stories.tsx +32 -0
  161. package/src/components/Checkbox/stories/CheckboxLabelDesc.stories.tsx +33 -0
  162. package/src/components/Checkbox/stories/CheckboxShape.stories.tsx +29 -0
  163. package/src/components/Checkbox/stories/CheckboxSize.stories.tsx +40 -0
  164. package/src/components/Checkbox/stories/CheckboxStories.config.tsx +26 -0
  165. package/src/components/Checkbox/styles/checkbox.ts +35 -0
  166. package/src/components/Checkbox/styles/checkboxAlign.ts +23 -0
  167. package/src/components/Checkbox/styles/checkboxShape.ts +37 -0
  168. package/src/components/Checkbox/styles/checkboxSize.ts +60 -0
  169. package/src/components/Checkmark/Checkmark.interface.ts +8 -0
  170. package/src/components/Checkmark/Checkmark.styles.ts +7 -0
  171. package/src/components/Checkmark/Checkmark.tsx +38 -0
  172. package/src/components/Checkmark/index.ts +5 -0
  173. package/src/components/Checkmark/stories/Checkmark.stories.tsx +22 -0
  174. package/src/components/Checkmark/styles/checkmark.ts +17 -0
  175. package/src/components/Chips/Chips.appearance.ts +32 -0
  176. package/src/components/Chips/Chips.interface.ts +103 -0
  177. package/src/components/Chips/Chips.styles.ts +11 -0
  178. package/src/components/Chips/Chips.tsx +187 -0
  179. package/src/components/Chips/appearance/chipsAccent.ts +24 -0
  180. package/src/components/Chips/appearance/chipsDanger.ts +20 -0
  181. package/src/components/Chips/appearance/chipsDisabled.ts +14 -0
  182. package/src/components/Chips/appearance/chipsError.ts +20 -0
  183. package/src/components/Chips/appearance/chipsExtra.ts +20 -0
  184. package/src/components/Chips/appearance/chipsInfo.ts +20 -0
  185. package/src/components/Chips/appearance/chipsShape.ts +24 -0
  186. package/src/components/Chips/appearance/chipsSize.ts +48 -0
  187. package/src/components/Chips/appearance/chipsSpecial.ts +20 -0
  188. package/src/components/Chips/appearance/chipsStyle.ts +17 -0
  189. package/src/components/Chips/appearance/chipsSuccess.ts +20 -0
  190. package/src/components/Chips/appearance/chipsSurface.ts +40 -0
  191. package/src/components/Chips/appearance/chipsWarning.ts +20 -0
  192. package/src/components/Chips/index.ts +30 -0
  193. package/src/components/Chips/stories/ChipsCheckLeft.stories.tsx +38 -0
  194. package/src/components/Chips/stories/ChipsCheckRight.stories.tsx +38 -0
  195. package/src/components/Chips/stories/ChipsClear.stories.tsx +38 -0
  196. package/src/components/Chips/stories/ChipsDefault.stories.tsx +90 -0
  197. package/src/components/Chips/stories/ChipsShape.stories.tsx +51 -0
  198. package/src/components/Chips/stories/ChipsSize.stories.tsx +57 -0
  199. package/src/components/Chips/stories/ChipsStyle.stories.tsx +39 -0
  200. package/src/components/Chips/styles/chips.ts +15 -0
  201. package/src/components/Chips/styles/chipsShape.ts +34 -0
  202. package/src/components/Chips/styles/chipsSize.ts +65 -0
  203. package/src/components/Choice/Choice.appearance.ts +22 -0
  204. package/src/components/Choice/Choice.interface.ts +119 -0
  205. package/src/components/Choice/Choice.styles.ts +13 -0
  206. package/src/components/Choice/Choice.tsx +258 -0
  207. package/src/components/Choice/appearance/choiceDefault.ts +34 -0
  208. package/src/components/Choice/appearance/choiceDisabled.ts +19 -0
  209. package/src/components/Choice/appearance/choiceError.ts +19 -0
  210. package/src/components/Choice/appearance/choiceRequire.ts +20 -0
  211. package/src/components/Choice/appearance/choiceShape.ts +24 -0
  212. package/src/components/Choice/appearance/choiceSize.ts +21 -0
  213. package/src/components/Choice/appearance/choiceStyle.ts +17 -0
  214. package/src/components/Choice/appearance/choiceSuccess.ts +20 -0
  215. package/src/components/Choice/index.ts +31 -0
  216. package/src/components/Choice/stories/ChoiceIcon.stories.tsx +50 -0
  217. package/src/components/Choice/stories/ChoiceLabel.stories.tsx +50 -0
  218. package/src/components/Choice/stories/ChoiceLabelIcon.stories.tsx +50 -0
  219. package/src/components/Choice/stories/ChoiceSize.stories.tsx +40 -0
  220. package/src/components/Choice/stories/ChoiceStories.config.tsx +77 -0
  221. package/src/components/Choice/stories/ChoiceStyle.stories.tsx +46 -0
  222. package/src/components/Choice/styles/choice.ts +45 -0
  223. package/src/components/Choice/styles/choiceShape.ts +34 -0
  224. package/src/components/Choice/styles/choiceSize.ts +58 -0
  225. package/src/components/Choice/styles/choiceWrap.ts +19 -0
  226. package/src/components/Code/Code.appearance.ts +20 -0
  227. package/src/components/Code/Code.interface.ts +43 -0
  228. package/src/components/Code/Code.styles.ts +11 -0
  229. package/src/components/Code/Code.tsx +75 -0
  230. package/src/components/Code/appearance/codeDefault.ts +11 -0
  231. package/src/components/Code/appearance/codeDisabled.ts +11 -0
  232. package/src/components/Code/appearance/codeError.ts +11 -0
  233. package/src/components/Code/appearance/codeShape.ts +15 -0
  234. package/src/components/Code/appearance/codeSize.ts +18 -0
  235. package/src/components/Code/appearance/codeStyle.ts +16 -0
  236. package/src/components/Code/appearance/codeSuccess.ts +11 -0
  237. package/src/components/Code/index.ts +22 -0
  238. package/src/components/Code/stories/Code.stories.tsx +41 -0
  239. package/src/components/Code/styles/code.ts +16 -0
  240. package/src/components/Code/styles/codeSize.ts +25 -0
  241. package/src/components/Code/styles/codeVariant.ts +19 -0
  242. package/src/components/ColorInput/ColorInput.appearance.ts +22 -0
  243. package/src/components/ColorInput/ColorInput.helpers.ts +7 -0
  244. package/src/components/ColorInput/ColorInput.interface.ts +48 -0
  245. package/src/components/ColorInput/ColorInput.styles.ts +9 -0
  246. package/src/components/ColorInput/ColorInput.tsx +105 -0
  247. package/src/components/ColorInput/appearance/colorInputDefault.ts +22 -0
  248. package/src/components/ColorInput/appearance/colorInputDisabled.ts +21 -0
  249. package/src/components/ColorInput/appearance/colorInputError.ts +21 -0
  250. package/src/components/ColorInput/appearance/colorInputRequire.ts +21 -0
  251. package/src/components/ColorInput/appearance/colorInputShape.ts +15 -0
  252. package/src/components/ColorInput/appearance/colorInputSize.ts +22 -0
  253. package/src/components/ColorInput/appearance/colorInputStyle.ts +16 -0
  254. package/src/components/ColorInput/appearance/colorInputSuccess.ts +21 -0
  255. package/src/components/ColorInput/index.ts +26 -0
  256. package/src/components/ColorInput/stories/ColorInput.stories.tsx +36 -0
  257. package/src/components/ColorInput/styles/colorInput.ts +17 -0
  258. package/src/components/ColorInput/styles/colorInputSize.ts +58 -0
  259. package/src/components/DatePicker/DatePicker.appearance.ts +12 -0
  260. package/src/components/DatePicker/DatePicker.constants.ts +3 -0
  261. package/src/components/DatePicker/DatePicker.helpers.ts +28 -0
  262. package/src/components/DatePicker/DatePicker.interface.ts +68 -0
  263. package/src/components/DatePicker/DatePicker.styles.ts +7 -0
  264. package/src/components/DatePicker/DatePicker.tsx +189 -0
  265. package/src/components/DatePicker/appearance/datePickerSize.ts +24 -0
  266. package/src/components/DatePicker/appearance/datePickerStyle.ts +14 -0
  267. package/src/components/DatePicker/appearance/datePickerSurface.ts +15 -0
  268. package/src/components/DatePicker/index.ts +22 -0
  269. package/src/components/DatePicker/stories/DatePicker.stories.tsx +50 -0
  270. package/src/components/DatePicker/styles/datePicker.ts +45 -0
  271. package/src/components/Divider/Divider.appearance.ts +22 -0
  272. package/src/components/Divider/Divider.interface.ts +40 -0
  273. package/src/components/Divider/Divider.styles.ts +11 -0
  274. package/src/components/Divider/Divider.tsx +65 -0
  275. package/src/components/Divider/appearance/dividerAccent.ts +9 -0
  276. package/src/components/Divider/appearance/dividerError.ts +9 -0
  277. package/src/components/Divider/appearance/dividerExtra.ts +9 -0
  278. package/src/components/Divider/appearance/dividerSize.ts +15 -0
  279. package/src/components/Divider/appearance/dividerSpecial.ts +9 -0
  280. package/src/components/Divider/appearance/dividerSuccess.ts +9 -0
  281. package/src/components/Divider/appearance/dividerSurface.ts +18 -0
  282. package/src/components/Divider/appearance/dividerWarning.ts +9 -0
  283. package/src/components/Divider/index.ts +28 -0
  284. package/src/components/Divider/stories/DividerAppearance.stories.tsx +75 -0
  285. package/src/components/Divider/stories/DividerDirection.stories.tsx +34 -0
  286. package/src/components/Divider/stories/DividerSize.stories.tsx +33 -0
  287. package/src/components/Divider/styles/divider.ts +9 -0
  288. package/src/components/Divider/styles/dividerDirection.ts +25 -0
  289. package/src/components/Divider/styles/dividerSize.ts +32 -0
  290. package/src/components/Dot/Dot.interface.ts +18 -0
  291. package/src/components/Dot/Dot.styles.ts +11 -0
  292. package/src/components/Dot/Dot.tsx +33 -0
  293. package/src/components/Dot/index.ts +9 -0
  294. package/src/components/Dot/stories/Dot.stories.tsx +23 -0
  295. package/src/components/Dot/styles/dot.ts +9 -0
  296. package/src/components/Dot/styles/dotShape.ts +22 -0
  297. package/src/components/Dot/styles/dotSize.ts +25 -0
  298. package/src/components/Drawer/Drawer.appearance.ts +10 -0
  299. package/src/components/Drawer/Drawer.interface.ts +67 -0
  300. package/src/components/Drawer/Drawer.styles.ts +7 -0
  301. package/src/components/Drawer/Drawer.tsx +132 -0
  302. package/src/components/Drawer/appearance/drawerSize.ts +36 -0
  303. package/src/components/Drawer/appearance/drawerSurface.ts +12 -0
  304. package/src/components/Drawer/index.ts +22 -0
  305. package/src/components/Drawer/stories/Drawer.stories.tsx +71 -0
  306. package/src/components/Drawer/styles/drawer.ts +60 -0
  307. package/src/components/Dropdown/Dropdown.appearance.ts +16 -0
  308. package/src/components/Dropdown/Dropdown.interface.ts +152 -0
  309. package/src/components/Dropdown/Dropdown.styles.ts +9 -0
  310. package/src/components/Dropdown/Dropdown.tsx +134 -0
  311. package/src/components/Dropdown/DropdownItem.appearance.ts +16 -0
  312. package/src/components/Dropdown/DropdownItem.tsx +141 -0
  313. package/src/components/Dropdown/appearance/dropdownAccent.ts +17 -0
  314. package/src/components/Dropdown/appearance/dropdownShape.ts +24 -0
  315. package/src/components/Dropdown/appearance/dropdownSize.ts +21 -0
  316. package/src/components/Dropdown/appearance/dropdownStyle.ts +17 -0
  317. package/src/components/Dropdown/appearance/dropdownSurface.ts +25 -0
  318. package/src/components/Dropdown/index.ts +45 -0
  319. package/src/components/Dropdown/stories/Dropdown.stories.tsx +62 -0
  320. package/src/components/Dropdown/styles/dropdown.ts +31 -0
  321. package/src/components/Dropdown/styles/dropdownSize.ts +36 -0
  322. package/src/components/Group/Group.appearance.ts +8 -0
  323. package/src/components/Group/Group.interface.ts +53 -0
  324. package/src/components/Group/Group.styles.ts +15 -0
  325. package/src/components/Group/Group.tsx +80 -0
  326. package/src/components/Group/appearance/groupSurface.ts +10 -0
  327. package/src/components/Group/index.ts +36 -0
  328. package/src/components/Group/stories/Group.stories.tsx +39 -0
  329. package/src/components/Group/styles/group.ts +9 -0
  330. package/src/components/Group/styles/groupAlign.ts +37 -0
  331. package/src/components/Group/styles/groupDirection.ts +40 -0
  332. package/src/components/Group/styles/groupJustify.ts +40 -0
  333. package/src/components/Group/styles/groupWrap.ts +22 -0
  334. package/src/components/HeroTitle/HeroTitle.appearance.ts +8 -0
  335. package/src/components/HeroTitle/HeroTitle.interface.ts +51 -0
  336. package/src/components/HeroTitle/HeroTitle.styles.ts +7 -0
  337. package/src/components/HeroTitle/HeroTitle.tsx +78 -0
  338. package/src/components/HeroTitle/appearance/heroTitleSize.ts +24 -0
  339. package/src/components/HeroTitle/index.ts +16 -0
  340. package/src/components/HeroTitle/stories/HeroTitle.stories.tsx +22 -0
  341. package/src/components/HeroTitle/styles/heroTitle.ts +11 -0
  342. package/src/components/Icon/Icon.interface.ts +42 -0
  343. package/src/components/Icon/Icon.styles.ts +11 -0
  344. package/src/components/Icon/Icon.tsx +96 -0
  345. package/src/components/Icon/index.ts +9 -0
  346. package/src/components/Icon/stories/Icon.stories.tsx +45 -0
  347. package/src/components/Icon/styles/icon.ts +12 -0
  348. package/src/components/Icon/styles/iconShape.ts +19 -0
  349. package/src/components/Icon/styles/iconSize.ts +61 -0
  350. package/src/components/Image/Image.interface.ts +31 -0
  351. package/src/components/Image/Image.styles.ts +7 -0
  352. package/src/components/Image/Image.tsx +95 -0
  353. package/src/components/Image/index.ts +5 -0
  354. package/src/components/Image/stories/Image.stories.tsx +18 -0
  355. package/src/components/Image/styles/image.ts +17 -0
  356. package/src/components/Input/Input.appearance.ts +22 -0
  357. package/src/components/Input/Input.interface.ts +86 -0
  358. package/src/components/Input/Input.styles.ts +11 -0
  359. package/src/components/Input/Input.tsx +159 -0
  360. package/src/components/Input/appearance/inputDefault.ts +20 -0
  361. package/src/components/Input/appearance/inputDisabled.ts +17 -0
  362. package/src/components/Input/appearance/inputError.ts +19 -0
  363. package/src/components/Input/appearance/inputRequire.ts +19 -0
  364. package/src/components/Input/appearance/inputShape.ts +24 -0
  365. package/src/components/Input/appearance/inputSize.ts +22 -0
  366. package/src/components/Input/appearance/inputStyle.ts +17 -0
  367. package/src/components/Input/appearance/inputSuccess.ts +19 -0
  368. package/src/components/Input/index.ts +30 -0
  369. package/src/components/Input/stories/InputDefault.stories.tsx +31 -0
  370. package/src/components/Input/stories/InputDisabled.stories.tsx +34 -0
  371. package/src/components/Input/stories/InputError.stories.tsx +30 -0
  372. package/src/components/Input/stories/InputReadonly.stories.tsx +21 -0
  373. package/src/components/Input/stories/InputRequire.stories.tsx +30 -0
  374. package/src/components/Input/stories/InputShape.stories.tsx +52 -0
  375. package/src/components/Input/stories/InputSize.stories.tsx +40 -0
  376. package/src/components/Input/stories/InputStyle.stories.tsx +40 -0
  377. package/src/components/Input/stories/InputSuccess.stories.tsx +30 -0
  378. package/src/components/Input/styles/input.ts +26 -0
  379. package/src/components/Input/styles/inputShape.ts +31 -0
  380. package/src/components/Input/styles/inputSize.ts +33 -0
  381. package/src/components/InputNumber/InputNumber.appearance.ts +20 -0
  382. package/src/components/InputNumber/InputNumber.interface.ts +79 -0
  383. package/src/components/InputNumber/InputNumber.styles.ts +11 -0
  384. package/src/components/InputNumber/InputNumber.tsx +224 -0
  385. package/src/components/InputNumber/appearance/inputNumberDefault.ts +14 -0
  386. package/src/components/InputNumber/appearance/inputNumberError.ts +14 -0
  387. package/src/components/InputNumber/appearance/inputNumberRequire.ts +14 -0
  388. package/src/components/InputNumber/appearance/inputNumberShape.ts +24 -0
  389. package/src/components/InputNumber/appearance/inputNumberSize.ts +30 -0
  390. package/src/components/InputNumber/appearance/inputNumberStyle.ts +19 -0
  391. package/src/components/InputNumber/appearance/inputNumberSuccess.ts +14 -0
  392. package/src/components/InputNumber/index.ts +34 -0
  393. package/src/components/InputNumber/stories/InputNumber.stories.tsx +93 -0
  394. package/src/components/InputNumber/styles/inputNumber.ts +25 -0
  395. package/src/components/InputNumber/styles/inputNumberShape.ts +34 -0
  396. package/src/components/InputNumber/styles/inputNumberSize.ts +36 -0
  397. package/src/components/InputPassword/InputPassword.appearance.ts +22 -0
  398. package/src/components/InputPassword/InputPassword.interface.ts +90 -0
  399. package/src/components/InputPassword/InputPassword.styles.ts +11 -0
  400. package/src/components/InputPassword/InputPassword.tsx +202 -0
  401. package/src/components/InputPassword/appearance/inputPasswordDefault.ts +22 -0
  402. package/src/components/InputPassword/appearance/inputPasswordDisabled.ts +19 -0
  403. package/src/components/InputPassword/appearance/inputPasswordError.ts +19 -0
  404. package/src/components/InputPassword/appearance/inputPasswordRequire.ts +19 -0
  405. package/src/components/InputPassword/appearance/inputPasswordShape.ts +24 -0
  406. package/src/components/InputPassword/appearance/inputPasswordSize.ts +26 -0
  407. package/src/components/InputPassword/appearance/inputPasswordStyle.ts +19 -0
  408. package/src/components/InputPassword/appearance/inputPasswordSuccess.ts +19 -0
  409. package/src/components/InputPassword/index.ts +36 -0
  410. package/src/components/InputPassword/stories/InputPassword.stories.tsx +67 -0
  411. package/src/components/InputPassword/styles/inputPassword.ts +22 -0
  412. package/src/components/InputPassword/styles/inputPasswordShape.ts +34 -0
  413. package/src/components/InputPassword/styles/inputPasswordSize.ts +36 -0
  414. package/src/components/Label/Label.appearance.ts +20 -0
  415. package/src/components/Label/Label.interface.ts +59 -0
  416. package/src/components/Label/Label.styles.ts +11 -0
  417. package/src/components/Label/Label.tsx +126 -0
  418. package/src/components/Label/Label.web.tsx +124 -0
  419. package/src/components/Label/appearance/labelAccent.ts +10 -0
  420. package/src/components/Label/appearance/labelDanger.ts +10 -0
  421. package/src/components/Label/appearance/labelExtra.ts +10 -0
  422. package/src/components/Label/appearance/labelGradient.ts +10 -0
  423. package/src/components/Label/appearance/labelShape.ts +9 -0
  424. package/src/components/Label/appearance/labelSize.ts +13 -0
  425. package/src/components/Label/appearance/labelSurface.ts +22 -0
  426. package/src/components/Label/index.ts +24 -0
  427. package/src/components/Label/stories/LabelShape.stories.tsx +33 -0
  428. package/src/components/Label/stories/LabelSize.stories.tsx +57 -0
  429. package/src/components/Label/stories/LabelText.stories.tsx +45 -0
  430. package/src/components/Label/styles/label.ts +13 -0
  431. package/src/components/Label/styles/labelShape.ts +23 -0
  432. package/src/components/Label/styles/labelSize.ts +55 -0
  433. package/src/components/Link/Link.appearance.ts +16 -0
  434. package/src/components/Link/Link.interface.ts +54 -0
  435. package/src/components/Link/Link.styles.ts +7 -0
  436. package/src/components/Link/Link.tsx +119 -0
  437. package/src/components/Link/appearance/linkAccent.ts +12 -0
  438. package/src/components/Link/appearance/linkDanger.ts +9 -0
  439. package/src/components/Link/appearance/linkExtra.ts +9 -0
  440. package/src/components/Link/appearance/linkStyle.ts +14 -0
  441. package/src/components/Link/appearance/linkSurface.ts +12 -0
  442. package/src/components/Link/index.ts +18 -0
  443. package/src/components/Link/stories/Link.stories.tsx +23 -0
  444. package/src/components/Link/styles/link.ts +14 -0
  445. package/src/components/List/List.appearance.ts +28 -0
  446. package/src/components/List/List.context.ts +7 -0
  447. package/src/components/List/List.interface.ts +94 -0
  448. package/src/components/List/List.styles.ts +9 -0
  449. package/src/components/List/List.tsx +119 -0
  450. package/src/components/List/ListItem.tsx +68 -0
  451. package/src/components/List/appearance/listAccent.ts +10 -0
  452. package/src/components/List/appearance/listDanger.ts +9 -0
  453. package/src/components/List/appearance/listError.ts +9 -0
  454. package/src/components/List/appearance/listExtra.ts +9 -0
  455. package/src/components/List/appearance/listInfo.ts +14 -0
  456. package/src/components/List/appearance/listSize.ts +27 -0
  457. package/src/components/List/appearance/listSpecial.ts +9 -0
  458. package/src/components/List/appearance/listStyle.ts +19 -0
  459. package/src/components/List/appearance/listSuccess.ts +9 -0
  460. package/src/components/List/appearance/listSurface.ts +18 -0
  461. package/src/components/List/appearance/listWarning.ts +9 -0
  462. package/src/components/List/index.ts +42 -0
  463. package/src/components/List/stories/List.stories.tsx +48 -0
  464. package/src/components/List/styles/list.ts +22 -0
  465. package/src/components/List/styles/listDirection.ts +40 -0
  466. package/src/components/List/styles/listSize.ts +6 -0
  467. package/src/components/Loader/Loader.appearance.ts +30 -0
  468. package/src/components/Loader/Loader.interface.ts +75 -0
  469. package/src/components/Loader/Loader.styles.ts +11 -0
  470. package/src/components/Loader/Loader.tsx +135 -0
  471. package/src/components/Loader/appearance/loaderAccent.ts +16 -0
  472. package/src/components/Loader/appearance/loaderDanger.ts +11 -0
  473. package/src/components/Loader/appearance/loaderError.ts +11 -0
  474. package/src/components/Loader/appearance/loaderExtra.ts +11 -0
  475. package/src/components/Loader/appearance/loaderInfo.ts +11 -0
  476. package/src/components/Loader/appearance/loaderShape.ts +24 -0
  477. package/src/components/Loader/appearance/loaderSize.ts +18 -0
  478. package/src/components/Loader/appearance/loaderSpecial.ts +11 -0
  479. package/src/components/Loader/appearance/loaderStyle.ts +17 -0
  480. package/src/components/Loader/appearance/loaderSuccess.ts +11 -0
  481. package/src/components/Loader/appearance/loaderSurface.ts +26 -0
  482. package/src/components/Loader/appearance/loaderWarning.ts +11 -0
  483. package/src/components/Loader/index.ts +36 -0
  484. package/src/components/Loader/stories/LoaderDefault.stories.tsx +69 -0
  485. package/src/components/Loader/stories/LoaderShape.stories.tsx +51 -0
  486. package/src/components/Loader/stories/LoaderSize.stories.tsx +33 -0
  487. package/src/components/Loader/stories/LoaderStyle.stories.tsx +39 -0
  488. package/src/components/Loader/stories/LoaderText.stories.tsx +30 -0
  489. package/src/components/Loader/styles/loader.ts +14 -0
  490. package/src/components/Loader/styles/loaderShape.ts +34 -0
  491. package/src/components/Loader/styles/loaderSize.ts +28 -0
  492. package/src/components/Logo/Logo.interface.ts +16 -0
  493. package/src/components/Logo/Logo.styles.ts +11 -0
  494. package/src/components/Logo/Logo.tsx +53 -0
  495. package/src/components/Logo/index.ts +9 -0
  496. package/src/components/Logo/stories/Logo.stories.tsx +31 -0
  497. package/src/components/Logo/styles/logo.ts +13 -0
  498. package/src/components/Logo/styles/logoAlign.ts +28 -0
  499. package/src/components/Logo/styles/logoSize.ts +34 -0
  500. package/src/components/MenuItem/MenuItem.appearance.ts +18 -0
  501. package/src/components/MenuItem/MenuItem.interface.ts +100 -0
  502. package/src/components/MenuItem/MenuItem.styles.ts +13 -0
  503. package/src/components/MenuItem/MenuItem.tsx +173 -0
  504. package/src/components/MenuItem/appearance/menuItemAccent.ts +26 -0
  505. package/src/components/MenuItem/appearance/menuItemError.ts +19 -0
  506. package/src/components/MenuItem/appearance/menuItemShape.ts +24 -0
  507. package/src/components/MenuItem/appearance/menuItemSize.ts +48 -0
  508. package/src/components/MenuItem/appearance/menuItemStyle.ts +17 -0
  509. package/src/components/MenuItem/appearance/menuItemSurface.ts +38 -0
  510. package/src/components/MenuItem/index.ts +36 -0
  511. package/src/components/MenuItem/stories/MenuItem.stories.tsx +52 -0
  512. package/src/components/MenuItem/styles/menuItem.ts +25 -0
  513. package/src/components/MenuItem/styles/menuItemJustify.ts +18 -0
  514. package/src/components/MenuItem/styles/menuItemShape.ts +37 -0
  515. package/src/components/MenuItem/styles/menuItemSize.ts +65 -0
  516. package/src/components/Modal/Modal.interface.ts +35 -0
  517. package/src/components/Modal/Modal.styles.ts +7 -0
  518. package/src/components/Modal/Modal.tsx +73 -0
  519. package/src/components/Modal/index.ts +5 -0
  520. package/src/components/Modal/stories/Modal.stories.tsx +47 -0
  521. package/src/components/Modal/styles/modal.ts +36 -0
  522. package/src/components/Overlay/Overlay.appearance.ts +8 -0
  523. package/src/components/Overlay/Overlay.interface.ts +34 -0
  524. package/src/components/Overlay/Overlay.styles.ts +7 -0
  525. package/src/components/Overlay/Overlay.tsx +46 -0
  526. package/src/components/Overlay/appearance/overlayDefault.ts +12 -0
  527. package/src/components/Overlay/index.ts +16 -0
  528. package/src/components/Overlay/stories/Overlay.stories.tsx +24 -0
  529. package/src/components/Overlay/styles/overlay.ts +18 -0
  530. package/src/components/Pagination/Pagination.appearance.ts +12 -0
  531. package/src/components/Pagination/Pagination.interface.ts +46 -0
  532. package/src/components/Pagination/Pagination.styles.ts +9 -0
  533. package/src/components/Pagination/Pagination.tsx +107 -0
  534. package/src/components/Pagination/appearance/paginationAccent.ts +12 -0
  535. package/src/components/Pagination/appearance/paginationSize.ts +22 -0
  536. package/src/components/Pagination/appearance/paginationSurface.ts +12 -0
  537. package/src/components/Pagination/index.ts +24 -0
  538. package/src/components/Pagination/stories/Pagination.stories.tsx +37 -0
  539. package/src/components/Pagination/styles/pagination.ts +14 -0
  540. package/src/components/Pagination/styles/paginationSize.ts +46 -0
  541. package/src/components/Radio/Radio.appearance.ts +22 -0
  542. package/src/components/Radio/Radio.interface.ts +83 -0
  543. package/src/components/Radio/Radio.styles.ts +11 -0
  544. package/src/components/Radio/Radio.tsx +159 -0
  545. package/src/components/Radio/appearance/radioDefault.ts +54 -0
  546. package/src/components/Radio/appearance/radioDisabled.ts +17 -0
  547. package/src/components/Radio/appearance/radioError.ts +17 -0
  548. package/src/components/Radio/appearance/radioRequire.ts +17 -0
  549. package/src/components/Radio/appearance/radioShape.ts +24 -0
  550. package/src/components/Radio/appearance/radioSize.ts +21 -0
  551. package/src/components/Radio/appearance/radioStyle.ts +20 -0
  552. package/src/components/Radio/appearance/radioSuccess.ts +17 -0
  553. package/src/components/Radio/index.ts +27 -0
  554. package/src/components/Radio/stories/RadioDefault.stories.tsx +26 -0
  555. package/src/components/Radio/stories/RadioDisabled.stories.tsx +27 -0
  556. package/src/components/Radio/stories/RadioError.stories.tsx +26 -0
  557. package/src/components/Radio/stories/RadioRequire.stories.tsx +26 -0
  558. package/src/components/Radio/stories/RadioSize.stories.tsx +36 -0
  559. package/src/components/Radio/stories/RadioStyle.stories.tsx +41 -0
  560. package/src/components/Radio/stories/RadioSuccess.stories.tsx +26 -0
  561. package/src/components/Radio/styles/radio.ts +37 -0
  562. package/src/components/Radio/styles/radioShape.ts +27 -0
  563. package/src/components/Radio/styles/radioSize.ts +25 -0
  564. package/src/components/RangeSlider/RangeSlider.interface.ts +35 -0
  565. package/src/components/RangeSlider/RangeSlider.styles.ts +7 -0
  566. package/src/components/RangeSlider/RangeSlider.tsx +212 -0
  567. package/src/components/RangeSlider/index.ts +9 -0
  568. package/src/components/RangeSlider/stories/RangeSlider.stories.tsx +55 -0
  569. package/src/components/RangeSlider/styles/rangeSlider.ts +37 -0
  570. package/src/components/Response/Response.interface.ts +29 -0
  571. package/src/components/Response/Response.styles.ts +7 -0
  572. package/src/components/Response/Response.tsx +68 -0
  573. package/src/components/Response/index.ts +5 -0
  574. package/src/components/Response/stories/Response.stories.tsx +22 -0
  575. package/src/components/Response/styles/response.ts +22 -0
  576. package/src/components/Scrollbar/Scrollbar.interface.ts +19 -0
  577. package/src/components/Scrollbar/Scrollbar.styles.ts +7 -0
  578. package/src/components/Scrollbar/Scrollbar.tsx +38 -0
  579. package/src/components/Scrollbar/index.ts +5 -0
  580. package/src/components/Scrollbar/stories/Scrollbar.stories.tsx +61 -0
  581. package/src/components/Scrollbar/styles/scrollbar.ts +12 -0
  582. package/src/components/Search/Search.interface.ts +23 -0
  583. package/src/components/Search/Search.styles.ts +7 -0
  584. package/src/components/Search/Search.tsx +69 -0
  585. package/src/components/Search/index.ts +5 -0
  586. package/src/components/Search/stories/Search.stories.tsx +24 -0
  587. package/src/components/Search/styles/search.ts +28 -0
  588. package/src/components/Segmented/Segmented.appearance.ts +22 -0
  589. package/src/components/Segmented/Segmented.interface.ts +101 -0
  590. package/src/components/Segmented/Segmented.styles.ts +13 -0
  591. package/src/components/Segmented/Segmented.tsx +219 -0
  592. package/src/components/Segmented/appearance/segmentedDefault.ts +26 -0
  593. package/src/components/Segmented/appearance/segmentedDisabled.ts +15 -0
  594. package/src/components/Segmented/appearance/segmentedError.ts +15 -0
  595. package/src/components/Segmented/appearance/segmentedRequire.ts +14 -0
  596. package/src/components/Segmented/appearance/segmentedShape.ts +24 -0
  597. package/src/components/Segmented/appearance/segmentedSize.ts +31 -0
  598. package/src/components/Segmented/appearance/segmentedStyle.ts +19 -0
  599. package/src/components/Segmented/appearance/segmentedSuccess.ts +15 -0
  600. package/src/components/Segmented/index.ts +38 -0
  601. package/src/components/Segmented/stories/SegmentedDisabled.stories.tsx +25 -0
  602. package/src/components/Segmented/stories/SegmentedIcon.stories.tsx +46 -0
  603. package/src/components/Segmented/stories/SegmentedLabel.stories.tsx +43 -0
  604. package/src/components/Segmented/stories/SegmentedLabelIcon.stories.tsx +40 -0
  605. package/src/components/Segmented/stories/SegmentedShape.stories.tsx +54 -0
  606. package/src/components/Segmented/stories/SegmentedSize.stories.tsx +56 -0
  607. package/src/components/Segmented/stories/SegmentedStories.config.tsx +89 -0
  608. package/src/components/Segmented/stories/SegmentedStyle.stories.tsx +42 -0
  609. package/src/components/Segmented/styles/segmented.ts +27 -0
  610. package/src/components/Segmented/styles/segmentedShape.ts +37 -0
  611. package/src/components/Segmented/styles/segmentedSize.ts +65 -0
  612. package/src/components/Segmented/styles/segmentedWidth.ts +33 -0
  613. package/src/components/Select/Select.appearance.ts +22 -0
  614. package/src/components/Select/Select.interface.ts +80 -0
  615. package/src/components/Select/Select.styles.ts +9 -0
  616. package/src/components/Select/Select.tsx +178 -0
  617. package/src/components/Select/appearance/selectDefault.ts +17 -0
  618. package/src/components/Select/appearance/selectDisabled.ts +13 -0
  619. package/src/components/Select/appearance/selectError.ts +17 -0
  620. package/src/components/Select/appearance/selectRequire.ts +17 -0
  621. package/src/components/Select/appearance/selectShape.ts +21 -0
  622. package/src/components/Select/appearance/selectSize.ts +30 -0
  623. package/src/components/Select/appearance/selectStyle.ts +17 -0
  624. package/src/components/Select/appearance/selectSuccess.ts +17 -0
  625. package/src/components/Select/index.ts +29 -0
  626. package/src/components/Select/stories/Select.stories.tsx +67 -0
  627. package/src/components/Select/styles/select.ts +30 -0
  628. package/src/components/Select/styles/selectSize.ts +48 -0
  629. package/src/components/Switch/Switch.appearance.ts +20 -0
  630. package/src/components/Switch/Switch.interface.ts +70 -0
  631. package/src/components/Switch/Switch.styles.ts +11 -0
  632. package/src/components/Switch/Switch.tsx +143 -0
  633. package/src/components/Switch/appearance/switchDefault.ts +14 -0
  634. package/src/components/Switch/appearance/switchDisabled.ts +14 -0
  635. package/src/components/Switch/appearance/switchError.ts +14 -0
  636. package/src/components/Switch/appearance/switchRequire.ts +14 -0
  637. package/src/components/Switch/appearance/switchShape.ts +7 -0
  638. package/src/components/Switch/appearance/switchSize.ts +21 -0
  639. package/src/components/Switch/appearance/switchStyle.ts +19 -0
  640. package/src/components/Switch/appearance/switchSuccess.ts +14 -0
  641. package/src/components/Switch/index.ts +32 -0
  642. package/src/components/Switch/stories/SwitchDefault.stories.tsx +46 -0
  643. package/src/components/Switch/stories/SwitchDisabled.stories.tsx +51 -0
  644. package/src/components/Switch/stories/SwitchError.stories.tsx +46 -0
  645. package/src/components/Switch/stories/SwitchRequire.stories.tsx +46 -0
  646. package/src/components/Switch/stories/SwitchSize.stories.tsx +37 -0
  647. package/src/components/Switch/stories/SwitchStories.config.tsx +28 -0
  648. package/src/components/Switch/stories/SwitchSuccess.stories.tsx +46 -0
  649. package/src/components/Switch/stories/SwitchTitleDescSwitch.stories.tsx +50 -0
  650. package/src/components/Switch/stories/SwitchTitleSwitch.stories.tsx +49 -0
  651. package/src/components/Switch/styles/switch.ts +43 -0
  652. package/src/components/Switch/styles/switchAlign.ts +29 -0
  653. package/src/components/Switch/styles/switchSize.ts +40 -0
  654. package/src/components/Tab/Tab.interface.ts +21 -0
  655. package/src/components/Tab/Tab.styles.ts +9 -0
  656. package/src/components/Tab/Tab.tsx +44 -0
  657. package/src/components/Tab/index.ts +7 -0
  658. package/src/components/Tab/stories/Tab.stories.tsx +67 -0
  659. package/src/components/Tab/styles/tab.ts +19 -0
  660. package/src/components/Tab/styles/tabSize.ts +41 -0
  661. package/src/components/Text/Text.interface.ts +32 -0
  662. package/src/components/Text/Text.styles.ts +7 -0
  663. package/src/components/Text/Text.tsx +56 -0
  664. package/src/components/Text/index.ts +5 -0
  665. package/src/components/Text/stories/Text.stories.tsx +84 -0
  666. package/src/components/Text/styles/text.ts +7 -0
  667. package/src/components/Textarea/Textarea.appearance.ts +22 -0
  668. package/src/components/Textarea/Textarea.interface.ts +81 -0
  669. package/src/components/Textarea/Textarea.styles.ts +11 -0
  670. package/src/components/Textarea/Textarea.tsx +158 -0
  671. package/src/components/Textarea/appearance/textareaDefault.ts +26 -0
  672. package/src/components/Textarea/appearance/textareaDisabled.ts +17 -0
  673. package/src/components/Textarea/appearance/textareaError.ts +17 -0
  674. package/src/components/Textarea/appearance/textareaRequire.ts +17 -0
  675. package/src/components/Textarea/appearance/textareaShape.ts +24 -0
  676. package/src/components/Textarea/appearance/textareaSize.ts +22 -0
  677. package/src/components/Textarea/appearance/textareaStyle.ts +17 -0
  678. package/src/components/Textarea/appearance/textareaSuccess.ts +17 -0
  679. package/src/components/Textarea/index.ts +36 -0
  680. package/src/components/Textarea/stories/Textarea.stories.tsx +61 -0
  681. package/src/components/Textarea/styles/textarea.ts +17 -0
  682. package/src/components/Textarea/styles/textareaShape.ts +34 -0
  683. package/src/components/Textarea/styles/textareaSize.ts +32 -0
  684. package/src/components/Tile/Tile.appearance.ts +14 -0
  685. package/src/components/Tile/Tile.interface.ts +97 -0
  686. package/src/components/Tile/Tile.styles.ts +11 -0
  687. package/src/components/Tile/Tile.tsx +174 -0
  688. package/src/components/Tile/appearance/tileShape.ts +24 -0
  689. package/src/components/Tile/appearance/tileSize.ts +42 -0
  690. package/src/components/Tile/appearance/tileStyle.ts +17 -0
  691. package/src/components/Tile/appearance/tileSurface.ts +34 -0
  692. package/src/components/Tile/index.ts +30 -0
  693. package/src/components/Tile/stories/TileBadge.stories.tsx +20 -0
  694. package/src/components/Tile/stories/TileDefault.stories.tsx +40 -0
  695. package/src/components/Tile/stories/TileIcon.stories.tsx +23 -0
  696. package/src/components/Tile/stories/TileShape.stories.tsx +52 -0
  697. package/src/components/Tile/stories/TileSize.stories.tsx +53 -0
  698. package/src/components/Tile/stories/TileStyle.stories.tsx +40 -0
  699. package/src/components/Tile/stories/TileSwap.stories.tsx +60 -0
  700. package/src/components/Tile/styles/tile.ts +27 -0
  701. package/src/components/Tile/styles/tileShape.ts +34 -0
  702. package/src/components/Tile/styles/tileSize.ts +62 -0
  703. package/src/components/Title/Title.interface.ts +26 -0
  704. package/src/components/Title/Title.styles.ts +7 -0
  705. package/src/components/Title/Title.tsx +46 -0
  706. package/src/components/Title/index.ts +5 -0
  707. package/src/components/Title/stories/Title.stories.tsx +68 -0
  708. package/src/components/Title/styles/title.ts +7 -0
  709. package/src/components/Tooltip/Tooltip.appearance.ts +22 -0
  710. package/src/components/Tooltip/Tooltip.interface.ts +81 -0
  711. package/src/components/Tooltip/Tooltip.styles.ts +7 -0
  712. package/src/components/Tooltip/Tooltip.tsx +116 -0
  713. package/src/components/Tooltip/appearance/tooltipDefault.ts +12 -0
  714. package/src/components/Tooltip/appearance/tooltipDisabled.ts +11 -0
  715. package/src/components/Tooltip/appearance/tooltipError.ts +12 -0
  716. package/src/components/Tooltip/appearance/tooltipRequire.ts +12 -0
  717. package/src/components/Tooltip/appearance/tooltipShape.ts +24 -0
  718. package/src/components/Tooltip/appearance/tooltipSize.ts +21 -0
  719. package/src/components/Tooltip/appearance/tooltipStyle.ts +17 -0
  720. package/src/components/Tooltip/appearance/tooltipSuccess.ts +12 -0
  721. package/src/components/Tooltip/index.ts +26 -0
  722. package/src/components/Tooltip/stories/Tooltip.stories.tsx +61 -0
  723. package/src/components/Tooltip/styles/tooltip.ts +36 -0
  724. package/src/components/Warning/Warning.appearance.ts +22 -0
  725. package/src/components/Warning/Warning.interface.ts +86 -0
  726. package/src/components/Warning/Warning.styles.ts +11 -0
  727. package/src/components/Warning/Warning.tsx +116 -0
  728. package/src/components/Warning/appearance/warningAccent.ts +28 -0
  729. package/src/components/Warning/appearance/warningError.ts +28 -0
  730. package/src/components/Warning/appearance/warningInfo.ts +38 -0
  731. package/src/components/Warning/appearance/warningShape.ts +24 -0
  732. package/src/components/Warning/appearance/warningSize.ts +20 -0
  733. package/src/components/Warning/appearance/warningStyle.ts +17 -0
  734. package/src/components/Warning/appearance/warningSuccess.ts +18 -0
  735. package/src/components/Warning/appearance/warningWarning.ts +38 -0
  736. package/src/components/Warning/index.ts +28 -0
  737. package/src/components/Warning/stories/WarningDefault.stories.tsx +52 -0
  738. package/src/components/Warning/stories/WarningMuted.stories.tsx +40 -0
  739. package/src/components/Warning/stories/WarningShape.stories.tsx +52 -0
  740. package/src/components/Warning/stories/WarningSize.stories.tsx +28 -0
  741. package/src/components/Warning/stories/WarningStyle.stories.tsx +40 -0
  742. package/src/components/Warning/styles/warning.ts +13 -0
  743. package/src/components/Warning/styles/warningShape.ts +38 -0
  744. package/src/components/Warning/styles/warningSize.ts +31 -0
  745. package/src/icons/app_logo.svg +56 -0
  746. package/src/icons/connection.svg +9 -0
  747. package/src/icons/reject.svg +4 -0
  748. package/src/images/manager.png +0 -0
  749. package/src/index.tsx +957 -0
  750. package/src/module.d.ts +19 -0
  751. package/src/styles/borderColor/index.ts +35 -0
  752. package/src/styles/direction/index.ts +30 -0
  753. package/src/styles/fill/index.ts +58 -0
  754. package/src/styles/gap/index.ts +19 -0
  755. package/src/styles/iconFill/index.ts +46 -0
  756. package/src/styles/shape/index.ts +29 -0
  757. package/src/styles/textAlign/index.ts +22 -0
  758. package/src/styles/textColor/index.ts +18 -0
  759. package/src/styles/textSize/index.ts +55 -0
  760. package/src/styles/textWeight/index.ts +28 -0
  761. package/src/styles/titleSize/index.ts +50 -0
  762. package/src/styles/tokens.ts +31 -0
  763. package/src/styles/width/index.ts +29 -0
  764. package/src/utils/colorTokens/colorTokens.interface.ts +3 -0
  765. package/src/utils/colorTokens/colorTokens.ts +17 -0
  766. package/src/utils/colorTokens/index.ts +7 -0
  767. package/src/utils/getVariantsPropsList/getVariantsPropsList.interface.ts +10 -0
  768. package/src/utils/getVariantsPropsList/getVariantsPropsList.ts +51 -0
  769. package/src/utils/getVariantsPropsList/index.ts +5 -0
  770. package/src/utils/index.ts +15 -0
  771. package/tsconfig.json +14 -0
@@ -0,0 +1,212 @@
1
+ import { useCallback, useState } from 'react'
2
+ import { PanResponder, View } from 'react-native'
3
+
4
+ import { tokens } from '../../styles/tokens'
5
+ import { Group } from '../Group'
6
+ import type {
7
+ RangeSliderGesture,
8
+ RangeSliderProps,
9
+ RangeSliderValue,
10
+ } from './RangeSlider.interface'
11
+ import { styles } from './RangeSlider.styles'
12
+ import { THUMB_SIZE } from './styles/rangeSlider'
13
+
14
+ function clampNumber(value: number, min: number, max: number) {
15
+ return Math.min(max, Math.max(min, value))
16
+ }
17
+
18
+ function getSteppedValue(
19
+ value: number,
20
+ min: number,
21
+ max: number,
22
+ step: number,
23
+ ) {
24
+ const steppedValue = Math.round(value / step) * step
25
+ return clampNumber(Number(steppedValue.toFixed(10)), min, max)
26
+ }
27
+
28
+ function RangeSlider(props: RangeSliderProps) {
29
+ const {
30
+ width,
31
+ min = 0,
32
+ max = 100,
33
+ fillHandle,
34
+ fillRail,
35
+ fillTrack,
36
+ range,
37
+ step = 1,
38
+ style,
39
+ value = 0,
40
+ before,
41
+ after,
42
+ isDisabled,
43
+ onChangeSlider,
44
+ onValueChange,
45
+ children,
46
+ } = props
47
+
48
+ const [trackWidth, setTrackWidth] = useState(0)
49
+ const [gesture, setGesture] = useState<RangeSliderGesture | null>(null)
50
+
51
+ const isRangeValue = Array.isArray(value) || range === true
52
+ const startValue = Array.isArray(value) ? value[0] : min
53
+ const endValue = Array.isArray(value) ? value[1] : value
54
+ const currentRangeValue: [number, number] = Array.isArray(value)
55
+ ? value
56
+ : [min, value]
57
+
58
+ const notifyChange = useCallback(
59
+ (nextValue: RangeSliderValue) => {
60
+ onValueChange?.(nextValue)
61
+ onChangeSlider?.(nextValue)
62
+ },
63
+ [onChangeSlider, onValueChange],
64
+ )
65
+
66
+ const getValueFromPosition = useCallback(
67
+ (position: number) => {
68
+ if (trackWidth <= 0) {
69
+ return min
70
+ }
71
+
72
+ const ratio = clampNumber(position / trackWidth, 0, 1)
73
+ const rawValue = min + ratio * (max - min)
74
+ return getSteppedValue(rawValue, min, max, step)
75
+ },
76
+ [max, min, step, trackWidth],
77
+ )
78
+
79
+ const panResponder = PanResponder.create({
80
+ onMoveShouldSetPanResponder: () => {
81
+ return !isDisabled
82
+ },
83
+ onPanResponderGrant: (event) => {
84
+ const nextValue = getValueFromPosition(event.nativeEvent.locationX)
85
+
86
+ if (!isRangeValue) {
87
+ notifyChange(nextValue)
88
+ return
89
+ }
90
+
91
+ const distanceToStart = Math.abs(nextValue - currentRangeValue[0])
92
+ const distanceToEnd = Math.abs(nextValue - currentRangeValue[1])
93
+ const thumbKey = distanceToStart <= distanceToEnd ? 'start' : 'end'
94
+ setGesture({
95
+ rangeValue: currentRangeValue,
96
+ thumb: thumbKey,
97
+ })
98
+
99
+ if (thumbKey === 'start') {
100
+ notifyChange([
101
+ Math.min(nextValue, currentRangeValue[1]),
102
+ currentRangeValue[1],
103
+ ])
104
+ return
105
+ }
106
+
107
+ notifyChange([
108
+ currentRangeValue[0],
109
+ Math.max(nextValue, currentRangeValue[0]),
110
+ ])
111
+ },
112
+ onPanResponderMove: (event) => {
113
+ const nextValue = getValueFromPosition(event.nativeEvent.locationX)
114
+
115
+ if (!isRangeValue) {
116
+ notifyChange(nextValue)
117
+ return
118
+ }
119
+
120
+ const lockedRangeValue = gesture?.rangeValue || currentRangeValue
121
+ const thumbKey = gesture?.thumb
122
+ const distanceToStart = Math.abs(nextValue - lockedRangeValue[0])
123
+ const distanceToEnd = Math.abs(nextValue - lockedRangeValue[1])
124
+ const resolvedThumb =
125
+ thumbKey || (distanceToStart <= distanceToEnd ? 'start' : 'end')
126
+
127
+ if (resolvedThumb === 'start') {
128
+ notifyChange([
129
+ Math.min(nextValue, lockedRangeValue[1]),
130
+ lockedRangeValue[1],
131
+ ])
132
+ return
133
+ }
134
+
135
+ notifyChange([
136
+ lockedRangeValue[0],
137
+ Math.max(nextValue, lockedRangeValue[0]),
138
+ ])
139
+ },
140
+ onPanResponderRelease: () => {
141
+ setGesture(null)
142
+ },
143
+ onStartShouldSetPanResponder: () => {
144
+ return !isDisabled
145
+ },
146
+ })
147
+
148
+ const startOffset =
149
+ trackWidth === 0 ? 0 : ((startValue - min) / (max - min)) * trackWidth
150
+ const endOffset =
151
+ trackWidth === 0 ? 0 : ((endValue - min) / (max - min)) * trackWidth
152
+ const trackFillLeft = isRangeValue ? startOffset : 0
153
+ const trackFillWidth = isRangeValue ? endOffset - startOffset : endOffset
154
+
155
+ return (
156
+ <Group
157
+ width={width}
158
+ direction="vertical"
159
+ style={[styles.rangeSlider, style && style]}
160
+ >
161
+ {before}
162
+ <View
163
+ style={styles.rangeSlider__track}
164
+ onLayout={(event) => {
165
+ setTrackWidth(event.nativeEvent.layout.width)
166
+ }}
167
+ {...panResponder.panHandlers}
168
+ >
169
+ <View
170
+ pointerEvents="none"
171
+ style={[
172
+ styles.rangeSlider__rail,
173
+ tokens[`fill_${fillRail || 'surfaceTertiary'}`],
174
+ ]}
175
+ />
176
+ <View
177
+ pointerEvents="none"
178
+ style={[
179
+ styles.rangeSlider__trackFill,
180
+ tokens[`fill_${fillTrack || 'accentPrimary'}`],
181
+ {
182
+ width: Math.max(trackFillWidth, 0),
183
+ left: trackFillLeft,
184
+ },
185
+ ]}
186
+ />
187
+ {isRangeValue && (
188
+ <View
189
+ pointerEvents="none"
190
+ style={[
191
+ styles.rangeSlider__thumb,
192
+ tokens[`fill_${fillHandle || 'accentPrimary'}`],
193
+ { left: startOffset - THUMB_SIZE / 2 },
194
+ ]}
195
+ />
196
+ )}
197
+ <View
198
+ pointerEvents="none"
199
+ style={[
200
+ styles.rangeSlider__thumb,
201
+ tokens[`fill_${fillHandle || 'accentPrimary'}`],
202
+ { left: endOffset - THUMB_SIZE / 2 },
203
+ ]}
204
+ />
205
+ </View>
206
+ {children}
207
+ {after}
208
+ </Group>
209
+ )
210
+ }
211
+
212
+ export { RangeSlider }
@@ -0,0 +1,9 @@
1
+ import { RangeSlider } from './RangeSlider'
2
+ import type {
3
+ RangeSliderProps,
4
+ RangeSliderValue,
5
+ } from './RangeSlider.interface'
6
+ import { THUMB_SIZE } from './styles/rangeSlider'
7
+
8
+ export { RangeSlider, THUMB_SIZE }
9
+ export type { RangeSliderProps, RangeSliderValue }
@@ -0,0 +1,55 @@
1
+ import { useState } from 'react'
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+
5
+ import { RangeSlider } from '../RangeSlider'
6
+ import type { RangeSliderProps } from '../RangeSlider.interface'
7
+
8
+ function RangeSliderPlayground(props: RangeSliderProps) {
9
+ const { value, onValueChange, ...restProps } = props
10
+ const [sliderValue, setSliderValue] = useState(value ?? 20)
11
+
12
+ return (
13
+ <RangeSlider
14
+ {...restProps}
15
+ value={sliderValue}
16
+ onValueChange={(nextValue) => {
17
+ setSliderValue(nextValue)
18
+ onValueChange?.(nextValue)
19
+ }}
20
+ />
21
+ )
22
+ }
23
+
24
+ const RangeSliderMeta: Meta<typeof RangeSlider> = {
25
+ title: 'Molecules / RangeSlider',
26
+ component: RangeSlider,
27
+ args: {
28
+ min: 0,
29
+ max: 100,
30
+ step: 1,
31
+ value: 20,
32
+ },
33
+ }
34
+
35
+ export default RangeSliderMeta
36
+
37
+ export const Default: StoryObj<typeof RangeSlider> = {
38
+ render: (args) => <RangeSliderPlayground {...args} />,
39
+ }
40
+
41
+ export const Range: StoryObj<typeof RangeSlider> = {
42
+ args: {
43
+ range: true,
44
+ value: [20, 70],
45
+ },
46
+ render: (args) => <RangeSliderPlayground {...args} />,
47
+ }
48
+
49
+ export const Disabled: StoryObj<typeof RangeSlider> = {
50
+ args: {
51
+ value: 40,
52
+ isDisabled: true,
53
+ },
54
+ render: (args) => <RangeSliderPlayground {...args} />,
55
+ }
@@ -0,0 +1,37 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const THUMB_SIZE = 20
4
+
5
+ const TRACK_HEIGHT = 4
6
+
7
+ const rangeSliderStyles = StyleSheet.create({
8
+ rangeSlider: {
9
+ width: '100%',
10
+ minHeight: THUMB_SIZE,
11
+ justifyContent: 'center',
12
+ },
13
+ rangeSlider__rail: {
14
+ width: '100%',
15
+ height: TRACK_HEIGHT,
16
+ borderRadius: 2,
17
+ },
18
+ rangeSlider__thumb: {
19
+ width: THUMB_SIZE,
20
+ height: THUMB_SIZE,
21
+ position: 'absolute',
22
+ top: (TRACK_HEIGHT - THUMB_SIZE) / 2,
23
+ borderRadius: THUMB_SIZE / 2,
24
+ },
25
+ rangeSlider__track: {
26
+ width: '100%',
27
+ height: TRACK_HEIGHT,
28
+ justifyContent: 'center',
29
+ },
30
+ rangeSlider__trackFill: {
31
+ height: TRACK_HEIGHT,
32
+ position: 'absolute',
33
+ borderRadius: 2,
34
+ },
35
+ })
36
+
37
+ export { rangeSliderStyles, THUMB_SIZE }
@@ -0,0 +1,29 @@
1
+ import type { ReactNode } from 'react'
2
+ import type { StyleProp, TextStyle } from 'react-native'
3
+
4
+ import type {
5
+ FillProps,
6
+ TextColorProps,
7
+ TextSizeProps,
8
+ TextWeightProps,
9
+ TitleSizeProps,
10
+ } from '@itcase/types-ui'
11
+
12
+ interface ResponseProps {
13
+ after?: ReactNode
14
+ afterContent?: ReactNode
15
+ before?: ReactNode
16
+ beforeContent?: ReactNode
17
+ fill?: FillProps
18
+ text?: string
19
+ textColor?: TextColorProps
20
+ textSize?: TextSizeProps
21
+ textStyle?: StyleProp<TextStyle>
22
+ title?: string
23
+ titleColor?: TextColorProps
24
+ titleSize?: TitleSizeProps
25
+ titleStyle?: StyleProp<TextStyle>
26
+ titleWeight?: TextWeightProps
27
+ }
28
+
29
+ export type { ResponseProps }
@@ -0,0 +1,7 @@
1
+ import { responseStyles as responseBaseStyles } from './styles/response'
2
+
3
+ const styles = {
4
+ ...responseBaseStyles,
5
+ }
6
+
7
+ export { styles }
@@ -0,0 +1,68 @@
1
+ import React from 'react'
2
+ import { View } from 'react-native'
3
+
4
+ import { useStyles } from '@itcase/ui-core/hooks/useStylesReactNative'
5
+
6
+ import { tokens } from '../../styles/tokens'
7
+ import { Text } from '../Text'
8
+ import { Title } from '../Title'
9
+ import type { ResponseProps } from './Response.interface'
10
+ import { styles } from './Response.styles'
11
+
12
+ const Response: React.FC<ResponseProps> = (props) => {
13
+ const {
14
+ fill,
15
+ title,
16
+ titleColor,
17
+ titleSize,
18
+ titleStyle,
19
+ titleWeight,
20
+ text,
21
+ textColor,
22
+ textSize,
23
+ textStyle,
24
+ afterContent,
25
+ beforeContent,
26
+ before,
27
+ after,
28
+ } = props
29
+
30
+ // @ts-expect-error
31
+ const { styles: responseStyles } = useStyles(props)
32
+
33
+ return (
34
+ <View
35
+ style={[
36
+ styles.response,
37
+ fill && tokens[`fill_${fill}`],
38
+ responseStyles && responseStyles,
39
+ ]}
40
+ >
41
+ {before}
42
+ <View style={styles.response__wrapper}>
43
+ {beforeContent}
44
+ <View style={styles.response__wrapper_inner}>
45
+ {title && (
46
+ <Title
47
+ size={titleSize}
48
+ textColor={titleColor}
49
+ style={titleStyle}
50
+ weight={titleWeight}
51
+ >
52
+ {title}
53
+ </Title>
54
+ )}
55
+ {text && (
56
+ <Text size={textSize} textColor={textColor} style={textStyle}>
57
+ {text}
58
+ </Text>
59
+ )}
60
+ </View>
61
+ {afterContent}
62
+ </View>
63
+ {after}
64
+ </View>
65
+ )
66
+ }
67
+
68
+ export { Response }
@@ -0,0 +1,5 @@
1
+ import { Response } from './Response'
2
+ import type { ResponseProps } from './Response.interface'
3
+
4
+ export { Response }
5
+ export type { ResponseProps }
@@ -0,0 +1,22 @@
1
+ import React from 'react'
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+
5
+ import RejectImage from '../../../icons/reject.svg'
6
+ import { Response } from '../Response'
7
+
8
+ const ResponseMeta: Meta<typeof Response> = {
9
+ title: 'Molecules / Response',
10
+ component: Response,
11
+ }
12
+
13
+ export default ResponseMeta
14
+
15
+ export const Default: StoryObj<typeof Response> = {
16
+ args: {
17
+ title: 'Response title',
18
+ titleSize: 'h4',
19
+ text: 'Response text',
20
+ beforeContent: <RejectImage width={179} height={179} />,
21
+ },
22
+ }
@@ -0,0 +1,22 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const responseStyles = StyleSheet.create({
4
+ response: {
5
+ flex: 1,
6
+ justifyContent: 'space-between',
7
+ gap: 32,
8
+ },
9
+ response__wrapper: {
10
+ flex: 1,
11
+ justifyContent: 'center',
12
+ alignItems: 'center',
13
+ gap: 32,
14
+ },
15
+ response__wrapper_inner: {
16
+ justifyContent: 'center',
17
+ alignItems: 'center',
18
+ gap: 8,
19
+ },
20
+ })
21
+
22
+ export { responseStyles }
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from 'react'
2
+ import type {
3
+ NativeScrollEvent,
4
+ NativeSyntheticEvent,
5
+ StyleProp,
6
+ ViewStyle,
7
+ } from 'react-native'
8
+
9
+ import type { DirectionHVProps } from '@itcase/types-ui'
10
+
11
+ interface ScrollbarProps {
12
+ onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void
13
+ children?: ReactNode
14
+ direction?: DirectionHVProps
15
+ scrollHeight?: number | string
16
+ style?: StyleProp<ViewStyle>
17
+ }
18
+
19
+ export type { ScrollbarProps }
@@ -0,0 +1,7 @@
1
+ import { scrollbarStyles as scrollbarBaseStyles } from './styles/scrollbar'
2
+
3
+ const styles = {
4
+ ...scrollbarBaseStyles,
5
+ }
6
+
7
+ export { styles }
@@ -0,0 +1,38 @@
1
+ import { ScrollView } from 'react-native'
2
+
3
+ import type { ScrollbarProps } from './Scrollbar.interface'
4
+ import { styles } from './Scrollbar.styles'
5
+
6
+ const DEFAULT_SCROLLBAR_DIRECTION = 'vertical'
7
+ const DEFAULT_SCROLL_HEIGHT = 200
8
+
9
+ function Scrollbar(props: ScrollbarProps) {
10
+ const { direction, scrollHeight, style, onScroll, children } = props
11
+
12
+ const directionKey = direction || DEFAULT_SCROLLBAR_DIRECTION
13
+ const isHorizontal = directionKey === 'horizontal'
14
+ const heightValue = scrollHeight ?? DEFAULT_SCROLL_HEIGHT
15
+ const parsedHeight =
16
+ typeof heightValue === 'number' ? heightValue : Number(heightValue)
17
+
18
+ return (
19
+ <ScrollView
20
+ horizontal={isHorizontal}
21
+ showsHorizontalScrollIndicator={isHorizontal}
22
+ showsVerticalScrollIndicator={!isHorizontal}
23
+ style={[
24
+ styles.scrollbar,
25
+ isHorizontal && styles.scrollbar_horizontal,
26
+ !isHorizontal && Number.isFinite(parsedHeight)
27
+ ? { maxHeight: parsedHeight }
28
+ : undefined,
29
+ style && style,
30
+ ]}
31
+ onScroll={onScroll}
32
+ >
33
+ {children}
34
+ </ScrollView>
35
+ )
36
+ }
37
+
38
+ export { Scrollbar }
@@ -0,0 +1,5 @@
1
+ import { Scrollbar } from './Scrollbar'
2
+ import type { ScrollbarProps } from './Scrollbar.interface'
3
+
4
+ export { Scrollbar }
5
+ export type { ScrollbarProps }
@@ -0,0 +1,61 @@
1
+ import { Fragment } from 'react'
2
+
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+
5
+ import { Text } from '../../Text'
6
+ import { Scrollbar } from '../Scrollbar'
7
+
8
+ const longContent = (
9
+ <Fragment>
10
+ <Text>Line 1 — scroll me</Text>
11
+ <Text>Line 2</Text>
12
+ <Text>Line 3</Text>
13
+ <Text>Line 4</Text>
14
+ <Text>Line 5</Text>
15
+ <Text>Line 6</Text>
16
+ <Text>Line 7</Text>
17
+ <Text>Line 8</Text>
18
+ <Text>Line 9</Text>
19
+ <Text>Line 10</Text>
20
+ <Text>Line 11</Text>
21
+ <Text>Line 12</Text>
22
+ </Fragment>
23
+ )
24
+
25
+ const ScrollbarMeta: Meta<typeof Scrollbar> = {
26
+ title: 'Molecules / Scrollbar',
27
+ component: Scrollbar,
28
+ args: {
29
+ direction: 'vertical',
30
+ scrollHeight: 120,
31
+ children: longContent,
32
+ },
33
+ }
34
+
35
+ export default ScrollbarMeta
36
+
37
+ export const Vertical: StoryObj<typeof Scrollbar> = {}
38
+
39
+ export const Horizontal: StoryObj<typeof Scrollbar> = {
40
+ args: {
41
+ direction: 'horizontal',
42
+ children: (
43
+ <Fragment>
44
+ <Text>Alpha</Text>
45
+ <Text>Beta</Text>
46
+ <Text>Gamma</Text>
47
+ <Text>Delta</Text>
48
+ <Text>Epsilon</Text>
49
+ <Text>Zeta</Text>
50
+ <Text>Eta</Text>
51
+ <Text>Theta</Text>
52
+ </Fragment>
53
+ ),
54
+ },
55
+ }
56
+
57
+ export const Tall: StoryObj<typeof Scrollbar> = {
58
+ args: {
59
+ scrollHeight: 240,
60
+ },
61
+ }
@@ -0,0 +1,12 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const scrollbarStyles = StyleSheet.create({
4
+ scrollbar: {
5
+ flexGrow: 0,
6
+ },
7
+ scrollbar_horizontal: {
8
+ flexDirection: 'row',
9
+ },
10
+ })
11
+
12
+ export { scrollbarStyles }
@@ -0,0 +1,23 @@
1
+ import type {
2
+ StyleProp,
3
+ TextInputSubmitEditingEvent,
4
+ ViewStyle,
5
+ } from 'react-native'
6
+
7
+ import type { BorderColorProps, FillProps } from '@itcase/types-ui'
8
+
9
+ import type { SvgIconComponent } from '../Icon/Icon.interface'
10
+
11
+ interface SearchProps {
12
+ onChangeInputText?: (text: string) => void
13
+ onSubmitEditing?: (event: TextInputSubmitEditingEvent) => void
14
+ borderColor?: BorderColorProps
15
+ fill?: FillProps
16
+ IconClose?: SvgIconComponent
17
+ IconSearch?: SvgIconComponent
18
+ inputValue?: string
19
+ placeholder?: string
20
+ style?: StyleProp<ViewStyle>
21
+ }
22
+
23
+ export type { SearchProps }
@@ -0,0 +1,7 @@
1
+ import { searchStyles as searchBaseStyles } from './styles/search'
2
+
3
+ const styles = {
4
+ ...searchBaseStyles,
5
+ }
6
+
7
+ export { styles }