@uniflowed/ui 0.10.0 → 0.11.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/index.js CHANGED
@@ -99,7 +99,7 @@
99
99
  // `InputOtp.Separator`, `Tooltip.Trigger`, `Tooltip.Body`,
100
100
  // `HoverCard.Trigger`, `HoverCard.Body` and `Sidebar.Item`. A documented
101
101
  // escape hatch that is not there is worse than an undocumented one that is, so
102
- // the state of every part is a table in `packages/ui/ui.test.js` rather than a
102
+ // the state of every part is a table in `npm/ui/ui.test.js` rather than a
103
103
  // claim in this paragraph: it names each part as implemented, no-element, or
104
104
  // fixed remainder, and the suite holds the lists to the exported files. A part
105
105
  // added to this barrel is in none of them and the suite says so.
@@ -121,7 +121,7 @@
121
121
  // that is still checked.
122
122
  //
123
123
  // **What the CLI adds.** `uf ui add`, `uf ui list` and `uf ui diff`, over a
124
- // registry of styled components in `registry/ui/` that is embedded into the
124
+ // registry of styled components in `npm/ui/registry/` that is embedded into the
125
125
  // binary — each one built on parts exported here, and none of them a copy of
126
126
  // one. There is still no registry of *primitives*, for the reason the previous
127
127
  // paragraph gives, and there is no `components.json`: `uf.config.js` is the one
@@ -404,7 +404,7 @@ export type { ToggleGroupType } from "./toggle-group.js";
404
404
  * Each takes `render`, so the control or line a design system already has — a
405
405
  * `<div>` with a knob drawn in it, somebody's `<Pressable>`, a presentational
406
406
  * meter shell — keeps the role, state, keys and attributes while being their
407
- * element. See the module headers and the table in `packages/ui/ui.test.js`.
407
+ * element. See the module headers and the table in `npm/ui/ui.test.js`.
408
408
  */
409
409
  export { Checkbox } from "./checkbox.js";
410
410
  export { Progress } from "./progress.js";
@@ -52,7 +52,7 @@
52
52
  // two different places, and which one a reader gets depends on their browser.
53
53
  // Shipping one tier that both engines run is worth more than shipping the
54
54
  // faster one to some of them, so this module measures. It is the reason
55
- // `packages/ui` has no `CSS.supports` in it: there is nothing to branch on.
55
+ // `npm/ui` has no `CSS.supports` in it: there is nothing to branch on.
56
56
  //
57
57
  // The measuring is kept cheap rather than clever. A placement is computed on
58
58
  // open, on a scroll anywhere in the page, on a viewport resize and on a resize
@@ -48,7 +48,7 @@
48
48
  // arithmetic is where calendar bugs come from in the first place.
49
49
  //
50
50
  // The specifier is `@uniflowed/core/temporal` rather than `@uniflowed/temporal`,
51
- // which is the same object — `packages/temporal/index.js` is a re-export and
51
+ // which is the same object — `npm/temporal/index.js` is a re-export and
52
52
  // says so. It has to be that one: `@uniflowed/ui` is published to npm,
53
53
  // `@uniflowed/temporal` is not yet (its calendar surface waits on the native
54
54
  // runtime), and `tools/ci/publishable.sh` refuses a published package that
@@ -90,7 +90,7 @@ export type Rest = { readonly key?: empty, readonly [string]: mixed };
90
90
  /**
91
91
  * The escape hatch: a caller's element in place of the part's own.
92
92
  *
93
- * `@uniflowed/ui` has no copy step — `packages/ui/index.js`'s header argues
93
+ * `@uniflowed/ui` has no copy step — `npm/ui/index.js`'s header argues
94
94
  * that at length — and the thing a copy step is *for* is changing the markup. A
95
95
  * part that always renders a `<button>` cannot be the link a menu of links
96
96
  * needs; a heading fixed at `<h2>` is wrong inside an accordion. This is what
package/internal/range.js CHANGED
@@ -36,7 +36,7 @@
36
36
  // `ArrowRight` adds a step in a left-to-right page and subtracts one in a
37
37
  // right-to-left page, because the reader is asking for "further along" and
38
38
  // further along is the other way. `isReversed` answers that from the element
39
- // the key arrived on, which is the answer `packages/ui/index.js` prescribes:
39
+ // the key arrived on, which is the answer `npm/ui/index.js` prescribes:
40
40
  // the direction is something the DOM knows, so it is read in an event handler
41
41
  // rather than provided through a context a caller has to remember to render.
42
42
  //
@@ -29,7 +29,7 @@
29
29
  //
30
30
  // A public selection manager would be a second way to build a collection, and
31
31
  // the point of this package is that there is one. The collections are the
32
- // public surface; `packages/ui/index.js` says why the internals stay internal.
32
+ // public surface; `npm/ui/index.js` says why the internals stay internal.
33
33
 
34
34
  export type SelectionMode = "none" | "single" | "multiple";
35
35
  export type SelectionBehavior = "toggle" | "replace";
@@ -5,7 +5,7 @@
5
5
  // Its own module, with no `"use client"`, so a part that renders on the server
6
6
  // can import it without importing `visually-hidden.js` — a client module whose
7
7
  // every export is a client reference to a Server Component. Internal for the
8
- // reason `packages/ui/index.js` gives about every module here: the public
8
+ // reason `npm/ui/index.js` gives about every module here: the public
9
9
  // answer is `VisuallyHidden`.
10
10
 
11
11
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniflowed/ui",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Headless, accessible React components whose composition Flow checks, part of the Unified Toolchain for Flow.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/ubugeeei-prod/uf.git",
11
- "directory": "packages/ui"
11
+ "directory": "npm/ui"
12
12
  },
13
13
  "exports": {
14
14
  ".": "./index.js"
@@ -16,13 +16,14 @@
16
16
  "files": [
17
17
  "*.js",
18
18
  "internal",
19
+ "!registry",
19
20
  "!*.test.js"
20
21
  ],
21
22
  "dependencies": {
22
- "@uniflowed/core": "0.10.0",
23
- "@uniflowed/hooks": "0.10.0",
24
- "@uniflowed/react": "0.10.0",
25
- "@uniflowed/state": "0.10.0"
23
+ "@uniflowed/core": "0.11.0",
24
+ "@uniflowed/hooks": "0.11.0",
25
+ "@uniflowed/react": "0.11.0",
26
+ "@uniflowed/state": "0.11.0"
26
27
  },
27
28
  "peerDependencies": {
28
29
  "react": ">=19"