@vef-framework/shared 1.0.64 → 1.0.65

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