@koko420/react-components 0.0.2 → 0.0.4

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # To setup
2
+ @import "@koko420/react-components/styles.css";
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+ ...
8
+
9
+
10
+ or in JS
11
+ import "@koko420/react-components/styles.css";
@@ -0,0 +1 @@
1
+ .absolute{position:absolute}.relative{position:relative}.left-\[32px\]{left:32px}.left-\[56px\]{left:56px}.left-\[8px\]{left:8px}.top-0{top:0}.z-0{z-index:0}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.-mb-\[2px\]{margin-bottom:-2px}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.h-\[13px\]{height:13px}.w-\[13px\]{width:13px}.w-\[80px\]{width:80px}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[0\.65\],.scale-\[0\.7\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.7\]{--tw-scale-x:0.7;--tw-scale-y:0.7}.scale-\[0\.8\]{--tw-scale-x:0.8;--tw-scale-y:0.8}.scale-\[0\.8\],.scale-\[1\.05\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[1\.05\]{--tw-scale-x:1.05;--tw-scale-y:1.05}.scale-\[1\.1\]{--tw-scale-x:1.1;--tw-scale-y:1.1}.scale-\[1\.1\],.scale-\[1\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[1\]{--tw-scale-x:1;--tw-scale-y:1}@keyframes move-24px{0%{transform:translateX(0)}to{transform:translateX(24px)}}.animate-\[move-24px_0\.6s_infinite\]{animation:move-24px .6s infinite}@keyframes scale-in{0%{transform:scale(0)}to{transform:scale(1)}}.animate-\[scale-in_0\.6s_infinite\]{animation:scale-in .6s infinite}@keyframes scale-out{0%{transform:scale(1)}to{transform:scale(0)}}.animate-\[scale-out_0\.6s_infinite\]{animation:scale-out .6s infinite}.rounded-full{border-radius:9999px}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-neutral-550{--tw-bg-opacity:1;background-color:rgb(115 115 115/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.shadow-\[0_0_0_1px_rgba\(255\2c 255\2c 255\2c 0\.5\)\]{--tw-shadow:0 0 0 1px hsla(0,0%,100%,.5);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koko420/react-components",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Some of my favourite components in 1 place",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -12,14 +12,14 @@
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
14
  },
15
- "./tailwind-preset": "./tailwind.preset.js"
15
+ "./styles.css": "./dist/styles.css"
16
16
  },
17
17
  "files": [
18
- "dist",
19
- "tailwind.preset.js"
18
+ "dist"
20
19
  ],
21
20
  "scripts": {
22
- "build": "tsup",
21
+ "build": "tsup && pnpm build:css",
22
+ "build:css": "tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify",
23
23
  "dev": "tsup --watch",
24
24
  "lint": "eslint src/",
25
25
  "typecheck": "tsc --noEmit"
@@ -38,6 +38,8 @@
38
38
  "devDependencies": {
39
39
  "@types/react": "^18.3.0",
40
40
  "@types/react-dom": "^18.3.0",
41
+ "autoprefixer": "^10.4.0",
42
+ "postcss": "^8.4.0",
41
43
  "react": "^18.3.0",
42
44
  "react-dom": "^18.3.0",
43
45
  "tailwindcss": "^3.4.0",
@@ -1,27 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- theme: {
4
- extend: {
5
- colors: {
6
- neutral: {
7
- 550: "#737373",
8
- },
9
- },
10
- keyframes: {
11
- "scale-in": {
12
- "0%": { transform: "scale(0)" },
13
- "100%": { transform: "scale(1)" },
14
- },
15
- "scale-out": {
16
- "0%": { transform: "scale(1)" },
17
- "100%": { transform: "scale(0)" },
18
- },
19
- "move-24px": {
20
- "0%": { transform: "translateX(0)" },
21
- "100%": { transform: "translateX(24px)" },
22
- },
23
- },
24
- },
25
- },
26
- };
27
-