@marigold/components 16.0.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,16 +5,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
8
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
9
  var __copyProps = (to, from$1, except, desc) => {
12
- if (from$1 && typeof from$1 === "object" || typeof from$1 === "function") for (var keys = __getOwnPropNames(from$1), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
13
- key = keys[i$1];
14
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
- get: ((k$1) => from$1[k$1]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from$1, key)) || desc.enumerable
17
- });
10
+ if (from$1 && typeof from$1 === "object" || typeof from$1 === "function") {
11
+ for (var keys = __getOwnPropNames(from$1), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
12
+ key = keys[i$1];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k$1) => from$1[k$1]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from$1, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
18
20
  }
19
21
  return to;
20
22
  };
@@ -24,48 +26,28 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
26
  }) : target, mod));
25
27
 
26
28
  //#endregion
27
- let __marigold_system = require("@marigold/system");
28
- __marigold_system = __toESM(__marigold_system);
29
+ const require_Checkbox = require('./Checkbox-DIbAWlSt.cjs');
29
30
  let react_aria_components = require("react-aria-components");
30
- react_aria_components = __toESM(react_aria_components);
31
+ let __marigold_system = require("@marigold/system");
31
32
  let react = require("react");
32
33
  react = __toESM(react);
33
34
  let react_jsx_runtime = require("react/jsx-runtime");
34
- react_jsx_runtime = __toESM(react_jsx_runtime);
35
35
  let __react_aria_i18n = require("@react-aria/i18n");
36
- __react_aria_i18n = __toESM(__react_aria_i18n);
36
+ let __react_aria_collections = require("@react-aria/collections");
37
+ let motion_react = require("motion/react");
37
38
  let __internationalized_date = require("@internationalized/date");
38
- __internationalized_date = __toESM(__internationalized_date);
39
39
  let __react_aria_calendar = require("@react-aria/calendar");
40
- __react_aria_calendar = __toESM(__react_aria_calendar);
41
40
  let __react_aria_utils = require("@react-aria/utils");
42
- __react_aria_utils = __toESM(__react_aria_utils);
43
41
  let __react_aria_interactions = require("@react-aria/interactions");
44
- __react_aria_interactions = __toESM(__react_aria_interactions);
45
42
  let __react_aria_landmark = require("@react-aria/landmark");
46
- __react_aria_landmark = __toESM(__react_aria_landmark);
47
43
  let react_stately = require("react-stately");
48
- react_stately = __toESM(react_stately);
49
44
  let __react_aria_focus = require("@react-aria/focus");
50
- __react_aria_focus = __toESM(__react_aria_focus);
51
45
  let __react_aria_overlays = require("@react-aria/overlays");
52
- __react_aria_overlays = __toESM(__react_aria_overlays);
53
46
  let __react_aria_ssr = require("@react-aria/ssr");
54
- __react_aria_ssr = __toESM(__react_aria_ssr);
55
47
  let react_dom = require("react-dom");
56
- react_dom = __toESM(react_dom);
57
48
  let __react_aria_label = require("@react-aria/label");
58
- __react_aria_label = __toESM(__react_aria_label);
59
49
  let __react_aria_button = require("@react-aria/button");
60
- __react_aria_button = __toESM(__react_aria_button);
61
- let __react_aria_table = require("@react-aria/table");
62
- __react_aria_table = __toESM(__react_aria_table);
63
- let __react_stately_table = require("@react-stately/table");
64
- __react_stately_table = __toESM(__react_stately_table);
65
- let __react_stately_data = require("@react-stately/data");
66
- __react_stately_data = __toESM(__react_stately_data);
67
50
  let __react_aria_visually_hidden = require("@react-aria/visually-hidden");
68
- __react_aria_visually_hidden = __toESM(__react_aria_visually_hidden);
69
51
 
70
52
  //#region src/Accordion/AccordionContext.tsx
71
53
  const Context = (0, react.createContext)(null);
@@ -78,7 +60,7 @@ const useAccordionContext = () => {
78
60
 
79
61
  //#endregion
80
62
  //#region src/icons/ChevronDown.tsx
81
- const ChevronDown = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
63
+ const ChevronDown = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
82
64
  xmlns: "http://www.w3.org/2000/svg",
83
65
  width: size$1,
84
66
  height: size$1,
@@ -128,7 +110,7 @@ const AccordionHeader = ({ children }) => {
128
110
 
129
111
  //#endregion
130
112
  //#region src/Accordion/AccordionItem.tsx
131
- const AccordionItem = ({ children, disabled, expanded,...props }) => {
113
+ const AccordionItem = ({ children, disabled, expanded, ...props }) => {
132
114
  const { classNames: classNames$2 } = useAccordionContext();
133
115
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Disclosure, {
134
116
  isDisabled: disabled,
@@ -154,7 +136,7 @@ const AccordionPanel = ({ children }) => {
154
136
 
155
137
  //#endregion
156
138
  //#region src/Accordion/Accordion.tsx
157
- const Accordion = ({ children, disabled, variant, size: size$1, stickyHeader = false, iconPosition = "right",...props }) => {
139
+ const Accordion = ({ children, disabled, variant, size: size$1, stickyHeader = false, iconPosition = "right", ...props }) => {
158
140
  const classNames$2 = (0, __marigold_system.useClassNames)({
159
141
  component: "Accordion",
160
142
  variant,
@@ -178,6 +160,112 @@ Accordion.Header = AccordionHeader;
178
160
  Accordion.Content = AccordionPanel;
179
161
  Accordion.Item = AccordionItem;
180
162
 
163
+ //#endregion
164
+ //#region src/icons/X.tsx
165
+ const X = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
166
+ xmlns: "http://www.w3.org/2000/svg",
167
+ width: size$1,
168
+ height: size$1,
169
+ viewBox: "0 0 24 24",
170
+ fill: "none",
171
+ stroke: "currentColor",
172
+ strokeWidth: "2",
173
+ strokeLinecap: "round",
174
+ strokeLinejoin: "round",
175
+ className: (0, __marigold_system.cn)("shrink-0", className),
176
+ ...props,
177
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M18 6 6 18" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m6 6 12 12" })]
178
+ });
179
+
180
+ //#endregion
181
+ //#region src/CloseButton/CloseButton.tsx
182
+ const CloseButton = (0, react.forwardRef)(({ className, size: size$1, variant, ...props }, ref) => {
183
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
184
+ ref,
185
+ className: (0, __marigold_system.useClassNames)({
186
+ component: "CloseButton",
187
+ className,
188
+ size: size$1,
189
+ variant
190
+ }),
191
+ ...props,
192
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(X, {})
193
+ });
194
+ });
195
+
196
+ //#endregion
197
+ //#region src/Text/Text.tsx
198
+ const _Text = ({ variant, size: size$1, color, align, cursor: cursor$1, weight, fontSize, fontStyle, lineHeight, wrap, whiteSpace, children, as = "div", ...props }) => {
199
+ const classNames$2 = (0, __marigold_system.useClassNames)({
200
+ component: "Text",
201
+ variant,
202
+ size: size$1
203
+ });
204
+ /**
205
+ * Use `<Text>` when a `slot` is used. Make sure `elementType`
206
+ * prop is only used in combination the `<Text>`.
207
+ */
208
+ const Component$1 = props.slot ? react_aria_components.Text : as;
209
+ const elementType = props.slot ? { elementType: as } : {};
210
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component$1, {
211
+ ...props,
212
+ ...elementType,
213
+ className: (0, __marigold_system.cn)("max-w-(--maxTextWidth)", classNames$2, fontStyle && __marigold_system.textStyle[fontStyle], align && __marigold_system.textAlign[align], cursor$1 && __marigold_system.cursorStyle[cursor$1], weight && __marigold_system.fontWeight[weight], fontSize && __marigold_system.textSize[fontSize], lineHeight && __marigold_system.lineHeight[lineHeight], wrap && __marigold_system.textWrap[wrap], whiteSpace && __marigold_system.whiteSpace[whiteSpace]),
214
+ style: { color: color && (0, __marigold_system.ensureCssVar)(color, "color") },
215
+ children
216
+ });
217
+ };
218
+
219
+ //#endregion
220
+ //#region src/ActionBar/ActionButton.tsx
221
+ const ActionButton = ({ onPress, children }) => {
222
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
223
+ onPress,
224
+ className: (0, __marigold_system.useClassNames)({
225
+ component: "Button",
226
+ variant: "ghost",
227
+ size: "default"
228
+ }),
229
+ children
230
+ });
231
+ };
232
+
233
+ //#endregion
234
+ //#region src/ActionBar/ActionBar.tsx
235
+ const ActionBar = ({ children, id, onClearSelection, selectedItemCount = 0, variant, size: size$1 }) => {
236
+ const classNames$2 = (0, __marigold_system.useClassNames)({
237
+ component: "ActionBar",
238
+ variant,
239
+ size: size$1
240
+ });
241
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
242
+ const isHidden = selectedItemCount === 0;
243
+ const countText = selectedItemCount === "all" ? "All items selected" : `${selectedItemCount} selected`;
244
+ if (isHidden) return null;
245
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
246
+ id,
247
+ className: (0, __marigold_system.cn)("z-30", classNames$2.container),
248
+ role: "toolbar",
249
+ "aria-label": stringFormatter.format("bulkActionsAriaLabel"),
250
+ children: [
251
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
252
+ className: classNames$2.count,
253
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Text, { children: countText })
254
+ }),
255
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
256
+ className: classNames$2.actions,
257
+ children
258
+ }),
259
+ onClearSelection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseButton, {
260
+ "aria-label": stringFormatter.format("clearSelectionAriaLabel"),
261
+ onPress: onClearSelection,
262
+ className: classNames$2.clearButton
263
+ })
264
+ ]
265
+ });
266
+ };
267
+ ActionBar.Button = ActionButton;
268
+
181
269
  //#endregion
182
270
  //#region src/Aside/Aside.tsx
183
271
  /**
@@ -194,7 +282,8 @@ const Aside = ({ children, sideWidth, space = 0, side = "left", wrap = "50%" })
194
282
  content: (0, __marigold_system.createVar)({ wrap })
195
283
  };
196
284
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
197
- className: (0, __marigold_system.cn)("flex flex-wrap", __marigold_system.gapSpace[space]),
285
+ className: (0, __marigold_system.cn)("flex flex-wrap", "gap-(--space)"),
286
+ style: (0, __marigold_system.createSpacingVar)("space", `${space}`),
198
287
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
199
288
  className: classNames$1[side === "left" ? "aside" : "content"],
200
289
  style: vars[side === "left" ? "aside" : "content"],
@@ -219,124 +308,18 @@ const Aspect = ({ ratio = "square", maxWidth, children }) => {
219
308
 
220
309
  //#endregion
221
310
  //#region src/Center/Center.tsx
222
- const Center = ({ maxWidth = "100%", space = 0, children,...props }) => {
311
+ const Center = ({ maxWidth = "100%", space = 0, children, ...props }) => {
223
312
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
224
313
  ...props,
225
- className: (0, __marigold_system.cn)("ms-[auto] me-[auto] box-content flex flex-col items-center justify-center", __marigold_system.gapSpace[space], "max-w-(--maxWidth)"),
226
- style: (0, __marigold_system.createVar)({ maxWidth }),
227
- children
228
- });
229
- };
230
-
231
- //#endregion
232
- //#region src/icons/TriangleAlert.tsx
233
- const TriangleAlert = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
234
- xmlns: "http://www.w3.org/2000/svg",
235
- width: size$1,
236
- height: size$1,
237
- viewBox: "0 0 24 24",
238
- fill: "none",
239
- stroke: "currentColor",
240
- strokeWidth: "2",
241
- strokeLinecap: "round",
242
- strokeLinejoin: "round",
243
- className: (0, __marigold_system.cn)("shrink-0", className),
244
- ...props,
245
- children: [
246
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
247
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 9v4" }),
248
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 17h.01" })
249
- ]
250
- });
251
-
252
- //#endregion
253
- //#region src/HelpText/HelpText.tsx
254
- const HelpText = ({ variant, size: size$1, description, errorMessage,...props }) => {
255
- const classNames$2 = (0, __marigold_system.useClassNames)({
256
- component: "HelpText",
257
- variant,
258
- size: size$1
259
- });
260
- const ctx = (0, react.useContext)(react_aria_components.FieldErrorContext);
261
- if (!description && !ctx?.isInvalid) return null;
262
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
263
- className: (0, __marigold_system.cn)(classNames$2.container),
264
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.FieldError, {
265
- ...props,
266
- className: "flex flex-col",
267
- children: (validation) => {
268
- /**
269
- * Prefer custom error messages, fallback to native errors ones.
270
- *
271
- * Note that we can not merge custom and native error messages,
272
- * because we can not distinguish the type of error messages
273
- * in the native ones since it is just an array of strings.
274
- */
275
- const messages = (typeof errorMessage === "function" ? errorMessage(validation) : errorMessage) || validation.validationErrors;
276
- return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
277
- className: "flex items-center justify-start gap-1",
278
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TriangleAlert, { className: (0, __marigold_system.cn)("h-4 w-4 shrink-0", classNames$2.icon) }), msg]
279
- }, idx)) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
280
- className: "flex items-start justify-start gap-1",
281
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TriangleAlert, { className: (0, __marigold_system.cn)("h-4 w-4 shrink-0", classNames$2.icon) }), messages]
282
- });
283
- }
284
- }), ctx && ctx.isInvalid ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Text, {
285
- slot: "description",
286
- children: description
287
- })]
288
- });
289
- };
290
-
291
- //#endregion
292
- //#region src/Label/Label.tsx
293
- const _Label = ({ size: size$1, variant, children,...props }) => {
294
- const className = (0, __marigold_system.useClassNames)({
295
- component: "Label",
296
- size: size$1,
297
- variant
298
- });
299
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Label, {
300
- ...props,
301
- className: (0, __marigold_system.cn)(className, "inline-flex"),
314
+ className: (0, __marigold_system.cn)("mx-auto box-content flex flex-col items-center justify-center gap-y-(--space)", "max-w-(--maxWidth)"),
315
+ style: {
316
+ ...(0, __marigold_system.createVar)({ maxWidth }),
317
+ ...(0, __marigold_system.createSpacingVar)("space", `${space}`)
318
+ },
302
319
  children
303
320
  });
304
321
  };
305
322
 
306
- //#endregion
307
- //#region src/FieldBase/FieldBase.tsx
308
- const fixedForwardRef = react.forwardRef;
309
- const _FieldBase = (props, ref) => {
310
- const { as: Component$1 = "div", children, label, size: size$1, variant, width = "full", description, errorMessage, className,...rest } = props;
311
- const classNames$2 = (0, __marigold_system.useClassNames)({
312
- component: "Field",
313
- variant,
314
- size: size$1
315
- });
316
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Component$1, {
317
- ref,
318
- className: (0, __marigold_system.cn)("group/field", "flex flex-col", __marigold_system.width[width], classNames$2, className),
319
- "data-required": props.isRequired ? true : void 0,
320
- "data-error": props.isInvalid ? true : void 0,
321
- ...rest,
322
- children: [
323
- label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Label, {
324
- variant,
325
- size: size$1,
326
- children: label
327
- }) : null,
328
- children,
329
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HelpText, {
330
- variant,
331
- size: size$1,
332
- description,
333
- errorMessage
334
- })
335
- ]
336
- });
337
- };
338
- const FieldBase = fixedForwardRef(_FieldBase);
339
-
340
323
  //#endregion
341
324
  //#region src/ProgressCircle/ProgressCircle.tsx
342
325
  const ProgressCircleSvg = ({ size: size$1 = "16", variant }) => {
@@ -373,7 +356,7 @@ const ProgressCircleSvg = ({ size: size$1 = "16", variant }) => {
373
356
  })]
374
357
  });
375
358
  };
376
- const ProgressCircle = ({ size: size$1 = "16",...props }) => {
359
+ const ProgressCircle = ({ size: size$1 = "16", ...props }) => {
377
360
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ProgressBar, {
378
361
  ...props,
379
362
  "aria-label": "loading",
@@ -384,7 +367,7 @@ const ProgressCircle = ({ size: size$1 = "16",...props }) => {
384
367
 
385
368
  //#endregion
386
369
  //#region src/icons/Search.tsx
387
- const Search = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
370
+ const Search = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
388
371
  xmlns: "http://www.w3.org/2000/svg",
389
372
  width: size$1,
390
373
  height: size$1,
@@ -403,26 +386,9 @@ const Search = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0
403
386
  })]
404
387
  });
405
388
 
406
- //#endregion
407
- //#region src/icons/X.tsx
408
- const X = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
409
- xmlns: "http://www.w3.org/2000/svg",
410
- width: size$1,
411
- height: size$1,
412
- viewBox: "0 0 24 24",
413
- fill: "none",
414
- stroke: "currentColor",
415
- strokeWidth: "2",
416
- strokeLinecap: "round",
417
- strokeLinejoin: "round",
418
- className: (0, __marigold_system.cn)("shrink-0", className),
419
- ...props,
420
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M18 6 6 18" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m6 6 12 12" })]
421
- });
422
-
423
389
  //#endregion
424
390
  //#region src/Input/Input.tsx
425
- const _Input = (0, react.forwardRef)(({ type, icon, action, variant, size: size$1, className,...props }, ref) => {
391
+ const _Input = (0, react.forwardRef)(({ type, icon, action, variant, size: size$1, className, ...props }, ref) => {
426
392
  const classNames$2 = (0, __marigold_system.useClassNames)({
427
393
  component: "Input",
428
394
  variant,
@@ -437,17 +403,17 @@ const _Input = (0, react.forwardRef)(({ type, icon, action, variant, size: size$
437
403
  className: (0, __marigold_system.cn)("absolute right-0 cursor-pointer", classNames$2.action, action.props.className)
438
404
  }) : null;
439
405
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
440
- className: "group/input relative flex items-center",
406
+ className: (0, __marigold_system.cn)("group/input relative flex w-(--field-width) max-w-full min-w-0 items-center"),
441
407
  "data-icon": icon && "",
442
408
  "data-action": action && "",
443
409
  children: [
444
- inputIcon,
445
410
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Input, {
446
411
  ...props,
447
- className: (0, __marigold_system.cn)("w-full flex-1", "disabled:cursor-not-allowed", "[&[type=file]]:border-none [&[type=file]]:p-0", "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0", classNames$2.input, className),
412
+ className: (0, __marigold_system.cn)("flex-1", "disabled:cursor-not-allowed", "[&[type=file]]:border-none [&[type=file]]:p-0", "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0", classNames$2.input, className),
448
413
  ref,
449
414
  type
450
415
  }),
416
+ inputIcon,
451
417
  inputAction
452
418
  ]
453
419
  });
@@ -460,13 +426,16 @@ const intlMessages$1 = {
460
426
  "en-US": { "Clear search": "Clear search" },
461
427
  "fr-FR": { "Clear search": "Effacer la recherche" }
462
428
  };
463
- const SearchInput = (0, react.forwardRef)(({ className, loading, onClear,...props }, ref) => {
429
+ const SearchInput = (0, react.forwardRef)(({ className, loading, onClear, ...props }, ref) => {
464
430
  const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages$1);
465
431
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Input, {
466
432
  type: "search",
467
433
  className: (0, __marigold_system.cn)("[&::-webkit-search-cancel-button]:hidden", className?.input),
468
434
  ref,
469
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Search, { size: "16" }),
435
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Search, {
436
+ "aria-hidden": "true",
437
+ size: "16"
438
+ }),
470
439
  action: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProgressCircle, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
471
440
  className: className?.action,
472
441
  onPress: () => onClear?.(),
@@ -484,23 +453,6 @@ const SearchInput = (0, react.forwardRef)(({ className, loading, onClear,...prop
484
453
  const ListBoxContext = (0, react.createContext)({});
485
454
  const useListBoxContext = () => (0, react.useContext)(ListBoxContext);
486
455
 
487
- //#endregion
488
- //#region src/icons/Check.tsx
489
- const Check = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
490
- xmlns: "http://www.w3.org/2000/svg",
491
- width: size$1,
492
- height: size$1,
493
- viewBox: "0 0 24 24",
494
- fill: "none",
495
- stroke: "currentColor",
496
- strokeWidth: "2",
497
- strokeLinecap: "round",
498
- strokeLinejoin: "round",
499
- className: (0, __marigold_system.cn)("shrink-0", className),
500
- ...props,
501
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M20 6 9 17l-5-5" })
502
- });
503
-
504
456
  //#endregion
505
457
  //#region src/ListBox/ListBoxItem.tsx
506
458
  const _ListBoxItem = ({ ...props }) => {
@@ -511,7 +463,7 @@ const _ListBoxItem = ({ ...props }) => {
511
463
  textValue: props.textValue ?? String(props.children),
512
464
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
513
465
  className: "selection-indicator contents",
514
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {
466
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.Check, {
515
467
  size: 16,
516
468
  strokeWidth: "3",
517
469
  className: "hidden"
@@ -522,7 +474,7 @@ const _ListBoxItem = ({ ...props }) => {
522
474
 
523
475
  //#endregion
524
476
  //#region src/ListBox/ListBoxSection.tsx
525
- const _Section = ({ header, children,...props }) => {
477
+ const _Section = ({ header, children, ...props }) => {
526
478
  const { classNames: classNames$2 } = useListBoxContext();
527
479
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.ListBoxSection, {
528
480
  ...props,
@@ -533,7 +485,7 @@ const _Section = ({ header, children,...props }) => {
533
485
 
534
486
  //#endregion
535
487
  //#region src/ListBox/ListBox.tsx
536
- const _ListBox = (0, react.forwardRef)(({ variant, size: size$1,...props }, ref) => {
488
+ const _ListBox = (0, react.forwardRef)(({ variant, size: size$1, ...props }, ref) => {
537
489
  const classNames$2 = (0, __marigold_system.useClassNames)({
538
490
  component: "ListBox",
539
491
  variant,
@@ -546,7 +498,7 @@ const _ListBox = (0, react.forwardRef)(({ variant, size: size$1,...props }, ref)
546
498
  className: classNames$2.container,
547
499
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ListBox, {
548
500
  ...props,
549
- className: (0, __marigold_system.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]", classNames$2.list),
501
+ className: (0, __marigold_system.cn)("overflow-y-auto", classNames$2.list),
550
502
  ref,
551
503
  ...listBoxProps,
552
504
  children: props.children
@@ -557,31 +509,9 @@ const _ListBox = (0, react.forwardRef)(({ variant, size: size$1,...props }, ref)
557
509
  _ListBox.Item = _ListBoxItem;
558
510
  _ListBox.Section = _Section;
559
511
 
560
- //#endregion
561
- //#region src/Overlay/Underlay.tsx
562
- const Underlay = ({ size: size$1, variant, open, dismissable, keyboardDismissable,...rest }) => {
563
- const classNames$2 = (0, __marigold_system.useClassNames)({
564
- component: "Underlay",
565
- size: size$1,
566
- variant
567
- });
568
- const props = {
569
- isOpen: open,
570
- isDismissable: dismissable,
571
- isKeyboardDismissDisabled: keyboardDismissable,
572
- ...rest
573
- };
574
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ModalOverlay, {
575
- className: ({ isEntering, isExiting }) => (0, __marigold_system.cn)("fixed inset-0 z-40 grid place-items-center overflow-y-auto", isEntering ? "animate-in fade-in duration-300 ease-out" : "", isExiting ? "animate-out fade-out duration-200 ease-in" : "", classNames$2),
576
- ...props,
577
- "data-testid": "underlay-id",
578
- children: props.children
579
- });
580
- };
581
-
582
512
  //#endregion
583
513
  //#region src/Overlay/Popover.tsx
584
- const _Popover = (0, react.forwardRef)(({ keyboardDismissDisabled, placement, open, children,...rest }, ref) => {
514
+ const _Popover = (0, react.forwardRef)(({ keyboardDismissDisabled, placement, offset: offset$1 = 0, open, children, ...rest }, ref) => {
585
515
  const props = {
586
516
  isKeyboardDismissDisabled: keyboardDismissDisabled,
587
517
  isOpen: open,
@@ -593,97 +523,272 @@ const _Popover = (0, react.forwardRef)(({ keyboardDismissDisabled, placement, op
593
523
  variant: placement,
594
524
  className: "min-w-(--trigger-width)"
595
525
  });
596
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: (0, __marigold_system.useSmallScreen)() ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Popover, {
597
- ref,
598
- ...props,
599
- className: (0, __marigold_system.cn)("fixed! top-auto! bottom-0! left-0! max-h-fit! w-full", classNames$2),
600
- children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Underlay, { open })]
601
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Popover, {
526
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Popover, {
602
527
  ref,
603
528
  ...props,
604
- className: classNames$2,
529
+ className: (0, __marigold_system.cn)("z-30 flex", classNames$2),
605
530
  placement,
606
- offset: 0,
531
+ offset: offset$1,
607
532
  children
608
- }) });
533
+ });
609
534
  });
610
535
 
611
536
  //#endregion
612
- //#region src/intl/messages.ts
613
- const intlMessages = {
614
- "de-DE": {
615
- cancel: "Abbrechen",
616
- loadingMessage: "Lade...",
617
- noResultsFound: "Kein Ergebnis gefunden",
618
- removeAll: "Alle entfernen",
619
- showMore: "Mehr anzeigen",
620
- showMoreCount: "{count} weitere anzeigen",
621
- showLess: "Weniger anzeigen",
622
- showLessCount: "{count} weniger anzeigen",
623
- dropZoneLabel: "Dateien hierher ziehen",
624
- uploadLabel: "Hochladen",
625
- moreInfo: "Mehr Informationen",
626
- help: "Hilfe",
627
- hiddenBreadcrumbs: "Diese Breadcrumbs sind ausgeblendet"
628
- },
629
- "en-US": {
630
- cancel: "Cancel",
631
- loadingMessage: "Loading...",
632
- noResultsFound: "No result found",
633
- removeAll: "Remove all",
634
- showMore: "Show more",
635
- showMoreCount: "Show {count} more",
636
- showLess: "Show less",
637
- showLessCount: "Show {count} less",
638
- dropZoneLabel: "Drop files here",
639
- uploadLabel: "Upload",
640
- moreInfo: "More information",
641
- help: "Help",
642
- hiddenBreadcrumbs: "These breadcrumbs are hidden"
643
- }
537
+ //#region src/Button/Button.tsx
538
+ const _Button = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, loading, fullWidth, ...props }, ref) => {
539
+ const classNames$2 = (0, __marigold_system.useClassNames)({
540
+ component: "Button",
541
+ variant,
542
+ size: size$1
543
+ });
544
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
545
+ ...props,
546
+ ref,
547
+ className: (0, __marigold_system.cn)(classNames$2, fullWidth ? "w-full" : void 0, loading && "cursor-progress!"),
548
+ isPending: loading,
549
+ isDisabled: disabled,
550
+ children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
551
+ className: "absolute",
552
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProgressCircle, {})
553
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
554
+ className: "invisible flex gap-[inherit]",
555
+ children
556
+ })] }) : children
557
+ });
558
+ });
559
+
560
+ //#endregion
561
+ //#region src/Tray/Context.tsx
562
+ const TrayContext = (0, react.createContext)(null);
563
+ const useTrayContext = () => (0, react.useContext)(TrayContext);
564
+
565
+ //#endregion
566
+ //#region src/Tray/TrayActions.tsx
567
+ const TrayActions = ({ children }) => {
568
+ const { classNames: classNames$2 } = useTrayContext();
569
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
570
+ className: (0, __marigold_system.cn)("[grid-area:actions]", classNames$2.actions),
571
+ children
572
+ });
644
573
  };
645
574
 
646
575
  //#endregion
647
- //#region src/Autocomplete/Autocomplete.tsx
648
- const AutocompleteInput = ({ loading, onSubmit, onClear, ref }) => {
649
- const state = (0, react.useContext)(react_aria_components.ComboBoxStateContext);
650
- const classNames$2 = (0, __marigold_system.useClassNames)({ component: "ComboBox" });
651
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
652
- ref,
653
- loading,
654
- className: { action: (0, __marigold_system.cn)(state?.inputValue === "" ? "invisible" : "visible", classNames$2) },
655
- onKeyDown: (e$1) => {
656
- if (e$1.key === "Enter" || e$1.key === "Escape") e$1.preventDefault();
657
- if (e$1.key === "Enter") {
658
- if (state?.selectionManager.focusedKey === null) onSubmit?.(null, state?.inputValue);
659
- }
576
+ //#region src/Tray/TrayContent.tsx
577
+ const TrayContent = ({ children, className }) => {
578
+ const { classNames: classNames$2 } = useTrayContext();
579
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
580
+ ref: (node$1) => {
581
+ if (node$1 && !node$1.style.minHeight) node$1.style.minHeight = `${node$1.offsetHeight}px`;
660
582
  },
661
- onClear: () => {
662
- state?.setInputValue("");
663
- state?.setSelectedKey(null);
664
- onClear?.();
665
- }
583
+ className: (0, __marigold_system.cn)("[grid-area:content]", classNames$2.content, className),
584
+ children
666
585
  });
667
586
  };
668
- const _Autocomplete = (0, react.forwardRef)(({ children, defaultValue, value, disabled, error, readOnly, required, emptyState, loading, onChange, onClear, onSubmit,...rest }, ref) => {
669
- const props = {
670
- onSelectionChange: (key) => key !== null && onSubmit?.(key, null),
671
- defaultInputValue: defaultValue,
672
- inputValue: value,
673
- onInputChange: onChange,
674
- allowsCustomValue: true,
675
- isDisabled: disabled,
676
- isInvalid: error,
587
+
588
+ //#endregion
589
+ //#region src/Tray/TrayModal.tsx
590
+ const MotionModal = motion_react.motion.create(react_aria_components.Modal);
591
+ const MotionModalOverlay = motion_react.motion.create(react_aria_components.ModalOverlay);
592
+ const inertiaTransition = {
593
+ type: "inertia",
594
+ bounceStiffness: 300,
595
+ bounceDamping: 40,
596
+ timeConstant: 300
597
+ };
598
+ const staticTransition = {
599
+ duration: .5,
600
+ ease: (0, motion_react.cubicBezier)(.32, .72, 0, 1)
601
+ };
602
+ const TrayModal = ({ open, onOpenChange, dismissable = true, keyboardDismissable = true, children }) => {
603
+ const classNames$2 = (0, __marigold_system.useClassNames)({ component: "Tray" });
604
+ const state = (0, react.useContext)(react_aria_components.OverlayTriggerStateContext);
605
+ const h$1 = typeof window !== "undefined" ? window.innerHeight : 0;
606
+ const y$1 = (0, motion_react.useMotionValue)(h$1);
607
+ const handleOpenChange = (isOpen) => {
608
+ onOpenChange?.(isOpen);
609
+ if (!isOpen) state?.close();
610
+ };
611
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, { children: open && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionModalOverlay, {
612
+ isOpen: true,
613
+ onOpenChange: handleOpenChange,
614
+ isDismissable: dismissable,
615
+ isKeyboardDismissDisabled: !keyboardDismissable,
616
+ className: (0, __marigold_system.cn)(classNames$2.overlay),
617
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionModal, {
618
+ className: classNames$2.container,
619
+ initial: { y: h$1 },
620
+ animate: { y: 0 },
621
+ exit: { y: h$1 },
622
+ transition: staticTransition,
623
+ style: { y: y$1 },
624
+ drag: "y",
625
+ dragConstraints: { top: 0 },
626
+ onDragEnd: (_e, { offset: offset$1, velocity }) => {
627
+ if (offset$1.y > window.innerHeight * .75 || velocity.y > 10) handleOpenChange(false);
628
+ else (0, motion_react.animate)(y$1, 0, {
629
+ ...inertiaTransition,
630
+ min: 0,
631
+ max: 0
632
+ });
633
+ },
634
+ children
635
+ })
636
+ }) });
637
+ };
638
+
639
+ //#endregion
640
+ //#region src/Tray/TrayTitle.tsx
641
+ const TrayTitle = ({ children }) => {
642
+ const { classNames: classNames$2 } = useTrayContext();
643
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Header, {
644
+ className: (0, __marigold_system.cn)("[grid-area:title]", classNames$2.header),
645
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, {
646
+ slot: "title",
647
+ level: 2,
648
+ className: classNames$2.title,
649
+ children
650
+ })
651
+ });
652
+ };
653
+
654
+ //#endregion
655
+ //#region src/Tray/TrayTrigger.tsx
656
+ const TrayTrigger = ({ open, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, {
657
+ isOpen: open,
658
+ ...props,
659
+ children
660
+ });
661
+
662
+ //#endregion
663
+ //#region src/Tray/Tray.tsx
664
+ const Tray = ({ open, onOpenChange, dismissable = true, keyboardDismissable = true, children, ...props }) => {
665
+ const state = (0, react.useContext)(react_aria_components.OverlayTriggerStateContext);
666
+ const isHidden = (0, __react_aria_collections.useIsHidden)();
667
+ const classNames$2 = (0, __marigold_system.useClassNames)({ component: "Tray" });
668
+ const openState = open ?? state?.isOpen;
669
+ if (isHidden) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TrayContext.Provider, {
670
+ value: { classNames: classNames$2 },
671
+ children
672
+ });
673
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TrayContext.Provider, {
674
+ value: { classNames: classNames$2 },
675
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TrayModal, {
676
+ open: openState,
677
+ dismissable,
678
+ onOpenChange,
679
+ keyboardDismissable,
680
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Dialog, {
681
+ ...props,
682
+ className: (0, __marigold_system.cn)("group/tray [grid-template-areas:'drag'_'title'_'content'_'actions']", classNames$2.container),
683
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, __marigold_system.cn)("[grid-area:drag]", classNames$2.dragHandle) }), children]
684
+ })
685
+ })
686
+ });
687
+ };
688
+ Tray.Trigger = TrayTrigger;
689
+ Tray.Title = TrayTitle;
690
+ Tray.Content = TrayContent;
691
+ Tray.Actions = TrayActions;
692
+
693
+ //#endregion
694
+ //#region src/Autocomplete/MobileAutocomplete.tsx
695
+ const MobileAutocompleteTrigger = ({ placeholder }) => {
696
+ const state = (0, react.useContext)(react_aria_components.ComboBoxStateContext);
697
+ const inputClassNames = (0, __marigold_system.useClassNames)({ component: "Input" });
698
+ const autocompleteClassNames = (0, __marigold_system.useClassNames)({ component: "Autocomplete" });
699
+ const displayText = state?.selectedItem?.textValue || "";
700
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
701
+ className: autocompleteClassNames.mobileTrigger,
702
+ "data-icon": "",
703
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Search, {
704
+ "aria-hidden": "true",
705
+ size: "16",
706
+ className: (0, __marigold_system.cn)("pointer-events-none absolute z-10", inputClassNames.icon)
707
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
708
+ className: (0, __marigold_system.cn)("w-full flex-1 text-left", "group-data-error/field:ui-state-error", "group-data-focus-visible/trigger:ui-state-focus", inputClassNames.input),
709
+ children: displayText || /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
710
+ className: "text-muted-foreground",
711
+ children: placeholder
712
+ })
713
+ })]
714
+ });
715
+ };
716
+ const MobileAutocomplete = ({ placeholder, label, emptyState, children, input }) => {
717
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
718
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray.Trigger, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
719
+ className: "group/trigger outline-none",
720
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileAutocompleteTrigger, { placeholder })
721
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
722
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: label }),
723
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray.Content, {
724
+ className: "flex flex-col gap-2",
725
+ children: [input, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
726
+ renderEmptyState: () => emptyState ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Center, { children: stringFormatter.format("noResultsFound") }),
727
+ children
728
+ })]
729
+ }),
730
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
731
+ slot: "close",
732
+ children: stringFormatter.format("close")
733
+ }) })
734
+ ] })] });
735
+ };
736
+
737
+ //#endregion
738
+ //#region src/Autocomplete/Autocomplete.tsx
739
+ const AutocompleteInput = ({ loading, onSubmit, onClear, ref, autoFocus }) => {
740
+ const state = (0, react.useContext)(react_aria_components.ComboBoxStateContext);
741
+ const classNames$2 = (0, __marigold_system.useClassNames)({ component: "ComboBox" });
742
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, {
743
+ ref,
744
+ loading,
745
+ autoFocus,
746
+ className: { action: (0, __marigold_system.cn)(state?.inputValue === "" ? "invisible" : "visible", classNames$2) },
747
+ onKeyDown: (e$1) => {
748
+ if (e$1.key === "Enter" || e$1.key === "Escape") e$1.preventDefault();
749
+ if (e$1.key === "Enter") {
750
+ if (state?.selectionManager.focusedKey === null) onSubmit?.(null, state?.inputValue);
751
+ }
752
+ },
753
+ onClear: () => {
754
+ state?.setInputValue("");
755
+ state?.setSelectedKey(null);
756
+ onClear?.();
757
+ }
758
+ });
759
+ };
760
+ const _Autocomplete = (0, react.forwardRef)(({ children, defaultValue, value, disabled, error, readOnly, required, emptyState, loading, onChange, onClear, onSubmit, ...rest }, ref) => {
761
+ const props = {
762
+ onSelectionChange: (key) => key !== null && onSubmit?.(key, null),
763
+ defaultInputValue: defaultValue,
764
+ inputValue: value,
765
+ onInputChange: onChange,
766
+ allowsCustomValue: true,
767
+ isDisabled: disabled,
768
+ isInvalid: error,
677
769
  isReadOnly: readOnly,
678
770
  isRequired: required,
679
771
  ...rest
680
772
  };
681
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages);
682
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
773
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
774
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
775
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
683
776
  as: react_aria_components.ComboBox,
684
777
  ref,
685
778
  ...props,
686
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteInput, {
779
+ children: isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileAutocomplete, {
780
+ placeholder: rest.placeholder,
781
+ label: rest.label,
782
+ emptyState,
783
+ input: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteInput, {
784
+ loading,
785
+ onSubmit,
786
+ onClear,
787
+ ref,
788
+ autoFocus: true
789
+ }),
790
+ children
791
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteInput, {
687
792
  loading,
688
793
  onSubmit,
689
794
  onClear,
@@ -691,29 +796,61 @@ const _Autocomplete = (0, react.forwardRef)(({ children, defaultValue, value, di
691
796
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
692
797
  renderEmptyState: () => emptyState ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Center, { children: stringFormatter.format("noResultsFound") }),
693
798
  children
694
- }) })]
799
+ }) })] })
695
800
  });
696
801
  });
697
802
  _Autocomplete.Option = _ListBox.Item;
698
803
  _Autocomplete.Section = _ListBox.Section;
699
804
 
805
+ //#endregion
806
+ //#region src/icons/Lock.tsx
807
+ const Lock = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
808
+ "data-testid": "lock-icon",
809
+ xmlns: "http://www.w3.org/2000/svg",
810
+ width: size$1,
811
+ height: size$1,
812
+ viewBox: "0 0 24 24",
813
+ fill: "none",
814
+ stroke: "currentColor",
815
+ strokeWidth: "2",
816
+ strokeLinecap: "round",
817
+ strokeLinejoin: "round",
818
+ className: (0, __marigold_system.cn)("shrink-0", className),
819
+ ...props,
820
+ children: [
821
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
822
+ cx: "12",
823
+ cy: "16",
824
+ r: "1"
825
+ }),
826
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
827
+ x: "3",
828
+ y: "10",
829
+ width: "18",
830
+ height: "12",
831
+ rx: "2"
832
+ }),
833
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7 10V7a5 5 0 0 1 10 0v3" })
834
+ ]
835
+ });
836
+
700
837
  //#endregion
701
838
  //#region src/Badge/Badge.tsx
702
- const Badge = ({ variant, size: size$1, children,...props }) => {
703
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
839
+ const Badge = ({ variant, size: size$1, children, ...props }) => {
840
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
704
841
  className: (0, __marigold_system.useClassNames)({
705
842
  component: "Badge",
706
843
  variant,
707
844
  size: size$1
708
845
  }),
709
846
  ...props,
710
- children
847
+ children: [["master", "admin"].includes(variant ?? "") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Lock, { size: 16 }), children]
711
848
  });
712
849
  };
713
850
 
714
851
  //#endregion
715
852
  //#region src/icons/ChevronRight.tsx
716
- const ChevronRight = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
853
+ const ChevronRight = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
717
854
  xmlns: "http://www.w3.org/2000/svg",
718
855
  width: size$1,
719
856
  height: size$1,
@@ -730,7 +867,7 @@ const ChevronRight = ({ size: size$1 = 24, className,...props }) => /* @__PURE__
730
867
 
731
868
  //#endregion
732
869
  //#region src/IconButton/IconButton.tsx
733
- const IconButton = ({ className, children, variant, size: size$1,...props }) => {
870
+ const IconButton = ({ className, children, variant, size: size$1, ...props }) => {
734
871
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
735
872
  className: (0, __marigold_system.cn)("shrink-0 cursor-pointer outline-0", (0, __marigold_system.useClassNames)({
736
873
  component: "IconButton",
@@ -745,7 +882,7 @@ const IconButton = ({ className, children, variant, size: size$1,...props }) =>
745
882
  //#endregion
746
883
  //#region src/Breadcrumbs/BreadcrumbEllipsis.tsx
747
884
  const BreadcrumbEllipsis = ({ hiddenItems = [], disabled = false }) => {
748
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages, "marigold");
885
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages, "marigold");
749
886
  const { container, item: menuItem } = (0, __marigold_system.useClassNames)({ component: "Menu" });
750
887
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.MenuTrigger, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
751
888
  "aria-label": stringFormatter.format("hiddenBreadcrumbs"),
@@ -771,7 +908,7 @@ const BreadcrumbsItem = (_) => null;
771
908
 
772
909
  //#endregion
773
910
  //#region src/Breadcrumbs/Breadcrumbs.tsx
774
- const _Breadcrumbs = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, maxVisibleItems,...props }, ref) => {
911
+ const _Breadcrumbs = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, maxVisibleItems, ...props }, ref) => {
775
912
  const { container, item: breadcrumbsItem, link, current } = (0, __marigold_system.useClassNames)({
776
913
  component: "Breadcrumbs",
777
914
  variant,
@@ -797,7 +934,7 @@ const _Breadcrumbs = (0, react.forwardRef)(({ children, variant, size: size$1, d
797
934
  children: displayedItems.map((item, index$1) => {
798
935
  if (!(0, react.isValidElement)(item)) return null;
799
936
  const isLast = index$1 === displayedItems.length - 1;
800
- const { href, children: itemChildren,...ariaProps } = item.props;
937
+ const { href, children: itemChildren, ...ariaProps } = item.props;
801
938
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Breadcrumb, {
802
939
  ...ariaProps,
803
940
  className: breadcrumbsItem,
@@ -825,30 +962,6 @@ const Breakout = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("d
825
962
  children
826
963
  });
827
964
 
828
- //#endregion
829
- //#region src/Button/Button.tsx
830
- const _Button = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, loading, fullWidth,...props }, ref) => {
831
- const classNames$2 = (0, __marigold_system.useClassNames)({
832
- component: "Button",
833
- variant,
834
- size: size$1
835
- });
836
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
837
- ...props,
838
- ref,
839
- className: (0, __marigold_system.cn)(classNames$2, fullWidth ? "w-full" : void 0, loading && "cursor-progress!"),
840
- isPending: loading,
841
- isDisabled: disabled,
842
- children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
843
- className: "absolute",
844
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProgressCircle, {})
845
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
846
- className: "invisible flex gap-[inherit]",
847
- children
848
- })] }) : children
849
- });
850
- });
851
-
852
965
  //#endregion
853
966
  //#region src/Calendar/CalendarGridHeader.tsx
854
967
  function CalendarGridHeader(props) {
@@ -882,9 +995,10 @@ function CalendarGridHeader(props) {
882
995
 
883
996
  //#endregion
884
997
  //#region src/Calendar/CalendarGrid.tsx
885
- const _CalendarGrid = () => {
998
+ const _CalendarGrid = ({ offset: offset$1 }) => {
886
999
  const classNames$2 = (0, __marigold_system.useClassNames)({ component: "Calendar" });
887
1000
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.CalendarGrid, {
1001
+ offset: offset$1,
888
1002
  className: classNames$2.calendarGrid,
889
1003
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarGridHeader, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.CalendarCell, {
890
1004
  date,
@@ -894,8 +1008,8 @@ const _CalendarGrid = () => {
894
1008
  };
895
1009
 
896
1010
  //#endregion
897
- //#region src/icons/ChevronsVertical.tsx
898
- const ChevronsVertical = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1011
+ //#region src/icons/ChevronLeft.tsx
1012
+ const ChevronLeft = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
899
1013
  xmlns: "http://www.w3.org/2000/svg",
900
1014
  width: size$1,
901
1015
  height: size$1,
@@ -907,13 +1021,75 @@ const ChevronsVertical = ({ size: size$1 = 24, className,...props }) => /* @__PU
907
1021
  strokeLinejoin: "round",
908
1022
  className: (0, __marigold_system.cn)("shrink-0", className),
909
1023
  ...props,
910
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7 15l5 5 5-5M7 9l5-5 5 5" })
1024
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m15 18-6-6 6-6" })
911
1025
  });
912
1026
 
913
1027
  //#endregion
914
1028
  //#region src/Calendar/Context.tsx
915
- const CalendarContext = (0, react.createContext)({});
916
- const useCalendarContext = () => (0, react.useContext)(CalendarContext);
1029
+ const CalendarContext = (0, react.createContext)(null);
1030
+ const useCalendarContext = () => {
1031
+ const ctx = (0, react.useContext)(CalendarContext);
1032
+ if (!ctx) throw new Error("Calendar components must be used within <Calendar>");
1033
+ return ctx;
1034
+ };
1035
+
1036
+ //#endregion
1037
+ //#region src/Calendar/CalendarHeader.tsx
1038
+ const CalendarHeader = ({ monthOffset = 0, showPrevious = true, showNext = true }) => {
1039
+ const state = (0, react.useContext)(react_aria_components.CalendarStateContext);
1040
+ const { classNames: classNames$2 } = useCalendarContext();
1041
+ const monthFormatter = (0, __react_aria_i18n.useDateFormatter)({
1042
+ month: "long",
1043
+ year: "numeric",
1044
+ timeZone: state.timeZone
1045
+ });
1046
+ const monthDate = state.visibleRange.start.add({ months: monthOffset });
1047
+ const formattedMonth = monthFormatter.format(monthDate.toDate(state.timeZone));
1048
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1049
+ className: "mb-4 flex min-h-[36px] items-center justify-between",
1050
+ children: [
1051
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1052
+ className: "flex-1",
1053
+ children: showPrevious && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
1054
+ className: (0, __marigold_system.cn)("inline-flex items-center justify-center gap-[0.5ch]", classNames$2.calendarControllers),
1055
+ variant: "navigation",
1056
+ slot: "previous",
1057
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronLeft, { size: "20" })
1058
+ })
1059
+ }),
1060
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, {
1061
+ className: "text-sm font-medium",
1062
+ children: formattedMonth
1063
+ }),
1064
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1065
+ className: "flex flex-1 justify-end",
1066
+ children: showNext && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
1067
+ className: (0, __marigold_system.cn)("inline-flex items-center justify-center gap-[0.5ch]", classNames$2.calendarControllers),
1068
+ variant: "navigation",
1069
+ slot: "next",
1070
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronRight, { size: "20" })
1071
+ })
1072
+ })
1073
+ ]
1074
+ });
1075
+ };
1076
+
1077
+ //#endregion
1078
+ //#region src/icons/ChevronsVertical.tsx
1079
+ const ChevronsVertical = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1080
+ xmlns: "http://www.w3.org/2000/svg",
1081
+ width: size$1,
1082
+ height: size$1,
1083
+ viewBox: "0 0 24 24",
1084
+ fill: "none",
1085
+ stroke: "currentColor",
1086
+ strokeWidth: "2",
1087
+ strokeLinecap: "round",
1088
+ strokeLinejoin: "round",
1089
+ className: (0, __marigold_system.cn)("shrink-0", className),
1090
+ ...props,
1091
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7 15l5 5 5-5M7 9l5-5 5 5" })
1092
+ });
917
1093
 
918
1094
  //#endregion
919
1095
  //#region src/Calendar/useFormattedMonths.tsx
@@ -951,23 +1127,6 @@ const CalendarListBox = ({ type, isDisabled, setSelectedDropdown }) => {
951
1127
  });
952
1128
  };
953
1129
 
954
- //#endregion
955
- //#region src/icons/ChevronLeft.tsx
956
- const ChevronLeft = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
957
- xmlns: "http://www.w3.org/2000/svg",
958
- width: size$1,
959
- height: size$1,
960
- viewBox: "0 0 24 24",
961
- fill: "none",
962
- stroke: "currentColor",
963
- strokeWidth: "2",
964
- strokeLinecap: "round",
965
- strokeLinejoin: "round",
966
- className: (0, __marigold_system.cn)("shrink-0", className),
967
- ...props,
968
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m15 18-6-6 6-6" })
969
- });
970
-
971
1130
  //#endregion
972
1131
  //#region src/Calendar/MonthControls.tsx
973
1132
  function MonthControls() {
@@ -1069,344 +1228,132 @@ var YearListBox_default = YearListBox;
1069
1228
  //#region src/Calendar/calendarListBoxSelectableCheck.ts
1070
1229
  function hasOnlyOneSelectableMonth(minValue, maxValue) {
1071
1230
  if (!minValue || !maxValue || minValue.year !== maxValue.year) return false;
1072
- return maxValue.month - minValue.month === 0;
1073
- }
1074
- function hasOnlyOneSelectableYear(minValue, maxValue) {
1075
- if (!minValue || !maxValue || minValue.year !== maxValue.year) return false;
1076
- return true;
1077
- }
1078
-
1079
- //#endregion
1080
- //#region src/Calendar/Calendar.tsx
1081
- const _Calendar = ({ disabled, readOnly, size: size$1, variant, width = "fit", dateUnavailable, minValue: _minValue, maxValue: _maxValue,...rest }) => {
1082
- const minValue = _minValue;
1083
- const maxValue = _maxValue;
1084
- const props = {
1085
- isDisabled: disabled,
1086
- isReadOnly: readOnly,
1087
- isDateUnavailable: dateUnavailable,
1088
- minValue,
1089
- maxValue,
1090
- ...rest
1091
- };
1092
- const classNames$2 = (0, __marigold_system.useClassNames)({
1093
- component: "Calendar",
1094
- size: size$1,
1095
- variant
1096
- });
1097
- const [selectedDropdown, setSelectedDropdown] = (0, react.useState)();
1098
- const ViewMap = {
1099
- month: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthListBox_default, {
1100
- setSelectedDropdown,
1101
- minValue,
1102
- maxValue
1103
- }),
1104
- year: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(YearListBox_default, {
1105
- setSelectedDropdown,
1106
- minValue,
1107
- maxValue
1108
- })
1109
- };
1110
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarContext.Provider, {
1111
- value: { classNames: classNames$2 },
1112
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Calendar, {
1113
- className: (0, __marigold_system.cn)("relative flex min-h-[350px] flex-col rounded-xs p-4", __marigold_system.width[width], classNames$2.calendar),
1114
- ...props,
1115
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1116
- className: (0, __marigold_system.cn)("pointer-events-none absolute top-1/2 left-0 w-full -translate-y-1/2 opacity-0", selectedDropdown && "pointer-events-auto opacity-100"),
1117
- children: ViewMap[selectedDropdown]
1118
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1119
- className: (0, __marigold_system.cn)("flex flex-col", selectedDropdown && "pointer-events-none opacity-0"),
1120
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1121
- className: "mb-4 flex items-center justify-between",
1122
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1123
- className: "flex w-fit gap-4",
1124
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarListBox, {
1125
- type: "month",
1126
- isDisabled: hasOnlyOneSelectableMonth(minValue, maxValue) || props.isDisabled,
1127
- setSelectedDropdown
1128
- }, "month"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarListBox, {
1129
- type: "year",
1130
- isDisabled: hasOnlyOneSelectableYear(minValue, maxValue) || props.isDisabled,
1131
- setSelectedDropdown
1132
- }, "year")]
1133
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthControls_default, {})]
1134
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_CalendarGrid, {})]
1135
- })]
1136
- })
1137
- });
1138
- };
1139
-
1140
- //#endregion
1141
- //#region src/Card/Card.tsx
1142
- const Card = ({ children, variant, size: size$1, space = 0, p: p$1, px, py, pt, pb, pl, pr,...props }) => {
1143
- const classNames$2 = (0, __marigold_system.useClassNames)({
1144
- component: "Card",
1145
- variant,
1146
- size: size$1
1147
- });
1148
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1149
- ...props,
1150
- className: (0, __marigold_system.cn)("flex flex-col", classNames$2, __marigold_system.gapSpace[space], __marigold_system.paddingSpace !== void 0 && __marigold_system.paddingSpace[p$1], __marigold_system.paddingSpaceX !== void 0 && __marigold_system.paddingSpaceX[px], __marigold_system.paddingSpaceY !== void 0 && __marigold_system.paddingSpaceY[py], __marigold_system.paddingRight !== void 0 && __marigold_system.paddingRight[pr], __marigold_system.paddingLeft !== void 0 && __marigold_system.paddingLeft[pl], __marigold_system.paddingBottom !== void 0 && __marigold_system.paddingBottom[pb], __marigold_system.paddingTop !== void 0 && __marigold_system.paddingTop[pt]),
1151
- children
1152
- });
1153
- };
1154
-
1155
- //#endregion
1156
- //#region src/Collapsible/Context.tsx
1157
- const CollapsibleContext = (0, react.createContext)(void 0);
1158
- const CollapsibleProvider = ({ value, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleContext.Provider, {
1159
- value,
1160
- children
1161
- });
1162
-
1163
- //#endregion
1164
- //#region src/Collapsible/CollapsibleContent.tsx
1165
- const CollapsibleContent = ({ variant, size: size$1, children,...props }) => {
1166
- const classNames$2 = (0, __marigold_system.useClassNames)({
1167
- component: "Collapsible",
1168
- variant,
1169
- size: size$1,
1170
- context: CollapsibleContext
1171
- });
1172
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DisclosurePanel, {
1173
- ...props,
1174
- className: classNames$2.content,
1175
- children
1176
- });
1177
- };
1178
-
1179
- //#endregion
1180
- //#region src/Collapsible/CollapsibleTrigger.tsx
1181
- const CollapsibleTrigger = ({ variant, size: size$1, children, level,...props }) => {
1182
- const classNames$2 = (0, __marigold_system.useClassNames)({
1183
- component: "Collapsible",
1184
- variant,
1185
- size: size$1,
1186
- context: CollapsibleContext
1187
- });
1188
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, {
1189
- level,
1190
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
1191
- ...props,
1192
- slot: "trigger",
1193
- className: classNames$2.trigger,
1194
- children
1195
- })
1196
- });
1197
- };
1198
-
1199
- //#endregion
1200
- //#region src/Collapsible/Collapsible.tsx
1201
- const Collapsible = ({ variant, size: size$1, children, unstyled,...props }) => {
1202
- const classNames$2 = (0, __marigold_system.useClassNames)({
1203
- component: "Collapsible",
1204
- variant,
1205
- size: size$1
1206
- });
1207
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleProvider, {
1208
- value: {
1209
- variant,
1210
- size: size$1
1211
- },
1212
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Disclosure, {
1213
- ...props,
1214
- className: (0, __marigold_system.cn)(classNames$2.container, unstyled && "expanded:contents expanded:[&_[role=group]]:contents"),
1215
- children
1216
- })
1217
- });
1218
- };
1219
- Collapsible.Trigger = CollapsibleTrigger;
1220
- Collapsible.Content = CollapsibleContent;
1221
-
1222
- //#endregion
1223
- //#region src/Collapsible/More.tsx
1224
- const More = ({ children, defaultExpanded = false, unstyled = true, showCount = false,...props }) => {
1225
- /**
1226
- * We need to add state here, because toggling on a checkbox will
1227
- * force a rerender and without the state the <Collapsible> will be collapsed.
1228
- */
1229
- const [isExpanded, setIsExpanded] = (0, react.useState)(defaultExpanded);
1230
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages, "marigold");
1231
- const count = `${react.Children.count(children)}`;
1232
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Collapsible, {
1233
- variant: "link",
1234
- unstyled,
1235
- isExpanded,
1236
- ...props,
1237
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collapsible.Content, { children }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collapsible.Trigger, {
1238
- onPress: () => setIsExpanded(!isExpanded),
1239
- children: isExpanded ? stringFormatter.format(showCount ? "showLessCount" : "showLess").replace("{count}", count) : stringFormatter.format(showCount ? "showMoreCount" : "showMore").replace("{count}", count)
1240
- })]
1241
- });
1242
- };
1243
-
1244
- //#endregion
1245
- //#region src/utils/children.utils.ts
1246
- const splitChildren = (children, at) => {
1247
- const childArray = react.Children.toArray(children);
1248
- if (at === void 0) return [childArray, []];
1249
- return [childArray.slice(0, at), childArray.slice(at)];
1250
- };
1251
-
1252
- //#endregion
1253
- //#region src/Checkbox/Context.tsx
1254
- const CheckboxGroupContext = (0, react.createContext)(null);
1255
- const useCheckboxGroupContext = () => (0, react.useContext)(CheckboxGroupContext);
1256
-
1257
- //#endregion
1258
- //#region src/Checkbox/CheckboxGroup.tsx
1259
- const CollapsibleGroup$1 = ({ children }) => {
1260
- const state = (0, react.useContext)(react_aria_components.CheckboxGroupStateContext);
1261
- if (!children || children.length === 0) return null;
1262
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(More, {
1263
- defaultExpanded: children.some((child) => (0, react.isValidElement)(child) && state.value.includes(child.props.value)),
1264
- showCount: true,
1265
- children
1266
- });
1267
- };
1268
- const _CheckboxGroup = ({ children, variant, size: size$1, required, disabled, readOnly, error, width, orientation = "vertical", collapseAt,...rest }) => {
1269
- const classNames$2 = (0, __marigold_system.useClassNames)({
1270
- component: "Checkbox",
1271
- variant,
1272
- size: size$1,
1273
- className: { group: "gap-x-2" }
1274
- });
1275
- const props = {
1276
- className: classNames$2.group,
1277
- isRequired: required,
1278
- isDisabled: disabled,
1279
- isReadOnly: readOnly,
1280
- isInvalid: error,
1281
- ...rest
1282
- };
1283
- const [visibleChildren, collapsedChildren] = splitChildren(children, collapseAt);
1284
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
1285
- as: react_aria_components.CheckboxGroup,
1286
- width,
1287
- ...props,
1288
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1289
- role: "presentation",
1290
- "data-orientation": orientation,
1291
- className: (0, __marigold_system.cn)(classNames$2.group, "group/checkboxgroup flex items-start", orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"),
1292
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CheckboxGroupContext.Provider, {
1293
- value: {
1294
- width,
1295
- variant,
1296
- size: size$1
1297
- },
1298
- children: [visibleChildren, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleGroup$1, { children: collapsedChildren })]
1299
- })
1300
- })
1301
- });
1302
- };
1303
-
1304
- //#endregion
1305
- //#region src/icons/Minus.tsx
1306
- const Minus = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1307
- xmlns: "http://www.w3.org/2000/svg",
1308
- width: size$1,
1309
- height: size$1,
1310
- viewBox: "0 0 24 24",
1311
- fill: "none",
1312
- stroke: "currentColor",
1313
- strokeWidth: "2",
1314
- strokeLinecap: "round",
1315
- strokeLinejoin: "round",
1316
- className: (0, __marigold_system.cn)("shrink-0", className),
1317
- ...props,
1318
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 12h14" })
1319
- });
1320
-
1321
- //#endregion
1322
- //#region src/Checkbox/Checkbox.tsx
1323
- const Field = ({ description, children }) => {
1324
- const className = (0, __marigold_system.useClassNames)({ component: "Field" });
1325
- const descriptionId = (0, __react_aria_utils.useId)();
1326
- if (!description) return children;
1327
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1328
- className,
1329
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Provider, {
1330
- values: [[react_aria_components.CheckboxContext, { "aria-describedby": descriptionId }], [react_aria_components.TextContext, { id: descriptionId }]],
1331
- children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HelpText, { description })]
1332
- })
1333
- });
1334
- };
1335
- const Icon$1 = ({ className, checked, indeterminate,...props }) => {
1336
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1337
- "aria-hidden": "true",
1338
- className: (0, __marigold_system.cn)("flex shrink-0 grow-0 basis-4 items-center justify-center", "h-4 w-4 p-px", "bg-white", "rounded-[3px] border border-solid border-black", className),
1339
- ...props,
1340
- children: indeterminate ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Minus, {
1341
- size: "12",
1342
- strokeWidth: "4"
1343
- }) : checked ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {
1344
- size: "12",
1345
- strokeWidth: "4"
1346
- }) : null
1347
- });
1348
- };
1349
- const _Checkbox = (0, react.forwardRef)(({ error, disabled, readOnly, required, checked, defaultChecked, indeterminate, variant, size: size$1, label, description,...rest }, ref) => {
1231
+ return maxValue.month - minValue.month === 0;
1232
+ }
1233
+ function hasOnlyOneSelectableYear(minValue, maxValue) {
1234
+ if (!minValue || !maxValue || minValue.year !== maxValue.year) return false;
1235
+ return true;
1236
+ }
1237
+
1238
+ //#endregion
1239
+ //#region src/Calendar/Calendar.tsx
1240
+ const _Calendar = ({ disabled, readOnly, size: size$1, variant, width = "fit", dateUnavailable, minValue, maxValue, visibleDuration = { months: 1 }, pageBehavior = "visible", ...rest }) => {
1241
+ const visibleMonths = visibleDuration?.months ?? 1;
1242
+ const isMultiMonth = visibleMonths > 1;
1350
1243
  const props = {
1351
- isIndeterminate: indeterminate,
1352
1244
  isDisabled: disabled,
1353
1245
  isReadOnly: readOnly,
1354
- isRequired: required,
1355
- isInvalid: error,
1356
- isSelected: checked,
1357
- defaultSelected: defaultChecked,
1246
+ isDateUnavailable: dateUnavailable,
1247
+ minValue,
1248
+ maxValue,
1249
+ visibleDuration,
1250
+ pageBehavior,
1358
1251
  ...rest
1359
1252
  };
1360
- const group = useCheckboxGroupContext();
1361
1253
  const classNames$2 = (0, __marigold_system.useClassNames)({
1362
- component: "Checkbox",
1363
- variant: variant || group?.variant,
1364
- size: size$1 || group?.size
1254
+ component: "Calendar",
1255
+ size: size$1,
1256
+ variant
1365
1257
  });
1366
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Field, {
1367
- description,
1368
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Checkbox, {
1369
- ref,
1370
- className: (0, __marigold_system.cn)("group/checkbox flex items-center", "cursor-pointer data-disabled:cursor-not-allowed", classNames$2.container),
1258
+ const [selectedDropdown, setSelectedDropdown] = (0, react.useState)();
1259
+ const ViewMap = {
1260
+ month: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthListBox_default, {
1261
+ setSelectedDropdown,
1262
+ minValue,
1263
+ maxValue
1264
+ }),
1265
+ year: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(YearListBox_default, {
1266
+ setSelectedDropdown,
1267
+ minValue,
1268
+ maxValue
1269
+ })
1270
+ };
1271
+ if (isMultiMonth) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarContext.Provider, {
1272
+ value: {
1273
+ classNames: classNames$2,
1274
+ visibleMonths,
1275
+ minValue,
1276
+ maxValue,
1277
+ disabled
1278
+ },
1279
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Calendar, {
1280
+ className: (0, __marigold_system.cn)("relative flex min-h-[350px] flex-col", __marigold_system.width[width], classNames$2.calendar),
1371
1281
  ...props,
1372
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$1, {
1373
- checked: isSelected,
1374
- indeterminate: isIndeterminate,
1375
- className: classNames$2.checkbox
1376
- }), label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1377
- className: classNames$2.label,
1378
- children: label
1379
- })] })
1282
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1283
+ className: (0, __marigold_system.cn)("flex gap-4", classNames$2.calendarContainer),
1284
+ children: [...Array(visibleMonths).keys()].map((i$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1285
+ className: (0, __marigold_system.cn)("flex-1", classNames$2.calendarMonth),
1286
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarHeader, {
1287
+ monthOffset: i$1,
1288
+ showPrevious: i$1 === 0,
1289
+ showNext: i$1 === visibleMonths - 1
1290
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_CalendarGrid, { offset: { months: i$1 } })]
1291
+ }, i$1))
1292
+ })
1380
1293
  })
1381
1294
  });
1382
- });
1383
- _Checkbox.Group = _CheckboxGroup;
1295
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarContext.Provider, {
1296
+ value: {
1297
+ classNames: classNames$2,
1298
+ visibleMonths,
1299
+ minValue,
1300
+ maxValue,
1301
+ disabled
1302
+ },
1303
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Calendar, {
1304
+ className: (0, __marigold_system.cn)("relative flex min-h-[350px] flex-col", __marigold_system.width[width], classNames$2.calendar),
1305
+ ...props,
1306
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1307
+ className: (0, __marigold_system.cn)("pointer-events-none absolute top-1/2 left-0 w-full -translate-y-1/2 opacity-0", selectedDropdown && "pointer-events-auto opacity-100"),
1308
+ children: ViewMap[selectedDropdown]
1309
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1310
+ className: (0, __marigold_system.cn)("flex flex-col", selectedDropdown && "pointer-events-none opacity-0"),
1311
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1312
+ className: "mb-4 flex items-center justify-between",
1313
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1314
+ className: "flex w-fit gap-4",
1315
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarListBox, {
1316
+ type: "month",
1317
+ isDisabled: hasOnlyOneSelectableMonth(minValue, maxValue) || props.isDisabled,
1318
+ setSelectedDropdown
1319
+ }, "month"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalendarListBox, {
1320
+ type: "year",
1321
+ isDisabled: hasOnlyOneSelectableYear(minValue, maxValue) || props.isDisabled,
1322
+ setSelectedDropdown
1323
+ }, "year")]
1324
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthControls_default, {})]
1325
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_CalendarGrid, {})]
1326
+ })]
1327
+ })
1328
+ });
1329
+ };
1384
1330
 
1385
1331
  //#endregion
1386
- //#region src/CloseButton/CloseButton.tsx
1387
- const CloseButton = (0, react.forwardRef)(({ className, size: size$1, variant,...props }, ref) => {
1388
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
1389
- ref,
1390
- className: (0, __marigold_system.useClassNames)({
1391
- component: "CloseButton",
1392
- className,
1393
- size: size$1,
1394
- variant
1395
- }),
1332
+ //#region src/Card/Card.tsx
1333
+ const Card = ({ children, variant, size: size$1, space = "0", stretch, p: p$1, px, py, pt, pb, pl, pr, ...props }) => {
1334
+ const classNames$2 = (0, __marigold_system.useClassNames)({
1335
+ component: "Card",
1336
+ variant,
1337
+ size: size$1
1338
+ });
1339
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1396
1340
  ...props,
1397
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(X, {})
1341
+ className: (0, __marigold_system.cn)("flex flex-col gap-y-(--space)", stretch ? "" : "w-fit", classNames$2, __marigold_system.paddingSpace !== void 0 && __marigold_system.paddingSpace[p$1], __marigold_system.paddingSpaceX !== void 0 && __marigold_system.paddingSpaceX[px], __marigold_system.paddingSpaceY !== void 0 && __marigold_system.paddingSpaceY[py], __marigold_system.paddingRight !== void 0 && __marigold_system.paddingRight[pr], __marigold_system.paddingLeft !== void 0 && __marigold_system.paddingLeft[pl], __marigold_system.paddingBottom !== void 0 && __marigold_system.paddingBottom[pb], __marigold_system.paddingTop !== void 0 && __marigold_system.paddingTop[pt]),
1342
+ style: (0, __marigold_system.createSpacingVar)("space", `${space}`),
1343
+ children
1398
1344
  });
1399
- });
1345
+ };
1400
1346
 
1401
1347
  //#endregion
1402
1348
  //#region src/Columns/Columns.tsx
1403
- const Columns = ({ space = 0, columns, collapseAt = "0em", stretch, children,...props }) => {
1349
+ const Columns = ({ space = 0, columns, collapseAt = "0em", stretch, children, ...props }) => {
1404
1350
  if (react.Children.count(children) !== columns.length) throw new Error(`Columns: expected ${columns.length} children, got ${react.Children.count(children)}`);
1405
1351
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1406
- className: (0, __marigold_system.cn)("flex flex-wrap items-stretch", stretch && "h-full", __marigold_system.gapSpace[space]),
1352
+ className: (0, __marigold_system.cn)("flex flex-wrap items-stretch gap-(--space)", stretch && "h-full"),
1353
+ style: (0, __marigold_system.createSpacingVar)("space", `${space}`),
1407
1354
  ...props,
1408
1355
  children: react.Children.map(children, (child, idx) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1409
- className: (0, __marigold_system.cn)(columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-(--columnSize)", "basis-[calc((var(--collapseAt)_-_100%)_*_999)]"),
1356
+ className: (0, __marigold_system.cn)(columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-(--columnSize)", "basis-[calc((var(--collapseAt)-100%)*999)]"),
1410
1357
  style: (0, __marigold_system.createVar)({
1411
1358
  collapseAt,
1412
1359
  columnSize: columns[idx]
@@ -1416,9 +1363,51 @@ const Columns = ({ space = 0, columns, collapseAt = "0em", stretch, children,...
1416
1363
  });
1417
1364
  };
1418
1365
 
1366
+ //#endregion
1367
+ //#region src/ComboBox/MobileCombobox.tsx
1368
+ const MobileComboBoxTrigger = ({ placeholder }) => {
1369
+ const state = (0, react.useContext)(react_aria_components.ComboBoxStateContext);
1370
+ const inputClassNames = (0, __marigold_system.useClassNames)({ component: "Input" });
1371
+ const comboBoxClassNames = (0, __marigold_system.useClassNames)({ component: "ComboBox" });
1372
+ const displayText = state?.selectedItem?.textValue || "";
1373
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1374
+ className: comboBoxClassNames.mobileTrigger,
1375
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1376
+ className: (0, __marigold_system.cn)("w-full flex-1 text-left", "group-data-error/field:ui-state-error", "group-data-focus-visible/trigger:ui-state-focus", inputClassNames.input),
1377
+ children: displayText || /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1378
+ className: "text-muted-foreground",
1379
+ children: placeholder
1380
+ })
1381
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1382
+ className: (0, __marigold_system.cn)("absolute right-2 cursor-pointer", inputClassNames.action, comboBoxClassNames),
1383
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, { size: "16" })
1384
+ })]
1385
+ });
1386
+ };
1387
+ const MobileComboBox = ({ placeholder, label, emptyState, children }) => {
1388
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
1389
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray.Trigger, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
1390
+ className: "group/trigger outline-none",
1391
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileComboBoxTrigger, { placeholder })
1392
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
1393
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: label }),
1394
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray.Content, {
1395
+ className: "flex flex-col gap-2",
1396
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Input, { autoFocus: true }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
1397
+ renderEmptyState: () => emptyState ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Center, { children: stringFormatter.format("noResultsFound") }),
1398
+ children
1399
+ })]
1400
+ }),
1401
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
1402
+ slot: "close",
1403
+ children: stringFormatter.format("close")
1404
+ }) })
1405
+ ] })] });
1406
+ };
1407
+
1419
1408
  //#endregion
1420
1409
  //#region src/ComboBox/ComboBox.tsx
1421
- const _ComboBox = (0, react.forwardRef)(({ variant, size: size$1, required, disabled, readOnly, error, defaultValue, value, emptyState, onChange, children, loading,...rest }, ref) => {
1410
+ const _ComboBox = (0, react.forwardRef)(({ variant, size: size$1, required, disabled, readOnly, error, defaultValue, value, emptyState, onChange, children, loading, ...rest }, ref) => {
1422
1411
  const props = {
1423
1412
  isDisabled: disabled,
1424
1413
  isReadOnly: readOnly,
@@ -1434,18 +1423,24 @@ const _ComboBox = (0, react.forwardRef)(({ variant, size: size$1, required, disa
1434
1423
  variant,
1435
1424
  size: size$1
1436
1425
  });
1437
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages);
1438
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
1426
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
1427
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
1428
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
1439
1429
  as: react_aria_components.ComboBox,
1440
1430
  ref,
1441
1431
  ...props,
1442
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Input, { action: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
1443
- className: classNames$2,
1432
+ children: isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileComboBox, {
1433
+ placeholder: rest.placeholder,
1434
+ label: rest.label,
1435
+ emptyState,
1436
+ children
1437
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Input, { action: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
1438
+ className: classNames$2.icon,
1444
1439
  children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProgressCircle, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, { size: "16" })
1445
1440
  }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
1446
1441
  renderEmptyState: () => emptyState ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Center, { children: stringFormatter.format("noResultsFound") }),
1447
1442
  children
1448
- }) })]
1443
+ }) })] })
1449
1444
  });
1450
1445
  });
1451
1446
  _ComboBox.Option = _ListBox.Item;
@@ -1473,19 +1468,22 @@ const gridColumn = {
1473
1468
  center: "*:col-[2]",
1474
1469
  right: "*:col-[3]"
1475
1470
  };
1476
- const Container = ({ contentLength = "default", align = "left", alignItems = "none", space = 0, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1471
+ const Container = ({ contentLength = "default", align = "left", alignItems = "none", space = 0, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1477
1472
  ...props,
1478
- className: (0, __marigold_system.cn)("grid", __marigold_system.placeItems[alignItems], gridColsAlign[align], gridColumn[align], __marigold_system.gapSpace[space]),
1479
- style: (0, __marigold_system.createVar)({
1480
- maxTextWidth: containerTextLength[contentLength],
1481
- maxHeadlineWidth: containerHeadlineLength[contentLength]
1482
- }),
1473
+ className: (0, __marigold_system.cn)("grid gap-(--space)", __marigold_system.placeItems[alignItems], gridColsAlign[align], gridColumn[align]),
1474
+ style: {
1475
+ ...(0, __marigold_system.createVar)({
1476
+ maxTextWidth: containerTextLength[contentLength],
1477
+ maxHeadlineWidth: containerHeadlineLength[contentLength]
1478
+ }),
1479
+ ...(0, __marigold_system.createSpacingVar)("space", `${space}`)
1480
+ },
1483
1481
  children
1484
1482
  });
1485
1483
 
1486
1484
  //#endregion
1487
1485
  //#region src/icons/CircleQuestionMark.tsx
1488
- const CircleQuestionMark = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1486
+ const CircleQuestionMark = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1489
1487
  xmlns: "http://www.w3.org/2000/svg",
1490
1488
  width: size$1,
1491
1489
  height: size$1,
@@ -1510,7 +1508,7 @@ const CircleQuestionMark = ({ size: size$1 = 24, className,...props }) => /* @__
1510
1508
 
1511
1509
  //#endregion
1512
1510
  //#region src/icons/Info.tsx
1513
- const Info = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1511
+ const Info = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1514
1512
  xmlns: "http://www.w3.org/2000/svg",
1515
1513
  width: size$1,
1516
1514
  height: size$1,
@@ -1537,11 +1535,11 @@ const Info = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0,
1537
1535
  //#region src/ContextualHelp/ContextualHelpContent.tsx
1538
1536
  const ContextualHelpContent = ({ children, variant, size: size$1 }) => {
1539
1537
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1540
- className: (0, __marigold_system.useClassNames)({
1538
+ className: (0, __marigold_system.cn)("min-h-0 overflow-y-auto [grid-area:content]", (0, __marigold_system.useClassNames)({
1541
1539
  component: "ContextualHelp",
1542
1540
  variant,
1543
1541
  size: size$1
1544
- }).content,
1542
+ }).content),
1545
1543
  children
1546
1544
  });
1547
1545
  };
@@ -1550,11 +1548,11 @@ const ContextualHelpContent = ({ children, variant, size: size$1 }) => {
1550
1548
  //#region src/ContextualHelp/ContextualHelpTitle.tsx
1551
1549
  const ContextualHelpTitle = ({ children, variant, size: size$1 }) => {
1552
1550
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, {
1553
- className: (0, __marigold_system.useClassNames)({
1551
+ className: (0, __marigold_system.cn)("[grid-area:title]", (0, __marigold_system.useClassNames)({
1554
1552
  component: "ContextualHelp",
1555
1553
  variant,
1556
1554
  size: size$1
1557
- }).title,
1555
+ }).title),
1558
1556
  children
1559
1557
  });
1560
1558
  };
@@ -1565,18 +1563,18 @@ const icons$2 = {
1565
1563
  help: CircleQuestionMark,
1566
1564
  info: Info
1567
1565
  };
1568
- const DialogTrigger$2 = ({ open,...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, {
1566
+ const DialogTrigger$2 = ({ open, ...rest }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, {
1569
1567
  isOpen: open,
1570
1568
  ...rest
1571
1569
  });
1572
1570
  const _ContextualHelp = (0, react.forwardRef)(({ children, variant = "help", size: size$1, width, placement = "bottom start", offset: offset$1 = 0, defaultOpen, open, onOpenChange, ariaLabel }, ref) => {
1573
- const Icon$2 = icons$2[variant];
1571
+ const Icon$1 = icons$2[variant];
1574
1572
  const classNames$2 = (0, __marigold_system.useClassNames)({
1575
1573
  component: "ContextualHelp",
1576
1574
  variant,
1577
1575
  size: size$1
1578
1576
  });
1579
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages);
1577
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
1580
1578
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DialogTrigger$2, {
1581
1579
  defaultOpen,
1582
1580
  open,
@@ -1585,14 +1583,13 @@ const _ContextualHelp = (0, react.forwardRef)(({ children, variant = "help", siz
1585
1583
  ref,
1586
1584
  className: classNames$2.trigger,
1587
1585
  "aria-label": ariaLabel ?? (variant === "info" ? stringFormatter.format("moreInfo") : stringFormatter.format("help")),
1588
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$2, { size: 20 })
1589
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Popover, {
1586
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$1, { size: 20 })
1587
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, {
1590
1588
  placement,
1591
1589
  offset: offset$1,
1592
- className: classNames$2.popover,
1593
- [`data-${width ?? "medium"}`]: true,
1594
1590
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Dialog, {
1595
- className: classNames$2.container,
1591
+ className: (0, __marigold_system.cn)("grid [grid-template-areas:'title'_'content']", classNames$2.container),
1592
+ [`data-${width ?? "medium"}`]: true,
1596
1593
  children
1597
1594
  })
1598
1595
  })]
@@ -1603,7 +1600,7 @@ _ContextualHelp.Content = ContextualHelpContent;
1603
1600
 
1604
1601
  //#endregion
1605
1602
  //#region src/DateField/DateSegment.tsx
1606
- const _DateSegment = ({ segment,...props }) => {
1603
+ const _DateSegment = ({ segment, ...props }) => {
1607
1604
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateSegment, {
1608
1605
  ...props,
1609
1606
  segment,
@@ -1682,7 +1679,7 @@ const isValidDate = (year, month, day) => {
1682
1679
  if (month === 2 && isLeapYear) return day <= 29;
1683
1680
  return day <= daysInMonth[month - 1];
1684
1681
  };
1685
- const _DateInput = ({ variant, size: size$1, action, onPaste,...props }) => {
1682
+ const _DateInput = ({ variant, size: size$1, action, onPaste, ...props }) => {
1686
1683
  const classNames$2 = (0, __marigold_system.useClassNames)({
1687
1684
  component: "DateField",
1688
1685
  variant,
@@ -1700,10 +1697,10 @@ const _DateInput = ({ variant, size: size$1, action, onPaste,...props }) => {
1700
1697
  }
1701
1698
  };
1702
1699
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Group, {
1703
- className: classNames$2.field,
1700
+ className: (0, __marigold_system.cn)(classNames$2.field, "w-(--field-width) max-w-full min-w-0 overflow-hidden"),
1704
1701
  onPaste: handlePaste,
1705
1702
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateInput, {
1706
- className: "flex flex-1 items-center",
1703
+ className: (0, __marigold_system.cn)("flex flex-1 items-center", classNames$2.input),
1707
1704
  ...props,
1708
1705
  children: (segment) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_DateSegment, {
1709
1706
  className: classNames$2.segment,
@@ -1715,8 +1712,8 @@ const _DateInput = ({ variant, size: size$1, action, onPaste,...props }) => {
1715
1712
 
1716
1713
  //#endregion
1717
1714
  //#region src/DateField/DateField.tsx
1718
- const _DateField = (0, react.forwardRef)(({ variant, size: size$1, action, disabled, required, error, readOnly, onChange,...rest }, ref) => {
1719
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
1715
+ const _DateField = (0, react.forwardRef)(({ variant, size: size$1, action, disabled, required, error, readOnly, onChange, ...rest }, ref) => {
1716
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
1720
1717
  as: react_aria_components.DateField,
1721
1718
  variant,
1722
1719
  size: size$1,
@@ -1725,17 +1722,14 @@ const _DateField = (0, react.forwardRef)(({ variant, size: size$1, action, disab
1725
1722
  isReadOnly: readOnly,
1726
1723
  isInvalid: error,
1727
1724
  isRequired: required,
1725
+ onChange,
1728
1726
  ...rest,
1729
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DateInputWithPasteWrapper, {
1730
- onChange,
1731
- action
1732
- })
1727
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DateInputWithPasteWrapper, { action })
1733
1728
  });
1734
1729
  });
1735
- const DateInputWithPasteWrapper = ({ onChange,...props }) => {
1730
+ const DateInputWithPasteWrapper = ({ ...props }) => {
1736
1731
  const ctx = (0, react.useContext)(react_aria_components.DateFieldStateContext);
1737
1732
  const onPaste = (date) => {
1738
- if (onChange) onChange(date);
1739
1733
  ctx?.setValue(date);
1740
1734
  };
1741
1735
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_DateInput, {
@@ -1746,7 +1740,7 @@ const DateInputWithPasteWrapper = ({ onChange,...props }) => {
1746
1740
 
1747
1741
  //#endregion
1748
1742
  //#region src/icons/Calendar.tsx
1749
- const Calendar = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1743
+ const Calendar = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1750
1744
  xmlns: "http://www.w3.org/2000/svg",
1751
1745
  width: size$1,
1752
1746
  height: size$1,
@@ -1774,7 +1768,7 @@ const Calendar = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */
1774
1768
 
1775
1769
  //#endregion
1776
1770
  //#region src/DatePicker/DatePicker.tsx
1777
- const _DatePicker = (0, react.forwardRef)(({ dateUnavailable, disabled, required, readOnly, error, variant, size: size$1, open, granularity = "day", onChange,...rest }, ref) => {
1771
+ const _DatePicker = (0, react.forwardRef)(({ dateUnavailable, disabled, required, readOnly, error, variant, size: size$1, open, granularity = "day", onChange, ...rest }, ref) => {
1778
1772
  const props = {
1779
1773
  isDateUnavailable: dateUnavailable,
1780
1774
  isDisabled: disabled,
@@ -1791,7 +1785,9 @@ const _DatePicker = (0, react.forwardRef)(({ dateUnavailable, disabled, required
1791
1785
  size: size$1,
1792
1786
  variant
1793
1787
  });
1794
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
1788
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
1789
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
1790
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Checkbox.FieldBase, {
1795
1791
  as: react_aria_components.DatePicker,
1796
1792
  variant,
1797
1793
  size: size$1,
@@ -1806,10 +1802,17 @@ const _DatePicker = (0, react.forwardRef)(({ dateUnavailable, disabled, required
1806
1802
  "data-testid": "action"
1807
1803
  })
1808
1804
  })
1809
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Dialog, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Calendar, { disabled }) }) })]
1805
+ }), isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
1806
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: rest.label }),
1807
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Content, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Calendar, { disabled }) }),
1808
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
1809
+ slot: "close",
1810
+ children: stringFormatter.format("close")
1811
+ }) })
1812
+ ] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Dialog, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Calendar, { disabled }) }) })]
1810
1813
  });
1811
1814
  });
1812
- const DatePickerWithPasteWrapper = ({ onChange,...props }) => {
1815
+ const DatePickerWithPasteWrapper = ({ onChange, ...props }) => {
1813
1816
  const ctx = (0, react.useContext)(react_aria_components.DatePickerStateContext);
1814
1817
  const onPaste = (date) => {
1815
1818
  if (onChange) onChange(date);
@@ -1821,9 +1824,31 @@ const DatePickerWithPasteWrapper = ({ onChange,...props }) => {
1821
1824
  });
1822
1825
  };
1823
1826
 
1827
+ //#endregion
1828
+ //#region src/Overlay/Underlay.tsx
1829
+ const Underlay = ({ size: size$1, variant, open, dismissable, keyboardDismissable, ...rest }) => {
1830
+ const classNames$2 = (0, __marigold_system.useClassNames)({
1831
+ component: "Underlay",
1832
+ size: size$1,
1833
+ variant
1834
+ });
1835
+ const props = {
1836
+ isOpen: open,
1837
+ isDismissable: dismissable,
1838
+ isKeyboardDismissDisabled: keyboardDismissable,
1839
+ ...rest
1840
+ };
1841
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ModalOverlay, {
1842
+ className: ({ isEntering, isExiting }) => (0, __marigold_system.cn)("fixed inset-0 z-50 grid place-items-center overflow-y-auto", isEntering ? "animate-in fade-in duration-300 ease-out" : "", isExiting ? "animate-out fade-out duration-200 ease-in" : "", classNames$2),
1843
+ ...props,
1844
+ "data-testid": "underlay-id",
1845
+ children: props.children
1846
+ });
1847
+ };
1848
+
1824
1849
  //#endregion
1825
1850
  //#region src/Overlay/Modal.tsx
1826
- const _Modal = (0, react.forwardRef)(({ size: size$1, open, dismissable, keyboardDismissable, onOpenChange, children,...props }, ref) => {
1851
+ const _Modal = (0, react.forwardRef)(({ size: size$1, open, dismissable, keyboardDismissable, onOpenChange, children, ...props }, ref) => {
1827
1852
  const className = (0, __marigold_system.useClassNames)({
1828
1853
  component: "Modal",
1829
1854
  size: size$1
@@ -1863,7 +1888,7 @@ const DialogActions = ({ variant, size: size$1, children }) => {
1863
1888
  //#region src/Dialog/DialogContent.tsx
1864
1889
  const DialogContent = ({ variant, size: size$1, children }) => {
1865
1890
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1866
- className: (0, __marigold_system.cn)("min-h-0 overflow-auto [grid-area:content]", (0, __marigold_system.useClassNames)({
1891
+ className: (0, __marigold_system.cn)("min-h-0 overflow-y-auto [grid-area:content]", (0, __marigold_system.useClassNames)({
1867
1892
  component: "Dialog",
1868
1893
  variant,
1869
1894
  size: size$1
@@ -1893,7 +1918,7 @@ const DialogTitle = ({ variant, size: size$1, children }) => {
1893
1918
 
1894
1919
  //#endregion
1895
1920
  //#region src/Dialog/DialogTrigger.tsx
1896
- const _DialogTrigger = ({ open, dismissable, keyboardDismissable,...rest }) => {
1921
+ const _DialogTrigger = ({ open, dismissable, keyboardDismissable, ...rest }) => {
1897
1922
  const ctx = {
1898
1923
  isDismissable: dismissable,
1899
1924
  isKeyboardDismissDisabled: !keyboardDismissable
@@ -1920,7 +1945,7 @@ const _DialogTrigger = ({ open, dismissable, keyboardDismissable,...rest }) => {
1920
1945
  * Needed so that the close button and function can be used inside the dialog,
1921
1946
  * when the dialog is controlled and no <Dialog.Trigger> is used.
1922
1947
  */
1923
- const InnerDialog = (0, react.forwardRef)(({ variant, size: size$1, closeButton,...props }, ref) => {
1948
+ const InnerDialog = (0, react.forwardRef)(({ variant, size: size$1, closeButton, ...props }, ref) => {
1924
1949
  const state = (0, react.useContext)(react_aria_components.OverlayTriggerStateContext);
1925
1950
  const classNames$2 = (0, __marigold_system.useClassNames)({
1926
1951
  component: "Dialog",
@@ -1938,7 +1963,7 @@ const InnerDialog = (0, react.forwardRef)(({ variant, size: size$1, closeButton,
1938
1963
  }), children]
1939
1964
  });
1940
1965
  });
1941
- const _Dialog = (0, react.forwardRef)(({ open, onOpenChange, children,...props }, ref) => {
1966
+ const _Dialog = (0, react.forwardRef)(({ open, onOpenChange, children, ...props }, ref) => {
1942
1967
  const ctx = (0, react.useContext)(DialogContext);
1943
1968
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Modal, {
1944
1969
  size: props.size,
@@ -1960,8 +1985,8 @@ _Dialog.Actions = DialogActions;
1960
1985
 
1961
1986
  //#endregion
1962
1987
  //#region src/Dialog/ConfirmationDialog.tsx
1963
- const ConfirmationDialog = ({ title, confirmationLabel, cancelLabel, onCancel, onConfirm, autoFocusButton, children, variant, size: size$1 = "xsmall",...props }) => {
1964
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages, "marigold");
1988
+ const ConfirmationDialog = ({ title, confirmationLabel, cancelLabel, onCancel, onConfirm, autoFocusButton, children, variant, size: size$1 = "xsmall", ...props }) => {
1989
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages, "marigold");
1965
1990
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Dialog, {
1966
1991
  role: "alertdialog",
1967
1992
  variant,
@@ -2032,7 +2057,7 @@ const useConfirmation = () => {
2032
2057
 
2033
2058
  //#endregion
2034
2059
  //#region src/Divider/Divider.tsx
2035
- const _Divider = ({ variant,...props }) => {
2060
+ const _Divider = ({ variant, ...props }) => {
2036
2061
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Separator, {
2037
2062
  className: (0, __marigold_system.cn)("border-none", (0, __marigold_system.useClassNames)({
2038
2063
  component: "Divider",
@@ -2139,7 +2164,7 @@ const useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
2139
2164
 
2140
2165
  //#endregion
2141
2166
  //#region src/Overlay/NonModal.tsx
2142
- const NonModalInner = ({ state, isExiting,...props }) => {
2167
+ const NonModalInner = ({ state, isExiting, ...props }) => {
2143
2168
  const { nonModalProps } = useNonModal(props, state);
2144
2169
  const ref = props.nonModalRef;
2145
2170
  const isEntering = (0, __react_aria_utils.useEnterAnimation)(ref) || props.isEntering || false;
@@ -2182,7 +2207,7 @@ const NonModalInner = ({ state, isExiting,...props }) => {
2182
2207
  })
2183
2208
  });
2184
2209
  };
2185
- const NonModal = (0, react.forwardRef)(({ open,...rest }, ref) => {
2210
+ const NonModal = (0, react.forwardRef)(({ open, ...rest }, ref) => {
2186
2211
  const props = {
2187
2212
  isOpen: open,
2188
2213
  ...rest
@@ -2204,15 +2229,15 @@ const NonModal = (0, react.forwardRef)(({ open,...rest }, ref) => {
2204
2229
 
2205
2230
  //#endregion
2206
2231
  //#region src/Drawer/DrawerModal.tsx
2207
- const MobileModal = ({ children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ModalOverlay, {
2232
+ const MobileModal = ({ children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ModalOverlay, {
2208
2233
  ...props,
2209
- className: "fixed inset-0 z-40 h-(--visual-viewport-height)",
2234
+ className: "fixed inset-0 z-50 h-(--visual-viewport-height)",
2210
2235
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Modal, {
2211
2236
  className: "flex *:flex-1",
2212
2237
  children
2213
2238
  })
2214
2239
  });
2215
- const DrawerModal = ({ children, className,...props }) => {
2240
+ const DrawerModal = ({ children, className, ...props }) => {
2216
2241
  return (0, __marigold_system.useSmallScreen)() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MobileModal, { children }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(NonModal, {
2217
2242
  ...props,
2218
2243
  className: (0, __marigold_system.cn)("fixed", className),
@@ -2243,7 +2268,7 @@ const DrawerTitle = ({ variant, size: size$1, children }) => {
2243
2268
 
2244
2269
  //#endregion
2245
2270
  //#region src/Drawer/DrawerTrigger.tsx
2246
- const DrawerTrigger = ({ open, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, {
2271
+ const DrawerTrigger = ({ open, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DialogTrigger, {
2247
2272
  isOpen: open,
2248
2273
  ...props,
2249
2274
  children
@@ -2251,7 +2276,7 @@ const DrawerTrigger = ({ open, children,...props }) => /* @__PURE__ */ (0, react
2251
2276
 
2252
2277
  //#endregion
2253
2278
  //#region src/Drawer/Drawer.tsx
2254
- const Drawer = ({ children, size: size$1 = "medium", variant, open, keyboardDismissable, closeButton, role = "complementary", placement = "right",...props }) => {
2279
+ const Drawer = ({ children, size: size$1 = "medium", variant, open, keyboardDismissable, closeButton, role = "complementary", placement = "right", ...props }) => {
2255
2280
  const ref = (0, react.useRef)(null);
2256
2281
  const classNames$2 = (0, __marigold_system.useClassNames)({
2257
2282
  component: "Drawer",
@@ -2288,7 +2313,7 @@ const Drawer = ({ children, size: size$1 = "medium", variant, open, keyboardDism
2288
2313
  children: [closeButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseButton, {
2289
2314
  "aria-label": "dismiss drawer",
2290
2315
  style: { "--i": 0 },
2291
- className: classNames$2.closeButton,
2316
+ className: (0, __marigold_system.cn)("z-80", classNames$2.closeButton),
2292
2317
  onPress: ctx?.close
2293
2318
  }), children]
2294
2319
  })
@@ -2300,21 +2325,113 @@ Drawer.Title = DrawerTitle;
2300
2325
  Drawer.Content = DrawerContent;
2301
2326
  Drawer.Actions = DrawerActions;
2302
2327
 
2328
+ //#endregion
2329
+ //#region src/EmptyState/EmptyState.tsx
2330
+ const EmptyState = ({ title, description, action, variant, size: size$1, ...props }) => {
2331
+ const classNames$2 = (0, __marigold_system.useClassNames)({
2332
+ component: "EmptyState",
2333
+ variant,
2334
+ size: size$1
2335
+ });
2336
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2337
+ className: classNames$2.container,
2338
+ ...props,
2339
+ children: [
2340
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2341
+ xmlns: "http://www.w3.org/2000/svg",
2342
+ width: "151",
2343
+ height: "84",
2344
+ viewBox: "0 0 151 84",
2345
+ fill: "none",
2346
+ className: "mb-6",
2347
+ "data-testid": "empty-state-illustration",
2348
+ "aria-hidden": "true",
2349
+ children: [
2350
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ellipse", {
2351
+ cx: "75.5",
2352
+ cy: "70.8003",
2353
+ rx: "75.5",
2354
+ ry: "13.1577",
2355
+ fill: "#EDECEC"
2356
+ }),
2357
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2358
+ d: "M42.6059 8.14447C44.1096 9.39758 47.6183 9.91971 49.1847 10.0241V71.1133H30.0747C24.561 69.636 23.1826 65.4853 23.1826 63.5947V44.4847C25.6888 44.6936 30.7013 43.4822 30.7013 36.966C30.7013 30.4499 25.6888 27.9854 23.1826 27.5677V10.0241C23.1826 9.0843 23.8092 5.95152 25.3756 4.38513C26.6287 3.13202 29.4482 2.19218 30.7013 1.87891H39.4731C39.8908 3.4453 41.1021 6.89135 42.6059 8.14447Z",
2359
+ fill: "white"
2360
+ }),
2361
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2362
+ d: "M49.8666 10.2474C53.7335 9.54586 56.338 4.88273 57.4051 1.95542C57.5564 1.54028 57.9458 1.25503 58.3876 1.25951L119.214 1.87704C119.31 1.87801 119.405 1.89262 119.497 1.92186C120.92 2.37547 123.927 3.55656 125.624 5.01129C127.379 6.51502 127.817 9.18833 127.817 10.337V62.3412C127.817 62.8503 127.379 64.6283 125.624 67.6669C123.87 70.7055 121.134 71.2304 119.985 71.113H49.8713C49.3191 71.113 48.8713 70.6652 48.8713 70.1129V11.337C48.8713 10.7847 49.3232 10.346 49.8666 10.2474Z",
2363
+ fill: "#F7F7F7"
2364
+ }),
2365
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2366
+ d: "M118.808 0.00662447C119.277 0.0239338 119.926 0.0808981 120.675 0.239747C122.169 0.556561 124.122 1.29138 125.805 2.97481C127.438 4.60764 128.326 6.49112 128.807 7.93403C129.049 8.66006 129.193 9.28997 129.277 9.74517C129.32 9.97315 129.347 10.1589 129.364 10.2928C129.373 10.3598 129.379 10.4142 129.383 10.4543C129.385 10.4744 129.388 10.491 129.389 10.5039C129.389 10.5103 129.39 10.5158 129.39 10.5204C129.39 10.5226 129.39 10.5247 129.391 10.5265C129.391 10.5275 129.39 10.5288 129.391 10.5296L129.391 10.5308C129.391 10.5314 129.363 10.534 127.83 10.6617L129.391 10.5314L129.397 10.5963V62.0393H127.83L129.397 62.0406V62.0424C129.397 62.0433 129.396 62.0445 129.396 62.0455V62.0693C129.396 62.0822 129.395 62.0981 129.395 62.1164C129.394 62.1531 129.392 62.2007 129.389 62.2584C129.382 62.3739 129.369 62.5305 129.345 62.7228C129.297 63.1075 129.204 63.6376 129.023 64.2708C128.66 65.5397 127.947 67.2208 126.547 68.97C125.047 70.845 123.178 71.7713 121.718 72.2276C120.987 72.4561 120.345 72.5713 119.879 72.6296C119.645 72.6588 119.453 72.6743 119.314 72.6822C119.244 72.6862 119.186 72.6884 119.144 72.6896C119.122 72.6902 119.104 72.6906 119.09 72.6908H119.06C119.059 72.6908 119.059 72.6907 119.059 71.1244V72.6908H30.7135V71.1244C30.7135 72.6907 30.713 72.6908 30.7123 72.6908H30.6835C30.6706 72.6906 30.6548 72.6901 30.6364 72.6896C30.5996 72.6885 30.552 72.6863 30.4944 72.6828C30.3793 72.676 30.2235 72.6633 30.0337 72.6388C29.6548 72.5899 29.1357 72.4946 28.5303 72.3084C27.317 71.9351 25.7472 71.1925 24.2803 69.7257C22.7636 68.2089 22.1015 66.5005 21.82 65.1868C21.6793 64.5305 21.6319 63.9643 21.6199 63.5537C21.6138 63.3478 21.6167 63.1789 21.6217 63.0551C21.6237 63.0048 21.6261 62.9618 21.6284 62.9266V45.1486C21.6286 43.8942 22.6347 43.0011 23.7161 42.9116L24.0331 42.878C24.8301 42.7745 26.0052 42.4838 27.0092 41.7111C28.075 40.8909 29.1471 39.3773 29.1471 36.3505C29.1471 33.3076 28.0617 31.7216 26.9591 30.8351C25.7833 29.8899 24.3901 29.5858 23.6286 29.4939C22.5764 29.3669 21.6285 28.4802 21.6284 27.2655V9.95932L21.6358 9.88345L23.1948 10.0352C21.7189 9.8917 21.6405 9.88363 21.6364 9.88284V9.87978C21.6365 9.87838 21.6368 9.87666 21.637 9.87488C21.6374 9.87126 21.6377 9.86657 21.6382 9.86142C21.6393 9.85103 21.6406 9.83741 21.6425 9.82104C21.6463 9.78802 21.6517 9.7429 21.659 9.68704C21.6738 9.57522 21.6968 9.41902 21.73 9.22691C21.7963 8.84347 21.9054 8.31069 22.0794 7.6954C22.4226 6.48194 23.042 4.86123 24.1518 3.43433C25.3427 1.90326 26.9783 1.06453 28.2158 0.609929C28.8469 0.378108 29.4093 0.233047 29.8177 0.145519C30.0228 0.101583 30.1914 0.0715045 30.3133 0.0519029C30.3744 0.0420967 30.424 0.034942 30.4608 0.0298756C30.4792 0.0273413 30.4948 0.0252681 30.5067 0.0237569C30.5125 0.0230192 30.5178 0.0224319 30.522 0.0219212C30.524 0.0216751 30.5259 0.021504 30.5275 0.0213094C30.5283 0.0212086 30.5292 0.0213966 30.5299 0.0213094L30.5312 0.0206975C30.5317 0.0210523 30.5345 0.0436789 30.678 1.27136L30.5318 0.0206975L30.6223 0.0102957H39.172C40.3083 0.0102957 41.1716 0.844137 41.3668 1.83673L41.3968 2.03742L41.4414 2.39353C41.5737 3.30078 41.9215 4.71028 42.8053 5.92954C43.7515 7.23492 45.4105 8.46873 48.5703 8.4688C51.4189 8.4688 52.9238 7.27959 53.8025 5.9742C54.7445 4.57463 55.0359 2.91873 55.1192 2.04905L55.1314 1.94748C55.2805 0.902099 56.1685 0.0104433 57.3421 0.0102957H118.063C118.066 0.0101221 118.069 0.00986006 118.072 0.00968382C118.115 0.00726142 118.171 0.00493038 118.241 0.00295324C118.38 -0.000999543 118.572 -0.00205497 118.808 0.00662447ZM118.245 3.13818C118.244 3.13828 118.242 3.13812 118.241 3.13818L118.245 3.13757H118.245L118.245 3.13818ZM32.2799 36.3505C32.2799 40.2506 30.8314 42.7228 28.9195 44.1941C27.4746 45.306 25.8841 45.7531 24.7612 45.9355V63.0575L24.7539 63.1352C24.7532 63.1453 24.7523 63.1613 24.7514 63.1823C24.7491 63.2396 24.7471 63.3352 24.7508 63.4619C24.7583 63.717 24.7893 64.0909 24.8836 64.5309C25.072 65.41 25.5065 66.5214 26.4959 67.5107C27.5351 68.5498 28.6283 69.0606 29.4512 69.3139C29.8638 69.4408 30.2065 69.5023 30.4345 69.5317C30.5481 69.5464 30.6323 69.5527 30.6811 69.5556C30.7051 69.557 30.7204 69.5578 30.7263 69.558H119.059C119.072 69.5577 119.098 69.5565 119.136 69.5543C119.211 69.55 119.333 69.541 119.49 69.5213C119.807 69.4817 120.262 69.4005 120.784 69.2374C121.83 68.9105 123.094 68.2708 124.1 67.0132C125.207 65.6299 125.747 64.3345 126.011 63.4105C126.143 62.9474 126.206 62.5761 126.236 62.3343C126.251 62.2138 126.258 62.1258 126.261 62.0748C126.263 62.0495 126.264 62.0333 126.264 62.0271V10.7474C126.262 10.7333 126.26 10.7163 126.258 10.6966C126.247 10.6139 126.228 10.4838 126.197 10.3154C126.134 9.97754 126.024 9.49099 125.835 8.92465C125.454 7.78278 124.776 6.37641 123.589 5.18978C122.453 4.05392 121.116 3.53577 120.026 3.30461C119.483 3.18954 119.016 3.14891 118.692 3.13696C118.531 3.13101 118.407 3.13232 118.33 3.13451C118.291 3.1356 118.264 3.13677 118.25 3.13757C118.243 3.13796 118.24 3.13816 118.239 3.13818C118.239 3.13818 118.24 3.13826 118.241 3.13818L118.184 3.14308H58.1351C57.9431 4.34163 57.4898 6.10606 56.4011 7.72354C54.9709 9.84828 52.5151 11.6016 48.5703 11.6016C44.4144 11.6015 41.8086 9.89301 40.2685 7.76821C39.0862 6.13709 38.5955 4.35234 38.3888 3.14308H30.823C30.8191 3.1437 30.815 3.14423 30.8108 3.14491C30.737 3.15678 30.6216 3.17759 30.4743 3.20916C30.1779 3.27267 29.7611 3.37964 29.2958 3.55058C28.3405 3.90154 27.3131 4.47255 26.6244 5.35805C25.8547 6.34775 25.3774 7.54657 25.0941 8.54835C24.9549 9.04044 24.8681 9.46424 24.8169 9.76046C24.7914 9.9081 24.7752 10.0232 24.7655 10.097C24.7638 10.1096 24.7625 10.1211 24.7612 10.1313V26.5049C25.8771 26.7257 27.4732 27.2291 28.9219 28.3938C30.8178 29.9179 32.2799 32.4295 32.2799 36.3505Z",
2367
+ fill: "#C8C8C8"
2368
+ }),
2369
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2370
+ d: "M47.3049 66.4135V64.2848C47.3051 63.4198 48.0063 62.7184 48.8713 62.7184C49.7363 62.7184 50.4376 63.4198 50.4377 64.2848V66.4135C50.4377 67.2786 49.7364 67.9799 48.8713 67.9799C48.0062 67.9799 47.3049 67.2786 47.3049 66.4135ZM47.3049 58.204V53.9466C47.3051 53.0817 48.0063 52.3802 48.8713 52.3802C49.7363 52.3802 50.4376 53.0817 50.4377 53.9466V58.204C50.4376 59.069 49.7363 59.7704 48.8713 59.7704C48.0063 59.7704 47.3051 59.069 47.3049 58.204ZM47.3049 47.8659V43.6085C47.3051 42.7435 48.0063 42.0421 48.8713 42.0421C49.7363 42.0421 50.4376 42.7435 50.4377 43.6085V47.8659C50.4376 48.7308 49.7363 49.4323 48.8713 49.4323C48.0063 49.4323 47.3051 48.7308 47.3049 47.8659ZM47.3049 37.5277V33.2703C47.3051 32.4053 48.0063 31.7039 48.8713 31.7039C49.7363 31.7039 50.4376 32.4053 50.4377 33.2703V37.5277C50.4376 38.3927 49.7363 39.0941 48.8713 39.0941C48.0063 39.0941 47.3051 38.3927 47.3049 37.5277ZM47.3049 27.1895V22.9321C47.3051 22.0671 48.0063 21.3657 48.8713 21.3657C49.7363 21.3657 50.4376 22.0671 50.4377 22.9321V27.1895C50.4376 28.0545 49.7363 28.7559 48.8713 28.7559C48.0063 28.7559 47.3051 28.0545 47.3049 27.1895ZM47.3049 16.8513V14.7226C47.3049 13.8575 48.0062 13.1562 48.8713 13.1562C49.7364 13.1562 50.4377 13.8575 50.4377 14.7226V16.8513C50.4376 17.7163 49.7363 18.4177 48.8713 18.4177C48.0063 18.4177 47.3051 17.7163 47.3049 16.8513Z",
2371
+ fill: "#C8C8C8"
2372
+ }),
2373
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2374
+ d: "M63.6644 30.1688C63.9188 29.3419 64.7956 28.8778 65.6224 29.1322C68.1752 29.9177 75.1526 31.0546 81.9128 29.1231C82.7446 28.8856 83.6118 29.3676 83.8494 30.1994C84.0869 31.0311 83.6049 31.8983 82.7731 32.1359C75.2793 34.2769 67.6632 33.0382 64.7009 32.1267C63.8741 31.8723 63.41 30.9956 63.6644 30.1688Z",
2375
+ fill: "#C8C8C8"
2376
+ }),
2377
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2378
+ d: "M94.2091 30.1688C94.4635 29.3419 95.3402 28.8778 96.1671 29.1322C98.7198 29.9177 105.697 31.0546 112.458 29.1231C113.289 28.8856 114.156 29.3676 114.394 30.1994C114.632 31.0311 114.15 31.8983 113.318 32.1359C105.824 34.2769 98.2078 33.0382 95.2456 32.1267C94.4188 31.8723 93.9547 30.9956 94.2091 30.1688Z",
2379
+ fill: "#C8C8C8"
2380
+ }),
2381
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2382
+ d: "M98.9176 52.8999C98.9176 52.0483 98.7013 51.3673 98.4508 50.9603C98.37 50.8291 98.3018 50.7487 98.2519 50.6996C98.2021 50.7487 98.1338 50.8291 98.0531 50.9603C97.8026 51.3673 97.5862 52.0483 97.5862 52.8999C97.5862 53.7515 97.8026 54.4325 98.0531 54.8396C98.1337 54.9705 98.2021 55.0505 98.2519 55.0996C98.3018 55.0505 98.3702 54.9705 98.4508 54.8396C98.7013 54.4325 98.9176 53.7515 98.9176 52.8999ZM100.797 52.8999C100.797 55.1843 99.6577 57.0362 98.2519 57.0362C96.8462 57.0362 95.7065 55.1843 95.7065 52.8999C95.7065 50.6155 96.8462 48.7637 98.2519 48.7637C99.6577 48.7637 100.797 50.6155 100.797 52.8999Z",
2383
+ fill: "#C8C8C8"
2384
+ }),
2385
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2386
+ d: "M118.636 50.2557L118.807 49.3678L122.064 46.6211L122.072 46.5827L119.534 46.0927L119.763 44.9043L124.094 45.7405L123.907 46.7087L120.827 49.4061L120.819 49.4445L123.378 49.9385L123.149 51.127L118.636 50.2557Z",
2387
+ fill: "#C8C8C8"
2388
+ }),
2389
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2390
+ d: "M131.588 40.8727L131.845 39.772L136.046 36.4992L136.057 36.4515L132.911 35.7164L133.256 34.2431L138.625 35.4977L138.344 36.698L134.365 39.9177L134.354 39.9654L137.526 40.7066L137.182 42.1799L131.588 40.8727Z",
2391
+ fill: "#C8C8C8"
2392
+ }),
2393
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2394
+ d: "M136.063 29.0709L135.74 27.4065L139.484 20.3498L139.47 20.2777L134.713 21.2007L134.28 18.9728L142.399 17.3976L142.752 19.2127L139.28 26.0602L139.294 26.1323L144.09 25.2016L144.523 27.4295L136.063 29.0709Z",
2395
+ fill: "#C8C8C8"
2396
+ })
2397
+ ]
2398
+ }),
2399
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2400
+ className: classNames$2.title,
2401
+ children: title
2402
+ }),
2403
+ description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2404
+ className: classNames$2.description,
2405
+ children: description
2406
+ }),
2407
+ action && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2408
+ className: classNames$2.action,
2409
+ children: action
2410
+ })
2411
+ ]
2412
+ });
2413
+ };
2414
+
2303
2415
  //#endregion
2304
2416
  //#region src/FileField/FileFieldItem.tsx
2305
2417
  const FileFieldItem = ({ children, onRemove }) => {
2418
+ const classNames$2 = (0, __marigold_system.useClassNames)({ component: "FileField" });
2419
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages, "marigold");
2306
2420
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2307
- className: "bg-background border-input flex items-center justify-between gap-2 rounded-lg border p-2 pe-3",
2308
- children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseButton, {
2309
- "aria-label": "Remove file",
2310
- onPress: onRemove
2421
+ className: (0, __marigold_system.cn)("grid", classNames$2.item),
2422
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2423
+ className: (0, __marigold_system.cn)("[grid-area:remove]", classNames$2.itemRemove),
2424
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseButton, {
2425
+ "aria-label": stringFormatter.format("removeFile"),
2426
+ onPress: onRemove
2427
+ })
2311
2428
  })]
2312
2429
  });
2313
2430
  };
2314
2431
 
2315
2432
  //#endregion
2316
2433
  //#region src/icons/Upload.tsx
2317
- const Upload = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2434
+ const Upload = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2318
2435
  xmlns: "http://www.w3.org/2000/svg",
2319
2436
  width: size$1,
2320
2437
  height: size$1,
@@ -2331,7 +2448,7 @@ const Upload = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0
2331
2448
 
2332
2449
  //#endregion
2333
2450
  //#region src/FileField/FileTrigger.tsx
2334
- const _FileTrigger = ({ label, disabled,...rest }) => {
2451
+ const _FileTrigger = ({ label, disabled, ...rest }) => {
2335
2452
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.FileTrigger, {
2336
2453
  ...rest,
2337
2454
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_Button, {
@@ -2375,24 +2492,35 @@ const normalizeAndLimitFiles = (files, { accept, multiple }) => {
2375
2492
 
2376
2493
  //#endregion
2377
2494
  //#region src/FileField/FileField.tsx
2378
- const FileField = ({ disabled = false, accept = ["*"], multiple = false, width, label,...props }) => {
2495
+ const FileField = ({ disabled = false, accept = ["*"], multiple = false, width, label, name, ...props }) => {
2379
2496
  const [files, setFiles] = (0, react.useState)(null);
2380
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages);
2497
+ const hiddenInputRef = (0, react.useRef)(null);
2498
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
2381
2499
  const dropZoneLabel = stringFormatter.format("dropZoneLabel");
2382
2500
  const buttonLabel = stringFormatter.format("uploadLabel");
2501
+ const syncHiddenInput = (newFiles) => {
2502
+ if (!hiddenInputRef.current || !name || typeof DataTransfer === "undefined") return;
2503
+ const dt = new DataTransfer();
2504
+ newFiles?.forEach((f$1) => dt.items.add(f$1));
2505
+ hiddenInputRef.current.files = dt.files;
2506
+ };
2383
2507
  const handleSelect = (files$1) => {
2384
- setFiles(normalizeAndLimitFiles(files$1 ? Array.from(files$1) : [], {
2508
+ const normalized = normalizeAndLimitFiles(files$1 ? Array.from(files$1) : [], {
2385
2509
  accept,
2386
2510
  multiple
2387
- }));
2511
+ });
2512
+ setFiles(normalized);
2513
+ syncHiddenInput(normalized);
2388
2514
  };
2389
2515
  const handleDrop = async (e$1) => {
2390
2516
  try {
2391
2517
  const filePromises = e$1.items.filter(isFileDropItem).map((item) => item.getFile());
2392
- setFiles(normalizeAndLimitFiles((await Promise.all(filePromises)).filter(Boolean), {
2518
+ const normalized = normalizeAndLimitFiles((await Promise.all(filePromises)).filter(Boolean), {
2393
2519
  accept,
2394
2520
  multiple
2395
- }));
2521
+ });
2522
+ setFiles(normalized);
2523
+ syncHiddenInput(normalized);
2396
2524
  } catch {}
2397
2525
  };
2398
2526
  const fileTriggerProps = {
@@ -2401,52 +2529,64 @@ const FileField = ({ disabled = false, accept = ["*"], multiple = false, width,
2401
2529
  onSelect: handleSelect
2402
2530
  };
2403
2531
  const classNames$2 = (0, __marigold_system.useClassNames)({ component: "FileField" });
2404
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
2532
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Checkbox.FieldBase, {
2405
2533
  as: "div",
2406
2534
  width,
2407
2535
  label,
2408
2536
  className: classNames$2.container,
2409
2537
  ...props,
2410
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DropZone, {
2411
- onDrop: handleDrop,
2412
- isDisabled: disabled,
2413
- className: classNames$2.dropZone,
2414
- "data-testid": "dropzone",
2415
- ...props,
2416
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2417
- className: classNames$2.dropZoneContent,
2418
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2419
- className: classNames$2.dropZoneLabel,
2420
- children: dropZoneLabel
2421
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_FileTrigger, {
2422
- ...fileTriggerProps,
2423
- label: buttonLabel,
2424
- disabled
2425
- })]
2426
- })
2427
- }), files?.map((file, index$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileField.Item, {
2428
- onRemove: () => setFiles((prev$1) => (prev$1 ?? []).filter((_, i$1) => i$1 !== index$1)),
2429
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2430
- className: classNames$2.item,
2431
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2432
- className: classNames$2.itemLabel,
2538
+ children: [
2539
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DropZone, {
2540
+ onDrop: handleDrop,
2541
+ isDisabled: disabled,
2542
+ className: classNames$2.dropZone,
2543
+ "data-testid": "dropzone",
2544
+ ...props,
2545
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2546
+ className: classNames$2.dropZoneContent,
2547
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
2548
+ className: classNames$2.dropZoneLabel,
2549
+ children: dropZoneLabel
2550
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_FileTrigger, {
2551
+ ...fileTriggerProps,
2552
+ label: buttonLabel,
2553
+ disabled
2554
+ })]
2555
+ })
2556
+ }),
2557
+ files?.map((file, index$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FileField.Item, {
2558
+ onRemove: () => {
2559
+ const updated = (files ?? []).filter((_, i$1) => i$1 !== index$1);
2560
+ setFiles(updated);
2561
+ syncHiddenInput(updated);
2562
+ },
2563
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2564
+ className: (0, __marigold_system.cn)("[grid-area:label]", classNames$2.itemLabel),
2433
2565
  children: file.name
2434
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
2435
- className: classNames$2.itemDescription,
2566
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2567
+ className: (0, __marigold_system.cn)("[grid-area:description]", classNames$2.itemDescription),
2436
2568
  children: [(file.size / 1024 / 1024).toFixed(2), " MB"]
2437
2569
  })]
2570
+ }, index$1)),
2571
+ name && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
2572
+ type: "file",
2573
+ ref: hiddenInputRef,
2574
+ name,
2575
+ hidden: true,
2576
+ multiple
2438
2577
  })
2439
- }, index$1))]
2578
+ ]
2440
2579
  });
2441
2580
  };
2442
2581
  FileField.Item = FileFieldItem;
2443
2582
 
2444
2583
  //#endregion
2445
2584
  //#region src/Form/Form.tsx
2446
- const _Form = ({ unstyled, maxWidth = "full",...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Form, {
2585
+ const _Form = (0, react.forwardRef)(({ unstyled, maxWidth = "full", ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Form, {
2447
2586
  ...props,
2587
+ ref,
2448
2588
  className: (0, __marigold_system.cn)(__marigold_system.maxWidth[maxWidth], unstyled && "contents")
2449
- });
2589
+ }));
2450
2590
 
2451
2591
  //#endregion
2452
2592
  //#region src/Grid/GridArea.tsx
@@ -2459,13 +2599,14 @@ const GridArea = ({ name, children }) => /* @__PURE__ */ (0, react_jsx_runtime.j
2459
2599
  //#region src/Grid/Grid.tsx
2460
2600
  const parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
2461
2601
  const parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
2462
- const Grid = ({ children, areas, columns, rows, alignX, alignY, height = "auto", space = 0,...props }) => {
2602
+ const Grid = ({ children, areas, columns, rows, alignX, alignY, height = "auto", space = 0, ...props }) => {
2463
2603
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2464
- className: (0, __marigold_system.cn)("grid", alignX && __marigold_system.alignment?.horizontal?.alignmentX[alignX], alignY && __marigold_system.alignment?.horizontal?.alignmentY[alignY], __marigold_system.gapSpace[space], __marigold_system.height[height]),
2604
+ className: (0, __marigold_system.cn)("grid gap-(--space)", alignX && __marigold_system.alignment?.horizontal?.alignmentX[alignX], alignY && __marigold_system.alignment?.horizontal?.alignmentY[alignY], __marigold_system.height[height]),
2465
2605
  style: {
2466
2606
  gridTemplateAreas: parseGridAreas(areas),
2467
2607
  gridTemplateColumns: parseTemplateValue(columns),
2468
- gridTemplateRows: parseTemplateValue(rows)
2608
+ gridTemplateRows: parseTemplateValue(rows),
2609
+ ...(0, __marigold_system.createSpacingVar)("space", `${space}`)
2469
2610
  },
2470
2611
  ...props,
2471
2612
  children
@@ -2475,7 +2616,7 @@ Grid.Area = GridArea;
2475
2616
 
2476
2617
  //#endregion
2477
2618
  //#region src/Headline/Headline.tsx
2478
- const _Headline = ({ variant, size: size$1, children, align = "left", color, level = "1",...props }) => {
2619
+ const _Headline = ({ variant, size: size$1, children, align = "left", color, level = "1", lineHeight, ...props }) => {
2479
2620
  const classNames$2 = (0, __marigold_system.useClassNames)({
2480
2621
  component: "Headline",
2481
2622
  variant,
@@ -2484,7 +2625,7 @@ const _Headline = ({ variant, size: size$1, children, align = "left", color, lev
2484
2625
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Heading, {
2485
2626
  level: Number(level),
2486
2627
  ...props,
2487
- className: (0, __marigold_system.cn)(classNames$2, "max-w-(--maxHeadlineWidth)", __marigold_system.textAlign[align]),
2628
+ className: (0, __marigold_system.cn)(classNames$2, "max-w-(--maxHeadlineWidth)", __marigold_system.textAlign[align], lineHeight && __marigold_system.lineHeight[lineHeight]),
2488
2629
  style: { color: color && (0, __marigold_system.ensureCssVar)(color, "color") },
2489
2630
  children
2490
2631
  });
@@ -2496,9 +2637,10 @@ const inlineAlignmentY = {
2496
2637
  ...__marigold_system.alignment.horizontal.alignmentY,
2497
2638
  input: "items-end [&:has([slot=description])]:items-end [&:has([slot=description])_>*:not(:has([slot=description]))]:mb-6 [&:has([slot=errorMessage])_>*:not(:has([slot=errorMessage]))]:mb-6"
2498
2639
  };
2499
- const Inline = ({ space = 0, noWrap, alignX, alignY, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2640
+ const Inline = ({ space = 0, noWrap, alignX, alignY, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2500
2641
  ...props,
2501
- className: (0, __marigold_system.cn)("flex", !noWrap && "flex-wrap", __marigold_system.gapSpace[space], alignX && __marigold_system.alignment?.horizontal?.alignmentX[alignX], alignY && inlineAlignmentY[alignY]),
2642
+ className: (0, __marigold_system.cn)("flex gap-(--space)", !noWrap && "flex-wrap", alignX && __marigold_system.alignment?.horizontal?.alignmentX[alignX], alignY && inlineAlignmentY[alignY]),
2643
+ style: (0, __marigold_system.createSpacingVar)("space", `${space}`),
2502
2644
  children
2503
2645
  });
2504
2646
 
@@ -2511,7 +2653,7 @@ const Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, react
2511
2653
 
2512
2654
  //#endregion
2513
2655
  //#region src/Link/Link.tsx
2514
- const _Link = (0, react.forwardRef)(({ variant, size: size$1, disabled, children,...props }, ref) => {
2656
+ const _Link = (0, react.forwardRef)(({ variant, size: size$1, disabled, children, ...props }, ref) => {
2515
2657
  const classNames$2 = (0, __marigold_system.useClassNames)({
2516
2658
  component: "Link",
2517
2659
  variant,
@@ -2528,7 +2670,7 @@ const _Link = (0, react.forwardRef)(({ variant, size: size$1, disabled, children
2528
2670
 
2529
2671
  //#endregion
2530
2672
  //#region src/LinkButton/LinkButton.tsx
2531
- const _LinkButton = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, fullWidth,...props }, ref) => {
2673
+ const _LinkButton = (0, react.forwardRef)(({ children, variant, size: size$1, disabled, fullWidth, ...props }, ref) => {
2532
2674
  const classNames$2 = (0, __marigold_system.useClassNames)({
2533
2675
  component: "Button",
2534
2676
  variant,
@@ -2550,7 +2692,7 @@ const useListContext = () => (0, react.useContext)(ListContext);
2550
2692
 
2551
2693
  //#endregion
2552
2694
  //#region src/List/ListItem.tsx
2553
- const ListItem = ({ children,...props }) => {
2695
+ const ListItem = ({ children, ...props }) => {
2554
2696
  const { classNames: classNames$2 } = useListContext();
2555
2697
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
2556
2698
  ...props,
@@ -2561,7 +2703,7 @@ const ListItem = ({ children,...props }) => {
2561
2703
 
2562
2704
  //#endregion
2563
2705
  //#region src/List/List.tsx
2564
- const List = ({ as = "ul", children, variant, size: size$1,...props }) => {
2706
+ const List = ({ as = "ul", children, variant, size: size$1, ...props }) => {
2565
2707
  const Component$1 = as;
2566
2708
  const classNames$2 = (0, __marigold_system.useClassNames)({
2567
2709
  component: "List",
@@ -2581,7 +2723,7 @@ List.Item = ListItem;
2581
2723
 
2582
2724
  //#endregion
2583
2725
  //#region src/icons/EllipsisVertical.tsx
2584
- const EllipsisVertical = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2726
+ const EllipsisVertical = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2585
2727
  xmlns: "http://www.w3.org/2000/svg",
2586
2728
  width: size$1,
2587
2729
  height: size$1,
@@ -2614,7 +2756,7 @@ const EllipsisVertical = ({ size: size$1 = 24, className,...props }) => /* @__PU
2614
2756
 
2615
2757
  //#endregion
2616
2758
  //#region src/Menu/MenuItem.tsx
2617
- const _MenuItem = ({ children, variant, size: size$1,...props }) => {
2759
+ const _MenuItem = ({ children, variant, size: size$1, ...props }) => {
2618
2760
  const classNames$2 = (0, __marigold_system.useClassNames)({
2619
2761
  component: "Menu",
2620
2762
  variant,
@@ -2629,7 +2771,7 @@ const _MenuItem = ({ children, variant, size: size$1,...props }) => {
2629
2771
 
2630
2772
  //#endregion
2631
2773
  //#region src/Menu/MenuSection.tsx
2632
- const _MenuSection = ({ children, title,...props }) => {
2774
+ const _MenuSection = ({ children, title, ...props }) => {
2633
2775
  const className = (0, __marigold_system.useClassNames)({ component: "Menu" });
2634
2776
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.MenuSection, {
2635
2777
  ...props,
@@ -2642,12 +2784,14 @@ const _MenuSection = ({ children, title,...props }) => {
2642
2784
 
2643
2785
  //#endregion
2644
2786
  //#region src/Menu/Menu.tsx
2645
- const _Menu = ({ children, label, variant, size: size$1, disabled, open, placement, "aria-label": ariaLabel,...props }) => {
2787
+ const _Menu = ({ children, label, variant, size: size$1, disabled, open, placement, "aria-label": ariaLabel, ...props }) => {
2646
2788
  const classNames$2 = (0, __marigold_system.useClassNames)({
2647
2789
  component: "Menu",
2648
2790
  variant,
2649
2791
  size: size$1
2650
2792
  });
2793
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
2794
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
2651
2795
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.MenuTrigger, {
2652
2796
  ...props,
2653
2797
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
@@ -2655,7 +2799,18 @@ const _Menu = ({ children, label, variant, size: size$1, disabled, open, placeme
2655
2799
  "aria-label": ariaLabel,
2656
2800
  isDisabled: disabled,
2657
2801
  children: label
2658
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, {
2802
+ }), isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
2803
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: label }),
2804
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Content, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Menu, {
2805
+ ...props,
2806
+ className: classNames$2.container,
2807
+ children
2808
+ }) }),
2809
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
2810
+ slot: "close",
2811
+ children: stringFormatter.format("close")
2812
+ }) })
2813
+ ] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, {
2659
2814
  open,
2660
2815
  placement,
2661
2816
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Menu, {
@@ -2671,7 +2826,7 @@ _Menu.Section = _MenuSection;
2671
2826
 
2672
2827
  //#endregion
2673
2828
  //#region src/Menu/ActionMenu.tsx
2674
- const ActionMenu = ({ children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Menu, {
2829
+ const ActionMenu = ({ children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Menu, {
2675
2830
  ...props,
2676
2831
  label: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EllipsisVertical, {}),
2677
2832
  children
@@ -2830,7 +2985,7 @@ function _objectWithoutProperties$1(e$1, t$1) {
2830
2985
  }
2831
2986
 
2832
2987
  //#endregion
2833
- //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
2988
+ //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
2834
2989
  var _excluded$6 = [
2835
2990
  "defaultInputValue",
2836
2991
  "defaultMenuIsOpen",
@@ -3868,7 +4023,15 @@ var createCache = function createCache$1(options$1) {
3868
4023
 
3869
4024
  //#endregion
3870
4025
  //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
3871
- var require_react_is_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js": ((exports) => {
4026
+ /** @license React v16.13.1
4027
+ * react-is.production.min.js
4028
+ *
4029
+ * Copyright (c) Facebook, Inc. and its affiliates.
4030
+ *
4031
+ * This source code is licensed under the MIT license found in the
4032
+ * LICENSE file in the root directory of this source tree.
4033
+ */
4034
+ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3872
4035
  var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w$1 = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
3873
4036
  function z(a) {
3874
4037
  if ("object" === typeof a && null !== a) {
@@ -3951,12 +4114,21 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJS({ "../../node_m
3951
4114
  return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w$1 || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
3952
4115
  };
3953
4116
  exports.typeOf = z;
3954
- }) });
4117
+ }));
3955
4118
 
3956
4119
  //#endregion
3957
4120
  //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
3958
- var require_react_is_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js": ((exports) => {
4121
+ /** @license React v16.13.1
4122
+ * react-is.development.js
4123
+ *
4124
+ * Copyright (c) Facebook, Inc. and its affiliates.
4125
+ *
4126
+ * This source code is licensed under the MIT license found in the
4127
+ * LICENSE file in the root directory of this source tree.
4128
+ */
4129
+ var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => {
3959
4130
  if (process.env.NODE_ENV !== "production") (function() {
4131
+ "use strict";
3960
4132
  var hasSymbol = typeof Symbol === "function" && Symbol.for;
3961
4133
  var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
3962
4134
  var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
@@ -4093,18 +4265,18 @@ var require_react_is_development = /* @__PURE__ */ __commonJS({ "../../node_modu
4093
4265
  exports.isValidElementType = isValidElementType;
4094
4266
  exports.typeOf = typeOf;
4095
4267
  })();
4096
- }) });
4268
+ }));
4097
4269
 
4098
4270
  //#endregion
4099
4271
  //#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
4100
- var require_react_is = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js": ((exports, module) => {
4272
+ var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4101
4273
  if (process.env.NODE_ENV === "production") module.exports = require_react_is_production_min();
4102
4274
  else module.exports = require_react_is_development();
4103
- }) });
4275
+ }));
4104
4276
 
4105
4277
  //#endregion
4106
4278
  //#region ../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
4107
- var require_hoist_non_react_statics_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": ((exports, module) => {
4279
+ var require_hoist_non_react_statics_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4108
4280
  var reactIs = require_react_is();
4109
4281
  /**
4110
4282
  * Copyright 2015, Yahoo! Inc.
@@ -4183,7 +4355,7 @@ var require_hoist_non_react_statics_cjs = /* @__PURE__ */ __commonJS({ "../../no
4183
4355
  return targetComponent;
4184
4356
  }
4185
4357
  module.exports = hoistNonReactStatics;
4186
- }) });
4358
+ }));
4187
4359
 
4188
4360
  //#endregion
4189
4361
  //#region ../../node_modules/.pnpm/@emotion+utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js
@@ -4419,7 +4591,7 @@ function serializeStyles(args, registered, mergedProps) {
4419
4591
  }
4420
4592
 
4421
4593
  //#endregion
4422
- //#region ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.2.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
4594
+ //#region ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.2.3/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
4423
4595
  var isBrowser$1 = typeof document !== "undefined";
4424
4596
  var syncFallback = function syncFallback$1(create) {
4425
4597
  return create();
@@ -4429,7 +4601,7 @@ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : use
4429
4601
  var useInsertionEffectWithLayoutFallback = useInsertionEffect || react.useLayoutEffect;
4430
4602
 
4431
4603
  //#endregion
4432
- //#region ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.2.2_react@19.2.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
4604
+ //#region ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.2.9_react@19.2.3/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
4433
4605
  var isDevelopment = false;
4434
4606
  var isBrowser = typeof document !== "undefined";
4435
4607
  var EmotionCacheContext = /* @__PURE__ */ react.createContext(typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({ key: "css" }) : null);
@@ -4498,7 +4670,7 @@ var Emotion$1 = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
4498
4670
 
4499
4671
  //#endregion
4500
4672
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/extends.js
4501
- var require_extends = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/extends.js": ((exports, module) => {
4673
+ var require_extends = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4502
4674
  function _extends$1() {
4503
4675
  return module.exports = _extends$1 = Object.assign ? Object.assign.bind() : function(n$1) {
4504
4676
  for (var e$1 = 1; e$1 < arguments.length; e$1++) {
@@ -4509,12 +4681,12 @@ var require_extends = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@ba
4509
4681
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends$1.apply(null, arguments);
4510
4682
  }
4511
4683
  module.exports = _extends$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
4512
- }) });
4684
+ }));
4513
4685
 
4514
4686
  //#endregion
4515
- //#region ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.2.2_react@19.2.0/node_modules/@emotion/react/dist/emotion-react.esm.js
4516
- var import_extends = /* @__PURE__ */ __toESM(require_extends());
4517
- var import_hoist_non_react_statics_cjs = /* @__PURE__ */ __toESM(require_hoist_non_react_statics_cjs());
4687
+ //#region ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.2.9_react@19.2.3/node_modules/@emotion/react/dist/emotion-react.esm.js
4688
+ var import_extends = require_extends();
4689
+ var import_hoist_non_react_statics_cjs = require_hoist_non_react_statics_cjs();
4518
4690
  var jsx = function jsx$1(type, props) {
4519
4691
  var args = arguments;
4520
4692
  if (props == null || !hasOwn.call(props, "css")) return react.createElement.apply(void 0, args);
@@ -4525,9 +4697,9 @@ var jsx = function jsx$1(type, props) {
4525
4697
  for (var i$1 = 2; i$1 < argsLength; i$1++) createElementArgArray[i$1] = args[i$1];
4526
4698
  return react.createElement.apply(null, createElementArgArray);
4527
4699
  };
4528
- (function(_jsx$156) {
4700
+ (function(_jsx$162) {
4529
4701
  var JSX;
4530
- (function(_JSX) {})(JSX || (JSX = _jsx$156.JSX || (_jsx$156.JSX = {})));
4702
+ (function(_JSX) {})(JSX || (JSX = _jsx$162.JSX || (_jsx$162.JSX = {})));
4531
4703
  })(jsx || (jsx = {}));
4532
4704
  function css$2() {
4533
4705
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
@@ -4865,11 +5037,11 @@ function autoUpdate(reference, floating, update, options$1) {
4865
5037
  }
4866
5038
 
4867
5039
  //#endregion
4868
- //#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.2_react@19.2.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
5040
+ //#region ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@19.2.9_react@19.2.3/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
4869
5041
  var index = typeof document !== "undefined" ? react.useLayoutEffect : function noop$1() {};
4870
5042
 
4871
5043
  //#endregion
4872
- //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-select/dist/index-641ee5b8.esm.js
5044
+ //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-select/dist/index-641ee5b8.esm.js
4873
5045
  var _excluded$4 = [
4874
5046
  "className",
4875
5047
  "clearValue",
@@ -5551,9 +5723,9 @@ var groupCSS = function groupCSS$1(_ref$1, unstyled) {
5551
5723
  paddingTop: spacing.baseUnit * 2
5552
5724
  };
5553
5725
  };
5554
- var Group$1 = function Group$3(props) {
5555
- var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames$1 = props.getClassNames, Heading$6 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
5556
- return jsx("div", _extends({}, getStyleProps(props, "group", { group: true }), innerProps), jsx(Heading$6, _extends({}, headingProps, {
5726
+ var Group$4 = function Group$6(props) {
5727
+ var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames$1 = props.getClassNames, Heading$7 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
5728
+ return jsx("div", _extends({}, getStyleProps(props, "group", { group: true }), innerProps), jsx(Heading$7, _extends({}, headingProps, {
5557
5729
  selectProps,
5558
5730
  theme,
5559
5731
  getStyles,
@@ -5583,7 +5755,7 @@ var GroupHeading = function GroupHeading$1(props) {
5583
5755
  var innerProps = _objectWithoutProperties$1(_cleanCommonProps, _excluded$1);
5584
5756
  return jsx("div", _extends({}, getStyleProps(props, "groupHeading", { "group-heading": true }), innerProps));
5585
5757
  };
5586
- var Group$1$1 = Group$1;
5758
+ var Group$1$1 = Group$4;
5587
5759
  var _excluded$5 = [
5588
5760
  "innerRef",
5589
5761
  "isDisabled",
@@ -5695,7 +5867,7 @@ function MultiValueRemove$1(_ref5) {
5695
5867
  }
5696
5868
  var MultiValue$1 = function MultiValue(props) {
5697
5869
  var children = props.children, components$1 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps$1 = props.removeProps, selectProps = props.selectProps;
5698
- var Container$1 = components$1.Container, Label$2 = components$1.Label, Remove = components$1.Remove;
5870
+ var Container$1 = components$1.Container, Label$1 = components$1.Label, Remove = components$1.Remove;
5699
5871
  return jsx(Container$1, {
5700
5872
  data,
5701
5873
  innerProps: _objectSpread2$1(_objectSpread2$1({}, getStyleProps(props, "multiValue", {
@@ -5703,7 +5875,7 @@ var MultiValue$1 = function MultiValue(props) {
5703
5875
  "multi-value--is-disabled": isDisabled
5704
5876
  })), innerProps),
5705
5877
  selectProps
5706
- }, jsx(Label$2, {
5878
+ }, jsx(Label$1, {
5707
5879
  data,
5708
5880
  innerProps: _objectSpread2$1({}, getStyleProps(props, "multiValueLabel", { "multi-value__label": true })),
5709
5881
  selectProps
@@ -5811,7 +5983,7 @@ var defaultComponents = function defaultComponents$1(props) {
5811
5983
 
5812
5984
  //#endregion
5813
5985
  //#region ../../node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.cjs.js
5814
- var require_memoize_one_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.cjs.js": ((exports, module) => {
5986
+ var require_memoize_one_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5815
5987
  var safeIsNaN = Number.isNaN || function ponyfill(value) {
5816
5988
  return typeof value === "number" && value !== value;
5817
5989
  };
@@ -5846,10 +6018,10 @@ var require_memoize_one_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.
5846
6018
  return memoized;
5847
6019
  }
5848
6020
  module.exports = memoizeOne$1;
5849
- }) });
6021
+ }));
5850
6022
 
5851
6023
  //#endregion
5852
- //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-select/dist/Select-ef7c0426.esm.js
6024
+ //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-select/dist/Select-ef7c0426.esm.js
5853
6025
  var import_memoize_one_cjs = /* @__PURE__ */ __toESM(require_memoize_one_cjs());
5854
6026
  function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
5855
6027
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
@@ -7779,7 +7951,7 @@ var Select$1 = /* @__PURE__ */ function(_Component) {
7779
7951
  key: "renderMenu",
7780
7952
  value: function renderMenu() {
7781
7953
  var _this4 = this;
7782
- var _this$getComponents7 = this.getComponents(), Group$3 = _this$getComponents7.Group, GroupHeading$1 = _this$getComponents7.GroupHeading, Menu$3 = _this$getComponents7.Menu, MenuList$1 = _this$getComponents7.MenuList, MenuPortal$1 = _this$getComponents7.MenuPortal, LoadingMessage$1 = _this$getComponents7.LoadingMessage, NoOptionsMessage$1 = _this$getComponents7.NoOptionsMessage, Option = _this$getComponents7.Option;
7954
+ var _this$getComponents7 = this.getComponents(), Group$6 = _this$getComponents7.Group, GroupHeading$1 = _this$getComponents7.GroupHeading, Menu$3 = _this$getComponents7.Menu, MenuList$1 = _this$getComponents7.MenuList, MenuPortal$1 = _this$getComponents7.MenuPortal, LoadingMessage$1 = _this$getComponents7.LoadingMessage, NoOptionsMessage$1 = _this$getComponents7.NoOptionsMessage, Option = _this$getComponents7.Option;
7783
7955
  var commonProps = this.commonProps;
7784
7956
  var focusedOption = this.state.focusedOption;
7785
7957
  var _this$props12 = this.props, captureMenuScroll = _this$props12.captureMenuScroll, inputValue = _this$props12.inputValue, isLoading = _this$props12.isLoading, loadingMessage = _this$props12.loadingMessage, minMenuHeight = _this$props12.minMenuHeight, maxMenuHeight = _this$props12.maxMenuHeight, menuIsOpen = _this$props12.menuIsOpen, menuPlacement = _this$props12.menuPlacement, menuPosition = _this$props12.menuPosition, menuPortalTarget = _this$props12.menuPortalTarget, menuShouldBlockScroll = _this$props12.menuShouldBlockScroll, menuShouldScrollIntoView = _this$props12.menuShouldScrollIntoView, noOptionsMessage = _this$props12.noOptionsMessage, onMenuScrollToTop = _this$props12.onMenuScrollToTop, onMenuScrollToBottom = _this$props12.onMenuScrollToBottom;
@@ -7822,7 +7994,7 @@ var Select$1 = /* @__PURE__ */ function(_Component) {
7822
7994
  var _data = item.data, options$1 = item.options, groupIndex = item.index;
7823
7995
  var groupId = "".concat(_this4.getElementId("group"), "-").concat(groupIndex);
7824
7996
  var headingId = "".concat(groupId, "-heading");
7825
- return /* @__PURE__ */ react.createElement(Group$3, _extends({}, commonProps, {
7997
+ return /* @__PURE__ */ react.createElement(Group$6, _extends({}, commonProps, {
7826
7998
  key: groupId,
7827
7999
  data: _data,
7828
8000
  options: options$1,
@@ -8032,7 +8204,7 @@ Select$1.defaultProps = defaultProps;
8032
8204
 
8033
8205
  //#endregion
8034
8206
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/typeof.js
8035
- var require_typeof = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/typeof.js": ((exports, module) => {
8207
+ var require_typeof = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8036
8208
  function _typeof$3(o) {
8037
8209
  "@babel/helpers - typeof";
8038
8210
  return module.exports = _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
@@ -8042,11 +8214,11 @@ var require_typeof = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@bab
8042
8214
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof$3(o);
8043
8215
  }
8044
8216
  module.exports = _typeof$3, module.exports.__esModule = true, module.exports["default"] = module.exports;
8045
- }) });
8217
+ }));
8046
8218
 
8047
8219
  //#endregion
8048
8220
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPrimitive.js
8049
- var require_toPrimitive = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPrimitive.js": ((exports, module) => {
8221
+ var require_toPrimitive = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8050
8222
  var _typeof$2 = require_typeof()["default"];
8051
8223
  function toPrimitive$1(t$1, r$1) {
8052
8224
  if ("object" != _typeof$2(t$1) || !t$1) return t$1;
@@ -8059,11 +8231,11 @@ var require_toPrimitive = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
8059
8231
  return ("string" === r$1 ? String : Number)(t$1);
8060
8232
  }
8061
8233
  module.exports = toPrimitive$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
8062
- }) });
8234
+ }));
8063
8235
 
8064
8236
  //#endregion
8065
8237
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPropertyKey.js
8066
- var require_toPropertyKey = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toPropertyKey.js": ((exports, module) => {
8238
+ var require_toPropertyKey = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8067
8239
  var _typeof$1 = require_typeof()["default"];
8068
8240
  var toPrimitive = require_toPrimitive();
8069
8241
  function toPropertyKey$2(t$1) {
@@ -8071,11 +8243,11 @@ var require_toPropertyKey = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
8071
8243
  return "symbol" == _typeof$1(i$1) ? i$1 : i$1 + "";
8072
8244
  }
8073
8245
  module.exports = toPropertyKey$2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8074
- }) });
8246
+ }));
8075
8247
 
8076
8248
  //#endregion
8077
8249
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/defineProperty.js
8078
- var require_defineProperty = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/defineProperty.js": ((exports, module) => {
8250
+ var require_defineProperty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8079
8251
  var toPropertyKey$1 = require_toPropertyKey();
8080
8252
  function _defineProperty(e$1, r$1, t$1) {
8081
8253
  return (r$1 = toPropertyKey$1(r$1)) in e$1 ? Object.defineProperty(e$1, r$1, {
@@ -8086,11 +8258,11 @@ var require_defineProperty = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
8086
8258
  }) : e$1[r$1] = t$1, e$1;
8087
8259
  }
8088
8260
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
8089
- }) });
8261
+ }));
8090
8262
 
8091
8263
  //#endregion
8092
8264
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectSpread2.js
8093
- var require_objectSpread2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectSpread2.js": ((exports, module) => {
8265
+ var require_objectSpread2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8094
8266
  var defineProperty = require_defineProperty();
8095
8267
  function ownKeys(e$1, r$1) {
8096
8268
  var t$1 = Object.keys(e$1);
@@ -8114,20 +8286,20 @@ var require_objectSpread2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
8114
8286
  return e$1;
8115
8287
  }
8116
8288
  module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
8117
- }) });
8289
+ }));
8118
8290
 
8119
8291
  //#endregion
8120
8292
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js
8121
- var require_arrayWithHoles = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithHoles.js": ((exports, module) => {
8293
+ var require_arrayWithHoles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8122
8294
  function _arrayWithHoles(r$1) {
8123
8295
  if (Array.isArray(r$1)) return r$1;
8124
8296
  }
8125
8297
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
8126
- }) });
8298
+ }));
8127
8299
 
8128
8300
  //#endregion
8129
8301
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
8130
- var require_iterableToArrayLimit = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": ((exports, module) => {
8302
+ var require_iterableToArrayLimit = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8131
8303
  function _iterableToArrayLimit(r$1, l$1) {
8132
8304
  var t$1 = null == r$1 ? null : "undefined" != typeof Symbol && r$1[Symbol.iterator] || r$1["@@iterator"];
8133
8305
  if (null != t$1) {
@@ -8150,22 +8322,22 @@ var require_iterableToArrayLimit = /* @__PURE__ */ __commonJS({ "../../node_modu
8150
8322
  }
8151
8323
  }
8152
8324
  module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
8153
- }) });
8325
+ }));
8154
8326
 
8155
8327
  //#endregion
8156
8328
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js
8157
- var require_arrayLikeToArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayLikeToArray.js": ((exports, module) => {
8329
+ var require_arrayLikeToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8158
8330
  function _arrayLikeToArray(r$1, a) {
8159
8331
  (null == a || a > r$1.length) && (a = r$1.length);
8160
8332
  for (var e$1 = 0, n$1 = Array(a); e$1 < a; e$1++) n$1[e$1] = r$1[e$1];
8161
8333
  return n$1;
8162
8334
  }
8163
8335
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8164
- }) });
8336
+ }));
8165
8337
 
8166
8338
  //#endregion
8167
8339
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
8168
- var require_unsupportedIterableToArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": ((exports, module) => {
8340
+ var require_unsupportedIterableToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8169
8341
  var arrayLikeToArray$1 = require_arrayLikeToArray();
8170
8342
  function _unsupportedIterableToArray(r$1, a) {
8171
8343
  if (r$1) {
@@ -8175,20 +8347,20 @@ var require_unsupportedIterableToArray = /* @__PURE__ */ __commonJS({ "../../nod
8175
8347
  }
8176
8348
  }
8177
8349
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8178
- }) });
8350
+ }));
8179
8351
 
8180
8352
  //#endregion
8181
8353
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableRest.js
8182
- var require_nonIterableRest = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableRest.js": ((exports, module) => {
8354
+ var require_nonIterableRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8183
8355
  function _nonIterableRest() {
8184
8356
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8185
8357
  }
8186
8358
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
8187
- }) });
8359
+ }));
8188
8360
 
8189
8361
  //#endregion
8190
8362
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/slicedToArray.js
8191
- var require_slicedToArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/slicedToArray.js": ((exports, module) => {
8363
+ var require_slicedToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8192
8364
  var arrayWithHoles = require_arrayWithHoles();
8193
8365
  var iterableToArrayLimit = require_iterableToArrayLimit();
8194
8366
  var unsupportedIterableToArray$1 = require_unsupportedIterableToArray();
@@ -8197,11 +8369,11 @@ var require_slicedToArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
8197
8369
  return arrayWithHoles(r$1) || iterableToArrayLimit(r$1, e$1) || unsupportedIterableToArray$1(r$1, e$1) || nonIterableRest();
8198
8370
  }
8199
8371
  module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8200
- }) });
8372
+ }));
8201
8373
 
8202
8374
  //#endregion
8203
8375
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
8204
- var require_objectWithoutPropertiesLoose = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js": ((exports, module) => {
8376
+ var require_objectWithoutPropertiesLoose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8205
8377
  function _objectWithoutPropertiesLoose(r$1, e$1) {
8206
8378
  if (null == r$1) return {};
8207
8379
  var t$1 = {};
@@ -8212,11 +8384,11 @@ var require_objectWithoutPropertiesLoose = /* @__PURE__ */ __commonJS({ "../../n
8212
8384
  return t$1;
8213
8385
  }
8214
8386
  module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
8215
- }) });
8387
+ }));
8216
8388
 
8217
8389
  //#endregion
8218
8390
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
8219
- var require_objectWithoutProperties = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/objectWithoutProperties.js": ((exports, module) => {
8391
+ var require_objectWithoutProperties = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8220
8392
  var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
8221
8393
  function _objectWithoutProperties(e$1, t$1) {
8222
8394
  if (null == e$1) return {};
@@ -8228,20 +8400,20 @@ var require_objectWithoutProperties = /* @__PURE__ */ __commonJS({ "../../node_m
8228
8400
  return i$1;
8229
8401
  }
8230
8402
  module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
8231
- }) });
8403
+ }));
8232
8404
 
8233
8405
  //#endregion
8234
8406
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/classCallCheck.js
8235
- var require_classCallCheck = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/classCallCheck.js": ((exports, module) => {
8407
+ var require_classCallCheck = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8236
8408
  function _classCallCheck(a, n$1) {
8237
8409
  if (!(a instanceof n$1)) throw new TypeError("Cannot call a class as a function");
8238
8410
  }
8239
8411
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
8240
- }) });
8412
+ }));
8241
8413
 
8242
8414
  //#endregion
8243
8415
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createClass.js
8244
- var require_createClass = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createClass.js": ((exports, module) => {
8416
+ var require_createClass = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8245
8417
  var toPropertyKey = require_toPropertyKey();
8246
8418
  function _defineProperties(e$1, r$1) {
8247
8419
  for (var t$1 = 0; t$1 < r$1.length; t$1++) {
@@ -8253,22 +8425,22 @@ var require_createClass = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
8253
8425
  return r$1 && _defineProperties(e$1.prototype, r$1), t$1 && _defineProperties(e$1, t$1), Object.defineProperty(e$1, "prototype", { writable: !1 }), e$1;
8254
8426
  }
8255
8427
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
8256
- }) });
8428
+ }));
8257
8429
 
8258
8430
  //#endregion
8259
8431
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js
8260
- var require_setPrototypeOf = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/setPrototypeOf.js": ((exports, module) => {
8432
+ var require_setPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8261
8433
  function _setPrototypeOf(t$1, e$1) {
8262
8434
  return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t$2, e$2) {
8263
8435
  return t$2.__proto__ = e$2, t$2;
8264
8436
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t$1, e$1);
8265
8437
  }
8266
8438
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
8267
- }) });
8439
+ }));
8268
8440
 
8269
8441
  //#endregion
8270
8442
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/inherits.js
8271
- var require_inherits = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/inherits.js": ((exports, module) => {
8443
+ var require_inherits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8272
8444
  var setPrototypeOf = require_setPrototypeOf();
8273
8445
  function _inherits(t$1, e$1) {
8274
8446
  if ("function" != typeof e$1 && null !== e$1) throw new TypeError("Super expression must either be null or a function");
@@ -8279,22 +8451,22 @@ var require_inherits = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@b
8279
8451
  } }), Object.defineProperty(t$1, "prototype", { writable: !1 }), e$1 && setPrototypeOf(t$1, e$1);
8280
8452
  }
8281
8453
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
8282
- }) });
8454
+ }));
8283
8455
 
8284
8456
  //#endregion
8285
8457
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js
8286
- var require_getPrototypeOf = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/getPrototypeOf.js": ((exports, module) => {
8458
+ var require_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8287
8459
  function _getPrototypeOf(t$1) {
8288
8460
  return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t$2) {
8289
8461
  return t$2.__proto__ || Object.getPrototypeOf(t$2);
8290
8462
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t$1);
8291
8463
  }
8292
8464
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
8293
- }) });
8465
+ }));
8294
8466
 
8295
8467
  //#endregion
8296
8468
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
8297
- var require_isNativeReflectConstruct = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": ((exports, module) => {
8469
+ var require_isNativeReflectConstruct = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8298
8470
  function _isNativeReflectConstruct() {
8299
8471
  try {
8300
8472
  var t$1 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
@@ -8304,21 +8476,21 @@ var require_isNativeReflectConstruct = /* @__PURE__ */ __commonJS({ "../../node_
8304
8476
  }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
8305
8477
  }
8306
8478
  module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
8307
- }) });
8479
+ }));
8308
8480
 
8309
8481
  //#endregion
8310
8482
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js
8311
- var require_assertThisInitialized = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/assertThisInitialized.js": ((exports, module) => {
8483
+ var require_assertThisInitialized = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8312
8484
  function _assertThisInitialized(e$1) {
8313
8485
  if (void 0 === e$1) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8314
8486
  return e$1;
8315
8487
  }
8316
8488
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
8317
- }) });
8489
+ }));
8318
8490
 
8319
8491
  //#endregion
8320
8492
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
8321
- var require_possibleConstructorReturn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": ((exports, module) => {
8493
+ var require_possibleConstructorReturn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8322
8494
  var _typeof = require_typeof()["default"];
8323
8495
  var assertThisInitialized = require_assertThisInitialized();
8324
8496
  function _possibleConstructorReturn(t$1, e$1) {
@@ -8327,11 +8499,11 @@ var require_possibleConstructorReturn = /* @__PURE__ */ __commonJS({ "../../node
8327
8499
  return assertThisInitialized(t$1);
8328
8500
  }
8329
8501
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
8330
- }) });
8502
+ }));
8331
8503
 
8332
8504
  //#endregion
8333
8505
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createSuper.js
8334
- var require_createSuper = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/createSuper.js": ((exports, module) => {
8506
+ var require_createSuper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8335
8507
  var getPrototypeOf = require_getPrototypeOf();
8336
8508
  var isNativeReflectConstruct = require_isNativeReflectConstruct();
8337
8509
  var possibleConstructorReturn = require_possibleConstructorReturn();
@@ -8347,39 +8519,39 @@ var require_createSuper = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
8347
8519
  };
8348
8520
  }
8349
8521
  module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
8350
- }) });
8522
+ }));
8351
8523
 
8352
8524
  //#endregion
8353
8525
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
8354
- var require_arrayWithoutHoles = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": ((exports, module) => {
8526
+ var require_arrayWithoutHoles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8355
8527
  var arrayLikeToArray = require_arrayLikeToArray();
8356
8528
  function _arrayWithoutHoles(r$1) {
8357
8529
  if (Array.isArray(r$1)) return arrayLikeToArray(r$1);
8358
8530
  }
8359
8531
  module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
8360
- }) });
8532
+ }));
8361
8533
 
8362
8534
  //#endregion
8363
8535
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArray.js
8364
- var require_iterableToArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/iterableToArray.js": ((exports, module) => {
8536
+ var require_iterableToArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8365
8537
  function _iterableToArray(r$1) {
8366
8538
  if ("undefined" != typeof Symbol && null != r$1[Symbol.iterator] || null != r$1["@@iterator"]) return Array.from(r$1);
8367
8539
  }
8368
8540
  module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8369
- }) });
8541
+ }));
8370
8542
 
8371
8543
  //#endregion
8372
8544
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js
8373
- var require_nonIterableSpread = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/nonIterableSpread.js": ((exports, module) => {
8545
+ var require_nonIterableSpread = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8374
8546
  function _nonIterableSpread() {
8375
8547
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8376
8548
  }
8377
8549
  module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
8378
- }) });
8550
+ }));
8379
8551
 
8380
8552
  //#endregion
8381
8553
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toConsumableArray.js
8382
- var require_toConsumableArray = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/toConsumableArray.js": ((exports, module) => {
8554
+ var require_toConsumableArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8383
8555
  var arrayWithoutHoles = require_arrayWithoutHoles();
8384
8556
  var iterableToArray = require_iterableToArray();
8385
8557
  var unsupportedIterableToArray = require_unsupportedIterableToArray();
@@ -8388,30 +8560,30 @@ var require_toConsumableArray = /* @__PURE__ */ __commonJS({ "../../node_modules
8388
8560
  return arrayWithoutHoles(r$1) || iterableToArray(r$1) || unsupportedIterableToArray(r$1) || nonIterableSpread();
8389
8561
  }
8390
8562
  module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8391
- }) });
8563
+ }));
8392
8564
 
8393
8565
  //#endregion
8394
8566
  //#region ../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
8395
- var require_taggedTemplateLiteral = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@babel+runtime@7.28.2/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js": ((exports, module) => {
8567
+ var require_taggedTemplateLiteral = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8396
8568
  function _taggedTemplateLiteral(e$1, t$1) {
8397
8569
  return t$1 || (t$1 = e$1.slice(0)), Object.freeze(Object.defineProperties(e$1, { raw: { value: Object.freeze(t$1) } }));
8398
8570
  }
8399
8571
  module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports;
8400
- }) });
8401
-
8402
- //#endregion
8403
- //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-select/dist/react-select.esm.js
8404
- var import_objectSpread2 = /* @__PURE__ */ __toESM(require_objectSpread2());
8405
- var import_slicedToArray = /* @__PURE__ */ __toESM(require_slicedToArray());
8406
- var import_objectWithoutProperties = /* @__PURE__ */ __toESM(require_objectWithoutProperties());
8407
- var import_classCallCheck = /* @__PURE__ */ __toESM(require_classCallCheck());
8408
- var import_createClass = /* @__PURE__ */ __toESM(require_createClass());
8409
- var import_inherits = /* @__PURE__ */ __toESM(require_inherits());
8410
- var import_createSuper = /* @__PURE__ */ __toESM(require_createSuper());
8411
- var import_toConsumableArray = /* @__PURE__ */ __toESM(require_toConsumableArray());
8412
- var import_typeof = /* @__PURE__ */ __toESM(require_typeof());
8413
- var import_taggedTemplateLiteral = /* @__PURE__ */ __toESM(require_taggedTemplateLiteral());
8414
- var import_defineProperty = /* @__PURE__ */ __toESM(require_defineProperty());
8572
+ }));
8573
+
8574
+ //#endregion
8575
+ //#region ../../node_modules/.pnpm/react-select@5.10.2_@types+react@19.2.9_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-select/dist/react-select.esm.js
8576
+ var import_objectSpread2 = require_objectSpread2();
8577
+ var import_slicedToArray = require_slicedToArray();
8578
+ var import_objectWithoutProperties = require_objectWithoutProperties();
8579
+ var import_classCallCheck = require_classCallCheck();
8580
+ var import_createClass = require_createClass();
8581
+ var import_inherits = require_inherits();
8582
+ var import_createSuper = require_createSuper();
8583
+ var import_toConsumableArray = require_toConsumableArray();
8584
+ var import_typeof = require_typeof();
8585
+ var import_taggedTemplateLiteral = require_taggedTemplateLiteral();
8586
+ var import_defineProperty = require_defineProperty();
8415
8587
  var StateManagedSelect$1 = /* @__PURE__ */ (0, react.forwardRef)(function(props, ref) {
8416
8588
  var baseSelectProps = useStateManager(props);
8417
8589
  return /* @__PURE__ */ react.createElement(Select$1, _extends({ ref }, baseSelectProps));
@@ -8434,7 +8606,7 @@ const propsToBeRemoved = [
8434
8606
  "isHidden",
8435
8607
  "cx"
8436
8608
  ];
8437
- const Input$1 = ({ innerRef, placeholder, hasValue,...props }) => {
8609
+ const Input$1 = ({ innerRef, placeholder, hasValue, ...props }) => {
8438
8610
  const inputProps = Object.entries(props).reduce((acc, [key, value]) => {
8439
8611
  if (!propsToBeRemoved.includes(key)) acc[key] = value;
8440
8612
  return acc;
@@ -8465,7 +8637,10 @@ const getClassNames = (classNames$2) => ({
8465
8637
  placeholder: () => "hidden",
8466
8638
  valueContainer: () => classNames$2.valueContainer
8467
8639
  });
8468
- const Multiselect = ({ disabled, readOnly = false, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size: size$1, variant, placeholder, description, emptyState, onChange, onSelectionChange, width,...rest }) => {
8640
+ /**
8641
+ * @deprecated Use `TagField` instead. Will be removed in a future major version.
8642
+ */
8643
+ const Multiselect = ({ disabled, readOnly = false, items, selectedItems, defaultSelectedItems, defaultValue, error, errorMessage, size: size$1, variant, placeholder, description, emptyState, onChange, onSelectionChange, width, ...rest }) => {
8469
8644
  const classNames$2 = (0, __marigold_system.useClassNames)({
8470
8645
  component: "MultiSelect",
8471
8646
  size: size$1,
@@ -8508,7 +8683,7 @@ const Multiselect = ({ disabled, readOnly = false, items, selectedItems, default
8508
8683
  "data-invalid": error,
8509
8684
  "data-readonly": readOnly,
8510
8685
  children: [
8511
- props.label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Label, {
8686
+ props.label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Label, {
8512
8687
  ...labelProps,
8513
8688
  children: props.label
8514
8689
  }),
@@ -8521,7 +8696,7 @@ const Multiselect = ({ disabled, readOnly = false, items, selectedItems, default
8521
8696
  position: "absolute",
8522
8697
  top: "100%",
8523
8698
  width: "100%",
8524
- zIndex: 1
8699
+ zIndex: 20
8525
8700
  }),
8526
8701
  valueContainer: (base) => ({ ...base }),
8527
8702
  container: (base) => ({
@@ -8554,7 +8729,7 @@ const Multiselect = ({ disabled, readOnly = false, items, selectedItems, default
8554
8729
  })
8555
8730
  }
8556
8731
  }),
8557
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HelpText, {
8732
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.HelpText, {
8558
8733
  description,
8559
8734
  errorMessage
8560
8735
  })
@@ -8565,7 +8740,7 @@ const Multiselect = ({ disabled, readOnly = false, items, selectedItems, default
8565
8740
 
8566
8741
  //#endregion
8567
8742
  //#region src/icons/Plus.tsx
8568
- const Plus = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
8743
+ const Plus = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
8569
8744
  xmlns: "http://www.w3.org/2000/svg",
8570
8745
  width: size$1,
8571
8746
  height: size$1,
@@ -8582,18 +8757,18 @@ const Plus = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0,
8582
8757
 
8583
8758
  //#endregion
8584
8759
  //#region src/NumberField/StepButton.tsx
8585
- const _StepButton = ({ direction, className,...props }) => {
8586
- const Icon$2 = direction === "up" ? Plus : Minus;
8760
+ const _StepButton = ({ direction, className, ...props }) => {
8761
+ const Icon$1 = direction === "up" ? Plus : require_Checkbox.Minus;
8587
8762
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
8588
8763
  className: (0, __marigold_system.cn)(["flex items-center justify-center", "cursor-pointer data-disabled:cursor-not-allowed"], className),
8589
8764
  ...props,
8590
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$2, { size: 16 })
8765
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$1, { size: 16 })
8591
8766
  });
8592
8767
  };
8593
8768
 
8594
8769
  //#endregion
8595
8770
  //#region src/NumberField/NumberField.tsx
8596
- const _NumberField = (0, react.forwardRef)(({ variant, size: size$1, disabled, required, readOnly, error, hideStepper,...rest }, ref) => {
8771
+ const _NumberField = (0, react.forwardRef)(({ variant, size: size$1, disabled, required, readOnly, error, hideStepper, ...rest }, ref) => {
8597
8772
  const classNames$2 = (0, __marigold_system.useClassNames)({
8598
8773
  component: "NumberField",
8599
8774
  size: size$1,
@@ -8607,13 +8782,13 @@ const _NumberField = (0, react.forwardRef)(({ variant, size: size$1, disabled, r
8607
8782
  ...rest
8608
8783
  };
8609
8784
  const showStepper = !hideStepper && !readOnly;
8610
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
8785
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
8611
8786
  as: react_aria_components.NumberField,
8612
8787
  ...props,
8613
8788
  "data-readonly": readOnly ? "true" : void 0,
8614
8789
  "data-stepper": showStepper ? "true" : void 0,
8615
8790
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Group, {
8616
- className: (0, __marigold_system.cn)("flex items-stretch", classNames$2.group),
8791
+ className: (0, __marigold_system.cn)("flex w-(--field-width) max-w-full min-w-0 items-stretch", classNames$2.group),
8617
8792
  children: [
8618
8793
  showStepper && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_StepButton, {
8619
8794
  className: classNames$2.stepper,
@@ -8652,7 +8827,7 @@ const NavigationButton = (props) => {
8652
8827
  const ref = (0, react.useRef)(null);
8653
8828
  const { navigationButton } = (0, __marigold_system.useClassNames)({ component: "Pagination" });
8654
8829
  let { buttonProps } = (0, __react_aria_button.useButton)(props, ref);
8655
- let { children, isSelected, isDisabled, registerRef, controlLabel, position: position$1,...rest } = props;
8830
+ let { children, isSelected, isDisabled, controlLabel, position: position$1, ...rest } = props;
8656
8831
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
8657
8832
  ref,
8658
8833
  ...buttonProps,
@@ -8718,17 +8893,17 @@ const InnerPagination = ({ currentPage, pageSize, totalPages, pageRange, setCurr
8718
8893
  const isFirstPage = currentPage === 1;
8719
8894
  const isLastPage = currentPage === totalPages || totalPages === 0;
8720
8895
  const isFirstRender = (0, react.useRef)(true);
8896
+ const handlePageChange = (0, react.useCallback)((newPage) => {
8897
+ setCurrentPage(newPage);
8898
+ if (onChange) onChange(newPage);
8899
+ }, [setCurrentPage, onChange]);
8721
8900
  (0, react.useEffect)(() => {
8722
8901
  if (isFirstRender.current) {
8723
8902
  isFirstRender.current = false;
8724
8903
  return;
8725
8904
  }
8726
8905
  handlePageChange(1);
8727
- }, [pageSize]);
8728
- const handlePageChange = (newPage) => {
8729
- setCurrentPage(newPage);
8730
- if (onChange) onChange(newPage);
8731
- };
8906
+ }, [pageSize, handlePageChange]);
8732
8907
  const { icon, container } = (0, __marigold_system.useClassNames)({ component: "Pagination" });
8733
8908
  const handleKeyDown = (onEnter) => (e$1) => {
8734
8909
  if (e$1.key === "ArrowRight") {
@@ -8775,7 +8950,7 @@ const InnerPagination = ({ currentPage, pageSize, totalPages, pageRange, setCurr
8775
8950
  })
8776
8951
  ] });
8777
8952
  };
8778
- const _Pagination = ({ defaultPage = 1, page, totalItems, pageSize,...props }) => {
8953
+ const _Pagination = ({ defaultPage = 1, page, totalItems, pageSize, ...props }) => {
8779
8954
  const [currentPage, setCurrentPage] = (0, react.useState)(page ?? defaultPage);
8780
8955
  const totalPages = Math.ceil(totalItems / pageSize);
8781
8956
  const pageRange = usePageRange({
@@ -8835,13 +9010,13 @@ const useRadioGroupContext = () => (0, react.useContext)(RadioGroupContext);
8835
9010
  const CollapsibleGroup = ({ children }) => {
8836
9011
  const state = (0, react.useContext)(react_aria_components.RadioGroupStateContext);
8837
9012
  if (!children || children.length === 0) return null;
8838
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(More, {
9013
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.More, {
8839
9014
  defaultExpanded: children.some((child) => (0, react.isValidElement)(child) && state.selectedValue === child.props.value),
8840
9015
  showCount: true,
8841
9016
  children
8842
9017
  });
8843
9018
  };
8844
- const _RadioGroup = ({ variant, size: size$1, label, error, disabled, required, readOnly, description, errorMessage, orientation = "vertical", children, width, collapseAt,...rest }) => {
9019
+ const _RadioGroup = ({ variant, size: size$1, label, error, disabled, required, readOnly, description, errorMessage, orientation = "vertical", children, width, collapseAt, ...rest }) => {
8845
9020
  const classNames$2 = (0, __marigold_system.useClassNames)({
8846
9021
  component: "Radio",
8847
9022
  variant,
@@ -8854,8 +9029,8 @@ const _RadioGroup = ({ variant, size: size$1, label, error, disabled, required,
8854
9029
  isInvalid: error,
8855
9030
  ...rest
8856
9031
  };
8857
- const [visibleChildren, collapsedChildren] = splitChildren(children, collapseAt);
8858
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
9032
+ const [visibleChildren, collapsedChildren] = require_Checkbox.splitChildren(children, collapseAt);
9033
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
8859
9034
  as: react_aria_components.RadioGroup,
8860
9035
  width,
8861
9036
  label,
@@ -8883,13 +9058,13 @@ const _RadioGroup = ({ variant, size: size$1, label, error, disabled, required,
8883
9058
 
8884
9059
  //#endregion
8885
9060
  //#region src/Radio/Radio.tsx
8886
- const Icon = ({ checked, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9061
+ const Icon = ({ checked, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8887
9062
  className: (0, __marigold_system.cn)("flex h-4 w-4 items-center justify-center rounded-full border p-1", className),
8888
9063
  "aria-hidden": "true",
8889
9064
  ...props,
8890
9065
  children: checked ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "size-full rounded-full bg-current" }) : null
8891
9066
  });
8892
- const _Radio = (0, react.forwardRef)(({ value, disabled, width, children,...props }, ref) => {
9067
+ const _Radio = (0, react.forwardRef)(({ value, disabled, width, children, ...props }, ref) => {
8893
9068
  const { variant, size: size$1, width: groupWidth } = useRadioGroupContext();
8894
9069
  const classNames$2 = (0, __marigold_system.useClassNames)({
8895
9070
  component: "Radio",
@@ -8915,17 +9090,17 @@ _Radio.Group = _RadioGroup;
8915
9090
 
8916
9091
  //#endregion
8917
9092
  //#region src/Scrollable/Scrollable.tsx
8918
- const Scrollable = ({ children, width = "full", height,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9093
+ const Scrollable = ({ children, width = "full", height, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8919
9094
  ...props,
8920
- className: (0, __marigold_system.cn)(["sticky h-(--height) overflow-auto overscroll-none", __marigold_system.width[width]]),
9095
+ className: (0, __marigold_system.cn)(["sticky h-(--height) overflow-auto overscroll-auto", __marigold_system.width[width]]),
8921
9096
  style: (0, __marigold_system.createVar)({ height }),
8922
9097
  children
8923
9098
  });
8924
9099
 
8925
9100
  //#endregion
8926
9101
  //#region src/SearchField/SearchField.tsx
8927
- const _SearchField = (0, react.forwardRef)(({ disabled, required, readOnly, error, action,...rest }, ref) => {
8928
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
9102
+ const _SearchField = (0, react.forwardRef)(({ disabled, required, readOnly, error, ...rest }, ref) => {
9103
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
8929
9104
  as: react_aria_components.SearchField,
8930
9105
  ...rest,
8931
9106
  isDisabled: disabled,
@@ -8941,7 +9116,7 @@ const _SearchField = (0, react.forwardRef)(({ disabled, required, readOnly, erro
8941
9116
 
8942
9117
  //#endregion
8943
9118
  //#region src/icons/CircleAlert.tsx
8944
- const CircleAlert = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9119
+ const CircleAlert = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
8945
9120
  xmlns: "http://www.w3.org/2000/svg",
8946
9121
  width: size$1,
8947
9122
  height: size$1,
@@ -8976,7 +9151,7 @@ const CircleAlert = ({ size: size$1 = 24, className,...props }) => /* @__PURE__
8976
9151
 
8977
9152
  //#endregion
8978
9153
  //#region src/icons/CircleCheck.tsx
8979
- const CircleCheck = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9154
+ const CircleCheck = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
8980
9155
  xmlns: "http://www.w3.org/2000/svg",
8981
9156
  width: size$1,
8982
9157
  height: size$1,
@@ -9026,16 +9201,16 @@ const icons$1 = {
9026
9201
  success: CircleCheck,
9027
9202
  info: Info,
9028
9203
  warning: CircleAlert,
9029
- error: TriangleAlert
9204
+ error: require_Checkbox.TriangleAlert
9030
9205
  };
9031
- const SectionMessage = ({ variant = "info", size: size$1, children, closeButton, close, onCloseChange,...props }) => {
9206
+ const SectionMessage = ({ variant = "info", size: size$1, children, closeButton, close, onCloseChange, ...props }) => {
9032
9207
  const buttonRef = (0, react.useRef)(null);
9033
9208
  const classNames$2 = (0, __marigold_system.useClassNames)({
9034
9209
  component: "SectionMessage",
9035
9210
  variant,
9036
9211
  size: size$1
9037
9212
  });
9038
- const Icon$2 = icons$1[variant];
9213
+ const Icon$1 = icons$1[variant];
9039
9214
  const [internalVisible, setInternalVisible] = (0, react.useState)(true);
9040
9215
  const isCurrentlyVisible = close ?? internalVisible;
9041
9216
  const { buttonProps } = (0, __react_aria_button.useButton)(props, buttonRef);
@@ -9053,7 +9228,7 @@ const SectionMessage = ({ variant = "info", size: size$1, children, closeButton,
9053
9228
  children: [
9054
9229
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9055
9230
  className: (0, __marigold_system.cn)("[grid-area:icon]", classNames$2.icon),
9056
- children: Icon$2 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$2, { size: "20" })
9231
+ children: Icon$1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$1, { size: "20" })
9057
9232
  }),
9058
9233
  closeButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseButton, {
9059
9234
  ...buttonProps,
@@ -9072,12 +9247,19 @@ SectionMessage.Content = SectionMessageContent;
9072
9247
 
9073
9248
  //#endregion
9074
9249
  //#region src/Select/Select.tsx
9075
- const SelectBase = (0, react.forwardRef)(function Select$2({ disabled, required, items, variant, size: size$1, error, open, children,...rest }, ref) {
9250
+ const SelectBase = (0, react.forwardRef)(function Select$2({ disabled, required, items, variant, size: size$1, error, open, label, children, selectionMode, onChange, ...rest }, ref) {
9251
+ const isSingleSelect = !selectionMode || selectionMode === "single";
9252
+ const [trayOpen, setTrayOpen] = (0, react.useState)(false);
9076
9253
  const props = {
9077
9254
  isDisabled: disabled,
9078
9255
  isInvalid: error,
9079
9256
  isOpen: open,
9080
9257
  isRequired: required,
9258
+ selectionMode,
9259
+ onChange: (...args) => {
9260
+ onChange?.(...args);
9261
+ if (isSingleSelect) setTrayOpen(false);
9262
+ },
9081
9263
  ...rest
9082
9264
  };
9083
9265
  const classNames$2 = (0, __marigold_system.useClassNames)({
@@ -9085,22 +9267,45 @@ const SelectBase = (0, react.forwardRef)(function Select$2({ disabled, required,
9085
9267
  variant,
9086
9268
  size: size$1
9087
9269
  });
9088
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
9270
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
9271
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
9272
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
9089
9273
  as: react_aria_components.Select,
9090
9274
  ref,
9091
9275
  variant,
9092
9276
  size: size$1,
9277
+ label,
9093
9278
  ...props,
9094
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(IconButton, {
9095
- className: (0, __marigold_system.cn)("flex w-full items-center justify-between gap-1 overflow-hidden", classNames$2.select),
9096
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SelectValue, { className: "truncate text-nowrap [&_[slot=description]]:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, {
9279
+ children: isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray.Trigger, {
9280
+ open: trayOpen,
9281
+ onOpenChange: setTrayOpen,
9282
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(IconButton, {
9283
+ className: (0, __marigold_system.cn)("flex w-(--field-width) max-w-full min-w-0 items-center justify-between gap-1 overflow-hidden", classNames$2.select),
9284
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SelectValue, { className: "truncate text-nowrap **:[[slot=description]]:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, {
9285
+ size: "16",
9286
+ className: classNames$2.icon
9287
+ })]
9288
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
9289
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: label }),
9290
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Content, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
9291
+ items,
9292
+ children
9293
+ }) }),
9294
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
9295
+ slot: "close",
9296
+ children: stringFormatter.format("close")
9297
+ }) })
9298
+ ] })]
9299
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Button, {
9300
+ className: (0, __marigold_system.cn)("flex w-(--field-width) max-w-full min-w-0 items-center justify-between gap-1", classNames$2.select),
9301
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SelectValue, { className: "truncate text-nowrap **:[[slot=description]]:hidden" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, {
9097
9302
  size: "16",
9098
9303
  className: classNames$2.icon
9099
9304
  })]
9100
9305
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
9101
9306
  items,
9102
9307
  children
9103
- }) })]
9308
+ }) })] })
9104
9309
  });
9105
9310
  });
9106
9311
  const Select = Object.assign(SelectBase, {
@@ -9124,14 +9329,14 @@ const SelectListAction = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime
9124
9329
  //#region src/SelectList/SelectListItem.tsx
9125
9330
  const SelectionIndicator = ({ selectionMode }) => {
9126
9331
  switch (selectionMode) {
9127
- case "multiple": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Checkbox, { slot: "selection" });
9128
- case "single": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Check, {
9332
+ case "multiple": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Checkbox, { slot: "selection" });
9333
+ case "single": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.Check, {
9129
9334
  size: 12,
9130
9335
  className: "invisible hidden"
9131
9336
  });
9132
9337
  }
9133
9338
  };
9134
- const _SelectListItem = (0, react.forwardRef)(({ children, disabled,...props }, ref) => {
9339
+ const _SelectListItem = (0, react.forwardRef)(({ children, disabled, ...props }, ref) => {
9135
9340
  let textValue = typeof children === "string" ? children : void 0;
9136
9341
  const { classNames: classNames$2 } = useSelectListContext();
9137
9342
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.GridListItem, {
@@ -9149,7 +9354,7 @@ const _SelectListItem = (0, react.forwardRef)(({ children, disabled,...props },
9149
9354
 
9150
9355
  //#endregion
9151
9356
  //#region src/SelectList/SelectList.tsx
9152
- const _SelectList = (0, react.forwardRef)(({ onChange,...rest }, ref) => {
9357
+ const _SelectList = (0, react.forwardRef)(({ onChange, ...rest }, ref) => {
9153
9358
  const classNames$2 = (0, __marigold_system.useClassNames)({ component: "ListBox" });
9154
9359
  const props = {
9155
9360
  onSelectionChange: onChange,
@@ -9174,7 +9379,7 @@ _SelectList.Action = SelectListAction;
9174
9379
 
9175
9380
  //#endregion
9176
9381
  //#region src/Slider/Slider.tsx
9177
- const _Slider = (0, react.forwardRef)(({ variant, size: size$1, width = "full", disabled, label, name, thumbLabels,...rest }, ref) => {
9382
+ const _Slider = (0, react.forwardRef)(({ variant, size: size$1, width = "full", disabled, label, name, thumbLabels, ...rest }, ref) => {
9178
9383
  const classNames$2 = (0, __marigold_system.useClassNames)({
9179
9384
  component: "Slider",
9180
9385
  variant,
@@ -9185,13 +9390,13 @@ const _Slider = (0, react.forwardRef)(({ variant, size: size$1, width = "full",
9185
9390
  isDisabled: disabled,
9186
9391
  ...rest
9187
9392
  };
9188
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
9393
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Checkbox.FieldBase, {
9189
9394
  as: react_aria_components.Slider,
9190
9395
  className: (0, __marigold_system.cn)("grid grid-cols-[auto_1fr] gap-y-1", classNames$2.container, __marigold_system.width[width]),
9191
9396
  ref,
9192
9397
  ...props,
9193
9398
  children: [
9194
- label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Label, { children: label }),
9399
+ label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Label, { children: label }),
9195
9400
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SliderOutput, {
9196
9401
  className: (0, __marigold_system.cn)("flex justify-end", classNames$2.output),
9197
9402
  children: ({ state }) => state.values.map((_, i$1) => state.getThumbValueLabel(i$1)).join(" - ")
@@ -9228,11 +9433,12 @@ const Split = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9228
9433
 
9229
9434
  //#endregion
9230
9435
  //#region src/Stack/Stack.tsx
9231
- const Stack = ({ children, space = 0, stretch = false, alignX, alignY, asList = false,...props }) => {
9436
+ const Stack = ({ children, space = "0", stretch = false, alignX = "stretch", alignY, asList = false, ...props }) => {
9232
9437
  const Component$1 = asList ? "ul" : "div";
9233
9438
  const stackChildren = asList ? react.Children.map(children, (child) => child != null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: child }) : null) : children;
9234
9439
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component$1, {
9235
- className: (0, __marigold_system.cn)("flex flex-col", __marigold_system.gapSpace[space], alignX && __marigold_system.alignment?.vertical?.alignmentX[alignX], alignY && __marigold_system.alignment?.vertical?.alignmentY[alignY], stretch && "h-full w-full"),
9440
+ className: (0, __marigold_system.cn)("flex flex-col gap-y-(--space)", alignX && __marigold_system.alignment?.vertical?.alignmentX[alignX], alignY && __marigold_system.alignment?.vertical?.alignmentY[alignY], stretch && "size-full"),
9441
+ style: (0, __marigold_system.createSpacingVar)("space", `${space}`),
9236
9442
  ...props,
9237
9443
  children: stackChildren
9238
9444
  });
@@ -9240,7 +9446,7 @@ const Stack = ({ children, space = 0, stretch = false, alignX, alignY, asList =
9240
9446
 
9241
9447
  //#endregion
9242
9448
  //#region src/Switch/Switch.tsx
9243
- const _Switch = (0, react.forwardRef)(({ variant, size: size$1, width = "full", label, selected, disabled, readOnly,...rest }, ref) => {
9449
+ const _Switch = (0, react.forwardRef)(({ variant, size: size$1, width = "full", label, selected, disabled, readOnly, ...rest }, ref) => {
9244
9450
  const classNames$2 = (0, __marigold_system.useClassNames)({
9245
9451
  component: "Switch",
9246
9452
  size: size$1,
@@ -9253,7 +9459,7 @@ const _Switch = (0, react.forwardRef)(({ variant, size: size$1, width = "full",
9253
9459
  ...rest,
9254
9460
  ref,
9255
9461
  className: (0, __marigold_system.cn)(__marigold_system.width[width], "group/switch", "flex items-center gap-[1ch]", classNames$2.container),
9256
- children: [label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Label, {
9462
+ children: [label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Label, {
9257
9463
  elementType: "span",
9258
9464
  children: label
9259
9465
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -9267,326 +9473,475 @@ const _Switch = (0, react.forwardRef)(({ variant, size: size$1, width = "full",
9267
9473
  });
9268
9474
 
9269
9475
  //#endregion
9270
- //#region src/Table/Context.tsx
9271
- const TableContext = (0, react.createContext)({});
9272
- const useTableContext = () => (0, react.useContext)(TableContext);
9273
-
9274
- //#endregion
9275
- //#region src/Table/TableBody.tsx
9276
- const TableBody = ({ children, className, emptyState }) => {
9277
- const { rowGroupProps } = (0, __react_aria_table.useTableRowGroup)();
9278
- const { state, classNames: classNames$2 } = useTableContext();
9279
- if (state.collection.size === 0 && emptyState) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
9280
- className,
9281
- "data-rac": true,
9282
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
9283
- className: classNames$2?.row,
9284
- role: "row",
9285
- "data-rac": true,
9286
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
9287
- className: classNames$2?.cell,
9288
- colSpan: state.collection.columnCount,
9289
- role: "rowheader",
9290
- "data-rac": true,
9291
- children: emptyState()
9292
- })
9476
+ //#region src/Table/Context.tsx
9477
+ const TableContext = (0, react.createContext)(null);
9478
+ const useTableContext = () => {
9479
+ const context = (0, react.useContext)(TableContext);
9480
+ if (context === null) throw new Error("useTableContext must be used within a <Table> component");
9481
+ return context;
9482
+ };
9483
+
9484
+ //#endregion
9485
+ //#region src/Table/TableBody.tsx
9486
+ const TableBody = ({ emptyState, ...props }) => {
9487
+ const { classNames: classNames$2 } = useTableContext();
9488
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TableBody, {
9489
+ ...props,
9490
+ className: (0, __marigold_system.cn)(classNames$2.body),
9491
+ renderEmptyState: emptyState
9492
+ });
9493
+ };
9494
+
9495
+ //#endregion
9496
+ //#region src/Table/TableCellContent.tsx
9497
+ /**
9498
+ * Prevents event propagation for table cells, to make their content
9499
+ * selectable without interfering with row selection.
9500
+ */
9501
+ const stopPropagationProps = {
9502
+ onMouseDown: (e$1) => e$1.stopPropagation(),
9503
+ onPointerDown: (e$1) => e$1.stopPropagation(),
9504
+ onTouchStart: (e$1) => e$1.stopPropagation()
9505
+ };
9506
+ const TableCellContent = ({ columnIndex, alignX, cellOverflow, children, className, allowTextSelection }) => {
9507
+ const { overflow: tableOverflow, allowTextSelection: tableAllowTextSelection } = useTableContext();
9508
+ const state = (0, react.useContext)(react_aria_components.TableStateContext);
9509
+ const overflow = cellOverflow ?? tableOverflow;
9510
+ const selectable = allowTextSelection ?? tableAllowTextSelection;
9511
+ const columnAlign = columnIndex ? state?.collection.columns[columnIndex].props.alignX : void 0;
9512
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9513
+ "data-cell-content": "",
9514
+ className: (0, __marigold_system.cn)(__marigold_system.textAlign[alignX || columnAlign || "left"], overflow === "truncate" ? "truncate" : "wrap-break-word", selectable && "cursor-text select-text", className),
9515
+ tabIndex: selectable ? -1 : void 0,
9516
+ ...selectable ? stopPropagationProps : {},
9517
+ children
9518
+ });
9519
+ };
9520
+
9521
+ //#endregion
9522
+ //#region src/Table/TableCell.tsx
9523
+ const TableCell = ({ children, alignX, overflow: cellOverflow, ...props }) => {
9524
+ const { classNames: classNames$2, alignY = "middle" } = useTableContext();
9525
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Cell, {
9526
+ className: (0, __marigold_system.cn)(classNames$2.cell, __marigold_system.verticalAlign[alignY]),
9527
+ ...props,
9528
+ children: ({ columnIndex }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableCellContent, {
9529
+ columnIndex,
9530
+ alignX,
9531
+ cellOverflow,
9532
+ children
9533
+ })
9534
+ });
9535
+ };
9536
+
9537
+ //#endregion
9538
+ //#region src/icons/SortAscending.tsx
9539
+ const SortAscending = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__marigold_system.SVG, {
9540
+ width: size$1,
9541
+ height: size$1,
9542
+ viewBox: "0 0 24 24",
9543
+ fill: "none",
9544
+ strokeLinecap: "round",
9545
+ strokeLinejoin: "round",
9546
+ strokeWidth: 2,
9547
+ className: (0, __marigold_system.cn)("flex-none shrink-0 stroke-current", className),
9548
+ ...props,
9549
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 8l4-4 4 4M7 4v16m4-8h4m-4 4h7m-7 4h10" })
9550
+ });
9551
+
9552
+ //#endregion
9553
+ //#region src/icons/SortDescending.tsx
9554
+ const SortDescending = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__marigold_system.SVG, {
9555
+ width: size$1,
9556
+ height: size$1,
9557
+ viewBox: "0 0 24 24",
9558
+ fill: "none",
9559
+ strokeLinecap: "round",
9560
+ strokeLinejoin: "round",
9561
+ strokeWidth: 2,
9562
+ className: (0, __marigold_system.cn)("flex-none shrink-0 stroke-current", className),
9563
+ ...props,
9564
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M3 16l4 4 4-4m-4 4V4m4 0h10M11 8h7m-7 4h4" })
9565
+ });
9566
+
9567
+ //#endregion
9568
+ //#region src/Table/TableColumn.tsx
9569
+ const isStaticWidth = (width) => !`${width}`.endsWith("fr");
9570
+ const ensureWidth = (width, minWdith) => {
9571
+ if (minWdith) return minWdith;
9572
+ return isStaticWidth(width) ? width : minWdith;
9573
+ };
9574
+ const TableColumn = ({ alignX = "left", width, minWidth, rowHeader, ...props }) => {
9575
+ const { classNames: classNames$2 } = useTableContext();
9576
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Column, {
9577
+ className: classNames$2.column,
9578
+ width,
9579
+ minWidth: ensureWidth(width, minWidth),
9580
+ isRowHeader: rowHeader,
9581
+ alignX,
9582
+ ...props,
9583
+ children: ({ allowsSorting, sortDirection }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9584
+ className: (0, __marigold_system.cn)("flex items-center gap-1", __marigold_system.alignment.horizontal.alignmentX[alignX]),
9585
+ children: [allowsSorting && sortDirection != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9586
+ "aria-hidden": "true",
9587
+ children: sortDirection === "ascending" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortAscending, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortDescending, { size: 14 })
9588
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Group, {
9589
+ className: "cursor-default outline-none",
9590
+ role: "presentation",
9591
+ tabIndex: -1,
9592
+ children: props.children
9593
+ })]
9293
9594
  })
9294
9595
  });
9295
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
9296
- ...rowGroupProps,
9297
- className,
9298
- "data-rac": true,
9299
- children
9300
- });
9301
9596
  };
9302
9597
 
9303
9598
  //#endregion
9304
- //#region src/Table/TableCell.tsx
9305
- const TableCell = ({ cell, align = "left", alignY = "middle" }) => {
9306
- const ref = (0, react.useRef)(null);
9307
- const { interactive, state, classNames: classNames$2 } = useTableContext();
9308
- const disabled = state.disabledKeys.has(cell.parentKey);
9309
- const { gridCellProps } = (0, __react_aria_table.useTableCell)({ node: cell }, state, ref);
9310
- const cellProps = interactive ? gridCellProps : {
9311
- ...gridCellProps,
9312
- onMouseDown: (e$1) => e$1.stopPropagation(),
9313
- onPointerDown: (e$1) => e$1.stopPropagation()
9314
- };
9315
- const { focusProps, isFocusVisible } = (0, __react_aria_focus.useFocusRing)();
9316
- const stateProps = (0, __marigold_system.useStateProps)({
9317
- disabled,
9318
- focusVisible: isFocusVisible
9599
+ //#region src/Table/TableDragPreview.tsx
9600
+ const TableDragPreview = ({ items, variant, size: size$1 }) => {
9601
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
9602
+ const classNames$2 = (0, __marigold_system.useClassNames)({
9603
+ component: "Table",
9604
+ variant,
9605
+ size: size$1
9319
9606
  });
9320
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
9321
- ref,
9322
- className: classNames$2?.cell,
9323
- ...(0, __react_aria_utils.mergeProps)(cellProps, focusProps),
9324
- ...stateProps,
9325
- align,
9326
- valign: alignY,
9327
- "data-rac": true,
9328
- children: cell.rendered
9607
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9608
+ className: (0, __marigold_system.cn)("flex transform-gpu items-center gap-2", classNames$2.dragPreview),
9609
+ children: [items[0]["text/plain"] ?? stringFormatter.format("items"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9610
+ className: classNames$2.dragPreviewCounter,
9611
+ children: items.length
9612
+ })]
9329
9613
  });
9330
9614
  };
9331
-
9332
- //#endregion
9333
- //#region src/Table/utils.ts
9334
- /**
9335
- * Map `react-aria` props to ours (no "is"-prefix)
9336
- */
9337
- const mapCheckboxProps = ({ checkboxProps: { isIndeterminate, isSelected, isDisabled, defaultSelected,...rest } }) => {
9338
- return { checkboxProps: {
9339
- disabled: isDisabled,
9340
- checked: isSelected,
9341
- defaultChecked: defaultSelected,
9342
- indeterminate: isIndeterminate,
9343
- ...rest
9344
- } };
9615
+ const renderDragPreview = (items) => {
9616
+ if (items.length > 1) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableDragPreview, { items });
9345
9617
  };
9346
9618
 
9347
9619
  //#endregion
9348
- //#region src/Table/TableCheckboxCell.tsx
9349
- const TableCheckboxCell = ({ cell, alignY = "middle" }) => {
9350
- const ref = (0, react.useRef)(null);
9351
- const { state, classNames: classNames$2 } = useTableContext();
9352
- const disabled = state.disabledKeys.has(cell.parentKey);
9353
- const { gridCellProps } = (0, __react_aria_table.useTableCell)({ node: cell }, state, ref);
9354
- const { checkboxProps } = mapCheckboxProps((0, __react_aria_table.useTableSelectionCheckbox)({ key: cell.parentKey }, state));
9355
- const { focusProps, isFocusVisible } = (0, __react_aria_focus.useFocusRing)();
9356
- const stateProps = (0, __marigold_system.useStateProps)({
9357
- disabled,
9358
- focusVisible: isFocusVisible
9359
- });
9360
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
9361
- ref,
9362
- className: (0, __marigold_system.cn)("leading-none", classNames$2?.cell),
9363
- ...(0, __react_aria_utils.mergeProps)(gridCellProps, focusProps),
9364
- ...stateProps,
9365
- valign: alignY,
9366
- "data-rac": true,
9367
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Checkbox, { ...checkboxProps })
9620
+ //#region src/Table/TableDropIndicator.tsx
9621
+ const TableDropIndicator = ({ size: size$1, variant, ...props }) => {
9622
+ const classNames$2 = (0, __marigold_system.useClassNames)({
9623
+ component: "Table",
9624
+ variant,
9625
+ size: size$1
9626
+ });
9627
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DropIndicator, {
9628
+ ...props,
9629
+ className: (0, __marigold_system.cn)("transform-gpu", classNames$2.dropIndicator)
9368
9630
  });
9369
9631
  };
9632
+ const renderDropIndicator = (target) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableDropIndicator, { target });
9370
9633
 
9371
9634
  //#endregion
9372
- //#region src/icons/SortDown.tsx
9373
- const SortDown = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__marigold_system.SVG, {
9374
- width: size$1,
9375
- height: size$1,
9376
- viewBox: "0 0 24 24",
9377
- className: (0, __marigold_system.cn)("flex-none shrink-0 fill-current", className),
9378
- ...props,
9379
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" })
9380
- });
9381
-
9382
- //#endregion
9383
- //#region src/icons/SortUp.tsx
9384
- const SortUp = ({ size: size$1 = 24, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__marigold_system.SVG, {
9635
+ //#region src/icons/Pencil.tsx
9636
+ const Pencil = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9637
+ xmlns: "http://www.w3.org/2000/svg",
9385
9638
  width: size$1,
9386
9639
  height: size$1,
9387
9640
  viewBox: "0 0 24 24",
9388
- className: (0, __marigold_system.cn)("flex-none shrink-0 fill-current", className),
9641
+ fill: "none",
9642
+ stroke: "currentColor",
9643
+ strokeWidth: "2",
9644
+ strokeLinecap: "round",
9645
+ strokeLinejoin: "round",
9646
+ className: (0, __marigold_system.cn)("shrink-0", className),
9389
9647
  ...props,
9390
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" })
9648
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m15 5 4 4" })]
9391
9649
  });
9392
9650
 
9393
9651
  //#endregion
9394
- //#region src/Table/TableColumnHeader.tsx
9395
- const TableColumnHeader = ({ column: column$1, width = "auto", align = "left" }) => {
9396
- const ref = (0, react.useRef)(null);
9397
- const { state, classNames: classNames$2 } = useTableContext();
9398
- const { columnHeaderProps } = (0, __react_aria_table.useTableColumnHeader)({ node: column$1 }, state, ref);
9399
- const { hoverProps, isHovered } = (0, __react_aria_interactions.useHover)({});
9400
- const { focusProps, isFocusVisible } = (0, __react_aria_focus.useFocusRing)();
9401
- const stateProps = (0, __marigold_system.useStateProps)({
9402
- hover: isHovered,
9403
- focusVisible: isFocusVisible
9404
- });
9405
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("th", {
9406
- colSpan: column$1.colspan,
9407
- ref,
9408
- className: (0, __marigold_system.cn)("whitespace-nowrap data-[react-aria-pressable=\"true\"]:cursor-pointer", __marigold_system.width[width], classNames$2?.header),
9409
- ...(0, __react_aria_utils.mergeProps)(columnHeaderProps, hoverProps, focusProps),
9410
- ...stateProps,
9411
- align,
9412
- "data-rac": true,
9413
- children: [column$1.rendered, column$1.props.allowsSorting && (state.sortDescriptor?.column === column$1.key ? state.sortDescriptor?.direction === "ascending" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9414
- className: "hidden",
9415
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortDown, { className: "inline-block" })
9416
- }))]
9652
+ //#region src/Table/TableEditableCell.tsx
9653
+ const EditableCellPopover = ({ cellRef, open, onOpenChange, className, children }) => {
9654
+ const popoverRef = (0, react.useRef)(null);
9655
+ const [triggerWidth, setTriggerWidth] = (0, react.useState)(0);
9656
+ const [tableWidth, setTableWidth] = (0, react.useState)(0);
9657
+ const [verticalOffset, setVerticalOffset] = (0, react.useState)(0);
9658
+ (0, react.useLayoutEffect)(() => {
9659
+ if (!open || !cellRef.current) return;
9660
+ const cell = cellRef.current;
9661
+ const rect = cell.getBoundingClientRect();
9662
+ const rowRect = cell.parentElement?.getBoundingClientRect();
9663
+ const offset$1 = (rowRect?.top ?? 0) - (rowRect?.bottom ?? 0);
9664
+ setTriggerWidth(rect.width);
9665
+ setVerticalOffset(offset$1);
9666
+ setTableWidth(cell.closest("[role=\"grid\"]")?.clientWidth ?? 0);
9667
+ }, [cellRef, open]);
9668
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Popover, {
9669
+ ref: popoverRef,
9670
+ isOpen: open,
9671
+ onOpenChange,
9672
+ triggerRef: cellRef,
9673
+ offset: verticalOffset,
9674
+ placement: "bottom start",
9675
+ style: {
9676
+ minWidth: `min(${triggerWidth}px, ${tableWidth}px)`,
9677
+ maxWidth: tableWidth
9678
+ },
9679
+ className,
9680
+ children
9681
+ });
9682
+ };
9683
+ const TableEditableCell = ({ children, field, saving = false, onSubmit, onCancel, disabled = false, action, alignX, overflow: cellOverflow }) => {
9684
+ const { classNames: classNames$2, allowTextSelection: tableAllowTextSelection, alignY = "middle" } = useTableContext();
9685
+ const { selectionMode } = (0, react_aria_components.useTableOptions)();
9686
+ const hasSelection = selectionMode !== "none";
9687
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
9688
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
9689
+ const [open, setOpen] = (0, react.useState)(false);
9690
+ const submittedRef = (0, react.useRef)(false);
9691
+ const cellRef = (0, react.useRef)(null);
9692
+ const formRef = (0, react.useRef)(null);
9693
+ const handleFormRef = (0, react.useCallback)((node$1) => {
9694
+ formRef.current = node$1;
9695
+ if (node$1) requestAnimationFrame(() => {
9696
+ const activeElement = (0, __react_aria_utils.getActiveElement)((0, __react_aria_utils.getOwnerDocument)(node$1));
9697
+ if (activeElement && (0, __react_aria_utils.nodeContains)(node$1, activeElement) && (activeElement instanceof HTMLInputElement || activeElement instanceof HTMLTextAreaElement) && typeof activeElement.select === "function") activeElement.select();
9698
+ });
9699
+ }, []);
9700
+ const handleSubmit = (e$1) => {
9701
+ e$1.preventDefault();
9702
+ submittedRef.current = true;
9703
+ onSubmit?.(e$1);
9704
+ setOpen(false);
9705
+ };
9706
+ const handleCancel = () => {
9707
+ submittedRef.current = true;
9708
+ onCancel?.();
9709
+ setOpen(false);
9710
+ };
9711
+ const handleOpenChange = (isOpen) => {
9712
+ if (!isOpen && !submittedRef.current) onCancel?.();
9713
+ submittedRef.current = false;
9714
+ setOpen(isOpen);
9715
+ };
9716
+ const renderField = () => typeof field === "function" ? field() : field;
9717
+ const cancelButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
9718
+ className: classNames$2.editCancel,
9719
+ onPress: handleCancel,
9720
+ "aria-label": isSmallScreen ? void 0 : stringFormatter.format("cancel"),
9721
+ children: isSmallScreen ? stringFormatter.format("cancel") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(X, {})
9722
+ });
9723
+ const saveButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
9724
+ className: classNames$2.editSave,
9725
+ type: "submit",
9726
+ isPending: saving,
9727
+ "aria-label": isSmallScreen ? void 0 : stringFormatter.format("save"),
9728
+ children: isSmallScreen ? stringFormatter.format("save") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.Check, {})
9729
+ });
9730
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Cell, {
9731
+ ref: cellRef,
9732
+ className: (0, __marigold_system.cn)(classNames$2.cell, __marigold_system.verticalAlign[alignY]),
9733
+ children: ({ columnIndex }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9734
+ className: "group/editable-cell flex items-center gap-1",
9735
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableCellContent, {
9736
+ columnIndex,
9737
+ alignX,
9738
+ cellOverflow,
9739
+ className: "min-w-0 flex-1",
9740
+ allowTextSelection: !hasSelection || tableAllowTextSelection,
9741
+ children
9742
+ }), !disabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9743
+ className: "shrink-0 opacity-0 not-[@media_((hover:_hover)_and_(pointer:_fine))]:opacity-100 [.group\\/editable-cell:has(:focus-visible)_&]:opacity-100 [[role=row]:hover_&]:opacity-100",
9744
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
9745
+ className: classNames$2.editTrigger,
9746
+ "aria-label": stringFormatter.format("edit"),
9747
+ onPress: () => setOpen(true),
9748
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Pencil, {})
9749
+ })
9750
+ })]
9751
+ }), isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Dialog, {
9752
+ open,
9753
+ onOpenChange: handleOpenChange,
9754
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_Form, {
9755
+ unstyled: true,
9756
+ ref: handleFormRef,
9757
+ action,
9758
+ onSubmit: handleSubmit,
9759
+ children: [
9760
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Dialog.Title, { children: stringFormatter.format("editCell") }),
9761
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Dialog.Content, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__react_aria_focus.FocusScope, {
9762
+ autoFocus: true,
9763
+ restoreFocus: true,
9764
+ children: renderField()
9765
+ }) }),
9766
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_Dialog.Actions, { children: [cancelButton, saveButton] })
9767
+ ]
9768
+ })
9769
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditableCellPopover, {
9770
+ cellRef,
9771
+ open,
9772
+ onOpenChange: handleOpenChange,
9773
+ className: classNames$2.editablePopover,
9774
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Form, {
9775
+ unstyled: true,
9776
+ ref: handleFormRef,
9777
+ action,
9778
+ onSubmit: handleSubmit,
9779
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__react_aria_focus.FocusScope, {
9780
+ autoFocus: true,
9781
+ children: [
9782
+ renderField(),
9783
+ cancelButton,
9784
+ saveButton
9785
+ ]
9786
+ })
9787
+ })
9788
+ })] })
9417
9789
  });
9418
9790
  };
9419
9791
 
9420
9792
  //#endregion
9421
9793
  //#region src/Table/TableHeader.tsx
9422
- const TableHeader = ({ stickyHeader, children }) => {
9423
- const { rowGroupProps } = (0, __react_aria_table.useTableRowGroup)();
9794
+ const TableHeader = ({ sticky, columns, children, ...props }) => {
9795
+ const { selectionBehavior, selectionMode, allowsDragging } = (0, react_aria_components.useTableOptions)();
9424
9796
  const { classNames: classNames$2 } = useTableContext();
9425
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
9426
- ...rowGroupProps,
9427
- className: (0, __marigold_system.cn)(classNames$2?.thead, stickyHeader ? "sticky [&_th]:sticky [&_th]:top-0" : ""),
9428
- "data-rac": true,
9429
- children
9797
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.TableHeader, {
9798
+ className: (0, __marigold_system.cn)(classNames$2.head, sticky && "sticky top-0 z-1"),
9799
+ ...props,
9800
+ children: [
9801
+ allowsDragging && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Column, {
9802
+ className: classNames$2.column,
9803
+ minWidth: 24,
9804
+ width: 24
9805
+ }),
9806
+ selectionBehavior === "toggle" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Column, {
9807
+ minWidth: 36,
9808
+ width: 36,
9809
+ className: classNames$2.column,
9810
+ children: selectionMode === "multiple" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Checkbox, { slot: "selection" })
9811
+ }),
9812
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Collection, {
9813
+ items: columns,
9814
+ children
9815
+ })
9816
+ ]
9430
9817
  });
9431
9818
  };
9432
9819
 
9433
9820
  //#endregion
9434
- //#region src/Table/TableHeaderRow.tsx
9435
- const TableHeaderRow = ({ item, className, children }) => {
9436
- const { state } = useTableContext();
9437
- const ref = (0, react.useRef)(null);
9438
- const { rowProps } = (0, __react_aria_table.useTableHeaderRow)({ node: item }, state, ref);
9439
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
9440
- ...rowProps,
9441
- className,
9442
- ref,
9443
- "data-rac": true,
9444
- children
9445
- });
9446
- };
9821
+ //#region src/icons/GripVertical.tsx
9822
+ const GripVertical = ({ size: size$1 = 24, className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
9823
+ xmlns: "http://www.w3.org/2000/svg",
9824
+ width: size$1,
9825
+ height: size$1,
9826
+ fill: "none",
9827
+ stroke: "currentColor",
9828
+ strokeLinecap: "round",
9829
+ strokeLinejoin: "round",
9830
+ strokeWidth: 2,
9831
+ viewBox: "0 0 24 24",
9832
+ className: (0, __marigold_system.cn)("shrink-0", className),
9833
+ ...props,
9834
+ children: [
9835
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9836
+ cx: 9,
9837
+ cy: 12,
9838
+ r: 1
9839
+ }),
9840
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9841
+ cx: 9,
9842
+ cy: 5,
9843
+ r: 1
9844
+ }),
9845
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9846
+ cx: 9,
9847
+ cy: 19,
9848
+ r: 1
9849
+ }),
9850
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9851
+ cx: 15,
9852
+ cy: 12,
9853
+ r: 1
9854
+ }),
9855
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9856
+ cx: 15,
9857
+ cy: 5,
9858
+ r: 1
9859
+ }),
9860
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
9861
+ cx: 15,
9862
+ cy: 19,
9863
+ r: 1
9864
+ })
9865
+ ]
9866
+ });
9447
9867
 
9448
9868
  //#endregion
9449
9869
  //#region src/Table/TableRow.tsx
9450
- const TableRow = ({ children, row }) => {
9451
- const ref = (0, react.useRef)(null);
9452
- const { interactive, state,...ctx } = useTableContext();
9453
- const { variant, size: size$1 } = row.props;
9870
+ const TableRow = ({ id, columns, children, variant: variantProp, size: sizeProp, ...otherProps }) => {
9871
+ let { selectionBehavior, allowsDragging } = (0, react_aria_components.useTableOptions)();
9872
+ const context = useTableContext();
9454
9873
  const classNames$2 = (0, __marigold_system.useClassNames)({
9455
9874
  component: "Table",
9456
- variant: variant || ctx.variant,
9457
- size: size$1 || ctx.size
9458
- });
9459
- const { rowProps, isPressed } = (0, __react_aria_table.useTableRow)({ node: row }, state, ref);
9460
- const disabled = state.disabledKeys.has(row.key);
9461
- const selected = state.selectionManager.isSelected(row.key);
9462
- const { focusProps, isFocusVisible } = (0, __react_aria_focus.useFocusRing)();
9463
- const { hoverProps, isHovered } = (0, __react_aria_interactions.useHover)({ isDisabled: disabled || !interactive });
9464
- const stateProps = (0, __marigold_system.useStateProps)({
9465
- disabled,
9466
- selected,
9467
- hover: isHovered,
9468
- focusVisible: isFocusVisible,
9469
- active: isPressed
9470
- });
9471
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
9472
- ref,
9473
- className: (0, __marigold_system.cn)([!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"], classNames$2?.row),
9474
- ...(0, __react_aria_utils.mergeProps)(rowProps, focusProps, hoverProps),
9475
- ...stateProps,
9476
- "data-rac": true,
9477
- children
9875
+ variant: variantProp ?? context.variant,
9876
+ size: sizeProp ?? context.size
9478
9877
  });
9479
- };
9480
-
9481
- //#endregion
9482
- //#region src/Table/TableSelectAllCell.tsx
9483
- const TableSelectAllCell = ({ column: column$1, width = "auto", align = "left" }) => {
9484
- const ref = (0, react.useRef)(null);
9485
- const { state, classNames: classNames$2 } = useTableContext();
9486
- const { columnHeaderProps } = (0, __react_aria_table.useTableColumnHeader)({ node: column$1 }, state, ref);
9487
- const { checkboxProps } = mapCheckboxProps((0, __react_aria_table.useTableSelectAllCheckbox)(state));
9488
- const { hoverProps, isHovered } = (0, __react_aria_interactions.useHover)({});
9489
- const { focusProps, isFocusVisible } = (0, __react_aria_focus.useFocusRing)();
9490
- const stateProps = (0, __marigold_system.useStateProps)({
9491
- hover: isHovered,
9492
- focusVisible: isFocusVisible
9493
- });
9494
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
9495
- ref,
9496
- className: (0, __marigold_system.cn)(__marigold_system.width[width], ["leading-none"], classNames$2?.header),
9497
- ...(0, __react_aria_utils.mergeProps)(columnHeaderProps, hoverProps, focusProps),
9498
- ...stateProps,
9499
- align,
9500
- "data-rac": true,
9501
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Checkbox, { ...checkboxProps })
9878
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Row, {
9879
+ id,
9880
+ className: (0, __marigold_system.cn)("group/row", classNames$2.row),
9881
+ ...otherProps,
9882
+ children: [
9883
+ allowsDragging && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
9884
+ slot: "drag",
9885
+ className: (0, __marigold_system.cn)("grid size-full place-items-center", classNames$2.dragHandle),
9886
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GripVertical, {})
9887
+ }) }),
9888
+ selectionBehavior === "toggle" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Cell, {
9889
+ className: classNames$2.cell,
9890
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox._Checkbox, { slot: "selection" })
9891
+ }),
9892
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Collection, {
9893
+ items: columns,
9894
+ children
9895
+ })
9896
+ ]
9502
9897
  });
9503
9898
  };
9504
9899
 
9505
9900
  //#endregion
9506
9901
  //#region src/Table/Table.tsx
9507
- const Table = ({ variant, size: size$1, stretch = false, selectionMode = "none", disableKeyboardNavigation = false, stickyHeader, emptyState, alignY = "middle",...props }) => {
9508
- const interactive = selectionMode !== "none";
9509
- const tableRef = (0, react.useRef)(null);
9510
- const state = (0, __react_stately_table.useTableState)({
9511
- ...props,
9512
- selectionMode,
9513
- showSelectionCheckboxes: selectionMode === "multiple" && props.selectionBehavior !== "replace"
9514
- });
9515
- /**
9516
- * Behavior is a bit flacky with the table when using a keyboard
9517
- * so we test here for undefined here to be save.
9518
- */
9519
- if (disableKeyboardNavigation !== void 0) state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
9520
- const { gridProps } = (0, __react_aria_table.useTable)(props, state, tableRef);
9902
+ const _Table = ({ variant, size: size$1, overflow = "wrap", allowTextSelection = false, alignY = "middle", ...props }) => {
9521
9903
  const classNames$2 = (0, __marigold_system.useClassNames)({
9522
9904
  component: "Table",
9523
9905
  variant,
9524
9906
  size: size$1
9525
9907
  });
9526
- const { collection } = state;
9908
+ const ctx = (0, react.useMemo)(() => ({
9909
+ classNames: classNames$2,
9910
+ variant,
9911
+ size: size$1,
9912
+ overflow,
9913
+ allowTextSelection,
9914
+ alignY
9915
+ }), [
9916
+ classNames$2,
9917
+ variant,
9918
+ size$1,
9919
+ overflow,
9920
+ allowTextSelection,
9921
+ alignY
9922
+ ]);
9527
9923
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableContext.Provider, {
9528
- value: {
9529
- state,
9530
- interactive,
9531
- classNames: classNames$2,
9532
- variant,
9533
- size: size$1
9534
- },
9535
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
9536
- ref: tableRef,
9537
- "data-rac": true,
9538
- className: (0, __marigold_system.cn)(
9539
- "group/table border-collapse",
9540
- /**
9541
- * Prevents wide tables from causing overlays to become scrollable on
9542
- * small screens, ensuring overlays remain fixed as intended.
9543
- */
9544
- "max-[600px]:[[aria-hidden=\"true\"]_&]:overflow-hidden",
9545
- stretch ? "table w-full" : "block",
9546
- classNames$2.table
9547
- ),
9548
- ...gridProps,
9549
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableHeader, {
9550
- stickyHeader,
9551
- children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableHeaderRow, {
9552
- item: headerRow,
9553
- className: classNames$2.headerRow,
9554
- children: [...collection.getChildren(headerRow.key)].map((column$1) => column$1.props?.isSelectionCell ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableSelectAllCell, {
9555
- width: column$1.props?.width,
9556
- column: column$1,
9557
- align: column$1.props?.align
9558
- }, column$1.key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableColumnHeader, {
9559
- width: column$1.props?.width,
9560
- column: column$1,
9561
- align: column$1.props?.align
9562
- }, column$1.key))
9563
- }, headerRow.key))
9564
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableBody, {
9565
- className: classNames$2.body,
9566
- emptyState,
9567
- children: [...collection.rows.map((row) => row.type === "item" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableRow, {
9568
- row,
9569
- children: [...collection.getChildren(row.key)].map((cell, index$1) => {
9570
- const currentColumn = collection.columns[index$1];
9571
- return cell.props?.isSelectionCell ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableCheckboxCell, {
9572
- cell,
9573
- alignY
9574
- }, cell.key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableCell, {
9575
- align: currentColumn.props?.align,
9576
- alignY,
9577
- cell
9578
- }, cell.key);
9579
- })
9580
- }, row.key))]
9581
- })]
9924
+ value: ctx,
9925
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ResizableTableContainer, {
9926
+ className: "w-full",
9927
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Table, {
9928
+ className: (0, __marigold_system.cn)("group/table", classNames$2.table),
9929
+ selectionBehavior: "toggle",
9930
+ ...props
9931
+ })
9582
9932
  })
9583
9933
  });
9584
9934
  };
9585
- Table.Body = __react_stately_table.TableBody;
9586
- Table.Cell = __react_stately_table.Cell;
9587
- Table.Column = __react_stately_table.Column;
9588
- Table.Header = __react_stately_table.TableHeader;
9589
- Table.Row = __react_stately_table.Row;
9935
+ const Table = Object.assign(_Table, {
9936
+ Header: TableHeader,
9937
+ Column: TableColumn,
9938
+ Body: TableBody,
9939
+ Row: TableRow,
9940
+ Cell: TableCell,
9941
+ EditableCell: TableEditableCell,
9942
+ renderDropIndicator,
9943
+ renderDragPreview
9944
+ });
9590
9945
 
9591
9946
  //#endregion
9592
9947
  //#region src/Tabs/Context.ts
@@ -9606,11 +9961,11 @@ const _Tab = (props) => {
9606
9961
 
9607
9962
  //#endregion
9608
9963
  //#region src/Tabs/TabList.tsx
9609
- const _TabList = ({ space = 2,...props }) => {
9964
+ const _TabList = (props) => {
9610
9965
  const { classNames: classNames$2 } = useTabContext();
9611
9966
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TabList, {
9612
9967
  ...props,
9613
- className: (0, __marigold_system.cn)("flex", __marigold_system.gapSpace[space], classNames$2.tabsList),
9968
+ className: (0, __marigold_system.cn)("flex", classNames$2.tabsList),
9614
9969
  children: props.children
9615
9970
  });
9616
9971
  };
@@ -9628,7 +9983,7 @@ const _TabPanel = (props) => {
9628
9983
 
9629
9984
  //#endregion
9630
9985
  //#region src/Tabs/Tabs.tsx
9631
- const _Tabs = ({ disabled, variant, size: size$1 = "medium",...rest }) => {
9986
+ const _Tabs = ({ disabled, variant, size: size$1 = "medium", ...rest }) => {
9632
9987
  const props = {
9633
9988
  isDisabled: disabled,
9634
9989
  ...rest
@@ -9674,7 +10029,7 @@ const TagGroupHiddenInput = ({ name }) => {
9674
10029
  //#region src/TagGroup/TagGroupRemoveAll.tsx
9675
10030
  const TagGroupRemoveAll = ({ className, onRemove }) => {
9676
10031
  const state = (0, react.useContext)(react_aria_components.ListStateContext);
9677
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages, "marigold");
10032
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages, "marigold");
9678
10033
  if (state && state.collection.size < 2) return null;
9679
10034
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Button, {
9680
10035
  onPress: () => onRemove?.(new Set(state?.collection.getKeys())),
@@ -9685,13 +10040,13 @@ const TagGroupRemoveAll = ({ className, onRemove }) => {
9685
10040
 
9686
10041
  //#endregion
9687
10042
  //#region src/TagGroup/TagGroup.tsx
9688
- const _TagGroup = ({ items, children, emptyState, variant, size: size$1, name, removeAll,...rest }) => {
10043
+ const _TagGroup = ({ items, children, emptyState, variant, size: size$1, name, removeAll, ...rest }) => {
9689
10044
  const classNames$2 = (0, __marigold_system.useClassNames)({
9690
10045
  component: "Tag",
9691
10046
  variant,
9692
10047
  size: size$1
9693
10048
  });
9694
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FieldBase, {
10049
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Checkbox.FieldBase, {
9695
10050
  as: react_aria_components.TagGroup,
9696
10051
  ...rest,
9697
10052
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -9711,7 +10066,7 @@ const _TagGroup = ({ items, children, emptyState, variant, size: size$1, name, r
9711
10066
 
9712
10067
  //#endregion
9713
10068
  //#region src/TagGroup/Tag.tsx
9714
- const _Tag = ({ variant, size: size$1, children, disabled,...rest }) => {
10069
+ const _Tag = ({ variant, size: size$1, children, disabled, ...rest }) => {
9715
10070
  let textValue = typeof children === "string" ? children : void 0;
9716
10071
  const classNames$2 = (0, __marigold_system.useClassNames)({
9717
10072
  component: "Tag",
@@ -9732,37 +10087,146 @@ const _Tag = ({ variant, size: size$1, children, disabled,...rest }) => {
9732
10087
  _Tag.Group = _TagGroup;
9733
10088
 
9734
10089
  //#endregion
9735
- //#region src/Text/Text.tsx
9736
- const _Text = ({ variant, size: size$1, color, align, cursor: cursor$1, weight, fontSize, fontStyle, wrap, whiteSpace, children, as = "div",...props }) => {
10090
+ //#region src/TagField/TagField.tsx
10091
+ const TagDisplay = ({ placeholder, classNames: classNames$2, disabled }) => {
10092
+ const state = (0, react.useContext)(react_aria_components.SelectStateContext);
10093
+ if (!state) return null;
10094
+ const selectedKeys = [...state.selectionManager.selectedKeys];
10095
+ if (selectedKeys.length === 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: placeholder });
10096
+ const selectedItems = [];
10097
+ for (const key of selectedKeys) {
10098
+ const item = state.collection.getItem(key);
10099
+ if (item) selectedItems.push({
10100
+ id: key,
10101
+ textValue: item.textValue
10102
+ });
10103
+ }
10104
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TagGroup, {
10105
+ "aria-label": "Selected items",
10106
+ className: classNames$2.tagGroup,
10107
+ onRemove: disabled ? void 0 : (keys) => {
10108
+ const currentKeys = new Set(state.selectionManager.selectedKeys);
10109
+ for (const key of keys) currentKeys.delete(key);
10110
+ state.selectionManager.setSelectedKeys(currentKeys);
10111
+ },
10112
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TagList, {
10113
+ items: selectedItems,
10114
+ className: classNames$2.listItems,
10115
+ children: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Tag, {
10116
+ id: item.id,
10117
+ disabled,
10118
+ children: item.textValue
10119
+ })
10120
+ })
10121
+ });
10122
+ };
10123
+ const TagFieldDropdown = ({ items, children, placeholder, emptyState }) => {
10124
+ const { contains } = (0, react_aria_components.useFilter)({ sensitivity: "base" });
10125
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
10126
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Autocomplete, {
10127
+ filter: contains,
10128
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.SearchField, {
10129
+ "aria-label": "Search",
10130
+ autoFocus: true,
10131
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchInput, { placeholder })
10132
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ListBox, {
10133
+ items,
10134
+ renderEmptyState: () => emptyState ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10135
+ className: "flex items-center",
10136
+ children: stringFormatter.format("noResultsFound")
10137
+ }),
10138
+ children
10139
+ })]
10140
+ });
10141
+ };
10142
+ const _TagField = (0, react.forwardRef)(function TagField$1({ disabled, required, items, variant, size: size$1, error, open, children, placeholder, emptyState, ...rest }, ref) {
10143
+ const triggerRef = (0, react.useRef)(null);
10144
+ const [triggerWidth, setTriggerWidth] = (0, react.useState)(0);
10145
+ const isSmallScreen = (0, __marigold_system.useSmallScreen)();
10146
+ (0, react.useLayoutEffect)(() => {
10147
+ const el = triggerRef.current;
10148
+ if (!el || typeof ResizeObserver === "undefined") return;
10149
+ const observer = new ResizeObserver(() => {
10150
+ setTriggerWidth(el.offsetWidth);
10151
+ });
10152
+ observer.observe(el);
10153
+ return () => observer.disconnect();
10154
+ }, []);
10155
+ const props = {
10156
+ selectionMode: "multiple",
10157
+ isDisabled: disabled,
10158
+ isInvalid: error,
10159
+ isOpen: open,
10160
+ isRequired: required,
10161
+ ...rest
10162
+ };
9737
10163
  const classNames$2 = (0, __marigold_system.useClassNames)({
9738
- component: "Text",
10164
+ component: "TagField",
9739
10165
  variant,
9740
10166
  size: size$1
9741
10167
  });
9742
- /**
9743
- * Use `<Text>` when a `slot` is used. Make sure `elementType`
9744
- * prop is only used in combination the `<Text>`.
9745
- */
9746
- const Component$1 = props.slot ? react_aria_components.Text : as;
9747
- const elementType = props.slot ? { elementType: as } : {};
9748
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component$1, {
10168
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages);
10169
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Checkbox.FieldBase, {
10170
+ as: react_aria_components.Select,
10171
+ ref,
10172
+ variant,
10173
+ size: size$1,
9749
10174
  ...props,
9750
- ...elementType,
9751
- className: (0, __marigold_system.cn)("max-w-(--maxTextWidth)", classNames$2, fontStyle && __marigold_system.textStyle[fontStyle], align && __marigold_system.textAlign[align], cursor$1 && __marigold_system.cursorStyle[cursor$1], weight && __marigold_system.fontWeight[weight], fontSize && __marigold_system.textSize[fontSize], wrap && __marigold_system.textWrap[wrap], whiteSpace && __marigold_system.whiteSpace[whiteSpace]),
9752
- style: { color: color && (0, __marigold_system.ensureCssVar)(color, "color") },
9753
- children
10175
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Group, {
10176
+ ref: triggerRef,
10177
+ className: (0, __marigold_system.cn)("w-(--field-width) max-w-full min-w-0", classNames$2.trigger),
10178
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagDisplay, {
10179
+ placeholder,
10180
+ classNames: classNames$2,
10181
+ disabled
10182
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconButton, {
10183
+ className: classNames$2.button,
10184
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronsVertical, {})
10185
+ })]
10186
+ }), isSmallScreen ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tray, { children: [
10187
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Title, { children: rest.label }),
10188
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Content, {
10189
+ className: "flex flex-col gap-2",
10190
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagFieldDropdown, {
10191
+ items,
10192
+ placeholder,
10193
+ emptyState,
10194
+ children
10195
+ })
10196
+ }),
10197
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tray.Actions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Button, {
10198
+ slot: "close",
10199
+ children: stringFormatter.format("close")
10200
+ }) })
10201
+ ] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_Popover, {
10202
+ triggerRef,
10203
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10204
+ className: classNames$2.container,
10205
+ style: (0, __marigold_system.createVar)({ "tagfield-trigger-width": triggerWidth ? `${triggerWidth}px` : void 0 }),
10206
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagFieldDropdown, {
10207
+ items,
10208
+ placeholder,
10209
+ emptyState,
10210
+ children
10211
+ })
10212
+ })
10213
+ })]
9754
10214
  });
9755
- };
10215
+ });
10216
+ const TagField = Object.assign(_TagField, {
10217
+ Option: _ListBox.Item,
10218
+ Section: _ListBox.Section
10219
+ });
9756
10220
 
9757
10221
  //#endregion
9758
10222
  //#region src/TextArea/TextArea.tsx
9759
- const _TextArea = (0, react.forwardRef)(({ variant, size: size$1, required, disabled, readOnly, error, rows,...rest }, ref) => {
10223
+ const _TextArea = (0, react.forwardRef)(({ variant, size: size$1, required, disabled, readOnly, error, rows, ...rest }, ref) => {
9760
10224
  const classNames$2 = (0, __marigold_system.useClassNames)({
9761
10225
  component: "TextArea",
9762
10226
  variant,
9763
10227
  size: size$1
9764
10228
  });
9765
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
10229
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
9766
10230
  as: react_aria_components.TextField,
9767
10231
  isDisabled: disabled,
9768
10232
  isReadOnly: readOnly,
@@ -9772,7 +10236,7 @@ const _TextArea = (0, react.forwardRef)(({ variant, size: size$1, required, disa
9772
10236
  variant,
9773
10237
  size: size$1,
9774
10238
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TextArea, {
9775
- className: classNames$2,
10239
+ className: (0, __marigold_system.cn)(classNames$2, "w-(--field-width) max-w-full min-w-0"),
9776
10240
  ref,
9777
10241
  rows
9778
10242
  })
@@ -9781,8 +10245,8 @@ const _TextArea = (0, react.forwardRef)(({ variant, size: size$1, required, disa
9781
10245
 
9782
10246
  //#endregion
9783
10247
  //#region src/TextField/TextField.tsx
9784
- const _TextField = (0, react.forwardRef)(({ required, disabled, readOnly, error,...rest }, ref) => {
9785
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
10248
+ const _TextField = (0, react.forwardRef)(({ required, disabled, readOnly, error, ...rest }, ref) => {
10249
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
9786
10250
  as: react_aria_components.TextField,
9787
10251
  isDisabled: disabled,
9788
10252
  isReadOnly: readOnly,
@@ -9795,7 +10259,7 @@ const _TextField = (0, react.forwardRef)(({ required, disabled, readOnly, error,
9795
10259
 
9796
10260
  //#endregion
9797
10261
  //#region src/Tiles/Tiles.tsx
9798
- const Tiles = ({ space = 0, stretch = false, equalHeight = false, tilesWidth = "250px", children,...props }) => {
10262
+ const Tiles = ({ space = 0, stretch = false, equalHeight = false, tilesWidth = "250px", children, ...props }) => {
9799
10263
  let column$1 = `min(${tilesWidth}, 100%)`;
9800
10264
  /**
9801
10265
  * Adding `minmax` with `1fr` will make the tiles distribute the
@@ -9805,24 +10269,27 @@ const Tiles = ({ space = 0, stretch = false, equalHeight = false, tilesWidth = "
9805
10269
  if (stretch) column$1 = `minmax(${column$1}, 1fr)`;
9806
10270
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9807
10271
  ...props,
9808
- className: (0, __marigold_system.cn)("grid", __marigold_system.gapSpace[space], "grid-cols-[repeat(auto-fit,var(--column))]", equalHeight && "auto-rows-[1fr]"),
9809
- style: (0, __marigold_system.createVar)({
9810
- column: column$1,
9811
- tilesWidth
9812
- }),
10272
+ className: (0, __marigold_system.cn)("grid gap-(--space)", "grid-cols-[repeat(auto-fit,var(--column))]", equalHeight && "auto-rows-[1fr]"),
10273
+ style: {
10274
+ ...(0, __marigold_system.createVar)({
10275
+ column: column$1,
10276
+ tilesWidth
10277
+ }),
10278
+ ...(0, __marigold_system.createSpacingVar)("space", `${space}`)
10279
+ },
9813
10280
  children
9814
10281
  });
9815
10282
  };
9816
10283
 
9817
10284
  //#endregion
9818
10285
  //#region src/TimeField/TimeField.tsx
9819
- const _TimeField = (0, react.forwardRef)(({ required, disabled, readOnly, error, variant, size: size$1, width = "full",...rest }, ref) => {
10286
+ const _TimeField = (0, react.forwardRef)(({ required, disabled, readOnly, error, variant, size: size$1, width = "full", ...rest }, ref) => {
9820
10287
  const classNames$2 = (0, __marigold_system.useClassNames)({
9821
10288
  component: "DateField",
9822
10289
  variant,
9823
10290
  size: size$1
9824
10291
  });
9825
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldBase, {
10292
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Checkbox.FieldBase, {
9826
10293
  as: react_aria_components.TimeField,
9827
10294
  variant,
9828
10295
  size: size$1,
@@ -9833,11 +10300,14 @@ const _TimeField = (0, react.forwardRef)(({ required, disabled, readOnly, error,
9833
10300
  isRequired: required,
9834
10301
  ...rest,
9835
10302
  ref,
9836
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateInput, {
9837
- className: classNames$2.field,
9838
- children: (segment) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateSegment, {
9839
- className: classNames$2.segment,
9840
- segment
10303
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Group, {
10304
+ className: (0, __marigold_system.cn)("w-(--field-width) max-w-full min-w-0", classNames$2.field),
10305
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateInput, {
10306
+ className: (0, __marigold_system.cn)("flex flex-1 items-center", classNames$2.input),
10307
+ children: (segment) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.DateSegment, {
10308
+ className: classNames$2.segment,
10309
+ segment
10310
+ })
9841
10311
  })
9842
10312
  })
9843
10313
  });
@@ -9849,14 +10319,14 @@ const icons = {
9849
10319
  success: CircleCheck,
9850
10320
  info: Info,
9851
10321
  warning: CircleAlert,
9852
- error: TriangleAlert
10322
+ error: require_Checkbox.TriangleAlert
9853
10323
  };
9854
10324
  const Toast = ({ toast }) => {
9855
10325
  const classNames$2 = (0, __marigold_system.useClassNames)({
9856
10326
  component: "Toast",
9857
10327
  variant: toast.content.variant
9858
10328
  });
9859
- const Icon$2 = toast.content.variant ? icons[toast.content.variant] : null;
10329
+ const Icon$1 = toast.content.variant ? icons[toast.content.variant] : null;
9860
10330
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.UNSTABLE_Toast, {
9861
10331
  toast,
9862
10332
  className: classNames$2.toast,
@@ -9864,11 +10334,11 @@ const Toast = ({ toast }) => {
9864
10334
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.UNSTABLE_ToastContent, {
9865
10335
  className: classNames$2.content,
9866
10336
  children: [
9867
- Icon$2 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10337
+ Icon$1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9868
10338
  className: classNames$2.icon,
9869
10339
  slot: "icon",
9870
10340
  "data-testid": "toast-icon",
9871
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$2, { size: "20" })
10341
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon$1, { size: "20" })
9872
10342
  }),
9873
10343
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.Text, {
9874
10344
  slot: "title",
@@ -9897,15 +10367,18 @@ const Toast = ({ toast }) => {
9897
10367
  //#endregion
9898
10368
  //#region src/Toast/ToastProvider.tsx
9899
10369
  const queue = new react_aria_components.UNSTABLE_ToastQueue({ wrapUpdate(fn) {
9900
- if ("startViewTransition" in document) document.startViewTransition(() => {
9901
- (0, react_dom.flushSync)(fn);
9902
- });
9903
- else fn();
10370
+ if ("startViewTransition" in document) {
10371
+ const transition = document.startViewTransition(() => {
10372
+ (0, react_dom.flushSync)(fn);
10373
+ });
10374
+ transition.ready.catch(() => {});
10375
+ transition.finished.catch(() => {});
10376
+ } else fn();
9904
10377
  } });
9905
10378
  const ToastProvider = ({ position: position$1 = "bottom-right" }) => {
9906
10379
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.UNSTABLE_ToastRegion, {
9907
10380
  queue,
9908
- className: `${(0, __marigold_system.useClassNames)({ component: "Toast" })[position$1]} z-50 gap-2`,
10381
+ className: `${(0, __marigold_system.useClassNames)({ component: "Toast" })[position$1]} z-80 gap-2`,
9909
10382
  children: ({ toast }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Toast, { toast })
9910
10383
  });
9911
10384
  };
@@ -9946,7 +10419,7 @@ const TooltipArrow = () => {
9946
10419
 
9947
10420
  //#endregion
9948
10421
  //#region src/Tooltip/TooltipTrigger.tsx
9949
- const _TooltipTrigger = ({ delay = 1e3, children, disabled, open,...rest }) => {
10422
+ const _TooltipTrigger = ({ delay = 1e3, children, disabled, open, ...rest }) => {
9950
10423
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.TooltipTrigger, {
9951
10424
  ...rest,
9952
10425
  isDisabled: disabled,
@@ -9958,7 +10431,7 @@ const _TooltipTrigger = ({ delay = 1e3, children, disabled, open,...rest }) => {
9958
10431
 
9959
10432
  //#endregion
9960
10433
  //#region src/Tooltip/Tooltip.tsx
9961
- const _Tooltip = ({ children, variant, size: size$1, open,...rest }) => {
10434
+ const _Tooltip = ({ children, variant, size: size$1, open, ...rest }) => {
9962
10435
  const props = {
9963
10436
  ...rest,
9964
10437
  isOpen: open
@@ -9970,7 +10443,7 @@ const _Tooltip = ({ children, variant, size: size$1, open,...rest }) => {
9970
10443
  });
9971
10444
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components.Tooltip, {
9972
10445
  ...props,
9973
- className: (0, __marigold_system.cn)("group/tooltip", classNames$2.container),
10446
+ className: (0, __marigold_system.cn)("group/tooltip z-30", classNames$2.container),
9974
10447
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.OverlayArrow, {
9975
10448
  className: classNames$2.arrow,
9976
10449
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipArrow, {})
@@ -10127,8 +10600,8 @@ const XLoaderSvg = ({ className }) => {
10127
10600
  ]
10128
10601
  });
10129
10602
  };
10130
- const BaseLoader = ({ variant, size: size$1, children, "aria-label": ariaLabel, loaderType = "circle",...props }) => {
10131
- const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(intlMessages, "marigold");
10603
+ const BaseLoader = ({ variant, size: size$1, children, "aria-label": ariaLabel, loaderType = "circle", ...props }) => {
10604
+ const stringFormatter = (0, __react_aria_i18n.useLocalizedStringFormatter)(require_Checkbox.intlMessages, "marigold");
10132
10605
  const className = (0, __marigold_system.useClassNames)({
10133
10606
  component: "Loader",
10134
10607
  variant,
@@ -10180,7 +10653,7 @@ const LoaderSection = (props) => {
10180
10653
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BaseLoader, { ...props })
10181
10654
  });
10182
10655
  };
10183
- const Loader = ({ mode, variant,...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoaderFullScreen, {
10656
+ const Loader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoaderFullScreen, {
10184
10657
  variant: variant ?? "inverted",
10185
10658
  ...props
10186
10659
  }) : mode === "section" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoaderSection, {
@@ -10191,6 +10664,50 @@ const Loader = ({ mode, variant,...props }) => mode === "fullscreen" ? /* @__PUR
10191
10664
  ...props
10192
10665
  });
10193
10666
 
10667
+ //#endregion
10668
+ //#region src/ToggleButton/Context.tsx
10669
+ const ToggleButtonContext = (0, react.createContext)({});
10670
+
10671
+ //#endregion
10672
+ //#region src/ToggleButton/ToggleButtonGroup.tsx
10673
+ const _ToggleButtonGroup = ({ children, disabled, variant, size: size$1, ...props }) => {
10674
+ const classNames$2 = (0, __marigold_system.useClassNames)({
10675
+ component: "ToggleButton",
10676
+ variant,
10677
+ size: size$1
10678
+ });
10679
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleButtonContext.Provider, {
10680
+ value: {
10681
+ variant,
10682
+ size: size$1
10683
+ },
10684
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ToggleButtonGroup, {
10685
+ className: classNames$2.group,
10686
+ isDisabled: disabled,
10687
+ ...props,
10688
+ children
10689
+ })
10690
+ });
10691
+ };
10692
+
10693
+ //#endregion
10694
+ //#region src/ToggleButton/ToggleButton.tsx
10695
+ const _ToggleButton = ({ children, selected, disabled, variant, size: size$1, ...props }) => {
10696
+ const context = (0, react.useContext)(ToggleButtonContext);
10697
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components.ToggleButton, {
10698
+ isSelected: selected,
10699
+ isDisabled: disabled,
10700
+ className: (0, __marigold_system.useClassNames)({
10701
+ component: "ToggleButton",
10702
+ variant: variant ?? context.variant,
10703
+ size: size$1 ?? context.size
10704
+ }).button,
10705
+ ...props,
10706
+ children
10707
+ });
10708
+ };
10709
+ _ToggleButton.Group = _ToggleButtonGroup;
10710
+
10194
10711
  //#endregion
10195
10712
  //#region src/utils/form.utils.ts
10196
10713
  /**
@@ -10210,6 +10727,8 @@ const parseFormData = (e$1) => {
10210
10727
  //#endregion
10211
10728
  exports.Accordion = Accordion;
10212
10729
  exports.AccordionItem = AccordionItem;
10730
+ exports.ActionBar = ActionBar;
10731
+ exports.ActionButton = ActionButton;
10213
10732
  exports.ActionMenu = ActionMenu;
10214
10733
  exports.Aside = Aside;
10215
10734
  exports.Aspect = Aspect;
@@ -10221,10 +10740,10 @@ exports.Button = _Button;
10221
10740
  exports.Calendar = _Calendar;
10222
10741
  exports.Card = Card;
10223
10742
  exports.Center = Center;
10224
- exports.Checkbox = _Checkbox;
10225
- exports.CheckboxGroup = _CheckboxGroup;
10743
+ exports.Checkbox = require_Checkbox._Checkbox;
10744
+ exports.CheckboxGroup = require_Checkbox._CheckboxGroup;
10226
10745
  exports.CloseButton = CloseButton;
10227
- exports.Collapsible = Collapsible;
10746
+ exports.Collapsible = require_Checkbox.Collapsible;
10228
10747
  exports.Columns = Columns;
10229
10748
  exports.ComboBox = _ComboBox;
10230
10749
  exports.ConfirmationContext = ConfirmationContext;
@@ -10243,12 +10762,13 @@ exports.DatePicker = _DatePicker;
10243
10762
  exports.Dialog = _Dialog;
10244
10763
  exports.Divider = _Divider;
10245
10764
  exports.Drawer = Drawer;
10246
- exports.FieldBase = FieldBase;
10765
+ exports.EmptyState = EmptyState;
10766
+ exports.FieldBase = require_Checkbox.FieldBase;
10247
10767
  exports.FileField = FileField;
10248
10768
  exports.Form = _Form;
10249
10769
  exports.Grid = Grid;
10250
10770
  exports.Headline = _Headline;
10251
- exports.HelpText = HelpText;
10771
+ exports.HelpText = require_Checkbox.HelpText;
10252
10772
  Object.defineProperty(exports, 'I18nProvider', {
10253
10773
  enumerable: true,
10254
10774
  get: function () {
@@ -10259,7 +10779,7 @@ exports.IconButton = IconButton;
10259
10779
  exports.Inline = Inline;
10260
10780
  exports.Input = _Input;
10261
10781
  exports.Inset = Inset;
10262
- exports.Label = _Label;
10782
+ exports.Label = require_Checkbox._Label;
10263
10783
  exports.Link = _Link;
10264
10784
  exports.LinkButton = _LinkButton;
10265
10785
  exports.List = List;
@@ -10305,6 +10825,7 @@ exports.Switch = _Switch;
10305
10825
  exports.Table = Table;
10306
10826
  exports.Tabs = _Tabs;
10307
10827
  exports.Tag = _Tag;
10828
+ exports.TagField = TagField;
10308
10829
  exports.TagGroup = _TagGroup;
10309
10830
  exports.Text = _Text;
10310
10831
  exports.TextArea = _TextArea;
@@ -10319,7 +10840,10 @@ exports.Tiles = Tiles;
10319
10840
  exports.TimeField = _TimeField;
10320
10841
  exports.Toast = Toast;
10321
10842
  exports.ToastProvider = ToastProvider;
10843
+ exports.ToggleButton = _ToggleButton;
10844
+ exports.ToggleButtonGroup = _ToggleButtonGroup;
10322
10845
  exports.Tooltip = _Tooltip;
10846
+ exports.Tray = Tray;
10323
10847
  exports.Underlay = Underlay;
10324
10848
  Object.defineProperty(exports, 'VisuallyHidden', {
10325
10849
  enumerable: true,
@@ -10327,18 +10851,25 @@ Object.defineProperty(exports, 'VisuallyHidden', {
10327
10851
  return __react_aria_visually_hidden.VisuallyHidden;
10328
10852
  }
10329
10853
  });
10854
+ exports.__toESM = __toESM;
10330
10855
  exports.parseFormData = parseFormData;
10331
10856
  Object.defineProperty(exports, 'useAsyncList', {
10332
10857
  enumerable: true,
10333
10858
  get: function () {
10334
- return __react_stately_data.useAsyncList;
10859
+ return react_aria_components.useAsyncList;
10335
10860
  }
10336
10861
  });
10337
10862
  exports.useConfirmation = useConfirmation;
10863
+ Object.defineProperty(exports, 'useDragAndDrop', {
10864
+ enumerable: true,
10865
+ get: function () {
10866
+ return react_aria_components.useDragAndDrop;
10867
+ }
10868
+ });
10338
10869
  Object.defineProperty(exports, 'useListData', {
10339
10870
  enumerable: true,
10340
10871
  get: function () {
10341
- return __react_stately_data.useListData;
10872
+ return react_aria_components.useListData;
10342
10873
  }
10343
10874
  });
10344
10875
  Object.defineProperty(exports, 'useTheme', {