@marigold/components 11.4.0 → 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_components68.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,
@@ -1397,7 +1397,7 @@ var import_react_aria_components9 = require("react-aria-components");
1397
1397
  var import_jsx_runtime14 = require("react/jsx-runtime");
1398
1398
  var _ListBoxItem = ({ ...props }) => {
1399
1399
  const { classNames: classNames3 } = useListBoxContext();
1400
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_aria_components9.ListBoxItem, { ...props, className: classNames3.option });
1400
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_aria_components9.ListBoxItem, { ...props, className: classNames3.item });
1401
1401
  };
1402
1402
 
1403
1403
  // src/ListBox/ListBoxSection.tsx
@@ -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,117 +2180,47 @@ var Container = ({
2180
2180
  );
2181
2181
 
2182
2182
  // src/Dialog/Dialog.tsx
2183
- var import_react26 = require("react");
2184
- var import_react_aria_components25 = require("react-aria-components");
2185
- var import_system40 = require("@marigold/system");
2186
-
2187
- // src/Dialog/DialogActions.tsx
2188
- var import_system35 = require("@marigold/system");
2189
- var import_jsx_runtime39 = require("react/jsx-runtime");
2190
- var DialogActions = ({ variant, size: size2, children }) => {
2191
- const classNames3 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size: size2 });
2192
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_system35.cn)("[grid-area:actions]", classNames3.actions), children });
2193
- };
2194
-
2195
- // src/Dialog/DialogContent.tsx
2196
- var import_system36 = require("@marigold/system");
2197
- var import_jsx_runtime40 = require("react/jsx-runtime");
2198
- var DialogContent = ({
2199
- variant,
2200
- size: size2,
2201
- children
2202
- }) => {
2203
- const classNames3 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size: size2 });
2204
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0, import_system36.cn)("[grid-area:content]", classNames3.content), children });
2205
- };
2206
-
2207
- // src/Dialog/DialogTitle.tsx
2183
+ var import_react29 = require("react");
2184
+ var import_react_aria_components26 = require("react-aria-components");
2208
2185
  var import_system39 = require("@marigold/system");
2209
2186
 
2210
- // src/Header/Header.tsx
2187
+ // src/CloseButton/CloseButton.tsx
2188
+ var import_react24 = require("react");
2211
2189
  var import_react_aria_components21 = require("react-aria-components");
2212
- var import_system37 = require("@marigold/system");
2213
- var import_jsx_runtime41 = require("react/jsx-runtime");
2214
- var _Header = ({ variant, size: size2, ...props }) => {
2215
- const classNames3 = (0, import_system37.useClassNames)({
2216
- component: "Header",
2217
- variant,
2218
- size: size2
2219
- });
2220
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_aria_components21.Header, { className: classNames3, ...props, children: props.children });
2221
- };
2222
-
2223
- // src/Headline/Headline.tsx
2224
- var import_react_aria_components22 = require("react-aria-components");
2225
- var import_system38 = require("@marigold/system");
2226
- var import_jsx_runtime42 = require("react/jsx-runtime");
2227
- var _Headline = ({
2228
- variant,
2229
- size: size2,
2230
- children,
2231
- align = "left",
2232
- color,
2233
- level = "1",
2234
- ...props
2235
- }) => {
2236
- const classNames3 = (0, import_system38.useClassNames)({
2237
- component: "Headline",
2238
- variant,
2239
- size: size2 != null ? size2 : `level-${level}`
2240
- });
2241
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2242
- import_react_aria_components22.Heading,
2243
- {
2244
- level: Number(level),
2245
- ...props,
2246
- className: (0, import_system38.cn)(
2247
- classNames3,
2248
- "max-w-(--maxHeadlineWidth)",
2249
- // possibly set by a <Container>
2250
- import_system38.textAlign[align]
2251
- ),
2252
- style: { color: color && (0, import_system38.ensureCssVar)(color, "color") },
2253
- children
2254
- }
2255
- );
2256
- };
2257
-
2258
- // src/Dialog/DialogTitle.tsx
2259
- var import_jsx_runtime43 = require("react/jsx-runtime");
2260
- var DialogTitle = ({
2261
- level = "2",
2262
- variant,
2263
- size: size2,
2264
- children
2265
- }) => {
2266
- const classNames3 = (0, import_system39.useClassNames)({ component: "Dialog", variant, size: size2 });
2267
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(_Header, { className: (0, import_system39.cn)("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(_Headline, { slot: "title", level, children }) });
2268
- };
2269
-
2270
- // src/Dialog/DialogTrigger.tsx
2271
- var import_react25 = require("react");
2272
- var import_react_aria_components24 = require("react-aria-components");
2190
+ var import_system35 = require("@marigold/system");
2191
+ var import_jsx_runtime39 = require("react/jsx-runtime");
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
+ );
2273
2203
 
2274
2204
  // src/Overlay/Modal.tsx
2275
- var import_react24 = require("react");
2276
- var import_react_aria_components23 = require("react-aria-components");
2277
- var import_jsx_runtime44 = require("react/jsx-runtime");
2278
- var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
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) => {
2279
2209
  const props = {
2280
2210
  isOpen: open,
2281
2211
  isDismissable: dismissable,
2282
2212
  isKeyboardDismissDisabled: keyboardDismissable,
2283
2213
  ...rest
2284
2214
  };
2285
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2215
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2286
2216
  Underlay,
2287
2217
  {
2288
2218
  dismissable,
2289
2219
  keyboardDismissable,
2290
2220
  open,
2291
2221
  variant: "modal",
2292
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2293
- import_react_aria_components23.Modal,
2222
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2223
+ import_react_aria_components22.Modal,
2294
2224
  {
2295
2225
  ref,
2296
2226
  className: "relative flex w-full justify-center",
@@ -2302,126 +2232,469 @@ var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismis
2302
2232
  );
2303
2233
  });
2304
2234
 
2235
+ // src/Overlay/NonModal.tsx
2236
+ var import_react27 = require("react");
2237
+ var import_react_aria_components23 = require("react-aria-components");
2238
+ var import_react_stately = require("react-stately");
2239
+ var import_focus = require("@react-aria/focus");
2240
+ var import_overlays2 = require("@react-aria/overlays");
2241
+ var import_ssr2 = require("@react-aria/ssr");
2242
+ var import_utils = require("@react-aria/utils");
2243
+
2244
+ // src/utils/useRenderProps.tsx
2245
+ var import_react26 = require("react");
2246
+ function useRenderProps(props) {
2247
+ let {
2248
+ className,
2249
+ style,
2250
+ children,
2251
+ defaultClassName = void 0,
2252
+ defaultChildren = void 0,
2253
+ defaultStyle,
2254
+ values
2255
+ } = props;
2256
+ return (0, import_react26.useMemo)(() => {
2257
+ let computedClassName;
2258
+ let computedStyle;
2259
+ let computedChildren;
2260
+ if (typeof className === "function") {
2261
+ computedClassName = className({ ...values, defaultClassName });
2262
+ } else {
2263
+ computedClassName = className;
2264
+ }
2265
+ if (typeof style === "function") {
2266
+ computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
2267
+ } else {
2268
+ computedStyle = style;
2269
+ }
2270
+ if (typeof children === "function") {
2271
+ computedChildren = children({ ...values, defaultChildren });
2272
+ } else if (children == null) {
2273
+ computedChildren = defaultChildren;
2274
+ } else {
2275
+ computedChildren = children;
2276
+ }
2277
+ return {
2278
+ className: computedClassName != null ? computedClassName : defaultClassName,
2279
+ style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
2280
+ children: computedChildren != null ? computedChildren : defaultChildren,
2281
+ "data-rac": ""
2282
+ };
2283
+ }, [
2284
+ className,
2285
+ style,
2286
+ children,
2287
+ defaultClassName,
2288
+ defaultChildren,
2289
+ defaultStyle,
2290
+ values
2291
+ ]);
2292
+ }
2293
+
2294
+ // src/Overlay/useNonModal.ts
2295
+ var import_overlays = require("@react-aria/overlays");
2296
+ var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
2297
+ let { overlayProps } = (0, import_overlays.useOverlay)(
2298
+ {
2299
+ isOpen: state.isOpen,
2300
+ onClose: state.close,
2301
+ shouldCloseOnBlur: false,
2302
+ isDismissable: false,
2303
+ isKeyboardDismissDisabled: keyboardDismissable ? false : true
2304
+ },
2305
+ nonModalRef
2306
+ );
2307
+ return {
2308
+ nonModalProps: overlayProps
2309
+ };
2310
+ };
2311
+
2312
+ // src/Overlay/NonModal.tsx
2313
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2314
+ var NonModalInner = ({ state, isExiting, ...props }) => {
2315
+ const { nonModalProps } = useNonModal(props, state);
2316
+ const ref = props.nonModalRef;
2317
+ const portalContainer = usePortalContainer();
2318
+ const isEntering = (0, import_utils.useEnterAnimation)(ref) || props.isEntering || false;
2319
+ const renderProps = useRenderProps({
2320
+ ...props,
2321
+ defaultClassName: "react-aria-NonModalOverlay",
2322
+ values: {
2323
+ isEntering,
2324
+ isExiting,
2325
+ state
2326
+ }
2327
+ });
2328
+ const viewport = (0, import_utils.useViewportSize)();
2329
+ const style = {
2330
+ ...renderProps.style,
2331
+ "--visual-viewport-height": viewport.height + "px"
2332
+ };
2333
+ const overlay = /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2334
+ "div",
2335
+ {
2336
+ ...(0, import_utils.mergeProps)((0, import_utils.filterDOMProps)(props), nonModalProps),
2337
+ ...renderProps,
2338
+ tabIndex: -1,
2339
+ "aria-label": props["aria-label"],
2340
+ "aria-labelledby": props["aria-labelledby"],
2341
+ ref,
2342
+ slot: props.slot || void 0,
2343
+ style,
2344
+ "data-entering": isEntering || void 0,
2345
+ "data-exiting": isExiting || void 0,
2346
+ children: [
2347
+ renderProps.children,
2348
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
2349
+ ]
2350
+ }
2351
+ );
2352
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2353
+ import_overlays2.Overlay,
2354
+ {
2355
+ isExiting,
2356
+ portalContainer,
2357
+ disableFocusManagement: true,
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 }) })
2359
+ }
2360
+ );
2361
+ };
2362
+ var NonModal = (0, import_react27.forwardRef)(
2363
+ ({ open, ...rest }, ref) => {
2364
+ const props = {
2365
+ isOpen: open,
2366
+ ...rest
2367
+ };
2368
+ ref = (0, import_utils.useObjectRef)(ref);
2369
+ const contextState = (0, import_react27.useContext)(import_react_aria_components23.OverlayTriggerStateContext);
2370
+ const localState = (0, import_react_stately.useOverlayTriggerState)(props);
2371
+ const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
2372
+ const isExiting = (0, import_utils.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
2373
+ const isSSR = (0, import_ssr2.useIsSSR)();
2374
+ if (state && !state.isOpen && !isExiting || isSSR) {
2375
+ return null;
2376
+ }
2377
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2378
+ NonModalInner,
2379
+ {
2380
+ ...props,
2381
+ nonModalRef: ref,
2382
+ state,
2383
+ isExiting
2384
+ }
2385
+ );
2386
+ }
2387
+ );
2388
+
2389
+ // src/Dialog/DialogActions.tsx
2390
+ var import_system36 = require("@marigold/system");
2391
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2392
+ var DialogActions = ({ variant, size: size2, 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 });
2395
+ };
2396
+
2397
+ // src/Dialog/DialogContent.tsx
2398
+ var import_system37 = require("@marigold/system");
2399
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2400
+ var DialogContent = ({
2401
+ variant,
2402
+ size: size2,
2403
+ children
2404
+ }) => {
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 });
2407
+ };
2408
+
2409
+ // src/Dialog/DialogTitle.tsx
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");
2413
+ var DialogTitle = ({ variant, size: size2, children }) => {
2414
+ const classNames3 = (0, import_system38.useClassNames)({
2415
+ component: "Dialog",
2416
+ variant,
2417
+ size: size2
2418
+ });
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 }) });
2420
+ };
2421
+
2305
2422
  // src/Dialog/DialogTrigger.tsx
2423
+ var import_react28 = require("react");
2424
+ var import_react_aria_components25 = require("react-aria-components");
2425
+ var import_interactions = require("@react-aria/interactions");
2306
2426
  var import_jsx_runtime45 = require("react/jsx-runtime");
2427
+ var DialogContext = (0, import_react28.createContext)({});
2307
2428
  var _DialogTrigger = ({
2308
2429
  open,
2309
2430
  dismissable,
2310
2431
  keyboardDismissable,
2311
- isNonModal,
2432
+ size: size2,
2312
2433
  ...rest
2313
2434
  }) => {
2314
2435
  const props = {
2315
2436
  isOpen: open,
2437
+ isDismissable: dismissable,
2438
+ isKeyboardDismissDisabled: !keyboardDismissable,
2316
2439
  ...rest
2317
2440
  };
2318
- const children = import_react25.Children.toArray(props.children);
2319
- const [dialogTrigger, dialog] = children;
2320
- const hasDialogTrigger = dialogTrigger.type !== _Dialog;
2321
- const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
2322
- if (isNonModal)
2323
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria_components24.DialogTrigger, { ...props, children: props.children });
2324
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react_aria_components24.DialogTrigger, { ...props, children: [
2325
- hasDialogTrigger && dialogTrigger,
2326
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
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 }) }) });
2442
+ };
2443
+
2444
+ // src/Dialog/Dialog.tsx
2445
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2446
+ var _Dialog = (0, import_react29.forwardRef)(
2447
+ (props, ref) => {
2448
+ var _a;
2449
+ const classNames3 = (0, import_system39.useClassNames)({
2450
+ component: "Dialog",
2451
+ variant: props.variant,
2452
+ size: props.size
2453
+ });
2454
+ const { isDismissable, isKeyboardDismissDisabled, isOpen } = (0, import_react29.useContext)(DialogContext);
2455
+ const state = (0, import_react29.useContext)(import_react_aria_components26.OverlayTriggerStateContext);
2456
+ const children = typeof props.children === "function" ? props.children({
2457
+ close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
2458
+ }
2459
+ }) : props.children;
2460
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2327
2461
  _Modal,
2328
2462
  {
2329
- dismissable,
2330
- keyboardDismissable,
2331
- children: currentDialog
2463
+ dismissable: isDismissable,
2464
+ keyboardDismissable: isKeyboardDismissDisabled,
2465
+ open: isOpen,
2466
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2467
+ import_react_aria_components26.Dialog,
2468
+ {
2469
+ ...props,
2470
+ ref,
2471
+ className: (0, import_system39.cn)(
2472
+ "relative outline-hidden [&>*:not(:last-child)]:mb-4",
2473
+ "grid [grid-template-areas:'title'_'content'_'actions']",
2474
+ classNames3.container
2475
+ ),
2476
+ children: [
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
+ ),
2484
+ children
2485
+ ]
2486
+ }
2487
+ )
2332
2488
  }
2333
- )
2334
- ] });
2489
+ );
2490
+ }
2491
+ );
2492
+ _Dialog.Trigger = _DialogTrigger;
2493
+ _Dialog.Title = DialogTitle;
2494
+ _Dialog.Content = DialogContent;
2495
+ _Dialog.Actions = DialogActions;
2496
+
2497
+ // src/Divider/Divider.tsx
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");
2501
+ var _Divider = ({ variant, ...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 });
2335
2504
  };
2336
2505
 
2337
- // src/Dialog/Dialog.tsx
2338
- var import_jsx_runtime46 = require("react/jsx-runtime");
2339
- var CloseButton = ({ className }) => {
2340
- const ctx = (0, import_react26.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
2341
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2342
- "button",
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",
2343
2532
  {
2344
- className: (0, import_system40.cn)(
2345
- "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
2346
- className
2347
- ),
2348
- onClick: ctx == null ? void 0 : ctx.close,
2349
- slot: "dismiss-button",
2350
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2351
- "path",
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
+ );
2562
+ };
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,
2352
2639
  {
2353
- fillRule: "evenodd",
2354
- clipRule: "evenodd",
2355
- 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"
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
+ ]
2356
2659
  }
2357
2660
  ) })
2358
2661
  }
2359
2662
  );
2360
2663
  };
2361
- var _Dialog = ({
2362
- variant,
2363
- size: size2,
2364
- closeButton,
2365
- isNonModal,
2366
- ...props
2367
- }) => {
2368
- var _a;
2369
- const classNames3 = (0, import_system40.useClassNames)({ component: "Dialog", variant, size: size2 });
2370
- const state = (0, import_react26.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
2371
- const children = typeof props.children === "function" ? props.children({
2372
- close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
2373
- }
2374
- }) : props.children;
2375
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2376
- import_react_aria_components25.Dialog,
2377
- {
2378
- ...props,
2379
- className: (0, import_system40.cn)(
2380
- "relative outline-hidden [&>*:not(:last-child)]:mb-4",
2381
- "grid [grid-template-areas:'title'_'content'_'actions']",
2382
- classNames3.container
2383
- ),
2384
- children: [
2385
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CloseButton, { className: classNames3.closeButton }),
2386
- children
2387
- ]
2388
- }
2389
- );
2390
- };
2391
- _Dialog.Trigger = _DialogTrigger;
2392
- _Dialog.Title = DialogTitle;
2393
- _Dialog.Content = DialogContent;
2394
- _Dialog.Actions = DialogActions;
2395
-
2396
- // src/Divider/Divider.tsx
2397
- var import_react_aria_components26 = require("react-aria-components");
2398
- var import_system41 = require("@marigold/system");
2399
- var import_jsx_runtime47 = require("react/jsx-runtime");
2400
- var _Divider = ({ variant, ...props }) => {
2401
- const classNames3 = (0, import_system41.useClassNames)({ component: "Divider", variant });
2402
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_aria_components26.Separator, { className: (0, import_system41.cn)("border-none", classNames3), ...props });
2403
- };
2664
+ Drawer.Trigger = DrawerTrigger;
2665
+ Drawer.Title = DrawerTitle;
2666
+ Drawer.Content = DrawerContent;
2667
+ Drawer.Actions = DrawerActions;
2404
2668
 
2405
2669
  // src/Footer/Footer.tsx
2406
- var import_system42 = require("@marigold/system");
2407
- var import_jsx_runtime48 = require("react/jsx-runtime");
2670
+ var import_system46 = require("@marigold/system");
2671
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2408
2672
  var Footer = ({ children, variant, size: size2, ...props }) => {
2409
- const classNames3 = (0, import_system42.useClassNames)({ component: "Footer", variant, size: size2 });
2410
- return /* @__PURE__ */ (0, import_jsx_runtime48.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 });
2411
2675
  };
2412
2676
 
2413
2677
  // src/Form/Form.tsx
2414
- 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
+ );
2415
2688
 
2416
2689
  // src/Grid/Grid.tsx
2417
- var import_system43 = require("@marigold/system");
2690
+ var import_system48 = require("@marigold/system");
2418
2691
 
2419
2692
  // src/Grid/GridArea.tsx
2420
- var import_jsx_runtime49 = require("react/jsx-runtime");
2421
- var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime49.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 });
2422
2695
 
2423
2696
  // src/Grid/Grid.tsx
2424
- var import_jsx_runtime50 = require("react/jsx-runtime");
2697
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2425
2698
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
2426
2699
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
2427
2700
  var Grid = ({
@@ -2433,10 +2706,10 @@ var Grid = ({
2433
2706
  space = 0,
2434
2707
  ...props
2435
2708
  }) => {
2436
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2709
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2437
2710
  "div",
2438
2711
  {
2439
- className: (0, import_system43.cn)("grid", import_system43.gapSpace[space], import_system43.height[height]),
2712
+ className: (0, import_system48.cn)("grid", import_system48.gapSpace[space], import_system48.height[height]),
2440
2713
  style: {
2441
2714
  gridTemplateAreas: parseGridAreas(areas),
2442
2715
  gridTemplateColumns: parseTemplateValue(columns),
@@ -2449,9 +2722,57 @@ var Grid = ({
2449
2722
  };
2450
2723
  Grid.Area = GridArea;
2451
2724
 
2725
+ // src/Header/Header.tsx
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");
2729
+ var _Header = ({ variant, size: size2, ...props }) => {
2730
+ const classNames3 = (0, import_system49.useClassNames)({
2731
+ component: "Header",
2732
+ variant,
2733
+ size: size2
2734
+ });
2735
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components32.Header, { className: classNames3, ...props, children: props.children });
2736
+ };
2737
+
2738
+ // src/Headline/Headline.tsx
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");
2742
+ var _Headline = ({
2743
+ variant,
2744
+ size: size2,
2745
+ children,
2746
+ align = "left",
2747
+ color,
2748
+ level = "1",
2749
+ ...props
2750
+ }) => {
2751
+ const classNames3 = (0, import_system50.useClassNames)({
2752
+ component: "Headline",
2753
+ variant,
2754
+ size: size2 != null ? size2 : `level-${level}`
2755
+ });
2756
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2757
+ import_react_aria_components33.Heading,
2758
+ {
2759
+ level: Number(level),
2760
+ ...props,
2761
+ className: (0, import_system50.cn)(
2762
+ classNames3,
2763
+ "max-w-(--maxHeadlineWidth)",
2764
+ // possibly set by a <Container>
2765
+ import_system50.textAlign[align]
2766
+ ),
2767
+ style: { color: color && (0, import_system50.ensureCssVar)(color, "color") },
2768
+ children
2769
+ }
2770
+ );
2771
+ };
2772
+
2452
2773
  // src/Image/Image.tsx
2453
- var import_system44 = require("@marigold/system");
2454
- var import_jsx_runtime51 = require("react/jsx-runtime");
2774
+ var import_system51 = require("@marigold/system");
2775
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2455
2776
  var Image = ({
2456
2777
  variant,
2457
2778
  size: size2,
@@ -2459,25 +2780,25 @@ var Image = ({
2459
2780
  position: position2 = "none",
2460
2781
  ...props
2461
2782
  }) => {
2462
- const classNames3 = (0, import_system44.useClassNames)({ component: "Image", variant, size: size2 });
2463
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2783
+ const classNames3 = (0, import_system51.useClassNames)({ component: "Image", variant, size: size2 });
2784
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2464
2785
  "img",
2465
2786
  {
2466
2787
  ...props,
2467
2788
  alt: props.alt,
2468
- className: (0, import_system44.cn)(
2789
+ className: (0, import_system51.cn)(
2469
2790
  fit !== "none" && "h-full w-full",
2470
2791
  classNames3,
2471
- import_system44.objectFit[fit],
2472
- import_system44.objectPosition[position2]
2792
+ import_system51.objectFit[fit],
2793
+ import_system51.objectPosition[position2]
2473
2794
  )
2474
2795
  }
2475
2796
  );
2476
2797
  };
2477
2798
 
2478
2799
  // src/Inline/Inline.tsx
2479
- var import_system45 = require("@marigold/system");
2480
- var import_jsx_runtime52 = require("react/jsx-runtime");
2800
+ var import_system52 = require("@marigold/system");
2801
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2481
2802
  var Inline = ({
2482
2803
  space = 0,
2483
2804
  alignX,
@@ -2486,15 +2807,15 @@ var Inline = ({
2486
2807
  ...props
2487
2808
  }) => {
2488
2809
  var _a, _b, _c, _d;
2489
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2810
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2490
2811
  "div",
2491
2812
  {
2492
2813
  ...props,
2493
- className: (0, import_system45.cn)(
2814
+ className: (0, import_system52.cn)(
2494
2815
  "flex flex-wrap",
2495
- import_system45.gapSpace[space],
2496
- alignX && ((_b = (_a = import_system45.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
2497
- 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])
2498
2819
  ),
2499
2820
  children
2500
2821
  }
@@ -2502,57 +2823,57 @@ var Inline = ({
2502
2823
  };
2503
2824
 
2504
2825
  // src/DateField/DateField.tsx
2505
- var import_react27 = require("react");
2506
- var import_react_aria_components30 = require("react-aria-components");
2826
+ var import_react32 = require("react");
2827
+ var import_react_aria_components36 = require("react-aria-components");
2507
2828
 
2508
2829
  // src/DateField/DateInput.tsx
2509
- var import_react_aria_components29 = require("react-aria-components");
2510
- var import_system47 = require("@marigold/system");
2830
+ var import_react_aria_components35 = require("react-aria-components");
2831
+ var import_system54 = require("@marigold/system");
2511
2832
 
2512
2833
  // src/DateField/DateSegment.tsx
2513
- var import_react_aria_components28 = require("react-aria-components");
2514
- var import_system46 = require("@marigold/system");
2515
- var import_jsx_runtime53 = 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");
2516
2837
  var _DateSegment = ({ segment, ...props }) => {
2517
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2518
- import_react_aria_components28.DateSegment,
2838
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2839
+ import_react_aria_components34.DateSegment,
2519
2840
  {
2520
2841
  ...props,
2521
2842
  segment,
2522
2843
  style: {
2523
2844
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
2524
2845
  },
2525
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
2526
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2846
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2847
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2527
2848
  "span",
2528
2849
  {
2529
2850
  "aria-hidden": "true",
2530
- className: (0, import_system46.cn)(
2851
+ className: (0, import_system53.cn)(
2531
2852
  isPlaceholder ? "visible block" : "invisible hidden",
2532
2853
  "pointer-events-none w-full text-center"
2533
2854
  ),
2534
2855
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
2535
2856
  }
2536
2857
  ),
2537
- /* @__PURE__ */ (0, import_jsx_runtime53.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 })
2538
2859
  ] })
2539
2860
  }
2540
2861
  );
2541
2862
  };
2542
2863
 
2543
2864
  // src/DateField/DateInput.tsx
2544
- var import_jsx_runtime54 = require("react/jsx-runtime");
2865
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2545
2866
  var _DateInput = ({ variant, size: size2, action, ...props }) => {
2546
- const classNames3 = (0, import_system47.useClassNames)({ component: "DateField", variant, size: size2 });
2547
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react_aria_components29.Group, { className: classNames3.field, children: [
2548
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_aria_components29.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime54.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 }) }),
2549
2870
  action ? action : null
2550
2871
  ] });
2551
2872
  };
2552
2873
 
2553
2874
  // src/DateField/DateField.tsx
2554
- var import_jsx_runtime55 = require("react/jsx-runtime");
2555
- var _DateField = (0, import_react27.forwardRef)(
2875
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2876
+ var _DateField = (0, import_react32.forwardRef)(
2556
2877
  ({
2557
2878
  variant,
2558
2879
  size: size2,
@@ -2570,46 +2891,46 @@ var _DateField = (0, import_react27.forwardRef)(
2570
2891
  isRequired: required,
2571
2892
  ...rest
2572
2893
  };
2573
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2894
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2574
2895
  FieldBase,
2575
2896
  {
2576
- as: import_react_aria_components30.DateField,
2897
+ as: import_react_aria_components36.DateField,
2577
2898
  variant,
2578
2899
  size: size2,
2579
2900
  ref,
2580
2901
  ...props,
2581
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(_DateInput, { action })
2902
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_DateInput, { action })
2582
2903
  }
2583
2904
  );
2584
2905
  }
2585
2906
  );
2586
2907
 
2587
2908
  // src/Calendar/Calendar.tsx
2588
- var import_react32 = require("react");
2589
- var import_react_aria_components36 = require("react-aria-components");
2590
- 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");
2591
2912
 
2592
2913
  // src/Calendar/CalendarGrid.tsx
2593
- var import_react_aria_components32 = require("react-aria-components");
2594
- var import_system49 = require("@marigold/system");
2914
+ var import_react_aria_components38 = require("react-aria-components");
2915
+ var import_system56 = require("@marigold/system");
2595
2916
 
2596
2917
  // src/Calendar/CalendarGridHeader.tsx
2597
2918
  var import_date = require("@internationalized/date");
2598
- var import_react28 = require("react");
2599
- var import_react_aria_components31 = require("react-aria-components");
2919
+ var import_react33 = require("react");
2920
+ var import_react_aria_components37 = require("react-aria-components");
2600
2921
  var import_calendar = require("@react-aria/calendar");
2601
2922
  var import_i18n3 = require("@react-aria/i18n");
2602
- var import_system48 = require("@marigold/system");
2603
- var import_jsx_runtime56 = require("react/jsx-runtime");
2923
+ var import_system55 = require("@marigold/system");
2924
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2604
2925
  function CalendarGridHeader(props) {
2605
- const state = (0, import_react28.useContext)(import_react_aria_components31.CalendarStateContext);
2926
+ const state = (0, import_react33.useContext)(import_react_aria_components37.CalendarStateContext);
2606
2927
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
2607
2928
  const { locale } = (0, import_i18n3.useLocale)();
2608
2929
  const dayFormatter = (0, import_i18n3.useDateFormatter)({
2609
2930
  weekday: "short",
2610
2931
  timeZone: state.timeZone
2611
2932
  });
2612
- const weekDays = (0, import_react28.useMemo)(() => {
2933
+ const weekDays = (0, import_react33.useMemo)(() => {
2613
2934
  const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
2614
2935
  return [...new Array(7).keys()].map((index2) => {
2615
2936
  const date = weekStart.add({ days: index2 });
@@ -2617,21 +2938,21 @@ function CalendarGridHeader(props) {
2617
2938
  return dayFormatter.format(dateDay);
2618
2939
  });
2619
2940
  }, [locale, state.timeZone, dayFormatter]);
2620
- const classNames3 = (0, import_system48.useClassNames)({ component: "Calendar" });
2621
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime56.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)) }) });
2622
2943
  }
2623
2944
 
2624
2945
  // src/Calendar/CalendarGrid.tsx
2625
- var import_jsx_runtime57 = require("react/jsx-runtime");
2946
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2626
2947
  var _CalendarGrid = () => {
2627
- const classNames3 = (0, import_system49.useClassNames)({ component: "Calendar" });
2628
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react_aria_components32.CalendarGrid, { className: classNames3.calendarGrid, children: [
2629
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CalendarGridHeader, {}),
2630
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_aria_components32.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2631
- import_react_aria_components32.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,
2632
2953
  {
2633
2954
  date,
2634
- className: (0, import_system49.cn)(
2955
+ className: (0, import_system56.cn)(
2635
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",
2636
2957
  classNames3.calendarCell
2637
2958
  )
@@ -2641,9 +2962,9 @@ var _CalendarGrid = () => {
2641
2962
  };
2642
2963
 
2643
2964
  // src/Calendar/CalendarListBox.tsx
2644
- var import_react29 = require("react");
2645
- var import_react_aria_components33 = require("react-aria-components");
2646
- 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");
2647
2968
 
2648
2969
  // src/Calendar/useFormattedMonths.tsx
2649
2970
  var import_i18n4 = require("@react-aria/i18n");
@@ -2662,60 +2983,60 @@ function useFormattedMonths(timeZone, focusedDate) {
2662
2983
  }
2663
2984
 
2664
2985
  // src/Calendar/CalendarListBox.tsx
2665
- var import_jsx_runtime58 = require("react/jsx-runtime");
2986
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2666
2987
  function CalendarListBox({
2667
2988
  type,
2668
2989
  isDisabled,
2669
2990
  setSelectedDropdown
2670
2991
  }) {
2671
- const state = (0, import_react29.useContext)(import_react_aria_components33.CalendarStateContext);
2992
+ const state = (0, import_react34.useContext)(import_react_aria_components39.CalendarStateContext);
2672
2993
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
2673
2994
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2674
- const { select: selectClassNames } = (0, import_system50.useClassNames)({ component: "Select" });
2675
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2995
+ const { select: selectClassNames } = (0, import_system57.useClassNames)({ component: "Select" });
2996
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
2676
2997
  "button",
2677
2998
  {
2678
2999
  disabled: isDisabled,
2679
3000
  onClick: () => setSelectedDropdown(type),
2680
- className: (0, import_system50.cn)(buttonStyles, selectClassNames),
3001
+ className: (0, import_system57.cn)(buttonStyles, selectClassNames),
2681
3002
  "data-testid": type,
2682
3003
  children: [
2683
3004
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
2684
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChevronDown, {})
3005
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ChevronDown, {})
2685
3006
  ]
2686
3007
  }
2687
3008
  );
2688
3009
  }
2689
3010
 
2690
3011
  // src/Calendar/MonthControls.tsx
2691
- var import_system51 = require("@marigold/system");
2692
- var import_jsx_runtime59 = require("react/jsx-runtime");
3012
+ var import_system58 = require("@marigold/system");
3013
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2693
3014
  function MonthControls() {
2694
- const classNames3 = (0, import_system51.useClassNames)({ component: "Calendar" });
2695
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
3015
+ const classNames3 = (0, import_system58.useClassNames)({ component: "Calendar" });
3016
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
2696
3017
  "div",
2697
3018
  {
2698
- className: (0, import_system51.cn)(
3019
+ className: (0, import_system58.cn)(
2699
3020
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button]:px-2 [&_button]:py-1 [&_button:disabled]:cursor-not-allowed",
2700
3021
  classNames3.calendarControllers
2701
3022
  ),
2702
3023
  children: [
2703
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3024
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2704
3025
  IconButton,
2705
3026
  {
2706
- 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]"),
2707
3028
  variant: "navigation",
2708
3029
  slot: "previous",
2709
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronLeft, {})
3030
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronLeft, {})
2710
3031
  }
2711
3032
  ),
2712
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3033
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2713
3034
  IconButton,
2714
3035
  {
2715
- 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]"),
2716
3037
  variant: "navigation",
2717
3038
  slot: "next",
2718
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronRight, {})
3039
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronRight, {})
2719
3040
  }
2720
3041
  )
2721
3042
  ]
@@ -2725,24 +3046,24 @@ function MonthControls() {
2725
3046
  var MonthControls_default = MonthControls;
2726
3047
 
2727
3048
  // src/Calendar/MonthListBox.tsx
2728
- var import_react30 = require("react");
2729
- var import_react_aria_components34 = require("react-aria-components");
2730
- var import_jsx_runtime60 = 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");
2731
3052
  var MonthListBox = ({ setSelectedDropdown }) => {
2732
- const state = (0, import_react30.useContext)(import_react_aria_components34.CalendarStateContext);
3053
+ const state = (0, import_react35.useContext)(import_react_aria_components40.CalendarStateContext);
2733
3054
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
2734
3055
  let onChange2 = (index2) => {
2735
3056
  let value = Number(index2) + 1;
2736
3057
  let date = state.focusedDate.set({ month: value });
2737
3058
  state.setFocusedDate(date);
2738
3059
  };
2739
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3060
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2740
3061
  "ul",
2741
3062
  {
2742
3063
  "data-testid": "monthOptions",
2743
3064
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2744
3065
  children: months.map((month, index2) => {
2745
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3066
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2746
3067
  _Button,
2747
3068
  {
2748
3069
  slot: "previous",
@@ -2763,12 +3084,12 @@ var MonthListBox = ({ setSelectedDropdown }) => {
2763
3084
  var MonthListBox_default = MonthListBox;
2764
3085
 
2765
3086
  // src/Calendar/YearListBox.tsx
2766
- var import_react31 = require("react");
2767
- var import_react_aria_components35 = require("react-aria-components");
3087
+ var import_react36 = require("react");
3088
+ var import_react_aria_components41 = require("react-aria-components");
2768
3089
  var import_i18n5 = require("@react-aria/i18n");
2769
- var import_jsx_runtime61 = require("react/jsx-runtime");
3090
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2770
3091
  var YearListBox = ({ setSelectedDropdown }) => {
2771
- const state = (0, import_react31.useContext)(import_react_aria_components35.CalendarStateContext);
3092
+ const state = (0, import_react36.useContext)(import_react_aria_components41.CalendarStateContext);
2772
3093
  const years = [];
2773
3094
  let formatter = (0, import_i18n5.useDateFormatter)({
2774
3095
  year: "numeric",
@@ -2781,8 +3102,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
2781
3102
  formatted: formatter.format(date.toDate(state.timeZone))
2782
3103
  });
2783
3104
  }
2784
- const activeButtonRef = (0, import_react31.useRef)(null);
2785
- (0, import_react31.useEffect)(() => {
3105
+ const activeButtonRef = (0, import_react36.useRef)(null);
3106
+ (0, import_react36.useEffect)(() => {
2786
3107
  if (activeButtonRef.current) {
2787
3108
  const activeButton = activeButtonRef.current;
2788
3109
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -2796,19 +3117,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
2796
3117
  let date = years[index2].value;
2797
3118
  state.setFocusedDate(date);
2798
3119
  };
2799
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3120
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2800
3121
  "ul",
2801
3122
  {
2802
3123
  "data-testid": "yearOptions",
2803
3124
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2804
3125
  children: years.map((year, index2) => {
2805
3126
  const isActive = +year.formatted === state.focusedDate.year;
2806
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3127
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2807
3128
  "div",
2808
3129
  {
2809
3130
  ref: isActive ? activeButtonRef : null,
2810
3131
  style: { height: "100%", width: "100%" },
2811
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3132
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2812
3133
  _Button,
2813
3134
  {
2814
3135
  slot: "previous",
@@ -2833,7 +3154,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
2833
3154
  var YearListBox_default = YearListBox;
2834
3155
 
2835
3156
  // src/Calendar/Calendar.tsx
2836
- var import_jsx_runtime62 = require("react/jsx-runtime");
3157
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2837
3158
  var _Calendar = ({
2838
3159
  disabled,
2839
3160
  readOnly,
@@ -2848,24 +3169,24 @@ var _Calendar = ({
2848
3169
  isDateUnavailable: dateUnavailable,
2849
3170
  ...rest
2850
3171
  };
2851
- const classNames3 = (0, import_system52.useClassNames)({ component: "Calendar" });
2852
- const [selectedDropdown, setSelectedDropdown] = (0, import_react32.useState)();
3172
+ const classNames3 = (0, import_system59.useClassNames)({ component: "Calendar" });
3173
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react37.useState)();
2853
3174
  const ViewMap = {
2854
- month: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MonthListBox_default, { setSelectedDropdown }),
2855
- year: /* @__PURE__ */ (0, import_jsx_runtime62.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 })
2856
3177
  };
2857
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2858
- import_react_aria_components36.Calendar,
3178
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3179
+ import_react_aria_components42.Calendar,
2859
3180
  {
2860
- className: (0, import_system52.cn)(
3181
+ className: (0, import_system59.cn)(
2861
3182
  "flex min-h-[350px] w-fit flex-col rounded-xs p-4",
2862
3183
  classNames3.calendar
2863
3184
  ),
2864
3185
  ...props,
2865
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2866
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
2867
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex w-fit gap-4", children: [
2868
- /* @__PURE__ */ (0, import_jsx_runtime62.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)(
2869
3190
  CalendarListBox,
2870
3191
  {
2871
3192
  type: "month",
@@ -2873,7 +3194,7 @@ var _Calendar = ({
2873
3194
  setSelectedDropdown
2874
3195
  }
2875
3196
  ),
2876
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3197
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2877
3198
  CalendarListBox,
2878
3199
  {
2879
3200
  type: "year",
@@ -2882,20 +3203,20 @@ var _Calendar = ({
2882
3203
  }
2883
3204
  )
2884
3205
  ] }),
2885
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(MonthControls_default, {})
3206
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(MonthControls_default, {})
2886
3207
  ] }),
2887
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(_CalendarGrid, {})
3208
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_CalendarGrid, {})
2888
3209
  ] })
2889
3210
  }
2890
3211
  );
2891
3212
  };
2892
3213
 
2893
3214
  // src/DatePicker/DatePicker.tsx
2894
- var import_react33 = __toESM(require("react"));
2895
- var import_react_aria_components37 = require("react-aria-components");
2896
- var import_system53 = require("@marigold/system");
2897
- var import_jsx_runtime63 = require("react/jsx-runtime");
2898
- var _DatePicker = import_react33.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(
2899
3220
  ({
2900
3221
  dateUnavailable,
2901
3222
  disabled,
@@ -2918,24 +3239,24 @@ var _DatePicker = import_react33.default.forwardRef(
2918
3239
  granularity,
2919
3240
  ...rest
2920
3241
  };
2921
- const classNames3 = (0, import_system53.useClassNames)({
3242
+ const classNames3 = (0, import_system60.useClassNames)({
2922
3243
  component: "DatePicker",
2923
3244
  size: size2,
2924
3245
  variant
2925
3246
  });
2926
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3247
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
2927
3248
  FieldBase,
2928
3249
  {
2929
- as: import_react_aria_components37.DatePicker,
3250
+ as: import_react_aria_components43.DatePicker,
2930
3251
  variant,
2931
3252
  size: size2,
2932
3253
  ...props,
2933
3254
  ref,
2934
3255
  children: [
2935
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3256
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2936
3257
  _DateInput,
2937
3258
  {
2938
- action: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3259
+ action: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2939
3260
  "svg",
2940
3261
  {
2941
3262
  "data-testid": "action",
@@ -2943,12 +3264,12 @@ var _DatePicker = import_react33.default.forwardRef(
2943
3264
  width: 24,
2944
3265
  height: 24,
2945
3266
  fill: "currentColor",
2946
- children: /* @__PURE__ */ (0, import_jsx_runtime63.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" })
2947
3268
  }
2948
3269
  ) })
2949
3270
  }
2950
3271
  ),
2951
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_aria_components37.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime63.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 }) }) })
2952
3273
  ]
2953
3274
  }
2954
3275
  );
@@ -2956,53 +3277,53 @@ var _DatePicker = import_react33.default.forwardRef(
2956
3277
  );
2957
3278
 
2958
3279
  // src/Inset/Inset.tsx
2959
- var import_system54 = require("@marigold/system");
2960
- var import_jsx_runtime64 = require("react/jsx-runtime");
2961
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime64.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)(
2962
3283
  "div",
2963
3284
  {
2964
- className: (0, import_system54.cn)(
2965
- space && import_system54.paddingSpace[space],
2966
- !space && spaceX && import_system54.paddingSpaceX[spaceX],
2967
- !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]
2968
3289
  ),
2969
3290
  children
2970
3291
  }
2971
3292
  );
2972
3293
 
2973
3294
  // src/Link/Link.tsx
2974
- var import_react34 = require("react");
2975
- var import_react_aria_components38 = require("react-aria-components");
2976
- var import_system55 = require("@marigold/system");
2977
- var import_jsx_runtime65 = require("react/jsx-runtime");
2978
- var _Link = (0, import_react34.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)(
2979
3300
  ({ variant, size: size2, disabled, children, ...props }, ref) => {
2980
- const classNames3 = (0, import_system55.useClassNames)({
3301
+ const classNames3 = (0, import_system62.useClassNames)({
2981
3302
  component: "Link",
2982
3303
  variant,
2983
3304
  size: size2
2984
3305
  });
2985
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_aria_components38.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 });
2986
3307
  }
2987
3308
  );
2988
3309
 
2989
3310
  // src/List/List.tsx
2990
- var import_system56 = require("@marigold/system");
3311
+ var import_system63 = require("@marigold/system");
2991
3312
 
2992
3313
  // src/List/Context.ts
2993
- var import_react35 = require("react");
2994
- var ListContext = (0, import_react35.createContext)({});
2995
- var useListContext = () => (0, import_react35.useContext)(ListContext);
3314
+ var import_react40 = require("react");
3315
+ var ListContext = (0, import_react40.createContext)({});
3316
+ var useListContext = () => (0, import_react40.useContext)(ListContext);
2996
3317
 
2997
3318
  // src/List/ListItem.tsx
2998
- var import_jsx_runtime66 = require("react/jsx-runtime");
3319
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2999
3320
  var ListItem = ({ children, ...props }) => {
3000
3321
  const { classNames: classNames3 } = useListContext();
3001
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("li", { ...props, className: classNames3, children });
3322
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("li", { ...props, className: classNames3, children });
3002
3323
  };
3003
3324
 
3004
3325
  // src/List/List.tsx
3005
- var import_jsx_runtime67 = require("react/jsx-runtime");
3326
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3006
3327
  var List = ({
3007
3328
  as = "ul",
3008
3329
  children,
@@ -3011,38 +3332,38 @@ var List = ({
3011
3332
  ...props
3012
3333
  }) => {
3013
3334
  const Component2 = as;
3014
- const classNames3 = (0, import_system56.useClassNames)({ component: "List", variant, size: size2 });
3015
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime67.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 }) });
3016
3337
  };
3017
3338
  List.Item = ListItem;
3018
3339
 
3019
3340
  // src/Menu/Menu.tsx
3020
- var import_react_aria_components41 = require("react-aria-components");
3021
- var import_system59 = require("@marigold/system");
3341
+ var import_react_aria_components47 = require("react-aria-components");
3342
+ var import_system66 = require("@marigold/system");
3022
3343
 
3023
3344
  // src/Menu/MenuItem.tsx
3024
- var import_react_aria_components39 = require("react-aria-components");
3025
- var import_system57 = require("@marigold/system");
3026
- var import_jsx_runtime68 = 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");
3027
3348
  var _MenuItem = ({ children, ...props }) => {
3028
- const classNames3 = (0, import_system57.useClassNames)({ component: "Menu" });
3029
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria_components39.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 });
3030
3351
  };
3031
3352
 
3032
3353
  // src/Menu/MenuSection.tsx
3033
- var import_react_aria_components40 = require("react-aria-components");
3034
- var import_system58 = require("@marigold/system");
3035
- var import_jsx_runtime69 = 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");
3036
3357
  var _MenuSection = ({ children, title, ...props }) => {
3037
- const className = (0, import_system58.useClassNames)({ component: "Menu" });
3038
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components40.MenuSection, { ...props, children: [
3039
- /* @__PURE__ */ (0, import_jsx_runtime69.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 }),
3040
3361
  children
3041
3362
  ] });
3042
3363
  };
3043
3364
 
3044
3365
  // src/Menu/Menu.tsx
3045
- var import_jsx_runtime70 = require("react/jsx-runtime");
3366
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3046
3367
  var _Menu = ({
3047
3368
  children,
3048
3369
  label,
@@ -3054,70 +3375,70 @@ var _Menu = ({
3054
3375
  "aria-label": ariaLabel,
3055
3376
  ...props
3056
3377
  }) => {
3057
- const classNames3 = (0, import_system59.useClassNames)({ component: "Menu", variant, size: size2 });
3058
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react_aria_components41.MenuTrigger, { ...props, children: [
3059
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
3060
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_aria_components41.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 }) })
3061
3382
  ] });
3062
3383
  };
3063
3384
  _Menu.Item = _MenuItem;
3064
3385
  _Menu.Section = _MenuSection;
3065
3386
 
3066
3387
  // src/Menu/ActionMenu.tsx
3067
- var import_react_aria_components42 = require("react-aria-components");
3068
- var import_system60 = require("@marigold/system");
3069
- var import_jsx_runtime71 = 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");
3070
3391
  var ActionMenu = ({
3071
3392
  variant,
3072
3393
  size: size2,
3073
3394
  disabled,
3074
3395
  ...props
3075
3396
  }) => {
3076
- const classNames3 = (0, import_system60.useClassNames)({ component: "Menu", variant, size: size2 });
3077
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react_aria_components42.MenuTrigger, { children: [
3078
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_system60.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime71.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" }) }) }),
3079
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components42.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 }) })
3080
3401
  ] });
3081
3402
  };
3082
3403
 
3083
3404
  // src/SectionMessage/SectionMessage.tsx
3084
- var import_react37 = require("react");
3405
+ var import_react42 = require("react");
3085
3406
  var import_button = require("@react-aria/button");
3086
- var import_system63 = require("@marigold/system");
3407
+ var import_system70 = require("@marigold/system");
3087
3408
 
3088
3409
  // src/SectionMessage/Context.tsx
3089
- var import_react36 = require("react");
3090
- var SectionMessageContext = (0, import_react36.createContext)({});
3091
- var useSectionMessageContext = () => (0, import_react36.useContext)(SectionMessageContext);
3410
+ var import_react41 = require("react");
3411
+ var SectionMessageContext = (0, import_react41.createContext)({});
3412
+ var useSectionMessageContext = () => (0, import_react41.useContext)(SectionMessageContext);
3092
3413
 
3093
3414
  // src/SectionMessage/SectionMessageContent.tsx
3094
- var import_system61 = require("@marigold/system");
3095
- var import_jsx_runtime72 = require("react/jsx-runtime");
3415
+ var import_system68 = require("@marigold/system");
3416
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3096
3417
  var SectionMessageContent = ({
3097
3418
  children
3098
3419
  }) => {
3099
3420
  const { classNames: classNames3 } = useSectionMessageContext();
3100
- return /* @__PURE__ */ (0, import_jsx_runtime72.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 });
3101
3422
  };
3102
3423
 
3103
3424
  // src/SectionMessage/SectionMessageTitle.tsx
3104
- var import_system62 = require("@marigold/system");
3105
- var import_jsx_runtime73 = require("react/jsx-runtime");
3425
+ var import_system69 = require("@marigold/system");
3426
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3106
3427
  var SectionMessageTitle = ({ children }) => {
3107
3428
  const { classNames: classNames3 } = useSectionMessageContext();
3108
- return /* @__PURE__ */ (0, import_jsx_runtime73.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 });
3109
3430
  };
3110
3431
 
3111
3432
  // src/SectionMessage/SectionMessage.tsx
3112
- var import_jsx_runtime74 = require("react/jsx-runtime");
3433
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3113
3434
  var icons = {
3114
- success: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3435
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3115
3436
  "svg",
3116
3437
  {
3117
3438
  xmlns: "http://www.w3.org/2000/svg",
3118
3439
  viewBox: "0 0 24 24",
3119
3440
  fill: "currentColor",
3120
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3441
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3121
3442
  "path",
3122
3443
  {
3123
3444
  fillRule: "evenodd",
@@ -3127,13 +3448,13 @@ var icons = {
3127
3448
  )
3128
3449
  }
3129
3450
  ),
3130
- info: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3451
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3131
3452
  "svg",
3132
3453
  {
3133
3454
  xmlns: "http://www.w3.org/2000/svg",
3134
3455
  viewBox: "0 0 24 24",
3135
3456
  fill: "currentColor",
3136
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3457
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3137
3458
  "path",
3138
3459
  {
3139
3460
  fillRule: "evenodd",
@@ -3143,13 +3464,13 @@ var icons = {
3143
3464
  )
3144
3465
  }
3145
3466
  ),
3146
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3467
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3147
3468
  "svg",
3148
3469
  {
3149
3470
  xmlns: "http://www.w3.org/2000/svg",
3150
3471
  viewBox: "0 0 24 24",
3151
3472
  fill: "currentColor",
3152
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3473
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3153
3474
  "path",
3154
3475
  {
3155
3476
  fillRule: "evenodd",
@@ -3159,13 +3480,13 @@ var icons = {
3159
3480
  )
3160
3481
  }
3161
3482
  ),
3162
- error: () => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3483
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3163
3484
  "svg",
3164
3485
  {
3165
3486
  xmlns: "http://www.w3.org/2000/svg",
3166
3487
  viewBox: "0 0 24 24",
3167
3488
  fill: "currentColor",
3168
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3489
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3169
3490
  "path",
3170
3491
  {
3171
3492
  fillRule: "evenodd",
@@ -3185,14 +3506,14 @@ var SectionMessage = ({
3185
3506
  onCloseChange,
3186
3507
  ...props
3187
3508
  }) => {
3188
- const buttonRef = (0, import_react37.useRef)(null);
3189
- const classNames3 = (0, import_system63.useClassNames)({
3509
+ const buttonRef = (0, import_react42.useRef)(null);
3510
+ const classNames3 = (0, import_system70.useClassNames)({
3190
3511
  component: "SectionMessage",
3191
3512
  variant,
3192
3513
  size: size2
3193
3514
  });
3194
3515
  const Icon4 = icons[variant];
3195
- const [internalVisible, setInternalVisible] = (0, import_react37.useState)(true);
3516
+ const [internalVisible, setInternalVisible] = (0, import_react42.useState)(true);
3196
3517
  const isCurrentlyVisible = close != null ? close : internalVisible;
3197
3518
  const { buttonProps } = (0, import_button.useButton)(props, buttonRef);
3198
3519
  const handleClose = () => {
@@ -3202,30 +3523,22 @@ var SectionMessage = ({
3202
3523
  }
3203
3524
  };
3204
3525
  if (!isCurrentlyVisible) return null;
3205
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
3526
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3206
3527
  "div",
3207
3528
  {
3208
3529
  role: variant === "error" ? "alert" : void 0,
3209
3530
  ...props,
3210
- className: (0, import_system63.cn)("grid auto-rows-min", classNames3.container),
3531
+ className: (0, import_system70.cn)("grid auto-rows-min", classNames3.container),
3211
3532
  children: [
3212
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_system63.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon4, {}) }),
3213
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3214
- "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,
3215
3536
  {
3216
3537
  ...buttonProps,
3217
3538
  ref: buttonRef,
3218
3539
  "aria-label": "close",
3219
- className: (0, import_system63.cn)("[grid-area:close]", classNames3.close),
3220
- onClick: handleClose,
3221
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3222
- "path",
3223
- {
3224
- fillRule: "evenodd",
3225
- clipRule: "evenodd",
3226
- 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"
3227
- }
3228
- ) })
3540
+ className: (0, import_system70.cn)("[grid-area:close]", classNames3.close),
3541
+ onPress: handleClose
3229
3542
  }
3230
3543
  ),
3231
3544
  children
@@ -3237,7 +3550,7 @@ SectionMessage.Title = SectionMessageTitle;
3237
3550
  SectionMessage.Content = SectionMessageContent;
3238
3551
 
3239
3552
  // src/Multiselect/Multiselect.tsx
3240
- var import_react_aria_components43 = require("react-aria-components");
3553
+ var import_react_aria_components49 = require("react-aria-components");
3241
3554
 
3242
3555
  // ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
3243
3556
  function _typeof(o) {
@@ -3377,33 +3690,33 @@ function _objectWithoutProperties(e, t) {
3377
3690
  }
3378
3691
 
3379
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
3380
- var import_react38 = require("react");
3693
+ var import_react43 = require("react");
3381
3694
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
3382
3695
  function useStateManager(_ref3) {
3383
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);
3384
- var _useState = (0, import_react38.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
3385
- var _useState3 = (0, import_react38.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
3386
- var _useState5 = (0, import_react38.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
3387
- var onChange2 = (0, import_react38.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) {
3388
3701
  if (typeof propsOnChange === "function") {
3389
3702
  propsOnChange(value2, actionMeta);
3390
3703
  }
3391
3704
  setStateValue(value2);
3392
3705
  }, [propsOnChange]);
3393
- var onInputChange = (0, import_react38.useCallback)(function(value2, actionMeta) {
3706
+ var onInputChange = (0, import_react43.useCallback)(function(value2, actionMeta) {
3394
3707
  var newValue;
3395
3708
  if (typeof propsOnInputChange === "function") {
3396
3709
  newValue = propsOnInputChange(value2, actionMeta);
3397
3710
  }
3398
3711
  setStateInputValue(newValue !== void 0 ? newValue : value2);
3399
3712
  }, [propsOnInputChange]);
3400
- var onMenuOpen = (0, import_react38.useCallback)(function() {
3713
+ var onMenuOpen = (0, import_react43.useCallback)(function() {
3401
3714
  if (typeof propsOnMenuOpen === "function") {
3402
3715
  propsOnMenuOpen();
3403
3716
  }
3404
3717
  setStateMenuIsOpen(true);
3405
3718
  }, [propsOnMenuOpen]);
3406
- var onMenuClose = (0, import_react38.useCallback)(function() {
3719
+ var onMenuClose = (0, import_react43.useCallback)(function() {
3407
3720
  if (typeof propsOnMenuClose === "function") {
3408
3721
  propsOnMenuClose();
3409
3722
  }
@@ -3436,7 +3749,7 @@ function _extends() {
3436
3749
 
3437
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
3438
3751
  var React11 = __toESM(require("react"));
3439
- var import_react45 = require("react");
3752
+ var import_react50 = require("react");
3440
3753
 
3441
3754
  // ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
3442
3755
  function _classCallCheck(a, n) {
@@ -3544,11 +3857,11 @@ function _toConsumableArray(r) {
3544
3857
 
3545
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
3546
3859
  var React10 = __toESM(require("react"));
3547
- var import_react43 = require("react");
3860
+ var import_react48 = require("react");
3548
3861
 
3549
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
3550
3863
  var React8 = __toESM(require("react"));
3551
- var import_react39 = require("react");
3864
+ var import_react44 = require("react");
3552
3865
 
3553
3866
  // ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
3554
3867
  var isDevelopment = false;
@@ -4736,15 +5049,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
4736
5049
  );
4737
5050
  var CacheProvider = EmotionCacheContext.Provider;
4738
5051
  var withEmotionCache = function withEmotionCache2(func) {
4739
- return /* @__PURE__ */ (0, import_react39.forwardRef)(function(props, ref) {
4740
- var cache = (0, import_react39.useContext)(EmotionCacheContext);
5052
+ return /* @__PURE__ */ (0, import_react44.forwardRef)(function(props, ref) {
5053
+ var cache = (0, import_react44.useContext)(EmotionCacheContext);
4741
5054
  return func(props, cache, ref);
4742
5055
  });
4743
5056
  };
4744
5057
  if (!isBrowser4) {
4745
5058
  withEmotionCache = function withEmotionCache3(func) {
4746
5059
  return function(props) {
4747
- var cache = (0, import_react39.useContext)(EmotionCacheContext);
5060
+ var cache = (0, import_react44.useContext)(EmotionCacheContext);
4748
5061
  if (cache === null) {
4749
5062
  cache = createCache({
4750
5063
  key: "css"
@@ -4828,7 +5141,7 @@ var Emotion$1 = Emotion;
4828
5141
  var React9 = __toESM(require("react"));
4829
5142
  var import_extends2 = __toESM(require_extends());
4830
5143
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
4831
- var jsx75 = function jsx76(type, props) {
5144
+ var jsx84 = function jsx85(type, props) {
4832
5145
  var args = arguments;
4833
5146
  if (props == null || !hasOwn.call(props, "css")) {
4834
5147
  return React9.createElement.apply(void 0, args);
@@ -4846,7 +5159,7 @@ var jsx75 = function jsx76(type, props) {
4846
5159
  var JSX;
4847
5160
  /* @__PURE__ */ (function(_JSX) {
4848
5161
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
4849
- })(jsx75 || (jsx75 = {}));
5162
+ })(jsx84 || (jsx84 = {}));
4850
5163
  function css() {
4851
5164
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4852
5165
  args[_key] = arguments[_key];
@@ -4876,7 +5189,7 @@ function _taggedTemplateLiteral(e, t) {
4876
5189
  }
4877
5190
 
4878
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
4879
- var import_react42 = require("react");
5192
+ var import_react47 = require("react");
4880
5193
  var import_react_dom = require("react-dom");
4881
5194
 
4882
5195
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
@@ -5277,9 +5590,9 @@ function autoUpdate(reference, floating, update, options2) {
5277
5590
  }
5278
5591
 
5279
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
5280
- var import_react40 = require("react");
5593
+ var import_react45 = require("react");
5281
5594
  var isClient = typeof document !== "undefined";
5282
- var index = isClient ? import_react40.useLayoutEffect : import_react40.useEffect;
5595
+ var index = isClient ? import_react45.useLayoutEffect : import_react45.useEffect;
5283
5596
 
5284
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
5285
5598
  var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
@@ -5613,13 +5926,13 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
5613
5926
  marginTop: spacing2.menuGutter
5614
5927
  });
5615
5928
  };
5616
- var PortalPlacementContext = /* @__PURE__ */ (0, import_react42.createContext)(null);
5929
+ var PortalPlacementContext = /* @__PURE__ */ (0, import_react47.createContext)(null);
5617
5930
  var MenuPlacer = function MenuPlacer2(props) {
5618
5931
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
5619
- var _ref3 = (0, import_react42.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
5620
- var ref = (0, import_react42.useRef)(null);
5621
- var _useState = (0, import_react42.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
5622
- var _useState3 = (0, import_react42.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];
5623
5936
  var controlHeight2 = theme.spacing.controlHeight;
5624
5937
  index(function() {
5625
5938
  var menuEl = ref.current;
@@ -5649,7 +5962,7 @@ var MenuPlacer = function MenuPlacer2(props) {
5649
5962
  };
5650
5963
  var Menu3 = function Menu4(props) {
5651
5964
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
5652
- return jsx75("div", _extends({}, getStyleProps(props, "menu", {
5965
+ return jsx84("div", _extends({}, getStyleProps(props, "menu", {
5653
5966
  menu: true
5654
5967
  }), {
5655
5968
  ref: innerRef
@@ -5671,7 +5984,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
5671
5984
  };
5672
5985
  var MenuList = function MenuList2(props) {
5673
5986
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
5674
- return jsx75("div", _extends({}, getStyleProps(props, "menuList", {
5987
+ return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
5675
5988
  "menu-list": true,
5676
5989
  "menu-list--is-multi": isMulti
5677
5990
  }), {
@@ -5691,7 +6004,7 @@ var noOptionsMessageCSS = noticeCSS;
5691
6004
  var loadingMessageCSS = noticeCSS;
5692
6005
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
5693
6006
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
5694
- return jsx75("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6007
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
5695
6008
  children,
5696
6009
  innerProps
5697
6010
  }), "noOptionsMessage", {
@@ -5701,7 +6014,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
5701
6014
  };
5702
6015
  var LoadingMessage = function LoadingMessage2(_ref7) {
5703
6016
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
5704
- return jsx75("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6017
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
5705
6018
  children,
5706
6019
  innerProps
5707
6020
  }), "loadingMessage", {
@@ -5721,16 +6034,16 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
5721
6034
  };
5722
6035
  var MenuPortal = function MenuPortal2(props) {
5723
6036
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
5724
- var menuPortalRef = (0, import_react42.useRef)(null);
5725
- var cleanupRef = (0, import_react42.useRef)(null);
5726
- var _useState5 = (0, import_react42.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
5727
- var portalPlacementContext = (0, import_react42.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() {
5728
6041
  return {
5729
6042
  setPortalPlacement
5730
6043
  };
5731
6044
  }, []);
5732
- var _useState7 = (0, import_react42.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
5733
- var updateComputedPosition = (0, import_react42.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() {
5734
6047
  if (!controlElement) return;
5735
6048
  var rect = getBoundingClientObj(controlElement);
5736
6049
  var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
@@ -5745,7 +6058,7 @@ var MenuPortal = function MenuPortal2(props) {
5745
6058
  index(function() {
5746
6059
  updateComputedPosition();
5747
6060
  }, [updateComputedPosition]);
5748
- var runAutoUpdate = (0, import_react42.useCallback)(function() {
6061
+ var runAutoUpdate = (0, import_react47.useCallback)(function() {
5749
6062
  if (typeof cleanupRef.current === "function") {
5750
6063
  cleanupRef.current();
5751
6064
  cleanupRef.current = null;
@@ -5759,12 +6072,12 @@ var MenuPortal = function MenuPortal2(props) {
5759
6072
  index(function() {
5760
6073
  runAutoUpdate();
5761
6074
  }, [runAutoUpdate]);
5762
- var setMenuPortalElement = (0, import_react42.useCallback)(function(menuPortalElement) {
6075
+ var setMenuPortalElement = (0, import_react47.useCallback)(function(menuPortalElement) {
5763
6076
  menuPortalRef.current = menuPortalElement;
5764
6077
  runAutoUpdate();
5765
6078
  }, [runAutoUpdate]);
5766
6079
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
5767
- var menuWrapper = jsx75("div", _extends({
6080
+ var menuWrapper = jsx84("div", _extends({
5768
6081
  ref: setMenuPortalElement
5769
6082
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
5770
6083
  offset: computedPosition.offset,
@@ -5773,7 +6086,7 @@ var MenuPortal = function MenuPortal2(props) {
5773
6086
  }), "menuPortal", {
5774
6087
  "menu-portal": true
5775
6088
  }), innerProps), children);
5776
- return jsx75(PortalPlacementContext.Provider, {
6089
+ return jsx84(PortalPlacementContext.Provider, {
5777
6090
  value: portalPlacementContext
5778
6091
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom.createPortal)(menuWrapper, appendTo) : menuWrapper);
5779
6092
  };
@@ -5789,7 +6102,7 @@ var containerCSS = function containerCSS2(_ref3) {
5789
6102
  };
5790
6103
  var SelectContainer = function SelectContainer2(props) {
5791
6104
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
5792
- return jsx75("div", _extends({}, getStyleProps(props, "container", {
6105
+ return jsx84("div", _extends({}, getStyleProps(props, "container", {
5793
6106
  "--is-disabled": isDisabled,
5794
6107
  "--is-rtl": isRtl
5795
6108
  }), innerProps), children);
@@ -5810,7 +6123,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
5810
6123
  };
5811
6124
  var ValueContainer = function ValueContainer2(props) {
5812
6125
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
5813
- return jsx75("div", _extends({}, getStyleProps(props, "valueContainer", {
6126
+ return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
5814
6127
  "value-container": true,
5815
6128
  "value-container--is-multi": isMulti,
5816
6129
  "value-container--has-value": hasValue
@@ -5826,7 +6139,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
5826
6139
  };
5827
6140
  var IndicatorsContainer = function IndicatorsContainer2(props) {
5828
6141
  var children = props.children, innerProps = props.innerProps;
5829
- return jsx75("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
6142
+ return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
5830
6143
  indicators: true
5831
6144
  }), innerProps), children);
5832
6145
  };
@@ -5847,7 +6160,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
5847
6160
  };
5848
6161
  var Svg = function Svg2(_ref3) {
5849
6162
  var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
5850
- return jsx75("svg", _extends({
6163
+ return jsx84("svg", _extends({
5851
6164
  height: size2,
5852
6165
  width: size2,
5853
6166
  viewBox: "0 0 20 20",
@@ -5857,16 +6170,16 @@ var Svg = function Svg2(_ref3) {
5857
6170
  }, props));
5858
6171
  };
5859
6172
  var CrossIcon = function CrossIcon2(props) {
5860
- return jsx75(Svg, _extends({
6173
+ return jsx84(Svg, _extends({
5861
6174
  size: 20
5862
- }, props), jsx75("path", {
6175
+ }, props), jsx84("path", {
5863
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"
5864
6177
  }));
5865
6178
  };
5866
6179
  var DownChevron = function DownChevron2(props) {
5867
- return jsx75(Svg, _extends({
6180
+ return jsx84(Svg, _extends({
5868
6181
  size: 20
5869
- }, props), jsx75("path", {
6182
+ }, props), jsx84("path", {
5870
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"
5871
6184
  }));
5872
6185
  };
@@ -5887,18 +6200,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
5887
6200
  var dropdownIndicatorCSS = baseCSS;
5888
6201
  var DropdownIndicator = function DropdownIndicator2(props) {
5889
6202
  var children = props.children, innerProps = props.innerProps;
5890
- return jsx75("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
6203
+ return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
5891
6204
  indicator: true,
5892
6205
  "dropdown-indicator": true
5893
- }), innerProps), children || jsx75(DownChevron, null));
6206
+ }), innerProps), children || jsx84(DownChevron, null));
5894
6207
  };
5895
6208
  var clearIndicatorCSS = baseCSS;
5896
6209
  var ClearIndicator = function ClearIndicator2(props) {
5897
6210
  var children = props.children, innerProps = props.innerProps;
5898
- return jsx75("div", _extends({}, getStyleProps(props, "clearIndicator", {
6211
+ return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
5899
6212
  indicator: true,
5900
6213
  "clear-indicator": true
5901
- }), innerProps), children || jsx75(CrossIcon, null));
6214
+ }), innerProps), children || jsx84(CrossIcon, null));
5902
6215
  };
5903
6216
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
5904
6217
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -5914,7 +6227,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
5914
6227
  };
5915
6228
  var IndicatorSeparator = function IndicatorSeparator2(props) {
5916
6229
  var innerProps = props.innerProps;
5917
- return jsx75("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
6230
+ return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
5918
6231
  "indicator-separator": true
5919
6232
  })));
5920
6233
  };
@@ -5938,7 +6251,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
5938
6251
  };
5939
6252
  var LoadingDot = function LoadingDot2(_ref6) {
5940
6253
  var delay = _ref6.delay, offset2 = _ref6.offset;
5941
- return jsx75("span", {
6254
+ return jsx84("span", {
5942
6255
  css: /* @__PURE__ */ css({
5943
6256
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
5944
6257
  backgroundColor: "currentColor",
@@ -5953,20 +6266,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
5953
6266
  };
5954
6267
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
5955
6268
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
5956
- return jsx75("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
6269
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
5957
6270
  innerProps,
5958
6271
  isRtl,
5959
6272
  size: size2
5960
6273
  }), "loadingIndicator", {
5961
6274
  indicator: true,
5962
6275
  "loading-indicator": true
5963
- }), innerProps), jsx75(LoadingDot, {
6276
+ }), innerProps), jsx84(LoadingDot, {
5964
6277
  delay: 0,
5965
6278
  offset: isRtl
5966
- }), jsx75(LoadingDot, {
6279
+ }), jsx84(LoadingDot, {
5967
6280
  delay: 160,
5968
6281
  offset: true
5969
- }), jsx75(LoadingDot, {
6282
+ }), jsx84(LoadingDot, {
5970
6283
  delay: 320,
5971
6284
  offset: !isRtl
5972
6285
  }));
@@ -5998,7 +6311,7 @@ var css$1 = function css2(_ref3, unstyled) {
5998
6311
  };
5999
6312
  var Control = function Control2(props) {
6000
6313
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
6001
- return jsx75("div", _extends({
6314
+ return jsx84("div", _extends({
6002
6315
  ref: innerRef
6003
6316
  }, getStyleProps(props, "control", {
6004
6317
  control: true,
@@ -6019,16 +6332,16 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
6019
6332
  };
6020
6333
  };
6021
6334
  var Group2 = function Group3(props) {
6022
- var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading3 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
6023
- return jsx75("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", {
6024
6337
  group: true
6025
- }), innerProps), jsx75(Heading3, _extends({}, headingProps, {
6338
+ }), innerProps), jsx84(Heading5, _extends({}, headingProps, {
6026
6339
  selectProps,
6027
6340
  theme,
6028
6341
  getStyles,
6029
6342
  getClassNames: getClassNames2,
6030
6343
  cx
6031
- }), label), jsx75("div", null, children));
6344
+ }), label), jsx84("div", null, children));
6032
6345
  };
6033
6346
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
6034
6347
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -6050,7 +6363,7 @@ var GroupHeading = function GroupHeading2(props) {
6050
6363
  var _cleanCommonProps = cleanCommonProps(props);
6051
6364
  _cleanCommonProps.data;
6052
6365
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
6053
- return jsx75("div", _extends({}, getStyleProps(props, "groupHeading", {
6366
+ return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
6054
6367
  "group-heading": true
6055
6368
  }), innerProps));
6056
6369
  };
@@ -6102,11 +6415,11 @@ var inputStyle = function inputStyle2(isHidden) {
6102
6415
  var Input2 = function Input3(props) {
6103
6416
  var cx = props.cx, value = props.value;
6104
6417
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
6105
- return jsx75("div", _extends({}, getStyleProps(props, "input", {
6418
+ return jsx84("div", _extends({}, getStyleProps(props, "input", {
6106
6419
  "input-container": true
6107
6420
  }), {
6108
6421
  "data-value": value || ""
6109
- }), jsx75("input", _extends({
6422
+ }), jsx84("input", _extends({
6110
6423
  className: cx({
6111
6424
  input: true
6112
6425
  }, inputClassName),
@@ -6160,35 +6473,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
6160
6473
  };
6161
6474
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
6162
6475
  var children = _ref4.children, innerProps = _ref4.innerProps;
6163
- return jsx75("div", innerProps, children);
6476
+ return jsx84("div", innerProps, children);
6164
6477
  };
6165
6478
  var MultiValueContainer = MultiValueGeneric;
6166
6479
  var MultiValueLabel = MultiValueGeneric;
6167
6480
  function MultiValueRemove(_ref5) {
6168
6481
  var children = _ref5.children, innerProps = _ref5.innerProps;
6169
- return jsx75("div", _extends({
6482
+ return jsx84("div", _extends({
6170
6483
  role: "button"
6171
- }, innerProps), children || jsx75(CrossIcon, {
6484
+ }, innerProps), children || jsx84(CrossIcon, {
6172
6485
  size: 14
6173
6486
  }));
6174
6487
  }
6175
6488
  var MultiValue = function MultiValue2(props) {
6176
6489
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
6177
6490
  var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
6178
- return jsx75(Container2, {
6491
+ return jsx84(Container2, {
6179
6492
  data,
6180
6493
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
6181
6494
  "multi-value": true,
6182
6495
  "multi-value--is-disabled": isDisabled
6183
6496
  })), innerProps),
6184
6497
  selectProps
6185
- }, jsx75(Label3, {
6498
+ }, jsx84(Label3, {
6186
6499
  data,
6187
6500
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
6188
6501
  "multi-value__label": true
6189
6502
  })),
6190
6503
  selectProps
6191
- }, children), jsx75(Remove, {
6504
+ }, children), jsx84(Remove, {
6192
6505
  data,
6193
6506
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
6194
6507
  "multi-value__remove": true
@@ -6221,7 +6534,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
6221
6534
  };
6222
6535
  var Option = function Option2(props) {
6223
6536
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
6224
- return jsx75("div", _extends({}, getStyleProps(props, "option", {
6537
+ return jsx84("div", _extends({}, getStyleProps(props, "option", {
6225
6538
  option: true,
6226
6539
  "option--is-disabled": isDisabled,
6227
6540
  "option--is-focused": isFocused,
@@ -6245,7 +6558,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
6245
6558
  };
6246
6559
  var Placeholder = function Placeholder2(props) {
6247
6560
  var children = props.children, innerProps = props.innerProps;
6248
- return jsx75("div", _extends({}, getStyleProps(props, "placeholder", {
6561
+ return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
6249
6562
  placeholder: true
6250
6563
  }), innerProps), children);
6251
6564
  };
@@ -6267,7 +6580,7 @@ var css3 = function css4(_ref3, unstyled) {
6267
6580
  };
6268
6581
  var SingleValue = function SingleValue2(props) {
6269
6582
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
6270
- return jsx75("div", _extends({}, getStyleProps(props, "singleValue", {
6583
+ return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
6271
6584
  "single-value": true,
6272
6585
  "single-value--is-disabled": isDisabled
6273
6586
  }), innerProps), children);
@@ -6369,7 +6682,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
6369
6682
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
6370
6683
  };
6371
6684
  var A11yText = function A11yText2(props) {
6372
- return jsx75("span", _extends({
6685
+ return jsx84("span", _extends({
6373
6686
  css: _ref
6374
6687
  }, props));
6375
6688
  };
@@ -6430,10 +6743,10 @@ var LiveRegion = function LiveRegion2(props) {
6430
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;
6431
6744
  var ariaLabel = selectProps["aria-label"];
6432
6745
  var ariaLive = selectProps["aria-live"];
6433
- var messages = (0, import_react43.useMemo)(function() {
6746
+ var messages = (0, import_react48.useMemo)(function() {
6434
6747
  return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
6435
6748
  }, [ariaLiveMessages]);
6436
- var ariaSelected = (0, import_react43.useMemo)(function() {
6749
+ var ariaSelected = (0, import_react48.useMemo)(function() {
6437
6750
  var message = "";
6438
6751
  if (ariaSelection && messages.onChange) {
6439
6752
  var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
@@ -6455,7 +6768,7 @@ var LiveRegion = function LiveRegion2(props) {
6455
6768
  }
6456
6769
  return message;
6457
6770
  }, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
6458
- var ariaFocused = (0, import_react43.useMemo)(function() {
6771
+ var ariaFocused = (0, import_react48.useMemo)(function() {
6459
6772
  var focusMsg = "";
6460
6773
  var focused = focusedOption || focusedValue;
6461
6774
  var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
@@ -6474,7 +6787,7 @@ var LiveRegion = function LiveRegion2(props) {
6474
6787
  }
6475
6788
  return focusMsg;
6476
6789
  }, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
6477
- var ariaResults = (0, import_react43.useMemo)(function() {
6790
+ var ariaResults = (0, import_react48.useMemo)(function() {
6478
6791
  var resultsMsg = "";
6479
6792
  if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
6480
6793
  var resultsMessage = screenReaderStatus2({
@@ -6488,7 +6801,7 @@ var LiveRegion = function LiveRegion2(props) {
6488
6801
  return resultsMsg;
6489
6802
  }, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
6490
6803
  var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
6491
- var ariaGuidance = (0, import_react43.useMemo)(function() {
6804
+ var ariaGuidance = (0, import_react48.useMemo)(function() {
6492
6805
  var guidanceMsg = "";
6493
6806
  if (messages.guidance) {
6494
6807
  var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
@@ -6504,18 +6817,18 @@ var LiveRegion = function LiveRegion2(props) {
6504
6817
  }
6505
6818
  return guidanceMsg;
6506
6819
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
6507
- var ScreenReaderText = jsx75(import_react43.Fragment, null, jsx75("span", {
6820
+ var ScreenReaderText = jsx84(import_react48.Fragment, null, jsx84("span", {
6508
6821
  id: "aria-selection"
6509
- }, ariaSelected), jsx75("span", {
6822
+ }, ariaSelected), jsx84("span", {
6510
6823
  id: "aria-focused"
6511
- }, ariaFocused), jsx75("span", {
6824
+ }, ariaFocused), jsx84("span", {
6512
6825
  id: "aria-results"
6513
- }, ariaResults), jsx75("span", {
6826
+ }, ariaResults), jsx84("span", {
6514
6827
  id: "aria-guidance"
6515
6828
  }, ariaGuidance));
6516
- return jsx75(import_react43.Fragment, null, jsx75(A11yText$1, {
6829
+ return jsx84(import_react48.Fragment, null, jsx84(A11yText$1, {
6517
6830
  id
6518
- }, isInitialFocus && ScreenReaderText), jsx75(A11yText$1, {
6831
+ }, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
6519
6832
  "aria-live": ariaLive,
6520
6833
  "aria-atomic": "false",
6521
6834
  "aria-relevant": "additions text",
@@ -6828,7 +7141,7 @@ var _excluded4 = ["innerRef"];
6828
7141
  function DummyInput(_ref3) {
6829
7142
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
6830
7143
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
6831
- return jsx75("input", _extends({
7144
+ return jsx84("input", _extends({
6832
7145
  ref: innerRef
6833
7146
  }, filteredProps, {
6834
7147
  css: /* @__PURE__ */ css({
@@ -6860,11 +7173,11 @@ var cancelScroll = function cancelScroll2(event) {
6860
7173
  };
6861
7174
  function useScrollCapture(_ref3) {
6862
7175
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
6863
- var isBottom = (0, import_react43.useRef)(false);
6864
- var isTop = (0, import_react43.useRef)(false);
6865
- var touchStart = (0, import_react43.useRef)(0);
6866
- var scrollTarget = (0, import_react43.useRef)(null);
6867
- var handleEventDelta = (0, import_react43.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) {
6868
7181
  if (scrollTarget.current === null) return;
6869
7182
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
6870
7183
  var target = scrollTarget.current;
@@ -6898,17 +7211,17 @@ function useScrollCapture(_ref3) {
6898
7211
  cancelScroll(event);
6899
7212
  }
6900
7213
  }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);
6901
- var onWheel = (0, import_react43.useCallback)(function(event) {
7214
+ var onWheel = (0, import_react48.useCallback)(function(event) {
6902
7215
  handleEventDelta(event, event.deltaY);
6903
7216
  }, [handleEventDelta]);
6904
- var onTouchStart = (0, import_react43.useCallback)(function(event) {
7217
+ var onTouchStart = (0, import_react48.useCallback)(function(event) {
6905
7218
  touchStart.current = event.changedTouches[0].clientY;
6906
7219
  }, []);
6907
- var onTouchMove = (0, import_react43.useCallback)(function(event) {
7220
+ var onTouchMove = (0, import_react48.useCallback)(function(event) {
6908
7221
  var deltaY = touchStart.current - event.changedTouches[0].clientY;
6909
7222
  handleEventDelta(event, deltaY);
6910
7223
  }, [handleEventDelta]);
6911
- var startListening = (0, import_react43.useCallback)(function(el) {
7224
+ var startListening = (0, import_react48.useCallback)(function(el) {
6912
7225
  if (!el) return;
6913
7226
  var notPassive = supportsPassiveEvents ? {
6914
7227
  passive: false
@@ -6917,13 +7230,13 @@ function useScrollCapture(_ref3) {
6917
7230
  el.addEventListener("touchstart", onTouchStart, notPassive);
6918
7231
  el.addEventListener("touchmove", onTouchMove, notPassive);
6919
7232
  }, [onTouchMove, onTouchStart, onWheel]);
6920
- var stopListening = (0, import_react43.useCallback)(function(el) {
7233
+ var stopListening = (0, import_react48.useCallback)(function(el) {
6921
7234
  if (!el) return;
6922
7235
  el.removeEventListener("wheel", onWheel, false);
6923
7236
  el.removeEventListener("touchstart", onTouchStart, false);
6924
7237
  el.removeEventListener("touchmove", onTouchMove, false);
6925
7238
  }, [onTouchMove, onTouchStart, onWheel]);
6926
- (0, import_react43.useEffect)(function() {
7239
+ (0, import_react48.useEffect)(function() {
6927
7240
  if (!isEnabled) return;
6928
7241
  var element = scrollTarget.current;
6929
7242
  startListening(element);
@@ -6970,9 +7283,9 @@ var listenerOptions = {
6970
7283
  };
6971
7284
  function useScrollLock(_ref3) {
6972
7285
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
6973
- var originalStyles = (0, import_react43.useRef)({});
6974
- var scrollTarget = (0, import_react43.useRef)(null);
6975
- var addScrollLock = (0, import_react43.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) {
6976
7289
  if (!canUseDOM) return;
6977
7290
  var target = document.body;
6978
7291
  var targetStyle = target && target.style;
@@ -7005,7 +7318,7 @@ function useScrollLock(_ref3) {
7005
7318
  }
7006
7319
  activeScrollLocks += 1;
7007
7320
  }, [accountForScrollbars]);
7008
- var removeScrollLock = (0, import_react43.useCallback)(function(touchScrollTarget) {
7321
+ var removeScrollLock = (0, import_react48.useCallback)(function(touchScrollTarget) {
7009
7322
  if (!canUseDOM) return;
7010
7323
  var target = document.body;
7011
7324
  var targetStyle = target && target.style;
@@ -7026,7 +7339,7 @@ function useScrollLock(_ref3) {
7026
7339
  }
7027
7340
  }
7028
7341
  }, [accountForScrollbars]);
7029
- (0, import_react43.useEffect)(function() {
7342
+ (0, import_react48.useEffect)(function() {
7030
7343
  if (!isEnabled) return;
7031
7344
  var element = scrollTarget.current;
7032
7345
  addScrollLock(element);
@@ -7070,7 +7383,7 @@ function ScrollManager(_ref3) {
7070
7383
  setScrollCaptureTarget(element);
7071
7384
  setScrollLockTarget(element);
7072
7385
  };
7073
- return jsx75(import_react43.Fragment, null, lockEnabled && jsx75("div", {
7386
+ return jsx84(import_react48.Fragment, null, lockEnabled && jsx84("div", {
7074
7387
  onClick: blurSelectInput,
7075
7388
  css: _ref2$1
7076
7389
  }), children(targetRef));
@@ -7089,7 +7402,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
7089
7402
  };
7090
7403
  var RequiredInput = function RequiredInput2(_ref3) {
7091
7404
  var name = _ref3.name, onFocus2 = _ref3.onFocus;
7092
- return jsx75("input", {
7405
+ return jsx84("input", {
7093
7406
  required: true,
7094
7407
  name,
7095
7408
  tabIndex: -1,
@@ -8648,7 +8961,7 @@ var Select = /* @__PURE__ */ function(_Component) {
8648
8961
  }
8649
8962
  }]);
8650
8963
  return Select3;
8651
- }(import_react43.Component);
8964
+ }(import_react48.Component);
8652
8965
  Select.defaultProps = defaultProps;
8653
8966
 
8654
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
@@ -8664,7 +8977,7 @@ var import_typeof5 = __toESM(require_typeof());
8664
8977
  var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
8665
8978
  var import_defineProperty3 = __toESM(require_defineProperty());
8666
8979
  var import_react_dom2 = require("react-dom");
8667
- var StateManagedSelect = /* @__PURE__ */ (0, import_react45.forwardRef)(function(props, ref) {
8980
+ var StateManagedSelect = /* @__PURE__ */ (0, import_react50.forwardRef)(function(props, ref) {
8668
8981
  var baseSelectProps = useStateManager(props);
8669
8982
  return /* @__PURE__ */ React11.createElement(Select, _extends({
8670
8983
  ref
@@ -8672,12 +8985,12 @@ var StateManagedSelect = /* @__PURE__ */ (0, import_react45.forwardRef)(function
8672
8985
  });
8673
8986
  var StateManagedSelect$1 = StateManagedSelect;
8674
8987
 
8675
- // ../../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
8676
- var import_utils5 = require("@react-aria/utils");
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
8989
+ var import_utils6 = require("@react-aria/utils");
8677
8990
  function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8678
8991
  let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
8679
- id = (0, import_utils5.useId)(id);
8680
- let labelId = (0, import_utils5.useId)();
8992
+ id = (0, import_utils6.useId)(id);
8993
+ let labelId = (0, import_utils6.useId)();
8681
8994
  let labelProps = {};
8682
8995
  if (label) {
8683
8996
  ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;
@@ -8685,8 +8998,8 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8685
8998
  id: labelId,
8686
8999
  htmlFor: labelElementType === "label" ? id : void 0
8687
9000
  };
8688
- } 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");
8689
- let fieldProps = (0, import_utils5.useLabels)({
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");
9002
+ let fieldProps = (0, import_utils6.useLabels)({
8690
9003
  id,
8691
9004
  "aria-label": ariaLabel,
8692
9005
  "aria-labelledby": ariaLabelledby
@@ -8697,24 +9010,24 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
8697
9010
  };
8698
9011
  }
8699
9012
 
8700
- // ../../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
8701
- var import_utils6 = require("@react-aria/utils");
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
9014
+ var import_utils7 = require("@react-aria/utils");
8702
9015
  function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
8703
9016
  let { description, errorMessage, isInvalid, validationState } = props;
8704
9017
  let { labelProps, fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);
8705
- let descriptionId = (0, import_utils6.useSlotId)([
9018
+ let descriptionId = (0, import_utils7.useSlotId)([
8706
9019
  Boolean(description),
8707
9020
  Boolean(errorMessage),
8708
9021
  isInvalid,
8709
9022
  validationState
8710
9023
  ]);
8711
- let errorMessageId = (0, import_utils6.useSlotId)([
9024
+ let errorMessageId = (0, import_utils7.useSlotId)([
8712
9025
  Boolean(description),
8713
9026
  Boolean(errorMessage),
8714
9027
  isInvalid,
8715
9028
  validationState
8716
9029
  ]);
8717
- fieldProps = (0, import_utils6.mergeProps)(fieldProps, {
9030
+ fieldProps = (0, import_utils7.mergeProps)(fieldProps, {
8718
9031
  "aria-describedby": [
8719
9032
  descriptionId,
8720
9033
  // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
@@ -8735,9 +9048,9 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
8735
9048
  }
8736
9049
 
8737
9050
  // src/Multiselect/Multiselect.tsx
8738
- var import_utils7 = require("@react-aria/utils");
8739
- var import_system64 = require("@marigold/system");
8740
- var import_jsx_runtime75 = require("react/jsx-runtime");
9051
+ var import_utils8 = require("@react-aria/utils");
9052
+ var import_system71 = require("@marigold/system");
9053
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8741
9054
  var propsToBeRemoved = [
8742
9055
  "clearValue",
8743
9056
  "getStyles",
@@ -8763,8 +9076,8 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
8763
9076
  },
8764
9077
  {}
8765
9078
  );
8766
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8767
- import_react_aria_components43.Input,
9079
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9080
+ import_react_aria_components49.Input,
8768
9081
  {
8769
9082
  disabled: props.isDisabled,
8770
9083
  ref: innerRef,
@@ -8774,20 +9087,20 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
8774
9087
  );
8775
9088
  };
8776
9089
  var MultiValueRemove2 = ({ innerProps }) => {
8777
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_aria_components43.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime75.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" }) }) });
8778
9091
  };
8779
9092
  var getClassNames = (classNames3) => ({
8780
- control: () => (0, import_system64.cn)(
8781
- "relative flex items-center box-border flex-wrap justify-between ",
9093
+ control: () => (0, import_system71.cn)(
9094
+ "relative flex items-center box-border flex-wrap justify-between",
8782
9095
  classNames3.container
8783
9096
  ),
8784
9097
  container: () => "pointer-events-auto",
8785
9098
  indicatorSeparator: () => "hidden",
8786
- menu: () => (0, import_system64.cn)("b", classNames3.listContainer),
8787
- menuList: () => (0, import_system64.cn)("overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh] p-0", classNames3.list),
8788
- 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 "),
8789
9102
  multiValueLabel: () => "p-0",
8790
- option: ({ isFocused }) => (0, import_system64.cn)(classNames3.option, { isFocused }),
9103
+ option: ({ isFocused }) => (0, import_system71.cn)(classNames3.option, { isFocused }),
8791
9104
  placeholder: () => "hidden",
8792
9105
  valueContainer: () => classNames3.valueContainer
8793
9106
  });
@@ -8808,7 +9121,7 @@ var Multiselect = ({
8808
9121
  onSelectionChange,
8809
9122
  ...rest
8810
9123
  }) => {
8811
- const classNames3 = (0, import_system64.useClassNames)({
9124
+ const classNames3 = (0, import_system71.useClassNames)({
8812
9125
  component: "MultiSelect",
8813
9126
  size: size2,
8814
9127
  variant
@@ -8826,12 +9139,12 @@ var Multiselect = ({
8826
9139
  label: props.label,
8827
9140
  errorMessage
8828
9141
  });
8829
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8830
- import_react_aria_components43.Provider,
9142
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9143
+ import_react_aria_components49.Provider,
8831
9144
  {
8832
9145
  values: [
8833
9146
  [
8834
- import_react_aria_components43.FieldErrorContext,
9147
+ import_react_aria_components49.FieldErrorContext,
8835
9148
  {
8836
9149
  isInvalid: !!error,
8837
9150
  validationDetails: {},
@@ -8839,7 +9152,7 @@ var Multiselect = ({
8839
9152
  }
8840
9153
  ],
8841
9154
  [
8842
- import_react_aria_components43.InputContext,
9155
+ import_react_aria_components49.InputContext,
8843
9156
  {
8844
9157
  ...fieldProps,
8845
9158
  placeholder,
@@ -8847,25 +9160,25 @@ var Multiselect = ({
8847
9160
  }
8848
9161
  ],
8849
9162
  [
8850
- import_react_aria_components43.ButtonContext,
9163
+ import_react_aria_components49.ButtonContext,
8851
9164
  {
8852
9165
  // react-select doesn't handle readonly so we had to do it manually here
8853
9166
  // keep to the button disabled in read only to prevent menu from opening
8854
9167
  isDisabled: disabled || readOnly,
8855
- className: (0, import_system64.cn)("flex items-center", classNames3.closeButton)
9168
+ className: (0, import_system71.cn)("flex items-center", classNames3.closeButton)
8856
9169
  }
8857
9170
  ]
8858
9171
  ],
8859
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
9172
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8860
9173
  "div",
8861
9174
  {
8862
- className: (0, import_system64.cn)(classNames3.field, "group/field"),
9175
+ className: (0, import_system71.cn)(classNames3.field, "group/field"),
8863
9176
  "data-required": props.required,
8864
9177
  "data-invalid": error,
8865
9178
  "data-readonly": readOnly,
8866
9179
  children: [
8867
- props.label && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(_Label, { ...labelProps, children: props.label }),
8868
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9180
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(_Label, { ...labelProps, children: props.label }),
9181
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8869
9182
  StateManagedSelect$1,
8870
9183
  {
8871
9184
  ...props,
@@ -8889,7 +9202,7 @@ var Multiselect = ({
8889
9202
  inputId: fieldProps.id,
8890
9203
  "aria-invalid": error,
8891
9204
  isClearable: false,
8892
- instanceId: (0, import_utils7.useId)(),
9205
+ instanceId: (0, import_utils8.useId)(),
8893
9206
  isSearchable: !readOnly,
8894
9207
  isMulti: true,
8895
9208
  closeMenuOnSelect: false,
@@ -8899,19 +9212,19 @@ var Multiselect = ({
8899
9212
  components: {
8900
9213
  Input: Input4,
8901
9214
  MultiValueRemove: MultiValueRemove2,
8902
- DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9215
+ DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8903
9216
  "button",
8904
9217
  {
8905
9218
  ...innerProps,
8906
9219
  disabled: isDisabled,
8907
9220
  className: classNames3.icon,
8908
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ChevronDown, { className: "size-4" })
9221
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronDown, { className: "size-4" })
8909
9222
  }
8910
9223
  )
8911
9224
  }
8912
9225
  }
8913
9226
  ),
8914
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(HelpText, { description, errorMessage })
9227
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(HelpText, { description, errorMessage })
8915
9228
  ]
8916
9229
  }
8917
9230
  )
@@ -8920,15 +9233,15 @@ var Multiselect = ({
8920
9233
  };
8921
9234
 
8922
9235
  // src/NumberField/NumberField.tsx
8923
- var import_react46 = require("react");
8924
- var import_react_aria_components45 = require("react-aria-components");
8925
- 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");
8926
9239
 
8927
9240
  // src/NumberField/StepButton.tsx
8928
- var import_react_aria_components44 = require("react-aria-components");
8929
- var import_system65 = require("@marigold/system");
8930
- var import_jsx_runtime76 = require("react/jsx-runtime");
8931
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime76.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)(
8932
9245
  "path",
8933
9246
  {
8934
9247
  fillRule: "evenodd",
@@ -8936,7 +9249,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 1
8936
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"
8937
9250
  }
8938
9251
  ) });
8939
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime76.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)(
8940
9253
  "path",
8941
9254
  {
8942
9255
  fillRule: "evenodd",
@@ -8946,10 +9259,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width:
8946
9259
  ) });
8947
9260
  var _StepButton = ({ direction, className, ...props }) => {
8948
9261
  const Icon4 = direction === "up" ? Plus : Minus;
8949
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
8950
- import_react_aria_components44.Button,
9262
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
9263
+ import_react_aria_components50.Button,
8951
9264
  {
8952
- className: (0, import_system65.cn)(
9265
+ className: (0, import_system72.cn)(
8953
9266
  [
8954
9267
  "flex items-center justify-center",
8955
9268
  "cursor-pointer data-disabled:cursor-not-allowed"
@@ -8957,14 +9270,14 @@ var _StepButton = ({ direction, className, ...props }) => {
8957
9270
  className
8958
9271
  ),
8959
9272
  ...props,
8960
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Icon4, {})
9273
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Icon4, {})
8961
9274
  }
8962
9275
  );
8963
9276
  };
8964
9277
 
8965
9278
  // src/NumberField/NumberField.tsx
8966
- var import_jsx_runtime77 = require("react/jsx-runtime");
8967
- var _NumberField = (0, import_react46.forwardRef)(
9279
+ var import_jsx_runtime86 = require("react/jsx-runtime");
9280
+ var _NumberField = (0, import_react51.forwardRef)(
8968
9281
  ({
8969
9282
  variant,
8970
9283
  size: size2,
@@ -8975,7 +9288,7 @@ var _NumberField = (0, import_react46.forwardRef)(
8975
9288
  hideStepper,
8976
9289
  ...rest
8977
9290
  }, ref) => {
8978
- const classNames3 = (0, import_system66.useClassNames)({
9291
+ const classNames3 = (0, import_system73.useClassNames)({
8979
9292
  component: "NumberField",
8980
9293
  size: size2,
8981
9294
  variant
@@ -8988,15 +9301,15 @@ var _NumberField = (0, import_react46.forwardRef)(
8988
9301
  ...rest
8989
9302
  };
8990
9303
  const showStepper = !hideStepper && !readOnly;
8991
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9304
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8992
9305
  FieldBase,
8993
9306
  {
8994
- as: import_react_aria_components45.NumberField,
9307
+ as: import_react_aria_components51.NumberField,
8995
9308
  ...props,
8996
9309
  "data-readonly": readOnly ? "true" : void 0,
8997
9310
  "data-stepper": showStepper ? "true" : void 0,
8998
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react_aria_components45.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
8999
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.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)(
9000
9313
  _StepButton,
9001
9314
  {
9002
9315
  className: classNames3.stepper,
@@ -9004,14 +9317,14 @@ var _NumberField = (0, import_react46.forwardRef)(
9004
9317
  slot: "decrement"
9005
9318
  }
9006
9319
  ),
9007
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9008
- import_react_aria_components45.Input,
9320
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9321
+ import_react_aria_components51.Input,
9009
9322
  {
9010
9323
  ref,
9011
- 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)
9012
9325
  }
9013
9326
  ),
9014
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9327
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
9015
9328
  _StepButton,
9016
9329
  {
9017
9330
  className: classNames3.stepper,
@@ -9025,168 +9338,15 @@ var _NumberField = (0, import_react46.forwardRef)(
9025
9338
  }
9026
9339
  );
9027
9340
 
9028
- // src/Overlay/NonModal.tsx
9029
- var import_react48 = require("react");
9030
- var import_react_aria_components46 = require("react-aria-components");
9031
- var import_react_stately = require("react-stately");
9032
- var import_focus = require("@react-aria/focus");
9033
- var import_overlays2 = require("@react-aria/overlays");
9034
- var import_ssr2 = require("@react-aria/ssr");
9035
- var import_utils8 = require("@react-aria/utils");
9036
-
9037
- // src/utils/useRenderProps.tsx
9038
- var import_react47 = require("react");
9039
- function useRenderProps(props) {
9040
- let {
9041
- className,
9042
- style,
9043
- children,
9044
- defaultClassName = void 0,
9045
- defaultChildren = void 0,
9046
- defaultStyle,
9047
- values
9048
- } = props;
9049
- return (0, import_react47.useMemo)(() => {
9050
- let computedClassName;
9051
- let computedStyle;
9052
- let computedChildren;
9053
- if (typeof className === "function") {
9054
- computedClassName = className({ ...values, defaultClassName });
9055
- } else {
9056
- computedClassName = className;
9057
- }
9058
- if (typeof style === "function") {
9059
- computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
9060
- } else {
9061
- computedStyle = style;
9062
- }
9063
- if (typeof children === "function") {
9064
- computedChildren = children({ ...values, defaultChildren });
9065
- } else if (children == null) {
9066
- computedChildren = defaultChildren;
9067
- } else {
9068
- computedChildren = children;
9069
- }
9070
- return {
9071
- className: computedClassName != null ? computedClassName : defaultClassName,
9072
- style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
9073
- children: computedChildren != null ? computedChildren : defaultChildren,
9074
- "data-rac": ""
9075
- };
9076
- }, [
9077
- className,
9078
- style,
9079
- children,
9080
- defaultClassName,
9081
- defaultChildren,
9082
- defaultStyle,
9083
- values
9084
- ]);
9085
- }
9086
-
9087
- // src/Overlay/useNonModal.ts
9088
- var import_overlays = require("@react-aria/overlays");
9089
- var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
9090
- let { overlayProps } = (0, import_overlays.useOverlay)(
9091
- {
9092
- isOpen: state.isOpen,
9093
- onClose: state.close,
9094
- shouldCloseOnBlur: false,
9095
- isDismissable: false,
9096
- isKeyboardDismissDisabled: keyboardDismissable ? false : true
9097
- },
9098
- nonModalRef
9099
- );
9100
- return {
9101
- nonModalProps: overlayProps
9102
- };
9103
- };
9104
-
9105
- // src/Overlay/NonModal.tsx
9106
- var import_jsx_runtime78 = require("react/jsx-runtime");
9107
- var NonModalInner = ({ state, isExiting, ...props }) => {
9108
- const { nonModalProps } = useNonModal(props, state);
9109
- const ref = props.nonModalRef;
9110
- const portalContainer = usePortalContainer();
9111
- const isEntering = (0, import_utils8.useEnterAnimation)(ref) || props.isEntering || false;
9112
- const renderProps = useRenderProps({
9113
- ...props,
9114
- defaultClassName: "react-aria-NonModalOverlay",
9115
- values: {
9116
- isEntering,
9117
- isExiting,
9118
- state
9119
- }
9120
- });
9121
- const viewport = (0, import_utils8.useViewportSize)();
9122
- const style = {
9123
- ...renderProps.style,
9124
- "--visual-viewport-height": viewport.height + "px"
9125
- };
9126
- const overlay = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
9127
- "div",
9128
- {
9129
- ...(0, import_utils8.mergeProps)((0, import_utils8.filterDOMProps)(props), nonModalProps),
9130
- ...renderProps,
9131
- tabIndex: -1,
9132
- "aria-label": props["aria-label"],
9133
- "aria-labelledby": props["aria-labelledby"],
9134
- ref,
9135
- slot: props.slot || void 0,
9136
- style,
9137
- "data-entering": isEntering || void 0,
9138
- "data-exiting": isExiting || void 0,
9139
- children: [
9140
- renderProps.children,
9141
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
9142
- ]
9143
- }
9144
- );
9145
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9146
- import_overlays2.Overlay,
9147
- {
9148
- isExiting,
9149
- portalContainer,
9150
- disableFocusManagement: true,
9151
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_aria_components46.Provider, { values: [[import_react_aria_components46.OverlayTriggerStateContext, state]], children: overlay }) })
9152
- }
9153
- );
9154
- };
9155
- var NonModal = (0, import_react48.forwardRef)(
9156
- ({ open, ...rest }, ref) => {
9157
- const props = {
9158
- isOpen: open,
9159
- ...rest
9160
- };
9161
- ref = (0, import_utils8.useObjectRef)(ref);
9162
- const contextState = (0, import_react48.useContext)(import_react_aria_components46.OverlayTriggerStateContext);
9163
- const localState = (0, import_react_stately.useOverlayTriggerState)(props);
9164
- const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
9165
- const isExiting = (0, import_utils8.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
9166
- const isSSR = (0, import_ssr2.useIsSSR)();
9167
- if (state && !state.isOpen && !isExiting || isSSR) {
9168
- return null;
9169
- }
9170
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9171
- NonModalInner,
9172
- {
9173
- ...props,
9174
- nonModalRef: ref,
9175
- state,
9176
- isExiting
9177
- }
9178
- );
9179
- }
9180
- );
9181
-
9182
9341
  // src/Pagination/Pagination.tsx
9183
- var import_react52 = require("react");
9184
- 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");
9185
9345
 
9186
9346
  // src/Pagination/Ellipsis.tsx
9187
- var import_jsx_runtime79 = require("react/jsx-runtime");
9347
+ var import_jsx_runtime87 = require("react/jsx-runtime");
9188
9348
  var Ellipsis = () => {
9189
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9349
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9190
9350
  "span",
9191
9351
  {
9192
9352
  className: "text-text-base flex h-8 w-8 items-center justify-center",
@@ -9197,13 +9357,13 @@ var Ellipsis = () => {
9197
9357
  };
9198
9358
 
9199
9359
  // src/Pagination/NavigationButton.tsx
9200
- var import_react49 = __toESM(require("react"));
9360
+ var import_react52 = require("react");
9201
9361
  var import_button2 = require("@react-aria/button");
9202
- var import_system67 = require("@marigold/system");
9203
- var import_jsx_runtime80 = require("react/jsx-runtime");
9362
+ var import_system74 = require("@marigold/system");
9363
+ var import_jsx_runtime88 = require("react/jsx-runtime");
9204
9364
  var NavigationButton = (props) => {
9205
- const ref = import_react49.default.useRef(null);
9206
- const classNames3 = (0, import_system67.useClassNames)({
9365
+ const ref = (0, import_react52.useRef)(null);
9366
+ const classNames3 = (0, import_system74.useClassNames)({
9207
9367
  component: "Pagination"
9208
9368
  });
9209
9369
  let { buttonProps } = (0, import_button2.useButton)(props, ref);
@@ -9216,20 +9376,14 @@ var NavigationButton = (props) => {
9216
9376
  position: position2,
9217
9377
  ...rest
9218
9378
  } = props;
9219
- (0, import_react49.useEffect)(() => {
9220
- if (registerRef) {
9221
- registerRef(ref.current);
9222
- return () => registerRef(null);
9223
- }
9224
- }, [registerRef]);
9225
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
9379
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
9226
9380
  "button",
9227
9381
  {
9228
9382
  ref,
9229
9383
  ...buttonProps,
9230
9384
  ...rest,
9231
9385
  disabled: isDisabled,
9232
- 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"),
9233
9387
  "data-selected": isSelected,
9234
9388
  children: [
9235
9389
  position2 === "left" && children,
@@ -9241,24 +9395,18 @@ var NavigationButton = (props) => {
9241
9395
  };
9242
9396
 
9243
9397
  // src/Pagination/PageButton.tsx
9244
- var import_react50 = require("react");
9398
+ var import_react53 = require("react");
9245
9399
  var import_button3 = require("@react-aria/button");
9246
- var import_system68 = require("@marigold/system");
9247
- var import_jsx_runtime81 = require("react/jsx-runtime");
9400
+ var import_system75 = require("@marigold/system");
9401
+ var import_jsx_runtime89 = require("react/jsx-runtime");
9248
9402
  var PageButton = (props) => {
9249
- const ref = (0, import_react50.useRef)(null);
9250
- const classNames3 = (0, import_system68.useClassNames)({
9403
+ const ref = (0, import_react53.useRef)(null);
9404
+ const classNames3 = (0, import_system75.useClassNames)({
9251
9405
  component: "Pagination"
9252
9406
  });
9253
9407
  let { buttonProps } = (0, import_button3.useButton)(props, ref);
9254
- let { page, selected, registerRef, isDisabled } = props;
9255
- (0, import_react50.useEffect)(() => {
9256
- if (registerRef) {
9257
- registerRef(ref.current);
9258
- return () => registerRef(null);
9259
- }
9260
- }, [registerRef]);
9261
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
9408
+ let { page, selected, isDisabled } = props;
9409
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9262
9410
  "button",
9263
9411
  {
9264
9412
  ref,
@@ -9274,122 +9422,6 @@ var PageButton = (props) => {
9274
9422
  );
9275
9423
  };
9276
9424
 
9277
- // src/Pagination/useKeyboardNavigation.tsx
9278
- var import_react51 = require("react");
9279
- var import_interactions = require("@react-aria/interactions");
9280
- var NavigationTypes = {
9281
- Prev: "prev",
9282
- Next: "next",
9283
- Page: "page",
9284
- Ellipsis: "ellipsis"
9285
- };
9286
- var useKeyboardNavigation = ({
9287
- page,
9288
- totalPages,
9289
- onChange: onChange2 = () => {
9290
- }
9291
- }) => {
9292
- const containerRef = (0, import_react51.useRef)(null);
9293
- const [focusedItem, setFocusedItem] = (0, import_react51.useState)({
9294
- type: "page",
9295
- value: page
9296
- });
9297
- const navigationItems = (0, import_react51.useRef)([]);
9298
- const buttonRefs = (0, import_react51.useRef)(/* @__PURE__ */ new Map());
9299
- const isItemDisabled = (0, import_react51.useCallback)(
9300
- (item) => {
9301
- if (item.type === NavigationTypes.Prev) return page <= 1;
9302
- if (item.type === NavigationTypes.Next) return page >= totalPages;
9303
- return item.type === NavigationTypes.Ellipsis;
9304
- },
9305
- [page, totalPages]
9306
- );
9307
- const findNextFocusableItem = (0, import_react51.useCallback)(
9308
- (current, direction) => {
9309
- const items = navigationItems.current.filter(
9310
- (item) => !isItemDisabled(item)
9311
- );
9312
- const currentIndex = items.findIndex(
9313
- (item) => item.type === current.type && item.value === current.value
9314
- );
9315
- if (currentIndex === -1) {
9316
- return items[0] || { type: NavigationTypes.Page, value: page };
9317
- }
9318
- const nextIndex = direction === "next" ? (currentIndex + 1) % items.length : (currentIndex - 1 + items.length) % items.length;
9319
- return items[nextIndex];
9320
- },
9321
- [isItemDisabled, page]
9322
- );
9323
- const focusItem = (0, import_react51.useCallback)(
9324
- (item) => {
9325
- if (isItemDisabled(item)) return;
9326
- const key = `${item.type}-${item.value}`;
9327
- const element = buttonRefs.current.get(key);
9328
- if (element && typeof element.focus === "function") {
9329
- element.focus();
9330
- setFocusedItem(item);
9331
- }
9332
- },
9333
- [isItemDisabled]
9334
- );
9335
- const { keyboardProps } = (0, import_interactions.useKeyboard)({
9336
- onKeyDown: (e) => {
9337
- let newFocusedItem = focusedItem;
9338
- switch (e.key) {
9339
- case "ArrowLeft":
9340
- newFocusedItem = findNextFocusableItem(focusedItem, "prev");
9341
- break;
9342
- case "ArrowRight":
9343
- newFocusedItem = findNextFocusableItem(focusedItem, "next");
9344
- break;
9345
- case "Home":
9346
- newFocusedItem = navigationItems.current.find((item) => !isItemDisabled(item)) || focusedItem;
9347
- break;
9348
- case "End":
9349
- newFocusedItem = [...navigationItems.current].reverse().find((item) => !isItemDisabled(item)) || focusedItem;
9350
- break;
9351
- case "Enter":
9352
- case " ":
9353
- if (isItemDisabled(focusedItem)) return;
9354
- if (focusedItem.type === NavigationTypes.Page && typeof focusedItem.value === "number") {
9355
- onChange2(focusedItem.value);
9356
- } else if (focusedItem.type === NavigationTypes.Prev && page > 1) {
9357
- onChange2(page - 1);
9358
- } else if (focusedItem.type === NavigationTypes.Next && page < totalPages) {
9359
- onChange2(page + 1);
9360
- }
9361
- break;
9362
- default:
9363
- return;
9364
- }
9365
- if (newFocusedItem !== focusedItem) {
9366
- focusItem(newFocusedItem);
9367
- }
9368
- }
9369
- });
9370
- const registerRef = (0, import_react51.useCallback)(
9371
- (type, value, ref) => {
9372
- const key = `${type}-${value}`;
9373
- if (ref) {
9374
- buttonRefs.current.set(key, ref);
9375
- } else {
9376
- buttonRefs.current.delete(key);
9377
- }
9378
- },
9379
- []
9380
- );
9381
- const setNavigationItems = (0, import_react51.useCallback)((items) => {
9382
- navigationItems.current = items;
9383
- }, []);
9384
- return {
9385
- containerRef,
9386
- keyboardProps,
9387
- registerRef,
9388
- setNavigationItems,
9389
- setFocusedItem
9390
- };
9391
- };
9392
-
9393
9425
  // src/Pagination/usePageRange.tsx
9394
9426
  var usePageRange = ({ currentPage, totalPages }) => {
9395
9427
  const getPageRange = () => {
@@ -9421,119 +9453,131 @@ var usePageRange = ({ currentPage, totalPages }) => {
9421
9453
  };
9422
9454
 
9423
9455
  // src/Pagination/Pagination.tsx
9424
- var import_jsx_runtime82 = require("react/jsx-runtime");
9456
+ var import_jsx_runtime90 = require("react/jsx-runtime");
9457
+ var InnerPagination = ({
9458
+ currentPage,
9459
+ pageSize,
9460
+ totalPages,
9461
+ pageRange,
9462
+ setCurrentPage,
9463
+ onChange: onChange2,
9464
+ controlLabels
9465
+ }) => {
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)(() => {
9471
+ if (isFirstRender.current) {
9472
+ isFirstRender.current = false;
9473
+ return;
9474
+ }
9475
+ handlePageChange(1);
9476
+ }, [pageSize]);
9477
+ const handlePageChange = (newPage) => {
9478
+ setCurrentPage(newPage);
9479
+ if (onChange2) {
9480
+ onChange2(newPage);
9481
+ }
9482
+ };
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
+ };
9425
9535
  var _Pagination = ({
9426
9536
  defaultPage = 1,
9427
9537
  page,
9428
9538
  totalItems,
9429
9539
  pageSize,
9430
- onChange: onChange2 = () => {
9431
- },
9432
- controlLabels
9540
+ ...props
9433
9541
  }) => {
9434
- const [currentPage, setCurrentPage] = (0, import_react52.useState)(page != null ? page : defaultPage);
9542
+ const [currentPage, setCurrentPage] = (0, import_react54.useState)(page != null ? page : defaultPage);
9435
9543
  const totalPages = Math.ceil(totalItems / pageSize);
9436
- const isFirstRender = (0, import_react52.useRef)(true);
9437
- const classNames3 = (0, import_system69.useClassNames)({
9438
- component: "Pagination"
9439
- });
9440
- (0, import_react52.useEffect)(() => {
9441
- if (isFirstRender.current) {
9442
- isFirstRender.current = false;
9443
- return;
9444
- }
9445
- handlePageChange(1);
9446
- }, [pageSize]);
9447
- const handlePageChange = (newPage) => {
9448
- setCurrentPage(newPage);
9449
- onChange2(newPage);
9450
- };
9451
- const { registerRef, keyboardProps, setNavigationItems, setFocusedItem } = useKeyboardNavigation({
9452
- page: currentPage,
9453
- totalPages,
9454
- onChange: handlePageChange
9455
- });
9456
9544
  const pageRange = usePageRange({ currentPage, totalPages });
9457
- (0, import_react52.useEffect)(() => {
9458
- const items = [
9459
- { type: NavigationTypes.Prev, value: currentPage - 1 },
9460
- ...pageRange.map((value) => ({
9461
- type: typeof value === "number" ? NavigationTypes.Page : NavigationTypes.Ellipsis,
9462
- value
9463
- })),
9464
- { type: NavigationTypes.Next, value: currentPage + 1 }
9465
- ];
9466
- setNavigationItems(items);
9467
- }, [pageRange, currentPage, setNavigationItems]);
9468
- (0, import_react52.useEffect)(() => {
9469
- setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
9470
- }, [currentPage, setFocusedItem]);
9471
- const isFirstPage = currentPage === 1;
9472
- const isLastPage = currentPage === totalPages || totalPages === 0;
9473
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
9545
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9474
9546
  "nav",
9475
9547
  {
9476
9548
  className: "flex items-center justify-center space-x-2",
9477
9549
  "aria-label": `Page ${currentPage} of ${totalPages}`,
9478
- ...keyboardProps,
9479
- children: [
9480
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9481
- NavigationButton,
9482
- {
9483
- onClick: () => handlePageChange(Math.max(1, currentPage - 1)),
9484
- "aria-label": "Page previous",
9485
- isDisabled: isFirstPage,
9486
- registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
9487
- controlLabel: controlLabels == null ? void 0 : controlLabels[0],
9488
- position: "left",
9489
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronLeft, { className: (0, import_system69.cn)(classNames3.icon) })
9490
- }
9491
- ),
9492
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
9493
- (pageNumber, index2) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Ellipsis, {}, `ellipsis-${index2}`) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9494
- PageButton,
9495
- {
9496
- page: pageNumber,
9497
- selected: pageNumber === currentPage,
9498
- onClick: () => handlePageChange(pageNumber),
9499
- registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
9500
- },
9501
- pageNumber
9502
- )
9503
- ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
9504
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
9505
- NavigationButton,
9506
- {
9507
- onClick: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
9508
- "aria-label": "Page next",
9509
- isDisabled: isLastPage,
9510
- registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
9511
- controlLabel: controlLabels == null ? void 0 : controlLabels[1],
9512
- position: "right",
9513
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRight, { className: (0, import_system69.cn)(classNames3.icon) })
9514
- }
9515
- )
9516
- ]
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
+ ) })
9517
9561
  }
9518
9562
  );
9519
9563
  };
9520
9564
 
9521
9565
  // src/Radio/Radio.tsx
9522
- var import_react54 = require("react");
9523
- var import_react_aria_components48 = require("react-aria-components");
9524
- 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");
9525
9569
 
9526
9570
  // src/Radio/Context.ts
9527
- var import_react53 = require("react");
9528
- var RadioGroupContext = (0, import_react53.createContext)(
9571
+ var import_react55 = require("react");
9572
+ var RadioGroupContext = (0, import_react55.createContext)(
9529
9573
  null
9530
9574
  );
9531
- var useRadioGroupContext = () => (0, import_react53.useContext)(RadioGroupContext);
9575
+ var useRadioGroupContext = () => (0, import_react55.useContext)(RadioGroupContext);
9532
9576
 
9533
9577
  // src/Radio/RadioGroup.tsx
9534
- var import_react_aria_components47 = require("react-aria-components");
9535
- var import_system70 = require("@marigold/system");
9536
- 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");
9537
9581
  var _RadioGroup = ({
9538
9582
  variant,
9539
9583
  size: size2,
@@ -9549,7 +9593,7 @@ var _RadioGroup = ({
9549
9593
  width,
9550
9594
  ...rest
9551
9595
  }) => {
9552
- const classNames3 = (0, import_system70.useClassNames)({ component: "Radio", variant, size: size2 });
9596
+ const classNames3 = (0, import_system77.useClassNames)({ component: "Radio", variant, size: size2 });
9553
9597
  const props = {
9554
9598
  isDisabled: disabled,
9555
9599
  isReadOnly: readOnly,
@@ -9557,10 +9601,10 @@ var _RadioGroup = ({
9557
9601
  isInvalid: error,
9558
9602
  ...rest
9559
9603
  };
9560
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
9604
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9561
9605
  FieldBase,
9562
9606
  {
9563
- as: import_react_aria_components47.RadioGroup,
9607
+ as: import_react_aria_components52.RadioGroup,
9564
9608
  width,
9565
9609
  label,
9566
9610
  description,
@@ -9568,18 +9612,18 @@ var _RadioGroup = ({
9568
9612
  variant,
9569
9613
  size: size2,
9570
9614
  ...props,
9571
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
9615
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9572
9616
  "div",
9573
9617
  {
9574
9618
  role: "presentation",
9575
9619
  "data-testid": "group",
9576
9620
  "data-orientation": orientation,
9577
- className: (0, import_system70.cn)(
9621
+ className: (0, import_system77.cn)(
9578
9622
  classNames3.group,
9579
9623
  "flex items-start",
9580
9624
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
9581
9625
  ),
9582
- 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 })
9583
9627
  }
9584
9628
  )
9585
9629
  }
@@ -9587,33 +9631,33 @@ var _RadioGroup = ({
9587
9631
  };
9588
9632
 
9589
9633
  // src/Radio/Radio.tsx
9590
- var import_jsx_runtime84 = require("react/jsx-runtime");
9591
- 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" }) });
9592
- 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)(
9593
9637
  "div",
9594
9638
  {
9595
- className: (0, import_system71.cn)(
9639
+ className: (0, import_system78.cn)(
9596
9640
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
9597
9641
  className
9598
9642
  ),
9599
9643
  "aria-hidden": "true",
9600
9644
  ...props,
9601
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dot, {}) : null
9645
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dot, {}) : null
9602
9646
  }
9603
9647
  );
9604
- var _Radio = (0, import_react54.forwardRef)(
9648
+ var _Radio = (0, import_react56.forwardRef)(
9605
9649
  ({ value, disabled, width, children, ...props }, ref) => {
9606
9650
  const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
9607
- const classNames3 = (0, import_system71.useClassNames)({
9651
+ const classNames3 = (0, import_system78.useClassNames)({
9608
9652
  component: "Radio",
9609
9653
  variant: variant || props.variant,
9610
9654
  size: size2 || props.size
9611
9655
  });
9612
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
9613
- import_react_aria_components48.Radio,
9656
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9657
+ import_react_aria_components53.Radio,
9614
9658
  {
9615
9659
  ref,
9616
- className: (0, import_system71.cn)(
9660
+ className: (0, import_system78.cn)(
9617
9661
  "group/radio",
9618
9662
  "relative flex items-center gap-[1ch]",
9619
9663
  width || groupWidth || "w-full",
@@ -9622,18 +9666,18 @@ var _Radio = (0, import_react54.forwardRef)(
9622
9666
  value,
9623
9667
  isDisabled: disabled,
9624
9668
  ...props,
9625
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
9626
- /* @__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)(
9627
9671
  Icon3,
9628
9672
  {
9629
9673
  checked: isSelected,
9630
- className: (0, import_system71.cn)(
9674
+ className: (0, import_system78.cn)(
9631
9675
  disabled ? "cursor-not-allowed" : "cursor-pointer",
9632
9676
  classNames3.radio
9633
9677
  )
9634
9678
  }
9635
9679
  ),
9636
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classNames3.label, children })
9680
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: classNames3.label, children })
9637
9681
  ] })
9638
9682
  }
9639
9683
  );
@@ -9642,10 +9686,10 @@ var _Radio = (0, import_react54.forwardRef)(
9642
9686
  _Radio.Group = _RadioGroup;
9643
9687
 
9644
9688
  // src/SearchField/SearchField.tsx
9645
- var import_react55 = require("react");
9646
- var import_react_aria_components49 = require("react-aria-components");
9647
- var import_jsx_runtime85 = require("react/jsx-runtime");
9648
- 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)(
9649
9693
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
9650
9694
  const props = {
9651
9695
  ...rest,
@@ -9654,7 +9698,7 @@ var _SearchField = (0, import_react55.forwardRef)(
9654
9698
  isReadOnly: readOnly,
9655
9699
  isInvalid: error
9656
9700
  };
9657
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.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)(
9658
9702
  SearchInput,
9659
9703
  {
9660
9704
  ref,
@@ -9665,11 +9709,11 @@ var _SearchField = (0, import_react55.forwardRef)(
9665
9709
  );
9666
9710
 
9667
9711
  // src/Select/Select.tsx
9668
- var import_react56 = require("react");
9669
- var import_react_aria_components50 = require("react-aria-components");
9670
- var import_system72 = require("@marigold/system");
9671
- var import_jsx_runtime86 = require("react/jsx-runtime");
9672
- 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)(
9673
9717
  ({
9674
9718
  disabled,
9675
9719
  required,
@@ -9689,22 +9733,22 @@ var _Select = (0, import_react56.forwardRef)(
9689
9733
  onSelectionChange: onChange2,
9690
9734
  ...rest
9691
9735
  };
9692
- const classNames3 = (0, import_system72.useClassNames)({ component: "Select", variant, size: size2 });
9693
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components50.Select, ref, variant, size: size2, ...props, children: [
9694
- /* @__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)(
9695
9739
  IconButton,
9696
9740
  {
9697
- className: (0, import_system72.cn)(
9741
+ className: (0, import_system79.cn)(
9698
9742
  "flex w-full items-center justify-between gap-1 overflow-hidden",
9699
9743
  classNames3.select
9700
9744
  ),
9701
9745
  children: [
9702
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components50.SelectValue, { className: "[&>[slot=description]]:hidden" }),
9703
- /* @__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) })
9704
9748
  ]
9705
9749
  }
9706
9750
  ),
9707
- /* @__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 }) })
9708
9752
  ] });
9709
9753
  }
9710
9754
  );
@@ -9712,35 +9756,35 @@ _Select.Option = _ListBox.Item;
9712
9756
  _Select.Section = _ListBox.Section;
9713
9757
 
9714
9758
  // src/SelectList/SelectList.tsx
9715
- var import_react59 = require("react");
9716
- var import_react_aria_components52 = require("react-aria-components");
9717
- 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");
9718
9762
 
9719
9763
  // src/SelectList/Context.ts
9720
- var import_react57 = require("react");
9721
- var SelectListContext = (0, import_react57.createContext)(
9764
+ var import_react59 = require("react");
9765
+ var SelectListContext = (0, import_react59.createContext)(
9722
9766
  {}
9723
9767
  );
9724
- var useSelectListContext = () => (0, import_react57.useContext)(SelectListContext);
9768
+ var useSelectListContext = () => (0, import_react59.useContext)(SelectListContext);
9725
9769
 
9726
9770
  // src/SelectList/SelectListItem.tsx
9727
- var import_react58 = require("react");
9728
- var import_react_aria_components51 = require("react-aria-components");
9729
- var import_system73 = require("@marigold/system");
9730
- var import_jsx_runtime87 = require("react/jsx-runtime");
9731
- 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)(
9732
9776
  ({ children, ...props }, ref) => {
9733
9777
  let textValue = typeof children === "string" ? children : void 0;
9734
9778
  const { classNames: classNames3 } = useSelectListContext();
9735
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9736
- import_react_aria_components51.GridListItem,
9779
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9780
+ import_react_aria_components56.GridListItem,
9737
9781
  {
9738
9782
  textValue,
9739
9783
  ...props,
9740
- 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),
9741
9785
  ref,
9742
- children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex gap-2", children: [
9743
- 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" }),
9744
9788
  children
9745
9789
  ] })
9746
9790
  }
@@ -9749,21 +9793,21 @@ var _SelectListItem = (0, import_react58.forwardRef)(
9749
9793
  );
9750
9794
 
9751
9795
  // src/SelectList/SelectList.tsx
9752
- var import_jsx_runtime88 = require("react/jsx-runtime");
9753
- var _SelectList = (0, import_react59.forwardRef)(
9796
+ var import_jsx_runtime96 = require("react/jsx-runtime");
9797
+ var _SelectList = (0, import_react61.forwardRef)(
9754
9798
  ({ onChange: onChange2, ...rest }, ref) => {
9755
- const classNames3 = (0, import_system74.useClassNames)({ component: "ListBox" });
9799
+ const classNames3 = (0, import_system81.useClassNames)({ component: "ListBox" });
9756
9800
  const props = {
9757
9801
  onSelectionChange: onChange2,
9758
9802
  ...rest
9759
9803
  };
9760
- 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)(
9761
- import_react_aria_components52.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,
9762
9806
  {
9763
9807
  ...props,
9764
9808
  layout: "grid",
9765
9809
  ref,
9766
- className: (0, import_system74.cn)(
9810
+ className: (0, import_system81.cn)(
9767
9811
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
9768
9812
  classNames3.list
9769
9813
  ),
@@ -9775,29 +9819,29 @@ var _SelectList = (0, import_react59.forwardRef)(
9775
9819
  _SelectList.Item = _SelectListItem;
9776
9820
 
9777
9821
  // src/Scrollable/Scrollable.tsx
9778
- var import_system75 = require("@marigold/system");
9779
- var import_jsx_runtime89 = require("react/jsx-runtime");
9822
+ var import_system82 = require("@marigold/system");
9823
+ var import_jsx_runtime97 = require("react/jsx-runtime");
9780
9824
  var Scrollable = ({
9781
9825
  children,
9782
9826
  width = "full",
9783
9827
  height,
9784
9828
  ...props
9785
- }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9829
+ }) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9786
9830
  "div",
9787
9831
  {
9788
9832
  ...props,
9789
- className: (0, import_system75.cn)(["sticky h-(--height) overflow-auto", import_system75.width[width]]),
9790
- 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 }),
9791
9835
  children
9792
9836
  }
9793
9837
  );
9794
9838
 
9795
9839
  // src/Slider/Slider.tsx
9796
- var import_react60 = require("react");
9797
- var import_react_aria_components53 = require("react-aria-components");
9798
- var import_system76 = require("@marigold/system");
9799
- var import_jsx_runtime90 = require("react/jsx-runtime");
9800
- 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)(
9801
9845
  ({
9802
9846
  thumbLabels,
9803
9847
  variant,
@@ -9807,7 +9851,7 @@ var _Slider = (0, import_react60.forwardRef)(
9807
9851
  label,
9808
9852
  ...rest
9809
9853
  }, ref) => {
9810
- const classNames3 = (0, import_system76.useClassNames)({
9854
+ const classNames3 = (0, import_system83.useClassNames)({
9811
9855
  component: "Slider",
9812
9856
  variant,
9813
9857
  size: size2
@@ -9816,38 +9860,38 @@ var _Slider = (0, import_react60.forwardRef)(
9816
9860
  isDisabled: disabled,
9817
9861
  ...rest
9818
9862
  };
9819
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9863
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
9820
9864
  FieldBase,
9821
9865
  {
9822
- as: import_react_aria_components53.Slider,
9823
- className: (0, import_system76.cn)(
9866
+ as: import_react_aria_components58.Slider,
9867
+ className: (0, import_system83.cn)(
9824
9868
  "grid grid-cols-[auto_1fr] gap-y-1",
9825
9869
  classNames3.container,
9826
- import_system76.width[width]
9870
+ import_system83.width[width]
9827
9871
  ),
9828
9872
  ref,
9829
9873
  ...props,
9830
9874
  children: [
9831
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
9832
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components53.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
9833
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9834
- import_react_aria_components53.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,
9835
9879
  {
9836
- className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames3.track),
9837
- children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
9838
- /* @__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)(
9839
9883
  "div",
9840
9884
  {
9841
- className: (0, import_system76.cn)(
9885
+ className: (0, import_system83.cn)(
9842
9886
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
9843
9887
  classNames3.track
9844
9888
  )
9845
9889
  }
9846
9890
  ),
9847
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9891
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9848
9892
  "div",
9849
9893
  {
9850
- className: (0, import_system76.cn)(
9894
+ className: (0, import_system83.cn)(
9851
9895
  "absolute top-[50%] h-2 translate-y-[-50%]",
9852
9896
  classNames3.selectedTrack
9853
9897
  ),
@@ -9857,10 +9901,10 @@ var _Slider = (0, import_react60.forwardRef)(
9857
9901
  }
9858
9902
  }
9859
9903
  ),
9860
- state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9861
- import_react_aria_components53.SliderThumb,
9904
+ state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
9905
+ import_react_aria_components58.SliderThumb,
9862
9906
  {
9863
- 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),
9864
9908
  index: i,
9865
9909
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
9866
9910
  name: thumbLabels == null ? void 0 : thumbLabels[i]
@@ -9877,12 +9921,12 @@ var _Slider = (0, import_react60.forwardRef)(
9877
9921
  );
9878
9922
 
9879
9923
  // src/Split/Split.tsx
9880
- var import_jsx_runtime91 = require("react/jsx-runtime");
9881
- 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" });
9882
9926
 
9883
9927
  // src/Stack/Stack.tsx
9884
- var import_system77 = require("@marigold/system");
9885
- var import_jsx_runtime92 = require("react/jsx-runtime");
9928
+ var import_system84 = require("@marigold/system");
9929
+ var import_jsx_runtime100 = require("react/jsx-runtime");
9886
9930
  var Stack = ({
9887
9931
  children,
9888
9932
  space = 0,
@@ -9892,14 +9936,14 @@ var Stack = ({
9892
9936
  ...props
9893
9937
  }) => {
9894
9938
  var _a, _b, _c, _d;
9895
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9939
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
9896
9940
  "div",
9897
9941
  {
9898
- className: (0, import_system77.cn)(
9942
+ className: (0, import_system84.cn)(
9899
9943
  "flex flex-col",
9900
- import_system77.gapSpace[space],
9901
- alignX && ((_b = (_a = import_system77.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
9902
- 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]),
9903
9947
  stretch && "h-full w-full"
9904
9948
  ),
9905
9949
  ...props,
@@ -9909,42 +9953,42 @@ var Stack = ({
9909
9953
  };
9910
9954
 
9911
9955
  // src/Switch/Switch.tsx
9912
- var import_react61 = require("react");
9913
- var import_react_aria_components54 = require("react-aria-components");
9914
- var import_system78 = require("@marigold/system");
9915
- var import_jsx_runtime93 = require("react/jsx-runtime");
9916
- 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)(
9917
9961
  ({
9918
9962
  variant,
9919
9963
  size: size2,
9920
9964
  width = "full",
9921
- children,
9965
+ label,
9922
9966
  selected,
9923
9967
  disabled,
9924
9968
  readOnly,
9925
9969
  ...rest
9926
9970
  }, ref) => {
9927
- const classNames3 = (0, import_system78.useClassNames)({ component: "Switch", size: size2, variant });
9971
+ const classNames3 = (0, import_system85.useClassNames)({ component: "Switch", size: size2, variant });
9928
9972
  const props = {
9929
9973
  isDisabled: disabled,
9930
9974
  isReadOnly: readOnly,
9931
9975
  isSelected: selected,
9932
9976
  ...rest
9933
9977
  };
9934
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9935
- import_react_aria_components54.Switch,
9978
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
9979
+ import_react_aria_components59.Switch,
9936
9980
  {
9937
9981
  ...props,
9938
9982
  ref,
9939
- className: (0, import_system78.cn)(
9940
- import_system78.width[width],
9983
+ className: (0, import_system85.cn)(
9984
+ import_system85.width[width],
9941
9985
  "group/switch",
9942
9986
  "flex items-center gap-[1ch]",
9943
9987
  classNames3.container
9944
9988
  ),
9945
9989
  children: [
9946
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(_Label, { elementType: "span", children }),
9947
- /* @__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 }) }) })
9948
9992
  ]
9949
9993
  }
9950
9994
  );
@@ -9952,19 +9996,19 @@ var _Switch = (0, import_react61.forwardRef)(
9952
9996
  );
9953
9997
 
9954
9998
  // src/Table/Table.tsx
9955
- var import_react69 = require("react");
9999
+ var import_react71 = require("react");
9956
10000
  var import_table9 = require("@react-aria/table");
9957
10001
  var import_table10 = require("@react-stately/table");
9958
- var import_system85 = require("@marigold/system");
10002
+ var import_system92 = require("@marigold/system");
9959
10003
 
9960
10004
  // src/Table/Context.tsx
9961
- var import_react62 = require("react");
9962
- var TableContext = (0, import_react62.createContext)({});
9963
- 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);
9964
10008
 
9965
10009
  // src/Table/TableBody.tsx
9966
10010
  var import_table = require("@react-aria/table");
9967
- var import_jsx_runtime94 = require("react/jsx-runtime");
10011
+ var import_jsx_runtime102 = require("react/jsx-runtime");
9968
10012
  var TableBody = ({
9969
10013
  children,
9970
10014
  className,
@@ -9973,7 +10017,7 @@ var TableBody = ({
9973
10017
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
9974
10018
  const { state, classNames: classNames3 } = useTableContext();
9975
10019
  if (state.collection.size === 0 && emptyState) {
9976
- 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)(
9977
10021
  "td",
9978
10022
  {
9979
10023
  className: classNames3 == null ? void 0 : classNames3.cell,
@@ -9983,18 +10027,18 @@ var TableBody = ({
9983
10027
  }
9984
10028
  ) }) });
9985
10029
  }
9986
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { ...rowGroupProps, className, children });
10030
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("tbody", { ...rowGroupProps, className, children });
9987
10031
  };
9988
10032
 
9989
10033
  // src/Table/TableCell.tsx
9990
- var import_react63 = require("react");
9991
- var import_focus2 = require("@react-aria/focus");
10034
+ var import_react65 = require("react");
10035
+ var import_focus3 = require("@react-aria/focus");
9992
10036
  var import_table2 = require("@react-aria/table");
9993
10037
  var import_utils9 = require("@react-aria/utils");
9994
- var import_system79 = require("@marigold/system");
9995
- var import_jsx_runtime95 = require("react/jsx-runtime");
10038
+ var import_system86 = require("@marigold/system");
10039
+ var import_jsx_runtime103 = require("react/jsx-runtime");
9996
10040
  var TableCell = ({ cell, align = "left" }) => {
9997
- const ref = (0, import_react63.useRef)(null);
10041
+ const ref = (0, import_react65.useRef)(null);
9998
10042
  const { interactive, state, classNames: classNames3 } = useTableContext();
9999
10043
  const disabled = state.disabledKeys.has(cell.parentKey);
10000
10044
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -10013,13 +10057,13 @@ var TableCell = ({ cell, align = "left" }) => {
10013
10057
  onMouseDown: (e) => e.stopPropagation(),
10014
10058
  onPointerDown: (e) => e.stopPropagation()
10015
10059
  };
10016
- const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
10017
- const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
10018
- 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)(
10019
10063
  "td",
10020
10064
  {
10021
10065
  ref,
10022
- className: (0, import_system79.cn)(classNames3 == null ? void 0 : classNames3.cell),
10066
+ className: (0, import_system86.cn)(classNames3 == null ? void 0 : classNames3.cell),
10023
10067
  ...(0, import_utils9.mergeProps)(cellProps, focusProps),
10024
10068
  ...stateProps,
10025
10069
  align,
@@ -10029,11 +10073,11 @@ var TableCell = ({ cell, align = "left" }) => {
10029
10073
  };
10030
10074
 
10031
10075
  // src/Table/TableCheckboxCell.tsx
10032
- var import_react64 = require("react");
10033
- var import_focus3 = require("@react-aria/focus");
10076
+ var import_react66 = require("react");
10077
+ var import_focus4 = require("@react-aria/focus");
10034
10078
  var import_table3 = require("@react-aria/table");
10035
10079
  var import_utils10 = require("@react-aria/utils");
10036
- var import_system80 = require("@marigold/system");
10080
+ var import_system87 = require("@marigold/system");
10037
10081
 
10038
10082
  // src/Table/utils.ts
10039
10083
  var mapCheckboxProps = ({
@@ -10056,9 +10100,9 @@ var mapCheckboxProps = ({
10056
10100
  };
10057
10101
 
10058
10102
  // src/Table/TableCheckboxCell.tsx
10059
- var import_jsx_runtime96 = require("react/jsx-runtime");
10103
+ var import_jsx_runtime104 = require("react/jsx-runtime");
10060
10104
  var TableCheckboxCell = ({ cell }) => {
10061
- const ref = (0, import_react64.useRef)(null);
10105
+ const ref = (0, import_react66.useRef)(null);
10062
10106
  const { state, classNames: classNames3 } = useTableContext();
10063
10107
  const disabled = state.disabledKeys.has(cell.parentKey);
10064
10108
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -10071,35 +10115,35 @@ var TableCheckboxCell = ({ cell }) => {
10071
10115
  const { checkboxProps } = mapCheckboxProps(
10072
10116
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
10073
10117
  );
10074
- const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
10075
- const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
10076
- 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)(
10077
10121
  "td",
10078
10122
  {
10079
10123
  ref,
10080
- 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),
10081
10125
  ...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
10082
10126
  ...stateProps,
10083
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
10127
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(_Checkbox, { ...checkboxProps })
10084
10128
  }
10085
10129
  );
10086
10130
  };
10087
10131
 
10088
10132
  // src/Table/TableColumnHeader.tsx
10089
- var import_react65 = require("react");
10090
- var import_focus4 = require("@react-aria/focus");
10133
+ var import_react67 = require("react");
10134
+ var import_focus5 = require("@react-aria/focus");
10091
10135
  var import_interactions2 = require("@react-aria/interactions");
10092
10136
  var import_table4 = require("@react-aria/table");
10093
10137
  var import_utils12 = require("@react-aria/utils");
10094
- var import_system81 = require("@marigold/system");
10095
- var import_jsx_runtime97 = require("react/jsx-runtime");
10138
+ var import_system88 = require("@marigold/system");
10139
+ var import_jsx_runtime105 = require("react/jsx-runtime");
10096
10140
  var TableColumnHeader = ({
10097
10141
  column: column2,
10098
10142
  width = "auto",
10099
10143
  align = "left"
10100
10144
  }) => {
10101
10145
  var _a, _b;
10102
- const ref = (0, import_react65.useRef)(null);
10146
+ const ref = (0, import_react67.useRef)(null);
10103
10147
  const { state, classNames: classNames3 } = useTableContext();
10104
10148
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
10105
10149
  {
@@ -10109,23 +10153,23 @@ var TableColumnHeader = ({
10109
10153
  ref
10110
10154
  );
10111
10155
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
10112
- const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
10113
- const stateProps = (0, import_system81.useStateProps)({
10156
+ const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
10157
+ const stateProps = (0, import_system88.useStateProps)({
10114
10158
  hover: isHovered,
10115
10159
  focusVisible: isFocusVisible
10116
10160
  });
10117
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10161
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
10118
10162
  "th",
10119
10163
  {
10120
10164
  colSpan: column2.colspan,
10121
10165
  ref,
10122
- 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),
10123
10167
  ...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10124
10168
  ...stateProps,
10125
10169
  align,
10126
10170
  children: [
10127
10171
  column2.rendered,
10128
- 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" }) }))
10129
10173
  ]
10130
10174
  }
10131
10175
  );
@@ -10133,16 +10177,16 @@ var TableColumnHeader = ({
10133
10177
 
10134
10178
  // src/Table/TableHeader.tsx
10135
10179
  var import_table5 = require("@react-aria/table");
10136
- var import_system82 = require("@marigold/system");
10137
- var import_jsx_runtime98 = require("react/jsx-runtime");
10180
+ var import_system89 = require("@marigold/system");
10181
+ var import_jsx_runtime106 = require("react/jsx-runtime");
10138
10182
  var TableHeader = ({ stickyHeader, children }) => {
10139
10183
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
10140
10184
  const { classNames: classNames3 } = useTableContext();
10141
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10185
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10142
10186
  "thead",
10143
10187
  {
10144
10188
  ...rowGroupProps,
10145
- className: (0, import_system82.cn)(
10189
+ className: (0, import_system89.cn)(
10146
10190
  classNames3 == null ? void 0 : classNames3.thead,
10147
10191
  // for sticky header &th needs to be sticky for b2b and core theme
10148
10192
  // for rui sticky is applied to thead
@@ -10154,33 +10198,33 @@ var TableHeader = ({ stickyHeader, children }) => {
10154
10198
  };
10155
10199
 
10156
10200
  // src/Table/TableHeaderRow.tsx
10157
- var import_react66 = require("react");
10201
+ var import_react68 = require("react");
10158
10202
  var import_table6 = require("@react-aria/table");
10159
- var import_jsx_runtime99 = require("react/jsx-runtime");
10203
+ var import_jsx_runtime107 = require("react/jsx-runtime");
10160
10204
  var TableHeaderRow = ({
10161
10205
  item,
10162
10206
  className,
10163
10207
  children
10164
10208
  }) => {
10165
10209
  const { state } = useTableContext();
10166
- const ref = (0, import_react66.useRef)(null);
10210
+ const ref = (0, import_react68.useRef)(null);
10167
10211
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
10168
- 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 });
10169
10213
  };
10170
10214
 
10171
10215
  // src/Table/TableRow.tsx
10172
- var import_react67 = require("react");
10173
- var import_focus5 = require("@react-aria/focus");
10216
+ var import_react69 = require("react");
10217
+ var import_focus6 = require("@react-aria/focus");
10174
10218
  var import_interactions3 = require("@react-aria/interactions");
10175
10219
  var import_table7 = require("@react-aria/table");
10176
10220
  var import_utils13 = require("@react-aria/utils");
10177
- var import_system83 = require("@marigold/system");
10178
- var import_jsx_runtime100 = require("react/jsx-runtime");
10221
+ var import_system90 = require("@marigold/system");
10222
+ var import_jsx_runtime108 = require("react/jsx-runtime");
10179
10223
  var TableRow = ({ children, row }) => {
10180
- const ref = (0, import_react67.useRef)(null);
10224
+ const ref = (0, import_react69.useRef)(null);
10181
10225
  const { interactive, state, ...ctx } = useTableContext();
10182
10226
  const { variant, size: size2 } = row.props;
10183
- const classNames3 = (0, import_system83.useClassNames)({
10227
+ const classNames3 = (0, import_system90.useClassNames)({
10184
10228
  component: "Table",
10185
10229
  variant: variant || ctx.variant,
10186
10230
  size: size2 || ctx.size
@@ -10194,22 +10238,22 @@ var TableRow = ({ children, row }) => {
10194
10238
  );
10195
10239
  const disabled = state.disabledKeys.has(row.key);
10196
10240
  const selected = state.selectionManager.isSelected(row.key);
10197
- const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
10241
+ const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
10198
10242
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
10199
10243
  isDisabled: disabled || !interactive
10200
10244
  });
10201
- const stateProps = (0, import_system83.useStateProps)({
10245
+ const stateProps = (0, import_system90.useStateProps)({
10202
10246
  disabled,
10203
10247
  selected,
10204
10248
  hover: isHovered,
10205
10249
  focusVisible: isFocusVisible,
10206
10250
  active: isPressed
10207
10251
  });
10208
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10252
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
10209
10253
  "tr",
10210
10254
  {
10211
10255
  ref,
10212
- className: (0, import_system83.cn)(
10256
+ className: (0, import_system90.cn)(
10213
10257
  [
10214
10258
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
10215
10259
  ],
@@ -10223,19 +10267,19 @@ var TableRow = ({ children, row }) => {
10223
10267
  };
10224
10268
 
10225
10269
  // src/Table/TableSelectAllCell.tsx
10226
- var import_react68 = require("react");
10227
- var import_focus6 = require("@react-aria/focus");
10270
+ var import_react70 = require("react");
10271
+ var import_focus7 = require("@react-aria/focus");
10228
10272
  var import_interactions4 = require("@react-aria/interactions");
10229
10273
  var import_table8 = require("@react-aria/table");
10230
10274
  var import_utils14 = require("@react-aria/utils");
10231
- var import_system84 = require("@marigold/system");
10232
- var import_jsx_runtime101 = require("react/jsx-runtime");
10275
+ var import_system91 = require("@marigold/system");
10276
+ var import_jsx_runtime109 = require("react/jsx-runtime");
10233
10277
  var TableSelectAllCell = ({
10234
10278
  column: column2,
10235
10279
  width = "auto",
10236
10280
  align = "left"
10237
10281
  }) => {
10238
- const ref = (0, import_react68.useRef)(null);
10282
+ const ref = (0, import_react70.useRef)(null);
10239
10283
  const { state, classNames: classNames3 } = useTableContext();
10240
10284
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
10241
10285
  {
@@ -10246,26 +10290,26 @@ var TableSelectAllCell = ({
10246
10290
  );
10247
10291
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
10248
10292
  const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
10249
- const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
10250
- const stateProps = (0, import_system84.useStateProps)({
10293
+ const { focusProps, isFocusVisible } = (0, import_focus7.useFocusRing)();
10294
+ const stateProps = (0, import_system91.useStateProps)({
10251
10295
  hover: isHovered,
10252
10296
  focusVisible: isFocusVisible
10253
10297
  });
10254
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
10298
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10255
10299
  "th",
10256
10300
  {
10257
10301
  ref,
10258
- 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),
10259
10303
  ...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
10260
10304
  ...stateProps,
10261
10305
  align,
10262
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Checkbox, { ...checkboxProps })
10306
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(_Checkbox, { ...checkboxProps })
10263
10307
  }
10264
10308
  );
10265
10309
  };
10266
10310
 
10267
10311
  // src/Table/Table.tsx
10268
- var import_jsx_runtime102 = require("react/jsx-runtime");
10312
+ var import_jsx_runtime110 = require("react/jsx-runtime");
10269
10313
  var Table = ({
10270
10314
  variant,
10271
10315
  size: size2,
@@ -10277,7 +10321,7 @@ var Table = ({
10277
10321
  ...props
10278
10322
  }) => {
10279
10323
  const interactive = selectionMode !== "none";
10280
- const tableRef = (0, import_react69.useRef)(null);
10324
+ const tableRef = (0, import_react71.useRef)(null);
10281
10325
  const state = (0, import_table10.useTableState)({
10282
10326
  ...props,
10283
10327
  selectionMode,
@@ -10288,21 +10332,21 @@ var Table = ({
10288
10332
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
10289
10333
  }
10290
10334
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
10291
- const classNames3 = (0, import_system85.useClassNames)({
10335
+ const classNames3 = (0, import_system92.useClassNames)({
10292
10336
  component: "Table",
10293
10337
  variant,
10294
10338
  size: size2
10295
10339
  });
10296
10340
  const { collection } = state;
10297
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10341
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10298
10342
  TableContext.Provider,
10299
10343
  {
10300
10344
  value: { state, interactive, classNames: classNames3, variant, size: size2 },
10301
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10345
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
10302
10346
  "table",
10303
10347
  {
10304
10348
  ref: tableRef,
10305
- className: (0, import_system85.cn)(
10349
+ className: (0, import_system92.cn)(
10306
10350
  "group/table",
10307
10351
  "border-collapse",
10308
10352
  stretch ? "table w-full" : "block",
@@ -10310,7 +10354,7 @@ var Table = ({
10310
10354
  ),
10311
10355
  ...gridProps,
10312
10356
  children: [
10313
- /* @__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)(
10314
10358
  TableHeaderRow,
10315
10359
  {
10316
10360
  item: headerRow,
@@ -10318,7 +10362,7 @@ var Table = ({
10318
10362
  children: [...collection.getChildren(headerRow.key)].map(
10319
10363
  (column2) => {
10320
10364
  var _a, _b, _c, _d, _e;
10321
- 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)(
10322
10366
  TableSelectAllCell,
10323
10367
  {
10324
10368
  width: (_b = column2.props) == null ? void 0 : _b.width,
@@ -10326,7 +10370,7 @@ var Table = ({
10326
10370
  align: (_c = column2.props) == null ? void 0 : _c.align
10327
10371
  },
10328
10372
  column2.key
10329
- ) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10373
+ ) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10330
10374
  TableColumnHeader,
10331
10375
  {
10332
10376
  width: (_d = column2.props) == null ? void 0 : _d.width,
@@ -10340,12 +10384,12 @@ var Table = ({
10340
10384
  },
10341
10385
  headerRow.key
10342
10386
  )) }),
10343
- /* @__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: [
10344
10388
  ...collection.rows.map(
10345
- (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) => {
10346
10390
  var _a, _b;
10347
10391
  const currentColumn = collection.columns[index2];
10348
- 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)(
10349
10393
  TableCell,
10350
10394
  {
10351
10395
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -10369,9 +10413,9 @@ Table.Header = import_table10.TableHeader;
10369
10413
  Table.Row = import_table10.Row;
10370
10414
 
10371
10415
  // src/Text/Text.tsx
10372
- var import_react_aria_components55 = require("react-aria-components");
10373
- var import_system86 = require("@marigold/system");
10374
- 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");
10375
10419
  var _Text = ({
10376
10420
  variant,
10377
10421
  size: size2,
@@ -10385,40 +10429,40 @@ var _Text = ({
10385
10429
  as = "div",
10386
10430
  ...props
10387
10431
  }) => {
10388
- const classNames3 = (0, import_system86.useClassNames)({
10432
+ const classNames3 = (0, import_system93.useClassNames)({
10389
10433
  component: "Text",
10390
10434
  variant,
10391
10435
  size: size2
10392
10436
  });
10393
- const Component2 = props.slot ? import_react_aria_components55.Text : as;
10437
+ const Component2 = props.slot ? import_react_aria_components60.Text : as;
10394
10438
  const elementType = props.slot ? { elementType: as } : {};
10395
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10439
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10396
10440
  Component2,
10397
10441
  {
10398
10442
  ...props,
10399
10443
  ...elementType,
10400
- className: (0, import_system86.cn)(
10444
+ className: (0, import_system93.cn)(
10401
10445
  "max-w-(--maxTextWidth)",
10402
10446
  // possibly set by a <Container>
10403
10447
  classNames3,
10404
- fontStyle && import_system86.textStyle[fontStyle],
10405
- align && import_system86.textAlign[align],
10406
- cursor2 && import_system86.cursorStyle[cursor2],
10407
- weight && import_system86.fontWeight[weight],
10408
- 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]
10409
10453
  ),
10410
- style: { color: color && (0, import_system86.ensureCssVar)(color, "color") },
10454
+ style: { color: color && (0, import_system93.ensureCssVar)(color, "color") },
10411
10455
  children
10412
10456
  }
10413
10457
  );
10414
10458
  };
10415
10459
 
10416
10460
  // src/TextArea/TextArea.tsx
10417
- var import_react70 = require("react");
10418
- var import_react_aria_components56 = require("react-aria-components");
10419
- var import_system87 = require("@marigold/system");
10420
- var import_jsx_runtime104 = require("react/jsx-runtime");
10421
- 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)(
10422
10466
  ({
10423
10467
  variant,
10424
10468
  size: size2,
@@ -10429,7 +10473,7 @@ var _TextArea = (0, import_react70.forwardRef)(
10429
10473
  rows,
10430
10474
  ...rest
10431
10475
  }, ref) => {
10432
- const classNames3 = (0, import_system87.useClassNames)({ component: "TextArea", variant, size: size2 });
10476
+ const classNames3 = (0, import_system94.useClassNames)({ component: "TextArea", variant, size: size2 });
10433
10477
  const props = {
10434
10478
  isDisabled: disabled,
10435
10479
  isReadOnly: readOnly,
@@ -10437,15 +10481,15 @@ var _TextArea = (0, import_react70.forwardRef)(
10437
10481
  isRequired: required,
10438
10482
  ...rest
10439
10483
  };
10440
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components56.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.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 }) });
10441
10485
  }
10442
10486
  );
10443
10487
 
10444
10488
  // src/TextField/TextField.tsx
10445
- var import_react71 = require("react");
10446
- var import_react_aria_components57 = require("react-aria-components");
10447
- var import_jsx_runtime105 = require("react/jsx-runtime");
10448
- 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)(
10449
10493
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
10450
10494
  const props = {
10451
10495
  isDisabled: disabled,
@@ -10454,13 +10498,13 @@ var _TextField = (0, import_react71.forwardRef)(
10454
10498
  isRequired: required,
10455
10499
  ...rest
10456
10500
  };
10457
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components57.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 }) });
10458
10502
  }
10459
10503
  );
10460
10504
 
10461
10505
  // src/Tiles/Tiles.tsx
10462
- var import_system88 = require("@marigold/system");
10463
- var import_jsx_runtime106 = require("react/jsx-runtime");
10506
+ var import_system95 = require("@marigold/system");
10507
+ var import_jsx_runtime114 = require("react/jsx-runtime");
10464
10508
  var Tiles = ({
10465
10509
  space = 0,
10466
10510
  stretch = false,
@@ -10473,29 +10517,29 @@ var Tiles = ({
10473
10517
  if (stretch) {
10474
10518
  column2 = `minmax(${column2}, 1fr)`;
10475
10519
  }
10476
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10520
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10477
10521
  "div",
10478
10522
  {
10479
10523
  ...props,
10480
- className: (0, import_system88.cn)(
10524
+ className: (0, import_system95.cn)(
10481
10525
  "grid",
10482
- import_system88.gapSpace[space],
10526
+ import_system95.gapSpace[space],
10483
10527
  "grid-cols-[repeat(auto-fit,var(--column))]",
10484
10528
  equalHeight && "auto-rows-[1fr]"
10485
10529
  ),
10486
- style: (0, import_system88.createVar)({ column: column2, tilesWidth }),
10530
+ style: (0, import_system95.createVar)({ column: column2, tilesWidth }),
10487
10531
  children
10488
10532
  }
10489
10533
  );
10490
10534
  };
10491
10535
 
10492
10536
  // src/Tooltip/Tooltip.tsx
10493
- var import_react_aria_components59 = require("react-aria-components");
10494
- var import_system89 = require("@marigold/system");
10537
+ var import_react_aria_components64 = require("react-aria-components");
10538
+ var import_system96 = require("@marigold/system");
10495
10539
 
10496
10540
  // src/Tooltip/TooltipTrigger.tsx
10497
- var import_react_aria_components58 = require("react-aria-components");
10498
- 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");
10499
10543
  var _TooltipTrigger = ({
10500
10544
  delay = 1e3,
10501
10545
  children,
@@ -10509,26 +10553,26 @@ var _TooltipTrigger = ({
10509
10553
  isOpen: open,
10510
10554
  delay
10511
10555
  };
10512
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components58.TooltipTrigger, { ...props, children });
10556
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components63.TooltipTrigger, { ...props, children });
10513
10557
  };
10514
10558
 
10515
10559
  // src/Tooltip/Tooltip.tsx
10516
- var import_jsx_runtime108 = require("react/jsx-runtime");
10560
+ var import_jsx_runtime116 = require("react/jsx-runtime");
10517
10561
  var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
10518
10562
  const props = {
10519
10563
  ...rest,
10520
10564
  isOpen: open
10521
10565
  };
10522
- const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
10566
+ const classNames3 = (0, import_system96.useClassNames)({ component: "Tooltip", variant, size: size2 });
10523
10567
  const portal = usePortalContainer();
10524
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
10525
- import_react_aria_components59.Tooltip,
10568
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
10569
+ import_react_aria_components64.Tooltip,
10526
10570
  {
10527
10571
  ...props,
10528
- className: (0, import_system89.cn)("group/tooltip", classNames3.container),
10572
+ className: (0, import_system96.cn)("group/tooltip", classNames3.container),
10529
10573
  UNSTABLE_portalContainer: portal,
10530
10574
  children: [
10531
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components59.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" }) }) }),
10532
10576
  children
10533
10577
  ]
10534
10578
  }
@@ -10537,13 +10581,13 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
10537
10581
  _Tooltip.Trigger = _TooltipTrigger;
10538
10582
 
10539
10583
  // src/TagGroup/Tag.tsx
10540
- var import_react_aria_components61 = require("react-aria-components");
10541
- var import_system91 = require("@marigold/system");
10584
+ var import_react_aria_components66 = require("react-aria-components");
10585
+ var import_system98 = require("@marigold/system");
10542
10586
 
10543
10587
  // src/TagGroup/TagGroup.tsx
10544
- var import_react_aria_components60 = require("react-aria-components");
10545
- var import_system90 = require("@marigold/system");
10546
- 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");
10547
10591
  var _TagGroup = ({
10548
10592
  width,
10549
10593
  items,
@@ -10553,9 +10597,9 @@ var _TagGroup = ({
10553
10597
  size: size2,
10554
10598
  ...rest
10555
10599
  }) => {
10556
- const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
10557
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as: import_react_aria_components60.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10558
- import_react_aria_components60.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,
10559
10603
  {
10560
10604
  items,
10561
10605
  className: classNames3.listItems,
@@ -10566,31 +10610,23 @@ var _TagGroup = ({
10566
10610
  };
10567
10611
 
10568
10612
  // src/TagGroup/Tag.tsx
10569
- var import_jsx_runtime110 = require("react/jsx-runtime");
10570
- var CloseButton2 = ({ className }) => {
10571
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.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" }) }) });
10572
- };
10613
+ var import_jsx_runtime118 = require("react/jsx-runtime");
10573
10614
  var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
10574
10615
  let textValue = typeof children === "string" ? children : void 0;
10575
- const classNames3 = (0, import_system91.useClassNames)({ component: "Tag", variant, size: size2 });
10616
+ const classNames3 = (0, import_system98.useClassNames)({ component: "Tag", variant, size: size2 });
10576
10617
  const props = {
10577
10618
  isDisabled: disabled,
10578
10619
  ...rest
10579
10620
  };
10580
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10581
- import_react_aria_components61.Tag,
10621
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
10622
+ import_react_aria_components66.Tag,
10582
10623
  {
10583
10624
  textValue,
10584
10625
  ...props,
10585
- className: (0, import_system91.cn)("data-selection-mode:cursor-pointer", classNames3.tag),
10586
- 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: [
10587
10628
  children,
10588
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
10589
- CloseButton2,
10590
- {
10591
- className: (0, import_system91.cn)("flex items-center", classNames3.closeButton)
10592
- }
10593
- )
10629
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(CloseButton, { className: classNames3.closeButton, slot: "remove" })
10594
10630
  ] })
10595
10631
  }
10596
10632
  );
@@ -10601,14 +10637,14 @@ _Tag.Group = _TagGroup;
10601
10637
  var import_visually_hidden = require("@react-aria/visually-hidden");
10602
10638
 
10603
10639
  // src/XLoader/XLoader.tsx
10604
- var import_react_aria_components63 = require("react-aria-components");
10640
+ var import_react_aria_components68 = require("react-aria-components");
10605
10641
  var import_utils16 = require("@react-aria/utils");
10606
- var import_system93 = require("@marigold/system");
10642
+ var import_system100 = require("@marigold/system");
10607
10643
 
10608
10644
  // src/XLoader/BaseLoader.tsx
10609
- var import_react_aria_components62 = require("react-aria-components");
10645
+ var import_react_aria_components67 = require("react-aria-components");
10610
10646
  var import_i18n6 = require("@react-aria/i18n");
10611
- var import_system92 = require("@marigold/system");
10647
+ var import_system99 = require("@marigold/system");
10612
10648
 
10613
10649
  // src/intl/messages.ts
10614
10650
  var intlMessages2 = {
@@ -10621,7 +10657,7 @@ var intlMessages2 = {
10621
10657
  };
10622
10658
 
10623
10659
  // src/XLoader/BaseLoader.tsx
10624
- var import_jsx_runtime111 = require("react/jsx-runtime");
10660
+ var import_jsx_runtime119 = require("react/jsx-runtime");
10625
10661
  var BaseLoader = ({
10626
10662
  variant,
10627
10663
  size: size2,
@@ -10630,16 +10666,16 @@ var BaseLoader = ({
10630
10666
  ...props
10631
10667
  }) => {
10632
10668
  const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
10633
- const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
10634
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
10635
- import_react_aria_components62.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,
10636
10672
  {
10637
10673
  className: className.container,
10638
10674
  isIndeterminate: true,
10639
10675
  "aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
10640
10676
  ...props,
10641
10677
  children: [
10642
- /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
10678
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
10643
10679
  "svg",
10644
10680
  {
10645
10681
  xmlns: "http://www.w3.org/2000/svg",
@@ -10647,13 +10683,13 @@ var BaseLoader = ({
10647
10683
  fill: "currentColor",
10648
10684
  className: className.loader,
10649
10685
  children: [
10650
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
10651
- /* @__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)(
10652
10688
  "path",
10653
10689
  {
10654
10690
  id: "XMLID_5_",
10655
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",
10656
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10692
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10657
10693
  "animate",
10658
10694
  {
10659
10695
  attributeName: "opacity",
@@ -10666,12 +10702,12 @@ var BaseLoader = ({
10666
10702
  )
10667
10703
  }
10668
10704
  ),
10669
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10705
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10670
10706
  "path",
10671
10707
  {
10672
10708
  id: "XMLID_18_",
10673
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",
10674
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10710
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10675
10711
  "animate",
10676
10712
  {
10677
10713
  attributeName: "opacity",
@@ -10684,12 +10720,12 @@ var BaseLoader = ({
10684
10720
  )
10685
10721
  }
10686
10722
  ),
10687
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10723
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10688
10724
  "path",
10689
10725
  {
10690
10726
  id: "XMLID_19_",
10691
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",
10692
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10728
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10693
10729
  "animate",
10694
10730
  {
10695
10731
  attributeName: "opacity",
@@ -10702,12 +10738,12 @@ var BaseLoader = ({
10702
10738
  )
10703
10739
  }
10704
10740
  ),
10705
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10741
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10706
10742
  "path",
10707
10743
  {
10708
10744
  id: "XMLID_20_",
10709
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",
10710
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10746
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10711
10747
  "animate",
10712
10748
  {
10713
10749
  attributeName: "opacity",
@@ -10720,12 +10756,12 @@ var BaseLoader = ({
10720
10756
  )
10721
10757
  }
10722
10758
  ),
10723
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10759
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10724
10760
  "path",
10725
10761
  {
10726
10762
  id: "XMLID_21_",
10727
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",
10728
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10764
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10729
10765
  "animate",
10730
10766
  {
10731
10767
  attributeName: "opacity",
@@ -10738,12 +10774,12 @@ var BaseLoader = ({
10738
10774
  )
10739
10775
  }
10740
10776
  ),
10741
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10777
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10742
10778
  "path",
10743
10779
  {
10744
10780
  id: "XMLID_22_",
10745
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",
10746
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10782
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10747
10783
  "animate",
10748
10784
  {
10749
10785
  attributeName: "opacity",
@@ -10756,12 +10792,12 @@ var BaseLoader = ({
10756
10792
  )
10757
10793
  }
10758
10794
  ),
10759
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10795
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10760
10796
  "path",
10761
10797
  {
10762
10798
  id: "XMLID_23_",
10763
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",
10764
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10800
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10765
10801
  "animate",
10766
10802
  {
10767
10803
  attributeName: "opacity",
@@ -10774,12 +10810,12 @@ var BaseLoader = ({
10774
10810
  )
10775
10811
  }
10776
10812
  ),
10777
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10813
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10778
10814
  "path",
10779
10815
  {
10780
10816
  id: "XMLID_24_",
10781
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",
10782
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10818
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10783
10819
  "animate",
10784
10820
  {
10785
10821
  attributeName: "opacity",
@@ -10792,12 +10828,12 @@ var BaseLoader = ({
10792
10828
  )
10793
10829
  }
10794
10830
  ),
10795
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10831
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10796
10832
  "path",
10797
10833
  {
10798
10834
  id: "XMLID_25_",
10799
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",
10800
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10836
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10801
10837
  "animate",
10802
10838
  {
10803
10839
  attributeName: "opacity",
@@ -10810,12 +10846,12 @@ var BaseLoader = ({
10810
10846
  )
10811
10847
  }
10812
10848
  ),
10813
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10849
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10814
10850
  "path",
10815
10851
  {
10816
10852
  id: "XMLID_26_",
10817
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",
10818
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10854
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10819
10855
  "animate",
10820
10856
  {
10821
10857
  attributeName: "opacity",
@@ -10828,12 +10864,12 @@ var BaseLoader = ({
10828
10864
  )
10829
10865
  }
10830
10866
  ),
10831
- /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10867
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10832
10868
  "path",
10833
10869
  {
10834
10870
  id: "XMLID_27_",
10835
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",
10836
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
10872
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
10837
10873
  "animate",
10838
10874
  {
10839
10875
  attributeName: "opacity",
@@ -10849,48 +10885,48 @@ var BaseLoader = ({
10849
10885
  ]
10850
10886
  }
10851
10887
  ),
10852
- children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components62.Label, { className: className.label, children }) : null
10888
+ children ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_react_aria_components67.Label, { className: className.label, children }) : null
10853
10889
  ]
10854
10890
  }
10855
10891
  );
10856
10892
  };
10857
10893
 
10858
10894
  // src/XLoader/XLoader.tsx
10859
- var import_jsx_runtime112 = require("react/jsx-runtime");
10895
+ var import_jsx_runtime120 = require("react/jsx-runtime");
10860
10896
  var LoaderFullScreen = (props) => {
10861
10897
  const id = (0, import_utils16.useId)();
10862
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components63.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components63.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 }) }) }) });
10863
10899
  };
10864
10900
  var LoaderSection = (props) => {
10865
- const className = (0, import_system93.useClassNames)({
10901
+ const className = (0, import_system100.useClassNames)({
10866
10902
  component: "Underlay",
10867
10903
  variant: "modal",
10868
10904
  className: "flex size-full items-center justify-center"
10869
10905
  });
10870
- 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 }) });
10871
10907
  };
10872
- 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 });
10873
10909
 
10874
10910
  // src/Tabs/Tabs.tsx
10875
- var import_react_aria_components67 = require("react-aria-components");
10876
- var import_system96 = require("@marigold/system");
10911
+ var import_react_aria_components72 = require("react-aria-components");
10912
+ var import_system103 = require("@marigold/system");
10877
10913
 
10878
10914
  // src/Tabs/Context.ts
10879
- var import_react72 = require("react");
10880
- var TabContext = (0, import_react72.createContext)({});
10881
- 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);
10882
10918
 
10883
10919
  // src/Tabs/Tab.tsx
10884
- var import_react_aria_components64 = require("react-aria-components");
10885
- var import_system94 = require("@marigold/system");
10886
- 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");
10887
10923
  var _Tab = (props) => {
10888
10924
  const { classNames: classNames3 } = useTabContext();
10889
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
10890
- import_react_aria_components64.Tab,
10925
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
10926
+ import_react_aria_components69.Tab,
10891
10927
  {
10892
10928
  ...props,
10893
- className: (0, import_system94.cn)(
10929
+ className: (0, import_system101.cn)(
10894
10930
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
10895
10931
  classNames3.tab
10896
10932
  ),
@@ -10900,49 +10936,49 @@ var _Tab = (props) => {
10900
10936
  };
10901
10937
 
10902
10938
  // src/Tabs/TabList.tsx
10903
- var import_react_aria_components65 = require("react-aria-components");
10904
- var import_system95 = require("@marigold/system");
10905
- 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");
10906
10942
  var _TabList = ({ space = 2, ...props }) => {
10907
10943
  const { classNames: classNames3 } = useTabContext();
10908
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
10909
- import_react_aria_components65.TabList,
10944
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
10945
+ import_react_aria_components70.TabList,
10910
10946
  {
10911
10947
  ...props,
10912
- 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),
10913
10949
  children: props.children
10914
10950
  }
10915
10951
  );
10916
10952
  };
10917
10953
 
10918
10954
  // src/Tabs/TabPanel.tsx
10919
- var import_react_aria_components66 = require("react-aria-components");
10920
- 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");
10921
10957
  var _TabPanel = (props) => {
10922
10958
  const { classNames: classNames3 } = useTabContext();
10923
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components66.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 });
10924
10960
  };
10925
10961
 
10926
10962
  // src/Tabs/Tabs.tsx
10927
- var import_jsx_runtime116 = require("react/jsx-runtime");
10963
+ var import_jsx_runtime124 = require("react/jsx-runtime");
10928
10964
  var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
10929
10965
  const props = {
10930
10966
  isDisabled: disabled,
10931
10967
  ...rest
10932
10968
  };
10933
- const classNames3 = (0, import_system96.useClassNames)({
10969
+ const classNames3 = (0, import_system103.useClassNames)({
10934
10970
  component: "Tabs",
10935
10971
  size: size2,
10936
10972
  variant
10937
10973
  });
10938
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react_aria_components67.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 }) });
10939
10975
  };
10940
10976
  _Tabs.List = _TabList;
10941
10977
  _Tabs.TabPanel = _TabPanel;
10942
10978
  _Tabs.Item = _Tab;
10943
10979
 
10944
10980
  // src/RouterProvider/RouterProvider.tsx
10945
- var import_react_aria_components68 = require("react-aria-components");
10981
+ var import_react_aria_components73 = require("react-aria-components");
10946
10982
  // Annotate the CommonJS export names for ESM import in node:
10947
10983
  0 && (module.exports = {
10948
10984
  Accordion,
@@ -10960,7 +10996,6 @@ var import_react_aria_components68 = require("react-aria-components");
10960
10996
  Center,
10961
10997
  Checkbox,
10962
10998
  CheckboxGroup,
10963
- CloseButton,
10964
10999
  Columns,
10965
11000
  ComboBox,
10966
11001
  Container,
@@ -10968,6 +11003,7 @@ var import_react_aria_components68 = require("react-aria-components");
10968
11003
  DatePicker,
10969
11004
  Dialog,
10970
11005
  Divider,
11006
+ Drawer,
10971
11007
  FieldBase,
10972
11008
  FieldGroup,
10973
11009
  FieldGroupContext,