@nimbus-ds/components 5.15.0-rc.2 → 5.15.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/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.d.ts +0 -5
- 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/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +25 -7
- 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
|
};
|
|
@@ -2281,11 +2282,6 @@ export interface ChipProperties {
|
|
|
2281
2282
|
* Informs whether the close icon should be displayed.
|
|
2282
2283
|
*/
|
|
2283
2284
|
removable?: boolean;
|
|
2284
|
-
/**
|
|
2285
|
-
* Change the visual style of the chip.
|
|
2286
|
-
* @default neutral
|
|
2287
|
-
*/
|
|
2288
|
-
appearance?: "neutral";
|
|
2289
2285
|
}
|
|
2290
2286
|
export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
|
|
2291
2287
|
export declare const Chip: React.FC<ChipProps> & ChipComponents;
|
|
@@ -2352,7 +2348,7 @@ export interface IconProperties {
|
|
|
2352
2348
|
source: ReactNode;
|
|
2353
2349
|
/**
|
|
2354
2350
|
* Set the color for the SVG fill.
|
|
2355
|
-
* Use "ai-
|
|
2351
|
+
* Use "ai-interactive" to apply the Nimbus AI interactive gradient.
|
|
2356
2352
|
* @default neutral-textLow
|
|
2357
2353
|
*/
|
|
2358
2354
|
color?: keyof typeof icon.properties.color | "ai-interactive";
|
|
@@ -2364,6 +2360,28 @@ export interface IconProperties {
|
|
|
2364
2360
|
}
|
|
2365
2361
|
export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
|
|
2366
2362
|
export declare const Icon: React.FC<IconProps> & IconComponents;
|
|
2363
|
+
/**
|
|
2364
|
+
* Checks if a color value is valid (exists and is not "none" or "transparent")
|
|
2365
|
+
* @param color - The color value to check
|
|
2366
|
+
* @returns True if color is valid, false otherwise
|
|
2367
|
+
*/
|
|
2368
|
+
export declare const isValidColorValue: (color: string | undefined) => boolean;
|
|
2369
|
+
/**
|
|
2370
|
+
* Checks if a color value can use gradient (valid and not already a URL reference)
|
|
2371
|
+
* @param color - The color value to check
|
|
2372
|
+
* @returns True if color can use gradient, false otherwise
|
|
2373
|
+
*/
|
|
2374
|
+
export declare const canUseGradient: (color: string) => boolean;
|
|
2375
|
+
/**
|
|
2376
|
+
* Checks if a color value is a gradient
|
|
2377
|
+
* @param color - The color value to check
|
|
2378
|
+
* @returns True if color is a known gradient value, false otherwise
|
|
2379
|
+
*/
|
|
2380
|
+
export declare const isGradient: (color: string) => boolean;
|
|
2381
|
+
/**
|
|
2382
|
+
* Collection of known gradient color values
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const GRADIENT_COLORS: Set<string>;
|
|
2367
2385
|
export type IconButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height">> & {
|
|
2368
2386
|
/**
|
|
2369
2387
|
* This is an attribute used to identify a DOM node for testing purposes.
|