@zhama/a2ui 0.10.4 → 0.11.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 +179 -70
- package/dist/{a2ui-CnaCcq4c.d.ts → a2ui-CZYqbeoz.d.ts} +2 -1
- package/dist/{a2ui-vyxwZCoa.d.cts → a2ui-Dpl-E-Do.d.cts} +2 -1
- package/dist/context/index.cjs +702 -1
- package/dist/context/index.d.cts +35 -2
- package/dist/context/index.d.ts +35 -2
- package/dist/context/index.js +702 -1
- package/dist/data/index.cjs +2 -2
- package/dist/data/index.d.cts +3 -2
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +2 -2
- package/dist/events/index.d.cts +3 -2
- package/dist/events/index.d.ts +3 -2
- package/dist/index-BvhdLkQ7.d.ts +111 -0
- package/dist/{index-DCv59E9u.d.cts → index-CWQNUF1X.d.ts} +65 -20
- package/dist/index-Ccel8ysN.d.cts +111 -0
- package/dist/index-CfG_a073.d.cts +143 -0
- package/dist/{index-CEWReOmS.d.ts → index-DF2gGMk6.d.ts} +1 -1
- package/dist/index-DZnukf8z.d.ts +143 -0
- package/dist/{index-CfuPxsd1.d.cts → index-DfVLIScc.d.cts} +1 -1
- package/dist/{index-DKh6MRhF.d.cts → index-K0C1W74m.d.ts} +26 -15
- package/dist/{index-BJe-XUR4.d.ts → index-PGBpNFSS.d.cts} +26 -15
- package/dist/{index-BWAU7Xp2.d.ts → index-nNr2JOQb.d.cts} +65 -20
- package/dist/index.cjs +702 -2
- package/dist/index.d.cts +71 -8
- package/dist/index.d.ts +71 -8
- package/dist/index.js +702 -2
- package/dist/styles/index.cjs +702 -1
- package/dist/styles/index.d.cts +3 -2
- package/dist/styles/index.d.ts +3 -2
- package/dist/styles/index.js +702 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -0
- package/dist/{types-CtrG7MJe.d.cts → types-Csi2jaoN.d.cts} +122 -178
- package/dist/{types-CtrG7MJe.d.ts → types-Csi2jaoN.d.ts} +122 -178
- package/dist/ui/index.cjs +2 -2
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +2 -2
- package/package.json +3 -19
- package/dist/index-Bgqafemj.d.ts +0 -106
- package/dist/index-BltkjFKi.d.ts +0 -67
- package/dist/index-Bzqwwd1k.d.cts +0 -106
- package/dist/index-CLn74O53.d.cts +0 -67
- package/dist/styles/a2ui-variables.css +0 -106
- package/dist/styles/a2ui.css +0 -143
- package/tailwind.preset.js +0 -326
package/dist/styles/index.js
CHANGED
|
@@ -1 +1,702 @@
|
|
|
1
|
-
function
|
|
1
|
+
function j(){let e=[];for(let t=0;t<=100;t+=5){let r=t/100;e.push(`.a2-opacity-${t} { opacity: ${r}; }`);}for(let t=0;t<=100;t+=5){let r=t/100;e.push(`.a2-ho-${t}:hover { opacity: ${r}; }`);}return e.push(`
|
|
2
|
+
.a2-cursor-auto { cursor: auto; }
|
|
3
|
+
.a2-cursor-default { cursor: default; }
|
|
4
|
+
.a2-cursor-pointer { cursor: pointer; }
|
|
5
|
+
.a2-cursor-wait { cursor: wait; }
|
|
6
|
+
.a2-cursor-text { cursor: text; }
|
|
7
|
+
.a2-cursor-move { cursor: move; }
|
|
8
|
+
.a2-cursor-help { cursor: help; }
|
|
9
|
+
.a2-cursor-not-allowed { cursor: not-allowed; }
|
|
10
|
+
.a2-cursor-none { cursor: none; }
|
|
11
|
+
.a2-cursor-grab { cursor: grab; }
|
|
12
|
+
.a2-cursor-grabbing { cursor: grabbing; }
|
|
13
|
+
`),e.push(`
|
|
14
|
+
.a2-pe-none { pointer-events: none; }
|
|
15
|
+
.a2-pe-auto { pointer-events: auto; }
|
|
16
|
+
`),e.push(`
|
|
17
|
+
.a2-select-none { user-select: none; }
|
|
18
|
+
.a2-select-text { user-select: text; }
|
|
19
|
+
.a2-select-all { user-select: all; }
|
|
20
|
+
.a2-select-auto { user-select: auto; }
|
|
21
|
+
`),e.push(`
|
|
22
|
+
.a2-visible { visibility: visible; }
|
|
23
|
+
.a2-invisible { visibility: hidden; }
|
|
24
|
+
.a2-collapse { visibility: collapse; }
|
|
25
|
+
`),e.push(`
|
|
26
|
+
.a2-transition-none { transition-property: none; }
|
|
27
|
+
.a2-transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
28
|
+
.a2-transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
29
|
+
.a2-transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
30
|
+
.a2-transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
31
|
+
.a2-transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
32
|
+
.a2-transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
|
|
33
|
+
`),e.push(`
|
|
34
|
+
.a2-duration-75 { transition-duration: 75ms; }
|
|
35
|
+
.a2-duration-100 { transition-duration: 100ms; }
|
|
36
|
+
.a2-duration-150 { transition-duration: 150ms; }
|
|
37
|
+
.a2-duration-200 { transition-duration: 200ms; }
|
|
38
|
+
.a2-duration-300 { transition-duration: 300ms; }
|
|
39
|
+
.a2-duration-500 { transition-duration: 500ms; }
|
|
40
|
+
.a2-duration-700 { transition-duration: 700ms; }
|
|
41
|
+
.a2-duration-1000 { transition-duration: 1000ms; }
|
|
42
|
+
`),e.push(`
|
|
43
|
+
.a2-ease-linear { transition-timing-function: linear; }
|
|
44
|
+
.a2-ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
|
|
45
|
+
.a2-ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
|
|
46
|
+
.a2-ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
|
|
47
|
+
`),e.push(`
|
|
48
|
+
.a2-scale-0 { transform: scale(0); }
|
|
49
|
+
.a2-scale-50 { transform: scale(0.5); }
|
|
50
|
+
.a2-scale-75 { transform: scale(0.75); }
|
|
51
|
+
.a2-scale-90 { transform: scale(0.9); }
|
|
52
|
+
.a2-scale-95 { transform: scale(0.95); }
|
|
53
|
+
.a2-scale-100 { transform: scale(1); }
|
|
54
|
+
.a2-scale-105 { transform: scale(1.05); }
|
|
55
|
+
.a2-scale-110 { transform: scale(1.1); }
|
|
56
|
+
.a2-scale-125 { transform: scale(1.25); }
|
|
57
|
+
.a2-scale-150 { transform: scale(1.5); }
|
|
58
|
+
|
|
59
|
+
.a2-rotate-0 { transform: rotate(0deg); }
|
|
60
|
+
.a2-rotate-1 { transform: rotate(1deg); }
|
|
61
|
+
.a2-rotate-2 { transform: rotate(2deg); }
|
|
62
|
+
.a2-rotate-3 { transform: rotate(3deg); }
|
|
63
|
+
.a2-rotate-6 { transform: rotate(6deg); }
|
|
64
|
+
.a2-rotate-12 { transform: rotate(12deg); }
|
|
65
|
+
.a2-rotate-45 { transform: rotate(45deg); }
|
|
66
|
+
.a2-rotate-90 { transform: rotate(90deg); }
|
|
67
|
+
.a2-rotate-180 { transform: rotate(180deg); }
|
|
68
|
+
|
|
69
|
+
.a2-translate-x-0 { transform: translateX(0); }
|
|
70
|
+
.a2-translate-y-0 { transform: translateY(0); }
|
|
71
|
+
.a2--translate-y-1 { transform: translateY(-4px); }
|
|
72
|
+
.a2--translate-y-2 { transform: translateY(-8px); }
|
|
73
|
+
.a2--translate-y-4 { transform: translateY(-16px); }
|
|
74
|
+
.a2-translate-y-1 { transform: translateY(4px); }
|
|
75
|
+
.a2-translate-y-2 { transform: translateY(8px); }
|
|
76
|
+
.a2-translate-y-4 { transform: translateY(16px); }
|
|
77
|
+
`),e.push(`
|
|
78
|
+
.a2-hover-scale-105:hover { transform: scale(1.05); }
|
|
79
|
+
.a2-hover-scale-110:hover { transform: scale(1.1); }
|
|
80
|
+
.a2-hover--translate-y-1:hover { transform: translateY(-4px); }
|
|
81
|
+
.a2-hover--translate-y-2:hover { transform: translateY(-8px); }
|
|
82
|
+
`),e.push(`
|
|
83
|
+
.a2-active-scale-95:active { transform: scale(0.95); }
|
|
84
|
+
.a2-active-scale-90:active { transform: scale(0.9); }
|
|
85
|
+
`),e.push(`
|
|
86
|
+
.a2-shadow-none { box-shadow: 0 0 #0000; }
|
|
87
|
+
.a2-shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
|
|
88
|
+
.a2-shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
|
|
89
|
+
.a2-shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
|
|
90
|
+
.a2-shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
|
|
91
|
+
.a2-shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
|
|
92
|
+
.a2-shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
|
|
93
|
+
.a2-shadow-inner { box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); }
|
|
94
|
+
`),e.push(`
|
|
95
|
+
.a2-hover-shadow:hover { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
|
|
96
|
+
.a2-hover-shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
|
|
97
|
+
.a2-hover-shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
|
|
98
|
+
`),e.push(`
|
|
99
|
+
.a2-blur-none { backdrop-filter: none; }
|
|
100
|
+
.a2-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
|
|
101
|
+
.a2-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
|
|
102
|
+
.a2-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
|
|
103
|
+
.a2-blur-lg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
|
|
104
|
+
.a2-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
|
|
105
|
+
.a2-blur-2xl { backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
|
|
106
|
+
.a2-blur-3xl { backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px); }
|
|
107
|
+
`),e.push(`
|
|
108
|
+
.a2-focus-visible-ring:focus-visible {
|
|
109
|
+
outline: 2px solid var(--p-50, currentColor);
|
|
110
|
+
outline-offset: 2px;
|
|
111
|
+
}
|
|
112
|
+
.a2-focus-visible-none:focus-visible {
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
`),e.push(`
|
|
116
|
+
.a2-disabled:disabled,
|
|
117
|
+
.a2-disabled[disabled] {
|
|
118
|
+
opacity: 0.5;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
`),e.push(`
|
|
123
|
+
.a2-scrollbar-none {
|
|
124
|
+
scrollbar-width: none;
|
|
125
|
+
-ms-overflow-style: none;
|
|
126
|
+
}
|
|
127
|
+
.a2-scrollbar-none::-webkit-scrollbar {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
.a2-scrollbar-thin {
|
|
131
|
+
scrollbar-width: thin;
|
|
132
|
+
}
|
|
133
|
+
`),e.join(`
|
|
134
|
+
`)}var b=j();var u=4,f=[0,5,10,15,20,25,30,35,40,50,60,70,80,90,95,98,99,100],k=["p","s","t","n","nv","e"];function s(e){return `--${e.replace(/([a-z]+)(\d+)/,"$1-$2")}`}function v(e){let t=e.match(/^([a-z]+)(\d+)$/);if(!t)return e;let r=t[1],a=t[2];if(!r||!a)return e;let n=100-parseInt(a,10),i=f.reduce((c,l)=>Math.abs(l-n)<Math.abs(c-n)?l:c);return `${r}${i}`}function z(){let e=[];for(let t=0;t<=24;t++)e.push(`.a2-br-${t} { border-radius: ${t*4}px; }`);e.push(`
|
|
135
|
+
.a2-br-none { border-radius: 0; }
|
|
136
|
+
.a2-br-sm { border-radius: 2px; }
|
|
137
|
+
.a2-br-md { border-radius: 6px; }
|
|
138
|
+
.a2-br-lg { border-radius: 8px; }
|
|
139
|
+
.a2-br-xl { border-radius: 12px; }
|
|
140
|
+
.a2-br-2xl { border-radius: 16px; }
|
|
141
|
+
.a2-br-3xl { border-radius: 24px; }
|
|
142
|
+
.a2-br-full { border-radius: 9999px; }
|
|
143
|
+
.a2-br-50pc { border-radius: 50%; }
|
|
144
|
+
`);for(let t=0;t<=8;t++){let r=t*4;e.push(`
|
|
145
|
+
.a2-br-t-${t} { border-top-left-radius: ${r}px; border-top-right-radius: ${r}px; }
|
|
146
|
+
.a2-br-r-${t} { border-top-right-radius: ${r}px; border-bottom-right-radius: ${r}px; }
|
|
147
|
+
.a2-br-b-${t} { border-bottom-left-radius: ${r}px; border-bottom-right-radius: ${r}px; }
|
|
148
|
+
.a2-br-l-${t} { border-top-left-radius: ${r}px; border-bottom-left-radius: ${r}px; }
|
|
149
|
+
.a2-br-tl-${t} { border-top-left-radius: ${r}px; }
|
|
150
|
+
.a2-br-tr-${t} { border-top-right-radius: ${r}px; }
|
|
151
|
+
.a2-br-bl-${t} { border-bottom-left-radius: ${r}px; }
|
|
152
|
+
.a2-br-br-${t} { border-bottom-right-radius: ${r}px; }
|
|
153
|
+
`);}for(let t=0;t<=8;t++)e.push(`
|
|
154
|
+
.a2-bw-${t} { border-width: ${t}px; }
|
|
155
|
+
.a2-bw-t-${t} { border-top-width: ${t}px; }
|
|
156
|
+
.a2-bw-r-${t} { border-right-width: ${t}px; }
|
|
157
|
+
.a2-bw-b-${t} { border-bottom-width: ${t}px; }
|
|
158
|
+
.a2-bw-l-${t} { border-left-width: ${t}px; }
|
|
159
|
+
.a2-bw-x-${t} { border-left-width: ${t}px; border-right-width: ${t}px; }
|
|
160
|
+
.a2-bw-y-${t} { border-top-width: ${t}px; border-bottom-width: ${t}px; }
|
|
161
|
+
`);return e.push(`
|
|
162
|
+
.a2-bs-none { border-style: none; }
|
|
163
|
+
.a2-bs-solid { border-style: solid; }
|
|
164
|
+
.a2-bs-dashed { border-style: dashed; }
|
|
165
|
+
.a2-bs-dotted { border-style: dotted; }
|
|
166
|
+
.a2-bs-double { border-style: double; }
|
|
167
|
+
.a2-bs-hidden { border-style: hidden; }
|
|
168
|
+
`),e.push(`
|
|
169
|
+
.a2-border { border-width: 1px; border-style: solid; }
|
|
170
|
+
.a2-border-t { border-top-width: 1px; border-top-style: solid; }
|
|
171
|
+
.a2-border-r { border-right-width: 1px; border-right-style: solid; }
|
|
172
|
+
.a2-border-b { border-bottom-width: 1px; border-bottom-style: solid; }
|
|
173
|
+
.a2-border-l { border-left-width: 1px; border-left-style: solid; }
|
|
174
|
+
.a2-border-x { border-left-width: 1px; border-right-width: 1px; border-left-style: solid; border-right-style: solid; }
|
|
175
|
+
.a2-border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
|
|
176
|
+
.a2-border-none { border: none; }
|
|
177
|
+
`),e.push(`
|
|
178
|
+
.a2-divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
|
|
179
|
+
.a2-divide-x > * + * { border-left-width: 1px; border-left-style: solid; }
|
|
180
|
+
`),e.push(`
|
|
181
|
+
.a2-outline-none { outline: 2px solid transparent; outline-offset: 2px; }
|
|
182
|
+
.a2-outline { outline-style: solid; }
|
|
183
|
+
.a2-outline-dashed { outline-style: dashed; }
|
|
184
|
+
.a2-outline-dotted { outline-style: dotted; }
|
|
185
|
+
.a2-outline-double { outline-style: double; }
|
|
186
|
+
`),e.push(`
|
|
187
|
+
.a2-ring-0 { box-shadow: 0 0 0 0px var(--a2-ring-color, currentColor); }
|
|
188
|
+
.a2-ring-1 { box-shadow: 0 0 0 1px var(--a2-ring-color, currentColor); }
|
|
189
|
+
.a2-ring-2 { box-shadow: 0 0 0 2px var(--a2-ring-color, currentColor); }
|
|
190
|
+
.a2-ring-4 { box-shadow: 0 0 0 4px var(--a2-ring-color, currentColor); }
|
|
191
|
+
.a2-ring-inset { box-shadow: inset 0 0 0 2px var(--a2-ring-color, currentColor); }
|
|
192
|
+
.a2-ring-primary { --a2-ring-color: light-dark(var(--p-35), var(--p-60)); }
|
|
193
|
+
`),e.join(`
|
|
194
|
+
`)}var h=z();function T(e){let t=[];for(let r of f){let a=`${e}${r}`,o=v(a);t.push(`.a2-bc-${a} { border-color: light-dark(var(${s(a)}), var(${s(o)})); }`),t.push(`.a2-bgc-${a} { background-color: light-dark(var(${s(a)}), var(${s(o)})); }`),t.push(`.a2-bbgc-${a}::backdrop { background-color: light-dark(var(${s(a)}), var(${s(o)})); }`);for(let n=1;n<=9;n++){let i=n*10;t.push(`
|
|
195
|
+
.a2-bgc-${a}_${i} {
|
|
196
|
+
background-color: light-dark(
|
|
197
|
+
oklch(from var(${s(a)}) l c h / ${n/10}),
|
|
198
|
+
oklch(from var(${s(o)}) l c h / ${n/10})
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
.a2-bbgc-${a}_${i}::backdrop {
|
|
202
|
+
background-color: light-dark(
|
|
203
|
+
oklch(from var(${s(a)}) l c h / ${n/10}),
|
|
204
|
+
oklch(from var(${s(o)}) l c h / ${n/10})
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
`);}t.push(`.a2-c-${a} { color: light-dark(var(${s(a)}), var(${s(o)})); }`);}return t.join(`
|
|
208
|
+
`)}function R(){let e=[];e.push(`
|
|
209
|
+
:root, :host, .a2ui-root {
|
|
210
|
+
/* Primary */
|
|
211
|
+
--p-0: oklch(100% 0 0);
|
|
212
|
+
--p-5: oklch(97.8% 0.014 238.66);
|
|
213
|
+
--p-10: oklch(95.3% 0.026 236.62);
|
|
214
|
+
--p-15: oklch(92.8% 0.039 235.74);
|
|
215
|
+
--p-20: oklch(90.3% 0.052 235.13);
|
|
216
|
+
--p-25: oklch(87.8% 0.064 234.68);
|
|
217
|
+
--p-30: oklch(85.3% 0.076 234.33);
|
|
218
|
+
--p-35: oklch(78.8% 0.108 233.32);
|
|
219
|
+
--p-40: oklch(72.3% 0.139 232.51);
|
|
220
|
+
--p-50: oklch(64.8% 0.161 232.01);
|
|
221
|
+
--p-60: oklch(57.3% 0.174 231.57);
|
|
222
|
+
--p-70: oklch(49.8% 0.171 231.41);
|
|
223
|
+
--p-80: oklch(42.3% 0.154 231.36);
|
|
224
|
+
--p-90: oklch(34.8% 0.128 231.43);
|
|
225
|
+
--p-95: oklch(29.8% 0.105 231.5);
|
|
226
|
+
--p-98: oklch(26.3% 0.088 231.55);
|
|
227
|
+
--p-99: oklch(24.8% 0.079 231.58);
|
|
228
|
+
--p-100: oklch(23.3% 0.071 231.6);
|
|
229
|
+
|
|
230
|
+
/* Secondary */
|
|
231
|
+
--s-0: oklch(100% 0 0);
|
|
232
|
+
--s-5: oklch(97.8% 0.012 285);
|
|
233
|
+
--s-10: oklch(95.3% 0.024 285);
|
|
234
|
+
--s-15: oklch(92.8% 0.036 285);
|
|
235
|
+
--s-20: oklch(90.3% 0.048 285);
|
|
236
|
+
--s-25: oklch(87.8% 0.06 285);
|
|
237
|
+
--s-30: oklch(85.3% 0.072 285);
|
|
238
|
+
--s-35: oklch(78.8% 0.096 285);
|
|
239
|
+
--s-40: oklch(72.3% 0.12 285);
|
|
240
|
+
--s-50: oklch(64.8% 0.144 285);
|
|
241
|
+
--s-60: oklch(57.3% 0.156 285);
|
|
242
|
+
--s-70: oklch(49.8% 0.156 285);
|
|
243
|
+
--s-80: oklch(42.3% 0.14 285);
|
|
244
|
+
--s-90: oklch(34.8% 0.116 285);
|
|
245
|
+
--s-95: oklch(29.8% 0.096 285);
|
|
246
|
+
--s-98: oklch(26.3% 0.08 285);
|
|
247
|
+
--s-99: oklch(24.8% 0.072 285);
|
|
248
|
+
--s-100: oklch(23.3% 0.064 285);
|
|
249
|
+
|
|
250
|
+
/* Tertiary */
|
|
251
|
+
--t-0: oklch(100% 0 0);
|
|
252
|
+
--t-5: oklch(97.8% 0.012 160);
|
|
253
|
+
--t-10: oklch(95.3% 0.024 160);
|
|
254
|
+
--t-15: oklch(92.8% 0.036 160);
|
|
255
|
+
--t-20: oklch(90.3% 0.048 160);
|
|
256
|
+
--t-25: oklch(87.8% 0.06 160);
|
|
257
|
+
--t-30: oklch(85.3% 0.072 160);
|
|
258
|
+
--t-35: oklch(78.8% 0.096 160);
|
|
259
|
+
--t-40: oklch(72.3% 0.12 160);
|
|
260
|
+
--t-50: oklch(64.8% 0.144 160);
|
|
261
|
+
--t-60: oklch(57.3% 0.156 160);
|
|
262
|
+
--t-70: oklch(49.8% 0.156 160);
|
|
263
|
+
--t-80: oklch(42.3% 0.14 160);
|
|
264
|
+
--t-90: oklch(34.8% 0.116 160);
|
|
265
|
+
--t-95: oklch(29.8% 0.096 160);
|
|
266
|
+
--t-98: oklch(26.3% 0.08 160);
|
|
267
|
+
--t-99: oklch(24.8% 0.072 160);
|
|
268
|
+
--t-100: oklch(23.3% 0.064 160);
|
|
269
|
+
|
|
270
|
+
/* Neutral */
|
|
271
|
+
--n-0: oklch(100% 0 0);
|
|
272
|
+
--n-5: oklch(97% 0 0);
|
|
273
|
+
--n-10: oklch(94% 0 0);
|
|
274
|
+
--n-15: oklch(91% 0 0);
|
|
275
|
+
--n-20: oklch(88% 0 0);
|
|
276
|
+
--n-25: oklch(85% 0 0);
|
|
277
|
+
--n-30: oklch(82% 0 0);
|
|
278
|
+
--n-35: oklch(75% 0 0);
|
|
279
|
+
--n-40: oklch(68% 0 0);
|
|
280
|
+
--n-50: oklch(58% 0 0);
|
|
281
|
+
--n-60: oklch(48% 0 0);
|
|
282
|
+
--n-70: oklch(38% 0 0);
|
|
283
|
+
--n-80: oklch(30% 0 0);
|
|
284
|
+
--n-90: oklch(22% 0 0);
|
|
285
|
+
--n-95: oklch(18% 0 0);
|
|
286
|
+
--n-98: oklch(15% 0 0);
|
|
287
|
+
--n-99: oklch(13% 0 0);
|
|
288
|
+
--n-100: oklch(11% 0 0);
|
|
289
|
+
|
|
290
|
+
/* Neutral Variant */
|
|
291
|
+
--nv-0: oklch(100% 0 0);
|
|
292
|
+
--nv-5: oklch(97% 0.006 240);
|
|
293
|
+
--nv-10: oklch(94% 0.012 240);
|
|
294
|
+
--nv-15: oklch(91% 0.018 240);
|
|
295
|
+
--nv-20: oklch(88% 0.024 240);
|
|
296
|
+
--nv-25: oklch(85% 0.03 240);
|
|
297
|
+
--nv-30: oklch(82% 0.036 240);
|
|
298
|
+
--nv-35: oklch(75% 0.048 240);
|
|
299
|
+
--nv-40: oklch(68% 0.06 240);
|
|
300
|
+
--nv-50: oklch(58% 0.072 240);
|
|
301
|
+
--nv-60: oklch(48% 0.078 240);
|
|
302
|
+
--nv-70: oklch(38% 0.078 240);
|
|
303
|
+
--nv-80: oklch(30% 0.07 240);
|
|
304
|
+
--nv-90: oklch(22% 0.058 240);
|
|
305
|
+
--nv-95: oklch(18% 0.048 240);
|
|
306
|
+
--nv-98: oklch(15% 0.04 240);
|
|
307
|
+
--nv-99: oklch(13% 0.036 240);
|
|
308
|
+
--nv-100: oklch(11% 0.032 240);
|
|
309
|
+
|
|
310
|
+
/* Error */
|
|
311
|
+
--e-0: oklch(100% 0 0);
|
|
312
|
+
--e-5: oklch(97.8% 0.016 25);
|
|
313
|
+
--e-10: oklch(95.3% 0.032 25);
|
|
314
|
+
--e-15: oklch(92.8% 0.048 25);
|
|
315
|
+
--e-20: oklch(90.3% 0.064 25);
|
|
316
|
+
--e-25: oklch(87.8% 0.08 25);
|
|
317
|
+
--e-30: oklch(85.3% 0.096 25);
|
|
318
|
+
--e-35: oklch(78.8% 0.128 25);
|
|
319
|
+
--e-40: oklch(72.3% 0.16 25);
|
|
320
|
+
--e-50: oklch(64.8% 0.192 25);
|
|
321
|
+
--e-60: oklch(57.3% 0.208 25);
|
|
322
|
+
--e-70: oklch(49.8% 0.208 25);
|
|
323
|
+
--e-80: oklch(42.3% 0.187 25);
|
|
324
|
+
--e-90: oklch(34.8% 0.155 25);
|
|
325
|
+
--e-95: oklch(29.8% 0.128 25);
|
|
326
|
+
--e-98: oklch(26.3% 0.107 25);
|
|
327
|
+
--e-99: oklch(24.8% 0.096 25);
|
|
328
|
+
--e-100: oklch(23.3% 0.086 25);
|
|
329
|
+
|
|
330
|
+
/* Color scheme */
|
|
331
|
+
color-scheme: var(--a2-color-scheme, light dark);
|
|
332
|
+
}
|
|
333
|
+
`);for(let t of k)e.push(T(t));return e.push(`
|
|
334
|
+
.a2-bgc-transparent { background-color: transparent; }
|
|
335
|
+
.a2-c-inherit { color: inherit; }
|
|
336
|
+
.a2-c-current { color: currentColor; }
|
|
337
|
+
.a2-bc-transparent { border-color: transparent; }
|
|
338
|
+
.a2-bc-current { border-color: currentColor; }
|
|
339
|
+
`),e.join(`
|
|
340
|
+
`)}var x=R();function C(){return `
|
|
341
|
+
/* Material Icons Support */
|
|
342
|
+
.a2-icon {
|
|
343
|
+
font-family: 'Material Symbols Outlined', 'Material Icons', sans-serif;
|
|
344
|
+
font-weight: normal;
|
|
345
|
+
font-style: normal;
|
|
346
|
+
font-size: 24px;
|
|
347
|
+
line-height: 1;
|
|
348
|
+
letter-spacing: normal;
|
|
349
|
+
text-transform: none;
|
|
350
|
+
display: inline-block;
|
|
351
|
+
white-space: nowrap;
|
|
352
|
+
word-wrap: normal;
|
|
353
|
+
direction: ltr;
|
|
354
|
+
-webkit-font-feature-settings: 'liga';
|
|
355
|
+
-webkit-font-smoothing: antialiased;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.a2-icon-sm { font-size: 18px; }
|
|
359
|
+
.a2-icon-md { font-size: 24px; }
|
|
360
|
+
.a2-icon-lg { font-size: 32px; }
|
|
361
|
+
.a2-icon-xl { font-size: 48px; }
|
|
362
|
+
|
|
363
|
+
.a2-icon-filled {
|
|
364
|
+
font-variation-settings: 'FILL' 1;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.a2-icon-outlined {
|
|
368
|
+
font-variation-settings: 'FILL' 0;
|
|
369
|
+
}
|
|
370
|
+
`}var m=C();function A(){let e=[];e.push(`
|
|
371
|
+
:root, :host, .a2ui-root {
|
|
372
|
+
${Array.from({length:16},(t,r)=>`--a2-g-${r+1}: ${(r+1)*4}px;`).join(`
|
|
373
|
+
`)}
|
|
374
|
+
}
|
|
375
|
+
`);for(let t=-24;t<=24;t++){let r=t<0?`n${Math.abs(t)}`:t.toString(),a=t*4;e.push(`
|
|
376
|
+
.a2-p-${r} { --a2-padding: ${a}px; padding: var(--a2-padding); }
|
|
377
|
+
.a2-pt-${r} { padding-top: ${a}px; }
|
|
378
|
+
.a2-pr-${r} { padding-right: ${a}px; }
|
|
379
|
+
.a2-pb-${r} { padding-bottom: ${a}px; }
|
|
380
|
+
.a2-pl-${r} { padding-left: ${a}px; }
|
|
381
|
+
.a2-px-${r} { padding-left: ${a}px; padding-right: ${a}px; }
|
|
382
|
+
.a2-py-${r} { padding-top: ${a}px; padding-bottom: ${a}px; }
|
|
383
|
+
|
|
384
|
+
.a2-m-${r} { --a2-margin: ${a}px; margin: var(--a2-margin); }
|
|
385
|
+
.a2-mt-${r} { margin-top: ${a}px; }
|
|
386
|
+
.a2-mr-${r} { margin-right: ${a}px; }
|
|
387
|
+
.a2-mb-${r} { margin-bottom: ${a}px; }
|
|
388
|
+
.a2-ml-${r} { margin-left: ${a}px; }
|
|
389
|
+
.a2-mx-${r} { margin-left: ${a}px; margin-right: ${a}px; }
|
|
390
|
+
.a2-my-${r} { margin-top: ${a}px; margin-bottom: ${a}px; }
|
|
391
|
+
|
|
392
|
+
.a2-t-${r} { top: ${a}px; }
|
|
393
|
+
.a2-r-${r} { right: ${a}px; }
|
|
394
|
+
.a2-b-${r} { bottom: ${a}px; }
|
|
395
|
+
.a2-l-${r} { left: ${a}px; }
|
|
396
|
+
`);}for(let t=0;t<=24;t++)e.push(`.a2-gap-${t} { gap: ${t*4}px; }`);for(let t=1;t<=8;t++)e.push(`.a2-grid-cols-${t} { grid-template-columns: ${"1fr ".repeat(t).trim()}; }`);for(let t=1;t<=10;t++){let r=t*10;e.push(`.a2-w-${r} { width: ${r}%; max-width: ${r}%; }`);}for(let t=0;t<=15;t++)e.push(`.a2-wp-${t} { width: ${t*4}px; }`);for(let t=1;t<=10;t++){let r=t*10;e.push(`.a2-h-${r} { height: ${r}%; }`);}for(let t=0;t<=15;t++)e.push(`.a2-hp-${t} { height: ${t*4}px; }`);return e.push(`
|
|
397
|
+
/* Position */
|
|
398
|
+
.a2-pos-abs { position: absolute; }
|
|
399
|
+
.a2-pos-rel { position: relative; }
|
|
400
|
+
.a2-pos-fixed { position: fixed; }
|
|
401
|
+
.a2-pos-sticky { position: sticky; }
|
|
402
|
+
.a2-inset-0 { inset: 0; }
|
|
403
|
+
|
|
404
|
+
/* Display */
|
|
405
|
+
.a2-dsp-none { display: none; }
|
|
406
|
+
.a2-dsp-block { display: block; }
|
|
407
|
+
.a2-dsp-inline { display: inline; }
|
|
408
|
+
.a2-dsp-iblock { display: inline-block; }
|
|
409
|
+
.a2-dsp-grid { display: grid; }
|
|
410
|
+
.a2-dsp-iflex { display: inline-flex; }
|
|
411
|
+
.a2-dsp-flex { display: flex; }
|
|
412
|
+
.a2-dsp-flexvert { display: flex; flex-direction: column; }
|
|
413
|
+
.a2-dsp-flexhor { display: flex; flex-direction: row; }
|
|
414
|
+
|
|
415
|
+
/* Flex Direction */
|
|
416
|
+
.a2-flex-row { flex-direction: row; }
|
|
417
|
+
.a2-flex-col { flex-direction: column; }
|
|
418
|
+
.a2-flex-wrap { flex-wrap: wrap; }
|
|
419
|
+
.a2-flex-nowrap { flex-wrap: nowrap; }
|
|
420
|
+
|
|
421
|
+
/* Align Items */
|
|
422
|
+
.a2-al-start { align-items: flex-start; }
|
|
423
|
+
.a2-al-end { align-items: flex-end; }
|
|
424
|
+
.a2-al-center { align-items: center; }
|
|
425
|
+
.a2-al-stretch { align-items: stretch; }
|
|
426
|
+
.a2-al-baseline { align-items: baseline; }
|
|
427
|
+
|
|
428
|
+
/* Align Self */
|
|
429
|
+
.a2-as-auto { align-self: auto; }
|
|
430
|
+
.a2-as-start { align-self: flex-start; }
|
|
431
|
+
.a2-as-end { align-self: flex-end; }
|
|
432
|
+
.a2-as-center { align-self: center; }
|
|
433
|
+
.a2-as-stretch { align-self: stretch; }
|
|
434
|
+
|
|
435
|
+
/* Justify Content */
|
|
436
|
+
.a2-jc-start { justify-content: flex-start; }
|
|
437
|
+
.a2-jc-end { justify-content: flex-end; }
|
|
438
|
+
.a2-jc-center { justify-content: center; }
|
|
439
|
+
.a2-jc-between { justify-content: space-between; }
|
|
440
|
+
.a2-jc-around { justify-content: space-around; }
|
|
441
|
+
.a2-jc-evenly { justify-content: space-evenly; }
|
|
442
|
+
|
|
443
|
+
/* Justify Self */
|
|
444
|
+
.a2-js-auto { justify-self: auto; }
|
|
445
|
+
.a2-js-start { justify-self: start; }
|
|
446
|
+
.a2-js-end { justify-self: end; }
|
|
447
|
+
.a2-js-center { justify-self: center; }
|
|
448
|
+
|
|
449
|
+
/* Flex */
|
|
450
|
+
.a2-flex-0 { flex: 0 0 auto; }
|
|
451
|
+
.a2-flex-1 { flex: 1 1 0%; }
|
|
452
|
+
.a2-flex-auto { flex: 1 1 auto; }
|
|
453
|
+
.a2-flex-none { flex: none; }
|
|
454
|
+
.a2-flex-grow { flex-grow: 1; }
|
|
455
|
+
.a2-flex-shrink { flex-shrink: 1; }
|
|
456
|
+
|
|
457
|
+
/* Sizing */
|
|
458
|
+
.a2-w-full { width: 100%; }
|
|
459
|
+
.a2-w-auto { width: auto; }
|
|
460
|
+
.a2-w-fit { width: fit-content; }
|
|
461
|
+
.a2-w-min { width: min-content; }
|
|
462
|
+
.a2-w-max { width: max-content; }
|
|
463
|
+
.a2-h-full { height: 100%; }
|
|
464
|
+
.a2-h-auto { height: auto; }
|
|
465
|
+
.a2-h-fit { height: fit-content; }
|
|
466
|
+
.a2-min-h-0 { min-height: 0; }
|
|
467
|
+
.a2-min-w-0 { min-width: 0; }
|
|
468
|
+
.a2-max-w-full { max-width: 100%; }
|
|
469
|
+
|
|
470
|
+
/* Overflow */
|
|
471
|
+
.a2-overflow-auto { overflow: auto; }
|
|
472
|
+
.a2-overflow-hidden { overflow: hidden; }
|
|
473
|
+
.a2-overflow-scroll { overflow: scroll; }
|
|
474
|
+
.a2-overflow-visible { overflow: visible; }
|
|
475
|
+
.a2-overflow-x-auto { overflow-x: auto; }
|
|
476
|
+
.a2-overflow-y-auto { overflow-y: auto; }
|
|
477
|
+
.a2-overflow-x-hidden { overflow-x: hidden; }
|
|
478
|
+
.a2-overflow-y-hidden { overflow-y: hidden; }
|
|
479
|
+
|
|
480
|
+
/* Resize */
|
|
481
|
+
.a2-resize-none { resize: none; }
|
|
482
|
+
.a2-resize-y { resize: vertical; }
|
|
483
|
+
.a2-resize-x { resize: horizontal; }
|
|
484
|
+
.a2-resize { resize: both; }
|
|
485
|
+
|
|
486
|
+
/* Object Fit */
|
|
487
|
+
.a2-obj-contain { object-fit: contain; }
|
|
488
|
+
.a2-obj-cover { object-fit: cover; }
|
|
489
|
+
.a2-obj-fill { object-fit: fill; }
|
|
490
|
+
.a2-obj-none { object-fit: none; }
|
|
491
|
+
.a2-obj-scale { object-fit: scale-down; }
|
|
492
|
+
|
|
493
|
+
/* Aspect Ratio */
|
|
494
|
+
.a2-aspect-auto { aspect-ratio: auto; }
|
|
495
|
+
.a2-aspect-square { aspect-ratio: 1 / 1; }
|
|
496
|
+
.a2-aspect-video { aspect-ratio: 16 / 9; }
|
|
497
|
+
|
|
498
|
+
/* Z-Index */
|
|
499
|
+
.a2-z-0 { z-index: 0; }
|
|
500
|
+
.a2-z-10 { z-index: 10; }
|
|
501
|
+
.a2-z-20 { z-index: 20; }
|
|
502
|
+
.a2-z-30 { z-index: 30; }
|
|
503
|
+
.a2-z-40 { z-index: 40; }
|
|
504
|
+
.a2-z-50 { z-index: 50; }
|
|
505
|
+
.a2-z-auto { z-index: auto; }
|
|
506
|
+
|
|
507
|
+
/* Image/Video container */
|
|
508
|
+
.a2-media-cover img,
|
|
509
|
+
.a2-media-cover video {
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
object-fit: cover;
|
|
513
|
+
margin: 0;
|
|
514
|
+
}
|
|
515
|
+
`),e.join(`
|
|
516
|
+
`)}var g=A();function I(){let e=[];e.push(`
|
|
517
|
+
:root, :host, .a2ui-root {
|
|
518
|
+
/* Font families */
|
|
519
|
+
--a2-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
520
|
+
--a2-font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
521
|
+
--a2-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
522
|
+
|
|
523
|
+
/* Font sizes - Body */
|
|
524
|
+
--a2-text-bs: 12px;
|
|
525
|
+
--a2-text-bm: 14px;
|
|
526
|
+
--a2-text-bl: 16px;
|
|
527
|
+
|
|
528
|
+
/* Font sizes - Label */
|
|
529
|
+
--a2-text-ls: 10px;
|
|
530
|
+
--a2-text-lm: 11px;
|
|
531
|
+
--a2-text-ll: 12px;
|
|
532
|
+
|
|
533
|
+
/* Font sizes - Title */
|
|
534
|
+
--a2-text-ts: 14px;
|
|
535
|
+
--a2-text-tm: 16px;
|
|
536
|
+
--a2-text-tl: 22px;
|
|
537
|
+
|
|
538
|
+
/* Font sizes - Headline */
|
|
539
|
+
--a2-text-hs: 24px;
|
|
540
|
+
--a2-text-hm: 28px;
|
|
541
|
+
--a2-text-hl: 32px;
|
|
542
|
+
|
|
543
|
+
/* Font sizes - Display */
|
|
544
|
+
--a2-text-ds: 36px;
|
|
545
|
+
--a2-text-dm: 45px;
|
|
546
|
+
--a2-text-dl: 57px;
|
|
547
|
+
}
|
|
548
|
+
`),e.push(`
|
|
549
|
+
.a2-font-sans { font-family: var(--a2-font-sans); }
|
|
550
|
+
.a2-font-serif { font-family: var(--a2-font-serif); }
|
|
551
|
+
.a2-font-mono { font-family: var(--a2-font-mono); }
|
|
552
|
+
`);for(let a=1;a<=9;a++){let o=a*100;e.push(`.a2-fw-${o} { font-weight: ${o}; }`);}let t={bs:"var(--a2-text-bs)",bm:"var(--a2-text-bm)",bl:"var(--a2-text-bl)",ls:"var(--a2-text-ls)",lm:"var(--a2-text-lm)",ll:"var(--a2-text-ll)",ts:"var(--a2-text-ts)",tm:"var(--a2-text-tm)",tl:"var(--a2-text-tl)",hs:"var(--a2-text-hs)",hm:"var(--a2-text-hm)",hl:"var(--a2-text-hl)",ds:"var(--a2-text-ds)",dm:"var(--a2-text-dm)",dl:"var(--a2-text-dl)"};for(let[a,o]of Object.entries(t))e.push(`.a2-text-${a} { font-size: ${o}; }`);let r=[10,11,12,13,14,15,16,18,20,24,28,32,36,40,48,56,64];for(let a of r)e.push(`.a2-text-${a} { font-size: ${a}px; }`);return e.push(`
|
|
553
|
+
.a2-fs-normal { font-style: normal; }
|
|
554
|
+
.a2-fs-italic { font-style: italic; }
|
|
555
|
+
`),e.push(`
|
|
556
|
+
.a2-ta-left { text-align: left; }
|
|
557
|
+
.a2-ta-center { text-align: center; }
|
|
558
|
+
.a2-ta-right { text-align: right; }
|
|
559
|
+
.a2-ta-justify { text-align: justify; }
|
|
560
|
+
.a2-ta-start { text-align: start; }
|
|
561
|
+
.a2-ta-end { text-align: end; }
|
|
562
|
+
`),e.push(`
|
|
563
|
+
.a2-td-none { text-decoration: none; }
|
|
564
|
+
.a2-td-underline { text-decoration: underline; }
|
|
565
|
+
.a2-td-overline { text-decoration: overline; }
|
|
566
|
+
.a2-td-through { text-decoration: line-through; }
|
|
567
|
+
`),e.push(`
|
|
568
|
+
.a2-tt-none { text-transform: none; }
|
|
569
|
+
.a2-tt-upper { text-transform: uppercase; }
|
|
570
|
+
.a2-tt-lower { text-transform: lowercase; }
|
|
571
|
+
.a2-tt-cap { text-transform: capitalize; }
|
|
572
|
+
`),e.push(`
|
|
573
|
+
.a2-lh-none { line-height: 1; }
|
|
574
|
+
.a2-lh-tight { line-height: 1.25; }
|
|
575
|
+
.a2-lh-snug { line-height: 1.375; }
|
|
576
|
+
.a2-lh-normal { line-height: 1.5; }
|
|
577
|
+
.a2-lh-relaxed { line-height: 1.625; }
|
|
578
|
+
.a2-lh-loose { line-height: 2; }
|
|
579
|
+
`),e.push(`
|
|
580
|
+
.a2-ls-tighter { letter-spacing: -0.05em; }
|
|
581
|
+
.a2-ls-tight { letter-spacing: -0.025em; }
|
|
582
|
+
.a2-ls-normal { letter-spacing: 0; }
|
|
583
|
+
.a2-ls-wide { letter-spacing: 0.025em; }
|
|
584
|
+
.a2-ls-wider { letter-spacing: 0.05em; }
|
|
585
|
+
.a2-ls-widest { letter-spacing: 0.1em; }
|
|
586
|
+
`),e.push(`
|
|
587
|
+
.a2-ws-normal { white-space: normal; }
|
|
588
|
+
.a2-ws-nowrap { white-space: nowrap; }
|
|
589
|
+
.a2-ws-pre { white-space: pre; }
|
|
590
|
+
.a2-ws-preline { white-space: pre-line; }
|
|
591
|
+
.a2-ws-prewrap { white-space: pre-wrap; }
|
|
592
|
+
.a2-ws-break { white-space: break-spaces; }
|
|
593
|
+
`),e.push(`
|
|
594
|
+
.a2-wb-normal { word-break: normal; }
|
|
595
|
+
.a2-wb-words { overflow-wrap: break-word; }
|
|
596
|
+
.a2-wb-all { word-break: break-all; }
|
|
597
|
+
.a2-wb-keep { word-break: keep-all; }
|
|
598
|
+
`),e.push(`
|
|
599
|
+
.a2-truncate {
|
|
600
|
+
overflow: hidden;
|
|
601
|
+
text-overflow: ellipsis;
|
|
602
|
+
white-space: nowrap;
|
|
603
|
+
}
|
|
604
|
+
.a2-text-clip { text-overflow: clip; }
|
|
605
|
+
.a2-text-ellipsis { text-overflow: ellipsis; }
|
|
606
|
+
`),e.push(`
|
|
607
|
+
.a2-va-baseline { vertical-align: baseline; }
|
|
608
|
+
.a2-va-top { vertical-align: top; }
|
|
609
|
+
.a2-va-middle { vertical-align: middle; }
|
|
610
|
+
.a2-va-bottom { vertical-align: bottom; }
|
|
611
|
+
.a2-va-text-top { vertical-align: text-top; }
|
|
612
|
+
.a2-va-text-bottom { vertical-align: text-bottom; }
|
|
613
|
+
`),e.join(`
|
|
614
|
+
`)}var w=I();var F=`
|
|
615
|
+
/* A2UI Base Styles */
|
|
616
|
+
.a2ui-root {
|
|
617
|
+
font-family: var(--a2-font-sans);
|
|
618
|
+
font-size: var(--a2-text-bm);
|
|
619
|
+
line-height: 1.5;
|
|
620
|
+
color: light-dark(var(--n-10), var(--n-90));
|
|
621
|
+
background-color: light-dark(var(--n-0), var(--n-100));
|
|
622
|
+
-webkit-font-smoothing: antialiased;
|
|
623
|
+
-moz-osx-font-smoothing: grayscale;
|
|
624
|
+
box-sizing: border-box;
|
|
625
|
+
width: 100%;
|
|
626
|
+
height: 100%;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.a2ui-root *,
|
|
630
|
+
.a2ui-root *::before,
|
|
631
|
+
.a2ui-root *::after {
|
|
632
|
+
box-sizing: border-box;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* Reset headings */
|
|
636
|
+
.a2ui-root h1,
|
|
637
|
+
.a2ui-root h2,
|
|
638
|
+
.a2ui-root h3,
|
|
639
|
+
.a2ui-root h4,
|
|
640
|
+
.a2ui-root h5,
|
|
641
|
+
.a2ui-root h6 {
|
|
642
|
+
margin: 0;
|
|
643
|
+
font-weight: 600;
|
|
644
|
+
line-height: 1.25;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.a2ui-root p {
|
|
648
|
+
margin: 0;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.a2ui-root ul,
|
|
652
|
+
.a2ui-root ol {
|
|
653
|
+
margin: 0;
|
|
654
|
+
padding: 0;
|
|
655
|
+
list-style: none;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.a2ui-root a {
|
|
659
|
+
color: inherit;
|
|
660
|
+
text-decoration: none;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/* \u6309\u94AE\u57FA\u7840\u91CD\u7F6E - \u53EA\u8BBE\u7F6E\u7EE7\u627F\u5C5E\u6027\uFF0C\u4E0D\u8986\u76D6\u5DE5\u5177\u7C7B */
|
|
664
|
+
.a2ui-root button {
|
|
665
|
+
font: inherit;
|
|
666
|
+
margin: 0;
|
|
667
|
+
cursor: pointer;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.a2ui-root input,
|
|
671
|
+
.a2ui-root textarea,
|
|
672
|
+
.a2ui-root select {
|
|
673
|
+
font: inherit;
|
|
674
|
+
color: inherit;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.a2ui-root img,
|
|
678
|
+
.a2ui-root video {
|
|
679
|
+
max-width: 100%;
|
|
680
|
+
height: auto;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/* Scrollbar styling */
|
|
684
|
+
.a2ui-root::-webkit-scrollbar {
|
|
685
|
+
width: 6px;
|
|
686
|
+
height: 6px;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.a2ui-root::-webkit-scrollbar-track {
|
|
690
|
+
background: transparent;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.a2ui-root::-webkit-scrollbar-thumb {
|
|
694
|
+
background: light-dark(var(--n-30), var(--n-70));
|
|
695
|
+
border-radius: 3px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.a2ui-root::-webkit-scrollbar-thumb:hover {
|
|
699
|
+
background: light-dark(var(--n-40), var(--n-60));
|
|
700
|
+
}
|
|
701
|
+
`,O=[F,g,x,w,h,b,m].join(`
|
|
702
|
+
`);function X(){return O}function p(){return {}}var $={additionalStyles:{Button:{},Card:{},Text:{h1:{},h2:{},h3:{},h4:{},h5:{},body:{},caption:{}}},components:{AudioPlayer:{"a2-w-full":true},Button:{"a2-dsp-iflex":true,"a2-al-center":true,"a2-jc-center":true,"a2-gap-2":true,"a2-px-4":true,"a2-py-2":true,"a2-br-3":true,"a2-bw-0":true,"a2-bs-solid":true,"a2-bgc-p35":true,"a2-c-n0":true,"a2-font-sans":true,"a2-fw-500":true,"a2-text-bm":true,"a2-cursor-pointer":true,"a2-transition":true,"a2-ho-80":true,"a2-active-scale-95":true,"a2-select-none":true},Card:{"a2-pos-rel":true,"a2-br-4":true,"a2-p-4":true,"a2-bgc-n0":true,"a2-border":true,"a2-bc-n90":true,"a2-shadow":true,"a2-transition":true,"a2-hover-shadow-md":true,"a2-overflow-hidden":true},Column:{"a2-dsp-flexvert":true,"a2-gap-2":true},CheckBox:{container:{"a2-dsp-iflex":true,"a2-al-center":true,"a2-gap-2":true,"a2-cursor-pointer":true},element:{"a2-wp-4":true,"a2-hp-4":true,"a2-br-1":true,"a2-border":true,"a2-bc-n60":true,"a2-bgc-n0":true,"a2-cursor-pointer":true},label:{"a2-font-sans":true,"a2-text-bm":true,"a2-fw-400":true,"a2-c-n70":true,"a2-flex-1":true}},DateTimeInput:{container:{"a2-dsp-flexhor":true,"a2-al-center":true,"a2-gap-2":true,"a2-w-full":true,"a2-text-bm":true,"a2-ws-nowrap":true},element:{"a2-px-3":true,"a2-py-2":true,"a2-br-2":true,"a2-border":true,"a2-bc-n60":true,"a2-bgc-n0":true,"a2-c-n70":true,"a2-transition-colors":true},label:{"a2-c-n70":true,"a2-text-bm":true,"a2-flex-0":true}},Divider:{"a2-bgc-n90":true,"a2-my-4":true},Image:{all:{"a2-br-2":true,"a2-media-cover":true,"a2-w-full":true,"a2-h-full":true},avatar:{"a2-br-50pc":true},header:p(),icon:p(),largeFeature:p(),mediumFeature:p(),smallFeature:p()},Icon:{"a2-icon":true,"a2-dsp-iflex":true,"a2-al-center":true,"a2-jc-center":true},List:{"a2-dsp-flexvert":true,"a2-gap-4":true,"a2-p-2":true},Modal:{backdrop:{"a2-pos-fixed":true,"a2-inset-0":true,"a2-dsp-flex":true,"a2-al-center":true,"a2-jc-center":true,"a2-bgc-n100_50":true,"a2-z-50":true,"a2-blur-sm":true},element:{"a2-br-4":true,"a2-bgc-n0":true,"a2-p-4":true,"a2-border":true,"a2-bc-n80":true,"a2-shadow-xl":true}},MultipleChoice:{container:{"a2-dsp-flexvert":true,"a2-gap-2":true},element:{"a2-px-3":true,"a2-py-2":true,"a2-br-2":true,"a2-border":true,"a2-bc-n60":true,"a2-bgc-n0":true,"a2-w-full":true},label:{"a2-text-bm":true,"a2-fw-500":true}},Row:{"a2-dsp-flexhor":true,"a2-gap-4":true},Slider:{container:{"a2-dsp-flexvert":true,"a2-gap-1":true},element:{"a2-w-full":true},label:{"a2-text-bm":true,"a2-fw-500":true}},Tabs:{container:{"a2-dsp-flexvert":true,"a2-gap-4":true},controls:{all:{"a2-px-4":true,"a2-py-2":true,"a2-text-bm":true,"a2-fw-500":true,"a2-cursor-pointer":true,"a2-transition-colors":true,"a2-br-t-2":true},selected:{"a2-bw-b-2":true,"a2-bc-p50":true,"a2-c-p50":true}},element:{"a2-dsp-flexhor":true,"a2-border-b":true,"a2-bc-n90":true}},Text:{all:{},h1:{"a2-font-sans":true,"a2-fw-600":true,"a2-text-hs":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n95":true},h2:{"a2-font-sans":true,"a2-fw-600":true,"a2-text-tl":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n95":true},h3:{"a2-font-sans":true,"a2-fw-600":true,"a2-text-tm":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n90":true},h4:{"a2-font-sans":true,"a2-fw-500":true,"a2-text-bl":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n90":true},h5:{"a2-font-sans":true,"a2-fw-500":true,"a2-text-bm":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n80":true},h6:{"a2-font-sans":true,"a2-fw-500":true,"a2-text-bs":true,"a2-m-0":true,"a2-p-0":true,"a2-c-n70":true},body:{"a2-font-sans":true,"a2-fw-400":true,"a2-text-bm":true,"a2-lh-relaxed":true,"a2-c-n80":true},caption:{"a2-font-sans":true,"a2-fw-400":true,"a2-text-bs":true,"a2-c-n60":true},label:{"a2-font-sans":true,"a2-fw-500":true,"a2-text-bm":true,"a2-c-n70":true}},TextField:{container:{"a2-dsp-flexhor":true,"a2-al-center":true,"a2-gap-2":true,"a2-w-full":true,"a2-text-bm":true,"a2-ws-nowrap":true},element:{"a2-text-bm":true,"a2-px-3":true,"a2-py-2":true,"a2-br-2":true,"a2-border":true,"a2-bc-n60":true,"a2-bgc-n0":true,"a2-c-n90":true,"a2-flex-1":true,"a2-transition-colors":true,"a2-focus-visible-ring":true},label:{"a2-flex-0":true,"a2-c-n70":true,"a2-fw-500":true}},Video:{"a2-br-2":true,"a2-media-cover":true}},elements:{a:{"a2-font-sans":true,"a2-fw-500":true,"a2-dsp-iflex":true,"a2-al-center":true,"a2-td-none":true,"a2-c-p40":true},audio:{"a2-w-full":true},body:{"a2-font-serif":true,"a2-fw-400":true,"a2-text-bm":true,"a2-mt-0":true,"a2-mb-2":true,"a2-c-n90":true},button:{"a2-font-sans":true,"a2-fw-500":true,"a2-py-3":true,"a2-px-5":true,"a2-mb-1":true,"a2-br-4":true,"a2-bw-0":true,"a2-bs-solid":true,"a2-bgc-s30":true,"a2-ho-80":true},h1:{"a2-font-sans":true,"a2-fw-500":true,"a2-mt-0":true,"a2-mb-2":true},h2:{"a2-font-sans":true,"a2-fw-500":true,"a2-mt-0":true,"a2-mb-2":true},h3:{"a2-font-sans":true,"a2-fw-500":true,"a2-mt-0":true,"a2-mb-2":true},h4:{"a2-font-sans":true,"a2-fw-500":true,"a2-mt-0":true,"a2-mb-2":true},h5:{"a2-font-sans":true,"a2-fw-500":true,"a2-mt-0":true,"a2-mb-2":true},iframe:{"a2-scrollbar-none":true},input:{"a2-font-sans":true,"a2-fw-400":true,"a2-px-4":true,"a2-py-2":true,"a2-br-2":true,"a2-border":true,"a2-bc-s70":true,"a2-bs-solid":true,"a2-c-n90":true},p:{"a2-font-serif":true,"a2-fw-400":true,"a2-m-0":true,"a2-text-bm":true,"a2-c-n90":true},pre:{"a2-font-mono":true,"a2-fw-400":true,"a2-text-bm":true,"a2-ws-pre":true},textarea:{"a2-font-sans":true,"a2-fw-400":true,"a2-px-4":true,"a2-py-2":true,"a2-br-2":true,"a2-border":true,"a2-bc-s70":true,"a2-bs-solid":true,"a2-c-n90":true,"a2-resize-y":true},video:{"a2-media-cover":true}},markdown:{p:["a2-font-serif","a2-fw-400","a2-text-bm","a2-lh-relaxed","a2-c-n90","a2-mb-2"],h1:["a2-font-sans","a2-fw-500","a2-text-hs","a2-m-0","a2-mb-2"],h2:["a2-font-sans","a2-fw-500","a2-text-tl","a2-m-0","a2-mb-2"],h3:["a2-font-sans","a2-fw-500","a2-text-tm","a2-m-0","a2-mb-2"],h4:["a2-font-sans","a2-fw-500","a2-text-bl","a2-m-0","a2-mb-2"],h5:["a2-font-sans","a2-fw-500","a2-text-bm","a2-m-0","a2-mb-1","a2-c-n70"],ul:["a2-font-serif","a2-fw-400","a2-text-bm","a2-m-0"],ol:["a2-font-serif","a2-fw-400","a2-text-bm","a2-m-0"],li:["a2-font-serif","a2-fw-400","a2-text-bm"],a:["a2-font-sans","a2-fw-500","a2-c-p40","a2-td-none"],strong:["a2-fw-700"],em:["a2-fs-italic"],code:["a2-font-mono","a2-text-bs","a2-bgc-n95","a2-px-1","a2-br-1"],blockquote:["a2-pl-4","a2-border-l","a2-bw-l-3","a2-bc-p60","a2-c-n50","a2-fs-italic"]}};function S(e,t){let r={...e};for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let o=r[a],n=t[a];typeof o=="object"&&o!==null&&typeof n=="object"&&n!==null&&!Array.isArray(o)&&!Array.isArray(n)?r[a]=S(o,n):r[a]=n;}return r}function st(e){return S($,e)}function it(...e){let t={};for(let r of e)if(r)for(let[a,o]of Object.entries(r)){let n=a.split("-").slice(0,2).join("-")+"-",i=Object.keys(t).filter(c=>c.startsWith(n));for(let c of i)delete t[c];t[a]=o;}return t}function lt(){return JSON.parse(JSON.stringify($))}function ut(...e){let t={};for(let r of e)if(r)for(let[a,o]of Object.entries(r)){let n=a.split("-"),i=n.length>=3?n.slice(0,2).join("-")+"-":a,c=Object.keys(t).filter(l=>l.startsWith(i));for(let l of c)delete t[l];t[a]=o;}return t}function pt(e,t,...r){let a=structuredClone(e);for(let o of r)for(let n of Object.keys(o)){let i=n.split("-").slice(0,2).join("-")+"-";for(let[c,l]of Object.entries(a)){if(t.includes(c))continue;let y=false;for(let d=0;d<l.length;d++)l[d]?.startsWith(i)&&(y=true,l[d]=n);y||l.push(n);}}return a}function dt(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}function bt(e){let t={};for(let[r,a]of Object.entries(e)){let o=r.replace(/-([a-z])/g,(n,i)=>i.toUpperCase());t[o]=a;}return t}function ft(...e){let t=[];for(let r of e)if(r){if(typeof r=="string")t.push(r);else if(typeof r=="object")for(let[a,o]of Object.entries(r))o&&t.push(a);}return t.join(" ")}export{u as GRID,k as PALETTE_KEYS,f as SHADES,pt as appendToAll,F as baseStyles,b as behaviorStyles,h as borderStyles,dt as classesToString,lt as cloneDefaultTheme,ft as cn,x as colorStyles,st as createTheme,$ as defaultTheme,X as getA2UIStyles,v as getInverseKey,m as iconStyles,g as layoutStyles,ut as merge,it as mergeStyles,O as structuralStyles,bt as stylesToCSS,s as toProp,w as typographyStyles};
|