@psnext/design-system 2.5.0 → 2.7.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/DESIGN.md +7 -2
- package/SKILL.md +1 -1
- package/dist/Header.cjs +2 -2
- package/dist/Header.js +2 -2
- package/dist/Logo.cjs +322 -315
- package/dist/Logo.cjs.map +1 -1
- package/dist/Logo.js +322 -315
- package/dist/Logo.js.map +1 -1
- package/dist/Mosaic.cjs +72 -15
- package/dist/Mosaic.cjs.map +1 -1
- package/dist/Mosaic.js +72 -15
- package/dist/Mosaic.js.map +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -3
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +6 -6
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index12.d.cts +11 -11
- package/dist/index12.d.ts +11 -11
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.cts.map +1 -1
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +2 -2
- package/dist/index15.d.ts +2 -2
- package/dist/index16.d.cts +3 -3
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +3 -3
- package/dist/index17.d.cts +2 -2
- package/dist/index17.d.ts +2 -2
- package/dist/index18.d.cts +4 -4
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +4 -4
- package/dist/index19.d.cts +11 -11
- package/dist/index19.d.cts.map +1 -1
- package/dist/index19.d.ts +11 -11
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.ts +8 -8
- package/dist/index2.d.ts.map +1 -1
- package/dist/index20.d.cts +10 -10
- package/dist/index20.d.ts +10 -10
- package/dist/index21.d.cts +30 -81
- package/dist/index21.d.cts.map +1 -1
- package/dist/index21.d.ts +30 -81
- package/dist/index21.d.ts.map +1 -1
- package/dist/index22.d.cts +114 -27
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +114 -27
- package/dist/index22.d.ts.map +1 -1
- package/dist/index23.d.cts +75 -53
- package/dist/index23.d.cts.map +1 -1
- package/dist/index23.d.ts +75 -53
- package/dist/index23.d.ts.map +1 -1
- package/dist/index24.d.cts +28 -93
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +28 -93
- package/dist/index24.d.ts.map +1 -1
- package/dist/index25.d.cts +58 -33
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +58 -33
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +93 -11
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +93 -11
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +32 -63
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +32 -63
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +11 -48
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +11 -48
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +68 -59
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +68 -59
- package/dist/index29.d.ts.map +1 -1
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.cts.map +1 -1
- package/dist/index3.d.ts +13 -13
- package/dist/index30.d.cts +47 -30
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +47 -30
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +63 -17
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +63 -17
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +29 -80
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +29 -80
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +19 -34
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +19 -34
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +80 -18
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +80 -18
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +32 -51
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +32 -51
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +19 -36
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +19 -36
- package/dist/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +43 -61
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +43 -61
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +35 -11
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +35 -11
- package/dist/index38.d.ts.map +1 -1
- package/dist/index39.d.cts +68 -20
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +68 -20
- package/dist/index39.d.ts.map +1 -1
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +2 -2
- package/dist/index40.d.cts +14 -15
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +14 -15
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +22 -98
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +22 -98
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +16 -120
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +16 -120
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +99 -16
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +99 -16
- package/dist/index43.d.ts.map +1 -1
- package/dist/index44.d.cts +184 -49
- package/dist/index44.d.cts.map +1 -1
- package/dist/index44.d.ts +184 -49
- package/dist/index44.d.ts.map +1 -1
- package/dist/index45.d.cts +16 -39
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +16 -39
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +37 -77
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +37 -77
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +96 -1
- package/dist/index47.d.cts.map +1 -0
- package/dist/index47.d.ts +96 -1
- package/dist/index47.d.ts.map +1 -0
- package/dist/index48.d.cts +1 -127
- package/dist/index48.d.ts +1 -127
- package/dist/index49.d.cts +121 -42
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +121 -42
- package/dist/index49.d.ts.map +1 -1
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.cts.map +1 -1
- package/dist/index5.d.ts +7 -7
- package/dist/index50.d.cts +42 -22
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +42 -22
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +21 -34
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +21 -34
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +33 -17
- package/dist/index52.d.cts.map +1 -1
- package/dist/index52.d.ts +33 -17
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +18 -14
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +18 -14
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +12 -60
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +12 -60
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +51 -80
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +51 -80
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +91 -24
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +91 -24
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +25 -203
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +25 -203
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +198 -15
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +198 -15
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +21 -23
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +21 -23
- package/dist/index59.d.ts.map +1 -1
- package/dist/index6.d.cts +5 -5
- package/dist/index6.d.ts +5 -5
- package/dist/index60.d.cts +21 -18
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +21 -18
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +21 -8
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +21 -8
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +6 -44
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +6 -44
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +46 -47
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +46 -47
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +47 -59
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +47 -59
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +56 -38
- package/dist/index65.d.cts.map +1 -1
- package/dist/index65.d.ts +56 -38
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +37 -16
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +37 -16
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +20 -41
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +20 -41
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +41 -19
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +41 -19
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +14 -39
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +14 -39
- package/dist/index69.d.ts.map +1 -1
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.cts.map +1 -1
- package/dist/index7.d.ts +8 -8
- package/dist/index70.d.cts +39 -16
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +39 -16
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +17 -83
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +15 -81
- package/dist/index71.d.ts.map +1 -1
- package/dist/index72.d.cts +83 -11
- package/dist/index72.d.cts.map +1 -1
- package/dist/index72.d.ts +83 -11
- package/dist/index72.d.ts.map +1 -1
- package/dist/index73.d.cts +12 -30
- package/dist/index73.d.cts.map +1 -1
- package/dist/index73.d.ts +12 -30
- package/dist/index73.d.ts.map +1 -1
- package/dist/index74.d.cts +28 -27
- package/dist/index74.d.cts.map +1 -1
- package/dist/index74.d.ts +28 -27
- package/dist/index74.d.ts.map +1 -1
- package/dist/index75.d.cts +33 -83
- package/dist/index75.d.cts.map +1 -1
- package/dist/index75.d.ts +33 -83
- package/dist/index75.d.ts.map +1 -1
- package/dist/index76.d.cts +82 -273
- package/dist/index76.d.cts.map +1 -1
- package/dist/index76.d.ts +82 -273
- package/dist/index76.d.ts.map +1 -1
- package/dist/index77.d.cts +278 -0
- package/dist/index77.d.cts.map +1 -0
- package/dist/index77.d.ts +278 -0
- package/dist/index77.d.ts.map +1 -0
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.cts.map +1 -1
- package/dist/index8.d.ts +3 -3
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.ts +2 -2
- package/dist/layouts/Container/index.d.cts +1 -1
- package/dist/layouts/Container/index.d.ts +1 -1
- package/dist/layouts/MultiColumn/index.d.cts +1 -1
- package/dist/layouts/MultiColumn/index.d.ts +1 -1
- package/dist/layouts/PageBackground/index.d.cts +1 -1
- package/dist/layouts/PageBackground/index.d.ts +1 -1
- package/dist/layouts/Stack/index.d.cts +1 -1
- package/dist/layouts/Stack/index.d.ts +1 -1
- package/dist/layouts/TwoColumn/index.d.cts +1 -1
- package/dist/layouts/TwoColumn/index.d.ts +1 -1
- package/dist/layouts/index.d.cts +5 -5
- package/dist/layouts/index.d.ts +5 -5
- package/dist/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.cts.map +1 -1
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Header/index.d.cts +1 -1
- package/dist/patterns/Header/index.d.ts +1 -1
- package/dist/patterns/MediaObject/index.d.cts +14 -14
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +11 -11
- package/dist/patterns/MediaObject/index.d.ts.map +1 -1
- package/dist/patterns/NavRail/index.d.cts +1 -1
- package/dist/patterns/NavRail/index.d.ts +1 -1
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- package/dist/patterns/SectionCard/index.d.cts.map +1 -1
- package/dist/patterns/SectionCard/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts +3 -3
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +3 -3
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/primitives/Combobox/index.cjs +210 -0
- package/dist/primitives/Combobox/index.cjs.map +1 -0
- package/dist/primitives/Combobox/index.d.cts +2 -0
- package/dist/primitives/Combobox/index.d.ts +2 -0
- package/dist/primitives/Combobox/index.js +199 -0
- package/dist/primitives/Combobox/index.js.map +1 -0
- package/dist/primitives/ContextMenu/index.d.cts +1 -1
- package/dist/primitives/ContextMenu/index.d.ts +1 -1
- package/dist/primitives/Credits/index.d.cts +1 -1
- package/dist/primitives/Credits/index.d.ts +1 -1
- package/dist/primitives/Drawer/index.d.cts +1 -1
- package/dist/primitives/Drawer/index.d.ts +1 -1
- package/dist/primitives/DropdownMenu/index.d.cts +1 -1
- package/dist/primitives/DropdownMenu/index.d.ts +1 -1
- package/dist/primitives/Empty/index.d.cts +1 -1
- package/dist/primitives/Empty/index.d.ts +1 -1
- package/dist/primitives/Field/index.d.cts +1 -1
- package/dist/primitives/Field/index.d.ts +1 -1
- package/dist/primitives/FileUpload/index.d.cts +1 -1
- package/dist/primitives/FileUpload/index.d.ts +1 -1
- package/dist/primitives/Form/index.d.cts +1 -1
- package/dist/primitives/Form/index.d.ts +1 -1
- package/dist/primitives/Heading/index.d.cts +1 -1
- package/dist/primitives/Heading/index.d.ts +1 -1
- package/dist/primitives/HoverCard/index.d.cts +1 -1
- package/dist/primitives/HoverCard/index.d.ts +1 -1
- package/dist/primitives/Icon/index.d.cts +1 -1
- package/dist/primitives/Icon/index.d.ts +1 -1
- package/dist/primitives/InfoBanner/index.d.cts +1 -1
- package/dist/primitives/InfoBanner/index.d.ts +1 -1
- package/dist/primitives/Input/index.d.cts +1 -1
- package/dist/primitives/Input/index.d.ts +1 -1
- package/dist/primitives/InputGroup/index.d.cts +1 -1
- package/dist/primitives/InputGroup/index.d.ts +1 -1
- package/dist/primitives/InputOtp/index.d.cts +1 -1
- package/dist/primitives/InputOtp/index.d.ts +1 -1
- package/dist/primitives/Item/index.d.cts +1 -1
- package/dist/primitives/Item/index.d.ts +1 -1
- package/dist/primitives/Kbd/index.d.cts +1 -1
- package/dist/primitives/Kbd/index.d.ts +1 -1
- package/dist/primitives/Label/index.d.cts +1 -1
- package/dist/primitives/Label/index.d.ts +1 -1
- package/dist/primitives/Link/index.d.cts +1 -1
- package/dist/primitives/Link/index.d.ts +1 -1
- package/dist/primitives/Logo/index.d.cts +1 -1
- package/dist/primitives/Logo/index.d.ts +1 -1
- package/dist/primitives/Menubar/index.d.cts +1 -1
- package/dist/primitives/Menubar/index.d.ts +1 -1
- package/dist/primitives/Mosaic/index.d.cts +2 -2
- package/dist/primitives/Mosaic/index.d.ts +2 -2
- package/dist/primitives/NativeSelect/index.d.cts +1 -1
- package/dist/primitives/NativeSelect/index.d.ts +1 -1
- package/dist/primitives/NavRail/index.d.cts +2 -2
- package/dist/primitives/NavRail/index.d.ts +2 -2
- package/dist/primitives/NavigationMenu/index.d.cts +1 -1
- package/dist/primitives/NavigationMenu/index.d.ts +1 -1
- package/dist/primitives/NotchedCard/index.d.cts +1 -1
- package/dist/primitives/NotchedCard/index.d.ts +1 -1
- package/dist/primitives/Pagination/index.d.cts +1 -1
- package/dist/primitives/Pagination/index.d.ts +1 -1
- package/dist/primitives/Popover/index.d.cts +1 -1
- package/dist/primitives/Popover/index.d.ts +1 -1
- package/dist/primitives/Progress/index.d.cts +1 -1
- package/dist/primitives/Progress/index.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.d.cts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +1 -1
- package/dist/primitives/Resizable/index.d.cts +1 -1
- package/dist/primitives/Resizable/index.d.ts +1 -1
- package/dist/primitives/ScrollArea/index.d.cts +1 -1
- package/dist/primitives/ScrollArea/index.d.ts +1 -1
- package/dist/primitives/Select/index.d.cts +1 -1
- package/dist/primitives/Select/index.d.ts +1 -1
- package/dist/primitives/Sheet/index.d.cts +1 -1
- package/dist/primitives/Sheet/index.d.ts +1 -1
- package/dist/primitives/Sidebar/index.d.cts +1 -1
- package/dist/primitives/Sidebar/index.d.ts +1 -1
- package/dist/primitives/Skeleton/index.d.cts +1 -1
- package/dist/primitives/Skeleton/index.d.ts +1 -1
- package/dist/primitives/Slider/index.d.cts +1 -1
- package/dist/primitives/Slider/index.d.ts +1 -1
- package/dist/primitives/Sonner/index.d.cts +1 -1
- package/dist/primitives/Sonner/index.d.ts +1 -1
- package/dist/primitives/Spinner/index.d.cts +1 -1
- package/dist/primitives/Spinner/index.d.ts +1 -1
- package/dist/primitives/Switch/index.d.cts +1 -1
- package/dist/primitives/Switch/index.d.ts +1 -1
- package/dist/primitives/Table/index.d.cts +1 -1
- package/dist/primitives/Table/index.d.ts +1 -1
- package/dist/primitives/Tabs/index.cjs +153 -10
- package/dist/primitives/Tabs/index.cjs.map +1 -1
- package/dist/primitives/Tabs/index.d.cts +1 -1
- package/dist/primitives/Tabs/index.d.ts +1 -1
- package/dist/primitives/Tabs/index.js +153 -10
- package/dist/primitives/Tabs/index.js.map +1 -1
- package/dist/primitives/Text/index.d.cts +1 -1
- package/dist/primitives/Text/index.d.ts +1 -1
- package/dist/primitives/Textarea/index.d.cts +1 -1
- package/dist/primitives/Textarea/index.d.ts +1 -1
- package/dist/primitives/ThemeProvider/index.d.cts +1 -1
- package/dist/primitives/ThemeProvider/index.d.ts +1 -1
- package/dist/primitives/Toggle/index.d.cts +1 -1
- package/dist/primitives/Toggle/index.d.ts +1 -1
- package/dist/primitives/ToggleGroup/index.d.cts +1 -1
- package/dist/primitives/ToggleGroup/index.d.ts +1 -1
- package/dist/primitives/Tooltip/index.d.cts +1 -1
- package/dist/primitives/Tooltip/index.d.ts +1 -1
- package/dist/primitives/index.cjs +12 -2
- package/dist/primitives/index.d.cts +50 -49
- package/dist/primitives/index.d.ts +50 -49
- package/dist/primitives/index.js +4 -3
- package/dist/styles/tokens/mode-dark.css +1 -1
- package/package.json +1 -1
- package/dist/index48.d.cts.map +0 -1
- package/dist/index48.d.ts.map +0 -1
package/dist/index56.d.cts
CHANGED
|
@@ -1,31 +1,98 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime275 from "react/jsx-runtime";
|
|
2
|
+
import { Dialog } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
declare function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
//#region src/primitives/Sheet/Sheet.d.ts
|
|
6
|
+
/** Root provider for a slide-in panel (drawer). Wraps a `SheetTrigger` and `SheetContent`; controls open/closed state. */
|
|
7
|
+
declare function Sheet({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime275.JSX.Element;
|
|
10
|
+
/** Element that opens the sheet when activated. Use `asChild` to wrap your own button. */
|
|
11
|
+
declare function SheetTrigger({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime275.JSX.Element;
|
|
14
|
+
/** Element that closes the sheet when activated. Use `asChild` to wrap your own button. */
|
|
15
|
+
declare function SheetClose({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime275.JSX.Element;
|
|
18
|
+
/** Predefined scrim styles for the sheet overlay. Pass via `overlay`. */
|
|
19
|
+
declare const sheetOverlayVariants: {
|
|
20
|
+
readonly default: "bg-overlay-bg";
|
|
21
|
+
readonly dark: "bg-black/50";
|
|
22
|
+
readonly glass: "bg-glass-40-bg backdrop-blur-glass";
|
|
23
|
+
readonly none: "bg-transparent";
|
|
24
|
+
};
|
|
25
|
+
declare const sheetSizeVariants: {
|
|
26
|
+
readonly small: {
|
|
27
|
+
readonly right: "w-2/3 sm:max-w-xs";
|
|
28
|
+
readonly left: "w-2/3 sm:max-w-xs";
|
|
29
|
+
readonly top: "h-[40vh]";
|
|
30
|
+
readonly bottom: "h-[40vh]";
|
|
31
|
+
};
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly right: "w-3/4 sm:max-w-sm";
|
|
34
|
+
readonly left: "w-3/4 sm:max-w-sm";
|
|
35
|
+
readonly top: "h-auto";
|
|
36
|
+
readonly bottom: "h-auto";
|
|
37
|
+
};
|
|
38
|
+
readonly medium: {
|
|
39
|
+
readonly right: "w-4/5 sm:max-w-md";
|
|
40
|
+
readonly left: "w-4/5 sm:max-w-md";
|
|
41
|
+
readonly top: "h-[60vh]";
|
|
42
|
+
readonly bottom: "h-[60vh]";
|
|
43
|
+
};
|
|
44
|
+
readonly large: {
|
|
45
|
+
readonly right: "w-11/12 sm:max-w-lg";
|
|
46
|
+
readonly left: "w-11/12 sm:max-w-lg";
|
|
47
|
+
readonly top: "h-[80vh]";
|
|
48
|
+
readonly bottom: "h-[80vh]";
|
|
49
|
+
};
|
|
50
|
+
readonly extraLarge: {
|
|
51
|
+
readonly right: "w-[95vw] sm:max-w-2xl";
|
|
52
|
+
readonly left: "w-[95vw] sm:max-w-2xl";
|
|
53
|
+
readonly top: "h-[95vh]";
|
|
54
|
+
readonly bottom: "h-[95vh]";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/** The sliding panel surface (portaled, with its overlay). Holds the header, body, and footer. */
|
|
58
|
+
declare function SheetContent({
|
|
22
59
|
className,
|
|
23
|
-
/** Gap in px between the trigger and the content. Defaults to 0. */
|
|
24
|
-
sideOffset,
|
|
25
|
-
/** Tooltip body content. */
|
|
26
60
|
children,
|
|
61
|
+
side,
|
|
62
|
+
showCloseButton,
|
|
63
|
+
overlay,
|
|
64
|
+
size,
|
|
65
|
+
...props
|
|
66
|
+
}: React.ComponentProps<typeof Dialog.Content> & {
|
|
67
|
+
/** Edge the sheet slides in from. */
|
|
68
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
69
|
+
/** Whether to render the built-in top-right close (X) button. */
|
|
70
|
+
showCloseButton?: boolean;
|
|
71
|
+
/** Scrim style behind the sheet (e.g. `glass` for drawer patterns). */
|
|
72
|
+
overlay?: keyof typeof sheetOverlayVariants;
|
|
73
|
+
/** Panel size. `default` matches the existing production sizing. */
|
|
74
|
+
size?: keyof typeof sheetSizeVariants;
|
|
75
|
+
}): react_jsx_runtime275.JSX.Element;
|
|
76
|
+
/** Top region of the sheet; typically holds the `SheetTitle` and `SheetDescription`. */
|
|
77
|
+
declare function SheetHeader({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: React.ComponentProps<"div">): react_jsx_runtime275.JSX.Element;
|
|
81
|
+
/** Bottom region of the sheet, pinned to the base; typically holds action buttons. */
|
|
82
|
+
declare function SheetFooter({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}: React.ComponentProps<"div">): react_jsx_runtime275.JSX.Element;
|
|
86
|
+
/** Accessible title for the sheet, announced when it opens. */
|
|
87
|
+
declare function SheetTitle({
|
|
88
|
+
className,
|
|
89
|
+
...props
|
|
90
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime275.JSX.Element;
|
|
91
|
+
/** Accessible supporting text for the sheet, linked to the dialog for screen readers. */
|
|
92
|
+
declare function SheetDescription({
|
|
93
|
+
className,
|
|
27
94
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof
|
|
95
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime275.JSX.Element;
|
|
29
96
|
//#endregion
|
|
30
|
-
export {
|
|
97
|
+
export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
|
|
31
98
|
//# sourceMappingURL=index56.d.cts.map
|
package/dist/index56.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index56.d.cts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAQS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,oBAAA,CAAA,GAAA,CAAA;;AALzC,iBAU3B,YAAA,CALK;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,MAAA,CAAe,OALjE,CAAA,CAAA,EAKyE,oBAAA,CAAA,GAAA,CAAA,OALzE;;iBAUL,UAAA,CAV+D;EAAA,GAAA;AAAA,CAAA,EAUtC,KAAA,CAAM,cAVgC,CAAA,OAUV,MAAA,CAAe,KAVL,CAAA,CAAA,EAUW,oBAAA,CAAA,GAAA,CAAA,OAVX;;cAqClE,oBArCuE,EAAA;EAAA,SAAA,OAAA,EAAA,eAAA;EAKpE,SAAA,IAAA,EAAY,aAAA;EAAA,SAAA,KAAA,EAAA,oCAAA;WAA2C,IAAe,EAAA,gBAAA;;cAuCzE,iBAvCiF,EAAA;EAAA,SAAA,KAAA,EAAA;IAK9E,SAAU,KAAA,EAAA,mBAAA;IAAA,SAAA,IAAA,EAAA,mBAAA;IAA2C,SAAe,GAAA,EAAA,UAAA;IAA3C,SAAM,MAAA,EAAA,UAAA;;EAA2C,SAAA,OAAA,EAAA;IA2B7E,SAAA,KAAA,EAAA,mBAKI;IAEJ,SAAA,IAAA,EAAA,mBA+BI;IAGD,SAAA,GAAY,EAAA,QAAA;IAAA,SAAA,MAAA,EAAA,QAAA;;WAEnB,MAAA,EAAA;IACA,SAAA,KAAA,EAAA,mBAAA;IACA,SAAA,IAAA,EAAA,mBAAA;IACA,SAAA,GAAA,EAAA,UAAA;IACA,SAAA,MAAA,EAAA,UAAA;;WAEO,KAAA,EAAA;IAMgB,SAAA,KAAA,EAAA,qBAAA;IAEH,SAAA,IAAA,EAAA,qBAAA;IACrB,SAAA,GAAA,EAAA,UAAA;IAAA,SAAA,MAAA,EAAA,UAAA;EAoCQ,CAAA;EAAW,SAAA,UAAA,EAAA;IAAG,SAAA,KAAA,EAAA,uBAAA;IAAuB,SAAM,IAAA,EAAA,uBAAA;IAAqB,SAAA,GAAA,EAAA,UAAA;IAAA,SAAA,MAAA,EAAA,UAAA;EAOhE,CAAA;CAAW;;iBA5DX,YAAA,CA4D2C;EAAA,SAAA;EAAA,QAAA;EAAA,IAAA;EAAA,eAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAc0C,CAd1C,EApDjD,KAAA,CAAM,cAoD2C,CAAA,OApDrB,MAAA,CAAe,OAoDM,CAAA,GAAA;;EAAqB,IAAA,CAAA,EAAA,KAAA,GAAA,OAAA,GAAA,QAAA,GAAA,MAAA;EAchE;EAAU,eAAA,CAAA,EAAA,OAAA;;SAAsD,CAAA,EAAe,MAAA,OA5D/D,oBA4D+D;;MAAM,CAAA,EAAA,MAAA,OA1DxE,iBA0DwE;AAAA,CAAA,CAAA,EAzD7F,oBAAA,CAAA,GAAA,CAAA,OAyD6F;AAAA;iBArBrF,WAAA,CAqCgB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EArCqB,KAAA,CAAM,cAqC3B,CAAA,KAAA,CAAA,CAAA,EArCgD,oBAAA,CAAA,GAAA,CAAA,OAqChD;;iBA9BhB,WAAA,CAiCqC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAjCA,KAAA,CAAM,cAiCN,CAAA,KAAA,CAAA,CAAA,EAjC2B,oBAAA,CAAA,GAAA,CAAA,OAiC3B;;iBAnBrC,UAAA,CAmBiD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAnBb,KAAA,CAAM,cAmBO,CAAA,OAnBe,MAAA,CAAe,KAmB9B,CAAA,CAAA,EAnBoC,oBAAA,CAAA,GAAA,CAAA,OAmBpC;AAAA;iBAHjD,gBAAA;;;GAGN,KAAA,CAAM,sBAAsB,MAAA,CAAe,eAAY,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index56.d.ts
CHANGED
|
@@ -1,31 +1,98 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
3
|
+
import { Dialog } from "radix-ui";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
declare function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
//#region src/primitives/Sheet/Sheet.d.ts
|
|
6
|
+
/** Root provider for a slide-in panel (drawer). Wraps a `SheetTrigger` and `SheetContent`; controls open/closed state. */
|
|
7
|
+
declare function Sheet({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime53.JSX.Element;
|
|
10
|
+
/** Element that opens the sheet when activated. Use `asChild` to wrap your own button. */
|
|
11
|
+
declare function SheetTrigger({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime53.JSX.Element;
|
|
14
|
+
/** Element that closes the sheet when activated. Use `asChild` to wrap your own button. */
|
|
15
|
+
declare function SheetClose({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime53.JSX.Element;
|
|
18
|
+
/** Predefined scrim styles for the sheet overlay. Pass via `overlay`. */
|
|
19
|
+
declare const sheetOverlayVariants: {
|
|
20
|
+
readonly default: "bg-overlay-bg";
|
|
21
|
+
readonly dark: "bg-black/50";
|
|
22
|
+
readonly glass: "bg-glass-40-bg backdrop-blur-glass";
|
|
23
|
+
readonly none: "bg-transparent";
|
|
24
|
+
};
|
|
25
|
+
declare const sheetSizeVariants: {
|
|
26
|
+
readonly small: {
|
|
27
|
+
readonly right: "w-2/3 sm:max-w-xs";
|
|
28
|
+
readonly left: "w-2/3 sm:max-w-xs";
|
|
29
|
+
readonly top: "h-[40vh]";
|
|
30
|
+
readonly bottom: "h-[40vh]";
|
|
31
|
+
};
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly right: "w-3/4 sm:max-w-sm";
|
|
34
|
+
readonly left: "w-3/4 sm:max-w-sm";
|
|
35
|
+
readonly top: "h-auto";
|
|
36
|
+
readonly bottom: "h-auto";
|
|
37
|
+
};
|
|
38
|
+
readonly medium: {
|
|
39
|
+
readonly right: "w-4/5 sm:max-w-md";
|
|
40
|
+
readonly left: "w-4/5 sm:max-w-md";
|
|
41
|
+
readonly top: "h-[60vh]";
|
|
42
|
+
readonly bottom: "h-[60vh]";
|
|
43
|
+
};
|
|
44
|
+
readonly large: {
|
|
45
|
+
readonly right: "w-11/12 sm:max-w-lg";
|
|
46
|
+
readonly left: "w-11/12 sm:max-w-lg";
|
|
47
|
+
readonly top: "h-[80vh]";
|
|
48
|
+
readonly bottom: "h-[80vh]";
|
|
49
|
+
};
|
|
50
|
+
readonly extraLarge: {
|
|
51
|
+
readonly right: "w-[95vw] sm:max-w-2xl";
|
|
52
|
+
readonly left: "w-[95vw] sm:max-w-2xl";
|
|
53
|
+
readonly top: "h-[95vh]";
|
|
54
|
+
readonly bottom: "h-[95vh]";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/** The sliding panel surface (portaled, with its overlay). Holds the header, body, and footer. */
|
|
58
|
+
declare function SheetContent({
|
|
22
59
|
className,
|
|
23
|
-
/** Gap in px between the trigger and the content. Defaults to 0. */
|
|
24
|
-
sideOffset,
|
|
25
|
-
/** Tooltip body content. */
|
|
26
60
|
children,
|
|
61
|
+
side,
|
|
62
|
+
showCloseButton,
|
|
63
|
+
overlay,
|
|
64
|
+
size,
|
|
65
|
+
...props
|
|
66
|
+
}: React.ComponentProps<typeof Dialog.Content> & {
|
|
67
|
+
/** Edge the sheet slides in from. */
|
|
68
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
69
|
+
/** Whether to render the built-in top-right close (X) button. */
|
|
70
|
+
showCloseButton?: boolean;
|
|
71
|
+
/** Scrim style behind the sheet (e.g. `glass` for drawer patterns). */
|
|
72
|
+
overlay?: keyof typeof sheetOverlayVariants;
|
|
73
|
+
/** Panel size. `default` matches the existing production sizing. */
|
|
74
|
+
size?: keyof typeof sheetSizeVariants;
|
|
75
|
+
}): react_jsx_runtime53.JSX.Element;
|
|
76
|
+
/** Top region of the sheet; typically holds the `SheetTitle` and `SheetDescription`. */
|
|
77
|
+
declare function SheetHeader({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: React.ComponentProps<"div">): react_jsx_runtime53.JSX.Element;
|
|
81
|
+
/** Bottom region of the sheet, pinned to the base; typically holds action buttons. */
|
|
82
|
+
declare function SheetFooter({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}: React.ComponentProps<"div">): react_jsx_runtime53.JSX.Element;
|
|
86
|
+
/** Accessible title for the sheet, announced when it opens. */
|
|
87
|
+
declare function SheetTitle({
|
|
88
|
+
className,
|
|
89
|
+
...props
|
|
90
|
+
}: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime53.JSX.Element;
|
|
91
|
+
/** Accessible supporting text for the sheet, linked to the dialog for screen readers. */
|
|
92
|
+
declare function SheetDescription({
|
|
93
|
+
className,
|
|
27
94
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof
|
|
95
|
+
}: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime53.JSX.Element;
|
|
29
96
|
//#endregion
|
|
30
|
-
export {
|
|
97
|
+
export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
|
|
31
98
|
//# sourceMappingURL=index56.d.ts.map
|
package/dist/index56.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index56.d.ts","names":[],"sources":["../src/primitives/Sheet/Sheet.tsx"],"mappings":";;;;;;iBAQS,KAAA;;GAAoB,KAAA,CAAM,sBAAsB,MAAA,CAAe,QAAK,mBAAA,CAAA,GAAA,CAAA;;AALzC,iBAU3B,YAAA,CALK;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,MAAA,CAAe,OALjE,CAAA,CAAA,EAKyE,mBAAA,CAAA,GAAA,CAAA,OALzE;;iBAUL,UAAA,CAV+D;EAAA,GAAA;AAAA,CAAA,EAUtC,KAAA,CAAM,cAVgC,CAAA,OAUV,MAAA,CAAe,KAVL,CAAA,CAAA,EAUW,mBAAA,CAAA,GAAA,CAAA,OAVX;;cAqClE,oBArCuE,EAAA;EAAA,SAAA,OAAA,EAAA,eAAA;EAKpE,SAAA,IAAA,EAAY,aAAA;EAAA,SAAA,KAAA,EAAA,oCAAA;WAA2C,IAAe,EAAA,gBAAA;;cAuCzE,iBAvCiF,EAAA;EAAA,SAAA,KAAA,EAAA;IAK9E,SAAU,KAAA,EAAA,mBAAA;IAAA,SAAA,IAAA,EAAA,mBAAA;IAA2C,SAAe,GAAA,EAAA,UAAA;IAA3C,SAAM,MAAA,EAAA,UAAA;;EAA2C,SAAA,OAAA,EAAA;IA2B7E,SAAA,KAAA,EAAA,mBAKI;IAEJ,SAAA,IAAA,EAAA,mBA+BI;IAGD,SAAA,GAAY,EAAA,QAAA;IAAA,SAAA,MAAA,EAAA,QAAA;;WAEnB,MAAA,EAAA;IACA,SAAA,KAAA,EAAA,mBAAA;IACA,SAAA,IAAA,EAAA,mBAAA;IACA,SAAA,GAAA,EAAA,UAAA;IACA,SAAA,MAAA,EAAA,UAAA;;WAEO,KAAA,EAAA;IAMgB,SAAA,KAAA,EAAA,qBAAA;IAEH,SAAA,IAAA,EAAA,qBAAA;IACrB,SAAA,GAAA,EAAA,UAAA;IAAA,SAAA,MAAA,EAAA,UAAA;EAoCQ,CAAA;EAAW,SAAA,UAAA,EAAA;IAAG,SAAA,KAAA,EAAA,uBAAA;IAAuB,SAAM,IAAA,EAAA,uBAAA;IAAqB,SAAA,GAAA,EAAA,UAAA;IAAA,SAAA,MAAA,EAAA,UAAA;EAOhE,CAAA;CAAW;;iBA5DX,YAAA,CA4D2C;EAAA,SAAA;EAAA,QAAA;EAAA,IAAA;EAAA,eAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAc0C,CAd1C,EApDjD,KAAA,CAAM,cAoD2C,CAAA,OApDrB,MAAA,CAAe,OAoDM,CAAA,GAAA;;EAAqB,IAAA,CAAA,EAAA,KAAA,GAAA,OAAA,GAAA,QAAA,GAAA,MAAA;EAchE;EAAU,eAAA,CAAA,EAAA,OAAA;;SAAsD,CAAA,EAAe,MAAA,OA5D/D,oBA4D+D;;MAAM,CAAA,EAAA,MAAA,OA1DxE,iBA0DwE;AAAA,CAAA,CAAA,EAzD7F,mBAAA,CAAA,GAAA,CAAA,OAyD6F;AAAA;iBArBrF,WAAA,CAqCgB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EArCqB,KAAA,CAAM,cAqC3B,CAAA,KAAA,CAAA,CAAA,EArCgD,mBAAA,CAAA,GAAA,CAAA,OAqChD;;iBA9BhB,WAAA,CAiCqC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAjCA,KAAA,CAAM,cAiCN,CAAA,KAAA,CAAA,CAAA,EAjC2B,mBAAA,CAAA,GAAA,CAAA,OAiC3B;;iBAnBrC,UAAA,CAmBiD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAnBb,KAAA,CAAM,cAmBO,CAAA,OAnBe,MAAA,CAAe,KAmB9B,CAAA,CAAA,EAnBoC,mBAAA,CAAA,GAAA,CAAA,OAmBpC;AAAA;iBAHjD,gBAAA;;;GAGN,KAAA,CAAM,sBAAsB,MAAA,CAAe,eAAY,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index57.d.cts
CHANGED
|
@@ -1,209 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { t as Input } from "./index34.cjs";
|
|
4
|
-
import { n as TooltipContent } from "./index56.cjs";
|
|
5
|
-
import * as react_jsx_runtime249 from "react/jsx-runtime";
|
|
6
|
-
import * as class_variance_authority_types23 from "class-variance-authority/types";
|
|
7
|
-
import { VariantProps } from "class-variance-authority";
|
|
1
|
+
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from "radix-ui";
|
|
8
3
|
import * as React from "react";
|
|
9
4
|
|
|
10
|
-
//#region src/primitives/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
declare function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}: React.ComponentProps<"div"> & {
|
|
32
|
-
/** Initial open state when uncontrolled. */
|
|
33
|
-
defaultOpen?: boolean;
|
|
34
|
-
/** Controlled open state; pair with `onOpenChange`. */
|
|
35
|
-
open?: boolean;
|
|
36
|
-
/** Called when the open state changes (controlled mode). */
|
|
37
|
-
onOpenChange?: (open: boolean) => void;
|
|
38
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
39
|
-
/** The sidebar panel itself: renders as a fixed desktop rail or a mobile Sheet, driven by `SidebarProvider` state. */
|
|
40
|
-
declare function Sidebar({
|
|
41
|
-
side,
|
|
42
|
-
variant,
|
|
43
|
-
collapsible,
|
|
44
|
-
className,
|
|
5
|
+
//#region src/primitives/Tooltip/Tooltip.d.ts
|
|
6
|
+
/** Provides shared tooltip context (delay/skip timings) to all tooltips inside it. */
|
|
7
|
+
declare function TooltipProvider({
|
|
8
|
+
delayDuration,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime137.JSX.Element;
|
|
11
|
+
/** Root tooltip: wraps a trigger + content and manages open state. Self-provides a TooltipProvider. */
|
|
12
|
+
declare function Tooltip$1({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime137.JSX.Element;
|
|
15
|
+
/** The element that opens the tooltip on hover/focus. Use `asChild` to render your own control. */
|
|
16
|
+
declare function TooltipTrigger({
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime137.JSX.Element;
|
|
19
|
+
/** The floating tooltip surface (portalled) with an arrow; carries the tooltip text. */
|
|
20
|
+
declare function TooltipContent({
|
|
21
|
+
/** Extra classes merged onto the content surface. */
|
|
22
|
+
className,
|
|
23
|
+
/** Gap in px between the trigger and the content. Defaults to 0. */
|
|
24
|
+
sideOffset,
|
|
25
|
+
/** Tooltip body content. */
|
|
45
26
|
children,
|
|
46
27
|
...props
|
|
47
|
-
}: React.ComponentProps<
|
|
48
|
-
/** Which edge the sidebar sits on. */
|
|
49
|
-
side?: "left" | "right";
|
|
50
|
-
/** Visual treatment: standard rail, a floating card, or an inset surface. */
|
|
51
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
52
|
-
/** How the sidebar collapses: slide off-canvas, shrink to an icon rail, or never collapse. */
|
|
53
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
54
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
55
|
-
/** Icon button that toggles the sidebar open/collapsed. */
|
|
56
|
-
declare function SidebarTrigger({
|
|
57
|
-
className,
|
|
58
|
-
onClick,
|
|
59
|
-
...props
|
|
60
|
-
}: React.ComponentProps<typeof Button>): react_jsx_runtime249.JSX.Element;
|
|
61
|
-
/** Thin draggable rail along the sidebar edge that toggles it on click. */
|
|
62
|
-
declare function SidebarRail({
|
|
63
|
-
className,
|
|
64
|
-
...props
|
|
65
|
-
}: React.ComponentProps<"button">): react_jsx_runtime249.JSX.Element;
|
|
66
|
-
/** The main content region that sits beside the sidebar. */
|
|
67
|
-
declare function SidebarInset({
|
|
68
|
-
className,
|
|
69
|
-
...props
|
|
70
|
-
}: React.ComponentProps<"main">): react_jsx_runtime249.JSX.Element;
|
|
71
|
-
/** Sidebar-styled text input, e.g. for a search field in the header. */
|
|
72
|
-
declare function SidebarInput({
|
|
73
|
-
className,
|
|
74
|
-
...props
|
|
75
|
-
}: React.ComponentProps<typeof Input>): react_jsx_runtime249.JSX.Element;
|
|
76
|
-
/** Top region of the sidebar, typically a brand mark or workspace switcher. */
|
|
77
|
-
declare function SidebarHeader({
|
|
78
|
-
className,
|
|
79
|
-
...props
|
|
80
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
81
|
-
/** Bottom region of the sidebar, typically a user menu or settings link. */
|
|
82
|
-
declare function SidebarFooter({
|
|
83
|
-
className,
|
|
84
|
-
...props
|
|
85
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
86
|
-
/** Horizontal divider between sidebar sections, inset to match the sidebar padding. */
|
|
87
|
-
declare function SidebarSeparator({
|
|
88
|
-
className,
|
|
89
|
-
...props
|
|
90
|
-
}: React.ComponentProps<typeof Separator>): react_jsx_runtime249.JSX.Element;
|
|
91
|
-
/** Scrollable middle region of the sidebar that holds the groups and menus. */
|
|
92
|
-
declare function SidebarContent({
|
|
93
|
-
className,
|
|
94
|
-
...props
|
|
95
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
96
|
-
/** A labelled section within the sidebar content. */
|
|
97
|
-
declare function SidebarGroup({
|
|
98
|
-
className,
|
|
99
|
-
...props
|
|
100
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
101
|
-
/** Heading for a `SidebarGroup`; hidden when the sidebar is collapsed to icons. */
|
|
102
|
-
declare function SidebarGroupLabel({
|
|
103
|
-
className,
|
|
104
|
-
asChild,
|
|
105
|
-
...props
|
|
106
|
-
}: React.ComponentProps<"div"> & {
|
|
107
|
-
/** Render as the child element (Radix Slot) instead of a `div`. */
|
|
108
|
-
asChild?: boolean;
|
|
109
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
110
|
-
/** Small action button anchored to the top-right of a `SidebarGroup` (e.g. an add button). */
|
|
111
|
-
declare function SidebarGroupAction({
|
|
112
|
-
className,
|
|
113
|
-
asChild,
|
|
114
|
-
...props
|
|
115
|
-
}: React.ComponentProps<"button"> & {
|
|
116
|
-
/** Render as the child element (Radix Slot) instead of a `button`. */
|
|
117
|
-
asChild?: boolean;
|
|
118
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
119
|
-
/** Wrapper for the body of a `SidebarGroup`, below its label. */
|
|
120
|
-
declare function SidebarGroupContent({
|
|
121
|
-
className,
|
|
122
|
-
...props
|
|
123
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
124
|
-
/** `ul` list container for sidebar menu items. */
|
|
125
|
-
declare function SidebarMenu({
|
|
126
|
-
className,
|
|
127
|
-
...props
|
|
128
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime249.JSX.Element;
|
|
129
|
-
/** `li` row within a `SidebarMenu`; holds a button plus optional action/badge. */
|
|
130
|
-
declare function SidebarMenuItem({
|
|
131
|
-
className,
|
|
132
|
-
...props
|
|
133
|
-
}: React.ComponentProps<"li">): react_jsx_runtime249.JSX.Element;
|
|
134
|
-
/** Style variants for `SidebarMenuButton` — `variant` (default | outline) and `size` (default | sm | lg). */
|
|
135
|
-
declare const sidebarMenuButtonVariants: (props?: ({
|
|
136
|
-
variant?: "default" | "outline" | null | undefined;
|
|
137
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
138
|
-
} & class_variance_authority_types23.ClassProp) | undefined) => string;
|
|
139
|
-
/** The primary clickable item in a sidebar menu; shows a tooltip when collapsed to icons. */
|
|
140
|
-
declare function SidebarMenuButton({
|
|
141
|
-
asChild,
|
|
142
|
-
isActive,
|
|
143
|
-
variant,
|
|
144
|
-
size,
|
|
145
|
-
tooltip,
|
|
146
|
-
className,
|
|
147
|
-
...props
|
|
148
|
-
}: React.ComponentProps<"button"> & {
|
|
149
|
-
/** Render as the child element (Radix Slot), e.g. to wrap a link. */
|
|
150
|
-
asChild?: boolean;
|
|
151
|
-
/** Marks the item as the current/active route. */
|
|
152
|
-
isActive?: boolean;
|
|
153
|
-
/** Tooltip shown when the sidebar is collapsed to icons; string or `TooltipContent` props. */
|
|
154
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
155
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime249.JSX.Element;
|
|
156
|
-
/** Secondary action button anchored to the right of a menu item (e.g. a kebab menu). */
|
|
157
|
-
declare function SidebarMenuAction({
|
|
158
|
-
className,
|
|
159
|
-
asChild,
|
|
160
|
-
showOnHover,
|
|
161
|
-
...props
|
|
162
|
-
}: React.ComponentProps<"button"> & {
|
|
163
|
-
/** Render as the child element (Radix Slot) instead of a `button`. */
|
|
164
|
-
asChild?: boolean;
|
|
165
|
-
/** Only reveal the action on row hover/focus instead of always showing it. */
|
|
166
|
-
showOnHover?: boolean;
|
|
167
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
168
|
-
/** Count/status badge anchored to the right of a menu item. */
|
|
169
|
-
declare function SidebarMenuBadge({
|
|
170
|
-
className,
|
|
171
|
-
...props
|
|
172
|
-
}: React.ComponentProps<"div">): react_jsx_runtime249.JSX.Element;
|
|
173
|
-
/** Loading placeholder for a menu item, with a random text width for a natural skeleton. */
|
|
174
|
-
declare function SidebarMenuSkeleton({
|
|
175
|
-
className,
|
|
176
|
-
showIcon,
|
|
177
|
-
...props
|
|
178
|
-
}: React.ComponentProps<"div"> & {
|
|
179
|
-
/** Also render a square icon placeholder before the text. */
|
|
180
|
-
showIcon?: boolean;
|
|
181
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
182
|
-
/** Nested `ul` list of sub-items under a menu item; hidden when collapsed to icons. */
|
|
183
|
-
declare function SidebarMenuSub({
|
|
184
|
-
className,
|
|
185
|
-
...props
|
|
186
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime249.JSX.Element;
|
|
187
|
-
/** `li` row within a `SidebarMenuSub`. */
|
|
188
|
-
declare function SidebarMenuSubItem({
|
|
189
|
-
className,
|
|
190
|
-
...props
|
|
191
|
-
}: React.ComponentProps<"li">): react_jsx_runtime249.JSX.Element;
|
|
192
|
-
/** Clickable link for a sub-menu item (renders as an `a` by default). */
|
|
193
|
-
declare function SidebarMenuSubButton({
|
|
194
|
-
asChild,
|
|
195
|
-
size,
|
|
196
|
-
isActive,
|
|
197
|
-
className,
|
|
198
|
-
...props
|
|
199
|
-
}: React.ComponentProps<"a"> & {
|
|
200
|
-
/** Render as the child element (Radix Slot) instead of an `a`. */
|
|
201
|
-
asChild?: boolean;
|
|
202
|
-
/** Text size of the sub-button. */
|
|
203
|
-
size?: "sm" | "md";
|
|
204
|
-
/** Marks the sub-item as the current/active route. */
|
|
205
|
-
isActive?: boolean;
|
|
206
|
-
}): react_jsx_runtime249.JSX.Element;
|
|
28
|
+
}: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime137.JSX.Element;
|
|
207
29
|
//#endregion
|
|
208
|
-
export {
|
|
30
|
+
export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
|
|
209
31
|
//# sourceMappingURL=index57.d.cts.map
|
package/dist/index57.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index57.d.cts","names":[],"sources":["../src/primitives/Tooltip/Tooltip.tsx"],"mappings":";;;;;;iBAMS,eAAA;;;GAGN,KAAA,CAAM,sBAAsB,OAAA,CAAiB,YAAS,oBAAA,CAAA,GAAA,CAAA;;AARrB,iBAmB3B,SAAA,CAde;EAAA,GAAA;AAAA,CAAA,EAcO,KAAA,CAAM,cAdb,CAAA,OAcmC,OAAA,CAAiB,IAdpD,CAAA,CAAA,EAcyD,oBAAA,CAAA,GAAA,CAAA,OAdzD;;iBAuBf,cAAA,CAtBP;EAAA,GAAA;AAAA,CAAA,EAsBoC,KAAA,CAAM,cAtB1C,CAAA,OAsBgE,OAAA,CAAiB,OAtBjF,CAAA,CAAA,EAsByF,oBAAA,CAAA,GAAA,CAAA,OAtBzF;;iBA2BO,cAAA,CAzBA;;EAAgD,SAAA;EAAA;YAWzC;;UAAe;EAAA,GAAM;AAAA,CAAA,EAsBlC,KAAA,CAAM,cAtB4B,CAAA,OAsBN,OAAA,CAAiB,OAtBX,CAAA,CAAA,EAsBmB,oBAAA,CAAA,GAAA,CAAA,OAtBnB"}
|