@raystack/apsara 0.11.6 → 0.11.7

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,13 +1,12 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
- import { HTMLAttributes, PropsWithChildren } from "react";
3
- declare const flex: (props?: ({
2
+ import { HTMLAttributes } from "react";
3
+ export declare const Flex: import("react").ForwardRefExoticComponent<VariantProps<(props?: ({
4
4
  direction?: "row" | "column" | "rowReverse" | "columnReverse" | null | undefined;
5
5
  align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
6
6
  justify?: "center" | "start" | "end" | "between" | null | undefined;
7
7
  wrap?: "wrap" | "noWrap" | "wrapReverse" | null | undefined;
8
8
  gap?: "small" | "medium" | "large" | "extra-small" | "extra-large" | null | undefined;
9
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
- declare type BoxProps = PropsWithChildren<VariantProps<typeof flex>> & HTMLAttributes<HTMLDivElement>;
11
- export declare function Flex({ children, direction, align, justify, wrap, gap, className, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & {
10
+ children?: import("react").ReactNode;
11
+ } & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
13
12
  //# sourceMappingURL=flex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../flex/flex.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,IAAI;;;;;;mFAwCR,CAAC;AAEH,aAAK,QAAQ,GAAG,iBAAiB,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC,GAC1D,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACT,EAAE,QAAQ,2CASV"}
1
+ {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../flex/flex.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAc,cAAc,EAAqB,MAAM,OAAO,CAAC;AAgDtE,eAAO,MAAM,IAAI;;;;;;;;mFAehB,CAAC"}
package/dist/index.cjs CHANGED
@@ -2668,9 +2668,9 @@ const flex = cva(styles$v.flex, {
2668
2668
  wrap: "noWrap",
2669
2669
  },
2670
2670
  });
2671
- function Flex({ children, direction, align, justify, wrap, gap, className, ...props }) {
2672
- return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, children: children }));
2673
- }
2671
+ const Flex = React.forwardRef(({ children, direction, align, justify, wrap, gap, className, ...props }, ref) => {
2672
+ return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, ref: ref, children: children }));
2673
+ });
2674
2674
 
2675
2675
  var styles$u = {"label":"label-module_label__hM2lk","label-small":"label-module_label-small__se5gE","label-medium":"label-module_label-medium__Z4Tcb","label-large":"label-module_label-large__ba4Jb"};
2676
2676