@vef-framework/shared 1.0.101 → 1.0.102

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.
@@ -1,356 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const themeVariables = {
7
- colorChart1: "hsl(221.2 83.2% 53.3%)",
8
- colorChart2: "hsl(216 92% 60%)",
9
- colorChart3: "hsl(212 95% 68%)",
10
- colorChart4: "hsl(210 98% 78%)",
11
- colorChart5: "hsl(212 97% 87%)",
12
- blue: "var(--vef-blue)",
13
- purple: "var(--vef-purple)",
14
- cyan: "var(--vef-cyan)",
15
- green: "var(--vef-green)",
16
- magenta: "var(--vef-magenta)",
17
- pink: "var(--vef-pink)",
18
- red: "var(--vef-red)",
19
- orange: "var(--vef-orange)",
20
- yellow: "var(--vef-yellow)",
21
- volcano: "var(--vef-volcano)",
22
- geekblue: "var(--vef-geekblue)",
23
- gold: "var(--vef-gold)",
24
- lime: "var(--vef-lime)",
25
- colorPrimary: "var(--vef-color-primary)",
26
- colorSuccess: "var(--vef-color-success)",
27
- colorWarning: "var(--vef-color-warning)",
28
- colorError: "var(--vef-color-error)",
29
- colorInfo: "var(--vef-color-info)",
30
- colorLink: "var(--vef-color-link)",
31
- colorTextBase: "var(--vef-color-text-base)",
32
- colorBgBase: "var(--vef-color-bg-base)",
33
- fontFamily: "var(--vef-font-family)",
34
- fontFamilyCode: "var(--vef-font-family-code)",
35
- fontSize: "var(--vef-font-size)",
36
- lineWidth: "var(--vef-line-width)",
37
- lineType: "var(--vef-line-type)",
38
- motionEaseOutCirc: "var(--vef-motion-ease-out-circ)",
39
- motionEaseInOutCirc: "var(--vef-motion-ease-in-out-circ)",
40
- motionEaseOut: "var(--vef-motion-ease-out)",
41
- motionEaseInOut: "var(--vef-motion-ease-in-out)",
42
- motionEaseOutBack: "var(--vef-motion-ease-out-back)",
43
- motionEaseInBack: "var(--vef-motion-ease-in-back)",
44
- motionEaseInQuint: "var(--vef-motion-ease-in-quint)",
45
- motionEaseOutQuint: "var(--vef-motion-ease-out-quint)",
46
- borderRadius: "var(--vef-border-radius)",
47
- sizePopupArrow: "var(--vef-size-popup-arrow)",
48
- controlHeight: "var(--vef-control-height)",
49
- zIndexBase: "var(--vef-z-index-base)",
50
- zIndexPopupBase: "var(--vef-z-index-popup-base)",
51
- opacityImage: "var(--vef-opacity-image)",
52
- colorBgLayout: "var(--vef-color-bg-layout)",
53
- colorBgSpotlight: "var(--vef-color-bg-spotlight)",
54
- blue1: "var(--vef-blue-1)",
55
- blue2: "var(--vef-blue-2)",
56
- blue3: "var(--vef-blue-3)",
57
- blue4: "var(--vef-blue-4)",
58
- blue5: "var(--vef-blue-5)",
59
- blue6: "var(--vef-blue-6)",
60
- blue7: "var(--vef-blue-7)",
61
- blue8: "var(--vef-blue-8)",
62
- blue9: "var(--vef-blue-9)",
63
- blue10: "var(--vef-blue-10)",
64
- purple1: "var(--vef-purple-1)",
65
- purple2: "var(--vef-purple-2)",
66
- purple3: "var(--vef-purple-3)",
67
- purple4: "var(--vef-purple-4)",
68
- purple5: "var(--vef-purple-5)",
69
- purple6: "var(--vef-purple-6)",
70
- purple7: "var(--vef-purple-7)",
71
- purple8: "var(--vef-purple-8)",
72
- purple9: "var(--vef-purple-9)",
73
- purple10: "var(--vef-purple-10)",
74
- cyan1: "var(--vef-cyan-1)",
75
- cyan2: "var(--vef-cyan-2)",
76
- cyan3: "var(--vef-cyan-3)",
77
- cyan4: "var(--vef-cyan-4)",
78
- cyan5: "var(--vef-cyan-5)",
79
- cyan6: "var(--vef-cyan-6)",
80
- cyan7: "var(--vef-cyan-7)",
81
- cyan8: "var(--vef-cyan-8)",
82
- cyan9: "var(--vef-cyan-9)",
83
- cyan10: "var(--vef-cyan-10)",
84
- green1: "var(--vef-green-1)",
85
- green2: "var(--vef-green-2)",
86
- green3: "var(--vef-green-3)",
87
- green4: "var(--vef-green-4)",
88
- green5: "var(--vef-green-5)",
89
- green6: "var(--vef-green-6)",
90
- green7: "var(--vef-green-7)",
91
- green8: "var(--vef-green-8)",
92
- green9: "var(--vef-green-9)",
93
- green10: "var(--vef-green-10)",
94
- magenta1: "var(--vef-magenta-1)",
95
- magenta2: "var(--vef-magenta-2)",
96
- magenta3: "var(--vef-magenta-3)",
97
- magenta4: "var(--vef-magenta-4)",
98
- magenta5: "var(--vef-magenta-5)",
99
- magenta6: "var(--vef-magenta-6)",
100
- magenta7: "var(--vef-magenta-7)",
101
- magenta8: "var(--vef-magenta-8)",
102
- magenta9: "var(--vef-magenta-9)",
103
- magenta10: "var(--vef-magenta-10)",
104
- pink1: "var(--vef-pink-1)",
105
- pink2: "var(--vef-pink-2)",
106
- pink3: "var(--vef-pink-3)",
107
- pink4: "var(--vef-pink-4)",
108
- pink5: "var(--vef-pink-5)",
109
- pink6: "var(--vef-pink-6)",
110
- pink7: "var(--vef-pink-7)",
111
- pink8: "var(--vef-pink-8)",
112
- pink9: "var(--vef-pink-9)",
113
- pink10: "var(--vef-pink-10)",
114
- red1: "var(--vef-red-1)",
115
- red2: "var(--vef-red-2)",
116
- red3: "var(--vef-red-3)",
117
- red4: "var(--vef-red-4)",
118
- red5: "var(--vef-red-5)",
119
- red6: "var(--vef-red-6)",
120
- red7: "var(--vef-red-7)",
121
- red8: "var(--vef-red-8)",
122
- red9: "var(--vef-red-9)",
123
- red10: "var(--vef-red-10)",
124
- orange1: "var(--vef-orange-1)",
125
- orange2: "var(--vef-orange-2)",
126
- orange3: "var(--vef-orange-3)",
127
- orange4: "var(--vef-orange-4)",
128
- orange5: "var(--vef-orange-5)",
129
- orange6: "var(--vef-orange-6)",
130
- orange7: "var(--vef-orange-7)",
131
- orange8: "var(--vef-orange-8)",
132
- orange9: "var(--vef-orange-9)",
133
- orange10: "var(--vef-orange-10)",
134
- yellow1: "var(--vef-yellow-1)",
135
- yellow2: "var(--vef-yellow-2)",
136
- yellow3: "var(--vef-yellow-3)",
137
- yellow4: "var(--vef-yellow-4)",
138
- yellow5: "var(--vef-yellow-5)",
139
- yellow6: "var(--vef-yellow-6)",
140
- yellow7: "var(--vef-yellow-7)",
141
- yellow8: "var(--vef-yellow-8)",
142
- yellow9: "var(--vef-yellow-9)",
143
- yellow10: "var(--vef-yellow-10)",
144
- volcano1: "var(--vef-volcano-1)",
145
- volcano2: "var(--vef-volcano-2)",
146
- volcano3: "var(--vef-volcano-3)",
147
- volcano4: "var(--vef-volcano-4)",
148
- volcano5: "var(--vef-volcano-5)",
149
- volcano6: "var(--vef-volcano-6)",
150
- volcano7: "var(--vef-volcano-7)",
151
- volcano8: "var(--vef-volcano-8)",
152
- volcano9: "var(--vef-volcano-9)",
153
- volcano10: "var(--vef-volcano-10)",
154
- geekblue1: "var(--vef-geekblue-1)",
155
- geekblue2: "var(--vef-geekblue-2)",
156
- geekblue3: "var(--vef-geekblue-3)",
157
- geekblue4: "var(--vef-geekblue-4)",
158
- geekblue5: "var(--vef-geekblue-5)",
159
- geekblue6: "var(--vef-geekblue-6)",
160
- geekblue7: "var(--vef-geekblue-7)",
161
- geekblue8: "var(--vef-geekblue-8)",
162
- geekblue9: "var(--vef-geekblue-9)",
163
- geekblue10: "var(--vef-geekblue-10)",
164
- gold1: "var(--vef-gold-1)",
165
- gold2: "var(--vef-gold-2)",
166
- gold3: "var(--vef-gold-3)",
167
- gold4: "var(--vef-gold-4)",
168
- gold5: "var(--vef-gold-5)",
169
- gold6: "var(--vef-gold-6)",
170
- gold7: "var(--vef-gold-7)",
171
- gold8: "var(--vef-gold-8)",
172
- gold9: "var(--vef-gold-9)",
173
- gold10: "var(--vef-gold-10)",
174
- lime1: "var(--vef-lime-1)",
175
- lime2: "var(--vef-lime-2)",
176
- lime3: "var(--vef-lime-3)",
177
- lime4: "var(--vef-lime-4)",
178
- lime5: "var(--vef-lime-5)",
179
- lime6: "var(--vef-lime-6)",
180
- lime7: "var(--vef-lime-7)",
181
- lime8: "var(--vef-lime-8)",
182
- lime9: "var(--vef-lime-9)",
183
- lime10: "var(--vef-lime-10)",
184
- colorText: "var(--vef-color-text)",
185
- colorTextSecondary: "var(--vef-color-text-secondary)",
186
- colorTextTertiary: "var(--vef-color-text-tertiary)",
187
- colorTextQuaternary: "var(--vef-color-text-quaternary)",
188
- colorTextSlate: "#64748b",
189
- colorFill: "var(--vef-color-fill)",
190
- colorFillSecondary: "var(--vef-color-fill-secondary)",
191
- colorFillTertiary: "var(--vef-color-fill-tertiary)",
192
- colorFillQuaternary: "var(--vef-color-fill-quaternary)",
193
- colorBgSolid: "var(--vef-color-bg-solid)",
194
- colorBgSolidHover: "var(--vef-color-bg-solid-hover)",
195
- colorBgSolidActive: "var(--vef-color-bg-solid-active)",
196
- colorBgContainer: "var(--vef-color-bg-container)",
197
- colorBgElevated: "var(--vef-color-bg-elevated)",
198
- colorBgBlur: "var(--vef-color-bg-blur)",
199
- colorBorder: "var(--vef-color-border)",
200
- colorBorderSecondary: "var(--vef-color-border-secondary)",
201
- colorPrimaryBg: "var(--vef-color-primary-bg)",
202
- colorPrimaryBgHover: "var(--vef-color-primary-bg-hover)",
203
- colorPrimaryBorder: "var(--vef-color-primary-border)",
204
- colorPrimaryBorderHover: "var(--vef-color-primary-border-hover)",
205
- colorPrimaryHover: "var(--vef-color-primary-hover)",
206
- colorPrimaryActive: "var(--vef-color-primary-active)",
207
- colorPrimaryTextHover: "var(--vef-color-primary-text-hover)",
208
- colorPrimaryText: "var(--vef-color-primary-text)",
209
- colorPrimaryTextActive: "var(--vef-color-primary-text-active)",
210
- colorSuccessBg: "var(--vef-color-success-bg)",
211
- colorSuccessBgHover: "var(--vef-color-success-bg-hover)",
212
- colorSuccessBorder: "var(--vef-color-success-border)",
213
- colorSuccessBorderHover: "var(--vef-color-success-border-hover)",
214
- colorSuccessHover: "var(--vef-color-success-hover)",
215
- colorSuccessActive: "var(--vef-color-success-active)",
216
- colorSuccessTextHover: "var(--vef-color-success-text-hover)",
217
- colorSuccessText: "var(--vef-color-success-text)",
218
- colorSuccessTextActive: "var(--vef-color-success-text-active)",
219
- colorErrorBg: "var(--vef-color-error-bg)",
220
- colorErrorBgHover: "var(--vef-color-error-bg-hover)",
221
- colorErrorBgFilledHover: "var(--vef-color-error-bg-filled-hover)",
222
- colorErrorBgActive: "var(--vef-color-error-bg-active)",
223
- colorErrorBorder: "var(--vef-color-error-border)",
224
- colorErrorBorderHover: "var(--vef-color-error-border-hover)",
225
- colorErrorHover: "var(--vef-color-error-hover)",
226
- colorErrorActive: "var(--vef-color-error-active)",
227
- colorErrorTextHover: "var(--vef-color-error-text-hover)",
228
- colorErrorText: "var(--vef-color-error-text)",
229
- colorErrorTextActive: "var(--vef-color-error-text-active)",
230
- colorWarningBg: "var(--vef-color-warning-bg)",
231
- colorWarningBgHover: "var(--vef-color-warning-bg-hover)",
232
- colorWarningBorder: "var(--vef-color-warning-border)",
233
- colorWarningBorderHover: "var(--vef-color-warning-border-hover)",
234
- colorWarningHover: "var(--vef-color-warning-hover)",
235
- colorWarningActive: "var(--vef-color-warning-active)",
236
- colorWarningTextHover: "var(--vef-color-warning-text-hover)",
237
- colorWarningText: "var(--vef-color-warning-text)",
238
- colorWarningTextActive: "var(--vef-color-warning-text-active)",
239
- colorInfoBg: "var(--vef-color-info-bg)",
240
- colorInfoBgHover: "var(--vef-color-info-bg-hover)",
241
- colorInfoBorder: "var(--vef-color-info-border)",
242
- colorInfoBorderHover: "var(--vef-color-info-border-hover)",
243
- colorInfoHover: "var(--vef-color-info-hover)",
244
- colorInfoActive: "var(--vef-color-info-active)",
245
- colorInfoTextHover: "var(--vef-color-info-text-hover)",
246
- colorInfoText: "var(--vef-color-info-text)",
247
- colorInfoTextActive: "var(--vef-color-info-text-active)",
248
- colorLinkHover: "var(--vef-color-link-hover)",
249
- colorLinkActive: "var(--vef-color-link-active)",
250
- colorBgMask: "var(--vef-color-bg-mask)",
251
- colorWhite: "var(--vef-color-white)",
252
- fontSizeSm: "var(--vef-font-size-sm)",
253
- fontSizeLg: "var(--vef-font-size-lg)",
254
- fontSizeXl: "var(--vef-font-size-xl)",
255
- fontSizeHeading1: "var(--vef-font-size-heading-1)",
256
- fontSizeHeading2: "var(--vef-font-size-heading-2)",
257
- fontSizeHeading3: "var(--vef-font-size-heading-3)",
258
- fontSizeHeading4: "var(--vef-font-size-heading-4)",
259
- fontSizeHeading5: "var(--vef-font-size-heading-5)",
260
- lineHeight: "var(--vef-line-height)",
261
- lineHeightLg: "var(--vef-line-height-lg)",
262
- lineHeightSm: "var(--vef-line-height-sm)",
263
- fontHeight: "var(--vef-font-height)",
264
- fontHeightLg: "var(--vef-font-height-lg)",
265
- fontHeightSm: "var(--vef-font-height-sm)",
266
- lineHeightHeading1: "var(--vef-line-height-heading-1)",
267
- lineHeightHeading2: "var(--vef-line-height-heading-2)",
268
- lineHeightHeading3: "var(--vef-line-height-heading-3)",
269
- lineHeightHeading4: "var(--vef-line-height-heading-4)",
270
- lineHeightHeading5: "var(--vef-line-height-heading-5)",
271
- controlHeightSm: "var(--vef-control-height-sm)",
272
- controlHeightXs: "var(--vef-control-height-xs)",
273
- controlHeightLg: "var(--vef-control-height-lg)",
274
- motionDurationFast: "var(--vef-motion-duration-fast)",
275
- motionDurationMid: "var(--vef-motion-duration-mid)",
276
- motionDurationSlow: "var(--vef-motion-duration-slow)",
277
- lineWidthBold: "var(--vef-line-width-bold)",
278
- borderRadiusXs: "var(--vef-border-radius-xs)",
279
- borderRadiusSm: "var(--vef-border-radius-sm)",
280
- borderRadiusLg: "var(--vef-border-radius-lg)",
281
- borderRadiusOuter: "var(--vef-border-radius-outer)",
282
- colorFillContent: "var(--vef-color-fill-content)",
283
- colorFillContentHover: "var(--vef-color-fill-content-hover)",
284
- colorFillAlt: "var(--vef-color-fill-alter)",
285
- colorBgContainerDisabled: "var(--vef-color-bg-container-disabled)",
286
- colorBorderBg: "var(--vef-color-border-bg)",
287
- colorSplit: "var(--vef-color-split)",
288
- colorTextPlaceholder: "var(--vef-color-text-placeholder)",
289
- colorTextDisabled: "var(--vef-color-text-disabled)",
290
- colorTextHeading: "var(--vef-color-text-heading)",
291
- colorTextLabel: "var(--vef-color-text-label)",
292
- colorTextDescription: "var(--vef-color-text-description)",
293
- colorTextLightSolid: "var(--vef-color-text-light-solid)",
294
- colorHighlight: "var(--vef-color-highlight)",
295
- colorBgTextHover: "var(--vef-color-bg-text-hover)",
296
- colorBgTextActive: "var(--vef-color-bg-text-active)",
297
- colorIcon: "var(--vef-color-icon)",
298
- colorIconHover: "var(--vef-color-icon-hover)",
299
- colorErrorOutline: "var(--vef-color-error-outline)",
300
- colorWarningOutline: "var(--vef-color-warning-outline)",
301
- fontSizeIcon: "var(--vef-font-size-icon)",
302
- lineWidthFocus: "var(--vef-line-width-focus)",
303
- controlOutlineWidth: "var(--vef-control-outline-width)",
304
- controlInteractiveSize: "var(--vef-control-interactive-size)",
305
- controlItemBgHover: "var(--vef-control-item-bg-hover)",
306
- controlItemBgActive: "var(--vef-control-item-bg-active)",
307
- controlItemBgActiveHover: "var(--vef-control-item-bg-active-hover)",
308
- controlItemBgActiveDisabled: "var(--vef-control-item-bg-active-disabled)",
309
- controlTmpOutline: "var(--vef-control-tmp-outline)",
310
- controlOutline: "var(--vef-control-outline)",
311
- fontWeightStrong: "var(--vef-font-weight-strong)",
312
- opacityLoading: "var(--vef-opacity-loading)",
313
- linkDecoration: "var(--vef-link-decoration)",
314
- linkHoverDecoration: "var(--vef-link-hover-decoration)",
315
- linkFocusDecoration: "var(--vef-link-focus-decoration)",
316
- controlPaddingHorizontal: "var(--vef-control-padding-horizontal)",
317
- controlPaddingHorizontalSm: "var(--vef-control-padding-horizontal-sm)",
318
- paddingXxs: "var(--vef-padding-xxs)",
319
- paddingXs: "var(--vef-padding-xs)",
320
- paddingSm: "var(--vef-padding-sm)",
321
- padding: "var(--vef-padding)",
322
- paddingMd: "var(--vef-padding-md)",
323
- paddingLg: "var(--vef-padding-lg)",
324
- paddingXl: "var(--vef-padding-xl)",
325
- paddingContentHorizontalLg: "var(--vef-padding-content-horizontal-lg)",
326
- paddingContentVerticalLg: "var(--vef-padding-content-vertical-lg)",
327
- paddingContentHorizontal: "var(--vef-padding-content-horizontal)",
328
- paddingContentVertical: "var(--vef-padding-content-vertical)",
329
- paddingContentHorizontalSm: "var(--vef-padding-content-horizontal-sm)",
330
- paddingContentVerticalSm: "var(--vef-padding-content-vertical-sm)",
331
- marginXxs: "var(--vef-margin-xxs)",
332
- marginXs: "var(--vef-margin-xs)",
333
- marginSm: "var(--vef-margin-sm)",
334
- margin: "var(--vef-margin)",
335
- marginMd: "var(--vef-margin-md)",
336
- marginLg: "var(--vef-margin-lg)",
337
- marginXl: "var(--vef-margin-xl)",
338
- marginXxl: "var(--vef-margin-xxl)",
339
- boxShadow: "var(--vef-box-shadow)",
340
- boxShadowSecondary: "var(--vef-box-shadow-secondary)",
341
- boxShadowTertiary: "var(--vef-box-shadow-tertiary)",
342
- boxShadowPopoverArrow: "var(--vef-box-shadow-popover-arrow)",
343
- boxShadowCard: "var(--vef-box-shadow-card)",
344
- boxShadowDrawerRight: "var(--vef-box-shadow-drawer-right)",
345
- boxShadowDrawerLeft: "var(--vef-box-shadow-drawer-left)",
346
- boxShadowDrawerUp: "var(--vef-box-shadow-drawer-up)",
347
- boxShadowDrawerDown: "var(--vef-box-shadow-drawer-down)",
348
- boxShadowTabsOverflowLeft: "var(--vef-box-shadow-tabs-overflow-left)",
349
- boxShadowTabsOverflowRight: "var(--vef-box-shadow-tabs-overflow-right)",
350
- boxShadowTabsOverflowTop: "var(--vef-box-shadow-tabs-overflow-top)",
351
- boxShadowTabsOverflowBottom: "var(--vef-box-shadow-tabs-overflow-bottom)",
352
- boxShadowElevated: "0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"
353
- };
354
-
355
- exports.themeVariables = themeVariables;
356
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.334Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const themeVariables={colorChart1:"hsl(221.2 83.2% 53.3%)",colorChart2:"hsl(216 92% 60%)",colorChart3:"hsl(212 95% 68%)",colorChart4:"hsl(210 98% 78%)",colorChart5:"hsl(212 97% 87%)",blue:"var(--vef-blue)",purple:"var(--vef-purple)",cyan:"var(--vef-cyan)",green:"var(--vef-green)",magenta:"var(--vef-magenta)",pink:"var(--vef-pink)",red:"var(--vef-red)",orange:"var(--vef-orange)",yellow:"var(--vef-yellow)",volcano:"var(--vef-volcano)",geekblue:"var(--vef-geekblue)",gold:"var(--vef-gold)",lime:"var(--vef-lime)",colorPrimary:"var(--vef-color-primary)",colorSuccess:"var(--vef-color-success)",colorWarning:"var(--vef-color-warning)",colorError:"var(--vef-color-error)",colorInfo:"var(--vef-color-info)",colorLink:"var(--vef-color-link)",colorTextBase:"var(--vef-color-text-base)",colorBgBase:"var(--vef-color-bg-base)",fontFamily:"var(--vef-font-family)",fontFamilyCode:"var(--vef-font-family-code)",fontSize:"var(--vef-font-size)",lineWidth:"var(--vef-line-width)",lineType:"var(--vef-line-type)",motionEaseOutCirc:"var(--vef-motion-ease-out-circ)",motionEaseInOutCirc:"var(--vef-motion-ease-in-out-circ)",motionEaseOut:"var(--vef-motion-ease-out)",motionEaseInOut:"var(--vef-motion-ease-in-out)",motionEaseOutBack:"var(--vef-motion-ease-out-back)",motionEaseInBack:"var(--vef-motion-ease-in-back)",motionEaseInQuint:"var(--vef-motion-ease-in-quint)",motionEaseOutQuint:"var(--vef-motion-ease-out-quint)",borderRadius:"var(--vef-border-radius)",sizePopupArrow:"var(--vef-size-popup-arrow)",controlHeight:"var(--vef-control-height)",zIndexBase:"var(--vef-z-index-base)",zIndexPopupBase:"var(--vef-z-index-popup-base)",opacityImage:"var(--vef-opacity-image)",colorBgLayout:"var(--vef-color-bg-layout)",colorBgSpotlight:"var(--vef-color-bg-spotlight)",blue1:"var(--vef-blue-1)",blue2:"var(--vef-blue-2)",blue3:"var(--vef-blue-3)",blue4:"var(--vef-blue-4)",blue5:"var(--vef-blue-5)",blue6:"var(--vef-blue-6)",blue7:"var(--vef-blue-7)",blue8:"var(--vef-blue-8)",blue9:"var(--vef-blue-9)",blue10:"var(--vef-blue-10)",purple1:"var(--vef-purple-1)",purple2:"var(--vef-purple-2)",purple3:"var(--vef-purple-3)",purple4:"var(--vef-purple-4)",purple5:"var(--vef-purple-5)",purple6:"var(--vef-purple-6)",purple7:"var(--vef-purple-7)",purple8:"var(--vef-purple-8)",purple9:"var(--vef-purple-9)",purple10:"var(--vef-purple-10)",cyan1:"var(--vef-cyan-1)",cyan2:"var(--vef-cyan-2)",cyan3:"var(--vef-cyan-3)",cyan4:"var(--vef-cyan-4)",cyan5:"var(--vef-cyan-5)",cyan6:"var(--vef-cyan-6)",cyan7:"var(--vef-cyan-7)",cyan8:"var(--vef-cyan-8)",cyan9:"var(--vef-cyan-9)",cyan10:"var(--vef-cyan-10)",green1:"var(--vef-green-1)",green2:"var(--vef-green-2)",green3:"var(--vef-green-3)",green4:"var(--vef-green-4)",green5:"var(--vef-green-5)",green6:"var(--vef-green-6)",green7:"var(--vef-green-7)",green8:"var(--vef-green-8)",green9:"var(--vef-green-9)",green10:"var(--vef-green-10)",magenta1:"var(--vef-magenta-1)",magenta2:"var(--vef-magenta-2)",magenta3:"var(--vef-magenta-3)",magenta4:"var(--vef-magenta-4)",magenta5:"var(--vef-magenta-5)",magenta6:"var(--vef-magenta-6)",magenta7:"var(--vef-magenta-7)",magenta8:"var(--vef-magenta-8)",magenta9:"var(--vef-magenta-9)",magenta10:"var(--vef-magenta-10)",pink1:"var(--vef-pink-1)",pink2:"var(--vef-pink-2)",pink3:"var(--vef-pink-3)",pink4:"var(--vef-pink-4)",pink5:"var(--vef-pink-5)",pink6:"var(--vef-pink-6)",pink7:"var(--vef-pink-7)",pink8:"var(--vef-pink-8)",pink9:"var(--vef-pink-9)",pink10:"var(--vef-pink-10)",red1:"var(--vef-red-1)",red2:"var(--vef-red-2)",red3:"var(--vef-red-3)",red4:"var(--vef-red-4)",red5:"var(--vef-red-5)",red6:"var(--vef-red-6)",red7:"var(--vef-red-7)",red8:"var(--vef-red-8)",red9:"var(--vef-red-9)",red10:"var(--vef-red-10)",orange1:"var(--vef-orange-1)",orange2:"var(--vef-orange-2)",orange3:"var(--vef-orange-3)",orange4:"var(--vef-orange-4)",orange5:"var(--vef-orange-5)",orange6:"var(--vef-orange-6)",orange7:"var(--vef-orange-7)",orange8:"var(--vef-orange-8)",orange9:"var(--vef-orange-9)",orange10:"var(--vef-orange-10)",yellow1:"var(--vef-yellow-1)",yellow2:"var(--vef-yellow-2)",yellow3:"var(--vef-yellow-3)",yellow4:"var(--vef-yellow-4)",yellow5:"var(--vef-yellow-5)",yellow6:"var(--vef-yellow-6)",yellow7:"var(--vef-yellow-7)",yellow8:"var(--vef-yellow-8)",yellow9:"var(--vef-yellow-9)",yellow10:"var(--vef-yellow-10)",volcano1:"var(--vef-volcano-1)",volcano2:"var(--vef-volcano-2)",volcano3:"var(--vef-volcano-3)",volcano4:"var(--vef-volcano-4)",volcano5:"var(--vef-volcano-5)",volcano6:"var(--vef-volcano-6)",volcano7:"var(--vef-volcano-7)",volcano8:"var(--vef-volcano-8)",volcano9:"var(--vef-volcano-9)",volcano10:"var(--vef-volcano-10)",geekblue1:"var(--vef-geekblue-1)",geekblue2:"var(--vef-geekblue-2)",geekblue3:"var(--vef-geekblue-3)",geekblue4:"var(--vef-geekblue-4)",geekblue5:"var(--vef-geekblue-5)",geekblue6:"var(--vef-geekblue-6)",geekblue7:"var(--vef-geekblue-7)",geekblue8:"var(--vef-geekblue-8)",geekblue9:"var(--vef-geekblue-9)",geekblue10:"var(--vef-geekblue-10)",gold1:"var(--vef-gold-1)",gold2:"var(--vef-gold-2)",gold3:"var(--vef-gold-3)",gold4:"var(--vef-gold-4)",gold5:"var(--vef-gold-5)",gold6:"var(--vef-gold-6)",gold7:"var(--vef-gold-7)",gold8:"var(--vef-gold-8)",gold9:"var(--vef-gold-9)",gold10:"var(--vef-gold-10)",lime1:"var(--vef-lime-1)",lime2:"var(--vef-lime-2)",lime3:"var(--vef-lime-3)",lime4:"var(--vef-lime-4)",lime5:"var(--vef-lime-5)",lime6:"var(--vef-lime-6)",lime7:"var(--vef-lime-7)",lime8:"var(--vef-lime-8)",lime9:"var(--vef-lime-9)",lime10:"var(--vef-lime-10)",colorText:"var(--vef-color-text)",colorTextSecondary:"var(--vef-color-text-secondary)",colorTextTertiary:"var(--vef-color-text-tertiary)",colorTextQuaternary:"var(--vef-color-text-quaternary)",colorTextSlate:"#64748b",colorFill:"var(--vef-color-fill)",colorFillSecondary:"var(--vef-color-fill-secondary)",colorFillTertiary:"var(--vef-color-fill-tertiary)",colorFillQuaternary:"var(--vef-color-fill-quaternary)",colorBgSolid:"var(--vef-color-bg-solid)",colorBgSolidHover:"var(--vef-color-bg-solid-hover)",colorBgSolidActive:"var(--vef-color-bg-solid-active)",colorBgContainer:"var(--vef-color-bg-container)",colorBgElevated:"var(--vef-color-bg-elevated)",colorBgBlur:"var(--vef-color-bg-blur)",colorBorder:"var(--vef-color-border)",colorBorderSecondary:"var(--vef-color-border-secondary)",colorPrimaryBg:"var(--vef-color-primary-bg)",colorPrimaryBgHover:"var(--vef-color-primary-bg-hover)",colorPrimaryBorder:"var(--vef-color-primary-border)",colorPrimaryBorderHover:"var(--vef-color-primary-border-hover)",colorPrimaryHover:"var(--vef-color-primary-hover)",colorPrimaryActive:"var(--vef-color-primary-active)",colorPrimaryTextHover:"var(--vef-color-primary-text-hover)",colorPrimaryText:"var(--vef-color-primary-text)",colorPrimaryTextActive:"var(--vef-color-primary-text-active)",colorSuccessBg:"var(--vef-color-success-bg)",colorSuccessBgHover:"var(--vef-color-success-bg-hover)",colorSuccessBorder:"var(--vef-color-success-border)",colorSuccessBorderHover:"var(--vef-color-success-border-hover)",colorSuccessHover:"var(--vef-color-success-hover)",colorSuccessActive:"var(--vef-color-success-active)",colorSuccessTextHover:"var(--vef-color-success-text-hover)",colorSuccessText:"var(--vef-color-success-text)",colorSuccessTextActive:"var(--vef-color-success-text-active)",colorErrorBg:"var(--vef-color-error-bg)",colorErrorBgHover:"var(--vef-color-error-bg-hover)",colorErrorBgFilledHover:"var(--vef-color-error-bg-filled-hover)",colorErrorBgActive:"var(--vef-color-error-bg-active)",colorErrorBorder:"var(--vef-color-error-border)",colorErrorBorderHover:"var(--vef-color-error-border-hover)",colorErrorHover:"var(--vef-color-error-hover)",colorErrorActive:"var(--vef-color-error-active)",colorErrorTextHover:"var(--vef-color-error-text-hover)",colorErrorText:"var(--vef-color-error-text)",colorErrorTextActive:"var(--vef-color-error-text-active)",colorWarningBg:"var(--vef-color-warning-bg)",colorWarningBgHover:"var(--vef-color-warning-bg-hover)",colorWarningBorder:"var(--vef-color-warning-border)",colorWarningBorderHover:"var(--vef-color-warning-border-hover)",colorWarningHover:"var(--vef-color-warning-hover)",colorWarningActive:"var(--vef-color-warning-active)",colorWarningTextHover:"var(--vef-color-warning-text-hover)",colorWarningText:"var(--vef-color-warning-text)",colorWarningTextActive:"var(--vef-color-warning-text-active)",colorInfoBg:"var(--vef-color-info-bg)",colorInfoBgHover:"var(--vef-color-info-bg-hover)",colorInfoBorder:"var(--vef-color-info-border)",colorInfoBorderHover:"var(--vef-color-info-border-hover)",colorInfoHover:"var(--vef-color-info-hover)",colorInfoActive:"var(--vef-color-info-active)",colorInfoTextHover:"var(--vef-color-info-text-hover)",colorInfoText:"var(--vef-color-info-text)",colorInfoTextActive:"var(--vef-color-info-text-active)",colorLinkHover:"var(--vef-color-link-hover)",colorLinkActive:"var(--vef-color-link-active)",colorBgMask:"var(--vef-color-bg-mask)",colorWhite:"var(--vef-color-white)",fontSizeSm:"var(--vef-font-size-sm)",fontSizeLg:"var(--vef-font-size-lg)",fontSizeXl:"var(--vef-font-size-xl)",fontSizeHeading1:"var(--vef-font-size-heading-1)",fontSizeHeading2:"var(--vef-font-size-heading-2)",fontSizeHeading3:"var(--vef-font-size-heading-3)",fontSizeHeading4:"var(--vef-font-size-heading-4)",fontSizeHeading5:"var(--vef-font-size-heading-5)",lineHeight:"var(--vef-line-height)",lineHeightLg:"var(--vef-line-height-lg)",lineHeightSm:"var(--vef-line-height-sm)",fontHeight:"var(--vef-font-height)",fontHeightLg:"var(--vef-font-height-lg)",fontHeightSm:"var(--vef-font-height-sm)",lineHeightHeading1:"var(--vef-line-height-heading-1)",lineHeightHeading2:"var(--vef-line-height-heading-2)",lineHeightHeading3:"var(--vef-line-height-heading-3)",lineHeightHeading4:"var(--vef-line-height-heading-4)",lineHeightHeading5:"var(--vef-line-height-heading-5)",controlHeightSm:"var(--vef-control-height-sm)",controlHeightXs:"var(--vef-control-height-xs)",controlHeightLg:"var(--vef-control-height-lg)",motionDurationFast:"var(--vef-motion-duration-fast)",motionDurationMid:"var(--vef-motion-duration-mid)",motionDurationSlow:"var(--vef-motion-duration-slow)",lineWidthBold:"var(--vef-line-width-bold)",borderRadiusXs:"var(--vef-border-radius-xs)",borderRadiusSm:"var(--vef-border-radius-sm)",borderRadiusLg:"var(--vef-border-radius-lg)",borderRadiusOuter:"var(--vef-border-radius-outer)",colorFillContent:"var(--vef-color-fill-content)",colorFillContentHover:"var(--vef-color-fill-content-hover)",colorFillAlt:"var(--vef-color-fill-alter)",colorBgContainerDisabled:"var(--vef-color-bg-container-disabled)",colorBorderBg:"var(--vef-color-border-bg)",colorSplit:"var(--vef-color-split)",colorTextPlaceholder:"var(--vef-color-text-placeholder)",colorTextDisabled:"var(--vef-color-text-disabled)",colorTextHeading:"var(--vef-color-text-heading)",colorTextLabel:"var(--vef-color-text-label)",colorTextDescription:"var(--vef-color-text-description)",colorTextLightSolid:"var(--vef-color-text-light-solid)",colorHighlight:"var(--vef-color-highlight)",colorBgTextHover:"var(--vef-color-bg-text-hover)",colorBgTextActive:"var(--vef-color-bg-text-active)",colorIcon:"var(--vef-color-icon)",colorIconHover:"var(--vef-color-icon-hover)",colorErrorOutline:"var(--vef-color-error-outline)",colorWarningOutline:"var(--vef-color-warning-outline)",fontSizeIcon:"var(--vef-font-size-icon)",lineWidthFocus:"var(--vef-line-width-focus)",controlOutlineWidth:"var(--vef-control-outline-width)",controlInteractiveSize:"var(--vef-control-interactive-size)",controlItemBgHover:"var(--vef-control-item-bg-hover)",controlItemBgActive:"var(--vef-control-item-bg-active)",controlItemBgActiveHover:"var(--vef-control-item-bg-active-hover)",controlItemBgActiveDisabled:"var(--vef-control-item-bg-active-disabled)",controlTmpOutline:"var(--vef-control-tmp-outline)",controlOutline:"var(--vef-control-outline)",fontWeightStrong:"var(--vef-font-weight-strong)",opacityLoading:"var(--vef-opacity-loading)",linkDecoration:"var(--vef-link-decoration)",linkHoverDecoration:"var(--vef-link-hover-decoration)",linkFocusDecoration:"var(--vef-link-focus-decoration)",controlPaddingHorizontal:"var(--vef-control-padding-horizontal)",controlPaddingHorizontalSm:"var(--vef-control-padding-horizontal-sm)",paddingXxs:"var(--vef-padding-xxs)",paddingXs:"var(--vef-padding-xs)",paddingSm:"var(--vef-padding-sm)",padding:"var(--vef-padding)",paddingMd:"var(--vef-padding-md)",paddingLg:"var(--vef-padding-lg)",paddingXl:"var(--vef-padding-xl)",paddingContentHorizontalLg:"var(--vef-padding-content-horizontal-lg)",paddingContentVerticalLg:"var(--vef-padding-content-vertical-lg)",paddingContentHorizontal:"var(--vef-padding-content-horizontal)",paddingContentVertical:"var(--vef-padding-content-vertical)",paddingContentHorizontalSm:"var(--vef-padding-content-horizontal-sm)",paddingContentVerticalSm:"var(--vef-padding-content-vertical-sm)",marginXxs:"var(--vef-margin-xxs)",marginXs:"var(--vef-margin-xs)",marginSm:"var(--vef-margin-sm)",margin:"var(--vef-margin)",marginMd:"var(--vef-margin-md)",marginLg:"var(--vef-margin-lg)",marginXl:"var(--vef-margin-xl)",marginXxl:"var(--vef-margin-xxl)",boxShadow:"var(--vef-box-shadow)",boxShadowSecondary:"var(--vef-box-shadow-secondary)",boxShadowTertiary:"var(--vef-box-shadow-tertiary)",boxShadowPopoverArrow:"var(--vef-box-shadow-popover-arrow)",boxShadowCard:"var(--vef-box-shadow-card)",boxShadowDrawerRight:"var(--vef-box-shadow-drawer-right)",boxShadowDrawerLeft:"var(--vef-box-shadow-drawer-left)",boxShadowDrawerUp:"var(--vef-box-shadow-drawer-up)",boxShadowDrawerDown:"var(--vef-box-shadow-drawer-down)",boxShadowTabsOverflowLeft:"var(--vef-box-shadow-tabs-overflow-left)",boxShadowTabsOverflowRight:"var(--vef-box-shadow-tabs-overflow-right)",boxShadowTabsOverflowTop:"var(--vef-box-shadow-tabs-overflow-top)",boxShadowTabsOverflowBottom:"var(--vef-box-shadow-tabs-overflow-bottom)",boxShadowElevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"};exports.themeVariables=themeVariables;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/types.cjs CHANGED
@@ -1,5 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
2
- 'use strict';
3
-
4
-
5
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.334Z, made by Venus. *//*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/utils.cjs CHANGED
@@ -1,112 +1 @@
1
- /*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- require('./lib.cjs');
7
- const radashi = require('radashi');
8
-
9
- function isAsyncFunction(fn) {
10
- if (!radashi.isFunction(fn)) {
11
- return false;
12
- }
13
- return fn.constructor.name === "AsyncFunction" || Object.prototype.toString.call(fn) === "[object AsyncFunction]" || fn.toString().startsWith("async ");
14
- }
15
- async function invokeMaybeAsyncFn(fn, {
16
- beforeInvoke,
17
- onSuccess,
18
- onFinally
19
- }, ...args) {
20
- if (isAsyncFunction(fn)) {
21
- try {
22
- beforeInvoke?.();
23
- const result = await fn(...args);
24
- onSuccess?.(result);
25
- return result;
26
- } finally {
27
- onFinally?.();
28
- }
29
- } else {
30
- const returned = fn(...args);
31
- if (returned instanceof Promise) {
32
- try {
33
- beforeInvoke?.();
34
- const result = await returned;
35
- onSuccess?.(result);
36
- return result;
37
- } finally {
38
- onFinally?.();
39
- }
40
- } else {
41
- return returned;
42
- }
43
- }
44
- }
45
- function difference(oldValues, newValues) {
46
- return Object.keys(newValues).filter((key) => oldValues[key] !== newValues[key]).reduce(
47
- (acc, key) => {
48
- acc[key] = newValues[key];
49
- return acc;
50
- },
51
- {}
52
- );
53
- }
54
- function constantCase(value) {
55
- return radashi.snake(value).toUpperCase();
56
- }
57
- function isIternalFunction(fn) {
58
- if (isAsyncFunction(fn) && Reflect.has(fn, "name") && Reflect.has(fn, "key") && Reflect.get(fn, "name") === "apiFn") {
59
- return true;
60
- }
61
- return false;
62
- }
63
- function buildRouteParentMenusMappings(menus) {
64
- return new Map(doBuildRouteParentMenusMappings(menus));
65
- }
66
- function doBuildRouteParentMenusMappings(menus, parents = []) {
67
- return menus.flatMap((menu) => {
68
- if (menu.type === "item") {
69
- return [[menu.key, [menu, parents]]];
70
- } else if (menu.type === "submenu" || menu.type === "group") {
71
- const { children, ...parent } = menu;
72
- return [
73
- [
74
- parent.key,
75
- [
76
- {
77
- ...parent,
78
- children: []
79
- },
80
- parents
81
- ]
82
- ],
83
- ...doBuildRouteParentMenusMappings(children, [
84
- ...parents,
85
- {
86
- ...parent,
87
- children: children.filter((child) => child.type !== "divider").map((child) => {
88
- if (child.type === "item") {
89
- return {
90
- ...child
91
- };
92
- }
93
- return {
94
- ...child,
95
- children: []
96
- };
97
- })
98
- }
99
- ])
100
- ];
101
- }
102
- return [];
103
- });
104
- }
105
-
106
- exports.buildRouteParentMenusMappings = buildRouteParentMenusMappings;
107
- exports.constantCase = constantCase;
108
- exports.difference = difference;
109
- exports.invokeMaybeAsyncFn = invokeMaybeAsyncFn;
110
- exports.isAsyncFunction = isAsyncFunction;
111
- exports.isIternalFunction = isIternalFunction;
112
- /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
1
+ "use strict";/*! VefFramework version: 1.0.102, build time: 2025-03-07T16:32:57.334Z, made by Venus. */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const radashi=require("radashi");function isAsyncFunction(fn){return radashi.isFunction(fn)?fn.constructor.name==="AsyncFunction"||Object.prototype.toString.call(fn)==="[object AsyncFunction]"||fn.toString().startsWith("async "):!1}async function invokeMaybeAsyncFn(fn,{beforeInvoke,onSuccess,onFinally},...args){if(isAsyncFunction(fn))try{beforeInvoke?.();const result=await fn(...args);return onSuccess?.(result),result}finally{onFinally?.()}else{const returned=fn(...args);if(returned instanceof Promise)try{beforeInvoke?.();const result=await returned;return onSuccess?.(result),result}finally{onFinally?.()}else return returned}}function difference(oldValues,newValues){return Object.keys(newValues).filter(key=>oldValues[key]!==newValues[key]).reduce((acc,key)=>(acc[key]=newValues[key],acc),{})}function constantCase(value){return radashi.snake(value).toUpperCase()}function isIternalFunction(fn){return!!(isAsyncFunction(fn)&&Reflect.has(fn,"name")&&Reflect.has(fn,"key")&&Reflect.get(fn,"name")==="apiFn")}function buildRouteParentMenusMappings(menus){return new Map(doBuildRouteParentMenusMappings(menus))}function doBuildRouteParentMenusMappings(menus,parents=[]){return menus.flatMap(menu=>{if(menu.type==="item")return[[menu.key,[menu,parents]]];if(menu.type==="submenu"||menu.type==="group"){const{children,...parent}=menu;return[[parent.key,[{...parent,children:[]},parents]],...doBuildRouteParentMenusMappings(children,[...parents,{...parent,children:children.filter(child=>child.type!=="divider").map(child=>child.type==="item"?{...child}:{...child,children:[]})}])]}return[]})}exports.buildRouteParentMenusMappings=buildRouteParentMenusMappings,exports.constantCase=constantCase,exports.difference=difference,exports.invokeMaybeAsyncFn=invokeMaybeAsyncFn,exports.isAsyncFunction=isAsyncFunction,exports.isIternalFunction=isIternalFunction;/*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */