@psnext/design-system 1.5.1 → 2.0.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 +639 -0
- package/README.md +39 -2
- package/SKILL.md +101 -0
- package/bin/install-agent-skill.mjs +54 -0
- package/dist/Header.cjs +25 -25
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +25 -25
- package/dist/Header.js.map +1 -1
- package/dist/Icon.cjs +19 -19
- package/dist/Icon.cjs.map +1 -1
- package/dist/Icon.js +19 -19
- package/dist/Icon.js.map +1 -1
- package/dist/Logo.cjs +4 -14
- package/dist/Logo.cjs.map +1 -1
- package/dist/Logo.js +4 -14
- package/dist/Logo.js.map +1 -1
- package/dist/Sidebar.cjs +26 -20
- package/dist/Sidebar.cjs.map +1 -1
- package/dist/Sidebar.js +21 -21
- package/dist/Sidebar.js.map +1 -1
- package/dist/cn.cjs +14 -1
- package/dist/cn.cjs.map +1 -1
- package/dist/cn.js +14 -1
- package/dist/cn.js.map +1 -1
- package/dist/index.cjs +13 -10
- 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.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index10.d.cts +7 -7
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +7 -7
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index11.d.ts.map +1 -1
- package/dist/index12.d.cts +18 -17
- package/dist/index12.d.cts.map +1 -1
- package/dist/index12.d.ts +18 -17
- 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/index14.d.cts +5 -5
- package/dist/index14.d.cts.map +1 -1
- package/dist/index14.d.ts +5 -5
- package/dist/index14.d.ts.map +1 -1
- package/dist/index15.d.cts +3 -3
- package/dist/index15.d.cts.map +1 -1
- package/dist/index15.d.ts +3 -3
- package/dist/index15.d.ts.map +1 -1
- package/dist/index16.d.cts +2 -2
- package/dist/index16.d.cts.map +1 -1
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.cts.map +1 -1
- package/dist/index17.d.ts +4 -4
- package/dist/index17.d.ts.map +1 -1
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +11 -11
- package/dist/index19.d.cts +10 -10
- package/dist/index19.d.cts.map +1 -1
- package/dist/index19.d.ts +10 -10
- 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 +16 -16
- package/dist/index20.d.cts.map +1 -1
- package/dist/index20.d.ts +16 -16
- package/dist/index20.d.ts.map +1 -1
- package/dist/index21.d.cts +4 -4
- package/dist/index21.d.cts.map +1 -1
- package/dist/index21.d.ts +4 -4
- package/dist/index22.d.cts +11 -11
- package/dist/index22.d.cts.map +1 -1
- package/dist/index22.d.ts +11 -11
- package/dist/index22.d.ts.map +1 -1
- package/dist/index23.d.cts +16 -16
- package/dist/index23.d.cts.map +1 -1
- package/dist/index23.d.ts +16 -16
- package/dist/index23.d.ts.map +1 -1
- package/dist/index24.d.cts +10 -10
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +10 -10
- package/dist/index25.d.cts +2 -2
- package/dist/index25.d.ts +2 -2
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +14 -14
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +14 -14
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +7 -7
- package/dist/index27.d.ts +7 -7
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +6 -6
- package/dist/index28.d.ts +5 -5
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.ts +4 -4
- 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/index3.d.ts.map +1 -1
- package/dist/index30.d.cts +6 -6
- package/dist/index30.d.ts +4 -4
- package/dist/index31.d.cts +4 -4
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +4 -4
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +8 -5
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +9 -6
- package/dist/index32.d.ts.map +1 -1
- package/dist/index33.d.cts +14 -10
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +15 -11
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.ts +5 -5
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +14 -14
- package/dist/index35.d.ts +14 -14
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +3 -3
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +3 -3
- package/dist/index36.d.ts.map +1 -1
- package/dist/index37.d.cts +5 -5
- package/dist/index37.d.ts +4 -4
- package/dist/index37.d.ts.map +1 -1
- package/dist/index38.d.cts +2 -2
- package/dist/index38.d.ts +2 -2
- package/dist/index39.d.cts +17 -17
- package/dist/index39.d.cts.map +1 -1
- package/dist/index39.d.ts +17 -17
- 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 +4 -4
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +5 -5
- package/dist/index40.d.ts.map +1 -1
- package/dist/index41.d.cts +11 -11
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +11 -11
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +8 -8
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +8 -8
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +10 -10
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +10 -10
- package/dist/index43.d.ts.map +1 -1
- package/dist/index44.d.cts +1 -48
- package/dist/index44.d.ts +1 -48
- package/dist/index45.d.cts +42 -22
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +42 -22
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +21 -34
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +21 -34
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +33 -17
- package/dist/index47.d.cts.map +1 -1
- package/dist/index47.d.ts +33 -17
- package/dist/index47.d.ts.map +1 -1
- package/dist/index48.d.cts +18 -14
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +18 -14
- package/dist/index48.d.ts.map +1 -1
- package/dist/index49.d.cts +12 -60
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +12 -60
- 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/index5.d.ts.map +1 -1
- package/dist/index50.d.cts +55 -49
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +55 -49
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +56 -24
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +56 -24
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +25 -203
- package/dist/index52.d.cts.map +1 -1
- package/dist/index52.d.ts +25 -203
- package/dist/index52.d.ts.map +1 -1
- package/dist/index53.d.cts +198 -15
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +198 -15
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +21 -23
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +21 -23
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +21 -18
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +21 -18
- package/dist/index55.d.ts.map +1 -1
- package/dist/index56.d.cts +21 -8
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +21 -8
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +6 -44
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +6 -44
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +46 -47
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +46 -47
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +47 -59
- package/dist/index59.d.cts.map +1 -1
- package/dist/index59.d.ts +47 -59
- package/dist/index59.d.ts.map +1 -1
- package/dist/index6.d.cts +7 -7
- package/dist/index6.d.cts.map +1 -1
- package/dist/index6.d.ts +7 -7
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +56 -38
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +56 -38
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +38 -14
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +38 -14
- package/dist/index61.d.ts.map +1 -1
- package/dist/index62.d.cts +20 -41
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +20 -41
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +41 -19
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +41 -19
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +14 -39
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +14 -39
- package/dist/index64.d.ts.map +1 -1
- package/dist/index65.d.cts +39 -16
- package/dist/index65.d.cts.map +1 -1
- package/dist/index65.d.ts +39 -16
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +18 -12
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +18 -12
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +12 -30
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +12 -30
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +28 -27
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +28 -27
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +36 -69
- package/dist/index69.d.cts.map +1 -0
- package/dist/index69.d.ts +36 -69
- package/dist/index69.d.ts.map +1 -0
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.cts.map +1 -1
- package/dist/index7.d.ts +8 -8
- package/dist/index70.d.cts +76 -237
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +76 -237
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +242 -0
- package/dist/index71.d.cts.map +1 -0
- package/dist/index71.d.ts +242 -0
- package/dist/index71.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/index8.d.ts.map +1 -1
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.ts +2 -2
- package/dist/layouts/Container/index.cjs +4 -4
- package/dist/layouts/Container/index.cjs.map +1 -1
- package/dist/layouts/Container/index.d.cts +1 -1
- package/dist/layouts/Container/index.d.ts +1 -1
- package/dist/layouts/Container/index.js +4 -4
- package/dist/layouts/Container/index.js.map +1 -1
- package/dist/layouts/PageBackground/index.cjs +2 -2
- package/dist/layouts/PageBackground/index.cjs.map +1 -1
- package/dist/layouts/PageBackground/index.d.cts +1 -1
- package/dist/layouts/PageBackground/index.d.ts +1 -1
- package/dist/layouts/PageBackground/index.js +2 -2
- package/dist/layouts/PageBackground/index.js.map +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 +4 -4
- package/dist/layouts/index.d.ts +4 -4
- package/dist/patterns/DataTable/index.cjs +12 -7
- package/dist/patterns/DataTable/index.cjs.map +1 -1
- 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/DataTable/index.js +12 -7
- package/dist/patterns/DataTable/index.js.map +1 -1
- package/dist/patterns/Footer/index.cjs +5 -5
- package/dist/patterns/Footer/index.cjs.map +1 -1
- package/dist/patterns/Footer/index.d.cts +9 -9
- package/dist/patterns/Footer/index.d.cts.map +1 -1
- package/dist/patterns/Footer/index.d.ts +9 -9
- package/dist/patterns/Footer/index.d.ts.map +1 -1
- package/dist/patterns/Footer/index.js +5 -5
- package/dist/patterns/Footer/index.js.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.cjs +1 -1
- package/dist/patterns/MediaObject/index.cjs.map +1 -1
- package/dist/patterns/MediaObject/index.d.cts +12 -12
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +13 -13
- package/dist/patterns/MediaObject/index.d.ts.map +1 -1
- package/dist/patterns/MediaObject/index.js +1 -1
- package/dist/patterns/MediaObject/index.js.map +1 -1
- package/dist/patterns/NavRail/index.cjs +195 -0
- package/dist/patterns/NavRail/index.cjs.map +1 -0
- package/dist/patterns/NavRail/index.d.cts +2 -0
- package/dist/patterns/NavRail/index.d.ts +2 -0
- package/dist/patterns/NavRail/index.js +185 -0
- package/dist/patterns/NavRail/index.js.map +1 -0
- package/dist/patterns/SectionCard/index.cjs +1 -1
- package/dist/patterns/SectionCard/index.cjs.map +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/SectionCard/index.js +1 -1
- package/dist/patterns/SectionCard/index.js.map +1 -1
- package/dist/patterns/SectionHeading/index.d.cts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.cjs +9 -0
- package/dist/patterns/index.d.cts +3 -2
- package/dist/patterns/index.d.ts +3 -2
- package/dist/patterns/index.js +2 -1
- package/dist/primitives/Accordion/index.cjs +6 -6
- package/dist/primitives/Accordion/index.cjs.map +1 -1
- package/dist/primitives/Accordion/index.js +6 -6
- package/dist/primitives/Accordion/index.js.map +1 -1
- package/dist/primitives/Alert/index.cjs +4 -4
- package/dist/primitives/Alert/index.cjs.map +1 -1
- package/dist/primitives/Alert/index.js +4 -4
- package/dist/primitives/Alert/index.js.map +1 -1
- package/dist/primitives/AlertDialog/index.cjs +4 -4
- package/dist/primitives/AlertDialog/index.cjs.map +1 -1
- package/dist/primitives/AlertDialog/index.js +4 -4
- package/dist/primitives/AlertDialog/index.js.map +1 -1
- package/dist/primitives/Avatar/index.cjs +5 -5
- package/dist/primitives/Avatar/index.cjs.map +1 -1
- package/dist/primitives/Avatar/index.js +5 -5
- package/dist/primitives/Avatar/index.js.map +1 -1
- package/dist/primitives/Badge/index.cjs +11 -10
- package/dist/primitives/Badge/index.cjs.map +1 -1
- package/dist/primitives/Badge/index.js +11 -10
- package/dist/primitives/Badge/index.js.map +1 -1
- package/dist/primitives/Breadcrumb/index.cjs +4 -4
- package/dist/primitives/Breadcrumb/index.cjs.map +1 -1
- package/dist/primitives/Breadcrumb/index.js +4 -4
- package/dist/primitives/Breadcrumb/index.js.map +1 -1
- package/dist/primitives/Button/index.cjs +20 -13
- package/dist/primitives/Button/index.cjs.map +1 -1
- package/dist/primitives/Button/index.js +20 -13
- package/dist/primitives/Button/index.js.map +1 -1
- package/dist/primitives/ButtonGroup/index.cjs +3 -3
- package/dist/primitives/ButtonGroup/index.cjs.map +1 -1
- package/dist/primitives/ButtonGroup/index.js +3 -3
- package/dist/primitives/ButtonGroup/index.js.map +1 -1
- package/dist/primitives/Calendar/index.cjs +22 -21
- package/dist/primitives/Calendar/index.cjs.map +1 -1
- package/dist/primitives/Calendar/index.js +22 -21
- package/dist/primitives/Calendar/index.js.map +1 -1
- package/dist/primitives/Card/index.cjs +18 -16
- package/dist/primitives/Card/index.cjs.map +1 -1
- package/dist/primitives/Card/index.js +18 -16
- package/dist/primitives/Card/index.js.map +1 -1
- package/dist/primitives/Carousel/index.cjs +2 -2
- package/dist/primitives/Carousel/index.cjs.map +1 -1
- package/dist/primitives/Carousel/index.js +2 -2
- package/dist/primitives/Carousel/index.js.map +1 -1
- package/dist/primitives/Chart/index.cjs +12 -12
- package/dist/primitives/Chart/index.cjs.map +1 -1
- package/dist/primitives/Chart/index.js +12 -12
- package/dist/primitives/Chart/index.js.map +1 -1
- package/dist/primitives/Checkbox/index.cjs +6 -6
- package/dist/primitives/Checkbox/index.cjs.map +1 -1
- package/dist/primitives/Checkbox/index.js +6 -6
- package/dist/primitives/Checkbox/index.js.map +1 -1
- package/dist/primitives/CheckboxTree/index.cjs +2 -2
- package/dist/primitives/CheckboxTree/index.cjs.map +1 -1
- package/dist/primitives/CheckboxTree/index.js +2 -2
- package/dist/primitives/CheckboxTree/index.js.map +1 -1
- package/dist/primitives/Command/index.cjs +9 -9
- package/dist/primitives/Command/index.cjs.map +1 -1
- package/dist/primitives/Command/index.js +9 -9
- package/dist/primitives/Command/index.js.map +1 -1
- package/dist/primitives/ContextMenu/index.cjs +10 -10
- package/dist/primitives/ContextMenu/index.cjs.map +1 -1
- package/dist/primitives/ContextMenu/index.js +10 -10
- package/dist/primitives/ContextMenu/index.js.map +1 -1
- package/dist/primitives/Credits/index.cjs +4 -4
- package/dist/primitives/Credits/index.cjs.map +1 -1
- package/dist/primitives/Credits/index.js +4 -4
- package/dist/primitives/Credits/index.js.map +1 -1
- package/dist/primitives/Dialog/index.cjs +5 -5
- package/dist/primitives/Dialog/index.cjs.map +1 -1
- package/dist/primitives/Dialog/index.js +5 -5
- package/dist/primitives/Dialog/index.js.map +1 -1
- package/dist/primitives/Drawer/index.cjs +5 -5
- package/dist/primitives/Drawer/index.cjs.map +1 -1
- package/dist/primitives/Drawer/index.js +5 -5
- package/dist/primitives/Drawer/index.js.map +1 -1
- package/dist/primitives/DropdownMenu/index.cjs +9 -9
- package/dist/primitives/DropdownMenu/index.cjs.map +1 -1
- package/dist/primitives/DropdownMenu/index.js +9 -9
- package/dist/primitives/DropdownMenu/index.js.map +1 -1
- package/dist/primitives/Empty/index.cjs +4 -4
- package/dist/primitives/Empty/index.cjs.map +1 -1
- package/dist/primitives/Empty/index.js +4 -4
- package/dist/primitives/Empty/index.js.map +1 -1
- package/dist/primitives/Field/index.cjs +5 -5
- package/dist/primitives/Field/index.cjs.map +1 -1
- package/dist/primitives/Field/index.js +5 -5
- package/dist/primitives/Field/index.js.map +1 -1
- package/dist/primitives/Form/index.cjs +1 -1
- package/dist/primitives/Form/index.cjs.map +1 -1
- package/dist/primitives/Form/index.js +1 -1
- package/dist/primitives/Form/index.js.map +1 -1
- package/dist/primitives/Heading/index.cjs +2 -2
- package/dist/primitives/Heading/index.cjs.map +1 -1
- package/dist/primitives/Heading/index.js +2 -2
- package/dist/primitives/Heading/index.js.map +1 -1
- package/dist/primitives/HoverCard/index.cjs +1 -1
- package/dist/primitives/HoverCard/index.cjs.map +1 -1
- package/dist/primitives/HoverCard/index.js +1 -1
- package/dist/primitives/HoverCard/index.js.map +1 -1
- package/dist/primitives/InfoBanner/index.cjs +12 -12
- package/dist/primitives/InfoBanner/index.cjs.map +1 -1
- package/dist/primitives/InfoBanner/index.js +12 -12
- package/dist/primitives/InfoBanner/index.js.map +1 -1
- package/dist/primitives/Input/index.cjs +13 -7
- package/dist/primitives/Input/index.cjs.map +1 -1
- package/dist/primitives/Input/index.js +13 -7
- package/dist/primitives/Input/index.js.map +1 -1
- package/dist/primitives/InputGroup/index.cjs +7 -7
- package/dist/primitives/InputGroup/index.cjs.map +1 -1
- package/dist/primitives/InputGroup/index.js +7 -7
- package/dist/primitives/InputGroup/index.js.map +1 -1
- package/dist/primitives/InputOtp/index.cjs +3 -3
- package/dist/primitives/InputOtp/index.cjs.map +1 -1
- package/dist/primitives/InputOtp/index.js +3 -3
- package/dist/primitives/InputOtp/index.js.map +1 -1
- package/dist/primitives/Item/index.cjs +6 -6
- package/dist/primitives/Item/index.cjs.map +1 -1
- package/dist/primitives/Item/index.js +6 -6
- package/dist/primitives/Item/index.js.map +1 -1
- package/dist/primitives/Kbd/index.cjs +1 -1
- package/dist/primitives/Kbd/index.cjs.map +1 -1
- package/dist/primitives/Kbd/index.js +1 -1
- package/dist/primitives/Kbd/index.js.map +1 -1
- package/dist/primitives/Link/index.cjs +4 -4
- package/dist/primitives/Link/index.cjs.map +1 -1
- package/dist/primitives/Link/index.js +4 -4
- package/dist/primitives/Link/index.js.map +1 -1
- package/dist/primitives/Menubar/index.cjs +12 -12
- package/dist/primitives/Menubar/index.cjs.map +1 -1
- package/dist/primitives/Menubar/index.js +12 -12
- package/dist/primitives/Menubar/index.js.map +1 -1
- package/dist/primitives/NativeSelect/index.cjs +5 -5
- package/dist/primitives/NativeSelect/index.cjs.map +1 -1
- package/dist/primitives/NativeSelect/index.js +5 -5
- package/dist/primitives/NativeSelect/index.js.map +1 -1
- package/dist/primitives/NavRail/index.cjs +9 -194
- package/dist/primitives/NavRail/index.d.cts +1 -0
- package/dist/primitives/NavRail/index.d.ts +1 -0
- package/dist/primitives/NavRail/index.js +1 -184
- package/dist/primitives/NavigationMenu/index.cjs +7 -7
- package/dist/primitives/NavigationMenu/index.cjs.map +1 -1
- package/dist/primitives/NavigationMenu/index.js +7 -7
- package/dist/primitives/NavigationMenu/index.js.map +1 -1
- package/dist/primitives/Pagination/index.cjs +7 -13
- package/dist/primitives/Pagination/index.cjs.map +1 -1
- package/dist/primitives/Pagination/index.d.cts +1 -1
- package/dist/primitives/Pagination/index.d.ts +1 -1
- package/dist/primitives/Pagination/index.js +8 -14
- package/dist/primitives/Pagination/index.js.map +1 -1
- package/dist/primitives/Popover/index.cjs +4 -4
- package/dist/primitives/Popover/index.cjs.map +1 -1
- package/dist/primitives/Popover/index.js +4 -4
- package/dist/primitives/Popover/index.js.map +1 -1
- package/dist/primitives/Progress/index.cjs +16 -16
- package/dist/primitives/Progress/index.cjs.map +1 -1
- package/dist/primitives/Progress/index.d.cts +1 -1
- package/dist/primitives/Progress/index.d.ts +1 -1
- package/dist/primitives/Progress/index.js +16 -16
- package/dist/primitives/Progress/index.js.map +1 -1
- package/dist/primitives/RadioGroup/index.cjs +7 -7
- 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 +7 -7
- package/dist/primitives/RadioGroup/index.js.map +1 -1
- package/dist/primitives/Resizable/index.cjs +2 -2
- package/dist/primitives/Resizable/index.cjs.map +1 -1
- package/dist/primitives/Resizable/index.d.cts +1 -1
- package/dist/primitives/Resizable/index.d.ts +1 -1
- package/dist/primitives/Resizable/index.js +2 -2
- package/dist/primitives/Resizable/index.js.map +1 -1
- package/dist/primitives/ScrollArea/index.cjs +2 -2
- package/dist/primitives/ScrollArea/index.cjs.map +1 -1
- package/dist/primitives/ScrollArea/index.d.cts +1 -1
- package/dist/primitives/ScrollArea/index.d.ts +1 -1
- package/dist/primitives/ScrollArea/index.js +2 -2
- package/dist/primitives/ScrollArea/index.js.map +1 -1
- package/dist/primitives/Select/index.cjs +8 -8
- package/dist/primitives/Select/index.cjs.map +1 -1
- package/dist/primitives/Select/index.d.cts +1 -1
- package/dist/primitives/Select/index.d.ts +1 -1
- package/dist/primitives/Select/index.js +8 -8
- package/dist/primitives/Select/index.js.map +1 -1
- package/dist/primitives/Separator/index.cjs +1 -1
- package/dist/primitives/Separator/index.cjs.map +1 -1
- package/dist/primitives/Separator/index.js +1 -1
- package/dist/primitives/Separator/index.js.map +1 -1
- package/dist/primitives/Sheet/index.cjs +8 -8
- 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 +8 -8
- 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.cjs +2 -2
- package/dist/primitives/Skeleton/index.cjs.map +1 -1
- package/dist/primitives/Skeleton/index.d.cts +1 -1
- package/dist/primitives/Skeleton/index.d.ts +1 -1
- package/dist/primitives/Skeleton/index.js +2 -2
- package/dist/primitives/Skeleton/index.js.map +1 -1
- package/dist/primitives/Slider/index.cjs +3 -3
- package/dist/primitives/Slider/index.cjs.map +1 -1
- package/dist/primitives/Slider/index.d.cts +1 -1
- package/dist/primitives/Slider/index.d.ts +1 -1
- package/dist/primitives/Slider/index.js +3 -3
- package/dist/primitives/Slider/index.js.map +1 -1
- package/dist/primitives/Sonner/index.cjs +13 -6
- package/dist/primitives/Sonner/index.cjs.map +1 -1
- package/dist/primitives/Sonner/index.d.cts +1 -1
- package/dist/primitives/Sonner/index.d.ts +1 -1
- package/dist/primitives/Sonner/index.js +13 -6
- package/dist/primitives/Sonner/index.js.map +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.cjs +7 -7
- package/dist/primitives/Switch/index.cjs.map +1 -1
- package/dist/primitives/Switch/index.d.cts +1 -1
- package/dist/primitives/Switch/index.d.ts +1 -1
- package/dist/primitives/Switch/index.js +7 -7
- package/dist/primitives/Switch/index.js.map +1 -1
- package/dist/primitives/Table/index.cjs +7 -7
- package/dist/primitives/Table/index.cjs.map +1 -1
- package/dist/primitives/Table/index.d.cts +1 -1
- package/dist/primitives/Table/index.d.ts +1 -1
- package/dist/primitives/Table/index.js +7 -7
- package/dist/primitives/Table/index.js.map +1 -1
- package/dist/primitives/Tabs/index.cjs +21 -21
- 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 +21 -21
- package/dist/primitives/Tabs/index.js.map +1 -1
- package/dist/primitives/Text/index.cjs +5 -5
- package/dist/primitives/Text/index.cjs.map +1 -1
- package/dist/primitives/Text/index.d.cts +1 -1
- package/dist/primitives/Text/index.d.ts +1 -1
- package/dist/primitives/Text/index.js +5 -5
- package/dist/primitives/Text/index.js.map +1 -1
- package/dist/primitives/Textarea/index.cjs +20 -8
- package/dist/primitives/Textarea/index.cjs.map +1 -1
- package/dist/primitives/Textarea/index.d.cts +1 -1
- package/dist/primitives/Textarea/index.d.ts +1 -1
- package/dist/primitives/Textarea/index.js +20 -8
- package/dist/primitives/Textarea/index.js.map +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.cjs +11 -10
- package/dist/primitives/Toggle/index.cjs.map +1 -1
- package/dist/primitives/Toggle/index.d.cts +1 -1
- package/dist/primitives/Toggle/index.d.ts +1 -1
- package/dist/primitives/Toggle/index.js +11 -10
- package/dist/primitives/Toggle/index.js.map +1 -1
- package/dist/primitives/ToggleGroup/index.cjs +2 -2
- package/dist/primitives/ToggleGroup/index.cjs.map +1 -1
- package/dist/primitives/ToggleGroup/index.d.cts +1 -1
- package/dist/primitives/ToggleGroup/index.d.ts +1 -1
- package/dist/primitives/ToggleGroup/index.js +2 -2
- package/dist/primitives/ToggleGroup/index.js.map +1 -1
- package/dist/primitives/Tooltip/index.cjs +2 -2
- package/dist/primitives/Tooltip/index.cjs.map +1 -1
- package/dist/primitives/Tooltip/index.d.cts +1 -1
- package/dist/primitives/Tooltip/index.d.ts +1 -1
- package/dist/primitives/Tooltip/index.js +2 -2
- package/dist/primitives/Tooltip/index.js.map +1 -1
- package/dist/primitives/index.cjs +10 -10
- package/dist/primitives/index.d.cts +21 -21
- package/dist/primitives/index.d.ts +21 -21
- package/dist/primitives/index.js +2 -2
- package/dist/styles/base.css +23 -4
- package/dist/styles/brand-scopes.css +49 -0
- package/dist/styles/glass.css +13 -8
- package/dist/styles/index.css +8 -9
- package/dist/styles/theme.css +141 -90
- package/dist/styles/tokens/border-radius.css +8 -8
- package/dist/styles/tokens/mode-dark.css +71 -94
- package/dist/styles/tokens/mode-light.css +71 -94
- package/dist/styles/tokens/shadows.css +4 -7
- package/dist/styles/tokens/spacing.css +17 -37
- package/dist/styles/tokens/theme-bodhi.css +6 -28
- package/dist/styles/tokens/theme-slingshot.css +7 -28
- package/dist/styles/tokens/theme-sustain.css +6 -28
- package/dist/styles/typography.css +9 -9
- package/package.json +8 -2
- package/dist/index44.d.cts.map +0 -1
- package/dist/index44.d.ts.map +0 -1
- package/dist/primitives/NavRail/index.cjs.map +0 -1
- package/dist/primitives/NavRail/index.js.map +0 -1
- package/dist/styles/semantic.css +0 -178
- package/dist/styles/tokens/alpha.css +0 -39
- package/dist/styles/tokens/chart-colors-dark.css +0 -18
- package/dist/styles/tokens/chart-colors-light.css +0 -18
- package/dist/styles/tokens/colors.css +0 -251
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { r as ThemeProduct } from "./index63.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import * as react_jsx_runtime218 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/patterns/Header/types.d.ts
|
|
7
|
+
/** A node in the project hierarchy returned by the projects API. */
|
|
8
|
+
interface ProjectNode {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
children: ProjectNode[];
|
|
12
|
+
/** Ancestor context node — shown for orientation but not selectable. */
|
|
13
|
+
isContextOnly?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Fully-qualified API endpoints. Built from `apiBaseUrl`; individually overridable. */
|
|
16
|
+
interface HeaderEndpoints {
|
|
17
|
+
token: string;
|
|
18
|
+
me: string;
|
|
19
|
+
logout: string;
|
|
20
|
+
projects: (clientId: string) => string;
|
|
21
|
+
credits: string;
|
|
22
|
+
}
|
|
23
|
+
/** A fetch-compatible function, so hosts/tests can inject their own (e.g. mocks). */
|
|
24
|
+
type Fetcher = typeof fetch;
|
|
25
|
+
/** Props for the wired {@link Header} pattern (auth, data layer, and visibility toggles). */
|
|
26
|
+
interface HeaderProps {
|
|
27
|
+
/** API base URL with full domain, e.g. `https://dev.abc.com`. Studio-auth API host. */
|
|
28
|
+
apiBaseUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
31
|
+
* (a JWT) — the header decodes it to determine whether the user is logged in.
|
|
32
|
+
*/
|
|
33
|
+
environmentId: string;
|
|
34
|
+
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
35
|
+
logoType?: ThemeProduct;
|
|
36
|
+
/** Show the read-only organisation pill. */
|
|
37
|
+
showOrg?: boolean;
|
|
38
|
+
/** Show the project picker (and the first-run selection overlay). */
|
|
39
|
+
showProjectDropdown?: boolean;
|
|
40
|
+
/** Show the profile menu (user email + logout). */
|
|
41
|
+
showProfile?: boolean;
|
|
42
|
+
/** Show the light/dark theme toggle. */
|
|
43
|
+
showThemeSwitcher?: boolean;
|
|
44
|
+
/** Show the remaining-credits pill (logged-in users only). */
|
|
45
|
+
showCredits?: boolean;
|
|
46
|
+
/** Page title shown next to the logo. Omitted when not provided. */
|
|
47
|
+
pageTitle?: string;
|
|
48
|
+
/**
|
|
49
|
+
* URL for the feedback action (message-square-share icon). When omitted the
|
|
50
|
+
* icon is hidden; when set, the icon renders and links here.
|
|
51
|
+
*/
|
|
52
|
+
feedbackUrl?: string;
|
|
53
|
+
/** Active org id from the host session; overrides the value from `/me`. */
|
|
54
|
+
clientId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
57
|
+
* own token fetch. The header is designed to resolve its own token from the
|
|
58
|
+
* session cookie; only reach for this when the host has *already* fetched a
|
|
59
|
+
* token and a duplicate round-trip is genuinely unacceptable. Misuse couples
|
|
60
|
+
* the header to host token lifecycle/refresh and can serve stale auth.
|
|
61
|
+
*/
|
|
62
|
+
_dangerouslyInjectAccessToken?: string;
|
|
63
|
+
/** Called when the user picks a project. */
|
|
64
|
+
onProjectChange?: (id: string) => void;
|
|
65
|
+
/** Called when the user closes the selection overlay. */
|
|
66
|
+
onCloseProjectOverlay?: () => void;
|
|
67
|
+
/** Node rendered between the logo and the project picker. */
|
|
68
|
+
logoAddon?: ReactNode;
|
|
69
|
+
className?: string;
|
|
70
|
+
/** Override individual endpoint paths (defaults derive from `apiBaseUrl`). */
|
|
71
|
+
endpoints?: Partial<Omit<HeaderEndpoints, "projects">> & {
|
|
72
|
+
projects?: (clientId: string) => string;
|
|
73
|
+
};
|
|
74
|
+
/** Custom fetch implementation (defaults to global `fetch`). Useful for tests/Storybook. */
|
|
75
|
+
fetcher?: Fetcher;
|
|
76
|
+
/** How long fetched data stays fresh before refetch, in ms. Default 5 min. */
|
|
77
|
+
staleTime?: number;
|
|
78
|
+
/** How long unused data is cached, in ms. Default 10 min. */
|
|
79
|
+
gcTime?: number;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=types.d.ts.map
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/patterns/Header/Header.d.ts
|
|
84
|
+
/** The header bar shell — a sticky glass strip. */
|
|
85
|
+
declare function HeaderBar({
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}: React.ComponentProps<"header">): react_jsx_runtime218.JSX.Element;
|
|
89
|
+
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
90
|
+
declare function HeaderLogo({
|
|
91
|
+
brand
|
|
92
|
+
}: {
|
|
93
|
+
brand: ThemeProduct;
|
|
94
|
+
}): react_jsx_runtime218.JSX.Element;
|
|
95
|
+
/** Read-only organisation pill. */
|
|
96
|
+
declare function OrgPill({
|
|
97
|
+
name,
|
|
98
|
+
loading
|
|
99
|
+
}: {
|
|
100
|
+
name?: string;
|
|
101
|
+
loading?: boolean;
|
|
102
|
+
}): react_jsx_runtime218.JSX.Element | null;
|
|
103
|
+
/** Light/dark toggle — defers to ThemeProvider. */
|
|
104
|
+
declare function ThemeToggle(): react_jsx_runtime218.JSX.Element;
|
|
105
|
+
/** Profile menu — avatar trigger with email + logout. */
|
|
106
|
+
declare function ProfileMenu({
|
|
107
|
+
email,
|
|
108
|
+
onLogout
|
|
109
|
+
}: {
|
|
110
|
+
email?: string;
|
|
111
|
+
onLogout: () => void;
|
|
112
|
+
}): react_jsx_runtime218.JSX.Element;
|
|
113
|
+
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
114
|
+
declare function Header(props: HeaderProps): react_jsx_runtime218.JSX.Element;
|
|
115
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
118
|
+
interface ProjectPickerProps {
|
|
119
|
+
projectsTree: ProjectNode[];
|
|
120
|
+
selectedProjectId: string;
|
|
121
|
+
selectedProjectName?: string;
|
|
122
|
+
onSelect: (id: string) => void;
|
|
123
|
+
projectLabel: string;
|
|
124
|
+
projectPlaceholder: string;
|
|
125
|
+
searchPlaceholder: string;
|
|
126
|
+
emptyStateText: string;
|
|
127
|
+
isLoading?: boolean;
|
|
128
|
+
}
|
|
129
|
+
declare function ProjectPicker({
|
|
130
|
+
projectsTree,
|
|
131
|
+
selectedProjectId,
|
|
132
|
+
selectedProjectName,
|
|
133
|
+
onSelect,
|
|
134
|
+
projectLabel,
|
|
135
|
+
projectPlaceholder,
|
|
136
|
+
searchPlaceholder,
|
|
137
|
+
emptyStateText,
|
|
138
|
+
isLoading
|
|
139
|
+
}: Readonly<ProjectPickerProps>): react_jsx_runtime218.JSX.Element;
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/patterns/Header/use-global-header.d.ts
|
|
142
|
+
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
143
|
+
declare const TOGGLE_PROJECT_DROPDOWN_EVENT = "toggle-project-dropdown";
|
|
144
|
+
interface ToggleProjectDropdownDetail {
|
|
145
|
+
show: boolean;
|
|
146
|
+
}
|
|
147
|
+
interface GlobalHeaderState {
|
|
148
|
+
/** Whether a valid session cookie exists — when false, hide all user content. */
|
|
149
|
+
isAuthenticated: boolean;
|
|
150
|
+
userEmail: string | undefined;
|
|
151
|
+
organizationName: string | undefined;
|
|
152
|
+
projectsTree: ProjectNode[];
|
|
153
|
+
selectedProjectId: string;
|
|
154
|
+
selectedProjectName: string | undefined;
|
|
155
|
+
isProjectsLoading: boolean;
|
|
156
|
+
isOrgLoading: boolean;
|
|
157
|
+
/** Remaining credits for the user (undefined until loaded / when disabled). */
|
|
158
|
+
credits: number | undefined;
|
|
159
|
+
/** Where the credits pill links to (studio-auth `/user/activity`). */
|
|
160
|
+
creditsHref: string;
|
|
161
|
+
projectDropdownVisible: boolean;
|
|
162
|
+
/** True when the dropdown is on, the user is in, but no project is chosen yet. */
|
|
163
|
+
showOverlay: boolean;
|
|
164
|
+
selectProject: (id: string) => void;
|
|
165
|
+
logout: () => void;
|
|
166
|
+
}
|
|
167
|
+
type UseGlobalHeaderArgs = Pick<HeaderProps, "apiBaseUrl" | "environmentId" | "clientId" | "_dangerouslyInjectAccessToken" | "showProjectDropdown" | "showProfile" | "showOrg" | "showCredits" | "endpoints" | "fetcher" | "staleTime" | "gcTime" | "onProjectChange">;
|
|
168
|
+
declare function useGlobalHeader({
|
|
169
|
+
apiBaseUrl,
|
|
170
|
+
environmentId,
|
|
171
|
+
clientId,
|
|
172
|
+
_dangerouslyInjectAccessToken: injectedToken,
|
|
173
|
+
showProjectDropdown,
|
|
174
|
+
showProfile,
|
|
175
|
+
showOrg,
|
|
176
|
+
showCredits,
|
|
177
|
+
endpoints: endpointOverrides,
|
|
178
|
+
fetcher: fetcherProp,
|
|
179
|
+
staleTime,
|
|
180
|
+
gcTime,
|
|
181
|
+
onProjectChange
|
|
182
|
+
}: UseGlobalHeaderArgs): GlobalHeaderState;
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/patterns/Header/header-store.d.ts
|
|
185
|
+
interface HeaderSelection {
|
|
186
|
+
selectedProjectId: string;
|
|
187
|
+
selectedProjectName: string;
|
|
188
|
+
organizationName: string | undefined;
|
|
189
|
+
/** Remaining credits for the logged-in user (read-only here; set by the Header). */
|
|
190
|
+
credits: number | undefined;
|
|
191
|
+
/** Client/org the current selection + org belong to (for cross-org invalidation). */
|
|
192
|
+
clientId: string | undefined;
|
|
193
|
+
}
|
|
194
|
+
interface UseHeaderProjectResult {
|
|
195
|
+
selectedProjectId: string;
|
|
196
|
+
selectedProjectName: string | undefined;
|
|
197
|
+
organizationName: string | undefined;
|
|
198
|
+
/** Set the active project from outside the Header (by id). */
|
|
199
|
+
setProject: (id: string) => void;
|
|
200
|
+
/** Clear the active project (e.g. to re-prompt selection). */
|
|
201
|
+
clearProject: () => void;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Read the current project/org and change the project from anywhere in the app —
|
|
205
|
+
* no need to be inside the <Header>. Reflects user selections made in the header
|
|
206
|
+
* and updates the header when changed here.
|
|
207
|
+
*/
|
|
208
|
+
declare function useHeaderProject(): UseHeaderProjectResult;
|
|
209
|
+
/** Read the logged-in user's remaining credits (read-only; the Header owns it). */
|
|
210
|
+
declare function useHeaderCredits(): number | undefined;
|
|
211
|
+
//# sourceMappingURL=header-store.d.ts.map
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/patterns/Header/session.d.ts
|
|
214
|
+
/** Read the raw session JWT from the `{environmentId}-sessionId` cookie. */
|
|
215
|
+
declare function getSessionToken(environmentId: string): string | null;
|
|
216
|
+
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
217
|
+
|
|
218
|
+
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
219
|
+
declare function isSessionValid(environmentId: string): boolean;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/patterns/Header/api.d.ts
|
|
222
|
+
declare function buildEndpoints(apiBaseUrl: string, overrides?: HeaderProps["endpoints"]): HeaderEndpoints;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/patterns/Header/labels.d.ts
|
|
225
|
+
/** Default UI strings. Spread-override via the Header `labels` prop if needed. */
|
|
226
|
+
declare const DEFAULT_LABELS: {
|
|
227
|
+
readonly orgLabel: "Org";
|
|
228
|
+
readonly projectLabel: "Project";
|
|
229
|
+
readonly projectPlaceholder: "Select project...";
|
|
230
|
+
readonly searchPlaceholder: "Search project";
|
|
231
|
+
readonly emptyStateText: "No projects found";
|
|
232
|
+
readonly profileMenuLabel: "Profile menu";
|
|
233
|
+
readonly logoutLabel: "Logout";
|
|
234
|
+
readonly overlayTitle: "Select a Project";
|
|
235
|
+
readonly overlayDescription: "Choose a project to get started. You can change it anytime from the header.";
|
|
236
|
+
};
|
|
237
|
+
type Labels = typeof DEFAULT_LABELS;
|
|
238
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
239
|
+
|
|
240
|
+
//#endregion
|
|
241
|
+
export { HeaderProps as C, HeaderEndpoints as S, HeaderLogo as _, isSessionValid as a, ThemeToggle as b, useHeaderCredits as c, TOGGLE_PROJECT_DROPDOWN_EVENT as d, ToggleProjectDropdownDetail as f, HeaderBar as g, Header as h, getSessionToken as i, useHeaderProject as l, ProjectPicker as m, Labels as n, HeaderSelection as o, useGlobalHeader as p, buildEndpoints as r, UseHeaderProjectResult as s, DEFAULT_LABELS as t, GlobalHeaderState as u, OrgPill as v, ProjectNode as w, Fetcher as x, ProfileMenu as y };
|
|
242
|
+
//# sourceMappingURL=index71.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index71.d.ts","names":[],"sources":["../src/patterns/Header/types.ts","../src/patterns/Header/Header.tsx","../src/patterns/Header/ProjectPicker.tsx","../src/patterns/Header/use-global-header.ts","../src/patterns/Header/header-store.ts","../src/patterns/Header/session.ts","../src/patterns/Header/api.ts","../src/patterns/Header/labels.ts"],"mappings":"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"}
|
package/dist/index8.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types24 from "class-variance-authority/types";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
9
|
-
size?: "default" | "xs" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
|
+
variant?: "default" | "outline" | "ai" | "destructive" | "link" | "secondary" | "ghost" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | "xl" | "icon-xs" | "icon-sm" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
10
|
shape?: "default" | "square" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types24.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index8.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.d.cts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index8.d.cts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD,gCAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAEI,WAAA,GAAc,cAAH,CAAA,QAAA,CAAA,GACd,YADc,CAAA,OACM,cADN,CAAA,GAAA;EAAA;SAAG,CAAA,EAAA,OAAA;;SACjB,CAAA,EAAA,OAAA;AAAY,CAAA;AAAA;;;;;cAYR,MAAM,EAAA,MAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,WAAA,EAAA,KAAA,CAAA,GAAA,MAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,CAAA"}
|
package/dist/index8.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Button/Button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "
|
|
9
|
-
size?: "sm" | "lg" | "default" | "xs" | "icon" | null | undefined;
|
|
8
|
+
variant?: "default" | "link" | "destructive" | "outline" | "ai" | "secondary" | "ghost" | "destructive-ghost" | null | undefined;
|
|
9
|
+
size?: "xs" | "sm" | "lg" | "xl" | "default" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "icon-xl" | null | undefined;
|
|
10
10
|
shape?: "default" | "square" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
13
13
|
/** Render as the child element (Radix `Slot`) instead of a native `<button>`. */
|
|
14
14
|
asChild?: boolean;
|
package/dist/index8.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.d.ts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index8.d.ts","names":[],"sources":["../src/primitives/Button/Button.tsx"],"mappings":";;;;;;cAUM,sBA4CL;;;;AApDuD,CAAA,GAoDvD,gCAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAEI,WAAA,GAAc,cAAH,CAAA,QAAA,CAAA,GACd,YADc,CAAA,OACM,cADN,CAAA,GAAA;EAAA;SAAG,CAAA,EAAA,OAAA;;SACjB,CAAA,EAAA,OAAA;AAAY,CAAA;AAAA;;;;;cAYR,MAAM,EAAA,MAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,WAAA,EAAA,KAAA,CAAA,GAAA,MAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,CAAA"}
|
package/dist/index9.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime114.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.cts.map
|
package/dist/index9.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Separator/Separator.d.ts
|
|
6
6
|
type SeparatorSpacing = "none" | "regular" | "spacious";
|
|
@@ -14,7 +14,7 @@ declare function Separator$1({
|
|
|
14
14
|
}: React.ComponentProps<typeof Separator.Root> & {
|
|
15
15
|
/** Margin applied around the rule along its axis: `none`, `regular`, or `spacious`. */
|
|
16
16
|
spacing?: SeparatorSpacing;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime61.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SeparatorSpacing as n, Separator$1 as t };
|
|
20
20
|
//# sourceMappingURL=index9.d.ts.map
|
|
@@ -5,14 +5,14 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
5
5
|
const containerVariants = (0, require("class-variance-authority").cva)("mx-auto w-full", {
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
8
|
-
narrow: "max-w-
|
|
9
|
-
content: "max-w-
|
|
10
|
-
wide: "max-w-
|
|
8
|
+
narrow: "max-w-225",
|
|
9
|
+
content: "max-w-300",
|
|
10
|
+
wide: "max-w-360",
|
|
11
11
|
full: "max-w-none"
|
|
12
12
|
},
|
|
13
13
|
variant: {
|
|
14
14
|
default: "px-4",
|
|
15
|
-
glass: "rounded-
|
|
15
|
+
glass: "rounded-16 bg-glass-40-bg px-4 py-4 backdrop-blur-glass sm:px-6"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/layouts/Container/Container.tsx"],"sourcesContent":["import { type VariantProps, cva } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// Container — centered, max-width page column with consistent gutters.\n// `narrow` ~ a reading/hero column; `wide` ~ a full content area.\nconst containerVariants = cva(\"mx-auto w-full\", {\n variants: {\n size: {\n narrow: \"max-w-
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/layouts/Container/Container.tsx"],"sourcesContent":["import { type VariantProps, cva } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// Container — centered, max-width page column with consistent gutters.\n// `narrow` ~ a reading/hero column; `wide` ~ a full content area.\nconst containerVariants = cva(\"mx-auto w-full\", {\n variants: {\n size: {\n narrow: \"max-w-225\",\n content: \"max-w-300\",\n wide: \"max-w-360\",\n full: \"max-w-none\",\n },\n // `glass` makes the centered column a translucent, blurred panel.\n variant: {\n default: \"px-4\",\n glass: \"rounded-16 bg-glass-40-bg px-4 py-4 backdrop-blur-glass sm:px-6\",\n },\n },\n defaultVariants: {\n size: \"content\",\n variant: \"default\",\n },\n});\n\ntype ContainerProps = React.ComponentProps<\"div\"> &\n VariantProps<typeof containerVariants> & {\n /** Element/component to render as instead of the default `div` (e.g. `main`, `section`). */\n as?: React.ElementType;\n };\n\n/** Centered, max-width page column with consistent gutters; optionally a glass panel. */\nfunction Container({ as, className, size, variant, ...props }: ContainerProps) {\n const Comp = as ?? \"div\";\n return (\n <Comp\n data-slot=\"container\"\n data-variant={variant ?? \"default\"}\n className={cn(containerVariants({ size, variant }), className)}\n {...props}\n />\n );\n}\n\nexport { Container, containerVariants, type ContainerProps };\n"],"mappings":";;;;AAOA,MAAM,qBAAA,qCAAA,EAAA,KAAwB,kBAAkB;CAC9C,UAAU;EACR,MAAM;GACJ,QAAQ;GACR,SAAS;GACT,MAAM;GACN,MAAM;EACR;EAEA,SAAS;GACP,SAAS;GACT,OAAO;EACT;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;;AASD,SAAS,UAAU,EAAE,IAAI,WAAW,MAAM,SAAS,GAAG,SAAyB;CAE7E,OACE,iBAAA,GAAA,kBAAA,KAFW,MAAM,OAEjB;EACE,aAAU;EACV,gBAAc,WAAW;EACzB,WAAWA,WAAAA,GAAG,kBAAkB;GAAE;GAAM;EAAQ,CAAC,GAAG,SAAS;EAC7D,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ContainerProps, r as containerVariants, t as Container } from "../../
|
|
1
|
+
import { n as ContainerProps, r as containerVariants, t as Container } from "../../index66.cjs";
|
|
2
2
|
export { Container, ContainerProps, containerVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ContainerProps, r as containerVariants, t as Container } from "../../
|
|
1
|
+
import { n as ContainerProps, r as containerVariants, t as Container } from "../../index66.js";
|
|
2
2
|
export { Container, ContainerProps, containerVariants };
|
|
@@ -5,14 +5,14 @@ import { cva } from "class-variance-authority";
|
|
|
5
5
|
const containerVariants = cva("mx-auto w-full", {
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
8
|
-
narrow: "max-w-
|
|
9
|
-
content: "max-w-
|
|
10
|
-
wide: "max-w-
|
|
8
|
+
narrow: "max-w-225",
|
|
9
|
+
content: "max-w-300",
|
|
10
|
+
wide: "max-w-360",
|
|
11
11
|
full: "max-w-none"
|
|
12
12
|
},
|
|
13
13
|
variant: {
|
|
14
14
|
default: "px-4",
|
|
15
|
-
glass: "rounded-
|
|
15
|
+
glass: "rounded-16 bg-glass-40-bg px-4 py-4 backdrop-blur-glass sm:px-6"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/layouts/Container/Container.tsx"],"sourcesContent":["import { type VariantProps, cva } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// Container — centered, max-width page column with consistent gutters.\n// `narrow` ~ a reading/hero column; `wide` ~ a full content area.\nconst containerVariants = cva(\"mx-auto w-full\", {\n variants: {\n size: {\n narrow: \"max-w-
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/layouts/Container/Container.tsx"],"sourcesContent":["import { type VariantProps, cva } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// Container — centered, max-width page column with consistent gutters.\n// `narrow` ~ a reading/hero column; `wide` ~ a full content area.\nconst containerVariants = cva(\"mx-auto w-full\", {\n variants: {\n size: {\n narrow: \"max-w-225\",\n content: \"max-w-300\",\n wide: \"max-w-360\",\n full: \"max-w-none\",\n },\n // `glass` makes the centered column a translucent, blurred panel.\n variant: {\n default: \"px-4\",\n glass: \"rounded-16 bg-glass-40-bg px-4 py-4 backdrop-blur-glass sm:px-6\",\n },\n },\n defaultVariants: {\n size: \"content\",\n variant: \"default\",\n },\n});\n\ntype ContainerProps = React.ComponentProps<\"div\"> &\n VariantProps<typeof containerVariants> & {\n /** Element/component to render as instead of the default `div` (e.g. `main`, `section`). */\n as?: React.ElementType;\n };\n\n/** Centered, max-width page column with consistent gutters; optionally a glass panel. */\nfunction Container({ as, className, size, variant, ...props }: ContainerProps) {\n const Comp = as ?? \"div\";\n return (\n <Comp\n data-slot=\"container\"\n data-variant={variant ?? \"default\"}\n className={cn(containerVariants({ size, variant }), className)}\n {...props}\n />\n );\n}\n\nexport { Container, containerVariants, type ContainerProps };\n"],"mappings":";;;;AAOA,MAAM,oBAAoB,IAAI,kBAAkB;CAC9C,UAAU;EACR,MAAM;GACJ,QAAQ;GACR,SAAS;GACT,MAAM;GACN,MAAM;EACR;EAEA,SAAS;GACP,SAAS;GACT,OAAO;EACT;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;;AASD,SAAS,UAAU,EAAE,IAAI,WAAW,MAAM,SAAS,GAAG,SAAyB;CAE7E,OACE,oBAFW,MAAM,OAEjB;EACE,aAAU;EACV,gBAAc,WAAW;EACzB,WAAW,GAAG,kBAAkB;GAAE;GAAM;EAAQ,CAAC,GAAG,SAAS;EAC7D,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -2,13 +2,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_cn = require("../../cn.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
//#region src/layouts/PageBackground/PageBackground.tsx
|
|
5
|
-
const PAGE_GRADIENT = "radial-gradient(circle at 90% 10%, var(--
|
|
5
|
+
const PAGE_GRADIENT = "radial-gradient(circle at 90% 10%, var(--brand-gradient-to) 0%, var(--brand-gradient-from) 25%, var(--brand-gradient-to) 60%)";
|
|
6
6
|
/** Ambient, theme-aware radial-gradient backdrop that sits behind the app so glass surfaces read. */
|
|
7
7
|
function PageBackground({ fixed = true, className, style, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9
9
|
"data-slot": "page-background",
|
|
10
10
|
"aria-hidden": true,
|
|
11
|
-
className: require_cn.cn("pointer-events-none inset-0 bg-
|
|
11
|
+
className: require_cn.cn("pointer-events-none inset-0 bg-brand-gradient-to", fixed ? "fixed -z-10" : "absolute", className),
|
|
12
12
|
style: {
|
|
13
13
|
backgroundImage: PAGE_GRADIENT,
|
|
14
14
|
...style
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/layouts/PageBackground/PageBackground.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// PageBackground — ambient gradient backdrop that sits behind the app and makes\n// glass surfaces read. Composes a radial gradient from the theme-aware\n// `--
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/layouts/PageBackground/PageBackground.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// PageBackground — ambient gradient backdrop that sits behind the app and makes\n// glass surfaces read. Composes a radial gradient from the theme-aware\n// `--brand-gradient-from` (the active brand tint — Figma bg/page/gradient-1)\n// and `--brand-gradient-to` (neutral slate — bg/page/gradient-2) mode tokens,\n// so it changes with `.theme-*` and light/dark.\n// The gradient is built here (a real property) rather than as a composite token\n// so the vars resolve in this element's theme scope. Decorative (aria-hidden).\n//\n// By default it's `fixed` behind the page (the app body must be transparent);\n// set `fixed={false}` to fill a positioned parent instead.\nconst PAGE_GRADIENT =\n \"radial-gradient(circle at 90% 10%, var(--brand-gradient-to) 0%, var(--brand-gradient-from) 25%, var(--brand-gradient-to) 60%)\";\n\n/** Props for {@link PageBackground}; extends the native `div` props. */\ntype PageBackgroundProps = React.ComponentProps<\"div\"> & {\n /** Fixed to the viewport (default) vs absolute-fill of a positioned parent. */\n fixed?: boolean;\n};\n\n/** Ambient, theme-aware radial-gradient backdrop that sits behind the app so glass surfaces read. */\nfunction PageBackground({ fixed = true, className, style, ...props }: PageBackgroundProps) {\n return (\n <div\n data-slot=\"page-background\"\n aria-hidden\n // Neutral fallback color under the gradient so it's never fully empty.\n className={cn(\n \"pointer-events-none inset-0 bg-brand-gradient-to\",\n fixed ? \"fixed -z-10\" : \"absolute\",\n className,\n )}\n style={{ backgroundImage: PAGE_GRADIENT, ...style }}\n {...props}\n />\n );\n}\n\nexport { PageBackground, type PageBackgroundProps };\n"],"mappings":";;;;AAcA,MAAM,gBACJ;;AASF,SAAS,eAAe,EAAE,QAAQ,MAAM,WAAW,OAAO,GAAG,SAA8B;CACzF,OACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EACE,aAAU;EACV,eAAA;EAEA,WAAWA,WAAAA,GACT,oDACA,QAAQ,gBAAgB,YACxB,SACF;EACA,OAAO;GAAE,iBAAiB;GAAe,GAAG;EAAM;EAClD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PageBackgroundProps, t as PageBackground } from "../../
|
|
1
|
+
import { n as PageBackgroundProps, t as PageBackground } from "../../index67.cjs";
|
|
2
2
|
export { PageBackground, PageBackgroundProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PageBackgroundProps, t as PageBackground } from "../../
|
|
1
|
+
import { n as PageBackgroundProps, t as PageBackground } from "../../index67.js";
|
|
2
2
|
export { PageBackground, PageBackgroundProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as cn } from "../../cn.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/layouts/PageBackground/PageBackground.tsx
|
|
4
|
-
const PAGE_GRADIENT = "radial-gradient(circle at 90% 10%, var(--
|
|
4
|
+
const PAGE_GRADIENT = "radial-gradient(circle at 90% 10%, var(--brand-gradient-to) 0%, var(--brand-gradient-from) 25%, var(--brand-gradient-to) 60%)";
|
|
5
5
|
/** Ambient, theme-aware radial-gradient backdrop that sits behind the app so glass surfaces read. */
|
|
6
6
|
function PageBackground({ fixed = true, className, style, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
8
8
|
"data-slot": "page-background",
|
|
9
9
|
"aria-hidden": true,
|
|
10
|
-
className: cn("pointer-events-none inset-0 bg-
|
|
10
|
+
className: cn("pointer-events-none inset-0 bg-brand-gradient-to", fixed ? "fixed -z-10" : "absolute", className),
|
|
11
11
|
style: {
|
|
12
12
|
backgroundImage: PAGE_GRADIENT,
|
|
13
13
|
...style
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/layouts/PageBackground/PageBackground.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// PageBackground — ambient gradient backdrop that sits behind the app and makes\n// glass surfaces read. Composes a radial gradient from the theme-aware\n// `--
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/layouts/PageBackground/PageBackground.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n// PageBackground — ambient gradient backdrop that sits behind the app and makes\n// glass surfaces read. Composes a radial gradient from the theme-aware\n// `--brand-gradient-from` (the active brand tint — Figma bg/page/gradient-1)\n// and `--brand-gradient-to` (neutral slate — bg/page/gradient-2) mode tokens,\n// so it changes with `.theme-*` and light/dark.\n// The gradient is built here (a real property) rather than as a composite token\n// so the vars resolve in this element's theme scope. Decorative (aria-hidden).\n//\n// By default it's `fixed` behind the page (the app body must be transparent);\n// set `fixed={false}` to fill a positioned parent instead.\nconst PAGE_GRADIENT =\n \"radial-gradient(circle at 90% 10%, var(--brand-gradient-to) 0%, var(--brand-gradient-from) 25%, var(--brand-gradient-to) 60%)\";\n\n/** Props for {@link PageBackground}; extends the native `div` props. */\ntype PageBackgroundProps = React.ComponentProps<\"div\"> & {\n /** Fixed to the viewport (default) vs absolute-fill of a positioned parent. */\n fixed?: boolean;\n};\n\n/** Ambient, theme-aware radial-gradient backdrop that sits behind the app so glass surfaces read. */\nfunction PageBackground({ fixed = true, className, style, ...props }: PageBackgroundProps) {\n return (\n <div\n data-slot=\"page-background\"\n aria-hidden\n // Neutral fallback color under the gradient so it's never fully empty.\n className={cn(\n \"pointer-events-none inset-0 bg-brand-gradient-to\",\n fixed ? \"fixed -z-10\" : \"absolute\",\n className,\n )}\n style={{ backgroundImage: PAGE_GRADIENT, ...style }}\n {...props}\n />\n );\n}\n\nexport { PageBackground, type PageBackgroundProps };\n"],"mappings":";;;AAcA,MAAM,gBACJ;;AASF,SAAS,eAAe,EAAE,QAAQ,MAAM,WAAW,OAAO,GAAG,SAA8B;CACzF,OACE,oBAAC,OAAD;EACE,aAAU;EACV,eAAA;EAEA,WAAW,GACT,oDACA,QAAQ,gBAAgB,YACxB,SACF;EACA,OAAO;GAAE,iBAAiB;GAAe,GAAG;EAAM;EAClD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StackProps, r as stackVariants, t as Stack } from "../../
|
|
1
|
+
import { n as StackProps, r as stackVariants, t as Stack } from "../../index68.cjs";
|
|
2
2
|
export { Stack, StackProps, stackVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StackProps, r as stackVariants, t as Stack } from "../../
|
|
1
|
+
import { n as StackProps, r as stackVariants, t as Stack } from "../../index68.js";
|
|
2
2
|
export { Stack, StackProps, stackVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../../
|
|
1
|
+
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../../index69.cjs";
|
|
2
2
|
export { TwoColumn, TwoColumnAside, TwoColumnMain, TwoColumnProps, twoColumnVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../../
|
|
1
|
+
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../../index69.js";
|
|
2
2
|
export { TwoColumn, TwoColumnAside, TwoColumnMain, TwoColumnProps, twoColumnVariants };
|
package/dist/layouts/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ContainerProps, r as containerVariants, t as Container } from "../
|
|
2
|
-
import { n as PageBackgroundProps, t as PageBackground } from "../
|
|
3
|
-
import { n as StackProps, r as stackVariants, t as Stack } from "../
|
|
4
|
-
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../
|
|
1
|
+
import { n as ContainerProps, r as containerVariants, t as Container } from "../index66.cjs";
|
|
2
|
+
import { n as PageBackgroundProps, t as PageBackground } from "../index67.cjs";
|
|
3
|
+
import { n as StackProps, r as stackVariants, t as Stack } from "../index68.cjs";
|
|
4
|
+
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../index69.cjs";
|
|
5
5
|
export { Container, ContainerProps, PageBackground, PageBackgroundProps, Stack, StackProps, TwoColumn, TwoColumnAside, TwoColumnMain, TwoColumnProps, containerVariants, stackVariants, twoColumnVariants };
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ContainerProps, r as containerVariants, t as Container } from "../
|
|
2
|
-
import { n as PageBackgroundProps, t as PageBackground } from "../
|
|
3
|
-
import { n as StackProps, r as stackVariants, t as Stack } from "../
|
|
4
|
-
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../
|
|
1
|
+
import { n as ContainerProps, r as containerVariants, t as Container } from "../index66.js";
|
|
2
|
+
import { n as PageBackgroundProps, t as PageBackground } from "../index67.js";
|
|
3
|
+
import { n as StackProps, r as stackVariants, t as Stack } from "../index68.js";
|
|
4
|
+
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "../index69.js";
|
|
5
5
|
export { Container, ContainerProps, PageBackground, PageBackgroundProps, Stack, StackProps, TwoColumn, TwoColumnAside, TwoColumnMain, TwoColumnProps, containerVariants, stackVariants, twoColumnVariants };
|
|
@@ -34,25 +34,30 @@ function DataTable({ columns, data, striped = true, enablePagination = true, pag
|
|
|
34
34
|
"data-slot": "data-table",
|
|
35
35
|
className: "space-y-4",
|
|
36
36
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
|
-
className: "overflow-
|
|
37
|
+
className: "overflow-x-auto",
|
|
38
38
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_primitives_Table_index.Table, {
|
|
39
39
|
striped,
|
|
40
40
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableHead, {
|
|
41
41
|
colSpan: header.colSpan,
|
|
42
|
+
className: "h-auto bg-glass-60-bg backdrop-blur-glass px-2 py-2 text-xs leading-4 font-medium",
|
|
42
43
|
children: header.isPlaceholder ? null : (0, _tanstack_react_table.flexRender)(header.column.columnDef.header, header.getContext())
|
|
43
44
|
}, header.id)) }, headerGroup.id)) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableBody, { children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableRow, {
|
|
44
45
|
"data-state": row.getIsSelected() ? "selected" : void 0,
|
|
45
|
-
|
|
46
|
+
className: "hover:bg-muted-bg data-[state=selected]:bg-secondary-bg",
|
|
47
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableCell, {
|
|
48
|
+
className: "px-2 py-2 text-xs leading-4",
|
|
49
|
+
children: (0, _tanstack_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
|
50
|
+
}, cell.id))
|
|
46
51
|
}, row.id)) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableRow, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_primitives_Table_index.TableCell, {
|
|
47
52
|
colSpan: columns.length,
|
|
48
|
-
className: "h-24 text-center text-muted-
|
|
53
|
+
className: "h-24 text-center text-muted-txt",
|
|
49
54
|
children: "No results."
|
|
50
55
|
}) }) })]
|
|
51
56
|
})
|
|
52
57
|
}), enablePagination ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
53
58
|
className: "flex items-center justify-between gap-4",
|
|
54
59
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
55
|
-
className: "text-sm text-muted-
|
|
60
|
+
className: "text-sm text-muted-txt",
|
|
56
61
|
"data-slot": "data-table-selection",
|
|
57
62
|
children: [
|
|
58
63
|
table.getFilteredSelectedRowModel().rows.length,
|
|
@@ -65,7 +70,7 @@ function DataTable({ columns, data, striped = true, enablePagination = true, pag
|
|
|
65
70
|
className: "flex items-center gap-2",
|
|
66
71
|
children: [
|
|
67
72
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
68
|
-
className: "text-sm text-muted-
|
|
73
|
+
className: "text-sm text-muted-txt",
|
|
69
74
|
children: [
|
|
70
75
|
"Page ",
|
|
71
76
|
table.getState().pagination.pageIndex + 1,
|
|
@@ -102,9 +107,9 @@ function DataTableColumnHeader({ column, title, className }) {
|
|
|
102
107
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_primitives_Button_index.Button, {
|
|
103
108
|
variant: "ghost",
|
|
104
109
|
size: "sm",
|
|
105
|
-
className: require_cn.cn("-ml-2 h-8", className),
|
|
110
|
+
className: require_cn.cn("-ml-2 h-8 text-xs leading-4 font-medium", className),
|
|
106
111
|
onClick: () => column.toggleSorting(sorted === "asc"),
|
|
107
|
-
children: [title, sorted === "asc" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowUpIcon, {}) : sorted === "desc" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowDownIcon, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronsUpDownIcon, {})]
|
|
112
|
+
children: [title, sorted === "asc" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowUpIcon, {}) : sorted === "desc" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ArrowDownIcon, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronsUpDownIcon, { className: "opacity-50" })]
|
|
108
113
|
});
|
|
109
114
|
}
|
|
110
115
|
//#endregion
|