@frontify/fondue-components 28.0.0 → 29.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fondue-components.js +60 -56
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +1 -1
- package/dist/fondue-components100.js +22 -16
- package/dist/fondue-components100.js.map +1 -1
- package/dist/fondue-components101.js +34 -151
- package/dist/fondue-components101.js.map +1 -1
- package/dist/fondue-components102.js +10 -44
- package/dist/fondue-components102.js.map +1 -1
- package/dist/fondue-components103.js +67 -13
- package/dist/fondue-components103.js.map +1 -1
- package/dist/fondue-components104.js +13 -13
- package/dist/fondue-components105.js +26 -111
- package/dist/fondue-components105.js.map +1 -1
- package/dist/fondue-components106.js +18 -12
- package/dist/fondue-components106.js.map +1 -1
- package/dist/fondue-components107.js +25 -17
- package/dist/fondue-components107.js.map +1 -1
- package/dist/fondue-components108.js +8 -12
- package/dist/fondue-components108.js.map +1 -1
- package/dist/fondue-components109.js +30 -16
- package/dist/fondue-components109.js.map +1 -1
- package/dist/fondue-components11.js +3 -3
- package/dist/fondue-components110.js +7 -6
- package/dist/fondue-components110.js.map +1 -1
- package/dist/fondue-components111.js +16 -11
- package/dist/fondue-components111.js.map +1 -1
- package/dist/fondue-components112.js +125 -69
- package/dist/fondue-components112.js.map +1 -1
- package/dist/fondue-components113.js +11 -15
- package/dist/fondue-components113.js.map +1 -1
- package/dist/fondue-components114.js +36 -7
- package/dist/fondue-components114.js.map +1 -1
- package/dist/fondue-components115.js +14 -89
- package/dist/fondue-components115.js.map +1 -1
- package/dist/fondue-components116.js +14 -80
- package/dist/fondue-components116.js.map +1 -1
- package/dist/fondue-components117.js +109 -29
- package/dist/fondue-components117.js.map +1 -1
- package/dist/fondue-components118.js +12 -28
- package/dist/fondue-components118.js.map +1 -1
- package/dist/fondue-components119.js +20 -0
- package/dist/fondue-components119.js.map +1 -0
- package/dist/fondue-components12.js +3 -3
- package/dist/fondue-components120.js +12 -40
- package/dist/fondue-components120.js.map +1 -1
- package/dist/fondue-components121.js +216 -18
- package/dist/fondue-components121.js.map +1 -1
- package/dist/fondue-components122.js +17 -19
- package/dist/fondue-components122.js.map +1 -1
- package/dist/fondue-components123.js +15 -38
- package/dist/fondue-components123.js.map +1 -1
- package/dist/fondue-components124.js +150 -67
- package/dist/fondue-components124.js.map +1 -1
- package/dist/fondue-components125.js +44 -30
- package/dist/fondue-components125.js.map +1 -1
- package/dist/fondue-components126.js +5 -9
- package/dist/fondue-components126.js.map +1 -1
- package/dist/fondue-components127.js +4 -152
- package/dist/fondue-components127.js.map +1 -1
- package/dist/fondue-components128.js +28 -107
- package/dist/fondue-components128.js.map +1 -1
- package/dist/fondue-components13.js +61 -35
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components130.js +41 -16
- package/dist/fondue-components130.js.map +1 -1
- package/dist/fondue-components131.js +6 -29
- package/dist/fondue-components131.js.map +1 -1
- package/dist/fondue-components132.js +12 -13
- package/dist/fondue-components132.js.map +1 -1
- package/dist/fondue-components133.js +70 -6
- package/dist/fondue-components133.js.map +1 -1
- package/dist/fondue-components134.js +18 -0
- package/dist/fondue-components134.js.map +1 -0
- package/dist/fondue-components135.js +10 -0
- package/dist/fondue-components135.js.map +1 -0
- package/dist/fondue-components136.js +92 -0
- package/dist/fondue-components136.js.map +1 -0
- package/dist/fondue-components137.js +84 -0
- package/dist/fondue-components137.js.map +1 -0
- package/dist/fondue-components138.js +34 -0
- package/dist/fondue-components138.js.map +1 -0
- package/dist/fondue-components139.js +173 -0
- package/dist/fondue-components139.js.map +1 -0
- package/dist/fondue-components14.js +36 -121
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components140.js +63 -0
- package/dist/fondue-components140.js.map +1 -0
- package/dist/fondue-components141.js +12 -0
- package/dist/fondue-components141.js.map +1 -0
- package/dist/fondue-components142.js +259 -0
- package/dist/fondue-components142.js.map +1 -0
- package/dist/fondue-components143.js +22 -0
- package/dist/fondue-components143.js.map +1 -0
- package/dist/fondue-components144.js +73 -0
- package/dist/fondue-components144.js.map +1 -0
- package/dist/fondue-components145.js +1355 -0
- package/dist/fondue-components145.js.map +1 -0
- package/dist/fondue-components146.js +944 -0
- package/dist/fondue-components146.js.map +1 -0
- package/dist/fondue-components147.js +201 -0
- package/dist/fondue-components147.js.map +1 -0
- package/dist/fondue-components148.js +24 -0
- package/dist/fondue-components148.js.map +1 -0
- package/dist/fondue-components149.js +43 -0
- package/dist/fondue-components149.js.map +1 -0
- package/dist/fondue-components15.js +121 -36
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components150.js +71 -0
- package/dist/fondue-components150.js.map +1 -0
- package/dist/fondue-components151.js +34 -0
- package/dist/fondue-components151.js.map +1 -0
- package/dist/fondue-components152.js +12 -0
- package/dist/fondue-components152.js.map +1 -0
- package/dist/fondue-components153.js +156 -0
- package/dist/fondue-components153.js.map +1 -0
- package/dist/fondue-components154.js +111 -0
- package/dist/fondue-components154.js.map +1 -0
- package/dist/{fondue-components129.js → fondue-components155.js} +1 -1
- package/dist/{fondue-components129.js.map → fondue-components155.js.map} +1 -1
- package/dist/fondue-components156.js +19 -0
- package/dist/fondue-components156.js.map +1 -0
- package/dist/fondue-components157.js +32 -0
- package/dist/fondue-components157.js.map +1 -0
- package/dist/fondue-components158.js +16 -0
- package/dist/fondue-components158.js.map +1 -0
- package/dist/fondue-components159.js +10 -0
- package/dist/fondue-components159.js.map +1 -0
- package/dist/fondue-components16.js +30 -39
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +44 -41
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +42 -57
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +55 -41
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +39 -16
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +17 -43
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +42 -69
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +69 -17
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +71 -74
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +18 -36
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +72 -50
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +36 -23
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +50 -50
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +23 -100
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +50 -28
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +92 -188
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +31 -144
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +192 -129
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +141 -27
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +123 -71
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +28 -120
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +80 -35
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +119 -52
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +36 -20
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +3 -3
- package/dist/fondue-components40.js +56 -25
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +20 -7
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +25 -8
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +8 -41
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +8 -4
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +41 -5
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +3 -11
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +5 -32
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +12 -53
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +32 -131
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +53 -20
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +131 -53
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +20 -7
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +53 -13
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +7 -16
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +13 -5
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +17 -18
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +4 -18
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +18 -44
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +18 -24
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +1 -1
- package/dist/fondue-components60.js +43 -22
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +24 -4
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +22 -12
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +6 -4
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +4 -17
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +12 -10
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +4 -36
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +17 -6
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +10 -4
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +34 -10
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +1 -1
- package/dist/fondue-components70.js +6 -8
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +4 -12
- package/dist/fondue-components71.js.map +1 -1
- package/dist/fondue-components72.js +11 -3
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +50 -23
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +44 -17
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +6 -20
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +6 -20
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +12 -19
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +24 -16
- package/dist/fondue-components78.js.map +1 -1
- package/dist/fondue-components79.js +13 -19
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +5 -5
- package/dist/fondue-components80.js +5 -8
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +12 -10
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +47 -10
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +20 -4
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +628 -12
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +8 -22
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +13 -34
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +4 -10
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +23 -66
- package/dist/fondue-components88.js.map +1 -1
- package/dist/fondue-components89.js +14 -12
- package/dist/fondue-components89.js.map +1 -1
- package/dist/fondue-components9.js +5 -5
- package/dist/fondue-components90.js +20 -25
- package/dist/fondue-components90.js.map +1 -1
- package/dist/fondue-components91.js +20 -19
- package/dist/fondue-components91.js.map +1 -1
- package/dist/fondue-components92.js +20 -25
- package/dist/fondue-components92.js.map +1 -1
- package/dist/fondue-components93.js +20 -9
- package/dist/fondue-components93.js.map +1 -1
- package/dist/fondue-components94.js +19 -31
- package/dist/fondue-components94.js.map +1 -1
- package/dist/fondue-components95.js +8 -7
- package/dist/fondue-components95.js.map +1 -1
- package/dist/fondue-components96.js +10 -4
- package/dist/fondue-components96.js.map +1 -1
- package/dist/fondue-components97.js +10 -4
- package/dist/fondue-components97.js.map +1 -1
- package/dist/fondue-components98.js +6 -216
- package/dist/fondue-components98.js.map +1 -1
- package/dist/fondue-components99.js +12 -18
- package/dist/fondue-components99.js.map +1 -1
- package/dist/index.d.ts +102 -4
- package/dist/style.css +1 -1
- package/package.json +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components70.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components70.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
viewport: o,
|
|
4
|
-
scrollbar: t,
|
|
5
|
-
thumb: _,
|
|
6
|
-
corner: c
|
|
1
|
+
const o = "_root_jkymp_8", t = {
|
|
2
|
+
root: o
|
|
7
3
|
};
|
|
8
4
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
r as root,
|
|
12
|
-
t as scrollbar,
|
|
13
|
-
_ as thumb,
|
|
14
|
-
o as viewport
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
15
7
|
};
|
|
16
8
|
//# sourceMappingURL=fondue-components71.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components71.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components71.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
root: o
|
|
1
|
+
const o = "_root_1bfzg_3", t = "_icon_1bfzg_90", n = "_content_1bfzg_118", s = "_action_1bfzg_125", c = "_dismiss_1bfzg_290", _ = {
|
|
2
|
+
root: o,
|
|
3
|
+
icon: t,
|
|
4
|
+
content: n,
|
|
5
|
+
action: s,
|
|
6
|
+
dismiss: c
|
|
3
7
|
};
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
s as action,
|
|
10
|
+
n as content,
|
|
11
|
+
_ as default,
|
|
12
|
+
c as dismiss,
|
|
13
|
+
t as icon,
|
|
6
14
|
o as root
|
|
7
15
|
};
|
|
8
16
|
//# sourceMappingURL=fondue-components72.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components72.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components72.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Modifier as f, configurator as _ } from "@dnd-kit/abstract";
|
|
2
|
+
var y = Object.defineProperty, d = Object.defineProperties, x = Object.getOwnPropertyDescriptors, n = Object.getOwnPropertySymbols, O = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable, p = (o, r, e) => r in o ? y(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e, l = (o, r) => {
|
|
3
|
+
for (var e in r || (r = {}))
|
|
4
|
+
O.call(r, e) && p(o, e, r[e]);
|
|
5
|
+
if (n)
|
|
6
|
+
for (var e of n(r))
|
|
7
|
+
P.call(r, e) && p(o, e, r[e]);
|
|
8
|
+
return o;
|
|
9
|
+
}, u = (o, r) => d(o, x(r)), t = class extends f {
|
|
10
|
+
/**
|
|
11
|
+
* Applies the axis restriction to the drag operation.
|
|
12
|
+
*
|
|
13
|
+
* @param operation - The current drag operation
|
|
14
|
+
* @returns The modified transform with the axis restriction applied
|
|
15
|
+
*/
|
|
16
|
+
apply({ transform: r }) {
|
|
17
|
+
if (!this.options)
|
|
18
|
+
return r;
|
|
19
|
+
const { axis: e, value: i } = this.options;
|
|
20
|
+
return u(l({}, r), {
|
|
21
|
+
[e]: i
|
|
22
|
+
});
|
|
6
23
|
}
|
|
7
|
-
}) => {
|
|
8
|
-
const [l, c] = b({ defaultProp: s, onChange: t }), r = e !== void 0, n = r ? e : l, u = d(() => t, [t]), i = v(
|
|
9
|
-
(o) => {
|
|
10
|
-
if (r) {
|
|
11
|
-
const f = typeof o == "function" ? o(e) : o;
|
|
12
|
-
f !== e && u(f);
|
|
13
|
-
} else
|
|
14
|
-
c(o);
|
|
15
|
-
},
|
|
16
|
-
[r, e, c, u]
|
|
17
|
-
);
|
|
18
|
-
return [n, i];
|
|
19
|
-
}, b = ({ defaultProp: e, onChange: s }) => {
|
|
20
|
-
const [t, l] = a(e), c = m(t);
|
|
21
|
-
return S(() => {
|
|
22
|
-
c.current !== t && (s == null || s(t), c.current = t);
|
|
23
|
-
}, [s, t]), [t, l];
|
|
24
24
|
};
|
|
25
|
+
t.configure = _(t);
|
|
26
|
+
var v = t;
|
|
27
|
+
v.configure({
|
|
28
|
+
axis: "x",
|
|
29
|
+
value: 0
|
|
30
|
+
});
|
|
31
|
+
v.configure({
|
|
32
|
+
axis: "y",
|
|
33
|
+
value: 0
|
|
34
|
+
});
|
|
35
|
+
var c = class extends f {
|
|
36
|
+
/**
|
|
37
|
+
* Applies the snap grid to the drag operation.
|
|
38
|
+
*
|
|
39
|
+
* @param operation - The current drag operation
|
|
40
|
+
* @returns The modified transform with coordinates snapped to the grid
|
|
41
|
+
*/
|
|
42
|
+
apply({ transform: r }) {
|
|
43
|
+
var e;
|
|
44
|
+
const { size: i = 20 } = (e = this.options) != null ? e : {}, a = typeof i == "number" ? i : i.x, s = typeof i == "number" ? i : i.y;
|
|
45
|
+
return u(l({}, r), {
|
|
46
|
+
x: Math.ceil(r.x / a) * a,
|
|
47
|
+
y: Math.ceil(r.y / s) * s
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
c.configure = _(c);
|
|
25
52
|
export {
|
|
26
|
-
|
|
53
|
+
v as AxisModifier
|
|
27
54
|
};
|
|
28
55
|
//# sourceMappingURL=fondue-components73.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components73.js","sources":["
|
|
1
|
+
{"version":3,"file":"fondue-components73.js","sources":["../../../node_modules/.pnpm/@dnd-kit+abstract@0.3.2/node_modules/@dnd-kit/abstract/modifiers.js"],"sourcesContent":["import { configurator, Modifier } from '@dnd-kit/abstract';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar _AxisModifier = class _AxisModifier extends Modifier {\n /**\n * Applies the axis restriction to the drag operation.\n *\n * @param operation - The current drag operation\n * @returns The modified transform with the axis restriction applied\n */\n apply({ transform }) {\n if (!this.options) {\n return transform;\n }\n const { axis, value } = this.options;\n return __spreadProps(__spreadValues({}, transform), {\n [axis]: value\n });\n }\n};\n/**\n * Creates a configured instance of the AxisModifier.\n *\n * @param options - The axis restriction options\n * @returns A configured AxisModifier instance\n */\n_AxisModifier.configure = configurator(_AxisModifier);\nvar AxisModifier = _AxisModifier;\nvar RestrictToVerticalAxis = AxisModifier.configure({\n axis: \"x\",\n value: 0\n});\nvar RestrictToHorizontalAxis = AxisModifier.configure({\n axis: \"y\",\n value: 0\n});\n\n// src/modifiers/boundingRectangle.ts\nfunction restrictShapeToBoundingRectangle(shape, transform, boundingRect) {\n const value = __spreadValues({}, transform);\n if (shape.boundingRectangle.top + transform.y <= boundingRect.top) {\n value.y = boundingRect.top - shape.boundingRectangle.top;\n } else if (shape.boundingRectangle.bottom + transform.y >= boundingRect.top + boundingRect.height) {\n value.y = boundingRect.top + boundingRect.height - shape.boundingRectangle.bottom;\n }\n if (shape.boundingRectangle.left + transform.x <= boundingRect.left) {\n value.x = boundingRect.left - shape.boundingRectangle.left;\n } else if (shape.boundingRectangle.right + transform.x >= boundingRect.left + boundingRect.width) {\n value.x = boundingRect.left + boundingRect.width - shape.boundingRectangle.right;\n }\n return value;\n}\nvar _SnapModifier = class _SnapModifier extends Modifier {\n /**\n * Applies the snap grid to the drag operation.\n *\n * @param operation - The current drag operation\n * @returns The modified transform with coordinates snapped to the grid\n */\n apply({ transform }) {\n var _a;\n const { size = 20 } = (_a = this.options) != null ? _a : {};\n const x = typeof size === \"number\" ? size : size.x;\n const y = typeof size === \"number\" ? size : size.y;\n return __spreadProps(__spreadValues({}, transform), {\n x: Math.ceil(transform.x / x) * x,\n y: Math.ceil(transform.y / y) * y\n });\n }\n};\n/**\n * Creates a configured instance of the SnapModifier.\n *\n * @param options - The snap grid options\n * @returns A configured SnapModifier instance\n */\n_SnapModifier.configure = configurator(_SnapModifier);\nvar SnapModifier = _SnapModifier;\n\nexport { AxisModifier, RestrictToHorizontalAxis, RestrictToVerticalAxis, SnapModifier, restrictShapeToBoundingRectangle };\n//# sourceMappingURL=modifiers.js.map\n//# sourceMappingURL=modifiers.js.map"],"names":["__defProp","__defProps","__getOwnPropDescs","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","obj","key","value","__spreadValues","a","b","prop","__spreadProps","_AxisModifier","Modifier","transform","axis","configurator","AxisModifier","_SnapModifier","_a","size","x","y"],"mappings":";AAEA,IAAIA,IAAY,OAAO,gBACnBC,IAAa,OAAO,kBACpBC,IAAoB,OAAO,2BAC3BC,IAAsB,OAAO,uBAC7BC,IAAe,OAAO,UAAU,gBAChCC,IAAe,OAAO,UAAU,sBAChCC,IAAkB,CAACC,GAAKC,GAAKC,MAAUD,KAAOD,IAAMP,EAAUO,GAAKC,GAAK,EAAE,YAAY,IAAM,cAAc,IAAM,UAAU,IAAM,OAAAC,EAAK,CAAE,IAAIF,EAAIC,CAAG,IAAIC,GACtJC,IAAiB,CAACC,GAAGC,MAAM;AAC7B,WAASC,KAAQD,MAAMA,IAAI,CAAA;AACzB,IAAIR,EAAa,KAAKQ,GAAGC,CAAI,KAC3BP,EAAgBK,GAAGE,GAAMD,EAAEC,CAAI,CAAC;AACpC,MAAIV;AACF,aAASU,KAAQV,EAAoBS,CAAC;AACpC,MAAIP,EAAa,KAAKO,GAAGC,CAAI,KAC3BP,EAAgBK,GAAGE,GAAMD,EAAEC,CAAI,CAAC;AAEtC,SAAOF;AACT,GACIG,IAAgB,CAACH,GAAGC,MAAMX,EAAWU,GAAGT,EAAkBU,CAAC,CAAC,GAC5DG,IAAgB,cAA4BC,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvD,MAAM,EAAE,WAAAC,KAAa;AACnB,QAAI,CAAC,KAAK;AACR,aAAOA;AAET,UAAM,EAAE,MAAAC,GAAM,OAAAT,EAAK,IAAK,KAAK;AAC7B,WAAOK,EAAcJ,EAAe,CAAA,GAAIO,CAAS,GAAG;AAAA,MAClD,CAACC,CAAI,GAAGT;AAAA,IACd,CAAK;AAAA,EACH;AACF;AAOAM,EAAc,YAAYI,EAAaJ,CAAa;AACjD,IAACK,IAAeL;AACUK,EAAa,UAAU;AAAA,EAClD,MAAM;AAAA,EACN,OAAO;AACT,CAAC;AAC8BA,EAAa,UAAU;AAAA,EACpD,MAAM;AAAA,EACN,OAAO;AACT,CAAC;AAiBD,IAAIC,IAAgB,cAA4BL,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvD,MAAM,EAAE,WAAAC,KAAa;AACnB,QAAIK;AACJ,UAAM,EAAE,MAAAC,IAAO,GAAE,KAAMD,IAAK,KAAK,YAAY,OAAOA,IAAK,CAAA,GACnDE,IAAI,OAAOD,KAAS,WAAWA,IAAOA,EAAK,GAC3CE,IAAI,OAAOF,KAAS,WAAWA,IAAOA,EAAK;AACjD,WAAOT,EAAcJ,EAAe,CAAA,GAAIO,CAAS,GAAG;AAAA,MAClD,GAAG,KAAK,KAAKA,EAAU,IAAIO,CAAC,IAAIA;AAAA,MAChC,GAAG,KAAK,KAAKP,EAAU,IAAIQ,CAAC,IAAIA;AAAA,IACtC,CAAK;AAAA,EACH;AACF;AAOAJ,EAAc,YAAYF,EAAaE,CAAa;","x_google_ignoreList":[0]}
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useSortable as E } from "./fondue-components112.js";
|
|
3
|
+
import { forwardRef as p, useRef as L, useState as v, useCallback as y, useMemo as C, useEffect as H } from "react";
|
|
4
|
+
import { OrderableItemContextProvider as N } from "./fondue-components113.js";
|
|
5
|
+
import h from "./fondue-components83.js";
|
|
6
|
+
const x = p((o, e) => null);
|
|
7
|
+
x.displayName = "OrderableListItem";
|
|
8
|
+
const w = p(
|
|
9
|
+
({ children: o, id: e, index: c, disabled: r, padding: u = "small", selected: n, onSelect: s }, a) => {
|
|
10
|
+
const i = L(null), g = (t) => {
|
|
11
|
+
i.current = t, typeof a == "function" ? a(t) : a !== null && (a.current = t);
|
|
12
|
+
}, { isDragging: b, isDropping: I, handleRef: l } = E({ id: e, index: c, element: i, disabled: r }), [m, O] = v(!1), d = y(
|
|
13
|
+
(t) => {
|
|
14
|
+
O(t !== null), r || l(t);
|
|
15
|
+
},
|
|
16
|
+
[r, l]
|
|
17
|
+
), R = C(
|
|
18
|
+
() => ({ itemId: e, dragHandleRef: d, hasHandle: m, selected: n, onSelect: s }),
|
|
19
|
+
[e, d, m, n, s]
|
|
20
|
+
);
|
|
21
|
+
return H(() => {
|
|
22
|
+
process.env.NODE_ENV !== "production" && (document.getElementById(`orderable-item-${e}-title`) || console.warn(
|
|
23
|
+
`[OrderableList] Item "${e}" is missing an <OrderableList.ItemTitle>. This is required for accessible drag-and-drop announcements`
|
|
24
|
+
));
|
|
25
|
+
}, [e]), /* @__PURE__ */ f(N, { value: R, children: /* @__PURE__ */ f(
|
|
26
|
+
"li",
|
|
27
|
+
{
|
|
28
|
+
className: h.item,
|
|
29
|
+
"aria-roledescription": "sortable item",
|
|
30
|
+
"data-padding": u,
|
|
31
|
+
"data-disabled": r || void 0,
|
|
32
|
+
"data-dragging": b,
|
|
33
|
+
"data-dropping": I,
|
|
34
|
+
"data-selected": n || void 0,
|
|
35
|
+
"data-test-id": "fondue-orderable-list-item",
|
|
36
|
+
ref: g,
|
|
37
|
+
children: o
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
w.displayName = "OrderableListItemComponent";
|
|
10
43
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
e as item,
|
|
14
|
-
a as itemLabel,
|
|
15
|
-
i as itemLabelActive,
|
|
16
|
-
o as itemLabelInactive,
|
|
17
|
-
t as root,
|
|
18
|
-
c as separator
|
|
44
|
+
x as OrderableListItem,
|
|
45
|
+
w as OrderableListItemComponent
|
|
19
46
|
};
|
|
20
47
|
//# sourceMappingURL=fondue-components74.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components74.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components74.js","sources":["../src/components/OrderableList/OrderableListItem.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { useSortable } from '@dnd-kit/react/sortable';\nimport { forwardRef, useCallback, useEffect, useRef, useState, type ReactNode, useMemo } from 'react';\n\nimport { OrderableItemContextProvider } from './hooks/useOrderedListItemContext';\nimport styles from './styles/orderable-list.module.scss';\n\nexport type OrderableListItemPadding = 'none' | 'small';\nexport type OrderableListItemProps = {\n children?: ReactNode;\n id: string;\n disabled?: boolean;\n padding?: OrderableListItemPadding;\n selected?: boolean;\n onSelect?: (isSelected: boolean) => void;\n};\nexport const OrderableListItem = forwardRef<HTMLLIElement, OrderableListItemProps>((_props, _ref) => null);\nOrderableListItem.displayName = 'OrderableListItem';\n\nexport const OrderableListItemComponent = forwardRef<HTMLLIElement, OrderableListItemProps & { index: number }>(\n ({ children, id, index, disabled, padding = 'small', selected, onSelect }, ref) => {\n const internalRef = useRef<HTMLLIElement | null>(null);\n\n const mergedRef = (node: HTMLLIElement | null) => {\n internalRef.current = node;\n if (typeof ref === 'function') {\n ref(node);\n } else if (ref !== null) {\n ref.current = node;\n }\n };\n\n const { isDragging, isDropping, handleRef } = useSortable({ id, index, element: internalRef, disabled });\n\n const [hasHandle, setHasHandle] = useState(false);\n const wrappedHandleRef = useCallback(\n (element: Element | null) => {\n setHasHandle(element !== null);\n if (!disabled) {\n handleRef(element);\n }\n },\n [disabled, handleRef],\n );\n\n const itemContextValue = useMemo(\n () => ({ itemId: id, dragHandleRef: wrappedHandleRef, hasHandle, selected, onSelect }),\n [id, wrappedHandleRef, hasHandle, selected, onSelect],\n );\n\n useEffect(() => {\n if (process.env.NODE_ENV !== 'production') {\n const titleElement = document.getElementById(`orderable-item-${id}-title`);\n if (!titleElement) {\n console.warn(\n `[OrderableList] Item \"${id}\" is missing an <OrderableList.ItemTitle>. ` +\n 'This is required for accessible drag-and-drop announcements',\n );\n }\n }\n }, [id]);\n\n return (\n <OrderableItemContextProvider value={itemContextValue}>\n <li\n className={styles.item}\n aria-roledescription=\"sortable item\"\n data-padding={padding}\n data-disabled={disabled || undefined}\n data-dragging={isDragging}\n data-dropping={isDropping}\n data-selected={selected || undefined}\n data-test-id=\"fondue-orderable-list-item\"\n ref={mergedRef}\n >\n {children}\n </li>\n </OrderableItemContextProvider>\n );\n },\n);\nOrderableListItemComponent.displayName = 'OrderableListItemComponent';\n"],"names":["OrderableListItem","forwardRef","_props","_ref","OrderableListItemComponent","children","id","index","disabled","padding","selected","onSelect","ref","internalRef","useRef","mergedRef","node","isDragging","isDropping","handleRef","useSortable","hasHandle","setHasHandle","useState","wrappedHandleRef","useCallback","element","itemContextValue","useMemo","useEffect","jsx","OrderableItemContextProvider","styles"],"mappings":";;;;;AAiBO,MAAMA,IAAoBC,EAAkD,CAACC,GAAQC,MAAS,IAAI;AACzGH,EAAkB,cAAc;AAEzB,MAAMI,IAA6BH;AAAA,EACtC,CAAC,EAAE,UAAAI,GAAU,IAAAC,GAAI,OAAAC,GAAO,UAAAC,GAAU,SAAAC,IAAU,SAAS,UAAAC,GAAU,UAAAC,EAAA,GAAYC,MAAQ;AAC/E,UAAMC,IAAcC,EAA6B,IAAI,GAE/CC,IAAY,CAACC,MAA+B;AAC9C,MAAAH,EAAY,UAAUG,GAClB,OAAOJ,KAAQ,aACfA,EAAII,CAAI,IACDJ,MAAQ,SACfA,EAAI,UAAUI;AAAA,IAEtB,GAEM,EAAE,YAAAC,GAAY,YAAAC,GAAY,WAAAC,EAAA,IAAcC,EAAY,EAAE,IAAAd,GAAI,OAAAC,GAAO,SAASM,GAAa,UAAAL,EAAA,CAAU,GAEjG,CAACa,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1CC,IAAmBC;AAAA,MACrB,CAACC,MAA4B;AACzB,QAAAJ,EAAaI,MAAY,IAAI,GACxBlB,KACDW,EAAUO,CAAO;AAAA,MAEzB;AAAA,MACA,CAAClB,GAAUW,CAAS;AAAA,IAAA,GAGlBQ,IAAmBC;AAAA,MACrB,OAAO,EAAE,QAAQtB,GAAI,eAAekB,GAAkB,WAAAH,GAAW,UAAAX,GAAU,UAAAC;MAC3E,CAACL,GAAIkB,GAAkBH,GAAWX,GAAUC,CAAQ;AAAA,IAAA;AAGxD,WAAAkB,EAAU,MAAM;AACZ,MAAI,QAAQ,IAAI,aAAa,iBACJ,SAAS,eAAe,kBAAkBvB,CAAE,QAAQ,KAErE,QAAQ;AAAA,QACJ,yBAAyBA,CAAE;AAAA,MAAA;AAAA,IAK3C,GAAG,CAACA,CAAE,CAAC,GAGH,gBAAAwB,EAACC,GAAA,EAA6B,OAAOJ,GACjC,UAAA,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAWE,EAAO;AAAA,QAClB,wBAAqB;AAAA,QACrB,gBAAcvB;AAAA,QACd,iBAAeD,KAAY;AAAA,QAC3B,iBAAeS;AAAA,QACf,iBAAeC;AAAA,QACf,iBAAeR,KAAY;AAAA,QAC3B,gBAAa;AAAA,QACb,KAAKK;AAAA,QAEJ,UAAAV;AAAA,MAAA;AAAA,IAAA,GAET;AAAA,EAER;AACJ;AACAD,EAA2B,cAAc;"}
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const { selectedItemValues: r, toggleSelectedItem: p, clear: i } = b(o, e, t);
|
|
7
|
-
return /* @__PURE__ */ s(
|
|
8
|
-
c,
|
|
9
|
-
{
|
|
10
|
-
ref: m,
|
|
11
|
-
multiple: !0,
|
|
12
|
-
selectedItemValues: r,
|
|
13
|
-
onItemSelect: p,
|
|
14
|
-
onClear: i,
|
|
15
|
-
...l
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}, n = u(a);
|
|
19
|
-
n.displayName = "Select.Combobox.Multiple";
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o } from "react";
|
|
3
|
+
import i from "./fondue-components83.js";
|
|
4
|
+
const m = o(({ children: r }, t) => /* @__PURE__ */ e("div", { className: i.action, ref: t, children: r }));
|
|
5
|
+
m.displayName = "OrderableListItemAction";
|
|
20
6
|
export {
|
|
21
|
-
|
|
7
|
+
m as OrderableListItemAction
|
|
22
8
|
};
|
|
23
9
|
//# sourceMappingURL=fondue-components75.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components75.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components75.js","sources":["../src/components/OrderableList/OrderableListItemAction.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport styles from './styles/orderable-list.module.scss';\n\nexport type OrderableListItemActionProps = { children: ReactNode };\nexport const OrderableListItemAction = forwardRef<HTMLDivElement, OrderableListItemActionProps>(({ children }, ref) => {\n return (\n <div className={styles.action} ref={ref}>\n {children}\n </div>\n );\n});\nOrderableListItemAction.displayName = 'OrderableListItemAction';\n"],"names":["OrderableListItemAction","forwardRef","children","ref","styles"],"mappings":";;;AAOO,MAAMA,IAA0BC,EAAyD,CAAC,EAAE,UAAAC,EAAA,GAAYC,wBAEtG,OAAA,EAAI,WAAWC,EAAO,QAAQ,KAAAD,GAC1B,UAAAD,GACL,CAEP;AACDF,EAAwB,cAAc;"}
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const { selectedItemValues: r, selectItem: s, clear: n } = b(o, e, t);
|
|
7
|
-
return /* @__PURE__ */ c(
|
|
8
|
-
a,
|
|
9
|
-
{
|
|
10
|
-
ref: l,
|
|
11
|
-
multiple: !1,
|
|
12
|
-
selectedItemValues: r,
|
|
13
|
-
onItemSelect: s,
|
|
14
|
-
onClear: n,
|
|
15
|
-
...m
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}, f = i(p);
|
|
19
|
-
f.displayName = "Select.Combobox";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import a from "./fondue-components83.js";
|
|
4
|
+
const m = t(({ children: r }, e) => /* @__PURE__ */ o("span", { className: a.decorator, ref: e, children: r }));
|
|
5
|
+
m.displayName = "OrderableListItemDecorator";
|
|
20
6
|
export {
|
|
21
|
-
|
|
7
|
+
m as OrderableListItemDecorator
|
|
22
8
|
};
|
|
23
9
|
//# sourceMappingURL=fondue-components76.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components76.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components76.js","sources":["../src/components/OrderableList/OrderableListItemDecorator.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport styles from './styles/orderable-list.module.scss';\n\nexport const OrderableListItemDecorator = forwardRef<HTMLSpanElement, { children: ReactNode }>(({ children }, ref) => {\n return (\n <span className={styles.decorator} ref={ref}>\n {children}\n </span>\n );\n});\nOrderableListItemDecorator.displayName = 'OrderableListItemDecorator';\n"],"names":["OrderableListItemDecorator","forwardRef","children","ref","styles"],"mappings":";;;AAMO,MAAMA,IAA6BC,EAAqD,CAAC,EAAE,UAAAC,EAAA,GAAYC,wBAErG,QAAA,EAAK,WAAWC,EAAO,WAAW,KAAAD,GAC9B,UAAAD,GACL,CAEP;AACDF,EAA2B,cAAc;"}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as m } from "@radix-ui/react-slot";
|
|
2
3
|
import { forwardRef as s } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
selectedItemValues: m,
|
|
13
|
-
onItemSelect: c,
|
|
14
|
-
onClear: i,
|
|
15
|
-
...o
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}, f = s(n);
|
|
19
|
-
f.displayName = "Select.Multi";
|
|
4
|
+
import { useOrderableItemContext as n } from "./fondue-components113.js";
|
|
5
|
+
import p from "./fondue-components83.js";
|
|
6
|
+
const a = s(
|
|
7
|
+
({ children: e, asChild: r }, t) => {
|
|
8
|
+
const { itemId: o } = n();
|
|
9
|
+
return /* @__PURE__ */ i(r ? m : "span", { className: p.description, id: `orderable-item-${o}-description`, ref: t, children: e });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
a.displayName = "OrderableListItemDescription";
|
|
20
13
|
export {
|
|
21
|
-
|
|
14
|
+
a as OrderableListItemDescription
|
|
22
15
|
};
|
|
23
16
|
//# sourceMappingURL=fondue-components77.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components77.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components77.js","sources":["../src/components/OrderableList/OrderableListItemDescription.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { useOrderableItemContext } from './hooks/useOrderedListItemContext';\nimport styles from './styles/orderable-list.module.scss';\n\nexport const OrderableListItemDescription = forwardRef<HTMLSpanElement, { children: ReactNode; asChild?: boolean }>(\n ({ children, asChild }, ref) => {\n const { itemId } = useOrderableItemContext();\n const Component = asChild ? Slot : 'span';\n return (\n <Component className={styles.description} id={`orderable-item-${itemId}-description`} ref={ref}>\n {children}\n </Component>\n );\n },\n);\nOrderableListItemDescription.displayName = 'OrderableListItemDescription';\n"],"names":["OrderableListItemDescription","forwardRef","children","asChild","ref","itemId","useOrderableItemContext","jsx","Slot","styles"],"mappings":";;;;;AAQO,MAAMA,IAA+BC;AAAA,EACxC,CAAC,EAAE,UAAAC,GAAU,SAAAC,EAAA,GAAWC,MAAQ;AAC5B,UAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA;AAEnB,WACI,gBAAAC,EAFcJ,IAAUK,IAAO,QAE9B,EAAU,WAAWC,EAAO,aAAa,IAAI,kBAAkBJ,CAAM,gBAAgB,KAAAD,GACjF,UAAAF,EAAA,CACL;AAAA,EAER;AACJ;AACAF,EAA6B,cAAc;"}
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { IconGrabHandle as o } from "@frontify/fondue-icons";
|
|
3
|
+
import { Slot as m } from "@radix-ui/react-slot";
|
|
4
|
+
import { useOrderableItemContext as t } from "./fondue-components113.js";
|
|
5
|
+
import r from "./fondue-components83.js";
|
|
6
|
+
const s = () => {
|
|
7
|
+
const { itemId: e, dragHandleRef: a } = t();
|
|
7
8
|
return /* @__PURE__ */ n(
|
|
8
|
-
|
|
9
|
+
"button",
|
|
9
10
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
type: "button",
|
|
12
|
+
"aria-labelledby": `orderable-handle-label-${e} orderable-item-${e}-title`,
|
|
13
|
+
className: `${r.handle} ${r.dragHandle}`,
|
|
14
|
+
ref: a,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ l("span", { id: `orderable-handle-label-${e}`, className: r.visuallyHidden, children: "Reorder" }),
|
|
17
|
+
/* @__PURE__ */ l(o, { size: 16 })
|
|
18
|
+
]
|
|
16
19
|
}
|
|
17
20
|
);
|
|
18
|
-
},
|
|
19
|
-
|
|
21
|
+
}, i = ({ children: e, asChild: a }) => {
|
|
22
|
+
const { dragHandleRef: d } = t();
|
|
23
|
+
return /* @__PURE__ */ l(a ? m : "div", { className: r.handle, ref: d, children: e });
|
|
24
|
+
};
|
|
25
|
+
s.displayName = "OrderableItemDragHandle";
|
|
26
|
+
i.displayName = "OrderableItemCustomHandle";
|
|
20
27
|
export {
|
|
21
|
-
|
|
28
|
+
i as OrderableItemCustomHandle,
|
|
29
|
+
s as OrderableItemDragHandle
|
|
22
30
|
};
|
|
23
31
|
//# sourceMappingURL=fondue-components78.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components78.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components78.js","sources":["../src/components/OrderableList/OrderableListItemDragHandle.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconGrabHandle } from '@frontify/fondue-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport { type ReactNode } from 'react';\n\nimport { useOrderableItemContext } from './hooks/useOrderedListItemContext';\nimport styles from './styles/orderable-list.module.scss';\n\nexport const OrderableItemDragHandle = () => {\n const { itemId, dragHandleRef } = useOrderableItemContext();\n return (\n <button\n type=\"button\"\n aria-labelledby={`orderable-handle-label-${itemId} orderable-item-${itemId}-title`}\n className={`${styles.handle} ${styles.dragHandle}`}\n ref={dragHandleRef}\n >\n <span id={`orderable-handle-label-${itemId}`} className={styles.visuallyHidden}>\n Reorder\n </span>\n <IconGrabHandle size={16} />\n </button>\n );\n};\n\nexport const OrderableItemCustomHandle = ({ children, asChild }: { children: ReactNode; asChild?: boolean }) => {\n const { dragHandleRef } = useOrderableItemContext();\n const Component = asChild ? Slot : 'div';\n return (\n <Component className={styles.handle} ref={dragHandleRef}>\n {children}\n </Component>\n );\n};\nOrderableItemDragHandle.displayName = 'OrderableItemDragHandle';\nOrderableItemCustomHandle.displayName = 'OrderableItemCustomHandle';\n"],"names":["OrderableItemDragHandle","itemId","dragHandleRef","useOrderableItemContext","jsxs","styles","jsx","IconGrabHandle","OrderableItemCustomHandle","children","asChild","Slot"],"mappings":";;;;;AASO,MAAMA,IAA0B,MAAM;AACzC,QAAM,EAAE,QAAAC,GAAQ,eAAAC,EAAA,IAAkBC,EAAA;AAClC,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,mBAAiB,0BAA0BH,CAAM,mBAAmBA,CAAM;AAAA,MAC1E,WAAW,GAAGI,EAAO,MAAM,IAAIA,EAAO,UAAU;AAAA,MAChD,KAAKH;AAAA,MAEL,UAAA;AAAA,QAAA,gBAAAI,EAAC,QAAA,EAAK,IAAI,0BAA0BL,CAAM,IAAI,WAAWI,EAAO,gBAAgB,UAAA,UAAA,CAEhF;AAAA,QACA,gBAAAC,EAACC,GAAA,EAAe,MAAM,GAAA,CAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGtC,GAEaC,IAA4B,CAAC,EAAE,UAAAC,GAAU,SAAAC,QAA0D;AAC5G,QAAM,EAAE,eAAAR,EAAA,IAAkBC,EAAA;AAE1B,2BADkBO,IAAUC,IAAO,OAE9B,EAAU,WAAWN,EAAO,QAAQ,KAAKH,GACrC,UAAAO,GACL;AAER;AACAT,EAAwB,cAAc;AACtCQ,EAA0B,cAAc;"}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
] }, e);
|
|
14
|
-
s.displayName = "Select.Group";
|
|
15
|
-
const N = l(s);
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { useOrderableItemContext as l } from "./fondue-components113.js";
|
|
5
|
+
import a from "./fondue-components83.js";
|
|
6
|
+
const n = s(
|
|
7
|
+
({ children: t, asChild: e }, r) => {
|
|
8
|
+
const { itemId: o } = l();
|
|
9
|
+
return /* @__PURE__ */ m(e ? i : "span", { className: a.title, id: `orderable-item-${o}-title`, ref: r, children: t });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
n.displayName = "OrderableListItemTitle";
|
|
16
13
|
export {
|
|
17
|
-
|
|
18
|
-
N as ForwardedRefSelectItemGroup,
|
|
19
|
-
o as SelectItem,
|
|
20
|
-
s as SelectItemGroup
|
|
14
|
+
n as OrderableListItemTitle
|
|
21
15
|
};
|
|
22
16
|
//# sourceMappingURL=fondue-components79.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components79.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components79.js","sources":["../src/components/OrderableList/OrderableListItemTitle.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { useOrderableItemContext } from './hooks/useOrderedListItemContext';\nimport styles from './styles/orderable-list.module.scss';\n\nexport const OrderableListItemTitle = forwardRef<HTMLSpanElement, { children: ReactNode; asChild?: boolean }>(\n ({ children, asChild }, ref) => {\n const { itemId } = useOrderableItemContext();\n const Component = asChild ? Slot : 'span';\n return (\n <Component className={styles.title} id={`orderable-item-${itemId}-title`} ref={ref}>\n {children}\n </Component>\n );\n },\n);\nOrderableListItemTitle.displayName = 'OrderableListItemTitle';\n"],"names":["OrderableListItemTitle","forwardRef","children","asChild","ref","itemId","useOrderableItemContext","jsx","Slot","styles"],"mappings":";;;;;AAQO,MAAMA,IAAyBC;AAAA,EAClC,CAAC,EAAE,UAAAC,GAAU,SAAAC,EAAA,GAAWC,MAAQ;AAC5B,UAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA;AAEnB,WACI,gBAAAC,EAFcJ,IAAUK,IAAO,QAE9B,EAAU,WAAWC,EAAO,OAAO,IAAI,kBAAkBJ,CAAM,UAAU,KAAAD,GACrE,UAAAF,EAAA,CACL;AAAA,EAER;AACJ;AACAF,EAAuB,cAAc;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Slot as P } from "@radix-ui/react-slot";
|
|
3
3
|
import { forwardRef as F, useState as y, useMemo as N, Children as I } from "react";
|
|
4
|
-
import { ForwardedRefColorGradientInput as w } from "./fondue-
|
|
5
|
-
import { ForwardedRefColorPickerInput as h } from "./fondue-
|
|
6
|
-
import { ForwardedRefColorValueInput as G } from "./fondue-
|
|
7
|
-
import V from "./fondue-
|
|
8
|
-
import { DEFAULT_FORMAT as g, DEFAULT_COLOR as A, getColorWithName as s } from "./fondue-
|
|
4
|
+
import { ForwardedRefColorGradientInput as w } from "./fondue-components49.js";
|
|
5
|
+
import { ForwardedRefColorPickerInput as h } from "./fondue-components50.js";
|
|
6
|
+
import { ForwardedRefColorValueInput as G } from "./fondue-components51.js";
|
|
7
|
+
import V from "./fondue-components52.js";
|
|
8
|
+
import { DEFAULT_FORMAT as g, DEFAULT_COLOR as A, getColorWithName as s } from "./fondue-components53.js";
|
|
9
9
|
const p = ({
|
|
10
10
|
children: t,
|
|
11
11
|
currentColor: r = A,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
t.displayName = "Select.Slot";
|
|
6
|
-
const S = d(t);
|
|
1
|
+
const n = (t) => {
|
|
2
|
+
var e;
|
|
3
|
+
return ((e = document.getElementById(`orderable-item-${t}-title`)) == null ? void 0 : e.textContent) ?? t;
|
|
4
|
+
};
|
|
7
5
|
export {
|
|
8
|
-
|
|
9
|
-
t as SelectSlot
|
|
6
|
+
n as getItemTitle
|
|
10
7
|
};
|
|
11
8
|
//# sourceMappingURL=fondue-components80.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components80.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components80.js","sources":["../src/components/OrderableList/helpers/getItemTitle.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport const getItemTitle = (itemId: string) =>\n document.getElementById(`orderable-item-${itemId}-title`)?.textContent ?? itemId;\n"],"names":["getItemTitle","itemId","_a"],"mappings":"AAEO,MAAMA,IAAe,CAACC,MAAA;AAAtB,MAAAC;AACH,WAAAA,IAAA,SAAS,eAAe,kBAAkBD,CAAM,QAAQ,MAAxD,gBAAAC,EAA2D,gBAAeD;AAAA;"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { createContext as r, useContext as a, useState as c, useCallback as u } from "react";
|
|
2
|
+
const e = r(() => {
|
|
3
|
+
});
|
|
4
|
+
e.displayName = "OrderableListAnnounceContext";
|
|
5
|
+
const d = e.Provider, l = () => a(e), m = () => {
|
|
6
|
+
const [t, n] = c(""), o = u((s) => {
|
|
7
|
+
n(""), requestAnimationFrame(() => n(s));
|
|
8
|
+
}, []);
|
|
9
|
+
return { message: t, announce: o };
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
c as thumb,
|
|
12
|
-
o as track
|
|
12
|
+
d as OrderableListAnnounceProvider,
|
|
13
|
+
m as useAnnounceState,
|
|
14
|
+
l as useOrderableListAnnounce
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=fondue-components81.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components81.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components81.js","sources":["../src/components/OrderableList/hooks/useOrderableListAnnounce.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createContext, useCallback, useContext, useState } from 'react';\n\ntype AnnounceFunction = (message: string) => void;\n\nconst OrderableListAnnounceContext = createContext<AnnounceFunction>(() => {});\nOrderableListAnnounceContext.displayName = 'OrderableListAnnounceContext';\n\nexport const OrderableListAnnounceProvider = OrderableListAnnounceContext.Provider;\n\nexport const useOrderableListAnnounce = (): AnnounceFunction => useContext(OrderableListAnnounceContext);\n\nexport const useAnnounceState = () => {\n const [message, setMessage] = useState('');\n\n const announce = useCallback((text: string) => {\n // Clear first to ensure repeated identical messages are announced\n setMessage('');\n requestAnimationFrame(() => setMessage(text));\n }, []);\n\n return { message, announce };\n};\n"],"names":["OrderableListAnnounceContext","createContext","OrderableListAnnounceProvider","useOrderableListAnnounce","useContext","useAnnounceState","message","setMessage","useState","announce","useCallback","text"],"mappings":";AAMA,MAAMA,IAA+BC,EAAgC,MAAM;AAAC,CAAC;AAC7ED,EAA6B,cAAc;AAEpC,MAAME,IAAgCF,EAA6B,UAE7DG,IAA2B,MAAwBC,EAAWJ,CAA4B,GAE1FK,IAAmB,MAAM;AAClC,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,EAAE,GAEnCC,IAAWC,EAAY,CAACC,MAAiB;AAE3C,IAAAJ,EAAW,EAAE,GACb,sBAAsB,MAAMA,EAAWI,CAAI,CAAC;AAAA,EAChD,GAAG,CAAA,CAAE;AAEL,SAAO,EAAE,SAAAL,GAAS,UAAAG,EAAA;AACtB;"}
|