@snowui-design-system/components 1.2.1 → 1.2.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/AGENTS.md +12 -9
- package/README.md +6 -4
- package/THIRD_PARTY_NOTICES.md +16 -15
- package/component-catalog.json +99 -91
- package/dist/client/blocks/Sidebar.js +2 -2
- package/dist/client/components/CodeBlock.js +20 -5
- package/dist/client/components/Field.js +1 -1
- package/dist/client/components/OverflowAction.js +2 -2
- package/dist/client/components/OverflowActions.js +18 -5
- package/dist/client/components/Textarea.js +36 -2
- package/dist/client/lib/overlay-scrollbar.js +6 -0
- package/dist/client/logic/overflow-actions.d.ts +2 -0
- package/dist/client/logic/skeleton-layouts.js +1 -1
- package/dist/client/styles/components.css +2 -2
- package/dist/server/blocks/Sidebar.js +2 -1
- package/dist/server/components/CodeBlock.js +0 -1
- package/dist/server/components/Field.js +1 -1
- package/dist/server/components/OverflowAction.js +2 -2
- package/dist/server/components/OverflowActions.js +10 -4
- package/dist/server/components/Textarea.js +14 -2
- package/dist/server/lib/overlay-scrollbar.js +6 -0
- package/dist/server/logic/overflow-actions.d.ts +2 -0
- package/dist/server/logic/skeleton-layouts.js +1 -1
- package/dist/server/styles/components.css +2 -2
- package/llms.txt +5 -1
- package/package.json +9 -1
package/AGENTS.md
CHANGED
|
@@ -2,24 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
`@snowui-design-system/components` is the official Svelte 5 UI component and block package for SnowUI.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Where to Find Documentation (npm vs. GitHub vs. Online)
|
|
6
6
|
|
|
7
|
-
- Package overview &
|
|
8
|
-
- Machine-readable component catalog
|
|
9
|
-
-
|
|
10
|
-
-
|
|
7
|
+
- **Package overview & quick start**: [README.md](./README.md)
|
|
8
|
+
- **Machine-readable component catalog**: [component-catalog.json](./component-catalog.json) (shipped in both npm and GitHub)
|
|
9
|
+
- **Remote MCP server (Streamable HTTP)**: `https://snowui.dev/mcp` (`snowui_search`, `snowui_component`, `snowui_examples`, `snowui_setup`)
|
|
10
|
+
- **Zero-install CLI (Node.js 22+)**: download `https://snowui.dev/snowui.mjs` and run `node snowui.mjs help`
|
|
11
|
+
- **Online AI documentation (HTTPS)**: https://snowui.dev/llms-en.txt (Simplified Chinese: https://snowui.dev/llms.txt)
|
|
12
|
+
- **GitHub & source archive offline docs**: `./docs/README.md` (Simplified Chinese: `./docs/zh/README.md`) — present in `https://github.com/SnowUI/SnowUI` and source archives (`docs/components/<slug>.md`), **not** inside `node_modules`
|
|
13
|
+
- **Applicable license**: [LICENSE](./LICENSE) (`SnowUI-Commercial-2.4.0`, proprietary source-available; **not** MIT or open-source)
|
|
11
14
|
|
|
12
|
-
## Runtime Package vs. Source
|
|
15
|
+
## Runtime Package vs. Source Repository
|
|
13
16
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
17
|
+
- **Installed npm package (`node_modules/@snowui-design-system/components`)**: ships compiled client/server Svelte 5 modules (`dist/client`, `dist/server`), shared stylesheet entrypoints (`@snowui-design-system/components/styles`), `./component-catalog.json`, `./AGENTS.md`, `./llms.txt`, and `./LICENSE`. Do **not** look for `src/` or `docs/` inside `node_modules`; query component APIs, styles, types, and examples via `https://snowui.dev/mcp`, `https://snowui.dev/snowui.mjs`, or https://snowui.dev/llms-en.txt.
|
|
18
|
+
- **GitHub clone or source archive (`SnowUI/SnowUI`)**: `source` (`src/components/*.svelte`, `src/blocks/*.svelte`) and `documentation` (`docs/components/<slug>.md`, plus `docs/guides/*` and `docs/reference/*`) in `./component-catalog.json` resolve directly relative to this repository root.
|
|
16
19
|
- Import components and blocks from `@snowui-design-system/components` and load `@snowui-design-system/components/styles` once at the application entry.
|
|
17
20
|
|
|
18
21
|
## Consumer Guidelines for AI
|
|
19
22
|
|
|
20
23
|
1. Search `./component-catalog.json` (`intents`, `aliases`, `whenToUse`, `avoidWhen`, `related`) before creating custom page DOM or CSS.
|
|
21
24
|
2. Prefer documented public Props, Snippets, events, and `parts` over overriding internal DOM or private classes.
|
|
22
|
-
3.
|
|
25
|
+
3. Read the matched component's public API, types, and composition reference (`./docs/components/<slug>.md` in a repo checkout, or `https://snowui.dev/llms/en/components/<slug>.md` / MCP `snowui_component` when using the npm package) before writing code.
|
|
23
26
|
|
|
24
27
|
## License Gate for AI Assistants (Zero Friction for Free Scope, Fail-Closed for Restricted Scope)
|
|
25
28
|
|
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
A Svelte 5 component and block library for building interfaces, dashboards, and admin panels.
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
5
|
+
- Interactive component docs & live previews: https://snowui.dev/components
|
|
6
|
+
- Repository public documentation: `docs/README.md` (Simplified Chinese: `docs/zh/README.md` — in `https://github.com/SnowUI/SnowUI` & source archives)
|
|
7
|
+
- Online AI documentation: https://snowui.dev/llms-en.txt (Simplified Chinese: https://snowui.dev/llms.txt · MCP: `https://snowui.dev/mcp` · CLI: `https://snowui.dev/snowui.mjs`)
|
|
7
8
|
- Package AI entry & component catalog: [AGENTS.md](./AGENTS.md) · [component-catalog.json](./component-catalog.json)
|
|
8
9
|
- License: [LICENSE](./LICENSE)
|
|
9
10
|
|
|
@@ -24,6 +25,7 @@ Import components and load the package stylesheet once at your application entry
|
|
|
24
25
|
<Button>Continue</Button>
|
|
25
26
|
```
|
|
26
27
|
|
|
27
|
-
## Package Contents
|
|
28
|
+
## Package Contents vs. GitHub Repository
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
- **Published npm package (`node_modules/@snowui-design-system/components`)**: ships compiled client/server Svelte 5 modules (`dist/`), shared styles, [AGENTS.md](./AGENTS.md), [llms.txt](./llms.txt), and [component-catalog.json](./component-catalog.json). For full component APIs, guides, and examples from an npm install, use https://snowui.dev/llms-en.txt, `https://snowui.dev/mcp`, or `https://snowui.dev/snowui.mjs`.
|
|
31
|
+
- **GitHub repository & source archive (`https://github.com/SnowUI/SnowUI`)**: includes Svelte/TypeScript sources under `src/` and complete offline consumer documentation under `docs/` (`docs/README.md`, `docs/guides/*`, `docs/reference/*`, `docs/components/<slug>.md`, and `docs/zh/*`; build with `pnpm install --frozen-lockfile && pnpm build`).
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
#
|
|
2
|
-
运行依赖保留各自许可;SnowUI 的商业许可不替代以下条款。
|
|
1
|
+
# Third-Party Notices
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
Runtime dependencies and referenced upstream designs retain their respective licenses; the SnowUI commercial license does not replace the notices below.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
## Historical npm Package Note
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
During a public npm Registry review on 2026-10-31, eight historical pre-1.0 versions of `@snowui-design-system/components` (`0.1.0` and `0.2.0-alpha.3` through `0.2.0-alpha.9`) did not declare a `license` field in package metadata and did not include files named with `license`, `notice`, or `copyright` in their published file lists. This note records the observable metadata and file lists of those historical artifacts without modifying previously published tarballs or retroactively altering historical terms; consult the applicable license and grant when using older versions.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
## Phosphor Icons (Built-in Functional Icon Snapshots; MIT)
|
|
10
|
+
|
|
11
|
+
Portions of the built-in functional icons bundled with this package are generated from the Phosphor collection in `@snowui-design-system/resource-svelte@1.0.29` and marked with `sourceCollection: "phosphor"` in `src/internal/component-icon/builtin-icon-data.ts`. Upstream project: [Phosphor Icons](https://github.com/phosphor-icons/core). The MIT notice below applies to those icon graphics and does not alter the license governing SnowUI's own code and graphics.
|
|
11
12
|
|
|
12
13
|
MIT License
|
|
13
14
|
|
|
@@ -43,7 +44,7 @@ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
43
44
|
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
45
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
45
46
|
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
46
|
-
|
|
47
|
+
TORTOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
47
48
|
THIS SOFTWARE.
|
|
48
49
|
|
|
49
50
|
|
|
@@ -83,9 +84,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
83
84
|
SOFTWARE.
|
|
84
85
|
|
|
85
86
|
|
|
86
|
-
## UI Lab OTPInput
|
|
87
|
+
## UI Lab OTPInput (Interaction & Motion Reference; MIT)
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
OTPInput references the interaction and motion design of UI Lab's `src/lab/components/otp-input.tsx` (https://lab.xevrion.dev/lab/otp-input), reimplemented independently in Svelte 5 using SnowUI public APIs, shared tokens, and motion primitives without its React runtime.
|
|
89
90
|
|
|
90
91
|
MIT License
|
|
91
92
|
|
|
@@ -110,9 +111,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
110
111
|
SOFTWARE.
|
|
111
112
|
|
|
112
113
|
|
|
113
|
-
## Number Flow 0.6.2
|
|
114
|
+
## Number Flow 0.6.2 (NumberFlow / FlowText Motion Reference; MIT)
|
|
114
115
|
|
|
115
|
-
NumberFlow
|
|
116
|
+
NumberFlow and FlowText reference the numeric and character motion model of [Number Flow](https://github.com/barvian/number-flow), implemented natively in Svelte 5 by SnowUI. Upstream license notice:
|
|
116
117
|
|
|
117
118
|
MIT License
|
|
118
119
|
|
|
@@ -137,9 +138,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
137
138
|
SOFTWARE.
|
|
138
139
|
|
|
139
140
|
|
|
140
|
-
## ProgressiveBlur
|
|
141
|
+
## ProgressiveBlur (Progressive Blur Effect Reference; MIT)
|
|
141
142
|
|
|
142
|
-
SnowUI
|
|
143
|
+
SnowUI's progressive blur effect references [ProgressiveBlur](https://github.com/usagimaru/ProgressiveBlur), implemented on the web with layered `backdrop-filter` and CSS masks. Upstream license notice:
|
|
143
144
|
|
|
144
145
|
MIT License
|
|
145
146
|
|
|
@@ -164,9 +165,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
164
165
|
SOFTWARE.
|
|
165
166
|
|
|
166
167
|
|
|
167
|
-
## Svelte Animations
|
|
168
|
+
## Svelte Animations (Blur Reveal Effect Reference; MIT)
|
|
168
169
|
|
|
169
|
-
BlurText
|
|
170
|
+
BlurText references the Blur Reveal effect from [Svelte Animations](https://github.com/SikandarJODD/animations), reimplemented using SnowUI shared motion capabilities without depending on its runtime. Upstream license notice:
|
|
170
171
|
|
|
171
172
|
MIT License
|
|
172
173
|
|