@foldkit/ui 0.168.0-canary.2b6d8dd23cdc → 0.168.0-canary.49a14cc0865c

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.
@@ -31,14 +31,15 @@ export type AnchorConfig = typeof AnchorConfig.Type;
31
31
  * that removes it again. Inside a `<dialog>`, the portal root is a div
32
32
  * appended to that dialog, so the element stays above the dialog's content
33
33
  * and interactive while a modal dialog makes everything outside it inert.
34
- * The cleanup removes that div once it is empty. Otherwise the portal root
35
- * is the shared `foldkit-portal-root` div within the element's containing
36
- * root: the shadow root when mounted inside one, otherwise `document.body`.
37
- * Either way the element escapes the clipping and stacking contexts of the
38
- * ancestors it leaves, and keeps its root's scoped styles. Use
39
- * `portalBackdrop` for a click-outside backdrop. Designed to be called from
40
- * inside an `OnMount` action: the consumer wraps the call in `Effect.sync`
41
- * and stashes the returned cleanup in the `Mount` result. */
34
+ * Otherwise the portal root is the shared `foldkit-portal-root` div within
35
+ * the element's containing root: the shadow root when mounted inside one,
36
+ * otherwise `document.body`. Either way the element escapes the clipping
37
+ * and stacking contexts of the ancestors it leaves, and keeps its root's
38
+ * scoped styles. The cleanup removes the portal root once it is empty, so
39
+ * the next open creates a fresh one. Use `portalBackdrop` for a
40
+ * click-outside backdrop. Designed to be called from inside an `OnMount`
41
+ * action: the consumer wraps the call in `Effect.sync` and stashes the
42
+ * returned cleanup in the `Mount` result. */
42
43
  export declare const portalToContainingRoot: (element: Element) => (() => void);
43
44
  /** Relocates a click-outside backdrop and returns a cleanup function that
44
45
  * removes it again. Outside a `<dialog>`, it does what
@@ -1 +1 @@
1
- {"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../src/anchor/anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAgB,MAAM,QAAQ,CAAA;AAatE;mFACmF;AACnF,eAAO,MAAM,SAAS,0KAapB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,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AAO;;;;;IAQlB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,oGAAoG;AACpG,eAAO,MAAM,YAAY;;;;;;;;;;;;EAOvB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAqEnD;;;;;;;;;;;;8CAY8C;AAC9C,eAAO,MAAM,sBAAsB,YAAa,OAAO,KAAG,CAAC,MAAM,IAAI,CAuBpE,CAAA;AAWD;;;;;;;;;;;;;;;;;;;qCAmBqC;AACrC,eAAO,MAAM,cAAc,YAAa,OAAO,KAAG,CAAC,MAAM,IAAI,CAczD,CAAA;AAUJ;;;;;;;;;;;;;;;;;;;;;0BAqB0B;AAC1B,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC,CAAA;AAsBF;;;;;;;;;;;;;;;;;;;;;;;gFAuBgF;AAChF,eAAO,MAAM,WAAW,YACb,OAAO,UACR,WAAW,KAClB,CAAC,MAAM,IAAI,CAkQb,CAAA"}
@@ -78,7 +78,6 @@ const getOrCreateDialogPortalRoot = (dialog) => {
78
78
  dialog.append(portalRoot);
79
79
  return __foldkitBrandViewResult((portalRoot), "@foldkit/ui/anchor/anchor.js#getOrCreateDialogPortalRoot");
80
80
  };
81
- const isDialogPortalRoot = (element) => __foldkitBrandViewResult((element.hasAttribute(DIALOG_PORTAL_ROOT_ATTRIBUTE)), "@foldkit/ui/anchor/anchor.js#isDialogPortalRoot");
82
81
  // NOTE: a dialog is its own stacking level (`Dom.showDialog` gives it a
83
82
  // near-maximal z-index, `showModal()` puts it in the top layer) and the only
84
83
  // subtree a modal dialog leaves interactive. An element portaled out of it is
@@ -93,14 +92,15 @@ const getOrCreatePortalRoot = (element) => __foldkitBrandViewResult((Option.matc
93
92
  * that removes it again. Inside a `<dialog>`, the portal root is a div
94
93
  * appended to that dialog, so the element stays above the dialog's content
95
94
  * and interactive while a modal dialog makes everything outside it inert.
96
- * The cleanup removes that div once it is empty. Otherwise the portal root
97
- * is the shared `foldkit-portal-root` div within the element's containing
98
- * root: the shadow root when mounted inside one, otherwise `document.body`.
99
- * Either way the element escapes the clipping and stacking contexts of the
100
- * ancestors it leaves, and keeps its root's scoped styles. Use
101
- * `portalBackdrop` for a click-outside backdrop. Designed to be called from
102
- * inside an `OnMount` action: the consumer wraps the call in `Effect.sync`
103
- * and stashes the returned cleanup in the `Mount` result. */
95
+ * Otherwise the portal root is the shared `foldkit-portal-root` div within
96
+ * the element's containing root: the shadow root when mounted inside one,
97
+ * otherwise `document.body`. Either way the element escapes the clipping
98
+ * and stacking contexts of the ancestors it leaves, and keeps its root's
99
+ * scoped styles. The cleanup removes the portal root once it is empty, so
100
+ * the next open creates a fresh one. Use `portalBackdrop` for a
101
+ * click-outside backdrop. Designed to be called from inside an `OnMount`
102
+ * action: the consumer wraps the call in `Effect.sync` and stashes the
103
+ * returned cleanup in the `Mount` result. */
104
104
  export const portalToContainingRoot = (element) => {
105
105
  const portalRoot = getOrCreatePortalRoot(element);
106
106
  portalRoot.appendChild(element);
@@ -113,12 +113,13 @@ export const portalToContainingRoot = (element) => {
113
113
  // so the remove() call can throw on a node that's already been removed.
114
114
  // Swallow the error.
115
115
  }
116
- // NOTE: a dialog's children are usually rendered only while it is open,
117
- // so after a close an empty portal root would be the dialog's only child,
118
- // and on the next open the dialog's content would be inserted after it.
119
- // Removing it lets the next element portaled into this dialog append a
120
- // fresh root after the content.
121
- if (isDialogPortalRoot(portalRoot) && !portalRoot.hasChildNodes()) {
116
+ // NOTE: a modal overlay isolates siblings before its Mount portals the
117
+ // panel. An empty shared root would become inert, then receive the panel.
118
+ // Removing empty roots lets the next open create one after isolation.
119
+ // Dialog roots must also be removed so a reopened dialog appends its portal
120
+ // root after the newly rendered content. Occupied shared roots are retained;
121
+ // opening a modal overlay while one exists can still make its panel inert.
122
+ if (!portalRoot.hasChildNodes()) {
122
123
  portalRoot.remove();
123
124
  }
124
125
  }), "@foldkit/ui/anchor/anchor.js#portalToContainingRoot");
@@ -72,7 +72,15 @@ export declare const OutMessage: import("foldkit/message").MessageUnion<{
72
72
  export type OutMessage = typeof OutMessage.Type;
73
73
  export type Opened = typeof OutMessage.Opened.Type;
74
74
  export type Closed = typeof OutMessage.Closed.Type;
75
- /** Configuration for creating a popover model with `init`. `isAnimated` enables animation coordination (default `false`). `isModal` locks page scroll and inerts other elements when open (default `false`). `contentFocus` hands focus ownership to the consumer. The panel is not focusable and does not close on blur, so the consumer must focus a descendant on open and close the popover on its own blur rules (default `false`). */
75
+ /** Configuration for creating a Popover Model with `init`.
76
+ *
77
+ * `isAnimated` enables animation coordination. `isModal` locks page scroll
78
+ * and marks other elements inert while the Popover is open. Both default to
79
+ * `false`.
80
+ *
81
+ * With `contentFocus: true`, the panel has no tab stop and focus leaving
82
+ * it does not close the Popover. Focus a descendant when opening and
83
+ * handle focus leaving the content in the application. Defaults to `false`. */
76
84
  export type InitConfig = Readonly<{
77
85
  id: string;
78
86
  isAnimated?: boolean;
@@ -254,7 +262,7 @@ export declare const close: (model: Model) => UpdateReturn;
254
262
  * - `button`: attribute bundle for the trigger button.
255
263
  * - `panel`: attribute bundle for the floating panel. Includes the
256
264
  * anchor Mount that positions the panel via Floating UI, ARIA
257
- * linkage to the button, and panel keydown/blur handlers.
265
+ * linkage to the button, and panel keydown and focus-leave handlers.
258
266
  * - `backdrop`: attribute bundle for the modal backdrop. Includes the
259
267
  * portal Mount that moves the backdrop to document.body. Inside a
260
268
  * `<dialog>`, it moves the backdrop to directly before the element it
@@ -1 +1 @@
1
- {"version":3,"file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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAVP,YAAY;YACZ,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;iBACvB,OAAO;oBACJ,MAAM;mBACP,MAAM;gBACT,MAAM;qBACD,MAAM;GAuJxB,CAAA"}
@@ -389,7 +389,7 @@ export const view = defineView((model, viewInputs, h) => {
389
389
  ? []
390
390
  : [
391
391
  h.OnKeyDownPreventDefault(handlePanelKeyDown),
392
- ...(contentFocus ? [] : [h.OnBlur(Message.BlurredPanel())]),
392
+ ...(contentFocus ? [] : [h.OnFocusLeave(Message.BlurredPanel())]),
393
393
  ]),
394
394
  ];
395
395
  const backdropAttributes = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/ui",
3
- "version": "0.168.0-canary.2b6d8dd23cdc",
3
+ "version": "0.168.0-canary.49a14cc0865c",
4
4
  "description": "Headless, accessible UI components for Foldkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -134,16 +134,16 @@
134
134
  ],
135
135
  "peerDependencies": {
136
136
  "effect": "4.0.0",
137
- "foldkit": "0.168.0-canary.2b6d8dd23cdc"
137
+ "foldkit": "0.168.0-canary.49a14cc0865c"
138
138
  },
139
139
  "dependencies": {
140
140
  "@floating-ui/dom": "^1.8.0"
141
141
  },
142
142
  "devDependencies": {
143
143
  "@effect/vitest": "4.0.0",
144
- "@foldkit/vite-plugin": "0.27.1-canary.2b6d8dd23cdc",
144
+ "@foldkit/vite-plugin": "0.27.1-canary.49a14cc0865c",
145
145
  "effect": "4.0.0",
146
- "foldkit": "0.168.0-canary.2b6d8dd23cdc",
146
+ "foldkit": "0.168.0-canary.49a14cc0865c",
147
147
  "happy-dom": "^20.14.5",
148
148
  "rimraf": "^6.1.3",
149
149
  "typescript": "^7.0.2",