@knime/kds-components 0.29.2 → 0.29.3

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.
@@ -0,0 +1,27 @@
1
+ declare const _default: import('vue').DefineComponent<({
2
+ size?: import('./types').KdsProgressBarSize;
3
+ title?: string;
4
+ } & {
5
+ percentage: number;
6
+ indeterminate?: false;
7
+ }) | ({
8
+ size?: import('./types').KdsProgressBarSize;
9
+ title?: string;
10
+ } & {
11
+ indeterminate: true;
12
+ percentage?: never;
13
+ }), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<({
14
+ size?: import('./types').KdsProgressBarSize;
15
+ title?: string;
16
+ } & {
17
+ percentage: number;
18
+ indeterminate?: false;
19
+ }) | ({
20
+ size?: import('./types').KdsProgressBarSize;
21
+ title?: string;
22
+ } & {
23
+ indeterminate: true;
24
+ percentage?: never;
25
+ })> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ export default _default;
27
+ //# sourceMappingURL=KdsProgressBar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsProgressBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/accessories/ProgressBar/KdsProgressBar.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6OA,wBAOG"}
@@ -0,0 +1,6 @@
1
+ export declare const kdsProgressBarSize: {
2
+ readonly MEDIUM: "medium";
3
+ readonly LARGE: "large";
4
+ };
5
+ export declare const kdsProgressBarSizes: ("medium" | "large")[];
6
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/accessories/ProgressBar/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,wBAAoC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as KdsProgressBar } from './KdsProgressBar.vue';
2
+ export * from './enums';
3
+ export type * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/accessories/ProgressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { kdsProgressBarSize } from './enums';
2
+ export type KdsProgressBarSize = (typeof kdsProgressBarSize)[keyof typeof kdsProgressBarSize];
3
+ type KdsProgressBarBase = {
4
+ /**
5
+ * Visual size variant of the progress bar.
6
+ * @default medium
7
+ */
8
+ size?: KdsProgressBarSize;
9
+ /**
10
+ * Tooltip text shown on hover. Also used as aria label.
11
+ * If omitted, a default text is used ("Loading" for indeterminate,
12
+ * otherwise "Progress: <percentage>%").
13
+ */
14
+ title?: string;
15
+ };
16
+ type KdsProgressBarPercentage = KdsProgressBarBase & {
17
+ /**
18
+ * The percentage of progress to display.
19
+ * If the value is less than 0, it will be displayed as 0%. If the value
20
+ * is greater than 100, it will be capped at 100%. If the value is NaN,
21
+ * it will be displayed as 0%.
22
+ * @default 0
23
+ */
24
+ percentage: number;
25
+ indeterminate?: false;
26
+ };
27
+ type KdsProgressBarIndeterminate = KdsProgressBarBase & {
28
+ /**
29
+ * Whether to display an indeterminate loading
30
+ * state instead of a specific percentage.
31
+ */
32
+ indeterminate: true;
33
+ percentage?: never;
34
+ };
35
+ export type KdsProgressBarProps = KdsProgressBarPercentage | KdsProgressBarIndeterminate;
36
+ export {};
37
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/accessories/ProgressBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,wBAAwB,GAAG,kBAAkB,GAAG;IACnD;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CAAC;AAEF,KAAK,2BAA2B,GAAG,kBAAkB,GAAG;IACtD;;;OAGG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB,2BAA2B,CAAC"}
@@ -2,6 +2,8 @@ export * from './Avatar';
2
2
  export type * from './Avatar';
3
3
  export * from './Badge';
4
4
  export type * from './Badge';
5
+ export * from './ProgressBar';
6
+ export type * from './ProgressBar';
5
7
  export * from './ColorSwatch';
6
8
  export type * from './ColorSwatch';
7
9
  export * from './Icon';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accessories/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC;AAE5B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,CAAC;AAErC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accessories/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC;AAE5B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,CAAC;AAErC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "0.29.2",
3
+ "version": "0.29.3",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,7 @@
42
42
  "motion": "^12.39.0",
43
43
  "pretty-bytes": "^7.1.0",
44
44
  "temporal-polyfill": "^0.3.2",
45
- "@knime/kds-styles": "^0.29.2"
45
+ "@knime/kds-styles": "^0.29.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@storybook/vue3-vite": "^10.4.1",