@hanzo/ui 5.3.11 → 5.3.13

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/textarea.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var t=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var f=Object.defineProperty;var s=(r,a)=>f(r,"name",{value:a,configurable:true});function c(...r){return tailwindMerge.twMerge(clsx.clsx(r))}s(c,"cn");var x=32,T=300,p=t__namespace.forwardRef(({className:r,minHeight:a=x,maxHeight:o=T,resize:i="none",...n},l)=>{let u=t__namespace.useRef(null),e=l||u;return t__namespace.useLayoutEffect(()=>{e.current&&(e.current.style.height="inherit",e.current.style.height=`${Math.max(e.current.scrollHeight+2,a)}px`,n.autoFocus!==void 0&&n.autoFocus&&e.current.focus());},[n.value,a,o]),jsxRuntime.jsx("textarea",{className:c("bg-bg-secondary placeholder:!text-text-placeholder border-input focus-visible:ring-border-input-focus flex w-full rounded-md border px-4 py-2 pt-7 text-sm break-words focus-visible:ring-1 focus-visible:outline-hidden focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",r),ref:e,style:{minHeight:`${a}px`,maxHeight:i==="vertical"?void 0:`${o}px`,resize:i},...n})});p.displayName="Textarea";exports.Textarea=p;
1
+ 'use strict';var t=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var f=Object.defineProperty;var c=(r,a)=>f(r,"name",{value:a,configurable:true});function s(...r){return tailwindMerge.twMerge(clsx.clsx(r))}c(s,"cn");var x=32,T=300,p=t__namespace.forwardRef(({className:r,minHeight:a=x,maxHeight:n=T,resize:i="none",...o},l)=>{let u=t__namespace.useRef(null),e=l||u;return t__namespace.useLayoutEffect(()=>{e.current&&(e.current.style.height="inherit",e.current.style.height=`${Math.max(e.current.scrollHeight+2,a)}px`,o.autoFocus!==void 0&&o.autoFocus&&e.current.focus());},[o.value,a,n]),jsxRuntime.jsx("textarea",{className:s("bg-bg-secondary placeholder:!text-text-placeholder border-input focus-visible:ring-border-input-focus flex w-full rounded-md border px-4 py-2 pt-7 text-sm break-words focus-visible:ring-1 focus-visible:outline-hidden focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",r),ref:e,style:{minHeight:`${a}px`,maxHeight:i==="vertical"?void 0:`${n}px`,resize:i},...o})});p.displayName="Textarea";exports.Textarea=p;
package/dist/textarea.mjs CHANGED
@@ -1 +1 @@
1
- import*as t from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var f=Object.defineProperty;var s=(r,a)=>f(r,"name",{value:a,configurable:true});function c(...r){return twMerge(clsx(r))}s(c,"cn");var x=32,T=300,p=t.forwardRef(({className:r,minHeight:a=x,maxHeight:o=T,resize:i="none",...n},l)=>{let u=t.useRef(null),e=l||u;return t.useLayoutEffect(()=>{e.current&&(e.current.style.height="inherit",e.current.style.height=`${Math.max(e.current.scrollHeight+2,a)}px`,n.autoFocus!==void 0&&n.autoFocus&&e.current.focus());},[n.value,a,o]),jsx("textarea",{className:c("bg-bg-secondary placeholder:!text-text-placeholder border-input focus-visible:ring-border-input-focus flex w-full rounded-md border px-4 py-2 pt-7 text-sm break-words focus-visible:ring-1 focus-visible:outline-hidden focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",r),ref:e,style:{minHeight:`${a}px`,maxHeight:i==="vertical"?void 0:`${o}px`,resize:i},...n})});p.displayName="Textarea";export{p as Textarea};
1
+ import*as t from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var f=Object.defineProperty;var c=(r,a)=>f(r,"name",{value:a,configurable:true});function s(...r){return twMerge(clsx(r))}c(s,"cn");var x=32,T=300,p=t.forwardRef(({className:r,minHeight:a=x,maxHeight:n=T,resize:i="none",...o},l)=>{let u=t.useRef(null),e=l||u;return t.useLayoutEffect(()=>{e.current&&(e.current.style.height="inherit",e.current.style.height=`${Math.max(e.current.scrollHeight+2,a)}px`,o.autoFocus!==void 0&&o.autoFocus&&e.current.focus());},[o.value,a,n]),jsx("textarea",{className:s("bg-bg-secondary placeholder:!text-text-placeholder border-input focus-visible:ring-border-input-focus flex w-full rounded-md border px-4 py-2 pt-7 text-sm break-words focus-visible:ring-1 focus-visible:outline-hidden focus-visible:ring-inset disabled:cursor-not-allowed disabled:opacity-50",r),ref:e,style:{minHeight:`${a}px`,maxHeight:i==="vertical"?void 0:`${n}px`,resize:i},...o})});p.displayName="Textarea";export{p as Textarea};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "5.3.11",
3
+ "version": "5.3.13",
4
4
  "description": "Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",