@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.
Files changed (144) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -2
  3. package/agent/components/accordion.md +95 -0
  4. package/agent/components/action-square.md +106 -0
  5. package/agent/components/agent-bridge.md +87 -0
  6. package/agent/components/agent-console.md +123 -0
  7. package/agent/components/alert-dialog.md +82 -0
  8. package/agent/components/app-shell.md +105 -0
  9. package/agent/components/area-chart.md +56 -0
  10. package/agent/components/async-options.md +47 -0
  11. package/agent/components/autocomplete.md +69 -0
  12. package/agent/components/avatar.md +88 -0
  13. package/agent/components/badge.md +51 -0
  14. package/agent/components/bar-chart.md +56 -0
  15. package/agent/components/bar-list.md +49 -0
  16. package/agent/components/breadcrumbs.md +43 -0
  17. package/agent/components/button.md +109 -0
  18. package/agent/components/calendar.md +114 -0
  19. package/agent/components/canvas.md +105 -0
  20. package/agent/components/card.md +78 -0
  21. package/agent/components/carousel.md +113 -0
  22. package/agent/components/chart-card.md +41 -0
  23. package/agent/components/chart-surface.md +56 -0
  24. package/agent/components/checkbox.md +88 -0
  25. package/agent/components/citation-chip.md +61 -0
  26. package/agent/components/collapsible.md +69 -0
  27. package/agent/components/color-picker.md +82 -0
  28. package/agent/components/combobox.md +104 -0
  29. package/agent/components/command.md +92 -0
  30. package/agent/components/dashboard-grid.md +73 -0
  31. package/agent/components/date-input.md +87 -0
  32. package/agent/components/date-picker.md +122 -0
  33. package/agent/components/dialog.md +97 -0
  34. package/agent/components/donut-chart.md +50 -0
  35. package/agent/components/drawer.md +101 -0
  36. package/agent/components/empty-state.md +52 -0
  37. package/agent/components/field.md +80 -0
  38. package/agent/components/file-input.md +84 -0
  39. package/agent/components/hover-card.md +64 -0
  40. package/agent/components/image-cropper.md +77 -0
  41. package/agent/components/input.md +49 -0
  42. package/agent/components/label.md +53 -0
  43. package/agent/components/line-chart.md +60 -0
  44. package/agent/components/listbox.md +84 -0
  45. package/agent/components/map-view.md +104 -0
  46. package/agent/components/menu.md +117 -0
  47. package/agent/components/menubar.md +67 -0
  48. package/agent/components/meter.md +59 -0
  49. package/agent/components/navigation-menu.md +98 -0
  50. package/agent/components/number-input.md +81 -0
  51. package/agent/components/otp-input.md +67 -0
  52. package/agent/components/pagination.md +80 -0
  53. package/agent/components/password-input.md +67 -0
  54. package/agent/components/pill-button.md +116 -0
  55. package/agent/components/popover.md +85 -0
  56. package/agent/components/poster-card.md +61 -0
  57. package/agent/components/preferences.md +92 -0
  58. package/agent/components/progress.md +63 -0
  59. package/agent/components/provider.md +47 -0
  60. package/agent/components/radio.md +91 -0
  61. package/agent/components/rating.md +66 -0
  62. package/agent/components/reorder.md +61 -0
  63. package/agent/components/resizable.md +87 -0
  64. package/agent/components/scatter-chart.md +49 -0
  65. package/agent/components/scroll-area.md +81 -0
  66. package/agent/components/segmented-control.md +56 -0
  67. package/agent/components/select.md +130 -0
  68. package/agent/components/separator.md +60 -0
  69. package/agent/components/shortcuts.md +50 -0
  70. package/agent/components/sidebar-nav.md +68 -0
  71. package/agent/components/skeleton.md +58 -0
  72. package/agent/components/slider.md +79 -0
  73. package/agent/components/sparkline.md +39 -0
  74. package/agent/components/squircle.md +58 -0
  75. package/agent/components/stat.md +58 -0
  76. package/agent/components/switch.md +48 -0
  77. package/agent/components/table.md +58 -0
  78. package/agent/components/tabs.md +108 -0
  79. package/agent/components/textarea.md +68 -0
  80. package/agent/components/time-input.md +84 -0
  81. package/agent/components/timeline.md +91 -0
  82. package/agent/components/toast.md +85 -0
  83. package/agent/components/toggle.md +76 -0
  84. package/agent/components/token-input.md +66 -0
  85. package/agent/components/toolbar.md +76 -0
  86. package/agent/components/tooltip.md +83 -0
  87. package/agent/components/tracker.md +47 -0
  88. package/agent/components/tree.md +87 -0
  89. package/agent/components/treemap.md +72 -0
  90. package/agent/components/trend-chart.md +80 -0
  91. package/agent/components/trigger-menu.md +67 -0
  92. package/agent/components/typography.md +51 -0
  93. package/agent/components/waterfall.md +78 -0
  94. package/agent/components/week-schedule.md +113 -0
  95. package/agent/llms/actions-and-layout.txt +1749 -0
  96. package/agent/llms/agents.txt +505 -0
  97. package/agent/llms/charts.txt +778 -0
  98. package/agent/llms/dashboards.txt +457 -0
  99. package/agent/llms/extend.txt +132 -0
  100. package/agent/llms/extras.txt +527 -0
  101. package/agent/llms/forms.txt +2152 -0
  102. package/agent/llms/foundations.txt +674 -0
  103. package/agent/llms/hooks.txt +178 -0
  104. package/agent/llms/maps.txt +229 -0
  105. package/agent/llms/overlays-and-navigation.txt +1167 -0
  106. package/agent/llms-full.txt +8717 -0
  107. package/agent/llms.txt +145 -0
  108. package/agent/registry.json +11289 -0
  109. package/agent/tokens.md +66 -0
  110. package/dist/agent/index.d.ts +235 -0
  111. package/dist/agent/index.js +21 -0
  112. package/dist/card-Ipm-Cj5f.d.ts +490 -0
  113. package/dist/charts/index.d.ts +289 -0
  114. package/dist/charts/index.js +815 -0
  115. package/dist/check/cli.d.ts +1 -0
  116. package/dist/check/cli.js +48 -0
  117. package/dist/check/rendered.d.ts +11 -0
  118. package/dist/check/rendered.js +77 -0
  119. package/dist/check/source.d.ts +13 -0
  120. package/dist/check/source.js +182 -0
  121. package/dist/chunk-3DXBM65D.js +65 -0
  122. package/dist/chunk-3H5X4ZP6.js +55 -0
  123. package/dist/chunk-6XC4BC5C.js +92 -0
  124. package/dist/chunk-7H6TEAWD.js +507 -0
  125. package/dist/chunk-I63ZTJOI.js +1089 -0
  126. package/dist/chunk-JCIRUM4W.js +33 -0
  127. package/dist/chunk-LTBEHZ3P.js +25 -0
  128. package/dist/chunk-QDPPLO4U.js +60 -0
  129. package/dist/chunk-U2XFBPU4.js +56 -0
  130. package/dist/chunk-UY2WH5AY.js +681 -0
  131. package/dist/extras.d.ts +203 -0
  132. package/dist/extras.js +904 -0
  133. package/dist/icons-BJiGEAnU.d.ts +68 -0
  134. package/dist/index.d.ts +3737 -0
  135. package/dist/index.js +14477 -0
  136. package/dist/map/index.d.ts +115 -0
  137. package/dist/map/index.js +394 -0
  138. package/dist/meta/index.d.ts +3314 -0
  139. package/dist/meta/index.js +5106 -0
  140. package/dist/rules-1RIZ_JZr.d.ts +38 -0
  141. package/dist/styles.css +4037 -0
  142. package/dist/themes/calm.css +42 -0
  143. package/dist/themes/frost.css +40 -0
  144. 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.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
+ }