@anuj20/void-ui 0.1.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 +34 -0
- package/dist/assets/stylex.css +145 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +7 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +18 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/index.d.ts +3 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +7 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Option/Option.d.ts +37 -0
- package/dist/components/Option/Option.d.ts.map +1 -0
- package/dist/components/Option/index.d.ts +3 -0
- package/dist/components/Option/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +15 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +7 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts +7 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle/index.d.ts +3 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/index.css +146 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +2610 -0
- package/dist/style.css +1 -0
- package/dist/styles/tokens.stylex.d.ts +34 -0
- package/dist/styles/tokens.stylex.d.ts.map +1 -0
- package/package.json +82 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&display=swap";:root{--void-bg-base: #0a0a0a;--void-bg-elevated: #111111;--void-bg-overlay: #1a1a1a;--void-border: #2a2a2a;--void-border-strong: #3a3a3a;--void-text-primary: #f0f0f0;--void-text-muted: #888888;--void-text-disabled: #444444;--void-accent: #c160ef;--void-accent-hover: #d175ff;--void-accent-glow: rgba(193, 96, 239, .2);--void-destructive: #ef4444;--void-shadow: #3a3a3a;--void-radius: 0px;--void-font-mono: "Kode Mono", monospace;--void-font-size-display: 48px;--void-font-size-hl: 32px;--void-font-size-hm: 24px;--void-font-size-body-lg: 18px;--void-font-size-body: 16px;--void-font-size-label: 14px;--void-font-size-label-sm: 12px;--void-space-xs: 4px;--void-space-sm: 8px;--void-space-md: 16px;--void-space-lg: 24px;--void-space-xl: 48px;--void-duration-fast: .1s;--void-duration-base: .2s;--void-duration-slow: .35s;--void-ease-out: cubic-bezier(.16, 1, .3, 1);--void-ease-in-out: cubic-bezier(.4, 0, .2, 1)}@media (prefers-reduced-motion: reduce){:root{--void-duration-fast: 0ms;--void-duration-base: 0ms;--void-duration-slow: 0ms}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time-checked accessors for the CSS custom properties defined in
|
|
3
|
+
* tokens.css. defineConsts inlines these values as-is at compile time, so
|
|
4
|
+
* the generated CSS is identical to writing 'var(--void-*)' directly —
|
|
5
|
+
* tokens.css remains the single source of truth for actual values and the
|
|
6
|
+
* public theming contract (consumers overriding --void-* stays unaffected).
|
|
7
|
+
* This only buys typo-safety in component code.
|
|
8
|
+
*/
|
|
9
|
+
export declare const tokens: {
|
|
10
|
+
bgBase: string;
|
|
11
|
+
bgElevated: string;
|
|
12
|
+
bgOverlay: string;
|
|
13
|
+
border: string;
|
|
14
|
+
borderStrong: string;
|
|
15
|
+
textPrimary: string;
|
|
16
|
+
textMuted: string;
|
|
17
|
+
accent: string;
|
|
18
|
+
accentHover: string;
|
|
19
|
+
accentGlow: string;
|
|
20
|
+
destructive: string;
|
|
21
|
+
shadow: string;
|
|
22
|
+
radius: string;
|
|
23
|
+
fontMono: string;
|
|
24
|
+
fontSizeBody: string;
|
|
25
|
+
fontSizeLabel: string;
|
|
26
|
+
fontSizeLabelSm: string;
|
|
27
|
+
spaceXs: string;
|
|
28
|
+
spaceSm: string;
|
|
29
|
+
spaceMd: string;
|
|
30
|
+
spaceLg: string;
|
|
31
|
+
durationBase: string;
|
|
32
|
+
easeOut: string;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=tokens.stylex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.stylex.d.ts","sourceRoot":"","sources":["../../src/styles/tokens.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAmCjB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@anuj20/void-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Dark-first, minimalist React UI component library",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"ui",
|
|
8
|
+
"component-library",
|
|
9
|
+
"dark-theme",
|
|
10
|
+
"typescript"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Anuj Punekar",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/anujpunekar20/void-ui.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://anujpunekar20.github.io/void-ui/",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/anujpunekar20/void-ui/issues"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.mjs",
|
|
32
|
+
"require": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./styles": "./dist/index.css"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"sideEffects": [
|
|
40
|
+
"**/*.css"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"dev": "storybook dev -p 6006",
|
|
44
|
+
"build": "vite build && node -e \"const fs=require('fs');const t=fs.existsSync('dist/style.css')?fs.readFileSync('dist/style.css','utf8'):'';const s=fs.existsSync('dist/assets/stylex.css')?fs.readFileSync('dist/assets/stylex.css','utf8'):'';fs.writeFileSync('dist/index.css',t+s);\"",
|
|
45
|
+
"build-storybook": "storybook build",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
48
|
+
"test": "vitest",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
50
|
+
"prepare": "git config core.hooksPath .githooks 2>/dev/null || true"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"react": ">=18",
|
|
54
|
+
"react-dom": ">=18"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@floating-ui/react": "^0.26.0",
|
|
58
|
+
"@stylexjs/stylex": "^0.19.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@storybook/addon-essentials": "^8.0.0",
|
|
62
|
+
"@storybook/react": "^8.0.0",
|
|
63
|
+
"@storybook/react-vite": "^8.0.0",
|
|
64
|
+
"@testing-library/react": "^16.0.0",
|
|
65
|
+
"@testing-library/user-event": "^14.0.0",
|
|
66
|
+
"@types/react": "^18.3.0",
|
|
67
|
+
"@types/react-dom": "^18.3.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.63.0",
|
|
70
|
+
"eslint": "^8.57.0",
|
|
71
|
+
"eslint-plugin-react": "^7.34.0",
|
|
72
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
73
|
+
"happy-dom": "^14.0.0",
|
|
74
|
+
"react": "^18.3.0",
|
|
75
|
+
"react-dom": "^18.3.0",
|
|
76
|
+
"storybook": "^8.0.0",
|
|
77
|
+
"typescript": "^5.4.0",
|
|
78
|
+
"unplugin-stylex": "^0.6.3",
|
|
79
|
+
"vite-plugin-dts": "^5.0.3",
|
|
80
|
+
"vitest": "^2.0.0"
|
|
81
|
+
}
|
|
82
|
+
}
|