@orangelogic/design-system 2.145.0 → 2.146.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.
@@ -3,9 +3,9 @@ function m({
3
3
  decimals: n = 2,
4
4
  inputUnit: e = "B",
5
5
  targetUnit: r = "B",
6
- value: s
6
+ value: i
7
7
  }) {
8
- const i = {
8
+ const s = {
9
9
  B: 1,
10
10
  GB: t ** 3,
11
11
  KB: t,
@@ -17,42 +17,48 @@ function m({
17
17
  Mb: t ** 2 / 8,
18
18
  Tb: t ** 4 / 8,
19
19
  b: 1 / 8
20
- }, u = { ...i, ...o }, d = u[r], f = s * u[e], c = Number.parseFloat((f / d).toFixed(n));
20
+ }, u = { ...s, ...o }, d = u[r], f = i * u[e], c = Number.parseFloat((f / d).toFixed(n));
21
21
  return Number.isNaN(c) ? 0 : c;
22
22
  }
23
- function N(t) {
23
+ function h(t) {
24
24
  return t > 360 ? 360 : t < -360 ? -360 : t;
25
25
  }
26
26
  function a(t, n) {
27
27
  return n === 0 ? t : a(n, t % n);
28
28
  }
29
- function h(t, n) {
29
+ function N(t, n) {
30
30
  if (!t || !n)
31
31
  return "-- / --";
32
32
  const e = a(t, n);
33
33
  return `${t / e} / ${n / e}`;
34
34
  }
35
35
  function l(t, n) {
36
- const e = Math.round(t), r = Math.round(n), s = a(e, r);
36
+ const e = Math.round(t), r = Math.round(n);
37
+ if (!e || !r)
38
+ return {
39
+ height: 1,
40
+ width: 1
41
+ };
42
+ const i = a(e, r);
37
43
  return {
38
- height: r / s,
39
- width: e / s
44
+ height: r / i,
45
+ width: e / i
40
46
  };
41
47
  }
42
- function b(t, n, e) {
48
+ function g(t, n, e) {
43
49
  const r = e * Math.PI / 180;
44
50
  if (e % 90 === 0)
45
51
  return {
46
52
  height: e % 180 === 0 ? n : t,
47
53
  width: e % 180 === 0 ? t : n
48
54
  };
49
- const s = Math.abs(Math.cos(r)), i = Math.abs(Math.sin(r)), o = t * s + n * i, u = t * i + n * s;
55
+ const i = Math.abs(Math.cos(r)), s = Math.abs(Math.sin(r)), o = t * i + n * s, u = t * s + n * i;
50
56
  return {
51
57
  height: Math.round(u),
52
58
  width: Math.round(o)
53
59
  };
54
60
  }
55
- function g(t) {
61
+ function b(t) {
56
62
  if (!t || typeof t != "string")
57
63
  return 0;
58
64
  const n = t.trim();
@@ -86,20 +92,20 @@ function p(t) {
86
92
  function v(t) {
87
93
  if (!Number.isFinite(t))
88
94
  return "0";
89
- const [n, e] = String(t).split("."), r = n.startsWith("-"), i = (r ? n.slice(1) : n).replace(
95
+ const [n, e] = String(t).split("."), r = n.startsWith("-"), s = (r ? n.slice(1) : n).replace(
90
96
  /\B(?=(\d{3})+(?!\d))/g,
91
97
  ","
92
98
  ), o = r ? "-" : "";
93
- return e !== void 0 ? `${o}${i}.${e}` : `${o}${i}`;
99
+ return e !== void 0 ? `${o}${s}.${e}` : `${o}${s}`;
94
100
  }
95
101
  export {
96
102
  m as a,
97
- g as b,
103
+ b,
98
104
  l as c,
99
- h as d,
105
+ N as d,
100
106
  p as e,
101
107
  v as f,
102
108
  a as g,
103
- b as r,
104
- N as s
109
+ g as r,
110
+ h as s
105
111
  };
@@ -1,4 +1,4 @@
1
- import { f as d } from "./number.B4PQLJIg.js";
1
+ import { f as d } from "./number.CtCaI0T_.js";
2
2
  var g = /* @__PURE__ */ ((r) => (r.Millisecond = "ms", r.Second = "s", r))(g || {}), a = /* @__PURE__ */ ((r) => (r.Day = "d", r.DayHour = "d-h", r.DayHourMinute = "d-h-m", r.DayHourMinuteSecond = "d-h-m-s", r.Hour = "h", r.HourMinute = "h-m", r.HourMinuteSecond = "h-m-s", r.Minute = "m", r.MinuteSecond = "m-s", r.Second = "s", r))(a || {}), u = /* @__PURE__ */ ((r) => (r.Digital = "digital", r.Long = "long", r.Narrow = "narrow", r.Short = "short", r))(u || {}), h = /* @__PURE__ */ ((r) => (r.English = "en", r))(h || {});
3
3
  const f = [
4
4
  {
@@ -3,13 +3,13 @@ import "../chunks/button.Bx7AnUu4.js";
3
3
  import "./space.js";
4
4
  import "../chunks/typography.IqHbnd3C.js";
5
5
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
6
- import { C as g } from "../chunks/asset-link-format.D6XVEha7.js";
6
+ import { C as g } from "../chunks/asset-link-format.CU3qvBEO.js";
7
7
  import "../chunks/component.styles.CRO4Odto.js";
8
8
  import "../chunks/asset-link-format.QzzboHHE.js";
9
9
  import "../chunks/custom-element.L4WJXn1j.js";
10
10
  import "../chunks/i18n.DYXys45m.js";
11
11
  import "../chunks/watch.K-dbDP6P.js";
12
- import "../chunks/number.B4PQLJIg.js";
12
+ import "../chunks/number.CtCaI0T_.js";
13
13
  import "../chunks/transformation.c-RS37zA.js";
14
14
  import "../chunks/lit-element.jLBm65_O.js";
15
15
  import "../chunks/state.CSDxrqLd.js";
@@ -1,6 +1,6 @@
1
1
  import { r as f, R as y } from "../chunks/resizable-component.styles.CAfXABBc.js";
2
2
  import { c as v } from "../chunks/component.styles.CRO4Odto.js";
3
- import { U as m, g as w, f as g, D as x } from "../chunks/time.BSmpFe2G.js";
3
+ import { U as m, g as w, f as g, D as x } from "../chunks/time.DWfbnPnM.js";
4
4
  import { c as P } from "../chunks/custom-element.L4WJXn1j.js";
5
5
  import { L as S } from "../chunks/i18n.DYXys45m.js";
6
6
  import { w as u } from "../chunks/watch.K-dbDP6P.js";
@@ -7,8 +7,8 @@ import { r as ve } from "../chunks/state.CSDxrqLd.js";
7
7
  import { e as De } from "../chunks/query.BBf1UFkC.js";
8
8
  import { n as ae } from "../chunks/when.Dr1es41R.js";
9
9
  import { r as w, j as f, w as Me, R as ke, a as ze } from "../chunks/jsx-runtime.CTpPVMxj.js";
10
- import { c as He, r as je, a as Se } from "../chunks/image.BzmclWBR.js";
11
- import { r as $e } from "../chunks/number.B4PQLJIg.js";
10
+ import { c as He, r as je, a as Se } from "../chunks/image.QVlPFadX.js";
11
+ import { r as $e } from "../chunks/number.CtCaI0T_.js";
12
12
  import { d as se } from "../chunks/debounce.C_J-9zJi.js";
13
13
  const Ie = _e`:host{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:#0003;--rc-drag-bar-size:6px;--rc-border-color:#ffffffb3;--rc-focus-color:#08f;width:100%;height:100%;display:block;position:relative}.cropper{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative;container-type:size}.loading-container{z-index:1000;background-color:#00000080;width:100%;height:100%;position:absolute;top:0;left:0}.loading-container .loading{width:100%;height:100%;position:absolute}.loading-container .loading__skeleton{--border-radius:0;width:100%;height:100%}.loading-container .loading__spinner{--track-width:.2rem;font-size:var(--cx-font-size-3x-large);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.cropper--portrait .cropper__image{max-width:100cqw;max-height:100cqh}.cropper__image{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.cropper__image--loading{opacity:0}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}.ReactCrop{cursor:crosshair;isolation:isolate;max-width:100%;display:inline-block;position:relative}.cropper--multiple .ReactCrop:before{content:"";z-index:-1;background:var(--cx-color-neutral-300);border-radius:2px;position:absolute;inset:0;transform:translate(-8px,-8px)}.ReactCrop *,.ReactCrop :before,.ReactCrop :after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--loading,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit;justify-content:center;align-items:center;width:100%;height:100%;display:flex;overflow:hidden}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled):not(.ReactCrop--loading) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px);position:absolute;inset:0}.ReactCrop__crop-selection{cursor:move;position:absolute;top:0;left:0;transform:translateZ(0)}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit;display:none}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";border:1px solid var(--rc-border-color);opacity:.3;position:absolute;inset:-1px}.ReactCrop--no-animate .ReactCrop__crop-selection,.ReactCrop--loading .ReactCrop__crop-selection{outline:1px dashed #fff}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection,.ReactCrop--loading .ReactCrop__crop-selection){color:#fff;background-image:linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:10px 1px,10px 1px,1px 10px,1px 10px;animation:1s linear infinite marching-ants}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--disabled .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";background-color:#fff6;display:block;position:absolute}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6667%}.ReactCrop__drag-handle{width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color);position:absolute}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{cursor:nw-resize;top:0;left:0;transform:translate(-50%,-50%)}.ReactCrop .ord-n{cursor:n-resize;top:0;left:50%;transform:translate(-50%,-50%)}.ReactCrop .ord-ne{cursor:ne-resize;top:0;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-e{cursor:e-resize;top:50%;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-se{cursor:se-resize;bottom:0;right:0;transform:translate(50%,50%)}.ReactCrop .ord-s{cursor:s-resize;bottom:0;left:50%;transform:translate(-50%,50%)}.ReactCrop .ord-sw{cursor:sw-resize;bottom:0;left:0;transform:translate(-50%,50%)}.ReactCrop .ord-w{cursor:w-resize;top:50%;left:0;transform:translate(-50%,-50%)}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{width:100%;height:var(--rc-drag-bar-size);top:0;left:0;transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{width:var(--rc-drag-bar-size);height:100%;top:0;right:0;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{width:100%;height:var(--rc-drag-bar-size);bottom:0;left:0;transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{width:var(--rc-drag-bar-size);height:100%;top:0;left:0;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}`, q = {
14
14
  height: 0,
@@ -32,7 +32,7 @@ import bt from "./tooltip.js";
32
32
  import { C as rt } from "../chunks/typography.IqHbnd3C.js";
33
33
  import { C as jt } from "../chunks/confirm-popover.DLb5agj9.js";
34
34
  import { d as Mt } from "../chunks/debounce.DaHuiSGU.js";
35
- import { a as Z } from "../chunks/number.B4PQLJIg.js";
35
+ import { a as Z } from "../chunks/number.CtCaI0T_.js";
36
36
  import { i as X, b as pt } from "../chunks/url.-WDYqplj.js";
37
37
  import { b as Vt, a as Ht, i as Wt } from "../chunks/_baseXor.DRclcoaa.js";
38
38
  import qt from "./progress-bar.js";
@@ -1,6 +1,6 @@
1
1
  import { n as l, C as h } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as y } from "../chunks/component.styles.CRO4Odto.js";
3
- import { U as r, D as u, L as D, F as d, g as S, a as F, c as U, f as g, S as _ } from "../chunks/time.BSmpFe2G.js";
3
+ import { U as r, D as u, L as D, F as d, g as S, a as F, c as U, f as g, S as _ } from "../chunks/time.DWfbnPnM.js";
4
4
  import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
5
5
  import { L as N } from "../chunks/i18n.DYXys45m.js";
6
6
  import { w as m } from "../chunks/watch.K-dbDP6P.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "../chunks/asset-link-format.D6XVEha7.js";
1
+ import { C as a } from "../chunks/asset-link-format.CU3qvBEO.js";
2
2
  import { C as t } from "../chunks/color-swatch-group.DORzYTrn.js";
3
3
  import { default as C } from "./file-on-demand.js";
4
4
  export {