@youversion/design-system-components 0.0.5 → 0.0.6
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/CHANGELOG.md +13 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/Breadcrumb/Breadcrumbs.d.ts +8 -0
- package/dist/Breadcrumb/Breadcrumbs.d.ts.map +1 -0
- package/dist/Breadcrumb/index.d.ts +3 -0
- package/dist/Breadcrumb/index.d.ts.map +1 -0
- package/dist/FocusTrap/FocusTrap.d.ts +27 -0
- package/dist/FocusTrap/FocusTrap.d.ts.map +1 -0
- package/dist/FocusTrap/index.d.ts +2 -0
- package/dist/FocusTrap/index.d.ts.map +1 -0
- package/dist/List/List.d.ts.map +1 -1
- package/dist/ListItem/ListItem.d.ts +2 -0
- package/dist/ListItem/ListItem.d.ts.map +1 -1
- package/dist/Popover/Popover.d.ts +36 -0
- package/dist/Popover/Popover.d.ts.map +1 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.d.ts.map +1 -0
- package/dist/PopoverBody/PopoverBody.d.ts +47 -0
- package/dist/PopoverBody/PopoverBody.d.ts.map +1 -0
- package/dist/PopoverBody/PopoverBody.module.css.d.ts +5 -0
- package/dist/PopoverBody/PopoverBodyContents.d.ts +29 -0
- package/dist/PopoverBody/PopoverBodyContents.d.ts.map +1 -0
- package/dist/PopoverBody/PopoverBodyWrapper.d.ts +30 -0
- package/dist/PopoverBody/PopoverBodyWrapper.d.ts.map +1 -0
- package/dist/PopoverBody/index.d.ts +2 -0
- package/dist/PopoverBody/index.d.ts.map +1 -0
- package/dist/PopoverTrigger/PopoverTrigger.d.ts +9 -0
- package/dist/PopoverTrigger/PopoverTrigger.d.ts.map +1 -0
- package/dist/PopoverTrigger/index.d.ts +2 -0
- package/dist/PopoverTrigger/index.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +842 -623
- package/dist/index.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @youversion/design-system-components
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5538398: - Added Popover related Components
|
|
8
|
+
- **Popover**
|
|
9
|
+
- **PopoverTrigger**
|
|
10
|
+
- **PopoverBody**
|
|
11
|
+
- **FocusTrap**
|
|
12
|
+
- Updating ListItems for better accessibility
|
|
13
|
+
- 047f14c: - Added **Breadcrumb** component
|
|
14
|
+
- Added **Breadcrumbs** component
|
|
15
|
+
|
|
3
16
|
## 0.0.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps } from '../Typography/Typography';
|
|
3
|
+
type NativeAnchorProps = React.AllHTMLAttributes<HTMLAnchorElement>;
|
|
4
|
+
interface BreadcrumbProps extends NativeAnchorProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Breadcrumb: {
|
|
8
|
+
({ children, component, className, active, ...rest }: BreadcrumbProps & TypographyProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=Breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,KAAK,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AAEpE,UAAU,eAAgB,SAAQ,iBAAiB;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,UAAU;0DAMpB,eAAe,GAAG,eAAe;;CAcnC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode | Array<React.ReactNode>;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/Breadcrumbs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6CD,eAAO,MAAM,WAAW,yFAAyC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FocusTrapProps {
|
|
3
|
+
autoFocus?: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Allows users to prevent the user from tabbing outside the children of the FocusTrap component.
|
|
8
|
+
*
|
|
9
|
+
* Accepts {@link FocusTrapProps}.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { Button, FocusTrap } from '@youversion/design-system-components';
|
|
14
|
+
*
|
|
15
|
+
* function MyComponent() {
|
|
16
|
+
* return (
|
|
17
|
+
* <>
|
|
18
|
+
* <FocusTrap>
|
|
19
|
+
* <Button>First Button</Button>
|
|
20
|
+
* <Button>Second Button</Button>
|
|
21
|
+
* </FocusTrap>
|
|
22
|
+
* </>
|
|
23
|
+
* )
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const FocusTrap: ({ children, autoFocus }: FocusTrapProps) => JSX.Element;
|
|
27
|
+
//# sourceMappingURL=FocusTrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusTrap.d.ts","sourceRoot":"","sources":["../../../src/FocusTrap/FocusTrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,4BAAoC,cAAc,gBAkFvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FocusTrap/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/List/List.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjE,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjE,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,IAAI,wGAA4B,CAAC"}
|
|
@@ -25,7 +25,9 @@ interface ListItemPropsBase extends HTMLAttributes<HTMLLIElement> {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
/** Display a divider between ListItems. */
|
|
27
27
|
divider?: boolean;
|
|
28
|
+
endIcon?: React.ReactNode;
|
|
28
29
|
onClick?: () => void;
|
|
30
|
+
startIcon?: React.ReactNode;
|
|
29
31
|
}
|
|
30
32
|
export type ListItemProps = ListItemPropsBase & AllIconAndActionProps;
|
|
31
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA4B,cAAc,
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA4B,cAAc,EAAiB,MAAM,OAAO,CAAC;AAIvF,UAAU,wBAAwB;IAChC,kDAAkD;IAClD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,UAAU,2BAA2B;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,sBAAsB;IAC9B,gDAAgD;IAChD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,KAAK,uBAAuB,GAAG,wBAAwB,GAAG,2BAA2B,CAAC;AACtF,KAAK,qBAAqB,GAAG,sBAAsB,GAAG,yBAAyB,CAAC;AAChF,KAAK,qBAAqB,GAAG,uBAAuB,GAAG,qBAAqB,CAAC;AAE7E,UAAU,iBAAkB,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,qBAAqB,CAAC;AAsDtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,qFAAgC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HtmlHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface PopoverProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A Popover can be used to display some content on top of another.
|
|
7
|
+
*
|
|
8
|
+
* Accepts {@link PopoverProps}.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { Button, List, ListItem, ListItemText, Popover, PopoverBody, PopoverTrigger } from '@youversion/design-system-components';
|
|
13
|
+
*
|
|
14
|
+
* function MyComponent() {
|
|
15
|
+
* return (
|
|
16
|
+
* <Popover>
|
|
17
|
+
* <PopoverTrigger onToggle={handleToggle}>
|
|
18
|
+
* <Button>Toggle</Button>
|
|
19
|
+
* </PopoverTrigger>
|
|
20
|
+
* <PopoverBody
|
|
21
|
+
* isOpen={isOpen}
|
|
22
|
+
* onClose={handleClose}
|
|
23
|
+
* >
|
|
24
|
+
* <List>
|
|
25
|
+
* <ListItem divider={true} onClick={handleListItemClick}>
|
|
26
|
+
* <ListItemText>First Item</ListItemText>
|
|
27
|
+
* </ListItem>
|
|
28
|
+
* </List>
|
|
29
|
+
* </PopoverBody>
|
|
30
|
+
* </Popover>
|
|
31
|
+
* )
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const Popover: ({ children, className, ...rest }: PopoverProps) => JSX.Element;
|
|
36
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,kBAAkB,CAAC,cAAc,CAAC;IACtE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,OAAO,qCAAsC,YAAY,gBAMrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface PopoverAlign {
|
|
3
|
+
horizontal: 'start' | 'center' | 'end';
|
|
4
|
+
vertical: 'top' | 'bottom';
|
|
5
|
+
}
|
|
6
|
+
export interface PopoverBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
align?: PopoverAlign;
|
|
8
|
+
/** Focus on first focusable element in scope. Defaults to `true`. */
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/** Allows the Popover to be closed by clicking outside of it or pressing Esc key. Defaults to `false`. */
|
|
12
|
+
isDismissible?: boolean;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A PopoverBody is used to render content inside a Popover.
|
|
18
|
+
*
|
|
19
|
+
* Accepts {@link PopoverBodyProps}.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* import { Button, List, ListItem, ListItemText, Popover, PopoverBody, PopoverTrigger } from '@youversion/design-system-components';
|
|
24
|
+
*
|
|
25
|
+
* function MyComponent() {
|
|
26
|
+
* return (
|
|
27
|
+
* <Popover>
|
|
28
|
+
* <PopoverTrigger onToggle={handleToggle}>
|
|
29
|
+
* <Button>Toggle</Button>
|
|
30
|
+
* </PopoverTrigger>
|
|
31
|
+
* <PopoverBody
|
|
32
|
+
* isOpen={isOpen}
|
|
33
|
+
* onClose={handleClose}
|
|
34
|
+
* >
|
|
35
|
+
* <List>
|
|
36
|
+
* <ListItem divider={true} onClick={handleListItemClick}>
|
|
37
|
+
* <ListItemText>First Item</ListItemText>
|
|
38
|
+
* </ListItem>
|
|
39
|
+
* </List>
|
|
40
|
+
* </PopoverBody>
|
|
41
|
+
* </Popover>
|
|
42
|
+
* )
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const PopoverBody: ({ align, autoFocus, children, className, isDismissible, isOpen, onClose, ...rest }: PopoverBodyProps) => JSX.Element;
|
|
47
|
+
//# sourceMappingURL=PopoverBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopoverBody.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0GAA0G;IAC1G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,WAAW,uFASrB,gBAAgB,gBAiBlB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PopoverAlign, PopoverBodyProps } from './PopoverBody';
|
|
2
|
+
export interface PopoverBodyContentsProps extends Omit<PopoverBodyProps, 'autoFocus' | 'isOpen'> {
|
|
3
|
+
align: PopoverAlign;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The **PopoverBodyContents** component is an internal only component that is used to handle internal contents of
|
|
7
|
+
* PopoverBody.tsx.
|
|
8
|
+
*
|
|
9
|
+
* Accepts {@link PopoverBodyContentsProps}.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <PopoverBodyWrapper open={isOpen}>
|
|
14
|
+
* <FocusTrap autoFocus={autoFocus}>
|
|
15
|
+
* <PopoverBodyContents
|
|
16
|
+
* align={align}
|
|
17
|
+
* className={className}
|
|
18
|
+
* isDismissible={isDismissible}
|
|
19
|
+
* onClose={onClose}
|
|
20
|
+
* {...rest}
|
|
21
|
+
* >
|
|
22
|
+
* {children}
|
|
23
|
+
* </PopoverBodyContents>
|
|
24
|
+
* </FocusTrap>
|
|
25
|
+
* </PopoverBodyWrapper>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const PopoverBodyContents: ({ align, children, className, isDismissible, onClose, ...rest }: PopoverBodyContentsProps) => JSX.Element;
|
|
29
|
+
//# sourceMappingURL=PopoverBodyContents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopoverBodyContents.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBodyContents.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG/D,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,QAAQ,CAAC;IAC9F,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,oEAO7B,wBAAwB,gBAiF1B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface PopoverBodyWrapperProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
open: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The **PopoverBodyWrapper** is and internal only component to be used only inside PopoverBody.tsx and is
|
|
7
|
+
* used to control rendering of its children.
|
|
8
|
+
*
|
|
9
|
+
* Accepts {@link PopoverBodyWrapperProps}.
|
|
10
|
+
*
|
|
11
|
+
* @returns A React component that renders its children if the open prop is true.
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <PopoverBodyWrapper open={isOpen}>
|
|
15
|
+
* <FocusTrap autoFocus={autoFocus}>
|
|
16
|
+
* <PopoverBodyContents
|
|
17
|
+
* align={align}
|
|
18
|
+
* className={className}
|
|
19
|
+
* isDismissible={isDismissible}
|
|
20
|
+
* onClose={onClose}
|
|
21
|
+
* {...rest}
|
|
22
|
+
* >
|
|
23
|
+
* {children}
|
|
24
|
+
* </PopoverBodyContents>
|
|
25
|
+
* </FocusTrap>
|
|
26
|
+
* </PopoverBodyWrapper>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const PopoverBodyWrapper: ({ open, children }: PopoverBodyWrapperProps) => JSX.Element;
|
|
30
|
+
//# sourceMappingURL=PopoverBodyWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopoverBodyWrapper.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBodyWrapper.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,kBAAkB,uBAAwB,uBAAuB,gBAE7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PopoverTriggerProps {
|
|
2
|
+
children: React.ReactElement;
|
|
3
|
+
/** Disable the PopoverTrigger and pass that disable status down to the child. */
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** A function to toggle the popover state. */
|
|
6
|
+
onToggle: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PopoverTrigger: ({ onToggle, children, disabled }: PopoverTriggerProps) => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=PopoverTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.d.ts","sourceRoot":"","sources":["../../../src/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,qCAAsC,mBAAmB,gBAQnF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PopoverTrigger/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './Box';
|
|
2
|
+
export * from './Breadcrumb';
|
|
2
3
|
export * from './Button';
|
|
4
|
+
export * from './FocusTrap';
|
|
3
5
|
export * from './IconButton';
|
|
4
6
|
export * from './IconLinkButton';
|
|
5
7
|
export * from './Input';
|
|
@@ -7,5 +9,8 @@ export * from './LinkButton';
|
|
|
7
9
|
export * from './List';
|
|
8
10
|
export * from './ListItem';
|
|
9
11
|
export * from './ListItemText';
|
|
12
|
+
export * from './Popover';
|
|
13
|
+
export * from './PopoverBody';
|
|
14
|
+
export * from './PopoverTrigger';
|
|
10
15
|
export * from './Tooltip';
|
|
11
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|