dawn-ui-react 1.0.0-beta.4 → 1.0.0-beta.5
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/components/sidebar/sidebar.types.d.ts +6 -4
- package/dist/dawn-ui-react.js +11919 -11940
- package/dist/dawn-ui-react.umd.cjs +55 -55
- package/package.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Badge } from '../badge';
|
|
2
|
+
import { Button } from '../button';
|
|
2
3
|
import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from '../collapsible';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
export type SidebarToggleProps = Omit<React.ComponentProps<typeof Button>, 'children'> & {
|
|
5
|
+
children: React.ReactNode | ((open?: boolean) => React.ReactNode);
|
|
6
|
+
};
|
|
5
7
|
export type SidebarContentProps = React.ComponentProps<'div'>;
|
|
6
8
|
export type SidebarGroupContentProps = React.ComponentProps<'div'>;
|
|
7
9
|
export type SidebarGroupLabelProps = React.ComponentProps<'span'>;
|
|
8
10
|
export type SidebarGroupProps = React.ComponentProps<'div'>;
|
|
9
11
|
export type SidebarHeaderProps = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
10
|
-
children
|
|
12
|
+
children: (isExpanded?: boolean) => React.ReactNode;
|
|
11
13
|
};
|
|
12
14
|
export type SidebarFooterProps = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
13
|
-
children
|
|
15
|
+
children: (isExpanded?: boolean) => React.ReactNode;
|
|
14
16
|
};
|
|
15
17
|
export type SidebarMenuProps = React.ComponentProps<'div'>;
|
|
16
18
|
export type SidebarProps = React.ComponentProps<'div'> & {
|