@imfusion/web-ui 0.10.1-dev.56.ge0de2dc9 → 0.10.1-dev.59.gdb86c93c
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/CHANGELOG.md +5 -0
- package/dist/components/select/select.d.ts +11 -3
- package/dist/index.js +1317 -1301
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +15 -2
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +5 -2
- package/src/llms/tokens.gen.json +2 -2
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -6910,9 +6910,22 @@
|
|
|
6910
6910
|
}
|
|
6911
6911
|
]
|
|
6912
6912
|
},
|
|
6913
|
+
{
|
|
6914
|
+
"name": "Select.ItemDescription",
|
|
6915
|
+
"description": "Select.ItemDescription — a muted second line under an item's text, such as what a role allows. It stays out of the\ntrigger, which shows only `Select.ItemText`.",
|
|
6916
|
+
"props": [
|
|
6917
|
+
{
|
|
6918
|
+
"name": "ref",
|
|
6919
|
+
"required": false,
|
|
6920
|
+
"type": "Ref<HTMLDivElement>",
|
|
6921
|
+
"defaultValue": null,
|
|
6922
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
|
|
6923
|
+
}
|
|
6924
|
+
]
|
|
6925
|
+
},
|
|
6913
6926
|
{
|
|
6914
6927
|
"name": "Select.ItemIndicator",
|
|
6915
|
-
"description": "Select.ItemIndicator —
|
|
6928
|
+
"description": "Select.ItemIndicator — marker inside the selected item. Without children it draws a check icon in the item's text colour.",
|
|
6916
6929
|
"props": [
|
|
6917
6930
|
{
|
|
6918
6931
|
"name": "className",
|
|
@@ -7241,7 +7254,7 @@
|
|
|
7241
7254
|
"name": "sideOffset",
|
|
7242
7255
|
"required": false,
|
|
7243
7256
|
"type": "number | OffsetFunction",
|
|
7244
|
-
"defaultValue": "
|
|
7257
|
+
"defaultValue": "4",
|
|
7245
7258
|
"description": "Distance between the anchor and the popup in pixels.\nAlso accepts a function that returns the distance to read the dimensions of the anchor\nand positioner elements, along with its side and alignment.\n\nThe function takes a `data` object parameter with the following properties:\n- `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.\n- `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.\n- `data.side`: which side of the anchor element the positioner is aligned against.\n- `data.align`: how the positioner is aligned relative to the specified side.\n@example ```jsx\n<Positioner\n sideOffset={({ side, align, anchor, positioner }) => {\n return side === 'top' || side === 'bottom'\n ? anchor.height\n : anchor.width;\n }}\n/>\n```"
|
|
7246
7259
|
},
|
|
7247
7260
|
{
|
|
@@ -66,7 +66,9 @@ next action is the add from that topic. A Vite config that reads tsconfig `paths
|
|
|
66
66
|
`vite-tsconfig-paths`) is Broken: it loads the React types package as React once Web UI comes from the registry. The fix is
|
|
67
67
|
to drop it and give the `#/` alias through `imports` in `package.json`. A major or minor mismatch between the project and Web
|
|
68
68
|
UI on a package listed under Aligned runtime packages in the `tooling` topic is a Deviation. Report both versions, with
|
|
69
|
-
`npm install <package>@<Web UI's version>` as the fix.
|
|
69
|
+
`npm install <package>@<Web UI's version>` as the fix. A route-local file that the inline rule in the `project-structure`
|
|
70
|
+
topic says belongs in its route file is a Deviation, and so is a route file over 250 lines that inlines parts the rule would
|
|
71
|
+
keep in its `-` folder. Report the line counts, with the move as the fix.
|
|
70
72
|
|
|
71
73
|
## Topics
|
|
72
74
|
|
|
@@ -35,8 +35,11 @@ A route file holds its search schema and `validateSearch`, its loaders, and its
|
|
|
35
35
|
Route-local code that outgrows small in-file components (views, forms, hooks, tests) goes in a sibling folder named `-` plus
|
|
36
36
|
the route file's name: `route.tsx` gets `-route/`, `products.tsx` gets `-products/`. TanStack Router ignores files and
|
|
37
37
|
folders with a leading `-` when it builds the route tree, so the folder never becomes a route. The folder holds the route's
|
|
38
|
-
views with their props types, hooks, `.module.css` files, and tests.
|
|
39
|
-
|
|
38
|
+
views with their props types, hooks, `.module.css` files, and tests.
|
|
39
|
+
|
|
40
|
+
A part used by one route file is inlined into it when it is a component under 50 lines, calls no `use*` hook, has no
|
|
41
|
+
stylesheet or test of its own, and leaves that route file under 250 lines. Every other single-route part goes in the `-`
|
|
42
|
+
folder. The thresholds keep tiny wrappers out of their own files without letting a route file grow into a page of views.
|
|
40
43
|
|
|
41
44
|
`partials/` holds only parts that more than one route uses.
|
|
42
45
|
|
package/src/llms/tokens.gen.json
CHANGED
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
"name": "--imf-ui-font-letterspacing-brand",
|
|
496
|
-
"value": "-0.
|
|
496
|
+
"value": "clamp(-0.035rem, -0.0081rem - 0.0224vw, -0.0131rem)"
|
|
497
497
|
},
|
|
498
498
|
{
|
|
499
499
|
"name": "--imf-ui-font-letterspacing-display",
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
"name": "--imf-ui-font-letterspacing-hero",
|
|
504
|
-
"value": "-0.
|
|
504
|
+
"value": "clamp(-0.225rem, -0.0312rem - 0.1615vw, -0.0675rem)"
|
|
505
505
|
},
|
|
506
506
|
{
|
|
507
507
|
"name": "--imf-ui-font-letterspacing-loose",
|