opsfuse-ui 0.1.20 → 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.
- package/LICENSE +17 -0
- package/README.md +76 -12
- package/dist/components/logo/LogoMaker.d.ts.map +1 -1
- package/dist/components/opsfuse-root.d.ts +2 -5
- package/dist/components/opsfuse-root.d.ts.map +1 -1
- package/dist/components/opsfuse-theme-provider.d.ts +8 -1
- package/dist/components/opsfuse-theme-provider.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +1 -1
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/shadcn/shadcn-pagination.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/core.js +4 -3
- package/dist/date-fns-locale.js +1 -39647
- package/dist/date-fns.js +1 -3
- package/dist/extended.js +3 -2
- package/dist/hooks/use-mobile.d.ts +14 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/icons.js +1 -2
- package/dist/index.js +61 -2829
- package/dist/input-group-COKxQf1K.js +560 -0
- package/dist/input-otp-Cbt2uaq7.js +1181 -0
- package/dist/lib/document-dark-mode.d.ts.map +1 -1
- package/dist/lib/link.d.ts +13 -0
- package/dist/lib/link.d.ts.map +1 -0
- package/dist/lib/portaled-layer.d.ts.map +1 -1
- package/dist/public-api-core.d.ts +1 -0
- package/dist/public-api-core.d.ts.map +1 -1
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/recharts.js +1 -2
- package/dist/style.css +50 -6
- package/dist/toggle-group-Cwi9rLMs.js +3174 -0
- package/package.json +41 -14
- package/theme.css +47 -3
- package/dist/chunk-Dqa2HsxW.js +0 -20
- package/dist/clsx-BWCAbrjV.js +0 -16
- package/dist/date-fns-DTKqTajJ.js +0 -3871
- package/dist/es6-CLjPx7Zx.js +0 -23996
- package/dist/input-group-BAkukY-L.js +0 -5463
- package/dist/input-otp-DyyXKjPp.js +0 -10792
- package/dist/isSameWeek-B6PEe-M_.js +0 -537
- package/dist/lucide-react-Dil0H3iN.js +0 -38770
- package/dist/toggle-group-BWtFIW07.js +0 -11063
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opsfuse-ui",
|
|
3
|
-
"version": "0.1.
|
|
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-
|
|
103
|
-
"@storybook/addon-
|
|
104
|
-
"@storybook/
|
|
105
|
-
"@storybook/react
|
|
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
|
-
"
|
|
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
|
-
|
|
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:
|
|
196
|
-
--text-h4--line-height: 1.
|
|
239
|
+
--text-h4: 1rem;
|
|
240
|
+
--text-h4--line-height: 1.45;
|
|
197
241
|
|
|
198
242
|
/* ── Radius scale ───────────────────────────────────────── */
|
|
199
243
|
--radius-xs: var(--radius-xs);
|
package/dist/chunk-Dqa2HsxW.js
DELETED
|
@@ -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 };
|
package/dist/clsx-BWCAbrjV.js
DELETED
|
@@ -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 };
|