@marigold/components 11.5.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -44
- package/dist/index.d.ts +26 -44
- package/dist/index.js +456 -428
- package/dist/index.mjs +203 -177
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -846,6 +846,7 @@ var require_taggedTemplateLiteral = __commonJS({
|
|
|
846
846
|
|
|
847
847
|
// src/hooks.ts
|
|
848
848
|
import { useAsyncList, useListData } from "@react-stately/data";
|
|
849
|
+
import { DateFormat, NumericFormat } from "@marigold/system";
|
|
849
850
|
|
|
850
851
|
// src/Accordion/Accordion.tsx
|
|
851
852
|
import { DisclosureGroup } from "react-aria-components";
|
|
@@ -1049,7 +1050,7 @@ var HelpText = ({
|
|
|
1049
1050
|
size: size2
|
|
1050
1051
|
});
|
|
1051
1052
|
const ctx = useContext3(FieldErrorContext);
|
|
1052
|
-
if (!description && ctx
|
|
1053
|
+
if (!description && !(ctx == null ? void 0 : ctx.isInvalid)) {
|
|
1053
1054
|
return null;
|
|
1054
1055
|
}
|
|
1055
1056
|
return /* @__PURE__ */ jsxs3("div", { className: cn4(classNames3.container), children: [
|
|
@@ -1413,7 +1414,7 @@ var Underlay = ({
|
|
|
1413
1414
|
ModalOverlay,
|
|
1414
1415
|
{
|
|
1415
1416
|
className: ({ isEntering, isExiting }) => cn11(
|
|
1416
|
-
"fixed inset-0 z-40
|
|
1417
|
+
"fixed inset-0 z-40 grid place-items-center overflow-y-auto",
|
|
1417
1418
|
isEntering ? "animate-in fade-in duration-300 ease-out" : "",
|
|
1418
1419
|
isExiting ? "animate-out fade-out duration-200 ease-in" : "",
|
|
1419
1420
|
classNames3
|
|
@@ -1456,7 +1457,7 @@ var _Popover = forwardRef6(
|
|
|
1456
1457
|
UNSTABLE_portalContainer: portal,
|
|
1457
1458
|
children: [
|
|
1458
1459
|
children,
|
|
1459
|
-
/* @__PURE__ */ jsx19(Underlay, { open
|
|
1460
|
+
/* @__PURE__ */ jsx19(Underlay, { open })
|
|
1460
1461
|
]
|
|
1461
1462
|
}
|
|
1462
1463
|
) }) : /* @__PURE__ */ jsx19(
|
|
@@ -1998,7 +1999,7 @@ var _Checkbox = forwardRef14(
|
|
|
1998
1999
|
className: classNames3.checkbox
|
|
1999
2000
|
}
|
|
2000
2001
|
),
|
|
2001
|
-
|
|
2002
|
+
label && /* @__PURE__ */ jsx36("div", { className: classNames3.label, children: label })
|
|
2002
2003
|
] })
|
|
2003
2004
|
}
|
|
2004
2005
|
);
|
|
@@ -2108,7 +2109,7 @@ import {
|
|
|
2108
2109
|
useContext as useContext9
|
|
2109
2110
|
} from "react";
|
|
2110
2111
|
import { Dialog, OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
|
|
2111
|
-
import { cn as cn26, useClassNames as
|
|
2112
|
+
import { cn as cn26, useClassNames as useClassNames25 } from "@marigold/system";
|
|
2112
2113
|
|
|
2113
2114
|
// src/CloseButton/CloseButton.tsx
|
|
2114
2115
|
import { forwardRef as forwardRef15 } from "react";
|
|
@@ -2130,30 +2131,23 @@ var CloseButton = forwardRef15(
|
|
|
2130
2131
|
// src/Overlay/Modal.tsx
|
|
2131
2132
|
import { forwardRef as forwardRef16 } from "react";
|
|
2132
2133
|
import { Modal } from "react-aria-components";
|
|
2134
|
+
import { useClassNames as useClassNames21 } from "@marigold/system";
|
|
2133
2135
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2134
|
-
var _Modal = forwardRef16(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2136
|
+
var _Modal = forwardRef16(({ size: size2, open, dismissable, keyboardDismissable, ...rest }, ref) => {
|
|
2135
2137
|
const props = {
|
|
2136
2138
|
isOpen: open,
|
|
2137
2139
|
isDismissable: dismissable,
|
|
2138
2140
|
isKeyboardDismissDisabled: keyboardDismissable,
|
|
2139
2141
|
...rest
|
|
2140
2142
|
};
|
|
2143
|
+
const className = useClassNames21({ component: "Modal", size: size2 });
|
|
2141
2144
|
return /* @__PURE__ */ jsx40(
|
|
2142
2145
|
Underlay,
|
|
2143
2146
|
{
|
|
2144
2147
|
dismissable,
|
|
2145
2148
|
keyboardDismissable,
|
|
2146
2149
|
open,
|
|
2147
|
-
|
|
2148
|
-
children: /* @__PURE__ */ jsx40(
|
|
2149
|
-
Modal,
|
|
2150
|
-
{
|
|
2151
|
-
ref,
|
|
2152
|
-
className: "relative flex w-full justify-center",
|
|
2153
|
-
...props,
|
|
2154
|
-
children: props.children
|
|
2155
|
-
}
|
|
2156
|
-
)
|
|
2150
|
+
children: /* @__PURE__ */ jsx40(Modal, { ...props, className, ref, children: props.children })
|
|
2157
2151
|
}
|
|
2158
2152
|
);
|
|
2159
2153
|
});
|
|
@@ -2325,31 +2319,31 @@ var NonModal = forwardRef17(
|
|
|
2325
2319
|
);
|
|
2326
2320
|
|
|
2327
2321
|
// src/Dialog/DialogActions.tsx
|
|
2328
|
-
import { cn as cn23, useClassNames as
|
|
2322
|
+
import { cn as cn23, useClassNames as useClassNames22 } from "@marigold/system";
|
|
2329
2323
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2330
2324
|
var DialogActions = ({ variant, size: size2, children }) => {
|
|
2331
|
-
const classNames3 =
|
|
2325
|
+
const classNames3 = useClassNames22({ component: "Dialog", variant, size: size2 });
|
|
2332
2326
|
return /* @__PURE__ */ jsx42("div", { className: cn23("[grid-area:actions]", classNames3.actions), children });
|
|
2333
2327
|
};
|
|
2334
2328
|
|
|
2335
2329
|
// src/Dialog/DialogContent.tsx
|
|
2336
|
-
import { cn as cn24, useClassNames as
|
|
2330
|
+
import { cn as cn24, useClassNames as useClassNames23 } from "@marigold/system";
|
|
2337
2331
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2338
2332
|
var DialogContent = ({
|
|
2339
2333
|
variant,
|
|
2340
2334
|
size: size2,
|
|
2341
2335
|
children
|
|
2342
2336
|
}) => {
|
|
2343
|
-
const classNames3 =
|
|
2337
|
+
const classNames3 = useClassNames23({ component: "Dialog", variant, size: size2 });
|
|
2344
2338
|
return /* @__PURE__ */ jsx43("div", { className: cn24("[grid-area:content]", classNames3.content), children });
|
|
2345
2339
|
};
|
|
2346
2340
|
|
|
2347
2341
|
// src/Dialog/DialogTitle.tsx
|
|
2348
2342
|
import { Header as Header2, Heading as Heading2 } from "react-aria-components";
|
|
2349
|
-
import { cn as cn25, useClassNames as
|
|
2343
|
+
import { cn as cn25, useClassNames as useClassNames24 } from "@marigold/system";
|
|
2350
2344
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2351
2345
|
var DialogTitle = ({ variant, size: size2, children }) => {
|
|
2352
|
-
const classNames3 =
|
|
2346
|
+
const classNames3 = useClassNames24({
|
|
2353
2347
|
component: "Dialog",
|
|
2354
2348
|
variant,
|
|
2355
2349
|
size: size2
|
|
@@ -2367,7 +2361,6 @@ var _DialogTrigger = ({
|
|
|
2367
2361
|
open,
|
|
2368
2362
|
dismissable,
|
|
2369
2363
|
keyboardDismissable,
|
|
2370
|
-
size: size2,
|
|
2371
2364
|
...rest
|
|
2372
2365
|
}) => {
|
|
2373
2366
|
const props = {
|
|
@@ -2382,12 +2375,12 @@ var _DialogTrigger = ({
|
|
|
2382
2375
|
// src/Dialog/Dialog.tsx
|
|
2383
2376
|
import { jsx as jsx46, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2384
2377
|
var _Dialog = forwardRef18(
|
|
2385
|
-
(props, ref) => {
|
|
2378
|
+
({ variant, size: size2, ...props }, ref) => {
|
|
2386
2379
|
var _a;
|
|
2387
|
-
const classNames3 =
|
|
2380
|
+
const classNames3 = useClassNames25({
|
|
2388
2381
|
component: "Dialog",
|
|
2389
|
-
variant
|
|
2390
|
-
size:
|
|
2382
|
+
variant,
|
|
2383
|
+
size: size2
|
|
2391
2384
|
});
|
|
2392
2385
|
const { isDismissable, isKeyboardDismissDisabled, isOpen } = useContext9(DialogContext);
|
|
2393
2386
|
const state = useContext9(OverlayTriggerStateContext2);
|
|
@@ -2401,13 +2394,14 @@ var _Dialog = forwardRef18(
|
|
|
2401
2394
|
dismissable: isDismissable,
|
|
2402
2395
|
keyboardDismissable: isKeyboardDismissDisabled,
|
|
2403
2396
|
open: isOpen,
|
|
2397
|
+
size: size2,
|
|
2404
2398
|
children: /* @__PURE__ */ jsxs16(
|
|
2405
2399
|
Dialog,
|
|
2406
2400
|
{
|
|
2407
2401
|
...props,
|
|
2408
2402
|
ref,
|
|
2409
2403
|
className: cn26(
|
|
2410
|
-
"relative outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2404
|
+
"relative mx-auto outline-hidden [&>*:not(:last-child)]:mb-4",
|
|
2411
2405
|
"grid [grid-template-areas:'title'_'content'_'actions']",
|
|
2412
2406
|
classNames3.container
|
|
2413
2407
|
),
|
|
@@ -2434,10 +2428,10 @@ _Dialog.Actions = DialogActions;
|
|
|
2434
2428
|
|
|
2435
2429
|
// src/Divider/Divider.tsx
|
|
2436
2430
|
import { Separator } from "react-aria-components";
|
|
2437
|
-
import { cn as cn27, useClassNames as
|
|
2431
|
+
import { cn as cn27, useClassNames as useClassNames26 } from "@marigold/system";
|
|
2438
2432
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2439
2433
|
var _Divider = ({ variant, ...props }) => {
|
|
2440
|
-
const classNames3 =
|
|
2434
|
+
const classNames3 = useClassNames26({ component: "Divider", variant });
|
|
2441
2435
|
return /* @__PURE__ */ jsx47(Separator, { className: cn27("border-none", classNames3), ...props });
|
|
2442
2436
|
};
|
|
2443
2437
|
|
|
@@ -2445,7 +2439,7 @@ var _Divider = ({ variant, ...props }) => {
|
|
|
2445
2439
|
import { useContext as useContext11, useRef } from "react";
|
|
2446
2440
|
import { Dialog as Dialog2, OverlayTriggerStateContext as OverlayTriggerStateContext3 } from "react-aria-components";
|
|
2447
2441
|
import { useLandmark } from "@react-aria/landmark";
|
|
2448
|
-
import { cn as cn32, useClassNames as
|
|
2442
|
+
import { cn as cn32, useClassNames as useClassNames30, useSmallScreen as useSmallScreen3 } from "@marigold/system";
|
|
2449
2443
|
|
|
2450
2444
|
// src/Drawer/Context.tsx
|
|
2451
2445
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -2456,11 +2450,11 @@ var DrawerContext = createContext7({
|
|
|
2456
2450
|
var useDrawerContext = () => useContext10(DrawerContext);
|
|
2457
2451
|
|
|
2458
2452
|
// src/Drawer/DrawerActions.tsx
|
|
2459
|
-
import { cn as cn28, useClassNames as
|
|
2453
|
+
import { cn as cn28, useClassNames as useClassNames27 } from "@marigold/system";
|
|
2460
2454
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2461
2455
|
var DrawerActions = ({ variant, size: size2, children }) => {
|
|
2462
2456
|
const ctx = useDrawerContext();
|
|
2463
|
-
const classNames3 =
|
|
2457
|
+
const classNames3 = useClassNames27({
|
|
2464
2458
|
component: "Drawer",
|
|
2465
2459
|
variant: variant != null ? variant : ctx.variant,
|
|
2466
2460
|
size: size2 != null ? size2 : ctx.size
|
|
@@ -2476,7 +2470,7 @@ var DrawerActions = ({ variant, size: size2, children }) => {
|
|
|
2476
2470
|
};
|
|
2477
2471
|
|
|
2478
2472
|
// src/Drawer/DrawerContent.tsx
|
|
2479
|
-
import { cn as cn29, useClassNames as
|
|
2473
|
+
import { cn as cn29, useClassNames as useClassNames28 } from "@marigold/system";
|
|
2480
2474
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2481
2475
|
var DrawerContent = ({
|
|
2482
2476
|
variant,
|
|
@@ -2484,7 +2478,7 @@ var DrawerContent = ({
|
|
|
2484
2478
|
children
|
|
2485
2479
|
}) => {
|
|
2486
2480
|
const ctx = useDrawerContext();
|
|
2487
|
-
const classNames3 =
|
|
2481
|
+
const classNames3 = useClassNames28({
|
|
2488
2482
|
component: "Drawer",
|
|
2489
2483
|
variant: variant != null ? variant : ctx.variant,
|
|
2490
2484
|
size: size2 != null ? size2 : ctx.size
|
|
@@ -2520,14 +2514,14 @@ var DrawerModal = ({
|
|
|
2520
2514
|
|
|
2521
2515
|
// src/Drawer/DrawerTitle.tsx
|
|
2522
2516
|
import { Header as Header3, Heading as Heading3 } from "react-aria-components";
|
|
2523
|
-
import { cn as cn31, useClassNames as
|
|
2517
|
+
import { cn as cn31, useClassNames as useClassNames29 } from "@marigold/system";
|
|
2524
2518
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2525
2519
|
var DrawerTitle = ({ variant, size: size2, children }) => {
|
|
2526
|
-
const
|
|
2527
|
-
const classNames3 = useClassNames28({
|
|
2520
|
+
const classNames3 = useClassNames29({
|
|
2528
2521
|
component: "Drawer",
|
|
2529
|
-
|
|
2530
|
-
|
|
2522
|
+
size: size2,
|
|
2523
|
+
variant,
|
|
2524
|
+
context: DrawerContext
|
|
2531
2525
|
});
|
|
2532
2526
|
return /* @__PURE__ */ jsx51(
|
|
2533
2527
|
Header3,
|
|
@@ -2561,7 +2555,7 @@ var Drawer = ({
|
|
|
2561
2555
|
...props
|
|
2562
2556
|
}) => {
|
|
2563
2557
|
const ref = useRef(null);
|
|
2564
|
-
const classNames3 =
|
|
2558
|
+
const classNames3 = useClassNames30({ component: "Drawer", variant, size: size2 });
|
|
2565
2559
|
const ctx = useContext11(OverlayTriggerStateContext3);
|
|
2566
2560
|
const isSmallScreen = useSmallScreen3();
|
|
2567
2561
|
const landmarkAria = useLandmark({ ...props, role }, ref);
|
|
@@ -2605,10 +2599,10 @@ Drawer.Content = DrawerContent;
|
|
|
2605
2599
|
Drawer.Actions = DrawerActions;
|
|
2606
2600
|
|
|
2607
2601
|
// src/Footer/Footer.tsx
|
|
2608
|
-
import { useClassNames as
|
|
2602
|
+
import { useClassNames as useClassNames31 } from "@marigold/system";
|
|
2609
2603
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
2610
2604
|
var Footer = ({ children, variant, size: size2, ...props }) => {
|
|
2611
|
-
const classNames3 =
|
|
2605
|
+
const classNames3 = useClassNames31({ component: "Footer", variant, size: size2 });
|
|
2612
2606
|
return /* @__PURE__ */ jsx54("footer", { ...props, className: classNames3, children });
|
|
2613
2607
|
};
|
|
2614
2608
|
|
|
@@ -2662,10 +2656,10 @@ Grid.Area = GridArea;
|
|
|
2662
2656
|
|
|
2663
2657
|
// src/Header/Header.tsx
|
|
2664
2658
|
import { Header as Header4 } from "react-aria-components";
|
|
2665
|
-
import { useClassNames as
|
|
2659
|
+
import { useClassNames as useClassNames32 } from "@marigold/system";
|
|
2666
2660
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2667
2661
|
var _Header = ({ variant, size: size2, ...props }) => {
|
|
2668
|
-
const classNames3 =
|
|
2662
|
+
const classNames3 = useClassNames32({
|
|
2669
2663
|
component: "Header",
|
|
2670
2664
|
variant,
|
|
2671
2665
|
size: size2
|
|
@@ -2679,7 +2673,7 @@ import {
|
|
|
2679
2673
|
cn as cn35,
|
|
2680
2674
|
ensureCssVar,
|
|
2681
2675
|
textAlign,
|
|
2682
|
-
useClassNames as
|
|
2676
|
+
useClassNames as useClassNames33
|
|
2683
2677
|
} from "@marigold/system";
|
|
2684
2678
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2685
2679
|
var _Headline = ({
|
|
@@ -2691,7 +2685,7 @@ var _Headline = ({
|
|
|
2691
2685
|
level = "1",
|
|
2692
2686
|
...props
|
|
2693
2687
|
}) => {
|
|
2694
|
-
const classNames3 =
|
|
2688
|
+
const classNames3 = useClassNames33({
|
|
2695
2689
|
component: "Headline",
|
|
2696
2690
|
variant,
|
|
2697
2691
|
size: size2 != null ? size2 : `level-${level}`
|
|
@@ -2718,7 +2712,7 @@ import {
|
|
|
2718
2712
|
cn as cn36,
|
|
2719
2713
|
objectFit,
|
|
2720
2714
|
objectPosition,
|
|
2721
|
-
useClassNames as
|
|
2715
|
+
useClassNames as useClassNames34
|
|
2722
2716
|
} from "@marigold/system";
|
|
2723
2717
|
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2724
2718
|
var Image = ({
|
|
@@ -2728,7 +2722,7 @@ var Image = ({
|
|
|
2728
2722
|
position: position2 = "none",
|
|
2729
2723
|
...props
|
|
2730
2724
|
}) => {
|
|
2731
|
-
const classNames3 =
|
|
2725
|
+
const classNames3 = useClassNames34({ component: "Image", variant, size: size2 });
|
|
2732
2726
|
return /* @__PURE__ */ jsx60(
|
|
2733
2727
|
"img",
|
|
2734
2728
|
{
|
|
@@ -2776,7 +2770,7 @@ import { DateField } from "react-aria-components";
|
|
|
2776
2770
|
|
|
2777
2771
|
// src/DateField/DateInput.tsx
|
|
2778
2772
|
import { DateInput, Group } from "react-aria-components";
|
|
2779
|
-
import { useClassNames as
|
|
2773
|
+
import { useClassNames as useClassNames35 } from "@marigold/system";
|
|
2780
2774
|
|
|
2781
2775
|
// src/DateField/DateSegment.tsx
|
|
2782
2776
|
import { DateSegment } from "react-aria-components";
|
|
@@ -2812,7 +2806,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
2812
2806
|
// src/DateField/DateInput.tsx
|
|
2813
2807
|
import { jsx as jsx63, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2814
2808
|
var _DateInput = ({ variant, size: size2, action, ...props }) => {
|
|
2815
|
-
const classNames3 =
|
|
2809
|
+
const classNames3 = useClassNames35({ component: "DateField", variant, size: size2 });
|
|
2816
2810
|
return /* @__PURE__ */ jsxs19(Group, { className: classNames3.field, children: [
|
|
2817
2811
|
/* @__PURE__ */ jsx63(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx63(_DateSegment, { className: classNames3.segment, segment }) }),
|
|
2818
2812
|
action ? action : null
|
|
@@ -2856,7 +2850,7 @@ var _DateField = forwardRef19(
|
|
|
2856
2850
|
// src/Calendar/Calendar.tsx
|
|
2857
2851
|
import { useState } from "react";
|
|
2858
2852
|
import { Calendar } from "react-aria-components";
|
|
2859
|
-
import { cn as cn42, useClassNames as
|
|
2853
|
+
import { cn as cn42, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2860
2854
|
|
|
2861
2855
|
// src/Calendar/CalendarGrid.tsx
|
|
2862
2856
|
import {
|
|
@@ -2864,7 +2858,7 @@ import {
|
|
|
2864
2858
|
CalendarGrid,
|
|
2865
2859
|
CalendarGridBody
|
|
2866
2860
|
} from "react-aria-components";
|
|
2867
|
-
import { cn as cn39, useClassNames as
|
|
2861
|
+
import { cn as cn39, useClassNames as useClassNames37 } from "@marigold/system";
|
|
2868
2862
|
|
|
2869
2863
|
// src/Calendar/CalendarGridHeader.tsx
|
|
2870
2864
|
import { startOfWeek, today } from "@internationalized/date";
|
|
@@ -2872,7 +2866,7 @@ import { useContext as useContext12, useMemo as useMemo2 } from "react";
|
|
|
2872
2866
|
import { CalendarStateContext } from "react-aria-components";
|
|
2873
2867
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
2874
2868
|
import { useDateFormatter, useLocale } from "@react-aria/i18n";
|
|
2875
|
-
import { useClassNames as
|
|
2869
|
+
import { useClassNames as useClassNames36 } from "@marigold/system";
|
|
2876
2870
|
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2877
2871
|
function CalendarGridHeader(props) {
|
|
2878
2872
|
const state = useContext12(CalendarStateContext);
|
|
@@ -2890,14 +2884,14 @@ function CalendarGridHeader(props) {
|
|
|
2890
2884
|
return dayFormatter.format(dateDay);
|
|
2891
2885
|
});
|
|
2892
2886
|
}, [locale, state.timeZone, dayFormatter]);
|
|
2893
|
-
const classNames3 =
|
|
2887
|
+
const classNames3 = useClassNames36({ component: "Calendar" });
|
|
2894
2888
|
return /* @__PURE__ */ jsx65("thead", { ...headerProps, children: /* @__PURE__ */ jsx65("tr", { children: weekDays.map((day, index2) => /* @__PURE__ */ jsx65("th", { className: classNames3.calendarHeader, children: day.substring(0, 2) }, index2)) }) });
|
|
2895
2889
|
}
|
|
2896
2890
|
|
|
2897
2891
|
// src/Calendar/CalendarGrid.tsx
|
|
2898
2892
|
import { jsx as jsx66, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2899
2893
|
var _CalendarGrid = () => {
|
|
2900
|
-
const classNames3 =
|
|
2894
|
+
const classNames3 = useClassNames37({ component: "Calendar" });
|
|
2901
2895
|
return /* @__PURE__ */ jsxs20(CalendarGrid, { className: classNames3.calendarGrid, children: [
|
|
2902
2896
|
/* @__PURE__ */ jsx66(CalendarGridHeader, {}),
|
|
2903
2897
|
/* @__PURE__ */ jsx66(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx66(
|
|
@@ -2916,7 +2910,7 @@ var _CalendarGrid = () => {
|
|
|
2916
2910
|
// src/Calendar/CalendarListBox.tsx
|
|
2917
2911
|
import { useContext as useContext13 } from "react";
|
|
2918
2912
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
2919
|
-
import { cn as cn40, useClassNames as
|
|
2913
|
+
import { cn as cn40, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2920
2914
|
|
|
2921
2915
|
// src/Calendar/useFormattedMonths.tsx
|
|
2922
2916
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -2944,7 +2938,7 @@ function CalendarListBox({
|
|
|
2944
2938
|
const state = useContext13(CalendarStateContext2);
|
|
2945
2939
|
const months = useFormattedMonths(state.timeZone, state.focusedDate);
|
|
2946
2940
|
const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
|
|
2947
|
-
const { select: selectClassNames } =
|
|
2941
|
+
const { select: selectClassNames } = useClassNames38({ component: "Select" });
|
|
2948
2942
|
return /* @__PURE__ */ jsxs21(
|
|
2949
2943
|
"button",
|
|
2950
2944
|
{
|
|
@@ -2961,10 +2955,10 @@ function CalendarListBox({
|
|
|
2961
2955
|
}
|
|
2962
2956
|
|
|
2963
2957
|
// src/Calendar/MonthControls.tsx
|
|
2964
|
-
import { cn as cn41, useClassNames as
|
|
2958
|
+
import { cn as cn41, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2965
2959
|
import { jsx as jsx68, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2966
2960
|
function MonthControls() {
|
|
2967
|
-
const classNames3 =
|
|
2961
|
+
const classNames3 = useClassNames39({ component: "Calendar" });
|
|
2968
2962
|
return /* @__PURE__ */ jsxs22(
|
|
2969
2963
|
"div",
|
|
2970
2964
|
{
|
|
@@ -3125,7 +3119,7 @@ var _Calendar = ({
|
|
|
3125
3119
|
isDateUnavailable: dateUnavailable,
|
|
3126
3120
|
...rest
|
|
3127
3121
|
};
|
|
3128
|
-
const classNames3 =
|
|
3122
|
+
const classNames3 = useClassNames40({ component: "Calendar" });
|
|
3129
3123
|
const [selectedDropdown, setSelectedDropdown] = useState();
|
|
3130
3124
|
const ViewMap = {
|
|
3131
3125
|
month: /* @__PURE__ */ jsx71(MonthListBox_default, { setSelectedDropdown }),
|
|
@@ -3170,7 +3164,7 @@ var _Calendar = ({
|
|
|
3170
3164
|
// src/DatePicker/DatePicker.tsx
|
|
3171
3165
|
import React6 from "react";
|
|
3172
3166
|
import { DatePicker, Dialog as Dialog3 } from "react-aria-components";
|
|
3173
|
-
import { useClassNames as
|
|
3167
|
+
import { useClassNames as useClassNames41 } from "@marigold/system";
|
|
3174
3168
|
import { jsx as jsx72, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3175
3169
|
var _DatePicker = React6.forwardRef(
|
|
3176
3170
|
({
|
|
@@ -3195,7 +3189,7 @@ var _DatePicker = React6.forwardRef(
|
|
|
3195
3189
|
granularity,
|
|
3196
3190
|
...rest
|
|
3197
3191
|
};
|
|
3198
|
-
const classNames3 =
|
|
3192
|
+
const classNames3 = useClassNames41({
|
|
3199
3193
|
component: "DatePicker",
|
|
3200
3194
|
size: size2,
|
|
3201
3195
|
variant
|
|
@@ -3255,11 +3249,11 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx73(
|
|
|
3255
3249
|
// src/Link/Link.tsx
|
|
3256
3250
|
import { forwardRef as forwardRef20 } from "react";
|
|
3257
3251
|
import { Link } from "react-aria-components";
|
|
3258
|
-
import { useClassNames as
|
|
3252
|
+
import { useClassNames as useClassNames42 } from "@marigold/system";
|
|
3259
3253
|
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3260
3254
|
var _Link = forwardRef20(
|
|
3261
3255
|
({ variant, size: size2, disabled, children, ...props }, ref) => {
|
|
3262
|
-
const classNames3 =
|
|
3256
|
+
const classNames3 = useClassNames42({
|
|
3263
3257
|
component: "Link",
|
|
3264
3258
|
variant,
|
|
3265
3259
|
size: size2
|
|
@@ -3269,7 +3263,7 @@ var _Link = forwardRef20(
|
|
|
3269
3263
|
);
|
|
3270
3264
|
|
|
3271
3265
|
// src/List/List.tsx
|
|
3272
|
-
import { useClassNames as
|
|
3266
|
+
import { useClassNames as useClassNames43 } from "@marigold/system";
|
|
3273
3267
|
|
|
3274
3268
|
// src/List/Context.ts
|
|
3275
3269
|
import { createContext as createContext8, useContext as useContext16 } from "react";
|
|
@@ -3293,30 +3287,30 @@ var List = ({
|
|
|
3293
3287
|
...props
|
|
3294
3288
|
}) => {
|
|
3295
3289
|
const Component2 = as;
|
|
3296
|
-
const classNames3 =
|
|
3290
|
+
const classNames3 = useClassNames43({ component: "List", variant, size: size2 });
|
|
3297
3291
|
return /* @__PURE__ */ jsx76(Component2, { ...props, className: classNames3[as], children: /* @__PURE__ */ jsx76(ListContext.Provider, { value: { classNames: classNames3.item }, children }) });
|
|
3298
3292
|
};
|
|
3299
3293
|
List.Item = ListItem;
|
|
3300
3294
|
|
|
3301
3295
|
// src/Menu/Menu.tsx
|
|
3302
3296
|
import { Menu, MenuTrigger } from "react-aria-components";
|
|
3303
|
-
import { useClassNames as
|
|
3297
|
+
import { useClassNames as useClassNames46 } from "@marigold/system";
|
|
3304
3298
|
|
|
3305
3299
|
// src/Menu/MenuItem.tsx
|
|
3306
3300
|
import { MenuItem } from "react-aria-components";
|
|
3307
|
-
import { useClassNames as
|
|
3301
|
+
import { useClassNames as useClassNames44 } from "@marigold/system";
|
|
3308
3302
|
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3309
3303
|
var _MenuItem = ({ children, ...props }) => {
|
|
3310
|
-
const classNames3 =
|
|
3304
|
+
const classNames3 = useClassNames44({ component: "Menu" });
|
|
3311
3305
|
return /* @__PURE__ */ jsx77(MenuItem, { ...props, className: classNames3.item, children });
|
|
3312
3306
|
};
|
|
3313
3307
|
|
|
3314
3308
|
// src/Menu/MenuSection.tsx
|
|
3315
3309
|
import { MenuSection } from "react-aria-components";
|
|
3316
|
-
import { useClassNames as
|
|
3310
|
+
import { useClassNames as useClassNames45 } from "@marigold/system";
|
|
3317
3311
|
import { jsx as jsx78, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3318
3312
|
var _MenuSection = ({ children, title, ...props }) => {
|
|
3319
|
-
const className =
|
|
3313
|
+
const className = useClassNames45({ component: "Menu" });
|
|
3320
3314
|
return /* @__PURE__ */ jsxs25(MenuSection, { ...props, children: [
|
|
3321
3315
|
/* @__PURE__ */ jsx78(_Header, { className: className.section, children: title }),
|
|
3322
3316
|
children
|
|
@@ -3336,7 +3330,7 @@ var _Menu = ({
|
|
|
3336
3330
|
"aria-label": ariaLabel,
|
|
3337
3331
|
...props
|
|
3338
3332
|
}) => {
|
|
3339
|
-
const classNames3 =
|
|
3333
|
+
const classNames3 = useClassNames46({ component: "Menu", variant, size: size2 });
|
|
3340
3334
|
return /* @__PURE__ */ jsxs26(MenuTrigger, { ...props, children: [
|
|
3341
3335
|
/* @__PURE__ */ jsx79(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
|
|
3342
3336
|
/* @__PURE__ */ jsx79(_Popover, { open, placement, children: /* @__PURE__ */ jsx79(Menu, { ...props, className: classNames3.container, children }) })
|
|
@@ -3347,7 +3341,7 @@ _Menu.Section = _MenuSection;
|
|
|
3347
3341
|
|
|
3348
3342
|
// src/Menu/ActionMenu.tsx
|
|
3349
3343
|
import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
|
|
3350
|
-
import { SVG as SVG8, useClassNames as
|
|
3344
|
+
import { SVG as SVG8, useClassNames as useClassNames47 } from "@marigold/system";
|
|
3351
3345
|
import { jsx as jsx80, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3352
3346
|
var ActionMenu = ({
|
|
3353
3347
|
variant,
|
|
@@ -3355,7 +3349,7 @@ var ActionMenu = ({
|
|
|
3355
3349
|
disabled,
|
|
3356
3350
|
...props
|
|
3357
3351
|
}) => {
|
|
3358
|
-
const classNames3 =
|
|
3352
|
+
const classNames3 = useClassNames47({ component: "Menu", variant, size: size2 });
|
|
3359
3353
|
return /* @__PURE__ */ jsxs27(MenuTrigger2, { children: [
|
|
3360
3354
|
/* @__PURE__ */ jsx80(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx80(SVG8, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx80("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" }) }) }),
|
|
3361
3355
|
/* @__PURE__ */ jsx80(_Popover, { children: /* @__PURE__ */ jsx80(Menu2, { ...props, className: classNames3.container, children: props.children }) })
|
|
@@ -3365,7 +3359,7 @@ var ActionMenu = ({
|
|
|
3365
3359
|
// src/SectionMessage/SectionMessage.tsx
|
|
3366
3360
|
import { useRef as useRef3, useState as useState2 } from "react";
|
|
3367
3361
|
import { useButton } from "@react-aria/button";
|
|
3368
|
-
import { cn as cn46, useClassNames as
|
|
3362
|
+
import { cn as cn46, useClassNames as useClassNames48 } from "@marigold/system";
|
|
3369
3363
|
|
|
3370
3364
|
// src/SectionMessage/Context.tsx
|
|
3371
3365
|
import { createContext as createContext9, useContext as useContext17 } from "react";
|
|
@@ -3468,7 +3462,7 @@ var SectionMessage = ({
|
|
|
3468
3462
|
...props
|
|
3469
3463
|
}) => {
|
|
3470
3464
|
const buttonRef = useRef3(null);
|
|
3471
|
-
const classNames3 =
|
|
3465
|
+
const classNames3 = useClassNames48({
|
|
3472
3466
|
component: "SectionMessage",
|
|
3473
3467
|
variant,
|
|
3474
3468
|
size: size2
|
|
@@ -9017,7 +9011,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
|
9017
9011
|
|
|
9018
9012
|
// src/Multiselect/Multiselect.tsx
|
|
9019
9013
|
import { useId } from "@react-aria/utils";
|
|
9020
|
-
import { cn as cn47, useClassNames as
|
|
9014
|
+
import { cn as cn47, useClassNames as useClassNames49 } from "@marigold/system";
|
|
9021
9015
|
import { jsx as jsx86, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9022
9016
|
var propsToBeRemoved = [
|
|
9023
9017
|
"clearValue",
|
|
@@ -9089,7 +9083,7 @@ var Multiselect = ({
|
|
|
9089
9083
|
onSelectionChange,
|
|
9090
9084
|
...rest
|
|
9091
9085
|
}) => {
|
|
9092
|
-
const classNames3 =
|
|
9086
|
+
const classNames3 = useClassNames49({
|
|
9093
9087
|
component: "MultiSelect",
|
|
9094
9088
|
size: size2,
|
|
9095
9089
|
variant
|
|
@@ -9163,6 +9157,7 @@ var Multiselect = ({
|
|
|
9163
9157
|
valueContainer: (base) => ({ ...base, padding: 0 }),
|
|
9164
9158
|
container: (base) => ({ ...base, pointerEvents: "auto" }),
|
|
9165
9159
|
menuList: () => ({}),
|
|
9160
|
+
// eslint-disable-next-line no-empty-pattern
|
|
9166
9161
|
option: ({}) => ({}),
|
|
9167
9162
|
multiValue: () => ({}),
|
|
9168
9163
|
multiValueLabel: () => ({})
|
|
@@ -9180,6 +9175,7 @@ var Multiselect = ({
|
|
|
9180
9175
|
components: {
|
|
9181
9176
|
Input: Input4,
|
|
9182
9177
|
MultiValueRemove: MultiValueRemove2,
|
|
9178
|
+
// eslint-disable-next-line react/prop-types
|
|
9183
9179
|
DropdownIndicator: ({ innerProps, isDisabled }) => /* @__PURE__ */ jsx86(
|
|
9184
9180
|
"button",
|
|
9185
9181
|
{
|
|
@@ -9203,7 +9199,7 @@ var Multiselect = ({
|
|
|
9203
9199
|
// src/NumberField/NumberField.tsx
|
|
9204
9200
|
import { forwardRef as forwardRef24 } from "react";
|
|
9205
9201
|
import { Group as Group4, Input as Input5, NumberField } from "react-aria-components";
|
|
9206
|
-
import { cn as cn49, useClassNames as
|
|
9202
|
+
import { cn as cn49, useClassNames as useClassNames50 } from "@marigold/system";
|
|
9207
9203
|
|
|
9208
9204
|
// src/NumberField/StepButton.tsx
|
|
9209
9205
|
import { Button as Button7 } from "react-aria-components";
|
|
@@ -9256,7 +9252,7 @@ var _NumberField = forwardRef24(
|
|
|
9256
9252
|
hideStepper,
|
|
9257
9253
|
...rest
|
|
9258
9254
|
}, ref) => {
|
|
9259
|
-
const classNames3 =
|
|
9255
|
+
const classNames3 = useClassNames50({
|
|
9260
9256
|
component: "NumberField",
|
|
9261
9257
|
size: size2,
|
|
9262
9258
|
variant
|
|
@@ -9309,7 +9305,7 @@ var _NumberField = forwardRef24(
|
|
|
9309
9305
|
// src/Pagination/Pagination.tsx
|
|
9310
9306
|
import { useEffect as useEffect4, useRef as useRef9, useState as useState5 } from "react";
|
|
9311
9307
|
import { FocusScope as FocusScope2, useFocusManager } from "@react-aria/focus";
|
|
9312
|
-
import { useClassNames as
|
|
9308
|
+
import { useClassNames as useClassNames53 } from "@marigold/system";
|
|
9313
9309
|
|
|
9314
9310
|
// src/Pagination/Ellipsis.tsx
|
|
9315
9311
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
@@ -9327,11 +9323,11 @@ var Ellipsis = () => {
|
|
|
9327
9323
|
// src/Pagination/NavigationButton.tsx
|
|
9328
9324
|
import { useRef as useRef7 } from "react";
|
|
9329
9325
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
9330
|
-
import { cn as cn50, useClassNames as
|
|
9326
|
+
import { cn as cn50, useClassNames as useClassNames51 } from "@marigold/system";
|
|
9331
9327
|
import { jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9332
9328
|
var NavigationButton = (props) => {
|
|
9333
9329
|
const ref = useRef7(null);
|
|
9334
|
-
const classNames3 =
|
|
9330
|
+
const classNames3 = useClassNames51({
|
|
9335
9331
|
component: "Pagination"
|
|
9336
9332
|
});
|
|
9337
9333
|
let { buttonProps } = useButton2(props, ref);
|
|
@@ -9365,11 +9361,11 @@ var NavigationButton = (props) => {
|
|
|
9365
9361
|
// src/Pagination/PageButton.tsx
|
|
9366
9362
|
import { useRef as useRef8 } from "react";
|
|
9367
9363
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
9368
|
-
import { useClassNames as
|
|
9364
|
+
import { useClassNames as useClassNames52 } from "@marigold/system";
|
|
9369
9365
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
9370
9366
|
var PageButton = (props) => {
|
|
9371
9367
|
const ref = useRef8(null);
|
|
9372
|
-
const classNames3 =
|
|
9368
|
+
const classNames3 = useClassNames52({
|
|
9373
9369
|
component: "Pagination"
|
|
9374
9370
|
});
|
|
9375
9371
|
let { buttonProps } = useButton3(props, ref);
|
|
@@ -9448,7 +9444,7 @@ var InnerPagination = ({
|
|
|
9448
9444
|
onChange2(newPage);
|
|
9449
9445
|
}
|
|
9450
9446
|
};
|
|
9451
|
-
const classNames3 =
|
|
9447
|
+
const classNames3 = useClassNames53({ component: "Pagination" });
|
|
9452
9448
|
const handleKeyDown = (onEnter) => (e) => {
|
|
9453
9449
|
if (e.key === "ArrowRight") {
|
|
9454
9450
|
e.preventDefault();
|
|
@@ -9535,7 +9531,7 @@ import {
|
|
|
9535
9531
|
forwardRef as forwardRef25
|
|
9536
9532
|
} from "react";
|
|
9537
9533
|
import { Radio } from "react-aria-components";
|
|
9538
|
-
import { cn as cn52, useClassNames as
|
|
9534
|
+
import { cn as cn52, useClassNames as useClassNames55 } from "@marigold/system";
|
|
9539
9535
|
|
|
9540
9536
|
// src/Radio/Context.ts
|
|
9541
9537
|
import { createContext as createContext12, useContext as useContext22 } from "react";
|
|
@@ -9546,7 +9542,7 @@ var useRadioGroupContext = () => useContext22(RadioGroupContext);
|
|
|
9546
9542
|
|
|
9547
9543
|
// src/Radio/RadioGroup.tsx
|
|
9548
9544
|
import { RadioGroup } from "react-aria-components";
|
|
9549
|
-
import { cn as cn51, useClassNames as
|
|
9545
|
+
import { cn as cn51, useClassNames as useClassNames54 } from "@marigold/system";
|
|
9550
9546
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
9551
9547
|
var _RadioGroup = ({
|
|
9552
9548
|
variant,
|
|
@@ -9563,7 +9559,7 @@ var _RadioGroup = ({
|
|
|
9563
9559
|
width,
|
|
9564
9560
|
...rest
|
|
9565
9561
|
}) => {
|
|
9566
|
-
const classNames3 =
|
|
9562
|
+
const classNames3 = useClassNames54({ component: "Radio", variant, size: size2 });
|
|
9567
9563
|
const props = {
|
|
9568
9564
|
isDisabled: disabled,
|
|
9569
9565
|
isReadOnly: readOnly,
|
|
@@ -9618,7 +9614,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx93(
|
|
|
9618
9614
|
var _Radio = forwardRef25(
|
|
9619
9615
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
9620
9616
|
const { variant, size: size2, width: groupWidth } = useRadioGroupContext();
|
|
9621
|
-
const classNames3 =
|
|
9617
|
+
const classNames3 = useClassNames55({
|
|
9622
9618
|
component: "Radio",
|
|
9623
9619
|
variant: variant || props.variant,
|
|
9624
9620
|
size: size2 || props.size
|
|
@@ -9681,7 +9677,7 @@ var _SearchField = forwardRef26(
|
|
|
9681
9677
|
// src/Select/Select.tsx
|
|
9682
9678
|
import { forwardRef as forwardRef27 } from "react";
|
|
9683
9679
|
import { Select as Select2, SelectValue } from "react-aria-components";
|
|
9684
|
-
import { cn as cn53, useClassNames as
|
|
9680
|
+
import { cn as cn53, useClassNames as useClassNames56 } from "@marigold/system";
|
|
9685
9681
|
import { jsx as jsx95, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9686
9682
|
var _Select = forwardRef27(
|
|
9687
9683
|
({
|
|
@@ -9703,7 +9699,7 @@ var _Select = forwardRef27(
|
|
|
9703
9699
|
onSelectionChange: onChange2,
|
|
9704
9700
|
...rest
|
|
9705
9701
|
};
|
|
9706
|
-
const classNames3 =
|
|
9702
|
+
const classNames3 = useClassNames56({ component: "Select", variant, size: size2 });
|
|
9707
9703
|
return /* @__PURE__ */ jsxs34(FieldBase, { as: Select2, ref, variant, size: size2, ...props, children: [
|
|
9708
9704
|
/* @__PURE__ */ jsxs34(
|
|
9709
9705
|
IconButton,
|
|
@@ -9730,7 +9726,7 @@ import {
|
|
|
9730
9726
|
forwardRef as forwardRef29
|
|
9731
9727
|
} from "react";
|
|
9732
9728
|
import { GridList as SelectList } from "react-aria-components";
|
|
9733
|
-
import { cn as cn55, useClassNames as
|
|
9729
|
+
import { cn as cn55, useClassNames as useClassNames57 } from "@marigold/system";
|
|
9734
9730
|
|
|
9735
9731
|
// src/SelectList/Context.ts
|
|
9736
9732
|
import { createContext as createContext13, useContext as useContext23 } from "react";
|
|
@@ -9768,7 +9764,7 @@ var _SelectListItem = forwardRef28(
|
|
|
9768
9764
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
9769
9765
|
var _SelectList = forwardRef29(
|
|
9770
9766
|
({ onChange: onChange2, ...rest }, ref) => {
|
|
9771
|
-
const classNames3 =
|
|
9767
|
+
const classNames3 = useClassNames57({ component: "ListBox" });
|
|
9772
9768
|
const props = {
|
|
9773
9769
|
onSelectionChange: onChange2,
|
|
9774
9770
|
...rest
|
|
@@ -9819,7 +9815,7 @@ import {
|
|
|
9819
9815
|
import {
|
|
9820
9816
|
cn as cn57,
|
|
9821
9817
|
width as twWidth3,
|
|
9822
|
-
useClassNames as
|
|
9818
|
+
useClassNames as useClassNames58
|
|
9823
9819
|
} from "@marigold/system";
|
|
9824
9820
|
import { Fragment as Fragment11, jsx as jsx99, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9825
9821
|
var _Slider = forwardRef30(
|
|
@@ -9832,7 +9828,7 @@ var _Slider = forwardRef30(
|
|
|
9832
9828
|
label,
|
|
9833
9829
|
...rest
|
|
9834
9830
|
}, ref) => {
|
|
9835
|
-
const classNames3 =
|
|
9831
|
+
const classNames3 = useClassNames58({
|
|
9836
9832
|
component: "Slider",
|
|
9837
9833
|
variant,
|
|
9838
9834
|
size: size2
|
|
@@ -9853,7 +9849,7 @@ var _Slider = forwardRef30(
|
|
|
9853
9849
|
ref,
|
|
9854
9850
|
...props,
|
|
9855
9851
|
children: [
|
|
9856
|
-
/* @__PURE__ */ jsx99(_Label, { children:
|
|
9852
|
+
label && /* @__PURE__ */ jsx99(_Label, { children: label }),
|
|
9857
9853
|
/* @__PURE__ */ jsx99(SliderOutput, { className: cn57("flex justify-end", classNames3.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
9858
9854
|
/* @__PURE__ */ jsx99(
|
|
9859
9855
|
SliderTrack,
|
|
@@ -9939,7 +9935,7 @@ import { Switch } from "react-aria-components";
|
|
|
9939
9935
|
import {
|
|
9940
9936
|
cn as cn59,
|
|
9941
9937
|
width as twWidth4,
|
|
9942
|
-
useClassNames as
|
|
9938
|
+
useClassNames as useClassNames59
|
|
9943
9939
|
} from "@marigold/system";
|
|
9944
9940
|
import { jsx as jsx102, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
9945
9941
|
var _Switch = forwardRef31(
|
|
@@ -9953,7 +9949,7 @@ var _Switch = forwardRef31(
|
|
|
9953
9949
|
readOnly,
|
|
9954
9950
|
...rest
|
|
9955
9951
|
}, ref) => {
|
|
9956
|
-
const classNames3 =
|
|
9952
|
+
const classNames3 = useClassNames59({ component: "Switch", size: size2, variant });
|
|
9957
9953
|
const props = {
|
|
9958
9954
|
isDisabled: disabled,
|
|
9959
9955
|
isReadOnly: readOnly,
|
|
@@ -9972,7 +9968,7 @@ var _Switch = forwardRef31(
|
|
|
9972
9968
|
classNames3.container
|
|
9973
9969
|
),
|
|
9974
9970
|
children: [
|
|
9975
|
-
|
|
9971
|
+
label && /* @__PURE__ */ jsx102(_Label, { elementType: "span", children: label }),
|
|
9976
9972
|
/* @__PURE__ */ jsx102("div", { className: "relative", children: /* @__PURE__ */ jsx102("div", { className: classNames3.track, children: /* @__PURE__ */ jsx102("div", { className: classNames3.thumb }) }) })
|
|
9977
9973
|
]
|
|
9978
9974
|
}
|
|
@@ -9991,7 +9987,7 @@ import {
|
|
|
9991
9987
|
Row,
|
|
9992
9988
|
useTableState
|
|
9993
9989
|
} from "@react-stately/table";
|
|
9994
|
-
import { cn as cn66, useClassNames as
|
|
9990
|
+
import { cn as cn66, useClassNames as useClassNames61 } from "@marigold/system";
|
|
9995
9991
|
|
|
9996
9992
|
// src/Table/Context.tsx
|
|
9997
9993
|
import { createContext as createContext14, useContext as useContext24 } from "react";
|
|
@@ -10013,7 +10009,7 @@ var TableBody = ({
|
|
|
10013
10009
|
"td",
|
|
10014
10010
|
{
|
|
10015
10011
|
className: classNames3 == null ? void 0 : classNames3.cell,
|
|
10016
|
-
colSpan: state.collection.
|
|
10012
|
+
colSpan: state.collection.columnCount,
|
|
10017
10013
|
role: "rowheader",
|
|
10018
10014
|
children: emptyState()
|
|
10019
10015
|
}
|
|
@@ -10210,13 +10206,13 @@ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
|
10210
10206
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
10211
10207
|
import { useTableRow } from "@react-aria/table";
|
|
10212
10208
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
10213
|
-
import { cn as cn64, useClassNames as
|
|
10209
|
+
import { cn as cn64, useClassNames as useClassNames60, useStateProps as useStateProps4 } from "@marigold/system";
|
|
10214
10210
|
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
10215
10211
|
var TableRow = ({ children, row }) => {
|
|
10216
10212
|
const ref = useRef14(null);
|
|
10217
10213
|
const { interactive, state, ...ctx } = useTableContext();
|
|
10218
10214
|
const { variant, size: size2 } = row.props;
|
|
10219
|
-
const classNames3 =
|
|
10215
|
+
const classNames3 = useClassNames60({
|
|
10220
10216
|
component: "Table",
|
|
10221
10217
|
variant: variant || ctx.variant,
|
|
10222
10218
|
size: size2 || ctx.size
|
|
@@ -10331,7 +10327,7 @@ var Table = ({
|
|
|
10331
10327
|
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
10332
10328
|
}
|
|
10333
10329
|
const { gridProps } = useTable(props, state, tableRef);
|
|
10334
|
-
const classNames3 =
|
|
10330
|
+
const classNames3 = useClassNames61({
|
|
10335
10331
|
component: "Table",
|
|
10336
10332
|
variant,
|
|
10337
10333
|
size: size2
|
|
@@ -10421,7 +10417,7 @@ import {
|
|
|
10421
10417
|
textAlign as textAlign2,
|
|
10422
10418
|
textSize,
|
|
10423
10419
|
textStyle,
|
|
10424
|
-
useClassNames as
|
|
10420
|
+
useClassNames as useClassNames62
|
|
10425
10421
|
} from "@marigold/system";
|
|
10426
10422
|
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
10427
10423
|
var _Text = ({
|
|
@@ -10437,7 +10433,7 @@ var _Text = ({
|
|
|
10437
10433
|
as = "div",
|
|
10438
10434
|
...props
|
|
10439
10435
|
}) => {
|
|
10440
|
-
const classNames3 =
|
|
10436
|
+
const classNames3 = useClassNames62({
|
|
10441
10437
|
component: "Text",
|
|
10442
10438
|
variant,
|
|
10443
10439
|
size: size2
|
|
@@ -10468,7 +10464,7 @@ var _Text = ({
|
|
|
10468
10464
|
// src/TextArea/TextArea.tsx
|
|
10469
10465
|
import { forwardRef as forwardRef32 } from "react";
|
|
10470
10466
|
import { TextArea, TextField } from "react-aria-components";
|
|
10471
|
-
import { useClassNames as
|
|
10467
|
+
import { useClassNames as useClassNames63 } from "@marigold/system";
|
|
10472
10468
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
10473
10469
|
var _TextArea = forwardRef32(
|
|
10474
10470
|
({
|
|
@@ -10481,7 +10477,7 @@ var _TextArea = forwardRef32(
|
|
|
10481
10477
|
rows,
|
|
10482
10478
|
...rest
|
|
10483
10479
|
}, ref) => {
|
|
10484
|
-
const classNames3 =
|
|
10480
|
+
const classNames3 = useClassNames63({ component: "TextArea", variant, size: size2 });
|
|
10485
10481
|
const props = {
|
|
10486
10482
|
isDisabled: disabled,
|
|
10487
10483
|
isReadOnly: readOnly,
|
|
@@ -10543,7 +10539,7 @@ var Tiles = ({
|
|
|
10543
10539
|
|
|
10544
10540
|
// src/Tooltip/Tooltip.tsx
|
|
10545
10541
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
10546
|
-
import { cn as cn69, useClassNames as
|
|
10542
|
+
import { cn as cn69, useClassNames as useClassNames64 } from "@marigold/system";
|
|
10547
10543
|
|
|
10548
10544
|
// src/Tooltip/TooltipTrigger.tsx
|
|
10549
10545
|
import { TooltipTrigger } from "react-aria-components";
|
|
@@ -10571,7 +10567,7 @@ var _Tooltip = ({ children, variant, size: size2, open, ...rest }) => {
|
|
|
10571
10567
|
...rest,
|
|
10572
10568
|
isOpen: open
|
|
10573
10569
|
};
|
|
10574
|
-
const classNames3 =
|
|
10570
|
+
const classNames3 = useClassNames64({ component: "Tooltip", variant, size: size2 });
|
|
10575
10571
|
const portal = usePortalContainer();
|
|
10576
10572
|
return /* @__PURE__ */ jsxs40(
|
|
10577
10573
|
Tooltip,
|
|
@@ -10590,51 +10586,79 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
10590
10586
|
|
|
10591
10587
|
// src/TagGroup/Tag.tsx
|
|
10592
10588
|
import { Tag } from "react-aria-components";
|
|
10593
|
-
import { cn as cn70, useClassNames as
|
|
10589
|
+
import { cn as cn70, useClassNames as useClassNames66 } from "@marigold/system";
|
|
10594
10590
|
|
|
10595
10591
|
// src/TagGroup/TagGroup.tsx
|
|
10596
10592
|
import { TagGroup, TagList } from "react-aria-components";
|
|
10597
|
-
import { useClassNames as
|
|
10593
|
+
import { useClassNames as useClassNames65 } from "@marigold/system";
|
|
10594
|
+
|
|
10595
|
+
// src/TagGroup/TagGroupHiddenInput.tsx
|
|
10596
|
+
import { useContext as useContext25 } from "react";
|
|
10597
|
+
import { ListStateContext } from "react-aria-components";
|
|
10598
10598
|
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
10599
|
+
var TagGroupHiddenInput = ({ name }) => {
|
|
10600
|
+
var _a;
|
|
10601
|
+
const state = useContext25(ListStateContext);
|
|
10602
|
+
const selectedKeys = Array.from((_a = state == null ? void 0 : state.selectionManager.selectedKeys) != null ? _a : []);
|
|
10603
|
+
if (!selectedKeys.length) return null;
|
|
10604
|
+
return /* @__PURE__ */ jsx118("div", { hidden: true, "aria-hidden": "true", children: selectedKeys.map((key) => /* @__PURE__ */ jsx118(
|
|
10605
|
+
"input",
|
|
10606
|
+
{
|
|
10607
|
+
type: "checkbox",
|
|
10608
|
+
name,
|
|
10609
|
+
value: key,
|
|
10610
|
+
checked: true,
|
|
10611
|
+
readOnly: true
|
|
10612
|
+
},
|
|
10613
|
+
key
|
|
10614
|
+
)) });
|
|
10615
|
+
};
|
|
10616
|
+
|
|
10617
|
+
// src/TagGroup/TagGroup.tsx
|
|
10618
|
+
import { jsx as jsx119, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
10599
10619
|
var _TagGroup = ({
|
|
10600
10620
|
width,
|
|
10601
10621
|
items,
|
|
10602
10622
|
children,
|
|
10603
|
-
|
|
10623
|
+
emptyState,
|
|
10604
10624
|
variant,
|
|
10605
10625
|
size: size2,
|
|
10626
|
+
name,
|
|
10606
10627
|
...rest
|
|
10607
10628
|
}) => {
|
|
10608
|
-
const classNames3 =
|
|
10609
|
-
return /* @__PURE__ */
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10629
|
+
const classNames3 = useClassNames65({ component: "Tag", variant, size: size2 });
|
|
10630
|
+
return /* @__PURE__ */ jsxs41(FieldBase, { as: TagGroup, ...rest, children: [
|
|
10631
|
+
/* @__PURE__ */ jsx119(
|
|
10632
|
+
TagList,
|
|
10633
|
+
{
|
|
10634
|
+
items,
|
|
10635
|
+
className: classNames3.listItems,
|
|
10636
|
+
renderEmptyState: emptyState,
|
|
10637
|
+
children
|
|
10638
|
+
}
|
|
10639
|
+
),
|
|
10640
|
+
name ? /* @__PURE__ */ jsx119(TagGroupHiddenInput, { name }) : null
|
|
10641
|
+
] });
|
|
10618
10642
|
};
|
|
10619
10643
|
|
|
10620
10644
|
// src/TagGroup/Tag.tsx
|
|
10621
|
-
import { Fragment as Fragment12, jsx as
|
|
10645
|
+
import { Fragment as Fragment12, jsx as jsx120, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
10622
10646
|
var _Tag = ({ variant, size: size2, children, disabled, ...rest }) => {
|
|
10623
10647
|
let textValue = typeof children === "string" ? children : void 0;
|
|
10624
|
-
const classNames3 =
|
|
10648
|
+
const classNames3 = useClassNames66({ component: "Tag", variant, size: size2 });
|
|
10625
10649
|
const props = {
|
|
10626
10650
|
isDisabled: disabled,
|
|
10627
10651
|
...rest
|
|
10628
10652
|
};
|
|
10629
|
-
return /* @__PURE__ */
|
|
10653
|
+
return /* @__PURE__ */ jsx120(
|
|
10630
10654
|
Tag,
|
|
10631
10655
|
{
|
|
10632
10656
|
textValue,
|
|
10633
10657
|
...props,
|
|
10634
10658
|
className: cn70("data-selection-mode:cursor-pointer", classNames3.tag),
|
|
10635
|
-
children: ({ allowsRemoving }) => /* @__PURE__ */
|
|
10659
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs42(Fragment12, { children: [
|
|
10636
10660
|
children,
|
|
10637
|
-
allowsRemoving && /* @__PURE__ */
|
|
10661
|
+
allowsRemoving && /* @__PURE__ */ jsx120(CloseButton, { className: classNames3.closeButton, slot: "remove" })
|
|
10638
10662
|
] })
|
|
10639
10663
|
}
|
|
10640
10664
|
);
|
|
@@ -10647,12 +10671,12 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
10647
10671
|
// src/XLoader/XLoader.tsx
|
|
10648
10672
|
import { Dialog as Dialog4, Modal as Modal2 } from "react-aria-components";
|
|
10649
10673
|
import { useId as useId2 } from "@react-aria/utils";
|
|
10650
|
-
import { useClassNames as
|
|
10674
|
+
import { useClassNames as useClassNames68 } from "@marigold/system";
|
|
10651
10675
|
|
|
10652
10676
|
// src/XLoader/BaseLoader.tsx
|
|
10653
10677
|
import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
|
|
10654
10678
|
import { useLocalizedStringFormatter as useLocalizedStringFormatter2 } from "@react-aria/i18n";
|
|
10655
|
-
import { useClassNames as
|
|
10679
|
+
import { useClassNames as useClassNames67 } from "@marigold/system";
|
|
10656
10680
|
|
|
10657
10681
|
// src/intl/messages.ts
|
|
10658
10682
|
var intlMessages2 = {
|
|
@@ -10665,7 +10689,7 @@ var intlMessages2 = {
|
|
|
10665
10689
|
};
|
|
10666
10690
|
|
|
10667
10691
|
// src/XLoader/BaseLoader.tsx
|
|
10668
|
-
import { jsx as
|
|
10692
|
+
import { jsx as jsx121, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
10669
10693
|
var BaseLoader = ({
|
|
10670
10694
|
variant,
|
|
10671
10695
|
size: size2,
|
|
@@ -10674,8 +10698,8 @@ var BaseLoader = ({
|
|
|
10674
10698
|
...props
|
|
10675
10699
|
}) => {
|
|
10676
10700
|
const stringFormatter = useLocalizedStringFormatter2(intlMessages2, "marigold");
|
|
10677
|
-
const className =
|
|
10678
|
-
return /* @__PURE__ */
|
|
10701
|
+
const className = useClassNames67({ component: "XLoader", variant, size: size2 });
|
|
10702
|
+
return /* @__PURE__ */ jsxs43(
|
|
10679
10703
|
ProgressBar2,
|
|
10680
10704
|
{
|
|
10681
10705
|
className: className.container,
|
|
@@ -10683,7 +10707,7 @@ var BaseLoader = ({
|
|
|
10683
10707
|
"aria-label": ariaLabel || children ? ariaLabel : stringFormatter.format("loadingMessage"),
|
|
10684
10708
|
...props,
|
|
10685
10709
|
children: [
|
|
10686
|
-
/* @__PURE__ */
|
|
10710
|
+
/* @__PURE__ */ jsxs43(
|
|
10687
10711
|
"svg",
|
|
10688
10712
|
{
|
|
10689
10713
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10691,13 +10715,13 @@ var BaseLoader = ({
|
|
|
10691
10715
|
fill: "currentColor",
|
|
10692
10716
|
className: className.loader,
|
|
10693
10717
|
children: [
|
|
10694
|
-
/* @__PURE__ */
|
|
10695
|
-
/* @__PURE__ */
|
|
10718
|
+
/* @__PURE__ */ jsx121("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
10719
|
+
/* @__PURE__ */ jsx121(
|
|
10696
10720
|
"path",
|
|
10697
10721
|
{
|
|
10698
10722
|
id: "XMLID_5_",
|
|
10699
10723
|
d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10700
|
-
children: /* @__PURE__ */
|
|
10724
|
+
children: /* @__PURE__ */ jsx121(
|
|
10701
10725
|
"animate",
|
|
10702
10726
|
{
|
|
10703
10727
|
attributeName: "opacity",
|
|
@@ -10710,12 +10734,12 @@ var BaseLoader = ({
|
|
|
10710
10734
|
)
|
|
10711
10735
|
}
|
|
10712
10736
|
),
|
|
10713
|
-
/* @__PURE__ */
|
|
10737
|
+
/* @__PURE__ */ jsx121(
|
|
10714
10738
|
"path",
|
|
10715
10739
|
{
|
|
10716
10740
|
id: "XMLID_18_",
|
|
10717
10741
|
d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10718
|
-
children: /* @__PURE__ */
|
|
10742
|
+
children: /* @__PURE__ */ jsx121(
|
|
10719
10743
|
"animate",
|
|
10720
10744
|
{
|
|
10721
10745
|
attributeName: "opacity",
|
|
@@ -10728,12 +10752,12 @@ var BaseLoader = ({
|
|
|
10728
10752
|
)
|
|
10729
10753
|
}
|
|
10730
10754
|
),
|
|
10731
|
-
/* @__PURE__ */
|
|
10755
|
+
/* @__PURE__ */ jsx121(
|
|
10732
10756
|
"path",
|
|
10733
10757
|
{
|
|
10734
10758
|
id: "XMLID_19_",
|
|
10735
10759
|
d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10736
|
-
children: /* @__PURE__ */
|
|
10760
|
+
children: /* @__PURE__ */ jsx121(
|
|
10737
10761
|
"animate",
|
|
10738
10762
|
{
|
|
10739
10763
|
attributeName: "opacity",
|
|
@@ -10746,12 +10770,12 @@ var BaseLoader = ({
|
|
|
10746
10770
|
)
|
|
10747
10771
|
}
|
|
10748
10772
|
),
|
|
10749
|
-
/* @__PURE__ */
|
|
10773
|
+
/* @__PURE__ */ jsx121(
|
|
10750
10774
|
"path",
|
|
10751
10775
|
{
|
|
10752
10776
|
id: "XMLID_20_",
|
|
10753
10777
|
d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10754
|
-
children: /* @__PURE__ */
|
|
10778
|
+
children: /* @__PURE__ */ jsx121(
|
|
10755
10779
|
"animate",
|
|
10756
10780
|
{
|
|
10757
10781
|
attributeName: "opacity",
|
|
@@ -10764,12 +10788,12 @@ var BaseLoader = ({
|
|
|
10764
10788
|
)
|
|
10765
10789
|
}
|
|
10766
10790
|
),
|
|
10767
|
-
/* @__PURE__ */
|
|
10791
|
+
/* @__PURE__ */ jsx121(
|
|
10768
10792
|
"path",
|
|
10769
10793
|
{
|
|
10770
10794
|
id: "XMLID_21_",
|
|
10771
10795
|
d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
|
|
10772
|
-
children: /* @__PURE__ */
|
|
10796
|
+
children: /* @__PURE__ */ jsx121(
|
|
10773
10797
|
"animate",
|
|
10774
10798
|
{
|
|
10775
10799
|
attributeName: "opacity",
|
|
@@ -10782,12 +10806,12 @@ var BaseLoader = ({
|
|
|
10782
10806
|
)
|
|
10783
10807
|
}
|
|
10784
10808
|
),
|
|
10785
|
-
/* @__PURE__ */
|
|
10809
|
+
/* @__PURE__ */ jsx121(
|
|
10786
10810
|
"path",
|
|
10787
10811
|
{
|
|
10788
10812
|
id: "XMLID_22_",
|
|
10789
10813
|
d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
|
|
10790
|
-
children: /* @__PURE__ */
|
|
10814
|
+
children: /* @__PURE__ */ jsx121(
|
|
10791
10815
|
"animate",
|
|
10792
10816
|
{
|
|
10793
10817
|
attributeName: "opacity",
|
|
@@ -10800,12 +10824,12 @@ var BaseLoader = ({
|
|
|
10800
10824
|
)
|
|
10801
10825
|
}
|
|
10802
10826
|
),
|
|
10803
|
-
/* @__PURE__ */
|
|
10827
|
+
/* @__PURE__ */ jsx121(
|
|
10804
10828
|
"path",
|
|
10805
10829
|
{
|
|
10806
10830
|
id: "XMLID_23_",
|
|
10807
10831
|
d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
|
|
10808
|
-
children: /* @__PURE__ */
|
|
10832
|
+
children: /* @__PURE__ */ jsx121(
|
|
10809
10833
|
"animate",
|
|
10810
10834
|
{
|
|
10811
10835
|
attributeName: "opacity",
|
|
@@ -10818,12 +10842,12 @@ var BaseLoader = ({
|
|
|
10818
10842
|
)
|
|
10819
10843
|
}
|
|
10820
10844
|
),
|
|
10821
|
-
/* @__PURE__ */
|
|
10845
|
+
/* @__PURE__ */ jsx121(
|
|
10822
10846
|
"path",
|
|
10823
10847
|
{
|
|
10824
10848
|
id: "XMLID_24_",
|
|
10825
10849
|
d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10826
|
-
children: /* @__PURE__ */
|
|
10850
|
+
children: /* @__PURE__ */ jsx121(
|
|
10827
10851
|
"animate",
|
|
10828
10852
|
{
|
|
10829
10853
|
attributeName: "opacity",
|
|
@@ -10836,12 +10860,12 @@ var BaseLoader = ({
|
|
|
10836
10860
|
)
|
|
10837
10861
|
}
|
|
10838
10862
|
),
|
|
10839
|
-
/* @__PURE__ */
|
|
10863
|
+
/* @__PURE__ */ jsx121(
|
|
10840
10864
|
"path",
|
|
10841
10865
|
{
|
|
10842
10866
|
id: "XMLID_25_",
|
|
10843
10867
|
d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10844
|
-
children: /* @__PURE__ */
|
|
10868
|
+
children: /* @__PURE__ */ jsx121(
|
|
10845
10869
|
"animate",
|
|
10846
10870
|
{
|
|
10847
10871
|
attributeName: "opacity",
|
|
@@ -10854,12 +10878,12 @@ var BaseLoader = ({
|
|
|
10854
10878
|
)
|
|
10855
10879
|
}
|
|
10856
10880
|
),
|
|
10857
|
-
/* @__PURE__ */
|
|
10881
|
+
/* @__PURE__ */ jsx121(
|
|
10858
10882
|
"path",
|
|
10859
10883
|
{
|
|
10860
10884
|
id: "XMLID_26_",
|
|
10861
10885
|
d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
|
|
10862
|
-
children: /* @__PURE__ */
|
|
10886
|
+
children: /* @__PURE__ */ jsx121(
|
|
10863
10887
|
"animate",
|
|
10864
10888
|
{
|
|
10865
10889
|
attributeName: "opacity",
|
|
@@ -10872,12 +10896,12 @@ var BaseLoader = ({
|
|
|
10872
10896
|
)
|
|
10873
10897
|
}
|
|
10874
10898
|
),
|
|
10875
|
-
/* @__PURE__ */
|
|
10899
|
+
/* @__PURE__ */ jsx121(
|
|
10876
10900
|
"path",
|
|
10877
10901
|
{
|
|
10878
10902
|
id: "XMLID_27_",
|
|
10879
10903
|
d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
|
|
10880
|
-
children: /* @__PURE__ */
|
|
10904
|
+
children: /* @__PURE__ */ jsx121(
|
|
10881
10905
|
"animate",
|
|
10882
10906
|
{
|
|
10883
10907
|
attributeName: "opacity",
|
|
@@ -10893,44 +10917,44 @@ var BaseLoader = ({
|
|
|
10893
10917
|
]
|
|
10894
10918
|
}
|
|
10895
10919
|
),
|
|
10896
|
-
children ? /* @__PURE__ */
|
|
10920
|
+
children ? /* @__PURE__ */ jsx121(Label2, { className: className.label, children }) : null
|
|
10897
10921
|
]
|
|
10898
10922
|
}
|
|
10899
10923
|
);
|
|
10900
10924
|
};
|
|
10901
10925
|
|
|
10902
10926
|
// src/XLoader/XLoader.tsx
|
|
10903
|
-
import { jsx as
|
|
10927
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
10904
10928
|
var LoaderFullScreen = (props) => {
|
|
10905
10929
|
const id = useId2();
|
|
10906
|
-
return /* @__PURE__ */
|
|
10930
|
+
return /* @__PURE__ */ jsx122(Underlay, { defaultOpen: true, keyboardDismissable: true, variant: "modal", children: /* @__PURE__ */ jsx122(Modal2, { className: "grid h-(--visual-viewport-height) cursor-progress place-items-center", children: /* @__PURE__ */ jsx122(Dialog4, { className: "outline-0", "aria-labelledby": id, children: /* @__PURE__ */ jsx122(BaseLoader, { id, ...props }) }) }) });
|
|
10907
10931
|
};
|
|
10908
10932
|
var LoaderSection = (props) => {
|
|
10909
|
-
const className =
|
|
10933
|
+
const className = useClassNames68({
|
|
10910
10934
|
component: "Underlay",
|
|
10911
10935
|
variant: "modal",
|
|
10912
10936
|
className: "flex size-full items-center justify-center"
|
|
10913
10937
|
});
|
|
10914
|
-
return /* @__PURE__ */
|
|
10938
|
+
return /* @__PURE__ */ jsx122("div", { className, children: /* @__PURE__ */ jsx122(BaseLoader, { ...props }) });
|
|
10915
10939
|
};
|
|
10916
|
-
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */
|
|
10940
|
+
var XLoader = ({ mode, variant, ...props }) => mode === "fullscreen" ? /* @__PURE__ */ jsx122(LoaderFullScreen, { variant: variant != null ? variant : "inverted", ...props }) : mode === "section" ? /* @__PURE__ */ jsx122(LoaderSection, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx122(BaseLoader, { variant, ...props });
|
|
10917
10941
|
|
|
10918
10942
|
// src/Tabs/Tabs.tsx
|
|
10919
10943
|
import { Tabs } from "react-aria-components";
|
|
10920
|
-
import { useClassNames as
|
|
10944
|
+
import { useClassNames as useClassNames69 } from "@marigold/system";
|
|
10921
10945
|
|
|
10922
10946
|
// src/Tabs/Context.ts
|
|
10923
|
-
import { createContext as createContext15, useContext as
|
|
10947
|
+
import { createContext as createContext15, useContext as useContext26 } from "react";
|
|
10924
10948
|
var TabContext = createContext15({});
|
|
10925
|
-
var useTabContext = () =>
|
|
10949
|
+
var useTabContext = () => useContext26(TabContext);
|
|
10926
10950
|
|
|
10927
10951
|
// src/Tabs/Tab.tsx
|
|
10928
10952
|
import { Tab } from "react-aria-components";
|
|
10929
10953
|
import { cn as cn71 } from "@marigold/system";
|
|
10930
|
-
import { jsx as
|
|
10954
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
10931
10955
|
var _Tab = (props) => {
|
|
10932
10956
|
const { classNames: classNames3 } = useTabContext();
|
|
10933
|
-
return /* @__PURE__ */
|
|
10957
|
+
return /* @__PURE__ */ jsx123(
|
|
10934
10958
|
Tab,
|
|
10935
10959
|
{
|
|
10936
10960
|
...props,
|
|
@@ -10946,10 +10970,10 @@ var _Tab = (props) => {
|
|
|
10946
10970
|
// src/Tabs/TabList.tsx
|
|
10947
10971
|
import { TabList } from "react-aria-components";
|
|
10948
10972
|
import { cn as cn72, gapSpace as gapSpace10 } from "@marigold/system";
|
|
10949
|
-
import { jsx as
|
|
10973
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
10950
10974
|
var _TabList = ({ space = 2, ...props }) => {
|
|
10951
10975
|
const { classNames: classNames3 } = useTabContext();
|
|
10952
|
-
return /* @__PURE__ */
|
|
10976
|
+
return /* @__PURE__ */ jsx124(
|
|
10953
10977
|
TabList,
|
|
10954
10978
|
{
|
|
10955
10979
|
...props,
|
|
@@ -10961,25 +10985,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
10961
10985
|
|
|
10962
10986
|
// src/Tabs/TabPanel.tsx
|
|
10963
10987
|
import { TabPanel } from "react-aria-components";
|
|
10964
|
-
import { jsx as
|
|
10988
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
10965
10989
|
var _TabPanel = (props) => {
|
|
10966
10990
|
const { classNames: classNames3 } = useTabContext();
|
|
10967
|
-
return /* @__PURE__ */
|
|
10991
|
+
return /* @__PURE__ */ jsx125(TabPanel, { ...props, className: classNames3.tabpanel, children: props.children });
|
|
10968
10992
|
};
|
|
10969
10993
|
|
|
10970
10994
|
// src/Tabs/Tabs.tsx
|
|
10971
|
-
import { jsx as
|
|
10995
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
10972
10996
|
var _Tabs = ({ disabled, variant, size: size2 = "medium", ...rest }) => {
|
|
10973
10997
|
const props = {
|
|
10974
10998
|
isDisabled: disabled,
|
|
10975
10999
|
...rest
|
|
10976
11000
|
};
|
|
10977
|
-
const classNames3 =
|
|
11001
|
+
const classNames3 = useClassNames69({
|
|
10978
11002
|
component: "Tabs",
|
|
10979
11003
|
size: size2,
|
|
10980
11004
|
variant
|
|
10981
11005
|
});
|
|
10982
|
-
return /* @__PURE__ */
|
|
11006
|
+
return /* @__PURE__ */ jsx126(TabContext.Provider, { value: { classNames: classNames3 }, children: /* @__PURE__ */ jsx126(Tabs, { ...props, className: classNames3.container, children: props.children }) });
|
|
10983
11007
|
};
|
|
10984
11008
|
_Tabs.List = _TabList;
|
|
10985
11009
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -11007,6 +11031,7 @@ export {
|
|
|
11007
11031
|
_ComboBox as ComboBox,
|
|
11008
11032
|
Container,
|
|
11009
11033
|
_DateField as DateField,
|
|
11034
|
+
DateFormat,
|
|
11010
11035
|
_DatePicker as DatePicker,
|
|
11011
11036
|
_Dialog as Dialog,
|
|
11012
11037
|
_Divider as Divider,
|
|
@@ -11033,6 +11058,7 @@ export {
|
|
|
11033
11058
|
Multiselect,
|
|
11034
11059
|
NonModal,
|
|
11035
11060
|
_NumberField as NumberField,
|
|
11061
|
+
NumericFormat,
|
|
11036
11062
|
OverlayContainerProvider,
|
|
11037
11063
|
_Pagination as Pagination,
|
|
11038
11064
|
_Popover as Popover,
|