@adamosuiteservices/ui 1.7.13 → 1.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-rounded.cjs +24 -2
- package/dist/accordion-rounded.js +46 -8
- package/dist/accordion.cjs +20 -1
- package/dist/accordion.js +29 -5
- package/dist/alert.cjs +26 -1
- package/dist/alert.js +33 -8
- package/dist/avatar.cjs +7 -1
- package/dist/avatar.js +8 -2
- package/dist/badge.cjs +83 -1
- package/dist/badge.js +106 -24
- package/dist/breadcrumb.cjs +8 -1
- package/dist/breadcrumb.js +11 -4
- package/dist/button-B7ZP4LZN.js +127 -0
- package/dist/button-D-qFRXiM.cjs +70 -0
- package/dist/button-group.cjs +25 -1
- package/dist/button-group.js +33 -9
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +74 -1
- package/dist/calendar.js +114 -35
- package/dist/card.cjs +35 -1
- package/dist/card.js +45 -11
- package/dist/{checkbox-YWAnswaW.cjs → checkbox-CdnZ8VFJ.cjs} +21 -1
- package/dist/{checkbox-Dr487kAg.js → checkbox-DhBcmKze.js} +34 -4
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +36 -2
- package/dist/combobox.js +62 -22
- package/dist/components/icons/account-balance-icon.d.ts +3 -0
- package/dist/components/icons/account-icon.d.ts +3 -0
- package/dist/components/icons/add-circle-icon.d.ts +3 -0
- package/dist/components/icons/alarm-icon.d.ts +3 -0
- package/dist/components/icons/archive-icon.d.ts +3 -0
- package/dist/components/icons/arrow-back-icon.d.ts +3 -0
- package/dist/components/icons/arrow-circle-up-icon.d.ts +3 -0
- package/dist/components/icons/arrow-forward-icon.d.ts +3 -0
- package/dist/components/icons/arrow-outward-icon.d.ts +3 -0
- package/dist/components/icons/article-icon.d.ts +3 -0
- package/dist/components/icons/attach-file-icon.d.ts +3 -0
- package/dist/components/icons/autorenew-icon.d.ts +3 -0
- package/dist/components/icons/bookmark-icon.d.ts +3 -0
- package/dist/components/icons/calculate-icon.d.ts +3 -0
- package/dist/components/icons/calendar-today-icon.d.ts +3 -0
- package/dist/components/icons/call-split-icon.d.ts +3 -0
- package/dist/components/icons/cancel-filled-icon.d.ts +3 -0
- package/dist/components/icons/cancel-icon.d.ts +3 -0
- package/dist/components/icons/check-circle-icon.d.ts +3 -0
- package/dist/components/icons/check-icon.d.ts +3 -0
- package/dist/components/icons/chevron-back-icon.d.ts +3 -0
- package/dist/components/icons/chevron-down-icon.d.ts +3 -0
- package/dist/components/icons/chevron-forward-icon.d.ts +3 -0
- package/dist/components/icons/chevron-up-icon.d.ts +3 -0
- package/dist/components/icons/clarify-icon.d.ts +3 -0
- package/dist/components/icons/clock-icon.d.ts +3 -0
- package/dist/components/icons/close-icon.d.ts +3 -0
- package/dist/components/icons/confirmation-number-icon.d.ts +3 -0
- package/dist/components/icons/contacts-icon.d.ts +3 -0
- package/dist/components/icons/contract-delete-icon.d.ts +3 -0
- package/dist/components/icons/copy-icon.d.ts +3 -0
- package/dist/components/icons/do-not-touch-icon.d.ts +3 -0
- package/dist/components/icons/download-icon.d.ts +3 -0
- package/dist/components/icons/dragger-icon.d.ts +3 -0
- package/dist/components/icons/edit-icon.d.ts +3 -0
- package/dist/components/icons/edit-square-icon.d.ts +3 -0
- package/dist/components/icons/exclamation-icon.d.ts +3 -0
- package/dist/components/icons/expand-circle-right-icon.d.ts +3 -0
- package/dist/components/icons/feature-search-icon.d.ts +3 -0
- package/dist/components/icons/filter-icon.d.ts +3 -0
- package/dist/components/icons/folder-icon.d.ts +3 -0
- package/dist/components/icons/folder-open-icon.d.ts +3 -0
- package/dist/components/icons/format-list-bulleted-icon.d.ts +3 -0
- package/dist/components/icons/hamburger-menu-icon.d.ts +3 -0
- package/dist/components/icons/help-icon.d.ts +3 -0
- package/dist/components/icons/hide-pass-icon.d.ts +3 -0
- package/dist/components/icons/home-icon.d.ts +3 -0
- package/dist/components/icons/id-card-icon.d.ts +3 -0
- package/dist/components/icons/index.d.ts +88 -0
- package/dist/components/icons/info-icon.d.ts +3 -0
- package/dist/components/icons/kid-star-icon.d.ts +3 -0
- package/dist/components/icons/language-icon.d.ts +3 -0
- package/dist/components/icons/last-page-icon.d.ts +3 -0
- package/dist/components/icons/layers-icon.d.ts +3 -0
- package/dist/components/icons/location-icon.d.ts +3 -0
- package/dist/components/icons/mail-icon.d.ts +3 -0
- package/dist/components/icons/manage-search-icon.d.ts +3 -0
- package/dist/components/icons/menu-icon.d.ts +3 -0
- package/dist/components/icons/message-icon.d.ts +3 -0
- package/dist/components/icons/metrics-icon.d.ts +3 -0
- package/dist/components/icons/mic-icon.d.ts +3 -0
- package/dist/components/icons/minus-icon.d.ts +3 -0
- package/dist/components/icons/mode-comment-icon.d.ts +3 -0
- package/dist/components/icons/money-icon.d.ts +3 -0
- package/dist/components/icons/monitoring-icon.d.ts +3 -0
- package/dist/components/icons/more-icon.d.ts +3 -0
- package/dist/components/icons/notifications-icon.d.ts +3 -0
- package/dist/components/icons/open-in-new-icon.d.ts +3 -0
- package/dist/components/icons/palette-icon.d.ts +3 -0
- package/dist/components/icons/password-icon.d.ts +3 -0
- package/dist/components/icons/pending-icon.d.ts +3 -0
- package/dist/components/icons/person-add-icon.d.ts +3 -0
- package/dist/components/icons/person-search-icon.d.ts +3 -0
- package/dist/components/icons/photo-icon.d.ts +3 -0
- package/dist/components/icons/plus-icon.d.ts +3 -0
- package/dist/components/icons/policy-icon.d.ts +3 -0
- package/dist/components/icons/publish-icon.d.ts +3 -0
- package/dist/components/icons/ready-icon.d.ts +3 -0
- package/dist/components/icons/receipt-icon.d.ts +3 -0
- package/dist/components/icons/receive-icon.d.ts +3 -0
- package/dist/components/icons/refresh-icon.d.ts +3 -0
- package/dist/components/icons/search-icon.d.ts +3 -0
- package/dist/components/icons/see-icon.d.ts +3 -0
- package/dist/components/icons/send-icon.d.ts +3 -0
- package/dist/components/icons/settings-icon.d.ts +3 -0
- package/dist/components/icons/shield-icon.d.ts +3 -0
- package/dist/components/icons/swap-horiz-icon.d.ts +3 -0
- package/dist/components/icons/tag-icon.d.ts +3 -0
- package/dist/components/icons/trash-icon.d.ts +3 -0
- package/dist/components/layout/toaster/toaster.d.ts +1 -1
- package/dist/components/layout/toaster/toaster.stories.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.stories.d.ts +1 -1
- package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +1 -1
- package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +1 -1
- package/dist/components/ui/alert/alert.stories.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.stories.d.ts +1 -1
- package/dist/components/ui/badge/badge.stories.d.ts +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +1 -1
- package/dist/components/ui/button/button.stories.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.stories.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.stories.d.ts +1 -1
- package/dist/components/ui/card/card.stories.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/components/ui/collapsible/collapsible.stories.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.stories.d.ts +1 -1
- package/dist/components/ui/command/command.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.stories.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.stories.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/ui/field/field.d.ts +1 -1
- package/dist/components/ui/field/field.stories.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.stories.d.ts +1 -1
- package/dist/components/ui/input/input.stories.d.ts +1 -1
- package/dist/components/ui/input-group/Input-group.stories.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/kbd/kbd.stories.d.ts +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.stories.d.ts +1 -1
- package/dist/components/ui/pagination/pagination.stories.d.ts +1 -1
- package/dist/components/ui/popover/popover.d.ts +1 -1
- package/dist/components/ui/popover/popover.stories.d.ts +1 -1
- package/dist/components/ui/progress/progress.d.ts +1 -1
- package/dist/components/ui/progress/progress.stories.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.stories.d.ts +1 -1
- package/dist/components/ui/select/select.d.ts +1 -1
- package/dist/components/ui/select/select.stories.d.ts +1 -1
- package/dist/components/ui/separator/separator.d.ts +1 -1
- package/dist/components/ui/separator/separator.stories.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.stories.d.ts +1 -1
- package/dist/components/ui/skeleton/skeleton.stories.d.ts +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.stories.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.stories.d.ts +1 -1
- package/dist/components/ui/switch/switch.d.ts +1 -1
- package/dist/components/ui/switch/switch.stories.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.stories.d.ts +1 -1
- package/dist/components/ui/tabs-underline/tabs-underline.d.ts +1 -1
- package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.stories.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.stories.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/context-menu.cjs +79 -1
- package/dist/context-menu.js +101 -11
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +30 -1
- package/dist/dialog.js +35 -6
- package/dist/dropdown-menu.cjs +79 -1
- package/dist/dropdown-menu.js +101 -11
- package/dist/field.cjs +66 -1
- package/dist/field.js +91 -26
- package/dist/hover-card.cjs +15 -1
- package/dist/hover-card.js +15 -1
- package/dist/icons.cjs +1 -0
- package/dist/icons.js +1507 -0
- package/dist/input-BQZUpTEY.js +42 -0
- package/dist/input-DSmxdfq5.cjs +21 -0
- package/dist/input-group.cjs +76 -1
- package/dist/input-group.js +99 -24
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/kbd.cjs +10 -1
- package/dist/kbd.js +11 -2
- package/dist/{label-CmwGvhy1.js → label-BJ8Yf6Ft.js} +7 -1
- package/dist/{label-BjXORCBM.cjs → label-CNGQhi5L.cjs} +7 -1
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +13 -1
- package/dist/pagination.js +30 -6
- package/dist/{popover-FCKBtFo-.cjs → popover-CYbik-H4.cjs} +15 -1
- package/dist/{popover-3rIoNCXs.js → popover-DAwH8jUh.js} +15 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.cjs +14 -1
- package/dist/radio-group.js +20 -2
- package/dist/select.cjs +68 -1
- package/dist/select.js +83 -10
- package/dist/{separator-BaZqZZ9R.cjs → separator-Brpax0EI.cjs} +7 -1
- package/dist/{separator-DR7lQjv9.js → separator-DVypR3Qf.js} +7 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-CGahUP7F.cjs +41 -0
- package/dist/sheet-Q3dBOQG-.js +174 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +20 -2
- package/dist/sidebar.js +58 -26
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider.cjs +27 -1
- package/dist/slider.js +30 -4
- package/dist/space.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +18 -1
- package/dist/switch.js +19 -2
- package/dist/table.cjs +20 -1
- package/dist/table.js +26 -7
- package/dist/tabs-underline.cjs +21 -1
- package/dist/tabs-underline.js +23 -3
- package/dist/tabs.cjs +22 -1
- package/dist/tabs.js +24 -3
- package/dist/textarea-CG7iQcb3.cjs +14 -0
- package/dist/textarea-CUPWKl-S.js +32 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/toaster.cjs +4 -1
- package/dist/toaster.js +9 -6
- package/dist/toggle.cjs +17 -1
- package/dist/toggle.js +25 -9
- package/dist/tooltip.cjs +16 -1
- package/dist/tooltip.js +22 -2
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +6 -6
- package/docs/AI-GUIDE.md +321 -321
- package/docs/components/layout/sidebar.md +404 -404
- package/docs/components/layout/toaster.md +436 -436
- package/docs/components/ui/accordion-rounded.md +583 -583
- package/docs/components/ui/accordion.md +267 -267
- package/docs/components/ui/alert.md +671 -671
- package/docs/components/ui/avatar.md +588 -588
- package/docs/components/ui/badge.md +1024 -1024
- package/docs/components/ui/button-group.md +1002 -1002
- package/docs/components/ui/button.md +1078 -1078
- package/docs/components/ui/calendar.md +1159 -1159
- package/docs/components/ui/card.md +1265 -1265
- package/docs/components/ui/checkbox.md +292 -292
- package/docs/components/ui/collapsible.md +320 -320
- package/docs/components/ui/command.md +454 -454
- package/docs/components/ui/context-menu.md +540 -540
- package/docs/components/ui/dialog.md +628 -628
- package/docs/components/ui/dropdown-menu.md +731 -731
- package/docs/components/ui/field.md +706 -706
- package/docs/components/ui/hover-card.md +446 -446
- package/docs/components/ui/input-group.md +509 -509
- package/docs/components/ui/input.md +362 -362
- package/docs/components/ui/kbd.md +434 -434
- package/docs/components/ui/label.md +359 -359
- package/docs/components/ui/pagination.md +650 -650
- package/docs/components/ui/popover.md +536 -536
- package/docs/components/ui/progress.md +182 -182
- package/docs/components/ui/radio-group.md +311 -311
- package/docs/components/ui/select.md +352 -352
- package/docs/components/ui/separator.md +214 -214
- package/docs/components/ui/sheet.md +142 -142
- package/docs/components/ui/skeleton.md +140 -140
- package/docs/components/ui/slider.md +341 -341
- package/docs/components/ui/spinner.md +170 -170
- package/docs/components/ui/switch.md +402 -402
- package/docs/components/ui/table.md +183 -183
- package/docs/components/ui/tabs-underline.md +106 -106
- package/docs/components/ui/tabs.md +122 -122
- package/docs/components/ui/textarea.md +243 -243
- package/docs/components/ui/toggle.md +243 -243
- package/docs/components/ui/tooltip.md +320 -320
- package/docs/components/ui/typography.md +191 -191
- package/package.json +7 -1
- package/dist/button-2GdKenQI.js +0 -58
- package/dist/button-DEQVHMrX.cjs +0 -1
- package/dist/input-BF73maXg.cjs +0 -1
- package/dist/input-C04hsVXE.js +0 -22
- package/dist/sheet-B-9YHdR5.js +0 -128
- package/dist/sheet-CU-sFSaJ.cjs +0 -1
- package/dist/textarea-3ZdbFRDN.cjs +0 -1
- package/dist/textarea-BZbcAAAu.js +0 -19
package/dist/switch.cjs
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),O=require("react"),S=require("./index-BWaO7kQK.cjs"),R=require("./index-_XxjJPRD.cjs"),B=require("./index-cwZN7ZY3.cjs"),M=require("./index-DYxWvftI.cjs"),I=require("./index-bSPhqlcX.cjs"),y=require("./index-CocSS1YK.cjs"),j=require("./index-DoxiiusW.cjs");function $(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=$(O);var h="Switch",[z]=B.createContextScope(h),[H,A]=z(h),C=s.forwardRef((e,r)=>{const{__scopeSwitch:t,name:a,checked:n,defaultChecked:b,required:d,disabled:c,value:u="on",onCheckedChange:x,form:i,...g}=e,[l,m]=s.useState(null),w=R.useComposedRefs(r,f=>m(f)),k=s.useRef(!1),v=l?i||!!l.closest("form"):!0,[p,N]=S.useControllableState({prop:n,defaultProp:b??!1,onChange:x,caller:h});return o.jsxRuntimeExports.jsxs(H,{scope:t,checked:p,disabled:c,children:[o.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"switch","aria-checked":p,"aria-required":d,"data-state":q(p),"data-disabled":c?"":void 0,disabled:c,value:u,...g,ref:w,onClick:S.composeEventHandlers(e.onClick,f=>{N(T=>!T),v&&(k.current=f.isPropagationStopped(),k.current||f.stopPropagation())})}),v&&o.jsxRuntimeExports.jsx(_,{control:l,bubbles:!k.current,name:a,value:u,checked:p,required:d,disabled:c,form:i,style:{transform:"translateX(-100%)"}})]})});C.displayName=h;var E="SwitchThumb",P=s.forwardRef((e,r)=>{const{__scopeSwitch:t,...a}=e,n=A(E,t);return o.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":q(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:r})});P.displayName=E;var D="SwitchBubbleInput",_=s.forwardRef(({__scopeSwitch:e,control:r,checked:t,bubbles:a=!0,...n},b)=>{const d=s.useRef(null),c=R.useComposedRefs(d,b),u=M.usePrevious(t),x=I.useSize(r);return s.useEffect(()=>{const i=d.current;if(!i)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(u!==t&&m){const w=new Event("click",{bubbles:a});m.call(i,t),i.dispatchEvent(w)}},[u,t,a]),o.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:c,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=D;function q(e){return e?"checked":"unchecked"}var U=C,L=P;function F({className:e,...r}){return o.jsxRuntimeExports.jsx(U,{"data-slot":"switch",className:j.cn(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),O=require("react"),S=require("./index-BWaO7kQK.cjs"),R=require("./index-_XxjJPRD.cjs"),B=require("./index-cwZN7ZY3.cjs"),M=require("./index-DYxWvftI.cjs"),I=require("./index-bSPhqlcX.cjs"),y=require("./index-CocSS1YK.cjs"),j=require("./index-DoxiiusW.cjs");function $(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=$(O);var h="Switch",[z]=B.createContextScope(h),[H,A]=z(h),C=s.forwardRef((e,r)=>{const{__scopeSwitch:t,name:a,checked:n,defaultChecked:b,required:d,disabled:c,value:u="on",onCheckedChange:x,form:i,...g}=e,[l,m]=s.useState(null),w=R.useComposedRefs(r,f=>m(f)),k=s.useRef(!1),v=l?i||!!l.closest("form"):!0,[p,N]=S.useControllableState({prop:n,defaultProp:b??!1,onChange:x,caller:h});return o.jsxRuntimeExports.jsxs(H,{scope:t,checked:p,disabled:c,children:[o.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"switch","aria-checked":p,"aria-required":d,"data-state":q(p),"data-disabled":c?"":void 0,disabled:c,value:u,...g,ref:w,onClick:S.composeEventHandlers(e.onClick,f=>{N(T=>!T),v&&(k.current=f.isPropagationStopped(),k.current||f.stopPropagation())})}),v&&o.jsxRuntimeExports.jsx(_,{control:l,bubbles:!k.current,name:a,value:u,checked:p,required:d,disabled:c,form:i,style:{transform:"translateX(-100%)"}})]})});C.displayName=h;var E="SwitchThumb",P=s.forwardRef((e,r)=>{const{__scopeSwitch:t,...a}=e,n=A(E,t);return o.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":q(n.checked),"data-disabled":n.disabled?"":void 0,...a,ref:r})});P.displayName=E;var D="SwitchBubbleInput",_=s.forwardRef(({__scopeSwitch:e,control:r,checked:t,bubbles:a=!0,...n},b)=>{const d=s.useRef(null),c=R.useComposedRefs(d,b),u=M.usePrevious(t),x=I.useSize(r);return s.useEffect(()=>{const i=d.current;if(!i)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(u!==t&&m){const w=new Event("click",{bubbles:a});m.call(i,t),i.dispatchEvent(w)}},[u,t,a]),o.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...n,tabIndex:-1,ref:c,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=D;function q(e){return e?"checked":"unchecked"}var U=C,L=P;function F({className:e,...r}){return o.jsxRuntimeExports.jsx(U,{"data-slot":"switch",className:j.cn(`
|
|
2
|
+
adm:peer adm:inline-flex adm:h-5 adm:w-8 adm:shrink-0 adm:items-center
|
|
3
|
+
adm:rounded-full adm:border adm:border-transparent adm:shadow-xs
|
|
4
|
+
adm:transition-all adm:outline-none
|
|
5
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
6
|
+
adm:focus-visible:ring-ring/50
|
|
7
|
+
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
8
|
+
adm:data-[state=checked]:bg-primary
|
|
9
|
+
adm:data-[state=unchecked]:bg-input
|
|
10
|
+
adm:dark:data-[state=unchecked]:bg-input/80
|
|
11
|
+
`,e),...r,children:o.jsxRuntimeExports.jsx(L,{"data-slot":"switch-thumb",className:j.cn(`
|
|
12
|
+
adm:pointer-events-none adm:block adm:size-4 adm:rounded-full
|
|
13
|
+
adm:bg-background adm:ring-0 adm:transition-transform
|
|
14
|
+
adm:data-[state=checked]:translate-x-[calc(100%-2px)]
|
|
15
|
+
adm:data-[state=unchecked]:translate-x-0
|
|
16
|
+
adm:dark:data-[state=checked]:bg-primary-foreground
|
|
17
|
+
adm:dark:data-[state=unchecked]:bg-foreground
|
|
18
|
+
`)})})}exports.Switch=F;
|
package/dist/switch.js
CHANGED
|
@@ -133,7 +133,17 @@ function V({
|
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "switch",
|
|
135
135
|
className: S(
|
|
136
|
-
|
|
136
|
+
`
|
|
137
|
+
adm:peer adm:inline-flex adm:h-5 adm:w-8 adm:shrink-0 adm:items-center
|
|
138
|
+
adm:rounded-full adm:border adm:border-transparent adm:shadow-xs
|
|
139
|
+
adm:transition-all adm:outline-none
|
|
140
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
141
|
+
adm:focus-visible:ring-ring/50
|
|
142
|
+
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
143
|
+
adm:data-[state=checked]:bg-primary
|
|
144
|
+
adm:data-[state=unchecked]:bg-input
|
|
145
|
+
adm:dark:data-[state=unchecked]:bg-input/80
|
|
146
|
+
`,
|
|
137
147
|
e
|
|
138
148
|
),
|
|
139
149
|
...a,
|
|
@@ -142,7 +152,14 @@ function V({
|
|
|
142
152
|
{
|
|
143
153
|
"data-slot": "switch-thumb",
|
|
144
154
|
className: S(
|
|
145
|
-
|
|
155
|
+
`
|
|
156
|
+
adm:pointer-events-none adm:block adm:size-4 adm:rounded-full
|
|
157
|
+
adm:bg-background adm:ring-0 adm:transition-transform
|
|
158
|
+
adm:data-[state=checked]:translate-x-[calc(100%-2px)]
|
|
159
|
+
adm:data-[state=unchecked]:translate-x-0
|
|
160
|
+
adm:dark:data-[state=checked]:bg-primary-foreground
|
|
161
|
+
adm:dark:data-[state=unchecked]:bg-foreground
|
|
162
|
+
`
|
|
146
163
|
)
|
|
147
164
|
}
|
|
148
165
|
)
|
package/dist/table.cjs
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function o({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:`
|
|
2
|
+
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-xl adm:border
|
|
3
|
+
`,children:t.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:d.cn("adm:w-full adm:caption-bottom adm:text-sm",a),...e})})}function r({className:a,...e}){return t.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:d.cn("adm:[&_tr]:border-b",a),...e})}function l({className:a,...e}){return t.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:d.cn("adm:[&_tr:last-child]:border-0",a),...e})}function s({className:a,...e}){return t.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:d.cn(`
|
|
4
|
+
adm:border-t adm:bg-muted/50 adm:font-medium
|
|
5
|
+
adm:[&>tr]:last:border-b-0
|
|
6
|
+
`,a),...e})}function m({className:a,...e}){return t.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:d.cn(`
|
|
7
|
+
adm:border-b adm:border-neutrals-50 adm:transition-colors
|
|
8
|
+
adm:hover:bg-muted/50
|
|
9
|
+
adm:data-[state=selected]:bg-muted
|
|
10
|
+
`,a),...e})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:d.cn(`
|
|
11
|
+
adm:h-10 adm:bg-neutrals-50 adm:p-4 adm:text-left adm:align-middle
|
|
12
|
+
adm:font-semibold adm:whitespace-nowrap adm:text-neutrals-500
|
|
13
|
+
adm:uppercase
|
|
14
|
+
adm:[&:has([role=checkbox])]:pr-0
|
|
15
|
+
adm:[&>[role=checkbox]]:translate-y-[2px]
|
|
16
|
+
`,a),...e})}function b({className:a,...e}){return t.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:d.cn(`
|
|
17
|
+
adm:p-4 adm:align-middle adm:whitespace-nowrap adm:text-neutrals-500
|
|
18
|
+
adm:[&:has([role=checkbox])]:pr-0
|
|
19
|
+
adm:[&>[role=checkbox]]:translate-y-[2px]
|
|
20
|
+
`,a),...e})}function c({className:a,...e}){return t.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:d.cn("adm:my-4 adm:text-sm adm:text-muted-foreground",a),...e})}exports.Table=o;exports.TableBody=l;exports.TableCaption=c;exports.TableCell=b;exports.TableFooter=s;exports.TableHead=n;exports.TableHeader=r;exports.TableRow=m;
|
package/dist/table.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "react";
|
|
3
2
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
3
|
+
import "react";
|
|
4
4
|
function m({ className: a, ...t }) {
|
|
5
5
|
return /* @__PURE__ */ e.jsx(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
8
|
"data-slot": "table-container",
|
|
9
|
-
className:
|
|
9
|
+
className: `
|
|
10
|
+
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-xl adm:border
|
|
11
|
+
`,
|
|
10
12
|
children: /* @__PURE__ */ e.jsx(
|
|
11
13
|
"table",
|
|
12
14
|
{
|
|
@@ -44,7 +46,10 @@ function b({ className: a, ...t }) {
|
|
|
44
46
|
{
|
|
45
47
|
"data-slot": "table-footer",
|
|
46
48
|
className: d(
|
|
47
|
-
|
|
49
|
+
`
|
|
50
|
+
adm:border-t adm:bg-muted/50 adm:font-medium
|
|
51
|
+
adm:[&>tr]:last:border-b-0
|
|
52
|
+
`,
|
|
48
53
|
a
|
|
49
54
|
),
|
|
50
55
|
...t
|
|
@@ -57,7 +62,11 @@ function c({ className: a, ...t }) {
|
|
|
57
62
|
{
|
|
58
63
|
"data-slot": "table-row",
|
|
59
64
|
className: d(
|
|
60
|
-
|
|
65
|
+
`
|
|
66
|
+
adm:border-b adm:border-neutrals-50 adm:transition-colors
|
|
67
|
+
adm:hover:bg-muted/50
|
|
68
|
+
adm:data-[state=selected]:bg-muted
|
|
69
|
+
`,
|
|
61
70
|
a
|
|
62
71
|
),
|
|
63
72
|
...t
|
|
@@ -70,7 +79,13 @@ function u({ className: a, ...t }) {
|
|
|
70
79
|
{
|
|
71
80
|
"data-slot": "table-head",
|
|
72
81
|
className: d(
|
|
73
|
-
|
|
82
|
+
`
|
|
83
|
+
adm:h-10 adm:bg-neutrals-50 adm:p-4 adm:text-left adm:align-middle
|
|
84
|
+
adm:font-semibold adm:whitespace-nowrap adm:text-neutrals-500
|
|
85
|
+
adm:uppercase
|
|
86
|
+
adm:[&:has([role=checkbox])]:pr-0
|
|
87
|
+
adm:[&>[role=checkbox]]:translate-y-[2px]
|
|
88
|
+
`,
|
|
74
89
|
a
|
|
75
90
|
),
|
|
76
91
|
...t
|
|
@@ -83,7 +98,11 @@ function i({ className: a, ...t }) {
|
|
|
83
98
|
{
|
|
84
99
|
"data-slot": "table-cell",
|
|
85
100
|
className: d(
|
|
86
|
-
|
|
101
|
+
`
|
|
102
|
+
adm:p-4 adm:align-middle adm:whitespace-nowrap adm:text-neutrals-500
|
|
103
|
+
adm:[&:has([role=checkbox])]:pr-0
|
|
104
|
+
adm:[&>[role=checkbox]]:translate-y-[2px]
|
|
105
|
+
`,
|
|
87
106
|
a
|
|
88
107
|
),
|
|
89
108
|
...t
|
|
@@ -98,7 +117,7 @@ function x({
|
|
|
98
117
|
"caption",
|
|
99
118
|
{
|
|
100
119
|
"data-slot": "table-caption",
|
|
101
|
-
className: d("adm:
|
|
120
|
+
className: d("adm:my-4 adm:text-sm adm:text-muted-foreground", a),
|
|
102
121
|
...t
|
|
103
122
|
}
|
|
104
123
|
);
|
package/dist/tabs-underline.cjs
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-DmGzwG2z.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function n({className:a,...t}){return e.jsxRuntimeExports.jsx(s.Root2,{"data-slot":"tabs",className:d.cn("adm:flex adm:flex-col adm:gap-2",a),...t})}function i({className:a,...t}){return e.jsxRuntimeExports.jsx(s.List,{"data-slot":"tabs-list",className:d.cn(`
|
|
2
|
+
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
3
|
+
adm:p-[1px] adm:text-muted-foreground
|
|
4
|
+
`,a),...t})}function r({className:a,...t}){return e.jsxRuntimeExports.jsx(s.Trigger,{"data-slot":"tabs-trigger",className:d.cn(`
|
|
5
|
+
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
6
|
+
adm:justify-center adm:gap-1.5 adm:border-b-2 adm:border-b-transparent
|
|
7
|
+
adm:px-2 adm:py-1 adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
8
|
+
adm:text-foreground adm:transition-[box-shadow]
|
|
9
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
10
|
+
adm:focus-visible:ring-ring/50 adm:focus-visible:outline-1
|
|
11
|
+
adm:focus-visible:outline-ring
|
|
12
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
13
|
+
adm:data-[state=active]:border-b-primary
|
|
14
|
+
adm:data-[state=active]:text-primary
|
|
15
|
+
adm:dark:text-muted-foreground
|
|
16
|
+
adm:dark:data-[state=active]:border-input
|
|
17
|
+
adm:dark:data-[state=active]:bg-input/30
|
|
18
|
+
adm:dark:data-[state=active]:text-foreground
|
|
19
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
20
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
21
|
+
`,a),...t})}function m({className:a,...t}){return e.jsxRuntimeExports.jsx(s.Content,{"data-slot":"tabs-content",className:d.cn("adm:flex-1 adm:outline-none",a),...t})}exports.Tabs=n;exports.TabsContent=m;exports.TabsList=i;exports.TabsTrigger=r;
|
package/dist/tabs-underline.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "react";
|
|
3
2
|
import { R as s, L as r, T as i, C as m } from "./index-yWvyIlmA.js";
|
|
4
3
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
|
+
import "react";
|
|
5
5
|
function u({
|
|
6
6
|
className: a,
|
|
7
7
|
...t
|
|
@@ -24,7 +24,10 @@ function b({
|
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "tabs-list",
|
|
26
26
|
className: d(
|
|
27
|
-
|
|
27
|
+
`
|
|
28
|
+
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
29
|
+
adm:p-[1px] adm:text-muted-foreground
|
|
30
|
+
`,
|
|
28
31
|
a
|
|
29
32
|
),
|
|
30
33
|
...t
|
|
@@ -40,7 +43,24 @@ function f({
|
|
|
40
43
|
{
|
|
41
44
|
"data-slot": "tabs-trigger",
|
|
42
45
|
className: d(
|
|
43
|
-
|
|
46
|
+
`
|
|
47
|
+
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
48
|
+
adm:justify-center adm:gap-1.5 adm:border-b-2 adm:border-b-transparent
|
|
49
|
+
adm:px-2 adm:py-1 adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
50
|
+
adm:text-foreground adm:transition-[box-shadow]
|
|
51
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
52
|
+
adm:focus-visible:ring-ring/50 adm:focus-visible:outline-1
|
|
53
|
+
adm:focus-visible:outline-ring
|
|
54
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
55
|
+
adm:data-[state=active]:border-b-primary
|
|
56
|
+
adm:data-[state=active]:text-primary
|
|
57
|
+
adm:dark:text-muted-foreground
|
|
58
|
+
adm:dark:data-[state=active]:border-input
|
|
59
|
+
adm:dark:data-[state=active]:bg-input/30
|
|
60
|
+
adm:dark:data-[state=active]:text-foreground
|
|
61
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
62
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
63
|
+
`,
|
|
44
64
|
a
|
|
45
65
|
),
|
|
46
66
|
...t
|
package/dist/tabs.cjs
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DmGzwG2z.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function n({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Root2,{"data-slot":"tabs",className:s.cn("adm:flex adm:flex-col adm:gap-2",a),...t})}function r({className:a,...t}){return e.jsxRuntimeExports.jsx(d.List,{"data-slot":"tabs-list",className:s.cn(`
|
|
2
|
+
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
3
|
+
adm:rounded-lg adm:bg-muted adm:p-[1px] adm:text-muted-foreground
|
|
4
|
+
`,a),...t})}function i({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"tabs-trigger",className:s.cn(`
|
|
5
|
+
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
6
|
+
adm:justify-center adm:gap-1.5 adm:rounded-md adm:border
|
|
7
|
+
adm:border-transparent adm:px-2 adm:py-1 adm:text-sm adm:font-semibold
|
|
8
|
+
adm:whitespace-nowrap adm:text-foreground adm:transition-[box-shadow]
|
|
9
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
10
|
+
adm:focus-visible:ring-ring/50 adm:focus-visible:outline-1
|
|
11
|
+
adm:focus-visible:outline-ring
|
|
12
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
13
|
+
adm:data-[state=active]:bg-primary
|
|
14
|
+
adm:data-[state=active]:text-primary-foreground
|
|
15
|
+
adm:data-[state=active]:shadow-sm
|
|
16
|
+
adm:dark:text-muted-foreground
|
|
17
|
+
adm:dark:data-[state=active]:border-input
|
|
18
|
+
adm:dark:data-[state=active]:bg-input/30
|
|
19
|
+
adm:dark:data-[state=active]:text-foreground
|
|
20
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
21
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
22
|
+
`,a),...t})}function m({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Content,{"data-slot":"tabs-content",className:s.cn("adm:flex-1 adm:outline-none",a),...t})}exports.Tabs=n;exports.TabsContent=m;exports.TabsList=r;exports.TabsTrigger=i;
|
package/dist/tabs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "react";
|
|
3
2
|
import { R as s, L as m, T as r, C as i } from "./index-yWvyIlmA.js";
|
|
4
3
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
|
+
import "react";
|
|
5
5
|
function u({
|
|
6
6
|
className: a,
|
|
7
7
|
...t
|
|
@@ -24,7 +24,10 @@ function f({
|
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "tabs-list",
|
|
26
26
|
className: d(
|
|
27
|
-
|
|
27
|
+
`
|
|
28
|
+
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
29
|
+
adm:rounded-lg adm:bg-muted adm:p-[1px] adm:text-muted-foreground
|
|
30
|
+
`,
|
|
28
31
|
a
|
|
29
32
|
),
|
|
30
33
|
...t
|
|
@@ -40,7 +43,25 @@ function g({
|
|
|
40
43
|
{
|
|
41
44
|
"data-slot": "tabs-trigger",
|
|
42
45
|
className: d(
|
|
43
|
-
|
|
46
|
+
`
|
|
47
|
+
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
48
|
+
adm:justify-center adm:gap-1.5 adm:rounded-md adm:border
|
|
49
|
+
adm:border-transparent adm:px-2 adm:py-1 adm:text-sm adm:font-semibold
|
|
50
|
+
adm:whitespace-nowrap adm:text-foreground adm:transition-[box-shadow]
|
|
51
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
52
|
+
adm:focus-visible:ring-ring/50 adm:focus-visible:outline-1
|
|
53
|
+
adm:focus-visible:outline-ring
|
|
54
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
55
|
+
adm:data-[state=active]:bg-primary
|
|
56
|
+
adm:data-[state=active]:text-primary-foreground
|
|
57
|
+
adm:data-[state=active]:shadow-sm
|
|
58
|
+
adm:dark:text-muted-foreground
|
|
59
|
+
adm:dark:data-[state=active]:border-input
|
|
60
|
+
adm:dark:data-[state=active]:bg-input/30
|
|
61
|
+
adm:dark:data-[state=active]:text-foreground
|
|
62
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
63
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
64
|
+
`,
|
|
44
65
|
a
|
|
45
66
|
),
|
|
46
67
|
...t
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs"),r=require("./index-DoxiiusW.cjs");require("react");function i({className:a,...d}){return e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:r.cn(`
|
|
2
|
+
adm:flex adm:field-sizing-content adm:min-h-16 adm:w-full
|
|
3
|
+
adm:rounded-md adm:border adm:border-input adm:bg-transparent adm:px-3
|
|
4
|
+
adm:py-2 adm:text-base adm:shadow-xs adm:transition-[color,box-shadow]
|
|
5
|
+
adm:outline-none
|
|
6
|
+
adm:placeholder:text-muted-foreground
|
|
7
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
8
|
+
adm:focus-visible:ring-ring/50
|
|
9
|
+
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
10
|
+
adm:aria-invalid:border-destructive
|
|
11
|
+
adm:aria-invalid:ring-destructive/20
|
|
12
|
+
adm:md:text-sm
|
|
13
|
+
adm:dark:bg-input/30 adm:dark:aria-invalid:ring-destructive/40
|
|
14
|
+
`,a),...d})}exports.Textarea=i;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { c as e } from "./index-CRiPKpXj.js";
|
|
3
|
+
import "react";
|
|
4
|
+
function o({ className: a, ...d }) {
|
|
5
|
+
return /* @__PURE__ */ r.jsx(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "textarea",
|
|
9
|
+
className: e(
|
|
10
|
+
`
|
|
11
|
+
adm:flex adm:field-sizing-content adm:min-h-16 adm:w-full
|
|
12
|
+
adm:rounded-md adm:border adm:border-input adm:bg-transparent adm:px-3
|
|
13
|
+
adm:py-2 adm:text-base adm:shadow-xs adm:transition-[color,box-shadow]
|
|
14
|
+
adm:outline-none
|
|
15
|
+
adm:placeholder:text-muted-foreground
|
|
16
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
17
|
+
adm:focus-visible:ring-ring/50
|
|
18
|
+
adm:disabled:cursor-not-allowed adm:disabled:opacity-50
|
|
19
|
+
adm:aria-invalid:border-destructive
|
|
20
|
+
adm:aria-invalid:ring-destructive/20
|
|
21
|
+
adm:md:text-sm
|
|
22
|
+
adm:dark:bg-input/30 adm:dark:aria-invalid:ring-destructive/40
|
|
23
|
+
`,
|
|
24
|
+
a
|
|
25
|
+
),
|
|
26
|
+
...d
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
o as T
|
|
32
|
+
};
|
package/dist/textarea.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./textarea-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./textarea-CG7iQcb3.cjs");exports.Textarea=e.Textarea;
|
package/dist/textarea.js
CHANGED
package/dist/toaster.cjs
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),f=require("./index-Dbj9vHNq.cjs"),T=require("./index-DoxiiusW.cjs"),x=require("./index-BTzZJcis.cjs"),i=require("react");class g{subscribers=[];subscribe(t){return this.subscribers.push(t),()=>{this.subscribers=this.subscribers.filter(s=>s!==t)}}emit(t){this.subscribers.forEach(s=>s(t))}}const d=new g,m=x.cva(`
|
|
2
|
+
adm:fixed adm:right-0 adm:bottom-0 adm:left-0 adm:z-50 adm:flex adm:w-full
|
|
3
|
+
adm:justify-center adm:p-4
|
|
4
|
+
`,{variants:{variant:{default:"adm:bg-primary-200 adm:text-neutrals-700",success:"adm:bg-success-50 adm:text-success",warning:"adm:bg-warning-50 adm:text-warning",destructive:"adm:bg-destructive-50 adm:text-destructive"}},defaultVariants:{variant:"default"}}),l=3e3;function v(){const[e,t]=i.useState(null),[s,a]=i.useState(!1);i.useEffect(()=>{const n=d.subscribe(u=>{t(u),a(!1)});return()=>{n()}},[]);const r=n=>{n.animationName==="toast-slide-down"&&(t(null),a(!1))};return e?o.jsxRuntimeExports.jsx(f.Portal,{children:o.jsxRuntimeExports.jsx(b,{closing:s,onClosing:()=>a(!0),animationEnded:r,...e})},e.id):null}function b({variant:e,message:t,autoClose:s,onClose:a,closing:r,onClosing:n,animationEnded:u}){return i.useEffect(()=>{let c;return c=setTimeout(()=>{n(),a&&a()},s||l),()=>{clearTimeout(c)}},[]),o.jsxRuntimeExports.jsx("div",{onAnimationEnd:u,className:T.cn(m({variant:e}),{"adm:animate-toast-slide-up":!r,"adm:animate-toast-slide-down":r}),children:o.jsxRuntimeExports.jsx("p",{children:t})})}class E{show(t){const s=t.id||`${Date.now()}-${Math.random()}`;d.emit({...t,id:s})}}const h=new E;exports.TOAST_AUTO_CLOSE_DEFAULT=l;exports.Toast=b;exports.ToastManager=h;exports.ToastObservable=d;exports.Toaster=v;exports.toastVariants=m;
|
package/dist/toaster.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { useState as d, useEffect as u } from "react";
|
|
3
2
|
import { P as l } from "./index-BX9hz-JD.js";
|
|
4
|
-
import { c as f } from "./index-
|
|
5
|
-
import { c as b } from "./index-
|
|
3
|
+
import { c as f } from "./index-CRiPKpXj.js";
|
|
4
|
+
import { c as b } from "./index-BqtVL8d-.js";
|
|
5
|
+
import { useState as d, useEffect as u } from "react";
|
|
6
6
|
class x {
|
|
7
7
|
subscribers = [];
|
|
8
8
|
subscribe(t) {
|
|
@@ -14,8 +14,11 @@ class x {
|
|
|
14
14
|
this.subscribers.forEach((s) => s(t));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const c = new x(), T =
|
|
18
|
-
|
|
17
|
+
const c = new x(), T = b(
|
|
18
|
+
`
|
|
19
|
+
adm:fixed adm:right-0 adm:bottom-0 adm:left-0 adm:z-50 adm:flex adm:w-full
|
|
20
|
+
adm:justify-center adm:p-4
|
|
21
|
+
`,
|
|
19
22
|
{
|
|
20
23
|
variants: {
|
|
21
24
|
variant: {
|
|
@@ -73,7 +76,7 @@ function h({
|
|
|
73
76
|
"div",
|
|
74
77
|
{
|
|
75
78
|
onAnimationEnd: o,
|
|
76
|
-
className:
|
|
79
|
+
className: f(
|
|
77
80
|
T({ variant: a }),
|
|
78
81
|
{
|
|
79
82
|
"adm:animate-toast-slide-up": !i,
|
package/dist/toggle.cjs
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),g=require("react"),r=require("./index-BWaO7kQK.cjs"),f=require("./index-CocSS1YK.cjs"),b=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),g=require("react"),r=require("./index-BWaO7kQK.cjs"),f=require("./index-CocSS1YK.cjs"),b=require("./index-DoxiiusW.cjs"),v=require("./index-BTzZJcis.cjs");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,d.get?d:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const x=p(g);var i="Toggle",s=x.forwardRef((e,t)=>{const{pressed:a,defaultPressed:d,onPressedChange:l,...c}=e,[n,u]=r.useControllableState({prop:a,onChange:l,defaultProp:d??!1,caller:i});return o.jsxRuntimeExports.jsx(f.Primitive.button,{type:"button","aria-pressed":n,"data-state":n?"on":"off","data-disabled":e.disabled?"":void 0,...c,ref:t,onClick:r.composeEventHandlers(e.onClick,()=>{e.disabled||u(!n)})})});s.displayName=i;var h=s;const m=v.cva(`
|
|
2
|
+
adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:rounded-md
|
|
3
|
+
adm:text-sm adm:font-medium adm:whitespace-nowrap
|
|
4
|
+
adm:transition-[color,box-shadow] adm:outline-none
|
|
5
|
+
adm:hover:bg-muted adm:hover:text-muted-foreground
|
|
6
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
7
|
+
adm:focus-visible:ring-ring/50
|
|
8
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
9
|
+
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
10
|
+
adm:data-[state=on]:bg-accent adm:data-[state=on]:text-accent-foreground
|
|
11
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
12
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
13
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
14
|
+
`,{variants:{variant:{default:"adm:bg-transparent",outline:`
|
|
15
|
+
adm:border adm:border-input adm:bg-transparent adm:shadow-xs
|
|
16
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
17
|
+
`},size:{default:"adm:h-9 adm:min-w-9 adm:px-2",sm:"adm:h-8 adm:min-w-8 adm:px-1.5",lg:"adm:h-10 adm:min-w-10 adm:px-2.5"}},defaultVariants:{variant:"default",size:"default"}});function j({className:e,variant:t,size:a,...d}){return o.jsxRuntimeExports.jsx(h,{"data-slot":"toggle",className:b.cn(m({variant:t,size:a,className:e})),...d})}exports.Toggle=j;exports.toggleVariants=m;
|
package/dist/toggle.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as o } from "./jsx-runtime-BzflLqGi.js";
|
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { u, c as g } from "./index-C0UREtMP.js";
|
|
4
4
|
import { P as f } from "./index-BMWt1NBG.js";
|
|
5
|
-
import { c as v } from "./index-
|
|
6
|
-
import { c as p } from "./index-
|
|
5
|
+
import { c as v } from "./index-CRiPKpXj.js";
|
|
6
|
+
import { c as p } from "./index-BqtVL8d-.js";
|
|
7
7
|
var s = "Toggle", n = c.forwardRef((a, e) => {
|
|
8
8
|
const { pressed: t, defaultPressed: d, onPressedChange: i, ...m } = a, [r, l] = u({
|
|
9
9
|
prop: t,
|
|
@@ -28,18 +28,34 @@ var s = "Toggle", n = c.forwardRef((a, e) => {
|
|
|
28
28
|
});
|
|
29
29
|
n.displayName = s;
|
|
30
30
|
var b = n;
|
|
31
|
-
const x =
|
|
32
|
-
|
|
31
|
+
const x = p(
|
|
32
|
+
`
|
|
33
|
+
adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:rounded-md
|
|
34
|
+
adm:text-sm adm:font-medium adm:whitespace-nowrap
|
|
35
|
+
adm:transition-[color,box-shadow] adm:outline-none
|
|
36
|
+
adm:hover:bg-muted adm:hover:text-muted-foreground
|
|
37
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
38
|
+
adm:focus-visible:ring-ring/50
|
|
39
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
40
|
+
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
41
|
+
adm:data-[state=on]:bg-accent adm:data-[state=on]:text-accent-foreground
|
|
42
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
43
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
44
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
45
|
+
`,
|
|
33
46
|
{
|
|
34
47
|
variants: {
|
|
35
48
|
variant: {
|
|
36
49
|
default: "adm:bg-transparent",
|
|
37
|
-
outline:
|
|
50
|
+
outline: `
|
|
51
|
+
adm:border adm:border-input adm:bg-transparent adm:shadow-xs
|
|
52
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
53
|
+
`
|
|
38
54
|
},
|
|
39
55
|
size: {
|
|
40
|
-
default: "adm:h-9 adm:
|
|
41
|
-
sm: "adm:h-8 adm:px-1.5
|
|
42
|
-
lg: "adm:h-10 adm:px-2.5
|
|
56
|
+
default: "adm:h-9 adm:min-w-9 adm:px-2",
|
|
57
|
+
sm: "adm:h-8 adm:min-w-8 adm:px-1.5",
|
|
58
|
+
lg: "adm:h-10 adm:min-w-10 adm:px-2.5"
|
|
43
59
|
}
|
|
44
60
|
},
|
|
45
61
|
defaultVariants: {
|
|
@@ -58,7 +74,7 @@ function k({
|
|
|
58
74
|
b,
|
|
59
75
|
{
|
|
60
76
|
"data-slot": "toggle",
|
|
61
|
-
className:
|
|
77
|
+
className: v(x({ variant: e, size: t, className: a })),
|
|
62
78
|
...d
|
|
63
79
|
}
|
|
64
80
|
);
|
package/dist/tooltip.cjs
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),K=require("react"),E=require("./index-BWaO7kQK.cjs"),M=require("./index-_XxjJPRD.cjs"),W=require("./index-cwZN7ZY3.cjs"),J=require("./index-BeWgla7c.cjs"),Q=require("./index-WIv2ndLu.cjs"),R=require("./index-BcGMAmWE.cjs"),Z=require("./index-Dbj9vHNq.cjs"),N=require("./index-Bd0gQB0k.cjs"),ee=require("./index-CocSS1YK.cjs"),te=require("./index-BDs8lUfq.cjs"),oe=require("./index-DoxiiusW.cjs");function re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=re(K);var ne=Symbol("radix.slottable");function se(e){const o=({children:t})=>c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:t});return o.displayName=`${e}.Slottable`,o.__radixId=ne,o}var[O]=W.createContextScope("Tooltip",[R.createPopperScope]),D=R.createPopperScope(),q="TooltipProvider",ie=700,L="tooltip.open",[ae,k]=O(q),$=e=>{const{__scopeTooltip:o,delayDuration:t=ie,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:l}=e,a=s.useRef(!0),f=s.useRef(!1),i=s.useRef(0);return s.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsxRuntimeExports.jsx(ae,{scope:o,isOpenDelayedRef:a,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(i.current),a.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:s.useCallback(p=>{f.current=p},[]),disableHoverableContent:n,children:l})};$.displayName=q;var P="Tooltip",[le,_]=O(P),F=e=>{const{__scopeTooltip:o,children:t,open:r,defaultOpen:n,onOpenChange:l,disableHoverableContent:a,delayDuration:f}=e,i=k(P,e.__scopeTooltip),p=D(o),[u,x]=s.useState(null),m=Q.useId(),d=s.useRef(0),v=a??i.disableHoverableContent,T=f??i.delayDuration,h=s.useRef(!1),[y,g]=E.useControllableState({prop:r,defaultProp:n??!1,onChange:H=>{H?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),l?.(H)},caller:P}),b=s.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),j=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,h.current=!1,g(!0)},[g]),w=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,g(!1)},[g]),I=s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{h.current=!0,g(!0),d.current=0},T)},[T,g]);return s.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),c.jsxRuntimeExports.jsx(R.Root2,{...p,children:c.jsxRuntimeExports.jsx(le,{scope:o,contentId:m,open:y,stateAttribute:b,trigger:u,onTriggerChange:x,onTriggerEnter:s.useCallback(()=>{i.isOpenDelayedRef.current?I():j()},[i.isOpenDelayedRef,I,j]),onTriggerLeave:s.useCallback(()=>{v?w():(window.clearTimeout(d.current),d.current=0)},[w,v]),onOpen:j,onClose:w,disableHoverableContent:v,children:t})})};F.displayName=P;var A="TooltipTrigger",G=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=_(A,t),l=k(A,t),a=D(t),f=s.useRef(null),i=M.useComposedRefs(o,f,n.onTriggerChange),p=s.useRef(!1),u=s.useRef(!1),x=s.useCallback(()=>p.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsxRuntimeExports.jsx(R.Anchor,{asChild:!0,...a,children:c.jsxRuntimeExports.jsx(ee.Primitive.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:E.composeEventHandlers(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!l.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:E.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:E.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:E.composeEventHandlers(e.onFocus,()=>{p.current||n.onOpen()}),onBlur:E.composeEventHandlers(e.onBlur,n.onClose),onClick:E.composeEventHandlers(e.onClick,n.onClose)})})});G.displayName=A;var S="TooltipPortal",[ce,ue]=O(S,{forceMount:void 0}),z=e=>{const{__scopeTooltip:o,forceMount:t,children:r,container:n}=e,l=_(S,o);return c.jsxRuntimeExports.jsx(ce,{scope:o,forceMount:t,children:c.jsxRuntimeExports.jsx(N.Presence,{present:t||l.open,children:c.jsxRuntimeExports.jsx(Z.Portal,{asChild:!0,container:n,children:r})})})};z.displayName=S;var C="TooltipContent",B=s.forwardRef((e,o)=>{const t=ue(C,e.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...l}=e,a=_(C,e.__scopeTooltip);return c.jsxRuntimeExports.jsx(N.Presence,{present:r||a.open,children:a.disableHoverableContent?c.jsxRuntimeExports.jsx(U,{side:n,...l,ref:o}):c.jsxRuntimeExports.jsx(de,{side:n,...l,ref:o})})}),de=s.forwardRef((e,o)=>{const t=_(C,e.__scopeTooltip),r=k(C,e.__scopeTooltip),n=s.useRef(null),l=M.useComposedRefs(o,n),[a,f]=s.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:x}=r,m=s.useCallback(()=>{f(null),x(!1)},[x]),d=s.useCallback((v,T)=>{const h=v.currentTarget,y={x:v.clientX,y:v.clientY},g=me(y,h.getBoundingClientRect()),b=ve(y,g),j=he(T.getBoundingClientRect()),w=ge([...b,...j]);f(w),x(!0)},[x]);return s.useEffect(()=>()=>m(),[m]),s.useEffect(()=>{if(i&&u){const v=h=>d(h,u),T=h=>d(h,i);return i.addEventListener("pointerleave",v),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",T)}}},[i,u,d,m]),s.useEffect(()=>{if(a){const v=T=>{const h=T.target,y={x:T.clientX,y:T.clientY},g=i?.contains(h)||u?.contains(h),b=!Te(y,a);g?m():b&&(m(),p())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[i,u,a,p,m]),c.jsxRuntimeExports.jsx(U,{...e,ref:l})}),[pe,xe]=O(P,{isInside:!1}),fe=se("TooltipContent"),U=s.forwardRef((e,o)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:l,onPointerDownOutside:a,...f}=e,i=_(C,t),p=D(t),{onClose:u}=i;return s.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),s.useEffect(()=>{if(i.trigger){const x=m=>{m.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[i.trigger,u]),c.jsxRuntimeExports.jsx(J.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:x=>x.preventDefault(),onDismiss:u,children:c.jsxRuntimeExports.jsxs(R.Content,{"data-state":i.stateAttribute,...p,...f,ref:o,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsxRuntimeExports.jsx(fe,{children:r}),c.jsxRuntimeExports.jsx(pe,{scope:t,isInside:!0,children:c.jsxRuntimeExports.jsx(te.Root,{id:i.contentId,role:"tooltip",children:n||r})})]})})});B.displayName=C;var V="TooltipArrow",Y=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=D(t);return xe(V,t).isInside?null:c.jsxRuntimeExports.jsx(R.Arrow,{...n,...r,ref:o})});Y.displayName=V;function me(e,o){const t=Math.abs(o.top-e.y),r=Math.abs(o.bottom-e.y),n=Math.abs(o.right-e.x),l=Math.abs(o.left-e.x);switch(Math.min(t,r,n,l)){case l:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ve(e,o,t=5){const r=[];switch(o){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function he(e){const{top:o,right:t,bottom:r,left:n}=e;return[{x:n,y:o},{x:t,y:o},{x:t,y:r},{x:n,y:r}]}function Te(e,o){const{x:t,y:r}=e;let n=!1;for(let l=0,a=o.length-1;l<o.length;a=l++){const f=o[l],i=o[a],p=f.x,u=f.y,x=i.x,m=i.y;u>r!=m>r&&t<(x-p)*(r-u)/(m-u)+p&&(n=!n)}return n}function ge(e){const o=e.slice();return o.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),ye(o)}function ye(e){if(e.length<=1)return e.slice();const o=[];for(let r=0;r<e.length;r++){const n=e[r];for(;o.length>=2;){const l=o[o.length-1],a=o[o.length-2];if((l.x-a.x)*(n.y-a.y)>=(l.y-a.y)*(n.x-a.x))o.pop();else break}o.push(n)}o.pop();const t=[];for(let r=e.length-1;r>=0;r--){const n=e[r];for(;t.length>=2;){const l=t[t.length-1],a=t[t.length-2];if((l.x-a.x)*(n.y-a.y)>=(l.y-a.y)*(n.x-a.x))t.pop();else break}t.push(n)}return t.pop(),o.length===1&&t.length===1&&o[0].x===t[0].x&&o[0].y===t[0].y?o:o.concat(t)}var Ee=$,Ce=F,Re=G,be=z,je=B,we=Y;function X({delayDuration:e=0,...o}){return c.jsxRuntimeExports.jsx(Ee,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function Pe({...e}){return c.jsxRuntimeExports.jsx(X,{children:c.jsxRuntimeExports.jsx(Ce,{"data-slot":"tooltip",...e})})}function _e({...e}){return c.jsxRuntimeExports.jsx(Re,{"data-slot":"tooltip-trigger",...e})}function Oe({className:e,sideOffset:o=0,children:t,...r}){return c.jsxRuntimeExports.jsx(be,{children:c.jsxRuntimeExports.jsxs(je,{"data-slot":"tooltip-content",sideOffset:o,className:oe.cn("adm:bg-neutrals-800 adm:text-white adm:animate-in adm:fade-in-0 adm:zoom-in-95 adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=closed]:zoom-out-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-fit adm:origin-(--radix-tooltip-content-transform-origin) adm:rounded-md adm:px-3 adm:py-1.5 adm:text-xs adm:text-balance",e),...r,children:[t,c.jsxRuntimeExports.jsx(we,{className:"adm:bg-neutrals-800 adm:fill-neutrals-800 adm:z-50 adm:size-2.5 adm:translate-y-[calc(-50%_-_2px)] adm:rotate-45 adm:rounded-[2px]"})]})})}exports.Tooltip=Pe;exports.TooltipContent=Oe;exports.TooltipProvider=X;exports.TooltipTrigger=_e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),K=require("react"),E=require("./index-BWaO7kQK.cjs"),M=require("./index-_XxjJPRD.cjs"),W=require("./index-cwZN7ZY3.cjs"),J=require("./index-BeWgla7c.cjs"),Q=require("./index-WIv2ndLu.cjs"),R=require("./index-BcGMAmWE.cjs"),Z=require("./index-Dbj9vHNq.cjs"),N=require("./index-Bd0gQB0k.cjs"),ee=require("./index-CocSS1YK.cjs"),te=require("./index-BDs8lUfq.cjs"),oe=require("./index-DoxiiusW.cjs");function re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=re(K);var ne=Symbol("radix.slottable");function se(e){const o=({children:t})=>c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:t});return o.displayName=`${e}.Slottable`,o.__radixId=ne,o}var[O]=W.createContextScope("Tooltip",[R.createPopperScope]),D=R.createPopperScope(),q="TooltipProvider",ie=700,L="tooltip.open",[ae,k]=O(q),$=e=>{const{__scopeTooltip:o,delayDuration:t=ie,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:l}=e,a=s.useRef(!0),f=s.useRef(!1),i=s.useRef(0);return s.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsxRuntimeExports.jsx(ae,{scope:o,isOpenDelayedRef:a,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(i.current),a.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:s.useCallback(p=>{f.current=p},[]),disableHoverableContent:n,children:l})};$.displayName=q;var P="Tooltip",[le,_]=O(P),F=e=>{const{__scopeTooltip:o,children:t,open:r,defaultOpen:n,onOpenChange:l,disableHoverableContent:a,delayDuration:f}=e,i=k(P,e.__scopeTooltip),p=D(o),[u,x]=s.useState(null),m=Q.useId(),d=s.useRef(0),v=a??i.disableHoverableContent,T=f??i.delayDuration,h=s.useRef(!1),[y,g]=E.useControllableState({prop:r,defaultProp:n??!1,onChange:H=>{H?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),l?.(H)},caller:P}),b=s.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),j=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,h.current=!1,g(!0)},[g]),w=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,g(!1)},[g]),I=s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{h.current=!0,g(!0),d.current=0},T)},[T,g]);return s.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),c.jsxRuntimeExports.jsx(R.Root2,{...p,children:c.jsxRuntimeExports.jsx(le,{scope:o,contentId:m,open:y,stateAttribute:b,trigger:u,onTriggerChange:x,onTriggerEnter:s.useCallback(()=>{i.isOpenDelayedRef.current?I():j()},[i.isOpenDelayedRef,I,j]),onTriggerLeave:s.useCallback(()=>{v?w():(window.clearTimeout(d.current),d.current=0)},[w,v]),onOpen:j,onClose:w,disableHoverableContent:v,children:t})})};F.displayName=P;var A="TooltipTrigger",G=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=_(A,t),l=k(A,t),a=D(t),f=s.useRef(null),i=M.useComposedRefs(o,f,n.onTriggerChange),p=s.useRef(!1),u=s.useRef(!1),x=s.useCallback(()=>p.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsxRuntimeExports.jsx(R.Anchor,{asChild:!0,...a,children:c.jsxRuntimeExports.jsx(ee.Primitive.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:E.composeEventHandlers(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!l.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:E.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:E.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:E.composeEventHandlers(e.onFocus,()=>{p.current||n.onOpen()}),onBlur:E.composeEventHandlers(e.onBlur,n.onClose),onClick:E.composeEventHandlers(e.onClick,n.onClose)})})});G.displayName=A;var S="TooltipPortal",[ce,ue]=O(S,{forceMount:void 0}),z=e=>{const{__scopeTooltip:o,forceMount:t,children:r,container:n}=e,l=_(S,o);return c.jsxRuntimeExports.jsx(ce,{scope:o,forceMount:t,children:c.jsxRuntimeExports.jsx(N.Presence,{present:t||l.open,children:c.jsxRuntimeExports.jsx(Z.Portal,{asChild:!0,container:n,children:r})})})};z.displayName=S;var C="TooltipContent",B=s.forwardRef((e,o)=>{const t=ue(C,e.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...l}=e,a=_(C,e.__scopeTooltip);return c.jsxRuntimeExports.jsx(N.Presence,{present:r||a.open,children:a.disableHoverableContent?c.jsxRuntimeExports.jsx(U,{side:n,...l,ref:o}):c.jsxRuntimeExports.jsx(de,{side:n,...l,ref:o})})}),de=s.forwardRef((e,o)=>{const t=_(C,e.__scopeTooltip),r=k(C,e.__scopeTooltip),n=s.useRef(null),l=M.useComposedRefs(o,n),[a,f]=s.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:x}=r,m=s.useCallback(()=>{f(null),x(!1)},[x]),d=s.useCallback((v,T)=>{const h=v.currentTarget,y={x:v.clientX,y:v.clientY},g=me(y,h.getBoundingClientRect()),b=ve(y,g),j=he(T.getBoundingClientRect()),w=ge([...b,...j]);f(w),x(!0)},[x]);return s.useEffect(()=>()=>m(),[m]),s.useEffect(()=>{if(i&&u){const v=h=>d(h,u),T=h=>d(h,i);return i.addEventListener("pointerleave",v),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",T)}}},[i,u,d,m]),s.useEffect(()=>{if(a){const v=T=>{const h=T.target,y={x:T.clientX,y:T.clientY},g=i?.contains(h)||u?.contains(h),b=!Te(y,a);g?m():b&&(m(),p())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[i,u,a,p,m]),c.jsxRuntimeExports.jsx(U,{...e,ref:l})}),[pe,xe]=O(P,{isInside:!1}),fe=se("TooltipContent"),U=s.forwardRef((e,o)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:l,onPointerDownOutside:a,...f}=e,i=_(C,t),p=D(t),{onClose:u}=i;return s.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),s.useEffect(()=>{if(i.trigger){const x=m=>{m.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[i.trigger,u]),c.jsxRuntimeExports.jsx(J.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:x=>x.preventDefault(),onDismiss:u,children:c.jsxRuntimeExports.jsxs(R.Content,{"data-state":i.stateAttribute,...p,...f,ref:o,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsxRuntimeExports.jsx(fe,{children:r}),c.jsxRuntimeExports.jsx(pe,{scope:t,isInside:!0,children:c.jsxRuntimeExports.jsx(te.Root,{id:i.contentId,role:"tooltip",children:n||r})})]})})});B.displayName=C;var V="TooltipArrow",Y=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=D(t);return xe(V,t).isInside?null:c.jsxRuntimeExports.jsx(R.Arrow,{...n,...r,ref:o})});Y.displayName=V;function me(e,o){const t=Math.abs(o.top-e.y),r=Math.abs(o.bottom-e.y),n=Math.abs(o.right-e.x),l=Math.abs(o.left-e.x);switch(Math.min(t,r,n,l)){case l:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ve(e,o,t=5){const r=[];switch(o){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function he(e){const{top:o,right:t,bottom:r,left:n}=e;return[{x:n,y:o},{x:t,y:o},{x:t,y:r},{x:n,y:r}]}function Te(e,o){const{x:t,y:r}=e;let n=!1;for(let l=0,a=o.length-1;l<o.length;a=l++){const f=o[l],i=o[a],p=f.x,u=f.y,x=i.x,m=i.y;u>r!=m>r&&t<(x-p)*(r-u)/(m-u)+p&&(n=!n)}return n}function ge(e){const o=e.slice();return o.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),ye(o)}function ye(e){if(e.length<=1)return e.slice();const o=[];for(let r=0;r<e.length;r++){const n=e[r];for(;o.length>=2;){const l=o[o.length-1],a=o[o.length-2];if((l.x-a.x)*(n.y-a.y)>=(l.y-a.y)*(n.x-a.x))o.pop();else break}o.push(n)}o.pop();const t=[];for(let r=e.length-1;r>=0;r--){const n=e[r];for(;t.length>=2;){const l=t[t.length-1],a=t[t.length-2];if((l.x-a.x)*(n.y-a.y)>=(l.y-a.y)*(n.x-a.x))t.pop();else break}t.push(n)}return t.pop(),o.length===1&&t.length===1&&o[0].x===t[0].x&&o[0].y===t[0].y?o:o.concat(t)}var Ee=$,Ce=F,Re=G,be=z,je=B,we=Y;function X({delayDuration:e=0,...o}){return c.jsxRuntimeExports.jsx(Ee,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function Pe({...e}){return c.jsxRuntimeExports.jsx(X,{children:c.jsxRuntimeExports.jsx(Ce,{"data-slot":"tooltip",...e})})}function _e({...e}){return c.jsxRuntimeExports.jsx(Re,{"data-slot":"tooltip-trigger",...e})}function Oe({className:e,sideOffset:o=0,children:t,...r}){return c.jsxRuntimeExports.jsx(be,{children:c.jsxRuntimeExports.jsxs(je,{"data-slot":"tooltip-content",sideOffset:o,className:oe.cn(`
|
|
2
|
+
adm:z-50 adm:w-fit
|
|
3
|
+
adm:origin-(--radix-tooltip-content-transform-origin) adm:animate-in
|
|
4
|
+
adm:rounded-md adm:bg-neutrals-800 adm:px-3 adm:py-1.5 adm:text-xs
|
|
5
|
+
adm:text-balance adm:text-white adm:fade-in-0 adm:zoom-in-95
|
|
6
|
+
adm:data-[side=bottom]:slide-in-from-top-2
|
|
7
|
+
adm:data-[side=left]:slide-in-from-right-2
|
|
8
|
+
adm:data-[side=right]:slide-in-from-left-2
|
|
9
|
+
adm:data-[side=top]:slide-in-from-bottom-2
|
|
10
|
+
adm:data-[state=closed]:animate-out
|
|
11
|
+
adm:data-[state=closed]:fade-out-0
|
|
12
|
+
adm:data-[state=closed]:zoom-out-95
|
|
13
|
+
`,e),...r,children:[t,c.jsxRuntimeExports.jsx(we,{className:`
|
|
14
|
+
adm:z-50 adm:size-2.5 adm:translate-y-[calc(-50%_-_2px)] adm:rotate-45
|
|
15
|
+
adm:rounded-[2px] adm:bg-neutrals-800 adm:fill-neutrals-800
|
|
16
|
+
`})]})})}exports.Tooltip=Pe;exports.TooltipContent=Oe;exports.TooltipProvider=X;exports.TooltipTrigger=_e;
|