@cronocode/react-box 0.3.9 → 0.4.1

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,17 +1,17 @@
1
1
  import Box from '../box';
2
- import { Hovered } from '../types';
2
+ import { Activated, Focused, Hovered } from '../types';
3
3
  declare type BoxProps = React.ComponentProps<typeof Box>;
4
4
  interface FlexStylesShortCuts {
5
5
  wrap?: BoxProps['flexWrap'];
6
6
  jc?: BoxProps['justifyContent'];
7
7
  ai?: BoxProps['alignItems'];
8
8
  ac?: BoxProps['alignContent'];
9
- d?: BoxProps['direction'];
9
+ d?: BoxProps['flexDirection'];
10
10
  grow?: BoxProps['flexGrow'];
11
11
  shrink?: BoxProps['flexShrink'];
12
12
  as?: BoxProps['alignSelf'];
13
13
  js?: BoxProps['justifySelf'];
14
14
  }
15
- declare type Props = BoxProps & FlexStylesShortCuts & Hovered<FlexStylesShortCuts>;
15
+ declare type Props = BoxProps & FlexStylesShortCuts & Hovered<FlexStylesShortCuts> & Focused<FlexStylesShortCuts> & Activated<FlexStylesShortCuts>;
16
16
  export default function Flex(props: Props): JSX.Element;
17
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "0.3.9",
3
+ "version": "0.4.1",
4
4
  "main": "./box.js",
5
5
  "module": "./box.js",
6
6
  "types": "./box.d.ts",
@@ -18,8 +18,9 @@
18
18
  }
19
19
  },
20
20
  "scripts": {
21
- "dev": "vite ./dev --config ./vite.config.ts",
21
+ "dev": "vite ./dev --config ./vite.config.ts --mode dev",
22
22
  "build": "vite build",
23
+ "build:dev": "vite build --mode dev",
23
24
  "postbuild": "cp package.json dist & cp LICENSE dist & rm ./dist/index.d.ts & rm ./dist/index.js",
24
25
  "compile": "tsc --noEmit --skipLibCheck",
25
26
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -41,15 +42,15 @@
41
42
  "description": "",
42
43
  "devDependencies": {
43
44
  "@cronocode/identity-factory": "^0.0.6",
45
+ "@rollup/pluginutils": "^5.0.2",
44
46
  "@types/node": "^18.7.14",
47
+ "@types/postcss-mixins": "^9.0.0",
45
48
  "@types/react": "^18.0.18",
46
49
  "@types/react-dom": "^18.0.6",
47
50
  "@vitejs/plugin-react": "^2.0.1",
48
51
  "autoprefixer": "^10.4.8",
49
52
  "postcss": "^8.4.16",
50
- "postcss-calc": "^8.2.4",
51
- "postcss-each": "^1.1.0",
52
- "postcss-simple-vars": "^6.0.3",
53
+ "postcss-mixins": "^9.0.4",
53
54
  "prettier": "^2.7.1",
54
55
  "react": "^18.1.0",
55
56
  "react-dom": "^18.2.0",