@nimbus-ds/components 5.18.0-rc.3 → 5.19.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.ts CHANGED
@@ -1776,8 +1776,6 @@ declare const modal: {
1776
1776
  classnames: {
1777
1777
  overlay: string;
1778
1778
  overlayScoped: string;
1779
- frame: string;
1780
- frameScoped: string;
1781
1779
  container: string;
1782
1780
  container__close: string;
1783
1781
  container__footer: string;
@@ -2417,9 +2415,9 @@ export interface IconButtonProperties extends IconButtonSprinkle {
2417
2415
  }
2418
2416
  export type IconButtonProps = IconButtonProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
2419
2417
  export declare const IconButton: React.FC<IconButtonProps> & IconButtonComponents;
2420
- export type InputPasswordProperties = Pick<InputBaseProps, "appearance" | "disabled">;
2418
+ export type InputPasswordProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
2421
2419
  declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
2422
- export type InputSearchProperties = Pick<InputBaseProps, "appearance" | "disabled">;
2420
+ export type InputSearchProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
2423
2421
  declare const InputSearch: React.ForwardRefExoticComponent<InputSearchProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
2424
2422
  export type InputSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2425
2423
  export type InputSkeletonProps = InputSkeletonProperties;
@@ -2434,7 +2432,12 @@ export interface InputProperties {
2434
2432
  * Change the visual style of the input.
2435
2433
  * @default neutral
2436
2434
  */
2437
- appearance?: "neutral" | "success" | "warning" | "danger";
2435
+ appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative";
2436
+ /**
2437
+ * Highlights the field to indicate its value was generated by AI.
2438
+ * Applies AI gradient border, white background and an AI focus ring.
2439
+ */
2440
+ aiGenerated?: boolean;
2438
2441
  /**
2439
2442
  * Disables the input, disallowing user interaction.
2440
2443
  */
@@ -3278,6 +3281,7 @@ export interface CollapsibleProperties {
3278
3281
  }
3279
3282
  export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
3280
3283
  export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
3284
+ export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
3281
3285
  export interface ModalBodyProperties {
3282
3286
  /**
3283
3287
  * The content of the modal body.
@@ -3348,11 +3352,6 @@ export interface ModalProperties extends ModalSprinkle {
3348
3352
  * Id to be embedded in the portal element
3349
3353
  */
3350
3354
  portalId?: string;
3351
- /**
3352
- * Root element where the portal should be mounted. When provided and not null,
3353
- * the portal renders inside this element; when null/undefined, the default root is used.
3354
- */
3355
- container?: HTMLElement | null;
3356
3355
  /**
3357
3356
  * Controls whether clicking/pressing outside should close the modal.
3358
3357
  * - boolean: enable/disable dismissal on outside press
@@ -3360,7 +3359,7 @@ export interface ModalProperties extends ModalSprinkle {
3360
3359
  *
3361
3360
  * Defaults to true.
3362
3361
  */
3363
- closeOnOutsidePress?: boolean | ((event: PointerEvent | MouseEvent) => boolean);
3362
+ closeOnOutsidePress?: boolean | CloseOnOutsidePress;
3364
3363
  /**
3365
3364
  * The attribute name to ignore when checking for outside clicks. Useful to
3366
3365
  * mark regions (e.g., a chat) that should not close the modal when clicked.
@@ -3373,7 +3372,13 @@ export interface ModalProperties extends ModalSprinkle {
3373
3372
  */
3374
3373
  padding?: keyof typeof modal.properties.padding;
3375
3374
  }
3376
- export type ModalProps = ModalProperties & HTMLAttributes<HTMLDivElement>;
3375
+ export type ModalProps = ModalProperties & {
3376
+ /**
3377
+ * Root element where the portal should be mounted. When provided and not null,
3378
+ * the portal renders inside this element; when null/undefined, the default root is used.
3379
+ */
3380
+ root?: HTMLElement | null;
3381
+ } & HTMLAttributes<HTMLDivElement>;
3377
3382
  export declare const Modal: React.FC<ModalProps> & ModalComponents;
3378
3383
  export interface PaginationItemData {
3379
3384
  pageNumber: number | string;
@@ -3571,11 +3576,6 @@ export interface SidebarProperties extends SidebarSprinkle {
3571
3576
  * @default true
3572
3577
  */
3573
3578
  needRemoveScroll?: boolean;
3574
- /**
3575
- * Root element where the portal should be mounted. When provided and not null,
3576
- * the portal renders inside this element; when null/undefined, the default root is used.
3577
- */
3578
- container?: HTMLElement | null;
3579
3579
  /**
3580
3580
  * Controls whether clicking/pressing outside should close the sidebar.
3581
3581
  * - boolean: enable/disable dismissal on outside press
@@ -3583,14 +3583,20 @@ export interface SidebarProperties extends SidebarSprinkle {
3583
3583
  *
3584
3584
  * Defaults to true for backward compatibility.
3585
3585
  */
3586
- closeOnOutsidePress?: boolean | ((event: PointerEvent | MouseEvent) => boolean);
3586
+ closeOnOutsidePress?: boolean | CloseOnOutsidePress;
3587
3587
  /**
3588
3588
  * The attribute name to ignore when checking for outside clicks.
3589
- * @default "data-ignore-outside-click"
3589
+ * @default "data-nimbus-outside-press-ignore"
3590
3590
  */
3591
3591
  ignoreAttributeName?: string;
3592
3592
  }
3593
- export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
3593
+ export type SidebarProps = SidebarProperties & {
3594
+ /**
3595
+ * Root element where the portal should be mounted. When provided and not null,
3596
+ * the portal renders inside this element; when null/undefined, the default root is used.
3597
+ */
3598
+ root?: HTMLElement | null;
3599
+ } & HTMLAttributes<HTMLDivElement>;
3594
3600
  export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
3595
3601
  /**
3596
3602
  * Represents the visual state of a step