@pathscale/ui 0.0.78 → 0.0.79
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 +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6366,6 +6366,8 @@ const CopyButton_CopyButton = (props)=>{
|
|
|
6366
6366
|
const getContent = ()=>{
|
|
6367
6367
|
if (local.children) return local.children;
|
|
6368
6368
|
if (!copied()) return "Copy";
|
|
6369
|
+
};
|
|
6370
|
+
const getCopiedContent = ()=>{
|
|
6369
6371
|
if ("string" == typeof local.copiedToken) return local.copiedToken;
|
|
6370
6372
|
if (local.copiedToken) return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(local.copiedToken, {});
|
|
6371
6373
|
return "Copied!";
|
|
@@ -6384,7 +6386,22 @@ const CopyButton_CopyButton = (props)=>{
|
|
|
6384
6386
|
return twMerge("btn btn-sm btn-ghost", copied() ? "text-success" : "", local.class, local.className);
|
|
6385
6387
|
}
|
|
6386
6388
|
}, others), false, true);
|
|
6387
|
-
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$,
|
|
6389
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
6390
|
+
get when () {
|
|
6391
|
+
return !copied();
|
|
6392
|
+
},
|
|
6393
|
+
get children () {
|
|
6394
|
+
return getContent();
|
|
6395
|
+
}
|
|
6396
|
+
}), null);
|
|
6397
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
|
|
6398
|
+
get when () {
|
|
6399
|
+
return copied();
|
|
6400
|
+
},
|
|
6401
|
+
get children () {
|
|
6402
|
+
return getCopiedContent();
|
|
6403
|
+
}
|
|
6404
|
+
}), null);
|
|
6388
6405
|
return _el$;
|
|
6389
6406
|
})();
|
|
6390
6407
|
};
|