@frontify/fondue-components 20.0.0-rc.0 → 20.0.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 +46 -50
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +3 -3
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +66 -84
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +49 -50
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +2 -2
- package/dist/fondue-components15.js +2 -2
- package/dist/fondue-components16.js +2 -2
- package/dist/fondue-components17.js +36 -56
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +16 -34
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +71 -21
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +36 -18
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +55 -71
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +138 -36
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +50 -50
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +29 -138
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +157 -53
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +137 -29
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +127 -157
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +30 -134
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +58 -128
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +101 -31
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +12 -59
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +52 -97
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +20 -12
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +7 -56
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +6 -20
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +32 -8
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +3 -5
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +12 -32
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +155 -5
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +2 -2
- package/dist/fondue-components40.js +116 -18
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +22 -59
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +14 -111
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +30 -116
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +53 -21
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +129 -31
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +20 -52
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +53 -130
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +7 -20
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +13 -53
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +14 -7
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +5 -13
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +60 -15
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +18 -5
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +19 -59
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +5 -18
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +14 -18
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +1 -1
- package/dist/fondue-components58.js +16 -10
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +10 -4
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +4 -4
- package/dist/fondue-components60.js +35 -18
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +4 -10
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +10 -34
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +5 -35
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +24 -4
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +16 -12
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +150 -4
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +19 -25
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +77 -16
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +8 -151
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +2 -2
- package/dist/fondue-components70.js +37 -19
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +69 -76
- package/dist/fondue-components71.js.map +1 -1
- package/dist/fondue-components72.js +11 -8
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +12 -36
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +12 -70
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +20 -10
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +34 -13
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +10 -12
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +55 -20
- package/dist/fondue-components78.js.map +1 -1
- package/dist/fondue-components79.js +15 -34
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +5 -5
- package/dist/fondue-components80.js +24 -9
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +14 -55
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +22 -14
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +6 -24
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +5 -13
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +4 -22
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +4 -8
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +2 -7
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +39 -4
- package/dist/fondue-components88.js.map +1 -1
- package/dist/fondue-components89.js +6 -5
- package/dist/fondue-components89.js.map +1 -1
- package/dist/fondue-components9.js +4 -4
- package/dist/fondue-components90.js +8 -8
- package/dist/index.d.ts +4 -117
- package/dist/style.css +1 -1
- package/package.json +5 -6
- package/dist/fondue-components91.js +0 -43
- package/dist/fondue-components91.js.map +0 -1
- package/dist/fondue-components92.js +0 -9
- package/dist/fondue-components92.js.map +0 -1
- package/dist/fondue-components93.js +0 -5
- package/dist/fondue-components93.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components51.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components51.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,18 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { sv as t } from "./fondue-components38.js";
|
|
2
|
+
const i = t({
|
|
3
|
+
base: "tw-flex tw-self-stretch tw-justify-center ",
|
|
4
|
+
variants: {
|
|
5
|
+
direction: {
|
|
6
|
+
horizontal: "tw-flex-col tw-h-0 tw-border-t tw-w-full",
|
|
7
|
+
vertical: "tw-flex-row tw-w-0 tw-border-r tw-h-full "
|
|
8
|
+
},
|
|
9
|
+
color: {
|
|
10
|
+
weak: "tw-border-line-weak",
|
|
11
|
+
default: "tw-border-line",
|
|
12
|
+
strong: "tw-border-line-strong",
|
|
13
|
+
"x-strong": "tw-border-x-line-strong"
|
|
14
|
+
},
|
|
15
|
+
variant: {
|
|
16
|
+
solid: "tw-border-solid",
|
|
17
|
+
dashed: "tw-border-dashed",
|
|
18
|
+
noline: "tw-border-none"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: [
|
|
22
|
+
{
|
|
23
|
+
direction: "horizontal",
|
|
24
|
+
padding: "small",
|
|
25
|
+
class: "tw-my-4"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
direction: "horizontal",
|
|
29
|
+
padding: "medium",
|
|
30
|
+
class: "tw-my-7"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
direction: "horizontal",
|
|
34
|
+
padding: "large",
|
|
35
|
+
class: "tw-my-12"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
direction: "vertical",
|
|
39
|
+
padding: "small",
|
|
40
|
+
class: "tw-mx-4"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
direction: "vertical",
|
|
44
|
+
padding: "medium",
|
|
45
|
+
class: "tw-mx-7"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
direction: "vertical",
|
|
49
|
+
padding: "large",
|
|
50
|
+
class: "tw-mx-12"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
padding: "medium",
|
|
55
|
+
direction: "horizontal",
|
|
56
|
+
color: "default",
|
|
57
|
+
variant: "solid"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
9
60
|
export {
|
|
10
|
-
|
|
11
|
-
t as content,
|
|
12
|
-
d as default,
|
|
13
|
-
o as footer,
|
|
14
|
-
e as header,
|
|
15
|
-
c as sideContent,
|
|
16
|
-
_ as underlay
|
|
61
|
+
i as dividerStyles
|
|
17
62
|
};
|
|
18
63
|
//# sourceMappingURL=fondue-components52.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components52.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components52.js","sources":["../src/components/Divider/styles/dividerStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const dividerStyles = sv({\n base: 'tw-flex tw-self-stretch tw-justify-center ',\n variants: {\n direction: {\n horizontal: 'tw-flex-col tw-h-0 tw-border-t tw-w-full',\n vertical: 'tw-flex-row tw-w-0 tw-border-r tw-h-full ',\n },\n color: {\n weak: 'tw-border-line-weak',\n default: 'tw-border-line',\n strong: 'tw-border-line-strong',\n 'x-strong': 'tw-border-x-line-strong',\n },\n variant: {\n solid: 'tw-border-solid',\n dashed: 'tw-border-dashed',\n noline: 'tw-border-none',\n },\n },\n compoundVariants: [\n {\n direction: 'horizontal',\n padding: 'small',\n class: 'tw-my-4',\n },\n {\n direction: 'horizontal',\n padding: 'medium',\n class: 'tw-my-7',\n },\n {\n direction: 'horizontal',\n padding: 'large',\n class: 'tw-my-12',\n },\n {\n direction: 'vertical',\n padding: 'small',\n class: 'tw-mx-4',\n },\n {\n direction: 'vertical',\n padding: 'medium',\n class: 'tw-mx-7',\n },\n {\n direction: 'vertical',\n padding: 'large',\n class: 'tw-mx-12',\n },\n ],\n defaultVariants: {\n padding: 'medium',\n direction: 'horizontal',\n color: 'default',\n variant: 'solid',\n },\n});\n"],"names":["dividerStyles","sv"],"mappings":";AAIO,MAAMA,IAAgBC,EAAG;AAAA,EAC5B,MAAM;AAAA,EACN,UAAU;AAAA,IACN,WAAW;AAAA,MACP,YAAY;AAAA,MACZ,UAAU;AAAA,IAAA;AAAA,IAEd,OAAO;AAAA,MACH,MAAM;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,YAAY;AAAA,IAAA;AAAA,IAEhB,SAAS;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,QAAQ;AAAA,IAAA;AAAA,EACZ;AAAA,EAEJ,kBAAkB;AAAA,IACd;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAEX;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAEX;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAEX;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAEX;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,IAEX;AAAA,MACI,WAAW;AAAA,MACX,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,EACX;AAAA,EAEJ,iBAAiB;AAAA,IACb,SAAS;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,IACP,SAAS;AAAA,EAAA;AAEjB,CAAC;"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as c, isValidElement as r, cloneElement as i, Children as p } from "react";
|
|
3
|
+
const o = (e) => {
|
|
4
|
+
const t = [];
|
|
5
|
+
for (const n of p.toArray(e))
|
|
6
|
+
r(n) ? t.push(n) : t.push(/* @__PURE__ */ s("span", { children: n }));
|
|
7
|
+
return t.length === 1 ? t[0] : t;
|
|
8
|
+
}, u = (e) => c(() => {
|
|
9
|
+
const t = r(e) && e.type === "a";
|
|
10
|
+
if (t) {
|
|
11
|
+
const n = i(e, {
|
|
12
|
+
children: o(e.props.children)
|
|
13
|
+
});
|
|
14
|
+
return { isLink: t, content: n };
|
|
15
|
+
}
|
|
16
|
+
return { isLink: t, content: o(e) };
|
|
17
|
+
}, [e]);
|
|
4
18
|
export {
|
|
5
|
-
|
|
6
|
-
o as root
|
|
19
|
+
u as useProcessedChildren
|
|
7
20
|
};
|
|
8
21
|
//# sourceMappingURL=fondue-components53.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components53.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components53.js","sources":["../src/components/Dropdown/hooks/useProcessedChildren.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Children, cloneElement, isValidElement, type ReactNode, useMemo } from 'react';\n\nconst wrapFloatingText = (children: ReactNode) => {\n const content = [];\n for (const child of Children.toArray(children)) {\n if (isValidElement(child)) {\n content.push(child);\n } else {\n content.push(<span>{child}</span>);\n }\n }\n return content.length === 1 ? content[0] : content;\n};\n\nexport const useProcessedChildren = (children: ReactNode) => {\n return useMemo(() => {\n const isLink =\n isValidElement<{\n children: ReactNode;\n }>(children) && children.type === 'a';\n\n if (isLink) {\n const element = cloneElement(children, {\n children: wrapFloatingText(children.props.children),\n });\n return { isLink, content: element };\n }\n\n return { isLink, content: wrapFloatingText(children) };\n }, [children]);\n};\n"],"names":["wrapFloatingText","children","content","child","Children","isValidElement","jsx","useProcessedChildren","useMemo","isLink","element","cloneElement"],"mappings":";;AAIA,MAAMA,IAAmB,CAACC,MAAwB;AAC9C,QAAMC,IAAU,CAAA;AAChB,aAAWC,KAASC,EAAS,QAAQH,CAAQ;AACzC,IAAII,EAAeF,CAAK,IACpBD,EAAQ,KAAKC,CAAK,IAElBD,EAAQ,KAAK,gBAAAI,EAAC,QAAA,EAAM,UAAAH,EAAA,CAAM,CAAO;AAGzC,SAAOD,EAAQ,WAAW,IAAIA,EAAQ,CAAC,IAAIA;AAC/C,GAEaK,IAAuB,CAACN,MAC1BO,EAAQ,MAAM;AACjB,QAAMC,IACFJ,EAEGJ,CAAQ,KAAKA,EAAS,SAAS;AAEtC,MAAIQ,GAAQ;AACR,UAAMC,IAAUC,EAAaV,GAAU;AAAA,MACnC,UAAUD,EAAiBC,EAAS,MAAM,QAAQ;AAAA,IAAA,CACrD;AACD,WAAO,EAAE,QAAAQ,GAAQ,SAASC,EAAA;AAAA,EAC9B;AAEA,SAAO,EAAE,QAAAD,GAAQ,SAAST,EAAiBC,CAAQ,EAAA;AACvD,GAAG,CAACA,CAAQ,CAAC;"}
|
|
@@ -1,62 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default: "tw-border-line-mid",
|
|
12
|
-
strong: "tw-border-line-strong"
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
solid: "tw-border-solid",
|
|
16
|
-
dashed: "tw-border-dashed",
|
|
17
|
-
noline: "tw-border-none"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
compoundVariants: [
|
|
21
|
-
{
|
|
22
|
-
direction: "horizontal",
|
|
23
|
-
padding: "small",
|
|
24
|
-
class: "tw-my-4"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
direction: "horizontal",
|
|
28
|
-
padding: "medium",
|
|
29
|
-
class: "tw-my-7"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
direction: "horizontal",
|
|
33
|
-
padding: "large",
|
|
34
|
-
class: "tw-my-12"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
direction: "vertical",
|
|
38
|
-
padding: "small",
|
|
39
|
-
class: "tw-mx-4"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
direction: "vertical",
|
|
43
|
-
padding: "medium",
|
|
44
|
-
class: "tw-mx-7"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
direction: "vertical",
|
|
48
|
-
padding: "large",
|
|
49
|
-
class: "tw-mx-12"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
padding: "medium",
|
|
54
|
-
direction: "horizontal",
|
|
55
|
-
color: "default",
|
|
56
|
-
variant: "solid"
|
|
57
|
-
}
|
|
58
|
-
});
|
|
1
|
+
const t = "_content_1ysry_7", s = "_subContent_1ysry_8", n = "_item_1ysry_21", o = "_subTrigger_1ysry_22", r = "_subMenuIndicator_1ysry_115", _ = "_group_1ysry_121", e = "_groupHeading_1ysry_128", u = "_slot_1ysry_139", y = {
|
|
2
|
+
content: t,
|
|
3
|
+
subContent: s,
|
|
4
|
+
item: n,
|
|
5
|
+
subTrigger: o,
|
|
6
|
+
subMenuIndicator: r,
|
|
7
|
+
group: _,
|
|
8
|
+
groupHeading: e,
|
|
9
|
+
slot: u
|
|
10
|
+
};
|
|
59
11
|
export {
|
|
60
|
-
|
|
12
|
+
t as content,
|
|
13
|
+
y as default,
|
|
14
|
+
_ as group,
|
|
15
|
+
e as groupHeading,
|
|
16
|
+
n as item,
|
|
17
|
+
u as slot,
|
|
18
|
+
s as subContent,
|
|
19
|
+
r as subMenuIndicator,
|
|
20
|
+
o as subTrigger
|
|
61
21
|
};
|
|
62
22
|
//# sourceMappingURL=fondue-components54.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components54.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components54.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const t = [];
|
|
5
|
-
for (const n of p.toArray(e))
|
|
6
|
-
r(n) ? t.push(n) : t.push(/* @__PURE__ */ s("span", { children: n }));
|
|
7
|
-
return t.length === 1 ? t[0] : t;
|
|
8
|
-
}, u = (e) => c(() => {
|
|
9
|
-
const t = r(e) && e.type === "a";
|
|
10
|
-
if (t) {
|
|
11
|
-
const n = i(e, {
|
|
12
|
-
children: o(e.props.children)
|
|
13
|
-
});
|
|
14
|
-
return { isLink: t, content: n };
|
|
15
|
-
}
|
|
16
|
-
return { isLink: t, content: o(e) };
|
|
17
|
-
}, [e]);
|
|
1
|
+
const o = "_root_1sw7a_6", t = {
|
|
2
|
+
root: o
|
|
3
|
+
};
|
|
18
4
|
export {
|
|
19
|
-
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
20
7
|
};
|
|
21
8
|
//# sourceMappingURL=fondue-components55.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components55.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components55.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
groupHeading: u,
|
|
9
|
-
slot: a
|
|
1
|
+
const o = "_root_hstbt_6", t = "_overlay_hstbt_51", s = "_header_hstbt_68", e = "_body_hstbt_89", _ = "_footer_hstbt_114", r = "_close_hstbt_135", c = {
|
|
2
|
+
root: o,
|
|
3
|
+
overlay: t,
|
|
4
|
+
header: s,
|
|
5
|
+
body: e,
|
|
6
|
+
footer: _,
|
|
7
|
+
close: r
|
|
10
8
|
};
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
r as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_ as subMenuIndicator,
|
|
20
|
-
s as subTrigger
|
|
10
|
+
e as body,
|
|
11
|
+
r as close,
|
|
12
|
+
c as default,
|
|
13
|
+
_ as footer,
|
|
14
|
+
s as header,
|
|
15
|
+
t as overlay,
|
|
16
|
+
o as root
|
|
21
17
|
};
|
|
22
18
|
//# sourceMappingURL=fondue-components56.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components56.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components56.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_root_1brlo_2", r = {
|
|
2
2
|
root: o,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"size-medium": "_size-medium_1brlo_6",
|
|
4
|
+
"size-large": "_size-large_1brlo_11",
|
|
5
|
+
"size-x-large": "_size-x-large_1brlo_16",
|
|
6
|
+
"size-xx-large": "_size-xx-large_1brlo_21",
|
|
7
|
+
"weight-default": "_weight-default_1brlo_26",
|
|
8
|
+
"weight-strong": "_weight-strong_1brlo_30",
|
|
9
|
+
"color-default": "_color-default_1brlo_34",
|
|
10
|
+
"color-weak": "_color-weak_1brlo_38",
|
|
11
|
+
"color-x-weak": "_color-x-weak_1brlo_42",
|
|
12
|
+
"color-disabled": "_color-disabled_1brlo_46",
|
|
13
|
+
"color-negative": "_color-negative_1brlo_50",
|
|
14
|
+
"color-positive": "_color-positive_1brlo_54",
|
|
15
|
+
"color-warning": "_color-warning_1brlo_58",
|
|
16
|
+
"color-interactive": "_color-interactive_1brlo_62"
|
|
7
17
|
};
|
|
8
18
|
export {
|
|
9
|
-
|
|
10
|
-
c as default,
|
|
11
|
-
r as footer,
|
|
12
|
-
t as header,
|
|
13
|
-
e as overlay,
|
|
19
|
+
r as default,
|
|
14
20
|
o as root
|
|
15
21
|
};
|
|
16
22
|
//# sourceMappingURL=fondue-components58.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components58.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components58.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
root:
|
|
1
|
+
const t = "_root_1n5v6_3", e = "_contentArea_1n5v6_66", n = "_hiddenText_1n5v6_71", o = "_visibleText_1n5v6_77", _ = {
|
|
2
|
+
root: t,
|
|
3
|
+
contentArea: e,
|
|
4
|
+
hiddenText: n,
|
|
5
|
+
visibleText: o
|
|
3
6
|
};
|
|
4
7
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
e as contentArea,
|
|
9
|
+
_ as default,
|
|
10
|
+
n as hiddenText,
|
|
11
|
+
t as root,
|
|
12
|
+
o as visibleText
|
|
7
13
|
};
|
|
8
14
|
//# sourceMappingURL=fondue-components59.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components59.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
|
-
import { cn as x } from "./fondue-
|
|
4
|
-
import { buttonStyles as S } from "./fondue-
|
|
5
|
-
import { iconStyles as k } from "./fondue-
|
|
6
|
-
import { textStyles as B } from "./fondue-
|
|
3
|
+
import { cn as x } from "./fondue-components38.js";
|
|
4
|
+
import { buttonStyles as S } from "./fondue-components39.js";
|
|
5
|
+
import { iconStyles as k } from "./fondue-components40.js";
|
|
6
|
+
import { textStyles as B } from "./fondue-components41.js";
|
|
7
7
|
const C = y(
|
|
8
8
|
({
|
|
9
9
|
children: f,
|
|
@@ -1,21 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { sv as t } from "./fondue-components38.js";
|
|
2
|
+
const i = t({
|
|
3
|
+
base: "tw-relative tw-w-full tw-overflow-hidden",
|
|
4
|
+
variants: {
|
|
5
|
+
rounded: {
|
|
6
|
+
true: "tw-rounded"
|
|
7
|
+
},
|
|
8
|
+
size: {
|
|
9
|
+
small: "tw-h-1",
|
|
10
|
+
medium: "tw-h-2",
|
|
11
|
+
large: "tw-h-3",
|
|
12
|
+
"x-large": "tw-h-4"
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
default: "tw-bg-box-selected",
|
|
16
|
+
positive: "tw-bg-box-positive",
|
|
17
|
+
negative: "tw-bg-box-negative"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}), a = t({
|
|
21
|
+
base: "tw-h-full tw-w-full",
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
default: "tw-bg-text-interactive",
|
|
25
|
+
positive: "tw-bg-text-positive",
|
|
26
|
+
negative: "tw-bg-text-negative"
|
|
27
|
+
},
|
|
28
|
+
indeterminateState: {
|
|
29
|
+
true: "tw-animate-loading-bar-infinite tw-origin-left-right",
|
|
30
|
+
false: "tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
17
34
|
export {
|
|
18
|
-
i as
|
|
19
|
-
|
|
35
|
+
i as loadingBarContainerStyles,
|
|
36
|
+
a as loadingBarStyles
|
|
20
37
|
};
|
|
21
38
|
//# sourceMappingURL=fondue-components60.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components60.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components60.js","sources":["../src/components/LoadingBar/styles/loadingBarStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const loadingBarContainerStyles = sv({\n base: 'tw-relative tw-w-full tw-overflow-hidden',\n variants: {\n rounded: {\n true: 'tw-rounded',\n },\n size: {\n small: 'tw-h-1',\n medium: 'tw-h-2',\n large: 'tw-h-3',\n 'x-large': 'tw-h-4',\n },\n variant: {\n default: 'tw-bg-box-selected',\n positive: 'tw-bg-box-positive',\n negative: 'tw-bg-box-negative',\n },\n },\n});\n\nexport const loadingBarStyles = sv({\n base: 'tw-h-full tw-w-full',\n variants: {\n variant: {\n default: 'tw-bg-text-interactive',\n positive: 'tw-bg-text-positive',\n negative: 'tw-bg-text-negative',\n },\n indeterminateState: {\n true: 'tw-animate-loading-bar-infinite tw-origin-left-right',\n false: 'tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]',\n },\n },\n});\n"],"names":["loadingBarContainerStyles","sv","loadingBarStyles"],"mappings":";AAIO,MAAMA,IAA4BC,EAAG;AAAA,EACxC,MAAM;AAAA,EACN,UAAU;AAAA,IACN,SAAS;AAAA,MACL,MAAM;AAAA,IAAA;AAAA,IAEV,MAAM;AAAA,MACF,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,WAAW;AAAA,IAAA;AAAA,IAEf,SAAS;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,IAAA;AAAA,EACd;AAER,CAAC,GAEYC,IAAmBD,EAAG;AAAA,EAC/B,MAAM;AAAA,EACN,UAAU;AAAA,IACN,SAAS;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,UAAU;AAAA,IAAA;AAAA,IAEd,oBAAoB;AAAA,MAChB,MAAM;AAAA,MACN,OAAO;AAAA,IAAA;AAAA,EACX;AAER,CAAC;"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
contentArea: e,
|
|
4
|
-
hiddenText: o,
|
|
5
|
-
visibleText: n
|
|
1
|
+
const o = "_root_1hks3_8", t = {
|
|
2
|
+
root: o
|
|
6
3
|
};
|
|
7
4
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
o as hiddenText,
|
|
11
|
-
t as root,
|
|
12
|
-
n as visibleText
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
13
7
|
};
|
|
14
8
|
//# sourceMappingURL=fondue-components61.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components61.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components61.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_root_hkznm_4", r = "_viewport_hkznm_12", t = "_scrollbar_hkznm_43", _ = "_thumb_hkznm_75", n = "_corner_hkznm_93", c = {
|
|
2
2
|
root: o,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"size-large": "_size-large_18l9z_32",
|
|
8
|
-
"size-x-large": "_size-x-large_18l9z_38",
|
|
9
|
-
"size-xx-large": "_size-xx-large_18l9z_44",
|
|
10
|
-
"weight-regular": "_weight-regular_18l9z_50",
|
|
11
|
-
"weight-medium": "_weight-medium_18l9z_54",
|
|
12
|
-
"weight-bold": "_weight-bold_18l9z_58",
|
|
13
|
-
"wrap-wrap": "_wrap-wrap_18l9z_62",
|
|
14
|
-
"wrap-nowrap": "_wrap-nowrap_18l9z_66",
|
|
15
|
-
"underline-auto": "_underline-auto_18l9z_70",
|
|
16
|
-
"underline-always": "_underline-always_18l9z_74",
|
|
17
|
-
"underline-hover": "_underline-hover_18l9z_78",
|
|
18
|
-
"underline-none": "_underline-none_18l9z_86",
|
|
19
|
-
"color-primary": "_color-primary_18l9z_90",
|
|
20
|
-
"color-secondary": "_color-secondary_18l9z_94",
|
|
21
|
-
"color-error": "_color-error_18l9z_98",
|
|
22
|
-
"color-success": "_color-success_18l9z_102",
|
|
23
|
-
"color-warning": "_color-warning_18l9z_106",
|
|
24
|
-
"color-highlight": "_color-highlight_18l9z_110",
|
|
25
|
-
"color-on-container-secondary": "_color-on-container-secondary_18l9z_114",
|
|
26
|
-
"color-on-container-disabled": "_color-on-container-disabled_18l9z_118",
|
|
27
|
-
"color-on-container-error": "_color-on-container-error_18l9z_122",
|
|
28
|
-
"color-on-container-success": "_color-on-container-success_18l9z_126",
|
|
29
|
-
"color-on-container-warning": "_color-on-container-warning_18l9z_130",
|
|
30
|
-
"color-on-container-highlight": "_color-on-container-highlight_18l9z_134",
|
|
31
|
-
truncate: l,
|
|
32
|
-
disabled: r
|
|
3
|
+
viewport: r,
|
|
4
|
+
scrollbar: t,
|
|
5
|
+
thumb: _,
|
|
6
|
+
corner: n
|
|
33
7
|
};
|
|
34
8
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
9
|
+
n as corner,
|
|
10
|
+
c as default,
|
|
37
11
|
o as root,
|
|
38
|
-
|
|
12
|
+
t as scrollbar,
|
|
13
|
+
_ as thumb,
|
|
14
|
+
r as viewport
|
|
39
15
|
};
|
|
40
16
|
//# sourceMappingURL=fondue-components62.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components62.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components62.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
variants: {
|
|
5
|
-
rounded: {
|
|
6
|
-
true: "tw-rounded-medium"
|
|
7
|
-
},
|
|
8
|
-
size: {
|
|
9
|
-
small: "tw-h-1",
|
|
10
|
-
medium: "tw-h-2",
|
|
11
|
-
large: "tw-h-3",
|
|
12
|
-
"x-large": "tw-h-4"
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
default: "tw-bg-container-highlight",
|
|
16
|
-
positive: "tw-bg-container-success",
|
|
17
|
-
negative: "tw-bg-container-error"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}), a = t({
|
|
21
|
-
base: "tw-h-full tw-w-full",
|
|
22
|
-
variants: {
|
|
23
|
-
variant: {
|
|
24
|
-
default: "tw-bg-highlight",
|
|
25
|
-
positive: "tw-bg-success",
|
|
26
|
-
negative: "tw-bg-error"
|
|
27
|
-
},
|
|
28
|
-
indeterminateState: {
|
|
29
|
-
true: "tw-animate-loading-bar-infinite tw-origin-left-right",
|
|
30
|
-
false: "tw-transition-all tw-origin-left tw-scale-x-[--loading-bar-proportion]"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
1
|
+
const o = "_root_howjn_6", t = {
|
|
2
|
+
root: o
|
|
3
|
+
};
|
|
34
4
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
37
7
|
};
|
|
38
8
|
//# sourceMappingURL=fondue-components63.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components63.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { useMemo as f, useCallback as d, useState as v, useRef as m, useEffect as S } from "react";
|
|
2
|
+
const U = ({
|
|
3
|
+
prop: s,
|
|
4
|
+
defaultProp: c,
|
|
5
|
+
onChange: t = () => {
|
|
6
|
+
}
|
|
7
|
+
}) => {
|
|
8
|
+
const [n, o] = b({ defaultProp: c, onChange: t }), e = s !== void 0, i = e ? s : n, r = f(() => t, [t]), a = d(
|
|
9
|
+
(l) => {
|
|
10
|
+
if (e) {
|
|
11
|
+
const u = typeof l == "function" ? l(s) : l;
|
|
12
|
+
u !== s && r(u);
|
|
13
|
+
} else
|
|
14
|
+
o(l);
|
|
15
|
+
},
|
|
16
|
+
[e, s, o, r]
|
|
17
|
+
);
|
|
18
|
+
return [i, a];
|
|
19
|
+
}, b = ({ defaultProp: s, onChange: c }) => {
|
|
20
|
+
const [t, n] = v(s), o = m(t), e = f(() => c, [c]);
|
|
21
|
+
return S(() => {
|
|
22
|
+
o.current !== t && (e == null || e(t), o.current = t);
|
|
23
|
+
}, [t, o, e]), [t, n];
|
|
3
24
|
};
|
|
4
25
|
export {
|
|
5
|
-
|
|
6
|
-
o as root
|
|
26
|
+
U as useControllableState
|
|
7
27
|
};
|
|
8
28
|
//# sourceMappingURL=fondue-components64.js.map
|