@peerproblem/sw3-ui 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +109 -2
- package/agent/components/accordion.md +95 -0
- package/agent/components/action-square.md +106 -0
- package/agent/components/agent-bridge.md +87 -0
- package/agent/components/agent-console.md +123 -0
- package/agent/components/alert-dialog.md +82 -0
- package/agent/components/app-shell.md +105 -0
- package/agent/components/area-chart.md +56 -0
- package/agent/components/async-options.md +47 -0
- package/agent/components/autocomplete.md +69 -0
- package/agent/components/avatar.md +88 -0
- package/agent/components/badge.md +51 -0
- package/agent/components/bar-chart.md +56 -0
- package/agent/components/bar-list.md +49 -0
- package/agent/components/breadcrumbs.md +43 -0
- package/agent/components/button.md +109 -0
- package/agent/components/calendar.md +114 -0
- package/agent/components/canvas.md +105 -0
- package/agent/components/card.md +78 -0
- package/agent/components/carousel.md +113 -0
- package/agent/components/chart-card.md +41 -0
- package/agent/components/chart-surface.md +56 -0
- package/agent/components/checkbox.md +88 -0
- package/agent/components/citation-chip.md +61 -0
- package/agent/components/collapsible.md +69 -0
- package/agent/components/color-picker.md +82 -0
- package/agent/components/combobox.md +104 -0
- package/agent/components/command.md +92 -0
- package/agent/components/dashboard-grid.md +73 -0
- package/agent/components/date-input.md +87 -0
- package/agent/components/date-picker.md +122 -0
- package/agent/components/dialog.md +97 -0
- package/agent/components/donut-chart.md +50 -0
- package/agent/components/drawer.md +101 -0
- package/agent/components/empty-state.md +52 -0
- package/agent/components/field.md +80 -0
- package/agent/components/file-input.md +84 -0
- package/agent/components/hover-card.md +64 -0
- package/agent/components/image-cropper.md +77 -0
- package/agent/components/input.md +49 -0
- package/agent/components/label.md +53 -0
- package/agent/components/line-chart.md +60 -0
- package/agent/components/listbox.md +84 -0
- package/agent/components/map-view.md +104 -0
- package/agent/components/menu.md +117 -0
- package/agent/components/menubar.md +67 -0
- package/agent/components/meter.md +59 -0
- package/agent/components/navigation-menu.md +98 -0
- package/agent/components/number-input.md +81 -0
- package/agent/components/otp-input.md +67 -0
- package/agent/components/pagination.md +80 -0
- package/agent/components/password-input.md +67 -0
- package/agent/components/pill-button.md +116 -0
- package/agent/components/popover.md +85 -0
- package/agent/components/poster-card.md +61 -0
- package/agent/components/preferences.md +92 -0
- package/agent/components/progress.md +63 -0
- package/agent/components/provider.md +47 -0
- package/agent/components/radio.md +91 -0
- package/agent/components/rating.md +66 -0
- package/agent/components/reorder.md +61 -0
- package/agent/components/resizable.md +87 -0
- package/agent/components/scatter-chart.md +49 -0
- package/agent/components/scroll-area.md +81 -0
- package/agent/components/segmented-control.md +56 -0
- package/agent/components/select.md +130 -0
- package/agent/components/separator.md +60 -0
- package/agent/components/shortcuts.md +50 -0
- package/agent/components/sidebar-nav.md +68 -0
- package/agent/components/skeleton.md +58 -0
- package/agent/components/slider.md +79 -0
- package/agent/components/sparkline.md +39 -0
- package/agent/components/squircle.md +58 -0
- package/agent/components/stat.md +58 -0
- package/agent/components/switch.md +48 -0
- package/agent/components/table.md +58 -0
- package/agent/components/tabs.md +108 -0
- package/agent/components/textarea.md +68 -0
- package/agent/components/time-input.md +84 -0
- package/agent/components/timeline.md +91 -0
- package/agent/components/toast.md +85 -0
- package/agent/components/toggle.md +76 -0
- package/agent/components/token-input.md +66 -0
- package/agent/components/toolbar.md +76 -0
- package/agent/components/tooltip.md +83 -0
- package/agent/components/tracker.md +47 -0
- package/agent/components/tree.md +87 -0
- package/agent/components/treemap.md +72 -0
- package/agent/components/trend-chart.md +80 -0
- package/agent/components/trigger-menu.md +67 -0
- package/agent/components/typography.md +51 -0
- package/agent/components/waterfall.md +78 -0
- package/agent/components/week-schedule.md +113 -0
- package/agent/llms/actions-and-layout.txt +1749 -0
- package/agent/llms/agents.txt +505 -0
- package/agent/llms/charts.txt +778 -0
- package/agent/llms/dashboards.txt +457 -0
- package/agent/llms/extend.txt +132 -0
- package/agent/llms/extras.txt +527 -0
- package/agent/llms/forms.txt +2152 -0
- package/agent/llms/foundations.txt +674 -0
- package/agent/llms/hooks.txt +178 -0
- package/agent/llms/maps.txt +229 -0
- package/agent/llms/overlays-and-navigation.txt +1167 -0
- package/agent/llms-full.txt +8717 -0
- package/agent/llms.txt +145 -0
- package/agent/registry.json +11289 -0
- package/agent/tokens.md +66 -0
- package/dist/agent/index.d.ts +235 -0
- package/dist/agent/index.js +21 -0
- package/dist/card-Ipm-Cj5f.d.ts +490 -0
- package/dist/charts/index.d.ts +289 -0
- package/dist/charts/index.js +815 -0
- package/dist/check/cli.d.ts +1 -0
- package/dist/check/cli.js +48 -0
- package/dist/check/rendered.d.ts +11 -0
- package/dist/check/rendered.js +77 -0
- package/dist/check/source.d.ts +13 -0
- package/dist/check/source.js +182 -0
- package/dist/chunk-3DXBM65D.js +65 -0
- package/dist/chunk-3H5X4ZP6.js +55 -0
- package/dist/chunk-6XC4BC5C.js +92 -0
- package/dist/chunk-7H6TEAWD.js +507 -0
- package/dist/chunk-I63ZTJOI.js +1089 -0
- package/dist/chunk-JCIRUM4W.js +33 -0
- package/dist/chunk-LTBEHZ3P.js +25 -0
- package/dist/chunk-QDPPLO4U.js +60 -0
- package/dist/chunk-U2XFBPU4.js +56 -0
- package/dist/chunk-UY2WH5AY.js +681 -0
- package/dist/extras.d.ts +203 -0
- package/dist/extras.js +904 -0
- package/dist/icons-BJiGEAnU.d.ts +68 -0
- package/dist/index.d.ts +3737 -0
- package/dist/index.js +14477 -0
- package/dist/map/index.d.ts +115 -0
- package/dist/map/index.js +394 -0
- package/dist/meta/index.d.ts +3314 -0
- package/dist/meta/index.js +5106 -0
- package/dist/rules-1RIZ_JZr.d.ts +38 -0
- package/dist/styles.css +4037 -0
- package/dist/themes/calm.css +42 -0
- package/dist/themes/frost.css +40 -0
- package/package.json +142 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@layer sw3 {
|
|
2
|
+
/*
|
|
3
|
+
* Design: calm — a quiet clinical look.
|
|
4
|
+
* Cool teal-grey ink, soft pale tiles, translucent pills on deep "night" panels.
|
|
5
|
+
*
|
|
6
|
+
* Use: import '@peerproblem/sw3-ui/themes/calm.css' then <html data-design="calm"> (or any wrapper element).
|
|
7
|
+
* Fonts: set --sw-design-font to a loaded face. IBM Plex Sans 400/500 suits it.
|
|
8
|
+
*
|
|
9
|
+
* A design file only sets variables. It never targets component selectors, so every component
|
|
10
|
+
* keeps working and an app can still override any single variable on top.
|
|
11
|
+
*/
|
|
12
|
+
[data-design='calm'] {
|
|
13
|
+
--sw-design-font: 'IBM Plex Sans', var(--sw-font-sans);
|
|
14
|
+
--calm-ink: oklch(0.28807 0.00922 219.81);
|
|
15
|
+
--calm-night: #1b2022;
|
|
16
|
+
--calm-pale: oklch(0.96488 0.0032 197.08);
|
|
17
|
+
|
|
18
|
+
/* ActionSquare */
|
|
19
|
+
--sw-action-square-light-fg: var(--calm-ink);
|
|
20
|
+
--sw-action-square-light-tile-fg: var(--calm-ink);
|
|
21
|
+
--sw-action-square-light-tile-bg: var(--calm-pale);
|
|
22
|
+
--sw-action-square-light-tile-bg-hover: #e7eaea;
|
|
23
|
+
--sw-action-square-light-tile-bg-active: #dfe2e2;
|
|
24
|
+
--sw-action-square-ink-fg: var(--calm-ink);
|
|
25
|
+
--sw-action-square-ink-tile-bg: var(--calm-ink);
|
|
26
|
+
--sw-action-square-ink-tile-bg-hover: #3a4446;
|
|
27
|
+
--sw-action-square-ink-tile-fg: #fff;
|
|
28
|
+
|
|
29
|
+
/* PillButton */
|
|
30
|
+
--sw-pill-button-night-bg: oklch(1 0 0 / 0.1);
|
|
31
|
+
--sw-pill-button-night-bg-hover: oklch(1 0 0 / 0.15);
|
|
32
|
+
--sw-pill-button-ink-bg: var(--calm-ink);
|
|
33
|
+
--sw-pill-button-ink-bg-hover: #3a4446;
|
|
34
|
+
--sw-pill-button-ink-fg: #fff;
|
|
35
|
+
--sw-pill-button-soft-bg: var(--calm-pale);
|
|
36
|
+
--sw-pill-button-soft-bg-hover: #e7eaea;
|
|
37
|
+
--sw-pill-button-soft-fg: var(--calm-ink);
|
|
38
|
+
--sw-pill-button-font-weight: 500;
|
|
39
|
+
}
|
|
40
|
+
[data-design='calm'] :where(.sw-action-square, .sw-pill-button) { font-family: var(--sw-design-font); }
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer sw3 {
|
|
2
|
+
/*
|
|
3
|
+
* Design: frost — a frosted, high-contrast look.
|
|
4
|
+
* Everything translucent with backdrop blur; hover flips to solid black or white.
|
|
5
|
+
*
|
|
6
|
+
* Use: import '@peerproblem/sw3-ui/themes/frost.css' then <html data-design="frost"> (or any wrapper element).
|
|
7
|
+
* Frost needs colour behind it: put it over imagery or a gradient.
|
|
8
|
+
* Fonts: set --sw-design-font to a loaded face. Urbanist 400–600 suits it.
|
|
9
|
+
*
|
|
10
|
+
* A design file only sets variables. It never targets component selectors.
|
|
11
|
+
*/
|
|
12
|
+
[data-design='frost'] {
|
|
13
|
+
--sw-design-font: 'Urbanist', var(--sw-font-sans);
|
|
14
|
+
|
|
15
|
+
/* ActionSquare */
|
|
16
|
+
--sw-action-square-light-tile-bg: rgb(255 255 255 / 0.55);
|
|
17
|
+
--sw-action-square-light-tile-bg-hover: #000;
|
|
18
|
+
--sw-action-square-light-tile-bg-active: #222;
|
|
19
|
+
--sw-action-square-light-tile-fg: #000;
|
|
20
|
+
--sw-action-square-light-tile-fg-hover: #fff;
|
|
21
|
+
--sw-action-square-light-fg: #000;
|
|
22
|
+
--sw-action-square-ink-tile-bg: #000;
|
|
23
|
+
--sw-action-square-ink-tile-bg-hover: #2a2a2a;
|
|
24
|
+
--sw-action-square-ink-tile-fg: #fff;
|
|
25
|
+
|
|
26
|
+
/* PillButton */
|
|
27
|
+
--sw-pill-button-night-bg: rgb(255 255 255 / 0.08);
|
|
28
|
+
--sw-pill-button-night-bg-hover: #fff;
|
|
29
|
+
--sw-pill-button-night-fg: #fff;
|
|
30
|
+
--sw-pill-button-night-fg-hover: #000;
|
|
31
|
+
--sw-pill-button-night-blur: 12px;
|
|
32
|
+
--sw-pill-button-soft-bg: rgb(255 255 255 / 0.5);
|
|
33
|
+
--sw-pill-button-soft-bg-hover: #000;
|
|
34
|
+
--sw-pill-button-soft-fg: #000;
|
|
35
|
+
--sw-pill-button-soft-fg-hover: #fff;
|
|
36
|
+
--sw-pill-button-font-weight: 600;
|
|
37
|
+
}
|
|
38
|
+
[data-design='frost'] :where(.sw-action-square, .sw-pill-button) { font-family: var(--sw-design-font); }
|
|
39
|
+
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,144 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerproblem/sw3-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Agentic React design system: accessible components, design rules and tokens that AI agents can read, build with and operate. Squircle surfaces, Unovis charts and MapLibre maps.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Peer Problem",
|
|
7
|
+
"homepage": "https://sw3-ui-sdk.vercel.app",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/peerproblem/sw3-ui-sdk.git",
|
|
11
|
+
"directory": "packages/ui"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/peerproblem/sw3-ui-sdk/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"react",
|
|
18
|
+
"design-system",
|
|
19
|
+
"ui",
|
|
20
|
+
"components",
|
|
21
|
+
"ai-agents",
|
|
22
|
+
"llms-txt",
|
|
23
|
+
"agentic",
|
|
24
|
+
"squircle",
|
|
25
|
+
"dashboard",
|
|
26
|
+
"charts",
|
|
27
|
+
"accessibility"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"bin": {
|
|
31
|
+
"sw3-check": "dist/check/cli.js"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css"
|
|
35
|
+
],
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./charts": {
|
|
42
|
+
"types": "./dist/charts/index.d.ts",
|
|
43
|
+
"import": "./dist/charts/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./extras": {
|
|
46
|
+
"types": "./dist/extras.d.ts",
|
|
47
|
+
"import": "./dist/extras.js"
|
|
48
|
+
},
|
|
49
|
+
"./map": {
|
|
50
|
+
"types": "./dist/map/index.d.ts",
|
|
51
|
+
"import": "./dist/map/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./meta": {
|
|
54
|
+
"types": "./dist/meta/index.d.ts",
|
|
55
|
+
"import": "./dist/meta/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./agent": {
|
|
58
|
+
"types": "./dist/agent/index.d.ts",
|
|
59
|
+
"import": "./dist/agent/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./check": {
|
|
62
|
+
"types": "./dist/check/rendered.d.ts",
|
|
63
|
+
"import": "./dist/check/rendered.js"
|
|
64
|
+
},
|
|
65
|
+
"./check/source": {
|
|
66
|
+
"types": "./dist/check/source.d.ts",
|
|
67
|
+
"import": "./dist/check/source.js"
|
|
68
|
+
},
|
|
69
|
+
"./styles.css": "./dist/styles.css",
|
|
70
|
+
"./themes/*": "./dist/themes/*",
|
|
71
|
+
"./registry.json": "./agent/registry.json",
|
|
72
|
+
"./llms.txt": "./agent/llms.txt",
|
|
73
|
+
"./llms-full.txt": "./agent/llms-full.txt",
|
|
74
|
+
"./agent/*": "./agent/*"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"dist",
|
|
78
|
+
"agent",
|
|
79
|
+
"README.md",
|
|
80
|
+
"LICENSE"
|
|
81
|
+
],
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "tsup && node scripts/bundle-css.mjs",
|
|
84
|
+
"agent:build": "node --import tsx scripts/build-agent-docs.ts",
|
|
85
|
+
"prepack": "npm run agent:build && npm run build",
|
|
86
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
87
|
+
"prepublishOnly": "node --import tsx --test tests/*.test.ts"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"@unovis/react": "~1.8.1",
|
|
91
|
+
"@unovis/ts": "~1.8.1",
|
|
92
|
+
"d3-hierarchy": "^3.1.0",
|
|
93
|
+
"maplibre-gl": "^6.18.0",
|
|
94
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
95
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
96
|
+
"typescript": "^5.9.3"
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@floating-ui/react-dom": "^2.1.9",
|
|
100
|
+
"d3-color": "^3.1.1",
|
|
101
|
+
"figma-squircle": "^1.1.0",
|
|
102
|
+
"motion": "14.14.0",
|
|
103
|
+
"postcss": "^8.5.33"
|
|
104
|
+
},
|
|
105
|
+
"peerDependenciesMeta": {
|
|
106
|
+
"@unovis/react": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"@unovis/ts": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
112
|
+
"maplibre-gl": {
|
|
113
|
+
"optional": true
|
|
114
|
+
},
|
|
115
|
+
"d3-hierarchy": {
|
|
116
|
+
"optional": true
|
|
117
|
+
},
|
|
118
|
+
"typescript": {
|
|
119
|
+
"optional": true
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"devDependencies": {
|
|
123
|
+
"@types/d3-color": "3.1.3",
|
|
124
|
+
"@types/d3-hierarchy": "3.1.7",
|
|
125
|
+
"@types/node": "^24.19.2",
|
|
126
|
+
"@types/react": "19.3.0",
|
|
127
|
+
"@types/react-dom": "19.3.0",
|
|
128
|
+
"@unovis/react": "1.8.1",
|
|
129
|
+
"@unovis/ts": "1.8.1",
|
|
130
|
+
"d3-hierarchy": "3.1.3",
|
|
131
|
+
"maplibre-gl": "6.18.0",
|
|
132
|
+
"react": "19.3.1",
|
|
133
|
+
"react-dom": "19.3.1",
|
|
134
|
+
"tsup": "9.0.0",
|
|
135
|
+
"tsx": "4.23.15",
|
|
136
|
+
"typescript": "5.9.3"
|
|
137
|
+
},
|
|
138
|
+
"engines": {
|
|
139
|
+
"node": ">=20"
|
|
140
|
+
},
|
|
141
|
+
"publishConfig": {
|
|
142
|
+
"access": "public"
|
|
143
|
+
}
|
|
144
|
+
}
|