@orangelogic/design-system 2.99.0 → 2.101.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 (55) hide show
  1. package/library/chunks/{asset.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
  2. package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
  3. package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
  4. package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
  5. package/library/chunks/debounce.CIEhztrj.js +97 -0
  6. package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
  7. package/library/chunks/event.BeKOsirN.js +46 -0
  8. package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
  9. package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
  10. package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
  11. package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.DMjclCWz.js} +5 -5
  12. package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
  13. package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
  14. package/library/components/alert.js +7 -8
  15. package/library/components/asset-link-format.js +1 -1
  16. package/library/components/atoms.js +4 -4
  17. package/library/components/color-picker.js +1 -1
  18. package/library/components/color-swatch-group.js +4 -4
  19. package/library/components/color-swatch.js +2 -2
  20. package/library/components/confirm-popover.js +2 -2
  21. package/library/components/details.js +1 -2
  22. package/library/components/dialog.js +3 -4
  23. package/library/components/drawer.js +1 -2
  24. package/library/components/dropdown.js +7 -8
  25. package/library/components/dynamic-select.js +1 -1
  26. package/library/components/element-clamp.js +1 -2
  27. package/library/components/file-on-demand.js +5 -5
  28. package/library/components/folder-select.js +2 -2
  29. package/library/components/image.js +2 -2
  30. package/library/components/line-clamp.js +4 -5
  31. package/library/components/list-editor.js +4 -4
  32. package/library/components/masonry.js +1 -1
  33. package/library/components/molecules.js +4 -4
  34. package/library/components/organisms.js +2 -2
  35. package/library/components/popup.js +73 -74
  36. package/library/components/range.js +1 -1
  37. package/library/components/select.js +1 -2
  38. package/library/components/share-option-list.js +1 -1
  39. package/library/components/sidebar.js +6 -6
  40. package/library/components/table.js +1 -1
  41. package/library/components/tooltip.js +1 -2
  42. package/library/components/tree-item.js +4 -3
  43. package/library/components/tree.js +1 -1
  44. package/library/components/types.js +1738 -1742
  45. package/library/components/video.js +2 -2
  46. package/library/package.json +1 -1
  47. package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
  48. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
  49. package/library/react-web-component.d.ts +4 -0
  50. package/library/utils.js +138 -140
  51. package/package.json +1 -1
  52. package/library/chunks/animate.El-MpOws.js +0 -37
  53. package/library/chunks/browser.BHOCIF_A.js +0 -84
  54. package/library/chunks/debounce.DaHuiSGU.js +0 -15
  55. package/library/chunks/event.mFzZi4sr.js +0 -11
@@ -1,9 +1,9 @@
1
1
  import { c as ps, a as Fn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
2
2
  import { r as wb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
3
- import { r as Sb, C as Cb, R as Mb } from "../chunks/image.BnB-fJ8g.js";
3
+ import { r as Sb, C as Cb, R as Mb } from "../chunks/image.D207g003.js";
4
4
  import Db from "./resize-observer.js";
5
5
  import { c as Pb } from "../chunks/component.styles.CRO4Odto.js";
6
- import { b as Lb } from "../chunks/browser.BHOCIF_A.js";
6
+ import { b as Lb } from "../chunks/debounce.CIEhztrj.js";
7
7
  import { c as Rb } from "../chunks/custom-element.L4WJXn1j.js";
8
8
  import { L as Ib } from "../chunks/i18n.DK1uYlJT.js";
9
9
  import { w as gn } from "../chunks/watch.BCJD77bD.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.99.0",
4
+ "version": "2.101.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -16,11 +16,21 @@ import { default as CxTableDropdownFilter } from './table-dropdown-filter';
16
16
  import { default as CxTableSavedSearchDropdown } from './table-saved-search-dropdown';
17
17
 
18
18
  /**
19
- * @summary <cx-table-toolbar> is a component that displays a toolbar for a table.
19
+ * @summary Table toolbars display table controls such as labels, pagination, search, filters, saved searches, add actions, and export actions.
20
+ * @description Use the label property or label slot to render a heading, and the pagination slot to place pagination above the main toolbar actions.
21
+ *
22
+ * @slot label - Optional label content that replaces the label property fallback.
23
+ * @slot pagination - Optional pagination content displayed opposite the label.
24
+ *
25
+ * @event {{ value: string }} cx-search - Emitted when the search value is submitted or cleared.
26
+ * @event cx-table-advanced-search-click - Emitted when the advanced search action is clicked.
27
+ * @event cx-add - Emitted when the add action is clicked.
28
+ * @event {{ type: 'csv' | 'xml' | 'custom' | 'report' }} cx-table-export - Emitted when an export action is selected.
20
29
  */
21
30
  export default class CxTableToolbar extends CortexElement {
22
31
  static readonly styles: CSSResultGroup;
23
32
  private readonly localize;
33
+ private readonly hasSlotController;
24
34
  static readonly dependencies: {
25
35
  'cx-button': typeof CxButton;
26
36
  'cx-dropdown': typeof CxDropdown;
@@ -4,6 +4,7 @@ import { CSSResultGroup, PropertyValueMap, PropertyValues, TemplateResult } from
4
4
  import { default as Sortable } from 'sortablejs';
5
5
  import { default as CxCheckbox } from '../checkbox/checkbox';
6
6
  import { default as CxIcon } from '../icon/icon';
7
+ import { default as CxLineClamp } from '../line-clamp/line-clamp';
7
8
  import { default as CxSpinner } from '../spinner/spinner';
8
9
 
9
10
  /**
@@ -46,12 +47,16 @@ import { default as CxSpinner } from '../spinner/spinner';
46
47
  * @cssproperty [--hover-background-color=var(--cx-menu-item-background-color-hover)] - The background color of the hovered tree item.
47
48
  * @cssproperty [--active-background-color=var(--cx-color-neutral-200)] - The background color of the active tree item.
48
49
  * @cssproperty [--item-padding=var(--cx-spacing-x-small) var(--cx-spacing-small)] - The padding of the tree item.
50
+ *
51
+ * When `max-lines` is set, the label is wrapped in a `cx-line-clamp` and the text is clamped with an ellipsis
52
+ * after the given number of lines. A tooltip with the full text is shown automatically when clamping is active.
49
53
  */
50
54
  export default class CxTreeItem extends CortexElement {
51
55
  static readonly styles: CSSResultGroup;
52
56
  static readonly dependencies: {
53
57
  'cx-checkbox': typeof CxCheckbox;
54
58
  'cx-icon': typeof CxIcon;
59
+ 'cx-line-clamp': typeof CxLineClamp;
55
60
  'cx-spinner': typeof CxSpinner;
56
61
  };
57
62
  static isTreeItem(node: Node): node is CxTreeItem;
@@ -152,6 +157,11 @@ export default class CxTreeItem extends CortexElement {
152
157
  * If set to 'false', the tree item will not be focusable and will not receive focus when the user clicks on it.
153
158
  */
154
159
  focusable: boolean;
160
+ /**
161
+ * The maximum number of lines to display in the label before clamping with an ellipsis.
162
+ * Set to -1 (the default) to show all lines without clamping.
163
+ */
164
+ maxLines: number;
155
165
  indeterminate: boolean;
156
166
  isLeaf: boolean;
157
167
  loading: boolean;
@@ -4994,6 +4994,10 @@
4994
4994
  * Indicates whether the tree item is focusable. If set to 'false', the tree item will not be focusable and will not receive focus when the user clicks on it.
4995
4995
  */
4996
4996
  focusable?: boolean;
4997
+ /**
4998
+ * The maximum number of lines to display in the label before clamping with an ellipsis. Set to -1 (the default) to show all lines without clamping.
4999
+ */
5000
+ maxLines?: number;
4997
5001
  /**
4998
5002
  * Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
4999
5003
  */
package/library/utils.js CHANGED
@@ -1,36 +1,34 @@
1
1
  import { a as D } from "./chunks/url.Cj9cIQXJ.js";
2
2
  import { R as st, U as rt, c as ot, b as at, i as nt, t as it } from "./chunks/url.Cj9cIQXJ.js";
3
3
  import { e as ct, f as ut, g as ft, c as ht, i as mt, a as dt, d as gt, m as pt, b as wt, r as xt, t as Ct } from "./chunks/toast.D3AW3RWv.js";
4
- import { e as Dt, a as At, f as Tt, g as yt, d as St, b as Mt, c as Lt, i as It, p as vt, s as Rt } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as bt, C as kt, e as Ft, H as Ot, R as Nt, c as Xt, h as Pt, f as _t, g as Bt, l as Ht, p as Ut, a as Gt, b as Yt } from "./chunks/color.vLD2sNTs.js";
6
- import { a as zt, b as qt, g as Zt } from "./chunks/modal.U1QltQKe.js";
7
- import { a as Jt, p as $t, c as Qt, b as Kt, s as te } from "./chunks/animate.El-MpOws.js";
8
- import { t as se } from "./chunks/converters.DkDtLstb.js";
9
- import { c as oe } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as ne } from "./chunks/debounce.DaHuiSGU.js";
4
+ import { d as Dt, h as At, a as Tt, f as yt, g as St, e as Mt, b as Lt, c as It, i as vt, p as Rt, s as Vt } from "./chunks/debounce.CIEhztrj.js";
5
+ import { d as kt, C as Ft, e as Ot, H as Nt, R as Xt, c as Pt, h as _t, f as Bt, g as Ht, l as Ut, p as Gt, a as Yt, b as Wt } from "./chunks/color.vLD2sNTs.js";
6
+ import { a as qt, b as Zt, g as jt } from "./chunks/modal.U1QltQKe.js";
7
+ import { a as $t, p as Qt, c as Kt, b as te, s as ee, w as se } from "./chunks/event.BeKOsirN.js";
8
+ import { t as oe } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as ne } from "./chunks/custom-element.L4WJXn1j.js";
11
10
  import { d as le } from "./chunks/default-value.COZopaet.js";
12
11
  import { d as ue } from "./chunks/drag.DXEXVXPv.js";
13
- import { w as he } from "./chunks/event.mFzZi4sr.js";
14
12
  import { f as A } from "./chunks/form.Ch1cwYzO.js";
15
- import { F as de, c as ge, v as pe, a as we } from "./chunks/form.Ch1cwYzO.js";
16
- import { L as Ce, r as Ee } from "./chunks/i18n.DK1uYlJT.js";
17
- import { c as Ae } from "./chunks/math.DqTA6ya4.js";
18
- import { g as ye, l as Se, s as Me, u as Le } from "./chunks/scroll.xtO5yojm.js";
13
+ import { F as he, c as me, v as de, a as ge } from "./chunks/form.Ch1cwYzO.js";
14
+ import { L as we, r as xe } from "./chunks/i18n.DK1uYlJT.js";
15
+ import { c as Ee } from "./chunks/math.DqTA6ya4.js";
16
+ import { g as Ae, l as Te, s as ye, u as Se } from "./chunks/scroll.xtO5yojm.js";
19
17
  import { j as x } from "./chunks/dom.0RpWet6y.js";
20
- import { c as ve, d as Re, k as Ve, a as be, g as ke, h as Fe, b as Oe, f as Ne, i as Xe, e as Pe, l as _e, s as Be } from "./chunks/dom.0RpWet6y.js";
21
- import { H as Ue, a as Ge, g as Ye } from "./chunks/slot.j5oheLJC.js";
22
- import { g as ze, a as qe } from "./chunks/tabbable.CcMz3mIL.js";
23
- import { i as je } from "./chunks/user-agent.D9aPuOyL.js";
24
- import { w as $e } from "./chunks/watch.BCJD77bD.js";
25
- import { f as Ke } from "./chunks/content-builder.CcgZciZN.js";
26
- import { c as es, f as ss, e as rs, b as os, g as as, d as ns, i as is, r as ls, a as cs } from "./chunks/image.9qwbjGNb.js";
27
- import { a as fs, b as hs, c as ms, e as ds, d as gs, f as ps, g as ws, r as xs, s as Cs } from "./chunks/number.B4PQLJIg.js";
28
- import { s as Ds } from "./chunks/parse.Cu5nBDTb.js";
29
- import { g as Ts, a as ys } from "./chunks/responsive.Oz9HWjyQ.js";
30
- import { c as Ms, b as Ls, e as Is, f as vs, l as Rs, g as Vs, j as bs, p as ks, v as Fs, r as Os, a as Ns, d as Xs, s as Ps, k as _s, o as Bs, m as Hs, n as Us, q as Gs, t as Ys, u as Ws } from "./chunks/string.DUgD4c9f.js";
31
- import { g as qs, a as Zs } from "./chunks/template.ClovJacp.js";
32
- import { c as Js, a as $s, f as Qs, g as Ks } from "./chunks/time.BiQnh9wt.js";
33
- import { b as er } from "./chunks/transformation.Cqz3hPaQ.js";
18
+ import { c as Le, d as Ie, k as ve, a as Re, g as Ve, h as be, b as ke, f as Fe, i as Oe, e as Ne, l as Xe, s as Pe } from "./chunks/dom.0RpWet6y.js";
19
+ import { H as Be, a as He, g as Ue } from "./chunks/slot.j5oheLJC.js";
20
+ import { g as Ye, a as We } from "./chunks/tabbable.CcMz3mIL.js";
21
+ import { i as qe } from "./chunks/user-agent.D9aPuOyL.js";
22
+ import { w as je } from "./chunks/watch.BCJD77bD.js";
23
+ import { f as $e } from "./chunks/content-builder.CcgZciZN.js";
24
+ import { c as Ke, f as ts, e as es, b as ss, g as rs, d as os, i as as, r as ns, a as is } from "./chunks/image.9qwbjGNb.js";
25
+ import { a as cs, b as us, c as fs, e as hs, d as ms, f as ds, g as gs, r as ps, s as ws } from "./chunks/number.B4PQLJIg.js";
26
+ import { s as Cs } from "./chunks/parse.Cu5nBDTb.js";
27
+ import { g as Ds, a as As } from "./chunks/responsive.Oz9HWjyQ.js";
28
+ import { c as ys, b as Ss, e as Ms, f as Ls, l as Is, g as vs, j as Rs, p as Vs, v as bs, r as ks, a as Fs, d as Os, s as Ns, k as Xs, o as Ps, m as _s, n as Bs, q as Hs, t as Us, u as Gs } from "./chunks/string.DUgD4c9f.js";
29
+ import { g as Ws, a as zs } from "./chunks/template.ClovJacp.js";
30
+ import { c as Zs, a as js, f as Js, g as $s } from "./chunks/time.BiQnh9wt.js";
31
+ import { b as Ks } from "./chunks/transformation.Cqz3hPaQ.js";
34
32
  function b(t) {
35
33
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
36
34
  return;
@@ -352,114 +350,114 @@ function K({
352
350
  return o > t && (o = t / 2), o;
353
351
  }
354
352
  export {
355
- bt as CMYK_VALIDATION_REGEX,
356
- kt as ColorType,
353
+ kt as CMYK_VALIDATION_REGEX,
354
+ Ft as ColorType,
357
355
  X as CortexPopupController,
358
356
  P as DragScroll,
359
- de as FormControlController,
360
- Ft as HEX_ALPHA_VALIDATION_REGEX,
361
- Ot as HEX_VALIDATION_REGEX,
362
- Ue as HasSlotController,
357
+ he as FormControlController,
358
+ Ot as HEX_ALPHA_VALIDATION_REGEX,
359
+ Nt as HEX_VALIDATION_REGEX,
360
+ Be as HasSlotController,
363
361
  Y as HistoryManager,
364
362
  S as KeyboardKey,
365
- Ce as LocalizeController,
363
+ we as LocalizeController,
366
364
  M as PRECISION,
367
365
  st as RELATIVE_URL_REGEX,
368
- Nt as RGB_VALIDATION_REGEX,
366
+ Xt as RGB_VALIDATION_REGEX,
369
367
  rt as URL_DOMAIN_VALIDATION_REGEX,
370
368
  ot as URL_PROTOCOL_VALIDATION_REGEX,
371
369
  at as URL_VALIDATION_REGEX,
372
- zt as activeElements,
370
+ qt as activeElements,
373
371
  ct as adjustRelativeValues,
374
- Jt as animateTo,
372
+ $t as animateTo,
375
373
  D as appendProtocol,
376
- er as buildTransformationString,
377
- es as calculateAspectRatioFit,
378
- Ae as clamp,
379
- ss as cleanImageFileName,
380
- Js as clearZeroDurationParts,
381
- Xt as convertColor,
382
- fs as convertDataUnits,
383
- hs as convertDurationToMilliseconds,
384
- ms as convertPixelsToAspectRatio,
385
- rs as convertSrcToBlob,
386
- os as cropImage,
387
- ve as cssValueToPx,
388
- oe as customElement,
389
- ge as customErrorValidityState,
390
- ne as debounce,
374
+ Ks as buildTransformationString,
375
+ Ke as calculateAspectRatioFit,
376
+ Ee as clamp,
377
+ ts as cleanImageFileName,
378
+ Zs as clearZeroDurationParts,
379
+ Pt as convertColor,
380
+ cs as convertDataUnits,
381
+ us as convertDurationToMilliseconds,
382
+ fs as convertPixelsToAspectRatio,
383
+ es as convertSrcToBlob,
384
+ ss as cropImage,
385
+ Le as cssValueToPx,
386
+ ne as customElement,
387
+ me as customErrorValidityState,
388
+ Dt as debounce,
391
389
  le as defaultValue,
392
390
  N as downloadAsset,
393
391
  ue as drag,
394
- Ms as emptyToSpace,
395
- Pt as extractColor,
396
- Ls as extractExtension,
392
+ ys as emptyToSpace,
393
+ _t as extractColor,
394
+ Ss as extractExtension,
397
395
  Q as extractFrames,
398
- Is as extractRootData,
399
- ds as extractValueAndUnit,
400
- Ke as fetchCortexApi,
401
- Dt as findAncestorWithBuggyStyle,
402
- At as findContainingBlock,
403
- Tt as findCuttingAncestor,
396
+ Ms as extractRootData,
397
+ hs as extractValueAndUnit,
398
+ $e as fetchCortexApi,
399
+ At as findAncestorWithBuggyStyle,
400
+ Tt as findContainingBlock,
401
+ yt as findCuttingAncestor,
404
402
  L as findFrameByColAndRow,
405
403
  ut as findIndexByProp,
406
404
  A as formCollections,
407
- gs as formatAspectRatioString,
408
- $s as formatDurationPartsManually,
409
- ps as formatNumberWithGrouping,
410
- vs as formatSecondsToTime,
411
- Rs as formatTimeToSeconds,
412
- Qs as formatWithIntlDurationFormat,
413
- ws as gcd,
414
- Re as getActiveElement,
415
- qt as getActiveModals,
416
- Ts as getBreakpointsFromCSS,
405
+ ms as formatAspectRatioString,
406
+ js as formatDurationPartsManually,
407
+ ds as formatNumberWithGrouping,
408
+ Ls as formatSecondsToTime,
409
+ Is as formatTimeToSeconds,
410
+ Js as formatWithIntlDurationFormat,
411
+ gs as gcd,
412
+ Ie as getActiveElement,
413
+ Zt as getActiveModals,
414
+ Ds as getBreakpointsFromCSS,
417
415
  H as getBrowserFontVariants,
418
- _t as getColorType,
419
- as as getContainedImageSize,
420
- Ve as getCortexPopupLayer,
416
+ Bt as getColorType,
417
+ rs as getContainedImageSize,
418
+ ve as getCortexPopupLayer,
421
419
  x as getCurrentZIndex,
422
- Zt as getDeepestActiveElement,
423
- ys as getDeviceType,
424
- Ks as getDurationPartsByUnitsFormat,
425
- be as getElementFromHTMLString,
426
- ke as getElementFromTemplate,
420
+ jt as getDeepestActiveElement,
421
+ As as getDeviceType,
422
+ $s as getDurationPartsByUnitsFormat,
423
+ Re as getElementFromHTMLString,
424
+ Ve as getElementFromTemplate,
427
425
  y as getFormControls,
428
- qs as getHighlightedTitle,
429
- Zs as getHighlightedTitleHtml,
430
- Ge as getInnerHTML,
426
+ Ws as getHighlightedTitle,
427
+ zs as getHighlightedTitleHtml,
428
+ He as getInnerHTML,
431
429
  K as getInterval,
432
- Bt as getLightDarkCssString,
433
- ns as getNaturalWidthHeight,
434
- Fe as getNeededPaddingForBoxShadow,
435
- yt as getNextAncestor,
436
- ye as getOffset,
437
- Oe as getRelativeClickPercentage,
438
- Vs as getRootIDString,
439
- ze as getTabbableBoundary,
440
- qe as getTabbableElements,
441
- Ye as getTextContent,
430
+ Ht as getLightDarkCssString,
431
+ os as getNaturalWidthHeight,
432
+ be as getNeededPaddingForBoxShadow,
433
+ St as getNextAncestor,
434
+ Ae as getOffset,
435
+ ke as getRelativeClickPercentage,
436
+ vs as getRootIDString,
437
+ Ye as getTabbableBoundary,
438
+ We as getTabbableElements,
439
+ Ue as getTextContent,
442
440
  ft as groupBy,
443
441
  ht as insertAtIndex,
444
442
  $ as insertFrameToCache,
445
443
  mt as insertMultipleAtIndex,
446
- St as isChrome,
447
- je as isCortexAdobePlugin,
448
- Ne as isDomElement,
449
- Xe as isElementInHorizontalView,
450
- Mt as isFirefox,
444
+ Mt as isChrome,
445
+ qe as isCortexAdobePlugin,
446
+ Fe as isDomElement,
447
+ Oe as isElementInHorizontalView,
448
+ Lt as isFirefox,
451
449
  B as isFontFamilyAvailable,
452
450
  G as isFormInteracted,
453
- bs as isGalleryItemCardType,
454
- Lt as isIOS,
455
- Pe as isInElement,
451
+ Rs as isGalleryItemCardType,
452
+ It as isIOS,
453
+ Ne as isInElement,
456
454
  _ as isModKey,
457
- It as isSafari,
458
- is as isSaveSrcValid,
455
+ vt as isSafari,
456
+ as as isSaveSrcValid,
459
457
  nt as isValidUrl,
460
- _e as loadScript,
461
- Se as lockBodyScrolling,
462
- Ht as luminanceTextColor,
458
+ Xe as loadScript,
459
+ Te as lockBodyScrolling,
460
+ Ut as luminanceTextColor,
463
461
  dt as moveMultipleToIndex,
464
462
  gt as moveToIndex,
465
463
  pt as multiSelectTo,
@@ -467,53 +465,53 @@ export {
467
465
  b as openAssetOverview,
468
466
  k as openFolderOverview,
469
467
  F as openLink,
470
- ks as padPath,
471
- Fs as parseBooleanString,
472
- Ut as parseBorder,
473
- $t as parseDuration,
468
+ Vs as padPath,
469
+ bs as parseBooleanString,
470
+ Gt as parseBorder,
471
+ Qt as parseDuration,
474
472
  q as parseJsonString,
475
- Gt as parseLightDark,
473
+ Yt as parseLightDark,
476
474
  Z as parseListString,
477
- Yt as parseShadow,
475
+ Wt as parseShadow,
478
476
  z as pick,
479
- vt as popoverSupported,
480
- Qt as prefersReducedMotion,
477
+ Rt as popoverSupported,
478
+ Kt as prefersReducedMotion,
481
479
  j as readLocalStorageValue,
482
- Os as reducePathToDirectChild,
483
- Ee as registerTranslation,
480
+ ks as reducePathToDirectChild,
481
+ xe as registerTranslation,
484
482
  wt as removeAtIndex,
485
483
  xt as removeMultipleAtIndex,
486
- ls as resizeImage,
487
- xs as rotateBox,
488
- cs as rotateImage,
489
- Ns as safeExtension,
490
- Xs as safeString,
491
- Ps as sanitizeHTML,
492
- Cs as sanitizeRotation,
493
- Me as scrollIntoView,
484
+ ns as resizeImage,
485
+ ps as rotateBox,
486
+ is as rotateImage,
487
+ Fs as safeExtension,
488
+ Os as safeString,
489
+ Ns as sanitizeHTML,
490
+ ws as sanitizeRotation,
491
+ ye as scrollIntoView,
494
492
  U as serialize,
495
493
  O as shareAsset,
496
- Kt as shimKeyframesHeightAuto,
497
- Be as sortByTopPosition,
494
+ te as shimKeyframesHeightAuto,
495
+ Pe as sortByTopPosition,
498
496
  T as sortTypefaceVariants,
499
- Ds as splitBoxValues,
500
- _s as splitCamelCaseFormatted,
501
- te as stopAnimations,
502
- Rt as supportHLS,
497
+ Cs as splitBoxValues,
498
+ Xs as splitCamelCaseFormatted,
499
+ ee as stopAnimations,
500
+ Vt as supportHLS,
503
501
  C as testFontAvailability,
504
- se as timecodeConverter,
505
- Bs as toCamelCase,
506
- Hs as toKebabCase,
507
- Us as toPascalCase,
502
+ oe as timecodeConverter,
503
+ Ps as toCamelCase,
504
+ _s as toKebabCase,
505
+ Bs as toPascalCase,
508
506
  it as toRelativeUrl,
509
- Gs as toTitleCase,
507
+ Hs as toTitleCase,
510
508
  Ct as toast,
511
- Ys as truncateTextMiddle,
512
- Le as unlockBodyScrolling,
513
- Ws as upperFirst,
514
- pe as validValidityState,
515
- we as valueMissingValidityState,
516
- he as waitForEvent,
517
- $e as watch,
509
+ Us as truncateTextMiddle,
510
+ Se as unlockBodyScrolling,
511
+ Gs as upperFirst,
512
+ de as validValidityState,
513
+ ge as valueMissingValidityState,
514
+ se as waitForEvent,
515
+ je as watch,
518
516
  J as writeLocalStorageValue
519
517
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.99.0",
4
+ "version": "2.101.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -1,37 +0,0 @@
1
- function o(n, t, e) {
2
- return new Promise((r) => {
3
- if (e?.duration === 1 / 0)
4
- throw new Error("Promise-based animations must be finite.");
5
- const i = n.animate(t, {
6
- ...e,
7
- duration: a() ? 0 : e.duration
8
- });
9
- i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
10
- });
11
- }
12
- function s(n) {
13
- return n = n.toString().toLowerCase(), n.indexOf("ms") > -1 ? parseFloat(n) : n.indexOf("s") > -1 ? parseFloat(n) * 1e3 : parseFloat(n);
14
- }
15
- function a() {
16
- return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
17
- }
18
- function u(n) {
19
- return Promise.all(
20
- n.getAnimations().map((t) => new Promise((e) => {
21
- t.cancel(), requestAnimationFrame(e);
22
- }))
23
- );
24
- }
25
- function c(n, t) {
26
- return n.map((e) => ({
27
- ...e,
28
- height: e.height === "auto" ? `${t}px` : e.height
29
- }));
30
- }
31
- export {
32
- o as a,
33
- c as b,
34
- a as c,
35
- s as p,
36
- u as s
37
- };
@@ -1,84 +0,0 @@
1
- const y = () => {
2
- const t = window.navigator && window.navigator.userAgent || "";
3
- return /Firefox/i.test(t);
4
- }, w = () => navigator.userAgent.indexOf("Chrome") > -1, l = () => {
5
- const t = window.navigator && window.navigator.userAgent || "";
6
- return w() ? !1 : t.indexOf("Safari") > -1;
7
- }, C = !l() && "VideoEncoder" in window, A = "showPopover" in document.createElement("div");
8
- function c(t) {
9
- if (t.assignedSlot)
10
- return t.assignedSlot;
11
- if (t.parentElement)
12
- return t.parentElement;
13
- const o = t.getRootNode();
14
- return o instanceof ShadowRoot ? o.host : null;
15
- }
16
- function u(t, o) {
17
- if (!t)
18
- return null;
19
- let n = c(t);
20
- if (!n)
21
- return null;
22
- for (; n; ) {
23
- if (n === document.body)
24
- return;
25
- if (o(n))
26
- return n;
27
- n = c(n);
28
- }
29
- return n;
30
- }
31
- function b(t) {
32
- return u(t, (o) => {
33
- const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "", i = o.hasAttribute(
34
- "data-overlayscrollbars-viewport"
35
- ), s = n.transform !== "none", a = ["auto", "scroll", "hidden"].includes(
36
- n.overflow
37
- );
38
- return !!(e || i || s && a);
39
- });
40
- }
41
- const m = [
42
- "transform",
43
- "translate",
44
- "scale",
45
- "rotate",
46
- "perspective"
47
- ], S = [
48
- "transform",
49
- "translate",
50
- "scale",
51
- "rotate",
52
- "perspective",
53
- "filter"
54
- ], v = ["paint", "layout", "strict", "content"];
55
- function E(t) {
56
- return u(
57
- t,
58
- (n) => {
59
- const e = window.getComputedStyle(n), i = m.some(
60
- (r) => e[r] ? e[r] !== "none" : !1
61
- ), s = e.backdropFilter, a = !!s && s !== "none", f = e.filter !== "none", d = e.containerType !== "normal", g = S.some(
62
- (r) => (e.willChange || "").includes(r)
63
- ), p = v.some(
64
- (r) => (e.contain || "").includes(r)
65
- ), h = e.contentVisibility === "auto";
66
- return l() && d ? !0 : i || g || p || a || h || f;
67
- }
68
- );
69
- }
70
- function P() {
71
- return /iPad|iPhone|iPod/.test(navigator.userAgent);
72
- }
73
- export {
74
- E as a,
75
- y as b,
76
- P as c,
77
- w as d,
78
- u as e,
79
- b as f,
80
- c as g,
81
- l as i,
82
- A as p,
83
- C as s
84
- };
@@ -1,15 +0,0 @@
1
- const c = (s, n = !1) => {
2
- const a = Symbol(), o = Symbol();
3
- return (u, d, t) => {
4
- const l = t.value;
5
- t.value = function(...i) {
6
- const e = this;
7
- clearTimeout(e[a]), n && !e[o] && (l.apply(this, i), e[o] = !0), e[a] = window.setTimeout(() => {
8
- n || l.apply(this, i), e[o] = !1;
9
- }, s);
10
- }, t.configurable === !1 && (t.configurable = !0);
11
- };
12
- };
13
- export {
14
- c as d
15
- };
@@ -1,11 +0,0 @@
1
- function o(n, t) {
2
- return new Promise((r) => {
3
- function e(i) {
4
- i.target === n && (n.removeEventListener(t, e), r());
5
- }
6
- n.addEventListener(t, e);
7
- });
8
- }
9
- export {
10
- o as w
11
- };