@marigold/components 11.3.0 → 11.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +149 -72
- package/dist/index.d.ts +149 -72
- package/dist/index.js +677 -681
- package/dist/index.mjs +593 -594
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -903,7 +903,7 @@ __export(index_exports, {
|
|
|
903
903
|
Popover: () => _Popover,
|
|
904
904
|
Radio: () => _Radio,
|
|
905
905
|
RadioGroup: () => _RadioGroup,
|
|
906
|
-
RouterProvider: () =>
|
|
906
|
+
RouterProvider: () => import_react_aria_components69.RouterProvider,
|
|
907
907
|
Scrollable: () => Scrollable,
|
|
908
908
|
SearchField: () => _SearchField,
|
|
909
909
|
SectionMessage: () => SectionMessage,
|
|
@@ -1397,7 +1397,7 @@ var import_react_aria_components9 = require("react-aria-components");
|
|
|
1397
1397
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1398
1398
|
var _ListBoxItem = ({ ...props }) => {
|
|
1399
1399
|
const { classNames: classNames3 } = useListBoxContext();
|
|
1400
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_aria_components9.ListBoxItem, { ...props, className: classNames3.
|
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_aria_components9.ListBoxItem, { ...props, className: classNames3.item });
|
|
1401
1401
|
};
|
|
1402
1402
|
|
|
1403
1403
|
// src/ListBox/ListBoxSection.tsx
|
|
@@ -2180,101 +2180,14 @@ var Container = ({
|
|
|
2180
2180
|
);
|
|
2181
2181
|
|
|
2182
2182
|
// src/Dialog/Dialog.tsx
|
|
2183
|
-
var
|
|
2183
|
+
var import_react28 = require("react");
|
|
2184
2184
|
var import_react_aria_components25 = require("react-aria-components");
|
|
2185
|
-
var import_system40 = require("@marigold/system");
|
|
2186
|
-
|
|
2187
|
-
// src/Dialog/DialogActions.tsx
|
|
2188
|
-
var import_system35 = require("@marigold/system");
|
|
2189
|
-
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2190
|
-
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2191
|
-
const classNames3 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size: size2 });
|
|
2192
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: (0, import_system35.cn)("[grid-area:actions]", classNames3.actions), children });
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
// src/Dialog/DialogContent.tsx
|
|
2196
|
-
var import_system36 = require("@marigold/system");
|
|
2197
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2198
|
-
var DialogContent = ({
|
|
2199
|
-
variant,
|
|
2200
|
-
size: size2,
|
|
2201
|
-
children
|
|
2202
|
-
}) => {
|
|
2203
|
-
const classNames3 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size: size2 });
|
|
2204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: (0, import_system36.cn)("[grid-area:content]", classNames3.content), children });
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
// src/Dialog/DialogTitle.tsx
|
|
2208
|
-
var import_system39 = require("@marigold/system");
|
|
2209
|
-
|
|
2210
|
-
// src/Header/Header.tsx
|
|
2211
|
-
var import_react_aria_components21 = require("react-aria-components");
|
|
2212
|
-
var import_system37 = require("@marigold/system");
|
|
2213
|
-
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2214
|
-
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2215
|
-
const classNames3 = (0, import_system37.useClassNames)({
|
|
2216
|
-
component: "Header",
|
|
2217
|
-
variant,
|
|
2218
|
-
size: size2
|
|
2219
|
-
});
|
|
2220
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_aria_components21.Header, { className: classNames3, ...props, children: props.children });
|
|
2221
|
-
};
|
|
2222
|
-
|
|
2223
|
-
// src/Headline/Headline.tsx
|
|
2224
|
-
var import_react_aria_components22 = require("react-aria-components");
|
|
2225
2185
|
var import_system38 = require("@marigold/system");
|
|
2226
|
-
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2227
|
-
var _Headline = ({
|
|
2228
|
-
variant,
|
|
2229
|
-
size: size2,
|
|
2230
|
-
children,
|
|
2231
|
-
align = "left",
|
|
2232
|
-
color,
|
|
2233
|
-
level = "1",
|
|
2234
|
-
...props
|
|
2235
|
-
}) => {
|
|
2236
|
-
const classNames3 = (0, import_system38.useClassNames)({
|
|
2237
|
-
component: "Headline",
|
|
2238
|
-
variant,
|
|
2239
|
-
size: size2 != null ? size2 : `level-${level}`
|
|
2240
|
-
});
|
|
2241
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2242
|
-
import_react_aria_components22.Heading,
|
|
2243
|
-
{
|
|
2244
|
-
level: Number(level),
|
|
2245
|
-
...props,
|
|
2246
|
-
className: (0, import_system38.cn)(
|
|
2247
|
-
classNames3,
|
|
2248
|
-
"max-w-(--maxHeadlineWidth)",
|
|
2249
|
-
// possibly set by a <Container>
|
|
2250
|
-
import_system38.textAlign[align]
|
|
2251
|
-
),
|
|
2252
|
-
style: { color: color && (0, import_system38.ensureCssVar)(color, "color") },
|
|
2253
|
-
children
|
|
2254
|
-
}
|
|
2255
|
-
);
|
|
2256
|
-
};
|
|
2257
|
-
|
|
2258
|
-
// src/Dialog/DialogTitle.tsx
|
|
2259
|
-
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2260
|
-
var DialogTitle = ({
|
|
2261
|
-
level = "2",
|
|
2262
|
-
variant,
|
|
2263
|
-
size: size2,
|
|
2264
|
-
children
|
|
2265
|
-
}) => {
|
|
2266
|
-
const classNames3 = (0, import_system39.useClassNames)({ component: "Dialog", variant, size: size2 });
|
|
2267
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(_Header, { className: (0, import_system39.cn)("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(_Headline, { slot: "title", level, children }) });
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
// src/Dialog/DialogTrigger.tsx
|
|
2271
|
-
var import_react25 = require("react");
|
|
2272
|
-
var import_react_aria_components24 = require("react-aria-components");
|
|
2273
2186
|
|
|
2274
2187
|
// src/Overlay/Modal.tsx
|
|
2275
2188
|
var import_react24 = require("react");
|
|
2276
|
-
var
|
|
2277
|
-
var
|
|
2189
|
+
var import_react_aria_components21 = require("react-aria-components");
|
|
2190
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2278
2191
|
var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2279
2192
|
const props = {
|
|
2280
2193
|
isOpen: open,
|
|
@@ -2282,15 +2195,15 @@ var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismis
|
|
|
2282
2195
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
2283
2196
|
...rest
|
|
2284
2197
|
};
|
|
2285
|
-
return /* @__PURE__ */ (0,
|
|
2198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2286
2199
|
Underlay,
|
|
2287
2200
|
{
|
|
2288
2201
|
dismissable,
|
|
2289
2202
|
keyboardDismissable,
|
|
2290
2203
|
open,
|
|
2291
2204
|
variant: "modal",
|
|
2292
|
-
children: /* @__PURE__ */ (0,
|
|
2293
|
-
|
|
2205
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2206
|
+
import_react_aria_components21.Modal,
|
|
2294
2207
|
{
|
|
2295
2208
|
ref,
|
|
2296
2209
|
className: "relative flex w-full justify-center",
|
|
@@ -2302,52 +2215,229 @@ var _Modal = (0, import_react24.forwardRef)(({ open, dismissable, keyboardDismis
|
|
|
2302
2215
|
);
|
|
2303
2216
|
});
|
|
2304
2217
|
|
|
2218
|
+
// src/Overlay/NonModal.tsx
|
|
2219
|
+
var import_react26 = require("react");
|
|
2220
|
+
var import_react_aria_components22 = require("react-aria-components");
|
|
2221
|
+
var import_react_stately = require("react-stately");
|
|
2222
|
+
var import_focus = require("@react-aria/focus");
|
|
2223
|
+
var import_overlays2 = require("@react-aria/overlays");
|
|
2224
|
+
var import_ssr2 = require("@react-aria/ssr");
|
|
2225
|
+
var import_utils = require("@react-aria/utils");
|
|
2226
|
+
|
|
2227
|
+
// src/utils/useRenderProps.tsx
|
|
2228
|
+
var import_react25 = require("react");
|
|
2229
|
+
function useRenderProps(props) {
|
|
2230
|
+
let {
|
|
2231
|
+
className,
|
|
2232
|
+
style,
|
|
2233
|
+
children,
|
|
2234
|
+
defaultClassName = void 0,
|
|
2235
|
+
defaultChildren = void 0,
|
|
2236
|
+
defaultStyle,
|
|
2237
|
+
values
|
|
2238
|
+
} = props;
|
|
2239
|
+
return (0, import_react25.useMemo)(() => {
|
|
2240
|
+
let computedClassName;
|
|
2241
|
+
let computedStyle;
|
|
2242
|
+
let computedChildren;
|
|
2243
|
+
if (typeof className === "function") {
|
|
2244
|
+
computedClassName = className({ ...values, defaultClassName });
|
|
2245
|
+
} else {
|
|
2246
|
+
computedClassName = className;
|
|
2247
|
+
}
|
|
2248
|
+
if (typeof style === "function") {
|
|
2249
|
+
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
2250
|
+
} else {
|
|
2251
|
+
computedStyle = style;
|
|
2252
|
+
}
|
|
2253
|
+
if (typeof children === "function") {
|
|
2254
|
+
computedChildren = children({ ...values, defaultChildren });
|
|
2255
|
+
} else if (children == null) {
|
|
2256
|
+
computedChildren = defaultChildren;
|
|
2257
|
+
} else {
|
|
2258
|
+
computedChildren = children;
|
|
2259
|
+
}
|
|
2260
|
+
return {
|
|
2261
|
+
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
2262
|
+
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
2263
|
+
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
2264
|
+
"data-rac": ""
|
|
2265
|
+
};
|
|
2266
|
+
}, [
|
|
2267
|
+
className,
|
|
2268
|
+
style,
|
|
2269
|
+
children,
|
|
2270
|
+
defaultClassName,
|
|
2271
|
+
defaultChildren,
|
|
2272
|
+
defaultStyle,
|
|
2273
|
+
values
|
|
2274
|
+
]);
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
// src/Overlay/useNonModal.ts
|
|
2278
|
+
var import_overlays = require("@react-aria/overlays");
|
|
2279
|
+
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
2280
|
+
let { overlayProps } = (0, import_overlays.useOverlay)(
|
|
2281
|
+
{
|
|
2282
|
+
isOpen: state.isOpen,
|
|
2283
|
+
onClose: state.close,
|
|
2284
|
+
shouldCloseOnBlur: false,
|
|
2285
|
+
isDismissable: false,
|
|
2286
|
+
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
2287
|
+
},
|
|
2288
|
+
nonModalRef
|
|
2289
|
+
);
|
|
2290
|
+
return {
|
|
2291
|
+
nonModalProps: overlayProps
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
// src/Overlay/NonModal.tsx
|
|
2296
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2297
|
+
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
2298
|
+
const { nonModalProps } = useNonModal(props, state);
|
|
2299
|
+
const ref = props.nonModalRef;
|
|
2300
|
+
const portalContainer = usePortalContainer();
|
|
2301
|
+
const isEntering = (0, import_utils.useEnterAnimation)(ref) || props.isEntering || false;
|
|
2302
|
+
const renderProps = useRenderProps({
|
|
2303
|
+
...props,
|
|
2304
|
+
defaultClassName: "react-aria-NonModalOverlay",
|
|
2305
|
+
values: {
|
|
2306
|
+
isEntering,
|
|
2307
|
+
isExiting,
|
|
2308
|
+
state
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
const viewport = (0, import_utils.useViewportSize)();
|
|
2312
|
+
const style = {
|
|
2313
|
+
...renderProps.style,
|
|
2314
|
+
"--visual-viewport-height": viewport.height + "px"
|
|
2315
|
+
};
|
|
2316
|
+
const overlay = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2317
|
+
"div",
|
|
2318
|
+
{
|
|
2319
|
+
...(0, import_utils.mergeProps)((0, import_utils.filterDOMProps)(props), nonModalProps),
|
|
2320
|
+
...renderProps,
|
|
2321
|
+
tabIndex: -1,
|
|
2322
|
+
"aria-label": props["aria-label"],
|
|
2323
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
2324
|
+
ref,
|
|
2325
|
+
slot: props.slot || void 0,
|
|
2326
|
+
style,
|
|
2327
|
+
"data-entering": isEntering || void 0,
|
|
2328
|
+
"data-exiting": isExiting || void 0,
|
|
2329
|
+
children: [
|
|
2330
|
+
renderProps.children,
|
|
2331
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
|
|
2332
|
+
]
|
|
2333
|
+
}
|
|
2334
|
+
);
|
|
2335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2336
|
+
import_overlays2.Overlay,
|
|
2337
|
+
{
|
|
2338
|
+
isExiting,
|
|
2339
|
+
portalContainer,
|
|
2340
|
+
disableFocusManagement: true,
|
|
2341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components22.Provider, { values: [[import_react_aria_components22.OverlayTriggerStateContext, state]], children: overlay }) })
|
|
2342
|
+
}
|
|
2343
|
+
);
|
|
2344
|
+
};
|
|
2345
|
+
var NonModal = (0, import_react26.forwardRef)(
|
|
2346
|
+
({ open, ...rest }, ref) => {
|
|
2347
|
+
const props = {
|
|
2348
|
+
isOpen: open,
|
|
2349
|
+
...rest
|
|
2350
|
+
};
|
|
2351
|
+
ref = (0, import_utils.useObjectRef)(ref);
|
|
2352
|
+
const contextState = (0, import_react26.useContext)(import_react_aria_components22.OverlayTriggerStateContext);
|
|
2353
|
+
const localState = (0, import_react_stately.useOverlayTriggerState)(props);
|
|
2354
|
+
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
2355
|
+
const isExiting = (0, import_utils.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
|
|
2356
|
+
const isSSR = (0, import_ssr2.useIsSSR)();
|
|
2357
|
+
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
2358
|
+
return null;
|
|
2359
|
+
}
|
|
2360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2361
|
+
NonModalInner,
|
|
2362
|
+
{
|
|
2363
|
+
...props,
|
|
2364
|
+
nonModalRef: ref,
|
|
2365
|
+
state,
|
|
2366
|
+
isExiting
|
|
2367
|
+
}
|
|
2368
|
+
);
|
|
2369
|
+
}
|
|
2370
|
+
);
|
|
2371
|
+
|
|
2372
|
+
// src/Dialog/DialogActions.tsx
|
|
2373
|
+
var import_system35 = require("@marigold/system");
|
|
2374
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2375
|
+
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2376
|
+
const classNames3 = (0, import_system35.useClassNames)({ component: "Dialog", variant, size: size2 });
|
|
2377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: (0, import_system35.cn)("[grid-area:actions]", classNames3.actions), children });
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
// src/Dialog/DialogContent.tsx
|
|
2381
|
+
var import_system36 = require("@marigold/system");
|
|
2382
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2383
|
+
var DialogContent = ({
|
|
2384
|
+
variant,
|
|
2385
|
+
size: size2,
|
|
2386
|
+
children
|
|
2387
|
+
}) => {
|
|
2388
|
+
const classNames3 = (0, import_system36.useClassNames)({ component: "Dialog", variant, size: size2 });
|
|
2389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: (0, import_system36.cn)("[grid-area:content]", classNames3.content), children });
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
// src/Dialog/DialogTitle.tsx
|
|
2393
|
+
var import_react_aria_components23 = require("react-aria-components");
|
|
2394
|
+
var import_system37 = require("@marigold/system");
|
|
2395
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2396
|
+
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2397
|
+
const classNames3 = (0, import_system37.useClassNames)({
|
|
2398
|
+
component: "Dialog",
|
|
2399
|
+
variant,
|
|
2400
|
+
size: size2
|
|
2401
|
+
});
|
|
2402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components23.Header, { className: (0, import_system37.cn)("[grid-area:title]", classNames3.header), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components23.Heading, { slot: "title", className: classNames3.title, children }) });
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2305
2405
|
// src/Dialog/DialogTrigger.tsx
|
|
2306
|
-
var
|
|
2406
|
+
var import_react27 = require("react");
|
|
2407
|
+
var import_react_aria_components24 = require("react-aria-components");
|
|
2408
|
+
var import_interactions = require("@react-aria/interactions");
|
|
2409
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2410
|
+
var DialogContext = (0, import_react27.createContext)({});
|
|
2307
2411
|
var _DialogTrigger = ({
|
|
2308
2412
|
open,
|
|
2309
2413
|
dismissable,
|
|
2310
2414
|
keyboardDismissable,
|
|
2311
|
-
|
|
2415
|
+
size: size2,
|
|
2312
2416
|
...rest
|
|
2313
2417
|
}) => {
|
|
2314
2418
|
const props = {
|
|
2315
2419
|
isOpen: open,
|
|
2420
|
+
isDismissable: dismissable,
|
|
2421
|
+
isKeyboardDismissDisabled: !keyboardDismissable,
|
|
2316
2422
|
...rest
|
|
2317
2423
|
};
|
|
2318
|
-
|
|
2319
|
-
const [dialogTrigger, dialog] = children;
|
|
2320
|
-
const hasDialogTrigger = dialogTrigger.type !== _Dialog;
|
|
2321
|
-
const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
|
|
2322
|
-
if (isNonModal)
|
|
2323
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria_components24.DialogTrigger, { ...props, children: props.children });
|
|
2324
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react_aria_components24.DialogTrigger, { ...props, children: [
|
|
2325
|
-
hasDialogTrigger && dialogTrigger,
|
|
2326
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2327
|
-
_Modal,
|
|
2328
|
-
{
|
|
2329
|
-
dismissable,
|
|
2330
|
-
keyboardDismissable,
|
|
2331
|
-
children: currentDialog
|
|
2332
|
-
}
|
|
2333
|
-
)
|
|
2334
|
-
] });
|
|
2424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContext.Provider, { value: props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components24.DialogTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_interactions.PressResponder, { isPressed: false, children: props.children }) }) });
|
|
2335
2425
|
};
|
|
2336
2426
|
|
|
2337
2427
|
// src/Dialog/Dialog.tsx
|
|
2338
|
-
var
|
|
2428
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2339
2429
|
var CloseButton = ({ className }) => {
|
|
2340
|
-
const ctx = (0,
|
|
2341
|
-
return /* @__PURE__ */ (0,
|
|
2430
|
+
const ctx = (0, import_react28.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
|
|
2431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2342
2432
|
"button",
|
|
2343
2433
|
{
|
|
2344
|
-
className: (0,
|
|
2434
|
+
className: (0, import_system38.cn)(
|
|
2345
2435
|
"h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
|
|
2346
2436
|
className
|
|
2347
2437
|
),
|
|
2348
2438
|
onClick: ctx == null ? void 0 : ctx.close,
|
|
2349
2439
|
slot: "dismiss-button",
|
|
2350
|
-
children: /* @__PURE__ */ (0,
|
|
2440
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2351
2441
|
"path",
|
|
2352
2442
|
{
|
|
2353
2443
|
fillRule: "evenodd",
|
|
@@ -2358,36 +2448,46 @@ var CloseButton = ({ className }) => {
|
|
|
2358
2448
|
}
|
|
2359
2449
|
);
|
|
2360
2450
|
};
|
|
2361
|
-
var _Dialog = (
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2451
|
+
var _Dialog = (0, import_react28.forwardRef)(
|
|
2452
|
+
(props, ref) => {
|
|
2453
|
+
var _a;
|
|
2454
|
+
const classNames3 = (0, import_system38.useClassNames)({
|
|
2455
|
+
component: "Dialog",
|
|
2456
|
+
variant: props.variant,
|
|
2457
|
+
size: props.size
|
|
2458
|
+
});
|
|
2459
|
+
const { isDismissable, isKeyboardDismissDisabled, isOpen } = (0, import_react28.useContext)(DialogContext);
|
|
2460
|
+
const state = (0, import_react28.useContext)(import_react_aria_components25.OverlayTriggerStateContext);
|
|
2461
|
+
const children = typeof props.children === "function" ? props.children({
|
|
2462
|
+
close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
|
|
2463
|
+
}
|
|
2464
|
+
}) : props.children;
|
|
2465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2466
|
+
_Modal,
|
|
2467
|
+
{
|
|
2468
|
+
dismissable: isDismissable,
|
|
2469
|
+
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2470
|
+
open: isOpen,
|
|
2471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2472
|
+
import_react_aria_components25.Dialog,
|
|
2473
|
+
{
|
|
2474
|
+
...props,
|
|
2475
|
+
ref,
|
|
2476
|
+
className: (0, import_system38.cn)(
|
|
2477
|
+
"relative outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2478
|
+
"grid [grid-template-areas:'title'_'content'_'actions']",
|
|
2479
|
+
classNames3.container
|
|
2480
|
+
),
|
|
2481
|
+
children: [
|
|
2482
|
+
props.closeButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CloseButton, { className: classNames3.closeButton }),
|
|
2483
|
+
children
|
|
2484
|
+
]
|
|
2485
|
+
}
|
|
2486
|
+
)
|
|
2487
|
+
}
|
|
2488
|
+
);
|
|
2489
|
+
}
|
|
2490
|
+
);
|
|
2391
2491
|
_Dialog.Trigger = _DialogTrigger;
|
|
2392
2492
|
_Dialog.Title = DialogTitle;
|
|
2393
2493
|
_Dialog.Content = DialogContent;
|
|
@@ -2395,33 +2495,33 @@ _Dialog.Actions = DialogActions;
|
|
|
2395
2495
|
|
|
2396
2496
|
// src/Divider/Divider.tsx
|
|
2397
2497
|
var import_react_aria_components26 = require("react-aria-components");
|
|
2398
|
-
var
|
|
2399
|
-
var
|
|
2498
|
+
var import_system39 = require("@marigold/system");
|
|
2499
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2400
2500
|
var _Divider = ({ variant, ...props }) => {
|
|
2401
|
-
const classNames3 = (0,
|
|
2402
|
-
return /* @__PURE__ */ (0,
|
|
2501
|
+
const classNames3 = (0, import_system39.useClassNames)({ component: "Divider", variant });
|
|
2502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_aria_components26.Separator, { className: (0, import_system39.cn)("border-none", classNames3), ...props });
|
|
2403
2503
|
};
|
|
2404
2504
|
|
|
2405
2505
|
// src/Footer/Footer.tsx
|
|
2406
|
-
var
|
|
2407
|
-
var
|
|
2506
|
+
var import_system40 = require("@marigold/system");
|
|
2507
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2408
2508
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2409
|
-
const classNames3 = (0,
|
|
2410
|
-
return /* @__PURE__ */ (0,
|
|
2509
|
+
const classNames3 = (0, import_system40.useClassNames)({ component: "Footer", variant, size: size2 });
|
|
2510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("footer", { ...props, className: classNames3, children });
|
|
2411
2511
|
};
|
|
2412
2512
|
|
|
2413
2513
|
// src/Form/Form.tsx
|
|
2414
2514
|
var import_react_aria_components27 = require("react-aria-components");
|
|
2415
2515
|
|
|
2416
2516
|
// src/Grid/Grid.tsx
|
|
2417
|
-
var
|
|
2517
|
+
var import_system41 = require("@marigold/system");
|
|
2418
2518
|
|
|
2419
2519
|
// src/Grid/GridArea.tsx
|
|
2420
|
-
var
|
|
2421
|
-
var GridArea = ({ name, children }) => /* @__PURE__ */ (0,
|
|
2520
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2521
|
+
var GridArea = ({ name, children }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { style: { gridArea: name }, children });
|
|
2422
2522
|
|
|
2423
2523
|
// src/Grid/Grid.tsx
|
|
2424
|
-
var
|
|
2524
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2425
2525
|
var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
|
|
2426
2526
|
var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
|
|
2427
2527
|
var Grid = ({
|
|
@@ -2433,10 +2533,10 @@ var Grid = ({
|
|
|
2433
2533
|
space = 0,
|
|
2434
2534
|
...props
|
|
2435
2535
|
}) => {
|
|
2436
|
-
return /* @__PURE__ */ (0,
|
|
2536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2437
2537
|
"div",
|
|
2438
2538
|
{
|
|
2439
|
-
className: (0,
|
|
2539
|
+
className: (0, import_system41.cn)("grid", import_system41.gapSpace[space], import_system41.height[height]),
|
|
2440
2540
|
style: {
|
|
2441
2541
|
gridTemplateAreas: parseGridAreas(areas),
|
|
2442
2542
|
gridTemplateColumns: parseTemplateValue(columns),
|
|
@@ -2449,9 +2549,57 @@ var Grid = ({
|
|
|
2449
2549
|
};
|
|
2450
2550
|
Grid.Area = GridArea;
|
|
2451
2551
|
|
|
2552
|
+
// src/Header/Header.tsx
|
|
2553
|
+
var import_react_aria_components28 = require("react-aria-components");
|
|
2554
|
+
var import_system42 = require("@marigold/system");
|
|
2555
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2556
|
+
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2557
|
+
const classNames3 = (0, import_system42.useClassNames)({
|
|
2558
|
+
component: "Header",
|
|
2559
|
+
variant,
|
|
2560
|
+
size: size2
|
|
2561
|
+
});
|
|
2562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_aria_components28.Header, { className: classNames3, ...props, children: props.children });
|
|
2563
|
+
};
|
|
2564
|
+
|
|
2565
|
+
// src/Headline/Headline.tsx
|
|
2566
|
+
var import_react_aria_components29 = require("react-aria-components");
|
|
2567
|
+
var import_system43 = require("@marigold/system");
|
|
2568
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2569
|
+
var _Headline = ({
|
|
2570
|
+
variant,
|
|
2571
|
+
size: size2,
|
|
2572
|
+
children,
|
|
2573
|
+
align = "left",
|
|
2574
|
+
color,
|
|
2575
|
+
level = "1",
|
|
2576
|
+
...props
|
|
2577
|
+
}) => {
|
|
2578
|
+
const classNames3 = (0, import_system43.useClassNames)({
|
|
2579
|
+
component: "Headline",
|
|
2580
|
+
variant,
|
|
2581
|
+
size: size2 != null ? size2 : `level-${level}`
|
|
2582
|
+
});
|
|
2583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2584
|
+
import_react_aria_components29.Heading,
|
|
2585
|
+
{
|
|
2586
|
+
level: Number(level),
|
|
2587
|
+
...props,
|
|
2588
|
+
className: (0, import_system43.cn)(
|
|
2589
|
+
classNames3,
|
|
2590
|
+
"max-w-(--maxHeadlineWidth)",
|
|
2591
|
+
// possibly set by a <Container>
|
|
2592
|
+
import_system43.textAlign[align]
|
|
2593
|
+
),
|
|
2594
|
+
style: { color: color && (0, import_system43.ensureCssVar)(color, "color") },
|
|
2595
|
+
children
|
|
2596
|
+
}
|
|
2597
|
+
);
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2452
2600
|
// src/Image/Image.tsx
|
|
2453
2601
|
var import_system44 = require("@marigold/system");
|
|
2454
|
-
var
|
|
2602
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2455
2603
|
var Image = ({
|
|
2456
2604
|
variant,
|
|
2457
2605
|
size: size2,
|
|
@@ -2460,7 +2608,7 @@ var Image = ({
|
|
|
2460
2608
|
...props
|
|
2461
2609
|
}) => {
|
|
2462
2610
|
const classNames3 = (0, import_system44.useClassNames)({ component: "Image", variant, size: size2 });
|
|
2463
|
-
return /* @__PURE__ */ (0,
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2464
2612
|
"img",
|
|
2465
2613
|
{
|
|
2466
2614
|
...props,
|
|
@@ -2477,7 +2625,7 @@ var Image = ({
|
|
|
2477
2625
|
|
|
2478
2626
|
// src/Inline/Inline.tsx
|
|
2479
2627
|
var import_system45 = require("@marigold/system");
|
|
2480
|
-
var
|
|
2628
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2481
2629
|
var Inline = ({
|
|
2482
2630
|
space = 0,
|
|
2483
2631
|
alignX,
|
|
@@ -2486,7 +2634,7 @@ var Inline = ({
|
|
|
2486
2634
|
...props
|
|
2487
2635
|
}) => {
|
|
2488
2636
|
var _a, _b, _c, _d;
|
|
2489
|
-
return /* @__PURE__ */ (0,
|
|
2637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2490
2638
|
"div",
|
|
2491
2639
|
{
|
|
2492
2640
|
...props,
|
|
@@ -2502,28 +2650,28 @@ var Inline = ({
|
|
|
2502
2650
|
};
|
|
2503
2651
|
|
|
2504
2652
|
// src/DateField/DateField.tsx
|
|
2505
|
-
var
|
|
2506
|
-
var
|
|
2653
|
+
var import_react29 = require("react");
|
|
2654
|
+
var import_react_aria_components32 = require("react-aria-components");
|
|
2507
2655
|
|
|
2508
2656
|
// src/DateField/DateInput.tsx
|
|
2509
|
-
var
|
|
2657
|
+
var import_react_aria_components31 = require("react-aria-components");
|
|
2510
2658
|
var import_system47 = require("@marigold/system");
|
|
2511
2659
|
|
|
2512
2660
|
// src/DateField/DateSegment.tsx
|
|
2513
|
-
var
|
|
2661
|
+
var import_react_aria_components30 = require("react-aria-components");
|
|
2514
2662
|
var import_system46 = require("@marigold/system");
|
|
2515
|
-
var
|
|
2663
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2516
2664
|
var _DateSegment = ({ segment, ...props }) => {
|
|
2517
|
-
return /* @__PURE__ */ (0,
|
|
2518
|
-
|
|
2665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2666
|
+
import_react_aria_components30.DateSegment,
|
|
2519
2667
|
{
|
|
2520
2668
|
...props,
|
|
2521
2669
|
segment,
|
|
2522
2670
|
style: {
|
|
2523
2671
|
minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
|
|
2524
2672
|
},
|
|
2525
|
-
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0,
|
|
2526
|
-
/* @__PURE__ */ (0,
|
|
2673
|
+
children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2527
2675
|
"span",
|
|
2528
2676
|
{
|
|
2529
2677
|
"aria-hidden": "true",
|
|
@@ -2534,25 +2682,25 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2534
2682
|
children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
|
|
2535
2683
|
}
|
|
2536
2684
|
),
|
|
2537
|
-
/* @__PURE__ */ (0,
|
|
2685
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
|
|
2538
2686
|
] })
|
|
2539
2687
|
}
|
|
2540
2688
|
);
|
|
2541
2689
|
};
|
|
2542
2690
|
|
|
2543
2691
|
// src/DateField/DateInput.tsx
|
|
2544
|
-
var
|
|
2692
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2545
2693
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2546
2694
|
const classNames3 = (0, import_system47.useClassNames)({ component: "DateField", variant, size: size2 });
|
|
2547
|
-
return /* @__PURE__ */ (0,
|
|
2548
|
-
/* @__PURE__ */ (0,
|
|
2695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react_aria_components31.Group, { className: classNames3.field, children: [
|
|
2696
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components31.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2549
2697
|
action ? action : null
|
|
2550
2698
|
] });
|
|
2551
2699
|
};
|
|
2552
2700
|
|
|
2553
2701
|
// src/DateField/DateField.tsx
|
|
2554
|
-
var
|
|
2555
|
-
var _DateField = (0,
|
|
2702
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2703
|
+
var _DateField = (0, import_react29.forwardRef)(
|
|
2556
2704
|
({
|
|
2557
2705
|
variant,
|
|
2558
2706
|
size: size2,
|
|
@@ -2570,46 +2718,46 @@ var _DateField = (0, import_react27.forwardRef)(
|
|
|
2570
2718
|
isRequired: required,
|
|
2571
2719
|
...rest
|
|
2572
2720
|
};
|
|
2573
|
-
return /* @__PURE__ */ (0,
|
|
2721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2574
2722
|
FieldBase,
|
|
2575
2723
|
{
|
|
2576
|
-
as:
|
|
2724
|
+
as: import_react_aria_components32.DateField,
|
|
2577
2725
|
variant,
|
|
2578
2726
|
size: size2,
|
|
2579
2727
|
ref,
|
|
2580
2728
|
...props,
|
|
2581
|
-
children: /* @__PURE__ */ (0,
|
|
2729
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_DateInput, { action })
|
|
2582
2730
|
}
|
|
2583
2731
|
);
|
|
2584
2732
|
}
|
|
2585
2733
|
);
|
|
2586
2734
|
|
|
2587
2735
|
// src/Calendar/Calendar.tsx
|
|
2588
|
-
var
|
|
2589
|
-
var
|
|
2736
|
+
var import_react34 = require("react");
|
|
2737
|
+
var import_react_aria_components38 = require("react-aria-components");
|
|
2590
2738
|
var import_system52 = require("@marigold/system");
|
|
2591
2739
|
|
|
2592
2740
|
// src/Calendar/CalendarGrid.tsx
|
|
2593
|
-
var
|
|
2741
|
+
var import_react_aria_components34 = require("react-aria-components");
|
|
2594
2742
|
var import_system49 = require("@marigold/system");
|
|
2595
2743
|
|
|
2596
2744
|
// src/Calendar/CalendarGridHeader.tsx
|
|
2597
2745
|
var import_date = require("@internationalized/date");
|
|
2598
|
-
var
|
|
2599
|
-
var
|
|
2746
|
+
var import_react30 = require("react");
|
|
2747
|
+
var import_react_aria_components33 = require("react-aria-components");
|
|
2600
2748
|
var import_calendar = require("@react-aria/calendar");
|
|
2601
2749
|
var import_i18n3 = require("@react-aria/i18n");
|
|
2602
2750
|
var import_system48 = require("@marigold/system");
|
|
2603
|
-
var
|
|
2751
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2604
2752
|
function CalendarGridHeader(props) {
|
|
2605
|
-
const state = (0,
|
|
2753
|
+
const state = (0, import_react30.useContext)(import_react_aria_components33.CalendarStateContext);
|
|
2606
2754
|
const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
|
|
2607
2755
|
const { locale } = (0, import_i18n3.useLocale)();
|
|
2608
2756
|
const dayFormatter = (0, import_i18n3.useDateFormatter)({
|
|
2609
2757
|
weekday: "short",
|
|
2610
2758
|
timeZone: state.timeZone
|
|
2611
2759
|
});
|
|
2612
|
-
const weekDays = (0,
|
|
2760
|
+
const weekDays = (0, import_react30.useMemo)(() => {
|
|
2613
2761
|
const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
|
|
2614
2762
|
return [...new Array(7).keys()].map((index2) => {
|
|
2615
2763
|
const date = weekStart.add({ days: index2 });
|
|
@@ -2618,17 +2766,17 @@ function CalendarGridHeader(props) {
|
|
|
2618
2766
|
});
|
|
2619
2767
|
}, [locale, state.timeZone, dayFormatter]);
|
|
2620
2768
|
const classNames3 = (0, import_system48.useClassNames)({ component: "Calendar" });
|
|
2621
|
-
return /* @__PURE__ */ (0,
|
|
2769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
2622
2770
|
}
|
|
2623
2771
|
|
|
2624
2772
|
// src/Calendar/CalendarGrid.tsx
|
|
2625
|
-
var
|
|
2773
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2626
2774
|
var _CalendarGrid = () => {
|
|
2627
2775
|
const classNames3 = (0, import_system49.useClassNames)({ component: "Calendar" });
|
|
2628
|
-
return /* @__PURE__ */ (0,
|
|
2629
|
-
/* @__PURE__ */ (0,
|
|
2630
|
-
/* @__PURE__ */ (0,
|
|
2631
|
-
|
|
2776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react_aria_components34.CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
2777
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CalendarGridHeader, {}),
|
|
2778
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components34.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2779
|
+
import_react_aria_components34.CalendarCell,
|
|
2632
2780
|
{
|
|
2633
2781
|
date,
|
|
2634
2782
|
className: (0, import_system49.cn)(
|
|
@@ -2641,8 +2789,8 @@ var _CalendarGrid = () => {
|
|
|
2641
2789
|
};
|
|
2642
2790
|
|
|
2643
2791
|
// src/Calendar/CalendarListBox.tsx
|
|
2644
|
-
var
|
|
2645
|
-
var
|
|
2792
|
+
var import_react31 = require("react");
|
|
2793
|
+
var import_react_aria_components35 = require("react-aria-components");
|
|
2646
2794
|
var import_system50 = require("@marigold/system");
|
|
2647
2795
|
|
|
2648
2796
|
// src/Calendar/useFormattedMonths.tsx
|
|
@@ -2662,17 +2810,17 @@ function useFormattedMonths(timeZone, focusedDate) {
|
|
|
2662
2810
|
}
|
|
2663
2811
|
|
|
2664
2812
|
// src/Calendar/CalendarListBox.tsx
|
|
2665
|
-
var
|
|
2813
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2666
2814
|
function CalendarListBox({
|
|
2667
2815
|
type,
|
|
2668
2816
|
isDisabled,
|
|
2669
2817
|
setSelectedDropdown
|
|
2670
2818
|
}) {
|
|
2671
|
-
const state = (0,
|
|
2819
|
+
const state = (0, import_react31.useContext)(import_react_aria_components35.CalendarStateContext);
|
|
2672
2820
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2673
2821
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
2674
2822
|
const { select: selectClassNames } = (0, import_system50.useClassNames)({ component: "Select" });
|
|
2675
|
-
return /* @__PURE__ */ (0,
|
|
2823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2676
2824
|
"button",
|
|
2677
2825
|
{
|
|
2678
2826
|
disabled: isDisabled,
|
|
@@ -2681,7 +2829,7 @@ function CalendarListBox({
|
|
|
2681
2829
|
"data-testid": type,
|
|
2682
2830
|
children: [
|
|
2683
2831
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
2684
|
-
/* @__PURE__ */ (0,
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ChevronDown, {})
|
|
2685
2833
|
]
|
|
2686
2834
|
}
|
|
2687
2835
|
);
|
|
@@ -2689,10 +2837,10 @@ function CalendarListBox({
|
|
|
2689
2837
|
|
|
2690
2838
|
// src/Calendar/MonthControls.tsx
|
|
2691
2839
|
var import_system51 = require("@marigold/system");
|
|
2692
|
-
var
|
|
2840
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2693
2841
|
function MonthControls() {
|
|
2694
2842
|
const classNames3 = (0, import_system51.useClassNames)({ component: "Calendar" });
|
|
2695
|
-
return /* @__PURE__ */ (0,
|
|
2843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2696
2844
|
"div",
|
|
2697
2845
|
{
|
|
2698
2846
|
className: (0, import_system51.cn)(
|
|
@@ -2700,22 +2848,22 @@ function MonthControls() {
|
|
|
2700
2848
|
classNames3.calendarControllers
|
|
2701
2849
|
),
|
|
2702
2850
|
children: [
|
|
2703
|
-
/* @__PURE__ */ (0,
|
|
2851
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2704
2852
|
IconButton,
|
|
2705
2853
|
{
|
|
2706
2854
|
className: (0, import_system51.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
2707
2855
|
variant: "navigation",
|
|
2708
2856
|
slot: "previous",
|
|
2709
|
-
children: /* @__PURE__ */ (0,
|
|
2857
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChevronLeft, {})
|
|
2710
2858
|
}
|
|
2711
2859
|
),
|
|
2712
|
-
/* @__PURE__ */ (0,
|
|
2860
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2713
2861
|
IconButton,
|
|
2714
2862
|
{
|
|
2715
2863
|
className: (0, import_system51.cn)("inline-flex items-center justify-center gap-[0.5ch]"),
|
|
2716
2864
|
variant: "navigation",
|
|
2717
2865
|
slot: "next",
|
|
2718
|
-
children: /* @__PURE__ */ (0,
|
|
2866
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChevronRight, {})
|
|
2719
2867
|
}
|
|
2720
2868
|
)
|
|
2721
2869
|
]
|
|
@@ -2725,24 +2873,24 @@ function MonthControls() {
|
|
|
2725
2873
|
var MonthControls_default = MonthControls;
|
|
2726
2874
|
|
|
2727
2875
|
// src/Calendar/MonthListBox.tsx
|
|
2728
|
-
var
|
|
2729
|
-
var
|
|
2730
|
-
var
|
|
2876
|
+
var import_react32 = require("react");
|
|
2877
|
+
var import_react_aria_components36 = require("react-aria-components");
|
|
2878
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2731
2879
|
var MonthListBox = ({ setSelectedDropdown }) => {
|
|
2732
|
-
const state = (0,
|
|
2880
|
+
const state = (0, import_react32.useContext)(import_react_aria_components36.CalendarStateContext);
|
|
2733
2881
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2734
2882
|
let onChange2 = (index2) => {
|
|
2735
2883
|
let value = Number(index2) + 1;
|
|
2736
2884
|
let date = state.focusedDate.set({ month: value });
|
|
2737
2885
|
state.setFocusedDate(date);
|
|
2738
2886
|
};
|
|
2739
|
-
return /* @__PURE__ */ (0,
|
|
2887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2740
2888
|
"ul",
|
|
2741
2889
|
{
|
|
2742
2890
|
"data-testid": "monthOptions",
|
|
2743
2891
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
2744
2892
|
children: months.map((month, index2) => {
|
|
2745
|
-
return /* @__PURE__ */ (0,
|
|
2893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2746
2894
|
_Button,
|
|
2747
2895
|
{
|
|
2748
2896
|
slot: "previous",
|
|
@@ -2763,12 +2911,12 @@ var MonthListBox = ({ setSelectedDropdown }) => {
|
|
|
2763
2911
|
var MonthListBox_default = MonthListBox;
|
|
2764
2912
|
|
|
2765
2913
|
// src/Calendar/YearListBox.tsx
|
|
2766
|
-
var
|
|
2767
|
-
var
|
|
2914
|
+
var import_react33 = require("react");
|
|
2915
|
+
var import_react_aria_components37 = require("react-aria-components");
|
|
2768
2916
|
var import_i18n5 = require("@react-aria/i18n");
|
|
2769
|
-
var
|
|
2917
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2770
2918
|
var YearListBox = ({ setSelectedDropdown }) => {
|
|
2771
|
-
const state = (0,
|
|
2919
|
+
const state = (0, import_react33.useContext)(import_react_aria_components37.CalendarStateContext);
|
|
2772
2920
|
const years = [];
|
|
2773
2921
|
let formatter = (0, import_i18n5.useDateFormatter)({
|
|
2774
2922
|
year: "numeric",
|
|
@@ -2781,8 +2929,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
2781
2929
|
formatted: formatter.format(date.toDate(state.timeZone))
|
|
2782
2930
|
});
|
|
2783
2931
|
}
|
|
2784
|
-
const activeButtonRef = (0,
|
|
2785
|
-
(0,
|
|
2932
|
+
const activeButtonRef = (0, import_react33.useRef)(null);
|
|
2933
|
+
(0, import_react33.useEffect)(() => {
|
|
2786
2934
|
if (activeButtonRef.current) {
|
|
2787
2935
|
const activeButton = activeButtonRef.current;
|
|
2788
2936
|
activeButton == null ? void 0 : activeButton.scrollIntoView({
|
|
@@ -2796,19 +2944,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
2796
2944
|
let date = years[index2].value;
|
|
2797
2945
|
state.setFocusedDate(date);
|
|
2798
2946
|
};
|
|
2799
|
-
return /* @__PURE__ */ (0,
|
|
2947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2800
2948
|
"ul",
|
|
2801
2949
|
{
|
|
2802
2950
|
"data-testid": "yearOptions",
|
|
2803
2951
|
className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
|
|
2804
2952
|
children: years.map((year, index2) => {
|
|
2805
2953
|
const isActive = +year.formatted === state.focusedDate.year;
|
|
2806
|
-
return /* @__PURE__ */ (0,
|
|
2954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2807
2955
|
"div",
|
|
2808
2956
|
{
|
|
2809
2957
|
ref: isActive ? activeButtonRef : null,
|
|
2810
2958
|
style: { height: "100%", width: "100%" },
|
|
2811
|
-
children: /* @__PURE__ */ (0,
|
|
2959
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2812
2960
|
_Button,
|
|
2813
2961
|
{
|
|
2814
2962
|
slot: "previous",
|
|
@@ -2833,7 +2981,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
|
|
|
2833
2981
|
var YearListBox_default = YearListBox;
|
|
2834
2982
|
|
|
2835
2983
|
// src/Calendar/Calendar.tsx
|
|
2836
|
-
var
|
|
2984
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2837
2985
|
var _Calendar = ({
|
|
2838
2986
|
disabled,
|
|
2839
2987
|
readOnly,
|
|
@@ -2849,23 +2997,23 @@ var _Calendar = ({
|
|
|
2849
2997
|
...rest
|
|
2850
2998
|
};
|
|
2851
2999
|
const classNames3 = (0, import_system52.useClassNames)({ component: "Calendar" });
|
|
2852
|
-
const [selectedDropdown, setSelectedDropdown] = (0,
|
|
3000
|
+
const [selectedDropdown, setSelectedDropdown] = (0, import_react34.useState)();
|
|
2853
3001
|
const ViewMap = {
|
|
2854
|
-
month: /* @__PURE__ */ (0,
|
|
2855
|
-
year: /* @__PURE__ */ (0,
|
|
3002
|
+
month: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MonthListBox_default, { setSelectedDropdown }),
|
|
3003
|
+
year: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(YearListBox_default, { setSelectedDropdown })
|
|
2856
3004
|
};
|
|
2857
|
-
return /* @__PURE__ */ (0,
|
|
2858
|
-
|
|
3005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3006
|
+
import_react_aria_components38.Calendar,
|
|
2859
3007
|
{
|
|
2860
3008
|
className: (0, import_system52.cn)(
|
|
2861
3009
|
"flex min-h-[350px] w-fit flex-col rounded-xs p-4",
|
|
2862
3010
|
classNames3.calendar
|
|
2863
3011
|
),
|
|
2864
3012
|
...props,
|
|
2865
|
-
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0,
|
|
2866
|
-
/* @__PURE__ */ (0,
|
|
2867
|
-
/* @__PURE__ */ (0,
|
|
2868
|
-
/* @__PURE__ */ (0,
|
|
3013
|
+
children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
3014
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
3015
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex w-fit gap-4", children: [
|
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2869
3017
|
CalendarListBox,
|
|
2870
3018
|
{
|
|
2871
3019
|
type: "month",
|
|
@@ -2873,7 +3021,7 @@ var _Calendar = ({
|
|
|
2873
3021
|
setSelectedDropdown
|
|
2874
3022
|
}
|
|
2875
3023
|
),
|
|
2876
|
-
/* @__PURE__ */ (0,
|
|
3024
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2877
3025
|
CalendarListBox,
|
|
2878
3026
|
{
|
|
2879
3027
|
type: "year",
|
|
@@ -2882,20 +3030,20 @@ var _Calendar = ({
|
|
|
2882
3030
|
}
|
|
2883
3031
|
)
|
|
2884
3032
|
] }),
|
|
2885
|
-
/* @__PURE__ */ (0,
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(MonthControls_default, {})
|
|
2886
3034
|
] }),
|
|
2887
|
-
/* @__PURE__ */ (0,
|
|
3035
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_CalendarGrid, {})
|
|
2888
3036
|
] })
|
|
2889
3037
|
}
|
|
2890
3038
|
);
|
|
2891
3039
|
};
|
|
2892
3040
|
|
|
2893
3041
|
// src/DatePicker/DatePicker.tsx
|
|
2894
|
-
var
|
|
2895
|
-
var
|
|
3042
|
+
var import_react35 = __toESM(require("react"));
|
|
3043
|
+
var import_react_aria_components39 = require("react-aria-components");
|
|
2896
3044
|
var import_system53 = require("@marigold/system");
|
|
2897
|
-
var
|
|
2898
|
-
var _DatePicker =
|
|
3045
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3046
|
+
var _DatePicker = import_react35.default.forwardRef(
|
|
2899
3047
|
({
|
|
2900
3048
|
dateUnavailable,
|
|
2901
3049
|
disabled,
|
|
@@ -2923,19 +3071,19 @@ var _DatePicker = import_react33.default.forwardRef(
|
|
|
2923
3071
|
size: size2,
|
|
2924
3072
|
variant
|
|
2925
3073
|
});
|
|
2926
|
-
return /* @__PURE__ */ (0,
|
|
3074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
2927
3075
|
FieldBase,
|
|
2928
3076
|
{
|
|
2929
|
-
as:
|
|
3077
|
+
as: import_react_aria_components39.DatePicker,
|
|
2930
3078
|
variant,
|
|
2931
3079
|
size: size2,
|
|
2932
3080
|
...props,
|
|
2933
3081
|
ref,
|
|
2934
3082
|
children: [
|
|
2935
|
-
/* @__PURE__ */ (0,
|
|
3083
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2936
3084
|
_DateInput,
|
|
2937
3085
|
{
|
|
2938
|
-
action: /* @__PURE__ */ (0,
|
|
3086
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(IconButton, { className: classNames3, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2939
3087
|
"svg",
|
|
2940
3088
|
{
|
|
2941
3089
|
"data-testid": "action",
|
|
@@ -2943,12 +3091,12 @@ var _DatePicker = import_react33.default.forwardRef(
|
|
|
2943
3091
|
width: 24,
|
|
2944
3092
|
height: 24,
|
|
2945
3093
|
fill: "currentColor",
|
|
2946
|
-
children: /* @__PURE__ */ (0,
|
|
3094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
|
|
2947
3095
|
}
|
|
2948
3096
|
) })
|
|
2949
3097
|
}
|
|
2950
3098
|
),
|
|
2951
|
-
/* @__PURE__ */ (0,
|
|
3099
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria_components39.Dialog, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Calendar, { disabled }) }) })
|
|
2952
3100
|
]
|
|
2953
3101
|
}
|
|
2954
3102
|
);
|
|
@@ -2957,8 +3105,8 @@ var _DatePicker = import_react33.default.forwardRef(
|
|
|
2957
3105
|
|
|
2958
3106
|
// src/Inset/Inset.tsx
|
|
2959
3107
|
var import_system54 = require("@marigold/system");
|
|
2960
|
-
var
|
|
2961
|
-
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0,
|
|
3108
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3109
|
+
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2962
3110
|
"div",
|
|
2963
3111
|
{
|
|
2964
3112
|
className: (0, import_system54.cn)(
|
|
@@ -2971,18 +3119,18 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_
|
|
|
2971
3119
|
);
|
|
2972
3120
|
|
|
2973
3121
|
// src/Link/Link.tsx
|
|
2974
|
-
var
|
|
2975
|
-
var
|
|
3122
|
+
var import_react36 = require("react");
|
|
3123
|
+
var import_react_aria_components40 = require("react-aria-components");
|
|
2976
3124
|
var import_system55 = require("@marigold/system");
|
|
2977
|
-
var
|
|
2978
|
-
var _Link = (0,
|
|
3125
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3126
|
+
var _Link = (0, import_react36.forwardRef)(
|
|
2979
3127
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
2980
3128
|
const classNames3 = (0, import_system55.useClassNames)({
|
|
2981
3129
|
component: "Link",
|
|
2982
3130
|
variant,
|
|
2983
3131
|
size: size2
|
|
2984
3132
|
});
|
|
2985
|
-
return /* @__PURE__ */ (0,
|
|
3133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components40.Link, { ...props, ref, className: classNames3, isDisabled: disabled, children });
|
|
2986
3134
|
}
|
|
2987
3135
|
);
|
|
2988
3136
|
|
|
@@ -2990,19 +3138,19 @@ var _Link = (0, import_react34.forwardRef)(
|
|
|
2990
3138
|
var import_system56 = require("@marigold/system");
|
|
2991
3139
|
|
|
2992
3140
|
// src/List/Context.ts
|
|
2993
|
-
var
|
|
2994
|
-
var ListContext = (0,
|
|
2995
|
-
var useListContext = () => (0,
|
|
3141
|
+
var import_react37 = require("react");
|
|
3142
|
+
var ListContext = (0, import_react37.createContext)({});
|
|
3143
|
+
var useListContext = () => (0, import_react37.useContext)(ListContext);
|
|
2996
3144
|
|
|
2997
3145
|
// src/List/ListItem.tsx
|
|
2998
|
-
var
|
|
3146
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2999
3147
|
var ListItem = ({ children, ...props }) => {
|
|
3000
3148
|
const { classNames: classNames3 } = useListContext();
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
3149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("li", { ...props, className: classNames3, children });
|
|
3002
3150
|
};
|
|
3003
3151
|
|
|
3004
3152
|
// src/List/List.tsx
|
|
3005
|
-
var
|
|
3153
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3006
3154
|
var List = ({
|
|
3007
3155
|
as = "ul",
|
|
3008
3156
|
children,
|
|
@@ -3012,37 +3160,37 @@ var List = ({
|
|
|
3012
3160
|
}) => {
|
|
3013
3161
|
const Component2 = as;
|
|
3014
3162
|
const classNames3 = (0, import_system56.useClassNames)({ component: "List", variant, size: size2 });
|
|
3015
|
-
return /* @__PURE__ */ (0,
|
|
3163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3016
3164
|
};
|
|
3017
3165
|
List.Item = ListItem;
|
|
3018
3166
|
|
|
3019
3167
|
// src/Menu/Menu.tsx
|
|
3020
|
-
var
|
|
3168
|
+
var import_react_aria_components43 = require("react-aria-components");
|
|
3021
3169
|
var import_system59 = require("@marigold/system");
|
|
3022
3170
|
|
|
3023
3171
|
// src/Menu/MenuItem.tsx
|
|
3024
|
-
var
|
|
3172
|
+
var import_react_aria_components41 = require("react-aria-components");
|
|
3025
3173
|
var import_system57 = require("@marigold/system");
|
|
3026
|
-
var
|
|
3174
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3027
3175
|
var _MenuItem = ({ children, ...props }) => {
|
|
3028
3176
|
const classNames3 = (0, import_system57.useClassNames)({ component: "Menu" });
|
|
3029
|
-
return /* @__PURE__ */ (0,
|
|
3177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components41.MenuItem, { ...props, className: classNames3.item, children });
|
|
3030
3178
|
};
|
|
3031
3179
|
|
|
3032
3180
|
// src/Menu/MenuSection.tsx
|
|
3033
|
-
var
|
|
3181
|
+
var import_react_aria_components42 = require("react-aria-components");
|
|
3034
3182
|
var import_system58 = require("@marigold/system");
|
|
3035
|
-
var
|
|
3183
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3036
3184
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3037
3185
|
const className = (0, import_system58.useClassNames)({ component: "Menu" });
|
|
3038
|
-
return /* @__PURE__ */ (0,
|
|
3039
|
-
/* @__PURE__ */ (0,
|
|
3186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_react_aria_components42.MenuSection, { ...props, children: [
|
|
3187
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Header, { className: className.section, children: title }),
|
|
3040
3188
|
children
|
|
3041
3189
|
] });
|
|
3042
3190
|
};
|
|
3043
3191
|
|
|
3044
3192
|
// src/Menu/Menu.tsx
|
|
3045
|
-
var
|
|
3193
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3046
3194
|
var _Menu = ({
|
|
3047
3195
|
children,
|
|
3048
3196
|
label,
|
|
@@ -3055,18 +3203,18 @@ var _Menu = ({
|
|
|
3055
3203
|
...props
|
|
3056
3204
|
}) => {
|
|
3057
3205
|
const classNames3 = (0, import_system59.useClassNames)({ component: "Menu", variant, size: size2 });
|
|
3058
|
-
return /* @__PURE__ */ (0,
|
|
3059
|
-
/* @__PURE__ */ (0,
|
|
3060
|
-
/* @__PURE__ */ (0,
|
|
3206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react_aria_components43.MenuTrigger, { ...props, children: [
|
|
3207
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
|
|
3208
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components43.Menu, { ...props, className: classNames3.container, children }) })
|
|
3061
3209
|
] });
|
|
3062
3210
|
};
|
|
3063
3211
|
_Menu.Item = _MenuItem;
|
|
3064
3212
|
_Menu.Section = _MenuSection;
|
|
3065
3213
|
|
|
3066
3214
|
// src/Menu/ActionMenu.tsx
|
|
3067
|
-
var
|
|
3215
|
+
var import_react_aria_components44 = require("react-aria-components");
|
|
3068
3216
|
var import_system60 = require("@marigold/system");
|
|
3069
|
-
var
|
|
3217
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3070
3218
|
var ActionMenu = ({
|
|
3071
3219
|
variant,
|
|
3072
3220
|
size: size2,
|
|
@@ -3074,50 +3222,50 @@ var ActionMenu = ({
|
|
|
3074
3222
|
...props
|
|
3075
3223
|
}) => {
|
|
3076
3224
|
const classNames3 = (0, import_system60.useClassNames)({ component: "Menu", variant, size: size2 });
|
|
3077
|
-
return /* @__PURE__ */ (0,
|
|
3078
|
-
/* @__PURE__ */ (0,
|
|
3079
|
-
/* @__PURE__ */ (0,
|
|
3225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react_aria_components44.MenuTrigger, { children: [
|
|
3226
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_system60.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
|
|
3227
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_aria_components44.Menu, { ...props, className: classNames3.container, children: props.children }) })
|
|
3080
3228
|
] });
|
|
3081
3229
|
};
|
|
3082
3230
|
|
|
3083
3231
|
// src/SectionMessage/SectionMessage.tsx
|
|
3084
|
-
var
|
|
3232
|
+
var import_react39 = require("react");
|
|
3085
3233
|
var import_button = require("@react-aria/button");
|
|
3086
3234
|
var import_system63 = require("@marigold/system");
|
|
3087
3235
|
|
|
3088
3236
|
// src/SectionMessage/Context.tsx
|
|
3089
|
-
var
|
|
3090
|
-
var SectionMessageContext = (0,
|
|
3091
|
-
var useSectionMessageContext = () => (0,
|
|
3237
|
+
var import_react38 = require("react");
|
|
3238
|
+
var SectionMessageContext = (0, import_react38.createContext)({});
|
|
3239
|
+
var useSectionMessageContext = () => (0, import_react38.useContext)(SectionMessageContext);
|
|
3092
3240
|
|
|
3093
3241
|
// src/SectionMessage/SectionMessageContent.tsx
|
|
3094
3242
|
var import_system61 = require("@marigold/system");
|
|
3095
|
-
var
|
|
3243
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3096
3244
|
var SectionMessageContent = ({
|
|
3097
3245
|
children
|
|
3098
3246
|
}) => {
|
|
3099
3247
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3100
|
-
return /* @__PURE__ */ (0,
|
|
3248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: (0, import_system61.cn)("[grid-area:content]", classNames3.content), children });
|
|
3101
3249
|
};
|
|
3102
3250
|
|
|
3103
3251
|
// src/SectionMessage/SectionMessageTitle.tsx
|
|
3104
3252
|
var import_system62 = require("@marigold/system");
|
|
3105
|
-
var
|
|
3253
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3106
3254
|
var SectionMessageTitle = ({ children }) => {
|
|
3107
3255
|
const { classNames: classNames3 } = useSectionMessageContext();
|
|
3108
|
-
return /* @__PURE__ */ (0,
|
|
3256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_system62.cn)("[grid-area:title]", classNames3.title), children });
|
|
3109
3257
|
};
|
|
3110
3258
|
|
|
3111
3259
|
// src/SectionMessage/SectionMessage.tsx
|
|
3112
|
-
var
|
|
3260
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3113
3261
|
var icons = {
|
|
3114
|
-
success: () => /* @__PURE__ */ (0,
|
|
3262
|
+
success: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3115
3263
|
"svg",
|
|
3116
3264
|
{
|
|
3117
3265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3118
3266
|
viewBox: "0 0 24 24",
|
|
3119
3267
|
fill: "currentColor",
|
|
3120
|
-
children: /* @__PURE__ */ (0,
|
|
3268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3121
3269
|
"path",
|
|
3122
3270
|
{
|
|
3123
3271
|
fillRule: "evenodd",
|
|
@@ -3127,13 +3275,13 @@ var icons = {
|
|
|
3127
3275
|
)
|
|
3128
3276
|
}
|
|
3129
3277
|
),
|
|
3130
|
-
info: () => /* @__PURE__ */ (0,
|
|
3278
|
+
info: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3131
3279
|
"svg",
|
|
3132
3280
|
{
|
|
3133
3281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3134
3282
|
viewBox: "0 0 24 24",
|
|
3135
3283
|
fill: "currentColor",
|
|
3136
|
-
children: /* @__PURE__ */ (0,
|
|
3284
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3137
3285
|
"path",
|
|
3138
3286
|
{
|
|
3139
3287
|
fillRule: "evenodd",
|
|
@@ -3143,13 +3291,13 @@ var icons = {
|
|
|
3143
3291
|
)
|
|
3144
3292
|
}
|
|
3145
3293
|
),
|
|
3146
|
-
warning: () => /* @__PURE__ */ (0,
|
|
3294
|
+
warning: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3147
3295
|
"svg",
|
|
3148
3296
|
{
|
|
3149
3297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3150
3298
|
viewBox: "0 0 24 24",
|
|
3151
3299
|
fill: "currentColor",
|
|
3152
|
-
children: /* @__PURE__ */ (0,
|
|
3300
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3153
3301
|
"path",
|
|
3154
3302
|
{
|
|
3155
3303
|
fillRule: "evenodd",
|
|
@@ -3159,13 +3307,13 @@ var icons = {
|
|
|
3159
3307
|
)
|
|
3160
3308
|
}
|
|
3161
3309
|
),
|
|
3162
|
-
error: () => /* @__PURE__ */ (0,
|
|
3310
|
+
error: () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3163
3311
|
"svg",
|
|
3164
3312
|
{
|
|
3165
3313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3166
3314
|
viewBox: "0 0 24 24",
|
|
3167
3315
|
fill: "currentColor",
|
|
3168
|
-
children: /* @__PURE__ */ (0,
|
|
3316
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3169
3317
|
"path",
|
|
3170
3318
|
{
|
|
3171
3319
|
fillRule: "evenodd",
|
|
@@ -3185,14 +3333,14 @@ var SectionMessage = ({
|
|
|
3185
3333
|
onCloseChange,
|
|
3186
3334
|
...props
|
|
3187
3335
|
}) => {
|
|
3188
|
-
const buttonRef = (0,
|
|
3336
|
+
const buttonRef = (0, import_react39.useRef)(null);
|
|
3189
3337
|
const classNames3 = (0, import_system63.useClassNames)({
|
|
3190
3338
|
component: "SectionMessage",
|
|
3191
3339
|
variant,
|
|
3192
3340
|
size: size2
|
|
3193
3341
|
});
|
|
3194
3342
|
const Icon4 = icons[variant];
|
|
3195
|
-
const [internalVisible, setInternalVisible] = (0,
|
|
3343
|
+
const [internalVisible, setInternalVisible] = (0, import_react39.useState)(true);
|
|
3196
3344
|
const isCurrentlyVisible = close != null ? close : internalVisible;
|
|
3197
3345
|
const { buttonProps } = (0, import_button.useButton)(props, buttonRef);
|
|
3198
3346
|
const handleClose = () => {
|
|
@@ -3202,15 +3350,15 @@ var SectionMessage = ({
|
|
|
3202
3350
|
}
|
|
3203
3351
|
};
|
|
3204
3352
|
if (!isCurrentlyVisible) return null;
|
|
3205
|
-
return /* @__PURE__ */ (0,
|
|
3353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SectionMessageContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
3206
3354
|
"div",
|
|
3207
3355
|
{
|
|
3208
3356
|
role: variant === "error" ? "alert" : void 0,
|
|
3209
3357
|
...props,
|
|
3210
3358
|
className: (0, import_system63.cn)("grid auto-rows-min", classNames3.container),
|
|
3211
3359
|
children: [
|
|
3212
|
-
/* @__PURE__ */ (0,
|
|
3213
|
-
closeButton && /* @__PURE__ */ (0,
|
|
3360
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_system63.cn)("[grid-area:icon]", classNames3.icon), children: Icon4 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon4, {}) }),
|
|
3361
|
+
closeButton && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3214
3362
|
"button",
|
|
3215
3363
|
{
|
|
3216
3364
|
...buttonProps,
|
|
@@ -3218,7 +3366,7 @@ var SectionMessage = ({
|
|
|
3218
3366
|
"aria-label": "close",
|
|
3219
3367
|
className: (0, import_system63.cn)("[grid-area:close]", classNames3.close),
|
|
3220
3368
|
onClick: handleClose,
|
|
3221
|
-
children: /* @__PURE__ */ (0,
|
|
3369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3222
3370
|
"path",
|
|
3223
3371
|
{
|
|
3224
3372
|
fillRule: "evenodd",
|
|
@@ -3237,7 +3385,7 @@ SectionMessage.Title = SectionMessageTitle;
|
|
|
3237
3385
|
SectionMessage.Content = SectionMessageContent;
|
|
3238
3386
|
|
|
3239
3387
|
// src/Multiselect/Multiselect.tsx
|
|
3240
|
-
var
|
|
3388
|
+
var import_react_aria_components45 = require("react-aria-components");
|
|
3241
3389
|
|
|
3242
3390
|
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
3243
3391
|
function _typeof(o) {
|
|
@@ -3376,34 +3524,34 @@ function _objectWithoutProperties(e, t) {
|
|
|
3376
3524
|
return i;
|
|
3377
3525
|
}
|
|
3378
3526
|
|
|
3379
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
3380
|
-
var
|
|
3527
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
|
|
3528
|
+
var import_react40 = require("react");
|
|
3381
3529
|
var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
3382
3530
|
function useStateManager(_ref3) {
|
|
3383
3531
|
var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
|
|
3384
|
-
var _useState = (0,
|
|
3385
|
-
var _useState3 = (0,
|
|
3386
|
-
var _useState5 = (0,
|
|
3387
|
-
var onChange2 = (0,
|
|
3532
|
+
var _useState = (0, import_react40.useState)(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
|
|
3533
|
+
var _useState3 = (0, import_react40.useState)(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
|
|
3534
|
+
var _useState5 = (0, import_react40.useState)(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
|
|
3535
|
+
var onChange2 = (0, import_react40.useCallback)(function(value2, actionMeta) {
|
|
3388
3536
|
if (typeof propsOnChange === "function") {
|
|
3389
3537
|
propsOnChange(value2, actionMeta);
|
|
3390
3538
|
}
|
|
3391
3539
|
setStateValue(value2);
|
|
3392
3540
|
}, [propsOnChange]);
|
|
3393
|
-
var onInputChange = (0,
|
|
3541
|
+
var onInputChange = (0, import_react40.useCallback)(function(value2, actionMeta) {
|
|
3394
3542
|
var newValue;
|
|
3395
3543
|
if (typeof propsOnInputChange === "function") {
|
|
3396
3544
|
newValue = propsOnInputChange(value2, actionMeta);
|
|
3397
3545
|
}
|
|
3398
3546
|
setStateInputValue(newValue !== void 0 ? newValue : value2);
|
|
3399
3547
|
}, [propsOnInputChange]);
|
|
3400
|
-
var onMenuOpen = (0,
|
|
3548
|
+
var onMenuOpen = (0, import_react40.useCallback)(function() {
|
|
3401
3549
|
if (typeof propsOnMenuOpen === "function") {
|
|
3402
3550
|
propsOnMenuOpen();
|
|
3403
3551
|
}
|
|
3404
3552
|
setStateMenuIsOpen(true);
|
|
3405
3553
|
}, [propsOnMenuOpen]);
|
|
3406
|
-
var onMenuClose = (0,
|
|
3554
|
+
var onMenuClose = (0, import_react40.useCallback)(function() {
|
|
3407
3555
|
if (typeof propsOnMenuClose === "function") {
|
|
3408
3556
|
propsOnMenuClose();
|
|
3409
3557
|
}
|
|
@@ -3434,9 +3582,9 @@ function _extends() {
|
|
|
3434
3582
|
}, _extends.apply(null, arguments);
|
|
3435
3583
|
}
|
|
3436
3584
|
|
|
3437
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
3585
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
3438
3586
|
var React11 = __toESM(require("react"));
|
|
3439
|
-
var
|
|
3587
|
+
var import_react47 = require("react");
|
|
3440
3588
|
|
|
3441
3589
|
// ../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
3442
3590
|
function _classCallCheck(a, n) {
|
|
@@ -3542,13 +3690,13 @@ function _toConsumableArray(r) {
|
|
|
3542
3690
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
3543
3691
|
}
|
|
3544
3692
|
|
|
3545
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
3693
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
3546
3694
|
var React10 = __toESM(require("react"));
|
|
3547
|
-
var
|
|
3695
|
+
var import_react45 = require("react");
|
|
3548
3696
|
|
|
3549
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
3697
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
3550
3698
|
var React8 = __toESM(require("react"));
|
|
3551
|
-
var
|
|
3699
|
+
var import_react41 = require("react");
|
|
3552
3700
|
|
|
3553
3701
|
// ../../node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
3554
3702
|
var isDevelopment = false;
|
|
@@ -4711,7 +4859,7 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
4711
4859
|
};
|
|
4712
4860
|
}
|
|
4713
4861
|
|
|
4714
|
-
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.
|
|
4862
|
+
// ../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.2.0_react@19.1.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
|
|
4715
4863
|
var React7 = __toESM(require("react"));
|
|
4716
4864
|
var isBrowser3 = typeof document !== "undefined";
|
|
4717
4865
|
var syncFallback = function syncFallback2(create) {
|
|
@@ -4720,7 +4868,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
4720
4868
|
var useInsertionEffect2 = React7["useInsertionEffect"] ? React7["useInsertionEffect"] : false;
|
|
4721
4869
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
4722
4870
|
|
|
4723
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
4871
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
4724
4872
|
var isDevelopment3 = false;
|
|
4725
4873
|
var isBrowser4 = typeof document !== "undefined";
|
|
4726
4874
|
var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
@@ -4736,15 +4884,15 @@ var EmotionCacheContext = /* @__PURE__ */ React8.createContext(
|
|
|
4736
4884
|
);
|
|
4737
4885
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
4738
4886
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
4739
|
-
return /* @__PURE__ */ (0,
|
|
4740
|
-
var cache = (0,
|
|
4887
|
+
return /* @__PURE__ */ (0, import_react41.forwardRef)(function(props, ref) {
|
|
4888
|
+
var cache = (0, import_react41.useContext)(EmotionCacheContext);
|
|
4741
4889
|
return func(props, cache, ref);
|
|
4742
4890
|
});
|
|
4743
4891
|
};
|
|
4744
4892
|
if (!isBrowser4) {
|
|
4745
4893
|
withEmotionCache = function withEmotionCache3(func) {
|
|
4746
4894
|
return function(props) {
|
|
4747
|
-
var cache = (0,
|
|
4895
|
+
var cache = (0, import_react41.useContext)(EmotionCacheContext);
|
|
4748
4896
|
if (cache === null) {
|
|
4749
4897
|
cache = createCache({
|
|
4750
4898
|
key: "css"
|
|
@@ -4824,11 +4972,11 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
|
4824
4972
|
});
|
|
4825
4973
|
var Emotion$1 = Emotion;
|
|
4826
4974
|
|
|
4827
|
-
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.
|
|
4975
|
+
// ../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.0_react@19.1.0/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
4828
4976
|
var React9 = __toESM(require("react"));
|
|
4829
4977
|
var import_extends2 = __toESM(require_extends());
|
|
4830
4978
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4831
|
-
var
|
|
4979
|
+
var jsx76 = function jsx77(type, props) {
|
|
4832
4980
|
var args = arguments;
|
|
4833
4981
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
4834
4982
|
return React9.createElement.apply(void 0, args);
|
|
@@ -4846,7 +4994,7 @@ var jsx75 = function jsx76(type, props) {
|
|
|
4846
4994
|
var JSX;
|
|
4847
4995
|
/* @__PURE__ */ (function(_JSX) {
|
|
4848
4996
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
4849
|
-
})(
|
|
4997
|
+
})(jsx76 || (jsx76 = {}));
|
|
4850
4998
|
function css() {
|
|
4851
4999
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4852
5000
|
args[_key] = arguments[_key];
|
|
@@ -4875,8 +5023,8 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
4875
5023
|
}));
|
|
4876
5024
|
}
|
|
4877
5025
|
|
|
4878
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
4879
|
-
var
|
|
5026
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5027
|
+
var import_react44 = require("react");
|
|
4880
5028
|
var import_react_dom = require("react-dom");
|
|
4881
5029
|
|
|
4882
5030
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
@@ -5276,12 +5424,12 @@ function autoUpdate(reference, floating, update, options2) {
|
|
|
5276
5424
|
};
|
|
5277
5425
|
}
|
|
5278
5426
|
|
|
5279
|
-
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.
|
|
5280
|
-
var
|
|
5427
|
+
// ../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.0_@types+react@19.1.0_react@19.1.0/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
5428
|
+
var import_react42 = require("react");
|
|
5281
5429
|
var isClient = typeof document !== "undefined";
|
|
5282
|
-
var index = isClient ?
|
|
5430
|
+
var index = isClient ? import_react42.useLayoutEffect : import_react42.useEffect;
|
|
5283
5431
|
|
|
5284
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
5432
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
5285
5433
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
5286
5434
|
var noop = function noop2() {
|
|
5287
5435
|
};
|
|
@@ -5613,13 +5761,13 @@ var menuCSS = function menuCSS2(_ref23, unstyled) {
|
|
|
5613
5761
|
marginTop: spacing2.menuGutter
|
|
5614
5762
|
});
|
|
5615
5763
|
};
|
|
5616
|
-
var PortalPlacementContext = /* @__PURE__ */ (0,
|
|
5764
|
+
var PortalPlacementContext = /* @__PURE__ */ (0, import_react44.createContext)(null);
|
|
5617
5765
|
var MenuPlacer = function MenuPlacer2(props) {
|
|
5618
5766
|
var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
|
|
5619
|
-
var _ref3 = (0,
|
|
5620
|
-
var ref = (0,
|
|
5621
|
-
var _useState = (0,
|
|
5622
|
-
var _useState3 = (0,
|
|
5767
|
+
var _ref3 = (0, import_react44.useContext)(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
|
|
5768
|
+
var ref = (0, import_react44.useRef)(null);
|
|
5769
|
+
var _useState = (0, import_react44.useState)(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
|
|
5770
|
+
var _useState3 = (0, import_react44.useState)(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
|
|
5623
5771
|
var controlHeight2 = theme.spacing.controlHeight;
|
|
5624
5772
|
index(function() {
|
|
5625
5773
|
var menuEl = ref.current;
|
|
@@ -5649,7 +5797,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
5649
5797
|
};
|
|
5650
5798
|
var Menu3 = function Menu4(props) {
|
|
5651
5799
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
5652
|
-
return
|
|
5800
|
+
return jsx76("div", _extends({}, getStyleProps(props, "menu", {
|
|
5653
5801
|
menu: true
|
|
5654
5802
|
}), {
|
|
5655
5803
|
ref: innerRef
|
|
@@ -5671,7 +5819,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
5671
5819
|
};
|
|
5672
5820
|
var MenuList = function MenuList2(props) {
|
|
5673
5821
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
5674
|
-
return
|
|
5822
|
+
return jsx76("div", _extends({}, getStyleProps(props, "menuList", {
|
|
5675
5823
|
"menu-list": true,
|
|
5676
5824
|
"menu-list--is-multi": isMulti
|
|
5677
5825
|
}), {
|
|
@@ -5691,7 +5839,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
5691
5839
|
var loadingMessageCSS = noticeCSS;
|
|
5692
5840
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
5693
5841
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
5694
|
-
return
|
|
5842
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5695
5843
|
children,
|
|
5696
5844
|
innerProps
|
|
5697
5845
|
}), "noOptionsMessage", {
|
|
@@ -5701,7 +5849,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
5701
5849
|
};
|
|
5702
5850
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
5703
5851
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
5704
|
-
return
|
|
5852
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5705
5853
|
children,
|
|
5706
5854
|
innerProps
|
|
5707
5855
|
}), "loadingMessage", {
|
|
@@ -5721,16 +5869,16 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
|
|
|
5721
5869
|
};
|
|
5722
5870
|
var MenuPortal = function MenuPortal2(props) {
|
|
5723
5871
|
var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
|
|
5724
|
-
var menuPortalRef = (0,
|
|
5725
|
-
var cleanupRef = (0,
|
|
5726
|
-
var _useState5 = (0,
|
|
5727
|
-
var portalPlacementContext = (0,
|
|
5872
|
+
var menuPortalRef = (0, import_react44.useRef)(null);
|
|
5873
|
+
var cleanupRef = (0, import_react44.useRef)(null);
|
|
5874
|
+
var _useState5 = (0, import_react44.useState)(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
|
|
5875
|
+
var portalPlacementContext = (0, import_react44.useMemo)(function() {
|
|
5728
5876
|
return {
|
|
5729
5877
|
setPortalPlacement
|
|
5730
5878
|
};
|
|
5731
5879
|
}, []);
|
|
5732
|
-
var _useState7 = (0,
|
|
5733
|
-
var updateComputedPosition = (0,
|
|
5880
|
+
var _useState7 = (0, import_react44.useState)(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
|
|
5881
|
+
var updateComputedPosition = (0, import_react44.useCallback)(function() {
|
|
5734
5882
|
if (!controlElement) return;
|
|
5735
5883
|
var rect = getBoundingClientObj(controlElement);
|
|
5736
5884
|
var scrollDistance = menuPosition === "fixed" ? 0 : window.pageYOffset;
|
|
@@ -5745,7 +5893,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5745
5893
|
index(function() {
|
|
5746
5894
|
updateComputedPosition();
|
|
5747
5895
|
}, [updateComputedPosition]);
|
|
5748
|
-
var runAutoUpdate = (0,
|
|
5896
|
+
var runAutoUpdate = (0, import_react44.useCallback)(function() {
|
|
5749
5897
|
if (typeof cleanupRef.current === "function") {
|
|
5750
5898
|
cleanupRef.current();
|
|
5751
5899
|
cleanupRef.current = null;
|
|
@@ -5759,12 +5907,12 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5759
5907
|
index(function() {
|
|
5760
5908
|
runAutoUpdate();
|
|
5761
5909
|
}, [runAutoUpdate]);
|
|
5762
|
-
var setMenuPortalElement = (0,
|
|
5910
|
+
var setMenuPortalElement = (0, import_react44.useCallback)(function(menuPortalElement) {
|
|
5763
5911
|
menuPortalRef.current = menuPortalElement;
|
|
5764
5912
|
runAutoUpdate();
|
|
5765
5913
|
}, [runAutoUpdate]);
|
|
5766
5914
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
5767
|
-
var menuWrapper =
|
|
5915
|
+
var menuWrapper = jsx76("div", _extends({
|
|
5768
5916
|
ref: setMenuPortalElement
|
|
5769
5917
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
5770
5918
|
offset: computedPosition.offset,
|
|
@@ -5773,7 +5921,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
5773
5921
|
}), "menuPortal", {
|
|
5774
5922
|
"menu-portal": true
|
|
5775
5923
|
}), innerProps), children);
|
|
5776
|
-
return
|
|
5924
|
+
return jsx76(PortalPlacementContext.Provider, {
|
|
5777
5925
|
value: portalPlacementContext
|
|
5778
5926
|
}, appendTo ? /* @__PURE__ */ (0, import_react_dom.createPortal)(menuWrapper, appendTo) : menuWrapper);
|
|
5779
5927
|
};
|
|
@@ -5789,7 +5937,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
5789
5937
|
};
|
|
5790
5938
|
var SelectContainer = function SelectContainer2(props) {
|
|
5791
5939
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
5792
|
-
return
|
|
5940
|
+
return jsx76("div", _extends({}, getStyleProps(props, "container", {
|
|
5793
5941
|
"--is-disabled": isDisabled,
|
|
5794
5942
|
"--is-rtl": isRtl
|
|
5795
5943
|
}), innerProps), children);
|
|
@@ -5810,7 +5958,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
5810
5958
|
};
|
|
5811
5959
|
var ValueContainer = function ValueContainer2(props) {
|
|
5812
5960
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
5813
|
-
return
|
|
5961
|
+
return jsx76("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
5814
5962
|
"value-container": true,
|
|
5815
5963
|
"value-container--is-multi": isMulti,
|
|
5816
5964
|
"value-container--has-value": hasValue
|
|
@@ -5826,7 +5974,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
5826
5974
|
};
|
|
5827
5975
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
5828
5976
|
var children = props.children, innerProps = props.innerProps;
|
|
5829
|
-
return
|
|
5977
|
+
return jsx76("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
5830
5978
|
indicators: true
|
|
5831
5979
|
}), innerProps), children);
|
|
5832
5980
|
};
|
|
@@ -5847,7 +5995,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
5847
5995
|
};
|
|
5848
5996
|
var Svg = function Svg2(_ref3) {
|
|
5849
5997
|
var size2 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
5850
|
-
return
|
|
5998
|
+
return jsx76("svg", _extends({
|
|
5851
5999
|
height: size2,
|
|
5852
6000
|
width: size2,
|
|
5853
6001
|
viewBox: "0 0 20 20",
|
|
@@ -5857,16 +6005,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
5857
6005
|
}, props));
|
|
5858
6006
|
};
|
|
5859
6007
|
var CrossIcon = function CrossIcon2(props) {
|
|
5860
|
-
return
|
|
6008
|
+
return jsx76(Svg, _extends({
|
|
5861
6009
|
size: 20
|
|
5862
|
-
}, props),
|
|
6010
|
+
}, props), jsx76("path", {
|
|
5863
6011
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
5864
6012
|
}));
|
|
5865
6013
|
};
|
|
5866
6014
|
var DownChevron = function DownChevron2(props) {
|
|
5867
|
-
return
|
|
6015
|
+
return jsx76(Svg, _extends({
|
|
5868
6016
|
size: 20
|
|
5869
|
-
}, props),
|
|
6017
|
+
}, props), jsx76("path", {
|
|
5870
6018
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
5871
6019
|
}));
|
|
5872
6020
|
};
|
|
@@ -5887,18 +6035,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
5887
6035
|
var dropdownIndicatorCSS = baseCSS;
|
|
5888
6036
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
5889
6037
|
var children = props.children, innerProps = props.innerProps;
|
|
5890
|
-
return
|
|
6038
|
+
return jsx76("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
5891
6039
|
indicator: true,
|
|
5892
6040
|
"dropdown-indicator": true
|
|
5893
|
-
}), innerProps), children ||
|
|
6041
|
+
}), innerProps), children || jsx76(DownChevron, null));
|
|
5894
6042
|
};
|
|
5895
6043
|
var clearIndicatorCSS = baseCSS;
|
|
5896
6044
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
5897
6045
|
var children = props.children, innerProps = props.innerProps;
|
|
5898
|
-
return
|
|
6046
|
+
return jsx76("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
5899
6047
|
indicator: true,
|
|
5900
6048
|
"clear-indicator": true
|
|
5901
|
-
}), innerProps), children ||
|
|
6049
|
+
}), innerProps), children || jsx76(CrossIcon, null));
|
|
5902
6050
|
};
|
|
5903
6051
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
5904
6052
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -5914,7 +6062,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
5914
6062
|
};
|
|
5915
6063
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
5916
6064
|
var innerProps = props.innerProps;
|
|
5917
|
-
return
|
|
6065
|
+
return jsx76("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
5918
6066
|
"indicator-separator": true
|
|
5919
6067
|
})));
|
|
5920
6068
|
};
|
|
@@ -5938,7 +6086,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
5938
6086
|
};
|
|
5939
6087
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
5940
6088
|
var delay = _ref6.delay, offset2 = _ref6.offset;
|
|
5941
|
-
return
|
|
6089
|
+
return jsx76("span", {
|
|
5942
6090
|
css: /* @__PURE__ */ css({
|
|
5943
6091
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
5944
6092
|
backgroundColor: "currentColor",
|
|
@@ -5953,20 +6101,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
5953
6101
|
};
|
|
5954
6102
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
5955
6103
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size2 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
5956
|
-
return
|
|
6104
|
+
return jsx76("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5957
6105
|
innerProps,
|
|
5958
6106
|
isRtl,
|
|
5959
6107
|
size: size2
|
|
5960
6108
|
}), "loadingIndicator", {
|
|
5961
6109
|
indicator: true,
|
|
5962
6110
|
"loading-indicator": true
|
|
5963
|
-
}), innerProps),
|
|
6111
|
+
}), innerProps), jsx76(LoadingDot, {
|
|
5964
6112
|
delay: 0,
|
|
5965
6113
|
offset: isRtl
|
|
5966
|
-
}),
|
|
6114
|
+
}), jsx76(LoadingDot, {
|
|
5967
6115
|
delay: 160,
|
|
5968
6116
|
offset: true
|
|
5969
|
-
}),
|
|
6117
|
+
}), jsx76(LoadingDot, {
|
|
5970
6118
|
delay: 320,
|
|
5971
6119
|
offset: !isRtl
|
|
5972
6120
|
}));
|
|
@@ -5998,7 +6146,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
5998
6146
|
};
|
|
5999
6147
|
var Control = function Control2(props) {
|
|
6000
6148
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
6001
|
-
return
|
|
6149
|
+
return jsx76("div", _extends({
|
|
6002
6150
|
ref: innerRef
|
|
6003
6151
|
}, getStyleProps(props, "control", {
|
|
6004
6152
|
control: true,
|
|
@@ -6019,16 +6167,16 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
6019
6167
|
};
|
|
6020
6168
|
};
|
|
6021
6169
|
var Group2 = function Group3(props) {
|
|
6022
|
-
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames,
|
|
6023
|
-
return
|
|
6170
|
+
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames2 = props.getClassNames, Heading4 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
6171
|
+
return jsx76("div", _extends({}, getStyleProps(props, "group", {
|
|
6024
6172
|
group: true
|
|
6025
|
-
}), innerProps),
|
|
6173
|
+
}), innerProps), jsx76(Heading4, _extends({}, headingProps, {
|
|
6026
6174
|
selectProps,
|
|
6027
6175
|
theme,
|
|
6028
6176
|
getStyles,
|
|
6029
6177
|
getClassNames: getClassNames2,
|
|
6030
6178
|
cx
|
|
6031
|
-
}), label),
|
|
6179
|
+
}), label), jsx76("div", null, children));
|
|
6032
6180
|
};
|
|
6033
6181
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
6034
6182
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -6050,7 +6198,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
6050
6198
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
6051
6199
|
_cleanCommonProps.data;
|
|
6052
6200
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
6053
|
-
return
|
|
6201
|
+
return jsx76("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
6054
6202
|
"group-heading": true
|
|
6055
6203
|
}), innerProps));
|
|
6056
6204
|
};
|
|
@@ -6102,11 +6250,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
6102
6250
|
var Input2 = function Input3(props) {
|
|
6103
6251
|
var cx = props.cx, value = props.value;
|
|
6104
6252
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
6105
|
-
return
|
|
6253
|
+
return jsx76("div", _extends({}, getStyleProps(props, "input", {
|
|
6106
6254
|
"input-container": true
|
|
6107
6255
|
}), {
|
|
6108
6256
|
"data-value": value || ""
|
|
6109
|
-
}),
|
|
6257
|
+
}), jsx76("input", _extends({
|
|
6110
6258
|
className: cx({
|
|
6111
6259
|
input: true
|
|
6112
6260
|
}, inputClassName),
|
|
@@ -6160,35 +6308,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
6160
6308
|
};
|
|
6161
6309
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
6162
6310
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
6163
|
-
return
|
|
6311
|
+
return jsx76("div", innerProps, children);
|
|
6164
6312
|
};
|
|
6165
6313
|
var MultiValueContainer = MultiValueGeneric;
|
|
6166
6314
|
var MultiValueLabel = MultiValueGeneric;
|
|
6167
6315
|
function MultiValueRemove(_ref5) {
|
|
6168
6316
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
6169
|
-
return
|
|
6317
|
+
return jsx76("div", _extends({
|
|
6170
6318
|
role: "button"
|
|
6171
|
-
}, innerProps), children ||
|
|
6319
|
+
}, innerProps), children || jsx76(CrossIcon, {
|
|
6172
6320
|
size: 14
|
|
6173
6321
|
}));
|
|
6174
6322
|
}
|
|
6175
6323
|
var MultiValue = function MultiValue2(props) {
|
|
6176
6324
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
6177
6325
|
var Container2 = components2.Container, Label3 = components2.Label, Remove = components2.Remove;
|
|
6178
|
-
return
|
|
6326
|
+
return jsx76(Container2, {
|
|
6179
6327
|
data,
|
|
6180
6328
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
6181
6329
|
"multi-value": true,
|
|
6182
6330
|
"multi-value--is-disabled": isDisabled
|
|
6183
6331
|
})), innerProps),
|
|
6184
6332
|
selectProps
|
|
6185
|
-
},
|
|
6333
|
+
}, jsx76(Label3, {
|
|
6186
6334
|
data,
|
|
6187
6335
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
6188
6336
|
"multi-value__label": true
|
|
6189
6337
|
})),
|
|
6190
6338
|
selectProps
|
|
6191
|
-
}, children),
|
|
6339
|
+
}, children), jsx76(Remove, {
|
|
6192
6340
|
data,
|
|
6193
6341
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
6194
6342
|
"multi-value__remove": true
|
|
@@ -6221,7 +6369,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
6221
6369
|
};
|
|
6222
6370
|
var Option = function Option2(props) {
|
|
6223
6371
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
6224
|
-
return
|
|
6372
|
+
return jsx76("div", _extends({}, getStyleProps(props, "option", {
|
|
6225
6373
|
option: true,
|
|
6226
6374
|
"option--is-disabled": isDisabled,
|
|
6227
6375
|
"option--is-focused": isFocused,
|
|
@@ -6245,7 +6393,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
6245
6393
|
};
|
|
6246
6394
|
var Placeholder = function Placeholder2(props) {
|
|
6247
6395
|
var children = props.children, innerProps = props.innerProps;
|
|
6248
|
-
return
|
|
6396
|
+
return jsx76("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
6249
6397
|
placeholder: true
|
|
6250
6398
|
}), innerProps), children);
|
|
6251
6399
|
};
|
|
@@ -6267,7 +6415,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
6267
6415
|
};
|
|
6268
6416
|
var SingleValue = function SingleValue2(props) {
|
|
6269
6417
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
6270
|
-
return
|
|
6418
|
+
return jsx76("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
6271
6419
|
"single-value": true,
|
|
6272
6420
|
"single-value--is-disabled": isDisabled
|
|
6273
6421
|
}), innerProps), children);
|
|
@@ -6355,7 +6503,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
6355
6503
|
return memoized;
|
|
6356
6504
|
}
|
|
6357
6505
|
|
|
6358
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
6506
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/Select-aab027f3.esm.js
|
|
6359
6507
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
6360
6508
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6361
6509
|
}
|
|
@@ -6369,7 +6517,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
6369
6517
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
6370
6518
|
};
|
|
6371
6519
|
var A11yText = function A11yText2(props) {
|
|
6372
|
-
return
|
|
6520
|
+
return jsx76("span", _extends({
|
|
6373
6521
|
css: _ref
|
|
6374
6522
|
}, props));
|
|
6375
6523
|
};
|
|
@@ -6430,10 +6578,10 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6430
6578
|
var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue, isLoading = selectProps.isLoading;
|
|
6431
6579
|
var ariaLabel = selectProps["aria-label"];
|
|
6432
6580
|
var ariaLive = selectProps["aria-live"];
|
|
6433
|
-
var messages = (0,
|
|
6581
|
+
var messages = (0, import_react45.useMemo)(function() {
|
|
6434
6582
|
return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
|
|
6435
6583
|
}, [ariaLiveMessages]);
|
|
6436
|
-
var ariaSelected = (0,
|
|
6584
|
+
var ariaSelected = (0, import_react45.useMemo)(function() {
|
|
6437
6585
|
var message = "";
|
|
6438
6586
|
if (ariaSelection && messages.onChange) {
|
|
6439
6587
|
var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
|
|
@@ -6455,7 +6603,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6455
6603
|
}
|
|
6456
6604
|
return message;
|
|
6457
6605
|
}, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
|
|
6458
|
-
var ariaFocused = (0,
|
|
6606
|
+
var ariaFocused = (0, import_react45.useMemo)(function() {
|
|
6459
6607
|
var focusMsg = "";
|
|
6460
6608
|
var focused = focusedOption || focusedValue;
|
|
6461
6609
|
var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
|
|
@@ -6474,7 +6622,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6474
6622
|
}
|
|
6475
6623
|
return focusMsg;
|
|
6476
6624
|
}, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
|
|
6477
|
-
var ariaResults = (0,
|
|
6625
|
+
var ariaResults = (0, import_react45.useMemo)(function() {
|
|
6478
6626
|
var resultsMsg = "";
|
|
6479
6627
|
if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
|
|
6480
6628
|
var resultsMessage = screenReaderStatus2({
|
|
@@ -6488,7 +6636,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6488
6636
|
return resultsMsg;
|
|
6489
6637
|
}, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
|
|
6490
6638
|
var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
|
|
6491
|
-
var ariaGuidance = (0,
|
|
6639
|
+
var ariaGuidance = (0, import_react45.useMemo)(function() {
|
|
6492
6640
|
var guidanceMsg = "";
|
|
6493
6641
|
if (messages.guidance) {
|
|
6494
6642
|
var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
|
|
@@ -6504,18 +6652,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
6504
6652
|
}
|
|
6505
6653
|
return guidanceMsg;
|
|
6506
6654
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
6507
|
-
var ScreenReaderText =
|
|
6655
|
+
var ScreenReaderText = jsx76(import_react45.Fragment, null, jsx76("span", {
|
|
6508
6656
|
id: "aria-selection"
|
|
6509
|
-
}, ariaSelected),
|
|
6657
|
+
}, ariaSelected), jsx76("span", {
|
|
6510
6658
|
id: "aria-focused"
|
|
6511
|
-
}, ariaFocused),
|
|
6659
|
+
}, ariaFocused), jsx76("span", {
|
|
6512
6660
|
id: "aria-results"
|
|
6513
|
-
}, ariaResults),
|
|
6661
|
+
}, ariaResults), jsx76("span", {
|
|
6514
6662
|
id: "aria-guidance"
|
|
6515
6663
|
}, ariaGuidance));
|
|
6516
|
-
return
|
|
6664
|
+
return jsx76(import_react45.Fragment, null, jsx76(A11yText$1, {
|
|
6517
6665
|
id
|
|
6518
|
-
}, isInitialFocus && ScreenReaderText),
|
|
6666
|
+
}, isInitialFocus && ScreenReaderText), jsx76(A11yText$1, {
|
|
6519
6667
|
"aria-live": ariaLive,
|
|
6520
6668
|
"aria-atomic": "false",
|
|
6521
6669
|
"aria-relevant": "additions text",
|
|
@@ -6828,7 +6976,7 @@ var _excluded4 = ["innerRef"];
|
|
|
6828
6976
|
function DummyInput(_ref3) {
|
|
6829
6977
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
6830
6978
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
6831
|
-
return
|
|
6979
|
+
return jsx76("input", _extends({
|
|
6832
6980
|
ref: innerRef
|
|
6833
6981
|
}, filteredProps, {
|
|
6834
6982
|
css: /* @__PURE__ */ css({
|
|
@@ -6860,11 +7008,11 @@ var cancelScroll = function cancelScroll2(event) {
|
|
|
6860
7008
|
};
|
|
6861
7009
|
function useScrollCapture(_ref3) {
|
|
6862
7010
|
var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
|
|
6863
|
-
var isBottom = (0,
|
|
6864
|
-
var isTop = (0,
|
|
6865
|
-
var touchStart = (0,
|
|
6866
|
-
var scrollTarget = (0,
|
|
6867
|
-
var handleEventDelta = (0,
|
|
7011
|
+
var isBottom = (0, import_react45.useRef)(false);
|
|
7012
|
+
var isTop = (0, import_react45.useRef)(false);
|
|
7013
|
+
var touchStart = (0, import_react45.useRef)(0);
|
|
7014
|
+
var scrollTarget = (0, import_react45.useRef)(null);
|
|
7015
|
+
var handleEventDelta = (0, import_react45.useCallback)(function(event, delta) {
|
|
6868
7016
|
if (scrollTarget.current === null) return;
|
|
6869
7017
|
var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
|
|
6870
7018
|
var target = scrollTarget.current;
|
|
@@ -6898,17 +7046,17 @@ function useScrollCapture(_ref3) {
|
|
|
6898
7046
|
cancelScroll(event);
|
|
6899
7047
|
}
|
|
6900
7048
|
}, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);
|
|
6901
|
-
var onWheel = (0,
|
|
7049
|
+
var onWheel = (0, import_react45.useCallback)(function(event) {
|
|
6902
7050
|
handleEventDelta(event, event.deltaY);
|
|
6903
7051
|
}, [handleEventDelta]);
|
|
6904
|
-
var onTouchStart = (0,
|
|
7052
|
+
var onTouchStart = (0, import_react45.useCallback)(function(event) {
|
|
6905
7053
|
touchStart.current = event.changedTouches[0].clientY;
|
|
6906
7054
|
}, []);
|
|
6907
|
-
var onTouchMove = (0,
|
|
7055
|
+
var onTouchMove = (0, import_react45.useCallback)(function(event) {
|
|
6908
7056
|
var deltaY = touchStart.current - event.changedTouches[0].clientY;
|
|
6909
7057
|
handleEventDelta(event, deltaY);
|
|
6910
7058
|
}, [handleEventDelta]);
|
|
6911
|
-
var startListening = (0,
|
|
7059
|
+
var startListening = (0, import_react45.useCallback)(function(el) {
|
|
6912
7060
|
if (!el) return;
|
|
6913
7061
|
var notPassive = supportsPassiveEvents ? {
|
|
6914
7062
|
passive: false
|
|
@@ -6917,13 +7065,13 @@ function useScrollCapture(_ref3) {
|
|
|
6917
7065
|
el.addEventListener("touchstart", onTouchStart, notPassive);
|
|
6918
7066
|
el.addEventListener("touchmove", onTouchMove, notPassive);
|
|
6919
7067
|
}, [onTouchMove, onTouchStart, onWheel]);
|
|
6920
|
-
var stopListening = (0,
|
|
7068
|
+
var stopListening = (0, import_react45.useCallback)(function(el) {
|
|
6921
7069
|
if (!el) return;
|
|
6922
7070
|
el.removeEventListener("wheel", onWheel, false);
|
|
6923
7071
|
el.removeEventListener("touchstart", onTouchStart, false);
|
|
6924
7072
|
el.removeEventListener("touchmove", onTouchMove, false);
|
|
6925
7073
|
}, [onTouchMove, onTouchStart, onWheel]);
|
|
6926
|
-
(0,
|
|
7074
|
+
(0, import_react45.useEffect)(function() {
|
|
6927
7075
|
if (!isEnabled) return;
|
|
6928
7076
|
var element = scrollTarget.current;
|
|
6929
7077
|
startListening(element);
|
|
@@ -6970,9 +7118,9 @@ var listenerOptions = {
|
|
|
6970
7118
|
};
|
|
6971
7119
|
function useScrollLock(_ref3) {
|
|
6972
7120
|
var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
|
|
6973
|
-
var originalStyles = (0,
|
|
6974
|
-
var scrollTarget = (0,
|
|
6975
|
-
var addScrollLock = (0,
|
|
7121
|
+
var originalStyles = (0, import_react45.useRef)({});
|
|
7122
|
+
var scrollTarget = (0, import_react45.useRef)(null);
|
|
7123
|
+
var addScrollLock = (0, import_react45.useCallback)(function(touchScrollTarget) {
|
|
6976
7124
|
if (!canUseDOM) return;
|
|
6977
7125
|
var target = document.body;
|
|
6978
7126
|
var targetStyle = target && target.style;
|
|
@@ -7005,7 +7153,7 @@ function useScrollLock(_ref3) {
|
|
|
7005
7153
|
}
|
|
7006
7154
|
activeScrollLocks += 1;
|
|
7007
7155
|
}, [accountForScrollbars]);
|
|
7008
|
-
var removeScrollLock = (0,
|
|
7156
|
+
var removeScrollLock = (0, import_react45.useCallback)(function(touchScrollTarget) {
|
|
7009
7157
|
if (!canUseDOM) return;
|
|
7010
7158
|
var target = document.body;
|
|
7011
7159
|
var targetStyle = target && target.style;
|
|
@@ -7026,7 +7174,7 @@ function useScrollLock(_ref3) {
|
|
|
7026
7174
|
}
|
|
7027
7175
|
}
|
|
7028
7176
|
}, [accountForScrollbars]);
|
|
7029
|
-
(0,
|
|
7177
|
+
(0, import_react45.useEffect)(function() {
|
|
7030
7178
|
if (!isEnabled) return;
|
|
7031
7179
|
var element = scrollTarget.current;
|
|
7032
7180
|
addScrollLock(element);
|
|
@@ -7070,7 +7218,7 @@ function ScrollManager(_ref3) {
|
|
|
7070
7218
|
setScrollCaptureTarget(element);
|
|
7071
7219
|
setScrollLockTarget(element);
|
|
7072
7220
|
};
|
|
7073
|
-
return
|
|
7221
|
+
return jsx76(import_react45.Fragment, null, lockEnabled && jsx76("div", {
|
|
7074
7222
|
onClick: blurSelectInput,
|
|
7075
7223
|
css: _ref2$1
|
|
7076
7224
|
}), children(targetRef));
|
|
@@ -7089,7 +7237,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
7089
7237
|
};
|
|
7090
7238
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
7091
7239
|
var name = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
7092
|
-
return
|
|
7240
|
+
return jsx76("input", {
|
|
7093
7241
|
required: true,
|
|
7094
7242
|
name,
|
|
7095
7243
|
tabIndex: -1,
|
|
@@ -8648,10 +8796,10 @@ var Select = /* @__PURE__ */ function(_Component) {
|
|
|
8648
8796
|
}
|
|
8649
8797
|
}]);
|
|
8650
8798
|
return Select3;
|
|
8651
|
-
}(
|
|
8799
|
+
}(import_react45.Component);
|
|
8652
8800
|
Select.defaultProps = defaultProps;
|
|
8653
8801
|
|
|
8654
|
-
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.
|
|
8802
|
+
// ../../node_modules/.pnpm/react-select@5.10.1_@types+react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-select/dist/react-select.esm.js
|
|
8655
8803
|
var import_objectSpread24 = __toESM(require_objectSpread2());
|
|
8656
8804
|
var import_slicedToArray3 = __toESM(require_slicedToArray());
|
|
8657
8805
|
var import_objectWithoutProperties4 = __toESM(require_objectWithoutProperties());
|
|
@@ -8664,7 +8812,7 @@ var import_typeof5 = __toESM(require_typeof());
|
|
|
8664
8812
|
var import_taggedTemplateLiteral2 = __toESM(require_taggedTemplateLiteral());
|
|
8665
8813
|
var import_defineProperty3 = __toESM(require_defineProperty());
|
|
8666
8814
|
var import_react_dom2 = require("react-dom");
|
|
8667
|
-
var StateManagedSelect = /* @__PURE__ */ (0,
|
|
8815
|
+
var StateManagedSelect = /* @__PURE__ */ (0, import_react47.forwardRef)(function(props, ref) {
|
|
8668
8816
|
var baseSelectProps = useStateManager(props);
|
|
8669
8817
|
return /* @__PURE__ */ React11.createElement(Select, _extends({
|
|
8670
8818
|
ref
|
|
@@ -8672,12 +8820,12 @@ var StateManagedSelect = /* @__PURE__ */ (0, import_react45.forwardRef)(function
|
|
|
8672
8820
|
});
|
|
8673
8821
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
8674
8822
|
|
|
8675
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.
|
|
8676
|
-
var
|
|
8823
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
8824
|
+
var import_utils6 = require("@react-aria/utils");
|
|
8677
8825
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
8678
8826
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
8679
|
-
id = (0,
|
|
8680
|
-
let labelId = (0,
|
|
8827
|
+
id = (0, import_utils6.useId)(id);
|
|
8828
|
+
let labelId = (0, import_utils6.useId)();
|
|
8681
8829
|
let labelProps = {};
|
|
8682
8830
|
if (label) {
|
|
8683
8831
|
ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;
|
|
@@ -8686,7 +8834,7 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
8686
8834
|
htmlFor: labelElementType === "label" ? id : void 0
|
|
8687
8835
|
};
|
|
8688
8836
|
} else if (!ariaLabelledby && !ariaLabel) console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
|
|
8689
|
-
let fieldProps = (0,
|
|
8837
|
+
let fieldProps = (0, import_utils6.useLabels)({
|
|
8690
8838
|
id,
|
|
8691
8839
|
"aria-label": ariaLabel,
|
|
8692
8840
|
"aria-labelledby": ariaLabelledby
|
|
@@ -8697,24 +8845,24 @@ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
|
8697
8845
|
};
|
|
8698
8846
|
}
|
|
8699
8847
|
|
|
8700
|
-
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.
|
|
8701
|
-
var
|
|
8848
|
+
// ../../node_modules/.pnpm/@react-aria+label@3.7.16_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/label/dist/useField.mjs
|
|
8849
|
+
var import_utils7 = require("@react-aria/utils");
|
|
8702
8850
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
8703
8851
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
8704
8852
|
let { labelProps, fieldProps } = (0, $d191a55c9702f145$export$8467354a121f1b9f)(props);
|
|
8705
|
-
let descriptionId = (0,
|
|
8853
|
+
let descriptionId = (0, import_utils7.useSlotId)([
|
|
8706
8854
|
Boolean(description),
|
|
8707
8855
|
Boolean(errorMessage),
|
|
8708
8856
|
isInvalid,
|
|
8709
8857
|
validationState
|
|
8710
8858
|
]);
|
|
8711
|
-
let errorMessageId = (0,
|
|
8859
|
+
let errorMessageId = (0, import_utils7.useSlotId)([
|
|
8712
8860
|
Boolean(description),
|
|
8713
8861
|
Boolean(errorMessage),
|
|
8714
8862
|
isInvalid,
|
|
8715
8863
|
validationState
|
|
8716
8864
|
]);
|
|
8717
|
-
fieldProps = (0,
|
|
8865
|
+
fieldProps = (0, import_utils7.mergeProps)(fieldProps, {
|
|
8718
8866
|
"aria-describedby": [
|
|
8719
8867
|
descriptionId,
|
|
8720
8868
|
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
@@ -8735,9 +8883,9 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
8735
8883
|
}
|
|
8736
8884
|
|
|
8737
8885
|
// src/Multiselect/Multiselect.tsx
|
|
8738
|
-
var
|
|
8886
|
+
var import_utils8 = require("@react-aria/utils");
|
|
8739
8887
|
var import_system64 = require("@marigold/system");
|
|
8740
|
-
var
|
|
8888
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8741
8889
|
var propsToBeRemoved = [
|
|
8742
8890
|
"clearValue",
|
|
8743
8891
|
"getStyles",
|
|
@@ -8763,8 +8911,8 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8763
8911
|
},
|
|
8764
8912
|
{}
|
|
8765
8913
|
);
|
|
8766
|
-
return /* @__PURE__ */ (0,
|
|
8767
|
-
|
|
8914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8915
|
+
import_react_aria_components45.Input,
|
|
8768
8916
|
{
|
|
8769
8917
|
disabled: props.isDisabled,
|
|
8770
8918
|
ref: innerRef,
|
|
@@ -8774,11 +8922,11 @@ var Input4 = ({ innerRef, placeholder, hasValue, ...props }) => {
|
|
|
8774
8922
|
);
|
|
8775
8923
|
};
|
|
8776
8924
|
var MultiValueRemove2 = ({ innerProps }) => {
|
|
8777
|
-
return /* @__PURE__ */ (0,
|
|
8925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria_components45.Button, { slot: "remove", ...innerProps, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
|
|
8778
8926
|
};
|
|
8779
8927
|
var getClassNames = (classNames3) => ({
|
|
8780
8928
|
control: () => (0, import_system64.cn)(
|
|
8781
|
-
"relative flex items-center box-border flex-wrap justify-between
|
|
8929
|
+
"relative flex items-center box-border flex-wrap justify-between",
|
|
8782
8930
|
classNames3.container
|
|
8783
8931
|
),
|
|
8784
8932
|
container: () => "pointer-events-auto",
|
|
@@ -8795,6 +8943,7 @@ var Multiselect = ({
|
|
|
8795
8943
|
disabled,
|
|
8796
8944
|
readOnly = false,
|
|
8797
8945
|
items,
|
|
8946
|
+
selectedItems,
|
|
8798
8947
|
defaultSelectedItems,
|
|
8799
8948
|
defaultValue,
|
|
8800
8949
|
error,
|
|
@@ -8816,6 +8965,7 @@ var Multiselect = ({
|
|
|
8816
8965
|
options: items,
|
|
8817
8966
|
defaultInputValue: defaultValue,
|
|
8818
8967
|
defaultValue: defaultSelectedItems,
|
|
8968
|
+
value: selectedItems,
|
|
8819
8969
|
onInputChange: onChange2,
|
|
8820
8970
|
onChange: onSelectionChange,
|
|
8821
8971
|
...rest
|
|
@@ -8824,12 +8974,12 @@ var Multiselect = ({
|
|
|
8824
8974
|
label: props.label,
|
|
8825
8975
|
errorMessage
|
|
8826
8976
|
});
|
|
8827
|
-
return /* @__PURE__ */ (0,
|
|
8828
|
-
|
|
8977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8978
|
+
import_react_aria_components45.Provider,
|
|
8829
8979
|
{
|
|
8830
8980
|
values: [
|
|
8831
8981
|
[
|
|
8832
|
-
|
|
8982
|
+
import_react_aria_components45.FieldErrorContext,
|
|
8833
8983
|
{
|
|
8834
8984
|
isInvalid: !!error,
|
|
8835
8985
|
validationDetails: {},
|
|
@@ -8837,7 +8987,7 @@ var Multiselect = ({
|
|
|
8837
8987
|
}
|
|
8838
8988
|
],
|
|
8839
8989
|
[
|
|
8840
|
-
|
|
8990
|
+
import_react_aria_components45.InputContext,
|
|
8841
8991
|
{
|
|
8842
8992
|
...fieldProps,
|
|
8843
8993
|
placeholder,
|
|
@@ -8845,7 +8995,7 @@ var Multiselect = ({
|
|
|
8845
8995
|
}
|
|
8846
8996
|
],
|
|
8847
8997
|
[
|
|
8848
|
-
|
|
8998
|
+
import_react_aria_components45.ButtonContext,
|
|
8849
8999
|
{
|
|
8850
9000
|
// react-select doesn't handle readonly so we had to do it manually here
|
|
8851
9001
|
// keep to the button disabled in read only to prevent menu from opening
|
|
@@ -8854,7 +9004,7 @@ var Multiselect = ({
|
|
|
8854
9004
|
}
|
|
8855
9005
|
]
|
|
8856
9006
|
],
|
|
8857
|
-
children: /* @__PURE__ */ (0,
|
|
9007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8858
9008
|
"div",
|
|
8859
9009
|
{
|
|
8860
9010
|
className: (0, import_system64.cn)(classNames3.field, "group/field"),
|
|
@@ -8862,8 +9012,8 @@ var Multiselect = ({
|
|
|
8862
9012
|
"data-invalid": error,
|
|
8863
9013
|
"data-readonly": readOnly,
|
|
8864
9014
|
children: [
|
|
8865
|
-
props.label && /* @__PURE__ */ (0,
|
|
8866
|
-
/* @__PURE__ */ (0,
|
|
9015
|
+
props.label && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Label, { ...labelProps, children: props.label }),
|
|
9016
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8867
9017
|
StateManagedSelect$1,
|
|
8868
9018
|
{
|
|
8869
9019
|
...props,
|
|
@@ -8887,7 +9037,7 @@ var Multiselect = ({
|
|
|
8887
9037
|
inputId: fieldProps.id,
|
|
8888
9038
|
"aria-invalid": error,
|
|
8889
9039
|
isClearable: false,
|
|
8890
|
-
instanceId: (0,
|
|
9040
|
+
instanceId: (0, import_utils8.useId)(),
|
|
8891
9041
|
isSearchable: !readOnly,
|
|
8892
9042
|
isMulti: true,
|
|
8893
9043
|
closeMenuOnSelect: false,
|
|
@@ -8897,19 +9047,19 @@ var Multiselect = ({
|
|
|
8897
9047
|
components: {
|
|
8898
9048
|
Input: Input4,
|
|
8899
9049
|
MultiValueRemove: MultiValueRemove2,
|
|
8900
|
-
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0,
|
|
9050
|
+
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8901
9051
|
"button",
|
|
8902
9052
|
{
|
|
8903
9053
|
...innerProps,
|
|
8904
9054
|
disabled: isDisabled,
|
|
8905
9055
|
className: classNames3.icon,
|
|
8906
|
-
children: /* @__PURE__ */ (0,
|
|
9056
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ChevronDown, { className: "size-4" })
|
|
8907
9057
|
}
|
|
8908
9058
|
)
|
|
8909
9059
|
}
|
|
8910
9060
|
}
|
|
8911
9061
|
),
|
|
8912
|
-
/* @__PURE__ */ (0,
|
|
9062
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(HelpText, { description, errorMessage })
|
|
8913
9063
|
]
|
|
8914
9064
|
}
|
|
8915
9065
|
)
|
|
@@ -8918,15 +9068,15 @@ var Multiselect = ({
|
|
|
8918
9068
|
};
|
|
8919
9069
|
|
|
8920
9070
|
// src/NumberField/NumberField.tsx
|
|
8921
|
-
var
|
|
8922
|
-
var
|
|
9071
|
+
var import_react48 = require("react");
|
|
9072
|
+
var import_react_aria_components47 = require("react-aria-components");
|
|
8923
9073
|
var import_system66 = require("@marigold/system");
|
|
8924
9074
|
|
|
8925
9075
|
// src/NumberField/StepButton.tsx
|
|
8926
|
-
var
|
|
9076
|
+
var import_react_aria_components46 = require("react-aria-components");
|
|
8927
9077
|
var import_system65 = require("@marigold/system");
|
|
8928
|
-
var
|
|
8929
|
-
var Plus = () => /* @__PURE__ */ (0,
|
|
9078
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
9079
|
+
var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8930
9080
|
"path",
|
|
8931
9081
|
{
|
|
8932
9082
|
fillRule: "evenodd",
|
|
@@ -8934,7 +9084,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width: 1
|
|
|
8934
9084
|
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"
|
|
8935
9085
|
}
|
|
8936
9086
|
) });
|
|
8937
|
-
var Minus = () => /* @__PURE__ */ (0,
|
|
9087
|
+
var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8938
9088
|
"path",
|
|
8939
9089
|
{
|
|
8940
9090
|
fillRule: "evenodd",
|
|
@@ -8944,8 +9094,8 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("svg", { width:
|
|
|
8944
9094
|
) });
|
|
8945
9095
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
8946
9096
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
8947
|
-
return /* @__PURE__ */ (0,
|
|
8948
|
-
|
|
9097
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
9098
|
+
import_react_aria_components46.Button,
|
|
8949
9099
|
{
|
|
8950
9100
|
className: (0, import_system65.cn)(
|
|
8951
9101
|
[
|
|
@@ -8955,14 +9105,14 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
8955
9105
|
className
|
|
8956
9106
|
),
|
|
8957
9107
|
...props,
|
|
8958
|
-
children: /* @__PURE__ */ (0,
|
|
9108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Icon4, {})
|
|
8959
9109
|
}
|
|
8960
9110
|
);
|
|
8961
9111
|
};
|
|
8962
9112
|
|
|
8963
9113
|
// src/NumberField/NumberField.tsx
|
|
8964
|
-
var
|
|
8965
|
-
var _NumberField = (0,
|
|
9114
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
9115
|
+
var _NumberField = (0, import_react48.forwardRef)(
|
|
8966
9116
|
({
|
|
8967
9117
|
variant,
|
|
8968
9118
|
size: size2,
|
|
@@ -8986,15 +9136,15 @@ var _NumberField = (0, import_react46.forwardRef)(
|
|
|
8986
9136
|
...rest
|
|
8987
9137
|
};
|
|
8988
9138
|
const showStepper = !hideStepper && !readOnly;
|
|
8989
|
-
return /* @__PURE__ */ (0,
|
|
9139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8990
9140
|
FieldBase,
|
|
8991
9141
|
{
|
|
8992
|
-
as:
|
|
9142
|
+
as: import_react_aria_components47.NumberField,
|
|
8993
9143
|
...props,
|
|
8994
9144
|
"data-readonly": readOnly ? "true" : void 0,
|
|
8995
9145
|
"data-stepper": showStepper ? "true" : void 0,
|
|
8996
|
-
children: /* @__PURE__ */ (0,
|
|
8997
|
-
showStepper && /* @__PURE__ */ (0,
|
|
9146
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_react_aria_components47.Group, { className: (0, import_system66.cn)("flex items-stretch", classNames3.group), children: [
|
|
9147
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8998
9148
|
_StepButton,
|
|
8999
9149
|
{
|
|
9000
9150
|
className: classNames3.stepper,
|
|
@@ -9002,14 +9152,14 @@ var _NumberField = (0, import_react46.forwardRef)(
|
|
|
9002
9152
|
slot: "decrement"
|
|
9003
9153
|
}
|
|
9004
9154
|
),
|
|
9005
|
-
/* @__PURE__ */ (0,
|
|
9006
|
-
|
|
9155
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9156
|
+
import_react_aria_components47.Input,
|
|
9007
9157
|
{
|
|
9008
9158
|
ref,
|
|
9009
9159
|
className: (0, import_system66.cn)("h-full flex-1 outline-none", classNames3.input)
|
|
9010
9160
|
}
|
|
9011
9161
|
),
|
|
9012
|
-
showStepper && /* @__PURE__ */ (0,
|
|
9162
|
+
showStepper && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9013
9163
|
_StepButton,
|
|
9014
9164
|
{
|
|
9015
9165
|
className: classNames3.stepper,
|
|
@@ -9023,160 +9173,6 @@ var _NumberField = (0, import_react46.forwardRef)(
|
|
|
9023
9173
|
}
|
|
9024
9174
|
);
|
|
9025
9175
|
|
|
9026
|
-
// src/Overlay/NonModal.tsx
|
|
9027
|
-
var import_react48 = require("react");
|
|
9028
|
-
var import_react_aria_components46 = require("react-aria-components");
|
|
9029
|
-
var import_react_stately = require("react-stately");
|
|
9030
|
-
var import_focus = require("@react-aria/focus");
|
|
9031
|
-
var import_overlays2 = require("@react-aria/overlays");
|
|
9032
|
-
var import_ssr2 = require("@react-aria/ssr");
|
|
9033
|
-
var import_utils8 = require("@react-aria/utils");
|
|
9034
|
-
|
|
9035
|
-
// src/utils/useRenderProps.tsx
|
|
9036
|
-
var import_react47 = require("react");
|
|
9037
|
-
function useRenderProps(props) {
|
|
9038
|
-
let {
|
|
9039
|
-
className,
|
|
9040
|
-
style,
|
|
9041
|
-
children,
|
|
9042
|
-
defaultClassName = void 0,
|
|
9043
|
-
defaultChildren = void 0,
|
|
9044
|
-
defaultStyle,
|
|
9045
|
-
values
|
|
9046
|
-
} = props;
|
|
9047
|
-
return (0, import_react47.useMemo)(() => {
|
|
9048
|
-
let computedClassName;
|
|
9049
|
-
let computedStyle;
|
|
9050
|
-
let computedChildren;
|
|
9051
|
-
if (typeof className === "function") {
|
|
9052
|
-
computedClassName = className({ ...values, defaultClassName });
|
|
9053
|
-
} else {
|
|
9054
|
-
computedClassName = className;
|
|
9055
|
-
}
|
|
9056
|
-
if (typeof style === "function") {
|
|
9057
|
-
computedStyle = style({ ...values, defaultStyle: defaultStyle || {} });
|
|
9058
|
-
} else {
|
|
9059
|
-
computedStyle = style;
|
|
9060
|
-
}
|
|
9061
|
-
if (typeof children === "function") {
|
|
9062
|
-
computedChildren = children({ ...values, defaultChildren });
|
|
9063
|
-
} else if (children == null) {
|
|
9064
|
-
computedChildren = defaultChildren;
|
|
9065
|
-
} else {
|
|
9066
|
-
computedChildren = children;
|
|
9067
|
-
}
|
|
9068
|
-
return {
|
|
9069
|
-
className: computedClassName != null ? computedClassName : defaultClassName,
|
|
9070
|
-
style: computedStyle || defaultStyle ? { ...defaultStyle, ...computedStyle } : void 0,
|
|
9071
|
-
children: computedChildren != null ? computedChildren : defaultChildren,
|
|
9072
|
-
"data-rac": ""
|
|
9073
|
-
};
|
|
9074
|
-
}, [
|
|
9075
|
-
className,
|
|
9076
|
-
style,
|
|
9077
|
-
children,
|
|
9078
|
-
defaultClassName,
|
|
9079
|
-
defaultChildren,
|
|
9080
|
-
defaultStyle,
|
|
9081
|
-
values
|
|
9082
|
-
]);
|
|
9083
|
-
}
|
|
9084
|
-
|
|
9085
|
-
// src/Overlay/useNonModal.ts
|
|
9086
|
-
var import_overlays = require("@react-aria/overlays");
|
|
9087
|
-
var useNonModal = ({ nonModalRef, keyboardDismissable = true }, state) => {
|
|
9088
|
-
let { overlayProps } = (0, import_overlays.useOverlay)(
|
|
9089
|
-
{
|
|
9090
|
-
isOpen: state.isOpen,
|
|
9091
|
-
onClose: state.close,
|
|
9092
|
-
shouldCloseOnBlur: false,
|
|
9093
|
-
isDismissable: false,
|
|
9094
|
-
isKeyboardDismissDisabled: keyboardDismissable ? false : true
|
|
9095
|
-
},
|
|
9096
|
-
nonModalRef
|
|
9097
|
-
);
|
|
9098
|
-
return {
|
|
9099
|
-
nonModalProps: overlayProps
|
|
9100
|
-
};
|
|
9101
|
-
};
|
|
9102
|
-
|
|
9103
|
-
// src/Overlay/NonModal.tsx
|
|
9104
|
-
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
9105
|
-
var NonModalInner = ({ state, isExiting, ...props }) => {
|
|
9106
|
-
const { nonModalProps } = useNonModal(props, state);
|
|
9107
|
-
const ref = props.nonModalRef;
|
|
9108
|
-
const portalContainer = usePortalContainer();
|
|
9109
|
-
const isEntering = (0, import_utils8.useEnterAnimation)(ref) || props.isEntering || false;
|
|
9110
|
-
const renderProps = useRenderProps({
|
|
9111
|
-
...props,
|
|
9112
|
-
defaultClassName: "react-aria-NonModalOverlay",
|
|
9113
|
-
values: {
|
|
9114
|
-
isEntering,
|
|
9115
|
-
isExiting,
|
|
9116
|
-
state
|
|
9117
|
-
}
|
|
9118
|
-
});
|
|
9119
|
-
const viewport = (0, import_utils8.useViewportSize)();
|
|
9120
|
-
const style = {
|
|
9121
|
-
...renderProps.style,
|
|
9122
|
-
"--visual-viewport-height": viewport.height + "px"
|
|
9123
|
-
};
|
|
9124
|
-
const overlay = /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
9125
|
-
"div",
|
|
9126
|
-
{
|
|
9127
|
-
...(0, import_utils8.mergeProps)((0, import_utils8.filterDOMProps)(props), nonModalProps),
|
|
9128
|
-
...renderProps,
|
|
9129
|
-
tabIndex: -1,
|
|
9130
|
-
"aria-label": props["aria-label"],
|
|
9131
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
9132
|
-
ref,
|
|
9133
|
-
slot: props.slot || void 0,
|
|
9134
|
-
style,
|
|
9135
|
-
"data-entering": isEntering || void 0,
|
|
9136
|
-
"data-exiting": isExiting || void 0,
|
|
9137
|
-
children: [
|
|
9138
|
-
renderProps.children,
|
|
9139
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
|
|
9140
|
-
]
|
|
9141
|
-
}
|
|
9142
|
-
);
|
|
9143
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9144
|
-
import_overlays2.Overlay,
|
|
9145
|
-
{
|
|
9146
|
-
isExiting,
|
|
9147
|
-
portalContainer,
|
|
9148
|
-
disableFocusManagement: true,
|
|
9149
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_focus.FocusScope, { restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_aria_components46.Provider, { values: [[import_react_aria_components46.OverlayTriggerStateContext, state]], children: overlay }) })
|
|
9150
|
-
}
|
|
9151
|
-
);
|
|
9152
|
-
};
|
|
9153
|
-
var NonModal = (0, import_react48.forwardRef)(
|
|
9154
|
-
({ open, ...rest }, ref) => {
|
|
9155
|
-
const props = {
|
|
9156
|
-
isOpen: open,
|
|
9157
|
-
...rest
|
|
9158
|
-
};
|
|
9159
|
-
ref = (0, import_utils8.useObjectRef)(ref);
|
|
9160
|
-
const contextState = (0, import_react48.useContext)(import_react_aria_components46.OverlayTriggerStateContext);
|
|
9161
|
-
const localState = (0, import_react_stately.useOverlayTriggerState)(props);
|
|
9162
|
-
const state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
9163
|
-
const isExiting = (0, import_utils8.useExitAnimation)(ref, state.isOpen) || props.isExiting || false;
|
|
9164
|
-
const isSSR = (0, import_ssr2.useIsSSR)();
|
|
9165
|
-
if (state && !state.isOpen && !isExiting || isSSR) {
|
|
9166
|
-
return null;
|
|
9167
|
-
}
|
|
9168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
9169
|
-
NonModalInner,
|
|
9170
|
-
{
|
|
9171
|
-
...props,
|
|
9172
|
-
nonModalRef: ref,
|
|
9173
|
-
state,
|
|
9174
|
-
isExiting
|
|
9175
|
-
}
|
|
9176
|
-
);
|
|
9177
|
-
}
|
|
9178
|
-
);
|
|
9179
|
-
|
|
9180
9176
|
// src/Pagination/Pagination.tsx
|
|
9181
9177
|
var import_react52 = require("react");
|
|
9182
9178
|
var import_system69 = require("@marigold/system");
|
|
@@ -9274,7 +9270,7 @@ var PageButton = (props) => {
|
|
|
9274
9270
|
|
|
9275
9271
|
// src/Pagination/useKeyboardNavigation.tsx
|
|
9276
9272
|
var import_react51 = require("react");
|
|
9277
|
-
var
|
|
9273
|
+
var import_interactions2 = require("@react-aria/interactions");
|
|
9278
9274
|
var NavigationTypes = {
|
|
9279
9275
|
Prev: "prev",
|
|
9280
9276
|
Next: "next",
|
|
@@ -9330,7 +9326,7 @@ var useKeyboardNavigation = ({
|
|
|
9330
9326
|
},
|
|
9331
9327
|
[isItemDisabled]
|
|
9332
9328
|
);
|
|
9333
|
-
const { keyboardProps } = (0,
|
|
9329
|
+
const { keyboardProps } = (0, import_interactions2.useKeyboard)({
|
|
9334
9330
|
onKeyDown: (e) => {
|
|
9335
9331
|
let newFocusedItem = focusedItem;
|
|
9336
9332
|
switch (e.key) {
|
|
@@ -9518,7 +9514,7 @@ var _Pagination = ({
|
|
|
9518
9514
|
|
|
9519
9515
|
// src/Radio/Radio.tsx
|
|
9520
9516
|
var import_react54 = require("react");
|
|
9521
|
-
var
|
|
9517
|
+
var import_react_aria_components49 = require("react-aria-components");
|
|
9522
9518
|
var import_system71 = require("@marigold/system");
|
|
9523
9519
|
|
|
9524
9520
|
// src/Radio/Context.ts
|
|
@@ -9529,7 +9525,7 @@ var RadioGroupContext = (0, import_react53.createContext)(
|
|
|
9529
9525
|
var useRadioGroupContext = () => (0, import_react53.useContext)(RadioGroupContext);
|
|
9530
9526
|
|
|
9531
9527
|
// src/Radio/RadioGroup.tsx
|
|
9532
|
-
var
|
|
9528
|
+
var import_react_aria_components48 = require("react-aria-components");
|
|
9533
9529
|
var import_system70 = require("@marigold/system");
|
|
9534
9530
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
9535
9531
|
var _RadioGroup = ({
|
|
@@ -9558,7 +9554,7 @@ var _RadioGroup = ({
|
|
|
9558
9554
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9559
9555
|
FieldBase,
|
|
9560
9556
|
{
|
|
9561
|
-
as:
|
|
9557
|
+
as: import_react_aria_components48.RadioGroup,
|
|
9562
9558
|
width,
|
|
9563
9559
|
label,
|
|
9564
9560
|
description,
|
|
@@ -9608,7 +9604,7 @@ var _Radio = (0, import_react54.forwardRef)(
|
|
|
9608
9604
|
size: size2 || props.size
|
|
9609
9605
|
});
|
|
9610
9606
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9611
|
-
|
|
9607
|
+
import_react_aria_components49.Radio,
|
|
9612
9608
|
{
|
|
9613
9609
|
ref,
|
|
9614
9610
|
className: (0, import_system71.cn)(
|
|
@@ -9641,7 +9637,7 @@ _Radio.Group = _RadioGroup;
|
|
|
9641
9637
|
|
|
9642
9638
|
// src/SearchField/SearchField.tsx
|
|
9643
9639
|
var import_react55 = require("react");
|
|
9644
|
-
var
|
|
9640
|
+
var import_react_aria_components50 = require("react-aria-components");
|
|
9645
9641
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
9646
9642
|
var _SearchField = (0, import_react55.forwardRef)(
|
|
9647
9643
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
@@ -9652,7 +9648,7 @@ var _SearchField = (0, import_react55.forwardRef)(
|
|
|
9652
9648
|
isReadOnly: readOnly,
|
|
9653
9649
|
isInvalid: error
|
|
9654
9650
|
};
|
|
9655
|
-
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as:
|
|
9651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components50.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
9656
9652
|
SearchInput,
|
|
9657
9653
|
{
|
|
9658
9654
|
ref,
|
|
@@ -9664,7 +9660,7 @@ var _SearchField = (0, import_react55.forwardRef)(
|
|
|
9664
9660
|
|
|
9665
9661
|
// src/Select/Select.tsx
|
|
9666
9662
|
var import_react56 = require("react");
|
|
9667
|
-
var
|
|
9663
|
+
var import_react_aria_components51 = require("react-aria-components");
|
|
9668
9664
|
var import_system72 = require("@marigold/system");
|
|
9669
9665
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
9670
9666
|
var _Select = (0, import_react56.forwardRef)(
|
|
@@ -9688,7 +9684,7 @@ var _Select = (0, import_react56.forwardRef)(
|
|
|
9688
9684
|
...rest
|
|
9689
9685
|
};
|
|
9690
9686
|
const classNames3 = (0, import_system72.useClassNames)({ component: "Select", variant, size: size2 });
|
|
9691
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as:
|
|
9687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(FieldBase, { as: import_react_aria_components51.Select, ref, variant, size: size2, ...props, children: [
|
|
9692
9688
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
9693
9689
|
IconButton,
|
|
9694
9690
|
{
|
|
@@ -9697,7 +9693,7 @@ var _Select = (0, import_react56.forwardRef)(
|
|
|
9697
9693
|
classNames3.select
|
|
9698
9694
|
),
|
|
9699
9695
|
children: [
|
|
9700
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9696
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.SelectValue, { className: "[&>[slot=description]]:hidden" }),
|
|
9701
9697
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronDown, { className: (0, import_system72.cn)("size-4", classNames3.icon) })
|
|
9702
9698
|
]
|
|
9703
9699
|
}
|
|
@@ -9711,7 +9707,7 @@ _Select.Section = _ListBox.Section;
|
|
|
9711
9707
|
|
|
9712
9708
|
// src/SelectList/SelectList.tsx
|
|
9713
9709
|
var import_react59 = require("react");
|
|
9714
|
-
var
|
|
9710
|
+
var import_react_aria_components53 = require("react-aria-components");
|
|
9715
9711
|
var import_system74 = require("@marigold/system");
|
|
9716
9712
|
|
|
9717
9713
|
// src/SelectList/Context.ts
|
|
@@ -9723,7 +9719,7 @@ var useSelectListContext = () => (0, import_react57.useContext)(SelectListContex
|
|
|
9723
9719
|
|
|
9724
9720
|
// src/SelectList/SelectListItem.tsx
|
|
9725
9721
|
var import_react58 = require("react");
|
|
9726
|
-
var
|
|
9722
|
+
var import_react_aria_components52 = require("react-aria-components");
|
|
9727
9723
|
var import_system73 = require("@marigold/system");
|
|
9728
9724
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
9729
9725
|
var _SelectListItem = (0, import_react58.forwardRef)(
|
|
@@ -9731,7 +9727,7 @@ var _SelectListItem = (0, import_react58.forwardRef)(
|
|
|
9731
9727
|
let textValue = typeof children === "string" ? children : void 0;
|
|
9732
9728
|
const { classNames: classNames3 } = useSelectListContext();
|
|
9733
9729
|
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9734
|
-
|
|
9730
|
+
import_react_aria_components52.GridListItem,
|
|
9735
9731
|
{
|
|
9736
9732
|
textValue,
|
|
9737
9733
|
...props,
|
|
@@ -9756,7 +9752,7 @@ var _SelectList = (0, import_react59.forwardRef)(
|
|
|
9756
9752
|
...rest
|
|
9757
9753
|
};
|
|
9758
9754
|
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(SelectListContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames3.container, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9759
|
-
|
|
9755
|
+
import_react_aria_components53.GridList,
|
|
9760
9756
|
{
|
|
9761
9757
|
...props,
|
|
9762
9758
|
layout: "grid",
|
|
@@ -9792,7 +9788,7 @@ var Scrollable = ({
|
|
|
9792
9788
|
|
|
9793
9789
|
// src/Slider/Slider.tsx
|
|
9794
9790
|
var import_react60 = require("react");
|
|
9795
|
-
var
|
|
9791
|
+
var import_react_aria_components54 = require("react-aria-components");
|
|
9796
9792
|
var import_system76 = require("@marigold/system");
|
|
9797
9793
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
9798
9794
|
var _Slider = (0, import_react60.forwardRef)(
|
|
@@ -9817,7 +9813,7 @@ var _Slider = (0, import_react60.forwardRef)(
|
|
|
9817
9813
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
9818
9814
|
FieldBase,
|
|
9819
9815
|
{
|
|
9820
|
-
as:
|
|
9816
|
+
as: import_react_aria_components54.Slider,
|
|
9821
9817
|
className: (0, import_system76.cn)(
|
|
9822
9818
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
9823
9819
|
classNames3.container,
|
|
@@ -9827,9 +9823,9 @@ var _Slider = (0, import_react60.forwardRef)(
|
|
|
9827
9823
|
...props,
|
|
9828
9824
|
children: [
|
|
9829
9825
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(_Label, { children: props.children && props.children || label && label }),
|
|
9830
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9826
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components54.SliderOutput, { className: (0, import_system76.cn)("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
9831
9827
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9832
|
-
|
|
9828
|
+
import_react_aria_components54.SliderTrack,
|
|
9833
9829
|
{
|
|
9834
9830
|
className: (0, import_system76.cn)("relative col-span-2 h-2 w-full", classNames3.track),
|
|
9835
9831
|
children: ({ state }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
|
|
@@ -9856,7 +9852,7 @@ var _Slider = (0, import_react60.forwardRef)(
|
|
|
9856
9852
|
}
|
|
9857
9853
|
),
|
|
9858
9854
|
state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9859
|
-
|
|
9855
|
+
import_react_aria_components54.SliderThumb,
|
|
9860
9856
|
{
|
|
9861
9857
|
className: (0, import_system76.cn)("top-1/2 cursor-pointer", classNames3.thumb),
|
|
9862
9858
|
index: i,
|
|
@@ -9908,7 +9904,7 @@ var Stack = ({
|
|
|
9908
9904
|
|
|
9909
9905
|
// src/Switch/Switch.tsx
|
|
9910
9906
|
var import_react61 = require("react");
|
|
9911
|
-
var
|
|
9907
|
+
var import_react_aria_components55 = require("react-aria-components");
|
|
9912
9908
|
var import_system78 = require("@marigold/system");
|
|
9913
9909
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
9914
9910
|
var _Switch = (0, import_react61.forwardRef)(
|
|
@@ -9930,7 +9926,7 @@ var _Switch = (0, import_react61.forwardRef)(
|
|
|
9930
9926
|
...rest
|
|
9931
9927
|
};
|
|
9932
9928
|
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
9933
|
-
|
|
9929
|
+
import_react_aria_components55.Switch,
|
|
9934
9930
|
{
|
|
9935
9931
|
...props,
|
|
9936
9932
|
ref,
|
|
@@ -10086,7 +10082,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
10086
10082
|
// src/Table/TableColumnHeader.tsx
|
|
10087
10083
|
var import_react65 = require("react");
|
|
10088
10084
|
var import_focus4 = require("@react-aria/focus");
|
|
10089
|
-
var
|
|
10085
|
+
var import_interactions3 = require("@react-aria/interactions");
|
|
10090
10086
|
var import_table4 = require("@react-aria/table");
|
|
10091
10087
|
var import_utils12 = require("@react-aria/utils");
|
|
10092
10088
|
var import_system81 = require("@marigold/system");
|
|
@@ -10106,7 +10102,7 @@ var TableColumnHeader = ({
|
|
|
10106
10102
|
state,
|
|
10107
10103
|
ref
|
|
10108
10104
|
);
|
|
10109
|
-
const { hoverProps, isHovered } = (0,
|
|
10105
|
+
const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
|
|
10110
10106
|
const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
|
|
10111
10107
|
const stateProps = (0, import_system81.useStateProps)({
|
|
10112
10108
|
hover: isHovered,
|
|
@@ -10169,7 +10165,7 @@ var TableHeaderRow = ({
|
|
|
10169
10165
|
// src/Table/TableRow.tsx
|
|
10170
10166
|
var import_react67 = require("react");
|
|
10171
10167
|
var import_focus5 = require("@react-aria/focus");
|
|
10172
|
-
var
|
|
10168
|
+
var import_interactions4 = require("@react-aria/interactions");
|
|
10173
10169
|
var import_table7 = require("@react-aria/table");
|
|
10174
10170
|
var import_utils13 = require("@react-aria/utils");
|
|
10175
10171
|
var import_system83 = require("@marigold/system");
|
|
@@ -10193,7 +10189,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10193
10189
|
const disabled = state.disabledKeys.has(row.key);
|
|
10194
10190
|
const selected = state.selectionManager.isSelected(row.key);
|
|
10195
10191
|
const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)();
|
|
10196
|
-
const { hoverProps, isHovered } = (0,
|
|
10192
|
+
const { hoverProps, isHovered } = (0, import_interactions4.useHover)({
|
|
10197
10193
|
isDisabled: disabled || !interactive
|
|
10198
10194
|
});
|
|
10199
10195
|
const stateProps = (0, import_system83.useStateProps)({
|
|
@@ -10223,7 +10219,7 @@ var TableRow = ({ children, row }) => {
|
|
|
10223
10219
|
// src/Table/TableSelectAllCell.tsx
|
|
10224
10220
|
var import_react68 = require("react");
|
|
10225
10221
|
var import_focus6 = require("@react-aria/focus");
|
|
10226
|
-
var
|
|
10222
|
+
var import_interactions5 = require("@react-aria/interactions");
|
|
10227
10223
|
var import_table8 = require("@react-aria/table");
|
|
10228
10224
|
var import_utils14 = require("@react-aria/utils");
|
|
10229
10225
|
var import_system84 = require("@marigold/system");
|
|
@@ -10243,7 +10239,7 @@ var TableSelectAllCell = ({
|
|
|
10243
10239
|
ref
|
|
10244
10240
|
);
|
|
10245
10241
|
const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
|
|
10246
|
-
const { hoverProps, isHovered } = (0,
|
|
10242
|
+
const { hoverProps, isHovered } = (0, import_interactions5.useHover)({});
|
|
10247
10243
|
const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
|
|
10248
10244
|
const stateProps = (0, import_system84.useStateProps)({
|
|
10249
10245
|
hover: isHovered,
|
|
@@ -10367,7 +10363,7 @@ Table.Header = import_table10.TableHeader;
|
|
|
10367
10363
|
Table.Row = import_table10.Row;
|
|
10368
10364
|
|
|
10369
10365
|
// src/Text/Text.tsx
|
|
10370
|
-
var
|
|
10366
|
+
var import_react_aria_components56 = require("react-aria-components");
|
|
10371
10367
|
var import_system86 = require("@marigold/system");
|
|
10372
10368
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
10373
10369
|
var _Text = ({
|
|
@@ -10388,7 +10384,7 @@ var _Text = ({
|
|
|
10388
10384
|
variant,
|
|
10389
10385
|
size: size2
|
|
10390
10386
|
});
|
|
10391
|
-
const Component2 = props.slot ?
|
|
10387
|
+
const Component2 = props.slot ? import_react_aria_components56.Text : as;
|
|
10392
10388
|
const elementType = props.slot ? { elementType: as } : {};
|
|
10393
10389
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
10394
10390
|
Component2,
|
|
@@ -10413,7 +10409,7 @@ var _Text = ({
|
|
|
10413
10409
|
|
|
10414
10410
|
// src/TextArea/TextArea.tsx
|
|
10415
10411
|
var import_react70 = require("react");
|
|
10416
|
-
var
|
|
10412
|
+
var import_react_aria_components57 = require("react-aria-components");
|
|
10417
10413
|
var import_system87 = require("@marigold/system");
|
|
10418
10414
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
10419
10415
|
var _TextArea = (0, import_react70.forwardRef)(
|
|
@@ -10435,13 +10431,13 @@ var _TextArea = (0, import_react70.forwardRef)(
|
|
|
10435
10431
|
isRequired: required,
|
|
10436
10432
|
...rest
|
|
10437
10433
|
};
|
|
10438
|
-
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as:
|
|
10434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(FieldBase, { as: import_react_aria_components57.TextField, ...props, variant, size: size2, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_aria_components57.TextArea, { className: classNames3, ref, rows }) });
|
|
10439
10435
|
}
|
|
10440
10436
|
);
|
|
10441
10437
|
|
|
10442
10438
|
// src/TextField/TextField.tsx
|
|
10443
10439
|
var import_react71 = require("react");
|
|
10444
|
-
var
|
|
10440
|
+
var import_react_aria_components58 = require("react-aria-components");
|
|
10445
10441
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
10446
10442
|
var _TextField = (0, import_react71.forwardRef)(
|
|
10447
10443
|
({ required, disabled, readOnly, error, ...rest }, ref) => {
|
|
@@ -10452,7 +10448,7 @@ var _TextField = (0, import_react71.forwardRef)(
|
|
|
10452
10448
|
isRequired: required,
|
|
10453
10449
|
...rest
|
|
10454
10450
|
};
|
|
10455
|
-
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as:
|
|
10451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FieldBase, { as: import_react_aria_components58.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(_Input, { ref }) });
|
|
10456
10452
|
}
|
|
10457
10453
|
);
|
|
10458
10454
|
|
|
@@ -10488,11 +10484,11 @@ var Tiles = ({
|
|
|
10488
10484
|
};
|
|
10489
10485
|
|
|
10490
10486
|
// src/Tooltip/Tooltip.tsx
|
|
10491
|
-
var
|
|
10487
|
+
var import_react_aria_components60 = require("react-aria-components");
|
|
10492
10488
|
var import_system89 = require("@marigold/system");
|
|
10493
10489
|
|
|
10494
10490
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10495
|
-
var
|
|
10491
|
+
var import_react_aria_components59 = require("react-aria-components");
|
|
10496
10492
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
10497
10493
|
var _TooltipTrigger = ({
|
|
10498
10494
|
delay = 1e3,
|
|
@@ -10507,7 +10503,7 @@ var _TooltipTrigger = ({
|
|
|
10507
10503
|
isOpen: open,
|
|
10508
10504
|
delay
|
|
10509
10505
|
};
|
|
10510
|
-
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
10506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_react_aria_components59.TooltipTrigger, { ...props, children });
|
|
10511
10507
|
};
|
|
10512
10508
|
|
|
10513
10509
|
// src/Tooltip/Tooltip.tsx
|
|
@@ -10520,13 +10516,13 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10520
10516
|
const classNames3 = (0, import_system89.useClassNames)({ component: "Tooltip", variant, size: size2 });
|
|
10521
10517
|
const portal = usePortalContainer();
|
|
10522
10518
|
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
10523
|
-
|
|
10519
|
+
import_react_aria_components60.Tooltip,
|
|
10524
10520
|
{
|
|
10525
10521
|
...props,
|
|
10526
10522
|
className: (0, import_system89.cn)("group/tooltip", classNames3.container),
|
|
10527
10523
|
UNSTABLE_portalContainer: portal,
|
|
10528
10524
|
children: [
|
|
10529
|
-
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
10525
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_react_aria_components60.OverlayArrow, { className: classNames3.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
10530
10526
|
children
|
|
10531
10527
|
]
|
|
10532
10528
|
}
|
|
@@ -10535,11 +10531,11 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10535
10531
|
_Tooltip.Trigger = _TooltipTrigger;
|
|
10536
10532
|
|
|
10537
10533
|
// src/TagGroup/Tag.tsx
|
|
10538
|
-
var
|
|
10534
|
+
var import_react_aria_components62 = require("react-aria-components");
|
|
10539
10535
|
var import_system91 = require("@marigold/system");
|
|
10540
10536
|
|
|
10541
10537
|
// src/TagGroup/TagGroup.tsx
|
|
10542
|
-
var
|
|
10538
|
+
var import_react_aria_components61 = require("react-aria-components");
|
|
10543
10539
|
var import_system90 = require("@marigold/system");
|
|
10544
10540
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
10545
10541
|
var _TagGroup = ({
|
|
@@ -10552,8 +10548,8 @@ var _TagGroup = ({
|
|
|
10552
10548
|
...rest
|
|
10553
10549
|
}) => {
|
|
10554
10550
|
const classNames3 = (0, import_system90.useClassNames)({ component: "Tag", variant, size: size2 });
|
|
10555
|
-
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as:
|
|
10556
|
-
|
|
10551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(FieldBase, { as: import_react_aria_components61.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
10552
|
+
import_react_aria_components61.TagList,
|
|
10557
10553
|
{
|
|
10558
10554
|
items,
|
|
10559
10555
|
className: classNames3.listItems,
|
|
@@ -10566,7 +10562,7 @@ var _TagGroup = ({
|
|
|
10566
10562
|
// src/TagGroup/Tag.tsx
|
|
10567
10563
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
10568
10564
|
var CloseButton2 = ({ className }) => {
|
|
10569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_react_aria_components62.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
|
|
10570
10566
|
};
|
|
10571
10567
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10572
10568
|
let textValue = typeof children === "string" ? children : void 0;
|
|
@@ -10576,7 +10572,7 @@ var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
|
10576
10572
|
...rest
|
|
10577
10573
|
};
|
|
10578
10574
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10579
|
-
|
|
10575
|
+
import_react_aria_components62.Tag,
|
|
10580
10576
|
{
|
|
10581
10577
|
textValue,
|
|
10582
10578
|
...props,
|
|
@@ -10599,12 +10595,12 @@ _Tag.Group = _TagGroup;
|
|
|
10599
10595
|
var import_visually_hidden = require("@react-aria/visually-hidden");
|
|
10600
10596
|
|
|
10601
10597
|
// src/XLoader/XLoader.tsx
|
|
10602
|
-
var
|
|
10598
|
+
var import_react_aria_components64 = require("react-aria-components");
|
|
10603
10599
|
var import_utils16 = require("@react-aria/utils");
|
|
10604
10600
|
var import_system93 = require("@marigold/system");
|
|
10605
10601
|
|
|
10606
10602
|
// src/XLoader/BaseLoader.tsx
|
|
10607
|
-
var
|
|
10603
|
+
var import_react_aria_components63 = require("react-aria-components");
|
|
10608
10604
|
var import_i18n6 = require("@react-aria/i18n");
|
|
10609
10605
|
var import_system92 = require("@marigold/system");
|
|
10610
10606
|
|
|
@@ -10630,7 +10626,7 @@ var BaseLoader = ({
|
|
|
10630
10626
|
const stringFormatter = (0, import_i18n6.useLocalizedStringFormatter)(intlMessages2, "marigold");
|
|
10631
10627
|
const className = (0, import_system92.useClassNames)({ component: "XLoader", variant, size: size2 });
|
|
10632
10628
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
10633
|
-
|
|
10629
|
+
import_react_aria_components63.ProgressBar,
|
|
10634
10630
|
{
|
|
10635
10631
|
className: className.container,
|
|
10636
10632
|
isIndeterminate: true,
|
|
@@ -10847,7 +10843,7 @@ var BaseLoader = ({
|
|
|
10847
10843
|
]
|
|
10848
10844
|
}
|
|
10849
10845
|
),
|
|
10850
|
-
children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
10846
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_react_aria_components63.Label, { className: className.label, children }) : null
|
|
10851
10847
|
]
|
|
10852
10848
|
}
|
|
10853
10849
|
);
|
|
@@ -10857,7 +10853,7 @@ var BaseLoader = ({
|
|
|
10857
10853
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
10858
10854
|
var LoaderFullScreen = (props) => {
|
|
10859
10855
|
const id = (0, import_utils16.useId)();
|
|
10860
|
-
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
10856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components64.Modal, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_react_aria_components64.Dialog, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { id, ...props }) }) }) });
|
|
10861
10857
|
};
|
|
10862
10858
|
var LoaderSection = (props) => {
|
|
10863
10859
|
const className = (0, import_system93.useClassNames)({
|
|
@@ -10870,7 +10866,7 @@ var LoaderSection = (props) => {
|
|
|
10870
10866
|
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BaseLoader, { variant, ...props });
|
|
10871
10867
|
|
|
10872
10868
|
// src/Tabs/Tabs.tsx
|
|
10873
|
-
var
|
|
10869
|
+
var import_react_aria_components68 = require("react-aria-components");
|
|
10874
10870
|
var import_system96 = require("@marigold/system");
|
|
10875
10871
|
|
|
10876
10872
|
// src/Tabs/Context.ts
|
|
@@ -10879,13 +10875,13 @@ var TabContext = (0, import_react72.createContext)({});
|
|
|
10879
10875
|
var useTabContext = () => (0, import_react72.useContext)(TabContext);
|
|
10880
10876
|
|
|
10881
10877
|
// src/Tabs/Tab.tsx
|
|
10882
|
-
var
|
|
10878
|
+
var import_react_aria_components65 = require("react-aria-components");
|
|
10883
10879
|
var import_system94 = require("@marigold/system");
|
|
10884
10880
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
10885
10881
|
var _Tab = (props) => {
|
|
10886
10882
|
const { classNames: classNames3 } = useTabContext();
|
|
10887
10883
|
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
10888
|
-
|
|
10884
|
+
import_react_aria_components65.Tab,
|
|
10889
10885
|
{
|
|
10890
10886
|
...props,
|
|
10891
10887
|
className: (0, import_system94.cn)(
|
|
@@ -10898,13 +10894,13 @@ var _Tab = (props) => {
|
|
|
10898
10894
|
};
|
|
10899
10895
|
|
|
10900
10896
|
// src/Tabs/TabList.tsx
|
|
10901
|
-
var
|
|
10897
|
+
var import_react_aria_components66 = require("react-aria-components");
|
|
10902
10898
|
var import_system95 = require("@marigold/system");
|
|
10903
10899
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
10904
10900
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10905
10901
|
const { classNames: classNames3 } = useTabContext();
|
|
10906
10902
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
10907
|
-
|
|
10903
|
+
import_react_aria_components66.TabList,
|
|
10908
10904
|
{
|
|
10909
10905
|
...props,
|
|
10910
10906
|
className: (0, import_system95.cn)("flex", import_system95.gapSpace[space], classNames3.tabsList),
|
|
@@ -10914,11 +10910,11 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10914
10910
|
};
|
|
10915
10911
|
|
|
10916
10912
|
// src/Tabs/TabPanel.tsx
|
|
10917
|
-
var
|
|
10913
|
+
var import_react_aria_components67 = require("react-aria-components");
|
|
10918
10914
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
10919
10915
|
var _TabPanel = (props) => {
|
|
10920
10916
|
const { classNames: classNames3 } = useTabContext();
|
|
10921
|
-
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
10917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_aria_components67.TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
10922
10918
|
};
|
|
10923
10919
|
|
|
10924
10920
|
// src/Tabs/Tabs.tsx
|
|
@@ -10933,14 +10929,14 @@ var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
|
10933
10929
|
size: size2,
|
|
10934
10930
|
variant
|
|
10935
10931
|
});
|
|
10936
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
10932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react_aria_components68.Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
10937
10933
|
};
|
|
10938
10934
|
_Tabs.List = _TabList;
|
|
10939
10935
|
_Tabs.TabPanel = _TabPanel;
|
|
10940
10936
|
_Tabs.Item = _Tab;
|
|
10941
10937
|
|
|
10942
10938
|
// src/RouterProvider/RouterProvider.tsx
|
|
10943
|
-
var
|
|
10939
|
+
var import_react_aria_components69 = require("react-aria-components");
|
|
10944
10940
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10945
10941
|
0 && (module.exports = {
|
|
10946
10942
|
Accordion,
|