smartsell-ui-kit 0.1.16 → 0.1.18

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
@@ -1,9 +1,32 @@
1
- import { C as ControlSize } from './types-ENHTzCG6.cjs';
2
- export { B as Button, a as ButtonProps, b as Card, c as CardProps, d as CardSmall, e as CardSmallProps, f as Checkbox, g as CheckboxProps, h as ComposableModal, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, D as DatePicker, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, I as Input, q as InputProps, M as Modal, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, S as Select, x as SelectAsync, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, H as Separator, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, T as Table, O as TableAction, P as TableActionSource, Q as TableActionTone, R as TableAsync, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a0 as Textarea, a1 as TextareaProps, a2 as UiKitTheme, a3 as createModalSlotIds, a4 as useUiKitTheme } from './types-ENHTzCG6.cjs';
1
+ import { B as ButtonProps, C as ControlSize } from './types-CSdgG6bT.cjs';
2
+ export { a as Button, b as Card, c as CardProps, d as CardSmall, e as CardSmallProps, f as Checkbox, g as CheckboxProps, h as ComposableModal, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, D as DatePicker, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, I as Input, q as InputProps, M as Modal, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, S as Select, x as SelectAsync, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, H as Separator, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, T as Table, O as TableAction, P as TableActionSource, Q as TableActionTone, R as TableAsync, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a0 as TableRowClickHandler, a1 as Textarea, a2 as TextareaProps, a3 as UiKitTheme, a4 as createModalSlotIds, a5 as useUiKitTheme } from './types-CSdgG6bT.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { HTMLAttributes, CSSProperties } from 'react';
4
+ import { HTMLAttributes, ReactNode, AriaRole, CSSProperties } from 'react';
5
5
  import 'smartsell-theme';
6
6
 
7
+ type FeedbackTone = 'info' | 'positive' | 'warning' | 'negative';
8
+
9
+ type AlertTone = FeedbackTone;
10
+ interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
11
+ tone?: AlertTone;
12
+ children: ReactNode;
13
+ title?: ReactNode;
14
+ icon?: ReactNode;
15
+ action?: ReactNode;
16
+ role?: AriaRole;
17
+ }
18
+ declare function Alert({ tone, children, title, icon, action, role, className, style, ...rest }: AlertProps): react_jsx_runtime.JSX.Element;
19
+
20
+ type IconButtonSize = NonNullable<ButtonProps['size']>;
21
+ type IconButtonVariant = Exclude<NonNullable<ButtonProps['variant']>, 'primary'>;
22
+ interface IconButtonProps extends Omit<ButtonProps, 'aria-label' | 'children' | 'leadingIcon' | 'trailingIcon' | 'variant'> {
23
+ icon: ReactNode;
24
+ ariaLabel: string;
25
+ size?: IconButtonSize;
26
+ variant?: IconButtonVariant;
27
+ }
28
+ declare function IconButton({ icon, ariaLabel, size, variant, className, style, ...rest }: IconButtonProps): react_jsx_runtime.JSX.Element;
29
+
7
30
  type LoadingSize = ControlSize | number;
8
31
  interface LoadingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'color'> {
9
32
  /** Rendered size of the animation. Named sizes map to 28 / 40 / 56 px. */
@@ -19,4 +42,14 @@ interface LoadingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' |
19
42
  }
20
43
  declare function Loading({ size, color, label, accessibleLabel, speed, className, style, ...rest }: LoadingProps): react_jsx_runtime.JSX.Element;
21
44
 
22
- export { ControlSize, Loading, type LoadingProps, type LoadingSize };
45
+ type ResultStateTone = FeedbackTone;
46
+ interface ResultStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
47
+ tone?: ResultStateTone;
48
+ icon?: ReactNode;
49
+ title: ReactNode;
50
+ description?: ReactNode;
51
+ action?: ReactNode;
52
+ }
53
+ declare function ResultState({ tone, icon, title, description, action, className, style, ...rest }: ResultStateProps): react_jsx_runtime.JSX.Element;
54
+
55
+ export { Alert, type AlertProps, type AlertTone, ButtonProps, ControlSize, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, Loading, type LoadingProps, type LoadingSize, ResultState, type ResultStateProps, type ResultStateTone };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,32 @@
1
- import { C as ControlSize } from './types-ENHTzCG6.js';
2
- export { B as Button, a as ButtonProps, b as Card, c as CardProps, d as CardSmall, e as CardSmallProps, f as Checkbox, g as CheckboxProps, h as ComposableModal, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, D as DatePicker, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, I as Input, q as InputProps, M as Modal, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, S as Select, x as SelectAsync, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, H as Separator, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, T as Table, O as TableAction, P as TableActionSource, Q as TableActionTone, R as TableAsync, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a0 as Textarea, a1 as TextareaProps, a2 as UiKitTheme, a3 as createModalSlotIds, a4 as useUiKitTheme } from './types-ENHTzCG6.js';
1
+ import { B as ButtonProps, C as ControlSize } from './types-CSdgG6bT.js';
2
+ export { a as Button, b as Card, c as CardProps, d as CardSmall, e as CardSmallProps, f as Checkbox, g as CheckboxProps, h as ComposableModal, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, D as DatePicker, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, I as Input, q as InputProps, M as Modal, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, S as Select, x as SelectAsync, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, H as Separator, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, T as Table, O as TableAction, P as TableActionSource, Q as TableActionTone, R as TableAsync, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a0 as TableRowClickHandler, a1 as Textarea, a2 as TextareaProps, a3 as UiKitTheme, a4 as createModalSlotIds, a5 as useUiKitTheme } from './types-CSdgG6bT.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { HTMLAttributes, CSSProperties } from 'react';
4
+ import { HTMLAttributes, ReactNode, AriaRole, CSSProperties } from 'react';
5
5
  import 'smartsell-theme';
6
6
 
7
+ type FeedbackTone = 'info' | 'positive' | 'warning' | 'negative';
8
+
9
+ type AlertTone = FeedbackTone;
10
+ interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
11
+ tone?: AlertTone;
12
+ children: ReactNode;
13
+ title?: ReactNode;
14
+ icon?: ReactNode;
15
+ action?: ReactNode;
16
+ role?: AriaRole;
17
+ }
18
+ declare function Alert({ tone, children, title, icon, action, role, className, style, ...rest }: AlertProps): react_jsx_runtime.JSX.Element;
19
+
20
+ type IconButtonSize = NonNullable<ButtonProps['size']>;
21
+ type IconButtonVariant = Exclude<NonNullable<ButtonProps['variant']>, 'primary'>;
22
+ interface IconButtonProps extends Omit<ButtonProps, 'aria-label' | 'children' | 'leadingIcon' | 'trailingIcon' | 'variant'> {
23
+ icon: ReactNode;
24
+ ariaLabel: string;
25
+ size?: IconButtonSize;
26
+ variant?: IconButtonVariant;
27
+ }
28
+ declare function IconButton({ icon, ariaLabel, size, variant, className, style, ...rest }: IconButtonProps): react_jsx_runtime.JSX.Element;
29
+
7
30
  type LoadingSize = ControlSize | number;
8
31
  interface LoadingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'color'> {
9
32
  /** Rendered size of the animation. Named sizes map to 28 / 40 / 56 px. */
@@ -19,4 +42,14 @@ interface LoadingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' |
19
42
  }
20
43
  declare function Loading({ size, color, label, accessibleLabel, speed, className, style, ...rest }: LoadingProps): react_jsx_runtime.JSX.Element;
21
44
 
22
- export { ControlSize, Loading, type LoadingProps, type LoadingSize };
45
+ type ResultStateTone = FeedbackTone;
46
+ interface ResultStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML' | 'title'> {
47
+ tone?: ResultStateTone;
48
+ icon?: ReactNode;
49
+ title: ReactNode;
50
+ description?: ReactNode;
51
+ action?: ReactNode;
52
+ }
53
+ declare function ResultState({ tone, icon, title, description, action, className, style, ...rest }: ResultStateProps): react_jsx_runtime.JSX.Element;
54
+
55
+ export { Alert, type AlertProps, type AlertTone, ButtonProps, ControlSize, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, Loading, type LoadingProps, type LoadingSize, ResultState, type ResultStateProps, type ResultStateTone };