@openwarelabs/ui 0.9.0 → 0.10.1

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 (33) hide show
  1. package/README.md +12 -4
  2. package/dist/components/Avatar/Avatar.d.cts +2 -13
  3. package/dist/components/Avatar/Avatar.d.ts +2 -13
  4. package/dist/components/Avatar/Avatar.types.d.cts +13 -0
  5. package/dist/components/Avatar/Avatar.types.d.ts +13 -0
  6. package/dist/components/Calendar/DatePicker.d.cts +2 -19
  7. package/dist/components/Calendar/DatePicker.d.ts +2 -19
  8. package/dist/components/Calendar/DatePicker.types.d.cts +19 -0
  9. package/dist/components/Calendar/DatePicker.types.d.ts +19 -0
  10. package/dist/components/Calendar/DateRangePicker.d.cts +2 -34
  11. package/dist/components/Calendar/DateRangePicker.d.ts +2 -34
  12. package/dist/components/Calendar/DateRangePicker.types.d.cts +34 -0
  13. package/dist/components/Calendar/DateRangePicker.types.d.ts +34 -0
  14. package/dist/components/ColorPicker/ColorPicker.d.cts +2 -55
  15. package/dist/components/ColorPicker/ColorPicker.d.ts +2 -55
  16. package/dist/components/ColorPicker/ColorPicker.types.d.cts +54 -0
  17. package/dist/components/ColorPicker/ColorPicker.types.d.ts +54 -0
  18. package/dist/components/ListBox/ListBox.d.cts +3 -61
  19. package/dist/components/ListBox/ListBox.d.ts +3 -61
  20. package/dist/components/ListBox/ListBox.types.d.cts +61 -0
  21. package/dist/components/ListBox/ListBox.types.d.ts +61 -0
  22. package/dist/components/Prose/Prose.d.cts +2 -16
  23. package/dist/components/Prose/Prose.d.ts +2 -16
  24. package/dist/components/Prose/Prose.types.d.cts +16 -0
  25. package/dist/components/Prose/Prose.types.d.ts +16 -0
  26. package/dist/components.css +16 -0
  27. package/dist/index.cjs +110 -98
  28. package/dist/index.cjs.map +2 -2
  29. package/dist/index.js +179 -167
  30. package/dist/index.js.map +3 -3
  31. package/dist/openware-ui.iife.js +6 -6
  32. package/dist/styles.css +16 -0
  33. package/package.json +19 -5
package/dist/styles.css CHANGED
@@ -1652,7 +1652,14 @@
1652
1652
  }
1653
1653
 
1654
1654
  .ow-date-field__segment {
1655
+ /* At least 24px each way, the smallest a pointer target may be (WCAG 2.2, 2.5.8). */
1656
+ box-sizing: border-box;
1657
+ display: inline-flex;
1658
+ min-width: 24px;
1659
+ min-height: 24px;
1655
1660
  flex-shrink: 0;
1661
+ align-items: center;
1662
+ justify-content: center;
1656
1663
  border-radius: var(--ow-radius-sm);
1657
1664
  padding: 2px;
1658
1665
  color: var(--ow-text);
@@ -1664,6 +1671,11 @@
1664
1671
  transition-timing-function: var(--ow-ease-standard);
1665
1672
  }
1666
1673
 
1674
+ .ow-date-field__segment[data-segment="0"] {
1675
+ /* The first, often one digit ("6:12"), keeps to the separator after it; the spare width goes before it. */
1676
+ justify-content: flex-end;
1677
+ }
1678
+
1667
1679
  .ow-date-field__segment::selection {
1668
1680
  background: transparent;
1669
1681
  }
@@ -5511,6 +5523,10 @@
5511
5523
  line-height: 1;
5512
5524
  }
5513
5525
 
5526
+ .ow-avatar[data-initials]::before {
5527
+ content: attr(data-initials);
5528
+ }
5529
+
5514
5530
  .ow-avatar--empty {
5515
5531
  background: var(--ow-avatar-empty);
5516
5532
  color: var(--ow-on-avatar-empty);
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@openwarelabs/ui",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "Openware UI: React components and design tokens — midnight and brass, tactile buttons and Inter, in light and dark.",
5
5
  "license": "MIT",
6
6
  "author": "Alexander Silver",
7
- "homepage": "https://github.com/openwarelabs/ui#readme",
7
+ "homepage": "https://openwarelabs.github.io/ui/",
8
8
  "bugs": {
9
9
  "url": "https://github.com/openwarelabs/ui/issues"
10
10
  },
@@ -54,7 +54,12 @@
54
54
  "mcp:build": "node scripts/build-mcp.mjs && tsc -p mcp/tsconfig.json",
55
55
  "mcp:inspect": "npx -y @modelcontextprotocol/inspector node mcp/dist/server.mjs",
56
56
  "release": "node scripts/release.mjs",
57
- "commits:check": "node scripts/check-commits.mjs"
57
+ "commits:check": "node scripts/check-commits.mjs",
58
+ "visual": "node scripts/visual.mjs",
59
+ "size": "node scripts/size.mjs",
60
+ "a11y": "node scripts/a11y.mjs",
61
+ "smoke": "node scripts/smoke.mjs",
62
+ "lint": "eslint"
58
63
  },
59
64
  "peerDependencies": {
60
65
  "react": ">=18",
@@ -63,20 +68,29 @@
63
68
  "dependencies": {
64
69
  "@fontsource-variable/geist-mono": "^5.3.0",
65
70
  "@fontsource-variable/inter": "^5.3.0",
66
- "react-colorful": "5.6.1",
71
+ "react-colorful": "5.8.1",
67
72
  "sonner": "^2.0.8"
68
73
  },
69
74
  "devDependencies": {
75
+ "@arethetypeswrong/cli": "^0.18.5",
70
76
  "@modelcontextprotocol/sdk": "^1.32.1",
71
77
  "@types/react": "^18.3.12",
72
78
  "@types/react-dom": "^18.3.1",
79
+ "axe-core": "^4.14.0",
73
80
  "culori": "^4.0.1",
74
- "esbuild": "^0.25.0",
81
+ "esbuild": "^0.28.2",
82
+ "eslint": "^10.12.0",
83
+ "eslint-plugin-react-hooks": "^7.1.1",
75
84
  "lucide-react": "^1.48.0",
85
+ "pixelmatch": "^8.0.0",
86
+ "playwright": "^1.64.1",
87
+ "pngjs": "^7.0.0",
88
+ "publint": "^0.3.25",
76
89
  "react": "^18.3.1",
77
90
  "react-dom": "^18.3.1",
78
91
  "shiki": "^4.4.3",
79
92
  "typescript": "^5.6.3",
93
+ "typescript-eslint": "^8.71.2",
80
94
  "zod": "^4.6.7"
81
95
  },
82
96
  "repository": {