@neuralytics/alpine-ds 0.5.0 → 0.7.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/CHANGELOG.md +16 -0
- package/README.md +64 -17
- package/dist/components/tooltip/Tooltip.vue.d.ts +2 -2
- package/dist/fonts/OFL.txt +94 -0
- package/dist/fonts/lato-latin-bold.woff2 +0 -0
- package/dist/fonts/lato-latin-ext-bold.woff2 +0 -0
- package/dist/fonts/lato-latin-ext-medium.woff2 +0 -0
- package/dist/fonts/lato-latin-ext-regular.woff2 +0 -0
- package/dist/fonts/lato-latin-medium.woff2 +0 -0
- package/dist/fonts/lato-latin-regular.woff2 +0 -0
- package/dist/fonts.css +67 -0
- package/dist/index.mjs +891 -894
- package/dist/tailwind-preset.d.ts +3 -0
- package/dist/tailwind-preset.mjs +32 -15
- package/dist/theme.css +137 -0
- package/package.json +5 -3
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Config } from 'tailwindcss';
|
|
2
|
+
/** @deprecated Use `@neuralytics/alpine-ds/theme.css` (native Tailwind v4 `@theme`) instead. */
|
|
2
3
|
export declare const content: Config["content"];
|
|
4
|
+
/** @deprecated Use `@neuralytics/alpine-ds/theme.css` (native Tailwind v4 `@theme`) instead. */
|
|
3
5
|
export declare const theme: Config["theme"];
|
|
6
|
+
/** @deprecated Use `@neuralytics/alpine-ds/theme.css` (native Tailwind v4 `@theme`) instead. */
|
|
4
7
|
declare const preset: Config;
|
|
5
8
|
export default preset;
|
package/dist/tailwind-preset.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), c = {
|
|
2
2
|
50: "oklch(98.5% 0 0)",
|
|
3
3
|
100: "oklch(97% 0 0)",
|
|
4
4
|
200: "oklch(92.2% 0 0)",
|
|
@@ -20,7 +20,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
|
|
|
20
20
|
700: "oklch(50.5% 0.213 27.518)",
|
|
21
21
|
800: "oklch(44.4% 0.177 26.899)",
|
|
22
22
|
900: "oklch(39.6% 0.141 25.723)"
|
|
23
|
-
},
|
|
23
|
+
}, e = {
|
|
24
24
|
50: "oklch(98.7% 0.022 95.277)",
|
|
25
25
|
100: "oklch(96.2% 0.059 95.617)",
|
|
26
26
|
200: "oklch(92.4% 0.12 95.746)",
|
|
@@ -31,7 +31,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
|
|
|
31
31
|
700: "oklch(55.5% 0.163 48.998)",
|
|
32
32
|
800: "oklch(47.3% 0.137 46.201)",
|
|
33
33
|
900: "oklch(41.4% 0.112 45.904)"
|
|
34
|
-
},
|
|
34
|
+
}, r = {
|
|
35
35
|
50: "oklch(98.2% 0.018 155.826)",
|
|
36
36
|
100: "oklch(96.2% 0.044 156.743)",
|
|
37
37
|
200: "oklch(92.5% 0.084 155.995)",
|
|
@@ -42,7 +42,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
|
|
|
42
42
|
700: "oklch(52.7% 0.154 150.069)",
|
|
43
43
|
800: "oklch(44.8% 0.119 151.328)",
|
|
44
44
|
900: "oklch(39.3% 0.095 152.535)"
|
|
45
|
-
},
|
|
45
|
+
}, h = {
|
|
46
46
|
50: "oklch(97% 0.014 254.604)",
|
|
47
47
|
100: "oklch(93.2% 0.032 255.585)",
|
|
48
48
|
200: "oklch(88.2% 0.059 254.128)",
|
|
@@ -53,17 +53,34 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
|
|
|
53
53
|
700: "oklch(48.8% 0.243 264.376)",
|
|
54
54
|
800: "oklch(42.4% 0.199 265.638)",
|
|
55
55
|
900: "oklch(37.9% 0.146 265.522)"
|
|
56
|
-
},
|
|
56
|
+
}, k = [`${o}**/*.{js,mjs}`], t = {
|
|
57
|
+
fontFamily: {
|
|
58
|
+
sans: ["Lato", "ui-sans-serif", "system-ui", "sans-serif"],
|
|
59
|
+
mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "monospace"]
|
|
60
|
+
},
|
|
61
|
+
fontSize: {
|
|
62
|
+
sm: ["0.6875rem", "1rem"],
|
|
63
|
+
base: ["0.8125rem", "1.25rem"],
|
|
64
|
+
lg: ["1rem", "1.5rem"],
|
|
65
|
+
xl: ["1.25rem", "1.75rem"],
|
|
66
|
+
"2xl": ["1.5rem", "2rem"],
|
|
67
|
+
"3xl": ["1.875rem", "2.25rem"]
|
|
68
|
+
},
|
|
69
|
+
fontWeight: {
|
|
70
|
+
normal: "400",
|
|
71
|
+
medium: "500",
|
|
72
|
+
bold: "700"
|
|
73
|
+
},
|
|
57
74
|
colors: {
|
|
58
75
|
transparent: "transparent",
|
|
59
76
|
current: "currentColor",
|
|
60
77
|
black: "#000000",
|
|
61
78
|
white: "#ffffff",
|
|
62
|
-
gray:
|
|
79
|
+
gray: c,
|
|
63
80
|
red: l,
|
|
64
|
-
yellow:
|
|
65
|
-
green:
|
|
66
|
-
blue:
|
|
81
|
+
yellow: e,
|
|
82
|
+
green: r,
|
|
83
|
+
blue: h,
|
|
67
84
|
accent: {
|
|
68
85
|
50: "var(--color-accent-50)",
|
|
69
86
|
100: "var(--color-accent-100)",
|
|
@@ -78,12 +95,12 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
|
|
|
78
95
|
},
|
|
79
96
|
"button-text-color": "var(--button-text-color, #ffffff)"
|
|
80
97
|
}
|
|
81
|
-
},
|
|
82
|
-
content:
|
|
83
|
-
theme:
|
|
98
|
+
}, a = {
|
|
99
|
+
content: k,
|
|
100
|
+
theme: t
|
|
84
101
|
};
|
|
85
102
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
103
|
+
k as content,
|
|
104
|
+
a as default,
|
|
105
|
+
t as theme
|
|
89
106
|
};
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Native Tailwind v4 CSS-first equivalent of `tailwind-preset.ts`.
|
|
3
|
+
* `--color-*: initial` clears Tailwind's default palette because `theme.colors`
|
|
4
|
+
* in the JS preset was a full replacement, not an `extend` — same behavior here.
|
|
5
|
+
* Same for fonts, font sizes and font weights.
|
|
6
|
+
*/
|
|
7
|
+
@theme {
|
|
8
|
+
/* Lato is only loaded through the optional `fonts.css`. Consumers using another
|
|
9
|
+
font override `--font-sans` in their own `@theme` block. */
|
|
10
|
+
--font-*: initial;
|
|
11
|
+
--font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
|
|
12
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
13
|
+
|
|
14
|
+
/* rem equivalents of 11/13/16/20/24/30px (with a 16px root), so sizes follow
|
|
15
|
+
the user's browser font size setting. */
|
|
16
|
+
--text-*: initial;
|
|
17
|
+
--text-sm: 0.6875rem;
|
|
18
|
+
--text-sm--line-height: 1rem;
|
|
19
|
+
--text-base: 0.8125rem;
|
|
20
|
+
--text-base--line-height: 1.25rem;
|
|
21
|
+
--text-lg: 1rem;
|
|
22
|
+
--text-lg--line-height: 1.5rem;
|
|
23
|
+
--text-xl: 1.25rem;
|
|
24
|
+
--text-xl--line-height: 1.75rem;
|
|
25
|
+
--text-2xl: 1.5rem;
|
|
26
|
+
--text-2xl--line-height: 2rem;
|
|
27
|
+
--text-3xl: 1.875rem;
|
|
28
|
+
--text-3xl--line-height: 2.25rem;
|
|
29
|
+
|
|
30
|
+
/* Only the weights shipped by `fonts.css`. */
|
|
31
|
+
--font-weight-*: initial;
|
|
32
|
+
--font-weight-normal: 400;
|
|
33
|
+
--font-weight-medium: 500;
|
|
34
|
+
--font-weight-bold: 700;
|
|
35
|
+
|
|
36
|
+
--color-*: initial;
|
|
37
|
+
|
|
38
|
+
--color-transparent: transparent;
|
|
39
|
+
--color-current: currentColor;
|
|
40
|
+
--color-black: #000000;
|
|
41
|
+
--color-white: #ffffff;
|
|
42
|
+
|
|
43
|
+
--color-gray-50: oklch(98.5% 0 0);
|
|
44
|
+
--color-gray-100: oklch(97% 0 0);
|
|
45
|
+
--color-gray-200: oklch(92.2% 0 0);
|
|
46
|
+
--color-gray-300: oklch(87% 0 0);
|
|
47
|
+
--color-gray-400: oklch(70.8% 0 0);
|
|
48
|
+
--color-gray-500: oklch(55.6% 0 0);
|
|
49
|
+
--color-gray-600: oklch(43.9% 0 0);
|
|
50
|
+
--color-gray-700: oklch(37.1% 0 0);
|
|
51
|
+
--color-gray-800: oklch(26.9% 0 0);
|
|
52
|
+
--color-gray-900: oklch(20.5% 0 0);
|
|
53
|
+
|
|
54
|
+
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
55
|
+
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
56
|
+
--color-red-200: oklch(88.5% 0.062 18.334);
|
|
57
|
+
--color-red-300: oklch(80.8% 0.114 19.571);
|
|
58
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
59
|
+
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
60
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
61
|
+
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
62
|
+
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
63
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
64
|
+
|
|
65
|
+
--color-yellow-50: oklch(98.7% 0.022 95.277);
|
|
66
|
+
--color-yellow-100: oklch(96.2% 0.059 95.617);
|
|
67
|
+
--color-yellow-200: oklch(92.4% 0.12 95.746);
|
|
68
|
+
--color-yellow-300: oklch(87.9% 0.169 91.605);
|
|
69
|
+
--color-yellow-400: oklch(82.8% 0.189 84.429);
|
|
70
|
+
--color-yellow-500: oklch(76.9% 0.188 70.08);
|
|
71
|
+
--color-yellow-600: oklch(66.6% 0.179 58.318);
|
|
72
|
+
--color-yellow-700: oklch(55.5% 0.163 48.998);
|
|
73
|
+
--color-yellow-800: oklch(47.3% 0.137 46.201);
|
|
74
|
+
--color-yellow-900: oklch(41.4% 0.112 45.904);
|
|
75
|
+
|
|
76
|
+
--color-green-50: oklch(98.2% 0.018 155.826);
|
|
77
|
+
--color-green-100: oklch(96.2% 0.044 156.743);
|
|
78
|
+
--color-green-200: oklch(92.5% 0.084 155.995);
|
|
79
|
+
--color-green-300: oklch(87.1% 0.15 154.449);
|
|
80
|
+
--color-green-400: oklch(79.2% 0.209 151.711);
|
|
81
|
+
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
82
|
+
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
83
|
+
--color-green-700: oklch(52.7% 0.154 150.069);
|
|
84
|
+
--color-green-800: oklch(44.8% 0.119 151.328);
|
|
85
|
+
--color-green-900: oklch(39.3% 0.095 152.535);
|
|
86
|
+
|
|
87
|
+
--color-blue-50: oklch(97% 0.014 254.604);
|
|
88
|
+
--color-blue-100: oklch(93.2% 0.032 255.585);
|
|
89
|
+
--color-blue-200: oklch(88.2% 0.059 254.128);
|
|
90
|
+
--color-blue-300: oklch(80.9% 0.105 251.813);
|
|
91
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
92
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
93
|
+
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
94
|
+
--color-blue-700: oklch(48.8% 0.243 264.376);
|
|
95
|
+
--color-blue-800: oklch(42.4% 0.199 265.638);
|
|
96
|
+
--color-blue-900: oklch(37.9% 0.146 265.522);
|
|
97
|
+
|
|
98
|
+
/* Runtime-themed via inline style (setAccentColorTheme/setButtonTextColor in
|
|
99
|
+
utils/colors.ts), which overrides these defaults through cascade specificity. */
|
|
100
|
+
--color-accent-50: transparent;
|
|
101
|
+
--color-accent-100: transparent;
|
|
102
|
+
--color-accent-200: transparent;
|
|
103
|
+
--color-accent-300: transparent;
|
|
104
|
+
--color-accent-400: transparent;
|
|
105
|
+
--color-accent-500: transparent;
|
|
106
|
+
--color-accent-600: transparent;
|
|
107
|
+
--color-accent-700: transparent;
|
|
108
|
+
--color-accent-800: transparent;
|
|
109
|
+
--color-accent-900: transparent;
|
|
110
|
+
|
|
111
|
+
/* Aliases `--button-text-color` (not `--color-button-text-color`) because that's
|
|
112
|
+
the variable name setButtonTextColor() in utils/colors.ts writes to. */
|
|
113
|
+
--color-button-text-color: var(--button-text-color, #ffffff);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Defaults that still apply when consumers disable Tailwind's preflight. Set on
|
|
117
|
+
`body`, not `html`, so `1rem` keeps following the browser's font size. Form
|
|
118
|
+
controls don't inherit the page font by default. */
|
|
119
|
+
@layer base {
|
|
120
|
+
body {
|
|
121
|
+
font-family: var(--font-sans);
|
|
122
|
+
font-size: var(--text-base);
|
|
123
|
+
line-height: var(--text-base--line-height);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
button,
|
|
127
|
+
input,
|
|
128
|
+
select,
|
|
129
|
+
textarea {
|
|
130
|
+
font-family: inherit;
|
|
131
|
+
font-size: inherit;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Lets consumers `@import` this file without also adding the package's own
|
|
136
|
+
built output to their content globs. */
|
|
137
|
+
@source "./**/*.{js,mjs}";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuralytics/alpine-ds",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"./tailwind-preset": {
|
|
19
19
|
"types": "./dist/tailwind-preset.d.ts",
|
|
20
20
|
"import": "./dist/tailwind-preset.mjs"
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
|
+
"./theme.css": "./dist/theme.css",
|
|
23
|
+
"./fonts.css": "./dist/fonts.css"
|
|
22
24
|
},
|
|
23
25
|
"main": "./dist/index.mjs",
|
|
24
26
|
"types": "dist/index.d.ts",
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
"vue-tsc": "^3.1.5"
|
|
54
56
|
},
|
|
55
57
|
"scripts": {
|
|
56
|
-
"build": "vite build",
|
|
58
|
+
"build": "vite build && cp src/theme.css src/fonts.css dist/ && cp -R src/fonts dist/fonts",
|
|
57
59
|
"test": "vitest run",
|
|
58
60
|
"test:watch": "vitest",
|
|
59
61
|
"typecheck": "vue-tsc -p tsconfig.app.json --noEmit"
|