@gv-tech/ui-web 2.29.1 → 2.29.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.
- package/dist/accordion-Bd0-CZQn.js +1 -0
- package/dist/{accordion-D5QXSsCK.mjs → accordion-Cf6DNbLH.mjs} +47 -51
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +1 -2
- package/dist/{alert-dialog-B-a0Wa1M.mjs → alert-dialog-BxFH0Lwn.mjs} +43 -45
- package/dist/alert-dialog-C6vNmGBL.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +1 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/{aspect-ratio-s7Ji1MSr.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
- package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +1 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +3 -4
- package/dist/{avatar-d8Di248f.mjs → avatar-B5PWwGhY.mjs} +50 -52
- package/dist/avatar-CFhYRM52.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +1 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -6
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +3 -4
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +3 -4
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +4 -5
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +3 -4
- package/dist/calendar-D5qgt2o2.js +1 -0
- package/dist/{calendar-UW8h9dfh.mjs → calendar-DIqXNjOR.mjs} +687 -840
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel-D-xEqRCX.js +1 -0
- package/dist/{carousel-DG9xGJns.mjs → carousel-DPjWmM_A.mjs} +13 -15
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/{checkbox-Dq8VHKDH.mjs → checkbox-DEPm1BBc.mjs} +36 -38
- package/dist/checkbox-DI9Hn_e_.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +1 -2
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
- package/dist/{chunk-HBS6WEDP-aK8IuEX9.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +2 -3
- package/dist/{combobox-b4OmCNw1.mjs → combobox-C4y8AbZX.mjs} +348 -591
- package/dist/combobox-boXp-mix.js +3 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +1 -2
- package/dist/command-BnW6UIVk.js +1 -0
- package/dist/{command-5hobOyGG.mjs → command-Cbsp7PBx.mjs} +121 -124
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +1 -2
- package/dist/context-menu-CwsdFpx1.js +1 -0
- package/dist/{context-menu-DzzU-_v8.mjs → context-menu-FNgV55ZV.mjs} +117 -119
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +1 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +3 -4
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +2 -3
- package/dist/{dist-Bb5W_J2F.mjs → dist-7YyzJonC.mjs} +4 -4
- package/dist/{dist-BPL7gUpg.mjs → dist-AlmToDtO.mjs} +2 -3
- package/dist/{dist-BB78QQyQ.mjs → dist-B76UOZbx.mjs} +1 -2
- package/dist/{dist-BEbV0Hal.mjs → dist-B7Ph9-T6.mjs} +2 -3
- package/dist/dist-B7jnFMko.js +1 -0
- package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
- package/dist/dist-BQkDLAY7.js +1 -0
- package/dist/dist-Bal96K8t.js +1 -0
- package/dist/dist-Blgp9lfa.js +1 -0
- package/dist/{dist-CpKLY_uZ.mjs → dist-BnlI08Je.mjs} +4 -4
- package/dist/{dist-BexAB6yo.mjs → dist-Bu-uFV1C.mjs} +33 -34
- package/dist/{dist-OqDzLHTa.mjs → dist-C2BHd5i1.mjs} +31 -31
- package/dist/{dist-Dq-h6VAy.mjs → dist-C516Vwxy.mjs} +4 -6
- package/dist/dist-CBlqVBTk.js +1 -0
- package/dist/dist-CDcZ8WMF.js +1 -0
- package/dist/{dist-E8ieJTBC.mjs → dist-CDksSmTD.mjs} +5 -6
- package/dist/dist-CF-qVmmV.js +1 -0
- package/dist/dist-CIgGRTmJ.js +1 -0
- package/dist/dist-CJqVmdrU.js +1 -0
- package/dist/{dist-CPAF050o.mjs → dist-COqM3IM6.mjs} +3 -4
- package/dist/{dist-s7ibhASj.mjs → dist-CbWpCWog.mjs} +12 -13
- package/dist/{dist-DI1vapnL.mjs → dist-CcGLWbPa.mjs} +3 -4
- package/dist/{dist-Dt6m-kwU.mjs → dist-Cn4F8XlY.mjs} +50 -51
- package/dist/dist-CoTs6T03.js +1 -0
- package/dist/dist-Co_xSt6d.js +1 -0
- package/dist/{dist-UkWa-Arh.mjs → dist-Cu0GG-3j.mjs} +2 -3
- package/dist/{dist-Bvfb4y_L.mjs → dist-DKI-XYwI.mjs} +3 -5
- package/dist/{dist-DatgTWLz.mjs → dist-DQeXXRYL.mjs} +81 -82
- package/dist/dist-DW2ltK5-.js +1 -0
- package/dist/dist-DWcKY_sJ.js +1 -0
- package/dist/dist-DdAeWIwf.js +1 -0
- package/dist/dist-DhubV_gU.mjs +4 -0
- package/dist/dist-DmY7elIQ.js +1 -0
- package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
- package/dist/dist-DuQlxGyN.js +1 -0
- package/dist/dist-KFF7QKuL.js +1 -0
- package/dist/dist-RXrZgzkO.js +1 -0
- package/dist/dist-R_G5UQRm.js +1 -0
- package/dist/{dist-BbI6NHqR.mjs → dist-dwRwxUPt.mjs} +1 -2
- package/dist/dist-fzmUl3YX.mjs +553 -0
- package/dist/{dist-vu20fMUK.mjs → dist-hBsne-A2.mjs} +22 -23
- package/dist/{dist-B057I8ju.mjs → dist-ljiGYyay.mjs} +2 -3
- package/dist/dist-pqMcQ1Nk.js +1 -0
- package/dist/dist-zmnQp5Xf.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu-ChuqZeix.js +1 -0
- package/dist/{dropdown-menu-BqAhn64y.mjs → dropdown-menu-DU7KNoXP.mjs} +75 -77
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +1 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/{es2015-DbsmTzuc.mjs → es2015-BooeZGhO.mjs} +94 -111
- package/dist/es2015-Dggv0vx3.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +4 -5
- package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
- package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +19 -20
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card-BeqCs_2R.js +1 -0
- package/dist/{hover-card-DMsxpR9G.mjs → hover-card-w8PmCyw2.mjs} +62 -64
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +2 -3
- package/dist/{input-otp-D49Y9VcH.mjs → input-otp-Bn_Uy1mR.mjs} +6 -17
- package/dist/input-otp-CTRB_0Xp.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +1 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +4 -5
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/{label-DsSICLPc.mjs → label-Da0kELfR.mjs} +4 -6
- package/dist/label-JMa1tFfC.js +1 -0
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +1 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +3 -4
- package/dist/{menubar-DZqEj6S1.mjs → menubar-B7sRxpE4.mjs} +179 -181
- package/dist/menubar-Bd-QKMcw.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +1 -2
- package/dist/{message-scroller-CS4t7Ypn.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
- package/dist/message-scroller-BJb4Mh_I.js +1 -0
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +1 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/{navigation-menu-RO6thDOF.mjs → navigation-menu-B-RwfscB.mjs} +161 -159
- package/dist/navigation-menu-kPwxYZCR.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +1 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +2 -3
- package/dist/popover-Cq5cTNtC.js +1 -0
- package/dist/{popover-DSBkc70V.mjs → popover-T6Ra737i.mjs} +79 -81
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +1 -2
- package/dist/{progress-CQ4nQ85t.mjs → progress-e9YzxvRo.mjs} +11 -13
- package/dist/progress-iUSEI7J9.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +1 -2
- package/dist/{questionnaire-CVED7G7R.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
- package/dist/questionnaire-CcymIPae.js +1 -0
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +1 -2
- package/dist/{radio-group-TRiAhMZB.mjs → radio-group-BKpiDcIb.mjs} +58 -60
- package/dist/radio-group-DPEzCmxe.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-ByF0NmN9.mjs +2153 -0
- package/dist/resizable-oL3v42zT.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -2
- package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/{scroll-area-D6MiNHnJ.mjs → scroll-area-BzNeOQ6C.mjs} +109 -105
- package/dist/scroll-area-s4_ZJK59.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +1 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/{select-BFJUmjvX.mjs → select-B_nRxX2Y.mjs} +280 -279
- package/dist/select-j5_dph9S.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +1 -2
- package/dist/separator-Bn-3XUSJ.js +1 -0
- package/dist/{separator-2kr96SyF.mjs → separator-CCcMNS78.mjs} +4 -6
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +1 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +3 -4
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-C2ax_A0G.mjs} +47 -49
- package/dist/sidebar-Cnem2n5A.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +1 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/{slider-CdTCoQu1.mjs → slider-B2PUTc7W.mjs} +103 -104
- package/dist/slider-wZuXwuib.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +1 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch-CD675xU7.js +1 -0
- package/dist/{switch-zUBdj7jK.mjs → switch-ikzIzrme.mjs} +29 -31
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +1 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/{tabs-DaE9pEbo.mjs → tabs-DCm5zOYB.mjs} +45 -47
- package/dist/tabs-fcahDQDp.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +1 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-DKh8WFLT.js → theme-toggle-BGTJsIA-.js} +1 -1
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-BSMwXb8o.mjs} +13 -15
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast-C31v9P1K.js +1 -0
- package/dist/{toast-D0Yb-K84.mjs → toast-vU5ISM03.mjs} +181 -181
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +1 -2
- package/dist/toaster-CaJyOCyC.js +1 -0
- package/dist/{toaster-gT2b7mfE.mjs → toaster-D2BV6jez.mjs} +3 -5
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -2
- package/dist/toggle-CSZdCCwX.js +1 -0
- package/dist/{toggle-BAeKd2N0.mjs → toggle-Cv9YYwLI.mjs} +8 -9
- package/dist/toggle-group-RT8wyBwK.js +1 -0
- package/dist/{toggle-group-CEKhUozD.mjs → toggle-group-qvjasXS-.mjs} +44 -45
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +1 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +1 -2
- package/dist/{tooltip-R_nK_Qh5.mjs → tooltip-7ERoN5mV.mjs} +97 -101
- package/dist/tooltip-CC9_spXT.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +1 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-Co_xSt6d.js"),i=require("./dist-CJqVmdrU.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-zmnQp5Xf.js"),s=require("./dist-CBlqVBTk.js"),c=require("./dist-DWcKY_sJ.js"),l=require("./dist-RXrZgzkO.js"),u=require("./dist-DdAeWIwf.js");let d=require("lucide-react"),f=require("react"),p=e.r(f,1);f=e.r(f);let m=require("react/jsx-runtime");var h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_={Single:`single`,Multiple:`multiple`},v={Vertical:`vertical`,Horizontal:`horizontal`},y={LTR:`ltr`,RTL:`rtl`},b=`Accordion`,x=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[S,{useGetCollection:C,createCollectionScope:w}]=r.n(b),[T,E]=n.t(b,[w,c.i]),D=c.i(),O=p.forwardRef(g(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,m.jsx)(S.Provider,{scope:e.__scopeAccordion,children:n===_.Multiple?(0,m.jsx)(P,{...a,ref:t}):(0,m.jsx)(N,{...i,ref:t})})},`Accordion`)),[k,A]=T(b),[j,M]=T(b,{collapsible:!1}),N=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),collapsible:a=!1,...s}=e,[c,l]=o.t({prop:n,defaultProp:r??``,onChange:i,caller:b});return(0,m.jsx)(k,{scope:e.__scopeAccordion,value:p.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:p.useCallback(()=>a&&l(``),[a,l]),children:(0,m.jsx)(j,{scope:e.__scopeAccordion,collapsible:a,children:(0,m.jsx)(L,{...s,ref:t})})})},`AccordionImplSingle`)),P=p.forwardRef(g(function(e,t){let{value:n,defaultValue:r,onValueChange:i=g(()=>{},`onValueChange`),...a}=e,[s,c]=o.t({prop:n,defaultProp:r??[],onChange:i,caller:b}),l=p.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=p.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,m.jsx)(k,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:(0,m.jsx)(j,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(L,{...a,ref:t})})})},`AccordionImplMultiple`)),[F,I]=T(b),L=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,disabled:r,dir:o,orientation:c=v.Vertical,...l}=e,d=p.useRef(null),f=i.a(d,t),h=C(n),_=u.n(o)===y.LTR,b=a.t(e.onKeyDown,e=>{if(!x.includes(e.key))return;let t=h(),n=e.target,r=t.filter(([,e])=>!e.element.disabled),i=r.findIndex(([,e])=>e.element===n),a=r.size;if(i===-1)return;e.preventDefault();let o=i,s=a-1,l=g(()=>{o=i+1,o>s&&(o=0)},`moveNext`),u=g(()=>{o=i-1,o<0&&(o=s)},`movePrev`);switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:c===v.Horizontal&&(_?l():u());break;case`ArrowDown`:c===v.Vertical&&l();break;case`ArrowLeft`:c===v.Horizontal&&(_?u():l());break;case`ArrowUp`:c===v.Vertical&&u()}let d=o%a;r.at(d)?.element.focus()});return(0,m.jsx)(F,{scope:n,disabled:r,direction:o,orientation:c,children:(0,m.jsx)(S.Slot,{scope:n,children:(0,m.jsx)(s.t.div,{...l,"data-orientation":c,ref:f,onKeyDown:r?void 0:b})})})},`AccordionImpl`)),R=`AccordionItem`,[z,B]=T(R),V=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=I(R,n),o=A(R,n),s=D(n),u=l.t(),d=r&&o.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,m.jsx)(z,{scope:n,open:d,disabled:f,triggerId:u,children:(0,m.jsx)(c.t,{"data-orientation":a.orientation,"data-state":J(d),...s,...i,ref:t,disabled:f,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),H=`AccordionHeader`,U=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(H,n);return(0,m.jsx)(s.t.h3,{"data-orientation":i.orientation,"data-state":J(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),W=`AccordionTrigger`,G=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(W,n),o=M(W,n),s=D(n);return(0,m.jsx)(S.ItemSlot,{scope:n,children:(0,m.jsx)(c.r,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),K=`AccordionContent`,q=p.forwardRef(g(function(e,t){let{__scopeAccordion:n,...r}=e,i=I(b,n),a=B(K,n),o=D(n);return(0,m.jsx)(c.n,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function J(e){return e?`open`:`closed`}g(J,`getState`);function Y({className:e,...n}){return(0,m.jsx)(O,{"data-slot":`accordion`,className:t.t(`flex w-full flex-col`,e),...n})}function X({className:e,...n}){return(0,m.jsx)(V,{"data-slot":`accordion-item`,className:t.t(`not-last:border-b`,e),...n})}function Z({className:e,children:n,...r}){return(0,m.jsx)(U,{className:`flex`,children:(0,m.jsxs)(G,{"data-slot":`accordion-trigger`,className:t.t(`group/accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-start text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-3 disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-4`,e),...r,children:[n,(0,m.jsx)(d.ChevronDownIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,m.jsx)(d.ChevronUpIcon,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function Q({className:e,children:n,...r}){return(0,m.jsx)(q,{"data-slot":`accordion-content`,className:`data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden text-sm`,...r,children:(0,m.jsx)(`div`,{className:t.t(`[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,e),children:n})})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Y}});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "./dist-
|
|
7
|
-
import { t as o } from "./dist-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as f } from "./dist-
|
|
1
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
+
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
+
import { n } from "./dist-C2BHd5i1.mjs";
|
|
4
|
+
import { a as r } from "./dist-C516Vwxy.mjs";
|
|
5
|
+
import { t as i } from "./dist-B76UOZbx.mjs";
|
|
6
|
+
import { t as a } from "./dist-DKI-XYwI.mjs";
|
|
7
|
+
import { t as o } from "./dist-B7Ph9-T6.mjs";
|
|
8
|
+
import { i as s, n as c, r as l, t as u } from "./dist-hBsne-A2.mjs";
|
|
9
|
+
import { t as d } from "./dist-Cu0GG-3j.mjs";
|
|
10
|
+
import { n as f } from "./dist-dwRwxUPt.mjs";
|
|
11
11
|
import { ChevronDownIcon as p, ChevronUpIcon as m } from "lucide-react";
|
|
12
12
|
import * as h from "react";
|
|
13
13
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
-
|
|
14
|
+
// ../../node_modules/.bun/@radix-ui+react-accordion@1.3.1+2b23df507bdda662/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
15
15
|
var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
16
16
|
value: t,
|
|
17
17
|
configurable: !0
|
|
@@ -31,7 +31,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
31
31
|
"ArrowUp",
|
|
32
32
|
"ArrowLeft",
|
|
33
33
|
"ArrowRight"
|
|
34
|
-
], [T, { useGetCollection: E, createCollectionScope: D }] =
|
|
34
|
+
], [T, { useGetCollection: E, createCollectionScope: D }] = n(C), [O, ee] = t(C, [D, s]), k = s(), A = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
35
35
|
let { type: n, ...r } = e, i = r, a = r;
|
|
36
36
|
return /* @__PURE__ */ g(T.Provider, {
|
|
37
37
|
scope: e.__scopeAccordion,
|
|
@@ -44,7 +44,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
46
|
}, "Accordion")), [j, M] = O(C), [N, P] = O(C, { collapsible: !1 }), F = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
47
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), collapsible:
|
|
47
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), collapsible: o = !1, ...s } = e, [c, l] = a({
|
|
48
48
|
prop: n,
|
|
49
49
|
defaultProp: r ?? "",
|
|
50
50
|
onChange: i,
|
|
@@ -54,10 +54,10 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
54
54
|
scope: e.__scopeAccordion,
|
|
55
55
|
value: h.useMemo(() => c ? [c] : [], [c]),
|
|
56
56
|
onItemOpen: l,
|
|
57
|
-
onItemClose: h.useCallback(() =>
|
|
57
|
+
onItemClose: h.useCallback(() => o && l(""), [o, l]),
|
|
58
58
|
children: /* @__PURE__ */ g(N, {
|
|
59
59
|
scope: e.__scopeAccordion,
|
|
60
|
-
collapsible:
|
|
60
|
+
collapsible: o,
|
|
61
61
|
children: /* @__PURE__ */ g(z, {
|
|
62
62
|
...s,
|
|
63
63
|
ref: t
|
|
@@ -65,7 +65,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
67
|
}, "AccordionImplSingle")), I = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
68
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), ...
|
|
68
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ y(() => {}, "onValueChange"), ...o } = e, [s, c] = a({
|
|
69
69
|
prop: n,
|
|
70
70
|
defaultProp: r ?? [],
|
|
71
71
|
onChange: i,
|
|
@@ -80,15 +80,15 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
80
80
|
scope: e.__scopeAccordion,
|
|
81
81
|
collapsible: !0,
|
|
82
82
|
children: /* @__PURE__ */ g(z, {
|
|
83
|
-
...
|
|
83
|
+
...o,
|
|
84
84
|
ref: t
|
|
85
85
|
})
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
}, "AccordionImplMultiple")), [L, R] = O(C), z = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e,
|
|
89
|
-
let { __scopeAccordion:
|
|
88
|
+
}, "AccordionImplMultiple")), [L, R] = O(C), z = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
89
|
+
let { __scopeAccordion: n, disabled: a, dir: s, orientation: c = x.Vertical, ...l } = e, u = h.useRef(null), d = r(u, t), p = E(n), m = f(s) === S.LTR, _ = i(e.onKeyDown, (e) => {
|
|
90
90
|
if (!w.includes(e.key)) return;
|
|
91
|
-
let t =
|
|
91
|
+
let t = p(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), a = r.size;
|
|
92
92
|
if (i === -1) return;
|
|
93
93
|
e.preventDefault();
|
|
94
94
|
let o = i, s = a - 1, l = /* @__PURE__ */ y(() => {
|
|
@@ -104,70 +104,68 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
104
104
|
o = s;
|
|
105
105
|
break;
|
|
106
106
|
case "ArrowRight":
|
|
107
|
-
c === x.Horizontal && (
|
|
107
|
+
c === x.Horizontal && (m ? l() : u());
|
|
108
108
|
break;
|
|
109
109
|
case "ArrowDown":
|
|
110
110
|
c === x.Vertical && l();
|
|
111
111
|
break;
|
|
112
112
|
case "ArrowLeft":
|
|
113
|
-
c === x.Horizontal && (
|
|
114
|
-
break;
|
|
115
|
-
case "ArrowUp":
|
|
116
|
-
c === x.Vertical && u();
|
|
113
|
+
c === x.Horizontal && (m ? u() : l());
|
|
117
114
|
break;
|
|
115
|
+
case "ArrowUp": c === x.Vertical && u();
|
|
118
116
|
}
|
|
119
|
-
let
|
|
120
|
-
r.at(
|
|
117
|
+
let d = o % a;
|
|
118
|
+
r.at(d)?.element.focus();
|
|
121
119
|
});
|
|
122
120
|
return /* @__PURE__ */ g(L, {
|
|
123
|
-
scope:
|
|
124
|
-
disabled:
|
|
121
|
+
scope: n,
|
|
122
|
+
disabled: a,
|
|
125
123
|
direction: s,
|
|
126
124
|
orientation: c,
|
|
127
125
|
children: /* @__PURE__ */ g(T.Slot, {
|
|
128
|
-
scope:
|
|
129
|
-
children: /* @__PURE__ */ g(
|
|
126
|
+
scope: n,
|
|
127
|
+
children: /* @__PURE__ */ g(o.div, {
|
|
130
128
|
...l,
|
|
131
129
|
"data-orientation": c,
|
|
132
|
-
ref:
|
|
133
|
-
onKeyDown:
|
|
130
|
+
ref: d,
|
|
131
|
+
onKeyDown: a ? void 0 : _
|
|
134
132
|
})
|
|
135
133
|
})
|
|
136
134
|
});
|
|
137
135
|
}, "AccordionImpl")), B = "AccordionItem", [V, H] = O(B), U = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
138
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = R(B, n), o = M(B, n),
|
|
136
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = R(B, n), o = M(B, n), s = k(n), c = d(), l = r && o.value.includes(r) || !1, f = a.disabled || e.disabled;
|
|
139
137
|
return /* @__PURE__ */ g(V, {
|
|
140
138
|
scope: n,
|
|
141
|
-
open:
|
|
139
|
+
open: l,
|
|
142
140
|
disabled: f,
|
|
143
|
-
triggerId:
|
|
144
|
-
children: /* @__PURE__ */ g(
|
|
141
|
+
triggerId: c,
|
|
142
|
+
children: /* @__PURE__ */ g(u, {
|
|
145
143
|
"data-orientation": a.orientation,
|
|
146
|
-
"data-state": X(
|
|
147
|
-
...
|
|
144
|
+
"data-state": X(l),
|
|
145
|
+
...s,
|
|
148
146
|
...i,
|
|
149
147
|
ref: t,
|
|
150
148
|
disabled: f,
|
|
151
|
-
open:
|
|
149
|
+
open: l,
|
|
152
150
|
onOpenChange: (e) => {
|
|
153
151
|
e ? o.onItemOpen(r) : o.onItemClose(r);
|
|
154
152
|
}
|
|
155
153
|
})
|
|
156
154
|
});
|
|
157
155
|
}, "AccordionItem")), W = "AccordionHeader", G = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
158
|
-
let { __scopeAccordion:
|
|
159
|
-
return /* @__PURE__ */ g(
|
|
160
|
-
"data-orientation":
|
|
161
|
-
"data-state": X(
|
|
162
|
-
"data-disabled":
|
|
163
|
-
...
|
|
156
|
+
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(W, n);
|
|
157
|
+
return /* @__PURE__ */ g(o.h3, {
|
|
158
|
+
"data-orientation": i.orientation,
|
|
159
|
+
"data-state": X(a.open),
|
|
160
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
161
|
+
...r,
|
|
164
162
|
ref: t
|
|
165
163
|
});
|
|
166
164
|
}, "AccordionHeader")), K = "AccordionTrigger", q = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
167
165
|
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(K, n), o = P(K, n), s = k(n);
|
|
168
166
|
return /* @__PURE__ */ g(T.ItemSlot, {
|
|
169
167
|
scope: n,
|
|
170
|
-
children: /* @__PURE__ */ g(
|
|
168
|
+
children: /* @__PURE__ */ g(l, {
|
|
171
169
|
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
172
170
|
"data-orientation": i.orientation,
|
|
173
171
|
id: a.triggerId,
|
|
@@ -178,7 +176,7 @@ var v = Object.defineProperty, y = (e, t) => v(e, "name", {
|
|
|
178
176
|
});
|
|
179
177
|
}, "AccordionTrigger")), J = "AccordionContent", Y = /* @__PURE__ */ h.forwardRef(/* @__PURE__ */ y(function(e, t) {
|
|
180
178
|
let { __scopeAccordion: n, ...r } = e, i = R(C, n), a = H(J, n), o = k(n);
|
|
181
|
-
return /* @__PURE__ */ g(
|
|
179
|
+
return /* @__PURE__ */ g(c, {
|
|
182
180
|
role: "region",
|
|
183
181
|
"aria-labelledby": a.triggerId,
|
|
184
182
|
"data-orientation": i.orientation,
|
|
@@ -196,8 +194,7 @@ function X(e) {
|
|
|
196
194
|
return e ? "open" : "closed";
|
|
197
195
|
}
|
|
198
196
|
y(X, "getState");
|
|
199
|
-
|
|
200
|
-
//#region src/accordion.tsx
|
|
197
|
+
// src/accordion.tsx
|
|
201
198
|
function Z({ className: t, ...n }) {
|
|
202
199
|
return /* @__PURE__ */ g(A, {
|
|
203
200
|
"data-slot": "accordion",
|
|
@@ -244,5 +241,4 @@ function te({ className: t, children: n, ...r }) {
|
|
|
244
241
|
})
|
|
245
242
|
});
|
|
246
243
|
}
|
|
247
|
-
//#endregion
|
|
248
244
|
export { $ as i, te as n, Q as r, Z as t };
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./accordion-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./accordion-Bd0-CZQn.js");exports.Accordion=e.t,exports.AccordionContent=e.n,exports.AccordionItem=e.r,exports.AccordionTrigger=e.i;
|
package/dist/accordion.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
export { r as Accordion, t as AccordionContent, n as AccordionItem, e as AccordionTrigger };
|
|
2
|
+
export { t as Accordion, n as AccordionContent, r as AccordionItem, i as AccordionTrigger } from "./accordion-Cf6DNbLH.mjs";
|
|
@@ -1,91 +1,90 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
+
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
+
import { a as n } from "./dist-C516Vwxy.mjs";
|
|
4
|
+
import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d } from "./dist-DQeXXRYL.mjs";
|
|
5
|
+
import { t as f } from "./dist-B76UOZbx.mjs";
|
|
6
6
|
import { Button as p } from "./button.mjs";
|
|
7
7
|
import * as m from "react";
|
|
8
8
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.2.1+2b23df507bdda662/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
10
10
|
var _ = Object.defineProperty, v = (e, t) => _(e, "name", {
|
|
11
11
|
value: t,
|
|
12
12
|
configurable: !0
|
|
13
|
-
}), [y, b] =
|
|
14
|
-
let { __scopeAlertDialog: t, ...n } = e;
|
|
15
|
-
return /* @__PURE__ */ h(
|
|
16
|
-
...
|
|
13
|
+
}), [y, b] = t("AlertDialog", [o]), x = o(), S = /* @__PURE__ */ v((e) => {
|
|
14
|
+
let { __scopeAlertDialog: t, ...n } = e, r = x(t);
|
|
15
|
+
return /* @__PURE__ */ h(d, {
|
|
16
|
+
...r,
|
|
17
17
|
...n,
|
|
18
18
|
modal: !0
|
|
19
19
|
});
|
|
20
20
|
}, "AlertDialog"), C = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
21
|
-
let { __scopeAlertDialog: n, ...r } = e;
|
|
22
|
-
return /* @__PURE__ */ h(
|
|
23
|
-
...
|
|
21
|
+
let { __scopeAlertDialog: n, ...r } = e, a = x(n);
|
|
22
|
+
return /* @__PURE__ */ h(i, {
|
|
23
|
+
...a,
|
|
24
24
|
...r,
|
|
25
25
|
ref: t
|
|
26
26
|
});
|
|
27
27
|
}, "AlertDialogTrigger")), w = /* @__PURE__ */ v((e) => {
|
|
28
|
-
let { __scopeAlertDialog: t, ...n } = e;
|
|
29
|
-
return /* @__PURE__ */ h(
|
|
30
|
-
...
|
|
28
|
+
let { __scopeAlertDialog: t, ...n } = e, r = x(t);
|
|
29
|
+
return /* @__PURE__ */ h(c, {
|
|
30
|
+
...r,
|
|
31
31
|
...n
|
|
32
32
|
});
|
|
33
33
|
}, "AlertDialogPortal"), T = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
34
|
-
let { __scopeAlertDialog: n, ...
|
|
35
|
-
return /* @__PURE__ */ h(
|
|
36
|
-
...
|
|
37
|
-
...
|
|
34
|
+
let { __scopeAlertDialog: n, ...i } = e, a = x(n);
|
|
35
|
+
return /* @__PURE__ */ h(r, {
|
|
36
|
+
...a,
|
|
37
|
+
...i,
|
|
38
38
|
ref: t
|
|
39
39
|
});
|
|
40
|
-
}, "AlertDialogOverlay")), [E, D] = y("AlertDialogContent"), O = m.forwardRef(/* @__PURE__ */ v(function(e,
|
|
41
|
-
let { __scopeAlertDialog:
|
|
40
|
+
}, "AlertDialogOverlay")), [E, D] = y("AlertDialogContent"), O = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
41
|
+
let { __scopeAlertDialog: r, children: i, ...a } = e, o = x(r), s = m.useRef(null), c = n(t, s), u = m.useRef(null);
|
|
42
42
|
return /* @__PURE__ */ h(E, {
|
|
43
|
-
scope:
|
|
44
|
-
cancelRef:
|
|
45
|
-
children: /* @__PURE__ */ h(
|
|
43
|
+
scope: r,
|
|
44
|
+
cancelRef: u,
|
|
45
|
+
children: /* @__PURE__ */ h(l, {
|
|
46
46
|
role: "alertdialog",
|
|
47
|
-
...s,
|
|
48
47
|
...o,
|
|
48
|
+
...a,
|
|
49
49
|
ref: c,
|
|
50
|
-
onOpenAutoFocus:
|
|
51
|
-
e.preventDefault(),
|
|
50
|
+
onOpenAutoFocus: f(a.onOpenAutoFocus, (e) => {
|
|
51
|
+
e.preventDefault(), u.current?.focus({ preventScroll: !0 });
|
|
52
52
|
}),
|
|
53
53
|
onPointerDownOutside: (e) => e.preventDefault(),
|
|
54
54
|
onInteractOutside: (e) => e.preventDefault(),
|
|
55
|
-
children:
|
|
55
|
+
children: i
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
}, "AlertDialogContent")), k = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
59
|
-
let { __scopeAlertDialog: n, ...r } = e;
|
|
60
|
-
return /* @__PURE__ */ h(
|
|
61
|
-
...
|
|
59
|
+
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
60
|
+
return /* @__PURE__ */ h(u, {
|
|
61
|
+
...i,
|
|
62
62
|
...r,
|
|
63
63
|
ref: t
|
|
64
64
|
});
|
|
65
65
|
}, "AlertDialogTitle")), A = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
66
|
-
let { __scopeAlertDialog: n, ...r } = e;
|
|
67
|
-
return /* @__PURE__ */ h(
|
|
68
|
-
...
|
|
66
|
+
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
67
|
+
return /* @__PURE__ */ h(a, {
|
|
68
|
+
...i,
|
|
69
69
|
...r,
|
|
70
70
|
ref: t
|
|
71
71
|
});
|
|
72
72
|
}, "AlertDialogDescription")), j = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
73
|
-
let { __scopeAlertDialog: n, ...r } = e;
|
|
74
|
-
return /* @__PURE__ */ h(
|
|
75
|
-
...
|
|
73
|
+
let { __scopeAlertDialog: n, ...r } = e, i = x(n);
|
|
74
|
+
return /* @__PURE__ */ h(s, {
|
|
75
|
+
...i,
|
|
76
76
|
...r,
|
|
77
77
|
ref: t
|
|
78
78
|
});
|
|
79
|
-
}, "AlertDialogAction")), M = "AlertDialogCancel", N = m.forwardRef(/* @__PURE__ */ v(function(e,
|
|
80
|
-
let { __scopeAlertDialog: r, ...i } = e, { cancelRef: a } = D(M, r), o = x(r),
|
|
81
|
-
return /* @__PURE__ */ h(
|
|
79
|
+
}, "AlertDialogAction")), M = "AlertDialogCancel", N = m.forwardRef(/* @__PURE__ */ v(function(e, t) {
|
|
80
|
+
let { __scopeAlertDialog: r, ...i } = e, { cancelRef: a } = D(M, r), o = x(r), c = n(t, a);
|
|
81
|
+
return /* @__PURE__ */ h(s, {
|
|
82
82
|
...o,
|
|
83
83
|
...i,
|
|
84
|
-
ref:
|
|
84
|
+
ref: c
|
|
85
85
|
});
|
|
86
86
|
}, "AlertDialogCancel"));
|
|
87
|
-
|
|
88
|
-
//#region src/alert-dialog.tsx
|
|
87
|
+
// src/alert-dialog.tsx
|
|
89
88
|
function P({ ...e }) {
|
|
90
89
|
return /* @__PURE__ */ h(S, {
|
|
91
90
|
"data-slot": "alert-dialog",
|
|
@@ -178,5 +177,4 @@ function G({ className: t, variant: n = "outline", size: r = "default", ...i })
|
|
|
178
177
|
})
|
|
179
178
|
});
|
|
180
179
|
}
|
|
181
|
-
//#endregion
|
|
182
180
|
export { U as a, V as c, H as d, F as f, R as i, L as l, W as n, B as o, G as r, z as s, P as t, I as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DuQlxGyN.js"),a=require("./dist-DZiOPWLp.js"),o=require("./button.cjs");let s=require("react"),c=e.r(s,1);s=e.r(s);let l=require("react/jsx-runtime");var u=Object.defineProperty,d=(e,t)=>u(e,`name`,{value:t,configurable:!0}),[f,p]=n.t(`AlertDialog`,[i.l]),m=i.l(),h=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(i.t,{...r,...n,modal:!0})},`AlertDialog`),g=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.c,{...a,...r,ref:t})},`AlertDialogTrigger`)),_=d(e=>{let{__scopeAlertDialog:t,...n}=e,r=m(t);return(0,l.jsx)(i.o,{...r,...n})},`AlertDialogPortal`),v=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.a,{...a,...r,ref:t})},`AlertDialogOverlay`)),[y,b]=f(`AlertDialogContent`),x=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,children:o,...s}=e,u=m(n),d=c.useRef(null),f=r.a(t,d),p=c.useRef(null);return(0,l.jsx)(y,{scope:n,cancelRef:p,children:(0,l.jsx)(i.r,{role:`alertdialog`,...u,...s,ref:f,onOpenAutoFocus:a.t(s.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},`AlertDialogContent`)),S=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.s,{...a,...r,ref:t})},`AlertDialogTitle`)),C=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.i,{...a,...r,ref:t})},`AlertDialogDescription`)),w=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...r}=e,a=m(n);return(0,l.jsx)(i.n,{...a,...r,ref:t})},`AlertDialogAction`)),T=`AlertDialogCancel`,E=c.forwardRef(d(function(e,t){let{__scopeAlertDialog:n,...a}=e,{cancelRef:o}=b(T,n),s=m(n),c=r.a(t,o);return(0,l.jsx)(i.n,{...s,...a,ref:c})},`AlertDialogCancel`));function D({...e}){return(0,l.jsx)(h,{"data-slot":`alert-dialog`,...e})}function O({...e}){return(0,l.jsx)(g,{"data-slot":`alert-dialog-trigger`,...e})}function k({...e}){return(0,l.jsx)(_,{"data-slot":`alert-dialog-portal`,...e})}function A({className:e,...n}){return(0,l.jsx)(v,{"data-slot":`alert-dialog-overlay`,className:t.t(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs`,e),...n})}function j({className:e,size:n=`default`,...r}){return(0,l.jsxs)(k,{children:[(0,l.jsx)(A,{}),(0,l.jsx)(x,{"data-slot":`alert-dialog-content`,"data-size":n,className:t.t(`group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm rtl:translate-x-1/2`,e),...r})]})}function M({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:t.t(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...n})}function N({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:t.t(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...n})}function P({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:t.t(`bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6`,e),...n})}function F({className:e,...n}){return(0,l.jsx)(S,{"data-slot":`alert-dialog-title`,className:t.t(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...n})}function I({className:e,...n}){return(0,l.jsx)(C,{"data-slot":`alert-dialog-description`,className:t.t(`text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3`,e),...n})}function L({className:e,variant:n=`default`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(w,{"data-slot":`alert-dialog-action`,className:t.t(e),...i})})}function R({className:e,variant:n=`outline`,size:r=`default`,...i}){return(0,l.jsx)(o.Button,{variant:n,size:r,asChild:!0,children:(0,l.jsx)(E,{"data-slot":`alert-dialog-cancel`,className:t.t(e),...i})})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return k}});
|
package/dist/alert-dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./alert-dialog-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./alert-dialog-C6vNmGBL.js");exports.AlertDialog=e.t,exports.AlertDialogAction=e.n,exports.AlertDialogCancel=e.r,exports.AlertDialogContent=e.i,exports.AlertDialogDescription=e.a,exports.AlertDialogFooter=e.o,exports.AlertDialogHeader=e.s,exports.AlertDialogMedia=e.c,exports.AlertDialogOverlay=e.l,exports.AlertDialogPortal=e.u,exports.AlertDialogTitle=e.d,exports.AlertDialogTrigger=e.f;
|
package/dist/alert-dialog.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
export { u as AlertDialog, o as AlertDialogAction, c as AlertDialogCancel, i as AlertDialogContent, e as AlertDialogDescription, s as AlertDialogFooter, l as AlertDialogHeader, t as AlertDialogMedia, a as AlertDialogOverlay, d as AlertDialogPortal, n as AlertDialogTitle, r as AlertDialogTrigger };
|
|
2
|
+
export { t as AlertDialog, n as AlertDialogAction, r as AlertDialogCancel, i as AlertDialogContent, a as AlertDialogDescription, o as AlertDialogFooter, s as AlertDialogHeader, c as AlertDialogMedia, l as AlertDialogOverlay, u as AlertDialogPortal, d as AlertDialogTitle, f as AlertDialogTrigger } from "./alert-dialog-BxFH0Lwn.mjs";
|
package/dist/alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");var i=(0,require("class-variance-authority").cva)(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`,warning:`bg-card text-amber-600 *:data-[slot=alert-description]:text-amber-700/90 dark:text-amber-400 dark:*:data-[slot=alert-description]:text-amber-300/90 *:[svg]:text-current`,info:`bg-card text-blue-600 *:data-[slot=alert-description]:text-blue-700/90 dark:text-blue-400 dark:*:data-[slot=alert-description]:text-blue-300/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function a({className:e,variant:n,...a}){return(0,r.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:t.t(i({variant:n}),e),...a})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`alert-title`,className:t.t(`[&_a]:hover:text-foreground font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`alert-description`,className:t.t(`text-muted-foreground [&_a]:hover:text-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`alert-action`,className:t.t(`absolute end-2 top-2`,e),...n})}exports.Alert=a,exports.AlertAction=c,exports.AlertDescription=s,exports.AlertTitle=o;
|
package/dist/alert.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./dist-
|
|
2
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
import { cva as n } from "class-variance-authority";
|
|
6
|
-
|
|
6
|
+
// src/alert.tsx
|
|
7
7
|
var r = n("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
8
8
|
variants: { variant: {
|
|
9
9
|
default: "bg-card text-card-foreground",
|
|
@@ -42,5 +42,4 @@ function s({ className: n, ...r }) {
|
|
|
42
42
|
...r
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { i as Alert, s as AlertAction, o as AlertDescription, a as AlertTitle };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
1
|
+
import { t as e } from "./dist-B7Ph9-T6.mjs";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.bun/@radix-ui+react-aspect-ratio@1.2.0+2b23df507bdda662/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
|
|
5
5
|
var r = Object.defineProperty, i = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ ((e, t) => r(e, "name", {
|
|
6
6
|
value: t,
|
|
7
7
|
configurable: !0
|
|
8
8
|
}))(function(t, r) {
|
|
9
|
-
let { ratio: i = 1
|
|
9
|
+
let { ratio: i = 1, style: a, ...o } = t;
|
|
10
10
|
return /* @__PURE__ */ n("div", {
|
|
11
11
|
style: {
|
|
12
12
|
position: "relative",
|
|
@@ -28,13 +28,11 @@ var r = Object.defineProperty, i = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */
|
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
30
|
}, "AspectRatio"));
|
|
31
|
-
|
|
32
|
-
//#region src/aspect-ratio.tsx
|
|
31
|
+
// src/aspect-ratio.tsx
|
|
33
32
|
function a({ ...e }) {
|
|
34
33
|
return /* @__PURE__ */ n(i, {
|
|
35
34
|
"data-slot": "aspect-ratio",
|
|
36
35
|
...e
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
|
-
//#endregion
|
|
40
38
|
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CBlqVBTk.js");let n=require("react"),r=e.r(n,1);n=e.r(n);let i=require("react/jsx-runtime");var a=Object.defineProperty,o=r.forwardRef(((e,t)=>a(e,`name`,{value:t,configurable:!0}))(function(e,n){let{ratio:r=1,style:a,...o}=e;return(0,i.jsx)(`div`,{style:{position:`relative`,width:`100%`,paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":``,children:(0,i.jsx)(t.t.div,{...o,ref:n,style:{...a,position:`absolute`,top:0,right:0,bottom:0,left:0}})})},`AspectRatio`));function s({...e}){return(0,i.jsx)(o,{"data-slot":`aspect-ratio`,...e})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/aspect-ratio.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./aspect-ratio-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./aspect-ratio-Z4Nkc56X.js");exports.AspectRatio=e.t;
|
package/dist/aspect-ratio.mjs
CHANGED
package/dist/attachment.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-CJqVmdrU.js"),r=require("./button.cjs");let i=require("react");i=e.r(i);let a=require("react/jsx-runtime"),o=require("class-variance-authority");var s=(0,o.cva)(`group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed`,{variants:{size:{default:`gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2`,sm:`gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5`,xs:`gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1`},orientation:{horizontal:`min-w-40 items-center`,vertical:`w-24 flex-col has-data-[slot=attachment-content]:w-30`}}});function c({className:e,state:n=`done`,size:r=`default`,orientation:i=`horizontal`,...o}){return(0,a.jsx)(`div`,{"data-slot":`attachment`,"data-state":n,"data-size":r,"data-orientation":i,className:t.t(s({size:r,orientation:i}),e),...o})}var l=(0,o.cva)(`bg-muted text-foreground group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{icon:``,image:`opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover`}},defaultVariants:{variant:`icon`}});function u({className:e,variant:n=`icon`,...r}){return(0,a.jsx)(`div`,{"data-slot":`attachment-media`,"data-variant":n,className:t.t(l({variant:n}),e),...r})}function d({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`attachment-content`,className:t.t(`max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1`,e),...n})}function f({className:e,...n}){return(0,a.jsx)(`span`,{"data-slot":`attachment-title`,className:t.t(`group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer block max-w-full min-w-0 truncate font-medium`,e),...n})}function p({className:e,...n}){return(0,a.jsx)(`span`,{"data-slot":`attachment-description`,className:t.t(`text-muted-foreground group-data-[state=error]/attachment:text-destructive/80 mt-0.5 block min-w-0 truncate text-xs`,`max-w-full`,e),...n})}function m({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`attachment-actions`,className:t.t(`relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:gap-1`,e),...n})}function h({className:e,variant:n,size:i=`icon-xs`,...o}){return(0,a.jsx)(r.Button,{"data-slot":`attachment-action`,variant:n??`ghost`,size:i,className:t.t(e),...o})}function g({className:e,asChild:r=!1,type:i,...o}){let s=r?n.t:`button`;return(0,a.jsx)(s,{"data-slot":`attachment-trigger`,type:r?void 0:i??`button`,className:t.t(`absolute inset-0 z-10 outline-none`,e),...o})}function _({className:e,...n}){return(0,a.jsx)(`div`,{"data-slot":`attachment-group`,className:t.t(`scroll-fade-x flex min-w-0 snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start`,e),...n})}exports.Attachment=c,exports.AttachmentAction=h,exports.AttachmentActions=m,exports.AttachmentContent=d,exports.AttachmentDescription=p,exports.AttachmentGroup=_,exports.AttachmentMedia=u,exports.AttachmentTitle=f,exports.AttachmentTrigger=g;
|
package/dist/attachment.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./dist-
|
|
3
|
-
import { t } from "./dist-
|
|
2
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
3
|
+
import { t } from "./dist-C516Vwxy.mjs";
|
|
4
4
|
import { Button as n } from "./button.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as r } from "react/jsx-runtime";
|
|
7
7
|
import { cva as i } from "class-variance-authority";
|
|
8
|
-
|
|
8
|
+
// src/attachment.tsx
|
|
9
9
|
var a = i("group/attachment bg-card text-card-foreground focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border transition-colors focus-within:ring-1 data-[state=idle]:border-dashed", { variants: {
|
|
10
10
|
size: {
|
|
11
11
|
default: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
|
|
@@ -97,5 +97,4 @@ function h({ className: t, ...n }) {
|
|
|
97
97
|
...n
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
//#endregion
|
|
101
100
|
export { o as Attachment, p as AttachmentAction, f as AttachmentActions, l as AttachmentContent, d as AttachmentDescription, h as AttachmentGroup, c as AttachmentMedia, u as AttachmentTitle, m as AttachmentTrigger };
|