@gears-frontx/ui-kit 0.3.0-alpha.3 → 0.4.0-alpha.0
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/README.md +28 -6
- package/dist/accordion.d.ts +1 -0
- package/dist/accordion.js +35 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert-dialog.d.ts +1 -0
- package/dist/alert-dialog.js +97 -0
- package/dist/alert-dialog.js.map +1 -0
- package/dist/alert.d.ts +1 -0
- package/dist/alert.js +39 -0
- package/dist/alert.js.map +1 -0
- package/dist/aspect-ratio.d.ts +1 -0
- package/dist/aspect-ratio.js +19 -0
- package/dist/aspect-ratio.js.map +1 -0
- package/dist/attachment.d.ts +1 -0
- package/dist/attachment.js +133 -0
- package/dist/attachment.js.map +1 -0
- package/dist/avatar.d.ts +1 -0
- package/dist/avatar.js +87 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.js +32 -46
- package/dist/badge.js.map +1 -1
- package/dist/breadcrumb.d.ts +1 -0
- package/dist/breadcrumb.js +81 -0
- package/dist/breadcrumb.js.map +1 -0
- package/dist/bubble.d.ts +1 -0
- package/dist/bubble.js +94 -0
- package/dist/bubble.js.map +1 -0
- package/dist/button-group.d.ts +1 -0
- package/dist/button-group.js +61 -0
- package/dist/button-group.js.map +1 -0
- package/dist/button.js +30 -29
- package/dist/button.js.map +1 -1
- package/dist/calendar.d.ts +1 -0
- package/dist/calendar.js +134 -0
- package/dist/calendar.js.map +1 -0
- package/dist/card.js +24 -24
- package/dist/carousel.d.ts +1 -0
- package/dist/carousel.js +163 -0
- package/dist/carousel.js.map +1 -0
- package/dist/chart.d.ts +1 -0
- package/dist/chart.js +202 -0
- package/dist/chart.js.map +1 -0
- package/dist/checkbox.js +14 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/accordion.X_AK08Iv.css +1 -0
- package/dist/chunks/alert-dialog.B50f-Gsz.css +1 -0
- package/dist/chunks/alert.BJLRcB65.css +1 -0
- package/dist/chunks/aspect-ratio.DJbPE7BX.css +1 -0
- package/dist/chunks/attachment.rknKEWlr.css +1 -0
- package/dist/chunks/avatar.CsQmQnay.css +1 -0
- package/dist/chunks/badge.DR0epAiZ.css +1 -0
- package/dist/chunks/breadcrumb.QKz32ceR.css +1 -0
- package/dist/chunks/bubble.BKcAopT7.css +1 -0
- package/dist/chunks/button-group.D0Ir-jbL.css +1 -0
- package/dist/chunks/button.D69BdJF1.css +1 -0
- package/dist/chunks/calendar.Cnbv4EzY.css +1 -0
- package/dist/chunks/card.D3Ct_dza.css +1 -0
- package/dist/chunks/carousel.CjaKGN_D.css +1 -0
- package/dist/chunks/chart.CeyctrXQ.css +1 -0
- package/dist/chunks/checkbox.CZfE_PkU.css +1 -0
- package/dist/chunks/collapsible.BQ-sU5sQ.css +1 -0
- package/dist/chunks/combobox.CtYpZAKB.css +1 -0
- package/dist/chunks/command.Km60IuqD.css +1 -0
- package/dist/chunks/context-menu.Bjib7_AL.css +1 -0
- package/dist/chunks/data-table.DECm3qI-.css +1 -0
- package/dist/chunks/date-picker.BcRqyOg8.css +1 -0
- package/dist/chunks/dialog.BxcZ12Gb.css +1 -0
- package/dist/chunks/drawer.BkS_qEHj.css +1 -0
- package/dist/chunks/dropdown-menu.CDaeWYDT.css +1 -0
- package/dist/chunks/empty.B334jSES.css +1 -0
- package/dist/chunks/field.yTrg1G90.css +1 -0
- package/dist/chunks/hover-card.DmwvigMp.css +1 -0
- package/dist/chunks/input-group.CFIUP-Oh.css +1 -0
- package/dist/chunks/input-otp.XSpqyVij.css +1 -0
- package/dist/chunks/input.DvA_mTq8.css +1 -0
- package/dist/chunks/item.CLg1KaYF.css +1 -0
- package/dist/chunks/kbd.DZuUVB_m.css +1 -0
- package/dist/chunks/marker.DDxI_rZn.css +1 -0
- package/dist/chunks/menubar.CxRNI9o4.css +1 -0
- package/dist/chunks/message-scroller.CbLooS7Q.css +1 -0
- package/dist/chunks/message.BhD5JDJK.css +1 -0
- package/dist/chunks/native-select.BdYLTCZv.css +1 -0
- package/dist/chunks/navigation-menu.C2JGHAKD.css +1 -0
- package/dist/chunks/pagination.DUiQuWla.css +1 -0
- package/dist/chunks/popover.fOvPrnsr.css +1 -0
- package/dist/chunks/progress.Bp13t8iw.css +1 -0
- package/dist/chunks/questionnaire.DYnuWKAQ.css +1 -0
- package/dist/chunks/radio-group.CV3MBCsI.css +1 -0
- package/dist/chunks/resizable.B71V-1lR.css +1 -0
- package/dist/chunks/scroll-area.C4kWMAsU.css +1 -0
- package/dist/chunks/select.iEwV-sfJ.css +1 -0
- package/dist/chunks/sheet.DALPg9vf.css +1 -0
- package/dist/chunks/sidebar.CGTQhfWG.css +1 -0
- package/dist/chunks/slider.B5nouD7J.css +1 -0
- package/dist/chunks/spinner.UKK4f1tu.css +1 -0
- package/dist/chunks/switch.CIW9Jr1x.css +1 -0
- package/dist/chunks/table.CFAJfhd-.css +1 -0
- package/dist/chunks/tabs.C4jGj2Vg.css +1 -0
- package/dist/chunks/textarea.ORRSI69B.css +1 -0
- package/dist/chunks/toggle-group.Bd0cCCnV.css +1 -0
- package/dist/chunks/toggle.B9tvfl1n.css +1 -0
- package/dist/collapsible.d.ts +1 -0
- package/dist/collapsible.js +22 -0
- package/dist/collapsible.js.map +1 -0
- package/dist/combobox.d.ts +1 -0
- package/dist/combobox.js +159 -0
- package/dist/combobox.js.map +1 -0
- package/dist/command.d.ts +1 -0
- package/dist/command.js +75 -0
- package/dist/command.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +24 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/public.d.ts +2 -0
- package/dist/components/accordion/public.d.ts.map +1 -0
- package/dist/components/alert/alert.d.ts +21 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/public.d.ts +2 -0
- package/dist/components/alert/public.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +95 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/public.d.ts +2 -0
- package/dist/components/alert-dialog/public.d.ts.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +8 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio/public.d.ts +2 -0
- package/dist/components/aspect-ratio/public.d.ts.map +1 -0
- package/dist/components/attachment/attachment.d.ts +71 -0
- package/dist/components/attachment/attachment.d.ts.map +1 -0
- package/dist/components/attachment/public.d.ts +2 -0
- package/dist/components/attachment/public.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +40 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/public.d.ts +2 -0
- package/dist/components/avatar/public.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +3 -16
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/public.d.ts +1 -1
- package/dist/components/badge/public.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +19 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/public.d.ts +2 -0
- package/dist/components/breadcrumb/public.d.ts.map +1 -0
- package/dist/components/bubble/bubble.d.ts +35 -0
- package/dist/components/bubble/bubble.d.ts.map +1 -0
- package/dist/components/bubble/public.d.ts +2 -0
- package/dist/components/bubble/public.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +1 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/public.d.ts +1 -1
- package/dist/components/button/public.d.ts.map +1 -1
- package/dist/components/button-group/button-group.d.ts +17 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/public.d.ts +2 -0
- package/dist/components/button-group/public.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +29 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/public.d.ts +2 -0
- package/dist/components/calendar/public.d.ts.map +1 -0
- package/dist/components/carousel/carousel.d.ts +43 -0
- package/dist/components/carousel/carousel.d.ts.map +1 -0
- package/dist/components/carousel/public.d.ts +2 -0
- package/dist/components/carousel/public.d.ts.map +1 -0
- package/dist/components/chart/chart.d.ts +48 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/public.d.ts +2 -0
- package/dist/components/chart/public.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.d.ts +14 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/public.d.ts +2 -0
- package/dist/components/collapsible/public.d.ts.map +1 -0
- package/dist/components/combobox/combobox.d.ts +128 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/public.d.ts +2 -0
- package/dist/components/combobox/public.d.ts.map +1 -0
- package/dist/components/command/command.d.ts +44 -0
- package/dist/components/command/command.d.ts.map +1 -0
- package/dist/components/command/public.d.ts +2 -0
- package/dist/components/command/public.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +82 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/public.d.ts +2 -0
- package/dist/components/context-menu/public.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +81 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/public.d.ts +2 -0
- package/dist/components/data-table/public.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +76 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/public.d.ts +2 -0
- package/dist/components/date-picker/public.d.ts.map +1 -0
- package/dist/components/dialog/dialog.d.ts +12 -3
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/direction/direction.d.ts +2 -0
- package/dist/components/direction/direction.d.ts.map +1 -0
- package/dist/components/direction/public.d.ts +2 -0
- package/dist/components/direction/public.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts +83 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/public.d.ts +2 -0
- package/dist/components/drawer/public.d.ts.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -4
- package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/empty/empty.d.ts +23 -0
- package/dist/components/empty/empty.d.ts.map +1 -0
- package/dist/components/empty/public.d.ts +2 -0
- package/dist/components/empty/public.d.ts.map +1 -0
- package/dist/components/field/field.d.ts +33 -12
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/public.d.ts +1 -1
- package/dist/components/field/public.d.ts.map +1 -1
- package/dist/components/hover-card/hover-card.d.ts +33 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/public.d.ts +2 -0
- package/dist/components/hover-card/public.d.ts.map +1 -0
- package/dist/components/input-group/input-group.d.ts +38 -0
- package/dist/components/input-group/input-group.d.ts.map +1 -0
- package/dist/components/input-group/public.d.ts +2 -0
- package/dist/components/input-group/public.d.ts.map +1 -0
- package/dist/components/input-otp/input-otp.d.ts +17 -0
- package/dist/components/input-otp/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp/public.d.ts +2 -0
- package/dist/components/input-otp/public.d.ts.map +1 -0
- package/dist/components/item/item.d.ts +47 -0
- package/dist/components/item/item.d.ts.map +1 -0
- package/dist/components/item/public.d.ts +2 -0
- package/dist/components/item/public.d.ts.map +1 -0
- package/dist/components/kbd/kbd.d.ts +8 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/public.d.ts +2 -0
- package/dist/components/kbd/public.d.ts.map +1 -0
- package/dist/components/marker/marker.d.ts +19 -0
- package/dist/components/marker/marker.d.ts.map +1 -0
- package/dist/components/marker/public.d.ts +2 -0
- package/dist/components/marker/public.d.ts.map +1 -0
- package/dist/components/menubar/menubar.d.ts +57 -0
- package/dist/components/menubar/menubar.d.ts.map +1 -0
- package/dist/components/menubar/public.d.ts +2 -0
- package/dist/components/menubar/public.d.ts.map +1 -0
- package/dist/components/message/message.d.ts +35 -0
- package/dist/components/message/message.d.ts.map +1 -0
- package/dist/components/message/public.d.ts +2 -0
- package/dist/components/message/public.d.ts.map +1 -0
- package/dist/components/message-scroller/message-scroller.d.ts +75 -0
- package/dist/components/message-scroller/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller/public.d.ts +2 -0
- package/dist/components/message-scroller/public.d.ts.map +1 -0
- package/dist/components/native-select/native-select.d.ts +14 -0
- package/dist/components/native-select/native-select.d.ts.map +1 -0
- package/dist/components/native-select/public.d.ts +2 -0
- package/dist/components/native-select/public.d.ts.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +83 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu/public.d.ts +2 -0
- package/dist/components/navigation-menu/public.d.ts.map +1 -0
- package/dist/components/pagination/pagination.d.ts +37 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/public.d.ts +2 -0
- package/dist/components/pagination/public.d.ts.map +1 -0
- package/dist/components/popover/popover.d.ts +32 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/public.d.ts +2 -0
- package/dist/components/popover/public.d.ts.map +1 -0
- package/dist/components/progress/progress.d.ts +22 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/public.d.ts +2 -0
- package/dist/components/progress/public.d.ts.map +1 -0
- package/dist/components/questionnaire/public.d.ts +2 -0
- package/dist/components/questionnaire/public.d.ts.map +1 -0
- package/dist/components/questionnaire/questionnaire.d.ts +192 -0
- package/dist/components/questionnaire/questionnaire.d.ts.map +1 -0
- package/dist/components/resizable/public.d.ts +2 -0
- package/dist/components/resizable/public.d.ts.map +1 -0
- package/dist/components/resizable/resizable.d.ts +12 -0
- package/dist/components/resizable/resizable.d.ts.map +1 -0
- package/dist/components/scroll-area/public.d.ts +2 -0
- package/dist/components/scroll-area/public.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +10 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/select/select.d.ts +3 -5
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/sheet/public.d.ts +2 -0
- package/dist/components/sheet/public.d.ts.map +1 -0
- package/dist/components/sheet/sheet.d.ts +56 -0
- package/dist/components/sheet/sheet.d.ts.map +1 -0
- package/dist/components/sidebar/public.d.ts +2 -0
- package/dist/components/sidebar/public.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +167 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar/use-mobile.d.ts +18 -0
- package/dist/components/sidebar/use-mobile.d.ts.map +1 -0
- package/dist/components/slider/public.d.ts +2 -0
- package/dist/components/slider/public.d.ts.map +1 -0
- package/dist/components/slider/slider.d.ts +6 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/spinner/public.d.ts +2 -0
- package/dist/components/spinner/public.d.ts.map +1 -0
- package/dist/components/spinner/spinner.d.ts +4 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toggle/public.d.ts +2 -0
- package/dist/components/toggle/public.d.ts.map +1 -0
- package/dist/components/toggle/toggle.d.ts +11 -0
- package/dist/components/toggle/toggle.d.ts.map +1 -0
- package/dist/components/toggle-group/public.d.ts +2 -0
- package/dist/components/toggle-group/public.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +13 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +1 -4
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +201 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/data-table.d.ts +1 -0
- package/dist/data-table.js +162 -0
- package/dist/data-table.js.map +1 -0
- package/dist/date-picker.d.ts +1 -0
- package/dist/date-picker.js +175 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/dialog.js +40 -55
- package/dist/dialog.js.map +1 -1
- package/dist/direction.d.ts +1 -0
- package/dist/direction.js +6 -0
- package/dist/direction.js.map +1 -0
- package/dist/docs/accordion.md +86 -0
- package/dist/docs/alert-dialog.md +151 -0
- package/dist/docs/alert.md +74 -0
- package/dist/docs/aspect-ratio.md +65 -0
- package/dist/docs/attachment.md +254 -0
- package/dist/docs/avatar.md +185 -0
- package/dist/docs/badge.md +72 -60
- package/dist/docs/breadcrumb.md +86 -0
- package/dist/docs/bubble.md +233 -0
- package/dist/docs/button-group.md +107 -0
- package/dist/docs/calendar.md +114 -0
- package/dist/docs/card.md +15 -7
- package/dist/docs/carousel.md +152 -0
- package/dist/docs/chart.md +174 -0
- package/dist/docs/collapsible.md +80 -0
- package/dist/docs/combobox.md +192 -0
- package/dist/docs/command.md +171 -0
- package/dist/docs/context-menu.md +173 -0
- package/dist/docs/data-table.md +183 -0
- package/dist/docs/date-picker.md +137 -0
- package/dist/docs/dialog.md +33 -0
- package/dist/docs/direction.md +51 -0
- package/dist/docs/drawer.md +242 -0
- package/dist/docs/empty.md +80 -0
- package/dist/docs/field.md +105 -38
- package/dist/docs/hover-card.md +81 -0
- package/dist/docs/input-group.md +158 -0
- package/dist/docs/input-otp.md +116 -0
- package/dist/docs/input.md +31 -20
- package/dist/docs/item.md +106 -0
- package/dist/docs/kbd.md +53 -0
- package/dist/docs/marker.md +178 -0
- package/dist/docs/menubar.md +108 -0
- package/dist/docs/message-scroller.md +221 -0
- package/dist/docs/message.md +183 -0
- package/dist/docs/native-select.md +93 -0
- package/dist/docs/navigation-menu.md +176 -0
- package/dist/docs/pagination.md +96 -0
- package/dist/docs/popover.md +87 -0
- package/dist/docs/progress.md +58 -0
- package/dist/docs/questionnaire.md +311 -0
- package/dist/docs/resizable.md +95 -0
- package/dist/docs/scroll-area.md +93 -0
- package/dist/docs/sheet.md +168 -0
- package/dist/docs/sidebar.md +309 -0
- package/dist/docs/slider.md +66 -0
- package/dist/docs/spinner.md +55 -0
- package/dist/docs/table.md +85 -20
- package/dist/docs/textarea.md +19 -2
- package/dist/docs/toggle-group.md +77 -0
- package/dist/docs/toggle.md +58 -0
- package/dist/docs/typeset.md +75 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.js +120 -0
- package/dist/drawer.js.map +1 -0
- package/dist/dropdown-menu.js +98 -130
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/empty.d.ts +1 -0
- package/dist/empty.js +50 -0
- package/dist/empty.js.map +1 -0
- package/dist/field.js +105 -20
- package/dist/field.js.map +1 -1
- package/dist/hover-card.d.ts +1 -0
- package/dist/hover-card.js +44 -0
- package/dist/hover-card.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +431 -93
- package/dist/index.js.map +1 -1
- package/dist/input-group.d.ts +1 -0
- package/dist/input-group.js +91 -0
- package/dist/input-group.js.map +1 -0
- package/dist/input-otp.d.ts +1 -0
- package/dist/input-otp.js +28 -0
- package/dist/input-otp.js.map +1 -0
- package/dist/input.js +17 -17
- package/dist/item.d.ts +1 -0
- package/dist/item.js +107 -0
- package/dist/item.js.map +1 -0
- package/dist/kbd.d.ts +1 -0
- package/dist/kbd.js +17 -0
- package/dist/kbd.js.map +1 -0
- package/dist/marker.d.ts +1 -0
- package/dist/marker.js +52 -0
- package/dist/marker.js.map +1 -0
- package/dist/menubar.d.ts +1 -0
- package/dist/menubar.js +50 -0
- package/dist/menubar.js.map +1 -0
- package/dist/message-scroller.d.ts +1 -0
- package/dist/message-scroller.js +69 -0
- package/dist/message-scroller.js.map +1 -0
- package/dist/message.d.ts +1 -0
- package/dist/message.js +37 -0
- package/dist/message.js.map +1 -0
- package/dist/native-select.d.ts +1 -0
- package/dist/native-select.js +42 -0
- package/dist/native-select.js.map +1 -0
- package/dist/navigation-menu.d.ts +1 -0
- package/dist/navigation-menu.js +97 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/pagination.d.ts +1 -0
- package/dist/pagination.js +104 -0
- package/dist/pagination.js.map +1 -0
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +59 -0
- package/dist/popover.js.map +1 -0
- package/dist/progress.d.ts +1 -0
- package/dist/progress.js +36 -0
- package/dist/progress.js.map +1 -0
- package/dist/questionnaire.d.ts +1 -0
- package/dist/questionnaire.js +209 -0
- package/dist/questionnaire.js.map +1 -0
- package/dist/radio-group.js +7 -7
- package/dist/resizable.d.ts +1 -0
- package/dist/resizable.js +24 -0
- package/dist/resizable.js.map +1 -0
- package/dist/scroll-area.d.ts +1 -0
- package/dist/scroll-area.js +32 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/select.js +83 -107
- package/dist/select.js.map +1 -1
- package/dist/sheet.d.ts +1 -0
- package/dist/sheet.js +94 -0
- package/dist/sheet.js.map +1 -0
- package/dist/sidebar.d.ts +1 -0
- package/dist/sidebar.js +386 -0
- package/dist/sidebar.js.map +1 -0
- package/dist/slider.d.ts +1 -0
- package/dist/slider.js +40 -0
- package/dist/slider.js.map +1 -0
- package/dist/spinner.d.ts +1 -0
- package/dist/spinner.js +21 -0
- package/dist/spinner.js.map +1 -0
- package/dist/switch.js +11 -11
- package/dist/table.js +34 -35
- package/dist/table.js.map +1 -1
- package/dist/tabs.js +17 -17
- package/dist/textarea.js +14 -7
- package/dist/textarea.js.map +1 -1
- package/dist/theme.css +35 -20
- package/dist/toast.js +54 -164
- package/dist/toast.js.map +1 -1
- package/dist/toggle-group.d.ts +1 -0
- package/dist/toggle-group.js +46 -0
- package/dist/toggle-group.js.map +1 -0
- package/dist/toggle.d.ts +1 -0
- package/dist/toggle.js +39 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tooltip.js.map +1 -1
- package/dist/typeset.css +532 -0
- package/dist/utilities.css +583 -0
- package/llms.txt +268 -24
- package/package.json +15 -3
- package/dist/chunks/badge.BcdxDzJ7.css +0 -1
- package/dist/chunks/button.DNo8DTR3.css +0 -1
- package/dist/chunks/card.B0AcyAT1.css +0 -1
- package/dist/chunks/checkbox.D3kdAalh.css +0 -1
- package/dist/chunks/dialog.D6LS2vnG.css +0 -1
- package/dist/chunks/dropdown-menu.DmDZc5gB.css +0 -1
- package/dist/chunks/field.BNZx8HfN.css +0 -1
- package/dist/chunks/input.C8RDCC-a.css +0 -1
- package/dist/chunks/radio-group.zAFY9yCF.css +0 -1
- package/dist/chunks/select.Dt0diN4P.css +0 -1
- package/dist/chunks/switch.CsaIRnCA.css +0 -1
- package/dist/chunks/table.BuWHXL6e.css +0 -1
- package/dist/chunks/tabs.KEksCAxN.css +0 -1
- package/dist/chunks/textarea.N3iiWUuz.css +0 -1
package/README.md
CHANGED
|
@@ -15,8 +15,26 @@ kits into their own templates.
|
|
|
15
15
|
```ts
|
|
16
16
|
// once, in the consumer entry module
|
|
17
17
|
import '@gears-frontx/ui-kit/theme.css'; // design tokens (CSS variables)
|
|
18
|
+
|
|
19
|
+
// two optional global stylesheets, each imported only if you need it:
|
|
20
|
+
import '@gears-frontx/ui-kit/utilities.css'; // shimmer, scroll-fade-x, no-scrollbar
|
|
21
|
+
import '@gears-frontx/ui-kit/typeset.css'; // prose styling for rendered markdown/HTML
|
|
18
22
|
```
|
|
19
23
|
|
|
24
|
+
`utilities.css` is not optional for every component: **Attachment** depends
|
|
25
|
+
on it — `AttachmentTitle` adds `shimmer` while uploading, and
|
|
26
|
+
`AttachmentGroup` scrolls its row with `scroll-fade-x` and `no-scrollbar` —
|
|
27
|
+
and **Marker** pairs with `shimmer` for its streaming-text effect. Those
|
|
28
|
+
classes are plain global CSS with no component chunk to pull them in, so
|
|
29
|
+
without this import they are inert and the components simply render without
|
|
30
|
+
the effect. Import it once alongside `theme.css` if you use either
|
|
31
|
+
component, or want the utilities for your own markup.
|
|
32
|
+
|
|
33
|
+
`typeset.css` styles blocks of rendered markdown or HTML the app does not
|
|
34
|
+
author itself — chat messages, docs, CMS content: wrap them in
|
|
35
|
+
`<div class="typeset">`. See [typeset.md](src/styles/typeset.md) for the
|
|
36
|
+
presets and rhythm variables.
|
|
37
|
+
|
|
20
38
|
```tsx
|
|
21
39
|
import { Button } from '@gears-frontx/ui-kit';
|
|
22
40
|
|
|
@@ -44,15 +62,19 @@ components render straight from a Server Component with no kit-side client JS
|
|
|
44
62
|
they only compose Base UI primitives as JSX, and Base UI's own dist already
|
|
45
63
|
carries `'use client'` on the modules that call hooks (an interactive primitive
|
|
46
64
|
like Select or Dialog still ships Base UI's own client bundle; only the kit
|
|
47
|
-
wrapper around it needs no directive of its own).
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
wrapper around it needs no directive of its own). The rest call a hook directly
|
|
66
|
+
in their own render body and ship a banner on their own chunk instead.
|
|
67
|
+
|
|
68
|
+
The kit components that carry a `'use client'` banner of their own: Attachment,
|
|
69
|
+
Badge, Breadcrumb, Bubble, ButtonGroup, Carousel, Chart, Combobox, ContextMenu,
|
|
70
|
+
DataTable, Drawer, DropdownMenu, Marker, Sidebar, Toast.
|
|
71
|
+
|
|
52
72
|
Everything else — including interactive primitives like Button, Checkbox,
|
|
53
73
|
Dialog, Select, Switch, RadioGroup, and Tabs — stays server-renderable; each
|
|
54
74
|
one's own client interactivity comes from a Base UI primitive it renders as a
|
|
55
|
-
child, which establishes its own client boundary as needed.
|
|
75
|
+
child, which establishes its own client boundary as needed. That list is
|
|
76
|
+
checked against the source on every test run (`src/client-boundaries.test.ts`),
|
|
77
|
+
so it cannot quietly fall behind the code.
|
|
56
78
|
|
|
57
79
|
The theme file paints the page (background, text, and UA-owned surfaces like
|
|
58
80
|
the scrollbar) as well as defining the tokens, so dark mode works out of the
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/accordion/public.js'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Accordion as t } from "@base-ui/react/accordion";
|
|
3
|
+
import { cx as c } from "class-variance-authority";
|
|
4
|
+
import { ChevronDownIcon as a } from "lucide-react";
|
|
5
|
+
import './chunks/accordion.X_AK08Iv.css';const m = "_root_2z850_7", _ = "_item_2z850_13", g = "_header_2z850_27", l = "_trigger_2z850_22", d = "_triggerIcon_2z850_95", p = "_panel_2z850_128", f = "_content_2z850_128", e = {
|
|
6
|
+
root: m,
|
|
7
|
+
item: _,
|
|
8
|
+
header: g,
|
|
9
|
+
trigger: l,
|
|
10
|
+
triggerIcon: d,
|
|
11
|
+
panel: p,
|
|
12
|
+
content: f
|
|
13
|
+
};
|
|
14
|
+
function N({ className: r, ...o }) {
|
|
15
|
+
return /* @__PURE__ */ n(t.Root, { className: c(e.root, r), ...o });
|
|
16
|
+
}
|
|
17
|
+
function A({ className: r, ...o }) {
|
|
18
|
+
return /* @__PURE__ */ n(t.Item, { className: c(e.item, r), ...o });
|
|
19
|
+
}
|
|
20
|
+
function x({ className: r, children: o, ...i }) {
|
|
21
|
+
return /* @__PURE__ */ n(t.Header, { className: e.header, children: /* @__PURE__ */ s(t.Trigger, { className: c(e.trigger, r), ...i, children: [
|
|
22
|
+
o,
|
|
23
|
+
/* @__PURE__ */ n(a, { className: e.triggerIcon })
|
|
24
|
+
] }) });
|
|
25
|
+
}
|
|
26
|
+
function j({ className: r, children: o, ...i }) {
|
|
27
|
+
return /* @__PURE__ */ n(t.Panel, { className: e.panel, ...i, children: /* @__PURE__ */ n("div", { className: c(e.content, r), children: o }) });
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
N as Accordion,
|
|
31
|
+
j as AccordionContent,
|
|
32
|
+
A as AccordionItem,
|
|
33
|
+
x as AccordionTrigger
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","sources":["../src/components/accordion/accordion.tsx"],"sourcesContent":["import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';\nimport { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\n\nimport styles from './accordion.module.css';\n\n/**\n * Unlike the kit's popup-based overlays (Dialog/Popover/Tooltip/...), whose\n * Root renders no DOM element of its own, Accordion.Root renders the\n * top-level `<div>` — so it needs a real wrapper (for the base flex-column\n * layout), not a bare pass-through re-export.\n */\nexport interface AccordionProps<Value = unknown>\n extends Omit<AccordionPrimitive.Root.Props<Value>, 'className'> {\n className?: string;\n}\n\nexport function Accordion<Value = unknown>({ className, ...props }: AccordionProps<Value>) {\n return <AccordionPrimitive.Root className={cx(styles.root, className)} {...props} />;\n}\n\nexport interface AccordionItemProps extends Omit<AccordionPrimitive.Item.Props, 'className'> {\n className?: string;\n}\n\nexport function AccordionItem({ className, ...props }: AccordionItemProps) {\n return <AccordionPrimitive.Item className={cx(styles.item, className)} {...props} />;\n}\n\nexport interface AccordionTriggerProps\n extends Omit<AccordionPrimitive.Trigger.Props, 'className'> {\n className?: string;\n}\n\nexport function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps) {\n return (\n <AccordionPrimitive.Header className={styles.header}>\n <AccordionPrimitive.Trigger className={cx(styles.trigger, className)} {...props}>\n {children}\n {/* Upstream swaps between a chevron-down and chevron-up icon by\n * aria-expanded visibility; the kit instead rotates this one 180deg\n * off `data-panel-open` (see accordion.module.css) — one fewer DOM\n * node for the same result. */}\n <ChevronDownIcon className={styles.triggerIcon} />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n );\n}\n\nexport interface AccordionContentProps extends Omit<AccordionPrimitive.Panel.Props, 'className'> {\n className?: string;\n}\n\nexport function AccordionContent({ className, children, ...props }: AccordionContentProps) {\n return (\n <AccordionPrimitive.Panel className={styles.panel} {...props}>\n <div className={cx(styles.content, className)}>{children}</div>\n </AccordionPrimitive.Panel>\n );\n}\n"],"names":["Accordion","className","props","jsx","AccordionPrimitive","cx","styles","AccordionItem","AccordionTrigger","children","jsxs","ChevronDownIcon","AccordionContent"],"mappings":";;;;;;;;;;;;;AAiBO,SAASA,EAA2B,EAAE,WAAAC,GAAW,GAAGC,KAAgC;AACzF,SAAO,gBAAAC,EAACC,EAAmB,MAAnB,EAAwB,WAAWC,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGC,EAAA,CAAO;AACpF;AAMO,SAASK,EAAc,EAAE,WAAAN,GAAW,GAAGC,KAA6B;AACzE,SAAO,gBAAAC,EAACC,EAAmB,MAAnB,EAAwB,WAAWC,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGC,EAAA,CAAO;AACpF;AAOO,SAASM,EAAiB,EAAE,WAAAP,GAAW,UAAAQ,GAAU,GAAGP,KAAgC;AACzF,2BACGE,EAAmB,QAAnB,EAA0B,WAAWE,EAAO,QAC3C,UAAA,gBAAAI,EAACN,EAAmB,SAAnB,EAA2B,WAAWC,EAAGC,EAAO,SAASL,CAAS,GAAI,GAAGC,GACvE,UAAA;AAAA,IAAAO;AAAA,IAKD,gBAAAN,EAACQ,GAAA,EAAgB,WAAWL,EAAO,YAAA,CAAa;AAAA,EAAA,EAAA,CAClD,EAAA,CACF;AAEJ;AAMO,SAASM,EAAiB,EAAE,WAAAX,GAAW,UAAAQ,GAAU,GAAGP,KAAgC;AACzF,2BACGE,EAAmB,OAAnB,EAAyB,WAAWE,EAAO,OAAQ,GAAGJ,GACrD,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAWE,EAAGC,EAAO,SAASL,CAAS,GAAI,UAAAQ,GAAS,GAC3D;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/alert-dialog/public.js'
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog as r } from "@base-ui/react/alert-dialog";
|
|
3
|
+
import { cx as i } from "class-variance-authority";
|
|
4
|
+
import { Button as p } from "./button.js";
|
|
5
|
+
import './chunks/alert-dialog.B50f-Gsz.css';const u = "_backdrop_19nga_14", g = "_popup_19nga_30", _ = "_header_19nga_137", m = "_media_19nga_156", f = "_footer_19nga_167", D = "_title_19nga_197", A = "_description_19nga_205", n = {
|
|
6
|
+
backdrop: u,
|
|
7
|
+
popup: g,
|
|
8
|
+
header: _,
|
|
9
|
+
media: m,
|
|
10
|
+
footer: f,
|
|
11
|
+
title: D,
|
|
12
|
+
description: A
|
|
13
|
+
}, x = r.Root;
|
|
14
|
+
function C({ className: e, ...t }) {
|
|
15
|
+
return /* @__PURE__ */ o(r.Trigger, { className: e, ...t });
|
|
16
|
+
}
|
|
17
|
+
function T({
|
|
18
|
+
className: e,
|
|
19
|
+
children: t,
|
|
20
|
+
container: a,
|
|
21
|
+
showBackdrop: l = !0,
|
|
22
|
+
size: c = "default",
|
|
23
|
+
...s
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ d(r.Portal, { container: a, children: [
|
|
26
|
+
l && /* @__PURE__ */ o(r.Backdrop, { className: n.backdrop }),
|
|
27
|
+
/* @__PURE__ */ o(
|
|
28
|
+
r.Popup,
|
|
29
|
+
{
|
|
30
|
+
"data-size": c,
|
|
31
|
+
className: i(n.popup, e),
|
|
32
|
+
...s,
|
|
33
|
+
children: t
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
function v({ className: e, ...t }) {
|
|
39
|
+
return /* @__PURE__ */ o("div", { className: i(n.header, e), ...t });
|
|
40
|
+
}
|
|
41
|
+
function j({ className: e, ...t }) {
|
|
42
|
+
return /* @__PURE__ */ o("div", { className: i(n.footer, e), ...t });
|
|
43
|
+
}
|
|
44
|
+
function B({ className: e, ...t }) {
|
|
45
|
+
return /* @__PURE__ */ o("div", { className: i(n.media, e), ...t });
|
|
46
|
+
}
|
|
47
|
+
function P({ className: e, ...t }) {
|
|
48
|
+
return /* @__PURE__ */ o(r.Title, { className: i(n.title, e), ...t });
|
|
49
|
+
}
|
|
50
|
+
function y({ className: e, ...t }) {
|
|
51
|
+
return /* @__PURE__ */ o(r.Description, { className: i(n.description, e), ...t });
|
|
52
|
+
}
|
|
53
|
+
function z({
|
|
54
|
+
className: e,
|
|
55
|
+
variant: t,
|
|
56
|
+
size: a,
|
|
57
|
+
loading: l,
|
|
58
|
+
icon: c,
|
|
59
|
+
...s
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ o(
|
|
62
|
+
r.Close,
|
|
63
|
+
{
|
|
64
|
+
className: e,
|
|
65
|
+
render: /* @__PURE__ */ o(p, { variant: t, size: a, loading: l, icon: c }),
|
|
66
|
+
...s
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function F({
|
|
71
|
+
className: e,
|
|
72
|
+
variant: t = "outline",
|
|
73
|
+
size: a,
|
|
74
|
+
...l
|
|
75
|
+
}) {
|
|
76
|
+
return /* @__PURE__ */ o(
|
|
77
|
+
r.Close,
|
|
78
|
+
{
|
|
79
|
+
className: e,
|
|
80
|
+
render: /* @__PURE__ */ o(p, { variant: t, size: a }),
|
|
81
|
+
...l
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
x as AlertDialog,
|
|
87
|
+
z as AlertDialogAction,
|
|
88
|
+
F as AlertDialogCancel,
|
|
89
|
+
T as AlertDialogContent,
|
|
90
|
+
y as AlertDialogDescription,
|
|
91
|
+
j as AlertDialogFooter,
|
|
92
|
+
v as AlertDialogHeader,
|
|
93
|
+
B as AlertDialogMedia,
|
|
94
|
+
P as AlertDialogTitle,
|
|
95
|
+
C as AlertDialogTrigger
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","sources":["../src/components/alert-dialog/alert-dialog.tsx"],"sourcesContent":["import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';\nimport { cx } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button';\nimport styles from './alert-dialog.module.css';\n\nexport const AlertDialog = AlertDialogPrimitive.Root;\n/**\n * Base UI pass-through; props type re-exported (see dialog.tsx).\n */\nexport type AlertDialogProps = AlertDialogPrimitive.Root.Props;\n\nexport interface AlertDialogTriggerProps\n extends Omit<AlertDialogPrimitive.Trigger.Props, 'className'> {\n className?: string;\n}\n\nexport function AlertDialogTrigger({ className, ...props }: AlertDialogTriggerProps) {\n return <AlertDialogPrimitive.Trigger className={className} {...props} />;\n}\n\nexport interface AlertDialogContentProps\n extends Omit<AlertDialogPrimitive.Popup.Props, 'className'> {\n className?: string;\n /**\n * Where to portal the popup. Defaults to <body>. Pass a themed container\n * when the theme is scoped to a subtree (data-theme on a container that\n * isn't at document root) so the popup inherits its tokens and font.\n */\n container?: AlertDialogPrimitive.Portal.Props['container'];\n /**\n * Renders the dimming backdrop behind the popup. An alert dialog is\n * always modal (Base UI does not offer a non-modal AlertDialog — unlike\n * Dialog's `modal={false}`, there is no escape hatch to pair this with),\n * so this only controls whether the scrim itself paints.\n * @default true\n */\n showBackdrop?: boolean;\n /**\n * `sm` narrows the max width and stacks `AlertDialogAction`/\n * `AlertDialogCancel` into two equal columns instead of a row.\n * Read by `AlertDialogFooter`'s CSS off this popup's `data-size`\n * attribute — the same \"group\" relationship upstream expresses with\n * Tailwind's `group-data-*` variant, expressed here as a plain CSS\n * Modules descendant selector.\n * @default 'default'\n */\n size?: 'default' | 'sm';\n}\n\nexport function AlertDialogContent({\n className,\n children,\n container,\n showBackdrop = true,\n size = 'default',\n ...props\n}: AlertDialogContentProps) {\n return (\n <AlertDialogPrimitive.Portal container={container}>\n {showBackdrop && <AlertDialogPrimitive.Backdrop className={styles.backdrop} />}\n <AlertDialogPrimitive.Popup\n data-size={size}\n className={cx(styles.popup, className)}\n {...props}\n >\n {children}\n </AlertDialogPrimitive.Popup>\n </AlertDialogPrimitive.Portal>\n );\n}\n\nexport type AlertDialogHeaderProps = ComponentProps<'div'>;\n\nexport function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps) {\n return <div className={cx(styles.header, className)} {...props} />;\n}\n\nexport type AlertDialogFooterProps = ComponentProps<'div'>;\n\nexport function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps) {\n return <div className={cx(styles.footer, className)} {...props} />;\n}\n\n/**\n * An icon or small illustration slot beside the header text (e.g. a\n * warning glyph for a destructive confirmation). Purely a styled\n * container — pass any icon/image as children.\n */\nexport type AlertDialogMediaProps = ComponentProps<'div'>;\n\nexport function AlertDialogMedia({ className, ...props }: AlertDialogMediaProps) {\n return <div className={cx(styles.media, className)} {...props} />;\n}\n\nexport interface AlertDialogTitleProps\n extends Omit<AlertDialogPrimitive.Title.Props, 'className'> {\n className?: string;\n}\n\nexport function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps) {\n return <AlertDialogPrimitive.Title className={cx(styles.title, className)} {...props} />;\n}\n\nexport interface AlertDialogDescriptionProps\n extends Omit<AlertDialogPrimitive.Description.Props, 'className'> {\n className?: string;\n}\n\nexport function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps) {\n return (\n <AlertDialogPrimitive.Description className={cx(styles.description, className)} {...props} />\n );\n}\n\nexport interface AlertDialogActionProps\n extends Omit<AlertDialogPrimitive.Close.Props, 'className'>,\n Pick<ButtonProps, 'variant' | 'size' | 'loading' | 'icon'> {\n className?: string;\n}\n\n/**\n * The dialog's confirming action — a Base UI `AlertDialog.Close` rendered as\n * a kit `Button` (`default` variant unless overridden), the same\n * `render`-prop idiom as `AlertDialogCancel`. Confirming dismisses the\n * dialog, matching upstream, where this part is the primitive's own Action\n * (a Close in everything but name).\n *\n * An `onClick` of your own still runs, and runs FIRST: Base UI merges the\n * consumer handler ahead of its own close handler (see mergeProps'\n * right-to-left order). An async confirm that must keep the dialog open\n * while it works calls `event.preventBaseUIHandler()` in that handler and\n * drives `open` itself.\n *\n * `loading` is the other half of that flow, and the reason this part takes\n * more of `Button`'s surface than `AlertDialogCancel` does: the confirming\n * action is the one that does work. A `loading` Button is disabled (see\n * button.tsx), so the pattern completes itself — prevent the close, set\n * `loading`, and the same button cannot be pressed a second time while the\n * request is in flight. `icon` comes along for the ordinary reason any\n * confirm button might carry a glyph; NEVER as a child (button.tsx's own\n * doc says why).\n */\nexport function AlertDialogAction({\n className,\n variant,\n size,\n loading,\n icon,\n ...props\n}: AlertDialogActionProps) {\n return (\n <AlertDialogPrimitive.Close\n className={className}\n render={<Button variant={variant} size={size} loading={loading} icon={icon} />}\n {...props}\n />\n );\n}\n\nexport interface AlertDialogCancelProps\n extends Omit<AlertDialogPrimitive.Close.Props, 'className'>,\n Pick<ButtonProps, 'variant' | 'size'> {\n className?: string;\n}\n\n/**\n * The dialog's dismissing action — a Base UI `AlertDialog.Close` rendered\n * as a kit `Button` (`outline` variant by default), same `render`-prop\n * idiom as `DialogContent`'s built-in close button.\n */\nexport function AlertDialogCancel({\n className,\n variant = 'outline',\n size,\n ...props\n}: AlertDialogCancelProps) {\n return (\n <AlertDialogPrimitive.Close\n className={className}\n render={<Button variant={variant} size={size} />}\n {...props}\n />\n );\n}\n"],"names":["AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","className","props","AlertDialogContent","children","container","showBackdrop","size","jsxs","styles","jsx","cx","AlertDialogHeader","AlertDialogFooter","AlertDialogMedia","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","variant","loading","icon","Button","AlertDialogCancel"],"mappings":";;;;;;;;;;;;GAOaA,IAAcC,EAAqB;AAWzC,SAASC,EAAmB,EAAE,WAAAC,GAAW,GAAGC,KAAkC;AACnF,2BAAQH,EAAqB,SAArB,EAA6B,WAAAE,GAAuB,GAAGC,GAAO;AACxE;AA+BO,SAASC,EAAmB;AAAA,EACjC,WAAAF;AAAA,EACA,UAAAG;AAAA,EACA,WAAAC;AAAA,EACA,c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AAAA,EACA,MAAAX;AAAA,EACA,SAAAY;AAAA,EACA,MAAAC;AAAA,EACA,GAAGlB;AACL,GAA2B;AACzB,SACE,gBAAAQ;AAAA,IAACX,EAAqB;AAAA,IAArB;AAAA,MACC,WAAAE;AAAA,MACA,QAAQ,gBAAAS,EAACW,GAAA,EAAO,SAAAH,GAAkB,MAAAX,GAAY,SAAAY,GAAkB,MAAAC,GAAY;AAAA,MAC3E,GAAGlB;AAAA,IAAA;AAAA,EAAA;AAGV;AAaO,SAASoB,EAAkB;AAAA,EAChC,WAAArB;AAAA,EACA,SAAAiB,IAAU;AAAA,EACV,MAAAX;AAAA,EACA,GAAGL;AACL,GAA2B;AACzB,SACE,gBAAAQ;AAAA,IAACX,EAAqB;AAAA,IAArB;AAAA,MACC,WAAAE;AAAA,MACA,QAAQ,gBAAAS,EAACW,GAAA,EAAO,SAAAH,GAAkB,MAAAX,EAAA,CAAY;AAAA,MAC7C,GAAGL;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/alert.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/alert/public.js'
|
package/dist/alert.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cx as i, cva as n } from "class-variance-authority";
|
|
3
|
+
import './chunks/alert.BJLRcB65.css';const c = "_alert_lk4yu_13", s = "_variantDefault_lk4yu_30", o = "_variantDestructive_lk4yu_35", u = "_alertTitle_lk4yu_72", v = "_alertDescription_lk4yu_80", _ = "_alertAction_lk4yu_95", e = {
|
|
4
|
+
alert: c,
|
|
5
|
+
variantDefault: s,
|
|
6
|
+
variantDestructive: o,
|
|
7
|
+
alertTitle: u,
|
|
8
|
+
alertDescription: v,
|
|
9
|
+
alertAction: _
|
|
10
|
+
}, f = n(e.alert, {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: e.variantDefault,
|
|
14
|
+
destructive: e.variantDestructive
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "default"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function d({ className: t, variant: a, ...l }) {
|
|
22
|
+
return /* @__PURE__ */ r("div", { role: "alert", className: f({ variant: a, className: t }), ...l });
|
|
23
|
+
}
|
|
24
|
+
function m({ className: t, ...a }) {
|
|
25
|
+
return /* @__PURE__ */ r("div", { className: i(e.alertTitle, t), ...a });
|
|
26
|
+
}
|
|
27
|
+
function p({ className: t, ...a }) {
|
|
28
|
+
return /* @__PURE__ */ r("div", { className: i(e.alertDescription, t), ...a });
|
|
29
|
+
}
|
|
30
|
+
function y({ className: t, ...a }) {
|
|
31
|
+
return /* @__PURE__ */ r("div", { className: i(e.alertAction, t), ...a });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
d as Alert,
|
|
35
|
+
y as AlertAction,
|
|
36
|
+
p as AlertDescription,
|
|
37
|
+
m as AlertTitle
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sources":["../src/components/alert/alert.tsx"],"sourcesContent":["import { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './alert.module.css';\n\n/*\n * Alert has no Base UI primitive (registry/bases/base/ui/alert.tsx ships\n * plain `div`s with data-slot markers and a `role=\"alert\"` root) — a pure\n * styling translation over native elements, same shape as Card (see\n * card.tsx). No `data-slot` attributes, per the kit-wide convention: the\n * icon/action layout below is detected structurally (`:has()`), the same\n * sanctioned pattern Card's header/action classes already use (see\n * tokens.test.ts).\n */\n\nconst alertVariants = cva(styles.alert, {\n variants: {\n variant: {\n default: styles.variantDefault,\n destructive: styles.variantDestructive,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport type AlertProps = ComponentProps<'div'> & VariantProps<typeof alertVariants>;\n\nexport function Alert({ className, variant, ...props }: AlertProps) {\n return <div role=\"alert\" className={alertVariants({ variant, className })} {...props} />;\n}\n\nexport type AlertTitleProps = ComponentProps<'div'>;\n\nexport function AlertTitle({ className, ...props }: AlertTitleProps) {\n return <div className={cx(styles.alertTitle, className)} {...props} />;\n}\n\nexport type AlertDescriptionProps = ComponentProps<'div'>;\n\nexport function AlertDescription({ className, ...props }: AlertDescriptionProps) {\n return <div className={cx(styles.alertDescription, className)} {...props} />;\n}\n\n/**\n * Positions in the alert's top-right corner (see alert.module.css) — an\n * `AlertAction` present as a direct child also reserves room in the\n * alert's own padding so body text never runs under it, detected the same\n * structural way (no prop to set).\n */\nexport type AlertActionProps = ComponentProps<'div'>;\n\nexport function AlertAction({ className, ...props }: AlertActionProps) {\n return <div className={cx(styles.alertAction, className)} {...props} />;\n}\n"],"names":["alertVariants","cva","styles","Alert","className","variant","props","jsx","AlertTitle","cx","AlertDescription","AlertAction"],"mappings":";;;;;;;;;GAeMA,IAAgBC,EAAIC,EAAO,OAAO;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,aAAaA,EAAO;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAIM,SAASC,EAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,KAAqB;AAClE,SAAO,gBAAAC,EAAC,OAAA,EAAI,MAAK,SAAQ,WAAWP,EAAc,EAAE,SAAAK,GAAS,WAAAD,EAAA,CAAW,GAAI,GAAGE,EAAA,CAAO;AACxF;AAIO,SAASE,EAAW,EAAE,WAAAJ,GAAW,GAAGE,KAA0B;AACnE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,YAAYE,CAAS,GAAI,GAAGE,GAAO;AACtE;AAIO,SAASI,EAAiB,EAAE,WAAAN,GAAW,GAAGE,KAAgC;AAC/E,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,kBAAkBE,CAAS,GAAI,GAAGE,GAAO;AAC5E;AAUO,SAASK,EAAY,EAAE,WAAAP,GAAW,GAAGE,KAA2B;AACrE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,aAAaE,CAAS,GAAI,GAAGE,GAAO;AACvE;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/aspect-ratio/public.js'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { cx as e } from "class-variance-authority";
|
|
3
|
+
import './chunks/aspect-ratio.DJbPE7BX.css';const i = "_aspectRatio_1xyxw_8", p = {
|
|
4
|
+
aspectRatio: i
|
|
5
|
+
};
|
|
6
|
+
function n({ ratio: t, className: o, style: s, ...a }) {
|
|
7
|
+
return /* @__PURE__ */ c(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
style: { "--ratio": t, ...s },
|
|
11
|
+
className: e(p.aspectRatio, o),
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
n as AspectRatio
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=aspect-ratio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspect-ratio.js","sources":["../src/components/aspect-ratio/aspect-ratio.tsx"],"sourcesContent":["import type { ComponentProps, CSSProperties } from 'react';\nimport { cx } from 'class-variance-authority';\n\nimport styles from './aspect-ratio.module.css';\n\n/*\n * Upstream (apps/v4/registry/bases/base/ui/aspect-ratio.tsx) is plain CSS\n * `aspect-ratio` markup: no primitive, no variant axis, just a `<div>` whose\n * ratio is threaded through as a `--ratio` custom property so `className`\n * can read it via `aspect-(--ratio)` (a Tailwind v4 arbitrary-value\n * utility). This kit has no Tailwind layer, so the CSS Modules translation\n * reads the same custom property directly: `aspect-ratio: var(--ratio)` in\n * aspect-ratio.module.css.\n */\nexport interface AspectRatioProps extends Omit<ComponentProps<'div'>, 'className'> {\n className?: string;\n /** Width-to-height ratio, e.g. `16 / 9` or `1`. */\n ratio: number;\n}\n\nexport function AspectRatio({ ratio, className, style, ...props }: AspectRatioProps) {\n return (\n <div\n // `--ratio` is consumer-facing per-instance geometry, not a theme\n // color/metric — it has no home in theme.css, the same reasoning as\n // Toast's `--peek`/Table's `--table-row-ring-inset` (see\n // tokens.test.ts's \"SAME part, own private use\" exemption).\n style={{ '--ratio': ratio, ...style } as CSSProperties}\n className={cx(styles.aspectRatio, className)}\n {...props}\n />\n );\n}\n"],"names":["AspectRatio","ratio","className","style","props","jsx","cx","styles"],"mappings":";;;;;AAoBO,SAASA,EAAY,EAAE,OAAAC,GAAO,WAAAC,GAAW,OAAAC,GAAO,GAAGC,KAA2B;AACnF,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MAKC,OAAO,EAAE,WAAWJ,GAAO,GAAGE,EAAA;AAAA,MAC9B,WAAWG,EAAGC,EAAO,aAAaL,CAAS;AAAA,MAC1C,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/attachment/public.js'
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as h } from "@base-ui/react/merge-props";
|
|
4
|
+
import { useRender as _ } from "@base-ui/react/use-render";
|
|
5
|
+
import { cx as o, cva as r } from "class-variance-authority";
|
|
6
|
+
import { useContext as l, createContext as u } from "react";
|
|
7
|
+
import { Button as d } from "./button.js";
|
|
8
|
+
import './chunks/attachment.rknKEWlr.css';const f = "_attachment_1njaq_20", p = "_sizeDefault_1njaq_61", v = "_attachmentContent_1njaq_67", z = "_sizeSm_1njaq_75", g = "_sizeXs_1njaq_89", A = "_orientationHorizontal_1njaq_107", j = "_orientationVertical_1njaq_114", q = "_attachmentMedia_1njaq_124", T = "_variantIcon_1njaq_185", N = "_variantImage_1njaq_188", D = "_attachmentTitle_1njaq_209", x = "_attachmentDescription_1njaq_220", C = "_attachmentActions_1njaq_236", I = "_attachmentAction_1njaq_236", V = "_attachmentTrigger_1njaq_258", M = "_attachmentGroup_1njaq_265", n = {
|
|
9
|
+
attachment: f,
|
|
10
|
+
sizeDefault: p,
|
|
11
|
+
attachmentContent: v,
|
|
12
|
+
sizeSm: z,
|
|
13
|
+
sizeXs: g,
|
|
14
|
+
orientationHorizontal: A,
|
|
15
|
+
orientationVertical: j,
|
|
16
|
+
attachmentMedia: q,
|
|
17
|
+
variantIcon: T,
|
|
18
|
+
variantImage: N,
|
|
19
|
+
attachmentTitle: D,
|
|
20
|
+
attachmentDescription: x,
|
|
21
|
+
attachmentActions: C,
|
|
22
|
+
attachmentAction: I,
|
|
23
|
+
attachmentTrigger: V,
|
|
24
|
+
attachmentGroup: M
|
|
25
|
+
}, s = u("done"), G = r(n.attachment, {
|
|
26
|
+
variants: {
|
|
27
|
+
size: {
|
|
28
|
+
default: n.sizeDefault,
|
|
29
|
+
sm: n.sizeSm,
|
|
30
|
+
xs: n.sizeXs
|
|
31
|
+
},
|
|
32
|
+
orientation: {
|
|
33
|
+
horizontal: n.orientationHorizontal,
|
|
34
|
+
vertical: n.orientationVertical
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "default",
|
|
39
|
+
orientation: "horizontal"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
function R({
|
|
43
|
+
className: a,
|
|
44
|
+
state: t = "done",
|
|
45
|
+
size: e = "default",
|
|
46
|
+
orientation: c = "horizontal",
|
|
47
|
+
...m
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ i(s.Provider, { value: t, children: /* @__PURE__ */ i(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
"data-state": t,
|
|
53
|
+
"data-size": e,
|
|
54
|
+
"data-orientation": c,
|
|
55
|
+
className: G({ size: e, orientation: c, className: a }),
|
|
56
|
+
...m
|
|
57
|
+
}
|
|
58
|
+
) });
|
|
59
|
+
}
|
|
60
|
+
const S = r(n.attachmentMedia, {
|
|
61
|
+
variants: {
|
|
62
|
+
variant: {
|
|
63
|
+
icon: n.variantIcon,
|
|
64
|
+
image: n.variantImage
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
variant: "icon"
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
function k({ className: a, variant: t = "icon", ...e }) {
|
|
72
|
+
return /* @__PURE__ */ i("div", { "data-variant": t, className: S({ variant: t, className: a }), ...e });
|
|
73
|
+
}
|
|
74
|
+
function w({ className: a, ...t }) {
|
|
75
|
+
return /* @__PURE__ */ i("div", { className: o(n.attachmentContent, a), ...t });
|
|
76
|
+
}
|
|
77
|
+
function E({ className: a, ...t }) {
|
|
78
|
+
const e = l(s);
|
|
79
|
+
return /* @__PURE__ */ i(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
className: o(n.attachmentTitle, (e === "uploading" || e === "processing") && "shimmer", a),
|
|
83
|
+
...t
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function F({ className: a, ...t }) {
|
|
88
|
+
return /* @__PURE__ */ i("span", { className: o(n.attachmentDescription, a), ...t });
|
|
89
|
+
}
|
|
90
|
+
function J({ className: a, ...t }) {
|
|
91
|
+
return /* @__PURE__ */ i("div", { className: o(n.attachmentActions, a), ...t });
|
|
92
|
+
}
|
|
93
|
+
function K({ className: a, variant: t, size: e = "sm", ...c }) {
|
|
94
|
+
return /* @__PURE__ */ i(
|
|
95
|
+
d,
|
|
96
|
+
{
|
|
97
|
+
variant: t ?? "ghost",
|
|
98
|
+
size: e,
|
|
99
|
+
className: o(n.attachmentAction, a),
|
|
100
|
+
...c
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function L({ className: a, render: t, type: e, ...c }) {
|
|
105
|
+
return _({
|
|
106
|
+
defaultTagName: "button",
|
|
107
|
+
render: t,
|
|
108
|
+
props: h(
|
|
109
|
+
{
|
|
110
|
+
type: t ? e : e ?? "button",
|
|
111
|
+
className: o(n.attachmentTrigger, a)
|
|
112
|
+
},
|
|
113
|
+
c
|
|
114
|
+
)
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function O({ className: a, ...t }) {
|
|
118
|
+
return /* @__PURE__ */ i("div", { className: o(n.attachmentGroup, "scroll-fade-x", "no-scrollbar", a), ...t });
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
R as Attachment,
|
|
122
|
+
K as AttachmentAction,
|
|
123
|
+
J as AttachmentActions,
|
|
124
|
+
w as AttachmentContent,
|
|
125
|
+
F as AttachmentDescription,
|
|
126
|
+
O as AttachmentGroup,
|
|
127
|
+
k as AttachmentMedia,
|
|
128
|
+
E as AttachmentTitle,
|
|
129
|
+
L as AttachmentTrigger,
|
|
130
|
+
S as attachmentMediaVariants,
|
|
131
|
+
G as attachmentVariants
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.js","sources":["../src/components/attachment/attachment.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport { createContext, useContext, type ComponentProps } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button.js';\nimport styles from './attachment.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Attachment\n * (registry/bases/base/ui/attachment.tsx): a file/image attachment card\n * with media, metadata, upload state, and actions. No primitive to lean\n * on — the upload state machine (`state`) is plain data-attribute-driven\n * CSS, same shape as Message/Bubble, for every part EXCEPT the shimmer\n * below.\n *\n * Uses two utilities from this package's global stylesheet\n * (src/styles/utilities.css, imported alongside theme.css — see that\n * file's own header): `shimmer` on `AttachmentTitle` while uploading or\n * processing, and `scroll-fade-x` + `no-scrollbar` on `AttachmentGroup`'s\n * scroll track.\n *\n * Upstream drives the shimmer purely through a CSS ancestor selector\n * (`group-data-[state=processing]/attachment:shimmer`) with no extra prop\n * on `AttachmentTitle` at all. `shimmer` is a GLOBAL utility class, not a\n * CSS Modules class — there is no CSS-only way to conditionally attach an\n * unrelated global class name to a descendant based on an ancestor's data\n * attribute (a plain descendant selector can style `.attachmentTitle`\n * directly, but it cannot make that element also match every rule the\n * literal `.shimmer` class carries). Every other ancestor-state read\n * below (`AttachmentMedia`'s size/orientation/error styling,\n * `AttachmentDescription`'s error tint) stays pure CSS for exactly this\n * reason — only the shimmer needs it. React context carries the state\n * down to `AttachmentTitle` instead, so the API stays prop-free like\n * upstream — the consumer never re-passes `state` to a child part.\n */\nconst AttachmentStateContext = createContext<AttachmentProps['state']>('done');\n\nconst attachmentVariants = cva(styles.attachment, {\n variants: {\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n xs: styles.sizeXs,\n },\n orientation: {\n horizontal: styles.orientationHorizontal,\n vertical: styles.orientationVertical,\n },\n },\n defaultVariants: {\n size: 'default',\n orientation: 'horizontal',\n },\n});\n\nexport interface AttachmentProps extends ComponentProps<'div'>, VariantProps<typeof attachmentVariants> {\n /**\n * The upload state. Drives styling (idle's dashed border, error's\n * destructive tint on the media/description) and `AttachmentTitle`'s\n * shimmer.\n * @default 'done'\n */\n state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';\n}\n\n/** The root attachment container. */\nexport function Attachment({\n className,\n state = 'done',\n size = 'default',\n orientation = 'horizontal',\n ...props\n}: AttachmentProps) {\n return (\n <AttachmentStateContext.Provider value={state}>\n <div\n data-state={state}\n data-size={size}\n data-orientation={orientation}\n className={attachmentVariants({ size, orientation, className })}\n {...props}\n />\n </AttachmentStateContext.Provider>\n );\n}\n\nconst attachmentMediaVariants = cva(styles.attachmentMedia, {\n variants: {\n variant: {\n icon: styles.variantIcon,\n image: styles.variantImage,\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n});\n\nexport interface AttachmentMediaProps\n extends ComponentProps<'div'>, VariantProps<typeof attachmentMediaVariants> {}\n\n/** The media slot for an icon or image preview. Sizes and tints itself off\n * the ancestor `Attachment`'s `size`/`orientation`/`state` via CSS — no\n * extra props needed. */\nexport function AttachmentMedia({ className, variant = 'icon', ...props }: AttachmentMediaProps) {\n return <div data-variant={variant} className={attachmentMediaVariants({ variant, className })} {...props} />;\n}\n\nexport type AttachmentContentProps = ComponentProps<'div'>;\n\n/** Wraps the title and description. */\nexport function AttachmentContent({ className, ...props }: AttachmentContentProps) {\n return <div className={cx(styles.attachmentContent, className)} {...props} />;\n}\n\nexport type AttachmentTitleProps = ComponentProps<'span'>;\n\n/** The attachment name. Shimmers (via the global `shimmer` utility class —\n * see this file's own header) while the ancestor `Attachment`'s `state` is\n * `'uploading'` or `'processing'` — read from context, not a prop. */\nexport function AttachmentTitle({ className, ...props }: AttachmentTitleProps) {\n const state = useContext(AttachmentStateContext);\n return (\n <span\n className={cx(styles.attachmentTitle, (state === 'uploading' || state === 'processing') && 'shimmer', className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentDescriptionProps = ComponentProps<'span'>;\n\n/** Secondary metadata such as the file type, size, or upload status. Picks\n * up the ancestor `Attachment`'s `error` tint via a CSS descendant\n * selector — no extra prop needed. */\nexport function AttachmentDescription({ className, ...props }: AttachmentDescriptionProps) {\n return <span className={cx(styles.attachmentDescription, className)} {...props} />;\n}\n\nexport type AttachmentActionsProps = ComponentProps<'div'>;\n\n/** A container for one or more actions, aligned to the end of the\n * attachment. */\nexport function AttachmentActions({ className, ...props }: AttachmentActionsProps) {\n return <div className={cx(styles.attachmentActions, className)} {...props} />;\n}\n\nexport type AttachmentActionProps = ButtonProps;\n\n/**\n * An action button. Renders the kit `Button` and accepts all of its props.\n *\n * DRIFT from upstream: shadcn's `AttachmentAction` defaults to\n * `size=\"icon-xs\"` — a dedicated micro icon-only step this kit's `Button`\n * does not have.\n * `size=\"sm\"` is the smallest step available; icon-only squaring already\n * works at any size via Button's own `[data-icon-only]` rule\n * (button.module.css), so the visual result is a slightly larger action\n * button (32px) than upstream's (24px), not a broken one.\n */\nexport function AttachmentAction({ className, variant, size = 'sm', ...props }: AttachmentActionProps) {\n return (\n <Button\n variant={variant ?? 'ghost'}\n size={size}\n className={cx(styles.attachmentAction, className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentTriggerProps = useRender.ComponentProps<'button'>;\n\n/** A full-card overlay that activates the attachment — opens a link or\n * dialog while `AttachmentActions` stay independently clickable (it sits\n * behind them in the stacking order). Renders a `<button>` by default. */\nexport function AttachmentTrigger({ className, render, type, ...props }: AttachmentTriggerProps) {\n return useRender({\n defaultTagName: 'button',\n render,\n props: mergeProps<'button'>(\n {\n type: render ? type : (type ?? 'button'),\n className: cx(styles.attachmentTrigger, className),\n },\n props,\n ),\n });\n}\n\nexport type AttachmentGroupProps = ComponentProps<'div'>;\n\n/** Lays out attachments in a horizontally scrollable, snapping row with an\n * edge fade. Applies `scroll-fade-x` and `no-scrollbar` (this package's\n * global utilities — see this file's own header) directly, by class name,\n * alongside the module's own layout class. */\nexport function AttachmentGroup({ className, ...props }: AttachmentGroupProps) {\n return <div className={cx(styles.attachmentGroup, 'scroll-fade-x', 'no-scrollbar', className)} {...props} />;\n}\n\nexport { attachmentMediaVariants, attachmentVariants };\n"],"names":["AttachmentStateContext","createContext","attachmentVariants","cva","styles","Attachment","className","state","size","orientation","props","jsx","attachmentMediaVariants","AttachmentMedia","variant","AttachmentContent","cx","AttachmentTitle","useContext","AttachmentDescription","AttachmentActions","AttachmentAction","Button","AttachmentTrigger","render","type","useRender","mergeProps","AttachmentGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;GAsCMA,IAAyBC,EAAwC,MAAM,GAEvEC,IAAqBC,EAAIC,EAAO,YAAY;AAAA,EAChD,UAAU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AAtB,GAAW,GAAGI,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,OAAA,EAAI,WAAWK,EAAGZ,EAAO,iBAAiB,iBAAiB,gBAAgBE,CAAS,GAAI,GAAGI,EAAA,CAAO;AAC5G;"}
|
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/avatar/public.js'
|
package/dist/avatar.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar as s } from "@base-ui/react/avatar";
|
|
3
|
+
import { cx as c, cva as i } from "class-variance-authority";
|
|
4
|
+
import './chunks/avatar.CsQmQnay.css';const u = "_avatar_1nwmy_33", l = "_sizeSm_1nwmy_75", m = "_sizeDefault_1nwmy_80", f = "_sizeLg_1nwmy_85", g = "_image_1nwmy_24", v = "_fallback_1nwmy_24", d = "_variantSolid_1nwmy_143", w = "_toneNeutral_1nwmy_143", y = "_toneAccent_1nwmy_148", p = "_toneInfo_1nwmy_153", S = "_toneSuccess_1nwmy_158", z = "_toneWarning_1nwmy_163", A = "_toneDanger_1nwmy_168", b = "_variantSoft_1nwmy_173", N = "_badge_1nwmy_26", D = "_group_1nwmy_243", k = "_groupCount_1nwmy_255", a = {
|
|
5
|
+
avatar: u,
|
|
6
|
+
sizeSm: l,
|
|
7
|
+
sizeDefault: m,
|
|
8
|
+
sizeLg: f,
|
|
9
|
+
image: g,
|
|
10
|
+
fallback: v,
|
|
11
|
+
variantSolid: d,
|
|
12
|
+
toneNeutral: w,
|
|
13
|
+
toneAccent: y,
|
|
14
|
+
toneInfo: p,
|
|
15
|
+
toneSuccess: S,
|
|
16
|
+
toneWarning: z,
|
|
17
|
+
toneDanger: A,
|
|
18
|
+
variantSoft: b,
|
|
19
|
+
badge: N,
|
|
20
|
+
group: D,
|
|
21
|
+
groupCount: k
|
|
22
|
+
}, C = i(a.avatar, {
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
default: a.sizeDefault,
|
|
26
|
+
sm: a.sizeSm,
|
|
27
|
+
lg: a.sizeLg
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
size: "default"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
function F({ className: n, size: t, ...o }) {
|
|
35
|
+
return /* @__PURE__ */ e(s.Root, { className: C({ size: t, className: n }), ...o });
|
|
36
|
+
}
|
|
37
|
+
function G({ className: n, ...t }) {
|
|
38
|
+
return /* @__PURE__ */ e(s.Image, { className: c(a.image, n), ...t });
|
|
39
|
+
}
|
|
40
|
+
const _ = {
|
|
41
|
+
tone: {
|
|
42
|
+
neutral: a.toneNeutral,
|
|
43
|
+
accent: a.toneAccent,
|
|
44
|
+
info: a.toneInfo,
|
|
45
|
+
success: a.toneSuccess,
|
|
46
|
+
warning: a.toneWarning,
|
|
47
|
+
danger: a.toneDanger
|
|
48
|
+
},
|
|
49
|
+
variant: {
|
|
50
|
+
solid: a.variantSolid,
|
|
51
|
+
soft: a.variantSoft
|
|
52
|
+
}
|
|
53
|
+
}, I = i(a.fallback, {
|
|
54
|
+
variants: _,
|
|
55
|
+
defaultVariants: { tone: "neutral", variant: "soft" }
|
|
56
|
+
});
|
|
57
|
+
function j({ className: n, tone: t, variant: o, ...r }) {
|
|
58
|
+
return /* @__PURE__ */ e(
|
|
59
|
+
s.Fallback,
|
|
60
|
+
{
|
|
61
|
+
className: I({ tone: t, variant: o, className: n }),
|
|
62
|
+
...r
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function B({ className: n, ...t }) {
|
|
67
|
+
return /* @__PURE__ */ e("span", { className: c(a.badge, n), ...t });
|
|
68
|
+
}
|
|
69
|
+
function R({ className: n, ...t }) {
|
|
70
|
+
return /* @__PURE__ */ e("div", { className: c(a.group, n), ...t });
|
|
71
|
+
}
|
|
72
|
+
const V = i(a.groupCount, {
|
|
73
|
+
variants: _,
|
|
74
|
+
defaultVariants: { tone: "neutral", variant: "soft" }
|
|
75
|
+
});
|
|
76
|
+
function $({ className: n, tone: t, variant: o, ...r }) {
|
|
77
|
+
return /* @__PURE__ */ e("div", { className: V({ tone: t, variant: o, className: n }), ...r });
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
F as Avatar,
|
|
81
|
+
B as AvatarBadge,
|
|
82
|
+
j as AvatarFallback,
|
|
83
|
+
R as AvatarGroup,
|
|
84
|
+
$ as AvatarGroupCount,
|
|
85
|
+
G as AvatarImage
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../src/components/avatar/avatar.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\n\nimport styles from './avatar.module.css';\n\n/*\n * Upstream (apps/v4/registry/bases/base/ui/avatar.tsx) is a six-part\n * composition: Avatar/AvatarImage/AvatarFallback wrap Base UI's Avatar\n * primitive; AvatarBadge/AvatarGroup/AvatarGroupCount are plain `<span>`/\n * `<div>` markup with no primitive underneath (Base UI ships no\n * group/badge concept for Avatar) that upstream styles purely through a\n * `data-size`/`group-data-[size=…]` Tailwind relationship — Avatar's own\n * `size` prop stamps `data-size` on the root, and every sibling part reads\n * it back off that ancestor via a `group/avatar` selector.\n *\n * This kit has no Tailwind `group-data` equivalent, so the same\n * ancestor-to-descendant relationship is expressed with CVA + plain CSS\n * class selectors instead: `size` drives one of the root's own\n * `.sizeDefault`/`.sizeSm`/`.sizeLg` classes (the kit's standard `size`\n * axis, see button.tsx), and AvatarFallback/AvatarBadge's per-size rules in\n * avatar.module.css select off that same class on the ancestor\n * (`.sizeSm .fallback`, `.sizeLg .badge`, …) — the \"ANCESTOR part read via\n * descendant\" idiom tokens.test.ts already sanctions for Card's\n * `--card-*` custom properties, applied here with a class instead of a\n * custom property. AvatarGroupCount has no `size` prop of its own upstream\n * either — it sizes itself from the group's siblings via a `:has()`\n * equivalent of Tailwind's `group-has-data-[size=…]` (see avatar.module.css).\n */\nconst avatarVariants = cva(styles.avatar, {\n variants: {\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n size: 'default',\n },\n});\n\nexport interface AvatarProps\n extends Omit<AvatarPrimitive.Root.Props, 'className'>,\n VariantProps<typeof avatarVariants> {\n className?: string;\n}\n\nexport function Avatar({ className, size, ...props }: AvatarProps) {\n return <AvatarPrimitive.Root className={avatarVariants({ size, className })} {...props} />;\n}\n\nexport interface AvatarImageProps extends Omit<AvatarPrimitive.Image.Props, 'className'> {\n className?: string;\n}\n\nexport function AvatarImage({ className, ...props }: AvatarImageProps) {\n return <AvatarPrimitive.Image className={cx(styles.image, className)} {...props} />;\n}\n\n/*\n * The fallback's fill, from the Figma spec sheet \"Phase 3 / Avatar\"\n * (node 40001346:4724): six identity tones crossed with a solid/soft\n * treatment, every cell bound to a theme variable rather than to a\n * per-person hex.\n *\n * Upstream ships AvatarFallback with no variants at all, painting one\n * --muted/--muted-foreground pair. That pair is exactly this matrix's\n * neutral+soft cell, so the mockup's palette lands as two additive CVA axes\n * whose defaults reproduce upstream's single look byte for byte — no\n * existing call site changes appearance, and the parts/props stay\n * shadcn-shaped.\n *\n * Tone is identity styling, not status — the mockup's own component\n * description says so, and it matters for the API: a tone is derived from\n * WHO the avatar stands for (a stable hash of a user id, a team color),\n * never from a live state. AvatarBadge remains the status channel.\n */\nconst fillAxes = {\n tone: {\n neutral: styles.toneNeutral,\n accent: styles.toneAccent,\n info: styles.toneInfo,\n success: styles.toneSuccess,\n warning: styles.toneWarning,\n danger: styles.toneDanger,\n },\n variant: {\n solid: styles.variantSolid,\n soft: styles.variantSoft,\n },\n};\n\nconst avatarFallbackVariants = cva(styles.fallback, {\n variants: fillAxes,\n defaultVariants: { tone: 'neutral', variant: 'soft' },\n});\n\nexport interface AvatarFallbackProps\n extends Omit<AvatarPrimitive.Fallback.Props, 'className'>,\n VariantProps<typeof avatarFallbackVariants> {\n className?: string;\n}\n\nexport function AvatarFallback({ className, tone, variant, ...props }: AvatarFallbackProps) {\n return (\n <AvatarPrimitive.Fallback\n className={avatarFallbackVariants({ tone, variant, className })}\n {...props}\n />\n );\n}\n\nexport interface AvatarBadgeProps extends Omit<ComponentProps<'span'>, 'className'> {\n className?: string;\n}\n\n// No Base UI primitive backs this part upstream either — a plain <span>\n// there and here, positioned onto the Avatar root's corner via CSS (see\n// avatar.module.css's `.badge`, which relies on `.avatar` being its\n// `position: relative` offset parent).\nexport function AvatarBadge({ className, ...props }: AvatarBadgeProps) {\n return <span className={cx(styles.badge, className)} {...props} />;\n}\n\nexport interface AvatarGroupProps extends Omit<ComponentProps<'div'>, 'className'> {\n className?: string;\n}\n\nexport function AvatarGroup({ className, ...props }: AvatarGroupProps) {\n return <div className={cx(styles.group, className)} {...props} />;\n}\n\n/*\n * The overflow chip carries the SAME fill axes as AvatarFallback (one\n * shared `fillAxes`, one shared set of CSS cells) rather than a private\n * copy: it is a circle sitting in the same overlapping stack as the toned\n * members it caps off, so \"+3\" has to be able to match them. Its size still\n * comes from its siblings via `:has()` (see avatar.module.css) — only the\n * fill is a prop, because size is a property of the group while tone is a\n * choice about this one chip.\n */\nconst avatarGroupCountVariants = cva(styles.groupCount, {\n variants: fillAxes,\n defaultVariants: { tone: 'neutral', variant: 'soft' },\n});\n\nexport interface AvatarGroupCountProps\n extends Omit<ComponentProps<'div'>, 'className'>,\n VariantProps<typeof avatarGroupCountVariants> {\n className?: string;\n}\n\nexport function AvatarGroupCount({ className, tone, variant, ...props }: AvatarGroupCountProps) {\n return <div className={avatarGroupCountVariants({ tone, variant, className })} {...props} />;\n}\n"],"names":["avatarVariants","cva","styles","Avatar","className","size","props","jsx","AvatarPrimitive","AvatarImage","cx","fillAxes","avatarFallbackVariants","AvatarFallback","tone","variant","AvatarB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