@temp-spotwork/ui 1.7.4 → 1.7.5
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/{Combination-B1NSOvaC.js → Combination-Cmsu7uVq.js} +1 -1
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-BVfed4GL.js} +2 -2
- package/dist/{addYears-D3POA9ql.js → addYears-BWBSd1NA.js} +1 -1
- package/dist/components/atoms/conversation/chatheader/chatheader.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-date-cell.js +7 -7
- package/dist/components/atoms/form/calendar/calendar-month.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-utils.js +1 -1
- package/dist/components/atoms/form/calendar/calendar.js +1 -1
- package/dist/components/atoms/form/calendar/calendar.stories.js +2 -2
- package/dist/components/atoms/form/calendar/month-header.js +1 -1
- package/dist/components/atoms/form/checkbox/checkbox.js +1 -1
- package/dist/components/atoms/form/chips/chips.js +1 -1
- package/dist/components/atoms/form/dateselect/date-calendar.js +1 -1
- package/dist/components/atoms/form/dateselect/date-dropdown-header.js +1 -1
- package/dist/components/atoms/form/dateselect/date-input.js +3 -3
- package/dist/components/atoms/form/dateselect/date-month-year-switch.js +1 -1
- package/dist/components/atoms/form/dateselect/dateselect.js +4 -4
- package/dist/components/atoms/form/dateselect/month-switch.js +3 -3
- package/dist/components/atoms/form/dateselect/year-switch.js +4 -4
- package/dist/components/atoms/form/dropdown/dropdown.js +2 -2
- package/dist/components/atoms/form/dropdown/styles.js +1 -1
- package/dist/components/atoms/form/multiselect/multiselect.js +1 -1
- package/dist/components/atoms/form/navigation/navigation.js +1 -1
- package/dist/components/atoms/form/stepper/stepper.js +1 -1
- package/dist/components/atoms/form/switch/switch.js +4 -4
- package/dist/components/atoms/form/textarea/rich-textarea.js +1 -1
- package/dist/components/atoms/form/textarea/textarea.js +1 -1
- package/dist/components/atoms/form/textfield/textfield.js +1 -1
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker-input.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker.js +1 -1
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +1 -1
- package/dist/components/atoms/form/timeselect/hours-switch.js +2 -2
- package/dist/components/atoms/form/timeselect/minutes-switch.js +2 -2
- package/dist/components/atoms/form/timeselect/timeselect.js +1 -1
- package/dist/components/atoms/icons/icons.js +6 -6
- package/dist/components/atoms/icons/icons.stories.js +1 -1
- package/dist/components/atoms/navigation/navigation-item/navigation-item.d.ts +14 -1
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +56 -56
- package/dist/components/atoms/small-large-text/small-large-text.js +7 -6
- package/dist/components/atoms/tooltip/tooltip.js +5 -5
- package/dist/components/atoms/tooltip/tooltip.stories.js +1 -1
- package/dist/components/molecules/alert/alert.js +8 -7
- package/dist/components/molecules/conversation/contact/contact.js +1 -1
- package/dist/components/molecules/conversation/message-editor/message-editor.js +1 -1
- package/dist/components/molecules/datatables/row-header/row-header.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +1 -1
- package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.js +1 -1
- package/dist/components/molecules/dialog/dialog.js +8 -7
- package/dist/components/molecules/drawer/drawer.js +14 -13
- package/dist/components/molecules/filter/checkbox/checkbox.js +1 -1
- package/dist/components/molecules/filter/context-search/context-search.js +1 -1
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +4 -4
- package/dist/components/molecules/filter/date-selector/date-selector.js +4 -4
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +2 -2
- package/dist/components/molecules/filter/dropdown-selector/styles.js +1 -1
- package/dist/components/molecules/filter/range-selector/range-selector.js +3 -3
- package/dist/components/molecules/filter/range-selector/styles.js +1 -1
- package/dist/components/molecules/link/link.js +1 -1
- package/dist/components/molecules/navigation/context-menu/context-menu.js +1 -1
- package/dist/components/molecules/navigation/menubar/menubar.js +1 -1
- package/dist/components/molecules/navigation/sidebar/sidebar.js +28 -31
- package/dist/components/molecules/snackbar/Snackbar.stories.js +1 -1
- package/dist/components/molecules/snackbar/index.js +1 -1
- package/dist/components/molecules/snackbar/snackbar.js +7 -6
- package/dist/components/styles/colors/colors.js +1 -1
- package/dist/components/styles/typography/typography.js +1 -1
- package/dist/{constants-BfMb81ht.js → constants-B4duAnvD.js} +5 -5
- package/dist/{format-BwmhcciO.js → format-BuDzOByC.js} +8 -8
- package/dist/{index-QKj2bKph.js → index-Bm3lnWO8.js} +23 -23
- package/dist/{index-DVNTJNwY.js → index-C8EuuBMC.js} +6 -6
- package/dist/{index-B9jfXCBx.js → index-CRTzrqB9.js} +14 -14
- package/dist/{index-Bam3aisa.js → index-CSucbNlF.js} +17 -17
- package/dist/{index-Ck3lRuRz.js → index-CYMdFyYH.js} +10 -10
- package/dist/{index-ByBd5wKB.js → index-C_XRprxd.js} +3 -3
- package/dist/{index-DLKZ-XYv.js → index-DL5wn_Sh.js} +20 -20
- package/dist/{index-fN7hCOo3.js → index-Y8TYOJJY.js} +1 -1
- package/dist/{index-DMvnp-vR.js → index-e0vK3ttb.js} +1 -1
- package/dist/{isToday-DmBTkQMq.js → isToday-CO0rX_Nr.js} +2 -2
- package/dist/{lodash-CyvSh4lH.js → lodash-Da6oICkd.js} +1 -1
- package/dist/main.js +22 -22
- package/dist/purify.es-Bxiq5T7l.js +590 -0
- package/dist/{react-spring_web.modern-BzbxCya-.js → react-spring_web.modern-CKwWSQke.js} +3 -3
- package/dist/{snackbar-CHpPc7Hi.js → snackbar-B9zd5z5s.js} +21 -20
- package/dist/{startOfToday-BPMZZniU.js → startOfToday-CHlrckpa.js} +1 -1
- package/package.json +1 -1
- package/dist/purify.es-CcKdJiNO.js +0 -595
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { NavigationItem as
|
|
3
|
-
import {
|
|
4
|
-
import { R as b, P as
|
|
1
|
+
import { jsx as r, jsxs as i, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { NavigationItem as t } from "../../../atoms/navigation/navigation-item/navigation-item.js";
|
|
3
|
+
import { b as g, a as s } from "../../../../react-spring_web.modern-CKwWSQke.js";
|
|
4
|
+
import { R as b, P as v, O as x, C as N, T as k, D as y } from "../../../../index-CYMdFyYH.js";
|
|
5
5
|
import "../../../styles/colors/colors.js";
|
|
6
6
|
import { surface as C } from "../../../styles/colors/colormap.js";
|
|
7
7
|
function z({
|
|
8
|
-
open:
|
|
9
|
-
setOpen:
|
|
8
|
+
open: a,
|
|
9
|
+
setOpen: c,
|
|
10
10
|
topItems: d,
|
|
11
|
-
bottomItems:
|
|
11
|
+
bottomItems: l = [],
|
|
12
12
|
transitionDuration: f = 300,
|
|
13
|
-
width:
|
|
14
|
-
overlayTransparent:
|
|
13
|
+
width: m = "22.5rem",
|
|
14
|
+
overlayTransparent: o = !1
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const p = g(a, {
|
|
17
17
|
from: { opacity: 0, transform: "translateX(-100%)" },
|
|
18
18
|
enter: { opacity: 1, transform: "translateX(0%)" },
|
|
19
19
|
leave: { opacity: 1 },
|
|
@@ -21,9 +21,9 @@ function z({
|
|
|
21
21
|
duration: f
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return /* @__PURE__ */ r(b, { open:
|
|
25
|
-
(
|
|
26
|
-
!
|
|
24
|
+
return /* @__PURE__ */ r(b, { open: a, onOpenChange: c, modal: !o, children: /* @__PURE__ */ r(v, { children: p(
|
|
25
|
+
(n, u) => u ? /* @__PURE__ */ i(h, { children: [
|
|
26
|
+
!o && /* @__PURE__ */ r(s.div, { style: { opacity: n.opacity }, children: /* @__PURE__ */ r(
|
|
27
27
|
x,
|
|
28
28
|
{
|
|
29
29
|
forceMount: !0,
|
|
@@ -34,35 +34,32 @@ function z({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ i(N, { forceMount: !0, "data-state": a ? "open" : "close", children: [
|
|
38
38
|
/* @__PURE__ */ r(k, { className: "sr-only", children: "Navigation Sidebar" }),
|
|
39
39
|
/* @__PURE__ */ r(y, { className: "sr-only", children: "Navigation menu with links to different sections" }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
/* @__PURE__ */ i(
|
|
41
|
+
s.div,
|
|
42
42
|
{
|
|
43
|
-
style: { transform:
|
|
44
|
-
className: `fixed top-[6rem] left-0 h-screen z-50 bg-surface-default focus:outline-none flex flex-col ${
|
|
43
|
+
style: { transform: n.transform, width: m },
|
|
44
|
+
className: `fixed top-[6rem] left-0 h-screen z-50 bg-surface-default focus:outline-none flex flex-col ${o ? "border-[0.1rem] border-bcolor-divider" : "shadow-[0rem_1rem_1rem_0rem_#B0B0B0] border-t-[0.1rem] border-bcolor-divider"}`,
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */ r("div", { className: "flex flex-col gap-xs p-md flex-1", children: d.map((e) => /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-xs p-md flex-1", children: d.map((e) => /* @__PURE__ */ r(
|
|
47
|
+
t,
|
|
48
48
|
{
|
|
49
|
-
|
|
49
|
+
...e,
|
|
50
|
+
isNavigation: !0,
|
|
50
51
|
onClick: () => e.onClick(e.link),
|
|
51
|
-
|
|
52
|
-
children: [
|
|
53
|
-
" ",
|
|
54
|
-
/* @__PURE__ */ r(s, { ...e, isNavigation: !0 })
|
|
55
|
-
]
|
|
52
|
+
href: e.link
|
|
56
53
|
},
|
|
57
54
|
e.label
|
|
58
55
|
)) }),
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
l.length > 0 && /* @__PURE__ */ r("div", { className: "flex flex-col gap-lg p-md", children: l.map((e) => /* @__PURE__ */ r(
|
|
57
|
+
t,
|
|
61
58
|
{
|
|
62
|
-
|
|
59
|
+
...e,
|
|
60
|
+
isNavigation: !0,
|
|
63
61
|
onClick: () => e.onClick(e.link),
|
|
64
|
-
|
|
65
|
-
children: /* @__PURE__ */ r(s, { ...e, isNavigation: !0 })
|
|
62
|
+
href: e.link
|
|
66
63
|
},
|
|
67
64
|
e.label
|
|
68
65
|
)) })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
|
-
import { S as r, P as c, V as d } from "../../../snackbar-
|
|
3
|
+
import { S as r, P as c, V as d } from "../../../snackbar-B9zd5z5s.js";
|
|
4
4
|
import { Button as h } from "../button/button.js";
|
|
5
5
|
const w = {
|
|
6
6
|
title: "@spotwork-ui/Snackbar",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { S as
|
|
2
|
+
import { S as F } from "../../../snackbar-B9zd5z5s.js";
|
|
3
3
|
import "../../styles/tailwind-config/index.js";
|
|
4
4
|
import "../../styles/typography/typography.js";
|
|
5
5
|
import "../../styles/colors/colors.js";
|
|
@@ -7,14 +7,15 @@ import "../../styles/colors/colormap.js";
|
|
|
7
7
|
import "../../atoms/icons/icons.js";
|
|
8
8
|
import "../../atoms/icons/iconsSVGs/Large/Profile.js";
|
|
9
9
|
import "../../atoms/icons/iconsSVGs/Small/Profile.js";
|
|
10
|
-
import "../../../index-
|
|
10
|
+
import "../../../index-Y8TYOJJY.js";
|
|
11
11
|
import "react";
|
|
12
|
+
import "../../atoms/navigation/navigation-item/navigation-item.js";
|
|
12
13
|
import "../../atoms/form/dateselect/dateselect.js";
|
|
13
14
|
import "../../atoms/form/time-picker/time-picker.js";
|
|
14
15
|
import "../../atoms/form/dropdown/dropdown.js";
|
|
15
16
|
import "../filter/dropdown-selector/styles.js";
|
|
16
17
|
import "../../atoms/form/dropdown-search/dropdown-search.js";
|
|
17
|
-
import "../../../index-
|
|
18
|
+
import "../../../index-e0vK3ttb.js";
|
|
18
19
|
import "../../atoms/form/textfield/textfield.js";
|
|
19
20
|
import "../../atoms/form/stepper/stepper.js";
|
|
20
21
|
import "../../atoms/form/textarea/textarea.js";
|
|
@@ -23,11 +24,11 @@ import "../../atoms/form/timeselect/timeselect.js";
|
|
|
23
24
|
import "../button/button.js";
|
|
24
25
|
import "../datatables/cell/cell.js";
|
|
25
26
|
import "../dataviz/donut-chart/donut-chart.js";
|
|
26
|
-
import "../../../react-spring_web.modern-
|
|
27
|
+
import "../../../react-spring_web.modern-CKwWSQke.js";
|
|
27
28
|
import "../form/radiogroup/radiogroup.js";
|
|
28
|
-
import "../../../purify.es-
|
|
29
|
+
import "../../../purify.es-Bxiq5T7l.js";
|
|
29
30
|
import "../../../card-Cc2Qkiqr.js";
|
|
30
31
|
import "./styles.js";
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
F as Snackbar
|
|
33
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { crusta as r, cinnabar as m, blueRibbon as t, apple as o, sun as v, woodsmoke as h } from "./colormap.js";
|
|
3
|
-
import { c as l } from "../../../index-
|
|
3
|
+
import { c as l } from "../../../index-Y8TYOJJY.js";
|
|
4
4
|
const N = Object.entries(r), b = Object.entries(m), u = Object.entries(t), p = Object.entries(o), g = Object.entries(v), x = Object.entries(h), d = "w-8 h-8 m-1", c = "text-xs justify-center align-middle text-center", n = "flex flex-row align-middle justify-center text-center";
|
|
5
5
|
function V() {
|
|
6
6
|
return /* @__PURE__ */ a("div", { className: "flex flex-col m-2", children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement as f } from "react";
|
|
2
|
-
import { p as l } from "../../../purify.es-
|
|
2
|
+
import { p as l } from "../../../purify.es-Bxiq5T7l.js";
|
|
3
3
|
import { styleMap as y, fontFamilyMap as T, fontWeightMap as L, fontSizeMap as d, textTypeMap as s } from "./style.js";
|
|
4
4
|
import { glyphClassesMap as $ } from "../colors/colormap.js";
|
|
5
5
|
function E({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as w, a as _, s as W, g as T } from "./startOfWeek-DBvLd9He.js";
|
|
2
2
|
import { t as l } from "./toDate-DF9e2eS8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { m as L, d as q } from "./constants-B4duAnvD.js";
|
|
4
4
|
function A(t, e) {
|
|
5
5
|
const n = l(t);
|
|
6
6
|
if (isNaN(e)) return w(t, NaN);
|
|
@@ -1209,15 +1209,15 @@ function jt(t) {
|
|
|
1209
1209
|
export {
|
|
1210
1210
|
Jt as a,
|
|
1211
1211
|
A as b,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1212
|
+
S as c,
|
|
1213
|
+
Yt as d,
|
|
1214
|
+
kt as e,
|
|
1215
1215
|
$t as f,
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1216
|
+
Dt as g,
|
|
1217
|
+
Q as h,
|
|
1218
|
+
qt as i,
|
|
1219
1219
|
Ht as j,
|
|
1220
|
-
|
|
1220
|
+
k,
|
|
1221
1221
|
Ft as l,
|
|
1222
1222
|
Y as s,
|
|
1223
1223
|
Qt as w
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { c as Te, u as xe } from "./index-
|
|
4
|
-
import { h as bn, u as Sn, R as Pn, F as Dn } from "./Combination-
|
|
2
|
+
import { h as me, o as le, c as N, e as M, m as $, n as Pe, u as ve, d as gn, A as wn, b as te, P as hn, i as De, l as _n, D as Cn, C as Rn, j as In, a as En, f as ye } from "./index-DL5wn_Sh.js";
|
|
3
|
+
import { c as Te, u as xe } from "./index-C_XRprxd.js";
|
|
4
|
+
import { h as bn, u as Sn, R as Pn, F as Dn } from "./Combination-Cmsu7uVq.js";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
6
|
var de = "rovingFocusGroup.onEntryFocus", yn = { bubbles: !1, cancelable: !0 }, z = "RovingFocusGroup", [fe, Ae, Tn] = Te(z), [xn, Ne] = me(
|
|
7
7
|
z,
|
|
@@ -173,11 +173,11 @@ var Kn = Oe, Un = ke, pe = ["Enter", " "], $n = ["ArrowDown", "PageUp", "Home"],
|
|
|
173
173
|
}, Yn = {
|
|
174
174
|
ltr: ["ArrowLeft"],
|
|
175
175
|
rtl: ["ArrowRight"]
|
|
176
|
-
},
|
|
176
|
+
}, Z = "Menu", [H, Xn, jn] = Te(Z), [k, Ke] = me(Z, [
|
|
177
177
|
jn,
|
|
178
178
|
De,
|
|
179
179
|
Ne
|
|
180
|
-
]), re = De(), Ue = Ne(), [Hn, G] = k(
|
|
180
|
+
]), re = De(), Ue = Ne(), [Hn, G] = k(Z), [Wn, q] = k(Z), $e = (e) => {
|
|
181
181
|
const { __scopeMenu: o, open: n = !1, children: t, dir: r, onOpenChange: c, modal: d = !0 } = e, l = re(o), [m, v] = a.useState(null), i = a.useRef(!1), u = ve(c), f = xe(r);
|
|
182
182
|
return a.useEffect(() => {
|
|
183
183
|
const w = () => {
|
|
@@ -208,7 +208,7 @@ var Kn = Oe, Un = ke, pe = ["Enter", " "], $n = ["ArrowDown", "PageUp", "Home"],
|
|
|
208
208
|
}
|
|
209
209
|
) });
|
|
210
210
|
};
|
|
211
|
-
$e.displayName =
|
|
211
|
+
$e.displayName = Z;
|
|
212
212
|
var zn = "MenuAnchor", Me = a.forwardRef(
|
|
213
213
|
(e, o) => {
|
|
214
214
|
const { __scopeMenu: n, ...t } = e, r = re(n);
|
|
@@ -216,16 +216,16 @@ var zn = "MenuAnchor", Me = a.forwardRef(
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
Me.displayName = zn;
|
|
219
|
-
var ge = "MenuPortal", [
|
|
219
|
+
var ge = "MenuPortal", [Zn, Be] = k(ge, {
|
|
220
220
|
forceMount: void 0
|
|
221
221
|
}), Ve = (e) => {
|
|
222
222
|
const { __scopeMenu: o, forceMount: n, children: t, container: r } = e, c = G(ge, o);
|
|
223
|
-
return /* @__PURE__ */ s(
|
|
223
|
+
return /* @__PURE__ */ s(Zn, { scope: o, forceMount: n, children: /* @__PURE__ */ s(te, { present: n || c.open, children: /* @__PURE__ */ s(hn, { asChild: !0, container: r, children: t }) }) });
|
|
224
224
|
};
|
|
225
225
|
Ve.displayName = ge;
|
|
226
|
-
var S = "MenuContent", [
|
|
226
|
+
var S = "MenuContent", [qn, we] = k(S), Ye = a.forwardRef(
|
|
227
227
|
(e, o) => {
|
|
228
|
-
const n = Be(S, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = G(S, e.__scopeMenu), d =
|
|
228
|
+
const n = Be(S, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = G(S, e.__scopeMenu), d = q(S, e.__scopeMenu);
|
|
229
229
|
return /* @__PURE__ */ s(H.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(te, { present: t || c.open, children: /* @__PURE__ */ s(H.Slot, { scope: e.__scopeMenu, children: d.modal ? /* @__PURE__ */ s(Jn, { ...r, ref: o }) : /* @__PURE__ */ s(Qn, { ...r, ref: o }) }) }) });
|
|
230
230
|
}
|
|
231
231
|
), Jn = a.forwardRef(
|
|
@@ -281,7 +281,7 @@ var S = "MenuContent", [Zn, we] = k(S), Ye = a.forwardRef(
|
|
|
281
281
|
onDismiss: w,
|
|
282
282
|
disableOutsideScroll: g,
|
|
283
283
|
...E
|
|
284
|
-
} = e, h = G(S, n), I =
|
|
284
|
+
} = e, h = G(S, n), I = q(S, n), x = re(n), _ = Ue(n), P = Xn(n), [B, J] = a.useState(null), O = a.useRef(null), C = $(o, O, h.onContentChange), L = a.useRef(0), F = a.useRef(""), V = a.useRef(0), Y = a.useRef(null), Q = a.useRef("right"), ee = a.useRef(0), se = g ? Pn : a.Fragment, y = g ? { as: eo, allowPinchZoom: !0 } : void 0, Mn = (p) => {
|
|
285
285
|
var U, Ee;
|
|
286
286
|
const b = F.current + p, D = P().filter((T) => !T.disabled), A = document.activeElement, ue = (U = D.find((T) => T.ref.current === A)) == null ? void 0 : U.textValue, ie = D.map((T) => T.textValue), Ie = po(ie, b, ue), X = (Ee = D.find((T) => T.textValue === Ie)) == null ? void 0 : Ee.ref.current;
|
|
287
287
|
(function T(be) {
|
|
@@ -294,7 +294,7 @@ var S = "MenuContent", [Zn, we] = k(S), Ye = a.forwardRef(
|
|
|
294
294
|
return Q.current === ((D = Y.current) == null ? void 0 : D.side) && vo(p, (A = Y.current) == null ? void 0 : A.area);
|
|
295
295
|
}, []);
|
|
296
296
|
return /* @__PURE__ */ s(
|
|
297
|
-
|
|
297
|
+
qn,
|
|
298
298
|
{
|
|
299
299
|
scope: n,
|
|
300
300
|
searchRef: F,
|
|
@@ -418,7 +418,7 @@ var oo = "MenuLabel", Xe = a.forwardRef(
|
|
|
418
418
|
Xe.displayName = oo;
|
|
419
419
|
var ne = "MenuItem", Se = "menu.itemSelect", ae = a.forwardRef(
|
|
420
420
|
(e, o) => {
|
|
421
|
-
const { disabled: n = !1, onSelect: t, ...r } = e, c = a.useRef(null), d =
|
|
421
|
+
const { disabled: n = !1, onSelect: t, ...r } = e, c = a.useRef(null), d = q(ne, e.__scopeMenu), l = we(ne, e.__scopeMenu), m = $(o, c), v = a.useRef(!1), i = () => {
|
|
422
422
|
const u = c.current;
|
|
423
423
|
if (!n && u) {
|
|
424
424
|
const f = new CustomEvent(Se, { bubbles: !0, cancelable: !0 });
|
|
@@ -519,9 +519,9 @@ var We = "MenuRadioGroup", [ro, ao] = k(
|
|
|
519
519
|
}
|
|
520
520
|
);
|
|
521
521
|
ze.displayName = We;
|
|
522
|
-
var
|
|
522
|
+
var Ze = "MenuRadioItem", qe = a.forwardRef(
|
|
523
523
|
(e, o) => {
|
|
524
|
-
const { value: n, ...t } = e, r = ao(
|
|
524
|
+
const { value: n, ...t } = e, r = ao(Ze, e.__scopeMenu), c = n === r.value;
|
|
525
525
|
return /* @__PURE__ */ s(Je, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ s(
|
|
526
526
|
ae,
|
|
527
527
|
{
|
|
@@ -542,7 +542,7 @@ var qe = "MenuRadioItem", Ze = a.forwardRef(
|
|
|
542
542
|
) });
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
|
-
|
|
545
|
+
qe.displayName = Ze;
|
|
546
546
|
var Ce = "MenuItemIndicator", [Je, co] = k(
|
|
547
547
|
Ce,
|
|
548
548
|
{ checked: !1 }
|
|
@@ -590,7 +590,7 @@ var uo = "MenuArrow", nn = a.forwardRef(
|
|
|
590
590
|
nn.displayName = uo;
|
|
591
591
|
var io = "MenuSub", [at, on] = k(io), j = "MenuSubTrigger", tn = a.forwardRef(
|
|
592
592
|
(e, o) => {
|
|
593
|
-
const n = G(j, e.__scopeMenu), t =
|
|
593
|
+
const n = G(j, e.__scopeMenu), t = q(j, e.__scopeMenu), r = on(j, e.__scopeMenu), c = we(j, e.__scopeMenu), d = a.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: m } = c, v = { __scopeMenu: e.__scopeMenu }, i = a.useCallback(() => {
|
|
594
594
|
d.current && window.clearTimeout(d.current), d.current = null;
|
|
595
595
|
}, []);
|
|
596
596
|
return a.useEffect(() => i, [i]), a.useEffect(() => {
|
|
@@ -661,7 +661,7 @@ var io = "MenuSub", [at, on] = k(io), j = "MenuSubTrigger", tn = a.forwardRef(
|
|
|
661
661
|
tn.displayName = j;
|
|
662
662
|
var rn = "MenuSubContent", an = a.forwardRef(
|
|
663
663
|
(e, o) => {
|
|
664
|
-
const n = Be(S, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = G(S, e.__scopeMenu), d =
|
|
664
|
+
const n = Be(S, e.__scopeMenu), { forceMount: t = n.forceMount, ...r } = e, c = G(S, e.__scopeMenu), d = q(S, e.__scopeMenu), l = on(rn, e.__scopeMenu), m = a.useRef(null), v = $(o, m);
|
|
665
665
|
return /* @__PURE__ */ s(H.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(te, { present: t || c.open, children: /* @__PURE__ */ s(H.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(
|
|
666
666
|
he,
|
|
667
667
|
{
|
|
@@ -738,7 +738,7 @@ function vo(e, o) {
|
|
|
738
738
|
function W(e) {
|
|
739
739
|
return (o) => o.pointerType === "mouse" ? e(o) : void 0;
|
|
740
740
|
}
|
|
741
|
-
var Mo = $e, go = Me, wo = Ve, ho = Ye, _o = _e, Co = Xe, Ro = ae, Io = He, Eo = ze, bo =
|
|
741
|
+
var Mo = $e, go = Me, wo = Ve, ho = Ye, _o = _e, Co = Xe, Ro = ae, Io = He, Eo = ze, bo = qe, So = Qe, Po = en, Do = nn, yo = tn, To = an, ce = "DropdownMenu", [xo] = me(
|
|
742
742
|
ce,
|
|
743
743
|
[Ke]
|
|
744
744
|
), R = Ke(), [Ao, sn] = xo(ce), un = (e) => {
|
|
@@ -882,18 +882,18 @@ var Ho = "DropdownMenuSeparator", Wo = a.forwardRef((e, o) => {
|
|
|
882
882
|
return /* @__PURE__ */ s(Po, { ...r, ...t, ref: o });
|
|
883
883
|
});
|
|
884
884
|
Wo.displayName = Ho;
|
|
885
|
-
var zo = "DropdownMenuArrow",
|
|
885
|
+
var zo = "DropdownMenuArrow", Zo = a.forwardRef(
|
|
886
886
|
(e, o) => {
|
|
887
887
|
const { __scopeDropdownMenu: n, ...t } = e, r = R(n);
|
|
888
888
|
return /* @__PURE__ */ s(Do, { ...r, ...t, ref: o });
|
|
889
889
|
}
|
|
890
890
|
);
|
|
891
|
-
|
|
892
|
-
var
|
|
891
|
+
Zo.displayName = zo;
|
|
892
|
+
var qo = "DropdownMenuSubTrigger", Jo = a.forwardRef((e, o) => {
|
|
893
893
|
const { __scopeDropdownMenu: n, ...t } = e, r = R(n);
|
|
894
894
|
return /* @__PURE__ */ s(yo, { ...r, ...t, ref: o });
|
|
895
895
|
});
|
|
896
|
-
Jo.displayName =
|
|
896
|
+
Jo.displayName = qo;
|
|
897
897
|
var Qo = "DropdownMenuSubContent", et = a.forwardRef((e, o) => {
|
|
898
898
|
const { __scopeDropdownMenu: n, ...t } = e, r = R(n);
|
|
899
899
|
return /* @__PURE__ */ s(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { n as Re, d as Qe, o as Ie, m as B, A as et, c as M, e as E, P as tt, p as Y, r as be, i as _e, u as ot, D as nt, h as rt, j as st, C as lt, a as ct } from "./index-DL5wn_Sh.js";
|
|
3
3
|
import { c as Ee } from "./index-rKs9bXHr.js";
|
|
4
|
-
import { u as at, c as it } from "./index-
|
|
5
|
-
import { h as dt, u as ut, R as pt, F as ft } from "./Combination-
|
|
4
|
+
import { u as at, c as it } from "./index-C_XRprxd.js";
|
|
5
|
+
import { h as dt, u as ut, R as pt, F as ft } from "./Combination-Cmsu7uVq.js";
|
|
6
6
|
import { u as mt } from "./index-BZPx6jYI.js";
|
|
7
|
-
import { V as ht } from "./index-
|
|
7
|
+
import { V as ht } from "./index-CSucbNlF.js";
|
|
8
8
|
import { jsx as m, jsxs as ce, Fragment as Te } from "react/jsx-runtime";
|
|
9
9
|
var vt = [" ", "Enter", "ArrowUp", "ArrowDown"], gt = [" ", "Enter"], J = "Select", [ie, de, St] = it(J), [te] = rt(J, [
|
|
10
10
|
St,
|
|
@@ -816,9 +816,9 @@ export {
|
|
|
816
816
|
$t as I,
|
|
817
817
|
Jt as P,
|
|
818
818
|
Xt as R,
|
|
819
|
-
|
|
819
|
+
no as S,
|
|
820
820
|
Zt as T,
|
|
821
821
|
eo as V,
|
|
822
822
|
to as a,
|
|
823
|
-
|
|
823
|
+
oo as b
|
|
824
824
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { b as L, c as P, n as O, m as N, e as S, q as j, h as H } from "./index-DL5wn_Sh.js";
|
|
3
3
|
import { u as z } from "./index-BZPx6jYI.js";
|
|
4
4
|
import { jsx as h, jsxs as G, Fragment as K } from "react/jsx-runtime";
|
|
5
5
|
var _ = "Checkbox", [U] = H(_), [X, g] = U(_);
|
|
@@ -25,7 +25,7 @@ function J(t) {
|
|
|
25
25
|
}), [m, v] = s.useState(null), [R, o] = s.useState(null), n = s.useRef(!1), E = m ? !!f || !!m.closest("form") : (
|
|
26
26
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
27
27
|
!0
|
|
28
|
-
),
|
|
28
|
+
), I = {
|
|
29
29
|
checked: l,
|
|
30
30
|
disabled: e,
|
|
31
31
|
setChecked: x,
|
|
@@ -45,8 +45,8 @@ function J(t) {
|
|
|
45
45
|
X,
|
|
46
46
|
{
|
|
47
47
|
scope: a,
|
|
48
|
-
...
|
|
49
|
-
children: W(i) ? i(
|
|
48
|
+
...I,
|
|
49
|
+
children: W(i) ? i(I) : u
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
@@ -71,7 +71,7 @@ var w = "CheckboxTrigger", B = s.forwardRef(
|
|
|
71
71
|
return o.addEventListener("reset", n), () => o.removeEventListener("reset", n);
|
|
72
72
|
}
|
|
73
73
|
}, [e, i]), /* @__PURE__ */ h(
|
|
74
|
-
|
|
74
|
+
P.button,
|
|
75
75
|
{
|
|
76
76
|
type: "button",
|
|
77
77
|
role: "checkbox",
|
|
@@ -130,7 +130,7 @@ var Q = s.forwardRef(
|
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
132
|
l && /* @__PURE__ */ h(
|
|
133
|
-
|
|
133
|
+
T,
|
|
134
134
|
{
|
|
135
135
|
__scopeCheckbox: c
|
|
136
136
|
}
|
|
@@ -141,15 +141,15 @@ var Q = s.forwardRef(
|
|
|
141
141
|
}
|
|
142
142
|
);
|
|
143
143
|
Q.displayName = _;
|
|
144
|
-
var
|
|
144
|
+
var q = "CheckboxIndicator", V = s.forwardRef(
|
|
145
145
|
(t, a) => {
|
|
146
|
-
const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = g(
|
|
146
|
+
const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = g(q, c);
|
|
147
147
|
return /* @__PURE__ */ h(
|
|
148
148
|
L,
|
|
149
149
|
{
|
|
150
150
|
present: u || b(e.checked) || e.checked === !0,
|
|
151
151
|
children: /* @__PURE__ */ h(
|
|
152
|
-
|
|
152
|
+
P.span,
|
|
153
153
|
{
|
|
154
154
|
"data-state": A(e.checked),
|
|
155
155
|
"data-disabled": e.disabled ? "" : void 0,
|
|
@@ -162,8 +162,8 @@ var M = "CheckboxIndicator", V = s.forwardRef(
|
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
|
-
V.displayName =
|
|
166
|
-
var
|
|
165
|
+
V.displayName = q;
|
|
166
|
+
var M = "CheckboxBubbleInput", T = s.forwardRef(
|
|
167
167
|
({ __scopeCheckbox: t, ...a }, c) => {
|
|
168
168
|
const {
|
|
169
169
|
control: u,
|
|
@@ -177,7 +177,7 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
177
177
|
form: i,
|
|
178
178
|
bubbleInput: l,
|
|
179
179
|
setBubbleInput: x
|
|
180
|
-
} = g(
|
|
180
|
+
} = g(M, t), m = N(c, x), v = z(e), R = j(u);
|
|
181
181
|
s.useEffect(() => {
|
|
182
182
|
const n = l;
|
|
183
183
|
if (!n) return;
|
|
@@ -192,7 +192,7 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
192
192
|
}, [l, v, e, r]);
|
|
193
193
|
const o = s.useRef(b(e) ? !1 : e);
|
|
194
194
|
return /* @__PURE__ */ h(
|
|
195
|
-
|
|
195
|
+
P.input,
|
|
196
196
|
{
|
|
197
197
|
type: "checkbox",
|
|
198
198
|
"aria-hidden": !0,
|
|
@@ -221,7 +221,7 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
|
-
|
|
224
|
+
T.displayName = M;
|
|
225
225
|
function W(t) {
|
|
226
226
|
return typeof t == "function";
|
|
227
227
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { c as N, o as K, n as $, d as J, m as S, A as Q, e as g, b as j, P as Z, a as ee, i as G, D as te, C as oe, h as re, k as ne } from "./index-DL5wn_Sh.js";
|
|
3
3
|
import { jsx as p, jsxs as se } from "react/jsx-runtime";
|
|
4
4
|
var ae = Object.freeze({
|
|
5
5
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
@@ -71,14 +71,14 @@ var R = "Tooltip", [pe, _] = A(R), de = (e) => {
|
|
|
71
71
|
onOpenChange: i,
|
|
72
72
|
disableHoverableContent: l,
|
|
73
73
|
delayDuration: v
|
|
74
|
-
} = e, a = k(R, e.__scopeTooltip), d = D(o), [c, f] = s.useState(null), h = K(), u = s.useRef(0), T = l ?? a.disableHoverableContent, C = v ?? a.delayDuration, y = s.useRef(!1), [
|
|
74
|
+
} = e, a = k(R, e.__scopeTooltip), d = D(o), [c, f] = s.useState(null), h = K(), u = s.useRef(0), T = l ?? a.disableHoverableContent, C = v ?? a.delayDuration, y = s.useRef(!1), [m, x] = $({
|
|
75
75
|
prop: r,
|
|
76
76
|
defaultProp: n ?? !1,
|
|
77
77
|
onChange: (H) => {
|
|
78
78
|
H ? (a.onOpen(), document.dispatchEvent(new CustomEvent(L))) : a.onClose(), i == null || i(H);
|
|
79
79
|
},
|
|
80
80
|
caller: R
|
|
81
|
-
}), w = s.useMemo(() =>
|
|
81
|
+
}), w = s.useMemo(() => m ? y.current ? "delayed-open" : "instant-open" : "closed", [m]), P = s.useCallback(() => {
|
|
82
82
|
window.clearTimeout(u.current), u.current = 0, y.current = !1, x(!0);
|
|
83
83
|
}, [x]), E = s.useCallback(() => {
|
|
84
84
|
window.clearTimeout(u.current), u.current = 0, x(!1);
|
|
@@ -94,7 +94,7 @@ var R = "Tooltip", [pe, _] = A(R), de = (e) => {
|
|
|
94
94
|
{
|
|
95
95
|
scope: o,
|
|
96
96
|
contentId: h,
|
|
97
|
-
open:
|
|
97
|
+
open: m,
|
|
98
98
|
stateAttribute: w,
|
|
99
99
|
trigger: c,
|
|
100
100
|
onTriggerChange: f,
|
|
@@ -122,20 +122,20 @@ var O = "TooltipTrigger", B = s.forwardRef(
|
|
|
122
122
|
"data-state": n.stateAttribute,
|
|
123
123
|
...r,
|
|
124
124
|
ref: a,
|
|
125
|
-
onPointerMove:
|
|
125
|
+
onPointerMove: g(e.onPointerMove, (h) => {
|
|
126
126
|
h.pointerType !== "touch" && !c.current && !i.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
|
|
127
127
|
}),
|
|
128
|
-
onPointerLeave:
|
|
128
|
+
onPointerLeave: g(e.onPointerLeave, () => {
|
|
129
129
|
n.onTriggerLeave(), c.current = !1;
|
|
130
130
|
}),
|
|
131
|
-
onPointerDown:
|
|
131
|
+
onPointerDown: g(e.onPointerDown, () => {
|
|
132
132
|
n.open && n.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
133
133
|
}),
|
|
134
|
-
onFocus:
|
|
134
|
+
onFocus: g(e.onFocus, () => {
|
|
135
135
|
d.current || n.onOpen();
|
|
136
136
|
}),
|
|
137
|
-
onBlur:
|
|
138
|
-
onClick:
|
|
137
|
+
onBlur: g(e.onBlur, n.onClose),
|
|
138
|
+
onClick: g(e.onClick, n.onClose)
|
|
139
139
|
}
|
|
140
140
|
) });
|
|
141
141
|
}
|
|
@@ -158,7 +158,7 @@ var b = "TooltipContent", q = s.forwardRef(
|
|
|
158
158
|
v(null), f(!1);
|
|
159
159
|
}, [f]), u = s.useCallback(
|
|
160
160
|
(T, C) => {
|
|
161
|
-
const y = T.currentTarget,
|
|
161
|
+
const y = T.currentTarget, m = { x: T.clientX, y: T.clientY }, x = xe(m, y.getBoundingClientRect()), w = me(m, x), P = ge(C.getBoundingClientRect()), E = we([...w, ...P]);
|
|
162
162
|
v(E), f(!0);
|
|
163
163
|
},
|
|
164
164
|
[f]
|
|
@@ -173,7 +173,7 @@ var b = "TooltipContent", q = s.forwardRef(
|
|
|
173
173
|
}, [a, c, u, h]), s.useEffect(() => {
|
|
174
174
|
if (l) {
|
|
175
175
|
const T = (C) => {
|
|
176
|
-
const y = C.target,
|
|
176
|
+
const y = C.target, m = { x: C.clientX, y: C.clientY }, x = (a == null ? void 0 : a.contains(y)) || (c == null ? void 0 : c.contains(y)), w = !be(m, l);
|
|
177
177
|
x ? h() : w && (h(), d());
|
|
178
178
|
};
|
|
179
179
|
return document.addEventListener("pointermove", T), () => document.removeEventListener("pointermove", T);
|
|
@@ -257,7 +257,7 @@ function xe(e, o) {
|
|
|
257
257
|
throw new Error("unreachable");
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function me(e, o, t = 5) {
|
|
261
261
|
const r = [];
|
|
262
262
|
switch (o) {
|
|
263
263
|
case "top":
|
|
@@ -287,7 +287,7 @@ function ge(e, o, t = 5) {
|
|
|
287
287
|
}
|
|
288
288
|
return r;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ge(e) {
|
|
291
291
|
const { top: o, right: t, bottom: r, left: n } = e;
|
|
292
292
|
return [
|
|
293
293
|
{ x: n, y: o },
|
|
@@ -338,10 +338,10 @@ var _e = Y, Ae = B, De = U, Le = q, Oe = z;
|
|
|
338
338
|
export {
|
|
339
339
|
Oe as A,
|
|
340
340
|
Le as C,
|
|
341
|
-
|
|
341
|
+
De as P,
|
|
342
342
|
de as T,
|
|
343
343
|
ae as V,
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
_e as a,
|
|
345
|
+
Ae as b,
|
|
346
346
|
V as c
|
|
347
347
|
};
|