smartsell-ui-kit 0.1.3 → 0.1.5
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.cjs +540 -491
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +540 -492
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -14,17 +14,7 @@ interface UiKitTheme extends Omit<SmartSellTheme, 'title' | 'colors' | 'color'>
|
|
|
14
14
|
colors: UiKitThemeColors;
|
|
15
15
|
color: UiKitThemeColors;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
theme: UiKitTheme;
|
|
19
|
-
borderSoft: string;
|
|
20
|
-
borderStrong: string;
|
|
21
|
-
surfaceMuted: string;
|
|
22
|
-
surfaceRaised: string;
|
|
23
|
-
overlay: string;
|
|
24
|
-
focusRing: string;
|
|
25
|
-
mutedText: string;
|
|
26
|
-
}
|
|
27
|
-
declare function useUiKitTheme(): UiKitThemeTokens;
|
|
17
|
+
declare function useUiKitTheme(): UiKitTheme;
|
|
28
18
|
|
|
29
19
|
type ButtonVariant = 'solid' | 'outline' | 'ghost';
|
|
30
20
|
type ButtonSize = ControlSize;
|
|
@@ -148,8 +138,9 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'danger
|
|
|
148
138
|
controlSize?: ControlSize;
|
|
149
139
|
showPasswordToggle?: boolean;
|
|
150
140
|
fileButtonLabel?: ReactNode;
|
|
141
|
+
icon?: ReactNode;
|
|
151
142
|
}
|
|
152
|
-
declare function Input({ label, hint, error, controlSize, className, showPasswordToggle, fileButtonLabel, id, disabled, placeholder, onChange, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function Input({ label, hint, error, controlSize, className, showPasswordToggle, fileButtonLabel, icon, id, disabled, placeholder, onChange, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
153
144
|
|
|
154
145
|
type ModalActionAppearance = 'text' | 'outlined' | 'contained' | 'link';
|
|
155
146
|
type ModalThemeColors = {
|
|
@@ -167,7 +158,7 @@ type ModalThemeColors = {
|
|
|
167
158
|
interface ModalTheme {
|
|
168
159
|
colors?: Partial<ModalThemeColors>;
|
|
169
160
|
}
|
|
170
|
-
type ModalThemeSource = ModalTheme |
|
|
161
|
+
type ModalThemeSource = ModalTheme | UiKitTheme;
|
|
171
162
|
interface ModalAction {
|
|
172
163
|
label: ReactNode;
|
|
173
164
|
onClick: () => void;
|
|
@@ -380,4 +371,4 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
380
371
|
}
|
|
381
372
|
declare function Textarea({ label, hint, error, controlSize, id, disabled, style, rows, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
382
373
|
|
|
383
|
-
export { Button, type ButtonProps, Card, type CardProps, CardSmall, type CardSmallProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, type ControlSize, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, Modal, type ModalAction, type ModalProps, type ModalSlotContext, type ModalSlotIds, type ModalTheme, type ModalThemeSource, Select, SelectAsync, type SelectAsyncLoadContext, type SelectAsyncLoadResult, type SelectAsyncOption, type SelectAsyncOptionValue, type SelectAsyncProps, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, type SharedTableProps, type StandardModalProps, Table, type TableAction, type TableActionSource, type TableActionTone, TableAsync, type TableAsyncLoadContext, type TableAsyncLoadResult, type TableAsyncProps, type TableColumn, type TableColumnAlign, type TableColumnType, type TableLabels, type TableProps, Textarea, type TextareaProps, type
|
|
374
|
+
export { Button, type ButtonProps, Card, type CardProps, CardSmall, type CardSmallProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, type ControlSize, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, Modal, type ModalAction, type ModalProps, type ModalSlotContext, type ModalSlotIds, type ModalTheme, type ModalThemeSource, Select, SelectAsync, type SelectAsyncLoadContext, type SelectAsyncLoadResult, type SelectAsyncOption, type SelectAsyncOptionValue, type SelectAsyncProps, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, type SharedTableProps, type StandardModalProps, Table, type TableAction, type TableActionSource, type TableActionTone, TableAsync, type TableAsyncLoadContext, type TableAsyncLoadResult, type TableAsyncProps, type TableColumn, type TableColumnAlign, type TableColumnType, type TableLabels, type TableProps, Textarea, type TextareaProps, type UiKitTheme, createModalSlotIds, useUiKitTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,17 +14,7 @@ interface UiKitTheme extends Omit<SmartSellTheme, 'title' | 'colors' | 'color'>
|
|
|
14
14
|
colors: UiKitThemeColors;
|
|
15
15
|
color: UiKitThemeColors;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
theme: UiKitTheme;
|
|
19
|
-
borderSoft: string;
|
|
20
|
-
borderStrong: string;
|
|
21
|
-
surfaceMuted: string;
|
|
22
|
-
surfaceRaised: string;
|
|
23
|
-
overlay: string;
|
|
24
|
-
focusRing: string;
|
|
25
|
-
mutedText: string;
|
|
26
|
-
}
|
|
27
|
-
declare function useUiKitTheme(): UiKitThemeTokens;
|
|
17
|
+
declare function useUiKitTheme(): UiKitTheme;
|
|
28
18
|
|
|
29
19
|
type ButtonVariant = 'solid' | 'outline' | 'ghost';
|
|
30
20
|
type ButtonSize = ControlSize;
|
|
@@ -148,8 +138,9 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'danger
|
|
|
148
138
|
controlSize?: ControlSize;
|
|
149
139
|
showPasswordToggle?: boolean;
|
|
150
140
|
fileButtonLabel?: ReactNode;
|
|
141
|
+
icon?: ReactNode;
|
|
151
142
|
}
|
|
152
|
-
declare function Input({ label, hint, error, controlSize, className, showPasswordToggle, fileButtonLabel, id, disabled, placeholder, onChange, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function Input({ label, hint, error, controlSize, className, showPasswordToggle, fileButtonLabel, icon, id, disabled, placeholder, onChange, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
153
144
|
|
|
154
145
|
type ModalActionAppearance = 'text' | 'outlined' | 'contained' | 'link';
|
|
155
146
|
type ModalThemeColors = {
|
|
@@ -167,7 +158,7 @@ type ModalThemeColors = {
|
|
|
167
158
|
interface ModalTheme {
|
|
168
159
|
colors?: Partial<ModalThemeColors>;
|
|
169
160
|
}
|
|
170
|
-
type ModalThemeSource = ModalTheme |
|
|
161
|
+
type ModalThemeSource = ModalTheme | UiKitTheme;
|
|
171
162
|
interface ModalAction {
|
|
172
163
|
label: ReactNode;
|
|
173
164
|
onClick: () => void;
|
|
@@ -380,4 +371,4 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
380
371
|
}
|
|
381
372
|
declare function Textarea({ label, hint, error, controlSize, id, disabled, style, rows, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
382
373
|
|
|
383
|
-
export { Button, type ButtonProps, Card, type CardProps, CardSmall, type CardSmallProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, type ControlSize, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, Modal, type ModalAction, type ModalProps, type ModalSlotContext, type ModalSlotIds, type ModalTheme, type ModalThemeSource, Select, SelectAsync, type SelectAsyncLoadContext, type SelectAsyncLoadResult, type SelectAsyncOption, type SelectAsyncOptionValue, type SelectAsyncProps, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, type SharedTableProps, type StandardModalProps, Table, type TableAction, type TableActionSource, type TableActionTone, TableAsync, type TableAsyncLoadContext, type TableAsyncLoadResult, type TableAsyncProps, type TableColumn, type TableColumnAlign, type TableColumnType, type TableLabels, type TableProps, Textarea, type TextareaProps, type
|
|
374
|
+
export { Button, type ButtonProps, Card, type CardProps, CardSmall, type CardSmallProps, Checkbox, type CheckboxProps, ComposableModal, type ComposableModalProps, type ComposableModalSlotRenderProps, type ComposableModalSlotRenderer, type ControlSize, DatePicker, type DatePickerChangeContext, type DatePickerChangeReason, type DatePickerMode, type DatePickerProps, type DatePickerValue, Input, type InputProps, Modal, type ModalAction, type ModalProps, type ModalSlotContext, type ModalSlotIds, type ModalTheme, type ModalThemeSource, Select, SelectAsync, type SelectAsyncLoadContext, type SelectAsyncLoadResult, type SelectAsyncOption, type SelectAsyncOptionValue, type SelectAsyncProps, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, type SharedTableProps, type StandardModalProps, Table, type TableAction, type TableActionSource, type TableActionTone, TableAsync, type TableAsyncLoadContext, type TableAsyncLoadResult, type TableAsyncProps, type TableColumn, type TableColumnAlign, type TableColumnType, type TableLabels, type TableProps, Textarea, type TextareaProps, type UiKitTheme, createModalSlotIds, useUiKitTheme };
|