@emuanalytics/flow-rdf-ui 4.1.0-preview.0 → 4.1.0-preview.2

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.
Files changed (78) hide show
  1. package/dist/components/alert/alert.styles.mjs +4 -4
  2. package/dist/components/badge/badge.styles.mjs +11 -11
  3. package/dist/components/base-control/base-control.component.mjs +1 -6
  4. package/dist/components/base-control/base-control.styles.mjs +2 -2
  5. package/dist/components/button/button.component.mjs +3 -3
  6. package/dist/components/button/button.styles.mjs +53 -36
  7. package/dist/components/calendar/calendar.styles.mjs +2 -2
  8. package/dist/components/card/card.styles.mjs +8 -4
  9. package/dist/components/checkbox/checkbox.component.mjs +11 -6
  10. package/dist/components/checkbox/checkbox.styles.mjs +27 -13
  11. package/dist/components/checkbox-group/checkbox-group.component.mjs +8 -1
  12. package/dist/components/checkbox-group/checkbox-group.styles.mjs +6 -6
  13. package/dist/components/color-mapper/color-mapper.component.mjs +1 -1
  14. package/dist/components/color-mapper/color-mapper.styles.mjs +5 -5
  15. package/dist/components/color-picker/color-picker.styles.mjs +18 -12
  16. package/dist/components/color-stop/color-stop.styles.mjs +7 -12
  17. package/dist/components/date-time-picker/date-time-picker.component.mjs +1 -2
  18. package/dist/components/date-time-picker/date-time-picker.styles.mjs +42 -42
  19. package/dist/components/details/details.styles.mjs +27 -5
  20. package/dist/components/dialog/dialog.component.mjs +74 -29
  21. package/dist/components/dialog/dialog.styles.mjs +21 -6
  22. package/dist/components/drawer/drawer.styles.mjs +1 -1
  23. package/dist/components/form-group/form-group.component.mjs +24 -12
  24. package/dist/components/form-group/form-group.styles.mjs +42 -8
  25. package/dist/components/gauge/gauge.component.mjs +6 -9
  26. package/dist/components/gauge/gauge.styles.mjs +7 -7
  27. package/dist/components/icon/library.system.mjs +2 -1
  28. package/dist/components/input/input.component.mjs +4 -3
  29. package/dist/components/input/input.styles.mjs +26 -14
  30. package/dist/components/menu/menu.styles.mjs +11 -2
  31. package/dist/components/menu-item/menu-item.component.mjs +9 -5
  32. package/dist/components/menu-item/menu-item.styles.mjs +4 -4
  33. package/dist/components/option/option.styles.mjs +4 -4
  34. package/dist/components/panel/panel.styles.mjs +1 -5
  35. package/dist/components/panel-header/panel-header.component.mjs +3 -3
  36. package/dist/components/panel-header/panel-header.styles.mjs +2 -2
  37. package/dist/components/popup/popup.styles.mjs +1 -1
  38. package/dist/components/progress-bar/progress-bar.component.mjs +1 -1
  39. package/dist/components/query-builder/query-builder.component.mjs +130 -87
  40. package/dist/components/query-builder/query-builder.styles.mjs +56 -13
  41. package/dist/components/radio/radio.component.mjs +5 -5
  42. package/dist/components/radio/radio.styles.mjs +18 -18
  43. package/dist/components/radio-group/radio-group.component.mjs +8 -1
  44. package/dist/components/radio-group/radio-group.styles.mjs +6 -6
  45. package/dist/components/range/range.component.mjs +39 -26
  46. package/dist/components/range/range.styles.mjs +19 -14
  47. package/dist/components/select/select.component.mjs +6 -5
  48. package/dist/components/select/select.styles.mjs +37 -29
  49. package/dist/components/split-view-divider/split-view-divider.styles.mjs +2 -8
  50. package/dist/components/stepper/stepper.component.mjs +2 -1
  51. package/dist/components/stepper/stepper.styles.mjs +3 -2
  52. package/dist/components/stepper-panel/stepper-panel.component.mjs +0 -4
  53. package/dist/components/switch/switch.component.mjs +4 -5
  54. package/dist/components/switch/switch.styles.mjs +10 -3
  55. package/dist/components/tab/tab.component.mjs +3 -0
  56. package/dist/components/tab-group/tab-group.component.mjs +38 -33
  57. package/dist/components/tab-group/tab-group.styles.mjs +2 -9
  58. package/dist/components/tab-panel/tab-panel.styles.mjs +0 -4
  59. package/dist/components/tag/tag.styles.mjs +9 -9
  60. package/dist/components/textarea/textarea.component.mjs +1 -1
  61. package/dist/components/textarea/textarea.styles.mjs +33 -33
  62. package/dist/components/timer/timer.styles.mjs +2 -2
  63. package/dist/components/tool-button/tool-button.styles.mjs +8 -8
  64. package/dist/components/tool-button-group/tool-button-group.styles.mjs +6 -6
  65. package/dist/custom-elements.json +559 -363
  66. package/dist/index.d.mts +204 -186
  67. package/dist/index.d.ts +204 -186
  68. package/dist/internal/string.mjs +11 -3
  69. package/dist/package.json.mjs +1 -1
  70. package/dist/styles/form-control.styles.mjs +77 -77
  71. package/dist/vscode.html-custom-data.json +96 -70
  72. package/package.json +1 -1
  73. package/themes/dark-new.css +133 -126
  74. package/themes/dark-new.styles.js +146 -127
  75. package/themes/dark.css +170 -128
  76. package/themes/dark.styles.js +181 -131
  77. package/themes/light.css +211 -132
  78. package/themes/light.styles.js +222 -135
@@ -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-panel-background-color);
19
- border: solid var(--flow-ui-panel-border-width) var(--flow-ui-panel-border-color);
20
- border-top-width: calc(var(--flow-ui-panel-border-width) * 3);
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
23
  font-size: var(--flow-ui-font-size-small);
24
24
  font-weight: var(--flow-ui-font-weight-normal);
25
25
  line-height: 1.6;
26
- color: var(--flow-ui-color-neutral-700);
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(--flow-ui-color-neutral-0);
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-neutral-0);
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-neutral-0);
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
- --background-color: var(--flow-ui-color-success-600);
45
- --color: var(--flow-ui-color-neutral-0);
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
- --background-color: var(--flow-ui-color-neutral-600);
50
- --color: var(--flow-ui-color-neutral-0);
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
- --background-color: var(--flow-ui-color-warning-600);
55
- --color: var(--flow-ui-color-neutral-0);
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
- --background-color: var(--flow-ui-color-danger-600);
60
- --color: var(--flow-ui-color-neutral-0);
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 = [formControlStyles, 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(--input-spacing);
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(--input-color);
23
+ color: var(--control-color);
24
24
  border: none;
25
25
  background: none;
26
26
  box-shadow: none;
@@ -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.title = "";
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.title}
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, "title", 2);
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-input-border-width);
21
- font-family: var(--flow-ui-input-font-family);
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,7 +78,7 @@ const buttonStyles = css`
79
78
 
80
79
  /* Default */
81
80
  .button--standard.button--default {
82
- background-color: var(--flow-ui-color-neutral-0);
81
+ background-color: var(--flow-ui-color-background);
83
82
  border-color: var(--flow-ui-color-neutral-300);
84
83
  color: var(--flow-ui-color-neutral-700);
85
84
  }
@@ -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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-neutral-0);
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-input-height-small);
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-input-height-small) - var(--flow-ui-input-border-width) * 2);
373
- border-radius: var(--flow-ui-input-border-radius-small);
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-input-height-small);
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-input-height-small) - var(--flow-ui-input-border-width) * 2);
381
- border-radius: var(--flow-ui-input-border-radius-small);
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-input-height-medium);
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-input-height-medium) - var(--flow-ui-input-border-width) * 2);
389
- border-radius: var(--flow-ui-input-border-radius-medium);
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-input-height-large);
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-input-height-large) - var(--flow-ui-input-border-width) * 2);
397
- border-radius: var(--flow-ui-input-border-radius-large);
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-input-height-small);
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-input-height-medium);
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-input-height-large);
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-input-height-small);
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-input-height-medium);
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-input-height-large);
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-input-border-width));
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-input-border-width));
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 */
@@ -88,7 +88,7 @@ const styles = css`
88
88
  }
89
89
 
90
90
  .calendar__day--selected {
91
- color: var(--flow-ui-color-neutral-0);
91
+ color: var(--flow-ui-color-background);
92
92
  background-color: var(--flow-ui-color-primary-500);
93
93
  }
94
94
 
@@ -111,7 +111,7 @@ const styles = css`
111
111
  flex: 1;
112
112
  /* Allow the input to shrink to accommodate narrow calendars in sidebars */
113
113
  min-width: 0;
114
- --flow-ui-input-spacing-medium: var(--flow-ui-spacing-small);
114
+ --flow-ui-control-spacing-medium: var(--flow-ui-spacing-small);
115
115
  }
116
116
 
117
117
  .calendar__time-input::part(input) {
@@ -5,18 +5,22 @@ const styles = css`
5
5
  ${componentStyles}
6
6
 
7
7
  :host {
8
- --border-color: var(--flow-ui-color-neutral-200);
9
- --border-radius: var(--flow-ui-border-radius-medium);
10
- --border-width: 1px;
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(--flow-ui-panel-background-color);
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.title = "";
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.title}
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 = [formControlStyles, 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, "title", 2);
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);
@@ -1,8 +1,10 @@
1
1
  import { css } from 'lit';
2
2
  import componentStyles from '../../styles/component.styles.mjs';
3
+ import formControlStyles from '../../styles/form-control.styles.mjs';
3
4
 
4
5
  const styles = css`
5
6
  ${componentStyles}
7
+ ${formControlStyles}
6
8
 
7
9
  :host {
8
10
  display: inline-block;
@@ -14,10 +16,11 @@ const styles = css`
14
16
  .checkbox {
15
17
  position: relative;
16
18
  display: inline-flex;
19
+ width: 100%;
17
20
  align-items: flex-start;
18
- font-family: var(--flow-ui-input-font-family);
19
- font-weight: var(--flow-ui-input-font-weight);
20
- color: var(--flow-ui-input-label-color);
21
+ font-family: var(--flow-ui-control-font-family);
22
+ font-weight: var(--flow-ui-control-font-weight);
23
+ color: var(--flow-ui-control-label-color);
21
24
  vertical-align: middle;
22
25
  cursor: pointer;
23
26
  }
@@ -25,17 +28,17 @@ const styles = css`
25
28
  /* Sizes */
26
29
  .checkbox--small {
27
30
  --toggle-size: var(--flow-ui-toggle-size-small);
28
- font-size: var(--flow-ui-input-font-size-small);
31
+ font-size: var(--flow-ui-control-font-size-small);
29
32
  }
30
33
 
31
34
  .checkbox--medium {
32
35
  --toggle-size: var(--flow-ui-toggle-size-medium);
33
- font-size: var(--flow-ui-input-font-size-medium);
36
+ font-size: var(--flow-ui-control-font-size-medium);
34
37
  }
35
38
 
36
39
  .checkbox--large {
37
40
  --toggle-size: var(--flow-ui-toggle-size-large);
38
- font-size: var(--flow-ui-input-font-size-large);
41
+ font-size: var(--flow-ui-control-font-size-large);
39
42
  }
40
43
 
41
44
  .checkbox__control {
@@ -46,9 +49,9 @@ const styles = css`
46
49
  justify-content: center;
47
50
  width: var(--toggle-size);
48
51
  height: var(--toggle-size);
49
- border: solid var(--flow-ui-input-border-width) var(--flow-ui-input-border-color);
52
+ border: solid var(--flow-ui-control-border-width) var(--flow-ui-control-border-color);
50
53
  border-radius: 2px;
51
- background-color: var(--flow-ui-input-background-color);
54
+ background-color: var(--flow-ui-control-background-color);
52
55
  color: var(--checkbox-check-color);
53
56
  transition:
54
57
  var(--flow-ui-transition-fast) border-color,
@@ -74,8 +77,8 @@ const styles = css`
74
77
 
75
78
  /* Hover */
76
79
  .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {
77
- border-color: var(--flow-ui-input-border-color-hover);
78
- background-color: var(--flow-ui-input-background-color-hover);
80
+ border-color: var(--flow-ui-control-border-color-hover);
81
+ background-color: var(--flow-ui-control-background-color-hover);
79
82
  }
80
83
 
81
84
  /* Focus */
@@ -106,15 +109,26 @@ const styles = css`
106
109
 
107
110
  .checkbox__label {
108
111
  display: inline-block;
109
- color: var(--flow-ui-input-label-color);
112
+ flex: 1;
113
+ color: var(--flow-ui-control-label-color);
110
114
  line-height: var(--toggle-size);
111
115
  margin-inline-start: 0.5em;
112
116
  user-select: none;
113
117
  }
114
118
 
119
+ /* Reverse layout */
120
+ .checkbox--reverse {
121
+ flex-direction: row-reverse;
122
+ }
123
+
124
+ .checkbox--reverse .checkbox__label {
125
+ margin-inline-start: 0;
126
+ margin-inline-end: 0.5em;
127
+ }
128
+
115
129
  :host([required]) .checkbox__label::after {
116
- content: var(--flow-ui-input-required-content);
117
- margin-inline-start: var(--flow-ui-input-required-content-offset);
130
+ content: var(--flow-ui-control-required-content);
131
+ margin-inline-start: var(--flow-ui-control-required-content-offset);
118
132
  }
119
133
  `;
120
134
 
@@ -34,6 +34,7 @@ class FlowUiCheckboxGroup extends FlowRdfFormControl {
34
34
  this.size = "medium";
35
35
  this.form = "";
36
36
  this.required = false;
37
+ this.reverse = false;
37
38
  this.divider = false;
38
39
  }
39
40
  /** Gets the validity state object */
@@ -61,6 +62,8 @@ class FlowUiCheckboxGroup extends FlowRdfFormControl {
61
62
  connectedCallback() {
62
63
  super.connectedCallback();
63
64
  this.required = boolean(this.required, true);
65
+ this.reverse = boolean(this.reverse, true);
66
+ this.divider = boolean(this.divider, true);
64
67
  this.defaultValue = this.value;
65
68
  }
66
69
  firstUpdated() {
@@ -100,6 +103,7 @@ class FlowUiCheckboxGroup extends FlowRdfFormControl {
100
103
  const checkboxes = this.getAllCheckboxes();
101
104
  checkboxes.forEach((checkbox) => {
102
105
  checkbox.size = this.size;
106
+ checkbox.reverse = this.reverse;
103
107
  });
104
108
  this.updateCheckedState();
105
109
  } else {
@@ -270,11 +274,14 @@ __decorateClass([
270
274
  __decorateClass([
271
275
  property({ type: Boolean, reflect: true })
272
276
  ], FlowUiCheckboxGroup.prototype, "required", 2);
277
+ __decorateClass([
278
+ property({ type: Boolean, reflect: true })
279
+ ], FlowUiCheckboxGroup.prototype, "reverse", 2);
273
280
  __decorateClass([
274
281
  property({ type: Boolean, reflect: true })
275
282
  ], FlowUiCheckboxGroup.prototype, "divider", 2);
276
283
  __decorateClass([
277
- watch(["size"], { waitUntilFirstUpdate: true })
284
+ watch(["size", "reverse"], { waitUntilFirstUpdate: true })
278
285
  ], FlowUiCheckboxGroup.prototype, "handleStyleChange", 1);
279
286
  __decorateClass([
280
287
  watch("value")