@iris-ui-kit/react 0.2.0 → 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.
Files changed (39) hide show
  1. package/dist/admin.cjs +25 -25
  2. package/dist/admin.cjs.map +1 -1
  3. package/dist/admin.js +2 -2
  4. package/dist/behaviors.cjs.map +1 -1
  5. package/dist/behaviors.js +1 -1
  6. package/dist/{chunk-SJO74IB3.js → chunk-7ILMMLK6.js} +2 -2
  7. package/dist/chunk-7ILMMLK6.js.map +1 -0
  8. package/dist/{chunk-6BMFMCMQ.js → chunk-AE2TTLTK.js} +2 -2
  9. package/dist/{chunk-6BMFMCMQ.js.map → chunk-AE2TTLTK.js.map} +1 -1
  10. package/dist/{chunk-BCL32KSE.js → chunk-APA5KNCK.js} +2 -2
  11. package/dist/chunk-APA5KNCK.js.map +1 -0
  12. package/dist/{chunk-YAHXR2CJ.js → chunk-CYQO33XH.js} +29 -5
  13. package/dist/chunk-CYQO33XH.js.map +1 -0
  14. package/dist/{chunk-XVXURJZQ.js → chunk-OD2O3BPM.js} +28 -28
  15. package/dist/chunk-OD2O3BPM.js.map +1 -0
  16. package/dist/{chunk-B4RS5WKC.js → chunk-V3KHE2WB.js} +137 -75
  17. package/dist/chunk-V3KHE2WB.js.map +1 -0
  18. package/dist/floating.cjs.map +1 -1
  19. package/dist/floating.js +1 -1
  20. package/dist/index.cjs +1605 -1104
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +15 -2
  23. package/dist/index.d.ts +15 -2
  24. package/dist/index.js +1221 -806
  25. package/dist/index.js.map +1 -1
  26. package/dist/layouts.cjs.map +1 -1
  27. package/dist/layouts.js +1 -1
  28. package/dist/skeletons.cjs +135 -73
  29. package/dist/skeletons.cjs.map +1 -1
  30. package/dist/skeletons.js +1 -1
  31. package/dist/undo.cjs +27 -3
  32. package/dist/undo.cjs.map +1 -1
  33. package/dist/undo.js +1 -1
  34. package/package.json +4 -4
  35. package/dist/chunk-B4RS5WKC.js.map +0 -1
  36. package/dist/chunk-BCL32KSE.js.map +0 -1
  37. package/dist/chunk-SJO74IB3.js.map +0 -1
  38. package/dist/chunk-XVXURJZQ.js.map +0 -1
  39. package/dist/chunk-YAHXR2CJ.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