@knime/kds-components 2.3.0 → 2.4.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/dist/index.js CHANGED
@@ -4569,6 +4569,182 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
4569
4569
 
4570
4570
  const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-a8563140"]]);
4571
4571
 
4572
+ /**
4573
+ * Do not edit directly, this file was auto-generated
4574
+ * from the design token sources in src/tokens.
4575
+ */
4576
+ const borderRadius = {
4577
+ container: {
4578
+ "0.12x": {
4579
+ css: {
4580
+ variable: "var(--kds-border-radius-container-0-12x)",
4581
+ },
4582
+ },
4583
+ "0.31x": {
4584
+ css: {
4585
+ variable: "var(--kds-border-radius-container-0-31x)",
4586
+ },
4587
+ }},
4588
+ };
4589
+
4590
+ /**
4591
+ * Do not edit directly, this file was auto-generated
4592
+ * from the design token sources in src/tokens.
4593
+ */
4594
+ const color$1 = {
4595
+ background: {
4596
+ selected: {
4597
+ initial: {
4598
+ css: {
4599
+ variable: "var(--kds-color-background-selected-initial)",
4600
+ },
4601
+ },
4602
+ hover: {
4603
+ css: {
4604
+ variable: "var(--kds-color-background-selected-hover)",
4605
+ },
4606
+ }},
4607
+ "selected-bold": {
4608
+ initial: {
4609
+ css: {
4610
+ variable: "var(--kds-color-background-selected-bold-initial)",
4611
+ },
4612
+ }}},
4613
+ "text-and-icon": {
4614
+ neutral: {
4615
+ css: {
4616
+ variable: "var(--kds-color-text-and-icon-neutral)",
4617
+ },
4618
+ },
4619
+ selected: {
4620
+ css: {
4621
+ variable: "var(--kds-color-text-and-icon-selected)",
4622
+ },
4623
+ }},
4624
+ "nodes-and-variables": {
4625
+ manipulator: {
4626
+ css: {
4627
+ variable: "var(--kds-color-nodes-and-variables-manipulator)",
4628
+ },
4629
+ },
4630
+ predictor: {
4631
+ css: {
4632
+ variable: "var(--kds-color-nodes-and-variables-predictor)",
4633
+ },
4634
+ },
4635
+ source: {
4636
+ css: {
4637
+ variable: "var(--kds-color-nodes-and-variables-source)",
4638
+ },
4639
+ },
4640
+ visualizer: {
4641
+ css: {
4642
+ variable: "var(--kds-color-nodes-and-variables-visualizer)",
4643
+ },
4644
+ },
4645
+ learner: {
4646
+ css: {
4647
+ variable: "var(--kds-color-nodes-and-variables-learner)",
4648
+ },
4649
+ },
4650
+ sink: {
4651
+ css: {
4652
+ variable: "var(--kds-color-nodes-and-variables-sink)",
4653
+ },
4654
+ },
4655
+ other: {
4656
+ css: {
4657
+ variable: "var(--kds-color-nodes-and-variables-other)",
4658
+ },
4659
+ },
4660
+ component: {
4661
+ css: {
4662
+ variable: "var(--kds-color-nodes-and-variables-component)",
4663
+ },
4664
+ }}};
4665
+
4666
+ /**
4667
+ * Do not edit directly, this file was auto-generated
4668
+ * from the design token sources in src/tokens.
4669
+ */
4670
+ const dimension = {
4671
+ component: {
4672
+ height: {
4673
+ "1.25x": {
4674
+ css: {
4675
+ variable: "var(--kds-dimension-component-height-1-25x)",
4676
+ },
4677
+ },
4678
+ "1.5x": {
4679
+ value: 24},
4680
+ "2.25x": {
4681
+ value: 36},
4682
+ "12.5x": {
4683
+ value: 200},
4684
+ "20x": {
4685
+ value: 320}},
4686
+ width: {
4687
+ "0.125x": {
4688
+ css: {
4689
+ variable: "var(--kds-dimension-component-width-0-125x)",
4690
+ },
4691
+ },
4692
+ "4x": {
4693
+ value: 64,
4694
+ css: {
4695
+ variable: "var(--kds-dimension-component-width-4x)",
4696
+ },
4697
+ }},
4698
+ }};
4699
+
4700
+ /**
4701
+ * Do not edit directly, this file was auto-generated
4702
+ * from the design token sources in src/tokens.
4703
+ */
4704
+ const elevation = {
4705
+ level: {
4706
+ "1": {
4707
+ css: {
4708
+ variable: "var(--kds-elevation-level-1)",
4709
+ },
4710
+ }},
4711
+ };
4712
+
4713
+ /**
4714
+ * Do not edit directly, this file was auto-generated
4715
+ * from the design token sources in src/tokens.
4716
+ */
4717
+ const font = {
4718
+ base: {
4719
+ title: {
4720
+ small: {
4721
+ css: {
4722
+ variable: "var(--kds-font-base-title-small)",
4723
+ },
4724
+ }}}};
4725
+
4726
+ /**
4727
+ * Do not edit directly, this file was auto-generated
4728
+ * from the design token sources in src/tokens.
4729
+ */
4730
+ const spacing = {
4731
+ container: {
4732
+ "0.10x": {
4733
+ value: 1},
4734
+ "0.12x": {
4735
+ css: { variable: "var(--kds-spacing-container-0-12x)" },
4736
+ },
4737
+ "0.25x": {
4738
+ value: 4,
4739
+ css: { variable: "var(--kds-spacing-container-0-25x)" },
4740
+ },
4741
+ "0.75x": {
4742
+ css: { variable: "var(--kds-spacing-container-0-75x)" },
4743
+ },
4744
+ "1x": {
4745
+ css: { variable: "var(--kds-spacing-container-1x)" },
4746
+ }}};
4747
+
4572
4748
  const kdsColorSwatchType = {
4573
4749
  COMPONENT: "component",
4574
4750
  LEARNER: "learner",
@@ -4603,15 +4779,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
4603
4779
  },
4604
4780
  setup(__props) {
4605
4781
  const props = createPropsRestProxy(__props, ["size"]);
4782
+ const nodeColors = color$1["nodes-and-variables"];
4606
4783
  const typeToTokenColor = {
4607
- component: "var(--kds-color-nodes-and-variables-component)",
4608
- learner: "var(--kds-color-nodes-and-variables-learner)",
4609
- manipulator: "var(--kds-color-nodes-and-variables-manipulator)",
4610
- predictor: "var(--kds-color-nodes-and-variables-predictor)",
4611
- sink: "var(--kds-color-nodes-and-variables-sink)",
4612
- source: "var(--kds-color-nodes-and-variables-source)",
4613
- visualizer: "var(--kds-color-nodes-and-variables-visualizer)",
4614
- other: "var(--kds-color-nodes-and-variables-other)"
4784
+ component: nodeColors.component.css.variable,
4785
+ learner: nodeColors.learner.css.variable,
4786
+ manipulator: nodeColors.manipulator.css.variable,
4787
+ predictor: nodeColors.predictor.css.variable,
4788
+ sink: nodeColors.sink.css.variable,
4789
+ source: nodeColors.source.css.variable,
4790
+ visualizer: nodeColors.visualizer.css.variable,
4791
+ other: nodeColors.other.css.variable
4615
4792
  };
4616
4793
  const isKdsColorSwatchType = (value) => Object.hasOwn(typeToTokenColor, value);
4617
4794
  const isTransparentAlphaHexColor = (value) => {
@@ -4676,7 +4853,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
4676
4853
  }
4677
4854
  });
4678
4855
 
4679
- const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-3787538b"]]);
4856
+ const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-8c817f3d"]]);
4680
4857
 
4681
4858
  const kdsKeyboardShortcutSize = {
4682
4859
  SMALL: "small",
@@ -7058,13 +7235,6 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7058
7235
  }
7059
7236
  });
7060
7237
 
7061
- const kdsDimensionComponentHeight12p5x = 200;
7062
- const kdsDimensionComponentHeight1p5x = 24;
7063
- const kdsDimensionComponentHeight20x = 320;
7064
- const kdsDimensionComponentHeight2p25x = 36;
7065
- const kdsSpacingContainer0p10x = 1;
7066
- const kdsSpacingContainer0p25x = 4;
7067
-
7068
7238
  const defaultKeys = [
7069
7239
  "Tab",
7070
7240
  "ArrowUp",
@@ -14984,21 +15154,20 @@ function createScopedAnimate(options = {}) {
14984
15154
  const animate = createScopedAnimate();
14985
15155
 
14986
15156
  const STYLES = {
14987
- // TODO: KDS-873 use token references once they are available
14988
15157
  container: {
14989
- background: "var(--kds-color-background-selected-initial)",
14990
- color: "var(--kds-color-text-and-icon-selected)"},
15158
+ background: color$1.background.selected.initial.css.variable,
15159
+ color: color$1["text-and-icon"].selected.css.variable},
14991
15160
  badge: {
14992
- background: "var(--kds-color-background-selected-hover)",
14993
- color: "var(--kds-color-text-and-icon-neutral)",
14994
- font: "var(--kds-font-base-title-small)",
14995
- dimension: "var(--kds-dimension-component-height-1-25x)",
14996
- padding: "var(--kds-spacing-container-0-12x)"
15161
+ background: color$1.background.selected.hover.css.variable,
15162
+ color: color$1["text-and-icon"].neutral.css.variable,
15163
+ font: font.base.title.small.css.variable,
15164
+ dimension: dimension.component.height["1.25x"].css.variable,
15165
+ padding: spacing.container["0.12x"].css.variable
14997
15166
  },
14998
15167
  marker: {
14999
- background: "var(--kds-color-background-selected-bold-initial)",
15000
- width: "var(--kds-dimension-component-width-0-125x)",
15001
- borderRadius: "0 var(--kds-border-radius-container-0-12x) var(--kds-border-radius-container-0-12x) 0"
15168
+ background: color$1.background["selected-bold"].initial.css.variable,
15169
+ width: dimension.component.width["0.125x"].css.variable,
15170
+ borderRadius: `0 ${borderRadius.container["0.12x"].css.variable} ${borderRadius.container["0.12x"].css.variable} 0`
15002
15171
  }
15003
15172
  };
15004
15173
  const toKebabCase = (str) => {
@@ -15104,11 +15273,11 @@ const createGhostElement = ({
15104
15273
  display: "flex",
15105
15274
  justifyContent: "flex-start",
15106
15275
  alignItems: "center",
15107
- padding: "0 var(--kds-spacing-container-0-75x)",
15108
- gap: "var(--kds-spacing-container-0-25x)",
15109
- borderRadius: "var(--kds-border-radius-container-0-31x)",
15276
+ padding: `0 ${spacing.container["0.75x"].css.variable}`,
15277
+ gap: spacing.container["0.25x"].css.variable,
15278
+ borderRadius: borderRadius.container["0.31x"].css.variable,
15110
15279
  opacity: "1",
15111
- boxShadow: addShadow ? "var(--kds-elevation-level-1)" : "initial"
15280
+ boxShadow: addShadow ? elevation.level["1"].css.variable : "initial"
15112
15281
  };
15113
15282
  applyStyles(ghost, ghostStyles);
15114
15283
  const iconEl = createGhostIcon(target);
@@ -15526,13 +15695,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
15526
15695
  emits: /* @__PURE__ */ mergeModels(["update:selectedItemIds", "changeDirectory", "openFile", "moveItems", "dragend", "drag", "renameFile"], ["update:activeRenamedItemId"]),
15527
15696
  setup(__props, { emit: __emit }) {
15528
15697
  useCssVars((_ctx) => ({
15529
- "v3804660c": itemHeight.value + "px"
15698
+ "v32d29b82": itemHeight.value + "px"
15530
15699
  }));
15531
15700
  const props = __props;
15532
15701
  const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
15533
15702
  const emit = __emit;
15534
15703
  const itemHeight = computed(() => {
15535
- return props.size === "small" ? kdsDimensionComponentHeight1p5x : kdsDimensionComponentHeight2p25x;
15704
+ return props.size === "small" ? dimension.component.height["1.5x"].value : dimension.component.height["2.25x"].value;
15536
15705
  });
15537
15706
  const isDirectory = (item) => item.isDirectory;
15538
15707
  const changeDirectory = (pathId) => {
@@ -15984,7 +16153,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
15984
16153
  }
15985
16154
  });
15986
16155
 
15987
- const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-21935d10"]]);
16156
+ const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-1f832c3a"]]);
15988
16157
 
15989
16158
  const kdsFileExplorerSize = {
15990
16159
  SMALL: "small",
@@ -27254,7 +27423,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
27254
27423
  }),
27255
27424
  emits: /* @__PURE__ */ mergeModels(["doubleClickOnItem", "doubleClickShift", "keyArrowLeft", "keyArrowRight", "keyEnter"], ["update:modelValue"]),
27256
27425
  setup(__props, { expose: __expose, emit: __emit }) {
27257
- const OPTION_LINE_HEIGHT = kdsDimensionComponentHeight1p5x + kdsSpacingContainer0p10x;
27426
+ const OPTION_LINE_HEIGHT = dimension.component.height["1.5x"].value + spacing.container["0.10x"].value;
27427
+ const DEFAULT_HEIGHT = dimension.component.height["20x"].value;
27428
+ const MIN_HEIGHT = dimension.component.height["12.5x"].value;
27258
27429
  const PassThroughResizeContainer = defineComponent({
27259
27430
  inheritAttrs: false,
27260
27431
  setup(_, { slots }) {
@@ -27397,8 +27568,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
27397
27568
  }, {
27398
27569
  default: withCtx((slotProps) => [
27399
27570
  (openBlock(), createBlock(resolveDynamicComponent(__props.useResizeHandle ? KdsResizeContainer : unref(PassThroughResizeContainer)), {
27400
- height: unref(kdsDimensionComponentHeight20x),
27401
- "min-height": unref(kdsDimensionComponentHeight12p5x)
27571
+ height: unref(DEFAULT_HEIGHT),
27572
+ "min-height": unref(MIN_HEIGHT)
27402
27573
  }, {
27403
27574
  default: withCtx(({ contentStyle }) => [
27404
27575
  createElementVNode("div", {
@@ -27550,7 +27721,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
27550
27721
  }
27551
27722
  });
27552
27723
 
27553
- const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e364524f"]]);
27724
+ const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-a4b277b7"]]);
27554
27725
 
27555
27726
  const _hoisted_1$m = { class: "kds-list-column" };
27556
27727
  const _hoisted_2$a = { class: "kds-list-header" };
@@ -27586,6 +27757,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
27586
27757
  }),
27587
27758
  emits: ["update:modelValue"],
27588
27759
  setup(__props) {
27760
+ const LIST_HEIGHT = dimension.component.height["12.5x"].value;
27761
+ const HANDLE_GAP = `${spacing.container["0.25x"].value * 2 + dimension.component.height["1.5x"].value}px`;
27589
27762
  const props = createPropsRestProxy(__props, ["disabled", "error", "searchTerm", "excludeLabel", "includeLabel", "unknownValuesText", "loading"]);
27590
27763
  const modelValue = useModel(__props, "modelValue");
27591
27764
  const effectiveDisabled = computed(() => __props.disabled || __props.loading);
@@ -27733,9 +27906,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
27733
27906
  return (_ctx, _cache) => {
27734
27907
  return openBlock(), createBlock(unref(KdsResizeContainer), {
27735
27908
  "number-of-handles": 2,
27736
- height: unref(kdsDimensionComponentHeight12p5x),
27737
- "min-height": unref(kdsDimensionComponentHeight12p5x),
27738
- "handle-gap": `${unref(kdsSpacingContainer0p25x) * 2 + unref(kdsDimensionComponentHeight1p5x)}px`
27909
+ height: unref(LIST_HEIGHT),
27910
+ "min-height": unref(LIST_HEIGHT),
27911
+ "handle-gap": HANDLE_GAP
27739
27912
  }, {
27740
27913
  default: withCtx(({ contentStyle }) => [
27741
27914
  createElementVNode("div", {
@@ -27833,12 +28006,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
27833
28006
  ], 4)
27834
28007
  ]),
27835
28008
  _: 1
27836
- }, 8, ["height", "min-height", "handle-gap"]);
28009
+ }, 8, ["height", "min-height"]);
27837
28010
  };
27838
28011
  }
27839
28012
  });
27840
28013
 
27841
- const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-a145b7dc"]]);
28014
+ const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7d720401"]]);
27842
28015
 
27843
28016
  const kdsTwinListSearchMode = {
27844
28017
  MANUAL: "manual",
@@ -29261,16 +29434,7 @@ const useTabBarAdaptiveLayout = ({
29261
29434
  if (fullWidth?.value || !minTabWidth) {
29262
29435
  return;
29263
29436
  }
29264
- const el = containerEl.value;
29265
- if (!el) {
29266
- return;
29267
- }
29268
- const tokenPx = Number.parseFloat(
29269
- getComputedStyle(el).getPropertyValue(minTabWidth)
29270
- );
29271
- if (Number.isNaN(tokenPx) || tokenPx <= 0) {
29272
- return;
29273
- }
29437
+ const tokenPx = minTabWidth;
29274
29438
  const entries = [...itemEls.value.entries()];
29275
29439
  const tabsByKey = new Map(tabs.value.map((tab) => [tab.value, tab]));
29276
29440
  for (const [key, tabEl] of entries) {
@@ -29315,8 +29479,7 @@ const useTabBarAdaptiveLayout = ({
29315
29479
  );
29316
29480
  return {
29317
29481
  shouldHideIcons,
29318
- setItemEl,
29319
- minTabWidth
29482
+ setItemEl
29320
29483
  };
29321
29484
  };
29322
29485
 
@@ -29327,7 +29490,6 @@ const _hoisted_4$4 = {
29327
29490
  key: 1,
29328
29491
  class: "kds-tab-indicator"
29329
29492
  };
29330
- const MIN_TAB_WIDTH_TOKEN = "--kds-dimension-component-width-4x";
29331
29493
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
29332
29494
  __name: "KdsTabBar",
29333
29495
  props: /* @__PURE__ */ mergeModels({
@@ -29342,7 +29504,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
29342
29504
  emits: ["update:modelValue"],
29343
29505
  setup(__props) {
29344
29506
  useCssVars((_ctx) => ({
29345
- "ef656a9a": minTabWidthCss
29507
+ "v543b9540": unref(minTabWidthCss)
29346
29508
  }));
29347
29509
  const props = createPropsRestProxy(__props, ["size", "fullWidth", "disabled"]);
29348
29510
  const modelValue = useModel(__props, "modelValue");
@@ -29394,14 +29556,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
29394
29556
  "availableWidthContainer"
29395
29557
  );
29396
29558
  const { width } = useElementSize(availableWidthContainer);
29397
- const { shouldHideIcons, setItemEl, minTabWidth } = useTabBarAdaptiveLayout({
29559
+ const MIN_TAB_WIDTH = dimension.component.width["4x"];
29560
+ const { shouldHideIcons, setItemEl } = useTabBarAdaptiveLayout({
29398
29561
  width,
29399
29562
  tabs: toRef(props, "tabs"),
29400
29563
  containerEl: availableWidthContainer,
29401
29564
  fullWidth: toRef(() => __props.fullWidth),
29402
- minTabWidth: MIN_TAB_WIDTH_TOKEN
29565
+ minTabWidth: MIN_TAB_WIDTH.value
29403
29566
  });
29404
- const minTabWidthCss = `var(${minTabWidth})`;
29567
+ const minTabWidthCss = MIN_TAB_WIDTH.css.variable;
29405
29568
  const tabBarClass = computed(() => ({
29406
29569
  "kds-tab-bar": true,
29407
29570
  [`kds-tab-bar-${__props.size}`]: true,
@@ -29499,7 +29662,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
29499
29662
  }
29500
29663
  });
29501
29664
 
29502
- const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-19c0b80b"]]);
29665
+ const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-623fd1c1"]]);
29503
29666
 
29504
29667
  const kdsTabBarSize = {
29505
29668
  SMALL: "small",
@@ -29540,11 +29703,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
29540
29703
  variant: { default: "text" },
29541
29704
  loading: { type: Boolean, default: true },
29542
29705
  repeat: { default: 1 },
29543
- repeatGap: { default: "var(--kds-spacing-container-1x)" }
29706
+ repeatGap: { default: () => spacing.container["1x"].css.variable }
29544
29707
  },
29545
29708
  setup(__props) {
29546
29709
  useCssVars((_ctx) => ({
29547
- "be999f28": _ctx.repeatGap
29710
+ "cbf61a88": _ctx.repeatGap
29548
29711
  }));
29549
29712
  return (_ctx, _cache) => {
29550
29713
  return __props.loading ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, { class: "kds-loading-skeleton" }), [
@@ -29601,7 +29764,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
29601
29764
  }
29602
29765
  });
29603
29766
 
29604
- const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-77702e5b"]]);
29767
+ const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-aac9483b"]]);
29605
29768
 
29606
29769
  const loadingSkeletonItemShape = {
29607
29770
  TEXT: "text",
@@ -29645,7 +29808,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
29645
29808
  emits: ["click", "trailingButtonClick"],
29646
29809
  setup(__props, { emit: __emit }) {
29647
29810
  useCssVars((_ctx) => ({
29648
- "v73a3d886": paddingRight.value
29811
+ "bcee8696": paddingRight.value
29649
29812
  }));
29650
29813
  const props = __props;
29651
29814
  const emit = __emit;
@@ -29674,8 +29837,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
29674
29837
  useResizeObserver(trailingItemsEl, ([entry]) => {
29675
29838
  trailingItemsWidth.value = entry.contentRect.width;
29676
29839
  });
29840
+ const NAV_ITEM_PADDING = spacing.container["0.75x"].css.variable;
29677
29841
  const paddingRight = computed(
29678
- () => hasTrailingItems.value ? `calc(${trailingItemsWidth.value}px + 2 * var(--kds-spacing-container-0-75x))` : "var(--kds-spacing-container-0-75x)"
29842
+ () => hasTrailingItems.value ? `calc(${trailingItemsWidth.value}px + 2 * ${NAV_ITEM_PADDING})` : NAV_ITEM_PADDING
29679
29843
  );
29680
29844
  return (_ctx, _cache) => {
29681
29845
  return openBlock(), createElementBlock("div", {
@@ -29730,7 +29894,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
29730
29894
  }
29731
29895
  });
29732
29896
 
29733
- const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-14836519"]]);
29897
+ const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-80531263"]]);
29734
29898
 
29735
29899
  const _hoisted_1$7 = ["aria-label"];
29736
29900
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -30353,7 +30517,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30353
30517
  },
30354
30518
  emits: ["selectChange", "expandChange", "focusChange", "keydown", "leafDblClick", "leafDragStart", "leafDragEnd"],
30355
30519
  setup(__props, { expose: __expose, emit: __emit }) {
30356
- const VIRTUAL_HEIGHT = kdsDimensionComponentHeight1p5x;
30520
+ const VIRTUAL_HEIGHT = dimension.component.height["1.5x"].value;
30357
30521
  const emit = __emit;
30358
30522
  const flattenTreeData = ref([]);
30359
30523
  const key2TreeNode = ref({});