hans-ui-design-lib 0.0.33 → 0.0.34
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.d.ts +35 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare const Button: default_2.MemoExoticComponent<(props: ButtonProps) => JSX.Element>;
|
|
5
|
+
|
|
6
|
+
export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
+
label?: string;
|
|
8
|
+
size?: Size;
|
|
9
|
+
color?: Color;
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
buttonType?: ButtonType;
|
|
12
|
+
customClasses?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
16
|
+
|
|
17
|
+
declare type Color = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
|
|
18
|
+
|
|
19
|
+
export declare const DynamicIconImports: Record<string, () => Promise<IconLibrary>>;
|
|
20
|
+
|
|
21
|
+
export declare const Icon: default_2.FC<IconProps>;
|
|
22
|
+
|
|
23
|
+
export declare type IconLibrary = Record<string, default_2.ComponentType<default_2.SVGProps<SVGSVGElement>>>;
|
|
24
|
+
|
|
25
|
+
export declare interface IconProps {
|
|
26
|
+
name?: string;
|
|
27
|
+
size?: Size;
|
|
28
|
+
customClasses?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare type Size = 'small' | 'medium' | 'large';
|
|
32
|
+
|
|
33
|
+
declare type Variant = 'strong' | 'default' | 'neutral' | 'outline' | 'transparent';
|
|
34
|
+
|
|
35
|
+
export { }
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "hans-ui-design-lib",
|
|
3
3
|
"description": "UI Design System Base Lib",
|
|
4
4
|
"author": "Victor Hanszman",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.34",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.cjs.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"preview": "vite preview",
|
|
33
33
|
"storybook": "storybook dev -p 6006",
|
|
34
34
|
"build-storybook": "storybook build",
|
|
35
|
-
"build": "
|
|
35
|
+
"build": "vite build && npm run copy:assets",
|
|
36
36
|
"copy:assets": "cpx \"src/assets/**/*\" dist/assets",
|
|
37
37
|
"publish:patch": "npm version patch --no-git-tag-version && npm publish",
|
|
38
38
|
"publish:minor": "npm version minor --no-git-tag-version && npm publish",
|