@42-central/ui-react 0.0.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +453 -1
- package/dist/chunk-2762HZYX.js +284 -0
- package/dist/chunk-2762HZYX.js.map +1 -0
- package/dist/chunk-2GILNBZW.js +31 -0
- package/dist/chunk-2GILNBZW.js.map +1 -0
- package/dist/chunk-2H46IXW4.js +264 -0
- package/dist/chunk-2H46IXW4.js.map +1 -0
- package/dist/chunk-2SVX3MQQ.js +78 -0
- package/dist/chunk-2SVX3MQQ.js.map +1 -0
- package/dist/chunk-3GYOIQW7.js +242 -0
- package/dist/chunk-3GYOIQW7.js.map +1 -0
- package/dist/chunk-3NZXWCGF.js +152 -0
- package/dist/chunk-3NZXWCGF.js.map +1 -0
- package/dist/chunk-44OV3PNH.js +294 -0
- package/dist/chunk-44OV3PNH.js.map +1 -0
- package/dist/chunk-5FDOOG4J.js +15 -0
- package/dist/chunk-5FDOOG4J.js.map +1 -0
- package/dist/chunk-6I4R3HR6.js +90 -0
- package/dist/chunk-6I4R3HR6.js.map +1 -0
- package/dist/chunk-6SWK4XG5.js +128 -0
- package/dist/chunk-6SWK4XG5.js.map +1 -0
- package/dist/chunk-7NZSTCJO.js +82 -0
- package/dist/chunk-7NZSTCJO.js.map +1 -0
- package/dist/chunk-7P32XCEU.js +15 -0
- package/dist/chunk-7P32XCEU.js.map +1 -0
- package/dist/chunk-ACE7FBWE.js +216 -0
- package/dist/chunk-ACE7FBWE.js.map +1 -0
- package/dist/chunk-AIQG7IIT.js +39 -0
- package/dist/chunk-AIQG7IIT.js.map +1 -0
- package/dist/chunk-B2LCHXUB.js +26 -0
- package/dist/chunk-B2LCHXUB.js.map +1 -0
- package/dist/chunk-BEL75C7N.js +35 -0
- package/dist/chunk-BEL75C7N.js.map +1 -0
- package/dist/chunk-BJZLQTAZ.js +3 -0
- package/dist/chunk-BJZLQTAZ.js.map +1 -0
- package/dist/chunk-BUIHQJGE.js +8 -0
- package/dist/chunk-BUIHQJGE.js.map +1 -0
- package/dist/chunk-CHTN5AHI.js +106 -0
- package/dist/chunk-CHTN5AHI.js.map +1 -0
- package/dist/chunk-CSCVTESP.js +58 -0
- package/dist/chunk-CSCVTESP.js.map +1 -0
- package/dist/chunk-EEMRRRYS.js +60 -0
- package/dist/chunk-EEMRRRYS.js.map +1 -0
- package/dist/chunk-FD6P6PLQ.js +153 -0
- package/dist/chunk-FD6P6PLQ.js.map +1 -0
- package/dist/chunk-FMMKEYHB.js +3 -0
- package/dist/chunk-FMMKEYHB.js.map +1 -0
- package/dist/chunk-FUWSTUDM.js +219 -0
- package/dist/chunk-FUWSTUDM.js.map +1 -0
- package/dist/chunk-G52U24GR.js +10 -0
- package/dist/chunk-G52U24GR.js.map +1 -0
- package/dist/chunk-GTKKRV5N.js +14 -0
- package/dist/chunk-GTKKRV5N.js.map +1 -0
- package/dist/chunk-HWNPXAEN.js +31 -0
- package/dist/chunk-HWNPXAEN.js.map +1 -0
- package/dist/chunk-IFWCCAQV.js +222 -0
- package/dist/chunk-IFWCCAQV.js.map +1 -0
- package/dist/chunk-IG7FBZVM.js +101 -0
- package/dist/chunk-IG7FBZVM.js.map +1 -0
- package/dist/chunk-IHYFYMHJ.js +167 -0
- package/dist/chunk-IHYFYMHJ.js.map +1 -0
- package/dist/chunk-IRXZHLUL.js +51 -0
- package/dist/chunk-IRXZHLUL.js.map +1 -0
- package/dist/chunk-IXKELBJA.js +202 -0
- package/dist/chunk-IXKELBJA.js.map +1 -0
- package/dist/chunk-J3PELDH3.js +279 -0
- package/dist/chunk-J3PELDH3.js.map +1 -0
- package/dist/chunk-JBVFWSRQ.js +21 -0
- package/dist/chunk-JBVFWSRQ.js.map +1 -0
- package/dist/chunk-MOI7B3KH.js +217 -0
- package/dist/chunk-MOI7B3KH.js.map +1 -0
- package/dist/chunk-NF5JM2YO.js +57 -0
- package/dist/chunk-NF5JM2YO.js.map +1 -0
- package/dist/chunk-NGAQITWP.js +156 -0
- package/dist/chunk-NGAQITWP.js.map +1 -0
- package/dist/chunk-NSDM3FEB.js +82 -0
- package/dist/chunk-NSDM3FEB.js.map +1 -0
- package/dist/chunk-ORTCK34Y.js +3 -0
- package/dist/chunk-ORTCK34Y.js.map +1 -0
- package/dist/chunk-P3XMBETI.js +26 -0
- package/dist/chunk-P3XMBETI.js.map +1 -0
- package/dist/chunk-P7A3BCAC.js +93 -0
- package/dist/chunk-P7A3BCAC.js.map +1 -0
- package/dist/chunk-PJL4ZL5V.js +639 -0
- package/dist/chunk-PJL4ZL5V.js.map +1 -0
- package/dist/chunk-POKDSVQT.js +223 -0
- package/dist/chunk-POKDSVQT.js.map +1 -0
- package/dist/chunk-QMW7D5GU.js +207 -0
- package/dist/chunk-QMW7D5GU.js.map +1 -0
- package/dist/chunk-QP4I37PA.js +14 -0
- package/dist/chunk-QP4I37PA.js.map +1 -0
- package/dist/chunk-R5GMMWAY.js +3 -0
- package/dist/chunk-R5GMMWAY.js.map +1 -0
- package/dist/chunk-S53FHWNG.js +30 -0
- package/dist/chunk-S53FHWNG.js.map +1 -0
- package/dist/chunk-SIG4DMNZ.js +238 -0
- package/dist/chunk-SIG4DMNZ.js.map +1 -0
- package/dist/chunk-SKPM2FRX.js +44 -0
- package/dist/chunk-SKPM2FRX.js.map +1 -0
- package/dist/chunk-TCWYBVIL.js +33 -0
- package/dist/chunk-TCWYBVIL.js.map +1 -0
- package/dist/chunk-TMMEJKLI.js +363 -0
- package/dist/chunk-TMMEJKLI.js.map +1 -0
- package/dist/chunk-TNNH3FVQ.js +155 -0
- package/dist/chunk-TNNH3FVQ.js.map +1 -0
- package/dist/chunk-TWGCWKRV.js +44 -0
- package/dist/chunk-TWGCWKRV.js.map +1 -0
- package/dist/chunk-U5GW5EBR.js +150 -0
- package/dist/chunk-U5GW5EBR.js.map +1 -0
- package/dist/chunk-UNSAA7YG.js +148 -0
- package/dist/chunk-UNSAA7YG.js.map +1 -0
- package/dist/chunk-UVYTJQTJ.js +14 -0
- package/dist/chunk-UVYTJQTJ.js.map +1 -0
- package/dist/chunk-VLUKI3HL.js +120 -0
- package/dist/chunk-VLUKI3HL.js.map +1 -0
- package/dist/chunk-VZ2TPU4B.js +348 -0
- package/dist/chunk-VZ2TPU4B.js.map +1 -0
- package/dist/chunk-VZH6TS7M.js +153 -0
- package/dist/chunk-VZH6TS7M.js.map +1 -0
- package/dist/chunk-WYCMIIRR.js +12 -0
- package/dist/chunk-WYCMIIRR.js.map +1 -0
- package/dist/chunk-WZB6LPQI.js +47 -0
- package/dist/chunk-WZB6LPQI.js.map +1 -0
- package/dist/chunk-YBJB7FGE.js +187 -0
- package/dist/chunk-YBJB7FGE.js.map +1 -0
- package/dist/chunk-YIQI2CF3.js +92 -0
- package/dist/chunk-YIQI2CF3.js.map +1 -0
- package/dist/chunk-YKUCSV34.js +72 -0
- package/dist/chunk-YKUCSV34.js.map +1 -0
- package/dist/chunk-ZP6EBROY.js +3 -0
- package/dist/chunk-ZP6EBROY.js.map +1 -0
- package/dist/colors.css +296 -0
- package/dist/components/accordion/accordion-data.d.ts +52 -0
- package/dist/components/accordion/accordion-data.d.ts.map +1 -0
- package/dist/components/accordion/accordion.d.ts +116 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +206 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +51 -0
- package/dist/components/action-icon/action-icon.d.ts.map +1 -0
- package/dist/components/action-icon/index.d.ts +2 -0
- package/dist/components/action-icon/index.d.ts.map +1 -0
- package/dist/components/action-icon/index.js +8 -0
- package/dist/components/action-icon/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +82 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +74 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/ambient-background/ambient-background.d.ts +47 -0
- package/dist/components/ambient-background/ambient-background.d.ts.map +1 -0
- package/dist/components/ambient-background/index.d.ts +2 -0
- package/dist/components/ambient-background/index.d.ts.map +1 -0
- package/dist/components/ambient-background/index.js +35 -0
- package/dist/components/ambient-background/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +185 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts.map +1 -0
- package/dist/components/app-shell/index.js +243 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/autocomplete/autocomplete.d.ts +70 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +149 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +105 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +211 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +102 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +64 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +203 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.d.ts +72 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +49 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +5 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts +39 -0
- package/dist/components/button-multi-select/button-multi-select.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.d.ts +5 -0
- package/dist/components/button-multi-select/index.d.ts.map +1 -0
- package/dist/components/button-multi-select/index.js +45 -0
- package/dist/components/button-multi-select/index.js.map +1 -0
- package/dist/components/button-select/button-select-control.d.ts +56 -0
- package/dist/components/button-select/button-select-control.d.ts.map +1 -0
- package/dist/components/button-select/button-select-data.d.ts +53 -0
- package/dist/components/button-select/button-select-data.d.ts.map +1 -0
- package/dist/components/button-select/button-select-items.d.ts +72 -0
- package/dist/components/button-select/button-select-items.d.ts.map +1 -0
- package/dist/components/button-select/button-select.d.ts +98 -0
- package/dist/components/button-select/button-select.d.ts.map +1 -0
- package/dist/components/button-select/index.d.ts +5 -0
- package/dist/components/button-select/index.d.ts.map +1 -0
- package/dist/components/button-select/index.js +45 -0
- package/dist/components/button-select/index.js.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +48 -0
- package/dist/components/calendar/calendar-body.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +88 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +11 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.d.ts +69 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +6 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/chart/chart.d.ts +103 -0
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.d.ts.map +1 -0
- package/dist/components/chart/index.js +70 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/chart/styles.css +50 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/control.d.ts +28 -0
- package/dist/components/checkbox/control.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +10 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts +148 -0
- package/dist/components/choice-card-group/choice-card-group.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.d.ts +2 -0
- package/dist/components/choice-card-group/index.d.ts.map +1 -0
- package/dist/components/choice-card-group/index.js +280 -0
- package/dist/components/choice-card-group/index.js.map +1 -0
- package/dist/components/circular-progress/circular-progress.d.ts +49 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.d.ts.map +1 -0
- package/dist/components/circular-progress/index.js +133 -0
- package/dist/components/circular-progress/index.js.map +1 -0
- package/dist/components/clipboard/clipboard.d.ts +95 -0
- package/dist/components/clipboard/clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/copy.d.ts +67 -0
- package/dist/components/clipboard/copy.d.ts.map +1 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +86 -0
- package/dist/components/clipboard/index.js.map +1 -0
- package/dist/components/code/code.d.ts +37 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/code/index.d.ts.map +1 -0
- package/dist/components/code/index.js +28 -0
- package/dist/components/code/index.js.map +1 -0
- package/dist/components/code-block/chrome.d.ts +77 -0
- package/dist/components/code-block/chrome.d.ts.map +1 -0
- package/dist/components/code-block/chrome.js +15 -0
- package/dist/components/code-block/chrome.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +99 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/diff.d.ts +79 -0
- package/dist/components/code-block/diff.d.ts.map +1 -0
- package/dist/components/code-block/diff.js +23 -0
- package/dist/components/code-block/diff.js.map +1 -0
- package/dist/components/code-block/gutters.d.ts +100 -0
- package/dist/components/code-block/gutters.d.ts.map +1 -0
- package/dist/components/code-block/highlighter.d.ts +84 -0
- package/dist/components/code-block/highlighter.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +23 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +463 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/code-block/notation.d.ts +126 -0
- package/dist/components/code-block/notation.d.ts.map +1 -0
- package/dist/components/code-block/presets.d.ts +23 -0
- package/dist/components/code-block/presets.d.ts.map +1 -0
- package/dist/components/code-block/static.d.ts +65 -0
- package/dist/components/code-block/static.d.ts.map +1 -0
- package/dist/components/code-block/static.js +380 -0
- package/dist/components/code-block/static.js.map +1 -0
- package/dist/components/code-block/styles.css +198 -0
- package/dist/components/collapse/collapse.d.ts +50 -0
- package/dist/components/collapse/collapse.d.ts.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +5 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +78 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/combobox-list/combobox-list.d.ts +77 -0
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -0
- package/dist/components/combobox-list/index.d.ts +2 -0
- package/dist/components/combobox-list/index.d.ts.map +1 -0
- package/dist/components/combobox-list/index.js +16 -0
- package/dist/components/combobox-list/index.js.map +1 -0
- package/dist/components/container/container.d.ts +18 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +40 -0
- package/dist/components/container/index.js.map +1 -0
- package/dist/components/data-table/data-table-features.d.ts +80 -0
- package/dist/components/data-table/data-table-features.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts +53 -0
- package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts +18 -0
- package/dist/components/data-table/data-table-filter/data-table-filter-fns.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-filter/data-table-text-filter.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/index.d.ts +15 -0
- package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts +52 -0
- package/dist/components/data-table/data-table-filter/utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table-header-cell.d.ts +65 -0
- package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -0
- package/dist/components/data-table/data-table-meta.d.ts +103 -0
- package/dist/components/data-table/data-table-meta.d.ts.map +1 -0
- package/dist/components/data-table/data-table-pagination.d.ts +56 -0
- package/dist/components/data-table/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table/data-table-placeholder.d.ts +18 -0
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -0
- package/dist/components/data-table/data-table-schema.d.ts +45 -0
- package/dist/components/data-table/data-table-schema.d.ts.map +1 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +10 -0
- package/dist/components/data-table/data-table-skeleton.d.ts.map +1 -0
- package/dist/components/data-table/data-table-stack.d.ts +48 -0
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -0
- package/dist/components/data-table/data-table-state.d.ts +10 -0
- package/dist/components/data-table/data-table-state.d.ts.map +1 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +21 -0
- package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +194 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/index.d.ts +14 -0
- package/dist/components/data-table/index.d.ts.map +1 -0
- package/dist/components/data-table/index.js +1603 -0
- package/dist/components/data-table/index.js.map +1 -0
- package/dist/components/date-picker/aliases.d.ts +11 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +204 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-time-text.d.ts +32 -0
- package/dist/components/date-picker/date-time-text.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +48 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +79 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +5 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +103 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/field/field.d.ts +79 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.d.ts +68 -0
- package/dist/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/file-upload/index.d.ts.map +1 -0
- package/dist/components/file-upload/index.js +189 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/flex/flex.d.ts +25 -0
- package/dist/components/flex/flex.d.ts.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/grid/grid.d.ts +21 -0
- package/dist/components/grid/grid.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +44 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/hover-card/hover-card.d.ts +122 -0
- package/dist/components/hover-card/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +157 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/indicator/index.d.ts +2 -0
- package/dist/components/indicator/index.d.ts.map +1 -0
- package/dist/components/indicator/index.js +152 -0
- package/dist/components/indicator/index.js.map +1 -0
- package/dist/components/indicator/indicator.d.ts +69 -0
- package/dist/components/indicator/indicator.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +7 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +116 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +65 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +43 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/mark/index.d.ts +2 -0
- package/dist/components/mark/index.d.ts.map +1 -0
- package/dist/components/mark/index.js +5 -0
- package/dist/components/mark/index.js.map +1 -0
- package/dist/components/mark/mark.d.ts +50 -0
- package/dist/components/mark/mark.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +88 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/menu/menu-data.d.ts +119 -0
- package/dist/components/menu/menu-data.d.ts.map +1 -0
- package/dist/components/menu/menu.d.ts +123 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +12 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +100 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.d.ts +2 -0
- package/dist/components/multi-combobox-list/index.d.ts.map +1 -0
- package/dist/components/multi-combobox-list/index.js +16 -0
- package/dist/components/multi-combobox-list/index.js.map +1 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +83 -0
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -0
- package/dist/components/multi-select/index.d.ts +3 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +203 -0
- package/dist/components/multi-select/index.js.map +1 -0
- package/dist/components/multi-select/multi-select.d.ts +83 -0
- package/dist/components/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/nav-link/index.d.ts +3 -0
- package/dist/components/nav-link/index.d.ts.map +1 -0
- package/dist/components/nav-link/index.js +11 -0
- package/dist/components/nav-link/index.js.map +1 -0
- package/dist/components/nav-link/nav-link.d.ts +40 -0
- package/dist/components/nav-link/nav-link.d.ts.map +1 -0
- package/dist/components/nav-link/navigation.d.ts +45 -0
- package/dist/components/nav-link/navigation.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.d.ts +38 -0
- package/dist/components/nav-link/tanstack.d.ts.map +1 -0
- package/dist/components/nav-link/tanstack.js +21 -0
- package/dist/components/nav-link/tanstack.js.map +1 -0
- package/dist/components/notification/create-notifier.d.ts +117 -0
- package/dist/components/notification/create-notifier.d.ts.map +1 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.d.ts.map +1 -0
- package/dist/components/notification/index.js +388 -0
- package/dist/components/notification/index.js.map +1 -0
- package/dist/components/notification/notification.d.ts +124 -0
- package/dist/components/notification/notification.d.ts.map +1 -0
- package/dist/components/notification/store.d.ts +42 -0
- package/dist/components/notification/store.d.ts.map +1 -0
- package/dist/components/notification/types.d.ts +62 -0
- package/dist/components/notification/types.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/number-input/index.js +16 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.d.ts +105 -0
- package/dist/components/number-input/number-input.d.ts.map +1 -0
- package/dist/components/overlays/create-overlays.d.ts +77 -0
- package/dist/components/overlays/create-overlays.d.ts.map +1 -0
- package/dist/components/overlays/index.d.ts +4 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/index.js +332 -0
- package/dist/components/overlays/index.js.map +1 -0
- package/dist/components/overlays/renderer.d.ts +30 -0
- package/dist/components/overlays/renderer.d.ts.map +1 -0
- package/dist/components/overlays/store.d.ts +33 -0
- package/dist/components/overlays/store.d.ts.map +1 -0
- package/dist/components/overlays/types.d.ts +119 -0
- package/dist/components/overlays/types.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/password-input/index.js +125 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/password-input/password-input.d.ts +65 -0
- package/dist/components/password-input/password-input.d.ts.map +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.d.ts.map +1 -0
- package/dist/components/pill/index.js +8 -0
- package/dist/components/pill/index.js.map +1 -0
- package/dist/components/pill/pill.d.ts +69 -0
- package/dist/components/pill/pill.d.ts.map +1 -0
- package/dist/components/pills-input/index.d.ts +2 -0
- package/dist/components/pills-input/index.d.ts.map +1 -0
- package/dist/components/pills-input/index.js +10 -0
- package/dist/components/pills-input/index.js.map +1 -0
- package/dist/components/pills-input/pills-input.d.ts +146 -0
- package/dist/components/pills-input/pills-input.d.ts.map +1 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +107 -0
- package/dist/components/pin-input/index.js.map +1 -0
- package/dist/components/pin-input/pin-input.d.ts +80 -0
- package/dist/components/pin-input/pin-input.d.ts.map +1 -0
- package/dist/components/popover/icons.d.ts +24 -0
- package/dist/components/popover/icons.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +10 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +190 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +111 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.d.ts +47 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +104 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +86 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/rating/icons.d.ts +19 -0
- package/dist/components/rating/icons.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +194 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +119 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/schedule/index.d.ts +98 -0
- package/dist/components/schedule/index.d.ts.map +1 -0
- package/dist/components/schedule/index.js +6582 -0
- package/dist/components/schedule/index.js.map +1 -0
- package/dist/components/schedule/now-cursor-line.d.ts +97 -0
- package/dist/components/schedule/now-cursor-line.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts +55 -0
- package/dist/components/schedule/schedule-agenda-list.d.ts.map +1 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts +48 -0
- package/dist/components/schedule/schedule-agenda-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts +100 -0
- package/dist/components/schedule/schedule-all-day-row.d.ts.map +1 -0
- package/dist/components/schedule/schedule-create-draft.d.ts +29 -0
- package/dist/components/schedule/schedule-create-draft.d.ts.map +1 -0
- package/dist/components/schedule/schedule-dates.d.ts +359 -0
- package/dist/components/schedule/schedule-dates.d.ts.map +1 -0
- package/dist/components/schedule/schedule-day-view.d.ts +24 -0
- package/dist/components/schedule/schedule-day-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-days-view.d.ts +60 -0
- package/dist/components/schedule/schedule-days-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts +34 -0
- package/dist/components/schedule/schedule-disabled-overlay.d.ts.map +1 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts +24 -0
- package/dist/components/schedule/schedule-drag-ghost.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-chip.d.ts +101 -0
- package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-details.d.ts +37 -0
- package/dist/components/schedule/schedule-event-details.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts +41 -0
- package/dist/components/schedule/schedule-event-list-popover-content.d.ts.map +1 -0
- package/dist/components/schedule/schedule-event-styles.d.ts +58 -0
- package/dist/components/schedule/schedule-event-styles.d.ts.map +1 -0
- package/dist/components/schedule/schedule-geometry.d.ts +291 -0
- package/dist/components/schedule/schedule-geometry.d.ts.map +1 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts +288 -0
- package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -0
- package/dist/components/schedule/schedule-layout.d.ts +83 -0
- package/dist/components/schedule/schedule-layout.d.ts.map +1 -0
- package/dist/components/schedule/schedule-month-view.d.ts +44 -0
- package/dist/components/schedule/schedule-month-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts +37 -0
- package/dist/components/schedule/schedule-next-up-grouping.d.ts.map +1 -0
- package/dist/components/schedule/schedule-next-up.d.ts +79 -0
- package/dist/components/schedule/schedule-next-up.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts +45 -0
- package/dist/components/schedule/schedule-overflow-chip.d.ts.map +1 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts +57 -0
- package/dist/components/schedule/schedule-overflow-popover.d.ts.map +1 -0
- package/dist/components/schedule/schedule-segments.d.ts +89 -0
- package/dist/components/schedule/schedule-segments.d.ts.map +1 -0
- package/dist/components/schedule/schedule-snap.d.ts +204 -0
- package/dist/components/schedule/schedule-snap.d.ts.map +1 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts +78 -0
- package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -0
- package/dist/components/schedule/schedule-toolbar.d.ts +107 -0
- package/dist/components/schedule/schedule-toolbar.d.ts.map +1 -0
- package/dist/components/schedule/schedule-types.d.ts +841 -0
- package/dist/components/schedule/schedule-types.d.ts.map +1 -0
- package/dist/components/schedule/schedule-views.d.ts +197 -0
- package/dist/components/schedule/schedule-views.d.ts.map +1 -0
- package/dist/components/schedule/schedule-week-view.d.ts +19 -0
- package/dist/components/schedule/schedule-week-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule-year-view.d.ts +38 -0
- package/dist/components/schedule/schedule-year-view.d.ts.map +1 -0
- package/dist/components/schedule/schedule.d.ts +163 -0
- package/dist/components/schedule/schedule.d.ts.map +1 -0
- package/dist/components/schedule/use-event-create.d.ts +54 -0
- package/dist/components/schedule/use-event-create.d.ts.map +1 -0
- package/dist/components/schedule/use-event-drag.d.ts +95 -0
- package/dist/components/schedule/use-event-drag.d.ts.map +1 -0
- package/dist/components/schedule/use-event-resize.d.ts +63 -0
- package/dist/components/schedule/use-event-resize.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule-selection.d.ts +74 -0
- package/dist/components/schedule/use-schedule-selection.d.ts.map +1 -0
- package/dist/components/schedule/use-schedule.d.ts +78 -0
- package/dist/components/schedule/use-schedule.d.ts.map +1 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/segment-group/index.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +10 -0
- package/dist/components/segment-group/index.js.map +1 -0
- package/dist/components/segment-group/segment-group.d.ts +187 -0
- package/dist/components/segment-group/segment-group.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +17 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +83 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +5 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +83 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +258 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.d.ts +90 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/sliderThumb.d.ts +1 -0
- package/dist/components/slider/sliderThumb.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +5 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +61 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +140 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.d.ts +48 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.d.ts +113 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs-data.d.ts +67 -0
- package/dist/components/tabs/tabs-data.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +96 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +203 -0
- package/dist/components/tags-input/index.js.map +1 -0
- package/dist/components/tags-input/tags-input.d.ts +68 -0
- package/dist/components/tags-input/tags-input.d.ts.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +6 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +50 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/text-input/index.js +34 -0
- package/dist/components/text-input/index.js.map +1 -0
- package/dist/components/text-input/text-input.d.ts +56 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +116 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +48 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/theme-icon/index.d.ts +2 -0
- package/dist/components/theme-icon/index.d.ts.map +1 -0
- package/dist/components/theme-icon/index.js +6 -0
- package/dist/components/theme-icon/index.js.map +1 -0
- package/dist/components/theme-icon/theme-icon.d.ts +34 -0
- package/dist/components/theme-icon/theme-icon.d.ts.map +1 -0
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/index.js +29 -0
- package/dist/components/theme-script/index.js.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +41 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/time-input/hour-cycle.d.ts +32 -0
- package/dist/components/time-input/hour-cycle.d.ts.map +1 -0
- package/dist/components/time-input/index.d.ts +3 -0
- package/dist/components/time-input/index.d.ts.map +1 -0
- package/dist/components/time-input/index.js +125 -0
- package/dist/components/time-input/index.js.map +1 -0
- package/dist/components/time-input/time-input.d.ts +63 -0
- package/dist/components/time-input/time-input.d.ts.map +1 -0
- package/dist/components/time-input/time-row.d.ts +72 -0
- package/dist/components/time-input/time-row.d.ts.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +372 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +194 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/title/index.d.ts +2 -0
- package/dist/components/title/index.d.ts.map +1 -0
- package/dist/components/title/index.js +6 -0
- package/dist/components/title/index.js.map +1 -0
- package/dist/components/title/title.d.ts +47 -0
- package/dist/components/title/title.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +70 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.d.ts +3 -0
- package/dist/components/tree-multi-select/index.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +424 -0
- package/dist/components/tree-multi-select/index.js.map +1 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +72 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -0
- package/dist/components/tree-select/index.d.ts +3 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +425 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.d.ts +68 -0
- package/dist/components/tree-select/tree-select.d.ts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +269 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/align.d.ts +7 -0
- package/dist/lib/align.d.ts.map +1 -0
- package/dist/lib/available-if.d.ts +114 -0
- package/dist/lib/available-if.d.ts.map +1 -0
- package/dist/lib/brand.d.ts +22 -0
- package/dist/lib/brand.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +14 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +3 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/colors.d.ts +14 -0
- package/dist/lib/colors.d.ts.map +1 -0
- package/dist/lib/control-open.d.ts +28 -0
- package/dist/lib/control-open.d.ts.map +1 -0
- package/dist/lib/date-predicates.d.ts +28 -0
- package/dist/lib/date-predicates.d.ts.map +1 -0
- package/dist/lib/date-value.d.ts +45 -0
- package/dist/lib/date-value.d.ts.map +1 -0
- package/dist/lib/dev-warn.d.ts +2 -0
- package/dist/lib/dev-warn.d.ts.map +1 -0
- package/dist/lib/focus-styles.d.ts +102 -0
- package/dist/lib/focus-styles.d.ts.map +1 -0
- package/dist/lib/form-control.d.ts +72 -0
- package/dist/lib/form-control.d.ts.map +1 -0
- package/dist/lib/gradient.d.ts +31 -0
- package/dist/lib/gradient.d.ts.map +1 -0
- package/dist/lib/intl.d.ts +77 -0
- package/dist/lib/intl.d.ts.map +1 -0
- package/dist/lib/link-component.d.ts +13 -0
- package/dist/lib/link-component.d.ts.map +1 -0
- package/dist/lib/merge-refs.d.ts +12 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/overlay-container.d.ts +14 -0
- package/dist/lib/overlay-container.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +51 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/placement.d.ts +16 -0
- package/dist/lib/placement.d.ts.map +1 -0
- package/dist/lib/props.d.ts +40 -0
- package/dist/lib/props.d.ts.map +1 -0
- package/dist/lib/required-if.d.ts +46 -0
- package/dist/lib/required-if.d.ts.map +1 -0
- package/dist/lib/schedule-predicates.d.ts +72 -0
- package/dist/lib/schedule-predicates.d.ts.map +1 -0
- package/dist/lib/select-data.d.ts +135 -0
- package/dist/lib/select-data.d.ts.map +1 -0
- package/dist/lib/sizes.d.ts +20 -0
- package/dist/lib/sizes.d.ts.map +1 -0
- package/dist/lib/test-id.d.ts +30 -0
- package/dist/lib/test-id.d.ts.map +1 -0
- package/dist/lib/theme-init-runtime.d.ts +26 -0
- package/dist/lib/theme-init-runtime.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +93 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +99 -0
- package/dist/lib/tree-data.d.ts.map +1 -0
- package/dist/lib/typography-size.d.ts +49 -0
- package/dist/lib/typography-size.d.ts.map +1 -0
- package/dist/lib/use-container-query.d.ts +19 -0
- package/dist/lib/use-container-query.d.ts.map +1 -0
- package/dist/lib/use-disclosure.d.ts +35 -0
- package/dist/lib/use-disclosure.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +12 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-local-storage.d.ts +45 -0
- package/dist/lib/use-local-storage.d.ts.map +1 -0
- package/dist/lib/use-logger.d.ts +2 -0
- package/dist/lib/use-logger.d.ts.map +1 -0
- package/dist/lib/use-media-query.d.ts +11 -0
- package/dist/lib/use-media-query.d.ts.map +1 -0
- package/dist/lib/use-now.d.ts +7 -0
- package/dist/lib/use-now.d.ts.map +1 -0
- package/dist/lib/use-theme.d.ts +101 -0
- package/dist/lib/use-theme.d.ts.map +1 -0
- package/dist/lib/use-uncontrolled.d.ts +45 -0
- package/dist/lib/use-uncontrolled.d.ts.map +1 -0
- package/dist/styles.css +17 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/theme-init-script.d.ts +2 -0
- package/dist/theme-init-script.d.ts.map +1 -0
- package/dist/theme-init.js +2 -0
- package/dist/theme-init.js.map +1 -0
- package/dist/theme.css +1275 -0
- package/package.json +99 -3
- package/src/colors.css +296 -0
- package/src/components/accordion/accordion-data.tsx +86 -0
- package/src/components/accordion/accordion.test.tsx +234 -0
- package/src/components/accordion/accordion.tsx +336 -0
- package/src/components/accordion/index.ts +18 -0
- package/src/components/action-icon/action-icon.test.tsx +57 -0
- package/src/components/action-icon/action-icon.tsx +180 -0
- package/src/components/action-icon/index.ts +12 -0
- package/src/components/alert/alert.test.tsx +125 -0
- package/src/components/alert/alert.tsx +158 -0
- package/src/components/alert/index.ts +3 -0
- package/src/components/ambient-background/ambient-background.test.tsx +64 -0
- package/src/components/ambient-background/ambient-background.tsx +76 -0
- package/src/components/ambient-background/index.ts +1 -0
- package/src/components/app-shell/app-shell.test.tsx +271 -0
- package/src/components/app-shell/app-shell.tsx +492 -0
- package/src/components/app-shell/index.ts +17 -0
- package/src/components/autocomplete/autocomplete.test.tsx +120 -0
- package/src/components/autocomplete/autocomplete.tsx +249 -0
- package/src/components/autocomplete/index.ts +11 -0
- package/src/components/avatar/avatar.test.tsx +345 -0
- package/src/components/avatar/avatar.tsx +456 -0
- package/src/components/avatar/index.ts +12 -0
- package/src/components/badge/badge.test.tsx +51 -0
- package/src/components/badge/badge.tsx +148 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +238 -0
- package/src/components/breadcrumb/breadcrumb.tsx +348 -0
- package/src/components/breadcrumb/index.ts +9 -0
- package/src/components/button/button.test.tsx +87 -0
- package/src/components/button/button.tsx +253 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.test.tsx +168 -0
- package/src/components/button-group/button-group.tsx +121 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/button-multi-select/button-multi-select.test.tsx +146 -0
- package/src/components/button-multi-select/button-multi-select.tsx +76 -0
- package/src/components/button-multi-select/index.ts +17 -0
- package/src/components/button-select/button-select-control.tsx +153 -0
- package/src/components/button-select/button-select-data.tsx +96 -0
- package/src/components/button-select/button-select-items.ts +103 -0
- package/src/components/button-select/button-select.test.tsx +239 -0
- package/src/components/button-select/button-select.tsx +323 -0
- package/src/components/button-select/index.ts +14 -0
- package/src/components/calendar/calendar-body.tsx +403 -0
- package/src/components/calendar/calendar.test.tsx +278 -0
- package/src/components/calendar/calendar.tsx +220 -0
- package/src/components/calendar/index.ts +10 -0
- package/src/components/card/card.tsx +211 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/chart/chart.test.tsx +98 -0
- package/src/components/chart/chart.tsx +192 -0
- package/src/components/chart/index.ts +8 -0
- package/src/components/chart/styles.css +50 -0
- package/src/components/checkbox/checkbox.test.tsx +113 -0
- package/src/components/checkbox/checkbox.tsx +182 -0
- package/src/components/checkbox/control.ts +76 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/choice-card-group/choice-card-group.test.tsx +250 -0
- package/src/components/choice-card-group/choice-card-group.tsx +549 -0
- package/src/components/choice-card-group/index.ts +9 -0
- package/src/components/circular-progress/circular-progress.test.tsx +120 -0
- package/src/components/circular-progress/circular-progress.tsx +214 -0
- package/src/components/circular-progress/index.ts +15 -0
- package/src/components/clipboard/clipboard.test.tsx +229 -0
- package/src/components/clipboard/clipboard.tsx +128 -0
- package/src/components/clipboard/copy.tsx +127 -0
- package/src/components/clipboard/index.ts +12 -0
- package/src/components/code/code.test.tsx +57 -0
- package/src/components/code/code.tsx +54 -0
- package/src/components/code/index.ts +1 -0
- package/src/components/code-block/chrome.tsx +347 -0
- package/src/components/code-block/code-block.test.tsx +252 -0
- package/src/components/code-block/code-block.tsx +254 -0
- package/src/components/code-block/diff.test.ts +177 -0
- package/src/components/code-block/diff.ts +114 -0
- package/src/components/code-block/gutters.test.ts +280 -0
- package/src/components/code-block/gutters.ts +260 -0
- package/src/components/code-block/highlighter.test.ts +261 -0
- package/src/components/code-block/highlighter.ts +290 -0
- package/src/components/code-block/index.ts +53 -0
- package/src/components/code-block/notation.test.ts +166 -0
- package/src/components/code-block/notation.ts +233 -0
- package/src/components/code-block/presets.test.ts +43 -0
- package/src/components/code-block/presets.ts +28 -0
- package/src/components/code-block/static.tsx +130 -0
- package/src/components/code-block/styles.css +198 -0
- package/src/components/collapse/collapse.test.tsx +96 -0
- package/src/components/collapse/collapse.tsx +81 -0
- package/src/components/collapse/index.ts +1 -0
- package/src/components/combobox/combobox.tsx +317 -0
- package/src/components/combobox/index.ts +15 -0
- package/src/components/combobox-list/combobox-list.test.tsx +148 -0
- package/src/components/combobox-list/combobox-list.tsx +276 -0
- package/src/components/combobox-list/index.ts +3 -0
- package/src/components/container/container.tsx +47 -0
- package/src/components/container/index.ts +1 -0
- package/src/components/data-table/data-table-features.ts +127 -0
- package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +275 -0
- package/src/components/data-table/data-table-filter/data-table-filter-fns.ts +126 -0
- package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +74 -0
- package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +47 -0
- package/src/components/data-table/data-table-filter/data-table-text-filter.tsx +29 -0
- package/src/components/data-table/data-table-filter/index.tsx +62 -0
- package/src/components/data-table/data-table-filter/utils.ts +112 -0
- package/src/components/data-table/data-table-filter-fns.test.tsx +145 -0
- package/src/components/data-table/data-table-filter.test.tsx +365 -0
- package/src/components/data-table/data-table-header-cell.tsx +292 -0
- package/src/components/data-table/data-table-meta.ts +102 -0
- package/src/components/data-table/data-table-pagination.tsx +175 -0
- package/src/components/data-table/data-table-placeholder.tsx +61 -0
- package/src/components/data-table/data-table-schema.test.tsx +22 -0
- package/src/components/data-table/data-table-schema.ts +23 -0
- package/src/components/data-table/data-table-skeleton.ts +9 -0
- package/src/components/data-table/data-table-stack.tsx +376 -0
- package/src/components/data-table/data-table-state.ts +35 -0
- package/src/components/data-table/data-table-toolbar.tsx +81 -0
- package/src/components/data-table/data-table.test.tsx +1143 -0
- package/src/components/data-table/data-table.tsx +829 -0
- package/src/components/data-table/index.ts +46 -0
- package/src/components/date-picker/aliases.tsx +15 -0
- package/src/components/date-picker/date-picker.test.tsx +699 -0
- package/src/components/date-picker/date-picker.tsx +1000 -0
- package/src/components/date-picker/date-time-text.test.ts +68 -0
- package/src/components/date-picker/date-time-text.ts +103 -0
- package/src/components/date-picker/index.ts +32 -0
- package/src/components/divider/divider.test.tsx +106 -0
- package/src/components/divider/divider.tsx +162 -0
- package/src/components/divider/index.ts +8 -0
- package/src/components/drawer/drawer.tsx +405 -0
- package/src/components/drawer/index.ts +21 -0
- package/src/components/field/field.tsx +235 -0
- package/src/components/field/index.ts +3 -0
- package/src/components/file-upload/file-upload.test.tsx +47 -0
- package/src/components/file-upload/file-upload.tsx +280 -0
- package/src/components/file-upload/index.ts +3 -0
- package/src/components/flex/flex.tsx +81 -0
- package/src/components/flex/index.ts +1 -0
- package/src/components/grid/grid.tsx +52 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/hover-card/hover-card.test.tsx +192 -0
- package/src/components/hover-card/hover-card.tsx +376 -0
- package/src/components/hover-card/index.ts +9 -0
- package/src/components/indicator/index.ts +6 -0
- package/src/components/indicator/indicator.test.tsx +241 -0
- package/src/components/indicator/indicator.tsx +275 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.test.tsx +111 -0
- package/src/components/input/input.tsx +320 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.test.tsx +20 -0
- package/src/components/kbd/kbd.tsx +98 -0
- package/src/components/mark/index.ts +1 -0
- package/src/components/mark/mark.test.tsx +85 -0
- package/src/components/mark/mark.tsx +79 -0
- package/src/components/menu/index.ts +27 -0
- package/src/components/menu/menu-data.tsx +230 -0
- package/src/components/menu/menu.test.tsx +547 -0
- package/src/components/menu/menu.tsx +514 -0
- package/src/components/modal/index.ts +14 -0
- package/src/components/modal/modal.tsx +420 -0
- package/src/components/multi-combobox-list/index.ts +3 -0
- package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +190 -0
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +308 -0
- package/src/components/multi-select/index.ts +12 -0
- package/src/components/multi-select/multi-select.test.tsx +248 -0
- package/src/components/multi-select/multi-select.tsx +355 -0
- package/src/components/nav-link/index.ts +4 -0
- package/src/components/nav-link/nav-link.test.tsx +107 -0
- package/src/components/nav-link/nav-link.tsx +205 -0
- package/src/components/nav-link/navigation.test.tsx +117 -0
- package/src/components/nav-link/navigation.tsx +81 -0
- package/src/components/nav-link/tanstack.tsx +67 -0
- package/src/components/notification/create-notifier.tsx +517 -0
- package/src/components/notification/index.ts +20 -0
- package/src/components/notification/notification.test.tsx +306 -0
- package/src/components/notification/notification.tsx +353 -0
- package/src/components/notification/store.ts +159 -0
- package/src/components/notification/types.ts +67 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/number-input.test.tsx +291 -0
- package/src/components/number-input/number-input.tsx +407 -0
- package/src/components/overlays/create-overlays.tsx +267 -0
- package/src/components/overlays/index.ts +25 -0
- package/src/components/overlays/renderer.tsx +214 -0
- package/src/components/overlays/store.ts +103 -0
- package/src/components/overlays/types.ts +150 -0
- package/src/components/password-input/index.ts +3 -0
- package/src/components/password-input/password-input.test.tsx +94 -0
- package/src/components/password-input/password-input.tsx +191 -0
- package/src/components/pill/index.ts +9 -0
- package/src/components/pill/pill.test.tsx +22 -0
- package/src/components/pill/pill.tsx +221 -0
- package/src/components/pills-input/index.ts +12 -0
- package/src/components/pills-input/pills-input.test.ts +136 -0
- package/src/components/pills-input/pills-input.tsx +422 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/pin-input.test.tsx +74 -0
- package/src/components/pin-input/pin-input.tsx +186 -0
- package/src/components/popover/icons.tsx +129 -0
- package/src/components/popover/index.ts +8 -0
- package/src/components/popover/popover.test.tsx +223 -0
- package/src/components/popover/popover.tsx +635 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/progress/progress.test.tsx +112 -0
- package/src/components/progress/progress.tsx +194 -0
- package/src/components/radio-group/index.ts +9 -0
- package/src/components/radio-group/radio-group.test.tsx +107 -0
- package/src/components/radio-group/radio-group.tsx +207 -0
- package/src/components/rating/icons.tsx +35 -0
- package/src/components/rating/index.ts +9 -0
- package/src/components/rating/rating.test.tsx +288 -0
- package/src/components/rating/rating.tsx +389 -0
- package/src/components/schedule/index.ts +170 -0
- package/src/components/schedule/now-cursor-line.test.tsx +262 -0
- package/src/components/schedule/now-cursor-line.tsx +343 -0
- package/src/components/schedule/schedule-agenda-list.tsx +480 -0
- package/src/components/schedule/schedule-agenda-view.test.tsx +333 -0
- package/src/components/schedule/schedule-agenda-view.tsx +209 -0
- package/src/components/schedule/schedule-all-day-row.test.ts +187 -0
- package/src/components/schedule/schedule-all-day-row.tsx +616 -0
- package/src/components/schedule/schedule-create-draft.tsx +181 -0
- package/src/components/schedule/schedule-dates.test.ts +771 -0
- package/src/components/schedule/schedule-dates.ts +721 -0
- package/src/components/schedule/schedule-day-view.tsx +30 -0
- package/src/components/schedule/schedule-days-view.tsx +277 -0
- package/src/components/schedule/schedule-details-popover.test.tsx +765 -0
- package/src/components/schedule/schedule-disabled-overlay.tsx +51 -0
- package/src/components/schedule/schedule-drag-ghost.tsx +157 -0
- package/src/components/schedule/schedule-event-chip.tsx +1176 -0
- package/src/components/schedule/schedule-event-details.tsx +101 -0
- package/src/components/schedule/schedule-event-list-popover-content.tsx +149 -0
- package/src/components/schedule/schedule-event-styles.ts +60 -0
- package/src/components/schedule/schedule-geometry.test.ts +426 -0
- package/src/components/schedule/schedule-geometry.ts +461 -0
- package/src/components/schedule/schedule-grid-gesture.test.ts +153 -0
- package/src/components/schedule/schedule-grid-gesture.ts +567 -0
- package/src/components/schedule/schedule-layout.test.ts +260 -0
- package/src/components/schedule/schedule-layout.ts +270 -0
- package/src/components/schedule/schedule-month-view.test.tsx +193 -0
- package/src/components/schedule/schedule-month-view.tsx +688 -0
- package/src/components/schedule/schedule-next-up-grouping.test.ts +95 -0
- package/src/components/schedule/schedule-next-up-grouping.ts +69 -0
- package/src/components/schedule/schedule-next-up.test.tsx +189 -0
- package/src/components/schedule/schedule-next-up.tsx +136 -0
- package/src/components/schedule/schedule-overflow-chip.tsx +156 -0
- package/src/components/schedule/schedule-overflow-popover.tsx +173 -0
- package/src/components/schedule/schedule-segments.test.ts +201 -0
- package/src/components/schedule/schedule-segments.ts +120 -0
- package/src/components/schedule/schedule-snap.test.ts +546 -0
- package/src/components/schedule/schedule-snap.ts +380 -0
- package/src/components/schedule/schedule-timed-grid.tsx +1609 -0
- package/src/components/schedule/schedule-toolbar.tsx +264 -0
- package/src/components/schedule/schedule-type-cost.test.ts +104 -0
- package/src/components/schedule/schedule-types.test.ts +64 -0
- package/src/components/schedule/schedule-types.ts +1149 -0
- package/src/components/schedule/schedule-views.test.ts +263 -0
- package/src/components/schedule/schedule-views.ts +293 -0
- package/src/components/schedule/schedule-week-view.tsx +25 -0
- package/src/components/schedule/schedule-year-view.test.tsx +105 -0
- package/src/components/schedule/schedule-year-view.tsx +305 -0
- package/src/components/schedule/schedule.test.tsx +4268 -0
- package/src/components/schedule/schedule.tsx +1038 -0
- package/src/components/schedule/use-event-create.ts +590 -0
- package/src/components/schedule/use-event-drag.ts +504 -0
- package/src/components/schedule/use-event-resize.ts +563 -0
- package/src/components/schedule/use-schedule-selection.ts +119 -0
- package/src/components/schedule/use-schedule.test.ts +91 -0
- package/src/components/schedule/use-schedule.ts +135 -0
- package/src/components/segment-group/index.ts +15 -0
- package/src/components/segment-group/segment-group.test.tsx +172 -0
- package/src/components/segment-group/segment-group.tsx +570 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.test.tsx +173 -0
- package/src/components/select/select.tsx +405 -0
- package/src/components/skeleton/index.ts +7 -0
- package/src/components/skeleton/skeleton.test.tsx +96 -0
- package/src/components/skeleton/skeleton.tsx +178 -0
- package/src/components/slider/index.ts +3 -0
- package/src/components/slider/slider.test.tsx +136 -0
- package/src/components/slider/slider.tsx +390 -0
- package/src/components/slider/sliderThumb.tsx +0 -0
- package/src/components/spinner/index.ts +6 -0
- package/src/components/spinner/spinner.tsx +136 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/switch.test.tsx +98 -0
- package/src/components/switch/switch.tsx +234 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/table.test.tsx +262 -0
- package/src/components/table/table.tsx +309 -0
- package/src/components/tabs/index.ts +17 -0
- package/src/components/tabs/tabs-data.tsx +125 -0
- package/src/components/tabs/tabs.test.tsx +172 -0
- package/src/components/tabs/tabs.tsx +292 -0
- package/src/components/tags-input/index.ts +3 -0
- package/src/components/tags-input/tags-input.test.tsx +85 -0
- package/src/components/tags-input/tags-input.tsx +294 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.test.tsx +73 -0
- package/src/components/text/text.tsx +107 -0
- package/src/components/text-input/index.ts +3 -0
- package/src/components/text-input/text-input.test.tsx +129 -0
- package/src/components/text-input/text-input.tsx +88 -0
- package/src/components/textarea/index.ts +3 -0
- package/src/components/textarea/textarea.test.tsx +88 -0
- package/src/components/textarea/textarea.tsx +205 -0
- package/src/components/theme-icon/index.ts +7 -0
- package/src/components/theme-icon/theme-icon.test.tsx +20 -0
- package/src/components/theme-icon/theme-icon.tsx +114 -0
- package/src/components/theme-script/index.ts +1 -0
- package/src/components/theme-script/theme-script.tsx +68 -0
- package/src/components/time-input/hour-cycle.ts +61 -0
- package/src/components/time-input/index.ts +4 -0
- package/src/components/time-input/time-input.test.tsx +292 -0
- package/src/components/time-input/time-input.tsx +196 -0
- package/src/components/time-input/time-row.tsx +305 -0
- package/src/components/timeline/index.ts +11 -0
- package/src/components/timeline/timeline.test.tsx +701 -0
- package/src/components/timeline/timeline.tsx +720 -0
- package/src/components/title/index.ts +1 -0
- package/src/components/title/title.test.tsx +68 -0
- package/src/components/title/title.tsx +95 -0
- package/src/components/tooltip/index.ts +9 -0
- package/src/components/tooltip/tooltip.test.tsx +96 -0
- package/src/components/tooltip/tooltip.tsx +255 -0
- package/src/components/tree-multi-select/index.ts +11 -0
- package/src/components/tree-multi-select/tree-multi-select.test.tsx +327 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +626 -0
- package/src/components/tree-select/index.ts +11 -0
- package/src/components/tree-select/tree-select.test.tsx +376 -0
- package/src/components/tree-select/tree-select.tsx +634 -0
- package/src/index.ts +64 -0
- package/src/lib/align.ts +6 -0
- package/src/lib/available-if.test.ts +76 -0
- package/src/lib/available-if.ts +114 -0
- package/src/lib/brand.ts +19 -0
- package/src/lib/cn.test.ts +13 -0
- package/src/lib/cn.ts +28 -0
- package/src/lib/colors.ts +31 -0
- package/src/lib/control-open.ts +38 -0
- package/src/lib/date-predicates.test.ts +149 -0
- package/src/lib/date-predicates.ts +83 -0
- package/src/lib/date-value.test.ts +107 -0
- package/src/lib/date-value.ts +76 -0
- package/src/lib/dev-warn.ts +18 -0
- package/src/lib/focus-styles.test.ts +138 -0
- package/src/lib/focus-styles.ts +145 -0
- package/src/lib/form-control.ts +72 -0
- package/src/lib/gradient.ts +81 -0
- package/src/lib/intl-direction.test.tsx +96 -0
- package/src/lib/intl.test.tsx +162 -0
- package/src/lib/intl.tsx +210 -0
- package/src/lib/link-component.test.tsx +46 -0
- package/src/lib/link-component.tsx +32 -0
- package/src/lib/merge-refs.ts +20 -0
- package/src/lib/overlay-container.test.tsx +69 -0
- package/src/lib/overlay-container.tsx +64 -0
- package/src/lib/overlay-layer.test.tsx +139 -0
- package/src/lib/overlay-layer.tsx +81 -0
- package/src/lib/placement.ts +23 -0
- package/src/lib/props.ts +48 -0
- package/src/lib/required-if.ts +57 -0
- package/src/lib/schedule-predicates.test.ts +230 -0
- package/src/lib/schedule-predicates.ts +193 -0
- package/src/lib/select-data.ts +227 -0
- package/src/lib/sizes.ts +20 -0
- package/src/lib/test-id.ts +27 -0
- package/src/lib/theme-init-runtime.test.ts +152 -0
- package/src/lib/theme-init-runtime.ts +79 -0
- package/src/lib/theme.test.ts +223 -0
- package/src/lib/theme.ts +153 -0
- package/src/lib/tree-data.ts +159 -0
- package/src/lib/typography-size.ts +59 -0
- package/src/lib/use-container-query.test.ts +83 -0
- package/src/lib/use-container-query.ts +44 -0
- package/src/lib/use-disclosure.test.ts +85 -0
- package/src/lib/use-disclosure.ts +77 -0
- package/src/lib/use-isomorphic-layout-effect.ts +12 -0
- package/src/lib/use-local-storage.test.ts +165 -0
- package/src/lib/use-local-storage.ts +178 -0
- package/src/lib/use-logger.ts +39 -0
- package/src/lib/use-media-query.test.ts +77 -0
- package/src/lib/use-media-query.ts +35 -0
- package/src/lib/use-now.ts +59 -0
- package/src/lib/use-theme.test.ts +305 -0
- package/src/lib/use-theme.ts +279 -0
- package/src/lib/use-uncontrolled.test.ts +207 -0
- package/src/lib/use-uncontrolled.ts +85 -0
- package/src/styles.css +17 -0
- package/src/test-setup.ts +130 -0
- package/src/theme-init-script.ts +10 -0
- package/src/theme.css +1275 -0
- package/src/theme.forced-colors.test.tsx +215 -0
- package/src/theme.test.ts +221 -0
- package/src/visually-hidden-containment.test.tsx +98 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { GRADIENT_DIR_CLASS, buildGradientVars } from '../../chunk-SKPM2FRX.js';
|
|
3
|
+
import { props } from '../../chunk-WYCMIIRR.js';
|
|
4
|
+
import { cn } from '../../chunk-QP4I37PA.js';
|
|
5
|
+
import { Progress as Progress$1 } from '@ark-ui/react/progress';
|
|
6
|
+
import { cva } from 'class-variance-authority';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var progressTrack = cva(
|
|
10
|
+
// `overflow-x-clip` clips the Range's rounded ends to the track's pill shape
|
|
11
|
+
// (mirrors Slider's track); `relative` anchors the indeterminate sweep, whose
|
|
12
|
+
// moving bar is positioned within the track's box.
|
|
13
|
+
"relative w-full overflow-x-clip rounded-full bg-black/3 dark:bg-white/4",
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
xs: "h-0.5",
|
|
18
|
+
sm: "h-1",
|
|
19
|
+
md: "h-1.5",
|
|
20
|
+
lg: "h-2",
|
|
21
|
+
xl: "h-3"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: { size: "md" }
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
var progressRange = cva("h-full rounded-full", {
|
|
28
|
+
variants: {
|
|
29
|
+
variant: {
|
|
30
|
+
filled: "bg-(--c-solid)",
|
|
31
|
+
// Removed is it was ugly
|
|
32
|
+
// light: "bg-(--c-soft)",
|
|
33
|
+
// from-*/to-* are the CSS defaults for --tw-gradient-from/to and the
|
|
34
|
+
// --tw-gradient-stops composition chain. A `gradient` prop only overrides
|
|
35
|
+
// the individual vars it provides; the direction class is appended
|
|
36
|
+
// dynamically (mirrors Badge's gradient variant).
|
|
37
|
+
//
|
|
38
|
+
// The gradient is stretched to the full track width and pinned to the
|
|
39
|
+
// start (see the Range `style` below), so the Range reveals only its left
|
|
40
|
+
// slice — the complete from→to shows only at 100%. `bg-no-repeat` keeps
|
|
41
|
+
// the stretched image from tiling.
|
|
42
|
+
gradient: "bg-linear-to-r from-purple-300 to-pink-400 bg-no-repeat bg-left"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
defaultVariants: { variant: "filled" }
|
|
46
|
+
});
|
|
47
|
+
var Progress = ({
|
|
48
|
+
value,
|
|
49
|
+
defaultValue,
|
|
50
|
+
onChange,
|
|
51
|
+
variant,
|
|
52
|
+
size,
|
|
53
|
+
color,
|
|
54
|
+
gradient,
|
|
55
|
+
min = 0,
|
|
56
|
+
max = 100,
|
|
57
|
+
ref,
|
|
58
|
+
className,
|
|
59
|
+
classNames,
|
|
60
|
+
style,
|
|
61
|
+
testId,
|
|
62
|
+
...rest
|
|
63
|
+
}) => {
|
|
64
|
+
const isGradient = variant === "gradient";
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
Progress$1.Root,
|
|
67
|
+
{
|
|
68
|
+
value,
|
|
69
|
+
defaultValue,
|
|
70
|
+
onValueChange: onChange ? ({ value: v }) => onChange(v) : void 0,
|
|
71
|
+
min,
|
|
72
|
+
max,
|
|
73
|
+
"data-color": !isGradient ? color : void 0,
|
|
74
|
+
className: cn("group/progress w-full", className, classNames?.root),
|
|
75
|
+
style,
|
|
76
|
+
...rest,
|
|
77
|
+
children: /* @__PURE__ */ jsx(
|
|
78
|
+
Progress$1.Track,
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
className: cn(progressTrack({ size }), classNames?.track),
|
|
82
|
+
...props({ "data-testid": testId }),
|
|
83
|
+
children: /* @__PURE__ */ jsx(
|
|
84
|
+
Progress$1.Range,
|
|
85
|
+
{
|
|
86
|
+
style: isGradient ? {
|
|
87
|
+
backgroundSize: "calc(10000% / var(--percent, 100)) 100%",
|
|
88
|
+
...gradient ? buildGradientVars(gradient) : null
|
|
89
|
+
} : void 0,
|
|
90
|
+
className: cn(
|
|
91
|
+
progressRange({ variant }),
|
|
92
|
+
isGradient && gradient?.dir && GRADIENT_DIR_CLASS[gradient.dir],
|
|
93
|
+
// Indeterminate: Ark omits the inline width, so the Range would
|
|
94
|
+
// otherwise fill the track. Pin it to a fraction and animate a
|
|
95
|
+
// clipped sweep. `group-data-[state=…]` reads the state Ark stamps
|
|
96
|
+
// on the root.
|
|
97
|
+
"group-data-[state=indeterminate]/progress:w-2/5",
|
|
98
|
+
"group-data-[state=indeterminate]/progress:animate-progress-indeterminate",
|
|
99
|
+
classNames?.range
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export { Progress };
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
111
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/progress/progress.tsx"],"names":["Ark"],"mappings":";;;;;;;AAoCA,IAAM,aAAA,GAAgB,GAAA;AAAA;AAAA;AAAA;AAAA,EAIpB,yEAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,IAAA,EAAM;AAAA,QACJ,EAAA,EAAI,OAAA;AAAA,QACJ,EAAA,EAAI,KAAA;AAAA,QACJ,EAAA,EAAI,OAAA;AAAA,QACJ,EAAA,EAAI,KAAA;AAAA,QACJ,EAAA,EAAI;AAAA;AACN,KACF;AAAA,IACA,eAAA,EAAiB,EAAE,IAAA,EAAM,IAAA;AAAK;AAElC,CAAA;AAEA,IAAM,aAAA,GAAgB,IAAI,qBAAA,EAAuB;AAAA,EAC/C,QAAA,EAAU;AAAA,IACR,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,gBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAYR,QAAA,EAAU;AAAA;AACZ,GACF;AAAA,EACA,eAAA,EAAiB,EAAE,OAAA,EAAS,QAAA;AAC9B,CAAC,CAAA;AA+CM,IAAM,WAAW,CAAC;AAAA,EACvB,KAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAA,GAAM,CAAA;AAAA,EACN,GAAA,GAAM,GAAA;AAAA,EACN,GAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAqB;AACnB,EAAA,MAAM,aAAa,OAAA,KAAY,UAAA;AAE/B,EAAA,uBACE,GAAA;AAAA,IAACA,UAAA,CAAI,IAAA;AAAA,IAAJ;AAAA,MAGC,KAAA;AAAA,MACA,YAAA;AAAA,MACA,aAAA,EAAe,WAAW,CAAC,EAAE,OAAO,CAAA,EAAE,KAAM,QAAA,CAAS,CAAC,CAAA,GAAI,MAAA;AAAA,MAC1D,GAAA;AAAA,MACA,GAAA;AAAA,MACA,YAAA,EAAY,CAAC,UAAA,GAAa,KAAA,GAAQ,MAAA;AAAA,MAClC,SAAA,EAAW,EAAA,CAAG,uBAAA,EAAyB,SAAA,EAAW,YAAY,IAAI,CAAA;AAAA,MAClE,KAAA;AAAA,MACC,GAAG,IAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAACA,UAAA,CAAI,KAAA;AAAA,QAAJ;AAAA,UACC,GAAA;AAAA,UACA,SAAA,EAAW,GAAG,aAAA,CAAc,EAAE,MAAM,CAAA,EAAG,YAAY,KAAK,CAAA;AAAA,UACvD,GAAG,KAAA,CAAM,EAAE,aAAA,EAAe,QAAQ,CAAA;AAAA,UAEnC,QAAA,kBAAA,GAAA;AAAA,YAACA,UAAA,CAAI,KAAA;AAAA,YAAJ;AAAA,cAWC,OACE,UAAA,GACI;AAAA,gBACE,cAAA,EAAgB,yCAAA;AAAA,gBAChB,GAAI,QAAA,GAAW,iBAAA,CAAkB,QAAQ,CAAA,GAAI;AAAA,eAC/C,GACA,MAAA;AAAA,cAEN,SAAA,EAAW,EAAA;AAAA,gBACT,aAAA,CAAc,EAAE,OAAA,EAAS,CAAA;AAAA,gBACzB,UAAA,IAAc,QAAA,EAAU,GAAA,IAAO,kBAAA,CAAmB,SAAS,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK9D,iDAAA;AAAA,gBACA,0EAAA;AAAA,gBACA,UAAA,EAAY;AAAA;AACd;AAAA;AACF;AAAA;AACF;AAAA,GACF;AAEJ","file":"index.js","sourcesContent":["import { Progress as Ark } from \"@ark-ui/react/progress\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport type { ComponentPropsWithoutRef, CSSProperties, Ref } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport {\n buildGradientVars,\n GRADIENT_DIR_CLASS,\n type GradientDir,\n type GradientProps,\n} from \"../../lib/gradient\"\nimport { props } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\n\n/**\n * Progress — linear progress bar on top of Ark UI's Progress state machine.\n * Ark owns `role=\"progressbar\"`, the ARIA value wiring, the percent math, and\n * the indeterminate flag; this wrapper supplies the styled Track + Range and a\n * flatter API.\n *\n * - `value` is a single number in `min..max`. Pass `null` for the\n * indeterminate state — Ark drops the inline width and we drive an animated\n * sweep purely in CSS. Leaving both `value` and `defaultValue` unset makes\n * the bar uncontrolled (Ark's own default).\n * - Three fill `variant`s: `filled` (solid accent, the default), `light`\n * (soft tint), and `gradient` (a Tailwind linear gradient on the Range,\n * mirroring `Badge`).\n *\n * Palette is delivered through the kit's `data-color` + slot-var system\n * (see `colors.ts` / `colors.css`). The root writes `data-color={color}` and\n * the Range references `--c-solid` / `--c-soft`, so adding a color in\n * `colors.css` works here for free — no progress edits needed. `gradient`\n * sidesteps the slot vars and paints its own stops on the Range instead.\n */\n\nconst progressTrack = cva(\n // `overflow-x-clip` clips the Range's rounded ends to the track's pill shape\n // (mirrors Slider's track); `relative` anchors the indeterminate sweep, whose\n // moving bar is positioned within the track's box.\n \"relative w-full overflow-x-clip rounded-full bg-black/3 dark:bg-white/4\",\n {\n variants: {\n size: {\n xs: \"h-0.5\",\n sm: \"h-1\",\n md: \"h-1.5\",\n lg: \"h-2\",\n xl: \"h-3\",\n },\n },\n defaultVariants: { size: \"md\" },\n },\n)\n\nconst progressRange = cva(\"h-full rounded-full\", {\n variants: {\n variant: {\n filled: \"bg-(--c-solid)\",\n // Removed is it was ugly\n // light: \"bg-(--c-soft)\",\n // from-*/to-* are the CSS defaults for --tw-gradient-from/to and the\n // --tw-gradient-stops composition chain. A `gradient` prop only overrides\n // the individual vars it provides; the direction class is appended\n // dynamically (mirrors Badge's gradient variant).\n //\n // The gradient is stretched to the full track width and pinned to the\n // start (see the Range `style` below), so the Range reveals only its left\n // slice — the complete from→to shows only at 100%. `bg-no-repeat` keeps\n // the stretched image from tiling.\n gradient: \"bg-linear-to-r from-purple-300 to-pink-400 bg-no-repeat bg-left\",\n },\n },\n defaultVariants: { variant: \"filled\" },\n})\n\nexport type ProgressVariant = NonNullable<VariantProps<typeof progressRange>[\"variant\"]>\nexport type ProgressSize = Size\n\nexport type { GradientDir, GradientProps }\n\ntype ProgressClassNames = {\n root?: string\n track?: string\n range?: string\n}\n\ntype ArkRootProps = ComponentPropsWithoutRef<typeof Ark.Root>\n\nexport type ProgressProps = Omit<\n ArkRootProps,\n \"value\" | \"defaultValue\" | \"onValueChange\" | \"ref\" | \"className\"\n> &\n VariantProps<typeof progressRange> &\n WithTestId & {\n /**\n * Controlled value in `min..max`. Pass `null` for the indeterminate state.\n * Leave unset (with no `defaultValue`) for an uncontrolled bar.\n */\n value?: number | null\n /** Uncontrolled initial value. Pass `null` to start indeterminate. */\n defaultValue?: number | null\n /** Fires on every value change. */\n onChange?: (value: number | null) => void\n size?: ProgressSize\n /** Accent palette. Ignored when `variant=\"gradient\"`. */\n color?: Color\n /**\n * Gradient config; only applied when `variant=\"gradient\"`. Mirrors Badge:\n * sets the individual `--tw-gradient-*` vars consumed by the gradient\n * utility chain. Unset fields fall back to the CVA defaults\n * (purple-300 → pink-400, to-r).\n */\n gradient?: GradientProps\n /** Lands on the Track — the `role=\"progressbar\"` element. */\n ref?: Ref<HTMLDivElement>\n className?: string\n classNames?: ProgressClassNames\n style?: CSSProperties\n }\n\nexport const Progress = ({\n value,\n defaultValue,\n onChange,\n variant,\n size,\n color,\n gradient,\n min = 0,\n max = 100,\n ref,\n className,\n classNames,\n style,\n testId,\n ...rest\n}: ProgressProps) => {\n const isGradient = variant === \"gradient\"\n\n return (\n <Ark.Root\n // `undefined` → uncontrolled (Ark's own default). `null` → indeterminate.\n // The two must NOT be coalesced, so each is forwarded verbatim.\n value={value}\n defaultValue={defaultValue}\n onValueChange={onChange ? ({ value: v }) => onChange(v) : undefined}\n min={min}\n max={max}\n data-color={!isGradient ? color : undefined}\n className={cn(\"group/progress w-full\", className, classNames?.root)}\n style={style}\n {...rest}\n >\n <Ark.Track\n ref={ref}\n className={cn(progressTrack({ size }), classNames?.track)}\n {...props({ \"data-testid\": testId })}\n >\n <Ark.Range\n // Gradient styling lives on the Range (where the gradient renders),\n // not the root — Ark also sets `style.width` here, but the keys don't\n // overlap and Ark merges the two via mergeProps.\n // - backgroundSize stretches the gradient to the full track width:\n // the Range is `percent%` of the track, so `10000% / percent` of\n // the Range equals the track width (Ark exposes `--percent` on the\n // root; it cascades here). Pinned to the start by `bg-left`, the\n // Range reveals only its left slice — the full from→to shows at\n // 100%. Falls back to 100% when indeterminate (`--percent` unset).\n // - buildGradientVars sets the --tw-gradient-* vars from `gradient`.\n style={\n isGradient\n ? {\n backgroundSize: \"calc(10000% / var(--percent, 100)) 100%\",\n ...(gradient ? buildGradientVars(gradient) : null),\n }\n : undefined\n }\n className={cn(\n progressRange({ variant }),\n isGradient && gradient?.dir && GRADIENT_DIR_CLASS[gradient.dir],\n // Indeterminate: Ark omits the inline width, so the Range would\n // otherwise fill the track. Pin it to a fraction and animate a\n // clipped sweep. `group-data-[state=…]` reads the state Ark stamps\n // on the root.\n \"group-data-[state=indeterminate]/progress:w-2/5\",\n \"group-data-[state=indeterminate]/progress:animate-progress-indeterminate\",\n classNames?.range,\n )}\n />\n </Ark.Track>\n </Ark.Root>\n )\n}\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Progress as Ark } from "@ark-ui/react/progress";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentPropsWithoutRef, CSSProperties, Ref } from "react";
|
|
4
|
+
import type { Color } from "../../lib/colors";
|
|
5
|
+
import { type GradientDir, type GradientProps } from "../../lib/gradient";
|
|
6
|
+
import type { Size } from "../../lib/sizes";
|
|
7
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
8
|
+
declare const progressRange: (props?: ({
|
|
9
|
+
variant?: "filled" | "gradient" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export type ProgressVariant = NonNullable<VariantProps<typeof progressRange>["variant"]>;
|
|
12
|
+
export type ProgressSize = Size;
|
|
13
|
+
export type { GradientDir, GradientProps };
|
|
14
|
+
type ProgressClassNames = {
|
|
15
|
+
root?: string;
|
|
16
|
+
track?: string;
|
|
17
|
+
range?: string;
|
|
18
|
+
};
|
|
19
|
+
type ArkRootProps = ComponentPropsWithoutRef<typeof Ark.Root>;
|
|
20
|
+
export type ProgressProps = Omit<ArkRootProps, "value" | "defaultValue" | "onValueChange" | "ref" | "className"> & VariantProps<typeof progressRange> & WithTestId & {
|
|
21
|
+
/**
|
|
22
|
+
* Controlled value in `min..max`. Pass `null` for the indeterminate state.
|
|
23
|
+
* Leave unset (with no `defaultValue`) for an uncontrolled bar.
|
|
24
|
+
*/
|
|
25
|
+
value?: number | null;
|
|
26
|
+
/** Uncontrolled initial value. Pass `null` to start indeterminate. */
|
|
27
|
+
defaultValue?: number | null;
|
|
28
|
+
/** Fires on every value change. */
|
|
29
|
+
onChange?: (value: number | null) => void;
|
|
30
|
+
size?: ProgressSize;
|
|
31
|
+
/** Accent palette. Ignored when `variant="gradient"`. */
|
|
32
|
+
color?: Color;
|
|
33
|
+
/**
|
|
34
|
+
* Gradient config; only applied when `variant="gradient"`. Mirrors Badge:
|
|
35
|
+
* sets the individual `--tw-gradient-*` vars consumed by the gradient
|
|
36
|
+
* utility chain. Unset fields fall back to the CVA defaults
|
|
37
|
+
* (purple-300 → pink-400, to-r).
|
|
38
|
+
*/
|
|
39
|
+
gradient?: GradientProps;
|
|
40
|
+
/** Lands on the Track — the `role="progressbar"` element. */
|
|
41
|
+
ref?: Ref<HTMLDivElement>;
|
|
42
|
+
className?: string;
|
|
43
|
+
classNames?: ProgressClassNames;
|
|
44
|
+
style?: CSSProperties;
|
|
45
|
+
};
|
|
46
|
+
export declare const Progress: ({ value, defaultValue, onChange, variant, size, color, gradient, min, max, ref, className, classNames, style, testId, ...rest }: ProgressProps) => import("react").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/progress/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AA0CnD,QAAA,MAAM,aAAa;;8EAmBjB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;AACxF,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,CAAA;AAE1C,KAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,YAAY,GAAG,wBAAwB,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,CAAA;AAE7D,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,YAAY,EACZ,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,KAAK,GAAG,WAAW,CACjE,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAClC,UAAU,GAAG;IACX;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,yDAAyD;IACzD,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAA;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAEH,eAAO,MAAM,QAAQ,oIAgBlB,aAAa,gCAwDf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { controlIndicator } from '../../chunk-NF5JM2YO.js';
|
|
3
|
+
import { FieldShell } from '../../chunk-UNSAA7YG.js';
|
|
4
|
+
import { props } from '../../chunk-WYCMIIRR.js';
|
|
5
|
+
import '../../chunk-B2LCHXUB.js';
|
|
6
|
+
import { cn } from '../../chunk-QP4I37PA.js';
|
|
7
|
+
import { RadioGroup as RadioGroup$1 } from '@ark-ui/react/radio-group';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
var normalize = (item) => typeof item === "string" ? { value: item, label: item, disabled: void 0, testId: `item-${item}` } : { ...item, testId: item.testId ?? `item-${item.value}` };
|
|
11
|
+
var RadioGroup = ({
|
|
12
|
+
value,
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChange,
|
|
15
|
+
data,
|
|
16
|
+
orientation = "vertical",
|
|
17
|
+
label,
|
|
18
|
+
description,
|
|
19
|
+
error,
|
|
20
|
+
variant,
|
|
21
|
+
required,
|
|
22
|
+
invalid,
|
|
23
|
+
disabled,
|
|
24
|
+
readOnly,
|
|
25
|
+
size = "md",
|
|
26
|
+
color,
|
|
27
|
+
name,
|
|
28
|
+
id,
|
|
29
|
+
ref,
|
|
30
|
+
onBlur,
|
|
31
|
+
className,
|
|
32
|
+
classNames,
|
|
33
|
+
testId
|
|
34
|
+
}) => {
|
|
35
|
+
const isInvalid = invalid || error != null;
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
FieldShell,
|
|
38
|
+
{
|
|
39
|
+
label,
|
|
40
|
+
description,
|
|
41
|
+
error,
|
|
42
|
+
required,
|
|
43
|
+
size,
|
|
44
|
+
className: classNames?.field,
|
|
45
|
+
children: /* @__PURE__ */ jsx(
|
|
46
|
+
RadioGroup$1.Root,
|
|
47
|
+
{
|
|
48
|
+
value,
|
|
49
|
+
defaultValue,
|
|
50
|
+
onValueChange: onChange ? (d) => d.value != null && onChange(d.value) : void 0,
|
|
51
|
+
invalid: isInvalid,
|
|
52
|
+
disabled,
|
|
53
|
+
readOnly,
|
|
54
|
+
required,
|
|
55
|
+
name,
|
|
56
|
+
orientation,
|
|
57
|
+
id,
|
|
58
|
+
ref,
|
|
59
|
+
onBlur,
|
|
60
|
+
"data-color": color,
|
|
61
|
+
...props({ "data-testid": testId }),
|
|
62
|
+
className: cn(
|
|
63
|
+
"flex gap-2",
|
|
64
|
+
orientation === "horizontal" ? "flex-row flex-wrap" : "flex-col",
|
|
65
|
+
className,
|
|
66
|
+
classNames?.root
|
|
67
|
+
),
|
|
68
|
+
children: data.map((raw) => {
|
|
69
|
+
const item = normalize(raw);
|
|
70
|
+
return /* @__PURE__ */ jsxs(
|
|
71
|
+
RadioGroup$1.Item,
|
|
72
|
+
{
|
|
73
|
+
value: item.value,
|
|
74
|
+
disabled: item.disabled,
|
|
75
|
+
"data-testid": item.testId,
|
|
76
|
+
className: cn("inline-flex items-center gap-2 select-none", classNames?.item),
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
RadioGroup$1.ItemControl,
|
|
80
|
+
{
|
|
81
|
+
className: cn(
|
|
82
|
+
controlIndicator({ size, variant }),
|
|
83
|
+
"rounded-full",
|
|
84
|
+
classNames?.control
|
|
85
|
+
),
|
|
86
|
+
children: /* @__PURE__ */ jsx(RadioGroup$1.ItemContext, { children: (s) => s.checked ? /* @__PURE__ */ jsx("span", { className: "size-[50%] rounded-full bg-brand-50 dark:bg-brand-950" }) : null })
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsx(RadioGroup$1.ItemText, { className: cn("text-sm", classNames?.label), children: item.label }),
|
|
90
|
+
/* @__PURE__ */ jsx(RadioGroup$1.ItemHiddenInput, {})
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
item.value
|
|
94
|
+
);
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { RadioGroup };
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/radio-group/radio-group.tsx"],"names":["Ark"],"mappings":";;;;;;;;AAsGA,IAAM,SAAA,GAAY,CAAC,IAAA,KACjB,OAAO,IAAA,KAAS,QAAA,GACZ,EAAE,KAAA,EAAO,IAAA,EAAM,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,MAAA,EAAW,MAAA,EAAQ,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAA,EAAG,GACxE,EAAE,GAAG,IAAA,EAAM,MAAA,EAAQ,IAAA,CAAK,MAAA,IAAU,CAAA,KAAA,EAAQ,IAAA,CAAK,KAAK,CAAA,CAAA,EAAG;AAEtD,IAAM,aAAa,CAAuD;AAAA,EAC/E,KAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,WAAA,GAAc,UAAA;AAAA,EACd,KAAA;AAAA,EACA,WAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA,GAAO,IAAA;AAAA,EACP,KAAA;AAAA,EACA,IAAA;AAAA,EACA,EAAA;AAAA,EACA,GAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,KAA6B;AAG3B,EAAA,MAAM,SAAA,GAAY,WAAW,KAAA,IAAS,IAAA;AAEtC,EAAA,uBACE,GAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,KAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,WAAW,UAAA,EAAY,KAAA;AAAA,MAEvB,QAAA,kBAAA,GAAA;AAAA,QAACA,YAAA,CAAI,IAAA;AAAA,QAAJ;AAAA,UACC,KAAA;AAAA,UACA,YAAA;AAAA,UACA,aAAA,EACE,QAAA,GACI,CAAC,CAAA,KAAM,CAAA,CAAE,SAAS,IAAA,IAAQ,QAAA,CAAS,CAAA,CAAE,KAA8B,CAAA,GACnE,MAAA;AAAA,UAEN,OAAA,EAAS,SAAA;AAAA,UACT,QAAA;AAAA,UACA,QAAA;AAAA,UACA,QAAA;AAAA,UACA,IAAA;AAAA,UACA,WAAA;AAAA,UACA,EAAA;AAAA,UACA,GAAA;AAAA,UACA,MAAA;AAAA,UACA,YAAA,EAAY,KAAA;AAAA,UACX,GAAG,KAAA,CAAM,EAAE,aAAA,EAAe,QAAQ,CAAA;AAAA,UACnC,SAAA,EAAW,EAAA;AAAA,YACT,YAAA;AAAA,YACA,WAAA,KAAgB,eAAe,oBAAA,GAAuB,UAAA;AAAA,YACtD,SAAA;AAAA,YACA,UAAA,EAAY;AAAA,WACd;AAAA,UAEC,QAAA,EAAA,IAAA,CAAK,GAAA,CAAI,CAAC,GAAA,KAAQ;AACjB,YAAA,MAAM,IAAA,GAAO,UAAU,GAAG,CAAA;AAC1B,YAAA,uBACE,IAAA;AAAA,cAACA,YAAA,CAAI,IAAA;AAAA,cAAJ;AAAA,gBAEC,OAAO,IAAA,CAAK,KAAA;AAAA,gBACZ,UAAU,IAAA,CAAK,QAAA;AAAA,gBACf,eAAa,IAAA,CAAK,MAAA;AAAA,gBAClB,SAAA,EAAW,EAAA,CAAG,4CAAA,EAA8C,UAAA,EAAY,IAAI,CAAA;AAAA,gBAE5E,QAAA,EAAA;AAAA,kCAAA,GAAA;AAAA,oBAACA,YAAA,CAAI,WAAA;AAAA,oBAAJ;AAAA,sBACC,SAAA,EAAW,EAAA;AAAA,wBACT,gBAAA,CAAiB,EAAE,IAAA,EAAM,OAAA,EAAS,CAAA;AAAA,wBAClC,cAAA;AAAA,wBACA,UAAA,EAAY;AAAA,uBACd;AAAA,sBAKA,QAAA,kBAAA,GAAA,CAACA,YAAA,CAAI,WAAA,EAAJ,EACE,QAAA,EAAA,CAAC,CAAA,KACA,CAAA,CAAE,OAAA,mBACA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,uDAAA,EAAwD,IACtE,IAAA,EAER;AAAA;AAAA,mBACF;AAAA,kCACA,GAAA,CAACA,YAAA,CAAI,QAAA,EAAJ,EAAa,SAAA,EAAW,EAAA,CAAG,SAAA,EAAW,UAAA,EAAY,KAAK,CAAA,EAAI,QAAA,EAAA,IAAA,CAAK,KAAA,EAAM,CAAA;AAAA,kCACvE,GAAA,CAACA,YAAA,CAAI,eAAA,EAAJ,EAAoB;AAAA;AAAA,eAAA;AAAA,cAzBhB,IAAA,CAAK;AAAA,aA0BZ;AAAA,UAEJ,CAAC;AAAA;AAAA;AACH;AAAA,GACF;AAEJ","file":"index.js","sourcesContent":["\"use client\"\n\nimport { RadioGroup as Ark } from \"@ark-ui/react/radio-group\"\nimport type { FocusEvent, ReactNode, Ref } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { props } from \"../../lib/props\"\nimport type { FlatValueOf } from \"../../lib/select-data\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport {\n type ControlIndicatorSize,\n type ControlIndicatorVariant,\n controlIndicator,\n} from \"../checkbox/control\"\nimport { FieldShell } from \"../field/field\"\n\n/**\n * RadioGroup — a single-choice set of options on Ark UI's RadioGroup machine.\n * Each option is a circular control with an inline label; the group's\n * `description` / `error` / `required` live below it via the shared `Field`\n * scaffold, so a `RadioGroup` is accessible and complete on its own. Implements\n * the kit's `FormControlProps` contract: `name` wires every option's hidden\n * `<input type=\"radio\">` into native form submission, and `ref` / `onBlur` land\n * on the group root for focus-on-error.\n *\n * - The value is a `string | null`; `onChange` hands you the next value\n * directly (a value, not a DOM event), matching the rest of the family.\n * - `data` accepts either `{ value, label, disabled? }` objects or bare\n * strings (normalized to `{ value: s, label: s }`).\n * - `invalid` is OR'd with `error != null`, so a form library can flip the\n * red state independently of the message.\n *\n * Each option reuses the family's shared `controlIndicator` surface layered with\n * `rounded-full`, so its two `variant`s match `Checkbox`: `default` fills the\n * selected circle monochrome, `filled` tints it with the active palette\n * (`data-color` + the `--c-solid` slot var). A neutral inner dot sits on top in\n * both, and the focus ring is always the brand ring.\n */\n\n/** A single option: an explicit object, or a bare string used as both value + label. */\nexport type RadioGroupItem =\n | {\n value: string\n label: ReactNode\n disabled?: boolean\n /** `data-testid` on the rendered option. Defaults to `` `item-${value}` ``. */\n testId?: string\n }\n | string\n\nexport type RadioGroupData = ReadonlyArray<RadioGroupItem>\n\n/** The value union `data` narrows to — literal option values for a `const`-typed\n * `data` array, or plain `string` for a dynamically-built one. */\nexport type RadioGroupValue<Data extends RadioGroupData> = FlatValueOf<Data>\n\nexport type RadioGroupProps<Data extends RadioGroupData = RadioGroupItem[]> = WithTestId & {\n /** Controlled value. `null` clears the selection. */\n value?: RadioGroupValue<Data> | null\n /** Uncontrolled initial value. */\n defaultValue?: RadioGroupValue<Data> | null\n /** Fires with the next selected value (a value, not a DOM event). */\n onChange?: (value: RadioGroupValue<Data>) => void\n /** The options. Bare strings are normalized to `{ value, label }`. */\n data: Data\n /** Stacking direction of the options. */\n orientation?: \"horizontal\" | \"vertical\"\n /** Field label above the group. */\n label?: ReactNode\n /** Helper text above the group. */\n description?: ReactNode\n /** Error message below the group; its presence sets the invalid state. */\n error?: ReactNode\n /** Required flag (and, with a label, the red asterisk). */\n required?: boolean\n /** Red invalid state, OR'd with `error != null`. */\n invalid?: boolean\n /** Dims and blocks interaction. */\n disabled?: boolean\n /** Keeps full contrast but blocks edits. */\n readOnly?: boolean\n size?: ControlIndicatorSize\n variant?: ControlIndicatorVariant\n color?: Color\n /** Field name for native form submission. */\n name?: string\n /** Explicit id for label association. */\n id?: string\n /** Lands on the group root for focus-on-error. */\n ref?: Ref<HTMLDivElement>\n /** Forwarded to the group root; drives touched/blurred validation. */\n onBlur?: (event: FocusEvent<HTMLDivElement>) => void\n className?: string\n classNames?: {\n root?: string\n item?: string\n control?: string\n label?: string\n field?: string\n }\n}\n\nconst normalize = (item: RadioGroupItem) =>\n typeof item === \"string\"\n ? { value: item, label: item, disabled: undefined, testId: `item-${item}` }\n : { ...item, testId: item.testId ?? `item-${item.value}` }\n\nexport const RadioGroup = <const Data extends RadioGroupData = RadioGroupItem[]>({\n value,\n defaultValue,\n onChange,\n data,\n orientation = \"vertical\",\n label,\n description,\n error,\n variant,\n required,\n invalid,\n disabled,\n readOnly,\n size = \"md\",\n color,\n name,\n id,\n ref,\n onBlur,\n className,\n classNames,\n testId,\n}: RadioGroupProps<Data>) => {\n // Red state is driven independently of the `Field` error slot so a form\n // library can flip it from `fieldState.invalid` (see FormControlProps).\n const isInvalid = invalid || error != null\n\n return (\n <FieldShell\n label={label}\n description={description}\n error={error}\n required={required}\n size={size}\n className={classNames?.field}\n >\n <Ark.Root\n value={value}\n defaultValue={defaultValue}\n onValueChange={\n onChange\n ? (d) => d.value != null && onChange(d.value as RadioGroupValue<Data>)\n : undefined\n }\n invalid={isInvalid}\n disabled={disabled}\n readOnly={readOnly}\n required={required}\n name={name}\n orientation={orientation}\n id={id}\n ref={ref}\n onBlur={onBlur}\n data-color={color}\n {...props({ \"data-testid\": testId })}\n className={cn(\n \"flex gap-2\",\n orientation === \"horizontal\" ? \"flex-row flex-wrap\" : \"flex-col\",\n className,\n classNames?.root,\n )}\n >\n {data.map((raw) => {\n const item = normalize(raw)\n return (\n <Ark.Item\n key={item.value}\n value={item.value}\n disabled={item.disabled}\n data-testid={item.testId}\n className={cn(\"inline-flex items-center gap-2 select-none\", classNames?.item)}\n >\n <Ark.ItemControl\n className={cn(\n controlIndicator({ size, variant }),\n \"rounded-full\",\n classNames?.control,\n )}\n >\n {/* The inner dot reads its own checked state from the item\n context — a bare `<span>` can't see the control's\n `data-[state]`, so drive visibility off `s.checked`. */}\n <Ark.ItemContext>\n {(s) =>\n s.checked ? (\n <span className=\"size-[50%] rounded-full bg-brand-50 dark:bg-brand-950\" />\n ) : null\n }\n </Ark.ItemContext>\n </Ark.ItemControl>\n <Ark.ItemText className={cn(\"text-sm\", classNames?.label)}>{item.label}</Ark.ItemText>\n <Ark.ItemHiddenInput />\n </Ark.Item>\n )\n })}\n </Ark.Root>\n </FieldShell>\n )\n}\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { FocusEvent, ReactNode, Ref } from "react";
|
|
2
|
+
import type { Color } from "../../lib/colors";
|
|
3
|
+
import type { FlatValueOf } from "../../lib/select-data";
|
|
4
|
+
import type { WithTestId } from "../../lib/test-id";
|
|
5
|
+
import { type ControlIndicatorSize, type ControlIndicatorVariant } from "../checkbox/control";
|
|
6
|
+
/**
|
|
7
|
+
* RadioGroup — a single-choice set of options on Ark UI's RadioGroup machine.
|
|
8
|
+
* Each option is a circular control with an inline label; the group's
|
|
9
|
+
* `description` / `error` / `required` live below it via the shared `Field`
|
|
10
|
+
* scaffold, so a `RadioGroup` is accessible and complete on its own. Implements
|
|
11
|
+
* the kit's `FormControlProps` contract: `name` wires every option's hidden
|
|
12
|
+
* `<input type="radio">` into native form submission, and `ref` / `onBlur` land
|
|
13
|
+
* on the group root for focus-on-error.
|
|
14
|
+
*
|
|
15
|
+
* - The value is a `string | null`; `onChange` hands you the next value
|
|
16
|
+
* directly (a value, not a DOM event), matching the rest of the family.
|
|
17
|
+
* - `data` accepts either `{ value, label, disabled? }` objects or bare
|
|
18
|
+
* strings (normalized to `{ value: s, label: s }`).
|
|
19
|
+
* - `invalid` is OR'd with `error != null`, so a form library can flip the
|
|
20
|
+
* red state independently of the message.
|
|
21
|
+
*
|
|
22
|
+
* Each option reuses the family's shared `controlIndicator` surface layered with
|
|
23
|
+
* `rounded-full`, so its two `variant`s match `Checkbox`: `default` fills the
|
|
24
|
+
* selected circle monochrome, `filled` tints it with the active palette
|
|
25
|
+
* (`data-color` + the `--c-solid` slot var). A neutral inner dot sits on top in
|
|
26
|
+
* both, and the focus ring is always the brand ring.
|
|
27
|
+
*/
|
|
28
|
+
/** A single option: an explicit object, or a bare string used as both value + label. */
|
|
29
|
+
export type RadioGroupItem = {
|
|
30
|
+
value: string;
|
|
31
|
+
label: ReactNode;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** `data-testid` on the rendered option. Defaults to `` `item-${value}` ``. */
|
|
34
|
+
testId?: string;
|
|
35
|
+
} | string;
|
|
36
|
+
export type RadioGroupData = ReadonlyArray<RadioGroupItem>;
|
|
37
|
+
/** The value union `data` narrows to — literal option values for a `const`-typed
|
|
38
|
+
* `data` array, or plain `string` for a dynamically-built one. */
|
|
39
|
+
export type RadioGroupValue<Data extends RadioGroupData> = FlatValueOf<Data>;
|
|
40
|
+
export type RadioGroupProps<Data extends RadioGroupData = RadioGroupItem[]> = WithTestId & {
|
|
41
|
+
/** Controlled value. `null` clears the selection. */
|
|
42
|
+
value?: RadioGroupValue<Data> | null;
|
|
43
|
+
/** Uncontrolled initial value. */
|
|
44
|
+
defaultValue?: RadioGroupValue<Data> | null;
|
|
45
|
+
/** Fires with the next selected value (a value, not a DOM event). */
|
|
46
|
+
onChange?: (value: RadioGroupValue<Data>) => void;
|
|
47
|
+
/** The options. Bare strings are normalized to `{ value, label }`. */
|
|
48
|
+
data: Data;
|
|
49
|
+
/** Stacking direction of the options. */
|
|
50
|
+
orientation?: "horizontal" | "vertical";
|
|
51
|
+
/** Field label above the group. */
|
|
52
|
+
label?: ReactNode;
|
|
53
|
+
/** Helper text above the group. */
|
|
54
|
+
description?: ReactNode;
|
|
55
|
+
/** Error message below the group; its presence sets the invalid state. */
|
|
56
|
+
error?: ReactNode;
|
|
57
|
+
/** Required flag (and, with a label, the red asterisk). */
|
|
58
|
+
required?: boolean;
|
|
59
|
+
/** Red invalid state, OR'd with `error != null`. */
|
|
60
|
+
invalid?: boolean;
|
|
61
|
+
/** Dims and blocks interaction. */
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
/** Keeps full contrast but blocks edits. */
|
|
64
|
+
readOnly?: boolean;
|
|
65
|
+
size?: ControlIndicatorSize;
|
|
66
|
+
variant?: ControlIndicatorVariant;
|
|
67
|
+
color?: Color;
|
|
68
|
+
/** Field name for native form submission. */
|
|
69
|
+
name?: string;
|
|
70
|
+
/** Explicit id for label association. */
|
|
71
|
+
id?: string;
|
|
72
|
+
/** Lands on the group root for focus-on-error. */
|
|
73
|
+
ref?: Ref<HTMLDivElement>;
|
|
74
|
+
/** Forwarded to the group root; drives touched/blurred validation. */
|
|
75
|
+
onBlur?: (event: FocusEvent<HTMLDivElement>) => void;
|
|
76
|
+
className?: string;
|
|
77
|
+
classNames?: {
|
|
78
|
+
root?: string;
|
|
79
|
+
item?: string;
|
|
80
|
+
control?: string;
|
|
81
|
+
label?: string;
|
|
82
|
+
field?: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export declare const RadioGroup: <const Data extends RadioGroupData = RadioGroupItem[]>({ value, defaultValue, onChange, data, orientation, label, description, error, variant, required, invalid, disabled, readOnly, size, color, name, id, ref, onBlur, className, classNames, testId, }: RadioGroupProps<Data>) => import("react").JSX.Element;
|
|
86
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/radio-group.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAE7B,MAAM,qBAAqB,CAAA;AAG5B;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,wFAAwF;AACxF,MAAM,MAAM,cAAc,GACtB;IACE,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GACD,MAAM,CAAA;AAEV,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC,CAAA;AAE1D;mEACmE;AACnE,MAAM,MAAM,eAAe,CAAC,IAAI,SAAS,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC,CAAA;AAE5E,MAAM,MAAM,eAAe,CAAC,IAAI,SAAS,cAAc,GAAG,cAAc,EAAE,IAAI,UAAU,GAAG;IACzF,qDAAqD;IACrD,KAAK,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACpC,kCAAkC;IAClC,YAAY,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC3C,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;IACjD,sEAAsE;IACtE,IAAI,EAAE,IAAI,CAAA;IACV,yCAAyC;IACzC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mCAAmC;IACnC,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,oBAAoB,CAAA;IAC3B,OAAO,CAAC,EAAE,uBAAuB,CAAA;IACjC,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,kDAAkD;IAClD,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IACzB,sEAAsE;IACtE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAOD,eAAO,MAAM,UAAU,GAAI,KAAK,CAAC,IAAI,SAAS,cAAc,GAAG,cAAc,EAAE,uMAuB5E,eAAe,CAAC,IAAI,CAAC,gCA4EvB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled star glyph for `Rating` — hand-rolled (not lucide) so the component
|
|
3
|
+
* works with zero icon setup, matching Popover's `icons.tsx` precedent. Both
|
|
4
|
+
* inherit `currentColor` and are sized by their parent's `size-*` class.
|
|
5
|
+
*
|
|
6
|
+
* Two variants share one `path`: `StarIcon` fills it solid (the "full" layer),
|
|
7
|
+
* `StarOutlineIcon` strokes it hollow (the "empty" backdrop). Stacking a
|
|
8
|
+
* clipped `StarIcon` over a full-width `StarOutlineIcon` is what produces the
|
|
9
|
+
* half-fill effect in `rating.tsx` — see `RatingSymbol`.
|
|
10
|
+
*/
|
|
11
|
+
/** Solid, filled star — the "full" layer. */
|
|
12
|
+
export declare const StarIcon: ({ className }: {
|
|
13
|
+
className?: string;
|
|
14
|
+
}) => import("react").JSX.Element;
|
|
15
|
+
/** Hollow, outlined star — the "empty" backdrop layer. */
|
|
16
|
+
export declare const StarOutlineIcon: ({ className }: {
|
|
17
|
+
className?: string;
|
|
18
|
+
}) => import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/rating/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,kBAAmB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAI7D,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,eAAe,kBAAmB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,gCAYpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,yBAAyB,GAC1B,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { fieldA11yProps } from '../../chunk-UNSAA7YG.js';
|
|
3
|
+
import { props } from '../../chunk-WYCMIIRR.js';
|
|
4
|
+
import { focusStyles } from '../../chunk-B2LCHXUB.js';
|
|
5
|
+
import { cn } from '../../chunk-QP4I37PA.js';
|
|
6
|
+
import { useFieldContext } from '@ark-ui/react/field';
|
|
7
|
+
import { RatingGroup } from '@ark-ui/react/rating-group';
|
|
8
|
+
import { cva } from 'class-variance-authority';
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
var STAR_PATH = "M12 2.75l2.9 6.32 6.85.62-5.2 4.63 1.57 6.9L12 17.6l-6.12 3.62 1.57-6.9-5.2-4.63 6.85-.62L12 2.75z";
|
|
12
|
+
var StarIcon = ({ className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", className, children: /* @__PURE__ */ jsx("path", { d: STAR_PATH }) });
|
|
13
|
+
var StarOutlineIcon = ({ className }) => /* @__PURE__ */ jsx(
|
|
14
|
+
"svg",
|
|
15
|
+
{
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeWidth: 1.5,
|
|
20
|
+
strokeLinejoin: "round",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className,
|
|
23
|
+
children: /* @__PURE__ */ jsx("path", { d: STAR_PATH })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
var DEFAULT_TRANSLATIONS = {
|
|
27
|
+
ratingValueText: (index) => `Rate ${index} star${index === 1 ? "" : "s"}`
|
|
28
|
+
};
|
|
29
|
+
var resolveRatingTranslations = (overrides) => overrides ? { ...DEFAULT_TRANSLATIONS, ...overrides } : DEFAULT_TRANSLATIONS;
|
|
30
|
+
var ratingControl = cva(["inline-flex items-center", "data-disabled:opacity-60"], {
|
|
31
|
+
variants: {
|
|
32
|
+
size: {
|
|
33
|
+
xs: "gap-0.5",
|
|
34
|
+
sm: "gap-0.5",
|
|
35
|
+
md: "gap-1",
|
|
36
|
+
lg: "gap-1",
|
|
37
|
+
xl: "gap-1.5"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: { size: "md" }
|
|
41
|
+
});
|
|
42
|
+
var ratingItem = cva([
|
|
43
|
+
"relative inline-flex rounded-xs",
|
|
44
|
+
"cursor-pointer",
|
|
45
|
+
"data-disabled:cursor-not-allowed",
|
|
46
|
+
"data-readonly:cursor-default",
|
|
47
|
+
focusStyles({ ring: "palette", offset: false }),
|
|
48
|
+
// A brief scale "pop" when this symbol becomes the checked one (a real
|
|
49
|
+
// click/keyboard commit — Ark's `checked` state — not just the hover/drag
|
|
50
|
+
// preview, which only ever touches `data-highlighted`).
|
|
51
|
+
"data-checked:animate-rating-pop motion-reduce:data-checked:animate-none"
|
|
52
|
+
]);
|
|
53
|
+
var ratingSymbol = cva("relative inline-block shrink-0 [&_svg]:block [&_svg]:size-full", {
|
|
54
|
+
variants: {
|
|
55
|
+
size: {
|
|
56
|
+
xs: "size-3.5",
|
|
57
|
+
sm: "size-4",
|
|
58
|
+
md: "size-5",
|
|
59
|
+
lg: "size-6",
|
|
60
|
+
xl: "size-7"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: { size: "md" }
|
|
64
|
+
});
|
|
65
|
+
var symbolFillPercent = (state, highlightSelectedOnly) => {
|
|
66
|
+
const filled = highlightSelectedOnly ? state.checked : state.highlighted;
|
|
67
|
+
if (!filled) return 0;
|
|
68
|
+
return state.half ? 50 : 100;
|
|
69
|
+
};
|
|
70
|
+
var resolveItemColor = (color, index) => typeof color === "function" ? color(index) : color;
|
|
71
|
+
var ratingClipStyle = (fillPercent) => ({ "--rating-clip": `${100 - fillPercent}%` });
|
|
72
|
+
var RatingSymbol = ({
|
|
73
|
+
size,
|
|
74
|
+
fillPercent,
|
|
75
|
+
fullSymbol,
|
|
76
|
+
emptySymbol,
|
|
77
|
+
className
|
|
78
|
+
}) => /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", className: cn(ratingSymbol({ size }), className), children: [
|
|
79
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-0", children: emptySymbol }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
className: cn(
|
|
84
|
+
"absolute inset-0",
|
|
85
|
+
"transition-[clip-path] duration-150 ease-out motion-reduce:transition-none",
|
|
86
|
+
"[clip-path:inset(0_var(--rating-clip)_0_0)]",
|
|
87
|
+
"rtl:[clip-path:inset(0_0_0_var(--rating-clip))]"
|
|
88
|
+
),
|
|
89
|
+
style: ratingClipStyle(fillPercent),
|
|
90
|
+
children: fullSymbol
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] });
|
|
94
|
+
var RatingControl = ({
|
|
95
|
+
ref,
|
|
96
|
+
onBlur,
|
|
97
|
+
className,
|
|
98
|
+
testId,
|
|
99
|
+
children
|
|
100
|
+
}) => {
|
|
101
|
+
const field = useFieldContext();
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
103
|
+
RatingGroup.Control,
|
|
104
|
+
{
|
|
105
|
+
ref,
|
|
106
|
+
onBlur,
|
|
107
|
+
className,
|
|
108
|
+
...props({ "data-invalid": field?.invalid, "data-testid": testId }),
|
|
109
|
+
...fieldA11yProps(field),
|
|
110
|
+
children
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
var Rating = ({
|
|
115
|
+
count = 5,
|
|
116
|
+
value,
|
|
117
|
+
defaultValue,
|
|
118
|
+
onChange,
|
|
119
|
+
readOnly,
|
|
120
|
+
disabled,
|
|
121
|
+
allowHalf,
|
|
122
|
+
size = "md",
|
|
123
|
+
color,
|
|
124
|
+
fullSymbol,
|
|
125
|
+
emptySymbol,
|
|
126
|
+
highlightSelectedOnly,
|
|
127
|
+
name,
|
|
128
|
+
form,
|
|
129
|
+
translations,
|
|
130
|
+
ref,
|
|
131
|
+
onBlur,
|
|
132
|
+
className,
|
|
133
|
+
classNames,
|
|
134
|
+
testId,
|
|
135
|
+
...rest
|
|
136
|
+
}) => {
|
|
137
|
+
const resolvedTranslations = resolveRatingTranslations(translations);
|
|
138
|
+
return /* @__PURE__ */ jsxs(
|
|
139
|
+
RatingGroup.Root,
|
|
140
|
+
{
|
|
141
|
+
count,
|
|
142
|
+
value,
|
|
143
|
+
defaultValue,
|
|
144
|
+
onValueChange: onChange ? ({ value: v }) => onChange(v) : void 0,
|
|
145
|
+
readOnly,
|
|
146
|
+
disabled,
|
|
147
|
+
allowHalf,
|
|
148
|
+
name,
|
|
149
|
+
form,
|
|
150
|
+
translations: resolvedTranslations,
|
|
151
|
+
className: cn("inline-flex", className, classNames?.root),
|
|
152
|
+
...rest,
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
RatingControl,
|
|
156
|
+
{
|
|
157
|
+
ref,
|
|
158
|
+
onBlur,
|
|
159
|
+
testId,
|
|
160
|
+
className: cn(ratingControl({ size }), classNames?.control),
|
|
161
|
+
children: Array.from({ length: count }, (_, i) => {
|
|
162
|
+
const itemIndex = i + 1;
|
|
163
|
+
return /* @__PURE__ */ jsx(
|
|
164
|
+
RatingGroup.Item,
|
|
165
|
+
{
|
|
166
|
+
index: itemIndex,
|
|
167
|
+
"data-color": resolveItemColor(color, i),
|
|
168
|
+
className: cn(ratingItem(), classNames?.item),
|
|
169
|
+
...props({ "data-testid": testId && `${testId}-item-${itemIndex}` }),
|
|
170
|
+
children: /* @__PURE__ */ jsx(RatingGroup.ItemContext, { children: (state) => /* @__PURE__ */ jsx(
|
|
171
|
+
RatingSymbol,
|
|
172
|
+
{
|
|
173
|
+
size,
|
|
174
|
+
fillPercent: symbolFillPercent(state, highlightSelectedOnly),
|
|
175
|
+
fullSymbol: fullSymbol ?? /* @__PURE__ */ jsx(StarIcon, { className: "text-(--c-solid)" }),
|
|
176
|
+
emptySymbol: emptySymbol ?? /* @__PURE__ */ jsx(StarOutlineIcon, { className: "text-gray-light-300 dark:text-gray-dark-600" }),
|
|
177
|
+
className: classNames?.symbol
|
|
178
|
+
}
|
|
179
|
+
) })
|
|
180
|
+
},
|
|
181
|
+
itemIndex
|
|
182
|
+
);
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ jsx(RatingGroup.HiddenInput, {})
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export { Rating, resolveRatingTranslations };
|
|
193
|
+
//# sourceMappingURL=index.js.map
|
|
194
|
+
//# sourceMappingURL=index.js.map
|