@marigold/components 7.5.3 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -12
- package/dist/index.d.ts +26 -12
- package/dist/index.js +273 -208
- package/dist/index.mjs +260 -194
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1434,11 +1434,11 @@ _Dialog.Headline = DialogHeadline;
|
|
|
1434
1434
|
|
|
1435
1435
|
// src/Divider/Divider.tsx
|
|
1436
1436
|
import { Separator } from "react-aria-components";
|
|
1437
|
-
import { useClassNames as useClassNames19 } from "@marigold/system";
|
|
1437
|
+
import { cn as cn23, useClassNames as useClassNames19 } from "@marigold/system";
|
|
1438
1438
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1439
1439
|
var _Divider = ({ variant, ...props }) => {
|
|
1440
1440
|
const classNames2 = useClassNames19({ component: "Divider", variant });
|
|
1441
|
-
return /* @__PURE__ */ jsx36(Separator, { className: classNames2, ...props });
|
|
1441
|
+
return /* @__PURE__ */ jsx36(Separator, { className: cn23("border-none", classNames2), ...props });
|
|
1442
1442
|
};
|
|
1443
1443
|
|
|
1444
1444
|
// src/Footer/Footer.tsx
|
|
@@ -1467,7 +1467,7 @@ var _Header = ({ variant, size, ...props }) => {
|
|
|
1467
1467
|
|
|
1468
1468
|
// src/Image/Image.tsx
|
|
1469
1469
|
import {
|
|
1470
|
-
cn as
|
|
1470
|
+
cn as cn24,
|
|
1471
1471
|
objectFit,
|
|
1472
1472
|
objectPosition,
|
|
1473
1473
|
useClassNames as useClassNames22
|
|
@@ -1486,7 +1486,7 @@ var Image = ({
|
|
|
1486
1486
|
{
|
|
1487
1487
|
...props,
|
|
1488
1488
|
alt: props.alt,
|
|
1489
|
-
className:
|
|
1489
|
+
className: cn24(
|
|
1490
1490
|
fit !== "none" && "h-full w-full",
|
|
1491
1491
|
classNames2,
|
|
1492
1492
|
objectFit[fit],
|
|
@@ -1499,7 +1499,7 @@ var Image = ({
|
|
|
1499
1499
|
// src/Inline/Inline.tsx
|
|
1500
1500
|
import {
|
|
1501
1501
|
alignment as alignment2,
|
|
1502
|
-
cn as
|
|
1502
|
+
cn as cn25,
|
|
1503
1503
|
gapSpace as gapSpace5
|
|
1504
1504
|
} from "@marigold/system";
|
|
1505
1505
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
@@ -1516,7 +1516,7 @@ var Inline = ({
|
|
|
1516
1516
|
"div",
|
|
1517
1517
|
{
|
|
1518
1518
|
...props,
|
|
1519
|
-
className:
|
|
1519
|
+
className: cn25(
|
|
1520
1520
|
"flex flex-wrap",
|
|
1521
1521
|
gapSpace5[space],
|
|
1522
1522
|
alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
|
|
@@ -1537,7 +1537,7 @@ import { useClassNames as useClassNames23 } from "@marigold/system";
|
|
|
1537
1537
|
|
|
1538
1538
|
// src/DateField/DateSegment.tsx
|
|
1539
1539
|
import { DateSegment } from "react-aria-components";
|
|
1540
|
-
import { cn as
|
|
1540
|
+
import { cn as cn26 } from "@marigold/system";
|
|
1541
1541
|
import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1542
1542
|
var _DateSegment = ({ segment, ...props }) => {
|
|
1543
1543
|
return /* @__PURE__ */ jsx41(
|
|
@@ -1553,7 +1553,7 @@ var _DateSegment = ({ segment, ...props }) => {
|
|
|
1553
1553
|
"span",
|
|
1554
1554
|
{
|
|
1555
1555
|
"aria-hidden": "true",
|
|
1556
|
-
className:
|
|
1556
|
+
className: cn26(
|
|
1557
1557
|
isPlaceholder ? "visible block" : "invisible hidden",
|
|
1558
1558
|
"pointer-events-none w-full text-center"
|
|
1559
1559
|
),
|
|
@@ -1623,7 +1623,7 @@ var _DateField = forwardRef13(
|
|
|
1623
1623
|
// src/Calendar/Calendar.tsx
|
|
1624
1624
|
import { useState } from "react";
|
|
1625
1625
|
import { Calendar } from "react-aria-components";
|
|
1626
|
-
import { cn as
|
|
1626
|
+
import { cn as cn30, useClassNames as useClassNames28 } from "@marigold/system";
|
|
1627
1627
|
|
|
1628
1628
|
// src/Calendar/CalendarGrid.tsx
|
|
1629
1629
|
import {
|
|
@@ -1631,7 +1631,7 @@ import {
|
|
|
1631
1631
|
CalendarGrid,
|
|
1632
1632
|
CalendarGridBody
|
|
1633
1633
|
} from "react-aria-components";
|
|
1634
|
-
import { cn as
|
|
1634
|
+
import { cn as cn27, useClassNames as useClassNames25 } from "@marigold/system";
|
|
1635
1635
|
|
|
1636
1636
|
// src/Calendar/CalendarGridHeader.tsx
|
|
1637
1637
|
import { startOfWeek, today } from "@internationalized/date";
|
|
@@ -1671,7 +1671,7 @@ var _CalendarGrid = () => {
|
|
|
1671
1671
|
CalendarCell,
|
|
1672
1672
|
{
|
|
1673
1673
|
date,
|
|
1674
|
-
className:
|
|
1674
|
+
className: cn27(
|
|
1675
1675
|
"flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
|
|
1676
1676
|
classNames2.calendarCell
|
|
1677
1677
|
)
|
|
@@ -1684,7 +1684,7 @@ var _CalendarGrid = () => {
|
|
|
1684
1684
|
import { useContext as useContext8 } from "react";
|
|
1685
1685
|
import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
|
|
1686
1686
|
import { ChevronDown as ChevronDown2 } from "@marigold/icons";
|
|
1687
|
-
import { cn as
|
|
1687
|
+
import { cn as cn28, useClassNames as useClassNames26 } from "@marigold/system";
|
|
1688
1688
|
|
|
1689
1689
|
// src/Calendar/useFormattedMonths.tsx
|
|
1690
1690
|
import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
|
|
@@ -1718,7 +1718,7 @@ function CalendarListBox({
|
|
|
1718
1718
|
{
|
|
1719
1719
|
disabled: isDisabled,
|
|
1720
1720
|
onClick: () => setSelectedDropdown(type),
|
|
1721
|
-
className:
|
|
1721
|
+
className: cn28(buttonStyles, selectClassNames),
|
|
1722
1722
|
"data-testid": type,
|
|
1723
1723
|
children: [
|
|
1724
1724
|
type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
|
|
@@ -1731,7 +1731,7 @@ function CalendarListBox({
|
|
|
1731
1731
|
// src/Calendar/MonthControls.tsx
|
|
1732
1732
|
import { Button as Button3 } from "react-aria-components";
|
|
1733
1733
|
import { ChevronLeft, ChevronRight } from "@marigold/icons";
|
|
1734
|
-
import { cn as
|
|
1734
|
+
import { cn as cn29, useClassNames as useClassNames27 } from "@marigold/system";
|
|
1735
1735
|
import { jsx as jsx47, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1736
1736
|
function MonthControls() {
|
|
1737
1737
|
const classNames2 = useClassNames27({ component: "Calendar" });
|
|
@@ -1739,7 +1739,7 @@ function MonthControls() {
|
|
|
1739
1739
|
return /* @__PURE__ */ jsxs18(
|
|
1740
1740
|
"div",
|
|
1741
1741
|
{
|
|
1742
|
-
className:
|
|
1742
|
+
className: cn29(
|
|
1743
1743
|
"flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
|
|
1744
1744
|
classNames2.calendarControllers
|
|
1745
1745
|
),
|
|
@@ -1747,7 +1747,7 @@ function MonthControls() {
|
|
|
1747
1747
|
/* @__PURE__ */ jsx47(
|
|
1748
1748
|
Button3,
|
|
1749
1749
|
{
|
|
1750
|
-
className:
|
|
1750
|
+
className: cn29(
|
|
1751
1751
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1752
1752
|
buttonClassNames
|
|
1753
1753
|
),
|
|
@@ -1758,7 +1758,7 @@ function MonthControls() {
|
|
|
1758
1758
|
/* @__PURE__ */ jsx47(
|
|
1759
1759
|
Button3,
|
|
1760
1760
|
{
|
|
1761
|
-
className:
|
|
1761
|
+
className: cn29(
|
|
1762
1762
|
"inline-flex items-center justify-center gap-[0.5ch]",
|
|
1763
1763
|
buttonClassNames
|
|
1764
1764
|
),
|
|
@@ -1907,7 +1907,7 @@ var _Calendar = ({
|
|
|
1907
1907
|
return /* @__PURE__ */ jsx50(
|
|
1908
1908
|
Calendar,
|
|
1909
1909
|
{
|
|
1910
|
-
className:
|
|
1910
|
+
className: cn30(
|
|
1911
1911
|
"flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
|
|
1912
1912
|
classNames2.calendar
|
|
1913
1913
|
),
|
|
@@ -1998,7 +1998,7 @@ var _DatePicker = ({
|
|
|
1998
1998
|
|
|
1999
1999
|
// src/Inset/Inset.tsx
|
|
2000
2000
|
import {
|
|
2001
|
-
cn as
|
|
2001
|
+
cn as cn31,
|
|
2002
2002
|
paddingSpace as paddingSpace2,
|
|
2003
2003
|
paddingSpaceX as paddingSpaceX2,
|
|
2004
2004
|
paddingSpaceY as paddingSpaceY2
|
|
@@ -2007,7 +2007,7 @@ import { jsx as jsx52 } from "react/jsx-runtime";
|
|
|
2007
2007
|
var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
|
|
2008
2008
|
"div",
|
|
2009
2009
|
{
|
|
2010
|
-
className:
|
|
2010
|
+
className: cn31(
|
|
2011
2011
|
space && paddingSpace2[space],
|
|
2012
2012
|
!space && spaceX && paddingSpaceX2[spaceX],
|
|
2013
2013
|
!space && spaceY && paddingSpaceY2[spaceY]
|
|
@@ -2096,12 +2096,13 @@ var _Menu = ({
|
|
|
2096
2096
|
size,
|
|
2097
2097
|
disabled,
|
|
2098
2098
|
open,
|
|
2099
|
+
placement,
|
|
2099
2100
|
...props
|
|
2100
2101
|
}) => {
|
|
2101
2102
|
const classNames2 = useClassNames34({ component: "Menu", variant, size });
|
|
2102
2103
|
return /* @__PURE__ */ jsxs22(MenuTrigger, { ...props, children: [
|
|
2103
2104
|
/* @__PURE__ */ jsx58(_Button, { variant: "menu", disabled, children: label }),
|
|
2104
|
-
/* @__PURE__ */ jsx58(_Popover, { open, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
|
|
2105
|
+
/* @__PURE__ */ jsx58(_Popover, { open, placement, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
|
|
2105
2106
|
] });
|
|
2106
2107
|
};
|
|
2107
2108
|
_Menu.Item = _MenuItem;
|
|
@@ -2126,7 +2127,7 @@ var ActionMenu = ({
|
|
|
2126
2127
|
|
|
2127
2128
|
// src/Message/Message.tsx
|
|
2128
2129
|
import { forwardRef as forwardRef15 } from "react";
|
|
2129
|
-
import { cn as
|
|
2130
|
+
import { cn as cn32, useClassNames as useClassNames36 } from "@marigold/system";
|
|
2130
2131
|
import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2131
2132
|
var icons = {
|
|
2132
2133
|
success: () => /* @__PURE__ */ jsx60(
|
|
@@ -2201,25 +2202,25 @@ var Message = forwardRef15(
|
|
|
2201
2202
|
return /* @__PURE__ */ jsxs24(
|
|
2202
2203
|
"div",
|
|
2203
2204
|
{
|
|
2204
|
-
className:
|
|
2205
|
+
className: cn32(
|
|
2205
2206
|
"grid auto-rows-min grid-cols-[min-content_auto] gap-1",
|
|
2206
2207
|
classNames2.container
|
|
2207
2208
|
),
|
|
2208
2209
|
ref,
|
|
2209
2210
|
...props,
|
|
2210
2211
|
children: [
|
|
2211
|
-
/* @__PURE__ */ jsx60("div", { className:
|
|
2212
|
+
/* @__PURE__ */ jsx60("div", { className: cn32("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx60(Icon4, {}) }),
|
|
2212
2213
|
/* @__PURE__ */ jsx60(
|
|
2213
2214
|
"div",
|
|
2214
2215
|
{
|
|
2215
|
-
className:
|
|
2216
|
+
className: cn32(
|
|
2216
2217
|
"col-start-2 row-start-1 self-center",
|
|
2217
2218
|
classNames2.title
|
|
2218
2219
|
),
|
|
2219
2220
|
children: messageTitle
|
|
2220
2221
|
}
|
|
2221
2222
|
),
|
|
2222
|
-
/* @__PURE__ */ jsx60("div", { className:
|
|
2223
|
+
/* @__PURE__ */ jsx60("div", { className: cn32("col-start-2", classNames2.content), children })
|
|
2223
2224
|
]
|
|
2224
2225
|
}
|
|
2225
2226
|
);
|
|
@@ -2232,7 +2233,7 @@ import { useListData as useListData2 } from "@react-stately/data";
|
|
|
2232
2233
|
|
|
2233
2234
|
// src/TagGroup/Tag.tsx
|
|
2234
2235
|
import { Button as Button4, Tag } from "react-aria-components";
|
|
2235
|
-
import { cn as
|
|
2236
|
+
import { cn as cn33, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2236
2237
|
|
|
2237
2238
|
// src/TagGroup/TagGroup.tsx
|
|
2238
2239
|
import { TagGroup, TagList } from "react-aria-components";
|
|
@@ -2272,13 +2273,13 @@ var _Tag = ({ variant, size, children, ...props }) => {
|
|
|
2272
2273
|
{
|
|
2273
2274
|
textValue,
|
|
2274
2275
|
...props,
|
|
2275
|
-
className:
|
|
2276
|
+
className: cn33("data-[selection-mode]:cursor-pointer", classNames2.tag),
|
|
2276
2277
|
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
2277
2278
|
children,
|
|
2278
2279
|
allowsRemoving && /* @__PURE__ */ jsx62(
|
|
2279
2280
|
CloseButton2,
|
|
2280
2281
|
{
|
|
2281
|
-
className:
|
|
2282
|
+
className: cn33("flex items-center", classNames2.closeButton)
|
|
2282
2283
|
}
|
|
2283
2284
|
)
|
|
2284
2285
|
] })
|
|
@@ -2357,11 +2358,11 @@ Multiselect.Item = Item2;
|
|
|
2357
2358
|
// src/NumberField/NumberField.tsx
|
|
2358
2359
|
import { forwardRef as forwardRef16 } from "react";
|
|
2359
2360
|
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2360
|
-
import { cn as
|
|
2361
|
+
import { cn as cn35, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2361
2362
|
|
|
2362
2363
|
// src/NumberField/StepButton.tsx
|
|
2363
2364
|
import { Button as Button5 } from "react-aria-components";
|
|
2364
|
-
import { cn as
|
|
2365
|
+
import { cn as cn34 } from "@marigold/system";
|
|
2365
2366
|
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2366
2367
|
var Plus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
|
|
2367
2368
|
"path",
|
|
@@ -2384,7 +2385,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2384
2385
|
return /* @__PURE__ */ jsx64(
|
|
2385
2386
|
Button5,
|
|
2386
2387
|
{
|
|
2387
|
-
className:
|
|
2388
|
+
className: cn34(
|
|
2388
2389
|
[
|
|
2389
2390
|
"flex items-center justify-center",
|
|
2390
2391
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2423,7 +2424,7 @@ var _NumberField = forwardRef16(
|
|
|
2423
2424
|
...rest
|
|
2424
2425
|
};
|
|
2425
2426
|
const showStepper = !hideStepper;
|
|
2426
|
-
return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className:
|
|
2427
|
+
return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className: cn35("flex items-stretch", classNames2.group), children: [
|
|
2427
2428
|
showStepper && /* @__PURE__ */ jsx65(
|
|
2428
2429
|
_StepButton,
|
|
2429
2430
|
{
|
|
@@ -2458,7 +2459,7 @@ import {
|
|
|
2458
2459
|
forwardRef as forwardRef17
|
|
2459
2460
|
} from "react";
|
|
2460
2461
|
import { Radio } from "react-aria-components";
|
|
2461
|
-
import { cn as
|
|
2462
|
+
import { cn as cn37, useClassNames as useClassNames41 } from "@marigold/system";
|
|
2462
2463
|
|
|
2463
2464
|
// src/Radio/Context.ts
|
|
2464
2465
|
import { createContext as createContext6, useContext as useContext12 } from "react";
|
|
@@ -2469,7 +2470,7 @@ var useRadioGroupContext = () => useContext12(RadioGroupContext);
|
|
|
2469
2470
|
|
|
2470
2471
|
// src/Radio/RadioGroup.tsx
|
|
2471
2472
|
import { RadioGroup } from "react-aria-components";
|
|
2472
|
-
import { cn as
|
|
2473
|
+
import { cn as cn36, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2473
2474
|
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2474
2475
|
var _RadioGroup = ({
|
|
2475
2476
|
variant,
|
|
@@ -2511,7 +2512,7 @@ var _RadioGroup = ({
|
|
|
2511
2512
|
role: "presentation",
|
|
2512
2513
|
"data-testid": "group",
|
|
2513
2514
|
"data-orientation": orientation,
|
|
2514
|
-
className:
|
|
2515
|
+
className: cn36(
|
|
2515
2516
|
classNames2.group,
|
|
2516
2517
|
"flex items-start",
|
|
2517
2518
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
@@ -2529,7 +2530,7 @@ var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /*
|
|
|
2529
2530
|
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
|
|
2530
2531
|
"div",
|
|
2531
2532
|
{
|
|
2532
|
-
className:
|
|
2533
|
+
className: cn37(
|
|
2533
2534
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2534
2535
|
className
|
|
2535
2536
|
),
|
|
@@ -2550,7 +2551,7 @@ var _Radio = forwardRef17(
|
|
|
2550
2551
|
Radio,
|
|
2551
2552
|
{
|
|
2552
2553
|
ref,
|
|
2553
|
-
className:
|
|
2554
|
+
className: cn37(
|
|
2554
2555
|
"group/radio",
|
|
2555
2556
|
"relative flex items-center gap-[1ch]",
|
|
2556
2557
|
width || groupWidth || "w-full",
|
|
@@ -2564,7 +2565,7 @@ var _Radio = forwardRef17(
|
|
|
2564
2565
|
Icon3,
|
|
2565
2566
|
{
|
|
2566
2567
|
checked: isSelected,
|
|
2567
|
-
className:
|
|
2568
|
+
className: cn37(
|
|
2568
2569
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2569
2570
|
classNames2.radio
|
|
2570
2571
|
)
|
|
@@ -2608,7 +2609,7 @@ import {
|
|
|
2608
2609
|
Select,
|
|
2609
2610
|
SelectValue
|
|
2610
2611
|
} from "react-aria-components";
|
|
2611
|
-
import { cn as
|
|
2612
|
+
import { cn as cn38, useClassNames as useClassNames42 } from "@marigold/system";
|
|
2612
2613
|
import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2613
2614
|
var _Select = forwardRef19(
|
|
2614
2615
|
({
|
|
@@ -2635,7 +2636,7 @@ var _Select = forwardRef19(
|
|
|
2635
2636
|
/* @__PURE__ */ jsxs29(
|
|
2636
2637
|
Button6,
|
|
2637
2638
|
{
|
|
2638
|
-
className:
|
|
2639
|
+
className: cn38(
|
|
2639
2640
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2640
2641
|
classNames2.select
|
|
2641
2642
|
),
|
|
@@ -2652,26 +2653,90 @@ var _Select = forwardRef19(
|
|
|
2652
2653
|
_Select.Option = _ListBox.Item;
|
|
2653
2654
|
_Select.Section = _ListBox.Section;
|
|
2654
2655
|
|
|
2656
|
+
// src/SelectList/SelectList.tsx
|
|
2657
|
+
import {
|
|
2658
|
+
forwardRef as forwardRef21
|
|
2659
|
+
} from "react";
|
|
2660
|
+
import { GridList as SelectList } from "react-aria-components";
|
|
2661
|
+
import { cn as cn40, useClassNames as useClassNames43 } from "@marigold/system";
|
|
2662
|
+
|
|
2663
|
+
// src/SelectList/Context.ts
|
|
2664
|
+
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
2665
|
+
var SelectListContext = createContext7(
|
|
2666
|
+
{}
|
|
2667
|
+
);
|
|
2668
|
+
var useSelectListContext = () => useContext13(SelectListContext);
|
|
2669
|
+
|
|
2670
|
+
// src/SelectList/SelectListItem.tsx
|
|
2671
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
2672
|
+
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
2673
|
+
import { cn as cn39 } from "@marigold/system";
|
|
2674
|
+
import { Fragment as Fragment8, jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2675
|
+
var _SelectListItem = forwardRef20(
|
|
2676
|
+
({ children, ...props }, ref) => {
|
|
2677
|
+
let textValue = typeof children === "string" ? children : void 0;
|
|
2678
|
+
const { classNames: classNames2 } = useSelectListContext();
|
|
2679
|
+
return /* @__PURE__ */ jsx70(
|
|
2680
|
+
SelectListItem,
|
|
2681
|
+
{
|
|
2682
|
+
textValue,
|
|
2683
|
+
...props,
|
|
2684
|
+
className: cn39("flex items-center", classNames2 == null ? void 0 : classNames2.option),
|
|
2685
|
+
ref,
|
|
2686
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
2687
|
+
selectionMode === "multiple" && /* @__PURE__ */ jsx70(FieldGroup, { children: /* @__PURE__ */ jsx70(_Checkbox, { slot: "selection" }) }),
|
|
2688
|
+
children
|
|
2689
|
+
] })
|
|
2690
|
+
}
|
|
2691
|
+
);
|
|
2692
|
+
}
|
|
2693
|
+
);
|
|
2694
|
+
|
|
2695
|
+
// src/SelectList/SelectList.tsx
|
|
2696
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
2697
|
+
var _SelectList = forwardRef21(
|
|
2698
|
+
({ onChange, ...rest }, ref) => {
|
|
2699
|
+
const classNames2 = useClassNames43({ component: "ListBox" });
|
|
2700
|
+
const props = {
|
|
2701
|
+
onSelectionChange: onChange,
|
|
2702
|
+
...rest
|
|
2703
|
+
};
|
|
2704
|
+
return /* @__PURE__ */ jsx71(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx71("div", { className: classNames2.container, children: /* @__PURE__ */ jsx71(
|
|
2705
|
+
SelectList,
|
|
2706
|
+
{
|
|
2707
|
+
...props,
|
|
2708
|
+
ref,
|
|
2709
|
+
className: cn40(
|
|
2710
|
+
"overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2711
|
+
classNames2.list
|
|
2712
|
+
),
|
|
2713
|
+
children: props.children
|
|
2714
|
+
}
|
|
2715
|
+
) }) });
|
|
2716
|
+
}
|
|
2717
|
+
);
|
|
2718
|
+
_SelectList.Item = _SelectListItem;
|
|
2719
|
+
|
|
2655
2720
|
// src/Scrollable/Scrollable.tsx
|
|
2656
|
-
import { cn as
|
|
2657
|
-
import { jsx as
|
|
2721
|
+
import { cn as cn41, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2722
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2658
2723
|
var Scrollable = ({
|
|
2659
2724
|
children,
|
|
2660
2725
|
width = "full",
|
|
2661
2726
|
height,
|
|
2662
2727
|
...props
|
|
2663
|
-
}) => /* @__PURE__ */
|
|
2728
|
+
}) => /* @__PURE__ */ jsx72(
|
|
2664
2729
|
"div",
|
|
2665
2730
|
{
|
|
2666
2731
|
...props,
|
|
2667
|
-
className:
|
|
2732
|
+
className: cn41(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2668
2733
|
style: createVar10({ height }),
|
|
2669
2734
|
children
|
|
2670
2735
|
}
|
|
2671
2736
|
);
|
|
2672
2737
|
|
|
2673
2738
|
// src/Slider/Slider.tsx
|
|
2674
|
-
import { forwardRef as
|
|
2739
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
2675
2740
|
import {
|
|
2676
2741
|
Slider,
|
|
2677
2742
|
SliderOutput,
|
|
@@ -2679,12 +2744,12 @@ import {
|
|
|
2679
2744
|
SliderTrack
|
|
2680
2745
|
} from "react-aria-components";
|
|
2681
2746
|
import {
|
|
2682
|
-
cn as
|
|
2747
|
+
cn as cn42,
|
|
2683
2748
|
width as twWidth3,
|
|
2684
|
-
useClassNames as
|
|
2749
|
+
useClassNames as useClassNames44
|
|
2685
2750
|
} from "@marigold/system";
|
|
2686
|
-
import { jsx as
|
|
2687
|
-
var _Slider =
|
|
2751
|
+
import { jsx as jsx73, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2752
|
+
var _Slider = forwardRef22(
|
|
2688
2753
|
({
|
|
2689
2754
|
thumbLabels,
|
|
2690
2755
|
variant,
|
|
@@ -2693,7 +2758,7 @@ var _Slider = forwardRef20(
|
|
|
2693
2758
|
disabled,
|
|
2694
2759
|
...rest
|
|
2695
2760
|
}, ref) => {
|
|
2696
|
-
const classNames2 =
|
|
2761
|
+
const classNames2 = useClassNames44({
|
|
2697
2762
|
component: "Slider",
|
|
2698
2763
|
variant,
|
|
2699
2764
|
size
|
|
@@ -2702,10 +2767,10 @@ var _Slider = forwardRef20(
|
|
|
2702
2767
|
isDisabled: disabled,
|
|
2703
2768
|
...rest
|
|
2704
2769
|
};
|
|
2705
|
-
return /* @__PURE__ */
|
|
2770
|
+
return /* @__PURE__ */ jsxs31(
|
|
2706
2771
|
Slider,
|
|
2707
2772
|
{
|
|
2708
|
-
className:
|
|
2773
|
+
className: cn42(
|
|
2709
2774
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2710
2775
|
classNames2.container,
|
|
2711
2776
|
twWidth3[width]
|
|
@@ -2713,16 +2778,16 @@ var _Slider = forwardRef20(
|
|
|
2713
2778
|
ref,
|
|
2714
2779
|
...props,
|
|
2715
2780
|
children: [
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2718
|
-
/* @__PURE__ */
|
|
2781
|
+
/* @__PURE__ */ jsx73(_Label, { children: props.children }),
|
|
2782
|
+
/* @__PURE__ */ jsx73(SliderOutput, { className: cn42("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2783
|
+
/* @__PURE__ */ jsx73(
|
|
2719
2784
|
SliderTrack,
|
|
2720
2785
|
{
|
|
2721
|
-
className:
|
|
2722
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2786
|
+
className: cn42("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2787
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx73(
|
|
2723
2788
|
SliderThumb,
|
|
2724
2789
|
{
|
|
2725
|
-
className:
|
|
2790
|
+
className: cn42("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2726
2791
|
index: i,
|
|
2727
2792
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2728
2793
|
},
|
|
@@ -2737,16 +2802,16 @@ var _Slider = forwardRef20(
|
|
|
2737
2802
|
);
|
|
2738
2803
|
|
|
2739
2804
|
// src/Split/Split.tsx
|
|
2740
|
-
import { jsx as
|
|
2741
|
-
var Split = (props) => /* @__PURE__ */
|
|
2805
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
2806
|
+
var Split = (props) => /* @__PURE__ */ jsx74("div", { ...props, role: "separator", className: "grow" });
|
|
2742
2807
|
|
|
2743
2808
|
// src/Stack/Stack.tsx
|
|
2744
2809
|
import {
|
|
2745
2810
|
alignment as alignment3,
|
|
2746
|
-
cn as
|
|
2811
|
+
cn as cn43,
|
|
2747
2812
|
gapSpace as gapSpace6
|
|
2748
2813
|
} from "@marigold/system";
|
|
2749
|
-
import { jsx as
|
|
2814
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
2750
2815
|
var Stack = ({
|
|
2751
2816
|
children,
|
|
2752
2817
|
space = 0,
|
|
@@ -2757,10 +2822,10 @@ var Stack = ({
|
|
|
2757
2822
|
...props
|
|
2758
2823
|
}) => {
|
|
2759
2824
|
var _a, _b, _c, _d;
|
|
2760
|
-
return /* @__PURE__ */
|
|
2825
|
+
return /* @__PURE__ */ jsx75(
|
|
2761
2826
|
"div",
|
|
2762
2827
|
{
|
|
2763
|
-
className:
|
|
2828
|
+
className: cn43(
|
|
2764
2829
|
"flex flex-col",
|
|
2765
2830
|
gapSpace6[space],
|
|
2766
2831
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2774,15 +2839,15 @@ var Stack = ({
|
|
|
2774
2839
|
};
|
|
2775
2840
|
|
|
2776
2841
|
// src/Switch/Switch.tsx
|
|
2777
|
-
import { forwardRef as
|
|
2842
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
2778
2843
|
import { Switch } from "react-aria-components";
|
|
2779
2844
|
import {
|
|
2780
|
-
cn as
|
|
2845
|
+
cn as cn44,
|
|
2781
2846
|
width as twWidth4,
|
|
2782
|
-
useClassNames as
|
|
2847
|
+
useClassNames as useClassNames45
|
|
2783
2848
|
} from "@marigold/system";
|
|
2784
|
-
import { jsx as
|
|
2785
|
-
var _Switch =
|
|
2849
|
+
import { jsx as jsx76, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2850
|
+
var _Switch = forwardRef23(
|
|
2786
2851
|
({
|
|
2787
2852
|
variant,
|
|
2788
2853
|
size,
|
|
@@ -2793,37 +2858,37 @@ var _Switch = forwardRef21(
|
|
|
2793
2858
|
readOnly,
|
|
2794
2859
|
...rest
|
|
2795
2860
|
}, ref) => {
|
|
2796
|
-
const classNames2 =
|
|
2861
|
+
const classNames2 = useClassNames45({ component: "Switch", size, variant });
|
|
2797
2862
|
const props = {
|
|
2798
2863
|
isDisabled: disabled,
|
|
2799
2864
|
isReadOnly: readOnly,
|
|
2800
2865
|
isSelected: selected,
|
|
2801
2866
|
...rest
|
|
2802
2867
|
};
|
|
2803
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsxs32(
|
|
2804
2869
|
Switch,
|
|
2805
2870
|
{
|
|
2806
2871
|
...props,
|
|
2807
2872
|
ref,
|
|
2808
|
-
className:
|
|
2873
|
+
className: cn44(
|
|
2809
2874
|
twWidth4[width],
|
|
2810
2875
|
"group/switch",
|
|
2811
2876
|
"flex items-center gap-[1ch]",
|
|
2812
2877
|
classNames2.container
|
|
2813
2878
|
),
|
|
2814
2879
|
children: [
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
/* @__PURE__ */
|
|
2880
|
+
/* @__PURE__ */ jsx76(_Label, { elementType: "span", children }),
|
|
2881
|
+
/* @__PURE__ */ jsx76("div", { className: "relative", children: /* @__PURE__ */ jsx76(
|
|
2817
2882
|
"div",
|
|
2818
2883
|
{
|
|
2819
|
-
className:
|
|
2884
|
+
className: cn44(
|
|
2820
2885
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2821
2886
|
classNames2.track
|
|
2822
2887
|
),
|
|
2823
|
-
children: /* @__PURE__ */
|
|
2888
|
+
children: /* @__PURE__ */ jsx76(
|
|
2824
2889
|
"div",
|
|
2825
2890
|
{
|
|
2826
|
-
className:
|
|
2891
|
+
className: cn44(
|
|
2827
2892
|
"h-[22px] w-[22px]",
|
|
2828
2893
|
"cubic-bezier(.7,0,.3,1)",
|
|
2829
2894
|
"absolute left-0 top-px",
|
|
@@ -2852,19 +2917,19 @@ import {
|
|
|
2852
2917
|
Row,
|
|
2853
2918
|
useTableState
|
|
2854
2919
|
} from "@react-stately/table";
|
|
2855
|
-
import { cn as
|
|
2920
|
+
import { cn as cn50, useClassNames as useClassNames47 } from "@marigold/system";
|
|
2856
2921
|
|
|
2857
2922
|
// src/Table/Context.tsx
|
|
2858
|
-
import { createContext as
|
|
2859
|
-
var TableContext =
|
|
2860
|
-
var useTableContext = () =>
|
|
2923
|
+
import { createContext as createContext8, useContext as useContext14 } from "react";
|
|
2924
|
+
var TableContext = createContext8({});
|
|
2925
|
+
var useTableContext = () => useContext14(TableContext);
|
|
2861
2926
|
|
|
2862
2927
|
// src/Table/TableBody.tsx
|
|
2863
2928
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2864
|
-
import { jsx as
|
|
2929
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
2865
2930
|
var TableBody = ({ children }) => {
|
|
2866
2931
|
const { rowGroupProps } = useTableRowGroup();
|
|
2867
|
-
return /* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ jsx77("tbody", { ...rowGroupProps, children });
|
|
2868
2933
|
};
|
|
2869
2934
|
|
|
2870
2935
|
// src/Table/TableCell.tsx
|
|
@@ -2872,8 +2937,8 @@ import { useRef as useRef4 } from "react";
|
|
|
2872
2937
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2873
2938
|
import { useTableCell } from "@react-aria/table";
|
|
2874
2939
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2875
|
-
import { cn as
|
|
2876
|
-
import { jsx as
|
|
2940
|
+
import { cn as cn45, useStateProps as useStateProps2 } from "@marigold/system";
|
|
2941
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
2877
2942
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2878
2943
|
const ref = useRef4(null);
|
|
2879
2944
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
@@ -2896,11 +2961,11 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
2896
2961
|
};
|
|
2897
2962
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
2898
2963
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
2899
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ jsx78(
|
|
2900
2965
|
"td",
|
|
2901
2966
|
{
|
|
2902
2967
|
ref,
|
|
2903
|
-
className:
|
|
2968
|
+
className: cn45(classNames2 == null ? void 0 : classNames2.cell),
|
|
2904
2969
|
...mergeProps3(cellProps, focusProps),
|
|
2905
2970
|
...stateProps,
|
|
2906
2971
|
align,
|
|
@@ -2914,7 +2979,7 @@ import { useRef as useRef5 } from "react";
|
|
|
2914
2979
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
2915
2980
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2916
2981
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2917
|
-
import { cn as
|
|
2982
|
+
import { cn as cn46, useStateProps as useStateProps3 } from "@marigold/system";
|
|
2918
2983
|
|
|
2919
2984
|
// src/Table/utils.ts
|
|
2920
2985
|
var mapCheckboxProps = ({
|
|
@@ -2937,7 +3002,7 @@ var mapCheckboxProps = ({
|
|
|
2937
3002
|
};
|
|
2938
3003
|
|
|
2939
3004
|
// src/Table/TableCheckboxCell.tsx
|
|
2940
|
-
import { jsx as
|
|
3005
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
2941
3006
|
var TableCheckboxCell = ({ cell }) => {
|
|
2942
3007
|
const ref = useRef5(null);
|
|
2943
3008
|
const { state, classNames: classNames2 } = useTableContext();
|
|
@@ -2954,14 +3019,14 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2954
3019
|
);
|
|
2955
3020
|
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
2956
3021
|
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
2957
|
-
return /* @__PURE__ */
|
|
3022
|
+
return /* @__PURE__ */ jsx79(
|
|
2958
3023
|
"td",
|
|
2959
3024
|
{
|
|
2960
3025
|
ref,
|
|
2961
|
-
className:
|
|
3026
|
+
className: cn46("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2962
3027
|
...mergeProps4(gridCellProps, focusProps),
|
|
2963
3028
|
...stateProps,
|
|
2964
|
-
children: /* @__PURE__ */
|
|
3029
|
+
children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
|
|
2965
3030
|
}
|
|
2966
3031
|
);
|
|
2967
3032
|
};
|
|
@@ -2973,9 +3038,9 @@ import { useHover } from "@react-aria/interactions";
|
|
|
2973
3038
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2974
3039
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
2975
3040
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
2976
|
-
import { cn as
|
|
3041
|
+
import { cn as cn47, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2977
3042
|
import { width as twWidth5 } from "@marigold/system";
|
|
2978
|
-
import { jsx as
|
|
3043
|
+
import { jsx as jsx80, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2979
3044
|
var TableColumnHeader = ({
|
|
2980
3045
|
column,
|
|
2981
3046
|
width = "auto",
|
|
@@ -2997,18 +3062,18 @@ var TableColumnHeader = ({
|
|
|
2997
3062
|
hover: isHovered,
|
|
2998
3063
|
focusVisible: isFocusVisible
|
|
2999
3064
|
});
|
|
3000
|
-
return /* @__PURE__ */
|
|
3065
|
+
return /* @__PURE__ */ jsxs33(
|
|
3001
3066
|
"th",
|
|
3002
3067
|
{
|
|
3003
3068
|
colSpan: column.colspan,
|
|
3004
3069
|
ref,
|
|
3005
|
-
className:
|
|
3070
|
+
className: cn47("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
3006
3071
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
3007
3072
|
...stateProps,
|
|
3008
3073
|
align,
|
|
3009
3074
|
children: [
|
|
3010
3075
|
column.rendered,
|
|
3011
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
3076
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx80(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx80(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx80(SortDown, { className: "inline-block" }))
|
|
3012
3077
|
]
|
|
3013
3078
|
}
|
|
3014
3079
|
);
|
|
@@ -3016,10 +3081,10 @@ var TableColumnHeader = ({
|
|
|
3016
3081
|
|
|
3017
3082
|
// src/Table/TableHeader.tsx
|
|
3018
3083
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
3019
|
-
import { jsx as
|
|
3084
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3020
3085
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
3021
3086
|
const { rowGroupProps } = useTableRowGroup2();
|
|
3022
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ jsx81(
|
|
3023
3088
|
"thead",
|
|
3024
3089
|
{
|
|
3025
3090
|
...rowGroupProps,
|
|
@@ -3032,12 +3097,12 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
3032
3097
|
// src/Table/TableHeaderRow.tsx
|
|
3033
3098
|
import { useRef as useRef7 } from "react";
|
|
3034
3099
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
3035
|
-
import { jsx as
|
|
3100
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3036
3101
|
var TableHeaderRow = ({ item, children }) => {
|
|
3037
3102
|
const { state } = useTableContext();
|
|
3038
3103
|
const ref = useRef7(null);
|
|
3039
3104
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
3040
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx82("tr", { ...rowProps, ref, children });
|
|
3041
3106
|
};
|
|
3042
3107
|
|
|
3043
3108
|
// src/Table/TableRow.tsx
|
|
@@ -3046,13 +3111,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
3046
3111
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
3047
3112
|
import { useTableRow } from "@react-aria/table";
|
|
3048
3113
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
3049
|
-
import { cn as
|
|
3050
|
-
import { jsx as
|
|
3114
|
+
import { cn as cn48, useClassNames as useClassNames46, useStateProps as useStateProps5 } from "@marigold/system";
|
|
3115
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3051
3116
|
var TableRow = ({ children, row }) => {
|
|
3052
3117
|
const ref = useRef8(null);
|
|
3053
3118
|
const { interactive, state, ...ctx } = useTableContext();
|
|
3054
3119
|
const { variant, size } = row.props;
|
|
3055
|
-
const classNames2 =
|
|
3120
|
+
const classNames2 = useClassNames46({
|
|
3056
3121
|
component: "Table",
|
|
3057
3122
|
variant: variant || ctx.variant,
|
|
3058
3123
|
size: size || ctx.size
|
|
@@ -3077,11 +3142,11 @@ var TableRow = ({ children, row }) => {
|
|
|
3077
3142
|
focusVisible: isFocusVisible,
|
|
3078
3143
|
active: isPressed
|
|
3079
3144
|
});
|
|
3080
|
-
return /* @__PURE__ */
|
|
3145
|
+
return /* @__PURE__ */ jsx83(
|
|
3081
3146
|
"tr",
|
|
3082
3147
|
{
|
|
3083
3148
|
ref,
|
|
3084
|
-
className:
|
|
3149
|
+
className: cn48(
|
|
3085
3150
|
[
|
|
3086
3151
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
3087
3152
|
],
|
|
@@ -3104,11 +3169,11 @@ import {
|
|
|
3104
3169
|
} from "@react-aria/table";
|
|
3105
3170
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
3106
3171
|
import {
|
|
3107
|
-
cn as
|
|
3172
|
+
cn as cn49,
|
|
3108
3173
|
width as twWidth6,
|
|
3109
3174
|
useStateProps as useStateProps6
|
|
3110
3175
|
} from "@marigold/system";
|
|
3111
|
-
import { jsx as
|
|
3176
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3112
3177
|
var TableSelectAllCell = ({
|
|
3113
3178
|
column,
|
|
3114
3179
|
width = "auto",
|
|
@@ -3130,21 +3195,21 @@ var TableSelectAllCell = ({
|
|
|
3130
3195
|
hover: isHovered,
|
|
3131
3196
|
focusVisible: isFocusVisible
|
|
3132
3197
|
});
|
|
3133
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ jsx84(
|
|
3134
3199
|
"th",
|
|
3135
3200
|
{
|
|
3136
3201
|
ref,
|
|
3137
|
-
className:
|
|
3202
|
+
className: cn49(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
3138
3203
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3139
3204
|
...stateProps,
|
|
3140
3205
|
align,
|
|
3141
|
-
children: /* @__PURE__ */
|
|
3206
|
+
children: /* @__PURE__ */ jsx84(_Checkbox, { ...checkboxProps })
|
|
3142
3207
|
}
|
|
3143
3208
|
);
|
|
3144
3209
|
};
|
|
3145
3210
|
|
|
3146
3211
|
// src/Table/Table.tsx
|
|
3147
|
-
import { jsx as
|
|
3212
|
+
import { jsx as jsx85, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3148
3213
|
var Table = ({
|
|
3149
3214
|
variant,
|
|
3150
3215
|
size,
|
|
@@ -3162,21 +3227,21 @@ var Table = ({
|
|
|
3162
3227
|
props.selectionBehavior !== "replace"
|
|
3163
3228
|
});
|
|
3164
3229
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3165
|
-
const classNames2 =
|
|
3230
|
+
const classNames2 = useClassNames47({
|
|
3166
3231
|
component: "Table",
|
|
3167
3232
|
variant,
|
|
3168
3233
|
size
|
|
3169
3234
|
});
|
|
3170
3235
|
const { collection } = state;
|
|
3171
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ jsx85(
|
|
3172
3237
|
TableContext.Provider,
|
|
3173
3238
|
{
|
|
3174
3239
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
3175
|
-
children: /* @__PURE__ */
|
|
3240
|
+
children: /* @__PURE__ */ jsxs34(
|
|
3176
3241
|
"table",
|
|
3177
3242
|
{
|
|
3178
3243
|
ref: tableRef,
|
|
3179
|
-
className:
|
|
3244
|
+
className: cn50(
|
|
3180
3245
|
"group/table",
|
|
3181
3246
|
"border-collapse whitespace-nowrap",
|
|
3182
3247
|
stretch ? "table w-full" : "block",
|
|
@@ -3184,10 +3249,10 @@ var Table = ({
|
|
|
3184
3249
|
),
|
|
3185
3250
|
...gridProps,
|
|
3186
3251
|
children: [
|
|
3187
|
-
/* @__PURE__ */
|
|
3252
|
+
/* @__PURE__ */ jsx85(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx85(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3188
3253
|
(column) => {
|
|
3189
3254
|
var _a, _b, _c, _d, _e;
|
|
3190
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3255
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(
|
|
3191
3256
|
TableSelectAllCell,
|
|
3192
3257
|
{
|
|
3193
3258
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3195,7 +3260,7 @@ var Table = ({
|
|
|
3195
3260
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3196
3261
|
},
|
|
3197
3262
|
column.key
|
|
3198
|
-
) : /* @__PURE__ */
|
|
3263
|
+
) : /* @__PURE__ */ jsx85(
|
|
3199
3264
|
TableColumnHeader,
|
|
3200
3265
|
{
|
|
3201
3266
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3206,12 +3271,12 @@ var Table = ({
|
|
|
3206
3271
|
);
|
|
3207
3272
|
}
|
|
3208
3273
|
) }, headerRow.key)) }),
|
|
3209
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsxs34(TableBody, { children: [
|
|
3210
3275
|
...collection.rows.map(
|
|
3211
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3276
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx85(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3212
3277
|
var _a, _b;
|
|
3213
3278
|
const currentColumn = collection.columns[index];
|
|
3214
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3279
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx85(
|
|
3215
3280
|
TableCell,
|
|
3216
3281
|
{
|
|
3217
3282
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3236,7 +3301,7 @@ Table.Row = Row;
|
|
|
3236
3301
|
|
|
3237
3302
|
// src/Text/Text.tsx
|
|
3238
3303
|
import {
|
|
3239
|
-
cn as
|
|
3304
|
+
cn as cn51,
|
|
3240
3305
|
createVar as createVar11,
|
|
3241
3306
|
cursorStyle,
|
|
3242
3307
|
fontWeight,
|
|
@@ -3244,10 +3309,10 @@ import {
|
|
|
3244
3309
|
textAlign as textAlign2,
|
|
3245
3310
|
textSize,
|
|
3246
3311
|
textStyle,
|
|
3247
|
-
useClassNames as
|
|
3312
|
+
useClassNames as useClassNames48,
|
|
3248
3313
|
useTheme as useTheme3
|
|
3249
3314
|
} from "@marigold/system";
|
|
3250
|
-
import { jsx as
|
|
3315
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
3251
3316
|
var Text2 = ({
|
|
3252
3317
|
variant,
|
|
3253
3318
|
size,
|
|
@@ -3261,16 +3326,16 @@ var Text2 = ({
|
|
|
3261
3326
|
...props
|
|
3262
3327
|
}) => {
|
|
3263
3328
|
const theme = useTheme3();
|
|
3264
|
-
const classNames2 =
|
|
3329
|
+
const classNames2 = useClassNames48({
|
|
3265
3330
|
component: "Text",
|
|
3266
3331
|
variant,
|
|
3267
3332
|
size
|
|
3268
3333
|
});
|
|
3269
|
-
return /* @__PURE__ */
|
|
3334
|
+
return /* @__PURE__ */ jsx86(
|
|
3270
3335
|
"p",
|
|
3271
3336
|
{
|
|
3272
3337
|
...props,
|
|
3273
|
-
className:
|
|
3338
|
+
className: cn51(
|
|
3274
3339
|
"text-[--color] outline-[--outline]",
|
|
3275
3340
|
classNames2,
|
|
3276
3341
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3293,11 +3358,11 @@ var Text2 = ({
|
|
|
3293
3358
|
};
|
|
3294
3359
|
|
|
3295
3360
|
// src/TextArea/TextArea.tsx
|
|
3296
|
-
import { forwardRef as
|
|
3361
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
3297
3362
|
import { TextArea, TextField } from "react-aria-components";
|
|
3298
|
-
import { useClassNames as
|
|
3299
|
-
import { jsx as
|
|
3300
|
-
var _TextArea =
|
|
3363
|
+
import { useClassNames as useClassNames49 } from "@marigold/system";
|
|
3364
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3365
|
+
var _TextArea = forwardRef24(
|
|
3301
3366
|
({
|
|
3302
3367
|
variant,
|
|
3303
3368
|
size,
|
|
@@ -3308,7 +3373,7 @@ var _TextArea = forwardRef22(
|
|
|
3308
3373
|
rows,
|
|
3309
3374
|
...rest
|
|
3310
3375
|
}, ref) => {
|
|
3311
|
-
const classNames2 =
|
|
3376
|
+
const classNames2 = useClassNames49({ component: "TextArea", variant, size });
|
|
3312
3377
|
const props = {
|
|
3313
3378
|
isDisabled: disabled,
|
|
3314
3379
|
isReadOnly: readOnly,
|
|
@@ -3316,15 +3381,15 @@ var _TextArea = forwardRef22(
|
|
|
3316
3381
|
isRequired: required,
|
|
3317
3382
|
...rest
|
|
3318
3383
|
};
|
|
3319
|
-
return /* @__PURE__ */
|
|
3384
|
+
return /* @__PURE__ */ jsx87(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx87(TextArea, { className: classNames2, ref, rows }) });
|
|
3320
3385
|
}
|
|
3321
3386
|
);
|
|
3322
3387
|
|
|
3323
3388
|
// src/TextField/TextField.tsx
|
|
3324
|
-
import { forwardRef as
|
|
3389
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
3325
3390
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3326
|
-
import { jsx as
|
|
3327
|
-
var _TextField =
|
|
3391
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3392
|
+
var _TextField = forwardRef25(
|
|
3328
3393
|
({
|
|
3329
3394
|
variant,
|
|
3330
3395
|
size,
|
|
@@ -3341,13 +3406,13 @@ var _TextField = forwardRef23(
|
|
|
3341
3406
|
isRequired: required,
|
|
3342
3407
|
...rest
|
|
3343
3408
|
};
|
|
3344
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx88(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx88(_Input, { ref }) });
|
|
3345
3410
|
}
|
|
3346
3411
|
);
|
|
3347
3412
|
|
|
3348
3413
|
// src/Tiles/Tiles.tsx
|
|
3349
|
-
import { cn as
|
|
3350
|
-
import { jsx as
|
|
3414
|
+
import { cn as cn52, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3415
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
3351
3416
|
var Tiles = ({
|
|
3352
3417
|
space = 0,
|
|
3353
3418
|
stretch = false,
|
|
@@ -3360,11 +3425,11 @@ var Tiles = ({
|
|
|
3360
3425
|
if (stretch) {
|
|
3361
3426
|
column = `minmax(${column}, 1fr)`;
|
|
3362
3427
|
}
|
|
3363
|
-
return /* @__PURE__ */
|
|
3428
|
+
return /* @__PURE__ */ jsx89(
|
|
3364
3429
|
"div",
|
|
3365
3430
|
{
|
|
3366
3431
|
...props,
|
|
3367
|
-
className:
|
|
3432
|
+
className: cn52(
|
|
3368
3433
|
"grid",
|
|
3369
3434
|
gapSpace7[space],
|
|
3370
3435
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3378,11 +3443,11 @@ var Tiles = ({
|
|
|
3378
3443
|
|
|
3379
3444
|
// src/Tooltip/Tooltip.tsx
|
|
3380
3445
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3381
|
-
import { cn as
|
|
3446
|
+
import { cn as cn53, useClassNames as useClassNames50 } from "@marigold/system";
|
|
3382
3447
|
|
|
3383
3448
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3384
3449
|
import { TooltipTrigger } from "react-aria-components";
|
|
3385
|
-
import { jsx as
|
|
3450
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3386
3451
|
var _TooltipTrigger = ({
|
|
3387
3452
|
delay = 1e3,
|
|
3388
3453
|
children,
|
|
@@ -3396,26 +3461,26 @@ var _TooltipTrigger = ({
|
|
|
3396
3461
|
isOpen: open,
|
|
3397
3462
|
delay
|
|
3398
3463
|
};
|
|
3399
|
-
return /* @__PURE__ */
|
|
3464
|
+
return /* @__PURE__ */ jsx90(TooltipTrigger, { ...props, children });
|
|
3400
3465
|
};
|
|
3401
3466
|
|
|
3402
3467
|
// src/Tooltip/Tooltip.tsx
|
|
3403
|
-
import { jsx as
|
|
3468
|
+
import { jsx as jsx91, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3404
3469
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3405
3470
|
const props = {
|
|
3406
3471
|
...rest,
|
|
3407
3472
|
isOpen: open
|
|
3408
3473
|
};
|
|
3409
|
-
const classNames2 =
|
|
3474
|
+
const classNames2 = useClassNames50({ component: "Tooltip", variant, size });
|
|
3410
3475
|
const portal = usePortalContainer();
|
|
3411
|
-
return /* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ jsxs35(
|
|
3412
3477
|
Tooltip,
|
|
3413
3478
|
{
|
|
3414
3479
|
...props,
|
|
3415
|
-
className:
|
|
3480
|
+
className: cn53("group/tooltip", classNames2.container),
|
|
3416
3481
|
UNSTABLE_portalContainer: portal,
|
|
3417
3482
|
children: [
|
|
3418
|
-
/* @__PURE__ */
|
|
3483
|
+
/* @__PURE__ */ jsx91(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx91("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx91("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3419
3484
|
children
|
|
3420
3485
|
]
|
|
3421
3486
|
}
|
|
@@ -3427,10 +3492,10 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3427
3492
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3428
3493
|
|
|
3429
3494
|
// src/XLoader/XLoader.tsx
|
|
3430
|
-
import { forwardRef as
|
|
3495
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
3431
3496
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3432
|
-
import { jsx as
|
|
3433
|
-
var XLoader =
|
|
3497
|
+
import { jsx as jsx92, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3498
|
+
var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
3434
3499
|
SVG5,
|
|
3435
3500
|
{
|
|
3436
3501
|
id: "XLoader",
|
|
@@ -3440,13 +3505,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3440
3505
|
...props,
|
|
3441
3506
|
...ref,
|
|
3442
3507
|
children: [
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ jsx92("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3509
|
+
/* @__PURE__ */ jsx92(
|
|
3445
3510
|
"path",
|
|
3446
3511
|
{
|
|
3447
3512
|
id: "XMLID_5_",
|
|
3448
3513
|
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",
|
|
3449
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ jsx92(
|
|
3450
3515
|
"animate",
|
|
3451
3516
|
{
|
|
3452
3517
|
attributeName: "opacity",
|
|
@@ -3459,12 +3524,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3459
3524
|
)
|
|
3460
3525
|
}
|
|
3461
3526
|
),
|
|
3462
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ jsx92(
|
|
3463
3528
|
"path",
|
|
3464
3529
|
{
|
|
3465
3530
|
id: "XMLID_18_",
|
|
3466
3531
|
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",
|
|
3467
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ jsx92(
|
|
3468
3533
|
"animate",
|
|
3469
3534
|
{
|
|
3470
3535
|
attributeName: "opacity",
|
|
@@ -3477,12 +3542,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3477
3542
|
)
|
|
3478
3543
|
}
|
|
3479
3544
|
),
|
|
3480
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ jsx92(
|
|
3481
3546
|
"path",
|
|
3482
3547
|
{
|
|
3483
3548
|
id: "XMLID_19_",
|
|
3484
3549
|
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",
|
|
3485
|
-
children: /* @__PURE__ */
|
|
3550
|
+
children: /* @__PURE__ */ jsx92(
|
|
3486
3551
|
"animate",
|
|
3487
3552
|
{
|
|
3488
3553
|
attributeName: "opacity",
|
|
@@ -3495,12 +3560,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3495
3560
|
)
|
|
3496
3561
|
}
|
|
3497
3562
|
),
|
|
3498
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ jsx92(
|
|
3499
3564
|
"path",
|
|
3500
3565
|
{
|
|
3501
3566
|
id: "XMLID_20_",
|
|
3502
3567
|
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",
|
|
3503
|
-
children: /* @__PURE__ */
|
|
3568
|
+
children: /* @__PURE__ */ jsx92(
|
|
3504
3569
|
"animate",
|
|
3505
3570
|
{
|
|
3506
3571
|
attributeName: "opacity",
|
|
@@ -3513,12 +3578,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3513
3578
|
)
|
|
3514
3579
|
}
|
|
3515
3580
|
),
|
|
3516
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ jsx92(
|
|
3517
3582
|
"path",
|
|
3518
3583
|
{
|
|
3519
3584
|
id: "XMLID_21_",
|
|
3520
3585
|
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",
|
|
3521
|
-
children: /* @__PURE__ */
|
|
3586
|
+
children: /* @__PURE__ */ jsx92(
|
|
3522
3587
|
"animate",
|
|
3523
3588
|
{
|
|
3524
3589
|
attributeName: "opacity",
|
|
@@ -3531,12 +3596,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3531
3596
|
)
|
|
3532
3597
|
}
|
|
3533
3598
|
),
|
|
3534
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx92(
|
|
3535
3600
|
"path",
|
|
3536
3601
|
{
|
|
3537
3602
|
id: "XMLID_22_",
|
|
3538
3603
|
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",
|
|
3539
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ jsx92(
|
|
3540
3605
|
"animate",
|
|
3541
3606
|
{
|
|
3542
3607
|
attributeName: "opacity",
|
|
@@ -3549,12 +3614,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3549
3614
|
)
|
|
3550
3615
|
}
|
|
3551
3616
|
),
|
|
3552
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsx92(
|
|
3553
3618
|
"path",
|
|
3554
3619
|
{
|
|
3555
3620
|
id: "XMLID_23_",
|
|
3556
3621
|
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",
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3622
|
+
children: /* @__PURE__ */ jsx92(
|
|
3558
3623
|
"animate",
|
|
3559
3624
|
{
|
|
3560
3625
|
attributeName: "opacity",
|
|
@@ -3567,12 +3632,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3567
3632
|
)
|
|
3568
3633
|
}
|
|
3569
3634
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ jsx92(
|
|
3571
3636
|
"path",
|
|
3572
3637
|
{
|
|
3573
3638
|
id: "XMLID_24_",
|
|
3574
3639
|
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",
|
|
3575
|
-
children: /* @__PURE__ */
|
|
3640
|
+
children: /* @__PURE__ */ jsx92(
|
|
3576
3641
|
"animate",
|
|
3577
3642
|
{
|
|
3578
3643
|
attributeName: "opacity",
|
|
@@ -3585,12 +3650,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3585
3650
|
)
|
|
3586
3651
|
}
|
|
3587
3652
|
),
|
|
3588
|
-
/* @__PURE__ */
|
|
3653
|
+
/* @__PURE__ */ jsx92(
|
|
3589
3654
|
"path",
|
|
3590
3655
|
{
|
|
3591
3656
|
id: "XMLID_25_",
|
|
3592
3657
|
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",
|
|
3593
|
-
children: /* @__PURE__ */
|
|
3658
|
+
children: /* @__PURE__ */ jsx92(
|
|
3594
3659
|
"animate",
|
|
3595
3660
|
{
|
|
3596
3661
|
attributeName: "opacity",
|
|
@@ -3603,12 +3668,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3603
3668
|
)
|
|
3604
3669
|
}
|
|
3605
3670
|
),
|
|
3606
|
-
/* @__PURE__ */
|
|
3671
|
+
/* @__PURE__ */ jsx92(
|
|
3607
3672
|
"path",
|
|
3608
3673
|
{
|
|
3609
3674
|
id: "XMLID_26_",
|
|
3610
3675
|
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",
|
|
3611
|
-
children: /* @__PURE__ */
|
|
3676
|
+
children: /* @__PURE__ */ jsx92(
|
|
3612
3677
|
"animate",
|
|
3613
3678
|
{
|
|
3614
3679
|
attributeName: "opacity",
|
|
@@ -3621,12 +3686,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3621
3686
|
)
|
|
3622
3687
|
}
|
|
3623
3688
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3689
|
+
/* @__PURE__ */ jsx92(
|
|
3625
3690
|
"path",
|
|
3626
3691
|
{
|
|
3627
3692
|
id: "XMLID_27_",
|
|
3628
3693
|
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",
|
|
3629
|
-
children: /* @__PURE__ */
|
|
3694
|
+
children: /* @__PURE__ */ jsx92(
|
|
3630
3695
|
"animate",
|
|
3631
3696
|
{
|
|
3632
3697
|
attributeName: "opacity",
|
|
@@ -3645,24 +3710,24 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3645
3710
|
|
|
3646
3711
|
// src/Tabs/Tabs.tsx
|
|
3647
3712
|
import { Tabs } from "react-aria-components";
|
|
3648
|
-
import { useClassNames as
|
|
3713
|
+
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
3649
3714
|
|
|
3650
3715
|
// src/Tabs/Context.ts
|
|
3651
|
-
import { createContext as
|
|
3652
|
-
var TabContext =
|
|
3653
|
-
var useTabContext = () =>
|
|
3716
|
+
import { createContext as createContext9, useContext as useContext15 } from "react";
|
|
3717
|
+
var TabContext = createContext9({});
|
|
3718
|
+
var useTabContext = () => useContext15(TabContext);
|
|
3654
3719
|
|
|
3655
3720
|
// src/Tabs/Tab.tsx
|
|
3656
3721
|
import { Tab } from "react-aria-components";
|
|
3657
|
-
import { cn as
|
|
3658
|
-
import { jsx as
|
|
3722
|
+
import { cn as cn54 } from "@marigold/system";
|
|
3723
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3659
3724
|
var _Tab = (props) => {
|
|
3660
3725
|
const { classNames: classNames2 } = useTabContext();
|
|
3661
|
-
return /* @__PURE__ */
|
|
3726
|
+
return /* @__PURE__ */ jsx93(
|
|
3662
3727
|
Tab,
|
|
3663
3728
|
{
|
|
3664
3729
|
...props,
|
|
3665
|
-
className:
|
|
3730
|
+
className: cn54(
|
|
3666
3731
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3667
3732
|
classNames2.tab
|
|
3668
3733
|
),
|
|
@@ -3673,15 +3738,15 @@ var _Tab = (props) => {
|
|
|
3673
3738
|
|
|
3674
3739
|
// src/Tabs/TabList.tsx
|
|
3675
3740
|
import { TabList } from "react-aria-components";
|
|
3676
|
-
import { cn as
|
|
3677
|
-
import { jsx as
|
|
3741
|
+
import { cn as cn55, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3742
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
3678
3743
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3679
3744
|
const { classNames: classNames2 } = useTabContext();
|
|
3680
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx94(
|
|
3681
3746
|
TabList,
|
|
3682
3747
|
{
|
|
3683
3748
|
...props,
|
|
3684
|
-
className:
|
|
3749
|
+
className: cn55("flex", gapSpace8[space], classNames2.tabsList),
|
|
3685
3750
|
children: props.children
|
|
3686
3751
|
}
|
|
3687
3752
|
);
|
|
@@ -3689,25 +3754,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3689
3754
|
|
|
3690
3755
|
// src/Tabs/TabPanel.tsx
|
|
3691
3756
|
import { TabPanel } from "react-aria-components";
|
|
3692
|
-
import { jsx as
|
|
3757
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
3693
3758
|
var _TabPanel = (props) => {
|
|
3694
3759
|
const { classNames: classNames2 } = useTabContext();
|
|
3695
|
-
return /* @__PURE__ */
|
|
3760
|
+
return /* @__PURE__ */ jsx95(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3696
3761
|
};
|
|
3697
3762
|
|
|
3698
3763
|
// src/Tabs/Tabs.tsx
|
|
3699
|
-
import { jsx as
|
|
3764
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
3700
3765
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3701
3766
|
const props = {
|
|
3702
3767
|
isDisabled: disabled,
|
|
3703
3768
|
...rest
|
|
3704
3769
|
};
|
|
3705
|
-
const classNames2 =
|
|
3770
|
+
const classNames2 = useClassNames51({
|
|
3706
3771
|
component: "Tabs",
|
|
3707
3772
|
size,
|
|
3708
3773
|
variant
|
|
3709
3774
|
});
|
|
3710
|
-
return /* @__PURE__ */
|
|
3775
|
+
return /* @__PURE__ */ jsx96(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx96(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3711
3776
|
};
|
|
3712
3777
|
_Tabs.List = _TabList;
|
|
3713
3778
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3768,6 +3833,7 @@ export {
|
|
|
3768
3833
|
Scrollable,
|
|
3769
3834
|
_SearchField as SearchField,
|
|
3770
3835
|
_Select as Select,
|
|
3836
|
+
_SelectList as SelectList,
|
|
3771
3837
|
_Slider as Slider,
|
|
3772
3838
|
Split,
|
|
3773
3839
|
Stack,
|