@orangelogic/design-system 2.35.0 → 2.36.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 (59) hide show
  1. package/library/chunks/{file-on-demand.JybCAzD6.js → file-on-demand.Dhx3uvPA.js} +1 -1
  2. package/library/chunks/tab-group.B8-_uSUK.js +3575 -0
  3. package/library/components/atoms.js +1 -1
  4. package/library/components/file-on-demand.js +2 -2
  5. package/library/components/organisms.js +1 -1
  6. package/library/components/tab-group.js +1 -1
  7. package/library/components/tab.js +60 -71
  8. package/library/components/types.js +41117 -43746
  9. package/library/package.json +1 -1
  10. package/library/packages/atoms/src/components/tab/tab.d.ts +2 -0
  11. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +2 -1
  12. package/library/packages/events/src/cx-tab-group-pagination-change.d.ts +8 -0
  13. package/library/packages/events/src/events.d.ts +1 -0
  14. package/library/packages/molecules/src/timeline/timeline.d.ts +2 -0
  15. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +1 -0
  16. package/library/packages/organisms/src/content-builder/configs/analytics.d.ts +1 -0
  17. package/library/packages/organisms/src/content-builder/configs/button.d.ts +1 -0
  18. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
  19. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +1 -0
  20. package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +1 -0
  21. package/library/packages/organisms/src/content-builder/configs/column.d.ts +1 -0
  22. package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
  23. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +1 -0
  24. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
  25. package/library/packages/organisms/src/content-builder/configs/header.d.ts +1 -0
  26. package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
  27. package/library/packages/organisms/src/content-builder/configs/rich-text.d.ts +5 -2
  28. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +1 -0
  29. package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +1 -0
  30. package/library/packages/organisms/src/content-builder/configs/text.d.ts +1 -0
  31. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  32. package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
  33. package/library/packages/organisms/src/content-builder/{configsController.d.ts → configs-controller.d.ts} +1 -0
  34. package/library/packages/organisms/src/content-builder/plugins/accordion.d.ts +2 -11
  35. package/library/packages/organisms/src/content-builder/plugins/analytics.d.ts +2 -10
  36. package/library/packages/organisms/src/content-builder/plugins/button.d.ts +2 -11
  37. package/library/packages/organisms/src/content-builder/plugins/carousel.d.ts +2 -11
  38. package/library/packages/organisms/src/content-builder/plugins/color-swatches.d.ts +2 -12
  39. package/library/packages/organisms/src/content-builder/plugins/column-group.d.ts +2 -11
  40. package/library/packages/organisms/src/content-builder/plugins/column.d.ts +3 -12
  41. package/library/packages/organisms/src/content-builder/plugins/divider.d.ts +2 -11
  42. package/library/packages/organisms/src/content-builder/plugins/font-kit.d.ts +2 -11
  43. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +2 -11
  44. package/library/packages/organisms/src/content-builder/plugins/header.d.ts +2 -11
  45. package/library/packages/organisms/src/content-builder/plugins/image.d.ts +2 -11
  46. package/library/packages/organisms/src/content-builder/plugins/plugin-factory.d.ts +20 -0
  47. package/library/packages/organisms/src/content-builder/plugins/search-box.d.ts +2 -11
  48. package/library/packages/organisms/src/content-builder/plugins/tab-group.d.ts +2 -11
  49. package/library/packages/organisms/src/content-builder/plugins/text.d.ts +2 -11
  50. package/library/packages/organisms/src/content-builder/plugins/timeline.d.ts +2 -11
  51. package/library/packages/organisms/src/content-builder/plugins/utils/details.d.ts +7 -0
  52. package/library/packages/organisms/src/content-builder/plugins/video.d.ts +2 -11
  53. package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +2 -2
  54. package/library/packages/organisms/src/video-editor/video-editor.d.ts +3 -3
  55. package/library/packages/types/src/tab-group.d.ts +2 -1
  56. package/library/packages/types/src/video-editor.d.ts +1 -0
  57. package/library/react-web-component.d.ts +6 -2
  58. package/package.json +1 -1
  59. package/library/chunks/tab-group.DyzM7DYO.js +0 -1236
@@ -64,7 +64,7 @@ import { default as Ro } from "./step.js";
64
64
  import { default as Do } from "./stepper.js";
65
65
  import { default as yo } from "./switch.js";
66
66
  import { default as Mo } from "./tab.js";
67
- import { C as Oo } from "../chunks/tab-group.DyzM7DYO.js";
67
+ import { C as Oo } from "../chunks/tab-group.B8-_uSUK.js";
68
68
  import { C as wo } from "../chunks/table.gTz8KEoo.js";
69
69
  import { default as Fo } from "./tab-panel.js";
70
70
  import { default as No } from "./tag.js";
@@ -1,4 +1,4 @@
1
- import { C as J } from "../chunks/file-on-demand.JybCAzD6.js";
1
+ import { C as J } from "../chunks/file-on-demand.Dhx3uvPA.js";
2
2
  import "./avatar.js";
3
3
  import "../chunks/button.DrU92LJQ.js";
4
4
  import "../chunks/dialog.C_sl1iWk.js";
@@ -14,7 +14,7 @@ import "./relative-time.js";
14
14
  import "../chunks/select.BYVsaIIH.js";
15
15
  import "./space.js";
16
16
  import "./tab.js";
17
- import "../chunks/tab-group.DyzM7DYO.js";
17
+ import "../chunks/tab-group.B8-_uSUK.js";
18
18
  import "./tab-panel.js";
19
19
  import "./tooltip.js";
20
20
  import "../chunks/tree.BcFl8OPo.js";
@@ -1,6 +1,6 @@
1
1
  import { default as a } from "./asset-link-format.js";
2
2
  import { C as t } from "../chunks/color-swatch-group.CC1EASIg.js";
3
- import { C } from "../chunks/file-on-demand.JybCAzD6.js";
3
+ import { C } from "../chunks/file-on-demand.Dhx3uvPA.js";
4
4
  export {
5
5
  a as CxAssetLinkFormat,
6
6
  t as CxColorSwatchGroup,
@@ -1,7 +1,7 @@
1
1
  import "./resize-observer.js";
2
2
  import "../chunks/custom-element.fmLrnDZr.js";
3
3
  import "../chunks/component.styles.DtouHn2g.js";
4
- import { C as w } from "../chunks/tab-group.DyzM7DYO.js";
4
+ import { C as w } from "../chunks/tab-group.B8-_uSUK.js";
5
5
  import "../chunks/i18n.D33BKrRs.js";
6
6
  import "../chunks/scroll.DwPiX2Ox.js";
7
7
  import "../chunks/watch.BCJD77bD.js";
@@ -1,10 +1,10 @@
1
- import { i as b, n as l, C as u, x as m, c as v } from "../chunks/custom-element.fmLrnDZr.js";
1
+ import { i as b, n as a, C as v, x as d, c as u } from "../chunks/custom-element.fmLrnDZr.js";
2
2
  import { c as h } from "../chunks/component.styles.DtouHn2g.js";
3
- import { L as f } from "../chunks/i18n.D33BKrRs.js";
4
- import { H as x } from "../chunks/slot.DJLm4Dig.js";
3
+ import { L as x } from "../chunks/i18n.D33BKrRs.js";
4
+ import { H as f } from "../chunks/slot.DJLm4Dig.js";
5
5
  import { w as p } from "../chunks/watch.BCJD77bD.js";
6
6
  import { e as _ } from "../chunks/query.BBf1UFkC.js";
7
- import { e as r } from "../chunks/class-map.DqNfBvJI.js";
7
+ import { e as n } from "../chunks/class-map.DqNfBvJI.js";
8
8
  import g from "./icon-button.js";
9
9
  import y from "./line-clamp.js";
10
10
  const w = b`
@@ -98,7 +98,6 @@ const w = b`
98
98
  .timeline-item {
99
99
  display: flex;
100
100
  flex-direction: column;
101
- align-items: center;
102
101
  gap: var(--cx-spacing-small);
103
102
  font-family: var(--cx-font-sans);
104
103
  font-size: var(--timeline-item-font-size, var(--cx-font-size-small));
@@ -116,13 +115,31 @@ const w = b`
116
115
  var(--transition-speed) box-shadow,
117
116
  var(--transition-speed) color;
118
117
  max-width: var(--tab-max-width, none);
118
+ position: relative;
119
+ }
120
+
121
+ .timeline-item--single {
122
+ align-items: center;
119
123
  }
120
124
 
121
125
  .timeline-item__content {
126
+ --timeline-item-content-width: max(min(120px, 100%), var(--marker-image-width));
127
+
122
128
  display: flex;
123
129
  align-items: center;
124
130
  flex-direction: column;
125
131
  gap: var(--cx-spacing-x-large);
132
+ position: relative;
133
+ left: calc(
134
+ var(--i) / (var(--n) - 1) *
135
+ (100% - var(--timeline-item-content-width))
136
+ );
137
+ transition: left 500ms linear;
138
+ width: var(--timeline-item-content-width);
139
+ }
140
+
141
+ :host(:last-of-type) .timeline-item__content {
142
+ transition: none;
126
143
  }
127
144
 
128
145
  .timeline-item__label {
@@ -181,7 +198,7 @@ const w = b`
181
198
  object-fit: cover;
182
199
  }
183
200
 
184
- .timeline-indicator {
201
+ .timeline-item__indicator {
185
202
  position: relative;
186
203
  display: flex;
187
204
  align-items: center;
@@ -190,7 +207,7 @@ const w = b`
190
207
  isolation: isolate;
191
208
  }
192
209
 
193
- .timeline-indicator__dot {
210
+ .timeline-item__indicator__dot {
194
211
  width: var(--cx-spacing-small);
195
212
  height: var(--cx-spacing-small);
196
213
  border-radius: var(--cx-border-radius-circle);
@@ -199,35 +216,10 @@ const w = b`
199
216
  z-index: 1;
200
217
  }
201
218
 
202
- .timeline-indicator__dot--active:not(.timeline-indicator__dot--disabled),
203
- :host(:hover) .timeline-indicator__dot:not(.timeline-indicator__dot--disabled) {
219
+ .timeline-item__indicator__dot--active:not(.timeline-item__indicator__dot--disabled),
220
+ :host(:hover) .timeline-item__indicator__dot:not(.timeline-item__indicator__dot--disabled) {
204
221
  background-color: var(--marker-active-color);
205
222
  }
206
-
207
- .timeline-indicator__line {
208
- position: absolute;
209
- top: 50%;
210
- left: 50%;
211
- transform: translate(-50%, -50%);
212
- width: 100%;
213
- height: 2px;
214
- background-color: var(--cx-color-neutral-300);
215
- display: block;
216
- }
217
-
218
- .timeline-indicator__line--first,
219
- .timeline-indicator__line--last {
220
- transform: translate(0, -50%);
221
- width: 50%;
222
- }
223
-
224
- .timeline-indicator__line--first {
225
- left: 50%;
226
- }
227
-
228
- .timeline-indicator__line--last {
229
- left: 0;
230
- }
231
223
  `, C = b`
232
224
  :host {
233
225
  display: inline-block;
@@ -253,14 +245,14 @@ const w = b`
253
245
 
254
246
  ${k}
255
247
  `;
256
- var $ = Object.defineProperty, z = Object.getOwnPropertyDescriptor, e = (i, o, s, n) => {
257
- for (var a = n > 1 ? void 0 : n ? z(o, s) : o, c = i.length - 1, d; c >= 0; c--)
258
- (d = i[c]) && (a = (n ? d(o, s, a) : d(a)) || a);
259
- return n && a && $(o, s, a), a;
248
+ var $ = Object.defineProperty, z = Object.getOwnPropertyDescriptor, e = (i, r, s, o) => {
249
+ for (var l = o > 1 ? void 0 : o ? z(r, s) : r, c = i.length - 1, m; c >= 0; c--)
250
+ (m = i[c]) && (l = (o ? m(r, s, l) : m(l)) || l);
251
+ return o && l && $(r, s, l), l;
260
252
  };
261
- let I = 0, t = class extends u {
253
+ let I = 0, t = class extends v {
262
254
  constructor() {
263
- super(...arguments), this.localize = new f(this), this.hasSlotController = new x(this, "thumbnail"), this.attrId = ++I, this.componentId = `cx-tab-${this.attrId}`, this.panel = "", this.active = !1, this.closable = !1, this.disabled = !1, this.tabIndex = 0, this.first = !1, this.last = !1;
255
+ super(...arguments), this.localize = new x(this), this.hasSlotController = new f(this, "thumbnail"), this.attrId = ++I, this.componentId = `cx-tab-${this.attrId}`, this.panel = "", this.active = !1, this.closable = !1, this.disabled = !1, this.tabIndex = 0, this.first = !1, this.last = !1, this.single = !1;
264
256
  }
265
257
  runFirstUpdated() {
266
258
  this.setAttribute("role", "tab");
@@ -275,10 +267,10 @@ let I = 0, t = class extends u {
275
267
  this.setAttribute("aria-disabled", this.disabled ? "true" : "false"), this.disabled && !this.active ? this.tabIndex = -1 : this.tabIndex = 0;
276
268
  }
277
269
  renderNormalTab(i) {
278
- return m`
270
+ return d`
279
271
  <div
280
272
  part="base"
281
- class=${r({
273
+ class=${n({
282
274
  tab: !0,
283
275
  "tab--active": this.active,
284
276
  "tab--closable": this.closable,
@@ -289,7 +281,7 @@ let I = 0, t = class extends u {
289
281
  <cx-line-clamp part="label" class="tab__label" lines="1">
290
282
  <slot></slot>
291
283
  </cx-line-clamp>
292
- ${this.closable ? m`
284
+ ${this.closable ? d`
293
285
  <cx-icon-button
294
286
  part="close-button"
295
287
  exportparts="base:close-button__base"
@@ -304,38 +296,32 @@ let I = 0, t = class extends u {
304
296
  `;
305
297
  }
306
298
  renderTimelineTab() {
307
- return m`
308
- <div class="timeline-indicator">
309
- <div
310
- class=${r({
311
- "timeline-indicator__dot": !0,
312
- "timeline-indicator__dot--active": this.active,
313
- "timeline-indicator__dot--disabled": this.disabled
314
- })}
315
- ></div>
316
- <div
317
- class=${r({
318
- "timeline-indicator__line": !0,
319
- "timeline-indicator__line--first": this.first,
320
- "timeline-indicator__line--last": this.last
321
- })}
322
- ></div>
323
- </div>
299
+ return d`
324
300
  <div
325
301
  part="base"
326
- class=${r({
302
+ class=${n({
327
303
  "timeline-item": !0,
328
304
  "timeline-item--active": this.active,
329
- "timeline-item--disabled": this.disabled
305
+ "timeline-item--disabled": this.disabled,
306
+ "timeline-item--single": this.single
330
307
  })}
331
308
  >
332
309
  <div class="timeline-item__content">
310
+ <div class="timeline-item__indicator">
311
+ <div
312
+ class=${n({
313
+ "timeline-item__indicator__dot": !0,
314
+ "timeline-item__indicator__dot--active": this.active,
315
+ "timeline-item__indicator__dot--disabled": this.disabled
316
+ })}
317
+ ></div>
318
+ </div>
333
319
  <cx-line-clamp part="label" class="timeline-item__label" lines="1">
334
320
  <slot></slot>
335
321
  </cx-line-clamp>
336
322
  <slot
337
323
  name="thumbnail"
338
- class=${r({
324
+ class=${n({
339
325
  "timeline-item__thumbnail": !0,
340
326
  "timeline-item__thumbnail--empty": !this.hasSlotController.test("thumbnail")
341
327
  })}
@@ -364,26 +350,29 @@ e([
364
350
  _(".tab")
365
351
  ], t.prototype, "tab", 2);
366
352
  e([
367
- l({ reflect: !0 })
353
+ a({ reflect: !0 })
368
354
  ], t.prototype, "panel", 2);
369
355
  e([
370
- l({ reflect: !0, type: Boolean })
356
+ a({ reflect: !0, type: Boolean })
371
357
  ], t.prototype, "active", 2);
372
358
  e([
373
- l({ reflect: !0, type: Boolean })
359
+ a({ reflect: !0, type: Boolean })
374
360
  ], t.prototype, "closable", 2);
375
361
  e([
376
- l({ reflect: !0, type: Boolean })
362
+ a({ reflect: !0, type: Boolean })
377
363
  ], t.prototype, "disabled", 2);
378
364
  e([
379
- l({ attribute: "tabindex", reflect: !0, type: Number })
365
+ a({ attribute: "tabindex", reflect: !0, type: Number })
380
366
  ], t.prototype, "tabIndex", 2);
381
367
  e([
382
- l({ reflect: !0, type: Boolean })
368
+ a({ reflect: !0, type: Boolean })
383
369
  ], t.prototype, "first", 2);
384
370
  e([
385
- l({ reflect: !0, type: Boolean })
371
+ a({ reflect: !0, type: Boolean })
386
372
  ], t.prototype, "last", 2);
373
+ e([
374
+ a({ reflect: !0, type: Boolean })
375
+ ], t.prototype, "single", 2);
387
376
  e([
388
377
  p("active")
389
378
  ], t.prototype, "handleActiveChange", 1);
@@ -391,7 +380,7 @@ e([
391
380
  p("disabled")
392
381
  ], t.prototype, "handleDisabledChange", 1);
393
382
  t = e([
394
- v("cx-tab")
383
+ u("cx-tab")
395
384
  ], t);
396
385
  export {
397
386
  t as default