@rovula/ui 0.0.29 → 0.0.31
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/cjs/bundle.css +139 -69
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +12 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +18 -0
- package/dist/cjs/types/components/InputFilter/InputFilter.d.ts +64 -0
- package/dist/cjs/types/components/InputFilter/InputFilter.stories.d.ts +370 -0
- package/dist/cjs/types/components/InputFilter/InputFilter.styles.d.ts +8 -0
- package/dist/cjs/types/components/Search/Search.d.ts +2 -20
- package/dist/cjs/types/components/Search/Search.stories.d.ts +26 -38
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +10 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +10 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +2 -1
- package/dist/components/Dropdown/Dropdown.js +34 -19
- package/dist/components/Dropdown/Dropdown.stories.js +1 -0
- package/dist/components/Dropdown/Dropdown.styles.js +1 -1
- package/dist/components/InputFilter/InputFilter.js +124 -0
- package/dist/components/InputFilter/InputFilter.stories.js +34 -0
- package/dist/components/InputFilter/InputFilter.styles.js +65 -0
- package/dist/components/RadioGroup/RadioGroup.js +5 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Search/Search.stories.js +2 -1
- package/dist/components/TextInput/TextInput.js +23 -6
- package/dist/components/TextInput/TextInput.styles.js +94 -20
- package/dist/esm/bundle.css +139 -69
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +12 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +18 -0
- package/dist/esm/types/components/InputFilter/InputFilter.d.ts +64 -0
- package/dist/esm/types/components/InputFilter/InputFilter.stories.d.ts +370 -0
- package/dist/esm/types/components/InputFilter/InputFilter.styles.d.ts +8 -0
- package/dist/esm/types/components/Search/Search.d.ts +2 -20
- package/dist/esm/types/components/Search/Search.stories.d.ts +26 -38
- package/dist/esm/types/components/TextInput/TextInput.d.ts +10 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +10 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +82 -16
- package/dist/index.js +1 -0
- package/dist/src/theme/global.css +278 -161
- package/dist/theme/presets/colors.js +21 -0
- package/dist/theme/themes/xspector/color.css +13 -0
- package/dist/theme/themes/xspector/components/action-button.css +44 -42
- package/dist/theme/themes/xspector/state.css +1 -1
- package/dist/theme/tokens/color.css +13 -0
- package/dist/theme/tokens/components/action-button.css +42 -42
- package/package.json +1 -1
- package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/Checkbox/Checkbox.tsx +4 -4
- package/src/components/DatePicker/DatePicker.tsx +4 -2
- package/src/components/Dropdown/Dropdown.stories.tsx +1 -0
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +69 -38
- package/src/components/InputFilter/InputFilter.stories.tsx +72 -0
- package/src/components/InputFilter/InputFilter.styles.ts +74 -0
- package/src/components/InputFilter/InputFilter.tsx +314 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/components/RadioGroup/RadioGroup.tsx +7 -9
- package/src/components/Search/Search.stories.tsx +3 -2
- package/src/components/Search/Search.tsx +13 -2
- package/src/components/TextInput/TextInput.styles.ts +94 -20
- package/src/components/TextInput/TextInput.tsx +53 -11
- package/src/index.ts +1 -0
- package/src/theme/presets/colors.js +21 -0
- package/src/theme/themes/xspector/color.css +13 -0
- package/src/theme/themes/xspector/components/action-button.css +44 -42
- package/src/theme/themes/xspector/state.css +1 -1
- package/src/theme/tokens/color.css +13 -0
- package/src/theme/tokens/components/action-button.css +42 -42
|
@@ -2,50 +2,18 @@ import React from "react";
|
|
|
2
2
|
import { Options } from "../Dropdown/Dropdown";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: React.ForwardRefExoticComponent<
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
9
|
-
rounded?: "none" | "normal" | "full" | undefined;
|
|
10
|
-
variant?: "outline" | "flat" | "underline" | undefined;
|
|
11
|
-
helperText?: string | undefined;
|
|
12
|
-
errorMessage?: string | undefined;
|
|
13
|
-
filterMode?: boolean | undefined;
|
|
14
|
-
fullwidth?: boolean | undefined;
|
|
15
|
-
disabled?: boolean | undefined;
|
|
16
|
-
error?: boolean | undefined;
|
|
17
|
-
required?: boolean | undefined;
|
|
18
|
-
className?: string | undefined;
|
|
19
|
-
options: Options[];
|
|
20
|
-
value?: Options | undefined;
|
|
21
|
-
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
22
|
-
onSelect?: ((value: Options) => void) | undefined;
|
|
23
|
-
} & Omit<import("../..").InputProps, "value"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./Search").SearchProps & React.RefAttributes<HTMLInputElement>>;
|
|
24
6
|
tags: string[];
|
|
25
7
|
parameters: {
|
|
26
8
|
layout: string;
|
|
27
9
|
};
|
|
28
10
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
29
|
-
id?: string | undefined;
|
|
30
|
-
label?: string | undefined;
|
|
31
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
32
|
-
rounded?: "none" | "normal" | "full" | undefined;
|
|
33
11
|
variant?: "outline" | "flat" | "underline" | undefined;
|
|
34
|
-
helperText?: string | undefined;
|
|
35
|
-
errorMessage?: string | undefined;
|
|
36
|
-
filterMode?: boolean | undefined;
|
|
37
|
-
fullwidth?: boolean | undefined;
|
|
38
|
-
disabled?: boolean | undefined;
|
|
39
|
-
error?: boolean | undefined;
|
|
40
|
-
required?: boolean | undefined;
|
|
41
|
-
className?: string | undefined;
|
|
42
|
-
options: Options[];
|
|
43
|
-
value?: Options | undefined;
|
|
44
|
-
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
45
|
-
onSelect?: (((value: Options) => void) & React.ReactEventHandler<HTMLInputElement>) | undefined;
|
|
46
12
|
suppressHydrationWarning?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
47
14
|
color?: string | undefined;
|
|
48
15
|
height?: string | number | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
49
17
|
lang?: string | undefined;
|
|
50
18
|
max?: string | number | undefined;
|
|
51
19
|
min?: string | number | undefined;
|
|
@@ -232,6 +200,7 @@ declare const meta: {
|
|
|
232
200
|
onMouseOverCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
201
|
onMouseUp?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
202
|
onMouseUpCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onSelect?: (((value: Options) => void) & React.ReactEventHandler<HTMLInputElement>) | undefined;
|
|
235
204
|
onSelectCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
236
205
|
onTouchCancel?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
237
206
|
onTouchCancelCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
@@ -274,14 +243,18 @@ declare const meta: {
|
|
|
274
243
|
form?: string | undefined;
|
|
275
244
|
list?: string | undefined;
|
|
276
245
|
step?: string | number | undefined;
|
|
246
|
+
error?: boolean | undefined;
|
|
247
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
248
|
+
disabled?: boolean | undefined;
|
|
249
|
+
fullwidth?: boolean | undefined;
|
|
277
250
|
title?: string | undefined;
|
|
278
251
|
startIcon?: React.ReactNode;
|
|
279
|
-
endIcon?: React.ReactNode;
|
|
280
252
|
formAction?: string | undefined;
|
|
281
253
|
formEncType?: string | undefined;
|
|
282
254
|
formMethod?: string | undefined;
|
|
283
255
|
formNoValidate?: boolean | undefined;
|
|
284
256
|
formTarget?: string | undefined;
|
|
257
|
+
value?: Options | undefined;
|
|
285
258
|
defaultChecked?: boolean | undefined;
|
|
286
259
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
287
260
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -321,8 +294,7 @@ declare const meta: {
|
|
|
321
294
|
unselectable?: "off" | "on" | undefined;
|
|
322
295
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
323
296
|
is?: string | undefined;
|
|
324
|
-
|
|
325
|
-
hasSearchIcon?: boolean | undefined;
|
|
297
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
326
298
|
accept?: string | undefined;
|
|
327
299
|
alt?: string | undefined;
|
|
328
300
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -335,8 +307,23 @@ declare const meta: {
|
|
|
335
307
|
pattern?: string | undefined;
|
|
336
308
|
placeholder?: string | undefined;
|
|
337
309
|
readOnly?: boolean | undefined;
|
|
310
|
+
required?: boolean | undefined;
|
|
338
311
|
src?: string | undefined;
|
|
312
|
+
label?: string | undefined;
|
|
313
|
+
helperText?: string | undefined;
|
|
314
|
+
errorMessage?: string | undefined;
|
|
339
315
|
labelClassName?: string | undefined;
|
|
316
|
+
onClickEndIcon?: (() => void) | undefined;
|
|
317
|
+
renderEndIcon?: (() => React.ReactNode) | undefined;
|
|
318
|
+
onClickStartIcon?: (() => void) | undefined;
|
|
319
|
+
options: Options[];
|
|
320
|
+
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
321
|
+
renderOptions?: ((value: {
|
|
322
|
+
optionsFiltered: Options[];
|
|
323
|
+
selectedOption: Options | null | undefined;
|
|
324
|
+
onClick: (option: Options) => void;
|
|
325
|
+
}) => React.ReactNode) | undefined;
|
|
326
|
+
optionContainerClassName?: string | undefined;
|
|
340
327
|
ref?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
341
328
|
key?: React.Key | null | undefined;
|
|
342
329
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -346,6 +333,7 @@ export declare const Default: {
|
|
|
346
333
|
args: {
|
|
347
334
|
label: string;
|
|
348
335
|
fullwidth: boolean;
|
|
336
|
+
size: string;
|
|
349
337
|
options: Options[];
|
|
350
338
|
};
|
|
351
339
|
render: (args: {}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,12 +12,17 @@ export type InputProps = {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
error?: boolean;
|
|
14
14
|
required?: boolean;
|
|
15
|
+
isFloatingLabel?: boolean;
|
|
16
|
+
keepCloseIconOnValue?: boolean;
|
|
15
17
|
hasClearIcon?: boolean;
|
|
16
18
|
hasSearchIcon?: boolean;
|
|
17
19
|
startIcon?: ReactNode;
|
|
18
20
|
endIcon?: ReactNode;
|
|
19
21
|
className?: string;
|
|
20
22
|
labelClassName?: string;
|
|
23
|
+
onClickStartIcon?: () => void;
|
|
24
|
+
onClickEndIcon?: () => void;
|
|
25
|
+
renderEndIcon?: () => ReactNode;
|
|
21
26
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">;
|
|
22
27
|
export declare const TextInput: React.ForwardRefExoticComponent<{
|
|
23
28
|
id?: string | undefined;
|
|
@@ -32,11 +37,16 @@ export declare const TextInput: React.ForwardRefExoticComponent<{
|
|
|
32
37
|
disabled?: boolean | undefined;
|
|
33
38
|
error?: boolean | undefined;
|
|
34
39
|
required?: boolean | undefined;
|
|
40
|
+
isFloatingLabel?: boolean | undefined;
|
|
41
|
+
keepCloseIconOnValue?: boolean | undefined;
|
|
35
42
|
hasClearIcon?: boolean | undefined;
|
|
36
43
|
hasSearchIcon?: boolean | undefined;
|
|
37
44
|
startIcon?: ReactNode;
|
|
38
45
|
endIcon?: ReactNode;
|
|
39
46
|
className?: string | undefined;
|
|
40
47
|
labelClassName?: string | undefined;
|
|
48
|
+
onClickStartIcon?: (() => void) | undefined;
|
|
49
|
+
onClickEndIcon?: (() => void) | undefined;
|
|
50
|
+
renderEndIcon?: (() => ReactNode) | undefined;
|
|
41
51
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
42
52
|
export default TextInput;
|
|
@@ -14,12 +14,17 @@ declare const meta: {
|
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
error?: boolean | undefined;
|
|
16
16
|
required?: boolean | undefined;
|
|
17
|
+
isFloatingLabel?: boolean | undefined;
|
|
18
|
+
keepCloseIconOnValue?: boolean | undefined;
|
|
17
19
|
hasClearIcon?: boolean | undefined;
|
|
18
20
|
hasSearchIcon?: boolean | undefined;
|
|
19
21
|
startIcon?: React.ReactNode;
|
|
20
22
|
endIcon?: React.ReactNode;
|
|
21
23
|
className?: string | undefined;
|
|
22
24
|
labelClassName?: string | undefined;
|
|
25
|
+
onClickStartIcon?: (() => void) | undefined;
|
|
26
|
+
onClickEndIcon?: (() => void) | undefined;
|
|
27
|
+
renderEndIcon?: (() => React.ReactNode) | undefined;
|
|
23
28
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
24
29
|
tags: string[];
|
|
25
30
|
parameters: {
|
|
@@ -38,12 +43,17 @@ declare const meta: {
|
|
|
38
43
|
disabled?: boolean | undefined;
|
|
39
44
|
error?: boolean | undefined;
|
|
40
45
|
required?: boolean | undefined;
|
|
46
|
+
isFloatingLabel?: boolean | undefined;
|
|
47
|
+
keepCloseIconOnValue?: boolean | undefined;
|
|
41
48
|
hasClearIcon?: boolean | undefined;
|
|
42
49
|
hasSearchIcon?: boolean | undefined;
|
|
43
50
|
startIcon?: React.ReactNode;
|
|
44
51
|
endIcon?: React.ReactNode;
|
|
45
52
|
className?: string | undefined;
|
|
46
53
|
labelClassName?: string | undefined;
|
|
54
|
+
onClickStartIcon?: (() => void) | undefined;
|
|
55
|
+
onClickEndIcon?: (() => void) | undefined;
|
|
56
|
+
renderEndIcon?: (() => React.ReactNode) | undefined;
|
|
47
57
|
suppressHydrationWarning?: boolean | undefined;
|
|
48
58
|
color?: string | undefined;
|
|
49
59
|
height?: string | number | undefined;
|
|
@@ -15,6 +15,7 @@ export declare const labelVariant: (props?: ({
|
|
|
15
15
|
disabled?: boolean | null | undefined;
|
|
16
16
|
error?: boolean | null | undefined;
|
|
17
17
|
hasSearchIcon?: boolean | null | undefined;
|
|
18
|
+
isFloatingLabel?: boolean | null | undefined;
|
|
18
19
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
19
20
|
export declare const helperTextVariant: (props?: ({
|
|
20
21
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -23,6 +23,7 @@ export * from "./components/DataTable/DataTable";
|
|
|
23
23
|
export * from "./components/Dialog/Dialog";
|
|
24
24
|
export * from "./components/AlertDialog/AlertDialog";
|
|
25
25
|
export * from "./components/Search/Search";
|
|
26
|
+
export * from "./components/InputFilter/InputFilter";
|
|
26
27
|
export * from "./components/Slider/Slider";
|
|
27
28
|
export * from "./components/Switch/Switch";
|
|
28
29
|
export * from "./components/DropdownMenu/DropdownMenu";
|
package/dist/index.d.ts
CHANGED
|
@@ -55,12 +55,17 @@ type InputProps = {
|
|
|
55
55
|
disabled?: boolean;
|
|
56
56
|
error?: boolean;
|
|
57
57
|
required?: boolean;
|
|
58
|
+
isFloatingLabel?: boolean;
|
|
59
|
+
keepCloseIconOnValue?: boolean;
|
|
58
60
|
hasClearIcon?: boolean;
|
|
59
61
|
hasSearchIcon?: boolean;
|
|
60
62
|
startIcon?: ReactNode;
|
|
61
63
|
endIcon?: ReactNode;
|
|
62
64
|
className?: string;
|
|
63
65
|
labelClassName?: string;
|
|
66
|
+
onClickStartIcon?: () => void;
|
|
67
|
+
onClickEndIcon?: () => void;
|
|
68
|
+
renderEndIcon?: () => ReactNode;
|
|
64
69
|
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size">;
|
|
65
70
|
declare const TextInput: React__default.ForwardRefExoticComponent<{
|
|
66
71
|
id?: string | undefined;
|
|
@@ -75,12 +80,17 @@ declare const TextInput: React__default.ForwardRefExoticComponent<{
|
|
|
75
80
|
disabled?: boolean | undefined;
|
|
76
81
|
error?: boolean | undefined;
|
|
77
82
|
required?: boolean | undefined;
|
|
83
|
+
isFloatingLabel?: boolean | undefined;
|
|
84
|
+
keepCloseIconOnValue?: boolean | undefined;
|
|
78
85
|
hasClearIcon?: boolean | undefined;
|
|
79
86
|
hasSearchIcon?: boolean | undefined;
|
|
80
87
|
startIcon?: ReactNode;
|
|
81
88
|
endIcon?: ReactNode;
|
|
82
89
|
className?: string | undefined;
|
|
83
90
|
labelClassName?: string | undefined;
|
|
91
|
+
onClickStartIcon?: (() => void) | undefined;
|
|
92
|
+
onClickEndIcon?: (() => void) | undefined;
|
|
93
|
+
renderEndIcon?: (() => ReactNode) | undefined;
|
|
84
94
|
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
85
95
|
|
|
86
96
|
type TextProps = {
|
|
@@ -115,16 +125,16 @@ type TabsProps = {
|
|
|
115
125
|
};
|
|
116
126
|
declare const Tabs: React__default.FC<TabsProps>;
|
|
117
127
|
|
|
118
|
-
type RenderLabelCallbackArg = {
|
|
128
|
+
type RenderLabelCallbackArg$1 = {
|
|
119
129
|
value: string;
|
|
120
130
|
label: string;
|
|
121
131
|
handleOnClick: () => void;
|
|
122
132
|
className: string;
|
|
123
133
|
};
|
|
124
|
-
type Options = {
|
|
134
|
+
type Options$1 = {
|
|
125
135
|
value: string;
|
|
126
136
|
label: string;
|
|
127
|
-
renderLabel?: (config: RenderLabelCallbackArg) => ReactNode;
|
|
137
|
+
renderLabel?: (config: RenderLabelCallbackArg$1) => ReactNode;
|
|
128
138
|
};
|
|
129
139
|
type DropdownProps = {
|
|
130
140
|
id?: string;
|
|
@@ -140,10 +150,16 @@ type DropdownProps = {
|
|
|
140
150
|
error?: boolean;
|
|
141
151
|
required?: boolean;
|
|
142
152
|
className?: string;
|
|
143
|
-
|
|
144
|
-
|
|
153
|
+
optionContainerClassName?: string;
|
|
154
|
+
options: Options$1[];
|
|
155
|
+
value?: Options$1;
|
|
145
156
|
onChangeText?: InputProps["onChange"];
|
|
146
|
-
onSelect?: (value: Options) => void;
|
|
157
|
+
onSelect?: (value: Options$1) => void;
|
|
158
|
+
renderOptions?: (value: {
|
|
159
|
+
optionsFiltered: Options$1[];
|
|
160
|
+
selectedOption: Options$1 | null | undefined;
|
|
161
|
+
onClick: (option: Options$1) => void;
|
|
162
|
+
}) => ReactNode;
|
|
147
163
|
} & Omit<InputProps, "value">;
|
|
148
164
|
declare const Dropdown: React__default.ForwardRefExoticComponent<{
|
|
149
165
|
id?: string | undefined;
|
|
@@ -159,10 +175,16 @@ declare const Dropdown: React__default.ForwardRefExoticComponent<{
|
|
|
159
175
|
error?: boolean | undefined;
|
|
160
176
|
required?: boolean | undefined;
|
|
161
177
|
className?: string | undefined;
|
|
162
|
-
|
|
163
|
-
|
|
178
|
+
optionContainerClassName?: string | undefined;
|
|
179
|
+
options: Options$1[];
|
|
180
|
+
value?: Options$1 | undefined;
|
|
164
181
|
onChangeText?: InputProps["onChange"];
|
|
165
|
-
onSelect?: ((value: Options) => void) | undefined;
|
|
182
|
+
onSelect?: ((value: Options$1) => void) | undefined;
|
|
183
|
+
renderOptions?: ((value: {
|
|
184
|
+
optionsFiltered: Options$1[];
|
|
185
|
+
selectedOption: Options$1 | null | undefined;
|
|
186
|
+
onClick: (option: Options$1) => void;
|
|
187
|
+
}) => ReactNode) | undefined;
|
|
166
188
|
} & Omit<InputProps, "value"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
167
189
|
|
|
168
190
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -378,8 +400,46 @@ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<Alert
|
|
|
378
400
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
379
401
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
380
402
|
|
|
381
|
-
type SearchProps = DropdownProps
|
|
382
|
-
declare const Search: React__default.ForwardRefExoticComponent<
|
|
403
|
+
type SearchProps = Omit<DropdownProps, "isFloatingLabel" | "keepCloseIconOnValue" | "hasClearIcon" | "hasSearchIcon" | "endIcon" | "filterMode" | "isFloatingLabel">;
|
|
404
|
+
declare const Search: React__default.ForwardRefExoticComponent<SearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
405
|
+
|
|
406
|
+
type RenderLabelCallbackArg = {
|
|
407
|
+
value: string;
|
|
408
|
+
label: string;
|
|
409
|
+
handleOnClick: () => void;
|
|
410
|
+
className: string;
|
|
411
|
+
};
|
|
412
|
+
type Options = {
|
|
413
|
+
value: string;
|
|
414
|
+
label: string;
|
|
415
|
+
renderLabel?: (config: RenderLabelCallbackArg) => ReactNode;
|
|
416
|
+
};
|
|
417
|
+
type InputFilterProps = {
|
|
418
|
+
id?: string;
|
|
419
|
+
label?: string;
|
|
420
|
+
size?: "sm" | "md" | "lg";
|
|
421
|
+
rounded?: "none" | "normal" | "full";
|
|
422
|
+
variant?: "flat" | "outline" | "underline";
|
|
423
|
+
helperText?: string;
|
|
424
|
+
errorMessage?: string;
|
|
425
|
+
filterMode?: boolean;
|
|
426
|
+
fullwidth?: boolean;
|
|
427
|
+
disabled?: boolean;
|
|
428
|
+
error?: boolean;
|
|
429
|
+
required?: boolean;
|
|
430
|
+
className?: string;
|
|
431
|
+
optionContainerClassName?: string;
|
|
432
|
+
options: Options[];
|
|
433
|
+
values?: Options[];
|
|
434
|
+
onChangeText?: InputProps["onChange"];
|
|
435
|
+
onSelect?: (values: Options[]) => void;
|
|
436
|
+
renderOptions?: (value: {
|
|
437
|
+
optionsFiltered: Options[];
|
|
438
|
+
selectedOptions: Options[];
|
|
439
|
+
onClick: (option: Options) => void;
|
|
440
|
+
}) => ReactNode;
|
|
441
|
+
} & Omit<InputProps, "value" | "onSelect">;
|
|
442
|
+
declare const InputFilter: React__default.ForwardRefExoticComponent<{
|
|
383
443
|
id?: string | undefined;
|
|
384
444
|
label?: string | undefined;
|
|
385
445
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -393,11 +453,17 @@ declare const Search: React__default.ForwardRefExoticComponent<{
|
|
|
393
453
|
error?: boolean | undefined;
|
|
394
454
|
required?: boolean | undefined;
|
|
395
455
|
className?: string | undefined;
|
|
456
|
+
optionContainerClassName?: string | undefined;
|
|
396
457
|
options: Options[];
|
|
397
|
-
|
|
398
|
-
onChangeText?:
|
|
399
|
-
onSelect?: ((
|
|
400
|
-
|
|
458
|
+
values?: Options[] | undefined;
|
|
459
|
+
onChangeText?: InputProps["onChange"];
|
|
460
|
+
onSelect?: ((values: Options[]) => void) | undefined;
|
|
461
|
+
renderOptions?: ((value: {
|
|
462
|
+
optionsFiltered: Options[];
|
|
463
|
+
selectedOptions: Options[];
|
|
464
|
+
onClick: (option: Options) => void;
|
|
465
|
+
}) => ReactNode) | undefined;
|
|
466
|
+
} & Omit<InputProps, "onSelect" | "value"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
401
467
|
|
|
402
468
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
403
469
|
type SliderProps = React.ComponentProps<typeof Slider>;
|
|
@@ -527,4 +593,4 @@ declare const getTimestampUTC: (date: Date) => number;
|
|
|
527
593
|
|
|
528
594
|
declare function cn(...inputs: ClassValue[]): string;
|
|
529
595
|
|
|
530
|
-
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownProps, Icon, Input, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Text, TextInput, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipSimple, TooltipTrigger, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, reducer, resloveTimestamp, toast, useToast };
|
|
596
|
+
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownProps, Icon, Input, InputFilter, type InputFilterProps, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options$1 as Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Text, TextInput, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipSimple, TooltipTrigger, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, reducer, resloveTimestamp, toast, useToast };
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./components/DataTable/DataTable";
|
|
|
25
25
|
export * from "./components/Dialog/Dialog";
|
|
26
26
|
export * from "./components/AlertDialog/AlertDialog";
|
|
27
27
|
export * from "./components/Search/Search";
|
|
28
|
+
export * from "./components/InputFilter/InputFilter";
|
|
28
29
|
export * from "./components/Slider/Slider";
|
|
29
30
|
export * from "./components/Switch/Switch";
|
|
30
31
|
export * from "./components/DropdownMenu/DropdownMenu";
|