@cssints/headless 0.5.0 → 0.5.1
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/README.md +6 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -107,3 +107,9 @@ The specs, bridges and scenarios the tests replay are [`@cssints/apg-specs`](../
|
|
|
107
107
|
Not on npm yet: the package is in the Changesets `ignore` list until it joins the `fixed` group (RELEASING.md). Its manifest follows the other packages (`development` condition on `src`, `dist` for consumers, `publishConfig.directory`).
|
|
108
108
|
|
|
109
109
|
Solid 2 reminders: setters apply on the microtask flush (the DOM driver waits a frame after each step); pass props objects/getters, never destructure options.
|
|
110
|
+
|
|
111
|
+
## Research
|
|
112
|
+
|
|
113
|
+
- [docs/apg-platform-features.md](docs/apg-platform-features.md): which APG patterns are native, polyfilled or a library primitive.
|
|
114
|
+
- [docs/bottom-sheet.md](docs/bottom-sheet.md): a bottom sheet is native `<dialog>` plus CSS scroll snap, not a primitive.
|
|
115
|
+
- [docs/player-aria-contract.md](docs/player-aria-contract.md): the media player as a composition of slider, toolbar and the media element.
|
package/dist/index.d.mts
CHANGED
|
@@ -1043,7 +1043,7 @@ export interface Checkbox {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
/**
|
|
1045
1045
|
* APG Checkbox (https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/): one
|
|
1046
|
-
* dual-state, optionally tri-state, checkbox. Platform choice (docs/
|
|
1046
|
+
* dual-state, optionally tri-state, checkbox. Platform choice (packages/headless/docs/
|
|
1047
1047
|
* apg-platform-features.md): **native** `<input type=checkbox>` (+ the
|
|
1048
1048
|
* `indeterminate` JS property); this primitive exposes the polyfillable
|
|
1049
1049
|
* `role=checkbox` + `aria-checked` contract so the same state drives either
|
|
@@ -1121,7 +1121,7 @@ export interface CheckboxGroup<T = unknown> {
|
|
|
1121
1121
|
* (https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/): a controller whose
|
|
1122
1122
|
* `aria-checked` is derived from three children (all/none/mixed), plus the
|
|
1123
1123
|
* optional "remember the last mixed combination" cycle. Platform choice
|
|
1124
|
-
* (docs/
|
|
1124
|
+
* (packages/headless/docs/apg-platform-features.md): **native** checkboxes; the
|
|
1125
1125
|
* controller is a third checkbox with `aria-checked=mixed`.
|
|
1126
1126
|
*
|
|
1127
1127
|
* Request/commit (map ticket `rt1p`): uncontrolled by default (`defaultValue`);
|
|
@@ -2058,7 +2058,7 @@ export interface RadioGroup<T = unknown> {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
/**
|
|
2060
2060
|
* APG Radio Group (https://www.w3.org/WAI/ARIA/apg/patterns/radio/): a
|
|
2061
|
-
* `radiogroup` with `role=radio` items. Platform choice (docs/
|
|
2061
|
+
* `radiogroup` with `role=radio` items. Platform choice (packages/headless/docs/
|
|
2062
2062
|
* apg-platform-features.md): **native** `<input type=radio name>`; custom
|
|
2063
2063
|
* `role=radio` needs selection-follows-focus, which this primitive implements —
|
|
2064
2064
|
* arrows move focus AND check the next/previous enabled radio (wrapping), Space
|
|
@@ -2353,7 +2353,7 @@ export interface Switch {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
/**
|
|
2355
2355
|
* APG Switch (https://www.w3.org/WAI/ARIA/apg/patterns/switch/): a binary on/off
|
|
2356
|
-
* input. Platform choice (docs/
|
|
2356
|
+
* input. Platform choice (packages/headless/docs/apg-platform-features.md): **native
|
|
2357
2357
|
* `<input type=checkbox switch>`** as progressive enhancement (Safari only),
|
|
2358
2358
|
* with checkbox + `role=switch` as the safe baseline; this primitive exposes
|
|
2359
2359
|
* the `role=switch` + `aria-checked` contract. Space arms on keydown and fires
|
package/dist/index.mjs
CHANGED
|
@@ -1970,7 +1970,7 @@ const createCarousel = (options = {}) => {
|
|
|
1970
1970
|
//#region src/checkbox.ts
|
|
1971
1971
|
/**
|
|
1972
1972
|
* APG Checkbox (https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/): one
|
|
1973
|
-
* dual-state, optionally tri-state, checkbox. Platform choice (docs/
|
|
1973
|
+
* dual-state, optionally tri-state, checkbox. Platform choice (packages/headless/docs/
|
|
1974
1974
|
* apg-platform-features.md): **native** `<input type=checkbox>` (+ the
|
|
1975
1975
|
* `indeterminate` JS property); this primitive exposes the polyfillable
|
|
1976
1976
|
* `role=checkbox` + `aria-checked` contract so the same state drives either
|
|
@@ -2094,7 +2094,7 @@ const nextFocus = (focus) => {
|
|
|
2094
2094
|
* (https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/): a controller whose
|
|
2095
2095
|
* `aria-checked` is derived from three children (all/none/mixed), plus the
|
|
2096
2096
|
* optional "remember the last mixed combination" cycle. Platform choice
|
|
2097
|
-
* (docs/
|
|
2097
|
+
* (packages/headless/docs/apg-platform-features.md): **native** checkboxes; the
|
|
2098
2098
|
* controller is a third checkbox with `aria-checked=mixed`.
|
|
2099
2099
|
*
|
|
2100
2100
|
* Request/commit (map ticket `rt1p`): uncontrolled by default (`defaultValue`);
|
|
@@ -4300,7 +4300,7 @@ const createMeter = (options = {}) => {
|
|
|
4300
4300
|
//#region src/radio.ts
|
|
4301
4301
|
/**
|
|
4302
4302
|
* APG Radio Group (https://www.w3.org/WAI/ARIA/apg/patterns/radio/): a
|
|
4303
|
-
* `radiogroup` with `role=radio` items. Platform choice (docs/
|
|
4303
|
+
* `radiogroup` with `role=radio` items. Platform choice (packages/headless/docs/
|
|
4304
4304
|
* apg-platform-features.md): **native** `<input type=radio name>`; custom
|
|
4305
4305
|
* `role=radio` needs selection-follows-focus, which this primitive implements —
|
|
4306
4306
|
* arrows move focus AND check the next/previous enabled radio (wrapping), Space
|
|
@@ -4930,7 +4930,7 @@ const createSpinbutton = (options = {}) => {
|
|
|
4930
4930
|
//#region src/switch.ts
|
|
4931
4931
|
/**
|
|
4932
4932
|
* APG Switch (https://www.w3.org/WAI/ARIA/apg/patterns/switch/): a binary on/off
|
|
4933
|
-
* input. Platform choice (docs/
|
|
4933
|
+
* input. Platform choice (packages/headless/docs/apg-platform-features.md): **native
|
|
4934
4934
|
* `<input type=checkbox switch>`** as progressive enhancement (Safari only),
|
|
4935
4935
|
* with checkbox + `role=switch` as the safe baseline; this primitive exposes
|
|
4936
4936
|
* the `role=switch` + `aria-checked` contract. Space arms on keydown and fires
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssints/headless",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Headless APG widgets on Solid 2: state plus attribute objects, no elements, no styling, each conformance-checked against its Quint spec",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|