@nimbus-ds/components 5.18.0 → 5.20.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/CHANGELOG.md +13 -0
- package/dist/CHANGELOG.md +13 -0
- package/dist/Chip/index.d.ts +5 -0
- package/dist/Chip/index.js +1 -1
- package/dist/Icon/index.d.ts +1 -1
- package/dist/Modal/index.d.ts +23 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Sidebar/index.d.ts +23 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +51 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
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" |
|
|
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" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | undefined;
|
|
833
833
|
cursor?: Cursor | undefined;
|
|
834
834
|
}) => string) & {
|
|
835
835
|
properties: Set<"color" | "cursor">;
|
|
@@ -1775,6 +1775,7 @@ export interface ModalSprinkle {
|
|
|
1775
1775
|
declare const modal: {
|
|
1776
1776
|
classnames: {
|
|
1777
1777
|
overlay: string;
|
|
1778
|
+
overlayScoped: string;
|
|
1778
1779
|
container: string;
|
|
1779
1780
|
container__close: string;
|
|
1780
1781
|
container__footer: string;
|
|
@@ -2132,7 +2133,9 @@ declare const sidebar: {
|
|
|
2132
2133
|
};
|
|
2133
2134
|
classnames: {
|
|
2134
2135
|
overlay: string;
|
|
2136
|
+
overlayScoped: string;
|
|
2135
2137
|
container: string;
|
|
2138
|
+
containerScoped: string;
|
|
2136
2139
|
container__header: string;
|
|
2137
2140
|
container__body: string;
|
|
2138
2141
|
container__footer: string;
|
|
@@ -2287,6 +2290,11 @@ export interface ChipProperties {
|
|
|
2287
2290
|
* Informs whether the close icon should be displayed.
|
|
2288
2291
|
*/
|
|
2289
2292
|
removable?: boolean;
|
|
2293
|
+
/**
|
|
2294
|
+
* Highlights the chip to indicate its value was generated by AI.
|
|
2295
|
+
* Applies AI gradient border and an AI outline.
|
|
2296
|
+
*/
|
|
2297
|
+
aiGenerated?: boolean;
|
|
2290
2298
|
}
|
|
2291
2299
|
export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
|
|
2292
2300
|
export declare const Chip: React.FC<ChipProps> & ChipComponents;
|
|
@@ -3278,6 +3286,7 @@ export interface CollapsibleProperties {
|
|
|
3278
3286
|
}
|
|
3279
3287
|
export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
|
|
3280
3288
|
export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
|
|
3289
|
+
export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
|
|
3281
3290
|
export interface ModalBodyProperties {
|
|
3282
3291
|
/**
|
|
3283
3292
|
* The content of the modal body.
|
|
@@ -3348,13 +3357,33 @@ export interface ModalProperties extends ModalSprinkle {
|
|
|
3348
3357
|
* Id to be embedded in the portal element
|
|
3349
3358
|
*/
|
|
3350
3359
|
portalId?: string;
|
|
3360
|
+
/**
|
|
3361
|
+
* Controls whether clicking/pressing outside should close the modal.
|
|
3362
|
+
* - boolean: enable/disable dismissal on outside press
|
|
3363
|
+
* - function: receive the DOM event and return true to allow closing, false to ignore
|
|
3364
|
+
*
|
|
3365
|
+
* Defaults to true.
|
|
3366
|
+
*/
|
|
3367
|
+
closeOnOutsidePress?: boolean | CloseOnOutsidePress;
|
|
3368
|
+
/**
|
|
3369
|
+
* The attribute name to ignore when checking for outside clicks. Useful to
|
|
3370
|
+
* mark regions (e.g., a chat) that should not close the modal when clicked.
|
|
3371
|
+
* @default "data-nimbus-outside-press-ignore"
|
|
3372
|
+
*/
|
|
3373
|
+
ignoreAttributeName?: string;
|
|
3351
3374
|
/**
|
|
3352
3375
|
* The padding properties are used to generate space around an modal's content area.
|
|
3353
3376
|
* @default base
|
|
3354
3377
|
*/
|
|
3355
3378
|
padding?: keyof typeof modal.properties.padding;
|
|
3356
3379
|
}
|
|
3357
|
-
export type ModalProps = ModalProperties &
|
|
3380
|
+
export type ModalProps = ModalProperties & {
|
|
3381
|
+
/**
|
|
3382
|
+
* Root element where the portal should be mounted. When provided and not null,
|
|
3383
|
+
* the portal renders inside this element; when null/undefined, the default root is used.
|
|
3384
|
+
*/
|
|
3385
|
+
root?: HTMLElement | null;
|
|
3386
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
3358
3387
|
export declare const Modal: React.FC<ModalProps> & ModalComponents;
|
|
3359
3388
|
export interface PaginationItemData {
|
|
3360
3389
|
pageNumber: number | string;
|
|
@@ -3552,8 +3581,27 @@ export interface SidebarProperties extends SidebarSprinkle {
|
|
|
3552
3581
|
* @default true
|
|
3553
3582
|
*/
|
|
3554
3583
|
needRemoveScroll?: boolean;
|
|
3584
|
+
/**
|
|
3585
|
+
* Controls whether clicking/pressing outside should close the sidebar.
|
|
3586
|
+
* - boolean: enable/disable dismissal on outside press
|
|
3587
|
+
* - function: receive the DOM event and return true to allow closing, false to ignore
|
|
3588
|
+
*
|
|
3589
|
+
* Defaults to true for backward compatibility.
|
|
3590
|
+
*/
|
|
3591
|
+
closeOnOutsidePress?: boolean | CloseOnOutsidePress;
|
|
3592
|
+
/**
|
|
3593
|
+
* The attribute name to ignore when checking for outside clicks.
|
|
3594
|
+
* @default "data-nimbus-outside-press-ignore"
|
|
3595
|
+
*/
|
|
3596
|
+
ignoreAttributeName?: string;
|
|
3555
3597
|
}
|
|
3556
|
-
export type SidebarProps = SidebarProperties &
|
|
3598
|
+
export type SidebarProps = SidebarProperties & {
|
|
3599
|
+
/**
|
|
3600
|
+
* Root element where the portal should be mounted. When provided and not null,
|
|
3601
|
+
* the portal renders inside this element; when null/undefined, the default root is used.
|
|
3602
|
+
*/
|
|
3603
|
+
root?: HTMLElement | null;
|
|
3604
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
3557
3605
|
export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
|
|
3558
3606
|
/**
|
|
3559
3607
|
* Represents the visual state of a step
|