@noobsociety/nsds 0.2.0 → 0.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/CHANGELOG.md CHANGED
@@ -2,14 +2,50 @@
2
2
 
3
3
  All notable changes to NSDS are documented here.
4
4
 
5
- ## 0.2.0 - 2026-06-20
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.3.0] - 2026-06-20
10
+
11
+ ### Added
12
+
13
+ - First-class TypeScript component source with generated declaration output.
14
+ - Component tests for class names, variants, invalid runtime values, and accessibility attributes.
15
+ - Package export linting, packed install checks, and Tailwind preset type validation.
16
+ - Diataxis-style public docs, generated API reference, and static landing page.
17
+ - Browser-rendered visual checks for the public component specimen surface.
18
+
19
+ ### Changed
20
+
21
+ - Storybook stories now use typed `.tsx` examples and include a full component showcase.
22
+ - CI and release checks now install the browser needed for visual coverage.
23
+
24
+ ## [0.2.1] - 2026-06-20
25
+
26
+ ### Added
27
+
28
+ - Project README structure for install, usage, package exports, development, release, and license guidance.
29
+ - Changesets configuration and release scripts for version intent and publishing.
30
+ - Storybook configuration and component stories for the public React package surface.
31
+ - Release workflow for Changesets version pull requests and npm publishing.
32
+
33
+ ### Changed
34
+
35
+ - Contribution guidance now documents SemVer, changelog, release, component documentation, and license expectations.
36
+ - Public documentation now describes only the package source and published package surface.
37
+
38
+ ### Removed
39
+
40
+ - Design-source and prototype artifacts from the public repository tree.
41
+
42
+ ## [0.2.0] - 2026-06-20
6
43
 
7
44
  ### Added
8
45
 
9
46
  - Tailwind preset export for mapping `--ns-*` design tokens into utility classes.
10
47
  - HUD token file and HUD React primitives for game-layer UI.
11
- - RPG icon React component and icon reference card.
12
- - Lab homepage and game HUD reference surfaces for internal design work.
48
+ - RPG icon React component and icon catalog support.
13
49
 
14
50
  ### Changed
15
51
 
@@ -24,7 +60,7 @@ All notable changes to NSDS are documented here.
24
60
  - Duplicate compiled component runtime source files.
25
61
  - Superseded `ui-kits/` homepage path.
26
62
 
27
- ## 0.1.2 - 2026-06-18
63
+ ## [0.1.2] - 2026-06-18
28
64
 
29
65
  ### Added
30
66
 
@@ -35,22 +71,30 @@ All notable changes to NSDS are documented here.
35
71
  - React smoke tests for the public component entry points.
36
72
  - TypeScript smoke validation for consumer-facing package imports.
37
73
  - Tailwind preset export for token-mapped utility classes.
38
- - Prioritized README roadmap and reference standards for documentation, changelog, versioning, release, and component documentation workflows.
74
+ - Prioritized README roadmap and documentation, changelog, versioning, release, and component documentation workflows.
39
75
 
40
76
  ### Changed
41
77
 
42
78
  - Updated README language for the public npm package and repository.
43
79
  - Documented the TypeScript and testing roadmap.
44
80
 
45
- ## 0.1.1 - 2026-06-18
81
+ ## [0.1.1] - 2026-06-18
46
82
 
47
83
  ### Changed
48
84
 
49
85
  - Published the package as `@noobsociety/nsds`.
50
86
  - Updated repository metadata for the public NSDS package.
51
87
 
52
- ## 0.1.0 - 2026-06-18
88
+ ## [0.1.0] - 2026-06-18
53
89
 
54
90
  ### Added
55
91
 
56
- - Initial NSDS package with tokens, CSS primitives, React components, assets, guidelines, references, and UI kits.
92
+ - Initial NSDS package with tokens, CSS primitives, React components, and Tailwind support.
93
+
94
+ [Unreleased]: https://github.com/noobsociety/nsds/compare/v0.3.0...HEAD
95
+ [0.3.0]: https://github.com/noobsociety/nsds/compare/v0.2.1...v0.3.0
96
+ [0.2.1]: https://github.com/noobsociety/nsds/compare/v0.2.0...v0.2.1
97
+ [0.2.0]: https://github.com/noobsociety/nsds/compare/v0.1.2...v0.2.0
98
+ [0.1.2]: https://github.com/noobsociety/nsds/compare/v0.1.1...v0.1.2
99
+ [0.1.1]: https://github.com/noobsociety/nsds/compare/v0.1.0...v0.1.1
100
+ [0.1.0]: https://github.com/noobsociety/nsds/releases/tag/v0.1.0
package/CONTRIBUTING.md CHANGED
@@ -1,34 +1,137 @@
1
1
  # Contributing
2
2
 
3
- NSDS is the NoobSociety Design System. Changes should keep the package small, reusable, and direct.
3
+ NSDS is the NoobSociety Design System. Changes should keep the package small, reusable, direct, and Tailwind-first.
4
4
 
5
- ## Local Setup
5
+ ## Local setup
6
+
7
+ Use Node.js 22 or newer.
6
8
 
7
9
  ```bash
8
10
  npm install
9
11
  npm run check
10
12
  ```
11
13
 
12
- ## Change Guidelines
14
+ Run Storybook while changing components:
15
+
16
+ ```bash
17
+ npm run storybook
18
+ ```
19
+
20
+ ## Change guidelines
13
21
 
14
22
  - Keep package exports stable unless the release is intentionally breaking.
15
23
  - Prefer CSS tokens and shared primitives over one-off styles.
16
24
  - Keep React components small and framework-light.
17
- - Add or update smoke coverage when changing component behavior.
18
- - Use patch versions for metadata, docs, small fixes, and compatibility work.
19
- - Use minor versions for new components, tokens, or larger additive behavior.
25
+ - Add or update Storybook stories when changing public component behavior or props.
26
+ - Add or update component tests when changing class names, variants, props, or accessibility behavior.
27
+ - Add or update package checks when changing import behavior, package exports, or generated types.
28
+ - Run `npm run docs:api` when public TypeScript types change.
29
+ - Keep third-party code and assets license-compatible with MIT.
30
+
31
+ ## Versioning
32
+
33
+ NSDS follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
34
+
35
+ - Patch versions are for docs, metadata, dependency compatibility, bug fixes, and non-breaking visual corrections.
36
+ - Minor versions are for new components, tokens, exports, or additive behavior.
37
+ - Major versions are for breaking public API changes, removed exports, incompatible CSS token changes, or required consumer migration.
38
+
39
+ The package is still pre-1.0, but release intent should still be explicit. If a `0.x` minor release contains a breaking package-boundary change, document the migration clearly in the changelog.
40
+
41
+ ## Changelog
42
+
43
+ `CHANGELOG.md` follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
44
+
45
+ Use these categories when applicable:
46
+
47
+ - `Added`
48
+ - `Changed`
49
+ - `Deprecated`
50
+ - `Removed`
51
+ - `Fixed`
52
+ - `Security`
53
+
54
+ Keep user-facing changes in the changelog. Internal maintenance can stay in the pull request when it has no package or contributor impact.
55
+
56
+ Add unreleased package notes under `## [Unreleased]`. During release, `npm run changeset:version` moves those notes into a dated version section and updates the compare links.
57
+
58
+ ## Changesets
59
+
60
+ Every package-impacting pull request should include a changeset:
61
+
62
+ ```bash
63
+ npm run changeset
64
+ ```
65
+
66
+ Choose the SemVer bump that matches the public impact. Documentation-only changes may skip a changeset when they do not affect the published package behavior.
67
+
68
+ Maintainers prepare release commits with:
69
+
70
+ ```bash
71
+ npm run changeset:version
72
+ ```
73
+
74
+ This command applies the Changesets version plan and updates `CHANGELOG.md` from the `[Unreleased]` section. Open the result as a release pull request.
75
+
76
+ Publishing is handled by the release workflow after the release pull request is merged to `main`, when `NPM_TOKEN` is configured:
20
77
 
21
- ## Release Checks
78
+ ```bash
79
+ npm run changeset:publish
80
+ ```
81
+
82
+ ## Component documentation
83
+
84
+ Public React components must have Storybook coverage.
85
+
86
+ ```bash
87
+ npm run storybook
88
+ npm run build:storybook
89
+ ```
22
90
 
23
- Before publishing:
91
+ Stories should show the stable public props, common variants, disabled or edge states when relevant, and realistic token-backed styling. Avoid documenting private implementation details as API.
92
+
93
+ ## Tests
94
+
95
+ Component behavior tests run with:
96
+
97
+ ```bash
98
+ npm run test:components
99
+ ```
100
+
101
+ Browser-rendered visual checks run with:
102
+
103
+ ```bash
104
+ npm run test:visual
105
+ ```
106
+
107
+ Install and export checks run as part of `npm run check`, and can be run directly:
108
+
109
+ ```bash
110
+ npm run check:docs
111
+ npm run check:exports
112
+ npm run check:install
113
+ ```
114
+
115
+ ## Release checks
116
+
117
+ Before merging a package-impacting change:
24
118
 
25
119
  ```bash
26
120
  npm run check
121
+ npm run build:storybook
27
122
  npm run release:dry-run
28
123
  ```
29
124
 
30
- Publish with an npm one-time password when required:
125
+ Before publishing manually:
31
126
 
32
127
  ```bash
33
- npm publish --otp=123456
128
+ npm run check
129
+ npm run release:dry-run
130
+ npm run changeset:publish
34
131
  ```
132
+
133
+ ## License guidance
134
+
135
+ NSDS uses the [MIT License](./LICENSE), selected from [Choose a License](https://choosealicense.com/licenses/mit/).
136
+
137
+ New code, images, fonts, and documentation must be original, owned by NoobSociety, or compatible with MIT redistribution. When adding third-party material, document its source and license in the pull request.