@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,8 +1,8 @@
|
|
|
1
1
|
import { jsx as c, jsxs as N, Fragment as Q } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { c as Fe } from "./index-
|
|
5
|
-
import { c as de } from "./index-
|
|
3
|
+
import { c as D, e as b, n as Pe, b as xe, u as U, m as le, B as be, h as Re, r as ge, R as Se, P as _e, l as Ie, p as Ae } from "./index-DL5wn_Sh.js";
|
|
4
|
+
import { c as Fe } from "./index-C_XRprxd.js";
|
|
5
|
+
import { c as de } from "./index-CSucbNlF.js";
|
|
6
6
|
import "./components/styles/tailwind-config/index.js";
|
|
7
7
|
import { Typography as Ne } from "./components/styles/typography/typography.js";
|
|
8
8
|
import "./components/styles/colors/colors.js";
|
|
@@ -10,13 +10,14 @@ import "./components/styles/colors/colormap.js";
|
|
|
10
10
|
import { Icons as ce } from "./components/atoms/icons/icons.js";
|
|
11
11
|
import "./components/atoms/icons/iconsSVGs/Large/Profile.js";
|
|
12
12
|
import "./components/atoms/icons/iconsSVGs/Small/Profile.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-Y8TYOJJY.js";
|
|
14
|
+
import "./components/atoms/navigation/navigation-item/navigation-item.js";
|
|
14
15
|
import "./components/atoms/form/dateselect/dateselect.js";
|
|
15
16
|
import "./components/atoms/form/time-picker/time-picker.js";
|
|
16
17
|
import "./components/atoms/form/dropdown/dropdown.js";
|
|
17
18
|
import "./components/molecules/filter/dropdown-selector/styles.js";
|
|
18
19
|
import "./components/atoms/form/dropdown-search/dropdown-search.js";
|
|
19
|
-
import "./index-
|
|
20
|
+
import "./index-e0vK3ttb.js";
|
|
20
21
|
import "./components/atoms/form/textfield/textfield.js";
|
|
21
22
|
import "./components/atoms/form/stepper/stepper.js";
|
|
22
23
|
import "./components/atoms/form/textarea/textarea.js";
|
|
@@ -25,9 +26,9 @@ import "./components/atoms/form/timeselect/timeselect.js";
|
|
|
25
26
|
import { Button as De } from "./components/molecules/button/button.js";
|
|
26
27
|
import "./components/molecules/datatables/cell/cell.js";
|
|
27
28
|
import "./components/molecules/dataviz/donut-chart/donut-chart.js";
|
|
28
|
-
import "./react-spring_web.modern-
|
|
29
|
+
import "./react-spring_web.modern-CKwWSQke.js";
|
|
29
30
|
import "./components/molecules/form/radiogroup/radiogroup.js";
|
|
30
|
-
import "./purify.es-
|
|
31
|
+
import "./purify.es-Bxiq5T7l.js";
|
|
31
32
|
import "./card-Cc2Qkiqr.js";
|
|
32
33
|
import { getClasses as Le } from "./components/molecules/snackbar/styles.js";
|
|
33
34
|
var Z = "ToastProvider", [ee, Me, ke] = Fe("Toast"), [pe, Oe] = Re("Toast", [ke]), [Ve, X] = pe(Z), te = (t) => {
|
|
@@ -195,7 +196,7 @@ var V = "Toast", He = "toast.swipeStart", We = "toast.swipeMove", Be = "toast.sw
|
|
|
195
196
|
caller: V
|
|
196
197
|
});
|
|
197
198
|
return /* @__PURE__ */ c(xe, { present: o || m, children: /* @__PURE__ */ c(
|
|
198
|
-
|
|
199
|
+
Ye,
|
|
199
200
|
{
|
|
200
201
|
open: m,
|
|
201
202
|
...p,
|
|
@@ -225,7 +226,7 @@ re.displayName = V;
|
|
|
225
226
|
var [Xe, $e] = pe(V, {
|
|
226
227
|
onClose() {
|
|
227
228
|
}
|
|
228
|
-
}),
|
|
229
|
+
}), Ye = n.forwardRef(
|
|
229
230
|
(t, r) => {
|
|
230
231
|
const {
|
|
231
232
|
__scopeToast: o,
|
|
@@ -241,7 +242,7 @@ var [Xe, $e] = pe(V, {
|
|
|
241
242
|
onSwipeCancel: L,
|
|
242
243
|
onSwipeEnd: g,
|
|
243
244
|
...S
|
|
244
|
-
} = t, d = X(V, o), [i, h] = n.useState(null), f = le(r, (a) => h(a)), T = n.useRef(null), w = n.useRef(null), E = u || d.duration, C = n.useRef(0), _ = n.useRef(E), M = n.useRef(0), { onToastAdd: A, onToastRemove:
|
|
245
|
+
} = t, d = X(V, o), [i, h] = n.useState(null), f = le(r, (a) => h(a)), T = n.useRef(null), w = n.useRef(null), E = u || d.duration, C = n.useRef(0), _ = n.useRef(E), M = n.useRef(0), { onToastAdd: A, onToastRemove: Y } = d, F = U(() => {
|
|
245
246
|
var P;
|
|
246
247
|
(i == null ? void 0 : i.contains(document.activeElement)) && ((P = d.viewport) == null || P.focus()), p();
|
|
247
248
|
}), I = n.useCallback(
|
|
@@ -265,11 +266,11 @@ var [Xe, $e] = pe(V, {
|
|
|
265
266
|
}
|
|
266
267
|
}, [d.viewport, E, v, s, I]), n.useEffect(() => {
|
|
267
268
|
l && !d.isClosePausedRef.current && I(E);
|
|
268
|
-
}, [l, E, d.isClosePausedRef, I]), n.useEffect(() => (A(), () =>
|
|
269
|
+
}, [l, E, d.isClosePausedRef, I]), n.useEffect(() => (A(), () => Y()), [A, Y]);
|
|
269
270
|
const K = n.useMemo(() => i ? Ee(i) : null, [i]);
|
|
270
271
|
return d.viewport ? /* @__PURE__ */ N(Q, { children: [
|
|
271
272
|
K && /* @__PURE__ */ c(
|
|
272
|
-
|
|
273
|
+
je,
|
|
273
274
|
{
|
|
274
275
|
__scopeToast: o,
|
|
275
276
|
role: "status",
|
|
@@ -302,12 +303,12 @@ var [Xe, $e] = pe(V, {
|
|
|
302
303
|
}),
|
|
303
304
|
onPointerMove: b(t.onPointerMove, (a) => {
|
|
304
305
|
if (!T.current) return;
|
|
305
|
-
const P = a.clientX - T.current.x, R = a.clientY - T.current.y, k = !!w.current, O = ["left", "right"].includes(d.swipeDirection), H = ["left", "up"].includes(d.swipeDirection) ? Math.min : Math.max, he = O ? H(0, P) : 0, Ce = O ? 0 : H(0, R),
|
|
306
|
+
const P = a.clientX - T.current.x, R = a.clientY - T.current.y, k = !!w.current, O = ["left", "right"].includes(d.swipeDirection), H = ["left", "up"].includes(d.swipeDirection) ? Math.min : Math.max, he = O ? H(0, P) : 0, Ce = O ? 0 : H(0, R), j = a.pointerType === "touch" ? 10 : 2, W = { x: he, y: Ce }, ie = { originalEvent: a, delta: W };
|
|
306
307
|
k ? (w.current = W, B(We, y, ie, {
|
|
307
308
|
discrete: !1
|
|
308
|
-
})) : ue(W, d.swipeDirection,
|
|
309
|
+
})) : ue(W, d.swipeDirection, j) ? (w.current = W, B(He, x, ie, {
|
|
309
310
|
discrete: !1
|
|
310
|
-
}), a.target.setPointerCapture(a.pointerId)) : (Math.abs(P) >
|
|
311
|
+
}), a.target.setPointerCapture(a.pointerId)) : (Math.abs(P) > j || Math.abs(R) > j) && (T.current = null);
|
|
311
312
|
}),
|
|
312
313
|
onPointerUp: b(t.onPointerUp, (a) => {
|
|
313
314
|
const P = w.current, R = a.target;
|
|
@@ -335,7 +336,7 @@ var [Xe, $e] = pe(V, {
|
|
|
335
336
|
) })
|
|
336
337
|
] }) : null;
|
|
337
338
|
}
|
|
338
|
-
),
|
|
339
|
+
), je = (t) => {
|
|
339
340
|
const { __scopeToast: r, children: o, ...e } = t, u = X(V, r), [l, p] = n.useState(!1), [m, v] = n.useState(!1);
|
|
340
341
|
return Ge(() => p(!0)), n.useEffect(() => {
|
|
341
342
|
const s = window.setTimeout(() => v(!0), 1e3);
|
|
@@ -445,7 +446,7 @@ function z(t) {
|
|
|
445
446
|
return t.some((o) => o === r ? !0 : (o.focus(), document.activeElement !== r));
|
|
446
447
|
}
|
|
447
448
|
var Ze = te, et = oe, ye = re, tt = ne, ot = se, rt = ae, nt = $;
|
|
448
|
-
const
|
|
449
|
+
const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
449
450
|
__proto__: null,
|
|
450
451
|
Action: rt,
|
|
451
452
|
Close: nt,
|
|
@@ -463,7 +464,7 @@ const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
463
464
|
Viewport: et,
|
|
464
465
|
createToastScope: Oe
|
|
465
466
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
466
|
-
function
|
|
467
|
+
function Vt({
|
|
467
468
|
title: t,
|
|
468
469
|
open: r = !0,
|
|
469
470
|
setOpen: o,
|
|
@@ -496,7 +497,7 @@ function Ot({
|
|
|
496
497
|
}
|
|
497
498
|
export {
|
|
498
499
|
Ze as P,
|
|
499
|
-
|
|
500
|
+
Vt as S,
|
|
500
501
|
et as V,
|
|
501
|
-
|
|
502
|
+
Ot as i
|
|
502
503
|
};
|