@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/index3.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime248 from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -6,17 +6,17 @@ import * as React from "react";
|
|
|
6
6
|
/** A modal confirmation dialog that interrupts the user and expects a deliberate response. */
|
|
7
7
|
declare function AlertDialog$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof AlertDialog.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof AlertDialog.Root>): react_jsx_runtime248.JSX.Element;
|
|
10
10
|
declare function AlertDialogTrigger({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof AlertDialog.Trigger>):
|
|
12
|
+
}: React.ComponentProps<typeof AlertDialog.Trigger>): react_jsx_runtime248.JSX.Element;
|
|
13
13
|
declare function AlertDialogPortal({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof AlertDialog.Portal>):
|
|
15
|
+
}: React.ComponentProps<typeof AlertDialog.Portal>): react_jsx_runtime248.JSX.Element;
|
|
16
16
|
declare function AlertDialogOverlay({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof AlertDialog.Overlay>):
|
|
19
|
+
}: React.ComponentProps<typeof AlertDialog.Overlay>): react_jsx_runtime248.JSX.Element;
|
|
20
20
|
declare function AlertDialogContent({
|
|
21
21
|
className,
|
|
22
22
|
size,
|
|
@@ -24,27 +24,27 @@ declare function AlertDialogContent({
|
|
|
24
24
|
}: React.ComponentProps<typeof AlertDialog.Content> & {
|
|
25
25
|
/** Layout preset: `default` is compact + centered, `large` is wide + left-aligned. */
|
|
26
26
|
size?: "default" | "large";
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime248.JSX.Element;
|
|
28
28
|
declare function AlertDialogHeader({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime248.JSX.Element;
|
|
32
32
|
declare function AlertDialogFooter({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"div">):
|
|
35
|
+
}: React.ComponentProps<"div">): react_jsx_runtime248.JSX.Element;
|
|
36
36
|
declare function AlertDialogTitle({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React.ComponentProps<typeof AlertDialog.Title>):
|
|
39
|
+
}: React.ComponentProps<typeof AlertDialog.Title>): react_jsx_runtime248.JSX.Element;
|
|
40
40
|
declare function AlertDialogDescription({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React.ComponentProps<typeof AlertDialog.Description>):
|
|
43
|
+
}: React.ComponentProps<typeof AlertDialog.Description>): react_jsx_runtime248.JSX.Element;
|
|
44
44
|
declare function AlertDialogMedia({
|
|
45
45
|
className,
|
|
46
46
|
...props
|
|
47
|
-
}: React.ComponentProps<"div">):
|
|
47
|
+
}: React.ComponentProps<"div">): react_jsx_runtime248.JSX.Element;
|
|
48
48
|
declare function AlertDialogAction({
|
|
49
49
|
className,
|
|
50
50
|
variant,
|
|
@@ -52,11 +52,11 @@ declare function AlertDialogAction({
|
|
|
52
52
|
}: React.ComponentProps<typeof AlertDialog.Action> & {
|
|
53
53
|
/** Button style for the confirming action; use `destructive` for irreversible actions. */
|
|
54
54
|
variant?: "default" | "destructive";
|
|
55
|
-
}):
|
|
55
|
+
}): react_jsx_runtime248.JSX.Element;
|
|
56
56
|
declare function AlertDialogCancel({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<typeof AlertDialog.Cancel>):
|
|
59
|
+
}: React.ComponentProps<typeof AlertDialog.Cancel>): react_jsx_runtime248.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { AlertDialogDescription as a, AlertDialogMedia as c, AlertDialogTitle as d, AlertDialogTrigger as f, AlertDialogContent as i, AlertDialogOverlay as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog$1 as t, AlertDialogPortal as u };
|
|
62
62
|
//# sourceMappingURL=index3.d.cts.map
|
package/dist/index3.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
3
3
|
import { AlertDialog } from "radix-ui";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/AlertDialog/AlertDialog.d.ts
|
|
6
6
|
/** A modal confirmation dialog that interrupts the user and expects a deliberate response. */
|
|
7
7
|
declare function AlertDialog$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof AlertDialog.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof AlertDialog.Root>): react_jsx_runtime131.JSX.Element;
|
|
10
10
|
declare function AlertDialogTrigger({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof AlertDialog.Trigger>):
|
|
12
|
+
}: React.ComponentProps<typeof AlertDialog.Trigger>): react_jsx_runtime131.JSX.Element;
|
|
13
13
|
declare function AlertDialogPortal({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof AlertDialog.Portal>):
|
|
15
|
+
}: React.ComponentProps<typeof AlertDialog.Portal>): react_jsx_runtime131.JSX.Element;
|
|
16
16
|
declare function AlertDialogOverlay({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof AlertDialog.Overlay>):
|
|
19
|
+
}: React.ComponentProps<typeof AlertDialog.Overlay>): react_jsx_runtime131.JSX.Element;
|
|
20
20
|
declare function AlertDialogContent({
|
|
21
21
|
className,
|
|
22
22
|
size,
|
|
@@ -24,27 +24,27 @@ declare function AlertDialogContent({
|
|
|
24
24
|
}: React.ComponentProps<typeof AlertDialog.Content> & {
|
|
25
25
|
/** Layout preset: `default` is compact + centered, `large` is wide + left-aligned. */
|
|
26
26
|
size?: "default" | "large";
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime131.JSX.Element;
|
|
28
28
|
declare function AlertDialogHeader({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div">):
|
|
31
|
+
}: React.ComponentProps<"div">): react_jsx_runtime131.JSX.Element;
|
|
32
32
|
declare function AlertDialogFooter({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"div">):
|
|
35
|
+
}: React.ComponentProps<"div">): react_jsx_runtime131.JSX.Element;
|
|
36
36
|
declare function AlertDialogTitle({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React.ComponentProps<typeof AlertDialog.Title>):
|
|
39
|
+
}: React.ComponentProps<typeof AlertDialog.Title>): react_jsx_runtime131.JSX.Element;
|
|
40
40
|
declare function AlertDialogDescription({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React.ComponentProps<typeof AlertDialog.Description>):
|
|
43
|
+
}: React.ComponentProps<typeof AlertDialog.Description>): react_jsx_runtime131.JSX.Element;
|
|
44
44
|
declare function AlertDialogMedia({
|
|
45
45
|
className,
|
|
46
46
|
...props
|
|
47
|
-
}: React.ComponentProps<"div">):
|
|
47
|
+
}: React.ComponentProps<"div">): react_jsx_runtime131.JSX.Element;
|
|
48
48
|
declare function AlertDialogAction({
|
|
49
49
|
className,
|
|
50
50
|
variant,
|
|
@@ -52,11 +52,11 @@ declare function AlertDialogAction({
|
|
|
52
52
|
}: React.ComponentProps<typeof AlertDialog.Action> & {
|
|
53
53
|
/** Button style for the confirming action; use `destructive` for irreversible actions. */
|
|
54
54
|
variant?: "default" | "destructive";
|
|
55
|
-
}):
|
|
55
|
+
}): react_jsx_runtime131.JSX.Element;
|
|
56
56
|
declare function AlertDialogCancel({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<typeof AlertDialog.Cancel>):
|
|
59
|
+
}: React.ComponentProps<typeof AlertDialog.Cancel>): react_jsx_runtime131.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { AlertDialogDescription as a, AlertDialogMedia as c, AlertDialogTitle as d, AlertDialogTrigger as f, AlertDialogContent as i, AlertDialogOverlay as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog$1 as t, AlertDialogPortal as u };
|
|
62
62
|
//# sourceMappingURL=index3.d.ts.map
|
package/dist/index30.d.cts
CHANGED
|
@@ -1,37 +1,54 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as class_variance_authority_types16 from "class-variance-authority/types";
|
|
3
|
-
import { VariantProps } from "class-variance-authority";
|
|
1
|
+
import * as react_jsx_runtime206 from "react/jsx-runtime";
|
|
4
2
|
import * as React from "react";
|
|
5
3
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** Semantic heading level/element. Defaults to `h2`. */
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
/** Visual step on the Figma heading scale (1 largest → 7 smallest); also sets the per-step default weight. */
|
|
17
|
-
size?: VariantProps<typeof headingVariants>["size"];
|
|
18
|
-
/** Override the per-step default weight. */
|
|
19
|
-
weight?: VariantProps<typeof headingVariants>["weight"];
|
|
20
|
-
/** Text alignment. */
|
|
21
|
-
align?: VariantProps<typeof headingVariants>["align"];
|
|
22
|
-
/** When true, fills the text with the brand gradient instead of the foreground colour. */
|
|
23
|
-
gradient?: VariantProps<typeof headingVariants>["gradient"];
|
|
4
|
+
//#region src/primitives/FileUpload/FileUpload.d.ts
|
|
5
|
+
type FileUploadStatus = "idle" | "uploading" | "success" | "error";
|
|
6
|
+
type FileUploadItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
file: File;
|
|
9
|
+
status: FileUploadStatus;
|
|
10
|
+
progress: number;
|
|
11
|
+
error?: string;
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
type FileUploadHandler = (params: {
|
|
14
|
+
file: File;
|
|
15
|
+
signal: AbortSignal;
|
|
16
|
+
reportProgress: (value: number) => void;
|
|
17
|
+
}) => Promise<void>;
|
|
18
|
+
type FileUploadProps = Omit<React.ComponentProps<"div">, "onChange"> & {
|
|
19
|
+
/** Disable click, drag/drop, and file selection. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Allow selecting or dropping multiple files in one interaction. */
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
/** Native file accept filter (e.g. `image/*,.pdf`). */
|
|
24
|
+
accept?: string;
|
|
25
|
+
/** Maximum number of files held by the component at once. */
|
|
26
|
+
maxFiles?: number;
|
|
27
|
+
/** Maximum file size in bytes; oversized files are rejected with an error message. */
|
|
28
|
+
maxFileSize?: number;
|
|
29
|
+
/** Optional custom validator. Return a message to reject the file, or `null` to accept it. */
|
|
30
|
+
validateFile?: (file: File) => string | null;
|
|
31
|
+
/** Called for each accepted file; receives a progress reporter and abort signal. */
|
|
32
|
+
onUpload?: FileUploadHandler;
|
|
33
|
+
/** Called whenever file entries change (added, progress updates, completed, removed). */
|
|
34
|
+
onItemsChange?: (items: FileUploadItem[]) => void;
|
|
35
|
+
/** Accessible label for the drag-and-drop region. */
|
|
36
|
+
dropzoneAriaLabel?: string;
|
|
37
|
+
};
|
|
38
|
+
/** File upload primitive with click-to-browse and drag-and-drop interactions, validation, and per-file upload states. */
|
|
39
|
+
declare function FileUpload({
|
|
28
40
|
className,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
multiple,
|
|
42
|
+
accept,
|
|
43
|
+
maxFiles,
|
|
44
|
+
maxFileSize,
|
|
45
|
+
validateFile,
|
|
46
|
+
onUpload,
|
|
47
|
+
onItemsChange,
|
|
48
|
+
dropzoneAriaLabel,
|
|
49
|
+
disabled,
|
|
33
50
|
...props
|
|
34
|
-
}:
|
|
51
|
+
}: FileUploadProps): react_jsx_runtime206.JSX.Element;
|
|
35
52
|
//#endregion
|
|
36
|
-
export {
|
|
53
|
+
export { FileUploadStatus as a, FileUploadProps as i, FileUploadHandler as n, FileUploadItem as r, FileUpload as t };
|
|
37
54
|
//# sourceMappingURL=index30.d.cts.map
|
package/dist/index30.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index30.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index30.d.cts","names":[],"sources":["../src/primitives/FileUpload/FileUpload.tsx"],"mappings":";;;;KASK,gBAAA;KAEA,cAAA;;EAFA,IAAA,EAIG,IAJH;EAEA,MAAA,EAGK,gBAHS;EAAA,QAAA,EAAA,MAAA;OAEX,CAAA,EAAA,MAAA;;AACkB,KAKrB,iBAAA,GALqB,CAAA,MAAA,EAAA;EAKrB,IAAA,EACG,IADH;EAAiB,MAAA,EAEZ,WAFY;gBACd,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;MAGF,OAFI,CAAA,IAAA,CAAA;KAIL,eAAA,GAAkB,IAFjB,CAEsB,KAAA,CAAM,cAF5B,CAAA,KAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAAO;EAER,QAAA,CAAA,EAAA,OAAe;EAAA;UAAQ,CAAM,EAAA,OAAA;;QAYV,CAAA,EAAA,MAAA;;UAIE,CAAA,EAAA,MAAA;EAAc;EAqF/B,WAAA,CAAA,EAAU,MAAA;EAAA;cACjB,CAAA,EAAA,CAAA,IAAA,EA1FsB,IA0FtB,EAAA,GAAA,MAAA,GAAA,IAAA;;UAEA,CAAA,EA1FW,iBA0FX;;eAEA,CAAA,EAAA,CAAA,KAAA,EA1FwB,cA0FxB,EAAA,EAAA,GAAA,IAAA;;mBAEA,CAAA,EAAA,MAAA;;;iBAPO,UAAA,CAUP;EAAA,SAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,WAAA;EAAA,YAAA;EAAA,QAAA;EAAA,aAAA;EAAA,iBAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAEC,eAFD,CAAA,EAEgB,oBAAA,CAAA,GAAA,CAAA,OAFhB"}
|
package/dist/index30.d.ts
CHANGED
|
@@ -1,37 +1,54 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
2
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
5
3
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** Semantic heading level/element. Defaults to `h2`. */
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
/** Visual step on the Figma heading scale (1 largest → 7 smallest); also sets the per-step default weight. */
|
|
17
|
-
size?: VariantProps<typeof headingVariants>["size"];
|
|
18
|
-
/** Override the per-step default weight. */
|
|
19
|
-
weight?: VariantProps<typeof headingVariants>["weight"];
|
|
20
|
-
/** Text alignment. */
|
|
21
|
-
align?: VariantProps<typeof headingVariants>["align"];
|
|
22
|
-
/** When true, fills the text with the brand gradient instead of the foreground colour. */
|
|
23
|
-
gradient?: VariantProps<typeof headingVariants>["gradient"];
|
|
4
|
+
//#region src/primitives/FileUpload/FileUpload.d.ts
|
|
5
|
+
type FileUploadStatus = "idle" | "uploading" | "success" | "error";
|
|
6
|
+
type FileUploadItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
file: File;
|
|
9
|
+
status: FileUploadStatus;
|
|
10
|
+
progress: number;
|
|
11
|
+
error?: string;
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
type FileUploadHandler = (params: {
|
|
14
|
+
file: File;
|
|
15
|
+
signal: AbortSignal;
|
|
16
|
+
reportProgress: (value: number) => void;
|
|
17
|
+
}) => Promise<void>;
|
|
18
|
+
type FileUploadProps = Omit<React.ComponentProps<"div">, "onChange"> & {
|
|
19
|
+
/** Disable click, drag/drop, and file selection. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Allow selecting or dropping multiple files in one interaction. */
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
/** Native file accept filter (e.g. `image/*,.pdf`). */
|
|
24
|
+
accept?: string;
|
|
25
|
+
/** Maximum number of files held by the component at once. */
|
|
26
|
+
maxFiles?: number;
|
|
27
|
+
/** Maximum file size in bytes; oversized files are rejected with an error message. */
|
|
28
|
+
maxFileSize?: number;
|
|
29
|
+
/** Optional custom validator. Return a message to reject the file, or `null` to accept it. */
|
|
30
|
+
validateFile?: (file: File) => string | null;
|
|
31
|
+
/** Called for each accepted file; receives a progress reporter and abort signal. */
|
|
32
|
+
onUpload?: FileUploadHandler;
|
|
33
|
+
/** Called whenever file entries change (added, progress updates, completed, removed). */
|
|
34
|
+
onItemsChange?: (items: FileUploadItem[]) => void;
|
|
35
|
+
/** Accessible label for the drag-and-drop region. */
|
|
36
|
+
dropzoneAriaLabel?: string;
|
|
37
|
+
};
|
|
38
|
+
/** File upload primitive with click-to-browse and drag-and-drop interactions, validation, and per-file upload states. */
|
|
39
|
+
declare function FileUpload({
|
|
28
40
|
className,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
multiple,
|
|
42
|
+
accept,
|
|
43
|
+
maxFiles,
|
|
44
|
+
maxFileSize,
|
|
45
|
+
validateFile,
|
|
46
|
+
onUpload,
|
|
47
|
+
onItemsChange,
|
|
48
|
+
dropzoneAriaLabel,
|
|
49
|
+
disabled,
|
|
33
50
|
...props
|
|
34
|
-
}:
|
|
51
|
+
}: FileUploadProps): react_jsx_runtime76.JSX.Element;
|
|
35
52
|
//#endregion
|
|
36
|
-
export {
|
|
53
|
+
export { FileUploadStatus as a, FileUploadProps as i, FileUploadHandler as n, FileUploadItem as r, FileUpload as t };
|
|
37
54
|
//# sourceMappingURL=index30.d.ts.map
|
package/dist/index30.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index30.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index30.d.ts","names":[],"sources":["../src/primitives/FileUpload/FileUpload.tsx"],"mappings":";;;;KASK,gBAAA;KAEA,cAAA;;EAFA,IAAA,EAIG,IAJH;EAEA,MAAA,EAGK,gBAHS;EAAA,QAAA,EAAA,MAAA;OAEX,CAAA,EAAA,MAAA;;AACkB,KAKrB,iBAAA,GALqB,CAAA,MAAA,EAAA;EAKrB,IAAA,EACG,IADH;EAAiB,MAAA,EAEZ,WAFY;gBACd,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;MAGF,OAFI,CAAA,IAAA,CAAA;KAIL,eAAA,GAAkB,IAFjB,CAEsB,KAAA,CAAM,cAF5B,CAAA,KAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EAAO;EAER,QAAA,CAAA,EAAA,OAAe;EAAA;UAAQ,CAAM,EAAA,OAAA;;QAYV,CAAA,EAAA,MAAA;;UAIE,CAAA,EAAA,MAAA;EAAc;EAqF/B,WAAA,CAAA,EAAU,MAAA;EAAA;cACjB,CAAA,EAAA,CAAA,IAAA,EA1FsB,IA0FtB,EAAA,GAAA,MAAA,GAAA,IAAA;;UAEA,CAAA,EA1FW,iBA0FX;;eAEA,CAAA,EAAA,CAAA,KAAA,EA1FwB,cA0FxB,EAAA,EAAA,GAAA,IAAA;;mBAEA,CAAA,EAAA,MAAA;;;iBAPO,UAAA,CAUP;EAAA,SAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,WAAA;EAAA,YAAA;EAAA,QAAA;EAAA,aAAA;EAAA,iBAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAEC,eAFD,CAAA,EAEgB,mBAAA,CAAA,GAAA,CAAA,OAFhB"}
|
package/dist/index31.d.cts
CHANGED
|
@@ -1,25 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { i as FieldError, o as FieldLabel, r as FieldDescription, t as Field } from "./index29.cjs";
|
|
2
|
+
import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
3
4
|
import * as React from "react";
|
|
5
|
+
import * as react_hook_form0 from "react-hook-form";
|
|
6
|
+
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
4
7
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root that
|
|
7
|
-
declare
|
|
8
|
+
//#region src/primitives/Form/Form.d.ts
|
|
9
|
+
/** Root provider that shares one react-hook-form instance with all nested form pieces. */
|
|
10
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({
|
|
11
|
+
children,
|
|
12
|
+
watch,
|
|
13
|
+
getValues,
|
|
14
|
+
getFieldState,
|
|
15
|
+
setError,
|
|
16
|
+
clearErrors,
|
|
17
|
+
setValue,
|
|
18
|
+
setValues,
|
|
19
|
+
trigger,
|
|
20
|
+
formState,
|
|
21
|
+
resetField,
|
|
22
|
+
reset,
|
|
23
|
+
handleSubmit,
|
|
24
|
+
unregister,
|
|
25
|
+
control,
|
|
26
|
+
register,
|
|
27
|
+
setFocus,
|
|
28
|
+
subscribe
|
|
29
|
+
}: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
30
|
+
/** Connects a single input to the form via RHF's `Controller`, exposing `field` to its render prop. */
|
|
31
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
8
32
|
...props
|
|
9
|
-
}:
|
|
10
|
-
/**
|
|
11
|
-
declare
|
|
33
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime200.JSX.Element;
|
|
34
|
+
/** Hook for form pieces to read the current field's id, name, ARIA ids, and validation state. */
|
|
35
|
+
declare const useFormField: () => {
|
|
36
|
+
invalid: boolean;
|
|
37
|
+
isDirty: boolean;
|
|
38
|
+
isTouched: boolean;
|
|
39
|
+
isValidating: boolean;
|
|
40
|
+
error?: react_hook_form0.FieldError;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
formItemId: string;
|
|
44
|
+
formDescriptionId: string;
|
|
45
|
+
formMessageId: string;
|
|
46
|
+
};
|
|
47
|
+
/** Wraps one field, generating an id so its label, control, and messages stay linked. */
|
|
48
|
+
declare function FormItem({
|
|
12
49
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
50
|
+
}: React.ComponentProps<typeof Field>): react_jsx_runtime200.JSX.Element;
|
|
51
|
+
/** Field label wired to the control's id and tinted destructive when the field is invalid. */
|
|
52
|
+
declare function FormLabel({
|
|
16
53
|
className,
|
|
17
|
-
/** Alignment of the content relative to the trigger along the chosen side. */
|
|
18
|
-
align,
|
|
19
|
-
/** Gap in pixels between the trigger and the content. */
|
|
20
|
-
sideOffset,
|
|
21
54
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof
|
|
55
|
+
}: React.ComponentProps<typeof FieldLabel>): react_jsx_runtime200.JSX.Element;
|
|
56
|
+
/** Slots the actual input, applying the field's id, `aria-describedby`, and `aria-invalid`. */
|
|
57
|
+
declare function FormControl({
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentProps<typeof Slot.Root>): react_jsx_runtime200.JSX.Element;
|
|
60
|
+
/** Helper text for a field, linked to its control via `aria-describedby`. */
|
|
61
|
+
declare function FormDescription({
|
|
62
|
+
...props
|
|
63
|
+
}: React.ComponentProps<typeof FieldDescription>): react_jsx_runtime200.JSX.Element;
|
|
64
|
+
/** Renders the field's validation error (or `children`), and nothing when there is no message. */
|
|
65
|
+
declare function FormMessage({
|
|
66
|
+
children,
|
|
67
|
+
...props
|
|
68
|
+
}: React.ComponentProps<typeof FieldError>): react_jsx_runtime200.JSX.Element | null;
|
|
23
69
|
//#endregion
|
|
24
|
-
export {
|
|
70
|
+
export { FormItem as a, useFormField as c, FormField as i, FormControl as n, FormLabel as o, FormDescription as r, FormMessage as s, Form as t };
|
|
25
71
|
//# sourceMappingURL=index31.d.cts.map
|
package/dist/index31.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index31.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index31.d.cts","names":[],"sources":["../src/primitives/Form/Form.tsx"],"mappings":";;;;;;;;;cAqBM,4BAAI,kDAAA;;;;;;;;;;;;;;;;;;;GAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,KAAA,CAAA,GAAA,CAAA;;cAaJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;GAGjD,gBAAgB,cAAc,WAAM,oBAAA,CAAA,GAAA,CAAA;AAzB8C;cAkC/E,YA3BmB,EAAA,GAAA,GAAA;SAAf,EAAA,OAAA;SAAA,EAAA,OAAA;WAAA,EAAA,OAAA;cAAA,EAAA,OAAA;OAAA,CAAA,EAgDT,gBAAA,CAAA,UAhDS;MAAA,MAAA;MAAA,EAAA,MAAA;YAAA,EAAA,MAAA;mBAAA,EAAA,MAAA;eAAA,EAAA,MAAA;;;iBA0DD,QAAA,CA1DC;EAAA,GAAA;AAAA,CAAA,EA0DsB,KAAA,CAAM,cA1D5B,CAAA,OA0DkD,KA1DlD,CAAA,CAAA,EA0DwD,oBAAA,CAAA,GAAA,CAAA,OA1DxD;;iBAqED,SAAA,CArEC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqEkC,KAAA,CAAM,cArExC,CAAA,OAqE8D,UArE9D,CAAA,CAAA,EAqEyE,oBAAA,CAAA,GAAA,CAAA,OArEzE;;iBAoFD,WAAA,CApFC;EAAA,GAAA;AAAA,CAAA,EAoFyB,KAAA,CAAM,cApF/B,CAAA,OAoFqD,IAAA,CAAK,IApF1D,CAAA,CAAA,EAoF+D,oBAAA,CAAA,GAAA,CAAA,OApF/D;;iBAmGD,eAAA,CAnGC;EAAA,GAAA;AAAA,CAAA,EAmG6B,KAAA,CAAM,cAnGnC,CAAA,OAmGyD,gBAnGzD,CAAA,CAAA,EAmG0E,oBAAA,CAAA,GAAA,CAAA,OAnG1E;;iBA0GD,WAAA,CA1GC;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA0GmC,KAAA,CAAM,cA1GzC,CAAA,OA0G+D,UA1G/D,CAAA,CAAA,EA0G0E,oBAAA,CAAA,GAAA,CAAA,OAAA,GA1G1E,IAAA"}
|
package/dist/index31.d.ts
CHANGED
|
@@ -1,25 +1,71 @@
|
|
|
1
|
+
import { i as FieldError, o as FieldLabel, r as FieldDescription, t as Field } from "./index29.js";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
3
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
4
|
+
import { Slot } from "radix-ui";
|
|
5
|
+
import * as react_hook_form0 from "react-hook-form";
|
|
6
|
+
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
4
7
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/** Root that
|
|
7
|
-
declare
|
|
8
|
+
//#region src/primitives/Form/Form.d.ts
|
|
9
|
+
/** Root provider that shares one react-hook-form instance with all nested form pieces. */
|
|
10
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({
|
|
11
|
+
children,
|
|
12
|
+
watch,
|
|
13
|
+
getValues,
|
|
14
|
+
getFieldState,
|
|
15
|
+
setError,
|
|
16
|
+
clearErrors,
|
|
17
|
+
setValue,
|
|
18
|
+
setValues,
|
|
19
|
+
trigger,
|
|
20
|
+
formState,
|
|
21
|
+
resetField,
|
|
22
|
+
reset,
|
|
23
|
+
handleSubmit,
|
|
24
|
+
unregister,
|
|
25
|
+
control,
|
|
26
|
+
register,
|
|
27
|
+
setFocus,
|
|
28
|
+
subscribe
|
|
29
|
+
}: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
30
|
+
/** Connects a single input to the form via RHF's `Controller`, exposing `field` to its render prop. */
|
|
31
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
8
32
|
...props
|
|
9
|
-
}:
|
|
10
|
-
/**
|
|
11
|
-
declare
|
|
33
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime60.JSX.Element;
|
|
34
|
+
/** Hook for form pieces to read the current field's id, name, ARIA ids, and validation state. */
|
|
35
|
+
declare const useFormField: () => {
|
|
36
|
+
invalid: boolean;
|
|
37
|
+
isDirty: boolean;
|
|
38
|
+
isTouched: boolean;
|
|
39
|
+
isValidating: boolean;
|
|
40
|
+
error?: react_hook_form0.FieldError;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
formItemId: string;
|
|
44
|
+
formDescriptionId: string;
|
|
45
|
+
formMessageId: string;
|
|
46
|
+
};
|
|
47
|
+
/** Wraps one field, generating an id so its label, control, and messages stay linked. */
|
|
48
|
+
declare function FormItem({
|
|
12
49
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof
|
|
14
|
-
/**
|
|
15
|
-
declare function
|
|
50
|
+
}: React.ComponentProps<typeof Field>): react_jsx_runtime60.JSX.Element;
|
|
51
|
+
/** Field label wired to the control's id and tinted destructive when the field is invalid. */
|
|
52
|
+
declare function FormLabel({
|
|
16
53
|
className,
|
|
17
|
-
/** Alignment of the content relative to the trigger along the chosen side. */
|
|
18
|
-
align,
|
|
19
|
-
/** Gap in pixels between the trigger and the content. */
|
|
20
|
-
sideOffset,
|
|
21
54
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof
|
|
55
|
+
}: React.ComponentProps<typeof FieldLabel>): react_jsx_runtime60.JSX.Element;
|
|
56
|
+
/** Slots the actual input, applying the field's id, `aria-describedby`, and `aria-invalid`. */
|
|
57
|
+
declare function FormControl({
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentProps<typeof Slot.Root>): react_jsx_runtime60.JSX.Element;
|
|
60
|
+
/** Helper text for a field, linked to its control via `aria-describedby`. */
|
|
61
|
+
declare function FormDescription({
|
|
62
|
+
...props
|
|
63
|
+
}: React.ComponentProps<typeof FieldDescription>): react_jsx_runtime60.JSX.Element;
|
|
64
|
+
/** Renders the field's validation error (or `children`), and nothing when there is no message. */
|
|
65
|
+
declare function FormMessage({
|
|
66
|
+
children,
|
|
67
|
+
...props
|
|
68
|
+
}: React.ComponentProps<typeof FieldError>): react_jsx_runtime60.JSX.Element | null;
|
|
23
69
|
//#endregion
|
|
24
|
-
export {
|
|
70
|
+
export { FormItem as a, useFormField as c, FormField as i, FormControl as n, FormLabel as o, FormDescription as r, FormMessage as s, Form as t };
|
|
25
71
|
//# sourceMappingURL=index31.d.ts.map
|
package/dist/index31.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index31.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index31.d.ts","names":[],"sources":["../src/primitives/Form/Form.tsx"],"mappings":";;;;;;;;;cAqBM,4BAAI,kDAAA;;;;;;;;;;;;;;;;;;;GAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,KAAA,CAAA,GAAA,CAAA;;cAaJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;GAGjD,gBAAgB,cAAc,WAAM,mBAAA,CAAA,GAAA,CAAA;AAzB8C;cAkC/E,YA3BmB,EAAA,GAAA,GAAA;SAAf,EAAA,OAAA;SAAA,EAAA,OAAA;WAAA,EAAA,OAAA;cAAA,EAAA,OAAA;OAAA,CAAA,EAgDT,gBAAA,CAAA,UAhDS;MAAA,MAAA;MAAA,EAAA,MAAA;YAAA,EAAA,MAAA;mBAAA,EAAA,MAAA;eAAA,EAAA,MAAA;;;iBA0DD,QAAA,CA1DC;EAAA,GAAA;AAAA,CAAA,EA0DsB,KAAA,CAAM,cA1D5B,CAAA,OA0DkD,KA1DlD,CAAA,CAAA,EA0DwD,mBAAA,CAAA,GAAA,CAAA,OA1DxD;;iBAqED,SAAA,CArEC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqEkC,KAAA,CAAM,cArExC,CAAA,OAqE8D,UArE9D,CAAA,CAAA,EAqEyE,mBAAA,CAAA,GAAA,CAAA,OArEzE;;iBAoFD,WAAA,CApFC;EAAA,GAAA;AAAA,CAAA,EAoFyB,KAAA,CAAM,cApF/B,CAAA,OAoFqD,IAAA,CAAK,IApF1D,CAAA,CAAA,EAoF+D,mBAAA,CAAA,GAAA,CAAA,OApF/D;;iBAmGD,eAAA,CAnGC;EAAA,GAAA;AAAA,CAAA,EAmG6B,KAAA,CAAM,cAnGnC,CAAA,OAmGyD,gBAnGzD,CAAA,CAAA,EAmG0E,mBAAA,CAAA,GAAA,CAAA,OAnG1E;;iBA0GD,WAAA,CA1GC;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA0GmC,KAAA,CAAM,cA1GzC,CAAA,OA0G+D,UA1G/D,CAAA,CAAA,EA0G0E,mBAAA,CAAA,GAAA,CAAA,OAAA,GA1G1E,IAAA"}
|