@sellgar/kit 0.0.166 → 0.0.168

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.
Files changed (42) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +7637 -7759
  3. package/package.json +3 -12
  4. package/types/components/drawer/drawer.d.ts +4 -4
  5. package/types/components/helpers/dropdown/dropdown.d.ts +4 -4
  6. package/types/components/helpers/select/select.d.ts +4 -4
  7. package/types/components/modal/modal.d.ts +4 -4
  8. package/types/components/symbols/checkbox/checkbox.d.ts +1 -0
  9. package/types/components/symbols/checkbox/element/element.d.ts +1 -0
  10. package/types/components/symbols/dropdown/dropdown.d.ts +1 -1
  11. package/types/components/symbols/index.d.ts +0 -2
  12. package/types/components/symbols/input/input.d.ts +0 -1
  13. package/types/components/symbols/input-numeral/input-numeral.d.ts +1 -4
  14. package/types/components/symbols/tooltip/tooltip.d.ts +4 -4
  15. package/types/components/table/column/column.context.d.ts +2 -0
  16. package/types/components/table/column/column.d.ts +2 -0
  17. package/types/components/table/table.context.d.ts +1 -0
  18. package/types/components/table2/index.d.ts +1 -0
  19. package/types/components/table2/table.d.ts +40 -0
  20. package/types/components/table2/table2.d.ts +13 -0
  21. package/types/components/table3/cell/cell.context.d.ts +7 -0
  22. package/types/components/table3/cell/cell.d.ts +6 -0
  23. package/types/components/table3/cell/cell.provider.d.ts +6 -0
  24. package/types/components/table3/cell/hook/cell-data.hook.d.ts +1 -0
  25. package/types/components/table3/cell/index.d.ts +2 -0
  26. package/types/components/table3/index.d.ts +2 -0
  27. package/types/components/table3/table.context.d.ts +14 -0
  28. package/types/components/table3/table.d.ts +48 -0
  29. package/types/components/table3/table.provider.d.ts +7 -0
  30. package/types/components/wrappers/scrollbar/scrollbar.d.ts +1 -0
  31. package/types/index.d.ts +1 -1
  32. package/types/components/misc/base-option/base-option.d.ts +0 -10
  33. package/types/components/misc/base-option/index.d.ts +0 -1
  34. package/types/components/misc/divider/divider.stories.d.ts +0 -8
  35. package/types/components/misc/option/option.stories.d.ts +0 -6
  36. package/types/components/symbols/badge/badge.stories.d.ts +0 -6
  37. package/types/components/symbols/button/button.stories.d.ts +0 -6
  38. package/types/components/symbols/button-dropdown/button-dropdown.d.ts +0 -13
  39. package/types/components/symbols/button-dropdown/index.d.ts +0 -1
  40. package/types/components/symbols/button-icon/button-icon.d.ts +0 -10
  41. package/types/components/symbols/button-icon/index.d.ts +0 -1
  42. package/types/components/symbols/button-link/button-link.stories.d.ts +0 -6
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.166",
4
+ "version": "0.0.168",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./types/index.d.ts",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/pyatakovvg/sellgar.ui.kit.git"
12
- },
13
9
  "scripts": {
10
+ "dev": "vite build --watch",
14
11
  "build": "vite build",
15
12
  "login": "yarn npm login",
16
13
  "publish": "yarn npm publish"
@@ -27,13 +24,6 @@
27
24
  "default": "./dist/index.js"
28
25
  }
29
26
  },
30
- "./development": "./src/index.ts",
31
- "./development/theme.css": "./src/theme/theme.css",
32
- "./development/theme.mobile.css": "./src/theme/theme.mobile.css",
33
- "./development/theme.desktop.css": "./src/theme/theme.desktop.css",
34
- "./development/icons.css": "./src/theme/fonts/icons/style.css",
35
- "./development/inter.css": "./src/theme/fonts/inter/style.css",
36
- "./development/geologica.css": "./src/theme/fonts/geologica/style.css",
37
27
  "./icons.css": "./dist/icons.css",
38
28
  "./inter.css": "./dist/inter.css",
39
29
  "./geologica.css": "./dist/geologica.css",
@@ -43,6 +33,7 @@
43
33
  "./theme.terminal.css": "./dist/theme.terminal.css"
44
34
  },
45
35
  "dependencies": {
36
+ "@emotion/react": "11.14.0",
46
37
  "@floating-ui/dom": "1.7.4",
47
38
  "@floating-ui/react": "0.27.16",
48
39
  "@react-input/mask": "2.0.4",
@@ -27,11 +27,11 @@ export declare function useDrawer({ initialOpen, isClosable, isOverlayClosable,
27
27
  floating: HTMLElement | null;
28
28
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
29
29
  context: {
30
+ x: number;
31
+ y: number;
30
32
  update: () => void;
31
33
  placement: import('@floating-ui/utils').Placement;
32
34
  strategy: import('@floating-ui/utils').Strategy;
33
- x: number;
34
- y: number;
35
35
  middlewareData: import('@floating-ui/core').MiddlewareData;
36
36
  isPositioned: boolean;
37
37
  floatingStyles: React.CSSProperties;
@@ -75,11 +75,11 @@ export declare const useDrawerContext: () => {
75
75
  floating: HTMLElement | null;
76
76
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
77
77
  context: {
78
+ x: number;
79
+ y: number;
78
80
  update: () => void;
79
81
  placement: import('@floating-ui/utils').Placement;
80
82
  strategy: import('@floating-ui/utils').Strategy;
81
- x: number;
82
- y: number;
83
83
  middlewareData: import('@floating-ui/core').MiddlewareData;
84
84
  isPositioned: boolean;
85
85
  floatingStyles: React.CSSProperties;
@@ -32,11 +32,11 @@ declare const useDropdown: ({ placement, ...options }: IOptions) => {
32
32
  floating: HTMLElement | null;
33
33
  } & import('@floating-ui/react').ExtendedElements<ReferenceType>;
34
34
  context: {
35
+ x: number;
36
+ y: number;
35
37
  update: () => void;
36
38
  placement: Placement;
37
39
  strategy: import('@floating-ui/utils').Strategy;
38
- x: number;
39
- y: number;
40
40
  middlewareData: import('@floating-ui/core').MiddlewareData;
41
41
  isPositioned: boolean;
42
42
  floatingStyles: React.CSSProperties;
@@ -79,11 +79,11 @@ export declare const useDropdownContext: () => {
79
79
  floating: HTMLElement | null;
80
80
  } & import('@floating-ui/react').ExtendedElements<ReferenceType>;
81
81
  context: {
82
+ x: number;
83
+ y: number;
82
84
  update: () => void;
83
85
  placement: Placement;
84
86
  strategy: import('@floating-ui/utils').Strategy;
85
- x: number;
86
- y: number;
87
87
  middlewareData: import('@floating-ui/core').MiddlewareData;
88
88
  isPositioned: boolean;
89
89
  floatingStyles: React.CSSProperties;
@@ -42,11 +42,11 @@ declare const useSelect: (options: IOptions) => {
42
42
  floating: HTMLElement | null;
43
43
  } & import('@floating-ui/react').ExtendedElements<ReferenceType>;
44
44
  context: {
45
+ x: number;
46
+ y: number;
45
47
  update: () => void;
46
48
  placement: import('@floating-ui/utils').Placement;
47
49
  strategy: import('@floating-ui/utils').Strategy;
48
- x: number;
49
- y: number;
50
50
  middlewareData: import('@floating-ui/core').MiddlewareData;
51
51
  isPositioned: boolean;
52
52
  floatingStyles: React.CSSProperties;
@@ -98,11 +98,11 @@ export declare const useSelectContext: () => {
98
98
  floating: HTMLElement | null;
99
99
  } & import('@floating-ui/react').ExtendedElements<ReferenceType>;
100
100
  context: {
101
+ x: number;
102
+ y: number;
101
103
  update: () => void;
102
104
  placement: import('@floating-ui/utils').Placement;
103
105
  strategy: import('@floating-ui/utils').Strategy;
104
- x: number;
105
- y: number;
106
106
  middlewareData: import('@floating-ui/core').MiddlewareData;
107
107
  isPositioned: boolean;
108
108
  floatingStyles: React.CSSProperties;
@@ -25,11 +25,11 @@ export declare function useDialog({ initialOpen, open: controlledOpen, onOpen, o
25
25
  floating: HTMLElement | null;
26
26
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
27
27
  context: {
28
+ x: number;
29
+ y: number;
28
30
  update: () => void;
29
31
  placement: import('@floating-ui/utils').Placement;
30
32
  strategy: import('@floating-ui/utils').Strategy;
31
- x: number;
32
- y: number;
33
33
  middlewareData: import('@floating-ui/core').MiddlewareData;
34
34
  isPositioned: boolean;
35
35
  floatingStyles: React.CSSProperties;
@@ -72,11 +72,11 @@ export declare const useModalContext: () => {
72
72
  floating: HTMLElement | null;
73
73
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
74
74
  context: {
75
+ x: number;
76
+ y: number;
75
77
  update: () => void;
76
78
  placement: import('@floating-ui/utils').Placement;
77
79
  strategy: import('@floating-ui/utils').Strategy;
78
- x: number;
79
- y: number;
80
80
  middlewareData: import('@floating-ui/core').MiddlewareData;
81
81
  isPositioned: boolean;
82
82
  floatingStyles: React.CSSProperties;
@@ -3,5 +3,6 @@ export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
3
3
  size?: 'sm' | 'md';
4
4
  label?: string;
5
5
  caption?: string;
6
+ isIndeterminate?: boolean;
6
7
  }
7
8
  export declare const Checkbox: React.FC<IProps>;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
3
  size?: 'sm' | 'md';
4
+ isIndeterminate?: boolean;
4
5
  }
5
6
  export declare const Element: React.FC<IProps>;
@@ -20,4 +20,4 @@ export interface IProps<T extends Record<string, any>, K extends keyof T> {
20
20
  onFocus?: () => void;
21
21
  onBlur?: () => void;
22
22
  }
23
- export declare const Dropdown: <T extends Record<string, any>, K extends keyof T>({ value, placeholder, tabIndex, options, optionKey, optionValue, templateValue, templateOption, onBlur, onFocus, onChange, disabled, isClearable, ...props }: IProps<T, K>) => React.JSX.Element;
23
+ export declare const Dropdown: <T extends Record<string, any>, K extends keyof T>({ value, placeholder, tabIndex, options, optionKey, optionValue, templateValue, onBlur, onFocus, onChange, disabled, isClearable, }: IProps<T, K>) => React.JSX.Element;
@@ -5,9 +5,7 @@ export * from './button-link';
5
5
  export * from './radio';
6
6
  export * from './checkbox';
7
7
  export * from './input';
8
- export * from './dropdown';
9
8
  export * from './input-mask';
10
- export * from './input-amount';
11
9
  export * from './input-numeral';
12
10
  export * from './input-select';
13
11
  export * from './textarea';
@@ -3,7 +3,6 @@ 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
- tailSlot?: React.ReactNode;
7
6
  badge?: React.ReactNode;
8
7
  size?: 'xs' | 'md';
9
8
  target?: 'destructive';
@@ -1,10 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { format, unformat } from '@react-input/number-format';
3
3
  import { IProps as IInputProps } from '../input/input.tsx';
4
- export interface IProps extends Omit<IInputProps, 'onChange' | 'value' | 'defaultValue'> {
5
- value?: string;
6
- defaultValue?: string;
7
- onChange: (value: string | undefined) => void;
4
+ export interface IProps extends IInputProps {
8
5
  }
9
6
  export declare const InputNumeralComponent: React.FC<IProps>;
10
7
  type TInputNumeral = typeof InputNumeralComponent & {
@@ -27,11 +27,11 @@ export declare function useTooltip({ size, initialOpen, placement, open: control
27
27
  floating: HTMLElement | null;
28
28
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
29
29
  context: {
30
+ x: number;
31
+ y: number;
30
32
  update: () => void;
31
33
  placement: Placement;
32
34
  strategy: import('@floating-ui/utils').Strategy;
33
- x: number;
34
- y: number;
35
35
  middlewareData: import('@floating-ui/core').MiddlewareData;
36
36
  isPositioned: boolean;
37
37
  floatingStyles: React.CSSProperties;
@@ -75,11 +75,11 @@ export declare const useTooltipContext: () => {
75
75
  floating: HTMLElement | null;
76
76
  } & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
77
77
  context: {
78
+ x: number;
79
+ y: number;
78
80
  update: () => void;
79
81
  placement: Placement;
80
82
  strategy: import('@floating-ui/utils').Strategy;
81
- x: number;
82
- y: number;
83
83
  middlewareData: import('@floating-ui/core').MiddlewareData;
84
84
  isPositioned: boolean;
85
85
  floatingStyles: React.CSSProperties;
@@ -3,6 +3,8 @@ export interface IColumn<T> {
3
3
  accessor?: keyof T;
4
4
  width?: number;
5
5
  align?: 'left' | 'center' | 'right';
6
+ pinLeft?: boolean;
7
+ pinRight?: boolean;
6
8
  dynamicWidth: number;
7
9
  setWidth: React.Dispatch<React.SetStateAction<number>>;
8
10
  }
@@ -5,6 +5,8 @@ interface IProps<T> {
5
5
  accessor?: keyof T;
6
6
  width?: number;
7
7
  align?: 'left' | 'center' | 'right';
8
+ pinLeft?: boolean;
9
+ pinRight?: boolean;
8
10
  }
9
11
  declare const ColumnComponent: <T>(props: React.PropsWithChildren<IProps<T>>) => React.JSX.Element;
10
12
  type TColumn = typeof ColumnComponent & {
@@ -5,6 +5,7 @@ export interface ITree<T> {
5
5
  }
6
6
  export interface IContext<T> {
7
7
  tree?: ITree<T>;
8
+ target?: HTMLTableElement;
8
9
  }
9
10
  export declare const context: React.Context<IContext<any>>;
10
11
  export declare const Provider: React.Provider<IContext<any>>;
@@ -0,0 +1 @@
1
+ export { Table } from './table.tsx';
@@ -0,0 +1,40 @@
1
+ import { default as React } from 'react';
2
+ interface IColumnProps {
3
+ width?: number;
4
+ resizable?: boolean;
5
+ pinLeft?: boolean;
6
+ pinRight?: boolean;
7
+ }
8
+ interface IColumnPropsWithDisplayName extends React.FC<React.PropsWithChildren<IColumnProps>> {
9
+ displayName: string;
10
+ }
11
+ declare const Column: IColumnPropsWithDisplayName;
12
+ interface IHeadProps {
13
+ label?: string;
14
+ }
15
+ interface IHeadPropsWithDisplayName extends React.FC<IHeadProps> {
16
+ displayName: string;
17
+ }
18
+ declare const Head: IHeadPropsWithDisplayName;
19
+ interface ICellProps {
20
+ }
21
+ interface ICellPropsWithDisplayName extends React.FC<React.PropsWithChildren<ICellProps>> {
22
+ displayName: string;
23
+ }
24
+ declare const Cell: ICellPropsWithDisplayName;
25
+ interface ITableSelectProps {
26
+ isUse: boolean;
27
+ onChange: (items: any[]) => void;
28
+ }
29
+ interface ITableProps {
30
+ data: any[];
31
+ select?: ITableSelectProps;
32
+ }
33
+ export declare const TableComponent: React.FC<React.PropsWithChildren<ITableProps>>;
34
+ type TTable = typeof TableComponent & {
35
+ Column: typeof Column;
36
+ Head: typeof Head;
37
+ Cell: typeof Cell;
38
+ };
39
+ export declare const Table: TTable;
40
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ declare const Column: React.FC<React.PropsWithChildren>;
3
+ declare const Title: React.FC<React.PropsWithChildren>;
4
+ declare const Cell: React.FC<React.PropsWithChildren>;
5
+ export declare const TableComponent: () => React.JSX.Element;
6
+ type TTable = typeof TableComponent & {
7
+ Column: typeof Column & {
8
+ Title: typeof Title;
9
+ Cell: typeof Cell;
10
+ };
11
+ };
12
+ export declare const Table: TTable;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface IContext {
3
+ data: any;
4
+ }
5
+ export declare const context: React.Context<IContext>;
6
+ export declare const Provider: React.Provider<IContext>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface IProps {
3
+ data: any;
4
+ }
5
+ export declare const Cell: React.FC<React.PropsWithChildren<IProps>>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface IProps {
3
+ data: any;
4
+ }
5
+ export declare const CellProvider: React.FC<React.PropsWithChildren<IProps>>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useCellData: () => any;
@@ -0,0 +1,2 @@
1
+ export { Cell } from './cell.tsx';
2
+ export { useCellData } from './hook/cell-data.hook.ts';
@@ -0,0 +1,2 @@
1
+ export { Table } from './table.tsx';
2
+ export { useCellData } from './cell';
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface IContext {
3
+ isSelectedAll: boolean;
4
+ isIndeterminate: boolean;
5
+ selectedItems: any[];
6
+ hasSelected: (item: any) => boolean;
7
+ addItem: (item: any) => void;
8
+ deleteItem: (item: any) => void;
9
+ selectAll: () => void;
10
+ deleteAll: () => void;
11
+ }
12
+ export declare const context: React.Context<IContext>;
13
+ export declare const Provider: React.Provider<IContext>;
14
+ export {};
@@ -0,0 +1,48 @@
1
+ import { default as React } from 'react';
2
+ interface IColumnProps {
3
+ width?: number;
4
+ pinLeft?: boolean;
5
+ pinRight?: boolean;
6
+ }
7
+ interface IColumnPropsWithDisplayName extends React.FC<React.PropsWithChildren<IColumnProps>> {
8
+ displayName: string;
9
+ }
10
+ declare const Column: IColumnPropsWithDisplayName;
11
+ interface IHeadProps {
12
+ label?: string;
13
+ }
14
+ interface IHeadPropsWithDisplayName extends React.FC<IHeadProps> {
15
+ displayName: string;
16
+ }
17
+ declare const Head: IHeadPropsWithDisplayName;
18
+ interface ICaptionProps {
19
+ label?: string;
20
+ }
21
+ interface ICaptionPropsWithDisplayName extends React.FC<ICaptionProps> {
22
+ displayName: string;
23
+ }
24
+ declare const Caption: ICaptionPropsWithDisplayName;
25
+ interface ICellProps {
26
+ render?: (item: any) => React.ReactNode;
27
+ }
28
+ interface ICellPropsWithDisplayName extends React.FC<React.PropsWithChildren<ICellProps>> {
29
+ displayName: string;
30
+ }
31
+ declare const Cell: ICellPropsWithDisplayName;
32
+ interface ITableSelectProps {
33
+ isUse: boolean;
34
+ onChange: (items: any[]) => void;
35
+ }
36
+ interface ITableProps {
37
+ data: any[];
38
+ select?: ITableSelectProps;
39
+ }
40
+ export declare const TableComponent: React.FC<React.PropsWithChildren<ITableProps>>;
41
+ type TTable = typeof TableComponent & {
42
+ Column: typeof Column;
43
+ Head: typeof Head;
44
+ Cell: typeof Cell;
45
+ Caption: typeof Caption;
46
+ };
47
+ export declare const Table: TTable;
48
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface IProviderProps {
3
+ data: any[];
4
+ onSelect: (items: any[]) => void;
5
+ }
6
+ export declare const TableProvider: React.FC<React.PropsWithChildren<IProviderProps>>;
7
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface IProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  ref?: any;
4
+ contentStyle?: React.CSSProperties;
4
5
  }
5
6
  export declare const Scrollbar: React.FC<React.PropsWithChildren<IProps>>;
6
7
  export {};
package/types/index.d.ts CHANGED
@@ -4,5 +4,5 @@ export * from './components/wrappers';
4
4
  export * from './subcomponents';
5
5
  export * from './components/helpers/animate';
6
6
  export * from './components/modal';
7
- export * from './components/table';
7
+ export * from './components/table3';
8
8
  export * from './components/drawer';
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface IProps {
3
- leadIcon?: React.ReactNode;
4
- active?: boolean;
5
- label: string;
6
- badge?: string;
7
- toggle?: boolean;
8
- }
9
- export declare const BaseOption: React.FC<IProps>;
10
- export {};
@@ -1 +0,0 @@
1
- export { BaseOption } from './base-option.tsx';
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<React.FC<import('./divider.tsx').IProps>>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const TypeLabelLeft: Story;
7
- export declare const TypeLabelCenter: Story;
8
- export declare const TypeLabelCenterActionCenter: Story;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<React.FC<import('./option.tsx').IProps>>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const TypeLabelLeft: Story;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<React.FC<import('./badge.tsx').IProps>>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const TypeLabelLeft: Story;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<React.FC<import('./button.tsx').IProps>>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
@@ -1,13 +0,0 @@
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';
5
- size?: 'lg' | 'md' | 'sm' | 'xs';
6
- target?: 'destructive';
7
- shape?: 'rounded' | 'pill';
8
- leadIcon?: React.ReactNode;
9
- tailIcon?: React.ReactNode;
10
- label?: string | number;
11
- }
12
- export declare const ButtonDropdown: React.FC<IProps>;
13
- export {};
@@ -1 +0,0 @@
1
- export { ButtonDropdown } from './button-dropdown.tsx';
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
3
- style: 'primary' | 'secondary' | 'tertiary' | 'ghost';
4
- size?: 'lg' | 'md' | 'sm' | 'xs';
5
- target?: 'destructive';
6
- shape?: 'rounded' | 'pill';
7
- icon: React.ReactNode;
8
- }
9
- export declare const ButtonIcon: React.FC<IProps>;
10
- export {};
@@ -1 +0,0 @@
1
- export { ButtonIcon } from './button-icon.tsx';
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StoryObj } from '@storybook/react-vite';
3
- declare const meta: Meta<React.FC<import('./button-link.tsx').IProps>>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;