@frontile/overlays 0.17.0-alpha.2 → 0.17.0-alpha.20

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.
Files changed (61) hide show
  1. package/declarations/-private/dom.d.ts +3 -6
  2. package/declarations/-private/dom.d.ts.map +1 -1
  3. package/declarations/components/backdrop.d.ts +40 -0
  4. package/declarations/components/backdrop.d.ts.map +1 -0
  5. package/declarations/components/drawer.d.ts +19 -6
  6. package/declarations/components/drawer.d.ts.map +1 -1
  7. package/declarations/components/modal.d.ts +22 -8
  8. package/declarations/components/modal.d.ts.map +1 -1
  9. package/declarations/components/overlay.d.ts +82 -44
  10. package/declarations/components/overlay.d.ts.map +1 -1
  11. package/declarations/components/popover.d.ts +157 -0
  12. package/declarations/components/popover.d.ts.map +1 -0
  13. package/declarations/components/portal-target.d.ts +16 -0
  14. package/declarations/components/portal-target.d.ts.map +1 -0
  15. package/declarations/components/portal.d.ts +39 -0
  16. package/declarations/components/portal.d.ts.map +1 -0
  17. package/declarations/index.d.ts +7 -0
  18. package/declarations/index.d.ts.map +1 -0
  19. package/declarations/portal-D1N7TxUb.d.ts +5 -0
  20. package/declarations/portal-D1N7TxUb.d.ts.map +1 -0
  21. package/declarations/template-registry.d.ts +2 -3
  22. package/declarations/template-registry.d.ts.map +1 -1
  23. package/dist/_app_/components/backdrop.js +1 -0
  24. package/dist/_app_/components/popover.js +1 -0
  25. package/dist/_app_/components/portal-target.js +1 -0
  26. package/dist/_app_/components/portal.js +1 -0
  27. package/dist/components/backdrop.js +42 -0
  28. package/dist/components/backdrop.js.map +1 -0
  29. package/dist/components/drawer/body.js +3 -3
  30. package/dist/components/drawer/body.js.map +1 -1
  31. package/dist/components/drawer/footer.js +3 -3
  32. package/dist/components/drawer/footer.js.map +1 -1
  33. package/dist/components/drawer/header.js +3 -3
  34. package/dist/components/drawer/header.js.map +1 -1
  35. package/dist/components/drawer.js +21 -10
  36. package/dist/components/drawer.js.map +1 -1
  37. package/dist/components/modal/body.js +3 -3
  38. package/dist/components/modal/body.js.map +1 -1
  39. package/dist/components/modal/footer.js +3 -3
  40. package/dist/components/modal/footer.js.map +1 -1
  41. package/dist/components/modal/header.js +3 -3
  42. package/dist/components/modal/header.js.map +1 -1
  43. package/dist/components/modal.js +20 -8
  44. package/dist/components/modal.js.map +1 -1
  45. package/dist/components/overlay.js +132 -132
  46. package/dist/components/overlay.js.map +1 -1
  47. package/dist/components/popover.js +198 -0
  48. package/dist/components/popover.js.map +1 -0
  49. package/dist/components/portal-target.js +10 -0
  50. package/dist/components/portal-target.js.map +1 -0
  51. package/dist/components/portal.js +10 -0
  52. package/dist/components/portal.js.map +1 -0
  53. package/dist/index.js +7 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/portal-D1N7TxUb.js +167 -0
  56. package/dist/portal-D1N7TxUb.js.map +1 -0
  57. package/package.json +28 -21
  58. package/declarations/components/drawer/index.d.ts +0 -69
  59. package/declarations/components/drawer/index.d.ts.map +0 -1
  60. package/declarations/components/modal/index.d.ts +0 -66
  61. package/declarations/components/modal/index.d.ts.map +0 -1
@@ -1,69 +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'> & WithBoundArgs<typeof CloseButton, 'class'>;
53
- Header: WithBoundArgs<typeof DrawerHeader, 'labelledById'> & WithBoundArgs<typeof DrawerHeader, 'size'>;
54
- Body: WithBoundArgs<typeof DrawerBody, 'size'>;
55
- Footer: WithBoundArgs<typeof DrawerFooter, 'size'>;
56
- headerId: string;
57
- }
58
- ];
59
- };
60
- Element: HTMLDivElement;
61
- }
62
- export default class Drawer extends Component<DrawerSignature> {
63
- headerId: string;
64
- get preventClosing(): boolean;
65
- get showCloseButton(): boolean;
66
- get placement(): "left" | "top" | "bottom" | "right";
67
- get size(): string;
68
- }
69
- //# 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,CAA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EZ;IAED,IAAI,IAAI,IAAI,MAAM,CAMjB;CA6CF"}
@@ -1,66 +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'> & WithBoundArgs<typeof CloseButton, 'class'>;
51
- Header: WithBoundArgs<typeof ModalHeader, 'labelledById'> & WithBoundArgs<typeof ModalHeader, 'size'>;
52
- Body: WithBoundArgs<typeof ModalBody, 'size'>;
53
- Footer: WithBoundArgs<typeof ModalFooter, 'size'>;
54
- headerId: string;
55
- }
56
- ];
57
- };
58
- Element: HTMLDivElement;
59
- }
60
- export default class Modal extends Component<ModalSignature> {
61
- headerId: string;
62
- get preventClosing(): boolean;
63
- get showCloseButton(): boolean;
64
- get size(): "full" | "xs" | "sm" | "md" | "lg" | "xl";
65
- }
66
- //# 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,C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