@meddhiaka/glixor 0.0.0-stage → 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 +201 -0
- package/README.md +139 -2
- package/dist-lib/components/Badge/Badge.d.ts +26 -0
- package/dist-lib/components/Badge/index.d.ts +2 -0
- package/dist-lib/components/Button/Button.d.ts +22 -0
- package/dist-lib/components/Button/index.d.ts +2 -0
- package/dist-lib/components/Card/Card.d.ts +45 -0
- package/dist-lib/components/Card/index.d.ts +2 -0
- package/dist-lib/components/CyberFx.d.ts +10 -0
- package/dist-lib/components/Input/Input.d.ts +24 -0
- package/dist-lib/components/Input/index.d.ts +2 -0
- package/dist-lib/components/Modal/Modal.d.ts +20 -0
- package/dist-lib/components/Modal/index.d.ts +2 -0
- package/dist-lib/components/Navbar/Navbar.d.ts +36 -0
- package/dist-lib/components/Navbar/index.d.ts +2 -0
- package/dist-lib/components/Pagination/Pagination.d.ts +33 -0
- package/dist-lib/components/Pagination/index.d.ts +2 -0
- package/dist-lib/components/Progress/Progress.d.ts +21 -0
- package/dist-lib/components/Progress/index.d.ts +2 -0
- package/dist-lib/components/Radio/Radio.d.ts +11 -0
- package/dist-lib/components/Radio/RadioGroup.d.ts +30 -0
- package/dist-lib/components/Radio/context.d.ts +18 -0
- package/dist-lib/components/Radio/index.d.ts +5 -0
- package/dist-lib/components/Sidebar/Sidebar.d.ts +46 -0
- package/dist-lib/components/Sidebar/index.d.ts +2 -0
- package/dist-lib/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist-lib/components/Skeleton/index.d.ts +2 -0
- package/dist-lib/components/Slider/Slider.d.ts +18 -0
- package/dist-lib/components/Slider/index.d.ts +2 -0
- package/dist-lib/components/Spinner.d.ts +4 -0
- package/dist-lib/components/Table/Table.d.ts +43 -0
- package/dist-lib/components/Table/TableCheckbox.d.ts +7 -0
- package/dist-lib/components/Table/index.d.ts +4 -0
- package/dist-lib/components/Tooltip/Tooltip.d.ts +21 -0
- package/dist-lib/components/Tooltip/index.d.ts +2 -0
- package/dist-lib/index.cjs +2 -0
- package/dist-lib/index.cjs.map +1 -0
- package/dist-lib/index.d.ts +18 -0
- package/dist-lib/index.js +1712 -0
- package/dist-lib/index.js.map +1 -0
- package/dist-lib/styles.css +952 -0
- package/package.json +89 -4
- package/tailwind-preset.cjs +66 -0
package/package.json
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meddhiaka/glixor",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "tsc -b && vite build && storybook build -o dist/ui",
|
|
8
|
+
"lint": "oxlint",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"storybook": "storybook dev -p 6006",
|
|
11
|
+
"build-storybook": "storybook build -o dist/ui",
|
|
12
|
+
"build:lib": "vite build -c vite.lib.config.ts && tsc -p tsconfig.lib.json && node scripts/build-css.mjs",
|
|
13
|
+
"prepublishOnly": "npm run lint && npm run build:lib"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@chromatic-com/storybook": "latest",
|
|
17
|
+
"@storybook/addon-a11y": "^10.5.8",
|
|
18
|
+
"@storybook/addon-docs": "^10.5.8",
|
|
19
|
+
"@storybook/addon-mcp": "latest",
|
|
20
|
+
"@storybook/addon-themes": "^10.5.8",
|
|
21
|
+
"@storybook/addon-vitest": "^10.5.8",
|
|
22
|
+
"@storybook/react-vite": "^10.5.8",
|
|
23
|
+
"@types/node": "^24.13.3",
|
|
24
|
+
"@types/react": "^19.2.17",
|
|
25
|
+
"@types/react-dom": "^19.2.3",
|
|
26
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
27
|
+
"@vitest/browser-playwright": "latest",
|
|
28
|
+
"@vitest/coverage-v8": "latest",
|
|
29
|
+
"autoprefixer": "^10.5.4",
|
|
30
|
+
"oxlint": "^1.75.0",
|
|
31
|
+
"playwright": "latest",
|
|
32
|
+
"postcss": "^8.5.26",
|
|
33
|
+
"react": "^19.2.8",
|
|
34
|
+
"react-dom": "^19.2.8",
|
|
35
|
+
"storybook": "^10.5.8",
|
|
36
|
+
"tailwindcss": "^3.4.19",
|
|
37
|
+
"typescript": "~6.0.2",
|
|
38
|
+
"vite": "^8.2.0",
|
|
39
|
+
"vitest": "latest"
|
|
40
|
+
},
|
|
41
|
+
"description": "A neo-brutalist, glitch-driven React component library with a built-in glitch engine, neon tokens and light/dark themes.",
|
|
42
|
+
"license": "Apache-2.0",
|
|
43
|
+
"author": "Dhia Kassab",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/meddhiaka/Glixor.git"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/meddhiaka/Glixor#readme",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/meddhiaka/Glixor/issues"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"react",
|
|
54
|
+
"components",
|
|
55
|
+
"ui",
|
|
56
|
+
"tailwind",
|
|
57
|
+
"storybook",
|
|
58
|
+
"glitch",
|
|
59
|
+
"neo-brutalist",
|
|
60
|
+
"design-system"
|
|
61
|
+
],
|
|
62
|
+
"sideEffects": [
|
|
63
|
+
"**/*.css"
|
|
64
|
+
],
|
|
65
|
+
"main": "./dist-lib/index.cjs",
|
|
66
|
+
"module": "./dist-lib/index.js",
|
|
67
|
+
"types": "./dist-lib/index.d.ts",
|
|
68
|
+
"exports": {
|
|
69
|
+
".": {
|
|
70
|
+
"types": "./dist-lib/index.d.ts",
|
|
71
|
+
"import": "./dist-lib/index.js",
|
|
72
|
+
"require": "./dist-lib/index.cjs"
|
|
73
|
+
},
|
|
74
|
+
"./styles.css": "./dist-lib/styles.css",
|
|
75
|
+
"./tailwind-preset": "./tailwind-preset.cjs",
|
|
76
|
+
"./package.json": "./package.json"
|
|
77
|
+
},
|
|
78
|
+
"files": [
|
|
79
|
+
"dist-lib",
|
|
80
|
+
"tailwind-preset.cjs",
|
|
81
|
+
"README.md",
|
|
82
|
+
"LICENSE"
|
|
83
|
+
],
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"react": "^19.0.0",
|
|
86
|
+
"react-dom": "^19.0.0"
|
|
87
|
+
},
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"access": "public"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glixor Tailwind preset — brand colors, fonts, glow shadows and glitch animations.
|
|
3
|
+
* Add it to your Tailwind config: `presets: [require('@meddhiaka/glixor/tailwind-preset')]`.
|
|
4
|
+
* @type {import('tailwindcss').Config}
|
|
5
|
+
*/
|
|
6
|
+
module.exports = {
|
|
7
|
+
darkMode: 'class',
|
|
8
|
+
theme: {
|
|
9
|
+
extend: {
|
|
10
|
+
fontFamily: {
|
|
11
|
+
mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'monospace'],
|
|
12
|
+
sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'],
|
|
13
|
+
},
|
|
14
|
+
colors: {
|
|
15
|
+
brand: {
|
|
16
|
+
primary: '#00f0ff',
|
|
17
|
+
secondary: '#ff007f',
|
|
18
|
+
alert: '#ff003c',
|
|
19
|
+
warning: '#ffea00',
|
|
20
|
+
success: '#00e676',
|
|
21
|
+
dark: '#0a0b10',
|
|
22
|
+
darkSurface: '#12141e',
|
|
23
|
+
darkSurfaceSub: '#1a1d2d',
|
|
24
|
+
darkSurfaceTert: '#22273b',
|
|
25
|
+
darkInput: '#12141e',
|
|
26
|
+
light: '#ffffff',
|
|
27
|
+
lightSurface: '#ffffff',
|
|
28
|
+
lightSurfaceSub: '#f4f6fb',
|
|
29
|
+
lightSurfaceTert: '#e9edf5',
|
|
30
|
+
lightInput: '#ffffff',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
boxShadow: {
|
|
34
|
+
'glow-primary': '0 0 15px theme(colors.brand.primary / 0.4)',
|
|
35
|
+
'glow-secondary': '0 0 15px theme(colors.brand.secondary / 0.4)',
|
|
36
|
+
'glow-alert': '0 0 20px theme(colors.brand.alert / 0.3)',
|
|
37
|
+
'card-lift': '0 8px 30px rgb(0 0 0 / 0.06)',
|
|
38
|
+
},
|
|
39
|
+
animation: {
|
|
40
|
+
'glitch-jitter': 'glitchJitter 0.25s infinite linear',
|
|
41
|
+
'glitch-stretch': 'glitchStretch 2s infinite ease-in-out alternate',
|
|
42
|
+
scanline: 'scanline 2s linear infinite',
|
|
43
|
+
'screen-tear': 'screenTear 0.3s infinite linear',
|
|
44
|
+
'slice-cyan': 'sliceCyan 0.35s infinite linear alternate-reverse',
|
|
45
|
+
'slice-magenta': 'sliceMagenta 0.35s infinite linear alternate-reverse',
|
|
46
|
+
'modal-enter': 'modalGlitchIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards',
|
|
47
|
+
'radio-in': 'radioGlitchIn 0.4s steps(8, end) 1',
|
|
48
|
+
'radio-out': 'radioGlitchOut 0.3s steps(6, end) 1 forwards',
|
|
49
|
+
'radio-slice-cyan': 'radioSlice 0.4s linear 1 forwards',
|
|
50
|
+
'radio-slice-magenta': 'radioSliceAlt 0.4s linear 1 forwards',
|
|
51
|
+
'tooltip-frame': 'tooltipFrameGlitch 0.3s steps(6, end) 1',
|
|
52
|
+
'tooltip-text': 'tooltipText 0.18s ease-out 1',
|
|
53
|
+
'progress-sweep': 'progressSweep 1.4s steps(14) infinite',
|
|
54
|
+
'progress-indeterminate': 'progressIndeterminate 1.4s steps(14) infinite',
|
|
55
|
+
'progress-indeterminate-slow': 'progressIndeterminate 1.8s linear infinite',
|
|
56
|
+
'progress-done': 'tooltipFrameGlitch 0.4s steps(6, end) 1',
|
|
57
|
+
'sidebar-in': 'sidebarGlitchIn 0.45s steps(9, end) both',
|
|
58
|
+
'sidebar-out': 'sidebarGlitchOut 0.28s steps(6, end) forwards',
|
|
59
|
+
'sidebar-item': 'sidebarItemIn 0.3s steps(5, end) both',
|
|
60
|
+
'navbar-in': 'navbarGlitchIn 0.5s steps(10, end) backwards',
|
|
61
|
+
'navbar-panel': 'navbarPanelIn 0.35s steps(7, end) backwards',
|
|
62
|
+
'backdrop-enter': 'backdropFlicker 0.4s ease-out forwards',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|