@slimr/styled 2.0.6 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @slimr/styled [![npm package](https://img.shields.io/npm/v/@slimr/styled.svg?style=flat-square)](https://npmjs.org/package/@slimr/styled)
2
2
 
3
- A tiny (2kb) React css-in-js library inspired by chakra-ui, emotion, and styled-components libs
3
+ A tiny (~2kb) React css-in-js library inspired by chakra-ui, emotion, and styled-components libs
4
4
 
5
5
  Demos: See `./packages/demo` or [CodeSandbox](https://codesandbox.io/s/64r9px?file=/src/App.tsx)
6
6
 
@@ -15,8 +15,9 @@ Pros:
15
15
  - Much less bundle size and runtime sluggishness
16
16
  - Less is more: less bugs, no breaking changes
17
17
  - Supports declaring css and styled components inside of Components for better code colocating and NO MORE NEED TO PASS ARGS!
18
- - Styled shortcuts like styled.div when imported from `@slimr/styled/withHtmlTags`. Note: To get types you'll need tsconfig:moduleResolution >= `Node16`
18
+ - Styled shortcuts like styled.div
19
19
  - Zx/Css shorthand props like [chakra-ui](https://chakra-ui.com/docs/styled-system/style-props):
20
+ - Most HTMLElements are enhanced and exported as pascal-case (i.e. `import {Div, A, Section, Flex} from '@slimr/styled'`)
20
21
  - Pass shorthand props or zx props to styled components. This lib will create css classes if complex, passthrough as styles otherwise.
21
22
  - `m` --> `margin`
22
23
  - `mx` --> `margin-left` and right
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slimr/styled",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "author": "Brian Dombrowski",
5
5
  "license": "ISC",
6
6
  "private": false,