@giddaa-housing/ui 0.1.0 → 1.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 (315) hide show
  1. package/README.md +18 -6
  2. package/css/base.css +37 -0
  3. package/css/components.css +135 -0
  4. package/css/generated/shared.css +1 -0
  5. package/css/giddaa.css +402 -0
  6. package/css/preset.css +77 -0
  7. package/css/styles.css +2 -0
  8. package/css/theme.css +255 -0
  9. package/dist/accordion.d.ts +9 -10
  10. package/dist/accordion.js +41 -117
  11. package/dist/activity-timeline.d.ts +29 -0
  12. package/dist/activity-timeline.js +97 -0
  13. package/dist/alert.d.ts +8 -9
  14. package/dist/alert.js +53 -141
  15. package/dist/auth-layout.d.ts +23 -0
  16. package/dist/auth-layout.js +153 -0
  17. package/dist/avatar.d.ts +6 -6
  18. package/dist/avatar.js +40 -142
  19. package/dist/badge.d.ts +12 -13
  20. package/dist/badge.js +66 -114
  21. package/dist/bar-chart.d.ts +136 -114
  22. package/dist/bar-chart.js +244 -297
  23. package/dist/breadcrumb.d.ts +5 -5
  24. package/dist/breadcrumb.js +56 -148
  25. package/dist/bullet-chart.d.ts +33 -33
  26. package/dist/bullet-chart.js +123 -183
  27. package/dist/button-BZIeyUw6.d.ts +17 -0
  28. package/dist/button-group.d.ts +13 -16
  29. package/dist/button-group.js +38 -163
  30. package/dist/button.d.ts +2 -19
  31. package/dist/button.js +90 -142
  32. package/dist/calendar.d.ts +6 -6
  33. package/dist/calendar.js +134 -288
  34. package/dist/card.d.ts +14 -16
  35. package/dist/card.js +58 -174
  36. package/dist/carousel.d.ts +34 -35
  37. package/dist/carousel.js +319 -378
  38. package/dist/chart.d.ts +58 -59
  39. package/dist/chart.js +350 -466
  40. package/dist/checkbox.d.ts +10 -12
  41. package/dist/checkbox.js +84 -84
  42. package/dist/cn-BI_4DMBf.js +23 -0
  43. package/dist/collapsible.d.ts +7 -8
  44. package/dist/collapsible.js +23 -77
  45. package/dist/combobox.d.ts +10 -10
  46. package/dist/combobox.js +220 -696
  47. package/dist/cta.d.ts +64 -0
  48. package/dist/cta.js +192 -0
  49. package/dist/currency-selector.d.ts +41 -0
  50. package/dist/currency-selector.js +114 -0
  51. package/dist/data-table.d.ts +164 -0
  52. package/dist/data-table.js +673 -0
  53. package/dist/date-picker.d.ts +27 -20
  54. package/dist/date-picker.js +122 -520
  55. package/dist/details-card.d.ts +19 -0
  56. package/dist/details-card.js +118 -0
  57. package/dist/dialog.d.ts +13 -14
  58. package/dist/dialog.js +117 -320
  59. package/dist/dropdown-menu.d.ts +14 -14
  60. package/dist/dropdown-menu.js +170 -365
  61. package/dist/dropzone.d.ts +55 -55
  62. package/dist/dropzone.js +328 -467
  63. package/dist/editorial-card.d.ts +27 -0
  64. package/dist/editorial-card.js +144 -0
  65. package/dist/empty-state.d.ts +8 -9
  66. package/dist/empty-state.js +48 -135
  67. package/dist/field.d.ts +23 -25
  68. package/dist/field.js +111 -327
  69. package/dist/filter.d.ts +118 -0
  70. package/dist/filter.js +775 -0
  71. package/dist/footer.d.ts +40 -0
  72. package/dist/footer.js +227 -0
  73. package/dist/funnel-chart.d.ts +38 -41
  74. package/dist/funnel-chart.js +168 -563
  75. package/dist/gallery-indicator.d.ts +17 -0
  76. package/dist/gallery-indicator.js +75 -0
  77. package/dist/heatmap-chart.d.ts +95 -0
  78. package/dist/heatmap-chart.js +197 -0
  79. package/dist/infotip.d.ts +10 -0
  80. package/dist/infotip.js +40 -0
  81. package/dist/input-CfoEJ8A6.d.ts +12 -0
  82. package/dist/input-group.d.ts +16 -19
  83. package/dist/input-group.js +92 -372
  84. package/dist/input-size-context-C-SFx9sx.d.ts +10 -0
  85. package/dist/input-size-context.d.ts +2 -11
  86. package/dist/input-size-context.js +14 -20
  87. package/dist/input.d.ts +2 -13
  88. package/dist/input.js +23 -79
  89. package/dist/item.d.ts +7 -8
  90. package/dist/item.js +22 -89
  91. package/dist/kpi-card.d.ts +18 -20
  92. package/dist/kpi-card.js +84 -232
  93. package/dist/label.d.ts +6 -6
  94. package/dist/label.js +39 -66
  95. package/dist/line-chart.d.ts +88 -89
  96. package/dist/line-chart.js +143 -262
  97. package/dist/logo.d.ts +4 -4
  98. package/dist/logo.js +87 -141
  99. package/dist/map-indicator.d.ts +13 -0
  100. package/dist/map-indicator.js +83 -0
  101. package/dist/match.d.ts +15 -0
  102. package/dist/match.js +68 -0
  103. package/dist/media-gallery-hero.d.ts +58 -0
  104. package/dist/media-gallery-hero.js +201 -0
  105. package/dist/media-player.d.ts +60 -0
  106. package/dist/media-player.js +919 -0
  107. package/dist/multi-step-form.d.ts +56 -0
  108. package/dist/multi-step-form.js +342 -0
  109. package/dist/number-input.d.ts +34 -34
  110. package/dist/number-input.js +62 -413
  111. package/dist/page-header.d.ts +10 -11
  112. package/dist/page-header.js +34 -107
  113. package/dist/pagination.d.ts +17 -20
  114. package/dist/pagination.js +132 -341
  115. package/dist/password-input.d.ts +5 -12
  116. package/dist/password-input.js +32 -354
  117. package/dist/phone-input.d.ts +19 -19
  118. package/dist/phone-input.js +232 -561
  119. package/dist/photo-gallery.d.ts +20 -20
  120. package/dist/photo-gallery.js +314 -746
  121. package/dist/picker-lzgmsNfG.js +32 -0
  122. package/dist/pie-chart.d.ts +60 -60
  123. package/dist/pie-chart.js +141 -184
  124. package/dist/popover.d.ts +9 -9
  125. package/dist/popover.js +60 -156
  126. package/dist/price-tag.d.ts +34 -0
  127. package/dist/price-tag.js +118 -0
  128. package/dist/progress.d.ts +18 -16
  129. package/dist/progress.js +156 -300
  130. package/dist/property-listing-card.d.ts +29 -0
  131. package/dist/property-listing-card.js +117 -0
  132. package/dist/radar-chart.d.ts +108 -0
  133. package/dist/radar-chart.js +172 -0
  134. package/dist/radio-group.d.ts +11 -13
  135. package/dist/radio-group.js +47 -96
  136. package/dist/review-block.d.ts +18 -0
  137. package/dist/review-block.js +154 -0
  138. package/dist/rich-text-editor.d.ts +30 -14
  139. package/dist/rich-text-editor.js +594 -979
  140. package/dist/scatter-chart.d.ts +140 -0
  141. package/dist/scatter-chart.js +248 -0
  142. package/dist/search-input.d.ts +8 -15
  143. package/dist/search-input.js +58 -408
  144. package/dist/select.d.ts +8 -8
  145. package/dist/select.js +131 -291
  146. package/dist/separator.d.ts +8 -9
  147. package/dist/separator.js +31 -70
  148. package/dist/sheet.d.ts +11 -11
  149. package/dist/sheet.js +84 -262
  150. package/dist/sidebar.d.ts +32 -37
  151. package/dist/sidebar.js +380 -1055
  152. package/dist/size-context-D4mYvcg8.d.ts +10 -0
  153. package/dist/size-context.d.ts +2 -11
  154. package/dist/size-context.js +14 -18
  155. package/dist/skeleton.d.ts +4 -5
  156. package/dist/skeleton.js +9 -45
  157. package/dist/slider.d.ts +27 -0
  158. package/dist/slider.js +81 -0
  159. package/dist/sparkline.d.ts +43 -46
  160. package/dist/sparkline.js +223 -561
  161. package/dist/stepper.d.ts +23 -24
  162. package/dist/stepper.js +149 -276
  163. package/dist/styles.css +9995 -2
  164. package/dist/switch.d.ts +10 -12
  165. package/dist/switch.js +49 -106
  166. package/dist/table-card.d.ts +35 -0
  167. package/dist/table-card.js +125 -0
  168. package/dist/table.d.ts +18 -14
  169. package/dist/table.js +114 -182
  170. package/dist/tabs.d.ts +23 -15
  171. package/dist/tabs.js +62 -149
  172. package/dist/tag.d.ts +22 -23
  173. package/dist/tag.js +104 -156
  174. package/dist/testimonial-block.d.ts +33 -0
  175. package/dist/testimonial-block.js +208 -0
  176. package/dist/textarea-IS_D8pXf.d.ts +11 -0
  177. package/dist/textarea.d.ts +2 -12
  178. package/dist/textarea.js +20 -74
  179. package/dist/time-picker.d.ts +11 -11
  180. package/dist/time-picker.js +247 -464
  181. package/dist/toast.d.ts +16 -18
  182. package/dist/toast.js +154 -310
  183. package/dist/tooltip.d.ts +9 -10
  184. package/dist/tooltip.js +33 -91
  185. package/dist/tree-map.d.ts +54 -57
  186. package/dist/tree-map.js +231 -646
  187. package/dist/use-uncontrolled-CLfM1XbB.js +21 -0
  188. package/dist/waterfall-chart.d.ts +126 -0
  189. package/dist/waterfall-chart.js +480 -0
  190. package/package.json +123 -34
  191. package/dist/accordion.js.map +0 -1
  192. package/dist/alert.js.map +0 -1
  193. package/dist/avatar.js.map +0 -1
  194. package/dist/badge.js.map +0 -1
  195. package/dist/bar-chart.js.map +0 -1
  196. package/dist/base.css +0 -32
  197. package/dist/breadcrumb.js.map +0 -1
  198. package/dist/bullet-chart.js.map +0 -1
  199. package/dist/button-group.js.map +0 -1
  200. package/dist/button.js.map +0 -1
  201. package/dist/calendar.js.map +0 -1
  202. package/dist/card.js.map +0 -1
  203. package/dist/carousel.js.map +0 -1
  204. package/dist/chart.js.map +0 -1
  205. package/dist/checkbox.js.map +0 -1
  206. package/dist/collapsible.js.map +0 -1
  207. package/dist/combobox.js.map +0 -1
  208. package/dist/date-picker.js.map +0 -1
  209. package/dist/dialog.js.map +0 -1
  210. package/dist/dropdown-menu.js.map +0 -1
  211. package/dist/dropzone.js.map +0 -1
  212. package/dist/empty-state.js.map +0 -1
  213. package/dist/field.js.map +0 -1
  214. package/dist/files/red-hat-display-latin-300-italic.woff +0 -0
  215. package/dist/files/red-hat-display-latin-300-italic.woff2 +0 -0
  216. package/dist/files/red-hat-display-latin-300-normal.woff +0 -0
  217. package/dist/files/red-hat-display-latin-300-normal.woff2 +0 -0
  218. package/dist/files/red-hat-display-latin-400-italic.woff +0 -0
  219. package/dist/files/red-hat-display-latin-400-italic.woff2 +0 -0
  220. package/dist/files/red-hat-display-latin-400-normal.woff +0 -0
  221. package/dist/files/red-hat-display-latin-400-normal.woff2 +0 -0
  222. package/dist/files/red-hat-display-latin-500-italic.woff +0 -0
  223. package/dist/files/red-hat-display-latin-500-italic.woff2 +0 -0
  224. package/dist/files/red-hat-display-latin-500-normal.woff +0 -0
  225. package/dist/files/red-hat-display-latin-500-normal.woff2 +0 -0
  226. package/dist/files/red-hat-display-latin-600-italic.woff +0 -0
  227. package/dist/files/red-hat-display-latin-600-italic.woff2 +0 -0
  228. package/dist/files/red-hat-display-latin-600-normal.woff +0 -0
  229. package/dist/files/red-hat-display-latin-600-normal.woff2 +0 -0
  230. package/dist/files/red-hat-display-latin-700-italic.woff +0 -0
  231. package/dist/files/red-hat-display-latin-700-italic.woff2 +0 -0
  232. package/dist/files/red-hat-display-latin-700-normal.woff +0 -0
  233. package/dist/files/red-hat-display-latin-700-normal.woff2 +0 -0
  234. package/dist/files/red-hat-display-latin-800-italic.woff +0 -0
  235. package/dist/files/red-hat-display-latin-800-italic.woff2 +0 -0
  236. package/dist/files/red-hat-display-latin-800-normal.woff +0 -0
  237. package/dist/files/red-hat-display-latin-800-normal.woff2 +0 -0
  238. package/dist/files/red-hat-display-latin-900-italic.woff +0 -0
  239. package/dist/files/red-hat-display-latin-900-italic.woff2 +0 -0
  240. package/dist/files/red-hat-display-latin-900-normal.woff +0 -0
  241. package/dist/files/red-hat-display-latin-900-normal.woff2 +0 -0
  242. package/dist/files/red-hat-display-latin-ext-300-italic.woff +0 -0
  243. package/dist/files/red-hat-display-latin-ext-300-italic.woff2 +0 -0
  244. package/dist/files/red-hat-display-latin-ext-300-normal.woff +0 -0
  245. package/dist/files/red-hat-display-latin-ext-300-normal.woff2 +0 -0
  246. package/dist/files/red-hat-display-latin-ext-400-italic.woff +0 -0
  247. package/dist/files/red-hat-display-latin-ext-400-italic.woff2 +0 -0
  248. package/dist/files/red-hat-display-latin-ext-400-normal.woff +0 -0
  249. package/dist/files/red-hat-display-latin-ext-400-normal.woff2 +0 -0
  250. package/dist/files/red-hat-display-latin-ext-500-italic.woff +0 -0
  251. package/dist/files/red-hat-display-latin-ext-500-italic.woff2 +0 -0
  252. package/dist/files/red-hat-display-latin-ext-500-normal.woff +0 -0
  253. package/dist/files/red-hat-display-latin-ext-500-normal.woff2 +0 -0
  254. package/dist/files/red-hat-display-latin-ext-600-italic.woff +0 -0
  255. package/dist/files/red-hat-display-latin-ext-600-italic.woff2 +0 -0
  256. package/dist/files/red-hat-display-latin-ext-600-normal.woff +0 -0
  257. package/dist/files/red-hat-display-latin-ext-600-normal.woff2 +0 -0
  258. package/dist/files/red-hat-display-latin-ext-700-italic.woff +0 -0
  259. package/dist/files/red-hat-display-latin-ext-700-italic.woff2 +0 -0
  260. package/dist/files/red-hat-display-latin-ext-700-normal.woff +0 -0
  261. package/dist/files/red-hat-display-latin-ext-700-normal.woff2 +0 -0
  262. package/dist/files/red-hat-display-latin-ext-800-italic.woff +0 -0
  263. package/dist/files/red-hat-display-latin-ext-800-italic.woff2 +0 -0
  264. package/dist/files/red-hat-display-latin-ext-800-normal.woff +0 -0
  265. package/dist/files/red-hat-display-latin-ext-800-normal.woff2 +0 -0
  266. package/dist/files/red-hat-display-latin-ext-900-italic.woff +0 -0
  267. package/dist/files/red-hat-display-latin-ext-900-italic.woff2 +0 -0
  268. package/dist/files/red-hat-display-latin-ext-900-normal.woff +0 -0
  269. package/dist/files/red-hat-display-latin-ext-900-normal.woff2 +0 -0
  270. package/dist/funnel-chart.js.map +0 -1
  271. package/dist/index.d.ts +0 -87
  272. package/dist/index.js +0 -10448
  273. package/dist/index.js.map +0 -1
  274. package/dist/input-group.js.map +0 -1
  275. package/dist/input-size-context.js.map +0 -1
  276. package/dist/input.js.map +0 -1
  277. package/dist/item.js.map +0 -1
  278. package/dist/kpi-card.js.map +0 -1
  279. package/dist/label.js.map +0 -1
  280. package/dist/line-chart.js.map +0 -1
  281. package/dist/logo.js.map +0 -1
  282. package/dist/number-input.js.map +0 -1
  283. package/dist/page-header.js.map +0 -1
  284. package/dist/pagination.js.map +0 -1
  285. package/dist/password-input.js.map +0 -1
  286. package/dist/phone-input.js.map +0 -1
  287. package/dist/photo-gallery.js.map +0 -1
  288. package/dist/pie-chart.js.map +0 -1
  289. package/dist/popover.js.map +0 -1
  290. package/dist/progress.js.map +0 -1
  291. package/dist/radio-group.js.map +0 -1
  292. package/dist/red-hat-display.css +0 -2
  293. package/dist/rich-text-editor.js.map +0 -1
  294. package/dist/search-input.js.map +0 -1
  295. package/dist/select.js.map +0 -1
  296. package/dist/separator.js.map +0 -1
  297. package/dist/sheet.js.map +0 -1
  298. package/dist/sidebar.js.map +0 -1
  299. package/dist/size-context.js.map +0 -1
  300. package/dist/skeleton.js.map +0 -1
  301. package/dist/sparkline.js.map +0 -1
  302. package/dist/stepper.js.map +0 -1
  303. package/dist/switch.js.map +0 -1
  304. package/dist/tab-list.d.ts +0 -38
  305. package/dist/tab-list.js +0 -394
  306. package/dist/tab-list.js.map +0 -1
  307. package/dist/table.js.map +0 -1
  308. package/dist/tabs.js.map +0 -1
  309. package/dist/tag.js.map +0 -1
  310. package/dist/textarea.js.map +0 -1
  311. package/dist/theme/giddaa.css +0 -2
  312. package/dist/time-picker.js.map +0 -1
  313. package/dist/toast.js.map +0 -1
  314. package/dist/tooltip.js.map +0 -1
  315. package/dist/tree-map.js.map +0 -1
package/css/theme.css ADDED
@@ -0,0 +1,255 @@
1
+ @theme static {
2
+ --font-sans:
3
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
4
+ sans-serif;
5
+
6
+ --radius-sm: 0.25rem; /* 4px */
7
+ --radius-md: 0.5rem; /* 8px */
8
+ --radius-lg: 0.75rem; /* 12px */
9
+ --radius-xl: 1rem; /* 16px */
10
+ --radius-2xl: 1.5rem; /* 24px */
11
+ --radius-3xl: 2.5rem; /* 40px */
12
+ --radius-4xl: 5rem; /* 80px */
13
+
14
+ --spacing-gdt-xs: 0.25rem; /* 4px */
15
+ --spacing-gdt-sm: 0.5rem; /* 8px */
16
+ --spacing-gdt-md: 0.75rem; /* 12px */
17
+ --spacing-gdt-lg: 1rem; /* 16px */
18
+ --spacing-gdt-xl: 1.5rem; /* 24px */
19
+ --spacing-gdt-2xl: 2rem; /* 32px */
20
+ --spacing-gdt-3xl: 2.5rem; /* 40px */
21
+ --spacing-gdt-4xl: 3rem; /* 48px */
22
+ --spacing-gdt-5xl: 4rem; /* 64px */
23
+ --spacing-gdt-6xl: 5rem; /* 80px */
24
+ --spacing-gdt-7xl: 7.5rem; /* 120px */
25
+
26
+ --text-gdt-display: 3.75rem; /* 60px */
27
+ --text-gdt-display--line-height: 4.5rem; /* 72px */
28
+ --text-gdt-display--letter-spacing: -0.02em;
29
+ --text-gdt-display--font-weight: 800;
30
+
31
+ --text-gdt-h1: 2.5rem; /* 40px */
32
+ --text-gdt-h1--line-height: 3.75rem; /* 60px */
33
+ --text-gdt-h1--letter-spacing: -0.02em;
34
+ --text-gdt-h1--font-weight: 800;
35
+
36
+ --text-gdt-h2: 2rem; /* 32px */
37
+ --text-gdt-h2--line-height: 2.625rem; /* 42px */
38
+ --text-gdt-h2--letter-spacing: -0.02em;
39
+ --text-gdt-h2--font-weight: 800;
40
+
41
+ --text-gdt-h3: 1.5rem; /* 24px */
42
+ --text-gdt-h3--line-height: 2.125rem; /* 34px */
43
+ --text-gdt-h3--font-weight: 800;
44
+
45
+ --text-gdt-h4: 1.25rem; /* 20px */
46
+ --text-gdt-h4--line-height: 1.875rem; /* 30px */
47
+ --text-gdt-h4--font-weight: 800;
48
+
49
+ --text-gdt-h5: 1rem; /* 16px */
50
+ --text-gdt-h5--line-height: 1.625rem; /* 26px */
51
+ --text-gdt-h5--font-weight: 800;
52
+
53
+ --text-gdt-xl: 1.25rem; /* 20px */
54
+ --text-gdt-xl--line-height: 1.875rem; /* 30px */
55
+
56
+ --text-gdt-lg: 1.125rem; /* 18px */
57
+ --text-gdt-lg--line-height: 1.75rem; /* 28px */
58
+
59
+ --text-gdt-md: 1rem; /* 16px */
60
+ --text-gdt-md--line-height: 1.625rem; /* 26px */
61
+
62
+ --text-gdt-sm: 0.875rem; /* 14px */
63
+ --text-gdt-sm--line-height: 1.5rem; /* 24px */
64
+
65
+ --text-gdt-xs: 0.75rem; /* 12px */
66
+ --text-gdt-xs--line-height: 1.375rem; /* 22px */
67
+
68
+ --text-gdt-subtext: 0.6875rem; /* 11px */
69
+ --text-gdt-subtext--line-height: 1.3125rem; /* 21px */
70
+
71
+ --text-gdt-capitalized: 0.625rem; /* 10px */
72
+ --text-gdt-capitalized--line-height: 1.25rem; /* 20px */
73
+ --text-gdt-capitalized--font-weight: 700;
74
+
75
+ --color-canvas: #ffffff;
76
+ --color-surface: #f8fafc;
77
+ --color-surface-raised: #f1f5f9;
78
+ --color-surface-overlay: #ffffff;
79
+ --color-surface-brand: #2563eb;
80
+ --color-surface-brand-subtle: #eff6ff;
81
+ --color-surface-accent: #d97706;
82
+ --color-surface-accent-subtle: #fffbeb;
83
+ --color-surface-danger-subtle: #fef2f2;
84
+ --color-surface-info-subtle: #eff6ff;
85
+ --color-surface-glass-button: rgb(15 23 42);
86
+ --color-surface-glass-overlay-button: rgb(15 23 42 / 0.5);
87
+ --color-surface-glass-overlay-container-1: rgb(255 255 255 / 0.85);
88
+ --color-surface-glass-overlay-container-2: rgb(255 255 255 / 0.95);
89
+
90
+ --color-fg-primary: #0f172a;
91
+ --color-fg-secondary: #475569;
92
+ --color-fg-caption-placeholder: #64748b;
93
+ --color-fg-brand: #1d4ed8;
94
+ --color-fg-danger: #dc2626;
95
+ --color-fg-accent: #b45309;
96
+ --color-fg-on-brand: #ffffff;
97
+ --color-fg-on-accent: #1f2937;
98
+
99
+ --color-line-subtle: #e2e8f0;
100
+ --color-line: #cbd5e1;
101
+ --color-line-strong: #94a3b8;
102
+ --color-line-focus: #2563eb;
103
+ --color-line-danger: #ef4444;
104
+
105
+ --color-action-primary: #2563eb;
106
+ --color-action-primary-hover: #1d4ed8;
107
+ --color-action-primary-pressed: #1e40af;
108
+ --color-action-secondary: #2563eb;
109
+ --color-action-secondary-hover: #1d4ed8;
110
+ --color-action-secondary-pressed: #1e40af;
111
+ --color-action-tertiary: #f1f5f9;
112
+ --color-action-tertiary-hover: #e2e8f0;
113
+ --color-action-tertiary-pressed: #cbd5e1;
114
+ --color-action-accent: #d97706;
115
+ --color-action-danger: #ef4444;
116
+ --color-action-danger-hover: #dc2626;
117
+ --color-action-danger-pressed: #b91c1c;
118
+ --color-whatsapp-button: #00d158;
119
+
120
+ --color-status-success: #16a34a;
121
+ --color-status-warning: #d97706;
122
+ --color-status-danger: #ef4444;
123
+ --color-status-info: #2563eb;
124
+
125
+ --animate-slideUp: slideUp 1.5s cubic-bezier(1, -0.16, 0, 0.94) forwards;
126
+ --animate-slideDown: slideDown 1.5s cubic-bezier(1, -0.16, 0, 0.94) forwards;
127
+ --animate-scroll: scroll 15s linear infinite;
128
+ --animate-bouncing-loader: bouncing-loader 0.3s infinite alternate;
129
+ --animate-accordion-down: accordion-down 0.2s ease-out;
130
+ --animate-accordion-up: accordion-up 0.2s ease-out;
131
+ --animate-sonar-glow: sonar-glow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
132
+ --animate-round-sonar-glow: round-sonar-glow 1.5s ease-out infinite;
133
+ --animate-spin-slow: spin 3s linear infinite;
134
+ }
135
+
136
+ :root {
137
+ --border: var(--color-line);
138
+ --elevation-e0-bg: var(--color-surface);
139
+ --elevation-e0-border: var(--color-line-subtle);
140
+ --elevation-e0-shadow: none;
141
+ --elevation-e1-bg: var(--color-surface-overlay);
142
+ --elevation-e1-border: var(--color-line-subtle);
143
+ --elevation-e1-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
144
+ --elevation-e2-bg: var(--color-surface-overlay);
145
+ --elevation-e2-border: var(--color-line-subtle);
146
+ --elevation-e2-shadow: 0 4px 12px rgb(15 23 42 / 0.08);
147
+ --elevation-e3-bg: var(--color-surface-overlay);
148
+ --elevation-e3-border: var(--color-line);
149
+ --elevation-e3-shadow: 0 8px 24px rgb(15 23 42 / 0.1);
150
+ --elevation-e4-bg: var(--color-surface-overlay);
151
+ --elevation-e4-border: var(--color-line);
152
+ --elevation-e4-shadow: 0 16px 40px rgb(15 23 42 / 0.14);
153
+ }
154
+
155
+ @media (width >= 48rem) {
156
+ :root {
157
+ --text-gdt-h1: 3rem; /* 48px */
158
+ --text-gdt-h1--line-height: 4.25rem; /* 68px */
159
+
160
+ --text-gdt-h2: 2.5rem; /* 40px */
161
+ --text-gdt-h2--line-height: 3.75rem; /* 60px */
162
+
163
+ --text-gdt-h3: 2rem; /* 32px */
164
+ --text-gdt-h3--line-height: 3.25rem; /* 52px */
165
+
166
+ --text-gdt-h4: 1.5rem; /* 24px */
167
+ --text-gdt-h4--line-height: 2.5rem; /* 40px */
168
+
169
+ --text-gdt-h5: 1.5rem; /* 24px */
170
+ --text-gdt-h5--line-height: 2rem; /* 32px */
171
+ }
172
+ }
173
+
174
+ @keyframes slideUp {
175
+ 0% {
176
+ transform: translateY(100%);
177
+ opacity: 0%;
178
+ }
179
+
180
+ 100% {
181
+ transform: translateY(0%);
182
+ opacity: 100%;
183
+ }
184
+ }
185
+
186
+ @keyframes slideDown {
187
+ 0% {
188
+ transform: translateY(0%);
189
+ opacity: 0%;
190
+ }
191
+
192
+ 100% {
193
+ transform: translateY(100%);
194
+ opacity: 100%;
195
+ }
196
+ }
197
+
198
+ @keyframes scroll {
199
+ 0% {
200
+ transform: translateX(0);
201
+ }
202
+
203
+ 100% {
204
+ transform: translateX(-50%);
205
+ }
206
+ }
207
+
208
+ @keyframes bouncing-loader {
209
+ to {
210
+ transform: translate3d(0, -8px, 0);
211
+ }
212
+ }
213
+
214
+ @keyframes accordion-down {
215
+ from {
216
+ height: 0;
217
+ }
218
+
219
+ to {
220
+ height: var(--radix-accordion-content-height);
221
+ }
222
+ }
223
+
224
+ @keyframes accordion-up {
225
+ from {
226
+ height: var(--radix-accordion-content-height);
227
+ }
228
+
229
+ to {
230
+ height: 0;
231
+ }
232
+ }
233
+
234
+ @keyframes sonar-glow {
235
+ 75%,
236
+ 100% {
237
+ transform: scale(
238
+ var(--sonar-glow-scale-x, 1.125),
239
+ var(--sonar-glow-scale-y, 1.5)
240
+ );
241
+ opacity: 0;
242
+ }
243
+ }
244
+
245
+ @keyframes round-sonar-glow {
246
+ 0% {
247
+ transform: scale(1);
248
+ opacity: 0.2;
249
+ }
250
+
251
+ 100% {
252
+ transform: scale(1.2);
253
+ opacity: 0;
254
+ }
255
+ }
@@ -1,11 +1,10 @@
1
- import * as React from 'react';
2
- import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
3
-
1
+ import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
2
+ //#region src/accordion.d.ts
4
3
  declare function Accordion({ className, variant, ...props }: Accordion$1.Root.Props & {
5
- variant?: "surface" | "ghost";
6
- }): React.JSX.Element;
7
- declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): React.JSX.Element;
8
- declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): React.JSX.Element;
9
- declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props): React.JSX.Element;
10
-
11
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
4
+ variant?: "surface" | "ghost";
5
+ }): import("react").JSX.Element;
6
+ declare function AccordionItem({ className, ...props }: Accordion$1.Item.Props): import("react").JSX.Element;
7
+ declare function AccordionTrigger({ className, children, ...props }: Accordion$1.Trigger.Props): import("react").JSX.Element;
8
+ declare function AccordionContent({ className, children, ...props }: Accordion$1.Panel.Props): import("react").JSX.Element;
9
+ //#endregion
10
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
package/dist/accordion.js CHANGED
@@ -1,124 +1,48 @@
1
- // src/components/ui/accordion.tsx
2
- import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
1
+ import { t as cn } from "./cn-BI_4DMBf.js";
2
+ import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
3
3
  import { ChevronRightIcon } from "lucide-react";
4
-
5
- // src/lib/cn.ts
6
- import { clsx } from "clsx";
7
- import { extendTailwindMerge } from "tailwind-merge";
8
- var twMerge = extendTailwindMerge({
9
- extend: {
10
- classGroups: {
11
- "font-size": [
12
- {
13
- text: [
14
- "gdt-display",
15
- "gdt-h1",
16
- "gdt-h2",
17
- "gdt-h3",
18
- "gdt-h4",
19
- "gdt-h5",
20
- "gdt-xl",
21
- "gdt-lg",
22
- "gdt-md",
23
- "gdt-sm",
24
- "gdt-xs",
25
- "gdt-subtext",
26
- "gdt-capitalized"
27
- ]
28
- }
29
- ]
30
- }
31
- }
32
- });
33
- function cn(...inputs) {
34
- return twMerge(clsx(inputs));
35
- }
36
-
37
- // src/components/ui/accordion.tsx
38
4
  import { jsx, jsxs } from "react/jsx-runtime";
39
- function Accordion({
40
- className,
41
- variant = "surface",
42
- ...props
43
- }) {
44
- return /* @__PURE__ */ jsx(
45
- AccordionPrimitive.Root,
46
- {
47
- "data-slot": "accordion",
48
- "data-variant": variant,
49
- className: cn("group/accordion flex w-full flex-col gap-3", className),
50
- ...props
51
- }
52
- );
5
+ //#region src/accordion.tsx
6
+ function Accordion({ className, variant = "surface", ...props }) {
7
+ return /* @__PURE__ */ jsx(Accordion$1.Root, {
8
+ "data-slot": "accordion",
9
+ "data-variant": variant,
10
+ className: cn("group/accordion flex w-full flex-col gap-3", className),
11
+ ...props
12
+ });
53
13
  }
54
14
  function AccordionItem({ className, ...props }) {
55
- return /* @__PURE__ */ jsx(
56
- AccordionPrimitive.Item,
57
- {
58
- "data-slot": "accordion-item",
59
- className: cn(
60
- "rounded-xl border border-line-subtle text-fg-primary transition-[background-color,border-color,box-shadow] group-data-[variant=surface]/accordion:bg-surface",
61
- className
62
- ),
63
- ...props
64
- }
65
- );
15
+ return /* @__PURE__ */ jsx(Accordion$1.Item, {
16
+ "data-slot": "accordion-item",
17
+ className: cn("rounded-xl border border-line-subtle text-fg-primary transition-[background-color,border-color,box-shadow] group-data-[variant=surface]/accordion:bg-surface", className),
18
+ ...props
19
+ });
66
20
  }
67
- function AccordionTrigger({
68
- className,
69
- children,
70
- ...props
71
- }) {
72
- return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { "data-slot": "accordion-header", className: "flex", children: /* @__PURE__ */ jsxs(
73
- AccordionPrimitive.Trigger,
74
- {
75
- "data-slot": "accordion-trigger",
76
- className: cn(
77
- "group/accordion-trigger flex w-full items-center gap-3 px-4 sm:px-5 py-5.5 aria-expanded:pb-2 text-left text-gdt-md font-semibold text-fg-primary outline-none transition-[padding] aria-disabled:pointer-events-none aria-disabled:opacity-50",
78
- className
79
- ),
80
- ...props,
81
- children: [
82
- /* @__PURE__ */ jsx(
83
- ChevronRightIcon,
84
- {
85
- "data-slot": "accordion-trigger-icon",
86
- className: "pointer-events-none size-5 shrink-0 text-fg-primary transition-transform duration-200 ease-out group-aria-expanded/accordion-trigger:rotate-90"
87
- }
88
- ),
89
- children
90
- ]
91
- }
92
- ) });
21
+ function AccordionTrigger({ className, children, ...props }) {
22
+ return /* @__PURE__ */ jsx(Accordion$1.Header, {
23
+ "data-slot": "accordion-header",
24
+ className: "flex",
25
+ children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
26
+ "data-slot": "accordion-trigger",
27
+ className: cn("group/accordion-trigger flex w-full items-center gap-3 px-4 sm:px-5 py-5.5 aria-expanded:pb-2 text-left text-gdt-md font-semibold text-fg-primary outline-none transition-[padding] aria-disabled:pointer-events-none aria-disabled:opacity-50", className),
28
+ ...props,
29
+ children: [/* @__PURE__ */ jsx(ChevronRightIcon, {
30
+ "data-slot": "accordion-trigger-icon",
31
+ className: "pointer-events-none size-5 shrink-0 text-fg-primary transition-transform duration-200 ease-out group-aria-expanded/accordion-trigger:rotate-90"
32
+ }), children]
33
+ })
34
+ });
93
35
  }
94
- function AccordionContent({
95
- className,
96
- children,
97
- ...props
98
- }) {
99
- return /* @__PURE__ */ jsx(
100
- AccordionPrimitive.Panel,
101
- {
102
- "data-slot": "accordion-content",
103
- className: "overflow-hidden h-(--accordion-panel-height) transition-[height] ease-out data-ending-style:h-0 data-starting-style:h-0",
104
- ...props,
105
- children: /* @__PURE__ */ jsx(
106
- "div",
107
- {
108
- className: cn(
109
- " pl-12 sm:pl-13 pr-4 sm:pr-5 pt-0 pb-4 sm:pb-5.5 text-fg-secondary text-gdt-md [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
110
- className
111
- ),
112
- children
113
- }
114
- )
115
- }
116
- );
36
+ function AccordionContent({ className, children, ...props }) {
37
+ return /* @__PURE__ */ jsx(Accordion$1.Panel, {
38
+ "data-slot": "accordion-content",
39
+ className: "overflow-hidden h-(--accordion-panel-height) transition-[height] ease-out data-ending-style:h-0 data-starting-style:h-0",
40
+ ...props,
41
+ children: /* @__PURE__ */ jsx("div", {
42
+ className: cn(" pl-12 sm:pl-13 pr-4 sm:pr-5 pt-0 pb-4 sm:pb-5.5 text-fg-secondary text-gdt-md [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
43
+ children
44
+ })
45
+ });
117
46
  }
118
- export {
119
- Accordion,
120
- AccordionContent,
121
- AccordionItem,
122
- AccordionTrigger
123
- };
124
- //# sourceMappingURL=accordion.js.map
47
+ //#endregion
48
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,29 @@
1
+ import { Avatar } from "./avatar.js";
2
+ import { Badge } from "./badge.js";
3
+ import * as React from "react";
4
+ //#region src/activity-timeline.d.ts
5
+ type ActivityTimelineProps = React.ComponentProps<"section">;
6
+ declare function ActivityTimeline({ className, ...props }: ActivityTimelineProps): React.JSX.Element;
7
+ declare function ActivityTimelineTitle({ className, ...props }: React.ComponentProps<"h3">): React.JSX.Element;
8
+ declare function ActivityTimelineList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
9
+ type ActivityTimelineItemProps = React.ComponentProps<"li"> & {
10
+ highlighted?: boolean;
11
+ highlightOnHover?: boolean;
12
+ };
13
+ declare function ActivityTimelineItem({ className, highlighted, highlightOnHover, ...props }: ActivityTimelineItemProps): React.JSX.Element;
14
+ declare function ActivityTimelineRail({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
15
+ type ActivityTimelineAvatarProps = React.ComponentProps<typeof Avatar> & {
16
+ src?: string;
17
+ alt?: string;
18
+ initials?: React.ReactNode;
19
+ };
20
+ declare function ActivityTimelineAvatar({ className, src, alt, initials, children, ...props }: ActivityTimelineAvatarProps): React.JSX.Element;
21
+ declare function ActivityTimelineConnector({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
22
+ declare function ActivityTimelineContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
23
+ type ActivityTimelineBadgeProps = React.ComponentProps<typeof Badge> & {
24
+ icon?: React.ReactNode;
25
+ };
26
+ declare function ActivityTimelineBadge({ className, icon, children, variant, size, border, ...props }: ActivityTimelineBadgeProps): React.JSX.Element;
27
+ declare function ActivityTimelineDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
28
+ //#endregion
29
+ export { ActivityTimeline, ActivityTimelineAvatar, ActivityTimelineBadge, ActivityTimelineConnector, ActivityTimelineContent, ActivityTimelineDescription, ActivityTimelineItem, ActivityTimelineList, ActivityTimelineRail, ActivityTimelineTitle };
@@ -0,0 +1,97 @@
1
+ "use client";
2
+ import { t as cn } from "./cn-BI_4DMBf.js";
3
+ import { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
4
+ import { Badge } from "./badge.js";
5
+ import { ChevronRightIcon } from "lucide-react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/activity-timeline.tsx
8
+ function ActivityTimeline({ className, ...props }) {
9
+ return /* @__PURE__ */ jsx("section", {
10
+ "data-slot": "activity-timeline",
11
+ className: cn("flex w-full max-w-[520px] flex-col items-start gap-4 rounded-2xl border border-line bg-canvas px-4 py-5 text-fg-primary sm:p-6 dark:bg-surface", className),
12
+ ...props
13
+ });
14
+ }
15
+ function ActivityTimelineTitle({ className, ...props }) {
16
+ return /* @__PURE__ */ jsx("h3", {
17
+ "data-slot": "activity-timeline-title",
18
+ className: cn("w-full text-gdt-md leading-[26px] font-bold sm:text-gdt-lg sm:leading-[28px]", className),
19
+ ...props
20
+ });
21
+ }
22
+ function ActivityTimelineList({ className, ...props }) {
23
+ return /* @__PURE__ */ jsx("ol", {
24
+ "data-slot": "activity-timeline-list",
25
+ className: cn("flex w-full flex-col items-start", className),
26
+ ...props
27
+ });
28
+ }
29
+ function ActivityTimelineItem({ className, highlighted = false, highlightOnHover = true, ...props }) {
30
+ return /* @__PURE__ */ jsx("li", {
31
+ "data-slot": "activity-timeline-item",
32
+ "data-highlighted": highlighted || void 0,
33
+ className: cn("flex min-h-20 w-full min-w-0 gap-3 rounded-lg p-3 transition-[background-color,border-radius]", highlighted && "rounded-2xl bg-surface-raised", highlightOnHover && "hover:rounded-2xl hover:bg-surface-raised", className),
34
+ ...props
35
+ });
36
+ }
37
+ function ActivityTimelineRail({ className, ...props }) {
38
+ return /* @__PURE__ */ jsx("div", {
39
+ "data-slot": "activity-timeline-rail",
40
+ className: cn("flex w-10 shrink-0 flex-col items-center gap-1.5", className),
41
+ ...props
42
+ });
43
+ }
44
+ function ActivityTimelineAvatar({ className, src, alt = "", initials, children, ...props }) {
45
+ return /* @__PURE__ */ jsx(Avatar, {
46
+ "data-slot": "activity-timeline-avatar",
47
+ size: "md",
48
+ className: cn("bg-surface-brand", className),
49
+ ...props,
50
+ children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [src ? /* @__PURE__ */ jsx(AvatarImage, {
51
+ src,
52
+ alt
53
+ }) : null, /* @__PURE__ */ jsx(AvatarFallback, {
54
+ className: "bg-surface-brand text-fg-on-brand",
55
+ children: initials ?? "?"
56
+ })] })
57
+ });
58
+ }
59
+ function ActivityTimelineConnector({ className, ...props }) {
60
+ return /* @__PURE__ */ jsx("span", {
61
+ "aria-hidden": "true",
62
+ "data-slot": "activity-timeline-connector",
63
+ className: cn("h-6 w-0.5 shrink-0 rounded-full bg-line-subtle", className),
64
+ ...props
65
+ });
66
+ }
67
+ function ActivityTimelineContent({ className, ...props }) {
68
+ return /* @__PURE__ */ jsx("div", {
69
+ "data-slot": "activity-timeline-content",
70
+ className: cn("flex min-w-0 flex-1 flex-col items-start gap-1", className),
71
+ ...props
72
+ });
73
+ }
74
+ function ActivityTimelineBadge({ className, icon, children, variant = "default", size = "sm", border = false, ...props }) {
75
+ return /* @__PURE__ */ jsxs(Badge, {
76
+ "data-slot": "activity-timeline-badge",
77
+ size,
78
+ variant,
79
+ border,
80
+ className: cn("min-h-0 py-1 text-gdt-xs font-semibold", className),
81
+ ...props,
82
+ children: [/* @__PURE__ */ jsx("span", {
83
+ "aria-hidden": "true",
84
+ className: "inline-flex shrink-0 items-center [&>svg]:size-3.5",
85
+ children: icon ?? /* @__PURE__ */ jsx(ChevronRightIcon, { className: "cn-rtl-flip" })
86
+ }), children]
87
+ });
88
+ }
89
+ function ActivityTimelineDescription({ className, ...props }) {
90
+ return /* @__PURE__ */ jsx("div", {
91
+ "data-slot": "activity-timeline-description",
92
+ className: cn("min-w-0 text-gdt-xs text-fg-secondary sm:text-[13px] sm:leading-[22px]", className),
93
+ ...props
94
+ });
95
+ }
96
+ //#endregion
97
+ export { ActivityTimeline, ActivityTimelineAvatar, ActivityTimelineBadge, ActivityTimelineConnector, ActivityTimelineContent, ActivityTimelineDescription, ActivityTimelineItem, ActivityTimelineList, ActivityTimelineRail, ActivityTimelineTitle };
package/dist/alert.d.ts CHANGED
@@ -1,18 +1,17 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import { VariantProps } from 'class-variance-authority';
3
- import * as React from 'react';
4
-
1
+ import { VariantProps } from "class-variance-authority";
2
+ import * as React from "react";
3
+ //#region src/alert.d.ts
5
4
  declare const alertVariants: (props?: ({
6
- variant?: "success" | "info" | "warning" | "error" | null | undefined;
7
- } & class_variance_authority_types.ClassProp) | undefined) => string;
5
+ variant?: "error" | "info" | "success" | "warning" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
7
  type AlertVariant = NonNullable<VariantProps<typeof alertVariants>["variant"]>;
9
8
  type AlertProps = React.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
10
- liveRegion?: "polite" | "assertive" | "off";
9
+ liveRegion?: "polite" | "assertive" | "off";
11
10
  };
12
11
  declare function Alert({ className, variant, liveRegion, role, ...props }: AlertProps): React.JSX.Element;
13
12
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
13
  declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
15
14
  declare function AlertActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
16
15
  declare function AlertClose({ className, type, children, "aria-label": ariaLabel, ...props }: React.ComponentProps<"button">): React.JSX.Element;
17
-
18
- export { Alert, AlertActions, AlertClose, AlertDescription, type AlertProps, AlertTitle, type AlertVariant, alertVariants };
16
+ //#endregion
17
+ export { Alert, AlertActions, AlertClose, AlertDescription, type AlertProps, AlertTitle, type AlertVariant, alertVariants };