chop-logic-components 0.0.1 → 0.0.3

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/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ ._button_gs6r8_1{min-height:2.75rem;min-width:2.75rem;border:none;cursor:pointer;padding:0 .75rem;font-size:1rem;font-family:var(--core-font);display:flex;align-items:center;justify-content:center;gap:.25rem}._primary_gs6r8_15,._danger_gs6r8_16{border-radius:var(--block-border-radius);color:var(--cl-color-ivory);box-shadow:var(--box-shadow);filter:brightness(100%);transition:.3s}._primary_gs6r8_15:hover,._primary_gs6r8_15:active,._danger_gs6r8_16:hover,._danger_gs6r8_16:active{filter:brightness(130%)}._primary_gs6r8_15{background:var(--cl-primary-gradient)}._danger_gs6r8_16{background:var(--cl-accent-gradient)}._secondary_gs6r8_39{background:none;color:var(--cl-color-black);text-shadow:none;transition:.3s}._secondary_gs6r8_39 ._text_gs6r8_46{text-decoration:underline}._secondary_gs6r8_39:hover,._secondary_gs6r8_39:active{text-shadow:var(--text-shadow)}._disabled_gs6r8_55{pointer-events:none;filter:grayscale(80%);opacity:.9}._disabled_gs6r8_55._secondary_gs6r8_39{opacity:.6}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ type ClassNameCondition = {
2
+ [key in string]: boolean;
3
+ };
4
+ type ClassNameInput = string | ClassNameCondition | undefined | null;
5
+ declare function createClassName(input: ClassNameInput[]): string;
6
+ export default createClassName;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/SavouryGin/chop-logic-components.git"
6
6
  },
7
- "version": "0.0.1",
7
+ "version": "0.0.3",
8
8
  "description": "React UI components library for Chop Logic project",
9
9
  "type": "module",
10
10
  "main": "dist/index.cjs.js",
@@ -17,9 +17,9 @@
17
17
  "format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
18
18
  "lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore --fix",
19
19
  "build": "tsc && vite build",
20
- "test": "vitest run",
21
- "test-watch": "vitest",
22
- "test:ui": "vitest --ui",
20
+ "test": "vitest",
21
+ "test:ci": "vitest run",
22
+ "coverage": "vitest run --coverage",
23
23
  "storybook": "storybook dev -p 6006",
24
24
  "build-storybook": "storybook build",
25
25
  "prepare": "npm run build"
@@ -28,7 +28,7 @@
28
28
  "*.{ts,tsx}": [
29
29
  "npm run format",
30
30
  "npm run lint",
31
- "npm run test"
31
+ "npm run test:ci"
32
32
  ]
33
33
  },
34
34
  "keywords": [
@@ -45,6 +45,8 @@
45
45
  "homepage": "https://github.com/SavouryGin/chop-logic-components#readme",
46
46
  "devDependencies": {
47
47
  "@chromatic-com/storybook": "^1.3.3",
48
+ "@commitlint/cli": "^19.3.0",
49
+ "@commitlint/config-conventional": "^19.2.2",
48
50
  "@storybook/addon-essentials": "^8.0.9",
49
51
  "@storybook/addon-interactions": "^8.0.9",
50
52
  "@storybook/addon-links": "^8.0.9",
@@ -55,6 +57,7 @@
55
57
  "@storybook/test": "^8.0.9",
56
58
  "@testing-library/jest-dom": "^6.4.2",
57
59
  "@testing-library/react": "^15.0.6",
60
+ "@testing-library/user-event": "^14.5.2",
58
61
  "@types/node": "^20.12.8",
59
62
  "@types/react": "^18.3.1",
60
63
  "@typescript-eslint/eslint-plugin": "^7.8.0",
@@ -70,7 +73,6 @@
70
73
  "lint-staged": "^15.2.2",
71
74
  "prettier": "^3.2.5",
72
75
  "storybook": "^8.0.9",
73
- "styled-components": "^6.1.9",
74
76
  "typescript": "^5.4.5",
75
77
  "vite": "^5.2.10",
76
78
  "vite-plugin-dts": "^3.9.0",