@frontify/fondue-components 1.3.0 → 1.3.1
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/fondue-components.js +16 -14
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +44 -47
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +47 -43
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +46 -8
- package/dist/fondue-components12.js.map +1 -1
- package/dist/fondue-components13.js +8 -12
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +10 -152
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components15.js +57 -21
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components16.js +18 -18
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +112 -14
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +14 -54
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +22 -9
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +51 -26
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +16 -24
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +35 -8
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +25 -5
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +8 -15
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +5 -2360
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +14 -142
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +2358 -27
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +146 -0
- package/dist/fondue-components28.js.map +1 -0
- package/dist/fondue-components29.js +32 -0
- package/dist/fondue-components29.js.map +1 -0
- package/dist/fondue-components3.js +5 -5
- package/dist/fondue-components4.js +2 -2
- package/dist/fondue-components5.js +66 -23
- package/dist/fondue-components5.js.map +1 -1
- package/dist/fondue-components6.js +21 -56
- package/dist/fondue-components6.js.map +1 -1
- package/dist/fondue-components7.js +56 -22
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components8.js +24 -39
- package/dist/fondue-components8.js.map +1 -1
- package/dist/fondue-components9.js +36 -44
- package/dist/fondue-components9.js.map +1 -1
- package/dist/index.d.ts +91 -0
- package/package.json +1 -1
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import "./fondue-components2.js";
|
|
2
2
|
import { Button as e } from "./fondue-components3.js";
|
|
3
3
|
import { Checkbox as m } from "./fondue-components4.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { Dialog as f } from "./fondue-components5.js";
|
|
5
|
+
import { Divider as l } from "./fondue-components6.js";
|
|
6
|
+
import { Flyout as a } from "./fondue-components7.js";
|
|
7
|
+
import { Label as g } from "./fondue-components8.js";
|
|
8
|
+
import { LoadingBar as b } from "./fondue-components9.js";
|
|
9
|
+
import { SegmentedControl as C } from "./fondue-components10.js";
|
|
10
|
+
import { TextInput as L } from "./fondue-components11.js";
|
|
11
|
+
import { Tooltip as c } from "./fondue-components12.js";
|
|
11
12
|
export {
|
|
12
13
|
e as Button,
|
|
13
14
|
m as Checkbox,
|
|
14
|
-
f as
|
|
15
|
-
|
|
16
|
-
a as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
C as
|
|
20
|
-
|
|
15
|
+
f as Dialog,
|
|
16
|
+
l as Divider,
|
|
17
|
+
a as Flyout,
|
|
18
|
+
g as Label,
|
|
19
|
+
b as LoadingBar,
|
|
20
|
+
C as SegmentedControl,
|
|
21
|
+
L as TextInput,
|
|
22
|
+
c as Tooltip
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=fondue-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,53 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */ o("input", { type: "text", ...m, ref: x, className: F, "aria-invalid": t === "error" }),
|
|
15
|
-
t === "success" ? /* @__PURE__ */ o(
|
|
16
|
-
p,
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "@radix-ui/react-toggle-group";
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
import { useControllableState as S } from "./fondue-components23.js";
|
|
5
|
+
import { segmentedControlRootStyles as f, segmentedControlActiveIndicatorStyles as I, segmentedControlItemStyles as y, segmentedControlItemSeparatorStyles as N, segmentedControlItemLabelStyles as u, segmentedControlItemLabelActiveStyles as b, segmentedControlItemLabelInactiveStyles as h } from "./fondue-components24.js";
|
|
6
|
+
const d = ({ children: e, value: o, defaultValue: s, onValueChange: c, ...a }, g) => {
|
|
7
|
+
const [p, C] = S({
|
|
8
|
+
prop: o,
|
|
9
|
+
defaultProp: s,
|
|
10
|
+
onChange: c
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
13
|
+
r.Root,
|
|
17
14
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
ref: g,
|
|
16
|
+
...a,
|
|
17
|
+
className: f,
|
|
18
|
+
onValueChange: (n) => {
|
|
19
|
+
n && C(n);
|
|
20
|
+
},
|
|
21
|
+
value: p,
|
|
22
|
+
type: "single",
|
|
23
|
+
asChild: !1,
|
|
24
|
+
"aria-disabled": a.disabled,
|
|
25
|
+
children: [
|
|
26
|
+
e,
|
|
27
|
+
/* @__PURE__ */ t("div", { className: I })
|
|
28
|
+
]
|
|
21
29
|
}
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
l
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
d.displayName = "SegmentedControl.Root";
|
|
33
|
+
const i = ({ children: e, ...o }, s) => /* @__PURE__ */ l(r.Item, { ref: s, ...o, className: y, asChild: !1, children: [
|
|
34
|
+
/* @__PURE__ */ t("span", { className: N }),
|
|
35
|
+
/* @__PURE__ */ l("span", { className: u, children: [
|
|
36
|
+
/* @__PURE__ */ t("span", { className: b, children: e }),
|
|
37
|
+
/* @__PURE__ */ t("span", { className: h, children: e })
|
|
38
|
+
] })
|
|
32
39
|
] });
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"data-name": l,
|
|
39
|
-
...t,
|
|
40
|
-
ref: e,
|
|
41
|
-
className: i(N, r)
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
n.displayName = "TextField.Slot";
|
|
45
|
-
const d = a(s), y = a(n), c = d;
|
|
46
|
-
c.Root = d;
|
|
47
|
-
c.Slot = y;
|
|
40
|
+
i.displayName = "SegmentedControl.Item";
|
|
41
|
+
const j = {
|
|
42
|
+
Root: m(d),
|
|
43
|
+
Item: m(i)
|
|
44
|
+
};
|
|
48
45
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
j as SegmentedControl,
|
|
47
|
+
i as SegmentedControlItem,
|
|
48
|
+
d as SegmentedControlRoot
|
|
52
49
|
};
|
|
53
50
|
//# sourceMappingURL=fondue-components10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components10.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components10.js","sources":["../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { forwardRef, type ForwardedRef, type ReactNode } from 'react';\n\nimport { useControllableState } from '#/hooks/useControllableState';\n\nimport {\n segmentedControlActiveIndicatorStyles,\n segmentedControlItemLabelActiveStyles,\n segmentedControlItemLabelInactiveStyles,\n segmentedControlItemLabelStyles,\n segmentedControlItemSeparatorStyles,\n segmentedControlItemStyles,\n segmentedControlRootStyles,\n} from './styles/segmentedControlStyles';\n\nexport type SegmentedControlRootProps = {\n id?: string;\n children: ReactNode;\n /**\n * The default value of the segmented control\n * Used for uncontrolled components\n */\n defaultValue: string;\n /**\n * The controlled value of the segmented control\n */\n value?: string;\n /**\n * Event handler called when the value changes\n */\n onValueChange?: (value: string) => void;\n /**\n * Disable the segmented control\n * @default false\n */\n disabled?: boolean;\n};\n\nexport const SegmentedControlRoot = (\n { children, value: propsValue, defaultValue, onValueChange, ...rootProps }: SegmentedControlRootProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const [value, setValue] = useControllableState({\n prop: propsValue,\n defaultProp: defaultValue,\n onChange: onValueChange,\n });\n\n return (\n <ToggleGroupPrimitive.Root\n ref={ref}\n {...rootProps}\n className={segmentedControlRootStyles}\n onValueChange={(value) => {\n if (value) {\n setValue(value);\n }\n }}\n value={value}\n type=\"single\"\n asChild={false}\n aria-disabled={rootProps.disabled}\n >\n {children}\n {/* Active indicator */}\n <div className={segmentedControlActiveIndicatorStyles} />\n </ToggleGroupPrimitive.Root>\n );\n};\nSegmentedControlRoot.displayName = 'SegmentedControl.Root';\n\ntype SegmentedControlItemProps = {\n children: ReactNode;\n value: string;\n};\n\nexport const SegmentedControlItem = (\n { children, ...itemProps }: SegmentedControlItemProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => (\n <ToggleGroupPrimitive.Item ref={ref} {...itemProps} className={segmentedControlItemStyles} asChild={false}>\n {/* Separator */}\n <span className={segmentedControlItemSeparatorStyles} />\n <span className={segmentedControlItemLabelStyles}>\n {/* Active children */}\n <span className={segmentedControlItemLabelActiveStyles}>{children}</span>\n\n {/* Inactive children */}\n <span className={segmentedControlItemLabelInactiveStyles}>{children}</span>\n </span>\n </ToggleGroupPrimitive.Item>\n);\nSegmentedControlItem.displayName = 'SegmentedControl.Item';\n\nexport const SegmentedControl = {\n Root: forwardRef<HTMLDivElement, SegmentedControlRootProps>(SegmentedControlRoot),\n Item: forwardRef<HTMLButtonElement, SegmentedControlItemProps>(SegmentedControlItem),\n};\n"],"names":["SegmentedControlRoot","children","propsValue","defaultValue","onValueChange","rootProps","ref","value","setValue","useControllableState","jsxs","ToggleGroupPrimitive","segmentedControlRootStyles","jsx","segmentedControlActiveIndicatorStyles","SegmentedControlItem","itemProps","segmentedControlItemStyles","segmentedControlItemSeparatorStyles","segmentedControlItemLabelStyles","segmentedControlItemLabelActiveStyles","segmentedControlItemLabelInactiveStyles","SegmentedControl","forwardRef"],"mappings":";;;;;AAwCa,MAAAA,IAAuB,CAChC,EAAE,UAAAC,GAAU,OAAOC,GAAY,cAAAC,GAAc,eAAAC,GAAe,GAAGC,EAAU,GACzEC,MACC;AACD,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAqB;AAAA,IAC3C,MAAMP;AAAA,IACN,aAAaC;AAAA,IACb,UAAUC;AAAA,EAAA,CACb;AAGG,SAAA,gBAAAM;AAAA,IAACC,EAAqB;AAAA,IAArB;AAAA,MACG,KAAAL;AAAA,MACC,GAAGD;AAAA,MACJ,WAAWO;AAAA,MACX,eAAe,CAACL,MAAU;AACtB,QAAIA,KACAC,EAASD,CAAK;AAAA,MAEtB;AAAA,MACA,OAAAA;AAAA,MACA,MAAK;AAAA,MACL,SAAS;AAAA,MACT,iBAAeF,EAAU;AAAA,MAExB,UAAA;AAAA,QAAAJ;AAAA,QAED,gBAAAY,EAAC,OAAI,EAAA,WAAWC,EAAuC,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGnE;AACAd,EAAqB,cAAc;AAO5B,MAAMe,IAAuB,CAChC,EAAE,UAAAd,GAAU,GAAGe,EAAA,GACfV,MAEA,gBAAAI,EAACC,EAAqB,MAArB,EAA0B,KAAAL,GAAW,GAAGU,GAAW,WAAWC,GAA4B,SAAS,IAEhG,UAAA;AAAA,EAAC,gBAAAJ,EAAA,QAAA,EAAK,WAAWK,EAAqC,CAAA;AAAA,EACtD,gBAAAR,EAAC,QAAK,EAAA,WAAWS,GAEb,UAAA;AAAA,IAAC,gBAAAN,EAAA,QAAA,EAAK,WAAWO,GAAwC,UAAAnB,EAAS,CAAA;AAAA,IAGjE,gBAAAY,EAAA,QAAA,EAAK,WAAWQ,GAA0C,UAAApB,EAAS,CAAA;AAAA,EAAA,GACxE;AAAA,GACJ;AAEJc,EAAqB,cAAc;AAE5B,MAAMO,IAAmB;AAAA,EAC5B,MAAMC,EAAsDvB,CAAoB;AAAA,EAChF,MAAMuB,EAAyDR,CAAoB;AACvF;"}
|
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
import {
|
|
6
|
-
const a = ({ children: i, enterDelay: e = 700 }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, children: i }) });
|
|
7
|
-
a.displayName = "Tooltip.Root";
|
|
8
|
-
const d = ({ children: i, "data-test-id": e = "fondue-tooltip-content" }, r) => /* @__PURE__ */ t(o.Trigger, { "data-test-id": e, asChild: !0, ref: r, children: i });
|
|
9
|
-
d.displayName = "Tooltip.Trigger";
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { IconCheckMark as p, IconExclamationMarkTriangle as u } from "@frontify/fondue-icons";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { cn as i } from "./fondue-components14.js";
|
|
5
|
+
import { rootStyles as w, loadingStatusStyles as S, inputStyles as F, slotStyles as N } from "./fondue-components25.js";
|
|
10
6
|
const s = ({
|
|
11
|
-
children:
|
|
12
|
-
className:
|
|
13
|
-
|
|
14
|
-
"data-test-id":
|
|
15
|
-
...
|
|
16
|
-
},
|
|
17
|
-
o
|
|
7
|
+
children: l,
|
|
8
|
+
className: r,
|
|
9
|
+
status: t = "neutral",
|
|
10
|
+
"data-test-id": e = "fondue-text-input",
|
|
11
|
+
...m
|
|
12
|
+
}, x) => /* @__PURE__ */ f("div", { className: i(w, r), "data-status": t, "data-test-id": e, children: [
|
|
13
|
+
t === "loading" ? /* @__PURE__ */ o("div", { className: S, "data-test-id": `${e}-loader` }) : null,
|
|
14
|
+
/* @__PURE__ */ o("input", { type: "text", ...m, ref: x, className: F, "aria-invalid": t === "error" }),
|
|
15
|
+
t === "success" ? /* @__PURE__ */ o(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
size: 16,
|
|
19
|
+
className: "tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3",
|
|
20
|
+
"data-test-id": `${e}-success-icon`
|
|
21
|
+
}
|
|
22
|
+
) : null,
|
|
23
|
+
t === "error" ? /* @__PURE__ */ o(
|
|
24
|
+
u,
|
|
25
|
+
{
|
|
26
|
+
size: 16,
|
|
27
|
+
className: "tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3",
|
|
28
|
+
"data-test-id": `${e}-error-icon`
|
|
29
|
+
}
|
|
30
|
+
) : null,
|
|
31
|
+
l
|
|
32
|
+
] });
|
|
33
|
+
s.displayName = "TextField.Root";
|
|
34
|
+
const n = ({ name: l, className: r, ...t }, e) => /* @__PURE__ */ o(
|
|
35
|
+
"div",
|
|
18
36
|
{
|
|
19
|
-
"data-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
e
|
|
25
|
-
),
|
|
26
|
-
style: { maxWidth: r },
|
|
27
|
-
collisionPadding: 16,
|
|
28
|
-
sideOffset: 8,
|
|
29
|
-
ref: m,
|
|
30
|
-
...n,
|
|
31
|
-
children: [
|
|
32
|
-
i,
|
|
33
|
-
/* @__PURE__ */ t(o.Arrow, { asChild: !0, children: /* @__PURE__ */ t("div", { "aria-hidden": "true", className: g }) })
|
|
34
|
-
]
|
|
37
|
+
"data-slot": !0,
|
|
38
|
+
"data-name": l,
|
|
39
|
+
...t,
|
|
40
|
+
ref: e,
|
|
41
|
+
className: i(N, r)
|
|
35
42
|
}
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Content: l(s)
|
|
42
|
-
};
|
|
43
|
+
);
|
|
44
|
+
n.displayName = "TextField.Slot";
|
|
45
|
+
const d = a(s), y = a(n), c = d;
|
|
46
|
+
c.Root = d;
|
|
47
|
+
c.Slot = y;
|
|
43
48
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
d as TooltipTrigger
|
|
49
|
+
s as TextFieldRoot,
|
|
50
|
+
n as TextFieldSlot,
|
|
51
|
+
c as TextInput
|
|
48
52
|
};
|
|
49
53
|
//# sourceMappingURL=fondue-components11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components11.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components11.js","sources":["../src/components/TextInput/TextInput.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCheckMark, IconExclamationMarkTriangle } from '@frontify/fondue-icons';\nimport { forwardRef, type ChangeEvent, type ForwardedRef, type KeyboardEvent, type ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { inputStyles, loadingStatusStyles, rootStyles, slotStyles } from './styles/textInputStyles';\n\nexport type TextInputProps = {\n id?: string;\n name?: string;\n /**\n * The place where the input slots are placed\n */\n children?: ReactNode;\n /**\n * The default value of the text input\n * Used for uncontrolled components\n */\n defaultValue?: string | number;\n /**\n * The controlled value of the text input\n */\n value?: string | number;\n /**\n * Type of the text input\n * @default \"text\"\n */\n type?: 'date' | 'email' | 'hidden' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url';\n /**\n * The placeholder in the text input\n */\n placeholder?: string;\n /**\n * Disable the text input\n * @default false\n */\n disabled?: boolean;\n /**\n * Make the text input required in form\n * @default false\n */\n required?: boolean;\n /**\n * Make the text input spell-checkable\n * @default true\n */\n spellCheck?: boolean;\n /**\n * Make the text input read-only\n * @default false\n */\n readOnly?: boolean;\n /**\n * Set the type of input so autocomplete can help the user\n * @default \"on\"\n */\n autoComplete?: string;\n /**\n * The maximum length of the text input\n */\n maxLength?: number;\n /**\n * Status of the text input\n * @default \"neutral\"\n */\n status?: 'neutral' | 'success' | 'error' | 'loading';\n className?: string;\n /**\n * Event handler called when the text input value changes\n */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when the text input is blurred\n */\n onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when the text input is focused\n */\n onFocus?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when a key is pressed\n */\n onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when a key is released\n */\n onKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n 'data-test-id'?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'aria-describedby'?: string;\n};\n\nexport const TextFieldRoot = (\n {\n children,\n className,\n status = 'neutral',\n 'data-test-id': dataTestId = 'fondue-text-input',\n ...inputProps\n }: TextInputProps,\n ref: ForwardedRef<HTMLInputElement>,\n) => {\n return (\n <div className={cn(rootStyles, className)} data-status={status} data-test-id={dataTestId}>\n {status === 'loading' ? (\n <div className={loadingStatusStyles} data-test-id={`${dataTestId}-loader`} />\n ) : null}\n\n <input type=\"text\" {...inputProps} ref={ref} className={inputStyles} aria-invalid={status === 'error'} />\n\n {status === 'success' ? (\n <IconCheckMark\n size={16}\n className=\"tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3\"\n data-test-id={`${dataTestId}-success-icon`}\n />\n ) : null}\n\n {status === 'error' ? (\n <IconExclamationMarkTriangle\n size={16}\n className=\"tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3\"\n data-test-id={`${dataTestId}-error-icon`}\n />\n ) : null}\n\n {children}\n </div>\n );\n};\nTextFieldRoot.displayName = 'TextField.Root';\n\nexport type TextFieldSlotProps = {\n children: ReactNode;\n name?: 'left' | 'right';\n className?: string;\n};\n\nexport const TextFieldSlot = (\n { name, className, ...slotProps }: TextFieldSlotProps,\n forwardedRef: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-slot={true}\n data-name={name}\n {...slotProps}\n ref={forwardedRef}\n className={cn(slotStyles, className)}\n />\n );\n};\n\nTextFieldSlot.displayName = 'TextField.Slot';\n\nconst ForwardedRefTextFieldRoot = forwardRef<HTMLInputElement, TextInputProps>(TextFieldRoot);\nconst ForwardedRefTextFieldSlot = forwardRef<HTMLDivElement, TextFieldSlotProps>(TextFieldSlot);\n// @ts-expect-error We support both single component (without slots) and compound components (with slots)\nexport const TextInput: typeof TextFieldRoot & {\n Root: typeof ForwardedRefTextFieldRoot;\n Slot: typeof ForwardedRefTextFieldSlot;\n} = ForwardedRefTextFieldRoot;\nTextInput.Root = ForwardedRefTextFieldRoot;\nTextInput.Slot = ForwardedRefTextFieldSlot;\n"],"names":["TextFieldRoot","children","className","status","dataTestId","inputProps","ref","jsxs","cn","rootStyles","loadingStatusStyles","jsx","inputStyles","IconCheckMark","IconExclamationMarkTriangle","TextFieldSlot","name","slotProps","forwardedRef","slotStyles","ForwardedRefTextFieldRoot","forwardRef","ForwardedRefTextFieldSlot","TextInput"],"mappings":";;;;;AA+FO,MAAMA,IAAgB,CACzB;AAAA,EACI,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,gBAAgBC,IAAa;AAAA,EAC7B,GAAGC;AACP,GACAC,MAGI,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAGC,GAAYP,CAAS,GAAG,eAAaC,GAAQ,gBAAcC,GACzE,UAAA;AAAA,EAAWD,MAAA,8BACP,OAAI,EAAA,WAAWO,GAAqB,gBAAc,GAAGN,CAAU,UAAA,CAAW,IAC3E;AAAA,EAEJ,gBAAAO,EAAC,SAAM,EAAA,MAAK,QAAQ,GAAGN,GAAY,KAAAC,GAAU,WAAWM,GAAa,gBAAcT,MAAW,QAAS,CAAA;AAAA,EAEtGA,MAAW,YACR,gBAAAQ;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,MAAM;AAAA,MACN,WAAU;AAAA,MACV,gBAAc,GAAGT,CAAU;AAAA,IAAA;AAAA,EAAA,IAE/B;AAAA,EAEHD,MAAW,UACR,gBAAAQ;AAAA,IAACG;AAAA,IAAA;AAAA,MACG,MAAM;AAAA,MACN,WAAU;AAAA,MACV,gBAAc,GAAGV,CAAU;AAAA,IAAA;AAAA,EAAA,IAE/B;AAAA,EAEHH;AACL,EAAA,CAAA;AAGRD,EAAc,cAAc;AAQf,MAAAe,IAAgB,CACzB,EAAE,MAAAC,GAAM,WAAAd,GAAW,GAAGe,KACtBC,MAGI,gBAAAP;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,aAAW;AAAA,IACX,aAAWK;AAAA,IACV,GAAGC;AAAA,IACJ,KAAKC;AAAA,IACL,WAAWV,EAAGW,GAAYjB,CAAS;AAAA,EAAA;AAAA;AAK/Ca,EAAc,cAAc;AAE5B,MAAMK,IAA4BC,EAA6CrB,CAAa,GACtFsB,IAA4BD,EAA+CN,CAAa,GAEjFQ,IAGTH;AACJG,EAAU,OAAOH;AACjBG,EAAU,OAAOD;"}
|
|
@@ -1,11 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-tooltip";
|
|
3
|
+
import { forwardRef as l } from "react";
|
|
4
|
+
import { cn as T } from "./fondue-components14.js";
|
|
5
|
+
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components26.js";
|
|
6
|
+
const a = ({ children: i, enterDelay: e = 700 }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, children: i }) });
|
|
7
|
+
a.displayName = "Tooltip.Root";
|
|
8
|
+
const d = ({ children: i, "data-test-id": e = "fondue-tooltip-content" }, r) => /* @__PURE__ */ t(o.Trigger, { "data-test-id": e, asChild: !0, ref: r, children: i });
|
|
9
|
+
d.displayName = "Tooltip.Trigger";
|
|
10
|
+
const s = ({
|
|
11
|
+
children: i,
|
|
12
|
+
className: e,
|
|
13
|
+
maxWidth: r,
|
|
14
|
+
"data-test-id": p = "fondue-tooltip-content",
|
|
15
|
+
...n
|
|
16
|
+
}, m) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ c(
|
|
17
|
+
o.Content,
|
|
18
|
+
{
|
|
19
|
+
"data-test-id": p,
|
|
20
|
+
className: T(
|
|
21
|
+
f({
|
|
22
|
+
...n
|
|
23
|
+
}),
|
|
24
|
+
e
|
|
25
|
+
),
|
|
26
|
+
style: { maxWidth: r },
|
|
27
|
+
collisionPadding: 16,
|
|
28
|
+
sideOffset: 8,
|
|
29
|
+
ref: m,
|
|
30
|
+
...n,
|
|
31
|
+
children: [
|
|
32
|
+
i,
|
|
33
|
+
/* @__PURE__ */ t(o.Arrow, { asChild: !0, children: /* @__PURE__ */ t("div", { "aria-hidden": "true", className: g }) })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
s.displayName = "Tooltip.Content";
|
|
38
|
+
const R = {
|
|
39
|
+
Root: a,
|
|
40
|
+
Trigger: l(d),
|
|
41
|
+
Content: l(s)
|
|
42
|
+
};
|
|
6
43
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
44
|
+
R as Tooltip,
|
|
45
|
+
s as TooltipContent,
|
|
46
|
+
a as TooltipRoot,
|
|
47
|
+
d as TooltipTrigger
|
|
10
48
|
};
|
|
11
49
|
//# sourceMappingURL=fondue-components12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components12.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components12.js","sources":["../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as RadixTooltip from '@radix-ui/react-tooltip';\nimport { forwardRef, type ForwardedRef, type ReactElement, type ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { tooltipArrowStyles, tooltipContentStyles } from './styles/tooltipStyles';\n\nexport type TooltipRootProps = {\n enterDelay?: number;\n children: Array<ReactElement<TooltipTriggerProps | TooltipContentProps>>;\n};\nexport type TooltipTriggerProps = { children: ReactNode; 'data-test-id'?: string };\nexport type TooltipContentProps = {\n /**\n * @default spacious\n */\n padding?: 'spacious' | 'compact';\n /**\n * Defines the preffered side of the tooltip. It will not be respected if there are collisions with the viewport.\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n maxWidth?: string;\n className?: string;\n children: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const TooltipRoot = ({ children, enterDelay = 700 }: TooltipRootProps) => {\n return (\n <RadixTooltip.Provider>\n <RadixTooltip.Root delayDuration={enterDelay}>{children}</RadixTooltip.Root>\n </RadixTooltip.Provider>\n );\n};\nTooltipRoot.displayName = 'Tooltip.Root';\n\nexport const TooltipTrigger = (\n { children, 'data-test-id': dataTestId = 'fondue-tooltip-content' }: TooltipTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixTooltip.Trigger data-test-id={dataTestId} asChild ref={ref}>\n {children}\n </RadixTooltip.Trigger>\n );\n};\nTooltipTrigger.displayName = 'Tooltip.Trigger';\n\nexport const TooltipContent = (\n {\n children,\n className,\n maxWidth,\n 'data-test-id': dataTestId = 'fondue-tooltip-content',\n ...props\n }: TooltipContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n data-test-id={dataTestId}\n className={cn(\n tooltipContentStyles({\n ...props,\n }),\n className,\n )}\n style={{ maxWidth }}\n collisionPadding={16}\n sideOffset={8}\n ref={ref}\n {...props}\n >\n {children}\n\n <RadixTooltip.Arrow asChild>\n <div aria-hidden=\"true\" className={tooltipArrowStyles} />\n </RadixTooltip.Arrow>\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n );\n};\nTooltipContent.displayName = 'Tooltip.Content';\n\nexport const Tooltip = {\n Root: TooltipRoot,\n Trigger: forwardRef<HTMLButtonElement, TooltipTriggerProps>(TooltipTrigger),\n Content: forwardRef<HTMLDivElement, TooltipContentProps>(TooltipContent),\n};\n"],"names":["TooltipRoot","children","enterDelay","jsx","RadixTooltip","TooltipTrigger","dataTestId","ref","TooltipContent","className","maxWidth","props","jsxs","cn","tooltipContentStyles","tooltipArrowStyles","Tooltip","forwardRef"],"mappings":";;;;;AA6BO,MAAMA,IAAc,CAAC,EAAE,UAAAC,GAAU,YAAAC,IAAa,UAE7C,gBAAAC,EAACC,EAAa,UAAb,EACG,UAAA,gBAAAD,EAACC,EAAa,MAAb,EAAkB,eAAeF,GAAa,UAAAD,EAAS,CAAA,EAC5D,CAAA;AAGRD,EAAY,cAAc;AAEb,MAAAK,IAAiB,CAC1B,EAAE,UAAAJ,GAAU,gBAAgBK,IAAa,4BACzCC,MAGI,gBAAAJ,EAACC,EAAa,SAAb,EAAqB,gBAAcE,GAAY,SAAO,IAAC,KAAAC,GACnD,UAAAN,EACL,CAAA;AAGRI,EAAe,cAAc;AAEtB,MAAMG,IAAiB,CAC1B;AAAA,EACI,UAAAP;AAAA,EACA,WAAAQ;AAAA,EACA,UAAAC;AAAA,EACA,gBAAgBJ,IAAa;AAAA,EAC7B,GAAGK;AACP,GACAJ,MAGI,gBAAAJ,EAACC,EAAa,QAAb,EACG,UAAA,gBAAAQ;AAAA,EAACR,EAAa;AAAA,EAAb;AAAA,IACG,gBAAcE;AAAA,IACd,WAAWO;AAAA,MACPC,EAAqB;AAAA,QACjB,GAAGH;AAAA,MAAA,CACN;AAAA,MACDF;AAAA,IACJ;AAAA,IACA,OAAO,EAAE,UAAAC,EAAS;AAAA,IAClB,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,KAAAH;AAAA,IACC,GAAGI;AAAA,IAEH,UAAA;AAAA,MAAAV;AAAA,MAEA,gBAAAE,EAAAC,EAAa,OAAb,EAAmB,SAAO,IACvB,UAAC,gBAAAD,EAAA,OAAA,EAAI,eAAY,QAAO,WAAWY,EAAA,CAAoB,EAC3D,CAAA;AAAA,IAAA;AAAA,EAAA;AAER,EAAA,CAAA;AAGRP,EAAe,cAAc;AAEtB,MAAMQ,IAAU;AAAA,EACnB,MAAMhB;AAAA,EACN,SAASiB,EAAmDZ,CAAc;AAAA,EAC1E,SAASY,EAAgDT,CAAc;AAC3E;"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
classGroups: {
|
|
7
|
-
"font-size": ["text-body-x-small", "text-body-small", "text-body-medium", "text-body-large"]
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}), m = (...t) => r(...t), x = (t) => o(t);
|
|
1
|
+
import { cn as t } from "./fondue-components14.js";
|
|
2
|
+
const i = "tw-ring-4 tw-ring-blue tw-ring-offset-2 dark:tw-ring-offset-black tw-outline-none", n = "focus-visible:tw-ring-4 focus-visible:tw-ring-blue focus-visible:tw-ring-offset-2 focus-visible:dark:tw-ring-offset-black focus-visible:tw-outline-none";
|
|
3
|
+
t([i, "tw-ring-inset"]);
|
|
4
|
+
t([n, "tw-ring-inset"]);
|
|
5
|
+
const o = "focus-visible:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue";
|
|
11
6
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
o as FOCUS_OUTLINE,
|
|
8
|
+
i as FOCUS_STYLE,
|
|
9
|
+
n as FOCUS_VISIBLE_STYLE
|
|
14
10
|
};
|
|
15
11
|
//# sourceMappingURL=fondue-components13.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components13.js","sources":["../src/utilities/
|
|
1
|
+
{"version":3,"file":"fondue-components13.js","sources":["../src/utilities/focusStyle.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { cn } from './styleUtilities';\n\nexport const FOCUS_STYLE = 'tw-ring-4 tw-ring-blue tw-ring-offset-2 dark:tw-ring-offset-black tw-outline-none';\nexport const FOCUS_STYLE_NO_OFFSET = 'tw-ring-4 tw-ring-blue dark:tw-ring-offset-black tw-outline-none';\nexport const FOCUS_VISIBLE_STYLE =\n 'focus-visible:tw-ring-4 focus-visible:tw-ring-blue focus-visible:tw-ring-offset-2 focus-visible:dark:tw-ring-offset-black focus-visible:tw-outline-none';\nexport const FOCUS_STYLE_INSET = cn([FOCUS_STYLE, 'tw-ring-inset']);\nexport const FOCUS_VISIBLE_STYLE_INSET = cn([FOCUS_VISIBLE_STYLE, 'tw-ring-inset']);\nexport const FOCUS_WITHIN_STYLE =\n 'focus-within:tw-ring-4 focus-within:tw-ring-blue focus-within:tw-ring-offset-2 focus-within:dark:tw-ring-offset-black focus-within:tw-outline-none';\nexport const FOCUS_OUTLINE = 'focus-visible:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue';\n"],"names":["FOCUS_STYLE","FOCUS_VISIBLE_STYLE","cn","FOCUS_OUTLINE"],"mappings":";AAIO,MAAMA,IAAc,qFAEdC,IACT;AAC6BC,EAAG,CAACF,GAAa,eAAe,CAAC;AACzBE,EAAG,CAACD,GAAqB,eAAe,CAAC;AAG3E,MAAME,IAAgB;"}
|
|
@@ -1,157 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
rounding: {
|
|
9
|
-
medium: "tw-rounded",
|
|
10
|
-
full: "tw-rounded-full"
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
small: "tw-h-6 tw-text-body-small",
|
|
14
|
-
medium: "tw-h-9 tw-text-body-medium",
|
|
15
|
-
large: "tw-h-12 tw-text-body-large"
|
|
16
|
-
},
|
|
17
|
-
aspect: {
|
|
18
|
-
square: "tw-aspect-square tw-px-0",
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
hugWidth: {
|
|
22
|
-
false: "tw-w-full"
|
|
23
|
-
},
|
|
24
|
-
emphasis: {
|
|
25
|
-
default: "",
|
|
26
|
-
weak: "",
|
|
27
|
-
strong: ""
|
|
28
|
-
},
|
|
29
|
-
style: {
|
|
30
|
-
default: "",
|
|
31
|
-
positive: "",
|
|
32
|
-
negative: "",
|
|
33
|
-
danger: "",
|
|
34
|
-
loud: ""
|
|
1
|
+
import { extendTailwindMerge as e } from "./fondue-components27.js";
|
|
2
|
+
import { tv as o } from "./fondue-components28.js";
|
|
3
|
+
const r = e({
|
|
4
|
+
prefix: "tw-",
|
|
5
|
+
extend: {
|
|
6
|
+
classGroups: {
|
|
7
|
+
"font-size": ["text-body-x-small", "text-body-small", "text-body-medium", "text-body-large"]
|
|
35
8
|
}
|
|
36
|
-
},
|
|
37
|
-
compoundVariants: [
|
|
38
|
-
{
|
|
39
|
-
disabled: !1,
|
|
40
|
-
style: "default",
|
|
41
|
-
emphasis: "default",
|
|
42
|
-
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
disabled: !1,
|
|
46
|
-
style: "default",
|
|
47
|
-
emphasis: "weak",
|
|
48
|
-
class: "tw-border-transparent hover:tw-bg-button-background-hover hover:tw-border-button-border active:tw-bg-button-background-pressed"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
disabled: !1,
|
|
52
|
-
style: "default",
|
|
53
|
-
emphasis: "strong",
|
|
54
|
-
class: "tw-bg-button-strong-background tw-border-button-strong-border hover:tw-bg-button-strong-background-hover active:tw-bg-button-strong-background-pressed"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
disabled: !1,
|
|
58
|
-
style: "positive",
|
|
59
|
-
emphasis: "default",
|
|
60
|
-
class: "tw-bg-button-positive-background tw-border-button-positive-border hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
disabled: !1,
|
|
64
|
-
style: "positive",
|
|
65
|
-
emphasis: "weak",
|
|
66
|
-
class: "tw-border-transparent hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border active:tw-bg-button-positive-background-pressed"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
disabled: !1,
|
|
70
|
-
style: "positive",
|
|
71
|
-
emphasis: "strong",
|
|
72
|
-
class: "tw-bg-button-strong-positive-background tw-border-button-strong-positive-border hover:tw-bg-button-strong-positive-background-hover active:tw-bg-button-strong-positive-background-pressed"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
disabled: !1,
|
|
76
|
-
style: "negative",
|
|
77
|
-
emphasis: "default",
|
|
78
|
-
class: "tw-bg-button-negative-background tw-border-button-negative-border hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
disabled: !1,
|
|
82
|
-
style: "negative",
|
|
83
|
-
emphasis: "weak",
|
|
84
|
-
class: "tw-border-transparent hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border active:tw-bg-button-negative-background-pressed"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
disabled: !1,
|
|
88
|
-
style: "negative",
|
|
89
|
-
emphasis: "strong",
|
|
90
|
-
class: "tw-bg-button-strong-negative-background tw-border-button-strong-negative-border hover:tw-bg-button-strong-negative-background-hover active:tw-bg-button-strong-negative-background-pressed"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
disabled: !1,
|
|
94
|
-
style: "danger",
|
|
95
|
-
emphasis: "default",
|
|
96
|
-
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
disabled: !1,
|
|
100
|
-
style: "danger",
|
|
101
|
-
emphasis: "weak",
|
|
102
|
-
class: "tw-border-transparent hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
disabled: !1,
|
|
106
|
-
style: "danger",
|
|
107
|
-
emphasis: "strong",
|
|
108
|
-
class: "tw-bg-button-danger-background tw-border-button-danger-border hover:tw-bg-button-danger-background-hover active:tw-bg-button-danger-background-pressed"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
disabled: !1,
|
|
112
|
-
style: "loud",
|
|
113
|
-
emphasis: "default",
|
|
114
|
-
class: "tw-bg-box-selected tw-border-button-border hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed "
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
disabled: !1,
|
|
118
|
-
style: "loud",
|
|
119
|
-
emphasis: "weak",
|
|
120
|
-
class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
disabled: !1,
|
|
124
|
-
style: "loud",
|
|
125
|
-
emphasis: "strong",
|
|
126
|
-
class: "tw-bg-box-selected-strong tw-border-box-selected-strong hover:tw-bg-box-selected-strong-hover active:tw-bg-box-selected-strong-pressed "
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
aspect: "default",
|
|
130
|
-
size: "small",
|
|
131
|
-
class: "tw-px-2"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
aspect: "default",
|
|
135
|
-
size: "medium",
|
|
136
|
-
class: "tw-px-4"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
aspect: "default",
|
|
140
|
-
size: "large",
|
|
141
|
-
class: "tw-px-6"
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
defaultVariants: {
|
|
145
|
-
style: "default",
|
|
146
|
-
emphasis: "strong",
|
|
147
|
-
size: "medium",
|
|
148
|
-
rounding: "medium",
|
|
149
|
-
hugWidth: !0,
|
|
150
|
-
aspect: "default",
|
|
151
|
-
disabled: !1
|
|
152
9
|
}
|
|
153
|
-
});
|
|
10
|
+
}), m = (...t) => r(...t), x = (t) => o(t);
|
|
154
11
|
export {
|
|
155
|
-
|
|
12
|
+
m as cn,
|
|
13
|
+
x as sv
|
|
156
14
|
};
|
|
157
15
|
//# sourceMappingURL=fondue-components14.js.map
|