@ambersecurityinc/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/README.md +1 -0
- package/dist/chunk-2NDCSOJ6.js +2359 -0
- package/dist/chunk-2NDCSOJ6.js.map +1 -0
- package/dist/chunk-ADYBFXWS.mjs +2337 -0
- package/dist/chunk-ADYBFXWS.mjs.map +1 -0
- package/dist/chunk-E4FQ57CA.js +148 -0
- package/dist/chunk-E4FQ57CA.js.map +1 -0
- package/dist/chunk-I5MLI7LI.mjs +139 -0
- package/dist/chunk-I5MLI7LI.mjs.map +1 -0
- package/dist/components.d.mts +354 -0
- package/dist/components.d.ts +354 -0
- package/dist/components.js +92 -0
- package/dist/components.js.map +1 -0
- package/dist/components.mjs +3 -0
- package/dist/components.mjs.map +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +125 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tokens.css +125 -0
- package/dist/tokens.d.mts +116 -0
- package/dist/tokens.d.ts +116 -0
- package/dist/tokens.js +40 -0
- package/dist/tokens.js.map +1 -0
- package/dist/tokens.mjs +3 -0
- package/dist/tokens.mjs.map +1 -0
- package/package.json +59 -0
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* Amber Security Design Tokens */
|
|
2
|
+
/* Single source of truth — never hardcode colors/fonts/spacing */
|
|
3
|
+
|
|
4
|
+
:root,
|
|
5
|
+
[data-theme="light"] {
|
|
6
|
+
/* Background */
|
|
7
|
+
--bg: #F5F3EE;
|
|
8
|
+
--surface: #FFFFFF;
|
|
9
|
+
--surface-alt: #EEEAE4;
|
|
10
|
+
--surface-hover: #E8E4DE;
|
|
11
|
+
|
|
12
|
+
/* Sidebar */
|
|
13
|
+
--sidebar: #0B1120;
|
|
14
|
+
--sidebar-hover: rgba(255, 255, 255, 0.06);
|
|
15
|
+
--sidebar-active: rgba(212, 136, 14, 0.12);
|
|
16
|
+
|
|
17
|
+
/* Text */
|
|
18
|
+
--text: #1A1A1A;
|
|
19
|
+
--text-secondary: #4A4A4A;
|
|
20
|
+
--text-muted: #8A8A8A;
|
|
21
|
+
--text-sidebar: #E0E0E0;
|
|
22
|
+
--text-sidebar-muted: #7A8294;
|
|
23
|
+
|
|
24
|
+
/* Accent */
|
|
25
|
+
--accent: #D4880E;
|
|
26
|
+
--accent-hover: #B8740C;
|
|
27
|
+
--accent-soft: rgba(212, 136, 14, 0.10);
|
|
28
|
+
--accent-text: #FFFFFF;
|
|
29
|
+
|
|
30
|
+
/* Status */
|
|
31
|
+
--success: #2D8A4E;
|
|
32
|
+
--success-soft: rgba(45, 138, 78, 0.10);
|
|
33
|
+
--warning: #C47F17;
|
|
34
|
+
--warning-soft: rgba(196, 127, 23, 0.10);
|
|
35
|
+
--error: #C93B3B;
|
|
36
|
+
--error-soft: rgba(201, 59, 59, 0.10);
|
|
37
|
+
--info: #2B7CB8;
|
|
38
|
+
--info-soft: rgba(43, 124, 184, 0.10);
|
|
39
|
+
|
|
40
|
+
/* Border */
|
|
41
|
+
--border: #DDD9D2;
|
|
42
|
+
--border-sidebar: rgba(255, 255, 255, 0.08);
|
|
43
|
+
|
|
44
|
+
/* Shadow */
|
|
45
|
+
--shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
|
|
46
|
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
47
|
+
--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
|
|
48
|
+
|
|
49
|
+
/* Typography */
|
|
50
|
+
--font-display: 'Outfit', sans-serif;
|
|
51
|
+
--font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
52
|
+
--font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
|
|
53
|
+
|
|
54
|
+
/* Radius */
|
|
55
|
+
--radius-sm: 6px;
|
|
56
|
+
--radius-md: 10px;
|
|
57
|
+
--radius-lg: 14px;
|
|
58
|
+
|
|
59
|
+
/* Spacing (Tailwind 4px base) */
|
|
60
|
+
--space-0: 0px;
|
|
61
|
+
--space-0-5: 2px;
|
|
62
|
+
--space-1: 4px;
|
|
63
|
+
--space-1-5: 6px;
|
|
64
|
+
--space-2: 8px;
|
|
65
|
+
--space-2-5: 10px;
|
|
66
|
+
--space-3: 12px;
|
|
67
|
+
--space-3-5: 14px;
|
|
68
|
+
--space-4: 16px;
|
|
69
|
+
--space-5: 20px;
|
|
70
|
+
--space-6: 24px;
|
|
71
|
+
--space-7: 28px;
|
|
72
|
+
--space-8: 32px;
|
|
73
|
+
--space-9: 36px;
|
|
74
|
+
--space-10: 40px;
|
|
75
|
+
--space-12: 48px;
|
|
76
|
+
--space-14: 56px;
|
|
77
|
+
--space-16: 64px;
|
|
78
|
+
--space-20: 80px;
|
|
79
|
+
--space-24: 96px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-theme="dark"] {
|
|
83
|
+
/* Background */
|
|
84
|
+
--bg: #0A0A0A;
|
|
85
|
+
--surface: #161616;
|
|
86
|
+
--surface-alt: #1C1C1C;
|
|
87
|
+
--surface-hover: #222222;
|
|
88
|
+
|
|
89
|
+
/* Sidebar */
|
|
90
|
+
--sidebar: #070B14;
|
|
91
|
+
--sidebar-hover: rgba(255, 255, 255, 0.06);
|
|
92
|
+
--sidebar-active: rgba(245, 166, 35, 0.12);
|
|
93
|
+
|
|
94
|
+
/* Text */
|
|
95
|
+
--text: #F2F2F2;
|
|
96
|
+
--text-secondary: #B0B0B0;
|
|
97
|
+
--text-muted: #707070;
|
|
98
|
+
--text-sidebar: #D4D4D4;
|
|
99
|
+
--text-sidebar-muted: #6B7280;
|
|
100
|
+
|
|
101
|
+
/* Accent */
|
|
102
|
+
--accent: #F5A623;
|
|
103
|
+
--accent-hover: #E09510;
|
|
104
|
+
--accent-soft: rgba(245, 166, 35, 0.12);
|
|
105
|
+
--accent-text: #0A0A0A;
|
|
106
|
+
|
|
107
|
+
/* Status */
|
|
108
|
+
--success: #3DB868;
|
|
109
|
+
--success-soft: rgba(61, 184, 104, 0.12);
|
|
110
|
+
--warning: #E0A830;
|
|
111
|
+
--warning-soft: rgba(224, 168, 48, 0.12);
|
|
112
|
+
--error: #E85C5C;
|
|
113
|
+
--error-soft: rgba(232, 92, 92, 0.12);
|
|
114
|
+
--info: #4DA3E0;
|
|
115
|
+
--info-soft: rgba(77, 163, 224, 0.12);
|
|
116
|
+
|
|
117
|
+
/* Border */
|
|
118
|
+
--border: #262626;
|
|
119
|
+
--border-sidebar: rgba(255, 255, 255, 0.06);
|
|
120
|
+
|
|
121
|
+
/* Shadow */
|
|
122
|
+
--shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
123
|
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
|
|
124
|
+
--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
|
|
125
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
/** Amber Security Design Tokens — TypeScript constants */
|
|
4
|
+
declare const LIGHT: {
|
|
5
|
+
readonly bg: "#F5F3EE";
|
|
6
|
+
readonly surface: "#FFFFFF";
|
|
7
|
+
readonly surfaceAlt: "#EEEAE4";
|
|
8
|
+
readonly surfaceHover: "#E8E4DE";
|
|
9
|
+
readonly sidebar: "#0B1120";
|
|
10
|
+
readonly sidebarHover: "rgba(255,255,255,0.06)";
|
|
11
|
+
readonly sidebarActive: "rgba(212,136,14,0.12)";
|
|
12
|
+
readonly text: "#1A1A1A";
|
|
13
|
+
readonly textSecondary: "#4A4A4A";
|
|
14
|
+
readonly textMuted: "#8A8A8A";
|
|
15
|
+
readonly textSidebar: "#E0E0E0";
|
|
16
|
+
readonly textSidebarMuted: "#7A8294";
|
|
17
|
+
readonly accent: "#D4880E";
|
|
18
|
+
readonly accentHover: "#B8740C";
|
|
19
|
+
readonly accentSoft: "rgba(212,136,14,0.10)";
|
|
20
|
+
readonly accentText: "#FFFFFF";
|
|
21
|
+
readonly success: "#2D8A4E";
|
|
22
|
+
readonly successSoft: "rgba(45,138,78,0.10)";
|
|
23
|
+
readonly warning: "#C47F17";
|
|
24
|
+
readonly warningSoft: "rgba(196,127,23,0.10)";
|
|
25
|
+
readonly error: "#C93B3B";
|
|
26
|
+
readonly errorSoft: "rgba(201,59,59,0.10)";
|
|
27
|
+
readonly info: "#2B7CB8";
|
|
28
|
+
readonly infoSoft: "rgba(43,124,184,0.10)";
|
|
29
|
+
readonly border: "#DDD9D2";
|
|
30
|
+
readonly borderSidebar: "rgba(255,255,255,0.08)";
|
|
31
|
+
readonly shadow: "0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02)";
|
|
32
|
+
readonly shadowMd: "0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03)";
|
|
33
|
+
readonly shadowLg: "0 8px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03)";
|
|
34
|
+
};
|
|
35
|
+
declare const DARK: {
|
|
36
|
+
readonly bg: "#0A0A0A";
|
|
37
|
+
readonly surface: "#161616";
|
|
38
|
+
readonly surfaceAlt: "#1C1C1C";
|
|
39
|
+
readonly surfaceHover: "#222222";
|
|
40
|
+
readonly sidebar: "#070B14";
|
|
41
|
+
readonly sidebarHover: "rgba(255,255,255,0.06)";
|
|
42
|
+
readonly sidebarActive: "rgba(245,166,35,0.12)";
|
|
43
|
+
readonly text: "#F2F2F2";
|
|
44
|
+
readonly textSecondary: "#B0B0B0";
|
|
45
|
+
readonly textMuted: "#707070";
|
|
46
|
+
readonly textSidebar: "#D4D4D4";
|
|
47
|
+
readonly textSidebarMuted: "#6B7280";
|
|
48
|
+
readonly accent: "#F5A623";
|
|
49
|
+
readonly accentHover: "#E09510";
|
|
50
|
+
readonly accentSoft: "rgba(245,166,35,0.12)";
|
|
51
|
+
readonly accentText: "#0A0A0A";
|
|
52
|
+
readonly success: "#3DB868";
|
|
53
|
+
readonly successSoft: "rgba(61,184,104,0.12)";
|
|
54
|
+
readonly warning: "#E0A830";
|
|
55
|
+
readonly warningSoft: "rgba(224,168,48,0.12)";
|
|
56
|
+
readonly error: "#E85C5C";
|
|
57
|
+
readonly errorSoft: "rgba(232,92,92,0.12)";
|
|
58
|
+
readonly info: "#4DA3E0";
|
|
59
|
+
readonly infoSoft: "rgba(77,163,224,0.12)";
|
|
60
|
+
readonly border: "#262626";
|
|
61
|
+
readonly borderSidebar: "rgba(255,255,255,0.06)";
|
|
62
|
+
readonly shadow: "0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.12)";
|
|
63
|
+
readonly shadowMd: "0 4px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15)";
|
|
64
|
+
readonly shadowLg: "0 8px 30px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.18)";
|
|
65
|
+
};
|
|
66
|
+
declare const FONTS: {
|
|
67
|
+
readonly display: "'Outfit', sans-serif";
|
|
68
|
+
readonly body: "'Manrope', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
69
|
+
readonly mono: "'IBM Plex Mono', 'SF Mono', monospace";
|
|
70
|
+
};
|
|
71
|
+
declare const RADIUS: {
|
|
72
|
+
readonly sm: 6;
|
|
73
|
+
readonly md: 10;
|
|
74
|
+
readonly lg: 14;
|
|
75
|
+
};
|
|
76
|
+
declare const SPACING: {
|
|
77
|
+
readonly 0: 0;
|
|
78
|
+
readonly 0.5: 2;
|
|
79
|
+
readonly 1: 4;
|
|
80
|
+
readonly 1.5: 6;
|
|
81
|
+
readonly 2: 8;
|
|
82
|
+
readonly 2.5: 10;
|
|
83
|
+
readonly 3: 12;
|
|
84
|
+
readonly 3.5: 14;
|
|
85
|
+
readonly 4: 16;
|
|
86
|
+
readonly 5: 20;
|
|
87
|
+
readonly 6: 24;
|
|
88
|
+
readonly 7: 28;
|
|
89
|
+
readonly 8: 32;
|
|
90
|
+
readonly 9: 36;
|
|
91
|
+
readonly 10: 40;
|
|
92
|
+
readonly 12: 48;
|
|
93
|
+
readonly 14: 56;
|
|
94
|
+
readonly 16: 64;
|
|
95
|
+
readonly 20: 80;
|
|
96
|
+
readonly 24: 96;
|
|
97
|
+
};
|
|
98
|
+
type Theme = "light" | "dark";
|
|
99
|
+
type TokenKey = keyof typeof LIGHT;
|
|
100
|
+
/** Helper to get a token value for the given theme */
|
|
101
|
+
declare function T(theme: Theme, key: TokenKey): string;
|
|
102
|
+
|
|
103
|
+
interface ThemeContextValue {
|
|
104
|
+
theme: Theme;
|
|
105
|
+
setTheme: (theme: Theme) => void;
|
|
106
|
+
toggleTheme: () => void;
|
|
107
|
+
}
|
|
108
|
+
interface ThemeProviderProps {
|
|
109
|
+
defaultTheme?: Theme;
|
|
110
|
+
storageKey?: string;
|
|
111
|
+
children: ReactNode;
|
|
112
|
+
}
|
|
113
|
+
declare function ThemeProvider({ defaultTheme, storageKey, children, }: ThemeProviderProps): JSX.Element;
|
|
114
|
+
declare function useTheme(): ThemeContextValue;
|
|
115
|
+
|
|
116
|
+
export { DARK, FONTS, LIGHT, RADIUS, SPACING, T, type Theme, ThemeProvider, type TokenKey, useTheme };
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
/** Amber Security Design Tokens — TypeScript constants */
|
|
4
|
+
declare const LIGHT: {
|
|
5
|
+
readonly bg: "#F5F3EE";
|
|
6
|
+
readonly surface: "#FFFFFF";
|
|
7
|
+
readonly surfaceAlt: "#EEEAE4";
|
|
8
|
+
readonly surfaceHover: "#E8E4DE";
|
|
9
|
+
readonly sidebar: "#0B1120";
|
|
10
|
+
readonly sidebarHover: "rgba(255,255,255,0.06)";
|
|
11
|
+
readonly sidebarActive: "rgba(212,136,14,0.12)";
|
|
12
|
+
readonly text: "#1A1A1A";
|
|
13
|
+
readonly textSecondary: "#4A4A4A";
|
|
14
|
+
readonly textMuted: "#8A8A8A";
|
|
15
|
+
readonly textSidebar: "#E0E0E0";
|
|
16
|
+
readonly textSidebarMuted: "#7A8294";
|
|
17
|
+
readonly accent: "#D4880E";
|
|
18
|
+
readonly accentHover: "#B8740C";
|
|
19
|
+
readonly accentSoft: "rgba(212,136,14,0.10)";
|
|
20
|
+
readonly accentText: "#FFFFFF";
|
|
21
|
+
readonly success: "#2D8A4E";
|
|
22
|
+
readonly successSoft: "rgba(45,138,78,0.10)";
|
|
23
|
+
readonly warning: "#C47F17";
|
|
24
|
+
readonly warningSoft: "rgba(196,127,23,0.10)";
|
|
25
|
+
readonly error: "#C93B3B";
|
|
26
|
+
readonly errorSoft: "rgba(201,59,59,0.10)";
|
|
27
|
+
readonly info: "#2B7CB8";
|
|
28
|
+
readonly infoSoft: "rgba(43,124,184,0.10)";
|
|
29
|
+
readonly border: "#DDD9D2";
|
|
30
|
+
readonly borderSidebar: "rgba(255,255,255,0.08)";
|
|
31
|
+
readonly shadow: "0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02)";
|
|
32
|
+
readonly shadowMd: "0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03)";
|
|
33
|
+
readonly shadowLg: "0 8px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03)";
|
|
34
|
+
};
|
|
35
|
+
declare const DARK: {
|
|
36
|
+
readonly bg: "#0A0A0A";
|
|
37
|
+
readonly surface: "#161616";
|
|
38
|
+
readonly surfaceAlt: "#1C1C1C";
|
|
39
|
+
readonly surfaceHover: "#222222";
|
|
40
|
+
readonly sidebar: "#070B14";
|
|
41
|
+
readonly sidebarHover: "rgba(255,255,255,0.06)";
|
|
42
|
+
readonly sidebarActive: "rgba(245,166,35,0.12)";
|
|
43
|
+
readonly text: "#F2F2F2";
|
|
44
|
+
readonly textSecondary: "#B0B0B0";
|
|
45
|
+
readonly textMuted: "#707070";
|
|
46
|
+
readonly textSidebar: "#D4D4D4";
|
|
47
|
+
readonly textSidebarMuted: "#6B7280";
|
|
48
|
+
readonly accent: "#F5A623";
|
|
49
|
+
readonly accentHover: "#E09510";
|
|
50
|
+
readonly accentSoft: "rgba(245,166,35,0.12)";
|
|
51
|
+
readonly accentText: "#0A0A0A";
|
|
52
|
+
readonly success: "#3DB868";
|
|
53
|
+
readonly successSoft: "rgba(61,184,104,0.12)";
|
|
54
|
+
readonly warning: "#E0A830";
|
|
55
|
+
readonly warningSoft: "rgba(224,168,48,0.12)";
|
|
56
|
+
readonly error: "#E85C5C";
|
|
57
|
+
readonly errorSoft: "rgba(232,92,92,0.12)";
|
|
58
|
+
readonly info: "#4DA3E0";
|
|
59
|
+
readonly infoSoft: "rgba(77,163,224,0.12)";
|
|
60
|
+
readonly border: "#262626";
|
|
61
|
+
readonly borderSidebar: "rgba(255,255,255,0.06)";
|
|
62
|
+
readonly shadow: "0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.12)";
|
|
63
|
+
readonly shadowMd: "0 4px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15)";
|
|
64
|
+
readonly shadowLg: "0 8px 30px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.18)";
|
|
65
|
+
};
|
|
66
|
+
declare const FONTS: {
|
|
67
|
+
readonly display: "'Outfit', sans-serif";
|
|
68
|
+
readonly body: "'Manrope', -apple-system, BlinkMacSystemFont, sans-serif";
|
|
69
|
+
readonly mono: "'IBM Plex Mono', 'SF Mono', monospace";
|
|
70
|
+
};
|
|
71
|
+
declare const RADIUS: {
|
|
72
|
+
readonly sm: 6;
|
|
73
|
+
readonly md: 10;
|
|
74
|
+
readonly lg: 14;
|
|
75
|
+
};
|
|
76
|
+
declare const SPACING: {
|
|
77
|
+
readonly 0: 0;
|
|
78
|
+
readonly 0.5: 2;
|
|
79
|
+
readonly 1: 4;
|
|
80
|
+
readonly 1.5: 6;
|
|
81
|
+
readonly 2: 8;
|
|
82
|
+
readonly 2.5: 10;
|
|
83
|
+
readonly 3: 12;
|
|
84
|
+
readonly 3.5: 14;
|
|
85
|
+
readonly 4: 16;
|
|
86
|
+
readonly 5: 20;
|
|
87
|
+
readonly 6: 24;
|
|
88
|
+
readonly 7: 28;
|
|
89
|
+
readonly 8: 32;
|
|
90
|
+
readonly 9: 36;
|
|
91
|
+
readonly 10: 40;
|
|
92
|
+
readonly 12: 48;
|
|
93
|
+
readonly 14: 56;
|
|
94
|
+
readonly 16: 64;
|
|
95
|
+
readonly 20: 80;
|
|
96
|
+
readonly 24: 96;
|
|
97
|
+
};
|
|
98
|
+
type Theme = "light" | "dark";
|
|
99
|
+
type TokenKey = keyof typeof LIGHT;
|
|
100
|
+
/** Helper to get a token value for the given theme */
|
|
101
|
+
declare function T(theme: Theme, key: TokenKey): string;
|
|
102
|
+
|
|
103
|
+
interface ThemeContextValue {
|
|
104
|
+
theme: Theme;
|
|
105
|
+
setTheme: (theme: Theme) => void;
|
|
106
|
+
toggleTheme: () => void;
|
|
107
|
+
}
|
|
108
|
+
interface ThemeProviderProps {
|
|
109
|
+
defaultTheme?: Theme;
|
|
110
|
+
storageKey?: string;
|
|
111
|
+
children: ReactNode;
|
|
112
|
+
}
|
|
113
|
+
declare function ThemeProvider({ defaultTheme, storageKey, children, }: ThemeProviderProps): JSX.Element;
|
|
114
|
+
declare function useTheme(): ThemeContextValue;
|
|
115
|
+
|
|
116
|
+
export { DARK, FONTS, LIGHT, RADIUS, SPACING, T, type Theme, ThemeProvider, type TokenKey, useTheme };
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkE4FQ57CA_js = require('./chunk-E4FQ57CA.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "DARK", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkE4FQ57CA_js.DARK; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "FONTS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkE4FQ57CA_js.FONTS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "LIGHT", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkE4FQ57CA_js.LIGHT; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "RADIUS", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkE4FQ57CA_js.RADIUS; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "SPACING", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkE4FQ57CA_js.SPACING; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "T", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkE4FQ57CA_js.T; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkE4FQ57CA_js.ThemeProvider; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "useTheme", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkE4FQ57CA_js.useTheme; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=tokens.js.map
|
|
40
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tokens.js"}
|
package/dist/tokens.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"tokens.mjs"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ambersecurityinc/ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Amber Security shared UI library — design tokens, React components, and brand assets",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./tokens": {
|
|
16
|
+
"types": "./dist/tokens.d.ts",
|
|
17
|
+
"import": "./dist/tokens.mjs",
|
|
18
|
+
"require": "./dist/tokens.js"
|
|
19
|
+
},
|
|
20
|
+
"./tokens.css": "./dist/tokens.css",
|
|
21
|
+
"./components": {
|
|
22
|
+
"types": "./dist/components.d.ts",
|
|
23
|
+
"import": "./dist/components.mjs",
|
|
24
|
+
"require": "./dist/components.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"_temp_note": "Revert publishConfig to GitHub Packages (@ambersecurityinc:registry https://npm.pkg.github.com, access restricted) after April 1 2026 billing reset",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"registry": "https://registry.npmjs.org",
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/ambersecurityinc/ui.git"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
42
|
+
"typescript": "^5.0.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/react": "^18.3.0",
|
|
46
|
+
"@types/react-dom": "^18.3.0",
|
|
47
|
+
"react": "^18.3.0",
|
|
48
|
+
"react-dom": "^18.3.0",
|
|
49
|
+
"tsup": "^8.0.0",
|
|
50
|
+
"typescript": "^5.5.0"
|
|
51
|
+
},
|
|
52
|
+
"license": "UNLICENSED",
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsup && cp src/tokens/tokens.css dist/tokens.css",
|
|
55
|
+
"dev": "tsup --watch",
|
|
56
|
+
"typecheck": "tsc --noEmit",
|
|
57
|
+
"clean": "rm -rf dist"
|
|
58
|
+
}
|
|
59
|
+
}
|