@knime/kds-components 0.0.7 → 0.0.8
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.
- package/dist/index.css +219 -107
- package/dist/index.js +164 -33
- package/dist/index.js.map +1 -1
- package/dist/src/Button/BaseButton.vue.d.ts +42 -0
- package/dist/src/Button/BaseButton.vue.d.ts.map +1 -0
- package/dist/src/Button/Button.vue.d.ts +16 -22
- package/dist/src/Button/Button.vue.d.ts.map +1 -1
- package/dist/src/Button/LinkButton.vue.d.ts +36 -0
- package/dist/src/Button/LinkButton.vue.d.ts.map +1 -0
- package/dist/src/Icon/DataType.vue.d.ts +1 -1
- package/dist/src/Icon/DataType.vue.d.ts.map +1 -1
- package/dist/src/Icon/Icon.vue.d.ts +0 -1
- package/dist/src/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/src/Icon/types.d.ts +3 -1
- package/dist/src/Icon/types.d.ts.map +1 -1
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/testUtils/DesignComparator.vue.d.ts +12 -0
- package/dist/src/testUtils/DesignComparator.vue.d.ts.map +1 -0
- package/dist/src/testUtils/storybook.d.ts +69 -0
- package/dist/src/testUtils/storybook.d.ts.map +1 -0
- package/dist/src/types.d.ts +3 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/util/index.d.ts +2 -0
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/nuxtComponentResolver.d.ts +2 -0
- package/dist/src/util/nuxtComponentResolver.d.ts.map +1 -0
- package/dist/src/util/useDarkMode.d.ts +4 -0
- package/dist/src/util/useDarkMode.d.ts.map +1 -1
- package/dist/src/util/useLegacyMode.d.ts +5 -0
- package/dist/src/util/useLegacyMode.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
size: "x-small" | "small" | "medium" | "large";
|
|
17
|
-
leadingIcon: IconName | null;
|
|
18
|
-
trailingIcon: IconName | null;
|
|
19
|
-
variant: "filled" | "outlined" | "transparent";
|
|
20
|
-
destructive: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1
|
+
import { BaseButtonProps } from './BaseButton.vue';
|
|
2
|
+
export type ButtonProps = BaseButtonProps & {};
|
|
3
|
+
declare const _default: <UNUSED>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & ButtonProps & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: (e: "click", event: MouseEvent) => void;
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
};
|
|
23
14
|
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|
|
24
18
|
//# sourceMappingURL=Button.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.vue"],"names":[],"mappings":"AAgBA,OAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,EAAE,CAAC;yBAC9B,MAAM,EACtB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuEO,mBAAmB,CAAC;;2JAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cApEL,OAAO,SAAS,UAAU,KAAG,IAAI;EAwEnC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlFzE,wBAkF4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseButtonProps } from './BaseButton.vue';
|
|
2
|
+
export type LinkButtonProps = BaseButtonProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Route Location the link should navigate to when clicked on; passed to RouterLink/NuxtLink component if globally available
|
|
5
|
+
*/
|
|
6
|
+
to: string | Record<string, unknown>;
|
|
7
|
+
} & {
|
|
8
|
+
/**
|
|
9
|
+
* If set to true, the link will be downloaded instead of navigating to it.
|
|
10
|
+
*/
|
|
11
|
+
download?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
14
|
+
*/
|
|
15
|
+
target?: "_blank" | "_parent" | "_self" | "_top" | string | null;
|
|
16
|
+
/**
|
|
17
|
+
* A rel attribute value to apply on the link. In Nuxt, defaults to "noopener noreferrer" for external links.
|
|
18
|
+
*/
|
|
19
|
+
rel?: "noopener" | "noreferrer" | "nofollow" | "sponsored" | "ugc" | string | null;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: <UNUSED>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
22
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
23
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick"> & LinkButtonProps & Partial<{}>> & import('vue').PublicProps;
|
|
25
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {};
|
|
28
|
+
emit: (e: "click", event: MouseEvent) => void;
|
|
29
|
+
}>) => import('vue').VNode & {
|
|
30
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_PrettifyLocal<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
36
|
+
//# sourceMappingURL=LinkButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.vue.d.ts","sourceRoot":"","sources":["../../../src/Button/LinkButton.vue"],"names":[],"mappings":"AAmEA,OAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAG9C;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,GAAG;IAGF;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjE;;OAEG;IACH,GAAG,CAAC,EACA,UAAU,GACV,YAAY,GACZ,UAAU,GACV,WAAW,GACX,KAAK,GACL,MAAM,GACN,IAAI,CAAC;CACV,CAAC;yBAEe,MAAM,EACtB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuFO,mBAAmB,CAAC;;+JAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA3EL,OAAO,SAAS,UAAU,KAAG,IAAI;EA+EnC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlGzE,wBAkG4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { TypeIconName } from '@knime/kds-styles/img/type-icons/def';
|
|
|
2
2
|
import { TypeId } from './IdToIconNameMapping';
|
|
3
3
|
import { IconSize } from './types';
|
|
4
4
|
export type { TypeIconName };
|
|
5
|
-
type DataTypeSize = Exclude<IconSize, "
|
|
5
|
+
type DataTypeSize = Exclude<IconSize, "xsmall">;
|
|
6
6
|
export type { DataTypeSize };
|
|
7
7
|
type Props = {
|
|
8
8
|
iconName?: TypeIconName | TypeId | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataType.vue.d.ts","sourceRoot":"","sources":["../../../src/Icon/DataType.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataType.vue.d.ts","sourceRoot":"","sources":["../../../src/Icon/DataType.vue"],"names":[],"mappings":"AAsHA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,KAAK,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAEhD,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,CAAC;;UADO,YAAY;cAFR,YAAY,GAAG,MAAM,GAAG,MAAM;eAC7B,MAAM;;AA4GpB,wBAQG"}
|
|
@@ -6,7 +6,6 @@ type __VLS_Props = {
|
|
|
6
6
|
size?: IconSize;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
-
name: IconName;
|
|
10
9
|
size: IconSize;
|
|
11
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.vue.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.vue"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAEnC,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;;UAAX,QAAQ;;AA6DpD,wBAOG"}
|
package/dist/src/Icon/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Icon/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Icon/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,SAAS,iDAAQ,CAAC;AAC/B,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,iDAAkD,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { default as Button } from './Button/Button.vue';
|
|
2
|
+
export { default as LinkButton } from './Button/LinkButton.vue';
|
|
2
3
|
export { default as Icon } from './Icon/Icon.vue';
|
|
3
4
|
export { default as DataType } from './Icon/DataType.vue';
|
|
4
5
|
export type * from './Button/Button.vue';
|
|
6
|
+
export type * from './Button/LinkButton.vue';
|
|
5
7
|
export type * from './Icon/Icon.vue';
|
|
6
8
|
export type * from './Icon/DataType.vue';
|
|
7
9
|
export * from './util';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG1D,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,qBAAqB,CAAC;AAGzC,cAAc,QAAQ,CAAC;AAGvB,mBAAmB,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG1D,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,qBAAqB,CAAC;AAGzC,cAAc,QAAQ,CAAC;AAGvB,mBAAmB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionalComponent } from 'vue';
|
|
2
|
+
export type DesignsToCompare = Record<string, {
|
|
3
|
+
props: Record<string, unknown>;
|
|
4
|
+
variants: Record<string, Record<string, unknown>>;
|
|
5
|
+
}>;
|
|
6
|
+
type Props = {
|
|
7
|
+
designsToCompare: DesignsToCompare;
|
|
8
|
+
component: FunctionalComponent;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=DesignComparator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesignComparator.vue.d.ts","sourceRoot":"","sources":["../../../src/testUtils/DesignComparator.vue"],"names":[],"mappings":"AAmPA,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,KAAK,CAAC;AAKrE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IACE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACnD,CACF,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,mBAAmB,CAAC;CAChC,CAAC;;AA2NF,wBAOG"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { FunctionalComponent } from 'vue';
|
|
2
|
+
import { StoryObj } from '@storybook/vue3-vite';
|
|
3
|
+
import { DesignsToCompare } from './DesignComparator.vue';
|
|
4
|
+
/**
|
|
5
|
+
* Generate all combinations of the provided props by providing an array of possible values for each prop, e.g.:
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* generateCombinations({
|
|
9
|
+
* disabled: [false, true],
|
|
10
|
+
* destructive: [false, true],
|
|
11
|
+
* label: ["Button", undefined]
|
|
12
|
+
* })
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateCombinations(props: Record<string, readonly unknown[]>): Record<string, unknown>[];
|
|
15
|
+
type AllCombinationsStoryParams = {
|
|
16
|
+
component: FunctionalComponent;
|
|
17
|
+
combinationsProps: Record<string, readonly unknown[]>[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
export const AllCombinations: Story = buildAllCombinationsStory({
|
|
23
|
+
component: Button,
|
|
24
|
+
combinationsProps: [
|
|
25
|
+
{
|
|
26
|
+
disabled: [false, true],
|
|
27
|
+
label: ["Button"],
|
|
28
|
+
leadingIcon: [undefined, "ai-general"],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
disabled: [false, true],
|
|
32
|
+
icon: ["ai-general"],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
});
|
|
36
|
+
*/
|
|
37
|
+
export declare function buildAllCombinationsStory(config: AllCombinationsStoryParams): StoryObj;
|
|
38
|
+
type DesignComparatorParams = {
|
|
39
|
+
component: FunctionalComponent;
|
|
40
|
+
designsToCompare: DesignsToCompare;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Builds a Storybook story that compares a component against its Figma designs.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
export const DesignComparator = buildDesignComparator({
|
|
47
|
+
component: Button,
|
|
48
|
+
designsToCompare: {
|
|
49
|
+
"With Icon": {
|
|
50
|
+
props: {
|
|
51
|
+
icon: "placeholder",
|
|
52
|
+
},
|
|
53
|
+
variants: {
|
|
54
|
+
"https://www.figma.com/design/AqT6Q5R4KyYqUb6n5uO2XE/%F0%9F%A7%A9-kds-Components?node-id=3804-89762":
|
|
55
|
+
{
|
|
56
|
+
size: "large",
|
|
57
|
+
},
|
|
58
|
+
"https://www.figma.com/design/AqT6Q5R4KyYqUb6n5uO2XE/%F0%9F%A7%A9-kds-Components?node-id=3804-90047":
|
|
59
|
+
{
|
|
60
|
+
size: "medium",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
*/
|
|
67
|
+
export declare function buildDesignComparatorStory(config: DesignComparatorParams): StoryObj;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=storybook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../../src/testUtils/storybook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAyB,EACvB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;GASG;AAEH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,GACxC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAiB3B;AAED,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC;CACzD,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,0BAA0B,GACjC,QAAQ,CAyBV;AAED,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,sBAAsB,GAC7B,QAAQ,CAsBV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/src/util/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nuxtComponentResolver.d.ts","sourceRoot":"","sources":["../../../src/util/nuxtComponentResolver.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,wBAAwB,mHA6BpC,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export declare const DARK_MODE_STORAGE_KEY = "KNIME_DARK_MODE";
|
|
2
2
|
export type DarkModeType = "light" | "dark" | "system";
|
|
3
3
|
export declare const useDarkMode: () => {
|
|
4
|
+
/** Exposes a writable computed ref to get the current dark mode but also use it in e.g. a v-model to set it */
|
|
4
5
|
currentMode: import('vue').WritableComputedRef<DarkModeType, DarkModeType>;
|
|
6
|
+
/** Whether or not the current user preference is dark. Note, if the preference is set to 'system' it will return false. */
|
|
5
7
|
isDarkMode: import('vue').ComputedRef<boolean>;
|
|
8
|
+
/** Whether or not the current user preference is light. Note, if the preference is set to 'system' it will return false. */
|
|
6
9
|
isLightMode: import('vue').ComputedRef<boolean>;
|
|
10
|
+
/** Whether or not the current user preference is set to 'system'. */
|
|
7
11
|
isSystemMode: import('vue').ComputedRef<boolean>;
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=useDarkMode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDarkMode.d.ts","sourceRoot":"","sources":["../../../src/util/useDarkMode.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAKvD,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"useDarkMode.d.ts","sourceRoot":"","sources":["../../../src/util/useDarkMode.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAKvD,eAAO,MAAM,WAAW;IA2DpB,+GAA+G;;IAE/G,2HAA2H;;IAE3H,4HAA4H;;IAE5H,qEAAqE;;CAGxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLegacyMode.d.ts","sourceRoot":"","sources":["../../../src/util/useLegacyMode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,eAAc,OAAe;IAYvD,oFAAoF;;CAGvF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
6
6
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@knime/styles": "^1.10.0",
|
|
33
33
|
"@knime/utils": "^1.5.3",
|
|
34
34
|
"consola": "^3.4.2",
|
|
35
|
-
"@knime/kds-styles": "^0.0.
|
|
35
|
+
"@knime/kds-styles": "^0.0.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@storybook/vue3-vite": "^9.1.6",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vue": "3.5.18"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"node": "24.
|
|
50
|
+
"node": "24.10.0",
|
|
51
51
|
"npm": "please-use-pnpm"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|