@knime/kds-components 2.0.0 → 2.1.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,32 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - - `KdsLabel`: promoted to a public component — no longer marked `@deprecated` and
8
+ now ships with a Storybook story. Prefer the `label` prop on KDS form field
9
+ components for regular inputs; use `KdsLabel` for standalone labels that are not
10
+ tied to a single KDS input (e.g. array-item headers).
11
+ - b5c0b76: - `KdsFileSelector`: new single-file form field with a model value of `File | null` and built-in type/size validation driven by `accept` and `maxSizeBytes`.
12
+ - `KdsColorSwatch`: new `"component"` type.
13
+
14
+ ### Patch Changes
15
+
16
+ - 83dcf9c: SLEEK-462: Fix KdsLink wrapping
17
+ - 98f37bd: KDS-946: KdsSearchInput: improve async behavior for non suggestions case
18
+ - abe3709: SLEEK-412: KdsLink download prop default undefined
19
+ - Updated dependencies [d6c8a53]
20
+ - @knime/utils@1.12.1
21
+ - @knime/kds-styles@2.1.0
22
+
23
+ ## 2.0.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [d8bb77a]
28
+ - @knime/kds-styles@2.0.1
29
+
3
30
  ## 2.0.0
4
31
 
5
32
  ### Major Changes
package/dist/index.css CHANGED
@@ -1115,7 +1115,7 @@ to {
1115
1115
  }
1116
1116
 
1117
1117
  .kds-color-swatch {
1118
- &[data-v-dd4ddfb5] {
1118
+ &[data-v-3787538b] {
1119
1119
  display: inline-block;
1120
1120
  flex-shrink: 0;
1121
1121
  overflow: hidden;
@@ -1124,19 +1124,19 @@ to {
1124
1124
  border: var(--kds-border-base-muted);
1125
1125
  border-radius: var(--kds-border-radius-container-0-25x);
1126
1126
  }
1127
- &.small[data-v-dd4ddfb5] {
1127
+ &.small[data-v-3787538b] {
1128
1128
  --kds-color-swatch-checker-size: calc(var(--kds-dimension-icon-0-75x) / 4);
1129
1129
 
1130
1130
  width: var(--kds-dimension-icon-0-75x);
1131
1131
  height: var(--kds-dimension-icon-0-75x);
1132
1132
  }
1133
- &.medium[data-v-dd4ddfb5] {
1133
+ &.medium[data-v-3787538b] {
1134
1134
  --kds-color-swatch-checker-size: calc(var(--kds-dimension-icon-1x) / 4);
1135
1135
 
1136
1136
  width: var(--kds-dimension-icon-1x);
1137
1137
  height: var(--kds-dimension-icon-1x);
1138
1138
  }
1139
- &.large[data-v-dd4ddfb5] {
1139
+ &.large[data-v-3787538b] {
1140
1140
  --kds-color-swatch-checker-size: calc(
1141
1141
  var(--kds-dimension-component-width-1-25x) / 4
1142
1142
  );
@@ -1335,74 +1335,80 @@ to {
1335
1335
  border-bottom: var(--kds-border-base-subtle);
1336
1336
  }
1337
1337
 
1338
+ /** keep in sync with KdsDescription */
1338
1339
  .kds-link {
1339
- &[data-v-0d853d40] {
1340
- display: inline-flex;
1341
- align-items: center;
1342
- justify-content: center;
1343
- width: fit-content;
1340
+ &[data-v-ff340b7a] {
1344
1341
  max-width: 100%;
1345
1342
  padding: var(--kds-spacing-container-none) var(--kds-spacing-container-0-10x);
1346
1343
  font: var(--kds-font-base-body-small);
1347
1344
  color: var(--kds-color-text-and-icon-neutral);
1348
- white-space: nowrap;
1349
1345
  text-decoration-line: underline;
1350
1346
  border-radius: var(--kds-border-radius-container-0-12x);
1351
1347
  }
1352
- &.size-small[data-v-0d853d40] {
1348
+ &.size-small[data-v-ff340b7a] {
1353
1349
  font: var(--kds-font-base-subtext-small);
1354
1350
  }
1355
- &[data-v-0d853d40]:is(a) {
1351
+ &[data-v-ff340b7a]:is(a) {
1356
1352
  cursor: pointer;
1357
1353
  }
1358
- &[data-v-0d853d40]:focus-visible {
1354
+ &[data-v-ff340b7a]:focus-visible {
1359
1355
  outline: var(--kds-border-action-focused);
1360
1356
  outline-offset: var(--kds-spacing-container-none);
1361
1357
  }
1362
- & .label[data-v-0d853d40],
1363
- & .file-size[data-v-0d853d40] {
1364
- min-width: 0;
1365
- overflow: hidden;
1366
- text-overflow: ellipsis;
1367
- }
1368
1358
  &.variant-internal {
1369
- &[data-v-0d853d40] {
1359
+ &[data-v-ff340b7a] {
1370
1360
  color: var(--kds-color-text-and-icon-neutral);
1371
1361
  }
1372
1362
  &:not(.disabled) {
1373
- &[data-v-0d853d40]:visited {
1363
+ &[data-v-ff340b7a]:visited {
1374
1364
  color: var(--kds-color-text-and-icon-info);
1375
1365
  }
1376
- &[data-v-0d853d40]:hover {
1366
+ &[data-v-ff340b7a]:hover {
1377
1367
  background-color: var(--kds-color-background-neutral-hover);
1378
1368
  }
1379
- &[data-v-0d853d40]:active {
1369
+ &[data-v-ff340b7a]:active {
1380
1370
  background-color: var(--kds-color-background-neutral-active);
1381
1371
  }
1382
1372
  }
1383
1373
  }
1384
- &.variant-external[data-v-0d853d40] {
1385
- gap: var(--kds-spacing-container-0-12x);
1386
- }
1387
1374
  &:is(.variant-external, .variant-document) {
1388
- &[data-v-0d853d40] {
1389
- color: var(--kds-color-text-and-icon-selected);
1375
+ &[data-v-ff340b7a] {
1376
+ --link-color: var(--kds-color-text-and-icon-selected);
1377
+
1378
+ color: var(--link-color);
1390
1379
  }
1391
1380
  &:not(.disabled) {
1392
- &[data-v-0d853d40]:visited {
1393
- color: var(--kds-color-text-and-icon-info);
1381
+ &[data-v-ff340b7a]:visited {
1382
+ --link-color: var(--kds-color-text-and-icon-info);
1383
+
1384
+ color: var(--link-color);
1394
1385
  }
1395
- &[data-v-0d853d40]:hover {
1396
- color: var(--kds-color-text-and-icon-primary-inverted);
1386
+ &[data-v-ff340b7a]:hover {
1387
+ --link-color: var(--kds-color-text-and-icon-primary-inverted);
1388
+
1389
+ color: var(--link-color);
1397
1390
  background-color: var(--kds-color-background-primary-bold-hover);
1398
1391
  }
1399
- &[data-v-0d853d40]:active {
1400
- color: var(--kds-color-text-and-icon-selected-inverted);
1392
+ &[data-v-ff340b7a]:active {
1393
+ --link-color: var(--kds-color-text-and-icon-selected-inverted);
1394
+
1395
+ color: var(--link-color);
1401
1396
  background-color: var(--kds-color-background-primary-bold-active);
1402
1397
  }
1403
1398
  }
1404
1399
  }
1405
- &.disabled[data-v-0d853d40] {
1400
+ &.variant-external[data-v-ff340b7a]::after {
1401
+ display: inline-block;
1402
+ width: var(--kds-dimension-icon-0-56x);
1403
+ height: var(--kds-dimension-icon-0-56x);
1404
+ margin-left: var(--kds-spacing-container-0-12x);
1405
+ content: "";
1406
+ background-color: var(--link-color);
1407
+ mask-image: var(--bc3c8892);
1408
+ mask-repeat: no-repeat;
1409
+ mask-size: contain;
1410
+ }
1411
+ &.disabled[data-v-ff340b7a] {
1406
1412
  color: var(--kds-color-text-and-icon-disabled);
1407
1413
  pointer-events: none;
1408
1414
  cursor: default;
@@ -3037,7 +3043,7 @@ table:focus {
3037
3043
  height: var(--kds-dimension-component-height-12x);
3038
3044
  }
3039
3045
 
3040
- .kds-search-results-container[data-v-bca71342] {
3046
+ .kds-search-results-container[data-v-07a978cc] {
3041
3047
  background-color: var(--kds-color-surface-default);
3042
3048
  border-radius: var(--kds-border-radius-container-0-50x);
3043
3049
  box-shadow: var(--kds-elevation-level-3);
@@ -3275,6 +3281,34 @@ textarea[data-v-5e62862c]::-webkit-scrollbar {
3275
3281
  gap: var(--kds-spacing-container-0-25x);
3276
3282
  }
3277
3283
 
3284
+ .kds-file-selector[data-v-9f592f37] {
3285
+ display: flex;
3286
+ gap: var(--kds-spacing-container-0-75x);
3287
+ align-items: center;
3288
+ height: var(--kds-dimension-component-height-1-75x);
3289
+ }
3290
+ .file-info[data-v-9f592f37] {
3291
+ display: flex;
3292
+ flex: 1 0 0;
3293
+ flex-direction: column;
3294
+ gap: var(--kds-spacing-container-0-12x);
3295
+ min-width: 0;
3296
+ }
3297
+ .file-name[data-v-9f592f37] {
3298
+ overflow: hidden;
3299
+ text-overflow: ellipsis;
3300
+ font: var(--kds-font-base-title-small);
3301
+ color: var(--kds-color-text-and-icon-subtle);
3302
+ white-space: nowrap;
3303
+ }
3304
+ .file-name.has-value[data-v-9f592f37] {
3305
+ color: var(--kds-color-text-and-icon-neutral);
3306
+ }
3307
+ .requirements[data-v-9f592f37] {
3308
+ font: var(--kds-font-base-subtext-xsmall);
3309
+ color: var(--kds-color-text-and-icon-subtle);
3310
+ }
3311
+
3278
3312
  .kds-list-item-button {
3279
3313
  &[data-v-05caf3fd] {
3280
3314
  position: relative;
@@ -4797,17 +4831,17 @@ li {
4797
4831
  }
4798
4832
 
4799
4833
  .description {
4800
- &[data-v-9ba85b50] {
4834
+ &[data-v-6bb5f3b1] {
4801
4835
  font: var(--kds-font-base-body-small);
4802
4836
  color: var(--kds-color-text-and-icon-neutral);
4803
4837
  overflow-wrap: anywhere;
4804
4838
 
4805
4839
  /* stylelint-disable knime/no-deep-nesting */
4806
4840
  }
4807
- &.plain[data-v-9ba85b50] {
4841
+ &.plain[data-v-6bb5f3b1] {
4808
4842
  white-space: pre-line;
4809
4843
  }
4810
- &[data-v-9ba85b50] {
4844
+ &[data-v-6bb5f3b1] {
4811
4845
  p {
4812
4846
  & {
4813
4847
  padding: 0;
@@ -4860,16 +4894,11 @@ pre {
4860
4894
  /** keep in sync with KdsLink */
4861
4895
  a {
4862
4896
  & {
4863
- display: inline-flex;
4864
- align-items: center;
4865
- justify-content: center;
4866
- width: fit-content;
4867
4897
  max-width: 100%;
4868
4898
  padding: var(--kds-spacing-container-none)
4869
4899
  var(--kds-spacing-container-0-10x);
4870
4900
  font: var(--kds-font-base-body-small);
4871
4901
  color: var(--kds-color-text-and-icon-neutral);
4872
- white-space: nowrap;
4873
4902
  text-decoration-line: underline;
4874
4903
  cursor: pointer;
4875
4904
  border-radius: var(--kds-border-radius-container-0-12x);
@@ -4906,13 +4935,13 @@ a {
4906
4935
  background-color: var(--kds-color-background-primary-bold-active);
4907
4936
  }
4908
4937
  &::after {
4909
- display: block;
4938
+ display: inline-block;
4910
4939
  width: var(--kds-dimension-icon-0-56x);
4911
4940
  height: var(--kds-dimension-icon-0-56x);
4912
4941
  margin-left: var(--kds-spacing-container-0-12x);
4913
4942
  content: "";
4914
4943
  background-color: var(--link-color);
4915
- mask-image: var(--v45ad2302);
4944
+ mask-image: var(--v9d035596);
4916
4945
  mask-repeat: no-repeat;
4917
4946
  mask-size: contain;
4918
4947
  }