@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/primitives/Skeleton/Skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\n\n/** Animated shimmer placeholder for content that is still loading. */\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"skeleton\" className={cn(\"skeleton-shimmer rounded-
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/primitives/Skeleton/Skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\n\n/** Animated shimmer placeholder for content that is still loading. */\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"skeleton\" className={cn(\"skeleton-shimmer rounded-8\", className)} {...props} />\n );\n}\n\n/** Skeleton sized as a circular avatar placeholder (`size-10 rounded-full`). */\nfunction SkeletonAvatar({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-avatar\"\n className={cn(\"size-10 rounded-full\", className)}\n {...props}\n />\n );\n}\n\n/** Skeleton sized as a single line of text (`h-4 w-full rounded-full`). */\nfunction SkeletonLine({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-line\"\n className={cn(\"h-4 w-full rounded-full\", className)}\n {...props}\n />\n );\n}\n\n/** Skeleton sized as a larger block, e.g. an image or card body (`h-24 w-full`). */\nfunction SkeletonObject({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-object\"\n className={cn(\"h-24 w-full rounded-8\", className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton, SkeletonAvatar, SkeletonLine, SkeletonObject };\n"],"mappings":";;;;;AAGA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAsC;CACtE,OACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,aAAU;EAAW,WAAWA,WAAAA,GAAG,8BAA8B,SAAS;EAAG,GAAI;CAAQ,CAAA;AAElG;;AAGA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAsC;CAC5E,OACE,iBAAA,GAAA,kBAAA,KAAC,UAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,wBAAwB,SAAS;EAC/C,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,iBAAA,GAAA,kBAAA,KAAC,UAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,2BAA2B,SAAS;EAClD,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAsC;CAC5E,OACE,iBAAA,GAAA,kBAAA,KAAC,UAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,yBAAyB,SAAS;EAChD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SkeletonObject, n as SkeletonAvatar, r as SkeletonLine, t as Skeleton } from "../../
|
|
1
|
+
import { i as SkeletonObject, n as SkeletonAvatar, r as SkeletonLine, t as Skeleton } from "../../index54.cjs";
|
|
2
2
|
export { Skeleton, SkeletonAvatar, SkeletonLine, SkeletonObject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SkeletonObject, n as SkeletonAvatar, r as SkeletonLine, t as Skeleton } from "../../
|
|
1
|
+
import { i as SkeletonObject, n as SkeletonAvatar, r as SkeletonLine, t as Skeleton } from "../../index54.js";
|
|
2
2
|
export { Skeleton, SkeletonAvatar, SkeletonLine, SkeletonObject };
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
function Skeleton({ className, ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx("div", {
|
|
7
7
|
"data-slot": "skeleton",
|
|
8
|
-
className: cn("skeleton-shimmer rounded-
|
|
8
|
+
className: cn("skeleton-shimmer rounded-8", className),
|
|
9
9
|
...props
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -29,7 +29,7 @@ function SkeletonLine({ className, ...props }) {
|
|
|
29
29
|
function SkeletonObject({ className, ...props }) {
|
|
30
30
|
return /* @__PURE__ */ jsx(Skeleton, {
|
|
31
31
|
"data-slot": "skeleton-object",
|
|
32
|
-
className: cn("h-24 w-full rounded-
|
|
32
|
+
className: cn("h-24 w-full rounded-8", className),
|
|
33
33
|
...props
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/primitives/Skeleton/Skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\n\n/** Animated shimmer placeholder for content that is still loading. */\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"skeleton\" className={cn(\"skeleton-shimmer rounded-
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/primitives/Skeleton/Skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\n\n/** Animated shimmer placeholder for content that is still loading. */\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"skeleton\" className={cn(\"skeleton-shimmer rounded-8\", className)} {...props} />\n );\n}\n\n/** Skeleton sized as a circular avatar placeholder (`size-10 rounded-full`). */\nfunction SkeletonAvatar({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-avatar\"\n className={cn(\"size-10 rounded-full\", className)}\n {...props}\n />\n );\n}\n\n/** Skeleton sized as a single line of text (`h-4 w-full rounded-full`). */\nfunction SkeletonLine({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-line\"\n className={cn(\"h-4 w-full rounded-full\", className)}\n {...props}\n />\n );\n}\n\n/** Skeleton sized as a larger block, e.g. an image or card body (`h-24 w-full`). */\nfunction SkeletonObject({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <Skeleton\n data-slot=\"skeleton-object\"\n className={cn(\"h-24 w-full rounded-8\", className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton, SkeletonAvatar, SkeletonLine, SkeletonObject };\n"],"mappings":";;;;AAGA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAsC;CACtE,OACE,oBAAC,OAAD;EAAK,aAAU;EAAW,WAAW,GAAG,8BAA8B,SAAS;EAAG,GAAI;CAAQ,CAAA;AAElG;;AAGA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAsC;CAC5E,OACE,oBAAC,UAAD;EACE,aAAU;EACV,WAAW,GAAG,wBAAwB,SAAS;EAC/C,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,oBAAC,UAAD;EACE,aAAU;EACV,WAAW,GAAG,2BAA2B,SAAS;EAClD,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAsC;CAC5E,OACE,oBAAC,UAAD;EACE,aAAU;EACV,WAAW,GAAG,yBAAyB,SAAS;EAChD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -29,14 +29,14 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
29
29
|
...props,
|
|
30
30
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Slider.Track, {
|
|
31
31
|
"data-slot": "slider-track",
|
|
32
|
-
className: require_cn.cn("bg-
|
|
32
|
+
className: require_cn.cn("bg-secondary-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
33
33
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Slider.Range, {
|
|
34
34
|
"data-slot": "slider-range",
|
|
35
|
-
className: require_cn.cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
35
|
+
className: require_cn.cn("bg-primary-invert-bg absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
36
36
|
})
|
|
37
37
|
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Slider.Thumb, {
|
|
38
38
|
"data-slot": "slider-thumb",
|
|
39
|
-
className: "
|
|
39
|
+
className: "block size-3 shrink-0 rounded-full border border-primary-txt bg-primary-bg ring-focus transition-[color,box-shadow] hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
40
40
|
}, index))]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["React","SliderPrimitive","cn"],"sources":["../../../src/primitives/Slider/Slider.tsx"],"sourcesContent":["\"use client\";\n\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/**\n * A range input built on Radix Slider. Renders one thumb per value, so passing a\n * two-item `value`/`defaultValue` array yields a range (two-thumb) slider. Accepts\n * all Radix Slider Root props (`min`, `max`, `step`, `orientation`, `disabled`,\n * `onValueChange`, …).\n */\nfunction Slider({\n /** Extra classes merged onto the slider root. */\n className,\n /** Uncontrolled starting value(s); one thumb is rendered per array item. */\n defaultValue,\n /** Controlled value(s); one thumb is rendered per array item. */\n value,\n /** Lower bound of the track. Defaults to 0. */\n min = 0,\n /** Upper bound of the track. Defaults to 100. */\n max = 100,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root>) {\n const _values = React.useMemo(\n () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]),\n [value, defaultValue, min, max],\n );\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className={cn(\n \"bg-
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["React","SliderPrimitive","cn"],"sources":["../../../src/primitives/Slider/Slider.tsx"],"sourcesContent":["\"use client\";\n\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/**\n * A range input built on Radix Slider. Renders one thumb per value, so passing a\n * two-item `value`/`defaultValue` array yields a range (two-thumb) slider. Accepts\n * all Radix Slider Root props (`min`, `max`, `step`, `orientation`, `disabled`,\n * `onValueChange`, …).\n */\nfunction Slider({\n /** Extra classes merged onto the slider root. */\n className,\n /** Uncontrolled starting value(s); one thumb is rendered per array item. */\n defaultValue,\n /** Controlled value(s); one thumb is rendered per array item. */\n value,\n /** Lower bound of the track. Defaults to 0. */\n min = 0,\n /** Upper bound of the track. Defaults to 100. */\n max = 100,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root>) {\n const _values = React.useMemo(\n () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]),\n [value, defaultValue, min, max],\n );\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className={cn(\n \"bg-secondary-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5\",\n )}\n >\n <SliderPrimitive.Range\n data-slot=\"slider-range\"\n className={cn(\n \"bg-primary-invert-bg absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\",\n )}\n />\n </SliderPrimitive.Track>\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n data-slot=\"slider-thumb\"\n key={index}\n className=\"block size-3 shrink-0 rounded-full border border-primary-txt bg-primary-bg ring-focus transition-[color,box-shadow] hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAS,OAAO,EAEd,WAEA,cAEA,OAEA,MAAM,GAEN,MAAM,KACN,GAAG,SACiD;CACpD,MAAM,UAAUA,MAAM,cACb,MAAM,QAAQ,KAAK,IAAI,QAAQ,MAAM,QAAQ,YAAY,IAAI,eAAe,CAAC,KAAK,GAAG,GAC5F;EAAC;EAAO;EAAc;EAAK;CAAG,CAChC;CAEA,OACE,iBAAA,GAAA,kBAAA,MAACC,SAAAA,OAAgB,MAAjB;EACE,aAAU;EACI;EACP;EACF;EACA;EACL,WAAWC,WAAAA,GACT,uOACA,SACF;EACA,GAAI;YAVN,CAYE,iBAAA,GAAA,kBAAA,KAACD,SAAAA,OAAgB,OAAjB;GACE,aAAU;GACV,WAAWC,WAAAA,GACT,0MACF;aAEA,iBAAA,GAAA,kBAAA,KAACD,SAAAA,OAAgB,OAAjB;IACE,aAAU;IACV,WAAWC,WAAAA,GACT,uGACF;GACD,CAAA;EACoB,CAAA,GACtB,MAAM,KAAK,EAAE,QAAQ,QAAQ,OAAO,IAAI,GAAG,UAC1C,iBAAA,GAAA,kBAAA,KAACD,SAAAA,OAAgB,OAAjB;GACE,aAAU;GAEV,WAAU;EACX,GAFM,KAEN,CACF,CACmB;;AAE1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Slider } from "../../
|
|
1
|
+
import { t as Slider } from "../../index55.cjs";
|
|
2
2
|
export { Slider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Slider } from "../../
|
|
1
|
+
import { t as Slider } from "../../index55.js";
|
|
2
2
|
export { Slider };
|
|
@@ -26,14 +26,14 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
26
26
|
...props,
|
|
27
27
|
children: [/* @__PURE__ */ jsx(Slider$1.Track, {
|
|
28
28
|
"data-slot": "slider-track",
|
|
29
|
-
className: cn("bg-
|
|
29
|
+
className: cn("bg-secondary-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
30
30
|
children: /* @__PURE__ */ jsx(Slider$1.Range, {
|
|
31
31
|
"data-slot": "slider-range",
|
|
32
|
-
className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
32
|
+
className: cn("bg-primary-invert-bg absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
33
33
|
})
|
|
34
34
|
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(Slider$1.Thumb, {
|
|
35
35
|
"data-slot": "slider-thumb",
|
|
36
|
-
className: "
|
|
36
|
+
className: "block size-3 shrink-0 rounded-full border border-primary-txt bg-primary-bg ring-focus transition-[color,box-shadow] hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
37
37
|
}, index))]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SliderPrimitive"],"sources":["../../../src/primitives/Slider/Slider.tsx"],"sourcesContent":["\"use client\";\n\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/**\n * A range input built on Radix Slider. Renders one thumb per value, so passing a\n * two-item `value`/`defaultValue` array yields a range (two-thumb) slider. Accepts\n * all Radix Slider Root props (`min`, `max`, `step`, `orientation`, `disabled`,\n * `onValueChange`, …).\n */\nfunction Slider({\n /** Extra classes merged onto the slider root. */\n className,\n /** Uncontrolled starting value(s); one thumb is rendered per array item. */\n defaultValue,\n /** Controlled value(s); one thumb is rendered per array item. */\n value,\n /** Lower bound of the track. Defaults to 0. */\n min = 0,\n /** Upper bound of the track. Defaults to 100. */\n max = 100,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root>) {\n const _values = React.useMemo(\n () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]),\n [value, defaultValue, min, max],\n );\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className={cn(\n \"bg-
|
|
1
|
+
{"version":3,"file":"index.js","names":["SliderPrimitive"],"sources":["../../../src/primitives/Slider/Slider.tsx"],"sourcesContent":["\"use client\";\n\nimport { Slider as SliderPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/**\n * A range input built on Radix Slider. Renders one thumb per value, so passing a\n * two-item `value`/`defaultValue` array yields a range (two-thumb) slider. Accepts\n * all Radix Slider Root props (`min`, `max`, `step`, `orientation`, `disabled`,\n * `onValueChange`, …).\n */\nfunction Slider({\n /** Extra classes merged onto the slider root. */\n className,\n /** Uncontrolled starting value(s); one thumb is rendered per array item. */\n defaultValue,\n /** Controlled value(s); one thumb is rendered per array item. */\n value,\n /** Lower bound of the track. Defaults to 0. */\n min = 0,\n /** Upper bound of the track. Defaults to 100. */\n max = 100,\n ...props\n}: React.ComponentProps<typeof SliderPrimitive.Root>) {\n const _values = React.useMemo(\n () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]),\n [value, defaultValue, min, max],\n );\n\n return (\n <SliderPrimitive.Root\n data-slot=\"slider\"\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n className={cn(\n \"relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track\n data-slot=\"slider-track\"\n className={cn(\n \"bg-secondary-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5\",\n )}\n >\n <SliderPrimitive.Range\n data-slot=\"slider-range\"\n className={cn(\n \"bg-primary-invert-bg absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\",\n )}\n />\n </SliderPrimitive.Track>\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n data-slot=\"slider-thumb\"\n key={index}\n className=\"block size-3 shrink-0 rounded-full border border-primary-txt bg-primary-bg ring-focus transition-[color,box-shadow] hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;AAaA,SAAS,OAAO,EAEd,WAEA,cAEA,OAEA,MAAM,GAEN,MAAM,KACN,GAAG,SACiD;CACpD,MAAM,UAAU,MAAM,cACb,MAAM,QAAQ,KAAK,IAAI,QAAQ,MAAM,QAAQ,YAAY,IAAI,eAAe,CAAC,KAAK,GAAG,GAC5F;EAAC;EAAO;EAAc;EAAK;CAAG,CAChC;CAEA,OACE,qBAACA,SAAgB,MAAjB;EACE,aAAU;EACI;EACP;EACF;EACA;EACL,WAAW,GACT,uOACA,SACF;EACA,GAAI;YAVN,CAYE,oBAACA,SAAgB,OAAjB;GACE,aAAU;GACV,WAAW,GACT,0MACF;aAEA,oBAACA,SAAgB,OAAjB;IACE,aAAU;IACV,WAAW,GACT,uGACF;GACD,CAAA;EACoB,CAAA,GACtB,MAAM,KAAK,EAAE,QAAQ,QAAQ,OAAO,IAAI,GAAG,UAC1C,oBAACA,SAAgB,OAAjB;GACE,aAAU;GAEV,WAAU;EACX,GAFM,KAEN,CACF,CACmB;;AAE1B"}
|
|
@@ -10,9 +10,9 @@ let sonner = require("sonner");
|
|
|
10
10
|
* `next-themes`, so the DS does not couple to any particular theme provider —
|
|
11
11
|
* consuming apps pass their resolved theme explicitly.
|
|
12
12
|
*
|
|
13
|
-
* Per-severity colors
|
|
14
|
-
* `toast.error/success/warning/info(...)` adopt the tokenized palette and
|
|
15
|
-
* to light/dark + brand switching. Severity icons are provided here.
|
|
13
|
+
* Per-severity colors are applied through `data-[type=…]` classes on the toast,
|
|
14
|
+
* so `toast.error/success/warning/info(...)` adopt the tokenized palette and
|
|
15
|
+
* react to light/dark + brand switching. Severity icons are provided here.
|
|
16
16
|
*/
|
|
17
17
|
const Toaster = ({ theme = "system", position = "top-center", closeButton = true, ...props }) => {
|
|
18
18
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(sonner.Toaster, {
|
|
@@ -21,6 +21,13 @@ const Toaster = ({ theme = "system", position = "top-center", closeButton = true
|
|
|
21
21
|
closeButton,
|
|
22
22
|
richColors: true,
|
|
23
23
|
className: "toaster group",
|
|
24
|
+
toastOptions: { classNames: {
|
|
25
|
+
toast: "group/toast !rounded-10 !border-primary-border !bg-glass-none-bg !p-4 !shadow-sm !gap-3 !text-primary-txt data-[type=info]:!bg-info-bg data-[type=info]:!border-info-border data-[type=info]:!text-info-txt data-[type=success]:!bg-success-bg data-[type=success]:!border-success-border data-[type=success]:!text-success-txt data-[type=warning]:!bg-warning-bg data-[type=warning]:!border-warning-border data-[type=warning]:!text-warning-txt data-[type=error]:!bg-danger-bg data-[type=error]:!border-danger-border data-[type=error]:!text-danger-txt",
|
|
26
|
+
title: "!text-sm !leading-5 !font-medium !text-current",
|
|
27
|
+
description: "!text-sm !leading-5 !font-normal !text-muted-txt group-data-[type=info]/toast:!text-info-txt group-data-[type=success]/toast:!text-success-txt group-data-[type=warning]/toast:!text-warning-txt group-data-[type=error]/toast:!text-danger-txt",
|
|
28
|
+
actionButton: "!min-h-6 !rounded-8 !bg-secondary-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt",
|
|
29
|
+
cancelButton: "!min-h-6 !rounded-8 !bg-ghost-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt"
|
|
30
|
+
} },
|
|
24
31
|
icons: {
|
|
25
32
|
success: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CircleCheckIcon, { className: "size-4" }),
|
|
26
33
|
info: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.InfoIcon, { className: "size-4" }),
|
|
@@ -29,9 +36,9 @@ const Toaster = ({ theme = "system", position = "top-center", closeButton = true
|
|
|
29
36
|
loading: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Loader2Icon, { className: "size-4 animate-spin" })
|
|
30
37
|
},
|
|
31
38
|
style: {
|
|
32
|
-
"--normal-bg": "var(--
|
|
33
|
-
"--normal-text": "var(--
|
|
34
|
-
"--normal-border": "var(--border)"
|
|
39
|
+
"--normal-bg": "var(--glass-none-bg)",
|
|
40
|
+
"--normal-text": "var(--primary-txt)",
|
|
41
|
+
"--normal-border": "var(--primary-border)"
|
|
35
42
|
},
|
|
36
43
|
...props
|
|
37
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["Sonner","CircleCheckIcon","InfoIcon","TriangleAlertIcon","OctagonXIcon","Loader2Icon"],"sources":["../../../src/primitives/Sonner/Sonner.tsx"],"sourcesContent":["import {\n CircleCheckIcon,\n InfoIcon,\n Loader2Icon,\n OctagonXIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\n/**\n * Toaster wired to the design-system tokens.\n *\n * Theme is accepted as a prop (default \"system\") instead of being read from\n * `next-themes`, so the DS does not couple to any particular theme provider —\n * consuming apps pass their resolved theme explicitly.\n *\n * Per-severity colors
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Sonner","CircleCheckIcon","InfoIcon","TriangleAlertIcon","OctagonXIcon","Loader2Icon"],"sources":["../../../src/primitives/Sonner/Sonner.tsx"],"sourcesContent":["import {\n CircleCheckIcon,\n InfoIcon,\n Loader2Icon,\n OctagonXIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\n/**\n * Toaster wired to the design-system tokens.\n *\n * Theme is accepted as a prop (default \"system\") instead of being read from\n * `next-themes`, so the DS does not couple to any particular theme provider —\n * consuming apps pass their resolved theme explicitly.\n *\n * Per-severity colors are applied through `data-[type=…]` classes on the toast,\n * so `toast.error/success/warning/info(...)` adopt the tokenized palette and\n * react to light/dark + brand switching. Severity icons are provided here.\n */\nconst Toaster = ({\n /** Resolved color scheme for the toasts; pass your app's theme explicitly. */\n theme = \"system\",\n /** Screen corner/edge where toasts are anchored. */\n position = \"top-center\",\n /** Whether each toast renders a dismiss (close) button. */\n closeButton = true,\n ...props\n}: ToasterProps) => {\n return (\n <Sonner\n theme={theme}\n position={position}\n closeButton={closeButton}\n richColors\n className=\"toaster group\"\n // Figma Sonner card (node 139:11359): glass-none surface, primary border,\n // rounded-10, p-4, shadow-sm; 14/20 medium title, muted description;\n // actions are secondary-mini chips.\n // Severity toasts follow the InfoBanner treatment (bg-X-bg / text-X-txt):\n // the data-[type=…] variants out-specify the neutral base so richColors\n // severities keep their tokenized palette.\n toastOptions={{\n classNames: {\n toast:\n \"group/toast !rounded-10 !border-primary-border !bg-glass-none-bg !p-4 !shadow-sm !gap-3 !text-primary-txt data-[type=info]:!bg-info-bg data-[type=info]:!border-info-border data-[type=info]:!text-info-txt data-[type=success]:!bg-success-bg data-[type=success]:!border-success-border data-[type=success]:!text-success-txt data-[type=warning]:!bg-warning-bg data-[type=warning]:!border-warning-border data-[type=warning]:!text-warning-txt data-[type=error]:!bg-danger-bg data-[type=error]:!border-danger-border data-[type=error]:!text-danger-txt\",\n title: \"!text-sm !leading-5 !font-medium !text-current\",\n description:\n \"!text-sm !leading-5 !font-normal !text-muted-txt group-data-[type=info]/toast:!text-info-txt group-data-[type=success]/toast:!text-success-txt group-data-[type=warning]/toast:!text-warning-txt group-data-[type=error]/toast:!text-danger-txt\",\n actionButton:\n \"!min-h-6 !rounded-8 !bg-secondary-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt\",\n cancelButton:\n \"!min-h-6 !rounded-8 !bg-ghost-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt\",\n },\n }}\n icons={{\n success: <CircleCheckIcon className=\"size-4\" />,\n info: <InfoIcon className=\"size-4\" />,\n warning: <TriangleAlertIcon className=\"size-4\" />,\n error: <OctagonXIcon className=\"size-4\" />,\n loading: <Loader2Icon className=\"size-4 animate-spin\" />,\n }}\n style={\n {\n \"--normal-bg\": \"var(--glass-none-bg)\",\n \"--normal-text\": \"var(--primary-txt)\",\n \"--normal-border\": \"var(--primary-border)\",\n } as React.CSSProperties\n }\n {...props}\n />\n );\n};\n\nexport { Toaster };\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,MAAM,WAAW,EAEf,QAAQ,UAER,WAAW,cAEX,cAAc,MACd,GAAG,YACe;CAClB,OACE,iBAAA,GAAA,kBAAA,KAACA,OAAAA,SAAD;EACS;EACG;EACG;EACb,YAAA;EACA,WAAU;EAOV,cAAc,EACZ,YAAY;GACV,OACE;GACF,OAAO;GACP,aACE;GACF,cACE;GACF,cACE;EACJ,EACF;EACA,OAAO;GACL,SAAS,iBAAA,GAAA,kBAAA,KAACC,aAAAA,iBAAD,EAAiB,WAAU,SAAU,CAAA;GAC9C,MAAM,iBAAA,GAAA,kBAAA,KAACC,aAAAA,UAAD,EAAU,WAAU,SAAU,CAAA;GACpC,SAAS,iBAAA,GAAA,kBAAA,KAACC,aAAAA,mBAAD,EAAmB,WAAU,SAAU,CAAA;GAChD,OAAO,iBAAA,GAAA,kBAAA,KAACC,aAAAA,cAAD,EAAc,WAAU,SAAU,CAAA;GACzC,SAAS,iBAAA,GAAA,kBAAA,KAACC,aAAAA,aAAD,EAAa,WAAU,sBAAuB,CAAA;EACzD;EACA,OACE;GACE,eAAe;GACf,iBAAiB;GACjB,mBAAmB;EACrB;EAEF,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Toaster } from "../../
|
|
1
|
+
import { t as Toaster } from "../../index56.cjs";
|
|
2
2
|
export { Toaster };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Toaster } from "../../
|
|
1
|
+
import { t as Toaster } from "../../index56.js";
|
|
2
2
|
export { Toaster };
|
|
@@ -9,9 +9,9 @@ import { Toaster as Toaster$1 } from "sonner";
|
|
|
9
9
|
* `next-themes`, so the DS does not couple to any particular theme provider —
|
|
10
10
|
* consuming apps pass their resolved theme explicitly.
|
|
11
11
|
*
|
|
12
|
-
* Per-severity colors
|
|
13
|
-
* `toast.error/success/warning/info(...)` adopt the tokenized palette and
|
|
14
|
-
* to light/dark + brand switching. Severity icons are provided here.
|
|
12
|
+
* Per-severity colors are applied through `data-[type=…]` classes on the toast,
|
|
13
|
+
* so `toast.error/success/warning/info(...)` adopt the tokenized palette and
|
|
14
|
+
* react to light/dark + brand switching. Severity icons are provided here.
|
|
15
15
|
*/
|
|
16
16
|
const Toaster = ({ theme = "system", position = "top-center", closeButton = true, ...props }) => {
|
|
17
17
|
return /* @__PURE__ */ jsx(Toaster$1, {
|
|
@@ -20,6 +20,13 @@ const Toaster = ({ theme = "system", position = "top-center", closeButton = true
|
|
|
20
20
|
closeButton,
|
|
21
21
|
richColors: true,
|
|
22
22
|
className: "toaster group",
|
|
23
|
+
toastOptions: { classNames: {
|
|
24
|
+
toast: "group/toast !rounded-10 !border-primary-border !bg-glass-none-bg !p-4 !shadow-sm !gap-3 !text-primary-txt data-[type=info]:!bg-info-bg data-[type=info]:!border-info-border data-[type=info]:!text-info-txt data-[type=success]:!bg-success-bg data-[type=success]:!border-success-border data-[type=success]:!text-success-txt data-[type=warning]:!bg-warning-bg data-[type=warning]:!border-warning-border data-[type=warning]:!text-warning-txt data-[type=error]:!bg-danger-bg data-[type=error]:!border-danger-border data-[type=error]:!text-danger-txt",
|
|
25
|
+
title: "!text-sm !leading-5 !font-medium !text-current",
|
|
26
|
+
description: "!text-sm !leading-5 !font-normal !text-muted-txt group-data-[type=info]/toast:!text-info-txt group-data-[type=success]/toast:!text-success-txt group-data-[type=warning]/toast:!text-warning-txt group-data-[type=error]/toast:!text-danger-txt",
|
|
27
|
+
actionButton: "!min-h-6 !rounded-8 !bg-secondary-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt",
|
|
28
|
+
cancelButton: "!min-h-6 !rounded-8 !bg-ghost-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt"
|
|
29
|
+
} },
|
|
23
30
|
icons: {
|
|
24
31
|
success: /* @__PURE__ */ jsx(CircleCheckIcon, { className: "size-4" }),
|
|
25
32
|
info: /* @__PURE__ */ jsx(InfoIcon, { className: "size-4" }),
|
|
@@ -28,9 +35,9 @@ const Toaster = ({ theme = "system", position = "top-center", closeButton = true
|
|
|
28
35
|
loading: /* @__PURE__ */ jsx(Loader2Icon, { className: "size-4 animate-spin" })
|
|
29
36
|
},
|
|
30
37
|
style: {
|
|
31
|
-
"--normal-bg": "var(--
|
|
32
|
-
"--normal-text": "var(--
|
|
33
|
-
"--normal-border": "var(--border)"
|
|
38
|
+
"--normal-bg": "var(--glass-none-bg)",
|
|
39
|
+
"--normal-text": "var(--primary-txt)",
|
|
40
|
+
"--normal-border": "var(--primary-border)"
|
|
34
41
|
},
|
|
35
42
|
...props
|
|
36
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Sonner"],"sources":["../../../src/primitives/Sonner/Sonner.tsx"],"sourcesContent":["import {\n CircleCheckIcon,\n InfoIcon,\n Loader2Icon,\n OctagonXIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\n/**\n * Toaster wired to the design-system tokens.\n *\n * Theme is accepted as a prop (default \"system\") instead of being read from\n * `next-themes`, so the DS does not couple to any particular theme provider —\n * consuming apps pass their resolved theme explicitly.\n *\n * Per-severity colors
|
|
1
|
+
{"version":3,"file":"index.js","names":["Sonner"],"sources":["../../../src/primitives/Sonner/Sonner.tsx"],"sourcesContent":["import {\n CircleCheckIcon,\n InfoIcon,\n Loader2Icon,\n OctagonXIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\n/**\n * Toaster wired to the design-system tokens.\n *\n * Theme is accepted as a prop (default \"system\") instead of being read from\n * `next-themes`, so the DS does not couple to any particular theme provider —\n * consuming apps pass their resolved theme explicitly.\n *\n * Per-severity colors are applied through `data-[type=…]` classes on the toast,\n * so `toast.error/success/warning/info(...)` adopt the tokenized palette and\n * react to light/dark + brand switching. Severity icons are provided here.\n */\nconst Toaster = ({\n /** Resolved color scheme for the toasts; pass your app's theme explicitly. */\n theme = \"system\",\n /** Screen corner/edge where toasts are anchored. */\n position = \"top-center\",\n /** Whether each toast renders a dismiss (close) button. */\n closeButton = true,\n ...props\n}: ToasterProps) => {\n return (\n <Sonner\n theme={theme}\n position={position}\n closeButton={closeButton}\n richColors\n className=\"toaster group\"\n // Figma Sonner card (node 139:11359): glass-none surface, primary border,\n // rounded-10, p-4, shadow-sm; 14/20 medium title, muted description;\n // actions are secondary-mini chips.\n // Severity toasts follow the InfoBanner treatment (bg-X-bg / text-X-txt):\n // the data-[type=…] variants out-specify the neutral base so richColors\n // severities keep their tokenized palette.\n toastOptions={{\n classNames: {\n toast:\n \"group/toast !rounded-10 !border-primary-border !bg-glass-none-bg !p-4 !shadow-sm !gap-3 !text-primary-txt data-[type=info]:!bg-info-bg data-[type=info]:!border-info-border data-[type=info]:!text-info-txt data-[type=success]:!bg-success-bg data-[type=success]:!border-success-border data-[type=success]:!text-success-txt data-[type=warning]:!bg-warning-bg data-[type=warning]:!border-warning-border data-[type=warning]:!text-warning-txt data-[type=error]:!bg-danger-bg data-[type=error]:!border-danger-border data-[type=error]:!text-danger-txt\",\n title: \"!text-sm !leading-5 !font-medium !text-current\",\n description:\n \"!text-sm !leading-5 !font-normal !text-muted-txt group-data-[type=info]/toast:!text-info-txt group-data-[type=success]/toast:!text-success-txt group-data-[type=warning]/toast:!text-warning-txt group-data-[type=error]/toast:!text-danger-txt\",\n actionButton:\n \"!min-h-6 !rounded-8 !bg-secondary-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt\",\n cancelButton:\n \"!min-h-6 !rounded-8 !bg-ghost-bg !px-4 !py-0.75 !text-xs !leading-4 !text-primary-txt\",\n },\n }}\n icons={{\n success: <CircleCheckIcon className=\"size-4\" />,\n info: <InfoIcon className=\"size-4\" />,\n warning: <TriangleAlertIcon className=\"size-4\" />,\n error: <OctagonXIcon className=\"size-4\" />,\n loading: <Loader2Icon className=\"size-4 animate-spin\" />,\n }}\n style={\n {\n \"--normal-bg\": \"var(--glass-none-bg)\",\n \"--normal-text\": \"var(--primary-txt)\",\n \"--normal-border\": \"var(--primary-border)\",\n } as React.CSSProperties\n }\n {...props}\n />\n );\n};\n\nexport { Toaster };\n"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAM,WAAW,EAEf,QAAQ,UAER,WAAW,cAEX,cAAc,MACd,GAAG,YACe;CAClB,OACE,oBAACA,WAAD;EACS;EACG;EACG;EACb,YAAA;EACA,WAAU;EAOV,cAAc,EACZ,YAAY;GACV,OACE;GACF,OAAO;GACP,aACE;GACF,cACE;GACF,cACE;EACJ,EACF;EACA,OAAO;GACL,SAAS,oBAAC,iBAAD,EAAiB,WAAU,SAAU,CAAA;GAC9C,MAAM,oBAAC,UAAD,EAAU,WAAU,SAAU,CAAA;GACpC,SAAS,oBAAC,mBAAD,EAAmB,WAAU,SAAU,CAAA;GAChD,OAAO,oBAAC,cAAD,EAAc,WAAU,SAAU,CAAA;GACzC,SAAS,oBAAC,aAAD,EAAa,WAAU,sBAAuB,CAAA;EACzD;EACA,OACE;GACE,eAAe;GACf,iBAAiB;GACjB,mBAAmB;EACrB;EAEF,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Spinner } from "../../
|
|
1
|
+
import { t as Spinner } from "../../index57.cjs";
|
|
2
2
|
export { Spinner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Spinner } from "../../
|
|
1
|
+
import { t as Spinner } from "../../index57.js";
|
|
2
2
|
export { Spinner };
|
|
@@ -9,11 +9,11 @@ function Switch({ className, size = "default", ...props }) {
|
|
|
9
9
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Switch.Root, {
|
|
10
10
|
"data-slot": "switch",
|
|
11
11
|
"data-size": size,
|
|
12
|
-
className: require_cn.cn("peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent
|
|
12
|
+
className: require_cn.cn("peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-3 focus-visible:ring-focus disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-4.5 data-[size=default]:w-8.25 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-switch-active-bg data-[state=unchecked]:bg-muted-txt", className),
|
|
13
13
|
...props,
|
|
14
14
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(radix_ui.Switch.Thumb, {
|
|
15
15
|
"data-slot": "switch-thumb",
|
|
16
|
-
className: require_cn.cn("pointer-events-none block rounded-full bg-
|
|
16
|
+
className: require_cn.cn("pointer-events-none block rounded-full bg-primary-invert-txt ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:data-[state=checked]:translate-x-3.75 group-data-[size=sm]/switch:data-[state=checked]:translate-x-2.5")
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -31,7 +31,7 @@ function SwitchGroup({ className, label, flipped = false, id, ...props }) {
|
|
|
31
31
|
}), label != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
32
32
|
"data-slot": "switch-group-label",
|
|
33
33
|
htmlFor: switchId,
|
|
34
|
-
className: "cursor-pointer select-none
|
|
34
|
+
className: "cursor-pointer select-none text-sm leading-5",
|
|
35
35
|
children: label
|
|
36
36
|
})]
|
|
37
37
|
});
|
|
@@ -43,21 +43,21 @@ function RichSwitchGroup({ className, title, description, flipped = false, id, .
|
|
|
43
43
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
44
44
|
"data-slot": "rich-switch-group",
|
|
45
45
|
htmlFor: switchId,
|
|
46
|
-
className: require_cn.cn("flex cursor-pointer items-center gap-3 rounded-
|
|
46
|
+
className: require_cn.cn("flex cursor-pointer items-center gap-3 rounded-10 border border-primary-border bg-muted-bg p-3 text-primary-txt transition-colors has-[[data-state=checked]]:border-selected-border has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50", flipped ? "flex-row-reverse" : "flex-row", className),
|
|
47
47
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
48
48
|
"data-slot": "rich-switch-group-control",
|
|
49
49
|
id: switchId,
|
|
50
50
|
...props
|
|
51
51
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
52
52
|
"data-slot": "rich-switch-group-content",
|
|
53
|
-
className: "flex flex-1 flex-col gap-1",
|
|
53
|
+
className: "flex flex-1 flex-col gap-1.5",
|
|
54
54
|
children: [title != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
55
55
|
"data-slot": "rich-switch-group-title",
|
|
56
|
-
className: "
|
|
56
|
+
className: "text-sm leading-5",
|
|
57
57
|
children: title
|
|
58
58
|
}), description != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
59
59
|
"data-slot": "rich-switch-group-description",
|
|
60
|
-
className: "text-
|
|
60
|
+
className: "text-xs leading-4 text-muted-txt",
|
|
61
61
|
children: description
|
|
62
62
|
})]
|
|
63
63
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["SwitchPrimitive","cn"],"sources":["../../../src/primitives/Switch/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from \"radix-ui\";\nimport { useId } from \"react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** A toggle control for switching a single setting on or off. */\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n}) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n \"peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["SwitchPrimitive","cn"],"sources":["../../../src/primitives/Switch/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from \"radix-ui\";\nimport { useId } from \"react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** A toggle control for switching a single setting on or off. */\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n}) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n // Figma: track 33×18, checked = switch-active (lime), unchecked bound to\n // content/muted (a -txt token used as the track fill on purpose).\n \"peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-3 focus-visible:ring-focus disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-4.5 data-[size=default]:w-8.25 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-switch-active-bg data-[state=unchecked]:bg-muted-txt\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n // Thumb is content/primary-invert in Figma (off-white light, near-black dark).\n \"pointer-events-none block rounded-full bg-primary-invert-txt ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:data-[state=checked]:translate-x-3.75 group-data-[size=sm]/switch:data-[state=checked]:translate-x-2.5\",\n )}\n />\n </SwitchPrimitive.Root>\n );\n}\n\n/** A `Switch` paired with a clickable text label. */\nfunction SwitchGroup({\n className,\n label,\n flipped = false,\n id,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n /** Text (or node) rendered as the switch's label. */\n label?: React.ReactNode;\n /** Renders the label before the switch instead of after it. */\n flipped?: boolean;\n}) {\n const generatedId = useId();\n const switchId = id ?? generatedId;\n return (\n <div\n data-slot=\"switch-group\"\n className={cn(\n \"flex items-center gap-2\",\n flipped ? \"flex-row-reverse\" : \"flex-row\",\n className,\n )}\n >\n <Switch data-slot=\"switch-group-control\" id={switchId} {...props} />\n {label != null && (\n <label\n data-slot=\"switch-group-label\"\n htmlFor={switchId}\n className=\"cursor-pointer select-none text-sm leading-5\"\n >\n {label}\n </label>\n )}\n </div>\n );\n}\n\n/** A `Switch` inside a bordered card with a title and description. */\nfunction RichSwitchGroup({\n className,\n title,\n description,\n flipped = false,\n id,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n /** Primary label rendered above the description. */\n title?: React.ReactNode;\n /** Secondary helper text rendered below the title. */\n description?: React.ReactNode;\n /** Renders the switch before the text content instead of after it. */\n flipped?: boolean;\n}) {\n const generatedId = useId();\n const switchId = id ?? generatedId;\n return (\n <label\n data-slot=\"rich-switch-group\"\n htmlFor={switchId}\n className={cn(\n \"flex cursor-pointer items-center gap-3 rounded-10 border border-primary-border bg-muted-bg p-3 text-primary-txt transition-colors has-[[data-state=checked]]:border-selected-border has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50\",\n flipped ? \"flex-row-reverse\" : \"flex-row\",\n className,\n )}\n >\n <Switch data-slot=\"rich-switch-group-control\" id={switchId} {...props} />\n <span data-slot=\"rich-switch-group-content\" className=\"flex flex-1 flex-col gap-1.5\">\n {title != null && (\n <span data-slot=\"rich-switch-group-title\" className=\"text-sm leading-5\">\n {title}\n </span>\n )}\n {description != null && (\n <span\n data-slot=\"rich-switch-group-description\"\n className=\"text-xs leading-4 text-muted-txt\"\n >\n {description}\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { Switch, SwitchGroup, RichSwitchGroup };\n"],"mappings":";;;;;;;AAOA,SAAS,OAAO,EACd,WACA,OAAO,WACP,GAAG,SAIF;CACD,OACE,iBAAA,GAAA,kBAAA,KAACA,SAAAA,OAAgB,MAAjB;EACE,aAAU;EACV,aAAW;EACX,WAAWC,WAAAA,GAGT,iZACA,SACF;EACA,GAAI;YAEJ,iBAAA,GAAA,kBAAA,KAACD,SAAAA,OAAgB,OAAjB;GACE,aAAU;GACV,WAAWC,WAAAA,GAET,kVACF;EACD,CAAA;CACmB,CAAA;AAE1B;;AAGA,SAAS,YAAY,EACnB,WACA,OACA,UAAU,OACV,IACA,GAAG,SAQF;CACD,MAAM,eAAA,GAAA,MAAA,OAAoB;CAC1B,MAAM,WAAW,MAAM;CACvB,OACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GACT,2BACA,UAAU,qBAAqB,YAC/B,SACF;YANF,CAQE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GAAQ,aAAU;GAAuB,IAAI;GAAU,GAAI;EAAQ,CAAA,GAClE,SAAS,QACR,iBAAA,GAAA,kBAAA,KAAC,SAAD;GACE,aAAU;GACV,SAAS;GACT,WAAU;aAET;EACI,CAAA,CAEN;;AAET;;AAGA,SAAS,gBAAgB,EACvB,WACA,OACA,aACA,UAAU,OACV,IACA,GAAG,SAUF;CACD,MAAM,eAAA,GAAA,MAAA,OAAoB;CAC1B,MAAM,WAAW,MAAM;CACvB,OACE,iBAAA,GAAA,kBAAA,MAAC,SAAD;EACE,aAAU;EACV,SAAS;EACT,WAAWA,WAAAA,GACT,qPACA,UAAU,qBAAqB,YAC/B,SACF;YAPF,CASE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GAAQ,aAAU;GAA4B,IAAI;GAAU,GAAI;EAAQ,CAAA,GACxE,iBAAA,GAAA,kBAAA,MAAC,QAAD;GAAM,aAAU;GAA4B,WAAU;aAAtD,CACG,SAAS,QACR,iBAAA,GAAA,kBAAA,KAAC,QAAD;IAAM,aAAU;IAA0B,WAAU;cACjD;GACG,CAAA,GAEP,eAAe,QACd,iBAAA,GAAA,kBAAA,KAAC,QAAD;IACE,aAAU;IACV,WAAU;cAET;GACG,CAAA,CAEJ;IACD;;AAEX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Switch, r as SwitchGroup, t as RichSwitchGroup } from "../../
|
|
1
|
+
import { n as Switch, r as SwitchGroup, t as RichSwitchGroup } from "../../index58.cjs";
|
|
2
2
|
export { RichSwitchGroup, Switch, SwitchGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Switch, r as SwitchGroup, t as RichSwitchGroup } from "../../
|
|
1
|
+
import { n as Switch, r as SwitchGroup, t as RichSwitchGroup } from "../../index58.js";
|
|
2
2
|
export { RichSwitchGroup, Switch, SwitchGroup };
|
|
@@ -8,11 +8,11 @@ function Switch({ className, size = "default", ...props }) {
|
|
|
8
8
|
return /* @__PURE__ */ jsx(Switch$1.Root, {
|
|
9
9
|
"data-slot": "switch",
|
|
10
10
|
"data-size": size,
|
|
11
|
-
className: cn("peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent
|
|
11
|
+
className: cn("peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-3 focus-visible:ring-focus disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-4.5 data-[size=default]:w-8.25 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-switch-active-bg data-[state=unchecked]:bg-muted-txt", className),
|
|
12
12
|
...props,
|
|
13
13
|
children: /* @__PURE__ */ jsx(Switch$1.Thumb, {
|
|
14
14
|
"data-slot": "switch-thumb",
|
|
15
|
-
className: cn("pointer-events-none block rounded-full bg-
|
|
15
|
+
className: cn("pointer-events-none block rounded-full bg-primary-invert-txt ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:data-[state=checked]:translate-x-3.75 group-data-[size=sm]/switch:data-[state=checked]:translate-x-2.5")
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -30,7 +30,7 @@ function SwitchGroup({ className, label, flipped = false, id, ...props }) {
|
|
|
30
30
|
}), label != null && /* @__PURE__ */ jsx("label", {
|
|
31
31
|
"data-slot": "switch-group-label",
|
|
32
32
|
htmlFor: switchId,
|
|
33
|
-
className: "cursor-pointer select-none
|
|
33
|
+
className: "cursor-pointer select-none text-sm leading-5",
|
|
34
34
|
children: label
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
@@ -42,21 +42,21 @@ function RichSwitchGroup({ className, title, description, flipped = false, id, .
|
|
|
42
42
|
return /* @__PURE__ */ jsxs("label", {
|
|
43
43
|
"data-slot": "rich-switch-group",
|
|
44
44
|
htmlFor: switchId,
|
|
45
|
-
className: cn("flex cursor-pointer items-center gap-3 rounded-
|
|
45
|
+
className: cn("flex cursor-pointer items-center gap-3 rounded-10 border border-primary-border bg-muted-bg p-3 text-primary-txt transition-colors has-[[data-state=checked]]:border-selected-border has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50", flipped ? "flex-row-reverse" : "flex-row", className),
|
|
46
46
|
children: [/* @__PURE__ */ jsx(Switch, {
|
|
47
47
|
"data-slot": "rich-switch-group-control",
|
|
48
48
|
id: switchId,
|
|
49
49
|
...props
|
|
50
50
|
}), /* @__PURE__ */ jsxs("span", {
|
|
51
51
|
"data-slot": "rich-switch-group-content",
|
|
52
|
-
className: "flex flex-1 flex-col gap-1",
|
|
52
|
+
className: "flex flex-1 flex-col gap-1.5",
|
|
53
53
|
children: [title != null && /* @__PURE__ */ jsx("span", {
|
|
54
54
|
"data-slot": "rich-switch-group-title",
|
|
55
|
-
className: "
|
|
55
|
+
className: "text-sm leading-5",
|
|
56
56
|
children: title
|
|
57
57
|
}), description != null && /* @__PURE__ */ jsx("span", {
|
|
58
58
|
"data-slot": "rich-switch-group-description",
|
|
59
|
-
className: "text-
|
|
59
|
+
className: "text-xs leading-4 text-muted-txt",
|
|
60
60
|
children: description
|
|
61
61
|
})]
|
|
62
62
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SwitchPrimitive"],"sources":["../../../src/primitives/Switch/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from \"radix-ui\";\nimport { useId } from \"react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** A toggle control for switching a single setting on or off. */\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n}) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n \"peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent
|
|
1
|
+
{"version":3,"file":"index.js","names":["SwitchPrimitive"],"sources":["../../../src/primitives/Switch/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from \"radix-ui\";\nimport { useId } from \"react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** A toggle control for switching a single setting on or off. */\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n}) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n // Figma: track 33×18, checked = switch-active (lime), unchecked bound to\n // content/muted (a -txt token used as the track fill on purpose).\n \"peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-3 focus-visible:ring-focus disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-4.5 data-[size=default]:w-8.25 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-switch-active-bg data-[state=unchecked]:bg-muted-txt\",\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n // Thumb is content/primary-invert in Figma (off-white light, near-black dark).\n \"pointer-events-none block rounded-full bg-primary-invert-txt ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:data-[state=checked]:translate-x-3.75 group-data-[size=sm]/switch:data-[state=checked]:translate-x-2.5\",\n )}\n />\n </SwitchPrimitive.Root>\n );\n}\n\n/** A `Switch` paired with a clickable text label. */\nfunction SwitchGroup({\n className,\n label,\n flipped = false,\n id,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n /** Text (or node) rendered as the switch's label. */\n label?: React.ReactNode;\n /** Renders the label before the switch instead of after it. */\n flipped?: boolean;\n}) {\n const generatedId = useId();\n const switchId = id ?? generatedId;\n return (\n <div\n data-slot=\"switch-group\"\n className={cn(\n \"flex items-center gap-2\",\n flipped ? \"flex-row-reverse\" : \"flex-row\",\n className,\n )}\n >\n <Switch data-slot=\"switch-group-control\" id={switchId} {...props} />\n {label != null && (\n <label\n data-slot=\"switch-group-label\"\n htmlFor={switchId}\n className=\"cursor-pointer select-none text-sm leading-5\"\n >\n {label}\n </label>\n )}\n </div>\n );\n}\n\n/** A `Switch` inside a bordered card with a title and description. */\nfunction RichSwitchGroup({\n className,\n title,\n description,\n flipped = false,\n id,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root> & {\n /** Visual size of the track and thumb. */\n size?: \"sm\" | \"default\";\n /** Primary label rendered above the description. */\n title?: React.ReactNode;\n /** Secondary helper text rendered below the title. */\n description?: React.ReactNode;\n /** Renders the switch before the text content instead of after it. */\n flipped?: boolean;\n}) {\n const generatedId = useId();\n const switchId = id ?? generatedId;\n return (\n <label\n data-slot=\"rich-switch-group\"\n htmlFor={switchId}\n className={cn(\n \"flex cursor-pointer items-center gap-3 rounded-10 border border-primary-border bg-muted-bg p-3 text-primary-txt transition-colors has-[[data-state=checked]]:border-selected-border has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50\",\n flipped ? \"flex-row-reverse\" : \"flex-row\",\n className,\n )}\n >\n <Switch data-slot=\"rich-switch-group-control\" id={switchId} {...props} />\n <span data-slot=\"rich-switch-group-content\" className=\"flex flex-1 flex-col gap-1.5\">\n {title != null && (\n <span data-slot=\"rich-switch-group-title\" className=\"text-sm leading-5\">\n {title}\n </span>\n )}\n {description != null && (\n <span\n data-slot=\"rich-switch-group-description\"\n className=\"text-xs leading-4 text-muted-txt\"\n >\n {description}\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { Switch, SwitchGroup, RichSwitchGroup };\n"],"mappings":";;;;;;AAOA,SAAS,OAAO,EACd,WACA,OAAO,WACP,GAAG,SAIF;CACD,OACE,oBAACA,SAAgB,MAAjB;EACE,aAAU;EACV,aAAW;EACX,WAAW,GAGT,iZACA,SACF;EACA,GAAI;YAEJ,oBAACA,SAAgB,OAAjB;GACE,aAAU;GACV,WAAW,GAET,kVACF;EACD,CAAA;CACmB,CAAA;AAE1B;;AAGA,SAAS,YAAY,EACnB,WACA,OACA,UAAU,OACV,IACA,GAAG,SAQF;CACD,MAAM,cAAc,MAAM;CAC1B,MAAM,WAAW,MAAM;CACvB,OACE,qBAAC,OAAD;EACE,aAAU;EACV,WAAW,GACT,2BACA,UAAU,qBAAqB,YAC/B,SACF;YANF,CAQE,oBAAC,QAAD;GAAQ,aAAU;GAAuB,IAAI;GAAU,GAAI;EAAQ,CAAA,GAClE,SAAS,QACR,oBAAC,SAAD;GACE,aAAU;GACV,SAAS;GACT,WAAU;aAET;EACI,CAAA,CAEN;;AAET;;AAGA,SAAS,gBAAgB,EACvB,WACA,OACA,aACA,UAAU,OACV,IACA,GAAG,SAUF;CACD,MAAM,cAAc,MAAM;CAC1B,MAAM,WAAW,MAAM;CACvB,OACE,qBAAC,SAAD;EACE,aAAU;EACV,SAAS;EACT,WAAW,GACT,qPACA,UAAU,qBAAqB,YAC/B,SACF;YAPF,CASE,oBAAC,QAAD;GAAQ,aAAU;GAA4B,IAAI;GAAU,GAAI;EAAQ,CAAA,GACxE,qBAAC,QAAD;GAAM,aAAU;GAA4B,WAAU;aAAtD,CACG,SAAS,QACR,oBAAC,QAAD;IAAM,aAAU;IAA0B,WAAU;cACjD;GACG,CAAA,GAEP,eAAe,QACd,oBAAC,QAAD;IACE,aAAU;IACV,WAAU;cAET;GACG,CAAA,CAEJ;IACD;;AAEX"}
|
|
@@ -10,7 +10,7 @@ function Table({ className, striped = false, ...props }) {
|
|
|
10
10
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
|
|
11
11
|
"data-slot": "table",
|
|
12
12
|
"data-striped": striped || void 0,
|
|
13
|
-
className: require_cn.cn("w-full caption-bottom text-sm", striped && "[&_tbody_tr:nth-child(even)]:bg-
|
|
13
|
+
className: require_cn.cn("w-full caption-bottom text-sm rounded-t-16 rounded-b-16 overflow-hidden", striped && "[&_tbody_tr:nth-child(odd)]:bg-muted-bg [&_tbody_tr:nth-child(even)]:bg-primary-bg", className),
|
|
14
14
|
...props
|
|
15
15
|
})
|
|
16
16
|
});
|
|
@@ -19,7 +19,7 @@ function Table({ className, striped = false, ...props }) {
|
|
|
19
19
|
function TableHeader({ className, ...props }) {
|
|
20
20
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
|
|
21
21
|
"data-slot": "table-header",
|
|
22
|
-
className: require_cn.cn("[&_tr]:border-b", className),
|
|
22
|
+
className: require_cn.cn("[&_tr]:border-b bg-glass-60-bg backdrop-blur-glass", className),
|
|
23
23
|
...props
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -35,7 +35,7 @@ function TableBody({ className, ...props }) {
|
|
|
35
35
|
function TableFooter({ className, ...props }) {
|
|
36
36
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
|
|
37
37
|
"data-slot": "table-footer",
|
|
38
|
-
className: require_cn.cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
|
|
38
|
+
className: require_cn.cn("border-t bg-muted-bg/50 font-medium [&>tr]:last:border-b-0", className),
|
|
39
39
|
...props
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -43,7 +43,7 @@ function TableFooter({ className, ...props }) {
|
|
|
43
43
|
function TableRow({ className, ...props }) {
|
|
44
44
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
|
|
45
45
|
"data-slot": "table-row",
|
|
46
|
-
className: require_cn.cn("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", className),
|
|
46
|
+
className: require_cn.cn("border-b transition-colors hover:bg-muted-bg/50 has-aria-expanded:bg-muted-bg/50 data-[state=selected]:bg-muted-bg", className),
|
|
47
47
|
...props
|
|
48
48
|
});
|
|
49
49
|
}
|
|
@@ -51,7 +51,7 @@ function TableRow({ className, ...props }) {
|
|
|
51
51
|
function TableHead({ className, ...props }) {
|
|
52
52
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
53
53
|
"data-slot": "table-head",
|
|
54
|
-
className: require_cn.cn("h-10 px-2 text-base text-left align-middle font-medium whitespace-nowrap text-
|
|
54
|
+
className: require_cn.cn("h-10 px-2 text-base leading-6 text-left align-middle font-medium whitespace-nowrap text-primary-txt [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5", className),
|
|
55
55
|
...props
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ function TableHead({ className, ...props }) {
|
|
|
59
59
|
function TableCell({ className, ...props }) {
|
|
60
60
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
61
61
|
"data-slot": "table-cell",
|
|
62
|
-
className: require_cn.cn("p-2 text-base align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-
|
|
62
|
+
className: require_cn.cn("p-2 text-base leading-6 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5", className),
|
|
63
63
|
...props
|
|
64
64
|
});
|
|
65
65
|
}
|
|
@@ -67,7 +67,7 @@ function TableCell({ className, ...props }) {
|
|
|
67
67
|
function TableCaption({ className, ...props }) {
|
|
68
68
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
|
|
69
69
|
"data-slot": "table-caption",
|
|
70
|
-
className: require_cn.cn("mt-4 text-sm text-muted-
|
|
70
|
+
className: require_cn.cn("mt-4 text-sm text-muted-txt", className),
|
|
71
71
|
...props
|
|
72
72
|
});
|
|
73
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/primitives/Table/Table.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** The table root: wraps a `<table>` in a horizontally scrollable container. */\nfunction Table({\n className,\n striped = false,\n ...props\n}: React.ComponentProps<\"table\"> & {\n /**
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["cn"],"sources":["../../../src/primitives/Table/Table.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"@/utils\";\n\n/** The table root: wraps a `<table>` in a horizontally scrollable container. */\nfunction Table({\n className,\n striped = false,\n ...props\n}: React.ComponentProps<\"table\"> & {\n /** Zebra-stripes the body, tinting alternate rows starting with the first (Figma odd/even parity). */\n striped?: boolean;\n}) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table\n data-slot=\"table\"\n data-striped={striped || undefined}\n className={cn(\n \"w-full caption-bottom text-sm rounded-t-16 rounded-b-16 overflow-hidden\",\n // Zebra striping (Figma odd/even rows).\n striped &&\n \"[&_tbody_tr:nth-child(odd)]:bg-muted-bg [&_tbody_tr:nth-child(even)]:bg-primary-bg\",\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\n/** The `<thead>` section; holds the header row(s). */\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn(\"[&_tr]:border-b bg-glass-60-bg backdrop-blur-glass\", className)}\n {...props}\n />\n );\n}\n\n/** The `<tbody>` section; holds the data rows. */\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\n\n/** The `<tfoot>` section; a muted, emphasised summary row band. */\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\"border-t bg-muted-bg/50 font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n\n/** A table row (`<tr>`); supports hover and `data-state=\"selected\"` styling. */\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"border-b transition-colors hover:bg-muted-bg/50 has-aria-expanded:bg-muted-bg/50 data-[state=selected]:bg-muted-bg\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** A header cell (`<th>`); left-aligned, medium-weight column label. */\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"h-10 px-2 text-base leading-6 text-left align-middle font-medium whitespace-nowrap text-primary-txt [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** A data cell (`<td>`). */\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"p-2 text-base leading-6 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/** A `<caption>` rendered beneath the table as muted descriptive text. */\nfunction TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"mt-4 text-sm text-muted-txt\", className)}\n {...props}\n />\n );\n}\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n"],"mappings":";;;;;AAKA,SAAS,MAAM,EACb,WACA,UAAU,OACV,GAAG,SAIF;CACD,OACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,aAAU;EAAkB,WAAU;YACzC,iBAAA,GAAA,kBAAA,KAAC,SAAD;GACE,aAAU;GACV,gBAAc,WAAW,KAAA;GACzB,WAAWA,WAAAA,GACT,4EAEA,WACE,sFACF,SACF;GACA,GAAI;EACL,CAAA;CACE,CAAA;AAET;;AAGA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC3E,OACE,iBAAA,GAAA,kBAAA,KAAC,SAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,sDAAsD,SAAS;EAC7E,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAwC;CACzE,OACE,iBAAA,GAAA,kBAAA,KAAC,SAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,8BAA8B,SAAS;EACrD,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC3E,OACE,iBAAA,GAAA,kBAAA,KAAC,SAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,8DAA8D,SAAS;EACrF,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAqC;CACrE,OACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GACT,sHACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACtE,OACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GACT,yKACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACtE,OACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GACT,4HACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;AAGA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA0C;CAC9E,OACE,iBAAA,GAAA,kBAAA,KAAC,WAAD;EACE,aAAU;EACV,WAAWA,WAAAA,GAAG,+BAA+B,SAAS;EACtD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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 "../../
|
|
1
|
+
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";
|
|
2
2
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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 "../../
|
|
1
|
+
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.js";
|
|
2
2
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|