stone-kit 0.0.15 → 0.0.16

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 +55 -13
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -1,17 +1,59 @@
1
- <pre>
2
- <code>
1
+ # Stone-kit
2
+
3
+ Uikit for stone redesign 2.0
4
+
5
+ ## Installation
6
+
7
+ Package installation:
8
+
9
+ ```bash
3
10
  npm i stone-kit@latest
4
- </code>
5
- </pre>
11
+ ```
12
+
13
+ ## Usage
6
14
 
7
- <pre>
8
- <code>
9
- import {Button} from 'stone-kit'
10
- </code>
11
- </pre>
15
+ For Next.js page router in App.tsx:
12
16
 
13
- <pre>
14
- <code>
17
+ ```bash
15
18
  import 'stone-kit/dist/style.css'
16
- </code>
17
- </pre>
19
+ ```
20
+
21
+ and then:
22
+
23
+ ```bash
24
+ import {Button} from 'stone-kit'
25
+ ```
26
+
27
+ For other projects u can immediately:
28
+
29
+ ```bash
30
+ import {Button} from 'stone-kit'
31
+ ```
32
+
33
+ ## Docs
34
+
35
+ ### ButtonProps
36
+
37
+ size: optional, size of button. types : 'large' | 'medium' | 'small' | 'tiny'
38
+
39
+ pre: optional, insert icon/text before button text. type: ReactNode
40
+
41
+ post: optional, insert icon/text after button text. type: ReactNode
42
+
43
+ variant: optional, color variants of button. type:
44
+ 'blue',
45
+ 'gray',
46
+ 'whiteStroke',
47
+ 'sokolniki',
48
+ 'black',
49
+ 'whiteFilled'
50
+
51
+ width: optional, width of button. type: 'auto' | 'full'
52
+
53
+ additionalClass: optional, add your custom class to button. type: 'string'
54
+
55
+ as: optional, u can convert button to link. type: 'button' | 'link'. 'button' by default.
56
+
57
+ ### MobileButtonProps
58
+
59
+ ### Tag
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "stone-kit",
3
+ "description": "uikit for redesign",
3
4
  "private": false,
4
- "version": "0.0.15",
5
+ "version": "0.0.16",
5
6
  "author": "Mollycodd1e",
6
7
  "license": "ISC",
7
8
  "type": "module",
@@ -34,7 +35,8 @@
34
35
  "typescript": "^5.2.2",
35
36
  "vite": "^5.2.0",
36
37
  "vite-plugin-dts": "^3.9.1",
37
- "vite-plugin-lib-inject-css": "^2.1.1"
38
+ "vite-plugin-lib-inject-css": "^2.1.1",
39
+ "vite-plugin-svgr": "^4.2.0"
38
40
  },
39
41
  "main": "dist/main.js",
40
42
  "types": "dist/main.d.ts",
@@ -44,7 +46,6 @@
44
46
  "sideEffects": [
45
47
  "**/*.css"
46
48
  ],
47
- "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
48
49
  "directories": {
49
50
  "lib": "lib"
50
51
  },