@arkitektbedriftene/fe-lib 5.1.4 → 5.1.6

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.
@@ -141,6 +141,7 @@ export declare const richTextStyleObj: {
141
141
  border: string;
142
142
  verticalAlign: string;
143
143
  padding: string;
144
+ width: string;
144
145
  };
145
146
  };
146
147
  a: {
@@ -1338,7 +1338,8 @@ const bn = () => /* @__PURE__ */ h(B, { children: [
1338
1338
  td: {
1339
1339
  border: "1px solid black",
1340
1340
  verticalAlign: "top",
1341
- padding: "$2"
1341
+ padding: "$2",
1342
+ width: "75px"
1342
1343
  }
1343
1344
  },
1344
1345
  a: {
@@ -1,5 +1,14 @@
1
- import { OffsetOptions, Placement, UseRoleProps } from '@floating-ui/react';
1
+ import { OffsetOptions, Placement, useFloating, useInteractions, useTransitionStyles, UseRoleProps } from '@floating-ui/react';
2
2
  import { OverlayCardProps } from './OverlayCard';
3
+ type PopoverContextValue = {
4
+ getFloatingProps: ReturnType<typeof useInteractions>["getFloatingProps"];
5
+ getReferenceProps: ReturnType<typeof useInteractions>["getReferenceProps"];
6
+ floatingStyles: ReturnType<typeof useFloating>["floatingStyles"];
7
+ refs: ReturnType<typeof useFloating>["refs"];
8
+ isMounted: boolean;
9
+ transitionStyles: ReturnType<typeof useTransitionStyles>["styles"];
10
+ };
11
+ export declare const PopoverContext: import('react').Context<PopoverContextValue>;
3
12
  export declare const Popover: ({ children, offset: offsetOptions, open, onOpenChange, trigger, hoverDelay, placement, role: popoverRole, }: {
4
13
  children: React.ReactNode;
5
14
  offset?: OffsetOptions;
@@ -20,3 +29,4 @@ export declare const PopoverContent: ({ children, overlayCardProps }: {
20
29
  children: React.ReactNode;
21
30
  overlayCardProps?: OverlayCardProps;
22
31
  }) => import("react/jsx-runtime").JSX.Element | null;
32
+ export {};
package/dist/ui.es.js CHANGED
@@ -1276,6 +1276,7 @@ export {
1276
1276
  A as OverlayCard,
1277
1277
  Bo as Popover,
1278
1278
  Fo as PopoverContent,
1279
+ C as PopoverContext,
1279
1280
  Ho as PopoverTrigger,
1280
1281
  Re as Select,
1281
1282
  ko as Spinner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./oidc": {