@marigold/components 10.2.1 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ __export(index_exports, {
57
57
  FieldGroup: () => FieldGroup,
58
58
  FieldGroupContext: () => FieldGroupContext,
59
59
  Footer: () => Footer,
60
- Form: () => import_react_aria_components22.Form,
60
+ Form: () => import_react_aria_components26.Form,
61
61
  Grid: () => Grid,
62
62
  Header: () => _Header,
63
63
  Headline: () => _Headline,
@@ -79,7 +79,7 @@ __export(index_exports, {
79
79
  Popover: () => _Popover,
80
80
  Radio: () => _Radio,
81
81
  RadioGroup: () => _RadioGroup,
82
- RouterProvider: () => import_react_aria_components62.RouterProvider,
82
+ RouterProvider: () => import_react_aria_components66.RouterProvider,
83
83
  Scrollable: () => Scrollable,
84
84
  SearchField: () => _SearchField,
85
85
  SectionMessage: () => SectionMessage,
@@ -95,18 +95,20 @@ __export(index_exports, {
95
95
  Text: () => _Text,
96
96
  TextArea: () => _TextArea,
97
97
  TextField: () => _TextField,
98
- ThemeProvider: () => import_system18.ThemeProvider,
98
+ ThemeProvider: () => import_system16.ThemeProvider,
99
99
  Tiles: () => Tiles,
100
100
  Tooltip: () => _Tooltip,
101
101
  Underlay: () => Underlay,
102
102
  VisuallyHidden: () => import_visually_hidden.VisuallyHidden,
103
103
  XLoader: () => XLoader,
104
104
  _Calendar: () => _Calendar,
105
+ gridColsAlign: () => gridColsAlign,
106
+ gridColumn: () => gridColumn,
105
107
  useAsyncList: () => import_data.useAsyncList,
106
108
  useFieldGroupContext: () => useFieldGroupContext,
107
109
  useListData: () => import_data.useListData,
108
110
  usePortalContainer: () => usePortalContainer,
109
- useTheme: () => import_system18.useTheme
111
+ useTheme: () => import_system16.useTheme
110
112
  });
111
113
  module.exports = __toCommonJS(index_exports);
112
114
 
@@ -114,31 +116,123 @@ module.exports = __toCommonJS(index_exports);
114
116
  var import_data = require("@react-stately/data");
115
117
 
116
118
  // src/Accordion/Accordion.tsx
117
- var import_react8 = require("react");
118
- var import_accordion = require("@react-aria/accordion");
119
- var import_collections = require("@react-stately/collections");
120
- var import_tree = require("@react-stately/tree");
121
-
122
- // src/Accordion/AccordionItem.tsx
123
- var import_react7 = require("react");
124
- var import_focus = require("@react-aria/focus");
125
- var import_utils2 = require("@react-aria/utils");
126
- var import_system7 = require("@marigold/system");
119
+ var import_react_aria_components6 = require("react-aria-components");
120
+ var import_system5 = require("@marigold/system");
127
121
 
128
- // src/icons/ChevronUp.tsx
122
+ // src/Accordion/AccordionContext.tsx
129
123
  var import_react = require("react");
130
- var import_system = require("@marigold/system");
131
- var import_jsx_runtime = require("react/jsx-runtime");
132
- var ChevronUp = (0, import_react.forwardRef)(
133
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_system.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
134
- );
124
+ var Context = (0, import_react.createContext)(null);
125
+ var AccordionProvider = Context.Provider;
126
+ var useAccordionContext = () => {
127
+ const ctx = (0, import_react.useContext)(Context);
128
+ if (ctx === null) {
129
+ throw Error(
130
+ 'You can only use "useAccordionContext" within the <Accordion> component.'
131
+ );
132
+ }
133
+ return ctx;
134
+ };
135
135
 
136
- // src/icons/ChevronDown.tsx
136
+ // src/Accordion/AccordionHeading.tsx
137
+ var import_react_aria_components3 = require("react-aria-components");
138
+ var import_system4 = require("@marigold/system");
139
+
140
+ // src/Button/Button.tsx
137
141
  var import_react2 = require("react");
142
+ var import_react_aria_components2 = require("react-aria-components");
138
143
  var import_system2 = require("@marigold/system");
144
+
145
+ // src/ProgressCycle/ProgressCycle.tsx
146
+ var import_react_aria_components = require("react-aria-components");
147
+ var import_system = require("@marigold/system");
148
+ var import_jsx_runtime = require("react/jsx-runtime");
149
+ var ProgressCycle = ({
150
+ size = "16",
151
+ ...props
152
+ }) => {
153
+ let strokeWidth = 3;
154
+ if (size <= "24") {
155
+ strokeWidth = 2;
156
+ } else if (size >= "32") {
157
+ strokeWidth = 4;
158
+ }
159
+ const radius = `calc(50% - ${strokeWidth / 2}px)`;
160
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_aria_components.ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
161
+ import_system.SVG,
162
+ {
163
+ className: "animate-rotate-spinner origin-center fill-none",
164
+ size,
165
+ "aria-hidden": "true",
166
+ role: "img",
167
+ children: [
168
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
169
+ "circle",
170
+ {
171
+ cx: "50%",
172
+ cy: "50%",
173
+ r: radius,
174
+ strokeWidth,
175
+ className: "stroke-transparent"
176
+ }
177
+ ),
178
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
179
+ "circle",
180
+ {
181
+ cx: "50%",
182
+ cy: "50%",
183
+ r: radius,
184
+ strokeWidth,
185
+ pathLength: "100",
186
+ strokeDasharray: "100 200",
187
+ strokeDashoffset: "0",
188
+ strokeLinecap: "round",
189
+ className: "animate-progress-cycle origin-center -rotate-90 stroke-gray-800"
190
+ }
191
+ )
192
+ ]
193
+ }
194
+ ) });
195
+ };
196
+
197
+ // src/Button/Button.tsx
139
198
  var import_jsx_runtime2 = require("react/jsx-runtime");
140
- var ChevronDown = (0, import_react2.forwardRef)(
141
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_system2.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
199
+ var _Button = (0, import_react2.forwardRef)(
200
+ ({
201
+ children,
202
+ variant,
203
+ size,
204
+ className,
205
+ disabled,
206
+ loading,
207
+ fullWidth,
208
+ ...props
209
+ }, ref) => {
210
+ const classNames2 = (0, import_system2.useClassNames)({
211
+ component: "Button",
212
+ variant,
213
+ size,
214
+ className
215
+ });
216
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
217
+ import_react_aria_components2.Button,
218
+ {
219
+ ...props,
220
+ ref,
221
+ className: (0, import_system2.cn)(
222
+ "inline-flex items-center justify-center gap-[0.5ch]",
223
+ classNames2,
224
+ fullWidth ? "w-full" : void 0,
225
+ loading && "cursor-progress!"
226
+ ),
227
+ isPending: loading,
228
+ isDisabled: disabled,
229
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
230
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ProgressCycle, {}) }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "invisible flex gap-[inherit]", children })
232
+ ] }) : children
233
+ }
234
+ );
235
+ }
142
236
  );
143
237
 
144
238
  // src/icons/ChevronRight.tsx
@@ -149,242 +243,82 @@ var ChevronRight = (0, import_react3.forwardRef)(
149
243
  ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_system3.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M7.125 18.0244L13.1363 12L7.125 5.97563L8.97563 4.125L16.8506 12L8.97563 19.875L7.125 18.0244Z" }) })
150
244
  );
151
245
 
152
- // src/icons/ChevronLeft.tsx
153
- var import_react4 = require("react");
154
- var import_system4 = require("@marigold/system");
246
+ // src/Accordion/AccordionHeading.tsx
155
247
  var import_jsx_runtime4 = require("react/jsx-runtime");
156
- var ChevronLeft = (0, import_react4.forwardRef)(
157
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_system4.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16.8506 18.0244L10.8394 12L16.8506 5.97563L15 4.125L7.125 12L15 19.875L16.8506 18.0244Z" }) })
158
- );
159
-
160
- // src/icons/SortDown.tsx
161
- var import_react5 = require("react");
162
- var import_system5 = require("@marigold/system");
163
- var import_jsx_runtime5 = require("react/jsx-runtime");
164
- var SortDown = (0, import_react5.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_system5.SVG, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" }) }));
165
-
166
- // src/icons/SortUp.tsx
167
- var import_react6 = require("react");
168
- var import_system6 = require("@marigold/system");
169
- var import_jsx_runtime6 = require("react/jsx-runtime");
170
- var SortUp = (0, import_react6.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_system6.SVG, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" }) }));
171
-
172
- // src/Accordion/useAccordionItem.ts
173
- var import_button = require("@react-aria/button");
174
- var import_selection = require("@react-aria/selection");
175
- var import_utils = require("@react-aria/utils");
176
- function isNonContiguousSelectionModifier(e) {
177
- return (0, import_utils.isAppleDevice)() ? e.altKey : e.ctrlKey;
178
- }
179
- function isCtrlKeyPressed(e) {
180
- if ((0, import_utils.isMac)()) {
181
- return e.metaKey;
182
- }
183
- return e.ctrlKey;
184
- }
185
- function useAccordionItem(props, state, ref) {
186
- let { item } = props;
187
- let key = item.key;
188
- let manager = state.selectionManager;
189
- let buttonId = (0, import_utils.useId)();
190
- let regionId = (0, import_utils.useId)();
191
- let isDisabled = state.disabledKeys.has(item.key);
192
- let { itemProps } = (0, import_selection.useSelectableItem)({
193
- selectionManager: manager,
194
- key,
195
- ref
196
- });
197
- const isDefaultExpanded = state.expandedKeys.has(item.key);
198
- let onSelect = (e) => {
199
- if (e.pointerType === "keyboard" && isNonContiguousSelectionModifier(e)) {
200
- if (isDefaultExpanded) {
201
- state.expandedKeys.clear();
202
- }
203
- manager.toggleSelection(key);
204
- } else {
205
- if (manager.selectionMode === "none") {
206
- return;
207
- }
208
- if (manager.selectionMode === "single") {
209
- if (manager.isSelected(key) && !manager.disallowEmptySelection) {
210
- if (isDefaultExpanded) {
211
- state.expandedKeys.clear();
212
- }
213
- manager.toggleSelection(key);
214
- } else {
215
- if (isDefaultExpanded) {
216
- state.expandedKeys.clear();
217
- }
218
- manager.replaceSelection(key);
219
- }
220
- } else if (e && e.shiftKey) {
221
- if (isDefaultExpanded) {
222
- state.expandedKeys.clear();
223
- }
224
- manager.extendSelection(key);
225
- } else if (manager.selectionBehavior === "toggle" || e && (isCtrlKeyPressed(e) || e.pointerType === "touch" || e.pointerType === "virtual")) {
226
- if (isDefaultExpanded) {
227
- state.expandedKeys.clear();
228
- manager.toggleSelection(key);
229
- }
230
- manager.toggleSelection(key);
231
- } else {
232
- if (isDefaultExpanded) {
233
- state.expandedKeys.clear();
234
- }
235
- manager.replaceSelection(key);
248
+ var AccordionHeader = ({ children }) => {
249
+ const { classNames: classNames2 } = useAccordionContext();
250
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_aria_components3.Heading, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(_Button, { slot: "trigger", className: (0, import_system4.cn)("group", classNames2.header), children: [
251
+ children,
252
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
253
+ ChevronRight,
254
+ {
255
+ className: (0, import_system4.cn)(classNames2.icon, "group-aria-expanded:rotate-90")
236
256
  }
237
- }
238
- };
239
- let { buttonProps } = (0, import_button.useButton)(
240
- (0, import_utils.mergeProps)(itemProps, {
241
- id: buttonId,
242
- elementType: "button",
243
- isDisabled,
244
- // if remove than everything click
245
- onPress: onSelect
246
- }),
247
- ref
248
- );
249
- return {
250
- buttonProps: {
251
- ...buttonProps,
252
- role: "button",
253
- "aria-expanded": manager.isSelected(key) || isDefaultExpanded,
254
- "aria-controls": manager.isSelected(key) || isDefaultExpanded ? regionId : void 0
255
- },
256
- regionProps: {
257
- id: regionId,
258
- role: "region",
259
- "aria-labelledby": buttonId
260
- }
261
- };
262
- }
257
+ )
258
+ ] }) });
259
+ };
263
260
 
264
261
  // src/Accordion/AccordionItem.tsx
265
- var import_jsx_runtime7 = require("react/jsx-runtime");
262
+ var import_react_aria_components4 = require("react-aria-components");
263
+ var import_jsx_runtime5 = require("react/jsx-runtime");
266
264
  var AccordionItem = ({
267
- item,
268
- state,
269
- title,
270
- variant,
271
- size,
265
+ children,
266
+ disabled,
267
+ expanded,
272
268
  ...props
273
269
  }) => {
274
- const ref = (0, import_react7.useRef)(null);
275
- const defaultExpanded = Array.from(state.expandedKeys).some((key) => {
276
- return key.toString() === item.key.toString().replace(".$", "");
277
- });
278
- const expanded = state.selectionManager.isSelected(item.key);
279
- (0, import_react7.useEffect)(() => {
280
- if (defaultExpanded) {
281
- if (state.selectionManager.selectionMode === "multiple") {
282
- state.selectionManager.setSelectedKeys([
283
- ...state.selectionManager.selectedKeys,
284
- item.key
285
- ]);
286
- } else {
287
- state.expandedKeys.clear();
288
- state.selectionManager.toggleSelection(item.key);
289
- }
290
- }
291
- }, [defaultExpanded, item.key, state.expandedKeys, state.selectionManager]);
292
- const { buttonProps, regionProps } = useAccordionItem(
270
+ const { classNames: classNames2 } = useAccordionContext();
271
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
272
+ import_react_aria_components4.Disclosure,
293
273
  {
294
- item
295
- },
296
- state,
297
- ref
274
+ isDisabled: disabled,
275
+ isExpanded: expanded,
276
+ className: classNames2.item,
277
+ ...props,
278
+ children
279
+ }
298
280
  );
299
- const { isFocusVisible, focusProps } = (0, import_focus.useFocusRing)();
300
- const stateProps = (0, import_system7.useStateProps)({
301
- focus: isFocusVisible,
302
- expanded: defaultExpanded || expanded
303
- });
304
- const classNames2 = (0, import_system7.useClassNames)({ component: "Accordion", variant, size });
305
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col", ...props, children: [
306
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
307
- "button",
308
- {
309
- className: (0, import_system7.cn)(
310
- "inline-flex items-center justify-center gap-[0.5ch]",
311
- classNames2.button
312
- ),
313
- ...(0, import_utils2.mergeProps)(buttonProps, stateProps, props),
314
- ref,
315
- "aria-label": item.textValue,
316
- children: [
317
- title,
318
- expanded ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ChevronDown, { className: "h3 w-6" })
319
- ]
320
- }
321
- ),
322
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
323
- "div",
324
- {
325
- ...(0, import_utils2.mergeProps)(regionProps, focusProps, stateProps),
326
- className: expanded || defaultExpanded ? classNames2.item : (0, import_system7.cn)(classNames2.item, "hidden"),
327
- children: item.props.children
328
- }
329
- )
330
- ] });
281
+ };
282
+
283
+ // src/Accordion/AccordionPanel.tsx
284
+ var import_react_aria_components5 = require("react-aria-components");
285
+ var import_jsx_runtime6 = require("react/jsx-runtime");
286
+ var AccordionPanel = ({ children }) => {
287
+ const { classNames: classNames2 } = useAccordionContext();
288
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_aria_components5.DisclosurePanel, { className: classNames2.content, children });
331
289
  };
332
290
 
333
291
  // src/Accordion/Accordion.tsx
334
- var import_jsx_runtime8 = require("react/jsx-runtime");
335
- var Accordion = ({ children, ...props }) => {
336
- const ownProps = {
337
- ...props,
338
- // we have to do this because JSX childs are not supported
339
- children: []
340
- };
341
- import_react8.Children.forEach(children, (child) => {
342
- var _a;
343
- if ((0, import_react8.isValidElement)(child) && typeof ((_a = child.props) == null ? void 0 : _a.children) !== "string") {
344
- const clone = (0, import_react8.cloneElement)(child, {
345
- hasChildItems: false
346
- });
347
- ownProps.children.push(clone);
348
- return;
349
- }
350
- ownProps.children.push(child);
351
- });
352
- const ref = (0, import_react8.useRef)(null);
353
- const state = (0, import_tree.useTreeState)({
354
- selectionMode: "single",
355
- ...ownProps
356
- });
357
- const { accordionProps } = (0, import_accordion.useAccordion)(
358
- /**
359
- * Disable "cmd+a" (open all) hotkey for now, since it will not work
360
- * with forms inside the accordion. (see DSTSUP-22)
361
- */
362
- { ...ownProps, disallowSelectAll: true },
363
- state,
364
- ref
365
- );
366
- delete accordionProps.onKeyDownCapture;
367
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
368
- AccordionItem,
292
+ var import_jsx_runtime7 = require("react/jsx-runtime");
293
+ var Accordion = ({
294
+ children,
295
+ disabled,
296
+ variant,
297
+ size,
298
+ ...props
299
+ }) => {
300
+ const classNames2 = (0, import_system5.useClassNames)({ component: "Accordion", variant, size });
301
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(AccordionProvider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
302
+ import_react_aria_components6.DisclosureGroup,
369
303
  {
370
- title: item.props.title,
371
- item,
372
- state,
373
- variant: item.props.variant,
374
- size: item.props.size
375
- },
376
- item.key
377
- )) });
304
+ ...props,
305
+ isDisabled: disabled,
306
+ className: classNames2.container,
307
+ children
308
+ }
309
+ ) });
378
310
  };
379
- Accordion.Item = import_collections.Item;
311
+ Accordion.Header = AccordionHeader;
312
+ Accordion.Content = AccordionPanel;
313
+ Accordion.Item = AccordionItem;
380
314
 
381
315
  // src/Aside/Aside.tsx
382
- var import_react9 = require("react");
383
- var import_system8 = require("@marigold/system");
384
- var import_jsx_runtime9 = require("react/jsx-runtime");
316
+ var import_react4 = require("react");
317
+ var import_system6 = require("@marigold/system");
318
+ var import_jsx_runtime8 = require("react/jsx-runtime");
385
319
  var classNames = {
386
- aside: "grow basis-[--sideWidth]",
387
- content: "basis-0 grow-[999] [min-inline-size:--wrap]"
320
+ aside: "grow basis-(--sideWidth)",
321
+ content: "basis-0 grow-999 [min-inline-size:var(--wrap)]"
388
322
  };
389
323
  var Aside = ({
390
324
  children,
@@ -393,13 +327,13 @@ var Aside = ({
393
327
  side = "left",
394
328
  wrap = "50%"
395
329
  }) => {
396
- const [left, right] = import_react9.Children.toArray(children);
330
+ const [left, right] = import_react4.Children.toArray(children);
397
331
  const vars = {
398
- aside: (0, import_system8.createVar)({ sideWidth }),
399
- content: (0, import_system8.createVar)({ wrap })
332
+ aside: (0, import_system6.createVar)({ sideWidth }),
333
+ content: (0, import_system6.createVar)({ wrap })
400
334
  };
401
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: (0, import_system8.cn)("flex flex-wrap", import_system8.gapSpace[space]), children: [
402
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
335
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: (0, import_system6.cn)("flex flex-wrap", import_system6.gapSpace[space]), children: [
336
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
403
337
  "div",
404
338
  {
405
339
  className: classNames[side === "left" ? "aside" : "content"],
@@ -407,7 +341,7 @@ var Aside = ({
407
341
  children: left
408
342
  }
409
343
  ),
410
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
344
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
411
345
  "div",
412
346
  {
413
347
  className: classNames[side === "right" ? "aside" : "content"],
@@ -419,49 +353,49 @@ var Aside = ({
419
353
  };
420
354
 
421
355
  // src/Aspect/Aspect.tsx
422
- var import_system9 = require("@marigold/system");
423
- var import_jsx_runtime10 = require("react/jsx-runtime");
356
+ var import_system7 = require("@marigold/system");
357
+ var import_jsx_runtime9 = require("react/jsx-runtime");
424
358
  var Aspect = ({
425
359
  ratio = "square",
426
360
  maxWidth,
427
361
  children
428
362
  }) => {
429
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
363
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
430
364
  "div",
431
365
  {
432
- className: (0, import_system9.cn)(
366
+ className: (0, import_system7.cn)(
433
367
  "overflow-hidden",
434
- import_system9.aspect[ratio],
368
+ import_system7.aspect[ratio],
435
369
  "max-w-[var(--maxWidth)]"
436
370
  ),
437
- style: (0, import_system9.createVar)({ maxWidth }),
371
+ style: (0, import_system7.createVar)({ maxWidth }),
438
372
  children
439
373
  }
440
374
  );
441
375
  };
442
376
 
443
377
  // src/Autocomplete/Autocomplete.tsx
444
- var import_react19 = __toESM(require("react"));
445
- var import_react_aria_components10 = require("react-aria-components");
446
- var import_system21 = require("@marigold/system");
378
+ var import_react14 = __toESM(require("react"));
379
+ var import_react_aria_components16 = require("react-aria-components");
380
+ var import_system19 = require("@marigold/system");
447
381
 
448
382
  // src/FieldBase/FieldBase.tsx
449
- var import_react12 = require("react");
450
- var import_system12 = require("@marigold/system");
383
+ var import_react7 = require("react");
384
+ var import_system10 = require("@marigold/system");
451
385
 
452
386
  // src/HelpText/HelpText.tsx
453
- var import_react10 = require("react");
454
- var import_react_aria_components = require("react-aria-components");
455
- var import_system10 = require("@marigold/system");
456
- var import_jsx_runtime11 = require("react/jsx-runtime");
457
- var Icon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
387
+ var import_react5 = require("react");
388
+ var import_react_aria_components7 = require("react-aria-components");
389
+ var import_system8 = require("@marigold/system");
390
+ var import_jsx_runtime10 = require("react/jsx-runtime");
391
+ var Icon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
458
392
  "svg",
459
393
  {
460
- className: (0, import_system10.cn)("h-4 w-4 shrink-0", className),
394
+ className: (0, import_system8.cn)("h-4 w-4 shrink-0", className),
461
395
  viewBox: "0 0 24 24",
462
396
  role: "presentation",
463
397
  fill: "currentColor",
464
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
398
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
465
399
  }
466
400
  );
467
401
  var HelpText = ({
@@ -471,64 +405,64 @@ var HelpText = ({
471
405
  errorMessage,
472
406
  ...props
473
407
  }) => {
474
- const classNames2 = (0, import_system10.useClassNames)({
408
+ const classNames2 = (0, import_system8.useClassNames)({
475
409
  component: "HelpText",
476
410
  variant,
477
411
  size
478
412
  });
479
- const ctx = (0, import_react10.useContext)(import_react_aria_components.FieldErrorContext);
413
+ const ctx = (0, import_react5.useContext)(import_react_aria_components7.FieldErrorContext);
480
414
  if (!description && ctx && !ctx.isInvalid) {
481
415
  return null;
482
416
  }
483
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: (0, import_system10.cn)(classNames2.container), children: [
484
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components.FieldError, { ...props, className: "flex flex-col", children: (validation) => {
417
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: (0, import_system8.cn)(classNames2.container), children: [
418
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_aria_components7.FieldError, { ...props, className: "flex flex-col", children: (validation) => {
485
419
  const messages = (typeof errorMessage === "function" ? errorMessage(validation) : errorMessage) || validation.validationErrors;
486
- return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
487
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames2.icon }),
420
+ return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
421
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: classNames2.icon }),
488
422
  msg
489
- ] }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
490
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames2.icon }),
423
+ ] }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-center justify-start gap-1", children: [
424
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: classNames2.icon }),
491
425
  messages
492
426
  ] });
493
427
  } }),
494
- ctx && ctx.isInvalid ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_aria_components.Text, { slot: "description", children: description })
428
+ ctx && ctx.isInvalid ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_aria_components7.Text, { slot: "description", children: description })
495
429
  ] });
496
430
  };
497
431
 
498
432
  // src/Label/Label.tsx
499
- var import_react_aria_components2 = require("react-aria-components");
500
- var import_system11 = require("@marigold/system");
433
+ var import_react_aria_components8 = require("react-aria-components");
434
+ var import_system9 = require("@marigold/system");
501
435
 
502
436
  // src/FieldBase/FieldGroup.tsx
503
- var import_react11 = require("react");
504
- var import_jsx_runtime12 = require("react/jsx-runtime");
505
- var FieldGroupContext = (0, import_react11.createContext)({});
506
- var useFieldGroupContext = () => (0, import_react11.useContext)(FieldGroupContext);
437
+ var import_react6 = require("react");
438
+ var import_jsx_runtime11 = require("react/jsx-runtime");
439
+ var FieldGroupContext = (0, import_react6.createContext)({});
440
+ var useFieldGroupContext = () => (0, import_react6.useContext)(FieldGroupContext);
507
441
  var FieldGroup = ({ labelWidth, children }) => {
508
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FieldGroupContext.Provider, { value: { labelWidth }, children });
442
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FieldGroupContext.Provider, { value: { labelWidth }, children });
509
443
  };
510
444
 
511
445
  // src/Label/Label.tsx
512
- var import_jsx_runtime13 = require("react/jsx-runtime");
446
+ var import_jsx_runtime12 = require("react/jsx-runtime");
513
447
  var _Label = ({ size, variant, children, ...props }) => {
514
- const classNames2 = (0, import_system11.useClassNames)({ component: "Label", size, variant });
448
+ const classNames2 = (0, import_system9.useClassNames)({ component: "Label", size, variant });
515
449
  const { labelWidth } = useFieldGroupContext();
516
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
517
- import_react_aria_components2.Label,
450
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
451
+ import_react_aria_components8.Label,
518
452
  {
519
453
  ...props,
520
- className: (0, import_system11.cn)(classNames2.container, "flex w-[var(--labelWidth)]"),
521
- style: (0, import_system11.createVar)({ labelWidth }),
454
+ className: (0, import_system9.cn)(classNames2.container, "flex w-[var(--labelWidth)]"),
455
+ style: (0, import_system9.createVar)({ labelWidth }),
522
456
  children: [
523
457
  children,
524
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
525
- import_system11.SVG,
458
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
459
+ import_system9.SVG,
526
460
  {
527
461
  viewBox: "0 0 24 24",
528
462
  role: "presentation",
529
463
  size: 16,
530
- className: (0, import_system11.cn)("hidden", classNames2.indicator),
531
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
464
+ className: (0, import_system9.cn)("hidden", classNames2.indicator),
465
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
532
466
  }
533
467
  )
534
468
  ]
@@ -537,8 +471,8 @@ var _Label = ({ size, variant, children, ...props }) => {
537
471
  };
538
472
 
539
473
  // src/FieldBase/FieldBase.tsx
540
- var import_jsx_runtime14 = require("react/jsx-runtime");
541
- var fixedForwardRef = import_react12.forwardRef;
474
+ var import_jsx_runtime13 = require("react/jsx-runtime");
475
+ var fixedForwardRef = import_react7.forwardRef;
542
476
  var _FieldBase = (props, ref) => {
543
477
  const {
544
478
  as: Component = "div",
@@ -553,18 +487,18 @@ var _FieldBase = (props, ref) => {
553
487
  stateProps,
554
488
  ...rest
555
489
  } = props;
556
- const classNames2 = (0, import_system12.useClassNames)({
490
+ const classNames2 = (0, import_system10.useClassNames)({
557
491
  component: "Field",
558
492
  variant,
559
493
  size
560
494
  });
561
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
495
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
562
496
  Component,
563
497
  {
564
498
  ref,
565
- className: (0, import_system12.cn)(
499
+ className: (0, import_system10.cn)(
566
500
  "group/field",
567
- import_system12.width[width],
501
+ import_system10.width[width],
568
502
  classNames2,
569
503
  className,
570
504
  !label && `gap-x-0`
@@ -573,9 +507,9 @@ var _FieldBase = (props, ref) => {
573
507
  "data-error": props.isInvalid ? true : void 0,
574
508
  ...rest,
575
509
  children: [
576
- label ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(_Label, { variant, size, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { "aria-hidden": "true" }),
510
+ label ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(_Label, { variant, size, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { "aria-hidden": "true" }),
577
511
  children,
578
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
512
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
579
513
  HelpText,
580
514
  {
581
515
  variant,
@@ -591,40 +525,40 @@ var _FieldBase = (props, ref) => {
591
525
  var FieldBase = fixedForwardRef(_FieldBase);
592
526
 
593
527
  // src/Input/SearchInput.tsx
594
- var import_react14 = require("react");
595
- var import_react_aria_components4 = require("react-aria-components");
528
+ var import_react9 = require("react");
529
+ var import_react_aria_components10 = require("react-aria-components");
596
530
  var import_i18n = require("@react-aria/i18n");
597
- var import_system14 = require("@marigold/system");
531
+ var import_system12 = require("@marigold/system");
598
532
 
599
533
  // src/Input/Input.tsx
600
- var import_react13 = require("react");
601
- var import_react_aria_components3 = require("react-aria-components");
602
- var import_system13 = require("@marigold/system");
603
- var import_jsx_runtime15 = require("react/jsx-runtime");
604
- var _Input = (0, import_react13.forwardRef)(
534
+ var import_react8 = require("react");
535
+ var import_react_aria_components9 = require("react-aria-components");
536
+ var import_system11 = require("@marigold/system");
537
+ var import_jsx_runtime14 = require("react/jsx-runtime");
538
+ var _Input = (0, import_react8.forwardRef)(
605
539
  ({ type, icon, action, variant, size, className, ...props }, ref) => {
606
- const classNames2 = (0, import_system13.useClassNames)({
540
+ const classNames2 = (0, import_system11.useClassNames)({
607
541
  component: "Input",
608
542
  variant,
609
543
  size
610
544
  });
611
- const inputIcon = icon ? (0, import_react13.cloneElement)(icon, {
545
+ const inputIcon = icon ? (0, import_react8.cloneElement)(icon, {
612
546
  ...icon.props,
613
- className: (0, import_system13.cn)(
547
+ className: (0, import_system11.cn)(
614
548
  "pointer-events-none absolute",
615
549
  classNames2.icon,
616
550
  icon.props.className
617
551
  )
618
552
  }) : null;
619
- const inputAction = action && !props.readOnly ? (0, import_react13.cloneElement)(action, {
553
+ const inputAction = action && !props.readOnly ? (0, import_react8.cloneElement)(action, {
620
554
  ...action.props,
621
- className: (0, import_system13.cn)(
555
+ className: (0, import_system11.cn)(
622
556
  "absolute right-0",
623
557
  classNames2.action,
624
558
  action.props.className
625
559
  )
626
560
  }) : null;
627
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
561
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
628
562
  "div",
629
563
  {
630
564
  className: "group/input relative flex items-center",
@@ -632,11 +566,11 @@ var _Input = (0, import_react13.forwardRef)(
632
566
  "data-action": action && "",
633
567
  children: [
634
568
  inputIcon,
635
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
636
- import_react_aria_components3.Input,
569
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
570
+ import_react_aria_components9.Input,
637
571
  {
638
572
  ...props,
639
- className: (0, import_system13.cn)(
573
+ className: (0, import_system11.cn)(
640
574
  "w-full flex-1",
641
575
  "disabled:cursor-not-allowed",
642
576
  "[&[type=file]]:border-none [&[type=file]]:p-0",
@@ -656,7 +590,7 @@ var _Input = (0, import_react13.forwardRef)(
656
590
  );
657
591
 
658
592
  // src/Input/SearchInput.tsx
659
- var import_jsx_runtime16 = require("react/jsx-runtime");
593
+ var import_jsx_runtime15 = require("react/jsx-runtime");
660
594
  var intlMessages = {
661
595
  "de-DE": {
662
596
  "Clear search": "Suche zur\xFCcksetzen"
@@ -668,7 +602,7 @@ var intlMessages = {
668
602
  "Clear search": "Effacer la recherche"
669
603
  }
670
604
  };
671
- var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
605
+ var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
672
606
  "svg",
673
607
  {
674
608
  xmlns: "http://www.w3.org/2000/svg",
@@ -677,31 +611,31 @@ var SearchIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
677
611
  width: 24,
678
612
  height: 24,
679
613
  ...props,
680
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
614
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
681
615
  }
682
616
  );
683
- var SearchInput = (0, import_react14.forwardRef)(
617
+ var SearchInput = (0, import_react9.forwardRef)(
684
618
  ({ className, onClear, ...props }, ref) => {
685
619
  const stringFormatter = (0, import_i18n.useLocalizedStringFormatter)(intlMessages);
686
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
620
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
687
621
  _Input,
688
622
  {
689
623
  type: "search",
690
- className: (0, import_system14.cn)(
624
+ className: (0, import_system12.cn)(
691
625
  "[&::-webkit-search-cancel-button]:hidden",
692
626
  className == null ? void 0 : className.input
693
627
  ),
694
628
  ref,
695
- icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SearchIcon, {}),
696
- action: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
697
- import_react_aria_components4.Button,
629
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SearchIcon, {}),
630
+ action: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
631
+ import_react_aria_components10.Button,
698
632
  {
699
633
  className: className == null ? void 0 : className.action,
700
634
  onPress: () => onClear == null ? void 0 : onClear(),
701
635
  "aria-label": stringFormatter.format("Clear search"),
702
636
  excludeFromTabOrder: true,
703
637
  preventFocusOnPress: true,
704
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
638
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
705
639
  "svg",
706
640
  {
707
641
  xmlns: "http://www.w3.org/2000/svg",
@@ -709,7 +643,7 @@ var SearchInput = (0, import_react14.forwardRef)(
709
643
  fill: "currentColor",
710
644
  width: 20,
711
645
  height: 20,
712
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
646
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
713
647
  }
714
648
  )
715
649
  }
@@ -721,36 +655,36 @@ var SearchInput = (0, import_react14.forwardRef)(
721
655
  );
722
656
 
723
657
  // src/ListBox/ListBox.tsx
724
- var import_react16 = require("react");
725
- var import_react_aria_components7 = require("react-aria-components");
726
- var import_system16 = require("@marigold/system");
658
+ var import_react11 = require("react");
659
+ var import_react_aria_components13 = require("react-aria-components");
660
+ var import_system14 = require("@marigold/system");
727
661
 
728
662
  // src/ListBox/Context.ts
729
- var import_react15 = require("react");
730
- var ListBoxContext = (0, import_react15.createContext)({});
731
- var useListBoxContext = () => (0, import_react15.useContext)(ListBoxContext);
663
+ var import_react10 = require("react");
664
+ var ListBoxContext = (0, import_react10.createContext)({});
665
+ var useListBoxContext = () => (0, import_react10.useContext)(ListBoxContext);
732
666
 
733
667
  // src/ListBox/ListBoxItem.tsx
734
- var import_react_aria_components5 = require("react-aria-components");
735
- var import_jsx_runtime17 = require("react/jsx-runtime");
668
+ var import_react_aria_components11 = require("react-aria-components");
669
+ var import_jsx_runtime16 = require("react/jsx-runtime");
736
670
  var _ListBoxItem = ({ ...props }) => {
737
671
  const { classNames: classNames2 } = useListBoxContext();
738
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_aria_components5.ListBoxItem, { ...props, className: classNames2.option });
672
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_aria_components11.ListBoxItem, { ...props, className: classNames2.option });
739
673
  };
740
-
741
- // src/ListBox/ListBoxSection.tsx
742
- var import_react_aria_components6 = require("react-aria-components");
743
- var import_system15 = require("@marigold/system");
744
- var import_jsx_runtime18 = require("react/jsx-runtime");
745
- var _Section = ({ header: header2, children, ...props }) => {
674
+
675
+ // src/ListBox/ListBoxSection.tsx
676
+ var import_react_aria_components12 = require("react-aria-components");
677
+ var import_system13 = require("@marigold/system");
678
+ var import_jsx_runtime17 = require("react/jsx-runtime");
679
+ var _Section = ({ header, children, ...props }) => {
746
680
  const { classNames: classNames2 } = useListBoxContext();
747
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
748
- import_react_aria_components6.ListBoxSection,
681
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
682
+ import_react_aria_components12.ListBoxSection,
749
683
  {
750
684
  ...props,
751
- className: (0, import_system15.cn)(classNames2.section, classNames2.header),
685
+ className: (0, import_system13.cn)(classNames2.section, classNames2.header),
752
686
  children: [
753
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components6.Header, { children: header2 }),
687
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_aria_components12.Header, { children: header }),
754
688
  children
755
689
  ]
756
690
  }
@@ -758,16 +692,16 @@ var _Section = ({ header: header2, children, ...props }) => {
758
692
  };
759
693
 
760
694
  // src/ListBox/ListBox.tsx
761
- var import_jsx_runtime19 = require("react/jsx-runtime");
762
- var _ListBox = (0, import_react16.forwardRef)(
695
+ var import_jsx_runtime18 = require("react/jsx-runtime");
696
+ var _ListBox = (0, import_react11.forwardRef)(
763
697
  ({ variant, size, ...props }, ref) => {
764
- const classNames2 = (0, import_system16.useClassNames)({ component: "ListBox", variant, size });
698
+ const classNames2 = (0, import_system14.useClassNames)({ component: "ListBox", variant, size });
765
699
  const listBoxProps = { shouldSelectOnPressUp: false };
766
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
767
- import_react_aria_components7.ListBox,
700
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
701
+ import_react_aria_components13.ListBox,
768
702
  {
769
703
  ...props,
770
- className: (0, import_system16.cn)(
704
+ className: (0, import_system14.cn)(
771
705
  "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
772
706
  classNames2.list
773
707
  ),
@@ -782,43 +716,43 @@ _ListBox.Item = _ListBoxItem;
782
716
  _ListBox.Section = _Section;
783
717
 
784
718
  // src/Overlay/Popover.tsx
785
- var import_react18 = require("react");
786
- var import_react_aria_components9 = require("react-aria-components");
787
- var import_system20 = require("@marigold/system");
719
+ var import_react13 = require("react");
720
+ var import_react_aria_components15 = require("react-aria-components");
721
+ var import_system18 = require("@marigold/system");
788
722
 
789
723
  // src/Provider/OverlayContainerProvider.tsx
790
- var import_react17 = require("react");
724
+ var import_react12 = require("react");
791
725
  var import_ssr = require("@react-aria/ssr");
792
- var OverlayContainerContext = (0, import_react17.createContext)(void 0);
726
+ var OverlayContainerContext = (0, import_react12.createContext)(void 0);
793
727
  var OverlayContainerProvider = OverlayContainerContext.Provider;
794
728
  var usePortalContainer = () => {
795
- const portalContainer = (0, import_react17.useContext)(OverlayContainerContext);
729
+ const portalContainer = (0, import_react12.useContext)(OverlayContainerContext);
796
730
  const isSSR = (0, import_ssr.useIsSSR)();
797
731
  const portal = isSSR ? null : portalContainer ? document.getElementById(portalContainer) : document.body;
798
732
  return portal;
799
733
  };
800
734
 
801
735
  // src/Overlay/Underlay.tsx
802
- var import_react_aria_components8 = require("react-aria-components");
803
- var import_system19 = require("@marigold/system");
736
+ var import_react_aria_components14 = require("react-aria-components");
737
+ var import_system17 = require("@marigold/system");
804
738
 
805
739
  // src/Provider/index.ts
806
- var import_system18 = require("@marigold/system");
740
+ var import_system16 = require("@marigold/system");
807
741
  var import_i18n2 = require("@react-aria/i18n");
808
742
 
809
743
  // src/Provider/MarigoldProvider.tsx
810
- var import_system17 = require("@marigold/system");
811
- var import_jsx_runtime20 = require("react/jsx-runtime");
744
+ var import_system15 = require("@marigold/system");
745
+ var import_jsx_runtime19 = require("react/jsx-runtime");
812
746
  function MarigoldProvider({
813
747
  children,
814
748
  className,
815
749
  theme
816
750
  }) {
817
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_system17.ThemeProvider, { theme, className, children });
751
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_system15.ThemeProvider, { theme, className, children });
818
752
  }
819
753
 
820
754
  // src/Overlay/Underlay.tsx
821
- var import_jsx_runtime21 = require("react/jsx-runtime");
755
+ var import_jsx_runtime20 = require("react/jsx-runtime");
822
756
  var Underlay = ({
823
757
  size,
824
758
  variant,
@@ -827,7 +761,7 @@ var Underlay = ({
827
761
  keyboardDismissable,
828
762
  ...rest
829
763
  }) => {
830
- const classNames2 = (0, import_system19.useClassNames)({ component: "Underlay", size, variant });
764
+ const classNames2 = (0, import_system17.useClassNames)({ component: "Underlay", size, variant });
831
765
  const props = {
832
766
  isOpen: open,
833
767
  isDismissable: dismissable,
@@ -835,11 +769,11 @@ var Underlay = ({
835
769
  ...rest
836
770
  };
837
771
  const portal = usePortalContainer();
838
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
839
- import_react_aria_components8.ModalOverlay,
772
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
773
+ import_react_aria_components14.ModalOverlay,
840
774
  {
841
- className: ({ isEntering, isExiting }) => (0, import_system19.cn)(
842
- "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur",
775
+ className: ({ isEntering, isExiting }) => (0, import_system17.cn)(
776
+ "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur-xs",
843
777
  isEntering ? "animate-in fade-in duration-300 ease-out" : "",
844
778
  isExiting ? "animate-out fade-out duration-200 ease-in" : "",
845
779
  classNames2
@@ -853,8 +787,8 @@ var Underlay = ({
853
787
  };
854
788
 
855
789
  // src/Overlay/Popover.tsx
856
- var import_jsx_runtime22 = require("react/jsx-runtime");
857
- var _Popover = (0, import_react18.forwardRef)(
790
+ var import_jsx_runtime21 = require("react/jsx-runtime");
791
+ var _Popover = (0, import_react13.forwardRef)(
858
792
  ({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
859
793
  const props = {
860
794
  isKeyboardDismissDisabled: keyboardDismissDisabled,
@@ -862,30 +796,30 @@ var _Popover = (0, import_react18.forwardRef)(
862
796
  placement,
863
797
  ...rest
864
798
  };
865
- const classNames2 = (0, import_system20.useClassNames)({
799
+ const classNames2 = (0, import_system18.useClassNames)({
866
800
  component: "Popover",
867
801
  variant: placement,
868
802
  // Make Popover as wide as trigger element
869
- className: "min-w-[--trigger-width]"
803
+ className: "min-w-(--trigger-width)"
870
804
  });
871
- const isSmallScreen = (0, import_system20.useSmallScreen)();
805
+ const isSmallScreen = (0, import_system18.useSmallScreen)();
872
806
  const portal = usePortalContainer();
873
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
874
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Underlay, { open, variant: "modal" }),
875
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
876
- import_react_aria_components9.Popover,
807
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
808
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Underlay, { open, variant: "modal" }),
809
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
810
+ import_react_aria_components15.Popover,
877
811
  {
878
812
  ref,
879
813
  ...props,
880
- className: (0, import_system20.cn)(
881
- "!fixed !bottom-0 !left-0 !top-auto !max-h-fit w-full"
814
+ className: (0, import_system18.cn)(
815
+ "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full"
882
816
  ),
883
817
  UNSTABLE_portalContainer: portal,
884
818
  children
885
819
  }
886
820
  )
887
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
888
- import_react_aria_components9.Popover,
821
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
822
+ import_react_aria_components15.Popover,
889
823
  {
890
824
  ref,
891
825
  ...props,
@@ -900,20 +834,20 @@ var _Popover = (0, import_react18.forwardRef)(
900
834
  );
901
835
 
902
836
  // src/Autocomplete/Autocomplete.tsx
903
- var import_jsx_runtime23 = require("react/jsx-runtime");
837
+ var import_jsx_runtime22 = require("react/jsx-runtime");
904
838
  var AutocompleteInput = ({
905
839
  onSubmit,
906
840
  onClear,
907
841
  ref
908
842
  }) => {
909
- const state = import_react19.default.useContext(import_react_aria_components10.ComboBoxStateContext);
910
- const classNames2 = (0, import_system21.useClassNames)({ component: "ComboBox" });
911
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
843
+ const state = import_react14.default.useContext(import_react_aria_components16.ComboBoxStateContext);
844
+ const classNames2 = (0, import_system19.useClassNames)({ component: "ComboBox" });
845
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
912
846
  SearchInput,
913
847
  {
914
848
  ref,
915
849
  className: {
916
- action: (0, import_system21.cn)(
850
+ action: (0, import_system19.cn)(
917
851
  (state == null ? void 0 : state.inputValue) === "" ? "invisible" : "visible",
918
852
  classNames2
919
853
  )
@@ -936,7 +870,7 @@ var AutocompleteInput = ({
936
870
  }
937
871
  );
938
872
  };
939
- var _Autocomplete = (0, import_react19.forwardRef)(
873
+ var _Autocomplete = (0, import_react14.forwardRef)(
940
874
  ({
941
875
  children,
942
876
  defaultValue,
@@ -962,9 +896,9 @@ var _Autocomplete = (0, import_react19.forwardRef)(
962
896
  isRequired: required,
963
897
  ...rest
964
898
  };
965
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(FieldBase, { as: import_react_aria_components10.ComboBox, ref, ...props, children: [
966
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AutocompleteInput, { onSubmit, onClear, ref }),
967
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(_ListBox, { children }) })
899
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(FieldBase, { as: import_react_aria_components16.ComboBox, ref, ...props, children: [
900
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AutocompleteInput, { onSubmit, onClear, ref }),
901
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(_ListBox, { children }) })
968
902
  ] });
969
903
  }
970
904
  );
@@ -972,111 +906,41 @@ _Autocomplete.Option = _ListBox.Item;
972
906
  _Autocomplete.Section = _ListBox.Section;
973
907
 
974
908
  // src/ComboBox/ComboBox.tsx
975
- var import_react21 = require("react");
976
- var import_react_aria_components13 = require("react-aria-components");
909
+ var import_react19 = require("react");
910
+ var import_react_aria_components17 = require("react-aria-components");
977
911
  var import_system24 = require("@marigold/system");
978
912
 
979
- // src/Button/Button.tsx
980
- var import_react20 = require("react");
981
- var import_react_aria_components12 = require("react-aria-components");
982
- var import_system23 = require("@marigold/system");
913
+ // src/icons/ChevronDown.tsx
914
+ var import_react15 = require("react");
915
+ var import_system20 = require("@marigold/system");
916
+ var import_jsx_runtime23 = require("react/jsx-runtime");
917
+ var ChevronDown = (0, import_react15.forwardRef)(
918
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_system20.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
919
+ );
983
920
 
984
- // src/ProgressCycle/ProgressCycle.tsx
985
- var import_react_aria_components11 = require("react-aria-components");
986
- var import_system22 = require("@marigold/system");
921
+ // src/icons/ChevronLeft.tsx
922
+ var import_react16 = require("react");
923
+ var import_system21 = require("@marigold/system");
987
924
  var import_jsx_runtime24 = require("react/jsx-runtime");
988
- var ProgressCycle = ({
989
- size = "16",
990
- ...props
991
- }) => {
992
- let strokeWidth = 3;
993
- if (size <= "24") {
994
- strokeWidth = 2;
995
- } else if (size >= "32") {
996
- strokeWidth = 4;
997
- }
998
- const radius = `calc(50% - ${strokeWidth / 2}px)`;
999
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components11.ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1000
- import_system22.SVG,
1001
- {
1002
- className: "animate-rotate-spinner origin-center fill-none",
1003
- size,
1004
- "aria-hidden": "true",
1005
- role: "img",
1006
- children: [
1007
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1008
- "circle",
1009
- {
1010
- cx: "50%",
1011
- cy: "50%",
1012
- r: radius,
1013
- strokeWidth,
1014
- className: "stroke-transparent"
1015
- }
1016
- ),
1017
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1018
- "circle",
1019
- {
1020
- cx: "50%",
1021
- cy: "50%",
1022
- r: radius,
1023
- strokeWidth,
1024
- pathLength: "100",
1025
- strokeDasharray: "100 200",
1026
- strokeDashoffset: "0",
1027
- strokeLinecap: "round",
1028
- className: "animate-progress-cycle origin-center -rotate-90 stroke-gray-800"
1029
- }
1030
- )
1031
- ]
1032
- }
1033
- ) });
1034
- };
925
+ var ChevronLeft = (0, import_react16.forwardRef)(
926
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_system21.SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M16.8506 18.0244L10.8394 12L16.8506 5.97563L15 4.125L7.125 12L15 19.875L16.8506 18.0244Z" }) })
927
+ );
1035
928
 
1036
- // src/Button/Button.tsx
929
+ // src/icons/SortDown.tsx
930
+ var import_react17 = require("react");
931
+ var import_system22 = require("@marigold/system");
1037
932
  var import_jsx_runtime25 = require("react/jsx-runtime");
1038
- var _Button = (0, import_react20.forwardRef)(
1039
- ({
1040
- children,
1041
- variant,
1042
- size,
1043
- className,
1044
- disabled,
1045
- loading,
1046
- fullWidth,
1047
- ...props
1048
- }, ref) => {
1049
- const classNames2 = (0, import_system23.useClassNames)({
1050
- component: "Button",
1051
- variant,
1052
- size,
1053
- className
1054
- });
1055
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1056
- import_react_aria_components12.Button,
1057
- {
1058
- ...props,
1059
- ref,
1060
- className: (0, import_system23.cn)(
1061
- "inline-flex items-center justify-center gap-[0.5ch]",
1062
- classNames2,
1063
- fullWidth ? "w-full" : void 0,
1064
- loading && "!cursor-progress"
1065
- ),
1066
- isPending: loading,
1067
- isDisabled: disabled,
1068
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1069
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ProgressCycle, {}) }),
1070
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "invisible flex gap-[inherit]", children })
1071
- ] }) : children
1072
- }
1073
- );
1074
- }
1075
- );
933
+ var SortDown = (0, import_react17.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_system22.SVG, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" }) }));
1076
934
 
1077
- // src/ComboBox/ComboBox.tsx
935
+ // src/icons/SortUp.tsx
936
+ var import_react18 = require("react");
937
+ var import_system23 = require("@marigold/system");
1078
938
  var import_jsx_runtime26 = require("react/jsx-runtime");
1079
- var _ComboBox = (0, import_react21.forwardRef)(
939
+ var SortUp = (0, import_react18.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_system23.SVG, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" }) }));
940
+
941
+ // src/ComboBox/ComboBox.tsx
942
+ var import_jsx_runtime27 = require("react/jsx-runtime");
943
+ var _ComboBox = (0, import_react19.forwardRef)(
1080
944
  ({
1081
945
  variant,
1082
946
  size,
@@ -1101,14 +965,14 @@ var _ComboBox = (0, import_react21.forwardRef)(
1101
965
  ...rest
1102
966
  };
1103
967
  const classNames2 = (0, import_system24.useClassNames)({ component: "ComboBox", variant, size });
1104
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(FieldBase, { as: import_react_aria_components13.ComboBox, ref, ...props, children: [
1105
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
968
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(FieldBase, { as: import_react_aria_components17.ComboBox, ref, ...props, children: [
969
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1106
970
  _Input,
1107
971
  {
1108
- action: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(_Button, { className: classNames2, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChevronDown, { className: "size-4" }) })
972
+ action: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(_Button, { className: classNames2, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronDown, { className: "size-4" }) })
1109
973
  }
1110
974
  ),
1111
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(_ListBox, { children }) })
975
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(_ListBox, { children }) })
1112
976
  ] });
1113
977
  }
1114
978
  );
@@ -1117,49 +981,29 @@ _ComboBox.Section = _ListBox.Section;
1117
981
 
1118
982
  // src/Badge/Badge.tsx
1119
983
  var import_system25 = require("@marigold/system");
1120
- var import_jsx_runtime27 = require("react/jsx-runtime");
984
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1121
985
  var Badge = ({ variant, size, children, ...props }) => {
1122
986
  const classNames2 = (0, import_system25.useClassNames)({ component: "Badge", variant, size });
1123
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: classNames2, ...props, children });
987
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: classNames2, ...props, children });
1124
988
  };
1125
989
 
1126
990
  // src/Breakout/Breakout.tsx
1127
- var import_system26 = require("@marigold/system");
1128
- var import_jsx_runtime28 = require("react/jsx-runtime");
1129
- var Breakout = ({
1130
- height,
1131
- children,
1132
- alignX = "left",
1133
- alignY = "center"
1134
- }) => {
1135
- var _a, _b, _c, _d;
1136
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1137
- "div",
1138
- {
1139
- className: (0, import_system26.cn)(
1140
- "col-start-[1_!important] col-end-[-1_!important] w-full",
1141
- alignX && ((_b = (_a = import_system26.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1142
- alignY && ((_d = (_c = import_system26.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
1143
- alignX || alignY ? "flex" : "block",
1144
- "h-[--height]"
1145
- ),
1146
- style: (0, import_system26.createVar)({ height }),
1147
- children
1148
- }
1149
- );
991
+ var import_jsx_runtime29 = require("react/jsx-runtime");
992
+ var Breakout = ({ children }) => {
993
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "![grid-column:1/-1]", children });
1150
994
  };
1151
995
 
1152
996
  // src/Body/Body.tsx
1153
- var import_system27 = require("@marigold/system");
1154
- var import_jsx_runtime29 = require("react/jsx-runtime");
997
+ var import_system26 = require("@marigold/system");
998
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1155
999
  var Body = ({ children, variant, size, ...props }) => {
1156
- const classNames2 = (0, import_system27.useClassNames)({ component: "Body", variant, size });
1157
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("section", { ...props, className: classNames2, children });
1000
+ const classNames2 = (0, import_system26.useClassNames)({ component: "Body", variant, size });
1001
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("section", { ...props, className: classNames2, children });
1158
1002
  };
1159
1003
 
1160
1004
  // src/Card/Card.tsx
1161
- var import_system28 = require("@marigold/system");
1162
- var import_jsx_runtime30 = require("react/jsx-runtime");
1005
+ var import_system27 = require("@marigold/system");
1006
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1163
1007
  var Card = ({
1164
1008
  children,
1165
1009
  variant,
@@ -1174,22 +1018,22 @@ var Card = ({
1174
1018
  pr,
1175
1019
  ...props
1176
1020
  }) => {
1177
- const classNames2 = (0, import_system28.useClassNames)({ component: "Card", variant, size });
1178
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1021
+ const classNames2 = (0, import_system27.useClassNames)({ component: "Card", variant, size });
1022
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1179
1023
  "div",
1180
1024
  {
1181
1025
  ...props,
1182
- className: (0, import_system28.cn)(
1026
+ className: (0, import_system27.cn)(
1183
1027
  "flex flex-col",
1184
1028
  classNames2,
1185
- import_system28.gapSpace[space],
1186
- import_system28.paddingSpace !== void 0 && import_system28.paddingSpace[p],
1187
- import_system28.paddingSpaceX !== void 0 && import_system28.paddingSpaceX[px],
1188
- import_system28.paddingSpaceY !== void 0 && import_system28.paddingSpaceY[py],
1189
- import_system28.paddingRight !== void 0 && import_system28.paddingRight[pr],
1190
- import_system28.paddingLeft !== void 0 && import_system28.paddingLeft[pl],
1191
- import_system28.paddingBottom !== void 0 && import_system28.paddingBottom[pb],
1192
- import_system28.paddingTop !== void 0 && import_system28.paddingTop[pt]
1029
+ import_system27.gapSpace[space],
1030
+ import_system27.paddingSpace !== void 0 && import_system27.paddingSpace[p],
1031
+ import_system27.paddingSpaceX !== void 0 && import_system27.paddingSpaceX[px],
1032
+ import_system27.paddingSpaceY !== void 0 && import_system27.paddingSpaceY[py],
1033
+ import_system27.paddingRight !== void 0 && import_system27.paddingRight[pr],
1034
+ import_system27.paddingLeft !== void 0 && import_system27.paddingLeft[pl],
1035
+ import_system27.paddingBottom !== void 0 && import_system27.paddingBottom[pb],
1036
+ import_system27.paddingTop !== void 0 && import_system27.paddingTop[pt]
1193
1037
  ),
1194
1038
  children
1195
1039
  }
@@ -1197,56 +1041,56 @@ var Card = ({
1197
1041
  };
1198
1042
 
1199
1043
  // src/Center/Center.tsx
1200
- var import_system29 = require("@marigold/system");
1201
- var import_jsx_runtime31 = require("react/jsx-runtime");
1044
+ var import_system28 = require("@marigold/system");
1045
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1202
1046
  var Center = ({
1203
1047
  maxWidth = "100%",
1204
1048
  space = 0,
1205
1049
  children,
1206
1050
  ...props
1207
1051
  }) => {
1208
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1052
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1209
1053
  "div",
1210
1054
  {
1211
1055
  ...props,
1212
- className: (0, import_system29.cn)(
1213
- "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1214
- import_system29.gapSpace[space],
1215
- "max-w-[--maxWidth]"
1056
+ className: (0, import_system28.cn)(
1057
+ "ms-[auto] me-[auto] box-content flex flex-col items-center justify-center",
1058
+ import_system28.gapSpace[space],
1059
+ "max-w-(--maxWidth)"
1216
1060
  ),
1217
- style: (0, import_system29.createVar)({ maxWidth }),
1061
+ style: (0, import_system28.createVar)({ maxWidth }),
1218
1062
  children
1219
1063
  }
1220
1064
  );
1221
1065
  };
1222
1066
 
1223
1067
  // src/Checkbox/Checkbox.tsx
1224
- var import_react23 = require("react");
1225
- var import_react_aria_components15 = require("react-aria-components");
1226
- var import_system32 = require("@marigold/system");
1068
+ var import_react21 = require("react");
1069
+ var import_react_aria_components19 = require("react-aria-components");
1070
+ var import_system31 = require("@marigold/system");
1227
1071
 
1228
1072
  // src/Checkbox/CheckBoxField.tsx
1229
- var import_system30 = require("@marigold/system");
1230
- var import_jsx_runtime32 = require("react/jsx-runtime");
1073
+ var import_system29 = require("@marigold/system");
1074
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1231
1075
  var CheckboxField = ({ children, labelWidth }) => {
1232
- const classNames2 = (0, import_system30.useClassNames)({ component: "Field" });
1233
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: classNames2, children: [
1234
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-[--labelWidth]", style: (0, import_system30.createVar)({ labelWidth }) }),
1076
+ const classNames2 = (0, import_system29.useClassNames)({ component: "Field" });
1077
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: classNames2, children: [
1078
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-(--labelWidth)", style: (0, import_system29.createVar)({ labelWidth }) }),
1235
1079
  children
1236
1080
  ] });
1237
1081
  };
1238
1082
 
1239
1083
  // src/Checkbox/CheckboxGroup.tsx
1240
- var import_react_aria_components14 = require("react-aria-components");
1241
- var import_system31 = require("@marigold/system");
1084
+ var import_react_aria_components18 = require("react-aria-components");
1085
+ var import_system30 = require("@marigold/system");
1242
1086
 
1243
1087
  // src/Checkbox/Context.tsx
1244
- var import_react22 = require("react");
1245
- var CheckboxGroupContext = (0, import_react22.createContext)(null);
1246
- var useCheckboxGroupContext = () => (0, import_react22.useContext)(CheckboxGroupContext);
1088
+ var import_react20 = require("react");
1089
+ var CheckboxGroupContext = (0, import_react20.createContext)(null);
1090
+ var useCheckboxGroupContext = () => (0, import_react20.useContext)(CheckboxGroupContext);
1247
1091
 
1248
1092
  // src/Checkbox/CheckboxGroup.tsx
1249
- var import_jsx_runtime33 = require("react/jsx-runtime");
1093
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1250
1094
  var _CheckboxGroup = ({
1251
1095
  children,
1252
1096
  variant,
@@ -1259,7 +1103,7 @@ var _CheckboxGroup = ({
1259
1103
  orientation = "vertical",
1260
1104
  ...rest
1261
1105
  }) => {
1262
- const classNames2 = (0, import_system31.useClassNames)({
1106
+ const classNames2 = (0, import_system30.useClassNames)({
1263
1107
  component: "Checkbox",
1264
1108
  variant,
1265
1109
  size,
@@ -1273,24 +1117,24 @@ var _CheckboxGroup = ({
1273
1117
  isInvalid: error,
1274
1118
  ...rest
1275
1119
  };
1276
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(FieldBase, { as: import_react_aria_components14.CheckboxGroup, width, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1120
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(FieldBase, { as: import_react_aria_components18.CheckboxGroup, width, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1277
1121
  "div",
1278
1122
  {
1279
1123
  role: "presentation",
1280
1124
  "data-orientation": orientation,
1281
- className: (0, import_system31.cn)(
1125
+ className: (0, import_system30.cn)(
1282
1126
  classNames2.group,
1283
1127
  "flex items-start",
1284
1128
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
1285
1129
  ),
1286
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1130
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1287
1131
  }
1288
1132
  ) });
1289
1133
  };
1290
1134
 
1291
1135
  // src/Checkbox/Checkbox.tsx
1292
- var import_jsx_runtime34 = require("react/jsx-runtime");
1293
- var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1136
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1137
+ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { width: "12px", height: "10px", viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1294
1138
  "path",
1295
1139
  {
1296
1140
  fill: "currentColor",
@@ -1298,7 +1142,7 @@ var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { wid
1298
1142
  d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
1299
1143
  }
1300
1144
  ) });
1301
- var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { width: "12px", height: "3px", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1145
+ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { width: "12px", height: "3px", viewBox: "0 0 12 3", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1302
1146
  "path",
1303
1147
  {
1304
1148
  fill: "currentColor",
@@ -1307,11 +1151,11 @@ var IndeterminateMark = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg
1307
1151
  }
1308
1152
  ) });
1309
1153
  var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1310
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1311
1155
  "div",
1312
1156
  {
1313
1157
  "aria-hidden": "true",
1314
- className: (0, import_system32.cn)(
1158
+ className: (0, import_system31.cn)(
1315
1159
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1316
1160
  "h-4 w-4 p-px",
1317
1161
  "bg-white",
@@ -1319,11 +1163,11 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1319
1163
  className
1320
1164
  ),
1321
1165
  ...props,
1322
- children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CheckMark, {}) : null
1166
+ children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(IndeterminateMark, {}) : checked ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckMark, {}) : null
1323
1167
  }
1324
1168
  );
1325
1169
  };
1326
- var _Checkbox = (0, import_react23.forwardRef)(
1170
+ var _Checkbox = (0, import_react21.forwardRef)(
1327
1171
  ({
1328
1172
  error,
1329
1173
  disabled,
@@ -1349,23 +1193,23 @@ var _Checkbox = (0, import_react23.forwardRef)(
1349
1193
  };
1350
1194
  const { labelWidth } = useFieldGroupContext();
1351
1195
  const group = useCheckboxGroupContext();
1352
- const classNames2 = (0, import_system32.useClassNames)({
1196
+ const classNames2 = (0, import_system31.useClassNames)({
1353
1197
  component: "Checkbox",
1354
1198
  variant: variant || (group == null ? void 0 : group.variant),
1355
1199
  size: size || (group == null ? void 0 : group.size)
1356
1200
  });
1357
- const component = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1358
- import_react_aria_components15.Checkbox,
1201
+ const component = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1202
+ import_react_aria_components19.Checkbox,
1359
1203
  {
1360
1204
  ref,
1361
- className: (0, import_system32.cn)(
1205
+ className: (0, import_system31.cn)(
1362
1206
  "group/checkbox flex items-center gap-[0.5rem]",
1363
- "cursor-pointer data-[disabled]:cursor-not-allowed",
1207
+ "cursor-pointer data-disabled:cursor-not-allowed",
1364
1208
  classNames2.container
1365
1209
  ),
1366
1210
  ...props,
1367
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
1368
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1211
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
1212
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1369
1213
  Icon2,
1370
1214
  {
1371
1215
  checked: isSelected,
@@ -1373,19 +1217,19 @@ var _Checkbox = (0, import_react23.forwardRef)(
1373
1217
  className: classNames2.checkbox
1374
1218
  }
1375
1219
  ),
1376
- children ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: classNames2.label, children }) : null
1220
+ children ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: classNames2.label, children }) : null
1377
1221
  ] })
1378
1222
  }
1379
1223
  );
1380
- return !group && !!labelWidth ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CheckboxField, { labelWidth, children: component }) : component;
1224
+ return !group && !!labelWidth ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckboxField, { labelWidth, children: component }) : component;
1381
1225
  }
1382
1226
  );
1383
1227
  _Checkbox.Group = _CheckboxGroup;
1384
1228
 
1385
1229
  // src/Columns/Columns.tsx
1386
- var import_react24 = require("react");
1387
- var import_system33 = require("@marigold/system");
1388
- var import_jsx_runtime35 = require("react/jsx-runtime");
1230
+ var import_react22 = require("react");
1231
+ var import_system32 = require("@marigold/system");
1232
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1389
1233
  var Columns = ({
1390
1234
  space = 0,
1391
1235
  columns,
@@ -1394,30 +1238,30 @@ var Columns = ({
1394
1238
  children,
1395
1239
  ...props
1396
1240
  }) => {
1397
- if (import_react24.Children.count(children) !== columns.length) {
1241
+ if (import_react22.Children.count(children) !== columns.length) {
1398
1242
  throw new Error(
1399
- `Columns: expected ${columns.length} children, got ${import_react24.Children.count(
1243
+ `Columns: expected ${columns.length} children, got ${import_react22.Children.count(
1400
1244
  children
1401
1245
  )}`
1402
1246
  );
1403
1247
  }
1404
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1248
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1405
1249
  "div",
1406
1250
  {
1407
- className: (0, import_system33.cn)(
1251
+ className: (0, import_system32.cn)(
1408
1252
  "flex flex-wrap items-stretch",
1409
1253
  stretch && "h-full",
1410
- import_system33.gapSpace[space]
1254
+ import_system32.gapSpace[space]
1411
1255
  ),
1412
1256
  ...props,
1413
- children: import_react24.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1257
+ children: import_react22.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1414
1258
  "div",
1415
1259
  {
1416
- className: (0, import_system33.cn)(
1417
- columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-[--columnSize]",
1260
+ className: (0, import_system32.cn)(
1261
+ columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-(--columnSize)",
1418
1262
  "basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1419
1263
  ),
1420
- style: (0, import_system33.createVar)({
1264
+ style: (0, import_system32.createVar)({
1421
1265
  collapseAt,
1422
1266
  columnSize: columns[idx]
1423
1267
  }),
@@ -1429,88 +1273,99 @@ var Columns = ({
1429
1273
  };
1430
1274
 
1431
1275
  // src/Container/Container.tsx
1432
- var import_system34 = require("@marigold/system");
1433
- var import_jsx_runtime36 = require("react/jsx-runtime");
1434
- var content = {
1435
- small: "20ch",
1436
- medium: "45ch",
1437
- large: "60ch"
1276
+ var import_system33 = require("@marigold/system");
1277
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1278
+ var containerTextLength = {
1279
+ short: "40ch",
1280
+ default: "60ch",
1281
+ long: "80ch"
1438
1282
  };
1439
- var header = {
1440
- small: "20ch",
1441
- medium: "25ch",
1442
- large: "35ch"
1283
+ var containerHeadlineLength = {
1284
+ short: "20ch",
1285
+ default: "25ch",
1286
+ long: "35ch"
1287
+ };
1288
+ var gridColsAlign = {
1289
+ left: "grid-cols-[minmax(0,max-content)_1fr_1fr]",
1290
+ center: "grid-cols-[1fr_minmax(0,max-content)_1fr]",
1291
+ right: " grid-cols-[1fr_1fr_minmax(0,max-content)]"
1292
+ };
1293
+ var gridColumn = {
1294
+ left: "*:col-[1]",
1295
+ center: "*:col-[2]",
1296
+ right: "*:col-[3]"
1443
1297
  };
1444
1298
  var Container = ({
1445
- contentType = "content",
1446
- size = "medium",
1299
+ contentLength = "default",
1447
1300
  align = "left",
1448
1301
  alignItems = "none",
1302
+ space = 0,
1449
1303
  children,
1450
1304
  ...props
1451
- }) => {
1452
- const maxWidth = contentType === "content" ? content[size] : header[size];
1453
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1454
- "div",
1455
- {
1456
- ...props,
1457
- className: (0, import_system34.cn)(
1458
- "grid",
1459
- import_system34.placeItems[alignItems],
1460
- import_system34.gridColsAlign[align],
1461
- import_system34.gridColumn[align]
1462
- ),
1463
- style: (0, import_system34.createVar)({ maxWidth }),
1464
- children
1465
- }
1466
- );
1467
- };
1305
+ }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1306
+ "div",
1307
+ {
1308
+ ...props,
1309
+ className: (0, import_system33.cn)(
1310
+ "grid",
1311
+ import_system33.placeItems[alignItems],
1312
+ gridColsAlign[align],
1313
+ gridColumn[align],
1314
+ import_system33.gapSpace[space]
1315
+ ),
1316
+ style: (0, import_system33.createVar)({
1317
+ maxTextWidth: containerTextLength[contentLength],
1318
+ maxHeadlineWidth: containerHeadlineLength[contentLength]
1319
+ }),
1320
+ children
1321
+ }
1322
+ );
1468
1323
 
1469
1324
  // src/Dialog/Dialog.tsx
1470
- var import_react27 = require("react");
1471
- var import_react_aria_components20 = require("react-aria-components");
1472
- var import_system40 = require("@marigold/system");
1325
+ var import_react25 = require("react");
1326
+ var import_react_aria_components24 = require("react-aria-components");
1327
+ var import_system39 = require("@marigold/system");
1473
1328
 
1474
1329
  // src/Dialog/DialogActions.tsx
1475
- var import_system35 = require("@marigold/system");
1476
- var import_jsx_runtime37 = require("react/jsx-runtime");
1330
+ var import_system34 = require("@marigold/system");
1331
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1477
1332
  var DialogActions = ({ variant, size, children }) => {
1478
- const classNames2 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size });
1479
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_system35.cn)("[grid-area:actions]", classNames2.actions), children });
1333
+ const classNames2 = (0, import_system34.useClassNames)({ component: "Dialog", variant, size });
1334
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_system34.cn)("[grid-area:actions]", classNames2.actions), children });
1480
1335
  };
1481
1336
 
1482
1337
  // src/Dialog/DialogContent.tsx
1483
- var import_system36 = require("@marigold/system");
1484
- var import_jsx_runtime38 = require("react/jsx-runtime");
1338
+ var import_system35 = require("@marigold/system");
1339
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1485
1340
  var DialogContent = ({
1486
1341
  variant,
1487
1342
  size,
1488
1343
  children
1489
1344
  }) => {
1490
- const classNames2 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size });
1491
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: (0, import_system36.cn)("[grid-area:content]", classNames2.content), children });
1345
+ const classNames2 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size });
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_system35.cn)("[grid-area:content]", classNames2.content), children });
1492
1347
  };
1493
1348
 
1494
1349
  // src/Dialog/DialogTitle.tsx
1495
- var import_system39 = require("@marigold/system");
1350
+ var import_system38 = require("@marigold/system");
1496
1351
 
1497
1352
  // src/Header/Header.tsx
1498
- var import_react_aria_components16 = require("react-aria-components");
1499
- var import_system37 = require("@marigold/system");
1500
- var import_jsx_runtime39 = require("react/jsx-runtime");
1353
+ var import_react_aria_components20 = require("react-aria-components");
1354
+ var import_system36 = require("@marigold/system");
1355
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1501
1356
  var _Header = ({ variant, size, ...props }) => {
1502
- const classNames2 = (0, import_system37.useClassNames)({
1357
+ const classNames2 = (0, import_system36.useClassNames)({
1503
1358
  component: "Header",
1504
1359
  variant,
1505
1360
  size
1506
1361
  });
1507
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_aria_components16.Header, { className: classNames2, ...props, children: props.children });
1362
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components20.Header, { className: classNames2, ...props, children: props.children });
1508
1363
  };
1509
-
1510
- // src/Headline/Headline.tsx
1511
- var import_react_aria_components17 = require("react-aria-components");
1512
- var import_system38 = require("@marigold/system");
1513
- var import_jsx_runtime40 = require("react/jsx-runtime");
1364
+
1365
+ // src/Headline/Headline.tsx
1366
+ var import_react_aria_components21 = require("react-aria-components");
1367
+ var import_system37 = require("@marigold/system");
1368
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1514
1369
  var _Headline = ({
1515
1370
  variant,
1516
1371
  size,
@@ -1520,67 +1375,64 @@ var _Headline = ({
1520
1375
  level = "1",
1521
1376
  ...props
1522
1377
  }) => {
1523
- const theme = (0, import_system38.useTheme)();
1524
- const classNames2 = (0, import_system38.useClassNames)({
1378
+ const classNames2 = (0, import_system37.useClassNames)({
1525
1379
  component: "Headline",
1526
1380
  variant,
1527
1381
  size: size != null ? size : `level-${level}`
1528
1382
  });
1529
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1530
- import_react_aria_components17.Heading,
1383
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1384
+ import_react_aria_components21.Heading,
1531
1385
  {
1532
1386
  level: Number(level),
1533
1387
  ...props,
1534
- className: (0, import_system38.cn)(classNames2, "text-[--color]", import_system38.textAlign[align]),
1535
- style: (0, import_system38.createVar)({
1536
- color: color && (0, import_system38.getColor)(
1537
- theme,
1538
- color,
1539
- color
1540
- /* fallback */
1541
- )
1542
- }),
1388
+ className: (0, import_system37.cn)(
1389
+ classNames2,
1390
+ "max-w-(--maxHeadlineWidth)",
1391
+ // possibly set by a <Container>
1392
+ import_system37.textAlign[align]
1393
+ ),
1394
+ style: { color: color && `var(--color-${color})` },
1543
1395
  children
1544
1396
  }
1545
1397
  );
1546
1398
  };
1547
1399
 
1548
1400
  // src/Dialog/DialogTitle.tsx
1549
- var import_jsx_runtime41 = require("react/jsx-runtime");
1401
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1550
1402
  var DialogTitle = ({
1551
1403
  level = "2",
1552
1404
  variant,
1553
1405
  size,
1554
1406
  children
1555
1407
  }) => {
1556
- const classNames2 = (0, import_system39.useClassNames)({ component: "Dialog", variant, size });
1557
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(_Header, { className: (0, import_system39.cn)("[grid-area:title]", classNames2.header), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(_Headline, { slot: "title", level, children }) });
1408
+ const classNames2 = (0, import_system38.useClassNames)({ component: "Dialog", variant, size });
1409
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(_Header, { className: (0, import_system38.cn)("[grid-area:title]", classNames2.header), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(_Headline, { slot: "title", level, children }) });
1558
1410
  };
1559
1411
 
1560
1412
  // src/Dialog/DialogTrigger.tsx
1561
- var import_react26 = require("react");
1562
- var import_react_aria_components19 = require("react-aria-components");
1413
+ var import_react24 = require("react");
1414
+ var import_react_aria_components23 = require("react-aria-components");
1563
1415
 
1564
1416
  // src/Overlay/Modal.tsx
1565
- var import_react25 = require("react");
1566
- var import_react_aria_components18 = require("react-aria-components");
1567
- var import_jsx_runtime42 = require("react/jsx-runtime");
1568
- var _Modal = (0, import_react25.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1417
+ var import_react23 = require("react");
1418
+ var import_react_aria_components22 = require("react-aria-components");
1419
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1420
+ var _Modal = (0, import_react23.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1569
1421
  const props = {
1570
1422
  isOpen: open,
1571
1423
  isDismissable: dismissable,
1572
1424
  isKeyboardDismissDisabled: keyboardDismissable,
1573
1425
  ...rest
1574
1426
  };
1575
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1427
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1576
1428
  Underlay,
1577
1429
  {
1578
1430
  dismissable,
1579
1431
  keyboardDismissable,
1580
1432
  open,
1581
1433
  variant: "modal",
1582
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1583
- import_react_aria_components18.Modal,
1434
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1435
+ import_react_aria_components22.Modal,
1584
1436
  {
1585
1437
  ref,
1586
1438
  className: "relative flex w-full justify-center",
@@ -1593,7 +1445,7 @@ var _Modal = (0, import_react25.forwardRef)(({ open, dismissable, keyboardDismis
1593
1445
  });
1594
1446
 
1595
1447
  // src/Dialog/DialogTrigger.tsx
1596
- var import_jsx_runtime43 = require("react/jsx-runtime");
1448
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1597
1449
  var _DialogTrigger = ({
1598
1450
  open,
1599
1451
  dismissable,
@@ -1605,15 +1457,15 @@ var _DialogTrigger = ({
1605
1457
  isOpen: open,
1606
1458
  ...rest
1607
1459
  };
1608
- const children = import_react26.Children.toArray(props.children);
1460
+ const children = import_react24.Children.toArray(props.children);
1609
1461
  const [dialogTrigger, dialog] = children;
1610
1462
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1611
1463
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1612
1464
  if (isNonModal)
1613
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components19.DialogTrigger, { ...props, children: props.children });
1614
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react_aria_components19.DialogTrigger, { ...props, children: [
1465
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components23.DialogTrigger, { ...props, children: props.children });
1466
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components23.DialogTrigger, { ...props, children: [
1615
1467
  hasDialogTrigger && dialogTrigger,
1616
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1468
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1617
1469
  _Modal,
1618
1470
  {
1619
1471
  dismissable,
@@ -1625,19 +1477,19 @@ var _DialogTrigger = ({
1625
1477
  };
1626
1478
 
1627
1479
  // src/Dialog/Dialog.tsx
1628
- var import_jsx_runtime44 = require("react/jsx-runtime");
1480
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1629
1481
  var CloseButton = ({ className }) => {
1630
- const ctx = (0, import_react27.useContext)(import_react_aria_components20.OverlayTriggerStateContext);
1631
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "absolute right-4 top-4 ml-4", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1482
+ const ctx = (0, import_react25.useContext)(import_react_aria_components24.OverlayTriggerStateContext);
1483
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute top-4 right-4 ml-4", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1632
1484
  "button",
1633
1485
  {
1634
- className: (0, import_system40.cn)(
1486
+ className: (0, import_system39.cn)(
1635
1487
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1636
1488
  className
1637
1489
  ),
1638
1490
  onClick: ctx == null ? void 0 : ctx.close,
1639
1491
  slot: "dismiss-button",
1640
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1492
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1641
1493
  "path",
1642
1494
  {
1643
1495
  fillRule: "evenodd",
@@ -1656,23 +1508,23 @@ var _Dialog = ({
1656
1508
  ...props
1657
1509
  }) => {
1658
1510
  var _a;
1659
- const classNames2 = (0, import_system40.useClassNames)({ component: "Dialog", variant, size });
1660
- const state = (0, import_react27.useContext)(import_react_aria_components20.OverlayTriggerStateContext);
1511
+ const classNames2 = (0, import_system39.useClassNames)({ component: "Dialog", variant, size });
1512
+ const state = (0, import_react25.useContext)(import_react_aria_components24.OverlayTriggerStateContext);
1661
1513
  const children = typeof props.children === "function" ? props.children({
1662
1514
  close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
1663
1515
  }
1664
1516
  }) : props.children;
1665
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1666
- import_react_aria_components20.Dialog,
1517
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1518
+ import_react_aria_components24.Dialog,
1667
1519
  {
1668
1520
  ...props,
1669
- className: (0, import_system40.cn)(
1670
- "relative outline-none [&>*:not(:last-child)]:mb-4",
1521
+ className: (0, import_system39.cn)(
1522
+ "relative outline-hidden [&>*:not(:last-child)]:mb-4",
1671
1523
  "grid [grid-template-areas:'title'_'content'_'actions']",
1672
1524
  classNames2.container
1673
1525
  ),
1674
1526
  children: [
1675
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CloseButton, { className: classNames2.closeButton }),
1527
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CloseButton, { className: classNames2.closeButton }),
1676
1528
  children
1677
1529
  ]
1678
1530
  }
@@ -1684,34 +1536,34 @@ _Dialog.Content = DialogContent;
1684
1536
  _Dialog.Actions = DialogActions;
1685
1537
 
1686
1538
  // src/Divider/Divider.tsx
1687
- var import_react_aria_components21 = require("react-aria-components");
1688
- var import_system41 = require("@marigold/system");
1689
- var import_jsx_runtime45 = require("react/jsx-runtime");
1539
+ var import_react_aria_components25 = require("react-aria-components");
1540
+ var import_system40 = require("@marigold/system");
1541
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1690
1542
  var _Divider = ({ variant, ...props }) => {
1691
- const classNames2 = (0, import_system41.useClassNames)({ component: "Divider", variant });
1692
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria_components21.Separator, { className: (0, import_system41.cn)("border-none", classNames2), ...props });
1543
+ const classNames2 = (0, import_system40.useClassNames)({ component: "Divider", variant });
1544
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_aria_components25.Separator, { className: (0, import_system40.cn)("border-none", classNames2), ...props });
1693
1545
  };
1694
1546
 
1695
1547
  // src/Footer/Footer.tsx
1696
- var import_system42 = require("@marigold/system");
1697
- var import_jsx_runtime46 = require("react/jsx-runtime");
1548
+ var import_system41 = require("@marigold/system");
1549
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1698
1550
  var Footer = ({ children, variant, size, ...props }) => {
1699
- const classNames2 = (0, import_system42.useClassNames)({ component: "Footer", variant, size });
1700
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("footer", { ...props, className: classNames2, children });
1551
+ const classNames2 = (0, import_system41.useClassNames)({ component: "Footer", variant, size });
1552
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("footer", { ...props, className: classNames2, children });
1701
1553
  };
1702
1554
 
1703
1555
  // src/Form/Form.tsx
1704
- var import_react_aria_components22 = require("react-aria-components");
1556
+ var import_react_aria_components26 = require("react-aria-components");
1705
1557
 
1706
1558
  // src/Grid/Grid.tsx
1707
- var import_system43 = require("@marigold/system");
1559
+ var import_system42 = require("@marigold/system");
1708
1560
 
1709
1561
  // src/Grid/GridArea.tsx
1710
- var import_jsx_runtime47 = require("react/jsx-runtime");
1711
- var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { style: { gridArea: name }, children });
1562
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1563
+ var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { style: { gridArea: name }, children });
1712
1564
 
1713
1565
  // src/Grid/Grid.tsx
1714
- var import_jsx_runtime48 = require("react/jsx-runtime");
1566
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1715
1567
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
1716
1568
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
1717
1569
  var Grid = ({
@@ -1723,10 +1575,10 @@ var Grid = ({
1723
1575
  space = 0,
1724
1576
  ...props
1725
1577
  }) => {
1726
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1578
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1727
1579
  "div",
1728
1580
  {
1729
- className: (0, import_system43.cn)("grid", import_system43.gapSpace[space], import_system43.height[height]),
1581
+ className: (0, import_system42.cn)("grid", import_system42.gapSpace[space], import_system42.height[height]),
1730
1582
  style: {
1731
1583
  gridTemplateAreas: parseGridAreas(areas),
1732
1584
  gridTemplateColumns: parseTemplateValue(columns),
@@ -1740,8 +1592,8 @@ var Grid = ({
1740
1592
  Grid.Area = GridArea;
1741
1593
 
1742
1594
  // src/Image/Image.tsx
1743
- var import_system44 = require("@marigold/system");
1744
- var import_jsx_runtime49 = require("react/jsx-runtime");
1595
+ var import_system43 = require("@marigold/system");
1596
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1745
1597
  var Image = ({
1746
1598
  variant,
1747
1599
  size,
@@ -1749,25 +1601,25 @@ var Image = ({
1749
1601
  position = "none",
1750
1602
  ...props
1751
1603
  }) => {
1752
- const classNames2 = (0, import_system44.useClassNames)({ component: "Image", variant, size });
1753
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1604
+ const classNames2 = (0, import_system43.useClassNames)({ component: "Image", variant, size });
1605
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1754
1606
  "img",
1755
1607
  {
1756
1608
  ...props,
1757
1609
  alt: props.alt,
1758
- className: (0, import_system44.cn)(
1610
+ className: (0, import_system43.cn)(
1759
1611
  fit !== "none" && "h-full w-full",
1760
1612
  classNames2,
1761
- import_system44.objectFit[fit],
1762
- import_system44.objectPosition[position]
1613
+ import_system43.objectFit[fit],
1614
+ import_system43.objectPosition[position]
1763
1615
  )
1764
1616
  }
1765
1617
  );
1766
1618
  };
1767
1619
 
1768
1620
  // src/Inline/Inline.tsx
1769
- var import_system45 = require("@marigold/system");
1770
- var import_jsx_runtime50 = require("react/jsx-runtime");
1621
+ var import_system44 = require("@marigold/system");
1622
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1771
1623
  var Inline = ({
1772
1624
  space = 0,
1773
1625
  alignX,
@@ -1776,15 +1628,15 @@ var Inline = ({
1776
1628
  ...props
1777
1629
  }) => {
1778
1630
  var _a, _b, _c, _d;
1779
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1631
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1780
1632
  "div",
1781
1633
  {
1782
1634
  ...props,
1783
- className: (0, import_system45.cn)(
1635
+ className: (0, import_system44.cn)(
1784
1636
  "flex flex-wrap",
1785
- import_system45.gapSpace[space],
1786
- alignX && ((_b = (_a = import_system45.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1787
- alignY && ((_d = (_c = import_system45.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1637
+ import_system44.gapSpace[space],
1638
+ alignX && ((_b = (_a = import_system44.alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1639
+ alignY && ((_d = (_c = import_system44.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1788
1640
  ),
1789
1641
  children
1790
1642
  }
@@ -1792,51 +1644,51 @@ var Inline = ({
1792
1644
  };
1793
1645
 
1794
1646
  // src/DateField/DateField.tsx
1795
- var import_react28 = require("react");
1796
- var import_react_aria_components25 = require("react-aria-components");
1647
+ var import_react26 = require("react");
1648
+ var import_react_aria_components29 = require("react-aria-components");
1797
1649
 
1798
1650
  // src/DateField/DateInput.tsx
1799
- var import_react_aria_components24 = require("react-aria-components");
1800
- var import_system47 = require("@marigold/system");
1651
+ var import_react_aria_components28 = require("react-aria-components");
1652
+ var import_system46 = require("@marigold/system");
1801
1653
 
1802
1654
  // src/DateField/DateSegment.tsx
1803
- var import_react_aria_components23 = require("react-aria-components");
1804
- var import_system46 = require("@marigold/system");
1805
- var import_jsx_runtime51 = require("react/jsx-runtime");
1655
+ var import_react_aria_components27 = require("react-aria-components");
1656
+ var import_system45 = require("@marigold/system");
1657
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1806
1658
  var _DateSegment = ({ segment, ...props }) => {
1807
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1808
- import_react_aria_components23.DateSegment,
1659
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
1660
+ import_react_aria_components27.DateSegment,
1809
1661
  {
1810
1662
  ...props,
1811
1663
  segment,
1812
1664
  style: {
1813
1665
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1814
1666
  },
1815
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
1816
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1667
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
1668
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
1817
1669
  "span",
1818
1670
  {
1819
1671
  "aria-hidden": "true",
1820
- className: (0, import_system46.cn)(
1672
+ className: (0, import_system45.cn)(
1821
1673
  isPlaceholder ? "visible block" : "invisible hidden",
1822
1674
  "pointer-events-none w-full text-center"
1823
1675
  ),
1824
1676
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1825
1677
  }
1826
1678
  ),
1827
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1679
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1828
1680
  ] })
1829
1681
  }
1830
1682
  );
1831
1683
  };
1832
1684
 
1833
1685
  // src/DateField/DateInput.tsx
1834
- var import_jsx_runtime52 = require("react/jsx-runtime");
1686
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1835
1687
  var _DateInput = ({ variant, size, action, ...props }) => {
1836
- const classNames2 = (0, import_system47.useClassNames)({ component: "DateField", variant, size });
1837
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_react_aria_components24.Group, { className: classNames2.field, children: [
1838
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_aria_components24.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1839
- action ? action : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
1688
+ const classNames2 = (0, import_system46.useClassNames)({ component: "DateField", variant, size });
1689
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react_aria_components28.Group, { className: classNames2.field, children: [
1690
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_aria_components28.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1691
+ action ? action : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1840
1692
  "svg",
1841
1693
  {
1842
1694
  "data-testid": "action",
@@ -1844,15 +1696,15 @@ var _DateInput = ({ variant, size, action, ...props }) => {
1844
1696
  viewBox: "0 0 24 24",
1845
1697
  width: 24,
1846
1698
  height: 24,
1847
- children: /* @__PURE__ */ (0, import_jsx_runtime52.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" })
1699
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.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" })
1848
1700
  }
1849
1701
  ) })
1850
1702
  ] });
1851
1703
  };
1852
1704
 
1853
1705
  // src/DateField/DateField.tsx
1854
- var import_jsx_runtime53 = require("react/jsx-runtime");
1855
- var _DateField = (0, import_react28.forwardRef)(
1706
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1707
+ var _DateField = (0, import_react26.forwardRef)(
1856
1708
  ({
1857
1709
  variant,
1858
1710
  size,
@@ -1870,46 +1722,46 @@ var _DateField = (0, import_react28.forwardRef)(
1870
1722
  isRequired: required,
1871
1723
  ...rest
1872
1724
  };
1873
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1725
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1874
1726
  FieldBase,
1875
1727
  {
1876
- as: import_react_aria_components25.DateField,
1728
+ as: import_react_aria_components29.DateField,
1877
1729
  variant,
1878
1730
  size,
1879
1731
  ref,
1880
1732
  ...props,
1881
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(_DateInput, { action })
1733
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(_DateInput, { action })
1882
1734
  }
1883
1735
  );
1884
1736
  }
1885
1737
  );
1886
1738
 
1887
1739
  // src/Calendar/Calendar.tsx
1888
- var import_react33 = require("react");
1889
- var import_react_aria_components32 = require("react-aria-components");
1890
- var import_system52 = require("@marigold/system");
1740
+ var import_react31 = require("react");
1741
+ var import_react_aria_components36 = require("react-aria-components");
1742
+ var import_system51 = require("@marigold/system");
1891
1743
 
1892
1744
  // src/Calendar/CalendarGrid.tsx
1893
- var import_react_aria_components27 = require("react-aria-components");
1894
- var import_system49 = require("@marigold/system");
1745
+ var import_react_aria_components31 = require("react-aria-components");
1746
+ var import_system48 = require("@marigold/system");
1895
1747
 
1896
1748
  // src/Calendar/CalendarGridHeader.tsx
1897
1749
  var import_date = require("@internationalized/date");
1898
- var import_react29 = require("react");
1899
- var import_react_aria_components26 = require("react-aria-components");
1750
+ var import_react27 = require("react");
1751
+ var import_react_aria_components30 = require("react-aria-components");
1900
1752
  var import_calendar = require("@react-aria/calendar");
1901
1753
  var import_i18n3 = require("@react-aria/i18n");
1902
- var import_system48 = require("@marigold/system");
1903
- var import_jsx_runtime54 = require("react/jsx-runtime");
1754
+ var import_system47 = require("@marigold/system");
1755
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1904
1756
  function CalendarGridHeader(props) {
1905
- const state = (0, import_react29.useContext)(import_react_aria_components26.CalendarStateContext);
1757
+ const state = (0, import_react27.useContext)(import_react_aria_components30.CalendarStateContext);
1906
1758
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
1907
1759
  const { locale } = (0, import_i18n3.useLocale)();
1908
1760
  const dayFormatter = (0, import_i18n3.useDateFormatter)({
1909
1761
  weekday: "short",
1910
1762
  timeZone: state.timeZone
1911
1763
  });
1912
- const weekDays = (0, import_react29.useMemo)(() => {
1764
+ const weekDays = (0, import_react27.useMemo)(() => {
1913
1765
  const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
1914
1766
  return [...new Array(7).keys()].map((index) => {
1915
1767
  const date = weekStart.add({ days: index });
@@ -1917,21 +1769,21 @@ function CalendarGridHeader(props) {
1917
1769
  return dayFormatter.format(dateDay);
1918
1770
  });
1919
1771
  }, [locale, state.timeZone, dayFormatter]);
1920
- const classNames2 = (0, import_system48.useClassNames)({ component: "Calendar" });
1921
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1772
+ const classNames2 = (0, import_system47.useClassNames)({ component: "Calendar" });
1773
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1922
1774
  }
1923
1775
 
1924
1776
  // src/Calendar/CalendarGrid.tsx
1925
- var import_jsx_runtime55 = require("react/jsx-runtime");
1777
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1926
1778
  var _CalendarGrid = () => {
1927
- const classNames2 = (0, import_system49.useClassNames)({ component: "Calendar" });
1928
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react_aria_components27.CalendarGrid, { className: classNames2.calendarGrid, children: [
1929
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(CalendarGridHeader, {}),
1930
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components27.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1931
- import_react_aria_components27.CalendarCell,
1779
+ const classNames2 = (0, import_system48.useClassNames)({ component: "Calendar" });
1780
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react_aria_components31.CalendarGrid, { className: classNames2.calendarGrid, children: [
1781
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CalendarGridHeader, {}),
1782
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components31.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
1783
+ import_react_aria_components31.CalendarCell,
1932
1784
  {
1933
1785
  date,
1934
- className: (0, import_system49.cn)(
1786
+ className: (0, import_system48.cn)(
1935
1787
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1936
1788
  classNames2.calendarCell
1937
1789
  )
@@ -1941,9 +1793,9 @@ var _CalendarGrid = () => {
1941
1793
  };
1942
1794
 
1943
1795
  // src/Calendar/CalendarListBox.tsx
1944
- var import_react30 = require("react");
1945
- var import_react_aria_components28 = require("react-aria-components");
1946
- var import_system50 = require("@marigold/system");
1796
+ var import_react28 = require("react");
1797
+ var import_react_aria_components32 = require("react-aria-components");
1798
+ var import_system49 = require("@marigold/system");
1947
1799
 
1948
1800
  // src/Calendar/useFormattedMonths.tsx
1949
1801
  var import_i18n4 = require("@react-aria/i18n");
@@ -1962,66 +1814,66 @@ function useFormattedMonths(timeZone, focusedDate) {
1962
1814
  }
1963
1815
 
1964
1816
  // src/Calendar/CalendarListBox.tsx
1965
- var import_jsx_runtime56 = require("react/jsx-runtime");
1817
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1966
1818
  function CalendarListBox({
1967
1819
  type,
1968
1820
  isDisabled,
1969
1821
  setSelectedDropdown
1970
1822
  }) {
1971
- const state = (0, import_react30.useContext)(import_react_aria_components28.CalendarStateContext);
1823
+ const state = (0, import_react28.useContext)(import_react_aria_components32.CalendarStateContext);
1972
1824
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1973
1825
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1974
- const { select: selectClassNames } = (0, import_system50.useClassNames)({ component: "Select" });
1975
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
1826
+ const { select: selectClassNames } = (0, import_system49.useClassNames)({ component: "Select" });
1827
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
1976
1828
  "button",
1977
1829
  {
1978
1830
  disabled: isDisabled,
1979
1831
  onClick: () => setSelectedDropdown(type),
1980
- className: (0, import_system50.cn)(buttonStyles, selectClassNames),
1832
+ className: (0, import_system49.cn)(buttonStyles, selectClassNames),
1981
1833
  "data-testid": type,
1982
1834
  children: [
1983
1835
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1984
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ChevronDown, {})
1836
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ChevronDown, {})
1985
1837
  ]
1986
1838
  }
1987
1839
  );
1988
1840
  }
1989
1841
 
1990
1842
  // src/Calendar/MonthControls.tsx
1991
- var import_react_aria_components29 = require("react-aria-components");
1992
- var import_system51 = require("@marigold/system");
1993
- var import_jsx_runtime57 = require("react/jsx-runtime");
1843
+ var import_react_aria_components33 = require("react-aria-components");
1844
+ var import_system50 = require("@marigold/system");
1845
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1994
1846
  function MonthControls() {
1995
- const classNames2 = (0, import_system51.useClassNames)({ component: "Calendar" });
1996
- const buttonClassNames = (0, import_system51.useClassNames)({ component: "Button" });
1997
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
1847
+ const classNames2 = (0, import_system50.useClassNames)({ component: "Calendar" });
1848
+ const buttonClassNames = (0, import_system50.useClassNames)({ component: "Button" });
1849
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
1998
1850
  "div",
1999
1851
  {
2000
- className: (0, import_system51.cn)(
1852
+ className: (0, import_system50.cn)(
2001
1853
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2002
1854
  classNames2.calendarControllers
2003
1855
  ),
2004
1856
  children: [
2005
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2006
- import_react_aria_components29.Button,
1857
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
1858
+ import_react_aria_components33.Button,
2007
1859
  {
2008
- className: (0, import_system51.cn)(
1860
+ className: (0, import_system50.cn)(
2009
1861
  "inline-flex items-center justify-center gap-[0.5ch]",
2010
1862
  buttonClassNames
2011
1863
  ),
2012
1864
  slot: "previous",
2013
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ChevronLeft, {})
1865
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChevronLeft, {})
2014
1866
  }
2015
1867
  ),
2016
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
2017
- import_react_aria_components29.Button,
1868
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
1869
+ import_react_aria_components33.Button,
2018
1870
  {
2019
- className: (0, import_system51.cn)(
1871
+ className: (0, import_system50.cn)(
2020
1872
  "inline-flex items-center justify-center gap-[0.5ch]",
2021
1873
  buttonClassNames
2022
1874
  ),
2023
1875
  slot: "next",
2024
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ChevronRight, {})
1876
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ChevronRight, {})
2025
1877
  }
2026
1878
  )
2027
1879
  ]
@@ -2031,24 +1883,24 @@ function MonthControls() {
2031
1883
  var MonthControls_default = MonthControls;
2032
1884
 
2033
1885
  // src/Calendar/MonthListBox.tsx
2034
- var import_react31 = require("react");
2035
- var import_react_aria_components30 = require("react-aria-components");
2036
- var import_jsx_runtime58 = require("react/jsx-runtime");
1886
+ var import_react29 = require("react");
1887
+ var import_react_aria_components34 = require("react-aria-components");
1888
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2037
1889
  var MonthListBox = ({ setSelectedDropdown }) => {
2038
- const state = (0, import_react31.useContext)(import_react_aria_components30.CalendarStateContext);
1890
+ const state = (0, import_react29.useContext)(import_react_aria_components34.CalendarStateContext);
2039
1891
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
2040
1892
  let onChange = (index) => {
2041
1893
  let value = Number(index) + 1;
2042
1894
  let date = state.focusedDate.set({ month: value });
2043
1895
  state.setFocusedDate(date);
2044
1896
  };
2045
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
1897
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2046
1898
  "ul",
2047
1899
  {
2048
1900
  "data-testid": "monthOptions",
2049
1901
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2050
1902
  children: months.map((month, index) => {
2051
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
1903
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2052
1904
  _Button,
2053
1905
  {
2054
1906
  slot: "previous",
@@ -2069,12 +1921,12 @@ var MonthListBox = ({ setSelectedDropdown }) => {
2069
1921
  var MonthListBox_default = MonthListBox;
2070
1922
 
2071
1923
  // src/Calendar/YearListBox.tsx
2072
- var import_react32 = require("react");
2073
- var import_react_aria_components31 = require("react-aria-components");
1924
+ var import_react30 = require("react");
1925
+ var import_react_aria_components35 = require("react-aria-components");
2074
1926
  var import_i18n5 = require("@react-aria/i18n");
2075
- var import_jsx_runtime59 = require("react/jsx-runtime");
1927
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2076
1928
  var YearListBox = ({ setSelectedDropdown }) => {
2077
- const state = (0, import_react32.useContext)(import_react_aria_components31.CalendarStateContext);
1929
+ const state = (0, import_react30.useContext)(import_react_aria_components35.CalendarStateContext);
2078
1930
  const years = [];
2079
1931
  let formatter = (0, import_i18n5.useDateFormatter)({
2080
1932
  year: "numeric",
@@ -2087,8 +1939,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
2087
1939
  formatted: formatter.format(date.toDate(state.timeZone))
2088
1940
  });
2089
1941
  }
2090
- const activeButtonRef = (0, import_react32.useRef)(null);
2091
- (0, import_react32.useEffect)(() => {
1942
+ const activeButtonRef = (0, import_react30.useRef)(null);
1943
+ (0, import_react30.useEffect)(() => {
2092
1944
  if (activeButtonRef.current) {
2093
1945
  const activeButton = activeButtonRef.current;
2094
1946
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -2102,19 +1954,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
2102
1954
  let date = years[index].value;
2103
1955
  state.setFocusedDate(date);
2104
1956
  };
2105
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1957
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2106
1958
  "ul",
2107
1959
  {
2108
1960
  "data-testid": "yearOptions",
2109
1961
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2110
1962
  children: years.map((year, index) => {
2111
1963
  const isActive = +year.formatted === state.focusedDate.year;
2112
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1964
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2113
1965
  "div",
2114
1966
  {
2115
1967
  ref: isActive ? activeButtonRef : null,
2116
1968
  style: { height: "100%", width: "100%" },
2117
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1969
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2118
1970
  _Button,
2119
1971
  {
2120
1972
  slot: "previous",
@@ -2139,7 +1991,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
2139
1991
  var YearListBox_default = YearListBox;
2140
1992
 
2141
1993
  // src/Calendar/Calendar.tsx
2142
- var import_jsx_runtime60 = require("react/jsx-runtime");
1994
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2143
1995
  var _Calendar = ({
2144
1996
  disabled,
2145
1997
  readOnly,
@@ -2154,24 +2006,24 @@ var _Calendar = ({
2154
2006
  isDateUnavailable: dateUnavailable,
2155
2007
  ...rest
2156
2008
  };
2157
- const classNames2 = (0, import_system52.useClassNames)({ component: "Calendar" });
2158
- const [selectedDropdown, setSelectedDropdown] = (0, import_react33.useState)();
2009
+ const classNames2 = (0, import_system51.useClassNames)({ component: "Calendar" });
2010
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react31.useState)();
2159
2011
  const ViewMap = {
2160
- month: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MonthListBox_default, { setSelectedDropdown }),
2161
- year: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(YearListBox_default, { setSelectedDropdown })
2012
+ month: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MonthListBox_default, { setSelectedDropdown }),
2013
+ year: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(YearListBox_default, { setSelectedDropdown })
2162
2014
  };
2163
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2164
- import_react_aria_components32.Calendar,
2015
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2016
+ import_react_aria_components36.Calendar,
2165
2017
  {
2166
- className: (0, import_system52.cn)(
2167
- "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
2018
+ className: (0, import_system51.cn)(
2019
+ "flex min-h-[350px] w-[360px] flex-col rounded-xs p-4",
2168
2020
  classNames2.calendar
2169
2021
  ),
2170
2022
  ...props,
2171
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
2172
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
2173
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex w-full gap-4", children: [
2174
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2023
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
2024
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
2025
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex w-full gap-4", children: [
2026
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2175
2027
  CalendarListBox,
2176
2028
  {
2177
2029
  type: "month",
@@ -2179,7 +2031,7 @@ var _Calendar = ({
2179
2031
  setSelectedDropdown
2180
2032
  }
2181
2033
  ),
2182
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2034
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2183
2035
  CalendarListBox,
2184
2036
  {
2185
2037
  type: "year",
@@ -2188,20 +2040,20 @@ var _Calendar = ({
2188
2040
  }
2189
2041
  )
2190
2042
  ] }),
2191
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MonthControls_default, {})
2043
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MonthControls_default, {})
2192
2044
  ] }),
2193
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_CalendarGrid, {})
2045
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_CalendarGrid, {})
2194
2046
  ] })
2195
2047
  }
2196
2048
  );
2197
2049
  };
2198
2050
 
2199
2051
  // src/DatePicker/DatePicker.tsx
2200
- var import_react34 = __toESM(require("react"));
2201
- var import_react_aria_components33 = require("react-aria-components");
2202
- var import_system53 = require("@marigold/system");
2203
- var import_jsx_runtime61 = require("react/jsx-runtime");
2204
- var _DatePicker = import_react34.default.forwardRef(
2052
+ var import_react32 = __toESM(require("react"));
2053
+ var import_react_aria_components37 = require("react-aria-components");
2054
+ var import_system52 = require("@marigold/system");
2055
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2056
+ var _DatePicker = import_react32.default.forwardRef(
2205
2057
  ({
2206
2058
  dateUnavailable,
2207
2059
  disabled,
@@ -2224,30 +2076,30 @@ var _DatePicker = import_react34.default.forwardRef(
2224
2076
  granularity,
2225
2077
  ...rest
2226
2078
  };
2227
- const classNames2 = (0, import_system53.useClassNames)({
2079
+ const classNames2 = (0, import_system52.useClassNames)({
2228
2080
  component: "DatePicker",
2229
2081
  size,
2230
2082
  variant
2231
2083
  });
2232
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2084
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
2233
2085
  FieldBase,
2234
2086
  {
2235
- as: import_react_aria_components33.DatePicker,
2087
+ as: import_react_aria_components37.DatePicker,
2236
2088
  variant,
2237
2089
  size,
2238
2090
  ...props,
2239
2091
  ref,
2240
2092
  children: [
2241
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2093
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2242
2094
  _DateInput,
2243
2095
  {
2244
- action: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2096
+ action: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2245
2097
  _Button,
2246
2098
  {
2247
2099
  size: "small",
2248
2100
  disabled,
2249
2101
  className: classNames2.button,
2250
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2102
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2251
2103
  "svg",
2252
2104
  {
2253
2105
  "data-testid": "action",
@@ -2255,14 +2107,14 @@ var _DatePicker = import_react34.default.forwardRef(
2255
2107
  width: 24,
2256
2108
  height: 24,
2257
2109
  fill: "currentColor",
2258
- children: /* @__PURE__ */ (0, import_jsx_runtime61.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" })
2110
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.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" })
2259
2111
  }
2260
2112
  )
2261
2113
  }
2262
2114
  ) })
2263
2115
  }
2264
2116
  ),
2265
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Calendar, { disabled }) })
2117
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(_Calendar, { disabled }) })
2266
2118
  ]
2267
2119
  }
2268
2120
  );
@@ -2270,53 +2122,53 @@ var _DatePicker = import_react34.default.forwardRef(
2270
2122
  );
2271
2123
 
2272
2124
  // src/Inset/Inset.tsx
2273
- var import_system54 = require("@marigold/system");
2274
- var import_jsx_runtime62 = require("react/jsx-runtime");
2275
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2125
+ var import_system53 = require("@marigold/system");
2126
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2127
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2276
2128
  "div",
2277
2129
  {
2278
- className: (0, import_system54.cn)(
2279
- space && import_system54.paddingSpace[space],
2280
- !space && spaceX && import_system54.paddingSpaceX[spaceX],
2281
- !space && spaceY && import_system54.paddingSpaceY[spaceY]
2130
+ className: (0, import_system53.cn)(
2131
+ space && import_system53.paddingSpace[space],
2132
+ !space && spaceX && import_system53.paddingSpaceX[spaceX],
2133
+ !space && spaceY && import_system53.paddingSpaceY[spaceY]
2282
2134
  ),
2283
2135
  children
2284
2136
  }
2285
2137
  );
2286
2138
 
2287
2139
  // src/Link/Link.tsx
2288
- var import_react35 = require("react");
2289
- var import_react_aria_components34 = require("react-aria-components");
2290
- var import_system55 = require("@marigold/system");
2291
- var import_jsx_runtime63 = require("react/jsx-runtime");
2292
- var _Link = (0, import_react35.forwardRef)(
2140
+ var import_react33 = require("react");
2141
+ var import_react_aria_components38 = require("react-aria-components");
2142
+ var import_system54 = require("@marigold/system");
2143
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2144
+ var _Link = (0, import_react33.forwardRef)(
2293
2145
  ({ variant, size, disabled, children, ...props }, ref) => {
2294
- const classNames2 = (0, import_system55.useClassNames)({
2146
+ const classNames2 = (0, import_system54.useClassNames)({
2295
2147
  component: "Link",
2296
2148
  variant,
2297
2149
  size
2298
2150
  });
2299
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_aria_components34.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2151
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria_components38.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2300
2152
  }
2301
2153
  );
2302
2154
 
2303
2155
  // src/List/List.tsx
2304
- var import_system56 = require("@marigold/system");
2156
+ var import_system55 = require("@marigold/system");
2305
2157
 
2306
2158
  // src/List/Context.ts
2307
- var import_react36 = require("react");
2308
- var ListContext = (0, import_react36.createContext)({});
2309
- var useListContext = () => (0, import_react36.useContext)(ListContext);
2159
+ var import_react34 = require("react");
2160
+ var ListContext = (0, import_react34.createContext)({});
2161
+ var useListContext = () => (0, import_react34.useContext)(ListContext);
2310
2162
 
2311
2163
  // src/List/ListItem.tsx
2312
- var import_jsx_runtime64 = require("react/jsx-runtime");
2164
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2313
2165
  var ListItem = ({ children, ...props }) => {
2314
2166
  const { classNames: classNames2 } = useListContext();
2315
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("li", { ...props, className: classNames2, children });
2167
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("li", { ...props, className: classNames2, children });
2316
2168
  };
2317
2169
 
2318
2170
  // src/List/List.tsx
2319
- var import_jsx_runtime65 = require("react/jsx-runtime");
2171
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2320
2172
  var List = ({
2321
2173
  as = "ul",
2322
2174
  children,
@@ -2325,38 +2177,38 @@ var List = ({
2325
2177
  ...props
2326
2178
  }) => {
2327
2179
  const Component = as;
2328
- const classNames2 = (0, import_system56.useClassNames)({ component: "List", variant, size });
2329
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2180
+ const classNames2 = (0, import_system55.useClassNames)({ component: "List", variant, size });
2181
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2330
2182
  };
2331
2183
  List.Item = ListItem;
2332
2184
 
2333
2185
  // src/Menu/Menu.tsx
2334
- var import_react_aria_components37 = require("react-aria-components");
2335
- var import_system59 = require("@marigold/system");
2186
+ var import_react_aria_components41 = require("react-aria-components");
2187
+ var import_system58 = require("@marigold/system");
2336
2188
 
2337
2189
  // src/Menu/MenuItem.tsx
2338
- var import_react_aria_components35 = require("react-aria-components");
2339
- var import_system57 = require("@marigold/system");
2340
- var import_jsx_runtime66 = require("react/jsx-runtime");
2190
+ var import_react_aria_components39 = require("react-aria-components");
2191
+ var import_system56 = require("@marigold/system");
2192
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2341
2193
  var _MenuItem = ({ children, ...props }) => {
2342
- const classNames2 = (0, import_system57.useClassNames)({ component: "Menu" });
2343
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components35.MenuItem, { ...props, className: classNames2.item, children });
2194
+ const classNames2 = (0, import_system56.useClassNames)({ component: "Menu" });
2195
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_aria_components39.MenuItem, { ...props, className: classNames2.item, children });
2344
2196
  };
2345
2197
 
2346
2198
  // src/Menu/MenuSection.tsx
2347
- var import_react_aria_components36 = require("react-aria-components");
2348
- var import_system58 = require("@marigold/system");
2349
- var import_jsx_runtime67 = require("react/jsx-runtime");
2199
+ var import_react_aria_components40 = require("react-aria-components");
2200
+ var import_system57 = require("@marigold/system");
2201
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2350
2202
  var _MenuSection = ({ children, title, ...props }) => {
2351
- const className = (0, import_system58.useClassNames)({ component: "Menu" });
2352
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react_aria_components36.MenuSection, { ...props, children: [
2353
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(_Header, { className: className.section, children: title }),
2203
+ const className = (0, import_system57.useClassNames)({ component: "Menu" });
2204
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react_aria_components40.MenuSection, { ...props, children: [
2205
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Header, { className: className.section, children: title }),
2354
2206
  children
2355
2207
  ] });
2356
2208
  };
2357
2209
 
2358
2210
  // src/Menu/Menu.tsx
2359
- var import_jsx_runtime68 = require("react/jsx-runtime");
2211
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2360
2212
  var _Menu = ({
2361
2213
  children,
2362
2214
  label,
@@ -2368,70 +2220,70 @@ var _Menu = ({
2368
2220
  "aria-label": ariaLabel,
2369
2221
  ...props
2370
2222
  }) => {
2371
- const classNames2 = (0, import_system59.useClassNames)({ component: "Menu", variant, size });
2372
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_react_aria_components37.MenuTrigger, { ...props, children: [
2373
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
2374
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children }) })
2223
+ const classNames2 = (0, import_system58.useClassNames)({ component: "Menu", variant, size });
2224
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components41.MenuTrigger, { ...props, children: [
2225
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
2226
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components41.Menu, { ...props, className: classNames2.container, children }) })
2375
2227
  ] });
2376
2228
  };
2377
2229
  _Menu.Item = _MenuItem;
2378
2230
  _Menu.Section = _MenuSection;
2379
2231
 
2380
2232
  // src/Menu/ActionMenu.tsx
2381
- var import_react_aria_components38 = require("react-aria-components");
2382
- var import_system60 = require("@marigold/system");
2383
- var import_jsx_runtime69 = require("react/jsx-runtime");
2233
+ var import_react_aria_components42 = require("react-aria-components");
2234
+ var import_system59 = require("@marigold/system");
2235
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2384
2236
  var ActionMenu = ({
2385
2237
  variant,
2386
2238
  size,
2387
2239
  disabled,
2388
2240
  ...props
2389
2241
  }) => {
2390
- const classNames2 = (0, import_system60.useClassNames)({ component: "Menu", variant, size });
2391
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components38.MenuTrigger, { children: [
2392
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_system60.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime69.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" }) }) }),
2393
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components38.Menu, { ...props, className: classNames2.container, children: props.children }) })
2242
+ const classNames2 = (0, import_system59.useClassNames)({ component: "Menu", variant, size });
2243
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react_aria_components42.MenuTrigger, { children: [
2244
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_system59.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime70.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" }) }) }),
2245
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_aria_components42.Menu, { ...props, className: classNames2.container, children: props.children }) })
2394
2246
  ] });
2395
2247
  };
2396
2248
 
2397
2249
  // src/SectionMessage/SectionMessage.tsx
2398
- var import_react38 = require("react");
2399
- var import_button2 = require("@react-aria/button");
2400
- var import_system63 = require("@marigold/system");
2250
+ var import_react36 = require("react");
2251
+ var import_button = require("@react-aria/button");
2252
+ var import_system62 = require("@marigold/system");
2401
2253
 
2402
2254
  // src/SectionMessage/Context.tsx
2403
- var import_react37 = require("react");
2404
- var SectionMessageContext = (0, import_react37.createContext)({});
2405
- var useSectionMessageContext = () => (0, import_react37.useContext)(SectionMessageContext);
2255
+ var import_react35 = require("react");
2256
+ var SectionMessageContext = (0, import_react35.createContext)({});
2257
+ var useSectionMessageContext = () => (0, import_react35.useContext)(SectionMessageContext);
2406
2258
 
2407
2259
  // src/SectionMessage/SectionMessageContent.tsx
2408
- var import_system61 = require("@marigold/system");
2409
- var import_jsx_runtime70 = require("react/jsx-runtime");
2260
+ var import_system60 = require("@marigold/system");
2261
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2410
2262
  var SectionMessageContent = ({
2411
2263
  children
2412
2264
  }) => {
2413
2265
  const { classNames: classNames2 } = useSectionMessageContext();
2414
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: (0, import_system61.cn)("[grid-area:content]", classNames2.content), children });
2266
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: (0, import_system60.cn)("[grid-area:content]", classNames2.content), children });
2415
2267
  };
2416
2268
 
2417
2269
  // src/SectionMessage/SectionMessageTitle.tsx
2418
- var import_system62 = require("@marigold/system");
2419
- var import_jsx_runtime71 = require("react/jsx-runtime");
2270
+ var import_system61 = require("@marigold/system");
2271
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2420
2272
  var SectionMessageTitle = ({ children }) => {
2421
2273
  const { classNames: classNames2 } = useSectionMessageContext();
2422
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: (0, import_system62.cn)("[grid-area:title]", classNames2.title), children });
2274
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: (0, import_system61.cn)("[grid-area:title]", classNames2.title), children });
2423
2275
  };
2424
2276
 
2425
2277
  // src/SectionMessage/SectionMessage.tsx
2426
- var import_jsx_runtime72 = require("react/jsx-runtime");
2278
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2427
2279
  var icons = {
2428
- success: () => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2280
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2429
2281
  "svg",
2430
2282
  {
2431
2283
  xmlns: "http://www.w3.org/2000/svg",
2432
2284
  viewBox: "0 0 24 24",
2433
2285
  fill: "currentColor",
2434
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2286
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2435
2287
  "path",
2436
2288
  {
2437
2289
  fillRule: "evenodd",
@@ -2441,13 +2293,13 @@ var icons = {
2441
2293
  )
2442
2294
  }
2443
2295
  ),
2444
- info: () => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2296
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2445
2297
  "svg",
2446
2298
  {
2447
2299
  xmlns: "http://www.w3.org/2000/svg",
2448
2300
  viewBox: "0 0 24 24",
2449
2301
  fill: "currentColor",
2450
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2302
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2451
2303
  "path",
2452
2304
  {
2453
2305
  fillRule: "evenodd",
@@ -2457,13 +2309,13 @@ var icons = {
2457
2309
  )
2458
2310
  }
2459
2311
  ),
2460
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2312
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2461
2313
  "svg",
2462
2314
  {
2463
2315
  xmlns: "http://www.w3.org/2000/svg",
2464
2316
  viewBox: "0 0 24 24",
2465
2317
  fill: "currentColor",
2466
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2318
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2467
2319
  "path",
2468
2320
  {
2469
2321
  fillRule: "evenodd",
@@ -2473,13 +2325,13 @@ var icons = {
2473
2325
  )
2474
2326
  }
2475
2327
  ),
2476
- error: () => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2328
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2477
2329
  "svg",
2478
2330
  {
2479
2331
  xmlns: "http://www.w3.org/2000/svg",
2480
2332
  viewBox: "0 0 24 24",
2481
2333
  fill: "currentColor",
2482
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2334
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2483
2335
  "path",
2484
2336
  {
2485
2337
  fillRule: "evenodd",
@@ -2499,16 +2351,16 @@ var SectionMessage = ({
2499
2351
  onCloseChange,
2500
2352
  ...props
2501
2353
  }) => {
2502
- const buttonRef = (0, import_react38.useRef)(null);
2503
- const classNames2 = (0, import_system63.useClassNames)({
2354
+ const buttonRef = (0, import_react36.useRef)(null);
2355
+ const classNames2 = (0, import_system62.useClassNames)({
2504
2356
  component: "SectionMessage",
2505
2357
  variant,
2506
2358
  size
2507
2359
  });
2508
2360
  const Icon4 = icons[variant];
2509
- const [internalVisible, setInternalVisible] = (0, import_react38.useState)(true);
2361
+ const [internalVisible, setInternalVisible] = (0, import_react36.useState)(true);
2510
2362
  const isCurrentlyVisible = close != null ? close : internalVisible;
2511
- const { buttonProps } = (0, import_button2.useButton)(props, buttonRef);
2363
+ const { buttonProps } = (0, import_button.useButton)(props, buttonRef);
2512
2364
  const handleClose = () => {
2513
2365
  onCloseChange && close && onCloseChange(close);
2514
2366
  if (close === void 0) {
@@ -2516,24 +2368,24 @@ var SectionMessage = ({
2516
2368
  }
2517
2369
  };
2518
2370
  if (!isCurrentlyVisible) return null;
2519
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
2371
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2520
2372
  "div",
2521
2373
  {
2522
2374
  role: variant === "error" ? "alert" : void 0,
2523
2375
  ...props,
2524
- className: (0, import_system63.cn)("grid auto-rows-min", classNames2.container),
2376
+ className: (0, import_system62.cn)("grid auto-rows-min", classNames2.container),
2525
2377
  children: [
2526
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2378
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2527
2379
  "div",
2528
2380
  {
2529
- className: (0, import_system63.cn)(
2381
+ className: (0, import_system62.cn)(
2530
2382
  "h-5 w-5 self-center [grid-area:icon]",
2531
2383
  classNames2.icon
2532
2384
  ),
2533
- children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Icon4, {})
2385
+ children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon4, {})
2534
2386
  }
2535
2387
  ),
2536
- closeButton && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2388
+ closeButton && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2537
2389
  "button",
2538
2390
  {
2539
2391
  ...buttonProps,
@@ -2541,7 +2393,7 @@ var SectionMessage = ({
2541
2393
  "aria-label": "close",
2542
2394
  className: "h-5 w-5 cursor-pointer border-none p-0 leading-normal outline-0 [grid-area:close]",
2543
2395
  onClick: handleClose,
2544
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2396
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2545
2397
  "path",
2546
2398
  {
2547
2399
  fillRule: "evenodd",
@@ -2560,17 +2412,17 @@ SectionMessage.Title = SectionMessageTitle;
2560
2412
  SectionMessage.Content = SectionMessageContent;
2561
2413
 
2562
2414
  // src/Multiselect/Multiselect.tsx
2563
- var import_react39 = require("react");
2415
+ var import_react37 = require("react");
2564
2416
  var import_data2 = require("@react-stately/data");
2565
2417
 
2566
2418
  // src/TagGroup/Tag.tsx
2567
- var import_react_aria_components40 = require("react-aria-components");
2568
- var import_system65 = require("@marigold/system");
2419
+ var import_react_aria_components44 = require("react-aria-components");
2420
+ var import_system64 = require("@marigold/system");
2569
2421
 
2570
2422
  // src/TagGroup/TagGroup.tsx
2571
- var import_react_aria_components39 = require("react-aria-components");
2572
- var import_system64 = require("@marigold/system");
2573
- var import_jsx_runtime73 = require("react/jsx-runtime");
2423
+ var import_react_aria_components43 = require("react-aria-components");
2424
+ var import_system63 = require("@marigold/system");
2425
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2574
2426
  var _TagGroup = ({
2575
2427
  width,
2576
2428
  items,
@@ -2580,9 +2432,9 @@ var _TagGroup = ({
2580
2432
  size,
2581
2433
  ...rest
2582
2434
  }) => {
2583
- const classNames2 = (0, import_system64.useClassNames)({ component: "Tag", variant, size });
2584
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(FieldBase, { as: import_react_aria_components39.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2585
- import_react_aria_components39.TagList,
2435
+ const classNames2 = (0, import_system63.useClassNames)({ component: "Tag", variant, size });
2436
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(FieldBase, { as: import_react_aria_components43.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2437
+ import_react_aria_components43.TagList,
2586
2438
  {
2587
2439
  items,
2588
2440
  className: classNames2.listItems,
@@ -2593,25 +2445,25 @@ var _TagGroup = ({
2593
2445
  };
2594
2446
 
2595
2447
  // src/TagGroup/Tag.tsx
2596
- var import_jsx_runtime74 = require("react/jsx-runtime");
2448
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2597
2449
  var CloseButton2 = ({ className }) => {
2598
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react_aria_components40.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime74.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" }) }) });
2450
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_aria_components44.Button, { slot: "remove", className, 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" }) }) });
2599
2451
  };
2600
2452
  var _Tag = ({ variant, size, children, ...props }) => {
2601
2453
  let textValue = typeof children === "string" ? children : void 0;
2602
- const classNames2 = (0, import_system65.useClassNames)({ component: "Tag", variant, size });
2603
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2604
- import_react_aria_components40.Tag,
2454
+ const classNames2 = (0, import_system64.useClassNames)({ component: "Tag", variant, size });
2455
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2456
+ import_react_aria_components44.Tag,
2605
2457
  {
2606
2458
  textValue,
2607
2459
  ...props,
2608
- className: (0, import_system65.cn)("data-[selection-mode]:cursor-pointer", classNames2.tag),
2609
- children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
2460
+ className: (0, import_system64.cn)("data-selection-mode:cursor-pointer", classNames2.tag),
2461
+ children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
2610
2462
  children,
2611
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2463
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2612
2464
  CloseButton2,
2613
2465
  {
2614
- className: (0, import_system65.cn)("flex items-center", classNames2.closeButton)
2466
+ className: (0, import_system64.cn)("flex items-center", classNames2.closeButton)
2615
2467
  }
2616
2468
  )
2617
2469
  ] })
@@ -2621,14 +2473,14 @@ var _Tag = ({ variant, size, children, ...props }) => {
2621
2473
  _Tag.Group = _TagGroup;
2622
2474
 
2623
2475
  // src/Multiselect/Multiselect.tsx
2624
- var import_jsx_runtime75 = require("react/jsx-runtime");
2625
- var Item2 = (_) => null;
2476
+ var import_jsx_runtime76 = require("react/jsx-runtime");
2477
+ var Item = (_) => null;
2626
2478
  var Multiselect = ({
2627
2479
  label,
2628
2480
  children,
2629
2481
  ...props
2630
2482
  }) => {
2631
- const items = import_react39.Children.map(children, ({ props: props2 }) => props2);
2483
+ const items = import_react37.Children.map(children, ({ props: props2 }) => props2);
2632
2484
  const list = (0, import_data2.useListData)({
2633
2485
  initialItems: items,
2634
2486
  initialSelectedKeys: props.defaultSelectedKeys,
@@ -2647,7 +2499,7 @@ var Multiselect = ({
2647
2499
  }
2648
2500
  list.setSelectedKeys(next);
2649
2501
  };
2650
- const [value, setValue] = (0, import_react39.useState)("");
2502
+ const [value, setValue] = (0, import_react37.useState)("");
2651
2503
  const selectItem = (key) => {
2652
2504
  if (list.selectedKeys !== "all") {
2653
2505
  const next = list.selectedKeys.add(key);
@@ -2659,18 +2511,18 @@ var Multiselect = ({
2659
2511
  }, 0);
2660
2512
  input.focus();
2661
2513
  };
2662
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
2663
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2514
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
2515
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2664
2516
  _Tag.Group,
2665
2517
  {
2666
2518
  items: selected,
2667
2519
  allowsRemoving: true,
2668
2520
  onRemove: setUnselected,
2669
2521
  renderEmptyState: () => null,
2670
- children: (item) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(_Tag, { id: item.id, children: item.children }, item.id)
2522
+ children: (item) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Tag, { id: item.id, children: item.children }, item.id)
2671
2523
  }
2672
2524
  ),
2673
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2525
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2674
2526
  _ComboBox,
2675
2527
  {
2676
2528
  value,
@@ -2680,23 +2532,23 @@ var Multiselect = ({
2680
2532
  disabled: unselected.length === 0,
2681
2533
  placeholder: unselected.length === 0 ? "All items selected" : "",
2682
2534
  ...props,
2683
- children: unselected.map((item) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(_ComboBox.Option, { id: item.id, children: item.children }, item.id))
2535
+ children: unselected.map((item) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_ComboBox.Option, { id: item.id, children: item.children }, item.id))
2684
2536
  }
2685
2537
  )
2686
2538
  ] });
2687
2539
  };
2688
- Multiselect.Item = Item2;
2540
+ Multiselect.Item = Item;
2689
2541
 
2690
2542
  // src/NumberField/NumberField.tsx
2691
- var import_react40 = require("react");
2692
- var import_react_aria_components42 = require("react-aria-components");
2693
- var import_system67 = require("@marigold/system");
2543
+ var import_react38 = require("react");
2544
+ var import_react_aria_components46 = require("react-aria-components");
2545
+ var import_system66 = require("@marigold/system");
2694
2546
 
2695
2547
  // src/NumberField/StepButton.tsx
2696
- var import_react_aria_components41 = require("react-aria-components");
2697
- var import_system66 = require("@marigold/system");
2698
- var import_jsx_runtime76 = require("react/jsx-runtime");
2699
- 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)(
2548
+ var import_react_aria_components45 = require("react-aria-components");
2549
+ var import_system65 = require("@marigold/system");
2550
+ var import_jsx_runtime77 = require("react/jsx-runtime");
2551
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2700
2552
  "path",
2701
2553
  {
2702
2554
  fillRule: "evenodd",
@@ -2704,7 +2556,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 1
2704
2556
  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"
2705
2557
  }
2706
2558
  ) });
2707
- 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)(
2559
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2708
2560
  "path",
2709
2561
  {
2710
2562
  fillRule: "evenodd",
@@ -2714,25 +2566,25 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width:
2714
2566
  ) });
2715
2567
  var _StepButton = ({ direction, className, ...props }) => {
2716
2568
  const Icon4 = direction === "up" ? Plus : Minus;
2717
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2718
- import_react_aria_components41.Button,
2569
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2570
+ import_react_aria_components45.Button,
2719
2571
  {
2720
- className: (0, import_system66.cn)(
2572
+ className: (0, import_system65.cn)(
2721
2573
  [
2722
2574
  "flex items-center justify-center",
2723
- "cursor-pointer data-[disabled]:cursor-not-allowed"
2575
+ "cursor-pointer data-disabled:cursor-not-allowed"
2724
2576
  ],
2725
2577
  className
2726
2578
  ),
2727
2579
  ...props,
2728
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Icon4, {})
2580
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon4, {})
2729
2581
  }
2730
2582
  );
2731
2583
  };
2732
2584
 
2733
2585
  // src/NumberField/NumberField.tsx
2734
- var import_jsx_runtime77 = require("react/jsx-runtime");
2735
- var _NumberField = (0, import_react40.forwardRef)(
2586
+ var import_jsx_runtime78 = require("react/jsx-runtime");
2587
+ var _NumberField = (0, import_react38.forwardRef)(
2736
2588
  ({
2737
2589
  variant,
2738
2590
  size,
@@ -2743,7 +2595,7 @@ var _NumberField = (0, import_react40.forwardRef)(
2743
2595
  hideStepper,
2744
2596
  ...rest
2745
2597
  }, ref) => {
2746
- const classNames2 = (0, import_system67.useClassNames)({
2598
+ const classNames2 = (0, import_system66.useClassNames)({
2747
2599
  component: "NumberField",
2748
2600
  size,
2749
2601
  variant
@@ -2756,8 +2608,8 @@ var _NumberField = (0, import_react40.forwardRef)(
2756
2608
  ...rest
2757
2609
  };
2758
2610
  const showStepper = !hideStepper;
2759
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(FieldBase, { as: import_react_aria_components42.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react_aria_components42.Group, { className: (0, import_system67.cn)("flex items-stretch", classNames2.group), children: [
2760
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2611
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(FieldBase, { as: import_react_aria_components46.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react_aria_components46.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames2.group), children: [
2612
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2761
2613
  _StepButton,
2762
2614
  {
2763
2615
  className: classNames2.stepper,
@@ -2765,7 +2617,7 @@ var _NumberField = (0, import_react40.forwardRef)(
2765
2617
  slot: "decrement"
2766
2618
  }
2767
2619
  ),
2768
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2620
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2769
2621
  _Input,
2770
2622
  {
2771
2623
  ref,
@@ -2774,7 +2626,7 @@ var _NumberField = (0, import_react40.forwardRef)(
2774
2626
  className: classNames2.input
2775
2627
  }
2776
2628
  ) }),
2777
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2629
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2778
2630
  _StepButton,
2779
2631
  {
2780
2632
  className: classNames2.stepper,
@@ -2787,12 +2639,12 @@ var _NumberField = (0, import_react40.forwardRef)(
2787
2639
  );
2788
2640
 
2789
2641
  // src/Pagination/Pagination.tsx
2790
- var import_react44 = require("react");
2642
+ var import_react42 = require("react");
2791
2643
 
2792
2644
  // src/Pagination/Ellipsis.tsx
2793
- var import_jsx_runtime78 = require("react/jsx-runtime");
2645
+ var import_jsx_runtime79 = require("react/jsx-runtime");
2794
2646
  var Ellipsis = () => {
2795
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2647
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
2796
2648
  "span",
2797
2649
  {
2798
2650
  className: "text-text-base flex h-8 w-8 items-center justify-center",
@@ -2803,16 +2655,16 @@ var Ellipsis = () => {
2803
2655
  };
2804
2656
 
2805
2657
  // src/Pagination/NavigationButton.tsx
2806
- var import_react41 = __toESM(require("react"));
2807
- var import_button3 = require("@react-aria/button");
2808
- var import_system68 = require("@marigold/system");
2809
- var import_jsx_runtime79 = require("react/jsx-runtime");
2658
+ var import_react39 = __toESM(require("react"));
2659
+ var import_button2 = require("@react-aria/button");
2660
+ var import_system67 = require("@marigold/system");
2661
+ var import_jsx_runtime80 = require("react/jsx-runtime");
2810
2662
  var NavigationButton = (props) => {
2811
- const ref = import_react41.default.useRef(null);
2812
- const classNames2 = (0, import_system68.useClassNames)({
2663
+ const ref = import_react39.default.useRef(null);
2664
+ const classNames2 = (0, import_system67.useClassNames)({
2813
2665
  component: "Pagination"
2814
2666
  });
2815
- let { buttonProps } = (0, import_button3.useButton)(props, ref);
2667
+ let { buttonProps } = (0, import_button2.useButton)(props, ref);
2816
2668
  let {
2817
2669
  children,
2818
2670
  isSelected,
@@ -2822,20 +2674,20 @@ var NavigationButton = (props) => {
2822
2674
  position,
2823
2675
  ...rest
2824
2676
  } = props;
2825
- (0, import_react41.useEffect)(() => {
2677
+ (0, import_react39.useEffect)(() => {
2826
2678
  if (registerRef) {
2827
2679
  registerRef(ref.current);
2828
2680
  return () => registerRef(null);
2829
2681
  }
2830
2682
  }, [registerRef]);
2831
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
2683
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
2832
2684
  "button",
2833
2685
  {
2834
2686
  ref,
2835
2687
  ...buttonProps,
2836
2688
  ...rest,
2837
2689
  disabled: isDisabled,
2838
- className: (0, import_system68.cn)(classNames2, controlLabel && "w-24 px-2"),
2690
+ className: (0, import_system67.cn)(classNames2, controlLabel && "w-24 px-2"),
2839
2691
  "data-selected": isSelected,
2840
2692
  children: [
2841
2693
  position === "left" && children,
@@ -2846,25 +2698,25 @@ var NavigationButton = (props) => {
2846
2698
  );
2847
2699
  };
2848
2700
 
2849
- // src/Pagination/PageButton.tsx
2850
- var import_react42 = require("react");
2851
- var import_button4 = require("@react-aria/button");
2852
- var import_system69 = require("@marigold/system");
2853
- var import_jsx_runtime80 = require("react/jsx-runtime");
2701
+ // src/Pagination/PageButton.tsx
2702
+ var import_react40 = require("react");
2703
+ var import_button3 = require("@react-aria/button");
2704
+ var import_system68 = require("@marigold/system");
2705
+ var import_jsx_runtime81 = require("react/jsx-runtime");
2854
2706
  var PageButton = (props) => {
2855
- const ref = (0, import_react42.useRef)(null);
2856
- const classNames2 = (0, import_system69.useClassNames)({
2707
+ const ref = (0, import_react40.useRef)(null);
2708
+ const classNames2 = (0, import_system68.useClassNames)({
2857
2709
  component: "Pagination"
2858
2710
  });
2859
- let { buttonProps } = (0, import_button4.useButton)(props, ref);
2711
+ let { buttonProps } = (0, import_button3.useButton)(props, ref);
2860
2712
  let { page, selected, registerRef, isDisabled } = props;
2861
- (0, import_react42.useEffect)(() => {
2713
+ (0, import_react40.useEffect)(() => {
2862
2714
  if (registerRef) {
2863
2715
  registerRef(ref.current);
2864
2716
  return () => registerRef(null);
2865
2717
  }
2866
2718
  }, [registerRef]);
2867
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
2719
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2868
2720
  "button",
2869
2721
  {
2870
2722
  ref,
@@ -2881,7 +2733,7 @@ var PageButton = (props) => {
2881
2733
  };
2882
2734
 
2883
2735
  // src/Pagination/useKeyboardNavigation.tsx
2884
- var import_react43 = require("react");
2736
+ var import_react41 = require("react");
2885
2737
  var import_interactions = require("@react-aria/interactions");
2886
2738
  var NavigationTypes = {
2887
2739
  Prev: "prev",
@@ -2895,14 +2747,14 @@ var useKeyboardNavigation = ({
2895
2747
  onChange = () => {
2896
2748
  }
2897
2749
  }) => {
2898
- const containerRef = (0, import_react43.useRef)(null);
2899
- const [focusedItem, setFocusedItem] = (0, import_react43.useState)({
2750
+ const containerRef = (0, import_react41.useRef)(null);
2751
+ const [focusedItem, setFocusedItem] = (0, import_react41.useState)({
2900
2752
  type: "page",
2901
2753
  value: page
2902
2754
  });
2903
- const navigationItems = (0, import_react43.useRef)([]);
2904
- const buttonRefs = (0, import_react43.useRef)(/* @__PURE__ */ new Map());
2905
- const isItemDisabled = (0, import_react43.useCallback)(
2755
+ const navigationItems = (0, import_react41.useRef)([]);
2756
+ const buttonRefs = (0, import_react41.useRef)(/* @__PURE__ */ new Map());
2757
+ const isItemDisabled = (0, import_react41.useCallback)(
2906
2758
  (item) => {
2907
2759
  if (item.type === NavigationTypes.Prev) return page <= 1;
2908
2760
  if (item.type === NavigationTypes.Next) return page >= totalPages;
@@ -2910,7 +2762,7 @@ var useKeyboardNavigation = ({
2910
2762
  },
2911
2763
  [page, totalPages]
2912
2764
  );
2913
- const findNextFocusableItem = (0, import_react43.useCallback)(
2765
+ const findNextFocusableItem = (0, import_react41.useCallback)(
2914
2766
  (current, direction) => {
2915
2767
  const items = navigationItems.current.filter(
2916
2768
  (item) => !isItemDisabled(item)
@@ -2926,7 +2778,7 @@ var useKeyboardNavigation = ({
2926
2778
  },
2927
2779
  [isItemDisabled, page]
2928
2780
  );
2929
- const focusItem = (0, import_react43.useCallback)(
2781
+ const focusItem = (0, import_react41.useCallback)(
2930
2782
  (item) => {
2931
2783
  if (isItemDisabled(item)) return;
2932
2784
  const key = `${item.type}-${item.value}`;
@@ -2973,7 +2825,7 @@ var useKeyboardNavigation = ({
2973
2825
  }
2974
2826
  }
2975
2827
  });
2976
- const registerRef = (0, import_react43.useCallback)(
2828
+ const registerRef = (0, import_react41.useCallback)(
2977
2829
  (type, value, ref) => {
2978
2830
  const key = `${type}-${value}`;
2979
2831
  if (ref) {
@@ -2984,7 +2836,7 @@ var useKeyboardNavigation = ({
2984
2836
  },
2985
2837
  []
2986
2838
  );
2987
- const setNavigationItems = (0, import_react43.useCallback)((items) => {
2839
+ const setNavigationItems = (0, import_react41.useCallback)((items) => {
2988
2840
  navigationItems.current = items;
2989
2841
  }, []);
2990
2842
  return {
@@ -3027,7 +2879,7 @@ var usePageRange = ({ currentPage, totalPages }) => {
3027
2879
  };
3028
2880
 
3029
2881
  // src/Pagination/Pagination.tsx
3030
- var import_jsx_runtime81 = require("react/jsx-runtime");
2882
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3031
2883
  var _Pagination = ({
3032
2884
  defaultPage = 1,
3033
2885
  page,
@@ -3037,10 +2889,10 @@ var _Pagination = ({
3037
2889
  },
3038
2890
  controlLabels
3039
2891
  }) => {
3040
- const [currentPage, setCurrentPage] = (0, import_react44.useState)(page != null ? page : defaultPage);
2892
+ const [currentPage, setCurrentPage] = (0, import_react42.useState)(page != null ? page : defaultPage);
3041
2893
  const totalPages = Math.ceil(totalItems / pageSize);
3042
- const isFirstRender = (0, import_react44.useRef)(true);
3043
- (0, import_react44.useEffect)(() => {
2894
+ const isFirstRender = (0, import_react42.useRef)(true);
2895
+ (0, import_react42.useEffect)(() => {
3044
2896
  if (isFirstRender.current) {
3045
2897
  isFirstRender.current = false;
3046
2898
  return;
@@ -3057,7 +2909,7 @@ var _Pagination = ({
3057
2909
  onChange: handlePageChange
3058
2910
  });
3059
2911
  const pageRange = usePageRange({ currentPage, totalPages });
3060
- (0, import_react44.useEffect)(() => {
2912
+ (0, import_react42.useEffect)(() => {
3061
2913
  const items = [
3062
2914
  { type: NavigationTypes.Prev, value: currentPage - 1 },
3063
2915
  ...pageRange.map((value) => ({
@@ -3068,19 +2920,19 @@ var _Pagination = ({
3068
2920
  ];
3069
2921
  setNavigationItems(items);
3070
2922
  }, [pageRange, currentPage, setNavigationItems]);
3071
- (0, import_react44.useEffect)(() => {
2923
+ (0, import_react42.useEffect)(() => {
3072
2924
  setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
3073
2925
  }, [currentPage, setFocusedItem]);
3074
2926
  const isFirstPage = currentPage === 1;
3075
2927
  const isLastPage = currentPage === totalPages || totalPages === 0;
3076
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
2928
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
3077
2929
  "nav",
3078
2930
  {
3079
2931
  className: "flex items-center justify-center space-x-2",
3080
2932
  "aria-label": `Page ${currentPage} of ${totalPages}`,
3081
2933
  ...keyboardProps,
3082
2934
  children: [
3083
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2935
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3084
2936
  NavigationButton,
3085
2937
  {
3086
2938
  onPress: () => handlePageChange(Math.max(1, currentPage - 1)),
@@ -3089,11 +2941,11 @@ var _Pagination = ({
3089
2941
  registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
3090
2942
  controlLabel: controlLabels == null ? void 0 : controlLabels[0],
3091
2943
  position: "left",
3092
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronLeft, { className: "h-5 w-5" })
2944
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronLeft, { className: "h-5 w-5" })
3093
2945
  }
3094
2946
  ),
3095
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
3096
- (pageNumber, index) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Ellipsis, {}, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2947
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
2948
+ (pageNumber, index) => pageNumber === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Ellipsis, {}, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3097
2949
  PageButton,
3098
2950
  {
3099
2951
  page: pageNumber,
@@ -3103,8 +2955,8 @@ var _Pagination = ({
3103
2955
  },
3104
2956
  pageNumber
3105
2957
  )
3106
- ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
3107
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2958
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PageButton, { page: 1, isDisabled: true }, 1) }),
2959
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3108
2960
  NavigationButton,
3109
2961
  {
3110
2962
  onPress: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
@@ -3113,7 +2965,7 @@ var _Pagination = ({
3113
2965
  registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
3114
2966
  controlLabel: controlLabels == null ? void 0 : controlLabels[1],
3115
2967
  position: "right",
3116
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ChevronRight, { className: "h-5 w-5" })
2968
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRight, { className: "h-5 w-5" })
3117
2969
  }
3118
2970
  )
3119
2971
  ]
@@ -3122,21 +2974,21 @@ var _Pagination = ({
3122
2974
  };
3123
2975
 
3124
2976
  // src/Radio/Radio.tsx
3125
- var import_react46 = require("react");
3126
- var import_react_aria_components44 = require("react-aria-components");
3127
- var import_system71 = require("@marigold/system");
2977
+ var import_react44 = require("react");
2978
+ var import_react_aria_components48 = require("react-aria-components");
2979
+ var import_system70 = require("@marigold/system");
3128
2980
 
3129
2981
  // src/Radio/Context.ts
3130
- var import_react45 = require("react");
3131
- var RadioGroupContext = (0, import_react45.createContext)(
2982
+ var import_react43 = require("react");
2983
+ var RadioGroupContext = (0, import_react43.createContext)(
3132
2984
  null
3133
2985
  );
3134
- var useRadioGroupContext = () => (0, import_react45.useContext)(RadioGroupContext);
2986
+ var useRadioGroupContext = () => (0, import_react43.useContext)(RadioGroupContext);
3135
2987
 
3136
2988
  // src/Radio/RadioGroup.tsx
3137
- var import_react_aria_components43 = require("react-aria-components");
3138
- var import_system70 = require("@marigold/system");
3139
- var import_jsx_runtime82 = require("react/jsx-runtime");
2989
+ var import_react_aria_components47 = require("react-aria-components");
2990
+ var import_system69 = require("@marigold/system");
2991
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3140
2992
  var _RadioGroup = ({
3141
2993
  variant,
3142
2994
  size,
@@ -3152,7 +3004,7 @@ var _RadioGroup = ({
3152
3004
  width,
3153
3005
  ...rest
3154
3006
  }) => {
3155
- const classNames2 = (0, import_system70.useClassNames)({ component: "Radio", variant, size });
3007
+ const classNames2 = (0, import_system69.useClassNames)({ component: "Radio", variant, size });
3156
3008
  const props = {
3157
3009
  isDisabled: disabled,
3158
3010
  isReadOnly: readOnly,
@@ -3160,10 +3012,10 @@ var _RadioGroup = ({
3160
3012
  isInvalid: error,
3161
3013
  ...rest
3162
3014
  };
3163
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3015
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3164
3016
  FieldBase,
3165
3017
  {
3166
- as: import_react_aria_components43.RadioGroup,
3018
+ as: import_react_aria_components47.RadioGroup,
3167
3019
  width,
3168
3020
  label,
3169
3021
  description,
@@ -3171,18 +3023,18 @@ var _RadioGroup = ({
3171
3023
  variant,
3172
3024
  size,
3173
3025
  ...props,
3174
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3026
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3175
3027
  "div",
3176
3028
  {
3177
3029
  role: "presentation",
3178
3030
  "data-testid": "group",
3179
3031
  "data-orientation": orientation,
3180
- className: (0, import_system70.cn)(
3032
+ className: (0, import_system69.cn)(
3181
3033
  classNames2.group,
3182
3034
  "flex items-start",
3183
3035
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
3184
3036
  ),
3185
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3037
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3186
3038
  }
3187
3039
  )
3188
3040
  }
@@ -3190,33 +3042,33 @@ var _RadioGroup = ({
3190
3042
  };
3191
3043
 
3192
3044
  // src/Radio/Radio.tsx
3193
- var import_jsx_runtime83 = require("react/jsx-runtime");
3194
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3195
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3045
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3046
+ 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" }) });
3047
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3196
3048
  "div",
3197
3049
  {
3198
- className: (0, import_system71.cn)(
3050
+ className: (0, import_system70.cn)(
3199
3051
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
3200
3052
  className
3201
3053
  ),
3202
3054
  "aria-hidden": "true",
3203
3055
  ...props,
3204
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dot, {}) : null
3056
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dot, {}) : null
3205
3057
  }
3206
3058
  );
3207
- var _Radio = (0, import_react46.forwardRef)(
3059
+ var _Radio = (0, import_react44.forwardRef)(
3208
3060
  ({ value, disabled, width, children, ...props }, ref) => {
3209
3061
  const { variant, size, width: groupWidth } = useRadioGroupContext();
3210
- const classNames2 = (0, import_system71.useClassNames)({
3062
+ const classNames2 = (0, import_system70.useClassNames)({
3211
3063
  component: "Radio",
3212
3064
  variant: variant || props.variant,
3213
3065
  size: size || props.size
3214
3066
  });
3215
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3216
- import_react_aria_components44.Radio,
3067
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3068
+ import_react_aria_components48.Radio,
3217
3069
  {
3218
3070
  ref,
3219
- className: (0, import_system71.cn)(
3071
+ className: (0, import_system70.cn)(
3220
3072
  "group/radio",
3221
3073
  "relative flex items-center gap-[1ch]",
3222
3074
  width || groupWidth || "w-full",
@@ -3225,18 +3077,18 @@ var _Radio = (0, import_react46.forwardRef)(
3225
3077
  value,
3226
3078
  isDisabled: disabled,
3227
3079
  ...props,
3228
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
3229
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3080
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
3081
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3230
3082
  Icon3,
3231
3083
  {
3232
3084
  checked: isSelected,
3233
- className: (0, import_system71.cn)(
3085
+ className: (0, import_system70.cn)(
3234
3086
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3235
3087
  classNames2.radio
3236
3088
  )
3237
3089
  }
3238
3090
  ),
3239
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: classNames2.label, children })
3091
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: classNames2.label, children })
3240
3092
  ] })
3241
3093
  }
3242
3094
  );
@@ -3245,10 +3097,10 @@ var _Radio = (0, import_react46.forwardRef)(
3245
3097
  _Radio.Group = _RadioGroup;
3246
3098
 
3247
3099
  // src/SearchField/SearchField.tsx
3248
- var import_react47 = require("react");
3249
- var import_react_aria_components45 = require("react-aria-components");
3250
- var import_jsx_runtime84 = require("react/jsx-runtime");
3251
- var _SearchField = (0, import_react47.forwardRef)(
3100
+ var import_react45 = require("react");
3101
+ var import_react_aria_components49 = require("react-aria-components");
3102
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3103
+ var _SearchField = (0, import_react45.forwardRef)(
3252
3104
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
3253
3105
  const props = {
3254
3106
  ...rest,
@@ -3257,7 +3109,7 @@ var _SearchField = (0, import_react47.forwardRef)(
3257
3109
  isReadOnly: readOnly,
3258
3110
  isInvalid: error
3259
3111
  };
3260
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FieldBase, { as: import_react_aria_components45.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3112
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3261
3113
  SearchInput,
3262
3114
  {
3263
3115
  ref,
@@ -3268,11 +3120,11 @@ var _SearchField = (0, import_react47.forwardRef)(
3268
3120
  );
3269
3121
 
3270
3122
  // src/Select/Select.tsx
3271
- var import_react48 = require("react");
3272
- var import_react_aria_components46 = require("react-aria-components");
3273
- var import_system72 = require("@marigold/system");
3274
- var import_jsx_runtime85 = require("react/jsx-runtime");
3275
- var _Select = (0, import_react48.forwardRef)(
3123
+ var import_react46 = require("react");
3124
+ var import_react_aria_components50 = require("react-aria-components");
3125
+ var import_system71 = require("@marigold/system");
3126
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3127
+ var _Select = (0, import_react46.forwardRef)(
3276
3128
  ({
3277
3129
  disabled,
3278
3130
  required,
@@ -3292,22 +3144,22 @@ var _Select = (0, import_react48.forwardRef)(
3292
3144
  onSelectionChange: onChange,
3293
3145
  ...rest
3294
3146
  };
3295
- const classNames2 = (0, import_system72.useClassNames)({ component: "Select", variant, size });
3296
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(FieldBase, { as: import_react_aria_components46.Select, ref, variant, size, ...props, children: [
3297
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3298
- import_react_aria_components46.Button,
3147
+ const classNames2 = (0, import_system71.useClassNames)({ component: "Select", variant, size });
3148
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components50.Select, ref, variant, size, ...props, children: [
3149
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3150
+ import_react_aria_components50.Button,
3299
3151
  {
3300
- className: (0, import_system72.cn)(
3152
+ className: (0, import_system71.cn)(
3301
3153
  "flex w-full items-center justify-between gap-1 overflow-hidden",
3302
3154
  classNames2.select
3303
3155
  ),
3304
3156
  children: [
3305
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components46.SelectValue, { className: "[&>[slot=description]]:hidden" }),
3306
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames2.icon) })
3157
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components50.SelectValue, { className: "[&>[slot=description]]:hidden" }),
3158
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: (0, import_system71.cn)("size-4", classNames2.icon) })
3307
3159
  ]
3308
3160
  }
3309
3161
  ),
3310
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_ListBox, { items, children: props.children }) })
3162
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_ListBox, { items, children: props.children }) })
3311
3163
  ] });
3312
3164
  }
3313
3165
  );
@@ -3315,38 +3167,38 @@ _Select.Option = _ListBox.Item;
3315
3167
  _Select.Section = _ListBox.Section;
3316
3168
 
3317
3169
  // src/SelectList/SelectList.tsx
3318
- var import_react51 = require("react");
3319
- var import_react_aria_components48 = require("react-aria-components");
3320
- var import_system74 = require("@marigold/system");
3170
+ var import_react49 = require("react");
3171
+ var import_react_aria_components52 = require("react-aria-components");
3172
+ var import_system73 = require("@marigold/system");
3321
3173
 
3322
3174
  // src/SelectList/Context.ts
3323
- var import_react49 = require("react");
3324
- var SelectListContext = (0, import_react49.createContext)(
3175
+ var import_react47 = require("react");
3176
+ var SelectListContext = (0, import_react47.createContext)(
3325
3177
  {}
3326
3178
  );
3327
- var useSelectListContext = () => (0, import_react49.useContext)(SelectListContext);
3179
+ var useSelectListContext = () => (0, import_react47.useContext)(SelectListContext);
3328
3180
 
3329
3181
  // src/SelectList/SelectListItem.tsx
3330
- var import_react50 = require("react");
3331
- var import_react_aria_components47 = require("react-aria-components");
3332
- var import_system73 = require("@marigold/system");
3333
- var import_jsx_runtime86 = require("react/jsx-runtime");
3334
- var _SelectListItem = (0, import_react50.forwardRef)(
3182
+ var import_react48 = require("react");
3183
+ var import_react_aria_components51 = require("react-aria-components");
3184
+ var import_system72 = require("@marigold/system");
3185
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3186
+ var _SelectListItem = (0, import_react48.forwardRef)(
3335
3187
  ({ children, ...props }, ref) => {
3336
3188
  let textValue = typeof children === "string" ? children : void 0;
3337
3189
  const { classNames: classNames2 } = useSelectListContext();
3338
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3339
- import_react_aria_components47.GridListItem,
3190
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3191
+ import_react_aria_components51.GridListItem,
3340
3192
  {
3341
3193
  textValue,
3342
3194
  ...props,
3343
- className: (0, import_system73.cn)(
3344
- "items-center group-data-[layout=grid]/list:flex-row",
3195
+ className: (0, import_system72.cn)(
3196
+ "items-center group-[layout=grid]/list:flex-row",
3345
3197
  classNames2 == null ? void 0 : classNames2.option
3346
3198
  ),
3347
3199
  ref,
3348
- children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
3349
- selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Checkbox, { slot: "selection" }),
3200
+ children: ({ selectionMode }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
3201
+ selectionMode === "multiple" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(_Checkbox, { slot: "selection" }),
3350
3202
  children
3351
3203
  ] })
3352
3204
  }
@@ -3355,21 +3207,21 @@ var _SelectListItem = (0, import_react50.forwardRef)(
3355
3207
  );
3356
3208
 
3357
3209
  // src/SelectList/SelectList.tsx
3358
- var import_jsx_runtime87 = require("react/jsx-runtime");
3359
- var _SelectList = (0, import_react51.forwardRef)(
3210
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3211
+ var _SelectList = (0, import_react49.forwardRef)(
3360
3212
  ({ onChange, ...rest }, ref) => {
3361
- const classNames2 = (0, import_system74.useClassNames)({ component: "ListBox" });
3213
+ const classNames2 = (0, import_system73.useClassNames)({ component: "ListBox" });
3362
3214
  const props = {
3363
3215
  onSelectionChange: onChange,
3364
3216
  ...rest
3365
3217
  };
3366
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3367
- import_react_aria_components48.GridList,
3218
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3219
+ import_react_aria_components52.GridList,
3368
3220
  {
3369
3221
  ...props,
3370
3222
  layout: "grid",
3371
3223
  ref,
3372
- className: (0, import_system74.cn)(
3224
+ className: (0, import_system73.cn)(
3373
3225
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
3374
3226
  classNames2.list
3375
3227
  ),
@@ -3381,29 +3233,29 @@ var _SelectList = (0, import_react51.forwardRef)(
3381
3233
  _SelectList.Item = _SelectListItem;
3382
3234
 
3383
3235
  // src/Scrollable/Scrollable.tsx
3384
- var import_system75 = require("@marigold/system");
3385
- var import_jsx_runtime88 = require("react/jsx-runtime");
3236
+ var import_system74 = require("@marigold/system");
3237
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3386
3238
  var Scrollable = ({
3387
3239
  children,
3388
3240
  width = "full",
3389
3241
  height,
3390
3242
  ...props
3391
- }) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3243
+ }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3392
3244
  "div",
3393
3245
  {
3394
3246
  ...props,
3395
- className: (0, import_system75.cn)(["sticky h-[--height] overflow-auto", import_system75.width[width]]),
3396
- style: (0, import_system75.createVar)({ height }),
3247
+ className: (0, import_system74.cn)(["sticky h-(--height) overflow-auto", import_system74.width[width]]),
3248
+ style: (0, import_system74.createVar)({ height }),
3397
3249
  children
3398
3250
  }
3399
3251
  );
3400
3252
 
3401
3253
  // src/Slider/Slider.tsx
3402
- var import_react52 = require("react");
3403
- var import_react_aria_components49 = require("react-aria-components");
3404
- var import_system76 = require("@marigold/system");
3405
- var import_jsx_runtime89 = require("react/jsx-runtime");
3406
- var _Slider = (0, import_react52.forwardRef)(
3254
+ var import_react50 = require("react");
3255
+ var import_react_aria_components53 = require("react-aria-components");
3256
+ var import_system75 = require("@marigold/system");
3257
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3258
+ var _Slider = (0, import_react50.forwardRef)(
3407
3259
  ({
3408
3260
  thumbLabels,
3409
3261
  variant,
@@ -3413,7 +3265,7 @@ var _Slider = (0, import_react52.forwardRef)(
3413
3265
  label,
3414
3266
  ...rest
3415
3267
  }, ref) => {
3416
- const classNames2 = (0, import_system76.useClassNames)({
3268
+ const classNames2 = (0, import_system75.useClassNames)({
3417
3269
  component: "Slider",
3418
3270
  variant,
3419
3271
  size
@@ -3422,38 +3274,38 @@ var _Slider = (0, import_react52.forwardRef)(
3422
3274
  isDisabled: disabled,
3423
3275
  ...rest
3424
3276
  };
3425
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3277
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3426
3278
  FieldBase,
3427
3279
  {
3428
- as: import_react_aria_components49.Slider,
3429
- className: (0, import_system76.cn)(
3280
+ as: import_react_aria_components53.Slider,
3281
+ className: (0, import_system75.cn)(
3430
3282
  "grid grid-cols-[auto_1fr] gap-y-1",
3431
3283
  classNames2.container,
3432
- import_system76.width[width]
3284
+ import_system75.width[width]
3433
3285
  ),
3434
3286
  ref,
3435
3287
  ...props,
3436
3288
  children: [
3437
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(_Label, { children: props.children && props.children || label && label }),
3438
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components49.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3439
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3440
- import_react_aria_components49.SliderTrack,
3289
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
3290
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components53.SliderOutput, { className: (0, import_system75.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3291
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3292
+ import_react_aria_components53.SliderTrack,
3441
3293
  {
3442
- className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3443
- children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
3444
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3294
+ className: (0, import_system75.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3295
+ children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
3296
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3445
3297
  "div",
3446
3298
  {
3447
- className: (0, import_system76.cn)(
3299
+ className: (0, import_system75.cn)(
3448
3300
  "absolute top-[50%] h-2 w-full translate-y-[-50%]",
3449
3301
  classNames2.track
3450
3302
  )
3451
3303
  }
3452
3304
  ),
3453
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3305
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3454
3306
  "div",
3455
3307
  {
3456
- className: (0, import_system76.cn)(
3308
+ className: (0, import_system75.cn)(
3457
3309
  "absolute top-[50%] h-2 translate-y-[-50%]",
3458
3310
  classNames2.selectedTrack
3459
3311
  ),
@@ -3463,10 +3315,10 @@ var _Slider = (0, import_react52.forwardRef)(
3463
3315
  }
3464
3316
  }
3465
3317
  ),
3466
- state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3467
- import_react_aria_components49.SliderThumb,
3318
+ state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3319
+ import_react_aria_components53.SliderThumb,
3468
3320
  {
3469
- className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3321
+ className: (0, import_system75.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3470
3322
  index: i,
3471
3323
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
3472
3324
  name: thumbLabels == null ? void 0 : thumbLabels[i]
@@ -3483,12 +3335,12 @@ var _Slider = (0, import_react52.forwardRef)(
3483
3335
  );
3484
3336
 
3485
3337
  // src/Split/Split.tsx
3486
- var import_jsx_runtime90 = require("react/jsx-runtime");
3487
- var Split = () => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { role: "separator", className: "grow" });
3338
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3339
+ var Split = () => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { role: "separator", className: "grow" });
3488
3340
 
3489
3341
  // src/Stack/Stack.tsx
3490
- var import_system77 = require("@marigold/system");
3491
- var import_jsx_runtime91 = require("react/jsx-runtime");
3342
+ var import_system76 = require("@marigold/system");
3343
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3492
3344
  var Stack = ({
3493
3345
  children,
3494
3346
  space = 0,
@@ -3498,14 +3350,14 @@ var Stack = ({
3498
3350
  ...props
3499
3351
  }) => {
3500
3352
  var _a, _b, _c, _d;
3501
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3353
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3502
3354
  "div",
3503
3355
  {
3504
- className: (0, import_system77.cn)(
3356
+ className: (0, import_system76.cn)(
3505
3357
  "flex flex-col",
3506
- import_system77.gapSpace[space],
3507
- alignX && ((_b = (_a = import_system77.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3508
- alignY && ((_d = (_c = import_system77.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3358
+ import_system76.gapSpace[space],
3359
+ alignX && ((_b = (_a = import_system76.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
3360
+ alignY && ((_d = (_c = import_system76.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
3509
3361
  stretch && "h-full w-full"
3510
3362
  ),
3511
3363
  ...props,
@@ -3515,11 +3367,11 @@ var Stack = ({
3515
3367
  };
3516
3368
 
3517
3369
  // src/Switch/Switch.tsx
3518
- var import_react53 = require("react");
3519
- var import_react_aria_components50 = require("react-aria-components");
3520
- var import_system78 = require("@marigold/system");
3521
- var import_jsx_runtime92 = require("react/jsx-runtime");
3522
- var _Switch = (0, import_react53.forwardRef)(
3370
+ var import_react51 = require("react");
3371
+ var import_react_aria_components54 = require("react-aria-components");
3372
+ var import_system77 = require("@marigold/system");
3373
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3374
+ var _Switch = (0, import_react51.forwardRef)(
3523
3375
  ({
3524
3376
  variant,
3525
3377
  size,
@@ -3530,40 +3382,40 @@ var _Switch = (0, import_react53.forwardRef)(
3530
3382
  readOnly,
3531
3383
  ...rest
3532
3384
  }, ref) => {
3533
- const classNames2 = (0, import_system78.useClassNames)({ component: "Switch", size, variant });
3385
+ const classNames2 = (0, import_system77.useClassNames)({ component: "Switch", size, variant });
3534
3386
  const props = {
3535
3387
  isDisabled: disabled,
3536
3388
  isReadOnly: readOnly,
3537
3389
  isSelected: selected,
3538
3390
  ...rest
3539
3391
  };
3540
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3541
- import_react_aria_components50.Switch,
3392
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
3393
+ import_react_aria_components54.Switch,
3542
3394
  {
3543
3395
  ...props,
3544
3396
  ref,
3545
- className: (0, import_system78.cn)(
3546
- import_system78.width[width],
3397
+ className: (0, import_system77.cn)(
3398
+ import_system77.width[width],
3547
3399
  "group/switch",
3548
3400
  "flex items-center gap-[1ch]",
3549
3401
  classNames2.container
3550
3402
  ),
3551
3403
  children: [
3552
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(_Label, { elementType: "span", children }),
3553
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3404
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(_Label, { elementType: "span", children }),
3405
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3554
3406
  "div",
3555
3407
  {
3556
- className: (0, import_system78.cn)(
3408
+ className: (0, import_system77.cn)(
3557
3409
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed",
3558
3410
  classNames2.track
3559
3411
  ),
3560
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3412
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3561
3413
  "div",
3562
3414
  {
3563
- className: (0, import_system78.cn)(
3415
+ className: (0, import_system77.cn)(
3564
3416
  "h-[22px] w-[22px]",
3565
3417
  "cubic-bezier(.7,0,.3,1)",
3566
- "absolute left-0 top-px",
3418
+ "absolute top-px left-0",
3567
3419
  "block translate-x-[1px] rounded-full transition-all duration-100 ease-in-out will-change-transform",
3568
3420
  "group-selected/switch:translate-x-[calc(47px_-_100%)]",
3569
3421
  classNames2.thumb
@@ -3579,24 +3431,24 @@ var _Switch = (0, import_react53.forwardRef)(
3579
3431
  );
3580
3432
 
3581
3433
  // src/Table/Table.tsx
3582
- var import_react61 = require("react");
3434
+ var import_react59 = require("react");
3583
3435
  var import_table9 = require("@react-aria/table");
3584
3436
  var import_table10 = require("@react-stately/table");
3585
- var import_system84 = require("@marigold/system");
3437
+ var import_system83 = require("@marigold/system");
3586
3438
 
3587
3439
  // src/Table/Context.tsx
3588
- var import_react54 = require("react");
3589
- var TableContext = (0, import_react54.createContext)({});
3590
- var useTableContext = () => (0, import_react54.useContext)(TableContext);
3440
+ var import_react52 = require("react");
3441
+ var TableContext = (0, import_react52.createContext)({});
3442
+ var useTableContext = () => (0, import_react52.useContext)(TableContext);
3591
3443
 
3592
3444
  // src/Table/TableBody.tsx
3593
3445
  var import_table = require("@react-aria/table");
3594
- var import_jsx_runtime93 = require("react/jsx-runtime");
3446
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3595
3447
  var TableBody = ({ children, emptyState }) => {
3596
3448
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3597
3449
  const { state, classNames: classNames2 } = useTableContext();
3598
3450
  if (state.collection.size === 0 && emptyState) {
3599
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3451
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3600
3452
  "td",
3601
3453
  {
3602
3454
  className: classNames2 == null ? void 0 : classNames2.cell,
@@ -3606,18 +3458,18 @@ var TableBody = ({ children, emptyState }) => {
3606
3458
  }
3607
3459
  ) }) });
3608
3460
  }
3609
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("tbody", { ...rowGroupProps, children });
3461
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("tbody", { ...rowGroupProps, children });
3610
3462
  };
3611
3463
 
3612
3464
  // src/Table/TableCell.tsx
3613
- var import_react55 = require("react");
3614
- var import_focus2 = require("@react-aria/focus");
3465
+ var import_react53 = require("react");
3466
+ var import_focus = require("@react-aria/focus");
3615
3467
  var import_table2 = require("@react-aria/table");
3616
- var import_utils3 = require("@react-aria/utils");
3617
- var import_system79 = require("@marigold/system");
3618
- var import_jsx_runtime94 = require("react/jsx-runtime");
3468
+ var import_utils = require("@react-aria/utils");
3469
+ var import_system78 = require("@marigold/system");
3470
+ var import_jsx_runtime95 = require("react/jsx-runtime");
3619
3471
  var TableCell = ({ cell, align = "left" }) => {
3620
- const ref = (0, import_react55.useRef)(null);
3472
+ const ref = (0, import_react53.useRef)(null);
3621
3473
  const { interactive, state, classNames: classNames2 } = useTableContext();
3622
3474
  const disabled = state.disabledKeys.has(cell.parentKey);
3623
3475
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3636,14 +3488,14 @@ var TableCell = ({ cell, align = "left" }) => {
3636
3488
  onMouseDown: (e) => e.stopPropagation(),
3637
3489
  onPointerDown: (e) => e.stopPropagation()
3638
3490
  };
3639
- const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
3640
- const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
3641
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3491
+ const { focusProps, isFocusVisible } = (0, import_focus.useFocusRing)();
3492
+ const stateProps = (0, import_system78.useStateProps)({ disabled, focusVisible: isFocusVisible });
3493
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3642
3494
  "td",
3643
3495
  {
3644
3496
  ref,
3645
- className: (0, import_system79.cn)(classNames2 == null ? void 0 : classNames2.cell),
3646
- ...(0, import_utils3.mergeProps)(cellProps, focusProps),
3497
+ className: (0, import_system78.cn)(classNames2 == null ? void 0 : classNames2.cell),
3498
+ ...(0, import_utils.mergeProps)(cellProps, focusProps),
3647
3499
  ...stateProps,
3648
3500
  align,
3649
3501
  children: cell.rendered
@@ -3652,11 +3504,11 @@ var TableCell = ({ cell, align = "left" }) => {
3652
3504
  };
3653
3505
 
3654
3506
  // src/Table/TableCheckboxCell.tsx
3655
- var import_react56 = require("react");
3656
- var import_focus3 = require("@react-aria/focus");
3507
+ var import_react54 = require("react");
3508
+ var import_focus2 = require("@react-aria/focus");
3657
3509
  var import_table3 = require("@react-aria/table");
3658
- var import_utils4 = require("@react-aria/utils");
3659
- var import_system80 = require("@marigold/system");
3510
+ var import_utils2 = require("@react-aria/utils");
3511
+ var import_system79 = require("@marigold/system");
3660
3512
 
3661
3513
  // src/Table/utils.ts
3662
3514
  var mapCheckboxProps = ({
@@ -3679,9 +3531,9 @@ var mapCheckboxProps = ({
3679
3531
  };
3680
3532
 
3681
3533
  // src/Table/TableCheckboxCell.tsx
3682
- var import_jsx_runtime95 = require("react/jsx-runtime");
3534
+ var import_jsx_runtime96 = require("react/jsx-runtime");
3683
3535
  var TableCheckboxCell = ({ cell }) => {
3684
- const ref = (0, import_react56.useRef)(null);
3536
+ const ref = (0, import_react54.useRef)(null);
3685
3537
  const { state, classNames: classNames2 } = useTableContext();
3686
3538
  const disabled = state.disabledKeys.has(cell.parentKey);
3687
3539
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3694,35 +3546,35 @@ var TableCheckboxCell = ({ cell }) => {
3694
3546
  const { checkboxProps } = mapCheckboxProps(
3695
3547
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3696
3548
  );
3697
- const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
3698
- const stateProps = (0, import_system80.useStateProps)({ disabled, focusVisible: isFocusVisible });
3699
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3549
+ const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
3550
+ const stateProps = (0, import_system79.useStateProps)({ disabled, focusVisible: isFocusVisible });
3551
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
3700
3552
  "td",
3701
3553
  {
3702
3554
  ref,
3703
- className: (0, import_system80.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3704
- ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
3555
+ className: (0, import_system79.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3556
+ ...(0, import_utils2.mergeProps)(gridCellProps, focusProps),
3705
3557
  ...stateProps,
3706
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(_Checkbox, { ...checkboxProps })
3558
+ children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(_Checkbox, { ...checkboxProps })
3707
3559
  }
3708
3560
  );
3709
3561
  };
3710
3562
 
3711
3563
  // src/Table/TableColumnHeader.tsx
3712
- var import_react57 = require("react");
3713
- var import_focus4 = require("@react-aria/focus");
3564
+ var import_react55 = require("react");
3565
+ var import_focus3 = require("@react-aria/focus");
3714
3566
  var import_interactions2 = require("@react-aria/interactions");
3715
3567
  var import_table4 = require("@react-aria/table");
3716
- var import_utils6 = require("@react-aria/utils");
3717
- var import_system81 = require("@marigold/system");
3718
- var import_jsx_runtime96 = require("react/jsx-runtime");
3568
+ var import_utils4 = require("@react-aria/utils");
3569
+ var import_system80 = require("@marigold/system");
3570
+ var import_jsx_runtime97 = require("react/jsx-runtime");
3719
3571
  var TableColumnHeader = ({
3720
3572
  column,
3721
3573
  width = "auto",
3722
3574
  align = "left"
3723
3575
  }) => {
3724
3576
  var _a, _b;
3725
- const ref = (0, import_react57.useRef)(null);
3577
+ const ref = (0, import_react55.useRef)(null);
3726
3578
  const { state, classNames: classNames2 } = useTableContext();
3727
3579
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3728
3580
  {
@@ -3732,23 +3584,23 @@ var TableColumnHeader = ({
3732
3584
  ref
3733
3585
  );
3734
3586
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
3735
- const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
3736
- const stateProps = (0, import_system81.useStateProps)({
3587
+ const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
3588
+ const stateProps = (0, import_system80.useStateProps)({
3737
3589
  hover: isHovered,
3738
3590
  focusVisible: isFocusVisible
3739
3591
  });
3740
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
3592
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
3741
3593
  "th",
3742
3594
  {
3743
3595
  colSpan: column.colspan,
3744
3596
  ref,
3745
- className: (0, import_system81.cn)("cursor-default", import_system81.width[width], classNames2 == null ? void 0 : classNames2.header),
3746
- ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3597
+ className: (0, import_system80.cn)("cursor-default", import_system80.width[width], classNames2 == null ? void 0 : classNames2.header),
3598
+ ...(0, import_utils4.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3747
3599
  ...stateProps,
3748
3600
  align,
3749
3601
  children: [
3750
3602
  column.rendered,
3751
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "invisible", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SortDown, { className: "inline-block" }) }))
3603
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.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: "invisible", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SortDown, { className: "inline-block" }) }))
3752
3604
  ]
3753
3605
  }
3754
3606
  );
@@ -3756,10 +3608,10 @@ var TableColumnHeader = ({
3756
3608
 
3757
3609
  // src/Table/TableHeader.tsx
3758
3610
  var import_table5 = require("@react-aria/table");
3759
- var import_jsx_runtime97 = require("react/jsx-runtime");
3611
+ var import_jsx_runtime98 = require("react/jsx-runtime");
3760
3612
  var TableHeader = ({ stickyHeader, children }) => {
3761
3613
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3762
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3614
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
3763
3615
  "thead",
3764
3616
  {
3765
3617
  ...rowGroupProps,
@@ -3770,29 +3622,29 @@ var TableHeader = ({ stickyHeader, children }) => {
3770
3622
  };
3771
3623
 
3772
3624
  // src/Table/TableHeaderRow.tsx
3773
- var import_react58 = require("react");
3625
+ var import_react56 = require("react");
3774
3626
  var import_table6 = require("@react-aria/table");
3775
- var import_jsx_runtime98 = require("react/jsx-runtime");
3627
+ var import_jsx_runtime99 = require("react/jsx-runtime");
3776
3628
  var TableHeaderRow = ({ item, children }) => {
3777
3629
  const { state } = useTableContext();
3778
- const ref = (0, import_react58.useRef)(null);
3630
+ const ref = (0, import_react56.useRef)(null);
3779
3631
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3780
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("tr", { ...rowProps, ref, children });
3632
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("tr", { ...rowProps, ref, children });
3781
3633
  };
3782
3634
 
3783
3635
  // src/Table/TableRow.tsx
3784
- var import_react59 = require("react");
3785
- var import_focus5 = require("@react-aria/focus");
3636
+ var import_react57 = require("react");
3637
+ var import_focus4 = require("@react-aria/focus");
3786
3638
  var import_interactions3 = require("@react-aria/interactions");
3787
3639
  var import_table7 = require("@react-aria/table");
3788
- var import_utils7 = require("@react-aria/utils");
3789
- var import_system82 = require("@marigold/system");
3790
- var import_jsx_runtime99 = require("react/jsx-runtime");
3640
+ var import_utils5 = require("@react-aria/utils");
3641
+ var import_system81 = require("@marigold/system");
3642
+ var import_jsx_runtime100 = require("react/jsx-runtime");
3791
3643
  var TableRow = ({ children, row }) => {
3792
- const ref = (0, import_react59.useRef)(null);
3644
+ const ref = (0, import_react57.useRef)(null);
3793
3645
  const { interactive, state, ...ctx } = useTableContext();
3794
3646
  const { variant, size } = row.props;
3795
- const classNames2 = (0, import_system82.useClassNames)({
3647
+ const classNames2 = (0, import_system81.useClassNames)({
3796
3648
  component: "Table",
3797
3649
  variant: variant || ctx.variant,
3798
3650
  size: size || ctx.size
@@ -3806,28 +3658,28 @@ var TableRow = ({ children, row }) => {
3806
3658
  );
3807
3659
  const disabled = state.disabledKeys.has(row.key);
3808
3660
  const selected = state.selectionManager.isSelected(row.key);
3809
- const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
3661
+ const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
3810
3662
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
3811
3663
  isDisabled: disabled || !interactive
3812
3664
  });
3813
- const stateProps = (0, import_system82.useStateProps)({
3665
+ const stateProps = (0, import_system81.useStateProps)({
3814
3666
  disabled,
3815
3667
  selected,
3816
3668
  hover: isHovered,
3817
3669
  focusVisible: isFocusVisible,
3818
3670
  active: isPressed
3819
3671
  });
3820
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
3672
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
3821
3673
  "tr",
3822
3674
  {
3823
3675
  ref,
3824
- className: (0, import_system82.cn)(
3676
+ className: (0, import_system81.cn)(
3825
3677
  [
3826
3678
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3827
3679
  ],
3828
3680
  classNames2 == null ? void 0 : classNames2.row
3829
3681
  ),
3830
- ...(0, import_utils7.mergeProps)(rowProps, focusProps, hoverProps),
3682
+ ...(0, import_utils5.mergeProps)(rowProps, focusProps, hoverProps),
3831
3683
  ...stateProps,
3832
3684
  children
3833
3685
  }
@@ -3835,19 +3687,19 @@ var TableRow = ({ children, row }) => {
3835
3687
  };
3836
3688
 
3837
3689
  // src/Table/TableSelectAllCell.tsx
3838
- var import_react60 = require("react");
3839
- var import_focus6 = require("@react-aria/focus");
3690
+ var import_react58 = require("react");
3691
+ var import_focus5 = require("@react-aria/focus");
3840
3692
  var import_interactions4 = require("@react-aria/interactions");
3841
3693
  var import_table8 = require("@react-aria/table");
3842
- var import_utils8 = require("@react-aria/utils");
3843
- var import_system83 = require("@marigold/system");
3844
- var import_jsx_runtime100 = require("react/jsx-runtime");
3694
+ var import_utils6 = require("@react-aria/utils");
3695
+ var import_system82 = require("@marigold/system");
3696
+ var import_jsx_runtime101 = require("react/jsx-runtime");
3845
3697
  var TableSelectAllCell = ({
3846
3698
  column,
3847
3699
  width = "auto",
3848
3700
  align = "left"
3849
3701
  }) => {
3850
- const ref = (0, import_react60.useRef)(null);
3702
+ const ref = (0, import_react58.useRef)(null);
3851
3703
  const { state, classNames: classNames2 } = useTableContext();
3852
3704
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3853
3705
  {
@@ -3858,26 +3710,26 @@ var TableSelectAllCell = ({
3858
3710
  );
3859
3711
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3860
3712
  const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
3861
- const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3862
- const stateProps = (0, import_system83.useStateProps)({
3713
+ const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
3714
+ const stateProps = (0, import_system82.useStateProps)({
3863
3715
  hover: isHovered,
3864
3716
  focusVisible: isFocusVisible
3865
3717
  });
3866
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
3718
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3867
3719
  "th",
3868
3720
  {
3869
3721
  ref,
3870
- className: (0, import_system83.cn)(import_system83.width[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3871
- ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3722
+ className: (0, import_system82.cn)(import_system82.width[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3723
+ ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3872
3724
  ...stateProps,
3873
3725
  align,
3874
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(_Checkbox, { ...checkboxProps })
3726
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(_Checkbox, { ...checkboxProps })
3875
3727
  }
3876
3728
  );
3877
3729
  };
3878
3730
 
3879
3731
  // src/Table/Table.tsx
3880
- var import_jsx_runtime101 = require("react/jsx-runtime");
3732
+ var import_jsx_runtime102 = require("react/jsx-runtime");
3881
3733
  var Table = ({
3882
3734
  variant,
3883
3735
  size,
@@ -3889,7 +3741,7 @@ var Table = ({
3889
3741
  ...props
3890
3742
  }) => {
3891
3743
  const interactive = selectionMode !== "none";
3892
- const tableRef = (0, import_react61.useRef)(null);
3744
+ const tableRef = (0, import_react59.useRef)(null);
3893
3745
  const state = (0, import_table10.useTableState)({
3894
3746
  ...props,
3895
3747
  selectionMode,
@@ -3900,21 +3752,21 @@ var Table = ({
3900
3752
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
3901
3753
  }
3902
3754
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3903
- const classNames2 = (0, import_system84.useClassNames)({
3755
+ const classNames2 = (0, import_system83.useClassNames)({
3904
3756
  component: "Table",
3905
3757
  variant,
3906
3758
  size
3907
3759
  });
3908
3760
  const { collection } = state;
3909
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3761
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3910
3762
  TableContext.Provider,
3911
3763
  {
3912
3764
  value: { state, interactive, classNames: classNames2, variant, size },
3913
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
3765
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
3914
3766
  "table",
3915
3767
  {
3916
3768
  ref: tableRef,
3917
- className: (0, import_system84.cn)(
3769
+ className: (0, import_system83.cn)(
3918
3770
  "group/table",
3919
3771
  "border-collapse",
3920
3772
  stretch ? "table w-full" : "block",
@@ -3922,10 +3774,10 @@ var Table = ({
3922
3774
  ),
3923
3775
  ...gridProps,
3924
3776
  children: [
3925
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3777
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3926
3778
  (column) => {
3927
3779
  var _a, _b, _c, _d, _e;
3928
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3780
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3929
3781
  TableSelectAllCell,
3930
3782
  {
3931
3783
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3933,7 +3785,7 @@ var Table = ({
3933
3785
  align: (_c = column.props) == null ? void 0 : _c.align
3934
3786
  },
3935
3787
  column.key
3936
- ) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3788
+ ) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3937
3789
  TableColumnHeader,
3938
3790
  {
3939
3791
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3944,12 +3796,12 @@ var Table = ({
3944
3796
  );
3945
3797
  }
3946
3798
  ) }, headerRow.key)) }),
3947
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(TableBody, { emptyState, children: [
3799
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(TableBody, { emptyState, children: [
3948
3800
  ...collection.rows.map(
3949
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3801
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3950
3802
  var _a, _b;
3951
3803
  const currentColumn = collection.columns[index];
3952
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
3804
+ 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)(
3953
3805
  TableCell,
3954
3806
  {
3955
3807
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3973,9 +3825,9 @@ Table.Header = import_table10.TableHeader;
3973
3825
  Table.Row = import_table10.Row;
3974
3826
 
3975
3827
  // src/Text/Text.tsx
3976
- var import_react_aria_components51 = require("react-aria-components");
3977
- var import_system85 = require("@marigold/system");
3978
- var import_jsx_runtime102 = require("react/jsx-runtime");
3828
+ var import_react_aria_components55 = require("react-aria-components");
3829
+ var import_system84 = require("@marigold/system");
3830
+ var import_jsx_runtime103 = require("react/jsx-runtime");
3979
3831
  var _Text = ({
3980
3832
  variant,
3981
3833
  size,
@@ -3989,47 +3841,40 @@ var _Text = ({
3989
3841
  as = "div",
3990
3842
  ...props
3991
3843
  }) => {
3992
- const theme = (0, import_system85.useTheme)();
3993
- const classNames2 = (0, import_system85.useClassNames)({
3844
+ const classNames2 = (0, import_system84.useClassNames)({
3994
3845
  component: "Text",
3995
3846
  variant,
3996
3847
  size
3997
3848
  });
3998
- const Component = props.slot ? import_react_aria_components51.Text : as;
3849
+ const Component = props.slot ? import_react_aria_components55.Text : as;
3999
3850
  const elementType = props.slot ? { elementType: as } : {};
4000
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3851
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
4001
3852
  Component,
4002
3853
  {
4003
3854
  ...props,
4004
3855
  ...elementType,
4005
- className: (0, import_system85.cn)(
4006
- "text-[--color] outline-[--outline]",
3856
+ className: (0, import_system84.cn)(
3857
+ "max-w-(--maxTextWidth)",
3858
+ // possibly set by a <Container>
4007
3859
  classNames2,
4008
- fontStyle && import_system85.textStyle[fontStyle],
4009
- align && import_system85.textAlign[align],
4010
- cursor && import_system85.cursorStyle[cursor],
4011
- weight && import_system85.fontWeight[weight],
4012
- fontSize && import_system85.textSize[fontSize]
3860
+ fontStyle && import_system84.textStyle[fontStyle],
3861
+ align && import_system84.textAlign[align],
3862
+ cursor && import_system84.cursorStyle[cursor],
3863
+ weight && import_system84.fontWeight[weight],
3864
+ fontSize && import_system84.textSize[fontSize]
4013
3865
  ),
4014
- style: (0, import_system85.createVar)({
4015
- color: color && (0, import_system85.getColor)(
4016
- theme,
4017
- color,
4018
- color
4019
- /* fallback */
4020
- )
4021
- }),
3866
+ style: { color: color && `var(--color-${color})` },
4022
3867
  children
4023
3868
  }
4024
3869
  );
4025
3870
  };
4026
3871
 
4027
3872
  // src/TextArea/TextArea.tsx
4028
- var import_react62 = require("react");
4029
- var import_react_aria_components52 = require("react-aria-components");
4030
- var import_system86 = require("@marigold/system");
4031
- var import_jsx_runtime103 = require("react/jsx-runtime");
4032
- var _TextArea = (0, import_react62.forwardRef)(
3873
+ var import_react60 = require("react");
3874
+ var import_react_aria_components56 = require("react-aria-components");
3875
+ var import_system85 = require("@marigold/system");
3876
+ var import_jsx_runtime104 = require("react/jsx-runtime");
3877
+ var _TextArea = (0, import_react60.forwardRef)(
4033
3878
  ({
4034
3879
  variant,
4035
3880
  size,
@@ -4040,7 +3885,7 @@ var _TextArea = (0, import_react62.forwardRef)(
4040
3885
  rows,
4041
3886
  ...rest
4042
3887
  }, ref) => {
4043
- const classNames2 = (0, import_system86.useClassNames)({ component: "TextArea", variant, size });
3888
+ const classNames2 = (0, import_system85.useClassNames)({ component: "TextArea", variant, size });
4044
3889
  const props = {
4045
3890
  isDisabled: disabled,
4046
3891
  isReadOnly: readOnly,
@@ -4048,15 +3893,15 @@ var _TextArea = (0, import_react62.forwardRef)(
4048
3893
  isRequired: required,
4049
3894
  ...rest
4050
3895
  };
4051
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria_components52.TextArea, { className: classNames2, ref, rows }) });
3896
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components56.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components56.TextArea, { className: classNames2, ref, rows }) });
4052
3897
  }
4053
3898
  );
4054
3899
 
4055
3900
  // src/TextField/TextField.tsx
4056
- var import_react63 = require("react");
4057
- var import_react_aria_components53 = require("react-aria-components");
4058
- var import_jsx_runtime104 = require("react/jsx-runtime");
4059
- var _TextField = (0, import_react63.forwardRef)(
3901
+ var import_react61 = require("react");
3902
+ var import_react_aria_components57 = require("react-aria-components");
3903
+ var import_jsx_runtime105 = require("react/jsx-runtime");
3904
+ var _TextField = (0, import_react61.forwardRef)(
4060
3905
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
4061
3906
  const props = {
4062
3907
  isDisabled: disabled,
@@ -4065,13 +3910,13 @@ var _TextField = (0, import_react63.forwardRef)(
4065
3910
  isRequired: required,
4066
3911
  ...rest
4067
3912
  };
4068
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components53.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(_Input, { ref }) });
3913
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components57.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(_Input, { ref }) });
4069
3914
  }
4070
3915
  );
4071
3916
 
4072
3917
  // src/Tiles/Tiles.tsx
4073
- var import_system87 = require("@marigold/system");
4074
- var import_jsx_runtime105 = require("react/jsx-runtime");
3918
+ var import_system86 = require("@marigold/system");
3919
+ var import_jsx_runtime106 = require("react/jsx-runtime");
4075
3920
  var Tiles = ({
4076
3921
  space = 0,
4077
3922
  stretch = false,
@@ -4084,29 +3929,29 @@ var Tiles = ({
4084
3929
  if (stretch) {
4085
3930
  column = `minmax(${column}, 1fr)`;
4086
3931
  }
4087
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
3932
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
4088
3933
  "div",
4089
3934
  {
4090
3935
  ...props,
4091
- className: (0, import_system87.cn)(
3936
+ className: (0, import_system86.cn)(
4092
3937
  "grid",
4093
- import_system87.gapSpace[space],
3938
+ import_system86.gapSpace[space],
4094
3939
  "grid-cols-[repeat(auto-fit,var(--column))]",
4095
3940
  equalHeight && "auto-rows-[1fr]"
4096
3941
  ),
4097
- style: (0, import_system87.createVar)({ column, tilesWidth }),
3942
+ style: (0, import_system86.createVar)({ column, tilesWidth }),
4098
3943
  children
4099
3944
  }
4100
3945
  );
4101
3946
  };
4102
3947
 
4103
3948
  // src/Tooltip/Tooltip.tsx
4104
- var import_react_aria_components55 = require("react-aria-components");
4105
- var import_system88 = require("@marigold/system");
3949
+ var import_react_aria_components59 = require("react-aria-components");
3950
+ var import_system87 = require("@marigold/system");
4106
3951
 
4107
3952
  // src/Tooltip/TooltipTrigger.tsx
4108
- var import_react_aria_components54 = require("react-aria-components");
4109
- var import_jsx_runtime106 = require("react/jsx-runtime");
3953
+ var import_react_aria_components58 = require("react-aria-components");
3954
+ var import_jsx_runtime107 = require("react/jsx-runtime");
4110
3955
  var _TooltipTrigger = ({
4111
3956
  delay = 1e3,
4112
3957
  children,
@@ -4120,26 +3965,26 @@ var _TooltipTrigger = ({
4120
3965
  isOpen: open,
4121
3966
  delay
4122
3967
  };
4123
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_aria_components54.TooltipTrigger, { ...props, children });
3968
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components58.TooltipTrigger, { ...props, children });
4124
3969
  };
4125
3970
 
4126
3971
  // src/Tooltip/Tooltip.tsx
4127
- var import_jsx_runtime107 = require("react/jsx-runtime");
3972
+ var import_jsx_runtime108 = require("react/jsx-runtime");
4128
3973
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
4129
3974
  const props = {
4130
3975
  ...rest,
4131
3976
  isOpen: open
4132
3977
  };
4133
- const classNames2 = (0, import_system88.useClassNames)({ component: "Tooltip", variant, size });
3978
+ const classNames2 = (0, import_system87.useClassNames)({ component: "Tooltip", variant, size });
4134
3979
  const portal = usePortalContainer();
4135
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
4136
- import_react_aria_components55.Tooltip,
3980
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
3981
+ import_react_aria_components59.Tooltip,
4137
3982
  {
4138
3983
  ...props,
4139
- className: (0, import_system88.cn)("group/tooltip", classNames2.container),
3984
+ className: (0, import_system87.cn)("group/tooltip", classNames2.container),
4140
3985
  UNSTABLE_portalContainer: portal,
4141
3986
  children: [
4142
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components55.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3987
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components59.OverlayArrow, { className: classNames2.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" }) }) }),
4143
3988
  children
4144
3989
  ]
4145
3990
  }
@@ -4151,14 +3996,14 @@ _Tooltip.Trigger = _TooltipTrigger;
4151
3996
  var import_visually_hidden = require("@react-aria/visually-hidden");
4152
3997
 
4153
3998
  // src/XLoader/XLoader.tsx
4154
- var import_react64 = require("react");
4155
- var import_react_aria_components57 = require("react-aria-components");
4156
- var import_system90 = require("@marigold/system");
3999
+ var import_react62 = require("react");
4000
+ var import_react_aria_components61 = require("react-aria-components");
4001
+ var import_system89 = require("@marigold/system");
4157
4002
 
4158
4003
  // src/XLoader/BaseLoader.tsx
4159
- var import_react_aria_components56 = require("react-aria-components");
4004
+ var import_react_aria_components60 = require("react-aria-components");
4160
4005
  var import_i18n6 = require("@react-aria/i18n");
4161
- var import_system89 = require("@marigold/system");
4006
+ var import_system88 = require("@marigold/system");
4162
4007
 
4163
4008
  // src/intl/messages.ts
4164
4009
  var intlMessages2 = {
@@ -4171,7 +4016,7 @@ var intlMessages2 = {
4171
4016
  };
4172
4017
 
4173
4018
  // src/XLoader/BaseLoader.tsx
4174
- var import_jsx_runtime108 = require("react/jsx-runtime");
4019
+ var import_jsx_runtime109 = require("react/jsx-runtime");
4175
4020
  var BaseLoader = ({
4176
4021
  variant,
4177
4022
  size,
@@ -4180,16 +4025,16 @@ var BaseLoader = ({
4180
4025
  ...props
4181
4026
  }) => {
4182
4027
  const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
4183
- const className = (0, import_system89.useClassNames)({ component: "XLoader", variant, size });
4184
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
4185
- import_react_aria_components56.ProgressBar,
4028
+ const className = (0, import_system88.useClassNames)({ component: "XLoader", variant, size });
4029
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
4030
+ import_react_aria_components60.ProgressBar,
4186
4031
  {
4187
4032
  className: className.container,
4188
4033
  isIndeterminate: true,
4189
4034
  "aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
4190
4035
  ...props,
4191
4036
  children: [
4192
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
4037
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
4193
4038
  "svg",
4194
4039
  {
4195
4040
  xmlns: "http://www.w3.org/2000/svg",
@@ -4197,13 +4042,13 @@ var BaseLoader = ({
4197
4042
  fill: "currentColor",
4198
4043
  className: className.loader,
4199
4044
  children: [
4200
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4201
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4045
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4046
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4202
4047
  "path",
4203
4048
  {
4204
4049
  id: "XMLID_5_",
4205
4050
  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",
4206
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4051
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4207
4052
  "animate",
4208
4053
  {
4209
4054
  attributeName: "opacity",
@@ -4216,12 +4061,12 @@ var BaseLoader = ({
4216
4061
  )
4217
4062
  }
4218
4063
  ),
4219
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4064
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4220
4065
  "path",
4221
4066
  {
4222
4067
  id: "XMLID_18_",
4223
4068
  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",
4224
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4069
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4225
4070
  "animate",
4226
4071
  {
4227
4072
  attributeName: "opacity",
@@ -4234,12 +4079,12 @@ var BaseLoader = ({
4234
4079
  )
4235
4080
  }
4236
4081
  ),
4237
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4082
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4238
4083
  "path",
4239
4084
  {
4240
4085
  id: "XMLID_19_",
4241
4086
  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",
4242
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4087
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4243
4088
  "animate",
4244
4089
  {
4245
4090
  attributeName: "opacity",
@@ -4252,12 +4097,12 @@ var BaseLoader = ({
4252
4097
  )
4253
4098
  }
4254
4099
  ),
4255
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4100
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4256
4101
  "path",
4257
4102
  {
4258
4103
  id: "XMLID_20_",
4259
4104
  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",
4260
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4105
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4261
4106
  "animate",
4262
4107
  {
4263
4108
  attributeName: "opacity",
@@ -4270,12 +4115,12 @@ var BaseLoader = ({
4270
4115
  )
4271
4116
  }
4272
4117
  ),
4273
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4118
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4274
4119
  "path",
4275
4120
  {
4276
4121
  id: "XMLID_21_",
4277
4122
  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",
4278
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4123
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4279
4124
  "animate",
4280
4125
  {
4281
4126
  attributeName: "opacity",
@@ -4288,12 +4133,12 @@ var BaseLoader = ({
4288
4133
  )
4289
4134
  }
4290
4135
  ),
4291
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4136
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4292
4137
  "path",
4293
4138
  {
4294
4139
  id: "XMLID_22_",
4295
4140
  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",
4296
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4141
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4297
4142
  "animate",
4298
4143
  {
4299
4144
  attributeName: "opacity",
@@ -4306,12 +4151,12 @@ var BaseLoader = ({
4306
4151
  )
4307
4152
  }
4308
4153
  ),
4309
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4154
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4310
4155
  "path",
4311
4156
  {
4312
4157
  id: "XMLID_23_",
4313
4158
  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",
4314
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4159
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4315
4160
  "animate",
4316
4161
  {
4317
4162
  attributeName: "opacity",
@@ -4324,12 +4169,12 @@ var BaseLoader = ({
4324
4169
  )
4325
4170
  }
4326
4171
  ),
4327
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4172
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4328
4173
  "path",
4329
4174
  {
4330
4175
  id: "XMLID_24_",
4331
4176
  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",
4332
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4177
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4333
4178
  "animate",
4334
4179
  {
4335
4180
  attributeName: "opacity",
@@ -4342,12 +4187,12 @@ var BaseLoader = ({
4342
4187
  )
4343
4188
  }
4344
4189
  ),
4345
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4190
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4346
4191
  "path",
4347
4192
  {
4348
4193
  id: "XMLID_25_",
4349
4194
  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",
4350
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4195
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4351
4196
  "animate",
4352
4197
  {
4353
4198
  attributeName: "opacity",
@@ -4360,12 +4205,12 @@ var BaseLoader = ({
4360
4205
  )
4361
4206
  }
4362
4207
  ),
4363
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4208
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4364
4209
  "path",
4365
4210
  {
4366
4211
  id: "XMLID_26_",
4367
4212
  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",
4368
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4213
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4369
4214
  "animate",
4370
4215
  {
4371
4216
  attributeName: "opacity",
@@ -4378,12 +4223,12 @@ var BaseLoader = ({
4378
4223
  )
4379
4224
  }
4380
4225
  ),
4381
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4226
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4382
4227
  "path",
4383
4228
  {
4384
4229
  id: "XMLID_27_",
4385
4230
  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",
4386
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4231
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4387
4232
  "animate",
4388
4233
  {
4389
4234
  attributeName: "opacity",
@@ -4399,48 +4244,48 @@ var BaseLoader = ({
4399
4244
  ]
4400
4245
  }
4401
4246
  ),
4402
- children ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components56.Label, { className: className.label, children }) : null
4247
+ children ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components60.Label, { className: className.label, children }) : null
4403
4248
  ]
4404
4249
  }
4405
4250
  );
4406
4251
  };
4407
4252
 
4408
4253
  // src/XLoader/XLoader.tsx
4409
- var import_jsx_runtime109 = require("react/jsx-runtime");
4410
- var LoaderFullSize = (props) => {
4411
- const id = (0, import_react64.useId)();
4412
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components57.Modal, { className: "grid h-[--visual-viewport-height] cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_react_aria_components57.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { id, ...props }) }) }) });
4254
+ var import_jsx_runtime110 = require("react/jsx-runtime");
4255
+ var LoaderFullScreen = (props) => {
4256
+ const id = (0, import_react62.useId)();
4257
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components61.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(BaseLoader, { id, ...props }) }) }) });
4413
4258
  };
4414
- var LoaderInline = (props) => {
4415
- const className = (0, import_system90.useClassNames)({
4259
+ var LoaderSection = (props) => {
4260
+ const className = (0, import_system89.useClassNames)({
4416
4261
  component: "Underlay",
4417
4262
  variant: "modal",
4418
4263
  className: "flex size-full items-center justify-center"
4419
4264
  });
4420
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { ...props }) });
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(BaseLoader, { ...props }) });
4421
4266
  };
4422
- var XLoader = ({ mode, variant, ...props }) => mode === "fullsize" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(LoaderFullSize, { variant: variant != null ? variant : "inverted", ...props }) : mode === "inline" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(LoaderInline, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(BaseLoader, { variant, ...props });
4267
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(BaseLoader, { variant, ...props });
4423
4268
 
4424
4269
  // src/Tabs/Tabs.tsx
4425
- var import_react_aria_components61 = require("react-aria-components");
4426
- var import_system93 = require("@marigold/system");
4270
+ var import_react_aria_components65 = require("react-aria-components");
4271
+ var import_system92 = require("@marigold/system");
4427
4272
 
4428
4273
  // src/Tabs/Context.ts
4429
- var import_react65 = require("react");
4430
- var TabContext = (0, import_react65.createContext)({});
4431
- var useTabContext = () => (0, import_react65.useContext)(TabContext);
4274
+ var import_react63 = require("react");
4275
+ var TabContext = (0, import_react63.createContext)({});
4276
+ var useTabContext = () => (0, import_react63.useContext)(TabContext);
4432
4277
 
4433
4278
  // src/Tabs/Tab.tsx
4434
- var import_react_aria_components58 = require("react-aria-components");
4435
- var import_system91 = require("@marigold/system");
4436
- var import_jsx_runtime110 = require("react/jsx-runtime");
4279
+ var import_react_aria_components62 = require("react-aria-components");
4280
+ var import_system90 = require("@marigold/system");
4281
+ var import_jsx_runtime111 = require("react/jsx-runtime");
4437
4282
  var _Tab = (props) => {
4438
4283
  const { classNames: classNames2 } = useTabContext();
4439
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4440
- import_react_aria_components58.Tab,
4284
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
4285
+ import_react_aria_components62.Tab,
4441
4286
  {
4442
4287
  ...props,
4443
- className: (0, import_system91.cn)(
4288
+ className: (0, import_system90.cn)(
4444
4289
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4445
4290
  classNames2.tab
4446
4291
  ),
@@ -4450,49 +4295,49 @@ var _Tab = (props) => {
4450
4295
  };
4451
4296
 
4452
4297
  // src/Tabs/TabList.tsx
4453
- var import_react_aria_components59 = require("react-aria-components");
4454
- var import_system92 = require("@marigold/system");
4455
- var import_jsx_runtime111 = require("react/jsx-runtime");
4298
+ var import_react_aria_components63 = require("react-aria-components");
4299
+ var import_system91 = require("@marigold/system");
4300
+ var import_jsx_runtime112 = require("react/jsx-runtime");
4456
4301
  var _TabList = ({ space = 2, ...props }) => {
4457
4302
  const { classNames: classNames2 } = useTabContext();
4458
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
4459
- import_react_aria_components59.TabList,
4303
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
4304
+ import_react_aria_components63.TabList,
4460
4305
  {
4461
4306
  ...props,
4462
- className: (0, import_system92.cn)("flex", import_system92.gapSpace[space], classNames2.tabsList),
4307
+ className: (0, import_system91.cn)("flex", import_system91.gapSpace[space], classNames2.tabsList),
4463
4308
  children: props.children
4464
4309
  }
4465
4310
  );
4466
4311
  };
4467
4312
 
4468
4313
  // src/Tabs/TabPanel.tsx
4469
- var import_react_aria_components60 = require("react-aria-components");
4470
- var import_jsx_runtime112 = require("react/jsx-runtime");
4314
+ var import_react_aria_components64 = require("react-aria-components");
4315
+ var import_jsx_runtime113 = require("react/jsx-runtime");
4471
4316
  var _TabPanel = (props) => {
4472
4317
  const { classNames: classNames2 } = useTabContext();
4473
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components60.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4318
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_react_aria_components64.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4474
4319
  };
4475
4320
 
4476
4321
  // src/Tabs/Tabs.tsx
4477
- var import_jsx_runtime113 = require("react/jsx-runtime");
4322
+ var import_jsx_runtime114 = require("react/jsx-runtime");
4478
4323
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4479
4324
  const props = {
4480
4325
  isDisabled: disabled,
4481
4326
  ...rest
4482
4327
  };
4483
- const classNames2 = (0, import_system93.useClassNames)({
4328
+ const classNames2 = (0, import_system92.useClassNames)({
4484
4329
  component: "Tabs",
4485
4330
  size,
4486
4331
  variant
4487
4332
  });
4488
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_react_aria_components61.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4333
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_react_aria_components65.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4489
4334
  };
4490
4335
  _Tabs.List = _TabList;
4491
4336
  _Tabs.TabPanel = _TabPanel;
4492
4337
  _Tabs.Item = _Tab;
4493
4338
 
4494
4339
  // src/RouterProvider/RouterProvider.tsx
4495
- var import_react_aria_components62 = require("react-aria-components");
4340
+ var import_react_aria_components66 = require("react-aria-components");
4496
4341
  // Annotate the CommonJS export names for ESM import in node:
4497
4342
  0 && (module.exports = {
4498
4343
  Accordion,
@@ -4567,6 +4412,8 @@ var import_react_aria_components62 = require("react-aria-components");
4567
4412
  VisuallyHidden,
4568
4413
  XLoader,
4569
4414
  _Calendar,
4415
+ gridColsAlign,
4416
+ gridColumn,
4570
4417
  useAsyncList,
4571
4418
  useFieldGroupContext,
4572
4419
  useListData,