@sellgar/kit 0.0.51 → 0.0.53
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 +7461 -5531
- package/dist/index2.css +1 -1
- package/dist/index3.css +1 -1
- package/package.json +20 -10
- package/types/components/helpers/dropdown/dropdown.d.ts +13 -31
- package/types/components/helpers/select-input/index.d.ts +1 -0
- package/types/components/helpers/select-input/select-input.d.ts +13 -0
- package/types/components/misc/base-option/base-option.d.ts +1 -1
- package/types/components/misc/menu-item/menu-item.d.ts +1 -1
- package/types/components/symbols/accordion/accordion.d.ts +2 -2
- package/types/components/symbols/badge/badge.d.ts +2 -3
- package/types/components/symbols/breadcrumb/breadcrumb.d.ts +3 -4
- package/types/components/symbols/button/button.d.ts +2 -3
- package/types/components/symbols/button-dropdown/button-dropdown.d.ts +2 -3
- package/types/components/symbols/button-icon/button-icon.d.ts +1 -2
- package/types/components/symbols/button-link/button-link.d.ts +2 -3
- package/types/components/symbols/calendar/calendar.d.ts +8 -1
- package/types/components/symbols/calendar/controls/controls.d.ts +7 -0
- package/types/components/symbols/calendar/controls/index.d.ts +1 -0
- package/types/components/symbols/calendar/day/day.d.ts +9 -0
- package/types/components/symbols/calendar/day/index.d.ts +1 -0
- package/types/components/symbols/calendar/day-disabled/day-disabled.d.ts +5 -0
- package/types/components/symbols/calendar/day-disabled/index.d.ts +1 -0
- package/types/components/symbols/calendar/day-name/day-name.d.ts +6 -0
- package/types/components/symbols/calendar/day-name/index.d.ts +1 -0
- package/types/components/symbols/calendar/header/header.d.ts +9 -0
- package/types/components/symbols/calendar/header/index.d.ts +1 -0
- package/types/components/symbols/calendar/inputs/controls/controls.d.ts +7 -0
- package/types/components/symbols/calendar/inputs/controls/index.d.ts +1 -0
- package/types/components/symbols/calendar/inputs/index.d.ts +1 -0
- package/types/components/symbols/calendar/inputs/inputs.d.ts +7 -0
- package/types/components/symbols/calendar/utils/factory-day.utils.d.ts +7 -0
- package/types/components/symbols/calendar/utils/get-days.utils.d.ts +2 -0
- package/types/components/symbols/calendar/week-day/index.d.ts +1 -0
- package/types/components/symbols/calendar/week-day/week-day.d.ts +6 -0
- package/types/components/symbols/caption-field/caption-field.d.ts +1 -2
- package/types/components/symbols/card/card.d.ts +8 -0
- package/types/components/symbols/card/index.d.ts +1 -0
- package/types/components/symbols/chip/with-icon/with-icon.d.ts +1 -1
- package/types/components/symbols/datepicker/datepicker.d.ts +21 -0
- package/types/components/symbols/datepicker/index.d.ts +1 -0
- package/types/components/symbols/datepicker/option/index.d.ts +1 -0
- package/types/components/symbols/datepicker/option/option.d.ts +6 -0
- package/types/components/symbols/datepicker/placeholder/index.d.ts +1 -0
- package/types/components/symbols/datepicker/placeholder/placeholder.d.ts +5 -0
- package/types/components/symbols/index.d.ts +4 -2
- package/types/components/symbols/input/input.d.ts +3 -3
- package/types/components/symbols/input-mask/index.d.ts +1 -0
- package/types/components/symbols/input-mask/input-mask.d.ts +8 -0
- package/types/components/symbols/input-select/input-select.d.ts +2 -2
- package/types/components/symbols/link-typography/index.d.ts +1 -0
- package/types/components/symbols/link-typography/link-typography.d.ts +2 -0
- package/types/components/symbols/select/input/input.d.ts +2 -2
- package/types/components/symbols/select/select.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "module",
|
|
3
2
|
"name": "@sellgar/kit",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.53",
|
|
5
|
+
"description": "Storybook",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
@@ -34,23 +34,33 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "1.6.13",
|
|
37
|
-
"@floating-ui/react": "0.27.
|
|
37
|
+
"@floating-ui/react": "0.27.5",
|
|
38
|
+
"@react-input/mask": "2.0.4",
|
|
38
39
|
"@types/react-slider": "1.3.6",
|
|
39
40
|
"classnames": "2.5.1",
|
|
41
|
+
"date-fns": "4.1.0",
|
|
42
|
+
"moment": "2.30.1",
|
|
40
43
|
"overlayscrollbars": "2.11.1",
|
|
41
44
|
"react-baron": "3.0.0",
|
|
42
|
-
"react-calendar": "5.1.0",
|
|
43
45
|
"react-slider": "2.0.6"
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {
|
|
46
|
-
"react": "^
|
|
47
|
-
"react-dom": "^
|
|
48
|
+
"react": "^19",
|
|
49
|
+
"react-dom": "^19"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"react": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"react-dom": {
|
|
56
|
+
"optional": true
|
|
57
|
+
}
|
|
48
58
|
},
|
|
49
59
|
"devDependencies": {
|
|
50
60
|
"@vitejs/plugin-react": "4.3.4",
|
|
51
|
-
"typescript": "5.
|
|
52
|
-
"vite": "6.2.
|
|
53
|
-
"vite-plugin-dts": "4.5.
|
|
61
|
+
"typescript": "5.8.2",
|
|
62
|
+
"vite": "6.2.1",
|
|
63
|
+
"vite-plugin-dts": "4.5.3",
|
|
54
64
|
"vite-plugin-lib-inject-css": "2.2.1",
|
|
55
65
|
"vite-plugin-webfont-dl": "3.10.4"
|
|
56
66
|
},
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { ReferenceType } from '@floating-ui/react';
|
|
1
|
+
import { ReferenceType, Placement } from '@floating-ui/react';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
interface IOptions {
|
|
4
4
|
initialOpen?: boolean;
|
|
5
5
|
open?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
setOpen?(open: boolean): void;
|
|
8
|
+
placement?: Placement;
|
|
7
9
|
}
|
|
8
|
-
declare const useDropdown: (options: IOptions) => {
|
|
10
|
+
declare const useDropdown: ({ placement, ...options }: IOptions) => {
|
|
9
11
|
open: boolean | undefined;
|
|
10
12
|
setOpen: (open: boolean) => void;
|
|
11
13
|
role: import('@floating-ui/react').ElementProps;
|
|
12
14
|
dismiss: import('@floating-ui/react').ElementProps;
|
|
13
|
-
listRef: React.RefObject<(HTMLElement | null)[]>;
|
|
14
|
-
listContentRef: React.RefObject<(string | null)[]>;
|
|
15
|
-
activeIndex: number | null;
|
|
16
|
-
setActiveIndex: React.Dispatch<React.SetStateAction<number | null>>;
|
|
17
|
-
selectedIndex: number | null;
|
|
18
|
-
setSelectedIndex: React.Dispatch<React.SetStateAction<number | null>>;
|
|
19
15
|
floating: {
|
|
20
|
-
placement:
|
|
16
|
+
placement: Placement;
|
|
21
17
|
strategy: import('@floating-ui/utils').Strategy;
|
|
22
18
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
23
19
|
x: number;
|
|
@@ -37,7 +33,7 @@ declare const useDropdown: (options: IOptions) => {
|
|
|
37
33
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
38
34
|
context: {
|
|
39
35
|
update: () => void;
|
|
40
|
-
placement:
|
|
36
|
+
placement: Placement;
|
|
41
37
|
strategy: import('@floating-ui/utils').Strategy;
|
|
42
38
|
x: number;
|
|
43
39
|
y: number;
|
|
@@ -55,6 +51,7 @@ declare const useDropdown: (options: IOptions) => {
|
|
|
55
51
|
};
|
|
56
52
|
};
|
|
57
53
|
interactions: import('@floating-ui/react').UseInteractionsReturn;
|
|
54
|
+
disabled: boolean | undefined;
|
|
58
55
|
};
|
|
59
56
|
type TDropdownContext = ReturnType<typeof useDropdown>;
|
|
60
57
|
export declare const useDropdownContext: () => {
|
|
@@ -62,14 +59,8 @@ export declare const useDropdownContext: () => {
|
|
|
62
59
|
setOpen: (open: boolean) => void;
|
|
63
60
|
role: import('@floating-ui/react').ElementProps;
|
|
64
61
|
dismiss: import('@floating-ui/react').ElementProps;
|
|
65
|
-
listRef: React.RefObject<(HTMLElement | null)[]>;
|
|
66
|
-
listContentRef: React.RefObject<(string | null)[]>;
|
|
67
|
-
activeIndex: number | null;
|
|
68
|
-
setActiveIndex: React.Dispatch<React.SetStateAction<number | null>>;
|
|
69
|
-
selectedIndex: number | null;
|
|
70
|
-
setSelectedIndex: React.Dispatch<React.SetStateAction<number | null>>;
|
|
71
62
|
floating: {
|
|
72
|
-
placement:
|
|
63
|
+
placement: Placement;
|
|
73
64
|
strategy: import('@floating-ui/utils').Strategy;
|
|
74
65
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
75
66
|
x: number;
|
|
@@ -89,7 +80,7 @@ export declare const useDropdownContext: () => {
|
|
|
89
80
|
} & import('@floating-ui/react').ExtendedElements<ReferenceType>;
|
|
90
81
|
context: {
|
|
91
82
|
update: () => void;
|
|
92
|
-
placement:
|
|
83
|
+
placement: Placement;
|
|
93
84
|
strategy: import('@floating-ui/utils').Strategy;
|
|
94
85
|
x: number;
|
|
95
86
|
y: number;
|
|
@@ -107,10 +98,12 @@ export declare const useDropdownContext: () => {
|
|
|
107
98
|
};
|
|
108
99
|
};
|
|
109
100
|
interactions: import('@floating-ui/react').UseInteractionsReturn;
|
|
101
|
+
disabled: boolean | undefined;
|
|
110
102
|
};
|
|
111
103
|
interface IProps {
|
|
112
104
|
initialOpen?: boolean;
|
|
113
105
|
open?: boolean;
|
|
106
|
+
disabled?: boolean;
|
|
114
107
|
setOpen?(open: boolean): void;
|
|
115
108
|
}
|
|
116
109
|
declare const DropdownWrapper: React.FC<React.PropsWithChildren<IProps>>;
|
|
@@ -118,21 +111,10 @@ interface IReferenceProps {
|
|
|
118
111
|
reference(context: TDropdownContext): React.ReactNode;
|
|
119
112
|
}
|
|
120
113
|
declare const Reference: React.MemoExoticComponent<(props: IReferenceProps) => React.JSX.Element>;
|
|
121
|
-
|
|
122
|
-
empty: React.ReactNode;
|
|
123
|
-
options(context: TDropdownContext): React.ReactNode[];
|
|
124
|
-
}
|
|
125
|
-
declare const Options: React.MemoExoticComponent<(props: IOptionsProps) => React.JSX.Element | null>;
|
|
126
|
-
interface IOptionProps {
|
|
127
|
-
index: number;
|
|
128
|
-
onClick?(event: React.MouseEvent<HTMLElement>): void;
|
|
129
|
-
option(context: TDropdownContext): React.ReactNode;
|
|
130
|
-
}
|
|
131
|
-
declare const Option: React.MemoExoticComponent<(props: IOptionProps) => React.JSX.Element>;
|
|
114
|
+
declare const Target: React.FC<React.PropsWithChildren>;
|
|
132
115
|
type TDropdown = typeof DropdownWrapper & {
|
|
133
116
|
Reference: typeof Reference;
|
|
134
|
-
|
|
135
|
-
Option: typeof Option;
|
|
117
|
+
Target: typeof Target;
|
|
136
118
|
};
|
|
137
119
|
export declare const Dropdown: TDropdown;
|
|
138
120
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectInput } from './select-input.tsx';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> {
|
|
3
|
+
ref?: React.RefCallback<HTMLInputElement>;
|
|
4
|
+
leadIcon?: React.ReactNode;
|
|
5
|
+
tailIcon?: React.ReactNode;
|
|
6
|
+
badge?: string | number;
|
|
7
|
+
size?: 'xs' | 'md';
|
|
8
|
+
target?: 'destructive';
|
|
9
|
+
isFocused?: boolean;
|
|
10
|
+
isClearable?: boolean;
|
|
11
|
+
onClear?(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const SelectInput: React.FC<React.PropsWithChildren<IProps>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
export interface IProps {
|
|
4
3
|
color?: 'gray' | 'blue' | 'green' | 'red' | 'orange' | 'purple' | 'white' | 'surface' | 'white-destructive' | 'surface-destructive';
|
|
5
4
|
state?: 'disabled';
|
|
@@ -7,8 +6,8 @@ export interface IProps {
|
|
|
7
6
|
shape?: 'rounded' | 'pill';
|
|
8
7
|
stroke?: boolean;
|
|
9
8
|
disabled?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
leadIcon?: React.ReactNode;
|
|
10
|
+
tailIcon?: React.ReactNode;
|
|
12
11
|
label: string | number;
|
|
13
12
|
}
|
|
14
13
|
export declare const Badge: React.FC<IProps>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
interface IProps {
|
|
4
3
|
size?: 'sm' | 'md';
|
|
5
4
|
active?: boolean;
|
|
6
|
-
|
|
5
|
+
showDivider?: boolean;
|
|
7
6
|
divider?: '>' | '/';
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
leadIcon?: React.ReactNode;
|
|
8
|
+
tailIcon?: React.ReactNode;
|
|
10
9
|
label: string;
|
|
11
10
|
}
|
|
12
11
|
export declare const Breadcrumb: React.FC<IProps>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
3
|
form?: 'icon-only';
|
|
5
4
|
style?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
6
5
|
size?: 'lg' | 'md' | 'sm' | 'xs';
|
|
7
6
|
target?: 'destructive';
|
|
8
7
|
shape?: 'rounded' | 'pill';
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
leadIcon?: React.ReactNode;
|
|
9
|
+
tailIcon?: React.ReactNode;
|
|
11
10
|
label?: string | number;
|
|
12
11
|
}
|
|
13
12
|
export declare const Button: React.FC<IProps>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
3
|
form?: 'icon-only';
|
|
5
4
|
style?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
6
5
|
size?: 'lg' | 'md' | 'sm' | 'xs';
|
|
7
6
|
target?: 'destructive';
|
|
8
7
|
shape?: 'rounded' | 'pill';
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
leadIcon?: React.ReactNode;
|
|
9
|
+
tailIcon?: React.ReactNode;
|
|
11
10
|
label?: string | number;
|
|
12
11
|
}
|
|
13
12
|
export declare const ButtonDropdown: React.FC<IProps>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
3
|
style: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
5
4
|
size: 'lg' | 'md' | 'sm' | 'xs';
|
|
6
5
|
target?: 'destructive';
|
|
7
6
|
shape?: 'rounded' | 'pill';
|
|
8
|
-
icon:
|
|
7
|
+
icon: React.ReactNode;
|
|
9
8
|
}
|
|
10
9
|
export declare const ButtonIcon: React.FC<IProps>;
|
|
11
10
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TIconName } from '../icon';
|
|
3
2
|
interface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
3
|
form?: 'icon-only';
|
|
5
4
|
style?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
|
|
6
5
|
size?: 'md' | 'sm';
|
|
7
6
|
target?: 'destructive';
|
|
8
7
|
shape?: 'rounded' | 'pill';
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
leadIcon?: React.ReactNode;
|
|
9
|
+
tailIcon?: React.ReactNode;
|
|
11
10
|
label?: string | number;
|
|
12
11
|
}
|
|
13
12
|
export declare const ButtonLink: React.FC<IProps>;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
interface IProps {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
format?: string;
|
|
6
|
+
onChange: (value: string | undefined) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const Calendar: React.FC<IProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Controls } from './controls.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Day } from './day.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DayDisabled } from './day-disabled.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DayName } from './day-name.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Header } from './header.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Controls } from './controls.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Inputs } from './inputs.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WeekDay } from './week-day.tsx';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
type?: 'custom' | 'elevated' | 'flat';
|
|
4
|
+
image?: React.ReactNode;
|
|
5
|
+
alignment?: 'image-first' | 'content-first';
|
|
6
|
+
}
|
|
7
|
+
export declare const Card: React.FC<React.PropsWithChildren<IProps>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from './card.tsx';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IProps {
|
|
3
|
+
tailIcon?: React.ReactNode;
|
|
4
|
+
badge?: string | number;
|
|
5
|
+
size?: 'xs' | 'md';
|
|
6
|
+
target?: 'destructive';
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isClearable?: boolean;
|
|
13
|
+
format?: string;
|
|
14
|
+
displayFormat?: string;
|
|
15
|
+
templateValue?(value: string): React.ReactNode;
|
|
16
|
+
templateOption?(value: string): React.ReactNode;
|
|
17
|
+
onChange?: (value?: string) => void;
|
|
18
|
+
onFocus?: () => void;
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Datepicker: React.FC<IProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Datepicker } from './datepicker.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Option } from './option.tsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Placeholder } from './placeholder.tsx';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './icon';
|
|
2
|
+
export * from './card';
|
|
2
3
|
export * from './badge';
|
|
3
4
|
export * from './button';
|
|
4
5
|
export * from './button-icon';
|
|
@@ -11,8 +12,6 @@ export * from './input-select';
|
|
|
11
12
|
export * from './textarea';
|
|
12
13
|
export * from './label-field';
|
|
13
14
|
export * from './caption-field';
|
|
14
|
-
export * from './link';
|
|
15
|
-
export * from './typography';
|
|
16
15
|
export * from './accordion';
|
|
17
16
|
export * from './avatar';
|
|
18
17
|
export * from './chip';
|
|
@@ -25,3 +24,6 @@ export * from './breadcrumb';
|
|
|
25
24
|
export * from './notification';
|
|
26
25
|
export * from './modal';
|
|
27
26
|
export * from './select';
|
|
27
|
+
export * from './datepicker';
|
|
28
|
+
export * from './typography';
|
|
29
|
+
export * from './link-typography';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> {
|
|
3
|
-
ref?: React.
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
4
|
+
leadIcon?: React.ReactNode;
|
|
5
|
+
tailIcon?: React.ReactNode;
|
|
6
6
|
badge?: string | number;
|
|
7
7
|
size?: 'xs' | 'md';
|
|
8
8
|
target?: 'destructive';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputMask } from './input-mask.tsx';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Replacement } from '@react-input/mask';
|
|
3
|
+
import { IProps as IInputProps } from '../input/input.tsx';
|
|
4
|
+
export interface IProps extends IInputProps {
|
|
5
|
+
mask: string;
|
|
6
|
+
replacement?: Replacement;
|
|
7
|
+
}
|
|
8
|
+
export declare const InputMask: React.FC<IProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps<T extends Record<string, any>, K extends keyof T> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className' | 'children'> {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
leadIcon?: React.ReactNode;
|
|
4
|
+
tailIcon?: React.ReactNode;
|
|
5
5
|
badge?: string | number;
|
|
6
6
|
size?: 'xs' | 'md';
|
|
7
7
|
target?: 'destructive';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LinkTypography } from './link-typography.tsx';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> {
|
|
3
3
|
ref?: React.RefCallback<HTMLInputElement>;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
leadIcon?: React.ReactNode;
|
|
5
|
+
tailIcon?: React.ReactNode;
|
|
6
6
|
badge?: string | number;
|
|
7
7
|
size?: 'xs' | 'md';
|
|
8
8
|
target?: 'destructive';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface IProps<T extends Record<string, any>, K extends keyof T> {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
leadIcon?: React.ReactNode;
|
|
4
|
+
tailIcon?: React.ReactNode;
|
|
5
5
|
badge?: string | number;
|
|
6
6
|
size?: 'xs' | 'md';
|
|
7
7
|
target?: 'destructive';
|