@knime/kds-components 13.6.0 → 14.0.1

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 (34) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{KdsIcon-C6QibTIl.js → KdsIcon-Tvw8bbUN.js} +118 -91
  3. package/dist/KdsIcon-Tvw8bbUN.js.map +1 -0
  4. package/dist/index.css +138 -105
  5. package/dist/index.js +67 -63
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/components/feedback/ProgressBar/types.d.ts +1 -1
  8. package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts.map +1 -1
  9. package/dist/src/components/forms/RadioButton/KdsRadioButton.vue.d.ts.map +1 -1
  10. package/dist/src/components/forms/inputs/BaseInput.vue.d.ts +2 -2
  11. package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +2 -2
  12. package/dist/src/components/forms/selects/Dropdown/BaseDropdown.vue.d.ts +2 -2
  13. package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
  14. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts +2 -2
  15. package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
  16. package/dist/src/layouts/panels/{Collapsable/KdsCollapsable.vue.d.ts → Collapsible/KdsCollapsible.vue.d.ts} +79 -17
  17. package/dist/src/layouts/panels/Collapsible/KdsCollapsible.vue.d.ts.map +1 -0
  18. package/dist/src/layouts/panels/Collapsible/enums.d.ts +15 -0
  19. package/dist/src/layouts/panels/Collapsible/enums.d.ts.map +1 -0
  20. package/dist/src/layouts/panels/Collapsible/index.d.ts +4 -0
  21. package/dist/src/layouts/panels/Collapsible/index.d.ts.map +1 -0
  22. package/dist/src/layouts/panels/Collapsible/types.d.ts +92 -0
  23. package/dist/src/layouts/panels/Collapsible/types.d.ts.map +1 -0
  24. package/dist/src/layouts/panels/Panel/enums.d.ts +1 -1
  25. package/dist/src/layouts/panels/index.d.ts +2 -2
  26. package/package.json +6 -6
  27. package/dist/KdsIcon-C6QibTIl.js.map +0 -1
  28. package/dist/src/layouts/panels/Collapsable/KdsCollapsable.vue.d.ts.map +0 -1
  29. package/dist/src/layouts/panels/Collapsable/enums.d.ts +0 -13
  30. package/dist/src/layouts/panels/Collapsable/enums.d.ts.map +0 -1
  31. package/dist/src/layouts/panels/Collapsable/index.d.ts +0 -4
  32. package/dist/src/layouts/panels/Collapsable/index.d.ts.map +0 -1
  33. package/dist/src/layouts/panels/Collapsable/types.d.ts +0 -69
  34. package/dist/src/layouts/panels/Collapsable/types.d.ts.map +0 -1
@@ -6,7 +6,7 @@ type KdsProgressBarBase = {
6
6
  */
7
7
  size?: KdsProgressBarSize;
8
8
  /**
9
- * Tooltip text shown on hover. Accessible via aria-describedby.
9
+ * Tooltip text shown on hover. Exposed as the bar's accessible description.
10
10
  * If omitted, a default text is used ("Loading" for indeterminate,
11
11
  * otherwise "Progress: <percentage>%").
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"KdsDropzone.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Dropzone/KdsDropzone.vue"],"names":[],"mappings":"AAihBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EACxB,MAAM,SAAS,CAAC;AA2OjB,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;CACnB,CAAC;AAgTF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsDropzone.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Dropzone/KdsDropzone.vue"],"names":[],"mappings":"AAkiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EACxB,MAAM,SAAS,CAAC;AA2OjB,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;CACnB,CAAC;AAgTF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdsRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/KdsRadioButton.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA2BvC,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiGxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/KdsRadioButton.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA2BvC,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAmGxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -156,18 +156,18 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
156
156
  focus: (options?: FocusOptions) => void;
157
157
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
158
158
  input: (event: Event) => any;
159
+ keydown: (event: KeyboardEvent) => any;
159
160
  blur: (event: FocusEvent) => any;
160
161
  click: (event: MouseEvent) => any;
161
162
  focus: (event: FocusEvent) => any;
162
- keydown: (event: KeyboardEvent) => any;
163
163
  paste: (event: ClipboardEvent) => any;
164
164
  "update:modelValue": (value: string) => any;
165
165
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
166
166
  onInput?: ((event: Event) => any) | undefined;
167
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
167
168
  onBlur?: ((event: FocusEvent) => any) | undefined;
168
169
  onClick?: ((event: MouseEvent) => any) | undefined;
169
170
  onFocus?: ((event: FocusEvent) => any) | undefined;
170
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
171
171
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
172
172
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -46,9 +46,9 @@ declare const __VLS_export: import('vue').DefineComponent<({
46
46
  resultsMaxHeight?: string;
47
47
  leadingIcon?: import('../../..').KdsIconName;
48
48
  } & __VLS_ModelProps), KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
+ keydown: (event: KeyboardEvent) => any;
49
50
  blur: (event: FocusEvent) => any;
50
51
  focus: (event: FocusEvent) => any;
51
- keydown: (event: KeyboardEvent) => any;
52
52
  "update:modelValue": (value: string) => any;
53
53
  resultClick: (id?: string | undefined) => any;
54
54
  }, string, import('vue').PublicProps, Readonly<({
@@ -94,9 +94,9 @@ declare const __VLS_export: import('vue').DefineComponent<({
94
94
  resultsMaxHeight?: string;
95
95
  leadingIcon?: import('../../..').KdsIconName;
96
96
  } & __VLS_ModelProps)> & Readonly<{
97
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
97
98
  onBlur?: ((event: FocusEvent) => any) | undefined;
98
99
  onFocus?: ((event: FocusEvent) => any) | undefined;
99
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
100
100
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
101
101
  onResultClick?: ((id?: string | undefined) => any) | undefined;
102
102
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -6,12 +6,12 @@ type __VLS_ModelProps = {
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- click: () => any;
10
9
  keydown: (event: KeyboardEvent) => any;
10
+ click: () => any;
11
11
  "update:open": (value: boolean) => any;
12
12
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
- onClick?: (() => any) | undefined;
14
13
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
14
+ onClick?: (() => any) | undefined;
15
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"AA+iBA,OAAO,KAAK,EAEV,sBAAsB,EACtB,6BAA6B,EAG9B,MAAM,SAAS,CAAC;AAkkBjB,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsMenuContainer.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists/MenuContainer/KdsMenuContainer.vue"],"names":[],"mappings":"AAqjBA,OAAO,KAAK,EAEV,sBAAsB,EACtB,6BAA6B,EAG9B,MAAM,SAAS,CAAC;AAwkBjB,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -12,11 +12,11 @@ type __VLS_Slots = {
12
12
  children(): unknown;
13
13
  };
14
14
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, KdsMenuItemExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- mouseenter: (event: MouseEvent) => any;
16
15
  click: (event: MouseEvent) => any;
16
+ mouseenter: (event: MouseEvent) => any;
17
17
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onMouseenter?: ((event: MouseEvent) => any) | undefined;
19
18
  onClick?: ((event: MouseEvent) => any) | undefined;
19
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,KAAK,CAAC;AAOzE,OAAO,mBAAmB,CAAC;AAqB3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AAqOD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CA2B9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
1
+ {"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAC;AAMvD,OAAO,mBAAmB,CAAC;AAkC3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AA4QD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CAgC9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
@@ -15,64 +15,126 @@ type __VLS_Slots = {
15
15
  */
16
16
  trailing?(): unknown;
17
17
  /**
18
- * Content revealed when the collapsable is expanded.
18
+ * Content revealed when the collapsible is expanded. It is not indented, so
19
+ * it starts at the header's left edge, also when a `leadingIcon` is set. To
20
+ * align it with the headline, add the indentation in the content itself.
19
21
  */
20
22
  default(): unknown;
21
23
  };
22
24
  type __VLS_ModelProps = {
23
- /** Whether the collapsable is expanded. */
25
+ /** Whether the collapsible is expanded. */
24
26
  modelValue?: boolean;
25
27
  };
26
28
  declare const __VLS_base: import('vue').DefineComponent<({
27
- size?: import('./types').KdsCollapsableSize;
29
+ variant?: import('./types').KdsCollapsibleVariant;
28
30
  topBorder?: boolean;
29
31
  bottomBorder?: boolean;
30
- description?: string;
31
- subText?: string;
32
+ expandable?: boolean;
33
+ toggle?: import('./types').KdsCollapsibleToggle;
34
+ } & {
35
+ headline: string;
32
36
  leadingIcon?: import('../../..').KdsIconName;
37
+ ariaLabel?: never;
38
+ } & {
39
+ description: string;
40
+ subText?: string;
41
+ } & __VLS_ModelProps) | ({
42
+ variant?: import('./types').KdsCollapsibleVariant;
43
+ topBorder?: boolean;
44
+ bottomBorder?: boolean;
33
45
  expandable?: boolean;
34
- toggle?: import('./types').KdsCollapsableToggle;
46
+ toggle?: import('./types').KdsCollapsibleToggle;
35
47
  } & {
36
48
  headline: string;
49
+ leadingIcon?: import('../../..').KdsIconName;
37
50
  ariaLabel?: never;
51
+ } & {
52
+ description?: never;
53
+ subText?: never;
38
54
  } & __VLS_ModelProps) | ({
39
- size?: import('./types').KdsCollapsableSize;
55
+ variant?: import('./types').KdsCollapsibleVariant;
40
56
  topBorder?: boolean;
41
57
  bottomBorder?: boolean;
42
- description?: string;
58
+ expandable?: boolean;
59
+ toggle?: import('./types').KdsCollapsibleToggle;
60
+ } & {
61
+ headline?: never;
62
+ ariaLabel: string;
63
+ } & {
64
+ description: string;
43
65
  subText?: string;
66
+ } & {
44
67
  leadingIcon?: import('../../..').KdsIconName;
68
+ } & __VLS_ModelProps) | ({
69
+ variant?: import('./types').KdsCollapsibleVariant;
70
+ topBorder?: boolean;
71
+ bottomBorder?: boolean;
45
72
  expandable?: boolean;
46
- toggle?: import('./types').KdsCollapsableToggle;
73
+ toggle?: import('./types').KdsCollapsibleToggle;
47
74
  } & {
48
75
  headline?: never;
49
76
  ariaLabel: string;
77
+ } & {
78
+ description?: never;
79
+ subText?: never;
80
+ } & {
81
+ leadingIcon?: never;
50
82
  } & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
83
  "update:modelValue": (value: boolean) => any;
52
84
  }, string, import('vue').PublicProps, Readonly<({
53
- size?: import('./types').KdsCollapsableSize;
85
+ variant?: import('./types').KdsCollapsibleVariant;
54
86
  topBorder?: boolean;
55
87
  bottomBorder?: boolean;
56
- description?: string;
57
- subText?: string;
88
+ expandable?: boolean;
89
+ toggle?: import('./types').KdsCollapsibleToggle;
90
+ } & {
91
+ headline: string;
58
92
  leadingIcon?: import('../../..').KdsIconName;
93
+ ariaLabel?: never;
94
+ } & {
95
+ description: string;
96
+ subText?: string;
97
+ } & __VLS_ModelProps) | ({
98
+ variant?: import('./types').KdsCollapsibleVariant;
99
+ topBorder?: boolean;
100
+ bottomBorder?: boolean;
59
101
  expandable?: boolean;
60
- toggle?: import('./types').KdsCollapsableToggle;
102
+ toggle?: import('./types').KdsCollapsibleToggle;
61
103
  } & {
62
104
  headline: string;
105
+ leadingIcon?: import('../../..').KdsIconName;
63
106
  ariaLabel?: never;
107
+ } & {
108
+ description?: never;
109
+ subText?: never;
64
110
  } & __VLS_ModelProps) | ({
65
- size?: import('./types').KdsCollapsableSize;
111
+ variant?: import('./types').KdsCollapsibleVariant;
66
112
  topBorder?: boolean;
67
113
  bottomBorder?: boolean;
68
- description?: string;
114
+ expandable?: boolean;
115
+ toggle?: import('./types').KdsCollapsibleToggle;
116
+ } & {
117
+ headline?: never;
118
+ ariaLabel: string;
119
+ } & {
120
+ description: string;
69
121
  subText?: string;
122
+ } & {
70
123
  leadingIcon?: import('../../..').KdsIconName;
124
+ } & __VLS_ModelProps) | ({
125
+ variant?: import('./types').KdsCollapsibleVariant;
126
+ topBorder?: boolean;
127
+ bottomBorder?: boolean;
71
128
  expandable?: boolean;
72
- toggle?: import('./types').KdsCollapsableToggle;
129
+ toggle?: import('./types').KdsCollapsibleToggle;
73
130
  } & {
74
131
  headline?: never;
75
132
  ariaLabel: string;
133
+ } & {
134
+ description?: never;
135
+ subText?: never;
136
+ } & {
137
+ leadingIcon?: never;
76
138
  } & __VLS_ModelProps)> & Readonly<{
77
139
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
78
140
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -84,4 +146,4 @@ type __VLS_WithSlots<T, S> = T & {
84
146
  $slots: S;
85
147
  };
86
148
  };
87
- //# sourceMappingURL=KdsCollapsable.vue.d.ts.map
149
+ //# sourceMappingURL=KdsCollapsible.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/KdsCollapsible.vue"],"names":[],"mappings":"AAkVA,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAOF,KAAK,gBAAgB,GAAG;IACxB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA6NF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const kdsCollapsibleVariant: {
2
+ /** A standalone section with a bold headline, description and subtext. */
3
+ readonly SECTION: "section";
4
+ /** A compact row with non-wrapping texts for inline text bodies, e.g. AI tool calls. */
5
+ readonly INLINE: "inline";
6
+ };
7
+ export declare const kdsCollapsibleVariants: ("section" | "inline")[];
8
+ export declare const kdsCollapsibleToggle: {
9
+ /** The whole header toggles the content. */
10
+ readonly HEADER: "header";
11
+ /** Only a chevron button toggles the content; the rest of the header does not. */
12
+ readonly CHEVRON: "chevron";
13
+ };
14
+ export declare const kdsCollapsibleToggles: ("header" | "chevron")[];
15
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;IAChC,0EAA0E;;IAE1E,wFAAwF;;CAEhF,CAAC;AAEX,eAAO,MAAM,sBAAsB,0BAAuC,CAAC;AAE3E,eAAO,MAAM,oBAAoB;IAC/B,4CAA4C;;IAE5C,kFAAkF;;CAE1E,CAAC;AAEX,eAAO,MAAM,qBAAqB,0BAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as KdsCollapsible } from './KdsCollapsible.vue';
2
+ export type { KdsCollapsibleProps, KdsCollapsibleToggle, KdsCollapsibleVariant, } from './types';
3
+ export { kdsCollapsibleToggle, kdsCollapsibleToggles, kdsCollapsibleVariant, kdsCollapsibleVariants, } from './enums';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { KdsIconName } from '../../../components/accessories/Icon/types';
2
+ import { kdsCollapsibleToggle, kdsCollapsibleVariant } from './enums';
3
+ export type KdsCollapsibleVariant = (typeof kdsCollapsibleVariant)[keyof typeof kdsCollapsibleVariant];
4
+ export type KdsCollapsibleToggle = (typeof kdsCollapsibleToggle)[keyof typeof kdsCollapsibleToggle];
5
+ type KdsCollapsibleCommonProps = {
6
+ /**
7
+ * Where the collapsible is used.
8
+ *
9
+ * `section` (default) is a standalone section: it stacks a bold headline,
10
+ * description and subtext and wraps them.
11
+ * `inline` is a compact row for inline text bodies and actions such as AI
12
+ * tool calls. Its header texts do not wrap: each is truncated with an
13
+ * ellipsis, and a description sits on its own line below the headline.
14
+ */
15
+ variant?: KdsCollapsibleVariant;
16
+ /**
17
+ * Renders a divider above the header.
18
+ */
19
+ topBorder?: boolean;
20
+ /**
21
+ * Renders a divider below the component.
22
+ */
23
+ bottomBorder?: boolean;
24
+ /**
25
+ * Whether the row can be expanded. When `false`, the chevron is hidden and
26
+ * the header renders as a static, non-interactive row with nothing to
27
+ * expand.
28
+ */
29
+ expandable?: boolean;
30
+ /**
31
+ * Which control toggles the disclosure.
32
+ *
33
+ * `header` (default) makes the whole header a toggle button — use it when
34
+ * the header has no interactive content. `chevron` moves the toggle to a
35
+ * dedicated chevron button, leaving the rest of the header free for
36
+ * interactive content such as links.
37
+ */
38
+ toggle?: KdsCollapsibleToggle;
39
+ };
40
+ type WithDescription = {
41
+ /**
42
+ * Secondary text shown below the headline, or on its own when there is no
43
+ * headline, e.g. when a headline would be too prominent.
44
+ */
45
+ description: string;
46
+ /**
47
+ * Tertiary subtext shown below the description. Only allowed together with
48
+ * `description`.
49
+ */
50
+ subText?: string;
51
+ };
52
+ type WithoutDescription = {
53
+ description?: never;
54
+ /** A subtext without a description is not supported. */
55
+ subText?: never;
56
+ };
57
+ type LeadingIcon = KdsIconName;
58
+ type WithHeadline = {
59
+ /**
60
+ * Headline shown on the leading side. Rendered as a bold title in both
61
+ * variants: medium in `section`, small in `inline`. Also names the toggle
62
+ * for assistive technology.
63
+ */
64
+ headline: string;
65
+ /**
66
+ * Icon shown before the header text. Only allowed together with a
67
+ * `headline` or a `description`; it is centred on the first text line.
68
+ */
69
+ leadingIcon?: LeadingIcon;
70
+ ariaLabel?: never;
71
+ } & (WithDescription | WithoutDescription);
72
+ type WithoutHeadline = {
73
+ headline?: never;
74
+ /**
75
+ * Accessible name of the toggle, used as is in both toggle modes. Required
76
+ * when no `headline` is present, i.e. when the header shows only a
77
+ * `description` or the `leading` slot provides the header content.
78
+ */
79
+ ariaLabel: string;
80
+ } & ((WithDescription & {
81
+ /**
82
+ * Icon shown before the header text. Only allowed together with a
83
+ * `headline` or a `description`; it is centred on the first text line.
84
+ */
85
+ leadingIcon?: LeadingIcon;
86
+ }) | (WithoutDescription & {
87
+ /** An icon without a headline or description is not supported. */
88
+ leadingIcon?: never;
89
+ }));
90
+ export type KdsCollapsibleProps = KdsCollapsibleCommonProps & (WithHeadline | WithoutHeadline);
91
+ export {};
92
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE,KAAK,yBAAyB,GAAG;IAC/B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,wDAAwD;IACxD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,KAAK,WAAW,GAAG,WAAW,CAAC;AAE/B,KAAK,YAAY,GAAG;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,GAAG,CAAC,eAAe,GAAG,kBAAkB,CAAC,CAAC;AAE3C,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,CACA,CAAC,eAAe,GAAG;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC,GACF,CAAC,kBAAkB,GAAG;IACpB,kEAAkE;IAClE,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CACL,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,CAAC,YAAY,GAAG,eAAe,CAAC,CAAC"}
@@ -4,7 +4,7 @@ export declare const kdsPanelBodyOverflow: {
4
4
  readonly VISIBLE: "visible";
5
5
  readonly CLIP: "clip";
6
6
  };
7
- export declare const kdsPanelBodyOverflows: ("hidden" | "auto" | "visible" | "clip")[];
7
+ export declare const kdsPanelBodyOverflows: ("auto" | "hidden" | "visible" | "clip")[];
8
8
  export declare const kdsPanelBodyVariant: {
9
9
  readonly PADDED: "padded";
10
10
  readonly PLAIN: "plain";
@@ -1,7 +1,7 @@
1
1
  export * from './Accordion';
2
2
  export type * from './Accordion';
3
- export * from './Collapsable';
4
- export type * from './Collapsable';
3
+ export * from './Collapsible';
4
+ export type * from './Collapsible';
5
5
  export * from './Panel';
6
6
  export type * from './Panel';
7
7
  export * from './SplitPanel';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "13.6.0",
3
+ "version": "14.0.1",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  "vue": "~3.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@knime/kds-styles": "^13.6.0",
39
- "@knime/utils": "^2.1.0",
38
+ "@knime/kds-styles": "^14.0.1",
39
+ "@knime/utils": "^3.0.0",
40
40
  "consola": "^3.4.2",
41
41
  "motion": "^12.42.2",
42
42
  "temporal-polyfill": "^1.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@knime/kds-code-editor": "^13.6.0",
46
- "@knime/kds-table": "^13.6.0",
45
+ "@knime/kds-code-editor": "^14.0.1",
46
+ "@knime/kds-table": "^14.0.1",
47
47
  "@storybook/vue3-vite": "^10.6.2",
48
48
  "@vitejs/plugin-vue": "^6.0.8",
49
49
  "@vue/test-utils": "^2.4.11",
@@ -61,7 +61,7 @@
61
61
  "vue-tsc": "^3.3.8"
62
62
  },
63
63
  "engines": {
64
- "node": ">=24"
64
+ "node": ">=26"
65
65
  },
66
66
  "sideEffects": [
67
67
  "dist/*.css"
@@ -1 +0,0 @@
1
- {"version":3,"file":"KdsIcon-C6QibTIl.js","names":[],"sources":["../src/util/useKdsIsTruncated.ts","../src/layouts/overlays/Tooltip/vKdsTooltip.ts","../src/components/accessories/Icon/useIcon.ts","../src/components/accessories/Icon/KdsIcon.vue","../src/components/accessories/Icon/KdsIcon.vue"],"sourcesContent":["import { type Ref, ref } from \"vue\";\nimport { useMutationObserver, useResizeObserver } from \"@vueuse/core\";\n\nexport function elementOverflowsHorizontally(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollWidth > element.clientWidth;\n}\n\nexport function elementOverflowsVertically(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollHeight > element.clientHeight;\n}\n\n/**\n * Tracks whether the content of an element is visually truncated.\n *\n * Detects both horizontal truncation (e.g. `text-overflow: ellipsis`)\n * and vertical truncation (e.g. `-webkit-line-clamp`).\n *\n * This can be used to set tooltips or other UI affordances when text is cut off.\n * Changing the size of the provided element based on this composable may result in an infinite loop!\n *\n * @param elementRef - A ref pointing to the element that might be truncated.\n * @returns An object containing a reactive `isTruncated` ref.\n */\nexport function useKdsIsTruncated(elementRef: Ref<HTMLElement | null>) {\n const isTruncated = ref(false);\n\n const checkTruncation = () => {\n isTruncated.value =\n elementOverflowsHorizontally(elementRef.value) ||\n elementOverflowsVertically(elementRef.value);\n };\n\n useResizeObserver(elementRef, checkTruncation);\n\n // Observe changes to the element's subtree, including text-node updates,\n // so content changes without size changes still re-check truncation.\n useMutationObserver(elementRef, checkTruncation, {\n childList: true,\n characterData: true,\n subtree: true,\n // Also observe attribute changes (especially class/style) that can affect\n // truncation without necessarily triggering a resize event.\n attributes: true,\n attributeFilter: [\"class\", \"style\"],\n });\n\n return { isTruncated };\n}\n","import { type Directive, type DirectiveBinding, effectScope } from \"vue\";\nimport { useEventListener } from \"@vueuse/core\";\n\nimport {\n elementOverflowsHorizontally,\n elementOverflowsVertically,\n} from \"../../../util/useKdsIsTruncated\";\nimport \"./vKdsTooltip.css\";\n\ntype TooltipState = {\n triggerEl: HTMLElement;\n popoverEl: HTMLDivElement;\n showTimer: ReturnType<typeof setTimeout> | null;\n hideTimer: ReturnType<typeof setTimeout> | null;\n dismissed: boolean;\n visible: boolean;\n attached: boolean;\n scope: ReturnType<typeof effectScope>;\n};\n\nconst SHOW_DELAY = 450;\nconst HIDE_DELAY = 150;\n\nconst stateMap = new WeakMap<HTMLElement, TooltipState>();\n\nlet visibleCount = 0;\nlet currentVisible: TooltipState | null = null;\n\nexport function generateTooltipDiv(text: string): HTMLDivElement {\n const div = document.createElement(\"div\");\n div.classList.add(\"kds-tooltip\");\n div.textContent = text;\n return div;\n}\n\nfunction getText(binding: DirectiveBinding): string | null {\n const value = binding.value;\n if (value === null || value === undefined || value === \"\") {\n return null;\n }\n return String(value);\n}\n\nfunction isTruncatedMod(binding: DirectiveBinding): boolean {\n return binding.arg === \"truncated\";\n}\n\nfunction elementIsTruncated(el: HTMLElement | null): boolean {\n return elementOverflowsHorizontally(el) || elementOverflowsVertically(el);\n}\n\nfunction createPopover(\n triggerEl: HTMLElement,\n binding: DirectiveBinding,\n): HTMLDivElement {\n const popover = generateTooltipDiv(getText(binding) ?? \"\");\n popover.setAttribute(\"popover\", \"manual\");\n popover.setAttribute(\"role\", \"tooltip\");\n popover.setAttribute(\"aria-hidden\", \"true\");\n\n const id = `kds-tooltip-${crypto.randomUUID()}`;\n popover.id = id;\n\n if (!isTruncatedMod(binding)) {\n triggerEl.setAttribute(\"aria-describedby\", id);\n }\n\n return popover;\n}\n\nfunction attachPopover(state: TooltipState) {\n if (state.attached) {\n return;\n }\n\n state.attached = true;\n // Appended to `document.body` (or shadow dom root node) to ensure element is decoupled from the Vue render\n // tree for the component using this directive. Otherwise, if inserted inside the render tree this can cause errors during\n // VDOM mutations (e.g v-if) because this element would have been inserted outside of Vue's internal updates\n const root = state.triggerEl.getRootNode();\n // eslint-disable-next-line no-restricted-syntax -- only when the trigger is not in a shadow root\n const appendBase = root === document ? document.body : root;\n appendBase.appendChild(state.popoverEl);\n}\n\nfunction detachPopover(state: TooltipState) {\n if (!state.attached) {\n return;\n }\n state.attached = false;\n state.popoverEl.remove();\n}\n\nfunction cancelTimers(state: TooltipState) {\n if (state.showTimer !== null) {\n clearTimeout(state.showTimer);\n state.showTimer = null;\n }\n if (state.hideTimer !== null) {\n clearTimeout(state.hideTimer);\n state.hideTimer = null;\n }\n}\n\nfunction hidePopover(state: TooltipState) {\n if (!state.visible) {\n return;\n }\n state.visible = false;\n visibleCount--;\n if (currentVisible === state) {\n currentVisible = null;\n }\n try {\n state.popoverEl.hidePopover();\n } catch {\n // ignore if already hidden or not connected\n }\n detachPopover(state);\n}\n\nfunction showPopover(state: TooltipState) {\n if (state.visible) {\n return;\n }\n if (currentVisible && currentVisible !== state) {\n cancelTimers(currentVisible);\n hidePopover(currentVisible);\n }\n attachPopover(state);\n try {\n // `source` makes the trigger the tooltip's implicit anchor\n state.popoverEl.showPopover({ source: state.triggerEl });\n } catch {\n // ignore if already showing or not connected\n }\n state.visible = true;\n visibleCount++;\n currentVisible = state;\n}\n\nfunction scheduleShow(\n state: TooltipState,\n delay: number,\n canShow: () => boolean,\n) {\n cancelTimers(state);\n if (state.dismissed) {\n return;\n }\n state.showTimer = setTimeout(() => {\n state.showTimer = null;\n if (!canShow()) {\n return;\n }\n showPopover(state);\n }, delay);\n}\n\nfunction scheduleHide(state: TooltipState) {\n cancelTimers(state);\n state.hideTimer = setTimeout(() => {\n state.hideTimer = null;\n hidePopover(state);\n }, HIDE_DELAY);\n}\n\nfunction mount(triggerEl: HTMLElement, binding: DirectiveBinding) {\n if (getText(binding) === null) {\n return;\n }\n\n const popoverEl = createPopover(triggerEl, binding);\n\n const state: TooltipState = {\n triggerEl,\n popoverEl,\n showTimer: null,\n hideTimer: null,\n dismissed: false,\n visible: false,\n attached: false,\n scope: effectScope(),\n };\n\n stateMap.set(triggerEl, state);\n\n const canShow = () =>\n !isTruncatedMod(binding) || elementIsTruncated(triggerEl);\n\n const onMouseEnter = () => {\n state.dismissed = false;\n const delay = visibleCount > 0 ? 0 : SHOW_DELAY;\n scheduleShow(state, delay, canShow);\n };\n\n const onMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onFocusIn = () => {\n state.dismissed = false;\n if (triggerEl.matches(\":focus-visible\")) {\n scheduleShow(state, 0, canShow);\n }\n };\n\n const onFocusOut = () => {\n cancelTimers(state);\n hidePopover(state);\n };\n\n const onDocumentKeyDown = (e: KeyboardEvent) => {\n if (e.key === \"Escape\" && state.visible) {\n cancelTimers(state);\n hidePopover(state);\n state.dismissed = true;\n }\n };\n\n const onPopoverMouseEnter = () => {\n cancelTimers(state);\n };\n\n const onPopoverMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onScroll = () => {\n cancelTimers(state);\n if (state.visible) {\n hidePopover(state);\n }\n };\n\n state.scope.run(() => {\n useEventListener(triggerEl, \"mouseenter\", onMouseEnter);\n useEventListener(triggerEl, \"mouseleave\", onMouseLeave);\n useEventListener(triggerEl, \"focusin\", onFocusIn);\n useEventListener(triggerEl, \"focusout\", onFocusOut);\n useEventListener(document, \"keydown\", onDocumentKeyDown, true);\n useEventListener(document, \"scroll\", onScroll, true);\n\n useEventListener(popoverEl, \"mouseenter\", onPopoverMouseEnter);\n useEventListener(popoverEl, \"mouseleave\", onPopoverMouseLeave);\n });\n}\n\nfunction unmount(triggerEl: HTMLElement, binding?: DirectiveBinding) {\n const state = stateMap.get(triggerEl);\n if (state) {\n state.scope.stop();\n cancelTimers(state);\n hidePopover(state);\n stateMap.delete(triggerEl);\n }\n\n if (!binding || !isTruncatedMod(binding)) {\n triggerEl.removeAttribute(\"aria-describedby\");\n }\n}\n\nexport const vKdsTooltip: Directive<HTMLElement> = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n mount(el, binding);\n },\n\n updated(el: HTMLElement, binding: DirectiveBinding) {\n const state = stateMap.get(el);\n const newText = getText(binding);\n\n if (newText === null) {\n if (state) {\n unmount(el, binding);\n }\n return;\n }\n\n if (!state) {\n mount(el, binding);\n return;\n }\n\n state.popoverEl.textContent = newText;\n },\n\n unmounted(el: HTMLElement, binding: DirectiveBinding) {\n unmount(el, binding);\n },\n};\n\n/** @internal Reset module-level state for tests */\nexport function _resetVisibleCount() {\n visibleCount = 0;\n currentVisible = null;\n}\n","import {\n type DefineComponent,\n type Ref,\n type ShallowRef,\n markRaw,\n readonly,\n shallowRef,\n watch,\n} from \"vue\";\n\nimport type { KdsIconStatus } from \"./types\";\n\n// Module-scoped caches shared across all `KdsIcon` instances.\nconst iconCache = new Map<string, DefineComponent>();\nconst iconLoadPromises = new Map<string, Promise<DefineComponent>>();\n\n/**\n * Test-only helper to reset the module-scoped icon caches between tests.\n * Not part of the public API.\n */\nexport function __resetIconCacheForTesting() {\n iconCache.clear();\n iconLoadPromises.clear();\n}\n\nfunction useIcon({\n name,\n folder,\n}: {\n name: Ref<string>;\n folder: \"icons\" | \"type-icons\";\n}): {\n iconComponent: Readonly<ShallowRef<DefineComponent | null>>;\n status: Readonly<ShallowRef<KdsIconStatus>>;\n} {\n const iconComponent = shallowRef<DefineComponent | null>(null);\n const status = shallowRef<KdsIconStatus>(\"loading\");\n\n watch(\n () => name.value,\n (newName) => {\n const cacheKey = `${folder}/${newName}`;\n\n if (iconCache.has(cacheKey)) {\n iconComponent.value = iconCache.get(cacheKey)!;\n status.value = \"loaded\";\n return;\n }\n\n status.value = \"loading\";\n\n // Deduplicate concurrent imports for the same icon so that rendering\n // many instances of the same icon at once only triggers a single\n // network request.\n let loadPromise = iconLoadPromises.get(cacheKey);\n if (!loadPromise) {\n // Do *not* change this code to use try/catch blocks:\n // try/catch relies on the async frame being intact when the rejection resumes.\n // Which might be gone due to vue teardown.\n // `.catch()` registers a reaction on the Promise's internal [[PromiseRejectReactions]]\n // slot directly, so it doesn't depend on a live call frame.\n loadPromise = import(\n `../../../../node_modules/@knime/kds-styles/dist/img/${folder}/${newName}.svg`\n )\n .then((module) => {\n const component = markRaw(module.default);\n iconCache.set(cacheKey, component);\n iconLoadPromises.delete(cacheKey);\n return component;\n })\n .catch((error) => {\n iconLoadPromises.delete(cacheKey);\n throw error;\n });\n iconLoadPromises.set(cacheKey, loadPromise);\n }\n\n loadPromise\n .then((component) => {\n // ignore stale resolutions if the name has changed in the meantime\n if (name.value !== newName) {\n return;\n }\n iconComponent.value = component;\n status.value = \"loaded\";\n })\n .catch((error) => {\n // do not log an abort, might happen due to teardown\n if (error.name === \"AbortError\") {\n return;\n }\n\n // ignore stale rejections if the name has changed in the meantime,\n // so we don't spam the console with errors for icons that are no\n // longer requested\n if (name.value !== newName) {\n return;\n }\n\n // eslint-disable-next-line no-console\n console.error(\n `Failed to load icon \"${newName}\" from folder \"${folder}\":`,\n error,\n );\n\n iconComponent.value = null;\n status.value = \"error\";\n });\n },\n { immediate: true },\n );\n\n return {\n iconComponent: readonly(iconComponent) as Readonly<\n ShallowRef<DefineComponent | null>\n >,\n status: readonly(status) as Readonly<ShallowRef<KdsIconStatus>>,\n };\n}\n\nexport default useIcon;\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n"],"mappings":";;;;AAGA,SAAgB,6BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,cAAc,QAAQ;AACvC;AAEA,SAAgB,2BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,eAAe,QAAQ;AACxC;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,YAAqC;CACrE,MAAM,cAAc,IAAI,KAAK;CAE7B,MAAM,wBAAwB;EAC5B,YAAY,QACV,6BAA6B,WAAW,KAAK,KAC7C,2BAA2B,WAAW,KAAK;CAC/C;CAEA,kBAAkB,YAAY,eAAe;CAI7C,oBAAoB,YAAY,iBAAiB;EAC/C,WAAW;EACX,eAAe;EACf,SAAS;EAGT,YAAY;EACZ,iBAAiB,CAAC,SAAS,OAAO;CACpC,CAAC;CAED,OAAO,EAAE,YAAY;AACvB;;;ACrCA,IAAM,aAAa;AACnB,IAAM,aAAa;AAEnB,IAAM,2BAAW,IAAI,QAAmC;AAExD,IAAI,eAAe;AACnB,IAAI,iBAAsC;AAE1C,SAAgB,mBAAmB,MAA8B;CAC/D,MAAM,MAAM,SAAS,cAAc,KAAK;CACxC,IAAI,UAAU,IAAI,aAAa;CAC/B,IAAI,cAAc;CAClB,OAAO;AACT;AAEA,SAAS,QAAQ,SAA0C;CACzD,MAAM,QAAQ,QAAQ;CACtB,IAAI,UAAU,QAAQ,UAAU,KA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AAI,QAAA,SAAQ;IAAA,CAAA;IACpC,sBAAoB,MAAM;IAC3B,eAAY;IACZ,WAAU;iEAEZ,mBAME,QAAA;;IAJC,OAAK,eAAA;KAAA;KAAe,QAAA;KAAI,EAAA,UAAI,QAAA,SAAQ;IAAA,CAAA;IACpC,sBAAoB,MAAM;IAC3B,eAAY;IACZ,WAAU"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"KdsCollapsable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/KdsCollapsable.vue"],"names":[],"mappings":"AAwSA,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAOF,KAAK,gBAAgB,GAAG;IACxB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA4MF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const kdsCollapsableSize: {
2
- readonly LARGE: "large";
3
- readonly SMALL: "small";
4
- };
5
- export declare const kdsCollapsableSizes: ("small" | "large")[];
6
- export declare const kdsCollapsableToggle: {
7
- /** The whole header toggles the content. */
8
- readonly HEADER: "header";
9
- /** Only a chevron button toggles the content; the rest of the header does not. */
10
- readonly CHEVRON: "chevron";
11
- };
12
- export declare const kdsCollapsableToggles: ("header" | "chevron")[];
13
- //# sourceMappingURL=enums.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,uBAAoC,CAAC;AAErE,eAAO,MAAM,oBAAoB;IAC/B,4CAA4C;;IAE5C,kFAAkF;;CAE1E,CAAC;AAEX,eAAO,MAAM,qBAAqB,0BAAsC,CAAC"}
@@ -1,4 +0,0 @@
1
- export { default as KdsCollapsable } from './KdsCollapsable.vue';
2
- export type * from './types';
3
- export { kdsCollapsableSize, kdsCollapsableSizes, kdsCollapsableToggle, kdsCollapsableToggles, } from './enums';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,SAAS,CAAC"}
@@ -1,69 +0,0 @@
1
- import { KdsIconName } from '../../../components/accessories/Icon/types';
2
- import { kdsCollapsableSize, kdsCollapsableToggle } from './enums';
3
- export type KdsCollapsableSize = (typeof kdsCollapsableSize)[keyof typeof kdsCollapsableSize];
4
- export type KdsCollapsableToggle = (typeof kdsCollapsableToggle)[keyof typeof kdsCollapsableToggle];
5
- type KdsCollapsableCommonProps = {
6
- /**
7
- * Visual size of the collapsable.
8
- *
9
- * `large` stacks a styled headline, description and subtext and wraps.
10
- * `small` is intended for compact, inline use cases and keeps its header
11
- * content on a single line, truncating overflow.
12
- */
13
- size?: KdsCollapsableSize;
14
- /**
15
- * Renders a divider above the header.
16
- */
17
- topBorder?: boolean;
18
- /**
19
- * Renders a divider below the component.
20
- */
21
- bottomBorder?: boolean;
22
- /**
23
- * Secondary text shown below the headline. Intended for `large` size.
24
- */
25
- description?: string;
26
- /**
27
- * Tertiary subtext shown below the description. Intended for `large` size.
28
- */
29
- subText?: string;
30
- /**
31
- * Icon shown before the headline.
32
- */
33
- leadingIcon?: KdsIconName;
34
- /**
35
- * Whether the row can be expanded. When `false`, the chevron is hidden and
36
- * the header renders as a static, non-interactive row with nothing to
37
- * expand.
38
- */
39
- expandable?: boolean;
40
- /**
41
- * Which control toggles the disclosure.
42
- *
43
- * `header` (default) makes the whole header a toggle button — use it when
44
- * the header has no interactive content. `chevron` moves the toggle to a
45
- * dedicated chevron button, leaving the rest of the header free for
46
- * interactive content such as links.
47
- */
48
- toggle?: KdsCollapsableToggle;
49
- };
50
- type WithHeadline = {
51
- /**
52
- * Headline shown on the leading side. Rendered as a bold title in `large`
53
- * and as body text in `small`. Also names the toggle for assistive
54
- * technology.
55
- */
56
- headline: string;
57
- ariaLabel?: never;
58
- };
59
- type WithoutHeadline = {
60
- headline?: never;
61
- /**
62
- * Accessible name of the toggle, used as is in both toggle modes. Required
63
- * when no `headline` is present.
64
- */
65
- ariaLabel: string;
66
- };
67
- export type KdsCollapsableProps = KdsCollapsableCommonProps & (WithHeadline | WithoutHeadline);
68
- export {};
69
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE,KAAK,yBAAyB,GAAG;IAC/B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,CAAC,YAAY,GAAG,eAAe,CAAC,CAAC"}