@marigold/components 7.8.1 → 8.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 +662 -7
- package/dist/index.d.ts +662 -7
- package/dist/index.js +306 -279
- package/dist/index.mjs +287 -260
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -914,7 +914,6 @@ import { jsx as jsx23 } from "react/jsx-runtime";
|
|
|
914
914
|
var Breakout = ({
|
|
915
915
|
height,
|
|
916
916
|
children,
|
|
917
|
-
orientation,
|
|
918
917
|
alignX = "left",
|
|
919
918
|
alignY = "center",
|
|
920
919
|
...props
|
|
@@ -2164,18 +2163,42 @@ var ActionMenu = ({
|
|
|
2164
2163
|
] });
|
|
2165
2164
|
};
|
|
2166
2165
|
|
|
2167
|
-
// src/
|
|
2168
|
-
import {
|
|
2169
|
-
|
|
2170
|
-
|
|
2166
|
+
// src/SectionMessage/SectionMessage.tsx
|
|
2167
|
+
import { cn as cn35, useClassNames as useClassNames36 } from "@marigold/system";
|
|
2168
|
+
|
|
2169
|
+
// src/SectionMessage/Context.tsx
|
|
2170
|
+
import { createContext as createContext6, useContext as useContext12 } from "react";
|
|
2171
|
+
var SectionMessageContext = createContext6({});
|
|
2172
|
+
var useSectionMessageContext = () => useContext12(SectionMessageContext);
|
|
2173
|
+
|
|
2174
|
+
// src/SectionMessage/SectionMessageContent.tsx
|
|
2175
|
+
import { cn as cn33 } from "@marigold/system";
|
|
2176
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2177
|
+
var SectionMessageContent = ({
|
|
2178
|
+
children
|
|
2179
|
+
}) => {
|
|
2180
|
+
const { classNames: classNames2 } = useSectionMessageContext();
|
|
2181
|
+
return /* @__PURE__ */ jsx62("div", { className: cn33("[grid-area:content]", classNames2.content), children });
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
// src/SectionMessage/SectionMessageTitle.tsx
|
|
2185
|
+
import { cn as cn34 } from "@marigold/system";
|
|
2186
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
2187
|
+
var SectionMessageTitle = ({ children }) => {
|
|
2188
|
+
const { classNames: classNames2 } = useSectionMessageContext();
|
|
2189
|
+
return /* @__PURE__ */ jsx63("div", { className: cn34("[grid-area:title]", classNames2.title), children });
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2192
|
+
// src/SectionMessage/SectionMessage.tsx
|
|
2193
|
+
import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2171
2194
|
var icons = {
|
|
2172
|
-
success: () => /* @__PURE__ */
|
|
2195
|
+
success: () => /* @__PURE__ */ jsx64(
|
|
2173
2196
|
"svg",
|
|
2174
2197
|
{
|
|
2175
2198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2176
2199
|
viewBox: "0 0 24 24",
|
|
2177
2200
|
fill: "currentColor",
|
|
2178
|
-
children: /* @__PURE__ */
|
|
2201
|
+
children: /* @__PURE__ */ jsx64(
|
|
2179
2202
|
"path",
|
|
2180
2203
|
{
|
|
2181
2204
|
fillRule: "evenodd",
|
|
@@ -2185,13 +2208,13 @@ var icons = {
|
|
|
2185
2208
|
)
|
|
2186
2209
|
}
|
|
2187
2210
|
),
|
|
2188
|
-
info: () => /* @__PURE__ */
|
|
2211
|
+
info: () => /* @__PURE__ */ jsx64(
|
|
2189
2212
|
"svg",
|
|
2190
2213
|
{
|
|
2191
2214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2192
2215
|
viewBox: "0 0 24 24",
|
|
2193
2216
|
fill: "currentColor",
|
|
2194
|
-
children: /* @__PURE__ */
|
|
2217
|
+
children: /* @__PURE__ */ jsx64(
|
|
2195
2218
|
"path",
|
|
2196
2219
|
{
|
|
2197
2220
|
fillRule: "evenodd",
|
|
@@ -2201,13 +2224,13 @@ var icons = {
|
|
|
2201
2224
|
)
|
|
2202
2225
|
}
|
|
2203
2226
|
),
|
|
2204
|
-
warning: () => /* @__PURE__ */
|
|
2227
|
+
warning: () => /* @__PURE__ */ jsx64(
|
|
2205
2228
|
"svg",
|
|
2206
2229
|
{
|
|
2207
2230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2208
2231
|
viewBox: "0 0 24 24",
|
|
2209
2232
|
fill: "currentColor",
|
|
2210
|
-
children: /* @__PURE__ */
|
|
2233
|
+
children: /* @__PURE__ */ jsx64(
|
|
2211
2234
|
"path",
|
|
2212
2235
|
{
|
|
2213
2236
|
fillRule: "evenodd",
|
|
@@ -2217,13 +2240,13 @@ var icons = {
|
|
|
2217
2240
|
)
|
|
2218
2241
|
}
|
|
2219
2242
|
),
|
|
2220
|
-
error: () => /* @__PURE__ */
|
|
2243
|
+
error: () => /* @__PURE__ */ jsx64(
|
|
2221
2244
|
"svg",
|
|
2222
2245
|
{
|
|
2223
2246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2224
2247
|
viewBox: "0 0 24 24",
|
|
2225
2248
|
fill: "currentColor",
|
|
2226
|
-
children: /* @__PURE__ */
|
|
2249
|
+
children: /* @__PURE__ */ jsx64(
|
|
2227
2250
|
"path",
|
|
2228
2251
|
{
|
|
2229
2252
|
fillRule: "evenodd",
|
|
@@ -2234,37 +2257,42 @@ var icons = {
|
|
|
2234
2257
|
}
|
|
2235
2258
|
)
|
|
2236
2259
|
};
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2260
|
+
var SectionMessage = ({
|
|
2261
|
+
variant = "info",
|
|
2262
|
+
size,
|
|
2263
|
+
children,
|
|
2264
|
+
...props
|
|
2265
|
+
}) => {
|
|
2266
|
+
const classNames2 = useClassNames36({
|
|
2267
|
+
component: "SectionMessage",
|
|
2268
|
+
variant,
|
|
2269
|
+
size
|
|
2270
|
+
});
|
|
2271
|
+
const Icon4 = icons[variant];
|
|
2272
|
+
return /* @__PURE__ */ jsx64(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs24(
|
|
2273
|
+
"div",
|
|
2274
|
+
{
|
|
2275
|
+
role: variant === "error" ? "alert" : void 0,
|
|
2276
|
+
...props,
|
|
2277
|
+
className: cn35("grid auto-rows-min", classNames2.container),
|
|
2278
|
+
children: [
|
|
2279
|
+
/* @__PURE__ */ jsx64(
|
|
2280
|
+
"div",
|
|
2281
|
+
{
|
|
2282
|
+
className: cn35(
|
|
2283
|
+
"h-5 w-5 self-center [grid-area:icon]",
|
|
2284
|
+
classNames2.icon
|
|
2285
|
+
),
|
|
2286
|
+
children: /* @__PURE__ */ jsx64(Icon4, {})
|
|
2287
|
+
}
|
|
2247
2288
|
),
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
className: cn33(
|
|
2256
|
-
"col-start-2 row-start-1 self-center",
|
|
2257
|
-
classNames2.title
|
|
2258
|
-
),
|
|
2259
|
-
children: messageTitle
|
|
2260
|
-
}
|
|
2261
|
-
),
|
|
2262
|
-
/* @__PURE__ */ jsx62("div", { className: cn33("col-start-2", classNames2.content), children })
|
|
2263
|
-
]
|
|
2264
|
-
}
|
|
2265
|
-
);
|
|
2266
|
-
}
|
|
2267
|
-
);
|
|
2289
|
+
children
|
|
2290
|
+
]
|
|
2291
|
+
}
|
|
2292
|
+
) });
|
|
2293
|
+
};
|
|
2294
|
+
SectionMessage.Title = SectionMessageTitle;
|
|
2295
|
+
SectionMessage.Content = SectionMessageContent;
|
|
2268
2296
|
|
|
2269
2297
|
// src/Multiselect/Multiselect.tsx
|
|
2270
2298
|
import { Children as Children5, useState as useState2 } from "react";
|
|
@@ -2272,12 +2300,12 @@ import { useListData as useListData2 } from "@react-stately/data";
|
|
|
2272
2300
|
|
|
2273
2301
|
// src/TagGroup/Tag.tsx
|
|
2274
2302
|
import { Button as Button4, Tag } from "react-aria-components";
|
|
2275
|
-
import { cn as
|
|
2303
|
+
import { cn as cn36, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2276
2304
|
|
|
2277
2305
|
// src/TagGroup/TagGroup.tsx
|
|
2278
2306
|
import { TagGroup, TagList } from "react-aria-components";
|
|
2279
2307
|
import { useClassNames as useClassNames37 } from "@marigold/system";
|
|
2280
|
-
import { jsx as
|
|
2308
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2281
2309
|
var _TagGroup = ({
|
|
2282
2310
|
width,
|
|
2283
2311
|
items,
|
|
@@ -2288,7 +2316,7 @@ var _TagGroup = ({
|
|
|
2288
2316
|
...rest
|
|
2289
2317
|
}) => {
|
|
2290
2318
|
const classNames2 = useClassNames37({ component: "Tag", variant, size });
|
|
2291
|
-
return /* @__PURE__ */
|
|
2319
|
+
return /* @__PURE__ */ jsx65(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx65(
|
|
2292
2320
|
TagList,
|
|
2293
2321
|
{
|
|
2294
2322
|
items,
|
|
@@ -2300,25 +2328,25 @@ var _TagGroup = ({
|
|
|
2300
2328
|
};
|
|
2301
2329
|
|
|
2302
2330
|
// src/TagGroup/Tag.tsx
|
|
2303
|
-
import { Fragment as Fragment6, jsx as
|
|
2331
|
+
import { Fragment as Fragment6, jsx as jsx66, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2304
2332
|
var CloseButton2 = ({ className }) => {
|
|
2305
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx66(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx66("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx66("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" }) }) });
|
|
2306
2334
|
};
|
|
2307
2335
|
var _Tag = ({ variant, size, children, ...props }) => {
|
|
2308
2336
|
let textValue = typeof children === "string" ? children : void 0;
|
|
2309
2337
|
const classNames2 = useClassNames38({ component: "Tag", variant, size });
|
|
2310
|
-
return /* @__PURE__ */
|
|
2338
|
+
return /* @__PURE__ */ jsx66(
|
|
2311
2339
|
Tag,
|
|
2312
2340
|
{
|
|
2313
2341
|
textValue,
|
|
2314
2342
|
...props,
|
|
2315
|
-
className:
|
|
2343
|
+
className: cn36("data-[selection-mode]:cursor-pointer", classNames2.tag),
|
|
2316
2344
|
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
2317
2345
|
children,
|
|
2318
|
-
allowsRemoving && /* @__PURE__ */
|
|
2346
|
+
allowsRemoving && /* @__PURE__ */ jsx66(
|
|
2319
2347
|
CloseButton2,
|
|
2320
2348
|
{
|
|
2321
|
-
className:
|
|
2349
|
+
className: cn36("flex items-center", classNames2.closeButton)
|
|
2322
2350
|
}
|
|
2323
2351
|
)
|
|
2324
2352
|
] })
|
|
@@ -2328,7 +2356,7 @@ var _Tag = ({ variant, size, children, ...props }) => {
|
|
|
2328
2356
|
_Tag.Group = _TagGroup;
|
|
2329
2357
|
|
|
2330
2358
|
// src/Multiselect/Multiselect.tsx
|
|
2331
|
-
import { jsx as
|
|
2359
|
+
import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2332
2360
|
var Item2 = (_) => null;
|
|
2333
2361
|
var Multiselect = ({
|
|
2334
2362
|
label,
|
|
@@ -2367,17 +2395,17 @@ var Multiselect = ({
|
|
|
2367
2395
|
input.focus();
|
|
2368
2396
|
};
|
|
2369
2397
|
return /* @__PURE__ */ jsxs26("div", { className: "flex flex-wrap gap-1", children: [
|
|
2370
|
-
/* @__PURE__ */
|
|
2398
|
+
/* @__PURE__ */ jsx67(
|
|
2371
2399
|
_Tag.Group,
|
|
2372
2400
|
{
|
|
2373
2401
|
items: selected,
|
|
2374
2402
|
allowsRemoving: true,
|
|
2375
2403
|
onRemove: setUnselected,
|
|
2376
2404
|
renderEmptyState: () => null,
|
|
2377
|
-
children: (item) => /* @__PURE__ */
|
|
2405
|
+
children: (item) => /* @__PURE__ */ jsx67(_Tag, { id: item.id, children: item.children }, item.id)
|
|
2378
2406
|
}
|
|
2379
2407
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2408
|
+
/* @__PURE__ */ jsx67(
|
|
2381
2409
|
_ComboBox,
|
|
2382
2410
|
{
|
|
2383
2411
|
value,
|
|
@@ -2387,7 +2415,7 @@ var Multiselect = ({
|
|
|
2387
2415
|
disabled: unselected.length === 0,
|
|
2388
2416
|
placeholder: unselected.length === 0 ? "All items selected" : "",
|
|
2389
2417
|
...props,
|
|
2390
|
-
children: unselected.map((item) => /* @__PURE__ */
|
|
2418
|
+
children: unselected.map((item) => /* @__PURE__ */ jsx67(_ComboBox.Item, { id: item.id, children: item.children }, item.id))
|
|
2391
2419
|
}
|
|
2392
2420
|
)
|
|
2393
2421
|
] });
|
|
@@ -2395,15 +2423,15 @@ var Multiselect = ({
|
|
|
2395
2423
|
Multiselect.Item = Item2;
|
|
2396
2424
|
|
|
2397
2425
|
// src/NumberField/NumberField.tsx
|
|
2398
|
-
import { forwardRef as
|
|
2426
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
2399
2427
|
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2400
|
-
import { cn as
|
|
2428
|
+
import { cn as cn38, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2401
2429
|
|
|
2402
2430
|
// src/NumberField/StepButton.tsx
|
|
2403
2431
|
import { Button as Button5 } from "react-aria-components";
|
|
2404
|
-
import { cn as
|
|
2405
|
-
import { jsx as
|
|
2406
|
-
var Plus = () => /* @__PURE__ */
|
|
2432
|
+
import { cn as cn37 } from "@marigold/system";
|
|
2433
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
2434
|
+
var Plus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx68(
|
|
2407
2435
|
"path",
|
|
2408
2436
|
{
|
|
2409
2437
|
fillRule: "evenodd",
|
|
@@ -2411,7 +2439,7 @@ var Plus = () => /* @__PURE__ */ jsx66("svg", { width: 16, height: 16, viewBox:
|
|
|
2411
2439
|
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"
|
|
2412
2440
|
}
|
|
2413
2441
|
) });
|
|
2414
|
-
var Minus = () => /* @__PURE__ */
|
|
2442
|
+
var Minus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx68(
|
|
2415
2443
|
"path",
|
|
2416
2444
|
{
|
|
2417
2445
|
fillRule: "evenodd",
|
|
@@ -2421,10 +2449,10 @@ var Minus = () => /* @__PURE__ */ jsx66("svg", { width: 16, height: 16, viewBox:
|
|
|
2421
2449
|
) });
|
|
2422
2450
|
var _StepButton = ({ direction, className, ...props }) => {
|
|
2423
2451
|
const Icon4 = direction === "up" ? Plus : Minus;
|
|
2424
|
-
return /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ jsx68(
|
|
2425
2453
|
Button5,
|
|
2426
2454
|
{
|
|
2427
|
-
className:
|
|
2455
|
+
className: cn37(
|
|
2428
2456
|
[
|
|
2429
2457
|
"flex items-center justify-center",
|
|
2430
2458
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2432,14 +2460,14 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2432
2460
|
className
|
|
2433
2461
|
),
|
|
2434
2462
|
...props,
|
|
2435
|
-
children: /* @__PURE__ */
|
|
2463
|
+
children: /* @__PURE__ */ jsx68(Icon4, {})
|
|
2436
2464
|
}
|
|
2437
2465
|
);
|
|
2438
2466
|
};
|
|
2439
2467
|
|
|
2440
2468
|
// src/NumberField/NumberField.tsx
|
|
2441
|
-
import { jsx as
|
|
2442
|
-
var _NumberField =
|
|
2469
|
+
import { jsx as jsx69, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2470
|
+
var _NumberField = forwardRef15(
|
|
2443
2471
|
({
|
|
2444
2472
|
variant,
|
|
2445
2473
|
size,
|
|
@@ -2463,8 +2491,8 @@ var _NumberField = forwardRef16(
|
|
|
2463
2491
|
...rest
|
|
2464
2492
|
};
|
|
2465
2493
|
const showStepper = !hideStepper;
|
|
2466
|
-
return /* @__PURE__ */
|
|
2467
|
-
showStepper && /* @__PURE__ */
|
|
2494
|
+
return /* @__PURE__ */ jsx69(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className: cn38("flex items-stretch", classNames2.group), children: [
|
|
2495
|
+
showStepper && /* @__PURE__ */ jsx69(
|
|
2468
2496
|
_StepButton,
|
|
2469
2497
|
{
|
|
2470
2498
|
className: classNames2.stepper,
|
|
@@ -2472,7 +2500,7 @@ var _NumberField = forwardRef16(
|
|
|
2472
2500
|
slot: "decrement"
|
|
2473
2501
|
}
|
|
2474
2502
|
),
|
|
2475
|
-
/* @__PURE__ */
|
|
2503
|
+
/* @__PURE__ */ jsx69("div", { className: "flex-1", children: /* @__PURE__ */ jsx69(
|
|
2476
2504
|
_Input,
|
|
2477
2505
|
{
|
|
2478
2506
|
ref,
|
|
@@ -2481,7 +2509,7 @@ var _NumberField = forwardRef16(
|
|
|
2481
2509
|
className: classNames2.input
|
|
2482
2510
|
}
|
|
2483
2511
|
) }),
|
|
2484
|
-
showStepper && /* @__PURE__ */
|
|
2512
|
+
showStepper && /* @__PURE__ */ jsx69(
|
|
2485
2513
|
_StepButton,
|
|
2486
2514
|
{
|
|
2487
2515
|
className: classNames2.stepper,
|
|
@@ -2495,22 +2523,22 @@ var _NumberField = forwardRef16(
|
|
|
2495
2523
|
|
|
2496
2524
|
// src/Radio/Radio.tsx
|
|
2497
2525
|
import {
|
|
2498
|
-
forwardRef as
|
|
2526
|
+
forwardRef as forwardRef16
|
|
2499
2527
|
} from "react";
|
|
2500
2528
|
import { Radio } from "react-aria-components";
|
|
2501
|
-
import { cn as
|
|
2529
|
+
import { cn as cn40, useClassNames as useClassNames41 } from "@marigold/system";
|
|
2502
2530
|
|
|
2503
2531
|
// src/Radio/Context.ts
|
|
2504
|
-
import { createContext as
|
|
2505
|
-
var RadioGroupContext =
|
|
2532
|
+
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
2533
|
+
var RadioGroupContext = createContext7(
|
|
2506
2534
|
null
|
|
2507
2535
|
);
|
|
2508
|
-
var useRadioGroupContext = () =>
|
|
2536
|
+
var useRadioGroupContext = () => useContext13(RadioGroupContext);
|
|
2509
2537
|
|
|
2510
2538
|
// src/Radio/RadioGroup.tsx
|
|
2511
2539
|
import { RadioGroup } from "react-aria-components";
|
|
2512
|
-
import { cn as
|
|
2513
|
-
import { jsx as
|
|
2540
|
+
import { cn as cn39, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2541
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2514
2542
|
var _RadioGroup = ({
|
|
2515
2543
|
variant,
|
|
2516
2544
|
size,
|
|
@@ -2534,7 +2562,7 @@ var _RadioGroup = ({
|
|
|
2534
2562
|
isInvalid: error,
|
|
2535
2563
|
...rest
|
|
2536
2564
|
};
|
|
2537
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsx70(
|
|
2538
2566
|
FieldBase,
|
|
2539
2567
|
{
|
|
2540
2568
|
as: RadioGroup,
|
|
@@ -2545,18 +2573,18 @@ var _RadioGroup = ({
|
|
|
2545
2573
|
variant,
|
|
2546
2574
|
size,
|
|
2547
2575
|
...props,
|
|
2548
|
-
children: /* @__PURE__ */
|
|
2576
|
+
children: /* @__PURE__ */ jsx70(
|
|
2549
2577
|
"div",
|
|
2550
2578
|
{
|
|
2551
2579
|
role: "presentation",
|
|
2552
2580
|
"data-testid": "group",
|
|
2553
2581
|
"data-orientation": orientation,
|
|
2554
|
-
className:
|
|
2582
|
+
className: cn39(
|
|
2555
2583
|
classNames2.group,
|
|
2556
2584
|
"flex items-start",
|
|
2557
2585
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
2558
2586
|
),
|
|
2559
|
-
children: /* @__PURE__ */
|
|
2587
|
+
children: /* @__PURE__ */ jsx70(RadioGroupContext.Provider, { value: { width, variant, size }, children })
|
|
2560
2588
|
}
|
|
2561
2589
|
)
|
|
2562
2590
|
}
|
|
@@ -2564,21 +2592,21 @@ var _RadioGroup = ({
|
|
|
2564
2592
|
};
|
|
2565
2593
|
|
|
2566
2594
|
// src/Radio/Radio.tsx
|
|
2567
|
-
import { Fragment as Fragment7, jsx as
|
|
2568
|
-
var Dot = () => /* @__PURE__ */
|
|
2569
|
-
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */
|
|
2595
|
+
import { Fragment as Fragment7, jsx as jsx71, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2596
|
+
var Dot = () => /* @__PURE__ */ jsx71("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx71("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
|
|
2597
|
+
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx71(
|
|
2570
2598
|
"div",
|
|
2571
2599
|
{
|
|
2572
|
-
className:
|
|
2600
|
+
className: cn40(
|
|
2573
2601
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2574
2602
|
className
|
|
2575
2603
|
),
|
|
2576
2604
|
"aria-hidden": "true",
|
|
2577
2605
|
...props,
|
|
2578
|
-
children: checked ? /* @__PURE__ */
|
|
2606
|
+
children: checked ? /* @__PURE__ */ jsx71(Dot, {}) : null
|
|
2579
2607
|
}
|
|
2580
2608
|
);
|
|
2581
|
-
var _Radio =
|
|
2609
|
+
var _Radio = forwardRef16(
|
|
2582
2610
|
({ value, disabled, width, children, ...props }, ref) => {
|
|
2583
2611
|
const { variant, size, width: groupWidth } = useRadioGroupContext();
|
|
2584
2612
|
const classNames2 = useClassNames41({
|
|
@@ -2586,11 +2614,11 @@ var _Radio = forwardRef17(
|
|
|
2586
2614
|
variant: variant || props.variant,
|
|
2587
2615
|
size: size || props.size
|
|
2588
2616
|
});
|
|
2589
|
-
return /* @__PURE__ */
|
|
2617
|
+
return /* @__PURE__ */ jsx71(
|
|
2590
2618
|
Radio,
|
|
2591
2619
|
{
|
|
2592
2620
|
ref,
|
|
2593
|
-
className:
|
|
2621
|
+
className: cn40(
|
|
2594
2622
|
"group/radio",
|
|
2595
2623
|
"relative flex items-center gap-[1ch]",
|
|
2596
2624
|
width || groupWidth || "w-full",
|
|
@@ -2600,17 +2628,17 @@ var _Radio = forwardRef17(
|
|
|
2600
2628
|
isDisabled: disabled,
|
|
2601
2629
|
...props,
|
|
2602
2630
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
2603
|
-
/* @__PURE__ */
|
|
2631
|
+
/* @__PURE__ */ jsx71(
|
|
2604
2632
|
Icon3,
|
|
2605
2633
|
{
|
|
2606
2634
|
checked: isSelected,
|
|
2607
|
-
className:
|
|
2635
|
+
className: cn40(
|
|
2608
2636
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2609
2637
|
classNames2.radio
|
|
2610
2638
|
)
|
|
2611
2639
|
}
|
|
2612
2640
|
),
|
|
2613
|
-
/* @__PURE__ */
|
|
2641
|
+
/* @__PURE__ */ jsx71("div", { className: classNames2.label, children })
|
|
2614
2642
|
] })
|
|
2615
2643
|
}
|
|
2616
2644
|
);
|
|
@@ -2619,10 +2647,10 @@ var _Radio = forwardRef17(
|
|
|
2619
2647
|
_Radio.Group = _RadioGroup;
|
|
2620
2648
|
|
|
2621
2649
|
// src/SearchField/SearchField.tsx
|
|
2622
|
-
import { forwardRef as
|
|
2650
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
2623
2651
|
import { SearchField } from "react-aria-components";
|
|
2624
|
-
import { jsx as
|
|
2625
|
-
var _SearchField =
|
|
2652
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2653
|
+
var _SearchField = forwardRef17(
|
|
2626
2654
|
({ disabled, required, readOnly, error, action, ...rest }, ref) => {
|
|
2627
2655
|
const props = {
|
|
2628
2656
|
...rest,
|
|
@@ -2631,7 +2659,7 @@ var _SearchField = forwardRef18(
|
|
|
2631
2659
|
isReadOnly: readOnly,
|
|
2632
2660
|
isInvalid: error
|
|
2633
2661
|
};
|
|
2634
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ jsx72(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx72(
|
|
2635
2663
|
SearchInput,
|
|
2636
2664
|
{
|
|
2637
2665
|
ref,
|
|
@@ -2642,15 +2670,15 @@ var _SearchField = forwardRef18(
|
|
|
2642
2670
|
);
|
|
2643
2671
|
|
|
2644
2672
|
// src/Select/Select.tsx
|
|
2645
|
-
import { forwardRef as
|
|
2673
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
2646
2674
|
import {
|
|
2647
2675
|
Button as Button6,
|
|
2648
2676
|
Select,
|
|
2649
2677
|
SelectValue
|
|
2650
2678
|
} from "react-aria-components";
|
|
2651
|
-
import { cn as
|
|
2652
|
-
import { jsx as
|
|
2653
|
-
var _Select =
|
|
2679
|
+
import { cn as cn41, useClassNames as useClassNames42 } from "@marigold/system";
|
|
2680
|
+
import { jsx as jsx73, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2681
|
+
var _Select = forwardRef18(
|
|
2654
2682
|
({
|
|
2655
2683
|
disabled,
|
|
2656
2684
|
required,
|
|
@@ -2675,17 +2703,17 @@ var _Select = forwardRef19(
|
|
|
2675
2703
|
/* @__PURE__ */ jsxs29(
|
|
2676
2704
|
Button6,
|
|
2677
2705
|
{
|
|
2678
|
-
className:
|
|
2706
|
+
className: cn41(
|
|
2679
2707
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2680
2708
|
classNames2.select
|
|
2681
2709
|
),
|
|
2682
2710
|
children: [
|
|
2683
|
-
/* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ jsx73(SelectValue, {}),
|
|
2712
|
+
/* @__PURE__ */ jsx73(ChevronDown, { className: "size-4" })
|
|
2685
2713
|
]
|
|
2686
2714
|
}
|
|
2687
2715
|
),
|
|
2688
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsx73(_Popover, { children: /* @__PURE__ */ jsx73(_ListBox, { items, children: props.children }) })
|
|
2689
2717
|
] });
|
|
2690
2718
|
}
|
|
2691
2719
|
);
|
|
@@ -2694,36 +2722,36 @@ _Select.Section = _ListBox.Section;
|
|
|
2694
2722
|
|
|
2695
2723
|
// src/SelectList/SelectList.tsx
|
|
2696
2724
|
import {
|
|
2697
|
-
forwardRef as
|
|
2725
|
+
forwardRef as forwardRef20
|
|
2698
2726
|
} from "react";
|
|
2699
2727
|
import { GridList as SelectList } from "react-aria-components";
|
|
2700
|
-
import { cn as
|
|
2728
|
+
import { cn as cn43, useClassNames as useClassNames43 } from "@marigold/system";
|
|
2701
2729
|
|
|
2702
2730
|
// src/SelectList/Context.ts
|
|
2703
|
-
import { createContext as
|
|
2704
|
-
var SelectListContext =
|
|
2731
|
+
import { createContext as createContext8, useContext as useContext14 } from "react";
|
|
2732
|
+
var SelectListContext = createContext8(
|
|
2705
2733
|
{}
|
|
2706
2734
|
);
|
|
2707
|
-
var useSelectListContext = () =>
|
|
2735
|
+
var useSelectListContext = () => useContext14(SelectListContext);
|
|
2708
2736
|
|
|
2709
2737
|
// src/SelectList/SelectListItem.tsx
|
|
2710
|
-
import { forwardRef as
|
|
2738
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
2711
2739
|
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
2712
|
-
import { cn as
|
|
2713
|
-
import { Fragment as Fragment8, jsx as
|
|
2714
|
-
var _SelectListItem =
|
|
2740
|
+
import { cn as cn42 } from "@marigold/system";
|
|
2741
|
+
import { Fragment as Fragment8, jsx as jsx74, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2742
|
+
var _SelectListItem = forwardRef19(
|
|
2715
2743
|
({ children, ...props }, ref) => {
|
|
2716
2744
|
let textValue = typeof children === "string" ? children : void 0;
|
|
2717
2745
|
const { classNames: classNames2 } = useSelectListContext();
|
|
2718
|
-
return /* @__PURE__ */
|
|
2746
|
+
return /* @__PURE__ */ jsx74(
|
|
2719
2747
|
SelectListItem,
|
|
2720
2748
|
{
|
|
2721
2749
|
textValue,
|
|
2722
2750
|
...props,
|
|
2723
|
-
className:
|
|
2751
|
+
className: cn42("flex items-center", classNames2 == null ? void 0 : classNames2.option),
|
|
2724
2752
|
ref,
|
|
2725
2753
|
children: ({ selectionMode }) => /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
2726
|
-
selectionMode === "multiple" && /* @__PURE__ */
|
|
2754
|
+
selectionMode === "multiple" && /* @__PURE__ */ jsx74(FieldGroup, { children: /* @__PURE__ */ jsx74(_Checkbox, { slot: "selection" }) }),
|
|
2727
2755
|
children
|
|
2728
2756
|
] })
|
|
2729
2757
|
}
|
|
@@ -2732,20 +2760,20 @@ var _SelectListItem = forwardRef20(
|
|
|
2732
2760
|
);
|
|
2733
2761
|
|
|
2734
2762
|
// src/SelectList/SelectList.tsx
|
|
2735
|
-
import { jsx as
|
|
2736
|
-
var _SelectList =
|
|
2763
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
2764
|
+
var _SelectList = forwardRef20(
|
|
2737
2765
|
({ onChange, ...rest }, ref) => {
|
|
2738
2766
|
const classNames2 = useClassNames43({ component: "ListBox" });
|
|
2739
2767
|
const props = {
|
|
2740
2768
|
onSelectionChange: onChange,
|
|
2741
2769
|
...rest
|
|
2742
2770
|
};
|
|
2743
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx75(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx75("div", { className: classNames2.container, children: /* @__PURE__ */ jsx75(
|
|
2744
2772
|
SelectList,
|
|
2745
2773
|
{
|
|
2746
2774
|
...props,
|
|
2747
2775
|
ref,
|
|
2748
|
-
className:
|
|
2776
|
+
className: cn43(
|
|
2749
2777
|
"overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2750
2778
|
classNames2.list
|
|
2751
2779
|
),
|
|
@@ -2757,25 +2785,25 @@ var _SelectList = forwardRef21(
|
|
|
2757
2785
|
_SelectList.Item = _SelectListItem;
|
|
2758
2786
|
|
|
2759
2787
|
// src/Scrollable/Scrollable.tsx
|
|
2760
|
-
import { cn as
|
|
2761
|
-
import { jsx as
|
|
2788
|
+
import { cn as cn44, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2789
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
2762
2790
|
var Scrollable = ({
|
|
2763
2791
|
children,
|
|
2764
2792
|
width = "full",
|
|
2765
2793
|
height,
|
|
2766
2794
|
...props
|
|
2767
|
-
}) => /* @__PURE__ */
|
|
2795
|
+
}) => /* @__PURE__ */ jsx76(
|
|
2768
2796
|
"div",
|
|
2769
2797
|
{
|
|
2770
2798
|
...props,
|
|
2771
|
-
className:
|
|
2799
|
+
className: cn44(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2772
2800
|
style: createVar10({ height }),
|
|
2773
2801
|
children
|
|
2774
2802
|
}
|
|
2775
2803
|
);
|
|
2776
2804
|
|
|
2777
2805
|
// src/Slider/Slider.tsx
|
|
2778
|
-
import { forwardRef as
|
|
2806
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
2779
2807
|
import {
|
|
2780
2808
|
Slider,
|
|
2781
2809
|
SliderOutput,
|
|
@@ -2783,12 +2811,12 @@ import {
|
|
|
2783
2811
|
SliderTrack
|
|
2784
2812
|
} from "react-aria-components";
|
|
2785
2813
|
import {
|
|
2786
|
-
cn as
|
|
2814
|
+
cn as cn45,
|
|
2787
2815
|
width as twWidth3,
|
|
2788
2816
|
useClassNames as useClassNames44
|
|
2789
2817
|
} from "@marigold/system";
|
|
2790
|
-
import { jsx as
|
|
2791
|
-
var _Slider =
|
|
2818
|
+
import { jsx as jsx77, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2819
|
+
var _Slider = forwardRef21(
|
|
2792
2820
|
({
|
|
2793
2821
|
thumbLabels,
|
|
2794
2822
|
variant,
|
|
@@ -2809,7 +2837,7 @@ var _Slider = forwardRef22(
|
|
|
2809
2837
|
return /* @__PURE__ */ jsxs31(
|
|
2810
2838
|
Slider,
|
|
2811
2839
|
{
|
|
2812
|
-
className:
|
|
2840
|
+
className: cn45(
|
|
2813
2841
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2814
2842
|
classNames2.container,
|
|
2815
2843
|
twWidth3[width]
|
|
@@ -2817,16 +2845,16 @@ var _Slider = forwardRef22(
|
|
|
2817
2845
|
ref,
|
|
2818
2846
|
...props,
|
|
2819
2847
|
children: [
|
|
2820
|
-
/* @__PURE__ */
|
|
2821
|
-
/* @__PURE__ */
|
|
2822
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx77(_Label, { children: props.children }),
|
|
2849
|
+
/* @__PURE__ */ jsx77(SliderOutput, { className: cn45("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2850
|
+
/* @__PURE__ */ jsx77(
|
|
2823
2851
|
SliderTrack,
|
|
2824
2852
|
{
|
|
2825
|
-
className:
|
|
2826
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2853
|
+
className: cn45("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2854
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx77(
|
|
2827
2855
|
SliderThumb,
|
|
2828
2856
|
{
|
|
2829
|
-
className:
|
|
2857
|
+
className: cn45("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2830
2858
|
index: i,
|
|
2831
2859
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2832
2860
|
},
|
|
@@ -2841,30 +2869,29 @@ var _Slider = forwardRef22(
|
|
|
2841
2869
|
);
|
|
2842
2870
|
|
|
2843
2871
|
// src/Split/Split.tsx
|
|
2844
|
-
import { jsx as
|
|
2845
|
-
var Split = (props) => /* @__PURE__ */
|
|
2872
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
2873
|
+
var Split = (props) => /* @__PURE__ */ jsx78("div", { ...props, role: "separator", className: "grow" });
|
|
2846
2874
|
|
|
2847
2875
|
// src/Stack/Stack.tsx
|
|
2848
2876
|
import {
|
|
2849
2877
|
alignment as alignment3,
|
|
2850
|
-
cn as
|
|
2878
|
+
cn as cn46,
|
|
2851
2879
|
gapSpace as gapSpace7
|
|
2852
2880
|
} from "@marigold/system";
|
|
2853
|
-
import { jsx as
|
|
2881
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
2854
2882
|
var Stack = ({
|
|
2855
2883
|
children,
|
|
2856
2884
|
space = 0,
|
|
2857
2885
|
stretch = false,
|
|
2858
|
-
orientation,
|
|
2859
2886
|
alignX,
|
|
2860
2887
|
alignY,
|
|
2861
2888
|
...props
|
|
2862
2889
|
}) => {
|
|
2863
2890
|
var _a, _b, _c, _d;
|
|
2864
|
-
return /* @__PURE__ */
|
|
2891
|
+
return /* @__PURE__ */ jsx79(
|
|
2865
2892
|
"div",
|
|
2866
2893
|
{
|
|
2867
|
-
className:
|
|
2894
|
+
className: cn46(
|
|
2868
2895
|
"flex flex-col",
|
|
2869
2896
|
gapSpace7[space],
|
|
2870
2897
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2878,15 +2905,15 @@ var Stack = ({
|
|
|
2878
2905
|
};
|
|
2879
2906
|
|
|
2880
2907
|
// src/Switch/Switch.tsx
|
|
2881
|
-
import { forwardRef as
|
|
2908
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
2882
2909
|
import { Switch } from "react-aria-components";
|
|
2883
2910
|
import {
|
|
2884
|
-
cn as
|
|
2911
|
+
cn as cn47,
|
|
2885
2912
|
width as twWidth4,
|
|
2886
2913
|
useClassNames as useClassNames45
|
|
2887
2914
|
} from "@marigold/system";
|
|
2888
|
-
import { jsx as
|
|
2889
|
-
var _Switch =
|
|
2915
|
+
import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2916
|
+
var _Switch = forwardRef22(
|
|
2890
2917
|
({
|
|
2891
2918
|
variant,
|
|
2892
2919
|
size,
|
|
@@ -2909,25 +2936,25 @@ var _Switch = forwardRef23(
|
|
|
2909
2936
|
{
|
|
2910
2937
|
...props,
|
|
2911
2938
|
ref,
|
|
2912
|
-
className:
|
|
2939
|
+
className: cn47(
|
|
2913
2940
|
twWidth4[width],
|
|
2914
2941
|
"group/switch",
|
|
2915
2942
|
"flex items-center gap-[1ch]",
|
|
2916
2943
|
classNames2.container
|
|
2917
2944
|
),
|
|
2918
2945
|
children: [
|
|
2919
|
-
/* @__PURE__ */
|
|
2920
|
-
/* @__PURE__ */
|
|
2946
|
+
/* @__PURE__ */ jsx80(_Label, { elementType: "span", children }),
|
|
2947
|
+
/* @__PURE__ */ jsx80("div", { className: "relative", children: /* @__PURE__ */ jsx80(
|
|
2921
2948
|
"div",
|
|
2922
2949
|
{
|
|
2923
|
-
className:
|
|
2950
|
+
className: cn47(
|
|
2924
2951
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2925
2952
|
classNames2.track
|
|
2926
2953
|
),
|
|
2927
|
-
children: /* @__PURE__ */
|
|
2954
|
+
children: /* @__PURE__ */ jsx80(
|
|
2928
2955
|
"div",
|
|
2929
2956
|
{
|
|
2930
|
-
className:
|
|
2957
|
+
className: cn47(
|
|
2931
2958
|
"h-[22px] w-[22px]",
|
|
2932
2959
|
"cubic-bezier(.7,0,.3,1)",
|
|
2933
2960
|
"absolute left-0 top-px",
|
|
@@ -2956,19 +2983,19 @@ import {
|
|
|
2956
2983
|
Row,
|
|
2957
2984
|
useTableState
|
|
2958
2985
|
} from "@react-stately/table";
|
|
2959
|
-
import { cn as
|
|
2986
|
+
import { cn as cn53, useClassNames as useClassNames47 } from "@marigold/system";
|
|
2960
2987
|
|
|
2961
2988
|
// src/Table/Context.tsx
|
|
2962
|
-
import { createContext as
|
|
2963
|
-
var TableContext =
|
|
2964
|
-
var useTableContext = () =>
|
|
2989
|
+
import { createContext as createContext9, useContext as useContext15 } from "react";
|
|
2990
|
+
var TableContext = createContext9({});
|
|
2991
|
+
var useTableContext = () => useContext15(TableContext);
|
|
2965
2992
|
|
|
2966
2993
|
// src/Table/TableBody.tsx
|
|
2967
2994
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2968
|
-
import { jsx as
|
|
2995
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
2969
2996
|
var TableBody = ({ children }) => {
|
|
2970
2997
|
const { rowGroupProps } = useTableRowGroup();
|
|
2971
|
-
return /* @__PURE__ */
|
|
2998
|
+
return /* @__PURE__ */ jsx81("tbody", { ...rowGroupProps, children });
|
|
2972
2999
|
};
|
|
2973
3000
|
|
|
2974
3001
|
// src/Table/TableCell.tsx
|
|
@@ -2976,8 +3003,8 @@ import { useRef as useRef4 } from "react";
|
|
|
2976
3003
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2977
3004
|
import { useTableCell } from "@react-aria/table";
|
|
2978
3005
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2979
|
-
import { cn as
|
|
2980
|
-
import { jsx as
|
|
3006
|
+
import { cn as cn48, useStateProps as useStateProps2 } from "@marigold/system";
|
|
3007
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
2981
3008
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2982
3009
|
const ref = useRef4(null);
|
|
2983
3010
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
@@ -3000,11 +3027,11 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
3000
3027
|
};
|
|
3001
3028
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
3002
3029
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
3003
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ jsx82(
|
|
3004
3031
|
"td",
|
|
3005
3032
|
{
|
|
3006
3033
|
ref,
|
|
3007
|
-
className:
|
|
3034
|
+
className: cn48(classNames2 == null ? void 0 : classNames2.cell),
|
|
3008
3035
|
...mergeProps3(cellProps, focusProps),
|
|
3009
3036
|
...stateProps,
|
|
3010
3037
|
align,
|
|
@@ -3018,7 +3045,7 @@ import { useRef as useRef5 } from "react";
|
|
|
3018
3045
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
3019
3046
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
3020
3047
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
3021
|
-
import { cn as
|
|
3048
|
+
import { cn as cn49, useStateProps as useStateProps3 } from "@marigold/system";
|
|
3022
3049
|
|
|
3023
3050
|
// src/Table/utils.ts
|
|
3024
3051
|
var mapCheckboxProps = ({
|
|
@@ -3041,7 +3068,7 @@ var mapCheckboxProps = ({
|
|
|
3041
3068
|
};
|
|
3042
3069
|
|
|
3043
3070
|
// src/Table/TableCheckboxCell.tsx
|
|
3044
|
-
import { jsx as
|
|
3071
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3045
3072
|
var TableCheckboxCell = ({ cell }) => {
|
|
3046
3073
|
const ref = useRef5(null);
|
|
3047
3074
|
const { state, classNames: classNames2 } = useTableContext();
|
|
@@ -3058,14 +3085,14 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
3058
3085
|
);
|
|
3059
3086
|
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
3060
3087
|
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
3061
|
-
return /* @__PURE__ */
|
|
3088
|
+
return /* @__PURE__ */ jsx83(
|
|
3062
3089
|
"td",
|
|
3063
3090
|
{
|
|
3064
3091
|
ref,
|
|
3065
|
-
className:
|
|
3092
|
+
className: cn49("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
3066
3093
|
...mergeProps4(gridCellProps, focusProps),
|
|
3067
3094
|
...stateProps,
|
|
3068
|
-
children: /* @__PURE__ */
|
|
3095
|
+
children: /* @__PURE__ */ jsx83(_Checkbox, { ...checkboxProps })
|
|
3069
3096
|
}
|
|
3070
3097
|
);
|
|
3071
3098
|
};
|
|
@@ -3077,9 +3104,9 @@ import { useHover } from "@react-aria/interactions";
|
|
|
3077
3104
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
3078
3105
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
3079
3106
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
3080
|
-
import { cn as
|
|
3107
|
+
import { cn as cn50, useStateProps as useStateProps4 } from "@marigold/system";
|
|
3081
3108
|
import { width as twWidth5 } from "@marigold/system";
|
|
3082
|
-
import { jsx as
|
|
3109
|
+
import { jsx as jsx84, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3083
3110
|
var TableColumnHeader = ({
|
|
3084
3111
|
column,
|
|
3085
3112
|
width = "auto",
|
|
@@ -3106,13 +3133,13 @@ var TableColumnHeader = ({
|
|
|
3106
3133
|
{
|
|
3107
3134
|
colSpan: column.colspan,
|
|
3108
3135
|
ref,
|
|
3109
|
-
className:
|
|
3136
|
+
className: cn50("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
3110
3137
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
3111
3138
|
...stateProps,
|
|
3112
3139
|
align,
|
|
3113
3140
|
children: [
|
|
3114
3141
|
column.rendered,
|
|
3115
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
3142
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx84(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx84(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx84(SortDown, { className: "inline-block" }))
|
|
3116
3143
|
]
|
|
3117
3144
|
}
|
|
3118
3145
|
);
|
|
@@ -3120,10 +3147,10 @@ var TableColumnHeader = ({
|
|
|
3120
3147
|
|
|
3121
3148
|
// src/Table/TableHeader.tsx
|
|
3122
3149
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
3123
|
-
import { jsx as
|
|
3150
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
3124
3151
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
3125
3152
|
const { rowGroupProps } = useTableRowGroup2();
|
|
3126
|
-
return /* @__PURE__ */
|
|
3153
|
+
return /* @__PURE__ */ jsx85(
|
|
3127
3154
|
"thead",
|
|
3128
3155
|
{
|
|
3129
3156
|
...rowGroupProps,
|
|
@@ -3136,12 +3163,12 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
3136
3163
|
// src/Table/TableHeaderRow.tsx
|
|
3137
3164
|
import { useRef as useRef7 } from "react";
|
|
3138
3165
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
3139
|
-
import { jsx as
|
|
3166
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
3140
3167
|
var TableHeaderRow = ({ item, children }) => {
|
|
3141
3168
|
const { state } = useTableContext();
|
|
3142
3169
|
const ref = useRef7(null);
|
|
3143
3170
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
3144
|
-
return /* @__PURE__ */
|
|
3171
|
+
return /* @__PURE__ */ jsx86("tr", { ...rowProps, ref, children });
|
|
3145
3172
|
};
|
|
3146
3173
|
|
|
3147
3174
|
// src/Table/TableRow.tsx
|
|
@@ -3150,8 +3177,8 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
3150
3177
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
3151
3178
|
import { useTableRow } from "@react-aria/table";
|
|
3152
3179
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
3153
|
-
import { cn as
|
|
3154
|
-
import { jsx as
|
|
3180
|
+
import { cn as cn51, useClassNames as useClassNames46, useStateProps as useStateProps5 } from "@marigold/system";
|
|
3181
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3155
3182
|
var TableRow = ({ children, row }) => {
|
|
3156
3183
|
const ref = useRef8(null);
|
|
3157
3184
|
const { interactive, state, ...ctx } = useTableContext();
|
|
@@ -3181,11 +3208,11 @@ var TableRow = ({ children, row }) => {
|
|
|
3181
3208
|
focusVisible: isFocusVisible,
|
|
3182
3209
|
active: isPressed
|
|
3183
3210
|
});
|
|
3184
|
-
return /* @__PURE__ */
|
|
3211
|
+
return /* @__PURE__ */ jsx87(
|
|
3185
3212
|
"tr",
|
|
3186
3213
|
{
|
|
3187
3214
|
ref,
|
|
3188
|
-
className:
|
|
3215
|
+
className: cn51(
|
|
3189
3216
|
[
|
|
3190
3217
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
3191
3218
|
],
|
|
@@ -3208,11 +3235,11 @@ import {
|
|
|
3208
3235
|
} from "@react-aria/table";
|
|
3209
3236
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
3210
3237
|
import {
|
|
3211
|
-
cn as
|
|
3238
|
+
cn as cn52,
|
|
3212
3239
|
width as twWidth6,
|
|
3213
3240
|
useStateProps as useStateProps6
|
|
3214
3241
|
} from "@marigold/system";
|
|
3215
|
-
import { jsx as
|
|
3242
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3216
3243
|
var TableSelectAllCell = ({
|
|
3217
3244
|
column,
|
|
3218
3245
|
width = "auto",
|
|
@@ -3234,25 +3261,25 @@ var TableSelectAllCell = ({
|
|
|
3234
3261
|
hover: isHovered,
|
|
3235
3262
|
focusVisible: isFocusVisible
|
|
3236
3263
|
});
|
|
3237
|
-
return /* @__PURE__ */
|
|
3264
|
+
return /* @__PURE__ */ jsx88(
|
|
3238
3265
|
"th",
|
|
3239
3266
|
{
|
|
3240
3267
|
ref,
|
|
3241
|
-
className:
|
|
3268
|
+
className: cn52(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
3242
3269
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3243
3270
|
...stateProps,
|
|
3244
3271
|
align,
|
|
3245
|
-
children: /* @__PURE__ */
|
|
3272
|
+
children: /* @__PURE__ */ jsx88(_Checkbox, { ...checkboxProps })
|
|
3246
3273
|
}
|
|
3247
3274
|
);
|
|
3248
3275
|
};
|
|
3249
3276
|
|
|
3250
3277
|
// src/Table/Table.tsx
|
|
3251
|
-
import { jsx as
|
|
3278
|
+
import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3252
3279
|
var Table = ({
|
|
3253
3280
|
variant,
|
|
3254
3281
|
size,
|
|
3255
|
-
stretch,
|
|
3282
|
+
stretch = false,
|
|
3256
3283
|
selectionMode = "none",
|
|
3257
3284
|
disableKeyboardNavigation = false,
|
|
3258
3285
|
stickyHeader,
|
|
@@ -3276,7 +3303,7 @@ var Table = ({
|
|
|
3276
3303
|
size
|
|
3277
3304
|
});
|
|
3278
3305
|
const { collection } = state;
|
|
3279
|
-
return /* @__PURE__ */
|
|
3306
|
+
return /* @__PURE__ */ jsx89(
|
|
3280
3307
|
TableContext.Provider,
|
|
3281
3308
|
{
|
|
3282
3309
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
@@ -3284,7 +3311,7 @@ var Table = ({
|
|
|
3284
3311
|
"table",
|
|
3285
3312
|
{
|
|
3286
3313
|
ref: tableRef,
|
|
3287
|
-
className:
|
|
3314
|
+
className: cn53(
|
|
3288
3315
|
"group/table",
|
|
3289
3316
|
"border-collapse whitespace-nowrap",
|
|
3290
3317
|
stretch ? "table w-full" : "block",
|
|
@@ -3292,10 +3319,10 @@ var Table = ({
|
|
|
3292
3319
|
),
|
|
3293
3320
|
...gridProps,
|
|
3294
3321
|
children: [
|
|
3295
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ jsx89(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx89(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3296
3323
|
(column) => {
|
|
3297
3324
|
var _a, _b, _c, _d, _e;
|
|
3298
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3325
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx89(
|
|
3299
3326
|
TableSelectAllCell,
|
|
3300
3327
|
{
|
|
3301
3328
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3303,7 +3330,7 @@ var Table = ({
|
|
|
3303
3330
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3304
3331
|
},
|
|
3305
3332
|
column.key
|
|
3306
|
-
) : /* @__PURE__ */
|
|
3333
|
+
) : /* @__PURE__ */ jsx89(
|
|
3307
3334
|
TableColumnHeader,
|
|
3308
3335
|
{
|
|
3309
3336
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3316,10 +3343,10 @@ var Table = ({
|
|
|
3316
3343
|
) }, headerRow.key)) }),
|
|
3317
3344
|
/* @__PURE__ */ jsxs34(TableBody, { children: [
|
|
3318
3345
|
...collection.rows.map(
|
|
3319
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3346
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx89(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3320
3347
|
var _a, _b;
|
|
3321
3348
|
const currentColumn = collection.columns[index];
|
|
3322
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3349
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx89(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx89(
|
|
3323
3350
|
TableCell,
|
|
3324
3351
|
{
|
|
3325
3352
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3344,7 +3371,7 @@ Table.Row = Row;
|
|
|
3344
3371
|
|
|
3345
3372
|
// src/Text/Text.tsx
|
|
3346
3373
|
import {
|
|
3347
|
-
cn as
|
|
3374
|
+
cn as cn54,
|
|
3348
3375
|
createVar as createVar11,
|
|
3349
3376
|
cursorStyle,
|
|
3350
3377
|
fontWeight,
|
|
@@ -3355,7 +3382,7 @@ import {
|
|
|
3355
3382
|
useClassNames as useClassNames48,
|
|
3356
3383
|
useTheme as useTheme3
|
|
3357
3384
|
} from "@marigold/system";
|
|
3358
|
-
import { jsx as
|
|
3385
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3359
3386
|
var Text2 = ({
|
|
3360
3387
|
variant,
|
|
3361
3388
|
size,
|
|
@@ -3374,11 +3401,11 @@ var Text2 = ({
|
|
|
3374
3401
|
variant,
|
|
3375
3402
|
size
|
|
3376
3403
|
});
|
|
3377
|
-
return /* @__PURE__ */
|
|
3404
|
+
return /* @__PURE__ */ jsx90(
|
|
3378
3405
|
"p",
|
|
3379
3406
|
{
|
|
3380
3407
|
...props,
|
|
3381
|
-
className:
|
|
3408
|
+
className: cn54(
|
|
3382
3409
|
"text-[--color] outline-[--outline]",
|
|
3383
3410
|
classNames2,
|
|
3384
3411
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3401,11 +3428,11 @@ var Text2 = ({
|
|
|
3401
3428
|
};
|
|
3402
3429
|
|
|
3403
3430
|
// src/TextArea/TextArea.tsx
|
|
3404
|
-
import { forwardRef as
|
|
3431
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
3405
3432
|
import { TextArea, TextField } from "react-aria-components";
|
|
3406
3433
|
import { useClassNames as useClassNames49 } from "@marigold/system";
|
|
3407
|
-
import { jsx as
|
|
3408
|
-
var _TextArea =
|
|
3434
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
3435
|
+
var _TextArea = forwardRef23(
|
|
3409
3436
|
({
|
|
3410
3437
|
variant,
|
|
3411
3438
|
size,
|
|
@@ -3424,15 +3451,15 @@ var _TextArea = forwardRef24(
|
|
|
3424
3451
|
isRequired: required,
|
|
3425
3452
|
...rest
|
|
3426
3453
|
};
|
|
3427
|
-
return /* @__PURE__ */
|
|
3454
|
+
return /* @__PURE__ */ jsx91(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx91(TextArea, { className: classNames2, ref, rows }) });
|
|
3428
3455
|
}
|
|
3429
3456
|
);
|
|
3430
3457
|
|
|
3431
3458
|
// src/TextField/TextField.tsx
|
|
3432
|
-
import { forwardRef as
|
|
3459
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
3433
3460
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3434
|
-
import { jsx as
|
|
3435
|
-
var _TextField =
|
|
3461
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
3462
|
+
var _TextField = forwardRef24(
|
|
3436
3463
|
({
|
|
3437
3464
|
variant,
|
|
3438
3465
|
size,
|
|
@@ -3449,18 +3476,18 @@ var _TextField = forwardRef25(
|
|
|
3449
3476
|
isRequired: required,
|
|
3450
3477
|
...rest
|
|
3451
3478
|
};
|
|
3452
|
-
return /* @__PURE__ */
|
|
3479
|
+
return /* @__PURE__ */ jsx92(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx92(_Input, { ref }) });
|
|
3453
3480
|
}
|
|
3454
3481
|
);
|
|
3455
3482
|
|
|
3456
3483
|
// src/Tiles/Tiles.tsx
|
|
3457
|
-
import { cn as
|
|
3458
|
-
import { jsx as
|
|
3484
|
+
import { cn as cn55, createVar as createVar12, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3485
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3459
3486
|
var Tiles = ({
|
|
3460
3487
|
space = 0,
|
|
3461
3488
|
stretch = false,
|
|
3462
3489
|
equalHeight = false,
|
|
3463
|
-
tilesWidth,
|
|
3490
|
+
tilesWidth = "250px",
|
|
3464
3491
|
children,
|
|
3465
3492
|
...props
|
|
3466
3493
|
}) => {
|
|
@@ -3468,11 +3495,11 @@ var Tiles = ({
|
|
|
3468
3495
|
if (stretch) {
|
|
3469
3496
|
column = `minmax(${column}, 1fr)`;
|
|
3470
3497
|
}
|
|
3471
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ jsx93(
|
|
3472
3499
|
"div",
|
|
3473
3500
|
{
|
|
3474
3501
|
...props,
|
|
3475
|
-
className:
|
|
3502
|
+
className: cn55(
|
|
3476
3503
|
"grid",
|
|
3477
3504
|
gapSpace8[space],
|
|
3478
3505
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3486,11 +3513,11 @@ var Tiles = ({
|
|
|
3486
3513
|
|
|
3487
3514
|
// src/Tooltip/Tooltip.tsx
|
|
3488
3515
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3489
|
-
import { cn as
|
|
3516
|
+
import { cn as cn56, useClassNames as useClassNames50 } from "@marigold/system";
|
|
3490
3517
|
|
|
3491
3518
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3492
3519
|
import { TooltipTrigger } from "react-aria-components";
|
|
3493
|
-
import { jsx as
|
|
3520
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
3494
3521
|
var _TooltipTrigger = ({
|
|
3495
3522
|
delay = 1e3,
|
|
3496
3523
|
children,
|
|
@@ -3504,11 +3531,11 @@ var _TooltipTrigger = ({
|
|
|
3504
3531
|
isOpen: open,
|
|
3505
3532
|
delay
|
|
3506
3533
|
};
|
|
3507
|
-
return /* @__PURE__ */
|
|
3534
|
+
return /* @__PURE__ */ jsx94(TooltipTrigger, { ...props, children });
|
|
3508
3535
|
};
|
|
3509
3536
|
|
|
3510
3537
|
// src/Tooltip/Tooltip.tsx
|
|
3511
|
-
import { jsx as
|
|
3538
|
+
import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3512
3539
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3513
3540
|
const props = {
|
|
3514
3541
|
...rest,
|
|
@@ -3520,10 +3547,10 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
|
3520
3547
|
Tooltip,
|
|
3521
3548
|
{
|
|
3522
3549
|
...props,
|
|
3523
|
-
className:
|
|
3550
|
+
className: cn56("group/tooltip", classNames2.container),
|
|
3524
3551
|
UNSTABLE_portalContainer: portal,
|
|
3525
3552
|
children: [
|
|
3526
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ jsx95(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx95("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx95("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3527
3554
|
children
|
|
3528
3555
|
]
|
|
3529
3556
|
}
|
|
@@ -3535,10 +3562,10 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3535
3562
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3536
3563
|
|
|
3537
3564
|
// src/XLoader/XLoader.tsx
|
|
3538
|
-
import { forwardRef as
|
|
3565
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
3539
3566
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3540
|
-
import { jsx as
|
|
3541
|
-
var XLoader =
|
|
3567
|
+
import { jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3568
|
+
var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
|
|
3542
3569
|
SVG5,
|
|
3543
3570
|
{
|
|
3544
3571
|
id: "XLoader",
|
|
@@ -3548,13 +3575,13 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3548
3575
|
...props,
|
|
3549
3576
|
...ref,
|
|
3550
3577
|
children: [
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
/* @__PURE__ */
|
|
3578
|
+
/* @__PURE__ */ jsx96("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3579
|
+
/* @__PURE__ */ jsx96(
|
|
3553
3580
|
"path",
|
|
3554
3581
|
{
|
|
3555
3582
|
id: "XMLID_5_",
|
|
3556
3583
|
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",
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3584
|
+
children: /* @__PURE__ */ jsx96(
|
|
3558
3585
|
"animate",
|
|
3559
3586
|
{
|
|
3560
3587
|
attributeName: "opacity",
|
|
@@ -3567,12 +3594,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3567
3594
|
)
|
|
3568
3595
|
}
|
|
3569
3596
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
3597
|
+
/* @__PURE__ */ jsx96(
|
|
3571
3598
|
"path",
|
|
3572
3599
|
{
|
|
3573
3600
|
id: "XMLID_18_",
|
|
3574
3601
|
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",
|
|
3575
|
-
children: /* @__PURE__ */
|
|
3602
|
+
children: /* @__PURE__ */ jsx96(
|
|
3576
3603
|
"animate",
|
|
3577
3604
|
{
|
|
3578
3605
|
attributeName: "opacity",
|
|
@@ -3585,12 +3612,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3585
3612
|
)
|
|
3586
3613
|
}
|
|
3587
3614
|
),
|
|
3588
|
-
/* @__PURE__ */
|
|
3615
|
+
/* @__PURE__ */ jsx96(
|
|
3589
3616
|
"path",
|
|
3590
3617
|
{
|
|
3591
3618
|
id: "XMLID_19_",
|
|
3592
3619
|
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",
|
|
3593
|
-
children: /* @__PURE__ */
|
|
3620
|
+
children: /* @__PURE__ */ jsx96(
|
|
3594
3621
|
"animate",
|
|
3595
3622
|
{
|
|
3596
3623
|
attributeName: "opacity",
|
|
@@ -3603,12 +3630,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3603
3630
|
)
|
|
3604
3631
|
}
|
|
3605
3632
|
),
|
|
3606
|
-
/* @__PURE__ */
|
|
3633
|
+
/* @__PURE__ */ jsx96(
|
|
3607
3634
|
"path",
|
|
3608
3635
|
{
|
|
3609
3636
|
id: "XMLID_20_",
|
|
3610
3637
|
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",
|
|
3611
|
-
children: /* @__PURE__ */
|
|
3638
|
+
children: /* @__PURE__ */ jsx96(
|
|
3612
3639
|
"animate",
|
|
3613
3640
|
{
|
|
3614
3641
|
attributeName: "opacity",
|
|
@@ -3621,12 +3648,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3621
3648
|
)
|
|
3622
3649
|
}
|
|
3623
3650
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3651
|
+
/* @__PURE__ */ jsx96(
|
|
3625
3652
|
"path",
|
|
3626
3653
|
{
|
|
3627
3654
|
id: "XMLID_21_",
|
|
3628
3655
|
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",
|
|
3629
|
-
children: /* @__PURE__ */
|
|
3656
|
+
children: /* @__PURE__ */ jsx96(
|
|
3630
3657
|
"animate",
|
|
3631
3658
|
{
|
|
3632
3659
|
attributeName: "opacity",
|
|
@@ -3639,12 +3666,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3639
3666
|
)
|
|
3640
3667
|
}
|
|
3641
3668
|
),
|
|
3642
|
-
/* @__PURE__ */
|
|
3669
|
+
/* @__PURE__ */ jsx96(
|
|
3643
3670
|
"path",
|
|
3644
3671
|
{
|
|
3645
3672
|
id: "XMLID_22_",
|
|
3646
3673
|
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",
|
|
3647
|
-
children: /* @__PURE__ */
|
|
3674
|
+
children: /* @__PURE__ */ jsx96(
|
|
3648
3675
|
"animate",
|
|
3649
3676
|
{
|
|
3650
3677
|
attributeName: "opacity",
|
|
@@ -3657,12 +3684,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3657
3684
|
)
|
|
3658
3685
|
}
|
|
3659
3686
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
3687
|
+
/* @__PURE__ */ jsx96(
|
|
3661
3688
|
"path",
|
|
3662
3689
|
{
|
|
3663
3690
|
id: "XMLID_23_",
|
|
3664
3691
|
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",
|
|
3665
|
-
children: /* @__PURE__ */
|
|
3692
|
+
children: /* @__PURE__ */ jsx96(
|
|
3666
3693
|
"animate",
|
|
3667
3694
|
{
|
|
3668
3695
|
attributeName: "opacity",
|
|
@@ -3675,12 +3702,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3675
3702
|
)
|
|
3676
3703
|
}
|
|
3677
3704
|
),
|
|
3678
|
-
/* @__PURE__ */
|
|
3705
|
+
/* @__PURE__ */ jsx96(
|
|
3679
3706
|
"path",
|
|
3680
3707
|
{
|
|
3681
3708
|
id: "XMLID_24_",
|
|
3682
3709
|
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",
|
|
3683
|
-
children: /* @__PURE__ */
|
|
3710
|
+
children: /* @__PURE__ */ jsx96(
|
|
3684
3711
|
"animate",
|
|
3685
3712
|
{
|
|
3686
3713
|
attributeName: "opacity",
|
|
@@ -3693,12 +3720,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3693
3720
|
)
|
|
3694
3721
|
}
|
|
3695
3722
|
),
|
|
3696
|
-
/* @__PURE__ */
|
|
3723
|
+
/* @__PURE__ */ jsx96(
|
|
3697
3724
|
"path",
|
|
3698
3725
|
{
|
|
3699
3726
|
id: "XMLID_25_",
|
|
3700
3727
|
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",
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3728
|
+
children: /* @__PURE__ */ jsx96(
|
|
3702
3729
|
"animate",
|
|
3703
3730
|
{
|
|
3704
3731
|
attributeName: "opacity",
|
|
@@ -3711,12 +3738,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3711
3738
|
)
|
|
3712
3739
|
}
|
|
3713
3740
|
),
|
|
3714
|
-
/* @__PURE__ */
|
|
3741
|
+
/* @__PURE__ */ jsx96(
|
|
3715
3742
|
"path",
|
|
3716
3743
|
{
|
|
3717
3744
|
id: "XMLID_26_",
|
|
3718
3745
|
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",
|
|
3719
|
-
children: /* @__PURE__ */
|
|
3746
|
+
children: /* @__PURE__ */ jsx96(
|
|
3720
3747
|
"animate",
|
|
3721
3748
|
{
|
|
3722
3749
|
attributeName: "opacity",
|
|
@@ -3729,12 +3756,12 @@ var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
|
3729
3756
|
)
|
|
3730
3757
|
}
|
|
3731
3758
|
),
|
|
3732
|
-
/* @__PURE__ */
|
|
3759
|
+
/* @__PURE__ */ jsx96(
|
|
3733
3760
|
"path",
|
|
3734
3761
|
{
|
|
3735
3762
|
id: "XMLID_27_",
|
|
3736
3763
|
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",
|
|
3737
|
-
children: /* @__PURE__ */
|
|
3764
|
+
children: /* @__PURE__ */ jsx96(
|
|
3738
3765
|
"animate",
|
|
3739
3766
|
{
|
|
3740
3767
|
attributeName: "opacity",
|
|
@@ -3756,21 +3783,21 @@ import { Tabs } from "react-aria-components";
|
|
|
3756
3783
|
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
3757
3784
|
|
|
3758
3785
|
// src/Tabs/Context.ts
|
|
3759
|
-
import { createContext as
|
|
3760
|
-
var TabContext =
|
|
3761
|
-
var useTabContext = () =>
|
|
3786
|
+
import { createContext as createContext10, useContext as useContext16 } from "react";
|
|
3787
|
+
var TabContext = createContext10({});
|
|
3788
|
+
var useTabContext = () => useContext16(TabContext);
|
|
3762
3789
|
|
|
3763
3790
|
// src/Tabs/Tab.tsx
|
|
3764
3791
|
import { Tab } from "react-aria-components";
|
|
3765
|
-
import { cn as
|
|
3766
|
-
import { jsx as
|
|
3792
|
+
import { cn as cn57 } from "@marigold/system";
|
|
3793
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
3767
3794
|
var _Tab = (props) => {
|
|
3768
3795
|
const { classNames: classNames2 } = useTabContext();
|
|
3769
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx97(
|
|
3770
3797
|
Tab,
|
|
3771
3798
|
{
|
|
3772
3799
|
...props,
|
|
3773
|
-
className:
|
|
3800
|
+
className: cn57(
|
|
3774
3801
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3775
3802
|
classNames2.tab
|
|
3776
3803
|
),
|
|
@@ -3781,15 +3808,15 @@ var _Tab = (props) => {
|
|
|
3781
3808
|
|
|
3782
3809
|
// src/Tabs/TabList.tsx
|
|
3783
3810
|
import { TabList } from "react-aria-components";
|
|
3784
|
-
import { cn as
|
|
3785
|
-
import { jsx as
|
|
3811
|
+
import { cn as cn58, gapSpace as gapSpace9 } from "@marigold/system";
|
|
3812
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
3786
3813
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3787
3814
|
const { classNames: classNames2 } = useTabContext();
|
|
3788
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsx98(
|
|
3789
3816
|
TabList,
|
|
3790
3817
|
{
|
|
3791
3818
|
...props,
|
|
3792
|
-
className:
|
|
3819
|
+
className: cn58("flex", gapSpace9[space], classNames2.tabsList),
|
|
3793
3820
|
children: props.children
|
|
3794
3821
|
}
|
|
3795
3822
|
);
|
|
@@ -3797,14 +3824,14 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3797
3824
|
|
|
3798
3825
|
// src/Tabs/TabPanel.tsx
|
|
3799
3826
|
import { TabPanel } from "react-aria-components";
|
|
3800
|
-
import { jsx as
|
|
3827
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
3801
3828
|
var _TabPanel = (props) => {
|
|
3802
3829
|
const { classNames: classNames2 } = useTabContext();
|
|
3803
|
-
return /* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ jsx99(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3804
3831
|
};
|
|
3805
3832
|
|
|
3806
3833
|
// src/Tabs/Tabs.tsx
|
|
3807
|
-
import { jsx as
|
|
3834
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
3808
3835
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3809
3836
|
const props = {
|
|
3810
3837
|
isDisabled: disabled,
|
|
@@ -3815,7 +3842,7 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
|
3815
3842
|
size,
|
|
3816
3843
|
variant
|
|
3817
3844
|
});
|
|
3818
|
-
return /* @__PURE__ */
|
|
3845
|
+
return /* @__PURE__ */ jsx100(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx100(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3819
3846
|
};
|
|
3820
3847
|
_Tabs.List = _TabList;
|
|
3821
3848
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3865,7 +3892,6 @@ export {
|
|
|
3865
3892
|
List,
|
|
3866
3893
|
MarigoldProvider,
|
|
3867
3894
|
_Menu as Menu,
|
|
3868
|
-
Message,
|
|
3869
3895
|
_Modal as Modal,
|
|
3870
3896
|
Multiselect,
|
|
3871
3897
|
_NumberField as NumberField,
|
|
@@ -3876,6 +3902,7 @@ export {
|
|
|
3876
3902
|
RouterProvider,
|
|
3877
3903
|
Scrollable,
|
|
3878
3904
|
_SearchField as SearchField,
|
|
3905
|
+
SectionMessage,
|
|
3879
3906
|
_Select as Select,
|
|
3880
3907
|
_SelectList as SelectList,
|
|
3881
3908
|
_Slider as Slider,
|