@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,311 +1,24 @@
|
|
|
1
1
|
import { n as a, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as b } from "../chunks/component.styles.
|
|
3
|
-
import { f as g } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f as g } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as v } 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";
|
|
7
7
|
import { H as z } from "../chunks/slot.j5oheLJC.js";
|
|
8
8
|
import { w as d } from "../chunks/watch.BCJD77bD.js";
|
|
9
|
-
import { i as
|
|
10
|
-
import { r as
|
|
9
|
+
import { i as C, x as p } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
|
+
import { r as w } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as f } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as x } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
13
|
import { o as n } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
14
|
import { l as k } from "../chunks/live.SCz6M8Gs.js";
|
|
15
15
|
import { n as $ } from "../chunks/when.Dr1es41R.js";
|
|
16
16
|
var c = /* @__PURE__ */ ((t) => (t.Max = "max", t))(c || {});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([data-user-invalid])::part(base) {
|
|
23
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([data-user-invalid]:focus-within)::part(base) {
|
|
27
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
28
|
-
box-shadow: var(--cx-input-invalid-shadow);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.textarea {
|
|
32
|
-
--textarea-background-color: var(--cx-input-background-color);
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
position: relative;
|
|
36
|
-
width: 100%;
|
|
37
|
-
font-family: var(--cx-input-font-family);
|
|
38
|
-
font-weight: var(--cx-input-font-weight);
|
|
39
|
-
line-height: var(--cx-line-height-large);
|
|
40
|
-
letter-spacing: var(--cx-input-letter-spacing);
|
|
41
|
-
vertical-align: middle;
|
|
42
|
-
transition:
|
|
43
|
-
var(--cx-transition-fast) color,
|
|
44
|
-
var(--cx-transition-fast) border,
|
|
45
|
-
var(--cx-transition-fast) box-shadow,
|
|
46
|
-
var(--cx-transition-fast) background-color;
|
|
47
|
-
cursor: text;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* Standard textareas */
|
|
51
|
-
.textarea--standard {
|
|
52
|
-
background-color: var(--textarea-background-color);
|
|
53
|
-
border: solid var(--cx-input-border-width) var(--cx-input-border-color);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.textarea--standard:hover:not(.textarea--disabled) {
|
|
57
|
-
--textarea-background-color: var(--cx-input-background-color-hover);
|
|
58
|
-
border-color: var(--cx-input-border-color-hover);
|
|
59
|
-
}
|
|
60
|
-
.textarea--standard:hover:not(.textarea--disabled) .textarea__control {
|
|
61
|
-
color: var(--cx-input-color-hover);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.textarea--standard.textarea--focused:not(.textarea--disabled) {
|
|
65
|
-
--textarea-background-color: var(--cx-input-background-color-focus);
|
|
66
|
-
border-color: var(--cx-input-border-color-focus);
|
|
67
|
-
color: var(--cx-input-color-focus);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.textarea--standard.textarea--focused:not(.textarea--disabled)
|
|
71
|
-
.textarea__control {
|
|
72
|
-
color: var(--cx-input-color-focus);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.textarea--standard.textarea--disabled {
|
|
76
|
-
--textarea-background-color: var(--cx-input-background-color-disabled);
|
|
77
|
-
border-color: var(--cx-input-border-color-disabled);
|
|
78
|
-
opacity: 0.5;
|
|
79
|
-
cursor: default;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.textarea--standard.textarea--disabled .textarea__control {
|
|
83
|
-
color: var(--cx-input-color-disabled);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.textarea--standard.textarea--disabled .textarea__control::placeholder {
|
|
87
|
-
color: var(--cx-input-placeholder-color-disabled);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Filled textareas */
|
|
91
|
-
.textarea--filled {
|
|
92
|
-
--textarea-background-color: var(--cx-input-filled-background-color);
|
|
93
|
-
border: none;
|
|
94
|
-
background-color: var(--textarea-background-color);
|
|
95
|
-
color: var(--cx-input-color);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.textarea--filled:hover:not(.textarea--disabled) {
|
|
99
|
-
--textarea-background-color: var(--cx-input-filled-background-color-hover);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.textarea--filled.textarea--focused:not(.textarea--disabled) {
|
|
103
|
-
--textarea-background-color: var(--cx-input-filled-background-color-focus);
|
|
104
|
-
outline: var(--cx-focus-ring);
|
|
105
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.textarea--filled.textarea--disabled {
|
|
109
|
-
--textarea-background-color: var(--cx-input-filled-background-color-disabled);
|
|
110
|
-
opacity: 0.5;
|
|
111
|
-
cursor: default;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.textarea__control {
|
|
115
|
-
flex: 1 1 auto;
|
|
116
|
-
font: inherit;
|
|
117
|
-
line-height: 1.4;
|
|
118
|
-
color: var(--cx-input-color);
|
|
119
|
-
border: none;
|
|
120
|
-
background: none;
|
|
121
|
-
box-shadow: none;
|
|
122
|
-
cursor: inherit;
|
|
123
|
-
-webkit-appearance: none;
|
|
124
|
-
line-height: var(--cx-line-height-medium);
|
|
125
|
-
padding-top: var(--cx-spacing-x-small);
|
|
126
|
-
padding-bottom: var(--cx-spacing-x-small);
|
|
127
|
-
padding-left: 0;
|
|
128
|
-
padding-right: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.textarea__control::-webkit-search-decoration,
|
|
132
|
-
.textarea__control::-webkit-search-cancel-button,
|
|
133
|
-
.textarea__control::-webkit-search-results-button,
|
|
134
|
-
.textarea__control::-webkit-search-results-decoration {
|
|
135
|
-
-webkit-appearance: none;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.textarea__control::placeholder {
|
|
139
|
-
color: var(--cx-input-placeholder-color);
|
|
140
|
-
user-select: none;
|
|
141
|
-
-webkit-user-select: none;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.textarea__control:focus {
|
|
145
|
-
outline: none;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/*
|
|
149
|
-
* Size modifiers
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
.textarea--small {
|
|
153
|
-
border-radius: var(--cx-input-border-radius-small);
|
|
154
|
-
font-size: var(--cx-input-font-size-small);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.textarea--small .textarea-container {
|
|
158
|
-
padding-left: var(--cx-input-spacing-small);
|
|
159
|
-
padding-right: var(--cx-input-spacing-small);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.textarea--medium {
|
|
163
|
-
border-radius: var(--cx-input-border-radius-medium);
|
|
164
|
-
font-size: var(--cx-input-font-size-small);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.textarea--medium .textarea-container {
|
|
168
|
-
padding-left: var(--cx-input-spacing-medium);
|
|
169
|
-
padding-right: var(--cx-input-spacing-medium);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.textarea--large {
|
|
173
|
-
border-radius: var(--cx-input-border-radius-large);
|
|
174
|
-
font-size: var(--cx-input-font-size-small);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.textarea--large .textarea-container {
|
|
178
|
-
padding-left: var(--cx-input-spacing-large);
|
|
179
|
-
padding-right: var(--cx-input-spacing-large);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/*
|
|
183
|
-
* Resize types
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
.textarea--resize-none .textarea__control {
|
|
187
|
-
resize: none;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.textarea--resize-vertical .textarea__control {
|
|
191
|
-
resize: vertical;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.textarea--resize-auto .textarea__control {
|
|
195
|
-
height: auto;
|
|
196
|
-
resize: none;
|
|
197
|
-
overflow-y: hidden;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/*
|
|
201
|
-
* Adapt label to be inside textarea
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
.textarea-container {
|
|
205
|
-
position: relative;
|
|
206
|
-
display: inline-flex;
|
|
207
|
-
flex-direction: column;
|
|
208
|
-
width: 100%;
|
|
209
|
-
height: 100%;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* set label's position to absolute */
|
|
213
|
-
.form-control__label {
|
|
214
|
-
position: relative;
|
|
215
|
-
-webkit-transition: transform 0.2s ease-in-out;
|
|
216
|
-
-moz-transition: transform 0.2s ease-in-out;
|
|
217
|
-
transition: transform 0.2s ease-in-out;
|
|
218
|
-
pointer-events: none;
|
|
219
|
-
width: fit-content;
|
|
220
|
-
line-height: 1; /* use line-height: 1 for easier transform calculation */
|
|
221
|
-
background-color: var(--textarea-background-color);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.form-control--has-label .textarea--small .form-control__label {
|
|
225
|
-
font-size: var(--cx-input-label-font-size-small);
|
|
226
|
-
margin: 0;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.form-control--has-label .textarea--medium .form-control__label {
|
|
230
|
-
font-size: var(--cx-input-label-font-size-medium);
|
|
231
|
-
margin: 0;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.form-control--has-label .textarea--large .form-control__label {
|
|
235
|
-
font-size: var(--cx-input-label-font-size-large);
|
|
236
|
-
margin: 0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.textarea__character-count {
|
|
240
|
-
display: flex;
|
|
241
|
-
align-items: center;
|
|
242
|
-
justify-content: flex-end;
|
|
243
|
-
color: var(--cx-input-suffix-color, var(--cx-input-color));
|
|
244
|
-
font-size: var(--cx-input-font-size);
|
|
245
|
-
font-weight: var(--cx-input-font-weight);
|
|
246
|
-
letter-spacing: var(--cx-input-letter-spacing);
|
|
247
|
-
line-height: var(--cx-input-line-height);
|
|
248
|
-
padding-inline-end: var(--cx-spacing-x-small);
|
|
249
|
-
padding-top: var(--cx-spacing-2x-small);
|
|
250
|
-
white-space: nowrap;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/* when empty with no placeholder (initial state), transform label to vertical center
|
|
254
|
-
= (input height - label height) / 2
|
|
255
|
-
*/
|
|
256
|
-
.textarea--small .form-control__label {
|
|
257
|
-
transform: translateY(
|
|
258
|
-
calc(
|
|
259
|
-
(
|
|
260
|
-
var(--cx-input-height-small) +
|
|
261
|
-
1.25rem - var(--cx-input-label-font-size-small)
|
|
262
|
-
) /
|
|
263
|
-
2
|
|
264
|
-
)
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.textarea--medium .form-control__label {
|
|
269
|
-
transform: translateY(
|
|
270
|
-
calc(
|
|
271
|
-
(
|
|
272
|
-
var(--cx-input-height-medium) +
|
|
273
|
-
1rem - var(--cx-input-label-font-size-medium)
|
|
274
|
-
) /
|
|
275
|
-
2
|
|
276
|
-
)
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.textarea--large .form-control__label {
|
|
281
|
-
transform: translateY(
|
|
282
|
-
calc(
|
|
283
|
-
(
|
|
284
|
-
var(--cx-input-height-large) +
|
|
285
|
-
1rem - var(--cx-input-label-font-size-large)
|
|
286
|
-
) /
|
|
287
|
-
2
|
|
288
|
-
)
|
|
289
|
-
);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/* When focused or not empty, transform label to top
|
|
293
|
-
Instead of 0, use var(--cx-spacing-2x-small) to have a distance from top
|
|
294
|
-
*/
|
|
295
|
-
.form-control--has-label .textarea--focused .form-control__label,
|
|
296
|
-
.form-control--has-label .textarea--placeholder-visible .form-control__label,
|
|
297
|
-
.form-control--has-label
|
|
298
|
-
.textarea:not(.textarea--empty)
|
|
299
|
-
.form-control__label {
|
|
300
|
-
transform: translateY(
|
|
301
|
-
calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small))
|
|
302
|
-
); /* distance from top */
|
|
303
|
-
}
|
|
304
|
-
`;
|
|
305
|
-
var H = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (t, o, i, l) => {
|
|
306
|
-
for (var s = l > 1 ? void 0 : l ? S(o, i) : o, h = t.length - 1, u; h >= 0; h--)
|
|
17
|
+
const H = C`:host{display:block}:host([data-user-invalid])::part(base){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid]:focus-within)::part(base){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.textarea{--textarea-background-color:var(--cx-input-background-color);width:100%;font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);line-height:var(--cx-line-height-large);letter-spacing:var(--cx-input-letter-spacing);vertical-align:middle;transition:var(--cx-transition-fast) color, var(--cx-transition-fast) border, var(--cx-transition-fast) box-shadow, var(--cx-transition-fast) background-color;cursor:text;align-items:center;display:flex;position:relative}.textarea--standard{background-color:var(--textarea-background-color);border:solid var(--cx-input-border-width) var(--cx-input-border-color)}.textarea--standard:hover:not(.textarea--disabled){--textarea-background-color:var(--cx-input-background-color-hover);border-color:var(--cx-input-border-color-hover)}.textarea--standard:hover:not(.textarea--disabled) .textarea__control{color:var(--cx-input-color-hover)}.textarea--standard.textarea--focused:not(.textarea--disabled){--textarea-background-color:var(--cx-input-background-color-focus);border-color:var(--cx-input-border-color-focus);color:var(--cx-input-color-focus)}.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control{color:var(--cx-input-color-focus)}.textarea--standard.textarea--disabled{--textarea-background-color:var(--cx-input-background-color-disabled);border-color:var(--cx-input-border-color-disabled);opacity:.5;cursor:default}.textarea--standard.textarea--disabled .textarea__control{color:var(--cx-input-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::placeholder{color:var(--cx-input-placeholder-color-disabled)}.textarea--filled{--textarea-background-color:var(--cx-input-filled-background-color);background-color:var(--textarea-background-color);color:var(--cx-input-color);border:none}.textarea--filled:hover:not(.textarea--disabled){--textarea-background-color:var(--cx-input-filled-background-color-hover)}.textarea--filled.textarea--focused:not(.textarea--disabled){--textarea-background-color:var(--cx-input-filled-background-color-focus);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.textarea--filled.textarea--disabled{--textarea-background-color:var(--cx-input-filled-background-color-disabled);opacity:.5;cursor:default}.textarea__control{font:inherit;color:var(--cx-input-color);box-shadow:none;cursor:inherit;-webkit-appearance:none;line-height:1.4;line-height:var(--cx-line-height-medium);padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small);background:0 0;border:none;flex:auto;padding-left:0;padding-right:0}.textarea__control::-webkit-search-decoration,.textarea__control::-webkit-search-cancel-button,.textarea__control::-webkit-search-results-button,.textarea__control::-webkit-search-results-decoration{-webkit-appearance:none}.textarea__control::placeholder{color:var(--cx-input-placeholder-color);-webkit-user-select:none;user-select:none}.textarea__control:focus{outline:none}.textarea--small{border-radius:var(--cx-input-border-radius-small);font-size:var(--cx-input-font-size-small)}.textarea--small .textarea-container{padding-left:var(--cx-input-spacing-small);padding-right:var(--cx-input-spacing-small)}.textarea--medium{border-radius:var(--cx-input-border-radius-medium);font-size:var(--cx-input-font-size-small)}.textarea--medium .textarea-container{padding-left:var(--cx-input-spacing-medium);padding-right:var(--cx-input-spacing-medium)}.textarea--large{border-radius:var(--cx-input-border-radius-large);font-size:var(--cx-input-font-size-small)}.textarea--large .textarea-container{padding-left:var(--cx-input-spacing-large);padding-right:var(--cx-input-spacing-large)}.textarea--resize-none .textarea__control{resize:none}.textarea--resize-vertical .textarea__control{resize:vertical}.textarea--resize-auto .textarea__control{resize:none;height:auto;overflow-y:hidden}.textarea-container{flex-direction:column;width:100%;height:100%;display:inline-flex;position:relative}.form-control__label{pointer-events:none;background-color:var(--textarea-background-color);width:fit-content;line-height:1;-webkit-transition:transform .2s ease-in-out;-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;position:relative}.form-control--has-label .textarea--small .form-control__label{font-size:var(--cx-input-label-font-size-small);margin:0}.form-control--has-label .textarea--medium .form-control__label{font-size:var(--cx-input-label-font-size-medium);margin:0}.form-control--has-label .textarea--large .form-control__label{font-size:var(--cx-input-label-font-size-large);margin:0}.textarea__character-count{color:var(--cx-input-suffix-color,var(--cx-input-color));font-size:var(--cx-input-font-size);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);line-height:var(--cx-input-line-height);padding-inline-end:var(--cx-spacing-x-small);padding-top:var(--cx-spacing-2x-small);white-space:nowrap;justify-content:flex-end;align-items:center;display:flex}.textarea--small .form-control__label{transform:translateY(calc(( var(--cx-input-height-small) + 1.25rem - var(--cx-input-label-font-size-small) ) / 2))}.textarea--medium .form-control__label{transform:translateY(calc(( var(--cx-input-height-medium) + 1rem - var(--cx-input-label-font-size-medium) ) / 2))}.textarea--large .form-control__label{transform:translateY(calc(( var(--cx-input-height-large) + 1rem - var(--cx-input-label-font-size-large) ) / 2))}.form-control--has-label .textarea--focused .form-control__label,.form-control--has-label .textarea--placeholder-visible .form-control__label,.form-control--has-label .textarea:not(.textarea--empty) .form-control__label{transform:translateY(calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small)))}`;
|
|
18
|
+
var F = Object.defineProperty, T = Object.getOwnPropertyDescriptor, r = (t, o, i, l) => {
|
|
19
|
+
for (var s = l > 1 ? void 0 : l ? T(o, i) : o, h = t.length - 1, u; h >= 0; h--)
|
|
307
20
|
(u = t[h]) && (s = (l ? u(o, i, s) : u(s)) || s);
|
|
308
|
-
return l && s &&
|
|
21
|
+
return l && s && F(o, i, s), s;
|
|
309
22
|
};
|
|
310
23
|
let e = class extends m {
|
|
311
24
|
constructor() {
|
|
@@ -435,22 +148,14 @@ let e = class extends m {
|
|
|
435
148
|
}
|
|
436
149
|
render() {
|
|
437
150
|
const t = this.hasSlotController.test("label"), o = this.hasSlotController.test("help-text"), i = this.label ? !0 : !!t, l = this.helpText ? !0 : !!o, s = this.placeholder && this.value.length === 0;
|
|
438
|
-
return p
|
|
439
|
-
<div
|
|
440
|
-
part="form-control"
|
|
441
|
-
class=${x({
|
|
151
|
+
return p`<div part="form-control" class=${x({
|
|
442
152
|
"form-control": !0,
|
|
443
153
|
"form-control--has-help-text": l,
|
|
444
154
|
"form-control--has-label": i,
|
|
445
155
|
"form-control--large": this.size === "large",
|
|
446
156
|
"form-control--medium": this.size === "medium",
|
|
447
157
|
"form-control--small": this.size === "small"
|
|
448
|
-
})}
|
|
449
|
-
>
|
|
450
|
-
<div part="form-control-input" class="form-control-input">
|
|
451
|
-
<div
|
|
452
|
-
part="base"
|
|
453
|
-
class=${x({
|
|
158
|
+
})}><div part="form-control-input" class="form-control-input"><div part="base" class=${x({
|
|
454
159
|
textarea: !0,
|
|
455
160
|
"textarea--disabled": this.disabled,
|
|
456
161
|
"textarea--empty": !this.value,
|
|
@@ -464,68 +169,14 @@ let e = class extends m {
|
|
|
464
169
|
"textarea--resize-vertical": this.resize === "vertical",
|
|
465
170
|
"textarea--small": this.size === "small",
|
|
466
171
|
"textarea--standard": !this.filled
|
|
467
|
-
})}
|
|
468
|
-
>
|
|
469
|
-
<span class="textarea-container">
|
|
470
|
-
<label
|
|
471
|
-
part="form-control-label"
|
|
472
|
-
class="form-control__label"
|
|
473
|
-
for="input"
|
|
474
|
-
aria-hidden=${i ? "false" : "true"}
|
|
475
|
-
><slot name="label">${this.label}</slot></label>
|
|
476
|
-
<textarea
|
|
477
|
-
part="textarea"
|
|
478
|
-
id="input"
|
|
479
|
-
class="textarea__control"
|
|
480
|
-
title=${this.title}
|
|
481
|
-
name=${n(this.name)}
|
|
482
|
-
.value=${k(this.value)}
|
|
483
|
-
?disabled=${this.disabled}
|
|
484
|
-
?readonly=${this.readonly}
|
|
485
|
-
?required=${this.required}
|
|
486
|
-
placeholder=${n(this.placeholder)}
|
|
487
|
-
rows=${n(this.rows === c.Max ? void 0 : this.rows)}
|
|
488
|
-
minlength=${n(this.minlength)}
|
|
489
|
-
maxlength=${n(this.maxlength)}
|
|
490
|
-
autocapitalize=${n(this.autoCapitalize)}
|
|
491
|
-
autocorrect=${n(this.autoCorrect)}
|
|
492
|
-
?autofocus=${this.autoFocus}
|
|
493
|
-
spellcheck=${n(this.spellCheck)}
|
|
494
|
-
enterkeyhint=${n(this.enterKeyHint)}
|
|
495
|
-
inputmode=${n(this.inputMode)}
|
|
496
|
-
aria-describedby="help-text"
|
|
497
|
-
@change=${this.handleChange}
|
|
498
|
-
@input=${this.handleInput}
|
|
499
|
-
@invalid=${this.handleInvalid}
|
|
500
|
-
@focus=${this.handleFocus}
|
|
501
|
-
@blur=${this.handleBlur}
|
|
502
|
-
></textarea>
|
|
503
|
-
</span>
|
|
504
|
-
</div>
|
|
505
|
-
${$(this.showLength, () => p`
|
|
506
|
-
<div part="character-count" class="textarea__character-count">
|
|
507
|
-
${[
|
|
172
|
+
})}><span class="textarea-container"><label part="form-control-label" class="form-control__label" for="input" aria-hidden=${i ? "false" : "true"}><slot name="label">${this.label}</slot></label><textarea part="textarea" id="input" class="textarea__control" title=${this.title} name=${n(this.name)} .value=${k(this.value)} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required} placeholder=${n(this.placeholder)} rows=${n(this.rows === c.Max ? void 0 : this.rows)} minlength=${n(this.minlength)} maxlength=${n(this.maxlength)} autocapitalize=${n(this.autoCapitalize)} autocorrect=${n(this.autoCorrect)} ?autofocus=${this.autoFocus} spellcheck=${n(this.spellCheck)} enterkeyhint=${n(this.enterKeyHint)} inputmode=${n(this.inputMode)} aria-describedby="help-text" @change=${this.handleChange} @input=${this.handleInput} @invalid=${this.handleInvalid} @focus=${this.handleFocus} @blur=${this.handleBlur}></textarea></span></div>${$(this.showLength, () => p`<div part="character-count" class="textarea__character-count">${[
|
|
508
173
|
this.minlength && `${this.minlength} /`,
|
|
509
174
|
this.value.length,
|
|
510
175
|
this.maxlength && `/ ${this.maxlength}`
|
|
511
|
-
].filter(Boolean).join(" ")}
|
|
512
|
-
</div>
|
|
513
|
-
`)}
|
|
514
|
-
</div>
|
|
515
|
-
|
|
516
|
-
<div
|
|
517
|
-
part="form-control-help-text"
|
|
518
|
-
id="help-text"
|
|
519
|
-
class="form-control__help-text"
|
|
520
|
-
aria-hidden=${l ? "false" : "true"}
|
|
521
|
-
>
|
|
522
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
`;
|
|
176
|
+
].filter(Boolean).join(" ")}</div>`)}</div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${l ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
526
177
|
}
|
|
527
178
|
};
|
|
528
|
-
e.styles = [b, g,
|
|
179
|
+
e.styles = [b, g, H];
|
|
529
180
|
r([
|
|
530
181
|
f(".textarea__control")
|
|
531
182
|
], e.prototype, "input", 2);
|
|
@@ -533,7 +184,7 @@ r([
|
|
|
533
184
|
f(".form-control")
|
|
534
185
|
], e.prototype, "formControlRoot", 2);
|
|
535
186
|
r([
|
|
536
|
-
|
|
187
|
+
w()
|
|
537
188
|
], e.prototype, "hasFocus", 2);
|
|
538
189
|
r([
|
|
539
190
|
a()
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
import { C as l, T as f } from "../chunks/typography.
|
|
1
|
+
import { C as l, T as f } from "../chunks/typography.DJC_UXgs.js";
|
|
2
2
|
import { n as i, C as y } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
|
-
import { c as d } from "../chunks/component.styles.
|
|
3
|
+
import { c as d } from "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import { T as g, f as n } from "../chunks/string.B_rEG27K.js";
|
|
5
5
|
import { t as u } from "../chunks/converters.DkDtLstb.js";
|
|
6
6
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { w as h } from "../chunks/watch.BCJD77bD.js";
|
|
8
8
|
import { i as x, E as S, x as b } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { r as T } from "../chunks/state.CSDxrqLd.js";
|
|
10
|
-
const w = x
|
|
11
|
-
:host {
|
|
12
|
-
display: inline;
|
|
13
|
-
white-space: normal;
|
|
14
|
-
}
|
|
15
|
-
:host([is-preview]) {
|
|
16
|
-
background-color: var(--cx-color-primary-50, #e5f1ff);
|
|
17
|
-
padding-inline: var(--cx-spacing-2x-small, 4px);
|
|
18
|
-
}
|
|
19
|
-
.time {
|
|
20
|
-
--color: var(--cx-color-primary);
|
|
21
|
-
margin-block-start: var(--cx-spacing-x-small);
|
|
22
|
-
line-height: var(--cx-line-height-medium);
|
|
23
|
-
display: inline;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
10
|
+
const w = x`:host{white-space:normal;display:inline}:host([is-preview]){background-color:var(--cx-color-primary-50,#e5f1ff);padding-inline:var(--cx-spacing-2x-small,4px)}.time{--color:var(--cx-color-primary);line-height:var(--cx-line-height-medium);margin-block-start:var(--cx-spacing-x-small);display:inline}`;
|
|
26
11
|
var C = Object.defineProperty, R = Object.getOwnPropertyDescriptor, e = (c, o, m, a) => {
|
|
27
12
|
for (var r = a > 1 ? void 0 : a ? R(o, m) : o, s = c.length - 1, p; s >= 0; s--)
|
|
28
13
|
(p = c[s]) && (r = (a ? p(o, m, r) : p(r)) || r);
|
|
@@ -53,11 +38,7 @@ let t = class extends y {
|
|
|
53
38
|
});
|
|
54
39
|
}
|
|
55
40
|
render() {
|
|
56
|
-
return this.time?.length ? b
|
|
57
|
-
<cx-typography class="time" variant=${this.typographyVariant}>
|
|
58
|
-
${this.timeString}
|
|
59
|
-
</cx-typography>
|
|
60
|
-
` : S;
|
|
41
|
+
return this.time?.length ? b`<cx-typography class="time" variant=${this.typographyVariant}>${this.timeString}</cx-typography>` : S;
|
|
61
42
|
}
|
|
62
43
|
};
|
|
63
44
|
t.styles = [d, w];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as i, C as
|
|
2
|
-
import { c as
|
|
1
|
+
import { n as i, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as g } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { p as c, s as u, a as m } from "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { w as y } from "../chunks/event.mFzZi4sr.js";
|
|
@@ -10,69 +10,13 @@ import { e as d } from "../chunks/query.BBf1UFkC.js";
|
|
|
10
10
|
import { e as O } from "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import { s as v, g as f } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
12
12
|
import B from "./popup.js";
|
|
13
|
-
const D = C
|
|
14
|
-
:host {
|
|
15
|
-
--hide-delay: 0ms;
|
|
16
|
-
--show-delay: 500ms;
|
|
17
|
-
|
|
18
|
-
display: contents;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tooltip {
|
|
22
|
-
--arrow-size: var(--cx-tooltip-arrow-size);
|
|
23
|
-
--arrow-color: var(--cx-tooltip-background-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.tooltip::part(popup) {
|
|
27
|
-
z-index: var(--cx-z-index-tooltip);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.tooltip[placement^='top']::part(popup) {
|
|
31
|
-
transform-origin: bottom;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.tooltip[placement^='bottom']::part(popup) {
|
|
35
|
-
transform-origin: top;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.tooltip[placement^='left']::part(popup) {
|
|
39
|
-
transform-origin: right;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.tooltip[placement^='right']::part(popup) {
|
|
43
|
-
transform-origin: left;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.tooltip--disabled-hover::part(popup) {
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.tooltip__body {
|
|
51
|
-
display: block;
|
|
52
|
-
width: max-content;
|
|
53
|
-
max-width: var(--max-width, min(80vw, 40rem));
|
|
54
|
-
border-radius: var(--cx-tooltip-border-radius);
|
|
55
|
-
background-color: var(--cx-tooltip-background-color);
|
|
56
|
-
font-family: var(--cx-tooltip-font-family);
|
|
57
|
-
font-size: var(--cx-tooltip-font-size);
|
|
58
|
-
font-weight: var(--cx-tooltip-font-weight);
|
|
59
|
-
line-height: var(--cx-tooltip-line-height);
|
|
60
|
-
text-align: start;
|
|
61
|
-
white-space: normal;
|
|
62
|
-
color: var(--cx-tooltip-color);
|
|
63
|
-
padding: var(--cx-tooltip-padding);
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
user-select: none;
|
|
66
|
-
-webkit-user-select: none;
|
|
67
|
-
overflow-wrap: break-word;
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
13
|
+
const D = C`:host{--hide-delay:0s;--show-delay:.5s;display:contents}.tooltip{--arrow-size:var(--cx-tooltip-arrow-size);--arrow-color:var(--cx-tooltip-background-color)}.tooltip::part(popup){z-index:var(--cx-z-index-tooltip)}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:100%}.tooltip[placement^=right]::part(popup){transform-origin:0}.tooltip--disabled-hover::part(popup){pointer-events:none}.tooltip__body{width:max-content;max-width:var(--max-width,min(80vw, 40rem));border-radius:var(--cx-tooltip-border-radius);background-color:var(--cx-tooltip-background-color);font-family:var(--cx-tooltip-font-family);font-size:var(--cx-tooltip-font-size);font-weight:var(--cx-tooltip-font-weight);line-height:var(--cx-tooltip-line-height);text-align:start;white-space:normal;color:var(--cx-tooltip-color);padding:var(--cx-tooltip-padding);pointer-events:none;-webkit-user-select:none;user-select:none;overflow-wrap:break-word;display:block}`;
|
|
70
14
|
var E = Object.defineProperty, T = Object.getOwnPropertyDescriptor, e = (o, s, n, a) => {
|
|
71
15
|
for (var r = a > 1 ? void 0 : a ? T(s, n) : s, p = o.length - 1, h; p >= 0; p--)
|
|
72
16
|
(h = o[p]) && (r = (a ? h(s, n, r) : h(r)) || r);
|
|
73
17
|
return a && r && E(s, n, r), r;
|
|
74
18
|
};
|
|
75
|
-
let t = class extends
|
|
19
|
+
let t = class extends b {
|
|
76
20
|
constructor() {
|
|
77
21
|
super(), this.localize = new x(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.disabledHoverBridge = !1, this.handleBlur = this.handleBlur.bind(this), this.handleFocus = this.handleFocus.bind(this), this.handleClick = this.handleClick.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleMouseOut = this.handleMouseOut.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
|
|
78
22
|
}
|
|
@@ -158,45 +102,17 @@ let t = class extends g {
|
|
|
158
102
|
// element, otherwise positioning is incorrect.
|
|
159
103
|
//
|
|
160
104
|
render() {
|
|
161
|
-
return k
|
|
162
|
-
<cx-popup
|
|
163
|
-
part="base"
|
|
164
|
-
exportparts="
|
|
105
|
+
return k`<cx-popup part="base" exportparts="
|
|
165
106
|
popup:base__popup,
|
|
166
107
|
arrow:base__arrow
|
|
167
|
-
"
|
|
168
|
-
class=${O({
|
|
108
|
+
" class=${O({
|
|
169
109
|
tooltip: !0,
|
|
170
110
|
"tooltip--disabled-hover": this.disabledHoverBridge,
|
|
171
111
|
"tooltip--open": this.open
|
|
172
|
-
})}
|
|
173
|
-
placement=${this.placement}
|
|
174
|
-
distance=${this.distance}
|
|
175
|
-
skidding=${this.skidding}
|
|
176
|
-
strategy=${this.hoist ? "overlay" : "absolute"}
|
|
177
|
-
flip
|
|
178
|
-
shift
|
|
179
|
-
arrow
|
|
180
|
-
?hover-bridge=${!this.disabledHoverBridge}
|
|
181
|
-
.anchor=${this.anchor}
|
|
182
|
-
.flipBoundary=${this.flipBoundary}
|
|
183
|
-
.shiftBoundary=${this.shiftBoundary}
|
|
184
|
-
>
|
|
185
|
-
<slot slot="anchor" aria-describedby="tooltip"></slot>
|
|
186
|
-
<div
|
|
187
|
-
part="body"
|
|
188
|
-
id="tooltip"
|
|
189
|
-
class="tooltip__body"
|
|
190
|
-
role="tooltip"
|
|
191
|
-
aria-live=${this.open ? "polite" : "off"}
|
|
192
|
-
>
|
|
193
|
-
<slot name="content">${this.content}</slot>
|
|
194
|
-
</div>
|
|
195
|
-
</cx-popup>
|
|
196
|
-
`;
|
|
112
|
+
})} placement=${this.placement} distance=${this.distance} skidding=${this.skidding} strategy=${this.hoist ? "overlay" : "absolute"} flip shift arrow ?hover-bridge=${!this.disabledHoverBridge} .anchor=${this.anchor} .flipBoundary=${this.flipBoundary} .shiftBoundary=${this.shiftBoundary}><slot slot="anchor" aria-describedby="tooltip"></slot><div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live=${this.open ? "polite" : "off"}><slot name="content">${this.content}</slot></div></cx-popup>`;
|
|
197
113
|
}
|
|
198
114
|
};
|
|
199
|
-
t.styles = [
|
|
115
|
+
t.styles = [g, D];
|
|
200
116
|
t.dependencies = { "cx-popup": B };
|
|
201
117
|
e([
|
|
202
118
|
d("slot:not([name])")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import "../chunks/component.styles.
|
|
2
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
@@ -15,7 +15,7 @@ import "../chunks/animation-registry.HmpwNuGH.js";
|
|
|
15
15
|
import "./checkbox.js";
|
|
16
16
|
import "./icon.js";
|
|
17
17
|
import "./spinner.js";
|
|
18
|
-
import { C as j } from "../chunks/tree.
|
|
18
|
+
import { C as j } from "../chunks/tree.q7xRVYyh.js";
|
|
19
19
|
export {
|
|
20
20
|
j as default
|
|
21
21
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import "../chunks/component.styles.
|
|
2
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
5
5
|
import "../chunks/math.DqTA6ya4.js";
|
|
6
6
|
import "../chunks/watch.BCJD77bD.js";
|
|
7
|
-
import { a as y, b, s as f, c as x } from "../chunks/tree.
|
|
7
|
+
import { a as y, b, s as f, c as x } from "../chunks/tree.q7xRVYyh.js";
|
|
8
8
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import "../chunks/query.BBf1UFkC.js";
|