@six-vallees/ui-react 0.5.0 → 0.7.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/README.md +11 -15
- package/dist/actions/button-group.d.ts +21 -0
- package/dist/actions/button-group.js +8 -0
- package/dist/actions/button-group.js.map +1 -0
- package/dist/actions/context-menu.d.ts +48 -0
- package/dist/actions/context-menu.js +38 -0
- package/dist/actions/context-menu.js.map +1 -0
- package/dist/actions/dropdown-menu.d.ts +49 -0
- package/dist/actions/dropdown-menu.js +38 -0
- package/dist/actions/dropdown-menu.js.map +1 -0
- package/dist/actions/icon-button.d.ts +34 -0
- package/dist/actions/icon-button.js +10 -0
- package/dist/actions/icon-button.js.map +1 -0
- package/dist/actions/link.d.ts +23 -0
- package/dist/actions/link.js +8 -0
- package/dist/actions/link.js.map +1 -0
- package/dist/actions/menu-styles.d.ts +25 -0
- package/dist/actions/menu-styles.js +23 -0
- package/dist/actions/menu-styles.js.map +1 -0
- package/dist/avatar/avatar.d.ts +30 -0
- package/dist/avatar/avatar.js +11 -0
- package/dist/avatar/avatar.js.map +1 -0
- package/dist/badge/badge.d.ts +32 -0
- package/dist/badge/badge.js +10 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/button/button.d.ts +7 -4
- package/dist/button/button.js +1 -1
- package/dist/card/card.d.ts +11 -3
- package/dist/card/card.js +1 -1
- package/dist/charts/bar-chart.d.ts +50 -11
- package/dist/charts/bar-chart.js +7 -2
- package/dist/charts/benchmark-table.d.ts +47 -0
- package/dist/charts/benchmark-table.js +10 -0
- package/dist/charts/benchmark-table.js.map +1 -0
- package/dist/charts/delta.d.ts +23 -0
- package/dist/charts/delta.js +8 -0
- package/dist/charts/delta.js.map +1 -0
- package/dist/charts/dot-matrix.d.ts +38 -0
- package/dist/charts/dot-matrix.js +13 -0
- package/dist/charts/dot-matrix.js.map +1 -0
- package/dist/charts/heatmap.d.ts +33 -0
- package/dist/charts/heatmap.js +13 -0
- package/dist/charts/heatmap.js.map +1 -0
- package/dist/charts/lib/scale.d.ts +17 -0
- package/dist/charts/lib/scale.js +15 -0
- package/dist/charts/lib/scale.js.map +1 -0
- package/dist/charts/lib/series.d.ts +76 -44
- package/dist/charts/lib/series.js +25 -11
- package/dist/charts/lib/use-chart.d.ts +48 -0
- package/dist/charts/lib/use-chart.js +16 -0
- package/dist/charts/lib/use-chart.js.map +1 -0
- package/dist/charts/line-chart.d.ts +52 -19
- package/dist/charts/line-chart.js +11 -2
- package/dist/charts/meter.d.ts +30 -0
- package/dist/charts/meter.js +12 -0
- package/dist/charts/meter.js.map +1 -0
- package/dist/charts/primitives/chart-frame.d.ts +25 -0
- package/dist/charts/primitives/chart-frame.js +8 -0
- package/dist/charts/primitives/chart-frame.js.map +1 -0
- package/dist/charts/primitives/chart-grid.d.ts +29 -0
- package/dist/charts/primitives/chart-grid.js +9 -0
- package/dist/charts/primitives/chart-grid.js.map +1 -0
- package/dist/charts/primitives/chart-legend.d.ts +23 -0
- package/dist/charts/primitives/chart-legend.js +9 -0
- package/dist/charts/primitives/chart-legend.js.map +1 -0
- package/dist/charts/primitives/chart-tooltip.d.ts +31 -0
- package/dist/charts/primitives/chart-tooltip.js +9 -0
- package/dist/charts/primitives/chart-tooltip.js.map +1 -0
- package/dist/charts/rank-list.d.ts +29 -0
- package/dist/charts/rank-list.js +12 -0
- package/dist/charts/rank-list.js.map +1 -0
- package/dist/charts/ring.d.ts +25 -24
- package/dist/charts/ring.js +4 -2
- package/dist/charts/scatter-chart.d.ts +42 -0
- package/dist/charts/scatter-chart.js +14 -0
- package/dist/charts/scatter-chart.js.map +1 -0
- package/dist/charts/segmented-bar.d.ts +16 -11
- package/dist/charts/segmented-bar.js +6 -2
- package/dist/charts/sparkline.d.ts +32 -0
- package/dist/charts/sparkline.js +10 -0
- package/dist/charts/sparkline.js.map +1 -0
- package/dist/charts/stat.d.ts +13 -7
- package/dist/charts/stat.js +2 -1
- package/dist/chunk-24T7KWXQ.js +84 -0
- package/dist/chunk-24T7KWXQ.js.map +1 -0
- package/dist/chunk-2NJFAPRG.js +40 -0
- package/dist/chunk-2NJFAPRG.js.map +1 -0
- package/dist/chunk-3PHVZB3A.js +73 -0
- package/dist/chunk-3PHVZB3A.js.map +1 -0
- package/dist/chunk-5EGRSN37.js +102 -0
- package/dist/chunk-5EGRSN37.js.map +1 -0
- package/dist/chunk-7FRDEE43.js +35 -0
- package/dist/chunk-7FRDEE43.js.map +1 -0
- package/dist/chunk-7YKHLP4S.js +43 -0
- package/dist/chunk-7YKHLP4S.js.map +1 -0
- package/dist/{chunk-7GXL7U5X.js → chunk-A65X3XYB.js} +4 -3
- package/dist/chunk-A65X3XYB.js.map +1 -0
- package/dist/chunk-AGKLGZSW.js +74 -0
- package/dist/chunk-AGKLGZSW.js.map +1 -0
- package/dist/chunk-AQHYE6EF.js +109 -0
- package/dist/chunk-AQHYE6EF.js.map +1 -0
- package/dist/chunk-AWVTRQZJ.js +117 -0
- package/dist/chunk-AWVTRQZJ.js.map +1 -0
- package/dist/chunk-BDQUFQE7.js +30 -0
- package/dist/chunk-BDQUFQE7.js.map +1 -0
- package/dist/chunk-BJKQSXX4.js +54 -0
- package/dist/chunk-BJKQSXX4.js.map +1 -0
- package/dist/chunk-BKSKRGK7.js +81 -0
- package/dist/chunk-BKSKRGK7.js.map +1 -0
- package/dist/chunk-BVNDNRPW.js +44 -0
- package/dist/chunk-BVNDNRPW.js.map +1 -0
- package/dist/chunk-CN6QNKYV.js +24 -0
- package/dist/chunk-CN6QNKYV.js.map +1 -0
- package/dist/chunk-DD6QBBV2.js +119 -0
- package/dist/chunk-DD6QBBV2.js.map +1 -0
- package/dist/chunk-DHPFIP7P.js +50 -0
- package/dist/chunk-DHPFIP7P.js.map +1 -0
- package/dist/chunk-DRJWJ7KG.js +109 -0
- package/dist/chunk-DRJWJ7KG.js.map +1 -0
- package/dist/chunk-DUJEWU5O.js +72 -0
- package/dist/chunk-DUJEWU5O.js.map +1 -0
- package/dist/chunk-EKQQBSFF.js +79 -0
- package/dist/chunk-EKQQBSFF.js.map +1 -0
- package/dist/chunk-EM5UHI3U.js +39 -0
- package/dist/chunk-EM5UHI3U.js.map +1 -0
- package/dist/chunk-ENL5WNFM.js +101 -0
- package/dist/chunk-ENL5WNFM.js.map +1 -0
- package/dist/chunk-EVKFEIM2.js +37 -0
- package/dist/chunk-EVKFEIM2.js.map +1 -0
- package/dist/chunk-EXEJG4IG.js +101 -0
- package/dist/chunk-EXEJG4IG.js.map +1 -0
- package/dist/chunk-FSVKQPMR.js +45 -0
- package/dist/chunk-FSVKQPMR.js.map +1 -0
- package/dist/chunk-GASC427L.js +34 -0
- package/dist/chunk-GASC427L.js.map +1 -0
- package/dist/chunk-GGQ6GQ75.js +24 -0
- package/dist/chunk-GGQ6GQ75.js.map +1 -0
- package/dist/chunk-GHXR4PCK.js +147 -0
- package/dist/chunk-GHXR4PCK.js.map +1 -0
- package/dist/chunk-HC3SNY5O.js +52 -0
- package/dist/chunk-HC3SNY5O.js.map +1 -0
- package/dist/chunk-HJ7ICELB.js +76 -0
- package/dist/chunk-HJ7ICELB.js.map +1 -0
- package/dist/chunk-I355QWHH.js +40 -0
- package/dist/chunk-I355QWHH.js.map +1 -0
- package/dist/chunk-I6D5E5ZD.js +34 -0
- package/dist/chunk-I6D5E5ZD.js.map +1 -0
- package/dist/chunk-IBY25I76.js +49 -0
- package/dist/chunk-IBY25I76.js.map +1 -0
- package/dist/chunk-IGOTX5DA.js +19 -0
- package/dist/chunk-IGOTX5DA.js.map +1 -0
- package/dist/chunk-JI4UZW6G.js +39 -0
- package/dist/chunk-JI4UZW6G.js.map +1 -0
- package/dist/chunk-JZNXMBZ6.js +93 -0
- package/dist/chunk-JZNXMBZ6.js.map +1 -0
- package/dist/chunk-LAATHRKX.js +39 -0
- package/dist/chunk-LAATHRKX.js.map +1 -0
- package/dist/chunk-LL5GBPQN.js +64 -0
- package/dist/chunk-LL5GBPQN.js.map +1 -0
- package/dist/chunk-ML3IXSZV.js +78 -0
- package/dist/chunk-ML3IXSZV.js.map +1 -0
- package/dist/chunk-MNECWWTU.js +62 -0
- package/dist/chunk-MNECWWTU.js.map +1 -0
- package/dist/chunk-MPYL4ED3.js +171 -0
- package/dist/chunk-MPYL4ED3.js.map +1 -0
- package/dist/chunk-MS7ZK2O6.js +65 -0
- package/dist/chunk-MS7ZK2O6.js.map +1 -0
- package/dist/chunk-MZVQ32JU.js +29 -0
- package/dist/chunk-MZVQ32JU.js.map +1 -0
- package/dist/chunk-NC4IUB2C.js +33 -0
- package/dist/chunk-NC4IUB2C.js.map +1 -0
- package/dist/chunk-NCAHIMIB.js +96 -0
- package/dist/chunk-NCAHIMIB.js.map +1 -0
- package/dist/chunk-NJVKZ5DE.js +114 -0
- package/dist/chunk-NJVKZ5DE.js.map +1 -0
- package/dist/chunk-OGSHLSI2.js +22 -0
- package/dist/chunk-OGSHLSI2.js.map +1 -0
- package/dist/chunk-OIAZH5EU.js +36 -0
- package/dist/chunk-OIAZH5EU.js.map +1 -0
- package/dist/chunk-P22B7HQS.js +45 -0
- package/dist/chunk-P22B7HQS.js.map +1 -0
- package/dist/chunk-P2CWISVU.js +35 -0
- package/dist/chunk-P2CWISVU.js.map +1 -0
- package/dist/chunk-P4G5WFHH.js +18 -0
- package/dist/chunk-P4G5WFHH.js.map +1 -0
- package/dist/chunk-QNIIWNSR.js +78 -0
- package/dist/chunk-QNIIWNSR.js.map +1 -0
- package/dist/chunk-R23U2FRV.js +23 -0
- package/dist/chunk-R23U2FRV.js.map +1 -0
- package/dist/chunk-RB6DUG3M.js +9 -0
- package/dist/chunk-RB6DUG3M.js.map +1 -0
- package/dist/chunk-RKG72NSW.js +26 -0
- package/dist/chunk-RKG72NSW.js.map +1 -0
- package/dist/chunk-SAVUGRDZ.js +31 -0
- package/dist/chunk-SAVUGRDZ.js.map +1 -0
- package/dist/chunk-SEMDDFFB.js +37 -0
- package/dist/chunk-SEMDDFFB.js.map +1 -0
- package/dist/chunk-SNTRWOF6.js +90 -0
- package/dist/chunk-SNTRWOF6.js.map +1 -0
- package/dist/chunk-SOWWBAOB.js +36 -0
- package/dist/chunk-SOWWBAOB.js.map +1 -0
- package/dist/chunk-SYGAPDKX.js +45 -0
- package/dist/chunk-SYGAPDKX.js.map +1 -0
- package/dist/chunk-TBZIUIP2.js +87 -0
- package/dist/chunk-TBZIUIP2.js.map +1 -0
- package/dist/chunk-TD2NGENS.js +43 -0
- package/dist/chunk-TD2NGENS.js.map +1 -0
- package/dist/chunk-TH6WBEEL.js +58 -0
- package/dist/chunk-TH6WBEEL.js.map +1 -0
- package/dist/chunk-TUY3ZMDE.js +42 -0
- package/dist/chunk-TUY3ZMDE.js.map +1 -0
- package/dist/chunk-U4G72DSG.js +67 -0
- package/dist/chunk-U4G72DSG.js.map +1 -0
- package/dist/chunk-UG5TRIRZ.js +42 -0
- package/dist/chunk-UG5TRIRZ.js.map +1 -0
- package/dist/chunk-UOJZEP6N.js +39 -0
- package/dist/chunk-UOJZEP6N.js.map +1 -0
- package/dist/chunk-V5QWZ3LA.js +77 -0
- package/dist/chunk-V5QWZ3LA.js.map +1 -0
- package/dist/chunk-VDKJLIEZ.js +291 -0
- package/dist/chunk-VDKJLIEZ.js.map +1 -0
- package/dist/chunk-W2NESPKL.js +100 -0
- package/dist/chunk-W2NESPKL.js.map +1 -0
- package/dist/chunk-W3RIYQPO.js +37 -0
- package/dist/chunk-W3RIYQPO.js.map +1 -0
- package/dist/chunk-WO33CSUW.js +52 -0
- package/dist/chunk-WO33CSUW.js.map +1 -0
- package/dist/chunk-WSTHL6H7.js +33 -0
- package/dist/chunk-WSTHL6H7.js.map +1 -0
- package/dist/chunk-WZONN76V.js +55 -0
- package/dist/chunk-WZONN76V.js.map +1 -0
- package/dist/chunk-XGFM7GVN.js +39 -0
- package/dist/chunk-XGFM7GVN.js.map +1 -0
- package/dist/chunk-XSYY67X3.js +142 -0
- package/dist/chunk-XSYY67X3.js.map +1 -0
- package/dist/chunk-YFKM4ZLH.js +111 -0
- package/dist/chunk-YFKM4ZLH.js.map +1 -0
- package/dist/chunk-YM2TZ5UT.js +42 -0
- package/dist/chunk-YM2TZ5UT.js.map +1 -0
- package/dist/chunk-YP766ABA.js +268 -0
- package/dist/chunk-YP766ABA.js.map +1 -0
- package/dist/chunk-YT2PR4LF.js +38 -0
- package/dist/chunk-YT2PR4LF.js.map +1 -0
- package/dist/chunk-ZI4AJKES.js +29 -0
- package/dist/chunk-ZI4AJKES.js.map +1 -0
- package/dist/chunk-ZXVCMTM2.js +57 -0
- package/dist/chunk-ZXVCMTM2.js.map +1 -0
- package/dist/data-display/code-block.d.ts +26 -0
- package/dist/data-display/code-block.js +9 -0
- package/dist/data-display/code-block.js.map +1 -0
- package/dist/data-display/separator.d.ts +11 -0
- package/dist/data-display/separator.js +9 -0
- package/dist/data-display/separator.js.map +1 -0
- package/dist/data-display/stepper.d.ts +27 -0
- package/dist/data-display/stepper.js +8 -0
- package/dist/data-display/stepper.js.map +1 -0
- package/dist/data-display/table.d.ts +43 -0
- package/dist/data-display/table.js +24 -0
- package/dist/data-display/table.js.map +1 -0
- package/dist/data-display/tag.d.ts +27 -0
- package/dist/data-display/tag.js +10 -0
- package/dist/data-display/tag.js.map +1 -0
- package/dist/data-display/timeline.d.ts +24 -0
- package/dist/data-display/timeline.js +10 -0
- package/dist/data-display/timeline.js.map +1 -0
- package/dist/disclosure/accordion.d.ts +18 -0
- package/dist/disclosure/accordion.js +15 -0
- package/dist/disclosure/accordion.js.map +1 -0
- package/dist/disclosure/collapsible.d.ts +14 -0
- package/dist/disclosure/collapsible.js +13 -0
- package/dist/disclosure/collapsible.js.map +1 -0
- package/dist/disclosure/dialog.d.ts +43 -0
- package/dist/disclosure/dialog.js +27 -0
- package/dist/disclosure/dialog.js.map +1 -0
- package/dist/disclosure/hover-card.d.ts +21 -0
- package/dist/disclosure/hover-card.js +13 -0
- package/dist/disclosure/hover-card.js.map +1 -0
- package/dist/dots/dots.d.ts +41 -0
- package/dist/dots/dots.js +8 -0
- package/dist/dots/dots.js.map +1 -0
- package/dist/feedback/alert.d.ts +27 -0
- package/dist/feedback/alert.js +13 -0
- package/dist/feedback/alert.js.map +1 -0
- package/dist/feedback/empty-state.d.ts +28 -0
- package/dist/feedback/empty-state.js +8 -0
- package/dist/feedback/empty-state.js.map +1 -0
- package/dist/feedback/progress.d.ts +19 -0
- package/dist/feedback/progress.js +9 -0
- package/dist/feedback/progress.js.map +1 -0
- package/dist/feedback/skeleton.d.ts +16 -0
- package/dist/feedback/skeleton.js +8 -0
- package/dist/feedback/skeleton.js.map +1 -0
- package/dist/feedback/spinner.d.ts +19 -0
- package/dist/feedback/spinner.js +8 -0
- package/dist/feedback/spinner.js.map +1 -0
- package/dist/feedback/toast.d.ts +35 -0
- package/dist/feedback/toast.js +22 -0
- package/dist/feedback/toast.js.map +1 -0
- package/dist/feedback/tone.d.ts +20 -0
- package/dist/feedback/tone.js +11 -0
- package/dist/feedback/tone.js.map +1 -0
- package/dist/index.d.ts +97 -4
- package/dist/index.js +617 -25
- package/dist/input/chat-composer.d.ts +40 -0
- package/dist/input/chat-composer.js +9 -0
- package/dist/input/chat-composer.js.map +1 -0
- package/dist/input/checkbox.d.ts +15 -0
- package/dist/input/checkbox.js +9 -0
- package/dist/input/checkbox.js.map +1 -0
- package/dist/input/combobox.d.ts +121 -0
- package/dist/input/combobox.js +25 -0
- package/dist/input/combobox.js.map +1 -0
- package/dist/input/field-styles.d.ts +14 -0
- package/dist/input/field-styles.js +9 -0
- package/dist/input/field-styles.js.map +1 -0
- package/dist/input/input.d.ts +17 -0
- package/dist/input/input.js +9 -0
- package/dist/input/input.js.map +1 -0
- package/dist/input/kbd.d.ts +11 -0
- package/dist/input/kbd.js +8 -0
- package/dist/input/kbd.js.map +1 -0
- package/dist/input/label.d.ts +38 -0
- package/dist/input/label.js +11 -0
- package/dist/input/label.js.map +1 -0
- package/dist/input/radio-group.d.ts +15 -0
- package/dist/input/radio-group.js +11 -0
- package/dist/input/radio-group.js.map +1 -0
- package/dist/input/search-field.d.ts +24 -0
- package/dist/input/search-field.js +11 -0
- package/dist/input/search-field.js.map +1 -0
- package/dist/input/select.d.ts +29 -0
- package/dist/input/select.js +25 -0
- package/dist/input/select.js.map +1 -0
- package/dist/input/slider.d.ts +19 -0
- package/dist/input/slider.js +9 -0
- package/dist/input/slider.js.map +1 -0
- package/dist/input/switch.d.ts +15 -0
- package/dist/input/switch.js +9 -0
- package/dist/input/switch.js.map +1 -0
- package/dist/input/textarea.d.ts +9 -0
- package/dist/input/textarea.js +9 -0
- package/dist/input/textarea.js.map +1 -0
- package/dist/logo/cairn-mark.d.ts +24 -0
- package/dist/logo/cairn-mark.js +8 -0
- package/dist/logo/cairn-mark.js.map +1 -0
- package/dist/marketing/carousel-dots.d.ts +22 -0
- package/dist/marketing/carousel-dots.js +8 -0
- package/dist/marketing/carousel-dots.js.map +1 -0
- package/dist/marketing/cta-band.d.ts +24 -0
- package/dist/marketing/cta-band.js +9 -0
- package/dist/marketing/cta-band.js.map +1 -0
- package/dist/marketing/feature-grid.d.ts +30 -0
- package/dist/marketing/feature-grid.js +10 -0
- package/dist/marketing/feature-grid.js.map +1 -0
- package/dist/marketing/footer.d.ts +33 -0
- package/dist/marketing/footer.js +18 -0
- package/dist/marketing/footer.js.map +1 -0
- package/dist/marketing/hero-badge.d.ts +19 -0
- package/dist/marketing/hero-badge.js +8 -0
- package/dist/marketing/hero-badge.js.map +1 -0
- package/dist/marketing/logo-strip.d.ts +28 -0
- package/dist/marketing/logo-strip.js +8 -0
- package/dist/marketing/logo-strip.js.map +1 -0
- package/dist/marketing/pricing-card.d.ts +37 -0
- package/dist/marketing/pricing-card.js +10 -0
- package/dist/marketing/pricing-card.js.map +1 -0
- package/dist/marketing/section-header.d.ts +23 -0
- package/dist/marketing/section-header.js +8 -0
- package/dist/marketing/section-header.js.map +1 -0
- package/dist/navigation/anchor-rail.d.ts +27 -0
- package/dist/navigation/anchor-rail.js +9 -0
- package/dist/navigation/anchor-rail.js.map +1 -0
- package/dist/navigation/breadcrumb.d.ts +33 -0
- package/dist/navigation/breadcrumb.js +20 -0
- package/dist/navigation/breadcrumb.js.map +1 -0
- package/dist/navigation/nav-bar.d.ts +47 -0
- package/dist/navigation/nav-bar.js +21 -0
- package/dist/navigation/nav-bar.js.map +1 -0
- package/dist/navigation/navigation-menu.d.ts +23 -0
- package/dist/navigation/navigation-menu.js +25 -0
- package/dist/navigation/navigation-menu.js.map +1 -0
- package/dist/navigation/pagination.d.ts +31 -0
- package/dist/navigation/pagination.js +20 -0
- package/dist/navigation/pagination.js.map +1 -0
- package/dist/navigation/side-nav.d.ts +31 -0
- package/dist/navigation/side-nav.js +13 -0
- package/dist/navigation/side-nav.js.map +1 -0
- package/dist/overlay/alert-dialog.d.ts +42 -0
- package/dist/overlay/alert-dialog.js +23 -0
- package/dist/overlay/alert-dialog.js.map +1 -0
- package/dist/overlay/popover.d.ts +41 -0
- package/dist/overlay/popover.js +17 -0
- package/dist/overlay/popover.js.map +1 -0
- package/dist/overlay/sheet.d.ts +47 -0
- package/dist/overlay/sheet.js +29 -0
- package/dist/overlay/sheet.js.map +1 -0
- package/dist/overlay/tooltip.d.ts +31 -0
- package/dist/overlay/tooltip.js +15 -0
- package/dist/overlay/tooltip.js.map +1 -0
- package/dist/tabs/tabs.d.ts +24 -0
- package/dist/tabs/tabs.js +15 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/tabs/toggle-group.d.ts +19 -0
- package/dist/tabs/toggle-group.js +11 -0
- package/dist/tabs/toggle-group.js.map +1 -0
- package/package.json +25 -7
- package/dist/chunk-7GXL7U5X.js.map +0 -1
- package/dist/chunk-BWYWI4BC.js +0 -43
- package/dist/chunk-BWYWI4BC.js.map +0 -1
- package/dist/chunk-CZ3JB37A.js +0 -72
- package/dist/chunk-CZ3JB37A.js.map +0 -1
- package/dist/chunk-G2XJK244.js +0 -96
- package/dist/chunk-G2XJK244.js.map +0 -1
- package/dist/chunk-OWIUMX76.js +0 -91
- package/dist/chunk-OWIUMX76.js.map +0 -1
- package/dist/chunk-S4HVXD6Z.js +0 -92
- package/dist/chunk-S4HVXD6Z.js.map +0 -1
- package/dist/chunk-XGYKA3GE.js +0 -30
- package/dist/chunk-XGYKA3GE.js.map +0 -1
- package/dist/chunk-YX6MSLUB.js +0 -98
- package/dist/chunk-YX6MSLUB.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @six-vallees/ui-react
|
|
2
2
|
|
|
3
|
-
Cairn React components
|
|
4
|
-
|
|
3
|
+
Cairn React components, the Six Vallées design system UI, driven by the Cairn tokens.
|
|
4
|
+
Square, hairline, one orange signal. WCAG AA, light, dark
|
|
5
|
+
and black themes.
|
|
5
6
|
|
|
6
7
|
> Cairn is Six Vallées' **own** system (Zone C). Client and prospect projects carry their own
|
|
7
|
-
> brand
|
|
8
|
+
> brand, this package is not meant for them.
|
|
8
9
|
|
|
9
10
|
## Install
|
|
10
11
|
|
|
@@ -22,7 +23,7 @@ import { Button } from '@six-vallees/ui-react';
|
|
|
22
23
|
<Button variant="primary" size="md">Save</Button>;
|
|
23
24
|
```
|
|
24
25
|
|
|
25
|
-
The components style themselves with Cairn's token utilities (`bg-primary`, `
|
|
26
|
+
The components style themselves with Cairn's token utilities (`bg-primary`, `border-outline`,
|
|
26
27
|
…). Wire them once with the Tailwind preset from `@six-vallees/tokens`, and tell Tailwind to
|
|
27
28
|
scan this package so those classes are generated:
|
|
28
29
|
|
|
@@ -36,19 +37,14 @@ Full setup + a working example: **[Get started](https://cairn.sixvallees.com)**.
|
|
|
36
37
|
|
|
37
38
|
## Components
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
| `Logo` / `LogoMark` | Six Vallées wordmark + symbol, `currentColor`. |
|
|
44
|
-
| `Sparkline` | Compact axis-less trend line. |
|
|
45
|
-
| `AreaChart` · `BarChart` | Line/area and bar, SSR-safe SVG. |
|
|
46
|
-
| `Stat` | Metric with optional delta + trailing sparkline. |
|
|
47
|
-
| `Ring` · `SegmentedBar` | Radial progress and share-of-total, grayscale-first. |
|
|
40
|
+
Actions, inputs, navigation, overlays, disclosure, feedback, data display, marketing blocks and
|
|
41
|
+
the data-viz family (BarChart, LineChart / AreaChart, Ring, SegmentedBar, ScatterChart,
|
|
42
|
+
BenchmarkTable, RankList, DotMatrix, Heatmap, Meter, Stat, Delta, Sparkline). Every export of
|
|
43
|
+
`src/index.ts` has a page in the docs: **[cairn.sixvallees.com](https://cairn.sixvallees.com)**.
|
|
48
44
|
|
|
49
|
-
Helpers: `
|
|
45
|
+
Helpers: `paintSeries`, `brand`, `neutral`, `sequential`, `chartToken` (data-viz colour, `sys.chart.*` tokens).
|
|
50
46
|
|
|
51
47
|
## Notes
|
|
52
48
|
|
|
53
49
|
- Built to ESM + type declarations (tsup); tree-shakeable (`sideEffects: false`).
|
|
54
|
-
- No CSS is shipped
|
|
50
|
+
- No CSS is shipped, components carry Tailwind class strings; your Tailwind generates them.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn ButtonGroup. Related actions under one `role="group"` (give it an `aria-label` when the
|
|
5
|
+
* relation is not obvious from the buttons themselves). No Radix: a group has no behaviour, each
|
|
6
|
+
* button keeps its own tab stop. For a set where one option is selected, use `ToggleGroup`,
|
|
7
|
+
* which has the roving focus and the pressed state; this is for actions.
|
|
8
|
+
*
|
|
9
|
+
* `attached` joins the buttons into one control: edges overlapped by one hairline so two outlines
|
|
10
|
+
* never draw a double border, and the focused button raised so its
|
|
11
|
+
* ring is never clipped by its neighbour. Detached, the buttons sit `gap-sm` apart, the minimum
|
|
12
|
+
* between two elements that each show an edge.
|
|
13
|
+
*/
|
|
14
|
+
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
/** Join the buttons into one control. */
|
|
16
|
+
attached?: boolean;
|
|
17
|
+
orientation?: 'horizontal' | 'vertical';
|
|
18
|
+
}
|
|
19
|
+
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { ButtonGroup, type ButtonGroupProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn ContextMenu, on Radix ContextMenu: the same panel, items and indicators as
|
|
6
|
+
* `DropdownMenu`, opened by right click or long press on the trigger area, and by the context
|
|
7
|
+
* menu key or Shift+F10 from the keyboard. Radix places it at the pointer and handles focus,
|
|
8
|
+
* typeahead, submenus and dismissal.
|
|
9
|
+
*
|
|
10
|
+
* A context menu is a shortcut, never the only path to an action: whatever it offers must also
|
|
11
|
+
* be reachable from a visible control, because a right click is invisible until you know it
|
|
12
|
+
* exists.
|
|
13
|
+
*/
|
|
14
|
+
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
15
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
18
|
+
declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
19
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
interface ContextMenuContentProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content> {
|
|
21
|
+
/** Where the portal mounts. Defaults to `document.body`. See `PopoverContent`. */
|
|
22
|
+
container?: HTMLElement | null;
|
|
23
|
+
}
|
|
24
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
interface ContextMenuItemProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {
|
|
26
|
+
/** Indent to align with items that carry an indicator. */
|
|
27
|
+
inset?: boolean;
|
|
28
|
+
/** A destructive action: error container on highlight, text stays ink. */
|
|
29
|
+
variant?: 'default' | 'danger';
|
|
30
|
+
}
|
|
31
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
35
|
+
inset?: boolean;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
/** A keyboard hint at the end of a row. Text from the consumer; tabular figures, no second family. */
|
|
39
|
+
declare function ContextMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
40
|
+
declare namespace ContextMenuShortcut {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
44
|
+
inset?: boolean;
|
|
45
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
|
|
48
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ContextMenu,
|
|
4
|
+
ContextMenuCheckboxItem,
|
|
5
|
+
ContextMenuContent,
|
|
6
|
+
ContextMenuGroup,
|
|
7
|
+
ContextMenuItem,
|
|
8
|
+
ContextMenuLabel,
|
|
9
|
+
ContextMenuPortal,
|
|
10
|
+
ContextMenuRadioGroup,
|
|
11
|
+
ContextMenuRadioItem,
|
|
12
|
+
ContextMenuSeparator,
|
|
13
|
+
ContextMenuShortcut,
|
|
14
|
+
ContextMenuSub,
|
|
15
|
+
ContextMenuSubContent,
|
|
16
|
+
ContextMenuSubTrigger,
|
|
17
|
+
ContextMenuTrigger
|
|
18
|
+
} from "../chunk-AWVTRQZJ.js";
|
|
19
|
+
import "../chunk-R23U2FRV.js";
|
|
20
|
+
import "../chunk-DXRY7AS4.js";
|
|
21
|
+
export {
|
|
22
|
+
ContextMenu,
|
|
23
|
+
ContextMenuCheckboxItem,
|
|
24
|
+
ContextMenuContent,
|
|
25
|
+
ContextMenuGroup,
|
|
26
|
+
ContextMenuItem,
|
|
27
|
+
ContextMenuLabel,
|
|
28
|
+
ContextMenuPortal,
|
|
29
|
+
ContextMenuRadioGroup,
|
|
30
|
+
ContextMenuRadioItem,
|
|
31
|
+
ContextMenuSeparator,
|
|
32
|
+
ContextMenuShortcut,
|
|
33
|
+
ContextMenuSub,
|
|
34
|
+
ContextMenuSubContent,
|
|
35
|
+
ContextMenuSubTrigger,
|
|
36
|
+
ContextMenuTrigger
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn DropdownMenu, on Radix DropdownMenu: roving focus, typeahead, submenus that open on
|
|
6
|
+
* arrow keys, Escape and outside click, focus back to the trigger, collision-aware placement.
|
|
7
|
+
* None of it is hand-rolled.
|
|
8
|
+
*
|
|
9
|
+
* See `menu-styles.ts`: a square paper panel with one hairline and the light
|
|
10
|
+
* `nav` shadow, shown instantly; rows are flush 57px cells on hairlines.
|
|
11
|
+
*
|
|
12
|
+
* The `danger` item does not colour its text (rule 1): on highlight it takes the error container
|
|
13
|
+
* with its paired ink, and its word says what it does. The radio indicator is a dot, SV's motif.
|
|
14
|
+
*/
|
|
15
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
16
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
19
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
20
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
interface DropdownMenuContentProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> {
|
|
22
|
+
/** Where the portal mounts. Defaults to `document.body`. See `PopoverContent`. */
|
|
23
|
+
container?: HTMLElement | null;
|
|
24
|
+
}
|
|
25
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {
|
|
27
|
+
/** Indent to align with items that carry an indicator. */
|
|
28
|
+
inset?: boolean;
|
|
29
|
+
/** A destructive action: error container on highlight, text stays ink. */
|
|
30
|
+
variant?: 'default' | 'danger';
|
|
31
|
+
}
|
|
32
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
+
inset?: boolean;
|
|
37
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
/** A keyboard hint at the end of a row. Text from the consumer; tabular figures, no second family. */
|
|
40
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
41
|
+
declare namespace DropdownMenuShortcut {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
45
|
+
inset?: boolean;
|
|
46
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
|
|
49
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DropdownMenu,
|
|
4
|
+
DropdownMenuCheckboxItem,
|
|
5
|
+
DropdownMenuContent,
|
|
6
|
+
DropdownMenuGroup,
|
|
7
|
+
DropdownMenuItem,
|
|
8
|
+
DropdownMenuLabel,
|
|
9
|
+
DropdownMenuPortal,
|
|
10
|
+
DropdownMenuRadioGroup,
|
|
11
|
+
DropdownMenuRadioItem,
|
|
12
|
+
DropdownMenuSeparator,
|
|
13
|
+
DropdownMenuShortcut,
|
|
14
|
+
DropdownMenuSub,
|
|
15
|
+
DropdownMenuSubContent,
|
|
16
|
+
DropdownMenuSubTrigger,
|
|
17
|
+
DropdownMenuTrigger
|
|
18
|
+
} from "../chunk-DD6QBBV2.js";
|
|
19
|
+
import "../chunk-R23U2FRV.js";
|
|
20
|
+
import "../chunk-DXRY7AS4.js";
|
|
21
|
+
export {
|
|
22
|
+
DropdownMenu,
|
|
23
|
+
DropdownMenuCheckboxItem,
|
|
24
|
+
DropdownMenuContent,
|
|
25
|
+
DropdownMenuGroup,
|
|
26
|
+
DropdownMenuItem,
|
|
27
|
+
DropdownMenuLabel,
|
|
28
|
+
DropdownMenuPortal,
|
|
29
|
+
DropdownMenuRadioGroup,
|
|
30
|
+
DropdownMenuRadioItem,
|
|
31
|
+
DropdownMenuSeparator,
|
|
32
|
+
DropdownMenuShortcut,
|
|
33
|
+
DropdownMenuSub,
|
|
34
|
+
DropdownMenuSubContent,
|
|
35
|
+
DropdownMenuSubTrigger,
|
|
36
|
+
DropdownMenuTrigger
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { Icon } from '@phosphor-icons/react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Cairn IconButton. A square control whose only visible content is a glyph, so `label` is
|
|
8
|
+
* required and becomes the accessible name: an icon names nothing on its own (rule 8). Pair it
|
|
9
|
+
* with a `Tooltip` when sighted users need the word too.
|
|
10
|
+
*
|
|
11
|
+
* Same fills as `Button` (hover steps the fill, press steps it again), same
|
|
12
|
+
* heights (32 / 40 / 48), so an icon button sits on a row of buttons without a seam. `ghost` is
|
|
13
|
+
* the default: an icon action is usually a secondary one.
|
|
14
|
+
*/
|
|
15
|
+
declare const iconButtonVariants: (props?: ({
|
|
16
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
17
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
18
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
+
interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof iconButtonVariants> {
|
|
20
|
+
/** Accessible name. Required: the button shows no text. */
|
|
21
|
+
label: string;
|
|
22
|
+
/** The Phosphor glyph. */
|
|
23
|
+
icon: Icon;
|
|
24
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
25
|
+
size?: 'sm' | 'md' | 'lg';
|
|
26
|
+
/** Glyph weight; `fill` marks a pressed or selected state. */
|
|
27
|
+
weight?: 'regular' | 'fill' | 'bold';
|
|
28
|
+
/** Render as the child element (an `<a>`); the glyph is still rendered inside it. */
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
children?: React.ReactElement;
|
|
31
|
+
}
|
|
32
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
|
|
34
|
+
export { IconButton, type IconButtonProps, iconButtonVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Link (22/11/2026). Ink, never a hue (rule 1): a link is told apart by
|
|
5
|
+
* its underline on hover and, when it leads somewhere worth announcing, a trailing arrow that
|
|
6
|
+
* slides on the 500ms curve, the slowest of the three motion speeds, so the arrow reads as a
|
|
7
|
+
* gesture rather than a state change.
|
|
8
|
+
*
|
|
9
|
+
* `arrow="external"` swaps the glyph for the diagonal one; it does not add `target`, which stays
|
|
10
|
+
* the consumer's call (and, when used, wants `rel="noreferrer"` and a word saying so). The arrow
|
|
11
|
+
* is decorative: the link's words carry the meaning.
|
|
12
|
+
*/
|
|
13
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
14
|
+
/** Trailing arrow: `true` (forward) or `'external'` (diagonal). */
|
|
15
|
+
arrow?: boolean | 'external';
|
|
16
|
+
/** `ink` is the default; `muted` starts in the variant tone and steps to ink on hover. */
|
|
17
|
+
tone?: 'ink' | 'muted';
|
|
18
|
+
/** Render as the child element (a framework link) instead of an `<a>`. */
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
22
|
+
|
|
23
|
+
export { Link, type LinkProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared look of `DropdownMenu` and `ContextMenu` (22/11/2026). The panel is paper with one hairline, square, the soft `overlay`
|
|
3
|
+
* shadow, and it appears instantly: no slide, no fade, the menu is there when the pointer is.
|
|
4
|
+
*
|
|
5
|
+
* Rows are flush cells, 16px inset on every side, so a 24px line makes a 56px row plus its 1px
|
|
6
|
+
* top hairline (57 measured). The first row of the panel drops its hairline, which the panel
|
|
7
|
+
* border already draws. Highlight is the `surface-subtle` step; when it comes from the keyboard
|
|
8
|
+
* an inset focus outline is added, because a paper-on-paper step alone does not clear the 3:1 a
|
|
9
|
+
* focus indicator needs (rule 9).
|
|
10
|
+
*/
|
|
11
|
+
declare const MENU_CONTENT = "z-50 min-w-56 overflow-y-auto border border-outline bg-surface text-on-surface shadow-nav outline-none [&>:first-child]:border-t-0 [&>[role=group]:first-child>:first-child]:border-t-0";
|
|
12
|
+
/** The row itself, without state selectors (cmdk and Radix mark state differently). */
|
|
13
|
+
declare const MENU_ROW = "relative flex select-none items-center gap-gap-sm border-t border-outline p-inset-md sv-body-md text-on-surface outline-hidden transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus [&_svg]:shrink-0";
|
|
14
|
+
/** A Radix menu row: Radix sets `data-highlighted` and a bare `data-disabled`. */
|
|
15
|
+
declare const MENU_ITEM = "relative flex select-none items-center gap-gap-sm border-t border-outline p-inset-md sv-body-md text-on-surface outline-hidden transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus [&_svg]:shrink-0 data-[highlighted]:bg-surface-subtle data-[disabled]:pointer-events-none data-[disabled]:opacity-40";
|
|
16
|
+
/** Left inset of a row that carries an indicator (16px inset + 16px indicator + 8px gap). */
|
|
17
|
+
declare const MENU_INSET = "pl-10";
|
|
18
|
+
declare const MENU_INDICATOR = "absolute left-4 inline-flex size-4 items-center justify-center";
|
|
19
|
+
declare const MENU_LABEL = "border-t border-outline px-4 pt-4 pb-2 sv-eyebrow text-on-surface-variant";
|
|
20
|
+
/** A band between groups: two hairlines framing a paper step, never a third line. */
|
|
21
|
+
declare const MENU_SEPARATOR = "h-2 border-t border-outline bg-surface-subtle";
|
|
22
|
+
declare const MENU_SHORTCUT = "ml-auto pl-4 sv-body-xs tabular-nums text-on-surface-variant";
|
|
23
|
+
declare const MENU_DANGER = "data-[highlighted]:bg-error-container data-[highlighted]:text-on-error-container";
|
|
24
|
+
|
|
25
|
+
export { MENU_CONTENT, MENU_DANGER, MENU_INDICATOR, MENU_INSET, MENU_ITEM, MENU_LABEL, MENU_ROW, MENU_SEPARATOR, MENU_SHORTCUT };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MENU_CONTENT,
|
|
3
|
+
MENU_DANGER,
|
|
4
|
+
MENU_INDICATOR,
|
|
5
|
+
MENU_INSET,
|
|
6
|
+
MENU_ITEM,
|
|
7
|
+
MENU_LABEL,
|
|
8
|
+
MENU_ROW,
|
|
9
|
+
MENU_SEPARATOR,
|
|
10
|
+
MENU_SHORTCUT
|
|
11
|
+
} from "../chunk-R23U2FRV.js";
|
|
12
|
+
export {
|
|
13
|
+
MENU_CONTENT,
|
|
14
|
+
MENU_DANGER,
|
|
15
|
+
MENU_INDICATOR,
|
|
16
|
+
MENU_INSET,
|
|
17
|
+
MENU_ITEM,
|
|
18
|
+
MENU_LABEL,
|
|
19
|
+
MENU_ROW,
|
|
20
|
+
MENU_SEPARATOR,
|
|
21
|
+
MENU_SHORTCUT
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=menu-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Cairn Avatar. Radix, for the fallback, which is the only hard part.
|
|
8
|
+
*
|
|
9
|
+
* Showing initials until an image loads, and keeping them if it never does, is a
|
|
10
|
+
* three-state problem (idle / loaded / error) that every hand-rolled avatar gets
|
|
11
|
+
* wrong in the same way: it flashes the initials over the loaded image, or it
|
|
12
|
+
* leaves a broken-image icon on a 404. Radix's `Fallback` has the delay and the
|
|
13
|
+
* state machine; we bring the tokens.
|
|
14
|
+
*
|
|
15
|
+
* Neutral by construction. Tinting an avatar per person is a hue with no stated
|
|
16
|
+
* job (rule 3), and it collides with the one signal the system does have.
|
|
17
|
+
*/
|
|
18
|
+
declare const avatarVariants: (props?: ({
|
|
19
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
20
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
21
|
+
interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
/** The person's name. Drives the initials and the accessible label. */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Optional portrait. Absent or failing, the initials stand in. */
|
|
26
|
+
src?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
29
|
+
|
|
30
|
+
export { Avatar, type AvatarProps, avatarVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Cairn Badge. A square chip in the `label` role, the one sanctioned kicker
|
|
7
|
+
* (AGENTS.md rule 6), used as a status chip or a section eyebrow.
|
|
8
|
+
*
|
|
9
|
+
* The variants are NOT a palette. `neutral` is the default because the ordinary
|
|
10
|
+
* state of a thing is ordinary, and colouring the ordinary state leaves nothing
|
|
11
|
+
* left to signal with. The four message tones are hue-as-meaning (rule 4) and
|
|
12
|
+
* each is a `-container` fill with its paired, AA-verified `on-*-container` ink
|
|
13
|
+
*, never coloured text on the page ground (rule 1).
|
|
14
|
+
*
|
|
15
|
+
* `main`, the signature accent, is deliberately absent. It is the brand's one
|
|
16
|
+
* signal, a large-format fill with ink on top (rule 3); a small pill is neither
|
|
17
|
+
* large nor a place for 4.04:1 text.
|
|
18
|
+
*
|
|
19
|
+
* Meaning never rests on colour alone (rule 4): the badge always carries its own
|
|
20
|
+
* word. A badge whose only content is a colour is a bug, not a badge.
|
|
21
|
+
*/
|
|
22
|
+
declare const badgeVariants: (props?: ({
|
|
23
|
+
tone?: "outline" | "neutral" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
26
|
+
tone?: 'neutral' | 'success' | 'info' | 'warning' | 'error' | 'outline';
|
|
27
|
+
/** Render as the child element instead of a `<span>`. */
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
|
+
|
|
32
|
+
export { Badge, type BadgeProps, badgeVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/button/button.d.ts
CHANGED
|
@@ -3,20 +3,23 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Cairn Button.
|
|
7
|
-
*
|
|
6
|
+
* Cairn Button (22/11/2026). States are fills, never rings: hover steps the
|
|
7
|
+
* fill, press steps it again. `arrow` adds the signature interaction: on hover the trailing
|
|
8
|
+
* arrow slides out to the right, the label follows it, and a second arrow enters from the left.
|
|
8
9
|
*/
|
|
9
10
|
declare const buttonVariants: (props?: ({
|
|
10
|
-
variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
|
|
11
|
+
variant?: "primary" | "secondary" | "outline" | "ghost" | "inverse" | "danger" | null | undefined;
|
|
11
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
14
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
14
15
|
/** Visual style of the button. */
|
|
15
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
16
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'inverse' | 'danger';
|
|
16
17
|
/** Control height and padding. */
|
|
17
18
|
size?: 'sm' | 'md' | 'lg';
|
|
18
19
|
/** Render as the child element (e.g. an `<a>`) instead of a `<button>`. */
|
|
19
20
|
asChild?: boolean;
|
|
21
|
+
/** Add the sliding arrow interaction. */
|
|
22
|
+
arrow?: boolean;
|
|
20
23
|
}
|
|
21
24
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
25
|
|
package/dist/button/button.js
CHANGED
package/dist/card/card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Cairn Card. A surface for grouped content,
|
|
5
|
-
* for feature cards and metric tiles
|
|
4
|
+
* Cairn Card. A surface for grouped content, a square hairline frame
|
|
5
|
+
* for feature cards and metric tiles. Composed of parts, use as
|
|
6
6
|
* many as the content needs:
|
|
7
7
|
*
|
|
8
8
|
* <Card>
|
|
@@ -14,13 +14,21 @@ import * as React from 'react';
|
|
|
14
14
|
* <CardFooter>…</CardFooter>
|
|
15
15
|
* </Card>
|
|
16
16
|
*
|
|
17
|
-
* Token-driven through the Tailwind bridge (
|
|
17
|
+
* Token-driven through the Tailwind bridge (border-outline, bg-surface,
|
|
18
18
|
* p-inset-*). Neutral ink throughout, hierarchy comes from the type roles and tone,
|
|
19
19
|
* never hue (rule 1). Set `asChild` to render the surface as a link or another element.
|
|
20
|
+
*
|
|
21
|
+
* `interactive` is the marketing card: it rests
|
|
22
|
+
* on the card material (`surface-subtle`, paper 100) and LIGHTENS to `surface` (paper 50) on
|
|
23
|
+
* hover, toward the page, over the fast motion token. No shadow, no lift, no ring: the state is
|
|
24
|
+
* the fill. Pair it with `asChild` and a link so the whole card is the target; a keyboard focus
|
|
25
|
+
* draws the inset focus outline.
|
|
20
26
|
*/
|
|
21
27
|
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
28
|
/** Render as the child element (e.g. an `<a>`) instead of a `<div>`. */
|
|
23
29
|
asChild?: boolean;
|
|
30
|
+
/** Card state: paper 100 at rest, lightens to paper 50 on hover. */
|
|
31
|
+
interactive?: boolean;
|
|
24
32
|
}
|
|
25
33
|
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
34
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|