@marigold/components 7.5.3 → 7.5.4
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.js +1 -1
- package/dist/index.mjs +75 -75
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1514,7 +1514,7 @@ var import_system31 = require("@marigold/system");
|
|
|
1514
1514
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1515
1515
|
var _Divider = ({ variant, ...props }) => {
|
|
1516
1516
|
const classNames2 = (0, import_system31.useClassNames)({ component: "Divider", variant });
|
|
1517
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components20.Separator, { className: classNames2, ...props });
|
|
1517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components20.Separator, { className: (0, import_system31.cn)("border-none", classNames2), ...props });
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
1520
|
// src/Footer/Footer.tsx
|
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]
|
|
@@ -2126,7 +2126,7 @@ var ActionMenu = ({
|
|
|
2126
2126
|
|
|
2127
2127
|
// src/Message/Message.tsx
|
|
2128
2128
|
import { forwardRef as forwardRef15 } from "react";
|
|
2129
|
-
import { cn as
|
|
2129
|
+
import { cn as cn32, useClassNames as useClassNames36 } from "@marigold/system";
|
|
2130
2130
|
import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2131
2131
|
var icons = {
|
|
2132
2132
|
success: () => /* @__PURE__ */ jsx60(
|
|
@@ -2201,25 +2201,25 @@ var Message = forwardRef15(
|
|
|
2201
2201
|
return /* @__PURE__ */ jsxs24(
|
|
2202
2202
|
"div",
|
|
2203
2203
|
{
|
|
2204
|
-
className:
|
|
2204
|
+
className: cn32(
|
|
2205
2205
|
"grid auto-rows-min grid-cols-[min-content_auto] gap-1",
|
|
2206
2206
|
classNames2.container
|
|
2207
2207
|
),
|
|
2208
2208
|
ref,
|
|
2209
2209
|
...props,
|
|
2210
2210
|
children: [
|
|
2211
|
-
/* @__PURE__ */ jsx60("div", { className:
|
|
2211
|
+
/* @__PURE__ */ jsx60("div", { className: cn32("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx60(Icon4, {}) }),
|
|
2212
2212
|
/* @__PURE__ */ jsx60(
|
|
2213
2213
|
"div",
|
|
2214
2214
|
{
|
|
2215
|
-
className:
|
|
2215
|
+
className: cn32(
|
|
2216
2216
|
"col-start-2 row-start-1 self-center",
|
|
2217
2217
|
classNames2.title
|
|
2218
2218
|
),
|
|
2219
2219
|
children: messageTitle
|
|
2220
2220
|
}
|
|
2221
2221
|
),
|
|
2222
|
-
/* @__PURE__ */ jsx60("div", { className:
|
|
2222
|
+
/* @__PURE__ */ jsx60("div", { className: cn32("col-start-2", classNames2.content), children })
|
|
2223
2223
|
]
|
|
2224
2224
|
}
|
|
2225
2225
|
);
|
|
@@ -2232,7 +2232,7 @@ import { useListData as useListData2 } from "@react-stately/data";
|
|
|
2232
2232
|
|
|
2233
2233
|
// src/TagGroup/Tag.tsx
|
|
2234
2234
|
import { Button as Button4, Tag } from "react-aria-components";
|
|
2235
|
-
import { cn as
|
|
2235
|
+
import { cn as cn33, useClassNames as useClassNames38 } from "@marigold/system";
|
|
2236
2236
|
|
|
2237
2237
|
// src/TagGroup/TagGroup.tsx
|
|
2238
2238
|
import { TagGroup, TagList } from "react-aria-components";
|
|
@@ -2272,13 +2272,13 @@ var _Tag = ({ variant, size, children, ...props }) => {
|
|
|
2272
2272
|
{
|
|
2273
2273
|
textValue,
|
|
2274
2274
|
...props,
|
|
2275
|
-
className:
|
|
2275
|
+
className: cn33("data-[selection-mode]:cursor-pointer", classNames2.tag),
|
|
2276
2276
|
children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
2277
2277
|
children,
|
|
2278
2278
|
allowsRemoving && /* @__PURE__ */ jsx62(
|
|
2279
2279
|
CloseButton2,
|
|
2280
2280
|
{
|
|
2281
|
-
className:
|
|
2281
|
+
className: cn33("flex items-center", classNames2.closeButton)
|
|
2282
2282
|
}
|
|
2283
2283
|
)
|
|
2284
2284
|
] })
|
|
@@ -2357,11 +2357,11 @@ Multiselect.Item = Item2;
|
|
|
2357
2357
|
// src/NumberField/NumberField.tsx
|
|
2358
2358
|
import { forwardRef as forwardRef16 } from "react";
|
|
2359
2359
|
import { Group as Group2, NumberField } from "react-aria-components";
|
|
2360
|
-
import { cn as
|
|
2360
|
+
import { cn as cn35, useClassNames as useClassNames39 } from "@marigold/system";
|
|
2361
2361
|
|
|
2362
2362
|
// src/NumberField/StepButton.tsx
|
|
2363
2363
|
import { Button as Button5 } from "react-aria-components";
|
|
2364
|
-
import { cn as
|
|
2364
|
+
import { cn as cn34 } from "@marigold/system";
|
|
2365
2365
|
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2366
2366
|
var Plus = () => /* @__PURE__ */ jsx64("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx64(
|
|
2367
2367
|
"path",
|
|
@@ -2384,7 +2384,7 @@ var _StepButton = ({ direction, className, ...props }) => {
|
|
|
2384
2384
|
return /* @__PURE__ */ jsx64(
|
|
2385
2385
|
Button5,
|
|
2386
2386
|
{
|
|
2387
|
-
className:
|
|
2387
|
+
className: cn34(
|
|
2388
2388
|
[
|
|
2389
2389
|
"flex items-center justify-center",
|
|
2390
2390
|
"cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
@@ -2423,7 +2423,7 @@ var _NumberField = forwardRef16(
|
|
|
2423
2423
|
...rest
|
|
2424
2424
|
};
|
|
2425
2425
|
const showStepper = !hideStepper;
|
|
2426
|
-
return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className:
|
|
2426
|
+
return /* @__PURE__ */ jsx65(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className: cn35("flex items-stretch", classNames2.group), children: [
|
|
2427
2427
|
showStepper && /* @__PURE__ */ jsx65(
|
|
2428
2428
|
_StepButton,
|
|
2429
2429
|
{
|
|
@@ -2458,7 +2458,7 @@ import {
|
|
|
2458
2458
|
forwardRef as forwardRef17
|
|
2459
2459
|
} from "react";
|
|
2460
2460
|
import { Radio } from "react-aria-components";
|
|
2461
|
-
import { cn as
|
|
2461
|
+
import { cn as cn37, useClassNames as useClassNames41 } from "@marigold/system";
|
|
2462
2462
|
|
|
2463
2463
|
// src/Radio/Context.ts
|
|
2464
2464
|
import { createContext as createContext6, useContext as useContext12 } from "react";
|
|
@@ -2469,7 +2469,7 @@ var useRadioGroupContext = () => useContext12(RadioGroupContext);
|
|
|
2469
2469
|
|
|
2470
2470
|
// src/Radio/RadioGroup.tsx
|
|
2471
2471
|
import { RadioGroup } from "react-aria-components";
|
|
2472
|
-
import { cn as
|
|
2472
|
+
import { cn as cn36, useClassNames as useClassNames40 } from "@marigold/system";
|
|
2473
2473
|
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2474
2474
|
var _RadioGroup = ({
|
|
2475
2475
|
variant,
|
|
@@ -2511,7 +2511,7 @@ var _RadioGroup = ({
|
|
|
2511
2511
|
role: "presentation",
|
|
2512
2512
|
"data-testid": "group",
|
|
2513
2513
|
"data-orientation": orientation,
|
|
2514
|
-
className:
|
|
2514
|
+
className: cn36(
|
|
2515
2515
|
classNames2.group,
|
|
2516
2516
|
"flex items-start",
|
|
2517
2517
|
orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
|
|
@@ -2529,7 +2529,7 @@ var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /*
|
|
|
2529
2529
|
var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
|
|
2530
2530
|
"div",
|
|
2531
2531
|
{
|
|
2532
|
-
className:
|
|
2532
|
+
className: cn37(
|
|
2533
2533
|
"bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
|
|
2534
2534
|
className
|
|
2535
2535
|
),
|
|
@@ -2550,7 +2550,7 @@ var _Radio = forwardRef17(
|
|
|
2550
2550
|
Radio,
|
|
2551
2551
|
{
|
|
2552
2552
|
ref,
|
|
2553
|
-
className:
|
|
2553
|
+
className: cn37(
|
|
2554
2554
|
"group/radio",
|
|
2555
2555
|
"relative flex items-center gap-[1ch]",
|
|
2556
2556
|
width || groupWidth || "w-full",
|
|
@@ -2564,7 +2564,7 @@ var _Radio = forwardRef17(
|
|
|
2564
2564
|
Icon3,
|
|
2565
2565
|
{
|
|
2566
2566
|
checked: isSelected,
|
|
2567
|
-
className:
|
|
2567
|
+
className: cn37(
|
|
2568
2568
|
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2569
2569
|
classNames2.radio
|
|
2570
2570
|
)
|
|
@@ -2608,7 +2608,7 @@ import {
|
|
|
2608
2608
|
Select,
|
|
2609
2609
|
SelectValue
|
|
2610
2610
|
} from "react-aria-components";
|
|
2611
|
-
import { cn as
|
|
2611
|
+
import { cn as cn38, useClassNames as useClassNames42 } from "@marigold/system";
|
|
2612
2612
|
import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2613
2613
|
var _Select = forwardRef19(
|
|
2614
2614
|
({
|
|
@@ -2635,7 +2635,7 @@ var _Select = forwardRef19(
|
|
|
2635
2635
|
/* @__PURE__ */ jsxs29(
|
|
2636
2636
|
Button6,
|
|
2637
2637
|
{
|
|
2638
|
-
className:
|
|
2638
|
+
className: cn38(
|
|
2639
2639
|
"flex w-full items-center justify-between gap-1 overflow-hidden",
|
|
2640
2640
|
classNames2.select
|
|
2641
2641
|
),
|
|
@@ -2653,7 +2653,7 @@ _Select.Option = _ListBox.Item;
|
|
|
2653
2653
|
_Select.Section = _ListBox.Section;
|
|
2654
2654
|
|
|
2655
2655
|
// src/Scrollable/Scrollable.tsx
|
|
2656
|
-
import { cn as
|
|
2656
|
+
import { cn as cn39, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2657
2657
|
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
2658
2658
|
var Scrollable = ({
|
|
2659
2659
|
children,
|
|
@@ -2664,7 +2664,7 @@ var Scrollable = ({
|
|
|
2664
2664
|
"div",
|
|
2665
2665
|
{
|
|
2666
2666
|
...props,
|
|
2667
|
-
className:
|
|
2667
|
+
className: cn39(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2668
2668
|
style: createVar10({ height }),
|
|
2669
2669
|
children
|
|
2670
2670
|
}
|
|
@@ -2679,7 +2679,7 @@ import {
|
|
|
2679
2679
|
SliderTrack
|
|
2680
2680
|
} from "react-aria-components";
|
|
2681
2681
|
import {
|
|
2682
|
-
cn as
|
|
2682
|
+
cn as cn40,
|
|
2683
2683
|
width as twWidth3,
|
|
2684
2684
|
useClassNames as useClassNames43
|
|
2685
2685
|
} from "@marigold/system";
|
|
@@ -2705,7 +2705,7 @@ var _Slider = forwardRef20(
|
|
|
2705
2705
|
return /* @__PURE__ */ jsxs30(
|
|
2706
2706
|
Slider,
|
|
2707
2707
|
{
|
|
2708
|
-
className:
|
|
2708
|
+
className: cn40(
|
|
2709
2709
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2710
2710
|
classNames2.container,
|
|
2711
2711
|
twWidth3[width]
|
|
@@ -2714,15 +2714,15 @@ var _Slider = forwardRef20(
|
|
|
2714
2714
|
...props,
|
|
2715
2715
|
children: [
|
|
2716
2716
|
/* @__PURE__ */ jsx71(_Label, { children: props.children }),
|
|
2717
|
-
/* @__PURE__ */ jsx71(SliderOutput, { className:
|
|
2717
|
+
/* @__PURE__ */ jsx71(SliderOutput, { className: cn40("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2718
2718
|
/* @__PURE__ */ jsx71(
|
|
2719
2719
|
SliderTrack,
|
|
2720
2720
|
{
|
|
2721
|
-
className:
|
|
2721
|
+
className: cn40("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2722
2722
|
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx71(
|
|
2723
2723
|
SliderThumb,
|
|
2724
2724
|
{
|
|
2725
|
-
className:
|
|
2725
|
+
className: cn40("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2726
2726
|
index: i,
|
|
2727
2727
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2728
2728
|
},
|
|
@@ -2743,7 +2743,7 @@ var Split = (props) => /* @__PURE__ */ jsx72("div", { ...props, role: "separator
|
|
|
2743
2743
|
// src/Stack/Stack.tsx
|
|
2744
2744
|
import {
|
|
2745
2745
|
alignment as alignment3,
|
|
2746
|
-
cn as
|
|
2746
|
+
cn as cn41,
|
|
2747
2747
|
gapSpace as gapSpace6
|
|
2748
2748
|
} from "@marigold/system";
|
|
2749
2749
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
@@ -2760,7 +2760,7 @@ var Stack = ({
|
|
|
2760
2760
|
return /* @__PURE__ */ jsx73(
|
|
2761
2761
|
"div",
|
|
2762
2762
|
{
|
|
2763
|
-
className:
|
|
2763
|
+
className: cn41(
|
|
2764
2764
|
"flex flex-col",
|
|
2765
2765
|
gapSpace6[space],
|
|
2766
2766
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2777,7 +2777,7 @@ var Stack = ({
|
|
|
2777
2777
|
import { forwardRef as forwardRef21 } from "react";
|
|
2778
2778
|
import { Switch } from "react-aria-components";
|
|
2779
2779
|
import {
|
|
2780
|
-
cn as
|
|
2780
|
+
cn as cn42,
|
|
2781
2781
|
width as twWidth4,
|
|
2782
2782
|
useClassNames as useClassNames44
|
|
2783
2783
|
} from "@marigold/system";
|
|
@@ -2805,7 +2805,7 @@ var _Switch = forwardRef21(
|
|
|
2805
2805
|
{
|
|
2806
2806
|
...props,
|
|
2807
2807
|
ref,
|
|
2808
|
-
className:
|
|
2808
|
+
className: cn42(
|
|
2809
2809
|
twWidth4[width],
|
|
2810
2810
|
"group/switch",
|
|
2811
2811
|
"flex items-center gap-[1ch]",
|
|
@@ -2816,14 +2816,14 @@ var _Switch = forwardRef21(
|
|
|
2816
2816
|
/* @__PURE__ */ jsx74("div", { className: "relative", children: /* @__PURE__ */ jsx74(
|
|
2817
2817
|
"div",
|
|
2818
2818
|
{
|
|
2819
|
-
className:
|
|
2819
|
+
className: cn42(
|
|
2820
2820
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2821
2821
|
classNames2.track
|
|
2822
2822
|
),
|
|
2823
2823
|
children: /* @__PURE__ */ jsx74(
|
|
2824
2824
|
"div",
|
|
2825
2825
|
{
|
|
2826
|
-
className:
|
|
2826
|
+
className: cn42(
|
|
2827
2827
|
"h-[22px] w-[22px]",
|
|
2828
2828
|
"cubic-bezier(.7,0,.3,1)",
|
|
2829
2829
|
"absolute left-0 top-px",
|
|
@@ -2852,7 +2852,7 @@ import {
|
|
|
2852
2852
|
Row,
|
|
2853
2853
|
useTableState
|
|
2854
2854
|
} from "@react-stately/table";
|
|
2855
|
-
import { cn as
|
|
2855
|
+
import { cn as cn48, useClassNames as useClassNames46 } from "@marigold/system";
|
|
2856
2856
|
|
|
2857
2857
|
// src/Table/Context.tsx
|
|
2858
2858
|
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
@@ -2872,7 +2872,7 @@ import { useRef as useRef4 } from "react";
|
|
|
2872
2872
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2873
2873
|
import { useTableCell } from "@react-aria/table";
|
|
2874
2874
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2875
|
-
import { cn as
|
|
2875
|
+
import { cn as cn43, useStateProps as useStateProps2 } from "@marigold/system";
|
|
2876
2876
|
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
2877
2877
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2878
2878
|
const ref = useRef4(null);
|
|
@@ -2900,7 +2900,7 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
2900
2900
|
"td",
|
|
2901
2901
|
{
|
|
2902
2902
|
ref,
|
|
2903
|
-
className:
|
|
2903
|
+
className: cn43(classNames2 == null ? void 0 : classNames2.cell),
|
|
2904
2904
|
...mergeProps3(cellProps, focusProps),
|
|
2905
2905
|
...stateProps,
|
|
2906
2906
|
align,
|
|
@@ -2914,7 +2914,7 @@ import { useRef as useRef5 } from "react";
|
|
|
2914
2914
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
2915
2915
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2916
2916
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2917
|
-
import { cn as
|
|
2917
|
+
import { cn as cn44, useStateProps as useStateProps3 } from "@marigold/system";
|
|
2918
2918
|
|
|
2919
2919
|
// src/Table/utils.ts
|
|
2920
2920
|
var mapCheckboxProps = ({
|
|
@@ -2958,7 +2958,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2958
2958
|
"td",
|
|
2959
2959
|
{
|
|
2960
2960
|
ref,
|
|
2961
|
-
className:
|
|
2961
|
+
className: cn44("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2962
2962
|
...mergeProps4(gridCellProps, focusProps),
|
|
2963
2963
|
...stateProps,
|
|
2964
2964
|
children: /* @__PURE__ */ jsx77(_Checkbox, { ...checkboxProps })
|
|
@@ -2973,7 +2973,7 @@ import { useHover } from "@react-aria/interactions";
|
|
|
2973
2973
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2974
2974
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
2975
2975
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
2976
|
-
import { cn as
|
|
2976
|
+
import { cn as cn45, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2977
2977
|
import { width as twWidth5 } from "@marigold/system";
|
|
2978
2978
|
import { jsx as jsx78, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2979
2979
|
var TableColumnHeader = ({
|
|
@@ -3002,7 +3002,7 @@ var TableColumnHeader = ({
|
|
|
3002
3002
|
{
|
|
3003
3003
|
colSpan: column.colspan,
|
|
3004
3004
|
ref,
|
|
3005
|
-
className:
|
|
3005
|
+
className: cn45("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
3006
3006
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
3007
3007
|
...stateProps,
|
|
3008
3008
|
align,
|
|
@@ -3046,7 +3046,7 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
3046
3046
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
3047
3047
|
import { useTableRow } from "@react-aria/table";
|
|
3048
3048
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
3049
|
-
import { cn as
|
|
3049
|
+
import { cn as cn46, useClassNames as useClassNames45, useStateProps as useStateProps5 } from "@marigold/system";
|
|
3050
3050
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3051
3051
|
var TableRow = ({ children, row }) => {
|
|
3052
3052
|
const ref = useRef8(null);
|
|
@@ -3081,7 +3081,7 @@ var TableRow = ({ children, row }) => {
|
|
|
3081
3081
|
"tr",
|
|
3082
3082
|
{
|
|
3083
3083
|
ref,
|
|
3084
|
-
className:
|
|
3084
|
+
className: cn46(
|
|
3085
3085
|
[
|
|
3086
3086
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
3087
3087
|
],
|
|
@@ -3104,7 +3104,7 @@ import {
|
|
|
3104
3104
|
} from "@react-aria/table";
|
|
3105
3105
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
3106
3106
|
import {
|
|
3107
|
-
cn as
|
|
3107
|
+
cn as cn47,
|
|
3108
3108
|
width as twWidth6,
|
|
3109
3109
|
useStateProps as useStateProps6
|
|
3110
3110
|
} from "@marigold/system";
|
|
@@ -3134,7 +3134,7 @@ var TableSelectAllCell = ({
|
|
|
3134
3134
|
"th",
|
|
3135
3135
|
{
|
|
3136
3136
|
ref,
|
|
3137
|
-
className:
|
|
3137
|
+
className: cn47(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
3138
3138
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3139
3139
|
...stateProps,
|
|
3140
3140
|
align,
|
|
@@ -3176,7 +3176,7 @@ var Table = ({
|
|
|
3176
3176
|
"table",
|
|
3177
3177
|
{
|
|
3178
3178
|
ref: tableRef,
|
|
3179
|
-
className:
|
|
3179
|
+
className: cn48(
|
|
3180
3180
|
"group/table",
|
|
3181
3181
|
"border-collapse whitespace-nowrap",
|
|
3182
3182
|
stretch ? "table w-full" : "block",
|
|
@@ -3236,7 +3236,7 @@ Table.Row = Row;
|
|
|
3236
3236
|
|
|
3237
3237
|
// src/Text/Text.tsx
|
|
3238
3238
|
import {
|
|
3239
|
-
cn as
|
|
3239
|
+
cn as cn49,
|
|
3240
3240
|
createVar as createVar11,
|
|
3241
3241
|
cursorStyle,
|
|
3242
3242
|
fontWeight,
|
|
@@ -3270,7 +3270,7 @@ var Text2 = ({
|
|
|
3270
3270
|
"p",
|
|
3271
3271
|
{
|
|
3272
3272
|
...props,
|
|
3273
|
-
className:
|
|
3273
|
+
className: cn49(
|
|
3274
3274
|
"text-[--color] outline-[--outline]",
|
|
3275
3275
|
classNames2,
|
|
3276
3276
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3346,7 +3346,7 @@ var _TextField = forwardRef23(
|
|
|
3346
3346
|
);
|
|
3347
3347
|
|
|
3348
3348
|
// src/Tiles/Tiles.tsx
|
|
3349
|
-
import { cn as
|
|
3349
|
+
import { cn as cn50, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3350
3350
|
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3351
3351
|
var Tiles = ({
|
|
3352
3352
|
space = 0,
|
|
@@ -3364,7 +3364,7 @@ var Tiles = ({
|
|
|
3364
3364
|
"div",
|
|
3365
3365
|
{
|
|
3366
3366
|
...props,
|
|
3367
|
-
className:
|
|
3367
|
+
className: cn50(
|
|
3368
3368
|
"grid",
|
|
3369
3369
|
gapSpace7[space],
|
|
3370
3370
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3378,7 +3378,7 @@ var Tiles = ({
|
|
|
3378
3378
|
|
|
3379
3379
|
// src/Tooltip/Tooltip.tsx
|
|
3380
3380
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3381
|
-
import { cn as
|
|
3381
|
+
import { cn as cn51, useClassNames as useClassNames49 } from "@marigold/system";
|
|
3382
3382
|
|
|
3383
3383
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3384
3384
|
import { TooltipTrigger } from "react-aria-components";
|
|
@@ -3412,7 +3412,7 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
|
3412
3412
|
Tooltip,
|
|
3413
3413
|
{
|
|
3414
3414
|
...props,
|
|
3415
|
-
className:
|
|
3415
|
+
className: cn51("group/tooltip", classNames2.container),
|
|
3416
3416
|
UNSTABLE_portalContainer: portal,
|
|
3417
3417
|
children: [
|
|
3418
3418
|
/* @__PURE__ */ jsx89(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx89("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx89("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
@@ -3654,7 +3654,7 @@ var useTabContext = () => useContext14(TabContext);
|
|
|
3654
3654
|
|
|
3655
3655
|
// src/Tabs/Tab.tsx
|
|
3656
3656
|
import { Tab } from "react-aria-components";
|
|
3657
|
-
import { cn as
|
|
3657
|
+
import { cn as cn52 } from "@marigold/system";
|
|
3658
3658
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
3659
3659
|
var _Tab = (props) => {
|
|
3660
3660
|
const { classNames: classNames2 } = useTabContext();
|
|
@@ -3662,7 +3662,7 @@ var _Tab = (props) => {
|
|
|
3662
3662
|
Tab,
|
|
3663
3663
|
{
|
|
3664
3664
|
...props,
|
|
3665
|
-
className:
|
|
3665
|
+
className: cn52(
|
|
3666
3666
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3667
3667
|
classNames2.tab
|
|
3668
3668
|
),
|
|
@@ -3673,7 +3673,7 @@ var _Tab = (props) => {
|
|
|
3673
3673
|
|
|
3674
3674
|
// src/Tabs/TabList.tsx
|
|
3675
3675
|
import { TabList } from "react-aria-components";
|
|
3676
|
-
import { cn as
|
|
3676
|
+
import { cn as cn53, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3677
3677
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
3678
3678
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3679
3679
|
const { classNames: classNames2 } = useTabContext();
|
|
@@ -3681,7 +3681,7 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3681
3681
|
TabList,
|
|
3682
3682
|
{
|
|
3683
3683
|
...props,
|
|
3684
|
-
className:
|
|
3684
|
+
className: cn53("flex", gapSpace8[space], classNames2.tabsList),
|
|
3685
3685
|
children: props.children
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/components",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.4",
|
|
4
4
|
"description": "Components for the Marigold Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@react-types/shared": "3.22.1",
|
|
44
44
|
"@react-types/table": "3.9.3",
|
|
45
45
|
"react-aria-components": "1.1.1",
|
|
46
|
-
"@marigold/icons": "1.2.
|
|
47
|
-
"@marigold/system": "7.5.
|
|
46
|
+
"@marigold/icons": "1.2.44",
|
|
47
|
+
"@marigold/system": "7.5.4",
|
|
48
48
|
"@marigold/types": "1.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|