@cronocode/react-box 0.1.6 → 0.1.9

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,15 +0,0 @@
1
- import Box from '../box';
2
- declare type BoxProps = React.ComponentProps<typeof Box>;
3
- interface BoxFlex {
4
- wrap?: BoxProps['flexWrap'];
5
- jc?: BoxProps['justifyContent'];
6
- ai?: BoxProps['alignItems'];
7
- ac?: BoxProps['alignContent'];
8
- d?: BoxProps['direction'];
9
- grow?: BoxProps['flexGrow'];
10
- shrink?: BoxProps['flexShrink'];
11
- as?: BoxProps['alignSelf'];
12
- }
13
- declare type Props = React.ComponentProps<typeof Box> & BoxFlex;
14
- export default function Flex(props: Props): JSX.Element;
15
- export {};
@@ -1,43 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import Box from "../box.js";
18
- import { j as jsx } from "../chunk/jsx-runtime-8434466e.js";
19
- import "react";
20
- function Flex(props) {
21
- const {
22
- wrap,
23
- jc,
24
- ai,
25
- ac,
26
- d,
27
- grow,
28
- shrink,
29
- as
30
- } = props;
31
- return /* @__PURE__ */ jsx(Box, __spreadValues({
32
- display: "flex",
33
- flexWrap: wrap,
34
- justifyContent: jc,
35
- alignItems: ai,
36
- alignContent: ac,
37
- direction: d,
38
- flexGrow: grow,
39
- flexShrink: shrink,
40
- alignSelf: as
41
- }, props));
42
- }
43
- export { Flex as default };