sate-lib 1.1.29 → 1.3.0

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 CHANGED
@@ -3,17 +3,25 @@
3
3
  A lightweight and modular React component library designed for modern web interfaces.
4
4
  **SATE Lib** powers the [sate.menu](https://sate.menu) platform with reusable, scalable, and themeable UI components.
5
5
 
6
- [Demo](https://sate-lib.vercel.app/)
7
- [NPM](https://www.npmjs.com/package/sate-lib)
6
+ - [Demo](https://sate-lib.vercel.app/)
7
+ - [NPM](https://www.npmjs.com/package/sate-lib)
8
8
 
9
9
  ## Tech Stack
10
10
 
11
- - [RSLib](https://rslib.rs/)
11
+ #### Core Technologies
12
+
12
13
  - [React](https://react.dev/)
13
14
  - [Typescript](https://www.typescriptlang.org/)
14
15
  - [Storybook](https://storybook.js.org/)
15
16
  - [CSS Modules](https://github.com/css-modules/css-modules)
17
+
18
+ #### Development & Configuration
19
+
20
+ - [RSLib](https://rslib.rs/)
16
21
  - [Biome](https://biomejs.dev/)
22
+ - [Husky](https://typicode.github.io/husky/)
23
+ - [Commit Lint](https://commitlint.js.org/)
24
+ - [Semantic Release](https://github.com/semantic-release/semantic-release)
17
25
 
18
26
  ## Installation
19
27
 
@@ -52,8 +60,29 @@ import from "sate-lib/typography.css";
52
60
 
53
61
  ## Commit etiquette
54
62
 
55
- - [Commit Etiquette](https://www.conventionalcommits.org/en/v1.0.0/)
56
-
57
63
  ```bash
58
64
  [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] : message
59
65
  ```
66
+
67
+ #### Version Triggering
68
+
69
+ | Commit Type | Release Type | Version Bump Example |
70
+ | ----------------- | -------------------- | -------------------- |
71
+ | `feat` | Minor release | 1.1.0 → 1.2.0 |
72
+ | `fix` | Patch release | 1.1.0 → 1.1.1 |
73
+ | `BREAKING CHANGE` | Major release | 1.1.0 → 2.0.0 |
74
+ | `chore` | No release triggered | |
75
+ | `docs` | No release triggered | |
76
+ | `style` | No release triggered | |
77
+ | `refactor` | No release triggered | |
78
+ | `test` | No release triggered | |
79
+
80
+ ## Fonts compression
81
+
82
+ Optimize and subset fonts using the `subset-fonts.js` script to reduce file size and improve loading performance.
83
+
84
+ #### Run the Font Subset Script
85
+
86
+ ```bash
87
+ pnpm subset
88
+ ```
@@ -1 +1 @@
1
- *,:before,:after{box-sizing:border-box}*{outline:none;margin:0;padding:0}ul,ol{list-style:none}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto;color:inherit}img,picture,svg,video,canvas{vertical-align:middle;background-repeat:no-repeat;background-size:cover;max-width:100%;height:auto}input,button,textarea,select{font:inherit;color:inherit;background:0 0;border:none;outline:none}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:before,:after{transition:none;scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}body,html{scroll-behavior:smooth;height:100%}body{-webkit-font-smoothing:antialiased}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}button{cursor:pointer}
1
+ *,:before,:after{box-sizing:border-box}*{margin:0;padding:0}html{scroll-behavior:smooth}img{max-width:100%;display:block}h1,h2,h3,h4,h5,h6{text-wrap:balance}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.1.29",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -34,29 +34,38 @@
34
34
  "dev": "rslib build --watch",
35
35
  "format": "biome format --write",
36
36
  "storybook": "storybook dev",
37
- "subset": "node ./subset-fonts.js"
37
+ "subset": "node ./subset-fonts.js",
38
+ "release": "HUSKY=0 semantic-release",
39
+ "prepare": "husky"
38
40
  },
39
41
  "devDependencies": {
40
42
  "@biomejs/biome": "^1.9.4",
43
+ "@commitlint/cli": "19.8.0",
44
+ "@commitlint/config-conventional": "19.8.0",
41
45
  "@rsbuild/core": "1.4.0-beta.4",
42
- "@rsbuild/plugin-react": "^1.3.2",
43
- "@rslib/core": "^0.10.2",
44
- "@storybook/addon-docs": "^9.0.11",
45
- "@storybook/addon-essentials": "^9.0.0-alpha.12",
46
- "@storybook/addon-interactions": "^9.0.0-alpha.10",
47
- "@storybook/addon-links": "^9.0.11",
48
- "@storybook/addon-onboarding": "^9.0.11",
49
- "@storybook/blocks": "^9.0.0-alpha.17",
50
- "@storybook/react": "^9.0.11",
51
- "@storybook/test": "^9.0.0-alpha.2",
52
- "@types/node": "^24.0.4",
46
+ "@rsbuild/plugin-react": "^1.3.3",
47
+ "@rslib/core": "^0.10.4",
48
+ "@semantic-release/changelog": "^6.0.3",
49
+ "@semantic-release/git": "^10.0.1",
50
+ "@semantic-release/npm": "^12.0.2",
51
+ "@storybook/addon-docs": "^9.0.15",
52
+ "@storybook/addon-essentials": "9.0.0-alpha.12",
53
+ "@storybook/addon-interactions": "9.0.0-alpha.10",
54
+ "@storybook/addon-links": "^9.0.15",
55
+ "@storybook/addon-onboarding": "^9.0.15",
56
+ "@storybook/blocks": "9.0.0-alpha.17",
57
+ "@storybook/react": "^9.0.15",
58
+ "@storybook/test": "9.0.0-alpha.2",
59
+ "@types/node": "^24.0.10",
53
60
  "@types/react": "^19.1.8",
61
+ "husky": "^9.1.7",
54
62
  "react": "^19.1.0",
55
- "storybook": "^9.0.11",
56
- "storybook-addon-rslib": "^2.0.1",
57
- "storybook-react-rsbuild": "^2.0.1",
58
- "typescript": "^5.8.3",
59
- "subset-font": "^2.4.0"
63
+ "semantic-release": "^24.2.6",
64
+ "storybook": "^9.0.15",
65
+ "storybook-addon-rslib": "^2.0.2",
66
+ "storybook-react-rsbuild": "^2.0.2",
67
+ "subset-font": "^2.4.0",
68
+ "typescript": "^5.8.3"
60
69
  },
61
70
  "peerDependencies": {
62
71
  "react": ">=16.9.0",