@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,456 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { Avatar as ArkAvatar, ark, type HTMLArkProps } from "@ark-ui/react"
|
|
4
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
5
|
+
import { UserRound } from "lucide-react"
|
|
6
|
+
import { type ComponentProps, type CSSProperties, type ReactNode, useId } from "react"
|
|
7
|
+
import { cn } from "../../lib/cn"
|
|
8
|
+
import type { Color } from "../../lib/colors"
|
|
9
|
+
import { props } from "../../lib/props"
|
|
10
|
+
import type { Size } from "../../lib/sizes"
|
|
11
|
+
import type { WithTestId } from "../../lib/test-id"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Avatar — circular (by default) image with an automatic fallback. Renders
|
|
15
|
+
* `src` once it loads; falls back to `children` (custom initials or an icon)
|
|
16
|
+
* when there's no image or it fails to load, or to initials/name derived from
|
|
17
|
+
* `name`, or finally to a generic person icon. Wraps Ark's `Avatar` machine,
|
|
18
|
+
* which already tracks image-load state (`loading → loaded/error`) — no
|
|
19
|
+
* bespoke `onError` handling needed here.
|
|
20
|
+
*
|
|
21
|
+
* <Avatar src={user.avatarUrl} name={user.fullName} color="brand" />
|
|
22
|
+
*
|
|
23
|
+
* `color="name"` / `color="initials"` deterministically hash `name` (or its
|
|
24
|
+
* derived initials) into a pick from `palette` instead of a literal `Color` —
|
|
25
|
+
* a stable, no-config accent per person. `display` independently controls
|
|
26
|
+
* what the computed fallback shows: `"initials"` (default, two letters) or
|
|
27
|
+
* `"name"` (a single leading letter — a full name would overflow the circle).
|
|
28
|
+
*
|
|
29
|
+
* No `asChild` — same reasoning as `Skeleton`: `children` is already
|
|
30
|
+
* repurposed as fallback content, which conflicts with Ark's "single child to
|
|
31
|
+
* render as" requirement for polymorphism.
|
|
32
|
+
*
|
|
33
|
+
* `Avatar.Group` overlaps a row — or, with `orientation="vertical"`, a
|
|
34
|
+
* column — of standalone `Avatar`s (Mantine-style stacked avatars),
|
|
35
|
+
* punching a transparent notch into each one where its successor overlaps
|
|
36
|
+
* it — true see-through separation instead of a painted border, so it reads
|
|
37
|
+
* correctly over any page background. It's pure CSS
|
|
38
|
+
* layout, like `ButtonGroup` — it doesn't resize or restyle its children, so
|
|
39
|
+
* set `size`/`color` per `Avatar`.
|
|
40
|
+
*/
|
|
41
|
+
const avatarVariants = cva(
|
|
42
|
+
[
|
|
43
|
+
"relative inline-flex shrink-0 items-center justify-center overflow-hidden",
|
|
44
|
+
"select-none",
|
|
45
|
+
// Neutral gray by default; a `data-color` tint overrides it with the
|
|
46
|
+
// palette's soft surface + text — the same treatment Pill and Badge's
|
|
47
|
+
// `light` variant use. No variant axis: an avatar is always this one
|
|
48
|
+
// soft-surface look, just optionally tinted. No border either: it used
|
|
49
|
+
// to be border-(--c-soft) once tinted, i.e. always the exact same color
|
|
50
|
+
// as its own background — invisible for every `color`, visible only for
|
|
51
|
+
// the untinted default (border-brand-900/20 against bg-gray-light-100,
|
|
52
|
+
// two different colors) — so whether an avatar showed a border at all
|
|
53
|
+
// used to depend on `color`, not on any actual design intent.
|
|
54
|
+
"bg-gray-light-100 text-gray-light-700",
|
|
55
|
+
"dark:bg-gray-dark-800 dark:text-gray-dark-300",
|
|
56
|
+
"data-color:bg-(--c-soft) data-color:text-(--c-text)",
|
|
57
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
58
|
+
],
|
|
59
|
+
{
|
|
60
|
+
variants: {
|
|
61
|
+
// `--avatar-r` (this avatar's own radius, in px, as a unitless number)
|
|
62
|
+
// rides along with `size` — it's read by `Avatar.Group`'s notch/margin
|
|
63
|
+
// CSS (see AVATAR_GROUP_NOTCH below) so the notch always matches
|
|
64
|
+
// *this* avatar's actual rendered radius, not whatever radius
|
|
65
|
+
// `Avatar.Group`'s own `spacing` happens to assume. `spacing` only
|
|
66
|
+
// ever controls `--avatar-o` (the overlap amount) — a mismatched
|
|
67
|
+
// `size`/`spacing` pairing (e.g. `md` avatars in a `spacing="xs"`
|
|
68
|
+
// group) still gets a correctly-sized notch, just more or less
|
|
69
|
+
// overlap.
|
|
70
|
+
size: {
|
|
71
|
+
xs: "size-6 text-[10px] [&_svg]:size-3.5 [--avatar-r:12]",
|
|
72
|
+
sm: "size-8 text-xs [&_svg]:size-4 [--avatar-r:16]",
|
|
73
|
+
md: "size-10 text-sm [&_svg]:size-5 [--avatar-r:20]",
|
|
74
|
+
lg: "size-12 text-base [&_svg]:size-6 [--avatar-r:24]",
|
|
75
|
+
xl: "size-16 text-lg [&_svg]:size-8 [--avatar-r:32]",
|
|
76
|
+
},
|
|
77
|
+
// `--avatar-corner-r` also rides along with `radius`: it's the other
|
|
78
|
+
// half of `Avatar.Group`'s notch for a non-circular avatar (see
|
|
79
|
+
// AVATAR_GROUP_NOTCH and AvatarNotchMaskDefs below). A gradient can
|
|
80
|
+
// only cut a circle/ellipse, never a true rounded rect, so
|
|
81
|
+
// `radius="full"` keeps using a mask-image ellipse (the shape it
|
|
82
|
+
// actually needs), but every other radius instead cuts a real
|
|
83
|
+
// rounded-rect *hole* via a per-instance SVG `<mask>`, using this
|
|
84
|
+
// avatar's own actual radius token (`theme.css`'s
|
|
85
|
+
// `--radius-xs`..`--radius-xl`, in px) as that hole's corner radius.
|
|
86
|
+
// `"full"` deliberately has no `--avatar-corner-r` and never renders
|
|
87
|
+
// that SVG mask at all — its radius (50% of the box) isn't a fixed px
|
|
88
|
+
// value the way the others are, so there's nothing meaningful to plug
|
|
89
|
+
// in here; the mask-image ellipse already handles it correctly.
|
|
90
|
+
radius: {
|
|
91
|
+
xs: "rounded-xs [--avatar-corner-r:4]",
|
|
92
|
+
sm: "rounded-sm [--avatar-corner-r:6]",
|
|
93
|
+
md: "rounded-md [--avatar-corner-r:8]",
|
|
94
|
+
lg: "rounded-lg [--avatar-corner-r:10]",
|
|
95
|
+
xl: "rounded-xl [--avatar-corner-r:12]",
|
|
96
|
+
full: "rounded-full",
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
size: "md",
|
|
101
|
+
// Unlike ThemeIcon (a square icon surface), an avatar reads as
|
|
102
|
+
// circular by default — matching Mantine's own default.
|
|
103
|
+
radius: "full",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
export type AvatarSize = NonNullable<VariantProps<typeof avatarVariants>["size"]>
|
|
109
|
+
export type AvatarRadius = NonNullable<VariantProps<typeof avatarVariants>["radius"]>
|
|
110
|
+
|
|
111
|
+
/** Shared by `color`'s auto-computed modes and `display`'s content mode. */
|
|
112
|
+
export type AvatarNameMode = "name" | "initials"
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Default hash pool for `color="name"` / `color="initials"`. Excludes
|
|
116
|
+
* `brand` (the kit's own primary/CTA identity color — auto-tinting a user
|
|
117
|
+
* avatar with it would read as "official") and `gray`/`neutral` (muted, and
|
|
118
|
+
* `neutral` is a composed-not-scaled tone per `lib/colors.ts`, so it would
|
|
119
|
+
* just look washed-out for some names). Exported so a consumer can extend it,
|
|
120
|
+
* e.g. `palette={[...AVATAR_PALETTE, "brand"]}`.
|
|
121
|
+
*/
|
|
122
|
+
export const AVATAR_PALETTE: Color[] = [
|
|
123
|
+
"red",
|
|
124
|
+
"orange",
|
|
125
|
+
"yellow",
|
|
126
|
+
"green",
|
|
127
|
+
"teal",
|
|
128
|
+
"cyan",
|
|
129
|
+
"blue",
|
|
130
|
+
"purple",
|
|
131
|
+
"pink",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
type AvatarClassNames = {
|
|
135
|
+
root?: string
|
|
136
|
+
image?: string
|
|
137
|
+
fallback?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type AvatarProps = Omit<ComponentProps<typeof ArkAvatar.Root>, "color" | "asChild"> &
|
|
141
|
+
VariantProps<typeof avatarVariants> &
|
|
142
|
+
WithTestId & {
|
|
143
|
+
/** Image source. Falls back automatically when unset or on load error. */
|
|
144
|
+
src?: string
|
|
145
|
+
/** Alt text for the image. */
|
|
146
|
+
alt?: string
|
|
147
|
+
/**
|
|
148
|
+
* Accent palette. `"name"` / `"initials"` deterministically hash `name`
|
|
149
|
+
* (or its derived initials) into a pick from `palette` instead of a
|
|
150
|
+
* literal color. Re-exported as `Color` from `@42/ui-react`.
|
|
151
|
+
*/
|
|
152
|
+
color?: Color | AvatarNameMode
|
|
153
|
+
/**
|
|
154
|
+
* Colors eligible for `color="name"` / `color="initials"`'s hash.
|
|
155
|
+
* Ignored otherwise. Defaults to `AVATAR_PALETTE`.
|
|
156
|
+
*/
|
|
157
|
+
palette?: Color[]
|
|
158
|
+
/**
|
|
159
|
+
* Full name to derive initials/color from (e.g. "Ada Lovelace" → "AL")
|
|
160
|
+
* when there's no image and no explicit `children`. Explicit `children`
|
|
161
|
+
* always takes precedence over `name`.
|
|
162
|
+
*/
|
|
163
|
+
name?: string
|
|
164
|
+
/**
|
|
165
|
+
* What the computed fallback shows: `"initials"` (default, two letters)
|
|
166
|
+
* or `"name"` (a single leading letter of `name`).
|
|
167
|
+
*/
|
|
168
|
+
display?: AvatarNameMode
|
|
169
|
+
/**
|
|
170
|
+
* Fallback content — shown until the image loads, or permanently when
|
|
171
|
+
* there's no `src`. Overrides the `name`/`display`-derived content.
|
|
172
|
+
*/
|
|
173
|
+
children?: ReactNode
|
|
174
|
+
classNames?: AvatarClassNames
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** First + last initial for a multi-word name; first two chars for a single word. */
|
|
178
|
+
const getInitials = (name: string): string => {
|
|
179
|
+
const parts = name.trim().split(/\s+/).filter(Boolean)
|
|
180
|
+
const [first, ...rest] = parts
|
|
181
|
+
if (!first) return ""
|
|
182
|
+
const last = rest.at(-1)
|
|
183
|
+
return (last ? first.charAt(0) + last.charAt(0) : first.slice(0, 2)).toUpperCase()
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** Single leading letter — `display="name"`'s content; a full name would overflow the circle. */
|
|
187
|
+
const getLeadingLetter = (name: string): string => name.trim().charAt(0).toUpperCase()
|
|
188
|
+
|
|
189
|
+
/** Deterministic string hash (Java-style polynomial rolling hash). */
|
|
190
|
+
const hashString = (input: string): number => {
|
|
191
|
+
let hash = 0
|
|
192
|
+
for (let i = 0; i < input.length; i++) hash = (hash * 31 + input.charCodeAt(i)) | 0
|
|
193
|
+
return Math.abs(hash)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const pickColor = (input: string, pool: Color[]): Color | undefined =>
|
|
197
|
+
input && pool.length > 0 ? pool[hashString(input) % pool.length] : undefined
|
|
198
|
+
|
|
199
|
+
const isAvatarNameMode = (value: unknown): value is AvatarNameMode =>
|
|
200
|
+
value === "name" || value === "initials"
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* A per-instance SVG `<mask>` cutting `Avatar.Group`'s notch as a true
|
|
204
|
+
* rounded-rect hole for any non-circular `radius` — see AVATAR_GROUP_NOTCH's
|
|
205
|
+
* own doc comment for why a hole (not a trim/clip) is what's actually needed
|
|
206
|
+
* here. Rendered *inside this avatar itself* — not shared, not on
|
|
207
|
+
* `Avatar.Group` — because an SVG `<mask>`'s content resolves `var()` from
|
|
208
|
+
* wherever the `<mask>` element itself sits in the DOM, not from whatever
|
|
209
|
+
* element references it via `mask: url(#id)` (confirmed empirically: a single
|
|
210
|
+
* shared mask read the *ancestor's* `--avatar-r`, not each differently-sized
|
|
211
|
+
* avatar's own). Nesting a practically-free per-instance one inside each
|
|
212
|
+
* avatar instead means it naturally inherits *that* avatar's own
|
|
213
|
+
* `--avatar-r`/`--avatar-corner-r` and the group's `--avatar-o` and
|
|
214
|
+
* `--avatar-dx`/`--avatar-dy`, the same way any of this avatar's own CSS
|
|
215
|
+
* already does.
|
|
216
|
+
*
|
|
217
|
+
* The hole matches the *next* avatar's box (same-size neighbor assumed),
|
|
218
|
+
* grown by a ~2px gap on every side. It sits one step of `2r - o` (diameter
|
|
219
|
+
* minus overlap) along the group's direction vector `(dx, dy)` — so a single
|
|
220
|
+
* mask covers ltr (`1, 0`), rtl (`-1, 0`) and vertical (`0, 1`) stacks.
|
|
221
|
+
*
|
|
222
|
+
* `size-0 absolute` keeps it out of layout entirely. The `<mask>` element's
|
|
223
|
+
* own `x`/`y`/`width`/`height` (not the same as the hole `<rect>`'s) opt out
|
|
224
|
+
* of the CSS default `objectBoundingBox` region (`-10% -10% 120% 120%` of
|
|
225
|
+
* the avatar's own box) — too small to contain a hole that can extend well
|
|
226
|
+
* beyond the box — for a `userSpaceOnUse` region large enough it never
|
|
227
|
+
* actually clips anything; all real clipping is left to the masked avatar's
|
|
228
|
+
* own box, same as everywhere else in this file.
|
|
229
|
+
*/
|
|
230
|
+
const AvatarNotchMaskDefs = ({ id }: { id: string }) => (
|
|
231
|
+
<svg aria-hidden="true" className="absolute size-0">
|
|
232
|
+
<defs>
|
|
233
|
+
<mask id={id} maskUnits="userSpaceOnUse" x={-1000} y={-1000} width={2000} height={2000}>
|
|
234
|
+
<rect x={-1000} y={-1000} width={2000} height={2000} fill="white" />
|
|
235
|
+
<rect
|
|
236
|
+
style={
|
|
237
|
+
{
|
|
238
|
+
x: "calc((var(--avatar-dx) * (2 * var(--avatar-r) - var(--avatar-o)) - 2) * 1px)",
|
|
239
|
+
y: "calc((var(--avatar-dy) * (2 * var(--avatar-r) - var(--avatar-o)) - 2) * 1px)",
|
|
240
|
+
width: "calc((2 * var(--avatar-r) + 4) * 1px)",
|
|
241
|
+
height: "calc((2 * var(--avatar-r) + 4) * 1px)",
|
|
242
|
+
rx: "calc((var(--avatar-corner-r) + 2) * 1px)",
|
|
243
|
+
} as CSSProperties
|
|
244
|
+
}
|
|
245
|
+
fill="black"
|
|
246
|
+
/>
|
|
247
|
+
</mask>
|
|
248
|
+
</defs>
|
|
249
|
+
</svg>
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
const AvatarComponent = ({
|
|
253
|
+
src,
|
|
254
|
+
alt,
|
|
255
|
+
size,
|
|
256
|
+
radius,
|
|
257
|
+
color,
|
|
258
|
+
palette = AVATAR_PALETTE,
|
|
259
|
+
name,
|
|
260
|
+
display = "initials",
|
|
261
|
+
children,
|
|
262
|
+
className,
|
|
263
|
+
classNames,
|
|
264
|
+
style,
|
|
265
|
+
testId,
|
|
266
|
+
...rest
|
|
267
|
+
}: AvatarProps) => {
|
|
268
|
+
const resolvedColor = isAvatarNameMode(color)
|
|
269
|
+
? pickColor(color === "name" ? (name ?? "") : name ? getInitials(name) : "", palette)
|
|
270
|
+
: color
|
|
271
|
+
|
|
272
|
+
const computed = name ? (display === "name" ? getLeadingLetter(name) : getInitials(name)) : ""
|
|
273
|
+
const fallback = children ?? (computed || <UserRound />)
|
|
274
|
+
|
|
275
|
+
// `radius="full"` (the default) uses AVATAR_GROUP_NOTCH's mask-image
|
|
276
|
+
// circle instead — no rounded-rect hole to build, no id needed.
|
|
277
|
+
const needsNotchMask = (radius ?? "full") !== "full"
|
|
278
|
+
const maskId = useId().replace(/:/g, "")
|
|
279
|
+
const notchMaskStyle: CSSProperties = needsNotchMask
|
|
280
|
+
? ({ "--avatar-notch-mask": `url(#${maskId})` } as CSSProperties)
|
|
281
|
+
: {}
|
|
282
|
+
|
|
283
|
+
return (
|
|
284
|
+
<ArkAvatar.Root
|
|
285
|
+
data-color={resolvedColor}
|
|
286
|
+
className={cn(avatarVariants({ size, radius }), className, classNames?.root)}
|
|
287
|
+
style={{ ...notchMaskStyle, ...style }}
|
|
288
|
+
{...props({ "data-testid": testId })}
|
|
289
|
+
{...rest}
|
|
290
|
+
>
|
|
291
|
+
{needsNotchMask && <AvatarNotchMaskDefs id={maskId} />}
|
|
292
|
+
{src && (
|
|
293
|
+
<ArkAvatar.Image
|
|
294
|
+
src={src}
|
|
295
|
+
alt={alt}
|
|
296
|
+
className={cn("size-full object-cover", classNames?.image)}
|
|
297
|
+
/>
|
|
298
|
+
)}
|
|
299
|
+
<ArkAvatar.Fallback
|
|
300
|
+
className={cn(
|
|
301
|
+
"flex items-center justify-center font-medium leading-none",
|
|
302
|
+
classNames?.fallback,
|
|
303
|
+
)}
|
|
304
|
+
>
|
|
305
|
+
{fallback}
|
|
306
|
+
</ArkAvatar.Fallback>
|
|
307
|
+
</ArkAvatar.Root>
|
|
308
|
+
)
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Overlap magnitude (px) per `Size` key — larger sizes overlap by more. The
|
|
313
|
+
* only number this whole margin/notch mechanism hardcodes at the group
|
|
314
|
+
* level; `--avatar-r` (each avatar's own radius) instead rides along with
|
|
315
|
+
* `Avatar`'s own `size` variant above, so the notch always matches what's
|
|
316
|
+
* actually rendered even when a group's `spacing` and its avatars' `size`
|
|
317
|
+
* don't happen to match (`Avatar.Group` doesn't restyle children, so
|
|
318
|
+
* nothing stops that).
|
|
319
|
+
*/
|
|
320
|
+
const AVATAR_GROUP_OVERLAP_PX: Record<Size, number> = { xs: 8, sm: 10, md: 12, lg: 14, xl: 16 }
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* `--avatar-o` is a unitless number, not a length — `calc()` casts a
|
|
324
|
+
* unitless custom property into a real length/percentage by multiplying it
|
|
325
|
+
* by `1px`/`1%` (see AVATAR_GROUP_ORIENTATION's `* -1px` and AVATAR_GROUP_NOTCH's
|
|
326
|
+
* `* 1%` below), the same trick that keeps those two classes static text
|
|
327
|
+
* instead of needing a copy per `spacing` value. Set here on the group root
|
|
328
|
+
* and read by children via ordinary CSS custom-property inheritance —
|
|
329
|
+
* `--avatar-r` is deliberately *not* set here (see above).
|
|
330
|
+
*/
|
|
331
|
+
const avatarGroupSpacingStyle = (spacing: Size): CSSProperties =>
|
|
332
|
+
({ "--avatar-o": AVATAR_GROUP_OVERLAP_PX[spacing] }) as CSSProperties
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Two mutually-exclusive ways to notch every avatar but the last, selected
|
|
336
|
+
* purely by the presence of the `rounded-full` class (set by `radius`
|
|
337
|
+
* above) — `:not(.rounded-full)` and `.rounded-full` never both match the
|
|
338
|
+
* same element, so exactly one of these ever applies to a given avatar:
|
|
339
|
+
*
|
|
340
|
+
* - `.rounded-full` (the default): a `mask-image` circle, unchanged from
|
|
341
|
+
* before. `ellipse RX RY` (not `circle`, whose gradient radius can't be a
|
|
342
|
+
* percentage) with equal `%` radii on a square avatar box renders as a
|
|
343
|
+
* true circle, centered on the next avatar (assuming a same-size
|
|
344
|
+
* neighbor — the same "uniform stack" assumption the overlap margin
|
|
345
|
+
* already makes) with a radius a bit larger than that neighbor's own so
|
|
346
|
+
* a thin ring of true transparency survives around it. The radius is
|
|
347
|
+
* `calc((50 + 100 / var(--avatar-r)) * 1%)` — 50% is *this* avatar's own
|
|
348
|
+
* radius (from its own `size` variant, not from the group's `spacing`,
|
|
349
|
+
* so the notch stays correctly sized even if `spacing` and `size` don't
|
|
350
|
+
* match), `100 / r` a ~2px gap expressed as a percentage of its
|
|
351
|
+
* diameter. Must be a pure percentage, not `calc(50% + 2px)` — browsers
|
|
352
|
+
* reject a `%`+length `calc()` as a gradient's explicit circle/ellipse
|
|
353
|
+
* size (unlike almost everywhere else `<length-percentage>` is
|
|
354
|
+
* accepted), so an earlier draft mixing units here silently produced an
|
|
355
|
+
* invalid `mask-image` that just got dropped, with no visible error.
|
|
356
|
+
*
|
|
357
|
+
* - every other `radius`: a `mask-image: var(--avatar-notch-mask)` instead —
|
|
358
|
+
* a real rounded-rect *hole*, cut by a per-instance SVG `<mask>` this
|
|
359
|
+
* avatar renders for itself (see AvatarNotchMaskDefs above for the full
|
|
360
|
+
* rationale). A CSS gradient can only cut a circle/ellipse (hence the
|
|
361
|
+
* circle case above visibly curving away from a rounded-square avatar's
|
|
362
|
+
* flat edges — a corner-shaped gap instead of an edge-shaped one), and
|
|
363
|
+
* `clip-path` can only *keep* one shape, never subtract one — neither can
|
|
364
|
+
* express a rounded-rect hole directly. An SVG `<mask>` can: the hole
|
|
365
|
+
* `<rect>` is sized/positioned to match the *next* avatar's own box
|
|
366
|
+
* (assuming a same-size neighbor, the same "uniform stack" assumption the
|
|
367
|
+
* overlap margin already makes) expanded outward by a ~2px gap in every
|
|
368
|
+
* direction, with `rx`/`ry` = that neighbor's own corner radius + the
|
|
369
|
+
* same gap — so the hole's boundary is a true parallel offset of the next
|
|
370
|
+
* avatar's actual silhouette, not an approximation of it. (An earlier
|
|
371
|
+
* attempt just trimmed *this* avatar's own trailing edge with
|
|
372
|
+
* `clip-path: inset(... round ...)` — cheaper, no SVG needed — but that
|
|
373
|
+
* can only shape *this* avatar's own edge, blind to whatever curve the
|
|
374
|
+
* *next* avatar's corner actually traces at each height, so the gap
|
|
375
|
+
* between them didn't follow it: either two independently-rounded edges
|
|
376
|
+
* compounding into an oversized gap at the corner, or, if this avatar's
|
|
377
|
+
* own edge was flattened to avoid that, a straight cut that stayed a
|
|
378
|
+
* constant distance from the next avatar's *box* while that avatar's
|
|
379
|
+
* *rendered* corner receded away from it — reading as an inconsistent gap
|
|
380
|
+
* width rather than a clean ring. Only shaping the hole to match the
|
|
381
|
+
* neighbor's real silhouette avoids both failure modes.)
|
|
382
|
+
*
|
|
383
|
+
* `radius="full"` deliberately isn't handled this way — see the `radius`
|
|
384
|
+
* variant's own comment for why.
|
|
385
|
+
*
|
|
386
|
+
* Neither branch hardcodes a direction. Both place the hole one step of
|
|
387
|
+
* `2r - o` (diameter minus overlap) along the group's direction vector
|
|
388
|
+
* `--avatar-dx`/`--avatar-dy` (see AVATAR_GROUP_ORIENTATION below) — for the
|
|
389
|
+
* circle, `50% + d * (100 - o / (2r) * 100)%` on each axis, i.e. `150 - …`
|
|
390
|
+
* one way and `… - 50` the other. Physical positions (`at X% Y%`, the hole's
|
|
391
|
+
* `x`/`y`) don't flip with `dir` on their own the way the margin's logical
|
|
392
|
+
* `margin-inline-start` does, so rtl flips the vector instead of duplicating
|
|
393
|
+
* every rule with an `rtl:` copy.
|
|
394
|
+
*
|
|
395
|
+
* Both — like AVATAR_GROUP_ORIENTATION's classes below — have to be static string
|
|
396
|
+
* literals, not built from a template at runtime: Tailwind's build only
|
|
397
|
+
* generates CSS for class names it can find verbatim in the source text, so
|
|
398
|
+
* an interpolated/computed class name here would silently produce no
|
|
399
|
+
* styles either, even if every interpolated piece were itself constant.
|
|
400
|
+
*/
|
|
401
|
+
const AVATAR_GROUP_NOTCH = cn(
|
|
402
|
+
"[&>*:not(:last-child).rounded-full]:[mask-image:radial-gradient(ellipse_calc((50_+_100_/_var(--avatar-r))_*_1%)_calc((50_+_100_/_var(--avatar-r))_*_1%)_at_calc((50_+_var(--avatar-dx)_*_(100_-_var(--avatar-o)_/_(2_*_var(--avatar-r))_*_100))_*_1%)_calc((50_+_var(--avatar-dy)_*_(100_-_var(--avatar-o)_/_(2_*_var(--avatar-r))_*_100))_*_1%),transparent_100%,black_100%)]",
|
|
403
|
+
"[&>*:not(:last-child):not(.rounded-full)]:[mask-image:var(--avatar-notch-mask)]",
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
export type AvatarGroupOrientation = "horizontal" | "vertical"
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Everything that depends on which way the group stacks: its flex axis,
|
|
410
|
+
* every avatar but the first pulled back over the previous one by
|
|
411
|
+
* `--avatar-o` px along that axis, and where the next avatar sits as the unit
|
|
412
|
+
* vector `--avatar-dx`/`--avatar-dy` that AVATAR_GROUP_NOTCH and
|
|
413
|
+
* AvatarNotchMaskDefs read. Horizontal goes inline-forward, so `1, 0`,
|
|
414
|
+
* mirrored to `-1, 0` in rtl. Vertical goes down, `0, 1`, which `dir` doesn't
|
|
415
|
+
* affect.
|
|
416
|
+
*/
|
|
417
|
+
const AVATAR_GROUP_ORIENTATION: Record<AvatarGroupOrientation, string> = {
|
|
418
|
+
horizontal: cn(
|
|
419
|
+
"flex items-center",
|
|
420
|
+
"[&>*:not(:first-child)]:[margin-inline-start:calc(var(--avatar-o)*-1px)]",
|
|
421
|
+
"[--avatar-dx:1] rtl:[--avatar-dx:-1] [--avatar-dy:0]",
|
|
422
|
+
),
|
|
423
|
+
vertical: cn(
|
|
424
|
+
"flex flex-col items-center",
|
|
425
|
+
"[&>*:not(:first-child)]:[margin-block-start:calc(var(--avatar-o)*-1px)]",
|
|
426
|
+
"[--avatar-dx:0] [--avatar-dy:1]",
|
|
427
|
+
),
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type AvatarGroupProps = HTMLArkProps<"div"> &
|
|
431
|
+
WithTestId & {
|
|
432
|
+
/** Overlap amount between avatars — larger sizes overlap by more. */
|
|
433
|
+
spacing?: Size
|
|
434
|
+
/** Stack direction — a row (default) or a top-to-bottom column. */
|
|
435
|
+
orientation?: AvatarGroupOrientation
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
const AvatarGroup = ({
|
|
439
|
+
spacing = "md",
|
|
440
|
+
orientation = "horizontal",
|
|
441
|
+
className,
|
|
442
|
+
style,
|
|
443
|
+
testId,
|
|
444
|
+
...rest
|
|
445
|
+
}: AvatarGroupProps) => (
|
|
446
|
+
<ark.div
|
|
447
|
+
data-orientation={orientation}
|
|
448
|
+
className={cn(AVATAR_GROUP_ORIENTATION[orientation], AVATAR_GROUP_NOTCH, className)}
|
|
449
|
+
style={{ ...avatarGroupSpacingStyle(spacing), ...style }}
|
|
450
|
+
{...props({ "data-testid": testId })}
|
|
451
|
+
{...rest}
|
|
452
|
+
/>
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
/** `Avatar.Group` — see the doc comment above the `Avatar` component itself. */
|
|
456
|
+
export const Avatar = Object.assign(AvatarComponent, { Group: AvatarGroup })
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { render, screen } from "@testing-library/react"
|
|
2
|
+
import { describe, expect, it } from "vitest"
|
|
3
|
+
import { Badge } from "./badge"
|
|
4
|
+
|
|
5
|
+
describe("Badge", () => {
|
|
6
|
+
it("renders a non-focusable span by default", () => {
|
|
7
|
+
render(<Badge>12</Badge>)
|
|
8
|
+
const badge = screen.getByText("12")
|
|
9
|
+
expect(badge.tagName).toBe("SPAN")
|
|
10
|
+
expect(badge.getAttribute("tabindex")).toBeNull()
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
// The ring classes ride along unconditionally — inert here, since
|
|
14
|
+
// :focus-visible never matches a plain span — so that they're already in
|
|
15
|
+
// place when asChild turns the badge into a real control.
|
|
16
|
+
it("carries the kit's focus ring even as a plain span", () => {
|
|
17
|
+
render(<Badge>12</Badge>)
|
|
18
|
+
expect(screen.getByText("12").className).toContain("focus-visible:ring-brand-500")
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it("collapses onto an asChild button that is focusable and keeps the ring", () => {
|
|
22
|
+
render(
|
|
23
|
+
<Badge asChild variant="light" aria-label="12 campuses">
|
|
24
|
+
<button type="button">12</button>
|
|
25
|
+
</Badge>,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
const trigger = screen.getByRole("button", { name: "12 campuses" })
|
|
29
|
+
// One node, not a button wrapping a span: the badge *is* the trigger.
|
|
30
|
+
expect(trigger.querySelector("span")).toBeNull()
|
|
31
|
+
expect(trigger.className).toContain("focus-visible:ring-brand-500")
|
|
32
|
+
expect(trigger.className).toContain("focus-visible:ring-offset-2")
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it("writes data-color so the palette resolves, but leaves the ring alone", () => {
|
|
36
|
+
render(<Badge color="green">Validated</Badge>)
|
|
37
|
+
const badge = screen.getByText("Validated")
|
|
38
|
+
expect(badge.getAttribute("data-color")).toBe("green")
|
|
39
|
+
// Focus stays brand-500 regardless of palette — see focusStyles.
|
|
40
|
+
expect(badge.className).toContain("focus-visible:ring-brand-500")
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
it("omits data-color on the gradient variant", () => {
|
|
44
|
+
render(
|
|
45
|
+
<Badge variant="gradient" color="green">
|
|
46
|
+
Pro
|
|
47
|
+
</Badge>,
|
|
48
|
+
)
|
|
49
|
+
expect(screen.getByText("Pro").getAttribute("data-color")).toBeNull()
|
|
50
|
+
})
|
|
51
|
+
})
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { ark, type HTMLArkProps } from "@ark-ui/react"
|
|
2
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
|
+
import { cn } from "../../lib/cn"
|
|
4
|
+
import type { Color } from "../../lib/colors"
|
|
5
|
+
import { focusStyles } from "../../lib/focus-styles"
|
|
6
|
+
import {
|
|
7
|
+
buildGradientVars,
|
|
8
|
+
GRADIENT_DIR_CLASS,
|
|
9
|
+
type GradientDir,
|
|
10
|
+
type GradientProps,
|
|
11
|
+
} from "../../lib/gradient"
|
|
12
|
+
import { props } from "../../lib/props"
|
|
13
|
+
import type { WithTestId } from "../../lib/test-id"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Badge — compact inline label for a status, a count or a tag.
|
|
17
|
+
*
|
|
18
|
+
* Pure React Server Component. It borrows Button's (variant × color) system so
|
|
19
|
+
* a chip and an action speak the same accent language, but it is a display
|
|
20
|
+
* element: no hover treatment, no click handling, and it renders a `<span>`.
|
|
21
|
+
*
|
|
22
|
+
* `asChild` (from `HTMLArkProps`) renders the single child as the root with
|
|
23
|
+
* Badge's styling merged in, which is how a badge becomes a real control —
|
|
24
|
+
* either standalone or collapsed into another component's trigger:
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <HoverCard.Trigger asChild>
|
|
28
|
+
* <Badge asChild variant="light" aria-label="12 campuses">
|
|
29
|
+
* <button type="button">12</button>
|
|
30
|
+
* </Badge>
|
|
31
|
+
* </HoverCard.Trigger>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* That yields one DOM node that *is* the badge, keyboard-reachable, carrying
|
|
35
|
+
* the kit's focus ring (`focusStyles`) and Badge's own radius — the caller
|
|
36
|
+
* supplies no `className` for any of it.
|
|
37
|
+
*/
|
|
38
|
+
const badgeVariants = cva(
|
|
39
|
+
[
|
|
40
|
+
"inline-flex items-center",
|
|
41
|
+
"whitespace-nowrap select-none",
|
|
42
|
+
"font-sans font-medium",
|
|
43
|
+
"border border-transparent",
|
|
44
|
+
"[&_svg]:shrink-0 [&_svg]:pointer-events-none",
|
|
45
|
+
// Inert on the default non-focusable <span> — `:focus-visible` never
|
|
46
|
+
// matches it — and lights up as soon as `asChild` renders Badge onto a
|
|
47
|
+
// real <button>/<a>, which is the composition the docs recommend.
|
|
48
|
+
focusStyles(),
|
|
49
|
+
],
|
|
50
|
+
{
|
|
51
|
+
variants: {
|
|
52
|
+
variant: {
|
|
53
|
+
filled: "bg-(--c-solid) text-(--c-on-solid)",
|
|
54
|
+
// Neutral by default; a `data-color` tint overrides it. Those rules
|
|
55
|
+
// compile to `&[data-color]` (specificity 0,2,0), which beats both
|
|
56
|
+
// the plain and the `dark:` neutral classes below (0,1,0 — `dark:`
|
|
57
|
+
// is a `:where()` variant) regardless of source order.
|
|
58
|
+
//
|
|
59
|
+
// Figma (node 14950-143827) tints a hued badge with its solid shade
|
|
60
|
+
// at 30% and borders it with the solid shade itself. `--c-soft` is
|
|
61
|
+
// the wrong base for that: it is the -50/-950 end of the scale, so
|
|
62
|
+
// at any opacity it fades into the page in both themes. Neutral is
|
|
63
|
+
// the exception — Figma fills it with the translucent overlay that
|
|
64
|
+
// neutral's own `--c-soft` already is (white/16 dark, black/16
|
|
65
|
+
// light), so it takes that slot as-is.
|
|
66
|
+
light: [
|
|
67
|
+
"bg-black/8 dark:bg-white/16 text-gray-light-800 dark:text-gray-dark-100",
|
|
68
|
+
"border-black/8 dark:border-white/15",
|
|
69
|
+
"data-color:bg-(--c-solid)/30 data-color:text-(--c-text) data-color:border-(--c-solid)",
|
|
70
|
+
"data-[color=neutral]:bg-(--c-soft)",
|
|
71
|
+
],
|
|
72
|
+
outline: "bg-transparent text-(--c-text) border-(--c-solid)",
|
|
73
|
+
subtle: "bg-transparent text-(--c-text)",
|
|
74
|
+
// from-*/to-* are the CSS defaults for --tw-gradient-from/to and the
|
|
75
|
+
// --tw-gradient-stops composition chain. Props only override the individual
|
|
76
|
+
// vars they provide — the chain resolves them lazily without JS defaults.
|
|
77
|
+
gradient:
|
|
78
|
+
"bg-origin-border bg-linear-to-r from-purple-300 to-pink-400 text-black border-white/20",
|
|
79
|
+
},
|
|
80
|
+
// Figma (node 14950-143827) defines sm/md/lg; xs/xl extrapolate one
|
|
81
|
+
// step past either end. Radius follows Figma on every step
|
|
82
|
+
// (`rounded-badge`, 4px), as do md's height and padding. The rest of
|
|
83
|
+
// the scale departs from Figma on purpose (3b408c4c), so there the
|
|
84
|
+
// design catches up to the kit, not the reverse: sm is 12px text, 3px gap, 22px tall
|
|
85
|
+
// (Figma 10/4/20); md has a 6px gap (4); lg is 16px text, 8px gap,
|
|
86
|
+
// 8px padding (14/4/10). Icon size ([&_svg]:size-*) isn't in the
|
|
87
|
+
// Figma spec — scaled by eye to each step, same convention as
|
|
88
|
+
// Button's own size variant.
|
|
89
|
+
size: {
|
|
90
|
+
xs: "min-h-5 px-0.5 text-[10px] leading-2.5 gap-0.5 rounded-badge [&_svg]:size-2.5",
|
|
91
|
+
sm: "min-h-5.5 px-1 text-xs gap-0.75 rounded-badge [&_svg]:size-3",
|
|
92
|
+
md: "min-h-6 px-1.5 text-sm gap-1.5 rounded-badge [&_svg]:size-3",
|
|
93
|
+
lg: "min-h-7 px-2 text-md gap-2 rounded-badge [&_svg]:size-3.5",
|
|
94
|
+
xl: "min-h-8 px-2.5 text-lg gap-3.5 rounded-badge [&_svg]:size-4",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
variant: "light",
|
|
99
|
+
size: "md",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
export type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>["variant"]>
|
|
105
|
+
export type BadgeSize = NonNullable<VariantProps<typeof badgeVariants>["size"]>
|
|
106
|
+
|
|
107
|
+
export type { GradientDir, GradientProps }
|
|
108
|
+
|
|
109
|
+
export type BadgeProps = Omit<HTMLArkProps<"span">, "color"> &
|
|
110
|
+
VariantProps<typeof badgeVariants> &
|
|
111
|
+
WithTestId & {
|
|
112
|
+
/** Accent palette. Re-exported as `Color` from `@42/ui-react`. */
|
|
113
|
+
color?: Color
|
|
114
|
+
/**
|
|
115
|
+
* Gradient config. Only applied when `variant="gradient"`.
|
|
116
|
+
* Mirrors Tailwind's from-* / to-* / via-* utilities: sets the individual
|
|
117
|
+
* CSS vars so the existing --tw-gradient-stops chain picks them up.
|
|
118
|
+
* Unset fields fall back to the CVA defaults (purple-300 → pink-400, to-r).
|
|
119
|
+
*/
|
|
120
|
+
gradient?: GradientProps
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export const Badge = ({
|
|
124
|
+
className,
|
|
125
|
+
variant,
|
|
126
|
+
size,
|
|
127
|
+
color,
|
|
128
|
+
gradient,
|
|
129
|
+
style,
|
|
130
|
+
testId,
|
|
131
|
+
...rest
|
|
132
|
+
}: BadgeProps) => {
|
|
133
|
+
const isGradient = variant === "gradient"
|
|
134
|
+
|
|
135
|
+
return (
|
|
136
|
+
<ark.span
|
|
137
|
+
data-color={!isGradient ? color : undefined}
|
|
138
|
+
style={isGradient && gradient ? { ...buildGradientVars(gradient), ...style } : style}
|
|
139
|
+
className={cn(
|
|
140
|
+
badgeVariants({ variant, size }),
|
|
141
|
+
isGradient && gradient?.dir && GRADIENT_DIR_CLASS[gradient.dir],
|
|
142
|
+
className,
|
|
143
|
+
)}
|
|
144
|
+
{...props({ "data-testid": testId })}
|
|
145
|
+
{...rest}
|
|
146
|
+
/>
|
|
147
|
+
)
|
|
148
|
+
}
|