@psnext/design-system 2.2.0 → 2.4.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 +466 -4
- package/README.md +3 -3
- package/SKILL.md +83 -5
- package/bin/install-agent-skill.mjs +39 -7
- package/dist/Header.cjs +214 -108
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +214 -108
- package/dist/Header.js.map +1 -1
- package/dist/Icon.cjs +40 -8
- package/dist/Icon.cjs.map +1 -1
- package/dist/Icon.js +40 -8
- package/dist/Icon.js.map +1 -1
- package/dist/MultiColumn.cjs +354 -0
- package/dist/MultiColumn.cjs.map +1 -0
- package/dist/MultiColumn.js +335 -0
- package/dist/MultiColumn.js.map +1 -0
- package/dist/Sidebar.cjs +4 -3
- package/dist/Sidebar.cjs.map +1 -1
- package/dist/Sidebar.js +4 -3
- package/dist/Sidebar.js.map +1 -1
- package/dist/index.cjs +5 -1
- 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 +3 -2
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.ts +7 -7
- package/dist/index10.d.ts.map +1 -1
- 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 +11 -11
- package/dist/index12.d.ts +13 -13
- 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.cts.map +1 -1
- package/dist/index14.d.ts +5 -5
- 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/index16.d.ts.map +1 -1
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.cts.map +1 -1
- package/dist/index17.d.ts +4 -4
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +11 -11
- package/dist/index18.d.ts.map +1 -1
- 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 +7 -7
- 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/index21.d.ts.map +1 -1
- package/dist/index22.d.cts +11 -11
- package/dist/index22.d.ts +11 -11
- 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 +11 -11
- package/dist/index24.d.ts.map +1 -1
- package/dist/index25.d.cts +2 -2
- package/dist/index25.d.cts.map +1 -1
- package/dist/index25.d.ts +2 -2
- package/dist/index25.d.ts.map +1 -1
- package/dist/index26.d.cts +13 -13
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +15 -15
- package/dist/index26.d.ts.map +1 -1
- package/dist/index27.d.cts +7 -7
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +7 -7
- package/dist/index27.d.ts.map +1 -1
- package/dist/index28.d.cts +4 -4
- package/dist/index28.d.ts +6 -6
- package/dist/index28.d.ts.map +1 -1
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.cts.map +1 -1
- 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.ts +13 -13
- package/dist/index30.d.cts +42 -13
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +43 -14
- package/dist/index30.d.ts.map +1 -1
- package/dist/index31.d.cts +5 -5
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +6 -6
- package/dist/index31.d.ts.map +1 -1
- package/dist/index32.d.cts +6 -6
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +6 -6
- package/dist/index33.d.cts +11 -11
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +12 -12
- package/dist/index33.d.ts.map +1 -1
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +5 -5
- package/dist/index34.d.ts.map +1 -1
- package/dist/index35.d.cts +15 -15
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +16 -16
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +3 -3
- 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 +6 -6
- 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.ts +2 -2
- package/dist/index40.d.cts +5 -5
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +6 -6
- 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 +9 -9
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +9 -9
- package/dist/index43.d.ts.map +1 -1
- package/dist/index45.d.cts +8 -8
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +8 -8
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +2 -2
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +2 -2
- package/dist/index46.d.ts.map +1 -1
- package/dist/index47.d.cts +4 -4
- package/dist/index47.d.cts.map +1 -1
- package/dist/index47.d.ts +4 -4
- package/dist/index47.d.ts.map +1 -1
- package/dist/index48.d.cts +4 -4
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +4 -4
- package/dist/index48.d.ts.map +1 -1
- package/dist/index49.d.cts +3 -3
- package/dist/index49.d.ts +3 -3
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index5.d.ts.map +1 -1
- package/dist/index50.d.cts +11 -11
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +11 -11
- package/dist/index50.d.ts.map +1 -1
- package/dist/index51.d.cts +9 -9
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +9 -9
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +5 -5
- package/dist/index52.d.ts +5 -5
- package/dist/index53.d.cts +26 -26
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +27 -27
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +5 -5
- package/dist/index54.d.ts +5 -5
- package/dist/index54.d.ts.map +1 -1
- package/dist/index55.d.cts +2 -2
- package/dist/index55.d.cts.map +1 -1
- package/dist/index55.d.ts +2 -2
- package/dist/index56.d.cts +2 -2
- package/dist/index56.d.cts.map +1 -1
- package/dist/index56.d.ts +2 -2
- package/dist/index56.d.ts.map +1 -1
- package/dist/index57.d.cts +2 -2
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +2 -2
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +4 -4
- package/dist/index58.d.ts +4 -4
- package/dist/index58.d.ts.map +1 -1
- package/dist/index59.d.cts +9 -9
- package/dist/index59.d.ts +9 -9
- package/dist/index6.d.cts +6 -6
- package/dist/index6.d.cts.map +1 -1
- package/dist/index6.d.ts +6 -6
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +9 -9
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +13 -13
- package/dist/index60.d.ts.map +1 -1
- package/dist/index61.d.cts +5 -5
- package/dist/index61.d.ts +6 -6
- package/dist/index62.d.cts +5 -5
- package/dist/index62.d.ts +5 -5
- package/dist/index62.d.ts.map +1 -1
- package/dist/index63.d.cts +2 -2
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +2 -2
- package/dist/index63.d.ts.map +1 -1
- package/dist/index64.d.cts +6 -6
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +7 -7
- package/dist/index65.d.cts +3 -3
- package/dist/index65.d.ts +4 -4
- package/dist/index65.d.ts.map +1 -1
- package/dist/index66.d.cts +4 -4
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +6 -6
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +83 -11
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +83 -11
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +12 -30
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +12 -30
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +28 -27
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +29 -28
- package/dist/index69.d.ts.map +1 -1
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.cts.map +1 -1
- package/dist/index7.d.ts +8 -8
- package/dist/index7.d.ts.map +1 -1
- package/dist/index70.d.cts +33 -78
- package/dist/index70.d.cts.map +1 -1
- package/dist/index70.d.ts +33 -78
- package/dist/index70.d.ts.map +1 -1
- package/dist/index71.d.cts +77 -258
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +77 -258
- package/dist/index71.d.ts.map +1 -1
- package/dist/index72.d.cts +278 -0
- package/dist/index72.d.cts.map +1 -0
- package/dist/index72.d.ts +278 -0
- package/dist/index72.d.ts.map +1 -0
- package/dist/index8.d.cts +5 -5
- package/dist/index8.d.ts +5 -5
- package/dist/index8.d.ts.map +1 -1
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.cts.map +1 -1
- package/dist/index9.d.ts +2 -2
- package/dist/layouts/Container/index.cjs +2 -1
- package/dist/layouts/Container/index.cjs.map +1 -1
- package/dist/layouts/Container/index.js +1 -1
- package/dist/layouts/MultiColumn/index.cjs +5 -0
- package/dist/layouts/MultiColumn/index.d.cts +2 -0
- package/dist/layouts/MultiColumn/index.d.ts +2 -0
- package/dist/layouts/MultiColumn/index.js +2 -0
- package/dist/layouts/PageBackground/index.d.cts +1 -1
- package/dist/layouts/PageBackground/index.d.ts +1 -1
- package/dist/layouts/Stack/index.cjs +2 -1
- package/dist/layouts/Stack/index.cjs.map +1 -1
- package/dist/layouts/Stack/index.d.cts +1 -1
- package/dist/layouts/Stack/index.d.ts +1 -1
- package/dist/layouts/Stack/index.js +1 -1
- package/dist/layouts/TwoColumn/index.cjs +2 -1
- package/dist/layouts/TwoColumn/index.cjs.map +1 -1
- package/dist/layouts/TwoColumn/index.d.cts +1 -1
- package/dist/layouts/TwoColumn/index.d.ts +1 -1
- package/dist/layouts/TwoColumn/index.js +1 -1
- package/dist/layouts/index.cjs +4 -0
- package/dist/layouts/index.d.cts +5 -4
- package/dist/layouts/index.d.ts +5 -4
- package/dist/layouts/index.js +2 -1
- package/dist/patterns/DataTable/index.cjs +6 -2
- 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 +6 -2
- package/dist/patterns/DataTable/index.js.map +1 -1
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.cts.map +1 -1
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Header/index.d.cts +1 -1
- package/dist/patterns/Header/index.d.ts +1 -1
- package/dist/patterns/MediaObject/index.cjs +1 -1
- package/dist/patterns/MediaObject/index.d.cts +11 -11
- package/dist/patterns/MediaObject/index.d.ts +14 -14
- package/dist/patterns/MediaObject/index.js +1 -1
- package/dist/patterns/NavRail/index.cjs +4 -2
- package/dist/patterns/NavRail/index.cjs.map +1 -1
- package/dist/patterns/NavRail/index.js +4 -2
- package/dist/patterns/NavRail/index.js.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/SectionHeading/index.d.cts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/primitives/Accordion/index.cjs +6 -2
- package/dist/primitives/Accordion/index.cjs.map +1 -1
- package/dist/primitives/Accordion/index.js +6 -2
- package/dist/primitives/Accordion/index.js.map +1 -1
- package/dist/primitives/Alert/index.cjs +2 -1
- package/dist/primitives/Alert/index.cjs.map +1 -1
- package/dist/primitives/Alert/index.js +1 -1
- package/dist/primitives/AlertDialog/index.cjs +1 -1
- package/dist/primitives/AlertDialog/index.js +1 -1
- package/dist/primitives/AspectRatio/index.cjs +1 -1
- package/dist/primitives/AspectRatio/index.js +1 -1
- package/dist/primitives/Avatar/index.cjs +1 -1
- package/dist/primitives/Avatar/index.js +1 -1
- package/dist/primitives/Badge/index.cjs +3 -2
- package/dist/primitives/Badge/index.cjs.map +1 -1
- package/dist/primitives/Badge/index.js +2 -2
- package/dist/primitives/Breadcrumb/index.cjs +7 -3
- package/dist/primitives/Breadcrumb/index.cjs.map +1 -1
- package/dist/primitives/Breadcrumb/index.js +7 -3
- package/dist/primitives/Breadcrumb/index.js.map +1 -1
- package/dist/primitives/Button/index.cjs +3 -2
- package/dist/primitives/Button/index.cjs.map +1 -1
- package/dist/primitives/Button/index.js +2 -2
- package/dist/primitives/ButtonGroup/index.cjs +3 -2
- package/dist/primitives/ButtonGroup/index.cjs.map +1 -1
- package/dist/primitives/ButtonGroup/index.js +2 -2
- package/dist/primitives/Calendar/index.cjs +12 -11
- package/dist/primitives/Calendar/index.cjs.map +1 -1
- package/dist/primitives/Calendar/index.js +12 -11
- package/dist/primitives/Calendar/index.js.map +1 -1
- package/dist/primitives/Card/index.cjs +2 -1
- package/dist/primitives/Card/index.cjs.map +1 -1
- package/dist/primitives/Card/index.js +1 -1
- package/dist/primitives/Carousel/index.cjs +4 -3
- package/dist/primitives/Carousel/index.cjs.map +1 -1
- package/dist/primitives/Carousel/index.js +4 -3
- package/dist/primitives/Carousel/index.js.map +1 -1
- package/dist/primitives/Checkbox/index.cjs +9 -2
- package/dist/primitives/Checkbox/index.cjs.map +1 -1
- package/dist/primitives/Checkbox/index.js +9 -2
- package/dist/primitives/Checkbox/index.js.map +1 -1
- package/dist/primitives/CheckboxTree/index.cjs +6 -2
- package/dist/primitives/CheckboxTree/index.cjs.map +1 -1
- package/dist/primitives/CheckboxTree/index.js +6 -2
- package/dist/primitives/CheckboxTree/index.js.map +1 -1
- package/dist/primitives/Collapsible/index.cjs +1 -1
- package/dist/primitives/Collapsible/index.js +1 -1
- package/dist/primitives/Command/index.cjs +6 -2
- package/dist/primitives/Command/index.cjs.map +1 -1
- package/dist/primitives/Command/index.js +6 -2
- package/dist/primitives/Command/index.js.map +1 -1
- package/dist/primitives/ContextMenu/index.cjs +14 -4
- package/dist/primitives/ContextMenu/index.cjs.map +1 -1
- package/dist/primitives/ContextMenu/index.js +14 -4
- package/dist/primitives/ContextMenu/index.js.map +1 -1
- package/dist/primitives/Credits/index.cjs +8 -3
- package/dist/primitives/Credits/index.cjs.map +1 -1
- package/dist/primitives/Credits/index.js +7 -3
- package/dist/primitives/Credits/index.js.map +1 -1
- package/dist/primitives/Dialog/index.cjs +3 -2
- package/dist/primitives/Dialog/index.cjs.map +1 -1
- package/dist/primitives/Dialog/index.js +3 -2
- package/dist/primitives/Dialog/index.js.map +1 -1
- package/dist/primitives/DropdownMenu/index.cjs +14 -4
- package/dist/primitives/DropdownMenu/index.cjs.map +1 -1
- package/dist/primitives/DropdownMenu/index.js +14 -4
- package/dist/primitives/DropdownMenu/index.js.map +1 -1
- package/dist/primitives/Empty/index.cjs +1 -1
- package/dist/primitives/Empty/index.js +1 -1
- package/dist/primitives/Field/index.cjs +1 -1
- package/dist/primitives/Field/index.js +1 -1
- package/dist/primitives/Form/index.cjs +1 -1
- package/dist/primitives/Form/index.js +1 -1
- package/dist/primitives/Heading/index.cjs +2 -1
- package/dist/primitives/Heading/index.cjs.map +1 -1
- package/dist/primitives/Heading/index.js +1 -1
- package/dist/primitives/HoverCard/index.cjs +1 -1
- package/dist/primitives/HoverCard/index.js +1 -1
- package/dist/primitives/InfoBanner/index.cjs +6 -3
- package/dist/primitives/InfoBanner/index.cjs.map +1 -1
- package/dist/primitives/InfoBanner/index.js +5 -3
- package/dist/primitives/InfoBanner/index.js.map +1 -1
- package/dist/primitives/Input/index.cjs +2 -1
- package/dist/primitives/Input/index.cjs.map +1 -1
- package/dist/primitives/Input/index.js +1 -1
- package/dist/primitives/InputGroup/index.cjs +1 -1
- package/dist/primitives/InputGroup/index.js +1 -1
- package/dist/primitives/InputOtp/index.cjs +3 -2
- package/dist/primitives/InputOtp/index.cjs.map +1 -1
- package/dist/primitives/InputOtp/index.js +3 -2
- package/dist/primitives/InputOtp/index.js.map +1 -1
- package/dist/primitives/Item/index.cjs +2 -2
- package/dist/primitives/Item/index.js +2 -2
- package/dist/primitives/Label/index.cjs +1 -1
- package/dist/primitives/Label/index.js +1 -1
- package/dist/primitives/Link/index.cjs +3 -2
- package/dist/primitives/Link/index.cjs.map +1 -1
- package/dist/primitives/Link/index.js +2 -2
- package/dist/primitives/Menubar/index.cjs +14 -4
- package/dist/primitives/Menubar/index.cjs.map +1 -1
- package/dist/primitives/Menubar/index.js +14 -4
- package/dist/primitives/Menubar/index.js.map +1 -1
- package/dist/primitives/NativeSelect/index.cjs +6 -3
- package/dist/primitives/NativeSelect/index.cjs.map +1 -1
- package/dist/primitives/NativeSelect/index.js +5 -3
- package/dist/primitives/NativeSelect/index.js.map +1 -1
- package/dist/primitives/NavigationMenu/index.cjs +5 -3
- package/dist/primitives/NavigationMenu/index.cjs.map +1 -1
- package/dist/primitives/NavigationMenu/index.js +5 -3
- package/dist/primitives/NavigationMenu/index.js.map +1 -1
- package/dist/primitives/Pagination/index.cjs +6 -2
- package/dist/primitives/Pagination/index.cjs.map +1 -1
- package/dist/primitives/Pagination/index.js +6 -2
- package/dist/primitives/Pagination/index.js.map +1 -1
- package/dist/primitives/Popover/index.cjs +1 -1
- package/dist/primitives/Popover/index.js +1 -1
- package/dist/primitives/Progress/index.cjs +1 -1
- package/dist/primitives/Progress/index.js +1 -1
- package/dist/primitives/RadioGroup/index.cjs +6 -2
- package/dist/primitives/RadioGroup/index.cjs.map +1 -1
- package/dist/primitives/RadioGroup/index.js +6 -2
- package/dist/primitives/RadioGroup/index.js.map +1 -1
- package/dist/primitives/Resizable/index.cjs +6 -2
- package/dist/primitives/Resizable/index.cjs.map +1 -1
- package/dist/primitives/Resizable/index.js +6 -2
- package/dist/primitives/Resizable/index.js.map +1 -1
- package/dist/primitives/ScrollArea/index.cjs +1 -1
- package/dist/primitives/ScrollArea/index.js +1 -1
- package/dist/primitives/Select/index.cjs +18 -5
- package/dist/primitives/Select/index.cjs.map +1 -1
- package/dist/primitives/Select/index.js +18 -5
- package/dist/primitives/Select/index.js.map +1 -1
- package/dist/primitives/Separator/index.cjs +1 -1
- package/dist/primitives/Separator/index.js +1 -1
- package/dist/primitives/Sheet/index.cjs +6 -2
- package/dist/primitives/Sheet/index.cjs.map +1 -1
- package/dist/primitives/Sheet/index.js +6 -2
- package/dist/primitives/Sheet/index.js.map +1 -1
- package/dist/primitives/Slider/index.cjs +1 -1
- package/dist/primitives/Slider/index.js +1 -1
- package/dist/primitives/Sonner/index.cjs +22 -6
- package/dist/primitives/Sonner/index.cjs.map +1 -1
- package/dist/primitives/Sonner/index.js +22 -6
- package/dist/primitives/Sonner/index.js.map +1 -1
- package/dist/primitives/Spinner/index.cjs +4 -2
- package/dist/primitives/Spinner/index.cjs.map +1 -1
- package/dist/primitives/Spinner/index.js +4 -2
- package/dist/primitives/Spinner/index.js.map +1 -1
- package/dist/primitives/Switch/index.cjs +1 -1
- package/dist/primitives/Switch/index.js +1 -1
- package/dist/primitives/Tabs/index.cjs +2 -2
- package/dist/primitives/Tabs/index.js +2 -2
- package/dist/primitives/Text/index.cjs +2 -1
- package/dist/primitives/Text/index.cjs.map +1 -1
- package/dist/primitives/Text/index.js +1 -1
- package/dist/primitives/Textarea/index.cjs +2 -1
- package/dist/primitives/Textarea/index.cjs.map +1 -1
- package/dist/primitives/Textarea/index.js +1 -1
- package/dist/primitives/Toggle/index.cjs +3 -2
- package/dist/primitives/Toggle/index.cjs.map +1 -1
- package/dist/primitives/Toggle/index.js +2 -2
- package/dist/primitives/ToggleGroup/index.cjs +1 -1
- package/dist/primitives/ToggleGroup/index.js +1 -1
- package/dist/primitives/Tooltip/index.cjs +1 -1
- package/dist/primitives/Tooltip/index.js +1 -1
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +1 -1
- package/package.json +2 -1
package/dist/index71.d.cts
CHANGED
|
@@ -1,263 +1,82 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { i as AccordionTrigger, n as AccordionContent, r as AccordionItem, t as Accordion } from "./index.cjs";
|
|
2
|
+
import { a as AlertTitle, i as AlertDescription, n as AlertAction, r as AlertContent, t as Alert } from "./index2.cjs";
|
|
3
|
+
import { a as AlertDialogDescription, c as AlertDialogMedia, d as AlertDialogTitle, f as AlertDialogTrigger, i as AlertDialogContent, l as AlertDialogOverlay, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog, u as AlertDialogPortal } from "./index3.cjs";
|
|
4
|
+
import { t as AspectRatio } from "./index4.cjs";
|
|
5
|
+
import { a as AvatarGroupCount, i as AvatarGroup, n as AvatarBadge, o as AvatarImage, r as AvatarFallback, t as Avatar } from "./index5.cjs";
|
|
6
|
+
import { n as badgeVariants, t as Badge } from "./index6.cjs";
|
|
7
|
+
import { a as BreadcrumbList, i as BreadcrumbLink, n as BreadcrumbEllipsis, o as BreadcrumbPage, r as BreadcrumbItem, s as BreadcrumbSeparator, t as Breadcrumb } from "./index7.cjs";
|
|
8
|
+
import { n as ButtonProps, r as buttonVariants, t as Button } from "./index8.cjs";
|
|
9
|
+
import { n as SeparatorSpacing, t as Separator } from "./index9.cjs";
|
|
10
|
+
import { i as buttonGroupVariants, n as ButtonGroupSeparator, r as ButtonGroupText, t as ButtonGroup } from "./index10.cjs";
|
|
11
|
+
import { n as CalendarDayButton, t as Calendar } from "./index11.cjs";
|
|
12
|
+
import { a as CardFooter, c as CardTitle, i as CardDescription, l as cardVariants, n as CardAction, o as CardHeader, r as CardContent, s as CardProps, t as Card } from "./index12.cjs";
|
|
13
|
+
import { a as CarouselNext, i as CarouselItem, n as CarouselApi, o as CarouselPrevious, r as CarouselContent, t as Carousel } from "./index13.cjs";
|
|
14
|
+
import { a as ChartStyle, i as ChartLegendContent, n as ChartContainer, o as ChartTooltip, r as ChartLegend, s as ChartTooltipContent, t as ChartConfig } from "./index14.cjs";
|
|
15
|
+
import { n as RichCheckbox, t as Checkbox } from "./index15.cjs";
|
|
16
|
+
import { n as CheckboxTreeNode, t as CheckboxTree } from "./index16.cjs";
|
|
17
|
+
import { n as CollapsibleContent, r as CollapsibleTrigger, t as Collapsible } from "./index17.cjs";
|
|
18
|
+
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "./index18.cjs";
|
|
19
|
+
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./index19.cjs";
|
|
20
|
+
import { a as ContextMenuItem, c as ContextMenuRadioGroup, d as ContextMenuShortcut, f as ContextMenuSub, h as ContextMenuTrigger, i as ContextMenuGroup, l as ContextMenuRadioItem, m as ContextMenuSubTrigger, n as ContextMenuCheckboxItem, o as ContextMenuLabel, p as ContextMenuSubContent, r as ContextMenuContent, s as ContextMenuPortal, t as ContextMenu, u as ContextMenuSeparator } from "./index20.cjs";
|
|
21
|
+
import { i as creditsVariants, n as CreditsProps, r as CreditsVariant, t as Credits } from "./index21.cjs";
|
|
22
|
+
import { a as DrawerFooter, c as DrawerPortal, i as DrawerDescription, l as DrawerTitle, n as DrawerClose, o as DrawerHeader, r as DrawerContent, s as DrawerOverlay, t as Drawer, u as DrawerTrigger } from "./index22.cjs";
|
|
23
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "./index23.cjs";
|
|
24
|
+
import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, s as emptyVariants, t as Empty } from "./index24.cjs";
|
|
25
|
+
import { t as Label } from "./index25.cjs";
|
|
26
|
+
import { a as FieldGroup, c as FieldSeparator, i as FieldError, l as FieldSet, n as FieldContent, o as FieldLabel, r as FieldDescription, s as FieldLegend, t as Field, u as FieldTitle } from "./index26.cjs";
|
|
27
|
+
import { a as FormItem, c as useFormField, i as FormField, n as FormControl, o as FormLabel, r as FormDescription, s as FormMessage, t as Form } from "./index27.cjs";
|
|
28
|
+
import { n as HeadingProps, r as headingVariants, t as Heading } from "./index28.cjs";
|
|
29
|
+
import { n as HoverCardContent, r as HoverCardTrigger, t as HoverCard } from "./index29.cjs";
|
|
30
|
+
import { i as IconName, n as IconProps, r as ICON_NAMES, t as Icon } from "./index30.cjs";
|
|
31
|
+
import { n as InfoBannerProps, r as infoBannerVariants, t as InfoBanner } from "./index31.cjs";
|
|
32
|
+
import { n as inputVariants, t as Input } from "./index32.cjs";
|
|
33
|
+
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "./index33.cjs";
|
|
34
|
+
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "./index34.cjs";
|
|
35
|
+
import { a as ItemFooter, c as ItemMedia, i as ItemDescription, l as ItemSeparator, n as ItemActions, o as ItemGroup, r as ItemContent, s as ItemHeader, t as Item, u as ItemTitle } from "./index35.cjs";
|
|
36
|
+
import { n as KbdGroup, t as Kbd } from "./index36.cjs";
|
|
37
|
+
import { n as LinkProps, r as linkVariants, t as Link } from "./index37.cjs";
|
|
38
|
+
import { n as LogoBrand, r as LogoVariant, t as Logo } from "./index38.cjs";
|
|
39
|
+
import { a as MenubarItem, c as MenubarPortal, d as MenubarSeparator, f as MenubarShortcut, g as MenubarTrigger, h as MenubarSubTrigger, i as MenubarGroup, l as MenubarRadioGroup, m as MenubarSubContent, n as MenubarCheckboxItem, o as MenubarLabel, p as MenubarSub, r as MenubarContent, s as MenubarMenu, t as Menubar, u as MenubarRadioItem } from "./index39.cjs";
|
|
40
|
+
import { n as nativeSelectVariants, t as NativeSelect } from "./index40.cjs";
|
|
41
|
+
import { a as NavigationMenuLink, c as NavigationMenuViewport, i as NavigationMenuItem, l as navigationMenuTriggerStyle, n as NavigationMenuContent, o as NavigationMenuList, r as NavigationMenuIndicator, s as NavigationMenuTrigger, t as NavigationMenu } from "./index41.cjs";
|
|
42
|
+
import { a as PopoverHeader, i as PopoverDescription, n as PopoverAnchor, o as PopoverTitle, r as PopoverContent, s as PopoverTrigger, t as Popover } from "./index42.cjs";
|
|
43
|
+
import { a as NavRailMenuContent, c as NavRailMenuTrigger, d as NavRailSeparator, f as NavRailUser, i as NavRailMenu, l as NavRailMenuTriggerProps, n as NavRailItem, o as NavRailMenuItem, p as NavRailUserProps, r as NavRailItemProps, s as NavRailMenuItemProps, t as NavRail, u as NavRailMode } from "./index43.cjs";
|
|
44
|
+
import { a as PaginationLink, i as PaginationItem, n as PaginationContent, o as PaginationNext, r as PaginationEllipsis, s as PaginationPrevious, t as Pagination } from "./index45.cjs";
|
|
45
|
+
import { t as Progress } from "./index46.cjs";
|
|
46
|
+
import { n as RadioGroupItem, r as RichRadioItem, t as RadioGroup } from "./index47.cjs";
|
|
47
|
+
import { n as ResizablePanel, r as ResizablePanelGroup, t as ResizableHandle } from "./index48.cjs";
|
|
48
|
+
import { n as ScrollBar, t as ScrollArea } from "./index49.cjs";
|
|
49
|
+
import { a as SelectLabel, c as SelectSeparator, i as SelectItem, l as SelectTrigger, n as SelectContent, o as SelectScrollDownButton, r as SelectGroup, s as SelectScrollUpButton, t as Select, u as SelectValue } from "./index50.cjs";
|
|
50
|
+
import { a as SheetFooter, c as SheetTrigger, i as SheetDescription, n as SheetClose, o as SheetHeader, r as SheetContent, s as SheetTitle, t as Sheet } from "./index51.cjs";
|
|
51
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./index52.cjs";
|
|
52
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./index53.cjs";
|
|
53
|
+
import { i as SkeletonObject, n as SkeletonAvatar, r as SkeletonLine, t as Skeleton } from "./index54.cjs";
|
|
54
|
+
import { t as Slider } from "./index55.cjs";
|
|
55
|
+
import { t as Toaster } from "./index56.cjs";
|
|
56
|
+
import { t as Spinner } from "./index57.cjs";
|
|
57
|
+
import { n as Switch, r as SwitchGroup, t as RichSwitchGroup } from "./index58.cjs";
|
|
58
|
+
import { a as TableFooter, c as TableRow, i as TableCell, n as TableBody, o as TableHead, r as TableCaption, s as TableHeader, t as Table } from "./index59.cjs";
|
|
59
|
+
import { a as TabsTrigger, i as TabsList, n as TabsContent, o as tabsListVariants, r as TabsCounter, s as tabsTriggerVariants, t as Tabs } from "./index60.cjs";
|
|
60
|
+
import { n as TextProps, r as textVariants, t as Text } from "./index61.cjs";
|
|
61
|
+
import { n as textareaVariants, t as Textarea } from "./index62.cjs";
|
|
62
|
+
import { a as useTheme, i as ThemeProvider, n as ThemeMode, r as ThemeProduct, t as ThemeContext } from "./index63.cjs";
|
|
63
|
+
import { n as toggleVariants, t as Toggle } from "./index64.cjs";
|
|
64
|
+
import { n as ToggleGroupItem, t as ToggleGroup } from "./index65.cjs";
|
|
65
|
+
import { n as ContainerProps, r as containerVariants, t as Container } from "./index66.cjs";
|
|
66
|
+
import { a as multiColumnVariants, i as MultiColumnProps, n as MultiColumnItem, r as MultiColumnItemProps, t as MultiColumn } from "./index67.cjs";
|
|
67
|
+
import { n as PageBackgroundProps, t as PageBackground } from "./index68.cjs";
|
|
68
|
+
import { n as StackProps, r as stackVariants, t as Stack } from "./index69.cjs";
|
|
69
|
+
import { a as twoColumnVariants, i as TwoColumnProps, n as TwoColumnAside, r as TwoColumnMain, t as TwoColumn } from "./index70.cjs";
|
|
70
|
+
import { ClassValue } from "clsx";
|
|
5
71
|
|
|
6
|
-
//#region src/
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
logout: string;
|
|
19
|
-
projects: (clientId: string) => string;
|
|
20
|
-
credits: string;
|
|
21
|
-
}
|
|
22
|
-
/** A fetch-compatible function, so hosts/tests can inject their own (e.g. mocks). */
|
|
23
|
-
type Fetcher = typeof fetch;
|
|
24
|
-
/** Props for the wired {@link Header} pattern (auth, data layer, and visibility toggles). */
|
|
25
|
-
interface HeaderProps {
|
|
26
|
-
/** API base URL with full domain, e.g. `https://dev.abc.com`. Studio-auth API host. */
|
|
27
|
-
apiBaseUrl: string;
|
|
28
|
-
/**
|
|
29
|
-
* Environment id used to read the session cookie `{environmentId}-sessionId`
|
|
30
|
-
* (a JWT) — the header decodes it for auth state and user identity
|
|
31
|
-
* (email, client id) without a network call.
|
|
32
|
-
*/
|
|
33
|
-
environmentId: string;
|
|
34
|
-
/** Logo to show. Defaults to the active product from ThemeProvider. */
|
|
35
|
-
logoType?: ThemeProduct;
|
|
36
|
-
/**
|
|
37
|
-
* Where the logo links, e.g. the host app's home route. Falls back to the
|
|
38
|
-
* product's public site when omitted.
|
|
39
|
-
*/
|
|
40
|
-
logoHref?: string;
|
|
41
|
-
/** Show the read-only organisation pill. */
|
|
42
|
-
showOrg?: boolean;
|
|
43
|
-
/** Show the project picker (and the first-run selection overlay). */
|
|
44
|
-
showProjectDropdown?: boolean;
|
|
45
|
-
/** Show the profile menu (user email + logout). */
|
|
46
|
-
showProfile?: boolean;
|
|
47
|
-
/** Show the light/dark theme toggle. */
|
|
48
|
-
showThemeSwitcher?: boolean;
|
|
49
|
-
/** Show the remaining-credits pill (logged-in users only). */
|
|
50
|
-
showCredits?: boolean;
|
|
51
|
-
/** Page title shown next to the logo. Omitted when not provided. */
|
|
52
|
-
pageTitle?: string;
|
|
53
|
-
/**
|
|
54
|
-
* URL for the feedback action (message-square-share icon). When omitted the
|
|
55
|
-
* icon is hidden; when set, the icon renders and links here.
|
|
56
|
-
*/
|
|
57
|
-
feedbackUrl?: string;
|
|
58
|
-
/** Active org id from the host session; overrides the session JWT's `client_id` claim. */
|
|
59
|
-
clientId?: string;
|
|
60
|
-
/**
|
|
61
|
-
* ESCAPE HATCH — avoid. Inject a pre-resolved access token to skip the header's
|
|
62
|
-
* own token fetch. The header is designed to resolve its own token from the
|
|
63
|
-
* session cookie; only reach for this when the host has *already* fetched a
|
|
64
|
-
* token and a duplicate round-trip is genuinely unacceptable. Misuse couples
|
|
65
|
-
* the header to host token lifecycle/refresh and can serve stale auth.
|
|
66
|
-
*/
|
|
67
|
-
_dangerouslyInjectAccessToken?: string;
|
|
68
|
-
/** Called when the user picks a project. */
|
|
69
|
-
onProjectChange?: (id: string) => void;
|
|
70
|
-
/** Called when the user closes the selection overlay. */
|
|
71
|
-
onCloseProjectOverlay?: () => void;
|
|
72
|
-
/** Node rendered between the logo and the project picker. */
|
|
73
|
-
logoAddon?: ReactNode;
|
|
74
|
-
className?: string;
|
|
75
|
-
/** Override individual endpoint paths (defaults derive from `apiBaseUrl`). */
|
|
76
|
-
endpoints?: Partial<Omit<HeaderEndpoints, "projects">> & {
|
|
77
|
-
projects?: (clientId: string) => string;
|
|
78
|
-
};
|
|
79
|
-
/** Custom fetch implementation (defaults to global `fetch`). Useful for tests/Storybook. */
|
|
80
|
-
fetcher?: Fetcher;
|
|
81
|
-
/** How long fetched data stays fresh before refetch, in ms. Default 5 min. */
|
|
82
|
-
staleTime?: number;
|
|
83
|
-
/** How long unused data is cached, in ms. Default 10 min. */
|
|
84
|
-
gcTime?: number;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=types.d.ts.map
|
|
72
|
+
//#region src/utils/cn.d.ts
|
|
73
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
74
|
+
//# sourceMappingURL=cn.d.ts.map
|
|
87
75
|
//#endregion
|
|
88
|
-
//#region src/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
className,
|
|
92
|
-
...props
|
|
93
|
-
}: React.ComponentProps<"header">): react_jsx_runtime126.JSX.Element;
|
|
94
|
-
/** Product logo linking to its home, with a Suspense-safe fallback. */
|
|
95
|
-
declare function HeaderLogo({
|
|
96
|
-
brand,
|
|
97
|
-
href
|
|
98
|
-
}: {
|
|
99
|
-
brand: ThemeProduct;
|
|
100
|
-
href?: string;
|
|
101
|
-
}): react_jsx_runtime126.JSX.Element;
|
|
102
|
-
/** Read-only organisation pill. */
|
|
103
|
-
declare function OrgPill({
|
|
104
|
-
name,
|
|
105
|
-
loading
|
|
106
|
-
}: {
|
|
107
|
-
name?: string;
|
|
108
|
-
loading?: boolean;
|
|
109
|
-
}): react_jsx_runtime126.JSX.Element | null;
|
|
110
|
-
/** Light/dark toggle — defers to ThemeProvider. */
|
|
111
|
-
declare function ThemeToggle(): react_jsx_runtime126.JSX.Element;
|
|
112
|
-
/** Profile menu — avatar trigger with email + logout. */
|
|
113
|
-
declare function ProfileMenu({
|
|
114
|
-
email,
|
|
115
|
-
onLogout
|
|
116
|
-
}: {
|
|
117
|
-
email?: string;
|
|
118
|
-
onLogout: () => void;
|
|
119
|
-
}): react_jsx_runtime126.JSX.Element;
|
|
120
|
-
/** Drop-in global header. Must be rendered inside a <ThemeProvider>. */
|
|
121
|
-
declare function Header(props: HeaderProps): react_jsx_runtime126.JSX.Element;
|
|
122
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region src/patterns/Header/ProjectPicker.d.ts
|
|
125
|
-
interface ProjectPickerProps {
|
|
126
|
-
projectsTree: ProjectNode[];
|
|
127
|
-
selectedProjectId: string;
|
|
128
|
-
selectedProjectName?: string;
|
|
129
|
-
onSelect: (id: string) => void;
|
|
130
|
-
projectLabel: string;
|
|
131
|
-
projectPlaceholder: string;
|
|
132
|
-
searchPlaceholder: string;
|
|
133
|
-
emptyStateText: string;
|
|
134
|
-
isLoading?: boolean;
|
|
135
|
-
}
|
|
136
|
-
declare function ProjectPicker({
|
|
137
|
-
projectsTree,
|
|
138
|
-
selectedProjectId,
|
|
139
|
-
selectedProjectName,
|
|
140
|
-
onSelect,
|
|
141
|
-
projectLabel,
|
|
142
|
-
projectPlaceholder,
|
|
143
|
-
searchPlaceholder,
|
|
144
|
-
emptyStateText,
|
|
145
|
-
isLoading
|
|
146
|
-
}: Readonly<ProjectPickerProps>): react_jsx_runtime126.JSX.Element;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/patterns/Header/use-global-header.d.ts
|
|
149
|
-
/** Window event other modules can dispatch to show/hide the project dropdown. */
|
|
150
|
-
declare const TOGGLE_PROJECT_DROPDOWN_EVENT = "toggle-project-dropdown";
|
|
151
|
-
interface ToggleProjectDropdownDetail {
|
|
152
|
-
show: boolean;
|
|
153
|
-
}
|
|
154
|
-
interface GlobalHeaderState {
|
|
155
|
-
/** Whether a valid session cookie exists — when false, hide all user content. */
|
|
156
|
-
isAuthenticated: boolean;
|
|
157
|
-
userEmail: string | undefined;
|
|
158
|
-
organizationName: string | undefined;
|
|
159
|
-
projectsTree: ProjectNode[];
|
|
160
|
-
selectedProjectId: string;
|
|
161
|
-
selectedProjectName: string | undefined;
|
|
162
|
-
isProjectsLoading: boolean;
|
|
163
|
-
isOrgLoading: boolean;
|
|
164
|
-
/** Remaining credits for the user (undefined until loaded / when disabled). */
|
|
165
|
-
credits: number | undefined;
|
|
166
|
-
/** Where the credits pill links to (studio-auth `/user/activity`). */
|
|
167
|
-
creditsHref: string;
|
|
168
|
-
projectDropdownVisible: boolean;
|
|
169
|
-
/** True when the dropdown is on, the user is in, but no project is chosen yet. */
|
|
170
|
-
showOverlay: boolean;
|
|
171
|
-
selectProject: (id: string) => void;
|
|
172
|
-
logout: () => void;
|
|
173
|
-
}
|
|
174
|
-
type UseGlobalHeaderArgs = Pick<HeaderProps, "apiBaseUrl" | "environmentId" | "clientId" | "_dangerouslyInjectAccessToken" | "showProjectDropdown" | "showProfile" | "showOrg" | "showCredits" | "endpoints" | "fetcher" | "staleTime" | "gcTime" | "onProjectChange">;
|
|
175
|
-
declare function useGlobalHeader({
|
|
176
|
-
apiBaseUrl,
|
|
177
|
-
environmentId,
|
|
178
|
-
clientId,
|
|
179
|
-
_dangerouslyInjectAccessToken: injectedToken,
|
|
180
|
-
showProjectDropdown,
|
|
181
|
-
showProfile,
|
|
182
|
-
showOrg,
|
|
183
|
-
showCredits,
|
|
184
|
-
endpoints: endpointOverrides,
|
|
185
|
-
fetcher: fetcherProp,
|
|
186
|
-
staleTime,
|
|
187
|
-
gcTime,
|
|
188
|
-
onProjectChange
|
|
189
|
-
}: UseGlobalHeaderArgs): GlobalHeaderState;
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/patterns/Header/header-store.d.ts
|
|
192
|
-
interface HeaderSelection {
|
|
193
|
-
selectedProjectId: string;
|
|
194
|
-
selectedProjectName: string;
|
|
195
|
-
organizationName: string | undefined;
|
|
196
|
-
/** Remaining credits for the logged-in user (read-only here; set by the Header). */
|
|
197
|
-
credits: number | undefined;
|
|
198
|
-
/** Client/org the current selection + org belong to (for cross-org invalidation). */
|
|
199
|
-
clientId: string | undefined;
|
|
200
|
-
}
|
|
201
|
-
interface UseHeaderProjectResult {
|
|
202
|
-
selectedProjectId: string;
|
|
203
|
-
selectedProjectName: string | undefined;
|
|
204
|
-
organizationName: string | undefined;
|
|
205
|
-
/** Set the active project from outside the Header (by id). */
|
|
206
|
-
setProject: (id: string) => void;
|
|
207
|
-
/** Clear the active project (e.g. to re-prompt selection). */
|
|
208
|
-
clearProject: () => void;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Read the current project/org and change the project from anywhere in the app —
|
|
212
|
-
* no need to be inside the <Header>. Reflects user selections made in the header
|
|
213
|
-
* and updates the header when changed here.
|
|
214
|
-
*/
|
|
215
|
-
declare function useHeaderProject(): UseHeaderProjectResult;
|
|
216
|
-
/** Read the logged-in user's remaining credits (read-only; the Header owns it). */
|
|
217
|
-
declare function useHeaderCredits(): number | undefined;
|
|
218
|
-
//# sourceMappingURL=header-store.d.ts.map
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/patterns/Header/session.d.ts
|
|
221
|
-
/** Read the raw session JWT from the `{environmentId}-sessionId` cookie. */
|
|
222
|
-
declare function getSessionToken(environmentId: string): string | null;
|
|
223
|
-
/** Decode a JWT payload without verifying the signature (display/expiry only). */
|
|
224
|
-
|
|
225
|
-
/** User/session claims carried in the session JWT (the subset the header uses). */
|
|
226
|
-
interface SessionClaims {
|
|
227
|
-
email?: string;
|
|
228
|
-
name?: string;
|
|
229
|
-
userId?: string;
|
|
230
|
-
/** Active organisation id (`client_id` claim). */
|
|
231
|
-
clientId?: string;
|
|
232
|
-
exp?: number;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Decode the user claims from the session cookie's JWT — no network call.
|
|
236
|
-
* Returns null when the cookie is absent or undecodable.
|
|
237
|
-
*/
|
|
238
|
-
declare function getSessionClaims(environmentId: string): SessionClaims | null;
|
|
239
|
-
/** True when a valid, unexpired session cookie exists for the environment. */
|
|
240
|
-
declare function isSessionValid(environmentId: string): boolean;
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region src/patterns/Header/api.d.ts
|
|
243
|
-
declare function buildEndpoints(apiBaseUrl: string, overrides?: HeaderProps["endpoints"]): HeaderEndpoints;
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/patterns/Header/labels.d.ts
|
|
246
|
-
/** Default UI strings. Spread-override via the Header `labels` prop if needed. */
|
|
247
|
-
declare const DEFAULT_LABELS: {
|
|
248
|
-
readonly orgLabel: "Org";
|
|
249
|
-
readonly projectLabel: "Project";
|
|
250
|
-
readonly projectPlaceholder: "Select project...";
|
|
251
|
-
readonly searchPlaceholder: "Search project";
|
|
252
|
-
readonly emptyStateText: "No projects found";
|
|
253
|
-
readonly profileMenuLabel: "Profile menu";
|
|
254
|
-
readonly logoutLabel: "Logout";
|
|
255
|
-
readonly overlayTitle: "Select a Project";
|
|
256
|
-
readonly overlayDescription: "Choose a project to get started. You can change it anytime from the header.";
|
|
257
|
-
};
|
|
258
|
-
type Labels = typeof DEFAULT_LABELS;
|
|
259
|
-
//# sourceMappingURL=labels.d.ts.map
|
|
76
|
+
//#region src/utils/use-mobile.d.ts
|
|
77
|
+
declare function useIsMobile(): boolean;
|
|
78
|
+
//# sourceMappingURL=use-mobile.d.ts.map
|
|
260
79
|
|
|
261
80
|
//#endregion
|
|
262
|
-
export {
|
|
81
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonProps, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxTree, CheckboxTreeNode, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Credits, CreditsProps, CreditsVariant, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Heading, HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, ICON_NAMES, Icon, IconName, IconProps, InfoBanner, InfoBannerProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Link, LinkProps, Logo, LogoBrand, LogoVariant, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MultiColumn, MultiColumnItem, MultiColumnItemProps, MultiColumnProps, NativeSelect, NavRail, NavRailItem, NavRailItemProps, NavRailMenu, NavRailMenuContent, NavRailMenuItem, NavRailMenuItemProps, NavRailMenuTrigger, NavRailMenuTriggerProps, NavRailMode, NavRailSeparator, NavRailUser, NavRailUserProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageBackground, PageBackgroundProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichCheckbox, RichRadioItem, RichSwitchGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorSpacing, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkeletonAvatar, SkeletonLine, SkeletonObject, Slider, Spinner, Stack, StackProps, Switch, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsCounter, TabsList, TabsTrigger, Text, TextProps, Textarea, ThemeContext, ThemeMode, ThemeProduct, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoColumn, TwoColumnAside, TwoColumnMain, TwoColumnProps, badgeVariants, buttonGroupVariants, buttonVariants, cardVariants, cn, containerVariants, creditsVariants, emptyVariants, headingVariants, infoBannerVariants, inputVariants, linkVariants, multiColumnVariants, nativeSelectVariants, navigationMenuTriggerStyle, stackVariants, tabsListVariants, tabsTriggerVariants, textVariants, textareaVariants, toggleVariants, twoColumnVariants, useFormField, useIsMobile, useSidebar, useTheme };
|
|
263
82
|
//# sourceMappingURL=index71.d.cts.map
|
package/dist/index71.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index71.d.cts","names":[],"sources":["../src/utils/cn.ts","../src/utils/use-mobile.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBgB,EAAA,YAAc;;;;iBCrBd,WAAA,CAAA"}
|