@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,63 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { Button } from '../Button'
4
+ import { buttonStoryParameters } from './ButtonStories.config'
5
+
6
+ const meta = {
7
+ title: 'Atoms / Button / Size',
8
+ component: Button,
9
+ args: {
10
+ appearance: 'surfaceSecondary',
11
+ label: 'Button',
12
+ textSize: 'l',
13
+ },
14
+ parameters: buttonStoryParameters,
15
+ } satisfies Meta<typeof Button>
16
+
17
+ export default meta
18
+
19
+ type Story = StoryObj<typeof meta>
20
+
21
+ export const SizeXXL: Story = {
22
+ args: {
23
+ size: 'xxl',
24
+ },
25
+ }
26
+
27
+ export const SizeXL: Story = {
28
+ args: {
29
+ size: 'xl',
30
+ },
31
+ }
32
+
33
+ export const SizeL: Story = {
34
+ args: {
35
+ size: 'l',
36
+ },
37
+ }
38
+
39
+ export const SizeM: Story = {
40
+ args: {
41
+ size: 'm',
42
+ },
43
+ }
44
+
45
+ export const SizeS: Story = {
46
+ args: {
47
+ size: 's',
48
+ },
49
+ }
50
+
51
+ export const SizeXS: Story = {
52
+ args: {
53
+ size: 'xs',
54
+ textSize: 'm',
55
+ },
56
+ }
57
+
58
+ export const SizeXXS: Story = {
59
+ args: {
60
+ size: 'xxs',
61
+ textSize: 'xs',
62
+ },
63
+ }
@@ -0,0 +1,46 @@
1
+ import { buttonAppearanceAccent } from '../appearance/buttonAccent'
2
+ import { buttonAppearanceDanger } from '../appearance/buttonDanger'
3
+ import { buttonAppearanceExtra } from '../appearance/buttonExtra'
4
+ import { buttonAppearanceSurface } from '../appearance/buttonSurface'
5
+ import type { ButtonAppearanceKey } from '../Button.interface'
6
+
7
+ const BUTTON_FIGMA_URL =
8
+ 'https://www.figma.com/design/HmHn0BShJPXHU8SmuIP71M/ITCase---Atoms?node-id=18-16754'
9
+
10
+ const buttonAppearanceByGroup = {
11
+ accent: buttonAppearanceAccent,
12
+ danger: buttonAppearanceDanger,
13
+ extra: buttonAppearanceExtra,
14
+ surface: buttonAppearanceSurface,
15
+ } as const
16
+
17
+ const BUTTON_APPEARANCE_GROUPS = [
18
+ 'accent',
19
+ 'extra',
20
+ 'surface',
21
+ 'danger',
22
+ ] as const
23
+
24
+ type ButtonAppearanceGroup = (typeof BUTTON_APPEARANCE_GROUPS)[number]
25
+
26
+ const buttonStoryParameters = {
27
+ layout: 'centered' as const,
28
+ design: {
29
+ type: 'figma' as const,
30
+ url: BUTTON_FIGMA_URL,
31
+ },
32
+ }
33
+
34
+ const getButtonAppearanceKeys = (
35
+ appearanceGroup: ButtonAppearanceGroup,
36
+ ): ButtonAppearanceKey[] =>
37
+ Object.keys(buttonAppearanceByGroup[appearanceGroup]) as ButtonAppearanceKey[]
38
+
39
+ export {
40
+ BUTTON_APPEARANCE_GROUPS,
41
+ BUTTON_FIGMA_URL,
42
+ buttonAppearanceByGroup,
43
+ buttonStoryParameters,
44
+ getButtonAppearanceKeys,
45
+ }
46
+ export type { ButtonAppearanceGroup }
@@ -0,0 +1,47 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { Button } from '../Button'
4
+ import { buttonStoryParameters } from './ButtonStories.config'
5
+
6
+ const meta = {
7
+ title: 'Atoms / Button / Style',
8
+ component: Button,
9
+ args: {
10
+ size: 'xxl',
11
+ label: 'Button',
12
+ textSize: 'xxl',
13
+ },
14
+ parameters: buttonStoryParameters,
15
+ } satisfies Meta<typeof Button>
16
+
17
+ export default meta
18
+
19
+ type Story = StoryObj<typeof meta>
20
+
21
+ export const Full: Story = {
22
+ args: {
23
+ appearance: 'accentPrimary',
24
+ appearanceStyle: 'full',
25
+ },
26
+ }
27
+
28
+ export const Solid: Story = {
29
+ args: {
30
+ appearance: 'accentPrimary',
31
+ appearanceStyle: 'solid',
32
+ },
33
+ }
34
+
35
+ export const Outlined: Story = {
36
+ args: {
37
+ appearance: 'accentSecondary',
38
+ appearanceStyle: 'outlined',
39
+ },
40
+ }
41
+
42
+ export const Ghost: Story = {
43
+ args: {
44
+ appearance: 'accentSecondary',
45
+ appearanceStyle: 'ghost',
46
+ },
47
+ }
@@ -0,0 +1,26 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const buttonStyles = StyleSheet.create({
4
+ button: {
5
+ width: '100%',
6
+ flexDirection: 'row',
7
+ justifyContent: 'center',
8
+ alignItems: 'center',
9
+ alignSelf: 'flex-start',
10
+ borderRadius: 4,
11
+ paddingVertical: 8,
12
+ paddingHorizontal: 16,
13
+ gap: 8,
14
+ },
15
+ button__loader: {
16
+ justifyContent: 'center',
17
+ alignItems: 'center',
18
+ position: 'absolute',
19
+ top: 0,
20
+ right: 0,
21
+ bottom: 0,
22
+ left: 0,
23
+ },
24
+ })
25
+
26
+ export { buttonStyles }
@@ -0,0 +1,42 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const buttonSizeStyles = StyleSheet.create({
6
+ button_size_l: {
7
+ paddingVertical: 8,
8
+ paddingHorizontal: 12,
9
+ },
10
+ button_size_m: {
11
+ paddingVertical: 4,
12
+ paddingHorizontal: 12,
13
+ },
14
+ button_size_s: {
15
+ paddingVertical: 2,
16
+ paddingHorizontal: 10,
17
+ },
18
+ button_size_xl: {
19
+ paddingVertical: 8,
20
+ paddingHorizontal: 12,
21
+ },
22
+ button_size_xs: {
23
+ paddingVertical: 0,
24
+ paddingHorizontal: 8,
25
+ },
26
+ button_size_xxl: {
27
+ minHeight: 56,
28
+ paddingVertical: 16,
29
+ paddingHorizontal: 16,
30
+ },
31
+ button_size_xxs: {
32
+ paddingVertical: 0,
33
+ paddingHorizontal: 6,
34
+ },
35
+ })
36
+
37
+ const buttonSizeList = getVariantsPropsList(buttonSizeStyles, 'button_size_')
38
+
39
+ type buttonSizePropsType = (typeof buttonSizeList)[number]
40
+
41
+ export { buttonSizeList, buttonSizeStyles }
42
+ export type { buttonSizePropsType }
@@ -0,0 +1,28 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const buttonTextStyles = StyleSheet.create({
6
+ button__text: {
7
+ textAlign: 'center',
8
+ },
9
+ button__text_size_xl: {
10
+ fontFamily: 'WixMadeforDisplay-Medium',
11
+ fontSize: 14,
12
+ lineHeight: 18,
13
+ },
14
+ button__text_size_xxl: {
15
+ fontFamily: 'WixMadeforDisplay-Medium',
16
+ fontSize: 18,
17
+ lineHeight: 24,
18
+ },
19
+ })
20
+
21
+ const buttonTextSizeList = getVariantsPropsList(
22
+ buttonTextStyles,
23
+ 'button__text_size_',
24
+ )
25
+ type buttonTextSizePropsType = (typeof buttonTextSizeList)[number]
26
+
27
+ export { buttonTextSizeList, buttonTextStyles }
28
+ export type { buttonTextSizePropsType }
@@ -0,0 +1,45 @@
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
+ } from '@itcase/types-ui'
10
+
11
+ import type { GapProps } from '../../styles/gap'
12
+ import type { cellDirectionPropsType } from './styles/cellDirection'
13
+ import type { cellShapePropsType } from './styles/cellShape'
14
+ import type { cellSizePropsType } from './styles/cellSize'
15
+
16
+ interface CellProps {
17
+ direction: cellDirectionPropsType
18
+ fill?: FillProps
19
+ gap?: GapProps
20
+ shape?: cellShapePropsType
21
+ size?: cellSizePropsType
22
+ style?: StyleProp<TextStyle>
23
+ text?: string
24
+ textColor?: TextColorProps
25
+ textList?: { key: number | string; text: string }[]
26
+ textSize?: TextSizeProps
27
+ textWeight?: TextWeightProps
28
+ title?: string
29
+ titleColor?: TextColorProps
30
+ titleSize?: TextSizeProps
31
+ titleWeight?: TextWeightProps
32
+ url?: string
33
+ }
34
+
35
+ interface URLTextProps {
36
+ children?: ReactNode
37
+ gap?: GapProps
38
+ text?: string
39
+ textColor?: TextColorProps
40
+ textSize?: TextSizeProps
41
+ textWeight?: TextWeightProps
42
+ url: string
43
+ }
44
+
45
+ export type { CellProps, URLTextProps }
@@ -0,0 +1,13 @@
1
+ import { cellStyles as cellBaseStyles } from './styles/cell'
2
+ import { cellDirectionStyles } from './styles/cellDirection'
3
+ import { cellShapeStyles } from './styles/cellShape'
4
+ import { cellSizeStyles } from './styles/cellSize'
5
+
6
+ const styles = {
7
+ ...cellBaseStyles,
8
+ ...cellDirectionStyles,
9
+ ...cellShapeStyles,
10
+ ...cellSizeStyles,
11
+ }
12
+
13
+ export { styles }
@@ -0,0 +1,96 @@
1
+ import React, { useCallback } from 'react'
2
+ import { Alert, Linking, Pressable, View } from 'react-native'
3
+
4
+ import { tokens } from '../../styles/tokens'
5
+ import { Text } from '../Text'
6
+ import type { CellProps, URLTextProps } from './Cell.interface'
7
+ import { styles } from './Cell.styles'
8
+
9
+ const URLText: React.FC<URLTextProps> = (props) => {
10
+ const { url, text, textColor, textSize, textWeight } = props
11
+ const handlePress = useCallback(async () => {
12
+ const supported = await Linking.canOpenURL(url)
13
+
14
+ if (supported) {
15
+ await Linking.openURL(url)
16
+ } else {
17
+ Alert.alert(`Не знаю, как открыть этот URL: ${url}`)
18
+ }
19
+ }, [url])
20
+
21
+ return (
22
+ <Pressable onPress={handlePress}>
23
+ <Text size={textSize} textColor={textColor} weight={textWeight}>
24
+ {text}
25
+ </Text>
26
+ </Pressable>
27
+ )
28
+ }
29
+
30
+ const Cell: React.FC<CellProps> = (props) => {
31
+ const {
32
+ direction,
33
+ size,
34
+ fill,
35
+ title,
36
+ titleColor,
37
+ titleSize,
38
+ titleWeight,
39
+ url,
40
+ gap,
41
+ text,
42
+ textColor,
43
+ textList,
44
+ textSize,
45
+ textWeight,
46
+ shape,
47
+ style,
48
+ } = props
49
+
50
+ return (
51
+ <View
52
+ style={[
53
+ styles.cell,
54
+ size && styles[`cell_size_${size}`],
55
+ gap && tokens[`gap_${gap}`],
56
+ fill && tokens[`fill_${fill}`],
57
+ shape && styles[`cell_shape_${shape}`],
58
+ direction && styles[`cell_direction_${direction}`],
59
+ style && style,
60
+ ]}
61
+ >
62
+ <Text size={titleSize} textColor={titleColor} weight={titleWeight}>
63
+ {title}
64
+ </Text>
65
+
66
+ {url ? (
67
+ <URLText
68
+ url={url}
69
+ text={text}
70
+ textColor={textColor}
71
+ textSize={textSize}
72
+ textWeight={textWeight}
73
+ />
74
+ ) : textList ? (
75
+ <React.Fragment>
76
+ {textList.map((textItem) => (
77
+ <Text
78
+ key={textItem.key}
79
+ size={textSize}
80
+ textColor={textColor}
81
+ weight={textWeight}
82
+ >
83
+ {textItem.text}
84
+ </Text>
85
+ ))}
86
+ </React.Fragment>
87
+ ) : (
88
+ <Text size={textSize} textColor={textColor} weight={textWeight}>
89
+ {text}
90
+ </Text>
91
+ )}
92
+ </View>
93
+ )
94
+ }
95
+
96
+ export { Cell, URLText }
@@ -0,0 +1,17 @@
1
+ import { Cell, URLText } from './Cell'
2
+ import type { CellProps, URLTextProps } from './Cell.interface'
3
+ import { cellDirectionList } from './styles/cellDirection'
4
+ import type { cellDirectionPropsType } from './styles/cellDirection'
5
+ import { cellShapeList } from './styles/cellShape'
6
+ import type { cellShapePropsType } from './styles/cellShape'
7
+ import { cellSizeList } from './styles/cellSize'
8
+ import type { cellSizePropsType } from './styles/cellSize'
9
+
10
+ export { Cell, cellDirectionList, cellShapeList, cellSizeList, URLText }
11
+ export type {
12
+ cellDirectionPropsType,
13
+ CellProps,
14
+ cellShapePropsType,
15
+ cellSizePropsType,
16
+ URLTextProps,
17
+ }
@@ -0,0 +1,35 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { Cell } from '../Cell'
4
+
5
+ const CellMeta: Meta<typeof Cell> = {
6
+ title: 'Molecules / Cell',
7
+ component: Cell,
8
+ }
9
+
10
+ export default CellMeta
11
+
12
+ const Default: StoryObj<typeof Cell> = {
13
+ args: {
14
+ title: 'title',
15
+ titleColor: 'surfaceTextPrimary',
16
+ titleSize: 'm',
17
+ text: 'text',
18
+ textColor: 'surfaceTextPrimary',
19
+ textSize: 'm',
20
+ },
21
+ }
22
+
23
+ export const SizeM: StoryObj<typeof Cell> = {
24
+ args: {
25
+ ...Default.args,
26
+ size: 'm',
27
+ },
28
+ }
29
+
30
+ export const SizeXL: StoryObj<typeof Cell> = {
31
+ args: {
32
+ ...Default.args,
33
+ size: 'xl',
34
+ },
35
+ }
@@ -0,0 +1,9 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ const cellStyles = StyleSheet.create({
4
+ cell: {
5
+ gap: 4,
6
+ },
7
+ })
8
+
9
+ export { cellStyles }
@@ -0,0 +1,24 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const cellDirectionStyles = StyleSheet.create({
6
+ cell_direction_horizontal: {
7
+ width: '100%',
8
+ flexDirection: 'row',
9
+ justifyContent: 'space-between',
10
+ },
11
+ cell_direction_vertical: {
12
+ flexDirection: 'column',
13
+ },
14
+ })
15
+
16
+ const cellDirectionList = getVariantsPropsList(
17
+ cellDirectionStyles,
18
+ 'cell_direction_',
19
+ )
20
+
21
+ type cellDirectionPropsType = (typeof cellDirectionList)[number]
22
+
23
+ export { cellDirectionList, cellDirectionStyles }
24
+ export type { cellDirectionPropsType }
@@ -0,0 +1,16 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const cellShapeStyles = StyleSheet.create({
6
+ cell_shape_rounded: {
7
+ borderRadius: 6,
8
+ },
9
+ })
10
+
11
+ const cellShapeList = getVariantsPropsList(cellShapeStyles, 'cell_shape_')
12
+
13
+ type cellShapePropsType = (typeof cellShapeList)[number]
14
+
15
+ export { cellShapeList, cellShapeStyles }
16
+ export type { cellShapePropsType }
@@ -0,0 +1,21 @@
1
+ import { StyleSheet } from 'react-native'
2
+
3
+ import { getVariantsPropsList } from '../../../utils'
4
+
5
+ const cellSizeStyles = StyleSheet.create({
6
+ cell_size_m: {
7
+ padding: 6,
8
+ gap: 4,
9
+ },
10
+ cell_size_xl: {
11
+ padding: 12,
12
+ gap: 4,
13
+ },
14
+ })
15
+
16
+ const cellSizeList = getVariantsPropsList(cellSizeStyles, 'cell_size_')
17
+
18
+ type cellSizePropsType = (typeof cellSizeList)[number]
19
+
20
+ export { cellSizeList, cellSizeStyles }
21
+ export type { cellSizePropsType }
@@ -0,0 +1,22 @@
1
+ import { checkboxAppearanceDefault } from './appearance/checkboxDefault'
2
+ import { checkboxAppearanceDisabled } from './appearance/checkboxDisabled'
3
+ import { checkboxAppearanceError } from './appearance/checkboxError'
4
+ import { checkboxAppearanceRequire } from './appearance/checkboxRequire'
5
+ import { checkboxAppearanceShape } from './appearance/checkboxShape'
6
+ import { checkboxAppearanceSize } from './appearance/checkboxSize'
7
+ import { checkboxAppearanceStyle } from './appearance/checkboxStyle'
8
+ import { checkboxAppearanceSuccess } from './appearance/checkboxSuccess'
9
+ import type { CheckboxAppearance } from './Checkbox.interface'
10
+
11
+ const checkboxAppearance = {
12
+ ...checkboxAppearanceDefault,
13
+ ...checkboxAppearanceError,
14
+ ...checkboxAppearanceSuccess,
15
+ ...checkboxAppearanceRequire,
16
+ ...checkboxAppearanceDisabled,
17
+ ...checkboxAppearanceSize,
18
+ ...checkboxAppearanceStyle,
19
+ ...checkboxAppearanceShape,
20
+ } satisfies CheckboxAppearance
21
+
22
+ export { checkboxAppearance }
@@ -0,0 +1,99 @@
1
+ import type { ReactNode } from 'react'
2
+ import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native'
3
+
4
+ import type {
5
+ AppearanceConfig,
6
+ AppearanceKeysState,
7
+ AppearancePartialRecord,
8
+ AppearanceRecord,
9
+ AppearanceShapeKey,
10
+ AppearanceSizeKey,
11
+ AppearanceStyleKey,
12
+ BorderColorActiveProps,
13
+ BorderColorProps,
14
+ CompositeAppearanceKeys,
15
+ FillActiveProps,
16
+ FillProps,
17
+ TextColorProps,
18
+ TextSizeProps,
19
+ TextWeightProps,
20
+ WidthProps,
21
+ } from '@itcase/types-ui'
22
+
23
+ import type { checkboxAlignPropsType } from './styles/checkboxAlign'
24
+ import type { checkboxShapePropsType } from './styles/checkboxShape'
25
+ import type { checkboxSizePropsType } from './styles/checkboxSize'
26
+
27
+ interface CheckboxAppearanceProps {
28
+ borderColor?: BorderColorProps
29
+ borderColorCheckbox?: BorderColorProps
30
+ borderColorCheckboxActive?: BorderColorActiveProps
31
+ descTextColor?: TextColorProps
32
+ descTextSize?: TextSizeProps
33
+ descTextWeight?: TextWeightProps
34
+ fill?: FillProps
35
+ fillCheckbox?: FillProps
36
+ fillCheckboxActive?: FillActiveProps
37
+ fillCheckmark?: FillProps
38
+ labelTextColor?: TextColorProps
39
+ labelTextSize?: TextSizeProps
40
+ labelTextWeight?: TextWeightProps
41
+ shape?: checkboxShapePropsType
42
+ size?: checkboxSizePropsType
43
+ }
44
+
45
+ type CheckboxAppearanceKey = AppearanceKeysState | CompositeAppearanceKeys
46
+ type CheckboxConfig = AppearanceConfig<
47
+ AppearanceKeysState,
48
+ CheckboxAppearanceProps
49
+ >
50
+ type CheckboxAppearance = CheckboxConfig['appearance']
51
+ type CheckboxAppearanceStyle = AppearanceRecord<
52
+ AppearanceStyleKey,
53
+ CheckboxAppearanceProps,
54
+ | 'borderColorCheckbox'
55
+ | 'borderColorCheckboxActive'
56
+ | 'fill'
57
+ | 'fillCheckbox'
58
+ | 'fillCheckboxActive'
59
+ >
60
+ type CheckboxAppearanceShape = AppearancePartialRecord<
61
+ AppearanceShapeKey,
62
+ CheckboxAppearanceProps,
63
+ 'shape'
64
+ >
65
+ type CheckboxAppearanceSize = AppearancePartialRecord<
66
+ AppearanceSizeKey,
67
+ CheckboxAppearanceProps,
68
+ 'descTextSize' | 'labelTextSize' | 'size'
69
+ >
70
+
71
+ interface CheckboxProps extends CheckboxAppearanceProps {
72
+ isActive?: boolean
73
+ isChecked?: boolean
74
+ isDisabled?: boolean
75
+ onPress?: (event: GestureResponderEvent) => void
76
+ after?: ReactNode
77
+ align?: checkboxAlignPropsType
78
+ appearance?: CheckboxAppearanceKey
79
+ appearanceStyle?: AppearanceStyleKey
80
+ before?: ReactNode
81
+ checked?: boolean
82
+ desc?: string
83
+ disabled?: boolean
84
+ indeterminate?: boolean
85
+ label?: string
86
+ style?: StyleProp<ViewStyle>
87
+ width?: WidthProps
88
+ }
89
+
90
+ export type {
91
+ CheckboxAppearance,
92
+ CheckboxAppearanceKey,
93
+ CheckboxAppearanceProps,
94
+ CheckboxAppearanceShape,
95
+ CheckboxAppearanceSize,
96
+ CheckboxAppearanceStyle,
97
+ CheckboxConfig,
98
+ CheckboxProps,
99
+ }
@@ -0,0 +1,13 @@
1
+ import { checkboxStyles as checkboxBaseStyles } from './styles/checkbox'
2
+ import { checkboxAlignStyles } from './styles/checkboxAlign'
3
+ import { checkboxShapeStyles } from './styles/checkboxShape'
4
+ import { checkboxSizeStyles } from './styles/checkboxSize'
5
+
6
+ const styles = {
7
+ ...checkboxBaseStyles,
8
+ ...checkboxAlignStyles,
9
+ ...checkboxShapeStyles,
10
+ ...checkboxSizeStyles,
11
+ }
12
+
13
+ export { styles }