@orangelogic/design-system 2.78.0 → 2.79.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/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as r, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as k } from "../chunks/component.styles.
|
|
3
|
-
import { f as v } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as k } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f as v } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as g } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as y } from "../chunks/default-value.COZopaet.js";
|
|
6
6
|
import { F as _ } from "../chunks/form.DgwYWi0O.js";
|
|
@@ -10,188 +10,12 @@ import { i as $, x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
|
10
10
|
import { r as w } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as z } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as d } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
|
-
import { o as
|
|
14
|
-
import { l as
|
|
13
|
+
import { o as p } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
|
+
import { l as u } from "../chunks/live.SCz6M8Gs.js";
|
|
15
15
|
import { n as F } from "../chunks/when.Dr1es41R.js";
|
|
16
16
|
import V from "./icon.js";
|
|
17
17
|
var x = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.Small = "small", e))(x || {}), m = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.Left = "left", e.Right = "right", e.Top = "top", e))(m || {});
|
|
18
|
-
const H =
|
|
19
|
-
:host([disabled]) {
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
}
|
|
22
|
-
:host {
|
|
23
|
-
display: inline-block;
|
|
24
|
-
white-space: normal;
|
|
25
|
-
padding: var(--checkbox-padding, 0);
|
|
26
|
-
margin: var(--checkbox-margin, 0);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host([data-user-invalid])::part(control) {
|
|
30
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([data-user-invalid])::part(label) {
|
|
34
|
-
color: var(--cx-input-invalid-color);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host([data-user-invalid])::part(control) {
|
|
38
|
-
outline: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host(:focus-within[data-user-invalid])::part(control) {
|
|
42
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
43
|
-
box-shadow: var(--cx-input-invalid-shadow);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.checkbox {
|
|
47
|
-
position: relative;
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
align-items: flex-start;
|
|
50
|
-
font-family: var(--cx-input-font-family);
|
|
51
|
-
font-weight: var(--cx-input-font-weight);
|
|
52
|
-
color: var(--label-color, var(--cx-color-neutral));
|
|
53
|
-
vertical-align: middle;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
box-sizing: border-box;
|
|
56
|
-
gap: var(--checkbox-label-gap, var(--cx-spacing-x-small));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.checkbox--label-left {
|
|
60
|
-
flex-direction: row-reverse;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.checkbox--label-top {
|
|
64
|
-
flex-direction: column-reverse;
|
|
65
|
-
align-items: flex-start;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.checkbox--label-bottom {
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
align-items: flex-start;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.checkbox--small {
|
|
74
|
-
--toggle-size: var(--cx-toggle-size-small);
|
|
75
|
-
font-size: var(--cx-input-font-size-small);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.checkbox--medium {
|
|
79
|
-
--toggle-size: var(--cx-toggle-size-medium);
|
|
80
|
-
font-size: var(--cx-input-font-size-small);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.checkbox--large {
|
|
84
|
-
--toggle-size: var(--cx-toggle-size-large);
|
|
85
|
-
font-size: var(--cx-input-font-size-small);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.form-control {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.checkbox__control {
|
|
94
|
-
flex: 0 0 auto;
|
|
95
|
-
position: relative;
|
|
96
|
-
display: inline-flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
width: var(--toggle-size);
|
|
100
|
-
height: var(--toggle-size);
|
|
101
|
-
border: solid var(--cx-input-border-width) var(--cx-input-border-color);
|
|
102
|
-
border-radius: var(--cx-border-radius-small);
|
|
103
|
-
background-color: var(--cx-input-background-color);
|
|
104
|
-
color: var(--cx-color-neutral-0);
|
|
105
|
-
transition:
|
|
106
|
-
var(--cx-transition-fast) border-color,
|
|
107
|
-
var(--cx-transition-fast) background-color,
|
|
108
|
-
var(--cx-transition-fast) color,
|
|
109
|
-
var(--cx-transition-fast) box-shadow;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.checkbox__input {
|
|
113
|
-
position: absolute;
|
|
114
|
-
opacity: 0;
|
|
115
|
-
padding: 0;
|
|
116
|
-
margin: 0;
|
|
117
|
-
pointer-events: none;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.checkbox__checked-icon,
|
|
121
|
-
.checkbox__indeterminate-icon {
|
|
122
|
-
display: inline-flex;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* Hover */
|
|
126
|
-
.checkbox:not(.checkbox--checked):not(.checkbox--disabled)
|
|
127
|
-
.checkbox__control:hover {
|
|
128
|
-
border-color: var(--cx-input-border-color-hover);
|
|
129
|
-
background-color: var(--cx-input-background-color-hover);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* Focus */
|
|
133
|
-
.checkbox:not(.checkbox--checked):not(.checkbox--disabled)
|
|
134
|
-
.checkbox__input:focus-visible
|
|
135
|
-
~ .checkbox__control {
|
|
136
|
-
outline: var(--cx-focus-ring);
|
|
137
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Checked/indeterminate */
|
|
141
|
-
.checkbox--checked .checkbox__control,
|
|
142
|
-
.checkbox--indeterminate .checkbox__control {
|
|
143
|
-
border-color: var(--cx-color-primary);
|
|
144
|
-
background-color: var(--cx-color-primary);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/* Checked/indeterminate + hover */
|
|
148
|
-
.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,
|
|
149
|
-
.checkbox.checkbox--indeterminate:not(.checkbox--disabled)
|
|
150
|
-
.checkbox__control:hover {
|
|
151
|
-
border-color: var(--cx-color-primary-500);
|
|
152
|
-
background-color: var(--cx-color-primary-500);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/* Checked/indeterminate + focus */
|
|
156
|
-
.checkbox.checkbox--checked:not(.checkbox--disabled)
|
|
157
|
-
.checkbox__input:focus-visible
|
|
158
|
-
~ .checkbox__control,
|
|
159
|
-
.checkbox.checkbox--indeterminate:not(.checkbox--disabled)
|
|
160
|
-
.checkbox__input:focus-visible
|
|
161
|
-
~ .checkbox__control {
|
|
162
|
-
outline: var(--cx-focus-ring);
|
|
163
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* Disabled */
|
|
167
|
-
.checkbox--disabled {
|
|
168
|
-
opacity: 0.5;
|
|
169
|
-
cursor: default;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.checkbox__label {
|
|
173
|
-
width: var(--label-width, auto);
|
|
174
|
-
display: inline-block;
|
|
175
|
-
color: var(--label-color, var(--cx-color-neutral));
|
|
176
|
-
font: var(--label-font, var(--cx-font-label-small));
|
|
177
|
-
line-height: var(--toggle-size);
|
|
178
|
-
user-select: none;
|
|
179
|
-
-webkit-user-select: none;
|
|
180
|
-
text-transform: var(--cx-checkbox-label-text-transform, none);
|
|
181
|
-
pointer-events: none;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.form-control__help-text {
|
|
185
|
-
font: var(--help-text-font, var(--cx-font-label-x-small));
|
|
186
|
-
color: var(--help-text-color, var(--cx-color-neutral-600));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
:host([required]) .checkbox__label::after {
|
|
190
|
-
color: var(--cx-input-required-content-color);
|
|
191
|
-
content: var(--cx-input-required-content);
|
|
192
|
-
margin-inline-start: var(--cx-input-required-content-offset);
|
|
193
|
-
}
|
|
194
|
-
`;
|
|
18
|
+
const H = $`:host([disabled]){pointer-events:none}:host{white-space:normal;padding:var(--checkbox-padding,0);margin:var(--checkbox-margin,0);display:inline-block}:host([data-user-invalid])::part(control){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid])::part(label){color:var(--cx-input-invalid-color)}:host([data-user-invalid])::part(control){outline:none}:host(:focus-within[data-user-invalid])::part(control){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.checkbox{font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);color:var(--label-color,var(--cx-color-neutral));vertical-align:middle;cursor:pointer;box-sizing:border-box;align-items:flex-start;gap:var(--checkbox-label-gap,var(--cx-spacing-x-small));display:inline-flex;position:relative}.checkbox--label-left{flex-direction:row-reverse}.checkbox--label-top{flex-direction:column-reverse;align-items:flex-start}.checkbox--label-bottom{flex-direction:column;align-items:flex-start}.checkbox--small{--toggle-size:var(--cx-toggle-size-small);font-size:var(--cx-input-font-size-small)}.checkbox--medium{--toggle-size:var(--cx-toggle-size-medium);font-size:var(--cx-input-font-size-small)}.checkbox--large{--toggle-size:var(--cx-toggle-size-large);font-size:var(--cx-input-font-size-small)}.form-control{flex-direction:column;display:flex}.checkbox__control{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);border-radius:var(--cx-border-radius-small);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.checkbox__input{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute}.checkbox__checked-icon,.checkbox__indeterminate-icon{display:inline-flex}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--cx-input-border-color-hover);background-color:var(--cx-input-background-color-hover)}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--cx-color-primary-500);background-color:var(--cx-color-primary-500)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.checkbox--disabled{opacity:.5;cursor:default}.checkbox__label{width:var(--label-width,auto);color:var(--label-color,var(--cx-color-neutral));font:var(--label-font,var(--cx-font-label-small));line-height:var(--toggle-size);-webkit-user-select:none;user-select:none;text-transform:var(--cx-checkbox-label-text-transform,none);pointer-events:none;display:inline-block}.form-control__help-text{font:var(--help-text-font,var(--cx-font-label-x-small));color:var(--help-text-color,var(--cx-color-neutral-600))}:host([required]) .checkbox__label:after{color:var(--cx-input-required-content-color);content:var(--cx-input-required-content);margin-inline-start:var(--cx-input-required-content-offset)}`;
|
|
195
19
|
var S = Object.defineProperty, q = Object.getOwnPropertyDescriptor, o = (e, i, l, a) => {
|
|
196
20
|
for (var c = a > 1 ? void 0 : a ? q(i, l) : i, s = e.length - 1, h; s >= 0; s--)
|
|
197
21
|
(h = e[s]) && (c = (a ? h(i, l, c) : h(c)) || c);
|
|
@@ -289,17 +113,11 @@ let t = class extends f {
|
|
|
289
113
|
}
|
|
290
114
|
render() {
|
|
291
115
|
const e = this.hasSlotController.test("help-text"), i = this.helpText ? !0 : !!e, l = this.hasSlotController.test("[default]");
|
|
292
|
-
return n
|
|
293
|
-
<div
|
|
294
|
-
class=${d({
|
|
116
|
+
return n`<div class=${d({
|
|
295
117
|
"form-control": !0,
|
|
296
118
|
[`form-control--${this.size}`]: !0,
|
|
297
119
|
"form-control--has-help-text": i
|
|
298
|
-
})}
|
|
299
|
-
>
|
|
300
|
-
<div
|
|
301
|
-
part="base"
|
|
302
|
-
class=${d({
|
|
120
|
+
})}><div part="base" class=${d({
|
|
303
121
|
checkbox: !0,
|
|
304
122
|
"checkbox--checked": this.checked,
|
|
305
123
|
"checkbox--disabled": this.disabled,
|
|
@@ -307,70 +125,11 @@ let t = class extends f {
|
|
|
307
125
|
"checkbox--indeterminate": this.indeterminate,
|
|
308
126
|
[`checkbox--label-${this.labelPlacement}`]: !0,
|
|
309
127
|
[`checkbox--${this.size}`]: !0
|
|
310
|
-
})}
|
|
311
|
-
|
|
312
|
-
<input
|
|
313
|
-
id="checkbox"
|
|
314
|
-
aria-label=${u(this.ariaLabel?.trim() || void 0)}
|
|
315
|
-
class="checkbox__input"
|
|
316
|
-
type="checkbox"
|
|
317
|
-
title=${this.title}
|
|
318
|
-
name=${this.name}
|
|
319
|
-
.value=${u(this.value)}
|
|
320
|
-
.indeterminate=${p(this.indeterminate)}
|
|
321
|
-
.checked=${p(this.checked)}
|
|
322
|
-
.disabled=${this.disabled}
|
|
323
|
-
.required=${this.required}
|
|
324
|
-
aria-checked=${this.checked ? "true" : "false"}
|
|
325
|
-
aria-describedby="help-text"
|
|
326
|
-
@change=${this.handleChange}
|
|
327
|
-
@invalid=${this.handleInvalid}
|
|
328
|
-
@blur=${this.handleBlur}
|
|
329
|
-
@focus=${this.handleFocus}
|
|
330
|
-
/>
|
|
331
|
-
|
|
332
|
-
<span
|
|
333
|
-
part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
|
|
334
|
-
class="checkbox__control"
|
|
335
|
-
>
|
|
336
|
-
${this.checked ? n`
|
|
337
|
-
<slot name="checked-icon">
|
|
338
|
-
<cx-icon
|
|
339
|
-
part="checked-icon"
|
|
340
|
-
class="checkbox__checked-icon"
|
|
341
|
-
name="check"
|
|
342
|
-
></cx-icon>
|
|
343
|
-
</slot>
|
|
344
|
-
` : ""}
|
|
345
|
-
${!this.checked && this.indeterminate ? n`
|
|
346
|
-
<slot name="indeterminate-icon">
|
|
347
|
-
<cx-icon
|
|
348
|
-
part="indeterminate-icon"
|
|
349
|
-
class="checkbox__indeterminate-icon"
|
|
350
|
-
name="remove"
|
|
351
|
-
></cx-icon>
|
|
352
|
-
</slot>
|
|
353
|
-
` : ""}
|
|
354
|
-
</span>
|
|
355
|
-
${F(
|
|
128
|
+
})}><input id="checkbox" aria-label=${p(this.ariaLabel?.trim() || void 0)} class="checkbox__input" type="checkbox" title=${this.title} name=${this.name} .value=${p(this.value)} .indeterminate=${u(this.indeterminate)} .checked=${u(this.checked)} .disabled=${this.disabled} .required=${this.required} aria-checked=${this.checked ? "true" : "false"} aria-describedby="help-text" @change=${this.handleChange} @invalid=${this.handleInvalid} @blur=${this.handleBlur} @focus=${this.handleFocus}><span part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}" class="checkbox__control">${this.checked ? n`<slot name="checked-icon"><cx-icon part="checked-icon" class="checkbox__checked-icon" name="check"></cx-icon></slot>` : ""}
|
|
129
|
+
${!this.checked && this.indeterminate ? n`<slot name="indeterminate-icon"><cx-icon part="indeterminate-icon" class="checkbox__indeterminate-icon" name="remove"></cx-icon></slot>` : ""}</span>${F(
|
|
356
130
|
l,
|
|
357
|
-
() => n
|
|
358
|
-
|
|
359
|
-
<slot></slot>
|
|
360
|
-
</label>
|
|
361
|
-
`
|
|
362
|
-
)}
|
|
363
|
-
</div>
|
|
364
|
-
<div
|
|
365
|
-
aria-hidden=${i ? "false" : "true"}
|
|
366
|
-
class="form-control__help-text"
|
|
367
|
-
id="help-text"
|
|
368
|
-
part="form-control-help-text"
|
|
369
|
-
>
|
|
370
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
`;
|
|
131
|
+
() => n`<label for="checkbox" part="label" class="checkbox__label"><slot></slot></label>`
|
|
132
|
+
)}</div><div aria-hidden=${i ? "false" : "true"} class="form-control__help-text" id="help-text" part="form-control-help-text"><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
374
133
|
}
|
|
375
134
|
};
|
|
376
135
|
t.styles = [
|