@mlola-ui/engine 1.0.5 → 1.0.6
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/generated/agents.md +2 -0
- package/generated/contract.json +12 -1
- package/generated/recipes.css +6 -0
- package/package.json +1 -1
- package/src/behavior-spec.mjs +11 -0
package/generated/agents.md
CHANGED
|
@@ -372,6 +372,7 @@ A dialog over the page that owns focus while open.
|
|
|
372
372
|
- On open, set focus to the first focusable element inside. Also: lock page scroll.
|
|
373
373
|
- On close, set focus to the element that opened the dialog. Also: release page scroll.
|
|
374
374
|
- On pointer down on the backdrop, set closed to unless closing on backdrop is disabled.
|
|
375
|
+
- Markup: `data-ml-opens` — on any control outside: the id of the dialog it opens; `data-ml-for` — on the overlay: the id of its dialog; `data-ml-close` — on any control inside that closes it, such as Cancel; `role="alertdialog"` — for a confirmation that interrupts
|
|
375
376
|
|
|
376
377
|
### sheet
|
|
377
378
|
|
|
@@ -386,6 +387,7 @@ A dialog anchored to one edge of the viewport.
|
|
|
386
387
|
- State changes:
|
|
387
388
|
- On open, set focus to inside the panel. Also: lock page scroll.
|
|
388
389
|
- On close, set focus to the trigger. Also: release page scroll.
|
|
390
|
+
- Markup: `data-ml-opens` — on any control outside: the id of the panel it opens; `data-ml-for` — on the overlay: the id of its panel; `data-ml-close` — on any control inside that closes it
|
|
389
391
|
- Note: Identical to modal apart from which edge it is anchored to.
|
|
390
392
|
|
|
391
393
|
### tooltip
|
package/generated/contract.json
CHANGED
|
@@ -957,7 +957,13 @@
|
|
|
957
957
|
"set": "closed",
|
|
958
958
|
"to": "unless closing on backdrop is disabled"
|
|
959
959
|
}
|
|
960
|
-
]
|
|
960
|
+
],
|
|
961
|
+
"markup": {
|
|
962
|
+
"data-ml-opens": "on any control outside: the id of the dialog it opens",
|
|
963
|
+
"data-ml-for": "on the overlay: the id of its dialog",
|
|
964
|
+
"data-ml-close": "on any control inside that closes it, such as Cancel",
|
|
965
|
+
"role=\"alertdialog\"": "for a confirmation that interrupts"
|
|
966
|
+
}
|
|
961
967
|
},
|
|
962
968
|
"sheet": {
|
|
963
969
|
"summary": "A dialog anchored to one edge of the viewport.",
|
|
@@ -1020,6 +1026,11 @@
|
|
|
1020
1026
|
"also": "release page scroll"
|
|
1021
1027
|
}
|
|
1022
1028
|
],
|
|
1029
|
+
"markup": {
|
|
1030
|
+
"data-ml-opens": "on any control outside: the id of the panel it opens",
|
|
1031
|
+
"data-ml-for": "on the overlay: the id of its panel",
|
|
1032
|
+
"data-ml-close": "on any control inside that closes it"
|
|
1033
|
+
},
|
|
1023
1034
|
"notes": "Identical to modal apart from which edge it is anchored to."
|
|
1024
1035
|
},
|
|
1025
1036
|
"tooltip": {
|
package/generated/recipes.css
CHANGED
|
@@ -5216,6 +5216,12 @@ button.ml-stepper-target:focus-visible {
|
|
|
5216
5216
|
box-shadow: var(--ml-shadow-xs);
|
|
5217
5217
|
}
|
|
5218
5218
|
|
|
5219
|
+
/* Focusable only while it scrolls; the ring sits inside, where it cannot be clipped. */
|
|
5220
|
+
.ml-table-container:focus-visible {
|
|
5221
|
+
outline: 2px solid var(--ml-focus);
|
|
5222
|
+
outline-offset: -2px;
|
|
5223
|
+
}
|
|
5224
|
+
|
|
5219
5225
|
.ml-table-card {
|
|
5220
5226
|
display: grid;
|
|
5221
5227
|
gap: var(--ml-space-4);
|
package/package.json
CHANGED
package/src/behavior-spec.mjs
CHANGED
|
@@ -180,6 +180,12 @@ export const behaviors = {
|
|
|
180
180
|
{ on: "close", set: "focus", to: "the element that opened the dialog", also: "release page scroll" },
|
|
181
181
|
{ on: "pointer down on the backdrop", set: "closed", to: "unless closing on backdrop is disabled" },
|
|
182
182
|
],
|
|
183
|
+
markup: {
|
|
184
|
+
"data-ml-opens": "on any control outside: the id of the dialog it opens",
|
|
185
|
+
"data-ml-for": "on the overlay: the id of its dialog",
|
|
186
|
+
"data-ml-close": "on any control inside that closes it, such as Cancel",
|
|
187
|
+
"role=\"alertdialog\"": "for a confirmation that interrupts",
|
|
188
|
+
},
|
|
183
189
|
},
|
|
184
190
|
|
|
185
191
|
sheet: {
|
|
@@ -200,6 +206,11 @@ export const behaviors = {
|
|
|
200
206
|
{ on: "open", set: "focus", to: "inside the panel", also: "lock page scroll" },
|
|
201
207
|
{ on: "close", set: "focus", to: "the trigger", also: "release page scroll" },
|
|
202
208
|
],
|
|
209
|
+
markup: {
|
|
210
|
+
"data-ml-opens": "on any control outside: the id of the panel it opens",
|
|
211
|
+
"data-ml-for": "on the overlay: the id of its panel",
|
|
212
|
+
"data-ml-close": "on any control inside that closes it",
|
|
213
|
+
},
|
|
203
214
|
notes: "Identical to modal apart from which edge it is anchored to.",
|
|
204
215
|
},
|
|
205
216
|
|