diff --git a/AGENTS.md b/AGENTS.md index 7381c1d8..412a7cd4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,8 +29,8 @@ make setup # once: the switch solidtype, all dependencies, and Bun's make test # the ppx's lowering, the plugin's rewrite, the # libraries' tests and the example's make lint # formatting, the plugin's and the generators' types, - # litany, the release build, the generators' rules and - # the generated bindings + # Hypha's rules by litany, the release build, the + # generators' rules and the generated bindings make fmt # format in place make generate # write the generated bindings make example # the board, built by Vite into _build/example-dist, and @@ -530,6 +530,23 @@ met each. Why: a hand-typed copy drifts from the version it binds. opening comment. Why: a user's agent reads what the release installs, offline. Test: the docs workflow fails if `agents/` differs from what the pages give. +- **The `litany` file holds all of Hypha's, and adds only what is + solidtype's**, each a `per-path` of files named one by one: + `heroui/toggle_button_group.mlx` compares accessors by identity, where a + button leaving the group removes its own; `example/server/serve.ml` and + `example/server/test_tasks.ml`, the board's server and its test, read + the environment, print and run the event loop, as a program under + `bin/` and a test under `test/` do; four forms of `docs/islands/` + log what was submitted, as HeroUI's own examples do, and take no + attribute, since a page shows each as it is written; and + `example/src/api.ml`, the board's client, is printed as the build runs + by Spindle and wiretype, whose printer holds it. A `` over a + `match` needs none: the arm the ppx writes for the other cases is + ghost, and every case is named in the match beside it. Why: one set of + rules holds every repository, and an exception is read with its + reason. Symptom: a rule dropped from `select` or `extend`, or a + `per-path` or a `[@litany.allow]` with no reason. Test: `make lint`'s + litany. ## Changes and releases diff --git a/CHANGES.md b/CHANGES.md index cf6f200a..8652afde 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,20 @@ # Changes +## 0.15.2 (2026-11-30) + +- A virtualized `Table` or `Data_grid` holds its pinned columns in view as + the page does an unvirtualized one's, sticky at their inset, where script + moved them after each step of a scroll: in WebKit, which scrolls off the + main thread, they trailed the scroll by a frame and the table shook. Its + header and body clip what overflows them, rather than hide it, when a + column is pinned. +- The arm `ppx_solidtype` writes for the other cases of a `` over + a `match` is marked as its own, so a project that runs litany's + `wildcard-over-owned-variant` no longer has a finding at each case. +- Every package installs the documentation for agents, `llms.txt` and every + page, in `$(opam var :doc)`, and every interface it installs + names its page there, or `llms.txt`. The README's *With an agent* says so. + ## 0.15.1 (2026-11-23) - `List_view`, a list of rows in HeroUI's look, on a headless diff --git a/README.md b/README.md index 9ebef2b6..1189caa6 100644 --- a/README.md +++ b/README.md @@ -37,14 +37,14 @@ Setting up dune and Vite to build it: ## With an agent -Each release installs its documentation for an agent with it, at -`$(opam var solidtype:doc)`: `llms.txt`, and every page in Markdown. An +Every package of solidtype installs its documentation for an agent with it, +at `$(opam var :doc)`: `llms.txt`, and every page in Markdown. An agent reads it when your project's `AGENTS.md` tells it to: ```md -Before writing code with solidtype, read `$(opam var solidtype:doc)/llms.txt` and -the pages it lists for the parts you need, and use those parts rather than -writing your own. +Before working with solidtype, read `llms.txt` in `$(opam var :doc)`, +for any solidtype package the project installs, then the pages it lists for +the parts you need, and use those parts rather than writing your own. ``` ## Licence diff --git a/agents/pages/heroui/combo-box.md b/agents/pages/heroui/combo-box.md index 0bc0f0f0..c0cdebb6 100644 --- a/agents/pages/heroui/combo-box.md +++ b/agents/pages/heroui/combo-box.md @@ -585,7 +585,7 @@ let make () = )> + Array.sub found 0 (Int.min (S.get loaded) (Array.length found)))> (fun name _ -> (Jsx.string name) diff --git a/agents/pages/heroui/data-grid.md b/agents/pages/heroui/data-grid.md index 15b8ea88..7b3b2284 100644 --- a/agents/pages/heroui/data-grid.md +++ b/agents/pages/heroui/data-grid.md @@ -1988,12 +1988,12 @@ let make () = members in let pages () = - max 1 ((Array.length (matching ()) + per_page - 1) / per_page) + Int.max 1 ((Array.length (matching ()) + per_page - 1) / per_page) in let shown () = let all = matching () in - let start = (min (S.get page) (pages ()) - 1) * per_page in - Array.sub all start (min per_page (Array.length all - start)) + let start = (Int.min (S.get page) (pages ()) - 1) * per_page in + Array.sub all start (Int.min per_page (Array.length all - start)) in let columns () = Js.Array.filter @@ -2094,7 +2094,8 @@ let make () = - S.update set_page (fun p -> max 1 (p - 1)))> + S.update set_page (fun p -> + Int.max 1 (p - 1)))> "Previous" @@ -2113,7 +2114,7 @@ let make () = is_disabled=(S.get page >= pages ()) on_press=(fun () -> S.update set_page (fun p -> - min (pages ()) (p + 1)))> + Int.min (pages ()) (p + 1)))> "Next" @@ -2380,7 +2381,7 @@ let make () = (string_of_int (((S.get page - 1) * per_page) + 1) ^ " to " ^ string_of_int - (min (S.get page * per_page) (Array.length invoices)) + (Int.min (S.get page * per_page) (Array.length invoices)) ^ " of " ^ string_of_int (Array.length invoices) ^ " invoices")) diff --git a/agents/pages/heroui/select.md b/agents/pages/heroui/select.md index 8790fd64..3d647ff3 100644 --- a/agents/pages/heroui/select.md +++ b/agents/pages/heroui/select.md @@ -734,7 +734,7 @@ let make () = let timer = Js.Global.setTimeout ~f:(fun () -> - S.set set_loaded (min (Array.length pokemon) (now + page)); + S.set set_loaded (Int.min (Array.length pokemon) (now + page)); S.set set_loading false) load_ms in diff --git a/agents/pages/heroui/table.md b/agents/pages/heroui/table.md index 6d526180..4e07df61 100644 --- a/agents/pages/heroui/table.md +++ b/agents/pages/heroui/table.md @@ -319,7 +319,7 @@ let make () = ~f:(fun () -> S.batch (fun () -> S.set set_count - (min (Array.length all_users) + (Int.min (Array.length all_users) (S.get count + items_per_page)); S.set set_loading false)) load_ms) diff --git a/agents/pages/heroui/toast.md b/agents/pages/heroui/toast.md index bc650fb0..1f81b072 100644 --- a/agents/pages/heroui/toast.md +++ b/agents/pages/heroui/toast.md @@ -525,7 +525,7 @@ let make () = let remember message () = S.update set_history (fun was -> let all = Array.append [| (message, local_time (now ())) |] was in - Array.sub all 0 (min 5 (Array.length all))) + Array.sub all 0 (Int.min 5 (Array.length all))) in
diff --git a/agents/pages/index.md b/agents/pages/index.md index db33cacf..cc5a93ac 100644 --- a/agents/pages/index.md +++ b/agents/pages/index.md @@ -70,7 +70,7 @@ GitHub release: "solid-js": "~1.9.17", "vite": "^8.3.0", "vite-plugin-solid": "^2.11.14", - "vite-plugin-solidtype": "https://github.com/hyphatech/solidtype/releases/download/0.15.1/vite-plugin-solidtype-0.15.1.tgz" + "vite-plugin-solidtype": "https://github.com/hyphatech/solidtype/releases/download/0.15.2/vite-plugin-solidtype-0.15.2.tgz" } } ``` diff --git a/agents/pages/solid/state.md b/agents/pages/solid/state.md index 9bf2e516..5350d49b 100644 --- a/agents/pages/solid/state.md +++ b/agents/pages/solid/state.md @@ -21,7 +21,8 @@ let make () = let player, set_player = Store.create_store { volume = 5; muted = false } in let louder () = Store.modify set_player - (Store.produce (fun draft -> draft.volume <- min 10 (draft.volume + 1))) + (Store.produce (fun draft -> + draft.volume <- Int.min 10 (draft.volume + 1))) in
diff --git a/headless/top_layer.mli b/headless/top_layer.mli index 8bda0831..01cee5ef 100644 --- a/headless/top_layer.mli +++ b/headless/top_layer.mli @@ -5,6 +5,9 @@ which HeroUI's styles leave out of a popover's. The top layer leaves no number to agree on. + Its documents, a page for each part: + [$(opam var solidtype-headless:doc)/llms.txt]. + An overlay is placed by giving its portal's element to [place], as a [ref]: Solid gives a portal's [ref] its element once it is in the document, where alone a browser places one. diff --git a/headless/virtualizer.mli b/headless/virtualizer.mli index a89f7558..28ef38c8 100644 --- a/headless/virtualizer.mli +++ b/headless/virtualizer.mli @@ -6,6 +6,9 @@ draws no style, and is no element: a collection reads it by {!Context.use} and places its entries by {!val-window}. + Its documents, a page for each part: + [$(opam var solidtype-headless:doc)/llms.txt]. + {[ diff --git a/heroui/accordion.mli b/heroui/accordion.mli index 8803f950..0d733d7b 100644 --- a/heroui/accordion.mli +++ b/heroui/accordion.mli @@ -3,7 +3,7 @@ classes from {!Styles.Accordion}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/accordion.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/accordion.md]. {[ diff --git a/heroui/action_bar.mli b/heroui/action_bar.mli index b3472256..f4e1dfb2 100644 --- a/heroui/action_bar.mli +++ b/heroui/action_bar.mli @@ -6,7 +6,7 @@ classes. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/action-bar.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/action-bar.md]. {[ 0)> diff --git a/heroui/alert.mli b/heroui/alert.mli index 6ba0d1f4..efbef74c 100644 --- a/heroui/alert.mli +++ b/heroui/alert.mli @@ -4,7 +4,7 @@ inside it, as HeroUI's is. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/alert.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/alert.md]. {[ diff --git a/heroui/alert_dialog.mli b/heroui/alert_dialog.mli index f2ff8079..7c197262 100644 --- a/heroui/alert_dialog.mli +++ b/heroui/alert_dialog.mli @@ -3,7 +3,7 @@ before going on. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/alert-dialog.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/alert-dialog.md]. {[ diff --git a/heroui/autocomplete.mli b/heroui/autocomplete.mli index 2312f907..d0532b34 100644 --- a/heroui/autocomplete.mli +++ b/heroui/autocomplete.mli @@ -3,7 +3,7 @@ {!Styles.Autocomplete}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/autocomplete.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/autocomplete.md]. {[ diff --git a/heroui/avatar.mli b/heroui/avatar.mli index a0c5e074..8d5783a2 100644 --- a/heroui/avatar.mli +++ b/heroui/avatar.mli @@ -3,7 +3,7 @@ {!Fallback} until then, or where it cannot. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/avatar.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/avatar.md]. {[ diff --git a/heroui/avatar_group.mli b/heroui/avatar_group.mli index e67ba653..6cea9e45 100644 --- a/heroui/avatar_group.mli +++ b/heroui/avatar_group.mli @@ -5,7 +5,7 @@ {!Count} of its own. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/avatar-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/avatar-group.md]. {[ diff --git a/heroui/badge.mli b/heroui/badge.mli index 8c9ecb1b..7bb617c2 100644 --- a/heroui/badge.mli +++ b/heroui/badge.mli @@ -3,7 +3,7 @@ own wraps a string or a number; with nothing, it is a dot. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/badge.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/badge.md]. {[ diff --git a/heroui/breadcrumbs.mli b/heroui/breadcrumbs.mli index 1443db9d..eb6f1686 100644 --- a/heroui/breadcrumbs.mli +++ b/heroui/breadcrumbs.mli @@ -3,7 +3,7 @@ HeroUI's classes from {!Styles.Breadcrumbs}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/breadcrumbs.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/breadcrumbs.md]. {[ diff --git a/heroui/button.mli b/heroui/button.mli index 01b3a6b8..415e2406 100644 --- a/heroui/button.mli +++ b/heroui/button.mli @@ -8,7 +8,7 @@ is disabled in a disabled {!Fieldset} where neither it nor its group says. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/button.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/button.md]. {[ diff --git a/heroui/button_group.mli b/heroui/button_group.mli index 0705dca9..b867a7c4 100644 --- a/heroui/button_group.mli +++ b/heroui/button_group.mli @@ -5,7 +5,7 @@ {!Separator} inside a button, but the first, draws a line before it. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/button-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/button-group.md]. {[ diff --git a/heroui/calendar.mli b/heroui/calendar.mli index 976e8380..feeae477 100644 --- a/heroui/calendar.mli +++ b/heroui/calendar.mli @@ -5,7 +5,7 @@ a year picker over its grid chooses the year shown. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/calendar.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/calendar.md]. {[ diff --git a/heroui/calendar.mlx b/heroui/calendar.mlx index 2d3ba64e..dca01922 100644 --- a/heroui/calendar.mlx +++ b/heroui/calendar.mlx @@ -1190,10 +1190,10 @@ module Year_picker_grid = struct | at -> ( let next = match key e with - | "ArrowRight" -> Some (min (at + 1) (n - 1)) - | "ArrowLeft" -> Some (max (at - 1) 0) - | "ArrowDown" -> Some (min (at + 3) (n - 1)) - | "ArrowUp" -> Some (max (at - 3) 0) + | "ArrowRight" -> Some (Int.min (at + 1) (n - 1)) + | "ArrowLeft" -> Some (Int.max (at - 1) 0) + | "ArrowDown" -> Some (Int.min (at + 3) (n - 1)) + | "ArrowUp" -> Some (Int.max (at - 3) 0) | "Home" -> Some 0 | "End" -> Some (n - 1) | _ -> None diff --git a/heroui/card.mli b/heroui/card.mli index 4ed3a0d4..7040c0f1 100644 --- a/heroui/card.mli +++ b/heroui/card.mli @@ -3,7 +3,7 @@ what is inside it by {!Surface.Context}, as HeroUI's does. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/card.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/card.md]. {[ diff --git a/heroui/checkbox.mli b/heroui/checkbox.mli index fe82f869..6df925ed 100644 --- a/heroui/checkbox.mli +++ b/heroui/checkbox.mli @@ -8,7 +8,7 @@ group's, and takes the group's variant where it sets none, and its state. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/checkbox.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/checkbox.md]. {[ diff --git a/heroui/checkbox_group.mli b/heroui/checkbox_group.mli index 13d78a35..c32fc5b5 100644 --- a/heroui/checkbox_group.mli +++ b/heroui/checkbox_group.mli @@ -8,7 +8,7 @@ the {!Fieldset} it is in is. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/checkbox-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/checkbox-group.md]. {[ diff --git a/heroui/chip.mli b/heroui/chip.mli index e21b5085..b1522d8f 100644 --- a/heroui/chip.mli +++ b/heroui/chip.mli @@ -3,7 +3,7 @@ HeroUI's own wraps a string or a number. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/chip.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/chip.md]. {[ "Shipped" diff --git a/heroui/close_button.mli b/heroui/close_button.mli index b81cd0b8..b89aeb33 100644 --- a/heroui/close_button.mli +++ b/heroui/close_button.mli @@ -7,7 +7,7 @@ [onPress]. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/close-button.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/close-button.md]. {[ close ()) /> diff --git a/heroui/color_area.mli b/heroui/color_area.mli index d42259ee..fe4fc372 100644 --- a/heroui/color_area.mli +++ b/heroui/color_area.mli @@ -5,7 +5,7 @@ and Page Down, Home and End. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/color-area.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/color-area.md]. {[ diff --git a/heroui/color_field.mli b/heroui/color_field.mli index 14730e1a..d0520b20 100644 --- a/heroui/color_field.mli +++ b/heroui/color_field.mli @@ -9,7 +9,7 @@ {!Field_error} shows while it is invalid. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/color-field.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/color-field.md]. {[ diff --git a/heroui/color_picker.mli b/heroui/color_picker.mli index 8794c5fa..5a5439b1 100644 --- a/heroui/color_picker.mli +++ b/heroui/color_picker.mli @@ -3,7 +3,7 @@ HeroUI's classes from {!Styles.ColorPicker}. Kobalte has no colour picker. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/color-picker.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/color-picker.md]. {[ diff --git a/heroui/color_slider.mli b/heroui/color_slider.mli index 464bec27..f45a5f8a 100644 --- a/heroui/color_slider.mli +++ b/heroui/color_slider.mli @@ -5,7 +5,7 @@ and End to its ends. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/color-slider.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/color-slider.md]. {[ diff --git a/heroui/color_swatch_picker.mli b/heroui/color_swatch_picker.mli index aa91b4f1..20786d16 100644 --- a/heroui/color_swatch_picker.mli +++ b/heroui/color_swatch_picker.mli @@ -4,7 +4,7 @@ list is made of Kobalte's list hooks, as Kobalte makes its own. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/color-swatch-picker.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/color-swatch-picker.md]. {[ diff --git a/heroui/combo_box.mli b/heroui/combo_box.mli index 2de35790..fdaf9257 100644 --- a/heroui/combo_box.mli +++ b/heroui/combo_box.mli @@ -3,7 +3,7 @@ HeroUI's classes from {!Styles.ComboBox}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/combo-box.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/combo-box.md]. {[ diff --git a/heroui/command.mli b/heroui/command.mli index f28091de..8a125af9 100644 --- a/heroui/command.mli +++ b/heroui/command.mli @@ -3,7 +3,7 @@ [Dialog]; its look is [command.css]'s, in the components layer. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/command.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/command.md]. {[ diff --git a/heroui/data_grid.mli b/heroui/data_grid.mli index fb184e1e..e0fffeda 100644 --- a/heroui/data_grid.mli +++ b/heroui/data_grid.mli @@ -7,7 +7,7 @@ over HeroUI's table: a rule for a part's class restyles it. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/data-grid.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/data-grid.md]. {[ let columns = diff --git a/heroui/date_field.mli b/heroui/date_field.mli index 80ee4a36..3b1aff06 100644 --- a/heroui/date_field.mli +++ b/heroui/date_field.mli @@ -7,7 +7,7 @@ form as \@internationalized/date writes it, [2026-11-21]. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/date-field.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/date-field.md]. {[ diff --git a/heroui/date_picker.mli b/heroui/date_picker.mli index b33678f2..46e131f0 100644 --- a/heroui/date_picker.mli +++ b/heroui/date_picker.mli @@ -6,7 +6,7 @@ {!Date_field.Suffix}, and the calendar in the popover. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/date-picker.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/date-picker.md]. {[ diff --git a/heroui/date_range_picker.mli b/heroui/date_range_picker.mli index 40d88c5a..9ec94f11 100644 --- a/heroui/date_range_picker.mli +++ b/heroui/date_range_picker.mli @@ -9,7 +9,7 @@ popover are {!Date_picker}'s, in the range's look. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/date-range-picker.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/date-range-picker.md]. {[ diff --git a/heroui/description.mli b/heroui/description.mli index 70aed0ca..17e7b292 100644 --- a/heroui/description.mli +++ b/heroui/description.mli @@ -5,7 +5,7 @@ the field's input is described by. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/description.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/description.md]. {[ "Includes 100 messages per month" diff --git a/heroui/dialog_frame.mli b/heroui/dialog_frame.mli index f3cac42d..de1da48c 100644 --- a/heroui/dialog_frame.mli +++ b/heroui/dialog_frame.mli @@ -2,6 +2,9 @@ [Dialog]: each port's parts are its own components, with its own classes, names and defaults, and call these for what they do alike. + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. + A dialog's root is Kobalte's, modal, and gives any {!Button} below it Kobalte's trigger, shown pressed while the dialog is open. Its backdrop is drawn in a portal while the dialog is open and while HeroUI's exit animation diff --git a/heroui/disclosure.mli b/heroui/disclosure.mli index db59757d..62fef757 100644 --- a/heroui/disclosure.mli +++ b/heroui/disclosure.mli @@ -3,7 +3,7 @@ holds the button that expands and collapses it, and its content follows. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/disclosure.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/disclosure.md]. {[ diff --git a/heroui/disclosure_group.mli b/heroui/disclosure_group.mli index 65e1c7be..9420e64c 100644 --- a/heroui/disclosure_group.mli +++ b/heroui/disclosure_group.mli @@ -3,7 +3,7 @@ {!Styles.DisclosureGroup}. A [
]. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/disclosure-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/disclosure-group.md]. {[ diff --git a/heroui/drawer.mli b/heroui/drawer.mli index 8c5dd1b8..e0231bf9 100644 --- a/heroui/drawer.mli +++ b/heroui/drawer.mli @@ -2,7 +2,7 @@ with HeroUI's classes from {!Styles.Drawer}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/drawer.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/drawer.md]. {[ diff --git a/heroui/dropdown.mli b/heroui/dropdown.mli index 295db67e..56d6959a 100644 --- a/heroui/dropdown.mli +++ b/heroui/dropdown.mli @@ -3,7 +3,7 @@ {!Styles.MenuItem} and {!Styles.MenuSection}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/dropdown.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/dropdown.md]. {[ diff --git a/heroui/empty_state.mli b/heroui/empty_state.mli index fbd5745e..dfe9a40c 100644 --- a/heroui/empty_state.mli +++ b/heroui/empty_state.mli @@ -3,7 +3,7 @@ nothing to show, and says "No results found" unless it is given children. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/empty-state.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/empty-state.md]. {[ "No tasks yet" diff --git a/heroui/error_message.mli b/heroui/error_message.mli index 70cb3d0f..dc3e2be4 100644 --- a/heroui/error_message.mli +++ b/heroui/error_message.mli @@ -3,7 +3,7 @@ nothing outside one; a field's error is a {!Field_error}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/error-message.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/error-message.md]. {[ diff --git a/heroui/field.mli b/heroui/field.mli index b6b69e39..0e69e687 100644 --- a/heroui/field.mli +++ b/heroui/field.mli @@ -1,7 +1,10 @@ (** What HeroUI's fields share -- a switch, a checkbox, a radio: the state their content shows, a value controlled or kept, and the content, the clickable label that holds the control and its {!Label}, with Kobalte's input inside - it, as React Aria's is. *) + it, as React Aria's is. + + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. *) module S := Solidtype.Solid module Jsx := Solidtype.Jsx diff --git a/heroui/field.mlx b/heroui/field.mlx index 98ea0021..d602c62c 100644 --- a/heroui/field.mlx +++ b/heroui/field.mlx @@ -16,14 +16,14 @@ type state = { interaction : Interaction.t; } -let controlled ~value ~default ~on_change = +let controlled (type r) ~value ~default ~(on_change : _ -> r) = let own, set_own = S.create_signal default in let get = S.accessor (fun () -> match value () with Some v -> v | None -> S.get own) in let set v = S.set set_own v; - ignore (on_change v) + ignore (on_change v : r) in (get, set) @@ -36,13 +36,13 @@ external current_target : Dom.focusEvent -> Dom.element = "currentTarget" external contains : Dom.element -> Dom.element -> bool = "contains" [@@mel.send] -let on_leave on_blur e = +let on_leave (type r) (on_blur : _ -> r) e = let left = match Js.Nullable.toOption (related_target e) with | Some next -> not (contains (current_target e) next) | None -> true in - if left then ignore (on_blur e) + if left then ignore (on_blur e : r) (* A label inside a control's own clickable label is a span: a label in a label is not HTML. *) diff --git a/heroui/field_error.mli b/heroui/field_error.mli index 60f79c90..43fe6d49 100644 --- a/heroui/field_error.mli +++ b/heroui/field_error.mli @@ -4,7 +4,7 @@ and its input is described by. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/field-error.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/field-error.md]. {[ "Enter a valid email." diff --git a/heroui/fieldset.mli b/heroui/fieldset.mli index 435856c6..dc71fcbc 100644 --- a/heroui/fieldset.mli +++ b/heroui/fieldset.mli @@ -7,7 +7,7 @@ [is_disabled] is its own. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/fieldset.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/fieldset.md]. {[
diff --git a/heroui/form.mli b/heroui/form.mli index 427cef43..0b5ba816 100644 --- a/heroui/form.mli +++ b/heroui/form.mli @@ -6,7 +6,7 @@ a change, or until the errors are given again. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/form.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/form.md]. {[
"Actions"
diff --git a/heroui/inline_select.mli b/heroui/inline_select.mli index bb498c30..4c1adc5e 100644 --- a/heroui/inline_select.mli +++ b/heroui/inline_select.mli @@ -5,7 +5,7 @@ layer, rules for its classes. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/inline-select.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/inline-select.md]. {[ diff --git a/heroui/input.mli b/heroui/input.mli index b21823e3..b84b5c34 100644 --- a/heroui/input.mli +++ b/heroui/input.mli @@ -8,7 +8,7 @@ where it sets none. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/input.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/input.md]. {[ diff --git a/heroui/input_group.mli b/heroui/input_group.mli index 9c28d40a..9c34e10d 100644 --- a/heroui/input_group.mli +++ b/heroui/input_group.mli @@ -5,7 +5,7 @@ field's label names, and it takes the field's variant where it sets none. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/input-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/input-group.md]. {[ diff --git a/heroui/interaction.mli b/heroui/interaction.mli index 2a1c591f..5d245647 100644 --- a/heroui/interaction.mli +++ b/heroui/interaction.mli @@ -3,6 +3,9 @@ HeroUI's styles read: [data-hovered], [data-pressed], [data-focused], [data-focus-visible] and [data-disabled], each ["true"] or absent. + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. + Kobalte gives its parts their behaviour and their ARIA state, but none of these. A port makes the state, has it listen to the element Kobalte renders, and declares each attribute, which Solid then writes, on the server as in diff --git a/heroui/kbd.mli b/heroui/kbd.mli index 47116eb7..8faea800 100644 --- a/heroui/kbd.mli +++ b/heroui/kbd.mli @@ -3,7 +3,7 @@ rest by its text. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/kbd.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/kbd.md]. {[ diff --git a/heroui/label.mli b/heroui/label.mli index 6ed87626..f72ff4ec 100644 --- a/heroui/label.mli +++ b/heroui/label.mli @@ -6,7 +6,7 @@ field's, which names its input, inside a {!Text_field}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/label.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/label.md]. {[ diff --git a/heroui/link.mli b/heroui/link.mli index 65d11e5e..2acb49bf 100644 --- a/heroui/link.mli +++ b/heroui/link.mli @@ -4,7 +4,7 @@ {!Fieldset} it is in is. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/link.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/link.md]. {[ "HeroUI" diff --git a/heroui/list_box.mli b/heroui/list_box.mli index a3509e55..7c2ba7ab 100644 --- a/heroui/list_box.mli +++ b/heroui/list_box.mli @@ -3,7 +3,7 @@ {!Styles.ListboxItem} and {!Styles.ListboxSection}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/list-box.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/list-box.md]. {[ diff --git a/heroui/list_view.mli b/heroui/list_view.mli index da95509b..d5aaff44 100644 --- a/heroui/list_view.mli +++ b/heroui/list_view.mli @@ -5,7 +5,7 @@ [components] layer, rules for its classes. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/list-view.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/list-view.md]. {[ diff --git a/heroui/meter.mli b/heroui/meter.mli index 0f68ec75..5e2d15b1 100644 --- a/heroui/meter.mli +++ b/heroui/meter.mli @@ -5,7 +5,7 @@ {!Track} as the value is far along the range. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/meter.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/meter.md]. {[ diff --git a/heroui/modal.mli b/heroui/modal.mli index 553a4056..a4991420 100644 --- a/heroui/modal.mli +++ b/heroui/modal.mli @@ -2,7 +2,7 @@ {!Styles.Modal}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/modal.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/modal.md]. {[ diff --git a/heroui/number_field.mli b/heroui/number_field.mli index 635ad541..45416944 100644 --- a/heroui/number_field.mli +++ b/heroui/number_field.mli @@ -6,7 +6,7 @@ it is invalid. It submits its value with a form by Kobalte's hidden input. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/number-field.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/number-field.md]. {[ diff --git a/heroui/number_stepper.mli b/heroui/number_stepper.mli index a4fb5197..052fa4e7 100644 --- a/heroui/number_stepper.mli +++ b/heroui/number_stepper.mli @@ -4,7 +4,7 @@ the field's. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/number-stepper.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/number-stepper.md]. {[ diff --git a/heroui/overlay.mli b/heroui/overlay.mli index 40774a2f..4ed43d59 100644 --- a/heroui/overlay.mli +++ b/heroui/overlay.mli @@ -3,6 +3,9 @@ while it is open and while its exit animation plays after, and it is entering, then exiting, while HeroUI's keyframes for each run. + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. + {[ let o = Overlay.create ~is_open () in diff --git a/heroui/pagination.mli b/heroui/pagination.mli index e92993f3..5f4f1990 100644 --- a/heroui/pagination.mli +++ b/heroui/pagination.mli @@ -3,7 +3,7 @@ {!Styles.Pagination}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/pagination.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/pagination.md]. {[ diff --git a/heroui/panel.mli b/heroui/panel.mli index b8e91273..f51d055d 100644 --- a/heroui/panel.mli +++ b/heroui/panel.mli @@ -4,6 +4,9 @@ [--disclosure-panel-width] and [--disclosure-panel-height], as React Aria sizes its disclosure's panel. + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. + It grows from no size to its own, measured once it is shown, and takes its own as it changes once its transition ends; it shrinks from its size to none, its size read first so the transition starts from it, and is hidden diff --git a/heroui/popover.mli b/heroui/popover.mli index 0f75b623..33e048d3 100644 --- a/heroui/popover.mli +++ b/heroui/popover.mli @@ -2,7 +2,7 @@ {!Styles.Popover} and its arrow. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/popover.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/popover.md]. {[ diff --git a/heroui/progress_bar.mli b/heroui/progress_bar.mli index f9d70885..d141285a 100644 --- a/heroui/progress_bar.mli +++ b/heroui/progress_bar.mli @@ -6,7 +6,7 @@ is far along the range. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/progress-bar.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/progress-bar.md]. {[ diff --git a/heroui/progress_circle.mli b/heroui/progress_circle.mli index eecfa240..6e5ea22f 100644 --- a/heroui/progress_circle.mli +++ b/heroui/progress_circle.mli @@ -6,7 +6,7 @@ animate it. No label names it, so it is named by its [aria_label]. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/progress-circle.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/progress-circle.md]. {[ diff --git a/heroui/radio.mli b/heroui/radio.mli index edee08e5..5a615587 100644 --- a/heroui/radio.mli +++ b/heroui/radio.mli @@ -5,6 +5,9 @@ inside it, but outside its content, is the radio's, which its input is described by. + Its documents, a page for each part: + [$(opam var solidtype-heroui:doc)/llms.txt]. + {[ diff --git a/heroui/radio_group.mli b/heroui/radio_group.mli index 9a8466c2..10950a0d 100644 --- a/heroui/radio_group.mli +++ b/heroui/radio_group.mli @@ -9,7 +9,7 @@ documentation names them. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/radio-group.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/radio-group.md]. {[ diff --git a/heroui/range_calendar.mli b/heroui/range_calendar.mli index d2f81a6c..7815c1f0 100644 --- a/heroui/range_calendar.mli +++ b/heroui/range_calendar.mli @@ -5,7 +5,7 @@ [range-calendar__cell-button], chosen at the range's ends. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/range-calendar.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/range-calendar.md]. {[ diff --git a/heroui/rating.mli b/heroui/rating.mli index bf40a74b..b8e48ed7 100644 --- a/heroui/rating.mli +++ b/heroui/rating.mli @@ -6,7 +6,7 @@ [components] layer, rules for its classes. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/rating.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/rating.md]. {[ diff --git a/heroui/scroll_shadow.mli b/heroui/scroll_shadow.mli index 23cdf9ec..0be6ba3c 100644 --- a/heroui/scroll_shadow.mli +++ b/heroui/scroll_shadow.mli @@ -6,7 +6,7 @@ where content is hidden at both -- or the edges its [visibility] gives. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/scroll-shadow.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/scroll-shadow.md]. {[ (long_text ()) diff --git a/heroui/scroll_shadow.mlx b/heroui/scroll_shadow.mlx index 8c8f2247..df443489 100644 --- a/heroui/scroll_shadow.mlx +++ b/heroui/scroll_shadow.mlx @@ -160,7 +160,8 @@ let%component make ?(orientation : [ `vertical | `horizontal ] = `vertical) (* Checked first, then watched, as HeroUI's hook does, so what the first check writes is no change to the content. *) S.create_effect (fun () -> - ignore (S.get orientation, S.get offset); + ignore + ((S.get orientation, S.get offset) : [ `vertical | `horizontal ] * int); if measuring () then check () else S.set set_measured None); (* Measured again as it scrolls, as it is resized, and as its content changes, which resizes neither it nor scrolls it. *) diff --git a/heroui/search_field.mli b/heroui/search_field.mli index e6caca7b..b056b9be 100644 --- a/heroui/search_field.mli +++ b/heroui/search_field.mli @@ -5,7 +5,7 @@ are Kobalte's. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/search-field.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/search-field.md]. {[ search query)> diff --git a/heroui/segment.mli b/heroui/segment.mli index e4d558ee..603e5d9b 100644 --- a/heroui/segment.mli +++ b/heroui/segment.mli @@ -3,7 +3,7 @@ segment.css's. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/segment.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/segment.md]. {[ diff --git a/heroui/select.mli b/heroui/select.mli index 45353de2..d827e14d 100644 --- a/heroui/select.mli +++ b/heroui/select.mli @@ -3,7 +3,7 @@ classes from {!Styles.Select}. Its page, with its examples: - [$(opam var solidtype:doc)/pages/heroui/select.md]. + [$(opam var solidtype-heroui:doc)/pages/heroui/select.md]. {[