@zidsa/zidmui 2.1.8 → 2.3.0-beta.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 (320) hide show
  1. package/dist/illustrations/404.svg +39 -0
  2. package/dist/illustrations/abandoned-cart.svg +23 -0
  3. package/dist/illustrations/add-ons.svg +15 -0
  4. package/dist/illustrations/announcement.svg +31 -0
  5. package/dist/illustrations/barcode-with-code.svg +49 -0
  6. package/dist/illustrations/barcode-with-sku.svg +26 -0
  7. package/dist/illustrations/barcode.svg +43 -0
  8. package/dist/illustrations/cards-stack-notification.svg +43 -0
  9. package/dist/illustrations/chat-bubble-plus.svg +30 -0
  10. package/dist/illustrations/coins-stack-shopping-cart.svg +22 -0
  11. package/dist/illustrations/coins-stack.svg +20 -0
  12. package/dist/illustrations/congrats.svg +108 -0
  13. package/dist/illustrations/congratulations-rocket.svg +36 -0
  14. package/dist/illustrations/country-bahrain.svg +78 -0
  15. package/dist/illustrations/country-egypt.svg +78 -0
  16. package/dist/illustrations/country-iraq.svg +78 -0
  17. package/dist/illustrations/country-kuwait.svg +78 -0
  18. package/dist/illustrations/country-oman.svg +78 -0
  19. package/dist/illustrations/country-qatar.svg +78 -0
  20. package/dist/illustrations/country-saudi-arabia.svg +78 -0
  21. package/dist/illustrations/country-saudi-regions.svg +17 -0
  22. package/dist/illustrations/country-uae.svg +78 -0
  23. package/dist/illustrations/custom-themes.svg +95 -0
  24. package/dist/illustrations/customers-empty-state.svg +38 -0
  25. package/dist/illustrations/customers-groups-add.svg +13 -0
  26. package/dist/illustrations/customers-groups.svg +23 -0
  27. package/dist/illustrations/draft-empty.svg +48 -0
  28. package/dist/illustrations/empty-draft-orders.svg +55 -0
  29. package/dist/illustrations/empty-order.svg +58 -0
  30. package/dist/illustrations/empty-state-discount-coupon.svg +27 -0
  31. package/dist/illustrations/empty-state-page-tag.svg +15 -0
  32. package/dist/illustrations/empty-state-page-url.svg +10 -0
  33. package/dist/illustrations/empty-state-page.svg +20 -0
  34. package/dist/illustrations/empty-state-payout.svg +35 -0
  35. package/dist/illustrations/empty-state-review.svg +29 -0
  36. package/dist/illustrations/empty-state-trash-bin.svg +60 -0
  37. package/dist/illustrations/faq-no-results.svg +43 -0
  38. package/dist/illustrations/fire-badge.svg +14 -0
  39. package/dist/illustrations/inactive-shop.svg +98 -0
  40. package/dist/illustrations/inventory-empty-state.svg +38 -0
  41. package/dist/illustrations/item-list.svg +40 -0
  42. package/dist/illustrations/items-add.svg +38 -0
  43. package/dist/illustrations/opened-box-empty.svg +33 -0
  44. package/dist/illustrations/opened-box-zid-location.svg +64 -0
  45. package/dist/illustrations/page-error.svg +34 -0
  46. package/dist/illustrations/payment-card-add-2.svg +14 -0
  47. package/dist/illustrations/payment-card-add.svg +14 -0
  48. package/dist/illustrations/payment-card.svg +12 -0
  49. package/dist/illustrations/payments-links-empty-state.svg +43 -0
  50. package/dist/illustrations/plan-activation.svg +29 -0
  51. package/dist/illustrations/plan-changed.svg +32 -0
  52. package/dist/illustrations/plan-downgrade.svg +28 -0
  53. package/dist/illustrations/product-card-options.svg +55 -0
  54. package/dist/illustrations/product-stacked-cards.svg +46 -0
  55. package/dist/illustrations/raising-start.svg +14 -0
  56. package/dist/illustrations/raising-starter.svg +14 -0
  57. package/dist/illustrations/sad-icon.svg +100 -0
  58. package/dist/illustrations/stacked-messages-sms.svg +41 -0
  59. package/dist/illustrations/stacked-messages-whatsapp.svg +42 -0
  60. package/dist/illustrations/step-diamond-01.svg +39 -0
  61. package/dist/illustrations/step-heptagon-02.svg +44 -0
  62. package/dist/illustrations/step-heptagon-04.svg +49 -0
  63. package/dist/illustrations/step-heptagon-06.svg +44 -0
  64. package/dist/illustrations/step-heptagon-red-04.svg +44 -0
  65. package/dist/illustrations/step-hexagon-02.svg +44 -0
  66. package/dist/illustrations/step-pentagon-03.svg +39 -0
  67. package/dist/illustrations/step-pentagon-05.svg +39 -0
  68. package/dist/illustrations/step-shield-like-03.svg +44 -0
  69. package/dist/illustrations/vehicle.svg +80 -0
  70. package/dist/illustrations/whatsapp-tier1.svg +80 -0
  71. package/dist/illustrations/whatsapp-tier2.svg +80 -0
  72. package/dist/illustrations/whatsapp-tier3.svg +89 -0
  73. package/dist/illustrations/whatsapp-tier4.svg +80 -0
  74. package/dist/illustrations/whatsapp-tier5.svg +174 -0
  75. package/dist/illustrations/wishlist-empty.svg +48 -0
  76. package/dist/illustrations/zid-logo-glass-reversed.svg +26 -0
  77. package/dist/illustrations/zid-logo-glass.svg +26 -0
  78. package/dist/illustrations/zid-logo-star.svg +4 -0
  79. package/dist/logos/delivery/aramex.svg +14 -0
  80. package/dist/logos/delivery/barq.svg +14 -0
  81. package/dist/logos/delivery/careem.svg +14 -0
  82. package/dist/logos/delivery/dhl.svg +14 -0
  83. package/dist/logos/delivery/fedex.svg +20 -0
  84. package/dist/logos/delivery/imile.svg +14 -0
  85. package/dist/logos/delivery/parcelat.svg +14 -0
  86. package/dist/logos/delivery/redbox.svg +14 -0
  87. package/dist/logos/delivery/smsa.svg +14 -0
  88. package/dist/logos/delivery/spl.svg +19 -0
  89. package/dist/logos/delivery/zid.svg +14 -0
  90. package/dist/logos/payments/amex.svg +12 -0
  91. package/dist/logos/payments/apple-pay.svg +7 -0
  92. package/dist/logos/payments/google-pay.svg +7 -0
  93. package/dist/logos/payments/knet.svg +5 -0
  94. package/dist/logos/payments/mada.svg +5 -0
  95. package/dist/logos/payments/mastercard.svg +5 -0
  96. package/dist/logos/payments/mispay.svg +10 -0
  97. package/dist/logos/payments/samsung-pay-icon.svg +13 -0
  98. package/dist/logos/payments/samsung-pay-text.svg +19 -0
  99. package/dist/logos/payments/stc-pay.svg +6 -0
  100. package/dist/logos/payments/tabby.svg +12 -0
  101. package/dist/logos/payments/tamara-secondary.svg +10 -0
  102. package/dist/logos/payments/tamara.svg +63 -0
  103. package/dist/logos/payments/visa.svg +3 -0
  104. package/dist/react/cjs/components/app-dialog.js +3 -2
  105. package/dist/react/cjs/components/app-dialog.js.map +1 -1
  106. package/dist/react/cjs/components/app-list-item.js +3 -0
  107. package/dist/react/cjs/components/app-list-item.js.map +1 -1
  108. package/dist/react/cjs/theme/components/alert.js +16 -16
  109. package/dist/react/cjs/theme/components/alert.js.map +1 -1
  110. package/dist/react/cjs/theme/components/app-bar.js +3 -5
  111. package/dist/react/cjs/theme/components/app-bar.js.map +1 -1
  112. package/dist/react/cjs/theme/components/card.js +3 -3
  113. package/dist/react/cjs/theme/components/card.js.map +1 -1
  114. package/dist/react/cjs/theme/components/paper.js +3 -3
  115. package/dist/react/cjs/theme/components/paper.js.map +1 -1
  116. package/dist/react/cjs/theme/components/table.js +2 -2
  117. package/dist/react/cjs/theme/components/table.js.map +1 -1
  118. package/dist/react/cjs/theme/palette.dark.js +343 -0
  119. package/dist/react/cjs/theme/palette.dark.js.map +1 -0
  120. package/dist/react/cjs/theme/palette.js +11 -5
  121. package/dist/react/cjs/theme/palette.js.map +1 -1
  122. package/dist/react/cjs/theme/shadows.dark.js +32 -0
  123. package/dist/react/cjs/theme/shadows.dark.js.map +1 -0
  124. package/dist/react/cjs/theme/theme.dark.js +19 -0
  125. package/dist/react/cjs/theme/theme.dark.js.map +1 -0
  126. package/dist/react/es/components/app-dialog.js +3 -2
  127. package/dist/react/es/components/app-dialog.js.map +1 -1
  128. package/dist/react/es/components/app-list-item.js +3 -0
  129. package/dist/react/es/components/app-list-item.js.map +1 -1
  130. package/dist/react/es/theme/components/alert.js +16 -16
  131. package/dist/react/es/theme/components/alert.js.map +1 -1
  132. package/dist/react/es/theme/components/app-bar.js +3 -5
  133. package/dist/react/es/theme/components/app-bar.js.map +1 -1
  134. package/dist/react/es/theme/components/card.js +3 -3
  135. package/dist/react/es/theme/components/card.js.map +1 -1
  136. package/dist/react/es/theme/components/paper.js +3 -3
  137. package/dist/react/es/theme/components/paper.js.map +1 -1
  138. package/dist/react/es/theme/components/table.js +2 -2
  139. package/dist/react/es/theme/components/table.js.map +1 -1
  140. package/dist/react/es/theme/palette.dark.js +343 -0
  141. package/dist/react/es/theme/palette.dark.js.map +1 -0
  142. package/dist/react/es/theme/palette.js +11 -5
  143. package/dist/react/es/theme/palette.js.map +1 -1
  144. package/dist/react/es/theme/shadows.dark.js +32 -0
  145. package/dist/react/es/theme/shadows.dark.js.map +1 -0
  146. package/dist/react/es/theme/theme.dark.js +19 -0
  147. package/dist/react/es/theme/theme.dark.js.map +1 -0
  148. package/dist/react/types/stories/design/DeliveryLogos.stories.d.ts +12 -0
  149. package/dist/react/types/stories/design/Illustrations.stories.d.ts +12 -0
  150. package/dist/react/types/stories/design/PaymentLogos.stories.d.ts +12 -0
  151. package/dist/react/types/theme/palette.dark.d.ts +2 -0
  152. package/dist/react/types/theme/shadows.dark.d.ts +2 -0
  153. package/dist/react/types/theme/theme.dark.d.ts +1 -0
  154. package/dist/react/types/theme/types.d.ts +8 -2
  155. package/dist/styles/colors.css +33 -0
  156. package/dist/styles/root.css +10 -0
  157. package/dist/styles/states.css +47 -0
  158. package/dist/tsconfig.tsbuildinfo +1 -1
  159. package/package.json +5 -2
  160. package/dist/react/cjs/stories/css/Alert.stories.js +0 -69
  161. package/dist/react/cjs/stories/css/Alert.stories.js.map +0 -1
  162. package/dist/react/cjs/stories/css/Button.stories.js +0 -133
  163. package/dist/react/cjs/stories/css/Button.stories.js.map +0 -1
  164. package/dist/react/cjs/stories/css/Card.stories.js +0 -145
  165. package/dist/react/cjs/stories/css/Card.stories.js.map +0 -1
  166. package/dist/react/cjs/stories/css/Checkbox.stories.js +0 -138
  167. package/dist/react/cjs/stories/css/Checkbox.stories.js.map +0 -1
  168. package/dist/react/cjs/stories/css/ComponentReference.stories.js +0 -139
  169. package/dist/react/cjs/stories/css/ComponentReference.stories.js.map +0 -1
  170. package/dist/react/cjs/stories/css/Input.stories.js +0 -162
  171. package/dist/react/cjs/stories/css/Input.stories.js.map +0 -1
  172. package/dist/react/cjs/stories/css/ListItem.stories.js +0 -166
  173. package/dist/react/cjs/stories/css/ListItem.stories.js.map +0 -1
  174. package/dist/react/cjs/stories/css/Modal.stories.js +0 -121
  175. package/dist/react/cjs/stories/css/Modal.stories.js.map +0 -1
  176. package/dist/react/cjs/stories/css/Radio.stories.js +0 -118
  177. package/dist/react/cjs/stories/css/Radio.stories.js.map +0 -1
  178. package/dist/react/cjs/stories/css/Select.stories.js +0 -187
  179. package/dist/react/cjs/stories/css/Select.stories.js.map +0 -1
  180. package/dist/react/cjs/stories/css/Status.stories.js +0 -59
  181. package/dist/react/cjs/stories/css/Status.stories.js.map +0 -1
  182. package/dist/react/cjs/stories/css/Switch.stories.js +0 -136
  183. package/dist/react/cjs/stories/css/Switch.stories.js.map +0 -1
  184. package/dist/react/cjs/stories/css/Table.stories.js +0 -171
  185. package/dist/react/cjs/stories/css/Table.stories.js.map +0 -1
  186. package/dist/react/cjs/stories/css/Tooltip.stories.js +0 -99
  187. package/dist/react/cjs/stories/css/Tooltip.stories.js.map +0 -1
  188. package/dist/react/cjs/stories/css/Utilities.stories.js +0 -136
  189. package/dist/react/cjs/stories/css/Utilities.stories.js.map +0 -1
  190. package/dist/react/cjs/stories/design/Colors.stories.js +0 -142
  191. package/dist/react/cjs/stories/design/Colors.stories.js.map +0 -1
  192. package/dist/react/cjs/stories/design/Typography.stories.js +0 -116
  193. package/dist/react/cjs/stories/design/Typography.stories.js.map +0 -1
  194. package/dist/react/cjs/stories/design/spacing/CSS.stories.js +0 -61
  195. package/dist/react/cjs/stories/design/spacing/CSS.stories.js.map +0 -1
  196. package/dist/react/cjs/stories/design/spacing/React.stories.js +0 -102
  197. package/dist/react/cjs/stories/design/spacing/React.stories.js.map +0 -1
  198. package/dist/react/cjs/stories/react/AppAlert.stories.js +0 -149
  199. package/dist/react/cjs/stories/react/AppAlert.stories.js.map +0 -1
  200. package/dist/react/cjs/stories/react/AppButton.stories.js +0 -93
  201. package/dist/react/cjs/stories/react/AppButton.stories.js.map +0 -1
  202. package/dist/react/cjs/stories/react/AppCheckbox.stories.js +0 -67
  203. package/dist/react/cjs/stories/react/AppCheckbox.stories.js.map +0 -1
  204. package/dist/react/cjs/stories/react/AppDialog.stories.js +0 -129
  205. package/dist/react/cjs/stories/react/AppDialog.stories.js.map +0 -1
  206. package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js +0 -127
  207. package/dist/react/cjs/stories/react/AppDialogWithFeatures.stories.js.map +0 -1
  208. package/dist/react/cjs/stories/react/AppEmptyState.stories.js +0 -157
  209. package/dist/react/cjs/stories/react/AppEmptyState.stories.js.map +0 -1
  210. package/dist/react/cjs/stories/react/AppIconButton.stories.js +0 -53
  211. package/dist/react/cjs/stories/react/AppIconButton.stories.js.map +0 -1
  212. package/dist/react/cjs/stories/react/AppIconWithTooltip.stories.js +0 -36
  213. package/dist/react/cjs/stories/react/AppIconWithTooltip.stories.js.map +0 -1
  214. package/dist/react/cjs/stories/react/AppInputBase.stories.js +0 -158
  215. package/dist/react/cjs/stories/react/AppInputBase.stories.js.map +0 -1
  216. package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js +0 -87
  217. package/dist/react/cjs/stories/react/AppInputBaseSearch.stories.js.map +0 -1
  218. package/dist/react/cjs/stories/react/AppInputRadio.stories.js +0 -262
  219. package/dist/react/cjs/stories/react/AppInputRadio.stories.js.map +0 -1
  220. package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js +0 -126
  221. package/dist/react/cjs/stories/react/AppInputRadioCard.stories.js.map +0 -1
  222. package/dist/react/cjs/stories/react/AppListItem.stories.js +0 -123
  223. package/dist/react/cjs/stories/react/AppListItem.stories.js.map +0 -1
  224. package/dist/react/cjs/stories/react/AppOverflownTextWithTooltip.stories.js +0 -41
  225. package/dist/react/cjs/stories/react/AppOverflownTextWithTooltip.stories.js.map +0 -1
  226. package/dist/react/cjs/stories/react/AppPagination.stories.js +0 -71
  227. package/dist/react/cjs/stories/react/AppPagination.stories.js.map +0 -1
  228. package/dist/react/cjs/stories/react/AppRadioGroup.stories.js +0 -145
  229. package/dist/react/cjs/stories/react/AppRadioGroup.stories.js.map +0 -1
  230. package/dist/react/cjs/stories/react/AppStatus.stories.js +0 -68
  231. package/dist/react/cjs/stories/react/AppStatus.stories.js.map +0 -1
  232. package/dist/react/cjs/stories/react/AppSwitch.stories.js +0 -138
  233. package/dist/react/cjs/stories/react/AppSwitch.stories.js.map +0 -1
  234. package/dist/react/cjs/stories/react/AppTabs.stories.js +0 -100
  235. package/dist/react/cjs/stories/react/AppTabs.stories.js.map +0 -1
  236. package/dist/react/cjs/stories/react/AppTooltip.stories.js +0 -119
  237. package/dist/react/cjs/stories/react/AppTooltip.stories.js.map +0 -1
  238. package/dist/react/cjs/stories/react/AppTypography.stories.js +0 -172
  239. package/dist/react/cjs/stories/react/AppTypography.stories.js.map +0 -1
  240. package/dist/react/es/stories/css/Alert.stories.js +0 -69
  241. package/dist/react/es/stories/css/Alert.stories.js.map +0 -1
  242. package/dist/react/es/stories/css/Button.stories.js +0 -133
  243. package/dist/react/es/stories/css/Button.stories.js.map +0 -1
  244. package/dist/react/es/stories/css/Card.stories.js +0 -145
  245. package/dist/react/es/stories/css/Card.stories.js.map +0 -1
  246. package/dist/react/es/stories/css/Checkbox.stories.js +0 -138
  247. package/dist/react/es/stories/css/Checkbox.stories.js.map +0 -1
  248. package/dist/react/es/stories/css/ComponentReference.stories.js +0 -139
  249. package/dist/react/es/stories/css/ComponentReference.stories.js.map +0 -1
  250. package/dist/react/es/stories/css/Input.stories.js +0 -162
  251. package/dist/react/es/stories/css/Input.stories.js.map +0 -1
  252. package/dist/react/es/stories/css/ListItem.stories.js +0 -166
  253. package/dist/react/es/stories/css/ListItem.stories.js.map +0 -1
  254. package/dist/react/es/stories/css/Modal.stories.js +0 -121
  255. package/dist/react/es/stories/css/Modal.stories.js.map +0 -1
  256. package/dist/react/es/stories/css/Radio.stories.js +0 -118
  257. package/dist/react/es/stories/css/Radio.stories.js.map +0 -1
  258. package/dist/react/es/stories/css/Select.stories.js +0 -187
  259. package/dist/react/es/stories/css/Select.stories.js.map +0 -1
  260. package/dist/react/es/stories/css/Status.stories.js +0 -59
  261. package/dist/react/es/stories/css/Status.stories.js.map +0 -1
  262. package/dist/react/es/stories/css/Switch.stories.js +0 -136
  263. package/dist/react/es/stories/css/Switch.stories.js.map +0 -1
  264. package/dist/react/es/stories/css/Table.stories.js +0 -171
  265. package/dist/react/es/stories/css/Table.stories.js.map +0 -1
  266. package/dist/react/es/stories/css/Tooltip.stories.js +0 -99
  267. package/dist/react/es/stories/css/Tooltip.stories.js.map +0 -1
  268. package/dist/react/es/stories/css/Utilities.stories.js +0 -136
  269. package/dist/react/es/stories/css/Utilities.stories.js.map +0 -1
  270. package/dist/react/es/stories/design/Colors.stories.js +0 -142
  271. package/dist/react/es/stories/design/Colors.stories.js.map +0 -1
  272. package/dist/react/es/stories/design/Typography.stories.js +0 -116
  273. package/dist/react/es/stories/design/Typography.stories.js.map +0 -1
  274. package/dist/react/es/stories/design/spacing/CSS.stories.js +0 -61
  275. package/dist/react/es/stories/design/spacing/CSS.stories.js.map +0 -1
  276. package/dist/react/es/stories/design/spacing/React.stories.js +0 -102
  277. package/dist/react/es/stories/design/spacing/React.stories.js.map +0 -1
  278. package/dist/react/es/stories/react/AppAlert.stories.js +0 -149
  279. package/dist/react/es/stories/react/AppAlert.stories.js.map +0 -1
  280. package/dist/react/es/stories/react/AppButton.stories.js +0 -93
  281. package/dist/react/es/stories/react/AppButton.stories.js.map +0 -1
  282. package/dist/react/es/stories/react/AppCheckbox.stories.js +0 -67
  283. package/dist/react/es/stories/react/AppCheckbox.stories.js.map +0 -1
  284. package/dist/react/es/stories/react/AppDialog.stories.js +0 -129
  285. package/dist/react/es/stories/react/AppDialog.stories.js.map +0 -1
  286. package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js +0 -127
  287. package/dist/react/es/stories/react/AppDialogWithFeatures.stories.js.map +0 -1
  288. package/dist/react/es/stories/react/AppEmptyState.stories.js +0 -157
  289. package/dist/react/es/stories/react/AppEmptyState.stories.js.map +0 -1
  290. package/dist/react/es/stories/react/AppIconButton.stories.js +0 -53
  291. package/dist/react/es/stories/react/AppIconButton.stories.js.map +0 -1
  292. package/dist/react/es/stories/react/AppIconWithTooltip.stories.js +0 -36
  293. package/dist/react/es/stories/react/AppIconWithTooltip.stories.js.map +0 -1
  294. package/dist/react/es/stories/react/AppInputBase.stories.js +0 -158
  295. package/dist/react/es/stories/react/AppInputBase.stories.js.map +0 -1
  296. package/dist/react/es/stories/react/AppInputBaseSearch.stories.js +0 -87
  297. package/dist/react/es/stories/react/AppInputBaseSearch.stories.js.map +0 -1
  298. package/dist/react/es/stories/react/AppInputRadio.stories.js +0 -262
  299. package/dist/react/es/stories/react/AppInputRadio.stories.js.map +0 -1
  300. package/dist/react/es/stories/react/AppInputRadioCard.stories.js +0 -126
  301. package/dist/react/es/stories/react/AppInputRadioCard.stories.js.map +0 -1
  302. package/dist/react/es/stories/react/AppListItem.stories.js +0 -123
  303. package/dist/react/es/stories/react/AppListItem.stories.js.map +0 -1
  304. package/dist/react/es/stories/react/AppOverflownTextWithTooltip.stories.js +0 -41
  305. package/dist/react/es/stories/react/AppOverflownTextWithTooltip.stories.js.map +0 -1
  306. package/dist/react/es/stories/react/AppPagination.stories.js +0 -71
  307. package/dist/react/es/stories/react/AppPagination.stories.js.map +0 -1
  308. package/dist/react/es/stories/react/AppRadioGroup.stories.js +0 -145
  309. package/dist/react/es/stories/react/AppRadioGroup.stories.js.map +0 -1
  310. package/dist/react/es/stories/react/AppStatus.stories.js +0 -68
  311. package/dist/react/es/stories/react/AppStatus.stories.js.map +0 -1
  312. package/dist/react/es/stories/react/AppSwitch.stories.js +0 -138
  313. package/dist/react/es/stories/react/AppSwitch.stories.js.map +0 -1
  314. package/dist/react/es/stories/react/AppTabs.stories.js +0 -100
  315. package/dist/react/es/stories/react/AppTabs.stories.js.map +0 -1
  316. package/dist/react/es/stories/react/AppTooltip.stories.js +0 -119
  317. package/dist/react/es/stories/react/AppTooltip.stories.js.map +0 -1
  318. package/dist/react/es/stories/react/AppTypography.stories.js +0 -172
  319. package/dist/react/es/stories/react/AppTypography.stories.js.map +0 -1
  320. package/dist/react/zidmui.css +0 -3062
@@ -1,157 +0,0 @@
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
@@ -1 +0,0 @@
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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GN;AAIO,MAAM,YAAmB;AAAA,EAC9B,MAAM;AAAA,IACJ,0BAAO,sBAAA,EAAqB;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,UACE,qBAAA,UAAA,EACE,UAAA;AAAA,MAAA,oBAAC,WAAA,EAAU,OAAM,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,gBAAuB;AAAA,EAClC,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,0BAAO,cAAA,EAAa;AAAA,IACpB,OAAO;AAAA,IACP,UACE,qBAAA,UAAA,EACE,UAAA;AAAA,MAAA,oBAAC,WAAA,EAAU,OAAM,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;"}
@@ -1,53 +0,0 @@
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
@@ -1 +0,0 @@
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,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AACnB;AAOO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACN,qBAAC,aAAA,EAAY,KAAK,GAEhB,UAAA;AAAA,IAAA,qBAAC,eAAY,WAAU,OAAM,KAAK,GAAG,YAAW,UAC9C,UAAA;AAAA,MAAA,oBAAC,iBAAc,OAAM,WAAU,MAAK,SAClC,UAAA,oBAAC,oBAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,iBAAc,OAAM,WAAU,MAAK,UAClC,UAAA,oBAAC,oBAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,iBAAc,OAAM,WAAU,MAAK,SAClC,UAAA,oBAAC,oBAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,iBAAc,OAAM,WAAU,MAAK,cAClC,UAAA,oBAAC,oBAAiB,EAAA,CACpB;AAAA,IAAA,GACF;AAAA,yBAGC,aAAA,EAAY,WAAU,OAAM,KAAK,GAAG,YAAW,UAC9C,UAAA;AAAA,MAAA,oBAAC,iBAAc,OAAM,aAAY,MAAK,SACpC,UAAA,oBAA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AA,EAAc,OAAM,WAAU,MAAK,SAAQ,SAAO,MACjD,UAAA,oBAAC,kBAAA,CAAA,CAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,eAAA,EAAc,OAAM,WAAU,MAAK,UAAS,SAAO,MAClD,UAAA,oBAAC,kBAAA,CAAA,CAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,eAAA,EAAc,OAAM,WAAU,MAAK,SAAQ,SAAO,MACjD,UAAA,oBAAC,kBAAA,CAAA,CAAiB,EAAA,CACpB;AAAA,MAEA,oBAAC,eAAA,EAAc,OAAM,WAAU,MAAK,cAAa,SAAO,MACtD,UAAA,oBAAC,kBAAA,CAAA,CAAiB,EAAA,CACpB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAAA,EAEF,MAAM,CAAA;AACR;"}
@@ -1,36 +0,0 @@
1
- import { AppIconWithTooltip } from "../../components/app-icon-with-tooltip.js";
2
- const meta = {
3
- title: "React/App Icon With Tooltip",
4
- component: AppIconWithTooltip,
5
- parameters: {
6
- layout: "centered"
7
- },
8
- tags: ["autodocs"],
9
- argTypes: {
10
- tooltip: {
11
- control: "text"
12
- },
13
- accessibleAreaWidth: {
14
- control: "text"
15
- },
16
- accessibleAreaHeight: {
17
- control: "text"
18
- },
19
- iconProps: {
20
- control: "object"
21
- }
22
- }
23
- };
24
- const Variants = {
25
- args: {
26
- tooltip: "Tooltip sample",
27
- accessibleAreaWidth: "36px",
28
- accessibleAreaHeight: "36px",
29
- tooltipProps: { enterDelay: 250 }
30
- }
31
- };
32
- export {
33
- Variants,
34
- meta as default
35
- };
36
- //# sourceMappingURL=AppIconWithTooltip.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppIconWithTooltip.stories.js","sources":["../../../../../src/stories/react/AppIconWithTooltip.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { AppIconWithTooltip } from '~/components/app-icon-with-tooltip';\n\n//\n//\n\n// Meta\nconst meta = {\n title: 'React/App Icon With Tooltip',\n component: AppIconWithTooltip,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n argTypes: {\n tooltip: {\n control: 'text',\n },\n accessibleAreaWidth: {\n control: 'text',\n },\n accessibleAreaHeight: {\n control: 'text',\n },\n iconProps: {\n control: 'object',\n },\n },\n} satisfies Meta<typeof AppIconWithTooltip>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\n//\n\nexport const Variants: Story = {\n args: {\n tooltip: 'Tooltip sample',\n accessibleAreaWidth: '36px',\n accessibleAreaHeight: '36px',\n tooltipProps: { enterDelay: 250 },\n },\n};\n"],"names":[],"mappings":";AAQA,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,SAAS;AAAA,MACP,SAAS;AAAA,IAAA;AAAA,IAEX,qBAAqB;AAAA,MACnB,SAAS;AAAA,IAAA;AAAA,IAEX,sBAAsB;AAAA,MACpB,SAAS;AAAA,IAAA;AAAA,IAEX,WAAW;AAAA,MACT,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAOO,MAAM,WAAkB;AAAA,EAC7B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,cAAc,EAAE,YAAY,IAAA;AAAA,EAAI;AAEpC;"}
@@ -1,158 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Divider } from "@mui/material";
3
- import { AppInputBase } from "../../components/app-input-base.js";
4
- import { AppTypography } from "../../components/app-typography.js";
5
- import { StackColumn } from "../../components/stack-column.js";
6
- const meta = {
7
- title: "React/App Input Base",
8
- component: AppInputBase,
9
- parameters: {
10
- layout: "centered"
11
- },
12
- tags: ["autodocs"],
13
- argTypes: {
14
- size: {
15
- control: "select",
16
- options: ["medium", "small"]
17
- },
18
- disabled: {
19
- control: "boolean"
20
- },
21
- error: {
22
- control: "boolean"
23
- },
24
- multiline: {
25
- control: "boolean"
26
- },
27
- label: {
28
- control: "text"
29
- },
30
- placeholder: {
31
- control: "text"
32
- },
33
- helperText: {
34
- control: "text"
35
- },
36
- startAdornmentText: {
37
- control: "text"
38
- },
39
- endAdornmentText: {
40
- control: "text"
41
- }
42
- },
43
- args: {
44
- size: "medium",
45
- label: "Label",
46
- placeholder: "Placeholder text",
47
- disabled: false,
48
- error: false,
49
- multiline: false
50
- }
51
- };
52
- const Playground = {
53
- args: {}
54
- };
55
- const Variants = {
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
- ] }),
64
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] }),
78
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] }),
94
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] }),
107
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] })
151
- ] })
152
- };
153
- export {
154
- Playground,
155
- Variants,
156
- meta as default
157
- };
158
- //# sourceMappingURL=AppInputBase.stories.js.map
@@ -1 +0,0 @@
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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F;AAAA,wBAEC,SAAA,EAAQ;AAAA,IAET,qBAAC,aAAA,EAAY,KAAK,GAChB,UAAA;AAAA,MAAA,oBAAC,eAAA,EAAc,SAAQ,MAAK,UAAA,OAAG;AAAA,MAE/B,oBAAC,cAAA,EAAa,KAAI,OAAM,OAAM,gBAAe;AAAA,0BAC5C,cAAA,EAAa,KAAI,OAAM,OAAM,gBAAe,aAAY,gBAAe;AAAA,MACxE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAI;AAAA,UACJ,OAAM;AAAA,UACN,aAAY;AAAA,UACZ,MAAK;AAAA,UACL,OAAK;AAAA,QAAA;AAAA,MAAA;AAAA,MAEP;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAI;AAAA,UACJ,OAAM;AAAA,UACN,aAAY;AAAA,UACZ,oBAAmB;AAAA,QAAA;AAAA,MAAA;AAAA,MAErB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAI;AAAA,UACJ,OAAM;AAAA,UACN,aAAY;AAAA,UACZ,kBAAiB;AAAA,QAAA;AAAA,MAAA;AAAA,MAEnB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAI;AAAA,UACJ,OAAM;AAAA,UACN,aAAY;AAAA,UACZ,kBAAiB;AAAA,UACjB,WAAS;AAAA,QAAA;AAAA,MAAA;AAAA,IACX,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAEJ;"}
@@ -1,87 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Divider } from "@mui/material";
3
- import { AppInputBaseSearch } from "../../components/app-input-base-search.js";
4
- import { AppTypography } from "../../components/app-typography.js";
5
- import { StackColumn } from "../../components/stack-column.js";
6
- const meta = {
7
- title: "React/App Input Base Search",
8
- component: AppInputBaseSearch,
9
- parameters: {
10
- layout: "centered"
11
- },
12
- tags: ["autodocs"],
13
- argTypes: {
14
- size: {
15
- control: "select",
16
- options: ["medium", "small"]
17
- },
18
- disabled: {
19
- control: "boolean"
20
- },
21
- error: {
22
- control: "boolean"
23
- },
24
- label: {
25
- control: "text"
26
- },
27
- placeholder: {
28
- control: "text"
29
- }
30
- },
31
- args: {
32
- name: "search",
33
- label: "Search",
34
- placeholder: "Search for...",
35
- disabled: false,
36
- error: false
37
- }
38
- };
39
- const Playground = {
40
- args: {}
41
- };
42
- const Variants = {
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
- ] }),
50
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] }),
56
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] }),
62
- /* @__PURE__ */ jsx(Divider, {}),
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
- ] })
80
- ] })
81
- };
82
- export {
83
- Playground,
84
- Variants,
85
- meta as default
86
- };
87
- //# sourceMappingURL=AppInputBaseSearch.stories.js.map
@@ -1 +0,0 @@
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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