@iris-ui-kit/react 0.2.1 → 0.2.2
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/admin.cjs +24 -24
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js +2 -2
- package/dist/behaviors.cjs.map +1 -1
- package/dist/behaviors.js +1 -1
- package/dist/{chunk-SJO74IB3.js → chunk-7ILMMLK6.js} +2 -2
- package/dist/chunk-7ILMMLK6.js.map +1 -0
- package/dist/{chunk-6BMFMCMQ.js → chunk-AE2TTLTK.js} +2 -2
- package/dist/{chunk-6BMFMCMQ.js.map → chunk-AE2TTLTK.js.map} +1 -1
- package/dist/{chunk-BCL32KSE.js → chunk-APA5KNCK.js} +2 -2
- package/dist/chunk-APA5KNCK.js.map +1 -0
- package/dist/{chunk-INEPOSCN.js → chunk-CYQO33XH.js} +3 -6
- package/dist/chunk-CYQO33XH.js.map +1 -0
- package/dist/{chunk-LXMTXHAS.js → chunk-OD2O3BPM.js} +27 -27
- package/dist/chunk-OD2O3BPM.js.map +1 -0
- package/dist/{chunk-B4RS5WKC.js → chunk-V3KHE2WB.js} +137 -75
- package/dist/chunk-V3KHE2WB.js.map +1 -0
- package/dist/floating.cjs.map +1 -1
- package/dist/floating.js +1 -1
- package/dist/index.cjs +1578 -1104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1221 -806
- package/dist/index.js.map +1 -1
- package/dist/layouts.cjs.map +1 -1
- package/dist/layouts.js +1 -1
- package/dist/skeletons.cjs +135 -73
- package/dist/skeletons.cjs.map +1 -1
- package/dist/skeletons.js +1 -1
- package/dist/undo.cjs +1 -4
- package/dist/undo.cjs.map +1 -1
- package/dist/undo.js +1 -1
- package/package.json +15 -15
- package/dist/chunk-B4RS5WKC.js.map +0 -1
- package/dist/chunk-BCL32KSE.js.map +0 -1
- package/dist/chunk-INEPOSCN.js.map +0 -1
- package/dist/chunk-LXMTXHAS.js.map +0 -1
- package/dist/chunk-SJO74IB3.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -661,6 +661,7 @@ declare function IrisCarousel({ children, index: indexProp, defaultIndex, onInde
|
|
|
661
661
|
|
|
662
662
|
type IrisStatisticSize = 'sm' | 'md' | 'lg';
|
|
663
663
|
type IrisStatisticTrend = 'up' | 'down' | 'neutral';
|
|
664
|
+
type IrisStatisticTone = 'success' | 'danger' | 'neutral';
|
|
664
665
|
interface IrisStatisticProps {
|
|
665
666
|
label?: React.ReactNode;
|
|
666
667
|
value: React.ReactNode;
|
|
@@ -673,6 +674,11 @@ interface IrisStatisticProps {
|
|
|
673
674
|
trend?: IrisStatisticTrend;
|
|
674
675
|
/** Trend magnitude text (e.g. "12%"). */
|
|
675
676
|
trendValue?: React.ReactNode;
|
|
677
|
+
/**
|
|
678
|
+
* Override the trend arrow color (defaults to direction semantics:
|
|
679
|
+
* up=success, down=danger). Use for cost/risk KPIs where "up" is bad.
|
|
680
|
+
*/
|
|
681
|
+
trendTone?: IrisStatisticTone;
|
|
676
682
|
size?: IrisStatisticSize;
|
|
677
683
|
style?: React.CSSProperties;
|
|
678
684
|
className?: string;
|
|
@@ -685,7 +691,7 @@ interface IrisStatisticProps {
|
|
|
685
691
|
*
|
|
686
692
|
* React port of {@link import('@iris-ui-kit/vue').IrisStatistic}.
|
|
687
693
|
*/
|
|
688
|
-
declare function IrisStatistic({ label, value, prefix, suffix, description, trend, trendValue, size, style, className, ...rest }: IrisStatisticProps): React.ReactElement;
|
|
694
|
+
declare function IrisStatistic({ label, value, prefix, suffix, description, trend, trendTone, trendValue, size, style, className, ...rest }: IrisStatisticProps): React.ReactElement;
|
|
689
695
|
|
|
690
696
|
type IrisDescriptionsLayout = 'horizontal' | 'vertical';
|
|
691
697
|
interface IrisDescriptionsItem {
|
|
@@ -1264,6 +1270,11 @@ interface IrisGaugeProps {
|
|
|
1264
1270
|
/** Diameter in px. */
|
|
1265
1271
|
size?: number;
|
|
1266
1272
|
strokeWidth?: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* Semantic status — drives the stroke color. Explicit by design (honesty
|
|
1275
|
+
* preserved): for threshold-based decision support, derive it yourself,
|
|
1276
|
+
* e.g. `status={value > 80 ? 'danger' : value > 60 ? 'warning' : 'success'}`.
|
|
1277
|
+
*/
|
|
1267
1278
|
status?: IrisGaugeStatus;
|
|
1268
1279
|
showValue?: boolean;
|
|
1269
1280
|
/** Custom center label given the value and rounded percent. */
|
|
@@ -2450,6 +2461,8 @@ interface IrisTableProps<Row extends Record<string, unknown> = Record<string, un
|
|
|
2450
2461
|
loadingState?: ReactNode;
|
|
2451
2462
|
/** Custom error-state node. */
|
|
2452
2463
|
errorState?: ReactNode;
|
|
2464
|
+
/** Fired by the built-in Retry button in the error state row. */
|
|
2465
|
+
onRetry?: () => void;
|
|
2453
2466
|
style?: CSSProperties;
|
|
2454
2467
|
className?: string;
|
|
2455
2468
|
}
|
|
@@ -2461,7 +2474,7 @@ interface IrisTableProps<Row extends Record<string, unknown> = Record<string, un
|
|
|
2461
2474
|
*
|
|
2462
2475
|
* Sortable columns cycle `none → asc → desc → none` on click.
|
|
2463
2476
|
*/
|
|
2464
|
-
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, striped, bordered, resizableColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, onRowClick, onCellEdit, renderDetail, rowExpandable, defaultExpandedRowKeys, onExpandedRowsChange, getSubRows, keyboardNavigation, cellRange, virtualScroll, columnVirtualization, emptyState, loading, error, loadingState, errorState, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
2477
|
+
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, striped, bordered, resizableColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, onRowClick, onCellEdit, renderDetail, rowExpandable, defaultExpandedRowKeys, onExpandedRowsChange, getSubRows, keyboardNavigation, cellRange, virtualScroll, columnVirtualization, emptyState, loading, error, loadingState, errorState, onRetry, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
2465
2478
|
|
|
2466
2479
|
/**
|
|
2467
2480
|
* Serialize rows as a CSV string per RFC 4180. Column order determines field
|
package/dist/index.d.ts
CHANGED
|
@@ -661,6 +661,7 @@ declare function IrisCarousel({ children, index: indexProp, defaultIndex, onInde
|
|
|
661
661
|
|
|
662
662
|
type IrisStatisticSize = 'sm' | 'md' | 'lg';
|
|
663
663
|
type IrisStatisticTrend = 'up' | 'down' | 'neutral';
|
|
664
|
+
type IrisStatisticTone = 'success' | 'danger' | 'neutral';
|
|
664
665
|
interface IrisStatisticProps {
|
|
665
666
|
label?: React.ReactNode;
|
|
666
667
|
value: React.ReactNode;
|
|
@@ -673,6 +674,11 @@ interface IrisStatisticProps {
|
|
|
673
674
|
trend?: IrisStatisticTrend;
|
|
674
675
|
/** Trend magnitude text (e.g. "12%"). */
|
|
675
676
|
trendValue?: React.ReactNode;
|
|
677
|
+
/**
|
|
678
|
+
* Override the trend arrow color (defaults to direction semantics:
|
|
679
|
+
* up=success, down=danger). Use for cost/risk KPIs where "up" is bad.
|
|
680
|
+
*/
|
|
681
|
+
trendTone?: IrisStatisticTone;
|
|
676
682
|
size?: IrisStatisticSize;
|
|
677
683
|
style?: React.CSSProperties;
|
|
678
684
|
className?: string;
|
|
@@ -685,7 +691,7 @@ interface IrisStatisticProps {
|
|
|
685
691
|
*
|
|
686
692
|
* React port of {@link import('@iris-ui-kit/vue').IrisStatistic}.
|
|
687
693
|
*/
|
|
688
|
-
declare function IrisStatistic({ label, value, prefix, suffix, description, trend, trendValue, size, style, className, ...rest }: IrisStatisticProps): React.ReactElement;
|
|
694
|
+
declare function IrisStatistic({ label, value, prefix, suffix, description, trend, trendTone, trendValue, size, style, className, ...rest }: IrisStatisticProps): React.ReactElement;
|
|
689
695
|
|
|
690
696
|
type IrisDescriptionsLayout = 'horizontal' | 'vertical';
|
|
691
697
|
interface IrisDescriptionsItem {
|
|
@@ -1264,6 +1270,11 @@ interface IrisGaugeProps {
|
|
|
1264
1270
|
/** Diameter in px. */
|
|
1265
1271
|
size?: number;
|
|
1266
1272
|
strokeWidth?: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* Semantic status — drives the stroke color. Explicit by design (honesty
|
|
1275
|
+
* preserved): for threshold-based decision support, derive it yourself,
|
|
1276
|
+
* e.g. `status={value > 80 ? 'danger' : value > 60 ? 'warning' : 'success'}`.
|
|
1277
|
+
*/
|
|
1267
1278
|
status?: IrisGaugeStatus;
|
|
1268
1279
|
showValue?: boolean;
|
|
1269
1280
|
/** Custom center label given the value and rounded percent. */
|
|
@@ -2450,6 +2461,8 @@ interface IrisTableProps<Row extends Record<string, unknown> = Record<string, un
|
|
|
2450
2461
|
loadingState?: ReactNode;
|
|
2451
2462
|
/** Custom error-state node. */
|
|
2452
2463
|
errorState?: ReactNode;
|
|
2464
|
+
/** Fired by the built-in Retry button in the error state row. */
|
|
2465
|
+
onRetry?: () => void;
|
|
2453
2466
|
style?: CSSProperties;
|
|
2454
2467
|
className?: string;
|
|
2455
2468
|
}
|
|
@@ -2461,7 +2474,7 @@ interface IrisTableProps<Row extends Record<string, unknown> = Record<string, un
|
|
|
2461
2474
|
*
|
|
2462
2475
|
* Sortable columns cycle `none → asc → desc → none` on click.
|
|
2463
2476
|
*/
|
|
2464
|
-
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, striped, bordered, resizableColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, onRowClick, onCellEdit, renderDetail, rowExpandable, defaultExpandedRowKeys, onExpandedRowsChange, getSubRows, keyboardNavigation, cellRange, virtualScroll, columnVirtualization, emptyState, loading, error, loadingState, errorState, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
2477
|
+
declare function IrisTable<Row extends Record<string, unknown>>({ columns, data, rowKey, selectable, selection: selectionProp, defaultSelection, onSelectionChange, sort: sortProp, defaultSort, onSortChange, striped, bordered, resizableColumns, columnWidths: columnWidthsProp, defaultColumnWidths, onColumnWidthsChange, onRowClick, onCellEdit, renderDetail, rowExpandable, defaultExpandedRowKeys, onExpandedRowsChange, getSubRows, keyboardNavigation, cellRange, virtualScroll, columnVirtualization, emptyState, loading, error, loadingState, errorState, onRetry, style, className, ...rest }: IrisTableProps<Row>): React.ReactElement;
|
|
2465
2478
|
|
|
2466
2479
|
/**
|
|
2467
2480
|
* Serialize rows as a CSV string per RFC 4180. Column order determines field
|