@temp-spotwork/ui 1.7.3 → 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.
Files changed (90) hide show
  1. package/dist/{Combination-B1NSOvaC.js → Combination-Cmsu7uVq.js} +1 -1
  2. package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-BVfed4GL.js} +2 -2
  3. package/dist/{addYears-D3POA9ql.js → addYears-BWBSd1NA.js} +1 -1
  4. package/dist/components/atoms/avatar/avatar.js +17 -17
  5. package/dist/components/atoms/conversation/chatheader/chatheader.js +1 -1
  6. package/dist/components/atoms/form/calendar/calendar-date-cell.js +7 -7
  7. package/dist/components/atoms/form/calendar/calendar-month.js +1 -1
  8. package/dist/components/atoms/form/calendar/calendar-utils.js +1 -1
  9. package/dist/components/atoms/form/calendar/calendar.js +1 -1
  10. package/dist/components/atoms/form/calendar/calendar.stories.js +2 -2
  11. package/dist/components/atoms/form/calendar/month-header.js +1 -1
  12. package/dist/components/atoms/form/checkbox/checkbox.js +1 -1
  13. package/dist/components/atoms/form/chips/chips.js +1 -1
  14. package/dist/components/atoms/form/dateselect/date-calendar.js +1 -1
  15. package/dist/components/atoms/form/dateselect/date-dropdown-header.js +1 -1
  16. package/dist/components/atoms/form/dateselect/date-input.js +3 -3
  17. package/dist/components/atoms/form/dateselect/date-month-year-switch.js +1 -1
  18. package/dist/components/atoms/form/dateselect/dateselect.js +4 -4
  19. package/dist/components/atoms/form/dateselect/month-switch.js +3 -3
  20. package/dist/components/atoms/form/dateselect/year-switch.js +4 -4
  21. package/dist/components/atoms/form/dropdown/dropdown.js +2 -2
  22. package/dist/components/atoms/form/dropdown/styles.js +1 -1
  23. package/dist/components/atoms/form/multiselect/multiselect.js +1 -1
  24. package/dist/components/atoms/form/navigation/navigation.js +1 -1
  25. package/dist/components/atoms/form/stepper/stepper.js +1 -1
  26. package/dist/components/atoms/form/switch/switch.js +4 -4
  27. package/dist/components/atoms/form/textarea/rich-textarea.js +1 -1
  28. package/dist/components/atoms/form/textarea/textarea.js +1 -1
  29. package/dist/components/atoms/form/textfield/textfield.js +1 -1
  30. package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +2 -2
  31. package/dist/components/atoms/form/time-picker/time-picker-input.js +2 -2
  32. package/dist/components/atoms/form/time-picker/time-picker.js +1 -1
  33. package/dist/components/atoms/form/time-picker/time-picker.stories.js +1 -1
  34. package/dist/components/atoms/form/timeselect/hours-switch.js +2 -2
  35. package/dist/components/atoms/form/timeselect/minutes-switch.js +2 -2
  36. package/dist/components/atoms/form/timeselect/timeselect.js +1 -1
  37. package/dist/components/atoms/icons/icons.js +6 -6
  38. package/dist/components/atoms/icons/icons.stories.js +1 -1
  39. package/dist/components/atoms/navigation/navigation-item/navigation-item.d.ts +14 -1
  40. package/dist/components/atoms/navigation/navigation-item/navigation-item.js +56 -56
  41. package/dist/components/atoms/small-large-text/SmallLargeText.stories.d.ts +11 -0
  42. package/dist/components/atoms/small-large-text/SmallLargeText.stories.js +60 -0
  43. package/dist/components/atoms/small-large-text/small-large-text.js +22 -12
  44. package/dist/components/atoms/tooltip/tooltip.js +5 -5
  45. package/dist/components/atoms/tooltip/tooltip.stories.js +1 -1
  46. package/dist/components/molecules/alert/alert.js +8 -6
  47. package/dist/components/molecules/conversation/contact/contact.js +1 -1
  48. package/dist/components/molecules/conversation/message-editor/message-editor.js +1 -1
  49. package/dist/components/molecules/datatables/row-header/row-header.js +1 -1
  50. package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +1 -1
  51. package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.js +1 -1
  52. package/dist/components/molecules/dialog/dialog.js +8 -6
  53. package/dist/components/molecules/drawer/drawer.js +14 -12
  54. package/dist/components/molecules/filter/checkbox/checkbox.js +1 -1
  55. package/dist/components/molecules/filter/context-search/context-search.js +1 -1
  56. package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +4 -4
  57. package/dist/components/molecules/filter/date-selector/date-selector.js +4 -4
  58. package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +2 -2
  59. package/dist/components/molecules/filter/dropdown-selector/styles.js +1 -1
  60. package/dist/components/molecules/filter/range-selector/range-selector.js +3 -3
  61. package/dist/components/molecules/filter/range-selector/styles.js +1 -1
  62. package/dist/components/molecules/link/link.js +1 -1
  63. package/dist/components/molecules/navigation/context-menu/context-menu.js +1 -1
  64. package/dist/components/molecules/navigation/menubar/menubar.js +1 -1
  65. package/dist/components/molecules/navigation/sidebar/sidebar.js +28 -31
  66. package/dist/components/molecules/snackbar/Snackbar.stories.js +1 -1
  67. package/dist/components/molecules/snackbar/index.js +1 -1
  68. package/dist/components/molecules/snackbar/snackbar.js +7 -5
  69. package/dist/components/styles/colors/colors.js +1 -1
  70. package/dist/components/styles/typography/typography.js +1 -1
  71. package/dist/{constants-BfMb81ht.js → constants-B4duAnvD.js} +5 -5
  72. package/dist/{format-BwmhcciO.js → format-BuDzOByC.js} +8 -8
  73. package/dist/{index-QKj2bKph.js → index-Bm3lnWO8.js} +23 -23
  74. package/dist/{index-DVNTJNwY.js → index-C8EuuBMC.js} +6 -6
  75. package/dist/{index-B9jfXCBx.js → index-CRTzrqB9.js} +14 -14
  76. package/dist/{index-Bam3aisa.js → index-CSucbNlF.js} +17 -17
  77. package/dist/{index-Ck3lRuRz.js → index-CYMdFyYH.js} +10 -10
  78. package/dist/{index-ByBd5wKB.js → index-C_XRprxd.js} +3 -3
  79. package/dist/{index-DLKZ-XYv.js → index-DL5wn_Sh.js} +20 -20
  80. package/dist/{index-fN7hCOo3.js → index-Y8TYOJJY.js} +1 -1
  81. package/dist/{index-DMvnp-vR.js → index-e0vK3ttb.js} +1 -1
  82. package/dist/{isToday-DmBTkQMq.js → isToday-CO0rX_Nr.js} +2 -2
  83. package/dist/{lodash-CyvSh4lH.js → lodash-Da6oICkd.js} +1 -1
  84. package/dist/main.js +22 -22
  85. package/dist/purify.es-Bxiq5T7l.js +590 -0
  86. package/dist/{react-spring_web.modern-BzbxCya-.js → react-spring_web.modern-CKwWSQke.js} +3 -3
  87. package/dist/{snackbar-BUPlWHWk.js → snackbar-B9zd5z5s.js} +21 -19
  88. package/dist/{startOfToday-BPMZZniU.js → startOfToday-CHlrckpa.js} +1 -1
  89. package/package.json +3 -2
  90. 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 { a as D, c as b, u as Pe, P as xe, j as U, b as le, B as be, e as Re, r as ge, n as Se, g as _e, o as Ie, h as Ae } from "./index-DLKZ-XYv.js";
4
- import { c as Fe } from "./index-ByBd5wKB.js";
5
- import { c as de } from "./index-Bam3aisa.js";
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-fN7hCOo3.js";
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-DMvnp-vR.js";
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,8 +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-BzbxCya-.js";
29
+ import "./react-spring_web.modern-CKwWSQke.js";
29
30
  import "./components/molecules/form/radiogroup/radiogroup.js";
31
+ import "./purify.es-Bxiq5T7l.js";
30
32
  import "./card-Cc2Qkiqr.js";
31
33
  import { getClasses as Le } from "./components/molecules/snackbar/styles.js";
32
34
  var Z = "ToastProvider", [ee, Me, ke] = Fe("Toast"), [pe, Oe] = Re("Toast", [ke]), [Ve, X] = pe(Z), te = (t) => {
@@ -194,7 +196,7 @@ var V = "Toast", He = "toast.swipeStart", We = "toast.swipeMove", Be = "toast.sw
194
196
  caller: V
195
197
  });
196
198
  return /* @__PURE__ */ c(xe, { present: o || m, children: /* @__PURE__ */ c(
197
- je,
199
+ Ye,
198
200
  {
199
201
  open: m,
200
202
  ...p,
@@ -224,7 +226,7 @@ re.displayName = V;
224
226
  var [Xe, $e] = pe(V, {
225
227
  onClose() {
226
228
  }
227
- }), je = n.forwardRef(
229
+ }), Ye = n.forwardRef(
228
230
  (t, r) => {
229
231
  const {
230
232
  __scopeToast: o,
@@ -240,7 +242,7 @@ var [Xe, $e] = pe(V, {
240
242
  onSwipeCancel: L,
241
243
  onSwipeEnd: g,
242
244
  ...S
243
- } = 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: j } = d, F = U(() => {
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(() => {
244
246
  var P;
245
247
  (i == null ? void 0 : i.contains(document.activeElement)) && ((P = d.viewport) == null || P.focus()), p();
246
248
  }), I = n.useCallback(
@@ -264,11 +266,11 @@ var [Xe, $e] = pe(V, {
264
266
  }
265
267
  }, [d.viewport, E, v, s, I]), n.useEffect(() => {
266
268
  l && !d.isClosePausedRef.current && I(E);
267
- }, [l, E, d.isClosePausedRef, I]), n.useEffect(() => (A(), () => j()), [A, j]);
269
+ }, [l, E, d.isClosePausedRef, I]), n.useEffect(() => (A(), () => Y()), [A, Y]);
268
270
  const K = n.useMemo(() => i ? Ee(i) : null, [i]);
269
271
  return d.viewport ? /* @__PURE__ */ N(Q, { children: [
270
272
  K && /* @__PURE__ */ c(
271
- Ye,
273
+ je,
272
274
  {
273
275
  __scopeToast: o,
274
276
  role: "status",
@@ -301,12 +303,12 @@ var [Xe, $e] = pe(V, {
301
303
  }),
302
304
  onPointerMove: b(t.onPointerMove, (a) => {
303
305
  if (!T.current) return;
304
- 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), Y = a.pointerType === "touch" ? 10 : 2, W = { x: he, y: Ce }, ie = { originalEvent: a, delta: W };
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 };
305
307
  k ? (w.current = W, B(We, y, ie, {
306
308
  discrete: !1
307
- })) : ue(W, d.swipeDirection, Y) ? (w.current = W, B(He, x, ie, {
309
+ })) : ue(W, d.swipeDirection, j) ? (w.current = W, B(He, x, ie, {
308
310
  discrete: !1
309
- }), a.target.setPointerCapture(a.pointerId)) : (Math.abs(P) > Y || Math.abs(R) > Y) && (T.current = null);
311
+ }), a.target.setPointerCapture(a.pointerId)) : (Math.abs(P) > j || Math.abs(R) > j) && (T.current = null);
310
312
  }),
311
313
  onPointerUp: b(t.onPointerUp, (a) => {
312
314
  const P = w.current, R = a.target;
@@ -334,7 +336,7 @@ var [Xe, $e] = pe(V, {
334
336
  ) })
335
337
  ] }) : null;
336
338
  }
337
- ), Ye = (t) => {
339
+ ), je = (t) => {
338
340
  const { __scopeToast: r, children: o, ...e } = t, u = X(V, r), [l, p] = n.useState(!1), [m, v] = n.useState(!1);
339
341
  return Ge(() => p(!0)), n.useEffect(() => {
340
342
  const s = window.setTimeout(() => v(!0), 1e3);
@@ -444,7 +446,7 @@ function z(t) {
444
446
  return t.some((o) => o === r ? !0 : (o.focus(), document.activeElement !== r));
445
447
  }
446
448
  var Ze = te, et = oe, ye = re, tt = ne, ot = se, rt = ae, nt = $;
447
- const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
449
+ const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
448
450
  __proto__: null,
449
451
  Action: rt,
450
452
  Close: nt,
@@ -462,7 +464,7 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
462
464
  Viewport: et,
463
465
  createToastScope: Oe
464
466
  }, Symbol.toStringTag, { value: "Module" }));
465
- function kt({
467
+ function Vt({
466
468
  title: t,
467
469
  open: r = !0,
468
470
  setOpen: o,
@@ -495,7 +497,7 @@ function kt({
495
497
  }
496
498
  export {
497
499
  Ze as P,
498
- kt as S,
500
+ Vt as S,
499
501
  et as V,
500
- Mt as i
502
+ Ot as i
501
503
  };
@@ -1,4 +1,4 @@
1
- import { s as t } from "./format-BwmhcciO.js";
1
+ import { s as t } from "./format-BuDzOByC.js";
2
2
  function r() {
3
3
  return t(Date.now());
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@temp-spotwork/ui",
3
3
  "private": false,
4
- "version": "1.7.3",
4
+ "version": "1.7.5",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -14,6 +14,7 @@
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "build": "tsc --p ./tsconfig-build.json && vite build",
17
+ "build:watch": "vite build --watch",
17
18
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
19
  "preview": "vite preview",
19
20
  "prepublishOnly": "npm run build",
@@ -29,7 +30,7 @@
29
30
  "chart.js": "^4.4.2",
30
31
  "classnames": "^2.5.1",
31
32
  "date-fns": "^3.6.0",
32
- "dompurify": "^3.0.11",
33
+ "dompurify": "^3.4.2",
33
34
  "moment-timezone": "^0.6.0",
34
35
  "react": "18.2.0",
35
36
  "react-chartjs-2": "^5.2.0",