@psnext/design-system 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +7 -2
- package/SKILL.md +1 -1
- package/dist/Header.cjs +2 -2
- package/dist/Header.js +2 -2
- package/dist/Logo.cjs +322 -315
- package/dist/Logo.cjs.map +1 -1
- package/dist/Logo.js +322 -315
- package/dist/Logo.js.map +1 -1
- package/dist/Mosaic.cjs +72 -15
- package/dist/Mosaic.cjs.map +1 -1
- package/dist/Mosaic.js +72 -15
- package/dist/Mosaic.js.map +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -3
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +6 -6
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index12.d.cts +11 -11
- package/dist/index12.d.ts +11 -11
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.cts.map +1 -1
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +2 -2
- package/dist/index15.d.ts +2 -2
- package/dist/index16.d.cts +3 -3
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +3 -3
- package/dist/index17.d.cts +2 -2
- package/dist/index17.d.ts +2 -2
- package/dist/index18.d.cts +4 -4
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +4 -4
- package/dist/index19.d.cts +11 -11
- package/dist/index19.d.cts.map +1 -1
- package/dist/index19.d.ts +11 -11
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.ts +8 -8
- package/dist/index2.d.ts.map +1 -1
- package/dist/index20.d.cts +10 -10
- package/dist/index20.d.ts +10 -10
- package/dist/index21.d.cts +30 -81
- package/dist/index21.d.cts.map +1 -1
- package/dist/index21.d.ts +30 -81
- package/dist/index21.d.ts.map +1 -1
- package/dist/index22.d.cts +114 -27
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +114 -27
- package/dist/index22.d.ts.map +1 -1
- package/dist/index23.d.cts +75 -53
- package/dist/index23.d.cts.map +1 -1
- package/dist/index23.d.ts +75 -53
- package/dist/index23.d.ts.map +1 -1
- package/dist/index24.d.cts +28 -93
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +28 -93
- package/dist/index24.d.ts.map +1 -1
- package/dist/index25.d.cts +58 -33
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +58 -33
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +93 -11
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +93 -11
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +32 -63
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +32 -63
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +11 -48
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +11 -48
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +68 -59
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +68 -59
- package/dist/index29.d.ts.map +1 -1
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.cts.map +1 -1
- package/dist/index3.d.ts +13 -13
- package/dist/index30.d.cts +47 -30
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +47 -30
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +63 -17
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +63 -17
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +29 -80
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +29 -80
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +19 -34
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +19 -34
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +80 -18
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +80 -18
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +32 -51
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +32 -51
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +19 -36
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +19 -36
- package/dist/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +43 -61
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +43 -61
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +35 -11
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +35 -11
- package/dist/index38.d.ts.map +1 -1
- package/dist/index39.d.cts +68 -20
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +68 -20
- package/dist/index39.d.ts.map +1 -1
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +2 -2
- package/dist/index40.d.cts +14 -15
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +14 -15
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +22 -98
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +22 -98
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +16 -120
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +16 -120
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +99 -16
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +99 -16
- package/dist/index43.d.ts.map +1 -1
- package/dist/index44.d.cts +184 -49
- package/dist/index44.d.cts.map +1 -1
- package/dist/index44.d.ts +184 -49
- package/dist/index44.d.ts.map +1 -1
- package/dist/index45.d.cts +16 -39
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +16 -39
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +37 -77
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +37 -77
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +96 -1
- package/dist/index47.d.cts.map +1 -0
- package/dist/index47.d.ts +96 -1
- package/dist/index47.d.ts.map +1 -0
- package/dist/index48.d.cts +1 -127
- package/dist/index48.d.ts +1 -127
- package/dist/index49.d.cts +121 -42
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +121 -42
- package/dist/index49.d.ts.map +1 -1
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.cts.map +1 -1
- package/dist/index5.d.ts +7 -7
- package/dist/index50.d.cts +42 -22
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +42 -22
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +21 -34
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +21 -34
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +33 -17
- package/dist/index52.d.cts.map +1 -1
- package/dist/index52.d.ts +33 -17
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +18 -14
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +18 -14
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +12 -60
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +12 -60
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +51 -80
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +51 -80
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +91 -24
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +91 -24
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +25 -203
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +25 -203
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +198 -15
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +198 -15
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +21 -23
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +21 -23
- package/dist/index59.d.ts.map +1 -1
- package/dist/index6.d.cts +5 -5
- package/dist/index6.d.ts +5 -5
- package/dist/index60.d.cts +21 -18
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +21 -18
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +21 -8
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +21 -8
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +6 -44
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +6 -44
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +46 -47
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +46 -47
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +47 -59
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +47 -59
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +56 -38
- package/dist/index65.d.cts.map +1 -1
- package/dist/index65.d.ts +56 -38
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +37 -16
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +37 -16
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +20 -41
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +20 -41
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +41 -19
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +41 -19
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +14 -39
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +14 -39
- package/dist/index69.d.ts.map +1 -1
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.cts.map +1 -1
- package/dist/index7.d.ts +8 -8
- package/dist/index70.d.cts +39 -16
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +39 -16
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +17 -83
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +15 -81
- package/dist/index71.d.ts.map +1 -1
- package/dist/index72.d.cts +83 -11
- package/dist/index72.d.cts.map +1 -1
- package/dist/index72.d.ts +83 -11
- package/dist/index72.d.ts.map +1 -1
- package/dist/index73.d.cts +12 -30
- package/dist/index73.d.cts.map +1 -1
- package/dist/index73.d.ts +12 -30
- package/dist/index73.d.ts.map +1 -1
- package/dist/index74.d.cts +28 -27
- package/dist/index74.d.cts.map +1 -1
- package/dist/index74.d.ts +28 -27
- package/dist/index74.d.ts.map +1 -1
- package/dist/index75.d.cts +33 -83
- package/dist/index75.d.cts.map +1 -1
- package/dist/index75.d.ts +33 -83
- package/dist/index75.d.ts.map +1 -1
- package/dist/index76.d.cts +82 -273
- package/dist/index76.d.cts.map +1 -1
- package/dist/index76.d.ts +82 -273
- package/dist/index76.d.ts.map +1 -1
- package/dist/index77.d.cts +278 -0
- package/dist/index77.d.cts.map +1 -0
- package/dist/index77.d.ts +278 -0
- package/dist/index77.d.ts.map +1 -0
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.cts.map +1 -1
- package/dist/index8.d.ts +3 -3
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.ts +2 -2
- package/dist/layouts/Container/index.d.cts +1 -1
- package/dist/layouts/Container/index.d.ts +1 -1
- package/dist/layouts/MultiColumn/index.d.cts +1 -1
- package/dist/layouts/MultiColumn/index.d.ts +1 -1
- package/dist/layouts/PageBackground/index.d.cts +1 -1
- package/dist/layouts/PageBackground/index.d.ts +1 -1
- package/dist/layouts/Stack/index.d.cts +1 -1
- package/dist/layouts/Stack/index.d.ts +1 -1
- package/dist/layouts/TwoColumn/index.d.cts +1 -1
- package/dist/layouts/TwoColumn/index.d.ts +1 -1
- package/dist/layouts/index.d.cts +5 -5
- package/dist/layouts/index.d.ts +5 -5
- package/dist/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.cts.map +1 -1
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Header/index.d.cts +1 -1
- package/dist/patterns/Header/index.d.ts +1 -1
- package/dist/patterns/MediaObject/index.d.cts +14 -14
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +11 -11
- package/dist/patterns/MediaObject/index.d.ts.map +1 -1
- package/dist/patterns/NavRail/index.d.cts +1 -1
- package/dist/patterns/NavRail/index.d.ts +1 -1
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- package/dist/patterns/SectionCard/index.d.cts.map +1 -1
- package/dist/patterns/SectionCard/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts +3 -3
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +3 -3
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/primitives/Combobox/index.cjs +210 -0
- package/dist/primitives/Combobox/index.cjs.map +1 -0
- package/dist/primitives/Combobox/index.d.cts +2 -0
- package/dist/primitives/Combobox/index.d.ts +2 -0
- package/dist/primitives/Combobox/index.js +199 -0
- package/dist/primitives/Combobox/index.js.map +1 -0
- package/dist/primitives/ContextMenu/index.d.cts +1 -1
- package/dist/primitives/ContextMenu/index.d.ts +1 -1
- package/dist/primitives/Credits/index.d.cts +1 -1
- package/dist/primitives/Credits/index.d.ts +1 -1
- package/dist/primitives/Drawer/index.d.cts +1 -1
- package/dist/primitives/Drawer/index.d.ts +1 -1
- package/dist/primitives/DropdownMenu/index.d.cts +1 -1
- package/dist/primitives/DropdownMenu/index.d.ts +1 -1
- package/dist/primitives/Empty/index.d.cts +1 -1
- package/dist/primitives/Empty/index.d.ts +1 -1
- package/dist/primitives/Field/index.d.cts +1 -1
- package/dist/primitives/Field/index.d.ts +1 -1
- package/dist/primitives/FileUpload/index.d.cts +1 -1
- package/dist/primitives/FileUpload/index.d.ts +1 -1
- package/dist/primitives/Form/index.d.cts +1 -1
- package/dist/primitives/Form/index.d.ts +1 -1
- package/dist/primitives/Heading/index.d.cts +1 -1
- package/dist/primitives/Heading/index.d.ts +1 -1
- package/dist/primitives/HoverCard/index.d.cts +1 -1
- package/dist/primitives/HoverCard/index.d.ts +1 -1
- package/dist/primitives/Icon/index.d.cts +1 -1
- package/dist/primitives/Icon/index.d.ts +1 -1
- package/dist/primitives/InfoBanner/index.d.cts +1 -1
- package/dist/primitives/InfoBanner/index.d.ts +1 -1
- package/dist/primitives/Input/index.d.cts +1 -1
- package/dist/primitives/Input/index.d.ts +1 -1
- package/dist/primitives/InputGroup/index.d.cts +1 -1
- package/dist/primitives/InputGroup/index.d.ts +1 -1
- package/dist/primitives/InputOtp/index.d.cts +1 -1
- package/dist/primitives/InputOtp/index.d.ts +1 -1
- package/dist/primitives/Item/index.d.cts +1 -1
- package/dist/primitives/Item/index.d.ts +1 -1
- package/dist/primitives/Kbd/index.d.cts +1 -1
- package/dist/primitives/Kbd/index.d.ts +1 -1
- package/dist/primitives/Label/index.d.cts +1 -1
- package/dist/primitives/Label/index.d.ts +1 -1
- package/dist/primitives/Link/index.d.cts +1 -1
- package/dist/primitives/Link/index.d.ts +1 -1
- package/dist/primitives/Logo/index.d.cts +1 -1
- package/dist/primitives/Logo/index.d.ts +1 -1
- package/dist/primitives/Menubar/index.d.cts +1 -1
- package/dist/primitives/Menubar/index.d.ts +1 -1
- package/dist/primitives/Mosaic/index.d.cts +2 -2
- package/dist/primitives/Mosaic/index.d.ts +2 -2
- package/dist/primitives/NativeSelect/index.d.cts +1 -1
- package/dist/primitives/NativeSelect/index.d.ts +1 -1
- package/dist/primitives/NavRail/index.d.cts +2 -2
- package/dist/primitives/NavRail/index.d.ts +2 -2
- package/dist/primitives/NavigationMenu/index.d.cts +1 -1
- package/dist/primitives/NavigationMenu/index.d.ts +1 -1
- package/dist/primitives/NotchedCard/index.d.cts +1 -1
- package/dist/primitives/NotchedCard/index.d.ts +1 -1
- package/dist/primitives/Pagination/index.d.cts +1 -1
- package/dist/primitives/Pagination/index.d.ts +1 -1
- package/dist/primitives/Popover/index.d.cts +1 -1
- package/dist/primitives/Popover/index.d.ts +1 -1
- package/dist/primitives/Progress/index.d.cts +1 -1
- package/dist/primitives/Progress/index.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.d.cts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +1 -1
- package/dist/primitives/Resizable/index.d.cts +1 -1
- package/dist/primitives/Resizable/index.d.ts +1 -1
- package/dist/primitives/ScrollArea/index.d.cts +1 -1
- package/dist/primitives/ScrollArea/index.d.ts +1 -1
- package/dist/primitives/Select/index.d.cts +1 -1
- package/dist/primitives/Select/index.d.ts +1 -1
- package/dist/primitives/Sheet/index.d.cts +1 -1
- package/dist/primitives/Sheet/index.d.ts +1 -1
- package/dist/primitives/Sidebar/index.d.cts +1 -1
- package/dist/primitives/Sidebar/index.d.ts +1 -1
- package/dist/primitives/Skeleton/index.d.cts +1 -1
- package/dist/primitives/Skeleton/index.d.ts +1 -1
- package/dist/primitives/Slider/index.d.cts +1 -1
- package/dist/primitives/Slider/index.d.ts +1 -1
- package/dist/primitives/Sonner/index.d.cts +1 -1
- package/dist/primitives/Sonner/index.d.ts +1 -1
- package/dist/primitives/Spinner/index.d.cts +1 -1
- package/dist/primitives/Spinner/index.d.ts +1 -1
- package/dist/primitives/Switch/index.d.cts +1 -1
- package/dist/primitives/Switch/index.d.ts +1 -1
- package/dist/primitives/Table/index.d.cts +1 -1
- package/dist/primitives/Table/index.d.ts +1 -1
- package/dist/primitives/Tabs/index.cjs +153 -10
- package/dist/primitives/Tabs/index.cjs.map +1 -1
- package/dist/primitives/Tabs/index.d.cts +1 -1
- package/dist/primitives/Tabs/index.d.ts +1 -1
- package/dist/primitives/Tabs/index.js +153 -10
- package/dist/primitives/Tabs/index.js.map +1 -1
- package/dist/primitives/Text/index.d.cts +1 -1
- package/dist/primitives/Text/index.d.ts +1 -1
- package/dist/primitives/Textarea/index.d.cts +1 -1
- package/dist/primitives/Textarea/index.d.ts +1 -1
- package/dist/primitives/ThemeProvider/index.d.cts +1 -1
- package/dist/primitives/ThemeProvider/index.d.ts +1 -1
- package/dist/primitives/Toggle/index.d.cts +1 -1
- package/dist/primitives/Toggle/index.d.ts +1 -1
- package/dist/primitives/ToggleGroup/index.d.cts +1 -1
- package/dist/primitives/ToggleGroup/index.d.ts +1 -1
- package/dist/primitives/Tooltip/index.d.cts +1 -1
- package/dist/primitives/Tooltip/index.d.ts +1 -1
- package/dist/primitives/index.cjs +12 -2
- package/dist/primitives/index.d.cts +50 -49
- package/dist/primitives/index.d.ts +50 -49
- package/dist/primitives/index.js +4 -3
- package/dist/styles/tokens/mode-dark.css +1 -1
- package/package.json +1 -1
- package/dist/index48.d.cts.map +0 -1
- package/dist/index48.d.ts.map +0 -1
package/dist/index65.d.cts
CHANGED
|
@@ -1,45 +1,63 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as react_jsx_runtime295 from "react/jsx-runtime";
|
|
2
|
+
import { Tabs } from "radix-ui";
|
|
3
|
+
import * as class_variance_authority_types25 from "class-variance-authority/types";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
15
|
-
type TextProps = Omit<React.ComponentProps<"p">, "color"> & VariantProps<typeof textVariants> & {
|
|
16
|
-
/** Element/component to render. Defaults to `p`. */
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
/** Body type-scale step (font-size + line-height). Defaults to `regular`. */
|
|
19
|
-
size?: VariantProps<typeof textVariants>["size"];
|
|
20
|
-
/** Font weight. Defaults to `normal`. */
|
|
21
|
-
weight?: VariantProps<typeof textVariants>["weight"];
|
|
22
|
-
/** Foreground colour token. Defaults to `default` (text-primary-txt). */
|
|
23
|
-
variant?: VariantProps<typeof textVariants>["variant"];
|
|
24
|
-
/** Font family. Defaults to `body` (sans). */
|
|
25
|
-
font?: VariantProps<typeof textVariants>["font"];
|
|
26
|
-
/** Horizontal text alignment. */
|
|
27
|
-
align?: VariantProps<typeof textVariants>["align"];
|
|
28
|
-
/** Truncate to a single line with an ellipsis. */
|
|
29
|
-
truncate?: VariantProps<typeof textVariants>["truncate"];
|
|
30
|
-
};
|
|
31
|
-
/** The typography primitive: renders any element via `as` and drives size/weight/colour from the body type scale. */
|
|
32
|
-
declare function Text({
|
|
33
|
-
as,
|
|
6
|
+
//#region src/primitives/Tabs/Tabs.d.ts
|
|
7
|
+
type TabsVariant = "line" | "pill" | "segmented" | "fancy";
|
|
8
|
+
type TabsSize = "sm" | "md" | "lg";
|
|
9
|
+
/**
|
|
10
|
+
* Tabbed interface root: holds the active value and shares `variant`/`size`/
|
|
11
|
+
* `orientation` with its `TabsList`/`TabsTrigger`/`TabsContent` via context.
|
|
12
|
+
*/
|
|
13
|
+
declare function Tabs$1({
|
|
34
14
|
className,
|
|
35
|
-
size,
|
|
36
|
-
weight,
|
|
37
15
|
variant,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
16
|
+
size,
|
|
17
|
+
orientation,
|
|
18
|
+
...props
|
|
19
|
+
}: React.ComponentProps<typeof Tabs.Root> & {
|
|
20
|
+
/** Visual style of the tabs: underline, pill track, sliding segmented, or glass cards. */
|
|
21
|
+
variant?: TabsVariant;
|
|
22
|
+
/** Control density — drives padding and text size of the triggers. */
|
|
23
|
+
size?: TabsSize;
|
|
24
|
+
}): react_jsx_runtime295.JSX.Element;
|
|
25
|
+
declare const tabsListVariants: (props?: ({
|
|
26
|
+
variant?: "line" | "pill" | "segmented" | "fancy" | null | undefined;
|
|
27
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
28
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
29
|
+
} & class_variance_authority_types25.ClassProp) | undefined) => string;
|
|
30
|
+
/** Row (or column) of tab triggers; renders the sliding indicator for the `segmented` variant. */
|
|
31
|
+
declare function TabsList({
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
tabPrefix,
|
|
35
|
+
tabSuffix,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<typeof Tabs.List> & {
|
|
38
|
+
tabPrefix?: React.ReactNode;
|
|
39
|
+
tabSuffix?: React.ReactNode;
|
|
40
|
+
}): react_jsx_runtime295.JSX.Element;
|
|
41
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
42
|
+
variant?: "line" | "pill" | "segmented" | "fancy" | null | undefined;
|
|
43
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
44
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
45
|
+
} & class_variance_authority_types25.ClassProp) | undefined) => string;
|
|
46
|
+
/** Clickable tab button; its `value` selects the matching `TabsContent` panel. */
|
|
47
|
+
declare function TabsTrigger({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: React.ComponentProps<typeof Tabs.Trigger>): react_jsx_runtime295.JSX.Element;
|
|
51
|
+
/** Panel shown when its `value` matches the active tab; styled as a glass panel for the `fancy` variant. */
|
|
52
|
+
declare function TabsContent({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<typeof Tabs.Content>): react_jsx_runtime295.JSX.Element;
|
|
56
|
+
/** Trailing count badge for a tab trigger; goes dark on the `fancy` variant to match its cards. */
|
|
57
|
+
declare function TabsCounter({
|
|
58
|
+
className,
|
|
41
59
|
...props
|
|
42
|
-
}:
|
|
60
|
+
}: React.ComponentProps<"span">): react_jsx_runtime295.JSX.Element;
|
|
43
61
|
//#endregion
|
|
44
|
-
export {
|
|
62
|
+
export { TabsTrigger as a, TabsList as i, TabsContent as n, tabsListVariants as o, TabsCounter as r, tabsTriggerVariants as s, Tabs$1 as t };
|
|
45
63
|
//# sourceMappingURL=index65.d.cts.map
|
package/dist/index65.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index65.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index65.d.cts","names":[],"sources":["../src/primitives/Tabs/Tabs.tsx"],"mappings":";;;;;;KAoBK,WAAA;KACA,QAAA;;;AAjB0B;AAgBf;AACH,iBAaJ,MAAA,CAAI;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,WAAA;EAAA,GAAA;CAAA,EAMV,KAAA,CAAM,cANI,CAAA,OAMkB,IAAA,CAAc,IANhC,CAAA,GAAA;EAAA;SACX,CAAA,EAOU,WAPV;;MAEA,CAAA,EAOO,QAPP;IAQD,oBAAA,CAAA,GAAA,CAAA,OAPC;cAgCI,gBA9BuC,EAAA,CAAA,KAK5C,CAL4C,EAAA,CAAA;SAA1C,CAAA,EAAM,MAAA,GAAA,MAAA,GAAA,WAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;aAEG,CAAA,EAAA,YAAA,GAAA,UAAA,GAAA,IAAA,GAAA,SAAA;MAEH,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;IA+CP,gCAAA,CAAA,SA9CD,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAAA;AAAA,iBAiDQ,QAAA,CAHP;EAAA,SAAA;EAAA,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EASC,KAAA,CAAM,cATP,CAAA,OAS6B,IAAA,CAAc,IAT3C,CAAA,GAAA;EAGO,SAAA,CAAA,EAOK,KAAA,CAAM,SAPH;EAAA,SAAA,CAAA,EAQH,KAAA,CAAM,SARH;IAShB,oBAAA,CAAA,GAAA,CAAA,OARC;cAsUI,mBArUJ,EAAA,CAAA,KAIO,CAJP,EAAA,CAAA;SACA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,WAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;aACA,CAAA,EAAA,YAAA,GAAA,UAAA,GAAA,IAAA,GAAA,SAAA;MAE6B,CAAA,EAAA,IAAc,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;IA6X5C,gCAAA,CAAA,SA7XQ,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;iBAgYA,WAAA,CA9XW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8X0B,KAAA,CAAM,cA9XhC,CAAA,OA8XsD,IAAA,CAAc,OA9XpE,CAAA,CAAA,EA8X4E,oBAAA,CAAA,GAAA,CAAA,OA9X5E;;AACnB,iBAyYQ,WAAA,CAzYR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyY6C,KAAA,CAAM,cAzYnD,CAAA,OAyYyE,IAAA,CAAc,OAzYvF,CAAA,CAAA,EAyY+F,oBAAA,CAAA,GAAA,CAAA,OAzY/F;AAAA;iBA2ZQ,WAAA,CA9BW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8B0B,KAAA,CAAM,cA9BhC,CAAA,MAAA,CAAA,CAAA,EA8BsD,oBAAA,CAAA,GAAA,CAAA,OA9BtD"}
|
package/dist/index65.d.ts
CHANGED
|
@@ -1,45 +1,63 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
2
|
+
import * as react_jsx_runtime349 from "react/jsx-runtime";
|
|
3
|
+
import { Tabs } from "radix-ui";
|
|
4
|
+
import * as class_variance_authority_types28 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} & class_variance_authority_types23.ClassProp) | undefined) => string;
|
|
15
|
-
type TextProps = Omit<React.ComponentProps<"p">, "color"> & VariantProps<typeof textVariants> & {
|
|
16
|
-
/** Element/component to render. Defaults to `p`. */
|
|
17
|
-
as?: React.ElementType;
|
|
18
|
-
/** Body type-scale step (font-size + line-height). Defaults to `regular`. */
|
|
19
|
-
size?: VariantProps<typeof textVariants>["size"];
|
|
20
|
-
/** Font weight. Defaults to `normal`. */
|
|
21
|
-
weight?: VariantProps<typeof textVariants>["weight"];
|
|
22
|
-
/** Foreground colour token. Defaults to `default` (text-primary-txt). */
|
|
23
|
-
variant?: VariantProps<typeof textVariants>["variant"];
|
|
24
|
-
/** Font family. Defaults to `body` (sans). */
|
|
25
|
-
font?: VariantProps<typeof textVariants>["font"];
|
|
26
|
-
/** Horizontal text alignment. */
|
|
27
|
-
align?: VariantProps<typeof textVariants>["align"];
|
|
28
|
-
/** Truncate to a single line with an ellipsis. */
|
|
29
|
-
truncate?: VariantProps<typeof textVariants>["truncate"];
|
|
30
|
-
};
|
|
31
|
-
/** The typography primitive: renders any element via `as` and drives size/weight/colour from the body type scale. */
|
|
32
|
-
declare function Text({
|
|
33
|
-
as,
|
|
6
|
+
//#region src/primitives/Tabs/Tabs.d.ts
|
|
7
|
+
type TabsVariant = "line" | "pill" | "segmented" | "fancy";
|
|
8
|
+
type TabsSize = "sm" | "md" | "lg";
|
|
9
|
+
/**
|
|
10
|
+
* Tabbed interface root: holds the active value and shares `variant`/`size`/
|
|
11
|
+
* `orientation` with its `TabsList`/`TabsTrigger`/`TabsContent` via context.
|
|
12
|
+
*/
|
|
13
|
+
declare function Tabs$1({
|
|
34
14
|
className,
|
|
35
|
-
size,
|
|
36
|
-
weight,
|
|
37
15
|
variant,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
16
|
+
size,
|
|
17
|
+
orientation,
|
|
18
|
+
...props
|
|
19
|
+
}: React.ComponentProps<typeof Tabs.Root> & {
|
|
20
|
+
/** Visual style of the tabs: underline, pill track, sliding segmented, or glass cards. */
|
|
21
|
+
variant?: TabsVariant;
|
|
22
|
+
/** Control density — drives padding and text size of the triggers. */
|
|
23
|
+
size?: TabsSize;
|
|
24
|
+
}): react_jsx_runtime349.JSX.Element;
|
|
25
|
+
declare const tabsListVariants: (props?: ({
|
|
26
|
+
variant?: "line" | "pill" | "segmented" | "fancy" | null | undefined;
|
|
27
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
28
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
29
|
+
} & class_variance_authority_types28.ClassProp) | undefined) => string;
|
|
30
|
+
/** Row (or column) of tab triggers; renders the sliding indicator for the `segmented` variant. */
|
|
31
|
+
declare function TabsList({
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
tabPrefix,
|
|
35
|
+
tabSuffix,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<typeof Tabs.List> & {
|
|
38
|
+
tabPrefix?: React.ReactNode;
|
|
39
|
+
tabSuffix?: React.ReactNode;
|
|
40
|
+
}): react_jsx_runtime349.JSX.Element;
|
|
41
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
42
|
+
variant?: "line" | "pill" | "segmented" | "fancy" | null | undefined;
|
|
43
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
44
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
45
|
+
} & class_variance_authority_types28.ClassProp) | undefined) => string;
|
|
46
|
+
/** Clickable tab button; its `value` selects the matching `TabsContent` panel. */
|
|
47
|
+
declare function TabsTrigger({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: React.ComponentProps<typeof Tabs.Trigger>): react_jsx_runtime349.JSX.Element;
|
|
51
|
+
/** Panel shown when its `value` matches the active tab; styled as a glass panel for the `fancy` variant. */
|
|
52
|
+
declare function TabsContent({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<typeof Tabs.Content>): react_jsx_runtime349.JSX.Element;
|
|
56
|
+
/** Trailing count badge for a tab trigger; goes dark on the `fancy` variant to match its cards. */
|
|
57
|
+
declare function TabsCounter({
|
|
58
|
+
className,
|
|
41
59
|
...props
|
|
42
|
-
}:
|
|
60
|
+
}: React.ComponentProps<"span">): react_jsx_runtime349.JSX.Element;
|
|
43
61
|
//#endregion
|
|
44
|
-
export {
|
|
62
|
+
export { TabsTrigger as a, TabsList as i, TabsContent as n, tabsListVariants as o, TabsCounter as r, tabsTriggerVariants as s, Tabs$1 as t };
|
|
45
63
|
//# sourceMappingURL=index65.d.ts.map
|
package/dist/index65.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index65.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index65.d.ts","names":[],"sources":["../src/primitives/Tabs/Tabs.tsx"],"mappings":";;;;;;KAoBK,WAAA;KACA,QAAA;;;AAjB0B;AAgBf;AACH,iBAaJ,MAAA,CAAI;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,WAAA;EAAA,GAAA;CAAA,EAMV,KAAA,CAAM,cANI,CAAA,OAMkB,IAAA,CAAc,IANhC,CAAA,GAAA;EAAA;SACX,CAAA,EAOU,WAPV;;MAEA,CAAA,EAOO,QAPP;IAQD,oBAAA,CAAA,GAAA,CAAA,OAPC;cAgCI,gBA9BuC,EAAA,CAAA,KAK5C,CAL4C,EAAA,CAAA;SAA1C,CAAA,EAAM,MAAA,GAAA,MAAA,GAAA,WAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;aAEG,CAAA,EAAA,UAAA,GAAA,YAAA,GAAA,IAAA,GAAA,SAAA;MAEH,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;IA+CP,gCAAA,CAAA,SA9CD,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAAA;AAAA,iBAiDQ,QAAA,CAHP;EAAA,SAAA;EAAA,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EASC,KAAA,CAAM,cATP,CAAA,OAS6B,IAAA,CAAc,IAT3C,CAAA,GAAA;EAGO,SAAA,CAAA,EAOK,KAAA,CAAM,SAPH;EAAA,SAAA,CAAA,EAQH,KAAA,CAAM,SARH;IAShB,oBAAA,CAAA,GAAA,CAAA,OARC;cAsUI,mBArUJ,EAAA,CAAA,KAIO,CAJP,EAAA,CAAA;SACA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,WAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;aACA,CAAA,EAAA,UAAA,GAAA,YAAA,GAAA,IAAA,GAAA,SAAA;MAE6B,CAAA,EAAA,IAAc,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;IA6X5C,gCAAA,CAAA,SA7XQ,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;iBAgYA,WAAA,CA9XW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8X0B,KAAA,CAAM,cA9XhC,CAAA,OA8XsD,IAAA,CAAc,OA9XpE,CAAA,CAAA,EA8X4E,oBAAA,CAAA,GAAA,CAAA,OA9X5E;;AACnB,iBAyYQ,WAAA,CAzYR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyY6C,KAAA,CAAM,cAzYnD,CAAA,OAyYyE,IAAA,CAAc,OAzYvF,CAAA,CAAA,EAyY+F,oBAAA,CAAA,GAAA,CAAA,OAzY/F;AAAA;iBA2ZQ,WAAA,CA9BW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8B0B,KAAA,CAAM,cA9BhC,CAAA,MAAA,CAAA,CAAA,EA8BsD,oBAAA,CAAA,GAAA,CAAA,OA9BtD"}
|
package/dist/index66.d.cts
CHANGED
|
@@ -1,24 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime176 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types18 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
//#region src/primitives/Text/Text.d.ts
|
|
7
|
+
declare const textVariants: (props?: ({
|
|
8
|
+
size?: "caption" | "small" | "large" | "regular" | "mini" | null | undefined;
|
|
9
|
+
weight?: "normal" | "medium" | "semibold" | null | undefined;
|
|
10
|
+
variant?: "default" | "destructive" | "muted" | "success" | "primary" | null | undefined;
|
|
11
|
+
font?: "body" | "heading" | "mono" | null | undefined;
|
|
12
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
13
|
+
truncate?: boolean | null | undefined;
|
|
14
|
+
} & class_variance_authority_types18.ClassProp) | undefined) => string;
|
|
15
|
+
type TextProps = Omit<React.ComponentProps<"p">, "color"> & VariantProps<typeof textVariants> & {
|
|
16
|
+
/** Element/component to render. Defaults to `p`. */
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
/** Body type-scale step (font-size + line-height). Defaults to `regular`. */
|
|
19
|
+
size?: VariantProps<typeof textVariants>["size"];
|
|
20
|
+
/** Font weight. Defaults to `normal`. */
|
|
21
|
+
weight?: VariantProps<typeof textVariants>["weight"];
|
|
22
|
+
/** Foreground colour token. Defaults to `default` (text-primary-txt). */
|
|
23
|
+
variant?: VariantProps<typeof textVariants>["variant"];
|
|
24
|
+
/** Font family. Defaults to `body` (sans). */
|
|
25
|
+
font?: VariantProps<typeof textVariants>["font"];
|
|
26
|
+
/** Horizontal text alignment. */
|
|
27
|
+
align?: VariantProps<typeof textVariants>["align"];
|
|
28
|
+
/** Truncate to a single line with an ellipsis. */
|
|
29
|
+
truncate?: VariantProps<typeof textVariants>["truncate"];
|
|
30
|
+
};
|
|
31
|
+
/** The typography primitive: renders any element via `as` and drives size/weight/colour from the body type scale. */
|
|
32
|
+
declare function Text({
|
|
33
|
+
as,
|
|
13
34
|
className,
|
|
14
|
-
|
|
35
|
+
size,
|
|
36
|
+
weight,
|
|
15
37
|
variant,
|
|
16
|
-
|
|
38
|
+
font,
|
|
39
|
+
align,
|
|
40
|
+
truncate,
|
|
17
41
|
...props
|
|
18
|
-
}:
|
|
19
|
-
/** Corner radius: `default` (12px) or `round` (16px). */
|
|
20
|
-
shape?: VariantProps<typeof textareaVariants>["shape"];
|
|
21
|
-
}): react_jsx_runtime52.JSX.Element;
|
|
42
|
+
}: TextProps): react_jsx_runtime176.JSX.Element;
|
|
22
43
|
//#endregion
|
|
23
|
-
export {
|
|
44
|
+
export { TextProps as n, textVariants as r, Text as t };
|
|
24
45
|
//# sourceMappingURL=index66.d.cts.map
|
package/dist/index66.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index66.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index66.d.cts","names":[],"sources":["../src/primitives/Text/Text.tsx"],"mappings":";;;;;;cASM,oBAgDsB;;;;EAhDtB,IAAA,CAAA,EAAA,MAAA,GA8CJ,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;EAEG,KAAA,CAAA,EAAA,QAAS,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;EAAA,QAAA,CAAA,EAAA,OAAA,GAAA,IAAA,GAAA,SAAA;IAFZ,gCAAA,CAAA,SAE0B,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAAvB,SAAA,GAAY,IAAA,CAAK,KAAA,CAAM,cAAX,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,GACf,YADe,CAAA,OACK,YADL,CAAA,GAAA;;KACf,EAEO,KAAA,CAAM,WAFb;;MAI6B,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,MAAA,CAAA;;QAEE,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,QAAA,CAAA;;SAEC,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,SAAA,CAAA;;MAEH,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,MAAA,CAAA;;OAEC,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,OAAA,CAAA;;UAEG,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,UAAA,CAAA;;AAAR;AAAA,iBAIlB,IAAA,CAAI;EAAA,EAAA;EAAA,SAAA;EAAA,IAAA;EAAA,MAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAUV,SAVU,CAAA,EAUD,oBAAA,CAAA,GAAA,CAAA,OAVC"}
|
package/dist/index66.d.ts
CHANGED
|
@@ -1,24 +1,45 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime69 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
|
-
//#region src/primitives/
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
//#region src/primitives/Text/Text.d.ts
|
|
7
|
+
declare const textVariants: (props?: ({
|
|
8
|
+
size?: "caption" | "small" | "large" | "regular" | "mini" | null | undefined;
|
|
9
|
+
weight?: "normal" | "medium" | "semibold" | null | undefined;
|
|
10
|
+
variant?: "default" | "muted" | "primary" | "destructive" | "success" | null | undefined;
|
|
11
|
+
font?: "body" | "heading" | "mono" | null | undefined;
|
|
12
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
13
|
+
truncate?: boolean | null | undefined;
|
|
14
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
15
|
+
type TextProps = Omit<React.ComponentProps<"p">, "color"> & VariantProps<typeof textVariants> & {
|
|
16
|
+
/** Element/component to render. Defaults to `p`. */
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
/** Body type-scale step (font-size + line-height). Defaults to `regular`. */
|
|
19
|
+
size?: VariantProps<typeof textVariants>["size"];
|
|
20
|
+
/** Font weight. Defaults to `normal`. */
|
|
21
|
+
weight?: VariantProps<typeof textVariants>["weight"];
|
|
22
|
+
/** Foreground colour token. Defaults to `default` (text-primary-txt). */
|
|
23
|
+
variant?: VariantProps<typeof textVariants>["variant"];
|
|
24
|
+
/** Font family. Defaults to `body` (sans). */
|
|
25
|
+
font?: VariantProps<typeof textVariants>["font"];
|
|
26
|
+
/** Horizontal text alignment. */
|
|
27
|
+
align?: VariantProps<typeof textVariants>["align"];
|
|
28
|
+
/** Truncate to a single line with an ellipsis. */
|
|
29
|
+
truncate?: VariantProps<typeof textVariants>["truncate"];
|
|
30
|
+
};
|
|
31
|
+
/** The typography primitive: renders any element via `as` and drives size/weight/colour from the body type scale. */
|
|
32
|
+
declare function Text({
|
|
33
|
+
as,
|
|
13
34
|
className,
|
|
14
|
-
|
|
35
|
+
size,
|
|
36
|
+
weight,
|
|
15
37
|
variant,
|
|
16
|
-
|
|
38
|
+
font,
|
|
39
|
+
align,
|
|
40
|
+
truncate,
|
|
17
41
|
...props
|
|
18
|
-
}:
|
|
19
|
-
/** Corner radius: `default` (12px) or `round` (16px). */
|
|
20
|
-
shape?: VariantProps<typeof textareaVariants>["shape"];
|
|
21
|
-
}): react_jsx_runtime242.JSX.Element;
|
|
42
|
+
}: TextProps): react_jsx_runtime69.JSX.Element;
|
|
22
43
|
//#endregion
|
|
23
|
-
export {
|
|
44
|
+
export { TextProps as n, textVariants as r, Text as t };
|
|
24
45
|
//# sourceMappingURL=index66.d.ts.map
|
package/dist/index66.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index66.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index66.d.ts","names":[],"sources":["../src/primitives/Text/Text.tsx"],"mappings":";;;;;;cASM,oBAgDsB;;;;EAhDtB,IAAA,CAAA,EAAA,MAAA,GA8CJ,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;EAEG,KAAA,CAAA,EAAA,QAAS,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;EAAA,QAAA,CAAA,EAAA,OAAA,GAAA,IAAA,GAAA,SAAA;IAFZ,+BAAA,CAAA,SAE0B,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAAvB,SAAA,GAAY,IAAA,CAAK,KAAA,CAAM,cAAX,CAAA,GAAA,CAAA,EAAA,OAAA,CAAA,GACf,YADe,CAAA,OACK,YADL,CAAA,GAAA;;KACf,EAEO,KAAA,CAAM,WAFb;;MAI6B,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,MAAA,CAAA;;QAEE,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,QAAA,CAAA;;SAEC,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,SAAA,CAAA;;MAEH,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,MAAA,CAAA;;OAEC,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,OAAA,CAAA;;UAEG,CAAA,EAApB,YAAoB,CAAA,OAAA,YAAA,CAAA,CAAA,UAAA,CAAA;;AAAR;AAAA,iBAIlB,IAAA,CAAI;EAAA,EAAA;EAAA,SAAA;EAAA,IAAA;EAAA,MAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAUV,SAVU,CAAA,EAUD,mBAAA,CAAA,GAAA,CAAA,OAVC"}
|
package/dist/index67.d.cts
CHANGED
|
@@ -1,45 +1,24 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime172 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types16 from "class-variance-authority/types";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
4
|
import * as React from "react";
|
|
3
5
|
|
|
4
|
-
//#region src/primitives/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
22
|
-
/**
|
|
23
|
-
* Owns the app's global appearance (colour mode + active product), reflects it to
|
|
24
|
-
* `<html>`, and persists it. Wrap the app tree once; read state with `useTheme()`.
|
|
25
|
-
*/
|
|
26
|
-
declare function ThemeProvider({
|
|
27
|
-
children,
|
|
28
|
-
defaultTheme,
|
|
29
|
-
defaultProduct,
|
|
30
|
-
storageKey
|
|
31
|
-
}: {
|
|
32
|
-
/** App subtree that consumes the theme context. */
|
|
33
|
-
children: React.ReactNode;
|
|
34
|
-
/** Colour mode used when nothing is stored (system preference still wins on first load). */
|
|
35
|
-
defaultTheme?: ThemeMode;
|
|
36
|
-
/** Product used when nothing is stored. */
|
|
37
|
-
defaultProduct?: ThemeProduct;
|
|
38
|
-
/** localStorage key for the persisted `{ theme, product }`. */
|
|
39
|
-
storageKey?: string;
|
|
40
|
-
}): react_jsx_runtime34.JSX.Element;
|
|
41
|
-
/** Read the current theme/product and the setters. Must be used inside a `<ThemeProvider>`. */
|
|
42
|
-
declare function useTheme(): ThemeContextValue;
|
|
6
|
+
//#region src/primitives/Textarea/Textarea.d.ts
|
|
7
|
+
declare const textareaVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "ai" | null | undefined;
|
|
9
|
+
shape?: "default" | "round" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types16.ClassProp) | undefined) => string;
|
|
11
|
+
/** Multi-line text input that auto-grows with its content and supports validation + disabled states. */
|
|
12
|
+
declare function Textarea({
|
|
13
|
+
className,
|
|
14
|
+
/** Chrome style — `default` bordered field or `ai` (AI gradient border). */
|
|
15
|
+
variant,
|
|
16
|
+
shape,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<"textarea"> & VariantProps<typeof textareaVariants> & {
|
|
19
|
+
/** Corner radius: `default` (12px) or `round` (16px). */
|
|
20
|
+
shape?: VariantProps<typeof textareaVariants>["shape"];
|
|
21
|
+
}): react_jsx_runtime172.JSX.Element;
|
|
43
22
|
//#endregion
|
|
44
|
-
export {
|
|
23
|
+
export { textareaVariants as n, Textarea as t };
|
|
45
24
|
//# sourceMappingURL=index67.d.cts.map
|
package/dist/index67.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index67.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index67.d.cts","names":[],"sources":["../src/primitives/Textarea/Textarea.tsx"],"mappings":";;;;;;cAMM;;;IAsBL,gCAAA,CAAA;AA3BmC;iBA8B3B,QAAA,CAAQ;EAAA,SAAA;;SACf;EAAA,KAAA;EAAA,GAAA;CAAA,EAKC,KAAA,CAAM,cALP,CAAA,UAAA,CAAA,GAMA,YANA,CAAA,OAMoB,gBANpB,CAAA,GAAA;;OAGA,CAAA,EAKU,YALV,CAAA,OAK8B,gBAL9B,CAAA,CAAA,OAAA,CAAA;IAMC,oBAAA,CAAA,GAAA,CAAA,OAJM"}
|
package/dist/index67.d.ts
CHANGED
|
@@ -1,45 +1,24 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
3
5
|
|
|
4
|
-
//#region src/primitives/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
22
|
-
/**
|
|
23
|
-
* Owns the app's global appearance (colour mode + active product), reflects it to
|
|
24
|
-
* `<html>`, and persists it. Wrap the app tree once; read state with `useTheme()`.
|
|
25
|
-
*/
|
|
26
|
-
declare function ThemeProvider({
|
|
27
|
-
children,
|
|
28
|
-
defaultTheme,
|
|
29
|
-
defaultProduct,
|
|
30
|
-
storageKey
|
|
31
|
-
}: {
|
|
32
|
-
/** App subtree that consumes the theme context. */
|
|
33
|
-
children: React.ReactNode;
|
|
34
|
-
/** Colour mode used when nothing is stored (system preference still wins on first load). */
|
|
35
|
-
defaultTheme?: ThemeMode;
|
|
36
|
-
/** Product used when nothing is stored. */
|
|
37
|
-
defaultProduct?: ThemeProduct;
|
|
38
|
-
/** localStorage key for the persisted `{ theme, product }`. */
|
|
39
|
-
storageKey?: string;
|
|
40
|
-
}): react_jsx_runtime49.JSX.Element;
|
|
41
|
-
/** Read the current theme/product and the setters. Must be used inside a `<ThemeProvider>`. */
|
|
42
|
-
declare function useTheme(): ThemeContextValue;
|
|
6
|
+
//#region src/primitives/Textarea/Textarea.d.ts
|
|
7
|
+
declare const textareaVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "ai" | null | undefined;
|
|
9
|
+
shape?: "default" | "round" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
11
|
+
/** Multi-line text input that auto-grows with its content and supports validation + disabled states. */
|
|
12
|
+
declare function Textarea({
|
|
13
|
+
className,
|
|
14
|
+
/** Chrome style — `default` bordered field or `ai` (AI gradient border). */
|
|
15
|
+
variant,
|
|
16
|
+
shape,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<"textarea"> & VariantProps<typeof textareaVariants> & {
|
|
19
|
+
/** Corner radius: `default` (12px) or `round` (16px). */
|
|
20
|
+
shape?: VariantProps<typeof textareaVariants>["shape"];
|
|
21
|
+
}): react_jsx_runtime44.JSX.Element;
|
|
43
22
|
//#endregion
|
|
44
|
-
export {
|
|
23
|
+
export { textareaVariants as n, Textarea as t };
|
|
45
24
|
//# sourceMappingURL=index67.d.ts.map
|
package/dist/index67.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index67.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index67.d.ts","names":[],"sources":["../src/primitives/Textarea/Textarea.tsx"],"mappings":";;;;;;cAMM;;;IAsBL,+BAAA,CAAA;AA3BmC;iBA8B3B,QAAA,CAAQ;EAAA,SAAA;;SACf;EAAA,KAAA;EAAA,GAAA;CAAA,EAKC,KAAA,CAAM,cALP,CAAA,UAAA,CAAA,GAMA,YANA,CAAA,OAMoB,gBANpB,CAAA,GAAA;;OAGA,CAAA,EAKU,YALV,CAAA,OAK8B,gBAL9B,CAAA,CAAA,OAAA,CAAA;IAMC,mBAAA,CAAA,GAAA,CAAA,OAJM"}
|
package/dist/index68.d.cts
CHANGED
|
@@ -1,23 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Toggle } from "radix-ui";
|
|
3
|
-
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
4
|
-
import { VariantProps } from "class-variance-authority";
|
|
1
|
+
import * as react_jsx_runtime285 from "react/jsx-runtime";
|
|
5
2
|
import * as React from "react";
|
|
6
3
|
|
|
7
|
-
//#region src/primitives/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
//#region src/primitives/ThemeProvider/ThemeProvider.d.ts
|
|
5
|
+
/** Colour mode: light or dark (toggles the `.dark` class on `<html>`). */
|
|
6
|
+
type ThemeMode = "light" | "dark";
|
|
7
|
+
/** Active brand/product (drives the `.theme-{product}` class on `<html>`). */
|
|
8
|
+
type ThemeProduct = "slingshot" | "sustain" | "bodhi" | "psai";
|
|
9
|
+
type ThemePreferences = {
|
|
10
|
+
theme: ThemeMode;
|
|
11
|
+
product: ThemeProduct;
|
|
12
|
+
};
|
|
13
|
+
type ThemeContextValue = ThemePreferences & {
|
|
14
|
+
/** Set the colour mode explicitly. */
|
|
15
|
+
setTheme: (theme: ThemeMode) => void;
|
|
16
|
+
/** Flip between light and dark. */
|
|
17
|
+
toggleTheme: () => void;
|
|
18
|
+
/** Switch the active product (logo + background + future customisations). */
|
|
19
|
+
setProduct: (product: ThemeProduct) => void;
|
|
20
|
+
};
|
|
21
|
+
declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Owns the app's global appearance (colour mode + active product), reflects it to
|
|
24
|
+
* `<html>`, and persists it. Wrap the app tree once; read state with `useTheme()`.
|
|
25
|
+
*/
|
|
26
|
+
declare function ThemeProvider({
|
|
27
|
+
children,
|
|
28
|
+
defaultTheme,
|
|
29
|
+
defaultProduct,
|
|
30
|
+
storageKey
|
|
31
|
+
}: {
|
|
32
|
+
/** App subtree that consumes the theme context. */
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
/** Colour mode used when nothing is stored (system preference still wins on first load). */
|
|
35
|
+
defaultTheme?: ThemeMode;
|
|
36
|
+
/** Product used when nothing is stored. */
|
|
37
|
+
defaultProduct?: ThemeProduct;
|
|
38
|
+
/** localStorage key for the persisted `{ theme, product }`. */
|
|
39
|
+
storageKey?: string;
|
|
40
|
+
}): react_jsx_runtime285.JSX.Element;
|
|
41
|
+
/** Read the current theme/product and the setters. Must be used inside a `<ThemeProvider>`. */
|
|
42
|
+
declare function useTheme(): ThemeContextValue;
|
|
21
43
|
//#endregion
|
|
22
|
-
export {
|
|
44
|
+
export { useTheme as a, ThemeProvider as i, ThemeMode as n, ThemeProduct as r, ThemeContext as t };
|
|
23
45
|
//# sourceMappingURL=index68.d.cts.map
|
package/dist/index68.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index68.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index68.d.cts","names":[],"sources":["../src/primitives/ThemeProvider/ThemeProvider.tsx"],"mappings":";;;;;KAaY,SAAA;;AAAA,KAEA,YAAA,GAFS,WAAA,GAAA,SAAA,GAAA,OAAA,GAAA,MAAA;AAErB,KAIK,gBAAA,GAJmB;EAInB,KAAA,EAA4B,SAA5B;EAAgB,OAAA,EAAgC,YAAhC;;KAEhB,iBAAA,GAAoB,gBAF4B,GAAA;EAAY;EAE5D,QAAA,EAAA,CAAA,KAAA,EAEe,SAFE,EAAA,GAAA,IAAA;EAAA;aAAG,EAAA,GAAA,GAAA,IAAA;;YAMD,EAAA,CAAA,OAAA,EAAA,YAAA,EAAA,GAAA,IAAA;AAAY,CAAA;AAAA,cAG9B,YAAkE,EAAtD,KAAA,CAAA,OAAsD,CAAtD,iBAAsD,GAAA,IAAA,CAAA;;;;AAAtD;AAAA,iBAoCT,aAAA,CAAa;EAAA,QAAA;EAAA,YAAA;EAAA,cAAA;EAAA;CAAA,EAAA;EAAA;UACpB,EAMU,KAAA,CAAM,SANhB;;cAEA,CAAA,EAMe,SANf;;gBAIgB,CAAA,EAIC,YAJD;;YAIC,CAAA,EAAA,MAAA;IAGlB,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA;AAAA,iBAmCQ,QAAA,CAAA,CAAY,EAAA,iBAAiB"}
|