smartsell-ui-kit 0.0.5 → 0.1.0
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/README.md +36 -24
- package/dist/chunk-YWH2VIAD.js +573 -0
- package/dist/chunk-YWH2VIAD.js.map +1 -0
- package/dist/index.cjs +2554 -674
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -42
- package/dist/index.d.ts +71 -42
- package/dist/index.js +2190 -237
- package/dist/index.js.map +1 -1
- package/dist/{modal-BDeh1TYW.d.cts → modal-B2lmASXk.d.cts} +31 -16
- package/dist/{modal-BDeh1TYW.d.ts → modal-B2lmASXk.d.ts} +31 -16
- package/dist/modal.cjs +293 -355
- package/dist/modal.cjs.map +1 -1
- package/dist/modal.d.cts +2 -2
- package/dist/modal.d.ts +2 -2
- package/dist/modal.js +1 -1
- package/package.json +6 -11
- package/dist/chunk-BI3QBKFG.js +0 -634
- package/dist/chunk-BI3QBKFG.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes,
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
+
export { L as LegacyModalAction, a as LegacyModalCompatProps, b as LegacyModalProps, M as Modal, c as ModalAction, d as ModalProps, e as ModalTheme, f as ModalThemeSource, S as StandardModalProps, U as UiKitThemeTokens, u as useUiKitTheme } from './modal-B2lmASXk.cjs';
|
|
4
|
+
import 'smartsell-theme';
|
|
5
|
+
|
|
6
|
+
type ControlSize$1 = 'sm' | 'md' | 'lg';
|
|
5
7
|
|
|
6
8
|
type ButtonVariant = 'solid' | 'outline' | 'ghost';
|
|
7
|
-
type
|
|
8
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
type ButtonSize = ControlSize$1;
|
|
9
10
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'dangerouslySetInnerHTML'> {
|
|
10
|
-
sdk: SmartSellSDK;
|
|
11
11
|
variant?: ButtonVariant;
|
|
12
|
-
tone?: ButtonTone;
|
|
13
12
|
size?: ButtonSize;
|
|
14
13
|
fullWidth?: boolean;
|
|
15
14
|
leadingIcon?: ReactNode;
|
|
16
15
|
trailingIcon?: ReactNode;
|
|
17
16
|
}
|
|
18
|
-
declare function Button({
|
|
17
|
+
declare function Button({ variant, size, fullWidth, leadingIcon, trailingIcon, children, disabled, style, type, onMouseEnter, onMouseLeave, onMouseDown, onMouseUp, onBlur, onKeyDown, onKeyUp, onTouchStart, onTouchEnd, onTouchCancel, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
19
18
|
|
|
20
|
-
type CardTone = 'default' | 'primary' | 'secondary' | 'warning';
|
|
21
19
|
interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
|
|
22
|
-
sdk: SmartSellSDK;
|
|
23
20
|
children: ReactNode;
|
|
24
21
|
eyebrow?: ReactNode;
|
|
25
22
|
title?: ReactNode;
|
|
26
23
|
action?: ReactNode;
|
|
27
|
-
tone?: CardTone;
|
|
28
24
|
padded?: boolean;
|
|
29
25
|
}
|
|
30
|
-
declare function Card({
|
|
26
|
+
declare function Card({ children, eyebrow, title, action, padded, style, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size' | 'type'> {
|
|
29
|
+
label?: ReactNode;
|
|
30
|
+
hint?: ReactNode;
|
|
31
|
+
error?: ReactNode;
|
|
32
|
+
controlSize?: ControlSize$1;
|
|
33
|
+
indeterminate?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare function Checkbox({ label, hint, error, controlSize, id, checked, defaultChecked, disabled, indeterminate, required, className, style, onChange, onFocus, onBlur, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
31
36
|
|
|
32
37
|
interface ModalSlotIds {
|
|
33
38
|
header: string;
|
|
@@ -36,7 +41,6 @@ interface ModalSlotIds {
|
|
|
36
41
|
}
|
|
37
42
|
interface ModalSlotContext<TPayload = unknown> {
|
|
38
43
|
title: string;
|
|
39
|
-
description?: string;
|
|
40
44
|
payload?: TPayload;
|
|
41
45
|
close: () => void;
|
|
42
46
|
confirm?: () => void;
|
|
@@ -45,13 +49,18 @@ interface ModalSlotContext<TPayload = unknown> {
|
|
|
45
49
|
isOpen: boolean;
|
|
46
50
|
isBusy: boolean;
|
|
47
51
|
}
|
|
52
|
+
interface ComposableModalSlotRenderProps<TPayload = unknown> {
|
|
53
|
+
id: string;
|
|
54
|
+
context: ModalSlotContext<TPayload>;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
type ComposableModalSlotRenderer<TPayload = unknown> = (props: ComposableModalSlotRenderProps<TPayload>) => ReactNode;
|
|
48
58
|
interface ComposableModalProps<TPayload = unknown> {
|
|
49
|
-
sdk: SmartSellSDK;
|
|
50
59
|
isOpen: boolean;
|
|
51
60
|
onClose: () => void;
|
|
52
61
|
title: string;
|
|
53
|
-
description?: string;
|
|
54
62
|
slotBaseId: string;
|
|
63
|
+
renderSlot?: ComposableModalSlotRenderer<TPayload>;
|
|
55
64
|
payload?: TPayload;
|
|
56
65
|
onConfirm?: () => void;
|
|
57
66
|
confirmLabel?: string;
|
|
@@ -68,48 +77,68 @@ interface ComposableModalProps<TPayload = unknown> {
|
|
|
68
77
|
children?: ReactNode;
|
|
69
78
|
}
|
|
70
79
|
declare const createModalSlotIds: (slotBaseId: string) => ModalSlotIds;
|
|
71
|
-
declare function ComposableModal<TPayload = unknown>({
|
|
80
|
+
declare function ComposableModal<TPayload = unknown>({ isOpen, onClose, title, slotBaseId, renderSlot, payload, onConfirm, confirmLabel, cancelLabel, isBusy, closeOnBackdrop, closeOnEscape, hideExpandButton, maximized, hideDefaultFooter, maxWidth, headerFallback, footerFallback, children, }: ComposableModalProps<TPayload>): react_jsx_runtime.JSX.Element;
|
|
72
81
|
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
type DatePickerMode = 'date' | 'datetime';
|
|
83
|
+
type DatePickerValue = string | Date | null;
|
|
84
|
+
type DatePickerChangeReason = 'input' | 'picker' | 'clear';
|
|
85
|
+
interface DatePickerChangeContext {
|
|
86
|
+
reason: DatePickerChangeReason;
|
|
87
|
+
date: Date | null;
|
|
88
|
+
nativeValue: string;
|
|
89
|
+
displayValue: string;
|
|
90
|
+
}
|
|
91
|
+
interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step'> {
|
|
75
92
|
label?: ReactNode;
|
|
76
93
|
hint?: ReactNode;
|
|
77
94
|
error?: ReactNode;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
controlSize?: ControlSize$1;
|
|
96
|
+
value?: DatePickerValue;
|
|
97
|
+
defaultValue?: DatePickerValue;
|
|
98
|
+
onChange?: (value: string | null, context: DatePickerChangeContext) => void;
|
|
99
|
+
mode?: DatePickerMode;
|
|
100
|
+
format?: string;
|
|
101
|
+
allowPastDates?: boolean;
|
|
102
|
+
allowFutureDates?: boolean;
|
|
103
|
+
minDate?: DatePickerValue;
|
|
104
|
+
maxDate?: DatePickerValue;
|
|
105
|
+
minuteStep?: number;
|
|
106
|
+
clearable?: boolean;
|
|
107
|
+
showPickerButton?: boolean;
|
|
108
|
+
isDateUnavailable?: (date: Date) => boolean;
|
|
109
|
+
invalidDateMessage?: ReactNode;
|
|
110
|
+
unavailableDateMessage?: ReactNode;
|
|
111
|
+
pickerButtonLabel?: string;
|
|
112
|
+
clearButtonLabel?: string;
|
|
82
113
|
}
|
|
83
|
-
declare function
|
|
114
|
+
declare function DatePicker({ label, hint, error, controlSize, value, defaultValue, onChange, mode, format, allowPastDates, allowFutureDates, minDate, maxDate, minuteStep, clearable, showPickerButton, isDateUnavailable, invalidDateMessage, unavailableDateMessage, pickerButtonLabel, clearButtonLabel, id, name, disabled, readOnly, required, style, className, placeholder, onBlur, onFocus, onKeyDown, ...rest }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
84
115
|
|
|
85
|
-
type ControlSize$2 = 'sm' | 'md' | 'lg';
|
|
86
116
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size'> {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
117
|
+
label?: ReactNode;
|
|
118
|
+
hint?: ReactNode;
|
|
119
|
+
error?: ReactNode;
|
|
120
|
+
controlSize?: ControlSize$1;
|
|
121
|
+
showPasswordToggle?: boolean;
|
|
92
122
|
}
|
|
93
|
-
declare function Input({
|
|
123
|
+
declare function Input({ label, hint, error, controlSize, showPasswordToggle, id, disabled, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
94
124
|
|
|
95
|
-
type ControlSize$1 = 'sm' | 'md' | 'lg';
|
|
96
125
|
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'dangerouslySetInnerHTML' | 'size'> {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
error?: string;
|
|
126
|
+
label?: ReactNode;
|
|
127
|
+
hint?: ReactNode;
|
|
128
|
+
error?: ReactNode;
|
|
101
129
|
controlSize?: ControlSize$1;
|
|
130
|
+
isMulti?: boolean;
|
|
131
|
+
isFilterable?: boolean;
|
|
102
132
|
}
|
|
103
|
-
declare function Select({
|
|
133
|
+
declare function Select({ label, hint, error, controlSize, id, disabled, style, children, value, defaultValue, onChange, onFocus, onBlur, onKeyDown, onClick, autoFocus, className, isMulti, isFilterable, multiple, ...rest }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
104
134
|
|
|
105
135
|
type ControlSize = 'sm' | 'md' | 'lg';
|
|
106
136
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'dangerouslySetInnerHTML'> {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
error?: string;
|
|
137
|
+
label?: ReactNode;
|
|
138
|
+
hint?: ReactNode;
|
|
139
|
+
error?: ReactNode;
|
|
111
140
|
controlSize?: ControlSize;
|
|
112
141
|
}
|
|
113
|
-
declare function Textarea({
|
|
142
|
+
declare function Textarea({ label, hint, error, controlSize, id, disabled, style, rows, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
114
143
|
|
|
115
|
-
export { Button, type ButtonProps, Card, type CardProps, ComposableModal, type ComposableModalProps,
|
|
144
|
+
export { Button, type ButtonProps, Card, type CardProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, type ModalSlotContext, type ModalSlotIds, Select, type SelectProps, Textarea, type TextareaProps, createModalSlotIds };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes,
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
+
export { L as LegacyModalAction, a as LegacyModalCompatProps, b as LegacyModalProps, M as Modal, c as ModalAction, d as ModalProps, e as ModalTheme, f as ModalThemeSource, S as StandardModalProps, U as UiKitThemeTokens, u as useUiKitTheme } from './modal-B2lmASXk.js';
|
|
4
|
+
import 'smartsell-theme';
|
|
5
|
+
|
|
6
|
+
type ControlSize$1 = 'sm' | 'md' | 'lg';
|
|
5
7
|
|
|
6
8
|
type ButtonVariant = 'solid' | 'outline' | 'ghost';
|
|
7
|
-
type
|
|
8
|
-
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
type ButtonSize = ControlSize$1;
|
|
9
10
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'dangerouslySetInnerHTML'> {
|
|
10
|
-
sdk: SmartSellSDK;
|
|
11
11
|
variant?: ButtonVariant;
|
|
12
|
-
tone?: ButtonTone;
|
|
13
12
|
size?: ButtonSize;
|
|
14
13
|
fullWidth?: boolean;
|
|
15
14
|
leadingIcon?: ReactNode;
|
|
16
15
|
trailingIcon?: ReactNode;
|
|
17
16
|
}
|
|
18
|
-
declare function Button({
|
|
17
|
+
declare function Button({ variant, size, fullWidth, leadingIcon, trailingIcon, children, disabled, style, type, onMouseEnter, onMouseLeave, onMouseDown, onMouseUp, onBlur, onKeyDown, onKeyUp, onTouchStart, onTouchEnd, onTouchCancel, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
19
18
|
|
|
20
|
-
type CardTone = 'default' | 'primary' | 'secondary' | 'warning';
|
|
21
19
|
interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
|
|
22
|
-
sdk: SmartSellSDK;
|
|
23
20
|
children: ReactNode;
|
|
24
21
|
eyebrow?: ReactNode;
|
|
25
22
|
title?: ReactNode;
|
|
26
23
|
action?: ReactNode;
|
|
27
|
-
tone?: CardTone;
|
|
28
24
|
padded?: boolean;
|
|
29
25
|
}
|
|
30
|
-
declare function Card({
|
|
26
|
+
declare function Card({ children, eyebrow, title, action, padded, style, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size' | 'type'> {
|
|
29
|
+
label?: ReactNode;
|
|
30
|
+
hint?: ReactNode;
|
|
31
|
+
error?: ReactNode;
|
|
32
|
+
controlSize?: ControlSize$1;
|
|
33
|
+
indeterminate?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare function Checkbox({ label, hint, error, controlSize, id, checked, defaultChecked, disabled, indeterminate, required, className, style, onChange, onFocus, onBlur, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
31
36
|
|
|
32
37
|
interface ModalSlotIds {
|
|
33
38
|
header: string;
|
|
@@ -36,7 +41,6 @@ interface ModalSlotIds {
|
|
|
36
41
|
}
|
|
37
42
|
interface ModalSlotContext<TPayload = unknown> {
|
|
38
43
|
title: string;
|
|
39
|
-
description?: string;
|
|
40
44
|
payload?: TPayload;
|
|
41
45
|
close: () => void;
|
|
42
46
|
confirm?: () => void;
|
|
@@ -45,13 +49,18 @@ interface ModalSlotContext<TPayload = unknown> {
|
|
|
45
49
|
isOpen: boolean;
|
|
46
50
|
isBusy: boolean;
|
|
47
51
|
}
|
|
52
|
+
interface ComposableModalSlotRenderProps<TPayload = unknown> {
|
|
53
|
+
id: string;
|
|
54
|
+
context: ModalSlotContext<TPayload>;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
type ComposableModalSlotRenderer<TPayload = unknown> = (props: ComposableModalSlotRenderProps<TPayload>) => ReactNode;
|
|
48
58
|
interface ComposableModalProps<TPayload = unknown> {
|
|
49
|
-
sdk: SmartSellSDK;
|
|
50
59
|
isOpen: boolean;
|
|
51
60
|
onClose: () => void;
|
|
52
61
|
title: string;
|
|
53
|
-
description?: string;
|
|
54
62
|
slotBaseId: string;
|
|
63
|
+
renderSlot?: ComposableModalSlotRenderer<TPayload>;
|
|
55
64
|
payload?: TPayload;
|
|
56
65
|
onConfirm?: () => void;
|
|
57
66
|
confirmLabel?: string;
|
|
@@ -68,48 +77,68 @@ interface ComposableModalProps<TPayload = unknown> {
|
|
|
68
77
|
children?: ReactNode;
|
|
69
78
|
}
|
|
70
79
|
declare const createModalSlotIds: (slotBaseId: string) => ModalSlotIds;
|
|
71
|
-
declare function ComposableModal<TPayload = unknown>({
|
|
80
|
+
declare function ComposableModal<TPayload = unknown>({ isOpen, onClose, title, slotBaseId, renderSlot, payload, onConfirm, confirmLabel, cancelLabel, isBusy, closeOnBackdrop, closeOnEscape, hideExpandButton, maximized, hideDefaultFooter, maxWidth, headerFallback, footerFallback, children, }: ComposableModalProps<TPayload>): react_jsx_runtime.JSX.Element;
|
|
72
81
|
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
type DatePickerMode = 'date' | 'datetime';
|
|
83
|
+
type DatePickerValue = string | Date | null;
|
|
84
|
+
type DatePickerChangeReason = 'input' | 'picker' | 'clear';
|
|
85
|
+
interface DatePickerChangeContext {
|
|
86
|
+
reason: DatePickerChangeReason;
|
|
87
|
+
date: Date | null;
|
|
88
|
+
nativeValue: string;
|
|
89
|
+
displayValue: string;
|
|
90
|
+
}
|
|
91
|
+
interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step'> {
|
|
75
92
|
label?: ReactNode;
|
|
76
93
|
hint?: ReactNode;
|
|
77
94
|
error?: ReactNode;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
controlSize?: ControlSize$1;
|
|
96
|
+
value?: DatePickerValue;
|
|
97
|
+
defaultValue?: DatePickerValue;
|
|
98
|
+
onChange?: (value: string | null, context: DatePickerChangeContext) => void;
|
|
99
|
+
mode?: DatePickerMode;
|
|
100
|
+
format?: string;
|
|
101
|
+
allowPastDates?: boolean;
|
|
102
|
+
allowFutureDates?: boolean;
|
|
103
|
+
minDate?: DatePickerValue;
|
|
104
|
+
maxDate?: DatePickerValue;
|
|
105
|
+
minuteStep?: number;
|
|
106
|
+
clearable?: boolean;
|
|
107
|
+
showPickerButton?: boolean;
|
|
108
|
+
isDateUnavailable?: (date: Date) => boolean;
|
|
109
|
+
invalidDateMessage?: ReactNode;
|
|
110
|
+
unavailableDateMessage?: ReactNode;
|
|
111
|
+
pickerButtonLabel?: string;
|
|
112
|
+
clearButtonLabel?: string;
|
|
82
113
|
}
|
|
83
|
-
declare function
|
|
114
|
+
declare function DatePicker({ label, hint, error, controlSize, value, defaultValue, onChange, mode, format, allowPastDates, allowFutureDates, minDate, maxDate, minuteStep, clearable, showPickerButton, isDateUnavailable, invalidDateMessage, unavailableDateMessage, pickerButtonLabel, clearButtonLabel, id, name, disabled, readOnly, required, style, className, placeholder, onBlur, onFocus, onKeyDown, ...rest }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
84
115
|
|
|
85
|
-
type ControlSize$2 = 'sm' | 'md' | 'lg';
|
|
86
116
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size'> {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
117
|
+
label?: ReactNode;
|
|
118
|
+
hint?: ReactNode;
|
|
119
|
+
error?: ReactNode;
|
|
120
|
+
controlSize?: ControlSize$1;
|
|
121
|
+
showPasswordToggle?: boolean;
|
|
92
122
|
}
|
|
93
|
-
declare function Input({
|
|
123
|
+
declare function Input({ label, hint, error, controlSize, showPasswordToggle, id, disabled, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
94
124
|
|
|
95
|
-
type ControlSize$1 = 'sm' | 'md' | 'lg';
|
|
96
125
|
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'dangerouslySetInnerHTML' | 'size'> {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
error?: string;
|
|
126
|
+
label?: ReactNode;
|
|
127
|
+
hint?: ReactNode;
|
|
128
|
+
error?: ReactNode;
|
|
101
129
|
controlSize?: ControlSize$1;
|
|
130
|
+
isMulti?: boolean;
|
|
131
|
+
isFilterable?: boolean;
|
|
102
132
|
}
|
|
103
|
-
declare function Select({
|
|
133
|
+
declare function Select({ label, hint, error, controlSize, id, disabled, style, children, value, defaultValue, onChange, onFocus, onBlur, onKeyDown, onClick, autoFocus, className, isMulti, isFilterable, multiple, ...rest }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
104
134
|
|
|
105
135
|
type ControlSize = 'sm' | 'md' | 'lg';
|
|
106
136
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'dangerouslySetInnerHTML'> {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
error?: string;
|
|
137
|
+
label?: ReactNode;
|
|
138
|
+
hint?: ReactNode;
|
|
139
|
+
error?: ReactNode;
|
|
111
140
|
controlSize?: ControlSize;
|
|
112
141
|
}
|
|
113
|
-
declare function Textarea({
|
|
142
|
+
declare function Textarea({ label, hint, error, controlSize, id, disabled, style, rows, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
114
143
|
|
|
115
|
-
export { Button, type ButtonProps, Card, type CardProps, ComposableModal, type ComposableModalProps,
|
|
144
|
+
export { Button, type ButtonProps, Card, type CardProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, type ModalSlotContext, type ModalSlotIds, Select, type SelectProps, Textarea, type TextareaProps, createModalSlotIds };
|