@knime/kds-components 0.15.0 → 0.16.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.
Files changed (46) hide show
  1. package/dist/accessories/Badge/KdsBadge.vue.d.ts +1 -1
  2. package/dist/accessories/Badge/KdsBadge.vue.d.ts.map +1 -1
  3. package/dist/accessories/Badge/types.d.ts +1 -1
  4. package/dist/accessories/Badge/types.d.ts.map +1 -1
  5. package/dist/accessories/InlineMessage/KdsInlineMessage.vue.d.ts +7 -0
  6. package/dist/accessories/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -0
  7. package/dist/accessories/InlineMessage/enums.d.ts +8 -0
  8. package/dist/accessories/InlineMessage/enums.d.ts.map +1 -0
  9. package/dist/accessories/InlineMessage/index.d.ts +4 -0
  10. package/dist/accessories/InlineMessage/index.d.ts.map +1 -0
  11. package/dist/accessories/InlineMessage/types.d.ts +11 -0
  12. package/dist/accessories/InlineMessage/types.d.ts.map +1 -0
  13. package/dist/accessories/index.d.ts +2 -0
  14. package/dist/accessories/index.d.ts.map +1 -1
  15. package/dist/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts +1 -0
  16. package/dist/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts.map +1 -1
  17. package/dist/forms/_helper/List/ListContainer/types.d.ts +18 -1
  18. package/dist/forms/_helper/List/ListContainer/types.d.ts.map +1 -1
  19. package/dist/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts +3 -0
  20. package/dist/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts.map +1 -0
  21. package/dist/forms/_helper/List/ListItemDivider/index.d.ts +2 -0
  22. package/dist/forms/_helper/List/ListItemDivider/index.d.ts.map +1 -0
  23. package/dist/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts +6 -0
  24. package/dist/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -0
  25. package/dist/forms/_helper/List/ListItemSectionTitle/index.d.ts +3 -0
  26. package/dist/forms/_helper/List/ListItemSectionTitle/index.d.ts.map +1 -0
  27. package/dist/forms/_helper/List/ListItemSectionTitle/types.d.ts +8 -0
  28. package/dist/forms/_helper/List/ListItemSectionTitle/types.d.ts.map +1 -0
  29. package/dist/forms/selects/Dropdown/DropdownContainer.vue.d.ts +2 -0
  30. package/dist/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -1
  31. package/dist/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -1
  32. package/dist/forms/selects/Dropdown/types.d.ts +4 -0
  33. package/dist/forms/selects/Dropdown/types.d.ts.map +1 -1
  34. package/dist/index.css +141 -48
  35. package/dist/index.js +373 -223
  36. package/dist/index.js.map +1 -1
  37. package/dist/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +1 -1
  38. package/dist/layouts/EmptyState/types.d.ts +1 -0
  39. package/dist/layouts/EmptyState/types.d.ts.map +1 -1
  40. package/dist/overlays/Modal/KdsModal.vue.d.ts +4 -4
  41. package/dist/overlays/Modal/KdsModalLayout.vue.d.ts +2 -2
  42. package/dist/overlays/Modal/enums.d.ts +4 -4
  43. package/dist/overlays/Modal/types.d.ts +3 -3
  44. package/dist/overlays/Modal/types.d.ts.map +1 -1
  45. package/dist/overlays/Modal/useKdsDynamicModal.d.ts +6 -6
  46. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, shallowRef, toRef, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeStyle, useTemplateRef, withCtx, renderSlot, mergeProps, h, useSlots, getCurrentInstance, useModel, mergeModels, createVNode, defineAsyncComponent, useId, Fragment, renderList, onBeforeUpdate, nextTick, watchEffect, withModifiers, normalizeProps, guardReactiveProps, withDirectives, vModelText, toHandlers, createTextVNode, useCssVars, mergeDefaults, createSlots } from 'vue';
1
+ import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, shallowRef, toRef, unref, createBlock, resolveDynamicComponent, createCommentVNode, normalizeStyle, useTemplateRef, createVNode, withCtx, renderSlot, mergeProps, h, useSlots, getCurrentInstance, useModel, mergeModels, defineAsyncComponent, useId, Fragment, renderList, onBeforeUpdate, nextTick, watchEffect, withModifiers, normalizeProps, guardReactiveProps, withDirectives, vModelText, toHandlers, createTextVNode, useCssVars, mergeDefaults, createSlots } from 'vue';
2
2
  import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, useElementSize } from '@vueuse/core';
3
3
 
4
4
  import './index.css';const kdsAvatarSize = {
@@ -9,14 +9,14 @@ import './index.css';const kdsAvatarSize = {
9
9
  };
10
10
  const kdsAvatarSizes = Object.values(kdsAvatarSize);
11
11
 
12
- const _hoisted_1$w = ["role", "title", "aria-hidden", "aria-label"];
13
- const _hoisted_2$f = ["src"];
14
- const _hoisted_3$9 = {
12
+ const _hoisted_1$z = ["role", "title", "aria-hidden", "aria-label"];
13
+ const _hoisted_2$h = ["src"];
14
+ const _hoisted_3$b = {
15
15
  key: 1,
16
16
  class: "kds-avatar-initials",
17
17
  "aria-hidden": "true"
18
18
  };
19
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
19
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
20
20
  __name: "KdsAvatar",
21
21
  props: {
22
22
  initials: {},
@@ -59,10 +59,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
59
59
  alt: "",
60
60
  "aria-hidden": "true",
61
61
  onError: onImageError
62
- }, null, 40, _hoisted_2$f)) : (openBlock(), createElementBlock("div", _hoisted_3$9, [
62
+ }, null, 40, _hoisted_2$h)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
63
63
  createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
64
64
  ]))
65
- ], 10, _hoisted_1$w);
65
+ ], 10, _hoisted_1$z);
66
66
  };
67
67
  }
68
68
  });
@@ -75,7 +75,7 @@ const _export_sfc = (sfc, props) => {
75
75
  return target;
76
76
  };
77
77
 
78
- const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-d6a313f1"]]);
78
+ const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-d6a313f1"]]);
79
79
 
80
80
  const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
81
81
  const v = glob$1[path$13];
@@ -111,7 +111,7 @@ const useIcon = ({
111
111
  return iconComponent;
112
112
  };
113
113
 
114
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
114
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
115
115
  __name: "KdsIcon",
116
116
  props: {
117
117
  name: {},
@@ -137,7 +137,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
137
137
  }
138
138
  });
139
139
 
140
- const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-4da5bf3e"]]);
140
+ const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-4da5bf3e"]]);
141
141
 
142
142
  const ID_TO_ICON_MAP = {
143
143
  // Flow Variables
@@ -463,8 +463,8 @@ const kdsDataTypeSize = {
463
463
  };
464
464
  const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
465
465
 
466
- const _hoisted_1$v = ["title"];
467
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
466
+ const _hoisted_1$y = ["title"];
467
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
468
468
  __name: "KdsDataType",
469
469
  props: {
470
470
  iconName: { default: "unknown-datatype" },
@@ -505,12 +505,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
505
505
  "aria-hidden": "true",
506
506
  focusable: "false"
507
507
  }, null, 8, ["class"]))
508
- ], 10, _hoisted_1$v);
508
+ ], 10, _hoisted_1$y);
509
509
  };
510
510
  }
511
511
  });
512
512
 
513
- const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-806087da"]]);
513
+ const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-806087da"]]);
514
514
 
515
515
  const kdsBadgeVariant = {
516
516
  NEUTRAL: "neutral",
@@ -527,14 +527,14 @@ const kdsBadgeSize = {
527
527
  };
528
528
  const kdsBadgeSizes = Object.values(kdsBadgeSize);
529
529
 
530
- const _hoisted_1$u = { class: "label-wrapper" };
531
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
530
+ const _hoisted_1$x = { class: "label-wrapper" };
531
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
532
532
  __name: "KdsBadge",
533
533
  props: {
534
534
  label: {},
535
535
  variant: { default: kdsBadgeVariant.NEUTRAL },
536
536
  size: { default: kdsBadgeSize.XSMALL },
537
- icon: { default: void 0 }
537
+ leadingIcon: { default: void 0 }
538
538
  },
539
539
  setup(__props) {
540
540
  const sizeToIconSize = {
@@ -545,18 +545,18 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
545
545
  return openBlock(), createElementBlock("span", {
546
546
  class: normalizeClass(["kds-badge", __props.size, __props.variant])
547
547
  }, [
548
- __props.icon ? (openBlock(), createBlock(unref(KdsIcon), {
548
+ __props.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
549
549
  key: 0,
550
- name: __props.icon,
550
+ name: __props.leadingIcon,
551
551
  size: sizeToIconSize[__props.size]
552
552
  }, null, 8, ["name", "size"])) : createCommentVNode("", true),
553
- createElementVNode("span", _hoisted_1$u, toDisplayString(__props.label), 1)
553
+ createElementVNode("span", _hoisted_1$x, toDisplayString(__props.label), 1)
554
554
  ], 2);
555
555
  };
556
556
  }
557
557
  });
558
558
 
559
- const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5c6c74a8"]]);
559
+ const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-0dc42bfc"]]);
560
560
 
561
561
  const kdsColorSwatchType = {
562
562
  LEARNER: "learner",
@@ -575,8 +575,8 @@ const kdsColorSwatchSize = {
575
575
  };
576
576
  const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
577
577
 
578
- const _hoisted_1$t = ["role", "title", "aria-hidden", "aria-label"];
579
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
578
+ const _hoisted_1$w = ["role", "title", "aria-hidden", "aria-label"];
579
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
580
580
  __name: "KdsColorSwatch",
581
581
  props: {
582
582
  color: {},
@@ -611,12 +611,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
611
611
  style: normalizeStyle({ backgroundColor: backgroundColor.value }),
612
612
  "aria-hidden": hasTitle.value ? void 0 : "true",
613
613
  "aria-label": hasTitle.value ? accessibleTitle.value : void 0
614
- }, null, 14, _hoisted_1$t);
614
+ }, null, 14, _hoisted_1$w);
615
615
  };
616
616
  }
617
617
  });
618
618
 
619
- const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-bdb3dd24"]]);
619
+ const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-bdb3dd24"]]);
620
620
 
621
621
  const kdsDarkModeType = {
622
622
  LIGHT: "light",
@@ -736,9 +736,9 @@ function useKdsIsTruncated(elementRef) {
736
736
  return { isTruncated };
737
737
  }
738
738
 
739
- const _hoisted_1$s = ["title", "aria-label"];
740
- const _hoisted_2$e = ["title"];
741
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
739
+ const _hoisted_1$v = ["title", "aria-label"];
740
+ const _hoisted_2$g = ["title"];
741
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
742
742
  __name: "KdsLiveStatus",
743
743
  props: {
744
744
  status: { default: "red" },
@@ -767,13 +767,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
767
767
  ref: labelEl,
768
768
  class: "label",
769
769
  title: unref(isTruncated) ? props.label : void 0
770
- }, toDisplayString(props.label), 9, _hoisted_2$e)) : createCommentVNode("", true)
771
- ], 10, _hoisted_1$s);
770
+ }, toDisplayString(props.label), 9, _hoisted_2$g)) : createCommentVNode("", true)
771
+ ], 10, _hoisted_1$v);
772
772
  };
773
773
  }
774
774
  });
775
775
 
776
- const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4dec8e94"]]);
776
+ const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-4dec8e94"]]);
777
777
 
778
778
  const kdsLiveStatusStatus = {
779
779
  RED: "red",
@@ -789,8 +789,8 @@ const kdsLiveStatusSize = {
789
789
  };
790
790
  const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
791
791
 
792
- const _hoisted_1$r = ["data-style"];
793
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
792
+ const _hoisted_1$u = ["data-style"];
793
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
794
794
  __name: "KdsLoadingSpinner",
795
795
  props: {
796
796
  size: { default: "medium" },
@@ -815,12 +815,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
815
815
  cy: "60",
816
816
  r: "50"
817
817
  }, null, -1)
818
- ])], 10, _hoisted_1$r);
818
+ ])], 10, _hoisted_1$u);
819
819
  };
820
820
  }
821
821
  });
822
822
 
823
- const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-74bb7c3d"]]);
823
+ const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-74bb7c3d"]]);
824
824
 
825
825
  const kdsLoadingSpinnerVariant = {
826
826
  ON_PRIMARY: "onPrimary",
@@ -830,11 +830,73 @@ const kdsLoadingSpinnerVariants = Object.values(
830
830
  kdsLoadingSpinnerVariant
831
831
  );
832
832
 
833
- const _hoisted_1$q = {
833
+ const _hoisted_1$t = ["role"];
834
+ const _hoisted_2$f = { class: "header" };
835
+ const _hoisted_3$a = { class: "headline" };
836
+ const _hoisted_4$7 = {
837
+ key: 0,
838
+ class: "body"
839
+ };
840
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
841
+ __name: "KdsInlineMessage",
842
+ props: {
843
+ headline: {},
844
+ description: { default: void 0 },
845
+ variant: { default: "info" }
846
+ },
847
+ setup(__props) {
848
+ const props = __props;
849
+ const classes = computed(() => ["kds-inline-message", props.variant]);
850
+ const iconName = computed(() => {
851
+ switch (props.variant) {
852
+ case "success":
853
+ return "circle-success";
854
+ case "error":
855
+ return "circle-error";
856
+ case "warning":
857
+ return "warning";
858
+ case "info":
859
+ default:
860
+ return "circle-info";
861
+ }
862
+ });
863
+ const role = computed(
864
+ () => props.variant === "warning" || props.variant === "error" ? "alert" : "status"
865
+ );
866
+ return (_ctx, _cache) => {
867
+ return openBlock(), createElementBlock("div", {
868
+ class: normalizeClass(classes.value),
869
+ role: role.value
870
+ }, [
871
+ createElementVNode("div", _hoisted_2$f, [
872
+ createVNode(KdsIcon, {
873
+ class: "icon",
874
+ name: iconName.value,
875
+ size: "small"
876
+ }, null, 8, ["name"]),
877
+ createElementVNode("div", _hoisted_3$a, toDisplayString(props.headline), 1)
878
+ ]),
879
+ props.description ? (openBlock(), createElementBlock("div", _hoisted_4$7, toDisplayString(props.description), 1)) : createCommentVNode("", true)
880
+ ], 10, _hoisted_1$t);
881
+ };
882
+ }
883
+ });
884
+
885
+ const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-3d79be7c"]]);
886
+
887
+ const kdsInlineMessageVariant = {
888
+ ERROR: "error",
889
+ INFO: "info",
890
+ SUCCESS: "success",
891
+ WARNING: "warning"
892
+ };
893
+ const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
894
+
895
+ const _hoisted_1$s = {
834
896
  key: 0,
835
897
  class: "label"
836
898
  };
837
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
899
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
838
900
  __name: "BaseButton",
839
901
  props: {
840
902
  size: { default: "medium" },
@@ -893,7 +955,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
893
955
  size: iconSize.value
894
956
  }, null, 8, ["name", "size"])) : createCommentVNode("", true)
895
957
  ], true),
896
- props.label ? (openBlock(), createElementBlock("span", _hoisted_1$q, toDisplayString(props.label), 1)) : createCommentVNode("", true),
958
+ props.label ? (openBlock(), createElementBlock("span", _hoisted_1$s, toDisplayString(props.label), 1)) : createCommentVNode("", true),
897
959
  props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
898
960
  key: 1,
899
961
  name: props.trailingIcon,
@@ -906,9 +968,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
906
968
  }
907
969
  });
908
970
 
909
- const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-b0f9559f"]]);
971
+ const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-b0f9559f"]]);
910
972
 
911
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
973
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
912
974
  __name: "KdsButton",
913
975
  props: {
914
976
  size: {},
@@ -961,7 +1023,7 @@ const resolveNuxtLinkComponent = () => {
961
1023
  return fallbackComponent;
962
1024
  };
963
1025
 
964
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
1026
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
965
1027
  __name: "KdsLinkButton",
966
1028
  props: {
967
1029
  size: {},
@@ -997,7 +1059,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
997
1059
  }
998
1060
  });
999
1061
 
1000
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
1062
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1001
1063
  __name: "KdsToggleButton",
1002
1064
  props: /* @__PURE__ */ mergeModels({
1003
1065
  size: {},
@@ -1032,9 +1094,9 @@ const kdsToggleButtonVariant = {
1032
1094
  };
1033
1095
  const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
1034
1096
 
1035
- const _hoisted_1$p = ["data-visible"];
1036
- const _hoisted_2$d = ["data-visible"];
1037
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
1097
+ const _hoisted_1$r = ["data-visible"];
1098
+ const _hoisted_2$e = ["data-visible"];
1099
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
1038
1100
  __name: "KdsProgressButton",
1039
1101
  props: /* @__PURE__ */ mergeModels({
1040
1102
  size: { default: "medium" },
@@ -1097,7 +1159,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
1097
1159
  name: props.leadingIcon,
1098
1160
  size: iconSize.value
1099
1161
  }, null, 8, ["name", "size"])
1100
- ], 8, _hoisted_1$p),
1162
+ ], 8, _hoisted_1$r),
1101
1163
  createElementVNode("span", {
1102
1164
  class: "spinner",
1103
1165
  "data-visible": state.value === "progress"
@@ -1106,7 +1168,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
1106
1168
  size: iconSize.value,
1107
1169
  variant: props.variant === "filled" ? "onPrimary" : "onSurface"
1108
1170
  }, null, 8, ["size", "variant"])
1109
- ], 8, _hoisted_2$d)
1171
+ ], 8, _hoisted_2$e)
1110
1172
  ], 2)
1111
1173
  ]),
1112
1174
  _: 1
@@ -1115,7 +1177,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
1115
1177
  }
1116
1178
  });
1117
1179
 
1118
- const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-ec08a9ba"]]);
1180
+ const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-ec08a9ba"]]);
1119
1181
 
1120
1182
  const kdsProgressButtonState = {
1121
1183
  DEFAULT: "default",
@@ -1139,9 +1201,9 @@ const kdsButtonVariant = {
1139
1201
  };
1140
1202
  const kdsButtonVariants = Object.values(kdsButtonVariant);
1141
1203
 
1142
- const _hoisted_1$o = { class: "kds-label-wrapper" };
1143
- const _hoisted_2$c = ["id", "for", "title"];
1144
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
1204
+ const _hoisted_1$q = { class: "kds-label-wrapper" };
1205
+ const _hoisted_2$d = ["id", "for", "title"];
1206
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
1145
1207
  __name: "KdsLabel",
1146
1208
  props: {
1147
1209
  label: {},
@@ -1158,7 +1220,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1158
1220
  const labelEl = useTemplateRef("labelEl");
1159
1221
  const { isTruncated } = useKdsIsTruncated(labelEl);
1160
1222
  return (_ctx, _cache) => {
1161
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
1223
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
1162
1224
  createElementVNode("label", {
1163
1225
  id: props.id,
1164
1226
  ref_key: "labelEl",
@@ -1166,7 +1228,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1166
1228
  for: props.for,
1167
1229
  class: "label",
1168
1230
  title: unref(isTruncated) ? props.label : void 0
1169
- }, toDisplayString(props.label), 9, _hoisted_2$c),
1231
+ }, toDisplayString(props.label), 9, _hoisted_2$d),
1170
1232
  props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
1171
1233
  key: 0,
1172
1234
  content: props.description,
@@ -1177,11 +1239,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1177
1239
  }
1178
1240
  });
1179
1241
 
1180
- const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-1a5dc1ba"]]);
1242
+ const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-1a5dc1ba"]]);
1181
1243
 
1182
- const _hoisted_1$n = ["id"];
1183
- const _hoisted_2$b = { class: "subtext-text" };
1184
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
1244
+ const _hoisted_1$p = ["id"];
1245
+ const _hoisted_2$c = { class: "subtext-text" };
1246
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
1185
1247
  __name: "KdsSubText",
1186
1248
  props: {
1187
1249
  id: {},
@@ -1212,17 +1274,17 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1212
1274
  variant: "onSurface",
1213
1275
  "aria-hidden": "true"
1214
1276
  })) : createCommentVNode("", true),
1215
- createElementVNode("span", _hoisted_2$b, toDisplayString(props.subText), 1)
1216
- ], 10, _hoisted_1$n)) : createCommentVNode("", true);
1277
+ createElementVNode("span", _hoisted_2$c, toDisplayString(props.subText), 1)
1278
+ ], 10, _hoisted_1$p)) : createCommentVNode("", true);
1217
1279
  };
1218
1280
  }
1219
1281
  });
1220
1282
 
1221
- const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-df9a85a4"]]);
1283
+ const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-df9a85a4"]]);
1222
1284
 
1223
- const _hoisted_1$m = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
1224
- const _hoisted_2$a = { class: "control" };
1225
- const _hoisted_3$8 = {
1285
+ const _hoisted_1$o = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
1286
+ const _hoisted_2$b = { class: "control" };
1287
+ const _hoisted_3$9 = {
1226
1288
  key: 0,
1227
1289
  class: "content"
1228
1290
  };
@@ -1232,7 +1294,7 @@ const _hoisted_6$3 = {
1232
1294
  key: 0,
1233
1295
  class: "subtext-wrapper"
1234
1296
  };
1235
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
1297
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1236
1298
  __name: "BaseCheckbox",
1237
1299
  props: /* @__PURE__ */ mergeModels({
1238
1300
  disabled: { type: Boolean, default: false },
@@ -1305,7 +1367,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1305
1367
  role: "checkbox",
1306
1368
  onClick: handleClick
1307
1369
  }, [
1308
- createElementVNode("div", _hoisted_2$a, [
1370
+ createElementVNode("div", _hoisted_2$b, [
1309
1371
  icon.value ? (openBlock(), createBlock(KdsIcon, {
1310
1372
  key: 0,
1311
1373
  name: icon.value,
@@ -1313,7 +1375,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1313
1375
  size: "xsmall"
1314
1376
  }, null, 8, ["name"])) : createCommentVNode("", true)
1315
1377
  ]),
1316
- props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
1378
+ props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
1317
1379
  createElementVNode("div", _hoisted_4$6, toDisplayString(props.label), 1),
1318
1380
  props.helperText ? (openBlock(), createElementBlock("div", {
1319
1381
  key: 0,
@@ -1321,7 +1383,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1321
1383
  class: "helper-text"
1322
1384
  }, toDisplayString(props.helperText), 9, _hoisted_5$3)) : createCommentVNode("", true)
1323
1385
  ])) : createCommentVNode("", true)
1324
- ], 10, _hoisted_1$m),
1386
+ ], 10, _hoisted_1$o),
1325
1387
  props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
1326
1388
  createVNode(KdsSubText, {
1327
1389
  id: unref(descriptionId),
@@ -1335,9 +1397,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1335
1397
  }
1336
1398
  });
1337
1399
 
1338
- const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-32f17780"]]);
1400
+ const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-32f17780"]]);
1339
1401
 
1340
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
1402
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1341
1403
  __name: "KdsCheckbox",
1342
1404
  props: /* @__PURE__ */ mergeModels({
1343
1405
  disabled: { type: Boolean, default: false },
@@ -1369,8 +1431,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1369
1431
  }
1370
1432
  });
1371
1433
 
1372
- const _hoisted_1$l = ["id", "aria-labelledby", "aria-describedby"];
1373
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
1434
+ const _hoisted_1$n = ["id", "aria-labelledby", "aria-describedby"];
1435
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1374
1436
  __name: "KdsCheckboxGroup",
1375
1437
  props: /* @__PURE__ */ mergeModels({
1376
1438
  id: {},
@@ -1454,12 +1516,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1454
1516
  "preserve-sub-text-space": props.preserveSubTextSpace,
1455
1517
  error: hasError.value
1456
1518
  }, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
1457
- ], 8, _hoisted_1$l);
1519
+ ], 8, _hoisted_1$n);
1458
1520
  };
1459
1521
  }
1460
1522
  });
1461
1523
 
1462
- const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c38eeda5"]]);
1524
+ const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c38eeda5"]]);
1463
1525
 
1464
1526
  const kdsCheckboxGroupAlignment = {
1465
1527
  VERTICAL: "vertical",
@@ -1475,9 +1537,9 @@ const kdsCheckboxValue = {
1475
1537
  };
1476
1538
  const kdsCheckboxValues = Object.values(kdsCheckboxValue);
1477
1539
 
1478
- const _hoisted_1$k = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
1479
- const _hoisted_2$9 = { class: "control" };
1480
- const _hoisted_3$7 = {
1540
+ const _hoisted_1$m = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
1541
+ const _hoisted_2$a = { class: "control" };
1542
+ const _hoisted_3$8 = {
1481
1543
  key: 0,
1482
1544
  class: "dot",
1483
1545
  viewBox: "0 0 2 2",
@@ -1487,7 +1549,7 @@ const _hoisted_3$7 = {
1487
1549
  const _hoisted_4$5 = { class: "content" };
1488
1550
  const _hoisted_5$2 = { class: "label" };
1489
1551
  const _hoisted_6$2 = ["id"];
1490
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
1552
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1491
1553
  __name: "KdsRadioButton",
1492
1554
  props: /* @__PURE__ */ mergeModels({
1493
1555
  text: {},
@@ -1527,8 +1589,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1527
1589
  type: "button",
1528
1590
  onClick: handleClick
1529
1591
  }, [
1530
- createElementVNode("div", _hoisted_2$9, [
1531
- modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$7, [..._cache[0] || (_cache[0] = [
1592
+ createElementVNode("div", _hoisted_2$a, [
1593
+ modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$8, [..._cache[0] || (_cache[0] = [
1532
1594
  createElementVNode("circle", {
1533
1595
  cx: "1",
1534
1596
  cy: "1",
@@ -1544,12 +1606,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1544
1606
  class: "helper-text"
1545
1607
  }, toDisplayString(props.helperText), 9, _hoisted_6$2)) : createCommentVNode("", true)
1546
1608
  ])
1547
- ], 10, _hoisted_1$k);
1609
+ ], 10, _hoisted_1$m);
1548
1610
  };
1549
1611
  }
1550
1612
  });
1551
1613
 
1552
- const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-27c361e4"]]);
1614
+ const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-27c361e4"]]);
1553
1615
 
1554
1616
  const useRadioSelection = ({
1555
1617
  selectedId,
@@ -1671,8 +1733,8 @@ const useRadioSelection = ({
1671
1733
  };
1672
1734
  };
1673
1735
 
1674
- const _hoisted_1$j = ["id", "aria-labelledby", "aria-describedby"];
1675
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
1736
+ const _hoisted_1$l = ["id", "aria-labelledby", "aria-describedby"];
1737
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1676
1738
  __name: "KdsRadioButtonGroup",
1677
1739
  props: /* @__PURE__ */ mergeModels({
1678
1740
  id: {},
@@ -1751,15 +1813,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1751
1813
  "preserve-sub-text-space": props.preserveSubTextSpace,
1752
1814
  error: unref(hasError)
1753
1815
  }, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
1754
- ], 8, _hoisted_1$j);
1816
+ ], 8, _hoisted_1$l);
1755
1817
  };
1756
1818
  }
1757
1819
  });
1758
1820
 
1759
- const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-9cc4dcdd"]]);
1821
+ const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-9cc4dcdd"]]);
1760
1822
 
1761
- const _hoisted_1$i = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
1762
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
1823
+ const _hoisted_1$k = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
1824
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1763
1825
  __name: "ValueSwitchItem",
1764
1826
  props: {
1765
1827
  selected: { type: Boolean },
@@ -1809,12 +1871,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1809
1871
  name: props.trailingIcon,
1810
1872
  size: props.size
1811
1873
  }, null, 8, ["name", "size"])) : createCommentVNode("", true)
1812
- ], 10, _hoisted_1$i);
1874
+ ], 10, _hoisted_1$k);
1813
1875
  };
1814
1876
  }
1815
1877
  });
1816
1878
 
1817
- const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-93f3f577"]]);
1879
+ const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-93f3f577"]]);
1818
1880
 
1819
1881
  const useValueSwitchIconHiding = ({
1820
1882
  width,
@@ -1865,8 +1927,8 @@ const useValueSwitchIconHiding = ({
1865
1927
  };
1866
1928
  };
1867
1929
 
1868
- const _hoisted_1$h = ["id", "aria-invalid", "aria-labelledby", "aria-describedby"];
1869
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
1930
+ const _hoisted_1$j = ["id", "aria-invalid", "aria-labelledby", "aria-describedby"];
1931
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1870
1932
  __name: "KdsValueSwitch",
1871
1933
  props: /* @__PURE__ */ mergeModels({
1872
1934
  id: {},
@@ -1959,12 +2021,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1959
2021
  "preserve-sub-text-space": props.preserveSubTextSpace,
1960
2022
  error: props.error
1961
2023
  }, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
1962
- ], 10, _hoisted_1$h);
2024
+ ], 10, _hoisted_1$j);
1963
2025
  };
1964
2026
  }
1965
2027
  });
1966
2028
 
1967
- const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-666d4c10"]]);
2029
+ const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-666d4c10"]]);
1968
2030
 
1969
2031
  const kdsRadioButtonGroupAlignment = {
1970
2032
  VERTICAL: "vertical",
@@ -1984,12 +2046,12 @@ const kdsValueSwitchVariant = {
1984
2046
  };
1985
2047
  const kdsValueSwitchVariants = Object.values(kdsValueSwitchVariant);
1986
2048
 
1987
- const _hoisted_1$g = ["id", "role", "aria-label"];
1988
- const _hoisted_2$8 = {
2049
+ const _hoisted_1$i = ["id", "role", "aria-label"];
2050
+ const _hoisted_2$9 = {
1989
2051
  key: 0,
1990
2052
  class: "kds-popover-default-content"
1991
2053
  };
1992
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
2054
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1993
2055
  __name: "KdsPopover",
1994
2056
  props: /* @__PURE__ */ mergeModels({
1995
2057
  placement: { default: "bottom-left" },
@@ -2030,16 +2092,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2030
2092
  onToggle: _cache[0] || (_cache[0] = ($event) => open.value = $event.newState === "open")
2031
2093
  }, [
2032
2094
  open.value ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
2033
- props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$8, toDisplayString(props.content), 1)) : createCommentVNode("", true)
2095
+ props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(props.content), 1)) : createCommentVNode("", true)
2034
2096
  ], true) : createCommentVNode("", true)
2035
- ], 46, _hoisted_1$g);
2097
+ ], 46, _hoisted_1$i);
2036
2098
  };
2037
2099
  }
2038
2100
  });
2039
2101
 
2040
- const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9125d023"]]);
2102
+ const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-9125d023"]]);
2041
2103
 
2042
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
2104
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2043
2105
  __name: "BaseFormFieldWrapper",
2044
2106
  props: {
2045
2107
  id: {},
@@ -2091,17 +2153,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2091
2153
  }
2092
2154
  });
2093
2155
 
2094
- const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5d99c134"]]);
2156
+ const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5d99c134"]]);
2095
2157
 
2096
- const _hoisted_1$f = {
2158
+ const _hoisted_1$h = {
2097
2159
  key: 0,
2098
2160
  class: "icon-wrapper leading"
2099
2161
  };
2100
- const _hoisted_2$7 = {
2162
+ const _hoisted_2$8 = {
2101
2163
  key: 1,
2102
2164
  class: "leading-slot"
2103
2165
  };
2104
- const _hoisted_3$6 = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant"];
2166
+ const _hoisted_3$7 = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant"];
2105
2167
  const _hoisted_4$4 = ["aria-disabled"];
2106
2168
  const _hoisted_5$1 = {
2107
2169
  key: 4,
@@ -2111,7 +2173,7 @@ const _hoisted_6$1 = {
2111
2173
  key: 5,
2112
2174
  class: "icon-wrapper trailing"
2113
2175
  };
2114
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
2176
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2115
2177
  __name: "BaseInput",
2116
2178
  props: /* @__PURE__ */ mergeModels({
2117
2179
  id: { default: void 0 },
@@ -2185,13 +2247,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2185
2247
  }),
2186
2248
  onClick: handleContainerClick
2187
2249
  }, [
2188
- props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
2250
+ props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
2189
2251
  props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
2190
2252
  key: 0,
2191
2253
  name: props.leadingIcon
2192
2254
  }, null, 8, ["name"])) : createCommentVNode("", true)
2193
2255
  ])) : createCommentVNode("", true),
2194
- _ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
2256
+ _ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
2195
2257
  renderSlot(_ctx.$slots, "leading", {}, void 0, true)
2196
2258
  ])) : createCommentVNode("", true),
2197
2259
  createElementVNode("input", {
@@ -2222,7 +2284,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2222
2284
  onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event)),
2223
2285
  onKeydown: _cache[2] || (_cache[2] = ($event) => emit("keydown", $event)),
2224
2286
  onClick: _cache[3] || (_cache[3] = ($event) => emit("click", $event))
2225
- }, null, 42, _hoisted_3$6),
2287
+ }, null, 42, _hoisted_3$7),
2226
2288
  props.unit ? (openBlock(), createElementBlock("span", {
2227
2289
  key: 2,
2228
2290
  class: normalizeClass({
@@ -2232,7 +2294,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2232
2294
  }),
2233
2295
  "aria-disabled": props.disabled || void 0
2234
2296
  }, toDisplayString(props.unit), 11, _hoisted_4$4)) : createCommentVNode("", true),
2235
- props.clearable && hasValue.value && !props.disabled ? (openBlock(), createBlock(_sfc_main$B, {
2297
+ props.clearable && hasValue.value && !props.disabled ? (openBlock(), createBlock(_sfc_main$D, {
2236
2298
  key: 3,
2237
2299
  class: "clear-button",
2238
2300
  type: "button",
@@ -2256,9 +2318,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2256
2318
  }
2257
2319
  });
2258
2320
 
2259
- const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-fad4fd1f"]]);
2321
+ const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-fad4fd1f"]]);
2260
2322
 
2261
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
2323
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2262
2324
  __name: "KdsTextInput",
2263
2325
  props: /* @__PURE__ */ mergeModels({
2264
2326
  description: {},
@@ -2464,9 +2526,9 @@ const usePointerHandler = (updateFromEvent) => {
2464
2526
  };
2465
2527
  };
2466
2528
 
2467
- const _hoisted_1$e = { class: "kds-color-picker" };
2468
- const _hoisted_2$6 = ["aria-valuetext"];
2469
- const _hoisted_3$5 = ["aria-valuenow", "aria-valuetext"];
2529
+ const _hoisted_1$g = { class: "kds-color-picker" };
2530
+ const _hoisted_2$7 = ["aria-valuetext"];
2531
+ const _hoisted_3$6 = ["aria-valuenow", "aria-valuetext"];
2470
2532
  const DEFAULT_HUE_DEG = 270;
2471
2533
  const DEFAULT_SATURATION = 0.8;
2472
2534
  const DEFAULT_VALUE = 0.9;
@@ -2478,7 +2540,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
2478
2540
  const HUE_KEYBOARD_STEP_DEG = 1;
2479
2541
  const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
2480
2542
  const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
2481
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
2543
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2482
2544
  __name: "ColorPicker",
2483
2545
  props: {
2484
2546
  "modelValue": { default: "" },
@@ -2629,7 +2691,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2629
2691
  }
2630
2692
  };
2631
2693
  return (_ctx, _cache) => {
2632
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
2694
+ return openBlock(), createElementBlock("div", _hoisted_1$g, [
2633
2695
  createElementVNode("div", {
2634
2696
  ref_key: "colorspaceEl",
2635
2697
  ref: colorspaceEl,
@@ -2660,7 +2722,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2660
2722
  class: "handle",
2661
2723
  style: normalizeStyle(colorspaceHandleStyle.value)
2662
2724
  }, null, 4)
2663
- ], 44, _hoisted_2$6),
2725
+ ], 44, _hoisted_2$7),
2664
2726
  createElementVNode("div", {
2665
2727
  ref_key: "hueEl",
2666
2728
  ref: hueEl,
@@ -2692,8 +2754,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2692
2754
  class: "handle",
2693
2755
  style: normalizeStyle(hueHandleStyle.value)
2694
2756
  }, null, 4)
2695
- ], 40, _hoisted_3$5),
2696
- createVNode(_sfc_main$l, {
2757
+ ], 40, _hoisted_3$6),
2758
+ createVNode(_sfc_main$n, {
2697
2759
  "model-value": modelValue.value,
2698
2760
  "aria-label": "Color hex value",
2699
2761
  placeholder: "#FFFFFF",
@@ -2704,7 +2766,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2704
2766
  }
2705
2767
  });
2706
2768
 
2707
- const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-180fafdd"]]);
2769
+ const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-180fafdd"]]);
2708
2770
 
2709
2771
  const HEX_LENGTH_1 = 1;
2710
2772
  const HEX_LENGTH_2 = 2;
@@ -2764,7 +2826,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
2764
2826
  return { handleFocusOut };
2765
2827
  };
2766
2828
 
2767
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
2829
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2768
2830
  __name: "KdsColorInput",
2769
2831
  props: /* @__PURE__ */ mergeModels({
2770
2832
  description: {},
@@ -2816,7 +2878,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2816
2878
  }, null, 8, ["color"])
2817
2879
  ]),
2818
2880
  trailing: withCtx(() => [
2819
- createVNode(unref(_sfc_main$z), {
2881
+ createVNode(unref(_sfc_main$B), {
2820
2882
  modelValue: open.value,
2821
2883
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
2822
2884
  size: "xsmall",
@@ -2977,7 +3039,7 @@ const createKdsNumberParser = (params) => {
2977
3039
  };
2978
3040
  };
2979
3041
 
2980
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
3042
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2981
3043
  __name: "KdsNumberInput",
2982
3044
  props: /* @__PURE__ */ mergeModels({
2983
3045
  description: {},
@@ -3130,7 +3192,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3130
3192
  onBlur: handleBlur
3131
3193
  }), {
3132
3194
  trailing: withCtx(() => [
3133
- createVNode(_sfc_main$B, {
3195
+ createVNode(_sfc_main$D, {
3134
3196
  type: "button",
3135
3197
  size: "xsmall",
3136
3198
  variant: "outlined",
@@ -3139,7 +3201,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3139
3201
  disabled: !canDecrease.value,
3140
3202
  onClick: _cache[0] || (_cache[0] = ($event) => adjustByStep(-1))
3141
3203
  }, null, 8, ["aria-label", "disabled"]),
3142
- createVNode(_sfc_main$B, {
3204
+ createVNode(_sfc_main$D, {
3143
3205
  type: "button",
3144
3206
  size: "xsmall",
3145
3207
  variant: "outlined",
@@ -3245,7 +3307,7 @@ const parseRegexToPatternInputValue = (regex, options) => {
3245
3307
  return wildcard ?? body;
3246
3308
  };
3247
3309
 
3248
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
3310
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3249
3311
  __name: "KdsPatternInput",
3250
3312
  props: /* @__PURE__ */ mergeModels({
3251
3313
  description: {},
@@ -3323,7 +3385,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3323
3385
  clearable: ""
3324
3386
  }), {
3325
3387
  trailing: withCtx(() => [
3326
- createVNode(_sfc_main$z, {
3388
+ createVNode(_sfc_main$B, {
3327
3389
  modelValue: caseSensitive.value,
3328
3390
  "onUpdate:modelValue": [
3329
3391
  _cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
@@ -3336,7 +3398,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3336
3398
  "aria-label": caseSensitiveAriaLabel.value,
3337
3399
  disabled: props.disabled
3338
3400
  }, null, 8, ["modelValue", "title", "aria-label", "disabled"]),
3339
- createVNode(_sfc_main$z, {
3401
+ createVNode(_sfc_main$B, {
3340
3402
  modelValue: excludeMatches.value,
3341
3403
  "onUpdate:modelValue": [
3342
3404
  _cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
@@ -3349,7 +3411,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3349
3411
  "aria-label": excludeMatchesAriaLabel.value,
3350
3412
  disabled: props.disabled
3351
3413
  }, null, 8, ["modelValue", "title", "aria-label", "disabled"]),
3352
- createVNode(_sfc_main$z, {
3414
+ createVNode(_sfc_main$B, {
3353
3415
  modelValue: useRegex.value,
3354
3416
  "onUpdate:modelValue": [
3355
3417
  _cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
@@ -3372,7 +3434,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3372
3434
  }
3373
3435
  });
3374
3436
 
3375
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
3437
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3376
3438
  __name: "KdsSearchInput",
3377
3439
  props: /* @__PURE__ */ mergeModels({
3378
3440
  description: {},
@@ -3426,8 +3488,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3426
3488
  }
3427
3489
  });
3428
3490
 
3429
- const _hoisted_1$d = ["rows", "placeholder", "disabled", "autocomplete"];
3430
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
3491
+ const _hoisted_1$f = ["rows", "placeholder", "disabled", "autocomplete"];
3492
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3431
3493
  __name: "KdsTextarea",
3432
3494
  props: /* @__PURE__ */ mergeModels({
3433
3495
  description: {},
@@ -3484,7 +3546,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3484
3546
  placeholder: props.placeholder,
3485
3547
  disabled: props.disabled,
3486
3548
  autocomplete: props.autocomplete
3487
- }), null, 16, _hoisted_1$d), [
3549
+ }), null, 16, _hoisted_1$f), [
3488
3550
  [vModelText, modelValue.value]
3489
3551
  ])
3490
3552
  ]),
@@ -3494,9 +3556,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3494
3556
  }
3495
3557
  });
3496
3558
 
3497
- const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a2df5fed"]]);
3559
+ const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a2df5fed"]]);
3498
3560
 
3499
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
3561
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3500
3562
  __name: "ListItemAccessory",
3501
3563
  props: {
3502
3564
  accessory: {},
@@ -3537,18 +3599,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3537
3599
  }
3538
3600
  });
3539
3601
 
3540
- const _hoisted_1$c = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
3541
- const _hoisted_2$5 = {
3602
+ const _hoisted_1$e = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
3603
+ const _hoisted_2$6 = {
3542
3604
  key: 0,
3543
3605
  class: "leading",
3544
3606
  "aria-hidden": "true"
3545
3607
  };
3546
- const _hoisted_3$4 = ["id"];
3608
+ const _hoisted_3$5 = ["id"];
3547
3609
  const _hoisted_4$3 = {
3548
3610
  class: "trailing",
3549
3611
  "aria-hidden": "true"
3550
3612
  };
3551
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
3613
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
3552
3614
  __name: "BaseDropdown",
3553
3615
  props: /* @__PURE__ */ mergeModels({
3554
3616
  text: { default: void 0 },
@@ -3620,8 +3682,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3620
3682
  onClick: _cache[0] || (_cache[0] = ($event) => !props.disabled && emit("click")),
3621
3683
  onKeydown
3622
3684
  }, [
3623
- props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$5, [
3624
- createVNode(_sfc_main$e, {
3685
+ props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$6, [
3686
+ createVNode(_sfc_main$g, {
3625
3687
  accessory: props.accessory,
3626
3688
  size: "medium"
3627
3689
  }, null, 8, ["accessory"])
@@ -3632,36 +3694,37 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3632
3694
  placeholder: !props.text,
3633
3695
  missing: props.missing
3634
3696
  }])
3635
- }, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$4),
3697
+ }, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$5),
3636
3698
  createElementVNode("span", _hoisted_4$3, [
3637
3699
  createVNode(KdsIcon, {
3638
3700
  name: open.value ? "chevron-up" : "chevron-down",
3639
3701
  size: "small"
3640
3702
  }, null, 8, ["name"])
3641
3703
  ])
3642
- ], 42, _hoisted_1$c);
3704
+ ], 42, _hoisted_1$e);
3643
3705
  };
3644
3706
  }
3645
3707
  });
3646
3708
 
3647
- const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f1917c48"]]);
3709
+ const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f1917c48"]]);
3648
3710
 
3649
- const _hoisted_1$b = { class: "kds-empty-state" };
3650
- const _hoisted_2$4 = { class: "kds-empty-state-headline" };
3651
- const _hoisted_3$3 = {
3652
- key: 0,
3711
+ const _hoisted_1$d = { class: "kds-empty-state" };
3712
+ const _hoisted_2$5 = { class: "kds-empty-state-headline" };
3713
+ const _hoisted_3$4 = {
3714
+ key: 1,
3653
3715
  class: "kds-empty-state-description"
3654
3716
  };
3655
3717
  const _hoisted_4$2 = {
3656
- key: 1,
3718
+ key: 2,
3657
3719
  class: "kds-empty-state-action"
3658
3720
  };
3659
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
3721
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3660
3722
  __name: "KdsEmptyState",
3661
3723
  props: {
3662
3724
  headline: {},
3663
3725
  description: {},
3664
- button: {}
3726
+ button: {},
3727
+ loadingSpinner: { type: Boolean }
3665
3728
  },
3666
3729
  emits: ["buttonClick"],
3667
3730
  setup(__props, { emit: __emit }) {
@@ -3671,12 +3734,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3671
3734
  () => props.button && "to" in props.button && props.button.to !== void 0
3672
3735
  );
3673
3736
  const buttonComponent = computed(
3674
- () => isLinkButton.value ? _sfc_main$A : _sfc_main$B
3737
+ () => isLinkButton.value ? _sfc_main$C : _sfc_main$D
3675
3738
  );
3676
3739
  return (_ctx, _cache) => {
3677
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
3678
- createElementVNode("p", _hoisted_2$4, toDisplayString(props.headline), 1),
3679
- props.description ? (openBlock(), createElementBlock("p", _hoisted_3$3, toDisplayString(props.description), 1)) : createCommentVNode("", true),
3740
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
3741
+ props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
3742
+ key: 0,
3743
+ "data-testid": "loading-spinner",
3744
+ size: "large",
3745
+ variant: "onSurface",
3746
+ "aria-hidden": "true"
3747
+ })) : createCommentVNode("", true),
3748
+ createElementVNode("p", _hoisted_2$5, toDisplayString(props.headline), 1),
3749
+ props.description ? (openBlock(), createElementBlock("p", _hoisted_3$4, toDisplayString(props.description), 1)) : createCommentVNode("", true),
3680
3750
  props.button ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3681
3751
  (openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
3682
3752
  onClick: _cache[0] || (_cache[0] = ($event) => emit("buttonClick", $event))
@@ -3687,7 +3757,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3687
3757
  }
3688
3758
  });
3689
3759
 
3690
- const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b4af30cf"]]);
3760
+ const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-02149081"]]);
3691
3761
 
3692
3762
  const kdsListItemAccessorySize = {
3693
3763
  SMALL: "small",
@@ -3699,12 +3769,12 @@ const kdsListItemVariant = {
3699
3769
  LARGE: "large"
3700
3770
  };
3701
3771
 
3702
- const _hoisted_1$a = ["id", "aria-selected", "aria-disabled"];
3703
- const _hoisted_2$3 = {
3772
+ const _hoisted_1$c = ["id", "aria-selected", "aria-disabled"];
3773
+ const _hoisted_2$4 = {
3704
3774
  key: 0,
3705
3775
  class: "accessory"
3706
3776
  };
3707
- const _hoisted_3$2 = { class: "content" };
3777
+ const _hoisted_3$3 = { class: "content" };
3708
3778
  const _hoisted_4$1 = ["title"];
3709
3779
  const _hoisted_5 = {
3710
3780
  key: 0,
@@ -3719,7 +3789,7 @@ const _hoisted_8 = {
3719
3789
  key: 0,
3720
3790
  class: "shortcut"
3721
3791
  };
3722
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
3792
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3723
3793
  __name: "KdsListItem",
3724
3794
  props: {
3725
3795
  id: {},
@@ -3772,14 +3842,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3772
3842
  ]),
3773
3843
  onClick
3774
3844
  }, [
3775
- props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
3776
- createVNode(_sfc_main$e, {
3845
+ props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$4, [
3846
+ createVNode(_sfc_main$g, {
3777
3847
  accessory: props.accessory,
3778
3848
  size: accessorySize.value,
3779
3849
  disabled: props.disabled
3780
3850
  }, null, 8, ["accessory", "size", "disabled"])
3781
3851
  ])) : createCommentVNode("", true),
3782
- createElementVNode("span", _hoisted_3$2, [
3852
+ createElementVNode("span", _hoisted_3$3, [
3783
3853
  createElementVNode("span", {
3784
3854
  ref_key: "labelEl",
3785
3855
  ref: labelEl,
@@ -3807,19 +3877,67 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3807
3877
  size: "small"
3808
3878
  }, null, 8, ["name"])) : createCommentVNode("", true)
3809
3879
  ])) : createCommentVNode("", true)
3810
- ], 10, _hoisted_1$a);
3880
+ ], 10, _hoisted_1$c);
3881
+ };
3882
+ }
3883
+ });
3884
+
3885
+ const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-fca25fc2"]]);
3886
+
3887
+ const _sfc_main$c = { };
3888
+
3889
+ const _hoisted_1$b = { class: "kds-list-item-divider" };
3890
+
3891
+ function _sfc_render(_ctx, _cache) {
3892
+ return (openBlock(), createElementBlock("hr", _hoisted_1$b))
3893
+ }
3894
+ const ListItemDivider = /*#__PURE__*/_export_sfc(_sfc_main$c, [['render',_sfc_render],['__scopeId',"data-v-3ee92695"]]);
3895
+
3896
+ const _hoisted_1$a = { class: "kds-list-item-section-title" };
3897
+ const _hoisted_2$3 = {
3898
+ key: 0,
3899
+ class: "icon"
3900
+ };
3901
+ const _hoisted_3$2 = ["title"];
3902
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3903
+ __name: "ListItemSectionTitle",
3904
+ props: {
3905
+ label: {},
3906
+ leadingIcon: {}
3907
+ },
3908
+ setup(__props) {
3909
+ const props = __props;
3910
+ const labelEl = useTemplateRef("labelEl");
3911
+ const { isTruncated } = useKdsIsTruncated(labelEl);
3912
+ return (_ctx, _cache) => {
3913
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
3914
+ props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
3915
+ createVNode(KdsIcon, {
3916
+ name: props.leadingIcon,
3917
+ size: "small"
3918
+ }, null, 8, ["name"])
3919
+ ])) : createCommentVNode("", true),
3920
+ createElementVNode("span", {
3921
+ ref_key: "labelEl",
3922
+ ref: labelEl,
3923
+ class: "label",
3924
+ title: unref(isTruncated) ? props.label : void 0
3925
+ }, toDisplayString(props.label), 9, _hoisted_3$2)
3926
+ ]);
3811
3927
  };
3812
3928
  }
3813
3929
  });
3814
3930
 
3815
- const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-fca25fc2"]]);
3931
+ const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-53382531"]]);
3816
3932
 
3817
- const _hoisted_1$9 = ["aria-label", "aria-activedescendant", "tabindex"];
3933
+ const _hoisted_1$9 = ["aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
3934
+ const loadingStateText = "Loading entries";
3818
3935
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
3819
3936
  __name: "KdsListContainer",
3820
3937
  props: {
3821
3938
  possibleValues: {},
3822
3939
  emptyText: { default: "" },
3940
+ loading: { type: Boolean, default: false },
3823
3941
  ariaLabel: {},
3824
3942
  controlledExternally: { type: Boolean }
3825
3943
  },
@@ -3831,7 +3949,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3831
3949
  const toOptionId = (elementId) => elementId.slice(idPrefix.length + 1);
3832
3950
  const emptyOptionId = `${idPrefix}-empty`;
3833
3951
  const prefixedValues = computed(
3834
- () => props.possibleValues.map((o) => ({ ...o, id: `${idPrefix}-${o.id}` }))
3952
+ () => (props.loading ? [] : props.possibleValues).map((o) => ({
3953
+ ...o,
3954
+ id: `${idPrefix}-${o.id}`
3955
+ }))
3956
+ );
3957
+ const selectableValues = computed(
3958
+ () => prefixedValues.value.filter((o) => !o.sectionHeadline)
3835
3959
  );
3836
3960
  const activeId = ref(void 0);
3837
3961
  const lastActiveId = ref(void 0);
@@ -3852,23 +3976,28 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3852
3976
  const target = event.target?.closest?.('[role="option"]');
3853
3977
  if (target instanceof HTMLElement && target.id && target.getAttribute("aria-disabled") !== "true") {
3854
3978
  activeId.value = target.id;
3979
+ } else if (!isFocused.value) {
3980
+ activeId.value = void 0;
3855
3981
  }
3856
3982
  };
3857
3983
  const enabledValues = computed(
3858
- () => prefixedValues.value.filter((o) => !o.disabled)
3984
+ () => selectableValues.value.filter((o) => !o.disabled)
3859
3985
  );
3860
- watch(enabledValues, (values) => {
3986
+ watch([enabledValues, () => props.loading], ([values, loading]) => {
3861
3987
  const isValid = (id) => id !== void 0 && values.some((o) => o.id === id);
3862
3988
  if (activeId.value !== void 0 && !isValid(activeId.value)) {
3863
3989
  if (values.length > 0) {
3864
3990
  activeId.value = values[0].id;
3865
3991
  } else {
3866
- activeId.value = prefixedValues.value.length === 0 ? emptyOptionId : void 0;
3992
+ activeId.value = selectableValues.value.length === 0 ? emptyOptionId : void 0;
3867
3993
  }
3868
3994
  }
3869
3995
  if (!isValid(lastActiveId.value)) {
3870
3996
  lastActiveId.value = void 0;
3871
3997
  }
3998
+ if (loading) {
3999
+ activeId.value = emptyOptionId;
4000
+ }
3872
4001
  nextTick(scrollToView);
3873
4002
  });
3874
4003
  const findEnabledIndex = (id) => id === void 0 ? -1 : enabledValues.value.findIndex((o) => o.id === id);
@@ -3940,10 +4069,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3940
4069
  activeDescendant: activeId
3941
4070
  });
3942
4071
  return (_ctx, _cache) => {
3943
- return openBlock(), createElementBlock("div", mergeProps({
4072
+ return openBlock(), createElementBlock("div", mergeProps(_ctx.$attrs, {
3944
4073
  ref_key: "containerEl",
3945
4074
  ref: containerEl,
3946
4075
  role: "listbox",
4076
+ "aria-busy": props.loading,
3947
4077
  "aria-label": props.ariaLabel,
3948
4078
  "aria-activedescendant": !props.controlledExternally && activeId.value ? activeId.value : void 0,
3949
4079
  class: "kds-list-container",
@@ -3958,41 +4088,57 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3958
4088
  },
3959
4089
  true
3960
4090
  )), [
3961
- (openBlock(true), createElementBlock(Fragment, null, renderList(prefixedValues.value, (item) => {
3962
- return openBlock(), createBlock(unref(KdsListItem), {
3963
- id: item.id,
3964
- key: item.id,
3965
- accessory: item.accessory,
3966
- label: item.text,
3967
- "sub-text": item.subText,
3968
- selected: item.selected,
3969
- disabled: item.disabled,
3970
- active: activeId.value === item.id,
3971
- special: item.special,
3972
- missing: item.missing,
3973
- "trailing-icon": item.selected ? "checkmark" : void 0,
3974
- onMousedown: _cache[0] || (_cache[0] = ($event) => props.controlledExternally && $event.preventDefault()),
3975
- onClick: withModifiers(($event) => emit("itemClick", toOptionId(item.id)), ["stop"])
3976
- }, null, 8, ["id", "accessory", "label", "sub-text", "selected", "disabled", "active", "special", "missing", "trailing-icon", "onClick"]);
4091
+ (openBlock(true), createElementBlock(Fragment, null, renderList(prefixedValues.value, (item, index) => {
4092
+ return openBlock(), createElementBlock(Fragment, {
4093
+ key: item.id
4094
+ }, [
4095
+ item.sectionHeadline ? (openBlock(), createBlock(ListItemSectionTitle, {
4096
+ key: 0,
4097
+ label: item.text,
4098
+ "leading-icon": item.sectionHeadlineIcon,
4099
+ role: "presentation",
4100
+ "aria-hidden": "true"
4101
+ }, null, 8, ["label", "leading-icon"])) : (openBlock(), createBlock(unref(KdsListItem), {
4102
+ key: 1,
4103
+ id: item.id,
4104
+ accessory: item.accessory,
4105
+ label: item.text,
4106
+ "sub-text": item.subText,
4107
+ selected: item.selected,
4108
+ disabled: item.disabled,
4109
+ active: activeId.value === item.id,
4110
+ special: item.special,
4111
+ missing: item.missing,
4112
+ "trailing-icon": item.selected ? "checkmark" : void 0,
4113
+ onMousedown: _cache[0] || (_cache[0] = ($event) => props.controlledExternally && $event.preventDefault()),
4114
+ onClick: withModifiers(($event) => emit("itemClick", toOptionId(item.id)), ["stop"])
4115
+ }, null, 8, ["id", "accessory", "label", "sub-text", "selected", "disabled", "active", "special", "missing", "trailing-icon", "onClick"])),
4116
+ item.separator && index < prefixedValues.value.length - 1 ? (openBlock(), createBlock(ListItemDivider, {
4117
+ key: 2,
4118
+ role: "presentation",
4119
+ "aria-hidden": "true"
4120
+ })) : createCommentVNode("", true)
4121
+ ], 64);
3977
4122
  }), 128)),
3978
- prefixedValues.value.length === 0 ? (openBlock(), createElementBlock("div", {
4123
+ selectableValues.value.length === 0 ? (openBlock(), createElementBlock("div", {
3979
4124
  key: 0,
3980
4125
  id: emptyOptionId,
3981
4126
  role: "option",
3982
4127
  "aria-disabled": "true",
3983
- "aria-selected": void 0,
4128
+ "aria-selected": "false",
3984
4129
  class: "kds-list-container-empty"
3985
4130
  }, [
3986
4131
  createVNode(KdsEmptyState, {
3987
- headline: props.emptyText
3988
- }, null, 8, ["headline"])
4132
+ headline: props.loading ? loadingStateText : props.emptyText,
4133
+ "loading-spinner": props.loading
4134
+ }, null, 8, ["headline", "loading-spinner"])
3989
4135
  ])) : createCommentVNode("", true)
3990
4136
  ], 16, _hoisted_1$9);
3991
4137
  };
3992
4138
  }
3993
4139
  });
3994
4140
 
3995
- const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-bfdaa003"]]);
4141
+ const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-276a6202"]]);
3996
4142
 
3997
4143
  const _hoisted_1$8 = { class: "kds-dropdown-container" };
3998
4144
  const _hoisted_2$2 = { class: "kds-dropdown-container-sticky-top" };
@@ -4000,6 +4146,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4000
4146
  __name: "DropdownContainer",
4001
4147
  props: /* @__PURE__ */ mergeModels({
4002
4148
  emptyText: {},
4149
+ loading: { type: Boolean },
4003
4150
  possibleValues: {}
4004
4151
  }, {
4005
4152
  "modelValue": { default: null },
@@ -4083,24 +4230,26 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
4083
4230
  createVNode(unref(KdsListContainer), {
4084
4231
  ref: "listContainer",
4085
4232
  class: normalizeClass(["kds-dropdown-container-list", { multiline: hasMultiline.value }]),
4086
- "possible-values": listOptions.value,
4233
+ "possible-values": props.loading ? [] : listOptions.value,
4234
+ loading: props.loading,
4087
4235
  "empty-text": props.emptyText,
4088
4236
  "controlled-externally": "",
4089
4237
  "aria-label": "Dropdown options",
4090
4238
  onItemClick: _cache[4] || (_cache[4] = ($event) => modelValue.value = $event)
4091
- }, null, 8, ["class", "possible-values", "empty-text"])
4239
+ }, null, 8, ["class", "possible-values", "loading", "empty-text"])
4092
4240
  ]);
4093
4241
  };
4094
4242
  }
4095
4243
  });
4096
4244
 
4097
- const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-dd55ee4d"]]);
4245
+ const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-15e753c9"]]);
4098
4246
 
4099
4247
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4100
4248
  __name: "KdsDropdown",
4101
4249
  props: /* @__PURE__ */ mergeModels({
4102
4250
  placeholder: { default: "Select" },
4103
4251
  disabled: { type: Boolean, default: false },
4252
+ loading: { type: Boolean, default: false },
4104
4253
  possibleValues: {},
4105
4254
  description: {},
4106
4255
  label: {},
@@ -4176,8 +4325,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4176
4325
  modelValue: modelValue.value,
4177
4326
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
4178
4327
  "possible-values": props.possibleValues,
4328
+ loading: props.loading,
4179
4329
  "empty-text": "No entries found"
4180
- }, null, 8, ["modelValue", "possible-values"])
4330
+ }, null, 8, ["modelValue", "possible-values", "loading"])
4181
4331
  ]),
4182
4332
  _: 1
4183
4333
  }, 8, ["modelValue"])
@@ -4514,10 +4664,10 @@ const kdsModalVariant = {
4514
4664
  };
4515
4665
  const kdsModalVariants = Object.values(kdsModalVariant);
4516
4666
  const kdsModalLayoutPropsDefault = {
4517
- title: "",
4667
+ headline: "",
4518
4668
  variant: kdsModalVariant.PADDED,
4519
4669
  overflow: "auto",
4520
- icon: void 0
4670
+ leadingIcon: void 0
4521
4671
  };
4522
4672
  const kdsModalPropsDefault = {
4523
4673
  active: false,
@@ -4528,7 +4678,7 @@ const kdsModalPropsDefault = {
4528
4678
  };
4529
4679
 
4530
4680
  const _hoisted_1$2 = { class: "modal-header" };
4531
- const _hoisted_2$1 = { class: "modal-header-title" };
4681
+ const _hoisted_2$1 = { class: "modal-header-headline" };
4532
4682
  const _hoisted_3$1 = ["data-variant"];
4533
4683
  const _hoisted_4 = {
4534
4684
  key: 0,
@@ -4538,27 +4688,27 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4538
4688
  ...{ inheritAttrs: false },
4539
4689
  __name: "KdsModalLayout",
4540
4690
  props: /* @__PURE__ */ mergeDefaults({
4541
- title: {},
4691
+ headline: {},
4542
4692
  variant: {},
4543
- icon: {},
4693
+ leadingIcon: {},
4544
4694
  overflow: {},
4545
4695
  onClose: { type: Function }
4546
4696
  }, kdsModalLayoutPropsDefault),
4547
4697
  setup(__props) {
4548
4698
  useCssVars((_ctx) => ({
4549
- "v670bbff1": _ctx.overflow
4699
+ "v55fe64da": _ctx.overflow
4550
4700
  }));
4551
4701
  const props = __props;
4552
4702
  return (_ctx, _cache) => {
4553
4703
  return openBlock(), createElementBlock(Fragment, null, [
4554
4704
  createElementVNode("header", _hoisted_1$2, [
4555
- props.icon ? (openBlock(), createBlock(KdsIcon, {
4705
+ props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
4556
4706
  key: 0,
4557
- name: props.icon,
4707
+ name: props.leadingIcon,
4558
4708
  size: "medium"
4559
4709
  }, null, 8, ["name"])) : createCommentVNode("", true),
4560
- createElementVNode("div", _hoisted_2$1, toDisplayString(props.title), 1),
4561
- createVNode(_sfc_main$B, {
4710
+ createElementVNode("div", _hoisted_2$1, toDisplayString(props.headline), 1),
4711
+ createVNode(_sfc_main$D, {
4562
4712
  "leading-icon": "x-close",
4563
4713
  variant: "transparent",
4564
4714
  size: "medium",
@@ -4580,14 +4730,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4580
4730
  }
4581
4731
  });
4582
4732
 
4583
- const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-ff11e839"]]);
4733
+ const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b2e57108"]]);
4584
4734
 
4585
4735
  const _hoisted_1$1 = ["closedby"];
4586
4736
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4587
4737
  __name: "KdsModal",
4588
4738
  props: /* @__PURE__ */ mergeDefaults({
4589
- icon: {},
4590
- title: {},
4739
+ leadingIcon: {},
4740
+ headline: {},
4591
4741
  variant: {},
4592
4742
  width: {},
4593
4743
  height: {},
@@ -4598,7 +4748,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4598
4748
  emits: ["close", "closed"],
4599
4749
  setup(__props, { emit: __emit }) {
4600
4750
  useCssVars((_ctx) => ({
4601
- "v6fde1eb1": _ctx.overflow
4751
+ "v073dd16a": _ctx.overflow
4602
4752
  }));
4603
4753
  const props = __props;
4604
4754
  const emit = __emit;
@@ -4658,15 +4808,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4658
4808
  onCancel: withModifiers(onClose, ["prevent"])
4659
4809
  }, [
4660
4810
  renderSlot(_ctx.$slots, "default", {
4661
- title: __props.title,
4662
- icon: __props.icon,
4811
+ headline: __props.headline,
4812
+ leadingIcon: __props.leadingIcon,
4663
4813
  variant: __props.variant,
4664
4814
  overflow: __props.overflow,
4665
4815
  onClose
4666
4816
  }, () => [
4667
4817
  createVNode(KdsModalLayout, {
4668
- title: __props.title,
4669
- icon: __props.icon,
4818
+ headline: __props.headline,
4819
+ "leading-icon": __props.leadingIcon,
4670
4820
  variant: __props.variant,
4671
4821
  overflow: __props.overflow,
4672
4822
  onClose
@@ -4678,14 +4828,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4678
4828
  renderSlot(_ctx.$slots, "footer", {}, void 0, true)
4679
4829
  ]),
4680
4830
  _: 3
4681
- }, 8, ["title", "icon", "variant", "overflow"])
4831
+ }, 8, ["headline", "leading-icon", "variant", "overflow"])
4682
4832
  ], true)
4683
4833
  ], 42, _hoisted_1$1)) : createCommentVNode("", true);
4684
4834
  };
4685
4835
  }
4686
4836
  });
4687
4837
 
4688
- const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f7b58ae1"]]);
4838
+ const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5a8d7ce3"]]);
4689
4839
 
4690
4840
  const defaultCancelButton = {
4691
4841
  type: "cancel",
@@ -4809,10 +4959,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4809
4959
  if (!config.value) {
4810
4960
  return {};
4811
4961
  }
4812
- const { icon, title, height, width, variant, overflow, closedby } = config.value.value;
4962
+ const { leadingIcon, headline, height, width, variant, overflow, closedby } = config.value.value;
4813
4963
  return {
4814
- icon,
4815
- title,
4964
+ leadingIcon,
4965
+ headline,
4816
4966
  height,
4817
4967
  width,
4818
4968
  variant,
@@ -4831,7 +4981,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4831
4981
  unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [
4832
4982
  createElementVNode("div", _hoisted_2, toDisplayString(unref(config).value.message), 1),
4833
4983
  unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [
4834
- createVNode(_sfc_main$u, {
4984
+ createVNode(_sfc_main$w, {
4835
4985
  modelValue: askAgain.value,
4836
4986
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
4837
4987
  label: unref(config).value.doNotAskAgain.label,
@@ -4846,7 +4996,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4846
4996
  name: "footer",
4847
4997
  fn: withCtx(() => [
4848
4998
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
4849
- return openBlock(), createBlock(_sfc_main$B, {
4999
+ return openBlock(), createBlock(_sfc_main$D, {
4850
5000
  key: index,
4851
5001
  destructive: button.destructive,
4852
5002
  autofocus: button.autofocus,
@@ -4876,7 +5026,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4876
5026
  }
4877
5027
  });
4878
5028
 
4879
- const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67e036b5"]]);
5029
+ const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-41fc8d84"]]);
4880
5030
 
4881
- export { KdsAvatar, KdsBadge, _sfc_main$B as KdsButton, KdsCardClickable, _sfc_main$u as KdsCheckbox, KdsCheckboxGroup, _sfc_main$j as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$8 as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsLabel, _sfc_main$A as KdsLinkButton, KdsLiveStatus, KdsLoadingSpinner, KdsModal, KdsModalLayout, _sfc_main$i as KdsNumberInput, _sfc_main$h as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, _sfc_main$g as KdsSearchInput, KdsSubText, _sfc_main$l as KdsTextInput, KdsTextarea, _sfc_main$z as KdsToggleButton, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
5031
+ export { KdsAvatar, KdsBadge, _sfc_main$D as KdsButton, KdsCardClickable, _sfc_main$w as KdsCheckbox, KdsCheckboxGroup, _sfc_main$l as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$8 as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, _sfc_main$C as KdsLinkButton, KdsLiveStatus, KdsLoadingSpinner, KdsModal, KdsModalLayout, _sfc_main$k as KdsNumberInput, _sfc_main$j as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, _sfc_main$i as KdsSearchInput, KdsSubText, _sfc_main$n as KdsTextInput, KdsTextarea, _sfc_main$B as KdsToggleButton, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
4882
5032
  //# sourceMappingURL=index.js.map