@adminkit/core 3.5.0 → 4.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.
Files changed (90) hide show
  1. package/README.md +108 -148
  2. package/dist/charts-chartjs.html +666 -0
  3. package/dist/css/app.css +6 -6
  4. package/dist/css/app.d.css.ts +3 -0
  5. package/dist/fonts/inter-cyrillic-300-normal-BnqRxXuy.woff2 +0 -0
  6. package/dist/fonts/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  7. package/dist/fonts/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
  8. package/dist/fonts/inter-cyrillic-ext-300-normal-CgCALhwJ.woff2 +0 -0
  9. package/dist/fonts/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  10. package/dist/fonts/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
  11. package/dist/fonts/inter-greek-300-normal-DmGD3g_f.woff2 +0 -0
  12. package/dist/fonts/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  13. package/dist/fonts/inter-greek-600-normal-plRanbMR.woff2 +0 -0
  14. package/dist/fonts/inter-greek-ext-300-normal-l2DDyC6M.woff2 +0 -0
  15. package/dist/fonts/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  16. package/dist/fonts/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
  17. package/dist/fonts/inter-latin-300-normal-BVlfKGgI.woff2 +0 -0
  18. package/dist/fonts/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  19. package/dist/fonts/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  20. package/dist/fonts/inter-latin-ext-300-normal-CPgO9Ksf.woff2 +0 -0
  21. package/dist/fonts/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  22. package/dist/fonts/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
  23. package/dist/fonts/inter-vietnamese-300-normal-Bdr24Bqb.woff2 +0 -0
  24. package/dist/fonts/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  25. package/dist/fonts/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
  26. package/dist/icons-lucide.html +8091 -0
  27. package/dist/img/screenshots/pro/ai-chat-dark-800.webp +0 -0
  28. package/dist/img/screenshots/pro/ai-chat-dark.webp +0 -0
  29. package/dist/img/screenshots/pro/ai-chat-light-800.webp +0 -0
  30. package/dist/img/screenshots/pro/ai-chat-light.webp +0 -0
  31. package/dist/img/screenshots/pro/ai-usage-dark-800.webp +0 -0
  32. package/dist/img/screenshots/pro/ai-usage-dark.webp +0 -0
  33. package/dist/img/screenshots/pro/ai-usage-light-800.webp +0 -0
  34. package/dist/img/screenshots/pro/ai-usage-light.webp +0 -0
  35. package/dist/img/screenshots/pro/analytics-dark-800.webp +0 -0
  36. package/dist/img/screenshots/pro/analytics-dark.webp +0 -0
  37. package/dist/img/screenshots/pro/analytics-light-800.webp +0 -0
  38. package/dist/img/screenshots/pro/analytics-light.webp +0 -0
  39. package/dist/img/screenshots/pro/calendar-dark-800.webp +0 -0
  40. package/dist/img/screenshots/pro/calendar-dark.webp +0 -0
  41. package/dist/img/screenshots/pro/calendar-light-800.webp +0 -0
  42. package/dist/img/screenshots/pro/calendar-light.webp +0 -0
  43. package/dist/img/screenshots/pro/crm-dark-800.webp +0 -0
  44. package/dist/img/screenshots/pro/crm-dark.webp +0 -0
  45. package/dist/img/screenshots/pro/crm-light-800.webp +0 -0
  46. package/dist/img/screenshots/pro/crm-light.webp +0 -0
  47. package/dist/img/screenshots/pro/crypto-dark-800.webp +0 -0
  48. package/dist/img/screenshots/pro/crypto-dark.webp +0 -0
  49. package/dist/img/screenshots/pro/crypto-light-800.webp +0 -0
  50. package/dist/img/screenshots/pro/crypto-light.webp +0 -0
  51. package/dist/img/screenshots/pro/datatables-dark-800.webp +0 -0
  52. package/dist/img/screenshots/pro/datatables-dark.webp +0 -0
  53. package/dist/img/screenshots/pro/datatables-light-800.webp +0 -0
  54. package/dist/img/screenshots/pro/datatables-light.webp +0 -0
  55. package/dist/img/screenshots/pro/ecommerce-dark-800.webp +0 -0
  56. package/dist/img/screenshots/pro/ecommerce-dark.webp +0 -0
  57. package/dist/img/screenshots/pro/ecommerce-light-800.webp +0 -0
  58. package/dist/img/screenshots/pro/ecommerce-light.webp +0 -0
  59. package/dist/img/screenshots/pro/settings-dark-800.webp +0 -0
  60. package/dist/img/screenshots/pro/settings-dark.webp +0 -0
  61. package/dist/img/screenshots/pro/settings-light-800.webp +0 -0
  62. package/dist/img/screenshots/pro/settings-light.webp +0 -0
  63. package/dist/index.html +918 -0
  64. package/dist/js/app.d.ts +78 -0
  65. package/dist/js/app.js +4 -3
  66. package/dist/js/head.js +1 -0
  67. package/dist/js/icons-all.js +1 -0
  68. package/dist/maps-google.html +469 -0
  69. package/dist/pages-404.html +46 -0
  70. package/dist/pages-500.html +46 -0
  71. package/dist/pages-blank.html +423 -0
  72. package/dist/pages-invoice.html +715 -0
  73. package/dist/pages-pricing.html +730 -0
  74. package/dist/pages-profile.html +787 -0
  75. package/dist/pages-sign-in.html +76 -0
  76. package/dist/pages-sign-up.html +73 -0
  77. package/dist/tables-bootstrap.html +856 -0
  78. package/dist/ui-alerts.html +745 -0
  79. package/dist/ui-buttons.html +529 -0
  80. package/dist/ui-cards.html +469 -0
  81. package/dist/ui-forms.html +584 -0
  82. package/dist/ui-modals.html +800 -0
  83. package/dist/ui-typography.html +560 -0
  84. package/dist/upgrade-to-pro.html +788 -0
  85. package/package.json +118 -88
  86. package/dist/css/app.css.map +0 -1
  87. package/dist/fonts/.gitkeep +0 -0
  88. package/dist/img/photos/unsplash-3.jpg +0 -0
  89. package/dist/js/app.js.LICENSE.txt +0 -514
  90. package/dist/js/app.js.map +0 -1
@@ -0,0 +1,78 @@
1
+ // Types for js/app.js (`import "@adminkit/core"`). The import has no exports: it sets up
2
+ // the page and adds the globals below. Copied to dist/js/app.d.ts by the build.
3
+ import type { Chart, ChartConfiguration } from "chart.js";
4
+ import type { IconNode } from "lucide";
5
+ import type { Calendar } from "vanilla-calendar-pro";
6
+
7
+ /** The colors of the current color mode (window.theme), read from the CSS custom properties. */
8
+ export interface AdminKitTheme {
9
+ id: "light" | "dark";
10
+ name: "Light" | "Dark";
11
+ primary: string;
12
+ secondary: string;
13
+ success: string;
14
+ info: string;
15
+ warning: string;
16
+ danger: string;
17
+ /** The surface color: white in light mode */
18
+ white: string;
19
+ /** The strongest text color: black in light mode */
20
+ black: string;
21
+ "body-bg": string;
22
+ "body-color": string;
23
+ "border-color": string;
24
+ "gray-100": string;
25
+ "gray-200": string;
26
+ "gray-300": string;
27
+ "gray-400": string;
28
+ "gray-500": string;
29
+ "gray-600": string;
30
+ "gray-700": string;
31
+ "gray-800": string;
32
+ "gray-900": string;
33
+ }
34
+
35
+ export interface AdminKit {
36
+ /** Creates a Chart.js chart and calls config again with the new colors when the color mode changes. */
37
+ chartjs(
38
+ element: string | HTMLCanvasElement,
39
+ config: (theme: AdminKitTheme) => ChartConfiguration
40
+ ): Chart;
41
+ /** Creates a jsVectorMap map (options.selector names the element) that recolors with the color mode. */
42
+ vectorMap(
43
+ config: (theme: AdminKitTheme) => {
44
+ selector: string | HTMLElement;
45
+ [option: string]: unknown;
46
+ }
47
+ ): unknown;
48
+ /** Removes the loading placeholders around element and fires adminkit:ready on it. */
49
+ ready(element: Element): void;
50
+ }
51
+
52
+ declare global {
53
+ interface Window {
54
+ adminkit: AdminKit;
55
+ theme: AdminKitTheme;
56
+ lucide: {
57
+ /** Renders the icons in root; icons added to the page later render by themselves. */
58
+ createIcons(options?: {
59
+ icons?: Record<string, IconNode>;
60
+ attrs?: Record<string, string>;
61
+ root?: ParentNode;
62
+ }): void;
63
+ icons: Record<string, IconNode>;
64
+ };
65
+ /** The bootstrap module (Bootstrap 5.3), which ships no types of its own. */
66
+ bootstrap: any;
67
+ Chart: typeof Chart;
68
+ VanillaCalendar: { Calendar: typeof Calendar };
69
+ }
70
+
71
+ interface DocumentEventMap {
72
+ "adminkit:themechange": CustomEvent<AdminKitTheme>;
73
+ "adminkit:colormodechange": CustomEvent<{
74
+ colorMode: "light" | "dark" | "auto";
75
+ }>;
76
+ "adminkit:ready": CustomEvent<null>;
77
+ }
78
+ }