@pathscale/ui 0.0.78 → 0.0.80

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -1
  2. 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$, getContent);
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
  };
@@ -7708,6 +7725,7 @@ const Input = (props)=>{
7708
7725
  "rightIcon",
7709
7726
  "placeholder",
7710
7727
  "type",
7728
+ "ref",
7711
7729
  "aria-label",
7712
7730
  "aria-describedby",
7713
7731
  "aria-invalid",
@@ -7754,6 +7772,8 @@ const Input = (props)=>{
7754
7772
  return local.leftIcon;
7755
7773
  }
7756
7774
  }), _el$2);
7775
+ var _ref$ = local.ref;
7776
+ "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$2) : local.ref = _el$2;
7757
7777
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
7758
7778
  get type () {
7759
7779
  return inputType();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",