@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Table,
|
|
3
|
+
TableBody,
|
|
4
|
+
TableCaption,
|
|
5
|
+
TableCell,
|
|
6
|
+
TableFooter,
|
|
7
|
+
TableHead,
|
|
8
|
+
TableHeader,
|
|
9
|
+
TableRow,
|
|
10
|
+
TableSortHead
|
|
11
|
+
} from "../chunk-JZNXMBZ6.js";
|
|
12
|
+
import "../chunk-DXRY7AS4.js";
|
|
13
|
+
export {
|
|
14
|
+
Table,
|
|
15
|
+
TableBody,
|
|
16
|
+
TableCaption,
|
|
17
|
+
TableCell,
|
|
18
|
+
TableFooter,
|
|
19
|
+
TableHead,
|
|
20
|
+
TableHeader,
|
|
21
|
+
TableRow,
|
|
22
|
+
TableSortHead
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Tag and Chip (22/11/2026).
|
|
5
|
+
*
|
|
6
|
+
* `Tag` is a label on a thing: the `eyebrow` role (12px, medium, the one sanctioned uppercase,
|
|
7
|
+
* AGENTS.md rule 6) on the 5% ink veil, 8px by 4px inset, square. With `onRemove` it carries a
|
|
8
|
+
* remove button, named by `removeLabel` (required then: the button is a glyph).
|
|
9
|
+
*
|
|
10
|
+
* `Chip` is a filter you switch: a real toggle button (`aria-pressed`), sentence case, the veil
|
|
11
|
+
* stepping to 10% on hover. Selected, it takes the ink primary and a check slides in (the 150ms
|
|
12
|
+
* token); Cairn keeps hue for messages only (rule 4), so selection is ink, never a colour.
|
|
13
|
+
*/
|
|
14
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
15
|
+
/** Show a remove button. */
|
|
16
|
+
onRemove?: () => void;
|
|
17
|
+
/** Accessible name of the remove button. Required with `onRemove`. */
|
|
18
|
+
removeLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
onSelectedChange?: (selected: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
|
|
27
|
+
export { Chip, type ChipProps, Tag, type TagProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Timeline. Dated events as a list on a vertical hairline, each marked by a dot (one of
|
|
5
|
+
* Cairn's true circles, and SV's motif). The latest or ongoing event can be `active`: its dot
|
|
6
|
+
* is filled ink inside an ink ring, the others are empty rings in the variant tone, so the state reads without
|
|
7
|
+
* colour.
|
|
8
|
+
*
|
|
9
|
+
* Time goes in a `<time>` (`dateTime` machine-readable, `time` as the words to show), the title
|
|
10
|
+
* as the event's label, children as detail. `Timeline` is an `<ol>` when the order matters
|
|
11
|
+
* (default) and the list carries it to assistive tech.
|
|
12
|
+
*/
|
|
13
|
+
declare const Timeline: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
|
14
|
+
interface TimelineItemProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, 'title'> {
|
|
15
|
+
title: React.ReactNode;
|
|
16
|
+
/** The time as shown. */
|
|
17
|
+
time?: React.ReactNode;
|
|
18
|
+
/** Machine-readable time for the `<time>` element. */
|
|
19
|
+
dateTime?: string;
|
|
20
|
+
active?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const TimelineItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
23
|
+
|
|
24
|
+
export { Timeline, TimelineItem, type TimelineItemProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn Accordion, on Radix Accordion: each header is a real heading wrapping a button with
|
|
6
|
+
* `aria-expanded` and `aria-controls`, arrow keys move between headers, Home and End jump.
|
|
7
|
+
*
|
|
8
|
+
* 22/11/2026: full-width rows on hairlines, 16px side inset
|
|
9
|
+
* and 24px top and bottom, the caret on the right turning 180 degrees on the 300ms curve, no
|
|
10
|
+
* hover fill (the row is already the target). The panel unrolls to the height Radix measures
|
|
11
|
+
* (`animate-sv-unroll-down`), and reduced motion opens it at once.
|
|
12
|
+
*/
|
|
13
|
+
declare const Accordion: React.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
|
|
18
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Accordion,
|
|
4
|
+
AccordionContent,
|
|
5
|
+
AccordionItem,
|
|
6
|
+
AccordionTrigger
|
|
7
|
+
} from "../chunk-TH6WBEEL.js";
|
|
8
|
+
import "../chunk-DXRY7AS4.js";
|
|
9
|
+
export {
|
|
10
|
+
Accordion,
|
|
11
|
+
AccordionContent,
|
|
12
|
+
AccordionItem,
|
|
13
|
+
AccordionTrigger
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn Collapsible, on Radix Collapsible: one panel shown or hidden by one trigger, with
|
|
6
|
+
* `aria-expanded` and `aria-controls` wired. The trigger is the consumer's control (pass
|
|
7
|
+
* `asChild` with a `Button` or an `IconButton`); the panel unrolls like the Accordion's, and
|
|
8
|
+
* reduced motion shows it at once. For several panels in a row, use `Accordion`.
|
|
9
|
+
*/
|
|
10
|
+
declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Collapsible,
|
|
4
|
+
CollapsibleContent,
|
|
5
|
+
CollapsibleTrigger
|
|
6
|
+
} from "../chunk-SAVUGRDZ.js";
|
|
7
|
+
import "../chunk-DXRY7AS4.js";
|
|
8
|
+
export {
|
|
9
|
+
Collapsible,
|
|
10
|
+
CollapsibleContent,
|
|
11
|
+
CollapsibleTrigger
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn Dialog, on Radix Dialog: modal, focus trapped and returned to the trigger, Escape and
|
|
6
|
+
* scrim click close, the page behind is inert to assistive tech, scroll is locked. A dialog
|
|
7
|
+
* must be named: always render a `DialogTitle` (wrap it in `sr-only` when the design has no
|
|
8
|
+
* visible title), and a `DialogDescription` or pass `aria-describedby={undefined}`.
|
|
9
|
+
*
|
|
10
|
+
* 22/11/2026: the panel is paper on one hairline,
|
|
11
|
+
* square, 24px inset, max 512px wide; it zooms in from 95% with a fade over 200ms. The scrim is
|
|
12
|
+
* ink at 15% with a 4px blur, so the page stays legible behind it. Reduced motion drops the
|
|
13
|
+
* zoom and the fade.
|
|
14
|
+
*
|
|
15
|
+
* The close button is optional (`closeLabel`): no word is baked in, so it renders only when the
|
|
16
|
+
* consumer names it.
|
|
17
|
+
*/
|
|
18
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
19
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
22
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
24
|
+
/** Where the portal mounts. Defaults to `document.body`. See `PopoverContent`. */
|
|
25
|
+
container?: HTMLElement | null;
|
|
26
|
+
/** Classes for the scrim, so it can be raised with the panel. */
|
|
27
|
+
overlayClassName?: string;
|
|
28
|
+
/** Accessible name of a close button in the top corner. Omit for no button. */
|
|
29
|
+
closeLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
33
|
+
declare namespace DialogHeader {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
37
|
+
declare namespace DialogFooter {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
41
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
42
|
+
|
|
43
|
+
export { Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Dialog,
|
|
4
|
+
DialogClose,
|
|
5
|
+
DialogContent,
|
|
6
|
+
DialogDescription,
|
|
7
|
+
DialogFooter,
|
|
8
|
+
DialogHeader,
|
|
9
|
+
DialogOverlay,
|
|
10
|
+
DialogPortal,
|
|
11
|
+
DialogTitle,
|
|
12
|
+
DialogTrigger
|
|
13
|
+
} from "../chunk-TBZIUIP2.js";
|
|
14
|
+
import "../chunk-DXRY7AS4.js";
|
|
15
|
+
export {
|
|
16
|
+
Dialog,
|
|
17
|
+
DialogClose,
|
|
18
|
+
DialogContent,
|
|
19
|
+
DialogDescription,
|
|
20
|
+
DialogFooter,
|
|
21
|
+
DialogHeader,
|
|
22
|
+
DialogOverlay,
|
|
23
|
+
DialogPortal,
|
|
24
|
+
DialogTitle,
|
|
25
|
+
DialogTrigger
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn HoverCard, on Radix HoverCard: a preview shown when a pointer rests on a link (and when
|
|
6
|
+
* the link takes keyboard focus), with open and close delays so a passing pointer does not
|
|
7
|
+
* flash it. It is a sighted-pointer convenience: the content is not announced, so nothing in it
|
|
8
|
+
* may be the only place a piece of information or an action lives.
|
|
9
|
+
*
|
|
10
|
+
* Same surface as the menus: square paper, one hairline, the light nav shadow, shown without
|
|
11
|
+
* a slide (panels appear instantly).
|
|
12
|
+
*/
|
|
13
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
14
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
interface HoverCardContentProps extends React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> {
|
|
16
|
+
/** Where the portal mounts. Defaults to `document.body`. See `PopoverContent`. */
|
|
17
|
+
container?: HTMLElement | null;
|
|
18
|
+
}
|
|
19
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { HoverCard, HoverCardContent, type HoverCardContentProps, HoverCardTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
HoverCard,
|
|
4
|
+
HoverCardContent,
|
|
5
|
+
HoverCardTrigger
|
|
6
|
+
} from "../chunk-WSTHL6H7.js";
|
|
7
|
+
import "../chunk-DXRY7AS4.js";
|
|
8
|
+
export {
|
|
9
|
+
HoverCard,
|
|
10
|
+
HoverCardContent,
|
|
11
|
+
HoverCardTrigger
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=hover-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Dots: SV's signature motif. Two rules, never broken:
|
|
5
|
+
* 1. The dots always form a complete grid. Every cell holds a dot; no dot is removed.
|
|
6
|
+
* 2. The dots never draw a shape (no silhouette, relief, letter or dissolving edge).
|
|
7
|
+
* Variation lives in tone only: `fade` runs the four-step flare (or ink to muted) across the
|
|
8
|
+
* grid along one axis, `animate` moves a wave of opacity through it, and `signal` lets one
|
|
9
|
+
* single dot take the orange accent. Decorative only (aria-hidden), never behind text, never
|
|
10
|
+
* carrying meaning.
|
|
11
|
+
*/
|
|
12
|
+
type Tone = 'flare' | 'ink' | 'muted';
|
|
13
|
+
type Fade = 'none' | 'left' | 'right' | 'up' | 'down';
|
|
14
|
+
type Animate = 'none' | 'lane' | 'pulse' | 'flag';
|
|
15
|
+
interface DotsProps extends React.SVGAttributes<SVGSVGElement> {
|
|
16
|
+
/** Columns of the grid. */
|
|
17
|
+
cols?: number;
|
|
18
|
+
/** Rows of the grid. */
|
|
19
|
+
rows?: number;
|
|
20
|
+
/** Distance between dot centres, in px. */
|
|
21
|
+
pitch?: number;
|
|
22
|
+
/** Dot diameter as a share of the pitch (0 to 1). */
|
|
23
|
+
size?: number;
|
|
24
|
+
/** `flare` runs the four-step flare ramp along the fade axis; `ink` and `muted` are flat
|
|
25
|
+
* neutrals (with a fade, ink runs to muted). */
|
|
26
|
+
tone?: Tone;
|
|
27
|
+
/** Edge the tone fades toward (flare step 1 at the opposite edge, step 4 at this one). The
|
|
28
|
+
* grid stays complete: a fade changes colour, never removes a dot. */
|
|
29
|
+
fade?: Fade;
|
|
30
|
+
/** `lane` is a travelling opacity wave, `pulse` a slow breath, `flag` a tone wave rippling
|
|
31
|
+
* across the whole grid like cloth in the wind (the fill runs through the flare steps). Off
|
|
32
|
+
* under reduced motion. */
|
|
33
|
+
animate?: Animate;
|
|
34
|
+
/** Changes the `pulse` timing pattern. */
|
|
35
|
+
seed?: number;
|
|
36
|
+
/** One dot, `[column, row]`, takes the orange accent. Never more than one. */
|
|
37
|
+
signal?: [number, number];
|
|
38
|
+
}
|
|
39
|
+
declare const Dots: React.ForwardRefExoticComponent<DotsProps & React.RefAttributes<SVGSVGElement>>;
|
|
40
|
+
|
|
41
|
+
export { Dots, type DotsProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Tone } from './tone.js';
|
|
3
|
+
import '@phosphor-icons/react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Cairn Alert, the message container (also the callout). A tone fill with its paired ink and
|
|
7
|
+
* the tone's glyph (`tone.tsx`), square, 16px inset, the icon in the first column and the
|
|
8
|
+
* words in the second. `neutral` is the callout: a paper step on a hairline, for a note that
|
|
9
|
+
* is not a status.
|
|
10
|
+
*
|
|
11
|
+
* Not a live region by default: an alert rendered with the page is read with the page. When it
|
|
12
|
+
* appears in response to something (a failed submit), pass `role="alert"` (interrupts) or
|
|
13
|
+
* `role="status"` (waits). No word is baked in; `icon={null}` drops the glyph only when the
|
|
14
|
+
* title already names the state.
|
|
15
|
+
*/
|
|
16
|
+
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
tone?: Tone;
|
|
18
|
+
/** Replace the tone's glyph; `null` removes it. */
|
|
19
|
+
icon?: React.ReactNode | null;
|
|
20
|
+
/** Trailing slot: an action or a close button. */
|
|
21
|
+
action?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export { Alert, AlertDescription, type AlertProps, AlertTitle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn EmptyState. What a view shows when it has nothing yet: a visual, a title, a line of
|
|
5
|
+
* explanation and the action that fills it. Every part is a slot and every word is the
|
|
6
|
+
* consumer's; the component only sets the order and the space.
|
|
7
|
+
*
|
|
8
|
+
* `visual` takes a Phosphor glyph (set in a 48px paper tile) or SV's `Dots`, never an
|
|
9
|
+
* illustration that has to be explained. The title is a heading (`titleAs`, `h2` by default) so
|
|
10
|
+
* the empty view keeps its place in the document outline. `bordered` frames it in a hairline
|
|
11
|
+
* cell, for an empty panel inside a page.
|
|
12
|
+
*/
|
|
13
|
+
interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
14
|
+
/** A Phosphor glyph element, or `Dots`. */
|
|
15
|
+
visual?: React.ReactNode;
|
|
16
|
+
/** Set the visual in a 48px paper tile (for a glyph). */
|
|
17
|
+
tile?: boolean;
|
|
18
|
+
title?: React.ReactNode;
|
|
19
|
+
titleAs?: 'h2' | 'h3' | 'h4' | 'p';
|
|
20
|
+
description?: React.ReactNode;
|
|
21
|
+
/** Buttons or links. */
|
|
22
|
+
actions?: React.ReactNode;
|
|
23
|
+
bordered?: boolean;
|
|
24
|
+
align?: 'center' | 'start';
|
|
25
|
+
}
|
|
26
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export { EmptyState, type EmptyStateProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cairn Progress, on Radix Progress: `role="progressbar"` with `aria-valuenow`, `-valuemax`
|
|
6
|
+
* and the `data-state` of loading, complete or indeterminate. Name it (`aria-label` or
|
|
7
|
+
* `aria-labelledby`): a bar with no name announces a bare percentage.
|
|
8
|
+
*
|
|
9
|
+
* A 4px track on the paper step, the fill in ink, square. The fill moves on the 300ms curve.
|
|
10
|
+
* With `value={null}` the bar is indeterminate and breathes (`animate-sv-breathe`); reduced
|
|
11
|
+
* motion holds it still at full fill.
|
|
12
|
+
*/
|
|
13
|
+
interface ProgressProps extends React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
14
|
+
/** Track height: 4px (`sm`) or 8px (`md`). */
|
|
15
|
+
size?: 'sm' | 'md';
|
|
16
|
+
}
|
|
17
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
export { Progress, type ProgressProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Skeleton. A placeholder block on the paper step that breathes while content loads
|
|
5
|
+
* (`animate-sv-breathe`, a slow opacity change, never a sweeping highlight). Square like every
|
|
6
|
+
* shape; `circle` is for an avatar's place only.
|
|
7
|
+
*
|
|
8
|
+
* Hidden from assistive tech: it is shape, not content. The region it fills says it is busy
|
|
9
|
+
* (`aria-busy` on the container) or a `Spinner` names the wait. Reduced motion holds it still.
|
|
10
|
+
*/
|
|
11
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
circle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export { Skeleton, type SkeletonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cairn Spinner. SV draws dots, not pixels: a row of three round marks lit in
|
|
5
|
+
* turn (`animate-sv-dot-lane`), never a rotating ring. The dots take the current text colour,
|
|
6
|
+
* so the spinner sits on ink or inside a primary button without a variant.
|
|
7
|
+
*
|
|
8
|
+
* `role="status"` with `label` as its name: required, since the dots say nothing, and the
|
|
9
|
+
* consumer's words (no copy is baked in). Reduced motion holds the dots still at full
|
|
10
|
+
* strength; the status and its name remain.
|
|
11
|
+
*/
|
|
12
|
+
interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
13
|
+
/** Accessible name. Required. */
|
|
14
|
+
label: string;
|
|
15
|
+
size?: 'sm' | 'md' | 'lg';
|
|
16
|
+
}
|
|
17
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
|
|
19
|
+
export { Spinner, type SpinnerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
3
|
+
import { Tone } from './tone.js';
|
|
4
|
+
import '@phosphor-icons/react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Cairn Toast, on Radix Toast: a live region (`status`, or `alert` with `type="foreground"`)
|
|
8
|
+
* announced on arrival, a timer that pauses on hover, focus and window blur, swipe to dismiss,
|
|
9
|
+
* F8 to reach the viewport from the keyboard, Escape to close.
|
|
10
|
+
*
|
|
11
|
+
* The toast is the menu surface (square paper, one hairline, the soft overlay shadow) with the
|
|
12
|
+
* tone in a 32px glyph tile carrying the tone's container pairing (`tone.tsx`): the hue stays
|
|
13
|
+
* on a fill, the words stay ink. It slides 4px in on arrival and fades out.
|
|
14
|
+
*
|
|
15
|
+
* A toast never holds the only path to something: an action in it needs `altText` naming a
|
|
16
|
+
* way to do the same elsewhere (Radix enforces it). Every word is the consumer's, including
|
|
17
|
+
* the close button's name (`closeLabel`; omitted, no button).
|
|
18
|
+
*/
|
|
19
|
+
declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
|
|
20
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
21
|
+
interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root> {
|
|
22
|
+
tone?: Tone;
|
|
23
|
+
/** Replace the tone's glyph; `null` removes the tile. */
|
|
24
|
+
icon?: React.ReactNode | null;
|
|
25
|
+
/** Accessible name of a close button. Omit for no button. */
|
|
26
|
+
closeLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
29
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
/** An action inside a toast. `altText` is required: it names another way to do the same. */
|
|
32
|
+
declare const ToastAction: React.ForwardRefExoticComponent<ToastPrimitive.ToastActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
declare const ToastClose: React.ForwardRefExoticComponent<ToastPrimitive.ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
|
|
35
|
+
export { Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Toast,
|
|
4
|
+
ToastAction,
|
|
5
|
+
ToastClose,
|
|
6
|
+
ToastDescription,
|
|
7
|
+
ToastProvider,
|
|
8
|
+
ToastTitle,
|
|
9
|
+
ToastViewport
|
|
10
|
+
} from "../chunk-BKSKRGK7.js";
|
|
11
|
+
import "../chunk-BDQUFQE7.js";
|
|
12
|
+
import "../chunk-DXRY7AS4.js";
|
|
13
|
+
export {
|
|
14
|
+
Toast,
|
|
15
|
+
ToastAction,
|
|
16
|
+
ToastClose,
|
|
17
|
+
ToastDescription,
|
|
18
|
+
ToastProvider,
|
|
19
|
+
ToastTitle,
|
|
20
|
+
ToastViewport
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Icon } from '@phosphor-icons/react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The message tones shared by `Alert` and `Toast`. Hue means something only here (AGENTS.md
|
|
5
|
+
* rule 4), and always as a `-container` fill with its paired `on-*-container` ink, never as
|
|
6
|
+
* coloured text on the page. Meaning never rests on the colour: each tone carries its own
|
|
7
|
+
* Phosphor glyph, so the message reads in greyscale too.
|
|
8
|
+
*/
|
|
9
|
+
type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
10
|
+
declare const TONE_CONTAINER: Record<Tone, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Ink scope for what a consumer drops INSIDE a status container (an Alert action). The
|
|
13
|
+
* containers keep their light tint in every theme, so a child that reads the theme ink (a
|
|
14
|
+
* secondary Button: `text-on-surface`, the `focus` outline) would turn cream on a pale fill in
|
|
15
|
+
* dark and black (1.11:1). Inside the fill, the container's own ink stands in for both.
|
|
16
|
+
*/
|
|
17
|
+
declare const TONE_SCOPE: Record<Tone, string>;
|
|
18
|
+
declare const TONE_ICON: Record<Tone, Icon>;
|
|
19
|
+
|
|
20
|
+
export { TONE_CONTAINER, TONE_ICON, TONE_SCOPE, type Tone };
|