@frontile/overlays 0.17.0-alpha.9 → 0.17.0-beta.10
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 +113 -116
- package/declarations/components/overlay.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +38 -17
- 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/dist/_app_/components/portal-target.js +1 -0
- package/dist/_app_/components/portal.js +1 -0
- package/dist/components/backdrop.js +16 -14
- package/dist/components/backdrop.js.map +1 -1
- package/dist/components/drawer/body.js +11 -6
- package/dist/components/drawer/body.js.map +1 -1
- package/dist/components/drawer/footer.js +11 -6
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header.js +11 -6
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer.js +20 -37
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/modal/body.js +11 -6
- package/dist/components/modal/body.js.map +1 -1
- package/dist/components/modal/footer.js +11 -6
- package/dist/components/modal/footer.js.map +1 -1
- package/dist/components/modal/header.js +11 -6
- package/dist/components/modal/header.js.map +1 -1
- package/dist/components/modal.js +20 -37
- package/dist/components/modal.js.map +1 -1
- package/dist/components/overlay.js +16 -261
- package/dist/components/overlay.js.map +1 -1
- package/dist/components/popover.js +168 -85
- 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 +9 -0
- package/dist/components/portal.js.map +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/overlay-DR5BqlON.js +270 -0
- package/dist/overlay-DR5BqlON.js.map +1 -0
- package/dist/portal-CGKQ_924.js +165 -0
- package/dist/portal-CGKQ_924.js.map +1 -0
- package/package.json +54 -54
- 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,97 @@
|
|
|
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
|
+
* When focusTrap is disabled, by default Oberlay will be auto focused. This option prevents that.
|
|
85
|
+
* @defaultValue false
|
|
86
|
+
*/
|
|
87
|
+
preventAutoFocus?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @defaultValue true
|
|
90
|
+
*/
|
|
91
|
+
blockScroll?: boolean;
|
|
92
|
+
}
|
|
5
93
|
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
|
-
};
|
|
94
|
+
Args: Args;
|
|
97
95
|
Element: HTMLDivElement;
|
|
98
96
|
Blocks: {
|
|
99
97
|
default: [];
|
|
@@ -104,7 +102,6 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
104
102
|
contentElement: HTMLElement | undefined;
|
|
105
103
|
focusedElement: Element | null | undefined;
|
|
106
104
|
mouseDownContentElement: EventTarget | null;
|
|
107
|
-
get destinationElement(): HTMLElement | null;
|
|
108
105
|
handleClose(): void;
|
|
109
106
|
handleContentClick(event: MouseEvent): void;
|
|
110
107
|
handleOutsideClick(e: Event): void;
|
|
@@ -113,7 +110,7 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
113
110
|
setupContent: import("ember-modifier").FunctionBasedModifier<{
|
|
114
111
|
Args: {
|
|
115
112
|
Positional: unknown[];
|
|
116
|
-
Named: import("ember-modifier/-private/signature
|
|
113
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
117
114
|
};
|
|
118
115
|
Element: HTMLDivElement;
|
|
119
116
|
}>;
|
|
@@ -127,35 +124,35 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
127
124
|
}> | import("ember-modifier").FunctionBasedModifier<{
|
|
128
125
|
Args: {
|
|
129
126
|
Positional: unknown[];
|
|
130
|
-
Named: import("ember-modifier/-private/signature
|
|
127
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
131
128
|
};
|
|
132
129
|
Element: Element;
|
|
133
130
|
}>;
|
|
134
131
|
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
|
|
132
|
+
didTransitionIn?: () => void;
|
|
133
|
+
didTransitionOut?: () => void;
|
|
134
|
+
enterClass?: string;
|
|
135
|
+
enterActiveClass?: string;
|
|
136
|
+
enterToClass?: string;
|
|
137
|
+
isEnabled?: boolean;
|
|
138
|
+
leaveClass?: string;
|
|
139
|
+
leaveActiveClass?: string;
|
|
140
|
+
leaveToClass?: string;
|
|
141
|
+
name?: string;
|
|
142
|
+
parentSelector?: string;
|
|
146
143
|
};
|
|
147
144
|
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
|
|
145
|
+
didTransitionIn?: () => void;
|
|
146
|
+
didTransitionOut?: () => void;
|
|
147
|
+
enterClass?: string;
|
|
148
|
+
enterActiveClass?: string;
|
|
149
|
+
enterToClass?: string;
|
|
150
|
+
isEnabled?: boolean;
|
|
151
|
+
leaveClass?: string;
|
|
152
|
+
leaveActiveClass?: string;
|
|
153
|
+
leaveToClass?: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
parentSelector?: string;
|
|
159
156
|
};
|
|
160
157
|
}
|
|
161
158
|
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"],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;;;;;;;;;;;MAWb;CAuCF;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -43,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' | 'triggerWidth'>;
|
|
47
47
|
}
|
|
48
48
|
];
|
|
49
49
|
};
|
|
@@ -52,26 +52,30 @@ declare class Popover extends Component<PopoverSignature> {
|
|
|
52
52
|
triggerEl?: HTMLElement;
|
|
53
53
|
menuId: string;
|
|
54
54
|
_isOpen: boolean;
|
|
55
|
+
isClosing: boolean;
|
|
56
|
+
preventFocusRestore: boolean;
|
|
57
|
+
triggerWidth?: number;
|
|
55
58
|
get isOpen(): boolean;
|
|
56
|
-
toggle: () => void;
|
|
59
|
+
toggle: (event?: Event) => void;
|
|
57
60
|
open: () => void;
|
|
58
61
|
close: () => void;
|
|
59
62
|
trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
60
63
|
Args: {
|
|
61
64
|
Positional: [eventType?: "click" | "hover" | undefined];
|
|
62
|
-
Named: import("ember-modifier/-private/signature
|
|
65
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
63
66
|
};
|
|
64
67
|
Element: HTMLElement;
|
|
65
68
|
}>;
|
|
66
69
|
updateAriaExtanded: import("ember-modifier").FunctionBasedModifier<{
|
|
67
70
|
Args: {
|
|
68
71
|
Positional: unknown[];
|
|
69
|
-
Named: import("ember-modifier/-private/signature
|
|
72
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
70
73
|
};
|
|
71
74
|
Element: HTMLElement;
|
|
72
75
|
}>;
|
|
76
|
+
didClose: () => void;
|
|
73
77
|
}
|
|
74
|
-
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | '
|
|
78
|
+
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'blockScroll' | 'preventAutoFocus'> {
|
|
75
79
|
/**
|
|
76
80
|
* @internal
|
|
77
81
|
*/
|
|
@@ -86,10 +90,19 @@ interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClos
|
|
|
86
90
|
* @internal
|
|
87
91
|
*/
|
|
88
92
|
toggle: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
internalDidClose: () => void;
|
|
89
97
|
/**
|
|
90
98
|
* @internal
|
|
91
99
|
*/
|
|
92
100
|
id: string;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
preventFocusRestore?: boolean;
|
|
105
|
+
triggerWidth?: number;
|
|
93
106
|
class?: string;
|
|
94
107
|
/**
|
|
95
108
|
* The transition to be used in the Modal.
|
|
@@ -106,7 +119,7 @@ interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClos
|
|
|
106
119
|
*
|
|
107
120
|
* @defaultValue 'md'
|
|
108
121
|
*/
|
|
109
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
122
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'trigger';
|
|
110
123
|
}
|
|
111
124
|
interface ContentSignature {
|
|
112
125
|
Args: ContentArgs;
|
|
@@ -125,20 +138,28 @@ declare class Content extends Component<ContentSignature> {
|
|
|
125
138
|
get classNames(): string;
|
|
126
139
|
get backdrop(): OverlaySignature['Args']['backdrop'];
|
|
127
140
|
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
|
|
141
|
+
didTransitionIn?: () => void;
|
|
142
|
+
didTransitionOut?: () => void;
|
|
143
|
+
enterClass?: string;
|
|
144
|
+
enterActiveClass?: string;
|
|
145
|
+
enterToClass?: string;
|
|
146
|
+
isEnabled?: boolean;
|
|
147
|
+
leaveClass?: string;
|
|
148
|
+
leaveActiveClass?: string;
|
|
149
|
+
leaveToClass?: string;
|
|
150
|
+
name?: string;
|
|
151
|
+
parentSelector?: string;
|
|
139
152
|
};
|
|
140
153
|
get blockScroll(): boolean;
|
|
141
154
|
get disableFocusTrap(): boolean;
|
|
155
|
+
didClose: () => void;
|
|
156
|
+
updateTriggerWidth: import("ember-modifier").FunctionBasedModifier<{
|
|
157
|
+
Args: {
|
|
158
|
+
Positional: unknown[];
|
|
159
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
160
|
+
};
|
|
161
|
+
Element: HTMLDivElement;
|
|
162
|
+
}>;
|
|
142
163
|
}
|
|
143
164
|
export { Popover, type PopoverSignature, type ContentSignature };
|
|
144
165
|
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,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ortalTarget: 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 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/portal-target";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/portal";
|
|
@@ -4,39 +4,41 @@ import { useStyles } from '@frontile/theme';
|
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
let Backdrop = (_Backdrop = class Backdrop extends Component {
|
|
7
|
+
class Backdrop extends Component {
|
|
9
8
|
get classNames() {
|
|
10
9
|
const {
|
|
11
|
-
backdrop
|
|
10
|
+
backdrop
|
|
12
11
|
} = useStyles();
|
|
13
|
-
return
|
|
12
|
+
return backdrop({
|
|
14
13
|
class: this.args.class,
|
|
15
14
|
type: this.args.type,
|
|
16
15
|
inPlace: this.args.inPlace
|
|
17
16
|
});
|
|
18
17
|
}
|
|
19
18
|
get transition() {
|
|
20
|
-
let
|
|
19
|
+
let options = {
|
|
21
20
|
name: 'overlay-transition--fade'
|
|
22
21
|
};
|
|
23
22
|
if (typeof this.args.transition === 'object') {
|
|
24
23
|
return {
|
|
25
|
-
...
|
|
24
|
+
...options,
|
|
26
25
|
...this.args.transition
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
|
-
return
|
|
28
|
+
return options;
|
|
30
29
|
}
|
|
31
|
-
get
|
|
30
|
+
get isVisible() {
|
|
32
31
|
return this.args.type !== 'none';
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
33
|
+
static {
|
|
34
|
+
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 ", {
|
|
35
|
+
strictMode: true,
|
|
36
|
+
scope: () => ({
|
|
37
|
+
cssTransition
|
|
38
|
+
})
|
|
39
|
+
}), this);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
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","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;AAEA,EAAA;IAAAM,oBAAA,CAAAC,kBAAA,CAqBA,slBAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -1,13 +1,18 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
class DrawerBody extends Component {
|
|
7
|
+
static {
|
|
8
|
+
setComponentTemplate(precompileTemplate("\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
9
|
+
strictMode: true,
|
|
10
|
+
scope: () => ({
|
|
11
|
+
twMerge
|
|
12
|
+
})
|
|
13
|
+
}), this);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
export { DrawerBody as default };
|
|
13
18
|
//# sourceMappingURL=body.js.map
|
|
@@ -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","setComponentTemplate","precompileTemplate","strictMode","scope","twMerge"],"mappings":";;;;;AAmBe,MAAMA,mBAAmBC,SAAU,CAAA;AAChD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAIA,sGAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
|
@@ -1,13 +1,18 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
class DrawerFooter extends Component {
|
|
7
|
+
static {
|
|
8
|
+
setComponentTemplate(precompileTemplate("\n <div class={{twMerge @classFromParent @class}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
9
|
+
strictMode: true,
|
|
10
|
+
scope: () => ({
|
|
11
|
+
twMerge
|
|
12
|
+
})
|
|
13
|
+
}), this);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
export { DrawerFooter as default };
|
|
13
18
|
//# sourceMappingURL=footer.js.map
|