@orangelogic/design-system 3.28.0 → 3.30.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 (26) hide show
  1. package/library/chunks/{color-swatch-group.CF0h4nhA.js → color-swatch-group.lBTDUt_i.js} +8 -7
  2. package/library/chunks/{document-viewer.BqhrUjS6.js → document-viewer.Bqh3JppM.js} +2 -2
  3. package/library/chunks/{image.CjdSn_IT.js → image.DAbpXfEy.js} +1 -1
  4. package/library/chunks/{index.BxaF24R5.js → index.BDM2hIU7.js} +2 -2
  5. package/library/chunks/{resizable-component.styles.kMFDlGgv.js → resizable-component.styles.CxjaYhiB.js} +1 -1
  6. package/library/chunks/{tab-group.D-nBq01A.js → tab-group.Ct15ygJ3.js} +9 -4
  7. package/library/chunks/{types.DapQA7MU.js → types.LleN6Ydu.js} +38443 -38385
  8. package/library/components/atoms.js +3 -3
  9. package/library/components/audio.js +1 -1
  10. package/library/components/color-picker.js +1 -1
  11. package/library/components/color-swatch-group.js +1 -1
  12. package/library/components/color-swatch.js +8 -8
  13. package/library/components/document-viewer.js +3 -3
  14. package/library/components/file-on-demand.js +1 -1
  15. package/library/components/image.js +2 -2
  16. package/library/components/masonry.js +1 -1
  17. package/library/components/organisms.js +1 -1
  18. package/library/components/tab-group.js +1 -1
  19. package/library/components/types.js +28 -28
  20. package/library/components/video.js +2 -2
  21. package/library/package.json +1 -1
  22. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -0
  23. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +15 -3
  24. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +7 -4
  25. package/library/react-web-component.d.ts +4 -0
  26. package/package.json +1 -1
@@ -21,7 +21,7 @@ import { default as Y } from "./details.js";
21
21
  import { default as _ } from "./diff.js";
22
22
  import { C as oe } from "../chunks/dialog.C2q9XwLW.js";
23
23
  import { default as re } from "./divider.js";
24
- import { C as xe } from "../chunks/document-viewer.BqhrUjS6.js";
24
+ import { C as xe } from "../chunks/document-viewer.Bqh3JppM.js";
25
25
  import { C as me } from "../chunks/dot-pagination.BclVUAf7.js";
26
26
  import { default as Ce } from "./dot-status.js";
27
27
  import { default as ue } from "./drawer.js";
@@ -40,7 +40,7 @@ import { f } from "../chunks/icon.BLXWp6CU.js";
40
40
  import { C as Oe } from "../chunks/icon.BLXWp6CU.js";
41
41
  import { C as Ee } from "../chunks/icon-button.BXs29IQE.js";
42
42
  import { C as Le } from "../chunks/iframe.e5XdCox5.js";
43
- import { C as je } from "../chunks/image.CjdSn_IT.js";
43
+ import { C as je } from "../chunks/image.DAbpXfEy.js";
44
44
  import { default as Qe } from "./image-comparer.js";
45
45
  import { default as qe } from "./include.js";
46
46
  import { C as Ke } from "../chunks/input.zRoRq5mq.js";
@@ -75,7 +75,7 @@ import { default as Xo } from "./step.js";
75
75
  import { default as Zo } from "./stepper.js";
76
76
  import { default as et } from "./switch.js";
77
77
  import { default as tt } from "./tab.js";
78
- import { C as at } from "../chunks/tab-group.D-nBq01A.js";
78
+ import { C as at } from "../chunks/tab-group.Ct15ygJ3.js";
79
79
  import { default as ft } from "./tab-panel.js";
80
80
  import { default as st } from "./tag.js";
81
81
  import { default as pt } from "./textarea.js";
@@ -1,4 +1,4 @@
1
- import { r as f, R as y } from "../chunks/resizable-component.styles.kMFDlGgv.js";
1
+ import { r as f, R as y } from "../chunks/resizable-component.styles.CxjaYhiB.js";
2
2
  import { c as v } from "../chunks/component.styles.CAS3c9pM.js";
3
3
  import { U as m, g as w, f as g, D as x } from "../chunks/time.DYWuX2id.js";
4
4
  import { c as P } from "../chunks/custom-element.L4WJXn1j.js";
@@ -27,7 +27,7 @@ import { C as st } from "../chunks/option.D3Xzrd7-.js";
27
27
  import lt from "./select.js";
28
28
  import nt from "./spinner.js";
29
29
  import ct from "./tab.js";
30
- import { C as pt } from "../chunks/tab-group.D-nBq01A.js";
30
+ import { C as pt } from "../chunks/tab-group.Ct15ygJ3.js";
31
31
  import dt from "./tab-panel.js";
32
32
  import ht from "./visually-hidden.js";
33
33
  import { C as ut } from "../chunks/icon-button.BXs29IQE.js";
@@ -3,7 +3,7 @@ import "../chunks/typography.BLYdTF0n.js";
3
3
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
4
4
  import "./color-swatch.js";
5
5
  import "../chunks/component.styles.CAS3c9pM.js";
6
- import { C as w } from "../chunks/color-swatch-group.CF0h4nhA.js";
6
+ import { C as w } from "../chunks/color-swatch-group.lBTDUt_i.js";
7
7
  import "../chunks/color.CIHdfM_a.js";
8
8
  import "../chunks/content-builder.CBBdfVOl.js";
9
9
  import "../chunks/custom-element.L4WJXn1j.js";
@@ -8,17 +8,17 @@ import { c as S } from "../chunks/component.styles.CAS3c9pM.js";
8
8
  import { C as m, a as C, b as z, c as O, d as h, e as l, H as A, l as W, f as R, g as x } from "../chunks/color.CIHdfM_a.js";
9
9
  import { c as U } from "../chunks/custom-element.L4WJXn1j.js";
10
10
  import { d as V } from "../chunks/debounce.DaHuiSGU.js";
11
- import { L as E } from "../chunks/i18n.D5L6xAYT.js";
11
+ import { L as j } from "../chunks/i18n.D5L6xAYT.js";
12
12
  import { w as s } from "../chunks/watch.DJF5K-8U.js";
13
- import { i as G, x as g } from "../chunks/lit-element.jLBm65_O.js";
13
+ import { i as E, x as g } from "../chunks/lit-element.jLBm65_O.js";
14
14
  import { r as n } from "../chunks/state.CSDxrqLd.js";
15
- import { e as H } from "../chunks/query.BBf1UFkC.js";
15
+ import { e as G } from "../chunks/query.BBf1UFkC.js";
16
16
  import { e as w } from "../chunks/class-map.BiVq-cVR.js";
17
17
  import { o as f } from "../chunks/if-defined.BRoBj_Rp.js";
18
- import { c as j } from "../chunks/repeat.CFjcER6_.js";
18
+ import { c as H } from "../chunks/repeat.CFjcER6_.js";
19
19
  import { o as p } from "../chunks/style-map.llVFPd__.js";
20
20
  import { n as I } from "../chunks/when.Dr1es41R.js";
21
- const B = G`:host{isolation:isolate;display:block}.color-swatch{border:1px solid var(--cx-color-neutral-200);justify-content:center;align-items:center;display:flex}.color-swatch:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch--circle{aspect-ratio:1;height:auto;width:var(--swatch-circle-size,var(--swatch-size,350px));min-width:var(--swatch-size,230px);border-radius:var(--swatch-circle-border-radius,var(--cx-border-radius-circle));max-width:100%;overflow:hidden}.color-swatch--oval{height:var(--swatch-circle-size,var(--swatch-size,350px));border-radius:var(--swatch-circle-border-radius,calc(var(--swatch-circle-size,var(--swatch-size,350px)) / 2));width:100%}.color-swatch--grid{width:100%;height:100%;min-width:var(--swatch-grid-min-width,165px);min-height:max(var(--swatch-size,300px), var(--swatch-min-height,50px));border:var(--swatch-border,0px solid transparent);box-shadow:var(--swatch-box-shadow,none);border-radius:var(--swatch-border-radius,var(--cx-border-radius-x-large));border-style:solid;align-items:stretch}.color-swatch__content{max-height:100%;padding:var(--swatch-content-padding,0);justify-content:space-between;gap:var(--cx-spacing-medium)}.color-swatch--circle>.color-swatch__content{min-width:50%;max-width:75%}.color-swatch--oval>.color-swatch__content{max-width:85%}.color-swatch--circle>.color-swatch__content,.color-swatch--oval>.color-swatch__content{align-self:stretch;align-items:var(--swatch-circle-content-align,center);justify-content:var(--swatch-circle-content-justify,center);margin:var(--swatch-circle-content-margin,0)}.color-swatch--grid>.color-swatch__content{justify-content:var(--swatch-content-justify,space-between);width:100%;max-height:none;padding:var(--swatch-content-margin,var(--cx-spacing-medium))}.color-swatch__key::part(base){vertical-align:middle;min-width:50px;height:100%}.color-swatch__key[variant=small]::part(base){display:inline-block}.color-swatch__copy-button::part(button){height:fit-content;min-height:fit-content;padding:0;background:0 0!important;border-width:0!important}.color-swatch__copy-button::part(label){height:fit-content;padding:0}.color-swatch__value{text-transform:none}.color-swatch__value::part(base){word-break:break-word}.color-swatch__value-wrapper{text-align:left}.color-swatch__name,.color-swatch__key,.color-swatch__value{--font-family:var(--swatch-font-family), var(--cx-font-sans);--font-style:var(--swatch-font-style,normal);--font-weight:var(--swatch-font-weight);--font-size:var(--swatch-font-size);--line-height:1.2}`;
21
+ const B = E`:host{isolation:isolate;display:block}.color-swatch{border:1px solid var(--cx-color-neutral-200);justify-content:center;align-items:center;display:flex}.color-swatch:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch--circle{aspect-ratio:1;height:auto;width:var(--swatch-circle-size,var(--swatch-size,350px));min-width:var(--swatch-size,230px);border-radius:var(--swatch-circle-border-radius,var(--cx-border-radius-circle));max-width:100%;overflow:hidden}.color-swatch--oval{height:var(--swatch-circle-size,var(--swatch-size,350px));border-radius:var(--swatch-circle-border-radius,calc(var(--swatch-circle-size,var(--swatch-size,350px)) / 2));width:100%}.color-swatch--grid{width:100%;height:100%;min-width:var(--swatch-grid-min-width,165px);min-height:max(var(--swatch-size,300px), var(--swatch-min-height,50px));border:var(--swatch-border,0px solid transparent);box-shadow:var(--swatch-box-shadow,none);border-radius:var(--swatch-border-radius,var(--cx-border-radius-x-large));border-style:solid;align-items:stretch}.color-swatch__content{max-height:100%;padding:var(--swatch-content-padding,0);justify-content:space-between;gap:var(--cx-spacing-medium)}.color-swatch--circle>.color-swatch__content{min-width:50%;max-width:75%}.color-swatch--oval>.color-swatch__content{max-width:85%}.color-swatch--circle,.color-swatch--oval{justify-content:var(--swatch-circle-content-align,center);align-items:var(--swatch-circle-content-justify,center)}.color-swatch--circle>.color-swatch__content,.color-swatch--oval>.color-swatch__content{align-items:var(--swatch-circle-content-align,center);justify-content:var(--swatch-circle-content-justify,center);margin:var(--swatch-circle-content-margin,0)}.color-swatch--grid>.color-swatch__content{justify-content:var(--swatch-content-justify,space-between);width:100%;max-height:none;padding:var(--swatch-content-margin,var(--cx-spacing-medium))}.color-swatch__key::part(base){vertical-align:middle;min-width:50px;height:100%}.color-swatch__key[variant=small]::part(base){display:inline-block}.color-swatch__copy-button::part(button){height:fit-content;min-height:fit-content;padding:0;background:0 0!important;border-width:0!important}.color-swatch__copy-button::part(label){height:fit-content;padding:0}.color-swatch__value{text-transform:none}.color-swatch__value::part(base){word-break:break-word}.color-swatch__value-wrapper{text-align:left}.color-swatch__name,.color-swatch__key,.color-swatch__value{--font-family:var(--swatch-font-family), var(--cx-font-sans);--font-style:var(--swatch-font-style,normal);--font-weight:var(--swatch-font-weight);--font-size:var(--swatch-font-size);--line-height:1.2}`;
22
22
  var L = Object.defineProperty, D = Object.getOwnPropertyDescriptor, e = (r, i, o, d) => {
23
23
  for (var c = d > 1 ? void 0 : d ? D(i, o) : i, u = r.length - 1, y; u >= 0; u--)
24
24
  (y = r[u]) && (c = (d ? y(i, o, c) : y(c)) || c);
@@ -26,7 +26,7 @@ var L = Object.defineProperty, D = Object.getOwnPropertyDescriptor, e = (r, i, o
26
26
  };
27
27
  let t = class extends $ {
28
28
  constructor() {
29
- super(...arguments), this.localize = new E(this), this.ignoreWatchColorChange = /* @__PURE__ */ new Set(), this.variant = m.Circle, this.name = "", this.hex = "", this.rgb = "", this.cmyk = "", this.pms = "", this.canCopy = !1, this.showCodes = ["HEX", "RGB", "CMYK", "PMS"], this.canFocusCodeOnly = !1, this.noAutoConvert = !1, this.codeAlignment = C.SameLine, this.codeSeparator = z.Comma, this.hexFormat = O.LeadingHash, this.gradientStops = "", this.textColor = "#27272A", this.textVariant = "body2", this.lineClamp = 3, this.backgroundColor = "#F9F9F9", this.canFocusContainer = !0, this.isContainerFocused = !1;
29
+ super(...arguments), this.localize = new j(this), this.ignoreWatchColorChange = /* @__PURE__ */ new Set(), this.variant = m.Circle, this.name = "", this.hex = "", this.rgb = "", this.cmyk = "", this.pms = "", this.canCopy = !1, this.showCodes = ["HEX", "RGB", "CMYK", "PMS"], this.canFocusCodeOnly = !1, this.noAutoConvert = !1, this.codeAlignment = C.SameLine, this.codeSeparator = z.Comma, this.hexFormat = O.LeadingHash, this.gradientStops = "", this.textColor = "#27272A", this.textVariant = "body2", this.lineClamp = 3, this.backgroundColor = "#F9F9F9", this.canFocusContainer = !0, this.isContainerFocused = !1;
30
30
  }
31
31
  runFirstUpdated() {
32
32
  this.handleColorChange();
@@ -114,7 +114,7 @@ let t = class extends $ {
114
114
  ...this.gradientImage ? { backgroundImage: this.gradientImage } : {}
115
115
  })} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut}><cx-space part="content" direction="vertical" class="color-swatch__content"><cx-typography variant="h5" part="name" class="color-swatch__name" style=${p({
116
116
  "--color": this.textColor
117
- })}>${this.name}</cx-typography><cx-space direction="vertical" spacing=${this.rowGap} part="content">${j(
117
+ })}>${this.name}</cx-typography><cx-space direction="vertical" spacing=${this.rowGap} part="content">${H(
118
118
  r,
119
119
  (o) => o.key,
120
120
  (o) => g`<cx-space direction=${i} align-items=${i === "vertical" ? "flex-start" : "center"} spacing=${i === "vertical" ? "3x-small" : "small"} part="item" wrap="nowrap"><cx-typography variant=${this.textVariant} class="color-swatch__key" part="key" style=${p({
@@ -146,7 +146,7 @@ t.dependencies = {
146
146
  "cx-typography": F
147
147
  };
148
148
  e([
149
- H(".color-swatch")
149
+ G(".color-swatch")
150
150
  ], t.prototype, "containerEl", 2);
151
151
  e([
152
152
  a({ reflect: !0, type: String })
@@ -1,5 +1,5 @@
1
- import "../chunks/resizable-component.styles.kMFDlGgv.js";
2
- import { C as b } from "../chunks/document-viewer.BqhrUjS6.js";
1
+ import "../chunks/resizable-component.styles.CxjaYhiB.js";
2
+ import { C as b } from "../chunks/document-viewer.Bqh3JppM.js";
3
3
  import "../chunks/component.styles.CAS3c9pM.js";
4
4
  import "../chunks/index.Cpamj0jB.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
@@ -10,7 +10,7 @@ import "../chunks/state.CSDxrqLd.js";
10
10
  import "../chunks/class-map.BiVq-cVR.js";
11
11
  import "../chunks/when.Dr1es41R.js";
12
12
  import "../chunks/icon.BLXWp6CU.js";
13
- import "../chunks/image.CjdSn_IT.js";
13
+ import "../chunks/image.DAbpXfEy.js";
14
14
  import "../chunks/typography.BLYdTF0n.js";
15
15
  export {
16
16
  b as default
@@ -27,7 +27,7 @@ import yt from "./relative-time.js";
27
27
  import Ft from "./select.js";
28
28
  import Rt from "./space.js";
29
29
  import kt from "./tab.js";
30
- import { C as Ot } from "../chunks/tab-group.D-nBq01A.js";
30
+ import { C as Ot } from "../chunks/tab-group.Ct15ygJ3.js";
31
31
  import Nt from "./tab-panel.js";
32
32
  import bt from "./tooltip.js";
33
33
  import { C as rt } from "../chunks/typography.BLYdTF0n.js";
@@ -1,7 +1,7 @@
1
- import "../chunks/resizable-component.styles.kMFDlGgv.js";
1
+ import "../chunks/resizable-component.styles.CxjaYhiB.js";
2
2
  import "../chunks/component.styles.CAS3c9pM.js";
3
3
  import "../chunks/index.Cpamj0jB.js";
4
- import { C as y } from "../chunks/image.CjdSn_IT.js";
4
+ import { C as y } from "../chunks/image.DAbpXfEy.js";
5
5
  import "../chunks/position-picker.qkbJlboF.js";
6
6
  import "../chunks/custom-element.L4WJXn1j.js";
7
7
  import "../chunks/debounce.DaHuiSGU.js";
@@ -1,7 +1,7 @@
1
1
  import _ from "./grid.js";
2
2
  import f from "./grid-item.js";
3
3
  import { C as v } from "../chunks/icon-button.BXs29IQE.js";
4
- import { C as S } from "../chunks/image.CjdSn_IT.js";
4
+ import { C as S } from "../chunks/image.DAbpXfEy.js";
5
5
  import $ from "./space.js";
6
6
  import C from "./tooltip.js";
7
7
  import { n as s, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
@@ -1,5 +1,5 @@
1
1
  import { C as a } from "../chunks/asset-link-format.CekdzXsS.js";
2
- import { C as t } from "../chunks/color-swatch-group.CF0h4nhA.js";
2
+ import { C as t } from "../chunks/color-swatch-group.lBTDUt_i.js";
3
3
  import { default as C } from "./file-on-demand.js";
4
4
  export {
5
5
  a as CxAssetLinkFormat,
@@ -1,7 +1,7 @@
1
1
  import "./resize-observer.js";
2
2
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import "../chunks/component.styles.CAS3c9pM.js";
4
- import { C as A } from "../chunks/tab-group.D-nBq01A.js";
4
+ import { C as A } from "../chunks/tab-group.Ct15ygJ3.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
6
6
  import "../chunks/i18n.D5L6xAYT.js";
7
7
  import "../chunks/scroll.xtO5yojm.js";
@@ -11,7 +11,7 @@ import { default as S } from "./breadcrumb.js";
11
11
  import { default as D } from "./breadcrumb-item.js";
12
12
  import { C as y } from "../chunks/button.CUeXJXcO.js";
13
13
  import { default as P } from "./button-group.js";
14
- import { default as E } from "./card.js";
14
+ import { default as h } from "./card.js";
15
15
  import { default as L } from "./checkbox.js";
16
16
  import { default as v } from "./color-picker.js";
17
17
  import { default as V } from "./copy-button.js";
@@ -20,7 +20,7 @@ import { default as k } from "./details.js";
20
20
  import { default as N } from "./diff.js";
21
21
  import { C as U } from "../chunks/dialog.C2q9XwLW.js";
22
22
  import { default as X } from "./divider.js";
23
- import { C as K } from "../chunks/document-viewer.BqhrUjS6.js";
23
+ import { C as K } from "../chunks/document-viewer.Bqh3JppM.js";
24
24
  import { C as q } from "../chunks/dot-pagination.BclVUAf7.js";
25
25
  import { default as J } from "./dot-status.js";
26
26
  import { default as Z } from "./drawer.js";
@@ -38,7 +38,7 @@ import { C as Sa } from "../chunks/hub-connection.BtevPWYb.js";
38
38
  import { C as Da } from "../chunks/icon.BLXWp6CU.js";
39
39
  import { C as ya } from "../chunks/icon-button.BXs29IQE.js";
40
40
  import { C as Pa } from "../chunks/iframe.e5XdCox5.js";
41
- import { C as Ea } from "../chunks/image.CjdSn_IT.js";
41
+ import { C as ha } from "../chunks/image.DAbpXfEy.js";
42
42
  import { default as La } from "./image-comparer.js";
43
43
  import { default as va } from "./include.js";
44
44
  import { C as Va } from "../chunks/input.zRoRq5mq.js";
@@ -65,7 +65,7 @@ import { default as Se } from "./rating.js";
65
65
  import { default as De } from "./relative-time.js";
66
66
  import { default as ye } from "./resize-observer.js";
67
67
  import { default as Pe } from "./select.js";
68
- import { default as Ee } from "./skeleton.js";
68
+ import { default as he } from "./skeleton.js";
69
69
  import { default as Le } from "./space.js";
70
70
  import { default as ve } from "./spinner.js";
71
71
  import { default as Ve } from "./split-panel.js";
@@ -73,7 +73,7 @@ import { default as _e } from "./step.js";
73
73
  import { default as ke } from "./stepper.js";
74
74
  import { default as Ne } from "./switch.js";
75
75
  import { default as Ue } from "./tab.js";
76
- import { C as Xe } from "../chunks/tab-group.D-nBq01A.js";
76
+ import { C as Xe } from "../chunks/tab-group.Ct15ygJ3.js";
77
77
  import { default as Ke } from "./tab-panel.js";
78
78
  import { default as qe } from "./tag.js";
79
79
  import { default as Je } from "./textarea.js";
@@ -86,15 +86,15 @@ import { default as mt } from "./visually-hidden.js";
86
86
  import { fontAwesomeIconNames as pt, getAnimationNames as ft, getEasingNames as Ct } from "./atoms.js";
87
87
  import { c as ut } from "../chunks/component.styles.CAS3c9pM.js";
88
88
  import { g as gt, a as Tt, s as At } from "../chunks/animation-registry.HmpwNuGH.js";
89
- import { u as It, v as Dt, V as bt, w as yt, o as Ft, n as Pt, m as ht, Y as Et, Z as Rt, _ as Lt, a0 as Ot, $ as vt, a1 as Bt, a2 as Vt, a3 as Mt, a4 as _t, a5 as Gt, k as kt, W as wt, x as Nt, X as Ht, y as Ut, z as zt, A as Xt, j as Wt, a6 as Kt, B as jt, D as qt, E as Yt, G as Jt, a7 as Qt, h as Zt, H as $t, J as ao, f as eo, S as to, T as oo, a8 as ro, e as so, K as xo, L as io, M as lo, N as mo, P as no, a9 as po, aa as fo, Q as Co, R as uo, ab as co, ac as go, b as To, U as Ao, ad as So, ae as Io } from "../chunks/types.DapQA7MU.js";
89
+ import { u as It, v as Dt, V as bt, w as yt, o as Ft, n as Pt, m as Et, Y as ht, Z as Rt, _ as Lt, a0 as Ot, $ as vt, a1 as Bt, a2 as Vt, a3 as Mt, a4 as _t, a5 as Gt, k as kt, W as wt, x as Nt, X as Ht, y as Ut, z as zt, A as Xt, j as Wt, a6 as Kt, B as jt, D as qt, E as Yt, G as Jt, a7 as Qt, h as Zt, H as $t, J as ao, f as eo, S as to, T as oo, a8 as ro, e as so, K as xo, L as io, M as lo, N as mo, P as no, a9 as po, aa as fo, Q as Co, R as uo, ab as co, ac as go, b as To, U as Ao, ad as So, ae as Io } from "../chunks/types.LleN6Ydu.js";
90
90
  import { default as bo } from "./bicolor-picker.js";
91
91
  import { default as Fo } from "./border-input-group.js";
92
- import { default as ho } from "./color-swatch.js";
92
+ import { default as Eo } from "./color-swatch.js";
93
93
  import { C as Ro } from "../chunks/confirm-popover.CeKZ8dF1.js";
94
94
  import { default as Oo } from "./corner-position-input-group.js";
95
95
  import { default as Bo } from "./cropper.js";
96
96
  import { default as Mo } from "./dynamic-select.js";
97
- import { C as Go, h as ko, i as wo } from "../chunks/color-swatch-group.CF0h4nhA.js";
97
+ import { C as Go, i as ko, j as wo } from "../chunks/color-swatch-group.lBTDUt_i.js";
98
98
  import { C as Ho } from "../chunks/folder-select.DZZTtdAO.js";
99
99
  import { default as zo } from "./masonry.js";
100
100
  import { default as Wo } from "./padding-input-group.js";
@@ -108,10 +108,10 @@ import { default as sr } from "./typeface.js";
108
108
  import { C as ir } from "../chunks/asset-link-format.CekdzXsS.js";
109
109
  import { default as mr } from "./file-on-demand.js";
110
110
  import { C as pr, E as fr, b as Cr, G as dr, a as ur, O as cr, T as gr } from "../chunks/index.Cpamj0jB.js";
111
- import { CortexPopupController as Ar, DateRangePresets as Sr, DragScroll as Ir, HistoryManager as Dr, KeyboardKey as br, PRECISION as yr, downloadAsset as Fr, extractFrames as Pr, findFrameByColAndRow as hr, getBrowserFontVariants as Er, getFontFamilyOptionValue as Rr, getFontFamilyVariants as Lr, getFormControls as Or, getInterval as vr, getTypefaceOptionValue as Br, insertFrameToCache as Vr, isFontFamilyAvailable as Mr, isFormInteracted as _r, isModKey as Gr, isoWeekNumber as kr, omit as wr, openAssetOverview as Nr, openFolderOverview as Hr, openLink as Ur, parseJsonString as zr, parseListString as Xr, pick as Wr, quoteFontFamily as Kr, readLocalStorageValue as jr, serialize as qr, shareAsset as Yr, sortTypefaceVariants as Jr, testFontAvailability as Qr, unquoteFontFamily as Zr, writeLocalStorageValue as $r } from "../utils.js";
111
+ import { CortexPopupController as Ar, DateRangePresets as Sr, DragScroll as Ir, HistoryManager as Dr, KeyboardKey as br, PRECISION as yr, downloadAsset as Fr, extractFrames as Pr, findFrameByColAndRow as Er, getBrowserFontVariants as hr, getFontFamilyOptionValue as Rr, getFontFamilyVariants as Lr, getFormControls as Or, getInterval as vr, getTypefaceOptionValue as Br, insertFrameToCache as Vr, isFontFamilyAvailable as Mr, isFormInteracted as _r, isModKey as Gr, isoWeekNumber as kr, omit as wr, openAssetOverview as Nr, openFolderOverview as Hr, openLink as Ur, parseJsonString as zr, parseListString as Xr, pick as Wr, quoteFontFamily as Kr, readLocalStorageValue as jr, serialize as qr, shareAsset as Yr, sortTypefaceVariants as Jr, testFontAvailability as Qr, unquoteFontFamily as Zr, writeLocalStorageValue as $r } from "../utils.js";
112
112
  import { e as es, f as ts, g as os, c as rs, i as ss, a as xs, d as is, m as ls, b as ms, r as ns, t as ps } from "../chunks/toast.D3AW3RWv.js";
113
113
  import { e as Cs, a as ds, f as us, g as cs, d as gs, b as Ts, c as As, i as Ss, p as Is, s as Ds } from "../chunks/browser.BHOCIF_A.js";
114
- import { k as ys, e as Fs, m as Ps, H as hs, R as Es, d as Rs, o as Ls, g as Os, f as vs, n as Bs, h as Vs, l as Ms, i as _s, p as Gs, j as ks } from "../chunks/color.CIHdfM_a.js";
114
+ import { k as ys, e as Fs, m as Ps, H as Es, R as hs, d as Rs, o as Ls, g as Os, f as vs, n as Bs, h as Vs, l as Ms, i as _s, p as Gs, j as ks } from "../chunks/color.CIHdfM_a.js";
115
115
  import { a as Ns, g as Hs } from "../chunks/active-elements.jTVWtBDp.js";
116
116
  import { a as zs, p as Xs, c as Ws, b as Ks, s as js, w as qs } from "../chunks/event.BeKOsirN.js";
117
117
  import { t as Js } from "../chunks/converters.DkDtLstb.js";
@@ -125,21 +125,21 @@ import { L as ux, r as cx } from "../chunks/i18n.D5L6xAYT.js";
125
125
  import { c as Tx, q as Ax } from "../chunks/math.DuKzLacZ.js";
126
126
  import { g as Ix } from "../chunks/modal.Ct0bJBSe.js";
127
127
  import { g as bx, l as yx, s as Fx, u as Px } from "../chunks/scroll.xtO5yojm.js";
128
- import { H as Ex, a as Rx, g as Lx } from "../chunks/slot.j5oheLJC.js";
128
+ import { H as hx, a as Rx, g as Lx } from "../chunks/slot.j5oheLJC.js";
129
129
  import { a as vx, g as Bx } from "../chunks/tabbable.BwnZBHrm.js";
130
130
  import { i as Mx } from "../chunks/user-agent.D9aPuOyL.js";
131
131
  import { w as Gx } from "../chunks/watch.DJF5K-8U.js";
132
132
  import { C as wx } from "../chunks/calendar-grid.BWjcZL5W.js";
133
133
  import { b as Hx, c as Ux, f as zx, h as Xx, g as Wx, a as Kx, i as jx, d as qx, n as Yx, e as Jx, p as Qx, t as Zx } from "../chunks/date.iWq_pkIk.js";
134
134
  import { c as ai, d as ei, h as ti, m as oi, k as ri, a as si, g as xi, j as ii, b as li, f as mi, i as ni, e as pi, l as fi, r as Ci, s as di } from "../chunks/dom.D0lSUoEI.js";
135
- import { i as ci, A as gi, j as Ti, S as Ai, a as Si, g as Ii, b as Di, e as bi, d as yi, f as Fi, h as Pi, k as hi, p as Ei, r as Ri, c as Li } from "../chunks/transformation.BwQ_H-4q.js";
135
+ import { i as ci, A as gi, j as Ti, S as Ai, a as Si, g as Ii, b as Di, e as bi, d as yi, f as Fi, h as Pi, k as Ei, p as hi, r as Ri, c as Li } from "../chunks/transformation.BwQ_H-4q.js";
136
136
  import { M as vi, c as Bi, e as Vi, i as Mi, n as _i, p as Gi, b as ki, s as wi, d as Ni } from "../chunks/gradient.CIzq8fOU.js";
137
137
  import { c as Ui, f as zi, e as Xi, b as Wi, g as Ki, d as ji, i as qi, r as Yi, a as Ji } from "../chunks/image.Y5c_hFx8.js";
138
138
  import { b as Zi, e as $i } from "../chunks/waveform.1U9U_0rd.js";
139
139
  import { c as el, b as tl, a as ol, e as rl, d as sl, f as xl, g as il, r as ll, s as ml } from "../chunks/number.Cx2ncfJJ.js";
140
140
  import { s as pl } from "../chunks/parse.Cu5nBDTb.js";
141
141
  import { D as Cl, g as dl, a as ul } from "../chunks/responsive.DqF_v1XY.js";
142
- import { b as gl, n as Tl, d as Al, e as Sl, f as Il, y as Dl, o as bl, g as yl, h as Fl, l as Pl, p as hl, z as El, x as Rl, a as Ll, c as Ol, s as vl, w as Bl, r as Vl, t as Ml, q as _l, v as Gl, i as kl, m as wl, u as Nl } from "../chunks/string.CfI2ejyR.js";
142
+ import { b as gl, n as Tl, d as Al, e as Sl, f as Il, y as Dl, o as bl, g as yl, h as Fl, l as Pl, p as El, z as hl, x as Rl, a as Ll, c as Ol, s as vl, w as Bl, r as Vl, t as Ml, q as _l, v as Gl, i as kl, m as wl, u as Nl } from "../chunks/string.CfI2ejyR.js";
143
143
  import { g as Ul, a as zl } from "../chunks/template.ClovJacp.js";
144
144
  import { c as Wl, f as Kl, a as jl, g as ql } from "../chunks/time.DYWuX2id.js";
145
145
  import { R as Jl, f as Ql, g as Zl, h as $l, U as am, b as em, a as tm, d as om, c as rm, i as sm, r as xm, t as im, e as lm } from "../chunks/url.CGdWC06g.js";
@@ -167,11 +167,11 @@ export {
167
167
  Ft as CxAssetFormatPicker,
168
168
  ir as CxAssetLinkFormat,
169
169
  Pt as CxAssetPicker,
170
- ht as CxAssetTransformationDialog,
170
+ Et as CxAssetTransformationDialog,
171
171
  f as CxAudio,
172
172
  d as CxAvatar,
173
173
  c as CxBadge,
174
- Et as CxBentoGrid,
174
+ ht as CxBentoGrid,
175
175
  bo as CxBicolorPicker,
176
176
  Fo as CxBorderInputGroup,
177
177
  T as CxBox,
@@ -180,14 +180,14 @@ export {
180
180
  y as CxButton,
181
181
  P as CxButtonGroup,
182
182
  Rt as CxCapacityPlanner,
183
- E as CxCard,
183
+ h as CxCard,
184
184
  Lt as CxCarousel,
185
185
  Ot as CxChartPlanBuilder,
186
186
  vt as CxChatbot,
187
187
  L as CxCheckbox,
188
188
  Bt as CxClusterManagement,
189
189
  v as CxColorPicker,
190
- ho as CxColorSwatch,
190
+ Eo as CxColorSwatch,
191
191
  Go as CxColorSwatchGroup,
192
192
  Vt as CxComment,
193
193
  Mt as CxCommentV1,
@@ -242,7 +242,7 @@ export {
242
242
  ya as CxIconButton,
243
243
  eo as CxIconPicker,
244
244
  Pa as CxIframe,
245
- Ea as CxImage,
245
+ ha as CxImage,
246
246
  La as CxImageComparer,
247
247
  va as CxInclude,
248
248
  Va as CxInput,
@@ -286,7 +286,7 @@ export {
286
286
  Qo as CxShareOptionList,
287
287
  $o as CxSidebar,
288
288
  er as CxSizeInputGroup,
289
- Ee as CxSkeleton,
289
+ he as CxSkeleton,
290
290
  Le as CxSpace,
291
291
  po as CxSpaceSelector,
292
292
  fo as CxSpecialCharactersDialog,
@@ -324,8 +324,8 @@ export {
324
324
  lx as FormControlController,
325
325
  dr as GsapEasing,
326
326
  Ps as HEX_ALPHA_VALIDATION_REGEX,
327
- hs as HEX_VALIDATION_REGEX,
328
- Ex as HasSlotController,
327
+ Es as HEX_VALIDATION_REGEX,
328
+ hx as HasSlotController,
329
329
  Dr as HistoryManager,
330
330
  Io as IconPickerVariant,
331
331
  br as KeyboardKey,
@@ -337,7 +337,7 @@ export {
337
337
  yr as PRECISION,
338
338
  Cm as PositionPickerValue,
339
339
  Jl as RELATIVE_URL_REGEX,
340
- Es as RGB_VALIDATION_REGEX,
340
+ hs as RGB_VALIDATION_REGEX,
341
341
  Ai as SRCSET_WIDTH_LADDER,
342
342
  gr as TransitionType,
343
343
  Ql as URL_DOMAIN_VALIDATION_REGEX,
@@ -387,7 +387,7 @@ export {
387
387
  Cs as findAncestorWithBuggyStyle,
388
388
  ds as findContainingBlock,
389
389
  us as findCuttingAncestor,
390
- hr as findFrameByColAndRow,
390
+ Er as findFrameByColAndRow,
391
391
  ts as findIndexByProp,
392
392
  xx as focusWhenVisible,
393
393
  pt as fontAwesomeIconNames,
@@ -411,7 +411,7 @@ export {
411
411
  ti as getAttributes,
412
412
  bl as getAttributesString,
413
413
  dl as getBreakpointsFromCSS,
414
- Er as getBrowserFontVariants,
414
+ hr as getBrowserFontVariants,
415
415
  Bs as getColorType,
416
416
  Ki as getContainedImageSize,
417
417
  oi as getCortexPopupLayer,
@@ -482,19 +482,19 @@ export {
482
482
  Nr as openAssetOverview,
483
483
  Hr as openFolderOverview,
484
484
  Ur as openLink,
485
- hl as padPath,
486
- El as parseBooleanString,
485
+ El as padPath,
486
+ hl as parseBooleanString,
487
487
  _s as parseBorder,
488
488
  Jx as parseDisplayToIso,
489
489
  Xs as parseDuration,
490
- hi as parseFileSizeToBytes,
490
+ Ei as parseFileSizeToBytes,
491
491
  Gi as parseGradient,
492
492
  Qx as parseIsoDate,
493
493
  zr as parseJsonString,
494
494
  Gs as parseLightDark,
495
495
  Xr as parseListString,
496
496
  ks as parseShadow,
497
- Ei as parseTransformations,
497
+ hi as parseTransformations,
498
498
  Wr as pick,
499
499
  Is as popoverSupported,
500
500
  Ws as prefersReducedMotion,
@@ -1,9 +1,9 @@
1
1
  import { _ as Bd, a as Ca, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as vs, a as Fn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Cb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Mb } from "../chunks/image.CjdSn_IT.js";
4
+ import { C as Mb } from "../chunks/image.DAbpXfEy.js";
5
5
  import Db from "./resize-observer.js";
6
- import { r as Pb, R as Lb, b as Ip, a as Rb } from "../chunks/resizable-component.styles.kMFDlGgv.js";
6
+ import { r as Pb, R as Lb, b as Ip, a as Rb } from "../chunks/resizable-component.styles.CxjaYhiB.js";
7
7
  import { c as Ib } from "../chunks/component.styles.CAS3c9pM.js";
8
8
  import { a as Ui } from "../chunks/index.Cpamj0jB.js";
9
9
  import { P as Ob, O as kb } from "../chunks/position-picker.qkbJlboF.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.28.0",
4
+ "version": "3.30.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -51,6 +51,7 @@ export default class CxTabGroup extends CortexElement {
51
51
  private readonly localize;
52
52
  private mutationObserver;
53
53
  private resizeObserver;
54
+ private lastTabGap?;
54
55
  private panelResizeObserver?;
55
56
  /**
56
57
  * The IntersectionObserver from the most recent syncTabsAndPanels() call. syncTabsAndPanels() can be triggered
@@ -71,6 +71,7 @@ export default class CxIconPicker extends CortexElement {
71
71
  */
72
72
  private static loadIconsData;
73
73
  private readonly localize;
74
+ private hasReportedValidity;
74
75
  private readonly select;
75
76
  private readonly customOption;
76
77
  private readonly dropdown?;
@@ -82,6 +83,11 @@ export default class CxIconPicker extends CortexElement {
82
83
  * Adds a clear button when the select is not empty.
83
84
  */
84
85
  clearable: boolean;
86
+ /**
87
+ * Requires an uploaded image when custom is selected in select mode.
88
+ * @default false
89
+ */
90
+ requireCustomIcon: boolean;
85
91
  /**
86
92
  * Controls the visual variant of the icon picker.
87
93
  * In 'select' mode a cx-select is rendered inline.
@@ -152,8 +158,8 @@ export default class CxIconPicker extends CortexElement {
152
158
  onRequestAsset: ((type: AssetTypeString, multiple?: boolean) => Promise<Asset | Record<string, Asset>>) | undefined;
153
159
  searchTerm: string;
154
160
  /**
155
- * Need to mount or unmount virtualizer when select is shown or hidden
156
- * Since the virtualizer have a defect that not re-render when the parent is hidden once
161
+ * Recreate the virtualizer for each open because it does not reliably
162
+ * re-render after being measured inside a hidden parent.
157
163
  */
158
164
  private showVirtualizer;
159
165
  private get filteredCortexIcons();
@@ -161,7 +167,13 @@ export default class CxIconPicker extends CortexElement {
161
167
  private get virtualListItems();
162
168
  constructor();
163
169
  runFirstUpdated(): void;
170
+ /** Checks the custom image requirement without displaying an error. */
171
+ checkValidity(): boolean;
172
+ /** Called by the containing form when reporting errors on save. */
173
+ reportValidity(): boolean;
164
174
  handleVariantChange(): Promise<void>;
175
+ handleCustomIconValidation(): Promise<void>;
176
+ private updateCustomIconValidity;
165
177
  renderOption(item: IconData): import('lit').TemplateResult<1> | typeof nothing;
166
178
  private renderMenuItem;
167
179
  private handleSelectValueChange;
@@ -183,7 +195,7 @@ export default class CxIconPicker extends CortexElement {
183
195
  private ensureIconsData;
184
196
  private showVirtualizerWhenReady;
185
197
  private handleSelectShow;
186
- private handleSelectHide;
198
+ private handleSelectBeforeShow;
187
199
  private handleDropdownShow;
188
200
  private handleDropdownHide;
189
201
  handleContentBuilderAssetSelect(event: CxAssetPickerSelectEvent): Promise<void>;
@@ -75,10 +75,7 @@ export default class CxColorSwatchPicker extends CortexElement {
75
75
  * The block's custom columns, one labelled input each in the color dialog.
76
76
  */
77
77
  customColumns: ColorSwatchCustomColumn[];
78
- /**
79
- * Shows the Meta data section. Off by default: a metadata field is a table
80
- * column, which only the Table variant renders.
81
- */
78
+ /** Shows the Meta data section in the color dialog. */
82
79
  showMetadata: boolean;
83
80
  /**
84
81
  * The type of dialog to open since it can be either add new or edit from row selection.
@@ -223,6 +220,12 @@ export default class CxColorSwatchPicker extends CortexElement {
223
220
  private handleTableRowMoved;
224
221
  private handleTableRowDeleted;
225
222
  private renderControls;
223
+ /** Copies a color's metadata onto the flat `custom-<id>` keys the columns read. */
224
+ private flattenMetadata;
225
+ /** Built-in columns plus one per declared custom column. */
226
+ private get tableColumns();
227
+ /** Colors with their metadata flattened onto the custom column fields. */
228
+ private get tableData();
226
229
  render(): import('lit').TemplateResult<1>;
227
230
  }
228
231
  declare global {
@@ -6764,6 +6764,10 @@
6764
6764
  * Adds a clear button when the select is not empty.
6765
6765
  */
6766
6766
  clearable?: boolean;
6767
+ /**
6768
+ * Requires an uploaded image when custom is selected in select mode. <br/>@default false
6769
+ */
6770
+ requireCustomIcon?: boolean;
6767
6771
  /**
6768
6772
  * Controls the visual variant of the icon picker. In 'select' mode a cx-select is rendered inline. In 'button' mode a cx-button trigger opens a cx-dropdown panel with a search input and icon list. <br/>@default 'select'
6769
6773
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.28.0",
4
+ "version": "3.30.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {