digital-rabbit-cl 2.0.5 → 2.0.7
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/FormGroup/FormGroup.d.ts.map +1 -1
- package/dist/components/NavItem/NavItem.d.ts +28 -0
- package/dist/components/NavItem/NavItem.d.ts.map +1 -0
- package/dist/components/NavItem/index.d.ts +3 -0
- package/dist/components/NavItem/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +43 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +18 -0
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/index.d.ts +2 -1
- package/dist/components/ResponsiveNav/index.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +1709 -1438
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGzD,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,EACtC,IAAI,CAAC,gBAAgB,EAAE,MAAM,G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B,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6FvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PopoverVariant, PopoverSide } from '../Popover/Popover';
|
|
3
|
+
export interface NavItemProps {
|
|
4
|
+
/** Trigger label content */
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
/** Dropdown/panel content */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Dropdown variant. Default: 'popup' */
|
|
9
|
+
dropdownVariant?: PopoverVariant;
|
|
10
|
+
/** Side the panel slides in from (panel variant only). Default: 'left' */
|
|
11
|
+
side?: PopoverSide;
|
|
12
|
+
/** Panel width (panel variant only). Default: '75%' */
|
|
13
|
+
panelWidth?: string;
|
|
14
|
+
/** Text color for the trigger button. Defaults to theme font color. */
|
|
15
|
+
color?: string;
|
|
16
|
+
/** Additional className for the trigger button */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Additional styles for the trigger button */
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Additional HTML attributes for the trigger button.
|
|
22
|
+
* onClick and style are reserved and should not be passed here.
|
|
23
|
+
*/
|
|
24
|
+
buttonProps?: Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'style'>;
|
|
25
|
+
}
|
|
26
|
+
declare const NavItem: React.FC<NavItemProps>;
|
|
27
|
+
export default NavItem;
|
|
28
|
+
//# sourceMappingURL=NavItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItE,MAAM,WAAW,YAAY;IAC3B,4BAA4B;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yCAAyC;IACzC,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;CACxF;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyDnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type PopoverPlacement = 'bottom-start' | 'bottom' | 'bottom-end';
|
|
3
|
+
export type PopoverVariant = 'popup' | 'panel';
|
|
4
|
+
export type PopoverSide = 'left' | 'right';
|
|
5
|
+
export interface PopoverProps {
|
|
6
|
+
/**
|
|
7
|
+
* The trigger element. Use a render function to receive `onClick` and `isOpen`
|
|
8
|
+
* for full control, or pass a ReactNode to have it wrapped automatically.
|
|
9
|
+
*/
|
|
10
|
+
trigger: React.ReactNode | ((props: {
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
}) => React.ReactNode);
|
|
14
|
+
/** Content displayed inside the popover or panel */
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/** 'popup' renders a small floating dropdown; 'panel' renders a full-height side drawer */
|
|
17
|
+
variant?: PopoverVariant;
|
|
18
|
+
/** Controlled open state */
|
|
19
|
+
isOpen?: boolean;
|
|
20
|
+
/** Callback fired when open state should change */
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
/** Placement relative to the trigger (popup variant only). Default: 'bottom-start' */
|
|
23
|
+
placement?: PopoverPlacement;
|
|
24
|
+
/** Side the panel slides in from (panel variant only). Default: 'left' */
|
|
25
|
+
side?: PopoverSide;
|
|
26
|
+
/** Panel width (panel variant only). Default: '75%' */
|
|
27
|
+
panelWidth?: string;
|
|
28
|
+
/** Backdrop color behind the panel. Default: 'rgba(0,0,0,0.5)' */
|
|
29
|
+
backdropColor?: string;
|
|
30
|
+
/** Hide the close button inside the panel (panel variant only). Default: false */
|
|
31
|
+
hideCloseButton?: boolean;
|
|
32
|
+
/** Whether clicking the backdrop closes the panel (panel variant only). Default: true */
|
|
33
|
+
closeOnBackdropClick?: boolean;
|
|
34
|
+
/** Additional className for the popover/panel content container */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Additional styles for the popover/panel content container */
|
|
37
|
+
style?: React.CSSProperties;
|
|
38
|
+
/** Additional HTML attributes for the popover/panel content container */
|
|
39
|
+
popoverProps?: Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;
|
|
40
|
+
}
|
|
41
|
+
declare const Popover: React.FC<PopoverProps>;
|
|
42
|
+
export default Popover;
|
|
43
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,K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M,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6QnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC"}
|
|
@@ -2,6 +2,17 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { HamburgerProps } from '../Hamburger/Hamburger';
|
|
3
3
|
import { ThemeBreakpoints } from '../../theme';
|
|
4
4
|
import { ElementSpecificProps, ColorProps, ActiveProps, HoverProps, BaseComponentProps } from '../../types/component-props';
|
|
5
|
+
export interface ResponsiveNavContextValue {
|
|
6
|
+
/** Whether the nav is currently in mobile view */
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
/** Set the hamburger menu open state */
|
|
9
|
+
setOpen: (open: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Context provided to all descendants of ResponsiveNav.
|
|
13
|
+
* Useful for NavItem to detect mobile state and close the parent menu.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ResponsiveNavContext: React.Context<ResponsiveNavContextValue>;
|
|
5
16
|
/**
|
|
6
17
|
* Props for mobile navigation appearance and behavior
|
|
7
18
|
*/
|
|
@@ -72,6 +83,13 @@ export interface ResponsiveNavProps {
|
|
|
72
83
|
* Additional HTML attributes for the nav element
|
|
73
84
|
*/
|
|
74
85
|
navProps?: Omit<ElementSpecificProps<HTMLElement>, 'className' | 'style'>;
|
|
86
|
+
/**
|
|
87
|
+
* When true, disables the hamburger/full-page mobile menu treatment.
|
|
88
|
+
* The nav renders normally on all viewports and children can use
|
|
89
|
+
* NavItem for individual dropdown menus instead.
|
|
90
|
+
* Default: false
|
|
91
|
+
*/
|
|
92
|
+
disableMobileTreatment?: boolean;
|
|
75
93
|
}
|
|
76
94
|
declare const ResponsiveNav: React.FC<ResponsiveNavProps>;
|
|
77
95
|
export default ResponsiveNav;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,yBAAyB;IACxC,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,0CAG/B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EACnD,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,uBAAuB,CAAC,EAC1D,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAEjG;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,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AC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default } from './ResponsiveNav';
|
|
2
|
+
export { ResponsiveNavContext } from './ResponsiveNav';
|
|
2
3
|
export { useResponsiveNavStyles } from './useResponsiveNavStyles';
|
|
3
|
-
export type { ResponsiveNavProps, ResponsiveNavMobileProps, ResponsiveNavDesktopProps, } from './ResponsiveNav';
|
|
4
|
+
export type { ResponsiveNavProps, ResponsiveNavMobileProps, ResponsiveNavDesktopProps, ResponsiveNavContextValue, } from './ResponsiveNav';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC"}
|