smartsell-ui-kit 0.1.2 → 0.1.4

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.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
- interface UiKitThemeTokens {
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;
@@ -34,7 +24,7 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'dan
34
24
  leadingIcon?: ReactNode;
35
25
  trailingIcon?: ReactNode;
36
26
  }
37
- declare function Button({ variant, size, leadingIcon, trailingIcon, children, disabled, className, type, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
27
+ declare function Button({ variant, size, leadingIcon, trailingIcon, children, disabled, className, style, type, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
38
28
 
39
29
  interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
40
30
  children: ReactNode;
@@ -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 | UiKitThemeTokens;
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 UiKitThemeTokens, createModalSlotIds, useUiKitTheme };
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
- interface UiKitThemeTokens {
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;
@@ -34,7 +24,7 @@ interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'dan
34
24
  leadingIcon?: ReactNode;
35
25
  trailingIcon?: ReactNode;
36
26
  }
37
- declare function Button({ variant, size, leadingIcon, trailingIcon, children, disabled, className, type, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
27
+ declare function Button({ variant, size, leadingIcon, trailingIcon, children, disabled, className, style, type, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
38
28
 
39
29
  interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
40
30
  children: ReactNode;
@@ -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 | UiKitThemeTokens;
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 UiKitThemeTokens, createModalSlotIds, useUiKitTheme };
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 };