@mistriwork/ui 1.0.0-rc.13 → 1.0.0-rc.15
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/dist/Icon.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/ruler.d.ts +1 -1
- package/dist/internal/ruler.js +1 -1
- package/dist/primitives.css +1 -1
- package/dist/tokens.css +5 -2
- package/package.json +1 -1
package/dist/Icon.js
CHANGED
|
@@ -95,5 +95,5 @@ export function Icon({ name, label, size = '1em', weight, className }) {
|
|
|
95
95
|
loadEveryGlyph();
|
|
96
96
|
}, [own]);
|
|
97
97
|
const accessibleLabel = label?.trim() || undefined;
|
|
98
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "currentColor", viewBox: "0 0 256 256", className: `
|
|
98
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "currentColor", viewBox: "0 0 256 256", className: `mistri-icon${className ? ` ${className}` : ''}`, role: accessibleLabel ? 'img' : undefined, "aria-label": accessibleLabel, "aria-hidden": accessibleLabel ? undefined : true, focusable: "false", children: drawing?.map((d, index) => (_jsx("path", { d: d }, index))) }));
|
|
99
99
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @mistriwork/ui: the primitives every dialog, menu, listbox, icon and form here is drawn with, over Base UI and dressed in
|
|
3
|
-
* the house classes (`modal`, `dd-*`, `btn`, `form-field`, `date-field`, `
|
|
3
|
+
* the house classes (`modal`, `dd-*`, `btn`, `form-field`, `date-field`, `mistri-icon`), which its own stylesheet styles
|
|
4
4
|
* (`@mistriwork/ui/style.css`). A primitive reads no walk, no address, no transport and no copy catalog: its words, its
|
|
5
5
|
* icons, its answers and its hooks are props (scripts/check-boundary.mjs holds the `ui` layer to importing only
|
|
6
6
|
* itself).
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @mistriwork/ui: the primitives every dialog, menu, listbox, icon and form here is drawn with, over Base UI and dressed in
|
|
3
|
-
* the house classes (`modal`, `dd-*`, `btn`, `form-field`, `date-field`, `
|
|
3
|
+
* the house classes (`modal`, `dd-*`, `btn`, `form-field`, `date-field`, `mistri-icon`), which its own stylesheet styles
|
|
4
4
|
* (`@mistriwork/ui/style.css`). A primitive reads no walk, no address, no transport and no copy catalog: its words, its
|
|
5
5
|
* icons, its answers and its hooks are props (scripts/check-boundary.mjs holds the `ui` layer to importing only
|
|
6
6
|
* itself).
|
package/dist/internal/ruler.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* offsetWidth/offsetHeight are already layout pixels and stay as read.
|
|
12
12
|
*
|
|
13
13
|
* The root is the page's own element unless a shell says otherwise: an
|
|
14
|
-
* embedded shell wears its zoom on its own `.
|
|
14
|
+
* embedded shell wears its zoom on its own `.mistri-root` and names it with
|
|
15
15
|
* `measureFrom` (packages/mistri/src/embed/seams/shellHost.ts). The kit
|
|
16
16
|
* reads these through core.js, under the names it always had.
|
|
17
17
|
*/
|
package/dist/internal/ruler.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* offsetWidth/offsetHeight are already layout pixels and stay as read.
|
|
12
12
|
*
|
|
13
13
|
* The root is the page's own element unless a shell says otherwise: an
|
|
14
|
-
* embedded shell wears its zoom on its own `.
|
|
14
|
+
* embedded shell wears its zoom on its own `.mistri-root` and names it with
|
|
15
15
|
* `measureFrom` (packages/mistri/src/embed/seams/shellHost.ts). The kit
|
|
16
16
|
* reads these through core.js, under the names it always had.
|
|
17
17
|
*/
|
package/dist/primitives.css
CHANGED
|
@@ -181,7 +181,7 @@ textarea.field-control { min-height: 72px; resize: vertical; }
|
|
|
181
181
|
@media (pointer: coarse) { .date-field-popup button { min-height: 36px; } }
|
|
182
182
|
|
|
183
183
|
/* An icon (Icon.tsx). */
|
|
184
|
-
.
|
|
184
|
+
.mistri-icon { display: inline-block; flex: none; vertical-align: middle; }
|
|
185
185
|
|
|
186
186
|
/* The newer standalone primitives' rules live in standalone.css, not
|
|
187
187
|
here: the kit imports this sheet into every first paint, and none of
|
package/dist/tokens.css
CHANGED
|
@@ -56,9 +56,12 @@
|
|
|
56
56
|
and "good" must stay green there. */
|
|
57
57
|
--status-good: #1f7a46;
|
|
58
58
|
/* The code face, single-sourced: --mono is the data face and follows the
|
|
59
|
-
typography preference; --code is what code surfaces pin to.
|
|
59
|
+
typography preference; --code is what code surfaces pin to. A host's
|
|
60
|
+
look may set --data-face on the root to dress the data in another face;
|
|
61
|
+
the reader's explicit typography (body.type-mono, body.type-sans) wins
|
|
62
|
+
over it, and unset it is the code face. */
|
|
60
63
|
--code: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
61
|
-
--mono: var(--code);
|
|
64
|
+
--mono: var(--data-face, var(--code));
|
|
62
65
|
--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
63
66
|
--radius: 6px;
|
|
64
67
|
/* A form control's own size, said once for every one of them (the field box, a listbox, a choice, a button's pair):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/ui",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.15",
|
|
4
4
|
"description": "The standalone React primitives both shells are drawn with: Modal, DropMenu, Dropdown, Typeahead, Button, Field, Icon and DateField over Base UI, Switch, Tabs, Drawer, Popover, Avatar, Pagination, Carousel, Resizable, ScrollArea and Tooltip, the form controls built on them (text, masked, money and sensitive boxes, listboxes, choices, slider, progress and action bar; Preview), the landing hero's blocks (badge, photo tiles, icon rows; Preview), their tokens and stylesheet, and the zoom-aware ruler their popups are placed by.",
|
|
5
5
|
"homepage": "https://mistriwork.dev",
|
|
6
6
|
"bugs": {
|