@5even7/dlc-ui 0.2.14 → 0.2.16
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/CHANGELOG.md +120 -116
- package/LICENSE +21 -21
- package/README.md +313 -313
- package/dist/capsule.cjs +32 -32
- package/dist/capsule.mjs +1070 -1070
- package/dist/color.cjs +33 -33
- package/dist/color.mjs +1019 -1019
- package/dist/emo.cjs +19008 -7492
- package/dist/emo.mjs +439 -436
- package/dist/index.cjs +19061 -7545
- package/dist/index.mjs +3748 -3745
- package/dist/index.umd.js +33624 -45215
- package/dist/index.umd.min.js +1 -1
- package/dist/progress.cjs +42 -42
- package/dist/progress.mjs +2154 -2154
- package/dist/vue2.cjs +19074 -7558
- package/dist/vue2.mjs +4184 -4181
- package/dist/vue3.cjs +19074 -7558
- package/dist/vue3.mjs +4184 -4181
- package/package.json +135 -135
- package/styles/base.css +32 -32
- package/styles/color.css +18 -18
- package/styles/emo.css +33 -32
- package/styles/progress.css +96 -96
- package/types/capsule.d.ts +15 -15
- package/types/color.d.ts +15 -15
- package/types/emo.d.ts +11 -11
- package/types/index.d.ts +393 -393
- package/types/progress.d.ts +16 -16
- package/types/vue2.d.ts +10 -10
- package/types/vue3.d.ts +144 -144
package/dist/color.cjs
CHANGED
|
@@ -182,9 +182,9 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
/**
|
|
186
|
-
* Tiny event emitter. Accepts any event name so the API stays open for
|
|
187
|
-
* future events (hover, click, custom) without breaking changes.
|
|
185
|
+
/**
|
|
186
|
+
* Tiny event emitter. Accepts any event name so the API stays open for
|
|
187
|
+
* future events (hover, click, custom) without breaking changes.
|
|
188
188
|
*/
|
|
189
189
|
function createEmitter() {
|
|
190
190
|
// Plain object storage (no Map/Set) so the legacy build has no API
|
|
@@ -261,10 +261,10 @@ function effectiveDprCap(quality) {
|
|
|
261
261
|
return Math.max(0.5, dprCapFor(quality) * normalizedScale);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
/**
|
|
265
|
-
* Merge defaults < preset < user. Unknown user keys are preserved so the
|
|
266
|
-
* component API can grow (new props, cssVars, callbacks) without a breaking
|
|
267
|
-
* change.
|
|
264
|
+
/**
|
|
265
|
+
* Merge defaults < preset < user. Unknown user keys are preserved so the
|
|
266
|
+
* component API can grow (new props, cssVars, callbacks) without a breaking
|
|
267
|
+
* change.
|
|
268
268
|
*/
|
|
269
269
|
function normalizeOptions(defaults, preset, user) {
|
|
270
270
|
// undefined means "not provided" (e.g. Vue $props with unset props):
|
|
@@ -282,9 +282,9 @@ function normalizeOptions(defaults, preset, user) {
|
|
|
282
282
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, defaults), presetOptions), userOptions);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
/**
|
|
286
|
-
* 公共色板:NC-01~NC-06 的四色组(底色 / 主色 / 辅色 / 高光色)。
|
|
287
|
-
* Capsule 预置与 dlc-color 等组件共用,新增色板只改这里。
|
|
285
|
+
/**
|
|
286
|
+
* 公共色板:NC-01~NC-06 的四色组(底色 / 主色 / 辅色 / 高光色)。
|
|
287
|
+
* Capsule 预置与 dlc-color 等组件共用,新增色板只改这里。
|
|
288
288
|
*/
|
|
289
289
|
var PALETTES = {
|
|
290
290
|
original: ['#FFF3EA', '#F5B27A', '#F67BC6', '#A978E8'],
|
|
@@ -295,9 +295,9 @@ var PALETTES = {
|
|
|
295
295
|
plus: ['#FFF0E6', '#F6C26B', '#F98A64', '#E86D74']
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
/**
|
|
299
|
-
* Capsule 预置:仅星云材质 NC-01~NC-06(NC-07~09 aurora 已移除)。
|
|
300
|
-
* 颜色引用公共色板,seed/speed 决定形态与流速。
|
|
298
|
+
/**
|
|
299
|
+
* Capsule 预置:仅星云材质 NC-01~NC-06(NC-07~09 aurora 已移除)。
|
|
300
|
+
* 颜色引用公共色板,seed/speed 决定形态与流速。
|
|
301
301
|
*/
|
|
302
302
|
var CAPSULE_PRESETS = [{
|
|
303
303
|
id: 'original',
|
|
@@ -960,10 +960,10 @@ var FallbackRenderer = /*#__PURE__*/function () {
|
|
|
960
960
|
}]);
|
|
961
961
|
}();
|
|
962
962
|
|
|
963
|
-
/**
|
|
964
|
-
* Document-level shared rAF scheduler. Every component instance subscribes
|
|
965
|
-
* its own frame callback; the whole page runs ONE animation loop (like the
|
|
966
|
-
* original demo), which avoids jank from many competing rAF loops.
|
|
963
|
+
/**
|
|
964
|
+
* Document-level shared rAF scheduler. Every component instance subscribes
|
|
965
|
+
* its own frame callback; the whole page runs ONE animation loop (like the
|
|
966
|
+
* original demo), which avoids jank from many competing rAF loops.
|
|
967
967
|
*/
|
|
968
968
|
var subscribers = [];
|
|
969
969
|
var running = false;
|
|
@@ -1040,9 +1040,9 @@ function subscribeScheduler(onFrame, isPaused) {
|
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
|
-
/**
|
|
1044
|
-
* Gates drawing on "element intersects viewport AND the page tab is visible".
|
|
1045
|
-
* Falls back to always-visible when IntersectionObserver is unavailable.
|
|
1043
|
+
/**
|
|
1044
|
+
* Gates drawing on "element intersects viewport AND the page tab is visible".
|
|
1045
|
+
* Falls back to always-visible when IntersectionObserver is unavailable.
|
|
1046
1046
|
*/
|
|
1047
1047
|
function createVisibilityGuard(element) {
|
|
1048
1048
|
var onChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
@@ -1180,19 +1180,19 @@ function releaseHostStyles(host) {
|
|
|
1180
1180
|
HOST_STYLES.delete(host);
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
|
-
/**
|
|
1184
|
-
* Mount the cosmic (nebula) material as a background layer inside `host`.
|
|
1185
|
-
*
|
|
1186
|
-
* The layer is absolutely positioned and defaults to `z-index: -1`, so it
|
|
1187
|
-
* paints behind the host's in-flow content: text/buttons/images inside the
|
|
1188
|
-
* host sit on top with zero extra CSS. Host gets `position: relative;
|
|
1189
|
-
* isolation: isolate` automatically so the layer can never escape its box
|
|
1190
|
-
* (or break stacking outside it).
|
|
1191
|
-
*
|
|
1192
|
-
* Options: preset (literary name), colors, seed, speed, quality,
|
|
1193
|
-
* renderer, renderScale, powerPreference, fps, paused/static, mouseColor,
|
|
1194
|
-
* respectReducedMotion, opacity (0-1), fallbackColor (true=preset base
|
|
1195
|
-
* color, a hex string, or false to disable).
|
|
1183
|
+
/**
|
|
1184
|
+
* Mount the cosmic (nebula) material as a background layer inside `host`.
|
|
1185
|
+
*
|
|
1186
|
+
* The layer is absolutely positioned and defaults to `z-index: -1`, so it
|
|
1187
|
+
* paints behind the host's in-flow content: text/buttons/images inside the
|
|
1188
|
+
* host sit on top with zero extra CSS. Host gets `position: relative;
|
|
1189
|
+
* isolation: isolate` automatically so the layer can never escape its box
|
|
1190
|
+
* (or break stacking outside it).
|
|
1191
|
+
*
|
|
1192
|
+
* Options: preset (literary name), colors, seed, speed, quality,
|
|
1193
|
+
* renderer, renderScale, powerPreference, fps, paused/static, mouseColor,
|
|
1194
|
+
* respectReducedMotion, opacity (0-1), fallbackColor (true=preset base
|
|
1195
|
+
* color, a hex string, or false to disable).
|
|
1196
1196
|
*/
|
|
1197
1197
|
function createColorBackground(host) {
|
|
1198
1198
|
var _options$preset;
|