@vezham/storybook-utils 0.1.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.
@@ -0,0 +1,4 @@
1
+ import { Props } from './types';
2
+
3
+ declare const A: import('@vezham/system-rsc').InternalForwardRefRenderFunction<"div", Props, never>;
4
+ export { A };
@@ -0,0 +1,53 @@
1
+ import { A } from '../src';
2
+ import { Meta } from '@storybook/react';
3
+
4
+ declare const _default: Meta<typeof A>;
5
+ export default _default;
6
+ export declare const Default: {
7
+ args: {
8
+ label: string;
9
+ variant?: "solid" | "bordered" | "light" | undefined;
10
+ border?: "sm" | "lg" | "none" | "md" | undefined;
11
+ radius?: "sm" | "lg" | "none" | "md" | undefined;
12
+ shadow?: "sm" | "lg" | "none" | "md" | undefined;
13
+ blur?: "sm" | "lg" | "none" | "md" | undefined;
14
+ };
15
+ };
16
+ export declare const NoBorder: {
17
+ args: {
18
+ border: string;
19
+ label: string;
20
+ variant?: "solid" | "bordered" | "light" | undefined;
21
+ radius?: "sm" | "lg" | "none" | "md" | undefined;
22
+ shadow?: "sm" | "lg" | "none" | "md" | undefined;
23
+ blur?: "sm" | "lg" | "none" | "md" | undefined;
24
+ };
25
+ };
26
+ export declare const withImage: {
27
+ args: {
28
+ src: string;
29
+ label: string;
30
+ variant?: "solid" | "bordered" | "light" | undefined;
31
+ border?: "sm" | "lg" | "none" | "md" | undefined;
32
+ radius?: "sm" | "lg" | "none" | "md" | undefined;
33
+ shadow?: "sm" | "lg" | "none" | "md" | undefined;
34
+ blur?: "sm" | "lg" | "none" | "md" | undefined;
35
+ };
36
+ };
37
+ export declare const FigSpec: {
38
+ args: {
39
+ label: string;
40
+ variant?: "solid" | "bordered" | "light" | undefined;
41
+ border?: "sm" | "lg" | "none" | "md" | undefined;
42
+ radius?: "sm" | "lg" | "none" | "md" | undefined;
43
+ shadow?: "sm" | "lg" | "none" | "md" | undefined;
44
+ blur?: "sm" | "lg" | "none" | "md" | undefined;
45
+ };
46
+ parameters: {
47
+ design: {
48
+ name: string;
49
+ type: string;
50
+ url: string;
51
+ }[];
52
+ };
53
+ };
@@ -0,0 +1,4 @@
1
+ import { Props } from './types';
2
+
3
+ declare const StoryStatus: import('@vezham/system-rsc').InternalForwardRefRenderFunction<"div", Props, never>;
4
+ export { StoryStatus };
@@ -0,0 +1,22 @@
1
+ import { HTMLHeroUIProps, PropGetter } from '@vezham/system-rsc';
2
+ import { ReactRef } from '@vezham/react-utils';
3
+
4
+ type status = 'todo' | 'dev' | 'review' | 'completed';
5
+ interface Props extends HTMLHeroUIProps<'div'> {
6
+ ref?: ReactRef<HTMLDivElement | null>;
7
+ usecase: status | 'poc';
8
+ dev: status;
9
+ storybook: status;
10
+ tests: status;
11
+ }
12
+ declare const useProps: (props: Props) => {
13
+ Component: import('@vezham/system-rsc').As<any>;
14
+ domRef: import('react').RefObject<HTMLDivElement>;
15
+ children: import('react').ReactNode;
16
+ getBaseProps: PropGetter;
17
+ usecase: status | "poc";
18
+ dev: status;
19
+ storybook: status;
20
+ tests: status;
21
+ };
22
+ export { Props, useProps };
@@ -0,0 +1,3 @@
1
+ declare const getColor: (status: string) => "default" | "danger" | "warning" | "success";
2
+ declare const getVariant: (status: string) => "solid" | "bordered" | "flat" | "dot" | "faded";
3
+ export { getColor, getVariant };
@@ -0,0 +1,4 @@
1
+ import { Props } from './types';
2
+
3
+ declare const StoryTab: import('@vezham/system-rsc').InternalForwardRefRenderFunction<"div", Props, never>;
4
+ export { StoryTab };
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ interface TabProps {
4
+ id?: string;
5
+ className?: string;
6
+ label: string;
7
+ children: ReactNode;
8
+ }
9
+ interface Props {
10
+ title?: string;
11
+ sub_section?: boolean;
12
+ data: TabProps[];
13
+ }
14
+ export { Props, Props as StoryProps, TabProps };
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ config: string;
3
+ }
4
+ declare const StoryTypo: import('@vezham/system-rsc').InternalForwardRefRenderFunction<"div", Props, never>;
5
+ export { StoryTypo };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@vezham/storybook-utils",
3
+ "version": "0.1.0",
4
+ "description": "A package for managing storybook-utils",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vezham/v0xFE-kit.git",
8
+ "directory": "packages/utilities/storybook-utils"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "import": "./index.mjs",
13
+ "require": "./index.js",
14
+ "types": "./index.d.ts"
15
+ }
16
+ },
17
+ "main": "./index.js",
18
+ "types": "./index.d.ts",
19
+ "dependencies": {
20
+ "@vezham/chip": "^0.1.7",
21
+ "@vezham/divider": "^0.1.7",
22
+ "@vezham/react-utils": "^0.1.7",
23
+ "@vezham/system-rsc": "^0.1.7",
24
+ "@vezham/tabs": "^0.1.7",
25
+ "@vezham/theme": "^0.1.7",
26
+ "@vezham/v-atoms": "0.1.0"
27
+ }
28
+ }
package/style.css ADDED
@@ -0,0 +1 @@
1
+ .vtext{line-height:1.5rem}[data-disabled] .vtext{@apply text-default-500;}