@dloizides/ui-feedback 1.31.0 → 1.32.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.mts CHANGED
@@ -875,12 +875,13 @@ declare function scorePercentOf(value: number): `${number}%`;
875
875
  declare const ScoreBar: ({ value, threshold, colors, label, hint, testID }: ScoreBarProps) => React.ReactElement;
876
876
 
877
877
  interface StatusCircleProps {
878
- glyph: string;
878
+ glyph?: string;
879
+ icon?: React.ReactNode;
879
880
  color: string;
880
881
  size?: number;
881
882
  testID?: string;
882
883
  }
883
- /** A decorative round status mark: a glyph inside a ring of one colour; the row beside it carries the accessible text. */
884
- declare const StatusCircle: ({ glyph, color, size, testID }: StatusCircleProps) => React.ReactElement;
884
+ /** A decorative round status mark: an icon node or glyph inside a ring of one colour; the row beside it carries the accessible text. */
885
+ declare const StatusCircle: ({ glyph, icon, color, size, testID }: StatusCircleProps) => React.ReactElement;
885
886
 
886
887
  export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, STATUS_TILE_TEST_ID, ScoreBar, type ScoreBarColors, type ScoreBarProps, type SkeletonLine, SkeletonLines, type SkeletonLinesProps, StatusCircle, type StatusCircleProps, StatusTile, type StatusTileProps, type StepSplit, TILE_MOTION_MS, ThresholdMeter, type ThresholdMeterProps, type TileInteraction, type TileMotionInput, type TileMotionStyle, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineItemVariant, pipelineVariant, progressPercent, readTraceId, runToneColor, scorePercentOf, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, tileMotionStyle, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
package/dist/index.d.ts CHANGED
@@ -875,12 +875,13 @@ declare function scorePercentOf(value: number): `${number}%`;
875
875
  declare const ScoreBar: ({ value, threshold, colors, label, hint, testID }: ScoreBarProps) => React.ReactElement;
876
876
 
877
877
  interface StatusCircleProps {
878
- glyph: string;
878
+ glyph?: string;
879
+ icon?: React.ReactNode;
879
880
  color: string;
880
881
  size?: number;
881
882
  testID?: string;
882
883
  }
883
- /** A decorative round status mark: a glyph inside a ring of one colour; the row beside it carries the accessible text. */
884
- declare const StatusCircle: ({ glyph, color, size, testID }: StatusCircleProps) => React.ReactElement;
884
+ /** A decorative round status mark: an icon node or glyph inside a ring of one colour; the row beside it carries the accessible text. */
885
+ declare const StatusCircle: ({ glyph, icon, color, size, testID }: StatusCircleProps) => React.ReactElement;
885
886
 
886
887
  export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, AttentionCard, type AttentionCardProps, COPY_FEEDBACK_MS, CheckPipeline, type CheckPipelineItem, type CheckPipelineProps, CheckStatus, type CheckStatusProps, type CheckStatusVariant, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorNotice, type ErrorNoticeProps, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, LocalModelGate, type LocalModelGateLabels, type LocalModelGateProps, type LocalModelGateSlots, type LocalModelGateTestIds, MODAL_OVERLAY_COLOR, PIPELINE_COLLAPSE_BREAKPOINT, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, STATUS_TILE_TEST_ID, ScoreBar, type ScoreBarColors, type ScoreBarProps, type SkeletonLine, SkeletonLines, type SkeletonLinesProps, StatusCircle, type StatusCircleProps, StatusTile, type StatusTileProps, type StepSplit, TILE_MOTION_MS, ThresholdMeter, type ThresholdMeterProps, type TileInteraction, type TileMotionInput, type TileMotionStyle, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, UiThemeOverride, type UiThemeOverrideProps, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, meetsThreshold, mergeRunSteps, meterPercent, notifyWarming, pipelineItemVariant, pipelineVariant, progressPercent, readTraceId, runToneColor, scorePercentOf, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, tileMotionStyle, useCopyToClipboard, useFeedbackUi, useLocalModel, useFeedbackUi as useUi };
package/dist/index.js CHANGED
@@ -2099,7 +2099,7 @@ var styles26 = reactNative.StyleSheet.create({
2099
2099
  glyph: { fontSize: 10, fontWeight: "700", lineHeight: 12 },
2100
2100
  ring: { alignItems: "center", borderWidth: RING_WIDTH, justifyContent: "center" }
2101
2101
  });
2102
- var StatusCircle = ({ glyph, color, size = DEFAULT_SIZE, testID }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: [styles26.ring, { borderColor: color, borderRadius: size / 2, height: size, width: size }], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.glyph, { color }], children: glyph }) });
2102
+ var StatusCircle = ({ glyph, icon, color, size = DEFAULT_SIZE, testID }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: [styles26.ring, { borderColor: color, borderRadius: size / 2, height: size, width: size }], testID, children: icon !== void 0 && icon !== null ? icon : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.glyph, { color }], children: glyph ?? "" }) });
2103
2103
 
2104
2104
  exports.AppErrorBoundary = AppErrorBoundary;
2105
2105
  exports.AsyncSurface = AsyncSurface;