@yusr_systems/ui 2.0.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.
- package/README.md +73 -0
- package/dist/index.d.ts +1 -0
- package/dist/yusr-ui.js +30447 -0
- package/dist/yusr-ui.umd.cjs +74 -0
- package/package.json +50 -0
- package/src/styles/theme.css +136 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yusr_systems/ui",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"private": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./dist/yusr-ui.umd.cjs",
|
|
11
|
+
"module": "./dist/yusr-ui.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/yusr-ui.js",
|
|
17
|
+
"require": "./dist/yusr-ui.umd.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./theme.css": "./src/styles/theme.css"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"src/styles/theme.css"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "tsc --noEmit && vite build",
|
|
28
|
+
"lint": "eslint .",
|
|
29
|
+
"preview": "vite preview"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^19.0.0",
|
|
33
|
+
"react-dom": "^19.0.0",
|
|
34
|
+
"tailwindcss": "^3.0.0 || ^4.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^24.12.0",
|
|
38
|
+
"@types/react": "^19.2.14",
|
|
39
|
+
"@types/react-dom": "^19.2.3",
|
|
40
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
41
|
+
"react": "^19.2.4",
|
|
42
|
+
"react-dom": "^19.2.4",
|
|
43
|
+
"typescript": "~5.9.3",
|
|
44
|
+
"vite": "^8.0.0",
|
|
45
|
+
"vite-plugin-dts": "^4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@reduxjs/toolkit": "^2.11.2"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
4
|
+
@import "@fontsource/ibm-plex-sans-arabic/100.css";
|
|
5
|
+
@import "@fontsource/ibm-plex-sans-arabic/400.css";
|
|
6
|
+
@import "@fontsource/ibm-plex-sans-arabic/700.css";
|
|
7
|
+
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--font-sans: "IBM Plex Sans Arabic", sans-serif;
|
|
12
|
+
--background: oklch(1 0 0);
|
|
13
|
+
--foreground: oklch(0.145 0 0);
|
|
14
|
+
--card: oklch(1 0 0);
|
|
15
|
+
--card-foreground: oklch(0.145 0 0);
|
|
16
|
+
--popover: oklch(1 0 0);
|
|
17
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
18
|
+
--primary: oklch(0.205 0 0);
|
|
19
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
20
|
+
--secondary: oklch(0.97 0 0);
|
|
21
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
22
|
+
--muted: oklch(0.97 0 0);
|
|
23
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
24
|
+
--accent: oklch(0.97 0 0);
|
|
25
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
26
|
+
--destructive: oklch(0.58 0.22 27);
|
|
27
|
+
--border: oklch(0.922 0 0);
|
|
28
|
+
--input: oklch(0.922 0 0);
|
|
29
|
+
--ring: oklch(0.708 0 0);
|
|
30
|
+
--chart-1: oklch(0.809 0.105 251.813);
|
|
31
|
+
--chart-2: oklch(0.623 0.214 259.815);
|
|
32
|
+
--chart-3: oklch(0.546 0.245 262.881);
|
|
33
|
+
--chart-4: oklch(0.488 0.243 264.376);
|
|
34
|
+
--chart-5: oklch(0.424 0.199 265.638);
|
|
35
|
+
--radius: 0.625rem;
|
|
36
|
+
--sidebar: oklch(0.985 0 0);
|
|
37
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
38
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
39
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
40
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
41
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
42
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
43
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dark {
|
|
47
|
+
--background: oklch(0.145 0 0);
|
|
48
|
+
--foreground: oklch(0.985 0 0);
|
|
49
|
+
--card: oklch(0.205 0 0);
|
|
50
|
+
--card-foreground: oklch(0.985 0 0);
|
|
51
|
+
--popover: oklch(0.205 0 0);
|
|
52
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
53
|
+
--primary: oklch(0.87 0.00 0);
|
|
54
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
55
|
+
--secondary: oklch(0.269 0 0);
|
|
56
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
57
|
+
--muted: oklch(0.269 0 0);
|
|
58
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
59
|
+
--accent: oklch(0.371 0 0);
|
|
60
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
61
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
62
|
+
--border: oklch(1 0 0 / 10%);
|
|
63
|
+
--input: oklch(1 0 0 / 15%);
|
|
64
|
+
--ring: oklch(0.556 0 0);
|
|
65
|
+
--chart-1: oklch(0.809 0.105 251.813);
|
|
66
|
+
--chart-2: oklch(0.623 0.214 259.815);
|
|
67
|
+
--chart-3: oklch(0.546 0.245 262.881);
|
|
68
|
+
--chart-4: oklch(0.488 0.243 264.376);
|
|
69
|
+
--chart-5: oklch(0.424 0.199 265.638);
|
|
70
|
+
--sidebar: oklch(0.205 0 0);
|
|
71
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
72
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
73
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
74
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
75
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
76
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
77
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@theme inline {
|
|
81
|
+
--font-sans: "IBM Plex Sans Arabic", sans-serif;
|
|
82
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
83
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
84
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
85
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
86
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
87
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
88
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
89
|
+
--color-sidebar: var(--sidebar);
|
|
90
|
+
--color-chart-5: var(--chart-5);
|
|
91
|
+
--color-chart-4: var(--chart-4);
|
|
92
|
+
--color-chart-3: var(--chart-3);
|
|
93
|
+
--color-chart-2: var(--chart-2);
|
|
94
|
+
--color-chart-1: var(--chart-1);
|
|
95
|
+
--color-ring: var(--ring);
|
|
96
|
+
--color-input: var(--input);
|
|
97
|
+
--color-border: var(--border);
|
|
98
|
+
--color-destructive: var(--destructive);
|
|
99
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
100
|
+
--color-accent: var(--accent);
|
|
101
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
102
|
+
--color-muted: var(--muted);
|
|
103
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
104
|
+
--color-secondary: var(--secondary);
|
|
105
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
106
|
+
--color-primary: var(--primary);
|
|
107
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
108
|
+
--color-popover: var(--popover);
|
|
109
|
+
--color-card-foreground: var(--card-foreground);
|
|
110
|
+
--color-card: var(--card);
|
|
111
|
+
--color-foreground: var(--foreground);
|
|
112
|
+
--color-background: var(--background);
|
|
113
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
114
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
115
|
+
--radius-lg: var(--radius);
|
|
116
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
117
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
118
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
119
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@layer base {
|
|
123
|
+
* {
|
|
124
|
+
@apply border-border outline-ring/50;
|
|
125
|
+
}
|
|
126
|
+
body {
|
|
127
|
+
@apply font-sans bg-background text-foreground;
|
|
128
|
+
}
|
|
129
|
+
html {
|
|
130
|
+
@apply font-sans;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
h1 {
|
|
135
|
+
@apply text-2xl font-bold;
|
|
136
|
+
}
|