@psnext/design-system 2.5.0 → 2.6.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 +5 -0
- package/SKILL.md +1 -1
- package/dist/Header.cjs +2 -2
- package/dist/Header.js +2 -2
- 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 +7 -7
- 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.ts +3 -3
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.ts +12 -12
- package/dist/index12.d.ts.map +1 -1
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index13.d.ts.map +1 -1
- package/dist/index14.d.cts +5 -5
- 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.ts +3 -3
- package/dist/index16.d.ts.map +1 -1
- 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.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/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 +109 -27
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +109 -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.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 +66 -18
- 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 +15 -120
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +15 -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 +118 -49
- package/dist/index44.d.cts.map +1 -1
- package/dist/index44.d.ts +118 -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.cts.map +1 -1
- package/dist/index6.d.ts +5 -5
- package/dist/index6.d.ts.map +1 -1
- 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 +35 -14
- 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.ts +8 -8
- package/dist/index7.d.ts.map +1 -1
- 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 +17 -83
- 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.ts +4 -4
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.cts.map +1 -1
- package/dist/index9.d.ts +2 -2
- package/dist/index9.d.ts.map +1 -1
- 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/DataTable/index.d.ts.map +1 -1
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Footer/index.d.ts.map +1 -1
- 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 +13 -13
- package/dist/patterns/MediaObject/index.d.ts +14 -14
- 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/SectionCard/index.d.ts.map +1 -1
- 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/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 +1 -1
- package/dist/primitives/Mosaic/index.d.ts +1 -1
- 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/index21.d.cts
CHANGED
|
@@ -1,96 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime224 from "react/jsx-runtime";
|
|
2
|
+
import { Popover } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/Popover/Popover.d.ts
|
|
6
|
+
/** Root of the popover: holds open state and coordinates the trigger and content. */
|
|
7
|
+
declare function Popover$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof
|
|
10
|
-
/** The
|
|
11
|
-
declare function
|
|
9
|
+
}: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime224.JSX.Element;
|
|
10
|
+
/** The control (usually a button) that toggles the popover open and closed. */
|
|
11
|
+
declare function PopoverTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
16
|
-
|
|
17
|
-
}: React.ComponentProps<typeof ContextMenu.Group>): react_jsx_runtime157.JSX.Element;
|
|
18
|
-
/** Portals the menu content into the document body. */
|
|
19
|
-
declare function ContextMenuPortal({
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof ContextMenu.Portal>): react_jsx_runtime157.JSX.Element;
|
|
22
|
-
/** Wraps a nested submenu (pair with `ContextMenuSubTrigger` and `ContextMenuSubContent`). */
|
|
23
|
-
declare function ContextMenuSub({
|
|
24
|
-
...props
|
|
25
|
-
}: React.ComponentProps<typeof ContextMenu.Sub>): react_jsx_runtime157.JSX.Element;
|
|
26
|
-
/** Groups `ContextMenuRadioItem`s into a single-select set. */
|
|
27
|
-
declare function ContextMenuRadioGroup({
|
|
28
|
-
...props
|
|
29
|
-
}: React.ComponentProps<typeof ContextMenu.RadioGroup>): react_jsx_runtime157.JSX.Element;
|
|
30
|
-
/** Item that opens a nested submenu; renders a trailing chevron. */
|
|
31
|
-
declare function ContextMenuSubTrigger({
|
|
13
|
+
}: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime224.JSX.Element;
|
|
14
|
+
/** The floating, portaled panel rendered when the popover is open. */
|
|
15
|
+
declare function PopoverContent({
|
|
16
|
+
/** Extra classes merged onto the content surface. */
|
|
32
17
|
className,
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
/** Alignment of the content relative to the trigger along the chosen side. */
|
|
19
|
+
align,
|
|
20
|
+
/** Distance in px between the content and the trigger. */
|
|
21
|
+
sideOffset,
|
|
35
22
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}): react_jsx_runtime157.JSX.Element;
|
|
40
|
-
/** The popover surface for a nested submenu. */
|
|
41
|
-
declare function ContextMenuSubContent({
|
|
42
|
-
className,
|
|
43
|
-
...props
|
|
44
|
-
}: React.ComponentProps<typeof ContextMenu.SubContent>): react_jsx_runtime157.JSX.Element;
|
|
45
|
-
/** The portalled popover surface that holds the menu items. */
|
|
46
|
-
declare function ContextMenuContent({
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: React.ComponentProps<typeof ContextMenu.Content>): react_jsx_runtime157.JSX.Element;
|
|
50
|
-
/** A selectable menu item; supports a `destructive` variant and `inset` alignment. */
|
|
51
|
-
declare function ContextMenuItem({
|
|
52
|
-
className,
|
|
53
|
-
inset,
|
|
54
|
-
variant,
|
|
55
|
-
...props
|
|
56
|
-
}: React.ComponentProps<typeof ContextMenu.Item> & {
|
|
57
|
-
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
58
|
-
inset?: boolean;
|
|
59
|
-
/** Visual intent; `destructive` colours the item with the danger palette. */
|
|
60
|
-
variant?: "default" | "destructive";
|
|
61
|
-
}): react_jsx_runtime157.JSX.Element;
|
|
62
|
-
/** A menu item with a toggleable checkmark indicator. */
|
|
63
|
-
declare function ContextMenuCheckboxItem({
|
|
64
|
-
className,
|
|
65
|
-
children,
|
|
66
|
-
checked,
|
|
67
|
-
...props
|
|
68
|
-
}: React.ComponentProps<typeof ContextMenu.CheckboxItem>): react_jsx_runtime157.JSX.Element;
|
|
69
|
-
/** A menu item with a radio indicator; use inside `ContextMenuRadioGroup`. */
|
|
70
|
-
declare function ContextMenuRadioItem({
|
|
71
|
-
className,
|
|
72
|
-
children,
|
|
23
|
+
}: React.ComponentProps<typeof Popover.Content>): react_jsx_runtime224.JSX.Element;
|
|
24
|
+
/** Optional element the content positions against instead of the trigger. */
|
|
25
|
+
declare function PopoverAnchor({
|
|
73
26
|
...props
|
|
74
|
-
}: React.ComponentProps<typeof
|
|
75
|
-
/**
|
|
76
|
-
declare function
|
|
27
|
+
}: React.ComponentProps<typeof Popover.Anchor>): react_jsx_runtime224.JSX.Element;
|
|
28
|
+
/** Stacked header slot for a title and description at the top of the content. */
|
|
29
|
+
declare function PopoverHeader({
|
|
77
30
|
className,
|
|
78
|
-
inset,
|
|
79
31
|
...props
|
|
80
|
-
}: React.ComponentProps<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}): react_jsx_runtime157.JSX.Element;
|
|
84
|
-
/** A horizontal divider between groups of items. */
|
|
85
|
-
declare function ContextMenuSeparator({
|
|
32
|
+
}: React.ComponentProps<"div">): react_jsx_runtime224.JSX.Element;
|
|
33
|
+
/** Emphasised title line for the popover header. */
|
|
34
|
+
declare function PopoverTitle({
|
|
86
35
|
className,
|
|
87
36
|
...props
|
|
88
|
-
}: React.ComponentProps<
|
|
89
|
-
/**
|
|
90
|
-
declare function
|
|
37
|
+
}: React.ComponentProps<"h2">): react_jsx_runtime224.JSX.Element;
|
|
38
|
+
/** Muted supporting copy for the popover header. */
|
|
39
|
+
declare function PopoverDescription({
|
|
91
40
|
className,
|
|
92
41
|
...props
|
|
93
|
-
}: React.ComponentProps<"
|
|
42
|
+
}: React.ComponentProps<"p">): react_jsx_runtime224.JSX.Element;
|
|
94
43
|
//#endregion
|
|
95
|
-
export {
|
|
44
|
+
export { PopoverHeader as a, PopoverDescription as i, PopoverAnchor as n, PopoverTitle as o, PopoverContent as r, PopoverTrigger as s, Popover$1 as t };
|
|
96
45
|
//# sourceMappingURL=index21.d.cts.map
|
package/dist/index21.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index21.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index21.d.cts","names":[],"sources":["../src/primitives/Popover/Popover.tsx"],"mappings":";;;;;;iBAMS,SAAA;;GAAsB,KAAA,CAAM,sBAAsB,OAAA,CAAiB,QAAK,oBAAA,CAAA,GAAA,CAAA;;AAL7C,iBAU3B,cAAA,CALO;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,OAAA,CAAiB,OALnE,CAAA,CAAA,EAK2E,oBAAA,CAAA,GAAA,CAAA,OAL3E;;iBAUP,cAAA,CAVmE;;WAAK;EAAA;EAAA,KAKxE;;YAAyD;EAAA,GAAiB;AAAA,CAAA,EAahF,KAAA,CAAM,cAb0E,CAAA,OAapD,OAAA,CAAiB,OAbmC,CAAA,CAAA,EAa3B,oBAAA,CAAA,GAAA,CAAA,OAb2B;;iBAgC1E,aAAA,CAhCkF;EAAA,GAAA;AAAA,CAAA,EAgCtD,KAAA,CAAM,cAhCgD,CAAA,OAgC1B,OAAA,CAAiB,MAhCS,CAAA,CAAA,EAgCF,oBAAA,CAAA,GAAA,CAAA,OAhCE;AAAA;AAAA,iBAqClF,aAAA,CAhCc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgCyB,KAAA,CAAM,cAhC/B,CAAA,KAAA,CAAA,CAAA,EAgCoD,oBAAA,CAAA,GAAA,CAAA,OAhCpD;;iBA2Cd,YAAA,CAzCP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyC6C,KAAA,CAAM,cAzCnD,CAAA,IAAA,CAAA,CAAA,EAyCuE,oBAAA,CAAA,GAAA,CAAA,OAzCvE;;iBAoDO,kBAAA,CAhDP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgDmD,KAAA,CAAM,cAhDzD,CAAA,GAAA,CAAA,CAAA,EAgD4E,oBAAA,CAAA,GAAA,CAAA,OAhD5E"}
|
package/dist/index21.d.ts
CHANGED
|
@@ -1,96 +1,45 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as react_jsx_runtime275 from "react/jsx-runtime";
|
|
3
|
+
import { Popover } from "radix-ui";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/Popover/Popover.d.ts
|
|
6
|
+
/** Root of the popover: holds open state and coordinates the trigger and content. */
|
|
7
|
+
declare function Popover$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof
|
|
10
|
-
/** The
|
|
11
|
-
declare function
|
|
9
|
+
}: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime275.JSX.Element;
|
|
10
|
+
/** The control (usually a button) that toggles the popover open and closed. */
|
|
11
|
+
declare function PopoverTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
16
|
-
|
|
17
|
-
}: React.ComponentProps<typeof ContextMenu.Group>): react_jsx_runtime330.JSX.Element;
|
|
18
|
-
/** Portals the menu content into the document body. */
|
|
19
|
-
declare function ContextMenuPortal({
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof ContextMenu.Portal>): react_jsx_runtime330.JSX.Element;
|
|
22
|
-
/** Wraps a nested submenu (pair with `ContextMenuSubTrigger` and `ContextMenuSubContent`). */
|
|
23
|
-
declare function ContextMenuSub({
|
|
24
|
-
...props
|
|
25
|
-
}: React.ComponentProps<typeof ContextMenu.Sub>): react_jsx_runtime330.JSX.Element;
|
|
26
|
-
/** Groups `ContextMenuRadioItem`s into a single-select set. */
|
|
27
|
-
declare function ContextMenuRadioGroup({
|
|
28
|
-
...props
|
|
29
|
-
}: React.ComponentProps<typeof ContextMenu.RadioGroup>): react_jsx_runtime330.JSX.Element;
|
|
30
|
-
/** Item that opens a nested submenu; renders a trailing chevron. */
|
|
31
|
-
declare function ContextMenuSubTrigger({
|
|
13
|
+
}: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime275.JSX.Element;
|
|
14
|
+
/** The floating, portaled panel rendered when the popover is open. */
|
|
15
|
+
declare function PopoverContent({
|
|
16
|
+
/** Extra classes merged onto the content surface. */
|
|
32
17
|
className,
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
/** Alignment of the content relative to the trigger along the chosen side. */
|
|
19
|
+
align,
|
|
20
|
+
/** Distance in px between the content and the trigger. */
|
|
21
|
+
sideOffset,
|
|
35
22
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}): react_jsx_runtime330.JSX.Element;
|
|
40
|
-
/** The popover surface for a nested submenu. */
|
|
41
|
-
declare function ContextMenuSubContent({
|
|
42
|
-
className,
|
|
43
|
-
...props
|
|
44
|
-
}: React.ComponentProps<typeof ContextMenu.SubContent>): react_jsx_runtime330.JSX.Element;
|
|
45
|
-
/** The portalled popover surface that holds the menu items. */
|
|
46
|
-
declare function ContextMenuContent({
|
|
47
|
-
className,
|
|
48
|
-
...props
|
|
49
|
-
}: React.ComponentProps<typeof ContextMenu.Content>): react_jsx_runtime330.JSX.Element;
|
|
50
|
-
/** A selectable menu item; supports a `destructive` variant and `inset` alignment. */
|
|
51
|
-
declare function ContextMenuItem({
|
|
52
|
-
className,
|
|
53
|
-
inset,
|
|
54
|
-
variant,
|
|
55
|
-
...props
|
|
56
|
-
}: React.ComponentProps<typeof ContextMenu.Item> & {
|
|
57
|
-
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
58
|
-
inset?: boolean;
|
|
59
|
-
/** Visual intent; `destructive` colours the item with the danger palette. */
|
|
60
|
-
variant?: "default" | "destructive";
|
|
61
|
-
}): react_jsx_runtime330.JSX.Element;
|
|
62
|
-
/** A menu item with a toggleable checkmark indicator. */
|
|
63
|
-
declare function ContextMenuCheckboxItem({
|
|
64
|
-
className,
|
|
65
|
-
children,
|
|
66
|
-
checked,
|
|
67
|
-
...props
|
|
68
|
-
}: React.ComponentProps<typeof ContextMenu.CheckboxItem>): react_jsx_runtime330.JSX.Element;
|
|
69
|
-
/** A menu item with a radio indicator; use inside `ContextMenuRadioGroup`. */
|
|
70
|
-
declare function ContextMenuRadioItem({
|
|
71
|
-
className,
|
|
72
|
-
children,
|
|
23
|
+
}: React.ComponentProps<typeof Popover.Content>): react_jsx_runtime275.JSX.Element;
|
|
24
|
+
/** Optional element the content positions against instead of the trigger. */
|
|
25
|
+
declare function PopoverAnchor({
|
|
73
26
|
...props
|
|
74
|
-
}: React.ComponentProps<typeof
|
|
75
|
-
/**
|
|
76
|
-
declare function
|
|
27
|
+
}: React.ComponentProps<typeof Popover.Anchor>): react_jsx_runtime275.JSX.Element;
|
|
28
|
+
/** Stacked header slot for a title and description at the top of the content. */
|
|
29
|
+
declare function PopoverHeader({
|
|
77
30
|
className,
|
|
78
|
-
inset,
|
|
79
31
|
...props
|
|
80
|
-
}: React.ComponentProps<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}): react_jsx_runtime330.JSX.Element;
|
|
84
|
-
/** A horizontal divider between groups of items. */
|
|
85
|
-
declare function ContextMenuSeparator({
|
|
32
|
+
}: React.ComponentProps<"div">): react_jsx_runtime275.JSX.Element;
|
|
33
|
+
/** Emphasised title line for the popover header. */
|
|
34
|
+
declare function PopoverTitle({
|
|
86
35
|
className,
|
|
87
36
|
...props
|
|
88
|
-
}: React.ComponentProps<
|
|
89
|
-
/**
|
|
90
|
-
declare function
|
|
37
|
+
}: React.ComponentProps<"h2">): react_jsx_runtime275.JSX.Element;
|
|
38
|
+
/** Muted supporting copy for the popover header. */
|
|
39
|
+
declare function PopoverDescription({
|
|
91
40
|
className,
|
|
92
41
|
...props
|
|
93
|
-
}: React.ComponentProps<"
|
|
42
|
+
}: React.ComponentProps<"p">): react_jsx_runtime275.JSX.Element;
|
|
94
43
|
//#endregion
|
|
95
|
-
export {
|
|
44
|
+
export { PopoverHeader as a, PopoverDescription as i, PopoverAnchor as n, PopoverTitle as o, PopoverContent as r, PopoverTrigger as s, Popover$1 as t };
|
|
96
45
|
//# sourceMappingURL=index21.d.ts.map
|
package/dist/index21.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index21.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index21.d.ts","names":[],"sources":["../src/primitives/Popover/Popover.tsx"],"mappings":";;;;;;iBAMS,SAAA;;GAAsB,KAAA,CAAM,sBAAsB,OAAA,CAAiB,QAAK,oBAAA,CAAA,GAAA,CAAA;;AAL7C,iBAU3B,cAAA,CALO;EAAA,GAAA;AAAA,CAAA,EAKsB,KAAA,CAAM,cAL5B,CAAA,OAKkD,OAAA,CAAiB,OALnE,CAAA,CAAA,EAK2E,oBAAA,CAAA,GAAA,CAAA,OAL3E;;iBAUP,cAAA,CAVmE;;WAAK;EAAA;EAAA,KAKxE;;YAAyD;EAAA,GAAiB;AAAA,CAAA,EAahF,KAAA,CAAM,cAb0E,CAAA,OAapD,OAAA,CAAiB,OAbmC,CAAA,CAAA,EAa3B,oBAAA,CAAA,GAAA,CAAA,OAb2B;;iBAgC1E,aAAA,CAhCkF;EAAA,GAAA;AAAA,CAAA,EAgCtD,KAAA,CAAM,cAhCgD,CAAA,OAgC1B,OAAA,CAAiB,MAhCS,CAAA,CAAA,EAgCF,oBAAA,CAAA,GAAA,CAAA,OAhCE;AAAA;AAAA,iBAqClF,aAAA,CAhCc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgCyB,KAAA,CAAM,cAhC/B,CAAA,KAAA,CAAA,CAAA,EAgCoD,oBAAA,CAAA,GAAA,CAAA,OAhCpD;;iBA2Cd,YAAA,CAzCP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyC6C,KAAA,CAAM,cAzCnD,CAAA,IAAA,CAAA,CAAA,EAyCuE,oBAAA,CAAA,GAAA,CAAA,OAzCvE;;iBAoDO,kBAAA,CAhDP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgDmD,KAAA,CAAM,cAhDzD,CAAA,GAAA,CAAA,CAAA,EAgD4E,oBAAA,CAAA,GAAA,CAAA,OAhD5E"}
|
package/dist/index22.d.cts
CHANGED
|
@@ -1,34 +1,116 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { c as CommandSeparator, i as CommandGroup, o as CommandItem, s as CommandList } from "./index20.cjs";
|
|
2
|
+
import { r as PopoverContent, s as PopoverTrigger } from "./index21.cjs";
|
|
3
|
+
import * as react_jsx_runtime116 from "react/jsx-runtime";
|
|
3
4
|
import * as React from "react";
|
|
5
|
+
import { Command } from "cmdk";
|
|
4
6
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
value:
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
//#region src/primitives/Combobox/Combobox.d.ts
|
|
8
|
+
interface ComboboxProps {
|
|
9
|
+
/** Controlled selected value. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** Initial selected value (uncontrolled). */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/** Called with the item's `value` when a selection is made. */
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
/** Controlled open state of the dropdown. */
|
|
16
|
+
open?: boolean;
|
|
17
|
+
/** Initially open (uncontrolled). */
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
/** Called when the dropdown opens or closes. */
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
/** Forwarded to the underlying Popover root. */
|
|
22
|
+
modal?: boolean;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Searchable single-select dropdown (the shadcn "combobox" recipe): a Popover
|
|
27
|
+
* holding a filterable Command list. Holds the selected value and open state,
|
|
28
|
+
* and closes on selection. Search state resets automatically on close because
|
|
29
|
+
* the content unmounts.
|
|
30
|
+
*/
|
|
31
|
+
declare function Combobox({
|
|
32
|
+
value,
|
|
33
|
+
defaultValue,
|
|
34
|
+
onValueChange,
|
|
35
|
+
open,
|
|
36
|
+
defaultOpen,
|
|
37
|
+
onOpenChange,
|
|
38
|
+
modal,
|
|
39
|
+
children
|
|
40
|
+
}: Readonly<ComboboxProps>): react_jsx_runtime116.JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Pill-shaped trigger showing the current selection. With no `children`, it
|
|
43
|
+
* renders the selected item's label (or `placeholder` when nothing is
|
|
44
|
+
* selected); pass `children` to fully control the display — e.g. when the
|
|
45
|
+
* selected label comes from data the items haven't mounted with yet.
|
|
46
|
+
*/
|
|
47
|
+
declare function ComboboxTrigger({
|
|
48
|
+
className,
|
|
49
|
+
/** Muted prefix rendered as `label:` before the value (e.g. `Project:`). */
|
|
50
|
+
label,
|
|
51
|
+
/** Muted text shown while nothing is selected. */
|
|
52
|
+
placeholder,
|
|
53
|
+
children,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<typeof PopoverTrigger> & {
|
|
56
|
+
label?: string;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
}): react_jsx_runtime116.JSX.Element;
|
|
59
|
+
/** The dropdown panel: a Command (filterable list) inside a PopoverContent. */
|
|
60
|
+
declare function ComboboxContent({
|
|
61
|
+
className,
|
|
62
|
+
align,
|
|
63
|
+
children,
|
|
64
|
+
filter,
|
|
65
|
+
shouldFilter,
|
|
66
|
+
loop,
|
|
67
|
+
...props
|
|
68
|
+
}: React.ComponentProps<typeof PopoverContent> & Pick<React.ComponentProps<typeof Command>, "filter" | "shouldFilter" | "loop">): react_jsx_runtime116.JSX.Element;
|
|
69
|
+
/** Bordered search field pinned above the list; typing filters the items. */
|
|
70
|
+
declare function ComboboxInput({
|
|
71
|
+
className,
|
|
72
|
+
/** Extra classes for the padded, bottom-bordered section around the field. */
|
|
73
|
+
wrapperClassName,
|
|
74
|
+
...props
|
|
75
|
+
}: React.ComponentProps<typeof Command.Input> & {
|
|
76
|
+
wrapperClassName?: string;
|
|
77
|
+
}): react_jsx_runtime116.JSX.Element;
|
|
78
|
+
/** Scrollable container for the option rows. */
|
|
79
|
+
declare function ComboboxList({
|
|
24
80
|
className,
|
|
81
|
+
...props
|
|
82
|
+
}: React.ComponentProps<typeof CommandList>): react_jsx_runtime116.JSX.Element;
|
|
83
|
+
/** Placeholder row shown when the search matches no items. */
|
|
84
|
+
declare function ComboboxEmpty({
|
|
85
|
+
className,
|
|
86
|
+
...props
|
|
87
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime116.JSX.Element;
|
|
88
|
+
/** A labelled group of related options, with an optional `heading`. */
|
|
89
|
+
declare function ComboboxGroup({
|
|
90
|
+
className,
|
|
91
|
+
...props
|
|
92
|
+
}: React.ComponentProps<typeof CommandGroup>): react_jsx_runtime116.JSX.Element;
|
|
93
|
+
/** A thin divider line between option groups. */
|
|
94
|
+
declare function ComboboxSeparator({
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}: React.ComponentProps<typeof CommandSeparator>): react_jsx_runtime116.JSX.Element;
|
|
98
|
+
/**
|
|
99
|
+
* A selectable option. `value` is what the combobox reports on selection;
|
|
100
|
+
* search matches the visible text (or explicit `keywords`), not the `value`.
|
|
101
|
+
*/
|
|
102
|
+
declare function ComboboxItem({
|
|
103
|
+
/** The value reported by `onValueChange` when this item is chosen. */
|
|
25
104
|
value,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
105
|
+
/** Extra strings the search should match; defaults to the item's text content. */
|
|
106
|
+
keywords,
|
|
107
|
+
className,
|
|
108
|
+
children,
|
|
109
|
+
onSelect,
|
|
30
110
|
...props
|
|
31
|
-
}:
|
|
111
|
+
}: Omit<React.ComponentProps<typeof CommandItem>, "value"> & {
|
|
112
|
+
value: string;
|
|
113
|
+
}): react_jsx_runtime116.JSX.Element;
|
|
32
114
|
//#endregion
|
|
33
|
-
export {
|
|
115
|
+
export { ComboboxInput as a, ComboboxSeparator as c, ComboboxGroup as i, ComboboxTrigger as l, ComboboxContent as n, ComboboxItem as o, ComboboxEmpty as r, ComboboxList as s, Combobox as t };
|
|
34
116
|
//# sourceMappingURL=index22.d.cts.map
|
package/dist/index22.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index22.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index22.d.cts","names":[],"sources":["../src/primitives/Combobox/Combobox.tsx"],"mappings":";;;;;;;UA6CU,aAAA;;;EAAA;EAwBD,YAAQ,CAAA,EAAA,MAAA;EAAA;eACf,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;;MAEA,CAAA,EAAA,OAAA;;aAEA,CAAA,EAAA,OAAA;;cAEA,CAAA,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;;OAEU,CAAA,EAAA,OAAA;UAAT,CAAA,EAlBU,KAAA,CAAM,SAkBhB;;AAAuB;AAAA;;;;;iBATjB,QAAA,CAuEP;EAAA,KAAA;EAAA,YAAA;EAAA,aAAA;EAAA,IAAA;EAAA,WAAA;EAAA,YAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EA9DC,QA8DD,CA9DU,aA8DV,CAAA,CAAA,EA9DwB,oBAAA,CAAA,GAAA,CAAA,OA8DxB;;;;AAEuF;AAAA;;iBARhF,eAAA,CA6BP;EAAA,SAAA;;;;aAIA;EAAA,QAAA;EAAA,GAAA;CAAA,EAzBC,KAAA,CAAM,cAyBP,CAAA,OAzB6B,cAyB7B,CAAA,GAAA;OACA,CAAA,EAAA,MAAA;aAE6B,CAAA,EAAA,MAAA;IA5B0D,oBAAA,CAAA,GAAA,CAAA,OA4BhF;;iBARA,eAAA,CASI;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,MAAA;EAAA,YAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EADV,KAAA,CAAM,cACI,CAAA,OADkB,cAClB,CAAA,GAAX,IAAW,CAAN,KAAA,CAAM,cAAA,CAAA,OAAsB,OAAtB,CAAA,EAAA,QAAA,GAAA,cAAA,GAAA,MAAA,CAAA,CAAA,EAA4E,oBAAA,CAAA,GAAA,CAAA,OAA5E;;iBAgBJ,aAAA,CAhBgF;EAAA,SAAA;EAAA;EAAA,gBAgBhF;EAAA,GAAa;CAAA,EAKnB,KAAA,CAAM,cALa,CAAA,OAKS,OAAA,CAAiB,KAL1B,CAAA,GAAA;EAAA,gBAAA,CAAA,EAAA,MAAA;IAKgE,oBAAA,CAAA,GAAA,CAAA,OAJpF;;iBAuBO,YAAA,CAnBuC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmBD,KAAA,CAAM,cAnBL,CAAA,OAmB2B,WAnB3B,CAAA,CAAA,EAmBuC,oBAAA,CAAA,GAAA,CAAA,OAnBvC;;iBA0BvC,aAAA,CA1B6E;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6BnF,KAAA,CAAM,cA7B6E,CAAA,OA6BvD,OAAA,CAAiB,KA7BsC,CAAA,CAAA,EA6BhC,oBAAA,CAAA,GAAA,CAAA,OA7BgC;AAAA;AAAA,iBAwC7E,aAAA,CArBY;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqB2B,KAAA,CAAM,cArBjC,CAAA,OAqBuD,YArBvD,CAAA,CAAA,EAqBoE,oBAAA,CAAA,GAAA,CAAA,OArBpE;;iBAgCZ,iBAAA,CAhCe;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgC4B,KAAA,CAAM,cAhClC,CAAA,OAgCwD,gBAhCxD,CAAA,CAAA,EAgCyE,oBAAA,CAAA,GAAA,CAAA,OAhCzE;;;;AAA+D;AAAA,iBA0C9E,YAAA,CAnCa;;;;UAGnB;EAAA,SAAM;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAA6C,CAA7C,EAyCN,IAzCM,CAyCD,KAAA,CAAM,cAzCL,CAAA,OAyC2B,WAzC3B,CAAA,EAAA,OAAA,CAAA,GAAA;OAA6C,EAAA,MAAA;AAAA,CAAA,CAAA,EAyCwB,oBAAA,CAAA,GAAA,CAAA,OAzCxB"}
|
package/dist/index22.d.ts
CHANGED
|
@@ -1,34 +1,116 @@
|
|
|
1
|
+
import { c as CommandSeparator, i as CommandGroup, o as CommandItem, s as CommandList } from "./index20.js";
|
|
2
|
+
import { r as PopoverContent, s as PopoverTrigger } from "./index21.js";
|
|
1
3
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
+
import * as react_jsx_runtime341 from "react/jsx-runtime";
|
|
5
|
+
import { Command } from "cmdk";
|
|
4
6
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
value:
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
//#region src/primitives/Combobox/Combobox.d.ts
|
|
8
|
+
interface ComboboxProps {
|
|
9
|
+
/** Controlled selected value. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** Initial selected value (uncontrolled). */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/** Called with the item's `value` when a selection is made. */
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
/** Controlled open state of the dropdown. */
|
|
16
|
+
open?: boolean;
|
|
17
|
+
/** Initially open (uncontrolled). */
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
/** Called when the dropdown opens or closes. */
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
/** Forwarded to the underlying Popover root. */
|
|
22
|
+
modal?: boolean;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Searchable single-select dropdown (the shadcn "combobox" recipe): a Popover
|
|
27
|
+
* holding a filterable Command list. Holds the selected value and open state,
|
|
28
|
+
* and closes on selection. Search state resets automatically on close because
|
|
29
|
+
* the content unmounts.
|
|
30
|
+
*/
|
|
31
|
+
declare function Combobox({
|
|
32
|
+
value,
|
|
33
|
+
defaultValue,
|
|
34
|
+
onValueChange,
|
|
35
|
+
open,
|
|
36
|
+
defaultOpen,
|
|
37
|
+
onOpenChange,
|
|
38
|
+
modal,
|
|
39
|
+
children
|
|
40
|
+
}: Readonly<ComboboxProps>): react_jsx_runtime341.JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Pill-shaped trigger showing the current selection. With no `children`, it
|
|
43
|
+
* renders the selected item's label (or `placeholder` when nothing is
|
|
44
|
+
* selected); pass `children` to fully control the display — e.g. when the
|
|
45
|
+
* selected label comes from data the items haven't mounted with yet.
|
|
46
|
+
*/
|
|
47
|
+
declare function ComboboxTrigger({
|
|
48
|
+
className,
|
|
49
|
+
/** Muted prefix rendered as `label:` before the value (e.g. `Project:`). */
|
|
50
|
+
label,
|
|
51
|
+
/** Muted text shown while nothing is selected. */
|
|
52
|
+
placeholder,
|
|
53
|
+
children,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<typeof PopoverTrigger> & {
|
|
56
|
+
label?: string;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
}): react_jsx_runtime341.JSX.Element;
|
|
59
|
+
/** The dropdown panel: a Command (filterable list) inside a PopoverContent. */
|
|
60
|
+
declare function ComboboxContent({
|
|
61
|
+
className,
|
|
62
|
+
align,
|
|
63
|
+
children,
|
|
64
|
+
filter,
|
|
65
|
+
shouldFilter,
|
|
66
|
+
loop,
|
|
67
|
+
...props
|
|
68
|
+
}: React.ComponentProps<typeof PopoverContent> & Pick<React.ComponentProps<typeof Command>, "filter" | "shouldFilter" | "loop">): react_jsx_runtime341.JSX.Element;
|
|
69
|
+
/** Bordered search field pinned above the list; typing filters the items. */
|
|
70
|
+
declare function ComboboxInput({
|
|
71
|
+
className,
|
|
72
|
+
/** Extra classes for the padded, bottom-bordered section around the field. */
|
|
73
|
+
wrapperClassName,
|
|
74
|
+
...props
|
|
75
|
+
}: React.ComponentProps<typeof Command.Input> & {
|
|
76
|
+
wrapperClassName?: string;
|
|
77
|
+
}): react_jsx_runtime341.JSX.Element;
|
|
78
|
+
/** Scrollable container for the option rows. */
|
|
79
|
+
declare function ComboboxList({
|
|
24
80
|
className,
|
|
81
|
+
...props
|
|
82
|
+
}: React.ComponentProps<typeof CommandList>): react_jsx_runtime341.JSX.Element;
|
|
83
|
+
/** Placeholder row shown when the search matches no items. */
|
|
84
|
+
declare function ComboboxEmpty({
|
|
85
|
+
className,
|
|
86
|
+
...props
|
|
87
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime341.JSX.Element;
|
|
88
|
+
/** A labelled group of related options, with an optional `heading`. */
|
|
89
|
+
declare function ComboboxGroup({
|
|
90
|
+
className,
|
|
91
|
+
...props
|
|
92
|
+
}: React.ComponentProps<typeof CommandGroup>): react_jsx_runtime341.JSX.Element;
|
|
93
|
+
/** A thin divider line between option groups. */
|
|
94
|
+
declare function ComboboxSeparator({
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}: React.ComponentProps<typeof CommandSeparator>): react_jsx_runtime341.JSX.Element;
|
|
98
|
+
/**
|
|
99
|
+
* A selectable option. `value` is what the combobox reports on selection;
|
|
100
|
+
* search matches the visible text (or explicit `keywords`), not the `value`.
|
|
101
|
+
*/
|
|
102
|
+
declare function ComboboxItem({
|
|
103
|
+
/** The value reported by `onValueChange` when this item is chosen. */
|
|
25
104
|
value,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
105
|
+
/** Extra strings the search should match; defaults to the item's text content. */
|
|
106
|
+
keywords,
|
|
107
|
+
className,
|
|
108
|
+
children,
|
|
109
|
+
onSelect,
|
|
30
110
|
...props
|
|
31
|
-
}:
|
|
111
|
+
}: Omit<React.ComponentProps<typeof CommandItem>, "value"> & {
|
|
112
|
+
value: string;
|
|
113
|
+
}): react_jsx_runtime341.JSX.Element;
|
|
32
114
|
//#endregion
|
|
33
|
-
export {
|
|
115
|
+
export { ComboboxInput as a, ComboboxSeparator as c, ComboboxGroup as i, ComboboxTrigger as l, ComboboxContent as n, ComboboxItem as o, ComboboxEmpty as r, ComboboxList as s, Combobox as t };
|
|
34
116
|
//# sourceMappingURL=index22.d.ts.map
|
package/dist/index22.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index22.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index22.d.ts","names":[],"sources":["../src/primitives/Combobox/Combobox.tsx"],"mappings":";;;;;;;UA6CU,aAAA;;;EAAA;EAwBD,YAAQ,CAAA,EAAA,MAAA;EAAA;eACf,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;;MAEA,CAAA,EAAA,OAAA;;aAEA,CAAA,EAAA,OAAA;;cAEA,CAAA,EAAA,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;;OAEU,CAAA,EAAA,OAAA;UAAT,CAAA,EAlBU,KAAA,CAAM,SAkBhB;;AAAuB;AAAA;;;;;iBATjB,QAAA,CAuEP;EAAA,KAAA;EAAA,YAAA;EAAA,aAAA;EAAA,IAAA;EAAA,WAAA;EAAA,YAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EA9DC,QA8DD,CA9DU,aA8DV,CAAA,CAAA,EA9DwB,oBAAA,CAAA,GAAA,CAAA,OA8DxB;;;;AAEuF;AAAA;;iBARhF,eAAA,CA6BP;EAAA,SAAA;;;;aAIA;EAAA,QAAA;EAAA,GAAA;CAAA,EAzBC,KAAA,CAAM,cAyBP,CAAA,OAzB6B,cAyB7B,CAAA,GAAA;OACA,CAAA,EAAA,MAAA;aAE6B,CAAA,EAAA,MAAA;IA5B0D,oBAAA,CAAA,GAAA,CAAA,OA4BhF;;iBARA,eAAA,CASI;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,MAAA;EAAA,YAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EADV,KAAA,CAAM,cACI,CAAA,OADkB,cAClB,CAAA,GAAX,IAAW,CAAN,KAAA,CAAM,cAAA,CAAA,OAAsB,OAAtB,CAAA,EAAA,QAAA,GAAA,cAAA,GAAA,MAAA,CAAA,CAAA,EAA4E,oBAAA,CAAA,GAAA,CAAA,OAA5E;;iBAgBJ,aAAA,CAhBgF;EAAA,SAAA;EAAA;EAAA,gBAgBhF;EAAA,GAAa;CAAA,EAKnB,KAAA,CAAM,cALa,CAAA,OAKS,OAAA,CAAiB,KAL1B,CAAA,GAAA;EAAA,gBAAA,CAAA,EAAA,MAAA;IAKgE,oBAAA,CAAA,GAAA,CAAA,OAJpF;;iBAuBO,YAAA,CAnBuC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmBD,KAAA,CAAM,cAnBL,CAAA,OAmB2B,WAnB3B,CAAA,CAAA,EAmBuC,oBAAA,CAAA,GAAA,CAAA,OAnBvC;;iBA0BvC,aAAA,CA1B6E;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6BnF,KAAA,CAAM,cA7B6E,CAAA,OA6BvD,OAAA,CAAiB,KA7BsC,CAAA,CAAA,EA6BhC,oBAAA,CAAA,GAAA,CAAA,OA7BgC;AAAA;AAAA,iBAwC7E,aAAA,CArBY;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqB2B,KAAA,CAAM,cArBjC,CAAA,OAqBuD,YArBvD,CAAA,CAAA,EAqBoE,oBAAA,CAAA,GAAA,CAAA,OArBpE;;iBAgCZ,iBAAA,CAhCe;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgC4B,KAAA,CAAM,cAhClC,CAAA,OAgCwD,gBAhCxD,CAAA,CAAA,EAgCyE,oBAAA,CAAA,GAAA,CAAA,OAhCzE;;;;AAA+D;AAAA,iBA0C9E,YAAA,CAnCa;;;;UAGnB;EAAA,SAAM;EAAA,QAAA;EAAA,QAAA;EAAA,GAAA;AAA6C,CAA7C,EAyCN,IAzCM,CAyCD,KAAA,CAAM,cAzCL,CAAA,OAyC2B,WAzC3B,CAAA,EAAA,OAAA,CAAA,GAAA;OAA6C,EAAA,MAAA;AAAA,CAAA,CAAA,EAyCwB,oBAAA,CAAA,GAAA,CAAA,OAzCxB"}
|