@frontify/fondue-components 16.0.0 → 16.0.3
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-components21.js +3 -3
- package/dist/fondue-components24.js +51 -51
- package/dist/fondue-components25.js +4 -4
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components29.js +19 -19
- package/dist/fondue-components3.js +49 -51
- package/dist/fondue-components3.js.map +1 -1
- package/dist/fondue-components30.js +4 -8
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +5 -5
- package/dist/fondue-components38.js +15 -15
- package/dist/fondue-components39.js +31 -28
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components40.js +13 -13
- package/dist/fondue-components42.js +15 -15
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components54.js +4 -6
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components57.js +3 -3
- package/dist/fondue-components59.js +13 -13
- package/dist/fondue-components6.js +3 -3
- package/dist/fondue-components61.js +8 -8
- package/dist/fondue-components64.js +13 -13
- package/dist/fondue-components66.js +9 -9
- package/dist/fondue-components7.js +37 -34
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components73.js +6 -9
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components77.js +6 -6
- package/dist/fondue-components8.js +3 -3
- package/dist/index.d.ts +15 -7
- package/dist/style.css +1 -1
- package/package.json +54 -54
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { RgbaColorPicker as
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { RgbaColorPicker as n } from "react-colorful";
|
|
4
4
|
import t from "./fondue-components41.js";
|
|
5
5
|
import { DEFAULT_COLOR as s } from "./fondue-components42.js";
|
|
6
6
|
const i = ({
|
|
7
|
-
currentColor:
|
|
7
|
+
currentColor: a = s,
|
|
8
8
|
onColorChange: d = () => {
|
|
9
9
|
},
|
|
10
10
|
"data-test-id": o = "color-picker-input"
|
|
11
11
|
}, p) => /* @__PURE__ */ r("div", { className: t.gradientInput, "data-test-id": o, ref: p, children: /* @__PURE__ */ r(
|
|
12
|
-
|
|
12
|
+
n,
|
|
13
13
|
{
|
|
14
14
|
className: t.reactColorful,
|
|
15
15
|
color: {
|
|
16
|
-
r:
|
|
17
|
-
g:
|
|
18
|
-
b:
|
|
19
|
-
a:
|
|
16
|
+
r: a.red,
|
|
17
|
+
g: a.green,
|
|
18
|
+
b: a.blue,
|
|
19
|
+
a: a.alpha === void 0 ? 1 : a.alpha
|
|
20
20
|
},
|
|
21
|
-
onChange: (
|
|
22
|
-
red:
|
|
23
|
-
green:
|
|
24
|
-
blue:
|
|
25
|
-
alpha:
|
|
21
|
+
onChange: (e) => d({
|
|
22
|
+
red: e.r,
|
|
23
|
+
green: e.g,
|
|
24
|
+
blue: e.b,
|
|
25
|
+
alpha: e.a
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
28
|
) });
|
|
29
29
|
i.displayName = "ColorPicker.Gradient";
|
|
30
|
-
const
|
|
30
|
+
const c = m(i);
|
|
31
31
|
export {
|
|
32
32
|
i as ColorGradientInput,
|
|
33
|
-
|
|
33
|
+
c as ForwardedRefColorGradientInput
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=fondue-components38.js.map
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IconDroplet as
|
|
1
|
+
import { jsxs as s, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { IconDroplet as h, IconCross as f, IconCaretDown as I } from "@frontify/fondue-icons";
|
|
3
3
|
import { forwardRef as b } from "react";
|
|
4
|
-
import
|
|
5
|
-
import { colorToCss as
|
|
4
|
+
import t from "./fondue-components77.js";
|
|
5
|
+
import { getColorWithName as v, colorToCss as k } from "./fondue-components42.js";
|
|
6
6
|
const o = ({
|
|
7
7
|
id: c,
|
|
8
|
-
currentColor:
|
|
8
|
+
currentColor: a,
|
|
9
9
|
isOpen: d,
|
|
10
10
|
onClear: i,
|
|
11
11
|
onClick: l,
|
|
12
|
-
"data-test-id":
|
|
13
|
-
...
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
12
|
+
"data-test-id": m = "color-picker-input",
|
|
13
|
+
...n
|
|
14
|
+
}, r) => {
|
|
15
|
+
const p = (a == null ? void 0 : a.name) ?? (a ? v(a, "RGBA").name : "");
|
|
16
|
+
return /* @__PURE__ */ s("div", { id: c, className: t.root, ref: r, "data-test-id": m, children: [
|
|
17
|
+
/* @__PURE__ */ s("button", { className: t.button, ...n, onClick: l, type: "button", "data-color-input-select": !0, children: [
|
|
18
|
+
(a == null ? void 0 : a.red) !== void 0 ? /* @__PURE__ */ e(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
"aria-hidden": !0,
|
|
22
|
+
className: t.colorIndicator,
|
|
23
|
+
style: { "--active-color": k(a) }
|
|
24
|
+
}
|
|
25
|
+
) : /* @__PURE__ */ s(N, { children: [
|
|
26
|
+
/* @__PURE__ */ e(h, { size: 16 }),
|
|
27
|
+
/* @__PURE__ */ e("span", { children: "Select Color" })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ e("span", { className: t.colorName, children: p })
|
|
26
30
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
] });
|
|
31
|
+
/* @__PURE__ */ s("div", { className: t.actions, children: [
|
|
32
|
+
i && /* @__PURE__ */ e("button", { type: "button", "aria-label": "Clear color", onClick: i, className: t.clear, children: /* @__PURE__ */ e(f, { size: 16 }) }),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: t.caret, "data-state": d ? "open" : "closed", children: /* @__PURE__ */ e(I, { size: 16, className: t.caret }) })
|
|
34
|
+
] })
|
|
35
|
+
] });
|
|
36
|
+
};
|
|
34
37
|
o.displayName = "ColorPicker.Input";
|
|
35
|
-
const
|
|
38
|
+
const R = b(o);
|
|
36
39
|
export {
|
|
37
40
|
o as ColorPickerInput,
|
|
38
|
-
|
|
41
|
+
R as ForwardedRefColorPickerInput
|
|
39
42
|
};
|
|
40
43
|
//# sourceMappingURL=fondue-components39.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components39.js","sources":["../src/components/ColorPicker/ColorPickerInput.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCaretDown, IconCross, IconDroplet } from '@frontify/fondue-icons';\nimport { type ForwardedRef, forwardRef } from 'react';\n\nimport { type CommonAriaAttrs } from '#/utilities/types';\n\nimport styles from './styles/colorInput.module.scss';\nimport { type RgbaColor } from './types';\nimport { colorToCss } from './utils';\n\ntype ColorPickerInputProps = {\n id?: string;\n /**\n * The active color in the color picker\n */\n currentColor?: RgbaColor;\n /**\n * The open state of the color picker used to dermine arrow state\n */\n isOpen?: boolean;\n /**\n * callback for clearing the color\n */\n onClear?: () => void;\n /**\n * Event handler called when the color picker input is clicked\n */\n onClick?: () => void;\n /**\n * The test id of the color picker input\n */\n 'data-test-id'?: string;\n} & CommonAriaAttrs;\n\nexport const ColorPickerInput = (\n {\n id,\n currentColor,\n isOpen,\n onClear,\n onClick,\n 'data-test-id': dataTestId = 'color-picker-input',\n ...props\n }: ColorPickerInputProps,\n forwardedRef: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div id={id} className={styles.root}
|
|
1
|
+
{"version":3,"file":"fondue-components39.js","sources":["../src/components/ColorPicker/ColorPickerInput.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCaretDown, IconCross, IconDroplet } from '@frontify/fondue-icons';\nimport { type CSSProperties, type ForwardedRef, forwardRef } from 'react';\n\nimport { type CommonAriaAttrs } from '#/utilities/types';\n\nimport styles from './styles/colorInput.module.scss';\nimport { type RgbaColor } from './types';\nimport { colorToCss, getColorWithName } from './utils';\n\ntype ColorPickerInputProps = {\n id?: string;\n /**\n * The active color in the color picker\n */\n currentColor?: RgbaColor;\n /**\n * The open state of the color picker used to dermine arrow state\n */\n isOpen?: boolean;\n /**\n * callback for clearing the color\n */\n onClear?: () => void;\n /**\n * Event handler called when the color picker input is clicked\n */\n onClick?: () => void;\n /**\n * The test id of the color picker input\n */\n 'data-test-id'?: string;\n} & CommonAriaAttrs;\n\nexport const ColorPickerInput = (\n {\n id,\n currentColor,\n isOpen,\n onClear,\n onClick,\n 'data-test-id': dataTestId = 'color-picker-input',\n ...props\n }: ColorPickerInputProps,\n forwardedRef: ForwardedRef<HTMLDivElement>,\n) => {\n const colorName = currentColor?.name ?? (currentColor ? getColorWithName(currentColor, 'RGBA').name : '');\n return (\n <div id={id} className={styles.root} ref={forwardedRef} data-test-id={dataTestId}>\n <button className={styles.button} {...props} onClick={onClick} type=\"button\" data-color-input-select>\n {currentColor?.red !== undefined ? (\n <div\n aria-hidden\n className={styles.colorIndicator}\n style={{ '--active-color': colorToCss(currentColor) } as CSSProperties}\n />\n ) : (\n <>\n <IconDroplet size={16} />\n <span>Select Color</span>\n </>\n )}\n\n <span className={styles.colorName}>{colorName}</span>\n </button>\n <div className={styles.actions}>\n {onClear && (\n <button type=\"button\" aria-label=\"Clear color\" onClick={onClear} className={styles.clear}>\n <IconCross size={16} />\n </button>\n )}\n <div className={styles.caret} data-state={isOpen ? 'open' : 'closed'}>\n <IconCaretDown size={16} className={styles.caret} />\n </div>\n </div>\n </div>\n );\n};\nColorPickerInput.displayName = 'ColorPicker.Input';\n\nexport const ForwardedRefColorPickerInput = forwardRef<HTMLDivElement, ColorPickerInputProps>(ColorPickerInput);\n"],"names":["ColorPickerInput","id","currentColor","isOpen","onClear","onClick","dataTestId","props","forwardedRef","colorName","getColorWithName","jsxs","styles","jsx","colorToCss","Fragment","IconDroplet","IconCross","IconCaretDown","ForwardedRefColorPickerInput","forwardRef"],"mappings":";;;;;AAmCO,MAAMA,IAAmB,CAC5B;AAAA,EACI,IAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,gBAAgBC,IAAa;AAAA,EAC7B,GAAGC;AACP,GACAC,MACC;AACK,QAAAC,KAAYP,KAAA,gBAAAA,EAAc,UAASA,IAAeQ,EAAiBR,GAAc,MAAM,EAAE,OAAO;AAElG,SAAA,gBAAAS,EAAC,SAAI,IAAAV,GAAQ,WAAWW,EAAO,MAAM,KAAKJ,GAAc,gBAAcF,GAClE,UAAA;AAAA,IAAC,gBAAAK,EAAA,UAAA,EAAO,WAAWC,EAAO,QAAS,GAAGL,GAAO,SAAAF,GAAkB,MAAK,UAAS,2BAAuB,IAC/F,UAAA;AAAA,OAAAH,KAAA,gBAAAA,EAAc,SAAQ,SACnB,gBAAAW;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,eAAW;AAAA,UACX,WAAWD,EAAO;AAAA,UAClB,OAAO,EAAE,kBAAkBE,EAAWZ,CAAY,EAAE;AAAA,QAAA;AAAA,MAAA,IAIpD,gBAAAS,EAAAI,GAAA,EAAA,UAAA;AAAA,QAAC,gBAAAF,EAAAG,GAAA,EAAY,MAAM,GAAI,CAAA;AAAA,QACvB,gBAAAH,EAAC,UAAK,UAAY,eAAA,CAAA;AAAA,MAAA,GACtB;AAAA,MAGH,gBAAAA,EAAA,QAAA,EAAK,WAAWD,EAAO,WAAY,UAAUH,EAAA,CAAA;AAAA,IAAA,GAClD;AAAA,IACC,gBAAAE,EAAA,OAAA,EAAI,WAAWC,EAAO,SAClB,UAAA;AAAA,MAAAR,KACI,gBAAAS,EAAA,UAAA,EAAO,MAAK,UAAS,cAAW,eAAc,SAAST,GAAS,WAAWQ,EAAO,OAC/E,UAAA,gBAAAC,EAACI,GAAU,EAAA,MAAM,GAAI,CAAA,GACzB;AAAA,wBAEH,OAAI,EAAA,WAAWL,EAAO,OAAO,cAAYT,IAAS,SAAS,UACxD,UAAA,gBAAAU,EAACK,KAAc,MAAM,IAAI,WAAWN,EAAO,OAAO,EACtD,CAAA;AAAA,IAAA,EACJ,CAAA;AAAA,EAAA,GACJ;AAER;AACAZ,EAAiB,cAAc;AAElB,MAAAmB,IAA+BC,EAAkDpB,CAAgB;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useState as b, useEffect as R } from "react";
|
|
3
3
|
import { Select as c } from "./fondue-components21.js";
|
|
4
4
|
import { TextInput as r } from "./fondue-components27.js";
|
|
5
5
|
import a from "./fondue-components41.js";
|
|
6
|
-
import { rgbColorToHex as d,
|
|
6
|
+
import { rgbColorToHex as d, DEFAULT_COLOR as I, DEFAULT_FORMAT as x, isValidHexColor as m, hexColorToRgba as S, getLimitedColorChannelValue as n } from "./fondue-components42.js";
|
|
7
7
|
const h = ({
|
|
8
|
-
currentColor: t =
|
|
8
|
+
currentColor: t = I,
|
|
9
9
|
onColorChange: i = () => {
|
|
10
10
|
},
|
|
11
|
-
currentFormat: s =
|
|
11
|
+
currentFormat: s = x,
|
|
12
12
|
setCurrentFormat: v = () => {
|
|
13
13
|
},
|
|
14
14
|
"data-test-id": f = "color-picker-value-input"
|
|
@@ -16,8 +16,8 @@ const h = ({
|
|
|
16
16
|
const [u, p] = b(d(t));
|
|
17
17
|
return R(() => {
|
|
18
18
|
p(d(t));
|
|
19
|
-
}, [t]), /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */ e("div", { className: a.colorFormatInput, children: /* @__PURE__ */
|
|
19
|
+
}, [t]), /* @__PURE__ */ o("div", { className: a.inputs, "data-test-id": f, ref: g, children: [
|
|
20
|
+
/* @__PURE__ */ e("div", { className: a.colorFormatInput, children: /* @__PURE__ */ o(
|
|
21
21
|
c,
|
|
22
22
|
{
|
|
23
23
|
"data-test-id": "color-picker-select-format",
|
|
@@ -41,7 +41,7 @@ const h = ({
|
|
|
41
41
|
value: u,
|
|
42
42
|
status: m(u) ? "neutral" : "error",
|
|
43
43
|
onBlur: (l) => {
|
|
44
|
-
m(l.target.value) && i(
|
|
44
|
+
m(l.target.value) && i(S(l.target.value));
|
|
45
45
|
},
|
|
46
46
|
onChange: (l) => {
|
|
47
47
|
p(l.target.value);
|
|
@@ -49,7 +49,7 @@ const h = ({
|
|
|
49
49
|
"aria-label": "Hex color value",
|
|
50
50
|
children: /* @__PURE__ */ e(r.Slot, { name: "left", children: /* @__PURE__ */ e("span", { className: a.inputDecorator, children: "#" }) })
|
|
51
51
|
}
|
|
52
|
-
) : /* @__PURE__ */
|
|
52
|
+
) : /* @__PURE__ */ o("div", { className: a.colorChannelInputGroup, children: [
|
|
53
53
|
/* @__PURE__ */ e(
|
|
54
54
|
r.Root,
|
|
55
55
|
{
|
|
@@ -60,7 +60,7 @@ const h = ({
|
|
|
60
60
|
onChange: (l) => {
|
|
61
61
|
i({
|
|
62
62
|
...t,
|
|
63
|
-
red:
|
|
63
|
+
red: n(l.target.value)
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
66
|
"aria-label": "Red Color Channel",
|
|
@@ -77,7 +77,7 @@ const h = ({
|
|
|
77
77
|
onChange: (l) => {
|
|
78
78
|
i({
|
|
79
79
|
...t,
|
|
80
|
-
green:
|
|
80
|
+
green: n(l.target.value)
|
|
81
81
|
});
|
|
82
82
|
},
|
|
83
83
|
"aria-label": "Green Color Channel",
|
|
@@ -94,7 +94,7 @@ const h = ({
|
|
|
94
94
|
onChange: (l) => {
|
|
95
95
|
i({
|
|
96
96
|
...t,
|
|
97
|
-
blue:
|
|
97
|
+
blue: n(l.target.value)
|
|
98
98
|
});
|
|
99
99
|
},
|
|
100
100
|
"aria-label": "Blue Color Channel",
|
|
@@ -102,7 +102,7 @@ const h = ({
|
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
] }),
|
|
105
|
-
/* @__PURE__ */ e("div", { className: a.colorAlphaInput, children: /* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ e("div", { className: a.colorAlphaInput, children: /* @__PURE__ */ o(
|
|
106
106
|
r.Root,
|
|
107
107
|
{
|
|
108
108
|
"data-test-id": "color-picker-value-input-alpha",
|
|
@@ -112,7 +112,7 @@ const h = ({
|
|
|
112
112
|
onChange: (l) => {
|
|
113
113
|
i({
|
|
114
114
|
...t,
|
|
115
|
-
alpha:
|
|
115
|
+
alpha: n(l.target.value, 0, 100) / 100
|
|
116
116
|
});
|
|
117
117
|
},
|
|
118
118
|
"aria-label": "Color Opacity",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
const s = { red: 255, green: 255, blue: 255, alpha: 1, name: "" }, g = "HEX", $ = (e) => {
|
|
2
2
|
if (e)
|
|
3
|
-
return `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha
|
|
3
|
+
return `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha ?? 1})`;
|
|
4
4
|
}, p = (e) => {
|
|
5
|
-
const
|
|
6
|
-
return e.length > 2 &&
|
|
7
|
-
},
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
5
|
+
const r = /^([\dA-Fa-f]{3}){1,2}$/;
|
|
6
|
+
return e.length > 2 && r.test(e);
|
|
7
|
+
}, h = (e) => {
|
|
8
|
+
const r = /^([\dA-Fa-f]{3}){1,2}$/, n = e.match(r);
|
|
9
|
+
if (!n)
|
|
10
10
|
return {
|
|
11
11
|
red: 0,
|
|
12
12
|
green: 0,
|
|
13
13
|
blue: 0,
|
|
14
14
|
alpha: 0
|
|
15
15
|
};
|
|
16
|
-
const t =
|
|
16
|
+
const t = n[0];
|
|
17
17
|
return t.length === 3 ? {
|
|
18
18
|
red: parseInt(`${t[0]}${t[0]}`, 16),
|
|
19
19
|
green: parseInt(`${t[1]}${t[1]}`, 16),
|
|
@@ -26,22 +26,22 @@ const s = { red: 255, green: 255, blue: 255, alpha: 1, name: "" }, g = "HEX", $
|
|
|
26
26
|
alpha: 1
|
|
27
27
|
};
|
|
28
28
|
}, a = (e) => {
|
|
29
|
-
const { red:
|
|
30
|
-
return `${
|
|
31
|
-
},
|
|
29
|
+
const { red: r, green: n, blue: t } = e;
|
|
30
|
+
return `${r.toString(16).padStart(2, "0")}${n.toString(16).padStart(2, "0")}${t.toString(16).padStart(2, "0")}`;
|
|
31
|
+
}, i = (e, r) => r === "HEX" ? {
|
|
32
32
|
...e,
|
|
33
33
|
name: `#${a(e)}`
|
|
34
34
|
} : {
|
|
35
35
|
...e,
|
|
36
|
-
name: `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha
|
|
37
|
-
},
|
|
36
|
+
name: `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha ?? 1})`
|
|
37
|
+
}, u = (e, r = 0, n = 255) => e.length === 0 || parseInt(e) < r ? r : parseInt(e) > n ? n : parseInt(e);
|
|
38
38
|
export {
|
|
39
39
|
s as DEFAULT_COLOR,
|
|
40
40
|
g as DEFAULT_FORMAT,
|
|
41
41
|
$ as colorToCss,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
i as getColorWithName,
|
|
43
|
+
u as getLimitedColorChannelValue,
|
|
44
|
+
h as hexColorToRgba,
|
|
45
45
|
p as isValidHexColor,
|
|
46
46
|
a as rgbColorToHex
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components42.js","sources":["../src/components/ColorPicker/utils.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ColorFormat, type RgbaColor } from './types';\n\nexport const DEFAULT_COLOR = { red: 255, green: 255, blue: 255, alpha: 1, name: '' };\nexport const DEFAULT_FORMAT = 'HEX';\n\n/**\n * Converts a color object to a CSS color string.\n * @param {RgbaColor} color - The color object to be converted.\n * @returns {string}\n * @example\n * colorToCss({ red: 255, green: 255, blue: 255, alpha: 1 }); // 'rgba(255, 255, 255, 1)'\n * @example\n * colorToCss({ red: 255, green: 87, blue: 51, alpha: 1 }); // 'rgba(255, 87, 51, 1)'\n * @example\n * colorToCss({ red: 0, green: 0, blue: 0, alpha: 0 }); // 'rgba(0, 0, 0, 0)'\n */\nexport const colorToCss = (color?: RgbaColor) => {\n if (!color) {\n return undefined;\n }\n return `rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha
|
|
1
|
+
{"version":3,"file":"fondue-components42.js","sources":["../src/components/ColorPicker/utils.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ColorFormat, type RgbaColor } from './types';\n\nexport const DEFAULT_COLOR = { red: 255, green: 255, blue: 255, alpha: 1, name: '' };\nexport const DEFAULT_FORMAT = 'HEX';\n\n/**\n * Converts a color object to a CSS color string.\n * @param {RgbaColor} color - The color object to be converted.\n * @returns {string}\n * @example\n * colorToCss({ red: 255, green: 255, blue: 255, alpha: 1 }); // 'rgba(255, 255, 255, 1)'\n * @example\n * colorToCss({ red: 255, green: 87, blue: 51, alpha: 1 }); // 'rgba(255, 87, 51, 1)'\n * @example\n * colorToCss({ red: 0, green: 0, blue: 0, alpha: 0 }); // 'rgba(0, 0, 0, 0)'\n */\nexport const colorToCss = (color?: RgbaColor) => {\n if (!color) {\n return undefined;\n }\n return `rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha ?? 1})`;\n};\n\n/**\n * Checks if a string is a valid hexadecimal color code. This function accepts\n * both three-digit and six-digit hex codes without the '#' symbol.\n * @param {string} color - The color code to be checked.\n * @returns {boolean}\n * @example\n * isValidHexColor('FFF'); // true\n * @example\n * isValidHexColor('FF5733'); // true\n * @example\n * isValidHexColor('XYZ'); // false\n */\nexport const isValidHexColor = (color: string): boolean => {\n const hexRegex = /^([\\dA-Fa-f]{3}){1,2}$/;\n return color.length > 2 && hexRegex.test(color);\n};\n\n/**\n * Converts a hexadecimal color code to an RGBA color object. This function accepts\n * both three-digit and six-digit hex codes without the '#' symbol.\n * @param {string} hex - The hex code, either 3 or 6 characters long. Characters should be from the set [0-9A-Fa-f].\n * @returns {RgbaColor}\n * @example\n * hexColorToRgba('FFF'); // { red: 255, green: 255, blue: 255, alpha: 1 }\n * @example\n * hexColorToRgba('FF5733'); // { red: 255, green: 87, blue: 51, alpha: 1 }\n * @example\n * hexColorToRgba('XYZ'); // { red: 0, green: 0, blue: 0, alpha: 0 }\n */\nexport const hexColorToRgba = (hex: string): RgbaColor => {\n const hexRegex = /^([\\dA-Fa-f]{3}){1,2}$/;\n const matches = hex.match(hexRegex);\n if (!matches) {\n return {\n red: 0,\n green: 0,\n blue: 0,\n alpha: 0,\n };\n }\n const hexColor = matches[0];\n if (hexColor.length === 3) {\n return {\n red: parseInt(`${hexColor[0]}${hexColor[0]}`, 16),\n green: parseInt(`${hexColor[1]}${hexColor[1]}`, 16),\n blue: parseInt(`${hexColor[2]}${hexColor[2]}`, 16),\n alpha: 1,\n };\n }\n return {\n red: parseInt(hexColor.slice(0, 2), 16),\n green: parseInt(hexColor.slice(2, 4), 16),\n blue: parseInt(hexColor.slice(4, 6), 16),\n alpha: 1,\n };\n};\n\n/**\n * Converts an RGBA color object to a hexadecimal color code. This function returns a\n * six-digit hex code without the '#' symbol.\n * @param {RgbaColor} rgb - The RGBA color object.\n * @returns {string}\n * @example\n * rgbColorToHex({ red: 255, green: 255, blue: 255, alpha: 1 }); // '#FFFFFF'\n * @example\n * rgbColorToHex({ red: 255, green: 87, blue: 51, alpha: 1 }); // '#FF5733'\n * @example\n * rgbColorToHex({ red: 0, green: 0, blue: 0, alpha: 0 }); // '#000000'\n */\nexport const rgbColorToHex = (rgb: Omit<RgbaColor, 'alpha'>): string => {\n const { red, green, blue } = rgb;\n return `${red.toString(16).padStart(2, '0')}${green.toString(16).padStart(2, '0')}${blue.toString(16).padStart(2, '0')}`;\n};\n\n/**\n * Returns a color object with a name property based on the provided color and format.\n * @param {RgbaColor} color - The RGBA color object.\n * @param {ColorFormat} currentFormat - The current format of the color.\n * @returns {RgbaColor}\n * @example\n * getColorWithName({ red: 255, green: 255, blue: 255, alpha: 1 }, 'HEX'); // { red: 255, green: 255, blue: 255, alpha: 1, name: '#FFFFFF' }\n * @example\n * getColorWithName({ red: 255, green: 255, blue: 255, alpha: 1 }, 'RGBA'); // { red: 255, green: 255, blue: 255, alpha: 1, name: 'rgba(255, 255, 255, 1)' }\n * @example\n * getColorWithName({ red: 255, green: 87, blue: 51, alpha: 1 }, 'RGBA'); // { red: 255, green: 87, blue: 51, alpha: 1, name: 'rgba(255, 87, 51, 1)' }\n */\nexport const getColorWithName = (color: RgbaColor, currentFormat: ColorFormat) => {\n if (currentFormat === 'HEX') {\n return {\n ...color,\n name: `#${rgbColorToHex(color)}`,\n };\n }\n return {\n ...color,\n name: `rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha ?? 1})`,\n };\n};\n\n/**\n * Returns a number between a minimum and maximum value, inclusive.\n * @param {string} value - The value to be limited.\n * @param {number} [min=0] - The minimum value (inclusive).\n * @param {number} [max=255] - The maximum value (inclusive).\n * @returns {number}\n * @example\n * getLimitedColorChannelValue('255'); // 255\n * @example\n * getLimitedColorChannelValue('100'); // 100\n * @example\n * getLimitedColorChannelValue('0'); // 0\n * @example\n * getLimitedColorChannelValue('500'); // 255\n * @example\n * getLimitedColorChannelValue('500', 0, 100); // 100\n */\nexport const getLimitedColorChannelValue = (value: string, min: number = 0, max: number = 255): number => {\n if (value.length === 0 || parseInt(value) < min) {\n return min;\n } else if (parseInt(value) > max) {\n return max;\n }\n return parseInt(value);\n};\n"],"names":["DEFAULT_COLOR","DEFAULT_FORMAT","colorToCss","color","isValidHexColor","hexRegex","hexColorToRgba","hex","matches","hexColor","rgbColorToHex","rgb","red","green","blue","getColorWithName","currentFormat","getLimitedColorChannelValue","value","min","max"],"mappings":"AAIa,MAAAA,IAAgB,EAAE,KAAK,KAAK,OAAO,KAAK,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,GACtEC,IAAiB,OAajBC,IAAa,CAACC,MAAsB;AAC7C,MAAKA;AAGL,WAAO,QAAQA,EAAM,GAAG,KAAKA,EAAM,KAAK,KAAKA,EAAM,IAAI,KAAKA,EAAM,SAAS,CAAC;AAChF,GAcaC,IAAkB,CAACD,MAA2B;AACvD,QAAME,IAAW;AACjB,SAAOF,EAAM,SAAS,KAAKE,EAAS,KAAKF,CAAK;AAClD,GAcaG,IAAiB,CAACC,MAA2B;AACtD,QAAMF,IAAW,0BACXG,IAAUD,EAAI,MAAMF,CAAQ;AAClC,MAAI,CAACG;AACM,WAAA;AAAA,MACH,KAAK;AAAA,MACL,OAAO;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAEE,QAAAC,IAAWD,EAAQ,CAAC;AACtB,SAAAC,EAAS,WAAW,IACb;AAAA,IACH,KAAK,SAAS,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAAI,EAAE;AAAA,IAChD,OAAO,SAAS,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAAI,EAAE;AAAA,IAClD,MAAM,SAAS,GAAGA,EAAS,CAAC,CAAC,GAAGA,EAAS,CAAC,CAAC,IAAI,EAAE;AAAA,IACjD,OAAO;AAAA,EACX,IAEG;AAAA,IACH,KAAK,SAASA,EAAS,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,IACtC,OAAO,SAASA,EAAS,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,IACxC,MAAM,SAASA,EAAS,MAAM,GAAG,CAAC,GAAG,EAAE;AAAA,IACvC,OAAO;AAAA,EACX;AACJ,GAcaC,IAAgB,CAACC,MAA0C;AACpE,QAAM,EAAE,KAAAC,GAAK,OAAAC,GAAO,MAAAC,EAAS,IAAAH;AACtB,SAAA,GAAGC,EAAI,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,GAAGC,EAAM,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,GAAGC,EAAK,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC;AAC1H,GAcaC,IAAmB,CAACZ,GAAkBa,MAC3CA,MAAkB,QACX;AAAA,EACH,GAAGb;AAAA,EACH,MAAM,IAAIO,EAAcP,CAAK,CAAC;AAClC,IAEG;AAAA,EACH,GAAGA;AAAA,EACH,MAAM,QAAQA,EAAM,GAAG,KAAKA,EAAM,KAAK,KAAKA,EAAM,IAAI,KAAKA,EAAM,SAAS,CAAC;AAC/E,GAoBSc,IAA8B,CAACC,GAAeC,IAAc,GAAGC,IAAc,QAClFF,EAAM,WAAW,KAAK,SAASA,CAAK,IAAIC,IACjCA,IACA,SAASD,CAAK,IAAIE,IAClBA,IAEJ,SAASF,CAAK;"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
const t = "_root_t4a4t_8", o =
|
|
2
|
-
root: t
|
|
3
|
-
spin: o
|
|
1
|
+
const t = "_root_t4a4t_8", o = {
|
|
2
|
+
root: t
|
|
4
3
|
};
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
t as root
|
|
8
|
-
o as spin
|
|
5
|
+
o as default,
|
|
6
|
+
t as root
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=fondue-components54.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components54.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components54.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useMemo as f, useCallback as
|
|
1
|
+
import { useMemo as f, useCallback as d, useState as v, useRef as S, useEffect as m } from "react";
|
|
2
2
|
const U = ({
|
|
3
3
|
prop: e,
|
|
4
4
|
defaultProp: n,
|
|
5
5
|
onChange: s = () => {
|
|
6
6
|
}
|
|
7
7
|
}) => {
|
|
8
|
-
const [o, c] = b({ defaultProp: n, onChange: s }), t = e !== void 0,
|
|
8
|
+
const [o, c] = b({ defaultProp: n, onChange: s }), t = e !== void 0, i = t ? e : o, r = f(() => s, [s]), a = d(
|
|
9
9
|
(l) => {
|
|
10
10
|
if (t) {
|
|
11
11
|
const u = typeof l == "function" ? l(e) : l;
|
|
@@ -15,7 +15,7 @@ const U = ({
|
|
|
15
15
|
},
|
|
16
16
|
[t, e, c, r]
|
|
17
17
|
);
|
|
18
|
-
return [
|
|
18
|
+
return [i, a];
|
|
19
19
|
}, b = ({ defaultProp: e, onChange: n }) => {
|
|
20
20
|
const s = v(e), [o] = s, c = S(o), t = f(() => n, [n]);
|
|
21
21
|
return m(() => {
|
|
@@ -16,13 +16,13 @@ const N = ({
|
|
|
16
16
|
status: s = "neutral",
|
|
17
17
|
disabled: g,
|
|
18
18
|
"data-test-id": i = "fondue-select-combobox",
|
|
19
|
-
alignMenu:
|
|
20
|
-
side:
|
|
21
|
-
id:
|
|
22
|
-
viewportCollisionPadding:
|
|
19
|
+
alignMenu: v = "start",
|
|
20
|
+
side: M = "bottom",
|
|
21
|
+
id: y,
|
|
22
|
+
viewportCollisionPadding: F = "compact",
|
|
23
23
|
...a
|
|
24
|
-
},
|
|
25
|
-
const { inputSlots:
|
|
24
|
+
}, L) => {
|
|
25
|
+
const { inputSlots: P, menuSlots: k, items: c, filterText: D, clearButton: f, getItemByValue: p, setFilterText: H } = _(S), [T, h] = W(!1), {
|
|
26
26
|
getInputProps: u,
|
|
27
27
|
getToggleButtonProps: V,
|
|
28
28
|
getMenuProps: z,
|
|
@@ -37,7 +37,7 @@ const N = ({
|
|
|
37
37
|
selectedItem: p(B),
|
|
38
38
|
defaultSelectedItem: p(O),
|
|
39
39
|
defaultHighlightedIndex: 0,
|
|
40
|
-
toggleButtonId:
|
|
40
|
+
toggleButtonId: y,
|
|
41
41
|
labelId: "aria-labelledby" in a ? a["aria-labelledby"] : void 0,
|
|
42
42
|
onSelectedItemChange: ({ selectedItem: e }) => {
|
|
43
43
|
l == null || l((e == null ? void 0 : e.value) ?? null);
|
|
@@ -60,7 +60,7 @@ const N = ({
|
|
|
60
60
|
e.target.dataset.showFocusRing = "false", n.current = !1, (r == null ? void 0 : r.label.toLocaleLowerCase()) !== d.toLocaleLowerCase() && b(), u().onBlur && ((I = (x = u()).onBlur) == null || I.call(x, e));
|
|
61
61
|
};
|
|
62
62
|
return /* @__PURE__ */ m(w.Root, { open: $, children: [
|
|
63
|
-
/* @__PURE__ */ t(w.Anchor, { asChild: !0, children: /* @__PURE__ */ m("div", { ref:
|
|
63
|
+
/* @__PURE__ */ t(w.Anchor, { asChild: !0, children: /* @__PURE__ */ m("div", { ref: L, className: o.root, "data-status": C ? "error" : s, children: [
|
|
64
64
|
/* @__PURE__ */ t(
|
|
65
65
|
"input",
|
|
66
66
|
{
|
|
@@ -80,7 +80,7 @@ const N = ({
|
|
|
80
80
|
onBlur: E
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
|
|
83
|
+
P,
|
|
84
84
|
f && /* @__PURE__ */ t(
|
|
85
85
|
K,
|
|
86
86
|
{
|
|
@@ -127,16 +127,16 @@ const N = ({
|
|
|
127
127
|
/* @__PURE__ */ t(
|
|
128
128
|
Z,
|
|
129
129
|
{
|
|
130
|
-
align:
|
|
131
|
-
side:
|
|
130
|
+
align: v,
|
|
131
|
+
side: M,
|
|
132
132
|
highlightedIndex: A,
|
|
133
133
|
filterText: D,
|
|
134
134
|
getMenuProps: z,
|
|
135
135
|
getItemProps: j,
|
|
136
136
|
selectedItem: r,
|
|
137
137
|
hasInteractedSinceOpening: T,
|
|
138
|
-
viewportCollisionPadding:
|
|
139
|
-
children:
|
|
138
|
+
viewportCollisionPadding: F,
|
|
139
|
+
children: k
|
|
140
140
|
}
|
|
141
141
|
)
|
|
142
142
|
] });
|
|
@@ -3,7 +3,7 @@ import { IconMinus as m, IconCheckMark as h } from "@frontify/fondue-icons";
|
|
|
3
3
|
import * as o from "@radix-ui/react-checkbox";
|
|
4
4
|
import { forwardRef as k } from "react";
|
|
5
5
|
import { cn as p } from "./fondue-components33.js";
|
|
6
|
-
import {
|
|
6
|
+
import { checkboxIndicatorStyles as l, checkboxStyles as w } from "./fondue-components37.js";
|
|
7
7
|
const f = ({
|
|
8
8
|
className: a,
|
|
9
9
|
value: c,
|
|
@@ -17,11 +17,11 @@ const f = ({
|
|
|
17
17
|
ref: n,
|
|
18
18
|
checked: c,
|
|
19
19
|
defaultChecked: d,
|
|
20
|
-
className: p(
|
|
20
|
+
className: p(w(e), a),
|
|
21
21
|
onClick: i,
|
|
22
22
|
"data-test-id": r,
|
|
23
23
|
...e,
|
|
24
|
-
children: /* @__PURE__ */ s(o.Indicator, { className:
|
|
24
|
+
children: /* @__PURE__ */ s(o.Indicator, { className: l, children: [
|
|
25
25
|
/* @__PURE__ */ t(
|
|
26
26
|
m,
|
|
27
27
|
{
|
|
@@ -8,16 +8,16 @@ import { recursiveMap as D, getSelectOptionValue as M } from "./fondue-component
|
|
|
8
8
|
const T = ({
|
|
9
9
|
highlightedIndex: p,
|
|
10
10
|
getMenuProps: l,
|
|
11
|
-
getItemProps:
|
|
12
|
-
children:
|
|
11
|
+
getItemProps: m,
|
|
12
|
+
children: u,
|
|
13
13
|
filterText: c,
|
|
14
14
|
align: f,
|
|
15
15
|
side: d,
|
|
16
16
|
selectedItem: t,
|
|
17
17
|
hasInteractedSinceOpening: h,
|
|
18
|
-
viewportCollisionPadding:
|
|
18
|
+
viewportCollisionPadding: v = "compact"
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
20
|
+
const P = (e) => {
|
|
21
21
|
e.preventDefault();
|
|
22
22
|
}, O = {
|
|
23
23
|
compact: 8,
|
|
@@ -28,8 +28,8 @@ const T = ({
|
|
|
28
28
|
{
|
|
29
29
|
align: f,
|
|
30
30
|
side: d,
|
|
31
|
-
collisionPadding: O[
|
|
32
|
-
onOpenAutoFocus:
|
|
31
|
+
collisionPadding: O[v] + 8,
|
|
32
|
+
onOpenAutoFocus: P,
|
|
33
33
|
className: n.portal,
|
|
34
34
|
children: /* @__PURE__ */ r(
|
|
35
35
|
"ul",
|
|
@@ -39,13 +39,13 @@ const T = ({
|
|
|
39
39
|
"data-has-interacted": h ? "true" : "false",
|
|
40
40
|
"data-test-id": "fondue-select-menu",
|
|
41
41
|
children: D(
|
|
42
|
-
|
|
42
|
+
u,
|
|
43
43
|
(e, s) => {
|
|
44
44
|
if (((o) => (
|
|
45
45
|
// @ts-expect-error - We are explicitly checking for ref
|
|
46
46
|
V(o) && o.ref !== void 0
|
|
47
47
|
))(e)) {
|
|
48
|
-
const o = M(e.props), a =
|
|
48
|
+
const o = M(e.props), a = m({
|
|
49
49
|
item: o,
|
|
50
50
|
index: s,
|
|
51
51
|
...e.ref ? { ref: e.ref } : {}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { IconCross as x } from "@frontify/fondue-icons";
|
|
3
|
-
import { useState as B, useMemo as i, Children as f, isValidElement as
|
|
4
|
-
import { ForwardedRefSelectItem as
|
|
3
|
+
import { useState as B, useMemo as i, Children as f, isValidElement as a, cloneElement as E, useCallback as v } from "react";
|
|
4
|
+
import { ForwardedRefSelectItem as F } from "./fondue-components60.js";
|
|
5
5
|
import { ForwardedRefSelectSlot as c } from "./fondue-components62.js";
|
|
6
|
-
import { getSelectOptionValue as
|
|
6
|
+
import { getSelectOptionValue as I } from "./fondue-components78.js";
|
|
7
7
|
const S = (r) => {
|
|
8
8
|
const t = [];
|
|
9
9
|
return f.forEach(r, (o) => {
|
|
10
|
-
if (
|
|
11
|
-
t.push(
|
|
12
|
-
else if (
|
|
13
|
-
const
|
|
14
|
-
for (const l of
|
|
10
|
+
if (a(o) && o.type === F)
|
|
11
|
+
t.push(I(o.props));
|
|
12
|
+
else if (a(o) && o.props.children) {
|
|
13
|
+
const u = S(o.props.children);
|
|
14
|
+
for (const l of u)
|
|
15
15
|
t.push(l);
|
|
16
16
|
}
|
|
17
17
|
}), t;
|
|
18
18
|
}, z = (r) => {
|
|
19
|
-
const [t, o] = B(""), { inputSlots:
|
|
19
|
+
const [t, o] = B(""), { inputSlots: u, menuSlots: l, itemValues: p, clearButton: V } = i(() => {
|
|
20
20
|
const s = [], n = [];
|
|
21
21
|
let m;
|
|
22
22
|
f.toArray(r).some(
|
|
23
|
-
(e) =>
|
|
23
|
+
(e) => a(e) && e.type === c
|
|
24
24
|
) ? f.forEach(r, (e) => {
|
|
25
|
-
|
|
25
|
+
a(e) && e.type === c && (e.props.name === "menu" ? n.push(e.props.children) : e.props.name === "left" || e.props.name === "right" ? s.push(e) : e.props.name === "clear" && (e.props.children ? m = e : m = E(e, { children: /* @__PURE__ */ w(x, { size: 16 }) })));
|
|
26
26
|
}) : n.push(r);
|
|
27
27
|
const g = S(n);
|
|
28
28
|
return { inputSlots: s, menuSlots: n, itemValues: g, clearButton: m };
|
|
@@ -31,7 +31,7 @@ const S = (r) => {
|
|
|
31
31
|
(s) => t === "" || s.label.toLowerCase().includes(t.toLowerCase())
|
|
32
32
|
),
|
|
33
33
|
[p, t]
|
|
34
|
-
), C =
|
|
34
|
+
), C = v(
|
|
35
35
|
(s) => s ? p.find((n) => n.value === s) : void 0,
|
|
36
36
|
[p]
|
|
37
37
|
);
|
|
@@ -39,7 +39,7 @@ const S = (r) => {
|
|
|
39
39
|
items: y,
|
|
40
40
|
menuSlots: l,
|
|
41
41
|
filterText: t,
|
|
42
|
-
inputSlots:
|
|
42
|
+
inputSlots: u,
|
|
43
43
|
clearButton: V,
|
|
44
44
|
setFilterText: o,
|
|
45
45
|
getItemByValue: C
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
small:
|
|
4
|
-
medium:
|
|
1
|
+
const t = "_root_1a79q_5", _ = "_small_1a79q_13", a = "_medium_1a79q_17", o = "_large_1a79q_21", m = "_thumb_1a79q_58", s = {
|
|
2
|
+
root: t,
|
|
3
|
+
small: _,
|
|
4
|
+
medium: a,
|
|
5
5
|
large: o,
|
|
6
|
-
thumb:
|
|
6
|
+
thumb: m
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
s as default,
|
|
10
10
|
o as large,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
a as medium,
|
|
12
|
+
t as root,
|
|
13
|
+
_ as small,
|
|
14
|
+
m as thumb
|
|
15
15
|
};
|
|
16
16
|
//# sourceMappingURL=fondue-components66.js.map
|