@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.
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v8.0.0
2
2
 
3
- import { BoxProperties, BoxProps } from '@nimbus-ds/components';
3
+ import { BoxProps } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
5
  import { ComponentProps, HTMLAttributes, ReactNode } from 'react';
6
6
  import { CaptionLabelProps, DayPicker, DayPickerProviderProps, DayProps } from 'react-day-picker';
@@ -12,10 +12,6 @@ export interface CalendarProperties {
12
12
  * @default false
13
13
  */
14
14
  hideBorder?: boolean;
15
- /**
16
- * Spreads the properties of the Box component to thˇe calendar wrapper.
17
- */
18
- containerProps?: BoxProperties;
19
15
  /**
20
16
  * 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.
21
17
  * @default false
@@ -29,7 +25,7 @@ export interface CalendarProperties {
29
25
  }
30
26
  export type CalendarProps = CalendarProperties & CalendarExtends & {
31
27
  /**
32
- * Spreads the properties of the Box component to thˇe calendar wrapper.
28
+ * Spreads the properties of the Box component to the calendar wrapper.
33
29
  */
34
30
  containerProps?: BoxProps;
35
31
  };
@@ -4,7 +4,7 @@ import { BoxProperties } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
5
  import { HTMLAttributes, ReactNode } from 'react';
6
6
 
7
- export interface DataListRowProperties extends Omit<BoxProperties, "padding"> {
7
+ export interface DataListRowProperties {
8
8
  /**
9
9
  * Optional padding for the row.
10
10
  * @default base
@@ -21,7 +21,7 @@ export interface DataListRowProperties extends Omit<BoxProperties, "padding"> {
21
21
  */
22
22
  topDivider?: boolean;
23
23
  }
24
- export type DataListRowProps = DataListRowProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
24
+ export type DataListRowProps = DataListRowProperties & Omit<BoxProperties, "padding"> & Omit<HTMLAttributes<HTMLElement>, "color">;
25
25
  export declare const DataListRow: React.FC<DataListRowProps>;
26
26
  export interface DataListComponents {
27
27
  Row: typeof DataListRow;
@@ -4,8 +4,9 @@ import { BoxProps, ThumbnailProps } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
5
  import { HTMLAttributes, ReactNode } from 'react';
6
6
 
7
- export type EmptyAppContentImageElementProperties = Pick<ThumbnailProps, "src" | "alt"> & Omit<HTMLAttributes<HTMLElement>, "color">;
8
- export declare const EmptyAppContentImageElement: React.FC<EmptyAppContentImageElementProperties>;
7
+ export type EmptyAppContentImageElementProperties = Pick<ThumbnailProps, "src" | "alt">;
8
+ export type EmptyAppContentImageElementProps = EmptyAppContentImageElementProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
9
+ export declare const EmptyAppContentImageElement: React.FC<EmptyAppContentImageElementProps>;
9
10
  export interface EmptyAppContentSectionProperties {
10
11
  title: string;
11
12
  subtitle?: string;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { BoxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, RadioProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
- import { HTMLAttributes, ReactNode } from 'react';
5
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
6
6
 
7
7
  export interface DataListProperties {
8
8
  /**
@@ -58,9 +58,11 @@ export interface InteractiveListCheckboxItemProperties extends InteractiveListSt
58
58
  /**
59
59
  * Checkbox props inherited from Nimbus components.
60
60
  */
61
- checkbox: CheckboxProps;
61
+ checkbox: any;
62
62
  }
63
- export type InteractiveListCheckboxItemProps = InteractiveListCheckboxItemProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
63
+ export type InteractiveListCheckboxItemProps = InteractiveListCheckboxItemProperties & {
64
+ checkbox: CheckboxProps;
65
+ } & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
64
66
  export declare const InteractiveListCheckboxItem: React.FC<InteractiveListCheckboxItemProps>;
65
67
  export type InteractiveListCheckboxItemSkeletonProperties = InteractiveListStructureSkeletonProperties;
66
68
  export type InteractiveListCheckboxItemSkeletonProps = InteractiveListCheckboxItemSkeletonProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
@@ -69,9 +71,11 @@ export interface InteractiveListRadioItemProperties extends InteractiveListStruc
69
71
  /**
70
72
  * Radio props inherited from Nimbus components.
71
73
  */
72
- radio: RadioProps;
74
+ radio: any;
73
75
  }
74
- export type InteractiveListRadioItemProps = InteractiveListRadioItemProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
76
+ export type InteractiveListRadioItemProps = InteractiveListRadioItemProperties & {
77
+ radio: RadioProps;
78
+ } & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
75
79
  export declare const InteractiveListRadioItem: React.FC<InteractiveListRadioItemProps>;
76
80
  export type InteractiveListRadioItemSkeletonProperties = InteractiveListStructureSkeletonProperties;
77
81
  export type InteractiveListRadioItemSkeletonProps = InteractiveListRadioItemSkeletonProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
@@ -80,18 +84,20 @@ export interface InteractiveListToggleItemProperties extends InteractiveListStru
80
84
  /**
81
85
  * Toggle props inherited from Nimbus components.
82
86
  */
83
- toggle: ToggleProps;
87
+ toggle: any;
84
88
  }
85
- export type InteractiveListToggleItemProps = InteractiveListToggleItemProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
89
+ export type InteractiveListToggleItemProps = InteractiveListToggleItemProperties & {
90
+ toggle: ToggleProps;
91
+ } & Omit<HTMLAttributes<HTMLElement>, "color"> & Pick<InteractiveListRowProps, "topDivider">;
86
92
  export declare const InteractiveListToggleItem: React.FC<InteractiveListToggleItemProps>;
87
93
  export interface InteractiveListToggleItemSkeletonProperties extends InteractiveListStructureProperties {
88
94
  /**
89
95
  * Toggle props inherited from Nimbus components.
90
96
  */
91
- toggle: ToggleProperties;
97
+ toggle: any;
92
98
  }
93
99
  export type InteractiveListToggleItemSkeletonProps = InteractiveListToggleItemSkeletonProperties & {
94
- toggle: ToggleProps;
100
+ toggle: ToggleProperties;
95
101
  } & Omit<HTMLAttributes<HTMLElement>, "color">;
96
102
  export declare const InteractiveListToggleItemSkeleton: React.FC<InteractiveListToggleItemSkeletonProps>;
97
103
  export interface InteractiveListButtonItemProperties extends InteractiveListStructureProperties {
@@ -120,13 +126,7 @@ export interface InteractiveListComponents {
120
126
  RadioItem: typeof InteractiveListRadioItem;
121
127
  RadioItemSkeleton: typeof InteractiveListRadioItemSkeleton;
122
128
  }
123
- export interface InteractiveListProperties extends DataListProps {
124
- /**
125
- * Content of the InteractiveList
126
- * @TJS-type React.ReactNode
127
- */
128
- children: ReactNode;
129
- }
129
+ export type InteractiveListProperties = PropsWithChildren & Pick<DataListProps, "bottomDivider">;
130
130
  export type InteractiveListProps = InteractiveListProperties & HTMLAttributes<HTMLElement>;
131
131
  export declare const InteractiveList: React.FC<InteractiveListProps> & InteractiveListComponents;
132
132
 
@@ -4,19 +4,19 @@ import { BoxProperties } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
5
  import { HTMLAttributes, ReactNode } from 'react';
6
6
 
7
- export interface LayoutSectionProperties extends Omit<BoxProperties, "children" | "boxSizing" | "display" | "flexDirection"> {
7
+ export interface LayoutSectionProperties {
8
8
  /**
9
9
  * Content of the section body.
10
10
  * @TJS-type React.ReactNode
11
11
  */
12
12
  children: ReactNode;
13
13
  }
14
- export type LayoutSectionProps = LayoutSectionProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
14
+ export type LayoutSectionProps = LayoutSectionProperties & Omit<BoxProperties, "children" | "boxSizing" | "display" | "flexDirection"> & Omit<HTMLAttributes<HTMLElement>, "color">;
15
15
  export declare const LayoutSection: React.FC<LayoutSectionProps>;
16
16
  export interface LayoutComponents {
17
17
  Section: typeof LayoutSection;
18
18
  }
19
- export interface LayoutProperties extends Omit<BoxProperties, "children" | "boxSizing" | "display" | "gridTemplateColumns"> {
19
+ export interface LayoutProperties {
20
20
  /**
21
21
  * Content to be rendered inside the layout.
22
22
  * @TJS-type React.ReactNode
@@ -27,7 +27,7 @@ export interface LayoutProperties extends Omit<BoxProperties, "children" | "boxS
27
27
  */
28
28
  columns?: "1" | "2 - symmetric" | "2 - asymmetric" | "3";
29
29
  }
30
- export type LayoutProps = LayoutProperties & HTMLAttributes<HTMLElement>;
30
+ export type LayoutProps = LayoutProperties & Omit<BoxProperties, "children" | "boxSizing" | "display" | "gridTemplateColumns"> & HTMLAttributes<HTMLElement>;
31
31
  export declare const Layout: React.FC<LayoutProps> & LayoutComponents;
32
32
 
33
33
  export {};
@@ -4,7 +4,7 @@ import { BoxProperties } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
5
  import { HTMLAttributes, ReactNode } from 'react';
6
6
 
7
- export interface NavTabsItemProperties extends BoxProperties {
7
+ export interface NavTabsItemProperties {
8
8
  /**
9
9
  * Icon element to be rendered inside the button.
10
10
  * @TJS-type React.ReactNode
@@ -28,7 +28,7 @@ export interface NavTabsItemProperties extends BoxProperties {
28
28
  */
29
29
  ariaLabel: string;
30
30
  }
31
- export type NavTabsItemProps = NavTabsItemProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
31
+ export type NavTabsItemProps = NavTabsItemProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
32
32
  export declare const NavTabsItem: React.FC<NavTabsItemProps>;
33
33
  export interface NavTabsComponents {
34
34
  Item: typeof NavTabsItem;
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { BoxProperties, BoxProps } from '@nimbus-ds/components';
4
4
  import React from 'react';
5
- import { HTMLAttributes, ReactNode } from 'react';
5
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
6
6
 
7
- export interface PageHeaderProperties extends Omit<BoxProperties, "display" | "flexDirection"> {
7
+ export interface PageHeaderProperties {
8
8
  /**
9
9
  * Main title of the page. Corresponds to an h1 HTML tag.
10
10
  */
@@ -26,7 +26,7 @@ export interface PageHeaderProperties extends Omit<BoxProperties, "display" | "f
26
26
  }
27
27
  export type PageHeaderProps = PageHeaderProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "display" | "flexDirection">;
28
28
  export declare const PageHeader: React.FC<PageHeaderProps>;
29
- export interface PageBodyProperties extends BoxProperties {
29
+ export interface PageBodyProperties {
30
30
  /**
31
31
  * Content of the page body.
32
32
  * @TJS-type React.ReactNode
@@ -39,18 +39,10 @@ export interface PageComponents {
39
39
  Header: typeof PageHeader;
40
40
  Body: typeof PageBody;
41
41
  }
42
- export interface PageProperties extends Omit<BoxProperties, "width" | "maxWidth" | "marginX"> {
43
- /**
44
- * Content to be rendered inside the page body.
45
- * @TJS-type React.ReactNode
46
- */
47
- children: ReactNode;
48
- /**
49
- * Optional parameter to define a maximum width of the page content.
50
- */
42
+ export type PageProperties = PropsWithChildren<{
51
43
  maxWidth?: string;
52
- }
53
- export type PageProps = PageProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "width" | "maxWidth" | "marginX">;
44
+ }>;
45
+ export type PageProps = PageProperties & Omit<HTMLAttributes<HTMLElement>, "color"> & Omit<BoxProps, "width" | "maxWidth" | "marginX"> & Omit<BoxProperties, "width" | "maxWidth" | "marginX">;
54
46
  export declare const Page: React.FC<PageProps> & PageComponents;
55
47
 
56
48
  export {};
@@ -4,7 +4,7 @@ import { BoxProperties, ThumbnailProperties, ThumbnailProps } from '@nimbus-ds/c
4
4
  import React from 'react';
5
5
  import { HTMLAttributes, ReactNode } from 'react';
6
6
 
7
- export interface ThumbnailWithActionProperties extends BoxProperties {
7
+ export interface ThumbnailWithActionProperties {
8
8
  /**
9
9
  * Thumbnail component properties.
10
10
  */
@@ -21,7 +21,7 @@ export interface ThumbnailWithActionProperties extends BoxProperties {
21
21
  }
22
22
  export type ThumbnailWithActionProps = ThumbnailWithActionProperties & {
23
23
  thumbnail: ThumbnailProps;
24
- } & Omit<HTMLAttributes<HTMLElement>, "color">;
24
+ } & BoxProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
25
25
  export declare const ThumbnailWithAction: React.FC<ThumbnailWithActionProps>;
26
26
 
27
27
  export {