@cfasim-ui/components 0.4.15 → 0.5.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.
- package/dist/{ParamEditorImpl-CcsMO4k-.js → ParamEditorImpl-B-Rd1mHs.js} +2883 -2875
- package/dist/index.css +1 -1
- package/dist/index.js +342 -89
- package/dist/{Icon → src/Icon}/Icon.d.ts +2 -0
- package/dist/src/Icon/defaultIcons.d.ts +5 -0
- package/dist/src/Icon/registry.d.ts +18 -0
- package/dist/src/Toggle/Toggle.test.d.ts +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +3 -0
- package/package.json +4 -2
- /package/dist/{SelectBox-BDCkOxe1.js → SelectBox-Bqsx-5ZB.js} +0 -0
- /package/dist/{Box → src/Box}/Box.d.ts +0 -0
- /package/dist/{Box → src/Box}/Box.spec.d.ts +0 -0
- /package/dist/{Box → src/Box}/Box.test.d.ts +0 -0
- /package/dist/{Button → src/Button}/Button.d.ts +0 -0
- /package/dist/{Button → src/Button}/Button.spec.d.ts +0 -0
- /package/dist/{Button → src/Button}/Button.test.d.ts +0 -0
- /package/dist/{Container → src/Container}/Container.d.ts +0 -0
- /package/dist/{Container → src/Container}/Container.spec.d.ts +0 -0
- /package/dist/{Container → src/Container}/Container.test.d.ts +0 -0
- /package/dist/{Expander → src/Expander}/Expander.d.ts +0 -0
- /package/dist/{Expander → src/Expander}/Expander.spec.d.ts +0 -0
- /package/dist/{Grid → src/Grid}/Grid.d.ts +0 -0
- /package/dist/{Grid → src/Grid}/Grid.spec.d.ts +0 -0
- /package/dist/{Grid → src/Grid}/Grid.test.d.ts +0 -0
- /package/dist/{Hint → src/Hint}/Hint.d.ts +0 -0
- /package/dist/{Hint → src/Hint}/Hint.spec.d.ts +0 -0
- /package/dist/{Hint → src/Hint}/Hint.test.d.ts +0 -0
- /package/dist/{Icon → src/Icon}/Icon.spec.d.ts +0 -0
- /package/dist/{NumberInput/NumberInput.spec.d.ts → src/Icon/Icon.test.d.ts} +0 -0
- /package/dist/{LightDarkToggle → src/LightDarkToggle}/LightDarkToggle.d.ts +0 -0
- /package/dist/{NumberInput → src/NumberInput}/NumberInput.d.ts +0 -0
- /package/dist/{NumberInput/NumberInput.test.d.ts → src/NumberInput/NumberInput.spec.d.ts} +0 -0
- /package/dist/{ParamEditor/ParamEditor.spec.d.ts → src/NumberInput/NumberInput.test.d.ts} +0 -0
- /package/dist/{ParamEditor → src/ParamEditor}/ParamEditor.d.ts +0 -0
- /package/dist/{ParamEditor/ParamEditor.test.d.ts → src/ParamEditor/ParamEditor.spec.d.ts} +0 -0
- /package/dist/{SelectBox/SelectBox.spec.d.ts → src/ParamEditor/ParamEditor.test.d.ts} +0 -0
- /package/dist/{ParamEditor → src/ParamEditor}/ParamEditorImpl.d.ts +0 -0
- /package/dist/{SelectBox → src/SelectBox}/SelectBox.d.ts +0 -0
- /package/dist/{SelectBox/SelectBox.test.d.ts → src/SelectBox/SelectBox.spec.d.ts} +0 -0
- /package/dist/{SidebarLayout/SidebarLayout.test.d.ts → src/SelectBox/SelectBox.test.d.ts} +0 -0
- /package/dist/{SidebarLayout → src/SidebarLayout}/SidebarLayout.d.ts +0 -0
- /package/dist/{Spinner/Spinner.spec.d.ts → src/SidebarLayout/SidebarLayout.test.d.ts} +0 -0
- /package/dist/{Spinner → src/Spinner}/Spinner.d.ts +0 -0
- /package/dist/{TextInput/TextInput.spec.d.ts → src/Spinner/Spinner.spec.d.ts} +0 -0
- /package/dist/{TextInput → src/TextInput}/TextInput.d.ts +0 -0
- /package/dist/{TextInput/TextInput.test.d.ts → src/TextInput/TextInput.spec.d.ts} +0 -0
- /package/dist/{Toggle/Toggle.spec.d.ts → src/TextInput/TextInput.test.d.ts} +0 -0
- /package/dist/{Toggle → src/Toggle}/Toggle.d.ts +0 -0
- /package/dist/{Toggle/Toggle.test.d.ts → src/Toggle/Toggle.spec.d.ts} +0 -0
- /package/dist/{_internal → src/_internal}/gap.d.ts +0 -0
|
@@ -3,7 +3,9 @@ interface Props {
|
|
|
3
3
|
icon: string;
|
|
4
4
|
size?: IconSize | number;
|
|
5
5
|
fill?: boolean;
|
|
6
|
+
/** @deprecated No effect — SVG icons ship at weight 400. */
|
|
6
7
|
weight?: number;
|
|
8
|
+
/** @deprecated No effect — SVG icons ship at grade 0. */
|
|
7
9
|
grade?: number;
|
|
8
10
|
decorative?: boolean;
|
|
9
11
|
ariaLabel?: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/** A registered icon. Provide a bare component (outline only) or both variants. */
|
|
3
|
+
export interface IconVariants {
|
|
4
|
+
outline: Component;
|
|
5
|
+
fill?: Component;
|
|
6
|
+
}
|
|
7
|
+
export type IconRegistration = Component | IconVariants;
|
|
8
|
+
/**
|
|
9
|
+
* Register icons for use with `<Icon icon="name" />`. Call once at app startup.
|
|
10
|
+
* Re-registering a name overwrites the previous entry.
|
|
11
|
+
*/
|
|
12
|
+
export declare function registerIcons(icons: Record<string, IconRegistration>): void;
|
|
13
|
+
/** Resolve the component for an icon name, preferring the fill variant when asked. */
|
|
14
|
+
export declare function getIconComponent(name: string, fill?: boolean): Component | undefined;
|
|
15
|
+
/** Whether an icon name has been registered. */
|
|
16
|
+
export declare function hasIcon(name: string): boolean;
|
|
17
|
+
/** Warn once per unregistered icon name with copy-pasteable registration code. */
|
|
18
|
+
export declare function warnMissingIcon(name: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,9 @@ export { default as Grid } from './Grid/Grid';
|
|
|
8
8
|
export type { GridCols, GridGap } from './Grid/Grid';
|
|
9
9
|
export { default as Hint } from './Hint/Hint';
|
|
10
10
|
export { default as Icon } from './Icon/Icon';
|
|
11
|
+
export type { IconSize } from './Icon/Icon';
|
|
12
|
+
export { registerIcons, hasIcon } from './Icon/registry';
|
|
13
|
+
export type { IconRegistration, IconVariants } from './Icon/registry';
|
|
11
14
|
export { default as LightDarkToggle } from './LightDarkToggle/LightDarkToggle';
|
|
12
15
|
export { default as NumberInput } from './NumberInput/NumberInput';
|
|
13
16
|
export type { NumberRange } from './NumberInput/NumberInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfasim-ui/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue 3 UI components for cfasim-ui",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,16 +38,18 @@
|
|
|
38
38
|
"smol-toml": "^1.6.1",
|
|
39
39
|
"vue-codemirror": "^6.1.1",
|
|
40
40
|
"yaml": "^2.9.0",
|
|
41
|
-
"@cfasim-ui/shared": "0.
|
|
41
|
+
"@cfasim-ui/shared": "0.5.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@material-symbols/svg-400": "^0.44.10",
|
|
47
48
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
48
49
|
"@vue/test-utils": "^2.4.6",
|
|
49
50
|
"happy-dom": "^20.8.9",
|
|
50
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
|
+
"vite-svg-loader": "^5.1.1",
|
|
51
53
|
"vitest": "^4.1.0"
|
|
52
54
|
},
|
|
53
55
|
"scripts": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|