@nimbus-ds/components 5.15.0-rc.1 → 5.15.0-rc.3
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/CHANGELOG.md +1 -1
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/CHANGELOG.md +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.d.ts +25 -2
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/index.d.ts +25 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ declare const fileUploader: {
|
|
|
829
829
|
};
|
|
830
830
|
declare const icon: {
|
|
831
831
|
sprinkle: ((props: {
|
|
832
|
-
color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | undefined;
|
|
832
|
+
color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | "ai-interactive" | undefined;
|
|
833
833
|
cursor?: Cursor | undefined;
|
|
834
834
|
}) => string) & {
|
|
835
835
|
properties: Set<"color" | "cursor">;
|
|
@@ -859,6 +859,7 @@ declare const icon: {
|
|
|
859
859
|
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
860
860
|
"neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
861
861
|
"neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
862
|
+
"ai-interactive": string;
|
|
862
863
|
};
|
|
863
864
|
cursor: Cursor[];
|
|
864
865
|
};
|
|
@@ -2352,7 +2353,7 @@ export interface IconProperties {
|
|
|
2352
2353
|
source: ReactNode;
|
|
2353
2354
|
/**
|
|
2354
2355
|
* Set the color for the SVG fill.
|
|
2355
|
-
* Use "ai-
|
|
2356
|
+
* Use "ai-interactive" to apply the Nimbus AI interactive gradient.
|
|
2356
2357
|
* @default neutral-textLow
|
|
2357
2358
|
*/
|
|
2358
2359
|
color?: keyof typeof icon.properties.color | "ai-interactive";
|
|
@@ -2364,6 +2365,28 @@ export interface IconProperties {
|
|
|
2364
2365
|
}
|
|
2365
2366
|
export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
|
|
2366
2367
|
export declare const Icon: React.FC<IconProps> & IconComponents;
|
|
2368
|
+
/**
|
|
2369
|
+
* Checks if a color value is valid (exists and is not "none" or "transparent")
|
|
2370
|
+
* @param color - The color value to check
|
|
2371
|
+
* @returns True if color is valid, false otherwise
|
|
2372
|
+
*/
|
|
2373
|
+
export declare const isValidColorValue: (color: string | undefined) => boolean;
|
|
2374
|
+
/**
|
|
2375
|
+
* Checks if a color value can use gradient (valid and not already a URL reference)
|
|
2376
|
+
* @param color - The color value to check
|
|
2377
|
+
* @returns True if color can use gradient, false otherwise
|
|
2378
|
+
*/
|
|
2379
|
+
export declare const canUseGradient: (color: string) => boolean;
|
|
2380
|
+
/**
|
|
2381
|
+
* Checks if a color value is a gradient
|
|
2382
|
+
* @param color - The color value to check
|
|
2383
|
+
* @returns True if color is a known gradient value, false otherwise
|
|
2384
|
+
*/
|
|
2385
|
+
export declare const isGradient: (color: string) => boolean;
|
|
2386
|
+
/**
|
|
2387
|
+
* Collection of known gradient color values
|
|
2388
|
+
*/
|
|
2389
|
+
export declare const GRADIENT_COLORS: Set<string>;
|
|
2367
2390
|
export type IconButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height">> & {
|
|
2368
2391
|
/**
|
|
2369
2392
|
* This is an attribute used to identify a DOM node for testing purposes.
|