@marigold/components 11.4.1 → 11.5.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.
package/dist/index.js CHANGED
@@ -212,7 +212,7 @@ var require_react_is_development = __commonJS({
212
212
  var ContextProvider = REACT_PROVIDER_TYPE;
213
213
  var Element2 = REACT_ELEMENT_TYPE;
214
214
  var ForwardRef = REACT_FORWARD_REF_TYPE;
215
- var Fragment12 = REACT_FRAGMENT_TYPE;
215
+ var Fragment13 = REACT_FRAGMENT_TYPE;
216
216
  var Lazy = REACT_LAZY_TYPE;
217
217
  var Memo = REACT_MEMO_TYPE;
218
218
  var Portal = REACT_PORTAL_TYPE;
@@ -271,7 +271,7 @@ var require_react_is_development = __commonJS({
271
271
  exports2.ContextProvider = ContextProvider;
272
272
  exports2.Element = Element2;
273
273
  exports2.ForwardRef = ForwardRef;
274
- exports2.Fragment = Fragment12;
274
+ exports2.Fragment = Fragment13;
275
275
  exports2.Lazy = Lazy;
276
276
  exports2.Memo = Memo;
277
277
  exports2.Portal = Portal;
@@ -868,7 +868,6 @@ __export(index_exports, {
868
868
  Center: () => Center,
869
869
  Checkbox: () => _Checkbox,
870
870
  CheckboxGroup: () => _CheckboxGroup,
871
- CloseButton: () => CloseButton2,
872
871
  Columns: () => Columns,
873
872
  ComboBox: () => _ComboBox,
874
873
  Container: () => Container,
@@ -876,11 +875,12 @@ __export(index_exports, {
876
875
  DatePicker: () => _DatePicker,
877
876
  Dialog: () => _Dialog,
878
877
  Divider: () => _Divider,
878
+ Drawer: () => Drawer,
879
879
  FieldBase: () => FieldBase,
880
880
  FieldGroup: () => FieldGroup,
881
881
  FieldGroupContext: () => FieldGroupContext,
882
882
  Footer: () => Footer,
883
- Form: () => import_react_aria_components27.Form,
883
+ Form: () => _Form,
884
884
  Grid: () => Grid,
885
885
  Header: () => _Header,
886
886
  Headline: () => _Headline,
@@ -903,7 +903,7 @@ __export(index_exports, {
903
903
  Popover: () => _Popover,
904
904
  Radio: () => _Radio,
905
905
  RadioGroup: () => _RadioGroup,
906
- RouterProvider: () => import_react_aria_components69.RouterProvider,
906
+ RouterProvider: () => import_react_aria_components73.RouterProvider,
907
907
  Scrollable: () => Scrollable,
908
908
  SearchField: () => _SearchField,
909
909
  SectionMessage: () => SectionMessage,
@@ -1148,7 +1148,7 @@ var HelpText = ({
1148
1148
  return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
1149
1149
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { className: classNames3.icon }),
1150
1150
  msg
1151
- ] }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
1151
+ ] }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start justify-start gap-1", children: [
1152
1152
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { className: classNames3.icon }),
1153
1153
  messages
1154
1154
  ] });
@@ -1179,7 +1179,7 @@ var _Label = ({ size: size2, variant, children, ...props }) => {
1179
1179
  import_react_aria_components6.Label,
1180
1180
  {
1181
1181
  ...props,
1182
- className: (0, import_system7.cn)(classNames3.container, "flex w-[var(--labelWidth)]"),
1182
+ className: (0, import_system7.cn)(classNames3.container, "inline-flex w-[var(--labelWidth)]"),
1183
1183
  style: (0, import_system7.createVar)({ labelWidth }),
1184
1184
  children: [
1185
1185
  children,
@@ -2034,9 +2034,9 @@ var _Checkbox = (0, import_react22.forwardRef)(
2034
2034
  checked,
2035
2035
  defaultChecked,
2036
2036
  indeterminate,
2037
- children,
2038
2037
  variant,
2039
2038
  size: size2,
2039
+ label,
2040
2040
  ...rest
2041
2041
  }, ref) => {
2042
2042
  const props = {
@@ -2075,7 +2075,7 @@ var _Checkbox = (0, import_react22.forwardRef)(
2075
2075
  className: classNames3.checkbox
2076
2076
  }
2077
2077
  ),
2078
- children ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: classNames3.label, children }) : null
2078
+ (props.children || label) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: classNames3.label, children: props.children || label })
2079
2079
  ] })
2080
2080
  }
2081
2081
  );
@@ -2180,30 +2180,47 @@ var Container = ({
2180
2180
  );
2181
2181
 
2182
2182
  // src/Dialog/Dialog.tsx
2183
- var import_react28 = require("react");
2184
- var import_react_aria_components25 = require("react-aria-components");
2185
- var import_system38 = require("@marigold/system");
2183
+ var import_react29 = require("react");
2184
+ var import_react_aria_components26 = require("react-aria-components");
2185
+ var import_system39 = require("@marigold/system");
2186
2186
 
2187
- // src/Overlay/Modal.tsx
2187
+ // src/CloseButton/CloseButton.tsx
2188
2188
  var import_react24 = require("react");
2189
2189
  var import_react_aria_components21 = require("react-aria-components");
2190
+ var import_system35 = require("@marigold/system");
2190
2191
  var import_jsx_runtime39 = require("react/jsx-runtime");
2191
- var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
2192
+ var CloseButton = (0, import_react24.forwardRef)(
2193
+ ({ className, size: size2, variant, ...props }, ref) => {
2194
+ const classNames3 = (0, import_system35.useClassNames)({
2195
+ component: "CloseButton",
2196
+ className,
2197
+ size: size2,
2198
+ variant
2199
+ });
2200
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_aria_components21.Button, { ref, className: classNames3, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
2201
+ }
2202
+ );
2203
+
2204
+ // src/Overlay/Modal.tsx
2205
+ var import_react25 = require("react");
2206
+ var import_react_aria_components22 = require("react-aria-components");
2207
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2208
+ var _Modal = (0, import_react25.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
2192
2209
  const props = {
2193
2210
  isOpen: open,
2194
2211
  isDismissable: dismissable,
2195
2212
  isKeyboardDismissDisabled: keyboardDismissable,
2196
2213
  ...rest
2197
2214
  };
2198
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2215
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2199
2216
  Underlay,
2200
2217
  {
2201
2218
  dismissable,
2202
2219
  keyboardDismissable,
2203
2220
  open,
2204
2221
  variant: "modal",
2205
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2206
- import_react_aria_components21.Modal,
2222
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2223
+ import_react_aria_components22.Modal,
2207
2224
  {
2208
2225
  ref,
2209
2226
  className: "relative flex w-full justify-center",
@@ -2216,8 +2233,8 @@ var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismis
2216
2233
  });
2217
2234
 
2218
2235
  // src/Overlay/NonModal.tsx
2219
- var import_react26 = require("react");
2220
- var import_react_aria_components22 = require("react-aria-components");
2236
+ var import_react27 = require("react");
2237
+ var import_react_aria_components23 = require("react-aria-components");
2221
2238
  var import_react_stately = require("react-stately");
2222
2239
  var import_focus = require("@react-aria/focus");
2223
2240
  var import_overlays2 = require("@react-aria/overlays");
@@ -2225,7 +2242,7 @@ var import_ssr2 = require("@react-aria/ssr");
2225
2242
  var import_utils = require("@react-aria/utils");
2226
2243
 
2227
2244
  // src/utils/useRenderProps.tsx
2228
- var import_react25 = require("react");
2245
+ var import_react26 = require("react");
2229
2246
  function useRenderProps(props) {
2230
2247
  let {
2231
2248
  className,
@@ -2236,7 +2253,7 @@ function useRenderProps(props) {
2236
2253
  defaultStyle,
2237
2254
  values
2238
2255
  } = props;
2239
- return (0, import_react25.useMemo)(() => {
2256
+ return (0, import_react26.useMemo)(() => {
2240
2257
  let computedClassName;
2241
2258
  let computedStyle;
2242
2259
  let computedChildren;
@@ -2293,7 +2310,7 @@ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
2293
2310
  };
2294
2311
 
2295
2312
  // src/Overlay/NonModal.tsx
2296
- var import_jsx_runtime40 = require("react/jsx-runtime");
2313
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2297
2314
  var NonModalInner = ({ state, isExiting, ...props }) => {
2298
2315
  const { nonModalProps } = useNonModal(props, state);
2299
2316
  const ref = props.nonModalRef;
@@ -2313,7 +2330,7 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
2313
2330
  ...renderProps.style,
2314
2331
  "--visual-viewport-height": viewport.height + "px"
2315
2332
  };
2316
- const overlay = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2333
+ const overlay = /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2317
2334
  "div",
2318
2335
  {
2319
2336
  ...(0, import_utils.mergeProps)((0, import_utils.filterDOMProps)(props), nonModalProps),
@@ -2328,28 +2345,28 @@ var NonModalInner = ({ state, isExiting, ...props }) => {
2328
2345
  "data-exiting": isExiting || void 0,
2329
2346
  children: [
2330
2347
  renderProps.children,
2331
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
2348
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
2332
2349
  ]
2333
2350
  }
2334
2351
  );
2335
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2336
2353
  import_overlays2.Overlay,
2337
2354
  {
2338
2355
  isExiting,
2339
2356
  portalContainer,
2340
2357
  disableFocusManagement: true,
2341
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components22.Provider, { values: [[import_react_aria_components22.OverlayTriggerStateContext, state]], children: overlay }) })
2358
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_aria_components23.Provider, { values: [[import_react_aria_components23.OverlayTriggerStateContext, state]], children: overlay }) })
2342
2359
  }
2343
2360
  );
2344
2361
  };
2345
- var NonModal = (0, import_react26.forwardRef)(
2362
+ var NonModal = (0, import_react27.forwardRef)(
2346
2363
  ({ open, ...rest }, ref) => {
2347
2364
  const props = {
2348
2365
  isOpen: open,
2349
2366
  ...rest
2350
2367
  };
2351
2368
  ref = (0, import_utils.useObjectRef)(ref);
2352
- const contextState = (0, import_react26.useContext)(import_react_aria_components22.OverlayTriggerStateContext);
2369
+ const contextState = (0, import_react27.useContext)(import_react_aria_components23.OverlayTriggerStateContext);
2353
2370
  const localState = (0, import_react_stately.useOverlayTriggerState)(props);
2354
2371
  const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
2355
2372
  const isExiting = (0, import_utils.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
@@ -2357,7 +2374,7 @@ var NonModal = (0, import_react26.forwardRef)(
2357
2374
  if (state && !state.isOpen && !isExiting || isSSR) {
2358
2375
  return null;
2359
2376
  }
2360
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2377
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2361
2378
  NonModalInner,
2362
2379
  {
2363
2380
  ...props,
@@ -2370,44 +2387,44 @@ var NonModal = (0, import_react26.forwardRef)(
2370
2387
  );
2371
2388
 
2372
2389
  // src/Dialog/DialogActions.tsx
2373
- var import_system35 = require("@marigold/system");
2374
- var import_jsx_runtime41 = require("react/jsx-runtime");
2390
+ var import_system36 = require("@marigold/system");
2391
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2375
2392
  var DialogActions = ({ variant, size: size2, children }) => {
2376
- const classNames3 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size: size2 });
2377
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_system35.cn)("[grid-area:actions]", classNames3.actions), children });
2393
+ const classNames3 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size: size2 });
2394
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_system36.cn)("[grid-area:actions]", classNames3.actions), children });
2378
2395
  };
2379
2396
 
2380
2397
  // src/Dialog/DialogContent.tsx
2381
- var import_system36 = require("@marigold/system");
2382
- var import_jsx_runtime42 = require("react/jsx-runtime");
2398
+ var import_system37 = require("@marigold/system");
2399
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2383
2400
  var DialogContent = ({
2384
2401
  variant,
2385
2402
  size: size2,
2386
2403
  children
2387
2404
  }) => {
2388
- const classNames3 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size: size2 });
2389
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_system36.cn)("[grid-area:content]", classNames3.content), children });
2405
+ const classNames3 = (0, import_system37.useClassNames)({ component: "Dialog", variant, size: size2 });
2406
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: (0, import_system37.cn)("[grid-area:content]", classNames3.content), children });
2390
2407
  };
2391
2408
 
2392
2409
  // src/Dialog/DialogTitle.tsx
2393
- var import_react_aria_components23 = require("react-aria-components");
2394
- var import_system37 = require("@marigold/system");
2395
- var import_jsx_runtime43 = require("react/jsx-runtime");
2410
+ var import_react_aria_components24 = require("react-aria-components");
2411
+ var import_system38 = require("@marigold/system");
2412
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2396
2413
  var DialogTitle = ({ variant, size: size2, children }) => {
2397
- const classNames3 = (0, import_system37.useClassNames)({
2414
+ const classNames3 = (0, import_system38.useClassNames)({
2398
2415
  component: "Dialog",
2399
2416
  variant,
2400
2417
  size: size2
2401
2418
  });
2402
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components23.Header, { className: (0, import_system37.cn)("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components23.Heading, { slot: "title", className: classNames3.title, children }) });
2419
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components24.Header, { className: (0, import_system38.cn)("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components24.Heading, { slot: "title", className: classNames3.title, children }) });
2403
2420
  };
2404
2421
 
2405
2422
  // src/Dialog/DialogTrigger.tsx
2406
- var import_react27 = require("react");
2407
- var import_react_aria_components24 = require("react-aria-components");
2423
+ var import_react28 = require("react");
2424
+ var import_react_aria_components25 = require("react-aria-components");
2408
2425
  var import_interactions = require("@react-aria/interactions");
2409
- var import_jsx_runtime44 = require("react/jsx-runtime");
2410
- var DialogContext = (0, import_react27.createContext)({});
2426
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2427
+ var DialogContext = (0, import_react28.createContext)({});
2411
2428
  var _DialogTrigger = ({
2412
2429
  open,
2413
2430
  dismissable,
@@ -2421,65 +2438,49 @@ var _DialogTrigger = ({
2421
2438
  isKeyboardDismissDisabled: !keyboardDismissable,
2422
2439
  ...rest
2423
2440
  };
2424
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContext.Provider, { value: props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components24.DialogTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_interactions.PressResponder, { isPressed: false, children: props.children }) }) });
2441
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogContext.Provider, { value: props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria_components25.DialogTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_interactions.PressResponder, { isPressed: false, children: props.children }) }) });
2425
2442
  };
2426
2443
 
2427
2444
  // src/Dialog/Dialog.tsx
2428
- var import_jsx_runtime45 = require("react/jsx-runtime");
2429
- var CloseButton = ({ className }) => {
2430
- const ctx = (0, import_react28.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
2431
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2432
- "button",
2433
- {
2434
- className: (0, import_system38.cn)(
2435
- "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
2436
- className
2437
- ),
2438
- onClick: ctx == null ? void 0 : ctx.close,
2439
- slot: "dismiss-button",
2440
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2441
- "path",
2442
- {
2443
- fillRule: "evenodd",
2444
- clipRule: "evenodd",
2445
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
2446
- }
2447
- ) })
2448
- }
2449
- );
2450
- };
2451
- var _Dialog = (0, import_react28.forwardRef)(
2445
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2446
+ var _Dialog = (0, import_react29.forwardRef)(
2452
2447
  (props, ref) => {
2453
2448
  var _a;
2454
- const classNames3 = (0, import_system38.useClassNames)({
2449
+ const classNames3 = (0, import_system39.useClassNames)({
2455
2450
  component: "Dialog",
2456
2451
  variant: props.variant,
2457
2452
  size: props.size
2458
2453
  });
2459
- const { isDismissable, isKeyboardDismissDisabled, isOpen } = (0, import_react28.useContext)(DialogContext);
2460
- const state = (0, import_react28.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
2454
+ const { isDismissable, isKeyboardDismissDisabled, isOpen } = (0, import_react29.useContext)(DialogContext);
2455
+ const state = (0, import_react29.useContext)(import_react_aria_components26.OverlayTriggerStateContext);
2461
2456
  const children = typeof props.children === "function" ? props.children({
2462
2457
  close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
2463
2458
  }
2464
2459
  }) : props.children;
2465
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2460
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2466
2461
  _Modal,
2467
2462
  {
2468
2463
  dismissable: isDismissable,
2469
2464
  keyboardDismissable: isKeyboardDismissDisabled,
2470
2465
  open: isOpen,
2471
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2472
- import_react_aria_components25.Dialog,
2466
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2467
+ import_react_aria_components26.Dialog,
2473
2468
  {
2474
2469
  ...props,
2475
2470
  ref,
2476
- className: (0, import_system38.cn)(
2471
+ className: (0, import_system39.cn)(
2477
2472
  "relative outline-hidden [&>*:not(:last-child)]:mb-4",
2478
2473
  "grid [grid-template-areas:'title'_'content'_'actions']",
2479
2474
  classNames3.container
2480
2475
  ),
2481
2476
  children: [
2482
- props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CloseButton, { className: classNames3.closeButton }),
2477
+ props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2478
+ CloseButton,
2479
+ {
2480
+ className: classNames3.closeButton,
2481
+ onPress: state == null ? void 0 : state.close
2482
+ }
2483
+ ),
2483
2484
  children
2484
2485
  ]
2485
2486
  }
@@ -2494,34 +2495,206 @@ _Dialog.Content = DialogContent;
2494
2495
  _Dialog.Actions = DialogActions;
2495
2496
 
2496
2497
  // src/Divider/Divider.tsx
2497
- var import_react_aria_components26 = require("react-aria-components");
2498
- var import_system39 = require("@marigold/system");
2499
- var import_jsx_runtime46 = require("react/jsx-runtime");
2498
+ var import_react_aria_components27 = require("react-aria-components");
2499
+ var import_system40 = require("@marigold/system");
2500
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2500
2501
  var _Divider = ({ variant, ...props }) => {
2501
- const classNames3 = (0, import_system39.useClassNames)({ component: "Divider", variant });
2502
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_aria_components26.Separator, { className: (0, import_system39.cn)("border-none", classNames3), ...props });
2502
+ const classNames3 = (0, import_system40.useClassNames)({ component: "Divider", variant });
2503
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_aria_components27.Separator, { className: (0, import_system40.cn)("border-none", classNames3), ...props });
2504
+ };
2505
+
2506
+ // src/Drawer/Drawer.tsx
2507
+ var import_react31 = require("react");
2508
+ var import_react_aria_components30 = require("react-aria-components");
2509
+ var import_landmark = require("@react-aria/landmark");
2510
+ var import_system45 = require("@marigold/system");
2511
+
2512
+ // src/Drawer/Context.tsx
2513
+ var import_react30 = require("react");
2514
+ var DrawerContext = (0, import_react30.createContext)({
2515
+ variant: void 0,
2516
+ size: void 0
2517
+ });
2518
+ var useDrawerContext = () => (0, import_react30.useContext)(DrawerContext);
2519
+
2520
+ // src/Drawer/DrawerActions.tsx
2521
+ var import_system41 = require("@marigold/system");
2522
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2523
+ var DrawerActions = ({ variant, size: size2, children }) => {
2524
+ const ctx = useDrawerContext();
2525
+ const classNames3 = (0, import_system41.useClassNames)({
2526
+ component: "Drawer",
2527
+ variant: variant != null ? variant : ctx.variant,
2528
+ size: size2 != null ? size2 : ctx.size
2529
+ });
2530
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2531
+ "div",
2532
+ {
2533
+ className: (0, import_system41.cn)("[grid-area:actions]", classNames3.actions),
2534
+ style: { "--i": 2 },
2535
+ children
2536
+ }
2537
+ );
2538
+ };
2539
+
2540
+ // src/Drawer/DrawerContent.tsx
2541
+ var import_system42 = require("@marigold/system");
2542
+ var import_jsx_runtime49 = require("react/jsx-runtime");
2543
+ var DrawerContent = ({
2544
+ variant,
2545
+ size: size2,
2546
+ children
2547
+ }) => {
2548
+ const ctx = useDrawerContext();
2549
+ const classNames3 = (0, import_system42.useClassNames)({
2550
+ component: "Drawer",
2551
+ variant: variant != null ? variant : ctx.variant,
2552
+ size: size2 != null ? size2 : ctx.size
2553
+ });
2554
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2555
+ "div",
2556
+ {
2557
+ className: (0, import_system42.cn)("[grid-area:content]", classNames3.content),
2558
+ style: { "--i": 1 },
2559
+ children
2560
+ }
2561
+ );
2503
2562
  };
2504
2563
 
2564
+ // src/Drawer/DrawerModal.tsx
2565
+ var import_system43 = require("@marigold/system");
2566
+ var import_jsx_runtime50 = require("react/jsx-runtime");
2567
+ var DrawerModal = ({
2568
+ children,
2569
+ className,
2570
+ ...props
2571
+ }) => {
2572
+ const isSmallScreen = (0, import_system43.useSmallScreen)();
2573
+ return isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(_Modal, { children }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2574
+ NonModal,
2575
+ {
2576
+ ...props,
2577
+ className: (0, import_system43.cn)("fixed top-0 right-0 bottom-0", className),
2578
+ children
2579
+ }
2580
+ );
2581
+ };
2582
+
2583
+ // src/Drawer/DrawerTitle.tsx
2584
+ var import_react_aria_components28 = require("react-aria-components");
2585
+ var import_system44 = require("@marigold/system");
2586
+ var import_jsx_runtime51 = require("react/jsx-runtime");
2587
+ var DrawerTitle = ({ variant, size: size2, children }) => {
2588
+ const ctx = useDrawerContext();
2589
+ const classNames3 = (0, import_system44.useClassNames)({
2590
+ component: "Drawer",
2591
+ variant: variant != null ? variant : ctx.variant,
2592
+ size: size2 != null ? size2 : ctx.size
2593
+ });
2594
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2595
+ import_react_aria_components28.Header,
2596
+ {
2597
+ className: (0, import_system44.cn)("[grid-area:title]", classNames3.header),
2598
+ style: { "--i": 0 },
2599
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria_components28.Heading, { slot: "title", level: 2, className: classNames3.title, children })
2600
+ }
2601
+ );
2602
+ };
2603
+
2604
+ // src/Drawer/DrawerTrigger.tsx
2605
+ var import_react_aria_components29 = require("react-aria-components");
2606
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2607
+ var DrawerTrigger = ({
2608
+ open,
2609
+ children,
2610
+ ...props
2611
+ }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_aria_components29.DialogTrigger, { isOpen: open, ...props, children });
2612
+
2613
+ // src/Drawer/Drawer.tsx
2614
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2615
+ var Drawer = ({
2616
+ children,
2617
+ variant,
2618
+ size: size2,
2619
+ open,
2620
+ keyboardDismissable,
2621
+ closeButton,
2622
+ role = "complementary",
2623
+ ...props
2624
+ }) => {
2625
+ const ref = (0, import_react31.useRef)(null);
2626
+ const classNames3 = (0, import_system45.useClassNames)({ component: "Drawer", variant, size: size2 });
2627
+ const ctx = (0, import_react31.useContext)(import_react_aria_components30.OverlayTriggerStateContext);
2628
+ const isSmallScreen = (0, import_system45.useSmallScreen)();
2629
+ const landmarkAria = (0, import_landmark.useLandmark)({ ...props, role }, ref);
2630
+ const landmarkProps = isSmallScreen ? {} : landmarkAria.landmarkProps;
2631
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2632
+ DrawerModal,
2633
+ {
2634
+ className: classNames3.overlay,
2635
+ open,
2636
+ keyboardDismissable,
2637
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DrawerContext.Provider, { value: { variant, size: size2 }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2638
+ import_react_aria_components30.Dialog,
2639
+ {
2640
+ ...props,
2641
+ ...landmarkProps,
2642
+ className: (0, import_system45.cn)(
2643
+ "h-(--visual-viewport-height) outline-none",
2644
+ 'grid [grid-template-areas:"title"_"content"_"actions"]',
2645
+ classNames3.container
2646
+ ),
2647
+ children: [
2648
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2649
+ CloseButton,
2650
+ {
2651
+ "aria-label": "dismiss drawer",
2652
+ style: { "--i": 0 },
2653
+ className: classNames3.closeButton,
2654
+ onPress: ctx == null ? void 0 : ctx.close
2655
+ }
2656
+ ),
2657
+ children
2658
+ ]
2659
+ }
2660
+ ) })
2661
+ }
2662
+ );
2663
+ };
2664
+ Drawer.Trigger = DrawerTrigger;
2665
+ Drawer.Title = DrawerTitle;
2666
+ Drawer.Content = DrawerContent;
2667
+ Drawer.Actions = DrawerActions;
2668
+
2505
2669
  // src/Footer/Footer.tsx
2506
- var import_system40 = require("@marigold/system");
2507
- var import_jsx_runtime47 = require("react/jsx-runtime");
2670
+ var import_system46 = require("@marigold/system");
2671
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2508
2672
  var Footer = ({ children, variant, size: size2, ...props }) => {
2509
- const classNames3 = (0, import_system40.useClassNames)({ component: "Footer", variant, size: size2 });
2510
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("footer", { ...props, className: classNames3, children });
2673
+ const classNames3 = (0, import_system46.useClassNames)({ component: "Footer", variant, size: size2 });
2674
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("footer", { ...props, className: classNames3, children });
2511
2675
  };
2512
2676
 
2513
2677
  // src/Form/Form.tsx
2514
- var import_react_aria_components27 = require("react-aria-components");
2678
+ var import_react_aria_components31 = require("react-aria-components");
2679
+ var import_system47 = require("@marigold/system");
2680
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2681
+ var _Form = ({ unstyled, maxWidth = "full", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2682
+ import_react_aria_components31.Form,
2683
+ {
2684
+ ...props,
2685
+ className: (0, import_system47.cn)(import_system47.maxWidth[maxWidth], unstyled && "contents")
2686
+ }
2687
+ );
2515
2688
 
2516
2689
  // src/Grid/Grid.tsx
2517
- var import_system41 = require("@marigold/system");
2690
+ var import_system48 = require("@marigold/system");
2518
2691
 
2519
2692
  // src/Grid/GridArea.tsx
2520
- var import_jsx_runtime48 = require("react/jsx-runtime");
2521
- var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { style: { gridArea: name }, children });
2693
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2694
+ var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { gridArea: name }, children });
2522
2695
 
2523
2696
  // src/Grid/Grid.tsx
2524
- var import_jsx_runtime49 = require("react/jsx-runtime");
2697
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2525
2698
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
2526
2699
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
2527
2700
  var Grid = ({
@@ -2533,10 +2706,10 @@ var Grid = ({
2533
2706
  space = 0,
2534
2707
  ...props
2535
2708
  }) => {
2536
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2709
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2537
2710
  "div",
2538
2711
  {
2539
- className: (0, import_system41.cn)("grid", import_system41.gapSpace[space], import_system41.height[height]),
2712
+ className: (0, import_system48.cn)("grid", import_system48.gapSpace[space], import_system48.height[height]),
2540
2713
  style: {
2541
2714
  gridTemplateAreas: parseGridAreas(areas),
2542
2715
  gridTemplateColumns: parseTemplateValue(columns),
@@ -2550,22 +2723,22 @@ var Grid = ({
2550
2723
  Grid.Area = GridArea;
2551
2724
 
2552
2725
  // src/Header/Header.tsx
2553
- var import_react_aria_components28 = require("react-aria-components");
2554
- var import_system42 = require("@marigold/system");
2555
- var import_jsx_runtime50 = require("react/jsx-runtime");
2726
+ var import_react_aria_components32 = require("react-aria-components");
2727
+ var import_system49 = require("@marigold/system");
2728
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2556
2729
  var _Header = ({ variant, size: size2, ...props }) => {
2557
- const classNames3 = (0, import_system42.useClassNames)({
2730
+ const classNames3 = (0, import_system49.useClassNames)({
2558
2731
  component: "Header",
2559
2732
  variant,
2560
2733
  size: size2
2561
2734
  });
2562
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_aria_components28.Header, { className: classNames3, ...props, children: props.children });
2735
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components32.Header, { className: classNames3, ...props, children: props.children });
2563
2736
  };
2564
2737
 
2565
2738
  // src/Headline/Headline.tsx
2566
- var import_react_aria_components29 = require("react-aria-components");
2567
- var import_system43 = require("@marigold/system");
2568
- var import_jsx_runtime51 = require("react/jsx-runtime");
2739
+ var import_react_aria_components33 = require("react-aria-components");
2740
+ var import_system50 = require("@marigold/system");
2741
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2569
2742
  var _Headline = ({
2570
2743
  variant,
2571
2744
  size: size2,
@@ -2575,31 +2748,31 @@ var _Headline = ({
2575
2748
  level = "1",
2576
2749
  ...props
2577
2750
  }) => {
2578
- const classNames3 = (0, import_system43.useClassNames)({
2751
+ const classNames3 = (0, import_system50.useClassNames)({
2579
2752
  component: "Headline",
2580
2753
  variant,
2581
2754
  size: size2 != null ? size2 : `level-${level}`
2582
2755
  });
2583
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2584
- import_react_aria_components29.Heading,
2756
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2757
+ import_react_aria_components33.Heading,
2585
2758
  {
2586
2759
  level: Number(level),
2587
2760
  ...props,
2588
- className: (0, import_system43.cn)(
2761
+ className: (0, import_system50.cn)(
2589
2762
  classNames3,
2590
2763
  "max-w-(--maxHeadlineWidth)",
2591
2764
  // possibly set by a <Container>
2592
- import_system43.textAlign[align]
2765
+ import_system50.textAlign[align]
2593
2766
  ),
2594
- style: { color: color && (0, import_system43.ensureCssVar)(color, "color") },
2767
+ style: { color: color && (0, import_system50.ensureCssVar)(color, "color") },
2595
2768
  children
2596
2769
  }
2597
2770
  );
2598
2771
  };
2599
2772
 
2600
2773
  // src/Image/Image.tsx
2601
- var import_system44 = require("@marigold/system");
2602
- var import_jsx_runtime52 = require("react/jsx-runtime");
2774
+ var import_system51 = require("@marigold/system");
2775
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2603
2776
  var Image = ({
2604
2777
  variant,
2605
2778
  size: size2,
@@ -2607,25 +2780,25 @@ var Image = ({
2607
2780
  position: position2 = "none",
2608
2781
  ...props
2609
2782
  }) => {
2610
- const classNames3 = (0, import_system44.useClassNames)({ component: "Image", variant, size: size2 });
2611
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2783
+ const classNames3 = (0, import_system51.useClassNames)({ component: "Image", variant, size: size2 });
2784
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2612
2785
  "img",
2613
2786
  {
2614
2787
  ...props,
2615
2788
  alt: props.alt,
2616
- className: (0, import_system44.cn)(
2789
+ className: (0, import_system51.cn)(
2617
2790
  fit !== "none" && "h-full w-full",
2618
2791
  classNames3,
2619
- import_system44.objectFit[fit],
2620
- import_system44.objectPosition[position2]
2792
+ import_system51.objectFit[fit],
2793
+ import_system51.objectPosition[position2]
2621
2794
  )
2622
2795
  }
2623
2796
  );
2624
2797
  };
2625
2798
 
2626
2799
  // src/Inline/Inline.tsx
2627
- var import_system45 = require("@marigold/system");
2628
- var import_jsx_runtime53 = require("react/jsx-runtime");
2800
+ var import_system52 = require("@marigold/system");
2801
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2629
2802
  var Inline = ({
2630
2803
  space = 0,
2631
2804
  alignX,
@@ -2634,15 +2807,15 @@ var Inline = ({
2634
2807
  ...props
2635
2808
  }) => {
2636
2809
  var _a, _b, _c, _d;
2637
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2810
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2638
2811
  "div",
2639
2812
  {
2640
2813
  ...props,
2641
- className: (0, import_system45.cn)(
2814
+ className: (0, import_system52.cn)(
2642
2815
  "flex flex-wrap",
2643
- import_system45.gapSpace[space],
2644
- alignX && ((_b = (_a = import_system45.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
2645
- alignY && ((_d = (_c = import_system45.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
2816
+ import_system52.gapSpace[space],
2817
+ alignX && ((_b = (_a = import_system52.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
2818
+ alignY && ((_d = (_c = import_system52.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
2646
2819
  ),
2647
2820
  children
2648
2821
  }
@@ -2650,57 +2823,57 @@ var Inline = ({
2650
2823
  };
2651
2824
 
2652
2825
  // src/DateField/DateField.tsx
2653
- var import_react29 = require("react");
2654
- var import_react_aria_components32 = require("react-aria-components");
2826
+ var import_react32 = require("react");
2827
+ var import_react_aria_components36 = require("react-aria-components");
2655
2828
 
2656
2829
  // src/DateField/DateInput.tsx
2657
- var import_react_aria_components31 = require("react-aria-components");
2658
- var import_system47 = require("@marigold/system");
2830
+ var import_react_aria_components35 = require("react-aria-components");
2831
+ var import_system54 = require("@marigold/system");
2659
2832
 
2660
2833
  // src/DateField/DateSegment.tsx
2661
- var import_react_aria_components30 = require("react-aria-components");
2662
- var import_system46 = require("@marigold/system");
2663
- var import_jsx_runtime54 = require("react/jsx-runtime");
2834
+ var import_react_aria_components34 = require("react-aria-components");
2835
+ var import_system53 = require("@marigold/system");
2836
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2664
2837
  var _DateSegment = ({ segment, ...props }) => {
2665
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2666
- import_react_aria_components30.DateSegment,
2838
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2839
+ import_react_aria_components34.DateSegment,
2667
2840
  {
2668
2841
  ...props,
2669
2842
  segment,
2670
2843
  style: {
2671
2844
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
2672
2845
  },
2673
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
2674
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2846
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2847
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2675
2848
  "span",
2676
2849
  {
2677
2850
  "aria-hidden": "true",
2678
- className: (0, import_system46.cn)(
2851
+ className: (0, import_system53.cn)(
2679
2852
  isPlaceholder ? "visible block" : "invisible hidden",
2680
2853
  "pointer-events-none w-full text-center"
2681
2854
  ),
2682
2855
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
2683
2856
  }
2684
2857
  ),
2685
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
2858
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
2686
2859
  ] })
2687
2860
  }
2688
2861
  );
2689
2862
  };
2690
2863
 
2691
2864
  // src/DateField/DateInput.tsx
2692
- var import_jsx_runtime55 = require("react/jsx-runtime");
2865
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2693
2866
  var _DateInput = ({ variant, size: size2, action, ...props }) => {
2694
- const classNames3 = (0, import_system47.useClassNames)({ component: "DateField", variant, size: size2 });
2695
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react_aria_components31.Group, { className: classNames3.field, children: [
2696
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components31.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(_DateSegment, { className: classNames3.segment, segment }) }),
2867
+ const classNames3 = (0, import_system54.useClassNames)({ component: "DateField", variant, size: size2 });
2868
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react_aria_components35.Group, { className: classNames3.field, children: [
2869
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_aria_components35.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_DateSegment, { className: classNames3.segment, segment }) }),
2697
2870
  action ? action : null
2698
2871
  ] });
2699
2872
  };
2700
2873
 
2701
2874
  // src/DateField/DateField.tsx
2702
- var import_jsx_runtime56 = require("react/jsx-runtime");
2703
- var _DateField = (0, import_react29.forwardRef)(
2875
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2876
+ var _DateField = (0, import_react32.forwardRef)(
2704
2877
  ({
2705
2878
  variant,
2706
2879
  size: size2,
@@ -2718,46 +2891,46 @@ var _DateField = (0, import_react29.forwardRef)(
2718
2891
  isRequired: required,
2719
2892
  ...rest
2720
2893
  };
2721
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2894
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2722
2895
  FieldBase,
2723
2896
  {
2724
- as: import_react_aria_components32.DateField,
2897
+ as: import_react_aria_components36.DateField,
2725
2898
  variant,
2726
2899
  size: size2,
2727
2900
  ref,
2728
2901
  ...props,
2729
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_DateInput, { action })
2902
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_DateInput, { action })
2730
2903
  }
2731
2904
  );
2732
2905
  }
2733
2906
  );
2734
2907
 
2735
2908
  // src/Calendar/Calendar.tsx
2736
- var import_react34 = require("react");
2737
- var import_react_aria_components38 = require("react-aria-components");
2738
- var import_system52 = require("@marigold/system");
2909
+ var import_react37 = require("react");
2910
+ var import_react_aria_components42 = require("react-aria-components");
2911
+ var import_system59 = require("@marigold/system");
2739
2912
 
2740
2913
  // src/Calendar/CalendarGrid.tsx
2741
- var import_react_aria_components34 = require("react-aria-components");
2742
- var import_system49 = require("@marigold/system");
2914
+ var import_react_aria_components38 = require("react-aria-components");
2915
+ var import_system56 = require("@marigold/system");
2743
2916
 
2744
2917
  // src/Calendar/CalendarGridHeader.tsx
2745
2918
  var import_date = require("@internationalized/date");
2746
- var import_react30 = require("react");
2747
- var import_react_aria_components33 = require("react-aria-components");
2919
+ var import_react33 = require("react");
2920
+ var import_react_aria_components37 = require("react-aria-components");
2748
2921
  var import_calendar = require("@react-aria/calendar");
2749
2922
  var import_i18n3 = require("@react-aria/i18n");
2750
- var import_system48 = require("@marigold/system");
2751
- var import_jsx_runtime57 = require("react/jsx-runtime");
2923
+ var import_system55 = require("@marigold/system");
2924
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2752
2925
  function CalendarGridHeader(props) {
2753
- const state = (0, import_react30.useContext)(import_react_aria_components33.CalendarStateContext);
2926
+ const state = (0, import_react33.useContext)(import_react_aria_components37.CalendarStateContext);
2754
2927
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
2755
2928
  const { locale } = (0, import_i18n3.useLocale)();
2756
2929
  const dayFormatter = (0, import_i18n3.useDateFormatter)({
2757
2930
  weekday: "short",
2758
2931
  timeZone: state.timeZone
2759
2932
  });
2760
- const weekDays = (0, import_react30.useMemo)(() => {
2933
+ const weekDays = (0, import_react33.useMemo)(() => {
2761
2934
  const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
2762
2935
  return [...new Array(7).keys()].map((index2) => {
2763
2936
  const date = weekStart.add({ days: index2 });
@@ -2765,21 +2938,21 @@ function CalendarGridHeader(props) {
2765
2938
  return dayFormatter.format(dateDay);
2766
2939
  });
2767
2940
  }, [locale, state.timeZone, dayFormatter]);
2768
- const classNames3 = (0, import_system48.useClassNames)({ component: "Calendar" });
2769
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
2941
+ const classNames3 = (0, import_system55.useClassNames)({ component: "Calendar" });
2942
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
2770
2943
  }
2771
2944
 
2772
2945
  // src/Calendar/CalendarGrid.tsx
2773
- var import_jsx_runtime58 = require("react/jsx-runtime");
2946
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2774
2947
  var _CalendarGrid = () => {
2775
- const classNames3 = (0, import_system49.useClassNames)({ component: "Calendar" });
2776
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react_aria_components34.CalendarGrid, { className: classNames3.calendarGrid, children: [
2777
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CalendarGridHeader, {}),
2778
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components34.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2779
- import_react_aria_components34.CalendarCell,
2948
+ const classNames3 = (0, import_system56.useClassNames)({ component: "Calendar" });
2949
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react_aria_components38.CalendarGrid, { className: classNames3.calendarGrid, children: [
2950
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CalendarGridHeader, {}),
2951
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components38.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2952
+ import_react_aria_components38.CalendarCell,
2780
2953
  {
2781
2954
  date,
2782
- className: (0, import_system49.cn)(
2955
+ className: (0, import_system56.cn)(
2783
2956
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
2784
2957
  classNames3.calendarCell
2785
2958
  )
@@ -2789,9 +2962,9 @@ var _CalendarGrid = () => {
2789
2962
  };
2790
2963
 
2791
2964
  // src/Calendar/CalendarListBox.tsx
2792
- var import_react31 = require("react");
2793
- var import_react_aria_components35 = require("react-aria-components");
2794
- var import_system50 = require("@marigold/system");
2965
+ var import_react34 = require("react");
2966
+ var import_react_aria_components39 = require("react-aria-components");
2967
+ var import_system57 = require("@marigold/system");
2795
2968
 
2796
2969
  // src/Calendar/useFormattedMonths.tsx
2797
2970
  var import_i18n4 = require("@react-aria/i18n");
@@ -2810,60 +2983,60 @@ function useFormattedMonths(timeZone, focusedDate) {
2810
2983
  }
2811
2984
 
2812
2985
  // src/Calendar/CalendarListBox.tsx
2813
- var import_jsx_runtime59 = require("react/jsx-runtime");
2986
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2814
2987
  function CalendarListBox({
2815
2988
  type,
2816
2989
  isDisabled,
2817
2990
  setSelectedDropdown
2818
2991
  }) {
2819
- const state = (0, import_react31.useContext)(import_react_aria_components35.CalendarStateContext);
2992
+ const state = (0, import_react34.useContext)(import_react_aria_components39.CalendarStateContext);
2820
2993
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
2821
2994
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2822
- const { select: selectClassNames } = (0, import_system50.useClassNames)({ component: "Select" });
2823
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
2995
+ const { select: selectClassNames } = (0, import_system57.useClassNames)({ component: "Select" });
2996
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
2824
2997
  "button",
2825
2998
  {
2826
2999
  disabled: isDisabled,
2827
3000
  onClick: () => setSelectedDropdown(type),
2828
- className: (0, import_system50.cn)(buttonStyles, selectClassNames),
3001
+ className: (0, import_system57.cn)(buttonStyles, selectClassNames),
2829
3002
  "data-testid": type,
2830
3003
  children: [
2831
3004
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
2832
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronDown, {})
3005
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ChevronDown, {})
2833
3006
  ]
2834
3007
  }
2835
3008
  );
2836
3009
  }
2837
3010
 
2838
3011
  // src/Calendar/MonthControls.tsx
2839
- var import_system51 = require("@marigold/system");
2840
- var import_jsx_runtime60 = require("react/jsx-runtime");
3012
+ var import_system58 = require("@marigold/system");
3013
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2841
3014
  function MonthControls() {
2842
- const classNames3 = (0, import_system51.useClassNames)({ component: "Calendar" });
2843
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
3015
+ const classNames3 = (0, import_system58.useClassNames)({ component: "Calendar" });
3016
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
2844
3017
  "div",
2845
3018
  {
2846
- className: (0, import_system51.cn)(
3019
+ className: (0, import_system58.cn)(
2847
3020
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button]:px-2 [&_button]:py-1 [&_button:disabled]:cursor-not-allowed",
2848
3021
  classNames3.calendarControllers
2849
3022
  ),
2850
3023
  children: [
2851
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3024
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2852
3025
  IconButton,
2853
3026
  {
2854
- className: (0, import_system51.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
3027
+ className: (0, import_system58.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
2855
3028
  variant: "navigation",
2856
3029
  slot: "previous",
2857
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChevronLeft, {})
3030
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronLeft, {})
2858
3031
  }
2859
3032
  ),
2860
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3033
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2861
3034
  IconButton,
2862
3035
  {
2863
- className: (0, import_system51.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
3036
+ className: (0, import_system58.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
2864
3037
  variant: "navigation",
2865
3038
  slot: "next",
2866
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChevronRight, {})
3039
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronRight, {})
2867
3040
  }
2868
3041
  )
2869
3042
  ]
@@ -2873,24 +3046,24 @@ function MonthControls() {
2873
3046
  var MonthControls_default = MonthControls;
2874
3047
 
2875
3048
  // src/Calendar/MonthListBox.tsx
2876
- var import_react32 = require("react");
2877
- var import_react_aria_components36 = require("react-aria-components");
2878
- var import_jsx_runtime61 = require("react/jsx-runtime");
3049
+ var import_react35 = require("react");
3050
+ var import_react_aria_components40 = require("react-aria-components");
3051
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2879
3052
  var MonthListBox = ({ setSelectedDropdown }) => {
2880
- const state = (0, import_react32.useContext)(import_react_aria_components36.CalendarStateContext);
3053
+ const state = (0, import_react35.useContext)(import_react_aria_components40.CalendarStateContext);
2881
3054
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
2882
3055
  let onChange2 = (index2) => {
2883
3056
  let value = Number(index2) + 1;
2884
3057
  let date = state.focusedDate.set({ month: value });
2885
3058
  state.setFocusedDate(date);
2886
3059
  };
2887
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3060
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2888
3061
  "ul",
2889
3062
  {
2890
3063
  "data-testid": "monthOptions",
2891
3064
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2892
3065
  children: months.map((month, index2) => {
2893
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3066
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2894
3067
  _Button,
2895
3068
  {
2896
3069
  slot: "previous",
@@ -2911,12 +3084,12 @@ var MonthListBox = ({ setSelectedDropdown }) => {
2911
3084
  var MonthListBox_default = MonthListBox;
2912
3085
 
2913
3086
  // src/Calendar/YearListBox.tsx
2914
- var import_react33 = require("react");
2915
- var import_react_aria_components37 = require("react-aria-components");
3087
+ var import_react36 = require("react");
3088
+ var import_react_aria_components41 = require("react-aria-components");
2916
3089
  var import_i18n5 = require("@react-aria/i18n");
2917
- var import_jsx_runtime62 = require("react/jsx-runtime");
3090
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2918
3091
  var YearListBox = ({ setSelectedDropdown }) => {
2919
- const state = (0, import_react33.useContext)(import_react_aria_components37.CalendarStateContext);
3092
+ const state = (0, import_react36.useContext)(import_react_aria_components41.CalendarStateContext);
2920
3093
  const years = [];
2921
3094
  let formatter = (0, import_i18n5.useDateFormatter)({
2922
3095
  year: "numeric",
@@ -2929,8 +3102,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
2929
3102
  formatted: formatter.format(date.toDate(state.timeZone))
2930
3103
  });
2931
3104
  }
2932
- const activeButtonRef = (0, import_react33.useRef)(null);
2933
- (0, import_react33.useEffect)(() => {
3105
+ const activeButtonRef = (0, import_react36.useRef)(null);
3106
+ (0, import_react36.useEffect)(() => {
2934
3107
  if (activeButtonRef.current) {
2935
3108
  const activeButton = activeButtonRef.current;
2936
3109
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -2944,19 +3117,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
2944
3117
  let date = years[index2].value;
2945
3118
  state.setFocusedDate(date);
2946
3119
  };
2947
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3120
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2948
3121
  "ul",
2949
3122
  {
2950
3123
  "data-testid": "yearOptions",
2951
3124
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2952
3125
  children: years.map((year, index2) => {
2953
3126
  const isActive = +year.formatted === state.focusedDate.year;
2954
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3127
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2955
3128
  "div",
2956
3129
  {
2957
3130
  ref: isActive ? activeButtonRef : null,
2958
3131
  style: { height: "100%", width: "100%" },
2959
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3132
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2960
3133
  _Button,
2961
3134
  {
2962
3135
  slot: "previous",
@@ -2981,7 +3154,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
2981
3154
  var YearListBox_default = YearListBox;
2982
3155
 
2983
3156
  // src/Calendar/Calendar.tsx
2984
- var import_jsx_runtime63 = require("react/jsx-runtime");
3157
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2985
3158
  var _Calendar = ({
2986
3159
  disabled,
2987
3160
  readOnly,
@@ -2996,24 +3169,24 @@ var _Calendar = ({
2996
3169
  isDateUnavailable: dateUnavailable,
2997
3170
  ...rest
2998
3171
  };
2999
- const classNames3 = (0, import_system52.useClassNames)({ component: "Calendar" });
3000
- const [selectedDropdown, setSelectedDropdown] = (0, import_react34.useState)();
3172
+ const classNames3 = (0, import_system59.useClassNames)({ component: "Calendar" });
3173
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react37.useState)();
3001
3174
  const ViewMap = {
3002
- month: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MonthListBox_default, { setSelectedDropdown }),
3003
- year: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(YearListBox_default, { setSelectedDropdown })
3175
+ month: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(MonthListBox_default, { setSelectedDropdown }),
3176
+ year: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(YearListBox_default, { setSelectedDropdown })
3004
3177
  };
3005
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3006
- import_react_aria_components38.Calendar,
3178
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3179
+ import_react_aria_components42.Calendar,
3007
3180
  {
3008
- className: (0, import_system52.cn)(
3181
+ className: (0, import_system59.cn)(
3009
3182
  "flex min-h-[350px] w-fit flex-col rounded-xs p-4",
3010
3183
  classNames3.calendar
3011
3184
  ),
3012
3185
  ...props,
3013
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
3014
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
3015
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex w-fit gap-4", children: [
3016
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3186
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
3187
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
3188
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex w-fit gap-4", children: [
3189
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3017
3190
  CalendarListBox,
3018
3191
  {
3019
3192
  type: "month",
@@ -3021,7 +3194,7 @@ var _Calendar = ({
3021
3194
  setSelectedDropdown
3022
3195
  }
3023
3196
  ),
3024
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3197
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3025
3198
  CalendarListBox,
3026
3199
  {
3027
3200
  type: "year",
@@ -3030,20 +3203,20 @@ var _Calendar = ({
3030
3203
  }
3031
3204
  )
3032
3205
  ] }),
3033
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MonthControls_default, {})
3206
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(MonthControls_default, {})
3034
3207
  ] }),
3035
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_CalendarGrid, {})
3208
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_CalendarGrid, {})
3036
3209
  ] })
3037
3210
  }
3038
3211
  );
3039
3212
  };
3040
3213
 
3041
3214
  // src/DatePicker/DatePicker.tsx
3042
- var import_react35 = __toESM(require("react"));
3043
- var import_react_aria_components39 = require("react-aria-components");
3044
- var import_system53 = require("@marigold/system");
3045
- var import_jsx_runtime64 = require("react/jsx-runtime");
3046
- var _DatePicker = import_react35.default.forwardRef(
3215
+ var import_react38 = __toESM(require("react"));
3216
+ var import_react_aria_components43 = require("react-aria-components");
3217
+ var import_system60 = require("@marigold/system");
3218
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3219
+ var _DatePicker = import_react38.default.forwardRef(
3047
3220
  ({
3048
3221
  dateUnavailable,
3049
3222
  disabled,
@@ -3066,24 +3239,24 @@ var _DatePicker = import_react35.default.forwardRef(
3066
3239
  granularity,
3067
3240
  ...rest
3068
3241
  };
3069
- const classNames3 = (0, import_system53.useClassNames)({
3242
+ const classNames3 = (0, import_system60.useClassNames)({
3070
3243
  component: "DatePicker",
3071
3244
  size: size2,
3072
3245
  variant
3073
3246
  });
3074
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3247
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3075
3248
  FieldBase,
3076
3249
  {
3077
- as: import_react_aria_components39.DatePicker,
3250
+ as: import_react_aria_components43.DatePicker,
3078
3251
  variant,
3079
3252
  size: size2,
3080
3253
  ...props,
3081
3254
  ref,
3082
3255
  children: [
3083
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3256
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3084
3257
  _DateInput,
3085
3258
  {
3086
- action: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3259
+ action: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3087
3260
  "svg",
3088
3261
  {
3089
3262
  "data-testid": "action",
@@ -3091,12 +3264,12 @@ var _DatePicker = import_react35.default.forwardRef(
3091
3264
  width: 24,
3092
3265
  height: 24,
3093
3266
  fill: "currentColor",
3094
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
3267
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
3095
3268
  }
3096
3269
  ) })
3097
3270
  }
3098
3271
  ),
3099
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria_components39.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Calendar, { disabled }) }) })
3272
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_aria_components43.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Calendar, { disabled }) }) })
3100
3273
  ]
3101
3274
  }
3102
3275
  );
@@ -3104,53 +3277,53 @@ var _DatePicker = import_react35.default.forwardRef(
3104
3277
  );
3105
3278
 
3106
3279
  // src/Inset/Inset.tsx
3107
- var import_system54 = require("@marigold/system");
3108
- var import_jsx_runtime65 = require("react/jsx-runtime");
3109
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3280
+ var import_system61 = require("@marigold/system");
3281
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3282
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3110
3283
  "div",
3111
3284
  {
3112
- className: (0, import_system54.cn)(
3113
- space && import_system54.paddingSpace[space],
3114
- !space && spaceX && import_system54.paddingSpaceX[spaceX],
3115
- !space && spaceY && import_system54.paddingSpaceY[spaceY]
3285
+ className: (0, import_system61.cn)(
3286
+ space && import_system61.paddingSpace[space],
3287
+ !space && spaceX && import_system61.paddingSpaceX[spaceX],
3288
+ !space && spaceY && import_system61.paddingSpaceY[spaceY]
3116
3289
  ),
3117
3290
  children
3118
3291
  }
3119
3292
  );
3120
3293
 
3121
3294
  // src/Link/Link.tsx
3122
- var import_react36 = require("react");
3123
- var import_react_aria_components40 = require("react-aria-components");
3124
- var import_system55 = require("@marigold/system");
3125
- var import_jsx_runtime66 = require("react/jsx-runtime");
3126
- var _Link = (0, import_react36.forwardRef)(
3295
+ var import_react39 = require("react");
3296
+ var import_react_aria_components44 = require("react-aria-components");
3297
+ var import_system62 = require("@marigold/system");
3298
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3299
+ var _Link = (0, import_react39.forwardRef)(
3127
3300
  ({ variant, size: size2, disabled, children, ...props }, ref) => {
3128
- const classNames3 = (0, import_system55.useClassNames)({
3301
+ const classNames3 = (0, import_system62.useClassNames)({
3129
3302
  component: "Link",
3130
3303
  variant,
3131
3304
  size: size2
3132
3305
  });
3133
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components40.Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3306
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_aria_components44.Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
3134
3307
  }
3135
3308
  );
3136
3309
 
3137
3310
  // src/List/List.tsx
3138
- var import_system56 = require("@marigold/system");
3311
+ var import_system63 = require("@marigold/system");
3139
3312
 
3140
3313
  // src/List/Context.ts
3141
- var import_react37 = require("react");
3142
- var ListContext = (0, import_react37.createContext)({});
3143
- var useListContext = () => (0, import_react37.useContext)(ListContext);
3314
+ var import_react40 = require("react");
3315
+ var ListContext = (0, import_react40.createContext)({});
3316
+ var useListContext = () => (0, import_react40.useContext)(ListContext);
3144
3317
 
3145
3318
  // src/List/ListItem.tsx
3146
- var import_jsx_runtime67 = require("react/jsx-runtime");
3319
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3147
3320
  var ListItem = ({ children, ...props }) => {
3148
3321
  const { classNames: classNames3 } = useListContext();
3149
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("li", { ...props, className: classNames3, children });
3322
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("li", { ...props, className: classNames3, children });
3150
3323
  };
3151
3324
 
3152
3325
  // src/List/List.tsx
3153
- var import_jsx_runtime68 = require("react/jsx-runtime");
3326
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3154
3327
  var List = ({
3155
3328
  as = "ul",
3156
3329
  children,
@@ -3159,38 +3332,38 @@ var List = ({
3159
3332
  ...props
3160
3333
  }) => {
3161
3334
  const Component2 = as;
3162
- const classNames3 = (0, import_system56.useClassNames)({ component: "List", variant, size: size2 });
3163
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3335
+ const classNames3 = (0, import_system63.useClassNames)({ component: "List", variant, size: size2 });
3336
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
3164
3337
  };
3165
3338
  List.Item = ListItem;
3166
3339
 
3167
3340
  // src/Menu/Menu.tsx
3168
- var import_react_aria_components43 = require("react-aria-components");
3169
- var import_system59 = require("@marigold/system");
3341
+ var import_react_aria_components47 = require("react-aria-components");
3342
+ var import_system66 = require("@marigold/system");
3170
3343
 
3171
3344
  // src/Menu/MenuItem.tsx
3172
- var import_react_aria_components41 = require("react-aria-components");
3173
- var import_system57 = require("@marigold/system");
3174
- var import_jsx_runtime69 = require("react/jsx-runtime");
3345
+ var import_react_aria_components45 = require("react-aria-components");
3346
+ var import_system64 = require("@marigold/system");
3347
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3175
3348
  var _MenuItem = ({ children, ...props }) => {
3176
- const classNames3 = (0, import_system57.useClassNames)({ component: "Menu" });
3177
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components41.MenuItem, { ...props, className: classNames3.item, children });
3349
+ const classNames3 = (0, import_system64.useClassNames)({ component: "Menu" });
3350
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_aria_components45.MenuItem, { ...props, className: classNames3.item, children });
3178
3351
  };
3179
3352
 
3180
3353
  // src/Menu/MenuSection.tsx
3181
- var import_react_aria_components42 = require("react-aria-components");
3182
- var import_system58 = require("@marigold/system");
3183
- var import_jsx_runtime70 = require("react/jsx-runtime");
3354
+ var import_react_aria_components46 = require("react-aria-components");
3355
+ var import_system65 = require("@marigold/system");
3356
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3184
3357
  var _MenuSection = ({ children, title, ...props }) => {
3185
- const className = (0, import_system58.useClassNames)({ component: "Menu" });
3186
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react_aria_components42.MenuSection, { ...props, children: [
3187
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Header, { className: className.section, children: title }),
3358
+ const className = (0, import_system65.useClassNames)({ component: "Menu" });
3359
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react_aria_components46.MenuSection, { ...props, children: [
3360
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(_Header, { className: className.section, children: title }),
3188
3361
  children
3189
3362
  ] });
3190
3363
  };
3191
3364
 
3192
3365
  // src/Menu/Menu.tsx
3193
- var import_jsx_runtime71 = require("react/jsx-runtime");
3366
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3194
3367
  var _Menu = ({
3195
3368
  children,
3196
3369
  label,
@@ -3202,70 +3375,70 @@ var _Menu = ({
3202
3375
  "aria-label": ariaLabel,
3203
3376
  ...props
3204
3377
  }) => {
3205
- const classNames3 = (0, import_system59.useClassNames)({ component: "Menu", variant, size: size2 });
3206
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react_aria_components43.MenuTrigger, { ...props, children: [
3207
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
3208
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components43.Menu, { ...props, className: classNames3.container, children }) })
3378
+ const classNames3 = (0, import_system66.useClassNames)({ component: "Menu", variant, size: size2 });
3379
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react_aria_components47.MenuTrigger, { ...props, children: [
3380
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
3381
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_aria_components47.Menu, { ...props, className: classNames3.container, children }) })
3209
3382
  ] });
3210
3383
  };
3211
3384
  _Menu.Item = _MenuItem;
3212
3385
  _Menu.Section = _MenuSection;
3213
3386
 
3214
3387
  // src/Menu/ActionMenu.tsx
3215
- var import_react_aria_components44 = require("react-aria-components");
3216
- var import_system60 = require("@marigold/system");
3217
- var import_jsx_runtime72 = require("react/jsx-runtime");
3388
+ var import_react_aria_components48 = require("react-aria-components");
3389
+ var import_system67 = require("@marigold/system");
3390
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3218
3391
  var ActionMenu = ({
3219
3392
  variant,
3220
3393
  size: size2,
3221
3394
  disabled,
3222
3395
  ...props
3223
3396
  }) => {
3224
- const classNames3 = (0, import_system60.useClassNames)({ component: "Menu", variant, size: size2 });
3225
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react_aria_components44.MenuTrigger, { children: [
3226
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_system60.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
3227
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_aria_components44.Menu, { ...props, className: classNames3.container, children: props.children }) })
3397
+ const classNames3 = (0, import_system67.useClassNames)({ component: "Menu", variant, size: size2 });
3398
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react_aria_components48.MenuTrigger, { children: [
3399
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_system67.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
3400
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria_components48.Menu, { ...props, className: classNames3.container, children: props.children }) })
3228
3401
  ] });
3229
3402
  };
3230
3403
 
3231
3404
  // src/SectionMessage/SectionMessage.tsx
3232
- var import_react39 = require("react");
3405
+ var import_react42 = require("react");
3233
3406
  var import_button = require("@react-aria/button");
3234
- var import_system63 = require("@marigold/system");
3407
+ var import_system70 = require("@marigold/system");
3235
3408
 
3236
3409
  // src/SectionMessage/Context.tsx
3237
- var import_react38 = require("react");
3238
- var SectionMessageContext = (0, import_react38.createContext)({});
3239
- var useSectionMessageContext = () => (0, import_react38.useContext)(SectionMessageContext);
3410
+ var import_react41 = require("react");
3411
+ var SectionMessageContext = (0, import_react41.createContext)({});
3412
+ var useSectionMessageContext = () => (0, import_react41.useContext)(SectionMessageContext);
3240
3413
 
3241
3414
  // src/SectionMessage/SectionMessageContent.tsx
3242
- var import_system61 = require("@marigold/system");
3243
- var import_jsx_runtime73 = require("react/jsx-runtime");
3415
+ var import_system68 = require("@marigold/system");
3416
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3244
3417
  var SectionMessageContent = ({
3245
3418
  children
3246
3419
  }) => {
3247
3420
  const { classNames: classNames3 } = useSectionMessageContext();
3248
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: (0, import_system61.cn)("[grid-area:content]", classNames3.content), children });
3421
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: (0, import_system68.cn)("[grid-area:content]", classNames3.content), children });
3249
3422
  };
3250
3423
 
3251
3424
  // src/SectionMessage/SectionMessageTitle.tsx
3252
- var import_system62 = require("@marigold/system");
3253
- var import_jsx_runtime74 = require("react/jsx-runtime");
3425
+ var import_system69 = require("@marigold/system");
3426
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3254
3427
  var SectionMessageTitle = ({ children }) => {
3255
3428
  const { classNames: classNames3 } = useSectionMessageContext();
3256
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_system62.cn)("[grid-area:title]", classNames3.title), children });
3429
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_system69.cn)("[grid-area:title]", classNames3.title), children });
3257
3430
  };
3258
3431
 
3259
3432
  // src/SectionMessage/SectionMessage.tsx
3260
- var import_jsx_runtime75 = require("react/jsx-runtime");
3433
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3261
3434
  var icons = {
3262
- success: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3435
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3263
3436
  "svg",
3264
3437
  {
3265
3438
  xmlns: "http://www.w3.org/2000/svg",
3266
3439
  viewBox: "0 0 24 24",
3267
3440
  fill: "currentColor",
3268
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3441
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3269
3442
  "path",
3270
3443
  {
3271
3444
  fillRule: "evenodd",
@@ -3275,13 +3448,13 @@ var icons = {
3275
3448
  )
3276
3449
  }
3277
3450
  ),
3278
- info: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3451
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3279
3452
  "svg",
3280
3453
  {
3281
3454
  xmlns: "http://www.w3.org/2000/svg",
3282
3455
  viewBox: "0 0 24 24",
3283
3456
  fill: "currentColor",
3284
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3457
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3285
3458
  "path",
3286
3459
  {
3287
3460
  fillRule: "evenodd",
@@ -3291,13 +3464,13 @@ var icons = {
3291
3464
  )
3292
3465
  }
3293
3466
  ),
3294
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3467
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3295
3468
  "svg",
3296
3469
  {
3297
3470
  xmlns: "http://www.w3.org/2000/svg",
3298
3471
  viewBox: "0 0 24 24",
3299
3472
  fill: "currentColor",
3300
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3473
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3301
3474
  "path",
3302
3475
  {
3303
3476
  fillRule: "evenodd",
@@ -3307,13 +3480,13 @@ var icons = {
3307
3480
  )
3308
3481
  }
3309
3482
  ),
3310
- error: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3483
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3311
3484
  "svg",
3312
3485
  {
3313
3486
  xmlns: "http://www.w3.org/2000/svg",
3314
3487
  viewBox: "0 0 24 24",
3315
3488
  fill: "currentColor",
3316
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3489
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3317
3490
  "path",
3318
3491
  {
3319
3492
  fillRule: "evenodd",
@@ -3333,14 +3506,14 @@ var SectionMessage = ({
3333
3506
  onCloseChange,
3334
3507
  ...props
3335
3508
  }) => {
3336
- const buttonRef = (0, import_react39.useRef)(null);
3337
- const classNames3 = (0, import_system63.useClassNames)({
3509
+ const buttonRef = (0, import_react42.useRef)(null);
3510
+ const classNames3 = (0, import_system70.useClassNames)({
3338
3511
  component: "SectionMessage",
3339
3512
  variant,
3340
3513
  size: size2
3341
3514
  });
3342
3515
  const Icon4 = icons[variant];
3343
- const [internalVisible, setInternalVisible] = (0, import_react39.useState)(true);
3516
+ const [internalVisible, setInternalVisible] = (0, import_react42.useState)(true);
3344
3517
  const isCurrentlyVisible = close != null ? close : internalVisible;
3345
3518
  const { buttonProps } = (0, import_button.useButton)(props, buttonRef);
3346
3519
  const handleClose = () => {
@@ -3350,30 +3523,22 @@ var SectionMessage = ({
3350
3523
  }
3351
3524
  };
3352
3525
  if (!isCurrentlyVisible) return null;
3353
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3526
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3354
3527
  "div",
3355
3528
  {
3356
3529
  role: variant === "error" ? "alert" : void 0,
3357
3530
  ...props,
3358
- className: (0, import_system63.cn)("grid auto-rows-min", classNames3.container),
3531
+ className: (0, import_system70.cn)("grid auto-rows-min", classNames3.container),
3359
3532
  children: [
3360
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_system63.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon4, {}) }),
3361
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3362
- "button",
3533
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_system70.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon4, {}) }),
3534
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3535
+ CloseButton,
3363
3536
  {
3364
3537
  ...buttonProps,
3365
3538
  ref: buttonRef,
3366
3539
  "aria-label": "close",
3367
- className: (0, import_system63.cn)("[grid-area:close]", classNames3.close),
3368
- onClick: handleClose,
3369
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3370
- "path",
3371
- {
3372
- fillRule: "evenodd",
3373
- clipRule: "evenodd",
3374
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
3375
- }
3376
- ) })
3540
+ className: (0, import_system70.cn)("[grid-area:close]", classNames3.close),
3541
+ onPress: handleClose
3377
3542
  }
3378
3543
  ),
3379
3544
  children
@@ -3385,7 +3550,7 @@ SectionMessage.Title = SectionMessageTitle;
3385
3550
  SectionMessage.Content = SectionMessageContent;
3386
3551
 
3387
3552
  // src/Multiselect/Multiselect.tsx
3388
- var import_react_aria_components45 = require("react-aria-components");
3553
+ var import_react_aria_components49 = require("react-aria-components");
3389
3554
 
3390
3555
  // ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
3391
3556
  function _typeof(o) {
@@ -3525,33 +3690,33 @@ function _objectWithoutProperties(e, t) {
3525
3690
  }
3526
3691
 
3527
3692
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
3528
- var import_react40 = require("react");
3693
+ var import_react43 = require("react");
3529
3694
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
3530
3695
  function useStateManager(_ref3) {
3531
3696
  var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
3532
- var _useState = (0, import_react40.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
3533
- var _useState3 = (0, import_react40.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
3534
- var _useState5 = (0, import_react40.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
3535
- var onChange2 = (0, import_react40.useCallback)(function(value2, actionMeta) {
3697
+ var _useState = (0, import_react43.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
3698
+ var _useState3 = (0, import_react43.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
3699
+ var _useState5 = (0, import_react43.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
3700
+ var onChange2 = (0, import_react43.useCallback)(function(value2, actionMeta) {
3536
3701
  if (typeof propsOnChange === "function") {
3537
3702
  propsOnChange(value2, actionMeta);
3538
3703
  }
3539
3704
  setStateValue(value2);
3540
3705
  }, [propsOnChange]);
3541
- var onInputChange = (0, import_react40.useCallback)(function(value2, actionMeta) {
3706
+ var onInputChange = (0, import_react43.useCallback)(function(value2, actionMeta) {
3542
3707
  var newValue;
3543
3708
  if (typeof propsOnInputChange === "function") {
3544
3709
  newValue = propsOnInputChange(value2, actionMeta);
3545
3710
  }
3546
3711
  setStateInputValue(newValue !== void 0 ? newValue : value2);
3547
3712
  }, [propsOnInputChange]);
3548
- var onMenuOpen = (0, import_react40.useCallback)(function() {
3713
+ var onMenuOpen = (0, import_react43.useCallback)(function() {
3549
3714
  if (typeof propsOnMenuOpen === "function") {
3550
3715
  propsOnMenuOpen();
3551
3716
  }
3552
3717
  setStateMenuIsOpen(true);
3553
3718
  }, [propsOnMenuOpen]);
3554
- var onMenuClose = (0, import_react40.useCallback)(function() {
3719
+ var onMenuClose = (0, import_react43.useCallback)(function() {
3555
3720
  if (typeof propsOnMenuClose === "function") {
3556
3721
  propsOnMenuClose();
3557
3722
  }
@@ -3584,7 +3749,7 @@ function _extends() {
3584
3749
 
3585
3750
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
3586
3751
  var React11 = __toESM(require("react"));
3587
- var import_react47 = require("react");
3752
+ var import_react50 = require("react");
3588
3753
 
3589
3754
  // ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
3590
3755
  function _classCallCheck(a, n) {
@@ -3692,11 +3857,11 @@ function _toConsumableArray(r) {
3692
3857
 
3693
3858
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
3694
3859
  var React10 = __toESM(require("react"));
3695
- var import_react45 = require("react");
3860
+ var import_react48 = require("react");
3696
3861
 
3697
3862
  // ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
3698
3863
  var React8 = __toESM(require("react"));
3699
- var import_react41 = require("react");
3864
+ var import_react44 = require("react");
3700
3865
 
3701
3866
  // ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
3702
3867
  var isDevelopment = false;
@@ -4884,15 +5049,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
4884
5049
  );
4885
5050
  var CacheProvider = EmotionCacheContext.Provider;
4886
5051
  var withEmotionCache = function withEmotionCache2(func) {
4887
- return /* @__PURE__ */ (0, import_react41.forwardRef)(function(props, ref) {
4888
- var cache = (0, import_react41.useContext)(EmotionCacheContext);
5052
+ return /* @__PURE__ */ (0, import_react44.forwardRef)(function(props, ref) {
5053
+ var cache = (0, import_react44.useContext)(EmotionCacheContext);
4889
5054
  return func(props, cache, ref);
4890
5055
  });
4891
5056
  };
4892
5057
  if (!isBrowser4) {
4893
5058
  withEmotionCache = function withEmotionCache3(func) {
4894
5059
  return function(props) {
4895
- var cache = (0, import_react41.useContext)(EmotionCacheContext);
5060
+ var cache = (0, import_react44.useContext)(EmotionCacheContext);
4896
5061
  if (cache === null) {
4897
5062
  cache = createCache({
4898
5063
  key: "css"
@@ -4976,7 +5141,7 @@ var Emotion$1 = Emotion;
4976
5141
  var React9 = __toESM(require("react"));
4977
5142
  var import_extends2 = __toESM(require_extends());
4978
5143
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
4979
- var jsx76 = function jsx77(type, props) {
5144
+ var jsx84 = function jsx85(type, props) {
4980
5145
  var args = arguments;
4981
5146
  if (props == null || !hasOwn.call(props, "css")) {
4982
5147
  return React9.createElement.apply(void 0, args);
@@ -4994,7 +5159,7 @@ var jsx76 = function jsx77(type, props) {
4994
5159
  var JSX;
4995
5160
  /* @__PURE__ */ (function(_JSX) {
4996
5161
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
4997
- })(jsx76 || (jsx76 = {}));
5162
+ })(jsx84 || (jsx84 = {}));
4998
5163
  function css() {
4999
5164
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5000
5165
  args[_key] = arguments[_key];
@@ -5024,7 +5189,7 @@ function _taggedTemplateLiteral(e, t) {
5024
5189
  }
5025
5190
 
5026
5191
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
5027
- var import_react44 = require("react");
5192
+ var import_react47 = require("react");
5028
5193
  var import_react_dom = require("react-dom");
5029
5194
 
5030
5195
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
@@ -5425,9 +5590,9 @@ function autoUpdate(reference, floating, update, options2) {
5425
5590
  }
5426
5591
 
5427
5592
  // ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.0_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
5428
- var import_react42 = require("react");
5593
+ var import_react45 = require("react");
5429
5594
  var isClient = typeof document !== "undefined";
5430
- var index = isClient ? import_react42.useLayoutEffect : import_react42.useEffect;
5595
+ var index = isClient ? import_react45.useLayoutEffect : import_react45.useEffect;
5431
5596
 
5432
5597
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
5433
5598
  var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
@@ -5761,13 +5926,13 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
5761
5926
  marginTop: spacing2.menuGutter
5762
5927
  });
5763
5928
  };
5764
- var PortalPlacementContext = /* @__PURE__ */ (0, import_react44.createContext)(null);
5929
+ var PortalPlacementContext = /* @__PURE__ */ (0, import_react47.createContext)(null);
5765
5930
  var MenuPlacer = function MenuPlacer2(props) {
5766
5931
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
5767
- var _ref3 = (0, import_react44.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
5768
- var ref = (0, import_react44.useRef)(null);
5769
- var _useState = (0, import_react44.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
5770
- var _useState3 = (0, import_react44.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
5932
+ var _ref3 = (0, import_react47.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
5933
+ var ref = (0, import_react47.useRef)(null);
5934
+ var _useState = (0, import_react47.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
5935
+ var _useState3 = (0, import_react47.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
5771
5936
  var controlHeight2 = theme.spacing.controlHeight;
5772
5937
  index(function() {
5773
5938
  var menuEl = ref.current;
@@ -5797,7 +5962,7 @@ var MenuPlacer = function MenuPlacer2(props) {
5797
5962
  };
5798
5963
  var Menu3 = function Menu4(props) {
5799
5964
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
5800
- return jsx76("div", _extends({}, getStyleProps(props, "menu", {
5965
+ return jsx84("div", _extends({}, getStyleProps(props, "menu", {
5801
5966
  menu: true
5802
5967
  }), {
5803
5968
  ref: innerRef
@@ -5819,7 +5984,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
5819
5984
  };
5820
5985
  var MenuList = function MenuList2(props) {
5821
5986
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
5822
- return jsx76("div", _extends({}, getStyleProps(props, "menuList", {
5987
+ return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
5823
5988
  "menu-list": true,
5824
5989
  "menu-list--is-multi": isMulti
5825
5990
  }), {
@@ -5839,7 +6004,7 @@ var noOptionsMessageCSS = noticeCSS;
5839
6004
  var loadingMessageCSS = noticeCSS;
5840
6005
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
5841
6006
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
5842
- return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6007
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
5843
6008
  children,
5844
6009
  innerProps
5845
6010
  }), "noOptionsMessage", {
@@ -5849,7 +6014,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
5849
6014
  };
5850
6015
  var LoadingMessage = function LoadingMessage2(_ref7) {
5851
6016
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
5852
- return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6017
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
5853
6018
  children,
5854
6019
  innerProps
5855
6020
  }), "loadingMessage", {
@@ -5869,16 +6034,16 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
5869
6034
  };
5870
6035
  var MenuPortal = function MenuPortal2(props) {
5871
6036
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
5872
- var menuPortalRef = (0, import_react44.useRef)(null);
5873
- var cleanupRef = (0, import_react44.useRef)(null);
5874
- var _useState5 = (0, import_react44.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
5875
- var portalPlacementContext = (0, import_react44.useMemo)(function() {
6037
+ var menuPortalRef = (0, import_react47.useRef)(null);
6038
+ var cleanupRef = (0, import_react47.useRef)(null);
6039
+ var _useState5 = (0, import_react47.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
6040
+ var portalPlacementContext = (0, import_react47.useMemo)(function() {
5876
6041
  return {
5877
6042
  setPortalPlacement
5878
6043
  };
5879
6044
  }, []);
5880
- var _useState7 = (0, import_react44.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
5881
- var updateComputedPosition = (0, import_react44.useCallback)(function() {
6045
+ var _useState7 = (0, import_react47.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
6046
+ var updateComputedPosition = (0, import_react47.useCallback)(function() {
5882
6047
  if (!controlElement) return;
5883
6048
  var rect = getBoundingClientObj(controlElement);
5884
6049
  var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
@@ -5893,7 +6058,7 @@ var MenuPortal = function MenuPortal2(props) {
5893
6058
  index(function() {
5894
6059
  updateComputedPosition();
5895
6060
  }, [updateComputedPosition]);
5896
- var runAutoUpdate = (0, import_react44.useCallback)(function() {
6061
+ var runAutoUpdate = (0, import_react47.useCallback)(function() {
5897
6062
  if (typeof cleanupRef.current === "function") {
5898
6063
  cleanupRef.current();
5899
6064
  cleanupRef.current = null;
@@ -5907,12 +6072,12 @@ var MenuPortal = function MenuPortal2(props) {
5907
6072
  index(function() {
5908
6073
  runAutoUpdate();
5909
6074
  }, [runAutoUpdate]);
5910
- var setMenuPortalElement = (0, import_react44.useCallback)(function(menuPortalElement) {
6075
+ var setMenuPortalElement = (0, import_react47.useCallback)(function(menuPortalElement) {
5911
6076
  menuPortalRef.current = menuPortalElement;
5912
6077
  runAutoUpdate();
5913
6078
  }, [runAutoUpdate]);
5914
6079
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
5915
- var menuWrapper = jsx76("div", _extends({
6080
+ var menuWrapper = jsx84("div", _extends({
5916
6081
  ref: setMenuPortalElement
5917
6082
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
5918
6083
  offset: computedPosition.offset,
@@ -5921,7 +6086,7 @@ var MenuPortal = function MenuPortal2(props) {
5921
6086
  }), "menuPortal", {
5922
6087
  "menu-portal": true
5923
6088
  }), innerProps), children);
5924
- return jsx76(PortalPlacementContext.Provider, {
6089
+ return jsx84(PortalPlacementContext.Provider, {
5925
6090
  value: portalPlacementContext
5926
6091
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom.createPortal)(menuWrapper, appendTo) : menuWrapper);
5927
6092
  };
@@ -5937,7 +6102,7 @@ var containerCSS = function containerCSS2(_ref3) {
5937
6102
  };
5938
6103
  var SelectContainer = function SelectContainer2(props) {
5939
6104
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
5940
- return jsx76("div", _extends({}, getStyleProps(props, "container", {
6105
+ return jsx84("div", _extends({}, getStyleProps(props, "container", {
5941
6106
  "--is-disabled": isDisabled,
5942
6107
  "--is-rtl": isRtl
5943
6108
  }), innerProps), children);
@@ -5958,7 +6123,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
5958
6123
  };
5959
6124
  var ValueContainer = function ValueContainer2(props) {
5960
6125
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
5961
- return jsx76("div", _extends({}, getStyleProps(props, "valueContainer", {
6126
+ return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
5962
6127
  "value-container": true,
5963
6128
  "value-container--is-multi": isMulti,
5964
6129
  "value-container--has-value": hasValue
@@ -5974,7 +6139,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
5974
6139
  };
5975
6140
  var IndicatorsContainer = function IndicatorsContainer2(props) {
5976
6141
  var children = props.children, innerProps = props.innerProps;
5977
- return jsx76("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6142
+ return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
5978
6143
  indicators: true
5979
6144
  }), innerProps), children);
5980
6145
  };
@@ -5995,7 +6160,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
5995
6160
  };
5996
6161
  var Svg = function Svg2(_ref3) {
5997
6162
  var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
5998
- return jsx76("svg", _extends({
6163
+ return jsx84("svg", _extends({
5999
6164
  height: size2,
6000
6165
  width: size2,
6001
6166
  viewBox: "0 0 20 20",
@@ -6005,16 +6170,16 @@ var Svg = function Svg2(_ref3) {
6005
6170
  }, props));
6006
6171
  };
6007
6172
  var CrossIcon = function CrossIcon2(props) {
6008
- return jsx76(Svg, _extends({
6173
+ return jsx84(Svg, _extends({
6009
6174
  size: 20
6010
- }, props), jsx76("path", {
6175
+ }, props), jsx84("path", {
6011
6176
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
6012
6177
  }));
6013
6178
  };
6014
6179
  var DownChevron = function DownChevron2(props) {
6015
- return jsx76(Svg, _extends({
6180
+ return jsx84(Svg, _extends({
6016
6181
  size: 20
6017
- }, props), jsx76("path", {
6182
+ }, props), jsx84("path", {
6018
6183
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
6019
6184
  }));
6020
6185
  };
@@ -6035,18 +6200,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
6035
6200
  var dropdownIndicatorCSS = baseCSS;
6036
6201
  var DropdownIndicator = function DropdownIndicator2(props) {
6037
6202
  var children = props.children, innerProps = props.innerProps;
6038
- return jsx76("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6203
+ return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6039
6204
  indicator: true,
6040
6205
  "dropdown-indicator": true
6041
- }), innerProps), children || jsx76(DownChevron, null));
6206
+ }), innerProps), children || jsx84(DownChevron, null));
6042
6207
  };
6043
6208
  var clearIndicatorCSS = baseCSS;
6044
6209
  var ClearIndicator = function ClearIndicator2(props) {
6045
6210
  var children = props.children, innerProps = props.innerProps;
6046
- return jsx76("div", _extends({}, getStyleProps(props, "clearIndicator", {
6211
+ return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
6047
6212
  indicator: true,
6048
6213
  "clear-indicator": true
6049
- }), innerProps), children || jsx76(CrossIcon, null));
6214
+ }), innerProps), children || jsx84(CrossIcon, null));
6050
6215
  };
6051
6216
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6052
6217
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -6062,7 +6227,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
6062
6227
  };
6063
6228
  var IndicatorSeparator = function IndicatorSeparator2(props) {
6064
6229
  var innerProps = props.innerProps;
6065
- return jsx76("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6230
+ return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6066
6231
  "indicator-separator": true
6067
6232
  })));
6068
6233
  };
@@ -6086,7 +6251,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
6086
6251
  };
6087
6252
  var LoadingDot = function LoadingDot2(_ref6) {
6088
6253
  var delay = _ref6.delay, offset2 = _ref6.offset;
6089
- return jsx76("span", {
6254
+ return jsx84("span", {
6090
6255
  css: /* @__PURE__ */ css({
6091
6256
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
6092
6257
  backgroundColor: "currentColor",
@@ -6101,20 +6266,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
6101
6266
  };
6102
6267
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
6103
6268
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
6104
- return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6269
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6105
6270
  innerProps,
6106
6271
  isRtl,
6107
6272
  size: size2
6108
6273
  }), "loadingIndicator", {
6109
6274
  indicator: true,
6110
6275
  "loading-indicator": true
6111
- }), innerProps), jsx76(LoadingDot, {
6276
+ }), innerProps), jsx84(LoadingDot, {
6112
6277
  delay: 0,
6113
6278
  offset: isRtl
6114
- }), jsx76(LoadingDot, {
6279
+ }), jsx84(LoadingDot, {
6115
6280
  delay: 160,
6116
6281
  offset: true
6117
- }), jsx76(LoadingDot, {
6282
+ }), jsx84(LoadingDot, {
6118
6283
  delay: 320,
6119
6284
  offset: !isRtl
6120
6285
  }));
@@ -6146,7 +6311,7 @@ var css$1 = function css2(_ref3, unstyled) {
6146
6311
  };
6147
6312
  var Control = function Control2(props) {
6148
6313
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
6149
- return jsx76("div", _extends({
6314
+ return jsx84("div", _extends({
6150
6315
  ref: innerRef
6151
6316
  }, getStyleProps(props, "control", {
6152
6317
  control: true,
@@ -6167,16 +6332,16 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
6167
6332
  };
6168
6333
  };
6169
6334
  var Group2 = function Group3(props) {
6170
- var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading4 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
6171
- return jsx76("div", _extends({}, getStyleProps(props, "group", {
6335
+ var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading5 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
6336
+ return jsx84("div", _extends({}, getStyleProps(props, "group", {
6172
6337
  group: true
6173
- }), innerProps), jsx76(Heading4, _extends({}, headingProps, {
6338
+ }), innerProps), jsx84(Heading5, _extends({}, headingProps, {
6174
6339
  selectProps,
6175
6340
  theme,
6176
6341
  getStyles,
6177
6342
  getClassNames: getClassNames2,
6178
6343
  cx
6179
- }), label), jsx76("div", null, children));
6344
+ }), label), jsx84("div", null, children));
6180
6345
  };
6181
6346
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
6182
6347
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -6198,7 +6363,7 @@ var GroupHeading = function GroupHeading2(props) {
6198
6363
  var _cleanCommonProps = cleanCommonProps(props);
6199
6364
  _cleanCommonProps.data;
6200
6365
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
6201
- return jsx76("div", _extends({}, getStyleProps(props, "groupHeading", {
6366
+ return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
6202
6367
  "group-heading": true
6203
6368
  }), innerProps));
6204
6369
  };
@@ -6250,11 +6415,11 @@ var inputStyle = function inputStyle2(isHidden) {
6250
6415
  var Input2 = function Input3(props) {
6251
6416
  var cx = props.cx, value = props.value;
6252
6417
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
6253
- return jsx76("div", _extends({}, getStyleProps(props, "input", {
6418
+ return jsx84("div", _extends({}, getStyleProps(props, "input", {
6254
6419
  "input-container": true
6255
6420
  }), {
6256
6421
  "data-value": value || ""
6257
- }), jsx76("input", _extends({
6422
+ }), jsx84("input", _extends({
6258
6423
  className: cx({
6259
6424
  input: true
6260
6425
  }, inputClassName),
@@ -6308,35 +6473,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
6308
6473
  };
6309
6474
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
6310
6475
  var children = _ref4.children, innerProps = _ref4.innerProps;
6311
- return jsx76("div", innerProps, children);
6476
+ return jsx84("div", innerProps, children);
6312
6477
  };
6313
6478
  var MultiValueContainer = MultiValueGeneric;
6314
6479
  var MultiValueLabel = MultiValueGeneric;
6315
6480
  function MultiValueRemove(_ref5) {
6316
6481
  var children = _ref5.children, innerProps = _ref5.innerProps;
6317
- return jsx76("div", _extends({
6482
+ return jsx84("div", _extends({
6318
6483
  role: "button"
6319
- }, innerProps), children || jsx76(CrossIcon, {
6484
+ }, innerProps), children || jsx84(CrossIcon, {
6320
6485
  size: 14
6321
6486
  }));
6322
6487
  }
6323
6488
  var MultiValue = function MultiValue2(props) {
6324
6489
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
6325
6490
  var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
6326
- return jsx76(Container2, {
6491
+ return jsx84(Container2, {
6327
6492
  data,
6328
6493
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
6329
6494
  "multi-value": true,
6330
6495
  "multi-value--is-disabled": isDisabled
6331
6496
  })), innerProps),
6332
6497
  selectProps
6333
- }, jsx76(Label3, {
6498
+ }, jsx84(Label3, {
6334
6499
  data,
6335
6500
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
6336
6501
  "multi-value__label": true
6337
6502
  })),
6338
6503
  selectProps
6339
- }, children), jsx76(Remove, {
6504
+ }, children), jsx84(Remove, {
6340
6505
  data,
6341
6506
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
6342
6507
  "multi-value__remove": true
@@ -6369,7 +6534,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
6369
6534
  };
6370
6535
  var Option = function Option2(props) {
6371
6536
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
6372
- return jsx76("div", _extends({}, getStyleProps(props, "option", {
6537
+ return jsx84("div", _extends({}, getStyleProps(props, "option", {
6373
6538
  option: true,
6374
6539
  "option--is-disabled": isDisabled,
6375
6540
  "option--is-focused": isFocused,
@@ -6393,7 +6558,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
6393
6558
  };
6394
6559
  var Placeholder = function Placeholder2(props) {
6395
6560
  var children = props.children, innerProps = props.innerProps;
6396
- return jsx76("div", _extends({}, getStyleProps(props, "placeholder", {
6561
+ return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
6397
6562
  placeholder: true
6398
6563
  }), innerProps), children);
6399
6564
  };
@@ -6415,7 +6580,7 @@ var css3 = function css4(_ref3, unstyled) {
6415
6580
  };
6416
6581
  var SingleValue = function SingleValue2(props) {
6417
6582
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
6418
- return jsx76("div", _extends({}, getStyleProps(props, "singleValue", {
6583
+ return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
6419
6584
  "single-value": true,
6420
6585
  "single-value--is-disabled": isDisabled
6421
6586
  }), innerProps), children);
@@ -6517,7 +6682,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
6517
6682
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
6518
6683
  };
6519
6684
  var A11yText = function A11yText2(props) {
6520
- return jsx76("span", _extends({
6685
+ return jsx84("span", _extends({
6521
6686
  css: _ref
6522
6687
  }, props));
6523
6688
  };
@@ -6578,10 +6743,10 @@ var LiveRegion = function LiveRegion2(props) {
6578
6743
  var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue, isLoading = selectProps.isLoading;
6579
6744
  var ariaLabel = selectProps["aria-label"];
6580
6745
  var ariaLive = selectProps["aria-live"];
6581
- var messages = (0, import_react45.useMemo)(function() {
6746
+ var messages = (0, import_react48.useMemo)(function() {
6582
6747
  return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
6583
6748
  }, [ariaLiveMessages]);
6584
- var ariaSelected = (0, import_react45.useMemo)(function() {
6749
+ var ariaSelected = (0, import_react48.useMemo)(function() {
6585
6750
  var message = "";
6586
6751
  if (ariaSelection && messages.onChange) {
6587
6752
  var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
@@ -6603,7 +6768,7 @@ var LiveRegion = function LiveRegion2(props) {
6603
6768
  }
6604
6769
  return message;
6605
6770
  }, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
6606
- var ariaFocused = (0, import_react45.useMemo)(function() {
6771
+ var ariaFocused = (0, import_react48.useMemo)(function() {
6607
6772
  var focusMsg = "";
6608
6773
  var focused = focusedOption || focusedValue;
6609
6774
  var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
@@ -6622,7 +6787,7 @@ var LiveRegion = function LiveRegion2(props) {
6622
6787
  }
6623
6788
  return focusMsg;
6624
6789
  }, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
6625
- var ariaResults = (0, import_react45.useMemo)(function() {
6790
+ var ariaResults = (0, import_react48.useMemo)(function() {
6626
6791
  var resultsMsg = "";
6627
6792
  if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
6628
6793
  var resultsMessage = screenReaderStatus2({
@@ -6636,7 +6801,7 @@ var LiveRegion = function LiveRegion2(props) {
6636
6801
  return resultsMsg;
6637
6802
  }, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
6638
6803
  var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
6639
- var ariaGuidance = (0, import_react45.useMemo)(function() {
6804
+ var ariaGuidance = (0, import_react48.useMemo)(function() {
6640
6805
  var guidanceMsg = "";
6641
6806
  if (messages.guidance) {
6642
6807
  var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
@@ -6652,18 +6817,18 @@ var LiveRegion = function LiveRegion2(props) {
6652
6817
  }
6653
6818
  return guidanceMsg;
6654
6819
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
6655
- var ScreenReaderText = jsx76(import_react45.Fragment, null, jsx76("span", {
6820
+ var ScreenReaderText = jsx84(import_react48.Fragment, null, jsx84("span", {
6656
6821
  id: "aria-selection"
6657
- }, ariaSelected), jsx76("span", {
6822
+ }, ariaSelected), jsx84("span", {
6658
6823
  id: "aria-focused"
6659
- }, ariaFocused), jsx76("span", {
6824
+ }, ariaFocused), jsx84("span", {
6660
6825
  id: "aria-results"
6661
- }, ariaResults), jsx76("span", {
6826
+ }, ariaResults), jsx84("span", {
6662
6827
  id: "aria-guidance"
6663
6828
  }, ariaGuidance));
6664
- return jsx76(import_react45.Fragment, null, jsx76(A11yText$1, {
6829
+ return jsx84(import_react48.Fragment, null, jsx84(A11yText$1, {
6665
6830
  id
6666
- }, isInitialFocus && ScreenReaderText), jsx76(A11yText$1, {
6831
+ }, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
6667
6832
  "aria-live": ariaLive,
6668
6833
  "aria-atomic": "false",
6669
6834
  "aria-relevant": "additions text",
@@ -6976,7 +7141,7 @@ var _excluded4 = ["innerRef"];
6976
7141
  function DummyInput(_ref3) {
6977
7142
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
6978
7143
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
6979
- return jsx76("input", _extends({
7144
+ return jsx84("input", _extends({
6980
7145
  ref: innerRef
6981
7146
  }, filteredProps, {
6982
7147
  css: /* @__PURE__ */ css({
@@ -7008,11 +7173,11 @@ var cancelScroll = function cancelScroll2(event) {
7008
7173
  };
7009
7174
  function useScrollCapture(_ref3) {
7010
7175
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
7011
- var isBottom = (0, import_react45.useRef)(false);
7012
- var isTop = (0, import_react45.useRef)(false);
7013
- var touchStart = (0, import_react45.useRef)(0);
7014
- var scrollTarget = (0, import_react45.useRef)(null);
7015
- var handleEventDelta = (0, import_react45.useCallback)(function(event, delta) {
7176
+ var isBottom = (0, import_react48.useRef)(false);
7177
+ var isTop = (0, import_react48.useRef)(false);
7178
+ var touchStart = (0, import_react48.useRef)(0);
7179
+ var scrollTarget = (0, import_react48.useRef)(null);
7180
+ var handleEventDelta = (0, import_react48.useCallback)(function(event, delta) {
7016
7181
  if (scrollTarget.current === null) return;
7017
7182
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
7018
7183
  var target = scrollTarget.current;
@@ -7046,17 +7211,17 @@ function useScrollCapture(_ref3) {
7046
7211
  cancelScroll(event);
7047
7212
  }
7048
7213
  }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);
7049
- var onWheel = (0, import_react45.useCallback)(function(event) {
7214
+ var onWheel = (0, import_react48.useCallback)(function(event) {
7050
7215
  handleEventDelta(event, event.deltaY);
7051
7216
  }, [handleEventDelta]);
7052
- var onTouchStart = (0, import_react45.useCallback)(function(event) {
7217
+ var onTouchStart = (0, import_react48.useCallback)(function(event) {
7053
7218
  touchStart.current = event.changedTouches[0].clientY;
7054
7219
  }, []);
7055
- var onTouchMove = (0, import_react45.useCallback)(function(event) {
7220
+ var onTouchMove = (0, import_react48.useCallback)(function(event) {
7056
7221
  var deltaY = touchStart.current - event.changedTouches[0].clientY;
7057
7222
  handleEventDelta(event, deltaY);
7058
7223
  }, [handleEventDelta]);
7059
- var startListening = (0, import_react45.useCallback)(function(el) {
7224
+ var startListening = (0, import_react48.useCallback)(function(el) {
7060
7225
  if (!el) return;
7061
7226
  var notPassive = supportsPassiveEvents ? {
7062
7227
  passive: false
@@ -7065,13 +7230,13 @@ function useScrollCapture(_ref3) {
7065
7230
  el.addEventListener("touchstart", onTouchStart, notPassive);
7066
7231
  el.addEventListener("touchmove", onTouchMove, notPassive);
7067
7232
  }, [onTouchMove, onTouchStart, onWheel]);
7068
- var stopListening = (0, import_react45.useCallback)(function(el) {
7233
+ var stopListening = (0, import_react48.useCallback)(function(el) {
7069
7234
  if (!el) return;
7070
7235
  el.removeEventListener("wheel", onWheel, false);
7071
7236
  el.removeEventListener("touchstart", onTouchStart, false);
7072
7237
  el.removeEventListener("touchmove", onTouchMove, false);
7073
7238
  }, [onTouchMove, onTouchStart, onWheel]);
7074
- (0, import_react45.useEffect)(function() {
7239
+ (0, import_react48.useEffect)(function() {
7075
7240
  if (!isEnabled) return;
7076
7241
  var element = scrollTarget.current;
7077
7242
  startListening(element);
@@ -7118,9 +7283,9 @@ var listenerOptions = {
7118
7283
  };
7119
7284
  function useScrollLock(_ref3) {
7120
7285
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
7121
- var originalStyles = (0, import_react45.useRef)({});
7122
- var scrollTarget = (0, import_react45.useRef)(null);
7123
- var addScrollLock = (0, import_react45.useCallback)(function(touchScrollTarget) {
7286
+ var originalStyles = (0, import_react48.useRef)({});
7287
+ var scrollTarget = (0, import_react48.useRef)(null);
7288
+ var addScrollLock = (0, import_react48.useCallback)(function(touchScrollTarget) {
7124
7289
  if (!canUseDOM) return;
7125
7290
  var target = document.body;
7126
7291
  var targetStyle = target && target.style;
@@ -7153,7 +7318,7 @@ function useScrollLock(_ref3) {
7153
7318
  }
7154
7319
  activeScrollLocks += 1;
7155
7320
  }, [accountForScrollbars]);
7156
- var removeScrollLock = (0, import_react45.useCallback)(function(touchScrollTarget) {
7321
+ var removeScrollLock = (0, import_react48.useCallback)(function(touchScrollTarget) {
7157
7322
  if (!canUseDOM) return;
7158
7323
  var target = document.body;
7159
7324
  var targetStyle = target && target.style;
@@ -7174,7 +7339,7 @@ function useScrollLock(_ref3) {
7174
7339
  }
7175
7340
  }
7176
7341
  }, [accountForScrollbars]);
7177
- (0, import_react45.useEffect)(function() {
7342
+ (0, import_react48.useEffect)(function() {
7178
7343
  if (!isEnabled) return;
7179
7344
  var element = scrollTarget.current;
7180
7345
  addScrollLock(element);
@@ -7218,7 +7383,7 @@ function ScrollManager(_ref3) {
7218
7383
  setScrollCaptureTarget(element);
7219
7384
  setScrollLockTarget(element);
7220
7385
  };
7221
- return jsx76(import_react45.Fragment, null, lockEnabled && jsx76("div", {
7386
+ return jsx84(import_react48.Fragment, null, lockEnabled && jsx84("div", {
7222
7387
  onClick: blurSelectInput,
7223
7388
  css: _ref2$1
7224
7389
  }), children(targetRef));
@@ -7237,7 +7402,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
7237
7402
  };
7238
7403
  var RequiredInput = function RequiredInput2(_ref3) {
7239
7404
  var name = _ref3.name, onFocus2 = _ref3.onFocus;
7240
- return jsx76("input", {
7405
+ return jsx84("input", {
7241
7406
  required: true,
7242
7407
  name,
7243
7408
  tabIndex: -1,
@@ -8796,7 +8961,7 @@ var Select = /* @__PURE__ */ function(_Component) {
8796
8961
  }
8797
8962
  }]);
8798
8963
  return Select3;
8799
- }(import_react45.Component);
8964
+ }(import_react48.Component);
8800
8965
  Select.defaultProps = defaultProps;
8801
8966
 
8802
8967
  // ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
@@ -8812,7 +8977,7 @@ var import_typeof5 = __toESM(require_typeof());
8812
8977
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
8813
8978
  var import_defineProperty3 = __toESM(require_defineProperty());
8814
8979
  var import_react_dom2 = require("react-dom");
8815
- var StateManagedSelect = /* @__PURE__ */ (0, import_react47.forwardRef)(function(props, ref) {
8980
+ var StateManagedSelect = /* @__PURE__ */ (0, import_react50.forwardRef)(function(props, ref) {
8816
8981
  var baseSelectProps = useStateManager(props);
8817
8982
  return /* @__PURE__ */ React11.createElement(Select, _extends({
8818
8983
  ref
@@ -8820,7 +8985,7 @@ var StateManagedSelect = /* @__PURE__ */ (0, import_react47.forwardRef)(function
8820
8985
  });
8821
8986
  var StateManagedSelect$1 = StateManagedSelect;
8822
8987
 
8823
- // ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
8988
+ // ../../node_modules/.pnpm/@react-aria+label@3.7.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
8824
8989
  var import_utils6 = require("@react-aria/utils");
8825
8990
  function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8826
8991
  let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
@@ -8833,7 +8998,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8833
8998
  id: labelId,
8834
8999
  htmlFor: labelElementType === "label" ? id : void 0
8835
9000
  };
8836
- } else if (!ariaLabelledby && !ariaLabel) console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
9001
+ } else if (!ariaLabelledby && !ariaLabel && process.env.NODE_ENV !== "production") console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
8837
9002
  let fieldProps = (0, import_utils6.useLabels)({
8838
9003
  id,
8839
9004
  "aria-label": ariaLabel,
@@ -8845,7 +9010,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8845
9010
  };
8846
9011
  }
8847
9012
 
8848
- // ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
9013
+ // ../../node_modules/.pnpm/@react-aria+label@3.7.17_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
8849
9014
  var import_utils7 = require("@react-aria/utils");
8850
9015
  function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
8851
9016
  let { description, errorMessage, isInvalid, validationState } = props;
@@ -8884,8 +9049,8 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
8884
9049
 
8885
9050
  // src/Multiselect/Multiselect.tsx
8886
9051
  var import_utils8 = require("@react-aria/utils");
8887
- var import_system64 = require("@marigold/system");
8888
- var import_jsx_runtime76 = require("react/jsx-runtime");
9052
+ var import_system71 = require("@marigold/system");
9053
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8889
9054
  var propsToBeRemoved = [
8890
9055
  "clearValue",
8891
9056
  "getStyles",
@@ -8911,8 +9076,8 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
8911
9076
  },
8912
9077
  {}
8913
9078
  );
8914
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8915
- import_react_aria_components45.Input,
9079
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9080
+ import_react_aria_components49.Input,
8916
9081
  {
8917
9082
  disabled: props.isDisabled,
8918
9083
  ref: innerRef,
@@ -8922,20 +9087,20 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
8922
9087
  );
8923
9088
  };
8924
9089
  var MultiValueRemove2 = ({ innerProps }) => {
8925
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria_components45.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
9090
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components49.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
8926
9091
  };
8927
9092
  var getClassNames = (classNames3) => ({
8928
- control: () => (0, import_system64.cn)(
9093
+ control: () => (0, import_system71.cn)(
8929
9094
  "relative flex items-center box-border flex-wrap justify-between",
8930
9095
  classNames3.container
8931
9096
  ),
8932
9097
  container: () => "pointer-events-auto",
8933
9098
  indicatorSeparator: () => "hidden",
8934
- menu: () => (0, import_system64.cn)("b", classNames3.listContainer),
8935
- menuList: () => (0, import_system64.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
8936
- multiValue: () => (0, import_system64.cn)(classNames3.tag, "m-0 "),
9099
+ menu: () => (0, import_system71.cn)("b", classNames3.listContainer),
9100
+ menuList: () => (0, import_system71.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
9101
+ multiValue: () => (0, import_system71.cn)(classNames3.tag, "m-0 "),
8937
9102
  multiValueLabel: () => "p-0",
8938
- option: ({ isFocused }) => (0, import_system64.cn)(classNames3.option, { isFocused }),
9103
+ option: ({ isFocused }) => (0, import_system71.cn)(classNames3.option, { isFocused }),
8939
9104
  placeholder: () => "hidden",
8940
9105
  valueContainer: () => classNames3.valueContainer
8941
9106
  });
@@ -8956,7 +9121,7 @@ var Multiselect = ({
8956
9121
  onSelectionChange,
8957
9122
  ...rest
8958
9123
  }) => {
8959
- const classNames3 = (0, import_system64.useClassNames)({
9124
+ const classNames3 = (0, import_system71.useClassNames)({
8960
9125
  component: "MultiSelect",
8961
9126
  size: size2,
8962
9127
  variant
@@ -8974,12 +9139,12 @@ var Multiselect = ({
8974
9139
  label: props.label,
8975
9140
  errorMessage
8976
9141
  });
8977
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8978
- import_react_aria_components45.Provider,
9142
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9143
+ import_react_aria_components49.Provider,
8979
9144
  {
8980
9145
  values: [
8981
9146
  [
8982
- import_react_aria_components45.FieldErrorContext,
9147
+ import_react_aria_components49.FieldErrorContext,
8983
9148
  {
8984
9149
  isInvalid: !!error,
8985
9150
  validationDetails: {},
@@ -8987,7 +9152,7 @@ var Multiselect = ({
8987
9152
  }
8988
9153
  ],
8989
9154
  [
8990
- import_react_aria_components45.InputContext,
9155
+ import_react_aria_components49.InputContext,
8991
9156
  {
8992
9157
  ...fieldProps,
8993
9158
  placeholder,
@@ -8995,25 +9160,25 @@ var Multiselect = ({
8995
9160
  }
8996
9161
  ],
8997
9162
  [
8998
- import_react_aria_components45.ButtonContext,
9163
+ import_react_aria_components49.ButtonContext,
8999
9164
  {
9000
9165
  // react-select doesn't handle readonly so we had to do it manually here
9001
9166
  // keep to the button disabled in read only to prevent menu from opening
9002
9167
  isDisabled: disabled || readOnly,
9003
- className: (0, import_system64.cn)("flex items-center", classNames3.closeButton)
9168
+ className: (0, import_system71.cn)("flex items-center", classNames3.closeButton)
9004
9169
  }
9005
9170
  ]
9006
9171
  ],
9007
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
9172
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
9008
9173
  "div",
9009
9174
  {
9010
- className: (0, import_system64.cn)(classNames3.field, "group/field"),
9175
+ className: (0, import_system71.cn)(classNames3.field, "group/field"),
9011
9176
  "data-required": props.required,
9012
9177
  "data-invalid": error,
9013
9178
  "data-readonly": readOnly,
9014
9179
  children: [
9015
- props.label && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Label, { ...labelProps, children: props.label }),
9016
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9180
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(_Label, { ...labelProps, children: props.label }),
9181
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9017
9182
  StateManagedSelect$1,
9018
9183
  {
9019
9184
  ...props,
@@ -9047,19 +9212,19 @@ var Multiselect = ({
9047
9212
  components: {
9048
9213
  Input: Input4,
9049
9214
  MultiValueRemove: MultiValueRemove2,
9050
- DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9215
+ DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9051
9216
  "button",
9052
9217
  {
9053
9218
  ...innerProps,
9054
9219
  disabled: isDisabled,
9055
9220
  className: classNames3.icon,
9056
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ChevronDown, { className: "size-4" })
9221
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronDown, { className: "size-4" })
9057
9222
  }
9058
9223
  )
9059
9224
  }
9060
9225
  }
9061
9226
  ),
9062
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(HelpText, { description, errorMessage })
9227
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(HelpText, { description, errorMessage })
9063
9228
  ]
9064
9229
  }
9065
9230
  )
@@ -9068,15 +9233,15 @@ var Multiselect = ({
9068
9233
  };
9069
9234
 
9070
9235
  // src/NumberField/NumberField.tsx
9071
- var import_react48 = require("react");
9072
- var import_react_aria_components47 = require("react-aria-components");
9073
- var import_system66 = require("@marigold/system");
9236
+ var import_react51 = require("react");
9237
+ var import_react_aria_components51 = require("react-aria-components");
9238
+ var import_system73 = require("@marigold/system");
9074
9239
 
9075
9240
  // src/NumberField/StepButton.tsx
9076
- var import_react_aria_components46 = require("react-aria-components");
9077
- var import_system65 = require("@marigold/system");
9078
- var import_jsx_runtime77 = require("react/jsx-runtime");
9079
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9241
+ var import_react_aria_components50 = require("react-aria-components");
9242
+ var import_system72 = require("@marigold/system");
9243
+ var import_jsx_runtime85 = require("react/jsx-runtime");
9244
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
9080
9245
  "path",
9081
9246
  {
9082
9247
  fillRule: "evenodd",
@@ -9084,7 +9249,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 1
9084
9249
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
9085
9250
  }
9086
9251
  ) });
9087
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9252
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
9088
9253
  "path",
9089
9254
  {
9090
9255
  fillRule: "evenodd",
@@ -9094,10 +9259,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width:
9094
9259
  ) });
9095
9260
  var _StepButton = ({ direction, className, ...props }) => {
9096
9261
  const Icon4 = direction === "up" ? Plus : Minus;
9097
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9098
- import_react_aria_components46.Button,
9262
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
9263
+ import_react_aria_components50.Button,
9099
9264
  {
9100
- className: (0, import_system65.cn)(
9265
+ className: (0, import_system72.cn)(
9101
9266
  [
9102
9267
  "flex items-center justify-center",
9103
9268
  "cursor-pointer data-disabled:cursor-not-allowed"
@@ -9105,14 +9270,14 @@ var _StepButton = ({ direction, className, ...props }) => {
9105
9270
  className
9106
9271
  ),
9107
9272
  ...props,
9108
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon4, {})
9273
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon4, {})
9109
9274
  }
9110
9275
  );
9111
9276
  };
9112
9277
 
9113
9278
  // src/NumberField/NumberField.tsx
9114
- var import_jsx_runtime78 = require("react/jsx-runtime");
9115
- var _NumberField = (0, import_react48.forwardRef)(
9279
+ var import_jsx_runtime86 = require("react/jsx-runtime");
9280
+ var _NumberField = (0, import_react51.forwardRef)(
9116
9281
  ({
9117
9282
  variant,
9118
9283
  size: size2,
@@ -9123,7 +9288,7 @@ var _NumberField = (0, import_react48.forwardRef)(
9123
9288
  hideStepper,
9124
9289
  ...rest
9125
9290
  }, ref) => {
9126
- const classNames3 = (0, import_system66.useClassNames)({
9291
+ const classNames3 = (0, import_system73.useClassNames)({
9127
9292
  component: "NumberField",
9128
9293
  size: size2,
9129
9294
  variant
@@ -9136,15 +9301,15 @@ var _NumberField = (0, import_react48.forwardRef)(
9136
9301
  ...rest
9137
9302
  };
9138
9303
  const showStepper = !hideStepper && !readOnly;
9139
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9304
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9140
9305
  FieldBase,
9141
9306
  {
9142
- as: import_react_aria_components47.NumberField,
9307
+ as: import_react_aria_components51.NumberField,
9143
9308
  ...props,
9144
9309
  "data-readonly": readOnly ? "true" : void 0,
9145
9310
  "data-stepper": showStepper ? "true" : void 0,
9146
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react_aria_components47.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
9147
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9311
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_aria_components51.Group, { className: (0, import_system73.cn)("flex items-stretch", classNames3.group), children: [
9312
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9148
9313
  _StepButton,
9149
9314
  {
9150
9315
  className: classNames3.stepper,
@@ -9152,14 +9317,14 @@ var _NumberField = (0, import_react48.forwardRef)(
9152
9317
  slot: "decrement"
9153
9318
  }
9154
9319
  ),
9155
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9156
- import_react_aria_components47.Input,
9320
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9321
+ import_react_aria_components51.Input,
9157
9322
  {
9158
9323
  ref,
9159
- className: (0, import_system66.cn)("h-full flex-1 outline-none", classNames3.input)
9324
+ className: (0, import_system73.cn)("h-full flex-1 outline-none", classNames3.input)
9160
9325
  }
9161
9326
  ),
9162
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9327
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9163
9328
  _StepButton,
9164
9329
  {
9165
9330
  className: classNames3.stepper,
@@ -9174,13 +9339,14 @@ var _NumberField = (0, import_react48.forwardRef)(
9174
9339
  );
9175
9340
 
9176
9341
  // src/Pagination/Pagination.tsx
9177
- var import_react52 = require("react");
9178
- var import_system69 = require("@marigold/system");
9342
+ var import_react54 = require("react");
9343
+ var import_focus2 = require("@react-aria/focus");
9344
+ var import_system76 = require("@marigold/system");
9179
9345
 
9180
9346
  // src/Pagination/Ellipsis.tsx
9181
- var import_jsx_runtime79 = require("react/jsx-runtime");
9347
+ var import_jsx_runtime87 = require("react/jsx-runtime");
9182
9348
  var Ellipsis = () => {
9183
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9349
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9184
9350
  "span",
9185
9351
  {
9186
9352
  className: "text-text-base flex h-8 w-8 items-center justify-center",
@@ -9191,13 +9357,13 @@ var Ellipsis = () => {
9191
9357
  };
9192
9358
 
9193
9359
  // src/Pagination/NavigationButton.tsx
9194
- var import_react49 = __toESM(require("react"));
9360
+ var import_react52 = require("react");
9195
9361
  var import_button2 = require("@react-aria/button");
9196
- var import_system67 = require("@marigold/system");
9197
- var import_jsx_runtime80 = require("react/jsx-runtime");
9362
+ var import_system74 = require("@marigold/system");
9363
+ var import_jsx_runtime88 = require("react/jsx-runtime");
9198
9364
  var NavigationButton = (props) => {
9199
- const ref = import_react49.default.useRef(null);
9200
- const classNames3 = (0, import_system67.useClassNames)({
9365
+ const ref = (0, import_react52.useRef)(null);
9366
+ const classNames3 = (0, import_system74.useClassNames)({
9201
9367
  component: "Pagination"
9202
9368
  });
9203
9369
  let { buttonProps } = (0, import_button2.useButton)(props, ref);
@@ -9210,20 +9376,14 @@ var NavigationButton = (props) => {
9210
9376
  position: position2,
9211
9377
  ...rest
9212
9378
  } = props;
9213
- (0, import_react49.useEffect)(() => {
9214
- if (registerRef) {
9215
- registerRef(ref.current);
9216
- return () => registerRef(null);
9217
- }
9218
- }, [registerRef]);
9219
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
9379
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
9220
9380
  "button",
9221
9381
  {
9222
9382
  ref,
9223
9383
  ...buttonProps,
9224
9384
  ...rest,
9225
9385
  disabled: isDisabled,
9226
- className: (0, import_system67.cn)(classNames3.navigationButton, controlLabel && "w-24 px-2"),
9386
+ className: (0, import_system74.cn)(classNames3.navigationButton, controlLabel && "w-24 px-2"),
9227
9387
  "data-selected": isSelected,
9228
9388
  children: [
9229
9389
  position2 === "left" && children,
@@ -9235,24 +9395,18 @@ var NavigationButton = (props) => {
9235
9395
  };
9236
9396
 
9237
9397
  // src/Pagination/PageButton.tsx
9238
- var import_react50 = require("react");
9398
+ var import_react53 = require("react");
9239
9399
  var import_button3 = require("@react-aria/button");
9240
- var import_system68 = require("@marigold/system");
9241
- var import_jsx_runtime81 = require("react/jsx-runtime");
9400
+ var import_system75 = require("@marigold/system");
9401
+ var import_jsx_runtime89 = require("react/jsx-runtime");
9242
9402
  var PageButton = (props) => {
9243
- const ref = (0, import_react50.useRef)(null);
9244
- const classNames3 = (0, import_system68.useClassNames)({
9403
+ const ref = (0, import_react53.useRef)(null);
9404
+ const classNames3 = (0, import_system75.useClassNames)({
9245
9405
  component: "Pagination"
9246
9406
  });
9247
9407
  let { buttonProps } = (0, import_button3.useButton)(props, ref);
9248
- let { page, selected, registerRef, isDisabled } = props;
9249
- (0, import_react50.useEffect)(() => {
9250
- if (registerRef) {
9251
- registerRef(ref.current);
9252
- return () => registerRef(null);
9253
- }
9254
- }, [registerRef]);
9255
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
9408
+ let { page, selected, isDisabled } = props;
9409
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9256
9410
  "button",
9257
9411
  {
9258
9412
  ref,
@@ -9268,122 +9422,6 @@ var PageButton = (props) => {
9268
9422
  );
9269
9423
  };
9270
9424
 
9271
- // src/Pagination/useKeyboardNavigation.tsx
9272
- var import_react51 = require("react");
9273
- var import_interactions2 = require("@react-aria/interactions");
9274
- var NavigationTypes = {
9275
- Prev: "prev",
9276
- Next: "next",
9277
- Page: "page",
9278
- Ellipsis: "ellipsis"
9279
- };
9280
- var useKeyboardNavigation = ({
9281
- page,
9282
- totalPages,
9283
- onChange: onChange2 = () => {
9284
- }
9285
- }) => {
9286
- const containerRef = (0, import_react51.useRef)(null);
9287
- const [focusedItem, setFocusedItem] = (0, import_react51.useState)({
9288
- type: "page",
9289
- value: page
9290
- });
9291
- const navigationItems = (0, import_react51.useRef)([]);
9292
- const buttonRefs = (0, import_react51.useRef)(/* @__PURE__ */ new Map());
9293
- const isItemDisabled = (0, import_react51.useCallback)(
9294
- (item) => {
9295
- if (item.type === NavigationTypes.Prev) return page <= 1;
9296
- if (item.type === NavigationTypes.Next) return page >= totalPages;
9297
- return item.type === NavigationTypes.Ellipsis;
9298
- },
9299
- [page, totalPages]
9300
- );
9301
- const findNextFocusableItem = (0, import_react51.useCallback)(
9302
- (current, direction) => {
9303
- const items = navigationItems.current.filter(
9304
- (item) => !isItemDisabled(item)
9305
- );
9306
- const currentIndex = items.findIndex(
9307
- (item) => item.type === current.type && item.value === current.value
9308
- );
9309
- if (currentIndex === -1) {
9310
- return items[0] || { type: NavigationTypes.Page, value: page };
9311
- }
9312
- const nextIndex = direction === "next" ? (currentIndex + 1) % items.length : (currentIndex - 1 + items.length) % items.length;
9313
- return items[nextIndex];
9314
- },
9315
- [isItemDisabled, page]
9316
- );
9317
- const focusItem = (0, import_react51.useCallback)(
9318
- (item) => {
9319
- if (isItemDisabled(item)) return;
9320
- const key = `${item.type}-${item.value}`;
9321
- const element = buttonRefs.current.get(key);
9322
- if (element && typeof element.focus === "function") {
9323
- element.focus();
9324
- setFocusedItem(item);
9325
- }
9326
- },
9327
- [isItemDisabled]
9328
- );
9329
- const { keyboardProps } = (0, import_interactions2.useKeyboard)({
9330
- onKeyDown: (e) => {
9331
- let newFocusedItem = focusedItem;
9332
- switch (e.key) {
9333
- case "ArrowLeft":
9334
- newFocusedItem = findNextFocusableItem(focusedItem, "prev");
9335
- break;
9336
- case "ArrowRight":
9337
- newFocusedItem = findNextFocusableItem(focusedItem, "next");
9338
- break;
9339
- case "Home":
9340
- newFocusedItem = navigationItems.current.find((item) => !isItemDisabled(item)) || focusedItem;
9341
- break;
9342
- case "End":
9343
- newFocusedItem = [...navigationItems.current].reverse().find((item) => !isItemDisabled(item)) || focusedItem;
9344
- break;
9345
- case "Enter":
9346
- case " ":
9347
- if (isItemDisabled(focusedItem)) return;
9348
- if (focusedItem.type === NavigationTypes.Page && typeof focusedItem.value === "number") {
9349
- onChange2(focusedItem.value);
9350
- } else if (focusedItem.type === NavigationTypes.Prev && page > 1) {
9351
- onChange2(page - 1);
9352
- } else if (focusedItem.type === NavigationTypes.Next && page < totalPages) {
9353
- onChange2(page + 1);
9354
- }
9355
- break;
9356
- default:
9357
- return;
9358
- }
9359
- if (newFocusedItem !== focusedItem) {
9360
- focusItem(newFocusedItem);
9361
- }
9362
- }
9363
- });
9364
- const registerRef = (0, import_react51.useCallback)(
9365
- (type, value, ref) => {
9366
- const key = `${type}-${value}`;
9367
- if (ref) {
9368
- buttonRefs.current.set(key, ref);
9369
- } else {
9370
- buttonRefs.current.delete(key);
9371
- }
9372
- },
9373
- []
9374
- );
9375
- const setNavigationItems = (0, import_react51.useCallback)((items) => {
9376
- navigationItems.current = items;
9377
- }, []);
9378
- return {
9379
- containerRef,
9380
- keyboardProps,
9381
- registerRef,
9382
- setNavigationItems,
9383
- setFocusedItem
9384
- };
9385
- };
9386
-
9387
9425
  // src/Pagination/usePageRange.tsx
9388
9426
  var usePageRange = ({ currentPage, totalPages }) => {
9389
9427
  const getPageRange = () => {
@@ -9415,23 +9453,21 @@ var usePageRange = ({ currentPage, totalPages }) => {
9415
9453
  };
9416
9454
 
9417
9455
  // src/Pagination/Pagination.tsx
9418
- var import_jsx_runtime82 = require("react/jsx-runtime");
9419
- var _Pagination = ({
9420
- defaultPage = 1,
9421
- page,
9422
- totalItems,
9456
+ var import_jsx_runtime90 = require("react/jsx-runtime");
9457
+ var InnerPagination = ({
9458
+ currentPage,
9423
9459
  pageSize,
9424
- onChange: onChange2 = () => {
9425
- },
9460
+ totalPages,
9461
+ pageRange,
9462
+ setCurrentPage,
9463
+ onChange: onChange2,
9426
9464
  controlLabels
9427
9465
  }) => {
9428
- const [currentPage, setCurrentPage] = (0, import_react52.useState)(page != null ? page : defaultPage);
9429
- const totalPages = Math.ceil(totalItems / pageSize);
9430
- const isFirstRender = (0, import_react52.useRef)(true);
9431
- const classNames3 = (0, import_system69.useClassNames)({
9432
- component: "Pagination"
9433
- });
9434
- (0, import_react52.useEffect)(() => {
9466
+ const focusManager = (0, import_focus2.useFocusManager)();
9467
+ const isFirstPage = currentPage === 1;
9468
+ const isLastPage = currentPage === totalPages || totalPages === 0;
9469
+ const isFirstRender = (0, import_react54.useRef)(true);
9470
+ (0, import_react54.useEffect)(() => {
9435
9471
  if (isFirstRender.current) {
9436
9472
  isFirstRender.current = false;
9437
9473
  return;
@@ -9440,94 +9476,108 @@ var _Pagination = ({
9440
9476
  }, [pageSize]);
9441
9477
  const handlePageChange = (newPage) => {
9442
9478
  setCurrentPage(newPage);
9443
- onChange2(newPage);
9479
+ if (onChange2) {
9480
+ onChange2(newPage);
9481
+ }
9444
9482
  };
9445
- const { registerRef, keyboardProps, setNavigationItems, setFocusedItem } = useKeyboardNavigation({
9446
- page: currentPage,
9447
- totalPages,
9448
- onChange: handlePageChange
9449
- });
9483
+ const classNames3 = (0, import_system76.useClassNames)({ component: "Pagination" });
9484
+ const handleKeyDown = (onEnter) => (e) => {
9485
+ if (e.key === "ArrowRight") {
9486
+ e.preventDefault();
9487
+ focusManager == null ? void 0 : focusManager.focusNext({ wrap: true });
9488
+ } else if (e.key === "ArrowLeft") {
9489
+ e.preventDefault();
9490
+ focusManager == null ? void 0 : focusManager.focusPrevious({ wrap: true });
9491
+ } else if (e.key === "Enter" || e.key === " ") {
9492
+ e.preventDefault();
9493
+ onEnter();
9494
+ }
9495
+ };
9496
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
9497
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9498
+ NavigationButton,
9499
+ {
9500
+ onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
9501
+ "aria-label": "Page previous",
9502
+ isDisabled: isFirstPage,
9503
+ controlLabel: controlLabels == null ? void 0 : controlLabels[0],
9504
+ position: "left",
9505
+ onKeyDown: handleKeyDown(() => handlePageChange(currentPage - 1)),
9506
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ChevronLeft, { className: classNames3.icon })
9507
+ }
9508
+ ),
9509
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
9510
+ (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9511
+ PageButton,
9512
+ {
9513
+ page: pageNumber,
9514
+ selected: pageNumber === currentPage,
9515
+ onClick: () => handlePageChange(pageNumber),
9516
+ onKeyDown: handleKeyDown(() => handlePageChange(pageNumber))
9517
+ },
9518
+ pageNumber
9519
+ )
9520
+ ) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
9521
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9522
+ NavigationButton,
9523
+ {
9524
+ onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
9525
+ "aria-label": "Page next",
9526
+ isDisabled: isLastPage,
9527
+ controlLabel: controlLabels == null ? void 0 : controlLabels[1],
9528
+ position: "right",
9529
+ onKeyDown: handleKeyDown(() => handlePageChange(currentPage + 1)),
9530
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ChevronRight, { className: classNames3.icon })
9531
+ }
9532
+ )
9533
+ ] });
9534
+ };
9535
+ var _Pagination = ({
9536
+ defaultPage = 1,
9537
+ page,
9538
+ totalItems,
9539
+ pageSize,
9540
+ ...props
9541
+ }) => {
9542
+ const [currentPage, setCurrentPage] = (0, import_react54.useState)(page != null ? page : defaultPage);
9543
+ const totalPages = Math.ceil(totalItems / pageSize);
9450
9544
  const pageRange = usePageRange({ currentPage, totalPages });
9451
- (0, import_react52.useEffect)(() => {
9452
- const items = [
9453
- { type: NavigationTypes.Prev, value: currentPage - 1 },
9454
- ...pageRange.map((value) => ({
9455
- type: typeof value === "number" ? NavigationTypes.Page : NavigationTypes.Ellipsis,
9456
- value
9457
- })),
9458
- { type: NavigationTypes.Next, value: currentPage + 1 }
9459
- ];
9460
- setNavigationItems(items);
9461
- }, [pageRange, currentPage, setNavigationItems]);
9462
- (0, import_react52.useEffect)(() => {
9463
- setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
9464
- }, [currentPage, setFocusedItem]);
9465
- const isFirstPage = currentPage === 1;
9466
- const isLastPage = currentPage === totalPages || totalPages === 0;
9467
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
9545
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9468
9546
  "nav",
9469
9547
  {
9470
9548
  className: "flex items-center justify-center space-x-2",
9471
9549
  "aria-label": `Page ${currentPage} of ${totalPages}`,
9472
- ...keyboardProps,
9473
- children: [
9474
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9475
- NavigationButton,
9476
- {
9477
- onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
9478
- "aria-label": "Page previous",
9479
- isDisabled: isFirstPage,
9480
- registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
9481
- controlLabel: controlLabels == null ? void 0 : controlLabels[0],
9482
- position: "left",
9483
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronLeft, { className: (0, import_system69.cn)(classNames3.icon) })
9484
- }
9485
- ),
9486
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
9487
- (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9488
- PageButton,
9489
- {
9490
- page: pageNumber,
9491
- selected: pageNumber === currentPage,
9492
- onClick: () => handlePageChange(pageNumber),
9493
- registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
9494
- },
9495
- pageNumber
9496
- )
9497
- ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
9498
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9499
- NavigationButton,
9500
- {
9501
- onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
9502
- "aria-label": "Page next",
9503
- isDisabled: isLastPage,
9504
- registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
9505
- controlLabel: controlLabels == null ? void 0 : controlLabels[1],
9506
- position: "right",
9507
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRight, { className: (0, import_system69.cn)(classNames3.icon) })
9508
- }
9509
- )
9510
- ]
9550
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_focus2.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9551
+ InnerPagination,
9552
+ {
9553
+ pageSize,
9554
+ currentPage,
9555
+ totalPages,
9556
+ pageRange,
9557
+ setCurrentPage,
9558
+ ...props
9559
+ }
9560
+ ) })
9511
9561
  }
9512
9562
  );
9513
9563
  };
9514
9564
 
9515
9565
  // src/Radio/Radio.tsx
9516
- var import_react54 = require("react");
9517
- var import_react_aria_components49 = require("react-aria-components");
9518
- var import_system71 = require("@marigold/system");
9566
+ var import_react56 = require("react");
9567
+ var import_react_aria_components53 = require("react-aria-components");
9568
+ var import_system78 = require("@marigold/system");
9519
9569
 
9520
9570
  // src/Radio/Context.ts
9521
- var import_react53 = require("react");
9522
- var RadioGroupContext = (0, import_react53.createContext)(
9571
+ var import_react55 = require("react");
9572
+ var RadioGroupContext = (0, import_react55.createContext)(
9523
9573
  null
9524
9574
  );
9525
- var useRadioGroupContext = () => (0, import_react53.useContext)(RadioGroupContext);
9575
+ var useRadioGroupContext = () => (0, import_react55.useContext)(RadioGroupContext);
9526
9576
 
9527
9577
  // src/Radio/RadioGroup.tsx
9528
- var import_react_aria_components48 = require("react-aria-components");
9529
- var import_system70 = require("@marigold/system");
9530
- var import_jsx_runtime83 = require("react/jsx-runtime");
9578
+ var import_react_aria_components52 = require("react-aria-components");
9579
+ var import_system77 = require("@marigold/system");
9580
+ var import_jsx_runtime91 = require("react/jsx-runtime");
9531
9581
  var _RadioGroup = ({
9532
9582
  variant,
9533
9583
  size: size2,
@@ -9543,7 +9593,7 @@ var _RadioGroup = ({
9543
9593
  width,
9544
9594
  ...rest
9545
9595
  }) => {
9546
- const classNames3 = (0, import_system70.useClassNames)({ component: "Radio", variant, size: size2 });
9596
+ const classNames3 = (0, import_system77.useClassNames)({ component: "Radio", variant, size: size2 });
9547
9597
  const props = {
9548
9598
  isDisabled: disabled,
9549
9599
  isReadOnly: readOnly,
@@ -9551,10 +9601,10 @@ var _RadioGroup = ({
9551
9601
  isInvalid: error,
9552
9602
  ...rest
9553
9603
  };
9554
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
9604
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9555
9605
  FieldBase,
9556
9606
  {
9557
- as: import_react_aria_components48.RadioGroup,
9607
+ as: import_react_aria_components52.RadioGroup,
9558
9608
  width,
9559
9609
  label,
9560
9610
  description,
@@ -9562,18 +9612,18 @@ var _RadioGroup = ({
9562
9612
  variant,
9563
9613
  size: size2,
9564
9614
  ...props,
9565
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
9615
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9566
9616
  "div",
9567
9617
  {
9568
9618
  role: "presentation",
9569
9619
  "data-testid": "group",
9570
9620
  "data-orientation": orientation,
9571
- className: (0, import_system70.cn)(
9621
+ className: (0, import_system77.cn)(
9572
9622
  classNames3.group,
9573
9623
  "flex items-start",
9574
9624
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
9575
9625
  ),
9576
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
9626
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(RadioGroupContext.Provider, { value: { width, variant, size: size2 }, children })
9577
9627
  }
9578
9628
  )
9579
9629
  }
@@ -9581,33 +9631,33 @@ var _RadioGroup = ({
9581
9631
  };
9582
9632
 
9583
9633
  // src/Radio/Radio.tsx
9584
- var import_jsx_runtime84 = require("react/jsx-runtime");
9585
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
9586
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9634
+ var import_jsx_runtime92 = require("react/jsx-runtime");
9635
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
9636
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9587
9637
  "div",
9588
9638
  {
9589
- className: (0, import_system71.cn)(
9639
+ className: (0, import_system78.cn)(
9590
9640
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
9591
9641
  className
9592
9642
  ),
9593
9643
  "aria-hidden": "true",
9594
9644
  ...props,
9595
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dot, {}) : null
9645
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dot, {}) : null
9596
9646
  }
9597
9647
  );
9598
- var _Radio = (0, import_react54.forwardRef)(
9648
+ var _Radio = (0, import_react56.forwardRef)(
9599
9649
  ({ value, disabled, width, children, ...props }, ref) => {
9600
9650
  const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
9601
- const classNames3 = (0, import_system71.useClassNames)({
9651
+ const classNames3 = (0, import_system78.useClassNames)({
9602
9652
  component: "Radio",
9603
9653
  variant: variant || props.variant,
9604
9654
  size: size2 || props.size
9605
9655
  });
9606
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9607
- import_react_aria_components49.Radio,
9656
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9657
+ import_react_aria_components53.Radio,
9608
9658
  {
9609
9659
  ref,
9610
- className: (0, import_system71.cn)(
9660
+ className: (0, import_system78.cn)(
9611
9661
  "group/radio",
9612
9662
  "relative flex items-center gap-[1ch]",
9613
9663
  width || groupWidth || "w-full",
@@ -9616,18 +9666,18 @@ var _Radio = (0, import_react54.forwardRef)(
9616
9666
  value,
9617
9667
  isDisabled: disabled,
9618
9668
  ...props,
9619
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
9620
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9669
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
9670
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9621
9671
  Icon3,
9622
9672
  {
9623
9673
  checked: isSelected,
9624
- className: (0, import_system71.cn)(
9674
+ className: (0, import_system78.cn)(
9625
9675
  disabled ? "cursor-not-allowed" : "cursor-pointer",
9626
9676
  classNames3.radio
9627
9677
  )
9628
9678
  }
9629
9679
  ),
9630
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classNames3.label, children })
9680
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: classNames3.label, children })
9631
9681
  ] })
9632
9682
  }
9633
9683
  );
@@ -9636,10 +9686,10 @@ var _Radio = (0, import_react54.forwardRef)(
9636
9686
  _Radio.Group = _RadioGroup;
9637
9687
 
9638
9688
  // src/SearchField/SearchField.tsx
9639
- var import_react55 = require("react");
9640
- var import_react_aria_components50 = require("react-aria-components");
9641
- var import_jsx_runtime85 = require("react/jsx-runtime");
9642
- var _SearchField = (0, import_react55.forwardRef)(
9689
+ var import_react57 = require("react");
9690
+ var import_react_aria_components54 = require("react-aria-components");
9691
+ var import_jsx_runtime93 = require("react/jsx-runtime");
9692
+ var _SearchField = (0, import_react57.forwardRef)(
9643
9693
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
9644
9694
  const props = {
9645
9695
  ...rest,
@@ -9648,7 +9698,7 @@ var _SearchField = (0, import_react55.forwardRef)(
9648
9698
  isReadOnly: readOnly,
9649
9699
  isInvalid: error
9650
9700
  };
9651
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components50.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
9701
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FieldBase, { as: import_react_aria_components54.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9652
9702
  SearchInput,
9653
9703
  {
9654
9704
  ref,
@@ -9659,11 +9709,11 @@ var _SearchField = (0, import_react55.forwardRef)(
9659
9709
  );
9660
9710
 
9661
9711
  // src/Select/Select.tsx
9662
- var import_react56 = require("react");
9663
- var import_react_aria_components51 = require("react-aria-components");
9664
- var import_system72 = require("@marigold/system");
9665
- var import_jsx_runtime86 = require("react/jsx-runtime");
9666
- var _Select = (0, import_react56.forwardRef)(
9712
+ var import_react58 = require("react");
9713
+ var import_react_aria_components55 = require("react-aria-components");
9714
+ var import_system79 = require("@marigold/system");
9715
+ var import_jsx_runtime94 = require("react/jsx-runtime");
9716
+ var _Select = (0, import_react58.forwardRef)(
9667
9717
  ({
9668
9718
  disabled,
9669
9719
  required,
@@ -9683,22 +9733,22 @@ var _Select = (0, import_react56.forwardRef)(
9683
9733
  onSelectionChange: onChange2,
9684
9734
  ...rest
9685
9735
  };
9686
- const classNames3 = (0, import_system72.useClassNames)({ component: "Select", variant, size: size2 });
9687
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components51.Select, ref, variant, size: size2, ...props, children: [
9688
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
9736
+ const classNames3 = (0, import_system79.useClassNames)({ component: "Select", variant, size: size2 });
9737
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(FieldBase, { as: import_react_aria_components55.Select, ref, variant, size: size2, ...props, children: [
9738
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9689
9739
  IconButton,
9690
9740
  {
9691
- className: (0, import_system72.cn)(
9741
+ className: (0, import_system79.cn)(
9692
9742
  "flex w-full items-center justify-between gap-1 overflow-hidden",
9693
9743
  classNames3.select
9694
9744
  ),
9695
9745
  children: [
9696
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.SelectValue, { className: "[&>[slot=description]]:hidden" }),
9697
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames3.icon) })
9746
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components55.SelectValue, { className: "[&>[slot=description]]:hidden" }),
9747
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ChevronDown, { className: (0, import_system79.cn)("size-4", classNames3.icon) })
9698
9748
  ]
9699
9749
  }
9700
9750
  ),
9701
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_ListBox, { items, children: props.children }) })
9751
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(_ListBox, { items, children: props.children }) })
9702
9752
  ] });
9703
9753
  }
9704
9754
  );
@@ -9706,35 +9756,35 @@ _Select.Option = _ListBox.Item;
9706
9756
  _Select.Section = _ListBox.Section;
9707
9757
 
9708
9758
  // src/SelectList/SelectList.tsx
9709
- var import_react59 = require("react");
9710
- var import_react_aria_components53 = require("react-aria-components");
9711
- var import_system74 = require("@marigold/system");
9759
+ var import_react61 = require("react");
9760
+ var import_react_aria_components57 = require("react-aria-components");
9761
+ var import_system81 = require("@marigold/system");
9712
9762
 
9713
9763
  // src/SelectList/Context.ts
9714
- var import_react57 = require("react");
9715
- var SelectListContext = (0, import_react57.createContext)(
9764
+ var import_react59 = require("react");
9765
+ var SelectListContext = (0, import_react59.createContext)(
9716
9766
  {}
9717
9767
  );
9718
- var useSelectListContext = () => (0, import_react57.useContext)(SelectListContext);
9768
+ var useSelectListContext = () => (0, import_react59.useContext)(SelectListContext);
9719
9769
 
9720
9770
  // src/SelectList/SelectListItem.tsx
9721
- var import_react58 = require("react");
9722
- var import_react_aria_components52 = require("react-aria-components");
9723
- var import_system73 = require("@marigold/system");
9724
- var import_jsx_runtime87 = require("react/jsx-runtime");
9725
- var _SelectListItem = (0, import_react58.forwardRef)(
9771
+ var import_react60 = require("react");
9772
+ var import_react_aria_components56 = require("react-aria-components");
9773
+ var import_system80 = require("@marigold/system");
9774
+ var import_jsx_runtime95 = require("react/jsx-runtime");
9775
+ var _SelectListItem = (0, import_react60.forwardRef)(
9726
9776
  ({ children, ...props }, ref) => {
9727
9777
  let textValue = typeof children === "string" ? children : void 0;
9728
9778
  const { classNames: classNames3 } = useSelectListContext();
9729
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9730
- import_react_aria_components52.GridListItem,
9779
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9780
+ import_react_aria_components56.GridListItem,
9731
9781
  {
9732
9782
  textValue,
9733
9783
  ...props,
9734
- className: (0, import_system73.cn)("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.option),
9784
+ className: (0, import_system80.cn)("group-[layout=grid]/list:flex-row", classNames3 == null ? void 0 : classNames3.option),
9735
9785
  ref,
9736
- children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex gap-2", children: [
9737
- selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(_Checkbox, { slot: "selection" }),
9786
+ children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex gap-2", children: [
9787
+ selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(_Checkbox, { slot: "selection" }),
9738
9788
  children
9739
9789
  ] })
9740
9790
  }
@@ -9743,21 +9793,21 @@ var _SelectListItem = (0, import_react58.forwardRef)(
9743
9793
  );
9744
9794
 
9745
9795
  // src/SelectList/SelectList.tsx
9746
- var import_jsx_runtime88 = require("react/jsx-runtime");
9747
- var _SelectList = (0, import_react59.forwardRef)(
9796
+ var import_jsx_runtime96 = require("react/jsx-runtime");
9797
+ var _SelectList = (0, import_react61.forwardRef)(
9748
9798
  ({ onChange: onChange2, ...rest }, ref) => {
9749
- const classNames3 = (0, import_system74.useClassNames)({ component: "ListBox" });
9799
+ const classNames3 = (0, import_system81.useClassNames)({ component: "ListBox" });
9750
9800
  const props = {
9751
9801
  onSelectionChange: onChange2,
9752
9802
  ...rest
9753
9803
  };
9754
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9755
- import_react_aria_components53.GridList,
9804
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9805
+ import_react_aria_components57.GridList,
9756
9806
  {
9757
9807
  ...props,
9758
9808
  layout: "grid",
9759
9809
  ref,
9760
- className: (0, import_system74.cn)(
9810
+ className: (0, import_system81.cn)(
9761
9811
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
9762
9812
  classNames3.list
9763
9813
  ),
@@ -9769,29 +9819,29 @@ var _SelectList = (0, import_react59.forwardRef)(
9769
9819
  _SelectList.Item = _SelectListItem;
9770
9820
 
9771
9821
  // src/Scrollable/Scrollable.tsx
9772
- var import_system75 = require("@marigold/system");
9773
- var import_jsx_runtime89 = require("react/jsx-runtime");
9822
+ var import_system82 = require("@marigold/system");
9823
+ var import_jsx_runtime97 = require("react/jsx-runtime");
9774
9824
  var Scrollable = ({
9775
9825
  children,
9776
9826
  width = "full",
9777
9827
  height,
9778
9828
  ...props
9779
- }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9829
+ }) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9780
9830
  "div",
9781
9831
  {
9782
9832
  ...props,
9783
- className: (0, import_system75.cn)(["sticky h-(--height) overflow-auto", import_system75.width[width]]),
9784
- style: (0, import_system75.createVar)({ height }),
9833
+ className: (0, import_system82.cn)(["sticky h-(--height) overflow-auto", import_system82.width[width]]),
9834
+ style: (0, import_system82.createVar)({ height }),
9785
9835
  children
9786
9836
  }
9787
9837
  );
9788
9838
 
9789
9839
  // src/Slider/Slider.tsx
9790
- var import_react60 = require("react");
9791
- var import_react_aria_components54 = require("react-aria-components");
9792
- var import_system76 = require("@marigold/system");
9793
- var import_jsx_runtime90 = require("react/jsx-runtime");
9794
- var _Slider = (0, import_react60.forwardRef)(
9840
+ var import_react62 = require("react");
9841
+ var import_react_aria_components58 = require("react-aria-components");
9842
+ var import_system83 = require("@marigold/system");
9843
+ var import_jsx_runtime98 = require("react/jsx-runtime");
9844
+ var _Slider = (0, import_react62.forwardRef)(
9795
9845
  ({
9796
9846
  thumbLabels,
9797
9847
  variant,
@@ -9801,7 +9851,7 @@ var _Slider = (0, import_react60.forwardRef)(
9801
9851
  label,
9802
9852
  ...rest
9803
9853
  }, ref) => {
9804
- const classNames3 = (0, import_system76.useClassNames)({
9854
+ const classNames3 = (0, import_system83.useClassNames)({
9805
9855
  component: "Slider",
9806
9856
  variant,
9807
9857
  size: size2
@@ -9810,38 +9860,38 @@ var _Slider = (0, import_react60.forwardRef)(
9810
9860
  isDisabled: disabled,
9811
9861
  ...rest
9812
9862
  };
9813
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9863
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
9814
9864
  FieldBase,
9815
9865
  {
9816
- as: import_react_aria_components54.Slider,
9817
- className: (0, import_system76.cn)(
9866
+ as: import_react_aria_components58.Slider,
9867
+ className: (0, import_system83.cn)(
9818
9868
  "grid grid-cols-[auto_1fr] gap-y-1",
9819
9869
  classNames3.container,
9820
- import_system76.width[width]
9870
+ import_system83.width[width]
9821
9871
  ),
9822
9872
  ref,
9823
9873
  ...props,
9824
9874
  children: [
9825
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
9826
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components54.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
9827
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9828
- import_react_aria_components54.SliderTrack,
9875
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(_Label, { children: props.children && props.children || label && label }),
9876
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_react_aria_components58.SliderOutput, { className: (0, import_system83.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
9877
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9878
+ import_react_aria_components58.SliderTrack,
9829
9879
  {
9830
- className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames3.track),
9831
- children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
9832
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9880
+ className: (0, import_system83.cn)("relative col-span-2 h-2 w-full", classNames3.track),
9881
+ children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
9882
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9833
9883
  "div",
9834
9884
  {
9835
- className: (0, import_system76.cn)(
9885
+ className: (0, import_system83.cn)(
9836
9886
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
9837
9887
  classNames3.track
9838
9888
  )
9839
9889
  }
9840
9890
  ),
9841
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9891
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9842
9892
  "div",
9843
9893
  {
9844
- className: (0, import_system76.cn)(
9894
+ className: (0, import_system83.cn)(
9845
9895
  "absolute top-[50%] h-2 translate-y-[-50%]",
9846
9896
  classNames3.selectedTrack
9847
9897
  ),
@@ -9851,10 +9901,10 @@ var _Slider = (0, import_react60.forwardRef)(
9851
9901
  }
9852
9902
  }
9853
9903
  ),
9854
- state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9855
- import_react_aria_components54.SliderThumb,
9904
+ state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9905
+ import_react_aria_components58.SliderThumb,
9856
9906
  {
9857
- className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames3.thumb),
9907
+ className: (0, import_system83.cn)("top-1/2 cursor-pointer", classNames3.thumb),
9858
9908
  index: i,
9859
9909
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
9860
9910
  name: thumbLabels == null ? void 0 : thumbLabels[i]
@@ -9871,12 +9921,12 @@ var _Slider = (0, import_react60.forwardRef)(
9871
9921
  );
9872
9922
 
9873
9923
  // src/Split/Split.tsx
9874
- var import_jsx_runtime91 = require("react/jsx-runtime");
9875
- var Split = () => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { role: "separator", className: "grow" });
9924
+ var import_jsx_runtime99 = require("react/jsx-runtime");
9925
+ var Split = () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { role: "separator", className: "grow" });
9876
9926
 
9877
9927
  // src/Stack/Stack.tsx
9878
- var import_system77 = require("@marigold/system");
9879
- var import_jsx_runtime92 = require("react/jsx-runtime");
9928
+ var import_system84 = require("@marigold/system");
9929
+ var import_jsx_runtime100 = require("react/jsx-runtime");
9880
9930
  var Stack = ({
9881
9931
  children,
9882
9932
  space = 0,
@@ -9886,14 +9936,14 @@ var Stack = ({
9886
9936
  ...props
9887
9937
  }) => {
9888
9938
  var _a, _b, _c, _d;
9889
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9939
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
9890
9940
  "div",
9891
9941
  {
9892
- className: (0, import_system77.cn)(
9942
+ className: (0, import_system84.cn)(
9893
9943
  "flex flex-col",
9894
- import_system77.gapSpace[space],
9895
- alignX && ((_b = (_a = import_system77.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
9896
- alignY && ((_d = (_c = import_system77.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
9944
+ import_system84.gapSpace[space],
9945
+ alignX && ((_b = (_a = import_system84.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
9946
+ alignY && ((_d = (_c = import_system84.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
9897
9947
  stretch && "h-full w-full"
9898
9948
  ),
9899
9949
  ...props,
@@ -9903,42 +9953,42 @@ var Stack = ({
9903
9953
  };
9904
9954
 
9905
9955
  // src/Switch/Switch.tsx
9906
- var import_react61 = require("react");
9907
- var import_react_aria_components55 = require("react-aria-components");
9908
- var import_system78 = require("@marigold/system");
9909
- var import_jsx_runtime93 = require("react/jsx-runtime");
9910
- var _Switch = (0, import_react61.forwardRef)(
9956
+ var import_react63 = require("react");
9957
+ var import_react_aria_components59 = require("react-aria-components");
9958
+ var import_system85 = require("@marigold/system");
9959
+ var import_jsx_runtime101 = require("react/jsx-runtime");
9960
+ var _Switch = (0, import_react63.forwardRef)(
9911
9961
  ({
9912
9962
  variant,
9913
9963
  size: size2,
9914
9964
  width = "full",
9915
- children,
9965
+ label,
9916
9966
  selected,
9917
9967
  disabled,
9918
9968
  readOnly,
9919
9969
  ...rest
9920
9970
  }, ref) => {
9921
- const classNames3 = (0, import_system78.useClassNames)({ component: "Switch", size: size2, variant });
9971
+ const classNames3 = (0, import_system85.useClassNames)({ component: "Switch", size: size2, variant });
9922
9972
  const props = {
9923
9973
  isDisabled: disabled,
9924
9974
  isReadOnly: readOnly,
9925
9975
  isSelected: selected,
9926
9976
  ...rest
9927
9977
  };
9928
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9929
- import_react_aria_components55.Switch,
9978
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
9979
+ import_react_aria_components59.Switch,
9930
9980
  {
9931
9981
  ...props,
9932
9982
  ref,
9933
- className: (0, import_system78.cn)(
9934
- import_system78.width[width],
9983
+ className: (0, import_system85.cn)(
9984
+ import_system85.width[width],
9935
9985
  "group/switch",
9936
9986
  "flex items-center gap-[1ch]",
9937
9987
  classNames3.container
9938
9988
  ),
9939
9989
  children: [
9940
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(_Label, { elementType: "span", children }),
9941
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: classNames3.track, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: classNames3.thumb }) }) })
9990
+ (props.children || label) && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Label, { elementType: "span", children: props.children || label }),
9991
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: classNames3.track, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: classNames3.thumb }) }) })
9942
9992
  ]
9943
9993
  }
9944
9994
  );
@@ -9946,19 +9996,19 @@ var _Switch = (0, import_react61.forwardRef)(
9946
9996
  );
9947
9997
 
9948
9998
  // src/Table/Table.tsx
9949
- var import_react69 = require("react");
9999
+ var import_react71 = require("react");
9950
10000
  var import_table9 = require("@react-aria/table");
9951
10001
  var import_table10 = require("@react-stately/table");
9952
- var import_system85 = require("@marigold/system");
10002
+ var import_system92 = require("@marigold/system");
9953
10003
 
9954
10004
  // src/Table/Context.tsx
9955
- var import_react62 = require("react");
9956
- var TableContext = (0, import_react62.createContext)({});
9957
- var useTableContext = () => (0, import_react62.useContext)(TableContext);
10005
+ var import_react64 = require("react");
10006
+ var TableContext = (0, import_react64.createContext)({});
10007
+ var useTableContext = () => (0, import_react64.useContext)(TableContext);
9958
10008
 
9959
10009
  // src/Table/TableBody.tsx
9960
10010
  var import_table = require("@react-aria/table");
9961
- var import_jsx_runtime94 = require("react/jsx-runtime");
10011
+ var import_jsx_runtime102 = require("react/jsx-runtime");
9962
10012
  var TableBody = ({
9963
10013
  children,
9964
10014
  className,
@@ -9967,7 +10017,7 @@ var TableBody = ({
9967
10017
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
9968
10018
  const { state, classNames: classNames3 } = useTableContext();
9969
10019
  if (state.collection.size === 0 && emptyState) {
9970
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { className, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
10020
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tbody", { className, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tr", { className: classNames3 == null ? void 0 : classNames3.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
9971
10021
  "td",
9972
10022
  {
9973
10023
  className: classNames3 == null ? void 0 : classNames3.cell,
@@ -9977,18 +10027,18 @@ var TableBody = ({
9977
10027
  }
9978
10028
  ) }) });
9979
10029
  }
9980
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { ...rowGroupProps, className, children });
10030
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tbody", { ...rowGroupProps, className, children });
9981
10031
  };
9982
10032
 
9983
10033
  // src/Table/TableCell.tsx
9984
- var import_react63 = require("react");
9985
- var import_focus2 = require("@react-aria/focus");
10034
+ var import_react65 = require("react");
10035
+ var import_focus3 = require("@react-aria/focus");
9986
10036
  var import_table2 = require("@react-aria/table");
9987
10037
  var import_utils9 = require("@react-aria/utils");
9988
- var import_system79 = require("@marigold/system");
9989
- var import_jsx_runtime95 = require("react/jsx-runtime");
10038
+ var import_system86 = require("@marigold/system");
10039
+ var import_jsx_runtime103 = require("react/jsx-runtime");
9990
10040
  var TableCell = ({ cell, align = "left" }) => {
9991
- const ref = (0, import_react63.useRef)(null);
10041
+ const ref = (0, import_react65.useRef)(null);
9992
10042
  const { interactive, state, classNames: classNames3 } = useTableContext();
9993
10043
  const disabled = state.disabledKeys.has(cell.parentKey);
9994
10044
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -10007,13 +10057,13 @@ var TableCell = ({ cell, align = "left" }) => {
10007
10057
  onMouseDown: (e) => e.stopPropagation(),
10008
10058
  onPointerDown: (e) => e.stopPropagation()
10009
10059
  };
10010
- const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
10011
- const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
10012
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
10060
+ const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
10061
+ const stateProps = (0, import_system86.useStateProps)({ disabled, focusVisible: isFocusVisible });
10062
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10013
10063
  "td",
10014
10064
  {
10015
10065
  ref,
10016
- className: (0, import_system79.cn)(classNames3 == null ? void 0 : classNames3.cell),
10066
+ className: (0, import_system86.cn)(classNames3 == null ? void 0 : classNames3.cell),
10017
10067
  ...(0, import_utils9.mergeProps)(cellProps, focusProps),
10018
10068
  ...stateProps,
10019
10069
  align,
@@ -10023,11 +10073,11 @@ var TableCell = ({ cell, align = "left" }) => {
10023
10073
  };
10024
10074
 
10025
10075
  // src/Table/TableCheckboxCell.tsx
10026
- var import_react64 = require("react");
10027
- var import_focus3 = require("@react-aria/focus");
10076
+ var import_react66 = require("react");
10077
+ var import_focus4 = require("@react-aria/focus");
10028
10078
  var import_table3 = require("@react-aria/table");
10029
10079
  var import_utils10 = require("@react-aria/utils");
10030
- var import_system80 = require("@marigold/system");
10080
+ var import_system87 = require("@marigold/system");
10031
10081
 
10032
10082
  // src/Table/utils.ts
10033
10083
  var mapCheckboxProps = ({
@@ -10050,9 +10100,9 @@ var mapCheckboxProps = ({
10050
10100
  };
10051
10101
 
10052
10102
  // src/Table/TableCheckboxCell.tsx
10053
- var import_jsx_runtime96 = require("react/jsx-runtime");
10103
+ var import_jsx_runtime104 = require("react/jsx-runtime");
10054
10104
  var TableCheckboxCell = ({ cell }) => {
10055
- const ref = (0, import_react64.useRef)(null);
10105
+ const ref = (0, import_react66.useRef)(null);
10056
10106
  const { state, classNames: classNames3 } = useTableContext();
10057
10107
  const disabled = state.disabledKeys.has(cell.parentKey);
10058
10108
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -10065,35 +10115,35 @@ var TableCheckboxCell = ({ cell }) => {
10065
10115
  const { checkboxProps } = mapCheckboxProps(
10066
10116
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
10067
10117
  );
10068
- const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
10069
- const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
10070
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10118
+ const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
10119
+ const stateProps = (0, import_system87.useStateProps)({ disabled, focusVisible: isFocusVisible });
10120
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
10071
10121
  "td",
10072
10122
  {
10073
10123
  ref,
10074
- className: (0, import_system80.cn)("text-center align-middle leading-none", classNames3 == null ? void 0 : classNames3.cell),
10124
+ className: (0, import_system87.cn)("text-center align-middle leading-none", classNames3 == null ? void 0 : classNames3.cell),
10075
10125
  ...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
10076
10126
  ...stateProps,
10077
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
10127
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(_Checkbox, { ...checkboxProps })
10078
10128
  }
10079
10129
  );
10080
10130
  };
10081
10131
 
10082
10132
  // src/Table/TableColumnHeader.tsx
10083
- var import_react65 = require("react");
10084
- var import_focus4 = require("@react-aria/focus");
10085
- var import_interactions3 = require("@react-aria/interactions");
10133
+ var import_react67 = require("react");
10134
+ var import_focus5 = require("@react-aria/focus");
10135
+ var import_interactions2 = require("@react-aria/interactions");
10086
10136
  var import_table4 = require("@react-aria/table");
10087
10137
  var import_utils12 = require("@react-aria/utils");
10088
- var import_system81 = require("@marigold/system");
10089
- var import_jsx_runtime97 = require("react/jsx-runtime");
10138
+ var import_system88 = require("@marigold/system");
10139
+ var import_jsx_runtime105 = require("react/jsx-runtime");
10090
10140
  var TableColumnHeader = ({
10091
10141
  column: column2,
10092
10142
  width = "auto",
10093
10143
  align = "left"
10094
10144
  }) => {
10095
10145
  var _a, _b;
10096
- const ref = (0, import_react65.useRef)(null);
10146
+ const ref = (0, import_react67.useRef)(null);
10097
10147
  const { state, classNames: classNames3 } = useTableContext();
10098
10148
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
10099
10149
  {
@@ -10102,24 +10152,24 @@ var TableColumnHeader = ({
10102
10152
  state,
10103
10153
  ref
10104
10154
  );
10105
- const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
10106
- const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
10107
- const stateProps = (0, import_system81.useStateProps)({
10155
+ const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
10156
+ const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
10157
+ const stateProps = (0, import_system88.useStateProps)({
10108
10158
  hover: isHovered,
10109
10159
  focusVisible: isFocusVisible
10110
10160
  });
10111
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10161
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
10112
10162
  "th",
10113
10163
  {
10114
10164
  colSpan: column2.colspan,
10115
10165
  ref,
10116
- className: (0, import_system81.cn)("cursor-default", import_system81.width[width], classNames3 == null ? void 0 : classNames3.header),
10166
+ className: (0, import_system88.cn)("cursor-default", import_system88.width[width], classNames3 == null ? void 0 : classNames3.header),
10117
10167
  ...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10118
10168
  ...stateProps,
10119
10169
  align,
10120
10170
  children: [
10121
10171
  column2.rendered,
10122
- column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortDown, { className: "inline-block" }) }))
10172
+ column2.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column2.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SortDown, { className: "inline-block" }) }))
10123
10173
  ]
10124
10174
  }
10125
10175
  );
@@ -10127,16 +10177,16 @@ var TableColumnHeader = ({
10127
10177
 
10128
10178
  // src/Table/TableHeader.tsx
10129
10179
  var import_table5 = require("@react-aria/table");
10130
- var import_system82 = require("@marigold/system");
10131
- var import_jsx_runtime98 = require("react/jsx-runtime");
10180
+ var import_system89 = require("@marigold/system");
10181
+ var import_jsx_runtime106 = require("react/jsx-runtime");
10132
10182
  var TableHeader = ({ stickyHeader, children }) => {
10133
10183
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
10134
10184
  const { classNames: classNames3 } = useTableContext();
10135
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10185
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10136
10186
  "thead",
10137
10187
  {
10138
10188
  ...rowGroupProps,
10139
- className: (0, import_system82.cn)(
10189
+ className: (0, import_system89.cn)(
10140
10190
  classNames3 == null ? void 0 : classNames3.thead,
10141
10191
  // for sticky header &th needs to be sticky for b2b and core theme
10142
10192
  // for rui sticky is applied to thead
@@ -10148,33 +10198,33 @@ var TableHeader = ({ stickyHeader, children }) => {
10148
10198
  };
10149
10199
 
10150
10200
  // src/Table/TableHeaderRow.tsx
10151
- var import_react66 = require("react");
10201
+ var import_react68 = require("react");
10152
10202
  var import_table6 = require("@react-aria/table");
10153
- var import_jsx_runtime99 = require("react/jsx-runtime");
10203
+ var import_jsx_runtime107 = require("react/jsx-runtime");
10154
10204
  var TableHeaderRow = ({
10155
10205
  item,
10156
10206
  className,
10157
10207
  children
10158
10208
  }) => {
10159
10209
  const { state } = useTableContext();
10160
- const ref = (0, import_react66.useRef)(null);
10210
+ const ref = (0, import_react68.useRef)(null);
10161
10211
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
10162
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("tr", { ...rowProps, className, ref, children });
10212
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tr", { ...rowProps, className, ref, children });
10163
10213
  };
10164
10214
 
10165
10215
  // src/Table/TableRow.tsx
10166
- var import_react67 = require("react");
10167
- var import_focus5 = require("@react-aria/focus");
10168
- var import_interactions4 = require("@react-aria/interactions");
10216
+ var import_react69 = require("react");
10217
+ var import_focus6 = require("@react-aria/focus");
10218
+ var import_interactions3 = require("@react-aria/interactions");
10169
10219
  var import_table7 = require("@react-aria/table");
10170
10220
  var import_utils13 = require("@react-aria/utils");
10171
- var import_system83 = require("@marigold/system");
10172
- var import_jsx_runtime100 = require("react/jsx-runtime");
10221
+ var import_system90 = require("@marigold/system");
10222
+ var import_jsx_runtime108 = require("react/jsx-runtime");
10173
10223
  var TableRow = ({ children, row }) => {
10174
- const ref = (0, import_react67.useRef)(null);
10224
+ const ref = (0, import_react69.useRef)(null);
10175
10225
  const { interactive, state, ...ctx } = useTableContext();
10176
10226
  const { variant, size: size2 } = row.props;
10177
- const classNames3 = (0, import_system83.useClassNames)({
10227
+ const classNames3 = (0, import_system90.useClassNames)({
10178
10228
  component: "Table",
10179
10229
  variant: variant || ctx.variant,
10180
10230
  size: size2 || ctx.size
@@ -10188,22 +10238,22 @@ var TableRow = ({ children, row }) => {
10188
10238
  );
10189
10239
  const disabled = state.disabledKeys.has(row.key);
10190
10240
  const selected = state.selectionManager.isSelected(row.key);
10191
- const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
10192
- const { hoverProps, isHovered } = (0, import_interactions4.useHover)({
10241
+ const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
10242
+ const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
10193
10243
  isDisabled: disabled || !interactive
10194
10244
  });
10195
- const stateProps = (0, import_system83.useStateProps)({
10245
+ const stateProps = (0, import_system90.useStateProps)({
10196
10246
  disabled,
10197
10247
  selected,
10198
10248
  hover: isHovered,
10199
10249
  focusVisible: isFocusVisible,
10200
10250
  active: isPressed
10201
10251
  });
10202
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10252
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
10203
10253
  "tr",
10204
10254
  {
10205
10255
  ref,
10206
- className: (0, import_system83.cn)(
10256
+ className: (0, import_system90.cn)(
10207
10257
  [
10208
10258
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
10209
10259
  ],
@@ -10217,19 +10267,19 @@ var TableRow = ({ children, row }) => {
10217
10267
  };
10218
10268
 
10219
10269
  // src/Table/TableSelectAllCell.tsx
10220
- var import_react68 = require("react");
10221
- var import_focus6 = require("@react-aria/focus");
10222
- var import_interactions5 = require("@react-aria/interactions");
10270
+ var import_react70 = require("react");
10271
+ var import_focus7 = require("@react-aria/focus");
10272
+ var import_interactions4 = require("@react-aria/interactions");
10223
10273
  var import_table8 = require("@react-aria/table");
10224
10274
  var import_utils14 = require("@react-aria/utils");
10225
- var import_system84 = require("@marigold/system");
10226
- var import_jsx_runtime101 = require("react/jsx-runtime");
10275
+ var import_system91 = require("@marigold/system");
10276
+ var import_jsx_runtime109 = require("react/jsx-runtime");
10227
10277
  var TableSelectAllCell = ({
10228
10278
  column: column2,
10229
10279
  width = "auto",
10230
10280
  align = "left"
10231
10281
  }) => {
10232
- const ref = (0, import_react68.useRef)(null);
10282
+ const ref = (0, import_react70.useRef)(null);
10233
10283
  const { state, classNames: classNames3 } = useTableContext();
10234
10284
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
10235
10285
  {
@@ -10239,27 +10289,27 @@ var TableSelectAllCell = ({
10239
10289
  ref
10240
10290
  );
10241
10291
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
10242
- const { hoverProps, isHovered } = (0, import_interactions5.useHover)({});
10243
- const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
10244
- const stateProps = (0, import_system84.useStateProps)({
10292
+ const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
10293
+ const { focusProps, isFocusVisible } = (0, import_focus7.useFocusRing)();
10294
+ const stateProps = (0, import_system91.useStateProps)({
10245
10295
  hover: isHovered,
10246
10296
  focusVisible: isFocusVisible
10247
10297
  });
10248
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
10298
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10249
10299
  "th",
10250
10300
  {
10251
10301
  ref,
10252
- className: (0, import_system84.cn)(import_system84.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10302
+ className: (0, import_system91.cn)(import_system91.width[width], ["leading-none"], classNames3 == null ? void 0 : classNames3.header),
10253
10303
  ...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10254
10304
  ...stateProps,
10255
10305
  align,
10256
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Checkbox, { ...checkboxProps })
10306
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(_Checkbox, { ...checkboxProps })
10257
10307
  }
10258
10308
  );
10259
10309
  };
10260
10310
 
10261
10311
  // src/Table/Table.tsx
10262
- var import_jsx_runtime102 = require("react/jsx-runtime");
10312
+ var import_jsx_runtime110 = require("react/jsx-runtime");
10263
10313
  var Table = ({
10264
10314
  variant,
10265
10315
  size: size2,
@@ -10271,7 +10321,7 @@ var Table = ({
10271
10321
  ...props
10272
10322
  }) => {
10273
10323
  const interactive = selectionMode !== "none";
10274
- const tableRef = (0, import_react69.useRef)(null);
10324
+ const tableRef = (0, import_react71.useRef)(null);
10275
10325
  const state = (0, import_table10.useTableState)({
10276
10326
  ...props,
10277
10327
  selectionMode,
@@ -10282,21 +10332,21 @@ var Table = ({
10282
10332
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
10283
10333
  }
10284
10334
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
10285
- const classNames3 = (0, import_system85.useClassNames)({
10335
+ const classNames3 = (0, import_system92.useClassNames)({
10286
10336
  component: "Table",
10287
10337
  variant,
10288
10338
  size: size2
10289
10339
  });
10290
10340
  const { collection } = state;
10291
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10341
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10292
10342
  TableContext.Provider,
10293
10343
  {
10294
10344
  value: { state, interactive, classNames: classNames3, variant, size: size2 },
10295
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10345
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
10296
10346
  "table",
10297
10347
  {
10298
10348
  ref: tableRef,
10299
- className: (0, import_system85.cn)(
10349
+ className: (0, import_system92.cn)(
10300
10350
  "group/table",
10301
10351
  "border-collapse",
10302
10352
  stretch ? "table w-full" : "block",
@@ -10304,7 +10354,7 @@ var Table = ({
10304
10354
  ),
10305
10355
  ...gridProps,
10306
10356
  children: [
10307
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10357
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10308
10358
  TableHeaderRow,
10309
10359
  {
10310
10360
  item: headerRow,
@@ -10312,7 +10362,7 @@ var Table = ({
10312
10362
  children: [...collection.getChildren(headerRow.key)].map(
10313
10363
  (column2) => {
10314
10364
  var _a, _b, _c, _d, _e;
10315
- return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10365
+ return ((_a = column2.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10316
10366
  TableSelectAllCell,
10317
10367
  {
10318
10368
  width: (_b = column2.props) == null ? void 0 : _b.width,
@@ -10320,7 +10370,7 @@ var Table = ({
10320
10370
  align: (_c = column2.props) == null ? void 0 : _c.align
10321
10371
  },
10322
10372
  column2.key
10323
- ) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10373
+ ) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10324
10374
  TableColumnHeader,
10325
10375
  {
10326
10376
  width: (_d = column2.props) == null ? void 0 : _d.width,
@@ -10334,12 +10384,12 @@ var Table = ({
10334
10384
  },
10335
10385
  headerRow.key
10336
10386
  )) }),
10337
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
10387
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(TableBody, { className: classNames3.body, emptyState, children: [
10338
10388
  ...collection.rows.map(
10339
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10389
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index2) => {
10340
10390
  var _a, _b;
10341
10391
  const currentColumn = collection.columns[index2];
10342
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10392
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10343
10393
  TableCell,
10344
10394
  {
10345
10395
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -10363,9 +10413,9 @@ Table.Header = import_table10.TableHeader;
10363
10413
  Table.Row = import_table10.Row;
10364
10414
 
10365
10415
  // src/Text/Text.tsx
10366
- var import_react_aria_components56 = require("react-aria-components");
10367
- var import_system86 = require("@marigold/system");
10368
- var import_jsx_runtime103 = require("react/jsx-runtime");
10416
+ var import_react_aria_components60 = require("react-aria-components");
10417
+ var import_system93 = require("@marigold/system");
10418
+ var import_jsx_runtime111 = require("react/jsx-runtime");
10369
10419
  var _Text = ({
10370
10420
  variant,
10371
10421
  size: size2,
@@ -10379,40 +10429,40 @@ var _Text = ({
10379
10429
  as = "div",
10380
10430
  ...props
10381
10431
  }) => {
10382
- const classNames3 = (0, import_system86.useClassNames)({
10432
+ const classNames3 = (0, import_system93.useClassNames)({
10383
10433
  component: "Text",
10384
10434
  variant,
10385
10435
  size: size2
10386
10436
  });
10387
- const Component2 = props.slot ? import_react_aria_components56.Text : as;
10437
+ const Component2 = props.slot ? import_react_aria_components60.Text : as;
10388
10438
  const elementType = props.slot ? { elementType: as } : {};
10389
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10439
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10390
10440
  Component2,
10391
10441
  {
10392
10442
  ...props,
10393
10443
  ...elementType,
10394
- className: (0, import_system86.cn)(
10444
+ className: (0, import_system93.cn)(
10395
10445
  "max-w-(--maxTextWidth)",
10396
10446
  // possibly set by a <Container>
10397
10447
  classNames3,
10398
- fontStyle && import_system86.textStyle[fontStyle],
10399
- align && import_system86.textAlign[align],
10400
- cursor2 && import_system86.cursorStyle[cursor2],
10401
- weight && import_system86.fontWeight[weight],
10402
- fontSize && import_system86.textSize[fontSize]
10448
+ fontStyle && import_system93.textStyle[fontStyle],
10449
+ align && import_system93.textAlign[align],
10450
+ cursor2 && import_system93.cursorStyle[cursor2],
10451
+ weight && import_system93.fontWeight[weight],
10452
+ fontSize && import_system93.textSize[fontSize]
10403
10453
  ),
10404
- style: { color: color && (0, import_system86.ensureCssVar)(color, "color") },
10454
+ style: { color: color && (0, import_system93.ensureCssVar)(color, "color") },
10405
10455
  children
10406
10456
  }
10407
10457
  );
10408
10458
  };
10409
10459
 
10410
10460
  // src/TextArea/TextArea.tsx
10411
- var import_react70 = require("react");
10412
- var import_react_aria_components57 = require("react-aria-components");
10413
- var import_system87 = require("@marigold/system");
10414
- var import_jsx_runtime104 = require("react/jsx-runtime");
10415
- var _TextArea = (0, import_react70.forwardRef)(
10461
+ var import_react72 = require("react");
10462
+ var import_react_aria_components61 = require("react-aria-components");
10463
+ var import_system94 = require("@marigold/system");
10464
+ var import_jsx_runtime112 = require("react/jsx-runtime");
10465
+ var _TextArea = (0, import_react72.forwardRef)(
10416
10466
  ({
10417
10467
  variant,
10418
10468
  size: size2,
@@ -10423,7 +10473,7 @@ var _TextArea = (0, import_react70.forwardRef)(
10423
10473
  rows,
10424
10474
  ...rest
10425
10475
  }, ref) => {
10426
- const classNames3 = (0, import_system87.useClassNames)({ component: "TextArea", variant, size: size2 });
10476
+ const classNames3 = (0, import_system94.useClassNames)({ component: "TextArea", variant, size: size2 });
10427
10477
  const props = {
10428
10478
  isDisabled: disabled,
10429
10479
  isReadOnly: readOnly,
@@ -10431,15 +10481,15 @@ var _TextArea = (0, import_react70.forwardRef)(
10431
10481
  isRequired: required,
10432
10482
  ...rest
10433
10483
  };
10434
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components57.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components57.TextArea, { className: classNames3, ref, rows }) });
10484
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(FieldBase, { as: import_react_aria_components61.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components61.TextArea, { className: classNames3, ref, rows }) });
10435
10485
  }
10436
10486
  );
10437
10487
 
10438
10488
  // src/TextField/TextField.tsx
10439
- var import_react71 = require("react");
10440
- var import_react_aria_components58 = require("react-aria-components");
10441
- var import_jsx_runtime105 = require("react/jsx-runtime");
10442
- var _TextField = (0, import_react71.forwardRef)(
10489
+ var import_react73 = require("react");
10490
+ var import_react_aria_components62 = require("react-aria-components");
10491
+ var import_jsx_runtime113 = require("react/jsx-runtime");
10492
+ var _TextField = (0, import_react73.forwardRef)(
10443
10493
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
10444
10494
  const props = {
10445
10495
  isDisabled: disabled,
@@ -10448,13 +10498,13 @@ var _TextField = (0, import_react71.forwardRef)(
10448
10498
  isRequired: required,
10449
10499
  ...rest
10450
10500
  };
10451
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components58.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(_Input, { ref }) });
10501
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(FieldBase, { as: import_react_aria_components62.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(_Input, { ref }) });
10452
10502
  }
10453
10503
  );
10454
10504
 
10455
10505
  // src/Tiles/Tiles.tsx
10456
- var import_system88 = require("@marigold/system");
10457
- var import_jsx_runtime106 = require("react/jsx-runtime");
10506
+ var import_system95 = require("@marigold/system");
10507
+ var import_jsx_runtime114 = require("react/jsx-runtime");
10458
10508
  var Tiles = ({
10459
10509
  space = 0,
10460
10510
  stretch = false,
@@ -10467,29 +10517,29 @@ var Tiles = ({
10467
10517
  if (stretch) {
10468
10518
  column2 = `minmax(${column2}, 1fr)`;
10469
10519
  }
10470
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10520
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10471
10521
  "div",
10472
10522
  {
10473
10523
  ...props,
10474
- className: (0, import_system88.cn)(
10524
+ className: (0, import_system95.cn)(
10475
10525
  "grid",
10476
- import_system88.gapSpace[space],
10526
+ import_system95.gapSpace[space],
10477
10527
  "grid-cols-[repeat(auto-fit,var(--column))]",
10478
10528
  equalHeight && "auto-rows-[1fr]"
10479
10529
  ),
10480
- style: (0, import_system88.createVar)({ column: column2, tilesWidth }),
10530
+ style: (0, import_system95.createVar)({ column: column2, tilesWidth }),
10481
10531
  children
10482
10532
  }
10483
10533
  );
10484
10534
  };
10485
10535
 
10486
10536
  // src/Tooltip/Tooltip.tsx
10487
- var import_react_aria_components60 = require("react-aria-components");
10488
- var import_system89 = require("@marigold/system");
10537
+ var import_react_aria_components64 = require("react-aria-components");
10538
+ var import_system96 = require("@marigold/system");
10489
10539
 
10490
10540
  // src/Tooltip/TooltipTrigger.tsx
10491
- var import_react_aria_components59 = require("react-aria-components");
10492
- var import_jsx_runtime107 = require("react/jsx-runtime");
10541
+ var import_react_aria_components63 = require("react-aria-components");
10542
+ var import_jsx_runtime115 = require("react/jsx-runtime");
10493
10543
  var _TooltipTrigger = ({
10494
10544
  delay = 1e3,
10495
10545
  children,
@@ -10503,26 +10553,26 @@ var _TooltipTrigger = ({
10503
10553
  isOpen: open,
10504
10554
  delay
10505
10555
  };
10506
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components59.TooltipTrigger, { ...props, children });
10556
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components63.TooltipTrigger, { ...props, children });
10507
10557
  };
10508
10558
 
10509
10559
  // src/Tooltip/Tooltip.tsx
10510
- var import_jsx_runtime108 = require("react/jsx-runtime");
10560
+ var import_jsx_runtime116 = require("react/jsx-runtime");
10511
10561
  var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
10512
10562
  const props = {
10513
10563
  ...rest,
10514
10564
  isOpen: open
10515
10565
  };
10516
- const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
10566
+ const classNames3 = (0, import_system96.useClassNames)({ component: "Tooltip", variant, size: size2 });
10517
10567
  const portal = usePortalContainer();
10518
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
10519
- import_react_aria_components60.Tooltip,
10568
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
10569
+ import_react_aria_components64.Tooltip,
10520
10570
  {
10521
10571
  ...props,
10522
- className: (0, import_system89.cn)("group/tooltip", classNames3.container),
10572
+ className: (0, import_system96.cn)("group/tooltip", classNames3.container),
10523
10573
  UNSTABLE_portalContainer: portal,
10524
10574
  children: [
10525
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components60.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
10575
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react_aria_components64.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
10526
10576
  children
10527
10577
  ]
10528
10578
  }
@@ -10531,13 +10581,13 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
10531
10581
  _Tooltip.Trigger = _TooltipTrigger;
10532
10582
 
10533
10583
  // src/TagGroup/Tag.tsx
10534
- var import_react_aria_components62 = require("react-aria-components");
10535
- var import_system91 = require("@marigold/system");
10584
+ var import_react_aria_components66 = require("react-aria-components");
10585
+ var import_system98 = require("@marigold/system");
10536
10586
 
10537
10587
  // src/TagGroup/TagGroup.tsx
10538
- var import_react_aria_components61 = require("react-aria-components");
10539
- var import_system90 = require("@marigold/system");
10540
- var import_jsx_runtime109 = require("react/jsx-runtime");
10588
+ var import_react_aria_components65 = require("react-aria-components");
10589
+ var import_system97 = require("@marigold/system");
10590
+ var import_jsx_runtime117 = require("react/jsx-runtime");
10541
10591
  var _TagGroup = ({
10542
10592
  width,
10543
10593
  items,
@@ -10547,9 +10597,9 @@ var _TagGroup = ({
10547
10597
  size: size2,
10548
10598
  ...rest
10549
10599
  }) => {
10550
- const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
10551
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as: import_react_aria_components61.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10552
- import_react_aria_components61.TagList,
10600
+ const classNames3 = (0, import_system97.useClassNames)({ component: "Tag", variant, size: size2 });
10601
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(FieldBase, { as: import_react_aria_components65.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
10602
+ import_react_aria_components65.TagList,
10553
10603
  {
10554
10604
  items,
10555
10605
  className: classNames3.listItems,
@@ -10560,31 +10610,23 @@ var _TagGroup = ({
10560
10610
  };
10561
10611
 
10562
10612
  // src/TagGroup/Tag.tsx
10563
- var import_jsx_runtime110 = require("react/jsx-runtime");
10564
- var CloseButton2 = ({ className }) => {
10565
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components62.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
10566
- };
10613
+ var import_jsx_runtime118 = require("react/jsx-runtime");
10567
10614
  var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
10568
10615
  let textValue = typeof children === "string" ? children : void 0;
10569
- const classNames3 = (0, import_system91.useClassNames)({ component: "Tag", variant, size: size2 });
10616
+ const classNames3 = (0, import_system98.useClassNames)({ component: "Tag", variant, size: size2 });
10570
10617
  const props = {
10571
10618
  isDisabled: disabled,
10572
10619
  ...rest
10573
10620
  };
10574
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10575
- import_react_aria_components62.Tag,
10621
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10622
+ import_react_aria_components66.Tag,
10576
10623
  {
10577
10624
  textValue,
10578
10625
  ...props,
10579
- className: (0, import_system91.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
10580
- children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
10626
+ className: (0, import_system98.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
10627
+ children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
10581
10628
  children,
10582
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10583
- CloseButton2,
10584
- {
10585
- className: (0, import_system91.cn)("flex items-center", classNames3.closeButton)
10586
- }
10587
- )
10629
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(CloseButton, { className: classNames3.closeButton, slot: "remove" })
10588
10630
  ] })
10589
10631
  }
10590
10632
  );
@@ -10595,14 +10637,14 @@ _Tag.Group = _TagGroup;
10595
10637
  var import_visually_hidden = require("@react-aria/visually-hidden");
10596
10638
 
10597
10639
  // src/XLoader/XLoader.tsx
10598
- var import_react_aria_components64 = require("react-aria-components");
10640
+ var import_react_aria_components68 = require("react-aria-components");
10599
10641
  var import_utils16 = require("@react-aria/utils");
10600
- var import_system93 = require("@marigold/system");
10642
+ var import_system100 = require("@marigold/system");
10601
10643
 
10602
10644
  // src/XLoader/BaseLoader.tsx
10603
- var import_react_aria_components63 = require("react-aria-components");
10645
+ var import_react_aria_components67 = require("react-aria-components");
10604
10646
  var import_i18n6 = require("@react-aria/i18n");
10605
- var import_system92 = require("@marigold/system");
10647
+ var import_system99 = require("@marigold/system");
10606
10648
 
10607
10649
  // src/intl/messages.ts
10608
10650
  var intlMessages2 = {
@@ -10615,7 +10657,7 @@ var intlMessages2 = {
10615
10657
  };
10616
10658
 
10617
10659
  // src/XLoader/BaseLoader.tsx
10618
- var import_jsx_runtime111 = require("react/jsx-runtime");
10660
+ var import_jsx_runtime119 = require("react/jsx-runtime");
10619
10661
  var BaseLoader = ({
10620
10662
  variant,
10621
10663
  size: size2,
@@ -10624,16 +10666,16 @@ var BaseLoader = ({
10624
10666
  ...props
10625
10667
  }) => {
10626
10668
  const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
10627
- const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
10628
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
10629
- import_react_aria_components63.ProgressBar,
10669
+ const className = (0, import_system99.useClassNames)({ component: "XLoader", variant, size: size2 });
10670
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
10671
+ import_react_aria_components67.ProgressBar,
10630
10672
  {
10631
10673
  className: className.container,
10632
10674
  isIndeterminate: true,
10633
10675
  "aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
10634
10676
  ...props,
10635
10677
  children: [
10636
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
10678
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
10637
10679
  "svg",
10638
10680
  {
10639
10681
  xmlns: "http://www.w3.org/2000/svg",
@@ -10641,13 +10683,13 @@ var BaseLoader = ({
10641
10683
  fill: "currentColor",
10642
10684
  className: className.loader,
10643
10685
  children: [
10644
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
10645
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10686
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
10687
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10646
10688
  "path",
10647
10689
  {
10648
10690
  id: "XMLID_5_",
10649
10691
  d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
10650
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10692
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10651
10693
  "animate",
10652
10694
  {
10653
10695
  attributeName: "opacity",
@@ -10660,12 +10702,12 @@ var BaseLoader = ({
10660
10702
  )
10661
10703
  }
10662
10704
  ),
10663
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10705
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10664
10706
  "path",
10665
10707
  {
10666
10708
  id: "XMLID_18_",
10667
10709
  d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
10668
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10710
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10669
10711
  "animate",
10670
10712
  {
10671
10713
  attributeName: "opacity",
@@ -10678,12 +10720,12 @@ var BaseLoader = ({
10678
10720
  )
10679
10721
  }
10680
10722
  ),
10681
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10723
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10682
10724
  "path",
10683
10725
  {
10684
10726
  id: "XMLID_19_",
10685
10727
  d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
10686
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10728
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10687
10729
  "animate",
10688
10730
  {
10689
10731
  attributeName: "opacity",
@@ -10696,12 +10738,12 @@ var BaseLoader = ({
10696
10738
  )
10697
10739
  }
10698
10740
  ),
10699
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10741
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10700
10742
  "path",
10701
10743
  {
10702
10744
  id: "XMLID_20_",
10703
10745
  d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
10704
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10746
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10705
10747
  "animate",
10706
10748
  {
10707
10749
  attributeName: "opacity",
@@ -10714,12 +10756,12 @@ var BaseLoader = ({
10714
10756
  )
10715
10757
  }
10716
10758
  ),
10717
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10759
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10718
10760
  "path",
10719
10761
  {
10720
10762
  id: "XMLID_21_",
10721
10763
  d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
10722
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10764
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10723
10765
  "animate",
10724
10766
  {
10725
10767
  attributeName: "opacity",
@@ -10732,12 +10774,12 @@ var BaseLoader = ({
10732
10774
  )
10733
10775
  }
10734
10776
  ),
10735
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10777
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10736
10778
  "path",
10737
10779
  {
10738
10780
  id: "XMLID_22_",
10739
10781
  d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
10740
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10782
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10741
10783
  "animate",
10742
10784
  {
10743
10785
  attributeName: "opacity",
@@ -10750,12 +10792,12 @@ var BaseLoader = ({
10750
10792
  )
10751
10793
  }
10752
10794
  ),
10753
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10795
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10754
10796
  "path",
10755
10797
  {
10756
10798
  id: "XMLID_23_",
10757
10799
  d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
10758
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10800
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10759
10801
  "animate",
10760
10802
  {
10761
10803
  attributeName: "opacity",
@@ -10768,12 +10810,12 @@ var BaseLoader = ({
10768
10810
  )
10769
10811
  }
10770
10812
  ),
10771
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10813
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10772
10814
  "path",
10773
10815
  {
10774
10816
  id: "XMLID_24_",
10775
10817
  d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
10776
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10818
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10777
10819
  "animate",
10778
10820
  {
10779
10821
  attributeName: "opacity",
@@ -10786,12 +10828,12 @@ var BaseLoader = ({
10786
10828
  )
10787
10829
  }
10788
10830
  ),
10789
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10831
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10790
10832
  "path",
10791
10833
  {
10792
10834
  id: "XMLID_25_",
10793
10835
  d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
10794
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10836
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10795
10837
  "animate",
10796
10838
  {
10797
10839
  attributeName: "opacity",
@@ -10804,12 +10846,12 @@ var BaseLoader = ({
10804
10846
  )
10805
10847
  }
10806
10848
  ),
10807
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10849
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10808
10850
  "path",
10809
10851
  {
10810
10852
  id: "XMLID_26_",
10811
10853
  d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
10812
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10854
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10813
10855
  "animate",
10814
10856
  {
10815
10857
  attributeName: "opacity",
@@ -10822,12 +10864,12 @@ var BaseLoader = ({
10822
10864
  )
10823
10865
  }
10824
10866
  ),
10825
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10867
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10826
10868
  "path",
10827
10869
  {
10828
10870
  id: "XMLID_27_",
10829
10871
  d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
10830
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10872
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10831
10873
  "animate",
10832
10874
  {
10833
10875
  attributeName: "opacity",
@@ -10843,48 +10885,48 @@ var BaseLoader = ({
10843
10885
  ]
10844
10886
  }
10845
10887
  ),
10846
- children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components63.Label, { className: className.label, children }) : null
10888
+ children ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_react_aria_components67.Label, { className: className.label, children }) : null
10847
10889
  ]
10848
10890
  }
10849
10891
  );
10850
10892
  };
10851
10893
 
10852
10894
  // src/XLoader/XLoader.tsx
10853
- var import_jsx_runtime112 = require("react/jsx-runtime");
10895
+ var import_jsx_runtime120 = require("react/jsx-runtime");
10854
10896
  var LoaderFullScreen = (props) => {
10855
10897
  const id = (0, import_utils16.useId)();
10856
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components64.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components64.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { id, ...props }) }) }) });
10898
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_aria_components68.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_aria_components68.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(BaseLoader, { id, ...props }) }) }) });
10857
10899
  };
10858
10900
  var LoaderSection = (props) => {
10859
- const className = (0, import_system93.useClassNames)({
10901
+ const className = (0, import_system100.useClassNames)({
10860
10902
  component: "Underlay",
10861
10903
  variant: "modal",
10862
10904
  className: "flex size-full items-center justify-center"
10863
10905
  });
10864
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { ...props }) });
10906
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(BaseLoader, { ...props }) });
10865
10907
  };
10866
- var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { variant, ...props });
10908
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(BaseLoader, { variant, ...props });
10867
10909
 
10868
10910
  // src/Tabs/Tabs.tsx
10869
- var import_react_aria_components68 = require("react-aria-components");
10870
- var import_system96 = require("@marigold/system");
10911
+ var import_react_aria_components72 = require("react-aria-components");
10912
+ var import_system103 = require("@marigold/system");
10871
10913
 
10872
10914
  // src/Tabs/Context.ts
10873
- var import_react72 = require("react");
10874
- var TabContext = (0, import_react72.createContext)({});
10875
- var useTabContext = () => (0, import_react72.useContext)(TabContext);
10915
+ var import_react74 = require("react");
10916
+ var TabContext = (0, import_react74.createContext)({});
10917
+ var useTabContext = () => (0, import_react74.useContext)(TabContext);
10876
10918
 
10877
10919
  // src/Tabs/Tab.tsx
10878
- var import_react_aria_components65 = require("react-aria-components");
10879
- var import_system94 = require("@marigold/system");
10880
- var import_jsx_runtime113 = require("react/jsx-runtime");
10920
+ var import_react_aria_components69 = require("react-aria-components");
10921
+ var import_system101 = require("@marigold/system");
10922
+ var import_jsx_runtime121 = require("react/jsx-runtime");
10881
10923
  var _Tab = (props) => {
10882
10924
  const { classNames: classNames3 } = useTabContext();
10883
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
10884
- import_react_aria_components65.Tab,
10925
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
10926
+ import_react_aria_components69.Tab,
10885
10927
  {
10886
10928
  ...props,
10887
- className: (0, import_system94.cn)(
10929
+ className: (0, import_system101.cn)(
10888
10930
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
10889
10931
  classNames3.tab
10890
10932
  ),
@@ -10894,49 +10936,49 @@ var _Tab = (props) => {
10894
10936
  };
10895
10937
 
10896
10938
  // src/Tabs/TabList.tsx
10897
- var import_react_aria_components66 = require("react-aria-components");
10898
- var import_system95 = require("@marigold/system");
10899
- var import_jsx_runtime114 = require("react/jsx-runtime");
10939
+ var import_react_aria_components70 = require("react-aria-components");
10940
+ var import_system102 = require("@marigold/system");
10941
+ var import_jsx_runtime122 = require("react/jsx-runtime");
10900
10942
  var _TabList = ({ space = 2, ...props }) => {
10901
10943
  const { classNames: classNames3 } = useTabContext();
10902
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10903
- import_react_aria_components66.TabList,
10944
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
10945
+ import_react_aria_components70.TabList,
10904
10946
  {
10905
10947
  ...props,
10906
- className: (0, import_system95.cn)("flex", import_system95.gapSpace[space], classNames3.tabsList),
10948
+ className: (0, import_system102.cn)("flex", import_system102.gapSpace[space], classNames3.tabsList),
10907
10949
  children: props.children
10908
10950
  }
10909
10951
  );
10910
10952
  };
10911
10953
 
10912
10954
  // src/Tabs/TabPanel.tsx
10913
- var import_react_aria_components67 = require("react-aria-components");
10914
- var import_jsx_runtime115 = require("react/jsx-runtime");
10955
+ var import_react_aria_components71 = require("react-aria-components");
10956
+ var import_jsx_runtime123 = require("react/jsx-runtime");
10915
10957
  var _TabPanel = (props) => {
10916
10958
  const { classNames: classNames3 } = useTabContext();
10917
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components67.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
10959
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_react_aria_components71.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
10918
10960
  };
10919
10961
 
10920
10962
  // src/Tabs/Tabs.tsx
10921
- var import_jsx_runtime116 = require("react/jsx-runtime");
10963
+ var import_jsx_runtime124 = require("react/jsx-runtime");
10922
10964
  var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
10923
10965
  const props = {
10924
10966
  isDisabled: disabled,
10925
10967
  ...rest
10926
10968
  };
10927
- const classNames3 = (0, import_system96.useClassNames)({
10969
+ const classNames3 = (0, import_system103.useClassNames)({
10928
10970
  component: "Tabs",
10929
10971
  size: size2,
10930
10972
  variant
10931
10973
  });
10932
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react_aria_components68.Tabs, { ...props, className: classNames3.container, children: props.children }) });
10974
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_react_aria_components72.Tabs, { ...props, className: classNames3.container, children: props.children }) });
10933
10975
  };
10934
10976
  _Tabs.List = _TabList;
10935
10977
  _Tabs.TabPanel = _TabPanel;
10936
10978
  _Tabs.Item = _Tab;
10937
10979
 
10938
10980
  // src/RouterProvider/RouterProvider.tsx
10939
- var import_react_aria_components69 = require("react-aria-components");
10981
+ var import_react_aria_components73 = require("react-aria-components");
10940
10982
  // Annotate the CommonJS export names for ESM import in node:
10941
10983
  0 && (module.exports = {
10942
10984
  Accordion,
@@ -10954,7 +10996,6 @@ var import_react_aria_components69 = require("react-aria-components");
10954
10996
  Center,
10955
10997
  Checkbox,
10956
10998
  CheckboxGroup,
10957
- CloseButton,
10958
10999
  Columns,
10959
11000
  ComboBox,
10960
11001
  Container,
@@ -10962,6 +11003,7 @@ var import_react_aria_components69 = require("react-aria-components");
10962
11003
  DatePicker,
10963
11004
  Dialog,
10964
11005
  Divider,
11006
+ Drawer,
10965
11007
  FieldBase,
10966
11008
  FieldGroup,
10967
11009
  FieldGroupContext,