@42-central/ui-react 0.0.0-stage → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +454 -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-ACE7FBWE.js +216 -0
- package/dist/chunk-ACE7FBWE.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-PJL4ZL5V.js +639 -0
- package/dist/chunk-PJL4ZL5V.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TMMEJKLI.js +363 -0
- package/dist/chunk-TMMEJKLI.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +82 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6582 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +29 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +24 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +291 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +288 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +841 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1275 -0
- package/package.json +100 -4
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +125 -0
- package/src/components/alert/alert.tsx +158 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +403 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +517 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +306 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +209 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +181 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +721 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +277 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +157 -0
- package/src/components/schedule/schedule-event-chip.tsx +1176 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +461 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +153 -0
- package/src/components/schedule/schedule-grid-gesture.ts +567 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +688 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +136 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1609 -0
- package/src/components/schedule/schedule-toolbar.tsx +264 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1149 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +305 -0
- package/src/components/schedule/schedule.test.tsx +4268 -0
- package/src/components/schedule/schedule.tsx +1038 -0
- package/src/components/schedule/use-event-create.ts +590 -0
- package/src/components/schedule/use-event-drag.ts +504 -0
- package/src/components/schedule/use-event-resize.ts +563 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1275 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
package/src/theme.css
ADDED
|
@@ -0,0 +1,1275 @@
|
|
|
1
|
+
@import "./colors.css";
|
|
2
|
+
/* Wire Tailwind's `dark:` utilities to the `data-theme="dark"` attribute.
|
|
3
|
+
Consumers should toggle `data-theme` on `<html>` (next-themes can be
|
|
4
|
+
configured with `attribute={["class", "data-theme"]}` to set both). */
|
|
5
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
6
|
+
|
|
7
|
+
/* `static` forces every token to be emitted as a `:root` CSS variable even
|
|
8
|
+
when no utility references it. The kit's tokens are part of the public API —
|
|
9
|
+
consumers (and these docs) read `var(--color-lime-500)` directly — so they
|
|
10
|
+
must survive Tailwind v4's default usage-based tree-shaking of `@theme`. */
|
|
11
|
+
@theme static {
|
|
12
|
+
/* Breakpoints — add an `xs` below Tailwind's default `sm` (40rem) so
|
|
13
|
+
mobile-first tweaks (e.g. full-width bottom toasts) can target phones via
|
|
14
|
+
the `xs` / `max-xs` variants. */
|
|
15
|
+
--breakpoint-xs: 30rem;
|
|
16
|
+
|
|
17
|
+
/* ==========================================
|
|
18
|
+
COLORS
|
|
19
|
+
========================================== */
|
|
20
|
+
--color-white: #ffffff;
|
|
21
|
+
--color-black: #000000;
|
|
22
|
+
|
|
23
|
+
/* Gray Series (Light Mode) */
|
|
24
|
+
--color-gray-light-25: #fdfdfd;
|
|
25
|
+
--color-gray-light-50: #fafafa;
|
|
26
|
+
--color-gray-light-100: #f5f5f5;
|
|
27
|
+
--color-gray-light-200: #e9eaeb;
|
|
28
|
+
--color-gray-light-300: #d5d7da;
|
|
29
|
+
--color-gray-light-400: #a4a7ae;
|
|
30
|
+
--color-gray-light-500: #717680;
|
|
31
|
+
--color-gray-light-600: #535862;
|
|
32
|
+
--color-gray-light-700: #414651;
|
|
33
|
+
--color-gray-light-800: #252b37;
|
|
34
|
+
--color-gray-light-900: #181d27;
|
|
35
|
+
--color-gray-light-950: #0a0d12;
|
|
36
|
+
|
|
37
|
+
/* Gray Series (Dark Mode) */
|
|
38
|
+
--color-gray-dark-25: #fafafa;
|
|
39
|
+
--color-gray-dark-50: #f7f7f7;
|
|
40
|
+
--color-gray-dark-100: #f0f0f1;
|
|
41
|
+
--color-gray-dark-200: #ececed;
|
|
42
|
+
--color-gray-dark-300: #cecfd2;
|
|
43
|
+
--color-gray-dark-400: #94979c;
|
|
44
|
+
--color-gray-dark-500: #85888e;
|
|
45
|
+
--color-gray-dark-600: #61656c;
|
|
46
|
+
--color-gray-dark-700: #373a41;
|
|
47
|
+
--color-gray-dark-800: #22262f;
|
|
48
|
+
--color-gray-dark-900: #13161b;
|
|
49
|
+
--color-gray-dark-950: #0c0e12;
|
|
50
|
+
|
|
51
|
+
/* Gray Modern */
|
|
52
|
+
--color-gray-modern-25: #fcfcfd;
|
|
53
|
+
--color-gray-modern-50: #f8fafc;
|
|
54
|
+
--color-gray-modern-100: #eef2f6;
|
|
55
|
+
--color-gray-modern-200: #e3e8ef;
|
|
56
|
+
--color-gray-modern-300: #cdd5df;
|
|
57
|
+
--color-gray-modern-400: #9aa4b2;
|
|
58
|
+
--color-gray-modern-500: #697586;
|
|
59
|
+
--color-gray-modern-600: #4b5565;
|
|
60
|
+
--color-gray-modern-700: #364152;
|
|
61
|
+
--color-gray-modern-800: #202939;
|
|
62
|
+
--color-gray-modern-900: #121926;
|
|
63
|
+
--color-gray-modern-950: #0d121c;
|
|
64
|
+
|
|
65
|
+
/* Gray Blue */
|
|
66
|
+
--color-gray-blue-25: #fcfcfd;
|
|
67
|
+
--color-gray-blue-50: #f8f9fc;
|
|
68
|
+
--color-gray-blue-100: #eaecf5;
|
|
69
|
+
--color-gray-blue-200: #d5d9eb;
|
|
70
|
+
--color-gray-blue-300: #b3b8db;
|
|
71
|
+
--color-gray-blue-400: #717bbc;
|
|
72
|
+
--color-gray-blue-500: #4e5ba6;
|
|
73
|
+
--color-gray-blue-600: #3e4784;
|
|
74
|
+
--color-gray-blue-700: #363f72;
|
|
75
|
+
--color-gray-blue-800: #293056;
|
|
76
|
+
--color-gray-blue-900: #101323;
|
|
77
|
+
--color-gray-blue-950: #0d0f1c;
|
|
78
|
+
|
|
79
|
+
/* Gray True */
|
|
80
|
+
--color-gray-true-25: #fcfcfc;
|
|
81
|
+
--color-gray-true-50: #f7f7f7;
|
|
82
|
+
--color-gray-true-100: #f5f5f5;
|
|
83
|
+
--color-gray-true-200: #e5e5e5;
|
|
84
|
+
--color-gray-true-300: #d6d6d6;
|
|
85
|
+
--color-gray-true-400: #a3a3a3;
|
|
86
|
+
--color-gray-true-500: #737373;
|
|
87
|
+
--color-gray-true-600: #525252;
|
|
88
|
+
--color-gray-true-700: #424242;
|
|
89
|
+
--color-gray-true-800: #292929;
|
|
90
|
+
--color-gray-true-900: #141414;
|
|
91
|
+
--color-gray-true-950: #0f0f0f;
|
|
92
|
+
|
|
93
|
+
/* Brand */
|
|
94
|
+
--color-brand-25: #f4f7ff;
|
|
95
|
+
--color-brand-50: #edf2ff;
|
|
96
|
+
--color-brand-100: #e6edff;
|
|
97
|
+
--color-brand-200: #d0deff;
|
|
98
|
+
--color-brand-300: #b8cdff;
|
|
99
|
+
--color-brand-400: #92b0fa;
|
|
100
|
+
--color-brand-500: #6388e3;
|
|
101
|
+
--color-brand-600: #4d6fc3;
|
|
102
|
+
--color-brand-700: #365399;
|
|
103
|
+
--color-brand-800: #233970;
|
|
104
|
+
--color-brand-900: #0a1e41;
|
|
105
|
+
--color-brand-950: #030d20;
|
|
106
|
+
|
|
107
|
+
/* Red */
|
|
108
|
+
--color-red-25: #fffbfa;
|
|
109
|
+
--color-red-50: #fef3f2;
|
|
110
|
+
--color-red-100: #fee4e2;
|
|
111
|
+
--color-red-200: #fecdca;
|
|
112
|
+
--color-red-300: #fda29b;
|
|
113
|
+
--color-red-400: #f97066;
|
|
114
|
+
--color-red-500: #ff4e41;
|
|
115
|
+
--color-red-600: #d92d20;
|
|
116
|
+
--color-red-700: #b42318;
|
|
117
|
+
--color-red-800: #912018;
|
|
118
|
+
--color-red-900: #7a271a;
|
|
119
|
+
--color-red-950: #55160c;
|
|
120
|
+
|
|
121
|
+
/* Orange */
|
|
122
|
+
--color-orange-25: #fefaf5;
|
|
123
|
+
--color-orange-50: #fef6ee;
|
|
124
|
+
--color-orange-100: #fdead7;
|
|
125
|
+
--color-orange-200: #f9dbaf;
|
|
126
|
+
--color-orange-300: #f7b27a;
|
|
127
|
+
--color-orange-400: #f38744;
|
|
128
|
+
--color-orange-500: #ef6820;
|
|
129
|
+
--color-orange-600: #e04f16;
|
|
130
|
+
--color-orange-700: #b93815;
|
|
131
|
+
--color-orange-800: #932f19;
|
|
132
|
+
--color-orange-900: #772917;
|
|
133
|
+
--color-orange-950: #511c10;
|
|
134
|
+
|
|
135
|
+
/* Yellow */
|
|
136
|
+
--color-yellow-25: #fefdf0;
|
|
137
|
+
--color-yellow-50: #fefbe8;
|
|
138
|
+
--color-yellow-100: #fef7c3;
|
|
139
|
+
--color-yellow-200: #feee95;
|
|
140
|
+
--color-yellow-300: #fde272;
|
|
141
|
+
--color-yellow-400: #fac515;
|
|
142
|
+
--color-yellow-500: #eaaa08;
|
|
143
|
+
--color-yellow-600: #ca8504;
|
|
144
|
+
--color-yellow-700: #a15c07;
|
|
145
|
+
--color-yellow-800: #854a0e;
|
|
146
|
+
--color-yellow-900: #713b12;
|
|
147
|
+
--color-yellow-950: #542c0d;
|
|
148
|
+
|
|
149
|
+
/* Lime */
|
|
150
|
+
--color-lime-25: #fafef5;
|
|
151
|
+
--color-lime-50: #f3fee7;
|
|
152
|
+
--color-lime-100: #e3fbcc;
|
|
153
|
+
--color-lime-200: #d0f8ab;
|
|
154
|
+
--color-lime-300: #a6ef67;
|
|
155
|
+
--color-lime-400: #85e13a;
|
|
156
|
+
--color-lime-500: #66c61c;
|
|
157
|
+
--color-lime-600: #4ca30d;
|
|
158
|
+
--color-lime-700: #3b7c0f;
|
|
159
|
+
--color-lime-800: #326212;
|
|
160
|
+
--color-lime-900: #2b5314;
|
|
161
|
+
--color-lime-950: #15290a;
|
|
162
|
+
|
|
163
|
+
/* Green */
|
|
164
|
+
--color-green-25: #f6fef9;
|
|
165
|
+
--color-green-50: #edfcf2;
|
|
166
|
+
--color-green-100: #d3f8df;
|
|
167
|
+
--color-green-200: #aaf0c4;
|
|
168
|
+
--color-green-300: #73e2a3;
|
|
169
|
+
--color-green-400: #3ccb7f;
|
|
170
|
+
--color-green-500: #17b26a;
|
|
171
|
+
--color-green-600: #079455;
|
|
172
|
+
--color-green-700: #067647;
|
|
173
|
+
--color-green-800: #095c37;
|
|
174
|
+
--color-green-900: #084c2e;
|
|
175
|
+
--color-green-950: #052e1c;
|
|
176
|
+
|
|
177
|
+
/* Teal */
|
|
178
|
+
--color-teal-25: #f6fefc;
|
|
179
|
+
--color-teal-50: #f0fdf9;
|
|
180
|
+
--color-teal-100: #ccfbef;
|
|
181
|
+
--color-teal-200: #99f6e0;
|
|
182
|
+
--color-teal-300: #5fe9d0;
|
|
183
|
+
--color-teal-400: #2ed3b7;
|
|
184
|
+
--color-teal-500: #15b79e;
|
|
185
|
+
--color-teal-600: #0e9384;
|
|
186
|
+
--color-teal-700: #107569;
|
|
187
|
+
--color-teal-800: #125d56;
|
|
188
|
+
--color-teal-900: #134e48;
|
|
189
|
+
--color-teal-950: #0a2926;
|
|
190
|
+
|
|
191
|
+
/* Cyan */
|
|
192
|
+
--color-cyan-25: #f5feff;
|
|
193
|
+
--color-cyan-50: #ecfdff;
|
|
194
|
+
--color-cyan-100: #cff9fe;
|
|
195
|
+
--color-cyan-200: #a5f0fc;
|
|
196
|
+
--color-cyan-300: #67e3f9;
|
|
197
|
+
--color-cyan-400: #22ccee;
|
|
198
|
+
--color-cyan-500: #06aed4;
|
|
199
|
+
--color-cyan-600: #088ab2;
|
|
200
|
+
--color-cyan-700: #0e7090;
|
|
201
|
+
--color-cyan-800: #155b75;
|
|
202
|
+
--color-cyan-900: #164c63;
|
|
203
|
+
--color-cyan-950: #0d2d3a;
|
|
204
|
+
|
|
205
|
+
/* Blue */
|
|
206
|
+
--color-blue-25: #f5faff;
|
|
207
|
+
--color-blue-50: #eff8ff;
|
|
208
|
+
--color-blue-100: #d1e9ff;
|
|
209
|
+
--color-blue-200: #b2ddff;
|
|
210
|
+
--color-blue-300: #84caff;
|
|
211
|
+
--color-blue-400: #53b1fd;
|
|
212
|
+
--color-blue-500: #2e90fa;
|
|
213
|
+
--color-blue-600: #1570ef;
|
|
214
|
+
--color-blue-700: #175cd3;
|
|
215
|
+
--color-blue-800: #1849a9;
|
|
216
|
+
--color-blue-900: #194185;
|
|
217
|
+
--color-blue-950: #102a56;
|
|
218
|
+
|
|
219
|
+
/* Purple */
|
|
220
|
+
--color-purple-25: #fafaff;
|
|
221
|
+
--color-purple-50: #f4f3ff;
|
|
222
|
+
--color-purple-100: #ebe9fe;
|
|
223
|
+
--color-purple-200: #d9d6fe;
|
|
224
|
+
--color-purple-300: #bdb4fe;
|
|
225
|
+
--color-purple-400: #9b8afb;
|
|
226
|
+
--color-purple-500: #7a5af8;
|
|
227
|
+
--color-purple-600: #6938ef;
|
|
228
|
+
--color-purple-700: #5925dc;
|
|
229
|
+
--color-purple-800: #4a1fb8;
|
|
230
|
+
--color-purple-900: #3e1c96;
|
|
231
|
+
--color-purple-950: #27115f;
|
|
232
|
+
|
|
233
|
+
/* Pink */
|
|
234
|
+
--color-pink-25: #fef6fb;
|
|
235
|
+
--color-pink-50: #fdf2fa;
|
|
236
|
+
--color-pink-100: #fce7f6;
|
|
237
|
+
--color-pink-200: #fcceee;
|
|
238
|
+
--color-pink-300: #faa7e0;
|
|
239
|
+
--color-pink-400: #f670c7;
|
|
240
|
+
--color-pink-500: #ee46bc;
|
|
241
|
+
--color-pink-600: #dd2590;
|
|
242
|
+
--color-pink-700: #c11574;
|
|
243
|
+
--color-pink-800: #9e165f;
|
|
244
|
+
--color-pink-900: #851651;
|
|
245
|
+
--color-pink-950: #4e0d30;
|
|
246
|
+
|
|
247
|
+
/* Rose */
|
|
248
|
+
--color-rose-25: #fff5f6;
|
|
249
|
+
--color-rose-50: #fff1f3;
|
|
250
|
+
--color-rose-100: #ffe4e8;
|
|
251
|
+
--color-rose-200: #fecdd6;
|
|
252
|
+
--color-rose-300: #fea3b4;
|
|
253
|
+
--color-rose-400: #fd6f8e;
|
|
254
|
+
--color-rose-500: #f63d68;
|
|
255
|
+
--color-rose-600: #e31b54;
|
|
256
|
+
--color-rose-700: #c01048;
|
|
257
|
+
--color-rose-800: #a11043;
|
|
258
|
+
--color-rose-900: #89123e;
|
|
259
|
+
--color-rose-950: #510b24;
|
|
260
|
+
|
|
261
|
+
/* ==========================================
|
|
262
|
+
BORDER RADIUS
|
|
263
|
+
========================================== */
|
|
264
|
+
--radius-none: 0rem;
|
|
265
|
+
--radius-xxs: 0.125rem; /* 2px */
|
|
266
|
+
--radius-xs: 0.25rem; /* 4px */
|
|
267
|
+
--radius-sm: 0.375rem; /* 6px */
|
|
268
|
+
--radius-md: 0.5rem; /* 8px */
|
|
269
|
+
--radius-lg: 0.625rem; /* 10px */
|
|
270
|
+
--radius-xl: 0.75rem; /* 12px */
|
|
271
|
+
--radius-2xl: 1rem; /* 16px */
|
|
272
|
+
--radius-3xl: 1.25rem; /* 20px */
|
|
273
|
+
--radius-4xl: 1.5rem; /* 24px */
|
|
274
|
+
--radius-full: 999px; /* Try not to put it too high as animations tends to break */
|
|
275
|
+
|
|
276
|
+
/* Per-component default radius — override at `:root` to retheme without
|
|
277
|
+
touching component code. Tailwind v4 generates matching utilities
|
|
278
|
+
(`rounded-button`, `rounded-action-icon`, …) from these tokens. */
|
|
279
|
+
--radius-button: var(--radius-xs); /* 4px — matches the 42 UI Kit Figma exactly */
|
|
280
|
+
--radius-action-icon: var(--radius-xs);
|
|
281
|
+
--radius-badge: var(--radius-xs);
|
|
282
|
+
--radius-card: var(--radius-sm);
|
|
283
|
+
--radius-input: var(--radius-xs);
|
|
284
|
+
--radius-pill: var(--radius-xs);
|
|
285
|
+
|
|
286
|
+
/* ==========================================
|
|
287
|
+
WIDTH DEFINITIONS
|
|
288
|
+
========================================== */
|
|
289
|
+
--width-xxs: 20rem; /* 320px */
|
|
290
|
+
--width-xs: 24rem; /* 384px */
|
|
291
|
+
--width-sm: 30rem; /* 480px */
|
|
292
|
+
--width-md: 35rem; /* 560px */
|
|
293
|
+
--width-lg: 40rem; /* 640px */
|
|
294
|
+
--width-xl: 48rem; /* 768px */
|
|
295
|
+
--width-2xl: 64rem; /* 1024px */
|
|
296
|
+
--width-3xl: 80rem; /* 1280px */
|
|
297
|
+
--width-4xl: 90rem; /* 1440px */
|
|
298
|
+
--width-5xl: 100rem; /* 1600px */
|
|
299
|
+
--width-6xl: 120rem; /* 1920px */
|
|
300
|
+
--max-width-paragraph: 45rem; /* 720px */
|
|
301
|
+
|
|
302
|
+
/* ==========================================
|
|
303
|
+
TYPOGRAPHY (FONTS, SIZES, WEIGHTS)
|
|
304
|
+
========================================== */
|
|
305
|
+
/* Font Family Definitions
|
|
306
|
+
Lato for prose; Kode Mono is the kit's second voice — headings and the
|
|
307
|
+
short labels of `Button` / `Badge` / `ActionIcon`. Override the values to
|
|
308
|
+
retheme; the components reach for `font-sans` / `font-mono` only. */
|
|
309
|
+
--font-sans: "Lato", sans-serif;
|
|
310
|
+
--font-mono: "Kode Mono", monospace;
|
|
311
|
+
|
|
312
|
+
/* Font Weights */
|
|
313
|
+
--font-style-regular: 400;
|
|
314
|
+
--font-style-medium: 500;
|
|
315
|
+
--font-style-semibold: 600;
|
|
316
|
+
--font-style-bold: 700;
|
|
317
|
+
|
|
318
|
+
/* Font Sizes */
|
|
319
|
+
--text-xs: 0.75rem; /* 12px */
|
|
320
|
+
--text-sm: 0.875rem; /* 14px */
|
|
321
|
+
--text-md: 1rem; /* 16px */
|
|
322
|
+
--text-lg: 1.125rem; /* 18px */
|
|
323
|
+
--text-xl: 1.25rem; /* 20px */
|
|
324
|
+
--text-display-xs: 1.5rem; /* 24px */
|
|
325
|
+
--text-display-sm: 1.875rem; /* 30px */
|
|
326
|
+
--text-display-md: 2.25rem; /* 36px */
|
|
327
|
+
--text-display-lg: 3rem; /* 48px */
|
|
328
|
+
--text-display-xl: 3.75rem; /* 60px */
|
|
329
|
+
--text-display-2xl: 4.5rem; /* 72px */
|
|
330
|
+
|
|
331
|
+
/* Line Heights */
|
|
332
|
+
--line-height-text-xs: 1.125rem; /* 18px */
|
|
333
|
+
--line-height-text-sm: 1.25rem; /* 20px */
|
|
334
|
+
--line-height-text-md: 1.5rem; /* 24px */
|
|
335
|
+
--line-height-text-lg: 1.75rem; /* 28px */
|
|
336
|
+
--line-height-text-xl: 1.875rem; /* 30px */
|
|
337
|
+
--line-height-display-xs: 2rem; /* 32px */
|
|
338
|
+
--line-height-display-sm: 2.375rem; /* 38px */
|
|
339
|
+
--line-height-display-md: 2.75rem; /* 44px */
|
|
340
|
+
--line-height-display-lg: 3.75rem; /* 60px */
|
|
341
|
+
--line-height-display-xl: 4.5rem; /* 72px */
|
|
342
|
+
--line-height-display-2xl: 5.625rem; /* 90px */
|
|
343
|
+
|
|
344
|
+
/* ==========================================
|
|
345
|
+
LAYOUT CONTAINERS
|
|
346
|
+
========================================== */
|
|
347
|
+
--container-padding-mobile: 1rem; /* 16px */
|
|
348
|
+
--container-padding-desktop: 2rem; /* 32px */
|
|
349
|
+
--container-max-width-desktop: 80rem; /* 1280px */
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* ==========================================
|
|
353
|
+
OVERLAY ANIMATIONS (Modal + Drawer)
|
|
354
|
+
==========================================
|
|
355
|
+
Ark sets `data-state="open" | "closed"` on the backdrop/content; the kit's
|
|
356
|
+
`data-[state=…]:animate-*` utilities reference these tokens. Exit animations
|
|
357
|
+
use `forwards` so the element holds its final (hidden) frame until Ark's
|
|
358
|
+
presence machine unmounts it on `animationend`. Registered as a second
|
|
359
|
+
`@theme static` block — Tailwind v4 merges theme blocks. */
|
|
360
|
+
@theme static {
|
|
361
|
+
--animate-fade-in: fade-in 200ms ease-out;
|
|
362
|
+
--animate-fade-out: fade-out 150ms ease-in forwards;
|
|
363
|
+
--animate-modal-in: modal-in 150ms cubic-bezier(0.18, -0.04, 0.55, 1);
|
|
364
|
+
--animate-modal-out: modal-out 130ms ease-in forwards;
|
|
365
|
+
--animate-drawer-in: drawer-in 180ms cubic-bezier(0.18, -0.04, 0.55, 1);
|
|
366
|
+
--animate-drawer-out: drawer-out 150ms ease-in forwards;
|
|
367
|
+
--animate-popover-in: popover-in 100ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
368
|
+
--animate-popover-out: popover-out 90ms ease-in forwards;
|
|
369
|
+
--animate-toast-in: toast-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
370
|
+
--animate-toast-out: toast-out 150ms ease-in forwards;
|
|
371
|
+
--animate-schedule-chip-in: schedule-chip-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
372
|
+
--animate-schedule-chip-out: schedule-chip-out 140ms ease-in forwards;
|
|
373
|
+
--animate-schedule-page-enter: schedule-page-enter 220ms cubic-bezier(0.18, -0.04, 0.55, 1);
|
|
374
|
+
--animate-schedule-page-leave: schedule-page-leave 220ms cubic-bezier(0.18, -0.04, 0.55, 1)
|
|
375
|
+
forwards;
|
|
376
|
+
--animate-progress-indeterminate: progress-indeterminate 1.5s ease-in-out infinite;
|
|
377
|
+
--animate-progress-spin: progress-spin 0.9s linear infinite;
|
|
378
|
+
--animate-rating-pop: rating-pop 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
*,
|
|
382
|
+
:root {
|
|
383
|
+
--tw-scrollbar-thumb: color-mix(in oklab, var(--color-gray-light-300) 60%, transparent);
|
|
384
|
+
--tw-scrollbar-track: transparent;
|
|
385
|
+
scrollbar-color: var(--tw-scrollbar-thumb) var(--tw-scrollbar-track);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
@media (hover: hover) {
|
|
389
|
+
:is(*, :root):hover {
|
|
390
|
+
--tw-scrollbar-thumb: var(--color-gray-light-300);
|
|
391
|
+
scrollbar-color: var(--tw-scrollbar-thumb) var(--tw-scrollbar-track);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
396
|
+
:is(*, :root):where([data-theme="dark"], [data-theme="dark"] *) {
|
|
397
|
+
--tw-scrollbar-thumb: color-mix(in oklab, var(--color-gray-dark-500) 60%, transparent);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:is(*, :root):where([data-theme="dark"], [data-theme="dark"] *) {
|
|
402
|
+
scrollbar-color: var(--tw-scrollbar-thumb) var(--tw-scrollbar-track);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
@media (hover: hover) {
|
|
406
|
+
:is(*, :root):where([data-theme="dark"], [data-theme="dark"] *):hover {
|
|
407
|
+
--tw-scrollbar-thumb: var(--color-gray-dark-500);
|
|
408
|
+
scrollbar-color: var(--tw-scrollbar-thumb) var(--tw-scrollbar-track);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* Default body text color — matches Figma's text-primary tier (same values
|
|
413
|
+
as Title). Without this, unstyled text (including Text's `default` shade,
|
|
414
|
+
which intentionally has no color class of its own) inherits the browser's
|
|
415
|
+
plain black in both themes and goes near-invisible in dark mode. */
|
|
416
|
+
body {
|
|
417
|
+
color: var(--color-gray-light-900);
|
|
418
|
+
}
|
|
419
|
+
[data-theme="dark"] body {
|
|
420
|
+
color: var(--color-gray-dark-50);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@keyframes fade-in {
|
|
424
|
+
from {
|
|
425
|
+
opacity: 0;
|
|
426
|
+
}
|
|
427
|
+
to {
|
|
428
|
+
opacity: 1;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
@keyframes fade-out {
|
|
432
|
+
from {
|
|
433
|
+
opacity: 1;
|
|
434
|
+
}
|
|
435
|
+
to {
|
|
436
|
+
opacity: 0;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
@keyframes modal-in {
|
|
440
|
+
from {
|
|
441
|
+
opacity: 0;
|
|
442
|
+
transform: scale(0.96) translateY(100%);
|
|
443
|
+
}
|
|
444
|
+
to {
|
|
445
|
+
opacity: 1;
|
|
446
|
+
transform: none;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
@keyframes modal-out {
|
|
450
|
+
from {
|
|
451
|
+
opacity: 1;
|
|
452
|
+
transform: none;
|
|
453
|
+
}
|
|
454
|
+
to {
|
|
455
|
+
opacity: 0;
|
|
456
|
+
transform: scale(0.97) translateY(100%);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Popover pop — scales from the edge nearest the trigger (`transform-origin`
|
|
461
|
+
is set per `data-placement` on the panel), so it grows out of the control. */
|
|
462
|
+
@keyframes popover-in {
|
|
463
|
+
from {
|
|
464
|
+
opacity: 0;
|
|
465
|
+
transform: scale(0.96);
|
|
466
|
+
}
|
|
467
|
+
to {
|
|
468
|
+
opacity: 1;
|
|
469
|
+
transform: none;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
@keyframes popover-out {
|
|
473
|
+
from {
|
|
474
|
+
opacity: 1;
|
|
475
|
+
transform: none;
|
|
476
|
+
}
|
|
477
|
+
to {
|
|
478
|
+
opacity: 0;
|
|
479
|
+
transform: scale(0.98);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* Event chip create/remove pop. `-in` deliberately has no `forwards`: once it
|
|
484
|
+
finishes, the chip's `transform` falls back to `chipShell`'s always-on
|
|
485
|
+
drag-offset utility instead of freezing at `transform: none`. `-out` keeps
|
|
486
|
+
`forwards` so the chip holds its faded/shrunk frame for the one extra
|
|
487
|
+
render between Ark Presence's `animationend` and the consumer actually
|
|
488
|
+
dropping the event from `data`. */
|
|
489
|
+
@keyframes schedule-chip-in {
|
|
490
|
+
from {
|
|
491
|
+
opacity: 0;
|
|
492
|
+
transform: scale(0.92);
|
|
493
|
+
}
|
|
494
|
+
to {
|
|
495
|
+
opacity: 1;
|
|
496
|
+
transform: none;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
@keyframes schedule-chip-out {
|
|
500
|
+
from {
|
|
501
|
+
opacity: 1;
|
|
502
|
+
transform: none;
|
|
503
|
+
}
|
|
504
|
+
to {
|
|
505
|
+
opacity: 0;
|
|
506
|
+
transform: scale(0.92);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* Day-band pagination — `schedule-timed-grid.tsx`. Shares `Drawer`'s curve
|
|
511
|
+
rather than the `cubic-bezier(0.16, 1, 0.3, 1)` the chip/popover entrances
|
|
512
|
+
use: that one is an expo-out tuned for a *small* transform (a chip scaling
|
|
513
|
+
0.92 -> 1), and over a whole band's width it front-loads so hard that the
|
|
514
|
+
travel is 80% done in 32ms and the slide reads as a snap. `Drawer` is the
|
|
515
|
+
kit's existing large-translation motion, and this is the same kind of move.
|
|
516
|
+
|
|
517
|
+
Only the band travels (day
|
|
518
|
+
headers, all-day bars, day columns); the hour gutter, the gridlines and the
|
|
519
|
+
now-cursor are outside the animated set and stay put by construction, which
|
|
520
|
+
is what makes a page turn read as the days moving rather than the whole view
|
|
521
|
+
lurching.
|
|
522
|
+
|
|
523
|
+
`--sch-page-from`/`--sch-page-to` are written on the grid for the duration of
|
|
524
|
+
one page turn — the same trick `--toast-from` uses below. They carry a real
|
|
525
|
+
px length rather than a percentage on purpose: the band is made of elements
|
|
526
|
+
of *different* widths (an all-day bar can span several columns), and a
|
|
527
|
+
percentage would resolve against each element's own box, so the wide ones
|
|
528
|
+
would overshoot. One measured length moves every piece in lockstep. */
|
|
529
|
+
@keyframes schedule-page-enter {
|
|
530
|
+
from {
|
|
531
|
+
transform: translateX(var(--sch-page-from, 0px));
|
|
532
|
+
}
|
|
533
|
+
to {
|
|
534
|
+
transform: none;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
@keyframes schedule-page-leave {
|
|
538
|
+
from {
|
|
539
|
+
transform: none;
|
|
540
|
+
}
|
|
541
|
+
to {
|
|
542
|
+
transform: translateX(var(--sch-page-to, 0px));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* Toast enter/exit — slides from the anchored edge (`--toast-from` is set on the
|
|
547
|
+
region: +100% for bottom placements, -100% for top). Uses `transform` so it
|
|
548
|
+
composes with the stacking `translate`/`scale` properties. Exit uses
|
|
549
|
+
`forwards` so it holds the hidden frame until Presence unmounts on
|
|
550
|
+
`animationend`. */
|
|
551
|
+
@keyframes toast-in {
|
|
552
|
+
from {
|
|
553
|
+
opacity: 0;
|
|
554
|
+
transform: translateY(var(--toast-from, 100%)) scale(0.96);
|
|
555
|
+
}
|
|
556
|
+
to {
|
|
557
|
+
opacity: 1;
|
|
558
|
+
transform: translateY(0) scale(1);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
@keyframes toast-out {
|
|
562
|
+
/* `opacity` is intentionally omitted from `from`: CSS then synthesizes the
|
|
563
|
+
start frame from the element's *underlying* opacity (`--swipe-opacity`), so
|
|
564
|
+
a swipe-dismissed toast keeps fading from wherever the drag left it (e.g.
|
|
565
|
+
0.3) instead of blinking back to 1 before fading. A button/auto dismiss
|
|
566
|
+
still starts at 1 (the var's default). */
|
|
567
|
+
from {
|
|
568
|
+
transform: translateY(0) scale(1);
|
|
569
|
+
}
|
|
570
|
+
to {
|
|
571
|
+
opacity: 0;
|
|
572
|
+
transform: translateY(var(--toast-from, 100%)) scale(0.9);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* Indeterminate progress sweep — a partial bar (Range pinned to `w-2/5`) slides
|
|
577
|
+
across the track. The track's `overflow-x-clip` hides it at the edges. The
|
|
578
|
+
sweep is symmetric (off-screen left → off-screen right), so it reads the same
|
|
579
|
+
under `dir="rtl"` without a direction-specific keyframe. */
|
|
580
|
+
@keyframes progress-indeterminate {
|
|
581
|
+
0% {
|
|
582
|
+
transform: translateX(-100%);
|
|
583
|
+
}
|
|
584
|
+
100% {
|
|
585
|
+
transform: translateX(350%);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* Indeterminate circular progress: a fixed arc rotates continuously (same
|
|
590
|
+
family as Spinner's `animate-spin`, but its own token so reduced-motion can
|
|
591
|
+
disable just this one). */
|
|
592
|
+
@keyframes progress-spin {
|
|
593
|
+
from {
|
|
594
|
+
transform: rotate(0deg);
|
|
595
|
+
}
|
|
596
|
+
to {
|
|
597
|
+
transform: rotate(360deg);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/* Rating's selection "pop" — a brief overshoot scale on the symbol that just
|
|
602
|
+
became checked (a real click/keyboard commit, not the hover preview).
|
|
603
|
+
Not `forwards`/presence-driven like the overlay pairs above: it always
|
|
604
|
+
plays to completion and settles back at `scale(1)`, so `motion-reduce:` on
|
|
605
|
+
the utility class (see `rating.tsx`) is enough on its own — no global
|
|
606
|
+
reduced-motion override needed here. */
|
|
607
|
+
@keyframes rating-pop {
|
|
608
|
+
0% {
|
|
609
|
+
transform: scale(1);
|
|
610
|
+
}
|
|
611
|
+
45% {
|
|
612
|
+
transform: scale(1.2);
|
|
613
|
+
}
|
|
614
|
+
100% {
|
|
615
|
+
transform: scale(1);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* A single keyframe pair covers all four drawer edges: the off-screen start
|
|
620
|
+
frame is parameterised by `--drawer-from`, set per `data-placement` below
|
|
621
|
+
(RTL-aware — `start`/`end` flip under `dir="rtl"`). */
|
|
622
|
+
@keyframes drawer-in {
|
|
623
|
+
from {
|
|
624
|
+
opacity: 0.4;
|
|
625
|
+
transform: var(--drawer-from);
|
|
626
|
+
}
|
|
627
|
+
to {
|
|
628
|
+
opacity: 1;
|
|
629
|
+
transform: none;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
@keyframes drawer-out {
|
|
633
|
+
from {
|
|
634
|
+
opacity: 1;
|
|
635
|
+
/* No transform here as it will break the gesture with grabber */
|
|
636
|
+
}
|
|
637
|
+
to {
|
|
638
|
+
opacity: 0;
|
|
639
|
+
transform: var(--drawer-from);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
[data-placement="start"] {
|
|
644
|
+
--drawer-from: translateX(-100%);
|
|
645
|
+
}
|
|
646
|
+
[data-placement="end"] {
|
|
647
|
+
--drawer-from: translateX(100%);
|
|
648
|
+
}
|
|
649
|
+
[data-placement="top"] {
|
|
650
|
+
--drawer-from: translateY(-100%);
|
|
651
|
+
--modal-from: translateY(-100%);
|
|
652
|
+
}
|
|
653
|
+
[data-placement="bottom"] {
|
|
654
|
+
--drawer-from: translateY(100%);
|
|
655
|
+
--modal-from: translateY(100%);
|
|
656
|
+
}
|
|
657
|
+
[dir="rtl"] [data-placement="start"] {
|
|
658
|
+
--drawer-from: translateX(100%);
|
|
659
|
+
}
|
|
660
|
+
[dir="rtl"] [data-placement="end"] {
|
|
661
|
+
--drawer-from: translateX(-100%);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* Respect reduced-motion: collapse enter/exit to a 1ms opacity tween so the
|
|
665
|
+
presence machine still fires `animationend` (and overlays still unmount).
|
|
666
|
+
|
|
667
|
+
These selectors match on a *substring* of the `class` attribute
|
|
668
|
+
(`[class*="…"]`) rather than a bare `.animate-*` class selector. Every one
|
|
669
|
+
of these utilities is applied in JSX as part of a Tailwind variant-compound
|
|
670
|
+
token — e.g. `data-[state=open]:animate-popover-in` — and Tailwind v4 does
|
|
671
|
+
NOT rewrite that into a plain `animate-popover-in` class at runtime: the
|
|
672
|
+
literal class attribute value on the element is the whole compound string,
|
|
673
|
+
compiled against a selector like
|
|
674
|
+
`[data-state="open"].data-\[state\=open\]\:animate-popover-in`. A bare
|
|
675
|
+
`.animate-popover-in` selector never matches that token (the escaped
|
|
676
|
+
compound class name is a different literal string), so it has to match a
|
|
677
|
+
substring of the attribute value instead.
|
|
678
|
+
|
|
679
|
+
Substring matching alone isn't enough, though: a component's `class`
|
|
680
|
+
attribute always carries *both* halves of a pair together (e.g.
|
|
681
|
+
`data-[state=open]:animate-popover-in data-[state=closed]:animate-popover-out`
|
|
682
|
+
on the same element), so a `[class*="animate-popover-in"]` selector with no
|
|
683
|
+
further qualifier matches that element *regardless of its current
|
|
684
|
+
`data-state`* — including while it's closed, where the `-out` override
|
|
685
|
+
would then also match and fight it via cascade order alone.
|
|
686
|
+
|
|
687
|
+
The two halves are therefore qualified differently, and deliberately so:
|
|
688
|
+
|
|
689
|
+
- the `-in` half *excludes* the closed state rather than requiring the open
|
|
690
|
+
one, so it still fires for `animate-schedule-chip-in`'s one bare,
|
|
691
|
+
non-`data-state` usage (a static entrance with no exit counterpart,
|
|
692
|
+
`schedule-event-chip.tsx`);
|
|
693
|
+
- the `-out` half *requires* `[data-state="closed"]` outright. An exit
|
|
694
|
+
animation is only ever meaningful while something is actually exiting,
|
|
695
|
+
and every `-out` utility in the kit is applied through a
|
|
696
|
+
`data-[state=closed]:` variant, so nothing loses its override.
|
|
697
|
+
|
|
698
|
+
That asymmetry is load-bearing. Were the `-out` half to merely exclude the
|
|
699
|
+
open state, it would also match an element carrying both halves and *no*
|
|
700
|
+
`data-state` at all — a surface not driven by a presence machine, such as a
|
|
701
|
+
standalone `Notification` card used as a page-level alert. Both overrides
|
|
702
|
+
would then match, both are `!important` at equal specificity, and source
|
|
703
|
+
order would hand the win to `-out`: `fade-out … forwards`, leaving the card
|
|
704
|
+
permanently at `opacity: 0` for exactly the users who asked for less
|
|
705
|
+
motion. */
|
|
706
|
+
@media (prefers-reduced-motion: reduce) {
|
|
707
|
+
[class*="animate-fade-in"]:not([data-state="closed"]),
|
|
708
|
+
[class*="animate-modal-in"]:not([data-state="closed"]),
|
|
709
|
+
[class*="animate-drawer-in"]:not([data-state="closed"]),
|
|
710
|
+
[class*="animate-popover-in"]:not([data-state="closed"]),
|
|
711
|
+
[class*="animate-toast-in"]:not([data-state="closed"]),
|
|
712
|
+
[class*="animate-schedule-chip-in"]:not([data-state="closed"]) {
|
|
713
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
714
|
+
animation: fade-in 1ms ease-out !important;
|
|
715
|
+
}
|
|
716
|
+
[class*="animate-fade-out"][data-state="closed"],
|
|
717
|
+
[class*="animate-modal-out"][data-state="closed"],
|
|
718
|
+
[class*="animate-drawer-out"][data-state="closed"],
|
|
719
|
+
[class*="animate-popover-out"][data-state="closed"],
|
|
720
|
+
[class*="animate-toast-out"][data-state="closed"],
|
|
721
|
+
[class*="animate-schedule-chip-out"][data-state="closed"] {
|
|
722
|
+
/* Keep a 1ms keyframe (not `none`) so Ark Presence's `animationend` still
|
|
723
|
+
fires and the toast unmounts. */
|
|
724
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
725
|
+
animation: fade-out 1ms ease-in forwards !important;
|
|
726
|
+
}
|
|
727
|
+
/* The day-band page turn. Deliberately *not* named `-in`/`-out`: every other
|
|
728
|
+
exit utility in the kit is applied through a `data-[state=closed]:`
|
|
729
|
+
variant, and these cannot be. An all-day bar is an Ark popover trigger
|
|
730
|
+
that already carries its own `data-state="closed"` whenever its popover is
|
|
731
|
+
shut, so keying the leave animation on that attribute would fire it on
|
|
732
|
+
every bar in the *incoming* band too. `data-page-exiting` is the honest
|
|
733
|
+
signal, and the names avoid claiming a convention they don't follow.
|
|
734
|
+
|
|
735
|
+
The component also refuses to start a page turn at all when reduced motion
|
|
736
|
+
is set (`prefersReducedMotion` in `schedule-timed-grid.tsx`), so no
|
|
737
|
+
outgoing band is even rendered; this is the belt to that's braces, for a
|
|
738
|
+
setting toggled mid-animation. */
|
|
739
|
+
[class*="animate-schedule-page-enter"] {
|
|
740
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
741
|
+
animation: fade-in 1ms ease-out !important;
|
|
742
|
+
}
|
|
743
|
+
[class*="animate-schedule-page-leave"] {
|
|
744
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
745
|
+
animation: fade-out 1ms ease-in forwards !important;
|
|
746
|
+
}
|
|
747
|
+
/* The indeterminate animations loop forever, so drop them under reduced
|
|
748
|
+
motion — the bar/arc rests in place, still reading as an in-progress
|
|
749
|
+
affordance. */
|
|
750
|
+
[class*="animate-progress-indeterminate"],
|
|
751
|
+
[class*="animate-progress-spin"] {
|
|
752
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
753
|
+
animation: none !important;
|
|
754
|
+
}
|
|
755
|
+
/* Collapse the toast stacking transitions too. */
|
|
756
|
+
[data-scope="notifications"] [data-part="stack"],
|
|
757
|
+
[data-scope="notifications"] [data-part="toast"] {
|
|
758
|
+
/* biome-ignore lint/complexity/noImportantStyles: meaningful here */
|
|
759
|
+
transition: none !important;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/* Forced colors (Windows High Contrast and equivalents): give keyboard focus a
|
|
764
|
+
real outline, because the kit's focus ring cannot survive this mode.
|
|
765
|
+
|
|
766
|
+
Every focus treatment in the kit is a `ring-*`, and a Tailwind ring compiles
|
|
767
|
+
to a `box-shadow` — which the UA stops painting under `forced-colors:
|
|
768
|
+
active`. Meanwhile each of those call sites also suppresses the native
|
|
769
|
+
outline (`focus-visible:outline-none` in `focusStyles()`, the hand-written
|
|
770
|
+
rings in Notification / TreeSelect / TreeMultiSelect, the `outline-none`
|
|
771
|
+
on the field inside an Input shell), which is the one indicator this mode
|
|
772
|
+
*would* have drawn. Net result without this block: no indicator at all.
|
|
773
|
+
|
|
774
|
+
Why this wins without `!important`: `theme.css` is imported unlayered, and
|
|
775
|
+
every Tailwind utility lives in `@layer utilities`. For normal (non-
|
|
776
|
+
important) declarations an unlayered rule beats any layered one before
|
|
777
|
+
specificity is even compared, so this outline overrides `outline-none` /
|
|
778
|
+
`outline-0` wherever they come from. `!important` would be the wrong tool:
|
|
779
|
+
it *inverts* layer order, so an important declaration in a layer beats an
|
|
780
|
+
unlayered important one — it would make this rule easier to lose, not
|
|
781
|
+
harder. (Consumers must keep importing `theme.css` unlayered, as the README
|
|
782
|
+
shows; `@import … layer(x)` would demote it below the utilities.)
|
|
783
|
+
|
|
784
|
+
`Highlight` is the system "selected / focused" color, so the indicator
|
|
785
|
+
reads the way the user's own theme styles focus; naming a system color also
|
|
786
|
+
exempts it from the UA's forced-color substitution. `2px` and a `2px`
|
|
787
|
+
offset mirror the ring it replaces (`ring-2 ring-offset-2`).
|
|
788
|
+
|
|
789
|
+
Where the outline goes: wherever the kit would have painted its ring, and
|
|
790
|
+
nowhere else. Apart from the plain `:focus-visible` catch-all, each
|
|
791
|
+
selector keys on the ring's *own class tokens*, read through attribute
|
|
792
|
+
selectors (the attribute form of a class selector, readable without
|
|
793
|
+
escaping). That keeps the outline in lockstep with the ring: a `cn()`
|
|
794
|
+
override that twMerges the ring away (ChoiceCard's inner indicator
|
|
795
|
+
swapping `ring-2` for `ring-0`, Input's `unstyled` variant) drops the
|
|
796
|
+
outline with it, while one that only restyles the ring keeps it.
|
|
797
|
+
`theme.forced-colors.test.tsx` runs these selectors against the rendered
|
|
798
|
+
components, so a renamed ring fails a test instead of silently losing its
|
|
799
|
+
forced-colors outline.
|
|
800
|
+
|
|
801
|
+
Matching "a ring of any width" takes two attribute tests, because CSS has
|
|
802
|
+
no pattern match on a single class token. A consumer who widens the ring
|
|
803
|
+
(`data-focus-visible:ring-4`) makes tailwind-merge *drop* the kit's
|
|
804
|
+
`data-focus-visible:ring-2`, so a whole-token `[class~="…:ring-2"]` would
|
|
805
|
+
lose the outline exactly when someone customized the ring. Instead:
|
|
806
|
+
`[class^="X:ring-"], [class*=" X:ring-"]` finds a token that *starts*
|
|
807
|
+
with the ring prefix `X:ring-` (at the start of the attribute, or after a
|
|
808
|
+
space — so `has-data-focus-visible:ring-2` and `dark:data-focus-visible:
|
|
809
|
+
ring-offset-…` never count as the bare `data-focus-visible:` family), and
|
|
810
|
+
`:not([class~="X:ring-0"])` removes the one width that means "no ring".
|
|
811
|
+
The prefix also accepts the ring's color, offset and inset tokens. That is
|
|
812
|
+
deliberate: tailwind-merge only ever removes a width by replacing it with
|
|
813
|
+
another width, so an element that still carries the ring's color but no
|
|
814
|
+
width token is one whose width became `ring-0` — which the `:not()`
|
|
815
|
+
catches. Keying on the width alone would mean enumerating every width
|
|
816
|
+
Tailwind accepts (`ring`, `ring-1` … `ring-8`, `ring-[3px]` …).
|
|
817
|
+
|
|
818
|
+
- `:focus-visible` — the element that actually holds focus, unless it sits
|
|
819
|
+
inside an Input shell (last bullet) or is an overlay surface (below).
|
|
820
|
+
Covers every `focusStyles()` call site with the default source, every
|
|
821
|
+
hand-written ring (including the pseudo-element rings on Schedule's chip
|
|
822
|
+
and DataTable's resize handle, whose host is what holds focus), and a
|
|
823
|
+
consumer's own `focusStyles()` elements.
|
|
824
|
+
The overlay surfaces are the exception `focusStyles()` documents: panels
|
|
825
|
+
that receive *programmatic* focus and are ringless on purpose. Opening a
|
|
826
|
+
Menu from the keyboard focuses its `role="menu"` content, a Popover or
|
|
827
|
+
Modal with nothing focusable inside focuses its `role="dialog"` content,
|
|
828
|
+
and Select focuses the list scroller inside its `role="listbox"` content;
|
|
829
|
+
each matches `:focus-visible`, and without the exclusion the whole panel
|
|
830
|
+
would be boxed. They are keyed on ARIA role rather than on Ark's
|
|
831
|
+
`[data-part="content"]`, because that part name is not overlay-specific:
|
|
832
|
+
Tabs' content is also `data-part="content"`, is a real Tab stop, and is
|
|
833
|
+
ringed on purpose. The one non-role entry is Select's list, which carries
|
|
834
|
+
no role of its own when the content above it is the listbox. (A menu or
|
|
835
|
+
listbox *item*'s highlight is a separate, background-only state that
|
|
836
|
+
this block does not touch.)
|
|
837
|
+
- a `data-focus-visible:ring-*` width + `[data-focus-visible]` — Zag controls
|
|
838
|
+
(Checkbox, Radio, Switch, ChoiceCard) whose real focus target is a
|
|
839
|
+
visually-hidden `<input>`, so `:focus-visible` only ever matches an
|
|
840
|
+
invisible element. Zag mirrors `data-focus-visible` onto *every* part, so
|
|
841
|
+
the attribute alone cannot pick the visible one; the class that
|
|
842
|
+
`focusStyles({ source: "data-focus-visible" })` emits can — the Checkbox
|
|
843
|
+
box, the Switch track, the whole ChoiceCard.
|
|
844
|
+
- a `has-data-focus-visible:ring-*` width — the same, for a shell that rings
|
|
845
|
+
itself when a Zag descendant has keyboard focus (SegmentGroup's tray).
|
|
846
|
+
- The Input shell (`shellChrome` in `input.tsx`) — the `:focus-within`
|
|
847
|
+
idiom: the shell rings the *whole* control whenever anything inside it
|
|
848
|
+
has keyboard focus, and the field inside (and the Select / DatePicker
|
|
849
|
+
trigger buttons) set `outline-none` precisely so they don't double up
|
|
850
|
+
with it. So the outline moves to the shell too, and the catch-all skips
|
|
851
|
+
the shell's descendants, leaving them exactly as they were: the field
|
|
852
|
+
stays bare — one box around the control, not a box nested inside
|
|
853
|
+
another — while a clear button that never suppressed its native outline
|
|
854
|
+
keeps it, so it stays clear *which* part of the control has focus.
|
|
855
|
+
|
|
856
|
+
One adjustment follows: where the ring sits *flush*, the outline is drawn
|
|
857
|
+
inside the border box (`outline-offset: -2px`) instead of 2px outside it.
|
|
858
|
+
`focusStyles({ offset: false })` is how a call site says "there is no room
|
|
859
|
+
around me" — a Calendar cell, a Schedule chip or month-view day number, a
|
|
860
|
+
Notification action, a Pill or Rating item — and the hand-written
|
|
861
|
+
`ring-inset` rows in TreeSelect / TreeMultiSelect say the same thing more
|
|
862
|
+
bluntly. Those elements sit against the edge of an `overflow: hidden` /
|
|
863
|
+
`clip` / `auto` ancestor, which cuts a 2px-out outline off on that side: a
|
|
864
|
+
Notification action loses its whole left and bottom edges. Inset, the
|
|
865
|
+
outline stays within the element, where no ancestor can clip it. Such an
|
|
866
|
+
element is recognized by its tokens: it carries a `focus-visible:ring-*`
|
|
867
|
+
token (the ring prefix at a token boundary, as above) and no
|
|
868
|
+
`focus-visible:ring-offset-*` one — `offset: false` emits no offset
|
|
869
|
+
token, while `offset: true`, and a call site that supplies its own
|
|
870
|
+
surface-matched offset pair (DataTable's header cells), both emit
|
|
871
|
+
`focus-visible:ring-offset-2`. It comes after the main rule so it wins
|
|
872
|
+
the specificity tie. */
|
|
873
|
+
@media (forced-colors: active) {
|
|
874
|
+
:focus-visible:not(
|
|
875
|
+
[class~="[&:is(:focus-visible,:has(:focus-visible))]:ring-[3px]"] *,
|
|
876
|
+
[role="menu"],
|
|
877
|
+
[role="listbox"],
|
|
878
|
+
[role="listbox"] [data-part="list"],
|
|
879
|
+
[role="dialog"],
|
|
880
|
+
[role="alertdialog"]
|
|
881
|
+
),
|
|
882
|
+
:is([class^="data-focus-visible:ring-"], [class*=" data-focus-visible:ring-"]):not(
|
|
883
|
+
[class~="data-focus-visible:ring-0"]
|
|
884
|
+
)[data-focus-visible],
|
|
885
|
+
:is([class^="has-data-focus-visible:ring-"], [class*=" has-data-focus-visible:ring-"]):not(
|
|
886
|
+
[class~="has-data-focus-visible:ring-0"]
|
|
887
|
+
):has([data-focus-visible]),
|
|
888
|
+
[class~="[&:is(:focus-visible,:has(:focus-visible))]:ring-[3px]"]:is(
|
|
889
|
+
:focus-visible,
|
|
890
|
+
:has(:focus-visible)
|
|
891
|
+
) {
|
|
892
|
+
outline: 2px solid Highlight;
|
|
893
|
+
outline-offset: 2px;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
:focus-visible:is([class^="focus-visible:ring-"], [class*=" focus-visible:ring-"]):not(
|
|
897
|
+
[class^="focus-visible:ring-offset-"],
|
|
898
|
+
[class*=" focus-visible:ring-offset-"]
|
|
899
|
+
) {
|
|
900
|
+
outline-offset: -2px;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/* ==========================================
|
|
905
|
+
Utilities
|
|
906
|
+
==========================================
|
|
907
|
+
Various utilities to use in the UI kit's components or even for users
|
|
908
|
+
*/
|
|
909
|
+
|
|
910
|
+
/* Two-layer mask that shows only the border strip of a pseudo-element.
|
|
911
|
+
Apply alongside mask-exclude and a bg-linear-* + p-px on the pseudo-element. */
|
|
912
|
+
@utility mask {
|
|
913
|
+
mask-image: linear-gradient(black, black), linear-gradient(black, black);
|
|
914
|
+
mask-origin: content-box, border-box;
|
|
915
|
+
mask-clip: content-box, border-box;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/* Pairs with mask: XORs the two mask layers so only the padding strip remains. */
|
|
919
|
+
@utility mask-exclude {
|
|
920
|
+
mask-composite: exclude;
|
|
921
|
+
-webkit-mask-composite: xor;
|
|
922
|
+
}
|
|
923
|
+
@utility transition-colors-radius {
|
|
924
|
+
transition-property: color, background-color, border-color, outline-color, border-radius;
|
|
925
|
+
transition-timing-function: var(
|
|
926
|
+
--tw-ease,
|
|
927
|
+
var(--default-transition-timing-function) /* cubic-bezier(0.4, 0, 0.2, 1) */
|
|
928
|
+
);
|
|
929
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration) /* 150ms */);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/* Trim the line-box leading so a text element's box hugs its cap height / baseline
|
|
933
|
+
instead of the font's full line-height. Writing-mode aware (RTL-safe).
|
|
934
|
+
Progressive enhancement: Chrome/Edge 133+, Safari 18.2+; Firefox keeps normal
|
|
935
|
+
leading (graceful no-op). */
|
|
936
|
+
@utility text-trim {
|
|
937
|
+
text-box-trim: trim-both;
|
|
938
|
+
text-box-edge: cap alphabetic;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/* ==========================================
|
|
942
|
+
TEXTAREA — resize grip icon
|
|
943
|
+
==========================================
|
|
944
|
+
Restyles the native resize handle (`::-webkit-resizer` — Chrome/Edge/Safari
|
|
945
|
+
only; Firefox has no equivalent hook and keeps its own plain native grip)
|
|
946
|
+
with two diagonal strokes matching the kit's Figma redesign, in place of
|
|
947
|
+
the browser's default gray triangle. Stroke width matches the shell's own
|
|
948
|
+
`border` (1px); an explicit `width`/`height` on the SVG root fixes its
|
|
949
|
+
intrinsic size so that 1 viewBox unit renders as exactly 1 CSS px.
|
|
950
|
+
|
|
951
|
+
`::-webkit-resizer` only honors `background-*` (confirmed: `mask-image`
|
|
952
|
+
renders as a solid filled box here, not a mask — this pseudo-element
|
|
953
|
+
doesn't support CSS masking), so the color can't come from a real
|
|
954
|
+
`background-color` + a shape mask the way an ordinary element would. The
|
|
955
|
+
stroke color is instead baked directly into the SVG, matching
|
|
956
|
+
`shellVariants.default`'s border color (`input.tsx`) exactly —
|
|
957
|
+
`#0a1e41` (`--color-brand-900`) at 20% opacity for light,
|
|
958
|
+
white at 15% opacity for dark — so the grip always reads as the same
|
|
959
|
+
color as the shell's own border instead of an independently-chosen gray.
|
|
960
|
+
Since a `url()` data URI can't reference a CSS custom property, the two
|
|
961
|
+
theme variants are separate baked-in images swapped via
|
|
962
|
+
`--textarea-resizer-icon`, the same swap pattern the scrollbar theming
|
|
963
|
+
above uses. */
|
|
964
|
+
:root {
|
|
965
|
+
--textarea-resizer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 2 2 10' stroke='%230a1e41' stroke-opacity='0.2' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M10 6 6 10' stroke='%230a1e41' stroke-opacity='0.2' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
966
|
+
}
|
|
967
|
+
[data-theme="dark"] {
|
|
968
|
+
--textarea-resizer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 2 2 10' stroke='white' stroke-opacity='0.15' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M10 6 6 10' stroke='white' stroke-opacity='0.15' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
969
|
+
}
|
|
970
|
+
@utility textarea-resizer {
|
|
971
|
+
&::-webkit-resizer {
|
|
972
|
+
background-image: var(--textarea-resizer-icon);
|
|
973
|
+
background-repeat: no-repeat;
|
|
974
|
+
background-position: calc(100% - 3px) calc(100% - 3px);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* ==========================================
|
|
979
|
+
TABLE — horizontal scroll affordance
|
|
980
|
+
==========================================
|
|
981
|
+
`Table.Content` shows a soft shadow on each horizontal side that still has
|
|
982
|
+
content to scroll to. Pure CSS (so `Table` stays a Server Component) and
|
|
983
|
+
transparent-bg friendly: the shadow is a translucent overlay revealed/hidden
|
|
984
|
+
by scroll position via a scroll-driven animation. The scroll region publishes
|
|
985
|
+
an inline-axis timeline (`--table-scroll-x`, scoped by `.table-scroll-frame`)
|
|
986
|
+
that the two edge overlays animate their opacity against.
|
|
987
|
+
|
|
988
|
+
Progressive enhancement (Chrome/Edge 115+, Safari 26+): browsers without
|
|
989
|
+
scroll-driven animations (Firefox today) keep the overlays at opacity 0 — no
|
|
990
|
+
fade, no breakage. When the axis can't scroll the timeline is inactive, so
|
|
991
|
+
the overlays also stay hidden. */
|
|
992
|
+
:root {
|
|
993
|
+
--table-scroll-fade: color-mix(in oklab, var(--color-gray-light-950) 14%, transparent);
|
|
994
|
+
}
|
|
995
|
+
:where([data-theme="dark"]) {
|
|
996
|
+
--table-scroll-fade: color-mix(in oklab, var(--color-black) 60%, transparent);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
@keyframes table-fade-reveal-start {
|
|
1000
|
+
0% {
|
|
1001
|
+
opacity: 0;
|
|
1002
|
+
}
|
|
1003
|
+
6%,
|
|
1004
|
+
100% {
|
|
1005
|
+
opacity: 1;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
@keyframes table-fade-reveal-end {
|
|
1009
|
+
0%,
|
|
1010
|
+
94% {
|
|
1011
|
+
opacity: 1;
|
|
1012
|
+
}
|
|
1013
|
+
100% {
|
|
1014
|
+
opacity: 0;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.table-scroll-frame {
|
|
1019
|
+
position: relative;
|
|
1020
|
+
timeline-scope: --table-scroll-x;
|
|
1021
|
+
}
|
|
1022
|
+
.table-scroll-x {
|
|
1023
|
+
scroll-timeline-name: --table-scroll-x;
|
|
1024
|
+
scroll-timeline-axis: x;
|
|
1025
|
+
}
|
|
1026
|
+
/* Hidden by default → graceful no-op where scroll-driven animations are absent. */
|
|
1027
|
+
.table-fade-start,
|
|
1028
|
+
.table-fade-end {
|
|
1029
|
+
opacity: 0;
|
|
1030
|
+
}
|
|
1031
|
+
.table-fade-start {
|
|
1032
|
+
background-image: linear-gradient(to right, var(--table-scroll-fade), transparent);
|
|
1033
|
+
}
|
|
1034
|
+
.table-fade-end {
|
|
1035
|
+
background-image: linear-gradient(to left, var(--table-scroll-fade), transparent);
|
|
1036
|
+
}
|
|
1037
|
+
@supports (animation-timeline: scroll()) {
|
|
1038
|
+
.table-fade-start {
|
|
1039
|
+
animation: table-fade-reveal-start linear both;
|
|
1040
|
+
animation-timeline: --table-scroll-x;
|
|
1041
|
+
}
|
|
1042
|
+
.table-fade-end {
|
|
1043
|
+
animation: table-fade-reveal-end linear both;
|
|
1044
|
+
animation-timeline: --table-scroll-x;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/* ==========================================
|
|
1049
|
+
TOAST STACKING
|
|
1050
|
+
==========================================
|
|
1051
|
+
The custom toaster drives the deck↔column morph in CSS from per-toast vars
|
|
1052
|
+
set by `create-notifier`: `--index` (0 = front), `--offset` (Σ heights+gaps
|
|
1053
|
+
of the newer toasts, px), `--height` (own, px), `--front-height` (front, px);
|
|
1054
|
+
the stack element carries `--stack-collapsed-h` / `--stack-expanded-h`.
|
|
1055
|
+
Position uses the `translate`/`scale` *properties* so it composes with the
|
|
1056
|
+
enter/exit keyframes (which use `transform`). `--peek` is the visible sliver
|
|
1057
|
+
of each toast behind the front. */
|
|
1058
|
+
[data-scope="notifications"] {
|
|
1059
|
+
--peek: 0.9rem;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/* The stack sizes to the front toast (collapsed) and grows to the full column
|
|
1063
|
+
on hover/focus (when `data-expand` is set), so the hover target follows it. */
|
|
1064
|
+
[data-scope="notifications"] [data-part="stack"] {
|
|
1065
|
+
height: var(--stack-collapsed-h, auto);
|
|
1066
|
+
transition: height 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1067
|
+
}
|
|
1068
|
+
[data-scope="notifications"][data-expand] [data-part="stack"]:hover,
|
|
1069
|
+
[data-scope="notifications"][data-expand] [data-part="stack"]:focus-within {
|
|
1070
|
+
height: var(--stack-expanded-h, auto);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
[data-scope="notifications"] [data-part="toast"] {
|
|
1074
|
+
position: absolute;
|
|
1075
|
+
inset-inline: 0;
|
|
1076
|
+
/* Front (index 0) on top, older toasts stacked behind. */
|
|
1077
|
+
z-index: calc(100 - var(--index, 0));
|
|
1078
|
+
/* `--swipe-*` are set imperatively while dragging (see notification.tsx). */
|
|
1079
|
+
opacity: var(--swipe-opacity, 1);
|
|
1080
|
+
transition:
|
|
1081
|
+
translate 300ms cubic-bezier(0.16, 1, 0.3, 1),
|
|
1082
|
+
scale 300ms cubic-bezier(0.16, 1, 0.3, 1),
|
|
1083
|
+
opacity 300ms ease;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/* Ghost hover-bridge (bottom placements). A taller toast behind a shorter front
|
|
1087
|
+
one overflows below it (toward the bottom edge); that strip is hoverable while
|
|
1088
|
+
collapsed but slides into the column on expand as the stack grows *upward* —
|
|
1089
|
+
stranding the pointer over a gap so :hover flip-flops and the deck blinks. The
|
|
1090
|
+
front toast renders this invisible box glued just below itself (`--ghost-h` =
|
|
1091
|
+
the overflow px), so hover stays put through the morph. It only covers where a
|
|
1092
|
+
toast already sat, so it steals no page clicks. */
|
|
1093
|
+
[data-scope="notifications"][data-placement^="bottom"] [data-part="ghost"] {
|
|
1094
|
+
position: absolute;
|
|
1095
|
+
inset-inline: 0;
|
|
1096
|
+
bottom: calc(-1 * var(--ghost-h, 0px));
|
|
1097
|
+
height: var(--ghost-h, 0px);
|
|
1098
|
+
pointer-events: auto;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/* Bottom placements: anchor the bottom edge; the height term aligns the *tops*
|
|
1102
|
+
so the peeks stagger evenly regardless of each toast's height. */
|
|
1103
|
+
[data-scope="notifications"][data-placement^="bottom"] [data-part="toast"] {
|
|
1104
|
+
bottom: 0;
|
|
1105
|
+
transform-origin: top center;
|
|
1106
|
+
translate: var(--swipe-x, 0)
|
|
1107
|
+
calc((var(--height, 0px) - var(--front-height, 0px)) - var(--index, 0) * var(--peek));
|
|
1108
|
+
scale: calc(1 - var(--index, 0) * 0.05);
|
|
1109
|
+
}
|
|
1110
|
+
/* Top placements: anchor the top edge (tops already aligned); peek downward. */
|
|
1111
|
+
[data-scope="notifications"][data-placement^="top"] [data-part="toast"] {
|
|
1112
|
+
top: 0;
|
|
1113
|
+
transform-origin: bottom center;
|
|
1114
|
+
translate: var(--swipe-x, 0) calc(var(--index, 0) * var(--peek));
|
|
1115
|
+
scale: calc(1 - var(--index, 0) * 0.05);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/* Expanded: fan into a real column at each toast's measured offset. */
|
|
1119
|
+
[data-scope="notifications"][data-expand][data-placement^="bottom"]
|
|
1120
|
+
[data-part="stack"]:hover
|
|
1121
|
+
[data-part="toast"],
|
|
1122
|
+
[data-scope="notifications"][data-expand][data-placement^="bottom"]
|
|
1123
|
+
[data-part="stack"]:focus-within
|
|
1124
|
+
[data-part="toast"] {
|
|
1125
|
+
translate: var(--swipe-x, 0) calc(-1 * var(--offset, 0px));
|
|
1126
|
+
scale: 1;
|
|
1127
|
+
}
|
|
1128
|
+
[data-scope="notifications"][data-expand][data-placement^="top"]
|
|
1129
|
+
[data-part="stack"]:hover
|
|
1130
|
+
[data-part="toast"],
|
|
1131
|
+
[data-scope="notifications"][data-expand][data-placement^="top"]
|
|
1132
|
+
[data-part="stack"]:focus-within
|
|
1133
|
+
[data-part="toast"] {
|
|
1134
|
+
translate: var(--swipe-x, 0) var(--offset, 0px);
|
|
1135
|
+
scale: 1;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/* ==========================================
|
|
1139
|
+
OVERLAY STACKING
|
|
1140
|
+
==========================================
|
|
1141
|
+
One scale for every floating surface, in the order they need to paint:
|
|
1142
|
+
|
|
1143
|
+
--overlay-z popover, menu, hover-card, select, combobox, date-picker
|
|
1144
|
+
--toast-z the notifier region
|
|
1145
|
+
--modal-z modal + drawer (backdrop and positioner)
|
|
1146
|
+
--tooltip-z tooltip
|
|
1147
|
+
|
|
1148
|
+
Two facts about `@zag-js/popper` decide *where* these values have to be
|
|
1149
|
+
declared, and both are easy to get wrong:
|
|
1150
|
+
|
|
1151
|
+
1. Every positioner carries an inline `isolation: isolate`
|
|
1152
|
+
(`popper/get-styles.js`), so a positioner is *always* its own stacking
|
|
1153
|
+
context. A z-index on Content therefore can never compete with another
|
|
1154
|
+
portal — only the positioner's own can.
|
|
1155
|
+
2. The positioner also carries an inline `z-index: var(--z-index)`, and
|
|
1156
|
+
popper writes `--z-index` inline *itself* on the first position pass,
|
|
1157
|
+
copying `getComputedStyle(content).zIndex` (`popper/get-placement.js`).
|
|
1158
|
+
So a stylesheet `--z-index` on the positioner is shadowed the moment
|
|
1159
|
+
the panel positions; only author-`!important` would beat it.
|
|
1160
|
+
|
|
1161
|
+
Hence: put a real `z-index` on the **content** part and let popper hoist
|
|
1162
|
+
it onto the positioner for us. That's the lever popper is built around,
|
|
1163
|
+
and it needs no `!important`.
|
|
1164
|
+
|
|
1165
|
+
`data-scope` and `data-part` sit on the *same* element, so these selectors
|
|
1166
|
+
are compound. A descendant combinator here matches nothing — Popover's,
|
|
1167
|
+
Menu's and Tooltip's Roots render no DOM node at all, so no ancestor can
|
|
1168
|
+
ever carry the scope. (The `notifications` rules further up *are*
|
|
1169
|
+
legitimately descendant: that region is hand-rolled, and `stack`/`toast`/
|
|
1170
|
+
`ghost` really are nested under the scope-bearing element.)
|
|
1171
|
+
|
|
1172
|
+
`--layer-index` is written inline on every dismissable layer by zag's
|
|
1173
|
+
layer stack and counts how deep the layer sits, so adding it makes a
|
|
1174
|
+
picker opened inside a popover outrank its parent. Should that internal
|
|
1175
|
+
ever disappear, the `calc` degrades to the flat band — still correct for
|
|
1176
|
+
everything but same-band nesting.
|
|
1177
|
+
|
|
1178
|
+
Overlays opened inside a Modal/Drawer don't lean on arithmetic at all:
|
|
1179
|
+
they portal *into* it (see `lib/overlay-container.tsx`), so they're
|
|
1180
|
+
descendants of a surface that already outranks the page and stay above it
|
|
1181
|
+
no matter what their own band says. That's also what lets `--toast-z` sit
|
|
1182
|
+
between the two bands. */
|
|
1183
|
+
:root {
|
|
1184
|
+
--overlay-z: 50;
|
|
1185
|
+
--toast-z: 100;
|
|
1186
|
+
--modal-z: 150;
|
|
1187
|
+
--tooltip-z: 200;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
[data-scope="popover"][data-part="content"],
|
|
1191
|
+
[data-scope="menu"][data-part="content"],
|
|
1192
|
+
[data-scope="hover-card"][data-part="content"],
|
|
1193
|
+
[data-scope="select"][data-part="content"],
|
|
1194
|
+
[data-scope="combobox"][data-part="content"],
|
|
1195
|
+
[data-scope="date-picker"][data-part="content"] {
|
|
1196
|
+
z-index: calc(var(--overlay-z, 50) + var(--layer-index, 0));
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/* A tooltip can show up over anything hoverable, an open picker included. It
|
|
1200
|
+
isn't a dismissable layer, so there's no `--layer-index` to add. */
|
|
1201
|
+
[data-scope="tooltip"][data-part="content"] {
|
|
1202
|
+
z-index: var(--tooltip-z, 200);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/* ==========================================
|
|
1206
|
+
INDICATOR withBorder RING
|
|
1207
|
+
==========================================
|
|
1208
|
+
This kit has no dedicated "page background" token — the `body` rule above
|
|
1209
|
+
only ever sets text color. `Indicator`'s `withBorder` (and, elsewhere,
|
|
1210
|
+
`AvatarGroup`'s cutout border / `Timeline`'s ring-offset bullet / `Badge`'s
|
|
1211
|
+
gradient border) all need *some* guess at the surrounding surface color so
|
|
1212
|
+
the ring reads as a seamless cutout rather than a mismatched outline, so
|
|
1213
|
+
light=white / dark=gray-dark-900 is that guess — a plausible default for
|
|
1214
|
+
an unstyled page, in both themes.
|
|
1215
|
+
|
|
1216
|
+
Unlike those other components (which bake the guess directly into a
|
|
1217
|
+
`border-white dark:border-gray-dark-900` class), `Indicator` exposes it as
|
|
1218
|
+
a real custom property. A component can never know what surface it's
|
|
1219
|
+
actually placed on — the default page background, a colored `Card`, a
|
|
1220
|
+
tinted panel — so a fixed class can only ever be right by accident.
|
|
1221
|
+
Overriding this single var (e.g. `style={{ "--indicator-border-color":
|
|
1222
|
+
"var(--color-brand-50)" }}`, or scoped via a wrapping class) correctly
|
|
1223
|
+
re-targets the ring to whatever surface it's really cutting into, in one
|
|
1224
|
+
place, without fighting `dark:` specificity or forking the component. */
|
|
1225
|
+
:root {
|
|
1226
|
+
--indicator-border-color: var(--color-white);
|
|
1227
|
+
}
|
|
1228
|
+
[data-theme="dark"] {
|
|
1229
|
+
--indicator-border-color: var(--color-gray-dark-900);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/* ==========================================
|
|
1233
|
+
AMBIENT BACKGROUND (see components/ambient-background)
|
|
1234
|
+
==========================================
|
|
1235
|
+
Two CSS-var-driven layers a consumer app can drop behind its page content
|
|
1236
|
+
for a considered, brand-tinted surface instead of a flat fill: a soft
|
|
1237
|
+
radial glow (plain alpha compositing, tinted with the brand scale) and a
|
|
1238
|
+
textured noise (feTurbulence, colored with a brand tone directly in the
|
|
1239
|
+
filter and alpha-contrasted via a gamma curve, rather than desaturated
|
|
1240
|
+
grayscale blended with `mix-blend-mode: overlay`). Overlay blending is
|
|
1241
|
+
mathematically weak against a very dark (or very light) backdrop - it
|
|
1242
|
+
approaches multiply/screen at the extremes, so no amount of opacity makes
|
|
1243
|
+
it read as more than a faint wash on brand-950/brand-50. Baking the actual
|
|
1244
|
+
brand tone into the noise and compositing it with plain alpha sidesteps
|
|
1245
|
+
that entirely, which is why (unlike the glow) this needs a per-theme
|
|
1246
|
+
override: a light backdrop wants a darker speckle (brand-700) and a dark
|
|
1247
|
+
backdrop wants a lighter one (brand-400).
|
|
1248
|
+
Values live here (not hardcoded in the component) so a consumer can
|
|
1249
|
+
override either variable for their own brand color without forking the
|
|
1250
|
+
component. */
|
|
1251
|
+
:root {
|
|
1252
|
+
--ambient-glow: radial-gradient(
|
|
1253
|
+
circle 65vmin at 50% 50%,
|
|
1254
|
+
color-mix(in oklch, var(--color-brand-200) 9%, transparent),
|
|
1255
|
+
transparent 70%
|
|
1256
|
+
);
|
|
1257
|
+
--ambient-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.212 0 0 0 0 0.325 0 0 0 0 0.6 0 0 0 1 0' result='c'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='gamma' amplitude='0.08' exponent='2' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
[data-theme="dark"] {
|
|
1261
|
+
--ambient-glow: radial-gradient(
|
|
1262
|
+
circle 65vmin at 50% 50%,
|
|
1263
|
+
color-mix(in oklch, var(--color-brand-700) 13%, transparent),
|
|
1264
|
+
transparent 70%
|
|
1265
|
+
);
|
|
1266
|
+
--ambient-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.573 0 0 0 0 0.69 0 0 0 0 0.98 0 0 0 1 0' result='c'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='gamma' amplitude='0.09' exponent='2' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/* Variants to use with slider's values */
|
|
1270
|
+
@custom-variant state-under-or-at (&:is([data-state="under-value"], [data-state="at-value"]));
|
|
1271
|
+
|
|
1272
|
+
*,
|
|
1273
|
+
:root {
|
|
1274
|
+
@apply scrollbar-thumb-gray-300/60 hover:scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-500/60 dark:hover:scrollbar-thumb-gray-500 scrollbar-track-transparent;
|
|
1275
|
+
}
|