@imfusion/web-ui 0.11.1-dev.74.g7422f7b2 → 0.11.1-dev.83.g3251cc92
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 +24 -0
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/integrations/image-display-options.js +3 -3
- package/dist/style.css +1 -1
- package/dist/{tabs-Bl3YlG5t.js → tabs-BNz_OiWn.js} +1 -1
- package/dist/tokens/control-registry.d.ts +2 -2
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +7 -7
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +13 -0
- package/src/llms/tokens.gen.json +11 -3
|
@@ -112,7 +112,7 @@ function D(e) {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
D.displayName = "Select.Backdrop";
|
|
115
|
-
function O({ align: e = "start", alignItemWithTrigger: t = !1, sideOffset: n =
|
|
115
|
+
function O({ align: e = "start", alignItemWithTrigger: t = !1, sideOffset: n = 8, ...r }) {
|
|
116
116
|
return /* @__PURE__ */ l(d.Positioner, {
|
|
117
117
|
...r,
|
|
118
118
|
align: e,
|
|
@@ -2,8 +2,8 @@ import { TokenControl } from './token-registry';
|
|
|
2
2
|
import { TokenOverrides } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Every {@link TokenControl}: a token with a live adjuster, spreading its data from
|
|
5
|
-
* `TOKEN_REGISTRY`. Semantic font aliases (`font-family-heading`/`-body`/`-ui
|
|
6
|
-
*
|
|
5
|
+
* `TOKEN_REGISTRY`. Semantic font aliases (`font-family-heading`/`-body`/`-ui`) are `var()`
|
|
6
|
+
* indirections with no direct control, so they have no entry here.
|
|
7
7
|
*/
|
|
8
8
|
export declare const TOKEN_CONTROLS: readonly TokenControl[];
|
|
9
9
|
/** Storybook drops URL globals whose value holds quotes or commas, so select overrides travel as option ids. */
|
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
{
|
|
49
49
|
"name": "size",
|
|
50
50
|
"required": false,
|
|
51
|
-
"type": "\"sm\" | \"md\" | \"lg\" | null",
|
|
51
|
+
"type": "\"xs\" | \"sm\" | \"md\" | \"lg\" | null",
|
|
52
52
|
"defaultValue": "sm",
|
|
53
53
|
"description": "The avatar size."
|
|
54
54
|
},
|
|
@@ -1272,7 +1272,7 @@
|
|
|
1272
1272
|
"name": "sideOffset",
|
|
1273
1273
|
"required": false,
|
|
1274
1274
|
"type": "number | OffsetFunction",
|
|
1275
|
-
"defaultValue": "
|
|
1275
|
+
"defaultValue": "8",
|
|
1276
1276
|
"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```"
|
|
1277
1277
|
},
|
|
1278
1278
|
{
|
|
@@ -1491,7 +1491,7 @@
|
|
|
1491
1491
|
{
|
|
1492
1492
|
"name": "size",
|
|
1493
1493
|
"required": false,
|
|
1494
|
-
"type": "\"sm\" | \"md\" | \"lg\" | null",
|
|
1494
|
+
"type": "\"xs\" | \"sm\" | \"md\" | \"lg\" | null",
|
|
1495
1495
|
"defaultValue": "md",
|
|
1496
1496
|
"description": ""
|
|
1497
1497
|
},
|
|
@@ -3677,7 +3677,7 @@
|
|
|
3677
3677
|
"name": "sideOffset",
|
|
3678
3678
|
"required": false,
|
|
3679
3679
|
"type": "number | OffsetFunction",
|
|
3680
|
-
"defaultValue": "
|
|
3680
|
+
"defaultValue": "8",
|
|
3681
3681
|
"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```"
|
|
3682
3682
|
},
|
|
3683
3683
|
{
|
|
@@ -7765,7 +7765,7 @@
|
|
|
7765
7765
|
"name": "sideOffset",
|
|
7766
7766
|
"required": false,
|
|
7767
7767
|
"type": "number | OffsetFunction",
|
|
7768
|
-
"defaultValue": "
|
|
7768
|
+
"defaultValue": "8",
|
|
7769
7769
|
"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```"
|
|
7770
7770
|
},
|
|
7771
7771
|
{
|
|
@@ -10552,7 +10552,7 @@
|
|
|
10552
10552
|
"name": "sideOffset",
|
|
10553
10553
|
"required": false,
|
|
10554
10554
|
"type": "number | OffsetFunction",
|
|
10555
|
-
"defaultValue": "
|
|
10555
|
+
"defaultValue": "8",
|
|
10556
10556
|
"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```"
|
|
10557
10557
|
},
|
|
10558
10558
|
{
|
|
@@ -12122,7 +12122,7 @@
|
|
|
12122
12122
|
"name": "sideOffset",
|
|
12123
12123
|
"required": false,
|
|
12124
12124
|
"type": "number | OffsetFunction",
|
|
12125
|
-
"defaultValue": "
|
|
12125
|
+
"defaultValue": "8",
|
|
12126
12126
|
"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```"
|
|
12127
12127
|
},
|
|
12128
12128
|
{
|
|
@@ -108,6 +108,19 @@ slots. Override a high-level control when a whole family should change; consume
|
|
|
108
108
|
Foreground roles are for text, icons, borders, and focus rings. Background roles are for fills. The provider sets
|
|
109
109
|
`data-imf-ui-color-scheme="light" | "dark"` on `<html>`, from the OS preference unless its `colorScheme` prop pins one.
|
|
110
110
|
|
|
111
|
+
## Type
|
|
112
|
+
|
|
113
|
+
Text set in capitals (`text-transform: uppercase`) uses `--imf-ui-font-family-mono`, the display mono (CoFo Sans Mono), as
|
|
114
|
+
labels, buttons, eyebrows, and table headers do. Code and identifiers shown as code use `--imf-ui-font-family-code` (Paper
|
|
115
|
+
Mono). Entered values and running text stay in the sans families.
|
|
116
|
+
|
|
117
|
+
```css
|
|
118
|
+
.status {
|
|
119
|
+
font-family: var(--imf-ui-font-family-mono);
|
|
120
|
+
text-transform: uppercase;
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
111
124
|
## Browser floor
|
|
112
125
|
|
|
113
126
|
The library targets Safari 17.5, Chrome 123, and Firefox 120 or newer, the first versions with native `light-dark()`.
|
package/src/llms/tokens.gen.json
CHANGED
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
"name": "--imf-ui-font-family-code",
|
|
490
|
-
"value": "
|
|
490
|
+
"value": "\"Paper Mono\", ui-monospace, monospace"
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
493
|
"name": "--imf-ui-font-family-heading",
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
"name": "--imf-ui-font-family-mono",
|
|
498
|
-
"value": "\"
|
|
498
|
+
"value": "\"CoFo Sans Mono\", ui-monospace, monospace"
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
501
|
"name": "--imf-ui-font-family-sans",
|
|
@@ -577,6 +577,10 @@
|
|
|
577
577
|
"name": "--imf-ui-font-lineheight-display",
|
|
578
578
|
"value": "clamp(2rem, 1.4231rem + 2.5641vw, 4.5rem)"
|
|
579
579
|
},
|
|
580
|
+
{
|
|
581
|
+
"name": "--imf-ui-font-lineheight-h1",
|
|
582
|
+
"value": "1.05"
|
|
583
|
+
},
|
|
580
584
|
{
|
|
581
585
|
"name": "--imf-ui-font-lineheight-hero",
|
|
582
586
|
"value": "1"
|
|
@@ -657,6 +661,10 @@
|
|
|
657
661
|
"name": "--imf-ui-font-size-fluid-3",
|
|
658
662
|
"value": "clamp(2rem, 1.4231rem + 2.5641vw, 4.5rem)"
|
|
659
663
|
},
|
|
664
|
+
{
|
|
665
|
+
"name": "--imf-ui-font-size-h1",
|
|
666
|
+
"value": "clamp(2.5rem, 5.5cqi, 4rem)"
|
|
667
|
+
},
|
|
660
668
|
{
|
|
661
669
|
"name": "--imf-ui-font-size-hero",
|
|
662
670
|
"value": "clamp(3rem, 1.6154rem + 6.1538vw, 9rem)"
|
|
@@ -973,5 +981,5 @@
|
|
|
973
981
|
}
|
|
974
982
|
]
|
|
975
983
|
},
|
|
976
|
-
"count":
|
|
984
|
+
"count": 239
|
|
977
985
|
}
|