@ztwoint/z-ui 0.2.0-beta.0 → 0.2.0-beta.2

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 (360) hide show
  1. package/dist/components/avatar/avatar.d.ts +3 -3
  2. package/dist/components/badge/badge.d.ts +1 -1
  3. package/dist/components/primitives/table-card/table-card.js +30 -22
  4. package/dist/components/table/components/cell/avatar-cell.d.ts +2 -2
  5. package/dist/components/table/components/cell/avatar-cell.js +13 -5
  6. package/dist/components/table/table-provider.js +11 -3
  7. package/dist/css/config/config.css +1 -0
  8. package/dist/css/styles/tailwind.css +1 -1
  9. package/dist/index.d.ts +5 -4
  10. package/dist/index.js +395 -362
  11. package/dist/lib/theme.hook.js +29 -26
  12. package/dist/types/components/avatar/avatar.d.ts +3 -3
  13. package/dist/types/components/badge/badge.d.ts +1 -1
  14. package/dist/types/components/table/components/cell/avatar-cell.d.ts +2 -2
  15. package/dist/types/index.d.ts +5 -4
  16. package/dist/types/v2/assets/icon.d.ts +6 -0
  17. package/dist/types/v2/assets/icon.type.d.ts +7 -0
  18. package/dist/types/v2/assets/icons/align-center.d.ts +2 -0
  19. package/dist/types/v2/assets/icons/align-left.d.ts +2 -0
  20. package/dist/types/v2/assets/icons/align-right.d.ts +2 -0
  21. package/dist/types/v2/assets/icons/arrow-down.d.ts +2 -0
  22. package/dist/types/v2/assets/icons/arrow-left.d.ts +2 -0
  23. package/dist/types/v2/assets/icons/arrow-right.d.ts +2 -0
  24. package/dist/types/v2/assets/icons/arrow-up.d.ts +2 -0
  25. package/dist/types/v2/assets/icons/award.d.ts +2 -0
  26. package/dist/types/v2/assets/icons/bell.d.ts +2 -0
  27. package/dist/types/v2/assets/icons/calendar.d.ts +2 -0
  28. package/dist/types/v2/assets/icons/caret-down.d.ts +2 -0
  29. package/dist/types/v2/assets/icons/caret-left.d.ts +2 -0
  30. package/dist/types/v2/assets/icons/caret-right.d.ts +2 -0
  31. package/dist/types/v2/assets/icons/caret-up.d.ts +2 -0
  32. package/dist/types/v2/assets/icons/chart.d.ts +2 -0
  33. package/dist/types/v2/assets/icons/check.d.ts +2 -0
  34. package/dist/types/v2/assets/icons/checkbox-checked.d.ts +2 -0
  35. package/dist/types/v2/assets/icons/checkbox-unchecked.d.ts +2 -0
  36. package/dist/types/v2/assets/icons/chevron-down.d.ts +2 -0
  37. package/dist/types/v2/assets/icons/chevron-left.d.ts +2 -0
  38. package/dist/types/v2/assets/icons/chevron-right.d.ts +2 -0
  39. package/dist/types/v2/assets/icons/chevron-up.d.ts +2 -0
  40. package/dist/types/v2/assets/icons/circle-check-filled.d.ts +3 -0
  41. package/dist/types/v2/assets/icons/circle-check.d.ts +2 -0
  42. package/dist/types/v2/assets/icons/circle-info.d.ts +2 -0
  43. package/dist/types/v2/assets/icons/circle-minus.d.ts +2 -0
  44. package/dist/types/v2/assets/icons/circle-plus.d.ts +2 -0
  45. package/dist/types/v2/assets/icons/circle-question.d.ts +2 -0
  46. package/dist/types/v2/assets/icons/circle-warning.d.ts +2 -0
  47. package/dist/types/v2/assets/icons/circle-xmark.d.ts +2 -0
  48. package/dist/types/v2/assets/icons/clipboard.d.ts +2 -0
  49. package/dist/types/v2/assets/icons/clock.d.ts +2 -0
  50. package/dist/types/v2/assets/icons/dots.d.ts +2 -0
  51. package/dist/types/v2/assets/icons/download.d.ts +2 -0
  52. package/dist/types/v2/assets/icons/edit.d.ts +2 -0
  53. package/dist/types/v2/assets/icons/envelope.d.ts +2 -0
  54. package/dist/types/v2/assets/icons/expand.d.ts +2 -0
  55. package/dist/types/v2/assets/icons/export.d.ts +2 -0
  56. package/dist/types/v2/assets/icons/external-link.d.ts +2 -0
  57. package/dist/types/v2/assets/icons/eye-crossed.d.ts +2 -0
  58. package/dist/types/v2/assets/icons/eye.d.ts +2 -0
  59. package/dist/types/v2/assets/icons/file.d.ts +2 -0
  60. package/dist/types/v2/assets/icons/filter.d.ts +2 -0
  61. package/dist/types/v2/assets/icons/folder-open.d.ts +2 -0
  62. package/dist/types/v2/assets/icons/folder.d.ts +2 -0
  63. package/dist/types/v2/assets/icons/full-screen.d.ts +2 -0
  64. package/dist/types/v2/assets/icons/grid.d.ts +2 -0
  65. package/dist/types/v2/assets/icons/import.d.ts +2 -0
  66. package/dist/types/v2/assets/icons/index.d.ts +114 -0
  67. package/dist/types/v2/assets/icons/layers.d.ts +2 -0
  68. package/dist/types/v2/assets/icons/location.d.ts +2 -0
  69. package/dist/types/v2/assets/icons/lock.d.ts +2 -0
  70. package/dist/types/v2/assets/icons/magnifier.d.ts +2 -0
  71. package/dist/types/v2/assets/icons/map.d.ts +2 -0
  72. package/dist/types/v2/assets/icons/maximize.d.ts +2 -0
  73. package/dist/types/v2/assets/icons/media-next.d.ts +2 -0
  74. package/dist/types/v2/assets/icons/media-pause.d.ts +2 -0
  75. package/dist/types/v2/assets/icons/media-play.d.ts +2 -0
  76. package/dist/types/v2/assets/icons/media-previous.d.ts +2 -0
  77. package/dist/types/v2/assets/icons/media-stop.d.ts +2 -0
  78. package/dist/types/v2/assets/icons/menu.d.ts +2 -0
  79. package/dist/types/v2/assets/icons/minimize.d.ts +2 -0
  80. package/dist/types/v2/assets/icons/minus.d.ts +2 -0
  81. package/dist/types/v2/assets/icons/money.d.ts +2 -0
  82. package/dist/types/v2/assets/icons/more.d.ts +2 -0
  83. package/dist/types/v2/assets/icons/msg.d.ts +2 -0
  84. package/dist/types/v2/assets/icons/notification.d.ts +2 -0
  85. package/dist/types/v2/assets/icons/percentage.d.ts +2 -0
  86. package/dist/types/v2/assets/icons/pin.d.ts +2 -0
  87. package/dist/types/v2/assets/icons/plus.d.ts +2 -0
  88. package/dist/types/v2/assets/icons/radio-checked.d.ts +2 -0
  89. package/dist/types/v2/assets/icons/radio-unchecked.d.ts +2 -0
  90. package/dist/types/v2/assets/icons/reduce.d.ts +2 -0
  91. package/dist/types/v2/assets/icons/refresh.d.ts +2 -0
  92. package/dist/types/v2/assets/icons/settings.d.ts +2 -0
  93. package/dist/types/v2/assets/icons/share.d.ts +2 -0
  94. package/dist/types/v2/assets/icons/slash.d.ts +2 -0
  95. package/dist/types/v2/assets/icons/sort.d.ts +2 -0
  96. package/dist/types/v2/assets/icons/star-filled.d.ts +2 -0
  97. package/dist/types/v2/assets/icons/timer.d.ts +2 -0
  98. package/dist/types/v2/assets/icons/trash.d.ts +2 -0
  99. package/dist/types/v2/assets/icons/unlock.d.ts +2 -0
  100. package/dist/types/v2/assets/icons/upload.d.ts +2 -0
  101. package/dist/types/v2/assets/icons/user.d.ts +2 -0
  102. package/dist/types/v2/assets/icons/users.d.ts +2 -0
  103. package/dist/types/v2/assets/icons/xmark.d.ts +2 -0
  104. package/dist/types/v2/assets/index.d.ts +2 -0
  105. package/dist/types/v2/atoms/actions/breadcrumb-link.d.ts +6 -0
  106. package/dist/types/v2/atoms/actions/button.d.ts +13 -0
  107. package/dist/types/v2/atoms/actions/index.d.ts +3 -0
  108. package/dist/types/v2/atoms/actions/tab-button.d.ts +10 -0
  109. package/dist/types/v2/atoms/actions/tooltip.d.ts +8 -0
  110. package/dist/types/v2/atoms/index.d.ts +3 -0
  111. package/dist/types/v2/atoms/indicators/badge.d.ts +14 -0
  112. package/dist/types/v2/atoms/indicators/featured-icon.d.ts +12 -0
  113. package/dist/types/v2/atoms/indicators/index.d.ts +4 -0
  114. package/dist/types/v2/atoms/indicators/number-badge.d.ts +9 -0
  115. package/dist/types/v2/atoms/indicators/stepper.d.ts +9 -0
  116. package/dist/types/v2/atoms/inputs/index.d.ts +2 -0
  117. package/dist/types/v2/atoms/inputs/input.d.ts +16 -0
  118. package/dist/types/v2/atoms/inputs/label.d.ts +18 -0
  119. package/dist/types/v2/index.d.ts +4 -0
  120. package/dist/types/v2/molecules/actions/breadcrumb-group.d.ts +6 -0
  121. package/dist/types/v2/molecules/actions/index.d.ts +1 -0
  122. package/dist/types/v2/molecules/actions/tab-group.d.ts +6 -0
  123. package/dist/types/v2/molecules/index.d.ts +2 -0
  124. package/dist/types/v2/molecules/kpi-card/index.d.ts +2 -0
  125. package/dist/types/v2/molecules/kpi-card/kpi-card.d.ts +3 -0
  126. package/dist/types/v2/molecules/kpi-card/kpi-card.type.d.ts +20 -0
  127. package/dist/types/v2/organisms/field/field-error.d.ts +6 -0
  128. package/dist/types/v2/organisms/field/field-group.d.ts +2 -0
  129. package/dist/types/v2/organisms/field/field-set.d.ts +2 -0
  130. package/dist/types/v2/organisms/field/field.d.ts +12 -0
  131. package/dist/types/v2/organisms/index.d.ts +3 -0
  132. package/dist/types/v2/organisms/kpi-card-group.d.ts +7 -0
  133. package/dist/types/v2/organisms/sidebar/z2-sidebar-header.d.ts +0 -0
  134. package/dist/types/v2/organisms/sidebar/z2-sidebar.d.ts +0 -0
  135. package/dist/types/v2/organisms/tab-bar.d.ts +7 -0
  136. package/dist/types/v2/organisms/topbar.d.ts +6 -0
  137. package/dist/v2/assets/icon.d.ts +6 -0
  138. package/dist/v2/assets/icon.js +191 -0
  139. package/dist/v2/assets/icon.type.d.ts +7 -0
  140. package/dist/v2/assets/icons/align-center.d.ts +2 -0
  141. package/dist/v2/assets/icons/align-center.js +23 -0
  142. package/dist/v2/assets/icons/align-left.d.ts +2 -0
  143. package/dist/v2/assets/icons/align-left.js +23 -0
  144. package/dist/v2/assets/icons/align-right.d.ts +2 -0
  145. package/dist/v2/assets/icons/align-right.js +23 -0
  146. package/dist/v2/assets/icons/arrow-down.d.ts +2 -0
  147. package/dist/v2/assets/icons/arrow-down.js +29 -0
  148. package/dist/v2/assets/icons/arrow-left.d.ts +2 -0
  149. package/dist/v2/assets/icons/arrow-left.js +29 -0
  150. package/dist/v2/assets/icons/arrow-right.d.ts +2 -0
  151. package/dist/v2/assets/icons/arrow-right.js +29 -0
  152. package/dist/v2/assets/icons/arrow-up.d.ts +2 -0
  153. package/dist/v2/assets/icons/arrow-up.js +29 -0
  154. package/dist/v2/assets/icons/award.d.ts +2 -0
  155. package/dist/v2/assets/icons/award.js +23 -0
  156. package/dist/v2/assets/icons/bell.d.ts +2 -0
  157. package/dist/v2/assets/icons/bell.js +29 -0
  158. package/dist/v2/assets/icons/calendar.d.ts +2 -0
  159. package/dist/v2/assets/icons/calendar.js +29 -0
  160. package/dist/v2/assets/icons/caret-down.d.ts +2 -0
  161. package/dist/v2/assets/icons/caret-down.js +23 -0
  162. package/dist/v2/assets/icons/caret-left.d.ts +2 -0
  163. package/dist/v2/assets/icons/caret-left.js +23 -0
  164. package/dist/v2/assets/icons/caret-right.d.ts +2 -0
  165. package/dist/v2/assets/icons/caret-right.js +23 -0
  166. package/dist/v2/assets/icons/caret-up.d.ts +2 -0
  167. package/dist/v2/assets/icons/caret-up.js +23 -0
  168. package/dist/v2/assets/icons/chart.d.ts +2 -0
  169. package/dist/v2/assets/icons/chart.js +23 -0
  170. package/dist/v2/assets/icons/check.d.ts +2 -0
  171. package/dist/v2/assets/icons/check.js +29 -0
  172. package/dist/v2/assets/icons/checkbox-checked.d.ts +2 -0
  173. package/dist/v2/assets/icons/checkbox-checked.js +26 -0
  174. package/dist/v2/assets/icons/checkbox-unchecked.d.ts +2 -0
  175. package/dist/v2/assets/icons/checkbox-unchecked.js +23 -0
  176. package/dist/v2/assets/icons/chevron-down.d.ts +2 -0
  177. package/dist/v2/assets/icons/chevron-down.js +29 -0
  178. package/dist/v2/assets/icons/chevron-left.d.ts +2 -0
  179. package/dist/v2/assets/icons/chevron-left.js +29 -0
  180. package/dist/v2/assets/icons/chevron-right.d.ts +2 -0
  181. package/dist/v2/assets/icons/chevron-right.js +29 -0
  182. package/dist/v2/assets/icons/chevron-up.d.ts +2 -0
  183. package/dist/v2/assets/icons/chevron-up.js +29 -0
  184. package/dist/v2/assets/icons/circle-check-filled.d.ts +3 -0
  185. package/dist/v2/assets/icons/circle-check-filled.js +34 -0
  186. package/dist/v2/assets/icons/circle-check.d.ts +2 -0
  187. package/dist/v2/assets/icons/circle-check.js +36 -0
  188. package/dist/v2/assets/icons/circle-info.d.ts +2 -0
  189. package/dist/v2/assets/icons/circle-info.js +31 -0
  190. package/dist/v2/assets/icons/circle-minus.d.ts +2 -0
  191. package/dist/v2/assets/icons/circle-minus.js +26 -0
  192. package/dist/v2/assets/icons/circle-plus.d.ts +2 -0
  193. package/dist/v2/assets/icons/circle-plus.js +26 -0
  194. package/dist/v2/assets/icons/circle-question.d.ts +2 -0
  195. package/dist/v2/assets/icons/circle-question.js +31 -0
  196. package/dist/v2/assets/icons/circle-warning.d.ts +2 -0
  197. package/dist/v2/assets/icons/circle-warning.js +26 -0
  198. package/dist/v2/assets/icons/circle-xmark.d.ts +2 -0
  199. package/dist/v2/assets/icons/circle-xmark.js +26 -0
  200. package/dist/v2/assets/icons/clipboard.d.ts +2 -0
  201. package/dist/v2/assets/icons/clipboard.js +29 -0
  202. package/dist/v2/assets/icons/clock.d.ts +2 -0
  203. package/dist/v2/assets/icons/clock.js +26 -0
  204. package/dist/v2/assets/icons/dots.d.ts +2 -0
  205. package/dist/v2/assets/icons/dots.js +29 -0
  206. package/dist/v2/assets/icons/download.d.ts +2 -0
  207. package/dist/v2/assets/icons/download.js +23 -0
  208. package/dist/v2/assets/icons/edit.d.ts +2 -0
  209. package/dist/v2/assets/icons/edit.js +29 -0
  210. package/dist/v2/assets/icons/envelope.d.ts +2 -0
  211. package/dist/v2/assets/icons/envelope.js +29 -0
  212. package/dist/v2/assets/icons/expand.d.ts +2 -0
  213. package/dist/v2/assets/icons/expand.js +29 -0
  214. package/dist/v2/assets/icons/export.d.ts +2 -0
  215. package/dist/v2/assets/icons/export.js +23 -0
  216. package/dist/v2/assets/icons/external-link.d.ts +2 -0
  217. package/dist/v2/assets/icons/external-link.js +29 -0
  218. package/dist/v2/assets/icons/eye-crossed.d.ts +2 -0
  219. package/dist/v2/assets/icons/eye-crossed.js +42 -0
  220. package/dist/v2/assets/icons/eye.d.ts +2 -0
  221. package/dist/v2/assets/icons/eye.js +26 -0
  222. package/dist/v2/assets/icons/file.d.ts +2 -0
  223. package/dist/v2/assets/icons/file.js +29 -0
  224. package/dist/v2/assets/icons/filter.d.ts +2 -0
  225. package/dist/v2/assets/icons/filter.js +23 -0
  226. package/dist/v2/assets/icons/folder-open.d.ts +2 -0
  227. package/dist/v2/assets/icons/folder-open.js +29 -0
  228. package/dist/v2/assets/icons/folder.d.ts +2 -0
  229. package/dist/v2/assets/icons/folder.js +29 -0
  230. package/dist/v2/assets/icons/full-screen.d.ts +2 -0
  231. package/dist/v2/assets/icons/full-screen.js +29 -0
  232. package/dist/v2/assets/icons/grid.d.ts +2 -0
  233. package/dist/v2/assets/icons/grid.js +23 -0
  234. package/dist/v2/assets/icons/import.d.ts +2 -0
  235. package/dist/v2/assets/icons/import.js +23 -0
  236. package/dist/v2/assets/icons/index.d.ts +114 -0
  237. package/dist/v2/assets/icons/layers.d.ts +2 -0
  238. package/dist/v2/assets/icons/layers.js +31 -0
  239. package/dist/v2/assets/icons/location.d.ts +2 -0
  240. package/dist/v2/assets/icons/location.js +29 -0
  241. package/dist/v2/assets/icons/lock.d.ts +2 -0
  242. package/dist/v2/assets/icons/lock.js +26 -0
  243. package/dist/v2/assets/icons/magnifier.d.ts +2 -0
  244. package/dist/v2/assets/icons/magnifier.js +26 -0
  245. package/dist/v2/assets/icons/map.d.ts +2 -0
  246. package/dist/v2/assets/icons/map.js +29 -0
  247. package/dist/v2/assets/icons/maximize.d.ts +2 -0
  248. package/dist/v2/assets/icons/maximize.js +23 -0
  249. package/dist/v2/assets/icons/media-next.d.ts +2 -0
  250. package/dist/v2/assets/icons/media-next.js +23 -0
  251. package/dist/v2/assets/icons/media-pause.d.ts +2 -0
  252. package/dist/v2/assets/icons/media-pause.js +23 -0
  253. package/dist/v2/assets/icons/media-play.d.ts +2 -0
  254. package/dist/v2/assets/icons/media-play.js +23 -0
  255. package/dist/v2/assets/icons/media-previous.d.ts +2 -0
  256. package/dist/v2/assets/icons/media-previous.js +23 -0
  257. package/dist/v2/assets/icons/media-stop.d.ts +2 -0
  258. package/dist/v2/assets/icons/media-stop.js +23 -0
  259. package/dist/v2/assets/icons/menu.d.ts +2 -0
  260. package/dist/v2/assets/icons/menu.js +23 -0
  261. package/dist/v2/assets/icons/minimize.d.ts +2 -0
  262. package/dist/v2/assets/icons/minimize.js +23 -0
  263. package/dist/v2/assets/icons/minus.d.ts +2 -0
  264. package/dist/v2/assets/icons/minus.js +23 -0
  265. package/dist/v2/assets/icons/money.d.ts +2 -0
  266. package/dist/v2/assets/icons/money.js +26 -0
  267. package/dist/v2/assets/icons/more.d.ts +2 -0
  268. package/dist/v2/assets/icons/more.js +27 -0
  269. package/dist/v2/assets/icons/msg.d.ts +2 -0
  270. package/dist/v2/assets/icons/msg.js +29 -0
  271. package/dist/v2/assets/icons/notification.d.ts +2 -0
  272. package/dist/v2/assets/icons/notification.js +29 -0
  273. package/dist/v2/assets/icons/percentage.d.ts +2 -0
  274. package/dist/v2/assets/icons/percentage.js +63 -0
  275. package/dist/v2/assets/icons/pin.d.ts +2 -0
  276. package/dist/v2/assets/icons/pin.js +29 -0
  277. package/dist/v2/assets/icons/plus.d.ts +2 -0
  278. package/dist/v2/assets/icons/plus.js +23 -0
  279. package/dist/v2/assets/icons/radio-checked.d.ts +2 -0
  280. package/dist/v2/assets/icons/radio-checked.js +26 -0
  281. package/dist/v2/assets/icons/radio-unchecked.d.ts +2 -0
  282. package/dist/v2/assets/icons/radio-unchecked.js +23 -0
  283. package/dist/v2/assets/icons/reduce.d.ts +2 -0
  284. package/dist/v2/assets/icons/reduce.js +23 -0
  285. package/dist/v2/assets/icons/refresh.d.ts +2 -0
  286. package/dist/v2/assets/icons/refresh.js +38 -0
  287. package/dist/v2/assets/icons/settings.d.ts +2 -0
  288. package/dist/v2/assets/icons/settings.js +34 -0
  289. package/dist/v2/assets/icons/share.d.ts +2 -0
  290. package/dist/v2/assets/icons/share.js +29 -0
  291. package/dist/v2/assets/icons/slash.d.ts +2 -0
  292. package/dist/v2/assets/icons/slash.js +32 -0
  293. package/dist/v2/assets/icons/sort.d.ts +2 -0
  294. package/dist/v2/assets/icons/sort.js +32 -0
  295. package/dist/v2/assets/icons/star-filled.d.ts +2 -0
  296. package/dist/v2/assets/icons/star-filled.js +34 -0
  297. package/dist/v2/assets/icons/timer.d.ts +2 -0
  298. package/dist/v2/assets/icons/timer.js +27 -0
  299. package/dist/v2/assets/icons/trash.d.ts +2 -0
  300. package/dist/v2/assets/icons/trash.js +29 -0
  301. package/dist/v2/assets/icons/unlock.d.ts +2 -0
  302. package/dist/v2/assets/icons/unlock.js +26 -0
  303. package/dist/v2/assets/icons/upload.d.ts +2 -0
  304. package/dist/v2/assets/icons/upload.js +23 -0
  305. package/dist/v2/assets/icons/user.d.ts +2 -0
  306. package/dist/v2/assets/icons/user.js +26 -0
  307. package/dist/v2/assets/icons/users.d.ts +2 -0
  308. package/dist/v2/assets/icons/users.js +27 -0
  309. package/dist/v2/assets/icons/xmark.d.ts +2 -0
  310. package/dist/v2/assets/icons/xmark.js +29 -0
  311. package/dist/v2/assets/index.d.ts +2 -0
  312. package/dist/v2/atoms/actions/breadcrumb-link.d.ts +6 -0
  313. package/dist/v2/atoms/actions/breadcrumb-link.js +58 -0
  314. package/dist/v2/atoms/actions/button.d.ts +13 -0
  315. package/dist/v2/atoms/actions/button.js +58 -0
  316. package/dist/v2/atoms/actions/index.d.ts +3 -0
  317. package/dist/v2/atoms/actions/tab-button.d.ts +10 -0
  318. package/dist/v2/atoms/actions/tab-button.js +52 -0
  319. package/dist/v2/atoms/actions/tooltip.d.ts +8 -0
  320. package/dist/v2/atoms/actions/tooltip.js +22 -0
  321. package/dist/v2/atoms/index.d.ts +3 -0
  322. package/dist/v2/atoms/indicators/badge.d.ts +14 -0
  323. package/dist/v2/atoms/indicators/badge.js +99 -0
  324. package/dist/v2/atoms/indicators/featured-icon.d.ts +12 -0
  325. package/dist/v2/atoms/indicators/featured-icon.js +110 -0
  326. package/dist/v2/atoms/indicators/index.d.ts +4 -0
  327. package/dist/v2/atoms/indicators/number-badge.d.ts +9 -0
  328. package/dist/v2/atoms/indicators/number-badge.js +42 -0
  329. package/dist/v2/atoms/indicators/stepper.d.ts +9 -0
  330. package/dist/v2/atoms/indicators/stepper.js +86 -0
  331. package/dist/v2/atoms/inputs/index.d.ts +2 -0
  332. package/dist/v2/atoms/inputs/input.d.ts +16 -0
  333. package/dist/v2/atoms/inputs/input.js +94 -0
  334. package/dist/v2/atoms/inputs/label.d.ts +18 -0
  335. package/dist/v2/atoms/inputs/label.js +66 -0
  336. package/dist/v2/index.d.ts +4 -0
  337. package/dist/v2/molecules/actions/breadcrumb-group.d.ts +6 -0
  338. package/dist/v2/molecules/actions/breadcrumb-group.js +6 -0
  339. package/dist/v2/molecules/actions/index.d.ts +1 -0
  340. package/dist/v2/molecules/actions/tab-group.d.ts +6 -0
  341. package/dist/v2/molecules/actions/tab-group.js +16 -0
  342. package/dist/v2/molecules/index.d.ts +2 -0
  343. package/dist/v2/molecules/kpi-card/index.d.ts +2 -0
  344. package/dist/v2/molecules/kpi-card/kpi-card.d.ts +3 -0
  345. package/dist/v2/molecules/kpi-card/kpi-card.js +82 -0
  346. package/dist/v2/molecules/kpi-card/kpi-card.type.d.ts +20 -0
  347. package/dist/v2/organisms/field/field-error.d.ts +6 -0
  348. package/dist/v2/organisms/field/field-group.d.ts +2 -0
  349. package/dist/v2/organisms/field/field-set.d.ts +2 -0
  350. package/dist/v2/organisms/field/field.d.ts +12 -0
  351. package/dist/v2/organisms/index.d.ts +3 -0
  352. package/dist/v2/organisms/kpi-card-group.d.ts +7 -0
  353. package/dist/v2/organisms/kpi-card-group.js +19 -0
  354. package/dist/v2/organisms/sidebar/z2-sidebar-header.d.ts +0 -0
  355. package/dist/v2/organisms/sidebar/z2-sidebar.d.ts +0 -0
  356. package/dist/v2/organisms/tab-bar.d.ts +7 -0
  357. package/dist/v2/organisms/tab-bar.js +11 -0
  358. package/dist/v2/organisms/topbar.d.ts +6 -0
  359. package/dist/v2/organisms/topbar.js +20 -0
  360. package/package.json +1 -1
@@ -0,0 +1,110 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as t } from "../../../lib/utils.js";
3
+ import { cva as c } from "class-variance-authority";
4
+ const u = c("flex items-center justify-center rounded-lg", {
5
+ variants: {
6
+ color: {
7
+ neutral: "",
8
+ gray: "",
9
+ success: "",
10
+ warning: "",
11
+ error: "",
12
+ brand: ""
13
+ },
14
+ size: {
15
+ small: "size-5 p-1",
16
+ medium: "size-6 p-1",
17
+ large: "size-7 p-1.5"
18
+ },
19
+ type: {
20
+ strong: "",
21
+ subtle: ""
22
+ }
23
+ },
24
+ compoundVariants: [
25
+ // Strong variants
26
+ {
27
+ color: "neutral",
28
+ type: "strong",
29
+ class: "bg-neutral-100 text-neutral-800"
30
+ },
31
+ {
32
+ color: "gray",
33
+ type: "strong",
34
+ class: "bg-neutral-800 text-neutral-50"
35
+ },
36
+ {
37
+ color: "success",
38
+ type: "strong",
39
+ class: "bg-emerald-700 text-emerald-50"
40
+ },
41
+ {
42
+ color: "warning",
43
+ type: "strong",
44
+ class: "bg-amber-700 text-amber-50"
45
+ },
46
+ {
47
+ color: "error",
48
+ type: "strong",
49
+ class: "bg-rose-700 text-rose-50"
50
+ },
51
+ {
52
+ color: "brand",
53
+ type: "strong",
54
+ class: "bg-blue-700 text-blue-50"
55
+ },
56
+ // Subtle variants
57
+ {
58
+ color: "neutral",
59
+ type: "subtle",
60
+ class: "bg-neutral-50 text-neutral-600"
61
+ },
62
+ {
63
+ color: "gray",
64
+ type: "subtle",
65
+ class: "bg-neutral-50 text-neutral-800"
66
+ },
67
+ {
68
+ color: "success",
69
+ type: "subtle",
70
+ class: "bg-emerald-50 text-emerald-700"
71
+ },
72
+ {
73
+ color: "warning",
74
+ type: "subtle",
75
+ class: "bg-amber-50 text-amber-700"
76
+ },
77
+ {
78
+ color: "error",
79
+ type: "subtle",
80
+ class: "bg-rose-50 text-rose-700"
81
+ },
82
+ {
83
+ color: "brand",
84
+ type: "subtle",
85
+ class: "bg-blue-50 text-blue-700"
86
+ }
87
+ ],
88
+ defaultVariants: {
89
+ color: "neutral",
90
+ size: "medium",
91
+ type: "strong"
92
+ }
93
+ });
94
+ function p({ className: s, color: l, size: e, type: a, icon: o, ...n }) {
95
+ return /* @__PURE__ */ r("span", { className: t(u({ color: l, size: e, type: a }), s), ...n, children: /* @__PURE__ */ r(
96
+ "span",
97
+ {
98
+ className: t(
99
+ "[&>svg]:aspect-square",
100
+ e === "small" && "[&>svg]:size-3",
101
+ e === "medium" && "[&>svg]:size-4",
102
+ e === "large" && "[&>svg]:size-4"
103
+ ),
104
+ children: o
105
+ }
106
+ ) });
107
+ }
108
+ export {
109
+ p as Z2FeaturedIcon
110
+ };
@@ -0,0 +1,4 @@
1
+ export * from './badge';
2
+ export * from './number-badge';
3
+ export * from './featured-icon';
4
+ export * from './stepper';
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const numberBadgeVariants: (props?: ({
4
+ color?: "success" | "warning" | "neutral" | "brand" | "muted" | "error" | null | undefined;
5
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
6
+ declare function NumberBadge({ className, color, label, ...props }: Omit<React.ComponentProps<'span'>, 'children'> & VariantProps<typeof numberBadgeVariants> & {
7
+ label?: string;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export { NumberBadge, numberBadgeVariants };
@@ -0,0 +1,42 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { cva as o } from "class-variance-authority";
3
+ import "react";
4
+ import { cn as l } from "../../../lib/utils.js";
5
+ const m = o(
6
+ "inline-flex gap-px px-1 rounded-xs items-center text-xs font-normal",
7
+ {
8
+ variants: {
9
+ color: {
10
+ neutral: "bg-neutral-100 text-neutral-600",
11
+ muted: "bg-neutral-100 text-neutral-400",
12
+ brand: "bg-blue-50 text-blue-700",
13
+ success: "bg-emerald-50 text-emerald-700",
14
+ warning: "bg-amber-50 text-amber-700",
15
+ error: "bg-rose-50 text-rose-700"
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ color: "neutral"
20
+ }
21
+ }
22
+ );
23
+ function i({
24
+ className: e,
25
+ color: r,
26
+ label: t,
27
+ ...a
28
+ }) {
29
+ return /* @__PURE__ */ n(
30
+ "span",
31
+ {
32
+ "data-slot": "number-badge",
33
+ className: l(m({ color: r }), e),
34
+ ...a,
35
+ children: t
36
+ }
37
+ );
38
+ }
39
+ export {
40
+ i as NumberBadge,
41
+ m as numberBadgeVariants
42
+ };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface StepperProps extends Omit<React.ComponentProps<'div'>, 'children'> {
3
+ label?: string;
4
+ progress?: 'incomplete' | 'active' | 'completed';
5
+ location?: 'default' | 'last';
6
+ disabled?: boolean;
7
+ }
8
+ declare function Stepper({ className, label, progress, location, disabled, ...props }: StepperProps): import("react/jsx-runtime").JSX.Element;
9
+ export { Stepper };
@@ -0,0 +1,86 @@
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { cva as l } from "class-variance-authority";
3
+ import "react";
4
+ import { cn as r } from "../../../lib/utils.js";
5
+ import u from "../../assets/icon.js";
6
+ const m = l(
7
+ "flex items-center justify-center shrink-0 size-4 rounded-full border-2 border-solid",
8
+ {
9
+ variants: {
10
+ progress: {
11
+ incomplete: "border-neutral-500",
12
+ active: "border-blue-700",
13
+ completed: "border-blue-700 bg-blue-700"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ progress: "incomplete"
18
+ }
19
+ }
20
+ ), h = l("text-sm font-medium leading-5 tracking-normal whitespace-nowrap", {
21
+ variants: {
22
+ progress: {
23
+ incomplete: "text-neutral-500 group-hover:shadow-[inset_0_-1.5px_0_0_var(--color-neutral-500)]",
24
+ active: "text-neutral-900 group-hover:shadow-[inset_0_-1.5px_0_0_var(--color-neutral-900)]",
25
+ completed: "text-neutral-900 group-hover:text-blue-700 group-hover:shadow-[inset_0_-1.5px_0_0_var(--color-blue-700)]"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ progress: "incomplete"
30
+ }
31
+ });
32
+ function b({
33
+ className: i,
34
+ label: s = "Step name",
35
+ progress: t = "incomplete",
36
+ location: n = "default",
37
+ disabled: a = !1,
38
+ ...o
39
+ }) {
40
+ const c = () => /* @__PURE__ */ e("div", { className: r(m({ progress: t })), children: t === "completed" ? /* @__PURE__ */ e("span", { className: "w-3.5 h-3.5 flex items-center justify-center text-white [&>svg]:size-3.5 [&>svg]:text-white [&>svg]:aspect-square", children: /* @__PURE__ */ e(u, { name: "circleCheckFilled", fill: "var(--blue-700)" }) }) : null }), d = () => n === "last" ? null : /* @__PURE__ */ e("div", { className: "w-3 min-h-4 flex pt-0.5 flex-col items-center justify-center self-stretch", children: /* @__PURE__ */ e(
41
+ "svg",
42
+ {
43
+ width: "12",
44
+ height: "2",
45
+ viewBox: "0 0 12 2",
46
+ fill: "none",
47
+ xmlns: "http://www.w3.org/2000/svg",
48
+ children: /* @__PURE__ */ e(
49
+ "line",
50
+ {
51
+ x1: "1",
52
+ y1: "1",
53
+ x2: "11",
54
+ y2: "1",
55
+ stroke: "#E5E5E5",
56
+ strokeWidth: 2,
57
+ strokeLinecap: "round"
58
+ }
59
+ )
60
+ }
61
+ ) });
62
+ return /* @__PURE__ */ p(
63
+ "div",
64
+ {
65
+ role: "button",
66
+ tabIndex: 0,
67
+ "data-slot": "stepper",
68
+ "data-progress": t,
69
+ "data-location": n,
70
+ className: r(
71
+ "inline-flex items-center cursor-pointer gap-2 text-neutral-500 group",
72
+ a && "cursor-not-allowed opacity-50 pointer-events-none",
73
+ i
74
+ ),
75
+ ...o,
76
+ children: [
77
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-center px-0 py-0.5 relative shrink-0", children: c() }),
78
+ /* @__PURE__ */ e("div", { className: "flex items-center relative shrink-0 ", children: /* @__PURE__ */ e("p", { className: r(h({ progress: t })), children: s }) }),
79
+ d()
80
+ ]
81
+ }
82
+ );
83
+ }
84
+ export {
85
+ b as Stepper
86
+ };
@@ -0,0 +1,2 @@
1
+ export * from './input';
2
+ export * from './label';
@@ -0,0 +1,16 @@
1
+ type Z2InputRoundness = 'FULL' | 'NONE' | 'LEFT' | 'RIGHT';
2
+ type Z2Semantic = 'info' | 'warning' | 'success' | 'danger';
3
+ interface Z2InputProps extends React.ComponentProps<'input'> {
4
+ leadingIcon?: React.ReactNode;
5
+ trailingIcon?: React.ReactNode;
6
+ roundness?: Z2InputRoundness;
7
+ semantic?: Z2Semantic;
8
+ dimension?: 'small' | 'medium' | 'large';
9
+ }
10
+ declare const inputContainerVariants: (props?: ({
11
+ dimension?: "small" | "large" | "medium" | null | undefined;
12
+ roundness?: "LEFT" | "RIGHT" | "FULL" | "NONE" | null | undefined;
13
+ semantic?: "success" | "warning" | "danger" | "info" | null | undefined;
14
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
15
+ declare function Z2Input({ className, type, leadingIcon, trailingIcon, dimension, roundness, semantic, ...props }: Z2InputProps): import("react/jsx-runtime").JSX.Element;
16
+ export { Z2Input, type Z2InputProps, type Z2InputRoundness, type Z2Semantic, inputContainerVariants, };
@@ -0,0 +1,94 @@
1
+ import { jsx as e, Fragment as u, jsxs as m } from "react/jsx-runtime";
2
+ import { cva as c } from "class-variance-authority";
3
+ import "react";
4
+ import { cn as a } from "../../../lib/utils.js";
5
+ const p = c(
6
+ [
7
+ // Base layout and structure
8
+ "flex items-center self-stretch gap-1",
9
+ // Default state
10
+ "border border-solid border-neutral-200 bg-white",
11
+ "text-sm font-normal text-neutral-900",
12
+ "placeholder:text-neutral-400",
13
+ "outline-none",
14
+ // Disabled state
15
+ "data-[disabled=true]:bg-neutral-100 data-[disabled=true]:text-neutral-400 data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed",
16
+ // Hover state
17
+ "hover:bg-neutral-50 hover:border-neutral-300",
18
+ // Active state
19
+ "active:bg-neutral-50 active:border-neutral-600",
20
+ // Focus state
21
+ "focus-within:bg-neutral-50 focus-within:border-neutral-600 focus-within:hover:border-neutral-600"
22
+ ],
23
+ {
24
+ variants: {
25
+ // Size variants
26
+ dimension: {
27
+ small: "py-1 px-2 h-6",
28
+ medium: "py-1.5 px-2 h-7",
29
+ large: "py-2 px-2.5 h-8"
30
+ },
31
+ // Border radius variants
32
+ roundness: {
33
+ FULL: "rounded-lg",
34
+ NONE: "rounded-none",
35
+ LEFT: "rounded-l-lg",
36
+ RIGHT: "rounded-r-lg"
37
+ },
38
+ semantic: {
39
+ info: "",
40
+ warning: "border-amber-700",
41
+ success: "border-emerald-700",
42
+ danger: "border-rose-700"
43
+ }
44
+ },
45
+ defaultVariants: {
46
+ dimension: "medium",
47
+ roundness: "FULL"
48
+ }
49
+ }
50
+ );
51
+ function g({
52
+ className: d,
53
+ type: l,
54
+ leadingIcon: r,
55
+ trailingIcon: t,
56
+ dimension: o,
57
+ roundness: s,
58
+ semantic: i,
59
+ ...n
60
+ }) {
61
+ return /* @__PURE__ */ e(u, { children: /* @__PURE__ */ m(
62
+ "div",
63
+ {
64
+ "data-disabled": n.disabled,
65
+ className: a(
66
+ p({
67
+ dimension: o,
68
+ roundness: s,
69
+ semantic: i,
70
+ className: d
71
+ })
72
+ ),
73
+ children: [
74
+ r && /* @__PURE__ */ e("span", { className: "flex items-center justify-center py-px text-neutral-500 h-3.5 w-3.5", children: r }),
75
+ /* @__PURE__ */ e(
76
+ "input",
77
+ {
78
+ type: l,
79
+ "data-slot": "input",
80
+ className: a(
81
+ "px-0.5 bg-transparent text-sm font-normal text-neutral-900 placeholder:text-neutral-400 border-none outline-none flex-1"
82
+ ),
83
+ ...n
84
+ }
85
+ ),
86
+ t && /* @__PURE__ */ e("span", { className: "flex items-center justify-center py-px text-neutral-500 h-3.5 w-3.5", children: t })
87
+ ]
88
+ }
89
+ ) });
90
+ }
91
+ export {
92
+ g as Z2Input,
93
+ p as inputContainerVariants
94
+ };
@@ -0,0 +1,18 @@
1
+ declare const labelVariants: (props?: ({
2
+ type?: "data" | "input" | null | undefined;
3
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
4
+ interface LabelProps {
5
+ htmlFor?: string;
6
+ className?: string;
7
+ type: 'input' | 'data';
8
+ label: string;
9
+ description?: string;
10
+ required?: boolean;
11
+ disabled?: boolean;
12
+ helperText?: string | {
13
+ title: string;
14
+ description?: string;
15
+ };
16
+ }
17
+ declare function Label({ htmlFor, className, type, label, description, required, disabled, helperText, }: LabelProps): import("react/jsx-runtime").JSX.Element;
18
+ export { Label, type LabelProps, labelVariants };
@@ -0,0 +1,66 @@
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { cva as u } from "class-variance-authority";
3
+ import "react";
4
+ import { cn as n } from "../../../lib/utils.js";
5
+ import c from "../../assets/icon.js";
6
+ import { Tooltip as m } from "../actions/tooltip.js";
7
+ const b = u("flex flex-col items-start gap-px group/label", {
8
+ variants: {
9
+ type: {
10
+ input: "text-neutral-500 data-[disabled=true]:text-neutral-400 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:pointer-events-none data-[active=true]:text-neutral-700 active:text-neutral-700 hover:text-neutral-600",
11
+ data: "text-neutral-500"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ type: "input"
16
+ }
17
+ });
18
+ function h({
19
+ htmlFor: o,
20
+ className: p,
21
+ type: e,
22
+ label: d,
23
+ description: l,
24
+ required: s,
25
+ disabled: i,
26
+ helperText: t
27
+ }) {
28
+ return /* @__PURE__ */ r(
29
+ "label",
30
+ {
31
+ "data-slot": "label",
32
+ "data-type": e,
33
+ htmlFor: o,
34
+ "data-disabled": i,
35
+ className: n(b({ type: e }), p),
36
+ children: [
37
+ /* @__PURE__ */ a("span", { className: "flex items-center gap-1 self-stretch", children: /* @__PURE__ */ r(
38
+ "span",
39
+ {
40
+ className: n(
41
+ "flex items-center gap-1 group-data-[type=input]/label:text-sm group-data-[type=input]/label:font-medium",
42
+ "group-data-[type=data]/label:text-sm group-data-[type=data]/label:font-normal"
43
+ ),
44
+ children: [
45
+ d,
46
+ s && /* @__PURE__ */ a("span", { className: "text-rose-700", children: "*" }),
47
+ t && /* @__PURE__ */ a(
48
+ m,
49
+ {
50
+ title: typeof t == "object" ? t.title : t,
51
+ description: typeof t == "object" ? t.description : void 0,
52
+ children: /* @__PURE__ */ a("span", { className: "flex px-0.5 py-1 items-center group-data-[type=data]/label:text-neutral-600", children: /* @__PURE__ */ a(c, { name: "circleQuestion" }) })
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ ) }),
58
+ l && /* @__PURE__ */ a("span", { className: "group-data-[type=input]/label:text-xs group-data-[type=input]/label:font-normal group-data-[type=data]/label:truncate group-data-[type=data]/label:line-clamp-2 group-data-[type=data]/label:text-neutral-700 group-data-[type=data]/label:font-semibold group-data-[type=data]/label:text-sm", children: l })
59
+ ]
60
+ }
61
+ );
62
+ }
63
+ export {
64
+ h as Label,
65
+ b as labelVariants
66
+ };
@@ -0,0 +1,4 @@
1
+ export * from './assets';
2
+ export * from './atoms';
3
+ export * from './molecules';
4
+ export * from './organisms';
@@ -0,0 +1,6 @@
1
+ import { BreadcrumbLinkProps } from '../../atoms/actions/breadcrumb-link';
2
+ interface Z2BreadcrumbGroupProps {
3
+ links: BreadcrumbLinkProps[];
4
+ }
5
+ declare const Z2BreadcrumbGroup: ({ links }: Z2BreadcrumbGroupProps) => import("react/jsx-runtime").JSX.Element;
6
+ export { Z2BreadcrumbGroup, type Z2BreadcrumbGroupProps };
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { BreadcrumbLink as i } from "../../atoms/actions/breadcrumb-link.js";
3
+ const n = ({ links: a }) => /* @__PURE__ */ r("nav", { role: "navigation", "aria-label": "Breadcrumb", children: /* @__PURE__ */ r("ol", { className: "inline-flex items-center", children: a.map((e) => /* @__PURE__ */ r(i, { ...e }, e.label)) }) });
4
+ export {
5
+ n as Z2BreadcrumbGroup
6
+ };
@@ -0,0 +1 @@
1
+ export * from './breadcrumb-group';
@@ -0,0 +1,6 @@
1
+ import { TabButtonProps } from '../../atoms';
2
+ interface TabGroupProps {
3
+ tabs: TabButtonProps[];
4
+ }
5
+ declare function TabGroup({ tabs }: TabGroupProps): import("react/jsx-runtime").JSX.Element;
6
+ export { TabGroup, type TabGroupProps };
@@ -0,0 +1,16 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "../../atoms/inputs/input.js";
3
+ import "../../atoms/inputs/label.js";
4
+ import "../../atoms/indicators/badge.js";
5
+ import "../../atoms/indicators/number-badge.js";
6
+ import "../../atoms/indicators/featured-icon.js";
7
+ import "../../atoms/indicators/stepper.js";
8
+ import "../../atoms/actions/button.js";
9
+ import "../../atoms/actions/breadcrumb-link.js";
10
+ import { TabButton as i } from "../../atoms/actions/tab-button.js";
11
+ function x({ tabs: t }) {
12
+ return /* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-6 shadow-[inset_0_-1px_0_0_var(--color-neutral-200)]", children: t.map((r) => /* @__PURE__ */ o(i, { ...r }, r.label)) });
13
+ }
14
+ export {
15
+ x as TabGroup
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from './kpi-card';
2
+ export * from './actions';
@@ -0,0 +1,2 @@
1
+ export * from './kpi-card';
2
+ export * from './kpi-card.type';
@@ -0,0 +1,3 @@
1
+ import { Z2KpiCardProps } from './kpi-card.type';
2
+ declare const Z2KpiCard: ({ header, footer, ...props }: Z2KpiCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Z2KpiCard };
@@ -0,0 +1,82 @@
1
+ import { jsxs as s, jsx as e, Fragment as o } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cn as d } from "../../../lib/utils.js";
4
+ import c from "../../assets/icon.js";
5
+ import { Z2Button as m } from "../../atoms/actions/button.js";
6
+ import { Z2FeaturedIcon as f } from "../../atoms/indicators/featured-icon.js";
7
+ const x = ({
8
+ className: r,
9
+ active: l = !1,
10
+ ...a
11
+ }) => /* @__PURE__ */ e(
12
+ "div",
13
+ {
14
+ "data-active": l,
15
+ className: d(
16
+ "flex items-start flex-col gap-3.5 p-3.5 border border-solid border-neutral-200 rounded-xl",
17
+ // Hover state
18
+ "hover:border-neutral-300 hover:shadow",
19
+ // Active state
20
+ "data-[active=true]:border-blue-700",
21
+ r
22
+ ),
23
+ ...a
24
+ }
25
+ );
26
+ function p({
27
+ className: r,
28
+ title: l,
29
+ description: a,
30
+ children: i,
31
+ infoButton: t,
32
+ moreActions: n
33
+ }) {
34
+ return /* @__PURE__ */ s("div", { className: d("flex items-start self-stretch gap-2", r), children: [
35
+ /* @__PURE__ */ s("div", { className: "flex flex-col items-start gap-0 flex-1", children: [
36
+ /* @__PURE__ */ e("span", { className: "text-neutral-700 text-sm font-medium", children: l }),
37
+ a && /* @__PURE__ */ e("span", { className: "text-neutral-600 text-xs font-normal", children: a })
38
+ ] }),
39
+ /* @__PURE__ */ e("span", { className: "flex justify-end items-center gap-1", children: i || /* @__PURE__ */ s(o, { children: [
40
+ t && /* @__PURE__ */ e(
41
+ m,
42
+ {
43
+ variant: t.variant || "ghost",
44
+ size: t.size || "small",
45
+ leadingIcon: t.leadingIcon || /* @__PURE__ */ e(c, { name: "circleInfo" }),
46
+ ...t
47
+ }
48
+ ),
49
+ n && /* @__PURE__ */ e(
50
+ m,
51
+ {
52
+ variant: n.variant || "ghost",
53
+ size: n.size || "small",
54
+ leadingIcon: n.leadingIcon || /* @__PURE__ */ e(c, { name: "dots" }),
55
+ ...n
56
+ }
57
+ )
58
+ ] }) })
59
+ ] });
60
+ }
61
+ function h({
62
+ className: r,
63
+ text: l,
64
+ icon: a = /* @__PURE__ */ e(c, { name: "percentage" }),
65
+ showIcon: i = !1,
66
+ featuredIcon: t
67
+ }) {
68
+ return /* @__PURE__ */ s("div", { className: d("flex items-center gap-2 self-stretch", r), children: [
69
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-px flex-1", children: [
70
+ /* @__PURE__ */ e("span", { className: "text-neutral-950 text-lg font-bold", children: l }),
71
+ i && /* @__PURE__ */ e("div", { className: "font-sans flex items-center justify-center text-neutral-600 text-sm font-bold leading-3 tracking-normal", children: /* @__PURE__ */ e("span", { className: "flex items-center justify-center h-3 w-3", children: a }) })
72
+ ] }),
73
+ t && /* @__PURE__ */ e(f, { ...t })
74
+ ] });
75
+ }
76
+ const Z = ({ header: r, footer: l, ...a }) => /* @__PURE__ */ s(x, { ...a, children: [
77
+ /* @__PURE__ */ e(p, { ...r }),
78
+ /* @__PURE__ */ e(h, { ...l })
79
+ ] });
80
+ export {
81
+ Z as Z2KpiCard
82
+ };
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { Z2FeaturedIconProps } from '../../atoms/indicators/featured-icon';
3
+ import { Z2ButtonProps } from '../../atoms/actions/button';
4
+ export interface Z2KpiCardProps extends React.ComponentProps<'div'> {
5
+ header: Z2KpiCardHeaderProps;
6
+ footer: Z2KpiCardFooterProps;
7
+ active?: boolean;
8
+ }
9
+ export interface Z2KpiCardFooterProps extends React.ComponentProps<'div'> {
10
+ text: string;
11
+ icon?: React.ReactNode;
12
+ showIcon?: boolean;
13
+ featuredIcon?: Z2FeaturedIconProps;
14
+ }
15
+ export interface Z2KpiCardHeaderProps extends React.ComponentProps<'div'> {
16
+ title: string;
17
+ description?: string;
18
+ infoButton?: Z2ButtonProps;
19
+ moreActions?: Z2ButtonProps;
20
+ }
@@ -0,0 +1,6 @@
1
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
2
+ errors?: Array<{
3
+ message?: string;
4
+ } | undefined>;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
6
+ export { FieldError };
@@ -0,0 +1,2 @@
1
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
2
+ export { FieldGroup };
@@ -0,0 +1,2 @@
1
+ declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): import("react/jsx-runtime").JSX.Element;
2
+ export { FieldSet };
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { LabelProps } from '../../atoms/inputs/label';
3
+ declare const fieldVariants: (props?: ({
4
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
5
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
6
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
7
+ declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function FieldLabel({ label, description, required, disabled, helperText, className, }: Omit<LabelProps, 'type'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
10
+ children?: React.ReactNode;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ export { Field, FieldLabel, FieldSeparator, FieldContent };