twico-ui 1.33.0 → 1.34.0

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
@@ -2043,6 +2043,15 @@ interface DatatableProps<T = any> extends Omit<React.HTMLAttributes<HTMLDivEleme
2043
2043
  overscan?: number;
2044
2044
  /** Estimated row height in px, used only for rows not yet measured (they refine to their real height once scrolled into view). Defaults to the density preset (compact 36 / standard 44 / comfortable 56). Set this to your typical row height for the best first-paint estimate. */
2045
2045
  rowHeight?: number;
2046
+ /** #350 (first pass): expandable/collapsible rows. Return the detail panel to render below `row` when it is
2047
+ * expanded, or `null`/`undefined` to make that row non-expandable (no chevron). Supplying this function
2048
+ * enables a leading chevron column and a full-width detail `<tr>` under each expanded row. Not yet
2049
+ * supported with `virtualized` (the detail row's height isn't measured by the windowing math). */
2050
+ renderRowDetail?: (row: T) => React.ReactNode;
2051
+ /** Controlled set of expanded row keys (values from `rowKey`). Omit for uncontrolled (internal) expansion. */
2052
+ expandedRowIds?: Array<string | number>;
2053
+ /** Fires with the next full array of expanded row keys whenever a row is expanded or collapsed. */
2054
+ onExpandedRowsChange?: (ids: Array<string | number>) => void;
2046
2055
  }
2047
2056
 
2048
2057
  /** String-column filter operators (Datatable server mode). */
@@ -3585,6 +3594,10 @@ interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChan
3585
3594
  showValue?: boolean;
3586
3595
  /** Render step ticks along the rail. @default false */
3587
3596
  showTicks?: boolean;
3597
+ /** Show editable numeric input(s) in the header so users can type an exact value (two inputs in range mode),
3598
+ * kept in sync with the thumbs. Typed entry commits on blur/Enter (ArrowUp/Down step); it's clamped, snapped
3599
+ * to `step`, and cross-clamped (start ≤ end). Replaces the read-only value display. @default false */
3600
+ editable?: boolean;
3588
3601
  /** Color intent. @default "primary" */
3589
3602
  tone?: Tone;
3590
3603
  /** Format the displayed value (label + bubble). If it returns a node, pair it with `getAriaValueText`. */
package/dist/index.d.ts CHANGED
@@ -2043,6 +2043,15 @@ interface DatatableProps<T = any> extends Omit<React.HTMLAttributes<HTMLDivEleme
2043
2043
  overscan?: number;
2044
2044
  /** Estimated row height in px, used only for rows not yet measured (they refine to their real height once scrolled into view). Defaults to the density preset (compact 36 / standard 44 / comfortable 56). Set this to your typical row height for the best first-paint estimate. */
2045
2045
  rowHeight?: number;
2046
+ /** #350 (first pass): expandable/collapsible rows. Return the detail panel to render below `row` when it is
2047
+ * expanded, or `null`/`undefined` to make that row non-expandable (no chevron). Supplying this function
2048
+ * enables a leading chevron column and a full-width detail `<tr>` under each expanded row. Not yet
2049
+ * supported with `virtualized` (the detail row's height isn't measured by the windowing math). */
2050
+ renderRowDetail?: (row: T) => React.ReactNode;
2051
+ /** Controlled set of expanded row keys (values from `rowKey`). Omit for uncontrolled (internal) expansion. */
2052
+ expandedRowIds?: Array<string | number>;
2053
+ /** Fires with the next full array of expanded row keys whenever a row is expanded or collapsed. */
2054
+ onExpandedRowsChange?: (ids: Array<string | number>) => void;
2046
2055
  }
2047
2056
 
2048
2057
  /** String-column filter operators (Datatable server mode). */
@@ -3585,6 +3594,10 @@ interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChan
3585
3594
  showValue?: boolean;
3586
3595
  /** Render step ticks along the rail. @default false */
3587
3596
  showTicks?: boolean;
3597
+ /** Show editable numeric input(s) in the header so users can type an exact value (two inputs in range mode),
3598
+ * kept in sync with the thumbs. Typed entry commits on blur/Enter (ArrowUp/Down step); it's clamped, snapped
3599
+ * to `step`, and cross-clamped (start ≤ end). Replaces the read-only value display. @default false */
3600
+ editable?: boolean;
3588
3601
  /** Color intent. @default "primary" */
3589
3602
  tone?: Tone;
3590
3603
  /** Format the displayed value (label + bubble). If it returns a node, pair it with `getAriaValueText`. */