@42-central/ui-react 0.0.0 → 0.17.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 +453 -1
- package/dist/chunk-2762HZYX.js +284 -0
- package/dist/chunk-2762HZYX.js.map +1 -0
- package/dist/chunk-2GILNBZW.js +31 -0
- package/dist/chunk-2GILNBZW.js.map +1 -0
- package/dist/chunk-2H46IXW4.js +264 -0
- package/dist/chunk-2H46IXW4.js.map +1 -0
- package/dist/chunk-2SVX3MQQ.js +78 -0
- package/dist/chunk-2SVX3MQQ.js.map +1 -0
- package/dist/chunk-3GYOIQW7.js +242 -0
- package/dist/chunk-3GYOIQW7.js.map +1 -0
- package/dist/chunk-3NZXWCGF.js +152 -0
- package/dist/chunk-3NZXWCGF.js.map +1 -0
- package/dist/chunk-44OV3PNH.js +294 -0
- package/dist/chunk-44OV3PNH.js.map +1 -0
- package/dist/chunk-5FDOOG4J.js +15 -0
- package/dist/chunk-5FDOOG4J.js.map +1 -0
- package/dist/chunk-6I4R3HR6.js +90 -0
- package/dist/chunk-6I4R3HR6.js.map +1 -0
- package/dist/chunk-6SWK4XG5.js +128 -0
- package/dist/chunk-6SWK4XG5.js.map +1 -0
- package/dist/chunk-7NZSTCJO.js +82 -0
- package/dist/chunk-7NZSTCJO.js.map +1 -0
- package/dist/chunk-7P32XCEU.js +15 -0
- package/dist/chunk-7P32XCEU.js.map +1 -0
- package/dist/chunk-ACE7FBWE.js +216 -0
- package/dist/chunk-ACE7FBWE.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-PJL4ZL5V.js +639 -0
- package/dist/chunk-PJL4ZL5V.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TMMEJKLI.js +363 -0
- package/dist/chunk-TMMEJKLI.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +82 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6582 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +29 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +24 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +291 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +288 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +841 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1275 -0
- package/package.json +99 -3
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +125 -0
- package/src/components/alert/alert.tsx +158 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +403 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +517 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +306 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +209 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +181 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +721 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +277 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +157 -0
- package/src/components/schedule/schedule-event-chip.tsx +1176 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +461 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +153 -0
- package/src/components/schedule/schedule-grid-gesture.ts +567 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +688 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +136 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1609 -0
- package/src/components/schedule/schedule-toolbar.tsx +264 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1149 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +305 -0
- package/src/components/schedule/schedule.test.tsx +4268 -0
- package/src/components/schedule/schedule.tsx +1038 -0
- package/src/components/schedule/use-event-create.ts +590 -0
- package/src/components/schedule/use-event-drag.ts +504 -0
- package/src/components/schedule/use-event-resize.ts +563 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1275 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export { CodeBlockButton, CodeBlockChrome } from '../../chunk-IXKELBJA.js';
|
|
3
|
+
import '../../chunk-6SWK4XG5.js';
|
|
4
|
+
import '../../chunk-G52U24GR.js';
|
|
5
|
+
import '../../chunk-VZ2TPU4B.js';
|
|
6
|
+
import '../../chunk-AIQG7IIT.js';
|
|
7
|
+
import '../../chunk-7P32XCEU.js';
|
|
8
|
+
import '../../chunk-BUIHQJGE.js';
|
|
9
|
+
import '../../chunk-BEL75C7N.js';
|
|
10
|
+
import '../../chunk-HWNPXAEN.js';
|
|
11
|
+
import '../../chunk-WYCMIIRR.js';
|
|
12
|
+
import '../../chunk-B2LCHXUB.js';
|
|
13
|
+
import '../../chunk-QP4I37PA.js';
|
|
14
|
+
//# sourceMappingURL=chrome.js.map
|
|
15
|
+
//# sourceMappingURL=chrome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chrome.js"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ShikiTransformer } from "shiki";
|
|
3
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
4
|
+
import { CodeBlockButton, type CodeBlockClassNames, type CodeBlockTranslations } from "./chrome";
|
|
5
|
+
import type { CodeBlockGutterColumn } from "./gutters";
|
|
6
|
+
import { type CodeBlockTagStyle } from "./highlighter";
|
|
7
|
+
export type { CodeBlockButtonProps, CodeBlockClassNames, CodeBlockTranslations, } from "./chrome";
|
|
8
|
+
export type { CodeBlockContentGutterColumn, CodeBlockCounterGutterColumn, CodeBlockGutterColumn, } from "./gutters";
|
|
9
|
+
export type { CodeBlockTagStyle } from "./highlighter";
|
|
10
|
+
/**
|
|
11
|
+
* CodeBlock — Shiki-powered syntax highlighting, spec'd off Mantine's
|
|
12
|
+
* `CodeHighlight`: a copy button, collapse/expand for long snippets, and
|
|
13
|
+
* custom-icon support. `"use client"` — highlighting is inherently async
|
|
14
|
+
* (Shiki's `codeToHtml`), so the component renders a plain, unhighlighted
|
|
15
|
+
* `<pre><code>` fallback (same chrome, no layout shift) until it resolves.
|
|
16
|
+
* Reactive to prop changes (re-highlights whenever `code`/`tags`/etc.
|
|
17
|
+
* change) — use this for anything editable/dynamic (a live playground). For
|
|
18
|
+
* static content known at render time (the common case — docs, MDX, a
|
|
19
|
+
* fixed snippet), `CodeBlock.Static` is an async Server Component that
|
|
20
|
+
* `await`s the same `highlightCode` during the server render instead,
|
|
21
|
+
* shipping zero client JS for Shiki at all; the two share the exact same
|
|
22
|
+
* `CodeBlockChrome` (chrome.tsx) for the toolbar/collapse UI.
|
|
23
|
+
*
|
|
24
|
+
* `tags`/`gutters` are a general notation-driven / gutter-column mechanism —
|
|
25
|
+
* see `notation.ts` for the full `// [!code tag]` comment grammar and
|
|
26
|
+
* `/docs/code-block` for worked examples. There's no baked-in "highlight"
|
|
27
|
+
* or "diff" concept: a diff view, a spotlighted zone, blame, a redacted
|
|
28
|
+
* token, etc. are all just tags/gutters the consumer authors themselves
|
|
29
|
+
* (or generates — see `@42/ui-react/code-block/diff`). `lineNumbers()`/
|
|
30
|
+
* `highlight()` (from `@42/ui-react/code-block`) are pre-built one-liner
|
|
31
|
+
* arguments to `gutters`/`tags` for the two most common cases — not a
|
|
32
|
+
* separate mechanism, and not a dedicated prop on `CodeBlock` itself.
|
|
33
|
+
*
|
|
34
|
+
* Ship `@42/ui-react/code-block/styles.css` alongside this component — it's
|
|
35
|
+
* not part of the universal `colors.css`/`theme.css` chain, since only
|
|
36
|
+
* consumers who render a `CodeBlock` need Shiki's token/gutter CSS.
|
|
37
|
+
*/
|
|
38
|
+
export type CodeBlockProps = WithTestId & {
|
|
39
|
+
/** Source text to highlight. No `children` slot — content is Shiki-derived. */
|
|
40
|
+
code: string;
|
|
41
|
+
/** Shiki-bundled language id (e.g. "tsx", "bash", "json"). Omit → plain "text" grammar, no async load. */
|
|
42
|
+
language?: string;
|
|
43
|
+
/** Override the light/dark Shiki theme pair. @default { light: "github-light", dark: "github-dark-default" } */
|
|
44
|
+
themes?: {
|
|
45
|
+
light: string;
|
|
46
|
+
dark: string;
|
|
47
|
+
};
|
|
48
|
+
/** Notation-tag → styling lookup — a line carrying `// [!code removed]`
|
|
49
|
+
* looks up `tags.removed`. See the component doc comment / `notation.ts`. */
|
|
50
|
+
tags?: Record<string, CodeBlockTagStyle>;
|
|
51
|
+
/** Stacked, ordered gutter columns rendered left of the code — real DOM
|
|
52
|
+
* nodes, never `::before` pseudo-elements. `lineNumbers()` (from
|
|
53
|
+
* `@42/ui-react/code-block`) is the one-liner for a plain counter. */
|
|
54
|
+
gutters?: CodeBlockGutterColumn[];
|
|
55
|
+
/** Extra Shiki transformers (e.g. `@shikijs/transformers`, or your own),
|
|
56
|
+
* run after the internal notation transformer — the escape hatch for
|
|
57
|
+
* extending Shiki's own capabilities. See also `registerLanguage`/
|
|
58
|
+
* `registerTheme` (exported from `@42/ui-react/code-block`) for
|
|
59
|
+
* registering a custom language/theme the bundled set doesn't ship. */
|
|
60
|
+
transformers?: ShikiTransformer[];
|
|
61
|
+
/** @default true */
|
|
62
|
+
withCopyButton?: boolean;
|
|
63
|
+
/** `null` hides it. @default <CopyIcon/> */
|
|
64
|
+
copyIcon?: ReactNode | null;
|
|
65
|
+
/** `null` hides it. @default <CheckIcon/> */
|
|
66
|
+
copiedIcon?: ReactNode | null;
|
|
67
|
+
onCopy?: () => void;
|
|
68
|
+
/** Lines always visible before the fade + expand seam. Omit → never collapses. */
|
|
69
|
+
collapsedLines?: number;
|
|
70
|
+
/** @default false */
|
|
71
|
+
defaultExpanded?: boolean;
|
|
72
|
+
expanded?: boolean;
|
|
73
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
74
|
+
/** `null` hides it. @default <ChevronDownIcon/> */
|
|
75
|
+
expandIcon?: ReactNode | null;
|
|
76
|
+
/** `null` hides it. @default <ChevronUpIcon/> */
|
|
77
|
+
collapseIcon?: ReactNode | null;
|
|
78
|
+
/** Extra control(s) in the same floating controls row, rendered before the
|
|
79
|
+
* expand/copy buttons. Purely additive — build them with `CodeBlock.Button`
|
|
80
|
+
* for the exact same size/style as the built-in ones. */
|
|
81
|
+
controls?: ReactNode;
|
|
82
|
+
/** Button/label copy, factored into one object — same convention as `Calendar`/`DatePicker`'s `translations` prop: a flat `Partial<CodeBlockTranslations>`, merged over English defaults, no context/bundled locale packs. */
|
|
83
|
+
translations?: Partial<CodeBlockTranslations>;
|
|
84
|
+
className?: string;
|
|
85
|
+
classNames?: CodeBlockClassNames;
|
|
86
|
+
};
|
|
87
|
+
declare function CodeBlockComponent({ code, language, themes, tags, gutters, transformers, collapsedLines, className, classNames, ...chromeProps }: CodeBlockProps): import("react").JSX.Element;
|
|
88
|
+
/** `CodeBlock.Button` is `CodeBlockButton` itself (chrome.tsx) — attached
|
|
89
|
+
* for discoverable composition when building a custom `controls` button
|
|
90
|
+
* (`<CodeBlock.Button>`), mirroring `Code.Mark`'s same "attach, don't
|
|
91
|
+
* reimplement" pattern. Still independently exported at
|
|
92
|
+
* `@42/ui-react/code-block` for a bare import. `CodeBlock.Static` is
|
|
93
|
+
* attached separately, from `index.ts` — see its own doc comment for why
|
|
94
|
+
* (it's an async Server Component; not safe to import into this
|
|
95
|
+
* `"use client"` file). */
|
|
96
|
+
export declare const CodeBlock: typeof CodeBlockComponent & {
|
|
97
|
+
Button: typeof CodeBlockButton;
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/code-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,eAAe,EAEf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,eAAe,CAAA;AAGrE,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;IACZ,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gHAAgH;IAChH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC;kFAC8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IACxC;;2EAEuE;IACvE,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC;;;;4EAIwE;IACxE,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAEjC,oBAAoB;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IAEnB,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qBAAqB;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B,iDAAiD;IACjD,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAE/B;;8DAE0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB,8NAA8N;IAC9N,YAAY,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAE7C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,mBAAmB,CAAA;CACjC,CAAA;AA4ED,iBAAS,kBAAkB,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,GAAG,WAAW,EACf,EAAE,cAAc,+BAkDhB;AAED;;;;;;;4BAO4B;AAC5B,eAAO,MAAM,SAAS;;CAAiE,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export type ToDiffNotationOptions = {
|
|
2
|
+
/** Notation tag appended to every line present in `oldCode` but not `newCode`.
|
|
3
|
+
* @default "removed" */
|
|
4
|
+
removedTag?: string;
|
|
5
|
+
/** Notation tag appended to every line present in `newCode` but not `oldCode`.
|
|
6
|
+
* @default "added" */
|
|
7
|
+
addedTag?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Turns two full versions of a file into ONE merged code string, with a
|
|
11
|
+
* `// [!code <tag>]` notation marker already appended to every added/removed
|
|
12
|
+
* line — so a diff view needs zero hand-typed markers. Feed the result
|
|
13
|
+
* straight into `CodeBlock`/`CodeBlock.Static`'s `code` prop, alongside
|
|
14
|
+
* whatever `tags`/`gutters` config renders the visual diff (colored
|
|
15
|
+
* backgrounds, a `+`/`−` gutter column, diverging old/new line-number
|
|
16
|
+
* columns via a counter's `skip`) — see the "A diff-style view" and
|
|
17
|
+
* "Diverging old/new line numbers" examples on the CodeBlock docs page.
|
|
18
|
+
*
|
|
19
|
+
* Runs a real line-diff (jsdiff's `diffLines`, Myers-algorithm-based) rather
|
|
20
|
+
* than anything CodeBlock itself understands — CodeBlock has no notion of
|
|
21
|
+
* "diff" at all, only of tags/gutters driven by whatever markers are in the
|
|
22
|
+
* source text (see `notation.ts`). This function is just the one utility
|
|
23
|
+
* that produces those markers algorithmically instead of by hand.
|
|
24
|
+
*
|
|
25
|
+
* ## Always emits `//`-style markers, regardless of the result's language
|
|
26
|
+
*
|
|
27
|
+
* The returned string always uses a trailing `// [!code <tag>]` comment,
|
|
28
|
+
* even when `oldCode`/`newCode` are, say, Python, CSS, or YAML — languages
|
|
29
|
+
* whose OWN grammar wouldn't treat `//` as a comment opener. This is safe
|
|
30
|
+
* and intentional: `notation.ts`'s marker detection is purely textual
|
|
31
|
+
* (a regex scan of the raw source line), not grammar-aware — the eventual
|
|
32
|
+
* *removal* of the marker from the rendered line is a character-count trim
|
|
33
|
+
* on Shiki's already-tokenized hast output, not a language-aware edit. A
|
|
34
|
+
* `//` marker is found and correctly stripped no matter what `language` the
|
|
35
|
+
* merged result is later highlighted as.
|
|
36
|
+
*
|
|
37
|
+
* ## Never a range/count shorthand
|
|
38
|
+
*
|
|
39
|
+
* Exactly one marker is appended per added/removed line, always — there is
|
|
40
|
+
* no `[!code removed:3]` "applies to the next 3 lines" form, matching the
|
|
41
|
+
* rest of the notation system's own design constraint (see the "no range
|
|
42
|
+
* shorthand" doc comment in `notation.ts`): counting how many lines a hunk
|
|
43
|
+
* spans is exactly the bookkeeping this whole mechanism exists to eliminate,
|
|
44
|
+
* and it would be especially pointless here, where the line count is already
|
|
45
|
+
* known internally (it's whatever `diffLines` returns) — there's no reason
|
|
46
|
+
* to reintroduce a count for a human to get wrong.
|
|
47
|
+
*
|
|
48
|
+
* ## Why this is its own subpath, not part of `@42/ui-react/code-block`
|
|
49
|
+
*
|
|
50
|
+
* Import from `@42/ui-react/code-block/diff`, not the main `code-block`
|
|
51
|
+
* barrel — this is a genuinely separate, tree-shakeable entry point (see
|
|
52
|
+
* `nav-link/tanstack` for the same pattern). It depends on the `diff` npm
|
|
53
|
+
* package, a real diff-algorithm implementation; the vast majority of
|
|
54
|
+
* `CodeBlock` consumers never render a diff and shouldn't pay for that
|
|
55
|
+
* dependency in their bundle just because they imported `CodeBlock` for
|
|
56
|
+
* something else entirely (a plain snippet, a highlighted zone, a blame
|
|
57
|
+
* gutter, ...).
|
|
58
|
+
*
|
|
59
|
+
* ## A blank added/removed line won't render as its own marked row
|
|
60
|
+
*
|
|
61
|
+
* `notation.ts` splices a line out of the render entirely once it becomes
|
|
62
|
+
* fully empty after its marker(s) are stripped (`ParsedLine.blank`) — that's
|
|
63
|
+
* true for ANY marker-only line, hand-typed or generated. An originally
|
|
64
|
+
* empty line that gains a trailing `// [!code removed]`/`// [!code added]`
|
|
65
|
+
* IS a marker-only line (there's no real code on it to keep), so it hits
|
|
66
|
+
* that same rule and vanishes from the rendered output, even though a real
|
|
67
|
+
* blank line was genuinely added or removed in the diff.
|
|
68
|
+
*
|
|
69
|
+
* This is a deliberate, accepted limitation, not a bug to work around: the
|
|
70
|
+
* alternative would be inventing fake non-blank content for a line that has
|
|
71
|
+
* none, which would misrepresent the diff rather than faithfully mark it.
|
|
72
|
+
* It's also perfectly consistent with `notation.ts`'s own pre-existing rule
|
|
73
|
+
* for hand-typed markers — a hand-authored `// [!code removed]` alone on a
|
|
74
|
+
* line already behaves the same way. Any gutter counter still advances (or
|
|
75
|
+
* skips) correctly for a vanished blank line, since counting happens against
|
|
76
|
+
* the parsed notation, independent of whether the line is later rendered.
|
|
77
|
+
*/
|
|
78
|
+
export declare function toDiffNotation(oldCode: string, newCode: string, options?: ToDiffNotationOptions): string;
|
|
79
|
+
//# sourceMappingURL=diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/diff.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,qBAAqB,GAAG;IAClC;6BACyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;2BACuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,qBAAqB,GAC9B,MAAM,CAYR"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { diffLines } from 'diff';
|
|
2
|
+
|
|
3
|
+
// src/components/code-block/diff.ts
|
|
4
|
+
function splitChunkLines(value) {
|
|
5
|
+
const lines = value.split("\n");
|
|
6
|
+
if (lines.length > 0 && lines[lines.length - 1] === "") lines.pop();
|
|
7
|
+
return lines;
|
|
8
|
+
}
|
|
9
|
+
function toDiffNotation(oldCode, newCode, options) {
|
|
10
|
+
const removedTag = options?.removedTag ?? "removed";
|
|
11
|
+
const addedTag = options?.addedTag ?? "added";
|
|
12
|
+
const lines = diffLines(oldCode, newCode).flatMap((chunk) => {
|
|
13
|
+
const chunkLines = splitChunkLines(chunk.value);
|
|
14
|
+
if (!chunk.added && !chunk.removed) return chunkLines;
|
|
15
|
+
const tag = chunk.added ? addedTag : removedTag;
|
|
16
|
+
return chunkLines.map((line) => `${line} // [!code ${tag}]`);
|
|
17
|
+
});
|
|
18
|
+
return lines.join("\n");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { toDiffNotation };
|
|
22
|
+
//# sourceMappingURL=diff.js.map
|
|
23
|
+
//# sourceMappingURL=diff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/code-block/diff.ts"],"names":[],"mappings":";;;AAaA,SAAS,gBAAgB,KAAA,EAAyB;AAChD,EAAA,MAAM,KAAA,GAAQ,KAAA,CAAM,KAAA,CAAM,IAAI,CAAA;AAC9B,EAAA,IAAI,KAAA,CAAM,MAAA,GAAS,CAAA,IAAK,KAAA,CAAM,KAAA,CAAM,SAAS,CAAC,CAAA,KAAM,EAAA,EAAI,KAAA,CAAM,GAAA,EAAI;AAClE,EAAA,OAAO,KAAA;AACT;AAgFO,SAAS,cAAA,CACd,OAAA,EACA,OAAA,EACA,OAAA,EACQ;AACR,EAAA,MAAM,UAAA,GAAa,SAAS,UAAA,IAAc,SAAA;AAC1C,EAAA,MAAM,QAAA,GAAW,SAAS,QAAA,IAAY,OAAA;AAEtC,EAAA,MAAM,QAAQ,SAAA,CAAU,OAAA,EAAS,OAAO,CAAA,CAAE,OAAA,CAAQ,CAAC,KAAA,KAAU;AAC3D,IAAA,MAAM,UAAA,GAAa,eAAA,CAAgB,KAAA,CAAM,KAAK,CAAA;AAC9C,IAAA,IAAI,CAAC,KAAA,CAAM,KAAA,IAAS,CAAC,KAAA,CAAM,SAAS,OAAO,UAAA;AAC3C,IAAA,MAAM,GAAA,GAAM,KAAA,CAAM,KAAA,GAAQ,QAAA,GAAW,UAAA;AACrC,IAAA,OAAO,UAAA,CAAW,IAAI,CAAC,IAAA,KAAS,GAAG,IAAI,CAAA,WAAA,EAAc,GAAG,CAAA,CAAA,CAAG,CAAA;AAAA,EAC7D,CAAC,CAAA;AAED,EAAA,OAAO,KAAA,CAAM,KAAK,IAAI,CAAA;AACxB","file":"diff.js","sourcesContent":["import { diffLines } from \"diff\"\n\n/**\n * Splits a diff chunk's `.value` into its constituent lines. `diffLines`\n * always includes each line's trailing `\\n` as part of the chunk text it\n * belongs to (except possibly the very last line of the whole input, if that\n * input itself has no trailing newline) — so a naive `.split(\"\\n\")` leaves a\n * phantom empty string as the final array element (`\"a\\n\".split(\"\\n\")` →\n * `[\"a\", \"\"]`). Dropping that phantom element is what lets every chunk's\n * lines be flattened together and rejoined with a single `\"\\n\"` and land\n * back in the right place, instead of accumulating a spurious blank line at\n * every chunk boundary.\n */\nfunction splitChunkLines(value: string): string[] {\n const lines = value.split(\"\\n\")\n if (lines.length > 0 && lines[lines.length - 1] === \"\") lines.pop()\n return lines\n}\n\nexport type ToDiffNotationOptions = {\n /** Notation tag appended to every line present in `oldCode` but not `newCode`.\n * @default \"removed\" */\n removedTag?: string\n /** Notation tag appended to every line present in `newCode` but not `oldCode`.\n * @default \"added\" */\n addedTag?: string\n}\n\n/**\n * Turns two full versions of a file into ONE merged code string, with a\n * `// [!code <tag>]` notation marker already appended to every added/removed\n * line — so a diff view needs zero hand-typed markers. Feed the result\n * straight into `CodeBlock`/`CodeBlock.Static`'s `code` prop, alongside\n * whatever `tags`/`gutters` config renders the visual diff (colored\n * backgrounds, a `+`/`−` gutter column, diverging old/new line-number\n * columns via a counter's `skip`) — see the \"A diff-style view\" and\n * \"Diverging old/new line numbers\" examples on the CodeBlock docs page.\n *\n * Runs a real line-diff (jsdiff's `diffLines`, Myers-algorithm-based) rather\n * than anything CodeBlock itself understands — CodeBlock has no notion of\n * \"diff\" at all, only of tags/gutters driven by whatever markers are in the\n * source text (see `notation.ts`). This function is just the one utility\n * that produces those markers algorithmically instead of by hand.\n *\n * ## Always emits `//`-style markers, regardless of the result's language\n *\n * The returned string always uses a trailing `// [!code <tag>]` comment,\n * even when `oldCode`/`newCode` are, say, Python, CSS, or YAML — languages\n * whose OWN grammar wouldn't treat `//` as a comment opener. This is safe\n * and intentional: `notation.ts`'s marker detection is purely textual\n * (a regex scan of the raw source line), not grammar-aware — the eventual\n * *removal* of the marker from the rendered line is a character-count trim\n * on Shiki's already-tokenized hast output, not a language-aware edit. A\n * `//` marker is found and correctly stripped no matter what `language` the\n * merged result is later highlighted as.\n *\n * ## Never a range/count shorthand\n *\n * Exactly one marker is appended per added/removed line, always — there is\n * no `[!code removed:3]` \"applies to the next 3 lines\" form, matching the\n * rest of the notation system's own design constraint (see the \"no range\n * shorthand\" doc comment in `notation.ts`): counting how many lines a hunk\n * spans is exactly the bookkeeping this whole mechanism exists to eliminate,\n * and it would be especially pointless here, where the line count is already\n * known internally (it's whatever `diffLines` returns) — there's no reason\n * to reintroduce a count for a human to get wrong.\n *\n * ## Why this is its own subpath, not part of `@42/ui-react/code-block`\n *\n * Import from `@42/ui-react/code-block/diff`, not the main `code-block`\n * barrel — this is a genuinely separate, tree-shakeable entry point (see\n * `nav-link/tanstack` for the same pattern). It depends on the `diff` npm\n * package, a real diff-algorithm implementation; the vast majority of\n * `CodeBlock` consumers never render a diff and shouldn't pay for that\n * dependency in their bundle just because they imported `CodeBlock` for\n * something else entirely (a plain snippet, a highlighted zone, a blame\n * gutter, ...).\n *\n * ## A blank added/removed line won't render as its own marked row\n *\n * `notation.ts` splices a line out of the render entirely once it becomes\n * fully empty after its marker(s) are stripped (`ParsedLine.blank`) — that's\n * true for ANY marker-only line, hand-typed or generated. An originally\n * empty line that gains a trailing `// [!code removed]`/`// [!code added]`\n * IS a marker-only line (there's no real code on it to keep), so it hits\n * that same rule and vanishes from the rendered output, even though a real\n * blank line was genuinely added or removed in the diff.\n *\n * This is a deliberate, accepted limitation, not a bug to work around: the\n * alternative would be inventing fake non-blank content for a line that has\n * none, which would misrepresent the diff rather than faithfully mark it.\n * It's also perfectly consistent with `notation.ts`'s own pre-existing rule\n * for hand-typed markers — a hand-authored `// [!code removed]` alone on a\n * line already behaves the same way. Any gutter counter still advances (or\n * skips) correctly for a vanished blank line, since counting happens against\n * the parsed notation, independent of whether the line is later rendered.\n */\nexport function toDiffNotation(\n oldCode: string,\n newCode: string,\n options?: ToDiffNotationOptions,\n): string {\n const removedTag = options?.removedTag ?? \"removed\"\n const addedTag = options?.addedTag ?? \"added\"\n\n const lines = diffLines(oldCode, newCode).flatMap((chunk) => {\n const chunkLines = splitChunkLines(chunk.value)\n if (!chunk.added && !chunk.removed) return chunkLines\n const tag = chunk.added ? addedTag : removedTag\n return chunkLines.map((line) => `${line} // [!code ${tag}]`)\n })\n\n return lines.join(\"\\n\")\n}\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Color } from "../../lib/colors";
|
|
2
|
+
import type { ParsedLine, ParsedNotation } from "./notation";
|
|
3
|
+
/** A hast `<span>` node in the exact shape Shiki's own `line()` transformer
|
|
4
|
+
* hook expects as a child — kept structurally minimal (not importing
|
|
5
|
+
* `hast`'s own `Element` type) for the same reason `highlighter.ts`
|
|
6
|
+
* derives `LineHast` via `Parameters<...>` rather than a direct import.
|
|
7
|
+
* `children` allows a nested span (not just text) for the same reason
|
|
8
|
+
* `applyStyle` (highlighter.ts) sometimes wraps a line's children in an
|
|
9
|
+
* inner span — see `applyMarkerColor` below. */
|
|
10
|
+
export type GutterSpanHast = {
|
|
11
|
+
type: "element";
|
|
12
|
+
tagName: "span";
|
|
13
|
+
properties: Record<string, string>;
|
|
14
|
+
children: Array<{
|
|
15
|
+
type: "text";
|
|
16
|
+
value: string;
|
|
17
|
+
} | GutterSpanHast>;
|
|
18
|
+
};
|
|
19
|
+
type CodeBlockGutterColumnBase = {
|
|
20
|
+
/** CSS length reserved for this column, applied as `min-width` (not
|
|
21
|
+
* `width`) — content can still grow past it rather than clipping.
|
|
22
|
+
* @default for a counter column, sized to fit the largest number that
|
|
23
|
+
* will actually appear anywhere in the document (e.g. 2.5ch once any
|
|
24
|
+
* rendered value reaches 2 digits) — computed once, up front, and
|
|
25
|
+
* applied uniformly to every line so a 1-digit line's number stays
|
|
26
|
+
* right-aligned with a 2-digit one instead of shifting the code that
|
|
27
|
+
* follows it. @default "3ch" for a content column. */
|
|
28
|
+
width?: string;
|
|
29
|
+
/** @default "right" for a counter column, "center" for a content column */
|
|
30
|
+
align?: "left" | "center" | "right";
|
|
31
|
+
/** Escape hatch: extra class applied to every span this column renders. */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Override the kind-based default (a counter is `aria-hidden` by
|
|
34
|
+
* default — reading "1, 2, 3..." aloud per line is noise, redundant
|
|
35
|
+
* with visual position; a content column is left in the accessible
|
|
36
|
+
* tree by default, since its text is meaningful). */
|
|
37
|
+
ariaHidden?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type CodeBlockCounterGutterColumn = CodeBlockGutterColumnBase & {
|
|
40
|
+
kind: "counter";
|
|
41
|
+
/** @default 1 */
|
|
42
|
+
startAt?: number;
|
|
43
|
+
/** Tags that make this column skip (not advance, render blank) on that
|
|
44
|
+
* line — this is the whole mechanism behind diverging diff old/new
|
|
45
|
+
* numbering: an "old" column's `skip: ["removed"]` is wrong (it should
|
|
46
|
+
* advance on removed/context, skip added) — see the worked diff example
|
|
47
|
+
* in the docs. A line that's fully removed via notation (see
|
|
48
|
+
* `ParsedLine.blank`) never advances any counter, since it never
|
|
49
|
+
* renders at all. */
|
|
50
|
+
skip?: string[];
|
|
51
|
+
};
|
|
52
|
+
/** A content column's per-tag mapping, in its full form — `color` tints the
|
|
53
|
+
* marker's own TEXT, `background` its own fill, exactly the same split
|
|
54
|
+
* every other styling surface in the kit uses (never conflated into one
|
|
55
|
+
* "colors" concept). Independent of whatever color/background (if any)
|
|
56
|
+
* the matched tag's own `tags` styling gives the *line* — a marker's
|
|
57
|
+
* identity color (e.g. a diff's "−" always red, "+" always green) is a
|
|
58
|
+
* different concern than the line's tint, and often wants to stay
|
|
59
|
+
* legible even when the line itself only sets a translucent
|
|
60
|
+
* `background`, no `color`. */
|
|
61
|
+
type CodeBlockGutterMarker = {
|
|
62
|
+
/** `true` renders the notation marker's own payload verbatim (blame's
|
|
63
|
+
* name, coverage's status, a tutorial-step number); a literal string
|
|
64
|
+
* renders that fixed text regardless of payload (a diff's static
|
|
65
|
+
* "+"/"−"). */
|
|
66
|
+
text: string | true;
|
|
67
|
+
color?: Color;
|
|
68
|
+
background?: Color;
|
|
69
|
+
};
|
|
70
|
+
export type CodeBlockContentGutterColumn = CodeBlockGutterColumnBase & {
|
|
71
|
+
kind: "content";
|
|
72
|
+
/** Maps a notation tag to what this column renders when that tag matches
|
|
73
|
+
* the line — either the shorthand (`true` for the payload verbatim, or a
|
|
74
|
+
* literal string), or the full `{ text, color?, background? }` form when
|
|
75
|
+
* the marker also needs its own color independent of the line's. The
|
|
76
|
+
* first matching tag (in written order) wins. No match on a line → an
|
|
77
|
+
* empty (but still width-reserving) cell. */
|
|
78
|
+
tags: Record<string, string | true | CodeBlockGutterMarker>;
|
|
79
|
+
};
|
|
80
|
+
export type CodeBlockGutterColumn = CodeBlockCounterGutterColumn | CodeBlockContentGutterColumn;
|
|
81
|
+
/** Resolves a `gutters` configuration against a full-source notation parse
|
|
82
|
+
* into a stateful `render` closure — one call per rendered line, in
|
|
83
|
+
* increasing line order, matching how Shiki's `line()` transformer hook
|
|
84
|
+
* actually fires. Counter columns carry running state across those calls;
|
|
85
|
+
* `headLineOffset` (the transformer's own `lineOffset`, 0 for the head
|
|
86
|
+
* half of a collapsed split, `collapsedLines` for the tail half) seeds
|
|
87
|
+
* each counter's starting value from how many non-skipped, non-blank
|
|
88
|
+
* lines came before this rendering window in the FULL source — this is
|
|
89
|
+
* what keeps a `skip`-aware counter's numbering continuous across that
|
|
90
|
+
* split with no new architecture: both halves independently derive the
|
|
91
|
+
* correct starting count from the same shared, already-parsed `notation`
|
|
92
|
+
* (see `code-block.tsx`). */
|
|
93
|
+
export declare function resolveGutterColumns(gutters: CodeBlockGutterColumn[], notation: ParsedNotation, headLineOffset: number): {
|
|
94
|
+
/** A blank (fully-removed) line never advances any counter, since it
|
|
95
|
+
* never renders at all — callers should not invoke this for a line
|
|
96
|
+
* whose `ParsedLine.blank` is true. */
|
|
97
|
+
render(parsed: ParsedLine | undefined): GutterSpanHast[];
|
|
98
|
+
};
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=gutters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gutters.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/gutters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE5D;;;;;;iDAMiD;AACjD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,cAAc,CAAC,CAAA;CAClE,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B;;;;;;;2DAOuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;0DAGsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,GAAG;IACrE,IAAI,EAAE,SAAS,CAAA;IACf,iBAAiB;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;0BAMsB;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB,CAAA;AAED;;;;;;;;gCAQgC;AAChC,KAAK,qBAAqB,GAAG;IAC3B;;;oBAGgB;IAChB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,UAAU,CAAC,EAAE,KAAK,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,GAAG;IACrE,IAAI,EAAE,SAAS,CAAA;IACf;;;;;kDAK8C;IAC9C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,qBAAqB,CAAC,CAAA;CAC5D,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,GAAG,4BAA4B,CAAA;AAwI/F;;;;;;;;;;;8BAW8B;AAC9B,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,qBAAqB,EAAE,EAChC,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,MAAM;IAiBpB;;4CAEwC;IACxC,MAAM,SAAS,UAAU,GAAG,SAAS,GAAG,cAAc,EAAE;EAM3D"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { LanguageInput, ShikiTransformer, ThemeInput } from "shiki";
|
|
2
|
+
import type { Color } from "../../lib/colors";
|
|
3
|
+
import { type CodeBlockGutterColumn } from "./gutters";
|
|
4
|
+
import { type ParsedNotation } from "./notation";
|
|
5
|
+
/**
|
|
6
|
+
* Register a custom TextMate grammar so `<CodeBlock language="...">` can
|
|
7
|
+
* reference it by name, the same as a bundled language — Shiki's own
|
|
8
|
+
* extension mechanism for a language it doesn't ship. Await this once
|
|
9
|
+
* (e.g. at app startup) before rendering a `CodeBlock` that uses it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function registerLanguage(lang: LanguageInput): Promise<void>;
|
|
12
|
+
/** Register a custom VS Code-style theme, the same as a bundled theme —
|
|
13
|
+
* Shiki's own extension mechanism for a theme it doesn't ship. */
|
|
14
|
+
export declare function registerTheme(theme: ThemeInput): Promise<void>;
|
|
15
|
+
/** Palette-driven styling — `background`/`color` tint via the kit's own
|
|
16
|
+
* theme-aware `Color` tokens (the same `--c-soft`/`--c-text` mechanism
|
|
17
|
+
* every colored component uses), independent of each other, the same
|
|
18
|
+
* relationship `Mark`'s own `background`/`color` props have. `className`/
|
|
19
|
+
* `style` stay as the escape hatch for anything the two color props don't
|
|
20
|
+
* cover (layout, a specific shade, an arbitrary Tailwind utility) — prefer
|
|
21
|
+
* `background`/`color` first; reach for `className`/`style` only for what
|
|
22
|
+
* they can't express. */
|
|
23
|
+
type CodeBlockStyle = {
|
|
24
|
+
/** Text color, via the same `Color` tokens as the rest of the kit. */
|
|
25
|
+
color?: Color;
|
|
26
|
+
/** Background/highlight tint, via the same `Color` tokens as the rest of the kit. */
|
|
27
|
+
background?: Color;
|
|
28
|
+
/** Escape hatch: an arbitrary class, for anything `color`/`background` don't cover. */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Escape hatch: raw CSS text (e.g. `"text-decoration: line-through"`), not
|
|
31
|
+
* a React `CSSProperties` object — styles are threaded through Shiki's
|
|
32
|
+
* hast → HTML string pipeline, never React's own DOM `style` prop. */
|
|
33
|
+
style?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Styling for a notation tag — a line carrying `// [!code removed]` looks
|
|
36
|
+
* up `tags.removed`. `CodeBlock` has no built-in tag vocabulary of its
|
|
37
|
+
* own: "removed", "highlight", "blame", etc. are just names a consumer
|
|
38
|
+
* chose — see `notation.ts` for the full grammar. */
|
|
39
|
+
export type CodeBlockTagStyle = CodeBlockStyle;
|
|
40
|
+
export type HighlightOptions = {
|
|
41
|
+
lang?: string;
|
|
42
|
+
themes?: {
|
|
43
|
+
light: string;
|
|
44
|
+
dark: string;
|
|
45
|
+
};
|
|
46
|
+
/** Notation-tag → styling lookup — see `CodeBlockTagStyle`. */
|
|
47
|
+
tags?: Record<string, CodeBlockTagStyle>;
|
|
48
|
+
/** Stacked, ordered gutter columns rendered left of the code — see
|
|
49
|
+
* `CodeBlockGutterColumn` (`gutters.ts`). */
|
|
50
|
+
gutters?: CodeBlockGutterColumn[];
|
|
51
|
+
/** Offset added to every rendered line number before matching notation/
|
|
52
|
+
* seeding gutter counters — used by `CodeBlock`'s collapse split so a
|
|
53
|
+
* highlighted "tail" half still reports its true position in the
|
|
54
|
+
* original source. */
|
|
55
|
+
lineOffset?: number;
|
|
56
|
+
/** A precomputed `parseNotation` of the FULL, un-split source. Passed by
|
|
57
|
+
* `CodeBlock` so the collapsed head/tail split's two independent
|
|
58
|
+
* `highlightCode` calls share one notation pass — this is what keeps a
|
|
59
|
+
* `skip`-aware gutter counter's numbering continuous across that split.
|
|
60
|
+
* Omitted (e.g. a consumer calling `highlightCode` directly) → computed
|
|
61
|
+
* from this call's own `code`. */
|
|
62
|
+
notation?: ParsedNotation;
|
|
63
|
+
/** Extra Shiki transformers (e.g. from the `@shikijs/transformers`
|
|
64
|
+
* ecosystem, or your own), run after the internal notation transformer.
|
|
65
|
+
* This is the escape hatch for extending Shiki's own capabilities —
|
|
66
|
+
* anything a `ShikiTransformer` can do (custom notation, extra markup,
|
|
67
|
+
* post-processing) works here without `CodeBlock` needing to know about
|
|
68
|
+
* it. See also `registerLanguage`/`registerTheme` for extending the
|
|
69
|
+
* language/theme side of the parser. */
|
|
70
|
+
transformers?: ShikiTransformer[];
|
|
71
|
+
};
|
|
72
|
+
/** Highlights `code` as HTML via the shared Shiki singleton. Loads the
|
|
73
|
+
* requested language/themes on demand — via the highlighter's own
|
|
74
|
+
* `getLoadedLanguages`/`getLoadedThemes` (authoritative, so a name
|
|
75
|
+
* registered through `registerLanguage`/`registerTheme` is recognized as
|
|
76
|
+
* already loaded and never re-fetched as if it were a bundled id). `lang`
|
|
77
|
+
* defaults to `"text"` (Shiki's built-in plaintext grammar — no dynamic
|
|
78
|
+
* import needed). Called with `defaultColor: false` so neither theme is
|
|
79
|
+
* inlined as a plain `color`/`background-color` — both live only in the
|
|
80
|
+
* `--shiki-light`/`--shiki-dark` custom properties consumed by
|
|
81
|
+
* `styles.css`, so the dark-mode CSS rule there needs no `!important`. */
|
|
82
|
+
export declare function highlightCode(code: string, opts?: HighlightOptions): Promise<string>;
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=highlighter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlighter.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/highlighter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EACb,gBAAgB,EAEhB,UAAU,EACX,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,KAAK,qBAAqB,EAAwB,MAAM,WAAW,CAAA;AAC5E,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,YAAY,CAAA;AA2B/D;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzE;AAED;mEACmE;AACnE,wBAAsB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAGpE;AAED;;;;;;;0BAO0B;AAC1B,KAAK,cAAc,GAAG;IACpB,sEAAsE;IACtE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,qFAAqF;IACrF,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;2EAEuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;sDAGsD;AACtD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAA;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IACxC;kDAC8C;IAC9C,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC;;;2BAGuB;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;uCAKmC;IACnC,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB;;;;;;6CAMyC;IACzC,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAClC,CAAA;AAqJD;;;;;;;;;2EAS2E;AAC3E,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqB9F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CodeBlockButton, type CodeBlockButtonProps, type CodeBlockClassNames, type CodeBlockTranslations } from "./chrome";
|
|
2
|
+
import { type CodeBlockProps } from "./code-block";
|
|
3
|
+
import type { CodeBlockContentGutterColumn, CodeBlockCounterGutterColumn, CodeBlockGutterColumn } from "./gutters";
|
|
4
|
+
import { type CodeBlockTagStyle, registerLanguage, registerTheme } from "./highlighter";
|
|
5
|
+
import { highlight, lineNumbers } from "./presets";
|
|
6
|
+
import { CodeBlockStatic, type CodeBlockStaticProps } from "./static";
|
|
7
|
+
/**
|
|
8
|
+
* `CodeBlock.Static` is attached here, not inside `code-block.tsx` itself
|
|
9
|
+
* — see `CodeBlockStatic`'s own doc comment (`static.tsx`) for why: it's an
|
|
10
|
+
* async Server Component, and `code-block.tsx` is `"use client"`, which
|
|
11
|
+
* can't import an async component without breaking the Client/Server
|
|
12
|
+
* boundary (a Client Component's render can never `await`). This file
|
|
13
|
+
* carries no directive of its own, so it can safely compose the
|
|
14
|
+
* `"use client"` `CodeBlock` and the Server-Component-only
|
|
15
|
+
* `CodeBlockStatic` under the one object consumers import.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CodeBlock: (({ code, language, themes, tags, gutters, transformers, collapsedLines, className, classNames, ...chromeProps }: CodeBlockProps) => import("react").JSX.Element) & {
|
|
18
|
+
Button: typeof CodeBlockButton;
|
|
19
|
+
} & {
|
|
20
|
+
Static: typeof CodeBlockStatic;
|
|
21
|
+
};
|
|
22
|
+
export { CodeBlockButton, type CodeBlockButtonProps, type CodeBlockClassNames, type CodeBlockContentGutterColumn, type CodeBlockCounterGutterColumn, type CodeBlockGutterColumn, type CodeBlockProps, type CodeBlockStaticProps, type CodeBlockTagStyle, type CodeBlockTranslations, highlight, lineNumbers, registerLanguage, registerTheme, };
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,EAA8B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAC9E,OAAO,KAAK,EACV,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAUlD,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAErE;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS;;;;CAA4D,CAAA;AAElF,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,CAAA"}
|