@knime/kds-components 7.2.1 → 7.2.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @knime/kds-components
|
|
2
2
|
|
|
3
|
+
## 7.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c4826f2: `KdsTabBar` / `KdsTabPanel`: the bottom border of the tab bar is no longer
|
|
8
|
+
painted over the last pixels of the tab row. Trailing actions that are nearly as
|
|
9
|
+
tall as the tabs — a small `KdsValueSwitch` or `KdsButton` — now keep their
|
|
10
|
+
distance from the border instead of sitting directly on it, so consumers no
|
|
11
|
+
longer have to nudge them into place or draw the border themselves. The active
|
|
12
|
+
tab's indicator still replaces the border underneath the selected tab. The tab
|
|
13
|
+
bar is 1.5px taller as a result, because the border now takes up its own space.
|
|
14
|
+
|
|
15
|
+
The gap between individual trailing actions shrank from 16px to 4px, matching
|
|
16
|
+
the spacing the Workflow Editor already uses for the same controls.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @knime/kds-styles@7.2.2
|
|
20
|
+
|
|
3
21
|
## 7.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -5114,10 +5114,10 @@ tbody[data-v-8ba92819]:has(.empty) {
|
|
|
5114
5114
|
justify-content: center;
|
|
5115
5115
|
}
|
|
5116
5116
|
|
|
5117
|
-
.kds-tab-icon[data-v-
|
|
5117
|
+
.kds-tab-icon[data-v-e2c06e27] {
|
|
5118
5118
|
flex-shrink: 0;
|
|
5119
5119
|
}
|
|
5120
|
-
.kds-tab-label[data-v-
|
|
5120
|
+
.kds-tab-label[data-v-e2c06e27] {
|
|
5121
5121
|
min-width: 0;
|
|
5122
5122
|
overflow: hidden;
|
|
5123
5123
|
text-overflow: ellipsis;
|
|
@@ -5125,7 +5125,7 @@ tbody[data-v-8ba92819]:has(.empty) {
|
|
|
5125
5125
|
white-space: nowrap;
|
|
5126
5126
|
}
|
|
5127
5127
|
.kds-tab {
|
|
5128
|
-
&[data-v-
|
|
5128
|
+
&[data-v-e2c06e27] {
|
|
5129
5129
|
position: relative;
|
|
5130
5130
|
display: flex;
|
|
5131
5131
|
align-items: center;
|
|
@@ -5137,23 +5137,26 @@ tbody[data-v-8ba92819]:has(.empty) {
|
|
|
5137
5137
|
border: none;
|
|
5138
5138
|
isolation: isolate;
|
|
5139
5139
|
}
|
|
5140
|
-
&[data-v-
|
|
5140
|
+
&[data-v-e2c06e27]:disabled {
|
|
5141
5141
|
color: var(--kds-color-text-and-icon-disabled);
|
|
5142
5142
|
cursor: not-allowed;
|
|
5143
5143
|
}
|
|
5144
|
-
&[data-v-
|
|
5144
|
+
&[data-v-e2c06e27]:focus-visible {
|
|
5145
5145
|
outline: var(--kds-border-action-focused);
|
|
5146
5146
|
outline-offset: var(--kds-spacing-offset-focus);
|
|
5147
5147
|
border-radius: var(--kds-border-radius-container-0-12x);
|
|
5148
5148
|
}
|
|
5149
5149
|
&.kds-tab-selected {
|
|
5150
|
-
&[data-v-
|
|
5150
|
+
&[data-v-e2c06e27] {
|
|
5151
5151
|
color: var(--kds-color-text-and-icon-selected);
|
|
5152
5152
|
}
|
|
5153
|
-
& .kds-tab-indicator[data-v-
|
|
5153
|
+
& .kds-tab-indicator[data-v-e2c06e27] {
|
|
5154
5154
|
position: absolute;
|
|
5155
5155
|
right: 0;
|
|
5156
|
-
|
|
5156
|
+
|
|
5157
|
+
/* Reach down into the space reserved for the bottom border so that the
|
|
5158
|
+
indicator replaces it under the active tab. */
|
|
5159
|
+
bottom: calc(-1 * var(--bottom-border-height));
|
|
5157
5160
|
left: 0;
|
|
5158
5161
|
z-index: 1;
|
|
5159
5162
|
height: var(--kds-dimension-component-height-0-125x);
|
|
@@ -5163,33 +5166,39 @@ tbody[data-v-8ba92819]:has(.empty) {
|
|
|
5163
5166
|
border-top-right-radius: var(--kds-border-radius-container-0-12x);
|
|
5164
5167
|
}
|
|
5165
5168
|
}
|
|
5166
|
-
&[data-v-
|
|
5169
|
+
&[data-v-e2c06e27]:hover:not(:disabled) {
|
|
5167
5170
|
color: var(--kds-color-text-and-icon-selected);
|
|
5168
5171
|
}
|
|
5169
5172
|
}
|
|
5170
5173
|
.kds-tab-bar-wrapper {
|
|
5171
|
-
&[data-v-
|
|
5174
|
+
&[data-v-e2c06e27] {
|
|
5172
5175
|
--focus-ring-space: calc(
|
|
5173
5176
|
var(--kds-core-border-width-l) + var(--kds-spacing-offset-focus)
|
|
5174
5177
|
); /* outline-width + outline-offset */
|
|
5178
|
+
--bottom-border-height: var(--kds-core-border-width-m);
|
|
5175
5179
|
|
|
5176
5180
|
position: relative;
|
|
5177
5181
|
display: flex;
|
|
5182
|
+
|
|
5183
|
+
/* Reserve the bottom border's own space instead of painting it over the last
|
|
5184
|
+
pixels of the row, so that trailing actions as tall as the tabs still keep
|
|
5185
|
+
their distance from it. */
|
|
5186
|
+
padding-bottom: var(--bottom-border-height);
|
|
5178
5187
|
overflow: visible;
|
|
5179
5188
|
}
|
|
5180
|
-
&[data-v-
|
|
5189
|
+
&[data-v-e2c06e27]::before {
|
|
5181
5190
|
position: absolute;
|
|
5182
5191
|
right: 0;
|
|
5183
5192
|
bottom: 0;
|
|
5184
5193
|
left: 0;
|
|
5185
|
-
height: var(--
|
|
5194
|
+
height: var(--bottom-border-height);
|
|
5186
5195
|
pointer-events: none;
|
|
5187
5196
|
content: "";
|
|
5188
5197
|
background: var(--kds-color-border-subtle);
|
|
5189
5198
|
}
|
|
5190
5199
|
}
|
|
5191
5200
|
.kds-tab-bar {
|
|
5192
|
-
&[data-v-
|
|
5201
|
+
&[data-v-e2c06e27] {
|
|
5193
5202
|
display: flex;
|
|
5194
5203
|
flex: 1;
|
|
5195
5204
|
flex-wrap: nowrap;
|
|
@@ -5200,45 +5209,45 @@ tbody[data-v-8ba92819]:has(.empty) {
|
|
|
5200
5209
|
scrollbar-width: none;
|
|
5201
5210
|
border-radius: var(--kds-border-radius-container-none);
|
|
5202
5211
|
}
|
|
5203
|
-
&[data-v-
|
|
5212
|
+
&[data-v-e2c06e27]::-webkit-scrollbar {
|
|
5204
5213
|
display: none;
|
|
5205
5214
|
}
|
|
5206
|
-
&:not(.kds-tab-bar-full-width) .kds-tab[data-v-
|
|
5215
|
+
&:not(.kds-tab-bar-full-width) .kds-tab[data-v-e2c06e27] {
|
|
5207
5216
|
flex: 0 1 auto;
|
|
5208
|
-
min-width: var(--
|
|
5217
|
+
min-width: var(--d94aefb8);
|
|
5209
5218
|
}
|
|
5210
|
-
&.kds-tab-bar-large .kds-tab-label[data-v-
|
|
5219
|
+
&.kds-tab-bar-large .kds-tab-label[data-v-e2c06e27] {
|
|
5211
5220
|
font: var(--kds-font-base-interactive-large-strong);
|
|
5212
5221
|
}
|
|
5213
|
-
&.kds-tab-bar-large .kds-tab-selected .kds-tab-label[data-v-
|
|
5222
|
+
&.kds-tab-bar-large .kds-tab-selected .kds-tab-label[data-v-e2c06e27] {
|
|
5214
5223
|
font: var(--kds-font-base-title-large);
|
|
5215
5224
|
}
|
|
5216
5225
|
&.kds-tab-bar-small,
|
|
5217
5226
|
&.kds-tab-bar-large {
|
|
5218
|
-
& .kds-tab-selected .kds-tab-icon[data-v-
|
|
5227
|
+
& .kds-tab-selected .kds-tab-icon[data-v-e2c06e27] {
|
|
5219
5228
|
color: var(--kds-color-text-and-icon-selected);
|
|
5220
5229
|
}
|
|
5221
5230
|
}
|
|
5222
|
-
&.kds-tab-bar-small .kds-tab[data-v-
|
|
5231
|
+
&.kds-tab-bar-small .kds-tab[data-v-e2c06e27] {
|
|
5223
5232
|
gap: var(--kds-spacing-container-0-37x);
|
|
5224
5233
|
height: var(--kds-dimension-component-height-1-75x);
|
|
5225
5234
|
padding: 0 var(--kds-spacing-container-0-5x);
|
|
5226
5235
|
}
|
|
5227
|
-
&.kds-tab-bar-large .kds-tab[data-v-
|
|
5236
|
+
&.kds-tab-bar-large .kds-tab[data-v-e2c06e27] {
|
|
5228
5237
|
gap: var(--kds-spacing-container-0-5x);
|
|
5229
5238
|
height: var(--kds-dimension-component-height-2-25x);
|
|
5230
5239
|
padding: 0 var(--kds-spacing-container-0-75x);
|
|
5231
5240
|
}
|
|
5232
|
-
&.kds-tab-bar-full-width .kds-tab[data-v-
|
|
5241
|
+
&.kds-tab-bar-full-width .kds-tab[data-v-e2c06e27] {
|
|
5233
5242
|
flex: 1;
|
|
5234
5243
|
justify-content: center;
|
|
5235
5244
|
width: 100%;
|
|
5236
5245
|
}
|
|
5237
5246
|
}
|
|
5238
|
-
.kds-tab-bar-trailing[data-v-
|
|
5247
|
+
.kds-tab-bar-trailing[data-v-e2c06e27] {
|
|
5239
5248
|
display: flex;
|
|
5240
5249
|
flex-shrink: 0;
|
|
5241
|
-
gap: var(--kds-spacing-container-
|
|
5250
|
+
gap: var(--kds-spacing-container-0-25x);
|
|
5242
5251
|
align-items: center;
|
|
5243
5252
|
padding-right: var(--kds-spacing-container-0-25x);
|
|
5244
5253
|
padding-left: var(--kds-spacing-container-1x);
|
package/dist/index.js
CHANGED
|
@@ -35677,7 +35677,7 @@ var KdsTabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
35677
35677
|
}),
|
|
35678
35678
|
emits: ["update:modelValue"],
|
|
35679
35679
|
setup(__props) {
|
|
35680
|
-
useCssVars((_ctx) => ({ "
|
|
35680
|
+
useCssVars((_ctx) => ({ "d94aefb8": unref(minTabWidthCss) }));
|
|
35681
35681
|
const props = createPropsRestProxy(__props, [
|
|
35682
35682
|
"size",
|
|
35683
35683
|
"fullWidth",
|
|
@@ -35816,7 +35816,7 @@ var KdsTabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
35816
35816
|
}), 128))], 2), _ctx.$slots["trailing-actions"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "trailing-actions", { activeTab: modelValue.value }, void 0, true)])) : createCommentVNode("", true)]);
|
|
35817
35817
|
};
|
|
35818
35818
|
}
|
|
35819
|
-
}), [["__scopeId", "data-v-
|
|
35819
|
+
}), [["__scopeId", "data-v-e2c06e27"]]);
|
|
35820
35820
|
//#endregion
|
|
35821
35821
|
//#region src/layouts/panels/TabPanel/KdsTabPanel.vue?vue&type=script&setup=true&lang.ts
|
|
35822
35822
|
var _hoisted_1$2 = { class: "kds-tab-panel" };
|