@imfusion/web-ui 0.11.1-dev.37.gdba3f9f4 → 0.11.1-dev.42.ge966e634
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
CHANGED
|
@@ -99,6 +99,8 @@
|
|
|
99
99
|
|
|
100
100
|
- `Drawer.Title` wraps a long title instead of running past the panel edge.
|
|
101
101
|
[Drawer](src/components/drawer/drawer.stories.tsx#LongTitle) — Nikolaus Brunner <brunner@imfusion.com>
|
|
102
|
+
- `Card` describes its coloured fills correctly: they set the background, and their content takes `oncolor` variants. —
|
|
103
|
+
Nikolaus Brunner <brunner@imfusion.com>
|
|
102
104
|
- Typo inside `Callout.Description`, such as `Typo.UnorderedList` or `Typo.P`, matches the description's size and takes
|
|
103
105
|
the variant's colour. [Callout](src/components/callout/callout.stories.tsx#WithList) — Nikolaus Brunner <brunner@imfusion.com>
|
|
104
106
|
- A `Select` option with `Select.ItemDescription` is named by its text alone and reads the description as its accessible
|
|
@@ -113,6 +115,13 @@
|
|
|
113
115
|
- Components — Nikolaus Brunner <brunner@imfusion.com>
|
|
114
116
|
- A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
|
|
115
117
|
- A `Popover.Trigger` rendered as another component keeps that component's styles, so `render={<Button />}` looks like a Button.
|
|
118
|
+
- `dist/style.css` opens with the layer order statement (`imf-ui.tokens`, `imf-ui.base`, `imf-ui.components`), so each
|
|
119
|
+
component's own focus style beats the base focus ring and a focused field shows only its primary border.
|
|
120
|
+
([WEBSDK-274](https://imfusion.atlassian.net/browse/WEBSDK-274)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
121
|
+
- `Popover.Positioner` sets the popup 4px away from its trigger by default, as `Select` does, on whichever side it opens.
|
|
122
|
+
— Nikolaus Brunner <brunner@imfusion.com>
|
|
123
|
+
- `Button variant="primary"` hovers to a blue outline on any surface. Its hover fill was the `main` background, which showed as a
|
|
124
|
+
white box on a `support` card. [Button](src/components/button/button.stories.tsx#OnSupportCard) — Nikolaus Brunner <brunner@imfusion.com>
|
|
116
125
|
|
|
117
126
|
---
|
|
118
127
|
|
|
@@ -17,8 +17,9 @@ type RootProps = React.ComponentProps<"div"> & VariantProps<typeof root> & {
|
|
|
17
17
|
* `Card.Footer`. `density` sets one scale that drives both each slot's padding
|
|
18
18
|
* and the gap between slots. `variant` picks the look — neutral tonal surfaces
|
|
19
19
|
* (`main`/`support`/`minor`) carry a hairline border; coloured intent fills
|
|
20
|
-
* (`primary`/`brand`)
|
|
21
|
-
*
|
|
20
|
+
* (`primary`/`brand`) set the background only and are borderless. Put `oncolor`
|
|
21
|
+
* content inside them, e.g. `Typo variant="oncolor"` and `Button context="oncolor"`.
|
|
22
|
+
* `shadow` and `radius` layer on top. Also called a panel, tile, or paper.
|
|
22
23
|
*
|
|
23
24
|
* The image is always the first entry in the stack, so `orientation` just
|
|
24
25
|
* switches the stack between a column and a row without reordering slots.
|
|
@@ -35,7 +35,7 @@ export declare namespace Backdrop {
|
|
|
35
35
|
var displayName: string;
|
|
36
36
|
}
|
|
37
37
|
/** Popover.Positioner — positions the popup relative to the trigger via floating-point layout. */
|
|
38
|
-
export declare function Positioner(props: React.ComponentProps<typeof PopoverPrimitive.Positioner>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function Positioner({ sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Positioner>): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export declare namespace Positioner {
|
|
40
40
|
var displayName: string;
|
|
41
41
|
}
|
package/dist/index.js
CHANGED
|
@@ -3569,11 +3569,12 @@ function Sc(t) {
|
|
|
3569
3569
|
});
|
|
3570
3570
|
}
|
|
3571
3571
|
Sc.displayName = "Popover.Backdrop";
|
|
3572
|
-
function Cc(t) {
|
|
3572
|
+
function Cc({ sideOffset: t = 4, ...n }) {
|
|
3573
3573
|
return /* @__PURE__ */ _(O.Positioner, {
|
|
3574
|
-
...
|
|
3574
|
+
...n,
|
|
3575
|
+
sideOffset: t,
|
|
3575
3576
|
"data-imf-ui-component": "Popover.Positioner",
|
|
3576
|
-
className: (
|
|
3577
|
+
className: (t) => uc({ className: e(n.className, t) })
|
|
3577
3578
|
});
|
|
3578
3579
|
}
|
|
3579
3580
|
Cc.displayName = "Popover.Positioner";
|