@lukso/web-components 1.161.1 → 1.161.2
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/dist/components/index.cjs +7 -5
- package/dist/components/index.js +5 -5
- package/dist/components/lukso-button/index.cjs +3 -3
- package/dist/components/lukso-button/index.js +3 -3
- package/dist/components/lukso-card/index.cjs +6 -6
- package/dist/components/lukso-card/index.js +6 -6
- package/dist/components/lukso-checkbox/index.cjs +3 -3
- package/dist/components/lukso-checkbox/index.js +3 -3
- package/dist/components/lukso-collapse/index.cjs +3 -3
- package/dist/components/lukso-collapse/index.js +3 -3
- package/dist/components/lukso-color-picker/index.cjs +5 -5
- package/dist/components/lukso-color-picker/index.js +5 -5
- package/dist/components/lukso-dropdown/index.cjs +4 -4
- package/dist/components/lukso-dropdown/index.js +4 -4
- package/dist/components/lukso-dropdown-option/index.cjs +2 -2
- package/dist/components/lukso-dropdown-option/index.js +2 -2
- package/dist/components/lukso-footer/index.cjs +3 -2
- package/dist/components/lukso-footer/index.d.ts.map +1 -1
- package/dist/components/lukso-footer/index.js +3 -2
- package/dist/components/lukso-icon/index.cjs +4 -4
- package/dist/components/lukso-icon/index.js +4 -4
- package/dist/components/lukso-image/index.cjs +4 -4
- package/dist/components/lukso-image/index.js +4 -4
- package/dist/components/lukso-input/index.cjs +4 -4
- package/dist/components/lukso-input/index.js +4 -4
- package/dist/components/lukso-markdown/index.cjs +13 -5
- package/dist/components/lukso-markdown/index.d.ts +1 -0
- package/dist/components/lukso-markdown/index.d.ts.map +1 -1
- package/dist/components/lukso-markdown/index.js +13 -5
- package/dist/components/lukso-markdown/lukso-markdown.stories.d.ts +2 -0
- package/dist/components/lukso-markdown/lukso-markdown.stories.d.ts.map +1 -1
- package/dist/components/lukso-markdown-editor/index.cjs +294 -252
- package/dist/components/lukso-markdown-editor/index.d.ts +4 -1
- package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
- package/dist/components/lukso-markdown-editor/index.js +294 -252
- package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts +6 -0
- package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/lukso-modal/index.cjs +2 -2
- package/dist/components/lukso-modal/index.js +2 -2
- package/dist/components/lukso-navbar/index.cjs +3 -3
- package/dist/components/lukso-navbar/index.js +3 -3
- package/dist/components/lukso-pagination/index.cjs +3 -3
- package/dist/components/lukso-pagination/index.js +3 -3
- package/dist/components/lukso-profile/index.cjs +3 -3
- package/dist/components/lukso-profile/index.js +3 -3
- package/dist/components/lukso-progress/index.cjs +3 -3
- package/dist/components/lukso-progress/index.js +3 -3
- package/dist/components/lukso-radio/index.cjs +3 -3
- package/dist/components/lukso-radio/index.js +3 -3
- package/dist/components/lukso-radio-group/index.cjs +3 -3
- package/dist/components/lukso-radio-group/index.js +3 -3
- package/dist/components/lukso-sanitize/index.cjs +9 -1390
- package/dist/components/lukso-sanitize/index.d.ts +17 -1
- package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
- package/dist/components/lukso-sanitize/index.js +4 -1396
- package/dist/components/lukso-sanitize/lukso-sanitize.stories.d.ts +17 -1
- package/dist/components/lukso-sanitize/lukso-sanitize.stories.d.ts.map +1 -1
- package/dist/components/lukso-search/index.cjs +6 -6
- package/dist/components/lukso-search/index.js +6 -6
- package/dist/components/lukso-select/index.cjs +6 -6
- package/dist/components/lukso-select/index.js +6 -6
- package/dist/components/lukso-share/index.cjs +2 -2
- package/dist/components/lukso-share/index.js +2 -2
- package/dist/components/lukso-switch/index.cjs +4 -4
- package/dist/components/lukso-switch/index.js +4 -4
- package/dist/components/lukso-tag/index.cjs +3 -3
- package/dist/components/lukso-tag/index.js +3 -3
- package/dist/components/lukso-terms/index.cjs +4 -4
- package/dist/components/lukso-terms/index.js +4 -4
- package/dist/components/lukso-textarea/index.cjs +4 -4
- package/dist/components/lukso-textarea/index.js +4 -4
- package/dist/components/lukso-tooltip/index.cjs +4 -4
- package/dist/components/lukso-tooltip/index.js +4 -4
- package/dist/components/lukso-username/index.cjs +4 -4
- package/dist/components/lukso-username/index.js +4 -4
- package/dist/components/lukso-wizard/index.cjs +2 -2
- package/dist/components/lukso-wizard/index.js +2 -2
- package/dist/{index-DNhzT2hA.cjs → index-BDC9pVk6.cjs} +2 -2
- package/dist/index-BFqOU6o6.cjs +50 -0
- package/dist/{index-NKnet_Ow.js → index-BJwLob67.js} +2 -2
- package/dist/{index-CKlH1beR.js → index-BOWftFAY.js} +1 -1
- package/dist/{index-CKjNXRek.cjs → index-C2uvRzO4.cjs} +3 -3
- package/dist/{index-C1JF-hTl.cjs → index-CEnG_x_7.cjs} +5 -5
- package/dist/index-CQq_Eyeu.js +41 -0
- package/dist/index-Chl2HHJ6.cjs +1408 -0
- package/dist/index-JvkSiEeQ.js +1404 -0
- package/dist/{index-C9Ins46B.cjs → index-Zriuvita.cjs} +1 -1
- package/dist/{index-BSwFyDEC.js → index-f-xajtU2.js} +3 -3
- package/dist/{index-CDUQ0-Uh.js → index-oQecUOlb.js} +5 -5
- package/dist/index.cjs +7 -5
- package/dist/index.js +5 -5
- package/dist/{property-Da9lvmME.js → property-CPkYmAYi.js} +1 -1
- package/dist/{property-dUn0JQiG.cjs → property-Cs8qVdri.cjs} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-CD8hXUlY.cjs → state-Bh6EXopE.cjs} +1 -1
- package/dist/{state-CtpsBPdH.js → state-CtrTo6cC.js} +1 -1
- package/dist/{style-map-CDCcO0mt.js → style-map-BBz25umN.js} +1 -1
- package/dist/{style-map-nBexjTCa.cjs → style-map-DhbNG03r.cjs} +1 -1
- package/dist/tailwind-config.cjs +65 -0
- package/dist/tailwind-config.d.ts +85 -0
- package/dist/tailwind-config.d.ts.map +1 -1
- package/dist/tailwind-config.js +64 -1
- package/dist/{unsafe-html-DHNeIs-4.cjs → unsafe-html-Cb1yjpJn.cjs} +1 -1
- package/dist/{unsafe-html-Ci4jmi7b.js → unsafe-html-DTE5r2A7.js} +1 -1
- package/package.json +1 -1
- package/tailwind.config.cjs +208 -178
- package/tools/cn.cjs +1 -1
- package/tools/cn.js +1 -1
- package/tools/copy-assets.cjs +16 -16
- package/tools/copy-assets.js +2 -2
- package/tools/index.cjs +1 -1
- package/tools/index.js +1 -1
- package/tools/{tailwind-config-Ch2-b3Be.js → tailwind-config-DVTyRd7x.js} +64 -1
- package/tools/{tailwind-config-BIErjaAT.cjs → tailwind-config-DoMZEvsr.cjs} +65 -0
- package/tools/tailwind-config.cjs +3 -1
- package/tools/tailwind-config.d.ts +85 -0
- package/tools/tailwind-config.d.ts.map +1 -1
- package/tools/tailwind-config.js +1 -1
- package/dist/index-B5CXCi6j.js +0 -41
- package/dist/index-D4DEFira.cjs +0 -50
package/tailwind.config.cjs
CHANGED
|
@@ -1,201 +1,231 @@
|
|
|
1
|
-
const plugin = require(
|
|
1
|
+
const plugin = require("tailwindcss/plugin");
|
|
2
2
|
|
|
3
|
-
const {
|
|
3
|
+
const {
|
|
4
|
+
colorPalette,
|
|
5
|
+
boxShadows,
|
|
6
|
+
fontWeights,
|
|
7
|
+
fontSizes,
|
|
8
|
+
lineHeights,
|
|
9
|
+
scales,
|
|
10
|
+
heights,
|
|
11
|
+
borderRadius,
|
|
12
|
+
spacing,
|
|
13
|
+
proseSpacing,
|
|
14
|
+
proseVariants,
|
|
15
|
+
} = require("./tools/tailwind-config.cjs");
|
|
4
16
|
|
|
5
17
|
/**
|
|
6
18
|
* Add animation delay utilities. Example: .animation-delay-1000
|
|
7
19
|
*/
|
|
8
20
|
const animationDelayPlugin = plugin(({ addUtilities, theme, e }) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
21
|
+
const values = theme("animationDelay");
|
|
22
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
23
|
+
return {
|
|
24
|
+
[`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
addUtilities(utilities);
|
|
28
|
+
});
|
|
17
29
|
|
|
18
30
|
/**
|
|
19
31
|
* Add animation iteration utilities. Example: .animation-iteration-infinite
|
|
20
32
|
*/
|
|
21
33
|
const animationIterationPlugin = plugin(({ addUtilities, theme, e }) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
34
|
+
const values = theme("animationIteration");
|
|
35
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
36
|
+
return {
|
|
37
|
+
[`.${e(`animation-iteration-${key}`)}`]: {
|
|
38
|
+
animationIterationCount: `${value}`,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
addUtilities(utilities);
|
|
43
|
+
});
|
|
32
44
|
|
|
33
45
|
/**
|
|
34
46
|
* Add animation duration utilities. Example: .animation-duration-1000
|
|
35
47
|
*/
|
|
36
48
|
const animationDuration = plugin(({ addUtilities, theme, e }) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})
|
|
49
|
+
const values = theme("animationDuration");
|
|
50
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
51
|
+
return {
|
|
52
|
+
[`.${e(`animation-duration-${key}`)}`]: {
|
|
53
|
+
animationDuration: `${value}`,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
addUtilities(utilities);
|
|
58
|
+
});
|
|
47
59
|
|
|
48
60
|
/**
|
|
49
61
|
* Add animation fill mode utilities. Example: .animation-fill-forwards
|
|
50
62
|
*/
|
|
51
63
|
const animationFill = plugin(({ addUtilities, theme, e }) => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
})
|
|
64
|
+
const values = theme("animationFill");
|
|
65
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
66
|
+
return {
|
|
67
|
+
[`.${e(`animation-fill-${key}`)}`]: {
|
|
68
|
+
animationFillMode: `${value}`,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
addUtilities(utilities);
|
|
73
|
+
});
|
|
62
74
|
|
|
63
75
|
module.exports = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
76
|
+
content: [
|
|
77
|
+
"./src/**/*.{ts,html,css,scss,mdx}",
|
|
78
|
+
"./package/**/*.{ts,html,css,scss,mdx}",
|
|
79
|
+
"./stories/**/*.{ts,html,css,scss,mdx}",
|
|
80
|
+
"./*.{ts,html,css,scss,mdx}",
|
|
81
|
+
],
|
|
82
|
+
theme: {
|
|
83
|
+
fontFamily: {
|
|
84
|
+
inter: ["Inter", "sans-serif"],
|
|
85
|
+
apax: ["Apax", "sans-serif"],
|
|
86
|
+
mono: ['"PT Mono"', "sans-serif"],
|
|
87
|
+
},
|
|
88
|
+
extend: {
|
|
89
|
+
colors: colorPalette,
|
|
90
|
+
boxShadow: boxShadows,
|
|
91
|
+
fontSize: fontSizes,
|
|
92
|
+
fontWeight: fontWeights,
|
|
93
|
+
lineHeight: lineHeights,
|
|
94
|
+
transitionDuration: {
|
|
95
|
+
25: "25ms",
|
|
96
|
+
250: "250ms",
|
|
97
|
+
},
|
|
98
|
+
transitionProperty: {
|
|
99
|
+
width: "width",
|
|
100
|
+
height: "height",
|
|
101
|
+
},
|
|
102
|
+
scale: scales,
|
|
103
|
+
height: heights,
|
|
104
|
+
animation: {
|
|
105
|
+
"pulse-resize": "pulse-resize 1s ease-in-out infinite",
|
|
106
|
+
"resize-in": "resize-in 0.5s ease-in-out",
|
|
107
|
+
"fade-in": "fade-in 0.5s ease-in-out",
|
|
108
|
+
bounce2: "bounce2 1s ease-in-out infinite alternate",
|
|
109
|
+
"fade-in-up": "fade-in-up 0.5s ease-out forwards",
|
|
110
|
+
},
|
|
111
|
+
keyframes: {
|
|
112
|
+
"pulse-resize": {
|
|
113
|
+
"0%, 100%": { transform: "scale(1)" },
|
|
114
|
+
"50%": { transform: "scale(0.7)" },
|
|
115
|
+
},
|
|
116
|
+
"resize-in": {
|
|
117
|
+
"0%": { transform: "scale(0.5)" },
|
|
118
|
+
"100%": { transform: "scale(1)" },
|
|
119
|
+
},
|
|
120
|
+
"fade-in": {
|
|
121
|
+
"0%": { opacity: "0" },
|
|
122
|
+
"100%": { opacity: "1" },
|
|
123
|
+
},
|
|
124
|
+
bounce2: {
|
|
125
|
+
"0%": { transform: "translateY(-6px)" },
|
|
126
|
+
"100%": { transform: "translateY(10)" },
|
|
127
|
+
},
|
|
128
|
+
"fade-in-up": {
|
|
129
|
+
"0%": {
|
|
130
|
+
opacity: "0",
|
|
131
|
+
transform: "translateY(10px)",
|
|
132
|
+
},
|
|
133
|
+
"100%": {
|
|
134
|
+
opacity: "1",
|
|
135
|
+
transform: "translateY(0)",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
animationDelay: {
|
|
140
|
+
none: "0s",
|
|
141
|
+
75: "75ms",
|
|
142
|
+
100: "100ms",
|
|
143
|
+
150: "150ms",
|
|
144
|
+
200: "200ms",
|
|
145
|
+
300: "300ms",
|
|
146
|
+
400: "400ms",
|
|
147
|
+
500: "500ms",
|
|
148
|
+
600: "600ms",
|
|
149
|
+
700: "700ms",
|
|
150
|
+
800: "800ms",
|
|
151
|
+
900: "900ms",
|
|
152
|
+
1000: "1000ms",
|
|
153
|
+
1500: "1500ms",
|
|
154
|
+
2000: "2000ms",
|
|
155
|
+
3000: "3000ms",
|
|
156
|
+
5000: "5000ms",
|
|
157
|
+
},
|
|
158
|
+
animationIteration: {
|
|
159
|
+
infinite: "infinite",
|
|
160
|
+
1: "1",
|
|
161
|
+
2: "2",
|
|
162
|
+
3: "3",
|
|
163
|
+
},
|
|
164
|
+
animationDuration: {
|
|
165
|
+
25: "25ms",
|
|
166
|
+
50: "50ms",
|
|
167
|
+
75: "75ms",
|
|
168
|
+
100: "100ms",
|
|
169
|
+
150: "150ms",
|
|
170
|
+
200: "200ms",
|
|
171
|
+
300: "300ms",
|
|
172
|
+
400: "400ms",
|
|
173
|
+
500: "500ms",
|
|
174
|
+
600: "600ms",
|
|
175
|
+
700: "700ms",
|
|
176
|
+
800: "800ms",
|
|
177
|
+
900: "900ms",
|
|
178
|
+
1000: "1000ms",
|
|
179
|
+
1500: "1500ms",
|
|
180
|
+
2000: "2000ms",
|
|
181
|
+
3000: "3000ms",
|
|
182
|
+
},
|
|
183
|
+
animationFill: {
|
|
184
|
+
none: "none",
|
|
185
|
+
forwards: "forwards",
|
|
186
|
+
backwards: "backwards",
|
|
187
|
+
both: "both",
|
|
188
|
+
},
|
|
189
|
+
borderRadius,
|
|
190
|
+
spacing,
|
|
191
|
+
typography: {
|
|
192
|
+
...Object.fromEntries(
|
|
193
|
+
proseVariants.map((variant) => [
|
|
194
|
+
variant,
|
|
195
|
+
{
|
|
196
|
+
css: {
|
|
197
|
+
maxWidth: "none",
|
|
198
|
+
lineHeight: "1.6", // general baseline line-height for prose content
|
|
199
|
+
...proseSpacing,
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
]),
|
|
203
|
+
),
|
|
204
|
+
inherit: {
|
|
205
|
+
css: {
|
|
206
|
+
"--tw-prose-body": "inherit",
|
|
207
|
+
"--tw-prose-headings": "inherit",
|
|
208
|
+
"--tw-prose-lead": "inherit",
|
|
209
|
+
"--tw-prose-links": "inherit",
|
|
210
|
+
"--tw-prose-bold": "inherit",
|
|
211
|
+
"--tw-prose-counters": "inherit",
|
|
212
|
+
"--tw-prose-bullets": "inherit",
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
// styles that will be always included in the build
|
|
219
|
+
safelist: [
|
|
220
|
+
{
|
|
221
|
+
pattern: /^prose(-[a-z0-9]+)?$/,
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
plugins: [
|
|
225
|
+
animationDelayPlugin,
|
|
226
|
+
animationIterationPlugin,
|
|
227
|
+
animationDuration,
|
|
228
|
+
animationFill,
|
|
229
|
+
require("@tailwindcss/typography"),
|
|
230
|
+
],
|
|
231
|
+
};
|
package/tools/cn.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const tailwindConfig = require('./tailwind-config-
|
|
5
|
+
const tailwindConfig = require('./tailwind-config-DoMZEvsr.cjs');
|
|
6
6
|
|
|
7
7
|
const CLASS_PART_SEPARATOR = '-';
|
|
8
8
|
const createClassGroupUtils = config => {
|
package/tools/cn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as lineHeights, a as heights, s as scales, f as fontWeights, b as fontSizes, c as boxShadows, d as borderRadius, e as colorPalette } from './tailwind-config-
|
|
1
|
+
import { l as lineHeights, a as heights, s as scales, f as fontWeights, b as fontSizes, c as boxShadows, d as borderRadius, e as colorPalette } from './tailwind-config-DVTyRd7x.js';
|
|
2
2
|
|
|
3
3
|
const CLASS_PART_SEPARATOR = '-';
|
|
4
4
|
const createClassGroupUtils = config => {
|
package/tools/copy-assets.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const node_fs = require('node:fs');
|
|
6
|
+
const node_path = require('node:path');
|
|
7
7
|
|
|
8
8
|
const fileExtensionWhitelist = [
|
|
9
9
|
".woff2",
|
|
@@ -15,27 +15,27 @@ const fileExtensionWhitelist = [
|
|
|
15
15
|
];
|
|
16
16
|
function copyFileSync(source, target) {
|
|
17
17
|
let targetFile = target;
|
|
18
|
-
if (
|
|
19
|
-
if (
|
|
20
|
-
targetFile =
|
|
18
|
+
if (node_fs.existsSync(target)) {
|
|
19
|
+
if (node_fs.lstatSync(target).isDirectory()) {
|
|
20
|
+
targetFile = node_path.join(target, node_path.basename(source));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
if (!fileExtensionWhitelist.includes(
|
|
23
|
+
if (!fileExtensionWhitelist.includes(node_path.extname(source))) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
node_fs.copyFileSync(source, targetFile);
|
|
27
27
|
}
|
|
28
28
|
function copyFolderRecursiveSync(source, target) {
|
|
29
29
|
let files = [];
|
|
30
|
-
const targetFolder =
|
|
31
|
-
if (!
|
|
32
|
-
|
|
30
|
+
const targetFolder = node_path.join(target, node_path.basename(source));
|
|
31
|
+
if (!node_fs.existsSync(targetFolder)) {
|
|
32
|
+
node_fs.mkdirSync(targetFolder);
|
|
33
33
|
}
|
|
34
|
-
if (
|
|
35
|
-
files =
|
|
34
|
+
if (node_fs.lstatSync(source).isDirectory()) {
|
|
35
|
+
files = node_fs.readdirSync(source);
|
|
36
36
|
for (const file of files) {
|
|
37
|
-
const curSource =
|
|
38
|
-
if (
|
|
37
|
+
const curSource = node_path.join(source, file);
|
|
38
|
+
if (node_fs.lstatSync(curSource).isDirectory()) {
|
|
39
39
|
copyFolderRecursiveSync(curSource, targetFolder);
|
|
40
40
|
} else {
|
|
41
41
|
copyFileSync(curSource, targetFolder);
|
|
@@ -44,8 +44,8 @@ function copyFolderRecursiveSync(source, target) {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
const copyAssets = (assetDir, assets) => {
|
|
47
|
-
if (!
|
|
48
|
-
|
|
47
|
+
if (!node_fs.existsSync(assetDir)) {
|
|
48
|
+
node_fs.mkdirSync(assetDir, { recursive: true });
|
|
49
49
|
}
|
|
50
50
|
copyFolderRecursiveSync(assets, assetDir);
|
|
51
51
|
};
|
package/tools/copy-assets.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { existsSync, mkdirSync, lstatSync, readdirSync, copyFileSync as copyFileSync$1 } from 'fs';
|
|
2
|
-
import { join, basename, extname } from 'path';
|
|
1
|
+
import { existsSync, mkdirSync, lstatSync, readdirSync, copyFileSync as copyFileSync$1 } from 'node:fs';
|
|
2
|
+
import { join, basename, extname } from 'node:path';
|
|
3
3
|
|
|
4
4
|
const fileExtensionWhitelist = [
|
|
5
5
|
".woff2",
|
package/tools/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const tailwindConfig = require('./tailwind-config-
|
|
5
|
+
const tailwindConfig = require('./tailwind-config-DoMZEvsr.cjs');
|
|
6
6
|
const assets_index = require('./assets/index.cjs');
|
|
7
7
|
const cn = require('./cn.cjs');
|
|
8
8
|
const assets_fonts_index = require('./assets/fonts/index.cjs');
|
package/tools/index.js
CHANGED
|
@@ -1377,5 +1377,68 @@ const grey2 = splitColor(
|
|
|
1377
1377
|
8,
|
|
1378
1378
|
Object.keys(colorPalette.grey).length
|
|
1379
1379
|
);
|
|
1380
|
+
const proseSpacing = {
|
|
1381
|
+
// Paragraphs
|
|
1382
|
+
p: {
|
|
1383
|
+
marginTop: "0.5em",
|
|
1384
|
+
marginBottom: "0.5em",
|
|
1385
|
+
lineHeight: "1.5"
|
|
1386
|
+
// slightly tighter
|
|
1387
|
+
},
|
|
1388
|
+
// Horizontal rule
|
|
1389
|
+
hr: { marginTop: "2em", marginBottom: "2em" },
|
|
1390
|
+
// Headings
|
|
1391
|
+
h1: { marginTop: "0.75em", marginBottom: "0.5em", lineHeight: "1.2" },
|
|
1392
|
+
h2: { marginTop: "0.65em", marginBottom: "0.45em", lineHeight: "1.25" },
|
|
1393
|
+
h3: { marginTop: "0.6em", marginBottom: "0.4em", lineHeight: "1.3" },
|
|
1394
|
+
h4: { marginTop: "0.5em", marginBottom: "0.35em", lineHeight: "1.35" },
|
|
1395
|
+
h5: { marginTop: "0.45em", marginBottom: "0.3em", lineHeight: "1.4" },
|
|
1396
|
+
h6: { marginTop: "0.4em", marginBottom: "0.25em", lineHeight: "1.45" },
|
|
1397
|
+
// Lists
|
|
1398
|
+
ul: {
|
|
1399
|
+
marginTop: "0.5em",
|
|
1400
|
+
marginBottom: "0.5em",
|
|
1401
|
+
paddingLeft: "1.25em"
|
|
1402
|
+
},
|
|
1403
|
+
ol: {
|
|
1404
|
+
marginTop: "0.5em",
|
|
1405
|
+
marginBottom: "0.5em",
|
|
1406
|
+
paddingLeft: "1.25em"
|
|
1407
|
+
},
|
|
1408
|
+
"ul ul, ul ol, ol ul, ol ol": {
|
|
1409
|
+
marginTop: "0.25em",
|
|
1410
|
+
marginBottom: "0.25em"
|
|
1411
|
+
},
|
|
1412
|
+
li: {
|
|
1413
|
+
marginTop: "0.25em",
|
|
1414
|
+
marginBottom: "0.25em"
|
|
1415
|
+
},
|
|
1416
|
+
// Blockquotes
|
|
1417
|
+
blockquote: {
|
|
1418
|
+
marginTop: "0.5em",
|
|
1419
|
+
marginBottom: "0.5em",
|
|
1420
|
+
paddingLeft: "1em",
|
|
1421
|
+
borderLeftWidth: "0.25rem",
|
|
1422
|
+
fontStyle: "italic",
|
|
1423
|
+
color: "inherit"
|
|
1424
|
+
},
|
|
1425
|
+
// Links (restore default link look)
|
|
1426
|
+
a: {
|
|
1427
|
+
color: "var(--tw-prose-links)",
|
|
1428
|
+
textDecoration: "underline",
|
|
1429
|
+
fontWeight: "500",
|
|
1430
|
+
"&:hover": {
|
|
1431
|
+
color: "var(--tw-prose-links-hover, var(--tw-prose-links))",
|
|
1432
|
+
textDecoration: "none"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
// Code blocks
|
|
1436
|
+
pre: {
|
|
1437
|
+
marginTop: "0.5em",
|
|
1438
|
+
marginBottom: "0.5em",
|
|
1439
|
+
lineHeight: "1.45"
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1442
|
+
const proseVariants = ["sm", "base", "lg", "xl"];
|
|
1380
1443
|
|
|
1381
|
-
export { heights as a, fontSizes as b, boxShadows as c, borderRadius as d, colorPalette as e, fontWeights as f, spacing as g, hslColorMap as h, neutral2 as i, neutral3 as j, grey1 as k, lineHeights as l, grey2 as m, neutral1 as n, scales as s };
|
|
1444
|
+
export { heights as a, fontSizes as b, boxShadows as c, borderRadius as d, colorPalette as e, fontWeights as f, spacing as g, hslColorMap as h, neutral2 as i, neutral3 as j, grey1 as k, lineHeights as l, grey2 as m, neutral1 as n, proseVariants as o, proseSpacing as p, scales as s };
|
|
@@ -1379,6 +1379,69 @@ const grey2 = splitColor(
|
|
|
1379
1379
|
8,
|
|
1380
1380
|
Object.keys(colorPalette.grey).length
|
|
1381
1381
|
);
|
|
1382
|
+
const proseSpacing = {
|
|
1383
|
+
// Paragraphs
|
|
1384
|
+
p: {
|
|
1385
|
+
marginTop: "0.5em",
|
|
1386
|
+
marginBottom: "0.5em",
|
|
1387
|
+
lineHeight: "1.5"
|
|
1388
|
+
// slightly tighter
|
|
1389
|
+
},
|
|
1390
|
+
// Horizontal rule
|
|
1391
|
+
hr: { marginTop: "2em", marginBottom: "2em" },
|
|
1392
|
+
// Headings
|
|
1393
|
+
h1: { marginTop: "0.75em", marginBottom: "0.5em", lineHeight: "1.2" },
|
|
1394
|
+
h2: { marginTop: "0.65em", marginBottom: "0.45em", lineHeight: "1.25" },
|
|
1395
|
+
h3: { marginTop: "0.6em", marginBottom: "0.4em", lineHeight: "1.3" },
|
|
1396
|
+
h4: { marginTop: "0.5em", marginBottom: "0.35em", lineHeight: "1.35" },
|
|
1397
|
+
h5: { marginTop: "0.45em", marginBottom: "0.3em", lineHeight: "1.4" },
|
|
1398
|
+
h6: { marginTop: "0.4em", marginBottom: "0.25em", lineHeight: "1.45" },
|
|
1399
|
+
// Lists
|
|
1400
|
+
ul: {
|
|
1401
|
+
marginTop: "0.5em",
|
|
1402
|
+
marginBottom: "0.5em",
|
|
1403
|
+
paddingLeft: "1.25em"
|
|
1404
|
+
},
|
|
1405
|
+
ol: {
|
|
1406
|
+
marginTop: "0.5em",
|
|
1407
|
+
marginBottom: "0.5em",
|
|
1408
|
+
paddingLeft: "1.25em"
|
|
1409
|
+
},
|
|
1410
|
+
"ul ul, ul ol, ol ul, ol ol": {
|
|
1411
|
+
marginTop: "0.25em",
|
|
1412
|
+
marginBottom: "0.25em"
|
|
1413
|
+
},
|
|
1414
|
+
li: {
|
|
1415
|
+
marginTop: "0.25em",
|
|
1416
|
+
marginBottom: "0.25em"
|
|
1417
|
+
},
|
|
1418
|
+
// Blockquotes
|
|
1419
|
+
blockquote: {
|
|
1420
|
+
marginTop: "0.5em",
|
|
1421
|
+
marginBottom: "0.5em",
|
|
1422
|
+
paddingLeft: "1em",
|
|
1423
|
+
borderLeftWidth: "0.25rem",
|
|
1424
|
+
fontStyle: "italic",
|
|
1425
|
+
color: "inherit"
|
|
1426
|
+
},
|
|
1427
|
+
// Links (restore default link look)
|
|
1428
|
+
a: {
|
|
1429
|
+
color: "var(--tw-prose-links)",
|
|
1430
|
+
textDecoration: "underline",
|
|
1431
|
+
fontWeight: "500",
|
|
1432
|
+
"&:hover": {
|
|
1433
|
+
color: "var(--tw-prose-links-hover, var(--tw-prose-links))",
|
|
1434
|
+
textDecoration: "none"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
// Code blocks
|
|
1438
|
+
pre: {
|
|
1439
|
+
marginTop: "0.5em",
|
|
1440
|
+
marginBottom: "0.5em",
|
|
1441
|
+
lineHeight: "1.45"
|
|
1442
|
+
}
|
|
1443
|
+
};
|
|
1444
|
+
const proseVariants = ["sm", "base", "lg", "xl"];
|
|
1382
1445
|
|
|
1383
1446
|
exports.borderRadius = borderRadius;
|
|
1384
1447
|
exports.boxShadows = boxShadows;
|
|
@@ -1393,5 +1456,7 @@ exports.lineHeights = lineHeights;
|
|
|
1393
1456
|
exports.neutral1 = neutral1;
|
|
1394
1457
|
exports.neutral2 = neutral2;
|
|
1395
1458
|
exports.neutral3 = neutral3;
|
|
1459
|
+
exports.proseSpacing = proseSpacing;
|
|
1460
|
+
exports.proseVariants = proseVariants;
|
|
1396
1461
|
exports.scales = scales;
|
|
1397
1462
|
exports.spacing = spacing;
|