@frontify/fondue-components 19.4.0 → 19.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fondue-components.js +20 -18
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +3 -3
- package/dist/fondue-components11.js +3 -3
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +3 -3
- package/dist/fondue-components14.js +2 -2
- package/dist/fondue-components15.js +2 -2
- package/dist/fondue-components16.js +21 -23
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +1 -1
- package/dist/fondue-components18.js +1 -1
- package/dist/fondue-components19.js +1 -1
- package/dist/fondue-components20.js +2 -2
- package/dist/fondue-components21.js +2 -2
- package/dist/fondue-components22.js +6 -6
- package/dist/fondue-components23.js +1 -1
- package/dist/fondue-components24.js +2 -2
- package/dist/fondue-components25.js +69 -65
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +135 -127
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +127 -31
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +33 -59
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +58 -101
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +101 -12
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +12 -55
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +55 -20
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +20 -7
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +7 -6
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +7 -32
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +32 -5
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +5 -12
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +10 -153
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +59 -22
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +29 -38
- package/dist/fondue-components4.js.map +1 -1
- package/dist/fondue-components40.js +17 -17
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +112 -15
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +19 -30
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +32 -62
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +53 -121
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +129 -20
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +21 -45
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +53 -8
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +8 -13
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +13 -15
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +14 -4
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +5 -60
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +59 -17
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +18 -19
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +18 -4
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +3 -13
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +13 -3
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +3 -17
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +19 -35
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +8 -4
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +4 -4
- package/dist/fondue-components60.js +35 -13
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +1 -1
- package/dist/fondue-components62.js +12 -24
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +4 -16
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +23 -149
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +17 -19
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +148 -74
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +19 -8
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +77 -34
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +8 -71
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +2 -2
- package/dist/fondue-components70.js +34 -10
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +70 -12
- package/dist/fondue-components71.js.map +1 -1
- package/dist/fondue-components72.js +10 -12
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +12 -20
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +13 -34
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +20 -55
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +34 -15
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +9 -24
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +55 -14
- package/dist/fondue-components78.js.map +1 -1
- package/dist/fondue-components79.js +14 -22
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +5 -5
- package/dist/fondue-components80.js +25 -6
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +13 -5
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +22 -4
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +6 -4
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +7 -2
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +3 -15
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +4 -39
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +5 -0
- package/dist/fondue-components87.js.map +1 -0
- package/dist/fondue-components88.js +20 -0
- package/dist/fondue-components88.js.map +1 -0
- package/dist/fondue-components89.js +43 -0
- package/dist/fondue-components89.js.map +1 -0
- package/dist/fondue-components9.js +4 -4
- package/dist/index.d.ts +103 -38
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const o = "_root_1jhe2_2", c = "_accordionItem_1jhe2_23", n = "_accordionTrigger_1jhe2_29", r = "_accordionHeader_1jhe2_34", t = "_accordionSlot_1jhe2_41", e = "_accordionCaret_1jhe2_66", a = "_accordionTriggerContent_1jhe2_74", i = "_accordionContent_1jhe2_79", d = "_accordionContentText_1jhe2_108", _ = {
|
|
2
|
+
root: o,
|
|
3
|
+
accordionItem: c,
|
|
4
|
+
accordionTrigger: n,
|
|
5
|
+
accordionHeader: r,
|
|
6
|
+
accordionSlot: t,
|
|
7
|
+
accordionCaret: e,
|
|
8
|
+
accordionTriggerContent: a,
|
|
9
|
+
accordionContent: i,
|
|
10
|
+
accordionContentText: d
|
|
7
11
|
};
|
|
8
12
|
export {
|
|
9
|
-
|
|
13
|
+
e as accordionCaret,
|
|
14
|
+
i as accordionContent,
|
|
15
|
+
d as accordionContentText,
|
|
16
|
+
r as accordionHeader,
|
|
17
|
+
c as accordionItem,
|
|
18
|
+
t as accordionSlot,
|
|
19
|
+
n as accordionTrigger,
|
|
20
|
+
a as accordionTriggerContent,
|
|
21
|
+
_ as default,
|
|
22
|
+
o as root
|
|
10
23
|
};
|
|
11
24
|
//# sourceMappingURL=fondue-components33.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components33.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components33.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import s from "./fondue-components85.js";
|
|
3
|
+
import { colorToCss as e } from "./fondue-components86.js";
|
|
4
|
+
const a = ["default", "positive", "highlight", "warning", "negative"], i = (t) => typeof t == "string" && a.includes(t), p = ({ status: t }) => {
|
|
5
|
+
const o = i(t) ? { "data-status": t } : { style: { backgroundColor: typeof t == "string" ? t : e(t) || "transparent" } };
|
|
6
|
+
return /* @__PURE__ */ r("div", { "data-test-id": "badge-status", className: s.root, ...o });
|
|
4
7
|
};
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
o as dismiss,
|
|
8
|
-
s as root
|
|
9
|
+
p as BadgeStatus
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=fondue-components34.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components34.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components34.js","sources":["../src/components/Badge/BadgeStatus.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport styles from './styles/badgestatus.module.scss';\nimport { type RgbaColor } from './types';\nimport { colorToCss } from './utils';\n\ntype BadgeStatusType = 'default' | 'positive' | 'highlight' | 'warning' | 'negative';\n\nconst badgeStatusMap = ['default', 'positive', 'highlight', 'warning', 'negative'];\n\nexport type BadgeStatusProps = { status: BadgeStatusType } | { status: RgbaColor | string };\n\nconst isBadgeStatusType = (value: RgbaColor | string): value is BadgeStatusType =>\n typeof value === 'string' && badgeStatusMap.includes(value);\n\nexport const BadgeStatus = ({ status }: BadgeStatusProps) => {\n const colorProps = isBadgeStatusType(status)\n ? { 'data-status': status }\n : { style: { backgroundColor: typeof status === 'string' ? status : colorToCss(status) || 'transparent' } };\n\n return <div data-test-id=\"badge-status\" className={styles.root} {...colorProps}></div>;\n};\n"],"names":["badgeStatusMap","isBadgeStatusType","value","BadgeStatus","status","colorProps","colorToCss","jsx","styles"],"mappings":";;;AAQA,MAAMA,IAAiB,CAAC,WAAW,YAAY,aAAa,WAAW,UAAU,GAI3EC,IAAoB,CAACC,MACvB,OAAOA,KAAU,YAAYF,EAAe,SAASE,CAAK,GAEjDC,IAAc,CAAC,EAAE,QAAAC,QAA+B;AACzD,QAAMC,IAAaJ,EAAkBG,CAAM,IACrC,EAAE,eAAeA,EAAA,IACjB,EAAE,OAAO,EAAE,iBAAiB,OAAOA,KAAW,WAAWA,IAASE,EAAWF,CAAM,KAAK,gBAAc;AAE5G,SAAO,gBAAAG,EAAC,SAAI,gBAAa,gBAAe,WAAWC,EAAO,MAAO,GAAGH,GAAY;AACpF;"}
|
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
mt: "margin-top",
|
|
6
|
-
mr: "margin-right",
|
|
7
|
-
mb: "margin-bottom",
|
|
8
|
-
ml: "margin-left",
|
|
9
|
-
p: "padding",
|
|
10
|
-
px: "padding-x",
|
|
11
|
-
py: "padding-y",
|
|
12
|
-
pt: "padding-top",
|
|
13
|
-
pr: "padding-right",
|
|
14
|
-
pb: "padding-bottom",
|
|
15
|
-
pl: "padding-left",
|
|
16
|
-
direction: "flex-direction",
|
|
17
|
-
align: "align-items",
|
|
18
|
-
wrap: "flex-wrap",
|
|
19
|
-
columns: "grid-template-columns",
|
|
20
|
-
rows: "grid-template-rows"
|
|
21
|
-
}, m = (n, r) => n === "columns" || n === "rows" ? typeof r == "number" ? `repeat(${r}, 1fr)` : r : typeof r == "number" ? `${r * 0.25}rem` : r, f = (n, r = {}) => Object.entries(n).reduce((i, [t, o]) => {
|
|
22
|
-
if (g(t))
|
|
23
|
-
return i;
|
|
24
|
-
const e = t in r ? r[t] : t in s ? s[t] : t, p = e == null ? void 0 : e.replaceAll(/([\da-z]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
|
|
25
|
-
if (typeof o == "object")
|
|
26
|
-
for (const [d, a] of Object.entries(o))
|
|
27
|
-
a !== void 0 && (i[`--${d}-${p}`] = m(t, a));
|
|
28
|
-
else
|
|
29
|
-
i[`--${p}`] = m(t, o);
|
|
30
|
-
return i;
|
|
31
|
-
}, {});
|
|
1
|
+
const s = "_root_qxbmr_3", o = "_dismiss_qxbmr_161", t = {
|
|
2
|
+
root: s,
|
|
3
|
+
dismiss: o
|
|
4
|
+
};
|
|
32
5
|
export {
|
|
33
|
-
|
|
6
|
+
t as default,
|
|
7
|
+
o as dismiss,
|
|
8
|
+
s as root
|
|
34
9
|
};
|
|
35
10
|
//# sourceMappingURL=fondue-components35.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components35.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components35.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const g = (n) => n.startsWith("aria-") || n === "role", s = {
|
|
2
|
+
m: "margin",
|
|
3
|
+
mx: "margin-x",
|
|
4
|
+
my: "margin-y",
|
|
5
|
+
mt: "margin-top",
|
|
6
|
+
mr: "margin-right",
|
|
7
|
+
mb: "margin-bottom",
|
|
8
|
+
ml: "margin-left",
|
|
9
|
+
p: "padding",
|
|
10
|
+
px: "padding-x",
|
|
11
|
+
py: "padding-y",
|
|
12
|
+
pt: "padding-top",
|
|
13
|
+
pr: "padding-right",
|
|
14
|
+
pb: "padding-bottom",
|
|
15
|
+
pl: "padding-left",
|
|
16
|
+
direction: "flex-direction",
|
|
17
|
+
align: "align-items",
|
|
18
|
+
wrap: "flex-wrap",
|
|
19
|
+
columns: "grid-template-columns",
|
|
20
|
+
rows: "grid-template-rows"
|
|
21
|
+
}, m = (n, r) => n === "columns" || n === "rows" ? typeof r == "number" ? `repeat(${r}, 1fr)` : r : typeof r == "number" ? `${r * 0.25}rem` : r, f = (n, r = {}) => Object.entries(n).reduce((i, [t, o]) => {
|
|
22
|
+
if (g(t))
|
|
23
|
+
return i;
|
|
24
|
+
const e = t in r ? r[t] : t in s ? s[t] : t, p = e == null ? void 0 : e.replaceAll(/([\da-z]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
|
|
25
|
+
if (typeof o == "object")
|
|
26
|
+
for (const [d, a] of Object.entries(o))
|
|
27
|
+
a !== void 0 && (i[`--${d}-${p}`] = m(t, a));
|
|
28
|
+
else
|
|
29
|
+
i[`--${p}`] = m(t, o);
|
|
30
|
+
return i;
|
|
31
|
+
}, {});
|
|
4
32
|
export {
|
|
5
|
-
|
|
6
|
-
o as root
|
|
33
|
+
f as propsToCssVariables
|
|
7
34
|
};
|
|
8
35
|
//# sourceMappingURL=fondue-components36.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components36.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components36.js","sources":["../src/helpers/propsToCssVariables.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type CSSProperties } from 'react';\n\nimport { type Breakpoint } from './layout';\n\nconst isAriaProp = (key: string): boolean => {\n return key.startsWith('aria-') || key === 'role';\n};\n\nconst abbreviationToCssProperty: Record<string, string> = {\n m: 'margin',\n mx: 'margin-x',\n my: 'margin-y',\n mt: 'margin-top',\n mr: 'margin-right',\n mb: 'margin-bottom',\n ml: 'margin-left',\n p: 'padding',\n px: 'padding-x',\n py: 'padding-y',\n pt: 'padding-top',\n pr: 'padding-right',\n pb: 'padding-bottom',\n pl: 'padding-left',\n direction: 'flex-direction',\n align: 'align-items',\n wrap: 'flex-wrap',\n columns: 'grid-template-columns',\n rows: 'grid-template-rows',\n};\n\nconst transformValueBasedOnKey = (key: string, value: string | number): string | number => {\n if (key === 'columns' || key === 'rows') {\n if (typeof value === 'number') {\n return `repeat(${value}, 1fr)`;\n }\n return value;\n }\n\n // Spacing tokens\n if (typeof value === 'number') {\n return `${value * 0.25}rem`;\n }\n\n return value;\n};\n\nexport const propsToCssVariables = (\n props: Record<string, string | number | boolean | { [key in Breakpoint]?: string | number | boolean }>,\n extraAbbreviationToCssProperty: Record<string, string> = {},\n): CSSProperties => {\n return Object.entries(props).reduce((acc, [key, value]) => {\n if (isAriaProp(key)) {\n return acc;\n }\n\n const cssProperty =\n key in extraAbbreviationToCssProperty\n ? extraAbbreviationToCssProperty[key]\n : key in abbreviationToCssProperty\n ? abbreviationToCssProperty[key]\n : key;\n // The lookahead is necessary to split camelCase boundaries; disabling false-positive lint warning\n const cssPropertyKebabCase = cssProperty?.replaceAll(/([\\da-z]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();\n\n if (typeof value === 'object') {\n for (const [breakpoint, breakpointValue] of Object.entries(value)) {\n if (breakpointValue !== undefined) {\n // @ts-expect-error CSS variables are not typed into `CSSProperties`\n acc[`--${breakpoint}-${cssPropertyKebabCase}`] = transformValueBasedOnKey(key, breakpointValue);\n }\n }\n } else {\n // @ts-expect-error CSS variables are not typed into `CSSProperties`\n acc[`--${cssPropertyKebabCase}`] = transformValueBasedOnKey(key, value);\n }\n\n return acc;\n }, {} as CSSProperties);\n};\n"],"names":["isAriaProp","key","abbreviationToCssProperty","transformValueBasedOnKey","value","propsToCssVariables","props","extraAbbreviationToCssProperty","acc","cssProperty","cssPropertyKebabCase","breakpoint","breakpointValue"],"mappings":"AAMA,MAAMA,IAAa,CAACC,MACTA,EAAI,WAAW,OAAO,KAAKA,MAAQ,QAGxCC,IAAoD;AAAA,EACtD,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,WAAW;AAAA,EACX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AACV,GAEMC,IAA2B,CAACF,GAAaG,MACvCH,MAAQ,aAAaA,MAAQ,SACzB,OAAOG,KAAU,WACV,UAAUA,CAAK,WAEnBA,IAIP,OAAOA,KAAU,WACV,GAAGA,IAAQ,IAAI,QAGnBA,GAGEC,IAAsB,CAC/BC,GACAC,IAAyD,OAElD,OAAO,QAAQD,CAAK,EAAE,OAAO,CAACE,GAAK,CAACP,GAAKG,CAAK,MAAM;AACvD,MAAIJ,EAAWC,CAAG;AACd,WAAOO;AAGX,QAAMC,IACFR,KAAOM,IACDA,EAA+BN,CAAG,IAClCA,KAAOC,IACLA,EAA0BD,CAAG,IAC7BA,GAENS,IAAuBD,KAAA,gBAAAA,EAAa,WAAW,+BAA+B,SAAS;AAE7F,MAAI,OAAOL,KAAU;AACjB,eAAW,CAACO,GAAYC,CAAe,KAAK,OAAO,QAAQR,CAAK;AAC5D,MAAIQ,MAAoB,WAEpBJ,EAAI,KAAKG,CAAU,IAAID,CAAoB,EAAE,IAAIP,EAAyBF,GAAKW,CAAe;AAAA;AAKtG,IAAAJ,EAAI,KAAKE,CAAoB,EAAE,IAAIP,EAAyBF,GAAKG,CAAK;AAG1E,SAAOI;AACX,GAAG,CAAA,CAAmB;"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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);
|
|
1
|
+
const o = "_root_5sic9_5", t = {
|
|
2
|
+
root: o
|
|
3
|
+
};
|
|
11
4
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
14
7
|
};
|
|
15
8
|
//# sourceMappingURL=fondue-components37.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components37.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components37.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,158 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
variant: {
|
|
31
|
-
default: "",
|
|
32
|
-
positive: "",
|
|
33
|
-
negative: "",
|
|
34
|
-
danger: "",
|
|
35
|
-
loud: ""
|
|
1
|
+
import { extendTailwindMerge as e } from "tailwind-merge";
|
|
2
|
+
import { tv as o } from "tailwind-variants";
|
|
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"]
|
|
36
8
|
}
|
|
37
|
-
},
|
|
38
|
-
compoundVariants: [
|
|
39
|
-
{
|
|
40
|
-
disabled: !1,
|
|
41
|
-
variant: "default",
|
|
42
|
-
emphasis: "default",
|
|
43
|
-
class: "tw-bg-button-background hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
disabled: !1,
|
|
47
|
-
variant: "default",
|
|
48
|
-
emphasis: "weak",
|
|
49
|
-
class: "hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
disabled: !1,
|
|
53
|
-
variant: "default",
|
|
54
|
-
emphasis: "strong",
|
|
55
|
-
class: "tw-bg-button-strong-background hover:tw-bg-button-strong-background-hover active:tw-bg-button-strong-background-pressed"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
disabled: !1,
|
|
59
|
-
variant: "positive",
|
|
60
|
-
emphasis: "default",
|
|
61
|
-
class: "tw-bg-button-positive-background hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
disabled: !1,
|
|
65
|
-
variant: "positive",
|
|
66
|
-
emphasis: "weak",
|
|
67
|
-
class: "hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
disabled: !1,
|
|
71
|
-
variant: "positive",
|
|
72
|
-
emphasis: "strong",
|
|
73
|
-
class: "tw-bg-button-strong-positive-background hover:tw-bg-button-strong-positive-background-hover active:tw-bg-button-strong-positive-background-pressed"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
disabled: !1,
|
|
77
|
-
variant: "negative",
|
|
78
|
-
emphasis: "default",
|
|
79
|
-
class: "tw-bg-button-negative-background hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
disabled: !1,
|
|
83
|
-
variant: "negative",
|
|
84
|
-
emphasis: "weak",
|
|
85
|
-
class: "hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
disabled: !1,
|
|
89
|
-
variant: "negative",
|
|
90
|
-
emphasis: "strong",
|
|
91
|
-
class: "tw-bg-button-strong-negative-background hover:tw-bg-button-strong-negative-background-hover active:tw-bg-button-strong-negative-background-pressed"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
disabled: !1,
|
|
95
|
-
variant: "danger",
|
|
96
|
-
emphasis: "default",
|
|
97
|
-
class: "tw-bg-button-background hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
disabled: !1,
|
|
101
|
-
variant: "danger",
|
|
102
|
-
emphasis: "weak",
|
|
103
|
-
class: "hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
disabled: !1,
|
|
107
|
-
variant: "danger",
|
|
108
|
-
emphasis: "strong",
|
|
109
|
-
class: "tw-bg-button-danger-background hover:tw-bg-button-danger-background-hover active:tw-bg-button-danger-background-pressed"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
disabled: !1,
|
|
113
|
-
variant: "loud",
|
|
114
|
-
emphasis: "default",
|
|
115
|
-
class: "tw-bg-box-selected hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
disabled: !1,
|
|
119
|
-
variant: "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
|
-
variant: "loud",
|
|
126
|
-
emphasis: "strong",
|
|
127
|
-
class: "tw-bg-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
|
-
variant: "default",
|
|
147
|
-
emphasis: "strong",
|
|
148
|
-
size: "medium",
|
|
149
|
-
rounding: "medium",
|
|
150
|
-
hugWidth: !0,
|
|
151
|
-
aspect: "default",
|
|
152
|
-
disabled: !1
|
|
153
9
|
}
|
|
154
|
-
});
|
|
10
|
+
}), m = (...t) => r(...t), x = (t) => o(t);
|
|
155
11
|
export {
|
|
156
|
-
|
|
12
|
+
m as cn,
|
|
13
|
+
x as sv
|
|
157
14
|
};
|
|
158
15
|
//# sourceMappingURL=fondue-components38.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components38.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components38.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,IAAA;AAAA,EAC/F;AAER,CAAC,GAEYC,IAAK,IAAIC,MACXH,EAAc,GAAGG,CAAU,GAGzBC,IAAS,CAACC,MACZC,EAAGD,CAAQ;"}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FOCUS_OUTLINE as t } from "./fondue-components87.js";
|
|
2
|
+
import { sv as e } from "./fondue-components38.js";
|
|
3
|
+
const o = e({
|
|
4
|
+
base: `tw-group 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 tw-box-border tw-whitespace-nowrap tw-transition-colors ${t}`,
|
|
3
5
|
variants: {
|
|
6
|
+
disabled: {
|
|
7
|
+
true: "tw-cursor-not-allowed tw-pointer-events-none 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
|
+
},
|
|
4
25
|
emphasis: {
|
|
5
26
|
default: "",
|
|
6
27
|
weak: "",
|
|
@@ -12,9 +33,6 @@ const s = t({
|
|
|
12
33
|
negative: "",
|
|
13
34
|
danger: "",
|
|
14
35
|
loud: ""
|
|
15
|
-
},
|
|
16
|
-
disabled: {
|
|
17
|
-
true: "tw-text-box-disabled-inverse"
|
|
18
36
|
}
|
|
19
37
|
},
|
|
20
38
|
compoundVariants: [
|
|
@@ -22,100 +40,119 @@ const s = t({
|
|
|
22
40
|
disabled: !1,
|
|
23
41
|
variant: "default",
|
|
24
42
|
emphasis: "default",
|
|
25
|
-
class: "
|
|
43
|
+
class: "tw-bg-button-background hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
26
44
|
},
|
|
27
45
|
{
|
|
28
46
|
disabled: !1,
|
|
29
47
|
variant: "default",
|
|
30
48
|
emphasis: "weak",
|
|
31
|
-
class: "
|
|
49
|
+
class: "hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
32
50
|
},
|
|
33
51
|
{
|
|
34
52
|
disabled: !1,
|
|
35
53
|
variant: "default",
|
|
36
54
|
emphasis: "strong",
|
|
37
|
-
class: "
|
|
55
|
+
class: "tw-bg-button-strong-background hover:tw-bg-button-strong-background-hover active:tw-bg-button-strong-background-pressed"
|
|
38
56
|
},
|
|
39
57
|
{
|
|
40
58
|
disabled: !1,
|
|
41
59
|
variant: "positive",
|
|
42
60
|
emphasis: "default",
|
|
43
|
-
class: "
|
|
61
|
+
class: "tw-bg-button-positive-background hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
44
62
|
},
|
|
45
63
|
{
|
|
46
64
|
disabled: !1,
|
|
47
65
|
variant: "positive",
|
|
48
66
|
emphasis: "weak",
|
|
49
|
-
class: "
|
|
67
|
+
class: "hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
50
68
|
},
|
|
51
69
|
{
|
|
52
70
|
disabled: !1,
|
|
53
71
|
variant: "positive",
|
|
54
72
|
emphasis: "strong",
|
|
55
|
-
class: "
|
|
73
|
+
class: "tw-bg-button-strong-positive-background hover:tw-bg-button-strong-positive-background-hover active:tw-bg-button-strong-positive-background-pressed"
|
|
56
74
|
},
|
|
57
75
|
{
|
|
58
76
|
disabled: !1,
|
|
59
77
|
variant: "negative",
|
|
60
78
|
emphasis: "default",
|
|
61
|
-
class: "
|
|
79
|
+
class: "tw-bg-button-negative-background hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
62
80
|
},
|
|
63
81
|
{
|
|
64
82
|
disabled: !1,
|
|
65
83
|
variant: "negative",
|
|
66
84
|
emphasis: "weak",
|
|
67
|
-
class: "
|
|
85
|
+
class: "hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
68
86
|
},
|
|
69
87
|
{
|
|
70
88
|
disabled: !1,
|
|
71
89
|
variant: "negative",
|
|
72
90
|
emphasis: "strong",
|
|
73
|
-
class: "
|
|
91
|
+
class: "tw-bg-button-strong-negative-background hover:tw-bg-button-strong-negative-background-hover active:tw-bg-button-strong-negative-background-pressed"
|
|
74
92
|
},
|
|
75
93
|
{
|
|
76
94
|
disabled: !1,
|
|
77
95
|
variant: "danger",
|
|
78
96
|
emphasis: "default",
|
|
79
|
-
class: "
|
|
97
|
+
class: "tw-bg-button-background hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
80
98
|
},
|
|
81
99
|
{
|
|
82
100
|
disabled: !1,
|
|
83
101
|
variant: "danger",
|
|
84
102
|
emphasis: "weak",
|
|
85
|
-
class: "
|
|
103
|
+
class: "hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
86
104
|
},
|
|
87
105
|
{
|
|
88
106
|
disabled: !1,
|
|
89
107
|
variant: "danger",
|
|
90
108
|
emphasis: "strong",
|
|
91
|
-
class: "
|
|
109
|
+
class: "tw-bg-button-danger-background hover:tw-bg-button-danger-background-hover active:tw-bg-button-danger-background-pressed"
|
|
92
110
|
},
|
|
93
111
|
{
|
|
94
112
|
disabled: !1,
|
|
95
113
|
variant: "loud",
|
|
96
114
|
emphasis: "default",
|
|
97
|
-
class: "
|
|
115
|
+
class: "tw-bg-box-selected hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
98
116
|
},
|
|
99
117
|
{
|
|
100
118
|
disabled: !1,
|
|
101
119
|
variant: "loud",
|
|
102
120
|
emphasis: "weak",
|
|
103
|
-
class: "
|
|
121
|
+
class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
104
122
|
},
|
|
105
123
|
{
|
|
106
124
|
disabled: !1,
|
|
107
125
|
variant: "loud",
|
|
108
126
|
emphasis: "strong",
|
|
109
|
-
class: "
|
|
127
|
+
class: "tw-bg-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"
|
|
110
143
|
}
|
|
111
144
|
],
|
|
112
145
|
defaultVariants: {
|
|
113
|
-
emphasis: "strong",
|
|
114
146
|
variant: "default",
|
|
147
|
+
emphasis: "strong",
|
|
148
|
+
size: "medium",
|
|
149
|
+
rounding: "medium",
|
|
150
|
+
hugWidth: !0,
|
|
151
|
+
aspect: "default",
|
|
115
152
|
disabled: !1
|
|
116
153
|
}
|
|
117
154
|
});
|
|
118
155
|
export {
|
|
119
|
-
|
|
156
|
+
o as buttonStyles
|
|
120
157
|
};
|
|
121
158
|
//# sourceMappingURL=fondue-components39.js.map
|