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