@psnext/design-system 2.4.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 +32 -4
- package/SKILL.md +1 -1
- package/dist/Header.cjs +3 -3
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +3 -3
- 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 +25 -4
- 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 +10 -5
- package/dist/index10.d.cts +5 -5
- 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/index12.d.ts.map +1 -1
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.cts.map +1 -1
- 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 +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 +39 -28
- package/dist/index21.d.cts.map +1 -1
- package/dist/index21.d.ts +39 -28
- package/dist/index21.d.ts.map +1 -1
- package/dist/index22.d.cts +98 -44
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +98 -44
- package/dist/index22.d.ts.map +1 -1
- package/dist/index23.d.cts +65 -68
- package/dist/index23.d.cts.map +1 -1
- package/dist/index23.d.ts +65 -68
- package/dist/index23.d.ts.map +1 -1
- package/dist/index24.d.cts +27 -42
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +27 -42
- package/dist/index24.d.ts.map +1 -1
- package/dist/index25.d.cts +68 -11
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +68 -11
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +75 -56
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +75 -56
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +38 -60
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +38 -60
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +10 -30
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +10 -30
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +72 -17
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +72 -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 +46 -80
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +46 -80
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +64 -33
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +64 -33
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +29 -18
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +29 -18
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +17 -51
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +17 -51
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +81 -36
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +81 -36
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +32 -69
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +32 -69
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +20 -13
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +20 -13
- package/dist/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +51 -21
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +51 -21
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +38 -15
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +38 -15
- package/dist/index38.d.ts.map +1 -1
- package/dist/index39.d.cts +53 -81
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +53 -81
- package/dist/index39.d.ts.map +1 -1
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.ts +2 -2
- package/dist/index4.d.ts.map +1 -1
- package/dist/index40.d.cts +13 -16
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +13 -16
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +25 -52
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +24 -51
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +15 -40
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +15 -40
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +86 -77
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +86 -77
- package/dist/index43.d.ts.map +1 -1
- package/dist/index44.d.cts +125 -1
- package/dist/index44.d.cts.map +1 -0
- package/dist/index44.d.ts +125 -1
- package/dist/index44.d.ts.map +1 -0
- package/dist/index45.d.cts +15 -41
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +15 -41
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +52 -24
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +52 -24
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +86 -31
- package/dist/index47.d.cts.map +1 -1
- package/dist/index47.d.ts +86 -31
- package/dist/index47.d.ts.map +1 -1
- package/dist/index48.d.cts +1 -25
- package/dist/index48.d.ts +1 -25
- package/dist/index49.d.cts +120 -14
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +120 -14
- package/dist/index49.d.ts.map +1 -1
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index50.d.cts +32 -53
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +32 -53
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +21 -56
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +21 -56
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +33 -23
- package/dist/index52.d.cts.map +1 -1
- package/dist/index52.d.ts +33 -23
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +17 -201
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +17 -201
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +14 -19
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +14 -19
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +64 -23
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +64 -23
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +95 -22
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +95 -22
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +25 -6
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +25 -6
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +202 -43
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +202 -43
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +15 -40
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +15 -40
- 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 +20 -55
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +20 -55
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +21 -41
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +21 -41
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +6 -18
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +6 -18
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +46 -41
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +46 -41
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +47 -19
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +47 -19
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +50 -35
- package/dist/index65.d.cts.map +1 -1
- package/dist/index65.d.ts +50 -35
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +33 -13
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +33 -13
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +17 -84
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +17 -84
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +40 -14
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +40 -14
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +16 -30
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +16 -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/index70.d.cts +39 -27
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +39 -27
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +22 -79
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +22 -79
- package/dist/index71.d.ts.map +1 -1
- package/dist/index72.d.cts +77 -264
- package/dist/index72.d.cts.map +1 -1
- package/dist/index72.d.ts +77 -264
- package/dist/index72.d.ts.map +1 -1
- package/dist/index73.d.cts +19 -0
- package/dist/index73.d.cts.map +1 -0
- package/dist/index73.d.ts +19 -0
- package/dist/index73.d.ts.map +1 -0
- package/dist/index74.d.cts +37 -0
- package/dist/index74.d.cts.map +1 -0
- package/dist/index74.d.ts +37 -0
- package/dist/index74.d.ts.map +1 -0
- package/dist/index75.d.cts +36 -0
- package/dist/index75.d.cts.map +1 -0
- package/dist/index75.d.ts +36 -0
- package/dist/index75.d.ts.map +1 -0
- package/dist/index76.d.cts +87 -0
- package/dist/index76.d.cts.map +1 -0
- package/dist/index76.d.ts +87 -0
- package/dist/index76.d.ts.map +1 -0
- package/dist/index77.d.cts +278 -0
- package/dist/index77.d.cts.map +1 -0
- package/dist/index77.d.ts +278 -0
- package/dist/index77.d.ts.map +1 -0
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.cts.map +1 -1
- package/dist/index8.d.ts +4 -4
- package/dist/index9.d.cts +2 -2
- 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 +14 -14
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- 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.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.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/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/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.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 +25 -4
- package/dist/primitives/index.d.cts +56 -51
- package/dist/primitives/index.d.ts +56 -51
- package/dist/primitives/index.js +10 -5
- 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/index43.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.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CAAA,CAAA,EAsKnB,mBAAA,CAAA,GAAA,CAAA,OAtKmB;AAAA;iBAiLxF,UAAA,CA5Kc;EAAA,GAAA;AAAA,CAAA,EA4KW,KAAA,CAAM,cA5KjB,CAAA,OA4KuC,OAAA,CAAiB,GA5KxD,CAAA,CAAA,EA4K4D,mBAAA,CAAA,GAAA,CAAA,OA5K5D;;iBAiLd,iBAAA,CA9KuC;EAAA,SAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAQ,CAAR,EAmL7C,KAAA,CAAM,cAnLuC,CAAA,OAmLjB,OAAA,CAAiB,UAnLA,CAAA,GAAA;;OAAQ,CAAA,EAAA,OAAA;AAAA,CAAA,CAAA,EAsLvD,mBAAA,CAAA,GAAA,CAAA,OAtLuD;AAAA;iBAwM/C,iBAAA,CA1Lc;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6LpB,KAAA,CAAM,cA7Lc,CAAA,OA6LQ,OAAA,CAAiB,UA7LzB,CAAA,CAAA,EA6LoC,mBAAA,CAAA,GAAA,CAAA,OA7LpC"}
|
package/dist/index44.d.cts
CHANGED
|
@@ -1 +1,125 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react_jsx_runtime307 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
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>({
|
|
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,
|
|
93
|
+
...props
|
|
94
|
+
}: MosaicProps<T>): react_jsx_runtime307.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,
|
|
120
|
+
className,
|
|
121
|
+
controls
|
|
122
|
+
}: MosaicWindowProps<T>): react_jsx_runtime307.JSX.Element;
|
|
123
|
+
//#endregion
|
|
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 };
|
|
125
|
+
//# sourceMappingURL=index44.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index44.d.cts","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,C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AA,qBAAA;EAAA,gBAAA;EAAA,GAAA;AAAA,CAAA,EAwCjC,WAxCiC,CAwCrB,CAxCqB,CAAA,CAAA,EAwCnB,oBAAA,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/index44.d.ts
CHANGED
|
@@ -1 +1,125 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime315 from "react/jsx-runtime";
|
|
3
|
+
|
|
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>({
|
|
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,
|
|
93
|
+
...props
|
|
94
|
+
}: MosaicProps<T>): react_jsx_runtime315.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,
|
|
120
|
+
className,
|
|
121
|
+
controls
|
|
122
|
+
}: MosaicWindowProps<T>): react_jsx_runtime315.JSX.Element;
|
|
123
|
+
//#endregion
|
|
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 };
|
|
125
|
+
//# sourceMappingURL=index44.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index44.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,IAAA,EC2D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AA,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/index45.d.cts
CHANGED
|
@@ -1,48 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime48 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/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
//#region src/primitives/NativeSelect/NativeSelect.d.ts
|
|
7
|
+
declare const nativeSelectVariants: (props?: ({
|
|
8
|
+
size?: "sm" | "lg" | "xs" | "default" | 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({
|
|
8
15
|
className,
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<"nav">): react_jsx_runtime218.JSX.Element;
|
|
11
|
-
/** Horizontal list container holding the individual pagination items. */
|
|
12
|
-
declare function PaginationContent({
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime218.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_runtime218.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
16
|
size,
|
|
17
|
+
children,
|
|
29
18
|
...props
|
|
30
|
-
}:
|
|
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_runtime218.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_runtime218.JSX.Element;
|
|
41
|
-
/** Non-interactive ellipsis indicating skipped page ranges. */
|
|
42
|
-
declare function PaginationEllipsis({
|
|
43
|
-
className,
|
|
44
|
-
...props
|
|
45
|
-
}: React.ComponentProps<"span">): react_jsx_runtime218.JSX.Element;
|
|
19
|
+
}: Omit<React.ComponentProps<"select">, "size"> & VariantProps<typeof nativeSelectVariants>): react_jsx_runtime48.JSX.Element;
|
|
46
20
|
//#endregion
|
|
47
|
-
export {
|
|
21
|
+
export { nativeSelectVariants as n, NativeSelect as t };
|
|
48
22
|
//# sourceMappingURL=index45.d.cts.map
|
package/dist/index45.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index45.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/index45.d.ts
CHANGED
|
@@ -1,48 +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_runtime115 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
4
5
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
//#region src/primitives/NativeSelect/NativeSelect.d.ts
|
|
7
|
+
declare const nativeSelectVariants: (props?: ({
|
|
8
|
+
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types9.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({
|
|
8
15
|
className,
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<"nav">): react_jsx_runtime66.JSX.Element;
|
|
11
|
-
/** Horizontal list container holding the individual pagination items. */
|
|
12
|
-
declare function PaginationContent({
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime66.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_runtime66.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
16
|
size,
|
|
17
|
+
children,
|
|
29
18
|
...props
|
|
30
|
-
}:
|
|
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_runtime66.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_runtime66.JSX.Element;
|
|
41
|
-
/** Non-interactive ellipsis indicating skipped page ranges. */
|
|
42
|
-
declare function PaginationEllipsis({
|
|
43
|
-
className,
|
|
44
|
-
...props
|
|
45
|
-
}: React.ComponentProps<"span">): react_jsx_runtime66.JSX.Element;
|
|
19
|
+
}: Omit<React.ComponentProps<"select">, "size"> & VariantProps<typeof nativeSelectVariants>): react_jsx_runtime115.JSX.Element;
|
|
46
20
|
//#endregion
|
|
47
|
-
export {
|
|
21
|
+
export { nativeSelectVariants as n, NativeSelect as t };
|
|
48
22
|
//# sourceMappingURL=index45.d.ts.map
|
package/dist/index45.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index45.d.ts","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,oBAAA,CAAA,GAAA,CAAA,OAJzF"}
|
package/dist/index46.d.cts
CHANGED
|
@@ -1,28 +1,56 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
|
+
import { NavigationMenu } from "radix-ui";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
declare function
|
|
18
|
-
className,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}):
|
|
6
|
+
//#region src/primitives/NavigationMenu/NavigationMenu.d.ts
|
|
7
|
+
/** Root of a horizontal navigation bar; renders a `<nav>` and optionally an animated viewport. */
|
|
8
|
+
declare function NavigationMenu$1({
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
viewport,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof NavigationMenu.Root> & {
|
|
14
|
+
/** When true (default), renders a shared animated viewport that hosts the active item's content. Set false to render content inline beneath each item. */
|
|
15
|
+
viewport?: boolean;
|
|
16
|
+
}): react_jsx_runtime4.JSX.Element;
|
|
17
|
+
/** Horizontal list wrapper for the top-level navigation items. */
|
|
18
|
+
declare function NavigationMenuList({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<typeof NavigationMenu.List>): react_jsx_runtime4.JSX.Element;
|
|
22
|
+
/** A single top-level entry; holds either a link or a trigger plus its content. */
|
|
23
|
+
declare function NavigationMenuItem({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof NavigationMenu.Item>): react_jsx_runtime4.JSX.Element;
|
|
27
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types0.ClassProp | undefined) => string;
|
|
28
|
+
/** Button that toggles an item's content panel; renders a rotating chevron. */
|
|
29
|
+
declare function NavigationMenuTrigger({
|
|
30
|
+
className,
|
|
31
|
+
children,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<typeof NavigationMenu.Trigger>): react_jsx_runtime4.JSX.Element;
|
|
34
|
+
/** The panel revealed when an item's trigger is open; holds links or rich content. */
|
|
35
|
+
declare function NavigationMenuContent({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof NavigationMenu.Content>): react_jsx_runtime4.JSX.Element;
|
|
39
|
+
/** Shared animated container that the active item's content is portaled into when `viewport` is enabled. */
|
|
40
|
+
declare function NavigationMenuViewport({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<typeof NavigationMenu.Viewport>): react_jsx_runtime4.JSX.Element;
|
|
44
|
+
/** A navigable link styled for use as a top-level item or inside content; set `active` to mark the current page. */
|
|
45
|
+
declare function NavigationMenuLink({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<typeof NavigationMenu.Link>): react_jsx_runtime4.JSX.Element;
|
|
49
|
+
/** Optional arrow that points from the active trigger to its content panel. */
|
|
50
|
+
declare function NavigationMenuIndicator({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<typeof NavigationMenu.Indicator>): react_jsx_runtime4.JSX.Element;
|
|
26
54
|
//#endregion
|
|
27
|
-
export {
|
|
55
|
+
export { NavigationMenuLink as a, NavigationMenuViewport as c, NavigationMenuItem as i, navigationMenuTriggerStyle as l, NavigationMenuContent as n, NavigationMenuList as o, NavigationMenuIndicator as r, NavigationMenuTrigger as s, NavigationMenu$1 as t };
|
|
28
56
|
//# sourceMappingURL=index46.d.cts.map
|
package/dist/index46.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index46.d.cts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index46.d.cts","names":[],"sources":["../src/primitives/NavigationMenu/NavigationMenu.tsx"],"mappings":";;;;;;;iBASS,gBAAA;;;;;AAL2B,GAUjC,KAAA,CAAM,sBAAsB,cAAA,CAAwB;;;AAVnB,CAAA,CAAA,EAanC,kBAAA,CAAA,GAAA,CAAA,OARsB;;iBA0Bd,kBAAA,CAzBP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4BC,KAAA,CAAM,cA5BP,CAAA,OA4B6B,cAAA,CAAwB,IA5BrD,CAAA,CAAA,EA4B0D,kBAAA,CAAA,GAAA,CAAA,OA5B1D;;iBAuCO,kBAAA,CArCP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwCC,KAAA,CAAM,cAxCP,CAAA,OAwC6B,cAAA,CAAwB,IAxCrD,CAAA,CAAA,EAwC0D,kBAAA,CAAA,GAAA,CAAA,OAxC1D;cAoDI,0BAlDiD,EAAA,CAAA,KAAA,CAAA,EAoDtD,+BAAA,CAF+B,SAAA,GAlDuB,SAAA,EAAA,GAAA,MAAA;;iBAuD9C,qBAAA,CApDR;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAwDE,KAAA,CAAM,cAxDR,CAAA,OAwD8B,cAAA,CAAwB,OAxDtD,CAAA,CAAA,EAwD8D,kBAAA,CAAA,GAAA,CAAA,OAxD9D;AAAA;AAAA,iBA0EQ,qBAAA,CAxDkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2DxB,KAAA,CAAM,cA3DkB,CAAA,OA2DI,cAAA,CAAwB,OA3D5B,CAAA,CAAA,EA2DoC,kBAAA,CAAA,GAAA,CAAA,OA3DpC;;iBA0ElB,sBAAA,CAzEP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4EC,KAAA,CAAM,cA5EP,CAAA,OA4E6B,cAAA,CAAwB,QA5ErD,CAAA,CAAA,EA4E8D,kBAAA,CAAA,GAAA,CAAA,OA5E9D;;iBA4FO,kBAAA,CA1FA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA6FN,KAAA,CAAM,cA7FA,CAAA,OA6FsB,cAAA,CAAwB,IA7F9C,CAAA,CAAA,EA6FmD,kBAAA,CAAA,GAAA,CAAA,OA7FnD;;AAAmD,iBA4GnD,uBAAA,CA5GmD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+GzD,KAAA,CAAM,cA/GmD,CAAA,OA+G7B,cAAA,CAAwB,SA/GK,CAAA,CAAA,EA+GK,kBAAA,CAAA,GAAA,CAAA,OA/GL"}
|
package/dist/index46.d.ts
CHANGED
|
@@ -1,28 +1,56 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as react_jsx_runtime298 from "react/jsx-runtime";
|
|
3
|
+
import { NavigationMenu } from "radix-ui";
|
|
4
|
+
import * as class_variance_authority_types23 from "class-variance-authority/types";
|
|
4
5
|
|
|
5
|
-
//#region src/primitives/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
declare function
|
|
18
|
-
className,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}):
|
|
6
|
+
//#region src/primitives/NavigationMenu/NavigationMenu.d.ts
|
|
7
|
+
/** Root of a horizontal navigation bar; renders a `<nav>` and optionally an animated viewport. */
|
|
8
|
+
declare function NavigationMenu$1({
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
viewport,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof NavigationMenu.Root> & {
|
|
14
|
+
/** When true (default), renders a shared animated viewport that hosts the active item's content. Set false to render content inline beneath each item. */
|
|
15
|
+
viewport?: boolean;
|
|
16
|
+
}): react_jsx_runtime298.JSX.Element;
|
|
17
|
+
/** Horizontal list wrapper for the top-level navigation items. */
|
|
18
|
+
declare function NavigationMenuList({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<typeof NavigationMenu.List>): react_jsx_runtime298.JSX.Element;
|
|
22
|
+
/** A single top-level entry; holds either a link or a trigger plus its content. */
|
|
23
|
+
declare function NavigationMenuItem({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof NavigationMenu.Item>): react_jsx_runtime298.JSX.Element;
|
|
27
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types23.ClassProp | undefined) => string;
|
|
28
|
+
/** Button that toggles an item's content panel; renders a rotating chevron. */
|
|
29
|
+
declare function NavigationMenuTrigger({
|
|
30
|
+
className,
|
|
31
|
+
children,
|
|
32
|
+
...props
|
|
33
|
+
}: React.ComponentProps<typeof NavigationMenu.Trigger>): react_jsx_runtime298.JSX.Element;
|
|
34
|
+
/** The panel revealed when an item's trigger is open; holds links or rich content. */
|
|
35
|
+
declare function NavigationMenuContent({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof NavigationMenu.Content>): react_jsx_runtime298.JSX.Element;
|
|
39
|
+
/** Shared animated container that the active item's content is portaled into when `viewport` is enabled. */
|
|
40
|
+
declare function NavigationMenuViewport({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}: React.ComponentProps<typeof NavigationMenu.Viewport>): react_jsx_runtime298.JSX.Element;
|
|
44
|
+
/** A navigable link styled for use as a top-level item or inside content; set `active` to mark the current page. */
|
|
45
|
+
declare function NavigationMenuLink({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<typeof NavigationMenu.Link>): react_jsx_runtime298.JSX.Element;
|
|
49
|
+
/** Optional arrow that points from the active trigger to its content panel. */
|
|
50
|
+
declare function NavigationMenuIndicator({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<typeof NavigationMenu.Indicator>): react_jsx_runtime298.JSX.Element;
|
|
26
54
|
//#endregion
|
|
27
|
-
export {
|
|
55
|
+
export { NavigationMenuLink as a, NavigationMenuViewport as c, NavigationMenuItem as i, navigationMenuTriggerStyle as l, NavigationMenuContent as n, NavigationMenuList as o, NavigationMenuIndicator as r, NavigationMenuTrigger as s, NavigationMenu$1 as t };
|
|
28
56
|
//# sourceMappingURL=index46.d.ts.map
|
package/dist/index46.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index46.d.ts","names":[],"sources":["../src/primitives/
|
|
1
|
+
{"version":3,"file":"index46.d.ts","names":[],"sources":["../src/primitives/NavigationMenu/NavigationMenu.tsx"],"mappings":";;;;;;;iBASS,gBAAA;;;;;AAL2B,GAUjC,KAAA,CAAM,sBAAsB,cAAA,CAAwB;;;AAVnB,CAAA,CAAA,EAanC,oBAAA,CAAA,GAAA,CAAA,OARsB;;iBA0Bd,kBAAA,CAzBP;EAAA,SAAA;EAAA,GAAA;AAAA,C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