@zidsa/zidmui 2.0.2 → 2.1.0

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 (297) hide show
  1. package/README.md +1 -1
  2. package/dist/react/cjs/components/app-checkbox.js +43 -0
  3. package/dist/react/cjs/components/app-checkbox.js.map +1 -0
  4. package/dist/react/cjs/components/app-dialog-with-features.js +85 -0
  5. package/dist/react/cjs/components/app-dialog-with-features.js.map +1 -0
  6. package/dist/react/cjs/components/app-dialog.js +52 -0
  7. package/dist/react/cjs/components/app-dialog.js.map +1 -0
  8. package/dist/react/cjs/components/app-empty-state.js +106 -0
  9. package/dist/react/cjs/components/app-empty-state.js.map +1 -0
  10. package/dist/react/cjs/components/app-icon-button.js +30 -0
  11. package/dist/react/cjs/components/app-icon-button.js.map +1 -0
  12. package/dist/react/cjs/components/app-input-radio-card.js +86 -0
  13. package/dist/react/cjs/components/app-input-radio-card.js.map +1 -0
  14. package/dist/react/cjs/components/app-input-radio.js +69 -0
  15. package/dist/react/cjs/components/app-input-radio.js.map +1 -0
  16. package/dist/react/cjs/components/app-pagination.js +19 -0
  17. package/dist/react/cjs/components/app-pagination.js.map +1 -0
  18. package/dist/react/cjs/components/app-radio-group.js +46 -0
  19. package/dist/react/cjs/components/app-radio-group.js.map +1 -0
  20. package/dist/react/cjs/components/app-status.js +4 -0
  21. package/dist/react/cjs/components/app-status.js.map +1 -1
  22. package/dist/react/cjs/components/app-switch-group.js +34 -0
  23. package/dist/react/cjs/components/app-switch-group.js.map +1 -0
  24. package/dist/react/cjs/components/app-switch.js +25 -0
  25. package/dist/react/cjs/components/app-switch.js.map +1 -0
  26. package/dist/react/cjs/components/app-tabs.js +51 -0
  27. package/dist/react/cjs/components/app-tabs.js.map +1 -0
  28. package/dist/react/cjs/stories/css/Button.stories.js +133 -0
  29. package/dist/react/cjs/stories/css/Button.stories.js.map +1 -0
  30. package/dist/react/cjs/stories/css/Card.stories.js +145 -0
  31. package/dist/react/cjs/stories/css/Card.stories.js.map +1 -0
  32. package/dist/react/cjs/stories/css/Checkbox.stories.js +138 -0
  33. package/dist/react/cjs/stories/css/Checkbox.stories.js.map +1 -0
  34. package/dist/react/cjs/stories/css/ComponentReference.stories.js +139 -0
  35. package/dist/react/cjs/stories/css/ComponentReference.stories.js.map +1 -0
  36. package/dist/react/cjs/stories/css/Input.stories.js +162 -0
  37. package/dist/react/cjs/stories/css/Input.stories.js.map +1 -0
  38. package/dist/react/cjs/stories/css/ListItem.stories.js +166 -0
  39. package/dist/react/cjs/stories/css/ListItem.stories.js.map +1 -0
  40. package/dist/react/cjs/stories/css/Modal.stories.js +121 -0
  41. package/dist/react/cjs/stories/css/Modal.stories.js.map +1 -0
  42. package/dist/react/cjs/stories/css/Radio.stories.js +118 -0
  43. package/dist/react/cjs/stories/css/Radio.stories.js.map +1 -0
  44. package/dist/react/cjs/stories/css/Select.stories.js +187 -0
  45. package/dist/react/cjs/stories/css/Select.stories.js.map +1 -0
  46. package/dist/react/cjs/stories/css/Status.stories.js +59 -0
  47. package/dist/react/cjs/stories/css/Status.stories.js.map +1 -0
  48. package/dist/react/cjs/stories/css/Switch.stories.js +136 -0
  49. package/dist/react/cjs/stories/css/Switch.stories.js.map +1 -0
  50. package/dist/react/cjs/stories/css/Table.stories.js +171 -0
  51. package/dist/react/cjs/stories/css/Table.stories.js.map +1 -0
  52. package/dist/react/cjs/stories/css/Tooltip.stories.js +99 -0
  53. package/dist/react/cjs/stories/css/Tooltip.stories.js.map +1 -0
  54. package/dist/react/cjs/stories/css/Utilities.stories.js +136 -0
  55. package/dist/react/cjs/stories/css/Utilities.stories.js.map +1 -0
  56. package/dist/react/cjs/stories/design/Colors.stories.js +8 -2
  57. package/dist/react/cjs/stories/design/Colors.stories.js.map +1 -1
  58. package/dist/react/cjs/stories/design/Typography.stories.js +116 -0
  59. package/dist/react/cjs/stories/design/Typography.stories.js.map +1 -0
  60. package/dist/react/cjs/stories/design/spacing/CSS.stories.js +61 -0
  61. package/dist/react/cjs/stories/design/spacing/CSS.stories.js.map +1 -0
  62. package/dist/react/cjs/stories/design/{Spacing.stories.js → spacing/React.stories.js} +8 -8
  63. package/dist/react/cjs/stories/design/spacing/React.stories.js.map +1 -0
  64. package/dist/react/cjs/stories/react/AppCheckbox.stories.js +67 -0
  65. package/dist/react/cjs/stories/react/AppCheckbox.stories.js.map +1 -0
  66. package/dist/react/cjs/stories/react/AppDialog.stories.js +129 -0
  67. package/dist/react/cjs/stories/react/AppDialog.stories.js.map +1 -0
  68. package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js +127 -0
  69. package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js.map +1 -0
  70. package/dist/react/cjs/stories/react/AppEmptyState.stories.js +157 -0
  71. package/dist/react/cjs/stories/react/AppEmptyState.stories.js.map +1 -0
  72. package/dist/react/cjs/stories/react/AppIconButton.stories.js +53 -0
  73. package/dist/react/cjs/stories/react/AppIconButton.stories.js.map +1 -0
  74. package/dist/react/cjs/stories/react/AppInputBase.stories.js +91 -72
  75. package/dist/react/cjs/stories/react/AppInputBase.stories.js.map +1 -1
  76. package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js +34 -26
  77. package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js.map +1 -1
  78. package/dist/react/cjs/stories/react/AppInputRadio.stories.js +262 -0
  79. package/dist/react/cjs/stories/react/AppInputRadio.stories.js.map +1 -0
  80. package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js +126 -0
  81. package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js.map +1 -0
  82. package/dist/react/cjs/stories/react/AppPagination.stories.js +71 -0
  83. package/dist/react/cjs/stories/react/AppPagination.stories.js.map +1 -0
  84. package/dist/react/cjs/stories/react/AppRadioGroup.stories.js +145 -0
  85. package/dist/react/cjs/stories/react/AppRadioGroup.stories.js.map +1 -0
  86. package/dist/react/cjs/stories/react/AppSwitch.stories.js +138 -0
  87. package/dist/react/cjs/stories/react/AppSwitch.stories.js.map +1 -0
  88. package/dist/react/cjs/stories/react/AppTabs.stories.js +100 -0
  89. package/dist/react/cjs/stories/react/AppTabs.stories.js.map +1 -0
  90. package/dist/react/cjs/theme/components/checkbox.js +18 -0
  91. package/dist/react/cjs/theme/components/checkbox.js.map +1 -0
  92. package/dist/react/cjs/theme/components/dialog.js +46 -0
  93. package/dist/react/cjs/theme/components/dialog.js.map +1 -0
  94. package/dist/react/cjs/theme/components/divider.js +11 -0
  95. package/dist/react/cjs/theme/components/divider.js.map +1 -0
  96. package/dist/react/cjs/theme/components/form-group.js +11 -0
  97. package/dist/react/cjs/theme/components/form-group.js.map +1 -0
  98. package/dist/react/cjs/theme/components/icon-button.js +137 -0
  99. package/dist/react/cjs/theme/components/icon-button.js.map +1 -0
  100. package/dist/react/cjs/theme/components/pagination.js +53 -0
  101. package/dist/react/cjs/theme/components/pagination.js.map +1 -0
  102. package/dist/react/cjs/theme/components/radio.js +88 -0
  103. package/dist/react/cjs/theme/components/radio.js.map +1 -0
  104. package/dist/react/cjs/theme/components/skeleton.js +9 -0
  105. package/dist/react/cjs/theme/components/skeleton.js.map +1 -0
  106. package/dist/react/cjs/theme/components/switch.js +145 -0
  107. package/dist/react/cjs/theme/components/switch.js.map +1 -0
  108. package/dist/react/cjs/theme/components/tab.js +11 -0
  109. package/dist/react/cjs/theme/components/tab.js.map +1 -0
  110. package/dist/react/cjs/theme/components/tabs.js +98 -0
  111. package/dist/react/cjs/theme/components/tabs.js.map +1 -0
  112. package/dist/react/cjs/theme/components.js +34 -5
  113. package/dist/react/cjs/theme/components.js.map +1 -1
  114. package/dist/react/cjs/theme/palette.js +30 -30
  115. package/dist/react/cjs/theme/palette.js.map +1 -1
  116. package/dist/react/es/components/app-checkbox.js +43 -0
  117. package/dist/react/es/components/app-checkbox.js.map +1 -0
  118. package/dist/react/es/components/app-dialog-with-features.js +85 -0
  119. package/dist/react/es/components/app-dialog-with-features.js.map +1 -0
  120. package/dist/react/es/components/app-dialog.js +52 -0
  121. package/dist/react/es/components/app-dialog.js.map +1 -0
  122. package/dist/react/es/components/app-empty-state.js +106 -0
  123. package/dist/react/es/components/app-empty-state.js.map +1 -0
  124. package/dist/react/es/components/app-icon-button.js +30 -0
  125. package/dist/react/es/components/app-icon-button.js.map +1 -0
  126. package/dist/react/es/components/app-input-radio-card.js +86 -0
  127. package/dist/react/es/components/app-input-radio-card.js.map +1 -0
  128. package/dist/react/es/components/app-input-radio.js +69 -0
  129. package/dist/react/es/components/app-input-radio.js.map +1 -0
  130. package/dist/react/es/components/app-pagination.js +19 -0
  131. package/dist/react/es/components/app-pagination.js.map +1 -0
  132. package/dist/react/es/components/app-radio-group.js +46 -0
  133. package/dist/react/es/components/app-radio-group.js.map +1 -0
  134. package/dist/react/es/components/app-status.js +4 -0
  135. package/dist/react/es/components/app-status.js.map +1 -1
  136. package/dist/react/es/components/app-switch-group.js +34 -0
  137. package/dist/react/es/components/app-switch-group.js.map +1 -0
  138. package/dist/react/es/components/app-switch.js +25 -0
  139. package/dist/react/es/components/app-switch.js.map +1 -0
  140. package/dist/react/es/components/app-tabs.js +51 -0
  141. package/dist/react/es/components/app-tabs.js.map +1 -0
  142. package/dist/react/es/stories/css/Button.stories.js +133 -0
  143. package/dist/react/es/stories/css/Button.stories.js.map +1 -0
  144. package/dist/react/es/stories/css/Card.stories.js +145 -0
  145. package/dist/react/es/stories/css/Card.stories.js.map +1 -0
  146. package/dist/react/es/stories/css/Checkbox.stories.js +138 -0
  147. package/dist/react/es/stories/css/Checkbox.stories.js.map +1 -0
  148. package/dist/react/es/stories/css/ComponentReference.stories.js +139 -0
  149. package/dist/react/es/stories/css/ComponentReference.stories.js.map +1 -0
  150. package/dist/react/es/stories/css/Input.stories.js +162 -0
  151. package/dist/react/es/stories/css/Input.stories.js.map +1 -0
  152. package/dist/react/es/stories/css/ListItem.stories.js +166 -0
  153. package/dist/react/es/stories/css/ListItem.stories.js.map +1 -0
  154. package/dist/react/es/stories/css/Modal.stories.js +121 -0
  155. package/dist/react/es/stories/css/Modal.stories.js.map +1 -0
  156. package/dist/react/es/stories/css/Radio.stories.js +118 -0
  157. package/dist/react/es/stories/css/Radio.stories.js.map +1 -0
  158. package/dist/react/es/stories/css/Select.stories.js +187 -0
  159. package/dist/react/es/stories/css/Select.stories.js.map +1 -0
  160. package/dist/react/es/stories/css/Status.stories.js +59 -0
  161. package/dist/react/es/stories/css/Status.stories.js.map +1 -0
  162. package/dist/react/es/stories/css/Switch.stories.js +136 -0
  163. package/dist/react/es/stories/css/Switch.stories.js.map +1 -0
  164. package/dist/react/es/stories/css/Table.stories.js +171 -0
  165. package/dist/react/es/stories/css/Table.stories.js.map +1 -0
  166. package/dist/react/es/stories/css/Tooltip.stories.js +99 -0
  167. package/dist/react/es/stories/css/Tooltip.stories.js.map +1 -0
  168. package/dist/react/es/stories/css/Utilities.stories.js +136 -0
  169. package/dist/react/es/stories/css/Utilities.stories.js.map +1 -0
  170. package/dist/react/es/stories/design/Colors.stories.js +8 -2
  171. package/dist/react/es/stories/design/Colors.stories.js.map +1 -1
  172. package/dist/react/es/stories/design/Typography.stories.js +116 -0
  173. package/dist/react/es/stories/design/Typography.stories.js.map +1 -0
  174. package/dist/react/es/stories/design/spacing/CSS.stories.js +61 -0
  175. package/dist/react/es/stories/design/spacing/CSS.stories.js.map +1 -0
  176. package/dist/react/es/stories/design/{Spacing.stories.js → spacing/React.stories.js} +8 -8
  177. package/dist/react/es/stories/design/spacing/React.stories.js.map +1 -0
  178. package/dist/react/es/stories/react/AppCheckbox.stories.js +67 -0
  179. package/dist/react/es/stories/react/AppCheckbox.stories.js.map +1 -0
  180. package/dist/react/es/stories/react/AppDialog.stories.js +129 -0
  181. package/dist/react/es/stories/react/AppDialog.stories.js.map +1 -0
  182. package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js +127 -0
  183. package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js.map +1 -0
  184. package/dist/react/es/stories/react/AppEmptyState.stories.js +157 -0
  185. package/dist/react/es/stories/react/AppEmptyState.stories.js.map +1 -0
  186. package/dist/react/es/stories/react/AppIconButton.stories.js +53 -0
  187. package/dist/react/es/stories/react/AppIconButton.stories.js.map +1 -0
  188. package/dist/react/es/stories/react/AppInputBase.stories.js +91 -72
  189. package/dist/react/es/stories/react/AppInputBase.stories.js.map +1 -1
  190. package/dist/react/es/stories/react/AppInputBaseSearch.stories.js +34 -26
  191. package/dist/react/es/stories/react/AppInputBaseSearch.stories.js.map +1 -1
  192. package/dist/react/es/stories/react/AppInputRadio.stories.js +262 -0
  193. package/dist/react/es/stories/react/AppInputRadio.stories.js.map +1 -0
  194. package/dist/react/es/stories/react/AppInputRadioCard.stories.js +126 -0
  195. package/dist/react/es/stories/react/AppInputRadioCard.stories.js.map +1 -0
  196. package/dist/react/es/stories/react/AppPagination.stories.js +71 -0
  197. package/dist/react/es/stories/react/AppPagination.stories.js.map +1 -0
  198. package/dist/react/es/stories/react/AppRadioGroup.stories.js +145 -0
  199. package/dist/react/es/stories/react/AppRadioGroup.stories.js.map +1 -0
  200. package/dist/react/es/stories/react/AppSwitch.stories.js +138 -0
  201. package/dist/react/es/stories/react/AppSwitch.stories.js.map +1 -0
  202. package/dist/react/es/stories/react/AppTabs.stories.js +100 -0
  203. package/dist/react/es/stories/react/AppTabs.stories.js.map +1 -0
  204. package/dist/react/es/theme/components/checkbox.js +18 -0
  205. package/dist/react/es/theme/components/checkbox.js.map +1 -0
  206. package/dist/react/es/theme/components/dialog.js +46 -0
  207. package/dist/react/es/theme/components/dialog.js.map +1 -0
  208. package/dist/react/es/theme/components/divider.js +11 -0
  209. package/dist/react/es/theme/components/divider.js.map +1 -0
  210. package/dist/react/es/theme/components/form-group.js +11 -0
  211. package/dist/react/es/theme/components/form-group.js.map +1 -0
  212. package/dist/react/es/theme/components/icon-button.js +137 -0
  213. package/dist/react/es/theme/components/icon-button.js.map +1 -0
  214. package/dist/react/es/theme/components/pagination.js +53 -0
  215. package/dist/react/es/theme/components/pagination.js.map +1 -0
  216. package/dist/react/es/theme/components/radio.js +88 -0
  217. package/dist/react/es/theme/components/radio.js.map +1 -0
  218. package/dist/react/es/theme/components/skeleton.js +9 -0
  219. package/dist/react/es/theme/components/skeleton.js.map +1 -0
  220. package/dist/react/es/theme/components/switch.js +145 -0
  221. package/dist/react/es/theme/components/switch.js.map +1 -0
  222. package/dist/react/es/theme/components/tab.js +11 -0
  223. package/dist/react/es/theme/components/tab.js.map +1 -0
  224. package/dist/react/es/theme/components/tabs.js +98 -0
  225. package/dist/react/es/theme/components/tabs.js.map +1 -0
  226. package/dist/react/es/theme/components.js +34 -5
  227. package/dist/react/es/theme/components.js.map +1 -1
  228. package/dist/react/es/theme/palette.js +20 -20
  229. package/dist/react/es/theme/palette.js.map +1 -1
  230. package/dist/react/types/components/app-checkbox.d.ts +11 -0
  231. package/dist/react/types/components/app-dialog-with-features.d.ts +16 -0
  232. package/dist/react/types/components/app-dialog.d.ts +15 -0
  233. package/dist/react/types/components/app-empty-state.d.ts +22 -0
  234. package/dist/react/types/components/app-icon-button.d.ts +14 -0
  235. package/dist/react/types/components/app-input-radio-card.d.ts +15 -0
  236. package/dist/react/types/components/app-input-radio.d.ts +24 -0
  237. package/dist/react/types/components/app-pagination.d.ts +5 -0
  238. package/dist/react/types/components/app-radio-group.d.ts +13 -0
  239. package/dist/react/types/components/app-status.d.ts +1 -1
  240. package/dist/react/types/components/app-switch-group.d.ts +13 -0
  241. package/dist/react/types/components/app-switch.d.ts +10 -0
  242. package/dist/react/types/components/app-tabs.d.ts +13 -0
  243. package/dist/react/types/stories/css/Button.stories.d.ts +15 -0
  244. package/dist/react/types/stories/css/Card.stories.d.ts +16 -0
  245. package/dist/react/types/stories/css/Checkbox.stories.d.ts +14 -0
  246. package/dist/react/types/stories/css/ComponentReference.stories.d.ts +13 -0
  247. package/dist/react/types/stories/css/Input.stories.d.ts +15 -0
  248. package/dist/react/types/stories/css/ListItem.stories.d.ts +15 -0
  249. package/dist/react/types/stories/css/Modal.stories.d.ts +14 -0
  250. package/dist/react/types/stories/css/Radio.stories.d.ts +13 -0
  251. package/dist/react/types/stories/css/Select.stories.d.ts +14 -0
  252. package/dist/react/types/stories/css/Status.stories.d.ts +11 -0
  253. package/dist/react/types/stories/css/Switch.stories.d.ts +14 -0
  254. package/dist/react/types/stories/css/Table.stories.d.ts +14 -0
  255. package/dist/react/types/stories/css/Tooltip.stories.d.ts +14 -0
  256. package/dist/react/types/stories/css/Utilities.stories.d.ts +12 -0
  257. package/dist/react/types/stories/design/Typography.stories.d.ts +12 -0
  258. package/dist/react/types/stories/design/spacing/CSS.stories.d.ts +11 -0
  259. package/dist/react/types/stories/react/AppCheckbox.stories.d.ts +32 -0
  260. package/dist/react/types/stories/react/AppDialog.stories.d.ts +31 -0
  261. package/dist/react/types/stories/react/AppDialogWithFeatures.stories.d.ts +22 -0
  262. package/dist/react/types/stories/react/AppEmptyState.stories.d.ts +39 -0
  263. package/dist/react/types/stories/react/AppIconButton.stories.d.ts +15 -0
  264. package/dist/react/types/stories/react/AppInputRadio.stories.d.ts +55 -0
  265. package/dist/react/types/stories/react/AppInputRadioCard.stories.d.ts +37 -0
  266. package/dist/react/types/stories/react/AppPagination.stories.d.ts +35 -0
  267. package/dist/react/types/stories/react/AppRadioGroup.stories.d.ts +44 -0
  268. package/dist/react/types/stories/react/AppSwitch.stories.d.ts +38 -0
  269. package/dist/react/types/stories/react/AppTabs.stories.d.ts +22 -0
  270. package/dist/react/types/theme/components/checkbox.d.ts +2 -0
  271. package/dist/react/types/theme/components/dialog.d.ts +5 -0
  272. package/dist/react/types/theme/components/divider.d.ts +2 -0
  273. package/dist/react/types/theme/components/form-group.d.ts +2 -0
  274. package/dist/react/types/theme/components/icon-button.d.ts +2 -0
  275. package/dist/react/types/theme/components/pagination.d.ts +2 -0
  276. package/dist/react/types/theme/components/radio.d.ts +2 -0
  277. package/dist/react/types/theme/components/skeleton.d.ts +2 -0
  278. package/dist/react/types/theme/components/switch.d.ts +2 -0
  279. package/dist/react/types/theme/components/tab.d.ts +2 -0
  280. package/dist/react/types/theme/components/tabs.d.ts +2 -0
  281. package/dist/tsconfig.tsbuildinfo +1 -1
  282. package/package.json +1 -1
  283. package/dist/react/cjs/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +0 -102
  284. package/dist/react/cjs/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +0 -1
  285. package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js +0 -6
  286. package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
  287. package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -8
  288. package/dist/react/cjs/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
  289. package/dist/react/cjs/stories/design/Spacing.stories.js.map +0 -1
  290. package/dist/react/es/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +0 -102
  291. package/dist/react/es/node_modules/.pnpm/@mui_system@7.3.5_@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4__@emotion_st_11ad1bc919f221d0594f2562584c38ea/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +0 -1
  292. package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js +0 -7
  293. package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
  294. package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -9
  295. package/dist/react/es/node_modules/.pnpm/@mui_utils@7.3.5_@types_react@19.2.14_react@19.2.4/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
  296. package/dist/react/es/stories/design/Spacing.stories.js.map +0 -1
  297. /package/dist/react/types/stories/design/{Spacing.stories.d.ts → spacing/React.stories.d.ts} +0 -0
@@ -0,0 +1,157 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { AppEmptyState } from "../../components/app-empty-state.js";
3
+ import { AppButton } from "../../components/app-button.js";
4
+ import { IconErrorWarningLine } from "../../icons/system/error-warning-line.js";
5
+ import { IconLockLine } from "../../icons/system/lock-line.js";
6
+ import { IconStarLine } from "../../icons/system/star-line.js";
7
+ const meta = {
8
+ title: "React/App Empty State",
9
+ component: AppEmptyState,
10
+ parameters: {
11
+ layout: "centered"
12
+ },
13
+ tags: ["autodocs"],
14
+ argTypes: {
15
+ size: {
16
+ control: "select",
17
+ options: ["standard", "small"]
18
+ },
19
+ variant: {
20
+ control: "select",
21
+ options: ["default", "error", "warning", "success"]
22
+ },
23
+ title: {
24
+ control: "text"
25
+ },
26
+ description: {
27
+ control: "text"
28
+ },
29
+ subDescription: {
30
+ control: "text"
31
+ }
32
+ }
33
+ };
34
+ const Default = {
35
+ args: {
36
+ size: "standard",
37
+ icon: /* @__PURE__ */ jsx(IconStarLine, {}),
38
+ title: "Empty state title",
39
+ description: "Some text explaining the state here and a nudge to take a corrective or guiding action",
40
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
41
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
42
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
43
+ ] })
44
+ }
45
+ };
46
+ const PageNotFound = {
47
+ args: {
48
+ icon: /* @__PURE__ */ jsx(IconErrorWarningLine, {}),
49
+ variant: "error",
50
+ size: "standard",
51
+ title: "Oops, page not found!",
52
+ description: "We are very sorry for inconvenience.",
53
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
54
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
55
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
56
+ ] })
57
+ }
58
+ };
59
+ const PageNotFoundWithSubDescription = {
60
+ args: {
61
+ icon: /* @__PURE__ */ jsx(IconErrorWarningLine, {}),
62
+ variant: "error",
63
+ size: "standard",
64
+ title: "Oops, page not found!",
65
+ description: "We are very sorry for inconvenience.",
66
+ subDescription: "Error Code: 404",
67
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
68
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
69
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
70
+ ] })
71
+ }
72
+ };
73
+ const AccessDenied = {
74
+ args: {
75
+ icon: /* @__PURE__ */ jsx(IconLockLine, {}),
76
+ title: "Access denied",
77
+ variant: "warning",
78
+ size: "standard",
79
+ description: "You don't have permission to access this area or take this action",
80
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
81
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
82
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
83
+ ] })
84
+ }
85
+ };
86
+ const SomethingWentWrong = {
87
+ args: {
88
+ icon: /* @__PURE__ */ jsx(IconErrorWarningLine, {}),
89
+ variant: "error",
90
+ size: "standard",
91
+ title: "Something went wrong",
92
+ description: "The page you are looking for doesn't exist or has been moved.",
93
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
94
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
95
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
96
+ ] })
97
+ }
98
+ };
99
+ const SmallSize = {
100
+ args: {
101
+ icon: /* @__PURE__ */ jsx(IconErrorWarningLine, {}),
102
+ variant: "error",
103
+ size: "small",
104
+ title: "Something went wrong",
105
+ description: "The page you are looking for doesn't exist or has been moved.",
106
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
107
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
108
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
109
+ ] })
110
+ }
111
+ };
112
+ const WithImage = {
113
+ args: {
114
+ icon: /* @__PURE__ */ jsx(IconErrorWarningLine, {}),
115
+ imageUrl: "https://picsum.photos/200/300",
116
+ variant: "error",
117
+ size: "standard",
118
+ title: "Oops, page not found!",
119
+ description: "We are very sorry for inconvenience.",
120
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
121
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
122
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
123
+ ] })
124
+ }
125
+ };
126
+ const NoDescription = {
127
+ args: {
128
+ size: "standard",
129
+ icon: /* @__PURE__ */ jsx(IconStarLine, {}),
130
+ title: "Empty state title",
131
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
132
+ /* @__PURE__ */ jsx(AppButton, { color: "secondary", variant: "outlined", children: "Secondary Action" }),
133
+ /* @__PURE__ */ jsx(AppButton, { variant: "contained", children: "Primary Action" })
134
+ ] })
135
+ }
136
+ };
137
+ const NoChildren = {
138
+ args: {
139
+ size: "standard",
140
+ icon: /* @__PURE__ */ jsx(IconStarLine, {}),
141
+ title: "Empty state title",
142
+ description: "Some text explaining the state here and a nudge to take a corrective or guiding action"
143
+ }
144
+ };
145
+ export {
146
+ AccessDenied,
147
+ Default,
148
+ NoChildren,
149
+ NoDescription,
150
+ PageNotFound,
151
+ PageNotFoundWithSubDescription,
152
+ SmallSize,
153
+ SomethingWentWrong,
154
+ WithImage,
155
+ meta as default
156
+ };
157
+ //# sourceMappingURL=AppEmptyState.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEmptyState.stories.js","sources":["../../../../../src/stories/react/AppEmptyState.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { AppEmptyState } from '~/components/app-empty-state';\nimport { AppButton } from '~/components/app-button';\nimport { IconErrorWarningLine } from '~/icons/system/error-warning-line';\nimport { IconLockLine } from '~/icons/system/lock-line';\nimport { IconStarLine } from '~/icons/system/star-line';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Empty State',\n component: AppEmptyState,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: 'select',\n options: ['standard', 'small'],\n },\n variant: {\n control: 'select',\n options: ['default', 'error', 'warning', 'success'],\n },\n title: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n subDescription: {\n control: 'text',\n },\n },\n} satisfies Meta<typeof AppEmptyState>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Default: Story = {\n args: {\n size: 'standard',\n icon: <IconStarLine />,\n title: 'Empty state title',\n description:\n 'Some text explaining the state here and a nudge to take a corrective or guiding action',\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const PageNotFound: Story = {\n args: {\n icon: <IconErrorWarningLine />,\n variant: 'error',\n size: 'standard',\n title: 'Oops, page not found!',\n description: 'We are very sorry for inconvenience.',\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const PageNotFoundWithSubDescription: Story = {\n args: {\n icon: <IconErrorWarningLine />,\n variant: 'error',\n size: 'standard',\n title: 'Oops, page not found!',\n description: 'We are very sorry for inconvenience.',\n subDescription: 'Error Code: 404',\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const AccessDenied: Story = {\n args: {\n icon: <IconLockLine />,\n title: 'Access denied',\n variant: 'warning',\n size: 'standard',\n description: \"You don't have permission to access this area or take this action\",\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const SomethingWentWrong: Story = {\n args: {\n icon: <IconErrorWarningLine />,\n variant: 'error',\n size: 'standard',\n title: 'Something went wrong',\n description: \"The page you are looking for doesn't exist or has been moved.\",\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const SmallSize: Story = {\n args: {\n icon: <IconErrorWarningLine />,\n variant: 'error',\n size: 'small',\n title: 'Something went wrong',\n description: \"The page you are looking for doesn't exist or has been moved.\",\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const WithImage: Story = {\n args: {\n icon: <IconErrorWarningLine />,\n imageUrl: 'https://picsum.photos/200/300',\n variant: 'error',\n size: 'standard',\n title: 'Oops, page not found!',\n description: 'We are very sorry for inconvenience.',\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const NoDescription: Story = {\n args: {\n size: 'standard',\n icon: <IconStarLine />,\n title: 'Empty state title',\n children: (\n <>\n <AppButton color=\"secondary\" variant=\"outlined\">\n Secondary Action\n </AppButton>\n <AppButton variant=\"contained\">Primary Action</AppButton>\n </>\n ),\n },\n};\n\n//\n\nexport const NoChildren: Story = {\n args: {\n size: 'standard',\n icon: <IconStarLine />,\n title: 'Empty state title',\n description:\n 'Some text explaining the state here and a nudge to take a corrective or guiding action',\n },\n};\n"],"names":[],"mappings":";;;;;;AAYA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,YAAY,OAAO;AAAA,IAAA;AAAA,IAE/B,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS,CAAC,WAAW,SAAS,WAAW,SAAS;AAAA,IAAA;AAAA,IAEpD,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,IAEX,gBAAgB;AAAA,MACd,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAOO,MAAM,UAAiB;AAAA,EAC5B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,0BAAO,cAAA,EAAa;AAAA,IACpB,OAAO;AAAA,IACP,aACE;AAAA,IACF,UACE,qBAAA,UAAA,EACE,UAAA;AAAA,MAAA,oBAAC,WAAA,EAAU,OAAM,aAAY,SAAQ,YAAW,UAAA,oBAEhD;AAAA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,aAAY,SAAQ,YAAW,UAAA,oBAEhD;AAAA,MACA,oBAAC,WAAA,EAAU,SAAQ,aAAY,UAAA,iBAAA,CAAc;AAAA,IAAA,EAAA,CAC/C;AAAA,EAAA;AAGN;AAIO,MAAM,aAAoB;AAAA,EAC/B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,0BAAO,cAAA,EAAa;AAAA,IACpB,OAAO;AAAA,IACP,aACE;AAAA,EAAA;AAEN;"}
@@ -0,0 +1,53 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { AppIconButton } from "../../components/app-icon-button.js";
3
+ import { IconSettingsLine } from "../../icons/system/settings-line.js";
4
+ import { IconDeleteBinLine } from "../../icons/system/delete-bin-line.js";
5
+ import { StackColumn } from "../../components/stack-column.js";
6
+ const meta = {
7
+ title: "React/App Icon Button",
8
+ component: AppIconButton,
9
+ parameters: {
10
+ layout: "centered"
11
+ },
12
+ tags: ["autodocs"]
13
+ };
14
+ const Variants = {
15
+ render: () => /* @__PURE__ */ jsxs(StackColumn, { gap: 3, children: [
16
+ /* @__PURE__ */ jsxs(StackColumn, { direction: "row", gap: 2, alignItems: "center", children: [
17
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "large", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
18
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "medium", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
19
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "small", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
20
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "extraSmall", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) })
21
+ ] }),
22
+ /* @__PURE__ */ jsxs(StackColumn, { direction: "row", gap: 2, alignItems: "center", children: [
23
+ /* @__PURE__ */ jsx(AppIconButton, { color: "secondary", size: "large", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
24
+ /* @__PURE__ */ jsx(AppIconButton, { color: "secondary", size: "medium", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
25
+ /* @__PURE__ */ jsx(AppIconButton, { color: "secondary", size: "small", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
26
+ /* @__PURE__ */ jsx(AppIconButton, { color: "secondary", size: "extraSmall", children: /* @__PURE__ */ jsx(IconSettingsLine, {}) })
27
+ ] }),
28
+ /* @__PURE__ */ jsxs(StackColumn, { direction: "row", gap: 2, alignItems: "center", children: [
29
+ /* @__PURE__ */ jsx(AppIconButton, { color: "error", size: "large", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
30
+ /* @__PURE__ */ jsx(AppIconButton, { color: "error", size: "medium", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
31
+ /* @__PURE__ */ jsx(AppIconButton, { color: "error", size: "small", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
32
+ /* @__PURE__ */ jsx(AppIconButton, { color: "error", size: "extraSmall", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) })
33
+ ] }),
34
+ /* @__PURE__ */ jsxs(StackColumn, { direction: "row", gap: 2, alignItems: "center", children: [
35
+ /* @__PURE__ */ jsx(AppIconButton, { color: "default", size: "large", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
36
+ /* @__PURE__ */ jsx(AppIconButton, { color: "default", size: "medium", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
37
+ /* @__PURE__ */ jsx(AppIconButton, { color: "default", size: "small", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) }),
38
+ /* @__PURE__ */ jsx(AppIconButton, { color: "default", size: "extraSmall", children: /* @__PURE__ */ jsx(IconDeleteBinLine, {}) })
39
+ ] }),
40
+ /* @__PURE__ */ jsxs(StackColumn, { direction: "row", gap: 2, alignItems: "center", children: [
41
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "large", loading: true, children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
42
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "medium", loading: true, children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
43
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "small", loading: true, children: /* @__PURE__ */ jsx(IconSettingsLine, {}) }),
44
+ /* @__PURE__ */ jsx(AppIconButton, { color: "primary", size: "extraSmall", loading: true, children: /* @__PURE__ */ jsx(IconSettingsLine, {}) })
45
+ ] })
46
+ ] }),
47
+ args: {}
48
+ };
49
+ export {
50
+ Variants,
51
+ meta as default
52
+ };
53
+ //# sourceMappingURL=AppIconButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppIconButton.stories.js","sources":["../../../../../src/stories/react/AppIconButton.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { AppIconButton } from '~/components/app-icon-button';\nimport { IconSettingsLine } from '~/icons/system/settings-line';\nimport { IconDeleteBinLine } from '~/icons/system/delete-bin-line';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Icon Button',\n component: AppIconButton,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof AppIconButton>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Variants: Story = {\n render: () => (\n <StackColumn gap={3}>\n {/* Primary */}\n <StackColumn direction=\"row\" gap={2} alignItems=\"center\">\n <AppIconButton color=\"primary\" size=\"large\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"medium\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"small\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"extraSmall\">\n <IconSettingsLine />\n </AppIconButton>\n </StackColumn>\n\n {/* Secondary */}\n <StackColumn direction=\"row\" gap={2} alignItems=\"center\">\n <AppIconButton color=\"secondary\" size=\"large\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"secondary\" size=\"medium\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"secondary\" size=\"small\">\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"secondary\" size=\"extraSmall\">\n <IconSettingsLine />\n </AppIconButton>\n </StackColumn>\n\n {/* Error */}\n <StackColumn direction=\"row\" gap={2} alignItems=\"center\">\n <AppIconButton color=\"error\" size=\"large\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"error\" size=\"medium\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"error\" size=\"small\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"error\" size=\"extraSmall\">\n <IconDeleteBinLine />\n </AppIconButton>\n </StackColumn>\n\n {/* Default */}\n <StackColumn direction=\"row\" gap={2} alignItems=\"center\">\n <AppIconButton color=\"default\" size=\"large\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"default\" size=\"medium\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"default\" size=\"small\">\n <IconDeleteBinLine />\n </AppIconButton>\n\n <AppIconButton color=\"default\" size=\"extraSmall\">\n <IconDeleteBinLine />\n </AppIconButton>\n </StackColumn>\n\n {/* Loading */}\n <StackColumn direction=\"row\" gap={2} alignItems=\"center\">\n <AppIconButton color=\"primary\" size=\"large\" loading>\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"medium\" loading>\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"small\" loading>\n <IconSettingsLine />\n </AppIconButton>\n\n <AppIconButton color=\"primary\" size=\"extraSmall\" loading>\n <IconSettingsLine />\n </AppIconButton>\n </StackColumn>\n </StackColumn>\n ),\n args: {},\n};\n"],"names":[],"mappings":";;;;;AAWA,MAAM,OAAO;AAAA,EACX,OAA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A;AACR;"}
@@ -53,82 +53,101 @@ const Playground = {
53
53
  args: {}
54
54
  };
55
55
  const Variants = {
56
- render: () => /* @__PURE__ */ jsxs(StackColumn, { sx: { background: "white" }, padding: 10, gap: 4, children: [
57
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Basic" }),
58
- /* @__PURE__ */ jsx(AppInputBase, {}),
59
- /* @__PURE__ */ jsx(AppInputBase, { label: "User name" }),
60
- /* @__PURE__ */ jsx(AppInputBase, { label: "User name", placeholder: "Enter your username" }),
61
- /* @__PURE__ */ jsx(AppInputBase, { label: "User name", placeholder: "Enter your username", size: "small" }),
56
+ render: () => /* @__PURE__ */ jsxs(StackColumn, { sx: { background: "white" }, padding: 4, gap: 3, width: 400, children: [
57
+ /* @__PURE__ */ jsxs(StackColumn, { gap: 2, children: [
58
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Basic" }),
59
+ /* @__PURE__ */ jsx(AppInputBase, {}),
60
+ /* @__PURE__ */ jsx(AppInputBase, { label: "User name" }),
61
+ /* @__PURE__ */ jsx(AppInputBase, { label: "User name", placeholder: "Enter your username" }),
62
+ /* @__PURE__ */ jsx(AppInputBase, { label: "User name", placeholder: "Enter your username", size: "small" })
63
+ ] }),
62
64
  /* @__PURE__ */ jsx(Divider, {}),
63
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "States" }),
64
- /* @__PURE__ */ jsx(
65
- AppInputBase,
66
- {
67
- label: "Error",
68
- placeholder: "Invalid input",
69
- error: true,
70
- helperText: "This field is required"
71
- }
72
- ),
73
- /* @__PURE__ */ jsx(AppInputBase, { label: "Disabled", placeholder: "Cannot edit", disabled: true }),
65
+ /* @__PURE__ */ jsxs(StackColumn, { gap: 2, children: [
66
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "States" }),
67
+ /* @__PURE__ */ jsx(
68
+ AppInputBase,
69
+ {
70
+ label: "Error",
71
+ placeholder: "Invalid input",
72
+ error: true,
73
+ helperText: "This field is required"
74
+ }
75
+ ),
76
+ /* @__PURE__ */ jsx(AppInputBase, { label: "Disabled", placeholder: "Cannot edit", disabled: true })
77
+ ] }),
74
78
  /* @__PURE__ */ jsx(Divider, {}),
75
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Adornments" }),
76
- /* @__PURE__ */ jsx(AppInputBase, { label: "Price", placeholder: "0.00", startAdornmentText: "$" }),
77
- /* @__PURE__ */ jsx(AppInputBase, { label: "Price", placeholder: "0.00", endAdornmentText: "$" }),
78
- /* @__PURE__ */ jsx(AppInputBase, { label: "Weight", placeholder: "0", endAdornmentText: "Kg" }),
79
- /* @__PURE__ */ jsx(
80
- AppInputBase,
81
- {
82
- label: "Price",
83
- placeholder: "0.00",
84
- endAdornmentText: "SAR",
85
- endAdornmentTextProps: { typographyProps: { color: "primary" } }
86
- }
87
- ),
79
+ /* @__PURE__ */ jsxs(StackColumn, { gap: 2, children: [
80
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Adornments" }),
81
+ /* @__PURE__ */ jsx(AppInputBase, { label: "Price", placeholder: "0.00", startAdornmentText: "$" }),
82
+ /* @__PURE__ */ jsx(AppInputBase, { label: "Price", placeholder: "0.00", endAdornmentText: "$" }),
83
+ /* @__PURE__ */ jsx(AppInputBase, { label: "Weight", placeholder: "0", endAdornmentText: "Kg" }),
84
+ /* @__PURE__ */ jsx(
85
+ AppInputBase,
86
+ {
87
+ label: "Price",
88
+ placeholder: "0.00",
89
+ endAdornmentText: "SAR",
90
+ endAdornmentTextProps: { typographyProps: { color: "primary" } }
91
+ }
92
+ )
93
+ ] }),
88
94
  /* @__PURE__ */ jsx(Divider, {}),
89
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Multiline" }),
90
- /* @__PURE__ */ jsx(
91
- AppInputBase,
92
- {
93
- label: "Description",
94
- placeholder: "Enter a detailed description...",
95
- endAdornmentText: "Kg",
96
- multiline: true
97
- }
98
- ),
95
+ /* @__PURE__ */ jsxs(StackColumn, { gap: 2, children: [
96
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Multiline" }),
97
+ /* @__PURE__ */ jsx(
98
+ AppInputBase,
99
+ {
100
+ label: "Description",
101
+ placeholder: "Enter a detailed description...",
102
+ endAdornmentText: "Kg",
103
+ multiline: true
104
+ }
105
+ )
106
+ ] }),
99
107
  /* @__PURE__ */ jsx(Divider, {}),
100
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "RTL" }),
101
- /* @__PURE__ */ jsx(AppInputBase, { dir: "rtl", label: "اسم المستخدم" }),
102
- /* @__PURE__ */ jsx(AppInputBase, { dir: "rtl", label: "اسم المستخدم", placeholder: "اسم المستخدم" }),
103
- /* @__PURE__ */ jsx(AppInputBase, { dir: "rtl", label: "اسم المستخدم", placeholder: "اسم المستخدم", size: "small", error: true }),
104
- /* @__PURE__ */ jsx(
105
- AppInputBase,
106
- {
107
- dir: "rtl",
108
- label: "اسم المستخدم",
109
- placeholder: "اسم المستخدم",
110
- startAdornmentText: "$"
111
- }
112
- ),
113
- /* @__PURE__ */ jsx(
114
- AppInputBase,
115
- {
116
- dir: "rtl",
117
- label: "اسم المستخدم",
118
- placeholder: "اسم المستخدم",
119
- endAdornmentText: "Kg"
120
- }
121
- ),
122
- /* @__PURE__ */ jsx(
123
- AppInputBase,
124
- {
125
- dir: "rtl",
126
- label: "الوصف",
127
- placeholder: "هذا النص طويل جداً جداً جداً جداً للاختبار",
128
- endAdornmentText: "Kg",
129
- multiline: true
130
- }
131
- )
108
+ /* @__PURE__ */ jsxs(StackColumn, { gap: 2, children: [
109
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "RTL" }),
110
+ /* @__PURE__ */ jsx(AppInputBase, { dir: "rtl", label: "اسم المستخدم" }),
111
+ /* @__PURE__ */ jsx(AppInputBase, { dir: "rtl", label: "اسم المستخدم", placeholder: "اسم المستخدم" }),
112
+ /* @__PURE__ */ jsx(
113
+ AppInputBase,
114
+ {
115
+ dir: "rtl",
116
+ label: "اسم المستخدم",
117
+ placeholder: "اسم المستخدم",
118
+ size: "small",
119
+ error: true
120
+ }
121
+ ),
122
+ /* @__PURE__ */ jsx(
123
+ AppInputBase,
124
+ {
125
+ dir: "rtl",
126
+ label: "اسم المستخدم",
127
+ placeholder: "اسم المستخدم",
128
+ startAdornmentText: "$"
129
+ }
130
+ ),
131
+ /* @__PURE__ */ jsx(
132
+ AppInputBase,
133
+ {
134
+ dir: "rtl",
135
+ label: "اسم المستخدم",
136
+ placeholder: "اسم المستخدم",
137
+ endAdornmentText: "Kg"
138
+ }
139
+ ),
140
+ /* @__PURE__ */ jsx(
141
+ AppInputBase,
142
+ {
143
+ dir: "rtl",
144
+ label: "الوصف",
145
+ placeholder: "هذا النص طويل جداً جداً جداً جداً للاختبار",
146
+ endAdornmentText: "Kg",
147
+ multiline: true
148
+ }
149
+ )
150
+ ] })
132
151
  ] })
133
152
  };
134
153
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"AppInputBase.stories.js","sources":["../../../../../src/stories/react/AppInputBase.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Divider } from '@mui/material';\n\nimport { AppInputBase } from '~/components/app-input-base';\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Input Base',\n component: AppInputBase,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: 'select',\n options: ['medium', 'small'],\n },\n disabled: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n multiline: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n placeholder: {\n control: 'text',\n },\n helperText: {\n control: 'text',\n },\n startAdornmentText: {\n control: 'text',\n },\n endAdornmentText: {\n control: 'text',\n },\n },\n args: {\n size: 'medium',\n label: 'Label',\n placeholder: 'Placeholder text',\n disabled: false,\n error: false,\n multiline: false,\n },\n} satisfies Meta<typeof AppInputBase>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Playground: Story = {\n args: {},\n};\n\n//\n\nexport const Variants: Story = {\n render: () => (\n <StackColumn sx={{ background: 'white' }} padding={10} gap={4}>\n <AppTypography variant=\"h6\">Basic</AppTypography>\n\n <AppInputBase />\n <AppInputBase label=\"User name\" />\n <AppInputBase label=\"User name\" placeholder=\"Enter your username\" />\n <AppInputBase label=\"User name\" placeholder=\"Enter your username\" size=\"small\" />\n\n <Divider />\n\n <AppTypography variant=\"h6\">States</AppTypography>\n\n <AppInputBase\n label=\"Error\"\n placeholder=\"Invalid input\"\n error\n helperText=\"This field is required\"\n />\n <AppInputBase label=\"Disabled\" placeholder=\"Cannot edit\" disabled />\n\n <Divider />\n\n <AppTypography variant=\"h6\">Adornments</AppTypography>\n\n <AppInputBase label=\"Price\" placeholder=\"0.00\" startAdornmentText=\"$\" />\n <AppInputBase label=\"Price\" placeholder=\"0.00\" endAdornmentText=\"$\" />\n <AppInputBase label=\"Weight\" placeholder=\"0\" endAdornmentText=\"Kg\" />\n <AppInputBase\n label=\"Price\"\n placeholder=\"0.00\"\n endAdornmentText=\"SAR\"\n endAdornmentTextProps={{ typographyProps: { color: 'primary' } }}\n />\n\n <Divider />\n\n <AppTypography variant=\"h6\">Multiline</AppTypography>\n\n <AppInputBase\n label=\"Description\"\n placeholder=\"Enter a detailed description...\"\n endAdornmentText=\"Kg\"\n multiline\n />\n\n <Divider />\n\n <AppTypography variant=\"h6\">RTL</AppTypography>\n\n <AppInputBase dir=\"rtl\" label=\"اسم المستخدم\" />\n <AppInputBase dir=\"rtl\" label=\"اسم المستخدم\" placeholder=\"اسم المستخدم\" />\n <AppInputBase dir=\"rtl\" label=\"اسم المستخدم\" placeholder=\"اسم المستخدم\" size=\"small\" error />\n <AppInputBase\n dir=\"rtl\"\n label=\"اسم المستخدم\"\n placeholder=\"اسم المستخدم\"\n startAdornmentText=\"$\"\n />\n <AppInputBase\n dir=\"rtl\"\n label=\"اسم المستخدم\"\n placeholder=\"اسم المستخدم\"\n endAdornmentText=\"Kg\"\n />\n <AppInputBase\n dir=\"rtl\"\n label=\"الوصف\"\n placeholder=\"هذا النص طويل جداً جداً جداً جداً للاختبار\"\n endAdornmentText=\"Kg\"\n multiline\n />\n </StackColumn>\n ),\n};\n"],"names":[],"mappings":";;;;;AAYA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,UAAU,OAAO;AAAA,IAAA;AAAA,IAE7B,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,WAAW;AAAA,MACT,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,IAEX,YAAY;AAAA,MACV,SAAS;AAAA,IAAA;AAAA,IAEX,oBAAoB;AAAA,MAClB,SAAS;AAAA,IAAA;AAAA,IAEX,kBAAkB;AAAA,MAChB,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,WAAW;AAAA,EAAA;AAEf;AAOO,MAAM,aAAoB;AAAA,EAC/B,MAAM,CAAA;AACR;AAIO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACN,qBAAC,aAAA,EAAY,IAAI,EAAE,YAAY,QAAA,GAAW,SAAS,IAAI,KAAK,GAC1D,UAAA;AAAA,IAAA,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,SAAK;AAAA,wBAEhC,cA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AI,OAAM,OAAM,gBAAe;AAAA,wBAC5C,cAAA,EAAa,KAAI,OAAM,OAAM,gBAAe,aAAY,gBAAe;AAAA,IACxE,oBAAC,cAAA,EAAa,KAAI,OAAM,OAAM,gBAAe,aAAY,gBAAe,MAAK,SAAQ,OAAK,KAAA,CAAC;AAAA,IAC3F;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAI;AAAA,QACJ,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,oBAAmB;AAAA,MAAA;AAAA,IAAA;AAAA,IAErB;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAI;AAAA,QACJ,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,kBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAEnB;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAI;AAAA,QACJ,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,kBAAiB;AAAA,QACjB,WAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EACX,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"AppInputBase.stories.js","sources":["../../../../../src/stories/react/AppInputBase.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Divider } from '@mui/material';\n\nimport { AppInputBase } from '~/components/app-input-base';\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Input Base',\n component: AppInputBase,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: 'select',\n options: ['medium', 'small'],\n },\n disabled: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n multiline: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n placeholder: {\n control: 'text',\n },\n helperText: {\n control: 'text',\n },\n startAdornmentText: {\n control: 'text',\n },\n endAdornmentText: {\n control: 'text',\n },\n },\n args: {\n size: 'medium',\n label: 'Label',\n placeholder: 'Placeholder text',\n disabled: false,\n error: false,\n multiline: false,\n },\n} satisfies Meta<typeof AppInputBase>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Playground: Story = {\n args: {},\n};\n\n//\n\nexport const Variants: Story = {\n render: () => (\n <StackColumn sx={{ background: 'white' }} padding={4} gap={3} width={400}>\n <StackColumn gap={2}>\n <AppTypography variant=\"h6\">Basic</AppTypography>\n\n <AppInputBase />\n <AppInputBase label=\"User name\" />\n <AppInputBase label=\"User name\" placeholder=\"Enter your username\" />\n <AppInputBase label=\"User name\" placeholder=\"Enter your username\" size=\"small\" />\n </StackColumn>\n\n <Divider />\n\n <StackColumn gap={2}>\n <AppTypography variant=\"h6\">States</AppTypography>\n\n <AppInputBase\n label=\"Error\"\n placeholder=\"Invalid input\"\n error\n helperText=\"This field is required\"\n />\n <AppInputBase label=\"Disabled\" placeholder=\"Cannot edit\" disabled />\n </StackColumn>\n\n <Divider />\n\n <StackColumn gap={2}>\n <AppTypography variant=\"h6\">Adornments</AppTypography>\n\n <AppInputBase label=\"Price\" placeholder=\"0.00\" startAdornmentText=\"$\" />\n <AppInputBase label=\"Price\" placeholder=\"0.00\" endAdornmentText=\"$\" />\n <AppInputBase label=\"Weight\" placeholder=\"0\" endAdornmentText=\"Kg\" />\n <AppInputBase\n label=\"Price\"\n placeholder=\"0.00\"\n endAdornmentText=\"SAR\"\n endAdornmentTextProps={{ typographyProps: { color: 'primary' } }}\n />\n </StackColumn>\n\n <Divider />\n\n <StackColumn gap={2}>\n <AppTypography variant=\"h6\">Multiline</AppTypography>\n\n <AppInputBase\n label=\"Description\"\n placeholder=\"Enter a detailed description...\"\n endAdornmentText=\"Kg\"\n multiline\n />\n </StackColumn>\n\n <Divider />\n\n <StackColumn gap={2}>\n <AppTypography variant=\"h6\">RTL</AppTypography>\n\n <AppInputBase dir=\"rtl\" label=\"اسم المستخدم\" />\n <AppInputBase dir=\"rtl\" label=\"اسم المستخدم\" placeholder=\"اسم المستخدم\" />\n <AppInputBase\n dir=\"rtl\"\n label=\"اسم المستخدم\"\n placeholder=\"اسم المستخدم\"\n size=\"small\"\n error\n />\n <AppInputBase\n dir=\"rtl\"\n label=\"اسم المستخدم\"\n placeholder=\"اسم المستخدم\"\n startAdornmentText=\"$\"\n />\n <AppInputBase\n dir=\"rtl\"\n label=\"اسم المستخدم\"\n placeholder=\"اسم المستخدم\"\n endAdornmentText=\"Kg\"\n />\n <AppInputBase\n dir=\"rtl\"\n label=\"الوصف\"\n placeholder=\"هذا النص طويل جداً جداً جداً جداً للاختبار\"\n endAdornmentText=\"Kg\"\n multiline\n />\n </StackColumn>\n </StackColumn>\n ),\n};\n"],"names":[],"mappings":";;;;;AAYA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,UAAU,OAAO;AAAA,IAAA;AAAA,IAE7B,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,WAAW;AAAA,MACT,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,IAEX,YAAY;AAAA,MACV,SAAS;AAAA,IAAA;AAAA,IAEX,oBAAoB;AAAA,MAClB,SAAS;AAAA,IAAA;AAAA,IAEX,kBAAkB;AAAA,MAChB,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,WAAW;AAAA,EAAA;AAEf;AAOO,MAAM,aAAoB;AAAA,EAC/B,MAAM,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A,CACF;AAEJ;"}
@@ -40,35 +40,43 @@ const Playground = {
40
40
  args: {}
41
41
  };
42
42
  const Variants = {
43
- render: () => /* @__PURE__ */ jsxs(StackColumn, { sx: { background: "white" }, padding: 10, gap: 4, children: [
44
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Basic" }),
45
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search" }),
46
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Search" }),
47
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Search", placeholder: "Search for..." }),
43
+ render: () => /* @__PURE__ */ jsxs(StackColumn, { sx: { background: "white" }, padding: 4, gap: 4, width: 400, children: [
44
+ /* @__PURE__ */ jsxs(StackColumn, { children: [
45
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Basic" }),
46
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search" }),
47
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Search" }),
48
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Search", placeholder: "Search for..." })
49
+ ] }),
48
50
  /* @__PURE__ */ jsx(Divider, {}),
49
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Sizes" }),
50
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Medium", placeholder: "Search for..." }),
51
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Small", placeholder: "Search for...", size: "small" }),
51
+ /* @__PURE__ */ jsxs(StackColumn, { children: [
52
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "Sizes" }),
53
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Medium", placeholder: "Search for..." }),
54
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Small", placeholder: "Search for...", size: "small" })
55
+ ] }),
52
56
  /* @__PURE__ */ jsx(Divider, {}),
53
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "States" }),
54
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Error", placeholder: "Search for...", error: true }),
55
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Disabled", placeholder: "Search for...", disabled: true }),
57
+ /* @__PURE__ */ jsxs(StackColumn, { children: [
58
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "States" }),
59
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Error", placeholder: "Search for...", error: true }),
60
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", label: "Disabled", placeholder: "Search for...", disabled: true })
61
+ ] }),
56
62
  /* @__PURE__ */ jsx(Divider, {}),
57
- /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "RTL" }),
58
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl" }),
59
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl", label: "بحث" }),
60
- /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl", label: "بحث", placeholder: "ابحث عن..." }),
61
- /* @__PURE__ */ jsx(
62
- AppInputBaseSearch,
63
- {
64
- name: "search",
65
- dir: "rtl",
66
- label: "بحث",
67
- placeholder: "ابحث عن...",
68
- size: "small",
69
- error: true
70
- }
71
- )
63
+ /* @__PURE__ */ jsxs(StackColumn, { children: [
64
+ /* @__PURE__ */ jsx(AppTypography, { variant: "h6", children: "RTL" }),
65
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl" }),
66
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl", label: "بحث" }),
67
+ /* @__PURE__ */ jsx(AppInputBaseSearch, { name: "search", dir: "rtl", label: "بحث", placeholder: "ابحث عن..." }),
68
+ /* @__PURE__ */ jsx(
69
+ AppInputBaseSearch,
70
+ {
71
+ name: "search",
72
+ dir: "rtl",
73
+ label: "بحث",
74
+ placeholder: "ابحث عن...",
75
+ size: "small",
76
+ error: true
77
+ }
78
+ )
79
+ ] })
72
80
  ] })
73
81
  };
74
82
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"AppInputBaseSearch.stories.js","sources":["../../../../../src/stories/react/AppInputBaseSearch.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Divider } from '@mui/material';\n\nimport { AppInputBaseSearch } from '~/components/app-input-base-search';\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Input Base Search',\n component: AppInputBaseSearch,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: 'select',\n options: ['medium', 'small'],\n },\n disabled: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n placeholder: {\n control: 'text',\n },\n },\n args: {\n name: 'search',\n label: 'Search',\n placeholder: 'Search for...',\n disabled: false,\n error: false,\n },\n} satisfies Meta<typeof AppInputBaseSearch>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Playground: Story = {\n args: {},\n};\n\n//\n\nexport const Variants: Story = {\n render: () => (\n <StackColumn sx={{ background: 'white' }} padding={10} gap={4}>\n <AppTypography variant=\"h6\">Basic</AppTypography>\n\n <AppInputBaseSearch name=\"search\" />\n <AppInputBaseSearch name=\"search\" label=\"Search\" />\n <AppInputBaseSearch name=\"search\" label=\"Search\" placeholder=\"Search for...\" />\n\n <Divider />\n\n <AppTypography variant=\"h6\">Sizes</AppTypography>\n\n <AppInputBaseSearch name=\"search\" label=\"Medium\" placeholder=\"Search for...\" />\n <AppInputBaseSearch name=\"search\" label=\"Small\" placeholder=\"Search for...\" size=\"small\" />\n\n <Divider />\n\n <AppTypography variant=\"h6\">States</AppTypography>\n\n <AppInputBaseSearch name=\"search\" label=\"Error\" placeholder=\"Search for...\" error />\n <AppInputBaseSearch name=\"search\" label=\"Disabled\" placeholder=\"Search for...\" disabled />\n\n <Divider />\n\n <AppTypography variant=\"h6\">RTL</AppTypography>\n\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" />\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" label=\"بحث\" />\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" label=\"بحث\" placeholder=\"ابحث عن...\" />\n <AppInputBaseSearch\n name=\"search\"\n dir=\"rtl\"\n label=\"بحث\"\n placeholder=\"ابحث عن...\"\n size=\"small\"\n error\n />\n </StackColumn>\n ),\n};\n"],"names":[],"mappings":";;;;;AAYA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,UAAU,OAAO;AAAA,IAAA;AAAA,IAE7B,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,EAAA;AAEX;AAOO,MAAM,aAAoB;AAAA,EAC/B,MAAM,CAAA;AACR;AAIO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACN,qBAAC,aAAA,EAAY,IAAI,EAAE,YAAY,QAAA,GAAW,SAAS,IAAI,KAAK,GAC1D,UAAA;AAAA,IAAA,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,SAAK;AAAA,IAEjC,oBAAC,oBAAA,EAAmB,MAAK,SAAA,CAAS;AAAA,IAClC,oBAAC,oBAAA,EAAmB,MAAK,UAAS,OAAM,UAAS;AAAA,wBAChD,oBAAA,EAAmB,MAAK,UAAS,OAAM,UAAS,aAAY,iBAAgB;AAAA,wBAE5E,SAAA,EAAQ;AAAA,IAET,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,SAAK;AAAA,wBAEhC,oBAAA,EAAmB,MAAK,UAAS,OAAM,UAAS,aAAY,iBAAgB;AAAA,IAC7E,oBAAC,sBAAmB,MAAK,UAAS,OAAM,SAAQ,aAAY,iBAAgB,MAAK,QAAA,CAAQ;AAAA,wBAExF,SAAA,EAAQ;AAAA,IAET,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,UAAM;AAAA,IAElC,oBAAC,sBAAmB,MAAK,UAAS,OAAM,SAAQ,aAAY,iBAAgB,OAAK,KAAA,CAAC;AAAA,IAClF,oBAAC,sBAAmB,MAAK,UAAS,OAAM,YAAW,aAAY,iBAAgB,UAAQ,KAAA,CAAC;AAAA,wBAEvF,SAAA,EAAQ;AAAA,IAET,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,OAAG;AAAA,IAE/B,oBAAC,oBAAA,EAAmB,MAAK,UAAS,KAAI,OAAM;AAAA,wBAC3C,oBAAA,EAAmB,MAAK,UAAS,KAAI,OAAM,OAAM,OAAM;AAAA,IACxD,oBAAC,sBAAmB,MAAK,UAAS,KAAI,OAAM,OAAM,OAAM,aAAY,aAAA,CAAa;AAAA,IACjF;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,KAAI;AAAA,QACJ,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,MAAK;AAAA,QACL,OAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EACP,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"AppInputBaseSearch.stories.js","sources":["../../../../../src/stories/react/AppInputBaseSearch.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Divider } from '@mui/material';\n\nimport { AppInputBaseSearch } from '~/components/app-input-base-search';\nimport { AppTypography } from '~/components/app-typography';\nimport { StackColumn } from '~/components/stack-column';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Input Base Search',\n component: AppInputBaseSearch,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: 'select',\n options: ['medium', 'small'],\n },\n disabled: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n placeholder: {\n control: 'text',\n },\n },\n args: {\n name: 'search',\n label: 'Search',\n placeholder: 'Search for...',\n disabled: false,\n error: false,\n },\n} satisfies Meta<typeof AppInputBaseSearch>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Playground: Story = {\n args: {},\n};\n\n//\n\nexport const Variants: Story = {\n render: () => (\n <StackColumn sx={{ background: 'white' }} padding={4} gap={4} width={400}>\n <StackColumn>\n <AppTypography variant=\"h6\">Basic</AppTypography>\n\n <AppInputBaseSearch name=\"search\" />\n <AppInputBaseSearch name=\"search\" label=\"Search\" />\n <AppInputBaseSearch name=\"search\" label=\"Search\" placeholder=\"Search for...\" />\n </StackColumn>\n\n <Divider />\n\n <StackColumn>\n <AppTypography variant=\"h6\">Sizes</AppTypography>\n\n <AppInputBaseSearch name=\"search\" label=\"Medium\" placeholder=\"Search for...\" />\n <AppInputBaseSearch name=\"search\" label=\"Small\" placeholder=\"Search for...\" size=\"small\" />\n </StackColumn>\n\n <Divider />\n\n <StackColumn>\n <AppTypography variant=\"h6\">States</AppTypography>\n\n <AppInputBaseSearch name=\"search\" label=\"Error\" placeholder=\"Search for...\" error />\n <AppInputBaseSearch name=\"search\" label=\"Disabled\" placeholder=\"Search for...\" disabled />\n </StackColumn>\n\n <Divider />\n\n <StackColumn>\n <AppTypography variant=\"h6\">RTL</AppTypography>\n\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" />\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" label=\"بحث\" />\n <AppInputBaseSearch name=\"search\" dir=\"rtl\" label=\"بحث\" placeholder=\"ابحث عن...\" />\n <AppInputBaseSearch\n name=\"search\"\n dir=\"rtl\"\n label=\"بحث\"\n placeholder=\"ابحث عن...\"\n size=\"small\"\n error\n />\n </StackColumn>\n </StackColumn>\n ),\n};\n"],"names":[],"mappings":";;;;;AAYA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AAAA,EACjB,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,UAAU,OAAO;AAAA,IAAA;AAAA,IAE7B,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,OAAO;AAAA,MACL,SAAS;AAAA,IAAA;AAAA,IAEX,aAAa;AAAA,MACX,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,EAAA;AAEX;AAOO,MAAM,aAAoB;AAAA,EAC/B,MAAM,CAAA;AACR;AAIO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACN,qBAAC,aAAA,EAAY,IAAI,EAAE,YAAY,QAAA,GAAW,SAAS,GAAG,KAAK,GAAG,OAAO,KACnE,UAAA;AAAA,IAAA,qBAAC,aAAA,EACC,UAAA;AAAA,MAAA,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,SAAK;AAAA,MAEjC,oBAAC,oBAAA,EAAmB,MAAK,SAAA,CAAS;AAAA,MAClC,oBAAC,oBAAA,EAAmB,MAAK,UAAS,OAAM,UAAS;AAAA,0BAChD,oBAAA,EAAmB,MAAK,UAAS,OAAM,UAAS,aAAY,gBAAA,CAAgB;AAAA,I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