@orangelogic/design-system 3.69.0 → 3.71.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 (71) hide show
  1. package/library/chunks/{asset-link-format.Dc3DkBm6.js → asset-link-format.TGRmDDv4.js} +3 -3
  2. package/library/chunks/{bicolor-picker.DLit8i5-.js → bicolor-picker.B_VAZjuh.js} +1 -1
  3. package/library/chunks/{block-width.CloTv8Nc.js → block-width.yw878pcU.js} +21 -21
  4. package/library/chunks/{border-input-group.DAbtCm-7.js → border-input-group.xRq1PEcA.js} +2 -2
  5. package/library/chunks/{color-picker.DIwN3_iC.js → color-picker.B6pXgpRC.js} +4 -4
  6. package/library/chunks/{color-swatch-group.AJ5xpLiw.js → color-swatch-group.D5cHzHGk.js} +6 -6
  7. package/library/chunks/{config-manager.Dga8yCuU.js → config-manager.p5syZtil.js} +18 -18
  8. package/library/chunks/{configs-controller._AG3aEMg.js → configs-controller.DI0t1bwN.js} +4 -4
  9. package/library/chunks/{confirm-popover.P9_d33nF.js → confirm-popover.CAMfvSCb.js} +2 -2
  10. package/library/chunks/{corner-position-input-group.B8e7wxWC.js → corner-position-input-group.CjfX25_1.js} +2 -2
  11. package/library/chunks/{cropper.D4ymxgab.js → cropper.D5Vh9xD_.js} +10 -12
  12. package/library/chunks/{dialog.DVLWODoq.js → dialog.CfbeRoZl.js} +471 -460
  13. package/library/chunks/{document-viewer.yYXbimVT.js → document-viewer.BufAh9e4.js} +4 -4
  14. package/library/chunks/{drawer.CO5T5Y3N.js → drawer.DdZl0Tae.js} +37 -26
  15. package/library/chunks/{dropdown.BOrWTz9h.js → dropdown.BYtpn4Jt.js} +2 -2
  16. package/library/chunks/{dynamic-select.DNYE60j1.js → dynamic-select.Bce10oMm.js} +1 -1
  17. package/library/chunks/{file-on-demand.BchdFD1S.js → file-on-demand.CmUnaee8.js} +5 -5
  18. package/library/chunks/{folder-select.DmhVucHZ.js → folder-select.RcqCzJ0G.js} +2 -2
  19. package/library/chunks/{input.Fmdh6pnf.js → input.w9KQVNnx.js} +1 -0
  20. package/library/chunks/{menu.BOAxSXuT.js → menu.EBYRr4cO.js} +1 -1
  21. package/library/chunks/{padding-input-group.E8trRZI5.js → padding-input-group.BTjH4scb.js} +1 -1
  22. package/library/chunks/{pagination.2kAQwMrS.js → pagination.D_Q1y6JJ.js} +2 -2
  23. package/library/chunks/{select.xDcOCLTR.js → select.DALWjdGQ.js} +1 -1
  24. package/library/chunks/{shadow-input-group.Cw3yDItr.js → shadow-input-group.BIK6HMvI.js} +2 -2
  25. package/library/chunks/{size-input-group.C16sezUf.js → size-input-group.DUusMYTq.js} +2 -2
  26. package/library/chunks/{src.dACFJV5g.js → src.Z27TJkT3.js} +12 -12
  27. package/library/chunks/step.BOokySSD.js +96 -0
  28. package/library/chunks/{stepper-wizard.BnRJXduo.js → stepper-wizard.D5qlGmL7.js} +8 -5
  29. package/library/chunks/{stepper.fAZR0Kj_.js → stepper.OkhIGgAJ.js} +1 -1
  30. package/library/chunks/{tab-group.BG1rclh_.js → tab-group.CcMSN8AD.js} +2 -2
  31. package/library/components/asset-link-format.js +1 -1
  32. package/library/components/atoms.js +13 -13
  33. package/library/components/bicolor-picker.js +1 -1
  34. package/library/components/border-input-group.js +1 -1
  35. package/library/components/color-picker.js +1 -1
  36. package/library/components/color-swatch-group.js +1 -1
  37. package/library/components/confirm-popover.js +1 -1
  38. package/library/components/corner-position-input-group.js +1 -1
  39. package/library/components/cropper.js +1 -1
  40. package/library/components/dialog.js +1 -1
  41. package/library/components/document-viewer.js +1 -1
  42. package/library/components/drawer.js +1 -1
  43. package/library/components/dropdown.js +1 -1
  44. package/library/components/dynamic-select.js +1 -1
  45. package/library/components/file-on-demand.js +1 -1
  46. package/library/components/folder-select.js +1 -1
  47. package/library/components/input.js +1 -1
  48. package/library/components/menu.js +1 -1
  49. package/library/components/molecules.js +11 -11
  50. package/library/components/organisms.js +3 -3
  51. package/library/components/padding-input-group.js +1 -1
  52. package/library/components/pagination.js +1 -1
  53. package/library/components/select.js +1 -1
  54. package/library/components/shadow-input-group.js +1 -1
  55. package/library/components/size-input-group.js +1 -1
  56. package/library/components/step.js +1 -1
  57. package/library/components/stepper-wizard.js +1 -1
  58. package/library/components/stepper.js +1 -1
  59. package/library/components/tab-group.js +1 -1
  60. package/library/components/types.js +30 -30
  61. package/library/package.json +1 -1
  62. package/library/packages/atoms/src/components/dialog/dialog.d.ts +9 -0
  63. package/library/packages/atoms/src/components/drawer/drawer.d.ts +9 -0
  64. package/library/packages/atoms/src/components/input/input.d.ts +4 -1
  65. package/library/packages/atoms/src/components/menu/menu.d.ts +2 -0
  66. package/library/packages/atoms/src/components/step/step.d.ts +5 -0
  67. package/library/packages/molecules/src/cropper/react/ReactCrop/ReactCrop.d.ts +1 -1
  68. package/library/packages/molecules/src/stepper-wizard/stepper-wizard.d.ts +4 -0
  69. package/library/react-web-component.d.ts +9 -1
  70. package/package.json +1 -1
  71. package/library/chunks/step.DbrSxSnw.js +0 -93
@@ -1,93 +0,0 @@
1
- import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
- import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
- import { t as o } from "./query.B1yi7t71.js";
4
- import { t as s } from "./component.styles.0xM1ZmBs.js";
5
- import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./class-map.D8nsNOVJ.js";
7
- import { t as u } from "./when.BUskJLtZ.js";
8
- import { t as d } from "./icon.CeQpEaQz.js";
9
- import { t as f } from "./style-map.DPGQIxip.js";
10
- import { t as p } from "./tooltip.fZNjia6Z.js";
11
- import { t as m } from "./line-clamp.QYln-UUK.js";
12
- import { t as h } from "./progress-bar.BJfkoZ6G.js";
13
- //#region ../../packages/atoms/src/components/step/step.styles.ts
14
- var g = t`:host{--color:var(--color);flex:calc(100% / var(--columns) + var(--cx-spacing-small));margin-left:calc(-1 * var(--cx-spacing-small))}:host([round]){max-width:100%;margin-left:0}.step{font-family:var(--cx-font-sans);gap:var(--cx-spacing-x-small);width:100%;display:flex}.step__arrow{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small);padding-left:var(--cx-spacing-x-large);padding-right:var(--cx-spacing-medium);background-color:var(--cx-color-neutral-100);cursor:pointer;clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);align-items:center;width:100%;display:inline-flex;position:relative}.step--first .step__arrow{clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, 0 50%, 0% 0%);border-top-left-radius:var(--cx-border-radius-large);border-bottom-left-radius:var(--cx-border-radius-large);padding-left:var(--cx-spacing-small)}.step--last .step__arrow{clip-path:polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);border-top-right-radius:var(--cx-border-radius-large);border-bottom-right-radius:var(--cx-border-radius-large)}.step--first.step--last .step__arrow{clip-path:polygon(100% 0%,100% 50%,100% 100%,0% 100%,0 50%,0% 0%)}.step--active .step__arrow{background-color:light-dark(color-mix(in srgb, var(--color) 15%, white),color-mix(in srgb, var(--color) 30%, var(--cx-color-neutral-0)));cursor:default}.step--completed .step__arrow{background-color:var(--cx-color-neutral-50)}.step--disabled .step__arrow,.step--readonly .step__arrow{cursor:default}.step--disabled.step--has-description .step__arrow,.step--readonly.step--has-description .step__arrow,.step--active.step--has-description .step__arrow{cursor:help}.step__circle{background-color:color-mix(in srgb, var(--color) 15%, white);border:2px solid var(--color);border-radius:var(--cx-border-radius-circle);color:var(--color);font-weight:var(--cx-font-weight-semibold);flex:0 0 32px;justify-content:center;align-items:center;height:32px;display:flex;& cx-icon{font-size:var(--cx-font-size-medium)}}.step--round.step--active .step__circle,.step--round.step--completed .step__circle{background-color:var(--color);color:var(--cx-color-neutral-0)}.step--round.step--disabled .step__circle{background-color:var(--cx-color-neutral-0);border-color:var(--cx-color-neutral-400);color:var(--cx-color-neutral-400)}.step--round.step--error .step__circle{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.step__content{align-items:center;gap:var(--cx-spacing-x-small);max-width:100%;display:flex;position:relative}.step--round .step__content{flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.step__content__prefix::slotted(cx-icon),.step__content__label{color:var(--cx-color-neutral-700);font-size:var(--cx-font-size-medium)}.step--active .step__content__label,.step--active .step__content__help-text,.step--active .step__content__prefix::slotted(cx-icon),.step--round.step--completed .step__content__label,.step--round.step--completed .step__content__help-text{color:var(--text-color,var(--color))}.step--disabled .step__content__label,.step--disabled .step__content__help-text,.step--disabled .step__content__prefix::slotted(cx-icon){color:var(--cx-color-neutral-400)}.step--error .step__content__label,.step--error .step__content__help-text{color:var(--cx-color-danger)}.step--round .step__content__progress{justify-content:center;align-items:center;gap:var(--cx-spacing-small);min-width:120px;line-height:1;display:flex}.step--round .step__content__progress__text{color:var(--color)}.step--round.step__content__help-text{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small);line-height:1}.step__line{background-color:var(--color);height:2rem;margin:var(--cx-spacing-medium) calc(32px / 2) 0;flex:1;width:2px}.step--last~.step__line{display:none}cx-progress-bar{--height:8px;flex:1}`, _ = class extends a {
15
- static #e = this.styles = [s, g];
16
- static #t = this.dependencies = {
17
- "cx-icon": d,
18
- "cx-line-clamp": m,
19
- "cx-progress-bar": h,
20
- "cx-tooltip": p
21
- };
22
- constructor() {
23
- super(), this.active = !1, this.completed = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.index = 0, this.last = !1, this.helpText = "", this.progress = 0, this.color = "var(--cx-color-primary)", this.textColor = "", this.round = !1, this.description = "", this.renderDefaultStep = this.renderDefaultStep.bind(this), this.renderRoundStep = this.renderRoundStep.bind(this);
24
- }
25
- handleClick() {
26
- this.disabled || this.active || this.readonly || this.emit("cx-step-select", { detail: { id: this.dataset.id } });
27
- }
28
- renderDefaultStep() {
29
- return e`<div class="step__arrow"><div class="step__content"><slot name="prefix" class="step__content__prefix"></slot><cx-line-clamp lines="1"><slot class="step__content__label"></slot></cx-line-clamp></div></div>`;
30
- }
31
- renderRoundStep() {
32
- return e`<div class="step__circle">${this.completed ? e`<cx-icon name="check"></cx-icon>` : e`<div class="step__circle__number">${this.index + 1}</div>`}</div><div class="step__content"><slot class="step__content__label"></slot>${u(this.progress && this.progress > 0, () => e`<div class="step__content__progress"><cx-progress-bar value=${this.progress}></cx-progress-bar><div class="step__content__progress__text">${this.progress}%</div></div>`, () => e`
33
- ${u(this.helpText, () => e`<div class="step__content__help-text">${this.helpText}</div>`)}
34
- `)}</div>`;
35
- }
36
- render() {
37
- return e`<cx-tooltip ?disabled=${!this.description.trim()} .content=${this.description} hoist><div style=${f({
38
- "--color": this.color,
39
- "--text-color": this.textColor || this.color
40
- })}><div part="base" aria-label="step" role="button" class=${l({
41
- step: !0,
42
- "step--active": this.active,
43
- "step--completed": this.completed,
44
- "step--disabled": this.disabled,
45
- "step--error": this.error,
46
- "step--first": this.index === 0,
47
- "step--has-description": !!this.description.trim(),
48
- "step--last": this.last,
49
- "step--readonly": this.readonly,
50
- "step--round": this.round
51
- })} @click=${this.handleClick}>${u(this.round, this.renderRoundStep, this.renderDefaultStep)}</div>${u(this.round, () => e`<div class="step__line"></div>`)}</div></cx-tooltip>`;
52
- }
53
- };
54
- r([o("div[part=\"base\"]"), i("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], _.prototype, "step", void 0), r([n({
55
- reflect: !0,
56
- type: Boolean
57
- }), i("design:type", Boolean)], _.prototype, "active", void 0), r([n({
58
- reflect: !0,
59
- type: Boolean
60
- }), i("design:type", Boolean)], _.prototype, "completed", void 0), r([n({
61
- reflect: !0,
62
- type: Boolean
63
- }), i("design:type", Boolean)], _.prototype, "disabled", void 0), r([n({
64
- reflect: !0,
65
- type: Boolean
66
- }), i("design:type", Boolean)], _.prototype, "readonly", void 0), r([n({
67
- reflect: !0,
68
- type: Boolean
69
- }), i("design:type", Boolean)], _.prototype, "error", void 0), r([n({ type: Number }), i("design:type", Number)], _.prototype, "index", void 0), r([n({ type: Boolean }), i("design:type", Boolean)], _.prototype, "last", void 0), r([n({
70
- attribute: "help-text",
71
- reflect: !0,
72
- type: String
73
- }), i("design:type", String)], _.prototype, "helpText", void 0), r([n({
74
- reflect: !0,
75
- type: Number
76
- }), i("design:type", Number)], _.prototype, "progress", void 0), r([n({
77
- reflect: !0,
78
- type: String
79
- }), i("design:type", String)], _.prototype, "color", void 0), r([n({
80
- attribute: "text-color",
81
- reflect: !0,
82
- type: String
83
- }), i("design:type", String)], _.prototype, "textColor", void 0), r([n({
84
- reflect: !0,
85
- type: Boolean
86
- }), i("design:type", Boolean)], _.prototype, "round", void 0), r([n({
87
- attribute: "description",
88
- reflect: !0,
89
- type: String
90
- }), i("design:type", String)], _.prototype, "description", void 0), _ = r([c("cx-step"), i("design:paramtypes", [])], _);
91
- var v = _;
92
- //#endregion
93
- export { v as t };