@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/index25.d.ts
CHANGED
|
@@ -1,49 +1,74 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
2
|
+
import * as react_jsx_runtime167 from "react/jsx-runtime";
|
|
3
|
+
import { Drawer } from "vaul";
|
|
5
4
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
//#region src/primitives/Drawer/Drawer.d.ts
|
|
6
|
+
/** Root provider for a vaul-backed sliding drawer; controls open state and slide `direction`. */
|
|
7
|
+
declare function Drawer$1({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof Drawer.Root>): react_jsx_runtime167.JSX.Element;
|
|
10
|
+
/** Element that toggles the drawer open when interacted with. */
|
|
11
|
+
declare function DrawerTrigger({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof Drawer.Trigger>): react_jsx_runtime167.JSX.Element;
|
|
14
|
+
/** Portals the overlay and content out to the document body. */
|
|
15
|
+
declare function DrawerPortal({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof Drawer.Portal>): react_jsx_runtime167.JSX.Element;
|
|
18
|
+
/** Element that closes the drawer when interacted with. */
|
|
19
|
+
declare function DrawerClose({
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<typeof Drawer.Close>): react_jsx_runtime167.JSX.Element;
|
|
22
|
+
/** Dimmed backdrop rendered behind the drawer content. */
|
|
23
|
+
declare function DrawerOverlay({
|
|
24
|
+
/** Extra classes merged onto the overlay surface. */
|
|
12
25
|
className,
|
|
13
|
-
/** Container chrome: plain, bordered, muted background, or dashed border. */
|
|
14
|
-
variant,
|
|
15
26
|
...props
|
|
16
|
-
}: React.ComponentProps<
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
}: React.ComponentProps<typeof Drawer.Overlay>): react_jsx_runtime167.JSX.Element;
|
|
28
|
+
declare const drawerSizeVariants: {
|
|
29
|
+
readonly small: string;
|
|
30
|
+
readonly default: string;
|
|
31
|
+
readonly medium: string;
|
|
32
|
+
readonly large: string;
|
|
33
|
+
readonly extraLarge: string;
|
|
34
|
+
};
|
|
35
|
+
/** Sliding panel that holds the drawer's content; auto-portals and renders the overlay. */
|
|
36
|
+
declare function DrawerContent({
|
|
37
|
+
/** Extra classes merged onto the content panel. */
|
|
19
38
|
className,
|
|
39
|
+
/** Body of the drawer, typically header/footer plus content. */
|
|
40
|
+
children,
|
|
41
|
+
/** Optional size variant for the drawer panel. */
|
|
42
|
+
size,
|
|
20
43
|
...props
|
|
21
|
-
}: React.ComponentProps<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
declare function
|
|
44
|
+
}: React.ComponentProps<typeof Drawer.Content> & {
|
|
45
|
+
/** Panel size. `default` matches the existing production sizing. */
|
|
46
|
+
size?: keyof typeof drawerSizeVariants;
|
|
47
|
+
}): react_jsx_runtime167.JSX.Element;
|
|
48
|
+
/** Top region of the drawer; groups the title and description. */
|
|
49
|
+
declare function DrawerHeader({
|
|
50
|
+
/** Extra classes merged onto the header wrapper. */
|
|
27
51
|
className,
|
|
28
|
-
/** Visual treatment: bare media or a rounded muted icon badge. */
|
|
29
|
-
variant,
|
|
30
52
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">
|
|
32
|
-
/**
|
|
33
|
-
declare function
|
|
53
|
+
}: React.ComponentProps<"div">): react_jsx_runtime167.JSX.Element;
|
|
54
|
+
/** Bottom region of the drawer; typically holds actions, pinned to the panel base. */
|
|
55
|
+
declare function DrawerFooter({
|
|
56
|
+
/** Extra classes merged onto the footer wrapper. */
|
|
34
57
|
className,
|
|
35
58
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
37
|
-
/**
|
|
38
|
-
declare function
|
|
59
|
+
}: React.ComponentProps<"div">): react_jsx_runtime167.JSX.Element;
|
|
60
|
+
/** Accessible title for the drawer, announced to assistive tech. */
|
|
61
|
+
declare function DrawerTitle({
|
|
62
|
+
/** Extra classes merged onto the title. */
|
|
39
63
|
className,
|
|
40
64
|
...props
|
|
41
|
-
}: React.ComponentProps<
|
|
42
|
-
/**
|
|
43
|
-
declare function
|
|
65
|
+
}: React.ComponentProps<typeof Drawer.Title>): react_jsx_runtime167.JSX.Element;
|
|
66
|
+
/** Supporting description text shown beneath the drawer title. */
|
|
67
|
+
declare function DrawerDescription({
|
|
68
|
+
/** Extra classes merged onto the description. */
|
|
44
69
|
className,
|
|
45
70
|
...props
|
|
46
|
-
}: React.ComponentProps<
|
|
71
|
+
}: React.ComponentProps<typeof Drawer.Description>): react_jsx_runtime167.JSX.Element;
|
|
47
72
|
//#endregion
|
|
48
|
-
export {
|
|
73
|
+
export { DrawerFooter as a, DrawerPortal as c, DrawerDescription as i, DrawerTitle as l, DrawerClose as n, DrawerHeader as o, DrawerContent as r, DrawerOverlay as s, Drawer$1 as t, DrawerTrigger as u };
|
|
49
74
|
//# sourceMappingURL=index25.d.ts.map
|
package/dist/index25.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index25.d.ts","names":[],"sources":["../src/primitives/Drawer/Drawer.tsx"],"mappings":";;;;;;iBAMS,QAAA;;GAAqB,KAAA,CAAM,sBAAsB,MAAA,CAAgB,QAAK,oBAAA,CAAA,GAAA,CAAA;;AAL9B,iBAUxC,aAAA,CALM;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,MAAA,CAAgB,OALlE,CAAA,CAAA,EAK0E,oBAAA,CAAA,GAAA,CAAA,OAL1E;;iBAUN,YAAA,CAViE;EAAA,GAAA;AAAA,CAAA,EAUtC,KAAA,CAAM,cAVgC,CAAA,OAUV,MAAA,CAAgB,MAVN,CAAA,CAAA,EAUa,oBAAA,CAAA,GAAA,CAAA,OAVb;;iBAejE,WAAA,CAfsE;EAAA,GAAA;AAAA,CAAA,EAe5C,KAAA,CAAM,cAfsC,CAAA,OAehB,MAAA,CAAgB,KAfA,CAAA,CAAA,EAeM,oBAAA,CAAA,GAAA,CAAA,OAfN;AAAA;AAAA,iBAoBtE,aAAA,CAfa;;WAA2C;EAAA,GAAgB;AAAA,CAAA,EAmB9E,KAAA,CAAM,cAnBwE,CAAA,OAmBlD,MAAA,CAAgB,OAnBkC,CAAA,CAAA,EAmB1B,oBAAA,CAAA,GAAA,CAAA,OAnB0B;cAgC3E,kBAhCqC,EAAA;WAA8C,KAAA,EAAA,MAAA;EAAA,SAAA,OAAA,EAAA,MAAA;EAKhF,SAAA,MAAY,EAAA,MAAA;EAAA,SAAA,KAAA,EAAA,MAAA;WAA2C,UAAgB,EAAA,MAAA;;;AAAO,iBA6D9E,aAAA,CA7D8E;EAAA;WAKnE;;UAAe;;EAAkD,IAAA;EAAA,GAAA;CAAA,EAgElF,KAAA,CAAM,cAhE4E,CAAA,OAgEtD,MAAA,CAAgB,OAhEsC,CAAA,GAAA;EAK5E;EAAa,IAAA,CAAA,EAAA,MAAA,OA6DA,kBA7DA;IA8DrB,oBAAA,CAAA,GAAA,CAAA,OA5DC;;iBAqFO,YAAA,CAnFA;;EAA8C,SAAA;EAAA,GAAA;AAAA,CAAA,EAuFpD,KAAA,CAAM,cAvF8C,CAAA,KAAA,CAAA,CAAA,EAuFzB,oBAAA,CAAA,GAAA,CAAA,OAvFyB;AAAA;AA4C7C,iBAyDD,YAAA,CAtDa;;WAEpB;EAAA,GAAA;AAAA,CAAA,EAwDC,KAAA,CAAM,cAxDP,CAAA,KAAA,CAAA,CAAA,EAwD4B,oBAAA,CAAA,GAAA,CAAA,OAxD5B;;iBAmEO,WAAA,CA/DP;;WAEC;EAAA,GAAM;AAAA,CAAA,EAiEN,KAAA,CAAM,cAjEA,CAAA,OAiEsB,MAAA,CAAgB,KAjEtC,CAAA,CAAA,EAiE4C,oBAAA,CAAA,GAAA,CAAA,OAjE5C;;iBA+EA,iBAAA,CA5ER;EAAA;EAAA,SAyBQ;EAAA,GAAA;AAAY,CAAA,EAuDlB,KAAA,CAAM,cAvDY,CAAA,OAuDU,MAAA,CAAgB,WAvD1B,CAAA,CAAA,EAuDsC,oBAAA,CAAA,GAAA,CAAA,OAvDtC"}
|
package/dist/index26.d.cts
CHANGED
|
@@ -1,17 +1,99 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
2
|
+
import { DropdownMenu } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/DropdownMenu/DropdownMenu.d.ts
|
|
6
|
+
/** Root provider for a dropdown menu; holds open state and wires the trigger to its content. */
|
|
7
|
+
declare function DropdownMenu$1({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof DropdownMenu.Root>): react_jsx_runtime146.JSX.Element;
|
|
10
|
+
/** Renders the menu into a portal so it escapes overflow/stacking contexts. */
|
|
11
|
+
declare function DropdownMenuPortal({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu.Portal>): react_jsx_runtime146.JSX.Element;
|
|
14
|
+
/** The control (usually a button) that toggles the menu open and closed. */
|
|
15
|
+
declare function DropdownMenuTrigger({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof DropdownMenu.Trigger>): react_jsx_runtime146.JSX.Element;
|
|
18
|
+
/** The floating surface that holds the menu items; portalled and animated on open/close. */
|
|
19
|
+
declare function DropdownMenuContent({
|
|
20
|
+
className,
|
|
21
|
+
/** Gap in pixels between the trigger and the content edge. */
|
|
22
|
+
sideOffset,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof DropdownMenu.Content>): react_jsx_runtime146.JSX.Element;
|
|
25
|
+
/** Groups related menu items together for labelling and keyboard navigation. */
|
|
26
|
+
declare function DropdownMenuGroup({
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<typeof DropdownMenu.Group>): react_jsx_runtime146.JSX.Element;
|
|
29
|
+
/** A selectable menu row that fires on click/Enter. */
|
|
30
|
+
declare function DropdownMenuItem({
|
|
31
|
+
className,
|
|
32
|
+
/** Indents the item to align with rows that have a leading icon/indicator. */
|
|
33
|
+
inset,
|
|
34
|
+
/** Visual tone of the item; `destructive` renders in the danger color. */
|
|
35
|
+
variant,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu.Item> & {
|
|
38
|
+
inset?: boolean;
|
|
39
|
+
variant?: "default" | "destructive";
|
|
40
|
+
}): react_jsx_runtime146.JSX.Element;
|
|
41
|
+
/** A menu row with a toggleable checkmark indicator for boolean options. */
|
|
42
|
+
declare function DropdownMenuCheckboxItem({
|
|
43
|
+
className,
|
|
44
|
+
children,
|
|
45
|
+
/** Whether the checkbox indicator is shown as checked. */
|
|
46
|
+
checked,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<typeof DropdownMenu.CheckboxItem>): react_jsx_runtime146.JSX.Element;
|
|
49
|
+
/** Wraps radio items so only one option in the group can be selected at a time. */
|
|
50
|
+
declare function DropdownMenuRadioGroup({
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioGroup>): react_jsx_runtime146.JSX.Element;
|
|
53
|
+
/** A single mutually-exclusive option within a `DropdownMenuRadioGroup`. */
|
|
54
|
+
declare function DropdownMenuRadioItem({
|
|
55
|
+
className,
|
|
56
|
+
children,
|
|
57
|
+
...props
|
|
58
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioItem>): react_jsx_runtime146.JSX.Element;
|
|
59
|
+
/** A non-interactive heading used to title a group of menu items. */
|
|
60
|
+
declare function DropdownMenuLabel({
|
|
61
|
+
className,
|
|
62
|
+
/** Indents the label to align with rows that have a leading icon/indicator. */
|
|
63
|
+
inset,
|
|
64
|
+
...props
|
|
65
|
+
}: React.ComponentProps<typeof DropdownMenu.Label> & {
|
|
66
|
+
inset?: boolean;
|
|
67
|
+
}): react_jsx_runtime146.JSX.Element;
|
|
68
|
+
/** A thin divider line used to visually separate groups of menu items. */
|
|
69
|
+
declare function DropdownMenuSeparator({
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: React.ComponentProps<typeof DropdownMenu.Separator>): react_jsx_runtime146.JSX.Element;
|
|
73
|
+
/** Right-aligned hint for an item's keyboard shortcut (e.g. ⇧⌘P). */
|
|
74
|
+
declare function DropdownMenuShortcut({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<"span">): react_jsx_runtime146.JSX.Element;
|
|
78
|
+
/** Root for a nested submenu; holds the sub-trigger and its sub-content. */
|
|
79
|
+
declare function DropdownMenuSub({
|
|
80
|
+
...props
|
|
81
|
+
}: React.ComponentProps<typeof DropdownMenu.Sub>): react_jsx_runtime146.JSX.Element;
|
|
82
|
+
/** The item that opens a nested submenu, shown with a trailing chevron. */
|
|
83
|
+
declare function DropdownMenuSubTrigger({
|
|
84
|
+
className,
|
|
85
|
+
/** Indents the trigger to align with rows that have a leading icon/indicator. */
|
|
86
|
+
inset,
|
|
87
|
+
children,
|
|
88
|
+
...props
|
|
89
|
+
}: React.ComponentProps<typeof DropdownMenu.SubTrigger> & {
|
|
90
|
+
inset?: boolean;
|
|
91
|
+
}): react_jsx_runtime146.JSX.Element;
|
|
92
|
+
/** The floating surface for a nested submenu's items. */
|
|
93
|
+
declare function DropdownMenuSubContent({
|
|
8
94
|
className,
|
|
9
|
-
align,
|
|
10
95
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof
|
|
12
|
-
/** Layout of the label: `block` (default, left-aligned inline-flex) or `inline` (full-width, centered text). */
|
|
13
|
-
align?: "block" | "inline";
|
|
14
|
-
}): react_jsx_runtime91.JSX.Element;
|
|
96
|
+
}: React.ComponentProps<typeof DropdownMenu.SubContent>): react_jsx_runtime146.JSX.Element;
|
|
15
97
|
//#endregion
|
|
16
|
-
export {
|
|
98
|
+
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu$1 as t, DropdownMenuSeparator as u };
|
|
17
99
|
//# sourceMappingURL=index26.d.cts.map
|
package/dist/index26.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.d.c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AAA,GAAA,CAAA,OA9HxC;;iBAmI5C,sBAAA,CAhIR;EAAA,SAAA;EAAA;EAAA,KAgBQ;EAAA,QAAA;EAAA,GAAA;CAAA,EAsHN,KAAA,CAAM,cAtHwB,CAAA,OAsHF,YAAA,CAAsB,UAtHpB,CAAA,GAAA;EAAA,KAAA,CAAA,EAAA,OAAA;IAwHhC,oBAAA,CAAA,GAAA,CAAA,OAvHC;;iBAyIO,sBAAA,CAtIP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyIC,KAAA,CAAM,cAzIP,CAAA,OAyI6B,YAAA,CAAsB,UAzInD,CAAA,CAAA,EAyI8D,oBAAA,CAAA,GAAA,CAAA,OAzI9D"}
|
package/dist/index26.d.ts
CHANGED
|
@@ -1,17 +1,99 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as react_jsx_runtime191 from "react/jsx-runtime";
|
|
3
|
+
import { DropdownMenu } from "radix-ui";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/DropdownMenu/DropdownMenu.d.ts
|
|
6
|
+
/** Root provider for a dropdown menu; holds open state and wires the trigger to its content. */
|
|
7
|
+
declare function DropdownMenu$1({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof DropdownMenu.Root>): react_jsx_runtime191.JSX.Element;
|
|
10
|
+
/** Renders the menu into a portal so it escapes overflow/stacking contexts. */
|
|
11
|
+
declare function DropdownMenuPortal({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu.Portal>): react_jsx_runtime191.JSX.Element;
|
|
14
|
+
/** The control (usually a button) that toggles the menu open and closed. */
|
|
15
|
+
declare function DropdownMenuTrigger({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof DropdownMenu.Trigger>): react_jsx_runtime191.JSX.Element;
|
|
18
|
+
/** The floating surface that holds the menu items; portalled and animated on open/close. */
|
|
19
|
+
declare function DropdownMenuContent({
|
|
20
|
+
className,
|
|
21
|
+
/** Gap in pixels between the trigger and the content edge. */
|
|
22
|
+
sideOffset,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof DropdownMenu.Content>): react_jsx_runtime191.JSX.Element;
|
|
25
|
+
/** Groups related menu items together for labelling and keyboard navigation. */
|
|
26
|
+
declare function DropdownMenuGroup({
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<typeof DropdownMenu.Group>): react_jsx_runtime191.JSX.Element;
|
|
29
|
+
/** A selectable menu row that fires on click/Enter. */
|
|
30
|
+
declare function DropdownMenuItem({
|
|
31
|
+
className,
|
|
32
|
+
/** Indents the item to align with rows that have a leading icon/indicator. */
|
|
33
|
+
inset,
|
|
34
|
+
/** Visual tone of the item; `destructive` renders in the danger color. */
|
|
35
|
+
variant,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu.Item> & {
|
|
38
|
+
inset?: boolean;
|
|
39
|
+
variant?: "default" | "destructive";
|
|
40
|
+
}): react_jsx_runtime191.JSX.Element;
|
|
41
|
+
/** A menu row with a toggleable checkmark indicator for boolean options. */
|
|
42
|
+
declare function DropdownMenuCheckboxItem({
|
|
43
|
+
className,
|
|
44
|
+
children,
|
|
45
|
+
/** Whether the checkbox indicator is shown as checked. */
|
|
46
|
+
checked,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<typeof DropdownMenu.CheckboxItem>): react_jsx_runtime191.JSX.Element;
|
|
49
|
+
/** Wraps radio items so only one option in the group can be selected at a time. */
|
|
50
|
+
declare function DropdownMenuRadioGroup({
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioGroup>): react_jsx_runtime191.JSX.Element;
|
|
53
|
+
/** A single mutually-exclusive option within a `DropdownMenuRadioGroup`. */
|
|
54
|
+
declare function DropdownMenuRadioItem({
|
|
55
|
+
className,
|
|
56
|
+
children,
|
|
57
|
+
...props
|
|
58
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioItem>): react_jsx_runtime191.JSX.Element;
|
|
59
|
+
/** A non-interactive heading used to title a group of menu items. */
|
|
60
|
+
declare function DropdownMenuLabel({
|
|
61
|
+
className,
|
|
62
|
+
/** Indents the label to align with rows that have a leading icon/indicator. */
|
|
63
|
+
inset,
|
|
64
|
+
...props
|
|
65
|
+
}: React.ComponentProps<typeof DropdownMenu.Label> & {
|
|
66
|
+
inset?: boolean;
|
|
67
|
+
}): react_jsx_runtime191.JSX.Element;
|
|
68
|
+
/** A thin divider line used to visually separate groups of menu items. */
|
|
69
|
+
declare function DropdownMenuSeparator({
|
|
70
|
+
className,
|
|
71
|
+
...props
|
|
72
|
+
}: React.ComponentProps<typeof DropdownMenu.Separator>): react_jsx_runtime191.JSX.Element;
|
|
73
|
+
/** Right-aligned hint for an item's keyboard shortcut (e.g. ⇧⌘P). */
|
|
74
|
+
declare function DropdownMenuShortcut({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<"span">): react_jsx_runtime191.JSX.Element;
|
|
78
|
+
/** Root for a nested submenu; holds the sub-trigger and its sub-content. */
|
|
79
|
+
declare function DropdownMenuSub({
|
|
80
|
+
...props
|
|
81
|
+
}: React.ComponentProps<typeof DropdownMenu.Sub>): react_jsx_runtime191.JSX.Element;
|
|
82
|
+
/** The item that opens a nested submenu, shown with a trailing chevron. */
|
|
83
|
+
declare function DropdownMenuSubTrigger({
|
|
84
|
+
className,
|
|
85
|
+
/** Indents the trigger to align with rows that have a leading icon/indicator. */
|
|
86
|
+
inset,
|
|
87
|
+
children,
|
|
88
|
+
...props
|
|
89
|
+
}: React.ComponentProps<typeof DropdownMenu.SubTrigger> & {
|
|
90
|
+
inset?: boolean;
|
|
91
|
+
}): react_jsx_runtime191.JSX.Element;
|
|
92
|
+
/** The floating surface for a nested submenu's items. */
|
|
93
|
+
declare function DropdownMenuSubContent({
|
|
8
94
|
className,
|
|
9
|
-
align,
|
|
10
95
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof
|
|
12
|
-
/** Layout of the label: `block` (default, left-aligned inline-flex) or `inline` (full-width, centered text). */
|
|
13
|
-
align?: "block" | "inline";
|
|
14
|
-
}): react_jsx_runtime87.JSX.Element;
|
|
96
|
+
}: React.ComponentProps<typeof DropdownMenu.SubContent>): react_jsx_runtime191.JSX.Element;
|
|
15
97
|
//#endregion
|
|
16
|
-
export {
|
|
98
|
+
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu$1 as t, DropdownMenuSeparator as u };
|
|
17
99
|
//# sourceMappingURL=index26.d.ts.map
|
package/dist/index26.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index26.d.ts","names":[],"sources":["../src/primitives/DropdownMenu/DropdownMenu.tsx"],"mappings":";;;;;;iBAQS,cAAA;;GAA2B,KAAA,CAAM,sBAAsB,YAAA,CAAsB,QAAK,oBAAA,CAAA,GAAA,CAAA;;AALvD,iBAU3B,kBAAA,CALY;EAAA,GAAA;AAAA,CAAA,EAOlB,KAAA,CAAM,cAPY,CAAA,OAOU,YAAA,CAAsB,MAPhC,CAAA,CAAA,EAOuC,oBAAA,CAAA,GAAA,CAAA,OAPvC;;iBAYZ,mBAAA,CAZ6E;EAAA,GAAA;AAAA,CAAA,EAcnF,KAAA,CAAM,cAd6E,CAAA,OAcvD,YAAA,CAAsB,OAdiC,CAAA,CAAA,EAczB,oBAAA,CAAA,GAAA,CAAA,OAdyB;;iBAmB7E,m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_variance_authority_types18 from "class-variance-authority/types";
|
|
1
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
5
4
|
import * as React from "react";
|
|
6
5
|
|
|
7
|
-
//#region src/primitives/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className,
|
|
6
|
+
//#region src/primitives/Empty/Empty.d.ts
|
|
7
|
+
declare const emptyVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "outline" | "background" | "outline-dashed" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
10
|
+
/** Centered empty-state container; compose Header/Media/Title/Description/Content inside it. */
|
|
11
|
+
declare function Empty({
|
|
12
|
+
className,
|
|
13
|
+
/** Container chrome: plain, bordered, muted background, or dashed border. */
|
|
16
14
|
variant,
|
|
17
15
|
...props
|
|
18
|
-
}: React.ComponentProps<"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}): react_jsx_runtime147.JSX.Element;
|
|
22
|
-
/** A container that stacks multiple `Field`s with group-level spacing and a responsive container. */
|
|
23
|
-
declare function FieldGroup({
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<"div">): react_jsx_runtime147.JSX.Element;
|
|
27
|
-
declare const fieldVariants: (props?: ({
|
|
28
|
-
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
29
|
-
} & class_variance_authority_types18.ClassProp) | undefined) => string;
|
|
30
|
-
/** A single labelled form field that lays out a control with its label, description, and error. */
|
|
31
|
-
declare function Field({
|
|
16
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>): react_jsx_runtime88.JSX.Element;
|
|
17
|
+
/** Groups the media, title, and description with centered alignment. */
|
|
18
|
+
declare function EmptyHeader({
|
|
32
19
|
className,
|
|
33
|
-
/** Layout direction of the label/control: stacked (`vertical`), side-by-side (`horizontal`), or `responsive`. */
|
|
34
|
-
orientation,
|
|
35
20
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/** The accessible label for a field's control; wraps the `Label` primitive. */
|
|
43
|
-
declare function FieldLabel({
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}: React.ComponentProps<typeof Label>): react_jsx_runtime147.JSX.Element;
|
|
47
|
-
/** A non-`<label>` title for a field group, styled like a label but not bound to a control. */
|
|
48
|
-
declare function FieldTitle({
|
|
21
|
+
}: React.ComponentProps<"div">): react_jsx_runtime88.JSX.Element;
|
|
22
|
+
declare const emptyMediaVariants: (props?: ({
|
|
23
|
+
variant?: "default" | "icon" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
25
|
+
/** Holds the leading illustration or icon above the title. */
|
|
26
|
+
declare function EmptyMedia({
|
|
49
27
|
className,
|
|
28
|
+
/** Visual treatment: bare media or a rounded muted icon badge. */
|
|
29
|
+
variant,
|
|
50
30
|
...props
|
|
51
|
-
}: React.ComponentProps<"div">):
|
|
52
|
-
/**
|
|
53
|
-
declare function
|
|
31
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime88.JSX.Element;
|
|
32
|
+
/** The primary heading line of the empty state. */
|
|
33
|
+
declare function EmptyTitle({
|
|
54
34
|
className,
|
|
55
35
|
...props
|
|
56
|
-
}: React.ComponentProps<"
|
|
57
|
-
/**
|
|
58
|
-
declare function
|
|
59
|
-
children,
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime88.JSX.Element;
|
|
37
|
+
/** Muted supporting copy explaining the empty state. */
|
|
38
|
+
declare function EmptyDescription({
|
|
60
39
|
className,
|
|
61
40
|
...props
|
|
62
|
-
}: React.ComponentProps<"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}): react_jsx_runtime147.JSX.Element;
|
|
66
|
-
/** A destructive `role="alert"` message for a field, rendered from `children` or a list of `errors`. */
|
|
67
|
-
declare function FieldError({
|
|
41
|
+
}: React.ComponentProps<"p">): react_jsx_runtime88.JSX.Element;
|
|
42
|
+
/** Slot for actions or follow-up content below the header. */
|
|
43
|
+
declare function EmptyContent({
|
|
68
44
|
className,
|
|
69
|
-
children,
|
|
70
|
-
errors,
|
|
71
45
|
...props
|
|
72
|
-
}: React.ComponentProps<"div">
|
|
73
|
-
/** Validation errors to render; deduped by message and listed when more than one. Ignored if `children` is provided. */
|
|
74
|
-
errors?: Array<{
|
|
75
|
-
message?: string;
|
|
76
|
-
} | undefined>;
|
|
77
|
-
}): react_jsx_runtime147.JSX.Element | null;
|
|
46
|
+
}: React.ComponentProps<"div">): react_jsx_runtime88.JSX.Element;
|
|
78
47
|
//#endregion
|
|
79
|
-
export {
|
|
48
|
+
export { EmptyMedia as a, EmptyHeader as i, EmptyContent as n, EmptyTitle as o, EmptyDescription as r, emptyVariants as s, Empty as t };
|
|
80
49
|
//# sourceMappingURL=index27.d.cts.map
|
package/dist/index27.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index27.d.cts","names":[],"sources":["../src/primitives/Empty/Empty.tsx"],"mappings":";;;;;;cAKM;;IAgBL,gCAAA,CAAA;;AApBmC,iBAuB3B,KAAA,CAHR;EAAA,SAAA;;SAGa;EAAA,GAAA;AAAA,CAAA,EAKX,KAAA,CAAM,cALK,CAAA,KAAA,CAAA,GAKmB,YALnB,CAAA,OAKuC,aALvC,CAAA,CAAA,EAKqD,mBAAA,CAAA,GAAA,CAAA,OALrD;;iBAiBL,WAAA,CAdP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAc4C,KAAA,CAAM,cAdlD,CAAA,KAAA,CAAA,CAAA,EAcuE,mBAAA,CAAA,GAAA,CAAA,OAdvE;cAwBI,kBAtBG,EAAA,CAAA,KAAwB,CAAxB,EAAA,CAAA;SAA4C,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAmCpD,gCAAA,CAAA,SAnCgC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;AAAkC,iBAsC1D,UAAA,CAtC0D;EAAA,SAAA;EAAA;SAY/C;EAAA,GAAA;AAAA,CAAA,EA+BjB,KAAA,CAAM,cA/BW,CAAA,KAAA,CAAA,GA+Ba,YA/Bb,CAAA,OA+BiC,kBA/BjC,CAAA,CAAA,EA+BoD,mBAAA,CAAA,GAAA,CAAA,OA/BpD;;iBA2CX,UAAA,CA3C2C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2CP,KAAA,CAAM,cA3CC,CAAA,KAAA,CAAA,CAAA,EA2CoB,mBAAA,CAAA,GAAA,CAAA,OA3CpB;;AAAqB,iBAsDhE,gBAAA,CAtDgE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsDtB,KAAA,CAAM,cAtDgB,CAAA,GAAA,CAAA,CAAA,EAsDG,mBAAA,CAAA,GAAA,CAAA,OAtDH;AAAA;iBAoEhE,YAAA,CA1CU;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0C4B,KAAA,CAAM,cA1ClC,CAAA,KAAA,CAAA,CAAA,EA0CuD,mBAAA,CAAA,GAAA,CAAA,OA1CvD"}
|
package/dist/index27.d.ts
CHANGED
|
@@ -1,80 +1,49 @@
|
|
|
1
|
-
import { t as Label } from "./index26.js";
|
|
2
1
|
import { VariantProps } from "class-variance-authority";
|
|
3
2
|
import * as React from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime319 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types25 from "class-variance-authority/types";
|
|
6
5
|
|
|
7
|
-
//#region src/primitives/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className,
|
|
6
|
+
//#region src/primitives/Empty/Empty.d.ts
|
|
7
|
+
declare const emptyVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "outline" | "background" | "outline-dashed" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types25.ClassProp) | undefined) => string;
|
|
10
|
+
/** Centered empty-state container; compose Header/Media/Title/Description/Content inside it. */
|
|
11
|
+
declare function Empty({
|
|
12
|
+
className,
|
|
13
|
+
/** Container chrome: plain, bordered, muted background, or dashed border. */
|
|
16
14
|
variant,
|
|
17
15
|
...props
|
|
18
|
-
}: React.ComponentProps<"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}): react_jsx_runtime88.JSX.Element;
|
|
22
|
-
/** A container that stacks multiple `Field`s with group-level spacing and a responsive container. */
|
|
23
|
-
declare function FieldGroup({
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<"div">): react_jsx_runtime88.JSX.Element;
|
|
27
|
-
declare const fieldVariants: (props?: ({
|
|
28
|
-
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
29
|
-
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
30
|
-
/** A single labelled form field that lays out a control with its label, description, and error. */
|
|
31
|
-
declare function Field({
|
|
16
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>): react_jsx_runtime319.JSX.Element;
|
|
17
|
+
/** Groups the media, title, and description with centered alignment. */
|
|
18
|
+
declare function EmptyHeader({
|
|
32
19
|
className,
|
|
33
|
-
/** Layout direction of the label/control: stacked (`vertical`), side-by-side (`horizontal`), or `responsive`. */
|
|
34
|
-
orientation,
|
|
35
20
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/** The accessible label for a field's control; wraps the `Label` primitive. */
|
|
43
|
-
declare function FieldLabel({
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}: React.ComponentProps<typeof Label>): react_jsx_runtime88.JSX.Element;
|
|
47
|
-
/** A non-`<label>` title for a field group, styled like a label but not bound to a control. */
|
|
48
|
-
declare function FieldTitle({
|
|
21
|
+
}: React.ComponentProps<"div">): react_jsx_runtime319.JSX.Element;
|
|
22
|
+
declare const emptyMediaVariants: (props?: ({
|
|
23
|
+
variant?: "default" | "icon" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types25.ClassProp) | undefined) => string;
|
|
25
|
+
/** Holds the leading illustration or icon above the title. */
|
|
26
|
+
declare function EmptyMedia({
|
|
49
27
|
className,
|
|
28
|
+
/** Visual treatment: bare media or a rounded muted icon badge. */
|
|
29
|
+
variant,
|
|
50
30
|
...props
|
|
51
|
-
}: React.ComponentProps<"div">):
|
|
52
|
-
/**
|
|
53
|
-
declare function
|
|
31
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime319.JSX.Element;
|
|
32
|
+
/** The primary heading line of the empty state. */
|
|
33
|
+
declare function EmptyTitle({
|
|
54
34
|
className,
|
|
55
35
|
...props
|
|
56
|
-
}: React.ComponentProps<"
|
|
57
|
-
/**
|
|
58
|
-
declare function
|
|
59
|
-
children,
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime319.JSX.Element;
|
|
37
|
+
/** Muted supporting copy explaining the empty state. */
|
|
38
|
+
declare function EmptyDescription({
|
|
60
39
|
className,
|
|
61
40
|
...props
|
|
62
|
-
}: React.ComponentProps<"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}): react_jsx_runtime88.JSX.Element;
|
|
66
|
-
/** A destructive `role="alert"` message for a field, rendered from `children` or a list of `errors`. */
|
|
67
|
-
declare function FieldError({
|
|
41
|
+
}: React.ComponentProps<"p">): react_jsx_runtime319.JSX.Element;
|
|
42
|
+
/** Slot for actions or follow-up content below the header. */
|
|
43
|
+
declare function EmptyContent({
|
|
68
44
|
className,
|
|
69
|
-
children,
|
|
70
|
-
errors,
|
|
71
45
|
...props
|
|
72
|
-
}: React.ComponentProps<"div">
|
|
73
|
-
/** Validation errors to render; deduped by message and listed when more than one. Ignored if `children` is provided. */
|
|
74
|
-
errors?: Array<{
|
|
75
|
-
message?: string;
|
|
76
|
-
} | undefined>;
|
|
77
|
-
}): react_jsx_runtime88.JSX.Element | null;
|
|
46
|
+
}: React.ComponentProps<"div">): react_jsx_runtime319.JSX.Element;
|
|
78
47
|
//#endregion
|
|
79
|
-
export {
|
|
48
|
+
export { EmptyMedia as a, EmptyHeader as i, EmptyContent as n, EmptyTitle as o, EmptyDescription as r, emptyVariants as s, Empty as t };
|
|
80
49
|
//# sourceMappingURL=index27.d.ts.map
|
package/dist/index27.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index27.d.ts","names":[],"sources":["../src/primitives/Empty/Empty.tsx"],"mappings":";;;;;;cAKM;;IAgBL,gCAAA,CAAA;;AApBmC,iBAuB3B,KAAA,CAHR;EAAA,SAAA;;SAGa;EAAA,GAAA;AAAA,CAAA,EAKX,KAAA,CAAM,cALK,CAAA,KAAA,CAAA,GAKmB,YALnB,CAAA,OAKuC,aALvC,CAAA,CAAA,EAKqD,oBAAA,CAAA,GAAA,CAAA,OALrD;;iBAiBL,WAAA,CAdP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAc4C,KAAA,CAAM,cAdlD,CAAA,KAAA,CAAA,CAAA,EAcuE,oBAAA,CAAA,GAAA,CAAA,OAdvE;cAwBI,kBAtBG,EAAA,CAAA,KAAwB,CAAxB,EAAA,CAAA;SAA4C,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAmCpD,gCAAA,CAAA,SAnCgC,CAAA,GAAA,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