@arkitektbedriftene/fe-lib 7.3.1 → 7.3.2

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.
@@ -6,8 +6,9 @@ interface DropdownProps {
6
6
  children: ReactNode | ((setIsOpen: React.Dispatch<React.SetStateAction<boolean>>) => ReactNode);
7
7
  align?: 'left' | 'right';
8
8
  className?: string;
9
+ dropdownClassName?: string;
9
10
  }
10
- export declare function Dropdown({ trigger, children, align, className }: DropdownProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Dropdown({ trigger, children, align, className, dropdownClassName }: DropdownProps): import("react/jsx-runtime").JSX.Element;
11
12
  export declare const DropdownToggleItem: import('react').ForwardRefExoticComponent<{
12
13
  children: ReactNode;
13
14
  enabled: boolean;
@@ -4819,13 +4819,13 @@ const yu = {
4819
4819
  ...ou,
4820
4820
  ...vu
4821
4821
  }, xu = /* @__PURE__ */ Tl(Tu, Ll);
4822
- function Eu({ trigger: t, children: e, align: n = "left", className: s }) {
4823
- const [i, o] = Te(!1), r = Or(() => o(!1)), a = Ir(t, {
4824
- onClick: () => o(!i)
4822
+ function Eu({ trigger: t, children: e, align: n = "left", className: s, dropdownClassName: i }) {
4823
+ const [o, r] = Te(!1), a = Or(() => r(!1)), l = Ir(t, {
4824
+ onClick: () => r(!o)
4825
4825
  });
4826
- return /* @__PURE__ */ We("div", { className: xe("relative inline-block", s), ref: r, children: [
4827
- a,
4828
- /* @__PURE__ */ N($a, { children: i && /* @__PURE__ */ N(
4826
+ return /* @__PURE__ */ We("div", { className: xe("relative inline-block", s), ref: a, children: [
4827
+ l,
4828
+ /* @__PURE__ */ N($a, { children: o && /* @__PURE__ */ N(
4829
4829
  xu.div,
4830
4830
  {
4831
4831
  initial: { opacity: 0, scale: 0.97 },
@@ -4837,8 +4837,8 @@ function Eu({ trigger: t, children: e, align: n = "left", className: s }) {
4837
4837
  "dropdown absolute z-999 mt-2 w-fit min-w-[200px] max-w-[400px]": !0,
4838
4838
  "right-0": n === "right",
4839
4839
  "left-0": n === "left"
4840
- }),
4841
- children: /* @__PURE__ */ N("div", { className: "flex flex-col", role: "menu", "aria-orientation": "vertical", children: typeof e == "function" ? e(o) : e })
4840
+ }, i),
4841
+ children: /* @__PURE__ */ N("div", { className: "flex flex-col", role: "menu", "aria-orientation": "vertical", children: typeof e == "function" ? e(r) : e })
4842
4842
  }
4843
4843
  ) })
4844
4844
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "7.3.1",
3
+ "version": "7.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./oidc": {