smartsell-ui-kit 0.0.5 → 0.0.6

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.ts CHANGED
@@ -1,33 +1,31 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
+ import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
3
  import { SmartSellSDK } from 'smartsell-sales-sdk';
4
- export { L as LegacyModalAction, a as LegacyModalProps, M as Modal, b as ModalProps, c as ModalTheme, d as ModalThemeSource, S as StandardModalProps, U as UiKitThemeTokens, u as useUiKitTheme } from './modal-BDeh1TYW.js';
4
+ 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-CS9SuYSC.js';
5
+
6
+ type ControlSize$1 = 'sm' | 'md' | 'lg';
5
7
 
6
8
  type ButtonVariant = 'solid' | 'outline' | 'ghost';
7
- type ButtonTone = 'primary' | 'secondary' | 'neutral' | 'danger';
8
- type ButtonSize = 'sm' | 'md' | 'lg';
9
+ type ButtonSize = ControlSize$1;
9
10
  interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'dangerouslySetInnerHTML'> {
10
11
  sdk: SmartSellSDK;
11
12
  variant?: ButtonVariant;
12
- tone?: ButtonTone;
13
13
  size?: ButtonSize;
14
14
  fullWidth?: boolean;
15
15
  leadingIcon?: ReactNode;
16
16
  trailingIcon?: ReactNode;
17
17
  }
18
- declare function Button({ sdk, variant, tone, 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;
18
+ declare function Button({ sdk, 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
19
 
20
- type CardTone = 'default' | 'primary' | 'secondary' | 'warning';
21
20
  interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
22
21
  sdk: SmartSellSDK;
23
22
  children: ReactNode;
24
23
  eyebrow?: ReactNode;
25
24
  title?: ReactNode;
26
25
  action?: ReactNode;
27
- tone?: CardTone;
28
26
  padded?: boolean;
29
27
  }
30
- declare function Card({ sdk, children, eyebrow, title, action, tone, padded, style, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
28
+ declare function Card({ sdk, children, eyebrow, title, action, padded, style, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
31
29
 
32
30
  interface ModalSlotIds {
33
31
  header: string;
@@ -70,46 +68,35 @@ interface ComposableModalProps<TPayload = unknown> {
70
68
  declare const createModalSlotIds: (slotBaseId: string) => ModalSlotIds;
71
69
  declare function ComposableModal<TPayload = unknown>({ sdk, isOpen, onClose, title, description, slotBaseId, payload, onConfirm, confirmLabel, cancelLabel, isBusy, closeOnBackdrop, closeOnEscape, hideExpandButton, maximized, hideDefaultFooter, maxWidth, headerFallback, footerFallback, children, }: ComposableModalProps<TPayload>): react_jsx_runtime.JSX.Element;
72
70
 
73
- interface FieldProps {
71
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size'> {
74
72
  sdk: SmartSellSDK;
75
73
  label?: ReactNode;
76
74
  hint?: ReactNode;
77
75
  error?: ReactNode;
78
- htmlFor?: string;
79
- required?: boolean;
80
- children: ReactNode;
81
- style?: CSSProperties;
82
- }
83
- declare function Field({ sdk, label, hint, error, htmlFor, required, children, style, }: FieldProps): react_jsx_runtime.JSX.Element;
84
-
85
- type ControlSize$2 = 'sm' | 'md' | 'lg';
86
- interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'dangerouslySetInnerHTML' | 'size'> {
87
- sdk: SmartSellSDK;
88
- label?: string;
89
- hint?: string;
90
- error?: string;
91
- controlSize?: ControlSize$2;
76
+ controlSize?: ControlSize$1;
77
+ showPasswordToggle?: boolean;
92
78
  }
93
- declare function Input({ sdk, label, hint, error, controlSize, id, disabled, style, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
79
+ declare function Input({ sdk, label, hint, error, controlSize, showPasswordToggle, id, disabled, style, type, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
94
80
 
95
- type ControlSize$1 = 'sm' | 'md' | 'lg';
96
81
  interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'dangerouslySetInnerHTML' | 'size'> {
97
82
  sdk: SmartSellSDK;
98
- label?: string;
99
- hint?: string;
100
- error?: string;
83
+ label?: ReactNode;
84
+ hint?: ReactNode;
85
+ error?: ReactNode;
101
86
  controlSize?: ControlSize$1;
87
+ isMulti?: boolean;
88
+ isFilterable?: boolean;
102
89
  }
103
- declare function Select({ sdk, label, hint, error, controlSize, id, disabled, style, children, ...rest }: SelectProps): react_jsx_runtime.JSX.Element;
90
+ declare function Select({ sdk, 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
91
 
105
92
  type ControlSize = 'sm' | 'md' | 'lg';
106
93
  interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'dangerouslySetInnerHTML'> {
107
94
  sdk: SmartSellSDK;
108
- label?: string;
109
- hint?: string;
110
- error?: string;
95
+ label?: ReactNode;
96
+ hint?: ReactNode;
97
+ error?: ReactNode;
111
98
  controlSize?: ControlSize;
112
99
  }
113
100
  declare function Textarea({ sdk, label, hint, error, controlSize, id, disabled, style, rows, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
114
101
 
115
- export { Button, type ButtonProps, Card, type CardProps, ComposableModal, type ComposableModalProps, Field, type FieldProps, Input, type InputProps, type ModalSlotContext, type ModalSlotIds, Select, type SelectProps, Textarea, type TextareaProps, createModalSlotIds };
102
+ export { Button, type ButtonProps, Card, type CardProps, ComposableModal, type ComposableModalProps, Input, type InputProps, type ModalSlotContext, type ModalSlotIds, Select, type SelectProps, Textarea, type TextareaProps, createModalSlotIds };