@marigold/components 7.5.1 → 7.5.3
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 +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +393 -304
- package/dist/index.mjs +321 -233
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -560,7 +560,6 @@ var SearchInput = forwardRef5(
|
|
|
560
560
|
{
|
|
561
561
|
className: className == null ? void 0 : className.action,
|
|
562
562
|
onPress: () => onClear == null ? void 0 : onClear(),
|
|
563
|
-
slot: null,
|
|
564
563
|
"aria-label": stringFormatter.format("Clear search"),
|
|
565
564
|
excludeFromTabOrder: true,
|
|
566
565
|
preventFocusOnPress: true,
|
|
@@ -1186,7 +1185,7 @@ import { jsx as jsx30 } from "react/jsx-runtime";
|
|
|
1186
1185
|
var Columns = ({
|
|
1187
1186
|
space = 0,
|
|
1188
1187
|
columns,
|
|
1189
|
-
collapseAt,
|
|
1188
|
+
collapseAt = "0em",
|
|
1190
1189
|
stretch,
|
|
1191
1190
|
children,
|
|
1192
1191
|
...props
|
|
@@ -1211,7 +1210,7 @@ var Columns = ({
|
|
|
1211
1210
|
"div",
|
|
1212
1211
|
{
|
|
1213
1212
|
className: cn19(
|
|
1214
|
-
columns[idx]
|
|
1213
|
+
columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-[--columnSize]",
|
|
1215
1214
|
"basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
|
|
1216
1215
|
),
|
|
1217
1216
|
style: createVar7({
|
|
@@ -2227,16 +2226,144 @@ var Message = forwardRef15(
|
|
|
2227
2226
|
}
|
|
2228
2227
|
);
|
|
2229
2228
|
|
|
2229
|
+
// src/Multiselect/Multiselect.tsx
|
|
2230
|
+
import { Children as Children5, useState as useState2 } from "react";
|
|
2231
|
+
import { useListData as useListData2 } from "@react-stately/data";
|
|
2232
|
+
|
|
2233
|
+
// src/TagGroup/Tag.tsx
|
|
2234
|
+
import { Button as Button4, Tag } from "react-aria-components";
|
|
2235
|
+
import { cn as cn32, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2236
|
+
|
|
2237
|
+
// src/TagGroup/TagGroup.tsx
|
|
2238
|
+
import { TagGroup, TagList } from "react-aria-components";
|
|
2239
|
+
import { useClassNames as useClassNames37 } from "@marigold/system";
|
|
2240
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2241
|
+
var _TagGroup = ({
|
|
2242
|
+
width,
|
|
2243
|
+
items,
|
|
2244
|
+
children,
|
|
2245
|
+
renderEmptyState,
|
|
2246
|
+
variant,
|
|
2247
|
+
size,
|
|
2248
|
+
...rest
|
|
2249
|
+
}) => {
|
|
2250
|
+
const classNames2 = useClassNames37({ component: "Tag", variant, size });
|
|
2251
|
+
return /* @__PURE__ */ jsx61(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx61(
|
|
2252
|
+
TagList,
|
|
2253
|
+
{
|
|
2254
|
+
items,
|
|
2255
|
+
className: classNames2.listItems,
|
|
2256
|
+
renderEmptyState,
|
|
2257
|
+
children
|
|
2258
|
+
}
|
|
2259
|
+
) });
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
// src/TagGroup/Tag.tsx
|
|
2263
|
+
import { Fragment as Fragment6, jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2264
|
+
var CloseButton2 = ({ className }) => {
|
|
2265
|
+
return /* @__PURE__ */ jsx62(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx62("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx62("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" }) }) });
|
|
2266
|
+
};
|
|
2267
|
+
var _Tag = ({ variant, size, children, ...props }) => {
|
|
2268
|
+
let textValue = typeof children === "string" ? children : void 0;
|
|
2269
|
+
const classNames2 = useClassNames38({ component: "Tag", variant, size });
|
|
2270
|
+
return /* @__PURE__ */ jsx62(
|
|
2271
|
+
Tag,
|
|
2272
|
+
{
|
|
2273
|
+
textValue,
|
|
2274
|
+
...props,
|
|
2275
|
+
className: cn32("data-[selection-mode]:cursor-pointer", classNames2.tag),
|
|
2276
|
+
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
2277
|
+
children,
|
|
2278
|
+
allowsRemoving && /* @__PURE__ */ jsx62(
|
|
2279
|
+
CloseButton2,
|
|
2280
|
+
{
|
|
2281
|
+
className: cn32("flex items-center", classNames2.closeButton)
|
|
2282
|
+
}
|
|
2283
|
+
)
|
|
2284
|
+
] })
|
|
2285
|
+
}
|
|
2286
|
+
);
|
|
2287
|
+
};
|
|
2288
|
+
_Tag.Group = _TagGroup;
|
|
2289
|
+
|
|
2290
|
+
// src/Multiselect/Multiselect.tsx
|
|
2291
|
+
import { jsx as jsx63, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2292
|
+
var Item2 = (_) => null;
|
|
2293
|
+
var Multiselect = ({
|
|
2294
|
+
label,
|
|
2295
|
+
children,
|
|
2296
|
+
...props
|
|
2297
|
+
}) => {
|
|
2298
|
+
const items = Children5.map(children, ({ props: props2 }) => props2);
|
|
2299
|
+
const list = useListData2({
|
|
2300
|
+
initialItems: items,
|
|
2301
|
+
initialSelectedKeys: props.defaultSelectedKeys,
|
|
2302
|
+
getKey: (item) => item.id
|
|
2303
|
+
});
|
|
2304
|
+
const selected = list.items.filter(
|
|
2305
|
+
(item) => list.selectedKeys === "all" ? true : list.selectedKeys.has(item.id)
|
|
2306
|
+
);
|
|
2307
|
+
const unselected = list.items.filter((item) => !selected.includes(item));
|
|
2308
|
+
const setUnselected = (keys) => {
|
|
2309
|
+
const next = list.selectedKeys === "all" ? new Set(items) : new Set(list.selectedKeys);
|
|
2310
|
+
if (list.selectedKeys !== "all") {
|
|
2311
|
+
keys.forEach((key) => {
|
|
2312
|
+
next.delete(key);
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
list.setSelectedKeys(next);
|
|
2316
|
+
};
|
|
2317
|
+
const [value, setValue] = useState2("");
|
|
2318
|
+
const selectItem = (key) => {
|
|
2319
|
+
if (list.selectedKeys !== "all") {
|
|
2320
|
+
const next = list.selectedKeys.add(key);
|
|
2321
|
+
list.setSelectedKeys(next);
|
|
2322
|
+
}
|
|
2323
|
+
const input = document.activeElement;
|
|
2324
|
+
setTimeout(() => {
|
|
2325
|
+
setValue("");
|
|
2326
|
+
}, 0);
|
|
2327
|
+
input.focus();
|
|
2328
|
+
};
|
|
2329
|
+
return /* @__PURE__ */ jsxs26("div", { className: "flex flex-wrap gap-1", children: [
|
|
2330
|
+
/* @__PURE__ */ jsx63(
|
|
2331
|
+
_Tag.Group,
|
|
2332
|
+
{
|
|
2333
|
+
items: selected,
|
|
2334
|
+
allowsRemoving: true,
|
|
2335
|
+
onRemove: setUnselected,
|
|
2336
|
+
renderEmptyState: () => null,
|
|
2337
|
+
children: (item) => /* @__PURE__ */ jsx63(_Tag, { id: item.id, children: item.children }, item.id)
|
|
2338
|
+
}
|
|
2339
|
+
),
|
|
2340
|
+
/* @__PURE__ */ jsx63(
|
|
2341
|
+
_ComboBox,
|
|
2342
|
+
{
|
|
2343
|
+
value,
|
|
2344
|
+
onChange: setValue,
|
|
2345
|
+
onSelectionChange: selectItem,
|
|
2346
|
+
menuTrigger: "focus",
|
|
2347
|
+
disabled: unselected.length === 0,
|
|
2348
|
+
placeholder: unselected.length === 0 ? "All items selected" : "",
|
|
2349
|
+
...props,
|
|
2350
|
+
children: unselected.map((item) => /* @__PURE__ */ jsx63(_ComboBox.Item, { id: item.id, children: item.children }, item.id))
|
|
2351
|
+
}
|
|
2352
|
+
)
|
|
2353
|
+
] });
|
|
2354
|
+
};
|
|
2355
|
+
Multiselect.Item = Item2;
|
|
2356
|
+
|
|
2230
2357
|
// src/NumberField/NumberField.tsx
|
|
2231
2358
|
import { forwardRef as forwardRef16 } from "react";
|
|
2232
2359
|
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2233
|
-
import { cn as
|
|
2360
|
+
import { cn as cn34, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2234
2361
|
|
|
2235
2362
|
// src/NumberField/StepButton.tsx
|
|
2236
|
-
import { Button as
|
|
2237
|
-
import { cn as
|
|
2238
|
-
import { jsx as
|
|
2239
|
-
var Plus = () => /* @__PURE__ */
|
|
2363
|
+
import { Button as Button5 } from "react-aria-components";
|
|
2364
|
+
import { cn as cn33 } from "@marigold/system";
|
|
2365
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2366
|
+
var Plus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
|
|
2240
2367
|
"path",
|
|
2241
2368
|
{
|
|
2242
2369
|
fillRule: "evenodd",
|
|
@@ -2244,7 +2371,7 @@ var Plus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox:
|
|
|
2244
2371
|
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"
|
|
2245
2372
|
}
|
|
2246
2373
|
) });
|
|
2247
|
-
var Minus = () => /* @__PURE__ */
|
|
2374
|
+
var Minus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
|
|
2248
2375
|
"path",
|
|
2249
2376
|
{
|
|
2250
2377
|
fillRule: "evenodd",
|
|
@@ -2254,10 +2381,10 @@ var Minus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox:
|
|
|
2254
2381
|
) });
|
|
2255
2382
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
2256
2383
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
2257
|
-
return /* @__PURE__ */
|
|
2258
|
-
|
|
2384
|
+
return /* @__PURE__ */ jsx64(
|
|
2385
|
+
Button5,
|
|
2259
2386
|
{
|
|
2260
|
-
className:
|
|
2387
|
+
className: cn33(
|
|
2261
2388
|
[
|
|
2262
2389
|
"flex items-center justify-center",
|
|
2263
2390
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2265,13 +2392,13 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2265
2392
|
className
|
|
2266
2393
|
),
|
|
2267
2394
|
...props,
|
|
2268
|
-
children: /* @__PURE__ */
|
|
2395
|
+
children: /* @__PURE__ */ jsx64(Icon4, {})
|
|
2269
2396
|
}
|
|
2270
2397
|
);
|
|
2271
2398
|
};
|
|
2272
2399
|
|
|
2273
2400
|
// src/NumberField/NumberField.tsx
|
|
2274
|
-
import { jsx as
|
|
2401
|
+
import { jsx as jsx65, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2275
2402
|
var _NumberField = forwardRef16(
|
|
2276
2403
|
({
|
|
2277
2404
|
variant,
|
|
@@ -2283,7 +2410,7 @@ var _NumberField = forwardRef16(
|
|
|
2283
2410
|
hideStepper,
|
|
2284
2411
|
...rest
|
|
2285
2412
|
}, ref) => {
|
|
2286
|
-
const classNames2 =
|
|
2413
|
+
const classNames2 = useClassNames39({
|
|
2287
2414
|
component: "NumberField",
|
|
2288
2415
|
size,
|
|
2289
2416
|
variant
|
|
@@ -2296,8 +2423,8 @@ var _NumberField = forwardRef16(
|
|
|
2296
2423
|
...rest
|
|
2297
2424
|
};
|
|
2298
2425
|
const showStepper = !hideStepper;
|
|
2299
|
-
return /* @__PURE__ */
|
|
2300
|
-
showStepper && /* @__PURE__ */
|
|
2426
|
+
return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className: cn34("flex items-stretch", classNames2.group), children: [
|
|
2427
|
+
showStepper && /* @__PURE__ */ jsx65(
|
|
2301
2428
|
_StepButton,
|
|
2302
2429
|
{
|
|
2303
2430
|
className: classNames2.stepper,
|
|
@@ -2305,7 +2432,7 @@ var _NumberField = forwardRef16(
|
|
|
2305
2432
|
slot: "decrement"
|
|
2306
2433
|
}
|
|
2307
2434
|
),
|
|
2308
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsx65("div", { className: "flex-1", children: /* @__PURE__ */ jsx65(
|
|
2309
2436
|
_Input,
|
|
2310
2437
|
{
|
|
2311
2438
|
ref,
|
|
@@ -2314,7 +2441,7 @@ var _NumberField = forwardRef16(
|
|
|
2314
2441
|
className: classNames2.input
|
|
2315
2442
|
}
|
|
2316
2443
|
) }),
|
|
2317
|
-
showStepper && /* @__PURE__ */
|
|
2444
|
+
showStepper && /* @__PURE__ */ jsx65(
|
|
2318
2445
|
_StepButton,
|
|
2319
2446
|
{
|
|
2320
2447
|
className: classNames2.stepper,
|
|
@@ -2331,7 +2458,7 @@ import {
|
|
|
2331
2458
|
forwardRef as forwardRef17
|
|
2332
2459
|
} from "react";
|
|
2333
2460
|
import { Radio } from "react-aria-components";
|
|
2334
|
-
import { cn as
|
|
2461
|
+
import { cn as cn36, useClassNames as useClassNames41 } from "@marigold/system";
|
|
2335
2462
|
|
|
2336
2463
|
// src/Radio/Context.ts
|
|
2337
2464
|
import { createContext as createContext6, useContext as useContext12 } from "react";
|
|
@@ -2342,8 +2469,8 @@ var useRadioGroupContext = () => useContext12(RadioGroupContext);
|
|
|
2342
2469
|
|
|
2343
2470
|
// src/Radio/RadioGroup.tsx
|
|
2344
2471
|
import { RadioGroup } from "react-aria-components";
|
|
2345
|
-
import { cn as
|
|
2346
|
-
import { jsx as
|
|
2472
|
+
import { cn as cn35, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2473
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2347
2474
|
var _RadioGroup = ({
|
|
2348
2475
|
variant,
|
|
2349
2476
|
size,
|
|
@@ -2359,7 +2486,7 @@ var _RadioGroup = ({
|
|
|
2359
2486
|
width,
|
|
2360
2487
|
...rest
|
|
2361
2488
|
}) => {
|
|
2362
|
-
const classNames2 =
|
|
2489
|
+
const classNames2 = useClassNames40({ component: "Radio", variant, size });
|
|
2363
2490
|
const props = {
|
|
2364
2491
|
isDisabled: disabled,
|
|
2365
2492
|
isReadOnly: readOnly,
|
|
@@ -2367,7 +2494,7 @@ var _RadioGroup = ({
|
|
|
2367
2494
|
isInvalid: error,
|
|
2368
2495
|
...rest
|
|
2369
2496
|
};
|
|
2370
|
-
return /* @__PURE__ */
|
|
2497
|
+
return /* @__PURE__ */ jsx66(
|
|
2371
2498
|
FieldBase,
|
|
2372
2499
|
{
|
|
2373
2500
|
as: RadioGroup,
|
|
@@ -2378,18 +2505,18 @@ var _RadioGroup = ({
|
|
|
2378
2505
|
variant,
|
|
2379
2506
|
size,
|
|
2380
2507
|
...props,
|
|
2381
|
-
children: /* @__PURE__ */
|
|
2508
|
+
children: /* @__PURE__ */ jsx66(
|
|
2382
2509
|
"div",
|
|
2383
2510
|
{
|
|
2384
2511
|
role: "presentation",
|
|
2385
2512
|
"data-testid": "group",
|
|
2386
2513
|
"data-orientation": orientation,
|
|
2387
|
-
className:
|
|
2514
|
+
className: cn35(
|
|
2388
2515
|
classNames2.group,
|
|
2389
2516
|
"flex items-start",
|
|
2390
2517
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
2391
2518
|
),
|
|
2392
|
-
children: /* @__PURE__ */
|
|
2519
|
+
children: /* @__PURE__ */ jsx66(RadioGroupContext.Provider, { value: { width, variant, size }, children })
|
|
2393
2520
|
}
|
|
2394
2521
|
)
|
|
2395
2522
|
}
|
|
@@ -2397,33 +2524,33 @@ var _RadioGroup = ({
|
|
|
2397
2524
|
};
|
|
2398
2525
|
|
|
2399
2526
|
// src/Radio/Radio.tsx
|
|
2400
|
-
import { Fragment as
|
|
2401
|
-
var Dot = () => /* @__PURE__ */
|
|
2402
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
2527
|
+
import { Fragment as Fragment7, jsx as jsx67, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2528
|
+
var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx67("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
2529
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
|
|
2403
2530
|
"div",
|
|
2404
2531
|
{
|
|
2405
|
-
className:
|
|
2532
|
+
className: cn36(
|
|
2406
2533
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2407
2534
|
className
|
|
2408
2535
|
),
|
|
2409
2536
|
"aria-hidden": "true",
|
|
2410
2537
|
...props,
|
|
2411
|
-
children: checked ? /* @__PURE__ */
|
|
2538
|
+
children: checked ? /* @__PURE__ */ jsx67(Dot, {}) : null
|
|
2412
2539
|
}
|
|
2413
2540
|
);
|
|
2414
2541
|
var _Radio = forwardRef17(
|
|
2415
2542
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
2416
2543
|
const { variant, size, width: groupWidth } = useRadioGroupContext();
|
|
2417
|
-
const classNames2 =
|
|
2544
|
+
const classNames2 = useClassNames41({
|
|
2418
2545
|
component: "Radio",
|
|
2419
2546
|
variant: variant || props.variant,
|
|
2420
2547
|
size: size || props.size
|
|
2421
2548
|
});
|
|
2422
|
-
return /* @__PURE__ */
|
|
2549
|
+
return /* @__PURE__ */ jsx67(
|
|
2423
2550
|
Radio,
|
|
2424
2551
|
{
|
|
2425
2552
|
ref,
|
|
2426
|
-
className:
|
|
2553
|
+
className: cn36(
|
|
2427
2554
|
"group/radio",
|
|
2428
2555
|
"relative flex items-center gap-[1ch]",
|
|
2429
2556
|
width || groupWidth || "w-full",
|
|
@@ -2432,18 +2559,18 @@ var _Radio = forwardRef17(
|
|
|
2432
2559
|
value,
|
|
2433
2560
|
isDisabled: disabled,
|
|
2434
2561
|
...props,
|
|
2435
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2562
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
2563
|
+
/* @__PURE__ */ jsx67(
|
|
2437
2564
|
Icon3,
|
|
2438
2565
|
{
|
|
2439
2566
|
checked: isSelected,
|
|
2440
|
-
className:
|
|
2567
|
+
className: cn36(
|
|
2441
2568
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2442
2569
|
classNames2.radio
|
|
2443
2570
|
)
|
|
2444
2571
|
}
|
|
2445
2572
|
),
|
|
2446
|
-
/* @__PURE__ */
|
|
2573
|
+
/* @__PURE__ */ jsx67("div", { className: classNames2.label, children })
|
|
2447
2574
|
] })
|
|
2448
2575
|
}
|
|
2449
2576
|
);
|
|
@@ -2454,7 +2581,7 @@ _Radio.Group = _RadioGroup;
|
|
|
2454
2581
|
// src/SearchField/SearchField.tsx
|
|
2455
2582
|
import { forwardRef as forwardRef18 } from "react";
|
|
2456
2583
|
import { SearchField } from "react-aria-components";
|
|
2457
|
-
import { jsx as
|
|
2584
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
2458
2585
|
var _SearchField = forwardRef18(
|
|
2459
2586
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
2460
2587
|
const props = {
|
|
@@ -2464,7 +2591,7 @@ var _SearchField = forwardRef18(
|
|
|
2464
2591
|
isReadOnly: readOnly,
|
|
2465
2592
|
isInvalid: error
|
|
2466
2593
|
};
|
|
2467
|
-
return /* @__PURE__ */
|
|
2594
|
+
return /* @__PURE__ */ jsx68(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx68(
|
|
2468
2595
|
SearchInput,
|
|
2469
2596
|
{
|
|
2470
2597
|
ref,
|
|
@@ -2477,12 +2604,12 @@ var _SearchField = forwardRef18(
|
|
|
2477
2604
|
// src/Select/Select.tsx
|
|
2478
2605
|
import { forwardRef as forwardRef19 } from "react";
|
|
2479
2606
|
import {
|
|
2480
|
-
Button as
|
|
2607
|
+
Button as Button6,
|
|
2481
2608
|
Select,
|
|
2482
2609
|
SelectValue
|
|
2483
2610
|
} from "react-aria-components";
|
|
2484
|
-
import { cn as
|
|
2485
|
-
import { jsx as
|
|
2611
|
+
import { cn as cn37, useClassNames as useClassNames42 } from "@marigold/system";
|
|
2612
|
+
import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2486
2613
|
var _Select = forwardRef19(
|
|
2487
2614
|
({
|
|
2488
2615
|
disabled,
|
|
@@ -2503,22 +2630,22 @@ var _Select = forwardRef19(
|
|
|
2503
2630
|
onSelectionChange: onChange,
|
|
2504
2631
|
...rest
|
|
2505
2632
|
};
|
|
2506
|
-
const classNames2 =
|
|
2507
|
-
return /* @__PURE__ */
|
|
2508
|
-
/* @__PURE__ */
|
|
2509
|
-
|
|
2633
|
+
const classNames2 = useClassNames42({ component: "Select", variant, size });
|
|
2634
|
+
return /* @__PURE__ */ jsxs29(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
|
|
2635
|
+
/* @__PURE__ */ jsxs29(
|
|
2636
|
+
Button6,
|
|
2510
2637
|
{
|
|
2511
|
-
className:
|
|
2638
|
+
className: cn37(
|
|
2512
2639
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2513
2640
|
classNames2.select
|
|
2514
2641
|
),
|
|
2515
2642
|
children: [
|
|
2516
|
-
/* @__PURE__ */
|
|
2517
|
-
/* @__PURE__ */
|
|
2643
|
+
/* @__PURE__ */ jsx69(SelectValue, {}),
|
|
2644
|
+
/* @__PURE__ */ jsx69(ChevronDown, { className: "size-4" })
|
|
2518
2645
|
]
|
|
2519
2646
|
}
|
|
2520
2647
|
),
|
|
2521
|
-
/* @__PURE__ */
|
|
2648
|
+
/* @__PURE__ */ jsx69(_Popover, { children: /* @__PURE__ */ jsx69(_ListBox, { items, children: props.children }) })
|
|
2522
2649
|
] });
|
|
2523
2650
|
}
|
|
2524
2651
|
);
|
|
@@ -2526,18 +2653,18 @@ _Select.Option = _ListBox.Item;
|
|
|
2526
2653
|
_Select.Section = _ListBox.Section;
|
|
2527
2654
|
|
|
2528
2655
|
// src/Scrollable/Scrollable.tsx
|
|
2529
|
-
import { cn as
|
|
2530
|
-
import { jsx as
|
|
2656
|
+
import { cn as cn38, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2657
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2531
2658
|
var Scrollable = ({
|
|
2532
2659
|
children,
|
|
2533
2660
|
width = "full",
|
|
2534
2661
|
height,
|
|
2535
2662
|
...props
|
|
2536
|
-
}) => /* @__PURE__ */
|
|
2663
|
+
}) => /* @__PURE__ */ jsx70(
|
|
2537
2664
|
"div",
|
|
2538
2665
|
{
|
|
2539
2666
|
...props,
|
|
2540
|
-
className:
|
|
2667
|
+
className: cn38(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2541
2668
|
style: createVar10({ height }),
|
|
2542
2669
|
children
|
|
2543
2670
|
}
|
|
@@ -2552,11 +2679,11 @@ import {
|
|
|
2552
2679
|
SliderTrack
|
|
2553
2680
|
} from "react-aria-components";
|
|
2554
2681
|
import {
|
|
2555
|
-
cn as
|
|
2682
|
+
cn as cn39,
|
|
2556
2683
|
width as twWidth3,
|
|
2557
|
-
useClassNames as
|
|
2684
|
+
useClassNames as useClassNames43
|
|
2558
2685
|
} from "@marigold/system";
|
|
2559
|
-
import { jsx as
|
|
2686
|
+
import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2560
2687
|
var _Slider = forwardRef20(
|
|
2561
2688
|
({
|
|
2562
2689
|
thumbLabels,
|
|
@@ -2566,7 +2693,7 @@ var _Slider = forwardRef20(
|
|
|
2566
2693
|
disabled,
|
|
2567
2694
|
...rest
|
|
2568
2695
|
}, ref) => {
|
|
2569
|
-
const classNames2 =
|
|
2696
|
+
const classNames2 = useClassNames43({
|
|
2570
2697
|
component: "Slider",
|
|
2571
2698
|
variant,
|
|
2572
2699
|
size
|
|
@@ -2575,10 +2702,10 @@ var _Slider = forwardRef20(
|
|
|
2575
2702
|
isDisabled: disabled,
|
|
2576
2703
|
...rest
|
|
2577
2704
|
};
|
|
2578
|
-
return /* @__PURE__ */
|
|
2705
|
+
return /* @__PURE__ */ jsxs30(
|
|
2579
2706
|
Slider,
|
|
2580
2707
|
{
|
|
2581
|
-
className:
|
|
2708
|
+
className: cn39(
|
|
2582
2709
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2583
2710
|
classNames2.container,
|
|
2584
2711
|
twWidth3[width]
|
|
@@ -2586,16 +2713,16 @@ var _Slider = forwardRef20(
|
|
|
2586
2713
|
ref,
|
|
2587
2714
|
...props,
|
|
2588
2715
|
children: [
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
/* @__PURE__ */
|
|
2591
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsx71(_Label, { children: props.children }),
|
|
2717
|
+
/* @__PURE__ */ jsx71(SliderOutput, { className: cn39("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2718
|
+
/* @__PURE__ */ jsx71(
|
|
2592
2719
|
SliderTrack,
|
|
2593
2720
|
{
|
|
2594
|
-
className:
|
|
2595
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2721
|
+
className: cn39("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2722
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx71(
|
|
2596
2723
|
SliderThumb,
|
|
2597
2724
|
{
|
|
2598
|
-
className:
|
|
2725
|
+
className: cn39("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2599
2726
|
index: i,
|
|
2600
2727
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2601
2728
|
},
|
|
@@ -2610,16 +2737,16 @@ var _Slider = forwardRef20(
|
|
|
2610
2737
|
);
|
|
2611
2738
|
|
|
2612
2739
|
// src/Split/Split.tsx
|
|
2613
|
-
import { jsx as
|
|
2614
|
-
var Split = (props) => /* @__PURE__ */
|
|
2740
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2741
|
+
var Split = (props) => /* @__PURE__ */ jsx72("div", { ...props, role: "separator", className: "grow" });
|
|
2615
2742
|
|
|
2616
2743
|
// src/Stack/Stack.tsx
|
|
2617
2744
|
import {
|
|
2618
2745
|
alignment as alignment3,
|
|
2619
|
-
cn as
|
|
2746
|
+
cn as cn40,
|
|
2620
2747
|
gapSpace as gapSpace6
|
|
2621
2748
|
} from "@marigold/system";
|
|
2622
|
-
import { jsx as
|
|
2749
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
2623
2750
|
var Stack = ({
|
|
2624
2751
|
children,
|
|
2625
2752
|
space = 0,
|
|
@@ -2630,10 +2757,10 @@ var Stack = ({
|
|
|
2630
2757
|
...props
|
|
2631
2758
|
}) => {
|
|
2632
2759
|
var _a, _b, _c, _d;
|
|
2633
|
-
return /* @__PURE__ */
|
|
2760
|
+
return /* @__PURE__ */ jsx73(
|
|
2634
2761
|
"div",
|
|
2635
2762
|
{
|
|
2636
|
-
className:
|
|
2763
|
+
className: cn40(
|
|
2637
2764
|
"flex flex-col",
|
|
2638
2765
|
gapSpace6[space],
|
|
2639
2766
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2650,11 +2777,11 @@ var Stack = ({
|
|
|
2650
2777
|
import { forwardRef as forwardRef21 } from "react";
|
|
2651
2778
|
import { Switch } from "react-aria-components";
|
|
2652
2779
|
import {
|
|
2653
|
-
cn as
|
|
2780
|
+
cn as cn41,
|
|
2654
2781
|
width as twWidth4,
|
|
2655
|
-
useClassNames as
|
|
2782
|
+
useClassNames as useClassNames44
|
|
2656
2783
|
} from "@marigold/system";
|
|
2657
|
-
import { jsx as
|
|
2784
|
+
import { jsx as jsx74, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2658
2785
|
var _Switch = forwardRef21(
|
|
2659
2786
|
({
|
|
2660
2787
|
variant,
|
|
@@ -2666,37 +2793,37 @@ var _Switch = forwardRef21(
|
|
|
2666
2793
|
readOnly,
|
|
2667
2794
|
...rest
|
|
2668
2795
|
}, ref) => {
|
|
2669
|
-
const classNames2 =
|
|
2796
|
+
const classNames2 = useClassNames44({ component: "Switch", size, variant });
|
|
2670
2797
|
const props = {
|
|
2671
2798
|
isDisabled: disabled,
|
|
2672
2799
|
isReadOnly: readOnly,
|
|
2673
2800
|
isSelected: selected,
|
|
2674
2801
|
...rest
|
|
2675
2802
|
};
|
|
2676
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ jsxs31(
|
|
2677
2804
|
Switch,
|
|
2678
2805
|
{
|
|
2679
2806
|
...props,
|
|
2680
2807
|
ref,
|
|
2681
|
-
className:
|
|
2808
|
+
className: cn41(
|
|
2682
2809
|
twWidth4[width],
|
|
2683
2810
|
"group/switch",
|
|
2684
2811
|
"flex items-center gap-[1ch]",
|
|
2685
2812
|
classNames2.container
|
|
2686
2813
|
),
|
|
2687
2814
|
children: [
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2815
|
+
/* @__PURE__ */ jsx74(_Label, { elementType: "span", children }),
|
|
2816
|
+
/* @__PURE__ */ jsx74("div", { className: "relative", children: /* @__PURE__ */ jsx74(
|
|
2690
2817
|
"div",
|
|
2691
2818
|
{
|
|
2692
|
-
className:
|
|
2819
|
+
className: cn41(
|
|
2693
2820
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2694
2821
|
classNames2.track
|
|
2695
2822
|
),
|
|
2696
|
-
children: /* @__PURE__ */
|
|
2823
|
+
children: /* @__PURE__ */ jsx74(
|
|
2697
2824
|
"div",
|
|
2698
2825
|
{
|
|
2699
|
-
className:
|
|
2826
|
+
className: cn41(
|
|
2700
2827
|
"h-[22px] w-[22px]",
|
|
2701
2828
|
"cubic-bezier(.7,0,.3,1)",
|
|
2702
2829
|
"absolute left-0 top-px",
|
|
@@ -2725,7 +2852,7 @@ import {
|
|
|
2725
2852
|
Row,
|
|
2726
2853
|
useTableState
|
|
2727
2854
|
} from "@react-stately/table";
|
|
2728
|
-
import { cn as
|
|
2855
|
+
import { cn as cn47, useClassNames as useClassNames46 } from "@marigold/system";
|
|
2729
2856
|
|
|
2730
2857
|
// src/Table/Context.tsx
|
|
2731
2858
|
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
@@ -2734,10 +2861,10 @@ var useTableContext = () => useContext13(TableContext);
|
|
|
2734
2861
|
|
|
2735
2862
|
// src/Table/TableBody.tsx
|
|
2736
2863
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2737
|
-
import { jsx as
|
|
2864
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
2738
2865
|
var TableBody = ({ children }) => {
|
|
2739
2866
|
const { rowGroupProps } = useTableRowGroup();
|
|
2740
|
-
return /* @__PURE__ */
|
|
2867
|
+
return /* @__PURE__ */ jsx75("tbody", { ...rowGroupProps, children });
|
|
2741
2868
|
};
|
|
2742
2869
|
|
|
2743
2870
|
// src/Table/TableCell.tsx
|
|
@@ -2745,8 +2872,8 @@ import { useRef as useRef4 } from "react";
|
|
|
2745
2872
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2746
2873
|
import { useTableCell } from "@react-aria/table";
|
|
2747
2874
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2748
|
-
import { cn as
|
|
2749
|
-
import { jsx as
|
|
2875
|
+
import { cn as cn42, useStateProps as useStateProps2 } from "@marigold/system";
|
|
2876
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
2750
2877
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2751
2878
|
const ref = useRef4(null);
|
|
2752
2879
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
@@ -2769,11 +2896,11 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
2769
2896
|
};
|
|
2770
2897
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
2771
2898
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
2772
|
-
return /* @__PURE__ */
|
|
2899
|
+
return /* @__PURE__ */ jsx76(
|
|
2773
2900
|
"td",
|
|
2774
2901
|
{
|
|
2775
2902
|
ref,
|
|
2776
|
-
className:
|
|
2903
|
+
className: cn42(classNames2 == null ? void 0 : classNames2.cell),
|
|
2777
2904
|
...mergeProps3(cellProps, focusProps),
|
|
2778
2905
|
...stateProps,
|
|
2779
2906
|
align,
|
|
@@ -2787,7 +2914,7 @@ import { useRef as useRef5 } from "react";
|
|
|
2787
2914
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
2788
2915
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2789
2916
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2790
|
-
import { cn as
|
|
2917
|
+
import { cn as cn43, useStateProps as useStateProps3 } from "@marigold/system";
|
|
2791
2918
|
|
|
2792
2919
|
// src/Table/utils.ts
|
|
2793
2920
|
var mapCheckboxProps = ({
|
|
@@ -2810,7 +2937,7 @@ var mapCheckboxProps = ({
|
|
|
2810
2937
|
};
|
|
2811
2938
|
|
|
2812
2939
|
// src/Table/TableCheckboxCell.tsx
|
|
2813
|
-
import { jsx as
|
|
2940
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
2814
2941
|
var TableCheckboxCell = ({ cell }) => {
|
|
2815
2942
|
const ref = useRef5(null);
|
|
2816
2943
|
const { state, classNames: classNames2 } = useTableContext();
|
|
@@ -2827,14 +2954,14 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2827
2954
|
);
|
|
2828
2955
|
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
2829
2956
|
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
2830
|
-
return /* @__PURE__ */
|
|
2957
|
+
return /* @__PURE__ */ jsx77(
|
|
2831
2958
|
"td",
|
|
2832
2959
|
{
|
|
2833
2960
|
ref,
|
|
2834
|
-
className:
|
|
2961
|
+
className: cn43("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2835
2962
|
...mergeProps4(gridCellProps, focusProps),
|
|
2836
2963
|
...stateProps,
|
|
2837
|
-
children: /* @__PURE__ */
|
|
2964
|
+
children: /* @__PURE__ */ jsx77(_Checkbox, { ...checkboxProps })
|
|
2838
2965
|
}
|
|
2839
2966
|
);
|
|
2840
2967
|
};
|
|
@@ -2846,9 +2973,9 @@ import { useHover } from "@react-aria/interactions";
|
|
|
2846
2973
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2847
2974
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
2848
2975
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
2849
|
-
import { cn as
|
|
2976
|
+
import { cn as cn44, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2850
2977
|
import { width as twWidth5 } from "@marigold/system";
|
|
2851
|
-
import { jsx as
|
|
2978
|
+
import { jsx as jsx78, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2852
2979
|
var TableColumnHeader = ({
|
|
2853
2980
|
column,
|
|
2854
2981
|
width = "auto",
|
|
@@ -2870,18 +2997,18 @@ var TableColumnHeader = ({
|
|
|
2870
2997
|
hover: isHovered,
|
|
2871
2998
|
focusVisible: isFocusVisible
|
|
2872
2999
|
});
|
|
2873
|
-
return /* @__PURE__ */
|
|
3000
|
+
return /* @__PURE__ */ jsxs32(
|
|
2874
3001
|
"th",
|
|
2875
3002
|
{
|
|
2876
3003
|
colSpan: column.colspan,
|
|
2877
3004
|
ref,
|
|
2878
|
-
className:
|
|
3005
|
+
className: cn44("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
2879
3006
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
2880
3007
|
...stateProps,
|
|
2881
3008
|
align,
|
|
2882
3009
|
children: [
|
|
2883
3010
|
column.rendered,
|
|
2884
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
3011
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx78(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx78(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx78(SortDown, { className: "inline-block" }))
|
|
2885
3012
|
]
|
|
2886
3013
|
}
|
|
2887
3014
|
);
|
|
@@ -2889,10 +3016,10 @@ var TableColumnHeader = ({
|
|
|
2889
3016
|
|
|
2890
3017
|
// src/Table/TableHeader.tsx
|
|
2891
3018
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2892
|
-
import { jsx as
|
|
3019
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
2893
3020
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
2894
3021
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2895
|
-
return /* @__PURE__ */
|
|
3022
|
+
return /* @__PURE__ */ jsx79(
|
|
2896
3023
|
"thead",
|
|
2897
3024
|
{
|
|
2898
3025
|
...rowGroupProps,
|
|
@@ -2905,12 +3032,12 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
2905
3032
|
// src/Table/TableHeaderRow.tsx
|
|
2906
3033
|
import { useRef as useRef7 } from "react";
|
|
2907
3034
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2908
|
-
import { jsx as
|
|
3035
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
2909
3036
|
var TableHeaderRow = ({ item, children }) => {
|
|
2910
3037
|
const { state } = useTableContext();
|
|
2911
3038
|
const ref = useRef7(null);
|
|
2912
3039
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2913
|
-
return /* @__PURE__ */
|
|
3040
|
+
return /* @__PURE__ */ jsx80("tr", { ...rowProps, ref, children });
|
|
2914
3041
|
};
|
|
2915
3042
|
|
|
2916
3043
|
// src/Table/TableRow.tsx
|
|
@@ -2919,13 +3046,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
2919
3046
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
2920
3047
|
import { useTableRow } from "@react-aria/table";
|
|
2921
3048
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
2922
|
-
import { cn as
|
|
2923
|
-
import { jsx as
|
|
3049
|
+
import { cn as cn45, useClassNames as useClassNames45, useStateProps as useStateProps5 } from "@marigold/system";
|
|
3050
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
2924
3051
|
var TableRow = ({ children, row }) => {
|
|
2925
3052
|
const ref = useRef8(null);
|
|
2926
3053
|
const { interactive, state, ...ctx } = useTableContext();
|
|
2927
3054
|
const { variant, size } = row.props;
|
|
2928
|
-
const classNames2 =
|
|
3055
|
+
const classNames2 = useClassNames45({
|
|
2929
3056
|
component: "Table",
|
|
2930
3057
|
variant: variant || ctx.variant,
|
|
2931
3058
|
size: size || ctx.size
|
|
@@ -2950,11 +3077,11 @@ var TableRow = ({ children, row }) => {
|
|
|
2950
3077
|
focusVisible: isFocusVisible,
|
|
2951
3078
|
active: isPressed
|
|
2952
3079
|
});
|
|
2953
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx81(
|
|
2954
3081
|
"tr",
|
|
2955
3082
|
{
|
|
2956
3083
|
ref,
|
|
2957
|
-
className:
|
|
3084
|
+
className: cn45(
|
|
2958
3085
|
[
|
|
2959
3086
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
2960
3087
|
],
|
|
@@ -2977,11 +3104,11 @@ import {
|
|
|
2977
3104
|
} from "@react-aria/table";
|
|
2978
3105
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
2979
3106
|
import {
|
|
2980
|
-
cn as
|
|
3107
|
+
cn as cn46,
|
|
2981
3108
|
width as twWidth6,
|
|
2982
3109
|
useStateProps as useStateProps6
|
|
2983
3110
|
} from "@marigold/system";
|
|
2984
|
-
import { jsx as
|
|
3111
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
2985
3112
|
var TableSelectAllCell = ({
|
|
2986
3113
|
column,
|
|
2987
3114
|
width = "auto",
|
|
@@ -3003,21 +3130,21 @@ var TableSelectAllCell = ({
|
|
|
3003
3130
|
hover: isHovered,
|
|
3004
3131
|
focusVisible: isFocusVisible
|
|
3005
3132
|
});
|
|
3006
|
-
return /* @__PURE__ */
|
|
3133
|
+
return /* @__PURE__ */ jsx82(
|
|
3007
3134
|
"th",
|
|
3008
3135
|
{
|
|
3009
3136
|
ref,
|
|
3010
|
-
className:
|
|
3137
|
+
className: cn46(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
3011
3138
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3012
3139
|
...stateProps,
|
|
3013
3140
|
align,
|
|
3014
|
-
children: /* @__PURE__ */
|
|
3141
|
+
children: /* @__PURE__ */ jsx82(_Checkbox, { ...checkboxProps })
|
|
3015
3142
|
}
|
|
3016
3143
|
);
|
|
3017
3144
|
};
|
|
3018
3145
|
|
|
3019
3146
|
// src/Table/Table.tsx
|
|
3020
|
-
import { jsx as
|
|
3147
|
+
import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3021
3148
|
var Table = ({
|
|
3022
3149
|
variant,
|
|
3023
3150
|
size,
|
|
@@ -3035,21 +3162,21 @@ var Table = ({
|
|
|
3035
3162
|
props.selectionBehavior !== "replace"
|
|
3036
3163
|
});
|
|
3037
3164
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3038
|
-
const classNames2 =
|
|
3165
|
+
const classNames2 = useClassNames46({
|
|
3039
3166
|
component: "Table",
|
|
3040
3167
|
variant,
|
|
3041
3168
|
size
|
|
3042
3169
|
});
|
|
3043
3170
|
const { collection } = state;
|
|
3044
|
-
return /* @__PURE__ */
|
|
3171
|
+
return /* @__PURE__ */ jsx83(
|
|
3045
3172
|
TableContext.Provider,
|
|
3046
3173
|
{
|
|
3047
3174
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
3048
|
-
children: /* @__PURE__ */
|
|
3175
|
+
children: /* @__PURE__ */ jsxs33(
|
|
3049
3176
|
"table",
|
|
3050
3177
|
{
|
|
3051
3178
|
ref: tableRef,
|
|
3052
|
-
className:
|
|
3179
|
+
className: cn47(
|
|
3053
3180
|
"group/table",
|
|
3054
3181
|
"border-collapse whitespace-nowrap",
|
|
3055
3182
|
stretch ? "table w-full" : "block",
|
|
@@ -3057,10 +3184,10 @@ var Table = ({
|
|
|
3057
3184
|
),
|
|
3058
3185
|
...gridProps,
|
|
3059
3186
|
children: [
|
|
3060
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ jsx83(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx83(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3061
3188
|
(column) => {
|
|
3062
3189
|
var _a, _b, _c, _d, _e;
|
|
3063
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3190
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx83(
|
|
3064
3191
|
TableSelectAllCell,
|
|
3065
3192
|
{
|
|
3066
3193
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3068,7 +3195,7 @@ var Table = ({
|
|
|
3068
3195
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3069
3196
|
},
|
|
3070
3197
|
column.key
|
|
3071
|
-
) : /* @__PURE__ */
|
|
3198
|
+
) : /* @__PURE__ */ jsx83(
|
|
3072
3199
|
TableColumnHeader,
|
|
3073
3200
|
{
|
|
3074
3201
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3079,12 +3206,12 @@ var Table = ({
|
|
|
3079
3206
|
);
|
|
3080
3207
|
}
|
|
3081
3208
|
) }, headerRow.key)) }),
|
|
3082
|
-
/* @__PURE__ */
|
|
3209
|
+
/* @__PURE__ */ jsxs33(TableBody, { children: [
|
|
3083
3210
|
...collection.rows.map(
|
|
3084
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3211
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx83(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3085
3212
|
var _a, _b;
|
|
3086
3213
|
const currentColumn = collection.columns[index];
|
|
3087
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3214
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx83(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx83(
|
|
3088
3215
|
TableCell,
|
|
3089
3216
|
{
|
|
3090
3217
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3109,7 +3236,7 @@ Table.Row = Row;
|
|
|
3109
3236
|
|
|
3110
3237
|
// src/Text/Text.tsx
|
|
3111
3238
|
import {
|
|
3112
|
-
cn as
|
|
3239
|
+
cn as cn48,
|
|
3113
3240
|
createVar as createVar11,
|
|
3114
3241
|
cursorStyle,
|
|
3115
3242
|
fontWeight,
|
|
@@ -3117,10 +3244,10 @@ import {
|
|
|
3117
3244
|
textAlign as textAlign2,
|
|
3118
3245
|
textSize,
|
|
3119
3246
|
textStyle,
|
|
3120
|
-
useClassNames as
|
|
3247
|
+
useClassNames as useClassNames47,
|
|
3121
3248
|
useTheme as useTheme3
|
|
3122
3249
|
} from "@marigold/system";
|
|
3123
|
-
import { jsx as
|
|
3250
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3124
3251
|
var Text2 = ({
|
|
3125
3252
|
variant,
|
|
3126
3253
|
size,
|
|
@@ -3134,16 +3261,16 @@ var Text2 = ({
|
|
|
3134
3261
|
...props
|
|
3135
3262
|
}) => {
|
|
3136
3263
|
const theme = useTheme3();
|
|
3137
|
-
const classNames2 =
|
|
3264
|
+
const classNames2 = useClassNames47({
|
|
3138
3265
|
component: "Text",
|
|
3139
3266
|
variant,
|
|
3140
3267
|
size
|
|
3141
3268
|
});
|
|
3142
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsx84(
|
|
3143
3270
|
"p",
|
|
3144
3271
|
{
|
|
3145
3272
|
...props,
|
|
3146
|
-
className:
|
|
3273
|
+
className: cn48(
|
|
3147
3274
|
"text-[--color] outline-[--outline]",
|
|
3148
3275
|
classNames2,
|
|
3149
3276
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3168,8 +3295,8 @@ var Text2 = ({
|
|
|
3168
3295
|
// src/TextArea/TextArea.tsx
|
|
3169
3296
|
import { forwardRef as forwardRef22 } from "react";
|
|
3170
3297
|
import { TextArea, TextField } from "react-aria-components";
|
|
3171
|
-
import { useClassNames as
|
|
3172
|
-
import { jsx as
|
|
3298
|
+
import { useClassNames as useClassNames48 } from "@marigold/system";
|
|
3299
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3173
3300
|
var _TextArea = forwardRef22(
|
|
3174
3301
|
({
|
|
3175
3302
|
variant,
|
|
@@ -3181,7 +3308,7 @@ var _TextArea = forwardRef22(
|
|
|
3181
3308
|
rows,
|
|
3182
3309
|
...rest
|
|
3183
3310
|
}, ref) => {
|
|
3184
|
-
const classNames2 =
|
|
3311
|
+
const classNames2 = useClassNames48({ component: "TextArea", variant, size });
|
|
3185
3312
|
const props = {
|
|
3186
3313
|
isDisabled: disabled,
|
|
3187
3314
|
isReadOnly: readOnly,
|
|
@@ -3189,14 +3316,14 @@ var _TextArea = forwardRef22(
|
|
|
3189
3316
|
isRequired: required,
|
|
3190
3317
|
...rest
|
|
3191
3318
|
};
|
|
3192
|
-
return /* @__PURE__ */
|
|
3319
|
+
return /* @__PURE__ */ jsx85(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx85(TextArea, { className: classNames2, ref, rows }) });
|
|
3193
3320
|
}
|
|
3194
3321
|
);
|
|
3195
3322
|
|
|
3196
3323
|
// src/TextField/TextField.tsx
|
|
3197
3324
|
import { forwardRef as forwardRef23 } from "react";
|
|
3198
3325
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3199
|
-
import { jsx as
|
|
3326
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
3200
3327
|
var _TextField = forwardRef23(
|
|
3201
3328
|
({
|
|
3202
3329
|
variant,
|
|
@@ -3214,13 +3341,13 @@ var _TextField = forwardRef23(
|
|
|
3214
3341
|
isRequired: required,
|
|
3215
3342
|
...rest
|
|
3216
3343
|
};
|
|
3217
|
-
return /* @__PURE__ */
|
|
3344
|
+
return /* @__PURE__ */ jsx86(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx86(_Input, { ref }) });
|
|
3218
3345
|
}
|
|
3219
3346
|
);
|
|
3220
3347
|
|
|
3221
3348
|
// src/Tiles/Tiles.tsx
|
|
3222
|
-
import { cn as
|
|
3223
|
-
import { jsx as
|
|
3349
|
+
import { cn as cn49, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3350
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3224
3351
|
var Tiles = ({
|
|
3225
3352
|
space = 0,
|
|
3226
3353
|
stretch = false,
|
|
@@ -3233,11 +3360,11 @@ var Tiles = ({
|
|
|
3233
3360
|
if (stretch) {
|
|
3234
3361
|
column = `minmax(${column}, 1fr)`;
|
|
3235
3362
|
}
|
|
3236
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsx87(
|
|
3237
3364
|
"div",
|
|
3238
3365
|
{
|
|
3239
3366
|
...props,
|
|
3240
|
-
className:
|
|
3367
|
+
className: cn49(
|
|
3241
3368
|
"grid",
|
|
3242
3369
|
gapSpace7[space],
|
|
3243
3370
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3251,11 +3378,11 @@ var Tiles = ({
|
|
|
3251
3378
|
|
|
3252
3379
|
// src/Tooltip/Tooltip.tsx
|
|
3253
3380
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3254
|
-
import { cn as
|
|
3381
|
+
import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
|
|
3255
3382
|
|
|
3256
3383
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3257
3384
|
import { TooltipTrigger } from "react-aria-components";
|
|
3258
|
-
import { jsx as
|
|
3385
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3259
3386
|
var _TooltipTrigger = ({
|
|
3260
3387
|
delay = 1e3,
|
|
3261
3388
|
children,
|
|
@@ -3269,72 +3396,32 @@ var _TooltipTrigger = ({
|
|
|
3269
3396
|
isOpen: open,
|
|
3270
3397
|
delay
|
|
3271
3398
|
};
|
|
3272
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsx88(TooltipTrigger, { ...props, children });
|
|
3273
3400
|
};
|
|
3274
3401
|
|
|
3275
3402
|
// src/Tooltip/Tooltip.tsx
|
|
3276
|
-
import { jsx as
|
|
3403
|
+
import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3277
3404
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3278
3405
|
const props = {
|
|
3279
3406
|
...rest,
|
|
3280
3407
|
isOpen: open
|
|
3281
3408
|
};
|
|
3282
|
-
const classNames2 =
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
] });
|
|
3287
|
-
};
|
|
3288
|
-
_Tooltip.Trigger = _TooltipTrigger;
|
|
3289
|
-
|
|
3290
|
-
// src/TagGroup/Tag.tsx
|
|
3291
|
-
import { Button as Button6, Tag } from "react-aria-components";
|
|
3292
|
-
import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
|
|
3293
|
-
|
|
3294
|
-
// src/TagGroup/TagGroup.tsx
|
|
3295
|
-
import { TagGroup, TagList } from "react-aria-components";
|
|
3296
|
-
import { useClassNames as useClassNames48 } from "@marigold/system";
|
|
3297
|
-
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3298
|
-
var _TagGroup = ({
|
|
3299
|
-
width,
|
|
3300
|
-
items,
|
|
3301
|
-
children,
|
|
3302
|
-
renderEmptyState,
|
|
3303
|
-
variant,
|
|
3304
|
-
size,
|
|
3305
|
-
...rest
|
|
3306
|
-
}) => {
|
|
3307
|
-
const classNames2 = useClassNames48({ component: "Tag", variant, size });
|
|
3308
|
-
return /* @__PURE__ */ jsx87(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx87(
|
|
3309
|
-
TagList,
|
|
3409
|
+
const classNames2 = useClassNames49({ component: "Tooltip", variant, size });
|
|
3410
|
+
const portal = usePortalContainer();
|
|
3411
|
+
return /* @__PURE__ */ jsxs34(
|
|
3412
|
+
Tooltip,
|
|
3310
3413
|
{
|
|
3311
|
-
|
|
3312
|
-
className: classNames2.
|
|
3313
|
-
|
|
3314
|
-
children
|
|
3414
|
+
...props,
|
|
3415
|
+
className: cn50("group/tooltip", classNames2.container),
|
|
3416
|
+
UNSTABLE_portalContainer: portal,
|
|
3417
|
+
children: [
|
|
3418
|
+
/* @__PURE__ */ jsx89(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx89("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx89("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3419
|
+
children
|
|
3420
|
+
]
|
|
3315
3421
|
}
|
|
3316
|
-
)
|
|
3317
|
-
};
|
|
3318
|
-
|
|
3319
|
-
// src/TagGroup/Tag.tsx
|
|
3320
|
-
import { Fragment as Fragment7, jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3321
|
-
var CloseButton2 = ({ className }) => {
|
|
3322
|
-
return /* @__PURE__ */ jsx88(Button6, { slot: "remove", className, children: /* @__PURE__ */ jsx88("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx88("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" }) }) });
|
|
3323
|
-
};
|
|
3324
|
-
var _Tag = ({ variant, size, children, ...props }) => {
|
|
3325
|
-
let textValue = typeof children === "string" ? children : void 0;
|
|
3326
|
-
const classNames2 = useClassNames49({ component: "Tag", variant, size });
|
|
3327
|
-
return /* @__PURE__ */ jsx88(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs33(Fragment7, { children: [
|
|
3328
|
-
children,
|
|
3329
|
-
allowsRemoving && /* @__PURE__ */ jsx88(
|
|
3330
|
-
CloseButton2,
|
|
3331
|
-
{
|
|
3332
|
-
className: cn50("flex items-center", classNames2.closeButton)
|
|
3333
|
-
}
|
|
3334
|
-
)
|
|
3335
|
-
] }) });
|
|
3422
|
+
);
|
|
3336
3423
|
};
|
|
3337
|
-
|
|
3424
|
+
_Tooltip.Trigger = _TooltipTrigger;
|
|
3338
3425
|
|
|
3339
3426
|
// src/VisuallyHidden/VisuallyHidden.tsx
|
|
3340
3427
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
@@ -3342,8 +3429,8 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
3342
3429
|
// src/XLoader/XLoader.tsx
|
|
3343
3430
|
import { forwardRef as forwardRef24 } from "react";
|
|
3344
3431
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3345
|
-
import { jsx as
|
|
3346
|
-
var XLoader = forwardRef24((props, ref) => /* @__PURE__ */
|
|
3432
|
+
import { jsx as jsx90, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3433
|
+
var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
3347
3434
|
SVG5,
|
|
3348
3435
|
{
|
|
3349
3436
|
id: "XLoader",
|
|
@@ -3353,13 +3440,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3353
3440
|
...props,
|
|
3354
3441
|
...ref,
|
|
3355
3442
|
children: [
|
|
3356
|
-
/* @__PURE__ */
|
|
3357
|
-
/* @__PURE__ */
|
|
3443
|
+
/* @__PURE__ */ jsx90("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3444
|
+
/* @__PURE__ */ jsx90(
|
|
3358
3445
|
"path",
|
|
3359
3446
|
{
|
|
3360
3447
|
id: "XMLID_5_",
|
|
3361
3448
|
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",
|
|
3362
|
-
children: /* @__PURE__ */
|
|
3449
|
+
children: /* @__PURE__ */ jsx90(
|
|
3363
3450
|
"animate",
|
|
3364
3451
|
{
|
|
3365
3452
|
attributeName: "opacity",
|
|
@@ -3372,12 +3459,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3372
3459
|
)
|
|
3373
3460
|
}
|
|
3374
3461
|
),
|
|
3375
|
-
/* @__PURE__ */
|
|
3462
|
+
/* @__PURE__ */ jsx90(
|
|
3376
3463
|
"path",
|
|
3377
3464
|
{
|
|
3378
3465
|
id: "XMLID_18_",
|
|
3379
3466
|
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",
|
|
3380
|
-
children: /* @__PURE__ */
|
|
3467
|
+
children: /* @__PURE__ */ jsx90(
|
|
3381
3468
|
"animate",
|
|
3382
3469
|
{
|
|
3383
3470
|
attributeName: "opacity",
|
|
@@ -3390,12 +3477,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3390
3477
|
)
|
|
3391
3478
|
}
|
|
3392
3479
|
),
|
|
3393
|
-
/* @__PURE__ */
|
|
3480
|
+
/* @__PURE__ */ jsx90(
|
|
3394
3481
|
"path",
|
|
3395
3482
|
{
|
|
3396
3483
|
id: "XMLID_19_",
|
|
3397
3484
|
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",
|
|
3398
|
-
children: /* @__PURE__ */
|
|
3485
|
+
children: /* @__PURE__ */ jsx90(
|
|
3399
3486
|
"animate",
|
|
3400
3487
|
{
|
|
3401
3488
|
attributeName: "opacity",
|
|
@@ -3408,12 +3495,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3408
3495
|
)
|
|
3409
3496
|
}
|
|
3410
3497
|
),
|
|
3411
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ jsx90(
|
|
3412
3499
|
"path",
|
|
3413
3500
|
{
|
|
3414
3501
|
id: "XMLID_20_",
|
|
3415
3502
|
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",
|
|
3416
|
-
children: /* @__PURE__ */
|
|
3503
|
+
children: /* @__PURE__ */ jsx90(
|
|
3417
3504
|
"animate",
|
|
3418
3505
|
{
|
|
3419
3506
|
attributeName: "opacity",
|
|
@@ -3426,12 +3513,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3426
3513
|
)
|
|
3427
3514
|
}
|
|
3428
3515
|
),
|
|
3429
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ jsx90(
|
|
3430
3517
|
"path",
|
|
3431
3518
|
{
|
|
3432
3519
|
id: "XMLID_21_",
|
|
3433
3520
|
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",
|
|
3434
|
-
children: /* @__PURE__ */
|
|
3521
|
+
children: /* @__PURE__ */ jsx90(
|
|
3435
3522
|
"animate",
|
|
3436
3523
|
{
|
|
3437
3524
|
attributeName: "opacity",
|
|
@@ -3444,12 +3531,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3444
3531
|
)
|
|
3445
3532
|
}
|
|
3446
3533
|
),
|
|
3447
|
-
/* @__PURE__ */
|
|
3534
|
+
/* @__PURE__ */ jsx90(
|
|
3448
3535
|
"path",
|
|
3449
3536
|
{
|
|
3450
3537
|
id: "XMLID_22_",
|
|
3451
3538
|
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",
|
|
3452
|
-
children: /* @__PURE__ */
|
|
3539
|
+
children: /* @__PURE__ */ jsx90(
|
|
3453
3540
|
"animate",
|
|
3454
3541
|
{
|
|
3455
3542
|
attributeName: "opacity",
|
|
@@ -3462,12 +3549,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3462
3549
|
)
|
|
3463
3550
|
}
|
|
3464
3551
|
),
|
|
3465
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ jsx90(
|
|
3466
3553
|
"path",
|
|
3467
3554
|
{
|
|
3468
3555
|
id: "XMLID_23_",
|
|
3469
3556
|
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",
|
|
3470
|
-
children: /* @__PURE__ */
|
|
3557
|
+
children: /* @__PURE__ */ jsx90(
|
|
3471
3558
|
"animate",
|
|
3472
3559
|
{
|
|
3473
3560
|
attributeName: "opacity",
|
|
@@ -3480,12 +3567,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3480
3567
|
)
|
|
3481
3568
|
}
|
|
3482
3569
|
),
|
|
3483
|
-
/* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ jsx90(
|
|
3484
3571
|
"path",
|
|
3485
3572
|
{
|
|
3486
3573
|
id: "XMLID_24_",
|
|
3487
3574
|
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",
|
|
3488
|
-
children: /* @__PURE__ */
|
|
3575
|
+
children: /* @__PURE__ */ jsx90(
|
|
3489
3576
|
"animate",
|
|
3490
3577
|
{
|
|
3491
3578
|
attributeName: "opacity",
|
|
@@ -3498,12 +3585,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3498
3585
|
)
|
|
3499
3586
|
}
|
|
3500
3587
|
),
|
|
3501
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ jsx90(
|
|
3502
3589
|
"path",
|
|
3503
3590
|
{
|
|
3504
3591
|
id: "XMLID_25_",
|
|
3505
3592
|
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",
|
|
3506
|
-
children: /* @__PURE__ */
|
|
3593
|
+
children: /* @__PURE__ */ jsx90(
|
|
3507
3594
|
"animate",
|
|
3508
3595
|
{
|
|
3509
3596
|
attributeName: "opacity",
|
|
@@ -3516,12 +3603,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3516
3603
|
)
|
|
3517
3604
|
}
|
|
3518
3605
|
),
|
|
3519
|
-
/* @__PURE__ */
|
|
3606
|
+
/* @__PURE__ */ jsx90(
|
|
3520
3607
|
"path",
|
|
3521
3608
|
{
|
|
3522
3609
|
id: "XMLID_26_",
|
|
3523
3610
|
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",
|
|
3524
|
-
children: /* @__PURE__ */
|
|
3611
|
+
children: /* @__PURE__ */ jsx90(
|
|
3525
3612
|
"animate",
|
|
3526
3613
|
{
|
|
3527
3614
|
attributeName: "opacity",
|
|
@@ -3534,12 +3621,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
|
|
|
3534
3621
|
)
|
|
3535
3622
|
}
|
|
3536
3623
|
),
|
|
3537
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ jsx90(
|
|
3538
3625
|
"path",
|
|
3539
3626
|
{
|
|
3540
3627
|
id: "XMLID_27_",
|
|
3541
3628
|
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",
|
|
3542
|
-
children: /* @__PURE__ */
|
|
3629
|
+
children: /* @__PURE__ */ jsx90(
|
|
3543
3630
|
"animate",
|
|
3544
3631
|
{
|
|
3545
3632
|
attributeName: "opacity",
|
|
@@ -3568,10 +3655,10 @@ var useTabContext = () => useContext14(TabContext);
|
|
|
3568
3655
|
// src/Tabs/Tab.tsx
|
|
3569
3656
|
import { Tab } from "react-aria-components";
|
|
3570
3657
|
import { cn as cn51 } from "@marigold/system";
|
|
3571
|
-
import { jsx as
|
|
3658
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
3572
3659
|
var _Tab = (props) => {
|
|
3573
3660
|
const { classNames: classNames2 } = useTabContext();
|
|
3574
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ jsx91(
|
|
3575
3662
|
Tab,
|
|
3576
3663
|
{
|
|
3577
3664
|
...props,
|
|
@@ -3587,10 +3674,10 @@ var _Tab = (props) => {
|
|
|
3587
3674
|
// src/Tabs/TabList.tsx
|
|
3588
3675
|
import { TabList } from "react-aria-components";
|
|
3589
3676
|
import { cn as cn52, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3590
|
-
import { jsx as
|
|
3677
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
3591
3678
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3592
3679
|
const { classNames: classNames2 } = useTabContext();
|
|
3593
|
-
return /* @__PURE__ */
|
|
3680
|
+
return /* @__PURE__ */ jsx92(
|
|
3594
3681
|
TabList,
|
|
3595
3682
|
{
|
|
3596
3683
|
...props,
|
|
@@ -3602,14 +3689,14 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3602
3689
|
|
|
3603
3690
|
// src/Tabs/TabPanel.tsx
|
|
3604
3691
|
import { TabPanel } from "react-aria-components";
|
|
3605
|
-
import { jsx as
|
|
3692
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3606
3693
|
var _TabPanel = (props) => {
|
|
3607
3694
|
const { classNames: classNames2 } = useTabContext();
|
|
3608
|
-
return /* @__PURE__ */
|
|
3695
|
+
return /* @__PURE__ */ jsx93(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3609
3696
|
};
|
|
3610
3697
|
|
|
3611
3698
|
// src/Tabs/Tabs.tsx
|
|
3612
|
-
import { jsx as
|
|
3699
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
3613
3700
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3614
3701
|
const props = {
|
|
3615
3702
|
isDisabled: disabled,
|
|
@@ -3620,7 +3707,7 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
|
3620
3707
|
size,
|
|
3621
3708
|
variant
|
|
3622
3709
|
});
|
|
3623
|
-
return /* @__PURE__ */
|
|
3710
|
+
return /* @__PURE__ */ jsx94(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx94(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3624
3711
|
};
|
|
3625
3712
|
_Tabs.List = _TabList;
|
|
3626
3713
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3671,6 +3758,7 @@ export {
|
|
|
3671
3758
|
_Menu as Menu,
|
|
3672
3759
|
Message,
|
|
3673
3760
|
_Modal as Modal,
|
|
3761
|
+
Multiselect,
|
|
3674
3762
|
_NumberField as NumberField,
|
|
3675
3763
|
OverlayContainerProvider,
|
|
3676
3764
|
_Popover as Popover,
|