@sellgar/kit 0.0.155 → 0.0.157
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 +2 -2
- package/dist/index.js +3056 -2998
- package/package.json +1 -1
- package/types/components/symbols/button/button.d.ts +1 -1
- package/types/components/symbols/button/button.stories.d.ts +6 -1
- package/types/components/symbols/button-link/button-link.d.ts +3 -7
- package/types/components/symbols/button-link/button-link.stories.d.ts +30 -0
- package/types/components/symbols/index.d.ts +1 -0
- package/types/components/symbols/input/input.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
3
|
+
form?: 'icon';
|
|
3
4
|
style?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
4
5
|
size?: 'lg' | 'md' | 'sm' | 'xs';
|
|
5
6
|
target?: 'default' | 'destructive' | 'success' | 'info';
|
|
6
7
|
shape?: 'rounded' | 'pill';
|
|
7
|
-
iconOnly?: boolean;
|
|
8
8
|
leadIcon?: React.ReactNode;
|
|
9
9
|
tailIcon?: React.ReactNode;
|
|
10
10
|
badge?: React.ReactNode;
|
|
@@ -9,10 +9,15 @@ declare const meta: {
|
|
|
9
9
|
target: "default";
|
|
10
10
|
size: "md";
|
|
11
11
|
shape: "rounded";
|
|
12
|
-
iconOnly: false;
|
|
13
12
|
children: string;
|
|
14
13
|
};
|
|
15
14
|
argTypes: {
|
|
15
|
+
form: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "select";
|
|
18
|
+
};
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
16
21
|
style: {
|
|
17
22
|
control: {
|
|
18
23
|
type: "select";
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
3
|
-
form?: 'icon-only';
|
|
4
|
-
style?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
2
|
+
export interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
5
3
|
size?: 'md' | 'sm';
|
|
6
|
-
target?: 'destructive';
|
|
7
|
-
shape?: 'rounded' | 'pill';
|
|
4
|
+
target?: 'default' | 'destructive' | 'success' | 'info';
|
|
8
5
|
leadIcon?: React.ReactNode;
|
|
9
6
|
tailIcon?: React.ReactNode;
|
|
10
|
-
|
|
7
|
+
badge?: React.ReactNode;
|
|
11
8
|
}
|
|
12
9
|
export declare const ButtonLink: React.FC<IProps>;
|
|
13
|
-
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import('./button-link.tsx').IProps>;
|
|
6
|
+
tags: string[];
|
|
7
|
+
args: {
|
|
8
|
+
target: "default";
|
|
9
|
+
size: "md";
|
|
10
|
+
children: string;
|
|
11
|
+
disabled: false;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
target: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "select";
|
|
17
|
+
};
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select";
|
|
23
|
+
};
|
|
24
|
+
options: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
@@ -3,7 +3,7 @@ export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
3
3
|
ref?: React.RefObject<HTMLInputElement> | React.RefCallback<HTMLInputElement>;
|
|
4
4
|
leadIcon?: React.ReactNode;
|
|
5
5
|
tailIcon?: React.ReactNode;
|
|
6
|
-
badge?:
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
7
|
size?: 'xs' | 'md';
|
|
8
8
|
target?: 'destructive';
|
|
9
9
|
}
|