@epilot/zenith-react 0.2.0 → 0.3.0-next.1

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 (105) hide show
  1. package/CHANGELOG.md +278 -0
  2. package/codemods/README.md +5 -3
  3. package/codemods/migrate/volt/field-combobox.ts +37 -0
  4. package/codemods/migrate/volt/index.ts +2 -0
  5. package/codemods/migrate/volt/same-name.ts +2 -17
  6. package/codemods/radix-to-base-ui.ts +4 -1
  7. package/dist/_virtual/_zenith-runtime-family_autocomplete.js +7 -0
  8. package/dist/_virtual/_zenith-runtime-family_autocomplete.js.map +1 -0
  9. package/dist/components/callout/callout.js +0 -1
  10. package/dist/components/callout/callout.js.map +1 -1
  11. package/dist/components/command/command.js +263 -179
  12. package/dist/components/command/command.js.map +1 -1
  13. package/dist/components/field/field-combobox.js +213 -177
  14. package/dist/components/field/field-combobox.js.map +1 -1
  15. package/dist/components/field/field.js +281 -247
  16. package/dist/components/field/field.js.map +1 -1
  17. package/dist/components/list/list-sortable.js +86 -72
  18. package/dist/components/list/list-sortable.js.map +1 -1
  19. package/dist/components/list/list.js +206 -205
  20. package/dist/components/list/list.js.map +1 -1
  21. package/dist/components/tooltip/tooltip.js +10 -11
  22. package/dist/components/tooltip/tooltip.js.map +1 -1
  23. package/dist/index.d.ts +91 -256
  24. package/dist/index.js +120 -119
  25. package/dist/renderer/runtime-contract.generated.js +4 -4
  26. package/dist/renderer/runtime-contract.generated.js.map +1 -1
  27. package/package.json +39 -4
  28. package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js +0 -10
  29. package/dist/vendor/.bun/@radix-ui_primitive@1.1.3/vendor/@radix-ui/primitive/dist/index.js.map +0 -1
  30. package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js +0 -30
  31. package/dist/vendor/.bun/@radix-ui_react-compose-refs@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  32. package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js +0 -71
  33. package/dist/vendor/.bun/@radix-ui_react-context@1.1.2_0ac650c021fb1b59/vendor/@radix-ui/react-context/dist/index.js.map +0 -1
  34. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +0 -258
  35. package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +0 -1
  36. package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  37. package/dist/vendor/.bun/@radix-ui_react-dismissable-layer@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  38. package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js +0 -18
  39. package/dist/vendor/.bun/@radix-ui_react-focus-guards@1.1.3_0ac650c021fb1b59/vendor/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  40. package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js +0 -138
  41. package/dist/vendor/.bun/@radix-ui_react-focus-scope@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  42. package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js +0 -14
  43. package/dist/vendor/.bun/@radix-ui_react-id@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-id/dist/index.js.map +0 -1
  44. package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js +0 -17
  45. package/dist/vendor/.bun/@radix-ui_react-portal@1.1.9_2b23df507bdda662/vendor/@radix-ui/react-portal/dist/index.js.map +0 -1
  46. package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js +0 -72
  47. package/dist/vendor/.bun/@radix-ui_react-presence@1.1.5_2b23df507bdda662/vendor/@radix-ui/react-presence/dist/index.js.map +0 -1
  48. package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js +0 -37
  49. package/dist/vendor/.bun/@radix-ui_react-primitive@2.1.3_2b23df507bdda662/vendor/@radix-ui/react-primitive/dist/index.js.map +0 -1
  50. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -51
  51. package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
  52. package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js +0 -14
  53. package/dist/vendor/.bun/@radix-ui_react-use-callback-ref@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  54. package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
  55. package/dist/vendor/.bun/@radix-ui_react-use-controllable-state@1.2.2_0ac650c021fb1b59/vendor/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  56. package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js +0 -15
  57. package/dist/vendor/.bun/@radix-ui_react-use-escape-keydown@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  58. package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  59. package/dist/vendor/.bun/@radix-ui_react-use-layout-effect@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  60. package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js +0 -53
  61. package/dist/vendor/.bun/aria-hidden@1.2.6/vendor/aria-hidden/dist/es2015/index.js.map +0 -1
  62. package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js +0 -18
  63. package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/chunk-NZJY6EH4.js.map +0 -1
  64. package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js +0 -313
  65. package/dist/vendor/.bun/cmdk@1.1.1_2b23df507bdda662/vendor/cmdk/dist/index.js.map +0 -1
  66. package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js +0 -8
  67. package/dist/vendor/.bun/get-nonce@1.0.1/vendor/get-nonce/dist/es2015/index.js.map +0 -1
  68. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js +0 -72
  69. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  70. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js +0 -8
  71. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  72. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js +0 -26
  73. package/dist/vendor/.bun/react-remove-scroll-bar@2.3.8_0ac650c021fb1b59/vendor/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  74. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js +0 -12
  75. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  76. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
  77. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  78. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js +0 -32
  79. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  80. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -17
  81. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  82. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js +0 -69
  83. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  84. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js +0 -6
  85. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  86. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  87. package/dist/vendor/.bun/react-remove-scroll@2.7.2_0ac650c021fb1b59/vendor/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  88. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js +0 -12
  89. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/component.js.map +0 -1
  90. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js +0 -16
  91. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/hook.js.map +0 -1
  92. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js +0 -31
  93. package/dist/vendor/.bun/react-style-singleton@2.2.3_0ac650c021fb1b59/vendor/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  94. package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js +0 -28
  95. package/dist/vendor/.bun/tslib@2.8.1/vendor/tslib/tslib.es6.js.map +0 -1
  96. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js +0 -7
  97. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  98. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js +0 -27
  99. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  100. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js +0 -26
  101. package/dist/vendor/.bun/use-callback-ref@1.3.3_0ac650c021fb1b59/vendor/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  102. package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js +0 -19
  103. package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/exports.js.map +0 -1
  104. package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js +0 -68
  105. package/dist/vendor/.bun/use-sidecar@1.1.3_0ac650c021fb1b59/vendor/use-sidecar/dist/es2015/medium.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { jsx as t, jsxs as I } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as S } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { mergeClasses as g, SLOT_ATTR as u, shorthands as p } from "@epilot/zenith-runtime/v1";
4
- import { makeZenithStyles as Y } from "../../styles/make-styles.js";
3
+ import { mergeClasses as m, SLOT_ATTR as g, shorthands as p } from "@epilot/zenith-runtime/v1";
4
+ import { makeZenithStyles as J } from "../../styles/make-styles.js";
5
5
  import { boxModel as d } from "../../styles/host-reset.js";
6
- import { successLight as _, warningLight as q, errorLight as J, spacingGroup2 as B, grayA12 as G, fontWeightSemibold as Q, leadingSm as R, textSm as E, grayA10 as tt, fontWeightMedium as et, accentSolid as ot, accentA8 as rt, grayA11 as C, grayA8 as nt, leadingXs as it, textXs as st, listIndexPaddingX as O, listItemPaddingX as H, listItemPaddingY as T, listIndexMinWidth as at, grayA2 as P, radiusMd as D, successSoftHover as lt, warningSoftHover as ct, errorSoftHover as dt, accentSoft as pt, successDefault as ut, successSoft as gt, warningDefault as mt, warningSoft as ft, errorDefault as ht, errorSoft as xt, listItemMinHeight as wt, spacingElement3 as vt, grayA5 as yt, spacingElement1 as bt, spacingElement2 as It, listItemGap as St } from "../../tokens/index.js";
7
- const kt = (r) => /* @__PURE__ */ I(
6
+ import { successLight as Q, warningLight as tt, errorLight as et, spacingGroup2 as G, grayA12 as R, fontWeightSemibold as rt, leadingSm as O, textSm as P, grayA10 as ot, fontWeightMedium as nt, accentSolid as it, accentA8 as st, grayA11 as T, grayA8 as at, leadingXs as lt, textXs as ct, listIndexPaddingX as H, listItemPaddingX as z, listItemPaddingY as D, listIndexMinWidth as dt, grayA2 as j, radiusMd as W, successSoftHover as pt, warningSoftHover as ut, errorSoftHover as gt, accentSoft as mt, successDefault as ft, successSoft as ht, warningDefault as xt, warningSoft as yt, errorDefault as wt, errorSoft as vt, listItemMinHeight as bt, spacingElement3 as It, grayA5 as St, spacingElement1 as kt, spacingElement2 as Lt, listItemGap as Ct } from "../../tokens/index.js";
7
+ const Tt = (r) => /* @__PURE__ */ S(
8
8
  "svg",
9
9
  {
10
10
  xmlns: "http://www.w3.org/2000/svg",
@@ -23,7 +23,7 @@ const kt = (r) => /* @__PURE__ */ I(
23
23
  /* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1.5" })
24
24
  ]
25
25
  }
26
- ), z = (r) => /* @__PURE__ */ I(
26
+ ), M = (r) => /* @__PURE__ */ S(
27
27
  "svg",
28
28
  {
29
29
  xmlns: "http://www.w3.org/2000/svg",
@@ -41,7 +41,7 @@ const kt = (r) => /* @__PURE__ */ I(
41
41
  /* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
42
42
  ]
43
43
  }
44
- ), Lt = (r) => /* @__PURE__ */ I(
44
+ ), Dt = (r) => /* @__PURE__ */ S(
45
45
  "svg",
46
46
  {
47
47
  xmlns: "http://www.w3.org/2000/svg",
@@ -58,7 +58,7 @@ const kt = (r) => /* @__PURE__ */ I(
58
58
  /* @__PURE__ */ t("polyline", { points: "22 4 12 14.01 9 11.01" })
59
59
  ]
60
60
  }
61
- ), Ct = (r) => /* @__PURE__ */ t(
61
+ ), Wt = (r) => /* @__PURE__ */ t(
62
62
  "svg",
63
63
  {
64
64
  xmlns: "http://www.w3.org/2000/svg",
@@ -72,7 +72,7 @@ const kt = (r) => /* @__PURE__ */ I(
72
72
  ...r,
73
73
  children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" })
74
74
  }
75
- ), h = Y({
75
+ ), f = J({
76
76
  list: {
77
77
  ...d,
78
78
  display: "flex",
@@ -90,16 +90,16 @@ const kt = (r) => /* @__PURE__ */ I(
90
90
  display: "flex",
91
91
  width: "100%",
92
92
  alignItems: "center",
93
- ...p.borderRadius(D),
94
- color: G,
93
+ ...p.borderRadius(W),
94
+ color: R,
95
95
  transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
96
96
  transitionDuration: "150ms",
97
97
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
98
- minHeight: wt,
99
- ...p.gap(St),
100
- ...p.padding(T, H),
101
- fontSize: E,
102
- lineHeight: R,
98
+ minHeight: bt,
99
+ ...p.gap(Ct),
100
+ ...p.padding(D, z),
101
+ fontSize: P,
102
+ lineHeight: O,
103
103
  "& > svg": {
104
104
  flexShrink: 0,
105
105
  width: "1rem",
@@ -109,42 +109,42 @@ const kt = (r) => /* @__PURE__ */ I(
109
109
  // Status variants
110
110
  statusDefault: {},
111
111
  statusError: {
112
- backgroundColor: xt,
113
- color: ht
112
+ backgroundColor: vt,
113
+ color: wt
114
114
  },
115
115
  statusWarning: {
116
- backgroundColor: ft,
117
- color: mt
116
+ backgroundColor: yt,
117
+ color: xt
118
118
  },
119
119
  statusSuccess: {
120
- backgroundColor: gt,
121
- color: ut
120
+ backgroundColor: ht,
121
+ color: ft
122
122
  },
123
123
  // Striped variant (only neutral rows)
124
124
  stripedEven: {
125
125
  "&:nth-child(even)": {
126
- backgroundColor: P
126
+ backgroundColor: j
127
127
  }
128
128
  },
129
129
  // Interactive hovers
130
130
  interactiveDefault: {
131
131
  ":hover": {
132
- backgroundColor: pt
132
+ backgroundColor: mt
133
133
  }
134
134
  },
135
135
  interactiveError: {
136
136
  ":hover": {
137
- backgroundColor: dt
137
+ backgroundColor: gt
138
138
  }
139
139
  },
140
140
  interactiveWarning: {
141
141
  ":hover": {
142
- backgroundColor: ct
142
+ backgroundColor: ut
143
143
  }
144
144
  },
145
145
  interactiveSuccess: {
146
146
  ":hover": {
147
- backgroundColor: lt
147
+ backgroundColor: pt
148
148
  }
149
149
  },
150
150
  // Sortable modifiers
@@ -167,18 +167,18 @@ const kt = (r) => /* @__PURE__ */ I(
167
167
  alignItems: "center",
168
168
  justifyContent: "center",
169
169
  alignSelf: "stretch",
170
- borderTopLeftRadius: D,
171
- borderBottomLeftRadius: D,
172
- backgroundColor: P,
170
+ borderTopLeftRadius: W,
171
+ borderBottomLeftRadius: W,
172
+ backgroundColor: j,
173
173
  textAlign: "center",
174
- color: C,
174
+ color: T,
175
175
  fontVariantNumeric: "tabular-nums",
176
- minWidth: at,
177
- marginTop: `calc(-1 * ${T})`,
178
- marginBottom: `calc(-1 * ${T})`,
179
- marginLeft: `calc(-1 * ${H})`,
180
- paddingLeft: O,
181
- paddingRight: O
176
+ minWidth: dt,
177
+ marginTop: `calc(-1 * ${D})`,
178
+ marginBottom: `calc(-1 * ${D})`,
179
+ marginLeft: `calc(-1 * ${z})`,
180
+ paddingLeft: H,
181
+ paddingRight: H
182
182
  },
183
183
  // Content
184
184
  content: {
@@ -189,7 +189,7 @@ const kt = (r) => /* @__PURE__ */ I(
189
189
  flexShrink: 1,
190
190
  flexBasis: "0%",
191
191
  alignItems: "center",
192
- ...p.gap(It),
192
+ ...p.gap(Lt),
193
193
  overflow: "hidden",
194
194
  textOverflow: "ellipsis",
195
195
  whiteSpace: "nowrap",
@@ -206,7 +206,7 @@ const kt = (r) => /* @__PURE__ */ I(
206
206
  display: "flex",
207
207
  flexShrink: 0,
208
208
  alignItems: "center",
209
- ...p.gap(bt)
209
+ ...p.gap(kt)
210
210
  },
211
211
  // Text
212
212
  text: {
@@ -224,9 +224,9 @@ const kt = (r) => /* @__PURE__ */ I(
224
224
  overflow: "hidden",
225
225
  textOverflow: "ellipsis",
226
226
  whiteSpace: "nowrap",
227
- fontSize: st,
228
- lineHeight: it,
229
- color: C
227
+ fontSize: ct,
228
+ lineHeight: lt,
229
+ color: T
230
230
  },
231
231
  // Drag handle button
232
232
  dragHandle: {
@@ -237,12 +237,12 @@ const kt = (r) => /* @__PURE__ */ I(
237
237
  flexShrink: 0,
238
238
  cursor: "grab",
239
239
  alignItems: "center",
240
- color: nt,
240
+ color: at,
241
241
  backgroundColor: "transparent",
242
242
  ...p.border("0"),
243
243
  ...p.padding(0),
244
244
  ":hover": {
245
- color: C
245
+ color: T
246
246
  },
247
247
  ":active": {
248
248
  cursor: "grabbing"
@@ -251,7 +251,7 @@ const kt = (r) => /* @__PURE__ */ I(
251
251
  outlineWidth: "2px",
252
252
  outlineStyle: "solid",
253
253
  outlineOffset: "2px",
254
- outlineColor: rt
254
+ outlineColor: st
255
255
  },
256
256
  "& svg": {
257
257
  width: "1rem",
@@ -269,7 +269,7 @@ const kt = (r) => /* @__PURE__ */ I(
269
269
  height: "0.125rem",
270
270
  transformOrigin: "center",
271
271
  ...p.borderRadius("9999px"),
272
- backgroundColor: ot,
272
+ backgroundColor: it,
273
273
  animationName: {
274
274
  from: {
275
275
  transform: "scaleX(0)",
@@ -295,7 +295,7 @@ const kt = (r) => /* @__PURE__ */ I(
295
295
  transformOrigin: "center",
296
296
  transform: "scale(0.95)",
297
297
  cursor: "grabbing",
298
- ...p.border("1px", "solid", yt),
298
+ ...p.border("1px", "solid", St),
299
299
  backgroundColor: "rgb(255 255 255 / 55%)",
300
300
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
301
301
  backdropFilter: "blur(12px)",
@@ -317,7 +317,7 @@ const kt = (r) => /* @__PURE__ */ I(
317
317
  ...d,
318
318
  cursor: "pointer",
319
319
  textAlign: "left",
320
- fontWeight: et,
320
+ fontWeight: nt,
321
321
  backgroundColor: "transparent",
322
322
  ...p.border("0")
323
323
  },
@@ -326,7 +326,7 @@ const kt = (r) => /* @__PURE__ */ I(
326
326
  width: "1rem",
327
327
  height: "1rem",
328
328
  flexShrink: 0,
329
- color: tt,
329
+ color: ot,
330
330
  transitionProperty: "transform",
331
331
  transitionDuration: "150ms",
332
332
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
@@ -346,21 +346,21 @@ const kt = (r) => /* @__PURE__ */ I(
346
346
  },
347
347
  standaloneGroupLabel: {
348
348
  ...d,
349
- marginTop: B,
349
+ marginTop: G,
350
350
  display: "block",
351
351
  listStyleType: "none",
352
- ...p.padding("0.375rem", vt),
353
- fontSize: E,
354
- lineHeight: R,
355
- fontWeight: Q,
356
- color: G,
352
+ ...p.padding("0.375rem", It),
353
+ fontSize: P,
354
+ lineHeight: O,
355
+ fontWeight: rt,
356
+ color: R,
357
357
  "&:first-child": {
358
358
  marginTop: 0
359
359
  }
360
360
  },
361
361
  groupContentList: {
362
362
  ...d,
363
- paddingLeft: B
363
+ paddingLeft: G
364
364
  },
365
365
  collapseWrapper: {
366
366
  display: "grid",
@@ -386,237 +386,238 @@ const kt = (r) => /* @__PURE__ */ I(
386
386
  width: "1rem",
387
387
  height: "1rem",
388
388
  flexShrink: 0,
389
- color: J
389
+ color: et
390
390
  },
391
391
  statusIconWarning: {
392
392
  ...d,
393
393
  width: "1rem",
394
394
  height: "1rem",
395
395
  flexShrink: 0,
396
- color: q
396
+ color: tt
397
397
  },
398
398
  statusIconSuccess: {
399
399
  ...d,
400
400
  width: "1rem",
401
401
  height: "1rem",
402
402
  flexShrink: 0,
403
- color: _
403
+ color: Q
404
404
  }
405
- }), Tt = ({ status: r }) => {
406
- const o = h();
407
- return r === "error" ? /* @__PURE__ */ t(z, { className: o.statusIconError }) : r === "warning" ? /* @__PURE__ */ t(z, { className: o.statusIconWarning }) : r === "success" ? /* @__PURE__ */ t(Lt, { className: o.statusIconSuccess }) : null;
408
- }, M = n.createContext({
405
+ }), At = ({ status: r }) => {
406
+ const e = f();
407
+ return r === "error" ? /* @__PURE__ */ t(M, { className: e.statusIconError }) : r === "warning" ? /* @__PURE__ */ t(M, { className: e.statusIconWarning }) : r === "success" ? /* @__PURE__ */ t(Dt, { className: e.statusIconSuccess }) : null;
408
+ }, F = n.createContext({
409
409
  striped: !1,
410
410
  showIndex: !1,
411
411
  sortable: !1
412
- }), j = () => n.useContext(M), Dt = (r) => r === void 0 ? void 0 : r === "relaxed" ? "normal" : r, Wt = n.forwardRef(function({ className: o, density: i, children: e, ...l }, a) {
413
- const s = h(), m = Dt(i), b = n.Children.toArray(e).filter(n.isValidElement).map(
414
- (x, y) => x.type === Bt ? n.cloneElement(x, {
415
- index: y
416
- }) : x
412
+ }), V = () => n.useContext(F), Nt = (r) => r === void 0 ? void 0 : r === "relaxed" ? "normal" : r, Bt = n.forwardRef(function({ className: e, density: i, children: s, ...o }, a) {
413
+ const l = f(), u = Nt(i), v = n.Children.toArray(s).filter(n.isValidElement).map(
414
+ (y, w) => y.type === Ot ? n.cloneElement(y, {
415
+ index: w
416
+ }) : y
417
417
  );
418
418
  return /* @__PURE__ */ t(
419
419
  "ol",
420
420
  {
421
421
  ref: a,
422
422
  "data-slot": "list",
423
- [u]: "list",
424
- ...m !== void 0 ? { "data-density": m } : {},
425
- className: g(s.list, o),
426
- ...l,
427
- children: b
423
+ [g]: "list",
424
+ ...u !== void 0 ? { "data-density": u } : {},
425
+ className: m(l.list, e),
426
+ ...o,
427
+ children: v
428
428
  }
429
429
  );
430
- }), Pt = n.forwardRef(function({ striped: o = !1, showIndex: i = !1, ...e }, l) {
431
- return /* @__PURE__ */ t(M.Provider, { value: { striped: o, showIndex: i, sortable: !1 }, children: /* @__PURE__ */ t(Wt, { ref: l, ...e }) });
432
- }), Nt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
433
- const a = h();
430
+ }), Ft = n.forwardRef(function({ striped: e = !1, showIndex: i = !1, ...s }, o) {
431
+ return /* @__PURE__ */ t(F.Provider, { value: { striped: e, showIndex: i, sortable: !1 }, children: /* @__PURE__ */ t(Bt, { ref: o, ...s }) });
432
+ }), Et = n.forwardRef(function({ className: e, children: i, ...s }, o) {
433
+ const a = f();
434
434
  return /* @__PURE__ */ t(
435
435
  "span",
436
436
  {
437
- ref: l,
437
+ ref: o,
438
438
  "data-slot": "list-item-actions",
439
- [u]: "list-item-actions",
440
- onPointerDown: (s) => s.stopPropagation(),
441
- className: g(a.actions, o),
442
- ...e,
439
+ [g]: "list-item-actions",
440
+ onPointerDown: (l) => l.stopPropagation(),
441
+ className: m(a.actions, e),
442
+ ...s,
443
443
  children: i
444
444
  }
445
445
  );
446
- }), zt = n.forwardRef(function({ className: o, ...i }, e) {
447
- const l = h();
446
+ }), Vt = n.forwardRef(function({ className: e, ...i }, s) {
447
+ const o = f();
448
448
  return /* @__PURE__ */ t(
449
449
  "span",
450
450
  {
451
- ref: e,
451
+ ref: s,
452
452
  "data-slot": "list-item-text",
453
- [u]: "list-item-text",
454
- className: g(l.text, o),
453
+ [g]: "list-item-text",
454
+ className: m(o.text, e),
455
455
  ...i
456
456
  }
457
457
  );
458
- }), Mt = n.forwardRef(function({ className: o, ...i }, e) {
459
- const l = h();
458
+ }), Gt = n.forwardRef(function({ className: e, ...i }, s) {
459
+ const o = f();
460
460
  return /* @__PURE__ */ t(
461
461
  "span",
462
462
  {
463
- ref: e,
463
+ ref: s,
464
464
  "data-slot": "list-item-description",
465
- [u]: "list-item-description",
466
- className: g(l.description, o),
465
+ [g]: "list-item-description",
466
+ className: m(o.description, e),
467
467
  ...i
468
468
  }
469
469
  );
470
- }), At = n.forwardRef(
470
+ }), X = (r) => n.Children.toArray(r).map((e) => typeof e == "string" || typeof e == "number" ? String(e) : !n.isValidElement(e) || e.type === Gt || e.props["aria-hidden"] === !0 || e.props["aria-hidden"] === "true" ? "" : X(e.props.children)).join(" ").replace(/\s+/g, " ").trim(), Rt = n.forwardRef(
471
471
  function({
472
- className: o,
472
+ className: e,
473
473
  value: i,
474
- status: e = "default",
475
- index: l,
476
- children: a,
477
- setNodeRef: s,
478
- setActivatorNodeRef: m,
479
- style: b,
480
- isDragging: x,
481
- dropEdge: y,
482
- listeners: f,
483
- attributes: k,
484
- ...L
485
- }, w) {
486
- const c = h(), { striped: F, showIndex: X, sortable: S } = j(), V = S && !x, N = n.Children.toArray(a), A = N.find(
487
- (v) => n.isValidElement(v) && v.type === Nt
488
- ), $ = N.filter((v) => v !== A), K = n.useCallback(
489
- (v) => {
490
- s == null || s(v), typeof w == "function" ? w(v) : w && (w.current = v);
474
+ textValue: s,
475
+ status: o = "default",
476
+ index: a,
477
+ children: l,
478
+ setNodeRef: u,
479
+ setActivatorNodeRef: v,
480
+ style: y,
481
+ isDragging: w,
482
+ dropEdge: b,
483
+ listeners: h,
484
+ attributes: C,
485
+ ...k
486
+ }, I) {
487
+ const c = f(), { striped: $, showIndex: K, sortable: L } = V(), Z = L && !w, N = n.Children.toArray(l), B = N.find(
488
+ (x) => n.isValidElement(x) && x.type === Et
489
+ ), E = N.filter((x) => x !== B), U = s ?? (X(E) || i || "item"), Y = n.useCallback(
490
+ (x) => {
491
+ u == null || u(x), typeof I == "function" ? I(x) : I && (I.current = x);
491
492
  },
492
- [s, w]
493
- ), Z = e === "error" ? c.statusError : e === "warning" ? c.statusWarning : e === "success" ? c.statusSuccess : c.statusDefault, U = V ? e === "error" ? c.interactiveError : e === "warning" ? c.interactiveWarning : e === "success" ? c.interactiveSuccess : c.interactiveDefault : void 0;
494
- return /* @__PURE__ */ I(
493
+ [u, I]
494
+ ), _ = o === "error" ? c.statusError : o === "warning" ? c.statusWarning : o === "success" ? c.statusSuccess : c.statusDefault, q = Z ? o === "error" ? c.interactiveError : o === "warning" ? c.interactiveWarning : o === "success" ? c.interactiveSuccess : c.interactiveDefault : void 0;
495
+ return /* @__PURE__ */ S(
495
496
  "li",
496
497
  {
497
- ref: K,
498
- style: b,
498
+ ref: Y,
499
+ style: y,
499
500
  "data-slot": "list-item",
500
- [u]: "list-item",
501
- "data-status": e,
501
+ [g]: "list-item",
502
+ "data-status": o,
502
503
  "data-value": i,
503
- onPointerDown: S ? f == null ? void 0 : f.onPointerDown : void 0,
504
- className: g(
504
+ onPointerDown: L ? h == null ? void 0 : h.onPointerDown : void 0,
505
+ className: m(
505
506
  c.item,
506
- Z,
507
- F && e === "default" && c.stripedEven,
508
- U,
509
- S && c.sortableItem,
510
- x && c.itemDragging,
511
- o
507
+ _,
508
+ $ && o === "default" && c.stripedEven,
509
+ q,
510
+ L && c.sortableItem,
511
+ w && c.itemDragging,
512
+ e
512
513
  ),
513
- ...L,
514
+ ...k,
514
515
  children: [
515
- y && /* @__PURE__ */ t(
516
+ b && /* @__PURE__ */ t(
516
517
  "span",
517
518
  {
518
519
  "data-slot": "list-drop-indicator",
519
- [u]: "list-drop-indicator",
520
+ [g]: "list-drop-indicator",
520
521
  "aria-hidden": "true",
521
- className: g(
522
+ className: m(
522
523
  c.dropIndicator,
523
- y === "top" ? c.dropIndicatorTop : c.dropIndicatorBottom
524
+ b === "top" ? c.dropIndicatorTop : c.dropIndicatorBottom
524
525
  )
525
526
  }
526
527
  ),
527
- X && /* @__PURE__ */ t(
528
+ K && /* @__PURE__ */ t(
528
529
  "span",
529
530
  {
530
531
  "data-slot": "list-item-index",
531
- [u]: "list-item-index",
532
+ [g]: "list-item-index",
532
533
  "aria-hidden": "true",
533
534
  className: c.indexBase,
534
- children: (l ?? 0) + 1
535
+ children: (a ?? 0) + 1
535
536
  }
536
537
  ),
537
538
  /* @__PURE__ */ t(
538
539
  "span",
539
540
  {
540
541
  "data-slot": "list-item-content",
541
- [u]: "list-item-content",
542
+ [g]: "list-item-content",
542
543
  className: c.content,
543
- children: $
544
+ children: E
544
545
  }
545
546
  ),
546
- /* @__PURE__ */ t(Tt, { status: e }),
547
- A,
548
- S && /* @__PURE__ */ t(
547
+ /* @__PURE__ */ t(At, { status: o }),
548
+ B,
549
+ L && /* @__PURE__ */ t(
549
550
  "button",
550
551
  {
551
- ref: m,
552
+ ref: v,
552
553
  type: "button",
553
- "aria-label": `Drag to reorder ${i ?? "item"}`,
554
+ "aria-label": `Drag to reorder ${U}`,
554
555
  className: c.dragHandle,
555
- ...k,
556
- onKeyDown: f == null ? void 0 : f.onKeyDown,
557
- children: /* @__PURE__ */ t(kt, {})
556
+ ...C,
557
+ onKeyDown: h == null ? void 0 : h.onKeyDown,
558
+ children: /* @__PURE__ */ t(Tt, {})
558
559
  }
559
560
  )
560
561
  ]
561
562
  }
562
563
  );
563
564
  }
564
- ), Bt = n.forwardRef(
565
- function(o, i) {
566
- const { SortableItem: e } = j();
567
- return e ? /* @__PURE__ */ t(e, { ref: i, ...o }) : /* @__PURE__ */ t(At, { ref: i, ...o });
565
+ ), Ot = n.forwardRef(
566
+ function(e, i) {
567
+ const { SortableItem: s } = V();
568
+ return s ? /* @__PURE__ */ t(s, { ref: i, ...e }) : /* @__PURE__ */ t(Rt, { ref: i, ...e });
568
569
  }
569
- ), W = n.createContext(null), jt = n.forwardRef(
570
+ ), A = n.createContext(null), Xt = n.forwardRef(
570
571
  function({
571
- open: o,
572
+ open: e,
572
573
  defaultOpen: i = !1,
573
- onOpenChange: e,
574
- className: l,
574
+ onOpenChange: s,
575
+ className: o,
575
576
  children: a,
576
- ...s
577
- }, m) {
578
- const b = h(), [x, y] = n.useState(i), f = o ?? x, k = n.useId(), L = (w) => {
579
- o === void 0 && y(w), e == null || e(w);
577
+ ...l
578
+ }, u) {
579
+ const v = f(), [y, w] = n.useState(i), b = e ?? y, h = n.useId(), C = (k) => {
580
+ e === void 0 && w(k), s == null || s(k);
580
581
  };
581
- return /* @__PURE__ */ t(W.Provider, { value: { open: f, setOpen: L, contentId: k }, children: /* @__PURE__ */ t(
582
+ return /* @__PURE__ */ t(A.Provider, { value: { open: b, setOpen: C, contentId: h }, children: /* @__PURE__ */ t(
582
583
  "li",
583
584
  {
584
- ref: m,
585
+ ref: u,
585
586
  "data-slot": "list-group",
586
- [u]: "list-group",
587
- "data-state": f ? "open" : "closed",
588
- className: g(b.group, l),
589
- ...s,
587
+ [g]: "list-group",
588
+ "data-state": b ? "open" : "closed",
589
+ className: m(v.group, o),
590
+ ...l,
590
591
  children: a
591
592
  }
592
593
  ) });
593
594
  }
594
- ), Ft = n.forwardRef(function({ className: o, children: i, ...e }, l) {
595
- const a = h(), s = n.useContext(W);
596
- return s ? /* @__PURE__ */ I(
595
+ ), $t = n.forwardRef(function({ className: e, children: i, ...s }, o) {
596
+ const a = f(), l = n.useContext(A);
597
+ return l ? /* @__PURE__ */ S(
597
598
  "button",
598
599
  {
599
- ref: l,
600
+ ref: o,
600
601
  type: "button",
601
602
  "data-slot": "list-group-trigger",
602
- [u]: "list-group-trigger",
603
- "aria-expanded": s.open,
604
- "aria-controls": s.contentId,
605
- onClick: () => s.setOpen(!s.open),
606
- className: g(
603
+ [g]: "list-group-trigger",
604
+ "aria-expanded": l.open,
605
+ "aria-controls": l.contentId,
606
+ onClick: () => l.setOpen(!l.open),
607
+ className: m(
607
608
  a.item,
608
609
  a.interactiveDefault,
609
610
  a.groupTrigger,
610
- o
611
+ e
611
612
  ),
612
- ...e,
613
+ ...s,
613
614
  children: [
614
615
  /* @__PURE__ */ t(
615
- Ct,
616
+ Wt,
616
617
  {
617
- className: g(
618
+ className: m(
618
619
  a.groupChevron,
619
- s.open && a.groupChevronOpen
620
+ l.open && a.groupChevronOpen
620
621
  )
621
622
  }
622
623
  ),
@@ -626,51 +627,51 @@ const kt = (r) => /* @__PURE__ */ I(
626
627
  ) : /* @__PURE__ */ t(
627
628
  "li",
628
629
  {
629
- ref: l,
630
+ ref: o,
630
631
  "data-slot": "list-group-label",
631
- [u]: "list-group-label",
632
- className: g(a.standaloneGroupLabel, o),
632
+ [g]: "list-group-label",
633
+ className: m(a.standaloneGroupLabel, e),
633
634
  children: i
634
635
  }
635
636
  );
636
- }), Xt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
637
- const a = h(), s = n.useContext(W), m = /* @__PURE__ */ t(
637
+ }), Kt = n.forwardRef(function({ className: e, children: i, ...s }, o) {
638
+ const a = f(), l = n.useContext(A), u = /* @__PURE__ */ t(
638
639
  "ul",
639
640
  {
640
- ref: l,
641
+ ref: o,
641
642
  "data-slot": "list-group-content",
642
- [u]: "list-group-content",
643
- className: g(a.list, a.groupContentList, o),
644
- ...e,
643
+ [g]: "list-group-content",
644
+ className: m(a.list, a.groupContentList, e),
645
+ ...s,
645
646
  children: i
646
647
  }
647
648
  );
648
- return s ? /* @__PURE__ */ t(
649
+ return l ? /* @__PURE__ */ t(
649
650
  "div",
650
651
  {
651
- id: s.contentId,
652
- "data-state": s.open ? "open" : "closed",
653
- className: g(
652
+ id: l.contentId,
653
+ "data-state": l.open ? "open" : "closed",
654
+ className: m(
654
655
  a.collapseWrapper,
655
- s.open && a.collapseWrapperOpen
656
+ l.open && a.collapseWrapperOpen
656
657
  ),
657
- children: /* @__PURE__ */ t("div", { className: a.collapseInner, children: m })
658
+ children: /* @__PURE__ */ t("div", { className: a.collapseInner, children: u })
658
659
  }
659
- ) : m;
660
+ ) : u;
660
661
  });
661
662
  export {
662
- Pt as List,
663
- jt as ListGroup,
664
- Xt as ListGroupContent,
665
- Ft as ListGroupLabel,
666
- Bt as ListItem,
667
- Nt as ListItemActions,
668
- At as ListItemBody,
669
- Mt as ListItemDescription,
670
- zt as ListItemText,
671
- Wt as ListRoot,
672
- Dt as canonicalDomDensity,
673
- M as listContext,
674
- h as useListStyles
663
+ Ft as List,
664
+ Xt as ListGroup,
665
+ Kt as ListGroupContent,
666
+ $t as ListGroupLabel,
667
+ Ot as ListItem,
668
+ Et as ListItemActions,
669
+ Rt as ListItemBody,
670
+ Gt as ListItemDescription,
671
+ Vt as ListItemText,
672
+ Bt as ListRoot,
673
+ Nt as canonicalDomDensity,
674
+ F as listContext,
675
+ f as useListStyles
675
676
  };
676
677
  //# sourceMappingURL=list.js.map