@frontile/overlays 0.17.0-alpha.5 → 0.17.0-alpha.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/declarations/components/backdrop.d.ts +40 -0
- package/declarations/components/backdrop.d.ts.map +1 -0
- package/declarations/components/drawer.d.ts +18 -5
- package/declarations/components/drawer.d.ts.map +1 -1
- package/declarations/components/modal.d.ts +19 -5
- package/declarations/components/modal.d.ts.map +1 -1
- package/declarations/components/overlay.d.ts +131 -121
- package/declarations/components/overlay.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +136 -0
- package/declarations/components/popover.d.ts.map +1 -0
- package/declarations/index.d.ts +1 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +2 -3
- package/declarations/template-registry.d.ts.map +1 -1
- package/dist/_app_/components/backdrop.js +1 -0
- package/dist/_app_/components/popover.js +1 -0
- package/dist/components/backdrop.js +42 -0
- package/dist/components/backdrop.js.map +1 -0
- package/dist/components/drawer.js +15 -4
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/modal.js +14 -2
- package/dist/components/modal.js.map +1 -1
- package/dist/components/overlay.js +90 -64
- package/dist/components/overlay.js.map +1 -1
- package/dist/components/popover.js +121 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +10 -6
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { CssTransitionSignature } from 'ember-css-transitions/modifiers/css-transition';
|
|
3
|
+
interface BackdropSignature {
|
|
4
|
+
Args: {
|
|
5
|
+
/**
|
|
6
|
+
* @defaultValue 'faded'
|
|
7
|
+
*/
|
|
8
|
+
type?: 'none' | 'transparent' | 'faded' | 'blur';
|
|
9
|
+
class?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
inPlace?: boolean;
|
|
14
|
+
transition?: CssTransitionSignature['Args']['Named'];
|
|
15
|
+
};
|
|
16
|
+
Element: HTMLDivElement;
|
|
17
|
+
Blocks: {
|
|
18
|
+
default: [];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare class Backdrop extends Component<BackdropSignature> {
|
|
22
|
+
get classNames(): string;
|
|
23
|
+
get transition(): {
|
|
24
|
+
didTransitionIn?: (() => void) | undefined;
|
|
25
|
+
didTransitionOut?: (() => void) | undefined;
|
|
26
|
+
enterClass?: string | undefined;
|
|
27
|
+
enterActiveClass?: string | undefined;
|
|
28
|
+
enterToClass?: string | undefined;
|
|
29
|
+
isEnabled?: boolean | undefined;
|
|
30
|
+
leaveClass?: string | undefined;
|
|
31
|
+
leaveActiveClass?: string | undefined;
|
|
32
|
+
leaveToClass?: string | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
parentSelector?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
get isVisiable(): boolean;
|
|
37
|
+
}
|
|
38
|
+
export { Backdrop, type BackdropSignature };
|
|
39
|
+
export default Backdrop;
|
|
40
|
+
//# sourceMappingURL=backdrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../src/components/backdrop.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAG7F,UAAU,iBAAiB;IACzB,IAAI,EAAE;QACJ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;QACjD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB,UAAU,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;KACtD,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,cAAM,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACjD,IAAI,UAAU,WAOb;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;IAED,IAAI,UAAU,YAEb;CAeF;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { type
|
|
2
|
+
import { type OverlaySignature } from './overlay';
|
|
3
3
|
import DrawerBody from './drawer/body';
|
|
4
4
|
import DrawerFooter from './drawer/footer';
|
|
5
5
|
import DrawerHeader from './drawer/header';
|
|
6
6
|
import { CloseButton } from '@frontile/buttons';
|
|
7
7
|
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface DrawerArgs extends
|
|
8
|
+
export interface DrawerArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | 'destinationElementId' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'disableFocusTrap' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition'> {
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The transition to be used in the Drawer.
|
|
11
11
|
*
|
|
12
|
-
* @defaultValue 'overlay-transition--slide-from-[placement]'
|
|
12
|
+
* @defaultValue {name: 'overlay-transition--slide-from-[placement]'}
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
transition?: OverlaySignature['Args']['transition'];
|
|
15
15
|
/**
|
|
16
16
|
* If set to false, the close button will not be displayed,
|
|
17
17
|
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
@@ -71,5 +71,18 @@ export default class Drawer extends Component<DrawerSignature> {
|
|
|
71
71
|
body: string;
|
|
72
72
|
footer: string;
|
|
73
73
|
};
|
|
74
|
+
get transition(): {
|
|
75
|
+
didTransitionIn?: (() => void) | undefined;
|
|
76
|
+
didTransitionOut?: (() => void) | undefined;
|
|
77
|
+
enterClass?: string | undefined;
|
|
78
|
+
enterActiveClass?: string | undefined;
|
|
79
|
+
enterToClass?: string | undefined;
|
|
80
|
+
isEnabled?: boolean | undefined;
|
|
81
|
+
leaveClass?: string | undefined;
|
|
82
|
+
leaveActiveClass?: string | undefined;
|
|
83
|
+
leaveToClass?: string | undefined;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
parentSelector?: string | undefined;
|
|
86
|
+
};
|
|
74
87
|
}
|
|
75
88
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,gBAAgB,CAAC,MAAM,CAAC,EACtB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,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e,IAAI,OAAO,CAI7B;IAED,IAAI,SAAS,wCAEZ;IAED,IAAI,OAAO;;;;;;MAeV;IACD,IAAI,UAAU;;;;;;;;;;;;MAUb;CAoCF"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { type
|
|
2
|
+
import { type OverlaySignature } from './overlay';
|
|
3
3
|
import ModalFooter from './modal/footer';
|
|
4
4
|
import ModalBody from './modal/body';
|
|
5
5
|
import ModalHeader from './modal/header';
|
|
6
6
|
import { CloseButton } from '@frontile/buttons';
|
|
7
7
|
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface ModalArgs extends
|
|
8
|
+
export interface ModalArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | 'destinationElementId' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'disableFocusTrap' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition'> {
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
11
|
-
*
|
|
10
|
+
* The transition to be used in the Modal.
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue {name: 'overlay-transition--zoom'}
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
transition?: OverlaySignature['Args']['transition'];
|
|
14
15
|
/**
|
|
15
16
|
* If set to false, the close button will not be displayed,
|
|
16
17
|
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
@@ -69,5 +70,18 @@ export default class Modal extends Component<ModalSignature> {
|
|
|
69
70
|
body: string;
|
|
70
71
|
footer: string;
|
|
71
72
|
};
|
|
73
|
+
get transition(): {
|
|
74
|
+
didTransitionIn?: (() => void) | undefined;
|
|
75
|
+
didTransitionOut?: (() => void) | undefined;
|
|
76
|
+
enterClass?: string | undefined;
|
|
77
|
+
enterActiveClass?: string | undefined;
|
|
78
|
+
enterToClass?: string | undefined;
|
|
79
|
+
isEnabled?: boolean | undefined;
|
|
80
|
+
leaveClass?: string | undefined;
|
|
81
|
+
leaveActiveClass?: string | undefined;
|
|
82
|
+
leaveToClass?: string | undefined;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
parentSelector?: string | undefined;
|
|
85
|
+
};
|
|
72
86
|
}
|
|
73
87
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/components/modal.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/components/modal.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,SACf,SAAQ,IAAI,CACV,gBAAgB,CAAC,MAAM,CAAC,EACtB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,oBAAoB,CACvB;IACD;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;IAEpD;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEnD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,GACvD,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBAC7C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,cAAc,CAAC,GACvD,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBAC7C,IAAI,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;gBAC/C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBACnD,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1D,QAAQ,SAA6B;IAErC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,eAAe,IAAI,OAAO,CAI7B;IAED,IAAI,IAAI,8CAEP;IAED,IAAI,OAAO;;;;;;MAeV;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;CAoCF"}
|
|
@@ -1,117 +1,113 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
+
import { type BackdropSignature } from './backdrop';
|
|
2
3
|
import type { ModifierLike } from '@glint/template';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
4
|
+
import type { CssTransitionSignature } from 'ember-css-transitions/modifiers/css-transition';
|
|
5
|
+
interface OverlaySignature {
|
|
6
|
+
Args: {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to render in place or in the specified/default destination
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
renderInPlace?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The destination where the overlay will be inserted, defaults to
|
|
15
|
+
* `document.body`
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue undefined
|
|
18
|
+
*/
|
|
19
|
+
destinationElementId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Duration of the animation
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue 200
|
|
24
|
+
*/
|
|
25
|
+
transitionDuration?: number;
|
|
26
|
+
backdrop?: BackdropSignature['Args']['type'];
|
|
27
|
+
backdropTransition?: BackdropSignature['Args']['transition'];
|
|
28
|
+
/**
|
|
29
|
+
* Disable css transitions
|
|
30
|
+
*
|
|
31
|
+
* @defaultValue false
|
|
32
|
+
*/
|
|
33
|
+
disableTransitions?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the focus trap is disabled or not
|
|
36
|
+
*
|
|
37
|
+
* @defaultValue false
|
|
38
|
+
*/
|
|
39
|
+
disableFocusTrap?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Focus trap options
|
|
42
|
+
*
|
|
43
|
+
* @defaultValue { allowOutsideClick: true }
|
|
44
|
+
*/
|
|
45
|
+
focusTrapOptions?: unknown;
|
|
46
|
+
/**
|
|
47
|
+
* Whether it is open or not
|
|
48
|
+
*/
|
|
49
|
+
isOpen: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* A function that will be called when closed
|
|
52
|
+
*/
|
|
53
|
+
onClose?: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* A function that will be called when closing is finished executing, this
|
|
56
|
+
* includes waiting for animations/transitions to finish.
|
|
57
|
+
*/
|
|
58
|
+
didClose?: () => void;
|
|
59
|
+
/**
|
|
60
|
+
* A function that will be called when opened
|
|
61
|
+
*/
|
|
62
|
+
onOpen?: () => void;
|
|
63
|
+
/**
|
|
64
|
+
* Whether to close when the area outside (the backdrop) is clicked
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue true
|
|
67
|
+
*/
|
|
68
|
+
closeOnOutsideClick?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether to close when the overlay element is clicked, used for modal and drawer components.
|
|
71
|
+
*
|
|
72
|
+
* @defaultValue false
|
|
73
|
+
*/
|
|
74
|
+
closeOnOverlayElementClick?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to close when the escape key is pressed
|
|
77
|
+
*
|
|
78
|
+
* @defaultValue true
|
|
79
|
+
*/
|
|
80
|
+
closeOnEscapeKey?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Transition options
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue {name:'overlay-transition--fade'}
|
|
85
|
+
*/
|
|
86
|
+
transition?: CssTransitionSignature['Args']['Named'];
|
|
87
|
+
disableFlexContent?: boolean;
|
|
88
|
+
customContentModifier?: ModifierLike<{
|
|
89
|
+
Element: HTMLElement;
|
|
90
|
+
}>;
|
|
91
|
+
class?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @defaultValue true
|
|
94
|
+
*/
|
|
95
|
+
blockScroll?: boolean;
|
|
96
|
+
};
|
|
96
97
|
Element: HTMLDivElement;
|
|
97
98
|
Blocks: {
|
|
98
99
|
default: [];
|
|
99
100
|
};
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
+
declare class Overlay extends Component<OverlaySignature> {
|
|
102
103
|
keepOpen: boolean;
|
|
103
|
-
wrapperElement: HTMLElement | undefined;
|
|
104
|
-
backdropElement: HTMLElement | undefined;
|
|
105
104
|
contentElement: HTMLElement | undefined;
|
|
105
|
+
focusedElement: Element | null | undefined;
|
|
106
106
|
mouseDownContentElement: EventTarget | null;
|
|
107
107
|
get destinationElement(): HTMLElement | null;
|
|
108
|
-
get isVisible(): boolean;
|
|
109
|
-
get isBackdropVisible(): boolean;
|
|
110
|
-
get isAnimationEnabled(): boolean;
|
|
111
|
-
get focusTrapOptions(): unknown;
|
|
112
|
-
handleOverlayClick(e: MouseEvent): void;
|
|
113
|
-
handleContentClick(event: MouseEvent): void;
|
|
114
108
|
handleClose(): void;
|
|
109
|
+
handleContentClick(event: MouseEvent): void;
|
|
110
|
+
handleOutsideClick(e: Event): void;
|
|
115
111
|
handleContentMouseDown(event: MouseEvent): void;
|
|
116
112
|
handleKeyDown(event: KeyboardEvent): void;
|
|
117
113
|
setupContent: import("ember-modifier").FunctionBasedModifier<{
|
|
@@ -121,25 +117,11 @@ export default class Overlay extends Component<OverlaySignature> {
|
|
|
121
117
|
};
|
|
122
118
|
Element: HTMLDivElement;
|
|
123
119
|
}>;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
Element: HTMLDivElement;
|
|
130
|
-
}>;
|
|
131
|
-
setupWrapper: import("ember-modifier").FunctionBasedModifier<{
|
|
132
|
-
Args: {
|
|
133
|
-
Positional: unknown[];
|
|
134
|
-
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
135
|
-
};
|
|
136
|
-
Element: HTMLDivElement;
|
|
137
|
-
}>;
|
|
138
|
-
get classes(): {
|
|
139
|
-
base: string;
|
|
140
|
-
backdrop: string;
|
|
141
|
-
content: string;
|
|
142
|
-
};
|
|
120
|
+
get isVisible(): boolean;
|
|
121
|
+
get backdrop(): BackdropSignature['Args']['type'];
|
|
122
|
+
get isAnimationEnabled(): boolean;
|
|
123
|
+
get focusTrapOptions(): unknown;
|
|
124
|
+
get classes(): string;
|
|
143
125
|
get customContentModifier(): ModifierLike<{
|
|
144
126
|
Element: HTMLElement;
|
|
145
127
|
}> | import("ember-modifier").FunctionBasedModifier<{
|
|
@@ -149,5 +131,33 @@ export default class Overlay extends Component<OverlaySignature> {
|
|
|
149
131
|
};
|
|
150
132
|
Element: Element;
|
|
151
133
|
}>;
|
|
134
|
+
get backdropTransition(): {
|
|
135
|
+
didTransitionIn?: (() => void) | undefined;
|
|
136
|
+
didTransitionOut?: (() => void) | undefined;
|
|
137
|
+
enterClass?: string | undefined;
|
|
138
|
+
enterActiveClass?: string | undefined;
|
|
139
|
+
enterToClass?: string | undefined;
|
|
140
|
+
isEnabled?: boolean | undefined;
|
|
141
|
+
leaveClass?: string | undefined;
|
|
142
|
+
leaveActiveClass?: string | undefined;
|
|
143
|
+
leaveToClass?: string | undefined;
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
parentSelector?: string | undefined;
|
|
146
|
+
};
|
|
147
|
+
get transition(): {
|
|
148
|
+
didTransitionIn?: (() => void) | undefined;
|
|
149
|
+
didTransitionOut?: (() => void) | undefined;
|
|
150
|
+
enterClass?: string | undefined;
|
|
151
|
+
enterActiveClass?: string | undefined;
|
|
152
|
+
enterToClass?: string | undefined;
|
|
153
|
+
isEnabled?: boolean | undefined;
|
|
154
|
+
leaveClass?: string | undefined;
|
|
155
|
+
leaveActiveClass?: string | undefined;
|
|
156
|
+
leaveToClass?: string | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
158
|
+
parentSelector?: string | undefined;
|
|
159
|
+
};
|
|
152
160
|
}
|
|
161
|
+
export { Overlay, type OverlaySignature };
|
|
162
|
+
export default Overlay;
|
|
153
163
|
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAY3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAY3C,OAAO,EAAY,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,s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AAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,cAAM,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACtC,QAAQ,UAAS;IAE1B,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IACxC,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,uBAAuB,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,IAAI,kBAAkB,IAAI,WAAW,GAAG,IAAI,CAY3C;IAED,WAAW,IAAI,IAAI;IAMX,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAY3C,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAY1C,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAO/C,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAQzC,YAAY;;;;;;OA8CT;IAEH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,QAAQ,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAKhD;IAED,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED,IAAI,gBAAgB,IAAI,OAAO,CAM9B;IAED,IAAI,OAAO,WAQV;IAED,IAAI,qBAAqB;;;;;;;;OAMxB;IAED,IAAI,kBAAkB;;;;;;;;;;;;MAMrB;IAED,IAAI,UAAU;;;;;;;;;;;;MAWb;CAuCF;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { type OverlaySignature } from './overlay';
|
|
3
|
+
import type { ModifierLike } from '@glint/template';
|
|
4
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
5
|
+
import type { Signature as VelcroSignature } from 'ember-velcro/modifiers/velcro';
|
|
6
|
+
interface PopoverSignature {
|
|
7
|
+
Args: {
|
|
8
|
+
/**
|
|
9
|
+
* Placement of the menu when open
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 'bottom-start'
|
|
12
|
+
*/
|
|
13
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
14
|
+
flipOptions?: VelcroSignature['Args']['Named']['flipOptions'];
|
|
15
|
+
middleware?: VelcroSignature['Args']['Named']['middleware'];
|
|
16
|
+
shiftOptions?: VelcroSignature['Args']['Named']['shiftOptions'];
|
|
17
|
+
/**
|
|
18
|
+
* @defaultValue 5
|
|
19
|
+
*/
|
|
20
|
+
offsetOptions?: VelcroSignature['Args']['Named']['offsetOptions'];
|
|
21
|
+
/**
|
|
22
|
+
* @defaultValue 'absolute'
|
|
23
|
+
*/
|
|
24
|
+
strategy?: VelcroSignature['Args']['Named']['strategy'];
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
};
|
|
27
|
+
Element: HTMLUListElement;
|
|
28
|
+
Blocks: {
|
|
29
|
+
default: [
|
|
30
|
+
{
|
|
31
|
+
anchor: ModifierLike<{
|
|
32
|
+
Element: HTMLElement;
|
|
33
|
+
}>;
|
|
34
|
+
isOpen: boolean;
|
|
35
|
+
toggle: () => void;
|
|
36
|
+
open: () => void;
|
|
37
|
+
close: () => void;
|
|
38
|
+
trigger: ModifierLike<{
|
|
39
|
+
Element: HTMLElement;
|
|
40
|
+
}>;
|
|
41
|
+
Content: WithBoundArgs<typeof Content, 'loop' | 'isOpen' | 'id' | 'toggle' | 'blockScroll' | 'backdrop'>;
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
declare class Popover extends Component<PopoverSignature> {
|
|
47
|
+
triggerEl?: HTMLElement;
|
|
48
|
+
menuId: string;
|
|
49
|
+
isOpen: boolean;
|
|
50
|
+
toggle: () => void;
|
|
51
|
+
open: () => void;
|
|
52
|
+
close: () => void;
|
|
53
|
+
trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
54
|
+
Args: {
|
|
55
|
+
Positional: unknown[];
|
|
56
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
57
|
+
};
|
|
58
|
+
Element: HTMLElement;
|
|
59
|
+
}>;
|
|
60
|
+
updateAriaExtanded: import("ember-modifier").FunctionBasedModifier<{
|
|
61
|
+
Args: {
|
|
62
|
+
Positional: unknown[];
|
|
63
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
64
|
+
};
|
|
65
|
+
Element: HTMLElement;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
68
|
+
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | 'destinationElementId' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'blockScroll'> {
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
loop: ModifierLike<{
|
|
73
|
+
Element: HTMLElement;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
isOpen: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
toggle: () => void;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
class?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The transition to be used in the Modal.
|
|
90
|
+
*
|
|
91
|
+
* @defaultValue {name: 'overlay-transition--scale'}
|
|
92
|
+
*/
|
|
93
|
+
transition?: OverlaySignature['Args']['transition'];
|
|
94
|
+
/**
|
|
95
|
+
* @defaultValue true
|
|
96
|
+
*/
|
|
97
|
+
disableFocusTrap?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* The size of the content.
|
|
100
|
+
*
|
|
101
|
+
* @defaultValue 'md'
|
|
102
|
+
*/
|
|
103
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
104
|
+
}
|
|
105
|
+
interface ContentSignature {
|
|
106
|
+
Args: ContentArgs;
|
|
107
|
+
Element: HTMLDivElement;
|
|
108
|
+
Blocks: {
|
|
109
|
+
default: [];
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
declare class Content extends Component<ContentSignature> {
|
|
113
|
+
get loop(): ModifierLike<{
|
|
114
|
+
Element: HTMLElement;
|
|
115
|
+
}>;
|
|
116
|
+
get classNames(): string;
|
|
117
|
+
get backdrop(): OverlaySignature['Args']['backdrop'];
|
|
118
|
+
get transition(): {
|
|
119
|
+
didTransitionIn?: (() => void) | undefined;
|
|
120
|
+
didTransitionOut?: (() => void) | undefined;
|
|
121
|
+
enterClass?: string | undefined;
|
|
122
|
+
enterActiveClass?: string | undefined;
|
|
123
|
+
enterToClass?: string | undefined;
|
|
124
|
+
isEnabled?: boolean | undefined;
|
|
125
|
+
leaveClass?: string | undefined;
|
|
126
|
+
leaveActiveClass?: string | undefined;
|
|
127
|
+
leaveToClass?: string | undefined;
|
|
128
|
+
name?: string | undefined;
|
|
129
|
+
parentSelector?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
get blockScroll(): boolean;
|
|
132
|
+
get disableFocusTrap(): boolean;
|
|
133
|
+
}
|
|
134
|
+
export { Popover, type PopoverSignature, type ContentSignature };
|
|
135
|
+
export default Popover;
|
|
136
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAQ3D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,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,cAAM,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC/C,IAAI,IAAI;;OAMP;IAED,IAAI,UAAU,WAGb;IAED,IAAI,QAAQ,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAEnD;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;IAED,IAAI,WAAW,YAKd;IAED,IAAI,gBAAgB,YAKnB;CAiBF;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,CAAC;AACjE,eAAe,OAAO,CAAC"}
|
package/declarations/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type Overlay from './
|
|
2
|
-
import type Drawer from './components/drawer';
|
|
3
|
-
import type Modal from './components/modal';
|
|
1
|
+
import type { Overlay, Modal, Drawer, Popover } from './index';
|
|
4
2
|
export default interface Registry {
|
|
5
3
|
Overlay: typeof Overlay;
|
|
6
4
|
Drawer: typeof Drawer;
|
|
7
5
|
Modal: typeof Modal;
|
|
6
|
+
Popover: typeof Popover;
|
|
8
7
|
}
|
|
9
8
|
//# sourceMappingURL=template-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,CAAC,OAAO,WAAW,QAAQ;IAC/B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/backdrop";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/popover";
|