ember-primitives 0.23.1 → 0.24.0
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/accordion/content.d.ts +1 -1
- package/declarations/components/accordion/content.d.ts.map +1 -1
- package/declarations/components/accordion/header.d.ts +1 -1
- package/declarations/components/accordion/header.d.ts.map +1 -1
- package/declarations/components/accordion/public.d.ts +0 -3
- package/declarations/components/accordion/public.d.ts.map +1 -1
- package/declarations/components/accordion/trigger.d.ts +1 -1
- package/declarations/components/accordion/trigger.d.ts.map +1 -1
- package/declarations/components/menu.d.ts +7 -7
- package/declarations/components/menu.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +11 -11
- package/declarations/components/popover.d.ts.map +1 -1
- package/declarations/components/portal-targets.d.ts +1 -2
- package/declarations/components/portal-targets.d.ts.map +1 -1
- package/declarations/floating-ui/component.d.ts +103 -11
- package/declarations/floating-ui/component.d.ts.map +1 -1
- package/declarations/floating-ui/middleware.d.ts +1 -1
- package/declarations/floating-ui/middleware.d.ts.map +1 -1
- package/declarations/floating-ui/modifier.d.ts +117 -6
- package/declarations/floating-ui/modifier.d.ts.map +1 -1
- package/declarations/floating-ui.d.ts +2 -2
- package/declarations/floating-ui.d.ts.map +1 -1
- package/declarations/proper-links.d.ts +3 -3
- package/declarations/proper-links.d.ts.map +1 -1
- package/dist/components/-private/typed-elements.js.map +1 -1
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/external-link.js.map +1 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/layout/hero.js.map +1 -1
- package/dist/components/layout/sticky-footer.js.map +1 -1
- package/dist/components/link.js.map +1 -1
- package/dist/components/menu.js +13 -7
- package/dist/components/menu.js.map +1 -1
- package/dist/components/one-time-password/buttons.js.map +1 -1
- package/dist/components/one-time-password/input.js.map +1 -1
- package/dist/components/one-time-password/otp.js.map +1 -1
- package/dist/components/popover.js +5 -6
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal-targets.js.map +1 -1
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.js.map +1 -1
- package/dist/components/scroller.js.map +1 -1
- package/dist/components/shadowed.js.map +1 -1
- package/dist/components/switch.js.map +1 -1
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/toggle.js.map +1 -1
- package/dist/floating-ui/component.js +32 -14
- package/dist/floating-ui/component.js.map +1 -1
- package/dist/floating-ui/middleware.js +2 -2
- package/dist/floating-ui/middleware.js.map +1 -1
- package/dist/floating-ui/modifier.js +67 -50
- package/dist/floating-ui/modifier.js.map +1 -1
- package/dist/floating-ui.js +2 -2
- package/dist/item-DmpElnSZ.js.map +1 -1
- package/dist/proper-links.js.map +1 -1
- package/package.json +30 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import type { AccordionContentExternalSignature } from './public.ts';
|
|
3
3
|
interface Signature extends AccordionContentExternalSignature {
|
|
4
|
-
Args:
|
|
4
|
+
Args: {
|
|
5
5
|
isExpanded: boolean;
|
|
6
6
|
value: string;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/content.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAErE,UAAU,SAAU,SAAQ,iCAAiC;IAC3D,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/content.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAErE,UAAU,SAAU,SAAQ,iCAAiC;IAC3D,IAAI,EAAE;QACJ,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,SAAS,CAAC;IAiBxD,IAAI,QAAQ,YAEX;CACF;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AccordionHeaderExternalSignature } from './public.ts';
|
|
2
2
|
import type { TOC } from '@ember/component/template-only';
|
|
3
3
|
interface Signature extends AccordionHeaderExternalSignature {
|
|
4
|
-
Args:
|
|
4
|
+
Args: {
|
|
5
5
|
value: string;
|
|
6
6
|
isExpanded: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/header.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,UAAU,SAAU,SAAQ,gCAAgC;IAC1D,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/header.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,UAAU,SAAU,SAAQ,gCAAgC;IAC1D,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,IAAI,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,SAAS,CAezC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -7,14 +7,12 @@ export interface AccordionTriggerExternalSignature {
|
|
|
7
7
|
Blocks: {
|
|
8
8
|
default: [];
|
|
9
9
|
};
|
|
10
|
-
Args: {};
|
|
11
10
|
}
|
|
12
11
|
export interface AccordionContentExternalSignature {
|
|
13
12
|
Element: HTMLDivElement;
|
|
14
13
|
Blocks: {
|
|
15
14
|
default: [];
|
|
16
15
|
};
|
|
17
|
-
Args: {};
|
|
18
16
|
}
|
|
19
17
|
export interface AccordionHeaderExternalSignature {
|
|
20
18
|
/**
|
|
@@ -32,7 +30,6 @@ export interface AccordionHeaderExternalSignature {
|
|
|
32
30
|
}
|
|
33
31
|
];
|
|
34
32
|
};
|
|
35
|
-
Args: {};
|
|
36
33
|
}
|
|
37
34
|
export interface AccordionItemExternalSignature {
|
|
38
35
|
Element: HTMLDivElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE;;mBAEG;gBACH,OAAO,EAAE,aAAa,CAAC,OAAO,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC,CAAC;aAC5F;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE;;mBAEG;gBACH,UAAU,EAAE,OAAO,CAAC;gBACpB;;mBAEG;gBACH,MAAM,EAAE,aAAa,CAAC,OAAO,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC,CAAC;gBACzF;;mBAEG;gBACH,OAAO,EAAE,aAAa,CAAC,OAAO,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC,CAAC;aAC7E;SACF,CAAC;KACH,CAAC;IACF,IAAI,EAAE;QACJ;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AccordionTriggerExternalSignature } from './public.ts';
|
|
2
2
|
import type { TOC } from '@ember/component/template-only';
|
|
3
3
|
interface Signature extends AccordionTriggerExternalSignature {
|
|
4
|
-
Args:
|
|
4
|
+
Args: {
|
|
5
5
|
isExpanded: boolean;
|
|
6
6
|
value: string;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/trigger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,UAAU,SAAU,SAAQ,iCAAiC;IAC3D,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/trigger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,UAAU,SAAU,SAAQ,iCAAiC;IAC3D,IAAI,EAAE;QACJ,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,IAAI,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,SAAS,CAgB1C,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -12,7 +12,7 @@ export interface Signature {
|
|
|
12
12
|
default: [
|
|
13
13
|
{
|
|
14
14
|
arrow: PopoverBlockParams['arrow'];
|
|
15
|
-
trigger: WithBoundArgs<typeof trigger, 'triggerElement' | 'contentId' | 'isOpen' | '
|
|
15
|
+
trigger: WithBoundArgs<typeof trigger, 'triggerElement' | 'contentId' | 'isOpen' | 'setReference'>;
|
|
16
16
|
Trigger: WithBoundArgs<typeof Trigger, 'triggerModifier'>;
|
|
17
17
|
Content: WithBoundArgs<typeof Content, 'triggerElement' | 'contentId' | 'isOpen' | 'PopoverContent'>;
|
|
18
18
|
isOpen: boolean;
|
|
@@ -22,7 +22,6 @@ export interface Signature {
|
|
|
22
22
|
}
|
|
23
23
|
export interface SeparatorSignature {
|
|
24
24
|
Element: HTMLDivElement;
|
|
25
|
-
Args: {};
|
|
26
25
|
Blocks: {
|
|
27
26
|
default: [];
|
|
28
27
|
};
|
|
@@ -55,7 +54,6 @@ interface PrivateContentSignature {
|
|
|
55
54
|
}
|
|
56
55
|
export interface ContentSignature {
|
|
57
56
|
Element: PrivateContentSignature['Element'];
|
|
58
|
-
Args: {};
|
|
59
57
|
Blocks: PrivateContentSignature['Blocks'];
|
|
60
58
|
}
|
|
61
59
|
declare const Content: TOC<PrivateContentSignature>;
|
|
@@ -66,7 +64,8 @@ interface PrivateTriggerModifierSignature {
|
|
|
66
64
|
triggerElement: Cell<HTMLElement>;
|
|
67
65
|
isOpen: Cell<boolean>;
|
|
68
66
|
contentId: string;
|
|
69
|
-
|
|
67
|
+
setReference: PopoverBlockParams['setReference'];
|
|
68
|
+
stopPropagation?: boolean;
|
|
70
69
|
};
|
|
71
70
|
};
|
|
72
71
|
}
|
|
@@ -80,7 +79,8 @@ declare const trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
|
80
79
|
triggerElement: Cell<HTMLElement>;
|
|
81
80
|
isOpen: Cell<boolean>;
|
|
82
81
|
contentId: string;
|
|
83
|
-
|
|
82
|
+
setReference: PopoverBlockParams["setReference"];
|
|
83
|
+
stopPropagation?: boolean;
|
|
84
84
|
};
|
|
85
85
|
Positional: [];
|
|
86
86
|
};
|
|
@@ -88,7 +88,8 @@ declare const trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
|
88
88
|
interface PrivateTriggerSignature {
|
|
89
89
|
Element: HTMLButtonElement;
|
|
90
90
|
Args: {
|
|
91
|
-
triggerModifier: WithBoundArgs<typeof trigger, 'triggerElement' | 'contentId' | 'isOpen' | '
|
|
91
|
+
triggerModifier: WithBoundArgs<typeof trigger, 'triggerElement' | 'contentId' | 'isOpen' | 'setReference'>;
|
|
92
|
+
stopPropagation?: boolean;
|
|
92
93
|
};
|
|
93
94
|
Blocks: {
|
|
94
95
|
default: [];
|
|
@@ -96,7 +97,6 @@ interface PrivateTriggerSignature {
|
|
|
96
97
|
}
|
|
97
98
|
export interface TriggerSignature {
|
|
98
99
|
Element: PrivateTriggerSignature['Element'];
|
|
99
|
-
Args: {};
|
|
100
100
|
Blocks: PrivateTriggerSignature['Blocks'];
|
|
101
101
|
}
|
|
102
102
|
declare const Trigger: TOC<PrivateTriggerSignature>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/components/menu.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC,OAAO,EAAW,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE5E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,KAAK,IAAI,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,KAAK,WAAW,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC5C,KAAK,kBAAkB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAiBnE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;gBACnC,OAAO,EAAE,aAAa,CACpB,OAAO,OAAO,EACd,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/components/menu.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC,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AC;oBACzB,IAAI,CAAC,OAAO,CAAC;uBACV,MAAM;0BACH,kBAAkB,CAAC,cAAc,CAAC;8BAC9B,OAAO;;;;EAwC9B,CAAC;AAEF,UAAU,uBAAuB;IAC/B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ,eAAe,EAAE,aAAa,CAC5B,OAAO,OAAO,EACd,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,cAAc,CAC3D,CAAC;QACF,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5C,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;CAC3C;AAED,QAAA,MAAM,OAAO,EAAE,GAAG,CAAC,uBAAuB,CAWxC,CAAC;AAKH,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IAC5C,SAAS,SAAiB;CAkC3B;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -8,19 +8,19 @@ export interface Signature {
|
|
|
8
8
|
/**
|
|
9
9
|
* See the Floating UI's [flip docs](https://floating-ui.com/docs/flip) for possible values.
|
|
10
10
|
*
|
|
11
|
-
* This argument is forwarded to
|
|
11
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
12
12
|
*/
|
|
13
13
|
flipOptions?: HookSignature['Args']['Named']['flipOptions'];
|
|
14
14
|
/**
|
|
15
15
|
* Array of one or more objects to add to Floating UI's list of [middleware](https://floating-ui.com/docs/middleware)
|
|
16
16
|
*
|
|
17
|
-
* This argument is forwarded to
|
|
17
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
18
18
|
*/
|
|
19
19
|
middleware?: HookSignature['Args']['Named']['middleware'];
|
|
20
20
|
/**
|
|
21
21
|
* See the Floating UI's [offset docs](https://floating-ui.com/docs/offset) for possible values.
|
|
22
22
|
*
|
|
23
|
-
* This argument is forwarded to
|
|
23
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
24
24
|
*/
|
|
25
25
|
offsetOptions?: HookSignature['Args']['Named']['offsetOptions'];
|
|
26
26
|
/**
|
|
@@ -34,13 +34,13 @@ export interface Signature {
|
|
|
34
34
|
*
|
|
35
35
|
* And may optionally have `-start` or `-end` added to adjust position along the side.
|
|
36
36
|
*
|
|
37
|
-
* This argument is forwarded to
|
|
37
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
38
38
|
*/
|
|
39
39
|
placement?: `${'top' | 'bottom' | 'left' | 'right'}${'' | '-start' | '-end'}`;
|
|
40
40
|
/**
|
|
41
41
|
* See the Floating UI's [shift docs](https://floating-ui.com/docs/shift) for possible values.
|
|
42
42
|
*
|
|
43
|
-
* This argument is forwarded to
|
|
43
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
44
44
|
*/
|
|
45
45
|
shiftOptions?: HookSignature['Args']['Named']['shiftOptions'];
|
|
46
46
|
/**
|
|
@@ -48,7 +48,7 @@ export interface Signature {
|
|
|
48
48
|
*
|
|
49
49
|
* Pros and cons of each strategy are explained on [Floating UI's Docs](https://floating-ui.com/docs/computePosition#strategy)
|
|
50
50
|
*
|
|
51
|
-
* This argument is forwarded to
|
|
51
|
+
* This argument is forwarded to the `<FloatingUI>` component.
|
|
52
52
|
*/
|
|
53
53
|
strategy?: HookSignature['Args']['Named']['strategy'];
|
|
54
54
|
/**
|
|
@@ -63,10 +63,10 @@ export interface Signature {
|
|
|
63
63
|
Blocks: {
|
|
64
64
|
default: [
|
|
65
65
|
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Content: WithBoundArgs<typeof Content, '
|
|
69
|
-
data: FloatingUiComponentSignature['Blocks']['default'][
|
|
66
|
+
reference: FloatingUiComponentSignature['Blocks']['default'][0];
|
|
67
|
+
setReference: FloatingUiComponentSignature['Blocks']['default'][2]['setReference'];
|
|
68
|
+
Content: WithBoundArgs<typeof Content, 'floating'>;
|
|
69
|
+
data: FloatingUiComponentSignature['Blocks']['default'][2]['data'];
|
|
70
70
|
arrow: WithBoundArgs<ModifierLike<AttachArrowSignature>, 'arrowElement' | 'data'>;
|
|
71
71
|
}
|
|
72
72
|
];
|
|
@@ -79,7 +79,7 @@ export interface Signature {
|
|
|
79
79
|
declare const Content: TOC<{
|
|
80
80
|
Element: HTMLDivElement;
|
|
81
81
|
Args: {
|
|
82
|
-
|
|
82
|
+
floating: ModifierLike<{
|
|
83
83
|
Element: HTMLElement;
|
|
84
84
|
}>;
|
|
85
85
|
inline?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAMvC,OAAO,KAAK,EAAE,SAAS,IAAI,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE;QACJ;;;;WAIG;QACH,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC;QAC5D;;;;WAIG;QACH,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;QAC1D;;;;WAIG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC;QAChE;;;;;;;;;;;;WAYG;QACH,SAAS,CAAC,EAA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AO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB,CA0CC,CAAC;AAEH,UAAU,oBAAoB;IAC5B,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,YAAY,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;YAE9C,IAAI,CAAC,EAAE,GAAG,CAAC;SACZ,CAAC;KACH,CAAC;CACH;AA4CD,QAAA,MAAM,YAAY,EAAE,MAAM,UAAU,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,CAA6B,CAAC;AAmB3F,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,SAAS,CAwBjC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -6,8 +6,7 @@ export declare const TARGETS: Readonly<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export declare function findNearestTarget(origin: Element, name: string): Element;
|
|
8
8
|
export interface Signature {
|
|
9
|
-
|
|
10
|
-
Blocks: {};
|
|
9
|
+
Element: null;
|
|
11
10
|
}
|
|
12
11
|
export declare const PortalTargets: TOC<Signature>;
|
|
13
12
|
export default PortalTargets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal-targets.d.ts","sourceRoot":"","sources":["../../src/components/portal-targets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,eAAO,MAAM,OAAO;;;;EAIlB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAgC9D;AAED,MAAM,WAAW,SAAS;IACxB,
|
|
1
|
+
{"version":3,"file":"portal-targets.d.ts","sourceRoot":"","sources":["../../src/components/portal-targets.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,eAAO,MAAM,OAAO;;;;EAIlB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAgC9D;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,SAAS,CAoBvC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -1,39 +1,131 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import
|
|
2
|
+
import { anchorTo } from './modifier.ts';
|
|
3
3
|
import type { Signature as ModifierSignature } from './modifier.ts';
|
|
4
4
|
import type { MiddlewareState } from '@floating-ui/dom';
|
|
5
5
|
import type { WithBoundArgs, WithBoundPositionals } from '@glint/template';
|
|
6
6
|
import type { ModifierLike } from '@glint/template';
|
|
7
7
|
type ModifierArgs = ModifierSignature['Args']['Named'];
|
|
8
|
-
interface
|
|
8
|
+
interface ReferenceSignature {
|
|
9
9
|
Element: HTMLElement | SVGElement;
|
|
10
10
|
}
|
|
11
11
|
export interface Signature {
|
|
12
12
|
Args: {
|
|
13
|
+
/**
|
|
14
|
+
* Additional middleware to pass to FloatingUI.
|
|
15
|
+
*
|
|
16
|
+
* See: [The middleware docs](https://floating-ui.com/docs/middleware)
|
|
17
|
+
*/
|
|
13
18
|
middleware?: ModifierArgs['middleware'];
|
|
19
|
+
/**
|
|
20
|
+
* Where to place the floating element relative to its reference element.
|
|
21
|
+
* The default is 'bottom'.
|
|
22
|
+
*
|
|
23
|
+
* See: [The placement docs](https://floating-ui.com/docs/computePosition#placement)
|
|
24
|
+
*/
|
|
14
25
|
placement?: ModifierArgs['placement'];
|
|
26
|
+
/**
|
|
27
|
+
* This is the type of CSS position property to use.
|
|
28
|
+
* By default this is 'fixed', but can also be 'absolute'.
|
|
29
|
+
*
|
|
30
|
+
* See: [The strategy docs](https://floating-ui.com/docs/computePosition#strategy)
|
|
31
|
+
*/
|
|
15
32
|
strategy?: ModifierArgs['strategy'];
|
|
33
|
+
/**
|
|
34
|
+
* Options to pass to the [flip middleware](https://floating-ui.com/docs/flip)
|
|
35
|
+
*/
|
|
16
36
|
flipOptions?: ModifierArgs['flipOptions'];
|
|
37
|
+
/**
|
|
38
|
+
* Options to pass to the [hide middleware](https://floating-ui.com/docs/hide)
|
|
39
|
+
*/
|
|
17
40
|
hideOptions?: ModifierArgs['hideOptions'];
|
|
41
|
+
/**
|
|
42
|
+
* Options to pass to the [shift middleware](https://floating-ui.com/docs/shift)
|
|
43
|
+
*/
|
|
18
44
|
shiftOptions?: ModifierArgs['shiftOptions'];
|
|
45
|
+
/**
|
|
46
|
+
* Options to pass to the [offset middleware](https://floating-ui.com/docs/offset)
|
|
47
|
+
*/
|
|
19
48
|
offsetOptions?: ModifierArgs['offsetOptions'];
|
|
20
49
|
};
|
|
21
50
|
Blocks: {
|
|
22
51
|
default: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
52
|
+
/**
|
|
53
|
+
* A modifier to apply to the _reference_ element.
|
|
54
|
+
* This is what the floating element will use to anchor to.
|
|
55
|
+
*
|
|
56
|
+
* Example
|
|
57
|
+
* ```gjs
|
|
58
|
+
* import { FloatingUI } from 'ember-primitives/floating-ui';
|
|
59
|
+
*
|
|
60
|
+
* <template>
|
|
61
|
+
* <FloatingUI as |reference floating|>
|
|
62
|
+
* <button {{reference}}> ... </button>
|
|
63
|
+
* ...
|
|
64
|
+
* </FloatingUI>
|
|
65
|
+
* </template>
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
reference: ModifierLike<ReferenceSignature>,
|
|
69
|
+
/**
|
|
70
|
+
* A modifier to apply to the _floating_ element.
|
|
71
|
+
* This is what will anchor to the reference element.
|
|
72
|
+
*
|
|
73
|
+
* Example
|
|
74
|
+
* ```gjs
|
|
75
|
+
* import { FloatingUI } from 'ember-primitives/floating-ui';
|
|
76
|
+
*
|
|
77
|
+
* <template>
|
|
78
|
+
* <FloatingUI as |reference floating|>
|
|
79
|
+
* <button {{reference}}> ... </button>
|
|
80
|
+
* <menu {{floating}}> ... </menu>
|
|
81
|
+
* </FloatingUI>
|
|
82
|
+
* </template>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
floating: undefined | WithBoundArgs<WithBoundPositionals<typeof anchorTo, 1>, keyof ModifierArgs>,
|
|
86
|
+
/**
|
|
87
|
+
* Special utilities for advanced usage
|
|
88
|
+
*/
|
|
89
|
+
util: {
|
|
90
|
+
/**
|
|
91
|
+
* If you want to have a single modifier with custom behavior
|
|
92
|
+
* on your reference element, you may use this `setReference`
|
|
93
|
+
* function to set the reference, rather than having multiple modifiers
|
|
94
|
+
* on that element.
|
|
95
|
+
*/
|
|
96
|
+
setReference: (element: HTMLElement | SVGElement) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Metadata exposed from floating-ui.
|
|
99
|
+
* Gives you x, y position, among other things.
|
|
100
|
+
*/
|
|
27
101
|
data?: MiddlewareState;
|
|
28
102
|
}
|
|
29
103
|
];
|
|
30
104
|
};
|
|
31
105
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
106
|
+
/**
|
|
107
|
+
* A component that provides no DOM and yields two modifiers for creating
|
|
108
|
+
* creating floating uis, such as menus, popovers, tooltips, etc.
|
|
109
|
+
* This component currently uses [Floating UI](https://floating-ui.com/)
|
|
110
|
+
* but will be switching to [CSS Anchor Positioning](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning) when that lands.
|
|
111
|
+
*
|
|
112
|
+
* Example usage:
|
|
113
|
+
* ```gjs
|
|
114
|
+
* import { FloatingUI } from 'ember-primitives/floating-ui';
|
|
115
|
+
*
|
|
116
|
+
* <template>
|
|
117
|
+
* <FloatingUI as |reference floating|>
|
|
118
|
+
* <button {{reference}}> ... </button>
|
|
119
|
+
* <menu {{floating}}> ... </menu>
|
|
120
|
+
* </FloatingUI>
|
|
121
|
+
* </template>
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
export declare class FloatingUI extends Component<Signature> {
|
|
125
|
+
reference?: HTMLElement | SVGElement;
|
|
126
|
+
data?: MiddlewareState;
|
|
127
|
+
setData: ModifierArgs['setData'];
|
|
128
|
+
setReference: (element: HTMLElement | SVGElement) => void;
|
|
37
129
|
}
|
|
38
130
|
export {};
|
|
39
131
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/floating-ui/component.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/floating-ui/component.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,KAAK,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAEvD,UAAU,kBAAkB;IAC1B,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC;CACnC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE;QACJ;;;;WAIG;QACH,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;QACxC;;;;;WAKG;QACH,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;QACtC;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;QACpC;;WAEG;QACH,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;QAC1C;;WAEG;QACH,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;QAC1C;;WAEG;QACH,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;QAC5C;;WAEG;QACH,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;KAC/C,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;;;;;;;;;;;;;;;eAeG;YACH,SAAS,EAAE,YAAY,CAAC,kBAAkB,CAAC;YAC3C;;;;;;;;;;;;;;;eAeG;YACH,QAAQ,EACJ,SAAS,GACT,aAAa,CAAC,oBAAoB,CAAC,OAAO,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC;YAC/E;;eAEG;YACH,IAAI,EAAE;gBACJ;;;;;mBAKG;gBACH,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC;gBAC1D;;;mBAGG;gBACH,IAAI,CAAC,EAAE,eAAe,CAAC;aACxB;SACF,CAAC;KACH,CAAC;CACH;AAaD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,UAAW,SAAQ,SAAS,CAAC,SAAS,CAAC;IACzC,SAAS,CAAC,EAAE,WAAW,GAAG,UAAU,CAAa;IACjD,IAAI,CAAC,EAAE,eAAe,CAAa;IAE5C,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAgC;IAEhE,YAAY,YAAa,WAAW,GAAG,UAAU,UAE/C;CAwBH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/floating-ui/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wBAAgB,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/floating-ui/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wBAAgB,cAAc,IAAI,UAAU,CAU3C"}
|
|
@@ -1,22 +1,133 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
1
|
import type { FlipOptions, HideOptions, Middleware, OffsetOptions, Placement, ShiftOptions, Strategy } from '@floating-ui/dom';
|
|
3
2
|
export interface Signature {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
4
6
|
Element: HTMLElement;
|
|
5
7
|
Args: {
|
|
6
|
-
Positional: [
|
|
8
|
+
Positional: [
|
|
9
|
+
/**
|
|
10
|
+
* What do use as the reference element.
|
|
11
|
+
* Can be a selector or element instance.
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* ```gjs
|
|
15
|
+
* import { anchorTo } from 'ember-primitives/floating-ui';
|
|
16
|
+
*
|
|
17
|
+
* <template>
|
|
18
|
+
* <div id="reference">...</div>
|
|
19
|
+
* <div {{anchorTo "#reference"}}> ... </div>
|
|
20
|
+
* </template>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
referenceElement: string | HTMLElement | SVGElement
|
|
24
|
+
];
|
|
7
25
|
Named: {
|
|
26
|
+
/**
|
|
27
|
+
* This is the type of CSS position property to use.
|
|
28
|
+
* By default this is 'fixed', but can also be 'absolute'.
|
|
29
|
+
*
|
|
30
|
+
* See: [The strategy docs](https://floating-ui.com/docs/computePosition#strategy)
|
|
31
|
+
*/
|
|
8
32
|
strategy?: Strategy;
|
|
33
|
+
/**
|
|
34
|
+
* Options to pass to the [offset middleware](https://floating-ui.com/docs/offset)
|
|
35
|
+
*/
|
|
9
36
|
offsetOptions?: OffsetOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Where to place the floating element relative to its reference element.
|
|
39
|
+
* The default is 'bottom'.
|
|
40
|
+
*
|
|
41
|
+
* See: [The placement docs](https://floating-ui.com/docs/computePosition#placement)
|
|
42
|
+
*/
|
|
10
43
|
placement?: Placement;
|
|
44
|
+
/**
|
|
45
|
+
* Options to pass to the [flip middleware](https://floating-ui.com/docs/flip)
|
|
46
|
+
*/
|
|
11
47
|
flipOptions?: FlipOptions;
|
|
48
|
+
/**
|
|
49
|
+
* Options to pass to the [shift middleware](https://floating-ui.com/docs/shift)
|
|
50
|
+
*/
|
|
12
51
|
shiftOptions?: ShiftOptions;
|
|
52
|
+
/**
|
|
53
|
+
* Options to pass to the [hide middleware](https://floating-ui.com/docs/hide)
|
|
54
|
+
*/
|
|
13
55
|
hideOptions?: HideOptions;
|
|
56
|
+
/**
|
|
57
|
+
* Additional middleware to pass to FloatingUI.
|
|
58
|
+
*
|
|
59
|
+
* See: [The middleware docs](https://floating-ui.com/docs/middleware)
|
|
60
|
+
*/
|
|
14
61
|
middleware?: Middleware[];
|
|
15
|
-
|
|
62
|
+
/**
|
|
63
|
+
* A callback for when data changes about the position / placement / etc
|
|
64
|
+
* of the floating element.
|
|
65
|
+
*/
|
|
66
|
+
setData?: Middleware['fn'];
|
|
16
67
|
};
|
|
17
68
|
};
|
|
18
69
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
70
|
+
/**
|
|
71
|
+
* A modifier to apply to the _floating_ element.
|
|
72
|
+
* This is what will anchor to the reference element.
|
|
73
|
+
*
|
|
74
|
+
* Example
|
|
75
|
+
* ```gjs
|
|
76
|
+
* import { anchorTo } from 'ember-primitives/floating-ui';
|
|
77
|
+
*
|
|
78
|
+
* <template>
|
|
79
|
+
* <button id="my-button"> ... </button>
|
|
80
|
+
* <menu {{anchorTo "#my-button"}}> ... </menu>
|
|
81
|
+
* </template>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare const anchorTo: import("ember-modifier").FunctionBasedModifier<{
|
|
85
|
+
Element: HTMLElement;
|
|
86
|
+
Args: {
|
|
87
|
+
Named: {
|
|
88
|
+
/**
|
|
89
|
+
* This is the type of CSS position property to use.
|
|
90
|
+
* By default this is 'fixed', but can also be 'absolute'.
|
|
91
|
+
*
|
|
92
|
+
* See: [The strategy docs](https://floating-ui.com/docs/computePosition#strategy)
|
|
93
|
+
*/
|
|
94
|
+
strategy?: Strategy;
|
|
95
|
+
/**
|
|
96
|
+
* Options to pass to the [offset middleware](https://floating-ui.com/docs/offset)
|
|
97
|
+
*/
|
|
98
|
+
offsetOptions?: OffsetOptions;
|
|
99
|
+
/**
|
|
100
|
+
* Where to place the floating element relative to its reference element.
|
|
101
|
+
* The default is 'bottom'.
|
|
102
|
+
*
|
|
103
|
+
* See: [The placement docs](https://floating-ui.com/docs/computePosition#placement)
|
|
104
|
+
*/
|
|
105
|
+
placement?: Placement;
|
|
106
|
+
/**
|
|
107
|
+
* Options to pass to the [flip middleware](https://floating-ui.com/docs/flip)
|
|
108
|
+
*/
|
|
109
|
+
flipOptions?: FlipOptions;
|
|
110
|
+
/**
|
|
111
|
+
* Options to pass to the [shift middleware](https://floating-ui.com/docs/shift)
|
|
112
|
+
*/
|
|
113
|
+
shiftOptions?: ShiftOptions;
|
|
114
|
+
/**
|
|
115
|
+
* Options to pass to the [hide middleware](https://floating-ui.com/docs/hide)
|
|
116
|
+
*/
|
|
117
|
+
hideOptions?: HideOptions;
|
|
118
|
+
/**
|
|
119
|
+
* Additional middleware to pass to FloatingUI.
|
|
120
|
+
*
|
|
121
|
+
* See: [The middleware docs](https://floating-ui.com/docs/middleware)
|
|
122
|
+
*/
|
|
123
|
+
middleware?: Middleware[];
|
|
124
|
+
/**
|
|
125
|
+
* A callback for when data changes about the position / placement / etc
|
|
126
|
+
* of the floating element.
|
|
127
|
+
*/
|
|
128
|
+
setData?: Middleware["fn"];
|
|
129
|
+
};
|
|
130
|
+
Positional: [referenceElement: string | HTMLElement | SVGElement];
|
|
131
|
+
};
|
|
132
|
+
}>;
|
|
22
133
|
//# sourceMappingURL=modifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../src/floating-ui/modifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../src/floating-ui/modifier.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,UAAU,EAAE;YACV;;;;;;;;;;;;;eAaG;YACH,gBAAgB,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU;SACpD,CAAC;QACF,KAAK,EAAE;YACL;;;;;eAKG;YACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;YACpB;;eAEG;YACH,aAAa,CAAC,EAAE,aAAa,CAAC;YAC9B;;;;;eAKG;YACH,SAAS,CAAC,EAAE,SAAS,CAAC;YACtB;;eAEG;YACH,WAAW,CAAC,EAAE,WAAW,CAAC;YAC1B;;eAEG;YACH,YAAY,CAAC,EAAE,YAAY,CAAC;YAC5B;;eAEG;YACH,WAAW,CAAC,EAAE,WAAW,CAAC;YAC1B;;;;eAIG;YACH,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;YAC1B;;;eAGG;YACH,OAAO,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;SAC5B,CAAC;KACH,CAAC;CACH;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ;;;;YA3Df;;;;;eAKG;uBACQ,QAAQ;YACnB;;eAEG;4BACa,aAAa;YAC7B;;;;;eAKG;wBACS,SAAS;YACrB;;eAEG;0BACW,WAAW;YACzB;;eAEG;2BACY,YAAY;YAC3B;;eAEG;0BACW,WAAW;YACzB;;;;eAIG;yBACU,UAAU,EAAE;YACzB;;;eAGG;sBACO,UAAU,CAAC,IAAI,CAAC;;;;EAmG/B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { FloatingUI } from "./floating-ui/component";
|
|
2
|
+
export { anchorTo } from './floating-ui/modifier.ts';
|
|
3
3
|
//# sourceMappingURL=floating-ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-ui.d.ts","sourceRoot":"","sources":["../src/floating-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"floating-ui.d.ts","sourceRoot":"","sources":["../src/floating-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -3,16 +3,16 @@ export { shouldHandle } from 'should-handle-link';
|
|
|
3
3
|
export interface Options {
|
|
4
4
|
ignore?: string[];
|
|
5
5
|
}
|
|
6
|
-
export declare function properLinks(options: Options): <Instance extends
|
|
6
|
+
export declare function properLinks(options: Options): <Instance extends object, Klass = {
|
|
7
7
|
new (...args: any[]): Instance;
|
|
8
8
|
}>(klass: Klass) => Klass;
|
|
9
|
-
export declare function properLinks<Instance extends
|
|
9
|
+
export declare function properLinks<Instance extends object, Klass = {
|
|
10
10
|
new (...args: any[]): Instance;
|
|
11
11
|
}>(klass: Klass): Klass;
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
|
-
export declare function properLinks<Instance extends
|
|
15
|
+
export declare function properLinks<Instance extends object, Klass = {
|
|
16
16
|
new (...args: any[]): Instance;
|
|
17
17
|
}>(options: Options, klass: Klass): Klass;
|
|
18
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proper-links.d.ts","sourceRoot":"","sources":["../src/proper-links.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,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AU,qBAwClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-elements.js","sources":[
|
|
1
|
+
{"version":3,"file":"typed-elements.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|