@frontile/overlays 0.17.0-alpha.11 → 0.17.0-alpha.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/overlays",
|
|
3
|
-
"version": "0.17.0-alpha.
|
|
3
|
+
"version": "0.17.0-alpha.13",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: overlays",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@embroider/addon-shim": "^1.8.7",
|
|
44
|
-
"@frontile/buttons": "0.17.0-alpha.
|
|
45
|
-
"@frontile/theme": "0.17.0-alpha.
|
|
44
|
+
"@frontile/buttons": "0.17.0-alpha.13",
|
|
45
|
+
"@frontile/theme": "0.17.0-alpha.13",
|
|
46
46
|
"@glint/template": "1.3.0",
|
|
47
47
|
"ember-click-outside": "^6.1.0",
|
|
48
48
|
"ember-css-transitions": "^4.4.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "b22e515381bac9b66f8664352d24b98c5c2416ee"
|
|
121
121
|
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type OverlayArgs } from '../overlay';
|
|
3
|
-
import DrawerBody from './body';
|
|
4
|
-
import DrawerFooter from './footer';
|
|
5
|
-
import DrawerHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface DrawerArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the transition to be used in the Drawer.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue 'overlay-transition--slide-from-[placement]'
|
|
13
|
-
*/
|
|
14
|
-
transitionName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If set to false, the close button will not be displayed,
|
|
17
|
-
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
18
|
-
* to false.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue true
|
|
21
|
-
*/
|
|
22
|
-
allowClosing?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* If set to false, the close button will not be displayed.
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue true
|
|
27
|
-
*/
|
|
28
|
-
allowCloseButton?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The Close Button size.
|
|
31
|
-
*/
|
|
32
|
-
closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
33
|
-
/**
|
|
34
|
-
* The Drawer can appear from any side of the screen. The 'placement'
|
|
35
|
-
* option allows to choose where it appears from.
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue 'right'
|
|
38
|
-
*/
|
|
39
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
40
|
-
/**
|
|
41
|
-
* The Drawer size.
|
|
42
|
-
*
|
|
43
|
-
* @defaultValue 'md'
|
|
44
|
-
*/
|
|
45
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
46
|
-
}
|
|
47
|
-
export interface DrawerSignature {
|
|
48
|
-
Args: DrawerArgs;
|
|
49
|
-
Blocks: {
|
|
50
|
-
default: [
|
|
51
|
-
{
|
|
52
|
-
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> &
|
|
53
|
-
WithBoundArgs<typeof CloseButton, 'class'>;
|
|
54
|
-
Header: WithBoundArgs<typeof DrawerHeader, 'labelledById'> &
|
|
55
|
-
WithBoundArgs<typeof DrawerHeader, 'size'>;
|
|
56
|
-
Body: WithBoundArgs<typeof DrawerBody, 'size'>;
|
|
57
|
-
Footer: WithBoundArgs<typeof DrawerFooter, 'size'>;
|
|
58
|
-
headerId: string;
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
};
|
|
62
|
-
Element: HTMLDivElement;
|
|
63
|
-
}
|
|
64
|
-
export default class Drawer extends Component<DrawerSignature> {
|
|
65
|
-
headerId: string;
|
|
66
|
-
get preventClosing(): boolean;
|
|
67
|
-
get showCloseButton(): boolean;
|
|
68
|
-
get placement(): 'left' | 'top' | 'bottom' | 'right';
|
|
69
|
-
get size(): string;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,UAAU,MAAM,QAAQ,CAAC;AAChC,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,YAAY,MAAM,UAAU,CAAC;AAEpC,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC5E;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;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;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAEhD;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAClD;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,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,YAAY,EAAE,cAAc,CAAC,GACxD,aAAa,CAAC,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;gBAC7C,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,EAAE,MAAM,CAAC,CAAC;gBAC/C,MAAM,EAAE,aAAa,CAAC,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;gBACnD,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC5D,QAAQ,SAA6B;IAErC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,eAAe,IAAI,OAAO,CAI7B;IAED,IAAI,SAAS,wCAEZ;IAED,IAAI,IAAI,IAAI,MAAM,CAMjB;CA6CF"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type OverlayArgs } from '../overlay';
|
|
3
|
-
import ModalFooter from './footer';
|
|
4
|
-
import ModalBody from './body';
|
|
5
|
-
import ModalHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface ModalArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the transition to be used in the modal.
|
|
11
|
-
* @defaultValue 'overlay-transition--zoom'
|
|
12
|
-
*/
|
|
13
|
-
transitionName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If set to false, the close button will not be displayed,
|
|
16
|
-
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
17
|
-
* to false.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue true
|
|
20
|
-
*/
|
|
21
|
-
allowClosing?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* If set to false, the close button will not be displayed.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue true
|
|
26
|
-
*/
|
|
27
|
-
allowCloseButton?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The Close Button size.
|
|
30
|
-
*/
|
|
31
|
-
closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
32
|
-
/**
|
|
33
|
-
* If set to true, the modal will be vertically centered
|
|
34
|
-
*
|
|
35
|
-
* @defaultValue false
|
|
36
|
-
*/
|
|
37
|
-
isCentered?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The Modal size.
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue 'lg'
|
|
42
|
-
*/
|
|
43
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
44
|
-
}
|
|
45
|
-
export interface ModalSignature {
|
|
46
|
-
Args: ModalArgs;
|
|
47
|
-
Blocks: {
|
|
48
|
-
default: [
|
|
49
|
-
{
|
|
50
|
-
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> &
|
|
51
|
-
WithBoundArgs<typeof CloseButton, 'class'>;
|
|
52
|
-
Header: WithBoundArgs<typeof ModalHeader, 'labelledById'> &
|
|
53
|
-
WithBoundArgs<typeof ModalHeader, 'size'>;
|
|
54
|
-
Body: WithBoundArgs<typeof ModalBody, 'size'>;
|
|
55
|
-
Footer: WithBoundArgs<typeof ModalFooter, 'size'>;
|
|
56
|
-
headerId: string;
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
};
|
|
60
|
-
Element: HTMLDivElement;
|
|
61
|
-
}
|
|
62
|
-
export default class Modal extends Component<ModalSignature> {
|
|
63
|
-
headerId: string;
|
|
64
|
-
get preventClosing(): boolean;
|
|
65
|
-
get showCloseButton(): boolean;
|
|
66
|
-
get size(): 'full' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,WAAW,MAAM,UAAU,CAAC;AACnC,OAAO,SAAS,MAAM,QAAQ,CAAC;AAC/B,OAAO,WAAW,MAAM,UAAU,CAAC;AAEnC,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC3E;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;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,MAAM,CAAC,CAAC;gBAC5C,IAAI,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC;gBAC9C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC;gBAClD,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;CA6CF"}
|