@epilot/volt-ui-experimental-griffel 0.2.0 → 0.2.3

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 (140) hide show
  1. package/AGENTS.md +153 -0
  2. package/AUTHORING.md +292 -0
  3. package/README.md +90 -7
  4. package/dist/components/alert-dialog/alert-dialog.js +18 -18
  5. package/dist/components/avatar/avatar.js +18 -19
  6. package/dist/components/avatar/avatar.js.map +1 -1
  7. package/dist/components/badge/badge.js +13 -13
  8. package/dist/components/badge/badge.js.map +1 -1
  9. package/dist/components/breadcrumb/breadcrumb.js +6 -6
  10. package/dist/components/button/button.js +20 -20
  11. package/dist/components/button-group/button-group.js +6 -6
  12. package/dist/components/callout/callout.js +6 -6
  13. package/dist/components/card/card.js +8 -8
  14. package/dist/components/collapsible-sidebar/collapsible-sidebar.js +4 -4
  15. package/dist/components/command/command.js +15 -15
  16. package/dist/components/data-table/data-table-column-header.js +5 -5
  17. package/dist/components/data-table/data-table-error.js +13 -13
  18. package/dist/components/data-table/data-table-loading.js +4 -4
  19. package/dist/components/date-range-picker/date-range-picker.js +8 -8
  20. package/dist/components/date-time-picker/calendar.js +15 -15
  21. package/dist/components/date-time-picker/date-time-picker-panel.js +73 -67
  22. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  23. package/dist/components/date-time-picker/date-time-picker.js +53 -49
  24. package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
  25. package/dist/components/date-time-picker/time-picker.js +77 -71
  26. package/dist/components/date-time-picker/time-picker.js.map +1 -1
  27. package/dist/components/dialog/dialog.js +21 -21
  28. package/dist/components/drawer/drawer.js +16 -16
  29. package/dist/components/dropdown-menu/dropdown-menu.js +13 -13
  30. package/dist/components/field/field-combobox.js +9 -9
  31. package/dist/components/field/field.js +22 -22
  32. package/dist/components/label/label.js +11 -11
  33. package/dist/components/list/list.js +13 -13
  34. package/dist/components/option-card/option-card.js +24 -24
  35. package/dist/components/pill/pill.js +21 -20
  36. package/dist/components/pill/pill.js.map +1 -1
  37. package/dist/components/popover/popover.js +4 -4
  38. package/dist/components/radio/radio.js +8 -8
  39. package/dist/components/scroll-overflow/scroll-overflow.js +6 -6
  40. package/dist/components/select/select.js +25 -25
  41. package/dist/components/skeleton/skeleton.js +17 -17
  42. package/dist/components/skeleton/skeleton.js.map +1 -1
  43. package/dist/components/table/table-pagination.js +74 -76
  44. package/dist/components/table/table-pagination.js.map +1 -1
  45. package/dist/components/tabs/tabs.js +19 -19
  46. package/dist/components/toast/toast.js +24 -24
  47. package/dist/components/toggle/toggle.js +17 -17
  48. package/dist/components/tooltip/tooltip.js +6 -6
  49. package/dist/index.d.ts +9200 -65
  50. package/dist/index.js +276 -273
  51. package/dist/index.js.map +1 -1
  52. package/dist/tokens/core.generated.js +1168 -1154
  53. package/dist/tokens/core.generated.js.map +1 -1
  54. package/dist/tokens/index.d.ts +1079 -1053
  55. package/dist/tokens/index.js +1078 -1056
  56. package/dist/tokens/index.js.map +1 -1
  57. package/dist/tokens/install.js +21 -9
  58. package/dist/tokens/install.js.map +1 -1
  59. package/dist/tokens/palette.generated.js +1323 -1293
  60. package/dist/tokens/palette.generated.js.map +1 -1
  61. package/dist/tokens.json +45 -1
  62. package/package.json +12 -5
  63. package/testing/jest-preset.cjs +64 -0
  64. package/dist/components/accordion/accordion.d.ts +0 -14
  65. package/dist/components/alert-dialog/alert-dialog.d.ts +0 -36
  66. package/dist/components/avatar/avatar-group.d.ts +0 -7
  67. package/dist/components/avatar/avatar.d.ts +0 -17
  68. package/dist/components/badge/badge.d.ts +0 -41
  69. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -37
  70. package/dist/components/button/button.d.ts +0 -18
  71. package/dist/components/button-group/button-group.d.ts +0 -30
  72. package/dist/components/callout/callout.d.ts +0 -23
  73. package/dist/components/card/card.d.ts +0 -9
  74. package/dist/components/checkbox/checkbox.d.ts +0 -4
  75. package/dist/components/collapsible-sidebar/collapsible-sidebar.d.ts +0 -33
  76. package/dist/components/command/command.d.ts +0 -85
  77. package/dist/components/data-table/data-table-body.d.ts +0 -21
  78. package/dist/components/data-table/data-table-column-header.d.ts +0 -13
  79. package/dist/components/data-table/data-table-column-visibility.d.ts +0 -21
  80. package/dist/components/data-table/data-table-content.d.ts +0 -13
  81. package/dist/components/data-table/data-table-context.d.ts +0 -66
  82. package/dist/components/data-table/data-table-error.d.ts +0 -21
  83. package/dist/components/data-table/data-table-header.d.ts +0 -14
  84. package/dist/components/data-table/data-table-loading.d.ts +0 -13
  85. package/dist/components/data-table/data-table-pagination.d.ts +0 -17
  86. package/dist/components/data-table/data-table-pinning-utils.d.ts +0 -17
  87. package/dist/components/data-table/data-table-row.d.ts +0 -14
  88. package/dist/components/data-table/data-table-toolbar.d.ts +0 -7
  89. package/dist/components/data-table/data-table.d.ts +0 -92
  90. package/dist/components/data-table/get-selected-row-data.d.ts +0 -18
  91. package/dist/components/data-table/hooks/index.d.ts +0 -2
  92. package/dist/components/data-table/hooks/use-data-table-content.d.ts +0 -1
  93. package/dist/components/data-table/hooks/use-data-table.d.ts +0 -2
  94. package/dist/components/date-range-picker/date-range-picker-utils.d.ts +0 -2
  95. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -34
  96. package/dist/components/date-range-picker/range-calendar.d.ts +0 -15
  97. package/dist/components/date-time-picker/calendar.d.ts +0 -28
  98. package/dist/components/date-time-picker/date-time-picker-context.d.ts +0 -39
  99. package/dist/components/date-time-picker/date-time-picker-input.d.ts +0 -13
  100. package/dist/components/date-time-picker/date-time-picker-panel.d.ts +0 -15
  101. package/dist/components/date-time-picker/date-time-picker-popover.d.ts +0 -6
  102. package/dist/components/date-time-picker/date-time-picker-utils.d.ts +0 -37
  103. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -47
  104. package/dist/components/date-time-picker/time-picker.d.ts +0 -12
  105. package/dist/components/dialog/dialog.d.ts +0 -27
  106. package/dist/components/drawer/drawer.d.ts +0 -27
  107. package/dist/components/dropdown-menu/dropdown-menu.d.ts +0 -41
  108. package/dist/components/field/field-combobox.d.ts +0 -90
  109. package/dist/components/field/field-select.d.ts +0 -4
  110. package/dist/components/field/field.d.ts +0 -76
  111. package/dist/components/label/label.d.ts +0 -21
  112. package/dist/components/list/list.d.ts +0 -46
  113. package/dist/components/option-card/option-card.d.ts +0 -39
  114. package/dist/components/pill/pill.d.ts +0 -27
  115. package/dist/components/popover/popover.d.ts +0 -14
  116. package/dist/components/radio/radio.d.ts +0 -6
  117. package/dist/components/scroll-overflow/scroll-overflow.d.ts +0 -38
  118. package/dist/components/segmented-control/segmented-control.d.ts +0 -11
  119. package/dist/components/select/select.d.ts +0 -26
  120. package/dist/components/separator/separator.d.ts +0 -30
  121. package/dist/components/skeleton/skeleton.d.ts +0 -24
  122. package/dist/components/spinner/spinner.d.ts +0 -25
  123. package/dist/components/switch/switch.d.ts +0 -17
  124. package/dist/components/table/table-pagination.d.ts +0 -45
  125. package/dist/components/table/table.d.ts +0 -50
  126. package/dist/components/tabs/tabs.d.ts +0 -18
  127. package/dist/components/text/text.d.ts +0 -22
  128. package/dist/components/toast/toast.d.ts +0 -10
  129. package/dist/components/toggle/toggle-group.d.ts +0 -10
  130. package/dist/components/toggle/toggle.d.ts +0 -10
  131. package/dist/components/tooltip/tooltip.d.ts +0 -15
  132. package/dist/lib/clear-button.d.ts +0 -5
  133. package/dist/lib/icons.d.ts +0 -3
  134. package/dist/lib/pagination.d.ts +0 -71
  135. package/dist/renderer/contract.d.ts +0 -12
  136. package/dist/renderer/index.d.ts +0 -10
  137. package/dist/styles/make-styles.d.ts +0 -37
  138. package/dist/tokens/core.generated.d.ts +0 -3
  139. package/dist/tokens/install.d.ts +0 -38
  140. package/dist/tokens/palette.generated.d.ts +0 -3
@@ -1,15 +1,15 @@
1
1
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import { shorthands as i } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
4
- import { SLOT_ATTR as m } from "../../packages/volt-runtime/dist/renderer/contract.js";
4
+ import { SLOT_ATTR as l } from "../../packages/volt-runtime/dist/renderer/contract.js";
5
5
  import { mergeClasses as t } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
6
6
  import { makeVoltStyles as p } from "../../styles/make-styles.js";
7
- import { indigoA4 as f, pinkA4 as g, purpleA4 as k, gray3 as b, gray4 as y, radiusMd as l } from "../../tokens/index.js";
7
+ import { radiusMd as u, indigoA4 as f, pinkA4 as g, purpleA4 as k, gray3 as b, gray4 as y } from "../../tokens/index.js";
8
8
  import { ensurePaletteTokens as N } from "../../tokens/install.js";
9
9
  const T = p({
10
10
  default: {
11
11
  backgroundColor: y,
12
- ...i.borderRadius(l),
12
+ ...i.borderRadius(u),
13
13
  animationName: {
14
14
  "0%,100%": { opacity: 1 },
15
15
  "50%": { opacity: 0.5 }
@@ -20,7 +20,7 @@ const T = p({
20
20
  },
21
21
  ai: {
22
22
  backgroundColor: b,
23
- ...i.borderRadius(l),
23
+ ...i.borderRadius(u),
24
24
  position: "relative",
25
25
  ...i.overflow("hidden")
26
26
  },
@@ -66,17 +66,17 @@ const T = p({
66
66
  animationIterationCount: "infinite"
67
67
  }
68
68
  }), D = d.forwardRef(
69
- function({ variant: u = "default", className: o, children: e, ...r }, s) {
70
- N();
69
+ function({ variant: o = "default", className: e, children: r, ...s }, m) {
70
+ o === "ai" && N();
71
71
  const a = T();
72
- return u === "ai" ? /* @__PURE__ */ c(
72
+ return o === "ai" ? /* @__PURE__ */ c(
73
73
  "div",
74
74
  {
75
- ref: s,
75
+ ref: m,
76
76
  "data-slot": "skeleton",
77
- [m]: "skeleton",
78
- className: t(a.ai, o),
79
- ...r,
77
+ [l]: "skeleton",
78
+ className: t(a.ai, e),
79
+ ...s,
80
80
  children: [
81
81
  /* @__PURE__ */ n(
82
82
  "span",
@@ -99,18 +99,18 @@ const T = p({
99
99
  className: t(a.spot, a.spot3)
100
100
  }
101
101
  ),
102
- e
102
+ r
103
103
  ]
104
104
  }
105
105
  ) : /* @__PURE__ */ n(
106
106
  "div",
107
107
  {
108
- ref: s,
108
+ ref: m,
109
109
  "data-slot": "skeleton",
110
- [m]: "skeleton",
111
- className: t(a.default, o),
112
- ...r,
113
- children: e
110
+ [l]: "skeleton",
111
+ className: t(a.default, e),
112
+ ...s,
113
+ children: r
114
114
  }
115
115
  );
116
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.js","sources":["../../../src/components/skeleton/skeleton.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@epilot/volt-ui-runtime\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport { ensurePaletteTokens } from \"../../tokens/install\"\n\n/**\n * Skeleton — v1's loading placeholder ported to Griffel atoms.\n *\n * Two variants, `default` and `ai`. `default` is a gray block that pulses; `ai` is a gray field\n * that renders three decorative colour spots drifting behind the content. The spots are ported from\n * v1's global `skeleton-ai-spot-*` classes in `styles/utilities.css`, including their exact\n * gradients, durations (10s / 12s / 14s) and easing.\n *\n * The keyframes are the object form, so Griffel hashes each one from its content — a hand-authored\n * global `@keyframes` would collide across two co-resident copies of this package. The pulse is a\n * single three-stop animation; each spot carries its own.\n *\n * The spots are `purple-a4`, `pink-a4` and `indigo-a4`, none of which is a core token family\n * (accent / gray / error / warning / success / info ship in the core sheet; everything else lives\n * in the palette sheet, which is not loaded by default). `ai` therefore calls\n * `ensurePaletteTokens()` — CONVENTIONS rule 3. There is no `color` prop, so no inline custom\n * properties: the spot colours are constant and live inside the style objects.\n */\n\nexport type SkeletonVariant = \"default\" | \"ai\"\n\nconst useStyles = makeVoltStyles({\n default: {\n backgroundColor: tokens.gray4,\n ...shorthands.borderRadius(tokens.radiusMd),\n animationName: {\n \"0%,100%\": { opacity: 1 },\n \"50%\": { opacity: 0.5 },\n },\n animationDuration: \"2s\",\n animationTimingFunction: \"cubic-bezier(0.4,0,0.6,1)\",\n animationIterationCount: \"infinite\",\n },\n ai: {\n backgroundColor: tokens.gray3,\n ...shorthands.borderRadius(tokens.radiusMd),\n position: \"relative\",\n ...shorthands.overflow(\"hidden\"),\n },\n spot: {\n position: \"absolute\",\n inset: \"-50%\",\n ...shorthands.borderRadius(\"50%\"),\n opacity: 0.6,\n filter: \"blur(18px)\",\n pointerEvents: \"none\",\n },\n spot1: {\n backgroundImage: `radial-gradient(circle, ${tokens.purpleA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(-20%, 0%) scale(1)\" },\n \"33%\": { transform: \"translate(40%, -25%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-10%, 30%) scale(0.9)\" },\n },\n animationDuration: \"10s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot2: {\n backgroundImage: `radial-gradient(circle, ${tokens.pinkA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(20%, 0%) scale(1.1)\" },\n \"33%\": { transform: \"translate(-35%, 25%) scale(0.9)\" },\n \"66%\": { transform: \"translate(30%, -20%) scale(1.3)\" },\n },\n animationDuration: \"12s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot3: {\n backgroundImage: `radial-gradient(circle, ${tokens.indigoA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(0%, 20%) scale(1)\" },\n \"33%\": { transform: \"translate(25%, -30%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-30%, 10%) scale(0.8)\" },\n },\n animationDuration: \"14s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n})\n\nexport type SkeletonProps = React.ComponentProps<\"div\"> & {\n variant?: SkeletonVariant\n}\n\nexport const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n function Skeleton(\n { variant = \"default\", className, children, ...props },\n ref\n ) {\n // The decorative families live in the palette sheet, which is not installed by default\n // (CONVENTIONS rule 3). It has to be present whenever this component renders at all.\n ensurePaletteTokens()\n\n const styles = useStyles()\n\n if (variant === \"ai\") {\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.ai, className)}\n {...props}\n >\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot1)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot2)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot3)}\n />\n {children}\n </div>\n )\n }\n\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.default, className)}\n {...props}\n >\n {children}\n </div>\n )\n }\n)\n"],"names":["useStyles","makeVoltStyles","tokens.gray4","shorthands","tokens.radiusMd","tokens.gray3","tokens.purpleA4","tokens.pinkA4","tokens.indigoA4","Skeleton","React","variant","className","children","props","ref","ensurePaletteTokens","styles","jsxs","SLOT_ATTR","mergeClasses","jsx"],"mappings":";;;;;;;;AA8BA,MAAMA,IAAYC,EAAe;AAAA,EAC/B,SAAS;AAAA,IACP,iBAAiBC;AAAAA,IACjB,GAAGC,EAAW,aAAaC,CAAe;AAAA,IAC1C,eAAe;AAAA,MACb,WAAW,EAAE,SAAS,EAAA;AAAA,MACtB,OAAO,EAAE,SAAS,IAAA;AAAA,IAAI;AAAA,IAExB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,EAAA;AAAA,EAE3B,IAAI;AAAA,IACF,iBAAiBC;AAAAA,IACjB,GAAGF,EAAW,aAAaC,CAAe;AAAA,IAC1C,UAAU;AAAA,IACV,GAAGD,EAAW,SAAS,QAAQ;AAAA,EAAA;AAAA,EAEjC,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,OAAO;AAAA,IACP,GAAGA,EAAW,aAAa,K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QAC3C,GAAGE;AAAA,QAEJ,UAAA;AAAA,UAAA,gBAAAO;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAWD,EAAaH,EAAO,MAAMA,EAAO,KAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAEnD,gBAAAI;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAWD,EAAaH,EAAO,MAAMA,EAAO,KAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAEnD,gBAAAI;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAWD,EAAaH,EAAO,MAAMA,EAAO,KAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAElDJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,IAML,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAN;AAAA,QACA,aAAU;AAAA,QACJ,CAACI,CAAS,GAAG;AAAA,QACnB,WAAWC,EAAaH,EAAO,SAASL,CAAS;AAAA,QAChD,GAAGE;AAAA,QAEH,UAAAD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;"}
1
+ {"version":3,"file":"skeleton.js","sources":["../../../src/components/skeleton/skeleton.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@epilot/volt-ui-runtime\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport { ensurePaletteTokens } from \"../../tokens/install\"\n\n/**\n * Skeleton — v1's loading placeholder ported to Griffel atoms.\n *\n * Two variants, `default` and `ai`. `default` is a gray block that pulses; `ai` is a gray field\n * that renders three decorative colour spots drifting behind the content. The spots are ported from\n * v1's global `skeleton-ai-spot-*` classes in `styles/utilities.css`, including their exact\n * gradients, durations (10s / 12s / 14s) and easing.\n *\n * The keyframes are the object form, so Griffel hashes each one from its content — a hand-authored\n * global `@keyframes` would collide across two co-resident copies of this package. The pulse is a\n * single three-stop animation; each spot carries its own.\n *\n * The spots are `purple-a4`, `pink-a4` and `indigo-a4`, none of which is a core token family\n * (accent / gray / error / warning / success / info ship in the core sheet; everything else lives\n * in the palette sheet, which is not loaded by default). `ai` therefore calls\n * `ensurePaletteTokens()` — CONVENTIONS rule 3. There is no `color` prop, so no inline custom\n * properties: the spot colours are constant and live inside the style objects.\n */\n\nexport type SkeletonVariant = \"default\" | \"ai\"\n\nconst useStyles = makeVoltStyles({\n default: {\n backgroundColor: tokens.gray4,\n ...shorthands.borderRadius(tokens.radiusMd),\n animationName: {\n \"0%,100%\": { opacity: 1 },\n \"50%\": { opacity: 0.5 },\n },\n animationDuration: \"2s\",\n animationTimingFunction: \"cubic-bezier(0.4,0,0.6,1)\",\n animationIterationCount: \"infinite\",\n },\n ai: {\n backgroundColor: tokens.gray3,\n ...shorthands.borderRadius(tokens.radiusMd),\n position: \"relative\",\n ...shorthands.overflow(\"hidden\"),\n },\n spot: {\n position: \"absolute\",\n inset: \"-50%\",\n ...shorthands.borderRadius(\"50%\"),\n opacity: 0.6,\n filter: \"blur(18px)\",\n pointerEvents: \"none\",\n },\n spot1: {\n backgroundImage: `radial-gradient(circle, ${tokens.purpleA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(-20%, 0%) scale(1)\" },\n \"33%\": { transform: \"translate(40%, -25%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-10%, 30%) scale(0.9)\" },\n },\n animationDuration: \"10s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot2: {\n backgroundImage: `radial-gradient(circle, ${tokens.pinkA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(20%, 0%) scale(1.1)\" },\n \"33%\": { transform: \"translate(-35%, 25%) scale(0.9)\" },\n \"66%\": { transform: \"translate(30%, -20%) scale(1.3)\" },\n },\n animationDuration: \"12s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot3: {\n backgroundImage: `radial-gradient(circle, ${tokens.indigoA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(0%, 20%) scale(1)\" },\n \"33%\": { transform: \"translate(25%, -30%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-30%, 10%) scale(0.8)\" },\n },\n animationDuration: \"14s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n})\n\nexport type SkeletonProps = React.ComponentProps<\"div\"> & {\n variant?: SkeletonVariant\n}\n\nexport const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n function Skeleton(\n { variant = \"default\", className, children, ...props },\n ref\n ) {\n // The decorative families live in the palette sheet, which is not installed by default\n // (CONVENTIONS rule 3). Only the `ai` variant paints them purple-a4, pink-a4, indigo-a4 — and\n // the variant is known here, so the default variant no longer installs 63 kB of CSS it never\n // reads.\n if (variant === \"ai\") ensurePaletteTokens()\n\n const styles = useStyles()\n\n if (variant === \"ai\") {\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.ai, className)}\n {...props}\n >\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot1)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot2)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot3)}\n />\n {children}\n </div>\n )\n }\n\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.default, className)}\n {...props}\n >\n {children}\n </div>\n )\n }\n)\n"],"names":["useStyles","makeVoltStyles","tokens.gray4","shorthands","tokens.radiusMd","tokens.gray3","tokens.purpleA4","tokens.pinkA4","tokens.indigoA4","Skeleton","React","variant","className","children","props","ref","ensurePaletteTokens","styles","jsxs","SLOT_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AAAA,QAEH,UAAAD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;"}
@@ -3,14 +3,13 @@ import * as F from "react";
3
3
  import { Root as G, Trigger as X, Value as Q, Icon as U, Portal as Z, Content as q, Viewport as J, Group as K, Label as Y, Item as b, ItemIndicator as ee, ItemText as te } from "../../vendor/@radix-ui/react-select/dist/index.js";
4
4
  import { shorthands as i } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
5
5
  import { SLOT_ATTR as oe } from "../../packages/volt-runtime/dist/renderer/contract.js";
6
- import { mergeClasses as re } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
7
- import { makeVoltStyles as ne } from "../../styles/make-styles.js";
8
- import { grayA6 as ie, accentA3 as A, leadingSm as m, textSm as u, grayA11 as w, fontWeightSemibold as ae, leadingXs as ce, textXs as se, semBody as de, accent8 as ge, grayA4 as C, grayA3 as g, spacingElement1 as pe, spacingGroup1 as W, accent11 as x, trackingNormal as he, accentA8 as le, spacingElement2 as me, radiusMd as ue, radiusLg as R, spacingElement3 as ve } from "../../tokens/index.js";
9
- import { ensurePaletteTokens as fe } from "../../tokens/install.js";
10
- import { calculatePagination as ke, getPageNumbers as we, clampPage as Ce } from "../../lib/pagination.js";
11
- import { TooltipProvider as xe, Tooltip as ye, TooltipTrigger as Ie, TooltipContent as Pe } from "../tooltip/tooltip.js";
6
+ import { mergeClasses as ne } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
7
+ import { makeVoltStyles as re } from "../../styles/make-styles.js";
8
+ import { radiusMd as ie, grayA6 as ae, radiusLg as A, spacingElement3 as ce, accentA3 as W, leadingSm as m, textSm as u, grayA11 as k, fontWeightSemibold as se, leadingXs as de, textXs as ge, semBody as pe, accent8 as he, grayA4 as C, grayA3 as g, spacingElement1 as le, spacingGroup1 as R, accent11 as x, trackingNormal as me, accentA8 as ue, spacingElement2 as ve } from "../../tokens/index.js";
9
+ import { calculatePagination as fe, getPageNumbers as we, clampPage as ke } from "../../lib/pagination.js";
10
+ import { TooltipProvider as Ce, Tooltip as xe, TooltipTrigger as ye, TooltipContent as Ie } from "../tooltip/tooltip.js";
12
11
  import { Button as d } from "../button/button.js";
13
- const Ne = (n) => /* @__PURE__ */ a(
12
+ const Pe = (r) => /* @__PURE__ */ a(
14
13
  "svg",
15
14
  {
16
15
  xmlns: "http://www.w3.org/2000/svg",
@@ -22,13 +21,13 @@ const Ne = (n) => /* @__PURE__ */ a(
22
21
  strokeWidth: "2",
23
22
  strokeLinecap: "round",
24
23
  strokeLinejoin: "round",
25
- ...n,
24
+ ...r,
26
25
  children: [
27
26
  /* @__PURE__ */ t("path", { d: "M6 6v12" }),
28
27
  /* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
29
28
  ]
30
29
  }
31
- ), Se = (n) => /* @__PURE__ */ t(
30
+ ), Ne = (r) => /* @__PURE__ */ t(
32
31
  "svg",
33
32
  {
34
33
  xmlns: "http://www.w3.org/2000/svg",
@@ -40,10 +39,10 @@ const Ne = (n) => /* @__PURE__ */ a(
40
39
  strokeWidth: "2",
41
40
  strokeLinecap: "round",
42
41
  strokeLinejoin: "round",
43
- ...n,
42
+ ...r,
44
43
  children: /* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
45
44
  }
46
- ), Le = (n) => /* @__PURE__ */ t(
45
+ ), Se = (r) => /* @__PURE__ */ t(
47
46
  "svg",
48
47
  {
49
48
  xmlns: "http://www.w3.org/2000/svg",
@@ -55,10 +54,10 @@ const Ne = (n) => /* @__PURE__ */ a(
55
54
  strokeWidth: "2",
56
55
  strokeLinecap: "round",
57
56
  strokeLinejoin: "round",
58
- ...n,
57
+ ...r,
59
58
  children: /* @__PURE__ */ t("path", { d: "m9 18 6-6-6-6" })
60
59
  }
61
- ), Te = (n) => /* @__PURE__ */ a(
60
+ ), Le = (r) => /* @__PURE__ */ a(
62
61
  "svg",
63
62
  {
64
63
  xmlns: "http://www.w3.org/2000/svg",
@@ -70,13 +69,13 @@ const Ne = (n) => /* @__PURE__ */ a(
70
69
  strokeWidth: "2",
71
70
  strokeLinecap: "round",
72
71
  strokeLinejoin: "round",
73
- ...n,
72
+ ...r,
74
73
  children: [
75
74
  /* @__PURE__ */ t("path", { d: "m9 18 6-6-6-6" }),
76
75
  /* @__PURE__ */ t("path", { d: "M18 6v12" })
77
76
  ]
78
77
  }
79
- ), Be = (n) => /* @__PURE__ */ t(
78
+ ), Be = (r) => /* @__PURE__ */ t(
80
79
  "svg",
81
80
  {
82
81
  xmlns: "http://www.w3.org/2000/svg",
@@ -88,10 +87,10 @@ const Ne = (n) => /* @__PURE__ */ a(
88
87
  strokeWidth: "2",
89
88
  strokeLinecap: "round",
90
89
  strokeLinejoin: "round",
91
- ...n,
90
+ ...r,
92
91
  children: /* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" })
93
92
  }
94
- ), je = (n) => /* @__PURE__ */ t(
93
+ ), Te = (r) => /* @__PURE__ */ t(
95
94
  "svg",
96
95
  {
97
96
  xmlns: "http://www.w3.org/2000/svg",
@@ -103,23 +102,23 @@ const Ne = (n) => /* @__PURE__ */ a(
103
102
  strokeWidth: "2",
104
103
  strokeLinecap: "round",
105
104
  strokeLinejoin: "round",
106
- ...n,
105
+ ...r,
107
106
  children: /* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" })
108
107
  }
109
- ), ze = [10, 25, 50, 100], Ae = ne({
108
+ ), je = [10, 25, 50, 100], ze = re({
110
109
  root: {
111
110
  display: "flex",
112
111
  alignItems: "center",
113
112
  justifyContent: "space-between",
114
- gap: W,
115
- ...i.paddingBlock(ve),
113
+ gap: R,
114
+ ...i.paddingBlock(ce),
116
115
  fontSize: u,
117
116
  lineHeight: m
118
117
  },
119
118
  left: {
120
119
  display: "flex",
121
120
  alignItems: "center",
122
- gap: me
121
+ gap: ve
123
122
  },
124
123
  navButton: {
125
124
  backgroundColor: g,
@@ -129,7 +128,7 @@ const Ne = (n) => /* @__PURE__ */ a(
129
128
  },
130
129
  ":disabled": {
131
130
  backgroundColor: g,
132
- color: le,
131
+ color: ue,
133
132
  pointerEvents: "none"
134
133
  }
135
134
  },
@@ -147,7 +146,7 @@ const Ne = (n) => /* @__PURE__ */ a(
147
146
  }
148
147
  },
149
148
  ellipsisButton: {
150
- letterSpacing: he,
149
+ letterSpacing: me,
151
150
  backgroundColor: "transparent",
152
151
  color: x,
153
152
  ":hover": {
@@ -157,13 +156,13 @@ const Ne = (n) => /* @__PURE__ */ a(
157
156
  right: {
158
157
  display: "flex",
159
158
  alignItems: "center",
160
- gap: W,
159
+ gap: R,
161
160
  paddingRight: "0.125rem"
162
161
  },
163
162
  range: {
164
163
  fontSize: u,
165
164
  lineHeight: m,
166
- color: w,
165
+ color: k,
167
166
  fontVariantNumeric: "tabular-nums"
168
167
  },
169
168
  selectTrigger: {
@@ -173,8 +172,8 @@ const Ne = (n) => /* @__PURE__ */ a(
173
172
  minWidth: "4rem",
174
173
  alignItems: "center",
175
174
  justifyContent: "space-between",
176
- gap: pe,
177
- ...i.borderRadius(R),
175
+ gap: le,
176
+ ...i.borderRadius(A),
178
177
  backgroundColor: g,
179
178
  ...i.paddingInline("0.75rem"),
180
179
  fontSize: u,
@@ -187,7 +186,7 @@ const Ne = (n) => /* @__PURE__ */ a(
187
186
  ":focus": {
188
187
  outlineWidth: "2px",
189
188
  outlineStyle: "solid",
190
- outlineColor: ge,
189
+ outlineColor: he,
191
190
  outlineOffset: "2px"
192
191
  },
193
192
  ":disabled": {
@@ -198,15 +197,15 @@ const Ne = (n) => /* @__PURE__ */ a(
198
197
  selectIcon: {
199
198
  display: "flex",
200
199
  alignItems: "center",
201
- color: w
200
+ color: k
202
201
  },
203
202
  selectContent: {
204
203
  position: "relative",
205
204
  zIndex: 50,
206
205
  ...i.overflow("hidden"),
207
- ...i.borderRadius(R),
208
- ...i.border("1px", "solid", ie),
209
- backgroundColor: de,
206
+ ...i.borderRadius(A),
207
+ ...i.border("1px", "solid", ae),
208
+ backgroundColor: pe,
210
209
  boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"
211
210
  },
212
211
  selectViewport: {
@@ -214,10 +213,10 @@ const Ne = (n) => /* @__PURE__ */ a(
214
213
  },
215
214
  selectLabel: {
216
215
  ...i.padding("0.375rem", "0.5rem"),
217
- fontSize: se,
218
- lineHeight: ce,
219
- fontWeight: ae,
220
- color: w
216
+ fontSize: ge,
217
+ lineHeight: de,
218
+ fontWeight: se,
219
+ color: k
221
220
  },
222
221
  selectItem: {
223
222
  position: "relative",
@@ -225,16 +224,16 @@ const Ne = (n) => /* @__PURE__ */ a(
225
224
  cursor: "pointer",
226
225
  userSelect: "none",
227
226
  alignItems: "center",
228
- ...i.borderRadius(ue),
227
+ ...i.borderRadius(ie),
229
228
  ...i.padding("0.375rem", "0.5rem", "0.375rem", "2rem"),
230
229
  fontSize: u,
231
230
  lineHeight: m,
232
231
  outlineStyle: "none",
233
232
  ":focus": {
234
- backgroundColor: A
233
+ backgroundColor: W
235
234
  },
236
235
  "&[data-state='checked']": {
237
- backgroundColor: A
236
+ backgroundColor: W
238
237
  }
239
238
  },
240
239
  selectItemIndicator: {
@@ -246,13 +245,13 @@ const Ne = (n) => /* @__PURE__ */ a(
246
245
  alignItems: "center",
247
246
  justifyContent: "center"
248
247
  }
249
- }), Ge = F.forwardRef(function({
248
+ }), _e = F.forwardRef(function({
250
249
  page: y,
251
250
  totalItems: p,
252
251
  pageSize: v,
253
252
  onPageChange: s,
254
253
  onPageSizeChange: E,
255
- pageSizeOptions: V = ze,
254
+ pageSizeOptions: V = je,
256
255
  siblingCount: $ = 2,
257
256
  disabled: c = !1,
258
257
  labels: e,
@@ -260,16 +259,15 @@ const Ne = (n) => /* @__PURE__ */ a(
260
259
  ...O
261
260
  }, D) {
262
261
  var L;
263
- fe();
264
- const o = Ae(), { totalPages: f, start: I, end: P, isFirstPage: N, isLastPage: S } = ke({
262
+ const o = ze(), { totalPages: f, start: I, end: P, isFirstPage: N, isLastPage: S } = fe({
265
263
  page: y,
266
264
  pageSize: v,
267
265
  totalItems: p
268
- }), h = Ce(y, f), M = we(h, f, $), _ = (r) => {
269
- const l = parseInt(r, 10);
266
+ }), h = ke(y, f), M = we(h, f, $), _ = (n) => {
267
+ const l = parseInt(n, 10);
270
268
  isNaN(l) || E(l);
271
269
  };
272
- return p === 0 ? null : /* @__PURE__ */ t(xe, { children: /* @__PURE__ */ a(
270
+ return p === 0 ? null : /* @__PURE__ */ t(Ce, { children: /* @__PURE__ */ a(
273
271
  "div",
274
272
  {
275
273
  ref: D,
@@ -278,7 +276,7 @@ const Ne = (n) => /* @__PURE__ */ a(
278
276
  "data-fs-element": "TablePagination",
279
277
  role: "navigation",
280
278
  "aria-label": e == null ? void 0 : e.navigation,
281
- className: re(o.root, H),
279
+ className: ne(o.root, H),
282
280
  ...O,
283
281
  children: [
284
282
  /* @__PURE__ */ a("div", { className: o.left, children: [
@@ -292,7 +290,7 @@ const Ne = (n) => /* @__PURE__ */ a(
292
290
  onClick: () => s(1),
293
291
  "aria-label": e == null ? void 0 : e.firstPage,
294
292
  className: o.navButton,
295
- children: /* @__PURE__ */ t(Ne, {})
293
+ children: /* @__PURE__ */ t(Pe, {})
296
294
  }
297
295
  ),
298
296
  /* @__PURE__ */ t(
@@ -305,44 +303,44 @@ const Ne = (n) => /* @__PURE__ */ a(
305
303
  onClick: () => s(h - 1),
306
304
  "aria-label": e == null ? void 0 : e.previousPage,
307
305
  className: o.navButton,
308
- children: /* @__PURE__ */ t(Se, {})
306
+ children: /* @__PURE__ */ t(Ne, {})
309
307
  }
310
308
  ),
311
- M.map((r, l) => {
312
- var B, j, z;
313
- const T = r.type === "ellipsis" ? `ellipsis-${l}-${r.targetPage}` : `page-${r.page}`;
314
- if (r.type === "ellipsis")
315
- return /* @__PURE__ */ a(ye, { children: [
316
- /* @__PURE__ */ t(Ie, { asChild: !0, children: /* @__PURE__ */ t(
309
+ M.map((n, l) => {
310
+ var T, j, z;
311
+ const B = n.type === "ellipsis" ? `ellipsis-${l}-${n.targetPage}` : `page-${n.page}`;
312
+ if (n.type === "ellipsis")
313
+ return /* @__PURE__ */ a(xe, { children: [
314
+ /* @__PURE__ */ t(ye, { asChild: !0, children: /* @__PURE__ */ t(
317
315
  d,
318
316
  {
319
317
  variant: "tertiary",
320
318
  size: "icon-sm",
321
319
  shape: "normal",
322
320
  disabled: c,
323
- onClick: () => s(r.targetPage),
324
- "aria-label": (B = e == null ? void 0 : e.jumpToPage) == null ? void 0 : B.call(e, r.targetPage),
321
+ onClick: () => s(n.targetPage),
322
+ "aria-label": (T = e == null ? void 0 : e.jumpToPage) == null ? void 0 : T.call(e, n.targetPage),
325
323
  className: o.ellipsisButton,
326
324
  children: "..."
327
325
  }
328
326
  ) }),
329
- /* @__PURE__ */ t(Pe, { children: (j = e == null ? void 0 : e.jumpToPage) == null ? void 0 : j.call(e, r.targetPage) })
330
- ] }, T);
331
- const k = r.page === h;
327
+ /* @__PURE__ */ t(Ie, { children: (j = e == null ? void 0 : e.jumpToPage) == null ? void 0 : j.call(e, n.targetPage) })
328
+ ] }, B);
329
+ const w = n.page === h;
332
330
  return /* @__PURE__ */ t(
333
331
  d,
334
332
  {
335
- variant: k ? "secondary" : "tertiary",
333
+ variant: w ? "secondary" : "tertiary",
336
334
  size: "icon-sm",
337
335
  shape: "normal",
338
336
  disabled: c,
339
- onClick: () => s(r.page),
340
- "aria-label": (z = e == null ? void 0 : e.goToPage) == null ? void 0 : z.call(e, r.page),
341
- "aria-current": k ? "page" : void 0,
342
- className: k ? o.pageButtonActive : o.pageButtonInactive,
343
- children: r.page
337
+ onClick: () => s(n.page),
338
+ "aria-label": (z = e == null ? void 0 : e.goToPage) == null ? void 0 : z.call(e, n.page),
339
+ "aria-current": w ? "page" : void 0,
340
+ className: w ? o.pageButtonActive : o.pageButtonInactive,
341
+ children: n.page
344
342
  },
345
- T
343
+ B
346
344
  );
347
345
  }),
348
346
  /* @__PURE__ */ t(
@@ -355,7 +353,7 @@ const Ne = (n) => /* @__PURE__ */ a(
355
353
  onClick: () => s(h + 1),
356
354
  "aria-label": e == null ? void 0 : e.nextPage,
357
355
  className: o.navButton,
358
- children: /* @__PURE__ */ t(Le, {})
356
+ children: /* @__PURE__ */ t(Se, {})
359
357
  }
360
358
  ),
361
359
  /* @__PURE__ */ t(
@@ -368,7 +366,7 @@ const Ne = (n) => /* @__PURE__ */ a(
368
366
  onClick: () => s(f),
369
367
  "aria-label": e == null ? void 0 : e.lastPage,
370
368
  className: o.navButton,
371
- children: /* @__PURE__ */ t(Te, {})
369
+ children: /* @__PURE__ */ t(Le, {})
372
370
  }
373
371
  )
374
372
  ] }),
@@ -408,17 +406,17 @@ const Ne = (n) => /* @__PURE__ */ a(
408
406
  sideOffset: 4,
409
407
  children: /* @__PURE__ */ t(J, { className: o.selectViewport, children: /* @__PURE__ */ a(K, { children: [
410
408
  (e == null ? void 0 : e.resultsPerPage) && /* @__PURE__ */ t(Y, { className: o.selectLabel, children: e.resultsPerPage }),
411
- V.map((r) => /* @__PURE__ */ a(
409
+ V.map((n) => /* @__PURE__ */ a(
412
410
  b,
413
411
  {
414
- value: String(r),
412
+ value: String(n),
415
413
  className: o.selectItem,
416
414
  children: [
417
- /* @__PURE__ */ t("span", { className: o.selectItemIndicator, children: /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t(je, { style: { width: 16, height: 16 } }) }) }),
418
- /* @__PURE__ */ t(te, { children: r })
415
+ /* @__PURE__ */ t("span", { className: o.selectItemIndicator, children: /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t(Te, { style: { width: 16, height: 16 } }) }) }),
416
+ /* @__PURE__ */ t(te, { children: n })
419
417
  ]
420
418
  },
421
- r
419
+ n
422
420
  ))
423
421
  ] }) })
424
422
  }
@@ -432,6 +430,6 @@ const Ne = (n) => /* @__PURE__ */ a(
432
430
  ) });
433
431
  });
434
432
  export {
435
- Ge as TablePagination
433
+ _e as TablePagination
436
434
  };
437
435
  //# sourceMappingURL=table-pagination.js.map