q2-tecton-elements 1.15.1 → 1.16.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/dist/cjs/{index-0fec9f3b.js → index-afc50fbb.js} +18 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/{q2-input.cjs.entry.js → q2-badge_2.cjs.entry.js} +77 -18
- package/dist/cjs/q2-btn_2.cjs.entry.js +7 -6
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-card.cjs.entry.js +15 -8
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/q2-editable-field.cjs.entry.js +2 -2
- package/dist/cjs/q2-icon.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +2 -2
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/q2-option-list.cjs.entry.js +2 -2
- package/dist/cjs/q2-option.cjs.entry.js +12 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +2 -2
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +2 -2
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +298 -199
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +3 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tag.cjs.entry.js +2 -2
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-tooltip.cjs.entry.js +33 -0
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/q2-avatar/styles.css +1 -1
- package/dist/collection/components/q2-badge/index.js +4 -7
- package/dist/collection/components/q2-badge/styles.css +19 -12
- package/dist/collection/components/q2-btn/index.js +7 -6
- package/dist/collection/components/q2-btn/styles.css +10 -12
- package/dist/collection/components/q2-calendar/styles.css +7 -7
- package/dist/collection/components/q2-card/index.js +33 -8
- package/dist/collection/components/q2-card/styles.css +33 -36
- package/dist/collection/components/q2-carousel/styles.css +1 -1
- package/dist/collection/components/q2-carousel-pane/styles.css +1 -1
- package/dist/collection/components/q2-chart-donut/styles.css +3 -2
- package/dist/collection/components/q2-checkbox/index.js +1 -1
- package/dist/collection/components/q2-checkbox/styles.css +2 -2
- package/dist/collection/components/q2-checkbox-group/styles.css +3 -3
- package/dist/collection/components/q2-dropdown/styles.css +6 -6
- package/dist/collection/components/q2-dropdown-item/styles.css +3 -3
- package/dist/collection/components/q2-editable-field/styles.css +4 -4
- package/dist/collection/components/q2-icon/styles.css +1 -1
- package/dist/collection/components/q2-input/index.js +90 -23
- package/dist/collection/components/q2-input/styles.css +33 -26
- package/dist/collection/components/q2-loading/styles.css +4 -4
- package/dist/collection/components/q2-loc/styles.css +1 -1
- package/dist/collection/components/q2-message/styles.css +19 -17
- package/dist/collection/components/q2-optgroup/styles.css +7 -11
- package/dist/collection/components/q2-option/index.js +15 -3
- package/dist/collection/components/q2-option/styles.css +12 -5
- package/dist/collection/components/q2-option-list/styles.css +5 -5
- package/dist/collection/components/q2-pagination/styles.css +1 -1
- package/dist/collection/components/q2-pill/styles.css +18 -17
- package/dist/collection/components/q2-radio/styles.css +2 -2
- package/dist/collection/components/q2-radio-group/styles.css +3 -3
- package/dist/collection/components/q2-section/styles.css +6 -6
- package/dist/collection/components/q2-select/index.js +314 -206
- package/dist/collection/components/q2-select/styles.css +24 -13
- package/dist/collection/components/q2-stepper/styles.css +19 -13
- package/dist/collection/components/q2-stepper-pane/styles.css +1 -1
- package/dist/collection/components/q2-stepper-vertical/index.js +1 -0
- package/dist/collection/components/q2-stepper-vertical/styles.css +14 -14
- package/dist/collection/components/q2-tab-container/styles.css +7 -7
- package/dist/collection/components/q2-tab-pane/styles.css +1 -1
- package/dist/collection/components/q2-tag/styles.css +4 -6
- package/dist/collection/components/q2-textarea/styles.css +2 -2
- package/dist/collection/components/q2-tooltip/index.js +120 -0
- package/dist/collection/components/q2-tooltip/styles.css +276 -0
- package/dist/collection/components/tecton-tab-pane/styles.css +1 -1
- package/dist/collection/utils/index.js +18 -2
- package/dist/esm/{index-14e81efa.js → index-2ca8c93c.js} +18 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/{q2-input.entry.js → q2-badge_2.entry.js} +78 -20
- package/dist/esm/q2-btn_2.entry.js +7 -6
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-card.entry.js +15 -8
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- package/dist/esm/q2-carousel.entry.js +2 -2
- package/dist/esm/q2-chart-donut.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js +3 -3
- package/dist/esm/q2-dropdown-item.entry.js +2 -2
- package/dist/esm/q2-dropdown.entry.js +2 -2
- package/dist/esm/q2-editable-field.entry.js +2 -2
- package/dist/esm/q2-icon.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +2 -2
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-optgroup.entry.js +2 -2
- package/dist/esm/q2-option-list.entry.js +2 -2
- package/dist/esm/q2-option.entry.js +12 -1
- package/dist/esm/q2-pagination.entry.js +2 -2
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +2 -2
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +298 -199
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +3 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tag.entry.js +2 -2
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-tooltip.entry.js +29 -0
- package/dist/esm/tecton-tab-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/{p-77263ed4.entry.js → p-0a8b8d14.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-0b5fbbe8.entry.js +1 -0
- package/dist/q2-tecton-elements/p-0d00030f.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-85cff6ec.entry.js → p-0e9c7220.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-1b0f826e.entry.js +1 -0
- package/dist/q2-tecton-elements/p-1c430c2a.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2d2008fd.entry.js +1 -0
- package/dist/q2-tecton-elements/p-34f99830.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-ead64414.entry.js → p-35bde69c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-d46efe36.entry.js → p-376988ef.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-41fcf343.js +1 -0
- package/dist/q2-tecton-elements/p-49612230.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-e3406026.entry.js → p-4b48fde6.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-4ec2cb69.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-ea2a290e.entry.js → p-5270b0ff.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-dc1ef3fa.entry.js → p-5e990654.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-60400f59.entry.js → p-60a7a11e.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-677faf2c.entry.js +1 -0
- package/dist/q2-tecton-elements/p-6e10db80.entry.js +1 -0
- package/dist/q2-tecton-elements/p-6f884c60.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-991d7d22.entry.js → p-822d3d6c.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-8584c6bc.entry.js +1 -0
- package/dist/q2-tecton-elements/p-87766054.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-b0dc920c.entry.js → p-879aa7ac.entry.js} +2 -2
- package/dist/q2-tecton-elements/p-92e9f290.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-627df469.entry.js → p-b6c45ef6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-cf9e8120.entry.js → p-b7dc4e93.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-c59d601e.entry.js +1 -0
- package/dist/q2-tecton-elements/p-d040bf99.entry.js +1 -0
- package/dist/q2-tecton-elements/p-d79386c6.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-fbfb3615.entry.js → p-dd3f64a7.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-58e42fc5.entry.js → p-dd792081.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-ef2f68b2.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-9b2bc894.entry.js → p-f617c54a.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-f66adef0.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/types/components/q2-badge/index.d.ts +0 -1
- package/dist/types/components/q2-card/index.d.ts +1 -0
- package/dist/types/components/q2-input/index.d.ts +6 -2
- package/dist/types/components/q2-option/index.d.ts +2 -0
- package/dist/types/components/q2-select/index.d.ts +37 -24
- package/dist/types/components/q2-tooltip/index.d.ts +10 -0
- package/dist/types/components.d.ts +29 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/workspace/workspace/{tecton-production_release_1.15.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/elements/q2-tag-test.d.ts +0 -0
- package/dist/types/workspace/workspace/{tecton-production_release_1.15.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
- package/package.json +2 -2
- package/dist/cjs/q2-badge.cjs.entry.js +0 -41
- package/dist/esm/q2-badge.entry.js +0 -37
- package/dist/q2-tecton-elements/p-0e13d5ba.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1b3c4cb2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-2f13d873.entry.js +0 -1
- package/dist/q2-tecton-elements/p-37f1984c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3cfc0cb4.entry.js +0 -1
- package/dist/q2-tecton-elements/p-431bf43e.js +0 -1
- package/dist/q2-tecton-elements/p-50615a56.entry.js +0 -1
- package/dist/q2-tecton-elements/p-663cb6e8.entry.js +0 -1
- package/dist/q2-tecton-elements/p-6ced7858.entry.js +0 -1
- package/dist/q2-tecton-elements/p-704d7f41.entry.js +0 -1
- package/dist/q2-tecton-elements/p-7249de38.entry.js +0 -1
- package/dist/q2-tecton-elements/p-8a8c6374.entry.js +0 -1
- package/dist/q2-tecton-elements/p-8f815678.entry.js +0 -1
- package/dist/q2-tecton-elements/p-9af46ffc.entry.js +0 -1
- package/dist/q2-tecton-elements/p-9d8a963b.entry.js +0 -1
- package/dist/q2-tecton-elements/p-bd6c6239.entry.js +0 -1
- package/dist/q2-tecton-elements/p-c4eff511.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d5ecb3ba.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e0ddf788.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e435159b.entry.js +0 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -67,18 +67,18 @@ button {
|
|
|
67
67
|
.q2-element-dropdown {
|
|
68
68
|
display: none;
|
|
69
69
|
position: absolute;
|
|
70
|
-
background-color: var(--app-white);
|
|
71
|
-
color: var(--t-
|
|
70
|
+
background-color: var(--app-white, #ffffff);
|
|
71
|
+
color: var(--t-text, #4d4d4d);
|
|
72
72
|
left: 0;
|
|
73
73
|
width: 100%;
|
|
74
74
|
z-index: 100;
|
|
75
75
|
margin-top: 1px;
|
|
76
|
-
box-shadow: var(--app-shadow-1);
|
|
76
|
+
box-shadow: var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3));
|
|
77
77
|
height: 0;
|
|
78
78
|
overflow: hidden;
|
|
79
79
|
opacity: 0;
|
|
80
80
|
visibility: hidden;
|
|
81
|
-
transition: opacity var(--app-tween-1);
|
|
81
|
+
transition: opacity var(--app-tween-1, 0.2s ease);
|
|
82
82
|
border-radius: var(--tct-dropdown-border-radius, --t-dropdown-border-radius, 0);
|
|
83
83
|
--comp-scrollbar-size: var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));
|
|
84
84
|
--comp-scrollbar-border-radius: var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 3px)));
|
|
@@ -136,14 +136,21 @@ button {
|
|
|
136
136
|
|
|
137
137
|
.q2-select-input {
|
|
138
138
|
margin: 0;
|
|
139
|
+
--tct-input-min-height: var(--tct-select-input-min-height, var(--t-select-input-min-height));
|
|
140
|
+
--tct-input-max-height: var(--tct-select-input-max-height, var(--t-select-input-max-height, 100px));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
::slotted([slot=_selected-display]) {
|
|
144
|
+
width: 100%;
|
|
145
|
+
min-height: var(--comp-selected-display-height, 44px);
|
|
139
146
|
}
|
|
140
147
|
|
|
141
148
|
.custom-display-content {
|
|
142
149
|
position: absolute;
|
|
143
150
|
bottom: 0;
|
|
144
|
-
left: calc(var(--tct-scale-2, var(--app-scale-
|
|
151
|
+
left: calc(var(--tct-scale-2, var(--app-scale-2x, 10px)) + 1px);
|
|
145
152
|
height: 44px;
|
|
146
|
-
width: calc(100% - 34px - var(--tct-scale-3, var(--app-scale-
|
|
153
|
+
width: calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3x, 15px)));
|
|
147
154
|
overflow: hidden;
|
|
148
155
|
cursor: pointer;
|
|
149
156
|
transition: left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));
|
|
@@ -156,11 +163,11 @@ button {
|
|
|
156
163
|
|
|
157
164
|
.is-searchable.is-focused .custom-display-content,
|
|
158
165
|
.is-searchable .custom-display-content:active {
|
|
159
|
-
left: calc(var(--tct-scale-3, var(--app-scale-
|
|
166
|
+
left: calc(var(--tct-scale-3, var(--app-scale-3x, 15px)) + 1px);
|
|
160
167
|
}
|
|
161
168
|
|
|
162
169
|
.has-error .custom-display-content {
|
|
163
|
-
width: calc(100% - 68px - var(--tct-scale-3, var(--app-scale-
|
|
170
|
+
width: calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3x, 15px)));
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
.dropdown-open .q2-select-dropdown {
|
|
@@ -169,14 +176,18 @@ button {
|
|
|
169
176
|
}
|
|
170
177
|
|
|
171
178
|
.multi-select-header {
|
|
172
|
-
padding: var(--tct-scale-1, var(--app-scale-
|
|
179
|
+
padding: var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-2, var(--app-scale-2x, 10px));
|
|
180
|
+
position: sticky;
|
|
181
|
+
top: 0;
|
|
182
|
+
z-index: 5;
|
|
183
|
+
background: var(--app-white);
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
.show-all-options {
|
|
176
|
-
margin-right: var(--tct-scale-1, var(--app-scale-
|
|
177
|
-
margin-left: var(--tct-scale-2, var(--app-scale-
|
|
187
|
+
margin-right: var(--tct-scale-1, var(--app-scale-1x, 5px));
|
|
188
|
+
margin-left: var(--tct-scale-2, var(--app-scale-2x, 10px));
|
|
178
189
|
}
|
|
179
190
|
|
|
180
191
|
.q2-element-dropdown.dropup {
|
|
181
|
-
bottom:
|
|
192
|
+
bottom: var(--comp-dropup-offset);
|
|
182
193
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -75,7 +75,7 @@ ul {
|
|
|
75
75
|
--comp-bullet-size: var(--tct-stepper-btn-icon-size, var(--t-stepper-btn-icon-size, 24px));
|
|
76
76
|
--comp-bullet-gap: var(--tct-stepper-btn-gap, var(--t-stepper-btn-gap, var(--app-scale-3x, 15px)));
|
|
77
77
|
--comp-bullet-border-offset: var(--tct-stepper-bullet-border-offset, var(--t-stepper-bullet-border-offset, 4px));
|
|
78
|
-
--comp-bullet-border: var(--tct-stepper-bullet-border, var(--t-stepper-bullet-border, 2px solid var(--t-primary-l3)));
|
|
78
|
+
--comp-bullet-border: var(--tct-stepper-bullet-border, var(--t-stepper-bullet-border, 2px solid var(--t-primary-l3, #21acff)));
|
|
79
79
|
--comp-bullet-font-size: var-list(var-prefixer(stepper-btn-label-font-size), 16px);
|
|
80
80
|
--comp-step-width: var(--tct-stepper-step-width, var(--t-stepper-step-width, var(--t-stepper-step-width, 80px)));
|
|
81
81
|
--comp-step-gap: var(--tct-stepper-step-gap, var(--t-stepper-step-gap, 5px));
|
|
@@ -140,13 +140,13 @@ li {
|
|
|
140
140
|
padding: 0;
|
|
141
141
|
transition-property: box-shadow;
|
|
142
142
|
outline: none;
|
|
143
|
-
--comp-active-color: var(--t-primary);
|
|
143
|
+
--comp-active-color: var(--t-primary, #0079c1);
|
|
144
144
|
}
|
|
145
145
|
.step-btn.status-complete {
|
|
146
|
-
--comp-active-color: var(--const-stoplight-success);
|
|
146
|
+
--comp-active-color: var(--const-stoplight-success, #0e8a00);
|
|
147
147
|
}
|
|
148
148
|
.step-btn.status-error {
|
|
149
|
-
--comp-active-color: var(--const-stoplight-alert);
|
|
149
|
+
--comp-active-color: var(--const-stoplight-alert, #c30000);
|
|
150
150
|
}
|
|
151
151
|
.step-btn[aria-disabled] {
|
|
152
152
|
cursor: not-allowed;
|
|
@@ -156,7 +156,8 @@ li {
|
|
|
156
156
|
--comp-bullet-bg: var(--tct-stepper-bullet-inactive-bg, var(--t-stepper-bullet-inactive-bg, var(--t-gray-12, #d9d9d9)));
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.step-icon,
|
|
159
|
+
.step-icon,
|
|
160
|
+
.step-bubble {
|
|
160
161
|
display: flex;
|
|
161
162
|
justify-content: center;
|
|
162
163
|
align-items: center;
|
|
@@ -172,18 +173,23 @@ li {
|
|
|
172
173
|
border-radius: 50%;
|
|
173
174
|
position: relative;
|
|
174
175
|
}
|
|
175
|
-
.step-icon q2-icon,
|
|
176
|
+
.step-icon q2-icon,
|
|
177
|
+
.step-bubble q2-icon {
|
|
176
178
|
fill: var(--comp-active-color);
|
|
177
179
|
--tct-icon-stroke-primary: var(--comp-active-color);
|
|
178
|
-
--tct-icon-stroke-secondary: var(--t-base);
|
|
180
|
+
--tct-icon-stroke-secondary: var(--t-base, #ffffff);
|
|
179
181
|
}
|
|
180
|
-
.status-complete .step-icon, .status-error .step-icon,
|
|
182
|
+
.status-complete .step-icon, .status-error .step-icon,
|
|
183
|
+
.status-complete .step-bubble,
|
|
184
|
+
.status-error .step-bubble {
|
|
181
185
|
background: var(--comp-active-color);
|
|
182
186
|
}
|
|
183
|
-
[aria-selected] .step-icon,
|
|
187
|
+
[aria-selected] .step-icon,
|
|
188
|
+
[aria-selected] .step-bubble {
|
|
184
189
|
font-weight: var(--tct-stepper-bullet-active-font-weight, var(--t-stepper-bullet-active-font-weight, 600));
|
|
185
190
|
}
|
|
186
|
-
[aria-selected] .step-icon:before,
|
|
191
|
+
[aria-selected] .step-icon:before,
|
|
192
|
+
[aria-selected] .step-bubble:before {
|
|
187
193
|
content: "";
|
|
188
194
|
position: absolute;
|
|
189
195
|
inset: calc(var(--comp-bullet-border-offset) * -1);
|
|
@@ -252,12 +258,12 @@ hr {
|
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
.gradient-left {
|
|
255
|
-
background-image: linear-gradient(to left, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
261
|
+
background-image: linear-gradient(to left, var(--t-base-a0, rgba(255, 255, 255, 0)), var(--t-base-a2, rgba(255, 255, 255, 0.5)) 10%, var(--t-base, #ffffff) 100%);
|
|
256
262
|
left: 0;
|
|
257
263
|
}
|
|
258
264
|
|
|
259
265
|
.gradient-right {
|
|
260
|
-
background-image: linear-gradient(to right, var(--t-base-a0), var(--t-base-a2) 10%, var(--t-base) 100%);
|
|
266
|
+
background-image: linear-gradient(to right, var(--t-base-a0, rgba(255, 255, 255, 0)), var(--t-base-a2, rgba(255, 255, 255, 0.5)) 10%, var(--t-base, #ffffff) 100%);
|
|
261
267
|
right: 0;
|
|
262
268
|
}
|
|
263
269
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -158,20 +158,20 @@ ul ul[aria-hidden=true] {
|
|
|
158
158
|
.step-btn {
|
|
159
159
|
min-height: var(--tct-advanced-stepper-btn-height, var(--t-advanced-stepper-btn-height, 40px));
|
|
160
160
|
font-size: var(--tct-advanced-stepper-btn-font-size, var(--t-advanced-stepper-btn-font-size, 16px));
|
|
161
|
-
--comp-active-color: var(--t-primary);
|
|
161
|
+
--comp-active-color: var(--t-primary, #0079c1);
|
|
162
162
|
}
|
|
163
163
|
.step-btn.status-complete {
|
|
164
|
-
--comp-active-color: var(--const-stoplight-success);
|
|
164
|
+
--comp-active-color: var(--const-stoplight-success, #0e8a00);
|
|
165
165
|
}
|
|
166
166
|
.step-btn.status-error {
|
|
167
|
-
--comp-active-color: var(--const-stoplight-alert);
|
|
167
|
+
--comp-active-color: var(--const-stoplight-alert, #c30000);
|
|
168
168
|
}
|
|
169
169
|
.step-btn.status-locked {
|
|
170
170
|
cursor: not-allowed;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.step-child-btn {
|
|
174
|
-
--comp-active-color: var(--t-primary);
|
|
174
|
+
--comp-active-color: var(--t-primary, #0079c1);
|
|
175
175
|
min-height: var(--tct-advanced-stepper-child-btn-height, var(--t-advanced-stepper-child-btn-height, 30px));
|
|
176
176
|
padding-left: var(--tct-advanced-stepper-child-btn-left-padding, var(--t-advanced-stepper-child-btn-left-padding, var(--app-scale-2x, 10px)));
|
|
177
177
|
font-size: var(--tct-advanced-stepper-child-btn-font-size, var(--t-advanced-stepper-child-btn-font-size, 12px));
|
|
@@ -184,8 +184,8 @@ ul ul[aria-hidden=true] {
|
|
|
184
184
|
border-left-color: var(--comp-active-color);
|
|
185
185
|
}
|
|
186
186
|
.step-child-btn.status-error {
|
|
187
|
-
--comp-btn-label-color: var(--const-stoplight-alert);
|
|
188
|
-
--comp-active-color: var(--const-stoplight-alert);
|
|
187
|
+
--comp-btn-label-color: var(--const-stoplight-alert, #c30000);
|
|
188
|
+
--comp-active-color: var(--const-stoplight-alert, #c30000);
|
|
189
189
|
}
|
|
190
190
|
.step-child-btn.status-locked {
|
|
191
191
|
cursor: not-allowed;
|
|
@@ -212,8 +212,8 @@ ul ul[aria-hidden=true] {
|
|
|
212
212
|
|
|
213
213
|
.step-icon,
|
|
214
214
|
.step-bubble {
|
|
215
|
-
background: var(--t-primary);
|
|
216
|
-
color: var(--t-base);
|
|
215
|
+
background: var(--t-primary, #0079c1);
|
|
216
|
+
color: var(--t-base, #ffffff);
|
|
217
217
|
border-radius: 50%;
|
|
218
218
|
}
|
|
219
219
|
.status-complete .step-icon, .status-error .step-icon,
|
|
@@ -223,16 +223,16 @@ ul ul[aria-hidden=true] {
|
|
|
223
223
|
}
|
|
224
224
|
.step-icon q2-icon,
|
|
225
225
|
.step-bubble q2-icon {
|
|
226
|
-
--tct-icon-stroke-secondary: var(--t-base);
|
|
226
|
+
--tct-icon-stroke-secondary: var(--t-base, #ffffff);
|
|
227
227
|
}
|
|
228
228
|
.status-locked .step-icon,
|
|
229
229
|
.status-locked .step-bubble {
|
|
230
|
-
background: var(--t-gray-12);
|
|
231
|
-
color: var(--t-text);
|
|
230
|
+
background: var(--t-gray-12, #d9d9d9);
|
|
231
|
+
color: var(--t-text, #4d4d4d);
|
|
232
232
|
}
|
|
233
233
|
[aria-selected=true] .step-icon,
|
|
234
234
|
[aria-selected=true] .step-bubble {
|
|
235
|
-
box-shadow: 0 0 0 2px var(--t-base), 0 0 0 4px var(--comp-active-color);
|
|
235
|
+
box-shadow: 0 0 0 2px var(--t-base, #ffffff), 0 0 0 4px var(--comp-active-color);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.step-bubble {
|
|
@@ -248,7 +248,7 @@ ul ul[aria-hidden=true] {
|
|
|
248
248
|
}
|
|
249
249
|
[aria-selected=true] .step-child-icon q2-icon {
|
|
250
250
|
fill: var(--comp-active-color);
|
|
251
|
-
--tct-icon-stroke-secondary: var(--t-base);
|
|
251
|
+
--tct-icon-stroke-secondary: var(--t-base, #ffffff);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.spacer {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -79,10 +79,10 @@ button {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
ul {
|
|
82
|
-
--comp-container-padding: var(--tct-scale-1, var(--app-scale-
|
|
82
|
+
--comp-container-padding: var(--tct-scale-1, var(--app-scale-1x, 5px)) var(--tct-scale-1, var(--app-scale-1x, 5px)) 0;
|
|
83
83
|
padding: var(--tct-tab-container-padding, var(--t-tab-container-padding, var(--comp-container-padding)));
|
|
84
84
|
display: flex;
|
|
85
|
-
gap: var(--tct-tab-gap, var(--t-tab-gap, var(--tct-scale-1, var(--app-scale-
|
|
85
|
+
gap: var(--tct-tab-gap, var(--t-tab-gap, var(--tct-scale-1, var(--app-scale-1x, 5px))));
|
|
86
86
|
list-style: none;
|
|
87
87
|
border-bottom: 1px solid var(--tct-tab-container-border-color, var(--t-tab-container-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));
|
|
88
88
|
overflow-x: auto;
|
|
@@ -118,14 +118,14 @@ li button {
|
|
|
118
118
|
width: var(--tct-tab-width, var(--t-tab-width, 100%));
|
|
119
119
|
text-align: var(--tct-tab-text-align, var(--t-tab-text-align, center));
|
|
120
120
|
text-decoration: var(--tct-tab-text-decoration, var(--t-tab-text-decoration, none));
|
|
121
|
-
padding: var(--tct-tab-padding, var(--t-tab-padding, var(--tct-scale-2, var(--app-scale-
|
|
121
|
+
padding: var(--tct-tab-padding, var(--t-tab-padding, var(--tct-scale-2, var(--app-scale-2x, 10px))));
|
|
122
122
|
color: var(--tct-tab-inactive-color, var(--t-tab-inactive-color, inherit));
|
|
123
123
|
font-size: var(--tct-tab-font-size, var(--t-tab-font-size, 17px));
|
|
124
124
|
display: block;
|
|
125
125
|
transition: color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)), border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
|
|
126
126
|
}
|
|
127
127
|
:host([type=section]) li button {
|
|
128
|
-
--comp-tab-section-padding: var(--tct-scale-2, var(--app-scale-
|
|
128
|
+
--comp-tab-section-padding: var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));
|
|
129
129
|
font-size: inherit;
|
|
130
130
|
padding: var(--tct-tab-section-padding, var(--t-tab-section-padding, var(--comp-tab-section-padding)));
|
|
131
131
|
}
|
|
@@ -149,14 +149,14 @@ li button[aria-selected=true] {
|
|
|
149
149
|
}
|
|
150
150
|
@media screen and (max-width: 767px) {
|
|
151
151
|
li button {
|
|
152
|
-
--comp-tab-padding: var(--tct-scale-2, var(--app-scale-
|
|
152
|
+
--comp-tab-padding: var(--tct-scale-2, var(--app-scale-2x, 10px)) var(--tct-scale-1, var(--app-scale-1x, 5px));
|
|
153
153
|
font-size: inherit;
|
|
154
154
|
padding: var(--tct-tab-padding, var(--t-tab-padding, var(--comp-tab-padding)));
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.tab-content {
|
|
159
|
-
--comp-tab-content-padding: var(--tct-scale-2, var(--app-scale-
|
|
159
|
+
--comp-tab-content-padding: var(--tct-scale-2, var(--app-scale-2x, 10px)) 0;
|
|
160
160
|
padding: var(--tct-tab-content-padding, var(--t-tab-content-padding, var(--comp-tab-content-padding)));
|
|
161
161
|
}
|
|
162
162
|
.tab-content:focus {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -84,11 +84,11 @@ button {
|
|
|
84
84
|
--comp-tag-color: var(--t-primary-text, #ffffff);
|
|
85
85
|
}
|
|
86
86
|
:host([theme=secondary]) .tag-wrapper {
|
|
87
|
-
--comp-tag-background: var(--t-secondary-l5, #
|
|
87
|
+
--comp-tag-background: var(--t-secondary-l5, #d9e1e6);
|
|
88
88
|
--comp-tag-color: var(--t-secondary-text, #000000);
|
|
89
89
|
}
|
|
90
90
|
:host([theme=tertiary]) .tag-wrapper {
|
|
91
|
-
--comp-tag-background: var(--t-tertiary-l5, #
|
|
91
|
+
--comp-tag-background: var(--t-tertiary-l5, #f4fafe);
|
|
92
92
|
--comp-tag-color: var(--t-tertiary-text, #000000);
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -106,9 +106,7 @@ button {
|
|
|
106
106
|
|
|
107
107
|
.btn-wrapper {
|
|
108
108
|
--comp-tag-clickable-size: var(--tct-tag-clickable-size, var(--t-tag-clickable-size, 44px));
|
|
109
|
-
--comp-tag-btn-offset: calc(
|
|
110
|
-
calc(calc(var(--comp-tag-clickable-size) - var(--comp-tag-btn-size)) / 2) * -1
|
|
111
|
-
);
|
|
109
|
+
--comp-tag-btn-offset: calc(calc(calc(var(--comp-tag-clickable-size) - var(--comp-tag-btn-size)) / 2) * -1);
|
|
112
110
|
height: var(--comp-tag-clickable-size);
|
|
113
111
|
width: var(--comp-tag-clickable-size);
|
|
114
112
|
display: flex;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
10
|
outline: none;
|
|
11
|
-
box-shadow: var(--const-global-focus);
|
|
11
|
+
box-shadow: var(--const-global-focus, 0 0 0 2px #33b4ff);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
@@ -137,7 +137,7 @@ textarea {
|
|
|
137
137
|
box-sizing: border-box;
|
|
138
138
|
min-height: var(--tct-textarea-min-height, var(--t-textarea-min-height, var(--comp-textarea-min-height)));
|
|
139
139
|
padding: var(--tct-textarea-vertical-padding, var(--t-textarea-vertical-padding, var(--tct-scale-2x, var(--app-scale-2x, 10px)))) var(--tct-textarea-horizontal-padding, var(--t-textarea-horizontal-padding, var(--tct-scale-2x, var(--app-scale-2x, 10px))));
|
|
140
|
-
background-color: var(--tct-textarea-bg, var(--t-textarea-bg, var(--
|
|
140
|
+
background-color: var(--tct-textarea-bg, var(--t-textarea-bg, var(--tct-input-bg, var(--t-input-bg, var(--t-gray-14, #fcfcfd)))));
|
|
141
141
|
color: var(--tct-textarea-font-color, var(--t-textarea-font-color, var(--t-input-font-color, inherit)));
|
|
142
142
|
border-width: var(--comp-textarea-border-width);
|
|
143
143
|
border-style: solid;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Component, Prop, h, Element, Fragment } from '@stencil/core';
|
|
2
|
+
export class Q2Tooltip {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.position = 'n';
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
const classList = ['q2-tooltip-container', 'tooltipped'];
|
|
8
|
+
classList.push(`tooltipped-${this.position}`);
|
|
9
|
+
if (this.block) {
|
|
10
|
+
classList.push('block');
|
|
11
|
+
this.hostElement.style.display = 'block';
|
|
12
|
+
}
|
|
13
|
+
if (this.multiline) {
|
|
14
|
+
classList.push('tooltipped-multiline');
|
|
15
|
+
}
|
|
16
|
+
if (this.persistent) {
|
|
17
|
+
classList.push('persistent');
|
|
18
|
+
}
|
|
19
|
+
return this.label ? (h(Fragment, null,
|
|
20
|
+
h("div", { class: classList.join(' '), "aria-label": this.label },
|
|
21
|
+
h("slot", null)))) : (h("slot", null));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "q2-tooltip"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() { return {
|
|
26
|
+
"$": ["styles.scss"]
|
|
27
|
+
}; }
|
|
28
|
+
static get styleUrls() { return {
|
|
29
|
+
"$": ["styles.css"]
|
|
30
|
+
}; }
|
|
31
|
+
static get properties() { return {
|
|
32
|
+
"label": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"mutable": false,
|
|
35
|
+
"complexType": {
|
|
36
|
+
"original": "string",
|
|
37
|
+
"resolved": "string",
|
|
38
|
+
"references": {}
|
|
39
|
+
},
|
|
40
|
+
"required": false,
|
|
41
|
+
"optional": false,
|
|
42
|
+
"docs": {
|
|
43
|
+
"tags": [],
|
|
44
|
+
"text": ""
|
|
45
|
+
},
|
|
46
|
+
"attribute": "label",
|
|
47
|
+
"reflect": true
|
|
48
|
+
},
|
|
49
|
+
"block": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "boolean",
|
|
54
|
+
"resolved": "boolean",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": ""
|
|
62
|
+
},
|
|
63
|
+
"attribute": "block",
|
|
64
|
+
"reflect": true
|
|
65
|
+
},
|
|
66
|
+
"multiline": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "boolean",
|
|
71
|
+
"resolved": "boolean",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"attribute": "multiline",
|
|
81
|
+
"reflect": true
|
|
82
|
+
},
|
|
83
|
+
"persistent": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "boolean",
|
|
88
|
+
"resolved": "boolean",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": ""
|
|
96
|
+
},
|
|
97
|
+
"attribute": "persistent",
|
|
98
|
+
"reflect": true
|
|
99
|
+
},
|
|
100
|
+
"position": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "'n' | 's' | 'e' | 'w' | 'nw' | 'ne' | 'sw' | 'se'",
|
|
105
|
+
"resolved": "\"e\" | \"n\" | \"ne\" | \"nw\" | \"s\" | \"se\" | \"sw\" | \"w\"",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"attribute": "position",
|
|
115
|
+
"reflect": true,
|
|
116
|
+
"defaultValue": "'n'"
|
|
117
|
+
}
|
|
118
|
+
}; }
|
|
119
|
+
static get elementRef() { return "hostElement"; }
|
|
120
|
+
}
|