@gears-frontx/ui-kit 0.3.0-alpha.2 → 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 +37 -0
- 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 +33 -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 -129
- 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 +55 -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 -18
- package/package.json +16 -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/dist/typeset.css
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* shadcn/ui's Typeset (MIT, https://ui.shadcn.com/docs/typeset; see the
|
|
3
|
+
* repository NOTICE file for attribution) — a prose stylesheet for
|
|
4
|
+
* rendered markdown/HTML a consumer doesn't otherwise control (chat
|
|
5
|
+
* messages, docs, CMS content). Ported verbatim from the file the upstream
|
|
6
|
+
* builder generates (fetched from https://ui.shadcn.com/typeset.css at
|
|
7
|
+
* default settings; the builder's whole output IS this file — there is no
|
|
8
|
+
* separate "source" to diverge from), with exactly one class of edit: every
|
|
9
|
+
* `--color-*` Tailwind theme reference retargeted to this kit's own
|
|
10
|
+
* theme.css token of the same role (`--color-foreground` -> `--foreground`,
|
|
11
|
+
* `--color-muted-foreground` -> `--muted-foreground`, `--color-border` ->
|
|
12
|
+
* `--border`, `--color-primary` -> `--primary`, `--color-ring` -> `--ring`,
|
|
13
|
+
* `--color-muted` -> `--muted`) and `--font-heading` (a project-specific
|
|
14
|
+
* token the upstream generator assumes, not a Tailwind theme color) mapped
|
|
15
|
+
* to `--font-sans` — the kit ships one type family for both body and
|
|
16
|
+
* heading roles, unlike upstream's separate heading-font slot. `--radius`
|
|
17
|
+
* and `--font-mono` already match this kit's own token names and are
|
|
18
|
+
* unchanged. Every `var(--token, fallback)` keeps its upstream fallback
|
|
19
|
+
* verbatim, so the file still renders sanely even if theme.css isn't
|
|
20
|
+
* loaded.
|
|
21
|
+
*
|
|
22
|
+
* Global classes, like theme.css — this file is NOT a CSS Module. Import it
|
|
23
|
+
* once alongside theme.css and theme.css itself (Typeset reads its color/
|
|
24
|
+
* radius/font tokens from that file, and paints nothing on its own if it
|
|
25
|
+
* isn't loaded — see the fallbacks above).
|
|
26
|
+
*
|
|
27
|
+
* `@layer components` (native CSS cascade layers, not a Tailwind construct)
|
|
28
|
+
* is upstream's own device for staying overridable without `!important`
|
|
29
|
+
* — kept as-is: any un-layered rule a consumer writes, including a plain
|
|
30
|
+
* CSS Modules class from elsewhere in this kit, still wins the cascade over
|
|
31
|
+
* anything declared here.
|
|
32
|
+
*
|
|
33
|
+
* Usage (see typeset.md for the full contract): wrap rendered content in
|
|
34
|
+
* `<div class="typeset">`, optionally alongside a preset class
|
|
35
|
+
* (`typeset-docs`, `typeset-chat`, `typeset-reading`, `typeset-compact`,
|
|
36
|
+
* `typeset-large`) that retunes the three rhythm variables below. Add
|
|
37
|
+
* `not-typeset` (class or `data-not-typeset` attribute) to opt a nested
|
|
38
|
+
* subtree out entirely — e.g. an interactive kit component embedded inside
|
|
39
|
+
* otherwise-typeset content. Wrap a wide block (typically a `<table>`) in
|
|
40
|
+
* `typeset-scroll` to let it scroll horizontally instead of compressing.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
@layer components {
|
|
44
|
+
.typeset {
|
|
45
|
+
--typeset-font-body: inherit;
|
|
46
|
+
--typeset-font-heading: var(--font-sans);
|
|
47
|
+
--typeset-font-mono: var(--font-mono);
|
|
48
|
+
--typeset-size: 1em;
|
|
49
|
+
--typeset-leading: 1.75;
|
|
50
|
+
--typeset-flow: 1.25em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@layer components {
|
|
55
|
+
.typeset {
|
|
56
|
+
font-family: var(--typeset-font-body);
|
|
57
|
+
font-size: calc(var(--typeset-size) * 1.125);
|
|
58
|
+
line-height: var(--typeset-leading);
|
|
59
|
+
color: var(--foreground, currentColor);
|
|
60
|
+
overflow-wrap: break-word;
|
|
61
|
+
margin-trim: block-start;
|
|
62
|
+
|
|
63
|
+
--typeset-muted: var(--muted-foreground, color-mix(in oklab, currentColor 60%, transparent));
|
|
64
|
+
--typeset-rule: var(--border, color-mix(in oklab, currentColor 20%, transparent));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (min-width: 48rem), print {
|
|
68
|
+
.typeset {
|
|
69
|
+
font-size: var(--typeset-size);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.typeset *:not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
|
|
74
|
+
/* Paragraphs. */
|
|
75
|
+
&:where(p) {
|
|
76
|
+
margin-block-start: var(--typeset-flow);
|
|
77
|
+
margin-block-end: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Headings. */
|
|
81
|
+
&:where(h1, h2, h3, h4, h5, h6) {
|
|
82
|
+
color: var(--foreground, currentColor);
|
|
83
|
+
font-family: var(--typeset-font-heading);
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
margin-block-end: 0;
|
|
86
|
+
}
|
|
87
|
+
&:where(h1) {
|
|
88
|
+
font-size: 1.75em;
|
|
89
|
+
line-height: 1.3;
|
|
90
|
+
margin-block-start: var(--typeset-flow);
|
|
91
|
+
}
|
|
92
|
+
&:where(h2) {
|
|
93
|
+
font-size: 1.25em;
|
|
94
|
+
line-height: 1.4;
|
|
95
|
+
margin-block-start: calc(var(--typeset-flow) * 1.4);
|
|
96
|
+
}
|
|
97
|
+
&:where(h3) {
|
|
98
|
+
font-size: 1.125em;
|
|
99
|
+
line-height: 1.45;
|
|
100
|
+
margin-block-start: var(--typeset-flow);
|
|
101
|
+
}
|
|
102
|
+
&:where(h4) {
|
|
103
|
+
font-size: 1em;
|
|
104
|
+
line-height: 1.5;
|
|
105
|
+
margin-block-start: var(--typeset-flow);
|
|
106
|
+
}
|
|
107
|
+
&:where(h5) {
|
|
108
|
+
font-size: 0.875em;
|
|
109
|
+
line-height: 1.5;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
color: var(--typeset-muted);
|
|
112
|
+
margin-block-start: calc(var(--typeset-flow) / 0.875);
|
|
113
|
+
}
|
|
114
|
+
&:where(h6) {
|
|
115
|
+
font-size: 0.8125em;
|
|
116
|
+
line-height: 1.5;
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
letter-spacing: 0.08em;
|
|
119
|
+
text-transform: uppercase;
|
|
120
|
+
color: var(--typeset-muted);
|
|
121
|
+
margin-block-start: calc(var(--typeset-flow) / 0.8125);
|
|
122
|
+
}
|
|
123
|
+
/* Anchors. */
|
|
124
|
+
&:where([id]) {
|
|
125
|
+
scroll-margin-block-start: var(--typeset-flow);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Headings own the space below them. */
|
|
129
|
+
&:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
|
|
130
|
+
margin-block-start: 1em;
|
|
131
|
+
}
|
|
132
|
+
&:where(:is(h1, h2, h3, h4) :is(code)) {
|
|
133
|
+
font-size: 0.9em;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Links. */
|
|
137
|
+
&:where(a) {
|
|
138
|
+
color: inherit;
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
text-decoration-line: underline;
|
|
141
|
+
text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
|
|
142
|
+
}
|
|
143
|
+
&:where(a:hover) {
|
|
144
|
+
text-decoration-color: currentColor;
|
|
145
|
+
}
|
|
146
|
+
&:where(a:focus-visible) {
|
|
147
|
+
outline: 2px solid var(--ring, currentColor);
|
|
148
|
+
outline-offset: 2px;
|
|
149
|
+
border-radius: 0.125em;
|
|
150
|
+
}
|
|
151
|
+
&:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
|
|
152
|
+
font-weight: inherit;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Inline semantics. */
|
|
156
|
+
&:where(strong, b) {
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
&:where(:is(h1, h2, h3, h4) :is(strong, b)) {
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
}
|
|
162
|
+
&:where(mark) {
|
|
163
|
+
background-color: color-mix(in oklab, oklch(0.86 0.17 95) 40%, transparent);
|
|
164
|
+
color: inherit;
|
|
165
|
+
padding: 0.05em 0.15em;
|
|
166
|
+
border-radius: 0.2em;
|
|
167
|
+
}
|
|
168
|
+
&:where(abbr[title]) {
|
|
169
|
+
text-decoration-line: underline;
|
|
170
|
+
text-decoration-style: dotted;
|
|
171
|
+
text-underline-offset: 0.2em;
|
|
172
|
+
cursor: help;
|
|
173
|
+
}
|
|
174
|
+
&:where(del, s) {
|
|
175
|
+
color: var(--typeset-muted);
|
|
176
|
+
text-decoration-line: line-through;
|
|
177
|
+
}
|
|
178
|
+
&:where(sup, sub) {
|
|
179
|
+
font-size: 0.75em;
|
|
180
|
+
line-height: 0;
|
|
181
|
+
position: relative;
|
|
182
|
+
vertical-align: baseline;
|
|
183
|
+
}
|
|
184
|
+
&:where(sup) {
|
|
185
|
+
top: -0.5em;
|
|
186
|
+
}
|
|
187
|
+
&:where(sub) {
|
|
188
|
+
bottom: -0.25em;
|
|
189
|
+
}
|
|
190
|
+
&:where(sup a) {
|
|
191
|
+
text-decoration-line: none;
|
|
192
|
+
font-weight: 500;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Lists. */
|
|
196
|
+
&:where(ul) {
|
|
197
|
+
list-style-type: disc;
|
|
198
|
+
}
|
|
199
|
+
&:where(ol) {
|
|
200
|
+
list-style-type: decimal;
|
|
201
|
+
}
|
|
202
|
+
&:where(ul ul) {
|
|
203
|
+
list-style-type: circle;
|
|
204
|
+
}
|
|
205
|
+
&:where(ul ul ul) {
|
|
206
|
+
list-style-type: square;
|
|
207
|
+
}
|
|
208
|
+
&:where(ol[type='a' i]) {
|
|
209
|
+
list-style-type: lower-alpha;
|
|
210
|
+
}
|
|
211
|
+
&:where(ol[type='i' i]) {
|
|
212
|
+
list-style-type: lower-roman;
|
|
213
|
+
}
|
|
214
|
+
&:where(ol[type='A' s]) {
|
|
215
|
+
list-style-type: upper-alpha;
|
|
216
|
+
}
|
|
217
|
+
&:where(ol[type='I' s]) {
|
|
218
|
+
list-style-type: upper-roman;
|
|
219
|
+
}
|
|
220
|
+
&:where(ul, ol) {
|
|
221
|
+
margin-block-start: var(--typeset-flow);
|
|
222
|
+
margin-block-end: 0;
|
|
223
|
+
padding-inline-start: 1.5em;
|
|
224
|
+
}
|
|
225
|
+
&:where(li) {
|
|
226
|
+
margin-block-start: 0.5em;
|
|
227
|
+
padding-inline-start: 0.4em;
|
|
228
|
+
}
|
|
229
|
+
&:where(li > p, li > ul, li > ol) {
|
|
230
|
+
margin-block-start: 0.5em;
|
|
231
|
+
}
|
|
232
|
+
&:where(ul > li)::marker {
|
|
233
|
+
color: var(--typeset-muted);
|
|
234
|
+
}
|
|
235
|
+
&:where(ol > li)::marker {
|
|
236
|
+
color: var(--typeset-muted);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* GFM task lists. */
|
|
240
|
+
&:where(ul.contains-task-list) {
|
|
241
|
+
list-style-type: none;
|
|
242
|
+
padding-inline-start: 0.25em;
|
|
243
|
+
}
|
|
244
|
+
&:where(li.task-list-item > input[type='checkbox']) {
|
|
245
|
+
margin-inline-end: 0.5em;
|
|
246
|
+
vertical-align: -0.1em;
|
|
247
|
+
accent-color: var(--primary, currentColor);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* Disclosures. */
|
|
251
|
+
&:where(details) {
|
|
252
|
+
margin-block-start: var(--typeset-flow);
|
|
253
|
+
margin-block-end: 0;
|
|
254
|
+
}
|
|
255
|
+
&:where(summary) {
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
}
|
|
259
|
+
&:where(summary)::marker {
|
|
260
|
+
color: var(--typeset-muted);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Keyboard keys. */
|
|
264
|
+
&:where(kbd) {
|
|
265
|
+
font-family: inherit;
|
|
266
|
+
font-size: 0.85em;
|
|
267
|
+
font-weight: 500;
|
|
268
|
+
border: 1px solid var(--typeset-rule);
|
|
269
|
+
border-block-end-width: 2px;
|
|
270
|
+
border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
|
|
271
|
+
padding: 0.0625em 0.35em;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Definition lists. */
|
|
275
|
+
&:where(dl) {
|
|
276
|
+
margin-block-start: var(--typeset-flow);
|
|
277
|
+
margin-block-end: 0;
|
|
278
|
+
}
|
|
279
|
+
&:where(dt) {
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
margin-block-start: 1em;
|
|
282
|
+
}
|
|
283
|
+
&:where(dt + dt) {
|
|
284
|
+
margin-block-start: 0.25em;
|
|
285
|
+
}
|
|
286
|
+
&:where(dd) {
|
|
287
|
+
margin-block-start: 0.25em;
|
|
288
|
+
margin-inline-start: 0;
|
|
289
|
+
padding-inline-start: 1em;
|
|
290
|
+
color: var(--typeset-muted);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Inline code. */
|
|
294
|
+
&:where(:not(pre) > code) {
|
|
295
|
+
background-color: var(--muted, color-mix(in oklab, currentColor 8%, transparent));
|
|
296
|
+
font-family: var(--typeset-font-mono);
|
|
297
|
+
font-size: 0.85em;
|
|
298
|
+
border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
|
|
299
|
+
padding: 0.125em 0.3em;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Code blocks. */
|
|
303
|
+
&:where(pre) {
|
|
304
|
+
background-color: var(--muted, color-mix(in oklab, currentColor 8%, transparent));
|
|
305
|
+
font-family: var(--typeset-font-mono);
|
|
306
|
+
font-size: 0.875em;
|
|
307
|
+
line-height: 1.5;
|
|
308
|
+
tab-size: 2;
|
|
309
|
+
direction: ltr;
|
|
310
|
+
border-radius: var(--radius, 0.5em);
|
|
311
|
+
padding: 0.75em 1em;
|
|
312
|
+
overflow-x: auto;
|
|
313
|
+
margin-block-start: calc(var(--typeset-flow) / 0.875);
|
|
314
|
+
margin-block-end: 0;
|
|
315
|
+
}
|
|
316
|
+
&:where(pre code) {
|
|
317
|
+
background-color: transparent;
|
|
318
|
+
font-family: inherit;
|
|
319
|
+
font-size: inherit;
|
|
320
|
+
padding: 0;
|
|
321
|
+
border-radius: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* Blockquote. */
|
|
325
|
+
&:where(blockquote) {
|
|
326
|
+
border-inline-start: 2px solid var(--typeset-rule);
|
|
327
|
+
padding-inline-start: 1em;
|
|
328
|
+
margin-block-start: var(--typeset-flow);
|
|
329
|
+
margin-block-end: 0;
|
|
330
|
+
margin-inline: 0;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* Dividers. */
|
|
334
|
+
&:where(hr) {
|
|
335
|
+
border: 0;
|
|
336
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
337
|
+
margin-block-start: calc(var(--typeset-flow) * 2.4);
|
|
338
|
+
margin-block-end: 0;
|
|
339
|
+
}
|
|
340
|
+
&:where(hr + h1, hr + h2, hr + h3, hr + h4) {
|
|
341
|
+
margin-block-start: var(--typeset-flow);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* GFM footnotes. */
|
|
345
|
+
&:where(.footnotes, [data-footnotes]) {
|
|
346
|
+
margin-block-start: calc(var(--typeset-flow) * 2);
|
|
347
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
348
|
+
padding-block-start: var(--typeset-flow);
|
|
349
|
+
font-size: 0.875em;
|
|
350
|
+
color: var(--typeset-muted);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Math. */
|
|
354
|
+
&:where(math[display='block']) {
|
|
355
|
+
margin-block-start: var(--typeset-flow);
|
|
356
|
+
margin-block-end: 0;
|
|
357
|
+
overflow-x: auto;
|
|
358
|
+
overflow-y: hidden;
|
|
359
|
+
padding-block: 0.25em;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Media. */
|
|
363
|
+
&:where(img, video) {
|
|
364
|
+
border-radius: var(--radius, 0.5em);
|
|
365
|
+
max-width: 100%;
|
|
366
|
+
height: auto;
|
|
367
|
+
margin-block-start: var(--typeset-flow);
|
|
368
|
+
margin-block-end: 0;
|
|
369
|
+
}
|
|
370
|
+
&:where(p img) {
|
|
371
|
+
margin-block-start: 0;
|
|
372
|
+
}
|
|
373
|
+
&:where(figure) {
|
|
374
|
+
margin-block-start: var(--typeset-flow);
|
|
375
|
+
margin-block-end: 0;
|
|
376
|
+
margin-inline: 0;
|
|
377
|
+
}
|
|
378
|
+
&:where(figcaption, caption) {
|
|
379
|
+
color: var(--typeset-muted);
|
|
380
|
+
font-size: 0.875em;
|
|
381
|
+
text-align: center;
|
|
382
|
+
margin-block-start: calc(0.75em / 0.875);
|
|
383
|
+
}
|
|
384
|
+
&:where(caption) {
|
|
385
|
+
caption-side: bottom;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* Tables. Separators sit on cells, not tr:last-child: append-safe.
|
|
389
|
+
Bare tables stay real tables (keep their semantics) and wrap to fit. */
|
|
390
|
+
&:where(table) {
|
|
391
|
+
max-width: 100%;
|
|
392
|
+
font-size: 1em;
|
|
393
|
+
line-height: 1.5;
|
|
394
|
+
font-variant-numeric: tabular-nums;
|
|
395
|
+
border-collapse: separate;
|
|
396
|
+
border-spacing: 0;
|
|
397
|
+
border-block-end: 1px solid var(--typeset-rule);
|
|
398
|
+
margin-block-start: var(--typeset-flow);
|
|
399
|
+
margin-block-end: 0;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Horizontal scroll for any wide block. Wrap it and the wrapper owns the
|
|
403
|
+
flow margin. Tables shrink to fit, so widen the table to make it scroll
|
|
404
|
+
instead of compress. */
|
|
405
|
+
&:where(.typeset-scroll) {
|
|
406
|
+
overflow-x: auto;
|
|
407
|
+
margin-block-start: var(--typeset-flow);
|
|
408
|
+
}
|
|
409
|
+
&:where(.typeset-scroll > *) {
|
|
410
|
+
margin-block-start: 0;
|
|
411
|
+
}
|
|
412
|
+
&:where(.typeset-scroll table) {
|
|
413
|
+
width: max-content;
|
|
414
|
+
max-width: none;
|
|
415
|
+
}
|
|
416
|
+
&:where(thead th) {
|
|
417
|
+
font-weight: 500;
|
|
418
|
+
text-align: start;
|
|
419
|
+
white-space: nowrap;
|
|
420
|
+
padding: 0.65em 1em;
|
|
421
|
+
}
|
|
422
|
+
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
423
|
+
padding: 0.75em 1em;
|
|
424
|
+
text-align: start;
|
|
425
|
+
vertical-align: top;
|
|
426
|
+
border-block-start: 1px solid var(--typeset-rule);
|
|
427
|
+
}
|
|
428
|
+
&:where(tbody th, tfoot th) {
|
|
429
|
+
font-weight: 500;
|
|
430
|
+
}
|
|
431
|
+
&:where(th:first-child, td:first-child) {
|
|
432
|
+
padding-inline-start: 0;
|
|
433
|
+
}
|
|
434
|
+
&:where(th[align='center'], td[align='center']) {
|
|
435
|
+
text-align: center;
|
|
436
|
+
}
|
|
437
|
+
&:where(th[align='right'], td[align='right']) {
|
|
438
|
+
text-align: end;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* Blocks inside list items keep the list's tighter rhythm. */
|
|
442
|
+
&:where(li > blockquote, li > table, li > figure) {
|
|
443
|
+
margin-block-start: 0.5em;
|
|
444
|
+
}
|
|
445
|
+
&:where(li > pre) {
|
|
446
|
+
margin-block-start: calc(0.5em / 0.875);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@media print {
|
|
450
|
+
&:where(pre, table, blockquote, figure) {
|
|
451
|
+
break-inside: avoid;
|
|
452
|
+
}
|
|
453
|
+
&:where(h1, h2, h3, h4) {
|
|
454
|
+
break-after: avoid;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* Forced colors strips the code background, so give it a border. */
|
|
459
|
+
@media (forced-colors: active) {
|
|
460
|
+
&:where(:not(pre) > code) {
|
|
461
|
+
border: 1px solid;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* First child adds no space above. Last so it wins ties. */
|
|
467
|
+
.typeset
|
|
468
|
+
> :where(:first-child):not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)),
|
|
469
|
+
.typeset
|
|
470
|
+
> :where(:first-child)
|
|
471
|
+
> :where(:first-child):not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)),
|
|
472
|
+
.typeset
|
|
473
|
+
:where(li > :first-child, blockquote > :first-child, td > :first-child, th > :first-child, dd > :first-child, figure > :first-child, figure > picture > img):not(
|
|
474
|
+
:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)
|
|
475
|
+
) {
|
|
476
|
+
margin-block-start: 0;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* ---------------------------------------------------------------------- */
|
|
481
|
+
/* Presets */
|
|
482
|
+
/* ---------------------------------------------------------------------- */
|
|
483
|
+
|
|
484
|
+
/*
|
|
485
|
+
* Rhythm presets, from the docs' own worked examples (typeset.mdx's "Custom
|
|
486
|
+
* Typesets"/"Custom Themes"/"Accessibility and Dark Mode" sections) — every
|
|
487
|
+
* value below is copied from there verbatim, not invented for this port.
|
|
488
|
+
* Each overrides only the --typeset-* variables it needs to; anything left
|
|
489
|
+
* unset falls through to the `.typeset` defaults above.
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
/* Tighter rhythm for chat bubbles — less vertical space per message. */
|
|
493
|
+
.typeset-chat {
|
|
494
|
+
--typeset-flow: 1em;
|
|
495
|
+
--typeset-leading: 1.6;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* Roomier rhythm for long-form docs, plus a fixed base size independent of
|
|
499
|
+
* the surrounding UI's font-size. */
|
|
500
|
+
.typeset-docs {
|
|
501
|
+
--typeset-size: 15px;
|
|
502
|
+
--typeset-flow: 1.5em;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* Reading mode: larger type, generous leading and flow. Upstream pairs this
|
|
506
|
+
* preset with a serif body face; the kit ships one family for every role
|
|
507
|
+
* (see this file's header on --font-heading), so the difference here is
|
|
508
|
+
* rhythm and scale, not a change of typeface. */
|
|
509
|
+
.typeset-reading {
|
|
510
|
+
--typeset-font-body: var(--font-sans);
|
|
511
|
+
--typeset-font-heading: var(--font-sans);
|
|
512
|
+
--typeset-size: 18px;
|
|
513
|
+
--typeset-leading: 1.9;
|
|
514
|
+
--typeset-flow: 2em;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/* Compact UI surfaces: smaller type, tighter rhythm. */
|
|
518
|
+
.typeset-compact {
|
|
519
|
+
--typeset-font-body: var(--font-sans);
|
|
520
|
+
--typeset-font-heading: var(--font-sans);
|
|
521
|
+
--typeset-size: 14px;
|
|
522
|
+
--typeset-leading: 1.6;
|
|
523
|
+
--typeset-flow: 1em;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* Accessibility preset for readers who want larger type and more room —
|
|
527
|
+
* expose this as a user-facing setting, not a fixed default. */
|
|
528
|
+
.typeset-large {
|
|
529
|
+
--typeset-size: 16px;
|
|
530
|
+
--typeset-leading: 2;
|
|
531
|
+
--typeset-flow: 2em;
|
|
532
|
+
}
|