@42-central/ui-react 0.23.0 → 0.25.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 (215) hide show
  1. package/dist/{chunk-FUNTJZX7.js → chunk-2CL3FKEY.js} +3 -3
  2. package/dist/{chunk-FUNTJZX7.js.map → chunk-2CL3FKEY.js.map} +1 -1
  3. package/dist/{chunk-OZMSXYBX.js → chunk-36NWC4GV.js} +3 -3
  4. package/dist/{chunk-OZMSXYBX.js.map → chunk-36NWC4GV.js.map} +1 -1
  5. package/dist/{chunk-4FEOMQYR.js → chunk-54W6VAI3.js} +5 -5
  6. package/dist/{chunk-4FEOMQYR.js.map → chunk-54W6VAI3.js.map} +1 -1
  7. package/dist/{chunk-SZEOTXRZ.js → chunk-6II2DVYR.js} +5 -5
  8. package/dist/{chunk-SZEOTXRZ.js.map → chunk-6II2DVYR.js.map} +1 -1
  9. package/dist/{chunk-DJLNGWMM.js → chunk-6IRMKF5T.js} +3 -3
  10. package/dist/{chunk-DJLNGWMM.js.map → chunk-6IRMKF5T.js.map} +1 -1
  11. package/dist/{chunk-YPFSRZ3T.js → chunk-6UIQJJNJ.js} +3 -3
  12. package/dist/{chunk-YPFSRZ3T.js.map → chunk-6UIQJJNJ.js.map} +1 -1
  13. package/dist/{chunk-DT6LKNZF.js → chunk-7247WBTV.js} +5 -4
  14. package/dist/chunk-7247WBTV.js.map +1 -0
  15. package/dist/{chunk-6VYGK3Q3.js → chunk-7E7JNWOC.js} +16 -21
  16. package/dist/chunk-7E7JNWOC.js.map +1 -0
  17. package/dist/{chunk-C4NFRSOR.js → chunk-7HZBD4YZ.js} +4 -4
  18. package/dist/{chunk-C4NFRSOR.js.map → chunk-7HZBD4YZ.js.map} +1 -1
  19. package/dist/{chunk-JVG5ISPT.js → chunk-AHKMN3YQ.js} +3 -3
  20. package/dist/{chunk-JVG5ISPT.js.map → chunk-AHKMN3YQ.js.map} +1 -1
  21. package/dist/{chunk-UAYENYS2.js → chunk-AKXALCUN.js} +3 -3
  22. package/dist/{chunk-UAYENYS2.js.map → chunk-AKXALCUN.js.map} +1 -1
  23. package/dist/{chunk-BE2LWUHY.js → chunk-BMEJBY6H.js} +5 -3
  24. package/dist/chunk-BMEJBY6H.js.map +1 -0
  25. package/dist/{chunk-MXAACRWE.js → chunk-E52Z2FKU.js} +5 -5
  26. package/dist/{chunk-MXAACRWE.js.map → chunk-E52Z2FKU.js.map} +1 -1
  27. package/dist/chunk-F374BNL4.js +129 -0
  28. package/dist/chunk-F374BNL4.js.map +1 -0
  29. package/dist/{chunk-MRAJ45IM.js → chunk-FZSLSUSX.js} +4 -4
  30. package/dist/{chunk-MRAJ45IM.js.map → chunk-FZSLSUSX.js.map} +1 -1
  31. package/dist/{chunk-3L5GLI67.js → chunk-I4B3N3UX.js} +3 -3
  32. package/dist/{chunk-3L5GLI67.js.map → chunk-I4B3N3UX.js.map} +1 -1
  33. package/dist/{chunk-IPYHTCFL.js → chunk-IUK7OJXZ.js} +3 -3
  34. package/dist/{chunk-IPYHTCFL.js.map → chunk-IUK7OJXZ.js.map} +1 -1
  35. package/dist/{chunk-2MXWEIMD.js → chunk-KKLCHLCZ.js} +12 -11
  36. package/dist/chunk-KKLCHLCZ.js.map +1 -0
  37. package/dist/{chunk-YWTOW7PZ.js → chunk-LHUWOA2U.js} +8 -8
  38. package/dist/{chunk-YWTOW7PZ.js.map → chunk-LHUWOA2U.js.map} +1 -1
  39. package/dist/{chunk-6N6J2DOE.js → chunk-LIZWCWED.js} +3 -3
  40. package/dist/{chunk-6N6J2DOE.js.map → chunk-LIZWCWED.js.map} +1 -1
  41. package/dist/{chunk-O7LS6OZR.js → chunk-LMCUGYHT.js} +3 -3
  42. package/dist/{chunk-O7LS6OZR.js.map → chunk-LMCUGYHT.js.map} +1 -1
  43. package/dist/{chunk-DHJB4UJD.js → chunk-N5M4PDBK.js} +4 -4
  44. package/dist/{chunk-DHJB4UJD.js.map → chunk-N5M4PDBK.js.map} +1 -1
  45. package/dist/{chunk-DA4QII2N.js → chunk-NLSJ6T7V.js} +4 -4
  46. package/dist/{chunk-DA4QII2N.js.map → chunk-NLSJ6T7V.js.map} +1 -1
  47. package/dist/{chunk-UT3TOV2Q.js → chunk-OVT2KZHY.js} +3 -3
  48. package/dist/{chunk-UT3TOV2Q.js.map → chunk-OVT2KZHY.js.map} +1 -1
  49. package/dist/{chunk-SVKN5ZHX.js → chunk-PEHFWGTT.js} +16 -13
  50. package/dist/chunk-PEHFWGTT.js.map +1 -0
  51. package/dist/{chunk-J44FJ7PH.js → chunk-PFZMB3US.js} +4 -4
  52. package/dist/{chunk-J44FJ7PH.js.map → chunk-PFZMB3US.js.map} +1 -1
  53. package/dist/{chunk-IRNF274I.js → chunk-PI7X5YFJ.js} +3 -3
  54. package/dist/{chunk-IRNF274I.js.map → chunk-PI7X5YFJ.js.map} +1 -1
  55. package/dist/{chunk-F2FSHVO5.js → chunk-QZ4N5LYG.js} +7 -7
  56. package/dist/{chunk-F2FSHVO5.js.map → chunk-QZ4N5LYG.js.map} +1 -1
  57. package/dist/{chunk-E5H3YWZV.js → chunk-SAXWCGWR.js} +3 -3
  58. package/dist/{chunk-E5H3YWZV.js.map → chunk-SAXWCGWR.js.map} +1 -1
  59. package/dist/{chunk-SWVUXEBT.js → chunk-SCXXJDKQ.js} +3 -3
  60. package/dist/{chunk-SWVUXEBT.js.map → chunk-SCXXJDKQ.js.map} +1 -1
  61. package/dist/{chunk-D3JYDAUZ.js → chunk-T44RW5DW.js} +4 -4
  62. package/dist/{chunk-D3JYDAUZ.js.map → chunk-T44RW5DW.js.map} +1 -1
  63. package/dist/{chunk-FB2G4LNH.js → chunk-UDCCOUWR.js} +5 -5
  64. package/dist/{chunk-FB2G4LNH.js.map → chunk-UDCCOUWR.js.map} +1 -1
  65. package/dist/{chunk-TCFB23JT.js → chunk-WERJ44ZN.js} +3 -3
  66. package/dist/{chunk-TCFB23JT.js.map → chunk-WERJ44ZN.js.map} +1 -1
  67. package/dist/{chunk-QNKD2SQM.js → chunk-X3YIHN2U.js} +5 -5
  68. package/dist/{chunk-QNKD2SQM.js.map → chunk-X3YIHN2U.js.map} +1 -1
  69. package/dist/{chunk-VD6PB3VA.js → chunk-X6DESK37.js} +12 -3
  70. package/dist/chunk-X6DESK37.js.map +1 -0
  71. package/dist/{chunk-7AQ4MN4M.js → chunk-XUFCI262.js} +4 -4
  72. package/dist/{chunk-7AQ4MN4M.js.map → chunk-XUFCI262.js.map} +1 -1
  73. package/dist/{chunk-47LEAR6G.js → chunk-Y2G47ARQ.js} +6 -6
  74. package/dist/{chunk-47LEAR6G.js.map → chunk-Y2G47ARQ.js.map} +1 -1
  75. package/dist/{chunk-F342ZT7O.js → chunk-ZVECQBGG.js} +13 -7
  76. package/dist/chunk-ZVECQBGG.js.map +1 -0
  77. package/dist/components/action-icon/action-icon.d.ts.map +1 -1
  78. package/dist/components/action-icon/index.js +1 -1
  79. package/dist/components/alert/index.js +1 -1
  80. package/dist/components/ambient-background/ambient-background.d.ts +14 -3
  81. package/dist/components/ambient-background/ambient-background.d.ts.map +1 -1
  82. package/dist/components/ambient-background/index.js +225 -2
  83. package/dist/components/ambient-background/index.js.map +1 -1
  84. package/dist/components/ambient-background/starfield.d.ts +13 -0
  85. package/dist/components/ambient-background/starfield.d.ts.map +1 -0
  86. package/dist/components/app-shell/index.js +4 -4
  87. package/dist/components/autocomplete/index.js +3 -3
  88. package/dist/components/avatar/index.js +2 -2
  89. package/dist/components/badge/badge.d.ts.map +1 -1
  90. package/dist/components/badge/index.js +1 -1
  91. package/dist/components/button/index.js +1 -1
  92. package/dist/components/button-multi-select/index.js +3 -3
  93. package/dist/components/button-select/index.js +3 -3
  94. package/dist/components/calendar/index.js +4 -4
  95. package/dist/components/calendar-heatmap/index.js +2 -2
  96. package/dist/components/camera/index.js +10 -10
  97. package/dist/components/card/card.d.ts.map +1 -1
  98. package/dist/components/card/index.js +1 -1
  99. package/dist/components/carousel/index.js +2 -2
  100. package/dist/components/checkbox/checkbox.d.ts +3 -2
  101. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  102. package/dist/components/checkbox/index.js +2 -2
  103. package/dist/components/choice-card-group/index.js +2 -2
  104. package/dist/components/choice-card-group/index.js.map +1 -1
  105. package/dist/components/clipboard/index.js +3 -3
  106. package/dist/components/code-block/code-block.d.ts +6 -3
  107. package/dist/components/code-block/code-block.d.ts.map +1 -1
  108. package/dist/components/code-block/highlighter.d.ts +16 -15
  109. package/dist/components/code-block/highlighter.d.ts.map +1 -1
  110. package/dist/components/code-block/index.d.ts +2 -1
  111. package/dist/components/code-block/index.d.ts.map +1 -1
  112. package/dist/components/code-block/index.js +81 -10
  113. package/dist/components/code-block/index.js.map +1 -1
  114. package/dist/components/code-block/languages.d.ts +61 -0
  115. package/dist/components/code-block/languages.d.ts.map +1 -0
  116. package/dist/components/code-block/static.d.ts +2 -1
  117. package/dist/components/code-block/static.d.ts.map +1 -1
  118. package/dist/components/code-block/static.js +99 -10
  119. package/dist/components/code-block/static.js.map +1 -1
  120. package/dist/components/combobox/index.js +3 -3
  121. package/dist/components/combobox-list/index.js +5 -5
  122. package/dist/components/compare/index.js +2 -2
  123. package/dist/components/data-table/index.js +30 -30
  124. package/dist/components/data-table/index.js.map +1 -1
  125. package/dist/components/date-picker/index.js +12 -12
  126. package/dist/components/download-button/index.js +2 -2
  127. package/dist/components/drawer/index.js +4 -4
  128. package/dist/components/field/field.d.ts +3 -0
  129. package/dist/components/field/field.d.ts.map +1 -1
  130. package/dist/components/field/index.js +1 -1
  131. package/dist/components/file-item/index.js +5 -5
  132. package/dist/components/file-preview/index.js +5 -5
  133. package/dist/components/file-trigger/index.js +2 -2
  134. package/dist/components/file-upload/index.js +6 -6
  135. package/dist/components/gallery/index.js +2 -2
  136. package/dist/components/geodesic/a11y.d.ts +3 -3
  137. package/dist/components/geodesic/a11y.d.ts.map +1 -1
  138. package/dist/components/image-cropper/index.js +7 -7
  139. package/dist/components/indicator/index.js +1 -1
  140. package/dist/components/input/index.js +2 -2
  141. package/dist/components/kbd/index.js +3 -3
  142. package/dist/components/kbd/kbd.d.ts.map +1 -1
  143. package/dist/components/lightbox/index.js +7 -7
  144. package/dist/components/menu/index.js +2 -2
  145. package/dist/components/modal/index.js +4 -4
  146. package/dist/components/multi-combobox-list/index.js +5 -5
  147. package/dist/components/multi-select/index.js +6 -6
  148. package/dist/components/number-input/index.js +3 -3
  149. package/dist/components/overlays/index.js +6 -6
  150. package/dist/components/password-input/index.js +3 -3
  151. package/dist/components/photo-capture/index.js +14 -14
  152. package/dist/components/pills-input/index.js +5 -5
  153. package/dist/components/pin-input/index.js +2 -2
  154. package/dist/components/radio-group/index.js +1 -1
  155. package/dist/components/rating/index.js +1 -1
  156. package/dist/components/schedule/index.js +5 -5
  157. package/dist/components/segment-group/index.js +4 -4
  158. package/dist/components/select/index.js +4 -4
  159. package/dist/components/slider/index.js +2 -2
  160. package/dist/components/spotlight/index.js +9 -9
  161. package/dist/components/switch/index.js +14 -19
  162. package/dist/components/switch/index.js.map +1 -1
  163. package/dist/components/switch/switch.d.ts +1 -0
  164. package/dist/components/switch/switch.d.ts.map +1 -1
  165. package/dist/components/table/index.js +1 -1
  166. package/dist/components/table/table.d.ts.map +1 -1
  167. package/dist/components/tabs/index.js +3 -3
  168. package/dist/components/tags-input/index.js +5 -5
  169. package/dist/components/text-input/index.js +2 -2
  170. package/dist/components/textarea/index.js +2 -2
  171. package/dist/components/theme-icon/index.js +1 -1
  172. package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
  173. package/dist/components/time-input/index.js +7 -7
  174. package/dist/components/tree-multi-select/index.js +6 -6
  175. package/dist/components/tree-select/index.js +3 -3
  176. package/dist/index.js +4 -4
  177. package/dist/theme.css +103 -23
  178. package/package.json +1 -1
  179. package/src/components/action-icon/action-icon.tsx +3 -1
  180. package/src/components/ambient-background/ambient-background.test.tsx +59 -0
  181. package/src/components/ambient-background/ambient-background.tsx +15 -2
  182. package/src/components/ambient-background/starfield.tsx +333 -0
  183. package/src/components/badge/badge.tsx +11 -6
  184. package/src/components/button/button.tsx +1 -1
  185. package/src/components/card/card.tsx +10 -9
  186. package/src/components/checkbox/checkbox.test.tsx +17 -9
  187. package/src/components/checkbox/checkbox.tsx +26 -27
  188. package/src/components/choice-card-group/choice-card-group.tsx +3 -3
  189. package/src/components/code-block/code-block.tsx +7 -4
  190. package/src/components/code-block/highlighter.test.ts +79 -1
  191. package/src/components/code-block/highlighter.ts +76 -30
  192. package/src/components/code-block/index.ts +2 -0
  193. package/src/components/code-block/languages.ts +63 -0
  194. package/src/components/code-block/static.tsx +2 -1
  195. package/src/components/data-table/data-table-pagination.tsx +5 -5
  196. package/src/components/data-table/data-table-stack.tsx +2 -2
  197. package/src/components/field/field.tsx +14 -0
  198. package/src/components/kbd/kbd.tsx +2 -1
  199. package/src/components/switch/switch.test.tsx +15 -0
  200. package/src/components/switch/switch.tsx +27 -27
  201. package/src/components/table/table.test.tsx +1 -1
  202. package/src/components/table/table.tsx +14 -11
  203. package/src/components/theme-icon/theme-icon.tsx +46 -12
  204. package/src/icon-stroke.test.tsx +2 -0
  205. package/src/theme.css +103 -23
  206. package/src/theme.test.ts +10 -2
  207. package/dist/chunk-2MXWEIMD.js.map +0 -1
  208. package/dist/chunk-6VYGK3Q3.js.map +0 -1
  209. package/dist/chunk-7CNDZZZ6.js +0 -95
  210. package/dist/chunk-7CNDZZZ6.js.map +0 -1
  211. package/dist/chunk-BE2LWUHY.js.map +0 -1
  212. package/dist/chunk-DT6LKNZF.js.map +0 -1
  213. package/dist/chunk-F342ZT7O.js.map +0 -1
  214. package/dist/chunk-SVKN5ZHX.js.map +0 -1
  215. package/dist/chunk-VD6PB3VA.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/table/table.tsx"],"names":[],"mappings":";;;;;;;;AA+BA,IAAM,cAAA,GAAiB,EAAA;AAAA,EACrB,qDAAA;AAAA;AAAA;AAAA,EAGA;AACF,CAAA;AAcA,IAAM,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AAAA,EACP,OAAA,EAAS,YAAA;AAAA,EACT,IAAA,EAAM,SAAA;AAAA,EACN,IAAA,EAAM,SAAA;AAAA,EACN,IAAA,EAAM,SAAA;AAAA,EACN,GAAA,EAAK,QAAA;AAAA,EACL,UAAA,EAAY,eAAA;AAAA,EACZ,IAAA,EAAM;AACR,CAAC","file":"chunk-SVKN5ZHX.js","sourcesContent":["import { ark, type HTMLArkProps } from \"@ark-ui/react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../lib/cn\"\nimport { focusStyles } from \"../../lib/focus-styles\"\nimport { props } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\n\n/**\n * The outermost element: a bordered, rounded surface that `overflow-hidden`\n * clips. Clipping is what keeps the rounded corners intact once the inner\n * scroll region shows a scrollbar (a scrollbar on the *rounded* element would\n * otherwise square off its corners). `flex flex-col` lets an optional\n * `Table.Toolbar` stack above the scroll region.\n *\n * `contain-layout` stops a bug that only shows up when this sits inside an\n * ancestor chain with no *definite* height (e.g. a CSS Grid track sized off\n * `min-height`, not `height` — common when a page fills the viewport via a\n * grid). Without it, a browser can size that indefinite ancestor off this\n * box's unclipped descendants' natural size — the *actual* content behind\n * an internal `overflow-auto`/`max-h-*` scroll region, not its rendered,\n * already-clipped size — inflating the whole page's scroll height in\n * proportion to row count despite this box's own height staying correct.\n * `contain: layout` declares this subtree's size as fully self-contained, so\n * an indefinite ancestor sizes off its real (bounded) box instead. Doesn't\n * affect `stickyHeader`/`stickyFooter` (governed by the nearest *scrolling*\n * ancestor, not containing-block/layout-containment rules) or the absolute-\n * positioned `.table-fade-*` overlays (already resolve against\n * `.table-scroll-frame`'s own `position: relative` in theme.css).\n */\nconst tableContainer = cn(\n \"flex w-full flex-col overflow-hidden contain-layout\",\n // Brand-derived border, matching InputBase/Popover/Modal/Drawer's shell\n // (border-brand-900/20 dark:border-white/15) rather than a neutral gray.\n \"rounded-sm border border-brand-900/20 dark:border-white/15\",\n)\n\n/**\n * All table styling rides on the container as descendant-selector classes, so\n * the part components stay dumb and `size` / `striped` / sticky can live on\n * `<Table>` (the root) without React context — keeping the whole thing a pure\n * Server Component. Every variant value is a static class string so Tailwind\n * v4's scanner keeps it.\n *\n * The `<table>` uses `border-collapse: separate` (see `TableContent`): collapsed\n * borders detach from sticky `<thead>` / `<tfoot>` while scrolling, so the\n * header/footer separators are cell borders (`thead th` bottom, `tfoot td/th`\n * top) that stay put when pinned.\n */\nconst tableVariants = cva(\n [\n // Row separators — on cells, since separate-mode ignores <tr> borders.\n \"[&_tbody_tr:not(:last-child)_td]:border-b\",\n \"[&_tbody_td]:border-brand-900/20 dark:[&_tbody_td]:border-white/15\",\n // Cells\n \"[&_td]:align-middle\",\n \"[&_th]:text-start [&_th]:align-middle [&_th]:font-medium [&_th]:text-brand-950 dark:[&_th]:text-white\",\n // Header — subtle fill + a bottom separator that survives sticky. Same\n // brand-tinted fill Popover/Modal/Drawer use for their own surface, at\n // the same /90 light /85 dark opacity recipe.\n \"[&_thead]:bg-brand-50/90 dark:[&_thead]:bg-brand-950/85\",\n \"[&_thead_th]:border-b [&_thead_th]:border-brand-900/20 dark:[&_thead_th]:border-white/15\",\n // Footer — subtle fill + a top separator that survives sticky.\n \"[&_tfoot]:bg-brand-50/90 dark:[&_tfoot]:bg-brand-950/85 [&_tfoot]:font-medium\",\n \"[&_tfoot_th]:border-t [&_tfoot_td]:border-t\",\n \"[&_tfoot_th]:border-brand-900/20 [&_tfoot_td]:border-brand-900/20 dark:[&_tfoot_th]:border-white/15 dark:[&_tfoot_td]:border-white/15\",\n // Excludes a `data-placeholder` row (an empty/error/loading state, e.g.\n // `DataTable`'s) — it has no row to hover, so it shouldn't tint like one.\n // Black/white wash, same convention as Popover/Menu/TreeSelect's own row\n // highlight — background-dependent instead of a fixed per-theme gray.\n \"[&_tbody_tr:not([data-placeholder]):hover]:bg-black/5! dark:[&_tbody_tr:not([data-placeholder]):hover]:bg-white/8! [&_tbody_tr]:transition-colors\",\n ],\n {\n variants: {\n // Cell padding + text scale, keyed to the kit's canonical `Size` scale.\n size: {\n xs: \"text-xs [&_th]:px-2 [&_td]:px-2 [&_th]:py-1 [&_td]:py-1\",\n sm: \"text-sm [&_th]:px-2.5 [&_td]:px-2.5 [&_th]:py-1.5 [&_td]:py-1.5\",\n md: \"text-sm [&_th]:px-3 [&_td]:px-3 [&_th]:py-2.5 [&_td]:py-2.5\",\n lg: \"text-base [&_th]:px-4 [&_td]:px-4 [&_th]:py-3 [&_td]:py-3\",\n xl: \"text-base [&_th]:px-4 [&_td]:px-4 [&_th]:py-4 [&_td]:py-4\",\n },\n striped: {\n true: \"[&_tbody_tr:nth-child(even)]:bg-black/3 dark:[&_tbody_tr:nth-child(even)]:bg-white/4\",\n false: \"\",\n },\n },\n defaultVariants: { size: \"md\", striped: false },\n },\n)\n\n/** Pin the whole `<thead>` to the top of the scroll region; `backdrop-blur`\n * keeps scrolled body rows legible behind the translucent header fill. */\nconst stickyHeaderClasses =\n \"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:backdrop-blur-lg\"\n\n/** Pin the whole `<tfoot>` (e.g. a totals row) to the bottom of the scroll region. */\nconst stickyFooterClasses =\n \"[&_tfoot]:sticky [&_tfoot]:bottom-0 [&_tfoot]:z-10 [&_tfoot]:backdrop-blur-lg\"\n\n/** `Table`'s density scale — the kit's canonical `Size` (xs–xl). */\nexport type TableSize = Size\n\nexport type TableProps = HTMLArkProps<\"div\"> &\n VariantProps<typeof tableVariants> &\n WithTestId & {\n /** Pins the header row during vertical scroll. Needs a bounded height —\n * set `max-h-*` on `Table` or `Table.Content`. */\n stickyHeader?: boolean\n /** Pins a `Table.Foot` row (e.g. totals) to the bottom during vertical\n * scroll. Same bounded-height requirement as `stickyHeader`. */\n stickyFooter?: boolean\n }\n\n/**\n * Table — a dumb, styled semantic `<table>` inside a bordered, rounded surface.\n * Pure React Server Component (no `\"use client\"`): static markup, no state, so\n * it's safe in an RSC tree and usable for static / MDX tables. Composed from\n * namespaced parts: an optional non-table header (`Table.Toolbar` +\n * `Table.Title` for a title and actions), a `Table.Content` scroll region that\n * holds the `<table>`, and the semantic parts `Table.Head` / `Table.Body` /\n * `Table.Foot` / `Table.Row` / `Table.HeaderCell` / `Table.Cell`.\n *\n * Density (`size`), `striped`, and `stickyHeader` / `stickyFooter` ride on\n * `<Table>` and style the table via descendant selectors. To pin a header or\n * footer, give the scroll region a bounded height (`max-h-*` on `Table` or\n * `Table.Content`). The rounded border is `overflow-hidden`, so the corners\n * stay intact even once a scrollbar appears. There is no `variant`×`color`\n * axis — a table retints from `:root` slot vars via CSS.\n *\n * <Table striped size=\"sm\" stickyHeader className=\"max-h-80\">\n * <Table.Toolbar>\n * <Table.Title>Users</Table.Title>\n * <Button size=\"sm\">Add</Button>\n * </Table.Toolbar>\n * <Table.Content>\n * <Table.Head>\n * <Table.Row>\n * <Table.HeaderCell>Name</Table.HeaderCell>\n * <Table.HeaderCell className=\"text-right\">Age</Table.HeaderCell>\n * </Table.Row>\n * </Table.Head>\n * <Table.Body>\n * <Table.Row>\n * <Table.Cell>Ada</Table.Cell>\n * <Table.Cell className=\"text-right\">36</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table.Content>\n * </Table>\n */\nconst TableRoot = ({\n className,\n size,\n striped,\n stickyHeader,\n stickyFooter,\n testId,\n ...rest\n}: TableProps) => (\n <ark.div\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={cn(\n tableContainer,\n tableVariants({ size, striped }),\n stickyHeader && stickyHeaderClasses,\n stickyFooter && stickyFooterClasses,\n className,\n )}\n />\n)\n\nexport type TableToolbarProps = HTMLArkProps<\"div\"> & WithTestId\n\n/** Non-`<table>` header bar: a title + actions row above the scroll region,\n * separated by a bottom border. `shrink-0` so it never collapses when the\n * content scrolls. */\nconst TableToolbar = ({ className, testId, ...rest }: TableToolbarProps) => (\n <ark.div\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={cn(\n \"flex shrink-0 items-center justify-between gap-2 border-b border-brand-900/20 px-3 ps-5 py-3 dark:border-white/15\",\n className,\n )}\n />\n)\n\nexport type TableTitleProps = HTMLArkProps<\"h3\"> & WithTestId\n\nconst TableTitle = ({ className, testId, ...rest }: TableTitleProps) => (\n <ark.h3\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={cn(\"font-semibold tracking-normal\", className)}\n />\n)\n\nexport type TableContentProps = HTMLArkProps<\"table\"> &\n WithTestId & {\n /** Style the inner `<table>` element; `className` targets the scroll region. */\n classNames?: { table?: string }\n }\n\n/** The scroll region + the `<table>`, framed so horizontal scroll affordances\n * (soft edge shadows on each side with more to scroll) can overlay it. `className`\n * bounds the scroll surface (`max-h-*` here bounds a sticky header/footer);\n * `classNames.table` styles the `<table>`. `border-separate` keeps sticky\n * header/footer borders. The `table-scroll-*` / `table-fade-*` classes are the\n * scroll-driven-animation affordance defined in theme.css. */\nconst TableContent = ({ className, classNames, testId, ...rest }: TableContentProps) => (\n <div className={cn(\"table-scroll-frame flex min-h-0 flex-1 flex-col\", className)}>\n <section\n // A scroller must be reachable by keyboard, or arrow keys can't scroll it\n // (axe `scrollable-region-focusable`). Always, not only once it overflows:\n // knowing that would take a layout read, and this part is a Server Component.\n // biome-ignore lint/a11y/noNoninteractiveTabindex: a scroll region must be reachable by keyboard\n tabIndex={0}\n // A `<section>` is a region landmark only once it has a name, and it takes the\n // table's own: name the table (`aria-labelledby` a `Table.Title`'s id) and the\n // region says the same thing. Unnamed, it stays a plain focusable scroller.\n {...props({ \"aria-labelledby\": rest[\"aria-labelledby\"], \"aria-label\": rest[\"aria-label\"] })}\n className=\"peer table-scroll-x min-h-0 w-full flex-1 overflow-auto focus-visible:outline-none\"\n >\n <ark.table\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={cn(\n \"w-full border-separate border-spacing-0 text-start\",\n TEXT_COLOR_CLASSES.primary,\n classNames?.table,\n )}\n />\n </section>\n {/* Horizontal scroll affordance — a soft shadow on each side that still has\n content to scroll to (pure CSS, hidden where unsupported). Pinned to the\n inline edges; a gradient has no logical direction, so `rtl:-scale-x-100`\n mirrors each shadow to fade inward from its own edge. The scroll-driven\n reveal needs no flip: its timeline's progress runs from the inline start\n in either direction. */}\n <div\n aria-hidden=\"true\"\n className=\"table-fade-start pointer-events-none absolute inset-y-0 start-0 w-6 rtl:-scale-x-100\"\n />\n <div\n aria-hidden=\"true\"\n className=\"table-fade-end pointer-events-none absolute inset-y-0 end-0 w-6 rtl:-scale-x-100\"\n />\n {/* The scroller's focus ring, on an overlay that doesn't scroll: a ring on the\n scroller itself is a box-shadow under its own content, hidden by the header\n and footer fills (and by the pinned rows, which are positioned). */}\n <div\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none absolute inset-0 z-20\",\n focusStyles({ source: \"peer-focus-visible\", inset: true, offset: false }),\n )}\n />\n </div>\n)\n\nexport type TableHeadProps = HTMLArkProps<\"thead\"> & WithTestId\n\n// Parts are dumb: all styling is driven by the root's descendant selectors, so\n// they just forward a caller className (through `cn` when present).\nconst TableHead = ({ className, testId, ...rest }: TableHeadProps) => (\n <ark.thead\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport type TableBodyProps = HTMLArkProps<\"tbody\"> & WithTestId\n\nconst TableBody = ({ className, testId, ...rest }: TableBodyProps) => (\n <ark.tbody\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport type TableFootProps = HTMLArkProps<\"tfoot\"> & WithTestId\n\nconst TableFoot = ({ className, testId, ...rest }: TableFootProps) => (\n <ark.tfoot\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport type TableRowProps = HTMLArkProps<\"tr\"> & WithTestId\n\nconst TableRow = ({ className, testId, ...rest }: TableRowProps) => (\n <ark.tr\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport type TableHeaderCellProps = HTMLArkProps<\"th\"> & WithTestId\n\nconst TableHeaderCell = ({ className, scope = \"col\", testId, ...rest }: TableHeaderCellProps) => (\n <ark.th\n scope={scope}\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport type TableCellProps = HTMLArkProps<\"td\"> & WithTestId\n\nconst TableCell = ({ className, testId, ...rest }: TableCellProps) => (\n <ark.td\n {...props({ \"data-testid\": testId })}\n {...rest}\n className={className ? cn(className) : undefined}\n />\n)\n\nexport const Table = Object.assign(TableRoot, {\n Toolbar: TableToolbar,\n Title: TableTitle,\n Content: TableContent,\n Head: TableHead,\n Body: TableBody,\n Foot: TableFoot,\n Row: TableRow,\n HeaderCell: TableHeaderCell,\n Cell: TableCell,\n})\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/field/field.tsx"],"names":["Ark"],"mappings":";;;;;;;;AAsCO,IAAM,SAAA,GAAY,IAAI,+BAAA,EAAiC;AAAA,EAC5D,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,EAAE,EAAA,EAAI,OAAA,EAAS,EAAA,EAAI,OAAA,EAAS,EAAA,EAAI,SAAA,EAAW,EAAA,EAAI,SAAA,EAAW,EAAA,EAAI,OAAA;AAAQ,GAC9E;AAAA,EACA,eAAA,EAAiB,EAAE,IAAA,EAAM,IAAA;AAC3B,CAAC;AAEM,IAAM,UAAA,GAAa,GAAA;AAAA,EACxB;AAAA,IACE,4DAAA;AAAA,IACA,kBAAA,CAAmB,SAAA;AAAA,IACnB;AAAA,GACF;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,IAAA,EAAM;AAAA,QACJ,EAAA,EAAI,SAAA;AAAA,QACJ,EAAA,EAAI,SAAA;AAAA,QACJ,EAAA,EAAI,SAAA;AAAA,QACJ,EAAA,EAAI,SAAA;AAAA,QACJ,EAAA,EAAI;AAAA;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AAAA;AAAA;AACH;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-VD6PB3VA.js","sourcesContent":["\"use client\"\n\nimport { ark } from \"@ark-ui/react/factory\"\nimport { Field as Ark, type UseFieldContext, useFieldContext } from \"@ark-ui/react/field\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport type { ComponentPropsWithoutRef, ReactNode } from \"react\"\nimport type { NoAsChild } from \"../../lib/as-child\"\nimport { cn } from \"../../lib/cn\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES, TYPOGRAPHY_SHADE_CLASSES } from \"../../lib/typography-size\"\n\n/**\n * Field — label / description / error scaffold for any form control, on top of\n * Ark UI's `Field`. It is the *one* place the family wires accessible names and\n * descriptions: drop a field-aware control inside (the kit's `Input`, `Select`,\n * `Combobox`, … all qualify) and Ark hands it the right `id`,\n * `aria-describedby`, `aria-invalid`, `disabled`, and `required` through\n * context — no manual plumbing per control.\n *\n * - `label` renders a `<label>` bound to the control (click-to-focus).\n * - `description` (helper text) sits between the label and the control.\n * `error` sits below the control and renders independently of it — both\n * can be visible at once. Passing `error` flips the field to `invalid`,\n * which both styles field-aware controls red and associates the message.\n * - `required` adds the semantic flag and a red asterisk in the label.\n * - `size` scales only the field's own typography; set the control's `size`\n * separately (the family components forward both).\n *\n * Every other prop (incl. `disabled`, `readOnly`, `id`) forwards to Ark's\n * `Field.Root`. `asChild` is a compile error: the field renders its label,\n * helper and error rows around the control, which can't live inside one\n * element.\n */\n\n// `relative` contains a `sr-only` label (and any hidden input rendered inside\n// the field): absolutely positioned with no offsets, it would otherwise be laid\n// out against the page and escape any scroller the field sits in.\nexport const fieldRoot = cva(\"relative flex w-full flex-col\", {\n variants: {\n size: { xs: \"gap-1\", sm: \"gap-1\", md: \"gap-1.5\", lg: \"gap-1.5\", xl: \"gap-2\" },\n },\n defaultVariants: { size: \"md\" },\n})\n\nexport const fieldLabel = cva(\n [\n \"inline-flex items-center font-medium select-none text-trim\",\n TEXT_COLOR_CLASSES.secondary,\n \"data-disabled:opacity-60\",\n ],\n {\n variants: {\n size: {\n xs: \"text-xs\",\n sm: \"text-sm\",\n md: \"text-sm\",\n lg: \"text-md\",\n xl: \"text-lg\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n)\n\nconst fieldHelp = cva(TYPOGRAPHY_SHADE_CLASSES.muted, {\n variants: {\n size: {\n xs: \"text-xs\",\n sm: \"text-xs\",\n md: \"text-xs\",\n lg: \"text-sm\",\n xl: \"text-sm\",\n },\n },\n defaultVariants: { size: \"md\" },\n})\n\n/** Error text: Figma's `Text/text-error-primary`, a fixed pair whatever palette the field uses. */\nconst fieldError = cva(TEXT_COLOR_CLASSES.error, {\n variants: {\n size: {\n xs: \"text-xs\",\n sm: \"text-xs\",\n md: \"text-xs\",\n lg: \"text-sm\",\n xl: \"text-sm\",\n },\n },\n defaultVariants: { size: \"md\" },\n})\n\nexport type FieldSize = NonNullable<VariantProps<typeof fieldRoot>[\"size\"]>\n\n/**\n * `aria-describedby` / `aria-errormessage` / `aria-labelledby` for a control nested\n * in a `Field`. Points `aria-describedby` at the error text id directly once\n * `invalid`, rather than trusting `field.ariaDescribedby`'s own DOM-presence-tracked\n * inclusion of it (a `MutationObserver` check that doesn't reliably catch up for\n * every control) — and adds `aria-errormessage`, which Ark's field getters never\n * emit for any control. `aria-labelledby` points at the id already rendered on\n * `Field`'s own `<label>`: needed because `NumberInput`, `PasswordInput`,\n * `TagsInput`, `Select`, and `SegmentGroup`'s real interactive element isn't\n * `Field`'s own `Ark.Input`, so it never otherwise carries an id matching the\n * label's `htmlFor`.\n */\n/**\n * The required \"*\" after a label, spread onto the mark's element. Figma binds it to\n * `Text/text-error-primary`, like the error text, so it is the same fixed pair. Shared by\n * `Field`, `Checkbox` and `Switch`, so the family draws one mark.\n */\nexport const requiredMark = { className: cn(\"ms-0.5\", TEXT_COLOR_CLASSES.error) } as const\n\nexport const fieldA11yProps = (field: UseFieldContext) => ({\n \"aria-describedby\": field?.invalid ? field.ids.errorText : field?.ariaDescribedby,\n \"aria-errormessage\": field?.invalid ? field.ids.errorText : undefined,\n \"aria-labelledby\": field?.ids.label,\n})\n\ntype FieldClassNames = {\n root?: string\n label?: string\n description?: string\n error?: string\n requiredIndicator?: string\n}\n\nexport type FieldProps = NoAsChild<Omit<ComponentPropsWithoutRef<typeof Ark.Root>, \"className\">> &\n VariantProps<typeof fieldRoot> &\n WithTestId & {\n /** Accessible name, rendered as a `<label>` bound to the control. */\n label?: ReactNode\n /** Helper text between the label and the control. */\n description?: ReactNode\n /** Error message below the control; its presence sets `invalid`. */\n error?: ReactNode\n /**\n * The control is a composite — a radio group, a row of inputs — with no single labelable\n * element for the `<label>` to point at. The label then renders as plain text with no `for`\n * (which would otherwise reference an id nothing carries) and names the control only through\n * the `aria-labelledby` that `fieldA11yProps` puts on it.\n */\n composite?: boolean\n /** Styles the field root (matching the kit's other components). */\n className?: string\n classNames?: FieldClassNames\n }\n\n/**\n * Wrap a control in a `Field` only when there's something to wire (label /\n * description / error / required) — otherwise render it bare. The data-driven\n * pickers all end with this, so it lives here instead of five copies. Bare is\n * important: an empty `Field` would still make Ark controls reference a label\n * that isn't rendered.\n */\nexport const FieldShell = ({\n label,\n description,\n error,\n required,\n disabled,\n size,\n className,\n classNames,\n testId,\n composite,\n children,\n}: Pick<\n FieldProps,\n | \"label\"\n | \"description\"\n | \"error\"\n | \"required\"\n | \"disabled\"\n | \"size\"\n | \"className\"\n | \"classNames\"\n | \"testId\"\n | \"composite\"\n> & { children: ReactNode }) => {\n const hasField = label != null || description != null || error != null || Boolean(required)\n if (!hasField) return children\n return (\n <Field\n label={label}\n description={description}\n error={error}\n required={required}\n disabled={disabled}\n size={size}\n className={className}\n classNames={classNames}\n testId={testId}\n composite={composite}\n >\n {children}\n </Field>\n )\n}\n\n/**\n * `Ark.Label`'s props on a `<span>`, minus its `for`: Ark always binds the label to\n * `field.ids.control`, an id only `Ark.Input` (or a machine reading it, like `NumberInput`'s) ever\n * renders. A composite control has no such element, so the binding would dangle — and a `<label>`\n * with nothing to label is no better. Its name comes from `aria-labelledby` pointing at this\n * span's id instead. Ark's `mergeProps` ignores an `undefined` override, so `htmlFor` has to be\n * left out rather than unset on `Ark.Label`.\n */\nconst CompositeLabel = (labelProps: ComponentPropsWithoutRef<\"span\">) => {\n const { htmlFor: _htmlFor, ...fieldLabelProps } = useFieldContext().getLabelProps()\n return <ark.span {...fieldLabelProps} {...labelProps} />\n}\n\nexport const Field = ({\n label,\n description,\n error,\n required,\n invalid,\n size,\n children,\n className,\n classNames,\n testId,\n composite,\n asChild: _asChild,\n ...rest\n}: FieldProps) => {\n const isInvalid = invalid ?? error != null\n const Label = composite ? CompositeLabel : Ark.Label\n\n return (\n <Ark.Root\n required={required}\n invalid={isInvalid}\n className={cn(fieldRoot({ size }), className, classNames?.root)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n >\n {label != null && (\n <Label className={cn(fieldLabel({ size }), classNames?.label)}>\n {label}\n {required && (\n <Ark.RequiredIndicator\n className={cn(requiredMark.className, classNames?.requiredIndicator)}\n >\n *\n </Ark.RequiredIndicator>\n )}\n </Label>\n )}\n\n {description != null && (\n <Ark.HelperText\n className={cn(fieldHelp({ size }), classNames?.description)}\n {...props({ \"data-testid\": testId && `${testId}-description` })}\n >\n {description}\n </Ark.HelperText>\n )}\n\n {children}\n\n {error != null && (\n <Ark.ErrorText\n className={cn(fieldError({ size }), classNames?.error)}\n {...props({ \"data-testid\": testId && `${testId}-error` })}\n >\n {error}\n </Ark.ErrorText>\n )}\n </Ark.Root>\n )\n}\n"]}