@knime/kds-components 0.29.2 → 0.30.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 0.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e0a3ce6: Add submenu capability to `KdsMenuContainer` component
8
+ - Can now render children items up to 3 levels (root + 2 nested submenus)
9
+ - Items with children cannot have a shortcut assigned, nor a badge or a trailing icon since that space
10
+ is reserved for the icon that hints at a nested submenu
11
+
12
+ ### Patch Changes
13
+
14
+ - @knime/kds-styles@0.30.0
15
+
16
+ ## 0.29.3
17
+
18
+ ### Patch Changes
19
+
20
+ - 252e71b: Add `KdsProgressBar`
21
+ - @knime/kds-styles@0.29.3
22
+
3
23
  ## 0.29.2
4
24
 
5
25
  ### Patch Changes
package/dist/index.css CHANGED
@@ -311,6 +311,84 @@
311
311
  }
312
312
  }
313
313
 
314
+ .kds-progress-bar {
315
+ &[data-v-5fdfbce2] {
316
+ --progress-bar-background-color: var(--kds-color-surface-subtle);
317
+ --progress-bar-foreground-color: var(
318
+ --kds-color-background-primary-bold-initial
319
+ );
320
+ --progress-bar-radius: var(--kds-border-radius-container-pill);
321
+ --progress-bar-height: var(--kds-dimension-component-height-0-25x);
322
+
323
+ position: relative;
324
+ width: 100%;
325
+ height: var(--progress-bar-height);
326
+ overflow: hidden;
327
+ border-radius: var(--progress-bar-radius);
328
+
329
+ /* Firefox uses this to target the bar that represents the value of the progress element */
330
+
331
+ /* the following two rules need to stay separate, as otherwise it causes it not to be applied in Chrome correctly */
332
+ }
333
+ & .progress[data-v-5fdfbce2] {
334
+ display: block;
335
+ width: 100%;
336
+ height: var(--progress-bar-height);
337
+ padding: 0;
338
+ overflow: hidden;
339
+ appearance: none;
340
+
341
+ /* Firefox sets the background of the bar from here */
342
+ background-color: var(--progress-bar-background-color);
343
+ border: none;
344
+ border-radius: var(--progress-bar-radius);
345
+ }
346
+ & .progress[data-v-5fdfbce2]::-webkit-progress-bar {
347
+ background-color: var(--progress-bar-background-color);
348
+ }
349
+ & .progress[data-v-5fdfbce2]::-webkit-progress-value {
350
+ background-color: var(--progress-bar-foreground-color);
351
+ border-radius: var(--progress-bar-radius);
352
+ transition: width 0.5s;
353
+ }
354
+ & .progress[data-v-5fdfbce2]::-moz-progress-bar {
355
+ background-color: var(--progress-bar-foreground-color);
356
+ }
357
+ & .progress[data-v-5fdfbce2]:indeterminate {
358
+ background-color: var(--progress-bar-background-color);
359
+ background-image: none;
360
+ }
361
+ & .progress[data-v-5fdfbce2]:indeterminate::-webkit-progress-bar {
362
+ background-color: transparent;
363
+ }
364
+ & .progress[data-v-5fdfbce2]:indeterminate::-moz-progress-bar {
365
+ background-color: transparent;
366
+ }
367
+ & .indeterminate-bar[data-v-5fdfbce2] {
368
+ position: absolute;
369
+ inset-block: 0;
370
+ width: 35%;
371
+ pointer-events: none;
372
+ background-color: var(--progress-bar-foreground-color);
373
+ border-radius: var(--kds-border-radius-container-pill);
374
+ animation: move-indeterminate-5fdfbce2 1.5s linear infinite;
375
+ }
376
+ }
377
+ .kds-progress-bar-medium[data-v-5fdfbce2] {
378
+ --progress-bar-height: var(--kds-dimension-component-height-0-25x);
379
+ }
380
+ .kds-progress-bar-large[data-v-5fdfbce2] {
381
+ --progress-bar-height: var(--kds-dimension-component-height-0-75x);
382
+ }
383
+ @keyframes move-indeterminate-5fdfbce2 {
384
+ 0% {
385
+ transform: translateX(-120%);
386
+ }
387
+ 100% {
388
+ transform: translateX(320%);
389
+ }
390
+ }
391
+
314
392
  .kds-color-swatch {
315
393
  &[data-v-91e0130d] {
316
394
  display: inline-block;
@@ -1132,7 +1210,7 @@ html.kds-legacy {
1132
1210
  }
1133
1211
  }
1134
1212
 
1135
- .kds-menu-item-link[data-v-677d6ca6] {
1213
+ .kds-menu-item-link[data-v-96d9cfba] {
1136
1214
  display: block;
1137
1215
  color: inherit;
1138
1216
  text-decoration: none;
@@ -1149,7 +1227,7 @@ html.kds-legacy {
1149
1227
  }
1150
1228
 
1151
1229
  .kds-menu-container {
1152
- &[data-v-cce3fc40] {
1230
+ &[data-v-9dc6d3f6] {
1153
1231
  display: flex;
1154
1232
  flex-direction: column;
1155
1233
  gap: var(--kds-spacing-container-0-10x);
@@ -1161,11 +1239,46 @@ html.kds-legacy {
1161
1239
  border-radius: var(--kds-border-radius-container-0-50x);
1162
1240
  box-shadow: var(--kds-elevation-level-3);
1163
1241
  }
1164
- &[data-v-cce3fc40]:focus-visible {
1242
+ &[data-v-9dc6d3f6]:focus-visible {
1165
1243
  outline: var(--kds-border-action-focused);
1166
1244
  outline-offset: var(--kds-spacing-offset-focus);
1167
1245
  }
1168
1246
  }
1247
+ .submenu-popover[data-v-9dc6d3f6] {
1248
+ inset: anchor(top) auto auto anchor(right);
1249
+ padding: 0 var(--kds-spacing-container-0-25x);
1250
+ margin: 0;
1251
+ position-try-fallbacks:
1252
+ --kds-popover-try-right-dropdown, --kds-popover-try-left-dropdown,
1253
+ --kds-popover-try-right-dropup, --kds-popover-try-left-dropup;
1254
+ overflow: visible;
1255
+ font: inherit;
1256
+ color: inherit;
1257
+ background-color: transparent;
1258
+ border: none;
1259
+ border-radius: 0;
1260
+ box-shadow: none;
1261
+ }
1262
+
1263
+ /* noinspection CssInvalidFunction,CssInvalidAtRule */
1264
+ @position-try --kds-popover-try-right-dropdown {
1265
+ inset: anchor(top) auto auto anchor(right);
1266
+ }
1267
+
1268
+ /* noinspection CssInvalidFunction,CssInvalidAtRule */
1269
+ @position-try --kds-popover-try-left-dropdown {
1270
+ inset: anchor(top) anchor(left) auto auto;
1271
+ }
1272
+
1273
+ /* noinspection CssInvalidFunction,CssInvalidAtRule */
1274
+ @position-try --kds-popover-try-right-dropup {
1275
+ inset: auto auto anchor(bottom) anchor(right);
1276
+ }
1277
+
1278
+ /* noinspection CssInvalidFunction,CssInvalidAtRule */
1279
+ @position-try --kds-popover-try-left-dropup {
1280
+ inset: auto anchor(left) anchor(bottom) auto;
1281
+ }
1169
1282
 
1170
1283
  .kds-popover {
1171
1284
  &[data-v-1e5f9d24] {