@vef-framework/shared 1.0.63 → 1.0.64

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