@frontify/fondue-components 1.3.2 → 1.3.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/fondue-components.js +1 -1
- package/dist/fondue-components10.js +2 -2
- package/dist/fondue-components11.js +68 -45
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +12 -8
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +153 -10
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components15.js +21 -57
- 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 +15 -112
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +25 -15
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +54 -24
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +12 -55
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +31 -13
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +23 -33
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +9 -25
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +6 -8
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +15 -5
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +2 -15
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +11 -13
- package/dist/fondue-components3.js.map +1 -1
- package/dist/fondue-components4.js +2 -2
- package/dist/fondue-components4.js.map +1 -1
- package/dist/fondue-components5.js +1 -1
- package/dist/fondue-components6.js +2 -2
- package/dist/fondue-components7.js +1 -1
- package/dist/fondue-components8.js +1 -1
- package/dist/fondue-components9.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +19 -19
- package/dist/fondue-components2.js +0 -2
- package/dist/fondue-components2.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { forwardRef as m } from "react";
|
|
4
|
-
import { useControllableState as S } from "./fondue-
|
|
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-
|
|
4
|
+
import { useControllableState as S } from "./fondue-components22.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-components23.js";
|
|
6
6
|
const d = ({ children: e, value: o, defaultValue: s, onValueChange: c, ...a }, g) => {
|
|
7
7
|
const [p, C] = S({
|
|
8
8
|
prop: o,
|
|
@@ -1,53 +1,76 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IconCheckMark as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { rootStyles as
|
|
6
|
-
const
|
|
7
|
-
children:
|
|
8
|
-
className:
|
|
9
|
-
status:
|
|
10
|
-
"data-test-id":
|
|
11
|
-
...
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { jsxs as F, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { IconCheckMark as R, IconExclamationMarkTriangle as g } from "@frontify/fondue-icons";
|
|
3
|
+
import { forwardRef as d, useRef as S } from "react";
|
|
4
|
+
import { cn as n } from "./fondue-components13.js";
|
|
5
|
+
import { rootStyles as N, loadingStatusStyles as h, inputStyles as y, slotStyles as T } from "./fondue-components24.js";
|
|
6
|
+
const m = ({
|
|
7
|
+
children: s,
|
|
8
|
+
className: i,
|
|
9
|
+
status: e = "neutral",
|
|
10
|
+
"data-test-id": o = "fondue-text-input",
|
|
11
|
+
...t
|
|
12
|
+
}, u) => {
|
|
13
|
+
const c = S(!1);
|
|
14
|
+
return /* @__PURE__ */ F("div", { className: n(N, i), "data-status": e, "data-test-id": o, children: [
|
|
15
|
+
e === "loading" ? /* @__PURE__ */ r("div", { className: h, "data-test-id": `${o}-loader` }) : null,
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
|
+
"input",
|
|
18
|
+
{
|
|
19
|
+
onMouseDown: (a) => {
|
|
20
|
+
c.current = !0, a.currentTarget.dataset.showFocusRing = "false";
|
|
21
|
+
},
|
|
22
|
+
type: "text",
|
|
23
|
+
...t,
|
|
24
|
+
onFocus: (a) => {
|
|
25
|
+
var l;
|
|
26
|
+
c.current || (a.target.dataset.showFocusRing = "true"), (l = t.onFocus) == null || l.call(t, a);
|
|
27
|
+
},
|
|
28
|
+
onBlur: (a) => {
|
|
29
|
+
var l;
|
|
30
|
+
a.target.dataset.showFocusRing = "false", c.current = !1, (l = t.onBlur) == null || l.call(t, a);
|
|
31
|
+
},
|
|
32
|
+
ref: u,
|
|
33
|
+
className: y,
|
|
34
|
+
"aria-invalid": e === "error"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
e === "success" ? /* @__PURE__ */ r(
|
|
38
|
+
R,
|
|
39
|
+
{
|
|
40
|
+
size: 16,
|
|
41
|
+
className: "tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3",
|
|
42
|
+
"data-test-id": `${o}-success-icon`
|
|
43
|
+
}
|
|
44
|
+
) : null,
|
|
45
|
+
e === "error" ? /* @__PURE__ */ r(
|
|
46
|
+
g,
|
|
47
|
+
{
|
|
48
|
+
size: 16,
|
|
49
|
+
className: "tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3",
|
|
50
|
+
"data-test-id": `${o}-error-icon`
|
|
51
|
+
}
|
|
52
|
+
) : null,
|
|
53
|
+
s
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
m.displayName = "TextField.Root";
|
|
57
|
+
const f = ({ name: s, className: i, ...e }, o) => /* @__PURE__ */ r(
|
|
35
58
|
"div",
|
|
36
59
|
{
|
|
37
60
|
"data-slot": !0,
|
|
38
|
-
"data-name":
|
|
39
|
-
...
|
|
40
|
-
ref:
|
|
41
|
-
className:
|
|
61
|
+
"data-name": s,
|
|
62
|
+
...e,
|
|
63
|
+
ref: o,
|
|
64
|
+
className: n(T, i)
|
|
42
65
|
}
|
|
43
66
|
);
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
f.displayName = "TextField.Slot";
|
|
68
|
+
const x = d(m), k = d(f), w = x;
|
|
69
|
+
w.Root = x;
|
|
70
|
+
w.Slot = k;
|
|
48
71
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
72
|
+
m as TextFieldRoot,
|
|
73
|
+
f as TextFieldSlot,
|
|
74
|
+
w as TextInput
|
|
52
75
|
};
|
|
53
76
|
//# sourceMappingURL=fondue-components11.js.map
|
|
@@ -1 +1 @@
|
|
|
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 {\n
|
|
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 {\n forwardRef,\n useRef,\n type ChangeEvent,\n type ForwardedRef,\n type KeyboardEvent,\n type ReactNode,\n type SyntheticEvent,\n} 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 /**\n * Event handler called when the text inside of text input is selected\n */\n onSelect?: (event: SyntheticEvent<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 const wasClicked = useRef(false);\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 <input\n onMouseDown={(mouseEvent) => {\n wasClicked.current = true;\n mouseEvent.currentTarget.dataset.showFocusRing = 'false';\n }}\n type=\"text\"\n {...inputProps}\n onFocus={(focusEvent) => {\n if (!wasClicked.current) {\n focusEvent.target.dataset.showFocusRing = 'true';\n }\n inputProps.onFocus?.(focusEvent);\n }}\n onBlur={(blurEvent) => {\n blurEvent.target.dataset.showFocusRing = 'false';\n wasClicked.current = false;\n inputProps.onBlur?.(blurEvent);\n }}\n ref={ref}\n className={inputStyles}\n aria-invalid={status === 'error'}\n />\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","wasClicked","useRef","jsxs","cn","rootStyles","loadingStatusStyles","jsx","mouseEvent","focusEvent","_a","blurEvent","inputStyles","IconCheckMark","IconExclamationMarkTriangle","TextFieldSlot","name","slotProps","forwardedRef","slotStyles","ForwardedRefTextFieldRoot","forwardRef","ForwardedRefTextFieldSlot","TextInput"],"mappings":";;;;;AA2GO,MAAMA,IAAgB,CACzB;AAAA,EACI,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,gBAAgBC,IAAa;AAAA,EAC7B,GAAGC;AACP,GACAC,MACC;AACK,QAAAC,IAAaC,EAAO,EAAK;AAG3B,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAGC,GAAYT,CAAS,GAAG,eAAaC,GAAQ,gBAAcC,GACzE,UAAA;AAAA,IAAWD,MAAA,8BACP,OAAI,EAAA,WAAWS,GAAqB,gBAAc,GAAGR,CAAU,UAAA,CAAW,IAC3E;AAAA,IACJ,gBAAAS;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,aAAa,CAACC,MAAe;AACzB,UAAAP,EAAW,UAAU,IACVO,EAAA,cAAc,QAAQ,gBAAgB;AAAA,QACrD;AAAA,QACA,MAAK;AAAA,QACJ,GAAGT;AAAA,QACJ,SAAS,CAACU,MAAe;;AACjB,UAACR,EAAW,YACDQ,EAAA,OAAO,QAAQ,gBAAgB,UAE9CC,IAAAX,EAAW,YAAX,QAAAW,EAAA,KAAAX,GAAqBU;AAAA,QACzB;AAAA,QACA,QAAQ,CAACE,MAAc;;AACT,UAAAA,EAAA,OAAO,QAAQ,gBAAgB,SACzCV,EAAW,UAAU,KACrBS,IAAAX,EAAW,WAAX,QAAAW,EAAA,KAAAX,GAAoBY;AAAA,QACxB;AAAA,QACA,KAAAX;AAAA,QACA,WAAWY;AAAA,QACX,gBAAcf,MAAW;AAAA,MAAA;AAAA,IAC7B;AAAA,IAECA,MAAW,YACR,gBAAAU;AAAA,MAACM;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,WAAU;AAAA,QACV,gBAAc,GAAGf,CAAU;AAAA,MAAA;AAAA,IAAA,IAE/B;AAAA,IAEHD,MAAW,UACR,gBAAAU;AAAA,MAACO;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,WAAU;AAAA,QACV,gBAAc,GAAGhB,CAAU;AAAA,MAAA;AAAA,IAAA,IAE/B;AAAA,IAEHH;AAAA,EACL,EAAA,CAAA;AAER;AACAD,EAAc,cAAc;AAQf,MAAAqB,IAAgB,CACzB,EAAE,MAAAC,GAAM,WAAApB,GAAW,GAAGqB,KACtBC,MAGI,gBAAAX;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,aAAW;AAAA,IACX,aAAWS;AAAA,IACV,GAAGC;AAAA,IACJ,KAAKC;AAAA,IACL,WAAWd,EAAGe,GAAYvB,CAAS;AAAA,EAAA;AAAA;AAK/CmB,EAAc,cAAc;AAE5B,MAAMK,IAA4BC,EAA6C3B,CAAa,GACtF4B,IAA4BD,EAA+CN,CAAa,GAEjFQ,IAGTH;AACJG,EAAU,OAAOH;AACjBG,EAAU,OAAOD;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-tooltip";
|
|
3
3
|
import { forwardRef as l } from "react";
|
|
4
|
-
import { cn as T } from "./fondue-
|
|
5
|
-
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-
|
|
4
|
+
import { cn as T } from "./fondue-components13.js";
|
|
5
|
+
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components25.js";
|
|
6
6
|
const a = ({ children: i, enterDelay: e = 700 }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, children: i }) });
|
|
7
7
|
a.displayName = "Tooltip.Root";
|
|
8
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 });
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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"]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}), m = (...t) => r(...t), x = (t) => o(t);
|
|
6
11
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
n as FOCUS_VISIBLE_STYLE
|
|
12
|
+
m as cn,
|
|
13
|
+
x as sv
|
|
10
14
|
};
|
|
11
15
|
//# 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/styleUtilities.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { extendTailwindMerge } from 'tailwind-merge';\nimport { tv, type TV } from 'tailwind-variants';\n\ntype ClassNameValue = ClassNameArray | string | null | undefined | 0 | false;\ntype ClassNameArray = ClassNameValue[];\n\nconst customTwMerge = extendTailwindMerge({\n prefix: 'tw-',\n extend: {\n classGroups: {\n 'font-size': ['text-body-x-small', 'text-body-small', 'text-body-medium', 'text-body-large'],\n },\n },\n});\n\nexport const cn = (...classLists: ClassNameValue[]): string => {\n return customTwMerge(...classLists);\n};\n\nexport const sv: TV = (variants) => {\n return tv(variants);\n};\n"],"names":["customTwMerge","extendTailwindMerge","cn","classLists","sv","variants","tv"],"mappings":";;AAQA,MAAMA,IAAgBC,EAAoB;AAAA,EACtC,QAAQ;AAAA,EACR,QAAQ;AAAA,IACJ,aAAa;AAAA,MACT,aAAa,CAAC,qBAAqB,mBAAmB,oBAAoB,iBAAiB;AAAA,IAC/F;AAAA,EACJ;AACJ,CAAC,GAEYC,IAAK,IAAIC,MACXH,EAAc,GAAGG,CAAU,GAGzBC,IAAS,CAACC,MACZC,EAAGD,CAAQ;"}
|
|
@@ -1,15 +1,158 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const r =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { FOCUS_OUTLINE as e } from "./fondue-components26.js";
|
|
2
|
+
import { sv as t } from "./fondue-components13.js";
|
|
3
|
+
const r = t({
|
|
4
|
+
base: `tw-group tw-border tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium ${e}`,
|
|
5
|
+
variants: {
|
|
6
|
+
disabled: {
|
|
7
|
+
true: "tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled"
|
|
8
|
+
},
|
|
9
|
+
rounding: {
|
|
10
|
+
medium: "tw-rounded",
|
|
11
|
+
full: "tw-rounded-full"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
small: "tw-h-6 tw-text-body-small",
|
|
15
|
+
medium: "tw-h-9 tw-text-body-medium",
|
|
16
|
+
large: "tw-h-12 tw-text-body-large"
|
|
17
|
+
},
|
|
18
|
+
aspect: {
|
|
19
|
+
square: "tw-aspect-square tw-px-0",
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
hugWidth: {
|
|
23
|
+
false: "tw-w-full"
|
|
24
|
+
},
|
|
25
|
+
emphasis: {
|
|
26
|
+
default: "",
|
|
27
|
+
weak: "",
|
|
28
|
+
strong: ""
|
|
29
|
+
},
|
|
30
|
+
style: {
|
|
31
|
+
default: "",
|
|
32
|
+
positive: "",
|
|
33
|
+
negative: "",
|
|
34
|
+
danger: "",
|
|
35
|
+
loud: ""
|
|
8
36
|
}
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [
|
|
39
|
+
{
|
|
40
|
+
disabled: !1,
|
|
41
|
+
style: "default",
|
|
42
|
+
emphasis: "default",
|
|
43
|
+
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
disabled: !1,
|
|
47
|
+
style: "default",
|
|
48
|
+
emphasis: "weak",
|
|
49
|
+
class: "tw-border-transparent hover:tw-bg-button-background-hover hover:tw-border-button-border active:tw-bg-button-background-pressed"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
disabled: !1,
|
|
53
|
+
style: "default",
|
|
54
|
+
emphasis: "strong",
|
|
55
|
+
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"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
disabled: !1,
|
|
59
|
+
style: "positive",
|
|
60
|
+
emphasis: "default",
|
|
61
|
+
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"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
disabled: !1,
|
|
65
|
+
style: "positive",
|
|
66
|
+
emphasis: "weak",
|
|
67
|
+
class: "tw-border-transparent hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border active:tw-bg-button-positive-background-pressed"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
disabled: !1,
|
|
71
|
+
style: "positive",
|
|
72
|
+
emphasis: "strong",
|
|
73
|
+
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"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
disabled: !1,
|
|
77
|
+
style: "negative",
|
|
78
|
+
emphasis: "default",
|
|
79
|
+
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"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
disabled: !1,
|
|
83
|
+
style: "negative",
|
|
84
|
+
emphasis: "weak",
|
|
85
|
+
class: "tw-border-transparent hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border active:tw-bg-button-negative-background-pressed"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
disabled: !1,
|
|
89
|
+
style: "negative",
|
|
90
|
+
emphasis: "strong",
|
|
91
|
+
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"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
disabled: !1,
|
|
95
|
+
style: "danger",
|
|
96
|
+
emphasis: "default",
|
|
97
|
+
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
disabled: !1,
|
|
101
|
+
style: "danger",
|
|
102
|
+
emphasis: "weak",
|
|
103
|
+
class: "tw-border-transparent hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
disabled: !1,
|
|
107
|
+
style: "danger",
|
|
108
|
+
emphasis: "strong",
|
|
109
|
+
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"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
disabled: !1,
|
|
113
|
+
style: "loud",
|
|
114
|
+
emphasis: "default",
|
|
115
|
+
class: "tw-bg-box-selected tw-border-button-border hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed "
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
disabled: !1,
|
|
119
|
+
style: "loud",
|
|
120
|
+
emphasis: "weak",
|
|
121
|
+
class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
disabled: !1,
|
|
125
|
+
style: "loud",
|
|
126
|
+
emphasis: "strong",
|
|
127
|
+
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 "
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
aspect: "default",
|
|
131
|
+
size: "small",
|
|
132
|
+
class: "tw-px-2"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
aspect: "default",
|
|
136
|
+
size: "medium",
|
|
137
|
+
class: "tw-px-4"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
aspect: "default",
|
|
141
|
+
size: "large",
|
|
142
|
+
class: "tw-px-6"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
defaultVariants: {
|
|
146
|
+
style: "default",
|
|
147
|
+
emphasis: "strong",
|
|
148
|
+
size: "medium",
|
|
149
|
+
rounding: "medium",
|
|
150
|
+
hugWidth: !0,
|
|
151
|
+
aspect: "default",
|
|
152
|
+
disabled: !1
|
|
9
153
|
}
|
|
10
|
-
})
|
|
154
|
+
});
|
|
11
155
|
export {
|
|
12
|
-
|
|
13
|
-
x as sv
|
|
156
|
+
r as buttonStyles
|
|
14
157
|
};
|
|
15
158
|
//# sourceMappingURL=fondue-components14.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components14.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components14.js","sources":["../src/components/Button/styles/buttonStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { FOCUS_OUTLINE } from '#/utilities/focusStyle';\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const buttonStyles = sv({\n base:\n 'tw-group tw-border tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium ' +\n `${FOCUS_OUTLINE}`,\n variants: {\n disabled: {\n true: 'tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled',\n },\n rounding: {\n medium: 'tw-rounded',\n full: 'tw-rounded-full',\n },\n size: {\n small: 'tw-h-6 tw-text-body-small',\n medium: 'tw-h-9 tw-text-body-medium',\n large: 'tw-h-12 tw-text-body-large',\n },\n aspect: {\n square: 'tw-aspect-square tw-px-0',\n default: '',\n },\n hugWidth: {\n false: 'tw-w-full',\n },\n emphasis: {\n default: '',\n weak: '',\n strong: '',\n },\n style: {\n default: '',\n positive: '',\n negative: '',\n danger: '',\n loud: '',\n },\n },\n compoundVariants: [\n {\n disabled: false,\n style: 'default',\n emphasis: 'default',\n class:\n 'tw-bg-button-background tw-border-button-border ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'default',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-background-hover hover:tw-border-button-border ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'default',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-background tw-border-button-strong-border ' +\n 'hover:tw-bg-button-strong-background-hover ' +\n 'active:tw-bg-button-strong-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'default',\n class:\n 'tw-bg-button-positive-background tw-border-button-positive-border ' +\n 'hover:tw-bg-button-positive-background-hover ' +\n 'active:tw-bg-button-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border ' +\n 'active:tw-bg-button-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-positive-background tw-border-button-strong-positive-border ' +\n 'hover:tw-bg-button-strong-positive-background-hover ' +\n 'active:tw-bg-button-strong-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'default',\n class:\n 'tw-bg-button-negative-background tw-border-button-negative-border ' +\n 'hover:tw-bg-button-negative-background-hover ' +\n 'active:tw-bg-button-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border ' +\n 'active:tw-bg-button-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-negative-background tw-border-button-strong-negative-border ' +\n 'hover:tw-bg-button-strong-negative-background-hover ' +\n 'active:tw-bg-button-strong-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'default',\n class:\n 'tw-bg-button-background tw-border-button-border ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'strong',\n class:\n 'tw-bg-button-danger-background tw-border-button-danger-border ' +\n 'hover:tw-bg-button-danger-background-hover ' +\n 'active:tw-bg-button-danger-background-pressed',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'default',\n class:\n 'tw-bg-box-selected tw-border-button-border ' +\n 'hover:tw-bg-box-selected-hover ' +\n 'active:tw-bg-box-selected-pressed ',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'weak',\n class: 'tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'strong',\n class:\n 'tw-bg-box-selected-strong tw-border-box-selected-strong ' +\n 'hover:tw-bg-box-selected-strong-hover ' +\n 'active:tw-bg-box-selected-strong-pressed ',\n },\n {\n aspect: 'default',\n size: 'small',\n class: 'tw-px-2',\n },\n {\n aspect: 'default',\n size: 'medium',\n class: 'tw-px-4',\n },\n {\n aspect: 'default',\n size: 'large',\n class: 'tw-px-6',\n },\n ],\n defaultVariants: {\n style: 'default',\n emphasis: 'strong',\n size: 'medium',\n rounding: 'medium',\n hugWidth: true,\n aspect: 'default',\n disabled: false,\n },\n});\n"],"names":["buttonStyles","sv","FOCUS_OUTLINE"],"mappings":"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"}
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import { sv as e } from "./fondue-
|
|
1
|
+
import { sv as e } from "./fondue-components13.js";
|
|
2
2
|
const s = e({
|
|
3
|
-
base: "tw-group tw-border tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium",
|
|
4
3
|
variants: {
|
|
5
|
-
disabled: {
|
|
6
|
-
true: "tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled"
|
|
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
4
|
emphasis: {
|
|
25
5
|
default: "",
|
|
26
6
|
weak: "",
|
|
@@ -32,6 +12,9 @@ const s = e({
|
|
|
32
12
|
negative: "",
|
|
33
13
|
danger: "",
|
|
34
14
|
loud: ""
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
true: "tw-text-box-disabled-inverse"
|
|
35
18
|
}
|
|
36
19
|
},
|
|
37
20
|
compoundVariants: [
|
|
@@ -39,119 +22,100 @@ const s = e({
|
|
|
39
22
|
disabled: !1,
|
|
40
23
|
style: "default",
|
|
41
24
|
emphasis: "default",
|
|
42
|
-
class: "tw-
|
|
25
|
+
class: "[&_svg]:tw-text-button-icon group-hover:[&_svg]:tw-text-button-icon-hover group-active:[&_svg]:tw-text-button-icon-pressed [&_svg]:tw-leading-none"
|
|
43
26
|
},
|
|
44
27
|
{
|
|
45
28
|
disabled: !1,
|
|
46
29
|
style: "default",
|
|
47
30
|
emphasis: "weak",
|
|
48
|
-
class: "tw-
|
|
31
|
+
class: "[&_svg]:tw-text-button-icon group-hover:[&_svg]:tw-text-button-icon-hover group-active:[&_svg]:tw-text-button-icon-pressed [&_svg]:tw-leading-none"
|
|
49
32
|
},
|
|
50
33
|
{
|
|
51
34
|
disabled: !1,
|
|
52
35
|
style: "default",
|
|
53
36
|
emphasis: "strong",
|
|
54
|
-
class: "tw-
|
|
37
|
+
class: "[&_svg]:tw-text-button-strong-icon group-hover:[&_svg]:tw-text-button-strong-icon-hover group-active:[&_svg]:tw-text-button-strong-icon-pressed [&_svg]:tw-leading-none"
|
|
55
38
|
},
|
|
56
39
|
{
|
|
57
40
|
disabled: !1,
|
|
58
41
|
style: "positive",
|
|
59
42
|
emphasis: "default",
|
|
60
|
-
class: "tw-
|
|
43
|
+
class: "[&_svg]:tw-text-button-positive-icon group-hover:[&_svg]:tw-text-button-positive-icon-hover group-active:[&_svg]:tw-text-button-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
61
44
|
},
|
|
62
45
|
{
|
|
63
46
|
disabled: !1,
|
|
64
47
|
style: "positive",
|
|
65
48
|
emphasis: "weak",
|
|
66
|
-
class: "
|
|
49
|
+
class: "[&_svg]:tw-text-button-strong-positive-icon group-hover:[&_svg]:tw-text-button-strong-positive-icon-hovergroup-active:[&_svg]:tw-text-button-strong-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
67
50
|
},
|
|
68
51
|
{
|
|
69
52
|
disabled: !1,
|
|
70
53
|
style: "positive",
|
|
71
54
|
emphasis: "strong",
|
|
72
|
-
class: "tw-
|
|
55
|
+
class: "[&_svg]:tw-text-button-strong-positive-icon group-hover:[&_svg]:tw-text-button-strong-positive-icon-hover group-active:[&_svg]:tw-text-button-strong-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
73
56
|
},
|
|
74
57
|
{
|
|
75
58
|
disabled: !1,
|
|
76
59
|
style: "negative",
|
|
77
60
|
emphasis: "default",
|
|
78
|
-
class: "tw-
|
|
61
|
+
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
79
62
|
},
|
|
80
63
|
{
|
|
81
64
|
disabled: !1,
|
|
82
65
|
style: "negative",
|
|
83
66
|
emphasis: "weak",
|
|
84
|
-
class: "
|
|
67
|
+
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
85
68
|
},
|
|
86
69
|
{
|
|
87
70
|
disabled: !1,
|
|
88
71
|
style: "negative",
|
|
89
72
|
emphasis: "strong",
|
|
90
|
-
class: "tw-
|
|
73
|
+
class: "[&_svg]:tw-text-button-strong-negative-icon group-hover:[&_svg]:tw-text-button-strong-negative-icon-hovergroup-active:[&_svg]:tw-text-button-strong-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
91
74
|
},
|
|
92
75
|
{
|
|
93
76
|
disabled: !1,
|
|
94
77
|
style: "danger",
|
|
95
78
|
emphasis: "default",
|
|
96
|
-
class: "tw-
|
|
79
|
+
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
97
80
|
},
|
|
98
81
|
{
|
|
99
82
|
disabled: !1,
|
|
100
83
|
style: "danger",
|
|
101
84
|
emphasis: "weak",
|
|
102
|
-
class: "tw-
|
|
85
|
+
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
103
86
|
},
|
|
104
87
|
{
|
|
105
88
|
disabled: !1,
|
|
106
89
|
style: "danger",
|
|
107
90
|
emphasis: "strong",
|
|
108
|
-
class: "tw-
|
|
91
|
+
class: "[&_svg]:tw-text-button-danger-icon group-hover:[&_svg]:tw-text-button-danger-icon-hovergroup-active:[&_svg]:tw-text-button-danger-icon-pressed [&_svg]:tw-leading-none"
|
|
109
92
|
},
|
|
110
93
|
{
|
|
111
94
|
disabled: !1,
|
|
112
95
|
style: "loud",
|
|
113
96
|
emphasis: "default",
|
|
114
|
-
class: "tw-
|
|
97
|
+
class: "[&_svg]:tw-text-box-selected-inverse group-hover:[&_svg]:tw-text-box-selected-inverse-hovergroup-active:[&_svg]:tw-text-box-selected-inverse-pressed [&_svg]:tw-leading-none"
|
|
115
98
|
},
|
|
116
99
|
{
|
|
117
100
|
disabled: !1,
|
|
118
101
|
style: "loud",
|
|
119
102
|
emphasis: "weak",
|
|
120
|
-
class: "tw-
|
|
103
|
+
class: "[&_svg]:tw-text-box-selected-inverse group-hover:[&_svg]:tw-text-box-selected-inverse-hovergroup-active:[&_svg]:tw-text-box-selected-inverse-pressed [&_svg]:tw-leading-none"
|
|
121
104
|
},
|
|
122
105
|
{
|
|
123
106
|
disabled: !1,
|
|
124
107
|
style: "loud",
|
|
125
108
|
emphasis: "strong",
|
|
126
|
-
class: "tw-
|
|
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"
|
|
109
|
+
class: "[&_svg]:tw-text-box-selected-strong-inverse group-hover:[&_svg]:tw-text-box-selected-strong-inversegroup-active:[&_svg]:tw-text-box-selected-strong-inverse [&_svg]:tw-leading-none"
|
|
142
110
|
}
|
|
143
111
|
],
|
|
144
112
|
defaultVariants: {
|
|
145
|
-
style: "default",
|
|
146
113
|
emphasis: "strong",
|
|
147
|
-
|
|
148
|
-
rounding: "medium",
|
|
149
|
-
hugWidth: !0,
|
|
150
|
-
aspect: "default",
|
|
114
|
+
style: "default",
|
|
151
115
|
disabled: !1
|
|
152
116
|
}
|
|
153
117
|
});
|
|
154
118
|
export {
|
|
155
|
-
s as
|
|
119
|
+
s as iconStyles
|
|
156
120
|
};
|
|
157
121
|
//# sourceMappingURL=fondue-components15.js.map
|