@imfusion/web-ui 0.11.1-dev.39.g98a8338c → 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
@@ -115,6 +115,11 @@
115
115
  - Components — Nikolaus Brunner <brunner@imfusion.com>
116
116
  - A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
117
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>
118
123
  - `Button variant="primary"` hovers to a blue outline on any surface. Its hover fill was the `main` background, which showed as a
119
124
  white box on a `support` card. [Button](src/components/button/button.stories.tsx#OnSupportCard) — Nikolaus Brunner <brunner@imfusion.com>
120
125
 
@@ -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
- ...t,
3574
+ ...n,
3575
+ sideOffset: t,
3575
3576
  "data-imf-ui-component": "Popover.Positioner",
3576
- className: (n) => uc({ className: e(t.className, n) })
3577
+ className: (t) => uc({ className: e(n.className, t) })
3577
3578
  });
3578
3579
  }
3579
3580
  Cc.displayName = "Popover.Positioner";