@nimbus-ds/patterns 1.14.0 → 1.14.1-rc.1
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/Calendar/index.d.ts +2 -6
- package/dist/DataList/index.d.ts +2 -2
- package/dist/EmptyApp/index.d.ts +3 -2
- package/dist/InteractiveList/index.d.ts +16 -16
- package/dist/Layout/index.d.ts +4 -4
- package/dist/NavTabs/index.d.ts +2 -2
- package/dist/Page/index.d.ts +6 -14
- package/dist/ThumbnailWithAction/index.d.ts +2 -2
- package/dist/components-props.json +5314 -0
- package/dist/index.d.ts +34 -45
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export interface CalloutCardProperties {
|
|
|
75
75
|
}
|
|
76
76
|
export type CalloutCardProps = CalloutCardProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
77
77
|
export declare const CalloutCard: React.FC<CalloutCardProps>;
|
|
78
|
-
export interface DataListRowProperties
|
|
78
|
+
export interface DataListRowProperties {
|
|
79
79
|
/**
|
|
80
80
|
* Optional padding for the row.
|
|
81
81
|
* @default base
|
|
@@ -92,7 +92,7 @@ export interface DataListRowProperties extends Omit<BoxProperties, "padding"> {
|
|
|
92
92
|
*/
|
|
93
93
|
topDivider?: boolean;
|
|
94
94
|
}
|
|
95
|
-
export type DataListRowProps = DataListRowProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
95
|
+
export type DataListRowProps = DataListRowProperties & Omit<BoxProperties, "padding"> & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
96
96
|
declare const DataListRow: React.FC<DataListRowProps>;
|
|
97
97
|
export interface DataListComponents {
|
|
98
98
|
Row: typeof DataListRow;
|
|
@@ -346,9 +346,11 @@ export interface InteractiveListCheckboxItemProperties extends InteractiveListSt
|
|
|
346
346
|
/**
|
|
347
347
|
* Checkbox props inherited from Nimbus components.
|
|
348
348
|
*/
|
|
349
|
-
checkbox:
|
|
349
|
+
checkbox: any;
|
|
350
350
|
}
|
|
351
|
-
export type InteractiveListCheckboxItemProps = InteractiveListCheckboxItemProperties &
|
|
351
|
+
export type InteractiveListCheckboxItemProps = InteractiveListCheckboxItemProperties & {
|
|
352
|
+
checkbox: CheckboxProps;
|
|
353
|
+
} & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
|
|
352
354
|
declare const InteractiveListCheckboxItem: React.FC<InteractiveListCheckboxItemProps>;
|
|
353
355
|
export type InteractiveListCheckboxItemSkeletonProperties = InteractiveListStructureSkeletonProperties;
|
|
354
356
|
export type InteractiveListCheckboxItemSkeletonProps = InteractiveListCheckboxItemSkeletonProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
@@ -357,9 +359,11 @@ export interface InteractiveListRadioItemProperties extends InteractiveListStruc
|
|
|
357
359
|
/**
|
|
358
360
|
* Radio props inherited from Nimbus components.
|
|
359
361
|
*/
|
|
360
|
-
radio:
|
|
362
|
+
radio: any;
|
|
361
363
|
}
|
|
362
|
-
export type InteractiveListRadioItemProps = InteractiveListRadioItemProperties &
|
|
364
|
+
export type InteractiveListRadioItemProps = InteractiveListRadioItemProperties & {
|
|
365
|
+
radio: RadioProps;
|
|
366
|
+
} & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
|
|
363
367
|
declare const InteractiveListRadioItem: React.FC<InteractiveListRadioItemProps>;
|
|
364
368
|
export type InteractiveListRadioItemSkeletonProperties = InteractiveListStructureSkeletonProperties;
|
|
365
369
|
export type InteractiveListRadioItemSkeletonProps = InteractiveListRadioItemSkeletonProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
@@ -368,18 +372,20 @@ export interface InteractiveListToggleItemProperties extends InteractiveListStru
|
|
|
368
372
|
/**
|
|
369
373
|
* Toggle props inherited from Nimbus components.
|
|
370
374
|
*/
|
|
371
|
-
toggle:
|
|
375
|
+
toggle: any;
|
|
372
376
|
}
|
|
373
|
-
export type InteractiveListToggleItemProps = InteractiveListToggleItemProperties &
|
|
377
|
+
export type InteractiveListToggleItemProps = InteractiveListToggleItemProperties & {
|
|
378
|
+
toggle: ToggleProps;
|
|
379
|
+
} & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
|
|
374
380
|
declare const InteractiveListToggleItem: React.FC<InteractiveListToggleItemProps>;
|
|
375
381
|
export interface InteractiveListToggleItemSkeletonProperties extends InteractiveListStructureProperties {
|
|
376
382
|
/**
|
|
377
383
|
* Toggle props inherited from Nimbus components.
|
|
378
384
|
*/
|
|
379
|
-
toggle:
|
|
385
|
+
toggle: any;
|
|
380
386
|
}
|
|
381
387
|
export type InteractiveListToggleItemSkeletonProps = InteractiveListToggleItemSkeletonProperties & {
|
|
382
|
-
toggle:
|
|
388
|
+
toggle: ToggleProperties;
|
|
383
389
|
} & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
384
390
|
declare const InteractiveListToggleItemSkeleton: React.FC<InteractiveListToggleItemSkeletonProps>;
|
|
385
391
|
export interface InteractiveListButtonItemProperties extends InteractiveListStructureProperties {
|
|
@@ -407,28 +413,22 @@ export interface InteractiveListComponents {
|
|
|
407
413
|
RadioItem: typeof InteractiveListRadioItem;
|
|
408
414
|
RadioItemSkeleton: typeof InteractiveListRadioItemSkeleton;
|
|
409
415
|
}
|
|
410
|
-
export
|
|
411
|
-
/**
|
|
412
|
-
* Content of the InteractiveList
|
|
413
|
-
* @TJS-type React.ReactNode
|
|
414
|
-
*/
|
|
415
|
-
children: ReactNode;
|
|
416
|
-
}
|
|
416
|
+
export type InteractiveListProperties = PropsWithChildren & Pick<DataListProps, "bottomDivider">;
|
|
417
417
|
export type InteractiveListProps = InteractiveListProperties & HTMLAttributes<HTMLElement>;
|
|
418
418
|
export declare const InteractiveList: React.FC<InteractiveListProps> & InteractiveListComponents;
|
|
419
|
-
export interface LayoutSectionProperties
|
|
419
|
+
export interface LayoutSectionProperties {
|
|
420
420
|
/**
|
|
421
421
|
* Content of the section body.
|
|
422
422
|
* @TJS-type React.ReactNode
|
|
423
423
|
*/
|
|
424
424
|
children: ReactNode;
|
|
425
425
|
}
|
|
426
|
-
export type LayoutSectionProps = LayoutSectionProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
426
|
+
export type LayoutSectionProps = LayoutSectionProperties & Omit<BoxProperties, "children" | "boxSizing" | "display" | "flexDirection"> & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
427
427
|
declare const LayoutSection: React.FC<LayoutSectionProps>;
|
|
428
428
|
export interface LayoutComponents {
|
|
429
429
|
Section: typeof LayoutSection;
|
|
430
430
|
}
|
|
431
|
-
export interface LayoutProperties
|
|
431
|
+
export interface LayoutProperties {
|
|
432
432
|
/**
|
|
433
433
|
* Content to be rendered inside the layout.
|
|
434
434
|
* @TJS-type React.ReactNode
|
|
@@ -439,7 +439,7 @@ export interface LayoutProperties extends Omit<BoxProperties, "children" | "boxS
|
|
|
439
439
|
*/
|
|
440
440
|
columns?: "1" | "2 - symmetric" | "2 - asymmetric" | "3";
|
|
441
441
|
}
|
|
442
|
-
export type LayoutProps = LayoutProperties & HTMLAttributes<HTMLElement>;
|
|
442
|
+
export type LayoutProps = LayoutProperties & Omit<BoxProperties, "children" | "boxSizing" | "display" | "gridTemplateColumns"> & HTMLAttributes<HTMLElement>;
|
|
443
443
|
export declare const Layout: React.FC<LayoutProps> & LayoutComponents;
|
|
444
444
|
export interface MenuButtonAccordionProperties {
|
|
445
445
|
/**
|
|
@@ -551,7 +551,7 @@ export interface MenuProperties {
|
|
|
551
551
|
}
|
|
552
552
|
export type MenuProps = MenuProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
553
553
|
export declare const Menu: React.FC<MenuProps> & MenuComponents;
|
|
554
|
-
export interface NavTabsItemProperties
|
|
554
|
+
export interface NavTabsItemProperties {
|
|
555
555
|
/**
|
|
556
556
|
* Icon element to be rendered inside the button.
|
|
557
557
|
* @TJS-type React.ReactNode
|
|
@@ -575,7 +575,7 @@ export interface NavTabsItemProperties extends BoxProperties {
|
|
|
575
575
|
*/
|
|
576
576
|
ariaLabel: string;
|
|
577
577
|
}
|
|
578
|
-
export type NavTabsItemProps = NavTabsItemProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
578
|
+
export type NavTabsItemProps = NavTabsItemProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
579
579
|
declare const NavTabsItem: React.FC<NavTabsItemProps>;
|
|
580
580
|
export interface NavTabsComponents {
|
|
581
581
|
Item: typeof NavTabsItem;
|
|
@@ -589,7 +589,7 @@ export interface NavTabsProperties {
|
|
|
589
589
|
}
|
|
590
590
|
export type NavTabsProps = NavTabsProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
591
591
|
export declare const NavTabs: React.FC<NavTabsProps> & NavTabsComponents;
|
|
592
|
-
export interface PageHeaderProperties
|
|
592
|
+
export interface PageHeaderProperties {
|
|
593
593
|
/**
|
|
594
594
|
* Main title of the page. Corresponds to an h1 HTML tag.
|
|
595
595
|
*/
|
|
@@ -611,7 +611,7 @@ export interface PageHeaderProperties extends Omit<BoxProperties, "display" | "f
|
|
|
611
611
|
}
|
|
612
612
|
export type PageHeaderProps = PageHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "display" | "flexDirection">;
|
|
613
613
|
declare const PageHeader: React.FC<PageHeaderProps>;
|
|
614
|
-
export interface PageBodyProperties
|
|
614
|
+
export interface PageBodyProperties {
|
|
615
615
|
/**
|
|
616
616
|
* Content of the page body.
|
|
617
617
|
* @TJS-type React.ReactNode
|
|
@@ -624,18 +624,10 @@ export interface PageComponents {
|
|
|
624
624
|
Header: typeof PageHeader;
|
|
625
625
|
Body: typeof PageBody;
|
|
626
626
|
}
|
|
627
|
-
export
|
|
628
|
-
/**
|
|
629
|
-
* Content to be rendered inside the page body.
|
|
630
|
-
* @TJS-type React.ReactNode
|
|
631
|
-
*/
|
|
632
|
-
children: ReactNode;
|
|
633
|
-
/**
|
|
634
|
-
* Optional parameter to define a maximum width of the page content.
|
|
635
|
-
*/
|
|
627
|
+
export type PageProperties = PropsWithChildren<{
|
|
636
628
|
maxWidth?: string;
|
|
637
|
-
}
|
|
638
|
-
export type PageProps = PageProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "width" | "maxWidth" | "marginX">;
|
|
629
|
+
}>;
|
|
630
|
+
export type PageProps = PageProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "width" | "maxWidth" | "marginX"> & Omit<BoxProperties, "width" | "maxWidth" | "marginX">;
|
|
639
631
|
export declare const Page: React.FC<PageProps> & PageComponents;
|
|
640
632
|
export interface ProductUpdatesProperties extends Omit<PopoverProperties, "content" | "appearance" | "padding" | "enabledDismiss"> {
|
|
641
633
|
/**
|
|
@@ -712,7 +704,7 @@ export type SideModalProps = SideModalProperties & {
|
|
|
712
704
|
};
|
|
713
705
|
} & HTMLAttributes<HTMLElement>;
|
|
714
706
|
export declare const SideModal: React.FC<SideModalProps>;
|
|
715
|
-
export interface ThumbnailWithActionProperties
|
|
707
|
+
export interface ThumbnailWithActionProperties {
|
|
716
708
|
/**
|
|
717
709
|
* Thumbnail component properties.
|
|
718
710
|
*/
|
|
@@ -729,7 +721,7 @@ export interface ThumbnailWithActionProperties extends BoxProperties {
|
|
|
729
721
|
}
|
|
730
722
|
export type ThumbnailWithActionProps = ThumbnailWithActionProperties & {
|
|
731
723
|
thumbnail: ThumbnailProps;
|
|
732
|
-
} & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
724
|
+
} & BoxProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
733
725
|
export declare const ThumbnailWithAction: React.FC<ThumbnailWithActionProps>;
|
|
734
726
|
export type CalendarExtends = ComponentProps<typeof DayPicker>;
|
|
735
727
|
export interface CalendarProperties {
|
|
@@ -738,10 +730,6 @@ export interface CalendarProperties {
|
|
|
738
730
|
* @default false
|
|
739
731
|
*/
|
|
740
732
|
hideBorder?: boolean;
|
|
741
|
-
/**
|
|
742
|
-
* Spreads the properties of the Box component to thˇe calendar wrapper.
|
|
743
|
-
*/
|
|
744
|
-
containerProps?: BoxProperties;
|
|
745
733
|
/**
|
|
746
734
|
* If true will stick the weekday indicators to the top of the component. Useful for when creating scrolling calendars with a display of >1 months. Only works when property numberOfMonths is set to a number greater than 1.
|
|
747
735
|
* @default false
|
|
@@ -755,13 +743,14 @@ export interface CalendarProperties {
|
|
|
755
743
|
}
|
|
756
744
|
export type CalendarProps = CalendarProperties & CalendarExtends & {
|
|
757
745
|
/**
|
|
758
|
-
* Spreads the properties of the Box component to
|
|
746
|
+
* Spreads the properties of the Box component to the calendar wrapper.
|
|
759
747
|
*/
|
|
760
748
|
containerProps?: BoxProps;
|
|
761
749
|
};
|
|
762
750
|
export declare const Calendar: React.FC<CalendarProps>;
|
|
763
|
-
export type EmptyAppContentImageElementProperties = Pick<ThumbnailProps, "src" | "alt"
|
|
764
|
-
|
|
751
|
+
export type EmptyAppContentImageElementProperties = Pick<ThumbnailProps, "src" | "alt">;
|
|
752
|
+
export type EmptyAppContentImageElementProps = EmptyAppContentImageElementProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
753
|
+
declare const EmptyAppContentImageElement: React.FC<EmptyAppContentImageElementProps>;
|
|
765
754
|
export interface EmptyAppContentSectionProperties {
|
|
766
755
|
title: string;
|
|
767
756
|
subtitle?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-ds/patterns",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
"import": "./dist/index.js",
|
|
44
44
|
"require": "./dist/index.js"
|
|
45
45
|
},
|
|
46
|
+
"./components-props.json": {
|
|
47
|
+
"import": "./dist/components-props.json",
|
|
48
|
+
"require": "./dist/components-props.json"
|
|
49
|
+
},
|
|
46
50
|
"./AppShell": {
|
|
47
51
|
"import": "./dist/AppShell/index.js",
|
|
48
52
|
"require": "./dist/AppShell/index.js"
|