lingee-ui 0.0.22 → 0.0.24
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/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/chunk-BNUZ57QH.mjs +1 -0
- package/dist/{chunk-IBX6LBGA.js → chunk-BSZVT2WO.js} +1 -1
- package/dist/chunk-IJJQRKPH.mjs +1 -0
- package/dist/chunk-JYFAP23O.js +1 -0
- package/dist/chunk-MFBMJTYZ.js +2 -0
- package/dist/{chunk-EOVPC2E4.js → chunk-PSF4FKBF.js} +1 -1
- package/dist/chunk-QEKT37W5.js +1 -0
- package/dist/chunk-TZBVVMLM.mjs +2 -0
- package/dist/{chunk-GUINI25L.js → chunk-UERX2ELG.js} +1 -1
- package/dist/chunk-XLUVO6OV.mjs +1 -0
- package/dist/chunk-YURAXA54.mjs +2 -0
- package/dist/chunk-Z4J7SMTI.mjs +1 -0
- package/dist/{index-89atTLPD.d.mts → index-7pb5YOcq.d.mts} +2 -2
- package/dist/{index-89atTLPD.d.ts → index-7pb5YOcq.d.ts} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.mts +91 -16
- package/dist/index.d.ts +91 -16
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.css +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/toast/index.css +1 -1
- package/dist/toast/index.d.mts +30 -1
- package/dist/toast/index.d.ts +30 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +2 -1
- package/skill/AGENTS-SNIPPET.md +1 -1
- package/skill/SKILL.md +2 -2
- package/skill/VERSION.json +2 -2
- package/skill/references/components/dialog.md +15 -4
- package/skill/references/components/dropdown.md +1 -1
- package/skill/references/components/toast.md +29 -1
- package/skill/references/setup.md +2 -2
- package/skill/references/tokens.md +1 -1
- package/dist/chunk-3IO42CRF.js +0 -1
- package/dist/chunk-DIBP224Q.mjs +0 -2
- package/dist/chunk-G5VOLG6L.mjs +0 -1
- package/dist/chunk-H44VO62M.mjs +0 -1
- package/dist/chunk-JWOTGIJI.mjs +0 -2
- package/dist/chunk-KWRU5RWD.mjs +0 -1
- package/dist/chunk-KXUUVDLA.mjs +0 -1
- package/dist/chunk-P427AFIE.js +0 -1
- package/dist/chunk-TJMCJSHN.mjs +0 -1
- package/dist/chunk-TRDCCPJD.js +0 -1
- package/dist/chunk-U4ZQGUSG.js +0 -2
package/dist/chunk-U4ZQGUSG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkP427AFIE_js=require('./chunk-P427AFIE.js'),chunkDCDWEVW4_js=require('./chunk-DCDWEVW4.js'),react=require('react'),r=require('@radix-ui/react-tooltip'),l=require('@radix-ui/react-scroll-area'),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 r__namespace=/*#__PURE__*/_interopNamespace(r);var l__namespace=/*#__PURE__*/_interopNamespace(l);var T=react.forwardRef(({children:t,className:o,style:i,type:e="scroll",scrollHideDelay:n=600,scrollbars:s="vertical",scrollbarSize:h=4,scrollbarHoverSize:m=6,onScroll:f,viewportRef:_,fill:x=false},b)=>{let u={"--_scrollbar-size":`${h}px`,"--_scrollbar-hover-size":`${m}px`,...i};return jsxRuntime.jsxs(l__namespace.Root,{ref:b,className:chunkDCDWEVW4_js.a("lg-scroll-area",x&&"lg-scroll-area--fill",o),style:u,type:e,scrollHideDelay:n,children:[jsxRuntime.jsx(l__namespace.Viewport,{className:"lg-scroll-area__viewport",ref:_,onScroll:f,children:t}),(s==="vertical"||s==="both")&&jsxRuntime.jsx(v,{orientation:"vertical"}),(s==="horizontal"||s==="both")&&jsxRuntime.jsx(v,{orientation:"horizontal"}),s==="both"&&jsxRuntime.jsx(l__namespace.Corner,{className:"lg-scroll-area__corner"})]})});T.displayName="ScrollArea";var v=react.forwardRef(({orientation:t="vertical",className:o},i)=>jsxRuntime.jsx(l__namespace.Scrollbar,{ref:i,className:chunkDCDWEVW4_js.a("lg-scroll-area__scrollbar",o),orientation:t,children:jsxRuntime.jsx(l__namespace.Thumb,{className:"lg-scroll-area__thumb"})}));v.displayName="ScrollBar";var R={single:{maxWidth:240,maxHeight:32,fontSize:14,lineHeight:20,paddingX:10,paddingY:6,lines:1},multi:{maxWidth:240,maxHeight:100,fontSize:14,lineHeight:20,paddingX:12,paddingY:10,lines:4},rich:{maxWidth:320,maxHeight:208,fontSize:13,lineHeight:18,paddingX:16,paddingY:14,lines:10},"rich-large":{maxWidth:500,maxHeight:316,fontSize:13,lineHeight:18,paddingX:16,paddingY:14,lines:16}},D=["single","multi","rich","rich-large"],M=.95;function O(t){return t>=11904&&t<=40959||t>=44032&&t<=55203||t>=12288&&t<=12351||t>=65280&&t<=65376||t>=63744&&t<=64255?1:.5}function F(t){let o=0;for(let i=0;i<t.length;i+=1)o+=O(t.charCodeAt(i));return o}function V(t){return (t.maxWidth-t.paddingX*2)/t.fontSize*M}function $(t,o){let i=V(o),e=0;for(let n of t.split(`
|
|
2
|
-
`))e+=Math.max(1,Math.ceil(F(n)/i));return e}function H(t){for(let o of D){let i=R[o];if($(t,i)<=i.lines)return o}return "rich-large"}var k="rich";var K=10,U=5,Z=4;function q(t){let o=t.split("-"),i=o[0],e={start:"start",end:"end"},n=o[1]?e[o[1]]??"center":"center";return {side:i,align:n}}function J({disabled:t=false,content:o,children:i,placement:e="top",open:n,defaultOpen:s,onOpenChange:h,delayDuration:m=chunkP427AFIE_js.a,sideOffset:f=Z,arrow:_=true,className:x,style:b,maxWidth:u,scrollable:E=true,container:y}){let L=chunkP427AFIE_js.b(),d=react.useMemo(()=>typeof o=="string"?H(o):k,[o]);if(t||o==null||o==="")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:i});let{side:Y,align:I}=q(e),X=u??R[d].maxWidth,S=E&&d!=="single",g;S?g=jsxRuntime.jsx(T,{className:"lg-tooltip__scroll",children:o}):d==="single"?g=jsxRuntime.jsx("span",{className:"lg-tooltip__single",children:o}):g=o;let w=jsxRuntime.jsxs(r__namespace.Content,{className:chunkDCDWEVW4_js.a("lg-tooltip",`lg-tooltip--${d}`,S&&"lg-tooltip--scrollable",x),side:Y,align:I,sideOffset:f,style:{maxWidth:X,...b},children:[g,_&&jsxRuntime.jsx(r__namespace.Arrow,{className:"lg-tooltip__arrow",asChild:true,width:K,height:U,children:jsxRuntime.jsx("svg",{viewBox:"0 0 10 5",preserveAspectRatio:"none",children:jsxRuntime.jsx("path",{d:"M3.58579 3.58579C4.36684 4.36684 5.63317 4.36683 6.41421 3.58579L10 0H0L3.58579 3.58579Z"})})})]}),A=jsxRuntime.jsxs(r__namespace.Root,{open:n,defaultOpen:s,onOpenChange:h,delayDuration:m,children:[jsxRuntime.jsx(r__namespace.Trigger,{asChild:true,children:i}),y===null?w:jsxRuntime.jsx(r__namespace.Portal,{container:y,children:w})]});return L?A:jsxRuntime.jsx(chunkP427AFIE_js.c,{children:A})}J.displayName="Tooltip";exports.a=T;exports.b=v;exports.c=J;
|