@pathscale/ui 0.0.73 → 0.0.74
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/index.js +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6366,11 +6366,8 @@ const copy_button_CopyButton = CopyButton;
|
|
|
6366
6366
|
]);
|
|
6367
6367
|
var Countdown_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span role=timer><span>");
|
|
6368
6368
|
const Countdown = (props)=>{
|
|
6369
|
-
const {
|
|
6370
|
-
const displayedValue = Math.min(99, Math.max(0, value));
|
|
6371
|
-
const countdownStyle = {
|
|
6372
|
-
"--value": displayedValue
|
|
6373
|
-
};
|
|
6369
|
+
const { class: className, className: classNameAlt, dataTheme, ...rest } = props;
|
|
6370
|
+
const displayedValue = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>Math.min(99, Math.max(0, props.value)));
|
|
6374
6371
|
return (()=>{
|
|
6375
6372
|
var _el$ = Countdown_tmpl$(), _el$2 = _el$.firstChild;
|
|
6376
6373
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
@@ -6379,7 +6376,15 @@ const Countdown = (props)=>{
|
|
|
6379
6376
|
return twMerge("countdown", className, classNameAlt);
|
|
6380
6377
|
}
|
|
6381
6378
|
}), false, true);
|
|
6382
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((
|
|
6379
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
6380
|
+
var _v$ = `--value: ${displayedValue()}`, _v$2 = displayedValue();
|
|
6381
|
+
_p$.e = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$2, _v$, _p$.e);
|
|
6382
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "data-content", _p$.t = _v$2);
|
|
6383
|
+
return _p$;
|
|
6384
|
+
}, {
|
|
6385
|
+
e: void 0,
|
|
6386
|
+
t: void 0
|
|
6387
|
+
});
|
|
6383
6388
|
return _el$;
|
|
6384
6389
|
})();
|
|
6385
6390
|
};
|