@emuanalytics/flow-rdf-ui 4.0.18 → 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 (88) hide show
  1. package/dist/components/alert/alert.styles.mjs +4 -4
  2. package/dist/components/avatar/avatar.styles.mjs +4 -2
  3. package/dist/components/badge/badge.styles.mjs +24 -19
  4. package/dist/components/base-control/base-control.component.mjs +188 -0
  5. package/dist/components/base-control/base-control.mjs +5 -0
  6. package/dist/components/base-control/base-control.styles.mjs +39 -0
  7. package/dist/components/button/button.component.mjs +3 -3
  8. package/dist/components/button/button.styles.mjs +53 -36
  9. package/dist/components/calendar/calendar.component.mjs +4 -0
  10. package/dist/components/calendar/calendar.styles.mjs +5 -11
  11. package/dist/components/card/card.styles.mjs +8 -4
  12. package/dist/components/checkbox/checkbox.component.mjs +9 -18
  13. package/dist/components/checkbox/checkbox.styles.mjs +29 -71
  14. package/dist/components/checkbox-group/checkbox-group.component.mjs +290 -0
  15. package/dist/components/checkbox-group/checkbox-group.mjs +5 -0
  16. package/dist/components/checkbox-group/checkbox-group.styles.mjs +73 -0
  17. package/dist/components/color-mapper/color-mapper.component.mjs +8 -2
  18. package/dist/components/color-mapper/color-mapper.styles.mjs +9 -11
  19. package/dist/components/color-picker/color-picker.styles.mjs +18 -12
  20. package/dist/components/color-stop/color-stop.styles.mjs +7 -12
  21. package/dist/components/date-time-picker/date-time-picker.component.mjs +48 -33
  22. package/dist/components/date-time-picker/date-time-picker.styles.mjs +59 -47
  23. package/dist/components/details/details.styles.mjs +27 -5
  24. package/dist/components/dialog/dialog.component.mjs +74 -29
  25. package/dist/components/dialog/dialog.styles.mjs +21 -6
  26. package/dist/components/drawer/drawer.styles.mjs +1 -1
  27. package/dist/components/form-group/form-group.component.mjs +132 -0
  28. package/dist/components/form-group/form-group.mjs +5 -0
  29. package/dist/components/form-group/form-group.styles.mjs +81 -0
  30. package/dist/components/gauge/gauge.component.mjs +6 -9
  31. package/dist/components/gauge/gauge.styles.mjs +7 -7
  32. package/dist/components/icon/library.system.mjs +2 -1
  33. package/dist/components/input/input.component.mjs +50 -35
  34. package/dist/components/input/input.styles.mjs +56 -187
  35. package/dist/components/menu/menu.styles.mjs +12 -2
  36. package/dist/components/menu-item/menu-item.component.mjs +9 -5
  37. package/dist/components/menu-item/menu-item.styles.mjs +4 -4
  38. package/dist/components/option/option.styles.mjs +7 -7
  39. package/dist/components/panel/panel.styles.mjs +1 -5
  40. package/dist/components/panel-header/panel-header.component.mjs +3 -3
  41. package/dist/components/panel-header/panel-header.styles.mjs +2 -2
  42. package/dist/components/popup/popup.styles.mjs +1 -1
  43. package/dist/components/progress-bar/progress-bar.component.mjs +1 -1
  44. package/dist/components/query-builder/default-value-templates.mjs +6 -0
  45. package/dist/components/query-builder/query-builder.component.mjs +132 -86
  46. package/dist/components/query-builder/query-builder.styles.mjs +56 -13
  47. package/dist/components/radio/radio.component.mjs +5 -5
  48. package/dist/components/radio/radio.styles.mjs +20 -64
  49. package/dist/components/radio-group/radio-group.component.mjs +23 -20
  50. package/dist/components/radio-group/radio-group.styles.mjs +35 -11
  51. package/dist/components/range/range.component.mjs +82 -63
  52. package/dist/components/range/range.styles.mjs +57 -65
  53. package/dist/components/select/select.component.mjs +79 -48
  54. package/dist/components/select/select.styles.mjs +94 -143
  55. package/dist/components/split-view-divider/split-view-divider.styles.mjs +2 -8
  56. package/dist/components/stepper/stepper.component.mjs +2 -1
  57. package/dist/components/stepper/stepper.styles.mjs +3 -2
  58. package/dist/components/stepper-panel/stepper-panel.component.mjs +0 -4
  59. package/dist/components/switch/switch.component.mjs +67 -33
  60. package/dist/components/switch/switch.styles.mjs +48 -102
  61. package/dist/components/tab/tab.component.mjs +3 -0
  62. package/dist/components/tab-group/tab-group.component.mjs +38 -33
  63. package/dist/components/tab-group/tab-group.styles.mjs +2 -9
  64. package/dist/components/tab-panel/tab-panel.styles.mjs +0 -4
  65. package/dist/components/tag/tag.styles.mjs +57 -70
  66. package/dist/components/textarea/textarea.component.mjs +12 -12
  67. package/dist/components/textarea/textarea.styles.mjs +41 -34
  68. package/dist/components/timer/timer.styles.mjs +2 -2
  69. package/dist/components/tool-button/tool-button.styles.mjs +8 -8
  70. package/dist/components/tool-button-group/tool-button-group.styles.mjs +6 -6
  71. package/dist/custom-elements.json +3471 -2059
  72. package/dist/index.d.mts +553 -258
  73. package/dist/index.d.ts +553 -258
  74. package/dist/index.mjs +3 -0
  75. package/dist/internal/computed-style.mjs +13 -0
  76. package/dist/internal/flow-ui-rdf-element.mjs +16 -1
  77. package/dist/internal/string.mjs +11 -3
  78. package/dist/package.json.mjs +1 -1
  79. package/dist/styles/form-control.styles.mjs +155 -33
  80. package/dist/utilities/register-components.mjs +6 -0
  81. package/dist/vscode.html-custom-data.json +288 -101
  82. package/package.json +2 -1
  83. package/themes/dark-new.css +723 -0
  84. package/themes/dark-new.styles.js +745 -0
  85. package/themes/dark.css +174 -117
  86. package/themes/dark.styles.js +188 -119
  87. package/themes/light.css +215 -121
  88. package/themes/light.styles.js +229 -123
@@ -11,6 +11,10 @@ const styles = css`
11
11
 
12
12
  /*------- Color mode radio styles ------ */
13
13
 
14
+ .color-mode-radio-group {
15
+ width: 100%;
16
+ }
17
+
14
18
  .color-mode-radio {
15
19
  margin-bottom: var(--flow-ui-spacing-x-small);
16
20
  }
@@ -36,16 +40,11 @@ const styles = css`
36
40
  margin-inline-start: auto;
37
41
  }
38
42
 
39
- flow-ui-select.color-mode-control {
40
- /* Stretch attribute selector to fill available space */
41
- flex: 1;
42
- }
43
-
44
43
  /*------- Fixed color picker styles ------ */
45
44
 
46
45
  #fixed-color-picker::part(trigger) {
47
46
  /* match input box styling */
48
- border-radius: var(--flow-ui-input-border-radius-small);
47
+ border-radius: var(--flow-ui-control-border-radius-small);
49
48
  }
50
49
 
51
50
  flow-ui-color-picker {
@@ -81,12 +80,11 @@ const styles = css`
81
80
  }
82
81
 
83
82
  .color-mapper--data-driven flow-ui-color-stop[data-user-invalid]::part(input) {
84
- --flow-ui-input-border-color: var(--flow-ui-color-danger-500);
85
- --flow-ui-input-border-color-hover: var(--flow-ui-color-danger-500);
86
- --flow-ui-input-border-color-focus: var(--flow-ui-color-danger-500);
87
- --flow-ui-input-focus-ring-color: var(--flow-ui-color-danger-100);
83
+ --flow-ui-control-border-color: var(--flow-ui-color-danger-500);
84
+ --flow-ui-control-border-color-hover: var(--flow-ui-color-danger-500);
85
+ --flow-ui-control-border-color-focus: var(--flow-ui-color-danger-500);
86
+ --flow-ui-control-focus-ring-color: var(--flow-ui-color-danger-100);
88
87
  }
89
-
90
88
  `;
91
89
 
92
90
  export { styles as default };
@@ -21,13 +21,13 @@ const styles = css`
21
21
  font-size: var(--flow-ui-font-size-medium);
22
22
  font-weight: var(--flow-ui-font-weight-normal);
23
23
  color: var(--color);
24
- background-color: var(--flow-ui-panel-background-color);
24
+ background-color: var(--flow-ui-menu-background-color);
25
25
  border-radius: var(--flow-ui-border-radius-medium);
26
26
  user-select: none;
27
27
  }
28
28
 
29
29
  .color-picker--inline {
30
- border: solid var(--flow-ui-panel-border-width) var(--flow-ui-panel-border-color);
30
+ border: solid var(--flow-ui-menu-border-width) var(--flow-ui-menu-border-color);
31
31
  }
32
32
 
33
33
  .color-picker--inline:focus-visible {
@@ -245,7 +245,11 @@ const styles = css`
245
245
  linear-gradient(45deg, transparent 75%, var(--flow-ui-color-neutral-300) 75%),
246
246
  linear-gradient(45deg, var(--flow-ui-color-neutral-300) 25%, transparent 25%);
247
247
  background-size: 10px 10px;
248
- background-position: 0 0, 0 0, -5px -5px, 5px 5px;
248
+ background-position:
249
+ 0 0,
250
+ 0 0,
251
+ -5px -5px,
252
+ 5px 5px;
249
253
  }
250
254
 
251
255
  .color-picker--disabled {
@@ -269,8 +273,8 @@ const styles = css`
269
273
 
270
274
  .color-dropdown::part(panel) {
271
275
  max-height: none;
272
- background-color: var(--flow-ui-panel-background-color);
273
- border: solid var(--flow-ui-panel-border-width) var(--flow-ui-panel-border-color);
276
+ background-color: var(--flow-ui-menu-background-color);
277
+ border: solid var(--flow-ui-menu-border-width) var(--flow-ui-menu-border-color);
274
278
  border-radius: var(--flow-ui-border-radius-medium);
275
279
  overflow: visible;
276
280
  }
@@ -286,20 +290,20 @@ const styles = css`
286
290
  }
287
291
 
288
292
  .color-dropdown__trigger.color-dropdown__trigger--small {
289
- width: var(--flow-ui-input-height-small);
290
- height: var(--flow-ui-input-height-small);
293
+ width: var(--flow-ui-control-height-small);
294
+ height: var(--flow-ui-control-height-small);
291
295
  border-radius: var(--flow-ui-border-radius-circle);
292
296
  }
293
297
 
294
298
  .color-dropdown__trigger.color-dropdown__trigger--medium {
295
- width: var(--flow-ui-input-height-medium);
296
- height: var(--flow-ui-input-height-medium);
299
+ width: var(--flow-ui-control-height-medium);
300
+ height: var(--flow-ui-control-height-medium);
297
301
  border-radius: var(--flow-ui-border-radius-circle);
298
302
  }
299
303
 
300
304
  .color-dropdown__trigger.color-dropdown__trigger--large {
301
- width: var(--flow-ui-input-height-large);
302
- height: var(--flow-ui-input-height-large);
305
+ width: var(--flow-ui-control-height-large);
306
+ height: var(--flow-ui-control-height-large);
303
307
  border-radius: var(--flow-ui-border-radius-circle);
304
308
  }
305
309
 
@@ -312,7 +316,9 @@ const styles = css`
312
316
  height: 100%;
313
317
  border-radius: inherit;
314
318
  background-color: currentColor;
315
- box-shadow: inset 0 0 0 var(--flow-ui-input-border-width) var(--flow-ui-input-border-color), inset 0 0 0 4px var(--flow-ui-color-neutral-0);
319
+ box-shadow:
320
+ inset 0 0 0 var(--flow-ui-control-border-width) var(--flow-ui-control-border-color),
321
+ inset 0 0 0 4px var(--flow-ui-color-neutral-0);
316
322
  }
317
323
 
318
324
  .color-dropdown__trigger--empty:before {
@@ -28,32 +28,27 @@ const styles = css`
28
28
  min-width: 15em;
29
29
  }
30
30
 
31
- .color-stop__input::part(input) {
32
- /* remove 180px from input */
33
- width: 0;
34
- }
35
-
36
31
  .color-stop__input::part(suffix) {
37
32
  /* remove excessive space from suffix */
38
- --flow-ui-input-spacing-small: var(--flow-ui-spacing-2x-small);
39
- --flow-ui-input-spacing-medium: var(--flow-ui-spacing-x-small);
40
- --flow-ui-input-spacing-large: var(--flow-ui-spacing-x-small);
33
+ --flow-ui-control-spacing-small: var(--flow-ui-spacing-2x-small);
34
+ --flow-ui-control-spacing-medium: var(--flow-ui-spacing-x-small);
35
+ --flow-ui-control-spacing-large: var(--flow-ui-spacing-x-small);
41
36
  }
42
37
 
43
38
  /* Sizes */
44
39
 
45
40
  .color-stop--small {
46
- font-size: var(--flow-ui-input-font-size-small);
41
+ font-size: var(--flow-ui-control-font-size-small);
47
42
  --spacing: var(--flow-ui-spacing-x-small);
48
43
  }
49
44
 
50
45
  .color-stop--medium {
51
- font-size: var(--flow-ui-input-font-size-medium);
46
+ font-size: var(--flow-ui-control-font-size-medium);
52
47
  --spacing: var(--flow-ui-spacing-x-small);
53
48
  }
54
49
 
55
50
  .color-stop--large {
56
- font-size: var(--flow-ui-input-font-size-large);
51
+ font-size: var(--flow-ui-control-font-size-large);
57
52
  --spacing: var(--flow-ui-spacing-small);
58
53
  }
59
54
 
@@ -61,7 +56,7 @@ const styles = css`
61
56
 
62
57
  .color-stop__picker::part(trigger) {
63
58
  /* match input box styling */
64
- border-radius: var(--flow-ui-input-border-radius-small);
59
+ border-radius: var(--flow-ui-control-border-radius-small);
65
60
  }
66
61
 
67
62
  /* Default variant */
@@ -60,6 +60,8 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
60
60
  this.helpText = "";
61
61
  this.form = "";
62
62
  this.required = false;
63
+ this.inline = false;
64
+ this.divider = false;
63
65
  }
64
66
  /** Gets the validity state object */
65
67
  get validity() {
@@ -287,7 +289,9 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
287
289
  "form-control--medium": this.size === "medium",
288
290
  "form-control--large": this.size === "large",
289
291
  "form-control--has-label": hasLabel,
290
- "form-control--has-help-text": hasHelpText
292
+ "form-control--has-help-text": hasHelpText,
293
+ "form-control--has-divider": this.divider,
294
+ "form-control--inline": this.inline
291
295
  })}
292
296
  >
293
297
  <label
@@ -300,7 +304,17 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
300
304
  <slot name="label">${this.label}</slot>
301
305
  </label>
302
306
 
303
- <div part="form-control-input" class="form-control-input">
307
+ <slot
308
+ name="help-text"
309
+ part="form-control-help-text"
310
+ id="help-text"
311
+ class="form-control__help-text"
312
+ aria-hidden=${hasHelpText ? "false" : "true"}
313
+ >
314
+ ${this.helpText}
315
+ </slot>
316
+
317
+ <div part="form-control-input" class="form-control__input">
304
318
  <flow-ui-popup
305
319
  class=${classMap({
306
320
  datepicker: true,
@@ -336,28 +350,31 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
336
350
  >
337
351
  <slot part="prefix" name="prefix" class="datepicker__prefix"></slot>
338
352
 
339
- <input
340
- part="display-input"
341
- class="datepicker__display-input"
342
- type="text"
343
- placeholder=${this.placeholder}
344
- .disabled=${this.disabled}
345
- .value=${this.displayLabel}
346
- autocomplete="off"
347
- spellcheck="false"
348
- autocapitalize="off"
349
- readonly
350
- aria-controls="listbox"
351
- aria-expanded=${this.open ? "true" : "false"}
352
- aria-haspopup="listbox"
353
- aria-labelledby="label"
354
- aria-disabled=${this.disabled ? "true" : "false"}
355
- aria-describedby="help-text"
356
- role="combobox"
357
- tabindex="0"
358
- @focus=${this.handleFocus}
359
- @blur=${this.handleBlur}
360
- />
353
+ <div class="input__wrapper">
354
+ <input
355
+ part="display-input"
356
+ class="datepicker__display-input"
357
+ type="text"
358
+ placeholder=${this.placeholder}
359
+ .disabled=${this.disabled}
360
+ .value=${this.displayLabel}
361
+ autocomplete="off"
362
+ spellcheck="false"
363
+ autocapitalize="off"
364
+ readonly
365
+ aria-controls="listbox"
366
+ aria-expanded=${this.open ? "true" : "false"}
367
+ aria-haspopup="listbox"
368
+ aria-labelledby="label"
369
+ aria-disabled=${this.disabled ? "true" : "false"}
370
+ aria-describedby="help-text"
371
+ role="combobox"
372
+ tabindex="0"
373
+ @focus=${this.handleFocus}
374
+ @blur=${this.handleBlur}
375
+ />
376
+ <span class="input__sizer">${this.displayLabel || this.placeholder}</span>
377
+ </div>
361
378
 
362
379
  <input
363
380
  class="datepicker__value-input"
@@ -410,15 +427,7 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
410
427
  </flow-ui-popup>
411
428
  </div>
412
429
 
413
- <slot
414
- name="help-text"
415
- part="form-control-help-text"
416
- id="help-text"
417
- class="form-control__help-text"
418
- aria-hidden=${hasHelpText ? "false" : "true"}
419
- >
420
- ${this.helpText}
421
- </slot>
430
+ ${this.divider ? this.renderDivider() : nothing}
422
431
  </div>
423
432
  `;
424
433
  }
@@ -502,6 +511,12 @@ __decorateClass([
502
511
  __decorateClass([
503
512
  property({ type: Boolean, reflect: true })
504
513
  ], FlowUiDateTimePicker.prototype, "required", 2);
514
+ __decorateClass([
515
+ property({ type: Boolean, reflect: true })
516
+ ], FlowUiDateTimePicker.prototype, "inline", 2);
517
+ __decorateClass([
518
+ property({ type: Boolean, reflect: true })
519
+ ], FlowUiDateTimePicker.prototype, "divider", 2);
505
520
  __decorateClass([
506
521
  watch(["value", "format", "timezone", "locale"])
507
522
  ], FlowUiDateTimePicker.prototype, "updateDisplayLabel", 1);
@@ -41,9 +41,9 @@ const styles = css`
41
41
  position: relative;
42
42
  align-items: center;
43
43
  justify-content: start;
44
- font-family: var(--flow-ui-input-font-family);
45
- font-weight: var(--flow-ui-input-font-weight);
46
- letter-spacing: var(--flow-ui-input-letter-spacing);
44
+ font-family: var(--flow-ui-control-font-family);
45
+ font-weight: var(--flow-ui-control-font-weight);
46
+ letter-spacing: var(--flow-ui-control-letter-spacing);
47
47
  vertical-align: middle;
48
48
  overflow: hidden;
49
49
  cursor: pointer;
@@ -60,7 +60,7 @@ const styles = css`
60
60
  font: inherit;
61
61
  border: none;
62
62
  background: none;
63
- color: var(--flow-ui-input-color);
63
+ color: var(--flow-ui-control-color);
64
64
  cursor: inherit;
65
65
  overflow: hidden;
66
66
  padding: 0;
@@ -69,13 +69,30 @@ const styles = css`
69
69
  }
70
70
 
71
71
  .datepicker:not(.datepicker--disabled):hover .datepicker__display-input {
72
- color: var(--flow-ui-input-color-hover);
72
+ color: var(--flow-ui-control-color-hover);
73
73
  }
74
74
 
75
75
  .datepicker__display-input:focus {
76
76
  outline: none;
77
77
  }
78
78
 
79
+ /* Wrapper to allow display input to be sized based on its content */
80
+ .input__wrapper {
81
+ flex: 1;
82
+ display: grid;
83
+ }
84
+
85
+ .form-control--inline .input__wrapper {
86
+ grid-template-columns: min-content;
87
+ }
88
+
89
+ /* For measuring width of displayed option text */
90
+ .input__sizer {
91
+ white-space: pre;
92
+ height: 0;
93
+ overflow: hidden;
94
+ }
95
+
79
96
  .datepicker__value-input {
80
97
  position: absolute;
81
98
  top: 0;
@@ -88,15 +105,10 @@ const styles = css`
88
105
  z-index: -1;
89
106
  }
90
107
 
91
- .datepicker--standard .datepicker__combobox {
92
- background-color: var(--flow-ui-input-background-color);
93
- border: solid var(--flow-ui-input-border-width) var(--flow-ui-input-border-color);
94
- }
95
-
96
108
  .datepicker--standard.datepicker--disabled .datepicker__combobox {
97
- background-color: var(--flow-ui-input-background-color-disabled);
98
- border-color: var(--flow-ui-input-border-color-disabled);
99
- color: var(--flow-ui-input-color-disabled);
109
+ background-color: var(--flow-ui-control-background-color-disabled);
110
+ border-color: var(--flow-ui-control-border-color-disabled);
111
+ color: var(--flow-ui-control-color-disabled);
100
112
  opacity: 0.5;
101
113
  cursor: not-allowed;
102
114
  outline: none;
@@ -104,93 +116,93 @@ const styles = css`
104
116
 
105
117
  .datepicker--standard:not(.datepicker--disabled).datepicker--open .datepicker__combobox,
106
118
  .datepicker--standard:not(.datepicker--disabled).datepicker--focused .datepicker__combobox {
107
- background-color: var(--flow-ui-input-background-color-focus);
108
- border-color: var(--flow-ui-input-border-color-focus);
109
- box-shadow: 0 0 0 var(--flow-ui-focus-ring-width) var(--flow-ui-input-focus-ring-color);
119
+ background-color: var(--flow-ui-control-background-color-focus);
120
+ border-color: var(--flow-ui-control-border-color-focus);
121
+ box-shadow: 0 0 0 var(--flow-ui-focus-ring-width) var(--flow-ui-control-focus-ring-color);
110
122
  }
111
123
 
112
124
  .datepicker--filled .datepicker__combobox {
113
125
  border: none;
114
- background-color: var(--flow-ui-input-filled-background-color);
115
- color: var(--flow-ui-input-color);
126
+ background-color: var(--flow-ui-control-filled-background-color);
127
+ color: var(--flow-ui-control-color);
116
128
  }
117
129
 
118
130
  .datepicker--filled:hover:not(.datepicker--disabled) .datepicker__combobox {
119
- background-color: var(--flow-ui-input-filled-background-color-hover);
131
+ background-color: var(--flow-ui-control-filled-background-color-hover);
120
132
  }
121
133
 
122
134
  .datepicker--filled.datepicker--disabled .datepicker__combobox {
123
- background-color: var(--flow-ui-input-filled-background-color-disabled);
135
+ background-color: var(--flow-ui-control-filled-background-color-disabled);
124
136
  opacity: 0.5;
125
137
  cursor: not-allowed;
126
138
  }
127
139
 
128
140
  .datepicker--filled:not(.datepicker--disabled).datepicker--open .datepicker__combobox,
129
141
  .datepicker--filled:not(.datepicker--disabled).datepicker--focused .datepicker__combobox {
130
- background-color: var(--flow-ui-input-filled-background-color-focus);
142
+ background-color: var(--flow-ui-control-filled-background-color-focus);
131
143
  outline: var(--flow-ui-focus-ring);
132
144
  }
133
145
 
134
146
  /* Sizes */
135
147
  .datepicker--small .datepicker__combobox {
136
- border-radius: var(--flow-ui-input-border-radius-small);
137
- font-size: var(--flow-ui-input-font-size-small);
138
- min-height: var(--flow-ui-input-height-small);
148
+ border-radius: var(--flow-ui-control-border-radius-small);
149
+ font-size: var(--flow-ui-control-font-size-small);
150
+ min-height: var(--flow-ui-control-height-small);
139
151
  padding-block: 0;
140
- padding-inline: var(--flow-ui-input-spacing-small);
152
+ padding-inline: var(--flow-ui-control-spacing-small);
141
153
  }
142
154
 
143
155
  .datepicker--small .datepicker__clear {
144
- margin-inline-start: var(--flow-ui-input-spacing-small);
156
+ margin-inline-start: var(--flow-ui-control-spacing-small);
145
157
  }
146
158
 
147
159
  .datepicker--small .datepicker__prefix::slotted(*) {
148
- margin-inline-end: var(--flow-ui-input-spacing-small);
160
+ margin-inline-end: var(--flow-ui-control-spacing-small);
149
161
  }
150
162
 
151
163
  .datepicker--medium .datepicker__combobox {
152
- border-radius: var(--flow-ui-input-border-radius-medium);
153
- font-size: var(--flow-ui-input-font-size-medium);
154
- min-height: var(--flow-ui-input-height-medium);
164
+ border-radius: var(--flow-ui-control-border-radius-medium);
165
+ font-size: var(--flow-ui-control-font-size-medium);
166
+ min-height: var(--flow-ui-control-height-medium);
155
167
  padding-block: 0;
156
- padding-inline: var(--flow-ui-input-spacing-medium);
168
+ padding-inline: var(--flow-ui-control-spacing-medium);
157
169
  }
158
170
 
159
171
  .datepicker--medium .datepicker__clear {
160
- margin-inline-start: var(--flow-ui-input-spacing-medium);
172
+ margin-inline-start: var(--flow-ui-control-spacing-medium);
161
173
  }
162
174
 
163
175
  .datepicker--medium .datepicker__prefix::slotted(*) {
164
- margin-inline-end: var(--flow-ui-input-spacing-medium);
176
+ margin-inline-end: var(--flow-ui-control-spacing-medium);
165
177
  }
166
178
 
167
179
  .datepicker--large .datepicker__combobox {
168
- border-radius: var(--flow-ui-input-border-radius-large);
169
- font-size: var(--flow-ui-input-font-size-large);
170
- min-height: var(--flow-ui-input-height-large);
180
+ border-radius: var(--flow-ui-control-border-radius-large);
181
+ font-size: var(--flow-ui-control-font-size-large);
182
+ min-height: var(--flow-ui-control-height-large);
171
183
  padding-block: 0;
172
- padding-inline: var(--flow-ui-input-spacing-large);
184
+ padding-inline: var(--flow-ui-control-spacing-large);
173
185
  }
174
186
 
175
187
  .datepicker--large .datepicker__clear {
176
- margin-inline-start: var(--flow-ui-input-spacing-large);
188
+ margin-inline-start: var(--flow-ui-control-spacing-large);
177
189
  }
178
190
 
179
191
  .datepicker--large .datepicker__prefix::slotted(*) {
180
- margin-inline-end: var(--flow-ui-input-spacing-large);
192
+ margin-inline-end: var(--flow-ui-control-spacing-large);
181
193
  }
182
194
 
183
195
  /* Pills */
184
196
  .datepicker--pill.datepicker--small .datepicker__combobox {
185
- border-radius: var(--flow-ui-input-height-small);
197
+ border-radius: var(--flow-ui-control-height-small);
186
198
  }
187
199
 
188
200
  .datepicker--pill.datepicker--medium .datepicker__combobox {
189
- border-radius: var(--flow-ui-input-height-medium);
201
+ border-radius: var(--flow-ui-control-height-medium);
190
202
  }
191
203
 
192
204
  .datepicker--pill.datepicker--large .datepicker__combobox {
193
- border-radius: var(--flow-ui-input-height-large);
205
+ border-radius: var(--flow-ui-control-height-large);
194
206
  }
195
207
 
196
208
  /* Prefix */
@@ -198,7 +210,7 @@ const styles = css`
198
210
  flex: 0;
199
211
  display: inline-flex;
200
212
  align-items: center;
201
- color: var(--flow-ui-input-placeholder-color);
213
+ color: var(--flow-ui-control-placeholder-color);
202
214
  }
203
215
 
204
216
  /* Clear button */
@@ -207,7 +219,7 @@ const styles = css`
207
219
  align-items: center;
208
220
  justify-content: center;
209
221
  font-size: inherit;
210
- color: var(--flow-ui-input-icon-color);
222
+ color: var(--flow-ui-control-icon-color);
211
223
  border: none;
212
224
  background: none;
213
225
  padding: 0;
@@ -216,7 +228,7 @@ const styles = css`
216
228
  }
217
229
 
218
230
  .datepicker__clear:hover {
219
- color: var(--flow-ui-input-icon-color-hover);
231
+ color: var(--flow-ui-control-icon-color-hover);
220
232
  }
221
233
 
222
234
  .datepicker__clear:focus {
@@ -244,8 +256,8 @@ const styles = css`
244
256
  font-size: var(--flow-ui-font-size-medium);
245
257
  font-weight: var(--flow-ui-font-weight-normal);
246
258
  box-shadow: var(--flow-ui-shadow-large);
247
- background: var(--flow-ui-panel-background-color);
248
- border: solid var(--flow-ui-panel-border-width) var(--flow-ui-panel-border-color);
259
+ background: var(--flow-ui-menu-background-color);
260
+ border: solid var(--flow-ui-menu-border-width) var(--flow-ui-menu-border-color);
249
261
  border-radius: var(--flow-ui-border-radius-medium);
250
262
  padding: var(--flow-ui-spacing-x-small);
251
263
  overflow: auto;
@@ -6,12 +6,21 @@ const styles = css`
6
6
 
7
7
  :host {
8
8
  display: block;
9
+
10
+ --border-color: var(--flow-ui-details-border-color);
11
+ --border-radius: var(--flow-ui-details-border-radius);
12
+ --border-width: var(--flow-ui-details-border-width);
13
+ --padding: var(--flow-ui-spacing-small);
14
+
15
+ --background-color: var(--flow-ui-details-background-color);
16
+ --color: var(--flow-ui-details-color);
9
17
  }
10
18
 
11
19
  .details {
12
- border: solid 1px var(--flow-ui-color-neutral-200);
13
- border-radius: var(--flow-ui-border-radius-medium);
14
- background-color: var(--flow-ui-color-neutral-0);
20
+ border: solid var(--border-width) var(--border-color);
21
+ border-radius: var(--border-radius);
22
+ background-color: var(--background-color);
23
+ color: var(--color);
15
24
  overflow-anchor: none;
16
25
  }
17
26
 
@@ -23,7 +32,7 @@ const styles = css`
23
32
  display: flex;
24
33
  align-items: center;
25
34
  border-radius: inherit;
26
- padding: var(--flow-ui-spacing-medium);
35
+ padding: var(--padding);
27
36
  user-select: none;
28
37
  cursor: pointer;
29
38
  }
@@ -52,6 +61,10 @@ const styles = css`
52
61
  align-items: center;
53
62
  }
54
63
 
64
+ .details__summary::slotted(*) {
65
+ margin-right: var(--flow-ui-spacing-small);
66
+ }
67
+
55
68
  .details__summary-icon {
56
69
  flex: 0 0 auto;
57
70
  display: flex;
@@ -78,7 +91,16 @@ const styles = css`
78
91
 
79
92
  .details__content {
80
93
  display: block;
81
- padding: var(--flow-ui-spacing-medium);
94
+ padding: var(--padding);
95
+ padding-top: 0;
96
+ }
97
+
98
+ .details__content::slotted(:first-child) {
99
+ margin-top: 0;
100
+ }
101
+
102
+ .details__content::slotted(:last-child) {
103
+ margin-bottom: 0;
82
104
  }
83
105
  `;
84
106