@traefik-labs/faency 13.4.0 → 13.6.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 (229) hide show
  1. package/dist/components/AriaTable/AriaTable.cjs +13 -5
  2. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  3. package/dist/components/AriaTable/AriaTable.constants.cjs +5 -0
  4. package/dist/components/AriaTable/AriaTable.constants.cjs.map +1 -0
  5. package/dist/components/AriaTable/AriaTable.constants.js +5 -0
  6. package/dist/components/AriaTable/AriaTable.constants.js.map +1 -0
  7. package/dist/components/AriaTable/AriaTable.js +13 -5
  8. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  9. package/dist/components/AriaTable/AriaTable.vanilla.cjs +194 -0
  10. package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -0
  11. package/dist/components/AriaTable/AriaTable.vanilla.css.cjs +28 -0
  12. package/dist/components/AriaTable/AriaTable.vanilla.css.cjs.map +1 -0
  13. package/dist/components/AriaTable/AriaTable.vanilla.css.js +17 -0
  14. package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -0
  15. package/dist/components/AriaTable/AriaTable.vanilla.js +185 -0
  16. package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -0
  17. package/dist/components/Badge/Badge.vanilla.cjs +2 -1
  18. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  19. package/dist/components/Badge/Badge.vanilla.js +2 -1
  20. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  21. package/dist/components/Blockquote/Blockquote.vanilla.cjs +2 -1
  22. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  23. package/dist/components/Blockquote/Blockquote.vanilla.js +2 -1
  24. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  25. package/dist/components/Box/Box.vanilla.cjs +2 -1
  26. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  27. package/dist/components/Box/Box.vanilla.js +2 -1
  28. package/dist/components/Box/Box.vanilla.js.map +1 -1
  29. package/dist/components/Bubble/Bubble.vanilla.cjs +2 -1
  30. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  31. package/dist/components/Bubble/Bubble.vanilla.js +2 -1
  32. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  33. package/dist/components/Button/Button.vanilla.cjs +2 -1
  34. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  35. package/dist/components/Button/Button.vanilla.js +2 -1
  36. package/dist/components/Button/Button.vanilla.js.map +1 -1
  37. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +5 -4
  38. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  39. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +5 -4
  40. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  41. package/dist/components/Card/Card.vanilla.cjs +2 -1
  42. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  43. package/dist/components/Card/Card.vanilla.js +2 -1
  44. package/dist/components/Card/Card.vanilla.js.map +1 -1
  45. package/dist/components/CodeBlock/CodeBlock.cjs +2 -2
  46. package/dist/components/CodeBlock/CodeBlock.js +2 -2
  47. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +6 -14
  48. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  49. package/dist/components/CodeBlock/CodeBlock.vanilla.js +6 -14
  50. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  51. package/dist/components/Combobox/Combobox.vanilla.cjs +2 -2
  52. package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
  53. package/dist/components/Combobox/Combobox.vanilla.js +2 -2
  54. package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
  55. package/dist/components/Container/Container.vanilla.cjs +2 -1
  56. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  57. package/dist/components/Container/Container.vanilla.js +2 -1
  58. package/dist/components/Container/Container.vanilla.js.map +1 -1
  59. package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -1
  60. package/dist/components/DateTimePicker/DateTimePicker.js +1 -1
  61. package/dist/components/Dialog/Dialog.cjs +1 -1
  62. package/dist/components/Dialog/Dialog.js +1 -1
  63. package/dist/components/Elevation/Elevation.vanilla.cjs +2 -1
  64. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  65. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  66. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  67. package/dist/components/Elevation/Elevation.vanilla.js +2 -1
  68. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  69. package/dist/components/Field/Field.cjs +80 -33
  70. package/dist/components/Field/Field.cjs.map +1 -1
  71. package/dist/components/Field/Field.js +80 -33
  72. package/dist/components/Field/Field.js.map +1 -1
  73. package/dist/components/Field/Field.vanilla.cjs +62 -32
  74. package/dist/components/Field/Field.vanilla.cjs.map +1 -1
  75. package/dist/components/Field/Field.vanilla.css.cjs +6 -0
  76. package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
  77. package/dist/components/Field/Field.vanilla.css.js +4 -1
  78. package/dist/components/Field/Field.vanilla.css.js.map +1 -1
  79. package/dist/components/Field/Field.vanilla.js +63 -33
  80. package/dist/components/Field/Field.vanilla.js.map +1 -1
  81. package/dist/components/Field/FieldContext.cjs +48 -10
  82. package/dist/components/Field/FieldContext.cjs.map +1 -1
  83. package/dist/components/Field/FieldContext.js +48 -10
  84. package/dist/components/Field/FieldContext.js.map +1 -1
  85. package/dist/components/Flex/Flex.vanilla.cjs +2 -1
  86. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  87. package/dist/components/Flex/Flex.vanilla.js +2 -1
  88. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  89. package/dist/components/Grid/Grid.vanilla.cjs +2 -1
  90. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  91. package/dist/components/Grid/Grid.vanilla.js +2 -1
  92. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  93. package/dist/components/IconButton/IconButton.vanilla.cjs +2 -1
  94. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  95. package/dist/components/IconButton/IconButton.vanilla.js +2 -1
  96. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  97. package/dist/components/Image/Image.vanilla.cjs +2 -1
  98. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  99. package/dist/components/Image/Image.vanilla.js +2 -1
  100. package/dist/components/Image/Image.vanilla.js.map +1 -1
  101. package/dist/components/Input/Input.vanilla.cjs +2 -1
  102. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  103. package/dist/components/Input/Input.vanilla.js +2 -1
  104. package/dist/components/Input/Input.vanilla.js.map +1 -1
  105. package/dist/components/Label/Label.vanilla.cjs +2 -1
  106. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  107. package/dist/components/Label/Label.vanilla.js +2 -1
  108. package/dist/components/Label/Label.vanilla.js.map +1 -1
  109. package/dist/components/List/List.cjs +1 -1
  110. package/dist/components/List/List.js +1 -1
  111. package/dist/components/Meter/Meter.vanilla.cjs +3 -2
  112. package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
  113. package/dist/components/Meter/Meter.vanilla.js +3 -2
  114. package/dist/components/Meter/Meter.vanilla.js.map +1 -1
  115. package/dist/components/NavigationTree/NavigationTreeItem.cjs +2 -2
  116. package/dist/components/NavigationTree/NavigationTreeItem.js +2 -2
  117. package/dist/components/Panel/Panel.vanilla.cjs +2 -1
  118. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  119. package/dist/components/Panel/Panel.vanilla.js +2 -1
  120. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  121. package/dist/components/Paragraph/Paragraph.vanilla.cjs +2 -1
  122. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  123. package/dist/components/Paragraph/Paragraph.vanilla.js +2 -1
  124. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  125. package/dist/components/RowLink/RowLink.cjs +18 -46
  126. package/dist/components/RowLink/RowLink.cjs.map +1 -1
  127. package/dist/components/RowLink/RowLink.constants.cjs +7 -0
  128. package/dist/components/RowLink/RowLink.constants.cjs.map +1 -0
  129. package/dist/components/RowLink/RowLink.constants.js +6 -0
  130. package/dist/components/RowLink/RowLink.constants.js.map +1 -0
  131. package/dist/components/RowLink/RowLink.js +15 -45
  132. package/dist/components/RowLink/RowLink.js.map +1 -1
  133. package/dist/components/RowLink/RowLink.utils.cjs +87 -0
  134. package/dist/components/RowLink/RowLink.utils.cjs.map +1 -0
  135. package/dist/components/RowLink/RowLink.utils.js +83 -0
  136. package/dist/components/RowLink/RowLink.utils.js.map +1 -0
  137. package/dist/components/RowLink/RowLink.vanilla.cjs +21 -0
  138. package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -0
  139. package/dist/components/RowLink/RowLink.vanilla.css.cjs +10 -0
  140. package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -0
  141. package/dist/components/RowLink/RowLink.vanilla.css.js +8 -0
  142. package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -0
  143. package/dist/components/RowLink/RowLink.vanilla.js +19 -0
  144. package/dist/components/RowLink/RowLink.vanilla.js.map +1 -0
  145. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -3
  146. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
  147. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -3
  148. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
  149. package/dist/components/Select/Select.cjs +1 -1
  150. package/dist/components/Select/Select.js +1 -1
  151. package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -1
  152. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  153. package/dist/components/Skeleton/Skeleton.vanilla.js +2 -1
  154. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  155. package/dist/components/Spinner/Spinner.vanilla.cjs +3 -2
  156. package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
  157. package/dist/components/Spinner/Spinner.vanilla.js +3 -2
  158. package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
  159. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +4 -3
  160. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
  161. package/dist/components/SplitLayout/SplitLayout.vanilla.js +4 -3
  162. package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
  163. package/dist/components/Table/ExpandToggle.vanilla.cjs +30 -0
  164. package/dist/components/Table/ExpandToggle.vanilla.cjs.map +1 -0
  165. package/dist/components/Table/ExpandToggle.vanilla.js +27 -0
  166. package/dist/components/Table/ExpandToggle.vanilla.js.map +1 -0
  167. package/dist/components/Table/SortButton.vanilla.cjs +38 -0
  168. package/dist/components/Table/SortButton.vanilla.cjs.map +1 -0
  169. package/dist/components/Table/SortButton.vanilla.js +35 -0
  170. package/dist/components/Table/SortButton.vanilla.js.map +1 -0
  171. package/dist/components/Table/Table.cjs +11 -4
  172. package/dist/components/Table/Table.cjs.map +1 -1
  173. package/dist/components/Table/Table.js +11 -4
  174. package/dist/components/Table/Table.js.map +1 -1
  175. package/dist/components/Table/Table.vanilla.cjs +142 -0
  176. package/dist/components/Table/Table.vanilla.cjs.map +1 -0
  177. package/dist/components/Table/Table.vanilla.css.cjs +178 -0
  178. package/dist/components/Table/Table.vanilla.css.cjs.map +1 -0
  179. package/dist/components/Table/Table.vanilla.css.js +161 -0
  180. package/dist/components/Table/Table.vanilla.css.js.map +1 -0
  181. package/dist/components/Table/Table.vanilla.js +133 -0
  182. package/dist/components/Table/Table.vanilla.js.map +1 -0
  183. package/dist/components/Table/useTableSort.cjs +60 -0
  184. package/dist/components/Table/useTableSort.cjs.map +1 -0
  185. package/dist/components/Table/useTableSort.js +59 -0
  186. package/dist/components/Table/useTableSort.js.map +1 -0
  187. package/dist/components/Text/Text.vanilla.cjs +2 -1
  188. package/dist/components/Text/Text.vanilla.cjs.map +1 -1
  189. package/dist/components/Text/Text.vanilla.js +2 -1
  190. package/dist/components/Text/Text.vanilla.js.map +1 -1
  191. package/dist/components/TextField/TextField.cjs +1 -1
  192. package/dist/components/TextField/TextField.js +1 -1
  193. package/dist/components/TextField/TextField.vanilla.cjs +1 -1
  194. package/dist/components/TextField/TextField.vanilla.js +1 -1
  195. package/dist/components/Textarea/Textarea.cjs +2 -2
  196. package/dist/components/Textarea/Textarea.js +2 -2
  197. package/dist/components/Textarea/Textarea.vanilla.cjs +4 -3
  198. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  199. package/dist/components/Textarea/Textarea.vanilla.js +4 -3
  200. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  201. package/dist/components/Toast/Toast.vanilla.cjs +5 -5
  202. package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
  203. package/dist/components/Toast/Toast.vanilla.js +5 -5
  204. package/dist/components/Toast/Toast.vanilla.js.map +1 -1
  205. package/dist/components/Toast/ToastProvider.vanilla.cjs +1 -1
  206. package/dist/components/Toast/ToastProvider.vanilla.js +1 -1
  207. package/dist/faency.css +3001 -2303
  208. package/dist/index.cjs +50 -29
  209. package/dist/index.d.ts +570 -24
  210. package/dist/index.js +33 -30
  211. package/dist/styles/cx.cjs +5 -0
  212. package/dist/styles/cx.cjs.map +1 -0
  213. package/dist/styles/cx.js +5 -0
  214. package/dist/styles/cx.js.map +1 -0
  215. package/dist/styles/themes.css.cjs.map +1 -1
  216. package/dist/styles/themes.css.js.map +1 -1
  217. package/dist/styles/tokens.css.cjs +55 -44
  218. package/dist/styles/tokens.css.cjs.map +1 -1
  219. package/dist/styles/tokens.css.js +55 -44
  220. package/dist/styles/tokens.css.js.map +1 -1
  221. package/dist/styles/useInlineStyle.cjs +16 -0
  222. package/dist/styles/useInlineStyle.cjs.map +1 -0
  223. package/dist/styles/useInlineStyle.js +16 -0
  224. package/dist/styles/useInlineStyle.js.map +1 -0
  225. package/dist/utils/warnOnce.cjs +13 -0
  226. package/dist/utils/warnOnce.cjs.map +1 -0
  227. package/dist/utils/warnOnce.js +13 -0
  228. package/dist/utils/warnOnce.js.map +1 -0
  229. package/package.json +10 -17
@@ -0,0 +1,142 @@
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_cx = require("../../styles/cx.cjs");
3
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
+ const require_RowLink_utils = require("../RowLink/RowLink.utils.cjs");
5
+ const require_RowLink_vanilla = require("../RowLink/RowLink.vanilla.cjs");
6
+ const require_RowLink_vanilla_css = require("../RowLink/RowLink.vanilla.css.cjs");
7
+ const require_ExpandToggle_vanilla = require("./ExpandToggle.vanilla.cjs");
8
+ const require_SortButton_vanilla = require("./SortButton.vanilla.cjs");
9
+ const require_Table_vanilla_css = require("./Table.vanilla.css.cjs");
10
+ let react = require("react");
11
+ react = require_runtime.__toESM(react, 1);
12
+ let react_jsx_runtime = require("react/jsx-runtime");
13
+ // components/Table/Table.vanilla.tsx
14
+ var TableVanilla = (0, react.forwardRef)(({ elevation, className, css, style, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
15
+ ref,
16
+ className: require_cx.cx(require_Table_vanilla_css.tableRecipe({ elevation }), require_RowLink_vanilla_css.rowLinkTable, className),
17
+ style: require_useInlineStyle.useInlineStyle(css, style),
18
+ ...props
19
+ }));
20
+ TableVanilla.displayName = "TableVanilla";
21
+ var CaptionVanilla = (0, react.forwardRef)(({ size, weight, variant, gradient, transform, noWrap, className, css, style, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
22
+ ref,
23
+ className: require_cx.cx(require_Table_vanilla_css.captionRecipe({
24
+ size,
25
+ weight,
26
+ variant,
27
+ gradient,
28
+ transform,
29
+ noWrap
30
+ }), className),
31
+ style: require_useInlineStyle.useInlineStyle(css, style),
32
+ ...props
33
+ }));
34
+ CaptionVanilla.displayName = "CaptionVanilla";
35
+ var section = (Tag, sectionClass, displayName) => {
36
+ const Section = (0, react.forwardRef)(({ className, css, style, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
37
+ ref,
38
+ className: require_cx.cx(sectionClass, className),
39
+ style: require_useInlineStyle.useInlineStyle(css, style),
40
+ ...props
41
+ }));
42
+ Section.displayName = displayName;
43
+ return Section;
44
+ };
45
+ var TheadVanilla = section("thead", require_Table_vanilla_css.thead, "TheadVanilla");
46
+ var TbodyVanilla = section("tbody", require_Table_vanilla_css.tbody, "TbodyVanilla");
47
+ var TfootVanilla = section("tfoot", require_Table_vanilla_css.tfoot, "TfootVanilla");
48
+ var ThVanilla = (0, react.forwardRef)(({ size, weight, variant, gradient, transform, noWrap, align, sort, onSort, className, css, style, children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
49
+ ref,
50
+ "aria-sort": sort && require_SortButton_vanilla.ARIA_SORT[sort],
51
+ className: require_cx.cx(require_Table_vanilla_css.thRecipe({
52
+ size,
53
+ weight,
54
+ variant,
55
+ gradient,
56
+ transform,
57
+ noWrap,
58
+ align
59
+ }), className),
60
+ style: require_useInlineStyle.useInlineStyle(css, style),
61
+ ...props,
62
+ children: onSort ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SortButton_vanilla.SortButtonVanilla, {
63
+ sort,
64
+ onSort,
65
+ children
66
+ }) : children
67
+ }));
68
+ ThVanilla.displayName = "ThVanilla";
69
+ var TdVanilla = (0, react.forwardRef)(({ subtle, align, className, css, style, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
70
+ ref,
71
+ className: require_cx.cx(require_Table_vanilla_css.tdRecipe({
72
+ subtle,
73
+ align
74
+ }), className),
75
+ style: require_useInlineStyle.useInlineStyle(css, style),
76
+ ...props
77
+ }));
78
+ TdVanilla.displayName = "TdVanilla";
79
+ var TrVanilla = (0, react.forwardRef)(({ collapsedContent: collapsedContent$1, collapsedContentColSpan = 1, expandLabel = "Expand row", emptyFirstColumn = false, tableHead = false, href, linkAs, linkCell, linkProps, linkOverlay, interactive, active, className, css, style, children, onClick, onAuxClick, ...props }, ref) => {
80
+ const [isOpen, setIsOpen] = (0, react.useState)(false);
81
+ const contentId = (0, react.useId)();
82
+ const inlineStyle = require_useInlineStyle.useInlineStyle(css, style);
83
+ const collapsible = !!collapsedContent$1;
84
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", {
85
+ ref,
86
+ className: require_cx.cx(require_Table_vanilla_css.trRecipe({
87
+ interactive: interactive ?? (href !== void 0 || void 0),
88
+ active
89
+ }), require_RowLink_vanilla_css.rowLinkRow, className),
90
+ "data-collapsed": collapsible && !isOpen ? "" : void 0,
91
+ style: inlineStyle,
92
+ onClick: (event) => require_RowLink_utils.handleRowClick(event, onClick),
93
+ onAuxClick: (event) => {
94
+ onAuxClick?.(event);
95
+ require_RowLink_utils.openRowLink(event);
96
+ },
97
+ ...props,
98
+ children: [
99
+ emptyFirstColumn && (tableHead ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { className: require_cx.cx(require_Table_vanilla_css.thRecipe(), "_1aa2xbm2e") }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TdVanilla, {})),
100
+ collapsible && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TdVanilla, {
101
+ className: "_1aa2xbm2l",
102
+ onClick: require_ExpandToggle_vanilla.stopEvent,
103
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ExpandToggle_vanilla.ExpandToggleVanilla, {
104
+ label: expandLabel,
105
+ isOpen,
106
+ controls: contentId,
107
+ onToggle: () => setIsOpen((open) => !open)
108
+ })
109
+ }),
110
+ require_RowLink_utils.mapRowLink(children, {
111
+ href,
112
+ linkAs,
113
+ linkCell,
114
+ linkProps,
115
+ linkOverlay
116
+ }, TdVanilla, require_RowLink_vanilla.RowLinkVanilla, {
117
+ row: "TrVanilla",
118
+ cell: "TdVanilla"
119
+ })
120
+ ]
121
+ }), collapsible && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TrVanilla, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TdVanilla, {
122
+ id: contentId,
123
+ colSpan: collapsedContentColSpan,
124
+ className: "_1aa2xbm2p",
125
+ "data-closed": isOpen ? void 0 : "",
126
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
127
+ className: "_1aa2xbm2q",
128
+ children: collapsedContent$1
129
+ })
130
+ }) })] });
131
+ });
132
+ TrVanilla.displayName = "TrVanilla";
133
+ exports.CaptionVanilla = CaptionVanilla;
134
+ exports.TableVanilla = TableVanilla;
135
+ exports.TbodyVanilla = TbodyVanilla;
136
+ exports.TdVanilla = TdVanilla;
137
+ exports.TfootVanilla = TfootVanilla;
138
+ exports.ThVanilla = ThVanilla;
139
+ exports.TheadVanilla = TheadVanilla;
140
+ exports.TrVanilla = TrVanilla;
141
+
142
+ //# sourceMappingURL=Table.vanilla.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.vanilla.cjs","names":["forwardRef","cx","tableRecipe","rowLinkTable","useInlineStyle","captionRecipe","thead","tbody","tfoot","ARIA_SORT","thRecipe","SortButtonVanilla","tdRecipe","useState","useId","collapsedContent","_Fragment","trRecipe","rowLinkRow","handleRowClick","stopEvent","ExpandToggleVanilla","mapRowLink","RowLinkVanilla"],"sources":["../../../components/Table/Table.vanilla.tsx"],"sourcesContent":["import { RecipeVariants } from '@vanilla-extract/recipes';\nimport React, { forwardRef, ReactNode, useId, useState } from 'react';\n\nimport { CSSProps } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { useInlineStyle } from '../../styles/useInlineStyle';\nimport {\n handleRowClick,\n mapRowLink,\n openRowLink,\n RowLinkShortcutProps,\n} from '../RowLink/RowLink.utils';\nimport { RowLinkVanilla } from '../RowLink/RowLink.vanilla';\nimport { rowLinkRow, rowLinkTable } from '../RowLink/RowLink.vanilla.css';\nimport { ExpandToggleVanilla, stopEvent } from './ExpandToggle.vanilla';\nimport { ARIA_SORT, SortButtonVanilla } from './SortButton.vanilla';\nimport {\n captionRecipe,\n collapsedCell,\n collapsedContent as collapsedContentClass,\n emptyHeaderCell,\n tableRecipe,\n tbody,\n tdRecipe,\n tfoot,\n thead,\n thRecipe,\n toggleCell,\n trRecipe,\n} from './Table.vanilla.css';\nimport { TableSortProps } from './useTableSort';\n\ntype TableRecipeVariants = NonNullable<RecipeVariants<typeof tableRecipe>>;\ntype CaptionRecipeVariants = NonNullable<RecipeVariants<typeof captionRecipe>>;\ntype TrRecipeVariants = NonNullable<RecipeVariants<typeof trRecipe>>;\ntype ThRecipeVariants = NonNullable<RecipeVariants<typeof thRecipe>>;\ntype TdRecipeVariants = NonNullable<RecipeVariants<typeof tdRecipe>>;\n\nexport type TableVanillaProps = React.TableHTMLAttributes<HTMLTableElement> &\n CSSProps &\n TableRecipeVariants;\n\nexport const TableVanilla = forwardRef<HTMLTableElement, TableVanillaProps>(\n ({ elevation, className, css, style, ...props }, ref) => (\n <table\n ref={ref}\n className={cx(tableRecipe({ elevation }), rowLinkTable, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nTableVanilla.displayName = 'TableVanilla';\n\nexport type CaptionVanillaProps = React.HTMLAttributes<HTMLTableCaptionElement> &\n CSSProps &\n CaptionRecipeVariants;\n\nexport const CaptionVanilla = forwardRef<HTMLTableCaptionElement, CaptionVanillaProps>(\n (\n { size, weight, variant, gradient, transform, noWrap, className, css, style, ...props },\n ref,\n ) => (\n <caption\n ref={ref}\n className={cx(\n captionRecipe({ size, weight, variant, gradient, transform, noWrap }),\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nCaptionVanilla.displayName = 'CaptionVanilla';\n\nexport type TableSectionVanillaProps = React.HTMLAttributes<HTMLTableSectionElement> & CSSProps;\n\nconst section = (Tag: 'thead' | 'tbody' | 'tfoot', sectionClass: string, displayName: string) => {\n const Section = forwardRef<HTMLTableSectionElement, TableSectionVanillaProps>(\n ({ className, css, style, ...props }, ref) => (\n <Tag\n ref={ref}\n className={cx(sectionClass, className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n );\n Section.displayName = displayName;\n return Section;\n};\n\nexport const TheadVanilla = section('thead', thead, 'TheadVanilla');\nexport const TbodyVanilla = section('tbody', tbody, 'TbodyVanilla');\nexport const TfootVanilla = section('tfoot', tfoot, 'TfootVanilla');\n\nexport type ThVanillaProps = Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'align'> &\n CSSProps &\n ThRecipeVariants &\n TableSortProps;\n\nexport const ThVanilla = forwardRef<HTMLTableCellElement, ThVanillaProps>(\n (\n {\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n align,\n sort,\n onSort,\n className,\n css,\n style,\n children,\n ...props\n },\n ref,\n ) => (\n <th\n ref={ref}\n aria-sort={sort && ARIA_SORT[sort]}\n className={cx(\n thRecipe({ size, weight, variant, gradient, transform, noWrap, align }),\n className,\n )}\n style={useInlineStyle(css, style)}\n {...props}\n >\n {onSort ? (\n <SortButtonVanilla sort={sort} onSort={onSort}>\n {children}\n </SortButtonVanilla>\n ) : (\n children\n )}\n </th>\n ),\n);\n\nThVanilla.displayName = 'ThVanilla';\n\nexport type TdVanillaProps = Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'align'> &\n CSSProps &\n TdRecipeVariants;\n\nexport const TdVanilla = forwardRef<HTMLTableCellElement, TdVanillaProps>(\n ({ subtle, align, className, css, style, ...props }, ref) => (\n <td\n ref={ref}\n className={cx(tdRecipe({ subtle, align }), className)}\n style={useInlineStyle(css, style)}\n {...props}\n />\n ),\n);\n\nTdVanilla.displayName = 'TdVanilla';\n\nexport type TrVanillaProps = React.HTMLAttributes<HTMLTableRowElement> &\n CSSProps &\n TrRecipeVariants &\n RowLinkShortcutProps & {\n /** Content shown in a full-width row below, toggled by a button in a new first cell. */\n collapsedContent?: ReactNode;\n /** Column span of the collapsed content row; set it to the number of columns. */\n collapsedContentColSpan?: number;\n /** Accessible name of the expand button. */\n expandLabel?: string;\n /** Adds an empty first cell, to line up with rows that have an expand button. */\n emptyFirstColumn?: boolean;\n /** Styles the empty first cell as a header, for a row in `TheadVanilla`. */\n tableHead?: boolean;\n };\n\nexport const TrVanilla = forwardRef<HTMLTableRowElement, TrVanillaProps>(\n (\n {\n collapsedContent,\n collapsedContentColSpan = 1,\n expandLabel = 'Expand row',\n emptyFirstColumn = false,\n tableHead = false,\n href,\n linkAs,\n linkCell,\n linkProps,\n linkOverlay,\n interactive,\n active,\n className,\n css,\n style,\n children,\n onClick,\n onAuxClick,\n ...props\n },\n ref,\n ) => {\n const [isOpen, setIsOpen] = useState(false);\n const contentId = useId();\n const inlineStyle = useInlineStyle(css, style);\n const collapsible = !!collapsedContent;\n\n return (\n <>\n <tr\n ref={ref}\n className={cx(\n trRecipe({ interactive: interactive ?? (href !== undefined || undefined), active }),\n rowLinkRow,\n className,\n )}\n data-collapsed={collapsible && !isOpen ? '' : undefined}\n style={inlineStyle}\n onClick={(event) => handleRowClick(event, onClick)}\n onAuxClick={(event) => {\n onAuxClick?.(event);\n openRowLink(event);\n }}\n {...props}\n >\n {emptyFirstColumn &&\n (tableHead ? <td className={cx(thRecipe(), emptyHeaderCell)} /> : <TdVanilla />)}\n {collapsible && (\n <TdVanilla className={toggleCell} onClick={stopEvent}>\n <ExpandToggleVanilla\n label={expandLabel}\n isOpen={isOpen}\n controls={contentId}\n onToggle={() => setIsOpen((open) => !open)}\n />\n </TdVanilla>\n )}\n {mapRowLink(\n children,\n { href, linkAs, linkCell, linkProps, linkOverlay },\n TdVanilla,\n RowLinkVanilla,\n { row: 'TrVanilla', cell: 'TdVanilla' },\n )}\n </tr>\n {collapsible && (\n <TrVanilla>\n <TdVanilla\n id={contentId}\n colSpan={collapsedContentColSpan}\n className={collapsedCell}\n data-closed={isOpen ? undefined : ''}\n >\n <div className={collapsedContentClass}>{collapsedContent}</div>\n </TdVanilla>\n </TrVanilla>\n )}\n </>\n );\n },\n);\n\nTrVanilla.displayName = 'TrVanilla';\n"],"mappings":"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"}
@@ -0,0 +1,178 @@
1
+ ;/* empty css */
2
+ ;/* empty css */
3
+ let _vanilla_extract_recipes_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
4
+ // components/Table/Table.vanilla.css.ts
5
+ var tableRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
6
+ defaultClassName: "_1aa2xbm1 _1aa2xbm0",
7
+ variantClassNames: { elevation: {
8
+ "0": "_1aa2xbm2",
9
+ "1": "_1aa2xbm3",
10
+ "2": "_1aa2xbm4",
11
+ "3": "_1aa2xbm5",
12
+ "4": "_1aa2xbm6",
13
+ "5": "_1aa2xbm7"
14
+ } },
15
+ defaultVariants: { elevation: 1 },
16
+ compoundVariants: []
17
+ });
18
+ var captionRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
19
+ defaultClassName: "_1aa2xbm9 _1aa2xbm8",
20
+ variantClassNames: {
21
+ size: {
22
+ "0": "_1aa2xbma",
23
+ "1": "_1aa2xbmb",
24
+ "2": "_1aa2xbmc",
25
+ "3": "_1aa2xbmd",
26
+ "4": "_1aa2xbme",
27
+ "5": "_1aa2xbmf",
28
+ "6": "_1aa2xbmg",
29
+ "7": "_1aa2xbmh",
30
+ "8": "_1aa2xbmi",
31
+ "9": "_1aa2xbmj",
32
+ "10": "_1aa2xbmk",
33
+ "11": "_1aa2xbml",
34
+ "12": "_1aa2xbmm",
35
+ inherit: "_1aa2xbmn"
36
+ },
37
+ weight: {
38
+ light: "_1aa2xbmo",
39
+ regular: "_1aa2xbmp",
40
+ medium: "_1aa2xbmq",
41
+ semiBold: "_1aa2xbmr",
42
+ bold: "_1aa2xbms"
43
+ },
44
+ variant: {
45
+ red: "_1aa2xbmt",
46
+ subtle: "_1aa2xbmu",
47
+ "default": "_1aa2xbmv",
48
+ contrast: "_1aa2xbmw",
49
+ inherit: "_1aa2xbmx",
50
+ invalid: "_1aa2xbmy"
51
+ },
52
+ gradient: { true: "_1aa2xbmz" },
53
+ noWrap: { true: "_1aa2xbm10" },
54
+ transform: {
55
+ uppercase: "_1aa2xbm11",
56
+ capitalize: "_1aa2xbm12",
57
+ capitalizeWords: "_1aa2xbm13"
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "3",
62
+ variant: "default"
63
+ },
64
+ compoundVariants: []
65
+ });
66
+ var tbody = "_1aa2xbm14";
67
+ var thead = "_1aa2xbm15";
68
+ var tfoot = "_1aa2xbm16";
69
+ var trRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
70
+ defaultClassName: "_1aa2xbm18 _1aa2xbm17",
71
+ variantClassNames: {
72
+ interactive: { true: "_1aa2xbm19" },
73
+ active: { true: "_1aa2xbm1a" }
74
+ },
75
+ defaultVariants: {},
76
+ compoundVariants: [[{
77
+ interactive: true,
78
+ active: true
79
+ }, "_1aa2xbm1b"]]
80
+ });
81
+ var thRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
82
+ defaultClassName: "_1aa2xbm1d _1aa2xbm1c",
83
+ variantClassNames: {
84
+ size: {
85
+ "0": "_1aa2xbm1e",
86
+ "1": "_1aa2xbm1f",
87
+ "2": "_1aa2xbm1g",
88
+ "3": "_1aa2xbm1h",
89
+ "4": "_1aa2xbm1i",
90
+ "5": "_1aa2xbm1j",
91
+ "6": "_1aa2xbm1k",
92
+ "7": "_1aa2xbm1l",
93
+ "8": "_1aa2xbm1m",
94
+ "9": "_1aa2xbm1n",
95
+ "10": "_1aa2xbm1o",
96
+ "11": "_1aa2xbm1p",
97
+ "12": "_1aa2xbm1q",
98
+ inherit: "_1aa2xbm1r"
99
+ },
100
+ weight: {
101
+ light: "_1aa2xbm1s",
102
+ regular: "_1aa2xbm1t",
103
+ medium: "_1aa2xbm1u",
104
+ semiBold: "_1aa2xbm1v",
105
+ bold: "_1aa2xbm1w"
106
+ },
107
+ variant: {
108
+ red: "_1aa2xbm1x",
109
+ subtle: "_1aa2xbm1y",
110
+ "default": "_1aa2xbm1z",
111
+ contrast: "_1aa2xbm20",
112
+ inherit: "_1aa2xbm21",
113
+ invalid: "_1aa2xbm22"
114
+ },
115
+ gradient: { true: "_1aa2xbm23" },
116
+ noWrap: { true: "_1aa2xbm24" },
117
+ transform: {
118
+ uppercase: "_1aa2xbm25",
119
+ capitalize: "_1aa2xbm26",
120
+ capitalizeWords: "_1aa2xbm27"
121
+ },
122
+ align: {
123
+ start: "_1aa2xbm28",
124
+ center: "_1aa2xbm29",
125
+ end: "_1aa2xbm2a"
126
+ }
127
+ },
128
+ defaultVariants: {
129
+ size: "0",
130
+ variant: "subtle",
131
+ transform: "capitalize",
132
+ align: "start"
133
+ },
134
+ compoundVariants: []
135
+ });
136
+ var sortButton = "_1aa2xbm2b";
137
+ var sortIcon = "_1aa2xbm2c";
138
+ var sortIconActive = "_1aa2xbm2d";
139
+ var emptyHeaderCell = "_1aa2xbm2e";
140
+ var tdRecipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
141
+ defaultClassName: "_1aa2xbm2g _1aa2xbm2f",
142
+ variantClassNames: {
143
+ subtle: { true: "_1aa2xbm2h" },
144
+ align: {
145
+ start: "_1aa2xbm2i",
146
+ center: "_1aa2xbm2j",
147
+ end: "_1aa2xbm2k"
148
+ }
149
+ },
150
+ defaultVariants: { align: "start" },
151
+ compoundVariants: []
152
+ });
153
+ var toggleCell = "_1aa2xbm2l";
154
+ var toggle = "_1aa2xbm2m";
155
+ var expandButton = "_1aa2xbm2n";
156
+ var chevron = "_1aa2xbm2o";
157
+ var collapsedCell = "_1aa2xbm2p";
158
+ var collapsedContent = "_1aa2xbm2q";
159
+ exports.captionRecipe = captionRecipe;
160
+ exports.chevron = chevron;
161
+ exports.collapsedCell = collapsedCell;
162
+ exports.collapsedContent = collapsedContent;
163
+ exports.emptyHeaderCell = emptyHeaderCell;
164
+ exports.expandButton = expandButton;
165
+ exports.sortButton = sortButton;
166
+ exports.sortIcon = sortIcon;
167
+ exports.sortIconActive = sortIconActive;
168
+ exports.tableRecipe = tableRecipe;
169
+ exports.tbody = tbody;
170
+ exports.tdRecipe = tdRecipe;
171
+ exports.tfoot = tfoot;
172
+ exports.thRecipe = thRecipe;
173
+ exports.thead = thead;
174
+ exports.toggle = toggle;
175
+ exports.toggleCell = toggleCell;
176
+ exports.trRecipe = trRecipe;
177
+
178
+ //# sourceMappingURL=Table.vanilla.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Table/Table.vanilla.css.ts"],"sourcesContent":["import { globalStyle, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\nimport { elevationVariants } from '../Elevation/Elevation.vanilla.css';\nimport { ROW_LINK_CONTROL_Z_INDEX } from '../RowLink/RowLink.constants';\n\nconst rowBorder = `1px solid ${tokens.colors.tableRowBorder}`;\n\nconst alignVariants = {\n start: { textAlign: 'start' },\n center: { textAlign: 'center' },\n end: { textAlign: 'end' },\n} as const;\n\nconst textVariants = {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n noWrap: noWrapVariants,\n} as const;\n\nconst layer = (backgroundColor: string, borderRadius: Record<string, string>) =>\n ({\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor,\n ...borderRadius,\n }) as const;\n\nexport const table = style({\n width: '100%',\n tableLayout: 'fixed',\n boxSizing: 'border-box',\n borderCollapse: 'separate',\n borderSpacing: 0,\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.tableText,\n borderRadius: tokens.radii['3'],\n overflow: 'hidden',\n});\n\nexport const tableRecipe = recipe({\n base: table,\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 1,\n },\n});\n\nconst captionBase = style({\n lineHeight: '1.25',\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'proportional-nums',\n display: 'table-caption',\n textAlign: 'start',\n fontWeight: tokens.fontWeights.medium,\n});\n\nexport const captionRecipe = recipe({\n base: captionBase,\n variants: {\n ...textVariants,\n transform: transformVariants,\n },\n defaultVariants: {\n size: '3',\n variant: 'default',\n },\n});\n\nexport const tbody = style({\n width: '100%',\n verticalAlign: 'middle',\n});\n\nexport const thead = style({\n position: 'relative',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n verticalAlign: 'middle',\n\n '::after': layer(tokens.colors.tableHeaderLayerBackground, {\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n }),\n});\n\nexport const tfoot = style({\n verticalAlign: 'middle',\n position: 'relative',\n borderRadius: 'inherit',\n\n '::after': layer(tokens.colors.tableFooterLayerBackground, { borderRadius: 'inherit' }),\n\n selectors: {\n [`${table} ${tbody}:not(:empty) ~ &, ${table} ${thead}:not(:empty) ~ &`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n },\n});\n\nconst tr = style({\n verticalAlign: 'inherit',\n selectors: {\n '&:hover': {\n color: tokens.colors.tableHoverText,\n },\n },\n});\n\nexport const trRecipe = recipe({\n base: tr,\n variants: {\n interactive: {\n true: {\n selectors: {\n '&:hover': {\n backgroundColor: tokens.colors.tableHoverBackground,\n cursor: 'pointer',\n },\n },\n },\n },\n active: {\n true: {\n backgroundColor: tokens.colors.tableHoverBackground,\n color: tokens.colors.tableActiveText,\n fontWeight: tokens.fontWeights.semiBold,\n },\n },\n },\n compoundVariants: [\n {\n variants: { interactive: true, active: true },\n style: {\n selectors: {\n '&:hover': {\n color: tokens.colors.tableActiveHoverText,\n },\n },\n },\n },\n ],\n});\n\n// Text and Label base styles, then the header cell's own.\nconst th = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n\n display: 'table-cell',\n verticalAlign: 'inherit',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n textAlign: 'start',\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n borderBottom: rowBorder,\n\n selectors: {\n [`${thead} &`]: {\n fontSize: tokens.fontSizes['1'],\n color: tokens.colors.tableHeaderText,\n fontWeight: tokens.fontWeights.light,\n },\n },\n});\n\nexport const thRecipe = recipe({\n base: th,\n variants: {\n ...textVariants,\n transform: {\n ...transformVariants,\n // Label's capitalize sets inline-block; a cell must stay a cell.\n capitalize: { ...transformVariants.capitalize, display: 'table-cell' },\n },\n align: alignVariants,\n },\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n align: 'start',\n },\n});\n\nexport const sortButton = style({\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n gap: tokens.space['2'],\n borderRadius: tokens.radii['1'],\n cursor: 'pointer',\n selectors: {\n '&:hover': {\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: tokens.colors.focusOutline,\n outlineOffset: '2px',\n },\n },\n});\n\nexport const sortIcon = style({\n flexShrink: 0,\n});\n\nglobalStyle(`${sortIcon} > path`, {\n opacity: 0.4,\n});\n\nexport const sortIconActive = style({\n selectors: {\n [`${sortIcon} > &`]: {\n opacity: 1,\n },\n },\n});\n\nexport const emptyHeaderCell = style({\n width: 24,\n});\n\nconst td = style({\n boxSizing: 'border-box',\n padding: `${tokens.space['5']} ${tokens.space['3']}`,\n borderBottom: rowBorder,\n fontSize: tokens.fontSizes['3'],\n lineHeight: '16px',\n verticalAlign: 'inherit',\n\n selectors: {\n [`${tr}:last-child > &`]: {\n borderBottom: 'none',\n },\n // A closed collapsible row is followed only by its hidden content row.\n [`${tr}[data-collapsed]:nth-last-child(2) > &`]: {\n borderBottom: 'none',\n },\n [`${tfoot} &`]: {\n fontSize: tokens.fontSizes['1'],\n color: tokens.colors.tableHeaderText,\n fontWeight: tokens.fontWeights.light,\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n },\n [`${table} ${tbody}:not(:empty) ~ ${tfoot} &`]: {\n borderTop: rowBorder,\n },\n },\n});\n\nexport const tdRecipe = recipe({\n base: td,\n variants: {\n subtle: {\n true: {\n fontWeight: tokens.fontWeights.regular,\n color: tokens.colors.tableSubtleText,\n },\n },\n align: alignVariants,\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const toggleCell = style({\n selectors: {\n '&&': {\n padding: `0 0 0 ${tokens.space['3']}`,\n },\n },\n});\n\nexport const toggle = style({\n boxSizing: 'border-box',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n zIndex: ROW_LINK_CONTROL_Z_INDEX,\n height: '40px',\n ':hover': {\n color: tokens.colors.tableActiveText,\n },\n});\n\nexport const expandButton = style({\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '100%',\n borderRadius: tokens.radii['1'],\n cursor: 'pointer',\n selectors: {\n '&:focus-visible': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: tokens.colors.focusOutline,\n outlineOffset: '2px',\n },\n },\n});\n\nexport const chevron = style({\n transition: 'transform 0.2s ease-out',\n selectors: {\n [`${expandButton}[aria-expanded=\"true\"] > &`]: {\n transform: 'rotate(90deg)',\n },\n },\n});\n\n// Visibility switches after the collapse animation, so closed content leaves the tab order.\nexport const collapsedCell = style({\n transition: 'padding 0.2s ease-out, visibility 0s',\n selectors: {\n '&&[data-closed]': {\n transition: 'padding 0.2s ease-out, visibility 0s 0.2s',\n visibility: 'hidden',\n lineHeight: 0,\n fontSize: 0,\n padding: `0px ${tokens.space['3']}`,\n border: 'none',\n },\n },\n});\n\nexport const collapsedContent = style({\n boxSizing: 'border-box',\n transition: 'all 0.2s ease-out',\n selectors: {\n [`${collapsedCell}[data-closed] > &`]: {\n height: 0,\n overflow: 'hidden',\n },\n },\n});\n"],"mappings":""}
@@ -0,0 +1,161 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
4
+ // components/Table/Table.vanilla.css.ts
5
+ var tableRecipe = createRuntimeFn({
6
+ defaultClassName: "_1aa2xbm1 _1aa2xbm0",
7
+ variantClassNames: { elevation: {
8
+ "0": "_1aa2xbm2",
9
+ "1": "_1aa2xbm3",
10
+ "2": "_1aa2xbm4",
11
+ "3": "_1aa2xbm5",
12
+ "4": "_1aa2xbm6",
13
+ "5": "_1aa2xbm7"
14
+ } },
15
+ defaultVariants: { elevation: 1 },
16
+ compoundVariants: []
17
+ });
18
+ var captionRecipe = createRuntimeFn({
19
+ defaultClassName: "_1aa2xbm9 _1aa2xbm8",
20
+ variantClassNames: {
21
+ size: {
22
+ "0": "_1aa2xbma",
23
+ "1": "_1aa2xbmb",
24
+ "2": "_1aa2xbmc",
25
+ "3": "_1aa2xbmd",
26
+ "4": "_1aa2xbme",
27
+ "5": "_1aa2xbmf",
28
+ "6": "_1aa2xbmg",
29
+ "7": "_1aa2xbmh",
30
+ "8": "_1aa2xbmi",
31
+ "9": "_1aa2xbmj",
32
+ "10": "_1aa2xbmk",
33
+ "11": "_1aa2xbml",
34
+ "12": "_1aa2xbmm",
35
+ inherit: "_1aa2xbmn"
36
+ },
37
+ weight: {
38
+ light: "_1aa2xbmo",
39
+ regular: "_1aa2xbmp",
40
+ medium: "_1aa2xbmq",
41
+ semiBold: "_1aa2xbmr",
42
+ bold: "_1aa2xbms"
43
+ },
44
+ variant: {
45
+ red: "_1aa2xbmt",
46
+ subtle: "_1aa2xbmu",
47
+ "default": "_1aa2xbmv",
48
+ contrast: "_1aa2xbmw",
49
+ inherit: "_1aa2xbmx",
50
+ invalid: "_1aa2xbmy"
51
+ },
52
+ gradient: { true: "_1aa2xbmz" },
53
+ noWrap: { true: "_1aa2xbm10" },
54
+ transform: {
55
+ uppercase: "_1aa2xbm11",
56
+ capitalize: "_1aa2xbm12",
57
+ capitalizeWords: "_1aa2xbm13"
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "3",
62
+ variant: "default"
63
+ },
64
+ compoundVariants: []
65
+ });
66
+ var tbody = "_1aa2xbm14";
67
+ var thead = "_1aa2xbm15";
68
+ var tfoot = "_1aa2xbm16";
69
+ var trRecipe = createRuntimeFn({
70
+ defaultClassName: "_1aa2xbm18 _1aa2xbm17",
71
+ variantClassNames: {
72
+ interactive: { true: "_1aa2xbm19" },
73
+ active: { true: "_1aa2xbm1a" }
74
+ },
75
+ defaultVariants: {},
76
+ compoundVariants: [[{
77
+ interactive: true,
78
+ active: true
79
+ }, "_1aa2xbm1b"]]
80
+ });
81
+ var thRecipe = createRuntimeFn({
82
+ defaultClassName: "_1aa2xbm1d _1aa2xbm1c",
83
+ variantClassNames: {
84
+ size: {
85
+ "0": "_1aa2xbm1e",
86
+ "1": "_1aa2xbm1f",
87
+ "2": "_1aa2xbm1g",
88
+ "3": "_1aa2xbm1h",
89
+ "4": "_1aa2xbm1i",
90
+ "5": "_1aa2xbm1j",
91
+ "6": "_1aa2xbm1k",
92
+ "7": "_1aa2xbm1l",
93
+ "8": "_1aa2xbm1m",
94
+ "9": "_1aa2xbm1n",
95
+ "10": "_1aa2xbm1o",
96
+ "11": "_1aa2xbm1p",
97
+ "12": "_1aa2xbm1q",
98
+ inherit: "_1aa2xbm1r"
99
+ },
100
+ weight: {
101
+ light: "_1aa2xbm1s",
102
+ regular: "_1aa2xbm1t",
103
+ medium: "_1aa2xbm1u",
104
+ semiBold: "_1aa2xbm1v",
105
+ bold: "_1aa2xbm1w"
106
+ },
107
+ variant: {
108
+ red: "_1aa2xbm1x",
109
+ subtle: "_1aa2xbm1y",
110
+ "default": "_1aa2xbm1z",
111
+ contrast: "_1aa2xbm20",
112
+ inherit: "_1aa2xbm21",
113
+ invalid: "_1aa2xbm22"
114
+ },
115
+ gradient: { true: "_1aa2xbm23" },
116
+ noWrap: { true: "_1aa2xbm24" },
117
+ transform: {
118
+ uppercase: "_1aa2xbm25",
119
+ capitalize: "_1aa2xbm26",
120
+ capitalizeWords: "_1aa2xbm27"
121
+ },
122
+ align: {
123
+ start: "_1aa2xbm28",
124
+ center: "_1aa2xbm29",
125
+ end: "_1aa2xbm2a"
126
+ }
127
+ },
128
+ defaultVariants: {
129
+ size: "0",
130
+ variant: "subtle",
131
+ transform: "capitalize",
132
+ align: "start"
133
+ },
134
+ compoundVariants: []
135
+ });
136
+ var sortButton = "_1aa2xbm2b";
137
+ var sortIcon = "_1aa2xbm2c";
138
+ var sortIconActive = "_1aa2xbm2d";
139
+ var emptyHeaderCell = "_1aa2xbm2e";
140
+ var tdRecipe = createRuntimeFn({
141
+ defaultClassName: "_1aa2xbm2g _1aa2xbm2f",
142
+ variantClassNames: {
143
+ subtle: { true: "_1aa2xbm2h" },
144
+ align: {
145
+ start: "_1aa2xbm2i",
146
+ center: "_1aa2xbm2j",
147
+ end: "_1aa2xbm2k"
148
+ }
149
+ },
150
+ defaultVariants: { align: "start" },
151
+ compoundVariants: []
152
+ });
153
+ var toggleCell = "_1aa2xbm2l";
154
+ var toggle = "_1aa2xbm2m";
155
+ var expandButton = "_1aa2xbm2n";
156
+ var chevron = "_1aa2xbm2o";
157
+ var collapsedCell = "_1aa2xbm2p";
158
+ var collapsedContent = "_1aa2xbm2q";
159
+ export { captionRecipe, chevron, collapsedCell, collapsedContent, emptyHeaderCell, expandButton, sortButton, sortIcon, sortIconActive, tableRecipe, tbody, tdRecipe, tfoot, thRecipe, thead, toggle, toggleCell, trRecipe };
160
+
161
+ //# sourceMappingURL=Table.vanilla.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Table/Table.vanilla.css.ts"],"sourcesContent":["import { globalStyle, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\nimport { elevationVariants } from '../Elevation/Elevation.vanilla.css';\nimport { ROW_LINK_CONTROL_Z_INDEX } from '../RowLink/RowLink.constants';\n\nconst rowBorder = `1px solid ${tokens.colors.tableRowBorder}`;\n\nconst alignVariants = {\n start: { textAlign: 'start' },\n center: { textAlign: 'center' },\n end: { textAlign: 'end' },\n} as const;\n\nconst textVariants = {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n noWrap: noWrapVariants,\n} as const;\n\nconst layer = (backgroundColor: string, borderRadius: Record<string, string>) =>\n ({\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n backgroundColor,\n ...borderRadius,\n }) as const;\n\nexport const table = style({\n width: '100%',\n tableLayout: 'fixed',\n boxSizing: 'border-box',\n borderCollapse: 'separate',\n borderSpacing: 0,\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.tableText,\n borderRadius: tokens.radii['3'],\n overflow: 'hidden',\n});\n\nexport const tableRecipe = recipe({\n base: table,\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 1,\n },\n});\n\nconst captionBase = style({\n lineHeight: '1.25',\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'proportional-nums',\n display: 'table-caption',\n textAlign: 'start',\n fontWeight: tokens.fontWeights.medium,\n});\n\nexport const captionRecipe = recipe({\n base: captionBase,\n variants: {\n ...textVariants,\n transform: transformVariants,\n },\n defaultVariants: {\n size: '3',\n variant: 'default',\n },\n});\n\nexport const tbody = style({\n width: '100%',\n verticalAlign: 'middle',\n});\n\nexport const thead = style({\n position: 'relative',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n verticalAlign: 'middle',\n\n '::after': layer(tokens.colors.tableHeaderLayerBackground, {\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n }),\n});\n\nexport const tfoot = style({\n verticalAlign: 'middle',\n position: 'relative',\n borderRadius: 'inherit',\n\n '::after': layer(tokens.colors.tableFooterLayerBackground, { borderRadius: 'inherit' }),\n\n selectors: {\n [`${table} ${tbody}:not(:empty) ~ &, ${table} ${thead}:not(:empty) ~ &`]: {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n },\n});\n\nconst tr = style({\n verticalAlign: 'inherit',\n selectors: {\n '&:hover': {\n color: tokens.colors.tableHoverText,\n },\n },\n});\n\nexport const trRecipe = recipe({\n base: tr,\n variants: {\n interactive: {\n true: {\n selectors: {\n '&:hover': {\n backgroundColor: tokens.colors.tableHoverBackground,\n cursor: 'pointer',\n },\n },\n },\n },\n active: {\n true: {\n backgroundColor: tokens.colors.tableHoverBackground,\n color: tokens.colors.tableActiveText,\n fontWeight: tokens.fontWeights.semiBold,\n },\n },\n },\n compoundVariants: [\n {\n variants: { interactive: true, active: true },\n style: {\n selectors: {\n '&:hover': {\n color: tokens.colors.tableActiveHoverText,\n },\n },\n },\n },\n ],\n});\n\n// Text and Label base styles, then the header cell's own.\nconst th = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n\n display: 'table-cell',\n verticalAlign: 'inherit',\n borderTopLeftRadius: 'inherit',\n borderTopRightRadius: 'inherit',\n textAlign: 'start',\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n borderBottom: rowBorder,\n\n selectors: {\n [`${thead} &`]: {\n fontSize: tokens.fontSizes['1'],\n color: tokens.colors.tableHeaderText,\n fontWeight: tokens.fontWeights.light,\n },\n },\n});\n\nexport const thRecipe = recipe({\n base: th,\n variants: {\n ...textVariants,\n transform: {\n ...transformVariants,\n // Label's capitalize sets inline-block; a cell must stay a cell.\n capitalize: { ...transformVariants.capitalize, display: 'table-cell' },\n },\n align: alignVariants,\n },\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n align: 'start',\n },\n});\n\nexport const sortButton = style({\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n gap: tokens.space['2'],\n borderRadius: tokens.radii['1'],\n cursor: 'pointer',\n selectors: {\n '&:hover': {\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: tokens.colors.focusOutline,\n outlineOffset: '2px',\n },\n },\n});\n\nexport const sortIcon = style({\n flexShrink: 0,\n});\n\nglobalStyle(`${sortIcon} > path`, {\n opacity: 0.4,\n});\n\nexport const sortIconActive = style({\n selectors: {\n [`${sortIcon} > &`]: {\n opacity: 1,\n },\n },\n});\n\nexport const emptyHeaderCell = style({\n width: 24,\n});\n\nconst td = style({\n boxSizing: 'border-box',\n padding: `${tokens.space['5']} ${tokens.space['3']}`,\n borderBottom: rowBorder,\n fontSize: tokens.fontSizes['3'],\n lineHeight: '16px',\n verticalAlign: 'inherit',\n\n selectors: {\n [`${tr}:last-child > &`]: {\n borderBottom: 'none',\n },\n // A closed collapsible row is followed only by its hidden content row.\n [`${tr}[data-collapsed]:nth-last-child(2) > &`]: {\n borderBottom: 'none',\n },\n [`${tfoot} &`]: {\n fontSize: tokens.fontSizes['1'],\n color: tokens.colors.tableHeaderText,\n fontWeight: tokens.fontWeights.light,\n padding: `${tokens.space['2']} ${tokens.space['3']}`,\n },\n [`${table} ${tbody}:not(:empty) ~ ${tfoot} &`]: {\n borderTop: rowBorder,\n },\n },\n});\n\nexport const tdRecipe = recipe({\n base: td,\n variants: {\n subtle: {\n true: {\n fontWeight: tokens.fontWeights.regular,\n color: tokens.colors.tableSubtleText,\n },\n },\n align: alignVariants,\n },\n defaultVariants: {\n align: 'start',\n },\n});\n\nexport const toggleCell = style({\n selectors: {\n '&&': {\n padding: `0 0 0 ${tokens.space['3']}`,\n },\n },\n});\n\nexport const toggle = style({\n boxSizing: 'border-box',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n zIndex: ROW_LINK_CONTROL_Z_INDEX,\n height: '40px',\n ':hover': {\n color: tokens.colors.tableActiveText,\n },\n});\n\nexport const expandButton = style({\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '100%',\n borderRadius: tokens.radii['1'],\n cursor: 'pointer',\n selectors: {\n '&:focus-visible': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: tokens.colors.focusOutline,\n outlineOffset: '2px',\n },\n },\n});\n\nexport const chevron = style({\n transition: 'transform 0.2s ease-out',\n selectors: {\n [`${expandButton}[aria-expanded=\"true\"] > &`]: {\n transform: 'rotate(90deg)',\n },\n },\n});\n\n// Visibility switches after the collapse animation, so closed content leaves the tab order.\nexport const collapsedCell = style({\n transition: 'padding 0.2s ease-out, visibility 0s',\n selectors: {\n '&&[data-closed]': {\n transition: 'padding 0.2s ease-out, visibility 0s 0.2s',\n visibility: 'hidden',\n lineHeight: 0,\n fontSize: 0,\n padding: `0px ${tokens.space['3']}`,\n border: 'none',\n },\n },\n});\n\nexport const collapsedContent = style({\n boxSizing: 'border-box',\n transition: 'all 0.2s ease-out',\n selectors: {\n [`${collapsedCell}[data-closed] > &`]: {\n height: 0,\n overflow: 'hidden',\n },\n },\n});\n"],"mappings":""}