@emuanalytics/flow-rdf-ui 4.1.0-preview.0 → 4.1.0-preview.3
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/components/alert/alert.styles.mjs +5 -5
- package/dist/components/badge/badge.styles.mjs +11 -11
- package/dist/components/base-control/base-control.component.mjs +1 -6
- package/dist/components/base-control/base-control.styles.mjs +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.mjs +1 -1
- package/dist/components/button/button.component.mjs +3 -3
- package/dist/components/button/button.styles.mjs +55 -38
- package/dist/components/calendar/calendar.component.mjs +3 -0
- package/dist/components/calendar/calendar.styles.mjs +15 -6
- package/dist/components/card/card.styles.mjs +8 -4
- package/dist/components/checkbox/checkbox.component.mjs +11 -6
- package/dist/components/checkbox/checkbox.styles.mjs +27 -13
- package/dist/components/checkbox-group/checkbox-group.component.mjs +12 -1
- package/dist/components/checkbox-group/checkbox-group.styles.mjs +6 -6
- package/dist/components/color-mapper/color-mapper.component.mjs +1 -1
- package/dist/components/color-mapper/color-mapper.styles.mjs +5 -5
- package/dist/components/color-picker/color-picker.styles.mjs +18 -12
- package/dist/components/color-stop/color-stop.styles.mjs +7 -12
- package/dist/components/date-time-picker/date-time-picker.component.mjs +3 -2
- package/dist/components/date-time-picker/date-time-picker.styles.mjs +43 -43
- package/dist/components/details/details.styles.mjs +27 -5
- package/dist/components/dialog/dialog.component.mjs +74 -29
- package/dist/components/dialog/dialog.styles.mjs +22 -7
- package/dist/components/drawer/drawer.styles.mjs +1 -1
- package/dist/components/form-group/form-group.component.mjs +31 -14
- package/dist/components/form-group/form-group.styles.mjs +43 -9
- package/dist/components/gauge/gauge.component.mjs +6 -9
- package/dist/components/gauge/gauge.styles.mjs +7 -7
- package/dist/components/icon/library.system.mjs +2 -1
- package/dist/components/icon-button/icon-button.styles.mjs +1 -1
- package/dist/components/input/input.component.mjs +4 -3
- package/dist/components/input/input.styles.mjs +26 -14
- package/dist/components/menu/menu.styles.mjs +12 -2
- package/dist/components/menu-item/menu-item.component.mjs +9 -5
- package/dist/components/menu-item/menu-item.styles.mjs +5 -5
- package/dist/components/option/option.styles.mjs +5 -5
- package/dist/components/panel/panel.component.mjs +10 -3
- package/dist/components/panel/panel.styles.mjs +5 -5
- package/dist/components/panel-header/panel-header.component.mjs +3 -3
- package/dist/components/panel-header/panel-header.styles.mjs +2 -2
- package/dist/components/popup/popup.styles.mjs +1 -1
- package/dist/components/progress-bar/progress-bar.component.mjs +1 -1
- package/dist/components/query-builder/query-builder.component.mjs +139 -89
- package/dist/components/query-builder/query-builder.styles.mjs +68 -13
- package/dist/components/radio/radio.component.mjs +5 -5
- package/dist/components/radio/radio.styles.mjs +18 -18
- package/dist/components/radio-group/radio-group.component.mjs +8 -1
- package/dist/components/radio-group/radio-group.styles.mjs +6 -6
- package/dist/components/range/range.component.mjs +39 -26
- package/dist/components/range/range.styles.mjs +20 -15
- package/dist/components/select/select.component.mjs +6 -5
- package/dist/components/select/select.styles.mjs +46 -29
- package/dist/components/spinner/spinner.styles.mjs +1 -1
- package/dist/components/split-view-divider/split-view-divider.styles.mjs +2 -8
- package/dist/components/stepper/stepper.component.mjs +2 -1
- package/dist/components/stepper/stepper.styles.mjs +8 -8
- package/dist/components/stepper-panel/stepper-panel.component.mjs +0 -4
- package/dist/components/switch/switch.component.mjs +4 -5
- package/dist/components/switch/switch.styles.mjs +11 -4
- package/dist/components/tab/tab.component.mjs +3 -0
- package/dist/components/tab-group/tab-group.component.mjs +38 -33
- package/dist/components/tab-group/tab-group.styles.mjs +2 -9
- package/dist/components/tab-panel/tab-panel.component.mjs +7 -1
- package/dist/components/tab-panel/tab-panel.styles.mjs +7 -7
- package/dist/components/tag/tag.styles.mjs +22 -22
- package/dist/components/textarea/textarea.component.mjs +1 -1
- package/dist/components/textarea/textarea.styles.mjs +33 -33
- package/dist/components/timer/timer.component.mjs +1 -1
- package/dist/components/timer/timer.styles.mjs +3 -3
- package/dist/components/tool-button/tool-button.styles.mjs +17 -17
- package/dist/components/tool-button-group/tool-button-group.styles.mjs +6 -6
- package/dist/custom-elements.json +5999 -5770
- package/dist/index.d.mts +213 -185
- package/dist/index.d.ts +213 -185
- package/dist/internal/string.mjs +11 -3
- package/dist/package.json.mjs +1 -1
- package/dist/styles/form-control.styles.mjs +82 -77
- package/dist/vscode.html-custom-data.json +370 -339
- package/package.json +1 -1
- package/themes/dark-new.css +133 -126
- package/themes/dark-new.styles.js +146 -127
- package/themes/dark.css +213 -146
- package/themes/dark.styles.js +225 -150
- package/themes/light.css +258 -142
- package/themes/light.styles.js +270 -146
|
@@ -15,15 +15,15 @@ const styles = css`
|
|
|
15
15
|
position: relative;
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: stretch;
|
|
18
|
-
background-color: var(--flow-ui-
|
|
19
|
-
border: solid var(--flow-ui-
|
|
20
|
-
border-top-width: calc(var(--flow-ui-
|
|
18
|
+
background-color: var(--flow-ui-alert-background-color);
|
|
19
|
+
border: solid var(--flow-ui-alert-border-width) var(--flow-ui-alert-border-color);
|
|
20
|
+
border-top-width: calc(var(--flow-ui-alert-border-width) * 3);
|
|
21
21
|
border-radius: var(--flow-ui-border-radius-medium);
|
|
22
22
|
font-family: var(--flow-ui-font-sans);
|
|
23
|
-
font-size: var(--flow-ui-font-size-
|
|
23
|
+
font-size: var(--flow-ui-font-size-medium);
|
|
24
24
|
font-weight: var(--flow-ui-font-weight-normal);
|
|
25
25
|
line-height: 1.6;
|
|
26
|
-
color: var(--flow-ui-color
|
|
26
|
+
color: var(--flow-ui-alert-color);
|
|
27
27
|
margin: inherit;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -19,7 +19,7 @@ const styles = css`
|
|
|
19
19
|
letter-spacing: var(--flow-ui-letter-spacing-normal);
|
|
20
20
|
line-height: 1;
|
|
21
21
|
border-radius: var(--flow-ui-border-radius-small);
|
|
22
|
-
border: solid 1px var(--
|
|
22
|
+
border: solid 1px var(--background-color);
|
|
23
23
|
white-space: nowrap;
|
|
24
24
|
padding: 0.35em 0.6em;
|
|
25
25
|
user-select: none;
|
|
@@ -31,33 +31,33 @@ const styles = css`
|
|
|
31
31
|
|
|
32
32
|
/* Variant modifiers */
|
|
33
33
|
:host([variant='primary']) {
|
|
34
|
-
--color: var(--flow-ui-color-
|
|
34
|
+
--color: var(--flow-ui-color-primary-contrast);
|
|
35
35
|
--background-color: var(--flow-ui-color-primary-500);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:host([variant='secondary']) {
|
|
39
|
-
--color: var(--flow-ui-color-
|
|
39
|
+
--color: var(--flow-ui-color-secondary-contrast);
|
|
40
40
|
--background-color: var(--flow-ui-color-secondary-500);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
:host([variant='success']) {
|
|
44
|
-
--
|
|
45
|
-
--color: var(--flow-ui-color-
|
|
44
|
+
--color: var(--flow-ui-color-success-contrast);
|
|
45
|
+
--background-color: var(--flow-ui-color-success-500);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
:host([variant='neutral']) {
|
|
49
|
-
--
|
|
50
|
-
--color: var(--flow-ui-color-neutral-
|
|
49
|
+
--color: var(--flow-ui-color-neutral-contrast);
|
|
50
|
+
--background-color: var(--flow-ui-color-neutral-500);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
:host([variant='warning']) {
|
|
54
|
-
--
|
|
55
|
-
--color: var(--flow-ui-color-
|
|
54
|
+
--color: var(--flow-ui-color-warning-contrast);
|
|
55
|
+
--background-color: var(--flow-ui-color-warning-500);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
:host([variant='danger']) {
|
|
59
|
-
--
|
|
60
|
-
--color: var(--flow-ui-color-
|
|
59
|
+
--color: var(--flow-ui-color-danger-contrast);
|
|
60
|
+
--background-color: var(--flow-ui-color-danger-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/* Pill modifier */
|
|
@@ -6,7 +6,6 @@ import { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
|
|
|
6
6
|
import { FormControlController } from '../../internal/form.mjs';
|
|
7
7
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
8
|
import { watch } from '../../internal/watch.mjs';
|
|
9
|
-
import formControlStyles from '../../styles/form-control.styles.mjs';
|
|
10
9
|
import styles from './base-control.styles.mjs';
|
|
11
10
|
|
|
12
11
|
var __defProp = Object.defineProperty;
|
|
@@ -28,7 +27,6 @@ class FlowUiBaseControl extends FlowRdfFormControl {
|
|
|
28
27
|
});
|
|
29
28
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
30
29
|
this.hasFocus = false;
|
|
31
|
-
this.title = "";
|
|
32
30
|
this.size = "medium";
|
|
33
31
|
this.filled = false;
|
|
34
32
|
this.pill = false;
|
|
@@ -146,16 +144,13 @@ class FlowUiBaseControl extends FlowRdfFormControl {
|
|
|
146
144
|
`;
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
|
-
FlowUiBaseControl.styles =
|
|
147
|
+
FlowUiBaseControl.styles = styles;
|
|
150
148
|
__decorateClass([
|
|
151
149
|
query(".input__control")
|
|
152
150
|
], FlowUiBaseControl.prototype, "input", 2);
|
|
153
151
|
__decorateClass([
|
|
154
152
|
state()
|
|
155
153
|
], FlowUiBaseControl.prototype, "hasFocus", 2);
|
|
156
|
-
__decorateClass([
|
|
157
|
-
property()
|
|
158
|
-
], FlowUiBaseControl.prototype, "title", 2);
|
|
159
154
|
__decorateClass([
|
|
160
155
|
property({ reflect: true })
|
|
161
156
|
], FlowUiBaseControl.prototype, "size", 2);
|
|
@@ -11,7 +11,7 @@ const styles = css`
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.form-control__input {
|
|
14
|
-
padding-inline: var(--
|
|
14
|
+
padding-inline: var(--control-spacing);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.form-control__input input {
|
|
@@ -20,7 +20,7 @@ const styles = css`
|
|
|
20
20
|
font-size: inherit;
|
|
21
21
|
font-weight: inherit;
|
|
22
22
|
height: 100%;
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--control-color);
|
|
24
24
|
border: none;
|
|
25
25
|
background: none;
|
|
26
26
|
box-shadow: none;
|
|
@@ -14,7 +14,7 @@ const styles = css`
|
|
|
14
14
|
font-family: var(--flow-ui-font-sans);
|
|
15
15
|
font-size: var(--flow-ui-font-size-small);
|
|
16
16
|
font-weight: var(--flow-ui-font-weight-semibold);
|
|
17
|
-
color: var(--flow-ui-color-neutral-
|
|
17
|
+
color: var(--flow-ui-color-neutral-800);
|
|
18
18
|
line-height: var(--flow-ui-line-height-normal);
|
|
19
19
|
white-space: nowrap;
|
|
20
20
|
}
|
|
@@ -38,7 +38,7 @@ class FlowUiButton extends FlowRdfFormControl {
|
|
|
38
38
|
this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix");
|
|
39
39
|
this.localize = new LocalizeController(this);
|
|
40
40
|
this.hasFocus = false;
|
|
41
|
-
this.
|
|
41
|
+
this.label = "";
|
|
42
42
|
this.variant = "default";
|
|
43
43
|
this.size = "medium";
|
|
44
44
|
this.caret = false;
|
|
@@ -199,7 +199,7 @@ class FlowUiButton extends FlowRdfFormControl {
|
|
|
199
199
|
})}
|
|
200
200
|
?disabled=${ifDefined(isLink ? void 0 : this.disabled)}
|
|
201
201
|
type=${ifDefined(isLink ? void 0 : this.type)}
|
|
202
|
-
title=${this.
|
|
202
|
+
title=${this.label}
|
|
203
203
|
name=${ifDefined(isLink ? void 0 : this.name)}
|
|
204
204
|
value=${ifDefined(isLink ? void 0 : this.value)}
|
|
205
205
|
href=${ifDefined(isLink ? this.href : void 0)}
|
|
@@ -236,7 +236,7 @@ __decorateClass([
|
|
|
236
236
|
], FlowUiButton.prototype, "hasFocus", 2);
|
|
237
237
|
__decorateClass([
|
|
238
238
|
property()
|
|
239
|
-
], FlowUiButton.prototype, "
|
|
239
|
+
], FlowUiButton.prototype, "label", 2);
|
|
240
240
|
__decorateClass([
|
|
241
241
|
property({ reflect: true })
|
|
242
242
|
], FlowUiButton.prototype, "variant", 2);
|
|
@@ -17,8 +17,8 @@ const buttonStyles = css`
|
|
|
17
17
|
justify-content: center;
|
|
18
18
|
width: 100%;
|
|
19
19
|
border-style: solid;
|
|
20
|
-
border-width: var(--flow-ui-
|
|
21
|
-
font-family: var(--flow-ui-
|
|
20
|
+
border-width: var(--flow-ui-control-border-width);
|
|
21
|
+
font-family: var(--flow-ui-control-font-family);
|
|
22
22
|
font-weight: var(--flow-ui-font-weight-semibold);
|
|
23
23
|
text-decoration: none;
|
|
24
24
|
text-transform: var(--flow-ui-button-text-transform, uppercase);
|
|
@@ -64,7 +64,6 @@ const buttonStyles = css`
|
|
|
64
64
|
align-items: center;
|
|
65
65
|
pointer-events: none;
|
|
66
66
|
}
|
|
67
|
-
|
|
68
67
|
.button__label {
|
|
69
68
|
display: inline-block;
|
|
70
69
|
}
|
|
@@ -79,9 +78,9 @@ const buttonStyles = css`
|
|
|
79
78
|
|
|
80
79
|
/* Default */
|
|
81
80
|
.button--standard.button--default {
|
|
82
|
-
background-color: var(--flow-ui-color-
|
|
83
|
-
border-color: var(--flow-ui-color-neutral-
|
|
84
|
-
color: var(--flow-ui-color-neutral-
|
|
81
|
+
background-color: var(--flow-ui-color-background);
|
|
82
|
+
border-color: var(--flow-ui-color-neutral-600);
|
|
83
|
+
color: var(--flow-ui-color-neutral-800);
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
.button--standard.button--default:hover:not(.button--disabled) {
|
|
@@ -228,13 +227,13 @@ const buttonStyles = css`
|
|
|
228
227
|
.button--outline.button--default.button--checked:not(.button--disabled) {
|
|
229
228
|
border-color: var(--flow-ui-color-primary-500);
|
|
230
229
|
background-color: var(--flow-ui-color-primary-500);
|
|
231
|
-
color: var(--flow-ui-color-
|
|
230
|
+
color: var(--flow-ui-color-background);
|
|
232
231
|
}
|
|
233
232
|
|
|
234
233
|
.button--outline.button--default:active:not(.button--disabled) {
|
|
235
234
|
border-color: var(--flow-ui-color-primary-600);
|
|
236
235
|
background-color: var(--flow-ui-color-primary-600);
|
|
237
|
-
color: var(--flow-ui-color-
|
|
236
|
+
color: var(--flow-ui-color-background);
|
|
238
237
|
}
|
|
239
238
|
|
|
240
239
|
/* Primary */
|
|
@@ -246,13 +245,31 @@ const buttonStyles = css`
|
|
|
246
245
|
.button--outline.button--primary:hover:not(.button--disabled),
|
|
247
246
|
.button--outline.button--primary.button--checked:not(.button--disabled) {
|
|
248
247
|
background-color: var(--flow-ui-color-primary-500);
|
|
249
|
-
color: var(--flow-ui-color-
|
|
248
|
+
color: var(--flow-ui-color-background);
|
|
250
249
|
}
|
|
251
250
|
|
|
252
251
|
.button--outline.button--primary:active:not(.button--disabled) {
|
|
253
252
|
border-color: var(--flow-ui-color-primary-600);
|
|
254
253
|
background-color: var(--flow-ui-color-primary-600);
|
|
255
|
-
color: var(--flow-ui-color-
|
|
254
|
+
color: var(--flow-ui-color-background);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Secondary */
|
|
258
|
+
.button--outline.button--secondary {
|
|
259
|
+
border-color: var(--flow-ui-color-secondary-500);
|
|
260
|
+
color: var(--flow-ui-color-secondary-500);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.button--outline.button--secondary:hover:not(.button--disabled),
|
|
264
|
+
.button--outline.button--secondary.button--checked:not(.button--disabled) {
|
|
265
|
+
background-color: var(--flow-ui-color-secondary-500);
|
|
266
|
+
color: var(--flow-ui-color-background);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.button--outline.button--secondary:active:not(.button--disabled) {
|
|
270
|
+
border-color: var(--flow-ui-color-secondary-600);
|
|
271
|
+
background-color: var(--flow-ui-color-secondary-600);
|
|
272
|
+
color: var(--flow-ui-color-background);
|
|
256
273
|
}
|
|
257
274
|
|
|
258
275
|
/* Success */
|
|
@@ -264,13 +281,13 @@ const buttonStyles = css`
|
|
|
264
281
|
.button--outline.button--success:hover:not(.button--disabled),
|
|
265
282
|
.button--outline.button--success.button--checked:not(.button--disabled) {
|
|
266
283
|
background-color: var(--flow-ui-color-success-600);
|
|
267
|
-
color: var(--flow-ui-color-
|
|
284
|
+
color: var(--flow-ui-color-background);
|
|
268
285
|
}
|
|
269
286
|
|
|
270
287
|
.button--outline.button--success:active:not(.button--disabled) {
|
|
271
288
|
border-color: var(--flow-ui-color-success-700);
|
|
272
289
|
background-color: var(--flow-ui-color-success-700);
|
|
273
|
-
color: var(--flow-ui-color-
|
|
290
|
+
color: var(--flow-ui-color-background);
|
|
274
291
|
}
|
|
275
292
|
|
|
276
293
|
/* Neutral */
|
|
@@ -282,13 +299,13 @@ const buttonStyles = css`
|
|
|
282
299
|
.button--outline.button--neutral:hover:not(.button--disabled),
|
|
283
300
|
.button--outline.button--neutral.button--checked:not(.button--disabled) {
|
|
284
301
|
background-color: var(--flow-ui-color-neutral-600);
|
|
285
|
-
color: var(--flow-ui-color-
|
|
302
|
+
color: var(--flow-ui-color-background);
|
|
286
303
|
}
|
|
287
304
|
|
|
288
305
|
.button--outline.button--neutral:active:not(.button--disabled) {
|
|
289
306
|
border-color: var(--flow-ui-color-neutral-700);
|
|
290
307
|
background-color: var(--flow-ui-color-neutral-700);
|
|
291
|
-
color: var(--flow-ui-color-
|
|
308
|
+
color: var(--flow-ui-color-background);
|
|
292
309
|
}
|
|
293
310
|
|
|
294
311
|
/* Warning */
|
|
@@ -300,13 +317,13 @@ const buttonStyles = css`
|
|
|
300
317
|
.button--outline.button--warning:hover:not(.button--disabled),
|
|
301
318
|
.button--outline.button--warning.button--checked:not(.button--disabled) {
|
|
302
319
|
background-color: var(--flow-ui-color-warning-600);
|
|
303
|
-
color: var(--flow-ui-color-
|
|
320
|
+
color: var(--flow-ui-color-background);
|
|
304
321
|
}
|
|
305
322
|
|
|
306
323
|
.button--outline.button--warning:active:not(.button--disabled) {
|
|
307
324
|
border-color: var(--flow-ui-color-warning-700);
|
|
308
325
|
background-color: var(--flow-ui-color-warning-700);
|
|
309
|
-
color: var(--flow-ui-color-
|
|
326
|
+
color: var(--flow-ui-color-background);
|
|
310
327
|
}
|
|
311
328
|
|
|
312
329
|
/* Danger */
|
|
@@ -318,13 +335,13 @@ const buttonStyles = css`
|
|
|
318
335
|
.button--outline.button--danger:hover:not(.button--disabled),
|
|
319
336
|
.button--outline.button--danger.button--checked:not(.button--disabled) {
|
|
320
337
|
background-color: var(--flow-ui-color-danger-600);
|
|
321
|
-
color: var(--flow-ui-color-
|
|
338
|
+
color: var(--flow-ui-color-background);
|
|
322
339
|
}
|
|
323
340
|
|
|
324
341
|
.button--outline.button--danger:active:not(.button--disabled) {
|
|
325
342
|
border-color: var(--flow-ui-color-danger-700);
|
|
326
343
|
background-color: var(--flow-ui-color-danger-700);
|
|
327
|
-
color: var(--flow-ui-color-
|
|
344
|
+
color: var(--flow-ui-color-background);
|
|
328
345
|
}
|
|
329
346
|
|
|
330
347
|
@media (forced-colors: active) {
|
|
@@ -367,34 +384,34 @@ const buttonStyles = css`
|
|
|
367
384
|
|
|
368
385
|
.button--x-small {
|
|
369
386
|
height: auto;
|
|
370
|
-
min-height: var(--flow-ui-
|
|
387
|
+
min-height: var(--flow-ui-control-height-small);
|
|
371
388
|
font-size: var(--flow-ui-button-font-size-x-small);
|
|
372
|
-
line-height: calc(var(--flow-ui-
|
|
373
|
-
border-radius: var(--flow-ui-
|
|
389
|
+
line-height: calc(var(--flow-ui-control-height-small) - var(--flow-ui-control-border-width) * 2);
|
|
390
|
+
border-radius: var(--flow-ui-control-border-radius-small);
|
|
374
391
|
}
|
|
375
392
|
|
|
376
393
|
.button--small {
|
|
377
394
|
height: auto;
|
|
378
|
-
min-height: var(--flow-ui-
|
|
395
|
+
min-height: var(--flow-ui-control-height-small);
|
|
379
396
|
font-size: var(--flow-ui-button-font-size-small);
|
|
380
|
-
line-height: calc(var(--flow-ui-
|
|
381
|
-
border-radius: var(--flow-ui-
|
|
397
|
+
line-height: calc(var(--flow-ui-control-height-small) - var(--flow-ui-control-border-width) * 2);
|
|
398
|
+
border-radius: var(--flow-ui-control-border-radius-small);
|
|
382
399
|
}
|
|
383
400
|
|
|
384
401
|
.button--medium {
|
|
385
402
|
height: auto;
|
|
386
|
-
min-height: var(--flow-ui-
|
|
403
|
+
min-height: var(--flow-ui-control-height-medium);
|
|
387
404
|
font-size: var(--flow-ui-button-font-size-medium);
|
|
388
|
-
line-height: calc(var(--flow-ui-
|
|
389
|
-
border-radius: var(--flow-ui-
|
|
405
|
+
line-height: calc(var(--flow-ui-control-height-medium) - var(--flow-ui-control-border-width) * 2);
|
|
406
|
+
border-radius: var(--flow-ui-control-border-radius-medium);
|
|
390
407
|
}
|
|
391
408
|
|
|
392
409
|
.button--large {
|
|
393
410
|
height: auto;
|
|
394
|
-
min-height: var(--flow-ui-
|
|
411
|
+
min-height: var(--flow-ui-control-height-large);
|
|
395
412
|
font-size: var(--flow-ui-button-font-size-large);
|
|
396
|
-
line-height: calc(var(--flow-ui-
|
|
397
|
-
border-radius: var(--flow-ui-
|
|
413
|
+
line-height: calc(var(--flow-ui-control-height-large) - var(--flow-ui-control-border-width) * 2);
|
|
414
|
+
border-radius: var(--flow-ui-control-border-radius-large);
|
|
398
415
|
}
|
|
399
416
|
|
|
400
417
|
/*
|
|
@@ -402,15 +419,15 @@ const buttonStyles = css`
|
|
|
402
419
|
*/
|
|
403
420
|
|
|
404
421
|
.button--pill.button--small {
|
|
405
|
-
border-radius: var(--flow-ui-
|
|
422
|
+
border-radius: var(--flow-ui-control-height-small);
|
|
406
423
|
}
|
|
407
424
|
|
|
408
425
|
.button--pill.button--medium {
|
|
409
|
-
border-radius: var(--flow-ui-
|
|
426
|
+
border-radius: var(--flow-ui-control-height-medium);
|
|
410
427
|
}
|
|
411
428
|
|
|
412
429
|
.button--pill.button--large {
|
|
413
|
-
border-radius: var(--flow-ui-
|
|
430
|
+
border-radius: var(--flow-ui-control-height-large);
|
|
414
431
|
}
|
|
415
432
|
|
|
416
433
|
/*
|
|
@@ -428,19 +445,19 @@ const buttonStyles = css`
|
|
|
428
445
|
}
|
|
429
446
|
|
|
430
447
|
.button--fab.button--small {
|
|
431
|
-
width: var(--flow-ui-
|
|
448
|
+
width: var(--flow-ui-control-height-small);
|
|
432
449
|
box-shadow: var(--flow-ui-shadow-small);
|
|
433
450
|
font-size: var(--flow-ui-font-size-medium);
|
|
434
451
|
}
|
|
435
452
|
|
|
436
453
|
.button--fab.button--medium {
|
|
437
|
-
width: var(--flow-ui-
|
|
454
|
+
width: var(--flow-ui-control-height-medium);
|
|
438
455
|
box-shadow: var(--flow-ui-shadow-medium);
|
|
439
456
|
font-size: var(--flow-ui-font-size-large);
|
|
440
457
|
}
|
|
441
458
|
|
|
442
459
|
.button--fab.button--large {
|
|
443
|
-
width: var(--flow-ui-
|
|
460
|
+
width: var(--flow-ui-control-height-large);
|
|
444
461
|
box-shadow: var(--flow-ui-shadow-large);
|
|
445
462
|
font-size: var(--flow-ui-font-size-large);
|
|
446
463
|
}
|
|
@@ -629,7 +646,7 @@ const buttonStyles = css`
|
|
|
629
646
|
:host(
|
|
630
647
|
.flow-ui-button-group__button:not(.flow-ui-button-group__button--vertical, .flow-ui-button-group__button--first)
|
|
631
648
|
) {
|
|
632
|
-
margin-inline-start: calc(-1 * var(--flow-ui-
|
|
649
|
+
margin-inline-start: calc(-1 * var(--flow-ui-control-border-width));
|
|
633
650
|
}
|
|
634
651
|
|
|
635
652
|
/* Add a visual separator between solid buttons */
|
|
@@ -668,7 +685,7 @@ const buttonStyles = css`
|
|
|
668
685
|
}
|
|
669
686
|
|
|
670
687
|
:host(.flow-ui-button-group__button--vertical:not(.flow-ui-button-group__button--first)) {
|
|
671
|
-
margin-block-start: calc(-1 * var(--flow-ui-
|
|
688
|
+
margin-block-start: calc(-1 * var(--flow-ui-control-border-width));
|
|
672
689
|
}
|
|
673
690
|
|
|
674
691
|
/* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
|
|
@@ -227,6 +227,7 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
227
227
|
return html`
|
|
228
228
|
<div class="calendar__time-container">
|
|
229
229
|
<flow-ui-input
|
|
230
|
+
filled
|
|
230
231
|
type="number"
|
|
231
232
|
size=${this.size === "small" ? "small" : "medium"}
|
|
232
233
|
name="hour"
|
|
@@ -239,6 +240,7 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
239
240
|
></flow-ui-input>
|
|
240
241
|
<span class="calendar__time-separator">:</span>
|
|
241
242
|
<flow-ui-input
|
|
243
|
+
filled
|
|
242
244
|
type="number"
|
|
243
245
|
size=${this.size === "small" ? "small" : "medium"}
|
|
244
246
|
name="minute"
|
|
@@ -251,6 +253,7 @@ class FlowUiCalendar extends FlowRdfElement {
|
|
|
251
253
|
></flow-ui-input>
|
|
252
254
|
<span class="calendar__time-separator">:</span>
|
|
253
255
|
<flow-ui-input
|
|
256
|
+
filled
|
|
254
257
|
type="number"
|
|
255
258
|
size=${this.size === "small" ? "small" : "medium"}
|
|
256
259
|
name="second"
|
|
@@ -9,6 +9,10 @@ const styles = css`
|
|
|
9
9
|
--width: 300px;
|
|
10
10
|
--font-size: var(--flow-ui-font-size-medium);
|
|
11
11
|
--day-font-size: var(--flow-ui-font-size-small);
|
|
12
|
+
--day-color-filler: var(--flow-ui-calendar-day-color-filler);
|
|
13
|
+
--day-color-hover: var(--flow-ui-calendar-day-color-hover);
|
|
14
|
+
--day-color-selected: var(--flow-ui-calendar-day-color-selected);
|
|
15
|
+
--day-color-today: var(--flow-ui-calendar-day-color-today);
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
.calendar {
|
|
@@ -76,20 +80,20 @@ const styles = css`
|
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
.calendar__day:hover:not(.calendar__day--selected) {
|
|
79
|
-
background-color: var(--
|
|
83
|
+
background-color: var(--day-color-hover);
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
.calendar__day--filler {
|
|
83
|
-
color: var(--
|
|
87
|
+
color: var(--day-color-filler);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
.calendar__day--today {
|
|
87
|
-
border: 1px solid var(--
|
|
91
|
+
border: 1px solid var(--day-color-today);
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
.calendar__day--selected {
|
|
91
|
-
color: var(--flow-ui-color-
|
|
92
|
-
background-color: var(--
|
|
95
|
+
color: var(--flow-ui-color-background);
|
|
96
|
+
background-color: var(--day-color-selected);
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
.calendar__header {
|
|
@@ -111,11 +115,16 @@ const styles = css`
|
|
|
111
115
|
flex: 1;
|
|
112
116
|
/* Allow the input to shrink to accommodate narrow calendars in sidebars */
|
|
113
117
|
min-width: 0;
|
|
114
|
-
--flow-ui-
|
|
118
|
+
--flow-ui-control-spacing-medium: var(--flow-ui-spacing-small);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.calendar__time-input::part(form-control-input) {
|
|
122
|
+
background-color: var(--flow-ui-calendar-time-color);
|
|
115
123
|
}
|
|
116
124
|
|
|
117
125
|
.calendar__time-input::part(input) {
|
|
118
126
|
/* Remove padding between spin controls to accommodate narrow calendars */
|
|
127
|
+
|
|
119
128
|
padding-right: 0;
|
|
120
129
|
}
|
|
121
130
|
|
|
@@ -5,18 +5,22 @@ const styles = css`
|
|
|
5
5
|
${componentStyles}
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
--border-color: var(--flow-ui-
|
|
9
|
-
--border-radius: var(--flow-ui-border-radius
|
|
10
|
-
--border-width:
|
|
8
|
+
--border-color: var(--flow-ui-card-border-color);
|
|
9
|
+
--border-radius: var(--flow-ui-card-border-radius);
|
|
10
|
+
--border-width: var(--flow-ui-card-border-width);
|
|
11
11
|
--padding: var(--flow-ui-spacing-large);
|
|
12
12
|
|
|
13
|
+
--background-color: var(--flow-ui-card-background-color);
|
|
14
|
+
--color: var(--flow-ui-card-color);
|
|
15
|
+
|
|
13
16
|
display: inline-block;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
.card {
|
|
17
20
|
display: flex;
|
|
18
21
|
flex-direction: column;
|
|
19
|
-
background-color: var(--
|
|
22
|
+
background-color: var(--background-color);
|
|
23
|
+
color: var(--color);
|
|
20
24
|
box-shadow: var(--flow-ui-shadow-x-small);
|
|
21
25
|
border: solid var(--border-width) var(--border-color);
|
|
22
26
|
border-radius: var(--border-radius);
|
|
@@ -10,7 +10,6 @@ import { FormControlController } from '../../internal/form.mjs';
|
|
|
10
10
|
import { HasSlotController } from '../../internal/slot.mjs';
|
|
11
11
|
import { watch } from '../../internal/watch.mjs';
|
|
12
12
|
import styles from './checkbox.styles.mjs';
|
|
13
|
-
import formControlStyles from '../../styles/form-control.styles.mjs';
|
|
14
13
|
|
|
15
14
|
var __defProp = Object.defineProperty;
|
|
16
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -33,13 +32,14 @@ class FlowUiCheckbox extends FlowRdfFormControl {
|
|
|
33
32
|
setValue: (control, checked) => control.checked = checked
|
|
34
33
|
});
|
|
35
34
|
this.hasFocus = false;
|
|
36
|
-
this.
|
|
35
|
+
this.label = "";
|
|
37
36
|
this.name = "";
|
|
38
37
|
this.size = "medium";
|
|
39
38
|
this.disabled = false;
|
|
40
39
|
this.checked = false;
|
|
41
40
|
this.indeterminate = false;
|
|
42
41
|
this.defaultChecked = false;
|
|
42
|
+
this.reverse = false;
|
|
43
43
|
this.form = "";
|
|
44
44
|
this.required = false;
|
|
45
45
|
}
|
|
@@ -49,6 +49,7 @@ class FlowUiCheckbox extends FlowRdfFormControl {
|
|
|
49
49
|
this.indeterminate = boolean(this.indeterminate, true);
|
|
50
50
|
this.disabled = boolean(this.disabled, true);
|
|
51
51
|
this.required = boolean(this.required, true);
|
|
52
|
+
this.reverse = boolean(this.reverse, true);
|
|
52
53
|
}
|
|
53
54
|
/** Gets the validity state object */
|
|
54
55
|
get validity() {
|
|
@@ -133,13 +134,14 @@ class FlowUiCheckbox extends FlowRdfFormControl {
|
|
|
133
134
|
"checkbox--indeterminate": this.indeterminate,
|
|
134
135
|
"checkbox--small": this.size === "small",
|
|
135
136
|
"checkbox--medium": this.size === "medium",
|
|
136
|
-
"checkbox--large": this.size === "large"
|
|
137
|
+
"checkbox--large": this.size === "large",
|
|
138
|
+
"checkbox--reverse": this.reverse
|
|
137
139
|
})}
|
|
138
140
|
>
|
|
139
141
|
<input
|
|
140
142
|
class="checkbox__input"
|
|
141
143
|
type="checkbox"
|
|
142
|
-
title=${this.
|
|
144
|
+
title=${this.label}
|
|
143
145
|
name=${this.name}
|
|
144
146
|
value=${ifDefined(this.value)}
|
|
145
147
|
.indeterminate=${live(this.indeterminate)}
|
|
@@ -185,7 +187,7 @@ class FlowUiCheckbox extends FlowRdfFormControl {
|
|
|
185
187
|
`;
|
|
186
188
|
}
|
|
187
189
|
}
|
|
188
|
-
FlowUiCheckbox.styles =
|
|
190
|
+
FlowUiCheckbox.styles = styles;
|
|
189
191
|
__decorateClass([
|
|
190
192
|
query('input[type="checkbox"]')
|
|
191
193
|
], FlowUiCheckbox.prototype, "input", 2);
|
|
@@ -194,7 +196,7 @@ __decorateClass([
|
|
|
194
196
|
], FlowUiCheckbox.prototype, "hasFocus", 2);
|
|
195
197
|
__decorateClass([
|
|
196
198
|
property()
|
|
197
|
-
], FlowUiCheckbox.prototype, "
|
|
199
|
+
], FlowUiCheckbox.prototype, "label", 2);
|
|
198
200
|
__decorateClass([
|
|
199
201
|
property()
|
|
200
202
|
], FlowUiCheckbox.prototype, "name", 2);
|
|
@@ -216,6 +218,9 @@ __decorateClass([
|
|
|
216
218
|
__decorateClass([
|
|
217
219
|
defaultValue("checked")
|
|
218
220
|
], FlowUiCheckbox.prototype, "defaultChecked", 2);
|
|
221
|
+
__decorateClass([
|
|
222
|
+
property({ type: Boolean, reflect: true })
|
|
223
|
+
], FlowUiCheckbox.prototype, "reverse", 2);
|
|
219
224
|
__decorateClass([
|
|
220
225
|
property({ reflect: true })
|
|
221
226
|
], FlowUiCheckbox.prototype, "form", 2);
|