@knime/kds-components 0.28.1 → 0.28.2

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.
@@ -1,8 +1,14 @@
1
1
  import { KdsPanelProps } from './types';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
4
+ slots: Readonly<{
5
+ default?: (props: {
6
+ headlineId?: string;
7
+ }) => unknown;
8
+ }> & {
9
+ default?: (props: {
10
+ headlineId?: string;
11
+ }) => unknown;
6
12
  };
7
13
  refs: {};
8
14
  rootEl: HTMLDivElement;
@@ -1 +1 @@
1
- {"version":3,"file":"KdsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/KdsPanel.vue"],"names":[],"mappings":"AAkMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAe7C,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,iTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"KdsPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/KdsPanel.vue"],"names":[],"mappings":"AAsOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAuC7C,iBAAS,cAAc;WAyPT,OAAO,IAA6B;;kBAjRtC,CAAC,KAAK,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,OAAO;;kBAA3C,CAAC,KAAK,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,OAAO;;;;EAsRtD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,iTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const kdsPanelBodyOverflow: {
2
+ readonly AUTO: "auto";
3
+ readonly HIDDEN: "hidden";
4
+ readonly VISIBLE: "visible";
5
+ };
6
+ export declare const kdsPanelBodyOverflows: ("auto" | "hidden" | "visible")[];
7
+ export declare const kdsPanelBodyVariant: {
8
+ readonly PADDED: "padded";
9
+ readonly PLAIN: "plain";
10
+ };
11
+ export declare const kdsPanelBodyVariants: ("padded" | "plain")[];
12
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AAEX,eAAO,MAAM,qBAAqB,mCAAsC,CAAC;AAEzE,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,eAAO,MAAM,oBAAoB,wBAAqC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { default as KdsPanel } from './KdsPanel.vue';
2
+ export { kdsPanelBodyOverflow, kdsPanelBodyOverflows, kdsPanelBodyVariant, kdsPanelBodyVariants, } from './enums';
2
3
  export type * from './types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AACjB,mBAAmB,SAAS,CAAC"}
@@ -1,5 +1,8 @@
1
1
  import { KdsButtonProps, KdsMenuButtonProps, KdsToggleButtonProps } from '../../buttons';
2
2
  import { KdsValueSwitchProps } from '../../forms';
3
+ import { kdsPanelBodyOverflow, kdsPanelBodyVariant } from './enums';
4
+ export type KdsPanelBodyOverflow = (typeof kdsPanelBodyOverflow)[keyof typeof kdsPanelBodyOverflow];
5
+ export type KdsPanelBodyVariant = (typeof kdsPanelBodyVariant)[keyof typeof kdsPanelBodyVariant];
3
6
  /**
4
7
  * Distributive `Omit` that preserves discriminated unions when removing a key.
5
8
  */
@@ -53,13 +56,14 @@ export type KdsPanelProps = {
53
56
  /**
54
57
  * Headline of the panel. Renders a heading when a string is
55
58
  * provided, or a `KdsButton` / `KdsMenuButton` when a configuration
56
- * object is provided. Required so the panel header always exposes an
57
- * accessible name for the focusable, scrollable body.
59
+ * object is provided. Optional.
58
60
  */
59
- headline: string | KdsPanelButtonAction | KdsPanelMenuButtonAction;
61
+ headline?: string | KdsPanelButtonAction | KdsPanelMenuButtonAction;
60
62
  /**
61
63
  * Trailing actions of the panel header (right-aligned). Supports
62
64
  * `KdsButton`, `KdsToggleButton`, `KdsMenuButton`, and `KdsValueSwitch`.
65
+ * The header is rendered when either `headline` or
66
+ * `headlineTrailingActions` is provided.
63
67
  */
64
68
  headlineTrailingActions?: KdsPanelHeadlineTrailingAction[];
65
69
  /**
@@ -74,6 +78,29 @@ export type KdsPanelProps = {
74
78
  * `footerTrailingActions` is provided.
75
79
  */
76
80
  footerTrailingActions?: KdsPanelButtonAction[];
81
+ /**
82
+ * Accessible label for the panel body. When provided, it is always used
83
+ * as `aria-label` and takes precedence over the headline as the body's
84
+ * accessible name. Required when the body is keyboard-focusable
85
+ * (`bodyOverflow` is not `hidden`) and no string `headline` is present.
86
+ */
87
+ ariaLabel?: string;
88
+ /**
89
+ * Overflow behavior of the panel body scroll container.
90
+ * The body is removed from tab order when set to `hidden`.
91
+ * When focusable and no `headline` is provided, the body uses `ariaLabel`.
92
+ *
93
+ * @default auto
94
+ */
95
+ bodyOverflow?: KdsPanelBodyOverflow;
96
+ /**
97
+ * `padded` adds panel-provided spacing around slot content.
98
+ *
99
+ * `plain` leaves spacing control to slot content.
100
+ *
101
+ * @default padded
102
+ */
103
+ bodyVariant?: KdsPanelBodyVariant;
77
104
  };
78
105
  export {};
79
106
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Panel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD;;GAEG;AACH,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAC/D,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,gBAAgB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,MA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MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,CAAC,GAAG;QACrD,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GACtC,oBAAoB,GACpB,0BAA0B,GAC1B,wBAAwB,GACxB,yBAAyB,CAAC;AAE9B,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;IACpE;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,8BAA8B,EAAE,CAAC;IAC3D;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC9C;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/C;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "consola": "^3.4.2",
39
39
  "pretty-bytes": "^7.1.0",
40
40
  "temporal-polyfill": "^0.3.2",
41
- "@knime/kds-styles": "^0.28.1"
41
+ "@knime/kds-styles": "^0.28.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@storybook/vue3-vite": "^10.3.4",