smartsell-ui-kit 0.1.16 → 0.1.17

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.
@@ -292,6 +292,7 @@ interface TableAction<TItem> {
292
292
  tone?: TableActionTone;
293
293
  }
294
294
  type TableActionSource<TItem> = Array<TableAction<TItem>> | ((item: TItem, index: number) => Array<TableAction<TItem>>);
295
+ type TableRowClickHandler<TItem> = (item: TItem, index: number) => void;
295
296
  interface TableLabels {
296
297
  searchPlaceholder?: string;
297
298
  emptyMessage?: ReactNode;
@@ -324,6 +325,7 @@ interface SharedTableProps<TItem> {
324
325
  desktopColumns: Array<TableColumn<TItem>>;
325
326
  mobileColumns: Array<TableColumn<TItem>>;
326
327
  getRowId?: (item: TItem, index: number) => string;
328
+ onRowClick?: TableRowClickHandler<TItem>;
327
329
  actions?: TableActionSource<TItem>;
328
330
  stickyActionsColumn?: boolean;
329
331
  maxInlineActions?: number;
@@ -389,4 +391,4 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
389
391
  }
390
392
  declare function Textarea({ label, hint, error, size, id, disabled, style, rows, placeholder, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
391
393
 
392
- export { type TableProps as $, type SelectAsyncOption as A, Button as B, type ControlSize as C, DatePicker as D, type SelectAsyncOptionValue as E, type SelectAsyncProps as F, type SelectProps as G, Separator as H, Input as I, type SeparatorOrientation as J, type SeparatorProps as K, type SharedTableProps as L, Modal as M, type StandardModalProps as N, type TableAction as O, type TableActionSource as P, type TableActionTone as Q, TableAsync as R, Select as S, Table as T, type TableAsyncLoadContext as U, type TableAsyncLoadResult as V, type TableAsyncProps as W, type TableColumn as X, type TableColumnAlign as Y, type TableColumnType as Z, type TableLabels as _, type ButtonProps as a, Textarea as a0, type TextareaProps as a1, type UiKitTheme as a2, createModalSlotIds as a3, useUiKitTheme as a4, Card as b, type CardProps as c, CardSmall as d, type CardSmallProps as e, Checkbox as f, type CheckboxProps as g, ComposableModal as h, type ComposableModalProps as i, type ComposableModalSlotRenderProps as j, type ComposableModalSlotRenderer as k, type DatePickerChangeContext as l, type DatePickerChangeReason as m, type DatePickerMode as n, type DatePickerProps as o, type DatePickerValue as p, type InputProps as q, type ModalAction as r, type ModalProps as s, type ModalSlotContext as t, type ModalSlotIds as u, type ModalTheme as v, type ModalThemeSource as w, SelectAsync as x, type SelectAsyncLoadContext as y, type SelectAsyncLoadResult as z };
394
+ export { type TableProps as $, type SelectAsyncOption as A, Button as B, type ControlSize as C, DatePicker as D, type SelectAsyncOptionValue as E, type SelectAsyncProps as F, type SelectProps as G, Separator as H, Input as I, type SeparatorOrientation as J, type SeparatorProps as K, type SharedTableProps as L, Modal as M, type StandardModalProps as N, type TableAction as O, type TableActionSource as P, type TableActionTone as Q, TableAsync as R, Select as S, Table as T, type TableAsyncLoadContext as U, type TableAsyncLoadResult as V, type TableAsyncProps as W, type TableColumn as X, type TableColumnAlign as Y, type TableColumnType as Z, type TableLabels as _, type ButtonProps as a, type TableRowClickHandler as a0, Textarea as a1, type TextareaProps as a2, type UiKitTheme as a3, createModalSlotIds as a4, useUiKitTheme as a5, Card as b, type CardProps as c, CardSmall as d, type CardSmallProps as e, Checkbox as f, type CheckboxProps as g, ComposableModal as h, type ComposableModalProps as i, type ComposableModalSlotRenderProps as j, type ComposableModalSlotRenderer as k, type DatePickerChangeContext as l, type DatePickerChangeReason as m, type DatePickerMode as n, type DatePickerProps as o, type DatePickerValue as p, type InputProps as q, type ModalAction as r, type ModalProps as s, type ModalSlotContext as t, type ModalSlotIds as u, type ModalTheme as v, type ModalThemeSource as w, SelectAsync as x, type SelectAsyncLoadContext as y, type SelectAsyncLoadResult as z };
@@ -292,6 +292,7 @@ interface TableAction<TItem> {
292
292
  tone?: TableActionTone;
293
293
  }
294
294
  type TableActionSource<TItem> = Array<TableAction<TItem>> | ((item: TItem, index: number) => Array<TableAction<TItem>>);
295
+ type TableRowClickHandler<TItem> = (item: TItem, index: number) => void;
295
296
  interface TableLabels {
296
297
  searchPlaceholder?: string;
297
298
  emptyMessage?: ReactNode;
@@ -324,6 +325,7 @@ interface SharedTableProps<TItem> {
324
325
  desktopColumns: Array<TableColumn<TItem>>;
325
326
  mobileColumns: Array<TableColumn<TItem>>;
326
327
  getRowId?: (item: TItem, index: number) => string;
328
+ onRowClick?: TableRowClickHandler<TItem>;
327
329
  actions?: TableActionSource<TItem>;
328
330
  stickyActionsColumn?: boolean;
329
331
  maxInlineActions?: number;
@@ -389,4 +391,4 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
389
391
  }
390
392
  declare function Textarea({ label, hint, error, size, id, disabled, style, rows, placeholder, ...rest }: TextareaProps): react_jsx_runtime.JSX.Element;
391
393
 
392
- export { type TableProps as $, type SelectAsyncOption as A, Button as B, type ControlSize as C, DatePicker as D, type SelectAsyncOptionValue as E, type SelectAsyncProps as F, type SelectProps as G, Separator as H, Input as I, type SeparatorOrientation as J, type SeparatorProps as K, type SharedTableProps as L, Modal as M, type StandardModalProps as N, type TableAction as O, type TableActionSource as P, type TableActionTone as Q, TableAsync as R, Select as S, Table as T, type TableAsyncLoadContext as U, type TableAsyncLoadResult as V, type TableAsyncProps as W, type TableColumn as X, type TableColumnAlign as Y, type TableColumnType as Z, type TableLabels as _, type ButtonProps as a, Textarea as a0, type TextareaProps as a1, type UiKitTheme as a2, createModalSlotIds as a3, useUiKitTheme as a4, Card as b, type CardProps as c, CardSmall as d, type CardSmallProps as e, Checkbox as f, type CheckboxProps as g, ComposableModal as h, type ComposableModalProps as i, type ComposableModalSlotRenderProps as j, type ComposableModalSlotRenderer as k, type DatePickerChangeContext as l, type DatePickerChangeReason as m, type DatePickerMode as n, type DatePickerProps as o, type DatePickerValue as p, type InputProps as q, type ModalAction as r, type ModalProps as s, type ModalSlotContext as t, type ModalSlotIds as u, type ModalTheme as v, type ModalThemeSource as w, SelectAsync as x, type SelectAsyncLoadContext as y, type SelectAsyncLoadResult as z };
394
+ export { type TableProps as $, type SelectAsyncOption as A, Button as B, type ControlSize as C, DatePicker as D, type SelectAsyncOptionValue as E, type SelectAsyncProps as F, type SelectProps as G, Separator as H, Input as I, type SeparatorOrientation as J, type SeparatorProps as K, type SharedTableProps as L, Modal as M, type StandardModalProps as N, type TableAction as O, type TableActionSource as P, type TableActionTone as Q, TableAsync as R, Select as S, Table as T, type TableAsyncLoadContext as U, type TableAsyncLoadResult as V, type TableAsyncProps as W, type TableColumn as X, type TableColumnAlign as Y, type TableColumnType as Z, type TableLabels as _, type ButtonProps as a, type TableRowClickHandler as a0, Textarea as a1, type TextareaProps as a2, type UiKitTheme as a3, createModalSlotIds as a4, useUiKitTheme as a5, Card as b, type CardProps as c, CardSmall as d, type CardSmallProps as e, Checkbox as f, type CheckboxProps as g, ComposableModal as h, type ComposableModalProps as i, type ComposableModalSlotRenderProps as j, type ComposableModalSlotRenderer as k, type DatePickerChangeContext as l, type DatePickerChangeReason as m, type DatePickerMode as n, type DatePickerProps as o, type DatePickerValue as p, type InputProps as q, type ModalAction as r, type ModalProps as s, type ModalSlotContext as t, type ModalSlotIds as u, type ModalTheme as v, type ModalThemeSource as w, SelectAsync as x, type SelectAsyncLoadContext as y, type SelectAsyncLoadResult as z };
package/dist/types.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { a as ButtonProps, c as CardProps, e as CardSmallProps, g as CheckboxProps, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, C as ControlSize, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, q as InputProps, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, O as TableAction, P as TableActionSource, Q as TableActionTone, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a1 as TextareaProps, a2 as UiKitTheme } from './types-ENHTzCG6.cjs';
1
+ export { a as ButtonProps, c as CardProps, e as CardSmallProps, g as CheckboxProps, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, C as ControlSize, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, q as InputProps, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, O as TableAction, P as TableActionSource, Q as TableActionTone, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a2 as TextareaProps, a3 as UiKitTheme } from './types-goI3n5Qz.cjs';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'smartsell-theme';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { a as ButtonProps, c as CardProps, e as CardSmallProps, g as CheckboxProps, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, C as ControlSize, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, q as InputProps, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, O as TableAction, P as TableActionSource, Q as TableActionTone, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a1 as TextareaProps, a2 as UiKitTheme } from './types-ENHTzCG6.js';
1
+ export { a as ButtonProps, c as CardProps, e as CardSmallProps, g as CheckboxProps, i as ComposableModalProps, j as ComposableModalSlotRenderProps, k as ComposableModalSlotRenderer, C as ControlSize, l as DatePickerChangeContext, m as DatePickerChangeReason, n as DatePickerMode, o as DatePickerProps, p as DatePickerValue, q as InputProps, r as ModalAction, s as ModalProps, t as ModalSlotContext, u as ModalSlotIds, v as ModalTheme, w as ModalThemeSource, y as SelectAsyncLoadContext, z as SelectAsyncLoadResult, A as SelectAsyncOption, E as SelectAsyncOptionValue, F as SelectAsyncProps, G as SelectProps, J as SeparatorOrientation, K as SeparatorProps, L as SharedTableProps, N as StandardModalProps, O as TableAction, P as TableActionSource, Q as TableActionTone, U as TableAsyncLoadContext, V as TableAsyncLoadResult, W as TableAsyncProps, X as TableColumn, Y as TableColumnAlign, Z as TableColumnType, _ as TableLabels, $ as TableProps, a2 as TextareaProps, a3 as UiKitTheme } from './types-goI3n5Qz.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'smartsell-theme';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smartsell-ui-kit",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Public UI primitives and modal helpers for SmartSell applications.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",