@knime/kds-components 6.12.2 → 7.1.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 (63) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/index.css +103 -103
  3. package/dist/index.js +829 -649
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts +29 -2
  6. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
  7. package/dist/src/components/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -1
  8. package/dist/src/components/accessories/Avatar/nameInitials.d.ts +9 -0
  9. package/dist/src/components/accessories/Avatar/nameInitials.d.ts.map +1 -0
  10. package/dist/src/components/accessories/Avatar/types.d.ts +28 -7
  11. package/dist/src/components/accessories/Avatar/types.d.ts.map +1 -1
  12. package/dist/src/components/accessories/Badge/enums.d.ts +1 -1
  13. package/dist/src/components/accessories/_Accessory/_Accessory.vue.d.ts.map +1 -1
  14. package/dist/src/components/accessories/_Accessory/types.d.ts +7 -5
  15. package/dist/src/components/accessories/_Accessory/types.d.ts.map +1 -1
  16. package/dist/src/components/buttons/BaseButton.vue.d.ts +10 -24
  17. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
  18. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +4 -24
  19. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -1
  20. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +12 -72
  21. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
  22. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts +12 -20
  23. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts.map +1 -1
  24. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts +30 -2
  25. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts.map +1 -1
  26. package/dist/src/components/buttons/KdsProgressButton/enums.d.ts +1 -1
  27. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts +8 -20
  28. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts.map +1 -1
  29. package/dist/src/components/buttons/KdsSelectButton/types.d.ts +19 -2
  30. package/dist/src/components/buttons/KdsSelectButton/types.d.ts.map +1 -1
  31. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -24
  32. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
  33. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +4 -24
  34. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -1
  35. package/dist/src/components/buttons/index.d.ts +1 -1
  36. package/dist/src/components/buttons/index.d.ts.map +1 -1
  37. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -24
  38. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -1
  39. package/dist/src/components/buttons/types.d.ts +8 -3
  40. package/dist/src/components/buttons/types.d.ts.map +1 -1
  41. package/dist/src/components/feedback/enums.d.ts +1 -1
  42. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts +4 -0
  43. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -1
  44. package/dist/src/components/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -1
  45. package/dist/src/components/forms/Checkbox/types.d.ts +5 -0
  46. package/dist/src/components/forms/Checkbox/types.d.ts.map +1 -1
  47. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts +15 -0
  48. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts.map +1 -0
  49. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts +2 -8
  50. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts.map +1 -1
  51. package/dist/src/components/forms/_helper/useRovingFocus.d.ts +35 -0
  52. package/dist/src/components/forms/_helper/useRovingFocus.d.ts.map +1 -0
  53. package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -1
  54. package/dist/src/components/forms/selects/Dropdown/types.d.ts +19 -0
  55. package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -1
  56. package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
  57. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
  58. package/dist/src/components/lists/MenuContainer/types.d.ts +12 -0
  59. package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -1
  60. package/dist/src/layouts/cards/CardHeader.vue.d.ts.map +1 -1
  61. package/dist/src/util/useKdsDarkMode.d.ts +5 -0
  62. package/dist/src/util/useKdsDarkMode.d.ts.map +1 -1
  63. package/package.json +4 -4
@@ -1,5 +1,32 @@
1
- import { KdsAvatarProps } from './types';
2
- declare const __VLS_export: import('vue').DefineComponent<KdsAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ declare const __VLS_export: import('vue').DefineComponent<({
2
+ src?: string;
3
+ size?: import('./types').KdsAvatarSize;
4
+ tooltip?: string;
5
+ } & {
6
+ name: string;
7
+ initials?: string;
8
+ }) | ({
9
+ src?: string;
10
+ size?: import('./types').KdsAvatarSize;
11
+ tooltip?: string;
12
+ } & {
13
+ initials: string;
14
+ name?: string;
15
+ }), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<({
16
+ src?: string;
17
+ size?: import('./types').KdsAvatarSize;
18
+ tooltip?: string;
19
+ } & {
20
+ name: string;
21
+ initials?: string;
22
+ }) | ({
23
+ src?: string;
24
+ size?: import('./types').KdsAvatarSize;
25
+ tooltip?: string;
26
+ } & {
27
+ initials: string;
28
+ name?: string;
29
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
30
  declare const _default: typeof __VLS_export;
4
31
  export default _default;
5
32
  //# sourceMappingURL=KdsAvatar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KdsAvatar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/KdsAvatar.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA4H9C,QAAA,MAAM,YAAY,wSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsAvatar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/KdsAvatar.vue"],"names":[],"mappings":"AA4WA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdsAvatarCounter.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/KdsAvatarCounter.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA0FrD,QAAA,MAAM,YAAY,sTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsAvatarCounter.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/KdsAvatarCounter.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAsFrD,QAAA,MAAM,YAAY,sTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Derives up to two uppercase initials from a (user/group) name.
3
+ * Splits on spaces, commas, periods, underscores and hyphens; runs of
4
+ * separators count as one, so "Lovelace, Ada" yields "LA".
5
+ * @param name the name to derive initials from, e.g. "Ada Lovelace"
6
+ * @return up to two uppercase initials, e.g. "AL"
7
+ */
8
+ export declare const nameInitials: (name: string) => string;
9
+ //# sourceMappingURL=nameInitials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nameInitials.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/nameInitials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAO/B,CAAC"}
@@ -1,10 +1,7 @@
1
1
  import { kdsAvatarSize } from './enums';
2
2
  export type KdsAvatarSize = (typeof kdsAvatarSize)[keyof typeof kdsAvatarSize];
3
- export type KdsAvatarProps = {
4
- /** The initials displayed as the avatar content and used as fallback when no image is provided
5
- * or the image fails to load. Only the first two characters are shown, uppercase. The background
6
- * color is automatically derived from this value. If omitted or empty, a special empty color is applied. */
7
- initials?: string;
3
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
4
+ type KdsAvatarBase = {
8
5
  /** Optional image. If provided and successfully loaded, it is shown instead of the initials. */
9
6
  src?: string;
10
7
  /**
@@ -15,9 +12,32 @@ export type KdsAvatarProps = {
15
12
  * Defaults to "xlarge".
16
13
  */
17
14
  size?: KdsAvatarSize;
18
- /** Tooltip text shown on hover and aria label. */
15
+ /** Tooltip text shown on hover and aria label. Falls back to `name` when omitted. */
19
16
  tooltip?: string;
20
17
  };
18
+ /**
19
+ * Either provide a `name` — from which the displayed initials and the tooltip
20
+ * are derived automatically — or provide explicit `initials`. The `tooltip` is
21
+ * always optional on both paths.
22
+ */
23
+ export type KdsAvatarProps = (KdsAvatarBase & {
24
+ /** Name of the person/group. Initials and tooltip are derived from it
25
+ * unless `initials` / `tooltip` are set explicitly. */
26
+ name: string;
27
+ initials?: string;
28
+ }) | (KdsAvatarBase & {
29
+ /** The initials displayed as the avatar content and used as fallback when
30
+ * no image is provided or the image fails to load. Only the first two
31
+ * characters are shown, uppercase, and the background color is derived
32
+ * from them. Overrides the initials derived from `name`; if empty, a
33
+ * special empty color is applied. */
34
+ initials: string;
35
+ name?: string;
36
+ });
37
+ /**
38
+ * Avatar configuration without `size` — the containing component sets the size.
39
+ */
40
+ export type KdsAvatarConfig = DistributiveOmit<KdsAvatarProps, "size">;
21
41
  export type KdsAvatarCounterProps = {
22
42
  /**
23
43
  * Number of avatars that are not shown.
@@ -34,6 +54,7 @@ export type KdsAvatarCounterProps = {
34
54
  /**
35
55
  * Config of the shown avatars
36
56
  */
37
- avatars: Array<Omit<KdsAvatarProps, "size">>;
57
+ avatars: Array<KdsAvatarConfig>;
38
58
  };
59
+ export {};
39
60
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,MAAM,MAAM,cAAc,GAAG;IAC3B;;gHAE4G;IAC5G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gGAAgG;IAChG,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;CAC9C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/Avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAK/E,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAC/D,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,KAAK,CAAC;AAEV,KAAK,aAAa,GAAG;IACnB,gGAAgG;IAChG,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,CAAC,aAAa,GAAG;IACf;2DACuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,GACF,CAAC,aAAa,GAAG;IACf;;;;yCAIqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEP;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACjC,CAAC"}
@@ -6,7 +6,7 @@ export declare const kdsBadgeVariant: {
6
6
  readonly ERROR: "error";
7
7
  readonly GHOST: "ghost";
8
8
  };
9
- export declare const kdsBadgeVariants: ("error" | "info" | "warning" | "neutral" | "success" | "ghost")[];
9
+ export declare const kdsBadgeVariants: ("error" | "info" | "success" | "warning" | "neutral" | "ghost")[];
10
10
  export declare const kdsBadgeSize: {
11
11
  readonly XXSMALL: "xxsmall";
12
12
  readonly XSMALL: "xsmall";
@@ -1 +1 @@
1
- {"version":3,"file":"_Accessory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/_Accessory/_Accessory.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,YAAY,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkIF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"_Accessory.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/_Accessory/_Accessory.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,YAAY,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA2IF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,4 +1,4 @@
1
- import { KdsColorSwatchColor, KdsIconName, KdsLiveStatusStatus, KdsPortType, KdsTypeIconName } from '../index';
1
+ import { KdsAvatarConfig, KdsColorSwatchColor, KdsIconName, KdsLiveStatusStatus, KdsPortType, KdsTypeIconName } from '../index';
2
2
  import { kdsAccessorySize, kdsAccessoryType } from './enums';
3
3
  export type KdsAccessorySize = (typeof kdsAccessorySize)[keyof typeof kdsAccessorySize];
4
4
  export type KdsIconAccessory = {
@@ -20,11 +20,13 @@ export type KdsLiveStatusAccessory = {
20
20
  status: KdsLiveStatusStatus;
21
21
  tooltip?: string;
22
22
  };
23
- export type KdsAvatarAccessory = {
23
+ /**
24
+ * Note: `name` here is the person/group name the avatar derives its initials
25
+ * and tooltip from — unlike the icon accessories, where `name` identifies the
26
+ * icon. Either `name` or `initials` has to be set, see `KdsAvatarProps`.
27
+ */
28
+ export type KdsAvatarAccessory = KdsAvatarConfig & {
24
29
  type: (typeof kdsAccessoryType)["AVATAR"];
25
- initials: string;
26
- src?: string;
27
- tooltip?: string;
28
30
  };
29
31
  export type KdsPortAccessory = {
30
32
  type: (typeof kdsAccessoryType)["PORT"];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/_Accessory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,WAAW,CAAC,CAAC;IAC7C,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IAChD,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,aAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/accessories/_Accessory/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,eAAe,EAChB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,WAAW,CAAC,CAAC;IAC7C,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IAChD,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,aAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,CAAC"}
@@ -4,18 +4,19 @@ type __VLS_Slots = {
4
4
  * Leading content before the label (e.g. icon). Overrides the `leadingIcon` prop.
5
5
  */
6
6
  leading(): unknown;
7
+ /**
8
+ * Trailing content after the label (e.g. icon or badge). Overrides the
9
+ * `trailingIcon` prop. Only rendered when the button has a visible `label` —
10
+ * an icon-only button shows its icon alone.
11
+ */
12
+ trailing(): unknown;
7
13
  };
8
14
  declare const __VLS_base: import('vue').DefineComponent<(import('../..').WithTestId & {
9
15
  size?: import('./types').KdsButtonSize;
10
16
  disabled?: boolean;
11
17
  tooltip?: string;
12
18
  variant?: import('./types').KdsButtonVariant | undefined;
13
- } & {
14
- label: string;
15
- leadingIcon?: import('..').KdsIconName;
16
- trailingIcon?: import('..').KdsIconName;
17
- ariaLabel?: never;
18
- } & import('./types').WithDestructive & {
19
+ } & import('./types').WithLabel & import('./types').WithDestructive & {
19
20
  success?: boolean;
20
21
  } & {
21
22
  error?: boolean;
@@ -30,12 +31,7 @@ declare const __VLS_base: import('vue').DefineComponent<(import('../..').WithTes
30
31
  disabled?: boolean;
31
32
  tooltip?: string;
32
33
  variant?: import('./types').KdsButtonVariant | undefined;
33
- } & {
34
- label?: never;
35
- leadingIcon: import('..').KdsIconName;
36
- trailingIcon?: never;
37
- ariaLabel: string;
38
- } & import('./types').WithDestructive & {
34
+ } & import('./types').WithLeadingIconOnly & import('./types').WithDestructive & {
39
35
  success?: boolean;
40
36
  } & {
41
37
  error?: boolean;
@@ -52,12 +48,7 @@ declare const __VLS_base: import('vue').DefineComponent<(import('../..').WithTes
52
48
  disabled?: boolean;
53
49
  tooltip?: string;
54
50
  variant?: import('./types').KdsButtonVariant | undefined;
55
- } & {
56
- label: string;
57
- leadingIcon?: import('..').KdsIconName;
58
- trailingIcon?: import('..').KdsIconName;
59
- ariaLabel?: never;
60
- } & import('./types').WithDestructive & {
51
+ } & import('./types').WithLabel & import('./types').WithDestructive & {
61
52
  success?: boolean;
62
53
  } & {
63
54
  error?: boolean;
@@ -72,12 +63,7 @@ declare const __VLS_base: import('vue').DefineComponent<(import('../..').WithTes
72
63
  disabled?: boolean;
73
64
  tooltip?: string;
74
65
  variant?: import('./types').KdsButtonVariant | undefined;
75
- } & {
76
- label?: never;
77
- leadingIcon: import('..').KdsIconName;
78
- trailingIcon?: never;
79
- ariaLabel: string;
80
- } & import('./types').WithDestructive & {
66
+ } & import('./types').WithLeadingIconOnly & import('./types').WithDestructive & {
81
67
  success?: boolean;
82
68
  } & {
83
69
  error?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/BaseButton.vue"],"names":[],"mappings":"AAsVA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,KAAK,CAAC;AAwD/C,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAoJF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;gBAzMF,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;kFA4M9B,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
+ {"version":3,"file":"BaseButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/BaseButton.vue"],"names":[],"mappings":"AAqWA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,KAAK,CAAC;AAwD/C,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,IAAI,OAAO,CAAC;CACrB,CAAC;AAwJF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;gBApNF,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;gBAAlB,MAAM,GAAG,SAAS;;;kFAuN9B,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"}
@@ -3,44 +3,24 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
3
3
  disabled?: boolean;
4
4
  tooltip?: string;
5
5
  variant?: import('..').KdsButtonVariant | undefined;
6
- } & {
7
- label: string;
8
- leadingIcon?: import('../..').KdsIconName;
9
- trailingIcon?: import('../..').KdsIconName;
10
- ariaLabel?: never;
11
- } & import('..').WithDestructive) | (import('../../..').WithTestId & {
6
+ } & import('..').WithLabel & import('..').WithDestructive) | (import('../../..').WithTestId & {
12
7
  size?: import('..').KdsButtonSize;
13
8
  disabled?: boolean;
14
9
  tooltip?: string;
15
10
  variant?: import('..').KdsButtonVariant | undefined;
16
- } & {
17
- label?: never;
18
- leadingIcon: import('../..').KdsIconName;
19
- trailingIcon?: never;
20
- ariaLabel: string;
21
- } & import('..').WithDestructive), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ } & import('..').WithLeadingIconOnly & import('..').WithDestructive), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
12
  click: (event: MouseEvent) => any;
23
13
  }, string, import('vue').PublicProps, Readonly<(import('../../..').WithTestId & {
24
14
  size?: import('..').KdsButtonSize;
25
15
  disabled?: boolean;
26
16
  tooltip?: string;
27
17
  variant?: import('..').KdsButtonVariant | undefined;
28
- } & {
29
- label: string;
30
- leadingIcon?: import('../..').KdsIconName;
31
- trailingIcon?: import('../..').KdsIconName;
32
- ariaLabel?: never;
33
- } & import('..').WithDestructive) | (import('../../..').WithTestId & {
18
+ } & import('..').WithLabel & import('..').WithDestructive) | (import('../../..').WithTestId & {
34
19
  size?: import('..').KdsButtonSize;
35
20
  disabled?: boolean;
36
21
  tooltip?: string;
37
22
  variant?: import('..').KdsButtonVariant | undefined;
38
- } & {
39
- label?: never;
40
- leadingIcon: import('../..').KdsIconName;
41
- trailingIcon?: never;
42
- ariaLabel: string;
43
- } & import('..').WithDestructive)> & Readonly<{
23
+ } & import('..').WithLeadingIconOnly & import('..').WithDestructive)> & Readonly<{
44
24
  onClick?: ((event: MouseEvent) => any) | undefined;
45
25
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
26
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"KdsButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsButton/KdsButton.vue"],"names":[],"mappings":"AA8EA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsButton/KdsButton.vue"],"names":[],"mappings":"AA8EA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -7,12 +7,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
7
7
  disabled?: boolean;
8
8
  tooltip?: string;
9
9
  variant?: import('..').KdsToggleButtonVariant | undefined;
10
- } & {
11
- label: string;
12
- leadingIcon?: import('../..').KdsIconName;
13
- trailingIcon?: import('../..').KdsIconName;
14
- ariaLabel?: never;
15
- } & {
10
+ } & import('..').WithLabel & {
16
11
  items: import('./types').KdsMenuItem[];
17
12
  menuMaxHeight?: string;
18
13
  } & __VLS_ModelProps) | (import('../../..').WithTestId & {
@@ -20,12 +15,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
20
15
  disabled?: boolean;
21
16
  tooltip?: string;
22
17
  variant?: import('..').KdsToggleButtonVariant | undefined;
23
- } & {
24
- label?: never;
25
- leadingIcon: import('../..').KdsIconName;
26
- trailingIcon?: never;
27
- ariaLabel: string;
28
- } & {
18
+ } & import('..').WithLeadingIconOnly & {
29
19
  items: import('./types').KdsMenuItem[];
30
20
  menuMaxHeight?: string;
31
21
  } & __VLS_ModelProps), {
@@ -34,24 +24,14 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
34
24
  disabled?: boolean;
35
25
  tooltip?: string;
36
26
  variant?: import('..').KdsToggleButtonVariant | undefined;
37
- } & {
38
- label: string;
39
- leadingIcon?: import('../..').KdsIconName;
40
- trailingIcon?: import('../..').KdsIconName;
41
- ariaLabel?: never;
42
- } & {
27
+ } & import('..').WithLabel & {
43
28
  modelValue?: boolean;
44
29
  }) | (import('../../..').WithTestId & {
45
30
  size?: import('..').KdsButtonSize;
46
31
  disabled?: boolean;
47
32
  tooltip?: string;
48
33
  variant?: import('..').KdsToggleButtonVariant | undefined;
49
- } & {
50
- label?: never;
51
- leadingIcon: import('../..').KdsIconName;
52
- trailingIcon?: never;
53
- ariaLabel: string;
54
- } & {
34
+ } & import('..').WithLeadingIconOnly & {
55
35
  modelValue?: boolean;
56
36
  })> & Readonly<{
57
37
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -69,24 +49,14 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
69
49
  disabled?: boolean;
70
50
  tooltip?: string;
71
51
  variant?: import('..').KdsToggleButtonVariant | undefined;
72
- } & {
73
- label: string;
74
- leadingIcon?: import('../..').KdsIconName;
75
- trailingIcon?: import('../..').KdsIconName;
76
- ariaLabel?: never;
77
- } & {
52
+ } & import('..').WithLabel & {
78
53
  modelValue?: boolean;
79
54
  }) | (import('../../..').WithTestId & {
80
55
  size?: import('..').KdsButtonSize;
81
56
  disabled?: boolean;
82
57
  tooltip?: string;
83
58
  variant?: import('..').KdsToggleButtonVariant | undefined;
84
- } & {
85
- label?: never;
86
- leadingIcon: import('../..').KdsIconName;
87
- trailingIcon?: never;
88
- ariaLabel: string;
89
- } & {
59
+ } & import('..').WithLeadingIconOnly & {
90
60
  modelValue?: boolean;
91
61
  })> & Readonly<{
92
62
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -95,24 +65,14 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
95
65
  disabled?: boolean;
96
66
  tooltip?: string;
97
67
  variant?: import('..').KdsToggleButtonVariant | undefined;
98
- } & {
99
- label: string;
100
- leadingIcon?: import('../..').KdsIconName;
101
- trailingIcon?: import('../..').KdsIconName;
102
- ariaLabel?: never;
103
- } & {
68
+ } & import('..').WithLabel & {
104
69
  modelValue?: boolean;
105
70
  }) | (import('../../..').WithTestId & {
106
71
  size?: import('..').KdsButtonSize;
107
72
  disabled?: boolean;
108
73
  tooltip?: string;
109
74
  variant?: import('..').KdsToggleButtonVariant | undefined;
110
- } & {
111
- label?: never;
112
- leadingIcon: import('../..').KdsIconName;
113
- trailingIcon?: never;
114
- ariaLabel: string;
115
- } & {
75
+ } & import('..').WithLeadingIconOnly & {
116
76
  modelValue?: boolean;
117
77
  })> & Readonly<{
118
78
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -130,24 +90,14 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
130
90
  disabled?: boolean;
131
91
  tooltip?: string;
132
92
  variant?: import('..').KdsToggleButtonVariant | undefined;
133
- } & {
134
- label: string;
135
- leadingIcon?: import('../..').KdsIconName;
136
- trailingIcon?: import('../..').KdsIconName;
137
- ariaLabel?: never;
138
- } & {
93
+ } & import('..').WithLabel & {
139
94
  modelValue?: boolean;
140
95
  }) | (import('../../..').WithTestId & {
141
96
  size?: import('..').KdsButtonSize;
142
97
  disabled?: boolean;
143
98
  tooltip?: string;
144
99
  variant?: import('..').KdsToggleButtonVariant | undefined;
145
- } & {
146
- label?: never;
147
- leadingIcon: import('../..').KdsIconName;
148
- trailingIcon?: never;
149
- ariaLabel: string;
150
- } & {
100
+ } & import('..').WithLeadingIconOnly & {
151
101
  modelValue?: boolean;
152
102
  })> & Readonly<{
153
103
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -160,12 +110,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
160
110
  disabled?: boolean;
161
111
  tooltip?: string;
162
112
  variant?: import('..').KdsToggleButtonVariant | undefined;
163
- } & {
164
- label: string;
165
- leadingIcon?: import('../..').KdsIconName;
166
- trailingIcon?: import('../..').KdsIconName;
167
- ariaLabel?: never;
168
- } & {
113
+ } & import('..').WithLabel & {
169
114
  items: import('./types').KdsMenuItem[];
170
115
  menuMaxHeight?: string;
171
116
  } & __VLS_ModelProps) | (import('../../..').WithTestId & {
@@ -173,12 +118,7 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
173
118
  disabled?: boolean;
174
119
  tooltip?: string;
175
120
  variant?: import('..').KdsToggleButtonVariant | undefined;
176
- } & {
177
- label?: never;
178
- leadingIcon: import('../..').KdsIconName;
179
- trailingIcon?: never;
180
- ariaLabel: string;
181
- } & {
121
+ } & import('..').WithLeadingIconOnly & {
182
122
  items: import('./types').KdsMenuItem[];
183
123
  menuMaxHeight?: string;
184
124
  } & __VLS_ModelProps)> & Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"KdsMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMenuButton/KdsMenuButton.vue"],"names":[],"mappings":"AAkLA,KAAK,gBAAgB,GAAG;IACxB,gCAAgC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAsGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsMenuButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMenuButton/KdsMenuButton.vue"],"names":[],"mappings":"AAkLA,KAAK,gBAAgB,GAAG;IACxB,gCAAgC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAsGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -10,30 +10,26 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
10
10
  disabled?: boolean;
11
11
  tooltip?: string;
12
12
  variant?: import('..').KdsToggleButtonVariant | undefined;
13
- } & {
14
- label: string;
15
- leadingIcon?: import('../..').KdsIconName;
16
- trailingIcon?: import('../..').KdsIconName;
17
- ariaLabel?: never;
13
+ } & import('..').WithLabel & {
14
+ showCount?: boolean;
18
15
  } & {
19
16
  possibleValues: KdsDropdownOption[];
20
17
  loading?: boolean;
21
18
  allowNewValues?: boolean;
19
+ hideSelectAll?: boolean;
22
20
  minimumSelectedOptions?: number;
23
21
  } & __VLS_ModelProps) | (import('../../..').WithTestId & {
24
22
  size?: import('..').KdsButtonSize;
25
23
  disabled?: boolean;
26
24
  tooltip?: string;
27
25
  variant?: import('..').KdsToggleButtonVariant | undefined;
28
- } & {
29
- label?: never;
30
- leadingIcon: import('../..').KdsIconName;
31
- trailingIcon?: never;
32
- ariaLabel: string;
26
+ } & import('..').WithLeadingIconOnly & {
27
+ showCount?: never;
33
28
  } & {
34
29
  possibleValues: KdsDropdownOption[];
35
30
  loading?: boolean;
36
31
  allowNewValues?: boolean;
32
+ hideSelectAll?: boolean;
37
33
  minimumSelectedOptions?: number;
38
34
  } & __VLS_ModelProps), {
39
35
  focus: (options?: FocusOptions) => any;
@@ -45,30 +41,26 @@ declare const __VLS_export: import('vue').DefineComponent<(import('../../..').Wi
45
41
  disabled?: boolean;
46
42
  tooltip?: string;
47
43
  variant?: import('..').KdsToggleButtonVariant | undefined;
48
- } & {
49
- label: string;
50
- leadingIcon?: import('../..').KdsIconName;
51
- trailingIcon?: import('../..').KdsIconName;
52
- ariaLabel?: never;
44
+ } & import('..').WithLabel & {
45
+ showCount?: boolean;
53
46
  } & {
54
47
  possibleValues: KdsDropdownOption[];
55
48
  loading?: boolean;
56
49
  allowNewValues?: boolean;
50
+ hideSelectAll?: boolean;
57
51
  minimumSelectedOptions?: number;
58
52
  } & __VLS_ModelProps) | (import('../../..').WithTestId & {
59
53
  size?: import('..').KdsButtonSize;
60
54
  disabled?: boolean;
61
55
  tooltip?: string;
62
56
  variant?: import('..').KdsToggleButtonVariant | undefined;
63
- } & {
64
- label?: never;
65
- leadingIcon: import('../..').KdsIconName;
66
- trailingIcon?: never;
67
- ariaLabel: string;
57
+ } & import('..').WithLeadingIconOnly & {
58
+ showCount?: never;
68
59
  } & {
69
60
  possibleValues: KdsDropdownOption[];
70
61
  loading?: boolean;
71
62
  allowNewValues?: boolean;
63
+ hideSelectAll?: boolean;
72
64
  minimumSelectedOptions?: number;
73
65
  } & __VLS_ModelProps)> & Readonly<{
74
66
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"KdsMultiSelectButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAiH5E,KAAK,gBAAgB,GAAG;IACxB,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAkIF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAjJE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAqJ9B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsMultiSelectButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAiI5E,KAAK,gBAAgB,GAAG;IACxB,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAoKF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAnLE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAuL9B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,20 +1,48 @@
1
1
  import { KdsDropdownOption } from '../../forms/selects/Dropdown/types';
2
2
  import { KdsToggleButtonVariant } from '../KdsToggleButton';
3
- import { KdsButtonCommonProps, WithLabelAndIcons } from '../types';
3
+ import { KdsButtonCommonProps, WithLabel, WithLeadingIconOnly } from '../types';
4
4
  export type { KdsDropdownOption } from '../../forms/selects/Dropdown/types';
5
- export type KdsMultiSelectButtonProps = KdsButtonCommonProps<KdsToggleButtonVariant> & WithLabelAndIcons & {
5
+ /**
6
+ * The count badge is trailing content, so — like `trailingIcon` — it needs a
7
+ * visible label to sit next to: `showCount` is only available on the labeled
8
+ * variant and `never` on the icon-only one.
9
+ */
10
+ type WithCountBadge = (WithLabel & {
11
+ /**
12
+ * Whether to show the trailing badge with the number of selected
13
+ * options. The badge takes the place of the trailing icon: while it is
14
+ * shown, a configured `trailingIcon` is not rendered. Defaults to true.
15
+ */
16
+ showCount?: boolean;
17
+ }) | (WithLeadingIconOnly & {
18
+ showCount?: never;
19
+ });
20
+ export type KdsMultiSelectButtonProps = KdsButtonCommonProps<KdsToggleButtonVariant> & WithCountBadge & {
6
21
  /** Values shown in the dropdown list. */
7
22
  possibleValues: KdsDropdownOption[];
8
23
  /** Whether the dropdown list is in loading state. */
9
24
  loading?: boolean;
10
25
  /** When true, allows adding and selecting new values via the search field (combo box behavior). */
11
26
  allowNewValues?: boolean;
27
+ /**
28
+ * When true, hides the dropdown footer "Select all" action. The "Clear
29
+ * all" action is still shown while a selection exists, so it can always
30
+ * be cleared.
31
+ */
32
+ hideSelectAll?: boolean;
12
33
  /**
13
34
  * Minimum number of options that must stay selected. Attempts to
14
35
  * deselect below this count are ignored, keeping at least this many
15
36
  * options selected at all times. When 0 or unset, the trigger stays
16
37
  * active (pressed) while at least one option is selected, giving a
17
38
  * persistent hint that a selection has been made.
39
+ *
40
+ * A minimum greater than 0 also hides the dropdown footer "Clear all"
41
+ * action, since clearing all would drop below the minimum. Because the
42
+ * footer holds a single action that flips between "Select all" and "Clear
43
+ * all", no footer action is offered while at least one listed option is
44
+ * selected; "Select all" reappears once the search narrows the list down
45
+ * to unselected options.
18
46
  */
19
47
  minimumSelectedOptions?: number;
20
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMultiSelectButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAExE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,MAAM,MAAM,yBAAyB,GACnC,oBAAoB,CAAC,sBAAsB,CAAC,GAC1C,iBAAiB,GAAG;IAClB,yCAAyC;IACzC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mGAAmG;IACnG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/KdsMultiSelectButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EACT,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;;GAIG;AACH,KAAK,cAAc,GACf,CAAC,SAAS,GAAG;IACX;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,GACF,CAAC,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAElD,MAAM,MAAM,yBAAyB,GACnC,oBAAoB,CAAC,sBAAsB,CAAC,GAC1C,cAAc,GAAG;IACf,yCAAyC;IACzC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mGAAmG;IACnG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
@@ -4,5 +4,5 @@ export declare const kdsProgressButtonState: {
4
4
  readonly SUCCESS: "success";
5
5
  readonly ERROR: "error";
6
6
  };
7
- export declare const kdsProgressButtonStates: ("progress" | "error" | "default" | "success")[];
7
+ export declare const kdsProgressButtonStates: ("progress" | "error" | "success" | "default")[];
8
8
  //# sourceMappingURL=enums.d.ts.map