@zidsa/zidmui 2.0.3 → 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,171 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ const sampleData = [
6
+ { id: 1, name: "John Doe", email: "john@example.com", status: "Active", role: "Admin" },
7
+ { id: 2, name: "Jane Smith", email: "jane@example.com", status: "Pending", role: "User" },
8
+ { id: 3, name: "Bob Johnson", email: "bob@example.com", status: "Inactive", role: "User" },
9
+ { id: 4, name: "Alice Brown", email: "alice@example.com", status: "Active", role: "Editor" },
10
+ { id: 5, name: "Charlie Wilson", email: "charlie@example.com", status: "Active", role: "User" }
11
+ ];
12
+ const meta = {
13
+ title: "CSS Styles/Components/Table",
14
+ parameters: {
15
+ layout: "padded"
16
+ },
17
+ tags: ["autodocs"]
18
+ };
19
+ const Variants = {
20
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "48px" }, children: [
21
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
22
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Default" }),
23
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table", children: [
24
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
25
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
26
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
27
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
28
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
29
+ ] }) }),
30
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.slice(0, 4).map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
31
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
32
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
33
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
34
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.status })
35
+ ] }, row.id)) })
36
+ ] })
37
+ ] }),
38
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
39
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Striped" }),
40
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table zid-table--striped", children: [
41
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
42
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
43
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
44
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
45
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
46
+ ] }) }),
47
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.slice(0, 4).map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
49
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
50
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
51
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.status })
52
+ ] }, row.id)) })
53
+ ] })
54
+ ] }),
55
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
56
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Bordered" }),
57
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table zid-table--bordered", children: [
58
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
59
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
60
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
61
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
62
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
63
+ ] }) }),
64
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.slice(0, 4).map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
65
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
66
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
67
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
68
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.status })
69
+ ] }, row.id)) })
70
+ ] })
71
+ ] }),
72
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
73
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "16px", fontFamily: "var(--zid-font-family)" }, children: "Hoverable" }),
74
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table zid-table--hoverable", children: [
75
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
76
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
77
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
78
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
79
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
80
+ ] }) }),
81
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.slice(0, 4).map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
82
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
83
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
84
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
85
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.status })
86
+ ] }, row.id)) })
87
+ ] })
88
+ ] })
89
+ ] })
90
+ };
91
+ const statusMap = {
92
+ "Active": /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "zid-status zid-status--success zid-status--sm", children: [
93
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-status__dot" }),
94
+ "Active"
95
+ ] }),
96
+ "Pending": /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "zid-status zid-status--warning zid-status--sm", children: [
97
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-status__dot" }),
98
+ "Pending"
99
+ ] }),
100
+ "Inactive": /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "zid-status zid-status--error zid-status--sm", children: [
101
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-status__dot" }),
102
+ "Inactive"
103
+ ] })
104
+ };
105
+ const WithStatusBadges = {
106
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
107
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "With Status Badges" }),
108
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table zid-table--hoverable", children: [
109
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
110
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
111
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
112
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
113
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Role" }),
114
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
115
+ ] }) }),
116
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
117
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
118
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
119
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
120
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.role }),
121
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: statusMap[row.status] })
122
+ ] }, row.id)) })
123
+ ] })
124
+ ] })
125
+ };
126
+ const WithActions = {
127
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
128
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "With Action Buttons" }),
129
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table zid-table--hoverable", children: [
130
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
131
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
132
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
133
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
134
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Actions" })
135
+ ] }) }),
136
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: sampleData.map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
137
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.id }),
138
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.name }),
139
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: row.email }),
140
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
141
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--primary zid-button--sm", children: "Edit" }),
142
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--error zid-button--sm", children: "Delete" })
143
+ ] }) })
144
+ ] }, row.id)) })
145
+ ] })
146
+ ] })
147
+ };
148
+ const EmptyState = {
149
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
150
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Empty State" }),
151
+ /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "zid-table", children: [
152
+ /* @__PURE__ */ jsxRuntime.jsx("thead", { className: "zid-table__head", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "zid-table__row", children: [
153
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "ID" }),
154
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Name" }),
155
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Email" }),
156
+ /* @__PURE__ */ jsxRuntime.jsx("th", { className: "zid-table__cell", children: "Status" })
157
+ ] }) }),
158
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "zid-table__body", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { className: "zid-table__row", children: /* @__PURE__ */ jsxRuntime.jsx("td", { className: "zid-table__cell", colSpan: 4, style: { textAlign: "center", padding: "48px" }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { color: "var(--zid-text-secondary)", fontFamily: "var(--zid-font-family)" }, children: [
159
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "48px", marginBottom: "16px" }, children: "📭" }),
160
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "16px", fontWeight: 500, marginBottom: "8px" }, children: "No data found" }),
161
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "14px" }, children: "Try adjusting your search or filters" })
162
+ ] }) }) }) })
163
+ ] })
164
+ ] })
165
+ };
166
+ exports.EmptyState = EmptyState;
167
+ exports.Variants = Variants;
168
+ exports.WithActions = WithActions;
169
+ exports.WithStatusBadges = WithStatusBadges;
170
+ exports.default = meta;
171
+ //# sourceMappingURL=Table.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.stories.js","sources":["../../../../../src/stories/css/Table.stories.tsx"],"sourcesContent":["import type { StoryObj } from '@storybook/react-vite';\nimport type { ReactNode } from 'react';\nimport '../../css/index.css';\n\nconst sampleData = [\n { id: 1, name: 'John Doe', email: 'john@example.com', status: 'Active', role: 'Admin' },\n { id: 2, name: 'Jane Smith', email: 'jane@example.com', status: 'Pending', role: 'User' },\n { id: 3, name: 'Bob Johnson', email: 'bob@example.com', status: 'Inactive', role: 'User' },\n { id: 4, name: 'Alice Brown', email: 'alice@example.com', status: 'Active', role: 'Editor' },\n { id: 5, name: 'Charlie Wilson', email: 'charlie@example.com', status: 'Active', role: 'User' },\n];\n\nconst meta = {\n title: 'CSS Styles/Components/Table',\n parameters: {\n layout: 'padded',\n },\n tags: ['autodocs'],\n};\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Variants: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '48px' }}>\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Default</h3>\n <table className=\"zid-table\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.slice(0, 4).map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">{row.status}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Striped</h3>\n <table className=\"zid-table zid-table--striped\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.slice(0, 4).map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">{row.status}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Bordered</h3>\n <table className=\"zid-table zid-table--bordered\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.slice(0, 4).map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">{row.status}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n\n <div>\n <h3 style={{ marginBottom: '16px', fontFamily: 'var(--zid-font-family)' }}>Hoverable</h3>\n <table className=\"zid-table zid-table--hoverable\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.slice(0, 4).map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">{row.status}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </div>\n ),\n};\n\n\nconst statusMap: Record<string, ReactNode> = {\n 'Active': <span className=\"zid-status zid-status--success zid-status--sm\"><span className=\"zid-status__dot\"></span>Active</span>,\n 'Pending': <span className=\"zid-status zid-status--warning zid-status--sm\"><span className=\"zid-status__dot\"></span>Pending</span>,\n 'Inactive': <span className=\"zid-status zid-status--error zid-status--sm\"><span className=\"zid-status__dot\"></span>Inactive</span>,\n};\n\nexport const WithStatusBadges: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>With Status Badges</h3>\n <table className=\"zid-table zid-table--hoverable\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Role</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">{row.role}</td>\n <td className=\"zid-table__cell\">{statusMap[row.status]}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n ),\n};\n\nexport const WithActions: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>With Action Buttons</h3>\n <table className=\"zid-table zid-table--hoverable\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Actions</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n {sampleData.map(row => (\n <tr key={row.id} className=\"zid-table__row\">\n <td className=\"zid-table__cell\">{row.id}</td>\n <td className=\"zid-table__cell\">{row.name}</td>\n <td className=\"zid-table__cell\">{row.email}</td>\n <td className=\"zid-table__cell\">\n <div style={{ display: 'flex', gap: '8px' }}>\n <button className=\"zid-button zid-button--text zid-button--primary zid-button--sm\">Edit</button>\n <button className=\"zid-button zid-button--text zid-button--error zid-button--sm\">Delete</button>\n </div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n ),\n};\n\nexport const EmptyState: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>Empty State</h3>\n <table className=\"zid-table\">\n <thead className=\"zid-table__head\">\n <tr className=\"zid-table__row\">\n <th className=\"zid-table__cell\">ID</th>\n <th className=\"zid-table__cell\">Name</th>\n <th className=\"zid-table__cell\">Email</th>\n <th className=\"zid-table__cell\">Status</th>\n </tr>\n </thead>\n <tbody className=\"zid-table__body\">\n <tr className=\"zid-table__row\">\n <td className=\"zid-table__cell\" colSpan={4} style={{ textAlign: 'center', padding: '48px' }}>\n <div style={{ color: 'var(--zid-text-secondary)', fontFamily: 'var(--zid-font-family)' }}>\n <div style={{ fontSize: '48px', marginBottom: '16px' }}>📭</div>\n <div style={{ fontSize: '16px', fontWeight: 500, marginBottom: '8px' }}>No data found</div>\n <div style={{ fontSize: '14px' }}>Try adjusting your search or filters</div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n ),\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;AAIA,MAAM,aAAa;AAAA,EACjB,EAAE,IAAI,GAAG,MAAM,YAAY,OAAO,oBAAoB,QAAQ,UAAU,MAAM,QAAA;AAAA,EAC9E,EAAE,IAAI,GAAG,MAAM,cAAc,OAAO,oBAAoB,QAAQ,WAAW,MAAM,OAAA;AAAA,EACjF,EAAE,IAAI,GAAG,MAAM,eAAe,OAAO,mBAAmB,QAAQ,YAAY,MAAM,OAAA;AAAA,EAClF,EAAE,IAAI,GAAG,MAAM,eAAe,OAAO,qBAAqB,QAAQ,UAAU,MAAM,SAAA;AAAA,EAClF,EAAE,IAAI,GAAG,MAAM,kBAAkB,OAAO,uBAAuB,QAAQ,UAAU,MAAM,OAAA;AACzF;AAEA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AACnB;AAKO,MAAM,WAAkB;AAAA,EAC7B,QAAQ,MACNA,2BAAAA,KAAC,OAAA,EAAI,OAAO,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,OAAA,GAC3D,UAAA;AAAA,IAAAA,gCAAC,OAAA,EACC,UAAA;AAAA,MAAAC,2BAAAA,IAAC,MAAA,EAAG,OAAO,EAAE,cAAc,QAAQ,YAAY,yBAAA,GAA4B,UAAA,UAAA,CAAO;AAAA,MAClFD,2BAAAA,KAAC,SAAA,EAAM,WAAU,aACf,UAAA;AAAA,QAAAC,2BAA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,KAAA,CAAE;AAAA,QAC1DA,2BAAAA,IAAC,OAAA,EAAI,OAAO,EAAE,UAAU,QAAQ,YAAY,KAAK,cAAc,MAAA,GAAS,UAAA,gBAAA,CAAa;AAAA,uCACpF,OAAA,EAAI,OAAO,EAAE,UAAU,OAAA,GAAU,UAAA,uCAAA,CAAoC;AAAA,MAAA,GACxE,EAAA,CACF,GACF,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAEJ;;;;;;"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ const meta = {
6
+ title: "CSS Styles/Components/Tooltip",
7
+ parameters: {
8
+ layout: "centered"
9
+ },
10
+ tags: ["autodocs"]
11
+ };
12
+ const Positions = {
13
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "80px", padding: "80px" }, children: [
14
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
15
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Top" }),
16
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--top", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Tooltip on top" }) })
17
+ ] }) }),
18
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
19
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
20
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Left" }),
21
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--left", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Tooltip on left" }) })
22
+ ] }),
23
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
24
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Right" }),
25
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--right", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Tooltip on right" }) })
26
+ ] })
27
+ ] }),
28
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
29
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Bottom" }),
30
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--bottom", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Tooltip on bottom" }) })
31
+ ] }) })
32
+ ] })
33
+ };
34
+ const WithTitle = {
35
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px", padding: "80px" }, children: [
36
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Tooltip with Title" }),
37
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "32px", flexWrap: "wrap" }, children: [
38
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
39
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "With Title" }),
40
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip__content zid-tooltip__content--top zid-tooltip__content--multiline", children: [
41
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__title", children: "Tooltip Title" }),
42
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "This is a longer description that provides more context about the element." })
43
+ ] })
44
+ ] }),
45
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
46
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Help Info" }),
47
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip__content zid-tooltip__content--top zid-tooltip__content--multiline", children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__title", children: "Need Help?" }),
49
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Click here to access our help center and documentation." })
50
+ ] })
51
+ ] })
52
+ ] })
53
+ ] })
54
+ };
55
+ const SimpleTooltips = {
56
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px", padding: "60px" }, children: [
57
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Simple Tooltips" }),
58
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "32px", flexWrap: "wrap" }, children: [
59
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
60
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--secondary zid-button--sm", children: "Edit" }),
61
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--top", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Edit item" }) })
62
+ ] }),
63
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
64
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--error zid-button--sm", children: "Delete" }),
65
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--top", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Delete item" }) })
66
+ ] }),
67
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip zid-tooltip--open", children: [
68
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--secondary zid-button--sm", children: "Copy" }),
69
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--top", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "Copy to clipboard" }) })
70
+ ] })
71
+ ] })
72
+ ] })
73
+ };
74
+ const Interactive = {
75
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "32px", padding: "60px" }, children: [
76
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: "8px", fontFamily: "var(--zid-font-family)" }, children: "Interactive Demo (Hover to show)" }),
77
+ /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontFamily: "var(--zid-font-family)", color: "var(--zid-text-secondary)", marginBottom: "16px" }, children: "Hover over the buttons to see tooltips appear" }),
78
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "24px", flexWrap: "wrap" }, children: [
79
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip", children: [
80
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Hover me" }),
81
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--top", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "I appear on hover!" }) })
82
+ ] }),
83
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip", children: [
84
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--outlined zid-button--secondary zid-button--md", children: "Or me" }),
85
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--bottom", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "I appear below!" }) })
86
+ ] }),
87
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-tooltip", children: [
88
+ /* @__PURE__ */ jsxRuntime.jsx("button", { className: "zid-button zid-button--text zid-button--secondary zid-button--md", children: "Me too" }),
89
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__content zid-tooltip__content--right", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-tooltip__description", children: "I appear on the right!" }) })
90
+ ] })
91
+ ] })
92
+ ] })
93
+ };
94
+ exports.Interactive = Interactive;
95
+ exports.Positions = Positions;
96
+ exports.SimpleTooltips = SimpleTooltips;
97
+ exports.WithTitle = WithTitle;
98
+ exports.default = meta;
99
+ //# sourceMappingURL=Tooltip.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.stories.js","sources":["../../../../../src/stories/css/Tooltip.stories.tsx"],"sourcesContent":["import type { StoryObj } from '@storybook/react-vite';\nimport '../../css/index.css';\n\nconst meta = {\n title: 'CSS Styles/Components/Tooltip',\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n};\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Positions: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '80px', padding: '80px' }}>\n <div style={{ display: 'flex', justifyContent: 'center' }}>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Top</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top\">\n <div className=\"zid-tooltip__description\">Tooltip on top</div>\n </div>\n </div>\n </div>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Left</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--left\">\n <div className=\"zid-tooltip__description\">Tooltip on left</div>\n </div>\n </div>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Right</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--right\">\n <div className=\"zid-tooltip__description\">Tooltip on right</div>\n </div>\n </div>\n </div>\n <div style={{ display: 'flex', justifyContent: 'center' }}>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Bottom</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--bottom\">\n <div className=\"zid-tooltip__description\">Tooltip on bottom</div>\n </div>\n </div>\n </div>\n </div>\n ),\n};\n\nexport const WithTitle: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px', padding: '80px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>Tooltip with Title</h3>\n <div style={{ display: 'flex', gap: '32px', flexWrap: 'wrap' }}>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">With Title</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top zid-tooltip__content--multiline\">\n <div className=\"zid-tooltip__title\">Tooltip Title</div>\n <div className=\"zid-tooltip__description\">This is a longer description that provides more context about the element.</div>\n </div>\n </div>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Help Info</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top zid-tooltip__content--multiline\">\n <div className=\"zid-tooltip__title\">Need Help?</div>\n <div className=\"zid-tooltip__description\">Click here to access our help center and documentation.</div>\n </div>\n </div>\n </div>\n </div>\n ),\n};\n\nexport const SimpleTooltips: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px', padding: '60px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>Simple Tooltips</h3>\n <div style={{ display: 'flex', gap: '32px', flexWrap: 'wrap' }}>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--text zid-button--secondary zid-button--sm\">Edit</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top\">\n <div className=\"zid-tooltip__description\">Edit item</div>\n </div>\n </div>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--text zid-button--error zid-button--sm\">Delete</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top\">\n <div className=\"zid-tooltip__description\">Delete item</div>\n </div>\n </div>\n <div className=\"zid-tooltip zid-tooltip--open\">\n <button className=\"zid-button zid-button--text zid-button--secondary zid-button--sm\">Copy</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top\">\n <div className=\"zid-tooltip__description\">Copy to clipboard</div>\n </div>\n </div>\n </div>\n </div>\n ),\n};\n\nexport const Interactive: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '32px', padding: '60px' }}>\n <h3 style={{ marginBottom: '8px', fontFamily: 'var(--zid-font-family)' }}>Interactive Demo (Hover to show)</h3>\n <p style={{ fontFamily: 'var(--zid-font-family)', color: 'var(--zid-text-secondary)', marginBottom: '16px' }}>Hover over the buttons to see tooltips appear</p>\n <div style={{ display: 'flex', gap: '24px', flexWrap: 'wrap' }}>\n <div className=\"zid-tooltip\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Hover me</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--top\">\n <div className=\"zid-tooltip__description\">I appear on hover!</div>\n </div>\n </div>\n <div className=\"zid-tooltip\">\n <button className=\"zid-button zid-button--outlined zid-button--secondary zid-button--md\">Or me</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--bottom\">\n <div className=\"zid-tooltip__description\">I appear below!</div>\n </div>\n </div>\n <div className=\"zid-tooltip\">\n <button className=\"zid-button zid-button--text zid-button--secondary zid-button--md\">Me too</button>\n <div className=\"zid-tooltip__content zid-tooltip__content--right\">\n <div className=\"zid-tooltip__description\">I appear on the right!</div>\n </div>\n </div>\n </div>\n </div>\n ),\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;AAGA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AACnB;AAKO,MAAM,YAAmB;AAAA,EAC9B,QAAQ,MACNA,2BAAAA,KAAC,OAAA,EAAI,OAAO,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,QAAQ,SAAS,UAC5E,UAAA;AAAA,IAAAC,2BAAAA,IAAC,OAAA,EAAI,OAAO,EAAE,SAAS,QAAQ,gBAAgB,SAAA,GAC7C,UAAAD,2BAAAA,KAAC,OAAA,EAAI,WAAU,iCACb,UAAA;AAAA,MAAAC,2BAAAA,IAAC,UAAA,EAAO,WAAU,wEAAuE,UAAA,OAAG;AAAA,MAC5FA,2BAAAA,IAAC,SAAI,WAAU,kDACb,yCAAC,OAAA,EAAI,WAAU,4BAA2B,UAAA,iBAAA,CAAc,EAAA,CAC1D;AAAA,IAAA,EAAA,CACF,EAAA,CACF;AAAA,IACAD,2BAAAA,KAAC,OAAA,EAAI,OAAO,EAAE,SAAS,QAAQ,gBAAgB,iBAAiB,YAAY,SAAA,GAC1E,UAAA;AAAA,MAAAA,2BAAAA,KAAC,OAAA,EAAI,WAAU,iCACb,UAAA;AAAA,QAAAC,2BAAAA,IAAC,UAAA,EAAO,WA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;AAAA,QACjGA,2BAAAA,IAAC,SAAI,WAAU,kDACb,yCAAC,OAAA,EAAI,WAAU,4BAA2B,UAAA,qBAAA,CAAkB,EAAA,CAC9D;AAAA,MAAA,GACF;AAAA,MACAD,2BAAAA,KAAC,OAAA,EAAI,WAAU,eACb,UAAA;AAAA,QAAAC,2BAAAA,IAAC,UAAA,EAAO,WAAU,wEAAuE,UAAA,SAAK;AAAA,QAC9FA,2BAAAA,IAAC,SAAI,WAAU,qDACb,yCAAC,OAAA,EAAI,WAAU,4BAA2B,UAAA,kBAAA,CAAe,EAAA,CAC3D;AAAA,MAAA,GACF;AAAA,MACAD,2BAAAA,KAAC,OAAA,EAAI,WAAU,eACb,UAAA;AAAA,QAAAC,2BAAAA,IAAC,UAAA,EAAO,WAAU,oEAAmE,UAAA,UAAM;AAAA,QAC3FA,2BAAAA,IAAC,SAAI,WAAU,oDACb,yCAAC,OAAA,EAAI,WAAU,4BAA2B,UAAA,yBAAA,CAAsB,EAAA,CAClE;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAEJ;;;;;;"}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ ;/* empty css */
5
+ const meta = {
6
+ title: "CSS Styles/Utilities",
7
+ tags: ["autodocs"],
8
+ parameters: {
9
+ layout: "fullscreen"
10
+ }
11
+ };
12
+ const UtilityClasses = {
13
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { padding: "32px", maxWidth: "900px", fontFamily: "var(--zid-font-family, system-ui)" }, children: [
14
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { style: { marginBottom: "8px" }, children: "Utility Classes" }),
15
+ /* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "#75727B", marginBottom: "32px" }, children: "Helper classes for common styling needs" }),
16
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
17
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Display" }),
18
+ /* @__PURE__ */ jsxRuntime.jsx("pre", { style: { background: "#1f0433", color: "#fff", padding: "16px", borderRadius: "8px", overflow: "auto", fontSize: "14px" }, children: `.zid-d-flex /* display: flex */
19
+ .zid-d-block /* display: block */
20
+ .zid-d-inline /* display: inline */
21
+ .zid-d-none /* display: none */
22
+ .zid-d-grid /* display: grid */` })
23
+ ] }),
24
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
25
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Flexbox" }),
26
+ /* @__PURE__ */ jsxRuntime.jsx("pre", { style: { background: "#1f0433", color: "#fff", padding: "16px", borderRadius: "8px", overflow: "auto", fontSize: "14px" }, children: `/* Direction */
27
+ .zid-flex-row /* flex-direction: row */
28
+ .zid-flex-col /* flex-direction: column */
29
+
30
+ /* Justify Content */
31
+ .zid-justify-start /* justify-content: flex-start */
32
+ .zid-justify-end /* justify-content: flex-end */
33
+ .zid-justify-center /* justify-content: center */
34
+ .zid-justify-between /* justify-content: space-between */
35
+ .zid-justify-around /* justify-content: space-around */
36
+
37
+ /* Align Items */
38
+ .zid-align-start /* align-items: flex-start */
39
+ .zid-align-end /* align-items: flex-end */
40
+ .zid-align-center /* align-items: center */
41
+ .zid-align-stretch /* align-items: stretch */
42
+
43
+ /* Flex Wrap */
44
+ .zid-flex-wrap /* flex-wrap: wrap */
45
+ .zid-flex-nowrap /* flex-wrap: nowrap */
46
+
47
+ /* Gap */
48
+ .zid-gap-1 /* gap: 8px */
49
+ .zid-gap-2 /* gap: 16px */
50
+ .zid-gap-3 /* gap: 24px */
51
+ .zid-gap-4 /* gap: 32px */` })
52
+ ] }),
53
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
54
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Spacing (Margin & Padding)" }),
55
+ /* @__PURE__ */ jsxRuntime.jsx("pre", { style: { background: "#1f0433", color: "#fff", padding: "16px", borderRadius: "8px", overflow: "auto", fontSize: "14px" }, children: `/* Margin - all sides */
56
+ .zid-m-0, .zid-m-1, .zid-m-2, .zid-m-3, .zid-m-4
57
+
58
+ /* Margin - specific sides */
59
+ .zid-mt-{0-4} /* margin-top */
60
+ .zid-mr-{0-4} /* margin-right */
61
+ .zid-mb-{0-4} /* margin-bottom */
62
+ .zid-ml-{0-4} /* margin-left */
63
+ .zid-mx-{0-4} /* margin-left + margin-right */
64
+ .zid-my-{0-4} /* margin-top + margin-bottom */
65
+
66
+ /* Padding - all sides */
67
+ .zid-p-0, .zid-p-1, .zid-p-2, .zid-p-3, .zid-p-4
68
+
69
+ /* Padding - specific sides */
70
+ .zid-pt-{0-4} /* padding-top */
71
+ .zid-pr-{0-4} /* padding-right */
72
+ .zid-pb-{0-4} /* padding-bottom */
73
+ .zid-pl-{0-4} /* padding-left */
74
+ .zid-px-{0-4} /* padding-left + padding-right */
75
+ .zid-py-{0-4} /* padding-top + padding-bottom */` })
76
+ ] }),
77
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
78
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Text" }),
79
+ /* @__PURE__ */ jsxRuntime.jsx("pre", { style: { background: "#1f0433", color: "#fff", padding: "16px", borderRadius: "8px", overflow: "auto", fontSize: "14px" }, children: `/* Text alignment */
80
+ .zid-text-left
81
+ .zid-text-center
82
+ .zid-text-right
83
+
84
+ /* Text colors */
85
+ .zid-text-primary
86
+ .zid-text-secondary
87
+ .zid-text-error
88
+ .zid-text-success
89
+ .zid-text-warning
90
+
91
+ /* Font weight */
92
+ .zid-font-regular
93
+ .zid-font-medium
94
+ .zid-font-bold` })
95
+ ] })
96
+ ] })
97
+ };
98
+ const UtilityExamples = {
99
+ render: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { padding: "32px", maxWidth: "900px", fontFamily: "var(--zid-font-family, system-ui)" }, children: [
100
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { style: { marginBottom: "8px" }, children: "Utility Examples" }),
101
+ /* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "#75727B", marginBottom: "32px" }, children: "Live examples of utility classes" }),
102
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
103
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Flexbox Layout" }),
104
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "zid-d-flex zid-justify-between zid-align-center zid-gap-2 zid-p-3", style: { background: "var(--zid-base-neutral, #F5F4F6)", borderRadius: "8px" }, children: [
105
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "16px", background: "var(--zid-primary-main, #AE72FF)", color: "white", borderRadius: "4px" }, children: "Item 1" }),
106
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "16px", background: "var(--zid-primary-main, #AE72FF)", color: "white", borderRadius: "4px" }, children: "Item 2" }),
107
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "16px", background: "var(--zid-primary-main, #AE72FF)", color: "white", borderRadius: "4px" }, children: "Item 3" })
108
+ ] }),
109
+ /* @__PURE__ */ jsxRuntime.jsx("pre", { style: { background: "#1f0433", color: "#fff", padding: "12px", borderRadius: "8px", marginTop: "12px", fontSize: "13px" }, children: `<div class="zid-d-flex zid-justify-between zid-align-center zid-gap-2 zid-p-3">
110
+ <div>Item 1</div>
111
+ <div>Item 2</div>
112
+ <div>Item 3</div>
113
+ </div>` })
114
+ ] }),
115
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
116
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Spacing" }),
117
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { background: "var(--zid-base-neutral, #F5F4F6)", borderRadius: "8px", padding: "16px" }, children: [
118
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-mb-2", style: { padding: "12px", background: "var(--zid-color-blue-200, #E9FAFA)", borderRadius: "4px" }, children: "Box with margin-bottom (zid-mb-2)" }),
119
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "zid-p-3", style: { background: "var(--zid-color-green-200, #EFFBEE)", borderRadius: "4px" }, children: "Box with padding (zid-p-3)" })
120
+ ] })
121
+ ] }),
122
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "32px" }, children: [
123
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { marginBottom: "16px" }, children: "Text Colors" }),
124
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
125
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-text-primary", style: { fontSize: "16px" }, children: "Primary text color" }),
126
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-text-secondary", style: { fontSize: "16px" }, children: "Secondary text color" }),
127
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-text-error", style: { fontSize: "16px" }, children: "Error text color" }),
128
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "zid-text-success", style: { fontSize: "16px" }, children: "Success text color" })
129
+ ] })
130
+ ] })
131
+ ] })
132
+ };
133
+ exports.UtilityClasses = UtilityClasses;
134
+ exports.UtilityExamples = UtilityExamples;
135
+ exports.default = meta;
136
+ //# sourceMappingURL=Utilities.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utilities.stories.js","sources":["../../../../../src/stories/css/Utilities.stories.tsx"],"sourcesContent":["import type { StoryObj } from '@storybook/react-vite';\nimport '../../css/index.css';\n\nconst meta = {\n title: 'CSS Styles/Utilities',\n tags: ['autodocs'],\n parameters: {\n layout: 'fullscreen',\n },\n};\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const UtilityClasses: Story = {\n render: () => (\n <div style={{ padding: '32px', maxWidth: '900px', fontFamily: 'var(--zid-font-family, system-ui)' }}>\n <h1 style={{ marginBottom: '8px' }}>Utility Classes</h1>\n <p style={{ color: '#75727B', marginBottom: '32px' }}>Helper classes for common styling needs</p>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Display</h2>\n <pre style={{ background: '#1f0433', color: '#fff', padding: '16px', borderRadius: '8px', overflow: 'auto', fontSize: '14px' }}>\n{`.zid-d-flex /* display: flex */\n.zid-d-block /* display: block */\n.zid-d-inline /* display: inline */\n.zid-d-none /* display: none */\n.zid-d-grid /* display: grid */`}\n </pre>\n </div>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Flexbox</h2>\n <pre style={{ background: '#1f0433', color: '#fff', padding: '16px', borderRadius: '8px', overflow: 'auto', fontSize: '14px' }}>\n{`/* Direction */\n.zid-flex-row /* flex-direction: row */\n.zid-flex-col /* flex-direction: column */\n\n/* Justify Content */\n.zid-justify-start /* justify-content: flex-start */\n.zid-justify-end /* justify-content: flex-end */\n.zid-justify-center /* justify-content: center */\n.zid-justify-between /* justify-content: space-between */\n.zid-justify-around /* justify-content: space-around */\n\n/* Align Items */\n.zid-align-start /* align-items: flex-start */\n.zid-align-end /* align-items: flex-end */\n.zid-align-center /* align-items: center */\n.zid-align-stretch /* align-items: stretch */\n\n/* Flex Wrap */\n.zid-flex-wrap /* flex-wrap: wrap */\n.zid-flex-nowrap /* flex-wrap: nowrap */\n\n/* Gap */\n.zid-gap-1 /* gap: 8px */\n.zid-gap-2 /* gap: 16px */\n.zid-gap-3 /* gap: 24px */\n.zid-gap-4 /* gap: 32px */`}\n </pre>\n </div>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Spacing (Margin & Padding)</h2>\n <pre style={{ background: '#1f0433', color: '#fff', padding: '16px', borderRadius: '8px', overflow: 'auto', fontSize: '14px' }}>\n{`/* Margin - all sides */\n.zid-m-0, .zid-m-1, .zid-m-2, .zid-m-3, .zid-m-4\n\n/* Margin - specific sides */\n.zid-mt-{0-4} /* margin-top */\n.zid-mr-{0-4} /* margin-right */\n.zid-mb-{0-4} /* margin-bottom */\n.zid-ml-{0-4} /* margin-left */\n.zid-mx-{0-4} /* margin-left + margin-right */\n.zid-my-{0-4} /* margin-top + margin-bottom */\n\n/* Padding - all sides */\n.zid-p-0, .zid-p-1, .zid-p-2, .zid-p-3, .zid-p-4\n\n/* Padding - specific sides */\n.zid-pt-{0-4} /* padding-top */\n.zid-pr-{0-4} /* padding-right */\n.zid-pb-{0-4} /* padding-bottom */\n.zid-pl-{0-4} /* padding-left */\n.zid-px-{0-4} /* padding-left + padding-right */\n.zid-py-{0-4} /* padding-top + padding-bottom */`}\n </pre>\n </div>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Text</h2>\n <pre style={{ background: '#1f0433', color: '#fff', padding: '16px', borderRadius: '8px', overflow: 'auto', fontSize: '14px' }}>\n{`/* Text alignment */\n.zid-text-left\n.zid-text-center\n.zid-text-right\n\n/* Text colors */\n.zid-text-primary\n.zid-text-secondary\n.zid-text-error\n.zid-text-success\n.zid-text-warning\n\n/* Font weight */\n.zid-font-regular\n.zid-font-medium\n.zid-font-bold`}\n </pre>\n </div>\n </div>\n ),\n};\n\nexport const UtilityExamples: Story = {\n render: () => (\n <div style={{ padding: '32px', maxWidth: '900px', fontFamily: 'var(--zid-font-family, system-ui)' }}>\n <h1 style={{ marginBottom: '8px' }}>Utility Examples</h1>\n <p style={{ color: '#75727B', marginBottom: '32px' }}>Live examples of utility classes</p>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Flexbox Layout</h2>\n <div className=\"zid-d-flex zid-justify-between zid-align-center zid-gap-2 zid-p-3\" style={{ background: 'var(--zid-base-neutral, #F5F4F6)', borderRadius: '8px' }}>\n <div style={{ padding: '16px', background: 'var(--zid-primary-main, #AE72FF)', color: 'white', borderRadius: '4px' }}>Item 1</div>\n <div style={{ padding: '16px', background: 'var(--zid-primary-main, #AE72FF)', color: 'white', borderRadius: '4px' }}>Item 2</div>\n <div style={{ padding: '16px', background: 'var(--zid-primary-main, #AE72FF)', color: 'white', borderRadius: '4px' }}>Item 3</div>\n </div>\n <pre style={{ background: '#1f0433', color: '#fff', padding: '12px', borderRadius: '8px', marginTop: '12px', fontSize: '13px' }}>\n{`<div class=\"zid-d-flex zid-justify-between zid-align-center zid-gap-2 zid-p-3\">\n <div>Item 1</div>\n <div>Item 2</div>\n <div>Item 3</div>\n</div>`}\n </pre>\n </div>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Spacing</h2>\n <div style={{ background: 'var(--zid-base-neutral, #F5F4F6)', borderRadius: '8px', padding: '16px' }}>\n <div className=\"zid-mb-2\" style={{ padding: '12px', background: 'var(--zid-color-blue-200, #E9FAFA)', borderRadius: '4px' }}>\n Box with margin-bottom (zid-mb-2)\n </div>\n <div className=\"zid-p-3\" style={{ background: 'var(--zid-color-green-200, #EFFBEE)', borderRadius: '4px' }}>\n Box with padding (zid-p-3)\n </div>\n </div>\n </div>\n\n <div style={{ marginBottom: '32px' }}>\n <h2 style={{ marginBottom: '16px' }}>Text Colors</h2>\n <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>\n <span className=\"zid-text-primary\" style={{ fontSize: '16px' }}>Primary text color</span>\n <span className=\"zid-text-secondary\" style={{ fontSize: '16px' }}>Secondary text color</span>\n <span className=\"zid-text-error\" style={{ fontSize: '16px' }}>Error text color</span>\n <span className=\"zid-text-success\" style={{ fontSize: '16px' }}>Success text color</span>\n </div>\n </div>\n </div>\n ),\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;AAGA,MAAM,OAAO;AAAA,EACX,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O,EAAE,SAAS,QAAQ,eAAe,UAAU,KAAK,MAAA,GAC3D,UAAA;AAAA,QAAAC,2BAAAA,IAAC,QAAA,EAAK,WAAU,oBAAmB,OAAO,EAAE,UAAU,OAAA,GAAU,UAAA,qBAAA,CAAkB;AAAA,QAClFA,2BAAAA,IAAC,UAAK,WAAU,sBAAqB,OAAO,EAAE,UAAU,OAAA,GAAU,UAAA,uBAAA,CAAoB;AAAA,QACtFA,2BAAAA,IAAC,UAAK,WAAU,kBAAiB,OAAO,EAAE,UAAU,OAAA,GAAU,UAAA,mBAAA,CAAgB;AAAA,QAC9EA,2BAAAA,IAAC,UAAK,WAAU,oBAAmB,OAAO,EAAE,UAAU,OAAA,GAAU,UAAA,qBAAA,CAAkB;AAAA,MAAA,EAAA,CACpF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF;AAEJ;;;;"}
@@ -114,9 +114,15 @@ const ColorsDisplay = () => {
114
114
  return /* @__PURE__ */ jsxRuntime.jsxs(ColorSwatchContainer, { children: [
115
115
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
116
116
  /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h4", sx: { mb: 1 }, children: "Parcel Design System Colors" }),
117
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: [
118
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "How to use in React:" }),
119
+ " ",
120
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "theme.palette.colors.{name}[shade]" })
121
+ ] }),
117
122
  /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "body2", color: "text.secondary", sx: { mb: 4 }, children: [
118
- "Access colors via ",
119
- /* @__PURE__ */ jsxRuntime.jsx("code", { children: "theme.palette.colors.{colorName}[shade]" })
123
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "How to use in CSS:" }),
124
+ " ",
125
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "var(--zid-color-{name}-{shade})" })
120
126
  ] })
121
127
  ] }),
122
128
  colorScales.map(({ name, colors: colors2 }) => /* @__PURE__ */ jsxRuntime.jsx(ColorScaleDisplay, { name, colors: colors2 }, name))
@@ -1 +1 @@
1
- {"version":3,"file":"Colors.stories.js","sources":["../../../../../src/stories/design/Colors.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\nimport { useState } from 'react';\n\nimport { Box, Typography, useTheme, styled } from '@mui/material';\n\n//\n//\n\nconst ColorSwatchContainer = styled(Box)({\n display: 'flex',\n flexDirection: 'column',\n gap: '32px',\n padding: '24px',\n maxWidth: '1200px',\n});\n\nconst ColorGroupTitle = styled(Typography)(({ theme }) => ({\n fontSize: theme.spacing(3),\n fontWeight: 600,\n marginBottom: theme.spacing(2),\n textTransform: 'capitalize',\n}));\n\nconst ColorRow = styled(Box)({\n display: 'flex',\n flexWrap: 'wrap',\n gap: '12px',\n});\n\nconst ColorSwatch = styled(Box)<{ bgColor: string; isLight?: boolean }>(({ bgColor, isLight }) => ({\n width: '100px',\n height: '80px',\n backgroundColor: bgColor,\n borderRadius: '8px',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-end',\n padding: '8px',\n border: '1px solid rgba(0, 0, 0, 0.1)',\n color: isLight ? '#0E0217' : '#FFFFFF',\n fontSize: '11px',\n fontFamily: 'monospace',\n cursor: 'pointer',\n transition: 'transform 0.15s ease, box-shadow 0.15s ease',\n '&:hover': {\n transform: 'scale(1.05)',\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)',\n },\n '&:active': {\n transform: 'scale(0.98)',\n },\n}));\n\nconst SwatchLabel = styled('span')({\n fontWeight: 600,\n marginBottom: '2px',\n});\n\nconst SwatchHex = styled('span')({\n opacity: 0.8,\n fontSize: '10px',\n});\n\n//\n//\n\ninterface ColorScale {\n [key: string]: string;\n}\n\nconst isLightColor = (color: string): boolean => {\n let r: number, g: number, b: number;\n\n // Handle rgba format: rgba(255, 255, 255, 0.8)\n if (color.startsWith('rgba')) {\n const match = color.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/);\n\n if (match) {\n r = parseInt(match[1], 10);\n g = parseInt(match[2], 10);\n b = parseInt(match[3], 10);\n } else {\n return true; // Default to light if parsing fails\n }\n } else {\n // Handle hex format: #FFFFFF\n const hex = color.replace('#', '');\n r = parseInt(hex.substring(0, 2), 16);\n g = parseInt(hex.substring(2, 4), 16);\n b = parseInt(hex.substring(4, 6), 16);\n }\n\n const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\n\n return luminance > 0.5;\n};\n\nconst ColorScaleDisplay = ({ name, colors }: { name: string; colors: ColorScale }) => {\n const [copiedKey, setCopiedKey] = useState<string | null>(null);\n\n const handleCopy = (shade: string, hex: string) => {\n navigator.clipboard.writeText(hex);\n setCopiedKey(shade);\n setTimeout(() => setCopiedKey(null), 1500);\n };\n\n return (\n <Box>\n <ColorGroupTitle>{name}</ColorGroupTitle>\n <ColorRow>\n {Object.entries(colors).map(([shade, hex]) => (\n <ColorSwatch\n key={shade}\n bgColor={hex}\n isLight={isLightColor(hex)}\n onClick={() => handleCopy(shade, hex)}\n title={`Click to copy ${hex}`}\n >\n <SwatchLabel>{copiedKey === shade ? 'Copied!' : shade}</SwatchLabel>\n <SwatchHex>{hex}</SwatchHex>\n </ColorSwatch>\n ))}\n </ColorRow>\n </Box>\n );\n};\n\n//\n//\n\nconst ColorsDisplay = () => {\n const theme = useTheme();\n const { colors } = theme.palette;\n\n const colorScales = [\n { name: 'Primary', colors: colors.primary },\n { name: 'Secondary', colors: colors.secondary },\n { name: 'Neutral', colors: colors.neutral },\n { name: 'Green', colors: colors.green },\n { name: 'Blue', colors: colors.blue },\n { name: 'Yellow', colors: colors.yellow },\n { name: 'Orange', colors: colors.orange },\n { name: 'Red', colors: colors.red },\n { name: 'Base', colors: colors.base },\n ];\n\n return (\n <ColorSwatchContainer>\n <Box>\n <Typography variant=\"h4\" sx={{ mb: 1 }}>\n Parcel Design System Colors\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\" sx={{ mb: 4 }}>\n Access colors via <code>theme.palette.colors.&#123;colorName&#125;[shade]</code>\n </Typography>\n </Box>\n\n {colorScales.map(({ name, colors }) => (\n <ColorScaleDisplay key={name} name={name} colors={colors} />\n ))}\n </ColorSwatchContainer>\n );\n};\n\n//\n//\n\nconst meta = {\n title: 'Design System/Colors',\n component: ColorsDisplay,\n parameters: {\n layout: 'fullscreen',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof ColorsDisplay>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const AllColors: Story = {};\n"],"names":["styled","Box","Typography","useState","jsx","jsxs","useTheme","colors"],"mappings":";;;;;AAQA,MAAM,uBAAuBA,SAAAA,OAAOC,SAAAA,GAAG,EAAE;AAAA,EACvC,SAAS;AAAA,EACT,eAAe;AAAA,EACf,KAAK;AAAA,EACL,SAAS;AAAA,EACT,UAAU;AACZ,CAAC;AAED,MAAM,kBAAkBD,SAAAA,OAAOE,SAAAA,UAAU,EAAE,CAAC,EAAE,aAAa;AAAA,EACzD,UAAU,MAAM,QAAQ,CAAC;AAAA,EACzB,YAAY;AAAA,EACZ,cAAc,MAAM,QAAQ,CAAC;AAAA,EAC7B,eAAe;AACjB,EAAE;AAEF,MAAM,WAAWF,SAAAA,OAAOC,SAAAA,GAAG,EAAE;AAAA,EAC3B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,KAAK;AACP,CAAC;AAED,MAAM,cAAcD,SAAAA,OAAOC,SAAAA,GAAG,EAA0C,CAAC,EAAE,SAAS,eAAe;AAAA,EACjG,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO,UAAU,YAAY;AAAA,EAC7B,U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AAA;AAAA,MAAAG,2BAAAA,IAACF,SAAAA,YAAA,EAAW,SAAQ,MAAK,IAAI,EAAE,IAAI,EAAA,GAAK,UAAA,8BAAA,CAExC;AAAA,MACAG,2BAAAA,KAACH,SAAAA,YAAA,EAAW,SAAQ,SAAQ,OAAM,kBAAiB,IAAI,EAAE,IAAI,EAAA,GAAK,UAAA;AAAA,QAAA;AAAA,QAC9CE,2BAAAA,IAAC,UAAK,UAAA,0CAAA,CAAiD;AAAA,MAAA,EAAA,CAC3E;AAAA,IAAA,GACF;AAAA,IAEC,YAAY,IAAI,CAAC,EAAE,MAAM,QAAAG,QAAAA,MACxBH,+BAAC,mBAAA,EAA6B,MAAY,QAAQG,QAAAA,GAA1B,IAAkC,CAC3D;AAAA,EAAA,GACH;AAEJ;AAKA,MAAM,OAAO;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA,IACV,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM,CAAC,UAAU;AACnB;AAKO,MAAM,YAAmB,CAAA;;;"}
1
+ {"version":3,"file":"Colors.stories.js","sources":["../../../../../src/stories/design/Colors.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite';\nimport { useState } from 'react';\n\nimport { Box, Typography, useTheme, styled } from '@mui/material';\n\n//\n//\n\nconst ColorSwatchContainer = styled(Box)({\n display: 'flex',\n flexDirection: 'column',\n gap: '32px',\n padding: '24px',\n maxWidth: '1200px',\n});\n\nconst ColorGroupTitle = styled(Typography)(({ theme }) => ({\n fontSize: theme.spacing(3),\n fontWeight: 600,\n marginBottom: theme.spacing(2),\n textTransform: 'capitalize',\n}));\n\nconst ColorRow = styled(Box)({\n display: 'flex',\n flexWrap: 'wrap',\n gap: '12px',\n});\n\nconst ColorSwatch = styled(Box)<{ bgColor: string; isLight?: boolean }>(({ bgColor, isLight }) => ({\n width: '100px',\n height: '80px',\n backgroundColor: bgColor,\n borderRadius: '8px',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'flex-end',\n padding: '8px',\n border: '1px solid rgba(0, 0, 0, 0.1)',\n color: isLight ? '#0E0217' : '#FFFFFF',\n fontSize: '11px',\n fontFamily: 'monospace',\n cursor: 'pointer',\n transition: 'transform 0.15s ease, box-shadow 0.15s ease',\n '&:hover': {\n transform: 'scale(1.05)',\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)',\n },\n '&:active': {\n transform: 'scale(0.98)',\n },\n}));\n\nconst SwatchLabel = styled('span')({\n fontWeight: 600,\n marginBottom: '2px',\n});\n\nconst SwatchHex = styled('span')({\n opacity: 0.8,\n fontSize: '10px',\n});\n\n//\n//\n\ninterface ColorScale {\n [key: string]: string;\n}\n\nconst isLightColor = (color: string): boolean => {\n let r: number, g: number, b: number;\n\n // Handle rgba format: rgba(255, 255, 255, 0.8)\n if (color.startsWith('rgba')) {\n const match = color.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/);\n\n if (match) {\n r = parseInt(match[1], 10);\n g = parseInt(match[2], 10);\n b = parseInt(match[3], 10);\n } else {\n return true; // Default to light if parsing fails\n }\n } else {\n // Handle hex format: #FFFFFF\n const hex = color.replace('#', '');\n r = parseInt(hex.substring(0, 2), 16);\n g = parseInt(hex.substring(2, 4), 16);\n b = parseInt(hex.substring(4, 6), 16);\n }\n\n const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\n\n return luminance > 0.5;\n};\n\nconst ColorScaleDisplay = ({ name, colors }: { name: string; colors: ColorScale }) => {\n const [copiedKey, setCopiedKey] = useState<string | null>(null);\n\n const handleCopy = (shade: string, hex: string) => {\n navigator.clipboard.writeText(hex);\n setCopiedKey(shade);\n setTimeout(() => setCopiedKey(null), 1500);\n };\n\n return (\n <Box>\n <ColorGroupTitle>{name}</ColorGroupTitle>\n <ColorRow>\n {Object.entries(colors).map(([shade, hex]) => (\n <ColorSwatch\n key={shade}\n bgColor={hex}\n isLight={isLightColor(hex)}\n onClick={() => handleCopy(shade, hex)}\n title={`Click to copy ${hex}`}\n >\n <SwatchLabel>{copiedKey === shade ? 'Copied!' : shade}</SwatchLabel>\n <SwatchHex>{hex}</SwatchHex>\n </ColorSwatch>\n ))}\n </ColorRow>\n </Box>\n );\n};\n\n//\n//\n\nconst ColorsDisplay = () => {\n const theme = useTheme();\n const { colors } = theme.palette;\n\n const colorScales = [\n { name: 'Primary', colors: colors.primary },\n { name: 'Secondary', colors: colors.secondary },\n { name: 'Neutral', colors: colors.neutral },\n { name: 'Green', colors: colors.green },\n { name: 'Blue', colors: colors.blue },\n { name: 'Yellow', colors: colors.yellow },\n { name: 'Orange', colors: colors.orange },\n { name: 'Red', colors: colors.red },\n { name: 'Base', colors: colors.base },\n ];\n\n return (\n <ColorSwatchContainer>\n <Box>\n <Typography variant=\"h4\" sx={{ mb: 1 }}>\n Parcel Design System Colors\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\" sx={{ mb: 2 }}>\n <strong>How to use in React:</strong> <code>theme.palette.colors.&#123;name&#125;[shade]</code>\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\" sx={{ mb: 4 }}>\n <strong>How to use in CSS:</strong> <code>var(--zid-color-&#123;name&#125;-&#123;shade&#125;)</code>\n </Typography>\n </Box>\n\n {colorScales.map(({ name, colors }) => (\n <ColorScaleDisplay key={name} name={name} colors={colors} />\n ))}\n </ColorSwatchContainer>\n );\n};\n\n//\n//\n\nconst meta = {\n title: 'Design System/Colors',\n component: ColorsDisplay,\n parameters: {\n layout: 'fullscreen',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof ColorsDisplay>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const AllColors: Story = {};\n"],"names":["styled","Box","Typography","useState","jsx","jsxs","useTheme","colors"],"mappings":";;;;;AAQA,MAAM,uBAAuBA,SAAAA,OAAOC,SAAAA,GAAG,EAAE;AAAA,EACvC,SAAS;AAAA,EACT,eAAe;AAAA,EACf,KAAK;AAAA,EACL,SAAS;AAAA,EACT,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