@knime/kds-components 14.2.0 → 14.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/index.css +85 -27
  3. package/dist/index.js +31 -14
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/buttons/ActionButton/ActionButton.vue.d.ts +16 -0
  6. package/dist/src/components/buttons/ActionButton/ActionButton.vue.d.ts.map +1 -1
  7. package/dist/src/components/buttons/ActionButton/enums.d.ts +2 -1
  8. package/dist/src/components/buttons/ActionButton/enums.d.ts.map +1 -1
  9. package/dist/src/components/buttons/ActionButton/types.d.ts +11 -0
  10. package/dist/src/components/buttons/ActionButton/types.d.ts.map +1 -1
  11. package/dist/src/components/feedback/Banner/KdsBanner.vue.d.ts.map +1 -1
  12. package/dist/src/components/feedback/Banner/enums.d.ts +1 -1
  13. package/dist/src/components/feedback/Banner/enums.d.ts.map +1 -1
  14. package/dist/src/components/feedback/Banner/index.d.ts +2 -2
  15. package/dist/src/components/feedback/Banner/index.d.ts.map +1 -1
  16. package/dist/src/components/feedback/Banner/types.d.ts +13 -1
  17. package/dist/src/components/feedback/Banner/types.d.ts.map +1 -1
  18. package/dist/src/components/feedback/BaseMessage.vue.d.ts.map +1 -1
  19. package/dist/src/components/feedback/EmptyState/types.d.ts +4 -2
  20. package/dist/src/components/feedback/EmptyState/types.d.ts.map +1 -1
  21. package/dist/src/components/feedback/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -1
  22. package/dist/src/components/feedback/InlineMessage/enums.d.ts +1 -1
  23. package/dist/src/components/feedback/InlineMessage/enums.d.ts.map +1 -1
  24. package/dist/src/components/feedback/InlineMessage/index.d.ts +2 -2
  25. package/dist/src/components/feedback/InlineMessage/index.d.ts.map +1 -1
  26. package/dist/src/components/feedback/InlineMessage/types.d.ts +14 -1
  27. package/dist/src/components/feedback/InlineMessage/types.d.ts.map +1 -1
  28. package/dist/src/components/feedback/enums.d.ts +6 -0
  29. package/dist/src/components/feedback/enums.d.ts.map +1 -1
  30. package/package.json +4 -4
@@ -25,6 +25,14 @@ declare const __VLS_export: import('vue').DefineComponent<({
25
25
  } & {
26
26
  size?: KdsButtonSize;
27
27
  onClick?: (event: MouseEvent) => void;
28
+ }) | ({
29
+ type: "menuButton";
30
+ props: import('..').KdsMenuButtonProps & {
31
+ size?: never;
32
+ };
33
+ } & {
34
+ size?: KdsButtonSize;
35
+ onClick?: (event: MouseEvent) => void;
28
36
  }), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<({
29
37
  type: "button";
30
38
  props: import('..').KdsButtonProps & {
@@ -51,6 +59,14 @@ declare const __VLS_export: import('vue').DefineComponent<({
51
59
  } & {
52
60
  size?: KdsButtonSize;
53
61
  onClick?: (event: MouseEvent) => void;
62
+ }) | ({
63
+ type: "menuButton";
64
+ props: import('..').KdsMenuButtonProps & {
65
+ size?: never;
66
+ };
67
+ } & {
68
+ size?: KdsButtonSize;
69
+ onClick?: (event: MouseEvent) => void;
54
70
  })> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
71
  declare const _default: typeof __VLS_export;
56
72
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/ActionButton.vue"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA+F9C,QAAA,MAAM,YAAY;;;YAlGlB,CAtBE;;;;WA+BS,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAVzC,CAjB6C;;;WA0BlC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAVzC,CARM;;;;WAiBK,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAVzC,CAtBE;;;;WA+BS,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAVzC,CAjB6C;;;WA0BlC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAVzC,CARM;;;;WAiBK,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;kGA0FvC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ActionButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/ActionButton.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA8G9C,QAAA,MAAM,YAAY;;;YAlHlB,CA3BI;;;;WAqCO,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAtB+C;;;WAgCpC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAbQ;;;;WAuBG,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAbxB,CAAC;;;WAYP,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CA3BI;;;;WAqCO,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAtB+C;;;WAgCpC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAbQ;;;;WAuBG,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAbxB,CAAC;;;WAYP,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;kGAyGvC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -2,6 +2,7 @@ export declare const kdsActionButtonType: {
2
2
  readonly BUTTON: "button";
3
3
  readonly LINK_BUTTON: "linkButton";
4
4
  readonly SPLIT_BUTTON: "splitButton";
5
+ readonly MENU_BUTTON: "menuButton";
5
6
  };
6
- export declare const kdsActionButtonTypes: ("button" | "linkButton" | "splitButton")[];
7
+ export declare const kdsActionButtonTypes: ("button" | "linkButton" | "splitButton" | "menuButton")[];
7
8
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAEX,eAAO,MAAM,oBAAoB,6CAAqC,CAAC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX,eAAO,MAAM,oBAAoB,4DAAqC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { KdsButtonProps } from '../KdsButton';
2
+ import { KdsMenuButtonProps } from '../KdsMenuButton/types';
2
3
  import { KdsSplitButtonProps } from '../KdsSplitButton/types';
3
4
  import { KdsLinkButtonProps } from '../links/KdsLinkButton';
4
5
  import { kdsActionButtonType } from './enums';
@@ -26,5 +27,15 @@ export type KdsActionButtonProps = {
26
27
  };
27
28
  /** Click callback for the primary button */
28
29
  onClick: (event: MouseEvent) => void;
30
+ } | {
31
+ /**
32
+ * Type of the action button: a button that opens a menu. Menu items
33
+ * act through the `handler` of each `KdsMenuItem`.
34
+ */
35
+ type: "menuButton";
36
+ /** Properties of the corresponding menu button */
37
+ props: KdsMenuButtonProps & {
38
+ size?: never;
39
+ };
29
40
  };
30
41
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAC5B;IACE,gCAAgC;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IACzC,qBAAqB;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,kBAAkB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;CAC9C,GACD;IACE,qEAAqE;IACrE,IAAI,EAAE,aAAa,CAAC;IACpB,mDAAmD;IACnD,KAAK,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IAC9C,4CAA4C;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAC5B;IACE,gCAAgC;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IACzC,qBAAqB;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,kBAAkB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;CAC9C,GACD;IACE,qEAAqE;IACrE,IAAI,EAAE,aAAa,CAAC;IACpB,mDAAmD;IACnD,KAAK,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IAC9C,4CAA4C;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,GACD;IACE;;;OAGG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB,kDAAkD;IAClD,KAAK,EAAE,kBAAkB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;CAC9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdsBanner.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/KdsBanner.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAuG9C,QAAA,MAAM,YAAY,wSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsBanner.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/KdsBanner.vue"],"names":[],"mappings":"AA4IA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA+G9C,QAAA,MAAM,YAAY,wSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,2 +1,2 @@
1
- export { kdsFeedbackVariant as kdsBannerVariant, kdsFeedbackVariants as kdsBannerVariants, } from '../enums';
1
+ export { kdsFeedbackFlush as kdsBannerFlush, kdsFeedbackFlushOptions as kdsBannerFlushOptions, kdsFeedbackVariant as kdsBannerVariant, kdsFeedbackVariants as kdsBannerVariants, } from '../enums';
2
2
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,gBAAgB,EACtC,mBAAmB,IAAI,iBAAiB,GACzC,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,cAAc,EAClC,uBAAuB,IAAI,qBAAqB,EAChD,kBAAkB,IAAI,gBAAgB,EACtC,mBAAmB,IAAI,iBAAiB,GACzC,MAAM,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { default as KdsBanner } from './KdsBanner.vue';
2
- export * from './enums';
3
- export type * from './types';
2
+ export { kdsBannerFlush, kdsBannerFlushOptions, kdsBannerVariant, kdsBannerVariants, } from './enums';
3
+ export type { KdsBannerFlush, KdsBannerProps, KdsBannerVariant } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { KdsActionButtonProps } from '../../../components/buttons';
2
- import { kdsBannerVariant } from './enums';
2
+ import { kdsBannerFlush, kdsBannerVariant } from './enums';
3
3
  export type KdsBannerVariant = (typeof kdsBannerVariant)[keyof typeof kdsBannerVariant];
4
+ export type KdsBannerFlush = (typeof kdsBannerFlush)[keyof typeof kdsBannerFlush];
4
5
  export type KdsBannerProps = {
5
6
  /** The message text displayed inside the banner. Keep it short and precise; avoid multiline text. */
6
7
  description: string;
@@ -8,5 +9,16 @@ export type KdsBannerProps = {
8
9
  actions?: KdsActionButtonProps[];
9
10
  /** Variant of the banner. */
10
11
  variant?: KdsBannerVariant;
12
+ /**
13
+ * Makes the banner flush, so it sits edge to edge in a layout: no radius and
14
+ * a single border edge, on the side that faces the content. The value names
15
+ * where the banner sits, like Figma's `Flush` property. `off` is a rounded
16
+ * banner with a full border, for use in page content. `top` sits at the top,
17
+ * e.g. as a global banner directly under the app header, and draws its
18
+ * bottom edge. `bottom` sits at the bottom, e.g. in the footer of a menu,
19
+ * popover or panel, and draws its top edge. Let a flush banner span the full
20
+ * width of its container.
21
+ */
22
+ flush?: KdsBannerFlush;
11
23
  };
12
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IAC3B,qGAAqG;IACrG,WAAW,EAAE,MAAM,CAAC;IAEpB,iGAAiG;IACjG,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAEjC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/Banner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG;IAC3B,qGAAqG;IACrG,WAAW,EAAE,MAAM,CAAC;IAEpB,iGAAiG;IACjG,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAEjC,6BAA6B;IAC7B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/BaseMessage.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAMlD,KAAK,WAAW,GAAG;IACjB,iFAAiF;IACjF,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAqCF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,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":"BaseMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/BaseMessage.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOlD,KAAK,WAAW,GAAG;IACjB,iFAAiF;IACjF,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAqCF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,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"}
@@ -16,8 +16,10 @@ type KdsEmptyStatePropsWithoutButtons = BaseKdsEmptyStateProps & {
16
16
  type KdsEmptyStatePropsWithButtons = BaseKdsEmptyStateProps & {
17
17
  /**
18
18
  * Primary action button. Set `type: "button"` to render an action button
19
- * (with an `onClick` callback) or `type: "linkButton"` to render a link
20
- * button (with `to`).
19
+ * (with an `onClick` callback), `type: "linkButton"` to render a link
20
+ * button (with `to`), `type: "splitButton"` to render a split button or
21
+ * `type: "menuButton"` to render a button that opens a menu (its items act
22
+ * through their `handler`).
21
23
  */
22
24
  primaryAction: KdsActionButtonProps;
23
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/EmptyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,sBAAsB,GAAG;IAC5B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,sBAAsB,GAAG;IAC/D,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF,KAAK,6BAA6B,GAAG,sBAAsB,GAAG;IAC5D;;;;OAIG;IACH,aAAa,EAAE,oBAAoB,CAAC;IACpC;;;OAGG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC5B,gCAAgC,GAAG,6BAA6B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/EmptyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,sBAAsB,GAAG;IAC5B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,sBAAsB,GAAG;IAC/D,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF,KAAK,6BAA6B,GAAG,sBAAsB,GAAG;IAC5D;;;;;;OAMG;IACH,aAAa,EAAE,oBAAoB,CAAC;IACpC;;;OAGG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC5B,gCAAgC,GAAG,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdsInlineMessage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/KdsInlineMessage.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA0GrD,QAAA,MAAM,YAAY,sTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsInlineMessage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/KdsInlineMessage.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA0HrD,QAAA,MAAM,YAAY,sTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,2 +1,2 @@
1
- export { kdsFeedbackVariant as kdsInlineMessageVariant, kdsFeedbackVariants as kdsInlineMessageVariants, } from '../enums';
1
+ export { kdsFeedbackFlush as kdsInlineMessageFlush, kdsFeedbackFlushOptions as kdsInlineMessageFlushOptions, kdsFeedbackVariant as kdsInlineMessageVariant, kdsFeedbackVariants as kdsInlineMessageVariants, } from '../enums';
2
2
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,IAAI,uBAAuB,EAC7C,mBAAmB,IAAI,wBAAwB,GAChD,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,qBAAqB,EACzC,uBAAuB,IAAI,4BAA4B,EACvD,kBAAkB,IAAI,uBAAuB,EAC7C,mBAAmB,IAAI,wBAAwB,GAChD,MAAM,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { default as KdsInlineMessage } from './KdsInlineMessage.vue';
2
- export * from './enums';
3
- export type * from './types';
2
+ export { kdsInlineMessageFlush, kdsInlineMessageFlushOptions, kdsInlineMessageVariant, kdsInlineMessageVariants, } from './enums';
3
+ export type { KdsInlineMessageFlush, KdsInlineMessageProps, KdsInlineMessageVariant, } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { KdsActionButtonProps } from '../../../components/buttons';
2
- import { kdsInlineMessageVariant } from './enums';
2
+ import { kdsInlineMessageFlush, kdsInlineMessageVariant } from './enums';
3
3
  export type KdsInlineMessageVariant = (typeof kdsInlineMessageVariant)[keyof typeof kdsInlineMessageVariant];
4
+ export type KdsInlineMessageFlush = (typeof kdsInlineMessageFlush)[keyof typeof kdsInlineMessageFlush];
4
5
  export type KdsInlineMessageProps = {
5
6
  /** The headline displayed at the top of the inline message. */
6
7
  headline: string;
@@ -10,5 +11,17 @@ export type KdsInlineMessageProps = {
10
11
  actions?: KdsActionButtonProps[];
11
12
  /** Variant of the inline message. */
12
13
  variant?: KdsInlineMessageVariant;
14
+ /**
15
+ * Makes the message flush, so it sits edge to edge in a container: no radius
16
+ * and a single border edge, on the side that faces the container's content.
17
+ * The value names where the message sits, like Figma's `Flush` property.
18
+ * `off` is a rounded message with a full border, for a standalone message in
19
+ * content. `top` sits at the top of a container, e.g. as the header of a
20
+ * menu, and draws its bottom edge. `bottom` sits at the bottom, e.g. in the
21
+ * footer of a menu, popover or panel, and draws its top edge. Let a flush
22
+ * message span the full width of its container. Its sides are padded like
23
+ * menu items, so its content lines up with a menu.
24
+ */
25
+ flush?: KdsInlineMessageFlush;
13
26
  };
14
27
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IAEjB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yGAAyG;IACzG,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAEjC,qCAAqC;IACrC,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/InlineMessage/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IAEjB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yGAAyG;IACzG,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAEjC,qCAAqC;IACrC,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAElC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC/B,CAAC"}
@@ -5,4 +5,10 @@ export declare const kdsFeedbackVariant: {
5
5
  readonly WARNING: "warning";
6
6
  };
7
7
  export declare const kdsFeedbackVariants: ("error" | "info" | "success" | "warning")[];
8
+ export declare const kdsFeedbackFlush: {
9
+ readonly OFF: "off";
10
+ readonly TOP: "top";
11
+ readonly BOTTOM: "bottom";
12
+ };
13
+ export declare const kdsFeedbackFlushOptions: ("bottom" | "top" | "off")[];
8
14
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,8CAAoC,CAAC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,8CAAoC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,eAAO,MAAM,uBAAuB,8BAAkC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "14.2.0",
3
+ "version": "14.4.0",
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": "^14.2.0",
38
+ "@knime/kds-styles": "^14.4.0",
39
39
  "@knime/utils": "^4.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": "^14.2.0",
46
- "@knime/kds-table": "^14.2.0",
45
+ "@knime/kds-code-editor": "^14.4.0",
46
+ "@knime/kds-table": "^14.4.0",
47
47
  "@storybook/vue3-vite": "^10.6.2",
48
48
  "@vitejs/plugin-vue": "^6.0.8",
49
49
  "@vue/test-utils": "^2.4.11",