@dimaan/ui 0.0.29 → 0.0.31
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.cjs +227 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +227 -220
- package/dist/index.js.map +1 -1
- package/dist/preset.css +23 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -386,8 +386,9 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
386
386
|
variant?: BadgeVariant;
|
|
387
387
|
size?: BadgeSize;
|
|
388
388
|
/**
|
|
389
|
-
* Visual tone. `'
|
|
390
|
-
*
|
|
389
|
+
* Visual tone. `'soft'` (default) is a calmer, modern tinted fill — great for
|
|
390
|
+
* status columns and category labels; `'solid'` is a full-color fill for
|
|
391
|
+
* stronger emphasis.
|
|
391
392
|
*/
|
|
392
393
|
tone?: BadgeTone;
|
|
393
394
|
/** Render a small dot before the label (useful for online/status indicators). */
|
|
@@ -1568,6 +1569,15 @@ interface TableProps<T> {
|
|
|
1568
1569
|
striped?: boolean;
|
|
1569
1570
|
/** Optional row click handler. */
|
|
1570
1571
|
onRowClick?: (row: T, rowIndex: number) => void;
|
|
1572
|
+
/**
|
|
1573
|
+
* Optional per-row accent colour. When it returns a colour string, Table draws a
|
|
1574
|
+
* thin rounded bar at the row's leading (inline-start) edge — e.g. to colour-code
|
|
1575
|
+
* rows by category/department. Return `undefined` for no accent. Off by default,
|
|
1576
|
+
* so existing consumers are unaffected.
|
|
1577
|
+
*
|
|
1578
|
+
* @example getRowAccent={(row) => DEPARTMENT_COLOR[row.department]}
|
|
1579
|
+
*/
|
|
1580
|
+
getRowAccent?: (row: T, index: number) => string | undefined;
|
|
1571
1581
|
/** Optional ref to the underlying <table> element. */
|
|
1572
1582
|
tableRef?: Ref<HTMLTableElement>;
|
|
1573
1583
|
'aria-label'?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -386,8 +386,9 @@ interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
386
386
|
variant?: BadgeVariant;
|
|
387
387
|
size?: BadgeSize;
|
|
388
388
|
/**
|
|
389
|
-
* Visual tone. `'
|
|
390
|
-
*
|
|
389
|
+
* Visual tone. `'soft'` (default) is a calmer, modern tinted fill — great for
|
|
390
|
+
* status columns and category labels; `'solid'` is a full-color fill for
|
|
391
|
+
* stronger emphasis.
|
|
391
392
|
*/
|
|
392
393
|
tone?: BadgeTone;
|
|
393
394
|
/** Render a small dot before the label (useful for online/status indicators). */
|
|
@@ -1568,6 +1569,15 @@ interface TableProps<T> {
|
|
|
1568
1569
|
striped?: boolean;
|
|
1569
1570
|
/** Optional row click handler. */
|
|
1570
1571
|
onRowClick?: (row: T, rowIndex: number) => void;
|
|
1572
|
+
/**
|
|
1573
|
+
* Optional per-row accent colour. When it returns a colour string, Table draws a
|
|
1574
|
+
* thin rounded bar at the row's leading (inline-start) edge — e.g. to colour-code
|
|
1575
|
+
* rows by category/department. Return `undefined` for no accent. Off by default,
|
|
1576
|
+
* so existing consumers are unaffected.
|
|
1577
|
+
*
|
|
1578
|
+
* @example getRowAccent={(row) => DEPARTMENT_COLOR[row.department]}
|
|
1579
|
+
*/
|
|
1580
|
+
getRowAccent?: (row: T, index: number) => string | undefined;
|
|
1571
1581
|
/** Optional ref to the underlying <table> element. */
|
|
1572
1582
|
tableRef?: Ref<HTMLTableElement>;
|
|
1573
1583
|
'aria-label'?: string;
|