@caseparts-org/caseblocks 0.0.52 → 0.0.53

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.
@@ -1 +1 @@
1
- ._categories_1htyk_1{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;margin:0 90px 0 47px}@media (max-width: 1281px){._categories_1htyk_1{display:none}}._category_1htyk_17{list-style:none}._category_1htyk_17 a{color:var(--text-text-primary);font-weight:var(--font-weight-semibold);text-decoration:none;display:flex;flex-direction:row;align-items:center}@media (max-width: 1281px){._category_1htyk_17 a{justify-content:space-between;width:100%}}._category_1htyk_17 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1htyk_17 a path{fill:var(--color-brand-primary-primary-teal-blue)}._submenuTooltip_1htyk_43{list-style:none;padding:var(--spacing-spacing-2xs);margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}
1
+ ._categories_13aed_1{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;margin:0 90px 0 47px}@media (max-width: 1281px){._categories_13aed_1{display:none}}._category_13aed_17{list-style:none}._category_13aed_17 a{color:var(--text-text-primary);font-weight:var(--font-weight-semibold);text-decoration:none;display:flex;flex-direction:row;align-items:center}@media (max-width: 1281px){._category_13aed_17 a{justify-content:space-between;width:100%}}._category_13aed_17 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_13aed_17 a path{fill:var(--color-brand-primary-primary-teal-blue)}._submenuTooltip_13aed_43{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}
@@ -1,24 +1,24 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { c as h } from "../../clsx-OuTLNxxd.js";
3
- import { Text as t } from "../../atoms/Text/Text.js";
4
- import { Link as n } from "../../atoms/Link/Link.js";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { c as a } from "../../clsx-OuTLNxxd.js";
3
+ import { Text as n } from "../../atoms/Text/Text.js";
4
+ import { Link as s } from "../../atoms/Link/Link.js";
5
5
  import { Icon as m } from "../../atoms/Icon/Icon.js";
6
- import { getHideAtStyles as a } from "../../atoms/HideAt.js";
6
+ import { getHideAtStyles as d } from "../../atoms/HideAt.js";
7
7
  import { Tooltip as c } from "../Tooltip/Tooltip.js";
8
- import '../../assets/CategoryNav.css';const d = "_categories_1htyk_1", u = "_category_1htyk_17", p = "_submenuTooltip_1htyk_43", l = {
9
- categories: d,
8
+ import '../../assets/CategoryNav.css';const h = "_categories_13aed_1", u = "_category_13aed_17", p = "_submenuTooltip_13aed_43", l = {
9
+ categories: h,
10
10
  category: u,
11
11
  submenuTooltip: p
12
12
  };
13
13
  function z({
14
14
  categories: o
15
15
  }) {
16
- return !o || o.length === 0 ? null : /* @__PURE__ */ e("ul", { className: h(l.categories, a(["sm"])), children: o.map(
16
+ return !o || o.length === 0 ? null : /* @__PURE__ */ e("ul", { className: a(l.categories, d(["sm"])), children: o.map(
17
17
  (i) => i.children.length > 0 ? /* @__PURE__ */ e(
18
18
  c,
19
19
  {
20
- trigger: /* @__PURE__ */ e("li", { className: l.category, tabIndex: 0, children: /* @__PURE__ */ s(n, { href: i.route, children: [
21
- /* @__PURE__ */ e(t, { size: "sm", weight: "semibold", children: i.label }),
20
+ trigger: /* @__PURE__ */ e("li", { className: l.category, tabIndex: 0, children: /* @__PURE__ */ t(s, { href: i.route, children: [
21
+ /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: i.label }),
22
22
  i.showChevron && /* @__PURE__ */ e(
23
23
  m,
24
24
  {
@@ -29,11 +29,11 @@ function z({
29
29
  )
30
30
  ] }) }),
31
31
  position: "bottom center",
32
- children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(n, { href: r.route, children: /* @__PURE__ */ e(t, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
32
+ children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(s, { href: r.route, children: /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
33
33
  },
34
34
  i.id
35
- ) : /* @__PURE__ */ e("li", { className: l.category, children: /* @__PURE__ */ s(n, { href: i.route, children: [
36
- /* @__PURE__ */ e(t, { size: "sm", weight: "semibold", children: i.label }),
35
+ ) : /* @__PURE__ */ e("li", { className: l.category, children: /* @__PURE__ */ t(s, { href: i.route, children: [
36
+ /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: i.label }),
37
37
  i.showChevron && /* @__PURE__ */ e(
38
38
  m,
39
39
  {
@@ -19,7 +19,7 @@ function Ke() {
19
19
  if (Ee) return O;
20
20
  Ee = 1;
21
21
  var s = T;
22
- function i(n) {
22
+ function a(n) {
23
23
  var t = "https://react.dev/errors/" + n;
24
24
  if (1 < arguments.length) {
25
25
  t += "?args[]=" + encodeURIComponent(arguments[1]);
@@ -30,11 +30,11 @@ function Ke() {
30
30
  }
31
31
  function c() {
32
32
  }
33
- var a = {
33
+ var o = {
34
34
  d: {
35
35
  f: c,
36
36
  r: function() {
37
- throw Error(i(522));
37
+ throw Error(a(522));
38
38
  },
39
39
  D: c,
40
40
  C: c,
@@ -63,37 +63,37 @@ function Ke() {
63
63
  if (typeof t == "string")
64
64
  return t === "use-credentials" ? t : "";
65
65
  }
66
- return O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a, O.createPortal = function(n, t) {
66
+ return O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, O.createPortal = function(n, t) {
67
67
  var l = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
68
68
  if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11)
69
- throw Error(i(299));
69
+ throw Error(a(299));
70
70
  return d(n, t, null, l);
71
71
  }, O.flushSync = function(n) {
72
- var t = p.T, l = a.p;
72
+ var t = p.T, l = o.p;
73
73
  try {
74
- if (p.T = null, a.p = 2, n) return n();
74
+ if (p.T = null, o.p = 2, n) return n();
75
75
  } finally {
76
- p.T = t, a.p = l, a.d.f();
76
+ p.T = t, o.p = l, o.d.f();
77
77
  }
78
78
  }, O.preconnect = function(n, t) {
79
- typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, a.d.C(n, t));
79
+ typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, o.d.C(n, t));
80
80
  }, O.prefetchDNS = function(n) {
81
- typeof n == "string" && a.d.D(n);
81
+ typeof n == "string" && o.d.D(n);
82
82
  }, O.preinit = function(n, t) {
83
83
  if (typeof n == "string" && t && typeof t.as == "string") {
84
- var l = t.as, r = m(l, t.crossOrigin), e = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
85
- l === "style" ? a.d.S(
84
+ var l = t.as, r = m(l, t.crossOrigin), e = typeof t.integrity == "string" ? t.integrity : void 0, i = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
85
+ l === "style" ? o.d.S(
86
86
  n,
87
87
  typeof t.precedence == "string" ? t.precedence : void 0,
88
88
  {
89
89
  crossOrigin: r,
90
90
  integrity: e,
91
- fetchPriority: o
91
+ fetchPriority: i
92
92
  }
93
- ) : l === "script" && a.d.X(n, {
93
+ ) : l === "script" && o.d.X(n, {
94
94
  crossOrigin: r,
95
95
  integrity: e,
96
- fetchPriority: o,
96
+ fetchPriority: i,
97
97
  nonce: typeof t.nonce == "string" ? t.nonce : void 0
98
98
  });
99
99
  }
@@ -105,17 +105,17 @@ function Ke() {
105
105
  t.as,
106
106
  t.crossOrigin
107
107
  );
108
- a.d.M(n, {
108
+ o.d.M(n, {
109
109
  crossOrigin: l,
110
110
  integrity: typeof t.integrity == "string" ? t.integrity : void 0,
111
111
  nonce: typeof t.nonce == "string" ? t.nonce : void 0
112
112
  });
113
113
  }
114
- } else t == null && a.d.M(n);
114
+ } else t == null && o.d.M(n);
115
115
  }, O.preload = function(n, t) {
116
116
  if (typeof n == "string" && typeof t == "object" && t !== null && typeof t.as == "string") {
117
117
  var l = t.as, r = m(l, t.crossOrigin);
118
- a.d.L(n, l, {
118
+ o.d.L(n, l, {
119
119
  crossOrigin: r,
120
120
  integrity: typeof t.integrity == "string" ? t.integrity : void 0,
121
121
  nonce: typeof t.nonce == "string" ? t.nonce : void 0,
@@ -131,14 +131,14 @@ function Ke() {
131
131
  if (typeof n == "string")
132
132
  if (t) {
133
133
  var l = m(t.as, t.crossOrigin);
134
- a.d.m(n, {
134
+ o.d.m(n, {
135
135
  as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
136
136
  crossOrigin: l,
137
137
  integrity: typeof t.integrity == "string" ? t.integrity : void 0
138
138
  });
139
- } else a.d.m(n);
139
+ } else o.d.m(n);
140
140
  }, O.requestFormReset = function(n) {
141
- a.d.r(n);
141
+ o.d.r(n);
142
142
  }, O.unstable_batchedUpdates = function(n, t) {
143
143
  return n(t);
144
144
  }, O.useFormState = function(n, t, l) {
@@ -162,13 +162,13 @@ function We() {
162
162
  return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
163
163
  function s() {
164
164
  }
165
- function i(r) {
165
+ function a(r) {
166
166
  return "" + r;
167
167
  }
168
- function c(r, e, o) {
168
+ function c(r, e, i) {
169
169
  var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
170
170
  try {
171
- i(y);
171
+ a(y);
172
172
  var v = !1;
173
173
  } catch {
174
174
  v = !0;
@@ -176,15 +176,15 @@ function We() {
176
176
  return v && (console.error(
177
177
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
178
178
  typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object"
179
- ), i(y)), {
179
+ ), a(y)), {
180
180
  $$typeof: t,
181
181
  key: y == null ? null : "" + y,
182
182
  children: r,
183
183
  containerInfo: e,
184
- implementation: o
184
+ implementation: i
185
185
  };
186
186
  }
187
- function a(r, e) {
187
+ function o(r, e) {
188
188
  if (r === "font") return "";
189
189
  if (typeof e == "string")
190
190
  return e === "use-credentials" ? e : "";
@@ -228,17 +228,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
228
228
  typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
229
229
  "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
230
230
  ), E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, E.createPortal = function(r, e) {
231
- var o = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
231
+ var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
232
232
  if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
233
233
  throw Error("Target container is not a DOM element.");
234
- return c(r, e, null, o);
234
+ return c(r, e, null, i);
235
235
  }, E.flushSync = function(r) {
236
- var e = l.T, o = n.p;
236
+ var e = l.T, i = n.p;
237
237
  try {
238
238
  if (l.T = null, n.p = 2, r)
239
239
  return r();
240
240
  } finally {
241
- l.T = e, n.p = o, n.d.f() && console.error(
241
+ l.T = e, n.p = i, n.d.f() && console.error(
242
242
  "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
243
243
  );
244
244
  }
@@ -281,8 +281,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
281
281
  "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
282
282
  f(r)
283
283
  ), typeof r == "string" && e && typeof e.as == "string") {
284
- var o = e.as, y = a(o, e.crossOrigin), v = typeof e.integrity == "string" ? e.integrity : void 0, w = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
285
- o === "style" ? n.d.S(
284
+ var i = e.as, y = o(i, e.crossOrigin), v = typeof e.integrity == "string" ? e.integrity : void 0, w = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
285
+ i === "style" ? n.d.S(
286
286
  r,
287
287
  typeof e.precedence == "string" ? e.precedence : void 0,
288
288
  {
@@ -290,7 +290,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
290
290
  integrity: v,
291
291
  fetchPriority: w
292
292
  }
293
- ) : o === "script" && n.d.X(r, {
293
+ ) : i === "script" && n.d.X(r, {
294
294
  crossOrigin: y,
295
295
  integrity: v,
296
296
  fetchPriority: w,
@@ -298,43 +298,43 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
298
298
  });
299
299
  }
300
300
  }, E.preinitModule = function(r, e) {
301
- var o = "";
302
- if (typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && e.as !== "script" && (o += " The `as` option encountered was " + d(e.as) + "."), o)
301
+ var i = "";
302
+ if (typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + d(e.as) + "."), i)
303
303
  console.error(
304
304
  "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
305
- o
305
+ i
306
306
  );
307
307
  else
308
- switch (o = e && typeof e.as == "string" ? e.as : "script", o) {
308
+ switch (i = e && typeof e.as == "string" ? e.as : "script", i) {
309
309
  case "script":
310
310
  break;
311
311
  default:
312
- o = d(o), console.error(
312
+ i = d(i), console.error(
313
313
  'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
314
- o,
314
+ i,
315
315
  r
316
316
  );
317
317
  }
318
- typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (o = a(
318
+ typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = o(
319
319
  e.as,
320
320
  e.crossOrigin
321
321
  ), n.d.M(r, {
322
- crossOrigin: o,
322
+ crossOrigin: i,
323
323
  integrity: typeof e.integrity == "string" ? e.integrity : void 0,
324
324
  nonce: typeof e.nonce == "string" ? e.nonce : void 0
325
325
  })) : e == null && n.d.M(r));
326
326
  }, E.preload = function(r, e) {
327
- var o = "";
328
- if (typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e == null || typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : typeof e.as == "string" && e.as || (o += " The `as` option encountered was " + f(e.as) + "."), o && console.error(
327
+ var i = "";
328
+ if (typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + f(e.as) + "."), i && console.error(
329
329
  'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
330
- o
330
+ i
331
331
  ), typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
332
- o = e.as;
333
- var y = a(
334
- o,
332
+ i = e.as;
333
+ var y = o(
334
+ i,
335
335
  e.crossOrigin
336
336
  );
337
- n.d.L(r, o, {
337
+ n.d.L(r, i, {
338
338
  crossOrigin: y,
339
339
  integrity: typeof e.integrity == "string" ? e.integrity : void 0,
340
340
  nonce: typeof e.nonce == "string" ? e.nonce : void 0,
@@ -347,24 +347,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
347
347
  });
348
348
  }
349
349
  }, E.preloadModule = function(r, e) {
350
- var o = "";
351
- typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && typeof e.as != "string" && (o += " The `as` option encountered was " + f(e.as) + "."), o && console.error(
350
+ var i = "";
351
+ typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + f(e.as) + "."), i && console.error(
352
352
  'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
353
- o
354
- ), typeof r == "string" && (e ? (o = a(
353
+ i
354
+ ), typeof r == "string" && (e ? (i = o(
355
355
  e.as,
356
356
  e.crossOrigin
357
357
  ), n.d.m(r, {
358
358
  as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
359
- crossOrigin: o,
359
+ crossOrigin: i,
360
360
  integrity: typeof e.integrity == "string" ? e.integrity : void 0
361
361
  })) : n.d.m(r));
362
362
  }, E.requestFormReset = function(r) {
363
363
  n.d.r(r);
364
364
  }, E.unstable_batchedUpdates = function(r, e) {
365
365
  return r(e);
366
- }, E.useFormState = function(r, e, o) {
367
- return p().useFormState(r, e, o);
366
+ }, E.useFormState = function(r, e, i) {
367
+ return p().useFormState(r, e, i);
368
368
  }, E.useFormStatus = function() {
369
369
  return p().useHostTransitionStatus();
370
370
  }, E.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
@@ -386,41 +386,41 @@ var Je = K.exports;
386
386
  const Qe = /* @__PURE__ */ qe(Je);
387
387
  function Y() {
388
388
  return Y = Object.assign || function(s) {
389
- for (var i = 1; i < arguments.length; i++) {
390
- var c = arguments[i];
391
- for (var a in c)
392
- Object.prototype.hasOwnProperty.call(c, a) && (s[a] = c[a]);
389
+ for (var a = 1; a < arguments.length; a++) {
390
+ var c = arguments[a];
391
+ for (var o in c)
392
+ Object.prototype.hasOwnProperty.call(c, o) && (s[o] = c[o]);
393
393
  }
394
394
  return s;
395
395
  }, Y.apply(this, arguments);
396
396
  }
397
- var Ze = function(i, c) {
397
+ var Ze = function(a, c) {
398
398
  c === void 0 && (c = !0), x(function() {
399
399
  if (c) {
400
- var a = function(d) {
401
- d.key === "Escape" && i(d);
400
+ var o = function(d) {
401
+ d.key === "Escape" && a(d);
402
402
  };
403
- return document.addEventListener("keyup", a), function() {
404
- c && document.removeEventListener("keyup", a);
403
+ return document.addEventListener("keyup", o), function() {
404
+ c && document.removeEventListener("keyup", o);
405
405
  };
406
406
  }
407
- }, [i, c]);
408
- }, Be = function(i, c) {
407
+ }, [a, c]);
408
+ }, Be = function(a, c) {
409
409
  c === void 0 && (c = !0), x(function() {
410
410
  if (c) {
411
- var a = function() {
412
- i();
411
+ var o = function() {
412
+ a();
413
413
  };
414
- return window.addEventListener("resize", a), function() {
415
- c && window.removeEventListener("resize", a);
414
+ return window.addEventListener("resize", o), function() {
415
+ c && window.removeEventListener("resize", o);
416
416
  };
417
417
  }
418
- }, [i, c]);
419
- }, et = function(i, c, a) {
420
- a === void 0 && (a = !0), x(function() {
421
- if (a) {
418
+ }, [a, c]);
419
+ }, et = function(a, c, o) {
420
+ o === void 0 && (o = !0), x(function() {
421
+ if (o) {
422
422
  var f = function(p) {
423
- var m = Array.isArray(i) ? i : [i], n = !1;
423
+ var m = Array.isArray(a) ? a : [a], n = !1;
424
424
  m.forEach(function(t) {
425
425
  if (!t.current || t.current.contains(p.target)) {
426
426
  n = !0;
@@ -429,16 +429,16 @@ var Ze = function(i, c) {
429
429
  }), p.stopPropagation(), n || c(p);
430
430
  };
431
431
  return document.addEventListener("mousedown", f), document.addEventListener("touchstart", f), function() {
432
- a && (document.removeEventListener("mousedown", f), document.removeEventListener("touchstart", f));
432
+ o && (document.removeEventListener("mousedown", f), document.removeEventListener("touchstart", f));
433
433
  };
434
434
  }
435
- }, [i, c, a]);
436
- }, tt = function(i, c) {
435
+ }, [a, c, o]);
436
+ }, tt = function(a, c) {
437
437
  c === void 0 && (c = !0), x(function() {
438
438
  if (c) {
439
- var a = function(d) {
439
+ var o = function(d) {
440
440
  if (d.keyCode === 9) {
441
- var p, m = i == null || (p = i.current) === null || p === void 0 ? void 0 : p.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'), n = Array.prototype.slice.call(m);
441
+ var p, m = a == null || (p = a.current) === null || p === void 0 ? void 0 : p.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'), n = Array.prototype.slice.call(m);
442
442
  if (n.length === 1) {
443
443
  d.preventDefault();
444
444
  return;
@@ -447,11 +447,11 @@ var Ze = function(i, c) {
447
447
  d.shiftKey && document.activeElement === t ? (d.preventDefault(), l.focus()) : document.activeElement === l && (d.preventDefault(), t.focus());
448
448
  }
449
449
  };
450
- return document.addEventListener("keydown", a), function() {
451
- c && document.removeEventListener("keydown", a);
450
+ return document.addEventListener("keydown", o), function() {
451
+ c && document.removeEventListener("keydown", o);
452
452
  };
453
453
  }
454
- }, [i, c]);
454
+ }, [a, c]);
455
455
  }, rt = typeof window < "u" ? Ve : x, H = {
456
456
  popupContent: {
457
457
  tooltip: {
@@ -490,34 +490,34 @@ var Ze = function(i, c) {
490
490
  zIndex: 999
491
491
  }
492
492
  }
493
- }, nt = ["top left", "top center", "top right", "right top", "right center", "right bottom", "bottom left", "bottom center", "bottom right", "left top", "left center", "left bottom"], ot = function(i, c, a, f, d) {
494
- var p = d.offsetX, m = d.offsetY, n = f ? 8 : 0, t = a.split(" "), l = i.top + i.height / 2, r = i.left + i.width / 2, e = c.height, o = c.width, y = l - e / 2, v = r - o / 2, w = "", R = "0%", k = "0%";
493
+ }, nt = ["top left", "top center", "top right", "right top", "right center", "right bottom", "bottom left", "bottom center", "bottom right", "left top", "left center", "left bottom"], ot = function(a, c, o, f, d) {
494
+ var p = d.offsetX, m = d.offsetY, n = f ? 8 : 0, t = o.split(" "), l = a.top + a.height / 2, r = a.left + a.width / 2, e = c.height, i = c.width, y = l - e / 2, v = r - i / 2, w = "", R = "0%", k = "0%";
495
495
  switch (t[0]) {
496
496
  case "top":
497
- y -= e / 2 + i.height / 2 + n, w = "rotate(180deg) translateX(50%)", R = "100%", k = "50%";
497
+ y -= e / 2 + a.height / 2 + n, w = "rotate(180deg) translateX(50%)", R = "100%", k = "50%";
498
498
  break;
499
499
  case "bottom":
500
- y += e / 2 + i.height / 2 + n, w = "rotate(0deg) translateY(-100%) translateX(-50%)", k = "50%";
500
+ y += e / 2 + a.height / 2 + n, w = "rotate(0deg) translateY(-100%) translateX(-50%)", k = "50%";
501
501
  break;
502
502
  case "left":
503
- v -= o / 2 + i.width / 2 + n, w = " rotate(90deg) translateY(50%) translateX(-25%)", k = "100%", R = "50%";
503
+ v -= i / 2 + a.width / 2 + n, w = " rotate(90deg) translateY(50%) translateX(-25%)", k = "100%", R = "50%";
504
504
  break;
505
505
  case "right":
506
- v += o / 2 + i.width / 2 + n, w = "rotate(-90deg) translateY(-150%) translateX(25%)", R = "50%";
506
+ v += i / 2 + a.width / 2 + n, w = "rotate(-90deg) translateY(-150%) translateX(25%)", R = "50%";
507
507
  break;
508
508
  }
509
509
  switch (t[1]) {
510
510
  case "top":
511
- y = i.top, R = i.height / 2 + "px";
511
+ y = a.top, R = a.height / 2 + "px";
512
512
  break;
513
513
  case "bottom":
514
- y = i.top - e + i.height, R = e - i.height / 2 + "px";
514
+ y = a.top - e + a.height, R = e - a.height / 2 + "px";
515
515
  break;
516
516
  case "left":
517
- v = i.left, k = i.width / 2 + "px";
517
+ v = a.left, k = a.width / 2 + "px";
518
518
  break;
519
519
  case "right":
520
- v = i.left - o + i.width, k = o - i.width / 2 + "px";
520
+ v = a.left - i + a.width, k = i - a.width / 2 + "px";
521
521
  break;
522
522
  }
523
523
  return y = t[0] === "top" ? y - m : y + m, v = t[0] === "left" ? v - p : v + p, {
@@ -527,7 +527,7 @@ var Ze = function(i, c) {
527
527
  arrowLeft: k,
528
528
  arrowTop: R
529
529
  };
530
- }, it = function(i) {
530
+ }, it = function(a) {
531
531
  var c = {
532
532
  top: 0,
533
533
  left: 0,
@@ -536,59 +536,59 @@ var Ze = function(i, c) {
536
536
  /* eslint-disable-next-line no-undef */
537
537
  height: window.innerHeight
538
538
  };
539
- if (typeof i == "string") {
540
- var a = document.querySelector(i);
541
- if (process.env.NODE_ENV !== "production" && a === null)
542
- throw new Error(i + " selector does not exist : keepTooltipInside must be a valid html selector 'class' or 'Id' or a boolean value");
543
- a !== null && (c = a.getBoundingClientRect());
539
+ if (typeof a == "string") {
540
+ var o = document.querySelector(a);
541
+ if (process.env.NODE_ENV !== "production" && o === null)
542
+ throw new Error(a + " selector does not exist : keepTooltipInside must be a valid html selector 'class' or 'Id' or a boolean value");
543
+ o !== null && (c = o.getBoundingClientRect());
544
544
  }
545
545
  return c;
546
- }, at = function(i, c, a, f, d, p) {
546
+ }, at = function(a, c, o, f, d, p) {
547
547
  var m = d.offsetX, n = d.offsetY, t = {
548
548
  arrowLeft: "0%",
549
549
  arrowTop: "0%",
550
550
  left: 0,
551
551
  top: 0,
552
552
  transform: "rotate(135deg)"
553
- }, l = 0, r = it(p), e = Array.isArray(a) ? a : [a];
554
- for ((p || Array.isArray(a)) && (e = [].concat(e, nt)); l < e.length; ) {
555
- t = ot(i, c, e[l], f, {
553
+ }, l = 0, r = it(p), e = Array.isArray(o) ? o : [o];
554
+ for ((p || Array.isArray(o)) && (e = [].concat(e, nt)); l < e.length; ) {
555
+ t = ot(a, c, e[l], f, {
556
556
  offsetX: m,
557
557
  offsetY: n
558
558
  });
559
- var o = {
559
+ var i = {
560
560
  top: t.top,
561
561
  left: t.left,
562
562
  width: c.width,
563
563
  height: c.height
564
564
  };
565
- if (o.top <= r.top || o.left <= r.left || o.top + o.height >= r.top + r.height || o.left + o.width >= r.left + r.width)
565
+ if (i.top <= r.top || i.left <= r.left || i.top + i.height >= r.top + r.height || i.left + i.width >= r.left + r.width)
566
566
  l++;
567
567
  else
568
568
  break;
569
569
  }
570
570
  return t;
571
571
  }, st = 0, ct = function() {
572
- var i = document.getElementById("popup-root");
573
- return i === null && (i = document.createElement("div"), i.setAttribute("id", "popup-root"), document.body.appendChild(i)), i;
574
- }, lt = /* @__PURE__ */ Xe(function(s, i) {
575
- var c = s.trigger, a = c === void 0 ? null : c, f = s.onOpen, d = f === void 0 ? function() {
572
+ var a = document.getElementById("popup-root");
573
+ return a === null && (a = document.createElement("div"), a.setAttribute("id", "popup-root"), document.body.appendChild(a)), a;
574
+ }, lt = /* @__PURE__ */ Xe(function(s, a) {
575
+ var c = s.trigger, o = c === void 0 ? null : c, f = s.onOpen, d = f === void 0 ? function() {
576
576
  } : f, p = s.onClose, m = p === void 0 ? function() {
577
- } : p, n = s.defaultOpen, t = n === void 0 ? !1 : n, l = s.open, r = l === void 0 ? void 0 : l, e = s.disabled, o = e === void 0 ? !1 : e, y = s.nested, v = y === void 0 ? !1 : y, w = s.closeOnDocumentClick, R = w === void 0 ? !0 : w, k = s.repositionOnResize, we = k === void 0 ? !0 : k, W = s.closeOnEscape, Te = W === void 0 ? !0 : W, J = s.on, I = J === void 0 ? ["click"] : J, Q = s.contentStyle, Re = Q === void 0 ? {} : Q, Z = s.arrowStyle, X = Z === void 0 ? {} : Z, B = s.overlayStyle, De = B === void 0 ? {} : B, ee = s.className, A = ee === void 0 ? "" : ee, te = s.position, ke = te === void 0 ? "bottom center" : te, re = s.modal, ne = re === void 0 ? !1 : re, oe = s.lockScroll, ie = oe === void 0 ? !1 : oe, ae = s.arrow, F = ae === void 0 ? !0 : ae, se = s.offsetX, Ce = se === void 0 ? 0 : se, ce = s.offsetY, Le = ce === void 0 ? 0 : ce, le = s.mouseEnterDelay, Pe = le === void 0 ? 100 : le, ue = s.mouseLeaveDelay, Me = ue === void 0 ? 100 : ue, fe = s.keepTooltipInside, Ae = fe === void 0 ? !1 : fe, z = s.children, de = Fe(r || t), D = de[0], pe = de[1], C = N(null), b = N(null), P = N(null), ye = N(null), ve = N("popup-" + ++st), S = ne ? !0 : !a, j = N(0);
577
+ } : p, n = s.defaultOpen, t = n === void 0 ? !1 : n, l = s.open, r = l === void 0 ? void 0 : l, e = s.disabled, i = e === void 0 ? !1 : e, y = s.nested, v = y === void 0 ? !1 : y, w = s.closeOnDocumentClick, R = w === void 0 ? !0 : w, k = s.repositionOnResize, we = k === void 0 ? !0 : k, W = s.closeOnEscape, Te = W === void 0 ? !0 : W, J = s.on, I = J === void 0 ? ["click"] : J, Q = s.contentStyle, Re = Q === void 0 ? {} : Q, Z = s.arrowStyle, X = Z === void 0 ? {} : Z, B = s.overlayStyle, De = B === void 0 ? {} : B, ee = s.className, A = ee === void 0 ? "" : ee, te = s.position, ke = te === void 0 ? "bottom center" : te, re = s.modal, ne = re === void 0 ? !1 : re, oe = s.lockScroll, ie = oe === void 0 ? !1 : oe, ae = s.arrow, F = ae === void 0 ? !0 : ae, se = s.offsetX, Ce = se === void 0 ? 0 : se, ce = s.offsetY, Le = ce === void 0 ? 0 : ce, le = s.mouseEnterDelay, Pe = le === void 0 ? 100 : le, ue = s.mouseLeaveDelay, Me = ue === void 0 ? 100 : ue, fe = s.keepTooltipInside, Ae = fe === void 0 ? !1 : fe, z = s.children, de = Fe(r || t), D = de[0], pe = de[1], C = N(null), b = N(null), P = N(null), ye = N(null), ve = N("popup-" + ++st), S = ne ? !0 : !o, j = N(0);
578
578
  rt(function() {
579
579
  return D ? (ye.current = document.activeElement, ge(), je(), xe()) : Ie(), function() {
580
580
  clearTimeout(j.current);
581
581
  };
582
582
  }, [D]), x(function() {
583
583
  typeof r == "boolean" && (r ? U() : L());
584
- }, [r, o]);
584
+ }, [r, i]);
585
585
  var U = function(u) {
586
- D || o || (pe(!0), setTimeout(function() {
586
+ D || i || (pe(!0), setTimeout(function() {
587
587
  return d(u);
588
588
  }, 0));
589
589
  }, L = function(u) {
590
590
  var _;
591
- !D || o || (pe(!1), S && ((_ = ye.current) === null || _ === void 0 || _.focus()), setTimeout(function() {
591
+ !D || i || (pe(!1), S && ((_ = ye.current) === null || _ === void 0 || _.focus()), setTimeout(function() {
592
592
  return m(u);
593
593
  }, 0));
594
594
  }, V = function(u) {
@@ -611,7 +611,7 @@ var Ze = function(i, c) {
611
611
  var u, _ = b == null || (u = b.current) === null || u === void 0 ? void 0 : u.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'), g = Array.prototype.slice.call(_)[0];
612
612
  g == null || g.focus();
613
613
  };
614
- Ge(i, function() {
614
+ Ge(a, function() {
615
615
  return {
616
616
  open: function() {
617
617
  U();
@@ -636,7 +636,7 @@ var Ze = function(i, c) {
636
636
  }
637
637
  }
638
638
  };
639
- Ze(L, Te), tt(b, D && S), Be(ge, we), et(a ? [b, C] : [b], L, R && !v);
639
+ Ze(L, Te), tt(b, D && S), Be(ge, we), et(o ? [b, C] : [b], L, R && !v);
640
640
  var $e = function() {
641
641
  for (var u = {
642
642
  key: "T",
@@ -657,11 +657,11 @@ var Ze = function(i, c) {
657
657
  u.onFocus = G, u.onBlur = q;
658
658
  break;
659
659
  }
660
- if (typeof a == "function") {
661
- var $ = a(D);
662
- return !!a && T.cloneElement($, u);
660
+ if (typeof o == "function") {
661
+ var $ = o(D);
662
+ return !!o && T.cloneElement($, u);
663
663
  }
664
- return !!a && T.cloneElement(a, u);
664
+ return !!o && T.cloneElement(o, u);
665
665
  }, He = function() {
666
666
  var u = S ? H.popupContent.modal : H.popupContent.tooltip, _ = {
667
667
  className: "popup-content " + (A !== "" ? A.split(" ").map(function(g) {
@@ -716,16 +716,17 @@ const ut = "_content_1wx0f_2", be = {
716
716
  content: ut
717
717
  }, yt = ({
718
718
  tooltipClassName: s,
719
- contentClassName: i,
719
+ contentClassName: a,
720
720
  children: c,
721
- ...a
721
+ ...o
722
722
  }) => /* @__PURE__ */ he(
723
723
  lt,
724
724
  {
725
725
  arrow: !0,
726
- ...a,
726
+ on: o.on ?? "hover",
727
+ ...o,
727
728
  className: Oe(be.tooltip, s),
728
- children: /* @__PURE__ */ he("div", { className: Oe(be.content, i), children: c })
729
+ children: /* @__PURE__ */ he("div", { className: Oe(be.content, a), children: c })
729
730
  }
730
731
  );
731
732
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.52",
4
+ "version": "0.0.53",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",