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/chunk-UIFTQDYM.js +460 -0
- package/dist/chunk-UIFTQDYM.js.map +1 -0
- package/dist/index.cjs +1406 -481
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -34
- package/dist/index.d.ts +21 -34
- package/dist/index.js +1280 -173
- package/dist/index.js.map +1 -1
- package/dist/{modal-BDeh1TYW.d.cts → modal-CS9SuYSC.d.cts} +28 -12
- package/dist/{modal-BDeh1TYW.d.ts → modal-CS9SuYSC.d.ts} +28 -12
- package/dist/modal.cjs +135 -309
- package/dist/modal.cjs.map +1 -1
- package/dist/modal.d.cts +1 -1
- package/dist/modal.d.ts +1 -1
- package/dist/modal.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-BI3QBKFG.js +0 -634
- package/dist/chunk-BI3QBKFG.js.map +0 -1
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
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
|
-
|
|
79
|
-
|
|
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?:
|
|
99
|
-
hint?:
|
|
100
|
-
error?:
|
|
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?:
|
|
109
|
-
hint?:
|
|
110
|
-
error?:
|
|
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,
|
|
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 };
|