@orangelogic/design-system 3.24.0 → 3.26.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.
package/library/utils.js CHANGED
@@ -3,7 +3,7 @@ import { R as Et, f as It, g as Lt, h as Ft, U as Rt, a as Ot, d as vt, c as bt,
3
3
  import { e as Yt, f as Pt, g as Wt, c as Xt, i as Ht, a as Bt, d as Gt, m as $t, b as zt, r as qt, t as Qt } from "./chunks/toast.D3AW3RWv.js";
4
4
  import { e as Zt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
5
5
  import { k as le, e as ce, m as ue, H as fe, R as me, d as he, o as ge, g as de, f as pe, n as De, h as Te, l as Se, i as we, p as Me, j as ye } from "./chunks/color.CIHdfM_a.js";
6
- import { a as xe, g as Ae } from "./chunks/active-elements.jTVWtBDp.js";
6
+ import { a as Ae, g as xe } from "./chunks/active-elements.jTVWtBDp.js";
7
7
  import { a as Ie, p as Le, c as Fe, b as Re, s as Oe, w as ve } from "./chunks/event.BeKOsirN.js";
8
8
  import { t as Ve } from "./chunks/converters.DkDtLstb.js";
9
9
  import { c as ke } from "./chunks/custom-element.L4WJXn1j.js";
@@ -18,7 +18,7 @@ import { c as er, q as rr } from "./chunks/math.DuKzLacZ.js";
18
18
  import { g as sr } from "./chunks/modal.Ct0bJBSe.js";
19
19
  import { g as nr, l as ir, s as lr, u as cr } from "./chunks/scroll.xtO5yojm.js";
20
20
  import { k as C } from "./chunks/dom.D0lSUoEI.js";
21
- import { c as fr, d as mr, h as hr, m as gr, a as dr, g as pr, j as Dr, b as Tr, f as Sr, i as wr, e as Mr, l as yr, r as Cr, s as xr } from "./chunks/dom.D0lSUoEI.js";
21
+ import { c as fr, d as mr, h as hr, m as gr, a as dr, g as pr, j as Dr, b as Tr, f as Sr, i as wr, e as Mr, l as yr, r as Cr, s as Ar } from "./chunks/dom.D0lSUoEI.js";
22
22
  import { H as Er, a as Ir, g as Lr } from "./chunks/slot.j5oheLJC.js";
23
23
  import { a as Rr, g as Or } from "./chunks/tabbable.BwnZBHrm.js";
24
24
  import { i as br } from "./chunks/user-agent.D9aPuOyL.js";
@@ -28,26 +28,26 @@ import { b as Yr, c as Pr, f as Wr, h as Xr, g as Hr, a as Br, i as Gr, d as $r,
28
28
  import { f as c, a as u, D as f } from "./chunks/date-picker.BGHn6qg8.js";
29
29
  import { i as Jr, A as Kr, j as ta, S as ea, a as ra, g as aa, b as sa, e as oa, d as na, f as ia, h as la, k as ca, p as ua, r as fa, c as ma } from "./chunks/transformation.BwQ_H-4q.js";
30
30
  import { M as ga, c as da, e as pa, i as Da, n as Ta, p as Sa, b as wa, s as Ma, d as ya } from "./chunks/gradient.CIzq8fOU.js";
31
- import { c as xa, f as Aa, e as Ea, b as Ia, g as La, d as Fa, i as Ra, r as Oa, a as va } from "./chunks/image.Y5c_hFx8.js";
31
+ import { c as Aa, f as xa, e as Ea, b as Ia, g as La, d as Fa, i as Ra, r as Oa, a as va } from "./chunks/image.Y5c_hFx8.js";
32
32
  import { b as Va, e as _a } from "./chunks/waveform.1U9U_0rd.js";
33
33
  import { c as Ua, b as Na, a as Ya, e as Pa, d as Wa, f as Xa, g as Ha, r as Ba, s as Ga } from "./chunks/number.Cx2ncfJJ.js";
34
34
  import { s as za } from "./chunks/parse.Cu5nBDTb.js";
35
- import { g as Qa, a as ja } from "./chunks/responsive.BmBJSzC4.js";
36
- import { b as Ja, n as Ka, d as ts, e as es, f as rs, y as as, o as ss, g as os, h as ns, l as is, p as ls, z as cs, x as us, a as fs, c as ms, s as hs, w as gs, r as ds, t as ps, q as Ds, v as Ts, i as Ss, m as ws, u as Ms } from "./chunks/string.CfI2ejyR.js";
37
- import { g as Cs, a as xs } from "./chunks/template.ClovJacp.js";
38
- import { c as Es, f as Is, a as Ls, g as Fs } from "./chunks/time.DYWuX2id.js";
35
+ import { D as Qa, g as ja, a as Za } from "./chunks/responsive.DqF_v1XY.js";
36
+ import { b as Ka, n as ts, d as es, e as rs, f as as, y as ss, o as os, g as ns, h as is, l as ls, p as cs, z as us, x as fs, a as ms, c as hs, s as gs, w as ds, r as ps, t as Ds, q as Ts, v as Ss, i as ws, m as Ms, u as ys } from "./chunks/string.CfI2ejyR.js";
37
+ import { g as As, a as xs } from "./chunks/template.ClovJacp.js";
38
+ import { c as Is, f as Ls, a as Fs, g as Rs } from "./chunks/time.DYWuX2id.js";
39
39
  function n(t) {
40
40
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
41
41
  return `${e}-${r}-${a}`;
42
42
  }
43
- function x(t) {
43
+ function A(t) {
44
44
  const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0");
45
45
  return `${e}:${r}:${a}`;
46
46
  }
47
47
  function h(t, e) {
48
48
  return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
49
49
  }
50
- function A(t) {
50
+ function x(t) {
51
51
  const e = t.getDay(), r = e === 0 ? -6 : 1 - e;
52
52
  return h(t, r);
53
53
  }
@@ -88,9 +88,9 @@ class Z {
88
88
  const s = new Date(r.getTime() - 18e5);
89
89
  return {
90
90
  fromDate: n(s),
91
- fromTime: x(s),
91
+ fromTime: A(s),
92
92
  toDate: a,
93
- toTime: x(r)
93
+ toTime: A(r)
94
94
  };
95
95
  }
96
96
  case c.today:
@@ -138,7 +138,7 @@ class Z {
138
138
  toTime: u
139
139
  };
140
140
  case c.thisWeek: {
141
- const s = A(r);
141
+ const s = x(r);
142
142
  return {
143
143
  fromDate: n(s),
144
144
  fromTime: f,
@@ -147,7 +147,7 @@ class Z {
147
147
  };
148
148
  }
149
149
  case c.lastWeek: {
150
- const s = h(A(r), -7);
150
+ const s = h(x(r), -7);
151
151
  return {
152
152
  fromDate: n(s),
153
153
  fromTime: f,
@@ -604,6 +604,7 @@ export {
604
604
  Ur as CalendarGrid,
605
605
  ce as ColorType,
606
606
  st as CortexPopupController,
607
+ Qa as DEFAULT_BREAKPOINTS,
607
608
  Z as DateRangePresets,
608
609
  ot as DragScroll,
609
610
  $e as FormControlController,
@@ -622,7 +623,7 @@ export {
622
623
  Lt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
623
624
  Ft as URL_PROTOCOL_VALIDATION_REGEX,
624
625
  Rt as URL_VALIDATION_REGEX,
625
- xe as activeElements,
626
+ Ae as activeElements,
626
627
  Yr as addMonths,
627
628
  Yt as adjustRelativeValues,
628
629
  Ie as animateTo,
@@ -634,10 +635,10 @@ export {
634
635
  oa as buildSizesFromDisplayWidth,
635
636
  na as buildTransformationString,
636
637
  Va as buildWaveformPath,
637
- xa as calculateAspectRatioFit,
638
+ Aa as calculateAspectRatioFit,
638
639
  er as clamp,
639
- Aa as cleanImageFileName,
640
- Es as clearZeroDurationParts,
640
+ xa as cleanImageFileName,
641
+ Is as clearZeroDurationParts,
641
642
  he as convertColor,
642
643
  Ua as convertDataUnits,
643
644
  Na as convertDurationToMilliseconds,
@@ -652,12 +653,12 @@ export {
652
653
  Pe as defaultValue,
653
654
  at as downloadAsset,
654
655
  Xe as drag,
655
- Ja as emptyToSpace,
656
- Ka as escapeXML,
656
+ Ka as emptyToSpace,
657
+ ts as escapeXML,
657
658
  ge as extractColor,
658
- ts as extractExtension,
659
+ es as extractExtension,
659
660
  yt as extractFrames,
660
- es as extractRootData,
661
+ rs as extractRootData,
661
662
  Pa as extractValueAndUnit,
662
663
  _a as extractWaveformPeaks,
663
664
  ia as fetchCortexApi,
@@ -670,37 +671,37 @@ export {
670
671
  N as formCollections,
671
672
  Wa as formatAspectRatioString,
672
673
  de as formatColorCodeSeparator,
673
- Is as formatDurationPartsManually,
674
+ Ls as formatDurationPartsManually,
674
675
  pe as formatHexCode,
675
676
  Pr as formatIsoToDisplay,
676
677
  Wr as formatMonthYearLabel,
677
678
  Xa as formatNumberWithGrouping,
678
- rs as formatSecondsToTime,
679
- as as formatTimeToSeconds,
680
- Ls as formatWithIntlDurationFormat,
679
+ as as formatSecondsToTime,
680
+ ss as formatTimeToSeconds,
681
+ Fs as formatWithIntlDurationFormat,
681
682
  Ha as gcd,
682
683
  mr as getActiveElement,
683
684
  sr as getActiveModals,
684
685
  qe as getAssociatedForm,
685
686
  hr as getAttributes,
686
- ss as getAttributesString,
687
- Qa as getBreakpointsFromCSS,
687
+ os as getAttributesString,
688
+ ja as getBreakpointsFromCSS,
688
689
  ut as getBrowserFontVariants,
689
690
  De as getColorType,
690
691
  La as getContainedImageSize,
691
692
  gr as getCortexPopupLayer,
692
693
  C as getCurrentZIndex,
693
694
  Xr as getDateMask,
694
- Ae as getDeepestActiveElement,
695
- ja as getDeviceType,
696
- Fs as getDurationPartsByUnitsFormat,
695
+ xe as getDeepestActiveElement,
696
+ Za as getDeviceType,
697
+ Rs as getDurationPartsByUnitsFormat,
697
698
  dr as getElementFromHTMLString,
698
699
  pr as getElementFromTemplate,
699
700
  Hr as getFirstDayOfWeek,
700
701
  lt as getFontFamilyOptionValue,
701
702
  ft as getFontFamilyVariants,
702
703
  X as getFormControls,
703
- Cs as getHighlightedTitle,
704
+ As as getHighlightedTitle,
704
705
  xs as getHighlightedTitleHtml,
705
706
  Ir as getInnerHTML,
706
707
  Ct as getInterval,
@@ -710,7 +711,7 @@ export {
710
711
  te as getNextAncestor,
711
712
  nr as getOffset,
712
713
  Tr as getRelativeClickPercentage,
713
- os as getRootIDString,
714
+ ns as getRootIDString,
714
715
  Rr as getTabbableBoundary,
715
716
  Or as getTabbableElements,
716
717
  Lr as getTextContent,
@@ -718,7 +719,7 @@ export {
718
719
  it as getTypefaceOptionValue,
719
720
  Wt as groupBy,
720
721
  la as hasTransformSegment,
721
- ns as htmlToPlainText,
722
+ is as htmlToPlainText,
722
723
  Xt as insertAtIndex,
723
724
  Mt as insertFrameToCache,
724
725
  Ht as insertMultipleAtIndex,
@@ -731,7 +732,7 @@ export {
731
732
  re as isFirefox,
732
733
  ct as isFontFamilyAvailable,
733
734
  ht as isFormInteracted,
734
- is as isGalleryItemCardType,
735
+ ls as isGalleryItemCardType,
735
736
  Da as isGradientString,
736
737
  ae as isIOS,
737
738
  Mr as isInElement,
@@ -755,8 +756,8 @@ export {
755
756
  K as openAssetOverview,
756
757
  tt as openFolderOverview,
757
758
  et as openLink,
758
- ls as padPath,
759
- cs as parseBooleanString,
759
+ cs as padPath,
760
+ us as parseBooleanString,
760
761
  we as parseBorder,
761
762
  qr as parseDisplayToIso,
762
763
  Le as parseDuration,
@@ -775,7 +776,7 @@ export {
775
776
  Y as quoteFontFamily,
776
777
  St as readLocalStorageValue,
777
778
  Cr as readSearchConsistency,
778
- us as reducePathToDirectChild,
779
+ fs as reducePathToDirectChild,
779
780
  Ke as registerTranslation,
780
781
  zt as removeAtIndex,
781
782
  qt as removeMultipleAtIndex,
@@ -785,38 +786,38 @@ export {
785
786
  _t as resolveSpaceUrl,
786
787
  Ba as rotateBox,
787
788
  va as rotateImage,
788
- fs as safeExtension,
789
- ms as safeString,
790
- hs as sanitizeHTML,
789
+ ms as safeExtension,
790
+ hs as safeString,
791
+ gs as sanitizeHTML,
791
792
  Ga as sanitizeRotation,
792
793
  lr as scrollIntoView,
793
794
  mt as serialize,
794
795
  wa as serializeGradient,
795
796
  rt as shareAsset,
796
797
  Re as shimKeyframesHeightAuto,
797
- xr as sortByTopPosition,
798
+ Ar as sortByTopPosition,
798
799
  Ma as sortStops,
799
800
  _ as sortTypefaceVariants,
800
801
  za as splitBoxValues,
801
- gs as splitCamelCaseFormatted,
802
+ ds as splitCamelCaseFormatted,
802
803
  ya as splitTopLevel,
803
804
  Oe as stopAnimations,
804
805
  ne as supportHLS,
805
806
  V as testFontAvailability,
806
807
  Ve as timecodeConverter,
807
- ds as toCamelCase,
808
+ ps as toCamelCase,
808
809
  jr as toIsoDate,
809
- ps as toKebabCase,
810
- Ds as toPascalCase,
810
+ Ds as toKebabCase,
811
+ Ts as toPascalCase,
811
812
  kt as toRelativeUrl,
812
- Ts as toTitleCase,
813
+ Ss as toTitleCase,
813
814
  Ut as toUrlPathKey,
814
815
  Qt as toast,
815
- Ss as truncateTextMiddle,
816
- ws as unescapeXML,
816
+ ws as truncateTextMiddle,
817
+ Ms as unescapeXML,
817
818
  cr as unlockBodyScrolling,
818
819
  P as unquoteFontFamily,
819
- Ms as upperFirst,
820
+ ys as upperFirst,
820
821
  Qe as validValidityState,
821
822
  je as valueMissingValidityState,
822
823
  ve as waitForEvent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.24.0",
4
+ "version": "3.26.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {