@orangelogic/design-system 2.147.0 → 2.149.0

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 (104) hide show
  1. package/library/chunks/{asset-link-format.DyUDG8er.js → asset-link-format.Cfj8l9X6.js} +6 -6
  2. package/library/chunks/{button.W0tW1LJ-.js → button.Dxb7AACZ.js} +1 -1
  3. package/library/chunks/{calendar-grid.CvdcwfTo.js → calendar-grid.BWjcZL5W.js} +1 -1
  4. package/library/chunks/{color-swatch-group.BQYOjoiA.js → color-swatch-group.CLoDU6aG.js} +1160 -1129
  5. package/library/chunks/{color-swatch.B7X9wSl2.js → color-swatch.D1HqWocK.js} +1 -1
  6. package/library/chunks/{confirm-popover.DWLFTk2n.js → confirm-popover.Cb-pC5oI.js} +3 -3
  7. package/library/chunks/{date-picker.DTUICGb9.js → date-picker.BGHn6qg8.js} +27 -16
  8. package/library/chunks/date.iWq_pkIk.js +97 -0
  9. package/library/chunks/{dialog.yZCtJRtl.js → dialog.DK0ZZQY3.js} +2 -2
  10. package/library/chunks/{document-viewer.Cr-tkwYo.js → document-viewer.Cr7ARRer.js} +6 -6
  11. package/library/chunks/{dot-pagination.C8dxu87e.js → dot-pagination.CjZm-pju.js} +1 -1
  12. package/library/chunks/{folder-select.CLDy4FKy.js → folder-select.DHnp7EO0.js} +4 -4
  13. package/library/chunks/{header.BJnsijee.js → header.B4IwSY-l.js} +1 -1
  14. package/library/chunks/{i18n.D07sG_CU.js → i18n.S781IU3H.js} +0 -1
  15. package/library/chunks/{icon-button.CaUkGny9.js → icon-button.B-GBGmBo.js} +1 -1
  16. package/library/chunks/{iframe.Bj3JzA9b.js → iframe.BLb7TAM7.js} +1 -1
  17. package/library/chunks/{image.DaYfKRf4.js → image.C1a_eXtI.js} +1 -1
  18. package/library/chunks/{input.CtpPKmen.js → input.eQ-tc3ew.js} +1 -1
  19. package/library/chunks/{option.DoCfNbP9.js → option.Bo4ryyg8.js} +1 -1
  20. package/library/chunks/{pagination.B0VIa8Pm.js → pagination.vaTRiEs-.js} +5 -5
  21. package/library/chunks/{tab-group.CRIY9Wby.js → tab-group.Owu-XQzM.js} +3 -3
  22. package/library/chunks/{tree.uSEgW--4.js → tree.BYD88cAs.js} +1 -1
  23. package/library/components/alert.js +2 -2
  24. package/library/components/asset-link-format.js +3 -3
  25. package/library/components/atoms.js +13 -13
  26. package/library/components/audio.js +2 -2
  27. package/library/components/border-input-group.js +2 -2
  28. package/library/components/breadcrumb.js +1 -1
  29. package/library/components/button.js +2 -2
  30. package/library/components/color-picker.js +3 -3
  31. package/library/components/color-swatch-group.js +3 -3
  32. package/library/components/color-swatch.js +2 -2
  33. package/library/components/confirm-popover.js +4 -4
  34. package/library/components/copy-button.js +1 -1
  35. package/library/components/corner-position-input-group.js +3 -3
  36. package/library/components/date-calendar.js +4 -4
  37. package/library/components/details.js +1 -1
  38. package/library/components/dialog.js +3 -3
  39. package/library/components/document-viewer.js +3 -3
  40. package/library/components/dot-pagination.js +2 -2
  41. package/library/components/drawer.js +2 -2
  42. package/library/components/dropdown.js +2 -2
  43. package/library/components/dynamic-select.js +4 -4
  44. package/library/components/e-chart.js +1 -1
  45. package/library/components/element-clamp.js +2 -2
  46. package/library/components/file-on-demand.js +9 -9
  47. package/library/components/folder-select.js +4 -4
  48. package/library/components/format-bytes.js +1 -1
  49. package/library/components/format-date.js +1 -1
  50. package/library/components/format-number.js +1 -1
  51. package/library/components/format-time.js +1 -1
  52. package/library/components/header.js +2 -2
  53. package/library/components/icon-button.js +2 -2
  54. package/library/components/iframe.js +2 -2
  55. package/library/components/image-comparer.js +1 -1
  56. package/library/components/image.js +2 -2
  57. package/library/components/input.js +2 -2
  58. package/library/components/line-clamp.js +1 -1
  59. package/library/components/masonry.js +3 -3
  60. package/library/components/menu-item.js +1 -1
  61. package/library/components/menu.js +1 -1
  62. package/library/components/molecules.js +3 -3
  63. package/library/components/option.js +2 -2
  64. package/library/components/organisms.js +2 -2
  65. package/library/components/padding-input-group.js +1 -1
  66. package/library/components/pagination.js +6 -6
  67. package/library/components/popup.js +1 -1
  68. package/library/components/position-picker.js +1 -1
  69. package/library/components/progress-bar.js +1 -1
  70. package/library/components/progress-ring.js +1 -1
  71. package/library/components/range.js +1 -1
  72. package/library/components/rating.js +1 -1
  73. package/library/components/relative-time.js +1 -1
  74. package/library/components/select.js +2 -2
  75. package/library/components/shadow-input-group.js +1 -1
  76. package/library/components/share-option-list.js +1 -1
  77. package/library/components/sidebar.js +1 -1
  78. package/library/components/size-input-group.js +3 -3
  79. package/library/components/spinner.js +1 -1
  80. package/library/components/split-panel.js +1 -1
  81. package/library/components/tab-group.js +4 -4
  82. package/library/components/tab.js +2 -2
  83. package/library/components/tag.js +2 -2
  84. package/library/components/tooltip.js +1 -1
  85. package/library/components/tree-item.js +2 -2
  86. package/library/components/tree.js +2 -2
  87. package/library/components/typeface.js +2 -2
  88. package/library/components/types.js +15678 -15655
  89. package/library/components/video.js +2 -2
  90. package/library/package.json +1 -1
  91. package/library/packages/atoms/src/components/image/image.d.ts +1 -1
  92. package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +3 -0
  93. package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +3 -0
  94. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +9 -1
  95. package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +14 -3
  96. package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.d.ts +8 -0
  97. package/library/packages/types/src/date-picker.d.ts +20 -0
  98. package/library/packages/types/src/faceted-filter.d.ts +6 -0
  99. package/library/packages/utils/src/custom-element/i18n.d.ts +0 -1
  100. package/library/packages/utils/src/date/date.d.ts +12 -4
  101. package/library/react-web-component.d.ts +19 -3
  102. package/library/utils.js +104 -103
  103. package/package.json +1 -1
  104. package/library/chunks/date.dSYNLBVO.js +0 -77
package/library/utils.js CHANGED
@@ -2,7 +2,7 @@ import { b as k } from "./chunks/url.-WDYqplj.js";
2
2
  import { R as Ct, U as xt, e as Mt, d as yt, a as St, c as Et, i as At, t as It } from "./chunks/url.-WDYqplj.js";
3
3
  import { j as vt, f as bt, b as Rt, c as Vt, g as Ft, e as kt, i as Ot, a as Yt, h as Nt, m as Ut, d as Pt, r as _t, t as Ht } from "./chunks/toast.NfNkPs5d.js";
4
4
  import { e as Wt, a as Bt, f as $t, g as Gt, d as zt, b as qt, c as Qt, i as Zt, p as jt, s as Jt } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as te, C as ee, e as re, H as ae, R as se, c as oe, h as ne, f as ie, g as le, l as ce, a as ue, p as me, b as fe } from "./chunks/color.LzSGBy7o.js";
5
+ import { d as te, C as ee, e as re, H as ae, R as se, c as oe, h as ne, f as ie, g as le, l as ce, a as ue, p as fe, b as me } from "./chunks/color.LzSGBy7o.js";
6
6
  import { a as ge, b as de, g as pe } from "./chunks/modal.U1QltQKe.js";
7
7
  import { a as Te, p as we, c as Ce, b as xe, s as Me, w as ye } from "./chunks/event.BeKOsirN.js";
8
8
  import { t as Ee } from "./chunks/converters.DkDtLstb.js";
@@ -13,27 +13,27 @@ import { d as Fe } from "./chunks/drag.DXEXVXPv.js";
13
13
  import { f as Oe } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
14
  import { f as O } from "./chunks/form.BSqXLytJ.js";
15
15
  import { F as Ne, c as Ue, g as Pe, v as _e, a as He } from "./chunks/form.BSqXLytJ.js";
16
- import { L as We, r as Be } from "./chunks/i18n.D07sG_CU.js";
16
+ import { L as We, r as Be } from "./chunks/i18n.S781IU3H.js";
17
17
  import { c as Ge, q as ze } from "./chunks/math.DuKzLacZ.js";
18
18
  import { g as Qe, l as Ze, s as je, u as Je } from "./chunks/scroll.xtO5yojm.js";
19
19
  import { j as y } from "./chunks/dom.CU_mBy9D.js";
20
- import { c as tr, d as er, k as rr, a as ar, g as sr, h as or, b as nr, f as ir, i as lr, e as cr, l as ur, s as mr } from "./chunks/dom.CU_mBy9D.js";
20
+ import { c as tr, d as er, k as rr, a as ar, g as sr, h as or, b as nr, f as ir, i as lr, e as cr, l as ur, s as fr } from "./chunks/dom.CU_mBy9D.js";
21
21
  import { H as hr, a as gr, g as dr } from "./chunks/slot.j5oheLJC.js";
22
22
  import { g as Dr, a as Tr } from "./chunks/tabbable.CcMz3mIL.js";
23
23
  import { i as Cr } from "./chunks/user-agent.D9aPuOyL.js";
24
24
  import { w as Mr } from "./chunks/watch.K-dbDP6P.js";
25
- import { C as Sr } from "./chunks/calendar-grid.CvdcwfTo.js";
26
- import { b as Ar, e as Ir, f as Lr, g as vr, a as br, i as Rr, d as Vr, c as Fr, n as kr, p as Or, t as Yr } from "./chunks/date.dSYNLBVO.js";
27
- import { e as c, a as u, D as m } from "./chunks/date-picker.DTUICGb9.js";
28
- import { f as Ur } from "./chunks/content-builder.DZRw6hpX.js";
29
- import { c as _r, f as Hr, e as Xr, b as Wr, g as Br, d as $r, i as Gr, r as zr, a as qr } from "./chunks/image.QVlPFadX.js";
30
- import { b as Zr, e as jr } from "./chunks/waveform.1U9U_0rd.js";
31
- import { a as Kr, b as ta, c as ea, e as ra, d as aa, f as sa, g as oa, r as na, s as ia } from "./chunks/number.CtCaI0T_.js";
32
- import { s as ca } from "./chunks/parse.Cu5nBDTb.js";
33
- import { b as ma, d as fa, e as ha, f as ga, m as da, g as pa, h as Da, l as Ta, p as wa, w as Ca, v as xa, a as Ma, c as ya, s as Sa, r as Ea, o as Aa, t as Ia, n as La, q as va, i as ba, u as Ra } from "./chunks/string.BmBJ_BLT.js";
34
- import { g as Fa, a as ka } from "./chunks/template.ClovJacp.js";
35
- import { c as Ya, f as Na, a as Ua, g as Pa } from "./chunks/time.DWfbnPnM.js";
36
- import { b as Ha } from "./chunks/transformation.DGzjBg6V.js";
25
+ import { C as Sr } from "./chunks/calendar-grid.BWjcZL5W.js";
26
+ import { b as Ar, c as Ir, f as Lr, h as vr, g as br, a as Rr, i as Vr, d as Fr, n as kr, e as Or, p as Yr, t as Nr } from "./chunks/date.iWq_pkIk.js";
27
+ import { f as c, a as u, D as f } from "./chunks/date-picker.BGHn6qg8.js";
28
+ import { f as Pr } from "./chunks/content-builder.DZRw6hpX.js";
29
+ import { c as Hr, f as Xr, e as Wr, b as Br, g as $r, d as Gr, i as zr, r as qr, a as Qr } from "./chunks/image.QVlPFadX.js";
30
+ import { b as jr, e as Jr } from "./chunks/waveform.1U9U_0rd.js";
31
+ import { a as ta, b as ea, c as ra, e as aa, d as sa, f as oa, g as na, r as ia, s as la } from "./chunks/number.CtCaI0T_.js";
32
+ import { s as ua } from "./chunks/parse.Cu5nBDTb.js";
33
+ import { b as ma, d as ha, e as ga, f as da, m as pa, g as Da, h as Ta, l as wa, p as Ca, w as xa, v as Ma, a as ya, c as Sa, s as Ea, r as Aa, o as Ia, t as La, n as va, q as ba, i as Ra, u as Va } from "./chunks/string.BmBJ_BLT.js";
34
+ import { g as ka, a as Oa } from "./chunks/template.ClovJacp.js";
35
+ import { c as Na, f as Ua, a as Pa, g as _a } from "./chunks/time.DWfbnPnM.js";
36
+ import { b as Xa } from "./chunks/transformation.DGzjBg6V.js";
37
37
  function n(t) {
38
38
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
39
39
  return `${e}-${r}-${s}`;
@@ -94,7 +94,7 @@ class G {
94
94
  case c.today:
95
95
  return {
96
96
  fromDate: s,
97
- fromTime: m,
97
+ fromTime: f,
98
98
  toDate: s,
99
99
  toTime: u
100
100
  };
@@ -102,7 +102,7 @@ class G {
102
102
  const a = n(h(r, -1));
103
103
  return {
104
104
  fromDate: a,
105
- fromTime: m,
105
+ fromTime: f,
106
106
  toDate: a,
107
107
  toTime: u
108
108
  };
@@ -110,28 +110,28 @@ class G {
110
110
  case c.last2Days:
111
111
  return {
112
112
  fromDate: n(h(r, -1)),
113
- fromTime: m,
113
+ fromTime: f,
114
114
  toDate: s,
115
115
  toTime: u
116
116
  };
117
117
  case c.last3Days:
118
118
  return {
119
119
  fromDate: n(h(r, -2)),
120
- fromTime: m,
120
+ fromTime: f,
121
121
  toDate: s,
122
122
  toTime: u
123
123
  };
124
124
  case c.last30Days:
125
125
  return {
126
126
  fromDate: n(h(r, -29)),
127
- fromTime: m,
127
+ fromTime: f,
128
128
  toDate: s,
129
129
  toTime: u
130
130
  };
131
131
  case c.next30Days:
132
132
  return {
133
133
  fromDate: s,
134
- fromTime: m,
134
+ fromTime: f,
135
135
  toDate: n(h(r, 30)),
136
136
  toTime: u
137
137
  };
@@ -139,7 +139,7 @@ class G {
139
139
  const a = E(r);
140
140
  return {
141
141
  fromDate: n(a),
142
- fromTime: m,
142
+ fromTime: f,
143
143
  toDate: n(h(a, 6)),
144
144
  toTime: u
145
145
  };
@@ -148,7 +148,7 @@ class G {
148
148
  const a = h(E(r), -7);
149
149
  return {
150
150
  fromDate: n(a),
151
- fromTime: m,
151
+ fromTime: f,
152
152
  toDate: n(h(a, 6)),
153
153
  toTime: u
154
154
  };
@@ -156,7 +156,7 @@ class G {
156
156
  case c.thisMonth:
157
157
  return {
158
158
  fromDate: n(A(r)),
159
- fromTime: m,
159
+ fromTime: f,
160
160
  toDate: n(I(r)),
161
161
  toTime: u
162
162
  };
@@ -164,7 +164,7 @@ class G {
164
164
  const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
165
165
  return {
166
166
  fromDate: n(A(a)),
167
- fromTime: m,
167
+ fromTime: f,
168
168
  toDate: n(I(a)),
169
169
  toTime: u
170
170
  };
@@ -172,7 +172,7 @@ class G {
172
172
  case c.thisQuarter:
173
173
  return {
174
174
  fromDate: n(L(r)),
175
- fromTime: m,
175
+ fromTime: f,
176
176
  toDate: n(v(r)),
177
177
  toTime: u
178
178
  };
@@ -184,7 +184,7 @@ class G {
184
184
  );
185
185
  return {
186
186
  fromDate: n(L(a)),
187
- fromTime: m,
187
+ fromTime: f,
188
188
  toDate: n(v(a)),
189
189
  toTime: u
190
190
  };
@@ -192,7 +192,7 @@ class G {
192
192
  case c.thisHalfYear:
193
193
  return {
194
194
  fromDate: n(b(r)),
195
- fromTime: m,
195
+ fromTime: f,
196
196
  toDate: n(R(r)),
197
197
  toTime: u
198
198
  };
@@ -200,7 +200,7 @@ class G {
200
200
  const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
201
201
  return {
202
202
  fromDate: n(b(a)),
203
- fromTime: m,
203
+ fromTime: f,
204
204
  toDate: n(R(a)),
205
205
  toTime: u
206
206
  };
@@ -208,7 +208,7 @@ class G {
208
208
  case c.thisYear:
209
209
  return {
210
210
  fromDate: `${r.getFullYear()}-01-01`,
211
- fromTime: m,
211
+ fromTime: f,
212
212
  toDate: `${r.getFullYear()}-12-31`,
213
213
  toTime: u
214
214
  };
@@ -216,7 +216,7 @@ class G {
216
216
  const a = r.getFullYear() - 1;
217
217
  return {
218
218
  fromDate: `${a}-01-01`,
219
- fromTime: m,
219
+ fromTime: f,
220
220
  toDate: `${a}-12-31`,
221
221
  toTime: u
222
222
  };
@@ -343,7 +343,7 @@ function at(t, e) {
343
343
  function V(t, e) {
344
344
  if (!t?.document)
345
345
  return !1;
346
- const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (f) => o ? (o.font = `${s} ${f}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
346
+ const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (m) => o ? (o.font = `${s} ${m}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
347
347
  return i(e) !== l;
348
348
  }
349
349
  function st(t, e) {
@@ -357,10 +357,10 @@ function st(t, e) {
357
357
  function Y(t) {
358
358
  const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, s = (a) => {
359
359
  const o = a.fontFamily.toLowerCase(), i = a.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
360
- let f = 0;
361
- return l && (f = 1), p && (f = l ? 3 : 2), {
360
+ let m = 0;
361
+ return l && (m = 1), p && (m = l ? 3 : 2), {
362
362
  family: a.fontFamily,
363
- styleRank: f,
363
+ styleRank: m,
364
364
  weight: Number(a.fontWeight)
365
365
  };
366
366
  };
@@ -453,7 +453,7 @@ function ut(t, e) {
453
453
  s in t && (r[s] = t[s]);
454
454
  }), r;
455
455
  }
456
- function mt(t) {
456
+ function ft(t) {
457
457
  if (!t)
458
458
  return {};
459
459
  let e;
@@ -464,7 +464,7 @@ function mt(t) {
464
464
  }
465
465
  return typeof e != "object" ? {} : e;
466
466
  }
467
- function ft(t, e = !0) {
467
+ function mt(t, e = !0) {
468
468
  if (!t)
469
469
  return [];
470
470
  let r;
@@ -530,14 +530,14 @@ async function* pt({
530
530
  throw new Error("Canvas is required");
531
531
  if (!o)
532
532
  throw new Error("Video is required");
533
- const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: F } = e;
533
+ const { columns: i, frameHeight: l, frameWidth: p, rows: m, spriteCtx: F } = e;
534
534
  try {
535
- for (let g = 0; g < f; g++)
535
+ for (let g = 0; g < m; g++)
536
536
  for (let d = 0; d < i; d++) {
537
537
  const T = g * i + d, D = T * s;
538
538
  if (D >= r)
539
539
  continue;
540
- const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
540
+ const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), M = d === i - 1 && g === m - 1 || D + s >= r;
541
541
  x ? yield { ...x, isLastFrame: M } : (await H(o, D, s), F.drawImage(
542
542
  o,
543
543
  w,
@@ -552,7 +552,7 @@ async function* pt({
552
552
  index: T,
553
553
  isLastFrame: M,
554
554
  row: g,
555
- rows: f,
555
+ rows: m,
556
556
  time: Number(D.toFixed(P)),
557
557
  x: w,
558
558
  y: C
@@ -596,34 +596,33 @@ export {
596
596
  Te as animateTo,
597
597
  k as appendProtocol,
598
598
  St as appendQueryParam,
599
- Ha as buildTransformationString,
600
- Zr as buildWaveformPath,
601
- _r as calculateAspectRatioFit,
599
+ Xa as buildTransformationString,
600
+ jr as buildWaveformPath,
601
+ Hr as calculateAspectRatioFit,
602
602
  Ge as clamp,
603
- Hr as cleanImageFileName,
604
- Ya as clearZeroDurationParts,
603
+ Xr as cleanImageFileName,
604
+ Na as clearZeroDurationParts,
605
605
  oe as convertColor,
606
- Kr as convertDataUnits,
607
- ta as convertDurationToMilliseconds,
608
- ea as convertPixelsToAspectRatio,
609
- Xr as convertSrcToBlob,
610
- Wr as cropImage,
606
+ ta as convertDataUnits,
607
+ ea as convertDurationToMilliseconds,
608
+ ra as convertPixelsToAspectRatio,
609
+ Wr as convertSrcToBlob,
610
+ Br as cropImage,
611
611
  tr as cssValueToPx,
612
612
  Ie as customElement,
613
613
  Ue as customErrorValidityState,
614
614
  ve as debounce,
615
615
  Re as defaultValue,
616
- Ir as displayToIso,
617
616
  J as downloadAsset,
618
617
  Fe as drag,
619
618
  ma as emptyToSpace,
620
619
  ne as extractColor,
621
- fa as extractExtension,
620
+ ha as extractExtension,
622
621
  pt as extractFrames,
623
- ha as extractRootData,
624
- ra as extractValueAndUnit,
625
- jr as extractWaveformPeaks,
626
- Ur as fetchCortexApi,
622
+ ga as extractRootData,
623
+ aa as extractValueAndUnit,
624
+ Jr as extractWaveformPeaks,
625
+ Pr as fetchCortexApi,
627
626
  Wt as findAncestorWithBuggyStyle,
628
627
  Bt as findContainingBlock,
629
628
  $t as findCuttingAncestor,
@@ -631,49 +630,51 @@ export {
631
630
  bt as findIndexByProp,
632
631
  Oe as focusWhenVisible,
633
632
  O as formCollections,
634
- aa as formatAspectRatioString,
635
- Na as formatDurationPartsManually,
633
+ sa as formatAspectRatioString,
634
+ Ua as formatDurationPartsManually,
635
+ Ir as formatIsoToDisplay,
636
636
  Lr as formatMonthYearLabel,
637
- sa as formatNumberWithGrouping,
638
- ga as formatSecondsToTime,
639
- da as formatTimeToSeconds,
640
- Ua as formatWithIntlDurationFormat,
641
- oa as gcd,
637
+ oa as formatNumberWithGrouping,
638
+ da as formatSecondsToTime,
639
+ pa as formatTimeToSeconds,
640
+ Pa as formatWithIntlDurationFormat,
641
+ na as gcd,
642
642
  er as getActiveElement,
643
643
  de as getActiveModals,
644
644
  Pe as getAssociatedForm,
645
645
  Rt as getBreakpointsFromCSS,
646
646
  ot as getBrowserFontVariants,
647
647
  ie as getColorType,
648
- Br as getContainedImageSize,
648
+ $r as getContainedImageSize,
649
649
  rr as getCortexPopupLayer,
650
650
  y as getCurrentZIndex,
651
+ vr as getDateMask,
651
652
  pe as getDeepestActiveElement,
652
653
  Vt as getDeviceType,
653
- Pa as getDurationPartsByUnitsFormat,
654
+ _a as getDurationPartsByUnitsFormat,
654
655
  ar as getElementFromHTMLString,
655
656
  sr as getElementFromTemplate,
656
- vr as getFirstDayOfWeek,
657
+ br as getFirstDayOfWeek,
657
658
  at as getFontFamilyOptionValue,
658
659
  N as getFormControls,
659
- Fa as getHighlightedTitle,
660
- ka as getHighlightedTitleHtml,
660
+ ka as getHighlightedTitle,
661
+ Oa as getHighlightedTitleHtml,
661
662
  gr as getInnerHTML,
662
663
  Dt as getInterval,
663
664
  le as getLightDarkCssString,
664
- $r as getNaturalWidthHeight,
665
+ Gr as getNaturalWidthHeight,
665
666
  or as getNeededPaddingForBoxShadow,
666
667
  Gt as getNextAncestor,
667
668
  Qe as getOffset,
668
669
  nr as getRelativeClickPercentage,
669
- pa as getRootIDString,
670
+ Da as getRootIDString,
670
671
  Dr as getTabbableBoundary,
671
672
  Tr as getTabbableElements,
672
673
  dr as getTextContent,
673
- br as getTodayIsoDate,
674
+ Rr as getTodayIsoDate,
674
675
  rt as getTypefaceOptionValue,
675
676
  Ft as groupBy,
676
- Da as htmlToPlainText,
677
+ Ta as htmlToPlainText,
677
678
  kt as insertAtIndex,
678
679
  dt as insertFrameToCache,
679
680
  Ot as insertMultipleAtIndex,
@@ -685,16 +686,15 @@ export {
685
686
  qt as isFirefox,
686
687
  st as isFontFamilyAvailable,
687
688
  it as isFormInteracted,
688
- Ta as isGalleryItemCardType,
689
+ wa as isGalleryItemCardType,
689
690
  Qt as isIOS,
690
691
  cr as isInElement,
691
692
  et as isModKey,
692
693
  Zt as isSafari,
693
- Gr as isSaveSrcValid,
694
- Rr as isValidIsoDate,
694
+ zr as isSaveSrcValid,
695
+ Vr as isValidIsoDate,
695
696
  At as isValidUrl,
696
- Vr as isoToDate,
697
- Fr as isoToDisplay,
697
+ Fr as isoToDate,
698
698
  z as isoWeekNumber,
699
699
  ur as loadScript,
700
700
  Ze as lockBodyScrolling,
@@ -707,53 +707,54 @@ export {
707
707
  q as openAssetOverview,
708
708
  Q as openFolderOverview,
709
709
  Z as openLink,
710
- wa as padPath,
711
- Ca as parseBooleanString,
710
+ Ca as padPath,
711
+ xa as parseBooleanString,
712
712
  ue as parseBorder,
713
+ Or as parseDisplayToIso,
713
714
  we as parseDuration,
714
- Or as parseIsoDate,
715
- mt as parseJsonString,
716
- me as parseLightDark,
717
- ft as parseListString,
718
- fe as parseShadow,
715
+ Yr as parseIsoDate,
716
+ ft as parseJsonString,
717
+ fe as parseLightDark,
718
+ mt as parseListString,
719
+ me as parseShadow,
719
720
  ut as pick,
720
721
  jt as popoverSupported,
721
722
  Ce as prefersReducedMotion,
722
723
  ze as quantizeLargestRemainder,
723
724
  ht as readLocalStorageValue,
724
- xa as reducePathToDirectChild,
725
+ Ma as reducePathToDirectChild,
725
726
  Be as registerTranslation,
726
727
  Pt as removeAtIndex,
727
728
  _t as removeMultipleAtIndex,
728
- zr as resizeImage,
729
- na as rotateBox,
730
- qr as rotateImage,
731
- Ma as safeExtension,
732
- ya as safeString,
733
- Sa as sanitizeHTML,
734
- ia as sanitizeRotation,
729
+ qr as resizeImage,
730
+ ia as rotateBox,
731
+ Qr as rotateImage,
732
+ ya as safeExtension,
733
+ Sa as safeString,
734
+ Ea as sanitizeHTML,
735
+ la as sanitizeRotation,
735
736
  je as scrollIntoView,
736
737
  nt as serialize,
737
738
  j as shareAsset,
738
739
  xe as shimKeyframesHeightAuto,
739
- mr as sortByTopPosition,
740
+ fr as sortByTopPosition,
740
741
  Y as sortTypefaceVariants,
741
- ca as splitBoxValues,
742
- Ea as splitCamelCaseFormatted,
742
+ ua as splitBoxValues,
743
+ Aa as splitCamelCaseFormatted,
743
744
  Me as stopAnimations,
744
745
  Jt as supportHLS,
745
746
  V as testFontAvailability,
746
747
  Ee as timecodeConverter,
747
- Aa as toCamelCase,
748
- Yr as toIsoDate,
749
- Ia as toKebabCase,
750
- La as toPascalCase,
748
+ Ia as toCamelCase,
749
+ Nr as toIsoDate,
750
+ La as toKebabCase,
751
+ va as toPascalCase,
751
752
  It as toRelativeUrl,
752
- va as toTitleCase,
753
+ ba as toTitleCase,
753
754
  Ht as toast,
754
- ba as truncateTextMiddle,
755
+ Ra as truncateTextMiddle,
755
756
  Je as unlockBodyScrolling,
756
- Ra as upperFirst,
757
+ Va as upperFirst,
757
758
  _e as validValidityState,
758
759
  He as valueMissingValidityState,
759
760
  ye as waitForEvent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.147.0",
4
+ "version": "2.149.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -1,77 +0,0 @@
1
- const i = /^\d{4}-\d{2}-\d{2}$/;
2
- function o(t) {
3
- if (!i.test(t))
4
- return !1;
5
- const [n, e, r] = t.split("-").map(Number), a = new Date(n, e - 1, r);
6
- return a.getFullYear() === n && a.getMonth() === e - 1 && a.getDate() === r;
7
- }
8
- function s(t, n, e) {
9
- return [
10
- String(t).padStart(4, "0"),
11
- String(n).padStart(2, "0"),
12
- String(e).padStart(2, "0")
13
- ].join("-");
14
- }
15
- function u(t) {
16
- const [n, e, r] = t.split("-").map(Number);
17
- return { day: r, month: e, year: n };
18
- }
19
- function D(t) {
20
- if (!o(t))
21
- return;
22
- const { day: n, month: e, year: r } = u(t);
23
- return new Date(r, e - 1, n);
24
- }
25
- function f(t) {
26
- if (!t)
27
- return "";
28
- const [n, e, r] = t.split("-");
29
- return `${r}-${e}-${n}`;
30
- }
31
- function g(t) {
32
- const n = t.split("-");
33
- if (n.length !== 3 || n[2].length < 4)
34
- return "";
35
- const [e, r, a] = n;
36
- return `${a}-${r}-${e}`;
37
- }
38
- function l() {
39
- const t = /* @__PURE__ */ new Date();
40
- return s(t.getFullYear(), t.getMonth() + 1, t.getDate());
41
- }
42
- function m(t, n, e) {
43
- const r = new Date(t, n - 1 + e, 1);
44
- return { month: r.getMonth() + 1, year: r.getFullYear() };
45
- }
46
- function p(t, n) {
47
- return new Date(t, n - 1, 1).toLocaleDateString("en-US", {
48
- month: "long",
49
- year: "numeric"
50
- });
51
- }
52
- function y(t, n) {
53
- return new Date(t, n - 1, 1).getDay();
54
- }
55
- const c = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/;
56
- function d(t) {
57
- const n = new Date(t);
58
- return isNaN(n.getTime()) ? null : s(n.getFullYear(), n.getMonth() + 1, n.getDate());
59
- }
60
- function h(t) {
61
- return t ? o(t) ? t : c.test(t) ? d(t) : (console.warn(
62
- `[normalizeToIsoDate] Unsupported date format: "${t}". Expected YYYY-MM-DD or ISO UTC datetime (e.g. 2026-06-05T00:00:00.000Z).`
63
- ), null) : null;
64
- }
65
- export {
66
- l as a,
67
- m as b,
68
- f as c,
69
- D as d,
70
- g as e,
71
- p as f,
72
- y as g,
73
- o as i,
74
- h as n,
75
- u as p,
76
- s as t
77
- };