@cronocode/react-box 1.3.5 → 1.3.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.
package/box.d.ts CHANGED
@@ -4,7 +4,11 @@ import ClassNameUtils from './utils/className/classNameUtils';
4
4
  import { ThemeComponentProps } from './theme';
5
5
  type AllProps<TTag extends keyof React.ReactHTML> = React.ComponentProps<TTag>;
6
6
  type TagPropsType<TTag extends keyof React.ReactHTML> = Omit<AllProps<TTag>, 'className' | 'style' | 'ref'>;
7
- interface Props<TTag extends keyof React.ReactHTML> extends BoxStyles, ThemeComponentProps {
7
+ export declare namespace Augmented {
8
+ interface Props {
9
+ }
10
+ }
11
+ interface Props<TTag extends keyof React.ReactHTML> extends BoxStyles, ThemeComponentProps, Augmented.Props {
8
12
  children?: React.ReactNode | ((props: {
9
13
  isHover: boolean;
10
14
  }) => React.ReactNode);
@@ -1,4 +1,4 @@
1
1
  import Box from '../box';
2
- type BoxProps = React.ComponentProps<typeof Box>;
3
- export default function Flex(props: BoxProps): JSX.Element;
4
- export {};
2
+ type BoxProps<TTag extends keyof React.ReactHTML> = Omit<React.ComponentProps<typeof Box<TTag>>, 'ref'>;
3
+ declare const _default: <TTag extends keyof import("react").ReactHTML = "div">(props: BoxProps<TTag>) => JSX.Element;
4
+ export default _default;
@@ -1,13 +1,14 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import r from "../box.mjs";
3
- import "react";
2
+ import { forwardRef as e } from "react";
3
+ import f from "../box.mjs";
4
4
  import "../box.module.css.mjs";
5
5
  import "../utils/utils.mjs";
6
6
  import "../theme.mjs";
7
- function x(i) {
8
- const { inline: o } = i;
9
- return /* @__PURE__ */ t(r, { display: o ? "inline-flex" : "flex", ...i });
7
+ function m(o, r) {
8
+ const { inline: i } = o;
9
+ return /* @__PURE__ */ t(f, { ref: r, display: i ? "inline-flex" : "flex", ...o });
10
10
  }
11
+ const c = e(m);
11
12
  export {
12
- x as default
13
+ c as default
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "main": "./box.mjs",
5
5
  "module": "./box.mjs",
6
6
  "types": "./box.d.ts",