dozy 1.0.84 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/reset.css +3 -1
- package/dist/assets/vars.css +2 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/reset.css
CHANGED
package/dist/assets/vars.css
CHANGED
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
|
|
64
64
|
:root {
|
|
65
65
|
/* Default: 暖黄护眼风 - 类似纸张或护眼模式,柔和舒适*/
|
|
66
|
-
--xai-primary-dark: #
|
|
66
|
+
--xai-primary-dark: #f1eee5; /* 页面大背景:极淡的奶黄色,非常柔和 */
|
|
67
67
|
--xai-primary-light: #fefbf6; /* 卡片:接近白色的淡米黄,干净且护眼 */
|
|
68
|
-
--xai-primary: #
|
|
68
|
+
--xai-primary: #f9f4e0; /* 输入框:浅燕麦米色,比页面背景更深,在卡片中形成清晰的内陷感 */
|
|
69
69
|
--xai-text: #5c4b37; /* 文本:深咖啡色,比纯黑更护眼且配合暖黄背景 */
|
|
70
70
|
--xai-text-muted: #998a76; /* 次要文本:浅咖啡色 */
|
|
71
71
|
--xai-notable: #f4a261; /* 显眼色:温暖的棕橙色,配合护眼背景 */
|
package/dist/index.d.ts
CHANGED
|
@@ -184,6 +184,14 @@ declare function $getFileType(fileName: string): FileType;
|
|
|
184
184
|
* @returns 输入为空时返回 `false`;否则返回是否匹配内部 URL 规则。
|
|
185
185
|
*/
|
|
186
186
|
declare function $isValidOrBriefURL(url?: string): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* 补全 URL: 如果缺少协议头 (http:// 或 https://) 则自动补上 https://。
|
|
189
|
+
* 适用于用户输入的简写 URL, 例如 `a.ac` → `https://a.ac`。
|
|
190
|
+
*
|
|
191
|
+
* @param url 待补全的 URL 字符串。
|
|
192
|
+
* @returns 补全后的 URL;空字符串原样返回。
|
|
193
|
+
*/
|
|
194
|
+
declare function $ensureUrl(url: string): string;
|
|
187
195
|
/**
|
|
188
196
|
* 将 tick 时间格式化为可读字符串。
|
|
189
197
|
*
|
|
@@ -1415,6 +1423,6 @@ declare function toRgbString(input: string | Color | any): string | undefined;
|
|
|
1415
1423
|
*/
|
|
1416
1424
|
declare function toHslString(input: string | Color | any): string | undefined;
|
|
1417
1425
|
|
|
1418
|
-
declare const DOZY = "1.0.
|
|
1426
|
+
declare const DOZY = "1.0.86";
|
|
1419
1427
|
|
|
1420
|
-
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $backgroundColor, $borderColor, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $compressImageBase64, $compressImageDefaultOptions, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatPoints, $formatPointsWithChange, $formatWithCommas, $freeze, $genSSF, $getFileType, $getHue, $getTimeString, $hasKey, $if, $inRange, $inRange2, $inferExtensionFormPureBase64, $inferMimeTypeFormPureBase64, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $purifyBase64, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $toDataUrlFromBase64, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, RepoStore, type ScaleComputer, type ScaleIniter, type ScaleResponsiveOptions, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isNull, isValidColor, maybeString, registerCustomColor, s, shanghaiDateFormatter, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|
|
1428
|
+
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $backgroundColor, $borderColor, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $compressImageBase64, $compressImageDefaultOptions, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $ensureUrl, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatPoints, $formatPointsWithChange, $formatWithCommas, $freeze, $genSSF, $getFileType, $getHue, $getTimeString, $hasKey, $if, $inRange, $inRange2, $inferExtensionFormPureBase64, $inferMimeTypeFormPureBase64, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $purifyBase64, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $toDataUrlFromBase64, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, RepoStore, type ScaleComputer, type ScaleIniter, type ScaleResponsiveOptions, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isNull, isValidColor, maybeString, registerCustomColor, s, shanghaiDateFormatter, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|