@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/index23.d.cts
CHANGED
|
@@ -1,74 +1,96 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
2
|
+
import { ContextMenu } from "radix-ui";
|
|
2
3
|
import * as React from "react";
|
|
3
|
-
import { Drawer } from "vaul";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root provider for a
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/ContextMenu/ContextMenu.d.ts
|
|
6
|
+
/** Root provider for a right-click context menu; wires the trigger to its portalled content. */
|
|
7
|
+
declare function ContextMenu$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof
|
|
10
|
-
/**
|
|
11
|
-
declare function
|
|
9
|
+
}: React.ComponentProps<typeof ContextMenu.Root>): react_jsx_runtime97.JSX.Element;
|
|
10
|
+
/** The target region that opens the menu on right-click (context menu). */
|
|
11
|
+
declare function ContextMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
13
|
+
}: React.ComponentProps<typeof ContextMenu.Trigger>): react_jsx_runtime97.JSX.Element;
|
|
14
|
+
/** Groups related items together for labelling and accessibility. */
|
|
15
|
+
declare function ContextMenuGroup({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof
|
|
18
|
-
/**
|
|
19
|
-
declare function
|
|
17
|
+
}: React.ComponentProps<typeof ContextMenu.Group>): react_jsx_runtime97.JSX.Element;
|
|
18
|
+
/** Portals the menu content into the document body. */
|
|
19
|
+
declare function ContextMenuPortal({
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof
|
|
22
|
-
/**
|
|
23
|
-
declare function
|
|
24
|
-
|
|
21
|
+
}: React.ComponentProps<typeof ContextMenu.Portal>): react_jsx_runtime97.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_runtime97.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_runtime97.JSX.Element;
|
|
30
|
+
/** Item that opens a nested submenu; renders a trailing chevron. */
|
|
31
|
+
declare function ContextMenuSubTrigger({
|
|
32
|
+
className,
|
|
33
|
+
inset,
|
|
34
|
+
children,
|
|
35
|
+
...props
|
|
36
|
+
}: React.ComponentProps<typeof ContextMenu.SubTrigger> & {
|
|
37
|
+
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
38
|
+
inset?: boolean;
|
|
39
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
40
|
+
/** The popover surface for a nested submenu. */
|
|
41
|
+
declare function ContextMenuSubContent({
|
|
25
42
|
className,
|
|
26
43
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
}: React.ComponentProps<typeof ContextMenu.SubContent>): react_jsx_runtime97.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_runtime97.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_runtime97.JSX.Element;
|
|
62
|
+
/** A menu item with a toggleable checkmark indicator. */
|
|
63
|
+
declare function ContextMenuCheckboxItem({
|
|
38
64
|
className,
|
|
39
|
-
/** Body of the drawer, typically header/footer plus content. */
|
|
40
65
|
children,
|
|
41
|
-
|
|
42
|
-
size,
|
|
66
|
+
checked,
|
|
43
67
|
...props
|
|
44
|
-
}: React.ComponentProps<typeof
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}): react_jsx_runtime118.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. */
|
|
68
|
+
}: React.ComponentProps<typeof ContextMenu.CheckboxItem>): react_jsx_runtime97.JSX.Element;
|
|
69
|
+
/** A menu item with a radio indicator; use inside `ContextMenuRadioGroup`. */
|
|
70
|
+
declare function ContextMenuRadioItem({
|
|
51
71
|
className,
|
|
72
|
+
children,
|
|
52
73
|
...props
|
|
53
|
-
}: React.ComponentProps<
|
|
54
|
-
/**
|
|
55
|
-
declare function
|
|
56
|
-
/** Extra classes merged onto the footer wrapper. */
|
|
74
|
+
}: React.ComponentProps<typeof ContextMenu.RadioItem>): react_jsx_runtime97.JSX.Element;
|
|
75
|
+
/** A non-interactive heading that labels a group of items. */
|
|
76
|
+
declare function ContextMenuLabel({
|
|
57
77
|
className,
|
|
78
|
+
inset,
|
|
58
79
|
...props
|
|
59
|
-
}: React.ComponentProps<
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
|
|
80
|
+
}: React.ComponentProps<typeof ContextMenu.Label> & {
|
|
81
|
+
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
82
|
+
inset?: boolean;
|
|
83
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
84
|
+
/** A horizontal divider between groups of items. */
|
|
85
|
+
declare function ContextMenuSeparator({
|
|
63
86
|
className,
|
|
64
87
|
...props
|
|
65
|
-
}: React.ComponentProps<typeof
|
|
66
|
-
/**
|
|
67
|
-
declare function
|
|
68
|
-
/** Extra classes merged onto the description. */
|
|
88
|
+
}: React.ComponentProps<typeof ContextMenu.Separator>): react_jsx_runtime97.JSX.Element;
|
|
89
|
+
/** Right-aligned text for a keyboard shortcut hint inside an item. */
|
|
90
|
+
declare function ContextMenuShortcut({
|
|
69
91
|
className,
|
|
70
92
|
...props
|
|
71
|
-
}: React.ComponentProps<
|
|
93
|
+
}: React.ComponentProps<"span">): react_jsx_runtime97.JSX.Element;
|
|
72
94
|
//#endregion
|
|
73
|
-
export {
|
|
95
|
+
export { ContextMenuItem as a, ContextMenuRadioGroup as c, ContextMenuShortcut as d, ContextMenuSub as f, ContextMenuTrigger as h, ContextMenuGroup as i, ContextMenuRadioItem as l, ContextMenuSubTrigger as m, ContextMenuCheckboxItem as n, ContextMenuLabel as o, ContextMenuSubContent as p, ContextMenuContent as r, ContextMenuPortal as s, ContextMenu$1 as t, ContextMenuSeparator as u };
|
|
74
96
|
//# sourceMappingURL=index23.d.cts.map
|
package/dist/index23.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index23.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index23.d.cts","names":[],"sources":["../src/primitives/ContextMenu/ContextMenu.tsx"],"mappings":";;;;;;iBAQS,aAAA;;GAA0B,KAAA,CAAM,sBAAsB,WAAA,CAAqB,QAAK,mBAAA,CAAA,GAAA,CAAA;;AALrD,iBAU3B,kBAAA,CALW;EAAA,GAAA;AAAA,CAAA,EAOjB,KAAA,CAAM,cAPW,CAAA,OAOW,WAAA,CAAqB,OAPhC,CAAA,CAAA,EAOwC,mBAAA,CAAA,GAAA,CAAA,OAPxC;;iBAYX,gBAAA,CAZ2E;EAAA,GAAA;AAAA,CAAA,EAY5C,KAAA,CAAM,cAZsC,CAAA,OAYhB,WAAA,CAAqB,KAZL,CAAA,CAAA,EAYW,mBAAA,CAAA,GAAA,CAAA,OAZX;;iBAiB3E,iBAAA,CAjBgF;EAAA,GAAA;AAAA,CAAA,EAiBhD,KAAA,CAAM,cAjB0C,CAAA,OAiBpB,WAAA,CAAqB,MAjBD,CAAA,CAAA,EAiBQ,mBAAA,CAAA,GAAA,CAAA,OAjBR;AAAA;AAAA,iBAsBhF,cAAA,CAjBkB;EAAA,GAAA;AAAA,CAAA,EAiBW,KAAA,CAAM,cAjBjB,CAAA,OAiBuC,WAAA,CAAqB,GAjB5D,CAAA,CAAA,EAiBgE,mBAAA,CAAA,GAAA,CAAA,OAjBhE;;iBAsBlB,qBAAA,CApB2C;EAAA,GAAA;AAAA,CAAA,EAsBjD,KAAA,CAAM,cAtB2C,CAAA,OAsBrB,WAAA,CAAqB,UAtBA,CAAA,CAAA,EAsBW,mBAAA,CAAA,GAAA,CAAA,OAtBX;;iBA2B3C,qBAAA,CA3BmD;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAgCzD,KAAA,CAAM,cAhCmD,CAAA,OAgC7B,WAAA,CAAqB,UAhCQ,CAAA,GAAA;EAAA;EAKnD,KAAA,CAAA,EAAA,OAAA;CAAgB,CAAA,EA8BxB,mBAAA,CAAA,GAAA,CAAA,OA9BwB;;iBAgDhB,qBAAA,CAhDqC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmD3C,KAAA,CAAM,cAnDqC,CAAA,OAmDf,WAAA,CAAqB,UAnDN,CAAA,CAAA,EAmDiB,mBAAA,CAAA,GAAA,CAAA,OAnDjB;;AAAiD,iBAsEtF,kBAAA,CAtEsF;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyE5F,KAAA,CAAM,cAzEsF,CAAA,OAyEhE,WAAA,CAAqB,OAzE2C,CAAA,CAAA,EAyEnC,mBAAA,CAAA,GAAA,CAAA,OAzEmC;AAAA;iBA8FtF,eAAA,CAzFiB;EAAA,SAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;AAAuE,CAAvE,EA8FvB,KAAA,CAAM,cA9FiB,CAAA,OA8FK,WAAA,CAAqB,IA9F1B,CAAA,GAAA;;OAAe,CAAA,EAAA,OAAM;;EAAkD,OAAA,CAAA,EAAA,SAAA,GAAA,aAAA;AAAA,CAAA,CAAA,EAmGhG,mBAAA,CAAA,GAAA,CAAA,OA9FsB;;iBA8Gd,uBAAA,CA9G8E;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAmHpF,KAAA,CAAM,cAnH8E,CAAA,OAmHxD,WAAA,CAAqB,YAnHmC,CAAA,CAAA,EAmHtB,mBAAA,CAAA,GAAA,CAAA,OAnHsB;;iBAyI9E,oBAAA,CAzIkF;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA6IxF,KAAA,CAAM,cA7IkF,CAAA,OA6I5D,WAAA,CAAqB,SA7IuC,CAAA,CAAA,EA6I7B,mBAAA,CAAA,GAAA,CAAA,OA7I6B;AAAA;AAAA,iBAkKlF,gBAAA,CA7JqB;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EAiK3B,KAAA,CAAM,cAjKqB,CAAA,OAiKC,WAAA,CAAqB,KAjKtB,CAAA,GAAA;EAAA;OAEC,CAAA,EAAA,OAAqB;IAkKnD,mBAAA,CAAA,GAAA,CAAA,OAlKQ;;AAAsD,iBAiLtD,oBAAA,CAjLsD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAoL5D,KAAA,CAAM,cApLsD,CAAA,OAoLhC,WAAA,CAAqB,SApLW,CAAA,CAAA,EAoLD,mBAAA,CAAA,GAAA,CAAA,OApLC;AAAA;iBA+LtD,mBAAA,CA1LqB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0LwB,KAAA,CAAM,cA1L9B,CAAA,MAAA,CAAA,CAAA,EA0LoD,mBAAA,CAAA,GAAA,CAAA,OA1LpD"}
|
package/dist/index23.d.ts
CHANGED
|
@@ -1,74 +1,96 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as react_jsx_runtime144 from "react/jsx-runtime";
|
|
3
|
+
import { ContextMenu } from "radix-ui";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root provider for a
|
|
7
|
-
declare function
|
|
5
|
+
//#region src/primitives/ContextMenu/ContextMenu.d.ts
|
|
6
|
+
/** Root provider for a right-click context menu; wires the trigger to its portalled content. */
|
|
7
|
+
declare function ContextMenu$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof
|
|
10
|
-
/**
|
|
11
|
-
declare function
|
|
9
|
+
}: React.ComponentProps<typeof ContextMenu.Root>): react_jsx_runtime144.JSX.Element;
|
|
10
|
+
/** The target region that opens the menu on right-click (context menu). */
|
|
11
|
+
declare function ContextMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
13
|
+
}: React.ComponentProps<typeof ContextMenu.Trigger>): react_jsx_runtime144.JSX.Element;
|
|
14
|
+
/** Groups related items together for labelling and accessibility. */
|
|
15
|
+
declare function ContextMenuGroup({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof
|
|
18
|
-
/**
|
|
19
|
-
declare function
|
|
17
|
+
}: React.ComponentProps<typeof ContextMenu.Group>): react_jsx_runtime144.JSX.Element;
|
|
18
|
+
/** Portals the menu content into the document body. */
|
|
19
|
+
declare function ContextMenuPortal({
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof
|
|
22
|
-
/**
|
|
23
|
-
declare function
|
|
24
|
-
|
|
21
|
+
}: React.ComponentProps<typeof ContextMenu.Portal>): react_jsx_runtime144.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_runtime144.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_runtime144.JSX.Element;
|
|
30
|
+
/** Item that opens a nested submenu; renders a trailing chevron. */
|
|
31
|
+
declare function ContextMenuSubTrigger({
|
|
32
|
+
className,
|
|
33
|
+
inset,
|
|
34
|
+
children,
|
|
35
|
+
...props
|
|
36
|
+
}: React.ComponentProps<typeof ContextMenu.SubTrigger> & {
|
|
37
|
+
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
38
|
+
inset?: boolean;
|
|
39
|
+
}): react_jsx_runtime144.JSX.Element;
|
|
40
|
+
/** The popover surface for a nested submenu. */
|
|
41
|
+
declare function ContextMenuSubContent({
|
|
25
42
|
className,
|
|
26
43
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
}: React.ComponentProps<typeof ContextMenu.SubContent>): react_jsx_runtime144.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_runtime144.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_runtime144.JSX.Element;
|
|
62
|
+
/** A menu item with a toggleable checkmark indicator. */
|
|
63
|
+
declare function ContextMenuCheckboxItem({
|
|
38
64
|
className,
|
|
39
|
-
/** Body of the drawer, typically header/footer plus content. */
|
|
40
65
|
children,
|
|
41
|
-
|
|
42
|
-
size,
|
|
66
|
+
checked,
|
|
43
67
|
...props
|
|
44
|
-
}: React.ComponentProps<typeof
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}): react_jsx_runtime125.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. */
|
|
68
|
+
}: React.ComponentProps<typeof ContextMenu.CheckboxItem>): react_jsx_runtime144.JSX.Element;
|
|
69
|
+
/** A menu item with a radio indicator; use inside `ContextMenuRadioGroup`. */
|
|
70
|
+
declare function ContextMenuRadioItem({
|
|
51
71
|
className,
|
|
72
|
+
children,
|
|
52
73
|
...props
|
|
53
|
-
}: React.ComponentProps<
|
|
54
|
-
/**
|
|
55
|
-
declare function
|
|
56
|
-
/** Extra classes merged onto the footer wrapper. */
|
|
74
|
+
}: React.ComponentProps<typeof ContextMenu.RadioItem>): react_jsx_runtime144.JSX.Element;
|
|
75
|
+
/** A non-interactive heading that labels a group of items. */
|
|
76
|
+
declare function ContextMenuLabel({
|
|
57
77
|
className,
|
|
78
|
+
inset,
|
|
58
79
|
...props
|
|
59
|
-
}: React.ComponentProps<
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
|
|
80
|
+
}: React.ComponentProps<typeof ContextMenu.Label> & {
|
|
81
|
+
/** Adds left padding so the label aligns with items that have a leading icon. */
|
|
82
|
+
inset?: boolean;
|
|
83
|
+
}): react_jsx_runtime144.JSX.Element;
|
|
84
|
+
/** A horizontal divider between groups of items. */
|
|
85
|
+
declare function ContextMenuSeparator({
|
|
63
86
|
className,
|
|
64
87
|
...props
|
|
65
|
-
}: React.ComponentProps<typeof
|
|
66
|
-
/**
|
|
67
|
-
declare function
|
|
68
|
-
/** Extra classes merged onto the description. */
|
|
88
|
+
}: React.ComponentProps<typeof ContextMenu.Separator>): react_jsx_runtime144.JSX.Element;
|
|
89
|
+
/** Right-aligned text for a keyboard shortcut hint inside an item. */
|
|
90
|
+
declare function ContextMenuShortcut({
|
|
69
91
|
className,
|
|
70
92
|
...props
|
|
71
|
-
}: React.ComponentProps<
|
|
93
|
+
}: React.ComponentProps<"span">): react_jsx_runtime144.JSX.Element;
|
|
72
94
|
//#endregion
|
|
73
|
-
export {
|
|
95
|
+
export { ContextMenuItem as a, ContextMenuRadioGroup as c, ContextMenuShortcut as d, ContextMenuSub as f, ContextMenuTrigger as h, ContextMenuGroup as i, ContextMenuRadioItem as l, ContextMenuSubTrigger as m, ContextMenuCheckboxItem as n, ContextMenuLabel as o, ContextMenuSubContent as p, ContextMenuContent as r, ContextMenuPortal as s, ContextMenu$1 as t, ContextMenuSeparator as u };
|
|
74
96
|
//# sourceMappingURL=index23.d.ts.map
|
package/dist/index23.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index23.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index23.d.ts","names":[],"sources":["../src/primitives/ContextMenu/ContextMenu.tsx"],"mappings":"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"}
|
package/dist/index24.d.cts
CHANGED
|
@@ -1,99 +1,34 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types7 from "class-variance-authority/types";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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. */
|
|
5
|
+
//#region src/primitives/Credits/Credits.d.ts
|
|
6
|
+
type CreditsVariant = "default" | "warning" | "critical";
|
|
7
|
+
declare const creditsVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "warning" | "critical" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
10
|
+
type CreditsProps = Omit<React.ComponentProps<"span">, "children"> & {
|
|
11
|
+
/** The numeric balance to display. */
|
|
12
|
+
value: number;
|
|
13
|
+
/** Force a variant; by default it is derived from `value`. */
|
|
14
|
+
variant?: CreditsVariant;
|
|
15
|
+
/** Balance at/below which the warning variant kicks in. Default 200. */
|
|
16
|
+
lowThreshold?: number;
|
|
17
|
+
/** Override the leading icon. */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/** Override how the value is rendered. */
|
|
20
|
+
format?: (value: number) => string;
|
|
21
|
+
};
|
|
22
|
+
/** A pill showing a remaining-credits balance, colour-escalating as it drops. */
|
|
23
|
+
declare function Credits({
|
|
24
|
+
className,
|
|
25
|
+
value,
|
|
35
26
|
variant,
|
|
27
|
+
lowThreshold,
|
|
28
|
+
icon,
|
|
29
|
+
format,
|
|
36
30
|
...props
|
|
37
|
-
}:
|
|
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({
|
|
94
|
-
className,
|
|
95
|
-
...props
|
|
96
|
-
}: React.ComponentProps<typeof DropdownMenu.SubContent>): react_jsx_runtime191.JSX.Element;
|
|
31
|
+
}: CreditsProps): react_jsx_runtime146.JSX.Element;
|
|
97
32
|
//#endregion
|
|
98
|
-
export {
|
|
33
|
+
export { creditsVariants as i, CreditsProps as n, CreditsVariant as r, Credits as t };
|
|
99
34
|
//# sourceMappingURL=index24.d.cts.map
|
package/dist/index24.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index24.d.cts","names":[],"sources":["../src/primitives/Credits/Credits.tsx"],"mappings":";;;;;KAYY,cAAA;cAEN;;IAYL,+BAAA,CAAA;AAdD,KA4BK,YAAA,GAAe,IA5BM,CA4BD,KAAA,CAAM,cA5BL,CAAA,MAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAEpB;EA0BD,KAAA,EAAA,MAAA;EAAY;SAAQ,CAAA,EAIb,cAJmB;;cAInB,CAAA,EAAA,MAAA;;EAIY,IAAA,CAAA,EAAf,KAAA,CAAM,SAAS;EAMf;EAAO,MAAA,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,MAAA;;;iBAAP,OAAA,CAGP;EAAA,SAAA;EAAA,KAAA;EAAA,OAAA;EAAA,YAAA;EAAA,IAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAKC,YALD,CAAA,EAKa,oBAAA,CAAA,GAAA,CAAA,OALb"}
|
package/dist/index24.d.ts
CHANGED
|
@@ -1,99 +1,34 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as react_jsx_runtime143 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare function DropdownMenuGroup({
|
|
27
|
-
...props
|
|
28
|
-
}: React.ComponentProps<typeof DropdownMenu.Group>): react_jsx_runtime294.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. */
|
|
5
|
+
//#region src/primitives/Credits/Credits.d.ts
|
|
6
|
+
type CreditsVariant = "default" | "warning" | "critical";
|
|
7
|
+
declare const creditsVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "warning" | "critical" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
10
|
+
type CreditsProps = Omit<React.ComponentProps<"span">, "children"> & {
|
|
11
|
+
/** The numeric balance to display. */
|
|
12
|
+
value: number;
|
|
13
|
+
/** Force a variant; by default it is derived from `value`. */
|
|
14
|
+
variant?: CreditsVariant;
|
|
15
|
+
/** Balance at/below which the warning variant kicks in. Default 200. */
|
|
16
|
+
lowThreshold?: number;
|
|
17
|
+
/** Override the leading icon. */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/** Override how the value is rendered. */
|
|
20
|
+
format?: (value: number) => string;
|
|
21
|
+
};
|
|
22
|
+
/** A pill showing a remaining-credits balance, colour-escalating as it drops. */
|
|
23
|
+
declare function Credits({
|
|
24
|
+
className,
|
|
25
|
+
value,
|
|
35
26
|
variant,
|
|
27
|
+
lowThreshold,
|
|
28
|
+
icon,
|
|
29
|
+
format,
|
|
36
30
|
...props
|
|
37
|
-
}:
|
|
38
|
-
inset?: boolean;
|
|
39
|
-
variant?: "default" | "destructive";
|
|
40
|
-
}): react_jsx_runtime294.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_runtime294.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_runtime294.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_runtime294.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_runtime294.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_runtime294.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_runtime294.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_runtime294.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_runtime294.JSX.Element;
|
|
92
|
-
/** The floating surface for a nested submenu's items. */
|
|
93
|
-
declare function DropdownMenuSubContent({
|
|
94
|
-
className,
|
|
95
|
-
...props
|
|
96
|
-
}: React.ComponentProps<typeof DropdownMenu.SubContent>): react_jsx_runtime294.JSX.Element;
|
|
31
|
+
}: CreditsProps): react_jsx_runtime143.JSX.Element;
|
|
97
32
|
//#endregion
|
|
98
|
-
export {
|
|
33
|
+
export { creditsVariants as i, CreditsProps as n, CreditsVariant as r, Credits as t };
|
|
99
34
|
//# sourceMappingURL=index24.d.ts.map
|
package/dist/index24.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index24.d.ts","names":[],"sources":["../src/primitives/Credits/Credits.tsx"],"mappings":";;;;;KAYY,cAAA;cAEN;;IAYL,gCAAA,CAAA;AAdD,KA4BK,YAAA,GAAe,IA5BM,CA4BD,KAAA,CAAM,cA5BL,CAAA,MAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAEpB;EA0BD,KAAA,EAAA,MAAA;EAAY;SAAQ,CAAA,EAIb,cAJmB;;cAInB,CAAA,EAAA,MAAA;;EAIY,IAAA,CAAA,EAAf,KAAA,CAAM,SAAS;EAMf;EAAO,MAAA,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,MAAA;;;iBAAP,OAAA,CAGP;EAAA,SAAA;EAAA,KAAA;EAAA,OAAA;EAAA,YAAA;EAAA,IAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAKC,YALD,CAAA,EAKa,oBAAA,CAAA,GAAA,CAAA,OALb"}
|