globalfy-design-system 0.68.0 → 0.70.0

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.
@@ -1,2 +1,2 @@
1
1
  import { PopoverProps } from "./Popover.types";
2
- export declare const Popover: ({ children, content, className, isOpen, side, align, hasCloseButton, hasShadow, sideOffset, onInteractOutside, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Popover: ({ children, content, className, isOpen, side, align, hasCloseButton, hasShadow, sideOffset, onInteractOutside, onOpenAutoFocus, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from "@storybook/react";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ children, content, className, isOpen, side, align, hasCloseButton, hasShadow, sideOffset, onInteractOutside, ...props }: import("./Popover.types").PopoverProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ children, content, className, isOpen, side, align, hasCloseButton, hasShadow, sideOffset, onInteractOutside, onOpenAutoFocus, ...props }: import("./Popover.types").PopoverProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {
7
7
  layout: string;
@@ -5,6 +5,7 @@ export type PopoverProps = {
5
5
  isOpen?: boolean;
6
6
  onOpenChange?: (isOpen: boolean) => void;
7
7
  onInteractOutside?: () => void;
8
+ onOpenAutoFocus?: (event: Event) => void;
8
9
  defaultOpen?: boolean;
9
10
  side?: "top" | "right" | "bottom" | "left";
10
11
  align?: "start" | "center" | "end";
@@ -20942,7 +20942,7 @@ const y8 = f8, x8 = h8, w8 = g8, C8 = b8, CP = ({
20942
20942
  }
20943
20943
  }
20944
20944
  }), d = $e({
20945
- base: "left-[15px] top-6 font-satoshi font-satoshi text-base text-sm text-primary-grey-800",
20945
+ base: "left-[16px] top-6 font-satoshi text-xs text-primary-grey-800",
20946
20946
  variants: {
20947
20947
  isInvalid: {
20948
20948
  true: "text-complementary-red-500"
@@ -21702,9 +21702,10 @@ const X1 = U8, Z1 = H8, J1 = Q8, eh = X8, r9 = t9, n9 = ({
21702
21702
  hasShadow: s = !1,
21703
21703
  sideOffset: l = 5,
21704
21704
  onInteractOutside: c,
21705
- ...u
21705
+ onOpenAutoFocus: u,
21706
+ ...d
21706
21707
  }) => {
21707
- const d = $e({
21708
+ const f = $e({
21708
21709
  base: "flex flex-row justify-end rounded-2xl bg-white ",
21709
21710
  variants: {
21710
21711
  hasShadow: {
@@ -21712,16 +21713,17 @@ const X1 = U8, Z1 = H8, J1 = Q8, eh = X8, r9 = t9, n9 = ({
21712
21713
  }
21713
21714
  }
21714
21715
  });
21715
- return /* @__PURE__ */ R.jsxs(X1, { open: n, ...u, children: [
21716
+ return /* @__PURE__ */ R.jsxs(X1, { open: n, ...d, children: [
21716
21717
  /* @__PURE__ */ R.jsx(Z1, { asChild: !0, children: e }),
21717
21718
  /* @__PURE__ */ R.jsx(J1, { children: /* @__PURE__ */ R.jsx(
21718
21719
  eh,
21719
21720
  {
21720
21721
  className: gr(
21721
21722
  r,
21722
- d({ hasShadow: s })
21723
+ f({ hasShadow: s })
21723
21724
  ),
21724
21725
  onInteractOutside: c,
21726
+ onOpenAutoFocus: u,
21725
21727
  side: o,
21726
21728
  align: a,
21727
21729
  sideOffset: l,
@@ -25695,7 +25697,7 @@ const DP = ({
25695
25697
  ...c
25696
25698
  }) => {
25697
25699
  const [u, d] = J.useState(!1), f = $e({
25698
- base: "group flex h-12 w-full items-center rounded-lg border bg-white px-4 py-3",
25700
+ base: "group flex h-12 w-full items-center rounded-lg border border-primary-grey-700 bg-white px-4 py-3",
25699
25701
  variants: {
25700
25702
  disabled: {
25701
25703
  true: "border-none bg-primary-grey-500"