@zonos/amino 6.0.0 → 6.0.2

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 (55) hide show
  1. package/all.d.ts +0 -1
  2. package/components/badge/Badge.js +1 -1
  3. package/components/button/Button.d.ts +1 -2
  4. package/components/button/Button.js +1 -1
  5. package/components/checkbox/Checkbox.js +1 -1
  6. package/components/country-multi-select/CountryMultiSelectExpanded.js +1 -1
  7. package/components/cover-sheet/CoverSheet.js +1 -1
  8. package/components/currency/DualCurrency.js +1 -1
  9. package/components/dialog/BaseDialog.js +1 -1
  10. package/components/dialog/announcement/AnnouncementDialog.js +1 -1
  11. package/components/drop-zone/DropZone.js +1 -1
  12. package/components/file-upload/FileUpload.js +1 -1
  13. package/components/filter/FilterWrapper.js +1 -1
  14. package/components/filter/filter-amount/FilterAmount.js +1 -1
  15. package/components/input/Input.js +1 -1
  16. package/components/input/MultiInput.js +1 -1
  17. package/components/input/input-simple/input-type/_DateInput.js +1 -1
  18. package/components/input/input-simple/input-type/_InputBase.js +1 -1
  19. package/components/input/input-simple/input-type/_NumberInput.js +1 -1
  20. package/components/input/input-simple/input-type/_TimeInput.js +1 -1
  21. package/components/input/input-type/_DateInput.js +1 -1
  22. package/components/input/input-type/_FloatLabelInput.js +1 -1
  23. package/components/input/input-type/_NumberInput.js +1 -1
  24. package/components/language-picker/LanguagePicker.js +1 -1
  25. package/components/layout/Layout.js +1 -1
  26. package/components/menu/MenuItem.js +1 -1
  27. package/components/pivot-table/PivotTable.js +1 -1
  28. package/components/progress-bar/ProgressBar.js +1 -1
  29. package/components/rich-checkbox/RichCheckbox.js +1 -1
  30. package/components/rich-radio/RichRadio.js +1 -1
  31. package/components/rounded-icon/RoundedIcon.js +1 -1
  32. package/components/select/_StyledReactSelect.js +1 -1
  33. package/components/simple-table/SimpleTable.js +1 -1
  34. package/components/simple-table/SimpleTableRow.js +1 -1
  35. package/components/table/TableCell.js +1 -1
  36. package/components/text/Text.js +1 -1
  37. package/components/textarea/Textarea.js +1 -1
  38. package/components/thumbnail/Thumbnail.js +1 -1
  39. package/components/toast/ToastContext.js +1 -1
  40. package/components/tooltip/Tooltip.js +1 -1
  41. package/components/ui/sonner.js +1 -1
  42. package/components/ui/tooltip.js +1 -1
  43. package/package.json +13 -13
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/utils/hooks/useCountryOptions.d.ts +2 -2
  46. package/utils/prepCountryOptions.d.ts +1 -1
  47. package/utils/translations/supportedLanguages.d.ts +1 -1
  48. package/components/connection-map/ConnectionMap.d.ts +0 -75
  49. package/components/connection-map/ConnectionMap.js +0 -1
  50. package/tailwind.css +0 -34
  51. package/tools/mcp/client.d.ts +0 -37
  52. package/tools/mcp/index.d.ts +0 -3
  53. package/tools/mcp/tools.d.ts +0 -37
  54. package/tools/mcp/types.d.ts +0 -124
  55. package/types/GeoJsonWorld.d.ts +0 -21
@@ -1 +1 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js"),a=require("react"),t=require("../../icons/RemoveIcon.js"),n=require("../../icons/SearchIcon.js"),r=require("../../utils/cn.js"),i=require("./AnimatedGlobe.js"),o=require("./LanguageItem.js"),s=require("react/jsx-runtime");require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/ChevronRightIcon.js");var l=Array.from({length:20}).map(function(e,a){return{delay:5*Math.random(),duration:6+8*Math.random(),id:"particle-".concat(a),left:100*Math.random(),opacity:.05+.1*Math.random(),size:2+3*Math.random(),top:100*Math.random()}});exports.LanguagePicker=function(c){var d=c.className,u=c.currentLanguage,m=c.description,x=void 0===m?"Select your preferred language for the best experience. Content will be displayed in your chosen language across the platform.":m,p=c.languages,g=c.onLanguageSelect,f=c.style,h=c.title,b=void 0===h?"Choose your language":h,y=c.trigger,v=e.__read(a.useState(!1),2),j=v[0],N=v[1],w=e.__read(a.useState(u),2),k=w[0],C=w[1],_=e.__read(a.useState(""),2),q=_[0],z=_[1],S=a.useMemo(function(){return p.find(function(e){return e.code===u})},[p,u]),I=function(e){C(e)},L=function(){N(!1)},E=a.useCallback(function(e){"Escape"===e.key&&j&&N(!1)},[j]);a.useEffect(function(){if("undefined"!=typeof document)return document.addEventListener("keydown",E),function(){return document.removeEventListener("keydown",E)}},[E]),a.useEffect(function(){if("undefined"!=typeof document)return document.body.style.overflow=j?"hidden":"",function(){document.body.style.overflow=""}},[j]),a.useEffect(function(){j||(z(""),C(u))},[j,u]);var M=a.useMemo(function(){return p.filter(function(e){return!q||(e.englishName.toLowerCase().includes(q.toLowerCase())||e.nativeName.toLowerCase().includes(q.toLowerCase()))})},[q,p]);return s.jsxs(s.Fragment,{children:[y?s.jsx("div",{"aria-label":"Open language picker",className:d,onClick:function(){return N(!0)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),N(!0))},role:"button",style:f,tabIndex:0,children:y}):s.jsxs("button",{"aria-label":"Select language",className:r.cn("rounded-amino-6 px-amino-12 flex h-8 items-center gap-[6px] border\n border-gray-200 bg-transparent py-[6px] text-sm font-medium\n text-gray-800 transition-all duration-150\n ease-[cubic-bezier(0.4,0,0.2,1)] hover:border-gray-300\n hover:bg-gray-100",d),onClick:function(){return N(!0)},style:f,type:"button",children:[s.jsx("span",{className:"text-base leading-none",children:(null==S?void 0:S.flag)||"🌐"}),s.jsx("span",{className:"text-sm uppercase",children:u})]}),j&&s.jsx("div",{className:"animate-fade-in fixed inset-0 z-[1000] flex items-center justify-center bg-black/50 backdrop-blur-[4px]",onClick:L,children:s.jsxs("div",{"aria-label":"Select language","aria-modal":"true",className:"rounded-amino-12 bg-surface shadow-amino-medium animate-slide-up flex max-h-[calc(100vh-64px)] w-[calc(100%-32px)] max-w-[680px] flex-col overflow-hidden",onClick:function(e){return e.stopPropagation()},role:"dialog",children:[s.jsxs("div",{className:"to-surface relative overflow-hidden bg-gradient-to-b from-gray-100",children:[s.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:l.map(function(e){return s.jsx("div",{className:"animate-float absolute rounded-full",style:{"--particle-delay":"".concat(e.delay,"s"),"--particle-duration":"".concat(e.duration,"s"),"--particle-left":"".concat(e.left,"%"),"--particle-opacity":e.opacity,"--particle-size":"".concat(e.size,"px"),"--particle-top":"".concat(e.top,"%"),backgroundColor:"rgba(37, 99, 235, ".concat(e.opacity,")"),height:"".concat(e.size,"px"),left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),width:"".concat(e.size,"px")}},e.id)})}),s.jsxs("div",{className:"gap-amino-24 pb-amino-24 max-[525px]:pt-amino-24 relative flex items-center px-8 pt-8 max-[525px]:flex-col max-[525px]:px-5 max-[525px]:pb-5 max-[525px]:text-center",children:[s.jsxs("div",{className:"relative flex-shrink-0",children:[s.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:"radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%)",transform:"scale(1.5)"}}),s.jsx(i.AnimatedGlobe,{size:140})]}),s.jsxs("div",{className:"relative flex-1",children:[s.jsx("h2",{className:"mb-amino-8 text-text-color mt-0 text-[20px] leading-tight font-semibold tracking-[-0.01em]",children:b}),s.jsx("p",{className:"m-0 text-sm leading-[1.5] text-gray-600",children:x}),s.jsx("button",{"aria-label":"Close",className:"-right-amino-8 -top-amino-8 absolute flex h-[28px] w-[28px] items-center justify-center rounded-full border-none bg-transparent text-gray-400 transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] hover:bg-black/5 hover:text-gray-600",onClick:L,type:"button",children:s.jsx(t.RemoveIcon,{size:20})})]})]}),s.jsxs("div",{className:"mb-amino-16 max-[525px]:mb-amino-12 relative mx-8 max-[525px]:mx-5",children:[s.jsx(n.SearchIcon,{className:"left-amino-12 pointer-events-none absolute top-1/2 -translate-y-1/2 text-gray-500",size:16}),s.jsx("input",{"aria-label":"Search languages",className:"rounded-amino-8 bg-surface px-amino-12 text-text-color w-full border border-gray-200 py-[10px] pl-10 text-sm transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] outline-none placeholder:text-gray-400 focus:border-blue-500 focus:shadow-[0_0_0_3px_rgba(37,99,235,0.1)]",onChange:function(e){return z(e.target.value)},placeholder:"Search languages...",type:"text",value:q})]})]}),s.jsx("div",{className:"h-px",style:{background:"linear-gradient(to right, transparent, var(--amino-gray-200), transparent)"}}),s.jsx("div",{className:"py-amino-12 max-[525px]:px-amino-16 max-h-80 flex-1 overflow-y-auto px-5 max-[525px]:max-h-[280px]",children:0===M.length?s.jsxs("div",{className:"px-amino-24 py-amino-48 flex flex-col items-center justify-center text-center",children:[s.jsx("div",{className:"mb-amino-12 flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 text-gray-500",children:s.jsx(n.SearchIcon,{size:20})}),s.jsx("p",{className:"text-text-color m-0 text-sm font-medium",children:"No languages found"}),s.jsx("p",{className:"mt-amino-4 mb-0 text-[13px] text-gray-500",children:"Try a different search term"})]}):s.jsx("div",{className:"gap-amino-4 grid grid-cols-2 max-[525px]:grid-cols-1",children:M.map(function(e,a){return s.jsx(o.LanguageItem,{code:e.code,englishName:e.englishName,flag:e.flag,index:a,isSelected:k===e.code,nativeName:e.nativeName,onSelect:I,showEnglishName:e.code!==u},e.code)})})}),s.jsxs("div",{className:"py-amino-16 max-[525px]:gap-amino-12 flex items-center justify-between border-t border-gray-200 bg-gray-50 px-8 max-[525px]:flex-col max-[525px]:px-5",children:[s.jsxs("div",{className:"gap-amino-8 flex items-center text-xs text-gray-600",children:[s.jsx("div",{className:"h-amino-8 w-amino-8 animate-amino-pulse rounded-full bg-blue-500"}),s.jsxs("span",{children:[p.length," languages available"]})]}),s.jsx("button",{className:"rounded-amino-8 border-none bg-blue-600 px-5 py-[10px] text-sm font-medium text-white shadow-[0_1px_2px_rgba(0,0,0,0.1)] transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] hover:bg-blue-700 hover:shadow-[0_2px_4px_rgba(0,0,0,0.15)] active:scale-[0.98] max-[525px]:w-full",onClick:function(){k!==u?(g(k),N(!1)):N(!1)},type:"button",children:"Confirm selection"})]})]})})]})};
1
+ "use strict";var e=require("../../tslib.es6-cdc5f922.js"),a=require("react"),t=require("../../icons/RemoveIcon.js"),n=require("../../icons/SearchIcon.js"),r=require("../../styles/constants/theme.js"),i=require("../../utils/cn.js"),o=require("./AnimatedGlobe.js"),s=require("./LanguageItem.js"),l=require("react/jsx-runtime");require("../../icons/icon-base/_IconBase.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/ChevronRightIcon.js");var c=Array.from({length:20}).map(function(e,a){return{delay:5*Math.random(),duration:6+8*Math.random(),id:"particle-".concat(a),left:100*Math.random(),opacity:.05+.1*Math.random(),size:2+3*Math.random(),top:100*Math.random()}});exports.LanguagePicker=function(d){var u=d.className,m=d.currentLanguage,x=d.description,p=void 0===x?"Select your preferred language for the best experience. Content will be displayed in your chosen language across the platform.":x,g=d.languages,f=d.onLanguageSelect,h=d.style,b=d.title,y=void 0===b?"Choose your language":b,v=d.trigger,j=e.__read(a.useState(!1),2),N=j[0],w=j[1],k=e.__read(a.useState(m),2),C=k[0],_=k[1],q=e.__read(a.useState(""),2),z=q[0],S=q[1],I=a.useMemo(function(){return g.find(function(e){return e.code===m})},[g,m]),L=function(e){_(e)},E=function(){w(!1)},M=a.useCallback(function(e){"Escape"===e.key&&N&&w(!1)},[N]);a.useEffect(function(){if("undefined"!=typeof document)return document.addEventListener("keydown",M),function(){return document.removeEventListener("keydown",M)}},[M]),a.useEffect(function(){if("undefined"!=typeof document)return document.body.style.overflow=N?"hidden":"",function(){document.body.style.overflow=""}},[N]),a.useEffect(function(){N||(S(""),_(m))},[N,m]);var A=a.useMemo(function(){return g.filter(function(e){return!z||(e.englishName.toLowerCase().includes(z.toLowerCase())||e.nativeName.toLowerCase().includes(z.toLowerCase()))})},[z,g]);return l.jsxs(l.Fragment,{children:[v?l.jsx("div",{"aria-label":"Open language picker",className:u,onClick:function(){return w(!0)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w(!0))},role:"button",style:h,tabIndex:0,children:v}):l.jsxs("button",{"aria-label":"Select language",className:i.cn("rounded-amino-6 px-amino-12 flex h-8 items-center gap-[6px] border\n border-gray-200 bg-transparent py-[6px] text-sm font-medium\n text-gray-800 transition-all duration-150\n ease-[cubic-bezier(0.4,0,0.2,1)] hover:border-gray-300\n hover:bg-gray-100",u),onClick:function(){return w(!0)},style:h,type:"button",children:[l.jsx("span",{className:"text-base leading-none",children:(null==I?void 0:I.flag)||"🌐"}),l.jsx("span",{className:"text-sm uppercase",children:m})]}),N&&l.jsx("div",{className:"animate-fade-in fixed inset-0 z-[1000] flex items-center justify-center bg-black/50 backdrop-blur-[4px]",onClick:E,children:l.jsxs("div",{"aria-label":"Select language","aria-modal":"true",className:"rounded-amino-12 bg-surface shadow-amino-medium animate-slide-up flex max-h-[calc(100vh-64px)] w-[calc(100%-32px)] max-w-[680px] flex-col overflow-hidden",onClick:function(e){return e.stopPropagation()},role:"dialog",children:[l.jsxs("div",{className:"to-surface relative overflow-hidden bg-gradient-to-b from-gray-100",children:[l.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:c.map(function(e){return l.jsx("div",{className:"animate-float absolute rounded-full",style:{"--particle-delay":"".concat(e.delay,"s"),"--particle-duration":"".concat(e.duration,"s"),"--particle-left":"".concat(e.left,"%"),"--particle-opacity":e.opacity,"--particle-size":"".concat(e.size,"px"),"--particle-top":"".concat(e.top,"%"),backgroundColor:"rgba(37, 99, 235, ".concat(e.opacity,")"),height:"".concat(e.size,"px"),left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),width:"".concat(e.size,"px")}},e.id)})}),l.jsxs("div",{className:"gap-amino-24 pb-amino-24 max-[525px]:pt-amino-24 relative flex items-center px-8 pt-8 max-[525px]:flex-col max-[525px]:px-5 max-[525px]:pb-5 max-[525px]:text-center",children:[l.jsxs("div",{className:"relative flex-shrink-0",children:[l.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:"radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%)",transform:"scale(1.5)"}}),l.jsx(o.AnimatedGlobe,{size:140})]}),l.jsxs("div",{className:"relative flex-1",children:[l.jsx("h2",{className:"mb-amino-8 text-text-color mt-0 text-[20px] leading-tight font-semibold tracking-[-0.01em]",children:y}),l.jsx("p",{className:"m-0 text-sm leading-[1.5] text-gray-600",children:p}),l.jsx("button",{"aria-label":"Close",className:"-right-amino-8 -top-amino-8 absolute flex h-[28px] w-[28px] items-center justify-center rounded-full border-none bg-transparent text-gray-400 transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] hover:bg-black/5 hover:text-gray-600",onClick:E,type:"button",children:l.jsx(t.RemoveIcon,{size:20})})]})]}),l.jsxs("div",{className:"mb-amino-16 max-[525px]:mb-amino-12 relative mx-8 max-[525px]:mx-5",children:[l.jsx(n.SearchIcon,{className:"left-amino-12 pointer-events-none absolute top-1/2 -translate-y-1/2 text-gray-500",size:16}),l.jsx("input",{"aria-label":"Search languages",className:"rounded-amino-8 bg-surface px-amino-12 text-text-color w-full border border-gray-200 py-[10px] pl-10 text-sm transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] outline-none placeholder:text-gray-400 focus:border-blue-500 focus:shadow-[0_0_0_3px_rgba(37,99,235,0.1)]",onChange:function(e){return S(e.target.value)},placeholder:"Search languages...",type:"text",value:z})]})]}),l.jsx("div",{className:"h-px",style:{background:"linear-gradient(to right, transparent, ".concat(r.theme.gray200,", transparent)")}}),l.jsx("div",{className:"py-amino-12 max-[525px]:px-amino-16 max-h-80 flex-1 overflow-y-auto px-5 max-[525px]:max-h-[280px]",children:0===A.length?l.jsxs("div",{className:"px-amino-24 py-amino-48 flex flex-col items-center justify-center text-center",children:[l.jsx("div",{className:"mb-amino-12 flex h-12 w-12 items-center justify-center rounded-full bg-gray-100 text-gray-500",children:l.jsx(n.SearchIcon,{size:20})}),l.jsx("p",{className:"text-text-color m-0 text-sm font-medium",children:"No languages found"}),l.jsx("p",{className:"mt-amino-4 mb-0 text-[13px] text-gray-500",children:"Try a different search term"})]}):l.jsx("div",{className:"gap-amino-4 grid grid-cols-2 max-[525px]:grid-cols-1",children:A.map(function(e,a){return l.jsx(s.LanguageItem,{code:e.code,englishName:e.englishName,flag:e.flag,index:a,isSelected:C===e.code,nativeName:e.nativeName,onSelect:L,showEnglishName:e.code!==m},e.code)})})}),l.jsxs("div",{className:"py-amino-16 max-[525px]:gap-amino-12 flex items-center justify-between border-t border-gray-200 bg-gray-50 px-8 max-[525px]:flex-col max-[525px]:px-5",children:[l.jsxs("div",{className:"gap-amino-8 flex items-center text-xs text-gray-600",children:[l.jsx("div",{className:"h-amino-8 w-amino-8 animate-amino-pulse rounded-full bg-blue-500"}),l.jsxs("span",{children:[g.length," languages available"]})]}),l.jsx("button",{className:"rounded-amino-8 border-none bg-blue-600 px-5 py-[10px] text-sm font-medium text-white shadow-[0_1px_2px_rgba(0,0,0,0.1)] transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)] hover:bg-blue-700 hover:shadow-[0_2px_4px_rgba(0,0,0,0.15)] active:scale-[0.98] max-[525px]:w-full",onClick:function(){C!==m?(f(C),w(!1)):w(!1)},type:"button",children:"Confirm selection"})]})]})})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("../../styles/constants/theme.js"),a=require("../../utils/cn.js"),s=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.Layout=function(i){var o=i.className,n=i.content,t=i.footer,d=i.headerContent,l=i.logoSidebar,c=i.noPaddingContent,h=i.sidebar,m=i.style;return s.jsxs("main",{className:a.cn("h-screen overflow-hidden",o),style:e.__assign(e.__assign({},m),{"--amino-layout-height":d?"calc(100vh - ".concat(r.theme.appbarHeight,")"):"100vh"}),children:[!!d&&s.jsx("header",{className:"border-amino shadow-amino-base sticky top-0 z-(--amino-appbar-elevation) box-border flex h-(--amino-appbar-height) border-b",children:d}),s.jsxs("div",{className:"grid h-(--amino-layout-height)",style:{gridTemplateColumns:"var(--amino-sidebar-width) 1fr"},children:[s.jsxs("nav",{className:"border-amino-subtle bg-sidebar box-border grid h-screen w-(--amino-sidebar-width) grid-rows-[1fr_auto] border-r",children:[s.jsxs("div",{className:"p-amino-16 box-border h-full w-full overflow-y-auto",children:[!!l&&s.jsx("div",{className:"mb-amino-24",children:l}),h]}),s.jsx("div",{className:"box-border w-(--amino-sidebar-width)",children:t})]}),s.jsx("div",{className:a.cn("box-border h-full overflow-y-auto",c?"p-0":"p-amino-32"),children:n})]})]})};
1
+ "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("../../styles/constants/theme.js"),a=require("../../utils/cn.js"),s=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.Layout=function(i){var o=i.className,n=i.content,t=i.footer,d=i.headerContent,l=i.logoSidebar,c=i.noPaddingContent,h=i.sidebar,m=i.style;return s.jsxs("main",{className:a.cn("h-screen overflow-hidden",o),style:e.__assign(e.__assign({},m),{"--amino-layout-height":d?"calc(100vh - ".concat(r.theme.appbarHeight,")"):"100vh"}),children:[!!d&&s.jsx("header",{className:"border-amino shadow-amino-base sticky top-0 z-(--amino-appbar-elevation) box-border flex h-(--amino-appbar-height) border-b",children:d}),s.jsxs("div",{className:"grid h-(--amino-layout-height)",style:{gridTemplateColumns:"".concat(r.theme.sidebarWidth," 1fr")},children:[s.jsxs("nav",{className:"border-amino-subtle bg-sidebar box-border grid h-screen w-(--amino-sidebar-width) grid-rows-[1fr_auto] border-r",children:[s.jsxs("div",{className:"p-amino-16 box-border h-full w-full overflow-y-auto",children:[!!l&&s.jsx("div",{className:"mb-amino-24",children:l}),h]}),s.jsx("div",{className:"box-border w-(--amino-sidebar-width)",children:t})]}),s.jsx("div",{className:a.cn("box-border h-full overflow-y-auto",c?"p-0":"p-amino-32"),children:n})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../utils/cn.js"),n=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.MenuItem=function(r){var t=r.children,i=r.className,o=r.disabled,l=r.icon,u=r.onClick,a=r.style;return n.jsx("li",{className:e.cn(o&&"[&_.menu-button]:opacity-amino-disabled\n [&_.menu-button]:cursor-not-allowed",i),style:a,children:n.jsxs("button",{className:"menu-button p-amino-8 rounded-amino-6 text-amino-base hover:bg-hover [&_svg]:mr-amino-8 flex w-full cursor-pointer items-center leading-6 select-none active:outline-none dark:hover:bg-gray-100 [&_a]:block [&_a]:w-full",onClick:function(e){return!o&&(null==u?void 0:u(e))},type:"button",children:[l,t]})})};
1
+ "use strict";var e=require("../../utils/cn.js"),n=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.MenuItem=function(r){var t=r.children,i=r.className,o=r.disabled,l=r.icon,u=r.onClick,s=r.style;return n.jsx("li",{className:e.cn(o&&"[&_.menu-button]:opacity-disabled [&_.menu-button]:cursor-not-allowed",i),style:s,children:n.jsxs("button",{className:"menu-button p-amino-8 rounded-amino-6 text-amino-base hover:bg-hover [&_svg]:mr-amino-8 flex w-full cursor-pointer items-center leading-6 select-none active:outline-none dark:hover:bg-gray-100 [&_a]:block [&_a]:w-full",onClick:function(e){return!o&&(null==u?void 0:u(e))},type:"button",children:[l,t]})})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),r=require("../../tslib.es6-cdc5f922.js"),t=require("react"),n=require("react-data-grid"),o=require("../../icons/ChevronDownIcon.js"),a=require("../../icons/ChevronUpIcon.js"),s=require("../../utils/addIndex.js"),i=require("../../utils/cn.js"),l=require("react/jsx-runtime");function u(e){return e&&e.__esModule?e:{default:e}}require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge");var d=u(n);exports.PivotTable=function(n){var u=n.columns,c=n.onSortColumnsChange,g=n.renderers,m=n.rows,_=n.sortColumns,h=void 0===_?[]:_,b=n.style,f=n.tableHeight,p=r.__rest(n,["columns","onSortColumnsChange","renderers","rows","sortColumns","style","tableHeight"]),v=t.useRef(null),y=r.__read(t.useState(h||[]),2),x=y[0],j=y[1],C=t.useCallback(function(e){var r=e.priority,t=e.sortDirection;return t?l.jsxs("span",{className:i.cn("flex h-full items-center justify-center"),children:["ASC"===t?l.jsx(a.ChevronUpIcon,{color:"gray900"}):l.jsx(o.ChevronDownIcon,{color:"gray900"}),l.jsx("span",{children:r})]}):null},[]),w=r.__assign({renderSortStatus:C},g),q=r.__spreadArray([{frozen:!0,key:"_itemIndex",name:"",sortable:!1,width:60}],r.__read(u),!1),I=t.useMemo(function(){if(0===x.length)return m.map(s.addIndex);return r.__spreadArray([],r.__read(m),!1).sort(function(e,r){var t=0;return x.some(function(n){var o,a=(o=n.columnKey,function(e,r){var t=e[o],n=r[o];switch(typeof t){case"boolean":return t===n?0:t?1:-1;case"string":return"string"==typeof n?t.localeCompare(n):0;case"number":return"number"==typeof n?t-n:0;default:return 0}}),s=a(e,r);return 0!==s?(t="ASC"===n.direction?s:-s,1):0}),t}).map(s.addIndex)},[m,x]);return l.jsx("div",{className:i.cn("amino-pivot-table relative","[&_.data-grid]:rounded-amino-8 [&_.data-grid]:h-full\n [&_.data-grid]:bg-inherit","[&_.rdg-row]:bg-gray-0 [&_.rdg-row]:text-text-color","[&_.rdg-header-row]:text-text-color [&_.rdg-header-row]:bg-gray-100\n [&_.rdg-header-row]:font-bold","[&_.rdg-summary-row]:text-text-color [&_.rdg-summary-row]:bg-gray-100\n [&_.rdg-summary-row]:font-bold","[&_.rdg-cell]:border [&_.rdg-cell]:border-gray-200"),style:r.__assign({"--amino-pivot-table-height":f||"calc(100vh - 145px)","--amino-pivot-table-min-height":f||"",height:"var(--amino-pivot-table-height)",minHeight:"var(--amino-pivot-table-min-height)"},b),children:l.jsx(d.default,e._objectSpread2({ref:v,className:"data-grid",columns:q,onSortColumnsChange:c||j,renderers:w,rows:I,sortColumns:x},p))})};
1
+ "use strict";var r=require("../../_rollupPluginBabelHelpers-4522587c.js"),e=require("../../tslib.es6-cdc5f922.js"),n=require("react"),t=require("react-data-grid"),o=require("../../icons/ChevronDownIcon.js"),s=require("../../icons/ChevronUpIcon.js"),a=require("../../utils/addIndex.js"),i=require("../../utils/cn.js"),l=require("react/jsx-runtime");function u(r){return r&&r.__esModule?r:{default:r}}require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge");var d=u(t);exports.PivotTable=function(t){var u=t.columns,c=t.onSortColumnsChange,g=t.renderers,m=t.rows,_=t.sortColumns,h=void 0===_?[]:_,f=t.style,y=t.tableHeight,b=e.__rest(t,["columns","onSortColumnsChange","renderers","rows","sortColumns","style","tableHeight"]),x=n.useRef(null),p=e.__read(n.useState(h||[]),2),v=p[0],j=p[1],C=n.useCallback(function(r){var e=r.priority,n=r.sortDirection;return n?l.jsxs("span",{className:i.cn("flex h-full items-center justify-center"),children:["ASC"===n?l.jsx(s.ChevronUpIcon,{color:"gray900"}):l.jsx(o.ChevronDownIcon,{color:"gray900"}),l.jsx("span",{children:e})]}):null},[]),w=e.__assign({renderSortStatus:C},g),q=e.__spreadArray([{frozen:!0,key:"_itemIndex",name:"",sortable:!1,width:60}],e.__read(u),!1),I=n.useMemo(function(){if(0===v.length)return m.map(a.addIndex);return e.__spreadArray([],e.__read(m),!1).sort(function(r,e){var n=0;return v.some(function(t){var o,s=(o=t.columnKey,function(r,e){var n=r[o],t=e[o];switch(typeof n){case"boolean":return n===t?0:n?1:-1;case"string":return"string"==typeof t?n.localeCompare(t):0;case"number":return"number"==typeof t?n-t:0;default:return 0}}),a=s(r,e);return 0!==a?(n="ASC"===t.direction?a:-a,1):0}),n}).map(a.addIndex)},[m,v]);return l.jsx("div",{className:i.cn("amino-pivot-table relative","[&_.data-grid]:rounded-amino-8 [&_.data-grid]:h-full\n [&_.data-grid]:bg-inherit","[&_.rdg-row]:bg-gray-0 [&_.rdg-row]:text-text-color","[&_.rdg-header-row]:text-text-color [&_.rdg-header-row]:bg-gray-100\n [&_.rdg-header-row]:font-bold","[&_.rdg-summary-row]:text-text-color [&_.rdg-summary-row]:bg-gray-100\n [&_.rdg-summary-row]:font-bold","[&_.rdg-cell]:border [&_.rdg-cell]:border-gray-200"),style:e.__assign({height:y||"calc(100vh - 145px)",minHeight:y||void 0},f),children:l.jsx(d.default,r._objectSpread2({ref:x,className:"data-grid",columns:q,onSortColumnsChange:c||j,renderers:w,rows:I,sortColumns:v},b))})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../styles/constants/theme.js"),r=require("../../utils/cn.js"),t=require("../../utils/getAminoColor.js"),s=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.ProgressBar=function(n){var o=n.className,i=n.colorStyle,l=void 0===i?"blue600":i,u=n.progress,a=void 0===u?0:u,c=n.style,d=a<0?0:a>100?100:a;return s.jsx("div",{className:r.cn("h-2 w-56 rounded-lg bg-gray-100",o),style:c,children:s.jsx("div",{className:"h-2 rounded-lg",style:{backgroundColor:function(){switch(l){case"greenToRed":return d<=20?e.theme.green600:d>=80?e.theme.red600:e.theme.orange600;case"redToGreen":return d<=20?e.theme.red600:d>=80?e.theme.green600:e.theme.orange600;default:return t.getAminoColor(l)}}()||"",width:"".concat(d,"%")}})})};
1
+ "use strict";var e=require("../../styles/constants/theme.js"),r=require("../../utils/cn.js"),t=require("../../utils/getAminoColor.js"),s=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.ProgressBar=function(n){var o=n.className,i=n.colorStyle,a=void 0===i?"blue600":i,l=n.progress,u=void 0===l?0:l,c=n.style,d=u<0?0:u>100?100:u;return s.jsx("div",{className:r.cn("w-amino-56 h-2 rounded-lg bg-gray-100",o),style:c,children:s.jsx("div",{className:"h-2 rounded-lg",style:{backgroundColor:function(){switch(a){case"greenToRed":return d<=20?e.theme.green600:d>=80?e.theme.red600:e.theme.orange600;case"redToGreen":return d<=20?e.theme.red600:d>=80?e.theme.green600:e.theme.orange600;default:return t.getAminoColor(a)}}()||"",width:"".concat(d,"%")}})})};
@@ -1 +1 @@
1
- "use strict";var e=require("../stack/VStack.js"),t=require("../text/Text.js"),r=require("../../icons/CheckmarkIcon.js"),s=require("../../utils/cn.js"),a=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("react"),require("../../icons/icon-base/_IconBase.js");exports.RichCheckbox=function(c){var n=c.className,i=c.items,l=c.onClick,u=c.style;return a.jsx(e.VStack,{className:s.cn('[&_button[data-state="checked"]]:border-blue-300\n [&_button[data-state="checked"]]:bg-blue-100','[&_button[data-state="checked"]]:text-blue-600',"[&_svg]:text-gray-0 [&_svg]:h-3 [&_svg]:w-3",n),spacing:16,style:u,children:i.map(function(c){var n=c.checked,i=c.icon,u=c.label,o=c.subtitle,d=c.value;return a.jsxs("button",{className:s.cn("bg-raised border-amino rounded-amino-6 relative appearance-none\n border p-4 pr-10","flex flex-row items-center text-left transition-all duration-150\n ease-in-out","hover:bg-hover hover:border-gray-200","focus:border-blue-300 focus:outline-none"),"data-state":n?"checked":"",onClick:function(e){return l(e.currentTarget.value)},type:"button",value:d,children:[a.jsxs("div",{className:s.cn("grid items-center",i&&"grid-cols-[30px_1fr] gap-6"),children:[i&&i,a.jsxs(e.VStack,{spacing:0,children:[a.jsx(t.Text,{className:s.cn("leading-6",'[data-state="checked"]_&:text-blue-600'),color:"gray1000",type:"label",children:u}),o&&a.jsx(t.Text,{className:s.cn('[data-state="checked"]_&:text-blue-600'),color:"gray700",children:o})]})]}),n&&a.jsx("div",{className:"absolute right-4 flex items-center justify-center rounded-full bg-blue-600 p-1.25",children:a.jsx(r.CheckmarkIcon,{})})]},d)})})};
1
+ "use strict";var e=require("../stack/VStack.js"),t=require("../text/Text.js"),r=require("../../icons/CheckmarkIcon.js"),s=require("../../utils/cn.js"),a=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("react"),require("../../icons/icon-base/_IconBase.js");exports.RichCheckbox=function(c){var n=c.className,i=c.items,l=c.onClick,u=c.style;return a.jsx(e.VStack,{className:s.cn('[&_button[data-state="checked"]]:border-blue-300\n [&_button[data-state="checked"]]:bg-blue-100','[&_button[data-state="checked"]]:text-blue-600',"[&_svg]:text-gray-0 [&_svg]:h-3 [&_svg]:w-3",n),spacing:16,style:u,children:i.map(function(c){var n=c.checked,i=c.icon,u=c.label,o=c.subtitle,d=c.value;return a.jsxs("button",{className:s.cn("bg-raised border-amino rounded-amino-6 relative appearance-none\n border p-4 pr-10","flex flex-row items-center text-left transition-all duration-150\n ease-in-out","hover:bg-hover hover:border-gray-200","focus:border-blue-300 focus:outline-none"),"data-state":n?"checked":"",onClick:function(e){return l(e.currentTarget.value)},type:"button",value:d,children:[a.jsxs("div",{className:s.cn("grid items-center",i&&"grid-cols-[30px_1fr] gap-6"),children:[i&&i,a.jsxs(e.VStack,{spacing:0,children:[a.jsx(t.Text,{className:s.cn("leading-6","[[data-state=checked]_&]:text-blue-600"),color:"gray1000",type:"label",children:u}),o&&a.jsx(t.Text,{className:s.cn("[[data-state=checked]_&]:text-blue-600"),color:"gray700",children:o})]})]}),n&&a.jsx("div",{className:"absolute right-4 flex items-center justify-center rounded-full bg-blue-600 p-1.25",children:a.jsx(r.CheckmarkIcon,{})})]},d)})})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),a=require("react"),r=require("../stack/VStack.js"),s=require("../text/Text.js"),i=require("../tooltip/Tooltip.js"),l=require("../../icons/CheckmarkIcon.js"),o=require("../../utils/cn.js"),c=require("react/jsx-runtime");require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip"),require("../../icons/icon-base/_IconBase.js");exports.RichRadio=function(d){var n=d.activeIcon,u=d.className,b=d.icon,h=d.itemHeight,x=void 0===h?64:h,p=d.items,g=d.onChange,v=d.renderCustomText,m=d.style,j=d.value,f=t.__read(a.useState(j),2),k=f[0],y=f[1];a.useEffect(function(){y(j)},[j]);return c.jsx(r.VStack,{className:o.cn("[&_svg]:text-gray-0 [&_svg]:h-4 [&_svg]:w-4",u),spacing:8,style:m,children:p.map(function(t){return c.jsx(i.Tooltip,e._objectSpread2(e._objectSpread2({className:"w-full",disabled:!t.tooltip,title:t.tooltip},t.tooltipSetting),{},{children:c.jsxs("button",{className:o.cn("group border-amino rounded-amino-8 relative appearance-none\n border bg-transparent p-4 pr-[calc(var(--amino-space-40)+10px)]","flex h-16 flex-row items-center text-left transition-all\n duration-150 ease-in-out","hover:bg-hover hover:border-gray-200","hover:[&_.icon-wrapper]:bg-gray-600","focus:border-blue-400 focus:shadow-[0_0_0_1px]\n focus:shadow-blue-400 focus:outline-none","data-[state=checked]:shadow-amino-select-active\n data-[state=checked]:text-blue-600","data-[state=checked]:border-blue-400","data-[state=checked]:[&_.subtitle]:text-blue-600","disabled:cursor-not-allowed disabled:bg-gray-50\n disabled:text-gray-500","disabled:hover:border-amino disabled:hover:bg-gray-50","disabled:hover:[&_.icon-wrapper]:bg-gray-400","disabled:focus:border-amino disabled:focus:shadow-none","[&>div]:flex [&>div]:flex-1 [&>div]:flex-col","w-full",40===x&&"h-10"),"data-disabled":t.disabled,"data-state":t.value===k?"checked":"",disabled:!!t.disabled,onClick:function(){var e;t.disabled||(e=t.value,y(e),g(e))},type:"button",children:[v?v(t):c.jsxs("div",{children:[c.jsx(s.Text,{className:o.cn("text-amino leading-6","group-data-[state=checked]:text-blue-600"),type:"label",children:t.label}),t.subtitle&&c.jsx(s.Text,{className:"subtitle",color:"gray900",type:"body",children:t.subtitle})]}),!!b&&c.jsx("div",{className:"icon-wrapper [&_svg]:text-gray-0 absolute right-4 rounded-full bg-gray-400 p-1.25",children:b||c.jsx(l.CheckmarkIcon,{})}),t.value===k&&c.jsx("div",{className:"absolute right-4 flex items-center justify-center rounded-full bg-blue-600 p-0.5",children:n||c.jsx(l.CheckmarkIcon,{})})]})}),t.value)})})};
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),a=require("react"),r=require("../stack/VStack.js"),s=require("../text/Text.js"),i=require("../tooltip/Tooltip.js"),l=require("../../icons/CheckmarkIcon.js"),o=require("../../utils/cn.js"),c=require("react/jsx-runtime");require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip"),require("../../icons/icon-base/_IconBase.js");exports.RichRadio=function(d){var n=d.activeIcon,u=d.className,b=d.icon,x=d.itemHeight,h=void 0===x?64:x,p=d.items,g=d.onChange,v=d.renderCustomText,j=d.style,m=d.value,f=t.__read(a.useState(m),2),k=f[0],y=f[1];a.useEffect(function(){y(m)},[m]);return c.jsx(r.VStack,{className:o.cn("[&_svg]:text-gray-0 [&_svg]:h-4 [&_svg]:w-4",u),spacing:8,style:j,children:p.map(function(t){return c.jsx(i.Tooltip,e._objectSpread2(e._objectSpread2({className:"w-full",disabled:!t.tooltip,title:t.tooltip},t.tooltipSetting),{},{children:c.jsxs("button",{className:o.cn("group border-amino rounded-amino-8 relative appearance-none\n border bg-transparent p-4 pr-[calc(var(--amino-space-40)+10px)]","flex h-16 flex-row items-center text-left transition-all\n duration-150 ease-in-out","hover:bg-hover hover:border-gray-200","hover:[&_.icon-wrapper]:bg-gray-600","focus:border-blue-400 focus:shadow-[0_0_0_1px]\n focus:shadow-blue-400 focus:outline-none","data-[state=checked]:shadow-amino-select-active\n data-[state=checked]:text-blue-600","data-[state=checked]:border-blue-400","data-[state=checked]:[&_.subtitle]:text-blue-600","disabled:cursor-not-allowed disabled:bg-gray-50\n disabled:text-gray-500","disabled:hover:border-amino disabled:hover:bg-gray-50","disabled:hover:[&_.icon-wrapper]:bg-gray-400","disabled:focus:border-amino disabled:focus:shadow-none","[&>div]:flex [&>div]:flex-1 [&>div]:flex-col","w-full",40===h&&"h-10"),"data-disabled":t.disabled,"data-state":t.value===k?"checked":"",disabled:!!t.disabled,onClick:function(){var e;t.disabled||(e=t.value,y(e),g(e))},type:"button",children:[v?v(t):c.jsxs("div",{children:[c.jsx(s.Text,{className:o.cn("text-text-color leading-6","group-data-[state=checked]:text-blue-600"),type:"label",children:t.label}),t.subtitle&&c.jsx(s.Text,{className:"subtitle",color:"gray900",type:"body",children:t.subtitle})]}),!!b&&c.jsx("div",{className:"icon-wrapper [&_svg]:text-gray-0 absolute right-4 rounded-full bg-gray-400 p-1.25",children:b||c.jsx(l.CheckmarkIcon,{})}),t.value===k&&c.jsx("div",{className:"absolute right-4 flex items-center justify-center rounded-full bg-blue-600 p-0.5",children:n||c.jsx(l.CheckmarkIcon,{})})]})}),t.value)})})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("class-variance-authority"),n=require("../../styles/constants/theme.js"),i=require("../../utils/cn.js"),t=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var a=r.cva("flex size-amino-32 items-center justify-center rounded-[32px] bg-gray-300 text-gray-600 [&_svg]:size-amino-20",{defaultVariants:{intent:void 0},variants:{intent:{danger:"bg-red-100 text-red-600",primary:"bg-blue-100 text-blue-600",success:"bg-green-100 text-green-600",warning:"bg-orange-100 text-orange-600"}}});exports.RoundedIcon=function(r){var o=r.background,s=r.children,c=r.className,d=r.color,u=r.intent,g=r.style,l="danger"===u||"primary"===u||"warning"===u||"success"===u?u:void 0;return t.jsx("div",{className:i.cn(a({intent:l}),c),style:e.__assign(e.__assign({},g),o||d?{"--amino-rounded-icon-background":o?n.theme[o]:void 0,"--amino-rounded-icon-color":d?n.theme[d]:void 0,backgroundColor:o?"var(--amino-rounded-icon-background)":void 0,color:d?"var(--amino-rounded-icon-color)":void 0}:{}),children:s})};
1
+ "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("class-variance-authority"),t=require("../../styles/constants/theme.js"),n=require("../../utils/cn.js"),s=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var i=r.cva("flex size-amino-32 items-center justify-center rounded-[32px] bg-gray-300 text-gray-600 [&_svg]:size-amino-20",{defaultVariants:{intent:void 0},variants:{intent:{danger:"bg-red-100 text-red-600",primary:"bg-blue-100 text-blue-600",success:"bg-green-100 text-green-600",warning:"bg-orange-100 text-orange-600"}}});exports.RoundedIcon=function(r){var a=r.background,c=r.children,u=r.className,g=r.color,o=r.intent,l=r.style,d="danger"===o||"primary"===o||"warning"===o||"success"===o?o:void 0;return s.jsx("div",{className:n.cn(i({intent:d}),u),style:e.__assign(e.__assign(e.__assign({},l),a&&{backgroundColor:t.theme[a]}),g&&{color:t.theme[g]}),children:c})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),n=require("../../tslib.es6-cdc5f922.js"),o=require("react"),i=require("react-intersection-observer"),r=require("react-select"),t=require("../checkbox/Checkbox.js"),s=require("../help-text/HelpText.js"),a=require("../../icons/CheckmarkIcon.js"),l=require("../../icons/DoubleChevronIcon.js"),c=require("../../icons/RemoveCircleIcon.js"),d=require("../../icons/RemoveIcon.js"),u=require("../../styles/constants/theme.js"),p=require("../../utils/cn.js"),_=require("../../utils/getTestId.js"),m=require("react/jsx-runtime");function g(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../text/Text.js"),require("clsx"),require("tailwind-merge"),require("../../icons/icon-base/_IconBase.js");var v=g(r),h=function(e){switch(e){case"sm":return"".concat(u.theme.radius6);case"lg":case"xl":return"".concat(u.theme.radius10);default:return"".concat(u.theme.radius8)}},x=function(n){return m.jsx(r.components.ClearIndicator,e._objectSpread2(e._objectSpread2({},n),{},{children:m.jsx(c.RemoveCircleIcon,{size:24})}))},f=function(n){return m.jsx(r.components.DropdownIndicator,e._objectSpread2(e._objectSpread2({},n),{},{children:m.jsx(l.DoubleChevronIcon,{size:24})}))},b=function(n){var o=n.children,i=n.className,r=n.getStyles,t=n.hasValue,s=n.innerProps,a=n.innerRef,l=n.isDisabled,c=n.isFocused,d=n.menuIsOpen,u=n.selectProps,_=u.icon,g=u.label,v=u.size,h=u.value;return m.jsxs("div",e._objectSpread2(e._objectSpread2({ref:a,className:p.cn(i,"react-select-control",t&&"flex items-center",_&&"has-icon flex items-center",c&&"is-focused",l&&"opacity-disabled",d&&"menu-is-open",g||Array.isArray(h)&&h.length>1?"has-label":"","sm"===v&&"h-8","md"===v&&"h-10","lg"===v&&"h-12","xl"===v&&"h-14"),style:r("control",n)},s),{},{children:[_&&m.jsx("div",{className:"ml-amino-8 -mr-[2px] flex h-6 w-6 items-center justify-evenly text-gray-700",children:_}),o]}))},j=function(e){var n=e.children,o=e.color,i=e.icon;return m.jsxs("div",{className:"[&_svg]:text-gray-1000 flex items-center [&_svg]:mr-1",style:{color:o||"inherit"},children:[i,n]})},y=function(o){var i=o.children,t=n.__rest(o,["children"]);return m.jsx(r.components.MultiValueLabel,e._objectSpread2(e._objectSpread2({},t),{},{children:m.jsx(j,{icon:t.data.icon,children:i})}))},S=function(n){var o=n.innerProps;return m.jsx("div",e._objectSpread2(e._objectSpread2({},o),{},{role:"button",children:m.jsx(d.RemoveIcon,{size:14})}))},w=function(o){var r=o.children,s=o.className,l=o.data,c=o.getStyles,d=o.innerProps,u=o.innerRef,_=o.isDisabled,g=o.isFocused,v=o.isSelected,h=o.selectProps,x=i.useInView({fallbackInView:!0,triggerOnce:!0}),f=x.inView,b=x.ref,y=h,S=y.customOption,w=y.hasGroups,C=c("option",o),I=C.color,q=n.__rest(C,["color"]);w&&(q.paddingLeft=48);return m.jsx("div",e._objectSpread2(e._objectSpread2({ref:u},d),{},{children:m.jsx("div",{className:p.cn(s,"rounded-lg",g&&!_&&"bg-gray-50! dark:bg-gray-100!",_&&"opacity-disabled"),style:q,children:h.isMulti?m.jsx(t.Checkbox,{checked:v,disabled:_,icon:l.icon,label:l.label,labelDescription:l.labelDescription,onChange:function(){}}):S?S(l.value):m.jsxs("div",{ref:b,className:"flex items-center justify-between",children:[f&&m.jsx(j,{color:I,icon:l.icon,children:r}),v&&m.jsx(a.CheckmarkIcon,{color:"blue600",size:24})]})})}))};exports.CheckboxOptionComponent=w,exports.StyledReactSelect=function(i){var r=i.closeOnOutsideScroll,t=void 0!==r&&r,a=i.components,l=i.customOption,c=i.error,d=i.hasGroups,g=i.helpText,j=i.icon,C=i.label,I=i.menuPosition,q=void 0===I?"fixed":I,R=i.placeholder,k=i.size,z=void 0===k?"md":k,L=i.style,O=n.__rest(i,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","style"]),V={customOption:l,hasGroups:d,icon:j,label:C,size:z},P=o.useMemo(function(){return _.getTestId({componentName:"select",name:C})},[C]),T=o.useRef(null),N=o.useMemo(function(){return!!t&&function(e){var n,o;return!(e.target instanceof HTMLElement)||!(null===(o=null===(n=T.current)||void 0===n?void 0:n.menuListRef)||void 0===o?void 0:o.isEqualNode(e.target))}},[t]),M=O.styles,D=n.__rest(O,["styles"]),W=function(e){return{clearIndicator:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{color:u.theme.gray700,paddingLeft:"14px !important",paddingRight:"4px !important"}),null===(r=null==e?void 0:e.clearIndicator)||void 0===r?void 0:r.call(e,o,i))},control:function(o,i){var r,t=i.selectProps.size;return n.__assign(n.__assign(n.__assign({},o),{backgroundColor:u.theme.raisedSurfaceColor,borderColor:"unset",borderRadius:h(t),borderWidth:0,boxShadow:i.isFocused?"".concat(u.theme.shadowRaisedFocus):"".concat(u.theme.shadowRaisedStandard),color:u.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:"var(--amino-size-".concat(t,")"),minHeight:"var(--amino-size-".concat(t,")")}),null===(r=null==e?void 0:e.control)||void 0===r?void 0:r.call(e,o,i))},dropdownIndicator:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{color:u.theme.gray900,paddingLeft:"4px !important",paddingRight:"10px !important"}),null===(r=null==e?void 0:e.dropdownIndicator)||void 0===r?void 0:r.call(e,o,i))},group:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{paddingBottom:"0px !important",paddingTop:"0px !important"}),null===(r=null==e?void 0:e.group)||void 0===r?void 0:r.call(e,o,i))},indicatorSeparator:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{width:0}),null===(r=null==e?void 0:e.indicatorSeparator)||void 0===r?void 0:r.call(e,o,i))},input:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{color:u.theme.textColor,opacity:.8}),null===(r=null==e?void 0:e.input)||void 0===r?void 0:r.call(e,o,i))},menu:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{background:u.theme.surfaceColor,borderRadius:12,boxShadow:u.theme.v3ShadowLarge,marginTop:"8px !important",zIndex:20}),null===(r=null==e?void 0:e.menu)||void 0===r?void 0:r.call(e,o,i))},menuList:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{padding:"8px !important"}),null===(r=null==e?void 0:e.menuList)||void 0===r?void 0:r.call(e,o,i))},menuPortal:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{zIndex:20}),null===(r=null==e?void 0:e.menuPortal)||void 0===r?void 0:r.call(e,o,i))},multiValue:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{alignItems:"center",background:u.theme.gray100,borderRadius:u.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:"2px !important"}),null===(r=null==e?void 0:e.multiValue)||void 0===r?void 0:r.call(e,o,i))},multiValueLabel:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{color:u.theme.textColor}),null===(r=null==e?void 0:e.multiValueLabel)||void 0===r?void 0:r.call(e,o,i))},option:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{backgroundColor:"inherit",borderRadius:"8px",color:i.isSelected?u.theme.blue600:u.theme.textColor,cursor:"pointer",fontWeight:i.isSelected?500:400,paddingBottom:"7px !important",paddingLeft:"8px !important",paddingRight:"12px !important",paddingTop:"7px !important"}),null===(r=null==e?void 0:e.option)||void 0===r?void 0:r.call(e,o,i))},placeholder:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{".has-label.is-focused &":{opacity:1},color:"var(--amino-gray-500)",fontSize:"var(--amino-font-size-base)",fontWeight:400,opacity:1}),null===(r=null==e?void 0:e.placeholder)||void 0===r?void 0:r.call(e,o,i))},singleValue:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{color:u.theme.textColor,fontWeight:500}),null===(r=null==e?void 0:e.singleValue)||void 0===r?void 0:r.call(e,o,i))},valueContainer:function(o,i){var r;return n.__assign(n.__assign(n.__assign({},o),{flexWrap:"nowrap",padding:"unset",paddingLeft:"12px !important"}),null===(r=null==e?void 0:e.valueContainer)||void 0===r?void 0:r.call(e,o,i))}}}(M);return m.jsxs("div",{className:p.cn("relative","[&_.react-select-control+div]:z-20","[&_.react-select-control.is-focused]:shadow-[var(--amino-shadow-raised-standard)]","[&_.react-select-control.is-focused:not(.menu-is-open)]:shadow-[var(--amino-shadow-raised-focus)]",c&&["[&_.has-label]:text-red-600","[&_.react-select-control]:shadow-[var(--amino-shadow-raised-error)]","[&_.react-select-control.is-focused:not(.menu-is-open)]:shadow-[var(--amino-shadow-raised-error-focus)]"]),"data-testid":P,children:[C&&m.jsx("label",{className:"text-amino-secondary mb-2 block",children:C}),m.jsx(v.default,e._objectSpread2(e._objectSpread2({ref:T,closeMenuOnScroll:N,components:n.__assign({ClearIndicator:x,Control:b,DropdownIndicator:f,MultiValueLabel:y,MultiValueRemove:S,Option:w},a),menuPosition:q,placeholder:R||"",styles:n.__assign(n.__assign({},L),W)},D),V)),m.jsx(s.HelpText,{error:c,helpText:g})]})};
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),n=require("../../tslib.es6-cdc5f922.js"),i=require("react"),o=require("react-intersection-observer"),r=require("react-select"),t=require("../checkbox/Checkbox.js"),s=require("../help-text/HelpText.js"),a=require("../../icons/CheckmarkIcon.js"),l=require("../../icons/DoubleChevronIcon.js"),c=require("../../icons/RemoveCircleIcon.js"),d=require("../../icons/RemoveIcon.js"),u=require("../../styles/constants/theme.js"),p=require("../../utils/cn.js"),_=require("../../utils/getTestId.js"),m=require("react/jsx-runtime");function g(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../text/Text.js"),require("clsx"),require("tailwind-merge"),require("../../icons/icon-base/_IconBase.js");var h=g(r),v={lg:u.theme.sizeLg,md:u.theme.sizeMd,sm:u.theme.sizeSm,xl:u.theme.sizeXl},x=function(e){switch(e){case"sm":return"".concat(u.theme.radius6);case"lg":case"xl":return"".concat(u.theme.radius10);default:return"".concat(u.theme.radius8)}},f=function(n){return m.jsx(r.components.ClearIndicator,e._objectSpread2(e._objectSpread2({},n),{},{children:m.jsx(c.RemoveCircleIcon,{size:24})}))},b=function(n){return m.jsx(r.components.DropdownIndicator,e._objectSpread2(e._objectSpread2({},n),{},{children:m.jsx(l.DoubleChevronIcon,{size:24})}))},j=function(n){var i=n.children,o=n.className,r=n.getStyles,t=n.hasValue,s=n.innerProps,a=n.innerRef,l=n.isDisabled,c=n.isFocused,d=n.menuIsOpen,u=n.selectProps,_=u.icon,g=u.label,h=u.size,v=u.value;return m.jsxs("div",e._objectSpread2(e._objectSpread2({ref:a,className:p.cn(o,"react-select-control",t&&"flex items-center",_&&"has-icon flex items-center",c&&"is-focused",l&&"opacity-disabled",d&&"menu-is-open",g||Array.isArray(v)&&v.length>1?"has-label":"","sm"===h&&"h-8","md"===h&&"h-10","lg"===h&&"h-12","xl"===h&&"h-14"),style:r("control",n)},s),{},{children:[_&&m.jsx("div",{className:"ml-amino-8 -mr-[2px] flex h-6 w-6 items-center justify-evenly text-gray-700",children:_}),i]}))},S=function(e){var n=e.children,i=e.color,o=e.icon;return m.jsxs("div",{className:"[&_svg]:text-gray-1000 flex items-center [&_svg]:mr-1",style:{color:i||"inherit"},children:[o,n]})},y=function(i){var o=i.children,t=n.__rest(i,["children"]);return m.jsx(r.components.MultiValueLabel,e._objectSpread2(e._objectSpread2({},t),{},{children:m.jsx(S,{icon:t.data.icon,children:o})}))},w=function(n){var i=n.innerProps;return m.jsx("div",e._objectSpread2(e._objectSpread2({},i),{},{role:"button",children:m.jsx(d.RemoveIcon,{size:14})}))},C=function(i){var r=i.children,s=i.className,l=i.data,c=i.getStyles,d=i.innerProps,u=i.innerRef,_=i.isDisabled,g=i.isFocused,h=i.isSelected,v=i.selectProps,x=o.useInView({fallbackInView:!0,triggerOnce:!0}),f=x.inView,b=x.ref,j=v,y=j.customOption,w=j.hasGroups,C=c("option",i),I=C.color,q=n.__rest(C,["color"]);w&&(q.paddingLeft=48);return m.jsx("div",e._objectSpread2(e._objectSpread2({ref:u},d),{},{children:m.jsx("div",{className:p.cn(s,"rounded-lg",g&&!_&&"bg-gray-50! dark:bg-gray-100!",_&&"opacity-disabled"),style:q,children:v.isMulti?m.jsx(t.Checkbox,{checked:h,disabled:_,icon:l.icon,label:l.label,labelDescription:l.labelDescription,onChange:function(){}}):y?y(l.value):m.jsxs("div",{ref:b,className:"flex items-center justify-between",children:[f&&m.jsx(S,{color:I,icon:l.icon,children:r}),h&&m.jsx(a.CheckmarkIcon,{color:"blue600",size:24})]})})}))};exports.CheckboxOptionComponent=C,exports.StyledReactSelect=function(o){var r=o.closeOnOutsideScroll,t=void 0!==r&&r,a=o.components,l=o.customOption,c=o.error,d=o.hasGroups,g=o.helpText,S=o.icon,I=o.label,q=o.menuPosition,R=void 0===q?"fixed":q,z=o.placeholder,k=o.size,L=void 0===k?"md":k,O=o.style,V=n.__rest(o,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","style"]),P={customOption:l,hasGroups:d,icon:S,label:I,size:L},T=i.useMemo(function(){return _.getTestId({componentName:"select",name:I})},[I]),N=i.useRef(null),M=i.useMemo(function(){return!!t&&function(e){var n,i;return!(e.target instanceof HTMLElement)||!(null===(i=null===(n=N.current)||void 0===n?void 0:n.menuListRef)||void 0===i?void 0:i.isEqualNode(e.target))}},[t]),D=V.styles,W=n.__rest(V,["styles"]),H=function(e){return{clearIndicator:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{color:u.theme.gray700,paddingLeft:"14px !important",paddingRight:"4px !important"}),null===(r=null==e?void 0:e.clearIndicator)||void 0===r?void 0:r.call(e,i,o))},control:function(i,o){var r,t=o.selectProps.size;return n.__assign(n.__assign(n.__assign({},i),{backgroundColor:u.theme.raisedSurfaceColor,borderColor:"unset",borderRadius:x(t),borderWidth:0,boxShadow:o.isFocused?"".concat(u.theme.shadowRaisedFocus):"".concat(u.theme.shadowRaisedStandard),color:u.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:t?v[t]:void 0,minHeight:t?v[t]:void 0}),null===(r=null==e?void 0:e.control)||void 0===r?void 0:r.call(e,i,o))},dropdownIndicator:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{color:u.theme.gray900,paddingLeft:"4px !important",paddingRight:"10px !important"}),null===(r=null==e?void 0:e.dropdownIndicator)||void 0===r?void 0:r.call(e,i,o))},group:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{paddingBottom:"0px !important",paddingTop:"0px !important"}),null===(r=null==e?void 0:e.group)||void 0===r?void 0:r.call(e,i,o))},indicatorSeparator:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{width:0}),null===(r=null==e?void 0:e.indicatorSeparator)||void 0===r?void 0:r.call(e,i,o))},input:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{color:u.theme.textColor,opacity:.8}),null===(r=null==e?void 0:e.input)||void 0===r?void 0:r.call(e,i,o))},menu:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{background:u.theme.surfaceColor,borderRadius:12,boxShadow:u.theme.v3ShadowLarge,marginTop:"8px !important",zIndex:20}),null===(r=null==e?void 0:e.menu)||void 0===r?void 0:r.call(e,i,o))},menuList:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{padding:"8px !important"}),null===(r=null==e?void 0:e.menuList)||void 0===r?void 0:r.call(e,i,o))},menuPortal:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{zIndex:20}),null===(r=null==e?void 0:e.menuPortal)||void 0===r?void 0:r.call(e,i,o))},multiValue:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{alignItems:"center",background:u.theme.gray100,borderRadius:u.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:"2px !important"}),null===(r=null==e?void 0:e.multiValue)||void 0===r?void 0:r.call(e,i,o))},multiValueLabel:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{color:u.theme.textColor}),null===(r=null==e?void 0:e.multiValueLabel)||void 0===r?void 0:r.call(e,i,o))},option:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{backgroundColor:"inherit",borderRadius:"8px",color:o.isSelected?u.theme.blue600:u.theme.textColor,cursor:"pointer",fontWeight:o.isSelected?500:400,paddingBottom:"7px !important",paddingLeft:"8px !important",paddingRight:"12px !important",paddingTop:"7px !important"}),null===(r=null==e?void 0:e.option)||void 0===r?void 0:r.call(e,i,o))},placeholder:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{".has-label.is-focused &":{opacity:1},color:u.theme.gray500,fontSize:u.theme.fontSizeBase,fontWeight:400,opacity:1}),null===(r=null==e?void 0:e.placeholder)||void 0===r?void 0:r.call(e,i,o))},singleValue:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{color:u.theme.textColor,fontWeight:500}),null===(r=null==e?void 0:e.singleValue)||void 0===r?void 0:r.call(e,i,o))},valueContainer:function(i,o){var r;return n.__assign(n.__assign(n.__assign({},i),{flexWrap:"nowrap",padding:"unset",paddingLeft:"12px !important"}),null===(r=null==e?void 0:e.valueContainer)||void 0===r?void 0:r.call(e,i,o))}}}(D);return m.jsxs("div",{className:p.cn("relative","[&_.react-select-control+div]:z-20","[&_.react-select-control.is-focused]:shadow-[var(--amino-shadow-raised-standard)]","[&_.react-select-control.is-focused:not(.menu-is-open)]:shadow-[var(--amino-shadow-raised-focus)]",c&&["[&_.has-label]:text-red-600","[&_.react-select-control]:shadow-[var(--amino-shadow-raised-error)]","[&_.react-select-control.is-focused:not(.menu-is-open)]:shadow-[var(--amino-shadow-raised-error-focus)]"]),"data-testid":T,children:[I&&m.jsx("label",{className:"text-amino-secondary mb-2 block",children:I}),m.jsx(h.default,e._objectSpread2(e._objectSpread2({ref:N,closeMenuOnScroll:M,components:n.__assign({ClearIndicator:f,Control:j,DropdownIndicator:b,MultiValueLabel:y,MultiValueRemove:w,Option:C},a),menuPosition:R,placeholder:z||"",styles:n.__assign(n.__assign({},O),H)},W),P)),m.jsx(s.HelpText,{error:c,helpText:g})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js");require("react");var r=require("../checkbox/Checkbox.js"),t=require("../skeleton/Skeleton.js"),i=require("../text/Text.js"),n=require("../../utils/cn.js"),o=require("./SimpleTableRow.js"),a=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../table/TableRowCollapse.js"),require("../button/Button.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../tooltip/Tooltip.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip");var d=function(e){switch(e){case"center":return"center";case"end":return"flex-end";default:return"flex-start"}};exports.SimpleTable=function(l){var s=l.bordered,h=void 0!==s&&s,c=l.className,u=l.collapsible,b=void 0===u?{enabled:!1,expandedItemKeys:[],toggleItem:function(){}}:u,m=l.CustomLinkComponent,p=l.getRowLink,x=l.headers,j=l.items,g=l.keyExtractor,q=l.loading,k=void 0!==q&&q,_=l.loadingItems,f=void 0===_?10:_,v=l.loadingSkeletonHeight,y=void 0===v?13:v,C=l.maxHeight,w=void 0===C?"100%":C,H=l.noHoverBackground,R=void 0!==H&&H,T=l.onRowClick,N=l.onRowHover,S=l.renderFooter,I=l.selectable,B=void 0===I?{enabled:!1}:I,A=l.style;return a.jsx("div",{className:n.cn("w-full overflow-auto",c),style:e.__assign({maxHeight:w},A),children:a.jsxs("table",{className:n.cn("amino-simple-table text-amino-base h-fit w-full border-separate\n border-spacing-0","[&>tbody>tr]:h-12","[&>thead>tr]:border-b-amino-subtle [&>thead]:no-underline\n [&>thead>tr]:h-12 [&>thead>tr]:border-b","[&>thead>tr>th]:bg-gray-0 [&>thead>tr>th]:p-amino-12\n [&>thead>tr>th]:border-b-amino-subtle [&>thead>tr>th]:sticky\n [&>thead>tr>th]:top-0 [&>thead>tr>th]:z-1 [&>thead>tr>th]:border-b\n [&>thead>tr>th]:whitespace-nowrap","[&>thead>tr>th.p-0]:p-0",b.enabled&&"[&_tr>td:last-child]:w-10 [&_tr>td:last-child>div]:p-0\n [&>tbody_*]:transition-all [&>tbody>tr:not(:has(.h-12))]:h-auto",h&&"[&_tr:first-child_td]:border-t-amino-subtle\n [&_tr:first-child_td:first-child]:rounded-tl-amino-12\n [&_tr:first-child_td:last-child]:rounded-tr-amino-12\n [&_tr:last-child_td:first-child]:rounded-bl-amino-12\n [&_tr:last-child_td:last-child]:rounded-br-amino-12\n [&_td:first-child]:border-l-amino-subtle\n [&_td:last-child]:border-r-amino-subtle [&_td:first-child]:border-l\n [&_td:last-child]:border-r [&_th]:border-0\n [&_tr:first-child_td]:border-t [&>thead>tr]:border-b-0\n [&>thead>tr>th]:border-b-0",x.every(function(e){return!e.name})&&"[&_thead]:hidden [&_thead]:max-h-0"),children:[a.jsxs("colgroup",{children:[!!B.onHeaderCheckboxChange&&a.jsx("col",{width:0}),x.map(function(e){return a.jsx("col",{style:{minWidth:void 0!==e.minWidth?"".concat(e.minWidth,"px"):void 0},width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)}),b.enabled&&a.jsx("col",{})]}),a.jsx("thead",{children:a.jsxs("tr",{children:[!!B.onHeaderCheckboxChange&&a.jsx("th",{className:"p-0",children:B.renderCustomHeaderCheckbox||a.jsx(r.Checkbox,{checked:!k&&B.headerCheckboxValue||!1,className:"p-amino-12 inline-flex","data-testid":"amino--header-checkbox",disabled:k,onChange:B.onHeaderCheckboxChange})}),x.map(function(e){return a.jsx("th",{className:n.cn(e.noPadding&&"p-0"),style:{textAlign:e.align||"start"},children:"string"==typeof e.name?a.jsx(i.Text,{color:"gray800",type:"small-header",children:e.name}):e.name},e.key)}),b.enabled&&a.jsx("th",{})]})}),a.jsx("tbody",{children:k?e.__spreadArray([],e.__read(Array(f).keys()),!1).map(function(e){return a.jsxs("tr",{children:[B.enabled&&a.jsx("td",{className:"p-amino-12 h-12",children:a.jsx("div",{children:a.jsx(t.Skeleton,{height:y},e)})}),x.map(function(r){return a.jsx("td",{className:n.cn("p-amino-12 h-12",r.noPadding&&"p-0"),children:a.jsx("div",{className:"flex",style:{justifyContent:d(r.align)},children:a.jsx(t.Skeleton,{height:y,style:{width:"70%"}},e)})},r.key)}),b.enabled&&a.jsx("td",{})]},e)}):j.map(function(e,r){var t=g(e);return a.jsx(o.SimpleTableRow,{CustomLinkComponent:m,bordered:h,collapsible:b,getRowLink:p,headers:x,index:r,item:e,noHoverBackground:R,onRowClick:T,onRowHover:N,rowKey:t,selectable:B},t)})}),S]})})};
1
+ "use strict";var e=require("../../tslib.es6-cdc5f922.js");require("react");var r=require("../checkbox/Checkbox.js"),t=require("../skeleton/Skeleton.js"),i=require("../text/Text.js"),n=require("../../utils/cn.js"),o=require("./SimpleTableRow.js"),a=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../table/TableRowCollapse.js"),require("../button/Button.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../tooltip/Tooltip.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip");var d=function(e){switch(e){case"center":return"center";case"end":return"flex-end";default:return"flex-start"}};exports.SimpleTable=function(l){var s=l.bordered,h=void 0!==s&&s,c=l.className,u=l.collapsible,b=void 0===u?{enabled:!1,expandedItemKeys:[],toggleItem:function(){}}:u,m=l.CustomLinkComponent,p=l.getRowLink,x=l.headers,j=l.items,g=l.keyExtractor,q=l.loading,k=void 0!==q&&q,_=l.loadingItems,f=void 0===_?10:_,v=l.loadingSkeletonHeight,y=void 0===v?13:v,C=l.maxHeight,w=void 0===C?"100%":C,H=l.noHoverBackground,R=void 0!==H&&H,T=l.onRowClick,N=l.onRowHover,S=l.renderFooter,I=l.selectable,B=void 0===I?{enabled:!1}:I,A=l.style;return a.jsx("div",{className:n.cn("w-full overflow-auto",c),style:e.__assign({maxHeight:w},A),children:a.jsxs("table",{className:n.cn("amino-simple-table text-amino-base h-fit w-full border-separate\n border-spacing-0","[&>tbody>tr]:h-12","[&>thead>tr]:border-b-amino-subtle [&>thead>tr]:h-12\n [&>thead>tr]:border-b","[&>thead>tr>th]:bg-gray-0 [&>thead>tr>th]:p-amino-12\n [&>thead>tr>th]:border-b-amino-subtle [&>thead>tr>th]:sticky\n [&>thead>tr>th]:top-0 [&>thead>tr>th]:z-1 [&>thead>tr>th]:border-b\n [&>thead>tr>th]:whitespace-nowrap","[&>thead>tr>th.p-0]:p-0",b.enabled&&"[&_tr>td:last-child]:w-10 [&_tr>td:last-child>div]:p-0\n [&>tbody_*]:transition-all [&>tbody>tr:not(:has(.h-12))]:h-auto",h&&"[&_tr:first-child_td]:border-t-amino-subtle\n [&_tr:first-child_td:first-child]:rounded-tl-amino-12\n [&_tr:first-child_td:last-child]:rounded-tr-amino-12\n [&_tr:last-child_td:first-child]:rounded-bl-amino-12\n [&_tr:last-child_td:last-child]:rounded-br-amino-12\n [&_td:first-child]:border-l-amino-subtle\n [&_td:last-child]:border-r-amino-subtle [&_td:first-child]:border-l\n [&_td:last-child]:border-r [&_th]:border-0\n [&_tr:first-child_td]:border-t [&>thead>tr]:border-b-0\n [&>thead>tr>th]:border-b-0",x.every(function(e){return!e.name})&&"[&_thead]:hidden [&_thead]:max-h-0"),children:[a.jsxs("colgroup",{children:[!!B.onHeaderCheckboxChange&&a.jsx("col",{width:0}),x.map(function(e){return a.jsx("col",{style:{minWidth:void 0!==e.minWidth?"".concat(e.minWidth,"px"):void 0},width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)}),b.enabled&&a.jsx("col",{})]}),a.jsx("thead",{children:a.jsxs("tr",{children:[!!B.onHeaderCheckboxChange&&a.jsx("th",{className:"p-0",children:B.renderCustomHeaderCheckbox||a.jsx(r.Checkbox,{checked:!k&&B.headerCheckboxValue||!1,className:"p-amino-12 inline-flex","data-testid":"amino--header-checkbox",disabled:k,onChange:B.onHeaderCheckboxChange})}),x.map(function(e){return a.jsx("th",{className:n.cn(e.noPadding&&"p-0"),style:{textAlign:e.align||"start"},children:"string"==typeof e.name?a.jsx(i.Text,{color:"gray800",type:"small-header",children:e.name}):e.name},e.key)}),b.enabled&&a.jsx("th",{})]})}),a.jsx("tbody",{children:k?e.__spreadArray([],e.__read(Array(f).keys()),!1).map(function(e){return a.jsxs("tr",{children:[B.enabled&&a.jsx("td",{className:"p-amino-12 h-12",children:a.jsx("div",{children:a.jsx(t.Skeleton,{height:y},e)})}),x.map(function(r){return a.jsx("td",{className:n.cn("p-amino-12 h-12",r.noPadding&&"p-0"),children:a.jsx("div",{className:"flex",style:{justifyContent:d(r.align)},children:a.jsx(t.Skeleton,{height:y,style:{width:"70%"}},e)})},r.key)}),b.enabled&&a.jsx("td",{})]},e)}):j.map(function(e,r){var t=g(e);return a.jsx(o.SimpleTableRow,{CustomLinkComponent:m,bordered:h,collapsible:b,getRowLink:p,headers:x,index:r,item:e,noHoverBackground:R,onRowClick:T,onRowHover:N,rowKey:t,selectable:B},t)})}),S]})})};
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("../checkbox/Checkbox.js"),r=require("../table/TableRowCollapse.js"),l=require("../tooltip/Tooltip.js"),i=require("../../utils/cn.js"),n=require("react/jsx-runtime");function o(e){return e&&e.__esModule?e:{default:e}}require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../text/Text.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../button/Button.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip");var d=o(e),s=800;exports.SimpleTableRow=function(o){var a,c,p=o.bordered,u=o.collapsible,h=o.CustomLinkComponent,f=o.getRowLink,w=o.headers,b=o.index,v=o.item,m=o.noHoverBackground,x=o.onRowClick,j=o.onRowHover,k=o.rowKey,C=o.selectable,q=e.useRef(null),g=function(e){var t=v[e.key],r=function(t){var r=d.default.Children.toArray(t).some(function(e){return!!d.default.isValidElement(e)&&/row-hover-show|cell-hover-show/.test(e.props.className)}),o=i.cn("truncate"===e.textWrapMethod&&!r&&"max-w-[var(--amino-cell-min-width)]\n min-w-[var(--amino-cell-min-width)] [&>:first-child]:overflow-hidden\n [&>:first-child]:text-ellipsis"),a={"--amino-cell-min-width":"".concat(e.minWidth||0,"px")},c=i.cn(e.noPadding&&"p-0","normal"===e.textWrapMethod&&"whitespace-normal"),p={textAlign:e.align||"start"},u=function(e){switch(e){case"center":return"bottom";case"end":return"bottom-end";default:return"bottom-start"}}(e.align);if(f&&!(null==C?void 0:C.anySelected)&&!e.disabledLink){var w=h||"a";return n.jsx("td",{className:o,style:a,children:n.jsx(l.Tooltip,{disabled:"truncate"!==e.textWrapMethod,enterDelay:s,enterNextDelay:s,placement:u,subtitle:t,children:n.jsx(w,{className:i.cn("p-amino-12 block h-full w-full content-center\n whitespace-nowrap",c),href:f(v),style:p,children:t})})})}return n.jsx("td",{className:o,style:a,children:n.jsx(l.Tooltip,{disabled:"truncate"!==e.textWrapMethod,enterDelay:s,enterNextDelay:s,placement:u,subtitle:t,children:n.jsx("span",{className:i.cn("p-amino-12 block h-full w-full content-center\n whitespace-nowrap",c),style:p,children:t})})})};return e.renderCustom?n.jsx(n.Fragment,{children:r(e.renderCustom(t,v))}):n.jsx(n.Fragment,{children:r(String(t))})},y=function(){var r,l,i;return n.jsxs(n.Fragment,{children:[(null==C?void 0:C.enabled)&&n.jsx("td",{ref:q,children:(null===(r=null==C?void 0:C.renderCustomRowCheckbox)||void 0===r?void 0:r.call(C,v,b))||n.jsx(t.Checkbox,{checked:(null===(l=null==C?void 0:C.isRowChecked)||void 0===l?void 0:l.call(C,v,b))||!1,"data-testid":"amino--row-checkbox-".concat(k),disabled:(null===(i=null==C?void 0:C.isRowCheckboxDisabled)||void 0===i?void 0:i.call(C,v,b))||!1,onChange:function(e){var t;return null===(t=null==C?void 0:C.onRowCheckboxChange)||void 0===t?void 0:t.call(C,e,v,b)}})}),w.map(function(t){return n.jsx(e.Fragment,{children:g(t)},t.key)})]})};if((null==u?void 0:u.enabled)&&(null===(a=u.collapseContent)||void 0===a?void 0:a.length)){var R=u.collapseContent,_=u.expandedItemKeys,T=u.toggleItem,N=!_.includes(k),D=null===(c=null==R?void 0:R.find(function(e){return e.key===k}))||void 0===c?void 0:c.content;return n.jsx(r.TableRowCollapse,{className:i.cn("[&>td]:border-b-amino-subtle [&>td>:first-child]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>a]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>span]:p-amino-12 h-12\n [&:not(:hover)_.row-hover-show]:invisible [&>td]:border-b [&>td]:p-0\n [&>td>:first-child]:block [&>td>:first-child]:h-full\n [&>td>:first-child]:w-full [&>td>:first-child]:content-center\n [&>td>:first-child]:whitespace-nowrap\n [&>td>:first-child.tooltip-wrapper]:p-0\n [&>td>:first-child.tooltip-wrapper>a]:block\n [&>td>:first-child.tooltip-wrapper>a]:h-full\n [&>td>:first-child.tooltip-wrapper>a]:w-full\n [&>td>:first-child.tooltip-wrapper>a]:content-center\n [&>td>:first-child.tooltip-wrapper>a]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>a]:text-ellipsis\n [&>td>:first-child.tooltip-wrapper>span]:block\n [&>td>:first-child.tooltip-wrapper>span]:h-full\n [&>td>:first-child.tooltip-wrapper>span]:w-full\n [&>td>:first-child.tooltip-wrapper>span]:content-center\n [&>td>:first-child.tooltip-wrapper>span]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>span]:text-ellipsis\n [&>td>:first-child:not(:hover)_.cell-hover-show]:invisible",!m&&"hover:bg-hover",N&&"[&>td]:border-b-amino-subtle [&>td]:border-b",!N&&"[&_td]:border-b-amino-subtle [&_td]:border-b",D&&N&&"[&+tr>td]:border-0 [&+tr>td>:first-child]:p-0",p&&N&&"nth-last-2:rounded-bl-amino-12\n [&:nth-last-child(2)_td:first-child]:rounded-bl-amino-12\n [&:nth-last-child(2)_td:last-child]:rounded-br-amino-12"),collapsed:N,onToggleCollapse:function(){T(k),null==x||x(v)},rowContent:y(),rowKey:k,children:D},k)}var I=!!x||!!(null==C?void 0:C.anySelected)&&!!(null==C?void 0:C.onRowCheckboxChange);return n.jsx("tr",{className:i.cn("[&>td]:border-b-amino-subtle [&>td>:first-child]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>a]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>span]:p-amino-12 h-12\n [&:not(:hover)_.row-hover-show]:invisible [&>td]:border-b [&>td]:p-0\n [&>td>:first-child]:block [&>td>:first-child]:h-full\n [&>td>:first-child]:w-full [&>td>:first-child]:content-center\n [&>td>:first-child]:whitespace-nowrap\n [&>td>:first-child.tooltip-wrapper]:p-0\n [&>td>:first-child.tooltip-wrapper>a]:block\n [&>td>:first-child.tooltip-wrapper>a]:h-full\n [&>td>:first-child.tooltip-wrapper>a]:w-full\n [&>td>:first-child.tooltip-wrapper>a]:content-center\n [&>td>:first-child.tooltip-wrapper>a]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>a]:text-ellipsis\n [&>td>:first-child.tooltip-wrapper>span]:block\n [&>td>:first-child.tooltip-wrapper>span]:h-full\n [&>td>:first-child.tooltip-wrapper>span]:w-full\n [&>td>:first-child.tooltip-wrapper>span]:content-center\n [&>td>:first-child.tooltip-wrapper>span]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>span]:text-ellipsis\n [&>td>:first-child:not(:hover)_.cell-hover-show]:invisible",I&&"cursor-pointer",!m&&"hover:bg-hover"),"data-testid":"amino--row-".concat(k),onClick:function(e){var t,r,l,i;(null==C?void 0:C.anySelected)||(null===(t=q.current)||void 0===t?void 0:t.contains(e.target))?(null===(r=null==C?void 0:C.isRowCheckboxDisabled)||void 0===r?void 0:r.call(C,v,b))||(e.preventDefault(),null===(l=null==C?void 0:C.onRowCheckboxChange)||void 0===l||l.call(C,!(null===(i=null==C?void 0:C.isRowChecked)||void 0===i?void 0:i.call(C,v,b)),v,b)):null==x||x(v)},onMouseEnter:function(){return null==j?void 0:j(v)},children:y()},k)};
1
+ "use strict";var e=require("react"),t=require("../checkbox/Checkbox.js"),r=require("../table/TableRowCollapse.js"),l=require("../tooltip/Tooltip.js"),i=require("../../utils/cn.js"),n=require("react/jsx-runtime");function o(e){return e&&e.__esModule?e:{default:e}}require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../text/Text.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../button/Button.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../flex/Flex.js"),require("../ui/tooltip.js"),require("@radix-ui/react-tooltip");var d=o(e),s=800;exports.SimpleTableRow=function(o){var a,c,p=o.bordered,u=o.collapsible,h=o.CustomLinkComponent,f=o.getRowLink,w=o.headers,b=o.index,v=o.item,m=o.noHoverBackground,x=o.onRowClick,j=o.onRowHover,k=o.rowKey,C=o.selectable,q=e.useRef(null),g=function(e){var t=v[e.key],r=function(t){var r=d.default.Children.toArray(t).some(function(e){return!!d.default.isValidElement(e)&&/row-hover-show|cell-hover-show/.test(e.props.className)}),o=i.cn("truncate"===e.textWrapMethod&&!r&&"max-w-[var(--amino-cell-min-width)]\n min-w-[var(--amino-cell-min-width)] [&>:first-child]:overflow-hidden\n [&>:first-child]:text-ellipsis"),a={"--amino-cell-min-width":"".concat(e.minWidth||0,"px")},c=i.cn(e.noPadding&&"p-0!","normal"===e.textWrapMethod&&"whitespace-normal!"),p={textAlign:e.align||"start"},u=function(e){switch(e){case"center":return"bottom";case"end":return"bottom-end";default:return"bottom-start"}}(e.align);if(f&&!(null==C?void 0:C.anySelected)&&!e.disabledLink){var w=h||"a";return n.jsx("td",{className:o,style:a,children:n.jsx(l.Tooltip,{disabled:"truncate"!==e.textWrapMethod,enterDelay:s,enterNextDelay:s,placement:u,subtitle:t,children:n.jsx(w,{className:i.cn("p-amino-12 block h-full w-full content-center\n whitespace-nowrap",c),href:f(v),style:p,children:t})})})}return n.jsx("td",{className:o,style:a,children:n.jsx(l.Tooltip,{disabled:"truncate"!==e.textWrapMethod,enterDelay:s,enterNextDelay:s,placement:u,subtitle:t,children:n.jsx("span",{className:i.cn("p-amino-12 block h-full w-full content-center\n whitespace-nowrap",c),style:p,children:t})})})};return e.renderCustom?n.jsx(n.Fragment,{children:r(e.renderCustom(t,v))}):n.jsx(n.Fragment,{children:r(String(t))})},y=function(){var r,l,i;return n.jsxs(n.Fragment,{children:[(null==C?void 0:C.enabled)&&n.jsx("td",{ref:q,children:(null===(r=null==C?void 0:C.renderCustomRowCheckbox)||void 0===r?void 0:r.call(C,v,b))||n.jsx(t.Checkbox,{checked:(null===(l=null==C?void 0:C.isRowChecked)||void 0===l?void 0:l.call(C,v,b))||!1,"data-testid":"amino--row-checkbox-".concat(k),disabled:(null===(i=null==C?void 0:C.isRowCheckboxDisabled)||void 0===i?void 0:i.call(C,v,b))||!1,onChange:function(e){var t;return null===(t=null==C?void 0:C.onRowCheckboxChange)||void 0===t?void 0:t.call(C,e,v,b)}})}),w.map(function(t){return n.jsx(e.Fragment,{children:g(t)},t.key)})]})};if((null==u?void 0:u.enabled)&&(null===(a=u.collapseContent)||void 0===a?void 0:a.length)){var R=u.collapseContent,_=u.expandedItemKeys,T=u.toggleItem,N=!_.includes(k),D=null===(c=null==R?void 0:R.find(function(e){return e.key===k}))||void 0===c?void 0:c.content;return n.jsx(r.TableRowCollapse,{className:i.cn("[&>td]:border-b-amino-subtle [&>td>:first-child]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>a]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>span]:p-amino-12 h-12\n [&:not(:hover)_.row-hover-show]:invisible [&>td]:border-b [&>td]:p-0\n [&>td>:first-child]:block [&>td>:first-child]:h-full\n [&>td>:first-child]:w-full [&>td>:first-child]:content-center\n [&>td>:first-child]:whitespace-nowrap\n [&>td>:first-child.tooltip-wrapper]:p-0\n [&>td>:first-child.tooltip-wrapper>a]:block\n [&>td>:first-child.tooltip-wrapper>a]:h-full\n [&>td>:first-child.tooltip-wrapper>a]:w-full\n [&>td>:first-child.tooltip-wrapper>a]:content-center\n [&>td>:first-child.tooltip-wrapper>a]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>a]:text-ellipsis\n [&>td>:first-child.tooltip-wrapper>span]:block\n [&>td>:first-child.tooltip-wrapper>span]:h-full\n [&>td>:first-child.tooltip-wrapper>span]:w-full\n [&>td>:first-child.tooltip-wrapper>span]:content-center\n [&>td>:first-child.tooltip-wrapper>span]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>span]:text-ellipsis\n [&>td>:first-child:not(:hover)_.cell-hover-show]:invisible",!m&&"hover:bg-hover",N&&"[&>td]:border-b-amino-subtle [&>td]:border-b",!N&&"[&_td]:border-b-amino-subtle [&_td]:border-b",D&&N&&"[&+tr>td]:border-0 [&+tr>td>:first-child]:p-0",p&&N&&"nth-last-2:rounded-bl-amino-12\n [&:nth-last-child(2)_td:first-child]:rounded-bl-amino-12\n [&:nth-last-child(2)_td:last-child]:rounded-br-amino-12"),collapsed:N,onToggleCollapse:function(){T(k),null==x||x(v)},rowContent:y(),rowKey:k,children:D},k)}var I=!!x||!!(null==C?void 0:C.anySelected)&&!!(null==C?void 0:C.onRowCheckboxChange);return n.jsx("tr",{className:i.cn("[&>td]:border-b-amino-subtle [&>td>:first-child]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>a]:p-amino-12\n [&>td>:first-child.tooltip-wrapper>span]:p-amino-12 h-12\n [&:not(:hover)_.row-hover-show]:invisible [&>td]:border-b [&>td]:p-0\n [&>td>:first-child]:block [&>td>:first-child]:h-full\n [&>td>:first-child]:w-full [&>td>:first-child]:content-center\n [&>td>:first-child]:whitespace-nowrap\n [&>td>:first-child.tooltip-wrapper]:p-0\n [&>td>:first-child.tooltip-wrapper>a]:block\n [&>td>:first-child.tooltip-wrapper>a]:h-full\n [&>td>:first-child.tooltip-wrapper>a]:w-full\n [&>td>:first-child.tooltip-wrapper>a]:content-center\n [&>td>:first-child.tooltip-wrapper>a]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>a]:text-ellipsis\n [&>td>:first-child.tooltip-wrapper>span]:block\n [&>td>:first-child.tooltip-wrapper>span]:h-full\n [&>td>:first-child.tooltip-wrapper>span]:w-full\n [&>td>:first-child.tooltip-wrapper>span]:content-center\n [&>td>:first-child.tooltip-wrapper>span]:overflow-hidden\n [&>td>:first-child.tooltip-wrapper>span]:text-ellipsis\n [&>td>:first-child:not(:hover)_.cell-hover-show]:invisible",I&&"cursor-pointer",!m&&"hover:bg-hover"),"data-testid":"amino--row-".concat(k),onClick:function(e){var t,r,l,i;(null==C?void 0:C.anySelected)||(null===(t=q.current)||void 0===t?void 0:t.contains(e.target))?(null===(r=null==C?void 0:C.isRowCheckboxDisabled)||void 0===r?void 0:r.call(C,v,b))||(e.preventDefault(),null===(l=null==C?void 0:C.onRowCheckboxChange)||void 0===l||l.call(C,!(null===(i=null==C?void 0:C.isRowChecked)||void 0===i?void 0:i.call(C,v,b)),v,b)):null==x||x(v)},onMouseEnter:function(){return null==j?void 0:j(v)},children:y()},k)};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),r=require("../../tslib.es6-cdc5f922.js"),t=require("../../styles/constants/theme.js"),s=require("../../utils/cn.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.TableCell=function(l){var a=l.align,n=void 0===a?"left":a,o=l.borderBottom,c=l.children,d=l.className,u=l.colSpan,b=l.padding,m=l.style,p=l.tag,j={align:n,className:s.cn("text-0 tabular-nums","[&>*]:text-amino-base","[.Amino-table-size-medium_&]:h-14","[.Amino-table-size-small_&]:h-12",!b&&"p-0 first:pl-4 last:pr-4",d),colSpan:u,style:r.__assign(r.__assign({},m),{borderBottom:o||t.theme.borderSubtle,padding:b||void 0,textAlign:n})},_=i.jsx("div",{className:"inline-block",children:c});return"th"===p?i.jsx("th",e._objectSpread2(e._objectSpread2({},j),{},{children:_})):i.jsx("td",e._objectSpread2(e._objectSpread2({},j),{},{children:_}))};
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),r=require("../../tslib.es6-cdc5f922.js"),t=require("../../styles/constants/theme.js"),s=require("../../utils/cn.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");exports.TableCell=function(l){var a=l.align,n=void 0===a?"left":a,o=l.borderBottom,c=l.children,d=l.className,u=l.colSpan,b=l.padding,m=l.style,p=l.tag,j={align:n,className:s.cn("text-[0px] tabular-nums","[&>*]:text-amino-base","[.Amino-table-size-medium_&]:h-14","[.Amino-table-size-small_&]:h-12",!b&&"p-0 first:pl-4 last:pr-4",d),colSpan:u,style:r.__assign(r.__assign({},m),{borderBottom:o||t.theme.borderSubtle,padding:b||void 0,textAlign:n})},_=i.jsx("div",{className:"inline-block",children:c});return"th"===p?i.jsx("th",e._objectSpread2(e._objectSpread2({},j),{},{children:_})):i.jsx("td",e._objectSpread2(e._objectSpread2({},j),{},{children:_}))};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),a=require("../../styles/constants/theme.js"),s=require("../../utils/cn.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var r=[{label:"Page Header (3XL) · 30px (1.875rem)",size:"3xl",tag:"h1",type:"page-header",weight:700},{label:"Secondary Page Header (3XL) · 30px (1.875rem)",size:"3xl",tag:"h2",type:"secondary-page-header",weight:500},{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"header",weight:600},{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"description-header",weight:700},{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",type:"title",weight:600},{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"bold-subheader",weight:700},{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",type:"semi-bold-subheader",weight:600},{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"subheader",weight:500},{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"bold-label",weight:700},{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"label",weight:500},{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",type:"body",weight:400},{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",type:"small-header",weight:600},{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",type:"caption",weight:400},{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",type:"hint-text",weight:400}],l=t.__read(r,14),n=l[0],h=l[1],p=l[2],g=l[3],c=l[4],o=l[5],d=l[6],b=l[7],u=l[8],z=l[9],x=l[10],m=l[11],w=l[12],f=l[13];exports.Text=function(r){var l=r.children,j=r.className,y=r.color,S=r.fontSize,_=r.fontWeight,W=r.isUppercase,U=r.lineHeight,L=r.style,v=r.tag,H=r.title,B=function(r){var n=r.as,h=r.fontWeight,p=r.isUppercase,g=r.size,c={className:s.cn("m-0 [&_svg]:inline-block [&_svg]:align-middle",j),style:t.__assign(t.__assign({},L),{color:y?a.theme[y]:"inherit",fontSize:"var(--amino-font-size-".concat(S||g,")"),fontWeight:h||void 0,lineHeight:"var(--amino-line-height-".concat(U||g,")"),textTransform:p?"uppercase":"inherit"}),title:H};switch(n){case"h1":return i.jsx("h1",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h2":return i.jsx("h2",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h3":return i.jsx("h3",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h4":return i.jsx("h4",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h5":return i.jsx("h5",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));default:return i.jsx("span",e._objectSpread2(e._objectSpread2({},c),{},{children:l}))}};switch(r.type){case"page-header":return B({as:v||n.tag,fontWeight:_||n.weight,isUppercase:W,size:n.size});case"secondary-page-header":return B({as:v||h.tag,fontWeight:_||h.weight,isUppercase:W,size:h.size});case"header":return B({as:v||p.tag,fontWeight:_||p.weight,isUppercase:W,size:p.size});case"description-header":return B({as:v||g.tag,fontWeight:_||g.weight,isUppercase:W,size:g.size});case"title":return B({as:v||c.tag,fontWeight:_||c.weight,isUppercase:W,size:c.size});case"bold-subheader":return B({as:v||o.tag,fontWeight:_||o.weight,isUppercase:W,size:o.size});case"semi-bold-subheader":return B({as:v||d.tag,fontWeight:_||d.weight,isUppercase:W,size:d.size});case"subheader":return B({as:v||b.tag,fontWeight:_||b.weight,isUppercase:W,size:b.size});case"bold-label":return B({as:v||u.tag,fontWeight:_||u.weight,isUppercase:W,size:u.size});case"label":return B({as:v||z.tag,fontWeight:_||z.weight,isUppercase:W,size:z.size});case"small-header":return B({as:v||m.tag,fontWeight:_||m.weight,isUppercase:W,size:m.size});case"caption":return B({as:v||w.tag,fontWeight:_||w.weight,isUppercase:W,size:w.size});case"hint-text":return B({as:v||f.tag,fontWeight:_||f.weight,isUppercase:W,size:f.size});case"subtitle":return i.jsx("span",{className:s.cn("text-amino-s leading-4 text-gray-800",j),title:H,children:l});case"input-label":return i.jsx("span",{className:s.cn("text-gray-1000 mb-2 block font-sans text-[14px] leading-4 font-normal",j),title:H,children:l});default:return B({as:v||x.tag,fontWeight:_||x.weight,isUppercase:W,size:x.size})}},exports.textOptions=r,exports.textOthers=["code","subtitle","small-header","input-label"];
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),s=require("../../styles/constants/theme.js"),a=require("../../utils/cn.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var r=[{label:"Page Header (3XL) · 30px (1.875rem)",size:"3xl",tag:"h1",type:"page-header",weight:700},{label:"Secondary Page Header (3XL) · 30px (1.875rem)",size:"3xl",tag:"h2",type:"secondary-page-header",weight:500},{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"header",weight:600},{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"description-header",weight:700},{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",type:"title",weight:600},{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"bold-subheader",weight:700},{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",type:"semi-bold-subheader",weight:600},{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"subheader",weight:500},{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"bold-label",weight:700},{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"label",weight:500},{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",type:"body",weight:400},{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",type:"small-header",weight:600},{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",type:"caption",weight:400},{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",type:"hint-text",weight:400}],l=t.__read(r,14),h=l[0],n=l[1],p=l[2],g=l[3],c=l[4],o=l[5],d=l[6],b=l[7],x=l[8],u=l[9],z=l[10],m=l[11],f=l[12],S=l[13],w={"2xl":s.theme.fontSize2xl,"3xl":s.theme.fontSize3xl,base:s.theme.fontSizeBase,l:s.theme.fontSizeL,s:s.theme.fontSizeS,xl:s.theme.fontSizeXl,xs:s.theme.fontSizeXs},j={"2xl":s.theme.lineHeight2xl,"3xl":s.theme.lineHeight3xl,base:s.theme.lineHeightBase,l:s.theme.lineHeightL,s:s.theme.lineHeightS,xl:s.theme.lineHeightXl,xs:s.theme.lineHeightXs};exports.Text=function(r){var l=r.children,y=r.className,_=r.color,W=r.fontSize,H=r.fontWeight,U=r.isUppercase,L=r.lineHeight,B=r.style,X=r.tag,q=r.title,v=function(r){var h=r.as,n=r.fontWeight,p=r.isUppercase,g=r.size,c={className:a.cn("m-0 [&_svg]:inline-block [&_svg]:align-middle",y),style:t.__assign(t.__assign({},B),{color:_?s.theme[_]:"inherit",fontSize:w[W||g],fontWeight:n||void 0,lineHeight:j[L||g],textTransform:p?"uppercase":"inherit"}),title:q};switch(h){case"h1":return i.jsx("h1",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h2":return i.jsx("h2",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h3":return i.jsx("h3",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h4":return i.jsx("h4",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));case"h5":return i.jsx("h5",e._objectSpread2(e._objectSpread2({},c),{},{children:l}));default:return i.jsx("span",e._objectSpread2(e._objectSpread2({},c),{},{children:l}))}};switch(r.type){case"page-header":return v({as:X||h.tag,fontWeight:H||h.weight,isUppercase:U,size:h.size});case"secondary-page-header":return v({as:X||n.tag,fontWeight:H||n.weight,isUppercase:U,size:n.size});case"header":return v({as:X||p.tag,fontWeight:H||p.weight,isUppercase:U,size:p.size});case"description-header":return v({as:X||g.tag,fontWeight:H||g.weight,isUppercase:U,size:g.size});case"title":return v({as:X||c.tag,fontWeight:H||c.weight,isUppercase:U,size:c.size});case"bold-subheader":return v({as:X||o.tag,fontWeight:H||o.weight,isUppercase:U,size:o.size});case"semi-bold-subheader":return v({as:X||d.tag,fontWeight:H||d.weight,isUppercase:U,size:d.size});case"subheader":return v({as:X||b.tag,fontWeight:H||b.weight,isUppercase:U,size:b.size});case"bold-label":return v({as:X||x.tag,fontWeight:H||x.weight,isUppercase:U,size:x.size});case"label":return v({as:X||u.tag,fontWeight:H||u.weight,isUppercase:U,size:u.size});case"small-header":return v({as:X||m.tag,fontWeight:H||m.weight,isUppercase:U,size:m.size});case"caption":return v({as:X||f.tag,fontWeight:H||f.weight,isUppercase:U,size:f.size});case"hint-text":return v({as:X||S.tag,fontWeight:H||S.weight,isUppercase:U,size:S.size});case"subtitle":return i.jsx("span",{className:a.cn("text-amino-s leading-4 text-gray-800",y),title:q,children:l});case"input-label":return i.jsx("span",{className:a.cn("text-gray-1000 mb-2 block font-sans text-[14px] leading-4 font-normal",y),title:q,children:l});default:return v({as:X||z.tag,fontWeight:H||z.weight,isUppercase:U,size:z.size})}},exports.textOptions=r,exports.textOthers=["code","subtitle","small-header","input-label"];
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),r=require("react"),a=require("../flex/Flex.js"),l=require("../help-text/HelpText.js"),n=require("../../styles/constants/theme.js"),o=require("../../utils/cn.js"),s=require("../../utils/hooks/useHeightAdjustTextarea.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge"),require("../text/Text.js");var u=r.forwardRef(function(u,c){var d=u.actions,x=u.className,p=u.disabled,f=u.disableExpand,h=u.error,m=u.helpText,w=u.label,b=u.maxRows,v=u.rows,j=u.style,g=u.value,y=u.width,_=t.__rest(u,["actions","className","disabled","disableExpand","error","helpText","label","maxRows","rows","style","value","width"]),q=r.useId(),T=!!g,N=t.__read(r.useState(!1),2),R=N[0],F=N[1],H=r.useRef(null),S=r.useRef(null);return s.useHeightAdjustTextarea({maxRows:b,ref:H,shouldExpand:!f,textareaValue:(null==g?void 0:g.toString())||""}),i.jsxs(a.Flex,{className:"w-[var(--amino-textarea-width)]",flexDirection:"column",gap:4,justifyContent:"space-between",style:t.__assign(t.__assign({},j),{"--amino-textarea-width":y||"100%"}),children:[i.jsxs("div",{className:o.cn("amino-input-wrapper relative w-full overflow-hidden rounded-[12px]\n border p-0",h?"border-transparent shadow-[var(--amino-glow-error)]":"border-amino",!h&&R&&"shadow-[var(--amino-focus-shadow)]",p&&["*:cursor-not-allowed","[&_.fields]:opacity-disabled","[&_.styledTextarea]:select-none"],x),style:{"--amino-focus-shadow":n.theme.glowBlue},children:[i.jsxs("label",{className:"relative flex w-full flex-col",htmlFor:_.id||q,onClick:function(e){e.target===H.current?e.preventDefault():setTimeout(function(){var e=H.current;if(e){var t=e.value.length;e.setSelectionRange(t,t)}},0)},children:[i.jsx("textarea",e._objectSpread2(e._objectSpread2({ref:function(e){c&&"function"==typeof c?c(e):c&&(c.current=e),H.current=e},className:o.cn("text-amino-base bg-amino-input box-border min-h-[100px] w-full\n flex-grow resize-none border-0 px-4 py-3 font-medium\n outline-none","placeholder:font-normal placeholder:text-gray-400\n placeholder:opacity-60 placeholder:transition-all\n placeholder:duration-300 placeholder:ease-in-out","focus:outline-none",w&&["mt-6 pt-0","placeholder:opacity-0",T&&"placeholder:opacity-60","focus:placeholder:opacity-60"],!!d&&!v&&"min-h-[5em]")},_),{},{disabled:p,id:q,onBlur:function(e){var t;F(!1),null===(t=_.onBlur)||void 0===t||t.call(_,e)},onFocus:function(e){var t;F(!0),null===(t=_.onFocus)||void 0===t||t.call(_,e)},rows:v,value:g})),w&&i.jsx("span",{className:o.cn("text-amino-base pointer-events-none absolute top-6 left-4\n origin-top-left leading-none transition-all duration-300\n ease-in-out",(T||R)&&"top-[11px] scale-[0.8]"),style:{color:"var(--amino-gray-800)"},children:w}),i.jsx("div",{className:"after:absolute after:inset-0 after:rounded-[12px] after:content-['']"})]}),d&&i.jsx("div",{ref:S,className:"bg-page flex items-center justify-end px-4 py-4",children:i.jsx(a.Flex,{alignItems:"center",fullHeight:!0,justifyContent:"flex-end",children:d})})]}),i.jsx(l.HelpText,{error:h,helpText:m,withoutMargin:!0})]})});exports.Textarea=u;
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),r=require("../../tslib.es6-cdc5f922.js"),t=require("react"),l=require("../flex/Flex.js"),a=require("../help-text/HelpText.js"),n=require("../../styles/constants/theme.js"),o=require("../../utils/cn.js"),s=require("../../utils/hooks/useHeightAdjustTextarea.js"),i=require("react/jsx-runtime");require("clsx"),require("tailwind-merge"),require("../text/Text.js");var u=t.forwardRef(function(u,c){var d=u.actions,p=u.className,x=u.disabled,f=u.disableExpand,h=u.error,m=u.helpText,b=u.label,j=u.maxRows,g=u.rows,v=u.style,w=u.value,y=u.width,q=r.__rest(u,["actions","className","disabled","disableExpand","error","helpText","label","maxRows","rows","style","value","width"]),T=t.useId(),_=!!w,N=r.__read(t.useState(!1),2),R=N[0],F=N[1],H=t.useRef(null),S=t.useRef(null);return s.useHeightAdjustTextarea({maxRows:j,ref:H,shouldExpand:!f,textareaValue:(null==w?void 0:w.toString())||""}),i.jsxs(l.Flex,{flexDirection:"column",gap:4,justifyContent:"space-between",style:r.__assign({width:y||"100%"},v),children:[i.jsxs("div",{className:o.cn("amino-input-wrapper relative w-full overflow-hidden rounded-[12px]\n border p-0",h?"shadow-glow-error border-transparent":"border-amino",x&&["*:cursor-not-allowed","[&_.fields]:opacity-disabled","[&_.styledTextarea]:select-none"],p),children:[i.jsxs("label",{className:"relative flex w-full flex-col",htmlFor:q.id||T,onClick:function(e){e.target===H.current?e.preventDefault():setTimeout(function(){var e=H.current;if(e){var r=e.value.length;e.setSelectionRange(r,r)}},0)},children:[i.jsx("textarea",e._objectSpread2(e._objectSpread2({ref:function(e){c&&"function"==typeof c?c(e):c&&(c.current=e),H.current=e},className:o.cn("text-amino-base bg-amino-input box-border w-full flex-grow\n resize-none border-0 px-4 py-2 leading-normal font-medium\n outline-none",g?"min-h-[50px]":d?"min-h-[5em]":"min-h-[10em]","placeholder:font-normal placeholder:text-gray-400\n placeholder:opacity-60 placeholder:transition-all\n placeholder:duration-300 placeholder:ease-in-out","focus:outline-none",b&&["mt-6 pt-0","placeholder:opacity-0",_&&"placeholder:opacity-60","focus:placeholder:opacity-60"])},q),{},{disabled:x,id:T,onBlur:function(e){var r;F(!1),null===(r=q.onBlur)||void 0===r||r.call(q,e)},onFocus:function(e){var r;F(!0),null===(r=q.onFocus)||void 0===r||r.call(q,e)},rows:g,value:w})),b&&i.jsx("span",{className:o.cn("text-amino-base pointer-events-none absolute\n top-[calc(var(--amino-font-size-base)+6px)] left-4\n origin-top-left leading-none transition-all duration-300\n ease-in-out",(_||R)&&"top-[11px] scale-[0.8]"),style:{color:n.theme.gray800},children:b}),i.jsx("div",{className:"after:absolute after:inset-0 after:rounded-[12px] after:content-['']"})]}),d&&i.jsx("div",{ref:S,className:"bg-page flex items-center justify-end px-4 py-4",children:i.jsx(l.Flex,{alignItems:"center",fullHeight:!0,justifyContent:"flex-end",children:d})})]}),i.jsx(a.HelpText,{error:h,helpText:m,withoutMargin:!0})]})});exports.Textarea=u;
@@ -1 +1 @@
1
- "use strict";var r=require("../../tslib.es6-cdc5f922.js"),e=require("../../styles/constants/theme.js"),o=require("../../utils/cn.js"),n=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var a={round:"50%",rounded:"20%",square:"0px"};exports.Thumbnail=function(i){var t=i.className,s=i.color,c=void 0===s?"gray":s,d=i.icon,l=i.intent,u=void 0===l?"full":l,m=i.mainColorOverride,b=i.secondaryColorOverride,g=i.shape,v=void 0===g?"round":g,h=i.size,y=void 0===h?32:h,x=i.style;return n.jsx("div",{className:o.cn("box-content inline-flex items-center justify-center [&_svg]:h-[60%]\n [&_svg]:w-[60%]","bordered"===u&&"border-gray-0 dark:border-gray-1000","outline"===u&&"border border-gray-200 bg-transparent dark:border-gray-800","full"===u&&"bg-[var(--amino-thumbnail-background-color)]",t),style:r.__assign(r.__assign({},x),{"--amino-thumbnail-background-color":e.theme["".concat(c,"100")],"--amino-thumbnail-svg-main-color":e.theme[m||"".concat(c,"800")],"--amino-thumbnail-svg-secondary-color":e.theme[b||"".concat(c,"400")],borderRadius:a[v],borderWidth:"bordered"===u?"calc(".concat(y,"px / 16)"):void 0,color:"var(--amino-thumbnail-svg-main-color)",height:"".concat(y,"px"),width:"".concat(y,"px")}),children:d})};
1
+ "use strict";var r=require("../../tslib.es6-cdc5f922.js"),e=require("../../styles/constants/theme.js"),o=require("../../utils/cn.js"),a=require("react/jsx-runtime");require("clsx"),require("tailwind-merge");var n={round:"50%",rounded:"20%",square:"0px"};exports.Thumbnail=function(i){var t=i.className,s=i.color,c=void 0===s?"gray":s,d=i.icon,l=i.intent,u=void 0===l?"full":l,b=i.mainColorOverride,m=i.secondaryColorOverride,g=i.shape,v=void 0===g?"round":g,h=i.size,y=void 0===h?32:h,x=i.style;return a.jsx("div",{className:o.cn("box-content inline-flex items-center justify-center\n bg-[var(--amino-thumbnail-background-color)] [&_svg]:h-[60%]\n [&_svg]:w-[60%]\n [&_svg_path[data-is-secondary-color]]:fill-[var(--amino-thumbnail-svg-secondary-color)]","bordered"===u&&"border-gray-0 dark:border-gray-1000","outline"===u&&"border border-gray-200 bg-transparent dark:border-gray-800",t),style:r.__assign(r.__assign({},x),{"--amino-thumbnail-background-color":e.theme["".concat(c,"100")],"--amino-thumbnail-svg-secondary-color":e.theme[m||"".concat(c,"400")],borderRadius:n[v],borderWidth:"bordered"===u?"calc(".concat(y,"px / 16)"):void 0,color:e.theme[b||"".concat(c,"800")],height:"".concat(y,"px"),width:"".concat(y,"px")}),children:d})};
@@ -1 +1 @@
1
- "use strict";var t=require("../../_rollupPluginBabelHelpers-4522587c.js"),e=require("../../tslib.es6-cdc5f922.js"),s=require("react"),n=require("framer-motion"),r=require("uuid"),i=require("../__amino__/TranslateAminoText.js"),o=require("../button/Button.js"),a=require("../flex/Flex.js"),u=require("./Toast.js"),l=require("../../icons/RemoveIcon.js"),c=require("../../utils/cn.js"),p=require("react/jsx-runtime");require("../translations/Translate.js"),require("../../utils/translations/_handleTranslateComponentText.js"),require("../../utils/translations/AminoTranslationStore.js"),require("zod"),require("zustand"),require("../../utils/storage.js"),require("dayjs"),require("../../utils/translations/supportedLanguages.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../../styles/constants/theme.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../../utils/getTestId.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../icons/InfoIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/WarningIcon.js"),require("clsx"),require("tailwind-merge");var f=s.createContext({dismissAllToasts:function(){},dismissToast:function(t){},notify:function(t,e){}});exports.ToastContext=f,exports.ToastContextProvider=function(d){var m=d.children,_=e.__read(s.useState([]),2),x=_[0],h=_[1],T=e.__read(s.useState([]),2),j=T[0],v=T[1],b=e.__read(s.useState(!1),2),q=b[0],y=b[1],g=e.__read(s.useState({bottom:"",left:""}),2),C=g[0],k=g[1],A=s.useCallback(function(t,s){var n={isPersistent:null==s?void 0:s.isPersistent,props:s,toast:t,uuid:(null==s?void 0:s.id)||r.v4()};(null==s?void 0:s.isPersistent)?v(function(t){return t.some(function(t){return t.uuid===n.uuid})?t:e.__spreadArray([n],e.__read(t),!1)}):(h(function(t){return t.some(function(t){return t.uuid===n.uuid})?t:e.__spreadArray(e.__spreadArray([],e.__read(t),!1),[n],!1)}),setTimeout(function(){return h(function(t){return t.slice(1)})},(null==s?void 0:s.duration)||6e3))},[h,v]),I=s.useCallback(function(t,e,s){s&&k({bottom:s.bottom||"",left:s.left||""}),A(t,e)},[A]),P=s.useCallback(function(t){h(function(e){return e.filter(function(e){return e.uuid!==t})}),v(function(e){return e.filter(function(e){return e.uuid!==t})})},[v]),S=s.useCallback(function(){v([]),h([]),y(!1)},[v,h,y]),z=function(t){var e=t.currentTarget.querySelector(".toast-actions");e&&!e.contains(t.target)&&y(function(t){return!t})},w=s.useRef(null),R=e.__read(s.useState(0),2),B=R[0],N=R[1],D=j.find(Boolean);s.useEffect(function(){w.current&&N(w.current.offsetHeight)},[D]);var F=s.useMemo(function(){return{dismissAllToasts:S,dismissToast:P,notify:I}},[S,P,I]),H=j.length>0;return p.jsxs(f.Provider,{value:F,children:[m,p.jsxs("div",{className:"pointer-events-none fixed z-[9999999] flex w-full flex-col justify-end",style:{"--amino-toast-context-bottom":C.bottom||"40px","--amino-toast-context-left":C.left||"auto","--amino-toast-persistent-height":H&&!q?"".concat(B+40,"px"):"unset",bottom:"var(--amino-toast-context-bottom)",left:"var(--amino-toast-context-left)"},children:[p.jsx("div",{className:c.cn("pointer-events-auto flex flex-col items-center gap-4",H&&"mb-4"),children:p.jsx(n.AnimatePresence,{children:x.map(function(t){var e=t.props,s=t.toast,n=t.uuid,r="toast-".concat(s,"-").concat(n);return p.jsx(a.Flex,{children:p.jsx(u.Toast,{direction:null==e?void 0:e.direction,intent:null==e?void 0:e.intent,toastKey:r,children:s})},r)})})}),p.jsxs("div",{className:c.cn("pointer-events-auto flex flex-col items-center gap-4","relative z-[1000] mx-auto max-h-[60vh] w-full max-w-[600px]","hover:cursor-pointer","[&_.persistentToast]:z-[8] [&_.persistentToast]:w-full","[&_.persistentToast:nth-of-type(1)]:z-[10]","[&_.persistentToast:nth-of-type(2)]:z-[9]",!q&&c.cn("[&_.persistentToast]:absolute [&_.persistentToast]:scale-50\n [&_.persistentToast]:opacity-0","[&_.persistentToast]:brightness-200\n [&_.persistentToast]:transition-all\n [&_.persistentToast]:duration-300","[&_.persistentToast]:origin-bottom\n [&_.persistentToast]:ease-[cubic-bezier(0.4,0,0.2,1)]","[&_.persistentToast:nth-of-type(1)]:bottom-0\n [&_.persistentToast:nth-of-type(1)]:scale-100","[&_.persistentToast:nth-of-type(1)]:opacity-100\n [&_.persistentToast:nth-of-type(1)]:brightness-100","[&_.persistentToast:nth-of-type(2)]:-bottom-2\n [&_.persistentToast:nth-of-type(2)]:scale-90","[&_.persistentToast:nth-of-type(2)]:opacity-100\n [&_.persistentToast:nth-of-type(2)]:brightness-150","[&_.persistentToast:nth-of-type(3)]:scale-80\n [&_.persistentToast:nth-of-type(3)]:opacity-80","[&_.persistentToast:nth-of-type(3)]:-bottom-4\n [&_.persistentToast:nth-of-type(3)]:brightness-200"),q&&"relative w-full"),style:{minHeight:H&&!q?"var(--amino-toast-persistent-height)":"unset"},children:[!!j.length&&p.jsx(o.Button,{className:c.cn("ml-auto rounded bg-[rgba(0,0,0,0.06)] backdrop-blur-[5px]",q&&"-mb-2"),icon:p.jsx(l.RemoveIcon,{}),onClick:S,variant:"text",children:p.jsx(i.TranslateAminoText,{text:"Clear all --context: button text referencing clearing all toasts"})}),p.jsx(n.AnimatePresence,{children:j.map(function(e,s){var n=e.props,r=e.toast,i=e.uuid,o="persistent-toast-".concat(r,"-").concat(i),l=0===s||q;return p.jsx("div",{ref:0===s?w:null,className:"persistentToast",onClick:z,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||z(t)},role:"button",tabIndex:0,children:p.jsx(a.Flex,{fullWidth:!0,children:p.jsx(u.Toast,t._objectSpread2(t._objectSpread2({},n),{},{actions:l?null==n?void 0:n.actions:void 0,isPersistent:!0,onDismiss:function(t){var e;null===(e=null==n?void 0:n.onDismiss)||void 0===e||e.call(n,t),function(t,e){t.stopPropagation(),P(e)}(t,i)},toastKey:o,children:l?r:""}))})},o)})})]})]})]})};
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),s=require("react"),n=require("framer-motion"),r=require("uuid"),i=require("../__amino__/TranslateAminoText.js"),o=require("../button/Button.js"),a=require("../flex/Flex.js"),u=require("./Toast.js"),l=require("../../icons/RemoveIcon.js"),c=require("../../utils/cn.js"),p=require("react/jsx-runtime");require("../translations/Translate.js"),require("../../utils/translations/_handleTranslateComponentText.js"),require("../../utils/translations/AminoTranslationStore.js"),require("zod"),require("zustand"),require("../../utils/storage.js"),require("dayjs"),require("../../utils/translations/supportedLanguages.js"),require("class-variance-authority"),require("../button/RippleGroup.js"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../../styles/constants/theme.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../../utils/getTestId.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../icons/InfoIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/WarningIcon.js"),require("clsx"),require("tailwind-merge");var d=s.createContext({dismissAllToasts:function(){},dismissToast:function(e){},notify:function(e,t){}});exports.ToastContext=d,exports.ToastContextProvider=function(f){var _=f.children,m=t.__read(s.useState([]),2),x=m[0],T=m[1],j=t.__read(s.useState([]),2),h=j[0],v=j[1],b=t.__read(s.useState(!1),2),q=b[0],y=b[1],g=t.__read(s.useState({bottom:"",left:""}),2),C=g[0],k=g[1],A=s.useCallback(function(e,s){var n={isPersistent:null==s?void 0:s.isPersistent,props:s,toast:e,uuid:(null==s?void 0:s.id)||r.v4()};(null==s?void 0:s.isPersistent)?v(function(e){return e.some(function(e){return e.uuid===n.uuid})?e:t.__spreadArray([n],t.__read(e),!1)}):(T(function(e){return e.some(function(e){return e.uuid===n.uuid})?e:t.__spreadArray(t.__spreadArray([],t.__read(e),!1),[n],!1)}),setTimeout(function(){return T(function(e){return e.slice(1)})},(null==s?void 0:s.duration)||6e3))},[T,v]),I=s.useCallback(function(e,t,s){s&&k({bottom:s.bottom||"",left:s.left||""}),A(e,t)},[A]),P=s.useCallback(function(e){T(function(t){return t.filter(function(t){return t.uuid!==e})}),v(function(t){return t.filter(function(t){return t.uuid!==e})})},[v]),S=s.useCallback(function(){v([]),T([]),y(!1)},[v,T,y]),z=function(e){var t=e.currentTarget.querySelector(".toast-actions");t&&!t.contains(e.target)&&y(function(e){return!e})},w=s.useRef(null),R=t.__read(s.useState(0),2),B=R[0],N=R[1],D=h.find(Boolean);s.useEffect(function(){w.current&&N(w.current.offsetHeight)},[D]);var F=s.useMemo(function(){return{dismissAllToasts:S,dismissToast:P,notify:I}},[S,P,I]),H=h.length>0;return p.jsxs(d.Provider,{value:F,children:[_,p.jsxs("div",{className:"pointer-events-none fixed z-[9999999] flex w-full flex-col justify-end",style:{bottom:C.bottom||"40px",left:C.left||"auto"},children:[p.jsx("div",{className:c.cn("pointer-events-auto flex flex-col items-center gap-4",H&&"mb-4"),children:p.jsx(n.AnimatePresence,{children:x.map(function(e){var t=e.props,s=e.toast,n=e.uuid,r="toast-".concat(s,"-").concat(n);return p.jsx(a.Flex,{children:p.jsx(u.Toast,{direction:null==t?void 0:t.direction,intent:null==t?void 0:t.intent,toastKey:r,children:s})},r)})})}),p.jsxs("div",{className:c.cn("pointer-events-auto flex flex-col items-center gap-4","relative z-[1000] mx-auto max-h-[60vh] w-full max-w-[600px]","hover:cursor-pointer","[&_.persistentToast]:z-[8] [&_.persistentToast]:w-full","[&_.persistentToast:nth-of-type(1)]:z-[10]","[&_.persistentToast:nth-of-type(2)]:z-[9]",!q&&c.cn("[&_.persistentToast]:absolute [&_.persistentToast]:scale-50\n [&_.persistentToast]:opacity-0","[&_.persistentToast]:brightness-200\n [&_.persistentToast]:transition-all\n [&_.persistentToast]:duration-300","[&_.persistentToast]:origin-bottom\n [&_.persistentToast]:ease-[cubic-bezier(0.4,0,0.2,1)]","[&_.persistentToast:nth-of-type(1)]:bottom-0\n [&_.persistentToast:nth-of-type(1)]:scale-100","[&_.persistentToast:nth-of-type(1)]:opacity-100\n [&_.persistentToast:nth-of-type(1)]:brightness-100","[&_.persistentToast:nth-of-type(2)]:-bottom-2\n [&_.persistentToast:nth-of-type(2)]:scale-90","[&_.persistentToast:nth-of-type(2)]:opacity-100\n [&_.persistentToast:nth-of-type(2)]:brightness-150","[&_.persistentToast:nth-of-type(3)]:scale-80\n [&_.persistentToast:nth-of-type(3)]:opacity-80","[&_.persistentToast:nth-of-type(3)]:-bottom-4\n [&_.persistentToast:nth-of-type(3)]:brightness-200"),q&&"relative w-full"),style:{minHeight:H&&!q?"".concat(B+40,"px"):"unset"},children:[!!h.length&&p.jsx(o.Button,{className:c.cn("ml-auto rounded bg-[rgba(0,0,0,0.06)] backdrop-blur-[5px]",q&&"-mb-2"),icon:p.jsx(l.RemoveIcon,{}),onClick:S,variant:"text",children:p.jsx(i.TranslateAminoText,{text:"Clear all --context: button text referencing clearing all toasts"})}),p.jsx(n.AnimatePresence,{children:h.map(function(t,s){var n=t.props,r=t.toast,i=t.uuid,o="persistent-toast-".concat(r,"-").concat(i),l=0===s||q;return p.jsx("div",{ref:0===s?w:null,className:"persistentToast",onClick:z,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||z(e)},role:"button",tabIndex:0,children:p.jsx(a.Flex,{fullWidth:!0,children:p.jsx(u.Toast,e._objectSpread2(e._objectSpread2({},n),{},{actions:l?null==n?void 0:n.actions:void 0,isPersistent:!0,onDismiss:function(e){var t;null===(t=null==n?void 0:n.onDismiss)||void 0===t||t.call(n,e),function(e,t){e.stopPropagation(),P(t)}(e,i)},toastKey:o,children:l?r:""}))})},o)})})]})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../flex/Flex.js"),i=require("../text/Text.js"),r=require("../ui/tooltip.js"),t=require("../../utils/cn.js"),l=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("react"),require("@radix-ui/react-tooltip");exports.Tooltip=function(n){var s,a=n.children,o=n.className,d=n.disabled,c=void 0!==d&&d,u=n.enterDelay,x=n.enterNextDelay,p=n.maxWidth,m=n.open,h=n.placement,j=n.subtitle,g=n.themeOverride,v=void 0===g?"night":g,q=n.title,y=function(e){var i;if(!e)return{align:"center",side:"bottom"};var r=e.split("-");return{align:null!==(i=r[1])&&void 0!==i?i:"center",side:r[0]}}(h),T=y.align,b=y.side,f=null!==(s=null!=u?u:x)&&void 0!==s?s:0;return c?a:l.jsx(r.TooltipProvider,{delayDuration:f,children:l.jsxs(r.Tooltip,{open:m,children:[l.jsx(r.TooltipTrigger,{asChild:!0,children:l.jsx("div",{className:t.cn("tooltip-wrapper",o),children:a})}),l.jsx(r.TooltipContent,{align:T,className:t.cn("rounded-(--amino-radius-10) bg-(--amino-gray-0)\n p-(--amino-space-12) text-(--amino-text-color)\n shadow-(--amino-v3-shadow-large)"),"data-theme":v,side:b,children:l.jsxs(e.Flex,{className:t.cn("wrap-break-word"),flexDirection:"column",gap:8,style:{maxWidth:p?"".concat(p,"px"):void 0},children:["string"==typeof q?l.jsx(i.Text,{type:"small-header",children:q}):l.jsx(l.Fragment,{children:q}),void 0!==j&&("string"==typeof j?l.jsx(i.Text,{type:"caption",children:j}):l.jsx(l.Fragment,{children:j}))]})})]})})};
1
+ "use strict";var e=require("../flex/Flex.js"),r=require("../text/Text.js"),i=require("../ui/tooltip.js"),t=require("../../utils/cn.js"),l=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("clsx"),require("tailwind-merge"),require("../../styles/constants/theme.js"),require("react"),require("@radix-ui/react-tooltip");exports.Tooltip=function(n){var a,s=n.children,o=n.className,d=n.disabled,c=void 0!==d&&d,u=n.enterDelay,x=n.enterNextDelay,p=n.maxWidth,m=n.open,h=n.placement,g=n.subtitle,j=n.themeOverride,v=void 0===j?"night":j,q=n.title,y=function(e){var r;if(!e)return{align:"center",side:"bottom"};var i=e.split("-");return{align:null!==(r=i[1])&&void 0!==r?r:"center",side:i[0]}}(h),T=y.align,b=y.side,f=null!==(a=null!=u?u:x)&&void 0!==a?a:0;return c?s:l.jsx(i.TooltipProvider,{delayDuration:f,children:l.jsxs(i.Tooltip,{open:m,children:[l.jsx(i.TooltipTrigger,{asChild:!0,children:l.jsx("div",{className:t.cn("tooltip-wrapper",o),children:s})}),l.jsx(i.TooltipContent,{align:T,className:t.cn("rounded-(--amino-radius-10) bg-(--amino-gray-0)\n p-(--amino-space-12) text-(--amino-text-color)\n shadow-(--amino-v3-shadow-large) dark:bg-(--amino-gray-50)"),"data-theme":v,side:b,children:l.jsxs(e.Flex,{className:t.cn("wrap-break-word"),flexDirection:"column",gap:8,style:{maxWidth:p?"".concat(p,"px"):void 0},children:["string"==typeof q?l.jsx(r.Text,{type:"small-header",children:q}):l.jsx(l.Fragment,{children:q}),void 0!==g&&("string"==typeof g?l.jsx(r.Text,{type:"caption",children:g}):l.jsx(l.Fragment,{children:g}))]})})]})})};
@@ -1 +1 @@
1
- "use strict";var t=require("../../_rollupPluginBabelHelpers-4522587c.js"),r=require("../../tslib.es6-cdc5f922.js"),e=require("next-themes"),o=require("sonner"),s=require("react/jsx-runtime");exports.Toaster=function(u){var a=r.__rest(u,[]),g=e.useTheme().theme,n=void 0===g?"system":g;return s.jsx(o.Toaster,t._objectSpread2({className:"toaster group",theme:n,toastOptions:{classNames:{actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",description:"group-[.toast]:text-muted-foreground",toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg"}}},a))};
1
+ "use strict";var r=require("../../_rollupPluginBabelHelpers-4522587c.js"),e=require("../../tslib.es6-cdc5f922.js"),t=require("sonner"),o=require("../../utils/hooks/useAminoTheme.js"),s=require("react/jsx-runtime");require("react"),require("zod"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("dayjs");exports.Toaster=function(u){var a=e.__rest(u,[]),i=o.useAminoTheme().aminoTheme;return s.jsx(t.Toaster,r._objectSpread2({className:"toaster group",theme:"night"===i?"dark":"light",toastOptions:{classNames:{actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",description:"group-[.toast]:text-muted-foreground",toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg"}}},a))};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),r=require("react"),i=require("@radix-ui/react-tooltip"),o=require("../../utils/cn.js"),a=require("react/jsx-runtime");function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}require("clsx"),require("tailwind-merge");var n=s(r),d=s(i),l=d.Provider,f=d.Root,u=d.Trigger,c=n.forwardRef(function(r,i){var s=r.className,n=r.sideOffset,l=void 0===n?4:n,f=t.__rest(r,["className","sideOffset"]);return a.jsx(d.Portal,{children:a.jsx(d.Content,e._objectSpread2({ref:i,className:o.cn("animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out\n data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95\n data-[side=bottom]:slide-in-from-top-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2 z-50\n origin-[--radix-tooltip-content-transform-origin] overflow-hidden",s),sideOffset:l},f))})});c.displayName=d.Content.displayName,exports.Tooltip=f,exports.TooltipContent=c,exports.TooltipProvider=l,exports.TooltipTrigger=u;
1
+ "use strict";var e=require("../../_rollupPluginBabelHelpers-4522587c.js"),t=require("../../tslib.es6-cdc5f922.js"),r=require("react"),i=require("@radix-ui/react-tooltip"),o=require("../../utils/cn.js"),a=require("react/jsx-runtime");function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}require("clsx"),require("tailwind-merge");var s=n(r),d=n(i),l=d.Provider,f=d.Root,u=d.Trigger,c=s.forwardRef(function(r,i){var n=r.className,s=r.sideOffset,l=void 0===s?4:s,f=t.__rest(r,["className","sideOffset"]);return a.jsx(d.Portal,{children:a.jsx(d.Content,e._objectSpread2({ref:i,className:o.cn("animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out\n data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95\n data-[side=bottom]:slide-in-from-top-2\n data-[side=left]:slide-in-from-right-2\n data-[side=right]:slide-in-from-left-2\n data-[side=top]:slide-in-from-bottom-2 z-50\n origin-[--radix-tooltip-content-transform-origin] overflow-hidden",n),"data-radix-tooltip-content":!0,sideOffset:l},f))})});c.displayName=d.Content.displayName,exports.Tooltip=f,exports.TooltipContent=c,exports.TooltipProvider=l,exports.TooltipTrigger=u;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "homepage": "https://amino.zonos.com",
9
9
  "engines": {
10
- "node": "^20 || ^22"
10
+ "node": "^22"
11
11
  },
12
- "packageManager": "pnpm@8.15.8",
12
+ "packageManager": "pnpm@10.33.0",
13
13
  "browserslist": [
14
14
  ">0.2%",
15
15
  "not dead",
@@ -38,36 +38,36 @@
38
38
  "@radix-ui/react-toggle-group": "^1.1.11",
39
39
  "@radix-ui/react-tooltip": "^1.2.8",
40
40
  "@rollup/plugin-json": "^6.1.0",
41
- "@t3-oss/env-core": "^0.13.10",
42
41
  "class-variance-authority": "^0.7.1",
43
42
  "clsx": "^2.1.1",
44
- "d3-geo": "^2.0.2",
45
43
  "fuse.js": "^6.6.2",
46
- "next": "^15.5.12",
47
- "next-themes": "^0.4.6",
48
44
  "react-data-grid": "7.0.0-beta.34",
49
45
  "react-dropzone": "^12.1.0",
50
46
  "react-intersection-observer": "^9.16.0",
51
47
  "react-select": "^5.10.2",
52
- "react-simple-maps": "^3.0.0",
53
48
  "react-split-it": "^2.0.0",
54
49
  "sonner": "^2.0.7",
55
50
  "tailwind-merge": "^3.4.0",
56
- "topojson-client": "^3.1.0",
57
- "uuid": "^9.0.1",
51
+ "uuid": "^11.0.0",
58
52
  "zod": "^3.25.76",
59
53
  "zustand": "^5.0.11"
60
54
  },
61
55
  "devDependencies": {},
56
+ "pnpm": {
57
+ "overrides": {
58
+ "uuid": ">=11.1.1",
59
+ "esbuild": ">=0.28.1",
60
+ "joi": ">=17.13.4",
61
+ "form-data@>=4.0.0 <4.0.6": "4.0.6",
62
+ "js-yaml@<4.2.0": "4.2.0"
63
+ }
64
+ },
62
65
  "peerDependencies": {
63
66
  "dayjs": "*",
64
67
  "framer-motion": "^10.x",
65
- "graphql": "^16.x",
66
- "graphql-request": "^5.1.0",
67
68
  "lodash": "^4.17.23",
68
69
  "react": "^18.x || ^19.x",
69
70
  "react-dom": "^18.x || ^19.x",
70
- "react-tooltip": "^4.x",
71
71
  "swr": "2.x",
72
72
  "zustand": "^5.0.0"
73
73
  },