@getmicdrop/svelte-components 4.1.4 → 5.0.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 (38) hide show
  1. package/dist/components/Layout/Grid.svelte +110 -0
  2. package/dist/components/Layout/Grid.svelte.d.ts +48 -0
  3. package/dist/components/Layout/Grid.svelte.d.ts.map +1 -0
  4. package/dist/components/Layout/Section.svelte +81 -0
  5. package/dist/components/Layout/Section.svelte.d.ts +48 -0
  6. package/dist/components/Layout/Section.svelte.d.ts.map +1 -0
  7. package/dist/components/Layout/Sidebar.svelte +104 -0
  8. package/dist/components/Layout/Sidebar.svelte.d.ts +52 -0
  9. package/dist/components/Layout/Sidebar.svelte.d.ts.map +1 -0
  10. package/dist/components/Layout/Stack.svelte +139 -0
  11. package/dist/components/Layout/Stack.svelte.d.ts +52 -0
  12. package/dist/components/Layout/Stack.svelte.d.ts.map +1 -0
  13. package/dist/tailwind/preset.cjs +82 -0
  14. package/dist/tailwind/preset.d.cts +78 -0
  15. package/dist/tailwind/preset.d.cts.map +1 -0
  16. package/dist/tokens/colors.d.ts +255 -0
  17. package/dist/tokens/colors.d.ts.map +1 -0
  18. package/dist/tokens/colors.js +141 -0
  19. package/dist/tokens/index.d.ts +11 -0
  20. package/dist/tokens/index.d.ts.map +1 -0
  21. package/dist/tokens/index.js +10 -0
  22. package/dist/tokens/radius.d.ts +28 -0
  23. package/dist/tokens/radius.d.ts.map +1 -0
  24. package/dist/tokens/radius.js +25 -0
  25. package/dist/tokens/shadows.d.ts +46 -0
  26. package/dist/tokens/shadows.d.ts.map +1 -0
  27. package/dist/tokens/shadows.js +28 -0
  28. package/dist/tokens/spacing.d.ts +62 -0
  29. package/dist/tokens/spacing.d.ts.map +1 -0
  30. package/dist/tokens/spacing.js +59 -0
  31. package/dist/tokens/tokens.css +87 -0
  32. package/dist/tokens/typography.d.ts +174 -0
  33. package/dist/tokens/typography.d.ts.map +1 -0
  34. package/dist/tokens/typography.js +66 -0
  35. package/dist/tokens/z-index.d.ts +32 -0
  36. package/dist/tokens/z-index.d.ts.map +1 -0
  37. package/dist/tokens/z-index.js +29 -0
  38. package/package.json +31 -1
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Box shadow definitions compatible with Tailwind.
4
+ */
5
+ export declare const boxShadow: {
6
+ readonly sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
7
+ readonly DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
8
+ readonly md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
9
+ readonly lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
10
+ readonly xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
11
+ readonly '2xl': "0 25px 50px -12px rgb(0 0 0 / 0.25)";
12
+ readonly inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)";
13
+ readonly none: "none";
14
+ };
15
+ export declare const customShadows: {
16
+ readonly modal: "0 0 31px 0 rgb(0 0 0 / 0.1)";
17
+ readonly dropdown: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
18
+ readonly cardHover: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
19
+ readonly buttonHover: "0 4px 6px -1px rgb(0 0 0 / 0.1)";
20
+ readonly toast: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
21
+ readonly tooltip: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
22
+ readonly focusRing: "0 0 0 3px rgb(59 130 246 / 0.5)";
23
+ readonly focusRingDanger: "0 0 0 3px rgb(239 68 68 / 0.5)";
24
+ };
25
+ export declare const shadows: {
26
+ readonly modal: "0 0 31px 0 rgb(0 0 0 / 0.1)";
27
+ readonly dropdown: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
28
+ readonly cardHover: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
29
+ readonly buttonHover: "0 4px 6px -1px rgb(0 0 0 / 0.1)";
30
+ readonly toast: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
31
+ readonly tooltip: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
32
+ readonly focusRing: "0 0 0 3px rgb(59 130 246 / 0.5)";
33
+ readonly focusRingDanger: "0 0 0 3px rgb(239 68 68 / 0.5)";
34
+ readonly sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
35
+ readonly DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
36
+ readonly md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
37
+ readonly lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
38
+ readonly xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
39
+ readonly '2xl': "0 25px 50px -12px rgb(0 0 0 / 0.25)";
40
+ readonly inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)";
41
+ readonly none: "none";
42
+ };
43
+ export type BoxShadowKey = keyof typeof boxShadow;
44
+ export type CustomShadowKey = keyof typeof customShadows;
45
+ export type ShadowKey = keyof typeof shadows;
46
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/shadows.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;CASZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAGV,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,aAAa,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,OAAO,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Box shadow definitions compatible with Tailwind.
4
+ */
5
+ export const boxShadow = {
6
+ sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
7
+ DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
8
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
9
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
10
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
11
+ '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
12
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
13
+ none: 'none',
14
+ };
15
+ export const customShadows = {
16
+ modal: '0 0 31px 0 rgb(0 0 0 / 0.1)',
17
+ dropdown: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
18
+ cardHover: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
19
+ buttonHover: '0 4px 6px -1px rgb(0 0 0 / 0.1)',
20
+ toast: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
21
+ tooltip: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
22
+ focusRing: '0 0 0 3px rgb(59 130 246 / 0.5)',
23
+ focusRingDanger: '0 0 0 3px rgb(239 68 68 / 0.5)',
24
+ };
25
+ export const shadows = {
26
+ ...boxShadow,
27
+ ...customShadows,
28
+ };
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Tailwind-compatible spacing scale.
4
+ */
5
+ export declare const spacing: {
6
+ readonly px: "1px";
7
+ readonly '0': "0px";
8
+ readonly '0.5': "0.125rem";
9
+ readonly '1': "0.25rem";
10
+ readonly '1.5': "0.375rem";
11
+ readonly '2': "0.5rem";
12
+ readonly '2.5': "0.625rem";
13
+ readonly '3': "0.75rem";
14
+ readonly '3.5': "0.875rem";
15
+ readonly '4': "1rem";
16
+ readonly '5': "1.25rem";
17
+ readonly '6': "1.5rem";
18
+ readonly '7': "1.75rem";
19
+ readonly '8': "2rem";
20
+ readonly '9': "2.25rem";
21
+ readonly '10': "2.5rem";
22
+ readonly '11': "2.75rem";
23
+ readonly '12': "3rem";
24
+ readonly '14': "3.5rem";
25
+ readonly '16': "4rem";
26
+ readonly '20': "5rem";
27
+ readonly '24': "6rem";
28
+ readonly '28': "7rem";
29
+ readonly '32': "8rem";
30
+ readonly '36': "9rem";
31
+ readonly '40': "10rem";
32
+ readonly '44': "11rem";
33
+ readonly '48': "12rem";
34
+ readonly '52': "13rem";
35
+ readonly '56': "14rem";
36
+ readonly '60': "15rem";
37
+ readonly '64': "16rem";
38
+ readonly '72': "18rem";
39
+ readonly '80': "20rem";
40
+ readonly '96': "24rem";
41
+ };
42
+ export declare const spacingAliases: {
43
+ readonly xs: "0.25rem";
44
+ readonly sm: "0.5rem";
45
+ readonly md: "1rem";
46
+ readonly lg: "1.5rem";
47
+ readonly xl: "2rem";
48
+ readonly '2xl': "3rem";
49
+ readonly '3xl': "4rem";
50
+ readonly cardPadding: "1rem";
51
+ readonly modalPadding: "1.5rem";
52
+ readonly formGap: "1rem";
53
+ readonly buttonPaddingX: "1rem";
54
+ readonly buttonPaddingY: "0.5rem";
55
+ readonly inputPaddingX: "0.75rem";
56
+ readonly inputPaddingY: "0.5rem";
57
+ readonly tableCellPaddingX: "1rem";
58
+ readonly tableCellPaddingY: "0.75rem";
59
+ };
60
+ export type SpacingKey = keyof typeof spacing;
61
+ export type SpacingAlias = keyof typeof spacingAliases;
62
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/spacing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCV,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;CAiBjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,cAAc,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Tailwind-compatible spacing scale.
4
+ */
5
+ export const spacing = {
6
+ 'px': '1px',
7
+ '0': '0px',
8
+ '0.5': '0.125rem',
9
+ '1': '0.25rem',
10
+ '1.5': '0.375rem',
11
+ '2': '0.5rem',
12
+ '2.5': '0.625rem',
13
+ '3': '0.75rem',
14
+ '3.5': '0.875rem',
15
+ '4': '1rem',
16
+ '5': '1.25rem',
17
+ '6': '1.5rem',
18
+ '7': '1.75rem',
19
+ '8': '2rem',
20
+ '9': '2.25rem',
21
+ '10': '2.5rem',
22
+ '11': '2.75rem',
23
+ '12': '3rem',
24
+ '14': '3.5rem',
25
+ '16': '4rem',
26
+ '20': '5rem',
27
+ '24': '6rem',
28
+ '28': '7rem',
29
+ '32': '8rem',
30
+ '36': '9rem',
31
+ '40': '10rem',
32
+ '44': '11rem',
33
+ '48': '12rem',
34
+ '52': '13rem',
35
+ '56': '14rem',
36
+ '60': '15rem',
37
+ '64': '16rem',
38
+ '72': '18rem',
39
+ '80': '20rem',
40
+ '96': '24rem',
41
+ };
42
+ export const spacingAliases = {
43
+ xs: spacing['1'],
44
+ sm: spacing['2'],
45
+ md: spacing['4'],
46
+ lg: spacing['6'],
47
+ xl: spacing['8'],
48
+ '2xl': spacing['12'],
49
+ '3xl': spacing['16'],
50
+ cardPadding: spacing['4'],
51
+ modalPadding: spacing['6'],
52
+ formGap: spacing['4'],
53
+ buttonPaddingX: spacing['4'],
54
+ buttonPaddingY: spacing['2'],
55
+ inputPaddingX: spacing['3'],
56
+ inputPaddingY: spacing['2'],
57
+ tableCellPaddingX: spacing['4'],
58
+ tableCellPaddingY: spacing['3'],
59
+ };
@@ -0,0 +1,87 @@
1
+ :root {
2
+ --bg-primary: 0 0% 100%;
3
+ --bg-secondary: 220 7% 97%;
4
+ --bg-tertiary: 220 7% 94%;
5
+ --bg-quaternary: 220 6% 91%;
6
+
7
+ --text-primary: 221 50% 10%;
8
+ --text-secondary: 220 20% 18%;
9
+ --text-tertiary: 221 9% 44%;
10
+ --text-head: 221 9% 44%;
11
+
12
+ --brand-primary: 209 99% 50%;
13
+
14
+ --accent-warning: 28 100% 59%;
15
+ --accent-danger: 0 100% 70%;
16
+ --accent-success: 131 77% 35%;
17
+
18
+ --stroke-primary: 216 6% 84%;
19
+ --stroke-secondary: 216 6% 84%;
20
+ --border: 220 13% 91%;
21
+
22
+ --card: 0 0% 100%;
23
+ --card-foreground: 224 71.4% 4.1%;
24
+ --popover: 0 0% 100%;
25
+ --popover-foreground: 224 71.4% 4.1%;
26
+ --muted: 220 14.3% 95.9%;
27
+ --muted-foreground: 220 8.9% 46.1%;
28
+ --hover-primary: 210 20% 96%;
29
+
30
+ --sidebar-background: 0 0% 100%;
31
+ --sidebar-foreground: 220 20% 18%;
32
+ --sidebar-border: 220 13% 91%;
33
+ --sidebar-primary: 221 65% 54%;
34
+ --sidebar-primary-foreground: 221 50% 10%;
35
+
36
+ --BG-Primary: var(--bg-primary);
37
+ --BG-Secondary: var(--bg-secondary);
38
+ --BG-Tertiary: var(--bg-tertiary);
39
+ --BG-Quaternary: var(--bg-quaternary);
40
+ --Text-Primary: var(--text-primary);
41
+ --Text-Secondary: var(--text-secondary);
42
+ --Text-Tartiary: var(--text-tertiary);
43
+ --Text-Head: var(--text-head);
44
+ --Brand-Primary: var(--brand-primary);
45
+ --Accent-Warning: var(--accent-warning);
46
+ --Accent-Danger: var(--accent-danger);
47
+ --Accent-Success: var(--accent-success);
48
+ --Stroke-Primary: var(--stroke-primary);
49
+ --Stroke-Secondary: var(--stroke-secondary);
50
+ }
51
+
52
+ [data-theme="dark"],
53
+ .dark {
54
+ --bg-primary: 220 20% 18%;
55
+ --bg-secondary: 221 50% 10%;
56
+ --bg-tertiary: 221 50% 6%;
57
+ --bg-quaternary: 0 0% 0%;
58
+
59
+ --text-primary: 220 7% 97%;
60
+ --text-secondary: 220 7% 94%;
61
+ --text-tertiary: 220 6% 91%;
62
+ --text-head: 220 9% 70%;
63
+
64
+ --brand-primary: 220 89% 63%;
65
+
66
+ --accent-warning: 30 100% 70%;
67
+ --accent-danger: 0 100% 70%;
68
+ --accent-success: 142 71% 45%;
69
+
70
+ --stroke-primary: 220 20% 28%;
71
+ --stroke-secondary: 220 20% 28%;
72
+ --border: 215 27.9% 16.9%;
73
+
74
+ --card: 224 20% 10%;
75
+ --card-foreground: 210 20% 98%;
76
+ --popover: 224 71.4% 4.1%;
77
+ --popover-foreground: 210 20% 98%;
78
+ --muted: 215 27.9% 16.9%;
79
+ --muted-foreground: 217.9 10.6% 64.9%;
80
+ --hover-primary: 222 10% 39%;
81
+
82
+ --sidebar-background: 220 20% 18%;
83
+ --sidebar-foreground: 220 7% 94%;
84
+ --sidebar-border: 215 20% 20%;
85
+ --sidebar-primary: 221 65% 54%;
86
+ --sidebar-primary-foreground: 220 7% 97%;
87
+ }
@@ -0,0 +1,174 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Typography tokens compatible with Tailwind.
4
+ */
5
+ export declare const fontSize: {
6
+ readonly xs: readonly ["0.75rem", {
7
+ readonly lineHeight: "1rem";
8
+ }];
9
+ readonly sm: readonly ["0.875rem", {
10
+ readonly lineHeight: "1.25rem";
11
+ }];
12
+ readonly base: readonly ["1rem", {
13
+ readonly lineHeight: "1.5rem";
14
+ }];
15
+ readonly lg: readonly ["1.125rem", {
16
+ readonly lineHeight: "1.75rem";
17
+ }];
18
+ readonly xl: readonly ["1.25rem", {
19
+ readonly lineHeight: "1.75rem";
20
+ }];
21
+ readonly '2xl': readonly ["1.5rem", {
22
+ readonly lineHeight: "2rem";
23
+ }];
24
+ readonly '3xl': readonly ["1.875rem", {
25
+ readonly lineHeight: "2.25rem";
26
+ }];
27
+ readonly '4xl': readonly ["2.25rem", {
28
+ readonly lineHeight: "2.5rem";
29
+ }];
30
+ readonly '5xl': readonly ["3rem", {
31
+ readonly lineHeight: "1";
32
+ }];
33
+ readonly '6xl': readonly ["3.75rem", {
34
+ readonly lineHeight: "1";
35
+ }];
36
+ readonly '7xl': readonly ["4.5rem", {
37
+ readonly lineHeight: "1";
38
+ }];
39
+ readonly '8xl': readonly ["6rem", {
40
+ readonly lineHeight: "1";
41
+ }];
42
+ readonly '9xl': readonly ["8rem", {
43
+ readonly lineHeight: "1";
44
+ }];
45
+ };
46
+ export declare const fontWeight: {
47
+ readonly thin: "100";
48
+ readonly extralight: "200";
49
+ readonly light: "300";
50
+ readonly normal: "400";
51
+ readonly medium: "500";
52
+ readonly semibold: "600";
53
+ readonly bold: "700";
54
+ readonly extrabold: "800";
55
+ readonly black: "900";
56
+ };
57
+ export declare const fontFamily: {
58
+ readonly sans: readonly ["Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", "sans-serif"];
59
+ readonly mono: readonly ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"];
60
+ readonly serif: readonly ["ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"];
61
+ };
62
+ export declare const lineHeight: {
63
+ readonly none: "1";
64
+ readonly tight: "1.25";
65
+ readonly snug: "1.375";
66
+ readonly normal: "1.5";
67
+ readonly relaxed: "1.625";
68
+ readonly loose: "2";
69
+ readonly '3': ".75rem";
70
+ readonly '4': "1rem";
71
+ readonly '5': "1.25rem";
72
+ readonly '6': "1.5rem";
73
+ readonly '7': "1.75rem";
74
+ readonly '8': "2rem";
75
+ readonly '9': "2.25rem";
76
+ readonly '10': "2.5rem";
77
+ };
78
+ export declare const letterSpacing: {
79
+ readonly tighter: "-0.05em";
80
+ readonly tight: "-0.025em";
81
+ readonly normal: "0em";
82
+ readonly wide: "0.025em";
83
+ readonly wider: "0.05em";
84
+ readonly widest: "0.1em";
85
+ };
86
+ export declare const typography: {
87
+ readonly fontSize: {
88
+ readonly xs: readonly ["0.75rem", {
89
+ readonly lineHeight: "1rem";
90
+ }];
91
+ readonly sm: readonly ["0.875rem", {
92
+ readonly lineHeight: "1.25rem";
93
+ }];
94
+ readonly base: readonly ["1rem", {
95
+ readonly lineHeight: "1.5rem";
96
+ }];
97
+ readonly lg: readonly ["1.125rem", {
98
+ readonly lineHeight: "1.75rem";
99
+ }];
100
+ readonly xl: readonly ["1.25rem", {
101
+ readonly lineHeight: "1.75rem";
102
+ }];
103
+ readonly '2xl': readonly ["1.5rem", {
104
+ readonly lineHeight: "2rem";
105
+ }];
106
+ readonly '3xl': readonly ["1.875rem", {
107
+ readonly lineHeight: "2.25rem";
108
+ }];
109
+ readonly '4xl': readonly ["2.25rem", {
110
+ readonly lineHeight: "2.5rem";
111
+ }];
112
+ readonly '5xl': readonly ["3rem", {
113
+ readonly lineHeight: "1";
114
+ }];
115
+ readonly '6xl': readonly ["3.75rem", {
116
+ readonly lineHeight: "1";
117
+ }];
118
+ readonly '7xl': readonly ["4.5rem", {
119
+ readonly lineHeight: "1";
120
+ }];
121
+ readonly '8xl': readonly ["6rem", {
122
+ readonly lineHeight: "1";
123
+ }];
124
+ readonly '9xl': readonly ["8rem", {
125
+ readonly lineHeight: "1";
126
+ }];
127
+ };
128
+ readonly fontWeight: {
129
+ readonly thin: "100";
130
+ readonly extralight: "200";
131
+ readonly light: "300";
132
+ readonly normal: "400";
133
+ readonly medium: "500";
134
+ readonly semibold: "600";
135
+ readonly bold: "700";
136
+ readonly extrabold: "800";
137
+ readonly black: "900";
138
+ };
139
+ readonly fontFamily: {
140
+ readonly sans: readonly ["Inter", "system-ui", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", "sans-serif"];
141
+ readonly mono: readonly ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", "monospace"];
142
+ readonly serif: readonly ["ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"];
143
+ };
144
+ readonly lineHeight: {
145
+ readonly none: "1";
146
+ readonly tight: "1.25";
147
+ readonly snug: "1.375";
148
+ readonly normal: "1.5";
149
+ readonly relaxed: "1.625";
150
+ readonly loose: "2";
151
+ readonly '3': ".75rem";
152
+ readonly '4': "1rem";
153
+ readonly '5': "1.25rem";
154
+ readonly '6': "1.5rem";
155
+ readonly '7': "1.75rem";
156
+ readonly '8': "2rem";
157
+ readonly '9': "2.25rem";
158
+ readonly '10': "2.5rem";
159
+ };
160
+ readonly letterSpacing: {
161
+ readonly tighter: "-0.05em";
162
+ readonly tight: "-0.025em";
163
+ readonly normal: "0em";
164
+ readonly wide: "0.025em";
165
+ readonly wider: "0.05em";
166
+ readonly widest: "0.1em";
167
+ };
168
+ };
169
+ export type FontSizeKey = keyof typeof fontSize;
170
+ export type FontWeightKey = keyof typeof fontWeight;
171
+ export type FontFamilyKey = keyof typeof fontFamily;
172
+ export type LineHeightKey = keyof typeof lineHeight;
173
+ export type LetterSpacingKey = keyof typeof letterSpacing;
174
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcX,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;CAUb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAeb,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMb,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,aAAa,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Typography tokens compatible with Tailwind.
4
+ */
5
+ export const fontSize = {
6
+ xs: ['0.75rem', { lineHeight: '1rem' }],
7
+ sm: ['0.875rem', { lineHeight: '1.25rem' }],
8
+ base: ['1rem', { lineHeight: '1.5rem' }],
9
+ lg: ['1.125rem', { lineHeight: '1.75rem' }],
10
+ xl: ['1.25rem', { lineHeight: '1.75rem' }],
11
+ '2xl': ['1.5rem', { lineHeight: '2rem' }],
12
+ '3xl': ['1.875rem', { lineHeight: '2.25rem' }],
13
+ '4xl': ['2.25rem', { lineHeight: '2.5rem' }],
14
+ '5xl': ['3rem', { lineHeight: '1' }],
15
+ '6xl': ['3.75rem', { lineHeight: '1' }],
16
+ '7xl': ['4.5rem', { lineHeight: '1' }],
17
+ '8xl': ['6rem', { lineHeight: '1' }],
18
+ '9xl': ['8rem', { lineHeight: '1' }],
19
+ };
20
+ export const fontWeight = {
21
+ thin: '100',
22
+ extralight: '200',
23
+ light: '300',
24
+ normal: '400',
25
+ medium: '500',
26
+ semibold: '600',
27
+ bold: '700',
28
+ extrabold: '800',
29
+ black: '900',
30
+ };
31
+ export const fontFamily = {
32
+ sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'],
33
+ mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace'],
34
+ serif: ['ui-serif', 'Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
35
+ };
36
+ export const lineHeight = {
37
+ none: '1',
38
+ tight: '1.25',
39
+ snug: '1.375',
40
+ normal: '1.5',
41
+ relaxed: '1.625',
42
+ loose: '2',
43
+ '3': '.75rem',
44
+ '4': '1rem',
45
+ '5': '1.25rem',
46
+ '6': '1.5rem',
47
+ '7': '1.75rem',
48
+ '8': '2rem',
49
+ '9': '2.25rem',
50
+ '10': '2.5rem',
51
+ };
52
+ export const letterSpacing = {
53
+ tighter: '-0.05em',
54
+ tight: '-0.025em',
55
+ normal: '0em',
56
+ wide: '0.025em',
57
+ wider: '0.05em',
58
+ widest: '0.1em',
59
+ };
60
+ export const typography = {
61
+ fontSize,
62
+ fontWeight,
63
+ fontFamily,
64
+ lineHeight,
65
+ letterSpacing,
66
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Z-index scale for stacking contexts.
4
+ */
5
+ export declare const zIndex: {
6
+ readonly auto: "auto";
7
+ readonly '0': "0";
8
+ readonly '10': "10";
9
+ readonly '20': "20";
10
+ readonly '30': "30";
11
+ readonly '40': "40";
12
+ readonly '50': "50";
13
+ readonly '51': "51";
14
+ readonly '60': "60";
15
+ readonly '70': "70";
16
+ readonly '100': "100";
17
+ };
18
+ export declare const layers: {
19
+ readonly base: "0";
20
+ readonly sticky: "10";
21
+ readonly navigation: "20";
22
+ readonly dropdown: "30";
23
+ readonly overlay: "40";
24
+ readonly modal: "50";
25
+ readonly modalContent: "51";
26
+ readonly toast: "60";
27
+ readonly tooltip: "70";
28
+ readonly critical: "100";
29
+ };
30
+ export type ZIndexKey = keyof typeof zIndex;
31
+ export type LayerKey = keyof typeof layers;
32
+ //# sourceMappingURL=z-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"z-index.d.ts","sourceRoot":"","sources":["../../src/lib/tokens/z-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;CAWT,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Z-index scale for stacking contexts.
4
+ */
5
+ export const zIndex = {
6
+ auto: 'auto',
7
+ '0': '0',
8
+ '10': '10',
9
+ '20': '20',
10
+ '30': '30',
11
+ '40': '40',
12
+ '50': '50',
13
+ '51': '51',
14
+ '60': '60',
15
+ '70': '70',
16
+ '100': '100',
17
+ };
18
+ export const layers = {
19
+ base: zIndex['0'],
20
+ sticky: zIndex['10'],
21
+ navigation: zIndex['20'],
22
+ dropdown: zIndex['30'],
23
+ overlay: zIndex['40'],
24
+ modal: zIndex['50'],
25
+ modalContent: zIndex['51'],
26
+ toast: zIndex['60'],
27
+ tooltip: zIndex['70'],
28
+ critical: zIndex['100'],
29
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmicdrop/svelte-components",
3
- "version": "4.1.4",
3
+ "version": "5.0.0",
4
4
  "description": "Shared component library for Micdrop applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,36 @@
13
13
  "import": "./dist/index.js"
14
14
  },
15
15
  "./styles": "./dist/styles.css",
16
+ "./tokens": {
17
+ "types": "./dist/tokens/index.d.ts",
18
+ "import": "./dist/tokens/index.js"
19
+ },
20
+ "./tokens/colors": {
21
+ "types": "./dist/tokens/colors.d.ts",
22
+ "import": "./dist/tokens/colors.js"
23
+ },
24
+ "./tokens/spacing": {
25
+ "types": "./dist/tokens/spacing.d.ts",
26
+ "import": "./dist/tokens/spacing.js"
27
+ },
28
+ "./tokens/typography": {
29
+ "types": "./dist/tokens/typography.d.ts",
30
+ "import": "./dist/tokens/typography.js"
31
+ },
32
+ "./tokens/radius": {
33
+ "types": "./dist/tokens/radius.d.ts",
34
+ "import": "./dist/tokens/radius.js"
35
+ },
36
+ "./tokens/shadows": {
37
+ "types": "./dist/tokens/shadows.d.ts",
38
+ "import": "./dist/tokens/shadows.js"
39
+ },
40
+ "./tokens/z-index": {
41
+ "types": "./dist/tokens/z-index.d.ts",
42
+ "import": "./dist/tokens/z-index.js"
43
+ },
44
+ "./tokens/css": "./dist/tokens/tokens.css",
45
+ "./tailwind-preset": "./dist/tailwind/preset.cjs",
16
46
  "./primitives/*": {
17
47
  "svelte": "./dist/primitives/*",
18
48
  "import": "./dist/primitives/*"