@astra-kit/ui 0.0.0-stage → 0.0.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 (304) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +384 -2
  4. package/THIRD_PARTY_NOTICES.md +31 -0
  5. package/assets/fonts/geist-LICENSE.txt +93 -0
  6. package/assets/fonts/geist-latin-variable.woff2 +0 -0
  7. package/assets/fonts/ibm-plex-mono-latin-400.woff2 +0 -0
  8. package/assets/fonts/ibm-plex-mono-latin-500.woff2 +0 -0
  9. package/assets/fonts/ibmplexmono-LICENSE.txt +93 -0
  10. package/assets/fonts/inter-LICENSE.txt +93 -0
  11. package/assets/fonts/inter-latin-variable.woff2 +0 -0
  12. package/dist/adapters/unpic-image.d.ts +3 -0
  13. package/dist/adapters/unpic-image.js +98 -0
  14. package/dist/components/account-menu.d.ts +67 -0
  15. package/dist/components/account-menu.js +440 -0
  16. package/dist/components/action-button.d.ts +25 -0
  17. package/dist/components/action-button.js +264 -0
  18. package/dist/components/alert.d.ts +31 -0
  19. package/dist/components/alert.js +503 -0
  20. package/dist/components/animated-collapse.d.ts +19 -0
  21. package/dist/components/animated-collapse.js +170 -0
  22. package/dist/components/animated-count.d.ts +13 -0
  23. package/dist/components/animated-count.js +105 -0
  24. package/dist/components/animated-list-item.d.ts +25 -0
  25. package/dist/components/animated-list-item.js +134 -0
  26. package/dist/components/animated-theme-toggler.d.ts +12 -0
  27. package/dist/components/animated-theme-toggler.js +200 -0
  28. package/dist/components/avatar.d.ts +65 -0
  29. package/dist/components/avatar.js +463 -0
  30. package/dist/components/badge.d.ts +21 -0
  31. package/dist/components/badge.js +297 -0
  32. package/dist/components/button-interaction.d.ts +23 -0
  33. package/dist/components/button-interaction.js +22 -0
  34. package/dist/components/button-label.d.ts +8 -0
  35. package/dist/components/button-label.js +203 -0
  36. package/dist/components/button.d.ts +23 -0
  37. package/dist/components/button.js +145 -0
  38. package/dist/components/calendar.d.ts +47 -0
  39. package/dist/components/calendar.js +155 -0
  40. package/dist/components/card.d.ts +38 -0
  41. package/dist/components/card.js +904 -0
  42. package/dist/components/carousel.d.ts +71 -0
  43. package/dist/components/carousel.js +585 -0
  44. package/dist/components/checkbox.d.ts +15 -0
  45. package/dist/components/checkbox.js +324 -0
  46. package/dist/components/control-button.d.ts +16 -0
  47. package/dist/components/control-button.js +215 -0
  48. package/dist/components/data-table.d.ts +118 -0
  49. package/dist/components/data-table.js +895 -0
  50. package/dist/components/dialog-surface.d.ts +49 -0
  51. package/dist/components/dialog-surface.js +220 -0
  52. package/dist/components/dialog.d.ts +92 -0
  53. package/dist/components/dialog.js +320 -0
  54. package/dist/components/dropdown-menu.d.ts +57 -0
  55. package/dist/components/dropdown-menu.js +107 -0
  56. package/dist/components/field.d.ts +53 -0
  57. package/dist/components/field.js +710 -0
  58. package/dist/components/file-upload.d.ts +88 -0
  59. package/dist/components/file-upload.js +776 -0
  60. package/dist/components/filter-presets-bar.d.ts +73 -0
  61. package/dist/components/filter-presets-bar.js +510 -0
  62. package/dist/components/filter-query-bar.d.ts +21 -0
  63. package/dist/components/filter-query-bar.js +881 -0
  64. package/dist/components/filter-query-grammar.d.ts +188 -0
  65. package/dist/components/filter-query-grammar.js +875 -0
  66. package/dist/components/form.d.ts +29 -0
  67. package/dist/components/form.js +330 -0
  68. package/dist/components/highlighter.d.ts +15 -0
  69. package/dist/components/highlighter.js +152 -0
  70. package/dist/components/hover-card.d.ts +50 -0
  71. package/dist/components/hover-card.js +80 -0
  72. package/dist/components/input-group.d.ts +16 -0
  73. package/dist/components/input-group.js +277 -0
  74. package/dist/components/input.d.ts +17 -0
  75. package/dist/components/input.js +120 -0
  76. package/dist/components/label.d.ts +4 -0
  77. package/dist/components/label.js +43 -0
  78. package/dist/components/link.d.ts +9 -0
  79. package/dist/components/link.js +43 -0
  80. package/dist/components/morph-text.d.ts +14 -0
  81. package/dist/components/morph-text.js +210 -0
  82. package/dist/components/pagination.d.ts +59 -0
  83. package/dist/components/pagination.js +190 -0
  84. package/dist/components/popover.d.ts +17 -0
  85. package/dist/components/popover.js +40 -0
  86. package/dist/components/presence-swap.d.ts +22 -0
  87. package/dist/components/presence-swap.js +209 -0
  88. package/dist/components/primitives/alert-dialog.d.ts +68 -0
  89. package/dist/components/primitives/alert-dialog.js +629 -0
  90. package/dist/components/primitives/avatar.d.ts +46 -0
  91. package/dist/components/primitives/avatar.js +265 -0
  92. package/dist/components/primitives/calendar.d.ts +37 -0
  93. package/dist/components/primitives/calendar.js +1250 -0
  94. package/dist/components/primitives/carousel.d.ts +106 -0
  95. package/dist/components/primitives/carousel.js +928 -0
  96. package/dist/components/primitives/dialog.d.ts +62 -0
  97. package/dist/components/primitives/dialog.js +490 -0
  98. package/dist/components/primitives/dropdown-menu-items.d.ts +59 -0
  99. package/dist/components/primitives/dropdown-menu-items.js +265 -0
  100. package/dist/components/primitives/dropdown-menu.d.ts +64 -0
  101. package/dist/components/primitives/dropdown-menu.js +560 -0
  102. package/dist/components/primitives/hover-card.d.ts +50 -0
  103. package/dist/components/primitives/hover-card.js +507 -0
  104. package/dist/components/primitives/pagination.d.ts +65 -0
  105. package/dist/components/primitives/pagination.js +373 -0
  106. package/dist/components/primitives/popover.d.ts +22 -0
  107. package/dist/components/primitives/popover.js +213 -0
  108. package/dist/components/primitives/select.d.ts +37 -0
  109. package/dist/components/primitives/select.js +428 -0
  110. package/dist/components/primitives/tooltip.d.ts +30 -0
  111. package/dist/components/primitives/tooltip.js +277 -0
  112. package/dist/components/progress-ring.d.ts +20 -0
  113. package/dist/components/progress-ring.js +53 -0
  114. package/dist/components/radio-group.d.ts +34 -0
  115. package/dist/components/radio-group.js +392 -0
  116. package/dist/components/reaction-button.d.ts +30 -0
  117. package/dist/components/reaction-button.js +189 -0
  118. package/dist/components/rich-link-editor.d.ts +25 -0
  119. package/dist/components/rich-link-editor.js +320 -0
  120. package/dist/components/rich-markdown-content.d.ts +10 -0
  121. package/dist/components/rich-markdown-content.js +56 -0
  122. package/dist/components/rich-text-content.d.ts +19 -0
  123. package/dist/components/rich-text-content.js +26 -0
  124. package/dist/components/select.d.ts +55 -0
  125. package/dist/components/select.js +188 -0
  126. package/dist/components/separator.d.ts +3 -0
  127. package/dist/components/separator.js +48 -0
  128. package/dist/components/sheet.d.ts +19 -0
  129. package/dist/components/sheet.js +420 -0
  130. package/dist/components/sidebar-panel-context.d.ts +17 -0
  131. package/dist/components/sidebar-panel-context.js +14 -0
  132. package/dist/components/sidebar.d.ts +195 -0
  133. package/dist/components/sidebar.js +2041 -0
  134. package/dist/components/skeleton.d.ts +23 -0
  135. package/dist/components/skeleton.js +334 -0
  136. package/dist/components/split-button.d.ts +36 -0
  137. package/dist/components/split-button.js +306 -0
  138. package/dist/components/svgs/whatsappIcon.d.ts +3 -0
  139. package/dist/components/svgs/whatsappIcon.js +14 -0
  140. package/dist/components/switch.d.ts +13 -0
  141. package/dist/components/switch.js +444 -0
  142. package/dist/components/table.d.ts +10 -0
  143. package/dist/components/table.js +298 -0
  144. package/dist/components/tabs.d.ts +36 -0
  145. package/dist/components/tabs.js +636 -0
  146. package/dist/components/textarea.d.ts +16 -0
  147. package/dist/components/textarea.js +111 -0
  148. package/dist/components/themed-toaster.d.ts +7 -0
  149. package/dist/components/themed-toaster.js +86 -0
  150. package/dist/components/toaster.d.ts +12 -0
  151. package/dist/components/toaster.js +62 -0
  152. package/dist/components/tooltip.d.ts +43 -0
  153. package/dist/components/tooltip.js +65 -0
  154. package/dist/components/typing-animation.d.ts +34 -0
  155. package/dist/components/typing-animation.js +389 -0
  156. package/dist/constants/action-button.d.ts +20 -0
  157. package/dist/constants/action-button.js +17 -0
  158. package/dist/constants/alert.d.ts +16 -0
  159. package/dist/constants/alert.js +13 -0
  160. package/dist/constants/avatar.d.ts +38 -0
  161. package/dist/constants/avatar.js +32 -0
  162. package/dist/constants/badge.d.ts +6 -0
  163. package/dist/constants/badge.js +6 -0
  164. package/dist/constants/button.d.ts +16 -0
  165. package/dist/constants/button.js +16 -0
  166. package/dist/constants/calendar.d.ts +36 -0
  167. package/dist/constants/calendar.js +34 -0
  168. package/dist/constants/card.d.ts +23 -0
  169. package/dist/constants/card.js +20 -0
  170. package/dist/constants/carousel.d.ts +55 -0
  171. package/dist/constants/carousel.js +74 -0
  172. package/dist/constants/checkbox.d.ts +17 -0
  173. package/dist/constants/checkbox.js +17 -0
  174. package/dist/constants/dialog.d.ts +11 -0
  175. package/dist/constants/dialog.js +10 -0
  176. package/dist/constants/dropdown-menu.d.ts +10 -0
  177. package/dist/constants/dropdown-menu.js +37 -0
  178. package/dist/constants/field.d.ts +24 -0
  179. package/dist/constants/field.js +24 -0
  180. package/dist/constants/hover-card.d.ts +37 -0
  181. package/dist/constants/hover-card.js +85 -0
  182. package/dist/constants/morph-text.d.ts +13 -0
  183. package/dist/constants/morph-text.js +13 -0
  184. package/dist/constants/motion.d.ts +12 -0
  185. package/dist/constants/motion.js +12 -0
  186. package/dist/constants/pagination.d.ts +20 -0
  187. package/dist/constants/pagination.js +20 -0
  188. package/dist/constants/popover.d.ts +7 -0
  189. package/dist/constants/popover.js +33 -0
  190. package/dist/constants/radio-group.d.ts +10 -0
  191. package/dist/constants/radio-group.js +10 -0
  192. package/dist/constants/select.d.ts +7 -0
  193. package/dist/constants/select.js +34 -0
  194. package/dist/constants/sidebar.d.ts +9 -0
  195. package/dist/constants/sidebar.js +17 -0
  196. package/dist/constants/skeleton.d.ts +17 -0
  197. package/dist/constants/skeleton.js +17 -0
  198. package/dist/constants/split-button.d.ts +7 -0
  199. package/dist/constants/split-button.js +5 -0
  200. package/dist/constants/switch.d.ts +33 -0
  201. package/dist/constants/switch.js +41 -0
  202. package/dist/constants/tabs.d.ts +17 -0
  203. package/dist/constants/tabs.js +17 -0
  204. package/dist/constants/toast.d.ts +3 -0
  205. package/dist/constants/toast.js +3 -0
  206. package/dist/constants/tooltip.d.ts +13 -0
  207. package/dist/constants/tooltip.js +52 -0
  208. package/dist/hooks/use-horizontal-swipe.d.ts +23 -0
  209. package/dist/hooks/use-horizontal-swipe.js +80 -0
  210. package/dist/hooks/use-is-hydrated.d.ts +6 -0
  211. package/dist/hooks/use-is-hydrated.js +20 -0
  212. package/dist/hooks/use-mobile.d.ts +1 -0
  213. package/dist/hooks/use-mobile.js +19 -0
  214. package/dist/hooks/use-prefers-reduced-motion.d.ts +2 -0
  215. package/dist/hooks/use-prefers-reduced-motion.js +27 -0
  216. package/dist/hooks/use-rich-link-editor.d.ts +55 -0
  217. package/dist/hooks/use-rich-link-editor.js +515 -0
  218. package/dist/hooks/use-sidebar-persistence.d.ts +6 -0
  219. package/dist/hooks/use-sidebar-persistence.js +52 -0
  220. package/dist/hooks/use-today.d.ts +7 -0
  221. package/dist/hooks/use-today.js +50 -0
  222. package/dist/hooks/use-viewer-time-zone.d.ts +6 -0
  223. package/dist/hooks/use-viewer-time-zone.js +20 -0
  224. package/dist/hooks.d.ts +11 -0
  225. package/dist/hooks.js +11 -0
  226. package/dist/index.d.ts +71 -0
  227. package/dist/index.js +69 -0
  228. package/dist/lib/browser-clipboard.d.ts +13 -0
  229. package/dist/lib/browser-clipboard.js +48 -0
  230. package/dist/lib/column-filter-value.d.ts +12 -0
  231. package/dist/lib/column-filter-value.js +52 -0
  232. package/dist/lib/file-acceptance.d.ts +43 -0
  233. package/dist/lib/file-acceptance.js +107 -0
  234. package/dist/lib/format-file-size.d.ts +16 -0
  235. package/dist/lib/format-file-size.js +34 -0
  236. package/dist/lib/fuzzy-search.d.ts +17 -0
  237. package/dist/lib/fuzzy-search.js +183 -0
  238. package/dist/lib/horizontal-swipe.d.ts +23 -0
  239. package/dist/lib/horizontal-swipe.js +29 -0
  240. package/dist/lib/image-dimensions.d.ts +2 -0
  241. package/dist/lib/image-dimensions.js +7 -0
  242. package/dist/lib/name-initials.d.ts +7 -0
  243. package/dist/lib/name-initials.js +11 -0
  244. package/dist/lib/rich-text/link-markdown-constants.d.ts +147 -0
  245. package/dist/lib/rich-text/link-markdown-constants.js +458 -0
  246. package/dist/lib/rich-text/link-markdown-types.d.ts +53 -0
  247. package/dist/lib/rich-text/link-markdown-types.js +1 -0
  248. package/dist/lib/rich-text/link-markdown.d.ts +193 -0
  249. package/dist/lib/rich-text/link-markdown.js +592 -0
  250. package/dist/lib/rich-text/rich-markdown.d.ts +41 -0
  251. package/dist/lib/rich-text/rich-markdown.js +105 -0
  252. package/dist/lib/rich-text/rich-text-editor-dom.d.ts +26 -0
  253. package/dist/lib/rich-text/rich-text-editor-dom.js +79 -0
  254. package/dist/lib/toast-layer.d.ts +24 -0
  255. package/dist/lib/toast-layer.js +76 -0
  256. package/dist/lib/utils.d.ts +2 -0
  257. package/dist/lib/utils.js +2 -0
  258. package/dist/lib/year-month-filter.d.ts +16 -0
  259. package/dist/lib/year-month-filter.js +46 -0
  260. package/dist/motion/arc-floating-slot.d.ts +40 -0
  261. package/dist/motion/arc-floating-slot.js +177 -0
  262. package/dist/motion/arc-press.d.ts +6 -0
  263. package/dist/motion/arc-press.js +59 -0
  264. package/dist/motion/arc-swap.d.ts +22 -0
  265. package/dist/motion/arc-swap.js +49 -0
  266. package/dist/motion/arc-tokens.d.ts +53 -0
  267. package/dist/motion/arc-tokens.js +73 -0
  268. package/dist/motion/glide-indicator.d.ts +69 -0
  269. package/dist/motion/glide-indicator.js +309 -0
  270. package/dist/motion/glide-slot.d.ts +9 -0
  271. package/dist/motion/glide-slot.js +71 -0
  272. package/dist/motion/motion-slot.d.ts +12 -0
  273. package/dist/motion/motion-slot.js +376 -0
  274. package/dist/motion/overlay-warmth.d.ts +24 -0
  275. package/dist/motion/overlay-warmth.js +70 -0
  276. package/dist/motion/presence.d.ts +40 -0
  277. package/dist/motion/presence.js +101 -0
  278. package/dist/motion/surface-keyframes.d.ts +24 -0
  279. package/dist/motion/surface-keyframes.js +141 -0
  280. package/dist/motion/tokens.d.ts +81 -0
  281. package/dist/motion/tokens.js +67 -0
  282. package/dist/motion/use-attached-element.d.ts +7 -0
  283. package/dist/motion/use-attached-element.js +22 -0
  284. package/dist/motion/use-morph-width.d.ts +13 -0
  285. package/dist/motion/use-morph-width.js +59 -0
  286. package/dist/next.d.ts +14 -0
  287. package/dist/next.js +79 -0
  288. package/dist/providers/astra-ui-provider.d.ts +27 -0
  289. package/dist/providers/astra-ui-provider.js +100 -0
  290. package/dist/providers/native-provider.d.ts +4 -0
  291. package/dist/providers/native-provider.js +45 -0
  292. package/dist/sonner.d.ts +7 -0
  293. package/dist/sonner.js +8 -0
  294. package/dist/styles.css +2 -0
  295. package/dist/tanstack.d.ts +11 -0
  296. package/dist/tanstack.js +50 -0
  297. package/dist/theme.d.ts +3 -0
  298. package/dist/theme.js +1 -0
  299. package/dist/types/data-table.d.ts +27 -0
  300. package/dist/types/data-table.js +1 -0
  301. package/fonts.css +5 -0
  302. package/package.json +450 -4
  303. package/styles.css +4 -0
  304. package/theme.css +248 -0
@@ -0,0 +1,298 @@
1
+ "use client";
2
+ import { c as _c } from "react/compiler-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/utils.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ function Table(t0) {
7
+ const $ = _c(8);
8
+ let className;
9
+ let props;
10
+ if ($[0] !== t0) {
11
+ ({className, ...props} = t0);
12
+ $[0] = t0;
13
+ $[1] = className;
14
+ $[2] = props;
15
+ } else {
16
+ className = $[1];
17
+ props = $[2];
18
+ }
19
+ let t1;
20
+ if ($[3] !== className) {
21
+ t1 = cn("w-full caption-bottom text-sm", className);
22
+ $[3] = className;
23
+ $[4] = t1;
24
+ } else {
25
+ t1 = $[4];
26
+ }
27
+ let t2;
28
+ if ($[5] !== props || $[6] !== t1) {
29
+ t2 = /* @__PURE__ */ _jsx("div", {
30
+ "data-slot": "table-container",
31
+ className: "relative w-full overflow-x-auto",
32
+ children: /* @__PURE__ */ _jsx("table", {
33
+ "data-slot": "table",
34
+ className: t1,
35
+ ...props
36
+ })
37
+ });
38
+ $[5] = props;
39
+ $[6] = t1;
40
+ $[7] = t2;
41
+ } else {
42
+ t2 = $[7];
43
+ }
44
+ return t2;
45
+ }
46
+ function TableHeader(t0) {
47
+ const $ = _c(8);
48
+ let className;
49
+ let props;
50
+ if ($[0] !== t0) {
51
+ ({className, ...props} = t0);
52
+ $[0] = t0;
53
+ $[1] = className;
54
+ $[2] = props;
55
+ } else {
56
+ className = $[1];
57
+ props = $[2];
58
+ }
59
+ let t1;
60
+ if ($[3] !== className) {
61
+ t1 = cn("[&_tr]:border-b", className);
62
+ $[3] = className;
63
+ $[4] = t1;
64
+ } else {
65
+ t1 = $[4];
66
+ }
67
+ let t2;
68
+ if ($[5] !== props || $[6] !== t1) {
69
+ t2 = /* @__PURE__ */ _jsx("thead", {
70
+ "data-slot": "table-header",
71
+ className: t1,
72
+ ...props
73
+ });
74
+ $[5] = props;
75
+ $[6] = t1;
76
+ $[7] = t2;
77
+ } else {
78
+ t2 = $[7];
79
+ }
80
+ return t2;
81
+ }
82
+ function TableBody(t0) {
83
+ const $ = _c(8);
84
+ let className;
85
+ let props;
86
+ if ($[0] !== t0) {
87
+ ({className, ...props} = t0);
88
+ $[0] = t0;
89
+ $[1] = className;
90
+ $[2] = props;
91
+ } else {
92
+ className = $[1];
93
+ props = $[2];
94
+ }
95
+ let t1;
96
+ if ($[3] !== className) {
97
+ t1 = cn("[&_tr:last-child]:border-0", className);
98
+ $[3] = className;
99
+ $[4] = t1;
100
+ } else {
101
+ t1 = $[4];
102
+ }
103
+ let t2;
104
+ if ($[5] !== props || $[6] !== t1) {
105
+ t2 = /* @__PURE__ */ _jsx("tbody", {
106
+ "data-slot": "table-body",
107
+ className: t1,
108
+ ...props
109
+ });
110
+ $[5] = props;
111
+ $[6] = t1;
112
+ $[7] = t2;
113
+ } else {
114
+ t2 = $[7];
115
+ }
116
+ return t2;
117
+ }
118
+ function TableFooter(t0) {
119
+ const $ = _c(8);
120
+ let className;
121
+ let props;
122
+ if ($[0] !== t0) {
123
+ ({className, ...props} = t0);
124
+ $[0] = t0;
125
+ $[1] = className;
126
+ $[2] = props;
127
+ } else {
128
+ className = $[1];
129
+ props = $[2];
130
+ }
131
+ let t1;
132
+ if ($[3] !== className) {
133
+ t1 = cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className);
134
+ $[3] = className;
135
+ $[4] = t1;
136
+ } else {
137
+ t1 = $[4];
138
+ }
139
+ let t2;
140
+ if ($[5] !== props || $[6] !== t1) {
141
+ t2 = /* @__PURE__ */ _jsx("tfoot", {
142
+ "data-slot": "table-footer",
143
+ className: t1,
144
+ ...props
145
+ });
146
+ $[5] = props;
147
+ $[6] = t1;
148
+ $[7] = t2;
149
+ } else {
150
+ t2 = $[7];
151
+ }
152
+ return t2;
153
+ }
154
+ function TableRow(t0) {
155
+ const $ = _c(8);
156
+ let className;
157
+ let props;
158
+ if ($[0] !== t0) {
159
+ ({className, ...props} = t0);
160
+ $[0] = t0;
161
+ $[1] = className;
162
+ $[2] = props;
163
+ } else {
164
+ className = $[1];
165
+ props = $[2];
166
+ }
167
+ let t1;
168
+ if ($[3] !== className) {
169
+ t1 = cn("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", className);
170
+ $[3] = className;
171
+ $[4] = t1;
172
+ } else {
173
+ t1 = $[4];
174
+ }
175
+ let t2;
176
+ if ($[5] !== props || $[6] !== t1) {
177
+ t2 = /* @__PURE__ */ _jsx("tr", {
178
+ "data-slot": "table-row",
179
+ className: t1,
180
+ ...props
181
+ });
182
+ $[5] = props;
183
+ $[6] = t1;
184
+ $[7] = t2;
185
+ } else {
186
+ t2 = $[7];
187
+ }
188
+ return t2;
189
+ }
190
+ function TableHead(t0) {
191
+ const $ = _c(8);
192
+ let className;
193
+ let props;
194
+ if ($[0] !== t0) {
195
+ ({className, ...props} = t0);
196
+ $[0] = t0;
197
+ $[1] = className;
198
+ $[2] = props;
199
+ } else {
200
+ className = $[1];
201
+ props = $[2];
202
+ }
203
+ let t1;
204
+ if ($[3] !== className) {
205
+ t1 = cn("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", className);
206
+ $[3] = className;
207
+ $[4] = t1;
208
+ } else {
209
+ t1 = $[4];
210
+ }
211
+ let t2;
212
+ if ($[5] !== props || $[6] !== t1) {
213
+ t2 = /* @__PURE__ */ _jsx("th", {
214
+ "data-slot": "table-head",
215
+ className: t1,
216
+ ...props
217
+ });
218
+ $[5] = props;
219
+ $[6] = t1;
220
+ $[7] = t2;
221
+ } else {
222
+ t2 = $[7];
223
+ }
224
+ return t2;
225
+ }
226
+ function TableCell(t0) {
227
+ const $ = _c(8);
228
+ let className;
229
+ let props;
230
+ if ($[0] !== t0) {
231
+ ({className, ...props} = t0);
232
+ $[0] = t0;
233
+ $[1] = className;
234
+ $[2] = props;
235
+ } else {
236
+ className = $[1];
237
+ props = $[2];
238
+ }
239
+ let t1;
240
+ if ($[3] !== className) {
241
+ t1 = cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className);
242
+ $[3] = className;
243
+ $[4] = t1;
244
+ } else {
245
+ t1 = $[4];
246
+ }
247
+ let t2;
248
+ if ($[5] !== props || $[6] !== t1) {
249
+ t2 = /* @__PURE__ */ _jsx("td", {
250
+ "data-slot": "table-cell",
251
+ className: t1,
252
+ ...props
253
+ });
254
+ $[5] = props;
255
+ $[6] = t1;
256
+ $[7] = t2;
257
+ } else {
258
+ t2 = $[7];
259
+ }
260
+ return t2;
261
+ }
262
+ function TableCaption(t0) {
263
+ const $ = _c(8);
264
+ let className;
265
+ let props;
266
+ if ($[0] !== t0) {
267
+ ({className, ...props} = t0);
268
+ $[0] = t0;
269
+ $[1] = className;
270
+ $[2] = props;
271
+ } else {
272
+ className = $[1];
273
+ props = $[2];
274
+ }
275
+ let t1;
276
+ if ($[3] !== className) {
277
+ t1 = cn("mt-4 text-sm text-muted-foreground", className);
278
+ $[3] = className;
279
+ $[4] = t1;
280
+ } else {
281
+ t1 = $[4];
282
+ }
283
+ let t2;
284
+ if ($[5] !== props || $[6] !== t1) {
285
+ t2 = /* @__PURE__ */ _jsx("caption", {
286
+ "data-slot": "table-caption",
287
+ className: t1,
288
+ ...props
289
+ });
290
+ $[5] = props;
291
+ $[6] = t1;
292
+ $[7] = t2;
293
+ } else {
294
+ t2 = $[7];
295
+ }
296
+ return t2;
297
+ }
298
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Arc's Tabs (https://uiarc.dev, MIT License, see THIRD_PARTY_NOTICES.md): its segmented list on Arc's tokens, a
3
+ * highlight that glides between triggers with Arc's morph spring, a list that scrolls sideways and keeps the active
4
+ * tab in view, and panels that slide in from the side of the chosen tab while their height morphs from the previous
5
+ * panel. Radix keeps the roles, keyboard navigation and controlled or uncontrolled value.
6
+ */
7
+ import { type ComponentProps } from "react";
8
+ import { Tabs as TabsPrimitive } from "radix-ui";
9
+ /**
10
+ * Groups a tab list with its panels. Accepts Radix's `value`/`defaultValue`/`onValueChange` contract unchanged.
11
+ * @param props - Radix root props, including `orientation` and `ref`.
12
+ * @returns The tabs root.
13
+ */
14
+ declare function Tabs({ className, orientation, value, defaultValue, onValueChange, ref, ...props }: ComponentProps<typeof TabsPrimitive.Root>): import("react").JSX.Element;
15
+ /**
16
+ * Holds the triggers. The active highlight glides to the newly selected trigger and the list scrolls to keep the
17
+ * active or focused trigger visible.
18
+ * @param props - Radix list props, including `aria-label`, `loop` and `ref`.
19
+ * @returns The tab list.
20
+ */
21
+ declare function TabsList({ className, ref, onFocusCapture, ...props }: ComponentProps<typeof TabsPrimitive.List>): import("react").JSX.Element;
22
+ /**
23
+ * Selects a panel. Arc's trigger: muted label, accent label once active, hover only on fine pointers and the
24
+ * shared keyboard focus outline.
25
+ * @param props - Radix trigger props, including `value`.
26
+ * @returns The tab.
27
+ */
28
+ declare function TabsTrigger({ className, value, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
29
+ /**
30
+ * Content of one tab. Inside `Tabs` it animates between panels; with `forceMount` it stays mounted and switches
31
+ * without motion, as Radix renders it. With `asChild` the consumer's element is the panel in both cases.
32
+ * @param props - Radix content props, including `value` and `forceMount`.
33
+ * @returns The tab panel, or nothing while another tab is active.
34
+ */
35
+ declare function TabsContent({ className, value, forceMount, asChild, children, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
36
+ export { Tabs, TabsList, TabsTrigger, TabsContent };