@knime/kds-components 0.6.1 → 0.6.3

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
@@ -1,5 +1,5 @@
1
- import { shallowRef, watch, defineComponent, toRef, createBlock, createElementBlock, unref, openBlock, resolveDynamicComponent, normalizeClass, computed, withCtx, renderSlot, createCommentVNode, toDisplayString, mergeProps, mergeDefaults, useCssVars, Fragment, createElementVNode, createVNode, useTemplateRef, nextTick, ref, withModifiers, mergeModels, useModel, useId, createSlots, renderList, normalizeProps, guardReactiveProps, h, useSlots, getCurrentInstance, normalizeStyle, onBeforeUpdate } from 'vue';
2
- import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useElementSize } from '@vueuse/core';
1
+ import { shallowRef, watch, defineComponent, toRef, createBlock, createElementBlock, unref, openBlock, resolveDynamicComponent, normalizeClass, computed, withCtx, renderSlot, createCommentVNode, toDisplayString, mergeProps, h, useSlots, getCurrentInstance, createElementVNode, mergeDefaults, useCssVars, Fragment, createVNode, useTemplateRef, nextTick, ref, withModifiers, mergeModels, useModel, useId, createSlots, renderList, normalizeProps, guardReactiveProps, normalizeStyle, onBeforeUpdate } from 'vue';
2
+ import { isDefined, useLocalStorage, useDark, usePreferredDark, useResizeObserver, useElementSize } from '@vueuse/core';
3
3
 
4
4
  import './index.css';const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
5
5
  const v = glob$1[path$13];
@@ -35,7 +35,7 @@ const useIcon = ({
35
35
  return iconComponent;
36
36
  };
37
37
 
38
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
38
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
39
39
  __name: "KdsIcon",
40
40
  props: {
41
41
  name: {},
@@ -68,7 +68,7 @@ const _export_sfc = (sfc, props) => {
68
68
  return target;
69
69
  };
70
70
 
71
- const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-d965b88c"]]);
71
+ const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-d965b88c"]]);
72
72
 
73
73
  const ID_TO_ICON_MAP = {
74
74
  // Flow Variables
@@ -214,8 +214,8 @@ const typeIconNames = [
214
214
  "xml-datatype"
215
215
  ];
216
216
 
217
- const _hoisted_1$g = ["title"];
218
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
217
+ const _hoisted_1$h = ["title"];
218
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
219
219
  __name: "KdsDataType",
220
220
  props: {
221
221
  iconName: { default: "unknown-datatype" },
@@ -255,18 +255,18 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
255
255
  "aria-hidden": "true",
256
256
  focusable: "false"
257
257
  }, null, 8, ["class"]))
258
- ], 10, _hoisted_1$g);
258
+ ], 10, _hoisted_1$h);
259
259
  };
260
260
  }
261
261
  });
262
262
 
263
- const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-f7d93fdf"]]);
263
+ const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-f7d93fdf"]]);
264
264
 
265
- const _hoisted_1$f = {
265
+ const _hoisted_1$g = {
266
266
  key: 0,
267
267
  class: "label"
268
268
  };
269
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
269
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
270
270
  __name: "BaseButton",
271
271
  props: {
272
272
  size: { default: "medium" },
@@ -325,7 +325,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
325
325
  size: iconSize.value
326
326
  }, null, 8, ["name", "size"])) : createCommentVNode("", true)
327
327
  ], true),
328
- props.label ? (openBlock(), createElementBlock("span", _hoisted_1$f, toDisplayString(props.label), 1)) : createCommentVNode("", true),
328
+ props.label ? (openBlock(), createElementBlock("span", _hoisted_1$g, toDisplayString(props.label), 1)) : createCommentVNode("", true),
329
329
  props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
330
330
  key: 1,
331
331
  name: props.trailingIcon,
@@ -338,9 +338,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
338
338
  }
339
339
  });
340
340
 
341
- const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ab4824cd"]]);
341
+ const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-ab4824cd"]]);
342
342
 
343
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
343
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
344
344
  __name: "KdsButton",
345
345
  props: {
346
346
  size: {},
@@ -365,6 +365,165 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
365
365
  }
366
366
  });
367
367
 
368
+ const getAppInstance = () => {
369
+ const currentInstance = getCurrentInstance();
370
+ return currentInstance?.appContext.app;
371
+ };
372
+ const resolveNuxtLinkComponent = () => {
373
+ const app = getAppInstance();
374
+ const nuxtLinkComponent = app?.component("NuxtLink");
375
+ if (nuxtLinkComponent) {
376
+ return nuxtLinkComponent;
377
+ }
378
+ const routerLinkComponent = app?.component("RouterLink");
379
+ if (routerLinkComponent) {
380
+ return routerLinkComponent;
381
+ }
382
+ const fallbackComponent = defineComponent({
383
+ props: {
384
+ to: {
385
+ type: String,
386
+ default: ""
387
+ }
388
+ },
389
+ render() {
390
+ return h("a", { href: this.to }, [useSlots().default?.()]);
391
+ }
392
+ });
393
+ return fallbackComponent;
394
+ };
395
+
396
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
397
+ __name: "KdsLinkButton",
398
+ props: {
399
+ size: {},
400
+ disabled: { type: Boolean },
401
+ title: {},
402
+ variant: { default: "filled" },
403
+ label: {},
404
+ leadingIcon: {},
405
+ trailingIcon: {},
406
+ ariaLabel: {},
407
+ destructive: { type: Boolean },
408
+ to: {},
409
+ download: { type: Boolean, default: void 0 },
410
+ target: { default: null },
411
+ rel: { default: null }
412
+ },
413
+ emits: ["click"],
414
+ setup(__props, { emit: __emit }) {
415
+ const props = __props;
416
+ const component = computed(() => {
417
+ if (props.disabled) {
418
+ return "button";
419
+ }
420
+ return resolveNuxtLinkComponent();
421
+ });
422
+ const emit = __emit;
423
+ return (_ctx, _cache) => {
424
+ return openBlock(), createBlock(BaseButton, mergeProps(props, {
425
+ component: component.value,
426
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
427
+ }), null, 16, ["component"]);
428
+ };
429
+ }
430
+ });
431
+
432
+ function isDefinedAndNotEmpty(obj, field) {
433
+ return isDefined(obj[field]) && obj[field] !== "";
434
+ }
435
+
436
+ const _hoisted_1$f = { class: "kds-empty-state" };
437
+ const _hoisted_2$6 = { class: "kds-empty-state-headline" };
438
+ const _hoisted_3$4 = {
439
+ key: 0,
440
+ class: "kds-empty-state-description"
441
+ };
442
+ const _hoisted_4$3 = {
443
+ key: 1,
444
+ class: "kds-empty-state-action"
445
+ };
446
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
447
+ __name: "KdsEmptyState",
448
+ props: {
449
+ headline: {},
450
+ description: {},
451
+ buttonLabel: {},
452
+ buttonLeadingIcon: {},
453
+ buttonTrailingIcon: {},
454
+ buttonAriaLabel: {},
455
+ buttonSize: {},
456
+ buttonDisabled: { type: Boolean },
457
+ buttonTitle: {},
458
+ buttonVariant: {},
459
+ buttonDestructive: { type: Boolean },
460
+ buttonTo: {},
461
+ buttonDownload: { type: Boolean },
462
+ buttonTarget: {},
463
+ buttonRel: {}
464
+ },
465
+ emits: ["buttonClick"],
466
+ setup(__props, { emit: __emit }) {
467
+ const props = __props;
468
+ const emit = __emit;
469
+ const hasButton = computed(() => {
470
+ return isDefinedAndNotEmpty(props, "buttonLabel") || isDefinedAndNotEmpty(props, "buttonLeadingIcon");
471
+ });
472
+ const buttonType = computed(() => {
473
+ if (isDefinedAndNotEmpty(props, "buttonTo")) {
474
+ return _sfc_main$i;
475
+ }
476
+ return _sfc_main$j;
477
+ });
478
+ const mapProps = (mappings) => {
479
+ return Object.fromEntries(
480
+ mappings.map(([targetKey, sourceKey]) => [targetKey, props[sourceKey]]).filter(([, value]) => value !== void 0)
481
+ );
482
+ };
483
+ const buttonProps = computed(() => {
484
+ if (!hasButton.value) {
485
+ return {};
486
+ }
487
+ const baseProps = mapProps([
488
+ ["label", "buttonLabel"],
489
+ ["leadingIcon", "buttonLeadingIcon"],
490
+ ["trailingIcon", "buttonTrailingIcon"],
491
+ ["ariaLabel", "buttonAriaLabel"],
492
+ ["disabled", "buttonDisabled"],
493
+ ["variant", "buttonVariant"],
494
+ ["size", "buttonSize"],
495
+ ["destructive", "buttonDestructive"],
496
+ ["title", "buttonTitle"]
497
+ ]);
498
+ if (buttonType.value !== _sfc_main$i) {
499
+ return baseProps;
500
+ }
501
+ return {
502
+ ...baseProps,
503
+ ...mapProps([
504
+ ["to", "buttonTo"],
505
+ ["target", "buttonTarget"],
506
+ ["rel", "buttonRel"],
507
+ ["download", "buttonDownload"]
508
+ ])
509
+ };
510
+ });
511
+ return (_ctx, _cache) => {
512
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
513
+ createElementVNode("p", _hoisted_2$6, toDisplayString(props.headline), 1),
514
+ props.description ? (openBlock(), createElementBlock("p", _hoisted_3$4, toDisplayString(props.description), 1)) : createCommentVNode("", true),
515
+ hasButton.value ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
516
+ (openBlock(), createBlock(resolveDynamicComponent(buttonType.value), mergeProps(buttonProps.value, {
517
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("buttonClick", $event))
518
+ }), null, 16))
519
+ ])) : createCommentVNode("", true)
520
+ ]);
521
+ };
522
+ }
523
+ });
524
+
525
+ const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-34b52d0e"]]);
526
+
368
527
  const modalLayoutPropsDefault = {
369
528
  title: "",
370
529
  variant: "padded",
@@ -386,7 +545,7 @@ const _hoisted_4$2 = {
386
545
  key: 0,
387
546
  class: "modal-footer"
388
547
  };
389
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
548
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
390
549
  ...{ inheritAttrs: false },
391
550
  __name: "KdsModalLayout",
392
551
  props: /* @__PURE__ */ mergeDefaults({
@@ -410,7 +569,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
410
569
  size: "medium"
411
570
  }, null, 8, ["name"])) : createCommentVNode("", true),
412
571
  createElementVNode("div", _hoisted_2$5, toDisplayString(props.title), 1),
413
- createVNode(_sfc_main$i, {
572
+ createVNode(_sfc_main$j, {
414
573
  "leading-icon": "x-close",
415
574
  variant: "transparent",
416
575
  size: "medium",
@@ -432,10 +591,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
432
591
  }
433
592
  });
434
593
 
435
- const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-583e34fe"]]);
594
+ const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-583e34fe"]]);
436
595
 
437
596
  const _hoisted_1$d = ["closedby"];
438
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
597
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
439
598
  __name: "KdsModal",
440
599
  props: /* @__PURE__ */ mergeDefaults({
441
600
  icon: {},
@@ -532,11 +691,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
532
691
  }
533
692
  });
534
693
 
535
- const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-6fc6d7dd"]]);
694
+ const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-6fc6d7dd"]]);
536
695
 
537
696
  const _hoisted_1$c = ["id"];
538
697
  const _hoisted_2$4 = { class: "subtext-text" };
539
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
698
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
540
699
  __name: "KdsSubText",
541
700
  props: {
542
701
  id: {},
@@ -567,7 +726,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
567
726
  }
568
727
  });
569
728
 
570
- const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-78af6eac"]]);
729
+ const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-78af6eac"]]);
571
730
 
572
731
  const _hoisted_1$b = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
573
732
  const _hoisted_2$3 = { class: "control" };
@@ -577,8 +736,11 @@ const _hoisted_3$2 = {
577
736
  };
578
737
  const _hoisted_4$1 = { class: "label" };
579
738
  const _hoisted_5$1 = ["id"];
580
- const _hoisted_6$1 = { class: "subtext-wrapper" };
581
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
739
+ const _hoisted_6$1 = {
740
+ key: 0,
741
+ class: "subtext-wrapper"
742
+ };
743
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
582
744
  __name: "BaseCheckbox",
583
745
  props: /* @__PURE__ */ mergeModels({
584
746
  disabled: { type: Boolean, default: false },
@@ -668,22 +830,22 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
668
830
  }, toDisplayString(props.helperText), 9, _hoisted_5$1)) : createCommentVNode("", true)
669
831
  ])) : createCommentVNode("", true)
670
832
  ], 10, _hoisted_1$b),
671
- createElementVNode("div", _hoisted_6$1, [
833
+ props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
672
834
  createVNode(KdsSubText, {
673
835
  id: unref(descriptionId),
674
836
  "sub-text": props.subText,
675
837
  "preserve-sub-text-space": props.preserveSubTextSpace,
676
838
  error: props.error
677
839
  }, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
678
- ])
840
+ ])) : createCommentVNode("", true)
679
841
  ]);
680
842
  };
681
843
  }
682
844
  });
683
845
 
684
- const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-593a7b0c"]]);
846
+ const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-65cb29d7"]]);
685
847
 
686
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
848
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
687
849
  __name: "KdsCheckbox",
688
850
  props: /* @__PURE__ */ mergeModels({
689
851
  disabled: { type: Boolean, default: false },
@@ -815,7 +977,7 @@ const _hoisted_3$1 = {
815
977
  key: 0,
816
978
  class: "ask-again"
817
979
  };
818
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
980
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
819
981
  __name: "KdsDynamicModalProvider",
820
982
  setup(__props) {
821
983
  const askAgain = ref(false);
@@ -871,7 +1033,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
871
1033
  unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$a, [
872
1034
  createElementVNode("div", _hoisted_2$2, toDisplayString(unref(config).value.message), 1),
873
1035
  unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
874
- createVNode(_sfc_main$d, {
1036
+ createVNode(_sfc_main$c, {
875
1037
  modelValue: askAgain.value,
876
1038
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
877
1039
  label: unref(config).value.doNotAskAgain.label,
@@ -886,7 +1048,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
886
1048
  name: "footer",
887
1049
  fn: withCtx(() => [
888
1050
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
889
- return openBlock(), createBlock(_sfc_main$i, {
1051
+ return openBlock(), createBlock(_sfc_main$j, {
890
1052
  key: index,
891
1053
  destructive: button.destructive,
892
1054
  autofocus: button.autofocus,
@@ -916,10 +1078,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
916
1078
  }
917
1079
  });
918
1080
 
919
- const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-c0769cfd"]]);
1081
+ const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c0769cfd"]]);
920
1082
 
921
1083
  const _hoisted_1$9 = ["data-style"];
922
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
1084
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
923
1085
  __name: "KdsLoadingSpinner",
924
1086
  props: {
925
1087
  size: { default: "medium" },
@@ -949,10 +1111,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
949
1111
  }
950
1112
  });
951
1113
 
952
- const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-13c830ad"]]);
1114
+ const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-13c830ad"]]);
953
1115
 
954
1116
  const _hoisted_1$8 = ["disabled", "title", "aria-label", "aria-pressed"];
955
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
1117
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
956
1118
  __name: "KdsVariableToggleButton",
957
1119
  props: /* @__PURE__ */ mergeModels({
958
1120
  disabled: { type: Boolean, default: false },
@@ -1036,11 +1198,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1036
1198
  }
1037
1199
  });
1038
1200
 
1039
- const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-8b6f8b81"]]);
1201
+ const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-8b6f8b81"]]);
1040
1202
 
1041
1203
  const _hoisted_1$7 = ["disabled", "aria-pressed"];
1042
1204
  const TITLE = "Click for more information";
1043
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1205
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1044
1206
  __name: "KdsInfoToggleButton",
1045
1207
  props: /* @__PURE__ */ mergeModels({
1046
1208
  disabled: { type: Boolean, default: false },
@@ -1077,71 +1239,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1077
1239
  }
1078
1240
  });
1079
1241
 
1080
- const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-24b40e36"]]);
1081
-
1082
- const getAppInstance = () => {
1083
- const currentInstance = getCurrentInstance();
1084
- return currentInstance?.appContext.app;
1085
- };
1086
- const resolveNuxtLinkComponent = () => {
1087
- const app = getAppInstance();
1088
- const nuxtLinkComponent = app?.component("NuxtLink");
1089
- if (nuxtLinkComponent) {
1090
- return nuxtLinkComponent;
1091
- }
1092
- const routerLinkComponent = app?.component("RouterLink");
1093
- if (routerLinkComponent) {
1094
- return routerLinkComponent;
1095
- }
1096
- const fallbackComponent = defineComponent({
1097
- props: {
1098
- to: {
1099
- type: String,
1100
- default: ""
1101
- }
1102
- },
1103
- render() {
1104
- return h("a", { href: this.to }, [useSlots().default?.()]);
1105
- }
1106
- });
1107
- return fallbackComponent;
1108
- };
1109
-
1110
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1111
- __name: "KdsLinkButton",
1112
- props: {
1113
- size: {},
1114
- disabled: { type: Boolean },
1115
- title: {},
1116
- variant: { default: "filled" },
1117
- label: {},
1118
- leadingIcon: {},
1119
- trailingIcon: {},
1120
- ariaLabel: {},
1121
- destructive: { type: Boolean },
1122
- to: {},
1123
- download: { type: Boolean, default: void 0 },
1124
- target: { default: null },
1125
- rel: { default: null }
1126
- },
1127
- emits: ["click"],
1128
- setup(__props, { emit: __emit }) {
1129
- const props = __props;
1130
- const component = computed(() => {
1131
- if (props.disabled) {
1132
- return "button";
1133
- }
1134
- return resolveNuxtLinkComponent();
1135
- });
1136
- const emit = __emit;
1137
- return (_ctx, _cache) => {
1138
- return openBlock(), createBlock(BaseButton, mergeProps(props, {
1139
- component: component.value,
1140
- onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
1141
- }), null, 16, ["component"]);
1142
- };
1143
- }
1144
- });
1242
+ const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-24b40e36"]]);
1145
1243
 
1146
1244
  const _hoisted_1$6 = ["data-visible"];
1147
1245
  const _hoisted_2$1 = ["data-visible"];
@@ -1956,5 +2054,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1956
2054
 
1957
2055
  const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5da4485"]]);
1958
2056
 
1959
- export { _sfc_main$i as KdsButton, _sfc_main$d as KdsCheckbox, KdsCheckboxGroup, KdsDataType, KdsDynamicModalProvider, KdsIcon, KdsInfoToggleButton, KdsLabel, _sfc_main$8 as KdsLinkButton, KdsLoadingSpinner, KdsModal, KdsModalLayout, KdsProgressButton, KdsRadioButtonGroup, KdsSubText, _sfc_main$6 as KdsToggleButton, KdsValueSwitch, KdsVariableToggleButton, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
2057
+ export { _sfc_main$j as KdsButton, _sfc_main$c as KdsCheckbox, KdsCheckboxGroup, KdsDataType, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsLabel, _sfc_main$i as KdsLinkButton, KdsLoadingSpinner, KdsModal, KdsModalLayout, KdsProgressButton, KdsRadioButtonGroup, KdsSubText, _sfc_main$6 as KdsToggleButton, KdsValueSwitch, KdsVariableToggleButton, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
1960
2058
  //# sourceMappingURL=index.js.map