@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/index48.d.cts
CHANGED
|
@@ -1,127 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/primitives/NotchedCard/NotchedCard.d.ts
|
|
5
|
-
declare const CORNER_KEYS: readonly ["tl", "tr", "br", "bl"];
|
|
6
|
-
type CornerKey = (typeof CORNER_KEYS)[number];
|
|
7
|
-
type CornerBox = {
|
|
8
|
-
w: number;
|
|
9
|
-
h: number;
|
|
10
|
-
};
|
|
11
|
-
type CornerSizes = Record<CornerKey, CornerBox | null>;
|
|
12
|
-
/**
|
|
13
|
-
* Builds the notched outline as an SVG path, walking clockwise from the top
|
|
14
|
-
* edge. Convex turns sweep outward (sweep=1); the inner corner of each notch
|
|
15
|
-
* is a concave fillet (sweep=0). Exported for testing — not part of the
|
|
16
|
-
* typical component API.
|
|
17
|
-
*/
|
|
18
|
-
declare function buildNotchedCardPath({
|
|
19
|
-
w,
|
|
20
|
-
h,
|
|
21
|
-
radius,
|
|
22
|
-
notchRadius,
|
|
23
|
-
notches
|
|
24
|
-
}: {
|
|
25
|
-
w: number;
|
|
26
|
-
h: number;
|
|
27
|
-
radius: number;
|
|
28
|
-
notchRadius: number;
|
|
29
|
-
notches: CornerSizes;
|
|
30
|
-
}): string;
|
|
31
|
-
declare const notchedCardVariants: {
|
|
32
|
-
readonly default: {
|
|
33
|
-
readonly background: "bg-glass-none-bg";
|
|
34
|
-
readonly shadow: "drop-shadow-sm";
|
|
35
|
-
readonly text: "text-primary-txt";
|
|
36
|
-
readonly borderedByDefault: true;
|
|
37
|
-
};
|
|
38
|
-
readonly muted: {
|
|
39
|
-
readonly background: "bg-muted-bg";
|
|
40
|
-
readonly shadow: "";
|
|
41
|
-
readonly text: "text-primary-txt";
|
|
42
|
-
readonly borderedByDefault: true;
|
|
43
|
-
};
|
|
44
|
-
readonly glass: {
|
|
45
|
-
readonly background: "bg-glass-40-bg backdrop-blur-glass";
|
|
46
|
-
readonly shadow: "";
|
|
47
|
-
readonly text: "text-primary-txt";
|
|
48
|
-
readonly borderedByDefault: false;
|
|
49
|
-
};
|
|
50
|
-
readonly brand: {
|
|
51
|
-
readonly background: "bg-[image:linear-gradient(to_right,var(--theme-brand-700),var(--theme-brand-500-primary))]";
|
|
52
|
-
readonly shadow: "";
|
|
53
|
-
readonly text: "text-white";
|
|
54
|
-
readonly borderedByDefault: false;
|
|
55
|
-
};
|
|
56
|
-
readonly inverted: {
|
|
57
|
-
readonly background: "bg-primary-invert-bg";
|
|
58
|
-
readonly shadow: "";
|
|
59
|
-
readonly text: "text-primary-invert-txt";
|
|
60
|
-
readonly borderedByDefault: false;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
type NotchedCardVariant = keyof typeof notchedCardVariants;
|
|
64
|
-
type NotchedCardProps = React.ComponentProps<"div"> & {
|
|
65
|
-
/** Content pinned to the top-left corner; its footprint is notched out of the background. */
|
|
66
|
-
topLeftComponent?: React.ReactNode;
|
|
67
|
-
/** Content pinned to the top-right corner; its footprint is notched out of the background. */
|
|
68
|
-
topRightComponent?: React.ReactNode;
|
|
69
|
-
/** Content pinned to the bottom-left corner; its footprint is notched out of the background. */
|
|
70
|
-
bottomLeftComponent?: React.ReactNode;
|
|
71
|
-
/** Content pinned to the bottom-right corner; its footprint is notched out of the background. */
|
|
72
|
-
bottomRightComponent?: React.ReactNode;
|
|
73
|
-
/** Background fill of the card surface. Default `default` (solid surface). */
|
|
74
|
-
variant?: NotchedCardVariant;
|
|
75
|
-
/** Image URL rendered as the card's background (object-fit: cover), slightly transparent. */
|
|
76
|
-
backgroundImage?: string;
|
|
77
|
-
/** Opacity of the background image. Default `0.8`. */
|
|
78
|
-
backgroundImageOpacity?: number;
|
|
79
|
-
/** Outer corner radius in px. Default `16`. */
|
|
80
|
-
radius?: number;
|
|
81
|
-
/** Concave fillet radius at each notch's inner corner in px. Default `12`. */
|
|
82
|
-
notchRadius?: number;
|
|
83
|
-
/** Gutter in px between corner content and the background edge. Default `12`. */
|
|
84
|
-
notchGap?: number;
|
|
85
|
-
/** Content padding in px. Default `24`. */
|
|
86
|
-
padding?: number;
|
|
87
|
-
/** Keep flowing content out of the notched corners via invisible float
|
|
88
|
-
spacers. Needs flow (block/inline) content — set `false` if
|
|
89
|
-
`contentClassName` turns the wrapper into a flex/grid container.
|
|
90
|
-
Default `true`. */
|
|
91
|
-
avoidNotches?: boolean;
|
|
92
|
-
/** Draw the outline stroke. Defaults per variant (`default`/`muted` on, others off). */
|
|
93
|
-
bordered?: boolean;
|
|
94
|
-
/** Extra classes for the clipped background layer — set the fill here (e.g.
|
|
95
|
-
`bg-…`, gradients). The layer sits behind the content, so plain `hover:`
|
|
96
|
-
variants never fire on it; the root carries the `group` marker — use
|
|
97
|
-
`group-hover:bg-…` for hover fills (plain `hover:` works on `className`,
|
|
98
|
-
which styles the root itself). */
|
|
99
|
-
backgroundClassName?: string;
|
|
100
|
-
/** Extra classes for the content wrapper. */
|
|
101
|
-
contentClassName?: string;
|
|
102
|
-
};
|
|
103
|
-
/** Card with corner slots that notch the background around their content. */
|
|
104
|
-
declare function NotchedCard({
|
|
105
|
-
children,
|
|
106
|
-
topLeftComponent,
|
|
107
|
-
topRightComponent,
|
|
108
|
-
bottomLeftComponent,
|
|
109
|
-
bottomRightComponent,
|
|
110
|
-
variant,
|
|
111
|
-
backgroundImage,
|
|
112
|
-
backgroundImageOpacity,
|
|
113
|
-
radius,
|
|
114
|
-
notchRadius,
|
|
115
|
-
notchGap,
|
|
116
|
-
padding,
|
|
117
|
-
avoidNotches,
|
|
118
|
-
bordered,
|
|
119
|
-
className,
|
|
120
|
-
backgroundClassName,
|
|
121
|
-
contentClassName,
|
|
122
|
-
style,
|
|
123
|
-
...props
|
|
124
|
-
}: NotchedCardProps): react_jsx_runtime313.JSX.Element;
|
|
125
|
-
//#endregion
|
|
126
|
-
export { notchedCardVariants as a, buildNotchedCardPath as i, NotchedCardProps as n, NotchedCardVariant as r, NotchedCard as t };
|
|
127
|
-
//# sourceMappingURL=index48.d.cts.map
|
|
1
|
+
export {};
|
package/dist/index48.d.ts
CHANGED
|
@@ -1,127 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as react_jsx_runtime253 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/primitives/NotchedCard/NotchedCard.d.ts
|
|
5
|
-
declare const CORNER_KEYS: readonly ["tl", "tr", "br", "bl"];
|
|
6
|
-
type CornerKey = (typeof CORNER_KEYS)[number];
|
|
7
|
-
type CornerBox = {
|
|
8
|
-
w: number;
|
|
9
|
-
h: number;
|
|
10
|
-
};
|
|
11
|
-
type CornerSizes = Record<CornerKey, CornerBox | null>;
|
|
12
|
-
/**
|
|
13
|
-
* Builds the notched outline as an SVG path, walking clockwise from the top
|
|
14
|
-
* edge. Convex turns sweep outward (sweep=1); the inner corner of each notch
|
|
15
|
-
* is a concave fillet (sweep=0). Exported for testing — not part of the
|
|
16
|
-
* typical component API.
|
|
17
|
-
*/
|
|
18
|
-
declare function buildNotchedCardPath({
|
|
19
|
-
w,
|
|
20
|
-
h,
|
|
21
|
-
radius,
|
|
22
|
-
notchRadius,
|
|
23
|
-
notches
|
|
24
|
-
}: {
|
|
25
|
-
w: number;
|
|
26
|
-
h: number;
|
|
27
|
-
radius: number;
|
|
28
|
-
notchRadius: number;
|
|
29
|
-
notches: CornerSizes;
|
|
30
|
-
}): string;
|
|
31
|
-
declare const notchedCardVariants: {
|
|
32
|
-
readonly default: {
|
|
33
|
-
readonly background: "bg-glass-none-bg";
|
|
34
|
-
readonly shadow: "drop-shadow-sm";
|
|
35
|
-
readonly text: "text-primary-txt";
|
|
36
|
-
readonly borderedByDefault: true;
|
|
37
|
-
};
|
|
38
|
-
readonly muted: {
|
|
39
|
-
readonly background: "bg-muted-bg";
|
|
40
|
-
readonly shadow: "";
|
|
41
|
-
readonly text: "text-primary-txt";
|
|
42
|
-
readonly borderedByDefault: true;
|
|
43
|
-
};
|
|
44
|
-
readonly glass: {
|
|
45
|
-
readonly background: "bg-glass-40-bg backdrop-blur-glass";
|
|
46
|
-
readonly shadow: "";
|
|
47
|
-
readonly text: "text-primary-txt";
|
|
48
|
-
readonly borderedByDefault: false;
|
|
49
|
-
};
|
|
50
|
-
readonly brand: {
|
|
51
|
-
readonly background: "bg-[image:linear-gradient(to_right,var(--theme-brand-700),var(--theme-brand-500-primary))]";
|
|
52
|
-
readonly shadow: "";
|
|
53
|
-
readonly text: "text-white";
|
|
54
|
-
readonly borderedByDefault: false;
|
|
55
|
-
};
|
|
56
|
-
readonly inverted: {
|
|
57
|
-
readonly background: "bg-primary-invert-bg";
|
|
58
|
-
readonly shadow: "";
|
|
59
|
-
readonly text: "text-primary-invert-txt";
|
|
60
|
-
readonly borderedByDefault: false;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
type NotchedCardVariant = keyof typeof notchedCardVariants;
|
|
64
|
-
type NotchedCardProps = React.ComponentProps<"div"> & {
|
|
65
|
-
/** Content pinned to the top-left corner; its footprint is notched out of the background. */
|
|
66
|
-
topLeftComponent?: React.ReactNode;
|
|
67
|
-
/** Content pinned to the top-right corner; its footprint is notched out of the background. */
|
|
68
|
-
topRightComponent?: React.ReactNode;
|
|
69
|
-
/** Content pinned to the bottom-left corner; its footprint is notched out of the background. */
|
|
70
|
-
bottomLeftComponent?: React.ReactNode;
|
|
71
|
-
/** Content pinned to the bottom-right corner; its footprint is notched out of the background. */
|
|
72
|
-
bottomRightComponent?: React.ReactNode;
|
|
73
|
-
/** Background fill of the card surface. Default `default` (solid surface). */
|
|
74
|
-
variant?: NotchedCardVariant;
|
|
75
|
-
/** Image URL rendered as the card's background (object-fit: cover), slightly transparent. */
|
|
76
|
-
backgroundImage?: string;
|
|
77
|
-
/** Opacity of the background image. Default `0.8`. */
|
|
78
|
-
backgroundImageOpacity?: number;
|
|
79
|
-
/** Outer corner radius in px. Default `16`. */
|
|
80
|
-
radius?: number;
|
|
81
|
-
/** Concave fillet radius at each notch's inner corner in px. Default `12`. */
|
|
82
|
-
notchRadius?: number;
|
|
83
|
-
/** Gutter in px between corner content and the background edge. Default `12`. */
|
|
84
|
-
notchGap?: number;
|
|
85
|
-
/** Content padding in px. Default `24`. */
|
|
86
|
-
padding?: number;
|
|
87
|
-
/** Keep flowing content out of the notched corners via invisible float
|
|
88
|
-
spacers. Needs flow (block/inline) content — set `false` if
|
|
89
|
-
`contentClassName` turns the wrapper into a flex/grid container.
|
|
90
|
-
Default `true`. */
|
|
91
|
-
avoidNotches?: boolean;
|
|
92
|
-
/** Draw the outline stroke. Defaults per variant (`default`/`muted` on, others off). */
|
|
93
|
-
bordered?: boolean;
|
|
94
|
-
/** Extra classes for the clipped background layer — set the fill here (e.g.
|
|
95
|
-
`bg-…`, gradients). The layer sits behind the content, so plain `hover:`
|
|
96
|
-
variants never fire on it; the root carries the `group` marker — use
|
|
97
|
-
`group-hover:bg-…` for hover fills (plain `hover:` works on `className`,
|
|
98
|
-
which styles the root itself). */
|
|
99
|
-
backgroundClassName?: string;
|
|
100
|
-
/** Extra classes for the content wrapper. */
|
|
101
|
-
contentClassName?: string;
|
|
102
|
-
};
|
|
103
|
-
/** Card with corner slots that notch the background around their content. */
|
|
104
|
-
declare function NotchedCard({
|
|
105
|
-
children,
|
|
106
|
-
topLeftComponent,
|
|
107
|
-
topRightComponent,
|
|
108
|
-
bottomLeftComponent,
|
|
109
|
-
bottomRightComponent,
|
|
110
|
-
variant,
|
|
111
|
-
backgroundImage,
|
|
112
|
-
backgroundImageOpacity,
|
|
113
|
-
radius,
|
|
114
|
-
notchRadius,
|
|
115
|
-
notchGap,
|
|
116
|
-
padding,
|
|
117
|
-
avoidNotches,
|
|
118
|
-
bordered,
|
|
119
|
-
className,
|
|
120
|
-
backgroundClassName,
|
|
121
|
-
contentClassName,
|
|
122
|
-
style,
|
|
123
|
-
...props
|
|
124
|
-
}: NotchedCardProps): react_jsx_runtime253.JSX.Element;
|
|
125
|
-
//#endregion
|
|
126
|
-
export { notchedCardVariants as a, buildNotchedCardPath as i, NotchedCardProps as n, NotchedCardVariant as r, NotchedCard as t };
|
|
127
|
-
//# sourceMappingURL=index48.d.ts.map
|
|
1
|
+
export {};
|
package/dist/index49.d.cts
CHANGED
|
@@ -1,48 +1,127 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
|
+
import * as react_jsx_runtime300 from "react/jsx-runtime";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
//#region src/primitives/NotchedCard/NotchedCard.d.ts
|
|
5
|
+
declare const CORNER_KEYS: readonly ["tl", "tr", "br", "bl"];
|
|
6
|
+
type CornerKey = (typeof CORNER_KEYS)[number];
|
|
7
|
+
type CornerBox = {
|
|
8
|
+
w: number;
|
|
9
|
+
h: number;
|
|
10
|
+
};
|
|
11
|
+
type CornerSizes = Record<CornerKey, CornerBox | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Builds the notched outline as an SVG path, walking clockwise from the top
|
|
14
|
+
* edge. Convex turns sweep outward (sweep=1); the inner corner of each notch
|
|
15
|
+
* is a concave fillet (sweep=0). Exported for testing — not part of the
|
|
16
|
+
* typical component API.
|
|
17
|
+
*/
|
|
18
|
+
declare function buildNotchedCardPath({
|
|
19
|
+
w,
|
|
20
|
+
h,
|
|
21
|
+
radius,
|
|
22
|
+
notchRadius,
|
|
23
|
+
notches
|
|
24
|
+
}: {
|
|
25
|
+
w: number;
|
|
26
|
+
h: number;
|
|
27
|
+
radius: number;
|
|
28
|
+
notchRadius: number;
|
|
29
|
+
notches: CornerSizes;
|
|
30
|
+
}): string;
|
|
31
|
+
declare const notchedCardVariants: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly background: "bg-glass-none-bg";
|
|
34
|
+
readonly shadow: "drop-shadow-sm";
|
|
35
|
+
readonly text: "text-primary-txt";
|
|
36
|
+
readonly borderedByDefault: true;
|
|
37
|
+
};
|
|
38
|
+
readonly muted: {
|
|
39
|
+
readonly background: "bg-muted-bg";
|
|
40
|
+
readonly shadow: "";
|
|
41
|
+
readonly text: "text-primary-txt";
|
|
42
|
+
readonly borderedByDefault: true;
|
|
43
|
+
};
|
|
44
|
+
readonly glass: {
|
|
45
|
+
readonly background: "bg-glass-40-bg backdrop-blur-glass";
|
|
46
|
+
readonly shadow: "";
|
|
47
|
+
readonly text: "text-primary-txt";
|
|
48
|
+
readonly borderedByDefault: false;
|
|
49
|
+
};
|
|
50
|
+
readonly brand: {
|
|
51
|
+
readonly background: "bg-[image:linear-gradient(to_right,var(--theme-brand-700),var(--theme-brand-500-primary))]";
|
|
52
|
+
readonly shadow: "";
|
|
53
|
+
readonly text: "text-white";
|
|
54
|
+
readonly borderedByDefault: false;
|
|
55
|
+
};
|
|
56
|
+
readonly inverted: {
|
|
57
|
+
readonly background: "bg-primary-invert-bg";
|
|
58
|
+
readonly shadow: "";
|
|
59
|
+
readonly text: "text-primary-invert-txt";
|
|
60
|
+
readonly borderedByDefault: false;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type NotchedCardVariant = keyof typeof notchedCardVariants;
|
|
64
|
+
type NotchedCardProps = React.ComponentProps<"div"> & {
|
|
65
|
+
/** Content pinned to the top-left corner; its footprint is notched out of the background. */
|
|
66
|
+
topLeftComponent?: React.ReactNode;
|
|
67
|
+
/** Content pinned to the top-right corner; its footprint is notched out of the background. */
|
|
68
|
+
topRightComponent?: React.ReactNode;
|
|
69
|
+
/** Content pinned to the bottom-left corner; its footprint is notched out of the background. */
|
|
70
|
+
bottomLeftComponent?: React.ReactNode;
|
|
71
|
+
/** Content pinned to the bottom-right corner; its footprint is notched out of the background. */
|
|
72
|
+
bottomRightComponent?: React.ReactNode;
|
|
73
|
+
/** Background fill of the card surface. Default `default` (solid surface). */
|
|
74
|
+
variant?: NotchedCardVariant;
|
|
75
|
+
/** Image URL rendered as the card's background (object-fit: cover), slightly transparent. */
|
|
76
|
+
backgroundImage?: string;
|
|
77
|
+
/** Opacity of the background image. Default `0.8`. */
|
|
78
|
+
backgroundImageOpacity?: number;
|
|
79
|
+
/** Outer corner radius in px. Default `16`. */
|
|
80
|
+
radius?: number;
|
|
81
|
+
/** Concave fillet radius at each notch's inner corner in px. Default `12`. */
|
|
82
|
+
notchRadius?: number;
|
|
83
|
+
/** Gutter in px between corner content and the background edge. Default `12`. */
|
|
84
|
+
notchGap?: number;
|
|
85
|
+
/** Content padding in px. Default `24`. */
|
|
86
|
+
padding?: number;
|
|
87
|
+
/** Keep flowing content out of the notched corners via invisible float
|
|
88
|
+
spacers. Needs flow (block/inline) content — set `false` if
|
|
89
|
+
`contentClassName` turns the wrapper into a flex/grid container.
|
|
90
|
+
Default `true`. */
|
|
91
|
+
avoidNotches?: boolean;
|
|
92
|
+
/** Draw the outline stroke. Defaults per variant (`default`/`muted` on, others off). */
|
|
93
|
+
bordered?: boolean;
|
|
94
|
+
/** Extra classes for the clipped background layer — set the fill here (e.g.
|
|
95
|
+
`bg-…`, gradients). The layer sits behind the content, so plain `hover:`
|
|
96
|
+
variants never fire on it; the root carries the `group` marker — use
|
|
97
|
+
`group-hover:bg-…` for hover fills (plain `hover:` works on `className`,
|
|
98
|
+
which styles the root itself). */
|
|
99
|
+
backgroundClassName?: string;
|
|
100
|
+
/** Extra classes for the content wrapper. */
|
|
101
|
+
contentClassName?: string;
|
|
102
|
+
};
|
|
103
|
+
/** Card with corner slots that notch the background around their content. */
|
|
104
|
+
declare function NotchedCard({
|
|
105
|
+
children,
|
|
106
|
+
topLeftComponent,
|
|
107
|
+
topRightComponent,
|
|
108
|
+
bottomLeftComponent,
|
|
109
|
+
bottomRightComponent,
|
|
110
|
+
variant,
|
|
111
|
+
backgroundImage,
|
|
112
|
+
backgroundImageOpacity,
|
|
113
|
+
radius,
|
|
114
|
+
notchRadius,
|
|
115
|
+
notchGap,
|
|
116
|
+
padding,
|
|
117
|
+
avoidNotches,
|
|
118
|
+
bordered,
|
|
8
119
|
className,
|
|
120
|
+
backgroundClassName,
|
|
121
|
+
contentClassName,
|
|
122
|
+
style,
|
|
9
123
|
...props
|
|
10
|
-
}:
|
|
11
|
-
/** Horizontal list container holding the individual pagination items. */
|
|
12
|
-
declare function PaginationContent({
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime0.JSX.Element;
|
|
16
|
-
/** Single list item wrapper for a pagination link, ellipsis, or control. */
|
|
17
|
-
declare function PaginationItem({
|
|
18
|
-
...props
|
|
19
|
-
}: React.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
20
|
-
type PaginationLinkProps = {
|
|
21
|
-
/** Marks this link as the current page; renders the outline (selected) style and sets `aria-current`. */
|
|
22
|
-
isActive?: boolean;
|
|
23
|
-
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
24
|
-
/** Clickable page link styled with the Button variants; pass `isActive` for the current page. */
|
|
25
|
-
declare function PaginationLink({
|
|
26
|
-
className,
|
|
27
|
-
isActive,
|
|
28
|
-
size,
|
|
29
|
-
...props
|
|
30
|
-
}: PaginationLinkProps): react_jsx_runtime0.JSX.Element;
|
|
31
|
-
/** "Previous" control: a pagination link with a leading chevron and accessible label. */
|
|
32
|
-
declare function PaginationPrevious({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime0.JSX.Element;
|
|
36
|
-
/** "Next" control: a pagination link with a trailing chevron and accessible label. */
|
|
37
|
-
declare function PaginationNext({
|
|
38
|
-
className,
|
|
39
|
-
...props
|
|
40
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime0.JSX.Element;
|
|
41
|
-
/** Non-interactive ellipsis indicating skipped page ranges. */
|
|
42
|
-
declare function PaginationEllipsis({
|
|
43
|
-
className,
|
|
44
|
-
...props
|
|
45
|
-
}: React.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
|
|
124
|
+
}: NotchedCardProps): react_jsx_runtime300.JSX.Element;
|
|
46
125
|
//#endregion
|
|
47
|
-
export {
|
|
126
|
+
export { notchedCardVariants as a, buildNotchedCardPath as i, NotchedCardProps as n, NotchedCardVariant as r, NotchedCard as t };
|
|
48
127
|
//# sourceMappingURL=index49.d.cts.map
|
package/dist/index49.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index49.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index49.d.cts","names":[],"sources":["../src/primitives/NotchedCard/NotchedCard.tsx"],"mappings":";;;;cAWM;KACD,SAAA,WAAoB;KAEpB,SAAA;EAHC,CAAA,EAAA,MAAA;EACD,CAAA,EAAA,MAAA;AAA+B,CAAA;AAEtB,KACT,WAAA,GAAc,MAAH,CAAU,SAAV,EAAqB,SAArB,GAAA,IAAA,CAAA;;;;;AAAS;AAAA;iBAahB,oBAAA,CAAoB;EAAA,CAAA;EAAA,CAAA;EAAA,MAAA;EAAA,WAAA;EAAA;CAAA,EAAA;KAC3B,MAAA;KACA,MAAA;QACA,EAAA,MAAA;aACA,EAAA,MAAA;SACA,EAMS,WANT;UAMS;AAAW,cAuJhB,mBAvJgB,EAAA;EAuJhB,SAAA,OAAA,EAAA;IAoCD,SAAA,UAAkB,EAAA,kBAAgB;IAElC,SAAA,MAAgB,EAAA,gBAAA;IAAA,SAAA,IAAA,EAAA,kBAAA;IAAG,SAAM,iBAAA,EAAA,IAAA;;WAIF,KAAA,EAAA;IAEJ,SAAM,UAAA,EAAA,aAAA;IAEL,SAAM,MAAA,EAAA,EAAA;IAEnB,SAAA,IAAA,EAAA,kBAAA;IAAkB,SAAA,iBAAA,EAAA,IAAA;EA+BrB,CAAA;EAAW,SAAA,KAAA,EAAA;IAClB,SAAA,UAAA,EAAA,oCAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,kBAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;WAEA,KAAA,EAAA;IACA,SAAA,UAAA,EAAA,4FAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,YAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;WAEA,QAAA,EAAA;IACA,SAAA,UAAA,EAAA,sBAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,yBAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;;KA3DG,kBAAA,GA+DF,MAAA,OA/DoC,mBA+DpC;KA7DE,gBAAA,GAAmB,KAAA,CAAM,cA6DX,CAAA,KAAA,CAAA,GAAA;EAAA;qBA3DE,KAAA,CAAM;;sBAEL,KAAA,CAAM;;wBAEJ,KAAA,CAAM;;yBAEL,KAAA,CAAM;;YAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BH,WAAA;;;;;;;;;;;;;;;;;;;;GAoBN,mBAAgB,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index49.d.ts
CHANGED
|
@@ -1,48 +1,127 @@
|
|
|
1
|
-
import { t as Button } from "./index8.js";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime288 from "react/jsx-runtime";
|
|
4
3
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
//#region src/primitives/NotchedCard/NotchedCard.d.ts
|
|
5
|
+
declare const CORNER_KEYS: readonly ["tl", "tr", "br", "bl"];
|
|
6
|
+
type CornerKey = (typeof CORNER_KEYS)[number];
|
|
7
|
+
type CornerBox = {
|
|
8
|
+
w: number;
|
|
9
|
+
h: number;
|
|
10
|
+
};
|
|
11
|
+
type CornerSizes = Record<CornerKey, CornerBox | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Builds the notched outline as an SVG path, walking clockwise from the top
|
|
14
|
+
* edge. Convex turns sweep outward (sweep=1); the inner corner of each notch
|
|
15
|
+
* is a concave fillet (sweep=0). Exported for testing — not part of the
|
|
16
|
+
* typical component API.
|
|
17
|
+
*/
|
|
18
|
+
declare function buildNotchedCardPath({
|
|
19
|
+
w,
|
|
20
|
+
h,
|
|
21
|
+
radius,
|
|
22
|
+
notchRadius,
|
|
23
|
+
notches
|
|
24
|
+
}: {
|
|
25
|
+
w: number;
|
|
26
|
+
h: number;
|
|
27
|
+
radius: number;
|
|
28
|
+
notchRadius: number;
|
|
29
|
+
notches: CornerSizes;
|
|
30
|
+
}): string;
|
|
31
|
+
declare const notchedCardVariants: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly background: "bg-glass-none-bg";
|
|
34
|
+
readonly shadow: "drop-shadow-sm";
|
|
35
|
+
readonly text: "text-primary-txt";
|
|
36
|
+
readonly borderedByDefault: true;
|
|
37
|
+
};
|
|
38
|
+
readonly muted: {
|
|
39
|
+
readonly background: "bg-muted-bg";
|
|
40
|
+
readonly shadow: "";
|
|
41
|
+
readonly text: "text-primary-txt";
|
|
42
|
+
readonly borderedByDefault: true;
|
|
43
|
+
};
|
|
44
|
+
readonly glass: {
|
|
45
|
+
readonly background: "bg-glass-40-bg backdrop-blur-glass";
|
|
46
|
+
readonly shadow: "";
|
|
47
|
+
readonly text: "text-primary-txt";
|
|
48
|
+
readonly borderedByDefault: false;
|
|
49
|
+
};
|
|
50
|
+
readonly brand: {
|
|
51
|
+
readonly background: "bg-[image:linear-gradient(to_right,var(--theme-brand-700),var(--theme-brand-500-primary))]";
|
|
52
|
+
readonly shadow: "";
|
|
53
|
+
readonly text: "text-white";
|
|
54
|
+
readonly borderedByDefault: false;
|
|
55
|
+
};
|
|
56
|
+
readonly inverted: {
|
|
57
|
+
readonly background: "bg-primary-invert-bg";
|
|
58
|
+
readonly shadow: "";
|
|
59
|
+
readonly text: "text-primary-invert-txt";
|
|
60
|
+
readonly borderedByDefault: false;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type NotchedCardVariant = keyof typeof notchedCardVariants;
|
|
64
|
+
type NotchedCardProps = React.ComponentProps<"div"> & {
|
|
65
|
+
/** Content pinned to the top-left corner; its footprint is notched out of the background. */
|
|
66
|
+
topLeftComponent?: React.ReactNode;
|
|
67
|
+
/** Content pinned to the top-right corner; its footprint is notched out of the background. */
|
|
68
|
+
topRightComponent?: React.ReactNode;
|
|
69
|
+
/** Content pinned to the bottom-left corner; its footprint is notched out of the background. */
|
|
70
|
+
bottomLeftComponent?: React.ReactNode;
|
|
71
|
+
/** Content pinned to the bottom-right corner; its footprint is notched out of the background. */
|
|
72
|
+
bottomRightComponent?: React.ReactNode;
|
|
73
|
+
/** Background fill of the card surface. Default `default` (solid surface). */
|
|
74
|
+
variant?: NotchedCardVariant;
|
|
75
|
+
/** Image URL rendered as the card's background (object-fit: cover), slightly transparent. */
|
|
76
|
+
backgroundImage?: string;
|
|
77
|
+
/** Opacity of the background image. Default `0.8`. */
|
|
78
|
+
backgroundImageOpacity?: number;
|
|
79
|
+
/** Outer corner radius in px. Default `16`. */
|
|
80
|
+
radius?: number;
|
|
81
|
+
/** Concave fillet radius at each notch's inner corner in px. Default `12`. */
|
|
82
|
+
notchRadius?: number;
|
|
83
|
+
/** Gutter in px between corner content and the background edge. Default `12`. */
|
|
84
|
+
notchGap?: number;
|
|
85
|
+
/** Content padding in px. Default `24`. */
|
|
86
|
+
padding?: number;
|
|
87
|
+
/** Keep flowing content out of the notched corners via invisible float
|
|
88
|
+
spacers. Needs flow (block/inline) content — set `false` if
|
|
89
|
+
`contentClassName` turns the wrapper into a flex/grid container.
|
|
90
|
+
Default `true`. */
|
|
91
|
+
avoidNotches?: boolean;
|
|
92
|
+
/** Draw the outline stroke. Defaults per variant (`default`/`muted` on, others off). */
|
|
93
|
+
bordered?: boolean;
|
|
94
|
+
/** Extra classes for the clipped background layer — set the fill here (e.g.
|
|
95
|
+
`bg-…`, gradients). The layer sits behind the content, so plain `hover:`
|
|
96
|
+
variants never fire on it; the root carries the `group` marker — use
|
|
97
|
+
`group-hover:bg-…` for hover fills (plain `hover:` works on `className`,
|
|
98
|
+
which styles the root itself). */
|
|
99
|
+
backgroundClassName?: string;
|
|
100
|
+
/** Extra classes for the content wrapper. */
|
|
101
|
+
contentClassName?: string;
|
|
102
|
+
};
|
|
103
|
+
/** Card with corner slots that notch the background around their content. */
|
|
104
|
+
declare function NotchedCard({
|
|
105
|
+
children,
|
|
106
|
+
topLeftComponent,
|
|
107
|
+
topRightComponent,
|
|
108
|
+
bottomLeftComponent,
|
|
109
|
+
bottomRightComponent,
|
|
110
|
+
variant,
|
|
111
|
+
backgroundImage,
|
|
112
|
+
backgroundImageOpacity,
|
|
113
|
+
radius,
|
|
114
|
+
notchRadius,
|
|
115
|
+
notchGap,
|
|
116
|
+
padding,
|
|
117
|
+
avoidNotches,
|
|
118
|
+
bordered,
|
|
8
119
|
className,
|
|
120
|
+
backgroundClassName,
|
|
121
|
+
contentClassName,
|
|
122
|
+
style,
|
|
9
123
|
...props
|
|
10
|
-
}:
|
|
11
|
-
/** Horizontal list container holding the individual pagination items. */
|
|
12
|
-
declare function PaginationContent({
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime322.JSX.Element;
|
|
16
|
-
/** Single list item wrapper for a pagination link, ellipsis, or control. */
|
|
17
|
-
declare function PaginationItem({
|
|
18
|
-
...props
|
|
19
|
-
}: React.ComponentProps<"li">): react_jsx_runtime322.JSX.Element;
|
|
20
|
-
type PaginationLinkProps = {
|
|
21
|
-
/** Marks this link as the current page; renders the outline (selected) style and sets `aria-current`. */
|
|
22
|
-
isActive?: boolean;
|
|
23
|
-
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
24
|
-
/** Clickable page link styled with the Button variants; pass `isActive` for the current page. */
|
|
25
|
-
declare function PaginationLink({
|
|
26
|
-
className,
|
|
27
|
-
isActive,
|
|
28
|
-
size,
|
|
29
|
-
...props
|
|
30
|
-
}: PaginationLinkProps): react_jsx_runtime322.JSX.Element;
|
|
31
|
-
/** "Previous" control: a pagination link with a leading chevron and accessible label. */
|
|
32
|
-
declare function PaginationPrevious({
|
|
33
|
-
className,
|
|
34
|
-
...props
|
|
35
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime322.JSX.Element;
|
|
36
|
-
/** "Next" control: a pagination link with a trailing chevron and accessible label. */
|
|
37
|
-
declare function PaginationNext({
|
|
38
|
-
className,
|
|
39
|
-
...props
|
|
40
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime322.JSX.Element;
|
|
41
|
-
/** Non-interactive ellipsis indicating skipped page ranges. */
|
|
42
|
-
declare function PaginationEllipsis({
|
|
43
|
-
className,
|
|
44
|
-
...props
|
|
45
|
-
}: React.ComponentProps<"span">): react_jsx_runtime322.JSX.Element;
|
|
124
|
+
}: NotchedCardProps): react_jsx_runtime288.JSX.Element;
|
|
46
125
|
//#endregion
|
|
47
|
-
export {
|
|
126
|
+
export { notchedCardVariants as a, buildNotchedCardPath as i, NotchedCardProps as n, NotchedCardVariant as r, NotchedCard as t };
|
|
48
127
|
//# sourceMappingURL=index49.d.ts.map
|
package/dist/index49.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index49.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index49.d.ts","names":[],"sources":["../src/primitives/NotchedCard/NotchedCard.tsx"],"mappings":";;;;cAWM;KACD,SAAA,WAAoB;KAEpB,SAAA;EAHC,CAAA,EAAA,MAAA;EACD,CAAA,EAAA,MAAA;AAA+B,CAAA;AAEtB,KACT,WAAA,GAAc,MAAH,CAAU,SAAV,EAAqB,SAArB,GAAA,IAAA,CAAA;;;;;AAAS;AAAA;iBAahB,oBAAA,CAAoB;EAAA,CAAA;EAAA,CAAA;EAAA,MAAA;EAAA,WAAA;EAAA;CAAA,EAAA;KAC3B,MAAA;KACA,MAAA;QACA,EAAA,MAAA;aACA,EAAA,MAAA;SACA,EAMS,WANT;UAMS;AAAW,cAuJhB,mBAvJgB,EAAA;EAuJhB,SAAA,OAAA,EAAA;IAoCD,SAAA,UAAkB,EAAA,kBAAgB;IAElC,SAAA,MAAgB,EAAA,gBAAA;IAAA,SAAA,IAAA,EAAA,kBAAA;IAAG,SAAM,iBAAA,EAAA,IAAA;;WAIF,KAAA,EAAA;IAEJ,SAAM,UAAA,EAAA,aAAA;IAEL,SAAM,MAAA,EAAA,EAAA;IAEnB,SAAA,IAAA,EAAA,kBAAA;IAAkB,SAAA,iBAAA,EAAA,IAAA;EA+BrB,CAAA;EAAW,SAAA,KAAA,EAAA;IAClB,SAAA,UAAA,EAAA,oCAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,kBAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;WAEA,KAAA,EAAA;IACA,SAAA,UAAA,EAAA,4FAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,YAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;WAEA,QAAA,EAAA;IACA,SAAA,UAAA,EAAA,sBAAA;IACA,SAAA,MAAA,EAAA,EAAA;IACA,SAAA,IAAA,EAAA,yBAAA;IACA,SAAA,iBAAA,EAAA,KAAA;;;KA3DG,kBAAA,GA+DF,MAAA,OA/DoC,mBA+DpC;KA7DE,gBAAA,GAAmB,KAAA,CAAM,cA6DX,CAAA,KAAA,CAAA,GAAA;EAAA;qBA3DE,KAAA,CAAM;;sBAEL,KAAA,CAAM;;wBAEJ,KAAA,CAAM;;yBAEL,KAAA,CAAM;;YAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BH,WAAA;;;;;;;;;;;;;;;;;;;;GAoBN,mBAAgB,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index5.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime237 from "react/jsx-runtime";
|
|
2
2
|
import { Avatar } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -14,32 +14,32 @@ declare function Avatar$1({
|
|
|
14
14
|
size?: "default" | "sm" | "xs" | "xxs";
|
|
15
15
|
/** Corner treatment: a circle (`round`) or a rounded square (`roundrect`). */
|
|
16
16
|
shape?: "round" | "roundrect";
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime237.JSX.Element;
|
|
18
18
|
/** The avatar photo; falls back to `AvatarFallback` when the source fails to load. */
|
|
19
19
|
declare function AvatarImage({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof Avatar.Image>):
|
|
22
|
+
}: React.ComponentProps<typeof Avatar.Image>): react_jsx_runtime237.JSX.Element;
|
|
23
23
|
/** Placeholder (typically initials) rendered when no image is available. */
|
|
24
24
|
declare function AvatarFallback({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof Avatar.Fallback>):
|
|
27
|
+
}: React.ComponentProps<typeof Avatar.Fallback>): react_jsx_runtime237.JSX.Element;
|
|
28
28
|
/** Small status indicator (e.g. presence dot) anchored to the avatar's bottom-right corner. */
|
|
29
29
|
declare function AvatarBadge({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<"span">):
|
|
32
|
+
}: React.ComponentProps<"span">): react_jsx_runtime237.JSX.Element;
|
|
33
33
|
/** Wrapper that overlaps a row of avatars into a stacked cluster. */
|
|
34
34
|
declare function AvatarGroup({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<"div">):
|
|
37
|
+
}: React.ComponentProps<"div">): react_jsx_runtime237.JSX.Element;
|
|
38
38
|
/** Trailing chip in an `AvatarGroup` showing the overflow count (e.g. `+3`). */
|
|
39
39
|
declare function AvatarGroupCount({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<"div">):
|
|
42
|
+
}: React.ComponentProps<"div">): react_jsx_runtime237.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { AvatarGroupCount as a, AvatarGroup as i, AvatarBadge as n, AvatarImage as o, AvatarFallback as r, Avatar$1 as t };
|
|
45
45
|
//# sourceMappingURL=index5.d.cts.map
|