import React from 'react'; import { ExtractProps } from '@workday/canvas-kit-react/common'; import { Flex } from '@workday/canvas-kit-react/layout'; import { ExtractStencilProps } from '@workday/canvas-kit-styling'; /** * @deprecated This is being deprecated and will be removed in a future release. Use * `StatusIndicatorProps['variant']` instead. */ export type StatusIndicatorVariant = 'info' | 'neutral' | 'caution' | 'positive' | 'critical' | 'transparent' | 'blue' | 'green' | 'orange' | 'red' | 'gray'; export interface StatusIndicatorProps extends ExtractProps, Omit, 'variant'> { /** * Defines the color of the `StatusIndicator`. * * `info` | `blue` - Uses the info system color and is used for informational status indications * * `positive` | `green` - Uses the positive system color and is used for positive status indications * * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions * * `critical` | `red` - Uses the error system color and is used for critical or negative status indications * * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations * * `illuminate` - Uses the AI system color and is used for AI generated content * * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos * * @default 'neutral' */ variant?: StatusIndicatorVariant; /** * Children of the `StatusIndicator`. Can contain a `StatusIndicator.Label` and optionally a `StatusIndicator.Icon`. */ children: React.ReactNode; } declare const statusIndicatorStencil: import("@workday/canvas-kit-styling").Stencil<{ /** * Defines the color of the `StatusIndicator`. * * `info` | `blue` - Uses the info system color and is used for informational status indications * * `positive` | `green` - Uses the positive system color and is used for positive status indications * * `caution` | `orange` - Uses the caution system color and is used for warnings or required actions * * `critical` | `red` - Uses the error system color and is used for critical or negative status indications * * `neutral` | `gray` - Uses the neutral system color and generally doesn't have positive or negative connotations * * `illuminate` - Uses the AI system color and is used for AI generated content * * `transparent` - Uses the transparent system color and is used for overlays on top of images or videos * * @default 'neutral' */ variant: { info: { color: "var(--cnvs-sys-color-fg-info-strong, var(--cnvs-sys-color-fg-primary-strong, oklch(0.4658 0.1562 255.5 / 1)))"; backgroundColor: "var(--cnvs-sys-color-surface-info-strong, var(--cnvs-sys-color-bg-info-softer, oklch(0.6152 0.2108 256.1 / 0.11)))"; }; positive: { color: "var(--cnvs-sys-color-fg-success-strong, oklch(0.4463 0.1422 144.58 / 1))"; backgroundColor: "var(--cnvs-sys-color-surface-success-strong, oklch(0.8685 0.2814 143.77 / 0.15))"; }; caution: { color: "var(--cnvs-sys-color-fg-warning-strong, oklch(0.4824 0.1353 46.11 / 1))"; backgroundColor: "var(--cnvs-sys-color-surface-warning-strong, var(--cnvs-sys-color-static-amber-stronger, oklch(0.8864 0.1845 100.28 / 0.22)))"; }; critical: { color: "var(--cnvs-sys-color-fg-danger-strong, var(--cnvs-sys-color-fg-critical-strong, oklch(0.4517 0.1847 28.2 / 1)))"; backgroundColor: "var(--cnvs-sys-color-surface-danger-strong, oklch(0.6434 0.2428 30.17 / 0.1))"; }; neutral: { color: "--cnvs-sys-color-fg-muted-strong"; backgroundColor: "var(--cnvs-sys-color-surface-alt-strong, var(--cnvs-sys-color-bg-alt-default, oklch(0.3337 0.0688 250.79 / 0.09)))"; }; transparent: { color: "--cnvs-sys-color-fg-inverse"; backgroundColor: "var(--cnvs-sys-color-surface-contrast-default, var(--cnvs-sys-color-bg-contrast-default, oklch(0.0969 0 0 / 0.84)))"; }; }; /** * Defines the emphasis of the `StatusIndicator`. `low` should be used in almost all cases. * `high` is being deprecated and will be removed in a future release. * * `low` - Normal emphasis and will visually fit in with other components. * * `high` - High emphasis has been used to make the `StatusIndicator` stand out more, but * tends to overpower other components. It will be removed and should not be used. * * @default 'low' * */ emphasis: { low: {}; high: {}; }; }, {}, {}, import("@workday/canvas-kit-styling").Stencil, {}, { shape: string; }, never, never>, never>; /** * `StatusIndicator` is a container component has a default maximum width of `200px`. * * ```tsx * * {Child components} * * ``` */ export declare const StatusIndicator: import("@workday/canvas-kit-react/common").ElementComponent<"div", StatusIndicatorProps> & { /** * `StatusIndicator.Label` will apply an ellipsis if its contents exceed the component's maximum * width. * * ```tsx * {The text to be rendered} * ``` */ Label: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("./StatusIndicatorLabel").StatusIndicatorLabelProps>; /** * `StatusIndicator.Icon` renders {@link SystemIcon} under the hood. It's used as a decorative * element to visually support the {@link StatusIndicatorLabel StatusIndicator.Label} text. * * ```tsx * * ``` */ Icon: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("@workday/canvas-kit-react/icon").SystemIconProps>; }; export {}; //# sourceMappingURL=StatusIndicator.d.ts.map