@orangelogic/design-system 4.60.0 → 4.61.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.
- package/library/chunks/{asset-link-format.dG974FMS.js → asset-link-format.BUZqXO4D.js} +2 -2
- package/library/chunks/{bicolor-picker.ePTFxpv-.js → bicolor-picker.DUEEcruV.js} +1 -1
- package/library/chunks/{block-width.DN6TdcDq.js → block-width.QzHkjabg.js} +19 -19
- package/library/chunks/{border-input-group.B-GD9YGF.js → border-input-group.XgNVfmul.js} +2 -2
- package/library/chunks/{color-picker.DzBT5QXr.js → color-picker.BkXV3vIK.js} +4 -4
- package/library/chunks/{color-swatch-group.CCMYA-co.js → color-swatch-group.G_07BvHg.js} +5 -5
- package/library/chunks/{config-manager.ijFjACzv.js → config-manager.Brd2mbsf.js} +16 -16
- package/library/chunks/{configs-controller.US9PZfsX.js → configs-controller.BPhkqQBv.js} +4 -4
- package/library/chunks/{confirm-popover.C2X0sUMv.js → confirm-popover.nSZeBx2K.js} +2 -2
- package/library/chunks/{corner-position-input-group.B1SMOWGF.js → corner-position-input-group.abmx6hmy.js} +2 -2
- package/library/chunks/dialog.D0oTJWFf.js +1699 -0
- package/library/chunks/{document-viewer.DmXykwuU.js → document-viewer.B2RwLRXO.js} +3 -3
- package/library/chunks/{drawer.CLSdjLR9.js → drawer.BsKzYqKe.js} +37 -26
- package/library/chunks/{dropdown.B4vsoK98.js → dropdown.Cc32yInQ.js} +1 -1
- package/library/chunks/{dynamic-select.BHCgqRwF.js → dynamic-select.ItukXjZg.js} +1 -1
- package/library/chunks/{file-on-demand.C2qiTIH9.js → file-on-demand.C9kzOZ1N.js} +5 -5
- package/library/chunks/{folder-select.Cf2KaF54.js → folder-select.BBJWsH8o.js} +2 -2
- package/library/chunks/{input.kTjqEyC8.js → input.DZRed6yo.js} +1 -0
- package/library/chunks/{padding-input-group.B-hbA7P2.js → padding-input-group.D2Qx15Yj.js} +1 -1
- package/library/chunks/{pagination.B6alBgDy.js → pagination.Bz2Q9ov3.js} +2 -2
- package/library/chunks/{select.D_899gsk.js → select.BMGK3xy9.js} +1 -1
- package/library/chunks/{shadow-input-group.DG3s_mso.js → shadow-input-group.jGS4SWwT.js} +2 -2
- package/library/chunks/{size-input-group.Df-P7xql.js → size-input-group.Db5PQVLF.js} +2 -2
- package/library/chunks/{src.CBMYFQxL.js → src.BG3K1VCp.js} +12 -12
- package/library/chunks/step.B_mpg1je.js +96 -0
- package/library/chunks/{stepper-wizard.DgrCTDtq.js → stepper-wizard.D5CSyMa0.js} +8 -5
- package/library/chunks/{stepper.BhpFjenM.js → stepper.DDMxj1Ts.js} +1 -1
- package/library/chunks/{tab-group.FZnVZRnT.js → tab-group.97YGxRGu.js} +1 -1
- package/library/chunks/{video.B0vHXehv.js → video.DWmHPbXO.js} +116 -93
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +13 -13
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/molecules.js +10 -10
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +29 -29
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +9 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +9 -0
- package/library/packages/atoms/src/components/input/input.d.ts +4 -1
- package/library/packages/atoms/src/components/step/step.d.ts +5 -0
- package/library/packages/molecules/src/stepper-wizard/stepper-wizard.d.ts +4 -0
- package/library/react-web-component.d.ts +9 -1
- package/package.json +1 -1
- package/library/chunks/dialog.CPvHVWDJ.js +0 -1688
- package/library/chunks/step.DoO31jfk.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.Cc02vm6M.js";
|
|
11
|
-
import { t as m } from "./line-clamp.SD3U021K.js";
|
|
12
|
-
import { t as h } from "./progress-bar.CynVLLnY.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 };
|