opsfuse-ui 0.1.21 → 0.1.22

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 (36) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +76 -12
  3. package/dist/components/logo/LogoMaker.d.ts.map +1 -1
  4. package/dist/components/opsfuse-theme-provider.d.ts.map +1 -1
  5. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  6. package/dist/components/ui/alert.d.ts.map +1 -1
  7. package/dist/components/ui/carousel.d.ts.map +1 -1
  8. package/dist/components/ui/combobox.d.ts.map +1 -1
  9. package/dist/components/ui/sidebar.d.ts.map +1 -1
  10. package/dist/core.js +4 -3
  11. package/dist/date-fns-locale.js +1 -39647
  12. package/dist/date-fns.js +1 -3
  13. package/dist/extended.js +3 -2
  14. package/dist/hooks/use-mobile.d.ts +14 -0
  15. package/dist/hooks/use-mobile.d.ts.map +1 -1
  16. package/dist/icons.js +1 -2
  17. package/dist/index.js +61 -2829
  18. package/dist/input-group-COKxQf1K.js +560 -0
  19. package/dist/input-otp-Cbt2uaq7.js +1181 -0
  20. package/dist/lib/document-dark-mode.d.ts.map +1 -1
  21. package/dist/lib/link.d.ts.map +1 -1
  22. package/dist/lib/portaled-layer.d.ts.map +1 -1
  23. package/dist/recharts.js +1 -2
  24. package/dist/style.css +50 -6
  25. package/dist/toggle-group-Cwi9rLMs.js +3174 -0
  26. package/package.json +41 -14
  27. package/theme.css +47 -3
  28. package/dist/chunk-Dqa2HsxW.js +0 -20
  29. package/dist/clsx-BWCAbrjV.js +0 -16
  30. package/dist/date-fns-DTKqTajJ.js +0 -3871
  31. package/dist/es6-CLjPx7Zx.js +0 -23996
  32. package/dist/input-group-BAkukY-L.js +0 -5463
  33. package/dist/input-otp-DyyXKjPp.js +0 -10792
  34. package/dist/isSameWeek-B6PEe-M_.js +0 -537
  35. package/dist/lucide-react-Dil0H3iN.js +0 -38770
  36. package/dist/toggle-group-Bpg09Bg7.js +0 -11072
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opsfuse-ui",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -55,7 +55,9 @@
55
55
  "dist",
56
56
  "scripts",
57
57
  "theme.css",
58
- ".claude"
58
+ ".claude",
59
+ "LICENSE",
60
+ "README.md"
59
61
  ],
60
62
  "scripts": {
61
63
  "dev": "vite",
@@ -67,15 +69,18 @@
67
69
  "lint": "eslint .",
68
70
  "preview": "vite preview",
69
71
  "storybook": "storybook dev -p 6006",
70
- "build-storybook": "storybook build"
72
+ "build-storybook": "storybook build",
73
+ "test": "npm run build:lib && vitest run",
74
+ "test:unit": "vitest run",
75
+ "test:watch": "vitest"
71
76
  },
72
77
  "peerDependencies": {
73
78
  "react": "^19.0.0",
74
- "react-dom": "^19.0.0"
79
+ "react-dom": "^19.0.0",
80
+ "tailwindcss": "^4.0.0"
75
81
  },
76
82
  "dependencies": {
77
83
  "@base-ui/react": "^1.4.0",
78
- "@tailwindcss/vite": "^4.2.2",
79
84
  "@tanstack/react-form": "^1.29.0",
80
85
  "class-variance-authority": "^0.7.1",
81
86
  "clsx": "^2.1.1",
@@ -89,36 +94,58 @@
89
94
  "react-is": "^19.2.5",
90
95
  "react-resizable-panels": "^4.10.0",
91
96
  "recharts": "^3.8.1",
92
- "shadcn": "^4.2.0",
93
97
  "sonner": "^2.0.7",
94
98
  "tailwind-merge": "^3.5.0",
95
- "tailwindcss": "^4.2.2",
96
- "tw-animate-css": "^1.4.0",
97
99
  "use-sync-external-store": "^1.6.0",
98
100
  "vaul": "^1.1.2"
99
101
  },
100
102
  "devDependencies": {
101
103
  "@eslint/js": "^10.0.1",
102
- "@storybook/addon-docs": "^10.3.5",
103
- "@storybook/addon-themes": "^10.3.5",
104
- "@storybook/react": "^10.3.5",
105
- "@storybook/react-vite": "^10.3.5",
104
+ "@storybook/addon-a11y": "^10.5.5",
105
+ "@storybook/addon-docs": "^10.5.5",
106
+ "@storybook/addon-themes": "^10.5.5",
107
+ "@storybook/react": "^10.5.5",
108
+ "@storybook/react-vite": "^10.5.5",
109
+ "@tailwindcss/vite": "^4.2.2",
110
+ "@testing-library/jest-dom": "^7.0.0",
111
+ "@testing-library/react": "^16.3.2",
106
112
  "@types/node": "^25.6.0",
107
113
  "@types/react": "^19.2.14",
108
114
  "@types/react-dom": "^19.2.3",
109
115
  "@vitejs/plugin-react": "^6.0.1",
116
+ "acorn": "^8.18.0",
110
117
  "ajv": "^8.18.0",
111
118
  "eslint": "^10.2.0",
112
119
  "eslint-plugin-react-hooks": "^7.0.1",
113
120
  "eslint-plugin-react-refresh": "^0.5.2",
114
121
  "globals": "^17.5.0",
122
+ "jsdom": "^29.1.1",
115
123
  "postcss": "^8.5.10",
116
124
  "react": "^19.2.5",
117
125
  "react-dom": "^19.2.5",
118
- "storybook": "^10.3.5",
126
+ "shadcn": "^4.2.0",
127
+ "storybook": "^10.5.5",
128
+ "tailwindcss": "^4.2.2",
129
+ "tw-animate-css": "^1.4.0",
119
130
  "typescript": "~6.0.2",
120
131
  "typescript-eslint": "^8.58.2",
121
132
  "vite": "^8.0.8",
122
- "vite-plugin-dts": "^4.5.4"
133
+ "vite-plugin-dts": "^4.5.4",
134
+ "vitest": "^4.1.10"
135
+ },
136
+ "peerDependenciesMeta": {
137
+ "tailwindcss": {
138
+ "optional": true
139
+ }
140
+ },
141
+ "license": "UNLICENSED",
142
+ "author": "OpsFuse",
143
+ "description": "OpsFuse design system: React 19 + Tailwind v4 component library with four brand themes.",
144
+ "repository": {
145
+ "type": "git",
146
+ "url": "git+https://code.opsfuse.com/mockinterview/opsfuse-ui.git"
147
+ },
148
+ "engines": {
149
+ "node": "^20.19.0 || >=22.12.0"
123
150
  }
124
151
  }
package/theme.css CHANGED
@@ -190,10 +190,54 @@
190
190
 
191
191
  /* ── Typography ─────────────────────────────────────────── */
192
192
  --font-heading: "Noto Serif", ui-serif, Georgia, serif;
193
- --text-caption: 0.75rem;
193
+
194
+ /* ── Type Scale (product-UI density) ──────────────────────
195
+ Overrides Tailwind's stock web-page scale (16px base) with an
196
+ application scale, calibrated between Stripe's dashboard (14px base)
197
+ and Linear (13px base). Every `text-*` utility shifts down one notch:
198
+ `text-sm` — the size ~90% of our components use — lands on 13px, and
199
+ unclassed text inside `.opsfuse-ui` inherits 14px.
200
+
201
+ xs 11px / 16 micro labels, kbd, table meta
202
+ sm 13px / 18 DEFAULT UI TEXT — buttons, inputs, menus, rows
203
+ base 14px / 20 body copy, card content
204
+ lg 16px / 24 section headings, emphasized body
205
+ xl 18px / 26 panel titles
206
+ 2xl 20px / 28 page titles
207
+ 3xl 24px / 32 view titles
208
+ 4xl+ marketing / empty-state display only */
209
+ --text-xs: 0.6875rem;
210
+ --text-xs--line-height: 1rem;
211
+ --text-sm: 0.8125rem;
212
+ --text-sm--line-height: 1.125rem;
213
+ --text-base: 0.875rem;
214
+ --text-base--line-height: 1.25rem;
215
+ --text-lg: 1rem;
216
+ --text-lg--line-height: 1.5rem;
217
+ --text-xl: 1.125rem;
218
+ --text-xl--line-height: 1.625rem;
219
+ --text-2xl: 1.25rem;
220
+ --text-2xl--line-height: 1.75rem;
221
+ --text-3xl: 1.5rem;
222
+ --text-3xl--line-height: 2rem;
223
+ --text-4xl: 1.875rem;
224
+ --text-4xl--line-height: 2.25rem;
225
+ --text-5xl: 2.25rem;
226
+ --text-5xl--line-height: 2.5rem;
227
+ --text-6xl: 2.75rem;
228
+ --text-6xl--line-height: 1.1;
229
+ --text-7xl: 3.5rem;
230
+ --text-7xl--line-height: 1.05;
231
+ --text-8xl: 4.5rem;
232
+ --text-8xl--line-height: 1;
233
+ --text-9xl: 6rem;
234
+ --text-9xl--line-height: 1;
235
+
236
+ /* Named steps — mirror the h4 / caption rules in index.css */
237
+ --text-caption: 0.6875rem;
194
238
  --text-caption--line-height: 1.5;
195
- --text-h4: 1.1rem;
196
- --text-h4--line-height: 1.4;
239
+ --text-h4: 1rem;
240
+ --text-h4--line-height: 1.45;
197
241
 
198
242
  /* ── Radius scale ───────────────────────────────────────── */
199
243
  --radius-xs: var(--radius-xs);
@@ -1,20 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
- let r = {};
4
- for (var i in e) t(r, i, {
5
- get: e[i],
6
- enumerable: !0
7
- });
8
- return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
- }, c = (e, i, o, s) => {
10
- if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
- get: ((e) => i[e]).bind(null, d),
12
- enumerable: !(s = n(i, d)) || s.enumerable
13
- });
14
- return e;
15
- }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
- value: n,
17
- enumerable: !0
18
- }) : a, n));
19
- //#endregion
20
- export { s as n, l as r, o as t };
@@ -1,16 +0,0 @@
1
- //#region node_modules/clsx/dist/clsx.mjs
2
- function e(t) {
3
- var n, r, i = "";
4
- if (typeof t == "string" || typeof t == "number") i += t;
5
- else if (typeof t == "object") if (Array.isArray(t)) {
6
- var a = t.length;
7
- for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
- } else for (r in t) t[r] && (i && (i += " "), i += r);
9
- return i;
10
- }
11
- function t() {
12
- for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
13
- return i;
14
- }
15
- //#endregion
16
- export { t };