@42-central/ui-react 0.0.0 → 0.17.1
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 +315 -2
- 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-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-EVVMHTCL.js +216 -0
- package/dist/chunk-EVVMHTCL.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-NSOA3GMZ.js +376 -0
- package/dist/chunk-NSOA3GMZ.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-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-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-YON5Y336.js +639 -0
- package/dist/chunk-YON5Y336.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 +90 -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 +6656 -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 +30 -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 +31 -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 +307 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +311 -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 +844 -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 +1281 -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 +131 -0
- package/src/components/alert/alert.tsx +165 -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 +410 -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 +518 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +321 -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 +211 -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 +190 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +722 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +279 -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 +172 -0
- package/src/components/schedule/schedule-event-chip.tsx +1183 -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 +482 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +235 -0
- package/src/components/schedule/schedule-grid-gesture.ts +606 -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 +690 -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 +138 -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 +1647 -0
- package/src/components/schedule/schedule-toolbar.tsx +270 -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 +1152 -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 +307 -0
- package/src/components/schedule/schedule.test.tsx +4386 -0
- package/src/components/schedule/schedule.tsx +1040 -0
- package/src/components/schedule/use-event-create.ts +591 -0
- package/src/components/schedule/use-event-drag.ts +510 -0
- package/src/components/schedule/use-event-resize.ts +565 -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 +1281 -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,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment-notation parser for `CodeBlock` — the ONLY per-line targeting
|
|
3
|
+
* mechanism in the new design (replaces the old hand-counted `{ line }` /
|
|
4
|
+
* { from, to }` index-based `decorations`). A line opts into styling/gutter
|
|
5
|
+
* content by carrying a marker comment, e.g. `// [!code removed]` or
|
|
6
|
+
* `// [!code blame:alice]`, anywhere a trailing comment is recognized —
|
|
7
|
+
* modeled on Shiki's own `[!code xxx]` convention, but built from scratch
|
|
8
|
+
* here rather than depending on `@shikijs/transformers`: its generic
|
|
9
|
+
* `transformerNotationMap` only supports a fixed keyword enum (no arbitrary
|
|
10
|
+
* `tag:payload` capture), and the lower-level engine that *would* support
|
|
11
|
+
* that (`createCommentNotationTransformer`) is an internal, non-exported
|
|
12
|
+
* module in that package — not something to depend on.
|
|
13
|
+
*
|
|
14
|
+
* Pure string → data. No Shiki/hast import at all, so it's callable once
|
|
15
|
+
* per `CodeBlock` render (over the FULL, unsplit `code` prop) and shared
|
|
16
|
+
* across both halves of the collapse/expand head-tail split — see
|
|
17
|
+
* `code-block.tsx` and the `notation` option in `highlighter.ts`.
|
|
18
|
+
*
|
|
19
|
+
* ## Grammar
|
|
20
|
+
*
|
|
21
|
+
* `[!code <tag>]` or `[!code <tag>:<payload>]`. `<tag>` is any consumer-
|
|
22
|
+
* defined identifier (`[A-Za-z][\w-]*`) — CodeBlock itself has no built-in
|
|
23
|
+
* vocabulary ("diff"/"highlight"/"blame" are just tag names someone chose).
|
|
24
|
+
* `<payload>` is free-form text; `\:` and `\]` escape a literal colon or
|
|
25
|
+
* bracket inside it. Multiple distinct markers may stack on one line
|
|
26
|
+
* (`// [!code blame:alice] [!code coverage:miss]`) — a deliberate
|
|
27
|
+
* generalization the fixed-enum Shiki transformers can't express, since
|
|
28
|
+
* each of those is a single-keyword regex, not a general engine.
|
|
29
|
+
*
|
|
30
|
+
* There is deliberately NO range/count-suffix shorthand (Shiki's own
|
|
31
|
+
* `[!code highlight:3]` "applies to the next 3 lines"). That shorthand
|
|
32
|
+
* reintroduces exactly the counting problem this mechanism exists to
|
|
33
|
+
* remove — you'd have to count how many lines a block spans to write `:5`.
|
|
34
|
+
* Every marker applies only to the single line it's written on; a multi-
|
|
35
|
+
* line diff removal is the same marker repeated on every affected line,
|
|
36
|
+
* trivial when machine-generated (see `diff.ts`) and no worse by hand
|
|
37
|
+
* either, since the marker sits right next to the line it describes.
|
|
38
|
+
*
|
|
39
|
+
* ## Comment styles recognized
|
|
40
|
+
*
|
|
41
|
+
* A marker is only honored inside a RECOGNIZED trailing comment, checked
|
|
42
|
+
* per physical line (never across lines):
|
|
43
|
+
* - `<!-- ... -->` and `/* ... *\/` — block-style, single line only, and
|
|
44
|
+
* ONLY as the comment's entire content (see "Known limitation" below).
|
|
45
|
+
* - `{/* ... *\/}` — a JSX/TSX expression-container comment, matched only
|
|
46
|
+
* when it's the sole content of its own line (leading/trailing
|
|
47
|
+
* whitespace aside).
|
|
48
|
+
* - A line-style opener — `//`, `#`, `;`/`;;`, `%`/`%%`, or `--` — found
|
|
49
|
+
* as the RIGHTMOST such token on the line (so `// TODO: fix // [!code
|
|
50
|
+
* todo]` finds the second `//`, treating it as its own trailing
|
|
51
|
+
* comment, leaving the first comment's prose untouched).
|
|
52
|
+
* - A `*`-continuation line inside a `/** ... *\/` block (a line that,
|
|
53
|
+
* once left-trimmed, starts with `*` not immediately followed by `/`)
|
|
54
|
+
* — so a marker on the 2nd+ line of a JSDoc-style comment is found too.
|
|
55
|
+
*
|
|
56
|
+
* Detection is purely textual against the raw source line, independent of
|
|
57
|
+
* which language grammar Shiki tokenizes it with — this is what lets a
|
|
58
|
+
* `//`-style marker (what `diff.ts` always emits) work correctly even for
|
|
59
|
+
* a language whose grammar wouldn't itself treat `//` as a comment (e.g. a
|
|
60
|
+
* diff of a CSS or Python sample): the *removal* (see `highlighter.ts`'s
|
|
61
|
+
* `trimTrailingChars`) trims a character count off the end of the rendered
|
|
62
|
+
* line, not a token, so it doesn't need the grammar's cooperation.
|
|
63
|
+
*
|
|
64
|
+
* ## What gets removed, and the "trailing only" constraint
|
|
65
|
+
*
|
|
66
|
+
* A marker is only recognized as notation if it — plus, for a line-style
|
|
67
|
+
* opener, only whitespace, or for a block/JSX style, only whitespace and
|
|
68
|
+
* the closing delimiter — runs to the true end of the line. This keeps
|
|
69
|
+
* removal a clean SUFFIX trim (`stripCount` characters off the end of the
|
|
70
|
+
* rendered line), which is what makes the hast-mutation side in
|
|
71
|
+
* `highlighter.ts` a simple, robust operation instead of a fragile interior
|
|
72
|
+
* edit. Two concrete behaviors this produces:
|
|
73
|
+
* - `sum += x; // [!code highlight]` → not blank; only the marker (and
|
|
74
|
+
* the now-empty `// `) is stripped, the code before it is untouched.
|
|
75
|
+
* - `// [!code highlight]` alone on a line → the WHOLE line is blank and
|
|
76
|
+
* is removed entirely (see `blank`), not left behind as an empty line.
|
|
77
|
+
*
|
|
78
|
+
* A marker with real prose BEFORE it in the same comment is supported for
|
|
79
|
+
* line-style openers and the `*`-continuation form (`// keep this [!code
|
|
80
|
+
* highlight]` → strips only the marker, keeping `// keep this`), since
|
|
81
|
+
* those have no closing delimiter to preserve. Block/HTML/JSX comments do
|
|
82
|
+
* NOT support this — the marker must be their entire content — because
|
|
83
|
+
* removing an interior marker while preserving a `*\/`/`-->`/`}` closer
|
|
84
|
+
* isn't a suffix trim. A marker mixed with prose inside `/* *\/`/`<!-- -->`/
|
|
85
|
+
* `{/* *\/}` is simply not recognized as notation and renders as literal
|
|
86
|
+
* text; use a line-style trailing comment instead when prose needs to sit
|
|
87
|
+
* alongside a marker.
|
|
88
|
+
*
|
|
89
|
+
* ## Known limitation
|
|
90
|
+
*
|
|
91
|
+
* The line-style opener scan picks the RIGHTMOST occurrence of `//`/`#`/
|
|
92
|
+
* `;`/`;;`/`%`/`%%`/`--` that sits outside every marker's own matched span
|
|
93
|
+
* (so a payload containing one of those substrings, e.g. `[!code
|
|
94
|
+
* note:see--also]`, can't itself be mistaken for an opener) — but it does
|
|
95
|
+
* not otherwise understand string literals or real comment grammar. A
|
|
96
|
+
* comment-opener-like substring inside an unrelated string literal, at the
|
|
97
|
+
* very end of a line with nothing after it, could in principle be
|
|
98
|
+
* misdetected. This is a deliberate, documented tradeoff (a purely textual
|
|
99
|
+
* heuristic, not a full per-language parser) rather than a bug to chase —
|
|
100
|
+
* acceptable for hand-authored/machine-generated notation, which is what
|
|
101
|
+
* this mechanism is for.
|
|
102
|
+
*/
|
|
103
|
+
export type NotationMatch = {
|
|
104
|
+
tag: string;
|
|
105
|
+
payload?: string;
|
|
106
|
+
};
|
|
107
|
+
export type ParsedLine = {
|
|
108
|
+
/** Every marker matched on this line, in written order. */
|
|
109
|
+
matches: NotationMatch[];
|
|
110
|
+
/** Characters to trim off the END of this line's rendered text to
|
|
111
|
+
* produce the marker-free version. 0 when the line has no marker, or
|
|
112
|
+
* when `blank` is true (the whole line is removed instead). */
|
|
113
|
+
stripCount: number;
|
|
114
|
+
/** True when the line becomes fully empty after removing its marker(s)
|
|
115
|
+
* AND had at least one match — i.e. it should be spliced out of the
|
|
116
|
+
* render entirely, not left behind as a blank line. A line that was
|
|
117
|
+
* already blank in the source (no marker at all) is never flagged. */
|
|
118
|
+
blank: boolean;
|
|
119
|
+
};
|
|
120
|
+
/** Index 0 = source line 1. */
|
|
121
|
+
export type ParsedNotation = {
|
|
122
|
+
perLine: ParsedLine[];
|
|
123
|
+
};
|
|
124
|
+
/** Parses every notation marker in `code`, once, line by line. */
|
|
125
|
+
export declare function parseNotation(code: string): ParsedNotation;
|
|
126
|
+
//# sourceMappingURL=notation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notation.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/notation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AAEH,MAAM,MAAM,aAAa,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7D,MAAM,MAAM,UAAU,GAAG;IACvB,2DAA2D;IAC3D,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB;;oEAEgE;IAChE,UAAU,EAAE,MAAM,CAAA;IAClB;;;2EAGuE;IACvE,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,+BAA+B;AAC/B,MAAM,MAAM,cAAc,GAAG;IAAE,OAAO,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AA6GtD,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAE1D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CodeBlockCounterGutterColumn } from "./gutters";
|
|
2
|
+
import type { CodeBlockTagStyle } from "./highlighter";
|
|
3
|
+
/**
|
|
4
|
+
* Trivial one-liners for the two most common `gutters`/`tags` configurations
|
|
5
|
+
* — `CodeBlock` itself has no dedicated boolean prop for "line numbers" or
|
|
6
|
+
* "highlight a line" (there's exactly one mechanism, `gutters`/`tags`); these
|
|
7
|
+
* are just pre-built arguments to it, not special component behavior.
|
|
8
|
+
*/
|
|
9
|
+
/** A plain sequential line-number column: `<CodeBlock gutters={[lineNumbers()]} />`. */
|
|
10
|
+
export declare function lineNumbers(options?: {
|
|
11
|
+
startAt?: number;
|
|
12
|
+
}): CodeBlockCounterGutterColumn;
|
|
13
|
+
/**
|
|
14
|
+
* A ready-made `tags` entry for `// [!code highlight]` (or a custom tag
|
|
15
|
+
* name): `<CodeBlock tags={highlight()} />`. Defaults to the same
|
|
16
|
+
* background `Mark` uses for its own unstyled highlight, for visual
|
|
17
|
+
* consistency with the rest of the kit. Compose with a hand-written `tags`
|
|
18
|
+
* object the same way as any other record: `tags={{ ...highlight(), removed: {...} }}`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function highlight(options?: ({
|
|
21
|
+
tag?: string;
|
|
22
|
+
} & CodeBlockTagStyle) | undefined): Record<string, CodeBlockTagStyle>;
|
|
23
|
+
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD;;;;;GAKG;AAEH,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,4BAA4B,CAExF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,OAAO,CAAC,EAAE,CAAC;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC,GAAG,SAAS,GAC3D,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAGnC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ShikiTransformer } from "shiki";
|
|
3
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
4
|
+
import { type CodeBlockClassNames, type CodeBlockTranslations } from "./chrome";
|
|
5
|
+
import type { CodeBlockGutterColumn } from "./gutters";
|
|
6
|
+
import { type CodeBlockTagStyle } from "./highlighter";
|
|
7
|
+
export type CodeBlockStaticProps = WithTestId & {
|
|
8
|
+
code: string;
|
|
9
|
+
language?: string;
|
|
10
|
+
themes?: {
|
|
11
|
+
light: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
};
|
|
14
|
+
tags?: Record<string, CodeBlockTagStyle>;
|
|
15
|
+
gutters?: CodeBlockGutterColumn[];
|
|
16
|
+
transformers?: ShikiTransformer[];
|
|
17
|
+
/** @default true */
|
|
18
|
+
withCopyButton?: boolean;
|
|
19
|
+
copyIcon?: ReactNode | null;
|
|
20
|
+
copiedIcon?: ReactNode | null;
|
|
21
|
+
onCopy?: () => void;
|
|
22
|
+
collapsedLines?: number;
|
|
23
|
+
/** @default false */
|
|
24
|
+
defaultExpanded?: boolean;
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
27
|
+
expandIcon?: ReactNode | null;
|
|
28
|
+
collapseIcon?: ReactNode | null;
|
|
29
|
+
controls?: ReactNode;
|
|
30
|
+
translations?: Partial<CodeBlockTranslations>;
|
|
31
|
+
className?: string;
|
|
32
|
+
classNames?: CodeBlockClassNames;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* `CodeBlock.Static` — an async React Server Component that `await`s
|
|
36
|
+
* `highlightCode` directly during the server render, instead of `CodeBlock`
|
|
37
|
+
* (code-block.tsx)'s client-side effect. For a page that's statically
|
|
38
|
+
* generated (as this kit's own docs pages are), that bakes the highlighted
|
|
39
|
+
* markup into the build output: zero client JS spent on Shiki at all, no
|
|
40
|
+
* loading flash, real SSR — not just streamed-in, actually static.
|
|
41
|
+
*
|
|
42
|
+
* The tradeoff this makes: no reactivity. `code`/`tags`/etc. are resolved
|
|
43
|
+
* once, server-side, at render time — there's no client-side re-highlight
|
|
44
|
+
* if they change later (they can't, from a Server Component's own
|
|
45
|
+
* perspective; a `code` value from live client state needs `CodeBlock`
|
|
46
|
+
* instead). Use this for anything with a fixed, known-at-render-time
|
|
47
|
+
* `code` (docs, MDX, a blog post's snippets); reach for `CodeBlock` itself
|
|
48
|
+
* for anything editable/dynamic (a live playground).
|
|
49
|
+
*
|
|
50
|
+
* Deliberately NOT attached onto `CodeBlockComponent` (`code-block.tsx`)
|
|
51
|
+
* itself — that file is `"use client"`, and an async Server Component
|
|
52
|
+
* being imported into a Client Component's own module is exactly the
|
|
53
|
+
* shape React Server Components don't support (a Client Component's render
|
|
54
|
+
* can't `await`, on the server or the client). `CodeBlock.Static` is
|
|
55
|
+
* attached in `index.ts` instead, a plain barrel with no directive of its
|
|
56
|
+
* own, which is the well-supported way to compose a `"use client"` export
|
|
57
|
+
* and a Server-Component-only export under one object.
|
|
58
|
+
*
|
|
59
|
+
* Requires a React Server Components-capable framework (e.g. Next.js App
|
|
60
|
+
* Router) to actually run as a Server Component — a plain client-rendered
|
|
61
|
+
* React app (Vite, CRA, Next Pages Router) has no runtime that knows how to
|
|
62
|
+
* execute an async function component at all.
|
|
63
|
+
*/
|
|
64
|
+
export declare function CodeBlockStatic({ code, language, themes, tags, gutters, transformers, collapsedLines, className, classNames, ...chromeProps }: CodeBlockStaticProps): Promise<import("react").JSX.Element>;
|
|
65
|
+
//# sourceMappingURL=static.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/static.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAKnD,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,eAAe,CAAA;AAGrE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IACxC,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACjC,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAEjC,oBAAoB;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IAEnB,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,UAAU,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAE/B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,mBAAmB,CAAA;CACjC,CAAA;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,eAAe,CAAC,EACpC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,GAAG,WAAW,EACf,EAAE,oBAAoB,wCAqCtB"}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { extendTailwindMerge } from 'tailwind-merge';
|
|
3
|
+
import { CodeBlockChrome } from './chrome.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/lib/cn.ts
|
|
7
|
+
var twMerge = extendTailwindMerge({
|
|
8
|
+
extend: { classGroups: { "text-box-trim": ["text-trim"] } }
|
|
9
|
+
});
|
|
10
|
+
function cn(...inputs) {
|
|
11
|
+
return twMerge(clsx(inputs));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/components/code-block/gutters.ts
|
|
15
|
+
function countNonSkipped(lines, skip) {
|
|
16
|
+
let n = 0;
|
|
17
|
+
for (const l of lines) {
|
|
18
|
+
if (l.blank) continue;
|
|
19
|
+
if (!l.matches.some((m) => skip.has(m.tag))) n++;
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function defaultCounterWidth(column, notation) {
|
|
24
|
+
const startAt = column.startAt ?? 1;
|
|
25
|
+
const total = countNonSkipped(notation.perLine, new Set(column.skip ?? []));
|
|
26
|
+
const maxValue = startAt + Math.max(total - 1, 0);
|
|
27
|
+
const digits = String(maxValue).length;
|
|
28
|
+
return `${Math.max(digits + 0.5, 1.5)}ch`;
|
|
29
|
+
}
|
|
30
|
+
function appendClass(span, extra) {
|
|
31
|
+
const existing = span.properties["class"];
|
|
32
|
+
span.properties["class"] = existing ? `${existing} ${extra}` : extra;
|
|
33
|
+
}
|
|
34
|
+
function applyMarkerColor(span, color, background) {
|
|
35
|
+
if (background !== void 0 && color !== void 0 && background !== color) {
|
|
36
|
+
span.properties["data-color"] = background;
|
|
37
|
+
appendClass(span, "decoration-bg");
|
|
38
|
+
span.children = [
|
|
39
|
+
{
|
|
40
|
+
type: "element",
|
|
41
|
+
tagName: "span",
|
|
42
|
+
properties: { "data-color": color, class: "decoration-text" },
|
|
43
|
+
children: span.children
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
} else if (background !== void 0 || color !== void 0) {
|
|
47
|
+
const value = background ?? color;
|
|
48
|
+
if (value !== void 0) span.properties["data-color"] = value;
|
|
49
|
+
if (background !== void 0) appendClass(span, "decoration-bg");
|
|
50
|
+
if (color !== void 0) appendClass(span, "decoration-text");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function renderColumn(column, matches, counter, defaultWidth) {
|
|
54
|
+
const isCounter = column.kind === "counter";
|
|
55
|
+
const width = column.width ?? defaultWidth;
|
|
56
|
+
const align = column.align ?? (isCounter ? "right" : "center");
|
|
57
|
+
const ariaHidden = column.ariaHidden ?? isCounter;
|
|
58
|
+
let text = "";
|
|
59
|
+
let color;
|
|
60
|
+
let background;
|
|
61
|
+
if (isCounter && counter) {
|
|
62
|
+
const skip = column.skip;
|
|
63
|
+
const skipped = skip != null && matches.some((m) => skip.includes(m.tag));
|
|
64
|
+
if (!skipped) {
|
|
65
|
+
text = String(counter.value);
|
|
66
|
+
counter.value += 1;
|
|
67
|
+
}
|
|
68
|
+
} else if (!isCounter) {
|
|
69
|
+
const match = matches.find((m) => m.tag in column.tags);
|
|
70
|
+
if (match) {
|
|
71
|
+
const mapped = column.tags[match.tag];
|
|
72
|
+
if (mapped !== null && typeof mapped === "object") {
|
|
73
|
+
text = mapped.text === true ? match.payload ?? "" : mapped.text;
|
|
74
|
+
color = mapped.color;
|
|
75
|
+
background = mapped.background;
|
|
76
|
+
} else {
|
|
77
|
+
text = mapped === true ? match.payload ?? "" : mapped ?? "";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const baseClasses = ["gutter-column", isCounter ? "gutter-counter" : "gutter-content"];
|
|
82
|
+
if (column.className) baseClasses.push(column.className);
|
|
83
|
+
const span = {
|
|
84
|
+
type: "element",
|
|
85
|
+
tagName: "span",
|
|
86
|
+
properties: {
|
|
87
|
+
class: baseClasses.join(" "),
|
|
88
|
+
style: `min-width:${width};text-align:${align}`,
|
|
89
|
+
...ariaHidden ? { "aria-hidden": "true" } : {}
|
|
90
|
+
},
|
|
91
|
+
children: text ? [{ type: "text", value: text }] : []
|
|
92
|
+
};
|
|
93
|
+
if (text) applyMarkerColor(span, color, background);
|
|
94
|
+
return span;
|
|
95
|
+
}
|
|
96
|
+
function resolveGutterColumns(gutters, notation, headLineOffset) {
|
|
97
|
+
const resolved = gutters.map((column) => {
|
|
98
|
+
if (column.kind === "counter") {
|
|
99
|
+
const seed = (column.startAt ?? 1) + countNonSkipped(notation.perLine.slice(0, headLineOffset), new Set(column.skip ?? []));
|
|
100
|
+
return {
|
|
101
|
+
column,
|
|
102
|
+
counter: { value: seed },
|
|
103
|
+
defaultWidth: defaultCounterWidth(column, notation)
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return { column, counter: void 0, defaultWidth: "3ch" };
|
|
107
|
+
});
|
|
108
|
+
return {
|
|
109
|
+
/** A blank (fully-removed) line never advances any counter, since it
|
|
110
|
+
* never renders at all — callers should not invoke this for a line
|
|
111
|
+
* whose `ParsedLine.blank` is true. */
|
|
112
|
+
render(parsed) {
|
|
113
|
+
if (resolved.length === 0) return [];
|
|
114
|
+
const matches = parsed?.matches ?? [];
|
|
115
|
+
return resolved.map((r) => renderColumn(r.column, matches, r.counter, r.defaultWidth));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// src/components/code-block/notation.ts
|
|
121
|
+
var MARKER_SOURCE = String.raw`\[!code\s+([A-Za-z][\w-]*)(?::((?:\\.|[^:\]])*))?\s*\]`;
|
|
122
|
+
var MARKER_RE = new RegExp(MARKER_SOURCE, "g");
|
|
123
|
+
var TRAILING_MARKERS_RE = new RegExp(`(?:${MARKER_SOURCE}\\s*)+$`);
|
|
124
|
+
var LINE_OPENER_RE = /\/\/|#|;{1,2}|%{1,2}|--/g;
|
|
125
|
+
var UNESCAPE_RE = /\\(.)/g;
|
|
126
|
+
var NO_MATCH = { matches: [], stripCount: 0, blank: false };
|
|
127
|
+
function unescapePayload(payload) {
|
|
128
|
+
return payload.replace(UNESCAPE_RE, "$1");
|
|
129
|
+
}
|
|
130
|
+
function collectMarkers(text) {
|
|
131
|
+
return [...text.matchAll(MARKER_RE)].map((m) => ({
|
|
132
|
+
tag: m[1],
|
|
133
|
+
payload: m[2] !== void 0 ? unescapePayload(m[2]) : void 0
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
function backOverWhitespace(line, index) {
|
|
137
|
+
let i = index;
|
|
138
|
+
while (i > 0 && (line[i - 1] === " " || line[i - 1] === " ")) i--;
|
|
139
|
+
return i;
|
|
140
|
+
}
|
|
141
|
+
function toParsedLine(matches, line, removableFrom) {
|
|
142
|
+
const start = backOverWhitespace(line, removableFrom);
|
|
143
|
+
return { matches, stripCount: line.length - start, blank: line.slice(0, start).trim() === "" };
|
|
144
|
+
}
|
|
145
|
+
function matchBlock(line, open, close) {
|
|
146
|
+
const closeIdx = line.lastIndexOf(close);
|
|
147
|
+
if (closeIdx === -1) return null;
|
|
148
|
+
if (line.slice(closeIdx + close.length).trim() !== "") return null;
|
|
149
|
+
const openIdx = line.lastIndexOf(open, closeIdx);
|
|
150
|
+
if (openIdx === -1) return null;
|
|
151
|
+
const body = line.slice(openIdx + open.length, closeIdx);
|
|
152
|
+
MARKER_RE.lastIndex = 0;
|
|
153
|
+
if (!MARKER_RE.test(body)) return null;
|
|
154
|
+
MARKER_RE.lastIndex = 0;
|
|
155
|
+
const remaining = body.replace(MARKER_RE, "").trim();
|
|
156
|
+
if (remaining !== "") return null;
|
|
157
|
+
return toParsedLine(collectMarkers(body), line, openIdx);
|
|
158
|
+
}
|
|
159
|
+
function matchLineStyle(line) {
|
|
160
|
+
MARKER_RE.lastIndex = 0;
|
|
161
|
+
const markerSpans = [...line.matchAll(MARKER_RE)].map(
|
|
162
|
+
(m) => [m.index, m.index + m[0].length]
|
|
163
|
+
);
|
|
164
|
+
const insideAMarker = (i) => markerSpans.some(([s, e]) => i >= s && i < e);
|
|
165
|
+
let openIdx = -1;
|
|
166
|
+
let openLen = 0;
|
|
167
|
+
for (const m of line.matchAll(LINE_OPENER_RE)) {
|
|
168
|
+
if (insideAMarker(m.index)) continue;
|
|
169
|
+
openIdx = m.index;
|
|
170
|
+
openLen = m[0].length;
|
|
171
|
+
}
|
|
172
|
+
if (openIdx === -1) return null;
|
|
173
|
+
const body = line.slice(openIdx + openLen);
|
|
174
|
+
const trailing = body.match(TRAILING_MARKERS_RE);
|
|
175
|
+
if (!trailing || trailing.index === void 0) return null;
|
|
176
|
+
const matches = collectMarkers(trailing[0]);
|
|
177
|
+
const prose = body.slice(0, trailing.index).trim();
|
|
178
|
+
const removableFrom = prose === "" ? openIdx : openIdx + openLen + trailing.index;
|
|
179
|
+
return toParsedLine(matches, line, removableFrom);
|
|
180
|
+
}
|
|
181
|
+
function matchContinuation(line) {
|
|
182
|
+
const m = line.match(/^(\s*)\*(?!\/)([\s\S]*)$/);
|
|
183
|
+
if (!m) return null;
|
|
184
|
+
const [, indent, body] = m;
|
|
185
|
+
const trailing = body.match(TRAILING_MARKERS_RE);
|
|
186
|
+
if (!trailing || trailing.index === void 0) return null;
|
|
187
|
+
const matches = collectMarkers(trailing[0]);
|
|
188
|
+
const prose = body.slice(0, trailing.index).trim();
|
|
189
|
+
const removableFrom = prose === "" ? indent.length : indent.length + 1 + trailing.index;
|
|
190
|
+
return toParsedLine(matches, line, removableFrom);
|
|
191
|
+
}
|
|
192
|
+
function parseLine(line) {
|
|
193
|
+
const jsx2 = matchBlock(line, "{/*", "*/}");
|
|
194
|
+
if (jsx2) return jsx2;
|
|
195
|
+
const html = matchBlock(line, "<!--", "-->");
|
|
196
|
+
if (html) return html;
|
|
197
|
+
const block = matchBlock(line, "/*", "*/");
|
|
198
|
+
if (block) return block;
|
|
199
|
+
const lineStyle = matchLineStyle(line);
|
|
200
|
+
if (lineStyle) return lineStyle;
|
|
201
|
+
const continuation = matchContinuation(line);
|
|
202
|
+
if (continuation) return continuation;
|
|
203
|
+
return NO_MATCH;
|
|
204
|
+
}
|
|
205
|
+
function parseNotation(code) {
|
|
206
|
+
return { perLine: code.split("\n").map(parseLine) };
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// src/components/code-block/highlighter.ts
|
|
210
|
+
var DEFAULT_THEMES = { light: "github-light", dark: "github-dark-default" };
|
|
211
|
+
var highlighterPromise = null;
|
|
212
|
+
function getHighlighter() {
|
|
213
|
+
if (!highlighterPromise) {
|
|
214
|
+
highlighterPromise = import('shiki').then(
|
|
215
|
+
({ createHighlighter }) => createHighlighter({ themes: [DEFAULT_THEMES.light, DEFAULT_THEMES.dark], langs: [] })
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
return highlighterPromise;
|
|
219
|
+
}
|
|
220
|
+
function appendStyle(hast, style) {
|
|
221
|
+
const existing = hast.properties["style"];
|
|
222
|
+
hast.properties["style"] = typeof existing === "string" && existing.length > 0 ? `${existing};${style}` : style;
|
|
223
|
+
}
|
|
224
|
+
function applyStyle(hast, s, addClassToHast) {
|
|
225
|
+
if (s.className) addClassToHast(hast, s.className);
|
|
226
|
+
if (s.style) appendStyle(hast, s.style);
|
|
227
|
+
const { background, color } = s;
|
|
228
|
+
if (background !== void 0 && color !== void 0 && background !== color) {
|
|
229
|
+
hast.properties["data-color"] = background;
|
|
230
|
+
addClassToHast(hast, "decoration-bg");
|
|
231
|
+
hast.children = [
|
|
232
|
+
{
|
|
233
|
+
type: "element",
|
|
234
|
+
tagName: "span",
|
|
235
|
+
properties: { "data-color": color, class: "decoration-text" },
|
|
236
|
+
children: hast.children
|
|
237
|
+
}
|
|
238
|
+
];
|
|
239
|
+
} else if (background !== void 0 || color !== void 0) {
|
|
240
|
+
hast.properties["data-color"] = background ?? color;
|
|
241
|
+
if (background !== void 0) addClassToHast(hast, "decoration-bg");
|
|
242
|
+
if (color !== void 0) addClassToHast(hast, "decoration-text");
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function isEmptyNode(node) {
|
|
246
|
+
if (node.type === "text") return node.value.length === 0;
|
|
247
|
+
if (node.type === "element") return node.children.length === 0;
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
function trimNode(node, remaining) {
|
|
251
|
+
if (node.type === "text") {
|
|
252
|
+
const take = Math.min(remaining, node.value.length);
|
|
253
|
+
node.value = node.value.slice(0, node.value.length - take);
|
|
254
|
+
return remaining - take;
|
|
255
|
+
}
|
|
256
|
+
if (node.type === "element") {
|
|
257
|
+
let left = remaining;
|
|
258
|
+
while (left > 0 && node.children.length > 0) {
|
|
259
|
+
const child = node.children[node.children.length - 1];
|
|
260
|
+
left = trimNode(child, left);
|
|
261
|
+
if (isEmptyNode(child)) node.children.pop();
|
|
262
|
+
else break;
|
|
263
|
+
}
|
|
264
|
+
return left;
|
|
265
|
+
}
|
|
266
|
+
return remaining;
|
|
267
|
+
}
|
|
268
|
+
function trimTrailingChars(hast, count) {
|
|
269
|
+
let remaining = count;
|
|
270
|
+
while (remaining > 0 && hast.children.length > 0) {
|
|
271
|
+
const last = hast.children[hast.children.length - 1];
|
|
272
|
+
remaining = trimNode(last, remaining);
|
|
273
|
+
if (isEmptyNode(last)) hast.children.pop();
|
|
274
|
+
else break;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function buildCodeBlockTransformer(opts, notation) {
|
|
278
|
+
const offset = opts.lineOffset ?? 0;
|
|
279
|
+
const gutters = resolveGutterColumns(opts.gutters ?? [], notation, offset);
|
|
280
|
+
const toRemove = /* @__PURE__ */ new Set();
|
|
281
|
+
return {
|
|
282
|
+
name: "42-ui-code-block",
|
|
283
|
+
line(hast, renderedLine) {
|
|
284
|
+
const line = renderedLine + offset;
|
|
285
|
+
const parsed = notation.perLine[line - 1];
|
|
286
|
+
if (parsed?.blank) {
|
|
287
|
+
toRemove.add(hast);
|
|
288
|
+
return hast;
|
|
289
|
+
}
|
|
290
|
+
if (parsed && parsed.stripCount > 0) trimTrailingChars(hast, parsed.stripCount);
|
|
291
|
+
for (const m of parsed?.matches ?? []) {
|
|
292
|
+
const style = opts.tags?.[m.tag];
|
|
293
|
+
if (style) applyStyle(hast, style, this.addClassToHast);
|
|
294
|
+
}
|
|
295
|
+
const gutterSpans = gutters.render(parsed);
|
|
296
|
+
if (gutterSpans.length > 0) hast.children.unshift(...gutterSpans);
|
|
297
|
+
return hast;
|
|
298
|
+
},
|
|
299
|
+
code(hast) {
|
|
300
|
+
if (toRemove.size === 0) return hast;
|
|
301
|
+
hast.children = hast.children.filter((child, i, arr) => {
|
|
302
|
+
if (child.type === "element" && toRemove.has(child)) return false;
|
|
303
|
+
if (child.type === "text" && child.value === "\n") {
|
|
304
|
+
const neighbor = arr[i - 1] ?? arr[i + 1];
|
|
305
|
+
if (neighbor?.type === "element" && toRemove.has(neighbor)) return false;
|
|
306
|
+
}
|
|
307
|
+
return true;
|
|
308
|
+
});
|
|
309
|
+
return hast;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
async function highlightCode(code, opts = {}) {
|
|
314
|
+
const lang = opts.lang ?? "text";
|
|
315
|
+
const themes = opts.themes ?? DEFAULT_THEMES;
|
|
316
|
+
const highlighter = await getHighlighter();
|
|
317
|
+
const notation = opts.notation ?? parseNotation(code);
|
|
318
|
+
await Promise.all(
|
|
319
|
+
[themes.light, themes.dark].filter((t) => !highlighter.getLoadedThemes().includes(t)).map((t) => highlighter.loadTheme(t))
|
|
320
|
+
);
|
|
321
|
+
if (!highlighter.getLoadedLanguages().includes(lang)) {
|
|
322
|
+
await highlighter.loadLanguage(lang);
|
|
323
|
+
}
|
|
324
|
+
return highlighter.codeToHtml(code, {
|
|
325
|
+
lang,
|
|
326
|
+
themes,
|
|
327
|
+
defaultColor: false,
|
|
328
|
+
transformers: [buildCodeBlockTransformer(opts, notation), ...opts.transformers ?? []]
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
function StaticPre({ html, className }) {
|
|
332
|
+
return /* @__PURE__ */ jsx("div", { className, dangerouslySetInnerHTML: { __html: html } });
|
|
333
|
+
}
|
|
334
|
+
async function CodeBlockStatic({
|
|
335
|
+
code,
|
|
336
|
+
language,
|
|
337
|
+
themes,
|
|
338
|
+
tags,
|
|
339
|
+
gutters,
|
|
340
|
+
transformers,
|
|
341
|
+
collapsedLines,
|
|
342
|
+
className,
|
|
343
|
+
classNames,
|
|
344
|
+
...chromeProps
|
|
345
|
+
}) {
|
|
346
|
+
const lines = code.split("\n");
|
|
347
|
+
const isCollapsible = collapsedLines != null && lines.length > collapsedLines;
|
|
348
|
+
const headCode = isCollapsible ? lines.slice(0, collapsedLines).join("\n") : code;
|
|
349
|
+
const tailCode = isCollapsible ? lines.slice(collapsedLines).join("\n") : "";
|
|
350
|
+
const notation = parseNotation(code);
|
|
351
|
+
const preClassName = cn("overflow-x-auto py-3 text-sm leading-relaxed font-mono", classNames?.pre);
|
|
352
|
+
const [headHtml, tailHtml] = await Promise.all([
|
|
353
|
+
highlightCode(headCode, { lang: language, themes, tags, gutters, notation, transformers }),
|
|
354
|
+
isCollapsible ? highlightCode(tailCode, {
|
|
355
|
+
lang: language,
|
|
356
|
+
themes,
|
|
357
|
+
tags,
|
|
358
|
+
gutters,
|
|
359
|
+
notation,
|
|
360
|
+
lineOffset: collapsedLines,
|
|
361
|
+
transformers
|
|
362
|
+
}) : null
|
|
363
|
+
]);
|
|
364
|
+
return /* @__PURE__ */ jsx(
|
|
365
|
+
CodeBlockChrome,
|
|
366
|
+
{
|
|
367
|
+
code,
|
|
368
|
+
isCollapsible,
|
|
369
|
+
className,
|
|
370
|
+
classNames,
|
|
371
|
+
headContent: /* @__PURE__ */ jsx(StaticPre, { html: headHtml, className: preClassName }),
|
|
372
|
+
tailContent: tailHtml != null && /* @__PURE__ */ jsx(StaticPre, { html: tailHtml, className: preClassName }),
|
|
373
|
+
...chromeProps
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export { CodeBlockStatic };
|
|
379
|
+
//# sourceMappingURL=static.js.map
|
|
380
|
+
//# sourceMappingURL=static.js.map
|