@rovula/ui 0.0.30 → 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 +99 -69
- package/dist/cjs/bundle.js +2 -2
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +12 -2
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +12 -2
- package/dist/cjs/types/components/InputFilter/InputFilter.d.ts +63 -4
- package/dist/cjs/types/components/InputFilter/InputFilter.stories.d.ts +54 -18
- package/dist/cjs/types/components/InputFilter/InputFilter.styles.d.ts +1 -0
- package/dist/cjs/types/components/Search/Search.stories.d.ts +7 -1
- 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/Dropdown/Dropdown.js +12 -8
- package/dist/components/Dropdown/Dropdown.styles.js +1 -1
- package/dist/components/InputFilter/InputFilter.js +118 -12
- package/dist/components/InputFilter/InputFilter.stories.js +5 -4
- package/dist/components/InputFilter/InputFilter.styles.js +9 -4
- package/dist/components/RadioGroup/RadioGroup.js +5 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/Search/Search.stories.js +2 -1
- package/dist/components/TextInput/TextInput.js +2 -1
- package/dist/components/TextInput/TextInput.styles.js +10 -9
- package/dist/esm/bundle.css +99 -69
- package/dist/esm/bundle.js +2 -2
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +12 -2
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +12 -2
- package/dist/esm/types/components/InputFilter/InputFilter.d.ts +63 -4
- package/dist/esm/types/components/InputFilter/InputFilter.stories.d.ts +54 -18
- package/dist/esm/types/components/InputFilter/InputFilter.styles.d.ts +1 -0
- package/dist/esm/types/components/Search/Search.stories.d.ts +7 -1
- package/dist/index.d.ts +83 -14
- package/dist/src/theme/global.css +225 -173
- 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 -55
- 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/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +22 -8
- package/src/components/InputFilter/InputFilter.stories.tsx +9 -8
- package/src/components/InputFilter/InputFilter.styles.ts +9 -4
- package/src/components/InputFilter/InputFilter.tsx +301 -42
- package/src/components/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/components/RadioGroup/RadioGroup.tsx +7 -9
- package/src/components/Search/Search.stories.tsx +2 -1
- package/src/components/TextInput/TextInput.styles.ts +10 -9
- package/src/components/TextInput/TextInput.tsx +11 -10
- 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 -55
|
@@ -25,11 +25,16 @@ export type DropdownProps = {
|
|
|
25
25
|
error?: boolean;
|
|
26
26
|
required?: boolean;
|
|
27
27
|
className?: string;
|
|
28
|
+
optionContainerClassName?: string;
|
|
28
29
|
options: Options[];
|
|
29
30
|
value?: Options;
|
|
30
31
|
onChangeText?: InputProps["onChange"];
|
|
31
32
|
onSelect?: (value: Options) => void;
|
|
32
|
-
renderOptions?: (
|
|
33
|
+
renderOptions?: (value: {
|
|
34
|
+
optionsFiltered: Options[];
|
|
35
|
+
selectedOption: Options | null | undefined;
|
|
36
|
+
onClick: (option: Options) => void;
|
|
37
|
+
}) => ReactNode;
|
|
33
38
|
} & Omit<InputProps, "value">;
|
|
34
39
|
declare const Dropdown: React.ForwardRefExoticComponent<{
|
|
35
40
|
id?: string | undefined;
|
|
@@ -45,10 +50,15 @@ declare const Dropdown: React.ForwardRefExoticComponent<{
|
|
|
45
50
|
error?: boolean | undefined;
|
|
46
51
|
required?: boolean | undefined;
|
|
47
52
|
className?: string | undefined;
|
|
53
|
+
optionContainerClassName?: string | undefined;
|
|
48
54
|
options: Options[];
|
|
49
55
|
value?: Options | undefined;
|
|
50
56
|
onChangeText?: InputProps["onChange"];
|
|
51
57
|
onSelect?: ((value: Options) => void) | undefined;
|
|
52
|
-
renderOptions?: ((
|
|
58
|
+
renderOptions?: ((value: {
|
|
59
|
+
optionsFiltered: Options[];
|
|
60
|
+
selectedOption: Options | null | undefined;
|
|
61
|
+
onClick: (option: Options) => void;
|
|
62
|
+
}) => ReactNode) | undefined;
|
|
53
63
|
} & Omit<InputProps, "value"> & React.RefAttributes<HTMLInputElement>>;
|
|
54
64
|
export default Dropdown;
|
|
@@ -16,11 +16,16 @@ declare const meta: {
|
|
|
16
16
|
error?: boolean | undefined;
|
|
17
17
|
required?: boolean | undefined;
|
|
18
18
|
className?: string | undefined;
|
|
19
|
+
optionContainerClassName?: string | undefined;
|
|
19
20
|
options: Options[];
|
|
20
21
|
value?: Options | undefined;
|
|
21
22
|
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
22
23
|
onSelect?: ((value: Options) => void) | undefined;
|
|
23
|
-
renderOptions?: ((
|
|
24
|
+
renderOptions?: ((value: {
|
|
25
|
+
optionsFiltered: Options[];
|
|
26
|
+
selectedOption: Options | null | undefined;
|
|
27
|
+
onClick: (option: Options) => void;
|
|
28
|
+
}) => React.ReactNode) | undefined;
|
|
24
29
|
} & Omit<import("../..").InputProps, "value"> & React.RefAttributes<HTMLInputElement>>;
|
|
25
30
|
tags: string[];
|
|
26
31
|
parameters: {
|
|
@@ -40,11 +45,16 @@ declare const meta: {
|
|
|
40
45
|
error?: boolean | undefined;
|
|
41
46
|
required?: boolean | undefined;
|
|
42
47
|
className?: string | undefined;
|
|
48
|
+
optionContainerClassName?: string | undefined;
|
|
43
49
|
options: Options[];
|
|
44
50
|
value?: Options | undefined;
|
|
45
51
|
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
46
52
|
onSelect?: (((value: Options) => void) & React.ReactEventHandler<HTMLInputElement>) | undefined;
|
|
47
|
-
renderOptions?: ((
|
|
53
|
+
renderOptions?: ((value: {
|
|
54
|
+
optionsFiltered: Options[];
|
|
55
|
+
selectedOption: Options | null | undefined;
|
|
56
|
+
onClick: (option: Options) => void;
|
|
57
|
+
}) => React.ReactNode) | undefined;
|
|
48
58
|
suppressHydrationWarning?: boolean | undefined;
|
|
49
59
|
color?: string | undefined;
|
|
50
60
|
height?: string | number | undefined;
|
|
@@ -1,5 +1,64 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { InputProps } from "../TextInput/TextInput";
|
|
3
|
+
type RenderLabelCallbackArg = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
handleOnClick: () => void;
|
|
7
|
+
className: string;
|
|
8
|
+
};
|
|
9
|
+
export type Options = {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
renderLabel?: (config: RenderLabelCallbackArg) => ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export type InputFilterProps = {
|
|
15
|
+
id?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
size?: "sm" | "md" | "lg";
|
|
18
|
+
rounded?: "none" | "normal" | "full";
|
|
19
|
+
variant?: "flat" | "outline" | "underline";
|
|
20
|
+
helperText?: string;
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
filterMode?: boolean;
|
|
23
|
+
fullwidth?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
error?: boolean;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
optionContainerClassName?: string;
|
|
29
|
+
options: Options[];
|
|
30
|
+
values?: Options[];
|
|
31
|
+
onChangeText?: InputProps["onChange"];
|
|
32
|
+
onSelect?: (values: Options[]) => void;
|
|
33
|
+
renderOptions?: (value: {
|
|
34
|
+
optionsFiltered: Options[];
|
|
35
|
+
selectedOptions: Options[];
|
|
36
|
+
onClick: (option: Options) => void;
|
|
37
|
+
}) => ReactNode;
|
|
38
|
+
} & Omit<InputProps, "value" | "onSelect">;
|
|
39
|
+
declare const InputFilter: React.ForwardRefExoticComponent<{
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
43
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
44
|
+
variant?: "outline" | "flat" | "underline" | undefined;
|
|
45
|
+
helperText?: string | undefined;
|
|
46
|
+
errorMessage?: string | undefined;
|
|
47
|
+
filterMode?: boolean | undefined;
|
|
48
|
+
fullwidth?: boolean | undefined;
|
|
49
|
+
disabled?: boolean | undefined;
|
|
50
|
+
error?: boolean | undefined;
|
|
51
|
+
required?: boolean | undefined;
|
|
52
|
+
className?: string | undefined;
|
|
53
|
+
optionContainerClassName?: string | undefined;
|
|
54
|
+
options: Options[];
|
|
55
|
+
values?: Options[] | undefined;
|
|
56
|
+
onChangeText?: InputProps["onChange"];
|
|
57
|
+
onSelect?: ((values: Options[]) => void) | undefined;
|
|
58
|
+
renderOptions?: ((value: {
|
|
59
|
+
optionsFiltered: Options[];
|
|
60
|
+
selectedOptions: Options[];
|
|
61
|
+
onClick: (option: Options) => void;
|
|
62
|
+
}) => ReactNode) | undefined;
|
|
63
|
+
} & Omit<InputProps, "onSelect" | "value"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
64
|
export { InputFilter };
|
|
@@ -1,19 +1,63 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Options } from "
|
|
2
|
+
import { Options } from "./InputFilter";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: React.ForwardRefExoticComponent<
|
|
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
|
+
optionContainerClassName?: string | undefined;
|
|
20
|
+
options: Options[];
|
|
21
|
+
values?: Options[] | undefined;
|
|
22
|
+
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
23
|
+
onSelect?: ((values: Options[]) => void) | undefined;
|
|
24
|
+
renderOptions?: ((value: {
|
|
25
|
+
optionsFiltered: Options[];
|
|
26
|
+
selectedOptions: Options[];
|
|
27
|
+
onClick: (option: Options) => void;
|
|
28
|
+
}) => React.ReactNode) | undefined;
|
|
29
|
+
} & Omit<import("../..").InputProps, "onSelect" | "value"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
30
|
tags: string[];
|
|
7
31
|
parameters: {
|
|
8
32
|
layout: string;
|
|
9
33
|
};
|
|
10
34
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
label?: string | undefined;
|
|
37
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
38
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
11
39
|
variant?: "outline" | "flat" | "underline" | undefined;
|
|
12
|
-
|
|
40
|
+
helperText?: string | undefined;
|
|
41
|
+
errorMessage?: string | undefined;
|
|
42
|
+
filterMode?: boolean | undefined;
|
|
43
|
+
fullwidth?: boolean | undefined;
|
|
44
|
+
disabled?: boolean | undefined;
|
|
45
|
+
error?: boolean | undefined;
|
|
46
|
+
required?: boolean | undefined;
|
|
13
47
|
className?: string | undefined;
|
|
48
|
+
optionContainerClassName?: string | undefined;
|
|
49
|
+
options: Options[];
|
|
50
|
+
values?: Options[] | undefined;
|
|
51
|
+
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
52
|
+
onSelect?: ((values: Options[]) => void) | undefined;
|
|
53
|
+
renderOptions?: ((value: {
|
|
54
|
+
optionsFiltered: Options[];
|
|
55
|
+
selectedOptions: Options[];
|
|
56
|
+
onClick: (option: Options) => void;
|
|
57
|
+
}) => React.ReactNode) | undefined;
|
|
58
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
14
59
|
color?: string | undefined;
|
|
15
60
|
height?: string | number | undefined;
|
|
16
|
-
id?: string | undefined;
|
|
17
61
|
lang?: string | undefined;
|
|
18
62
|
max?: string | number | undefined;
|
|
19
63
|
min?: string | number | undefined;
|
|
@@ -200,7 +244,6 @@ declare const meta: {
|
|
|
200
244
|
onMouseOverCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
201
245
|
onMouseUp?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
202
246
|
onMouseUpCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
203
|
-
onSelect?: (((value: Options) => void) & React.ReactEventHandler<HTMLInputElement>) | undefined;
|
|
204
247
|
onSelectCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
205
248
|
onTouchCancel?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
206
249
|
onTouchCancelCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
@@ -243,18 +286,14 @@ declare const meta: {
|
|
|
243
286
|
form?: string | undefined;
|
|
244
287
|
list?: string | undefined;
|
|
245
288
|
step?: string | number | undefined;
|
|
246
|
-
error?: boolean | undefined;
|
|
247
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
248
|
-
disabled?: boolean | undefined;
|
|
249
|
-
fullwidth?: boolean | undefined;
|
|
250
289
|
title?: string | undefined;
|
|
251
290
|
startIcon?: React.ReactNode;
|
|
291
|
+
endIcon?: React.ReactNode;
|
|
252
292
|
formAction?: string | undefined;
|
|
253
293
|
formEncType?: string | undefined;
|
|
254
294
|
formMethod?: string | undefined;
|
|
255
295
|
formNoValidate?: boolean | undefined;
|
|
256
296
|
formTarget?: string | undefined;
|
|
257
|
-
value?: Options | undefined;
|
|
258
297
|
defaultChecked?: boolean | undefined;
|
|
259
298
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
260
299
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -294,7 +333,9 @@ declare const meta: {
|
|
|
294
333
|
unselectable?: "off" | "on" | undefined;
|
|
295
334
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
296
335
|
is?: string | undefined;
|
|
297
|
-
|
|
336
|
+
hasClearIcon?: boolean | undefined;
|
|
337
|
+
hasSearchIcon?: boolean | undefined;
|
|
338
|
+
isFloatingLabel?: boolean | undefined;
|
|
298
339
|
accept?: string | undefined;
|
|
299
340
|
alt?: string | undefined;
|
|
300
341
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -307,18 +348,12 @@ declare const meta: {
|
|
|
307
348
|
pattern?: string | undefined;
|
|
308
349
|
placeholder?: string | undefined;
|
|
309
350
|
readOnly?: boolean | undefined;
|
|
310
|
-
required?: boolean | undefined;
|
|
311
351
|
src?: string | undefined;
|
|
312
|
-
|
|
313
|
-
helperText?: string | undefined;
|
|
314
|
-
errorMessage?: string | undefined;
|
|
352
|
+
keepCloseIconOnValue?: boolean | undefined;
|
|
315
353
|
labelClassName?: string | undefined;
|
|
316
354
|
onClickEndIcon?: (() => void) | undefined;
|
|
317
355
|
renderEndIcon?: (() => React.ReactNode) | undefined;
|
|
318
356
|
onClickStartIcon?: (() => void) | undefined;
|
|
319
|
-
options: Options[];
|
|
320
|
-
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
321
|
-
renderOptions?: ((optionsFiltered: Options[]) => React.ReactNode) | undefined;
|
|
322
357
|
ref?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
323
358
|
key?: React.Key | null | undefined;
|
|
324
359
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -328,6 +363,7 @@ export declare const Default: {
|
|
|
328
363
|
args: {
|
|
329
364
|
label: string;
|
|
330
365
|
fullwidth: boolean;
|
|
366
|
+
disabled: boolean;
|
|
331
367
|
options: Options[];
|
|
332
368
|
};
|
|
333
369
|
render: (args: {}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,5 @@ export declare const filterIconVariant: (props?: ({
|
|
|
4
4
|
error?: boolean | null | undefined;
|
|
5
5
|
position?: "end" | "start" | null | undefined;
|
|
6
6
|
active?: boolean | null | undefined;
|
|
7
|
+
disabled?: boolean | null | undefined;
|
|
7
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -318,7 +318,12 @@ declare const meta: {
|
|
|
318
318
|
onClickStartIcon?: (() => void) | undefined;
|
|
319
319
|
options: Options[];
|
|
320
320
|
onChangeText?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
321
|
-
renderOptions?: ((
|
|
321
|
+
renderOptions?: ((value: {
|
|
322
|
+
optionsFiltered: Options[];
|
|
323
|
+
selectedOption: Options | null | undefined;
|
|
324
|
+
onClick: (option: Options) => void;
|
|
325
|
+
}) => React.ReactNode) | undefined;
|
|
326
|
+
optionContainerClassName?: string | undefined;
|
|
322
327
|
ref?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
323
328
|
key?: React.Key | null | undefined;
|
|
324
329
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -328,6 +333,7 @@ export declare const Default: {
|
|
|
328
333
|
args: {
|
|
329
334
|
label: string;
|
|
330
335
|
fullwidth: boolean;
|
|
336
|
+
size: string;
|
|
331
337
|
options: Options[];
|
|
332
338
|
};
|
|
333
339
|
render: (args: {}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -125,16 +125,16 @@ type TabsProps = {
|
|
|
125
125
|
};
|
|
126
126
|
declare const Tabs: React__default.FC<TabsProps>;
|
|
127
127
|
|
|
128
|
-
type RenderLabelCallbackArg = {
|
|
128
|
+
type RenderLabelCallbackArg$1 = {
|
|
129
129
|
value: string;
|
|
130
130
|
label: string;
|
|
131
131
|
handleOnClick: () => void;
|
|
132
132
|
className: string;
|
|
133
133
|
};
|
|
134
|
-
type Options = {
|
|
134
|
+
type Options$1 = {
|
|
135
135
|
value: string;
|
|
136
136
|
label: string;
|
|
137
|
-
renderLabel?: (config: RenderLabelCallbackArg) => ReactNode;
|
|
137
|
+
renderLabel?: (config: RenderLabelCallbackArg$1) => ReactNode;
|
|
138
138
|
};
|
|
139
139
|
type DropdownProps = {
|
|
140
140
|
id?: string;
|
|
@@ -150,11 +150,16 @@ type DropdownProps = {
|
|
|
150
150
|
error?: boolean;
|
|
151
151
|
required?: boolean;
|
|
152
152
|
className?: string;
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
optionContainerClassName?: string;
|
|
154
|
+
options: Options$1[];
|
|
155
|
+
value?: Options$1;
|
|
155
156
|
onChangeText?: InputProps["onChange"];
|
|
156
|
-
onSelect?: (value: Options) => void;
|
|
157
|
-
renderOptions?: (
|
|
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;
|
|
158
163
|
} & Omit<InputProps, "value">;
|
|
159
164
|
declare const Dropdown: React__default.ForwardRefExoticComponent<{
|
|
160
165
|
id?: string | undefined;
|
|
@@ -170,11 +175,16 @@ declare const Dropdown: React__default.ForwardRefExoticComponent<{
|
|
|
170
175
|
error?: boolean | undefined;
|
|
171
176
|
required?: boolean | undefined;
|
|
172
177
|
className?: string | undefined;
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
optionContainerClassName?: string | undefined;
|
|
179
|
+
options: Options$1[];
|
|
180
|
+
value?: Options$1 | undefined;
|
|
175
181
|
onChangeText?: InputProps["onChange"];
|
|
176
|
-
onSelect?: ((value: Options) => void) | undefined;
|
|
177
|
-
renderOptions?: ((
|
|
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;
|
|
178
188
|
} & Omit<InputProps, "value"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
179
189
|
|
|
180
190
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -393,8 +403,67 @@ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialo
|
|
|
393
403
|
type SearchProps = Omit<DropdownProps, "isFloatingLabel" | "keepCloseIconOnValue" | "hasClearIcon" | "hasSearchIcon" | "endIcon" | "filterMode" | "isFloatingLabel">;
|
|
394
404
|
declare const Search: React__default.ForwardRefExoticComponent<SearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
395
405
|
|
|
396
|
-
type
|
|
397
|
-
|
|
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<{
|
|
443
|
+
id?: string | undefined;
|
|
444
|
+
label?: string | undefined;
|
|
445
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
446
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
447
|
+
variant?: "outline" | "flat" | "underline" | undefined;
|
|
448
|
+
helperText?: string | undefined;
|
|
449
|
+
errorMessage?: string | undefined;
|
|
450
|
+
filterMode?: boolean | undefined;
|
|
451
|
+
fullwidth?: boolean | undefined;
|
|
452
|
+
disabled?: boolean | undefined;
|
|
453
|
+
error?: boolean | undefined;
|
|
454
|
+
required?: boolean | undefined;
|
|
455
|
+
className?: string | undefined;
|
|
456
|
+
optionContainerClassName?: string | undefined;
|
|
457
|
+
options: Options[];
|
|
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>>;
|
|
398
467
|
|
|
399
468
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
400
469
|
type SliderProps = React.ComponentProps<typeof Slider>;
|
|
@@ -524,4 +593,4 @@ declare const getTimestampUTC: (date: Date) => number;
|
|
|
524
593
|
|
|
525
594
|
declare function cn(...inputs: ClassValue[]): string;
|
|
526
595
|
|
|
527
|
-
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, 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 };
|