alpine-sxo 0.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.
- package/README.md +9 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +210 -0
- package/package.json +54 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("@sxo/ui");function h(t){t.store("sxo",{theme:i.defaultTheme,setTheme(e){this.theme={...this.theme,...e}}}),t.directive("sxo-theme",(e,{expression:s},{evaluate:r})=>{const o=r(s);e.style.setProperty("--sxo-primary",o.color.primary[500])})}module.exports=h;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (Alpine: any): void;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defaultTheme as s } from "@sxo/ui";
|
|
2
|
+
function i(t) {
|
|
3
|
+
t.store("sxo", {
|
|
4
|
+
theme: s,
|
|
5
|
+
setTheme(e) {
|
|
6
|
+
this.theme = { ...this.theme, ...e };
|
|
7
|
+
}
|
|
8
|
+
}), t.directive("sxo-theme", (e, { expression: o }, { evaluate: r }) => {
|
|
9
|
+
const m = r(o);
|
|
10
|
+
e.style.setProperty("--sxo-primary", m.color.primary[500]);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
i as default
|
|
15
|
+
};
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
color: {
|
|
3
|
+
white: "#ffffff",
|
|
4
|
+
black: "#000000",
|
|
5
|
+
primary: {
|
|
6
|
+
DEFAULT: "#000000",
|
|
7
|
+
foreground: "#FFFFFF"
|
|
8
|
+
},
|
|
9
|
+
secondary: {
|
|
10
|
+
DEFAULT: "#fafafa",
|
|
11
|
+
// Light Gray for secondary backgrounds
|
|
12
|
+
foreground: "#000000"
|
|
13
|
+
},
|
|
14
|
+
accent: {
|
|
15
|
+
DEFAULT: "#0070f3",
|
|
16
|
+
// Vercel Blue
|
|
17
|
+
neon: "#7928ca",
|
|
18
|
+
// Vercel Purple
|
|
19
|
+
vivid: "#ff0080"
|
|
20
|
+
// Vercel Pink
|
|
21
|
+
},
|
|
22
|
+
success: {
|
|
23
|
+
DEFAULT: "#0070f3"
|
|
24
|
+
// Blue is often used for success in some contexts, but let's stick to standard or Vercel cyan
|
|
25
|
+
},
|
|
26
|
+
warning: {
|
|
27
|
+
DEFAULT: "#f5a623"
|
|
28
|
+
},
|
|
29
|
+
error: {
|
|
30
|
+
DEFAULT: "#ff0000"
|
|
31
|
+
// Red
|
|
32
|
+
},
|
|
33
|
+
info: {
|
|
34
|
+
DEFAULT: "#0070f3"
|
|
35
|
+
},
|
|
36
|
+
neutral: {
|
|
37
|
+
0: "#FFFFFF",
|
|
38
|
+
50: "#fafafa",
|
|
39
|
+
100: "#eaeaea",
|
|
40
|
+
200: "#999999",
|
|
41
|
+
300: "#888888",
|
|
42
|
+
400: "#666666",
|
|
43
|
+
500: "#444444",
|
|
44
|
+
600: "#333333",
|
|
45
|
+
700: "#111111",
|
|
46
|
+
800: "#000000",
|
|
47
|
+
900: "#000000",
|
|
48
|
+
950: "#000000",
|
|
49
|
+
1e3: "#000000"
|
|
50
|
+
},
|
|
51
|
+
background: {
|
|
52
|
+
primary: "#FFFFFF",
|
|
53
|
+
secondary: "#fafafa",
|
|
54
|
+
inverse: "#000000"
|
|
55
|
+
},
|
|
56
|
+
text: {
|
|
57
|
+
primary: "#000000",
|
|
58
|
+
secondary: "#444444",
|
|
59
|
+
muted: "#666666",
|
|
60
|
+
inverse: "#FFFFFF"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
spacing: {
|
|
64
|
+
0: "0px",
|
|
65
|
+
1: "4px",
|
|
66
|
+
2: "8px",
|
|
67
|
+
3: "12px",
|
|
68
|
+
4: "16px",
|
|
69
|
+
5: "20px",
|
|
70
|
+
6: "24px",
|
|
71
|
+
8: "32px",
|
|
72
|
+
10: "40px",
|
|
73
|
+
12: "48px",
|
|
74
|
+
16: "64px",
|
|
75
|
+
20: "80px",
|
|
76
|
+
24: "96px",
|
|
77
|
+
32: "128px",
|
|
78
|
+
40: "160px",
|
|
79
|
+
48: "192px",
|
|
80
|
+
56: "224px",
|
|
81
|
+
64: "256px"
|
|
82
|
+
},
|
|
83
|
+
borderRadius: {
|
|
84
|
+
none: "0px",
|
|
85
|
+
xs: "2px",
|
|
86
|
+
sm: "4px",
|
|
87
|
+
md: "6px",
|
|
88
|
+
lg: "8px",
|
|
89
|
+
xl: "12px",
|
|
90
|
+
full: "9999px"
|
|
91
|
+
},
|
|
92
|
+
boxShadow: {
|
|
93
|
+
none: "none",
|
|
94
|
+
sm: "0 2px 4px rgba(0,0,0,0.1)",
|
|
95
|
+
DEFAULT: "0 5px 10px rgba(0,0,0,0.12)",
|
|
96
|
+
md: "0 8px 30px rgba(0,0,0,0.12)",
|
|
97
|
+
lg: "0 30px 60px rgba(0,0,0,0.12)",
|
|
98
|
+
xl: "0 30px 60px rgba(0,0,0,0.12)",
|
|
99
|
+
hard: "0 0 0 1px rgba(0,0,0,0.1)",
|
|
100
|
+
"hard-accent": "0 0 0 2px var(--sxo-accent-primary)"
|
|
101
|
+
},
|
|
102
|
+
typography: {
|
|
103
|
+
fontSize: {
|
|
104
|
+
xs: "12px",
|
|
105
|
+
sm: "14px",
|
|
106
|
+
base: "16px",
|
|
107
|
+
lg: "18px",
|
|
108
|
+
xl: "20px",
|
|
109
|
+
"2xl": "24px",
|
|
110
|
+
"3xl": "32px",
|
|
111
|
+
"4xl": "48px",
|
|
112
|
+
"5xl": "64px",
|
|
113
|
+
"6xl": "96px",
|
|
114
|
+
"7xl": "128px"
|
|
115
|
+
},
|
|
116
|
+
fontWeight: {
|
|
117
|
+
thin: "100",
|
|
118
|
+
light: "300",
|
|
119
|
+
normal: "400",
|
|
120
|
+
medium: "500",
|
|
121
|
+
semibold: "600",
|
|
122
|
+
bold: "700",
|
|
123
|
+
black: "900"
|
|
124
|
+
},
|
|
125
|
+
lineHeight: {
|
|
126
|
+
none: "1",
|
|
127
|
+
tight: "1.2",
|
|
128
|
+
snug: "1.3",
|
|
129
|
+
normal: "1.5",
|
|
130
|
+
relaxed: "1.625",
|
|
131
|
+
loose: "2"
|
|
132
|
+
},
|
|
133
|
+
fontFamily: {
|
|
134
|
+
sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
|
|
135
|
+
serif: '"Playfair Display", Georgia, serif',
|
|
136
|
+
mono: 'Menlo, Monaco, Lucida Console, "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace'
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
breakpoints: {
|
|
140
|
+
sm: "640px",
|
|
141
|
+
md: "768px",
|
|
142
|
+
lg: "1024px",
|
|
143
|
+
xl: "1280px",
|
|
144
|
+
"2xl": "1536px"
|
|
145
|
+
},
|
|
146
|
+
transition: {
|
|
147
|
+
DEFAULT: "150ms ease",
|
|
148
|
+
fast: "100ms ease",
|
|
149
|
+
slow: "300ms ease"
|
|
150
|
+
},
|
|
151
|
+
animation: {
|
|
152
|
+
"fade-in": "fade-in 0.2s ease-out",
|
|
153
|
+
"slide-in-top": "slide-in-top 0.2s ease-out",
|
|
154
|
+
"slide-in-bottom": "slide-in-bottom 0.2s ease-out",
|
|
155
|
+
"scale-in": "scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
156
|
+
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
|
|
157
|
+
bounce: "bounce 1s infinite",
|
|
158
|
+
spin: "spin 1s linear infinite",
|
|
159
|
+
ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
|
|
160
|
+
shake: "shake 0.5s cubic-bezier(.36,.07,.19,.97) both",
|
|
161
|
+
"zoom-in": "zoom-in 0.2s ease-out",
|
|
162
|
+
"zoom-out": "zoom-out 0.2s ease-out"
|
|
163
|
+
},
|
|
164
|
+
modes: {
|
|
165
|
+
dark: {
|
|
166
|
+
background: {
|
|
167
|
+
primary: "#000000",
|
|
168
|
+
secondary: "#111111",
|
|
169
|
+
inverse: "#FFFFFF"
|
|
170
|
+
},
|
|
171
|
+
text: {
|
|
172
|
+
primary: "#FFFFFF",
|
|
173
|
+
secondary: "#a1a1aa",
|
|
174
|
+
muted: "#71717a",
|
|
175
|
+
inverse: "#000000"
|
|
176
|
+
},
|
|
177
|
+
neutral: {
|
|
178
|
+
0: "#000000",
|
|
179
|
+
50: "#111111",
|
|
180
|
+
100: "#333333",
|
|
181
|
+
200: "#444444",
|
|
182
|
+
300: "#666666",
|
|
183
|
+
400: "#888888",
|
|
184
|
+
500: "#999999",
|
|
185
|
+
600: "#aaaaaa",
|
|
186
|
+
700: "#cccccc",
|
|
187
|
+
800: "#eaeaea",
|
|
188
|
+
900: "#fafafa",
|
|
189
|
+
950: "#ffffff",
|
|
190
|
+
1e3: "#ffffff"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}, r = {
|
|
195
|
+
tokens: i
|
|
196
|
+
};
|
|
197
|
+
function p(a) {
|
|
198
|
+
a.store("sxo", {
|
|
199
|
+
theme: r,
|
|
200
|
+
setTheme(e) {
|
|
201
|
+
this.theme = { ...this.theme, ...e };
|
|
202
|
+
}
|
|
203
|
+
}), a.directive("sxo-theme", (e, { expression: o }, { evaluate: n }) => {
|
|
204
|
+
const s = n(o);
|
|
205
|
+
e.style.setProperty("--sxo-primary", s.color.primary[500]);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
export {
|
|
209
|
+
p as default
|
|
210
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alpine-sxo",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Alpine.js adaptor for SXO Design System.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sxo",
|
|
7
|
+
"design-system",
|
|
8
|
+
"ui",
|
|
9
|
+
"components"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "sxo team",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@sxo/ui": "0.0.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"alpinejs": "^3.0.0"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/doki-land/sxo-engine.git",
|
|
28
|
+
"directory": "adaptors/alpine-sxo"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/doki-land/sxo-engine/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/doki-land/sxo-engine/tree/main/adaptors/alpine-sxo#readme",
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"require": "./dist/index.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"vite": "^5.0.0",
|
|
46
|
+
"vite-plugin-dts": "^4.0.0",
|
|
47
|
+
"typescript": "^5.0.0"
|
|
48
|
+
},
|
|
49
|
+
"type": "module",
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "vite build",
|
|
52
|
+
"dev": "vite build --watch"
|
|
53
|
+
}
|
|
54
|
+
}
|