@frontile/overlays 0.17.0-alpha.9 → 0.17.0-beta.2
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/-private/dom.d.ts +3 -6
- package/declarations/-private/dom.d.ts.map +1 -1
- package/declarations/components/backdrop.d.ts +12 -12
- package/declarations/components/backdrop.d.ts.map +1 -1
- package/declarations/components/drawer/body.d.ts +4 -0
- package/declarations/components/drawer/body.d.ts.map +1 -1
- package/declarations/components/drawer/footer.d.ts +4 -0
- package/declarations/components/drawer/footer.d.ts.map +1 -1
- package/declarations/components/drawer/header.d.ts +4 -0
- package/declarations/components/drawer/header.d.ts.map +1 -1
- package/declarations/components/drawer.d.ts +61 -23
- package/declarations/components/drawer.d.ts.map +1 -1
- package/declarations/components/modal/body.d.ts +4 -0
- package/declarations/components/modal/body.d.ts.map +1 -1
- package/declarations/components/modal/footer.d.ts +4 -0
- package/declarations/components/modal/footer.d.ts.map +1 -1
- package/declarations/components/modal/header.d.ts +4 -0
- package/declarations/components/modal/header.d.ts.map +1 -1
- package/declarations/components/modal.d.ts +60 -22
- package/declarations/components/modal.d.ts.map +1 -1
- package/declarations/components/overlay.d.ts +108 -116
- package/declarations/components/overlay.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +28 -16
- package/declarations/components/popover.d.ts.map +1 -1
- package/declarations/components/portal-target.d.ts +16 -0
- package/declarations/components/portal-target.d.ts.map +1 -0
- package/declarations/components/portal.d.ts +39 -0
- package/declarations/components/portal.d.ts.map +1 -0
- package/declarations/index.d.ts +2 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/portal-Es7o21X5.d.ts +5 -0
- package/declarations/portal-Es7o21X5.d.ts.map +1 -0
- package/dist/_app_/components/portal-target.js +1 -0
- package/dist/_app_/components/portal.js +1 -0
- package/dist/components/backdrop.js +13 -11
- package/dist/components/backdrop.js.map +1 -1
- package/dist/components/drawer/body.js +6 -2
- package/dist/components/drawer/body.js.map +1 -1
- package/dist/components/drawer/footer.js +6 -2
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header.js +6 -2
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer.js +8 -21
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/modal/body.js +6 -2
- package/dist/components/modal/body.js.map +1 -1
- package/dist/components/modal/footer.js +6 -2
- package/dist/components/modal/footer.js.map +1 -1
- package/dist/components/modal/header.js +6 -2
- package/dist/components/modal/header.js.map +1 -1
- package/dist/components/modal.js +8 -21
- package/dist/components/modal.js.map +1 -1
- package/dist/components/overlay.js +53 -117
- package/dist/components/overlay.js.map +1 -1
- package/dist/components/popover.js +83 -31
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal-target.js +10 -0
- package/dist/components/portal-target.js.map +1 -0
- package/dist/components/portal.js +10 -0
- package/dist/components/portal.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/portal-D1N7TxUb.js +167 -0
- package/dist/portal-D1N7TxUb.js.map +1 -0
- package/dist/portal-Es7o21X5.js +169 -0
- package/dist/portal-Es7o21X5.js.map +1 -0
- package/package.json +24 -21
- package/declarations/components/drawer/index.d.ts +0 -71
- package/declarations/components/drawer/index.d.ts.map +0 -1
- package/declarations/components/modal/index.d.ts +0 -68
- package/declarations/components/modal/index.d.ts.map +0 -1
|
@@ -1,99 +1,92 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { type BackdropSignature } from './backdrop';
|
|
3
|
+
import { type PortalSignature } from './portal';
|
|
3
4
|
import type { ModifierLike } from '@glint/template';
|
|
4
5
|
import type { CssTransitionSignature } from 'ember-css-transitions/modifiers/css-transition';
|
|
6
|
+
interface Args extends Pick<PortalSignature['Args'], 'renderInPlace' | 'target'> {
|
|
7
|
+
/**
|
|
8
|
+
* Duration of the animation
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 200
|
|
11
|
+
*/
|
|
12
|
+
transitionDuration?: number;
|
|
13
|
+
backdrop?: BackdropSignature['Args']['type'];
|
|
14
|
+
backdropTransition?: BackdropSignature['Args']['transition'];
|
|
15
|
+
/**
|
|
16
|
+
* Disable css transitions
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue false
|
|
19
|
+
*/
|
|
20
|
+
disableTransitions?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the focus trap is disabled or not
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue false
|
|
25
|
+
*/
|
|
26
|
+
disableFocusTrap?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Focus trap options
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue { clickOutsideDeactivates: true, allowOutsideClick: true }
|
|
31
|
+
*/
|
|
32
|
+
focusTrapOptions?: unknown;
|
|
33
|
+
/**
|
|
34
|
+
* Whether it is open or not
|
|
35
|
+
*/
|
|
36
|
+
isOpen: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A function that will be called when closed
|
|
39
|
+
*/
|
|
40
|
+
onClose?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* A function that will be called when closing is finished executing, this
|
|
43
|
+
* includes waiting for animations/transitions to finish.
|
|
44
|
+
*/
|
|
45
|
+
didClose?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* A function that will be called when opened
|
|
48
|
+
*/
|
|
49
|
+
onOpen?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to close when the area outside (the backdrop) is clicked
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue true
|
|
54
|
+
*/
|
|
55
|
+
closeOnOutsideClick?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to close when the overlay element is clicked, used for modal and drawer components.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue false
|
|
60
|
+
*/
|
|
61
|
+
closeOnOverlayElementClick?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to close when the escape key is pressed
|
|
64
|
+
*
|
|
65
|
+
* @defaultValue true
|
|
66
|
+
*/
|
|
67
|
+
closeOnEscapeKey?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Transition options
|
|
70
|
+
*
|
|
71
|
+
* @defaultValue {name:'overlay-transition--fade'}
|
|
72
|
+
*/
|
|
73
|
+
transition?: CssTransitionSignature['Args']['Named'];
|
|
74
|
+
disableFlexContent?: boolean;
|
|
75
|
+
customContentModifier?: ModifierLike<{
|
|
76
|
+
Element: HTMLElement;
|
|
77
|
+
}>;
|
|
78
|
+
class?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @defaultValue false
|
|
81
|
+
*/
|
|
82
|
+
preventFocusRestore?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @defaultValue true
|
|
85
|
+
*/
|
|
86
|
+
blockScroll?: boolean;
|
|
87
|
+
}
|
|
5
88
|
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 { clickOutsideDeactivates: true, 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
|
-
};
|
|
89
|
+
Args: Args;
|
|
97
90
|
Element: HTMLDivElement;
|
|
98
91
|
Blocks: {
|
|
99
92
|
default: [];
|
|
@@ -104,7 +97,6 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
104
97
|
contentElement: HTMLElement | undefined;
|
|
105
98
|
focusedElement: Element | null | undefined;
|
|
106
99
|
mouseDownContentElement: EventTarget | null;
|
|
107
|
-
get destinationElement(): HTMLElement | null;
|
|
108
100
|
handleClose(): void;
|
|
109
101
|
handleContentClick(event: MouseEvent): void;
|
|
110
102
|
handleOutsideClick(e: Event): void;
|
|
@@ -113,7 +105,7 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
113
105
|
setupContent: import("ember-modifier").FunctionBasedModifier<{
|
|
114
106
|
Args: {
|
|
115
107
|
Positional: unknown[];
|
|
116
|
-
Named: import("ember-modifier/-private/signature
|
|
108
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
117
109
|
};
|
|
118
110
|
Element: HTMLDivElement;
|
|
119
111
|
}>;
|
|
@@ -127,35 +119,35 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
127
119
|
}> | import("ember-modifier").FunctionBasedModifier<{
|
|
128
120
|
Args: {
|
|
129
121
|
Positional: unknown[];
|
|
130
|
-
Named: import("ember-modifier/-private/signature
|
|
122
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
131
123
|
};
|
|
132
124
|
Element: Element;
|
|
133
125
|
}>;
|
|
134
126
|
get backdropTransition(): {
|
|
135
|
-
didTransitionIn?: (
|
|
136
|
-
didTransitionOut?: (
|
|
137
|
-
enterClass?: string
|
|
138
|
-
enterActiveClass?: string
|
|
139
|
-
enterToClass?: string
|
|
140
|
-
isEnabled?: boolean
|
|
141
|
-
leaveClass?: string
|
|
142
|
-
leaveActiveClass?: string
|
|
143
|
-
leaveToClass?: string
|
|
144
|
-
name?: string
|
|
145
|
-
parentSelector?: string
|
|
127
|
+
didTransitionIn?: () => void;
|
|
128
|
+
didTransitionOut?: () => void;
|
|
129
|
+
enterClass?: string;
|
|
130
|
+
enterActiveClass?: string;
|
|
131
|
+
enterToClass?: string;
|
|
132
|
+
isEnabled?: boolean;
|
|
133
|
+
leaveClass?: string;
|
|
134
|
+
leaveActiveClass?: string;
|
|
135
|
+
leaveToClass?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
parentSelector?: string;
|
|
146
138
|
};
|
|
147
139
|
get transition(): {
|
|
148
|
-
didTransitionIn?: (
|
|
149
|
-
didTransitionOut?: (
|
|
150
|
-
enterClass?: string
|
|
151
|
-
enterActiveClass?: string
|
|
152
|
-
enterToClass?: string
|
|
153
|
-
isEnabled?: boolean
|
|
154
|
-
leaveClass?: string
|
|
155
|
-
leaveActiveClass?: string
|
|
156
|
-
leaveToClass?: string
|
|
157
|
-
name?: string
|
|
158
|
-
parentSelector?: string
|
|
140
|
+
didTransitionIn?: () => void;
|
|
141
|
+
didTransitionOut?: () => void;
|
|
142
|
+
enterClass?: string;
|
|
143
|
+
enterActiveClass?: string;
|
|
144
|
+
enterToClass?: string;
|
|
145
|
+
isEnabled?: boolean;
|
|
146
|
+
leaveClass?: string;
|
|
147
|
+
leaveActiveClass?: string;
|
|
148
|
+
leaveToClass?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
parentSelector?: string;
|
|
159
151
|
};
|
|
160
152
|
}
|
|
161
153
|
export { Overlay, type OverlaySignature };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,OAAO,EAA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,7 +43,7 @@ interface PopoverSignature {
|
|
|
43
43
|
Positional: [eventType?: 'click' | 'hover'];
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
|
-
Content: WithBoundArgs<typeof Content, 'loop' | 'isOpen' | 'id' | 'toggle' | 'blockScroll' | 'backdrop'>;
|
|
46
|
+
Content: WithBoundArgs<typeof Content, 'loop' | 'isOpen' | 'id' | 'toggle' | 'internalDidClose' | 'blockScroll' | 'backdrop'>;
|
|
47
47
|
}
|
|
48
48
|
];
|
|
49
49
|
};
|
|
@@ -52,26 +52,29 @@ declare class Popover extends Component<PopoverSignature> {
|
|
|
52
52
|
triggerEl?: HTMLElement;
|
|
53
53
|
menuId: string;
|
|
54
54
|
_isOpen: boolean;
|
|
55
|
+
isClosing: boolean;
|
|
56
|
+
preventFocusRestore: boolean;
|
|
55
57
|
get isOpen(): boolean;
|
|
56
|
-
toggle: () => void;
|
|
58
|
+
toggle: (event?: Event) => void;
|
|
57
59
|
open: () => void;
|
|
58
60
|
close: () => void;
|
|
59
61
|
trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
60
62
|
Args: {
|
|
61
63
|
Positional: [eventType?: "click" | "hover" | undefined];
|
|
62
|
-
Named: import("ember-modifier/-private/signature
|
|
64
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
63
65
|
};
|
|
64
66
|
Element: HTMLElement;
|
|
65
67
|
}>;
|
|
66
68
|
updateAriaExtanded: import("ember-modifier").FunctionBasedModifier<{
|
|
67
69
|
Args: {
|
|
68
70
|
Positional: unknown[];
|
|
69
|
-
Named: import("ember-modifier/-private/signature
|
|
71
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
70
72
|
};
|
|
71
73
|
Element: HTMLElement;
|
|
72
74
|
}>;
|
|
75
|
+
didClose: () => void;
|
|
73
76
|
}
|
|
74
|
-
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | '
|
|
77
|
+
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'blockScroll'> {
|
|
75
78
|
/**
|
|
76
79
|
* @internal
|
|
77
80
|
*/
|
|
@@ -86,10 +89,18 @@ interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClos
|
|
|
86
89
|
* @internal
|
|
87
90
|
*/
|
|
88
91
|
toggle: () => void;
|
|
92
|
+
/**
|
|
93
|
+
* @ignore
|
|
94
|
+
*/
|
|
95
|
+
internalDidClose: () => void;
|
|
89
96
|
/**
|
|
90
97
|
* @internal
|
|
91
98
|
*/
|
|
92
99
|
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
preventFocusRestore?: boolean;
|
|
93
104
|
class?: string;
|
|
94
105
|
/**
|
|
95
106
|
* The transition to be used in the Modal.
|
|
@@ -125,20 +136,21 @@ declare class Content extends Component<ContentSignature> {
|
|
|
125
136
|
get classNames(): string;
|
|
126
137
|
get backdrop(): OverlaySignature['Args']['backdrop'];
|
|
127
138
|
get transition(): {
|
|
128
|
-
didTransitionIn?: (
|
|
129
|
-
didTransitionOut?: (
|
|
130
|
-
enterClass?: string
|
|
131
|
-
enterActiveClass?: string
|
|
132
|
-
enterToClass?: string
|
|
133
|
-
isEnabled?: boolean
|
|
134
|
-
leaveClass?: string
|
|
135
|
-
leaveActiveClass?: string
|
|
136
|
-
leaveToClass?: string
|
|
137
|
-
name?: string
|
|
138
|
-
parentSelector?: string
|
|
139
|
+
didTransitionIn?: () => void;
|
|
140
|
+
didTransitionOut?: () => void;
|
|
141
|
+
enterClass?: string;
|
|
142
|
+
enterActiveClass?: string;
|
|
143
|
+
enterToClass?: string;
|
|
144
|
+
isEnabled?: boolean;
|
|
145
|
+
leaveClass?: string;
|
|
146
|
+
leaveActiveClass?: string;
|
|
147
|
+
leaveToClass?: string;
|
|
148
|
+
name?: string;
|
|
149
|
+
parentSelector?: string;
|
|
139
150
|
};
|
|
140
151
|
get blockScroll(): boolean;
|
|
141
152
|
get disableFocusTrap(): boolean;
|
|
153
|
+
didClose: () => void;
|
|
142
154
|
}
|
|
143
155
|
export { Popover, type PopoverSignature, type ContentSignature };
|
|
144
156
|
export default Popover;
|
|
@@ -1 +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;
|
|
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;AAS3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAElF,UAAU,gBAAgB;IACxB,IAAI,EAAE;QACJ;;;;WAIG;QACH,SAAS,CAAC,EACN,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;QAEf,WAAW,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC;QAC9D,UAAU,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;QAC5D,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,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sB,WAAW;OAgExC;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;IAED,QAAQ,aAQN;CAiBH;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,CAAC;AACjE,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
declare const PortalTarget: TOC<{
|
|
3
|
+
Args: {
|
|
4
|
+
/**
|
|
5
|
+
* Target name
|
|
6
|
+
*/
|
|
7
|
+
for?: string;
|
|
8
|
+
};
|
|
9
|
+
Blocks: {
|
|
10
|
+
default: [];
|
|
11
|
+
};
|
|
12
|
+
Element: HTMLElement;
|
|
13
|
+
}>;
|
|
14
|
+
export { PortalTarget };
|
|
15
|
+
export default PortalTarget;
|
|
16
|
+
//# sourceMappingURL=portal-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-target.d.ts","sourceRoot":"","sources":["../../src/components/portal-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,QAAA,MAAM,YAAY,EAAE,GAAG,CAAC;IACtB,IAAI,EAAE;QACJ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB,CAWC,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
interface PortalSignature {
|
|
3
|
+
Args: {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to render in place or in the specified/default destination
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue false
|
|
8
|
+
*/
|
|
9
|
+
renderInPlace?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The target where to render the portal.
|
|
12
|
+
* There are 3 options: 1) `Element` object, 2) element id, 3) portal target name.
|
|
13
|
+
*
|
|
14
|
+
* For element id, string must be prefixed with `#`.
|
|
15
|
+
* If no value is passee in, we will render to the closest unnamed portal target,
|
|
16
|
+
* parent portal or `document.body`.
|
|
17
|
+
*/
|
|
18
|
+
target?: string | Element;
|
|
19
|
+
/**
|
|
20
|
+
* @defaultValue true
|
|
21
|
+
*/
|
|
22
|
+
appendToParentPortal?: boolean;
|
|
23
|
+
};
|
|
24
|
+
Element: HTMLDivElement;
|
|
25
|
+
Blocks: {
|
|
26
|
+
default: [];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
declare function findParentPortal(origin: Element | null): Element | null;
|
|
30
|
+
declare class Portal extends Component<PortalSignature> {
|
|
31
|
+
id: string;
|
|
32
|
+
dom: Document | null;
|
|
33
|
+
get destinationElement(): Element | null;
|
|
34
|
+
get portalMarker(): Element | null;
|
|
35
|
+
needsTarget: (destEl: Element | null) => boolean;
|
|
36
|
+
}
|
|
37
|
+
export { Portal, type PortalSignature, findParentPortal };
|
|
38
|
+
export default Portal;
|
|
39
|
+
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/components/portal.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAiC3C,UAAU,eAAe;IACvB,IAAI,EAAE;QACJ;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAE1B;;WAEG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAehE;AA4BD,cAAM,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC7C,EAAE,SAAiB;IACnB,GAAG,kBAAgB;IAEnB,IAAI,kBAAkB,IAAI,OAAO,GAAG,IAAI,CA8CvC;IAED,IAAI,YAAY,IAAI,OAAO,GAAG,IAAI,CAOjC;IAED,WAAW,WAAY,OAAO,GAAG,IAAI,KAAG,OAAO,CAU7C;CAsDH;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAC1D,eAAe,MAAM,CAAC"}
|
package/declarations/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as Overlay } from './components/overlay';
|
|
2
2
|
export { default as Modal } from './components/modal';
|
|
3
3
|
export { default as Drawer } from './components/drawer';
|
|
4
|
+
export * from './components/portal';
|
|
5
|
+
export * from './components/portal-target';
|
|
4
6
|
export * from './components/popover';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AACxD,cAAc,sBAAsB,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,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare function getDOM(context: object): Document | null;
|
|
2
|
+
declare function getElementById(doc: Document | Element, id: string): null | Element;
|
|
3
|
+
declare function getElementByAttribute(doc: Document | Element, attribute: string, value?: string | undefined): null | Element;
|
|
4
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
5
|
+
//# sourceMappingURL=portal-Es7o21X5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-Es7o21X5.d.ts","sourceRoot":"","sources":["../src/-private/dom.ts"],"names":[],"mappings":"AAEA,iBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWvD;AAkBD,iBAAgB,cAAc,CAC5B,GAAG,EAAE,QAAQ,GAAG,OAAO,EACvB,EAAE,EAAE,MAAM,GACT,IAAI,GAAG,OAAO,CAEhB;AAED,iBAAgB,qBAAqB,CACnC,GAAG,EAAE,QAAQ,GAAG,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAM,GAAG,SAAqB,GACpC,IAAI,GAAG,OAAO,CA2BhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/portal-target";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/portal";
|
|
@@ -5,38 +5,40 @@ import { precompileTemplate } from '@ember/template-compilation';
|
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
|
|
7
7
|
var _Backdrop;
|
|
8
|
-
|
|
8
|
+
class Backdrop extends Component {
|
|
9
9
|
get classNames() {
|
|
10
10
|
const {
|
|
11
|
-
backdrop
|
|
11
|
+
backdrop
|
|
12
12
|
} = useStyles();
|
|
13
|
-
return
|
|
13
|
+
return backdrop({
|
|
14
14
|
class: this.args.class,
|
|
15
15
|
type: this.args.type,
|
|
16
16
|
inPlace: this.args.inPlace
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
get transition() {
|
|
20
|
-
let
|
|
20
|
+
let options = {
|
|
21
21
|
name: 'overlay-transition--fade'
|
|
22
22
|
};
|
|
23
23
|
if (typeof this.args.transition === 'object') {
|
|
24
24
|
return {
|
|
25
|
-
...
|
|
25
|
+
...options,
|
|
26
26
|
...this.args.transition
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return options;
|
|
30
30
|
}
|
|
31
|
-
get
|
|
31
|
+
get isVisible() {
|
|
32
32
|
return this.args.type !== 'none';
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
|
+
_Backdrop = Backdrop;
|
|
36
|
+
setComponentTemplate(precompileTemplate("\n {{#if this.isVisible}}\n <div {{cssTransition didTransitionIn=this.transition.didTransitionIn didTransitionOut=this.transition.didTransitionOut enterClass=this.transition.enterClass enterActiveClass=this.transition.enterActiveClass enterToClass=this.transition.enterToClass isEnabled=this.transition.isEnabled leaveClass=this.transition.leaveClass leaveActiveClass=this.transition.leaveActiveClass leaveToClass=this.transition.leaveToClass name=this.transition.name parentSelector=this.transition.parentSelector}} class={{this.classNames}} ...attributes>\n </div>\n {{/if}}\n ", {
|
|
37
|
+
strictMode: true,
|
|
35
38
|
scope: () => ({
|
|
36
39
|
cssTransition
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
}), _Backdrop), _Backdrop);
|
|
40
|
+
})
|
|
41
|
+
}), _Backdrop);
|
|
40
42
|
|
|
41
43
|
export { Backdrop, Backdrop as default };
|
|
42
44
|
//# sourceMappingURL=backdrop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop.js","sources":["../../src/components/backdrop.gts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"backdrop.js","sources":["../../src/components/backdrop.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { cssTransition } from 'ember-css-transitions';\nimport type { CssTransitionSignature } from 'ember-css-transitions/modifiers/css-transition';\nimport { useStyles } from '@frontile/theme';\n\ninterface BackdropSignature {\n Args: {\n /**\n * @defaultValue 'faded'\n */\n type?: 'none' | 'transparent' | 'faded' | 'blur';\n class?: string;\n /**\n * @defaultValue false\n */\n inPlace?: boolean;\n\n transition?: CssTransitionSignature['Args']['Named'];\n };\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nclass Backdrop extends Component<BackdropSignature> {\n get classNames() {\n const { backdrop } = useStyles();\n return backdrop({\n class: this.args.class,\n type: this.args.type,\n inPlace: this.args.inPlace\n });\n }\n\n get transition() {\n let options: BackdropSignature['Args']['transition'] = {\n name: 'overlay-transition--fade'\n };\n\n if (typeof this.args.transition === 'object') {\n return { ...options, ...this.args.transition };\n }\n\n return options;\n }\n\n get isVisible() {\n return this.args.type !== 'none';\n }\n\n <template>\n {{#if this.isVisible}}\n <div\n {{cssTransition\n didTransitionIn=this.transition.didTransitionIn\n didTransitionOut=this.transition.didTransitionOut\n enterClass=this.transition.enterClass\n enterActiveClass=this.transition.enterActiveClass\n enterToClass=this.transition.enterToClass\n isEnabled=this.transition.isEnabled\n leaveClass=this.transition.leaveClass\n leaveActiveClass=this.transition.leaveActiveClass\n leaveToClass=this.transition.leaveToClass\n name=this.transition.name\n parentSelector=this.transition.parentSelector\n }}\n class={{this.classNames}}\n ...attributes\n >\n </div>\n {{/if}}\n </template>\n}\n\nexport { Backdrop, type BackdropSignature };\nexport default Backdrop;\n"],"names":["Backdrop","Component","classNames","backdrop","useStyles","class","args","type","inPlace","transition","options","name","isVisible","_Backdrop","setComponentTemplate","precompileTemplate","strictMode","scope","cssTransition"],"mappings":";;;;;;;AAyBA,MAAMA,iBAAiBC,SAAU,CAAA;EAC/B,IAAIC,UAAaA,GAAA;IACf,MAAM;AAAEC,MAAAA;KAAU,GAAGC,SAAA,EAAA;AACrB,IAAA,OAAOD,QAAS,CAAA;AACdE,MAAAA,KAAA,EAAO,IAAI,CAACC,IAAI,CAACD,KAAK;AACtBE,MAAAA,IAAA,EAAM,IAAI,CAACD,IAAI,CAACC,IAAI;AACpBC,MAAAA,OAAA,EAAS,IAAI,CAACF,IAAI,CAACE;AACrB,KAAA,CAAA;AACF;EAEA,IAAIC,UAAaA,GAAA;AACf,IAAA,IAAIC,OAAmD,GAAA;AACrDC,MAAAA,IAAM,EAAA;KACR;IAEA,IAAI,OAAO,IAAI,CAACL,IAAI,CAACG,UAAU,KAAK,QAAU,EAAA;MAC5C,OAAO;AAAE,QAAA,GAAGC,OAAO;QAAE,GAAG,IAAI,CAACJ,IAAI,CAACG;OAAW;AAC/C;AAEA,IAAA,OAAOC,OAAA;AACT;EAEA,IAAIE,SAAYA,GAAA;AACd,IAAA,OAAO,IAAI,CAACN,IAAI,CAACC,IAAI,KAAK,MAAA;AAC5B;AAwBF;AAAAM,SAAA,GAhDMb;AA0BJc,oBAAA,CAAAC,kBAAA,CAqBA,slBAAA,EAAA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAL,SAAA,CAAA;;;;"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
+
import { twMerge } from '@frontile/theme';
|
|
2
3
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
4
|
import { setComponentTemplate } from '@ember/component';
|
|
4
5
|
|
|
5
6
|
var _DrawerBody;
|
|
6
7
|
class DrawerBody extends Component {}
|
|
7
8
|
_DrawerBody = DrawerBody;
|
|
8
|
-
setComponentTemplate(precompileTemplate("\n <div class={{@class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
9
|
-
strictMode: true
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
strictMode: true,
|
|
11
|
+
scope: () => ({
|
|
12
|
+
twMerge
|
|
13
|
+
})
|
|
10
14
|
}), _DrawerBody);
|
|
11
15
|
|
|
12
16
|
export { DrawerBody as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body.js","sources":["../../../src/components/drawer/body.gts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"body.js","sources":["../../../src/components/drawer/body.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { twMerge } from '@frontile/theme';\n\nexport interface DrawerBodyArgs {\n class?: string;\n /**\n * @internal\n */\n classFromParent?: string;\n}\n\nexport interface DrawerBodySignature {\n Args: DrawerBodyArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nexport default class DrawerBody extends Component<DrawerBodySignature> {\n <template>\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n </template>\n}\n"],"names":["DrawerBody","Component","_DrawerBody","setComponentTemplate","precompileTemplate","strictMode","scope","twMerge"],"mappings":";;;;;;AAmBe,MAAMA,mBAAmBC,SAAU,CAAA;AAMlDC,WAAA,GANqBF;AACnBG,oBAAA,CAAAC,kBAAA,CAIA,sGAAA,EAAA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAL,WAAA,CAAA;;;;"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
+
import { twMerge } from '@frontile/theme';
|
|
2
3
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
4
|
import { setComponentTemplate } from '@ember/component';
|
|
4
5
|
|
|
5
6
|
var _DrawerFooter;
|
|
6
7
|
class DrawerFooter extends Component {}
|
|
7
8
|
_DrawerFooter = DrawerFooter;
|
|
8
|
-
setComponentTemplate(precompileTemplate("\n <div class={{@class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
9
|
-
strictMode: true
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
strictMode: true,
|
|
11
|
+
scope: () => ({
|
|
12
|
+
twMerge
|
|
13
|
+
})
|
|
10
14
|
}), _DrawerFooter);
|
|
11
15
|
|
|
12
16
|
export { DrawerFooter as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","sources":["../../../src/components/drawer/footer.gts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"footer.js","sources":["../../../src/components/drawer/footer.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { twMerge } from '@frontile/theme';\n\nexport interface DrawerFooterArgs {\n class?: string;\n /**\n * @internal\n */\n classFromParent?: string;\n}\n\nexport interface DrawerFooterSignature {\n Args: DrawerFooterArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\n\nexport default class DrawerFooter extends Component<DrawerFooterSignature> {\n <template>\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n </template>\n}\n"],"names":["DrawerFooter","Component","_DrawerFooter","setComponentTemplate","precompileTemplate","strictMode","scope","twMerge"],"mappings":";;;;;;AAmBe,MAAMA,qBAAqBC,SAAU,CAAA;AAMpDC,aAAA,GANqBF;AACnBG,oBAAA,CAAAC,kBAAA,CAIA,sGAAA,EAAA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAL,aAAA,CAAA;;;;"}
|