@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,158 @@
1
+ import { useMemo } from 'react'
2
+ import { TextInput } from 'react-native'
3
+
4
+ import { tokens } from '../../styles/tokens'
5
+ import { TEXTAREA_MIN_HEIGHT } from './styles/textarea'
6
+ import { textareaAppearance } from './Textarea.appearance'
7
+ import type {
8
+ TextareaAppearanceProps,
9
+ TextareaConfig,
10
+ TextareaProps,
11
+ } from './Textarea.interface'
12
+ import { styles } from './Textarea.styles'
13
+
14
+ const DEFAULT_TEXTAREA_APPEARANCE = 'defaultPrimary'
15
+ const DEFAULT_TEXTAREA_APPEARANCE_STYLE = 'solid'
16
+ const DEFAULT_TEXTAREA_SIZE = 'm'
17
+ const TEXTAREA_ROW_LINE_HEIGHT = 20
18
+
19
+ const textareaConfig: TextareaConfig = {
20
+ appearance: {},
21
+ setAppearance: (newComponent) => {
22
+ textareaConfig.appearance = newComponent
23
+ },
24
+ }
25
+
26
+ textareaConfig.setAppearance(textareaAppearance)
27
+
28
+ function getTokenTextColor(
29
+ textColorKey?: TextareaAppearanceProps['textColor'],
30
+ ) {
31
+ if (!textColorKey) {
32
+ return undefined
33
+ }
34
+
35
+ const colorStyle = tokens[`text_color_${textColorKey}`]
36
+
37
+ if (colorStyle && 'color' in colorStyle) {
38
+ return colorStyle.color
39
+ }
40
+
41
+ return undefined
42
+ }
43
+
44
+ function getTokenFillColor(fillKey?: TextareaAppearanceProps['caret']) {
45
+ if (!fillKey) {
46
+ return undefined
47
+ }
48
+
49
+ const fillStyle = tokens[`fill_${fillKey}`]
50
+
51
+ if (fillStyle && 'backgroundColor' in fillStyle) {
52
+ return fillStyle.backgroundColor
53
+ }
54
+
55
+ return undefined
56
+ }
57
+
58
+ function Textarea(props: TextareaProps) {
59
+ const {
60
+ appearance,
61
+ width,
62
+ minHeight,
63
+ maxLength,
64
+ size,
65
+ fill,
66
+ borderColor,
67
+ textColor,
68
+ textSize,
69
+ textWeight,
70
+ appearanceStyle,
71
+ caret,
72
+ placeholder,
73
+ placeholderTextColor,
74
+ rows,
75
+ shape,
76
+ style,
77
+ value,
78
+ isDisabled,
79
+ isError,
80
+ isReadOnly,
81
+ onBlur,
82
+ onChangeText,
83
+ onFocus,
84
+ } = props
85
+
86
+ const appearanceConfig = useMemo(() => {
87
+ const appearanceKeyList = [
88
+ appearance || DEFAULT_TEXTAREA_APPEARANCE,
89
+ appearanceStyle || DEFAULT_TEXTAREA_APPEARANCE_STYLE,
90
+ ]
91
+
92
+ if (isError) {
93
+ appearanceKeyList.push('errorPrimary')
94
+ }
95
+
96
+ if (isDisabled) {
97
+ appearanceKeyList.push('disabledPrimary')
98
+ }
99
+
100
+ return appearanceKeyList.reduce<TextareaAppearanceProps>(
101
+ (resultConfig, appearanceKey) => {
102
+ return Object.assign(
103
+ resultConfig,
104
+ textareaConfig.appearance?.[appearanceKey],
105
+ )
106
+ },
107
+ {},
108
+ )
109
+ }, [appearance, appearanceStyle, isDisabled, isError])
110
+
111
+ const fillKey = fill || appearanceConfig.fill
112
+ const borderColorKey = borderColor || appearanceConfig.borderColor
113
+ const textColorKey = textColor || appearanceConfig.textColor
114
+ const textSizeKey = textSize || appearanceConfig.textSize
115
+ const textWeightKey = textWeight || appearanceConfig.textWeight
116
+ const placeholderTextColorKey =
117
+ placeholderTextColor || appearanceConfig.placeholderTextColor
118
+ const caretKey = caret || appearanceConfig.caret
119
+ const shapeKey = shape || appearanceConfig.shape
120
+ const sizeKey = size || appearanceConfig.size || DEFAULT_TEXTAREA_SIZE
121
+ const widthKey = width || appearanceConfig.width
122
+
123
+ let resolvedMinHeight = minHeight || TEXTAREA_MIN_HEIGHT
124
+
125
+ if (rows) {
126
+ resolvedMinHeight = rows * TEXTAREA_ROW_LINE_HEIGHT
127
+ }
128
+
129
+ return (
130
+ <TextInput
131
+ maxLength={maxLength}
132
+ textAlignVertical="top"
133
+ cursorColor={getTokenFillColor(caretKey)}
134
+ editable={!(isDisabled || isReadOnly)}
135
+ multiline={true}
136
+ placeholder={placeholder}
137
+ placeholderTextColor={getTokenTextColor(placeholderTextColorKey)}
138
+ selectionColor={getTokenFillColor(caretKey)}
139
+ style={[
140
+ styles.textarea,
141
+ fillKey && tokens[`fill_${fillKey}`],
142
+ borderColorKey && tokens[`border_color_${borderColorKey}`],
143
+ shapeKey && styles[`textarea_shape_${shapeKey}`],
144
+ sizeKey && styles[`textarea_size_${sizeKey}`],
145
+ widthKey && tokens[`width_${widthKey}`],
146
+ { minHeight: resolvedMinHeight },
147
+ style && style,
148
+ ]}
149
+ underlineColorAndroid="transparent"
150
+ value={value}
151
+ onBlur={onBlur}
152
+ onChangeText={onChangeText}
153
+ onFocus={onFocus}
154
+ />
155
+ )
156
+ }
157
+
158
+ export { Textarea, textareaConfig }
@@ -0,0 +1,26 @@
1
+ import type { TextareaAppearance } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceDefault = {
4
+ defaultPrimary: {
5
+ fill: 'surfaceSecondary',
6
+ borderColor: 'surfaceBorderTertiary',
7
+ placeholderTextColor: 'surfaceTextQuaternary',
8
+ },
9
+ defaultQuaternary: {
10
+ fill: 'surfacePrimary',
11
+ borderColor: 'surfaceBorderTertiary',
12
+ placeholderTextColor: 'surfaceTextQuaternary',
13
+ },
14
+ defaultSecondary: {
15
+ fill: 'surfacePrimary',
16
+ borderColor: 'surfaceBorderTertiary',
17
+ placeholderTextColor: 'surfaceTextQuaternary',
18
+ },
19
+ defaultTertiary: {
20
+ fill: 'surfacePrimary',
21
+ borderColor: 'surfaceBorderTertiary',
22
+ placeholderTextColor: 'surfaceTextQuaternary',
23
+ },
24
+ } satisfies TextareaAppearance
25
+
26
+ export { textareaAppearanceDefault }
@@ -0,0 +1,17 @@
1
+ import type { TextareaAppearance } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceDisabled = {
4
+ disabledPrimary: {
5
+ fill: 'surfacePrimary',
6
+ borderColor: 'errorBorderQuaternary',
7
+ textColor: 'surfaceTextQuaternary',
8
+ placeholderTextColor: 'surfaceTextQuaternary',
9
+ },
10
+ disabledSecondary: {
11
+ fill: 'surfaceSecondary',
12
+ borderColor: 'surfaceBorderTertiary',
13
+ placeholderTextColor: 'surfaceTextSecondary',
14
+ },
15
+ } satisfies TextareaAppearance
16
+
17
+ export { textareaAppearanceDisabled }
@@ -0,0 +1,17 @@
1
+ import type { TextareaAppearance } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceError = {
4
+ errorPrimary: {
5
+ fill: 'errorTertiary',
6
+ borderColor: 'errorBorderQuaternary',
7
+ textColor: 'surfaceTextPrimary',
8
+ placeholderTextColor: 'surfaceTextQuaternary',
9
+ },
10
+ errorSecondary: {
11
+ fill: 'errorSecondary',
12
+ borderColor: 'errorBorderTertiary',
13
+ placeholderTextColor: 'errorTextSecondary',
14
+ },
15
+ } satisfies TextareaAppearance
16
+
17
+ export { textareaAppearanceError }
@@ -0,0 +1,17 @@
1
+ import type { TextareaAppearance } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceRequire = {
4
+ requirePrimary: {
5
+ fill: 'warningTertiary',
6
+ borderColor: 'warningBorderQuaternary',
7
+ textColor: 'surfaceTextPrimary',
8
+ placeholderTextColor: 'surfaceTextQuaternary',
9
+ },
10
+ requireSecondary: {
11
+ fill: 'surfaceSecondary',
12
+ borderColor: 'surfaceBorderTertiary',
13
+ placeholderTextColor: 'surfaceTextSecondary',
14
+ },
15
+ } satisfies TextareaAppearance
16
+
17
+ export { textareaAppearanceRequire }
@@ -0,0 +1,24 @@
1
+ import type { TextareaAppearanceShape } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceShape = {
4
+ circular: {
5
+ shape: 'circular',
6
+ },
7
+ rounded: {
8
+ shape: 'rounded',
9
+ },
10
+ roundedXL: {
11
+ shape: 'roundedXL',
12
+ },
13
+ roundedL: {
14
+ shape: 'roundedL',
15
+ },
16
+ roundedM: {
17
+ shape: 'roundedM',
18
+ },
19
+ roundedS: {
20
+ shape: 'roundedS',
21
+ },
22
+ } satisfies TextareaAppearanceShape
23
+
24
+ export { textareaAppearanceShape }
@@ -0,0 +1,22 @@
1
+ import type { TextareaAppearanceSize } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceSize = {
4
+ sizeXL: {
5
+ size: 'xl',
6
+ textSize: 's',
7
+ },
8
+ sizeL: {
9
+ size: 'l',
10
+ textSize: 's',
11
+ },
12
+ sizeM: {
13
+ size: 'm',
14
+ textSize: 'm',
15
+ },
16
+ sizeS: {
17
+ size: 's',
18
+ textSize: 's',
19
+ },
20
+ } satisfies TextareaAppearanceSize
21
+
22
+ export { textareaAppearanceSize }
@@ -0,0 +1,17 @@
1
+ import type { TextareaAppearanceStyle } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceStyle = {
4
+ solid: {
5
+ borderColor: 'none',
6
+ },
7
+ outlined: {
8
+ fill: 'none',
9
+ },
10
+ full: {},
11
+ ghost: {
12
+ fill: 'none',
13
+ borderColor: 'none',
14
+ },
15
+ } satisfies TextareaAppearanceStyle
16
+
17
+ export { textareaAppearanceStyle }
@@ -0,0 +1,17 @@
1
+ import type { TextareaAppearance } from '../Textarea.interface'
2
+
3
+ const textareaAppearanceSuccess = {
4
+ successPrimary: {
5
+ fill: 'successTertiary',
6
+ borderColor: 'successBorderQuaternary',
7
+ textColor: 'surfaceTextPrimary',
8
+ placeholderTextColor: 'surfaceTextQuaternary',
9
+ },
10
+ successSecondary: {
11
+ fill: 'surfaceSecondary',
12
+ borderColor: 'surfaceBorderTertiary',
13
+ placeholderTextColor: 'surfaceTextSecondary',
14
+ },
15
+ } satisfies TextareaAppearance
16
+
17
+ export { textareaAppearanceSuccess }
@@ -0,0 +1,36 @@
1
+ import { textareaShapeList } from './styles/textareaShape'
2
+ import type { textareaShapePropsType } from './styles/textareaShape'
3
+ import { textareaSizeList } from './styles/textareaSize'
4
+ import type { textareaSizePropsType } from './styles/textareaSize'
5
+ import { Textarea, textareaConfig } from './Textarea'
6
+ import { textareaAppearance } from './Textarea.appearance'
7
+ import type {
8
+ TextareaAppearance,
9
+ TextareaAppearanceKey,
10
+ TextareaAppearanceProps,
11
+ TextareaAppearanceShape,
12
+ TextareaAppearanceSize,
13
+ TextareaAppearanceStyle,
14
+ TextareaConfig,
15
+ TextareaProps,
16
+ } from './Textarea.interface'
17
+
18
+ export {
19
+ Textarea,
20
+ textareaAppearance,
21
+ textareaConfig,
22
+ textareaShapeList,
23
+ textareaSizeList,
24
+ }
25
+ export type {
26
+ TextareaAppearance,
27
+ TextareaAppearanceKey,
28
+ TextareaAppearanceProps,
29
+ TextareaAppearanceShape,
30
+ TextareaAppearanceSize,
31
+ TextareaAppearanceStyle,
32
+ TextareaConfig,
33
+ TextareaProps,
34
+ textareaShapePropsType,
35
+ textareaSizePropsType,
36
+ }
@@ -0,0 +1,61 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { Textarea } from '../Textarea'
4
+
5
+ const TextareaMeta: Meta<typeof Textarea> = {
6
+ title: 'Atoms / Textarea',
7
+ component: Textarea,
8
+ args: {
9
+ appearance: 'defaultPrimary',
10
+ size: 'm',
11
+ appearanceStyle: 'solid',
12
+ placeholder: 'Placeholder',
13
+ shape: 'rounded',
14
+ style: { width: 240 },
15
+ },
16
+ }
17
+
18
+ export default TextareaMeta
19
+
20
+ export const Default: StoryObj<typeof Textarea> = {}
21
+
22
+ export const Filled: StoryObj<typeof Textarea> = {
23
+ args: {
24
+ value: 'Multiline text value',
25
+ },
26
+ }
27
+
28
+ export const Error: StoryObj<typeof Textarea> = {
29
+ args: {
30
+ appearance: 'errorPrimary',
31
+ value: 'Invalid value',
32
+ isError: true,
33
+ },
34
+ }
35
+
36
+ export const Success: StoryObj<typeof Textarea> = {
37
+ args: {
38
+ appearance: 'successPrimary',
39
+ value: 'Valid value',
40
+ },
41
+ }
42
+
43
+ export const Disabled: StoryObj<typeof Textarea> = {
44
+ args: {
45
+ value: 'Disabled',
46
+ isDisabled: true,
47
+ },
48
+ }
49
+
50
+ export const SizeXL: StoryObj<typeof Textarea> = {
51
+ args: {
52
+ size: 'xl',
53
+ },
54
+ }
55
+
56
+ export const Rows: StoryObj<typeof Textarea> = {
57
+ args: {
58
+ placeholder: 'Six rows min height',
59
+ rows: 6,
60
+ },
61
+ }
@@ -0,0 +1,17 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const TEXTAREA_MIN_HEIGHT = 80
4
+
5
+ const textareaStyles = StyleSheet.create({
6
+ textarea: {
7
+ minHeight: TEXTAREA_MIN_HEIGHT,
8
+ borderColor: 'transparent',
9
+ borderStyle: 'solid',
10
+ borderWidth: 1,
11
+ margin: 0,
12
+ padding: 0,
13
+ textAlignVertical: 'top',
14
+ },
15
+ })
16
+
17
+ export { TEXTAREA_MIN_HEIGHT, textareaStyles }
@@ -0,0 +1,34 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const textareaShapeStyles = StyleSheet.create({
6
+ textarea_shape_circular: {
7
+ borderRadius: 100,
8
+ },
9
+ textarea_shape_rounded: {
10
+ borderRadius: 8,
11
+ },
12
+ textarea_shape_roundedL: {
13
+ borderRadius: 12,
14
+ },
15
+ textarea_shape_roundedM: {
16
+ borderRadius: 8,
17
+ },
18
+ textarea_shape_roundedS: {
19
+ borderRadius: 4,
20
+ },
21
+ textarea_shape_roundedXL: {
22
+ borderRadius: 16,
23
+ },
24
+ })
25
+
26
+ const textareaShapeList = getVariantsPropsList(
27
+ textareaShapeStyles,
28
+ 'textarea_shape_',
29
+ )
30
+
31
+ type textareaShapePropsType = (typeof textareaShapeList)[number]
32
+
33
+ export { textareaShapeList, textareaShapeStyles }
34
+ export type { textareaShapePropsType }
@@ -0,0 +1,32 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const textareaSizeStyles = StyleSheet.create({
6
+ textarea_size_l: {
7
+ paddingVertical: 12,
8
+ paddingHorizontal: 12,
9
+ },
10
+ textarea_size_m: {
11
+ paddingVertical: 8,
12
+ paddingHorizontal: 12,
13
+ },
14
+ textarea_size_s: {
15
+ paddingVertical: 2,
16
+ paddingHorizontal: 12,
17
+ },
18
+ textarea_size_xl: {
19
+ paddingVertical: 16,
20
+ paddingHorizontal: 12,
21
+ },
22
+ })
23
+
24
+ const textareaSizeList = getVariantsPropsList(
25
+ textareaSizeStyles,
26
+ 'textarea_size_',
27
+ )
28
+
29
+ type textareaSizePropsType = (typeof textareaSizeList)[number]
30
+
31
+ export { textareaSizeList, textareaSizeStyles }
32
+ export type { textareaSizePropsType }
@@ -0,0 +1,14 @@
1
+ import { tileAppearanceShape } from './appearance/tileShape'
2
+ import { tileAppearanceSize } from './appearance/tileSize'
3
+ import { tileAppearanceStyle } from './appearance/tileStyle'
4
+ import { tileAppearanceSurface } from './appearance/tileSurface'
5
+ import type { TileAppearance } from './Tile.interface'
6
+
7
+ const tileAppearance = {
8
+ ...tileAppearanceShape,
9
+ ...tileAppearanceSize,
10
+ ...tileAppearanceStyle,
11
+ ...tileAppearanceSurface,
12
+ } satisfies TileAppearance
13
+
14
+ export { tileAppearance }
@@ -0,0 +1,97 @@
1
+ import type { ReactNode } from 'react'
2
+ import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native'
3
+
4
+ import type {
5
+ AppearanceConfig,
6
+ AppearanceKeysDefault,
7
+ AppearancePartialRecord,
8
+ AppearanceRecord,
9
+ AppearanceShapeKey,
10
+ AppearanceSizeKey,
11
+ AppearanceStyleKey,
12
+ BorderColorProps,
13
+ CompositeAppearanceKeys,
14
+ DirectionProps,
15
+ FillProps,
16
+ ShapeProps,
17
+ SizeProps,
18
+ TextAlignProps,
19
+ TextColorProps,
20
+ TextSizeProps,
21
+ TextWeightProps,
22
+ TitleSizeProps,
23
+ WidthProps,
24
+ } from '@itcase/types-ui'
25
+
26
+ import type { BadgeProps } from '../Badge/Badge.interface'
27
+ import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
28
+ import type { tileShapePropsType } from './styles/tileShape'
29
+ import type { tileSizePropsType } from './styles/tileSize'
30
+
31
+ interface TileAppearanceProps {
32
+ badgeAppearance?: BadgeProps['appearance']
33
+ badgeShape?: BadgeProps['shape']
34
+ badgeSize?: BadgeProps['size']
35
+ badgeTextColor?: BadgeProps['badgeTextColor']
36
+ badgeTextSize?: BadgeProps['badgeTextSize']
37
+ borderColor?: BorderColorProps
38
+ descTextColor?: TextColorProps
39
+ descTextSize?: TextSizeProps
40
+ direction?: DirectionProps
41
+ fill?: FillProps
42
+ iconFill?: IconProps['fill']
43
+ iconFillIcon?: IconProps['iconFill']
44
+ iconShape?: IconProps['shape']
45
+ iconSize?: IconProps['iconSize']
46
+ shape?: ShapeProps
47
+ size?: SizeProps
48
+ titleTextAlign?: TextAlignProps
49
+ titleTextColor?: TextColorProps
50
+ titleTextSize?: TitleSizeProps
51
+ titleTextWeight?: TextWeightProps
52
+ width?: WidthProps
53
+ }
54
+
55
+ type TileConfig = AppearanceConfig<AppearanceKeysDefault, TileAppearanceProps>
56
+ type TileAppearance = TileConfig['appearance']
57
+ type TileAppearanceStyle = AppearanceRecord<
58
+ AppearanceStyleKey,
59
+ TileAppearanceProps,
60
+ 'borderColor' | 'fill'
61
+ >
62
+ type TileAppearanceShape = Partial<
63
+ Record<AppearanceShapeKey, Partial<Pick<TileAppearanceProps, 'shape'>>>
64
+ >
65
+ type TileAppearanceSize = AppearancePartialRecord<
66
+ AppearanceSizeKey,
67
+ TileAppearanceProps,
68
+ 'descTextSize' | 'iconSize' | 'size' | 'titleTextSize'
69
+ >
70
+ type TileAppearanceKey = AppearanceKeysDefault | CompositeAppearanceKeys
71
+
72
+ interface TileProps extends TileAppearanceProps {
73
+ onPress?: (event: GestureResponderEvent) => void
74
+ onPressIcon?: (event: GestureResponderEvent) => void
75
+ after?: ReactNode
76
+ appearance?: TileAppearanceKey
77
+ badgeValue?: BadgeProps['text']
78
+ before?: ReactNode
79
+ children?: ReactNode
80
+ desc?: string
81
+ icon?: SvgIconComponent
82
+ shape?: tileShapePropsType
83
+ size?: tileSizePropsType
84
+ style?: StyleProp<ViewStyle>
85
+ title?: string
86
+ }
87
+
88
+ export type {
89
+ TileAppearance,
90
+ TileAppearanceKey,
91
+ TileAppearanceProps,
92
+ TileAppearanceShape,
93
+ TileAppearanceSize,
94
+ TileAppearanceStyle,
95
+ TileConfig,
96
+ TileProps,
97
+ }
@@ -0,0 +1,11 @@
1
+ import { tileStyles as tileBaseStyles } from './styles/tile'
2
+ import { tileShapeStyles } from './styles/tileShape'
3
+ import { tileSizeStyles } from './styles/tileSize'
4
+
5
+ const styles = {
6
+ ...tileBaseStyles,
7
+ ...tileShapeStyles,
8
+ ...tileSizeStyles,
9
+ }
10
+
11
+ export { styles }