@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type MessageGroupProps = ComponentProps<'div'>;
|
|
3
|
+
/** Stacks consecutive `Message`s from the same sender. Purely a layout
|
|
4
|
+
* wrapper — see message.md's "Group" section for the accompanying pattern
|
|
5
|
+
* (an empty `MessageAvatar` on every message but the last). */
|
|
6
|
+
export declare function MessageGroup({ className, ...props }: MessageGroupProps): import("react").JSX.Element;
|
|
7
|
+
export interface MessageProps extends ComponentProps<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Which side of the conversation this row belongs to. Reverses the row
|
|
10
|
+
* (avatar/content order) and, via `data-align`, shifts `MessageContent`'s
|
|
11
|
+
* children and `MessageFooter`'s own content to the same edge.
|
|
12
|
+
* @default 'start'
|
|
13
|
+
*/
|
|
14
|
+
align?: 'start' | 'end';
|
|
15
|
+
}
|
|
16
|
+
/** The message row wrapper — avatar, alignment, header, and footer. Render
|
|
17
|
+
* the visible surface inside `MessageContent` via `Bubble`. */
|
|
18
|
+
export declare function Message({ className, align, ...props }: MessageProps): import("react").JSX.Element;
|
|
19
|
+
export type MessageAvatarProps = ComponentProps<'div'>;
|
|
20
|
+
/** The avatar slot, anchored to the bottom of the message. When the message
|
|
21
|
+
* has a `MessageFooter`, the avatar shifts up to stay aligned with the
|
|
22
|
+
* message surface instead of the footer below it. */
|
|
23
|
+
export declare function MessageAvatar({ className, ...props }: MessageAvatarProps): import("react").JSX.Element;
|
|
24
|
+
export type MessageContentProps = ComponentProps<'div'>;
|
|
25
|
+
/** Wraps the header, message surface, and footer. */
|
|
26
|
+
export declare function MessageContent({ className, ...props }: MessageContentProps): import("react").JSX.Element;
|
|
27
|
+
export type MessageHeaderProps = ComponentProps<'div'>;
|
|
28
|
+
/** Content above the message, such as a sender name. Stays aligned to the
|
|
29
|
+
* start regardless of `align`. */
|
|
30
|
+
export declare function MessageHeader({ className, ...props }: MessageHeaderProps): import("react").JSX.Element;
|
|
31
|
+
export type MessageFooterProps = ComponentProps<'div'>;
|
|
32
|
+
/** Content below the message, such as status or actions. Aligns to the
|
|
33
|
+
* message side. */
|
|
34
|
+
export declare function MessageFooter({ className, ...props }: MessageFooterProps): import("react").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/components/message/message.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAoB5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD;;+DAE+D;AAC/D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE;AAED,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,KAAK,CAAC;IACzD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CACzB;AAED;+DAC+D;AAC/D,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAe,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAE7E;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD;;qDAEqD;AACrD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,qDAAqD;AACrD,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAE1E;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD;kCACkC;AAClC,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD;mBACmB;AACnB,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, type MessageAvatarProps, type MessageContentProps, type MessageFooterProps, type MessageGroupProps, type MessageHeaderProps, type MessageProps, } from './message.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/message/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { MessageScroller as MessageScrollerPrimitive } from '@shadcn/react/message-scroller';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { ButtonProps } from '../button/button';
|
|
4
|
+
export type MessageScrollerProviderProps = ComponentProps<typeof MessageScrollerPrimitive.Provider>;
|
|
5
|
+
/**
|
|
6
|
+
* Holds the scroller's auto-follow state (anchor tracking, autoScroll
|
|
7
|
+
* config) via context — renders no DOM of its own. Wrap the whole chat
|
|
8
|
+
* surface (`MessageScroller` and anything reading `useMessageScroller*`)
|
|
9
|
+
* in exactly one `MessageScrollerProvider`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function MessageScrollerProvider(props: MessageScrollerProviderProps): import("react").JSX.Element;
|
|
12
|
+
export interface MessageScrollerProps extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Root>, 'className'> {
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The scroller's outer frame — a relatively-positioned flex column that
|
|
17
|
+
* clips overflow, so `MessageScrollerButton` (absolutely positioned) has
|
|
18
|
+
* something to anchor against. Give it a bounded height (flex child,
|
|
19
|
+
* fixed height, etc.); `MessageScrollerViewport` fills whatever height
|
|
20
|
+
* this resolves to.
|
|
21
|
+
*/
|
|
22
|
+
export declare function MessageScroller({ className, ...props }: MessageScrollerProps): import("react").JSX.Element;
|
|
23
|
+
export interface MessageScrollerViewportProps extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Viewport>, 'className'> {
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The scrolling element. Reads/writes native scroll position; the
|
|
28
|
+
* primitive attaches the scroll listener that drives auto-follow and the
|
|
29
|
+
* jump-button's visibility from here.
|
|
30
|
+
*/
|
|
31
|
+
export declare function MessageScrollerViewport({ className, ...props }: MessageScrollerViewportProps): import("react").JSX.Element;
|
|
32
|
+
export interface MessageScrollerContentProps extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Content>, 'className'> {
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
/** The message list itself — a flex column sized to its content's max height. */
|
|
36
|
+
export declare function MessageScrollerContent({ className, ...props }: MessageScrollerContentProps): import("react").JSX.Element;
|
|
37
|
+
export interface MessageScrollerItemProps extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Item>, 'className'> {
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One message. `messageId` is what `scrollToMessage` targets;
|
|
42
|
+
* `scrollAnchor` marks the item the auto-follow/anchor bookkeeping should
|
|
43
|
+
* treat as the current read position (typically the newest message).
|
|
44
|
+
* `content-visibility: auto` (see the CSS) keeps a long transcript cheap to
|
|
45
|
+
* render off-screen — jsdom does not implement it, so this optimization is
|
|
46
|
+
* untestable there (see message-scroller.test.tsx).
|
|
47
|
+
*/
|
|
48
|
+
export declare function MessageScrollerItem({ className, ...props }: MessageScrollerItemProps): import("react").JSX.Element;
|
|
49
|
+
export interface MessageScrollerButtonProps extends Omit<ComponentProps<typeof MessageScrollerPrimitive.Button>, 'className'>, Pick<ButtonProps, 'variant' | 'size'> {
|
|
50
|
+
className?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Floating jump-to-end/jump-to-start affordance. Renders as a kit `Button`
|
|
54
|
+
* via the `render` prop (default `secondary`/`sm`, overridable by
|
|
55
|
+
* `variant`/`size`, or replace `render` entirely) — same composition
|
|
56
|
+
* idiom as `AlertDialogCancel`. The primitive supplies `data-active`
|
|
57
|
+
* (visible/hidden), `inert`, and `tabindex` on its own; this file only
|
|
58
|
+
* styles the crossfade those states drive.
|
|
59
|
+
*
|
|
60
|
+
* Deliberately icon-only by default (no visible label) so the kit
|
|
61
|
+
* `Button`'s own icon-only square sizing kicks in — pass `aria-label` to
|
|
62
|
+
* override the default accessible name, or pass `children` for a labeled
|
|
63
|
+
* button instead. The primitive itself falls back to a visible "Scroll to
|
|
64
|
+
* end"/"Scroll to start" text node whenever `children` is nullish (not
|
|
65
|
+
* merely omitted — an explicit `''` is honored as real content), so `''`
|
|
66
|
+
* is passed by default to suppress that fallback: `Button`'s own
|
|
67
|
+
* `hasLabel` derivation already treats an empty string as "no label" (see
|
|
68
|
+
* button.tsx), producing the icon-only square. Upstream instead renders a
|
|
69
|
+
* permanent visually-hidden `sr-only` label span, which would defeat the
|
|
70
|
+
* icon-only auto-sizing here — `aria-label` is the kit's own convention
|
|
71
|
+
* for a bare icon button (see button.md) and needs no extra DOM node.
|
|
72
|
+
*/
|
|
73
|
+
export declare function MessageScrollerButton({ className, children, render, direction, variant, size, 'aria-label': ariaLabel, ...props }: MessageScrollerButtonProps): import("react").JSX.Element;
|
|
74
|
+
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from '@shadcn/react/message-scroller';
|
|
75
|
+
//# sourceMappingURL=message-scroller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.d.ts","sourceRoot":"","sources":["../../../src/components/message-scroller/message-scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAmB5D,MAAM,MAAM,4BAA4B,GAAG,cAAc,CACvD,OAAO,wBAAwB,CAAC,QAAQ,CACzC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,+BAE1E;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAE5E;AAED,MAAM,WAAW,4BACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,4BAA4B,+BAI5F;AAED,MAAM,WAAW,2BACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,2BAA2B,+BAI1F;AAED,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,+BAEpF;AAED,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,EAC/E,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,QAAQ,EACR,MAAM,EACN,SAAiB,EACjB,OAAqB,EACrB,IAAW,EACX,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,0BAA0B,+BAa5B;AAED,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { MessageScroller, type MessageScrollerProps, MessageScrollerButton, type MessageScrollerButtonProps, MessageScrollerContent, type MessageScrollerContentProps, MessageScrollerItem, type MessageScrollerItemProps, MessageScrollerProvider, type MessageScrollerProviderProps, MessageScrollerViewport, type MessageScrollerViewportProps, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from './message-scroller.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/message-scroller/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,kBAAkB,EAClB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
/** Matches the kit's two-step control scale used elsewhere for compact
|
|
5
|
+
* chrome (Table's `density`, Select's `size`) — `lg` is not offered here,
|
|
6
|
+
* mirroring upstream's own sm/default axis. */
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}
|
|
9
|
+
export declare function NativeSelect({ className, size, disabled, ...props }: NativeSelectProps): import("react").JSX.Element;
|
|
10
|
+
export type NativeSelectOptionProps = ComponentProps<'option'>;
|
|
11
|
+
export declare function NativeSelectOption({ className, ...props }: NativeSelectOptionProps): import("react").JSX.Element;
|
|
12
|
+
export type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;
|
|
13
|
+
export declare function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=native-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-select.d.ts","sourceRoot":"","sources":["../../../src/components/native-select/native-select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAc5C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;mDAE+C;IAC/C,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,IAAgB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAclG;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE/D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,+BAEtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/native-select/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenuPrimitive } from '@base-ui/react/navigation-menu';
|
|
2
|
+
export interface NavigationMenuProps<Value = unknown> extends Omit<NavigationMenuPrimitive.Root.Props<Value>, 'className'>, Pick<NavigationMenuPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'positionMethod' | 'collisionBoundary' | 'collisionPadding'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Where to portal the shared popup. Defaults to <body>. Pass a themed
|
|
6
|
+
* container when the theme is scoped to a subtree (data-theme on a
|
|
7
|
+
* container that isn't at document root) so the popup inherits its
|
|
8
|
+
* tokens and font — same contract as DropdownMenuContent/SelectContent.
|
|
9
|
+
*/
|
|
10
|
+
container?: NavigationMenuPrimitive.Portal.Props['container'];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The root. Unlike DropdownMenu/Select, the portal/positioner/popup/viewport
|
|
14
|
+
* tree is NOT assembled by each item's content — it lives here, rendered
|
|
15
|
+
* once as an automatic sibling of `children` (matching the upstream shadcn
|
|
16
|
+
* source, apps/v4/registry/bases/base/ui/navigation-menu.tsx: its
|
|
17
|
+
* `NavigationMenu` root renders `<NavigationMenuPositioner>` unconditionally
|
|
18
|
+
* alongside its children). That single Viewport is what every active
|
|
19
|
+
* NavigationMenuContent portals into and morphs to fit — see
|
|
20
|
+
* navigation-menu.module.css's header comment and NavigationMenuContent.mjs.
|
|
21
|
+
*/
|
|
22
|
+
export declare function NavigationMenu<Value = unknown>({ className, children, container, side, sideOffset, align, alignOffset, positionMethod, collisionBoundary, collisionPadding, ...props }: NavigationMenuProps<Value>): import("react").JSX.Element;
|
|
23
|
+
export interface NavigationMenuListProps extends Omit<NavigationMenuPrimitive.List.Props, 'className'> {
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function NavigationMenuList({ className, ...props }: NavigationMenuListProps): import("react").JSX.Element;
|
|
27
|
+
export interface NavigationMenuItemProps extends Omit<NavigationMenuPrimitive.Item.Props, 'className'> {
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function NavigationMenuItem({ className, ...props }: NavigationMenuItemProps): import("react").JSX.Element;
|
|
31
|
+
export interface NavigationMenuIconProps extends Omit<NavigationMenuPrimitive.Icon.Props, 'className'> {
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The trigger's chevron. A real part of Base UI's primitive (not a private
|
|
36
|
+
* helper like DropdownMenu's icons): NavigationMenuIcon reads its "is this
|
|
37
|
+
* item's popup open" state from context — it must be rendered inside a
|
|
38
|
+
* NavigationMenuItem — and NavigationMenuTrigger below already does so by
|
|
39
|
+
* default. Exported for a consumer composing a custom trigger.
|
|
40
|
+
*/
|
|
41
|
+
export declare function NavigationMenuIcon({ className, ...props }: NavigationMenuIconProps): import("react").JSX.Element;
|
|
42
|
+
export interface NavigationMenuTriggerProps extends Omit<NavigationMenuPrimitive.Trigger.Props, 'className'> {
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuTriggerProps): import("react").JSX.Element;
|
|
46
|
+
/**
|
|
47
|
+
* className recipe for a plain NavigationMenuLink that should sit in the
|
|
48
|
+
* row and look like a trigger without opening a popup (e.g. a "Pricing"
|
|
49
|
+
* link beside "Products"/"Solutions" triggers) — same idiom and same name
|
|
50
|
+
* as the upstream shadcn export (`navigationMenuTriggerStyle`), kept as a
|
|
51
|
+
* cva() call with no variants (yet) for the same reason upstream does:
|
|
52
|
+
* a stable, extensible recipe rather than a raw className re-export.
|
|
53
|
+
*/
|
|
54
|
+
export declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
55
|
+
export interface NavigationMenuContentProps extends Omit<NavigationMenuPrimitive.Content.Props, 'className'> {
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function NavigationMenuContent({ className, ...props }: NavigationMenuContentProps): import("react").JSX.Element;
|
|
59
|
+
export interface NavigationMenuLinkProps extends Omit<NavigationMenuPrimitive.Link.Props, 'className'> {
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare function NavigationMenuLink({ className, ...props }: NavigationMenuLinkProps): import("react").JSX.Element;
|
|
63
|
+
export interface NavigationMenuViewportProps extends Omit<NavigationMenuPrimitive.Viewport.Props, 'className'> {
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The clipping viewport every active NavigationMenuContent portals into.
|
|
68
|
+
* Rendered automatically by NavigationMenu (above) — exported as its own
|
|
69
|
+
* typed part for the same reason DropdownMenuGroup/SelectGroup are, even
|
|
70
|
+
* though a consumer never places it manually in the ordinary composition.
|
|
71
|
+
*/
|
|
72
|
+
export declare function NavigationMenuViewport({ className, ...props }: NavigationMenuViewportProps): import("react").JSX.Element;
|
|
73
|
+
export interface NavigationMenuIndicatorProps extends Omit<NavigationMenuPrimitive.Icon.Props, 'className'> {
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A small arrow that tracks the active trigger — see navigation-menu.module
|
|
78
|
+
* .css's `.indicator` comment for why it must be rendered as a child of the
|
|
79
|
+
* same NavigationMenuItem as its NavigationMenuTrigger (Base UI's per-item
|
|
80
|
+
* Icon context, not a shared list-level element with computed position).
|
|
81
|
+
*/
|
|
82
|
+
export declare function NavigationMenuIndicator({ className, ...props }: NavigationMenuIndicatorProps): import("react").JSX.Element;
|
|
83
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAM3F,MAAM,WAAW,mBAAmB,CAAC,KAAK,GAAG,OAAO,CAClD,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,EAClE,IAAI,CACF,uBAAuB,CAAC,UAAU,CAAC,KAAK,EAItC,MAAM,GACN,YAAY,GACZ,OAAO,GACP,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,CACrB;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,GAAG,OAAO,EAAE,EAC9C,SAAS,EACT,QAAQ,EACR,SAAS,EACT,IAAe,EACf,UAAc,EACd,KAAe,EACf,WAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,KAAK,CAAC,+BAsB5B;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAOlF;AAED,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,0BAA0B,+BAOlG;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,oFAAsB,CAAC;AAE9D,MAAM,WAAW,0BACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,0BAA0B,+BAExF;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED,MAAM,WAAW,2BACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,2BAA2B,+BAE1F;AAED,MAAM,WAAW,4BACf,SAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,4BAA4B,+BAM5F"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { NavigationMenu, type NavigationMenuProps, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIcon, type NavigationMenuIconProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, navigationMenuTriggerStyle, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, } from './navigation-menu.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/navigation-menu/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { buttonVariants } from '../button/button.js';
|
|
4
|
+
export type PaginationProps = ComponentProps<'nav'>;
|
|
5
|
+
export declare function Pagination({ className, ...props }: PaginationProps): import("react").JSX.Element;
|
|
6
|
+
export type PaginationContentProps = ComponentProps<'ul'>;
|
|
7
|
+
export declare function PaginationContent({ className, ...props }: PaginationContentProps): import("react").JSX.Element;
|
|
8
|
+
export type PaginationItemProps = ComponentProps<'li'>;
|
|
9
|
+
export declare function PaginationItem(props: PaginationItemProps): import("react").JSX.Element;
|
|
10
|
+
export interface PaginationLinkProps extends Omit<ComponentProps<'a'>, 'className'>, Pick<VariantProps<typeof buttonVariants>, 'size'> {
|
|
11
|
+
className?: string;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Square, icon-sized footprint (aspect-ratio 1, no horizontal padding) —
|
|
15
|
+
* the common case for a bare page number, matching upstream's
|
|
16
|
+
* `size="icon"` default. `PaginationPrevious`/`PaginationNext` opt out
|
|
17
|
+
* (`square={false}`): they carry an icon AND a text label side by side,
|
|
18
|
+
* so a fixed-width square would clip the label.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
square?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function PaginationLink({ className, isActive, size, square, ...props }: PaginationLinkProps): import("react").JSX.Element;
|
|
24
|
+
export interface PaginationPreviousProps extends Omit<PaginationLinkProps, 'size' | 'square'> {
|
|
25
|
+
/** Label text, hidden below the `sm` breakpoint (640px) — matching
|
|
26
|
+
* upstream's `hidden sm:block`. @default 'Previous' */
|
|
27
|
+
text?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react").JSX.Element;
|
|
30
|
+
export interface PaginationNextProps extends Omit<PaginationLinkProps, 'size' | 'square'> {
|
|
31
|
+
/** @default 'Next' */
|
|
32
|
+
text?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function PaginationNext({ className, text, ...props }: PaginationNextProps): import("react").JSX.Element;
|
|
35
|
+
export type PaginationEllipsisProps = ComponentProps<'span'>;
|
|
36
|
+
export declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): import("react").JSX.Element;
|
|
37
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BASlE;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEvD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,EAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,MAAM,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,IAAgB,EAChB,MAAa,EACb,GAAG,KAAK,EACT,EAAE,mBAAmB,+BAarB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3F;2DACuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,IAAiB,EACjB,GAAG,KAAK,EACT,EAAE,uBAAuB,+BAazB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,QAAQ,CAAC;IACvF,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAazF;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAOlF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationContentProps, type PaginationEllipsisProps, type PaginationItemProps, type PaginationLinkProps, type PaginationNextProps, type PaginationPreviousProps, type PaginationProps, } from './pagination.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export declare const Popover: typeof PopoverPrimitive.Root;
|
|
4
|
+
/**
|
|
5
|
+
* Base UI pass-through; props type re-exported (see dialog.tsx).
|
|
6
|
+
*/
|
|
7
|
+
export type PopoverProps = PopoverPrimitive.Root.Props;
|
|
8
|
+
export interface PopoverTriggerProps extends Omit<PopoverPrimitive.Trigger.Props, 'className'> {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function PopoverTrigger({ className, ...props }: PopoverTriggerProps): import("react").JSX.Element;
|
|
12
|
+
export interface PopoverContentProps extends Omit<PopoverPrimitive.Popup.Props, 'className'>, Pick<PopoverPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'positionMethod' | 'collisionBoundary' | 'collisionPadding'> {
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Where to portal the popup. Defaults to <body>. Pass a themed container
|
|
16
|
+
* when the theme is scoped to a subtree (data-theme on a container that
|
|
17
|
+
* isn't at document root) so the popup inherits its tokens and font.
|
|
18
|
+
*/
|
|
19
|
+
container?: PopoverPrimitive.Portal.Props['container'];
|
|
20
|
+
}
|
|
21
|
+
export declare function PopoverContent({ className, children, container, side, sideOffset, align, alignOffset, positionMethod, collisionBoundary, collisionPadding, ...props }: PopoverContentProps): import("react").JSX.Element;
|
|
22
|
+
export type PopoverHeaderProps = ComponentProps<'div'>;
|
|
23
|
+
export declare function PopoverHeader({ className, ...props }: PopoverHeaderProps): import("react").JSX.Element;
|
|
24
|
+
export interface PopoverTitleProps extends Omit<PopoverPrimitive.Title.Props, 'className'> {
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function PopoverTitle({ className, ...props }: PopoverTitleProps): import("react").JSX.Element;
|
|
28
|
+
export interface PopoverDescriptionProps extends Omit<PopoverPrimitive.Description.Props, 'className'> {
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): import("react").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,eAAO,MAAM,OAAO,8BAAwB,CAAC;AAC7C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAE1E;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,EACrD,IAAI,CACF,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAG/B,OAAO,GACP,aAAa,GACb,MAAM,GACN,YAAY,GACZ,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,CACrB;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACxD;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,SAAS,EACT,IAAe,EACf,UAAc,EACd,KAAgB,EAChB,WAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,mBAAmB,+BAmBrB;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAIlF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Popover, type PopoverProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, } from './popover.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/popover/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,aAAa,EACb,KAAK,kBAAkB,EACvB,YAAY,EACZ,KAAK,iBAAiB,EACtB,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
2
|
+
export interface ProgressProps extends Omit<ProgressPrimitive.Root.Props, 'className'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function Progress({ className, children, value, ...props }: ProgressProps): import("react").JSX.Element;
|
|
6
|
+
export interface ProgressTrackProps extends Omit<ProgressPrimitive.Track.Props, 'className'> {
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function ProgressTrack({ className, ...props }: ProgressTrackProps): import("react").JSX.Element;
|
|
10
|
+
export interface ProgressIndicatorProps extends Omit<ProgressPrimitive.Indicator.Props, 'className'> {
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): import("react").JSX.Element;
|
|
14
|
+
export interface ProgressLabelProps extends Omit<ProgressPrimitive.Label.Props, 'className'> {
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function ProgressLabel({ className, ...props }: ProgressLabelProps): import("react").JSX.Element;
|
|
18
|
+
export interface ProgressValueProps extends Omit<ProgressPrimitive.Value.Props, 'className'> {
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function ProgressValue({ className, ...props }: ProgressValueProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAiBxE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAS/E;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/progress/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,aAAa,EACb,KAAK,kBAAkB,EACvB,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Questionnaire, type QuestionnaireProps, QuestionnaireActions, type QuestionnaireActionsProps, QuestionnaireChoice, type QuestionnaireChoiceProps, QuestionnaireChoiceDescription, type QuestionnaireChoiceDescriptionProps, QuestionnaireChoiceInput, type QuestionnaireChoiceInputProps, QuestionnaireChoiceLabel, type QuestionnaireChoiceLabelProps, QuestionnaireChoiceShortcut, type QuestionnaireChoiceShortcutProps, QuestionnaireChoices, type QuestionnaireChoicesProps, QuestionnaireDescription, type QuestionnaireDescriptionProps, QuestionnaireError, type QuestionnaireErrorProps, QuestionnaireInput, type QuestionnaireInputProps, QuestionnaireItem, type QuestionnaireItemProps, QuestionnaireNext, type QuestionnaireNextProps, QuestionnairePrevious, type QuestionnairePreviousProps, QuestionnaireProgress, type QuestionnaireProgressProps, QuestionnaireSkip, type QuestionnaireSkipProps, QuestionnaireSubmit, type QuestionnaireSubmitProps, QuestionnaireTitle, type QuestionnaireTitleProps, } from './questionnaire.js';
|
|
2
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/questionnaire/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,mCAAmC,EACxC,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,2BAA2B,EAC3B,KAAK,gCAAgC,EACrC,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { ButtonProps } from '../button/button';
|
|
4
|
+
export interface QuestionnaireProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Root>, 'className'> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The stepper's root — a native `<form>`. Owns which item is current
|
|
9
|
+
* (`item`/`defaultItem`/`onItemChange`), the full `items` definition list
|
|
10
|
+
* (drives required/disabled/choices validation independent of what's
|
|
11
|
+
* actually rendered), and the keyboard-`shortcuts` mode
|
|
12
|
+
* (`'letters' | 'numbers'`, read by `QuestionnaireChoiceShortcut`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function Questionnaire({ className, ...props }: QuestionnaireProps): import("react").JSX.Element;
|
|
15
|
+
export interface QuestionnaireProgressProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Progress>, 'className'> {
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* `role="progressbar"` with a built-in "Question X of Y" text — the
|
|
20
|
+
* primitive supplies that default content itself (unlike upstream's own
|
|
21
|
+
* shadcn primitive, which needs the wrapper to supply it); pass `children`
|
|
22
|
+
* or `render` only to replace it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function QuestionnaireProgress({ className, ...props }: QuestionnaireProgressProps): import("react").JSX.Element;
|
|
25
|
+
export interface QuestionnaireItemProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Item>, 'className'> {
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One question. Renders as a `<fieldset>` for every item named in
|
|
30
|
+
* `Questionnaire`'s `items`, but only the current one is interactive — the
|
|
31
|
+
* rest stay mounted with native `hidden`+`inert` (no exit animation is
|
|
32
|
+
* possible across a `hidden` boundary; see questionnaire.md's "Deviations").
|
|
33
|
+
* `multiple` switches every descendant `QuestionnaireChoice` to a checkbox
|
|
34
|
+
* group instead of radios.
|
|
35
|
+
*/
|
|
36
|
+
export declare function QuestionnaireItem({ className, ...props }: QuestionnaireItemProps): import("react").JSX.Element;
|
|
37
|
+
export interface QuestionnaireTitleProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Title>, 'className'> {
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
/** Renders as `<legend>` — the item's accessible name. */
|
|
41
|
+
export declare function QuestionnaireTitle({ className, ...props }: QuestionnaireTitleProps): import("react").JSX.Element;
|
|
42
|
+
export interface QuestionnaireDescriptionProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Description>, 'className'> {
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function QuestionnaireDescription({ className, ...props }: QuestionnaireDescriptionProps): import("react").JSX.Element;
|
|
46
|
+
export interface QuestionnaireChoicesProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Choices>, 'className'> {
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The choice list's grid container. Carries `data-shortcuts` when the
|
|
51
|
+
* root's `shortcuts` mode is on, matching `QuestionnaireChoiceShortcut`'s
|
|
52
|
+
* own visibility. A `QuestionnaireInput` belongs inside this container, as
|
|
53
|
+
* its last cell, whenever an item offers a freeform answer alongside fixed
|
|
54
|
+
* choices — that is upstream's own composition, and it is what puts the
|
|
55
|
+
* field on the choice grid's rhythm instead of a row of its own.
|
|
56
|
+
*/
|
|
57
|
+
export declare function QuestionnaireChoices({ className, ...props }: QuestionnaireChoicesProps): import("react").JSX.Element;
|
|
58
|
+
export interface QuestionnaireChoiceInputProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.ChoiceInput>, 'className'> {
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The real `<input type="radio"|"checkbox">` — visually hidden (opacity 0,
|
|
63
|
+
* stretched over the whole `QuestionnaireChoice` row) but still the
|
|
64
|
+
* pointer/keyboard target and the element native form submission and
|
|
65
|
+
* `:checked`-based tooling reads. Exported standalone (upstream does not)
|
|
66
|
+
* for a consumer building a fully custom choice layout instead of
|
|
67
|
+
* `QuestionnaireChoice`'s built-in indicator.
|
|
68
|
+
*/
|
|
69
|
+
export declare function QuestionnaireChoiceInput({ className, ...props }: QuestionnaireChoiceInputProps): import("react").JSX.Element;
|
|
70
|
+
export interface QuestionnaireChoiceLabelProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.ChoiceLabel>, 'className'> {
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
export declare function QuestionnaireChoiceLabel({ className, ...props }: QuestionnaireChoiceLabelProps): import("react").JSX.Element;
|
|
74
|
+
export interface QuestionnaireChoiceShortcutProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.ChoiceShortcut>, 'className'> {
|
|
75
|
+
className?: string;
|
|
76
|
+
}
|
|
77
|
+
/** The single-letter/number key hint — empty and `hidden` unless the root's
|
|
78
|
+
* `shortcuts` mode assigned this choice one. */
|
|
79
|
+
export declare function QuestionnaireChoiceShortcut({ className, ...props }: QuestionnaireChoiceShortcutProps): import("react").JSX.Element;
|
|
80
|
+
export interface QuestionnaireChoiceProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Choice>, 'className'> {
|
|
81
|
+
className?: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* One selectable choice: label + hidden native input + a visual indicator
|
|
85
|
+
* (checkbox-square or radio-circle, driven by the `data-type` the
|
|
86
|
+
* primitive stamps on this element) + the label text + an optional
|
|
87
|
+
* shortcut hint.
|
|
88
|
+
*
|
|
89
|
+
* The indicator is hand-rolled rather than composing the kit's `Checkbox`/
|
|
90
|
+
* `RadioGroupItem` components, even though `QuestionnaireChoiceInput`'s
|
|
91
|
+
* type signature allows a `render` override: those kit components wrap
|
|
92
|
+
* Base UI's `Checkbox`/`Radio` primitives, which render as `<span
|
|
93
|
+
* role="checkbox"|"radio">` (see checkbox.module.css/radio-group.module.css'
|
|
94
|
+
* own comments) — never a real `<input>`. `@shadcn/react`'s questionnaire
|
|
95
|
+
* engine needs `ChoiceInput` to BE a native input (constraint validation,
|
|
96
|
+
* `name`-based radio grouping, the `type` it stamps as `data-type`), so
|
|
97
|
+
* swapping in a `<span>`-based render target would break it. This instead
|
|
98
|
+
* reuses the same visual language — box size, border, checked/dot/check
|
|
99
|
+
* treatment, disabled dim, invalid border — from checkbox.module.css/
|
|
100
|
+
* radio-group.module.css directly in questionnaire.module.css, keyed off
|
|
101
|
+
* this element's own `data-type`/`data-checked`/`data-disabled`/
|
|
102
|
+
* `data-invalid` attributes instead of Base UI's.
|
|
103
|
+
*/
|
|
104
|
+
export declare function QuestionnaireChoice({ className, children, ...props }: QuestionnaireChoiceProps): import("react").JSX.Element;
|
|
105
|
+
export type QuestionnaireChoiceDescriptionProps = ComponentProps<'span'>;
|
|
106
|
+
/**
|
|
107
|
+
* A second line under a choice's label — the supporting sentence that says
|
|
108
|
+
* what picking it means. Belongs among `QuestionnaireChoice`'s children,
|
|
109
|
+
* where `QuestionnaireChoiceLabel` stacks it under the label text. A plain
|
|
110
|
+
* styled `<span>` with no `@shadcn/react` primitive underneath, matching
|
|
111
|
+
* upstream's own `QuestionnaireChoiceDescription`; it carries no `id` and
|
|
112
|
+
* is not wired into `aria-describedby` because the label element already
|
|
113
|
+
* wraps it, so it is part of the choice's accessible name rather than a
|
|
114
|
+
* description of it.
|
|
115
|
+
*/
|
|
116
|
+
export declare function QuestionnaireChoiceDescription({ className, ...props }: QuestionnaireChoiceDescriptionProps): import("react").JSX.Element;
|
|
117
|
+
export interface QuestionnaireInputProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Input>, 'className'> {
|
|
118
|
+
className?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The freeform-answer field for an item with no `choices` — composes the
|
|
122
|
+
* kit `Input` via `render` (same idiom as `AlertDialogCancel`/
|
|
123
|
+
* `MessageScrollerButton`), so it looks like every other text field in the
|
|
124
|
+
* kit rather than a hand-restyled one.
|
|
125
|
+
*/
|
|
126
|
+
export declare function QuestionnaireInput({ className, render, ...props }: QuestionnaireInputProps): import("react").JSX.Element;
|
|
127
|
+
export interface QuestionnaireErrorProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Error>, 'className'> {
|
|
128
|
+
className?: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The item's validation message — hidden unless the item is invalid, and
|
|
132
|
+
* announced (`role="alert"`) when it appears. The primitive supplies
|
|
133
|
+
* default copy that already differs between a required and an optional
|
|
134
|
+
* item, same defaulting as `QuestionnaireProgress`; pass `children` to
|
|
135
|
+
* replace it. Belongs on every item, not just the required ones — see
|
|
136
|
+
* `QuestionnaireNext` for why a missing one reads as a dead button.
|
|
137
|
+
*/
|
|
138
|
+
export declare function QuestionnaireError({ className, ...props }: QuestionnaireErrorProps): import("react").JSX.Element;
|
|
139
|
+
export type QuestionnaireActionsProps = ComponentProps<'div'>;
|
|
140
|
+
/**
|
|
141
|
+
* Lays out `QuestionnairePrevious`/`QuestionnaireSkip`/
|
|
142
|
+
* `QuestionnaireNext`/`QuestionnaireSubmit` in a three-column row (Previous
|
|
143
|
+
* start-aligned, Skip and Next/Submit end-aligned) — a plain styled `<div>`
|
|
144
|
+
* with no `@shadcn/react` primitive underneath, matching upstream's own
|
|
145
|
+
* `QuestionnaireActions`.
|
|
146
|
+
*/
|
|
147
|
+
export declare function QuestionnaireActions({ className, ...props }: QuestionnaireActionsProps): import("react").JSX.Element;
|
|
148
|
+
interface QuestionnaireNavButtonOwnProps extends Pick<ButtonProps, 'variant' | 'size'> {
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface QuestionnairePreviousProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Previous>, 'className'>, QuestionnaireNavButtonOwnProps {
|
|
152
|
+
}
|
|
153
|
+
/** Goes back one item. Hidden (native `hidden`+`inert`) on the first item —
|
|
154
|
+
* there is nowhere to go back to. */
|
|
155
|
+
export declare function QuestionnairePrevious({ className, render, variant, size, ...props }: QuestionnairePreviousProps): import("react").JSX.Element;
|
|
156
|
+
export interface QuestionnaireSkipProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Skip>, 'className'>, QuestionnaireNavButtonOwnProps {
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Records that an optional item was deliberately left unanswered, then
|
|
160
|
+
* advances (or submits, on the last item). Hidden whenever the current item
|
|
161
|
+
* is `required` — a required item has no skip path. A skipped item is
|
|
162
|
+
* absent from the submitted `FormData`, which is what separates it from an
|
|
163
|
+
* item that merely has no answer yet; `QuestionnaireItem`'s
|
|
164
|
+
* `onStatusChange` is where that distinction is observable.
|
|
165
|
+
*/
|
|
166
|
+
export declare function QuestionnaireSkip({ className, render, variant, size, ...props }: QuestionnaireSkipProps): import("react").JSX.Element;
|
|
167
|
+
export interface QuestionnaireNextProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Next>, 'className'>, QuestionnaireNavButtonOwnProps {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Advances to the next item. Hidden on the last item —
|
|
171
|
+
* `QuestionnaireSubmit` takes over there. Carries the `Enter` shortcut.
|
|
172
|
+
*
|
|
173
|
+
* Deliberately never disables itself: activating it is what runs the
|
|
174
|
+
* current item's validation and surfaces the failure, so a disabled Next
|
|
175
|
+
* would leave the reader with no way to find out why they are stuck. An
|
|
176
|
+
* item passes only once it is answered — or, when it is optional, answered
|
|
177
|
+
* *or* explicitly skipped; an untouched optional item fails validation the
|
|
178
|
+
* same way a required one does, and `QuestionnaireSkip` is its way past.
|
|
179
|
+
* That makes `QuestionnaireError` effectively mandatory on every item:
|
|
180
|
+
* without it a failed Next is completely silent. Consumers that want the
|
|
181
|
+
* button dimmed instead can read `data-status` off it, or gate `disabled`
|
|
182
|
+
* themselves through `render`.
|
|
183
|
+
*/
|
|
184
|
+
export declare function QuestionnaireNext({ className, render, variant, size, ...props }: QuestionnaireNextProps): import("react").JSX.Element;
|
|
185
|
+
export interface QuestionnaireSubmitProps extends Omit<ComponentProps<typeof QuestionnairePrimitive.Submit>, 'className'>, QuestionnaireNavButtonOwnProps {
|
|
186
|
+
}
|
|
187
|
+
/** Submits the form. Visible only on the last item, sharing
|
|
188
|
+
* `QuestionnaireNext`'s grid cell (mutually exclusive via each one's own
|
|
189
|
+
* `hidden` state). */
|
|
190
|
+
export declare function QuestionnaireSubmit({ className, render, variant, size, ...props }: QuestionnaireSubmitProps): import("react").JSX.Element;
|
|
191
|
+
export {};
|
|
192
|
+
//# sourceMappingURL=questionnaire.d.ts.map
|