@psnext/design-system 2.4.0 → 2.5.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 +27 -4
- package/SKILL.md +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +1 -1
- package/dist/Header.js.map +1 -1
- package/dist/Mosaic.cjs +472 -0
- package/dist/Mosaic.cjs.map +1 -0
- package/dist/Mosaic.js +459 -0
- package/dist/Mosaic.js.map +1 -0
- package/dist/index.cjs +13 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -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.ts +3 -3
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.cts.map +1 -1
- package/dist/index12.d.ts +12 -12
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.cts.map +1 -1
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +58 -23
- package/dist/index15.d.cts.map +1 -1
- package/dist/index15.d.ts +58 -23
- package/dist/index15.d.ts.map +1 -1
- package/dist/index16.d.cts +23 -32
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +23 -32
- package/dist/index16.d.ts.map +1 -1
- package/dist/index17.d.cts +34 -15
- package/dist/index17.d.cts.map +1 -1
- package/dist/index17.d.ts +34 -15
- package/dist/index17.d.ts.map +1 -1
- package/dist/index18.d.cts +13 -67
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +13 -67
- package/dist/index18.d.ts.map +1 -1
- package/dist/index19.d.cts +55 -48
- package/dist/index19.d.cts.map +1 -1
- package/dist/index19.d.ts +55 -48
- package/dist/index19.d.ts.map +1 -1
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.cts.map +1 -1
- package/dist/index2.d.ts +8 -8
- package/dist/index2.d.ts.map +1 -1
- package/dist/index20.d.cts +45 -75
- package/dist/index20.d.cts.map +1 -1
- package/dist/index20.d.ts +45 -75
- package/dist/index20.d.ts.map +1 -1
- package/dist/index21.d.cts +90 -28
- package/dist/index21.d.cts.map +1 -1
- package/dist/index21.d.ts +90 -28
- package/dist/index21.d.ts.map +1 -1
- package/dist/index22.d.cts +28 -56
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +28 -56
- package/dist/index22.d.ts.map +1 -1
- package/dist/index23.d.cts +53 -78
- package/dist/index23.d.cts.map +1 -1
- package/dist/index23.d.ts +53 -78
- package/dist/index23.d.ts.map +1 -1
- package/dist/index24.d.cts +83 -33
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +83 -33
- package/dist/index24.d.ts.map +1 -1
- package/dist/index25.d.cts +43 -11
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +43 -11
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +11 -74
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +11 -74
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +68 -59
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +68 -59
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +47 -30
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +47 -30
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +63 -17
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +63 -17
- 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 +29 -80
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +29 -80
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +19 -34
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +19 -34
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +80 -18
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +79 -17
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +32 -51
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +32 -51
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +19 -36
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +19 -36
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +43 -61
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +43 -61
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +35 -11
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +35 -11
- package/dist/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +68 -20
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +68 -20
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +14 -15
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +14 -15
- package/dist/index38.d.ts.map +1 -1
- package/dist/index39.d.cts +22 -98
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +22 -98
- 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/index4.d.ts.map +1 -1
- package/dist/index40.d.cts +15 -17
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +15 -17
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +84 -35
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +84 -35
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +118 -38
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +118 -38
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +15 -89
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +15 -89
- package/dist/index43.d.ts.map +1 -1
- package/dist/index44.d.cts +56 -1
- package/dist/index44.d.cts.map +1 -0
- package/dist/index44.d.ts +56 -1
- package/dist/index44.d.ts.map +1 -0
- package/dist/index45.d.cts +31 -34
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +31 -34
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +89 -21
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +89 -21
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +1 -41
- package/dist/index47.d.ts +1 -41
- package/dist/index48.d.cts +122 -20
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +122 -20
- package/dist/index48.d.ts.map +1 -1
- package/dist/index49.d.cts +40 -13
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +40 -13
- 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 +22 -63
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +22 -63
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +33 -55
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +33 -55
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +18 -24
- package/dist/index52.d.cts.map +1 -1
- package/dist/index52.d.ts +18 -24
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +12 -200
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +12 -200
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +58 -15
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +58 -15
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +93 -23
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +93 -23
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +27 -21
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +27 -21
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +203 -6
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +203 -6
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +17 -41
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +17 -41
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +24 -47
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +24 -47
- 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/index60.d.cts +19 -57
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +19 -57
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +6 -39
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +6 -39
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +44 -18
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +44 -18
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +47 -41
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +47 -41
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +55 -15
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +55 -15
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +36 -39
- package/dist/index65.d.cts.map +1 -1
- package/dist/index65.d.ts +36 -39
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +16 -17
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +16 -17
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +38 -84
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +38 -84
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +17 -13
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +17 -13
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +41 -30
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +41 -30
- 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 +17 -28
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +17 -28
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +88 -79
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +88 -79
- package/dist/index71.d.ts.map +1 -1
- package/dist/index72.d.cts +13 -272
- package/dist/index72.d.cts.map +1 -1
- package/dist/index72.d.ts +13 -272
- package/dist/index72.d.ts.map +1 -1
- package/dist/index73.d.cts +37 -0
- package/dist/index73.d.cts.map +1 -0
- package/dist/index73.d.ts +37 -0
- package/dist/index73.d.ts.map +1 -0
- package/dist/index74.d.cts +36 -0
- package/dist/index74.d.cts.map +1 -0
- package/dist/index74.d.ts +36 -0
- package/dist/index74.d.ts.map +1 -0
- package/dist/index75.d.cts +86 -0
- package/dist/index75.d.cts.map +1 -0
- package/dist/index75.d.ts +86 -0
- package/dist/index75.d.ts.map +1 -0
- package/dist/index76.d.cts +278 -0
- package/dist/index76.d.cts.map +1 -0
- package/dist/index76.d.ts +278 -0
- package/dist/index76.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 +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/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 +13 -13
- 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/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/Checkbox/index.cjs +1 -1
- package/dist/primitives/Checkbox/index.cjs.map +1 -1
- package/dist/primitives/Checkbox/index.d.cts +1 -1
- package/dist/primitives/Checkbox/index.d.ts +1 -1
- package/dist/primitives/Checkbox/index.js +1 -1
- package/dist/primitives/Checkbox/index.js.map +1 -1
- package/dist/primitives/CheckboxTree/index.d.cts +1 -1
- package/dist/primitives/CheckboxTree/index.d.ts +1 -1
- package/dist/primitives/CircularProgress/index.cjs +106 -0
- package/dist/primitives/CircularProgress/index.cjs.map +1 -0
- package/dist/primitives/CircularProgress/index.d.cts +2 -0
- package/dist/primitives/CircularProgress/index.d.ts +2 -0
- package/dist/primitives/CircularProgress/index.js +105 -0
- package/dist/primitives/CircularProgress/index.js.map +1 -0
- package/dist/primitives/Collapsible/index.d.cts +1 -1
- package/dist/primitives/Collapsible/index.d.ts +1 -1
- package/dist/primitives/Command/index.d.cts +1 -1
- package/dist/primitives/Command/index.d.ts +1 -1
- 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/Dialog/index.d.cts +1 -1
- package/dist/primitives/Dialog/index.d.ts +1 -1
- package/dist/primitives/Drawer/index.cjs +34 -2
- package/dist/primitives/Drawer/index.cjs.map +1 -1
- package/dist/primitives/Drawer/index.d.cts +1 -1
- package/dist/primitives/Drawer/index.d.ts +1 -1
- package/dist/primitives/Drawer/index.js +34 -2
- package/dist/primitives/Drawer/index.js.map +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.cjs +354 -0
- package/dist/primitives/FileUpload/index.cjs.map +1 -0
- package/dist/primitives/FileUpload/index.d.cts +2 -0
- package/dist/primitives/FileUpload/index.d.ts +2 -0
- package/dist/primitives/FileUpload/index.js +351 -0
- package/dist/primitives/FileUpload/index.js.map +1 -0
- 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.cjs +4 -0
- package/dist/primitives/Mosaic/index.d.cts +2 -0
- package/dist/primitives/Mosaic/index.d.ts +2 -0
- package/dist/primitives/Mosaic/index.js +2 -0
- 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.cjs +390 -0
- package/dist/primitives/NotchedCard/index.cjs.map +1 -0
- package/dist/primitives/NotchedCard/index.d.cts +2 -0
- package/dist/primitives/NotchedCard/index.d.ts +2 -0
- package/dist/primitives/NotchedCard/index.js +385 -0
- package/dist/primitives/NotchedCard/index.js.map +1 -0
- 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.cjs +1 -1
- package/dist/primitives/RadioGroup/index.cjs.map +1 -1
- package/dist/primitives/RadioGroup/index.d.cts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.js +1 -1
- package/dist/primitives/RadioGroup/index.js.map +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.cjs +34 -2
- package/dist/primitives/Sheet/index.cjs.map +1 -1
- package/dist/primitives/Sheet/index.d.cts +1 -1
- package/dist/primitives/Sheet/index.d.ts +1 -1
- package/dist/primitives/Sheet/index.js +34 -2
- package/dist/primitives/Sheet/index.js.map +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.d.cts +1 -1
- package/dist/primitives/Tabs/index.d.ts +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 +13 -2
- package/dist/primitives/index.d.cts +55 -51
- package/dist/primitives/index.d.ts +55 -51
- package/dist/primitives/index.js +7 -3
- package/package.json +1 -1
- package/dist/index47.d.cts.map +0 -1
- package/dist/index47.d.ts.map +0 -1
package/dist/index42.d.cts
CHANGED
|
@@ -1,45 +1,125 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Popover } from "radix-ui";
|
|
1
|
+
import * as react_jsx_runtime318 from "react/jsx-runtime";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
4
|
+
//#region src/primitives/Mosaic/Mosaic.utils.d.ts
|
|
5
|
+
/** A pane's identity. Compared with `===`, so no object identities. */
|
|
6
|
+
type MosaicKey = string | number;
|
|
7
|
+
/** "row" places children side by side (horizontal split); "column" stacks them (vertical split). */
|
|
8
|
+
type MosaicDirection = "row" | "column";
|
|
9
|
+
/** Sequence of "first"/"second" steps from the tree root down to a node. */
|
|
10
|
+
type MosaicPath = ("first" | "second")[];
|
|
11
|
+
type MosaicParent<T extends MosaicKey = MosaicKey> = {
|
|
12
|
+
direction: MosaicDirection;
|
|
13
|
+
first: MosaicNode<T>;
|
|
14
|
+
second: MosaicNode<T>;
|
|
15
|
+
/** Percentage (0-100) of the group's size given to `first`. Defaults to 50 when omitted. */
|
|
16
|
+
splitPercentage?: number;
|
|
17
|
+
};
|
|
18
|
+
/** A leaf pane id, or a parent split of two further nodes. */
|
|
19
|
+
type MosaicNode<T extends MosaicKey = MosaicKey> = T | MosaicParent<T>;
|
|
20
|
+
/** Which edge (or center) of a pane a drag is hovering over. */
|
|
21
|
+
type DropZone = "top" | "bottom" | "left" | "right" | "center";
|
|
22
|
+
/** Every recursive walk depends on this being correct — `T` is constrained to non-object keys precisely so this check can't be fooled by a leaf that happens to be an object. */
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/primitives/Mosaic/Mosaic.d.ts
|
|
25
|
+
type MosaicProps<T extends MosaicKey = string> = Omit<React.ComponentProps<"div">, "onChange" | "value" | "defaultValue"> & {
|
|
26
|
+
/** The tree of panes to render. `null` (or an empty tree via `emptyPlaceholder`) renders nothing tile-related. */
|
|
27
|
+
value?: MosaicNode<T> | null;
|
|
28
|
+
/** Initial tree when uncontrolled. */
|
|
29
|
+
defaultValue?: MosaicNode<T> | null;
|
|
30
|
+
/**
|
|
31
|
+
* Fires with the updated tree after a resize, toolbar split/remove, or
|
|
32
|
+
* drag-drop rearrange. Pass `value` back to fully control; omit for
|
|
33
|
+
* internal (uncontrolled) tracking — mirrors MultiColumn's
|
|
34
|
+
* `columns`/`onColumnsChange`.
|
|
35
|
+
*
|
|
36
|
+
* Note: there is no strict controlled veto. If a controlled consumer's
|
|
37
|
+
* `onChange` doesn't feed back an updated `value` (e.g. to reject a
|
|
38
|
+
* drag/split), the optimistic change still applies locally and persists —
|
|
39
|
+
* the same behavior MultiColumn already ships for resize/reorder. A true
|
|
40
|
+
* veto would need a different API shape (e.g. an `onBeforeChange` returning
|
|
41
|
+
* `boolean`), which is out of scope here.
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (next: MosaicNode<T> | null) => void;
|
|
44
|
+
/** Renders the content for a leaf pane; required — Mosaic has no default tile content. */
|
|
45
|
+
renderTile: (id: T, path: MosaicPath) => React.ReactNode;
|
|
46
|
+
/** Renders the title shown in a pane's toolbar. Defaults to `String(id)`. */
|
|
47
|
+
renderTitle?: (id: T, path: MosaicPath) => React.ReactNode;
|
|
48
|
+
/** Renders extra toolbar actions for a pane, after the built-in split/remove buttons. */
|
|
49
|
+
renderControls?: (id: T, path: MosaicPath) => React.ReactNode;
|
|
50
|
+
/** Renders a rename (pencil) button in each pane's toolbar; double-clicking the title also starts editing. Renaming sets a plain-text name that overrides `renderTitle`/`String(id)` for that pane. Default off. */
|
|
51
|
+
renamable?: boolean;
|
|
52
|
+
/** Custom pane names, keyed by leaf id (controlled). Only panes that have been renamed need an entry. */
|
|
53
|
+
paneNames?: Partial<Record<T, string>>;
|
|
54
|
+
/** Initial pane names when uncontrolled. */
|
|
55
|
+
defaultPaneNames?: Partial<Record<T, string>>;
|
|
56
|
+
/** Fires with the updated name map after a rename commits (Enter, blur, or the confirm affordance). Clearing a pane's name back to empty removes its entry, falling back to `renderTitle`/`String(id)` again. Pass `paneNames` back to fully control; omit for internal (uncontrolled) tracking. */
|
|
57
|
+
onPaneNamesChange?: (names: Partial<Record<T, string>>) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Creates the id for a new pane when a toolbar split button is used
|
|
60
|
+
* (drag-triggered splits reuse the dragged pane's existing id instead).
|
|
61
|
+
* May return a Promise. `renderTile` must be able to render whatever this
|
|
62
|
+
* returns.
|
|
63
|
+
*/
|
|
64
|
+
createNode: (path: MosaicPath) => T | Promise<T>;
|
|
65
|
+
/** Renders a drag handle in each pane's toolbar for drag-to-split/rearrange. Toolbar split/remove buttons remain active either way. Default enabled. */
|
|
66
|
+
dragToRearrange?: boolean;
|
|
67
|
+
/** Fraction (0-1) of a pane's width/height, measured from each edge, that counts as an edge drop zone rather than the center. Defaults to `0.25`. */
|
|
68
|
+
dropZoneFraction?: number;
|
|
69
|
+
/** Minimum size (percentage, 0-100) a pane can be resized down to. Defaults to `10`. */
|
|
70
|
+
minPaneSizePercentage?: number;
|
|
71
|
+
/** Rendered instead of the tree when `value`/the live tree is `null` (e.g. every pane has been removed). */
|
|
72
|
+
emptyPlaceholder?: React.ReactNode;
|
|
73
|
+
};
|
|
74
|
+
/** Recursive tiling layout: panes split into rows/columns, resized via draggable dividers, and rearranged by dragging a pane's title bar onto another pane's edge or center. */
|
|
75
|
+
declare function Mosaic<T extends MosaicKey = string>({
|
|
35
76
|
className,
|
|
77
|
+
style,
|
|
78
|
+
value,
|
|
79
|
+
defaultValue,
|
|
80
|
+
onChange,
|
|
81
|
+
renderTile,
|
|
82
|
+
renderTitle,
|
|
83
|
+
renderControls,
|
|
84
|
+
renamable,
|
|
85
|
+
paneNames,
|
|
86
|
+
defaultPaneNames,
|
|
87
|
+
onPaneNamesChange,
|
|
88
|
+
createNode,
|
|
89
|
+
dragToRearrange,
|
|
90
|
+
dropZoneFraction,
|
|
91
|
+
minPaneSizePercentage,
|
|
92
|
+
emptyPlaceholder,
|
|
36
93
|
...props
|
|
37
|
-
}:
|
|
38
|
-
|
|
39
|
-
|
|
94
|
+
}: MosaicProps<T>): react_jsx_runtime318.JSX.Element;
|
|
95
|
+
type MosaicWindowProps<T extends MosaicKey = string> = {
|
|
96
|
+
/** This pane's leaf id. */
|
|
97
|
+
id: T;
|
|
98
|
+
/** This pane's path from the tree root — supplied automatically when rendered by `Mosaic`. */
|
|
99
|
+
path: MosaicPath;
|
|
100
|
+
className?: string;
|
|
101
|
+
/** Extra toolbar actions rendered after the built-in split/remove buttons. */
|
|
102
|
+
controls?: React.ReactNode;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* A single pane's chrome: drag handle, title, split/remove buttons, and its
|
|
106
|
+
* `renderTile` content. Rendered internally by `Mosaic` for every leaf,
|
|
107
|
+
* and also exported for a consumer already inside a `<Mosaic>` tree who
|
|
108
|
+
* wants to add a fixed, non-tile element reusing the same toolbar chrome —
|
|
109
|
+
* it calls `useMosaic()` internally, so it can't be used to build an
|
|
110
|
+
* independent custom recursive renderer outside a `Mosaic`.
|
|
111
|
+
*
|
|
112
|
+
* The `path` you supply for such a fixed element must not collide with any
|
|
113
|
+
* real leaf's path in the current tree — its split/remove/rename actions
|
|
114
|
+
* operate on whatever the tree resolves at that path, so a colliding path
|
|
115
|
+
* would silently act on that real pane instead of a no-op.
|
|
116
|
+
*/
|
|
117
|
+
declare function MosaicWindow<T extends MosaicKey = string>({
|
|
118
|
+
id,
|
|
119
|
+
path,
|
|
40
120
|
className,
|
|
41
|
-
|
|
42
|
-
}:
|
|
121
|
+
controls
|
|
122
|
+
}: MosaicWindowProps<T>): react_jsx_runtime318.JSX.Element;
|
|
43
123
|
//#endregion
|
|
44
|
-
export {
|
|
124
|
+
export { DropZone as a, MosaicNode as c, MosaicWindowProps as i, MosaicParent as l, MosaicProps as n, MosaicDirection as o, MosaicWindow as r, MosaicKey as s, Mosaic as t, MosaicPath as u };
|
|
45
125
|
//# sourceMappingURL=index42.d.cts.map
|
package/dist/index42.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index42.d.cts","names":[],"sources":["../src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
|
@@ -1,45 +1,125 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import { Popover } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime291 from "react/jsx-runtime";
|
|
4
3
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
4
|
+
//#region src/primitives/Mosaic/Mosaic.utils.d.ts
|
|
5
|
+
/** A pane's identity. Compared with `===`, so no object identities. */
|
|
6
|
+
type MosaicKey = string | number;
|
|
7
|
+
/** "row" places children side by side (horizontal split); "column" stacks them (vertical split). */
|
|
8
|
+
type MosaicDirection = "row" | "column";
|
|
9
|
+
/** Sequence of "first"/"second" steps from the tree root down to a node. */
|
|
10
|
+
type MosaicPath = ("first" | "second")[];
|
|
11
|
+
type MosaicParent<T extends MosaicKey = MosaicKey> = {
|
|
12
|
+
direction: MosaicDirection;
|
|
13
|
+
first: MosaicNode<T>;
|
|
14
|
+
second: MosaicNode<T>;
|
|
15
|
+
/** Percentage (0-100) of the group's size given to `first`. Defaults to 50 when omitted. */
|
|
16
|
+
splitPercentage?: number;
|
|
17
|
+
};
|
|
18
|
+
/** A leaf pane id, or a parent split of two further nodes. */
|
|
19
|
+
type MosaicNode<T extends MosaicKey = MosaicKey> = T | MosaicParent<T>;
|
|
20
|
+
/** Which edge (or center) of a pane a drag is hovering over. */
|
|
21
|
+
type DropZone = "top" | "bottom" | "left" | "right" | "center";
|
|
22
|
+
/** Every recursive walk depends on this being correct — `T` is constrained to non-object keys precisely so this check can't be fooled by a leaf that happens to be an object. */
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/primitives/Mosaic/Mosaic.d.ts
|
|
25
|
+
type MosaicProps<T extends MosaicKey = string> = Omit<React.ComponentProps<"div">, "onChange" | "value" | "defaultValue"> & {
|
|
26
|
+
/** The tree of panes to render. `null` (or an empty tree via `emptyPlaceholder`) renders nothing tile-related. */
|
|
27
|
+
value?: MosaicNode<T> | null;
|
|
28
|
+
/** Initial tree when uncontrolled. */
|
|
29
|
+
defaultValue?: MosaicNode<T> | null;
|
|
30
|
+
/**
|
|
31
|
+
* Fires with the updated tree after a resize, toolbar split/remove, or
|
|
32
|
+
* drag-drop rearrange. Pass `value` back to fully control; omit for
|
|
33
|
+
* internal (uncontrolled) tracking — mirrors MultiColumn's
|
|
34
|
+
* `columns`/`onColumnsChange`.
|
|
35
|
+
*
|
|
36
|
+
* Note: there is no strict controlled veto. If a controlled consumer's
|
|
37
|
+
* `onChange` doesn't feed back an updated `value` (e.g. to reject a
|
|
38
|
+
* drag/split), the optimistic change still applies locally and persists —
|
|
39
|
+
* the same behavior MultiColumn already ships for resize/reorder. A true
|
|
40
|
+
* veto would need a different API shape (e.g. an `onBeforeChange` returning
|
|
41
|
+
* `boolean`), which is out of scope here.
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (next: MosaicNode<T> | null) => void;
|
|
44
|
+
/** Renders the content for a leaf pane; required — Mosaic has no default tile content. */
|
|
45
|
+
renderTile: (id: T, path: MosaicPath) => React.ReactNode;
|
|
46
|
+
/** Renders the title shown in a pane's toolbar. Defaults to `String(id)`. */
|
|
47
|
+
renderTitle?: (id: T, path: MosaicPath) => React.ReactNode;
|
|
48
|
+
/** Renders extra toolbar actions for a pane, after the built-in split/remove buttons. */
|
|
49
|
+
renderControls?: (id: T, path: MosaicPath) => React.ReactNode;
|
|
50
|
+
/** Renders a rename (pencil) button in each pane's toolbar; double-clicking the title also starts editing. Renaming sets a plain-text name that overrides `renderTitle`/`String(id)` for that pane. Default off. */
|
|
51
|
+
renamable?: boolean;
|
|
52
|
+
/** Custom pane names, keyed by leaf id (controlled). Only panes that have been renamed need an entry. */
|
|
53
|
+
paneNames?: Partial<Record<T, string>>;
|
|
54
|
+
/** Initial pane names when uncontrolled. */
|
|
55
|
+
defaultPaneNames?: Partial<Record<T, string>>;
|
|
56
|
+
/** Fires with the updated name map after a rename commits (Enter, blur, or the confirm affordance). Clearing a pane's name back to empty removes its entry, falling back to `renderTitle`/`String(id)` again. Pass `paneNames` back to fully control; omit for internal (uncontrolled) tracking. */
|
|
57
|
+
onPaneNamesChange?: (names: Partial<Record<T, string>>) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Creates the id for a new pane when a toolbar split button is used
|
|
60
|
+
* (drag-triggered splits reuse the dragged pane's existing id instead).
|
|
61
|
+
* May return a Promise. `renderTile` must be able to render whatever this
|
|
62
|
+
* returns.
|
|
63
|
+
*/
|
|
64
|
+
createNode: (path: MosaicPath) => T | Promise<T>;
|
|
65
|
+
/** Renders a drag handle in each pane's toolbar for drag-to-split/rearrange. Toolbar split/remove buttons remain active either way. Default enabled. */
|
|
66
|
+
dragToRearrange?: boolean;
|
|
67
|
+
/** Fraction (0-1) of a pane's width/height, measured from each edge, that counts as an edge drop zone rather than the center. Defaults to `0.25`. */
|
|
68
|
+
dropZoneFraction?: number;
|
|
69
|
+
/** Minimum size (percentage, 0-100) a pane can be resized down to. Defaults to `10`. */
|
|
70
|
+
minPaneSizePercentage?: number;
|
|
71
|
+
/** Rendered instead of the tree when `value`/the live tree is `null` (e.g. every pane has been removed). */
|
|
72
|
+
emptyPlaceholder?: React.ReactNode;
|
|
73
|
+
};
|
|
74
|
+
/** Recursive tiling layout: panes split into rows/columns, resized via draggable dividers, and rearranged by dragging a pane's title bar onto another pane's edge or center. */
|
|
75
|
+
declare function Mosaic<T extends MosaicKey = string>({
|
|
35
76
|
className,
|
|
77
|
+
style,
|
|
78
|
+
value,
|
|
79
|
+
defaultValue,
|
|
80
|
+
onChange,
|
|
81
|
+
renderTile,
|
|
82
|
+
renderTitle,
|
|
83
|
+
renderControls,
|
|
84
|
+
renamable,
|
|
85
|
+
paneNames,
|
|
86
|
+
defaultPaneNames,
|
|
87
|
+
onPaneNamesChange,
|
|
88
|
+
createNode,
|
|
89
|
+
dragToRearrange,
|
|
90
|
+
dropZoneFraction,
|
|
91
|
+
minPaneSizePercentage,
|
|
92
|
+
emptyPlaceholder,
|
|
36
93
|
...props
|
|
37
|
-
}:
|
|
38
|
-
|
|
39
|
-
|
|
94
|
+
}: MosaicProps<T>): react_jsx_runtime291.JSX.Element;
|
|
95
|
+
type MosaicWindowProps<T extends MosaicKey = string> = {
|
|
96
|
+
/** This pane's leaf id. */
|
|
97
|
+
id: T;
|
|
98
|
+
/** This pane's path from the tree root — supplied automatically when rendered by `Mosaic`. */
|
|
99
|
+
path: MosaicPath;
|
|
100
|
+
className?: string;
|
|
101
|
+
/** Extra toolbar actions rendered after the built-in split/remove buttons. */
|
|
102
|
+
controls?: React.ReactNode;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* A single pane's chrome: drag handle, title, split/remove buttons, and its
|
|
106
|
+
* `renderTile` content. Rendered internally by `Mosaic` for every leaf,
|
|
107
|
+
* and also exported for a consumer already inside a `<Mosaic>` tree who
|
|
108
|
+
* wants to add a fixed, non-tile element reusing the same toolbar chrome —
|
|
109
|
+
* it calls `useMosaic()` internally, so it can't be used to build an
|
|
110
|
+
* independent custom recursive renderer outside a `Mosaic`.
|
|
111
|
+
*
|
|
112
|
+
* The `path` you supply for such a fixed element must not collide with any
|
|
113
|
+
* real leaf's path in the current tree — its split/remove/rename actions
|
|
114
|
+
* operate on whatever the tree resolves at that path, so a colliding path
|
|
115
|
+
* would silently act on that real pane instead of a no-op.
|
|
116
|
+
*/
|
|
117
|
+
declare function MosaicWindow<T extends MosaicKey = string>({
|
|
118
|
+
id,
|
|
119
|
+
path,
|
|
40
120
|
className,
|
|
41
|
-
|
|
42
|
-
}:
|
|
121
|
+
controls
|
|
122
|
+
}: MosaicWindowProps<T>): react_jsx_runtime291.JSX.Element;
|
|
43
123
|
//#endregion
|
|
44
|
-
export {
|
|
124
|
+
export { DropZone as a, MosaicNode as c, MosaicWindowProps as i, MosaicParent as l, MosaicProps as n, MosaicDirection as o, MosaicWindow as r, MosaicKey as s, Mosaic as t, MosaicPath as u };
|
|
45
125
|
//# sourceMappingURL=index42.d.ts.map
|
package/dist/index42.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index42.d.ts","names":[],"sources":["../src/primitives/Mosaic/Mosaic.utils.ts","../src/primitives/Mosaic/Mosaic.tsx"],"mappings":";;;;;KAMK,SAAA;;KAGA,eAAA;;AAHS,KAMT,UAAA,GAHA,CAAA,OAAe,GAAA,QAAA,CAAA,EAAA;AAAA,KAKf,YAFU,CAAA,UAEa,SAFb,GAEyB,SAFzB,CAAA,GAAA;EAEV,SAAA,EACQ,eADI;EAAA,KAAA,EAER,UAFQ,CAEG,CAFH,CAAA;QAAW,EAGlB,UAHkB,CAGP,CAHO,CAAA;;iBACf,CAAA,EAAA,MAAA;;;KAQR,UANgB,CAAA,UAMK,SANL,GAMiB,SANjB,CAAA,GAM8B,CAN9B,GAMkC,YANlC,CAM+C,CAN/C,CAAA;;AAAD,KASf,QAAA,GATe,KAAA,GAAA,QAAA,GAAA,MAAA,GAAA,OAAA,GAAA,QAAA;AAAA;;;KC4Cf,sBAAsB,sBAAsB,KAC/C,KAAA,CAAM;;EDxDH,KAAA,CAAA,EC4DK,UD5DI,CC4DO,CD5DP,CAAA,GAAA,IAAA;EAGT;EAGA,YAAA,CAAU,ECwDE,UDxDF,CCwDa,CDxDb,CAAA,GAAA,IAAA;EAEV;;;;;;;;;AAGe;AAAA;;;UAMkB,CAAA,EAAA,CAAA,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A,CAAA,GAAA,CAAA,OAxCmB;KA4Q/B,iBA5QwB,CAAA,UA4QI,SA5QJ,GAAA,MAAA,CAAA,GAAA;;MA8QvB,CA5QuC;;MAAf,EA8QtB,UA9QsB;WAOT,CAAA,EAAA,MAAA;;UAA2B,CAAA,EA0QnC,KAAA,CAAM,SA1Q6B;;;AAQZ;AAAA;;;;;;;;;;;iBAkR3B,YArQP,CAAA,UAqQ8B,SArQ9B,GAAA,MAAA,CAAA,CAAA;EAAA,EAAA;EAAA,IAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EA0QC,iBA1QD,CA0QmB,CA1QnB,CAAA,CAAA,EA0QqB,oBAAA,CAAA,GAAA,CAAA,OA1QrB"}
|
package/dist/index43.d.cts
CHANGED
|
@@ -1,96 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
|
|
5
|
-
//#region src/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
mode?: NavRailMode;
|
|
15
|
-
}): react_jsx_runtime45.JSX.Element;
|
|
16
|
-
/** A thin divider between groups of rail items. */
|
|
17
|
-
declare function NavRailSeparator({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: React.ComponentProps<"div">): react_jsx_runtime45.JSX.Element;
|
|
21
|
-
type NavRailItemProps = Omit<React.ComponentProps<"button">, "aria-label"> & {
|
|
22
|
-
/** Tooltip text (icon mode) + accessible name + inline label (text/expanded). */
|
|
23
|
-
label: string;
|
|
24
|
-
/** Marks the item as the current page (active styling + `aria-current="page"`). */
|
|
25
|
-
active?: boolean;
|
|
26
|
-
/** Render the child element instead of a <button> (e.g. a router link). */
|
|
27
|
-
asChild?: boolean;
|
|
28
|
-
/** Which side the tooltip opens on in icon mode. */
|
|
29
|
-
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
30
|
-
};
|
|
31
|
-
/** A single navigation entry; an icon (as children) plus a `label`, with a tooltip in icon mode. */
|
|
32
|
-
declare function NavRailItem({
|
|
33
|
-
label,
|
|
34
|
-
active,
|
|
35
|
-
asChild,
|
|
36
|
-
tooltipSide,
|
|
6
|
+
//#region src/primitives/NativeSelect/NativeSelect.d.ts
|
|
7
|
+
declare const nativeSelectVariants: (props?: ({
|
|
8
|
+
size?: "default" | "sm" | "lg" | "xs" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
10
|
+
/**
|
|
11
|
+
* A styled native `<select>` with a chevron affordance. Mirrors Input visuals
|
|
12
|
+
* and shares its size scale; pass `<option>`/`<optgroup>` as children.
|
|
13
|
+
*/
|
|
14
|
+
declare function NativeSelect({
|
|
37
15
|
className,
|
|
16
|
+
size,
|
|
38
17
|
children,
|
|
39
18
|
...props
|
|
40
|
-
}:
|
|
41
|
-
type NavRailUserProps = React.ComponentProps<"div"> & {
|
|
42
|
-
/** The avatar element (e.g. an <Avatar />). */
|
|
43
|
-
avatar: React.ReactNode;
|
|
44
|
-
/** The user's display name (hidden in icon mode). */
|
|
45
|
-
name: React.ReactNode;
|
|
46
|
-
/** The user's secondary line, e.g. email (hidden in icon mode). */
|
|
47
|
-
email: React.ReactNode;
|
|
48
|
-
};
|
|
49
|
-
/** The footer slot of the rail showing the signed-in user (avatar + name + email). */
|
|
50
|
-
declare function NavRailUser({
|
|
51
|
-
avatar,
|
|
52
|
-
name,
|
|
53
|
-
email,
|
|
54
|
-
className,
|
|
55
|
-
...props
|
|
56
|
-
}: NavRailUserProps): react_jsx_runtime45.JSX.Element;
|
|
57
|
-
/** Root for a rail item that opens a flyout submenu (wraps Popover). */
|
|
58
|
-
declare function NavRailMenu(props: React.ComponentProps<typeof Popover>): react_jsx_runtime45.JSX.Element;
|
|
59
|
-
type NavRailMenuTriggerProps = Omit<React.ComponentProps<"button">, "aria-label"> & {
|
|
60
|
-
/** Tooltip/accessible name + inline label for the trigger item. */
|
|
61
|
-
label: string;
|
|
62
|
-
/** Marks the trigger as active (current section) styling. */
|
|
63
|
-
active?: boolean;
|
|
64
|
-
};
|
|
65
|
-
/** The rail item that opens its flyout submenu; renders a chevron affordance. */
|
|
66
|
-
declare function NavRailMenuTrigger({
|
|
67
|
-
label,
|
|
68
|
-
active,
|
|
69
|
-
className,
|
|
70
|
-
children,
|
|
71
|
-
...props
|
|
72
|
-
}: NavRailMenuTriggerProps): react_jsx_runtime45.JSX.Element;
|
|
73
|
-
/** The glass flyout panel that holds the submenu items (portalled Popover content). */
|
|
74
|
-
declare function NavRailMenuContent({
|
|
75
|
-
className,
|
|
76
|
-
side,
|
|
77
|
-
align,
|
|
78
|
-
sideOffset,
|
|
79
|
-
...props
|
|
80
|
-
}: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime45.JSX.Element;
|
|
81
|
-
type NavRailMenuItemProps = React.ComponentProps<"button"> & {
|
|
82
|
-
/** Marks the entry as the current page (active styling + `aria-current="page"`). */
|
|
83
|
-
active?: boolean;
|
|
84
|
-
/** Render the child element instead of a <button> (e.g. a router link). */
|
|
85
|
-
asChild?: boolean;
|
|
86
|
-
};
|
|
87
|
-
/** A single entry inside a NavRail flyout submenu. */
|
|
88
|
-
declare function NavRailMenuItem({
|
|
89
|
-
className,
|
|
90
|
-
active,
|
|
91
|
-
asChild,
|
|
92
|
-
...props
|
|
93
|
-
}: NavRailMenuItemProps): react_jsx_runtime45.JSX.Element;
|
|
19
|
+
}: Omit<React.ComponentProps<"select">, "size"> & VariantProps<typeof nativeSelectVariants>): react_jsx_runtime29.JSX.Element;
|
|
94
20
|
//#endregion
|
|
95
|
-
export {
|
|
21
|
+
export { nativeSelectVariants as n, NativeSelect as t };
|
|
96
22
|
//# sourceMappingURL=index43.d.cts.map
|
package/dist/index43.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.d.cts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index43.d.cts","names":[],"sources":["../src/primitives/NativeSelect/NativeSelect.tsx"],"mappings":";;;;;;cAUM;;IAqBL,+BAAA,CAAA;;AA5BmC;;;iBAkC3B,YAAA,CACP;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAIC,IAJD,CAIM,KAAA,CAAM,cAJZ,CAAA,QAAA,CAAA,EAAA,MAAA,CAAA,GAIgD,YAJhD,CAAA,OAIoE,oBAJpE,CAAA,CAAA,EAIyF,mBAAA,CAAA,GAAA,CAAA,OAJzF"}
|
package/dist/index43.d.ts
CHANGED
|
@@ -1,96 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime329 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types29 from "class-variance-authority/types";
|
|
4
5
|
|
|
5
|
-
//#region src/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
mode?: NavRailMode;
|
|
15
|
-
}): react_jsx_runtime2.JSX.Element;
|
|
16
|
-
/** A thin divider between groups of rail items. */
|
|
17
|
-
declare function NavRailSeparator({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: React.ComponentProps<"div">): react_jsx_runtime2.JSX.Element;
|
|
21
|
-
type NavRailItemProps = Omit<React.ComponentProps<"button">, "aria-label"> & {
|
|
22
|
-
/** Tooltip text (icon mode) + accessible name + inline label (text/expanded). */
|
|
23
|
-
label: string;
|
|
24
|
-
/** Marks the item as the current page (active styling + `aria-current="page"`). */
|
|
25
|
-
active?: boolean;
|
|
26
|
-
/** Render the child element instead of a <button> (e.g. a router link). */
|
|
27
|
-
asChild?: boolean;
|
|
28
|
-
/** Which side the tooltip opens on in icon mode. */
|
|
29
|
-
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
30
|
-
};
|
|
31
|
-
/** A single navigation entry; an icon (as children) plus a `label`, with a tooltip in icon mode. */
|
|
32
|
-
declare function NavRailItem({
|
|
33
|
-
label,
|
|
34
|
-
active,
|
|
35
|
-
asChild,
|
|
36
|
-
tooltipSide,
|
|
6
|
+
//#region src/primitives/NativeSelect/NativeSelect.d.ts
|
|
7
|
+
declare const nativeSelectVariants: (props?: ({
|
|
8
|
+
size?: "xs" | "sm" | "lg" | "default" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types29.ClassProp) | undefined) => string;
|
|
10
|
+
/**
|
|
11
|
+
* A styled native `<select>` with a chevron affordance. Mirrors Input visuals
|
|
12
|
+
* and shares its size scale; pass `<option>`/`<optgroup>` as children.
|
|
13
|
+
*/
|
|
14
|
+
declare function NativeSelect({
|
|
37
15
|
className,
|
|
16
|
+
size,
|
|
38
17
|
children,
|
|
39
18
|
...props
|
|
40
|
-
}:
|
|
41
|
-
type NavRailUserProps = React.ComponentProps<"div"> & {
|
|
42
|
-
/** The avatar element (e.g. an <Avatar />). */
|
|
43
|
-
avatar: React.ReactNode;
|
|
44
|
-
/** The user's display name (hidden in icon mode). */
|
|
45
|
-
name: React.ReactNode;
|
|
46
|
-
/** The user's secondary line, e.g. email (hidden in icon mode). */
|
|
47
|
-
email: React.ReactNode;
|
|
48
|
-
};
|
|
49
|
-
/** The footer slot of the rail showing the signed-in user (avatar + name + email). */
|
|
50
|
-
declare function NavRailUser({
|
|
51
|
-
avatar,
|
|
52
|
-
name,
|
|
53
|
-
email,
|
|
54
|
-
className,
|
|
55
|
-
...props
|
|
56
|
-
}: NavRailUserProps): react_jsx_runtime2.JSX.Element;
|
|
57
|
-
/** Root for a rail item that opens a flyout submenu (wraps Popover). */
|
|
58
|
-
declare function NavRailMenu(props: React.ComponentProps<typeof Popover>): react_jsx_runtime2.JSX.Element;
|
|
59
|
-
type NavRailMenuTriggerProps = Omit<React.ComponentProps<"button">, "aria-label"> & {
|
|
60
|
-
/** Tooltip/accessible name + inline label for the trigger item. */
|
|
61
|
-
label: string;
|
|
62
|
-
/** Marks the trigger as active (current section) styling. */
|
|
63
|
-
active?: boolean;
|
|
64
|
-
};
|
|
65
|
-
/** The rail item that opens its flyout submenu; renders a chevron affordance. */
|
|
66
|
-
declare function NavRailMenuTrigger({
|
|
67
|
-
label,
|
|
68
|
-
active,
|
|
69
|
-
className,
|
|
70
|
-
children,
|
|
71
|
-
...props
|
|
72
|
-
}: NavRailMenuTriggerProps): react_jsx_runtime2.JSX.Element;
|
|
73
|
-
/** The glass flyout panel that holds the submenu items (portalled Popover content). */
|
|
74
|
-
declare function NavRailMenuContent({
|
|
75
|
-
className,
|
|
76
|
-
side,
|
|
77
|
-
align,
|
|
78
|
-
sideOffset,
|
|
79
|
-
...props
|
|
80
|
-
}: React.ComponentProps<typeof PopoverContent>): react_jsx_runtime2.JSX.Element;
|
|
81
|
-
type NavRailMenuItemProps = React.ComponentProps<"button"> & {
|
|
82
|
-
/** Marks the entry as the current page (active styling + `aria-current="page"`). */
|
|
83
|
-
active?: boolean;
|
|
84
|
-
/** Render the child element instead of a <button> (e.g. a router link). */
|
|
85
|
-
asChild?: boolean;
|
|
86
|
-
};
|
|
87
|
-
/** A single entry inside a NavRail flyout submenu. */
|
|
88
|
-
declare function NavRailMenuItem({
|
|
89
|
-
className,
|
|
90
|
-
active,
|
|
91
|
-
asChild,
|
|
92
|
-
...props
|
|
93
|
-
}: NavRailMenuItemProps): react_jsx_runtime2.JSX.Element;
|
|
19
|
+
}: Omit<React.ComponentProps<"select">, "size"> & VariantProps<typeof nativeSelectVariants>): react_jsx_runtime329.JSX.Element;
|
|
94
20
|
//#endregion
|
|
95
|
-
export {
|
|
21
|
+
export { nativeSelectVariants as n, NativeSelect as t };
|
|
96
22
|
//# sourceMappingURL=index43.d.ts.map
|
package/dist/index43.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.d.ts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index43.d.ts","names":[],"sources":["../src/primitives/NativeSelect/NativeSelect.tsx"],"mappings":";;;;;;cAUM;;IAqBL,gCAAA,CAAA;;AA5BmC;;;iBAkC3B,YAAA,CACP;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAIC,IAJD,CAIM,KAAA,CAAM,cAJZ,CAAA,QAAA,CAAA,EAAA,MAAA,CAAA,GAIgD,YAJhD,CAAA,OAIoE,oBAJpE,CAAA,CAAA,EAIyF,oBAAA,CAAA,GAAA,CAAA,OAJzF"}
|