@houssemdi2000/design-system 1.3.8 → 1.4.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/dist/components/index.d.ts +1 -0
- package/dist/index.esm.js +127 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +128 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -253,8 +253,133 @@ const Tag = ({ label, variant = "filled", color = "#fff", background = "#007bff"
|
|
|
253
253
|
}, children: "\u00D7" }))] })) }));
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
const Colors = {
|
|
257
|
+
// Brand (Primary palette)
|
|
258
|
+
primary: {
|
|
259
|
+
50: "#fff6eb",
|
|
260
|
+
100: "#ffe8cc",
|
|
261
|
+
200: "#ffd3a3",
|
|
262
|
+
300: "#ffb86b",
|
|
263
|
+
400: "#ff9833",
|
|
264
|
+
500: "#ff7f00",
|
|
265
|
+
600: "#e36f00",
|
|
266
|
+
700: "#b85a00",
|
|
267
|
+
800: "#8c4500",
|
|
268
|
+
900: "#5c2d00",
|
|
269
|
+
},
|
|
270
|
+
// Secondary palette
|
|
271
|
+
secondary: {
|
|
272
|
+
50: "#ebf8ff",
|
|
273
|
+
100: "#d0efff",
|
|
274
|
+
200: "#a9e2ff",
|
|
275
|
+
300: "#75d3ff",
|
|
276
|
+
400: "#33bdff",
|
|
277
|
+
500: "#009cff",
|
|
278
|
+
600: "#007dd6",
|
|
279
|
+
700: "#005fa6",
|
|
280
|
+
800: "#004676",
|
|
281
|
+
900: "#002c47",
|
|
282
|
+
},
|
|
283
|
+
// Neutral / Grayscale
|
|
284
|
+
neutral: {
|
|
285
|
+
0: "#ffffff",
|
|
286
|
+
50: "#fafafa",
|
|
287
|
+
100: "#f5f5f5",
|
|
288
|
+
200: "#e5e5e5",
|
|
289
|
+
300: "#d4d4d4",
|
|
290
|
+
400: "#a3a3a3",
|
|
291
|
+
500: "#737373",
|
|
292
|
+
600: "#525252",
|
|
293
|
+
700: "#404040",
|
|
294
|
+
800: "#262626",
|
|
295
|
+
900: "#171717",
|
|
296
|
+
950: "#0a0a0a",
|
|
297
|
+
},
|
|
298
|
+
// RAINBOW — full extended palette like Tailwind
|
|
299
|
+
red: {
|
|
300
|
+
50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5",
|
|
301
|
+
400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c",
|
|
302
|
+
800: "#991b1b", 900: "#7f1d1d",
|
|
303
|
+
},
|
|
304
|
+
green: {
|
|
305
|
+
50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac",
|
|
306
|
+
400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d",
|
|
307
|
+
800: "#166534", 900: "#14532d",
|
|
308
|
+
},
|
|
309
|
+
blue: {
|
|
310
|
+
50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd",
|
|
311
|
+
400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8",
|
|
312
|
+
800: "#1e40af", 900: "#1e3a8a",
|
|
313
|
+
},
|
|
314
|
+
yellow: {
|
|
315
|
+
50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047",
|
|
316
|
+
400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207",
|
|
317
|
+
800: "#854d0e", 900: "#713f12",
|
|
318
|
+
},
|
|
319
|
+
orange: {
|
|
320
|
+
50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74",
|
|
321
|
+
400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c",
|
|
322
|
+
800: "#9a3412", 900: "#7c2d12",
|
|
323
|
+
},
|
|
324
|
+
violet: {
|
|
325
|
+
50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd",
|
|
326
|
+
400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9",
|
|
327
|
+
800: "#5b21b6", 900: "#4c1d95",
|
|
328
|
+
},
|
|
329
|
+
pink: {
|
|
330
|
+
50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4",
|
|
331
|
+
400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d",
|
|
332
|
+
800: "#9d174d", 900: "#831843",
|
|
333
|
+
},
|
|
334
|
+
teal: {
|
|
335
|
+
50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4",
|
|
336
|
+
400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e",
|
|
337
|
+
800: "#115e59", 900: "#134e4a",
|
|
338
|
+
},
|
|
339
|
+
// Semantic (status)
|
|
340
|
+
success: "#16a34a",
|
|
341
|
+
warning: "#facc15",
|
|
342
|
+
error: "#dc2626",
|
|
343
|
+
info: "#2563eb",
|
|
344
|
+
// Social colors
|
|
345
|
+
facebook: "#1877f2",
|
|
346
|
+
twitter: "#1da1f2",
|
|
347
|
+
instagram: "#e1306c",
|
|
348
|
+
linkedin: "#0a66c2",
|
|
349
|
+
youtube: "#ff0000",
|
|
350
|
+
github: "#333333",
|
|
351
|
+
// Glass / Frosted UI
|
|
352
|
+
glass: {
|
|
353
|
+
light: "rgba(255, 255, 255, 0.4)",
|
|
354
|
+
medium: "rgba(255, 255, 255, 0.25)",
|
|
355
|
+
dark: "rgba(0, 0, 0, 0.4)",
|
|
356
|
+
},
|
|
357
|
+
// Overlay (modals, dialogs)
|
|
358
|
+
overlay: {
|
|
359
|
+
light: "rgba(0, 0, 0, 0.3)",
|
|
360
|
+
medium: "rgba(0, 0, 0, 0.5)",
|
|
361
|
+
heavy: "rgba(0, 0, 0, 0.7)",
|
|
362
|
+
},
|
|
363
|
+
// Gradients
|
|
364
|
+
gradients: {
|
|
365
|
+
fire: "linear-gradient(90deg, #f97316, #ef4444)",
|
|
366
|
+
ocean: "linear-gradient(90deg, #0ea5e9, #6366f1)",
|
|
367
|
+
sunset: "linear-gradient(90deg, #f43f5e, #fb923c)",
|
|
368
|
+
forest: "linear-gradient(90deg, #22c55e, #0d9488)",
|
|
369
|
+
rainbow: "linear-gradient(90deg, #ef4444, #f97316, #facc15, #22c55e, #3b82f6, #8b5cf6)",
|
|
370
|
+
},
|
|
371
|
+
// Transparency presets
|
|
372
|
+
transparent: "transparent",
|
|
373
|
+
white: "#ffffff",
|
|
374
|
+
black: "#000000",
|
|
375
|
+
};
|
|
256
376
|
const tco = {
|
|
257
377
|
primary: "#007bff",
|
|
378
|
+
primaryDark: "#0056b3",
|
|
379
|
+
success: "#2ecc71",
|
|
380
|
+
error: "#e74c3c",
|
|
381
|
+
warning: "#f39c12",
|
|
382
|
+
info: "#3498db",
|
|
258
383
|
text: "#222",
|
|
259
384
|
textDark: "#fff",
|
|
260
385
|
borderDark: "#ddd",
|
|
@@ -281,8 +406,8 @@ const ThemeProvider = ({ children, }) => {
|
|
|
281
406
|
mode: localStorage.getItem("mode") || "light",
|
|
282
407
|
});
|
|
283
408
|
const toggleDarkMode = () => {
|
|
409
|
+
localStorage.setItem("mode", localStorage.getItem("mode") === "light" ? "dark" : "light");
|
|
284
410
|
setTheme((prev) => (Object.assign(Object.assign({}, prev), { mode: prev.mode === "light" ? "dark" : "light", background: prev.mode === "light" ? tco.backgroundDark : tco.background, text: prev.mode === "light" ? tco.textDark : tco.text })));
|
|
285
|
-
localStorage.setItem("mode", theme.mode);
|
|
286
411
|
};
|
|
287
412
|
const setCustomTheme = (t) => {
|
|
288
413
|
setTheme((prev) => (Object.assign(Object.assign({}, prev), t)));
|
|
@@ -664,5 +789,5 @@ const ProfileMenu = ({ user, actions, isDarkMode = false, }) => {
|
|
|
664
789
|
}, children: [action.icon && jsx("span", { className: "icon", children: action.icon }), action.label] }, i))) })] }))] }));
|
|
665
790
|
};
|
|
666
791
|
|
|
667
|
-
export { Avatar, Bloc, Button, Card, Center, Checkbox, Column, Container, Divider, DragDrop, Footer, Grid, Layout, Loading, Modal, Navbar, Pagination, ProfileMenu, Radio, Row, SecureText, Select, Sidebar, SmartCarousel, SmartTable, SmartTimeline, Spacer, TableFilterBar, Tag, Text, TextField, ThemeProvider, ToastProvider, useTheme, useToast };
|
|
792
|
+
export { Avatar, Bloc, Button, Card, Center, Checkbox, Colors, Column, Container, Divider, DragDrop, Footer, Grid, Layout, Loading, Modal, Navbar, Pagination, ProfileMenu, Radio, Row, SecureText, Select, Sidebar, SmartCarousel, SmartTable, SmartTimeline, Spacer, TableFilterBar, Tag, Text, TextField, ThemeProvider, ToastProvider, tco, useTheme, useToast };
|
|
668
793
|
//# sourceMappingURL=index.esm.js.map
|