@42-central/ui-react 0.29.1 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-X6DESK37.js → chunk-2RRTT4AF.js} +17 -5
- package/dist/chunk-2RRTT4AF.js.map +1 -0
- package/dist/{chunk-TUP7WXQE.js → chunk-322I2RSV.js} +9 -6
- package/dist/chunk-322I2RSV.js.map +1 -0
- package/dist/{chunk-ISX3AM32.js → chunk-37SRSNLJ.js} +4 -4
- package/dist/{chunk-ISX3AM32.js.map → chunk-37SRSNLJ.js.map} +1 -1
- package/dist/{chunk-L5GH7LLD.js → chunk-3MFWUG5O.js} +4 -4
- package/dist/{chunk-L5GH7LLD.js.map → chunk-3MFWUG5O.js.map} +1 -1
- package/dist/{chunk-FQJNQW3G.js → chunk-3XQEOJCE.js} +8 -5
- package/dist/chunk-3XQEOJCE.js.map +1 -0
- package/dist/{chunk-JKFPRQB2.js → chunk-4LSZ5JWF.js} +3 -3
- package/dist/{chunk-JKFPRQB2.js.map → chunk-4LSZ5JWF.js.map} +1 -1
- package/dist/{chunk-V2QZG4IT.js → chunk-5HWFYYHW.js} +27 -9
- package/dist/chunk-5HWFYYHW.js.map +1 -0
- package/dist/{chunk-GEZYGBXY.js → chunk-6MVFCS46.js} +99 -42
- package/dist/chunk-6MVFCS46.js.map +1 -0
- package/dist/{chunk-NNPSBC7O.js → chunk-6WZSUS3U.js} +10 -9
- package/dist/chunk-6WZSUS3U.js.map +1 -0
- package/dist/chunk-6YRGP6PS.js +138 -0
- package/dist/chunk-6YRGP6PS.js.map +1 -0
- package/dist/{chunk-B5YHYI7E.js → chunk-ALANKV5Y.js} +23 -6
- package/dist/chunk-ALANKV5Y.js.map +1 -0
- package/dist/{chunk-IA6DCC3N.js → chunk-AUQPNDE5.js} +23 -13
- package/dist/chunk-AUQPNDE5.js.map +1 -0
- package/dist/{chunk-AKXALCUN.js → chunk-D7SW2E24.js} +4 -4
- package/dist/chunk-D7SW2E24.js.map +1 -0
- package/dist/{chunk-OXR7BXZA.js → chunk-DQIYYDFD.js} +4 -3
- package/dist/chunk-DQIYYDFD.js.map +1 -0
- package/dist/{chunk-HMNXNKDA.js → chunk-FCBYUN6F.js} +4 -4
- package/dist/{chunk-HMNXNKDA.js.map → chunk-FCBYUN6F.js.map} +1 -1
- package/dist/{chunk-2W7H43WL.js → chunk-FED6SJWM.js} +23 -14
- package/dist/chunk-FED6SJWM.js.map +1 -0
- package/dist/{chunk-7E7JNWOC.js → chunk-FEPIHXVI.js} +6 -5
- package/dist/chunk-FEPIHXVI.js.map +1 -0
- package/dist/{chunk-Y57NW6G7.js → chunk-G3YOSG3U.js} +4 -4
- package/dist/{chunk-Y57NW6G7.js.map → chunk-G3YOSG3U.js.map} +1 -1
- package/dist/chunk-GZN5CXMR.js +100 -0
- package/dist/chunk-GZN5CXMR.js.map +1 -0
- package/dist/{chunk-HCHGERDB.js → chunk-HCSZPBWV.js} +17 -115
- package/dist/chunk-HCSZPBWV.js.map +1 -0
- package/dist/{chunk-I4B3N3UX.js → chunk-HTVICHT4.js} +12 -7
- package/dist/chunk-HTVICHT4.js.map +1 -0
- package/dist/chunk-I7TC2C3I.js +163 -0
- package/dist/chunk-I7TC2C3I.js.map +1 -0
- package/dist/{chunk-7FPSQBWB.js → chunk-IBXYLO2J.js} +14 -13
- package/dist/chunk-IBXYLO2J.js.map +1 -0
- package/dist/{chunk-7KFUFAVP.js → chunk-IRYG6B5A.js} +9 -8
- package/dist/chunk-IRYG6B5A.js.map +1 -0
- package/dist/{chunk-2RQLPN4U.js → chunk-JCNEW4WJ.js} +8 -8
- package/dist/{chunk-2RQLPN4U.js.map → chunk-JCNEW4WJ.js.map} +1 -1
- package/dist/{chunk-SP6LCCTZ.js → chunk-KZDMVOL6.js} +35 -8
- package/dist/chunk-KZDMVOL6.js.map +1 -0
- package/dist/chunk-LR5U6TZZ.js +169 -0
- package/dist/chunk-LR5U6TZZ.js.map +1 -0
- package/dist/{chunk-MQHD3EJE.js → chunk-LZHZJWVM.js} +6 -4
- package/dist/chunk-LZHZJWVM.js.map +1 -0
- package/dist/{chunk-5EOMSWNO.js → chunk-MAM2X3MW.js} +5 -5
- package/dist/{chunk-5EOMSWNO.js.map → chunk-MAM2X3MW.js.map} +1 -1
- package/dist/{chunk-FSPS7TVD.js → chunk-MCMS4NMO.js} +5 -5
- package/dist/{chunk-FSPS7TVD.js.map → chunk-MCMS4NMO.js.map} +1 -1
- package/dist/{chunk-ZB5VMGKB.js → chunk-MV5DIE2T.js} +15 -4
- package/dist/chunk-MV5DIE2T.js.map +1 -0
- package/dist/chunk-NDI4HLQE.js +41 -0
- package/dist/chunk-NDI4HLQE.js.map +1 -0
- package/dist/{chunk-B4GNSSHU.js → chunk-NLJEQZQQ.js} +3 -3
- package/dist/{chunk-B4GNSSHU.js.map → chunk-NLJEQZQQ.js.map} +1 -1
- package/dist/{chunk-SBZJGFZ6.js → chunk-QHT4DCXE.js} +8 -7
- package/dist/chunk-QHT4DCXE.js.map +1 -0
- package/dist/{chunk-I4IJOLNA.js → chunk-RMUBCTEF.js} +5 -5
- package/dist/{chunk-I4IJOLNA.js.map → chunk-RMUBCTEF.js.map} +1 -1
- package/dist/{chunk-G3AD3NJG.js → chunk-RNTDM3RP.js} +9 -5
- package/dist/chunk-RNTDM3RP.js.map +1 -0
- package/dist/chunk-RPFN6ETQ.js +509 -0
- package/dist/chunk-RPFN6ETQ.js.map +1 -0
- package/dist/{chunk-HWBFRDX7.js → chunk-SI7C3W5M.js} +28 -9
- package/dist/chunk-SI7C3W5M.js.map +1 -0
- package/dist/chunk-TPOV3OCC.js +234 -0
- package/dist/chunk-TPOV3OCC.js.map +1 -0
- package/dist/{chunk-IANYMDKH.js → chunk-UBQ54W46.js} +4 -4
- package/dist/chunk-UBQ54W46.js.map +1 -0
- package/dist/{chunk-QVOBLRCM.js → chunk-UIKQ4X6W.js} +3 -3
- package/dist/{chunk-QVOBLRCM.js.map → chunk-UIKQ4X6W.js.map} +1 -1
- package/dist/chunk-UOWQH53N.js +70 -0
- package/dist/chunk-UOWQH53N.js.map +1 -0
- package/dist/{chunk-QRNQQIQM.js → chunk-WJUY6YWF.js} +52 -20
- package/dist/chunk-WJUY6YWF.js.map +1 -0
- package/dist/{chunk-3KARNPW4.js → chunk-WKIUMLRT.js} +3 -3
- package/dist/{chunk-3KARNPW4.js.map → chunk-WKIUMLRT.js.map} +1 -1
- package/dist/chunk-X6RB74JN.js +37 -0
- package/dist/chunk-X6RB74JN.js.map +1 -0
- package/dist/chunk-XQ6L2CM5.js +83 -0
- package/dist/chunk-XQ6L2CM5.js.map +1 -0
- package/dist/{chunk-RKCUXOU2.js → chunk-YUVKROMA.js} +44 -7
- package/dist/chunk-YUVKROMA.js.map +1 -0
- package/dist/components/action-icon/action-icon.d.ts +9 -2
- package/dist/components/action-icon/action-icon.d.ts.map +1 -1
- package/dist/components/action-icon/index.js +5 -1
- package/dist/components/alert/index.js +4 -4
- package/dist/components/anchor/anchor.d.ts +45 -0
- package/dist/components/anchor/anchor.d.ts.map +1 -0
- package/dist/components/anchor/index.d.ts +2 -0
- package/dist/components/anchor/index.d.ts.map +1 -0
- package/dist/components/anchor/index.js +11 -0
- package/dist/components/anchor/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +10 -6
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/index.js +23 -24
- package/dist/components/app-shell/index.js.map +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +15 -9
- package/dist/components/autocomplete/index.js.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +5 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/index.js +12 -0
- package/dist/components/breadcrumb/index.js.map +1 -1
- package/dist/components/button/button.d.ts +15 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/index.js +5 -1
- package/dist/components/button-multi-select/index.js +6 -4
- package/dist/components/button-multi-select/index.js.map +1 -1
- package/dist/components/button-select/button-select-control.d.ts.map +1 -1
- package/dist/components/button-select/button-select.d.ts +2 -2
- package/dist/components/button-select/button-select.d.ts.map +1 -1
- package/dist/components/button-select/index.js +6 -4
- package/dist/components/button-select/index.js.map +1 -1
- package/dist/components/calendar/aliases.d.ts +16 -0
- package/dist/components/calendar/aliases.d.ts.map +1 -0
- package/dist/components/calendar/calendar-body.d.ts +11 -1
- package/dist/components/calendar/calendar-body.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts +8 -4
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.d.ts +2 -1
- package/dist/components/calendar/index.d.ts.map +1 -1
- package/dist/components/calendar/index.js +15 -5
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/calendar-heatmap/calendar-heatmap.d.ts.map +1 -1
- package/dist/components/calendar-heatmap/index.js +85 -73
- package/dist/components/calendar-heatmap/index.js.map +1 -1
- package/dist/components/camera/index.js +16 -14
- package/dist/components/carousel/index.js +3 -3
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/choice-card-group/index.js +2 -2
- package/dist/components/choice-card-group/index.js.map +1 -1
- package/dist/components/circular-progress/circular-progress.d.ts +22 -11
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
- package/dist/components/circular-progress/index.d.ts +1 -1
- package/dist/components/circular-progress/index.d.ts.map +1 -1
- package/dist/components/circular-progress/index.js +68 -49
- package/dist/components/circular-progress/index.js.map +1 -1
- package/dist/components/clipboard/index.js +7 -3
- package/dist/components/clipboard/index.js.map +1 -1
- package/dist/components/code/code.d.ts +10 -0
- package/dist/components/code/code.d.ts.map +1 -1
- package/dist/components/code/index.js +1 -0
- package/dist/components/code/index.js.map +1 -1
- package/dist/components/code-block/chrome.js +10 -6
- package/dist/components/code-block/index.js +10 -7
- package/dist/components/code-block/index.js.map +1 -1
- package/dist/components/combobox/combobox.d.ts +5 -3
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +12 -7
- package/dist/components/combobox-list/combobox-list.d.ts +1 -1
- package/dist/components/combobox-list/combobox-list.d.ts.map +1 -1
- package/dist/components/combobox-list/index.js +14 -9
- package/dist/components/compare/index.js +1 -1
- package/dist/components/data-list/data-list.d.ts +96 -0
- package/dist/components/data-list/data-list.d.ts.map +1 -0
- package/dist/components/data-list/index.d.ts +2 -0
- package/dist/components/data-list/index.d.ts.map +1 -0
- package/dist/components/data-list/index.js +147 -0
- package/dist/components/data-list/index.js.map +1 -0
- package/dist/components/data-table/data-table-group.d.ts.map +1 -1
- package/dist/components/data-table/data-table-placeholder.d.ts +12 -1
- package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -1
- package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts +5 -2
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/index.js +163 -168
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/date-picker/aliases.d.ts +16 -0
- package/dist/components/date-picker/aliases.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +22 -8
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +34 -28
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/download-button/index.js +6 -2
- package/dist/components/drawer/drawer.d.ts +7 -4
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/index.js +11 -6
- package/dist/components/empty-state/empty-state.d.ts +57 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/empty-state/index.d.ts.map +1 -0
- package/dist/components/empty-state/index.js +8 -0
- package/dist/components/empty-state/index.js.map +1 -0
- package/dist/components/field/field.d.ts +20 -0
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +103 -0
- package/dist/components/fieldset/fieldset.d.ts.map +1 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/fieldset/index.d.ts.map +1 -0
- package/dist/components/fieldset/index.js +150 -0
- package/dist/components/fieldset/index.js.map +1 -0
- package/dist/components/file-item/index.js +10 -7
- package/dist/components/file-preview/file-preview.d.ts.map +1 -1
- package/dist/components/file-preview/index.js +10 -18
- package/dist/components/file-preview/index.js.map +1 -1
- package/dist/components/file-trigger/index.js +6 -2
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +18 -14
- package/dist/components/file-upload/index.js.map +1 -1
- package/dist/components/gallery/index.js +3 -3
- package/dist/components/geodesic/a11y.d.ts +3 -3
- package/dist/components/geodesic/a11y.d.ts.map +1 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/index.js +10 -3
- package/dist/components/hover-card/index.js.map +1 -1
- package/dist/components/image/index.js +3 -3
- package/dist/components/image-cropper/index.js +9 -6
- package/dist/components/input/index.js +2 -2
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/kbd/index.js +3 -3
- package/dist/components/kbd/kbd.d.ts +4 -0
- package/dist/components/kbd/kbd.d.ts.map +1 -1
- package/dist/components/lightbox/index.js +13 -11
- package/dist/components/lightbox/index.js.map +1 -1
- package/dist/components/menu/index.js +9 -5
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/modal/index.js +11 -6
- package/dist/components/modal/modal.d.ts +10 -4
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/multi-combobox-list/index.js +13 -9
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +1 -1
- package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -1
- package/dist/components/multi-select/index.js +13 -10
- package/dist/components/multi-select/index.js.map +1 -1
- package/dist/components/multi-select/multi-select.d.ts +1 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/nav-link/index.js +4 -4
- package/dist/components/nav-link/tanstack.js +4 -4
- package/dist/components/notification/index.js +6 -6
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/number-input/index.js +11 -7
- package/dist/components/number-input/number-input.d.ts +1 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/overlays/dialog-parts.d.ts +10 -1
- package/dist/components/overlays/dialog-parts.d.ts.map +1 -1
- package/dist/components/overlays/index.js +13 -8
- package/dist/components/overlays/index.js.map +1 -1
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +362 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +147 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/password-input/index.js +6 -5
- package/dist/components/password-input/index.js.map +1 -1
- package/dist/components/password-input/password-input.d.ts +1 -1
- package/dist/components/password-input/password-input.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +14 -11
- package/dist/components/phone-input/index.js.map +1 -1
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/photo-capture/index.js +19 -17
- package/dist/components/photo-capture/index.js.map +1 -1
- package/dist/components/pills-input/index.js +4 -4
- package/dist/components/pills-input/pills-input.d.ts +1 -1
- package/dist/components/pills-input/pills-input.d.ts.map +1 -1
- package/dist/components/pin-input/index.js +6 -5
- package/dist/components/pin-input/index.js.map +1 -1
- package/dist/components/pin-input/pin-input.d.ts.map +1 -1
- package/dist/components/popover/index.js +7 -2
- package/dist/components/popover/popover.d.ts +41 -16
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.d.ts.map +1 -1
- package/dist/components/progress/index.js +4 -1
- package/dist/components/progress/progress.d.ts +22 -14
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/prose/index.d.ts +2 -0
- package/dist/components/prose/index.d.ts.map +1 -0
- package/dist/components/prose/index.js +17 -0
- package/dist/components/prose/index.js.map +1 -0
- package/dist/components/prose/prose.d.ts +49 -0
- package/dist/components/prose/prose.d.ts.map +1 -0
- package/dist/components/prose/styles.css +593 -0
- package/dist/components/radio-group/index.js +9 -3
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/rating/index.js +3 -2
- package/dist/components/rating/index.js.map +1 -1
- package/dist/components/rating/rating.d.ts.map +1 -1
- package/dist/components/schedule/index.js +10 -8
- package/dist/components/schedule/index.js.map +1 -1
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.d.ts.map +1 -0
- package/dist/components/scroll-area/index.js +10 -0
- package/dist/components/scroll-area/index.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +150 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/segment-group/index.js +2 -2
- package/dist/components/segment-group/segment-group.d.ts.map +1 -1
- package/dist/components/select/index.js +12 -8
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/slider/index.js +2 -2
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +373 -0
- package/dist/components/splitter/index.js.map +1 -0
- package/dist/components/splitter/splitter.d.ts +159 -0
- package/dist/components/splitter/splitter.d.ts.map +1 -0
- package/dist/components/spotlight/index.js +23 -22
- package/dist/components/spotlight/index.js.map +1 -1
- package/dist/components/spotlight/spotlight.d.ts.map +1 -1
- package/dist/components/steps/index.d.ts +4 -0
- package/dist/components/steps/index.d.ts.map +1 -0
- package/dist/components/steps/index.js +478 -0
- package/dist/components/steps/index.js.map +1 -0
- package/dist/components/steps/steps-data.d.ts +78 -0
- package/dist/components/steps/steps-data.d.ts.map +1 -0
- package/dist/components/steps/steps.d.ts +183 -0
- package/dist/components/steps/steps.d.ts.map +1 -0
- package/dist/components/switch/index.js +4 -3
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/table-of-contents/index.d.ts +2 -0
- package/dist/components/table-of-contents/index.d.ts.map +1 -0
- package/dist/components/table-of-contents/index.js +471 -0
- package/dist/components/table-of-contents/index.js.map +1 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +173 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts.map +1 -0
- package/dist/components/tags-input/index.js +12 -9
- package/dist/components/tags-input/index.js.map +1 -1
- package/dist/components/tags-input/tags-input.d.ts +1 -1
- package/dist/components/tags-input/tags-input.d.ts.map +1 -1
- package/dist/components/text-input/index.js +2 -2
- package/dist/components/textarea/index.js +8 -6
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/time-input/index.js +11 -9
- package/dist/components/time-input/index.js.map +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +3 -8
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tour/conditions.d.ts +83 -0
- package/dist/components/tour/conditions.d.ts.map +1 -0
- package/dist/components/tour/create-tours.d.ts +49 -0
- package/dist/components/tour/create-tours.d.ts.map +1 -0
- package/dist/components/tour/index.d.ts +6 -0
- package/dist/components/tour/index.d.ts.map +1 -0
- package/dist/components/tour/index.js +1449 -0
- package/dist/components/tour/index.js.map +1 -0
- package/dist/components/tour/runtime.d.ts +57 -0
- package/dist/components/tour/runtime.d.ts.map +1 -0
- package/dist/components/tour/storage.d.ts +14 -0
- package/dist/components/tour/storage.d.ts.map +1 -0
- package/dist/components/tour/store.d.ts +62 -0
- package/dist/components/tour/store.d.ts.map +1 -0
- package/dist/components/tour/tour.d.ts +77 -0
- package/dist/components/tour/tour.d.ts.map +1 -0
- package/dist/components/tour/types.d.ts +680 -0
- package/dist/components/tour/types.d.ts.map +1 -0
- package/dist/components/tree/index.d.ts +3 -0
- package/dist/components/tree/index.d.ts.map +1 -0
- package/dist/components/tree/index.js +457 -0
- package/dist/components/tree/index.js.map +1 -0
- package/dist/components/tree/tree-row.d.ts +72 -0
- package/dist/components/tree/tree-row.d.ts.map +1 -0
- package/dist/components/tree/tree.d.ts +193 -0
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree-multi-select/index.js +31 -54
- package/dist/components/tree-multi-select/index.js.map +1 -1
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +16 -1
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
- package/dist/components/tree-select/index.js +30 -24
- package/dist/components/tree-select/index.js.map +1 -1
- package/dist/components/tree-select/tree-popover.d.ts +20 -31
- package/dist/components/tree-select/tree-popover.d.ts.map +1 -1
- package/dist/components/tree-select/tree-select.d.ts +1 -1
- package/dist/components/tree-select/tree-select.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/lib/date-predicates.d.ts +7 -5
- package/dist/lib/date-predicates.d.ts.map +1 -1
- package/dist/lib/date-value.d.ts +20 -0
- package/dist/lib/date-value.d.ts.map +1 -1
- package/dist/lib/floating-arrow.d.ts +53 -0
- package/dist/lib/floating-arrow.d.ts.map +1 -0
- package/dist/lib/focus-return.d.ts +53 -0
- package/dist/lib/focus-return.d.ts.map +1 -0
- package/dist/lib/meter.d.ts +104 -0
- package/dist/lib/meter.d.ts.map +1 -0
- package/dist/lib/overlay-layer.d.ts +26 -8
- package/dist/lib/overlay-layer.d.ts.map +1 -1
- package/dist/lib/pressed.d.ts +92 -0
- package/dist/lib/pressed.d.ts.map +1 -0
- package/dist/lib/tree-data.d.ts +18 -2
- package/dist/lib/tree-data.d.ts.map +1 -1
- package/dist/lib/use-pagination.d.ts +102 -0
- package/dist/lib/use-pagination.d.ts.map +1 -0
- package/dist/lib/use-scroll-spy.d.ts +126 -0
- package/dist/lib/use-scroll-spy.d.ts.map +1 -0
- package/dist/theme.css +39 -3
- package/package.json +1 -1
- package/src/as-child.contract.test.tsx +283 -1
- package/src/components/action-icon/action-icon.tsx +34 -4
- package/src/components/anchor/anchor.test.tsx +232 -0
- package/src/components/anchor/anchor.tsx +187 -0
- package/src/components/anchor/index.ts +12 -0
- package/src/components/app-shell/app-shell.test.tsx +15 -7
- package/src/components/app-shell/app-shell.tsx +27 -20
- package/src/components/autocomplete/autocomplete.tsx +11 -3
- package/src/components/breadcrumb/breadcrumb.test.tsx +24 -0
- package/src/components/breadcrumb/breadcrumb.tsx +20 -1
- package/src/components/button/button-pressed.test.tsx +202 -0
- package/src/components/button/button.tsx +48 -6
- package/src/components/button-select/button-select-control.tsx +2 -2
- package/src/components/button-select/button-select.tsx +22 -2
- package/src/components/calendar/aliases.tsx +28 -0
- package/src/components/calendar/calendar-body.tsx +310 -210
- package/src/components/calendar/calendar.tsx +43 -12
- package/src/components/calendar/index.ts +7 -1
- package/src/components/calendar/month-year-calendar.test.tsx +106 -0
- package/src/components/calendar-heatmap/calendar-heatmap.tsx +88 -73
- package/src/components/checkbox/checkbox.tsx +7 -2
- package/src/components/choice-card-group/choice-card-group.tsx +2 -2
- package/src/components/circular-progress/circular-progress.test.tsx +35 -0
- package/src/components/circular-progress/circular-progress.tsx +116 -59
- package/src/components/circular-progress/index.ts +1 -0
- package/src/components/code/code.test.tsx +16 -0
- package/src/components/code/code.tsx +11 -0
- package/src/components/combobox/combobox.tsx +63 -28
- package/src/components/combobox-list/combobox-list.tsx +11 -3
- package/src/components/data-list/data-list.test.tsx +149 -0
- package/src/components/data-list/data-list.tsx +268 -0
- package/src/components/data-list/index.ts +9 -0
- package/src/components/data-table/data-table-group.test.tsx +16 -0
- package/src/components/data-table/data-table-group.tsx +15 -2
- package/src/components/data-table/data-table-placeholder.tsx +28 -36
- package/src/components/data-table/data-table-stack.tsx +33 -39
- package/src/components/data-table/data-table.test.tsx +31 -0
- package/src/components/data-table/data-table.tsx +41 -42
- package/src/components/date-picker/aliases.tsx +28 -0
- package/src/components/date-picker/date-picker.test.tsx +29 -0
- package/src/components/date-picker/date-picker.tsx +164 -45
- package/src/components/date-picker/index.ts +5 -1
- package/src/components/date-picker/month-year-picker.test.tsx +362 -0
- package/src/components/drawer/drawer.test.tsx +41 -0
- package/src/components/drawer/drawer.tsx +7 -1
- package/src/components/empty-state/empty-state.test.tsx +109 -0
- package/src/components/empty-state/empty-state.tsx +180 -0
- package/src/components/empty-state/index.ts +9 -0
- package/src/components/field/field.tsx +35 -1
- package/src/components/fieldset/fieldset.test.tsx +352 -0
- package/src/components/fieldset/fieldset.tsx +268 -0
- package/src/components/fieldset/index.ts +11 -0
- package/src/components/file-preview/file-preview.test.tsx +2 -1
- package/src/components/file-preview/file-preview.tsx +7 -13
- package/src/components/file-upload/file-upload.tsx +14 -5
- package/src/components/hover-card/hover-card.tsx +5 -1
- package/src/components/input/input.tsx +12 -5
- package/src/components/kbd/kbd.test.tsx +13 -0
- package/src/components/kbd/kbd.tsx +6 -0
- package/src/components/menu/menu.tsx +6 -2
- package/src/components/modal/modal.test.tsx +41 -0
- package/src/components/modal/modal.tsx +17 -9
- package/src/components/multi-combobox-list/multi-combobox-list.tsx +11 -3
- package/src/components/multi-select/multi-select.tsx +11 -3
- package/src/components/notification/create-notifier.tsx +1 -1
- package/src/components/number-input/number-input.tsx +12 -3
- package/src/components/overlays/dialog-parts.tsx +42 -5
- package/src/components/pagination/index.ts +19 -0
- package/src/components/pagination/pagination.test.tsx +187 -0
- package/src/components/pagination/pagination.tsx +563 -0
- package/src/components/password-input/password-input.tsx +12 -3
- package/src/components/phone-input/phone-input.tsx +12 -3
- package/src/components/pills-input/pills-input.tsx +7 -2
- package/src/components/pin-input/pin-input.tsx +13 -4
- package/src/components/popover/popover.tsx +87 -17
- package/src/components/progress/index.ts +1 -0
- package/src/components/progress/progress.test.tsx +102 -0
- package/src/components/progress/progress.tsx +116 -62
- package/src/components/prose/index.ts +1 -0
- package/src/components/prose/prose.test.tsx +90 -0
- package/src/components/prose/prose.tsx +60 -0
- package/src/components/prose/styles.css +593 -0
- package/src/components/radio-group/radio-group.tsx +8 -3
- package/src/components/rating/rating.tsx +5 -2
- package/src/components/scroll-area/index.ts +18 -0
- package/src/components/scroll-area/scroll-area.test.tsx +184 -0
- package/src/components/scroll-area/scroll-area.tsx +448 -0
- package/src/components/segment-group/segment-group.tsx +2 -2
- package/src/components/select/select.tsx +37 -18
- package/src/components/slider/slider.tsx +2 -2
- package/src/components/splitter/index.ts +15 -0
- package/src/components/splitter/splitter.test.tsx +244 -0
- package/src/components/splitter/splitter.tsx +625 -0
- package/src/components/spotlight/spotlight.test.tsx +34 -26
- package/src/components/spotlight/spotlight.tsx +7 -9
- package/src/components/steps/index.ts +21 -0
- package/src/components/steps/steps-data.tsx +179 -0
- package/src/components/steps/steps.test.tsx +235 -0
- package/src/components/steps/steps.tsx +686 -0
- package/src/components/switch/switch.tsx +7 -2
- package/src/components/table-of-contents/index.ts +17 -0
- package/src/components/table-of-contents/table-of-contents.test.tsx +289 -0
- package/src/components/table-of-contents/table-of-contents.tsx +708 -0
- package/src/components/tags-input/tags-input.tsx +12 -3
- package/src/components/textarea/textarea.tsx +15 -5
- package/src/components/tooltip/tooltip.tsx +8 -17
- package/src/components/tour/conditions.test.ts +527 -0
- package/src/components/tour/conditions.ts +445 -0
- package/src/components/tour/create-tours.tsx +150 -0
- package/src/components/tour/index.ts +86 -0
- package/src/components/tour/runtime.ts +187 -0
- package/src/components/tour/storage.test.ts +68 -0
- package/src/components/tour/storage.ts +44 -0
- package/src/components/tour/store.test.tsx +784 -0
- package/src/components/tour/store.ts +661 -0
- package/src/components/tour/tour.test.tsx +318 -0
- package/src/components/tour/tour.tsx +773 -0
- package/src/components/tour/tour.types.test.ts +185 -0
- package/src/components/tour/types.ts +904 -0
- package/src/components/tree/index.ts +24 -0
- package/src/components/tree/tree-row.tsx +179 -0
- package/src/components/tree/tree.test.tsx +296 -0
- package/src/components/tree/tree.tsx +796 -0
- package/src/components/tree-multi-select/tree-multi-select.tsx +29 -58
- package/src/components/tree-select/tree-popover.tsx +26 -107
- package/src/components/tree-select/tree-select.tsx +24 -16
- package/src/icon-stroke.test.tsx +2 -0
- package/src/index.ts +16 -0
- package/src/lib/date-predicates.test.ts +46 -0
- package/src/lib/date-predicates.ts +44 -24
- package/src/lib/date-value.test.ts +24 -1
- package/src/lib/date-value.ts +42 -1
- package/src/lib/floating-arrow.tsx +73 -0
- package/src/lib/focus-return.test.tsx +143 -0
- package/src/lib/focus-return.ts +106 -0
- package/src/lib/meter.test.ts +40 -0
- package/src/lib/meter.ts +159 -0
- package/src/lib/overlay-layer.test.tsx +47 -1
- package/src/lib/overlay-layer.tsx +65 -8
- package/src/lib/pressed.ts +130 -0
- package/src/lib/tree-data.ts +42 -2
- package/src/lib/use-pagination.test.ts +105 -0
- package/src/lib/use-pagination.ts +179 -0
- package/src/lib/use-scroll-spy.test.tsx +238 -0
- package/src/lib/use-scroll-spy.ts +336 -0
- package/src/theme.css +39 -3
- package/src/theme.test.ts +29 -1
- package/src/visually-hidden-containment.test.tsx +9 -0
- package/dist/chunk-2W7H43WL.js.map +0 -1
- package/dist/chunk-7E7JNWOC.js.map +0 -1
- package/dist/chunk-7FPSQBWB.js.map +0 -1
- package/dist/chunk-7KFUFAVP.js.map +0 -1
- package/dist/chunk-AKXALCUN.js.map +0 -1
- package/dist/chunk-B5YHYI7E.js.map +0 -1
- package/dist/chunk-FQJNQW3G.js.map +0 -1
- package/dist/chunk-G3AD3NJG.js.map +0 -1
- package/dist/chunk-GEZYGBXY.js.map +0 -1
- package/dist/chunk-HCHGERDB.js.map +0 -1
- package/dist/chunk-HWBFRDX7.js.map +0 -1
- package/dist/chunk-I4B3N3UX.js.map +0 -1
- package/dist/chunk-IA6DCC3N.js.map +0 -1
- package/dist/chunk-IANYMDKH.js.map +0 -1
- package/dist/chunk-MQHD3EJE.js.map +0 -1
- package/dist/chunk-NNPSBC7O.js.map +0 -1
- package/dist/chunk-OXR7BXZA.js.map +0 -1
- package/dist/chunk-QKSLDQM2.js +0 -120
- package/dist/chunk-QKSLDQM2.js.map +0 -1
- package/dist/chunk-QRNQQIQM.js.map +0 -1
- package/dist/chunk-RKCUXOU2.js.map +0 -1
- package/dist/chunk-S5CQRCTF.js +0 -426
- package/dist/chunk-S5CQRCTF.js.map +0 -1
- package/dist/chunk-SBZJGFZ6.js.map +0 -1
- package/dist/chunk-SP6LCCTZ.js.map +0 -1
- package/dist/chunk-TUP7WXQE.js.map +0 -1
- package/dist/chunk-V2QZG4IT.js.map +0 -1
- package/dist/chunk-X6DESK37.js.map +0 -1
- package/dist/chunk-ZB5VMGKB.js.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../chunk-ZP6EBROY.js';
|
|
3
3
|
import { useNow, isNowPending } from '../../chunk-JQJ23YQX.js';
|
|
4
|
+
import { ScrollArea } from '../../chunk-TPOV3OCC.js';
|
|
5
|
+
import '../../chunk-HBWV5EPU.js';
|
|
4
6
|
import { useLocale, useTimeZone } from '../../chunk-OBSZ4NE2.js';
|
|
5
|
-
import { Tooltip } from '../../chunk-
|
|
7
|
+
import { Tooltip } from '../../chunk-FED6SJWM.js';
|
|
6
8
|
import '../../chunk-V6PY7C6S.js';
|
|
7
9
|
import '../../chunk-SLUOF7XW.js';
|
|
8
10
|
import '../../chunk-PQZSTI3R.js';
|
|
@@ -208,80 +210,90 @@ var CalendarHeatmap = ({
|
|
|
208
210
|
...rest,
|
|
209
211
|
children: [
|
|
210
212
|
/* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
211
|
-
/* @__PURE__ */ jsxs(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
/* @__PURE__ */ jsxs(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
"aria-hidden": true,
|
|
217
|
+
className: cn(caption, TRACKS, "shrink-0 self-start grid-cols-[auto] py-1 pe-2"),
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ jsx("span", { children: "\xA0" }),
|
|
220
|
+
weekdays.map((weekday, row) => /* @__PURE__ */ jsx("span", { className: "flex items-center", children: row % 2 === 1 && format.weekday.format(weekday) }, weekday.getTime()))
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
),
|
|
215
224
|
/* @__PURE__ */ jsxs(Tooltip.Root, { openDelay: 150, closeDelay: 0, children: [
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
225
|
+
/* @__PURE__ */ jsxs(ScrollArea.Root, { scrollbars: "x", size: "sm", offsetScrollbars: "present", className: "min-w-0", children: [
|
|
226
|
+
/* @__PURE__ */ jsx(ScrollArea.Viewport, { ref: scrollerRef, tabIndex: -1, children: /* @__PURE__ */ jsx(ScrollArea.Content, { className: "p-1", children: /* @__PURE__ */ jsxs(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
ref: gridRef,
|
|
230
|
+
role: "grid",
|
|
231
|
+
"aria-label": t.label,
|
|
232
|
+
"aria-busy": pending || void 0,
|
|
233
|
+
className: cn(
|
|
234
|
+
TRACKS,
|
|
235
|
+
"w-max grid-cols-[repeat(var(--weeks),var(--cell))]",
|
|
236
|
+
classNames?.grid
|
|
237
|
+
),
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: cn(caption, "col-span-full grid grid-cols-subgrid"), children: [
|
|
240
|
+
/* @__PURE__ */ jsx("span", { children: "\xA0" }),
|
|
241
|
+
!pending && months.map(({ column, date }) => /* @__PURE__ */ jsx(
|
|
242
|
+
"span",
|
|
243
|
+
{
|
|
244
|
+
className: "row-start-1 whitespace-nowrap",
|
|
245
|
+
style: { gridColumnStart: column + 1 },
|
|
246
|
+
children: format.month.format(date)
|
|
247
|
+
},
|
|
248
|
+
column
|
|
249
|
+
))
|
|
250
|
+
] }),
|
|
251
|
+
weekdays.map((weekday, row) => (
|
|
252
|
+
// biome-ignore lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes; only cells take focus in the grid pattern.
|
|
253
|
+
/* @__PURE__ */ jsxs(
|
|
254
|
+
"div",
|
|
255
|
+
{
|
|
256
|
+
role: "row",
|
|
257
|
+
className: "col-span-full grid grid-cols-subgrid",
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ jsx("div", { role: "rowheader", className: "sr-only", children: format.weekdayLong.format(weekday) }),
|
|
260
|
+
weeks.map((week, column) => {
|
|
261
|
+
const day = week[row];
|
|
262
|
+
if (!day || pending) return /* @__PURE__ */ jsx("div", { role: "gridcell" }, column);
|
|
263
|
+
return /* @__PURE__ */ jsx(Tooltip.Trigger, { asChild: true, value: day.key, children: /* @__PURE__ */ jsx(
|
|
264
|
+
"div",
|
|
265
|
+
{
|
|
266
|
+
role: "gridcell",
|
|
267
|
+
tabIndex: day.key === stop ? 0 : -1,
|
|
268
|
+
"aria-describedby": void 0,
|
|
269
|
+
"data-date": day.key,
|
|
270
|
+
"data-level": day.level,
|
|
271
|
+
className: cn(
|
|
272
|
+
swatch,
|
|
273
|
+
RAMP[intensity(day.level, levels)],
|
|
274
|
+
focusStyles(),
|
|
275
|
+
// Focus scrolls a cell into view: leave room for its ring.
|
|
276
|
+
"scroll-m-1",
|
|
277
|
+
onDayClick && "cursor-pointer",
|
|
278
|
+
classNames?.cell
|
|
279
|
+
),
|
|
280
|
+
onFocus: () => setFocused(day.key),
|
|
281
|
+
onKeyDown: (event) => onKeyDown(event, day, column),
|
|
282
|
+
onClick: onDayClick && (() => onDayClick(day.date, day.value)),
|
|
283
|
+
children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: describe(day) })
|
|
284
|
+
}
|
|
285
|
+
) }, day.key);
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
weekday.getTime()
|
|
290
|
+
)
|
|
239
291
|
))
|
|
240
|
-
]
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
{
|
|
246
|
-
role: "row",
|
|
247
|
-
className: "col-span-full grid grid-cols-subgrid",
|
|
248
|
-
children: [
|
|
249
|
-
/* @__PURE__ */ jsx("div", { role: "rowheader", className: "sr-only", children: format.weekdayLong.format(weekday) }),
|
|
250
|
-
weeks.map((week, column) => {
|
|
251
|
-
const day = week[row];
|
|
252
|
-
if (!day || pending) return /* @__PURE__ */ jsx("div", { role: "gridcell" }, column);
|
|
253
|
-
return /* @__PURE__ */ jsx(Tooltip.Trigger, { asChild: true, value: day.key, children: /* @__PURE__ */ jsx(
|
|
254
|
-
"div",
|
|
255
|
-
{
|
|
256
|
-
role: "gridcell",
|
|
257
|
-
tabIndex: day.key === stop ? 0 : -1,
|
|
258
|
-
"aria-describedby": void 0,
|
|
259
|
-
"data-date": day.key,
|
|
260
|
-
"data-level": day.level,
|
|
261
|
-
className: cn(
|
|
262
|
-
swatch,
|
|
263
|
-
RAMP[intensity(day.level, levels)],
|
|
264
|
-
focusStyles(),
|
|
265
|
-
// Focus scrolls a cell into view: leave room for its ring.
|
|
266
|
-
"scroll-m-1",
|
|
267
|
-
onDayClick && "cursor-pointer",
|
|
268
|
-
classNames?.cell
|
|
269
|
-
),
|
|
270
|
-
onFocus: () => setFocused(day.key),
|
|
271
|
-
onKeyDown: (event) => onKeyDown(event, day, column),
|
|
272
|
-
onClick: onDayClick && (() => onDayClick(day.date, day.value)),
|
|
273
|
-
children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: describe(day) })
|
|
274
|
-
}
|
|
275
|
-
) }, day.key);
|
|
276
|
-
})
|
|
277
|
-
]
|
|
278
|
-
},
|
|
279
|
-
weekday.getTime()
|
|
280
|
-
)
|
|
281
|
-
))
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
) }),
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
) }) }),
|
|
295
|
+
/* @__PURE__ */ jsx(ScrollArea.Scrollbar, { orientation: "horizontal", children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {}) })
|
|
296
|
+
] }),
|
|
285
297
|
/* @__PURE__ */ jsx(Tooltip.Content, { "aria-hidden": true, className: classNames?.tooltip, children: /* @__PURE__ */ jsx(DayTooltip, { weeks, describe }) })
|
|
286
298
|
] })
|
|
287
299
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/calendar-heatmap/calendar-heatmap-grid.ts","../../../src/components/calendar-heatmap/calendar-heatmap.tsx"],"names":["_","target","startOfWeek"],"mappings":";;;;;;;;;;;;;;;;;;;AAoDA,IAAM,gBAAA,GAAmB,CAAA;AAElB,IAAM,KAAA,GAAQ,CAAC,IAAA,EAAY,QAAA,KAChC,eAAe,QAAA,CAAS,IAAA,EAAM,QAAQ,CAAC,CAAA;AAGlC,SAAS,YAAA,CAAa,KAAW,QAAA,EAAkB;AACxD,EAAA,MAAM,IAAA,GAAO,KAAA,CAAM,GAAA,EAAK,QAAQ,CAAA;AAChC,EAAA,OAAO;AAAA,IACL,KAAA,EAAO,IAAA,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M,aAAa,CAAC;AAAA,EAClB,KAAA;AAAA,EACA;AACF,CAAA,KAGM;AACJ,EAAA,MAAM,EAAE,YAAA,EAAa,GAAI,iBAAA,EAAkB;AAC3C,EAAA,MAAM,GAAA,GAAM,MAAM,IAAA,EAAK,CAAE,KAAK,CAAC,SAAA,KAAc,SAAA,EAAW,GAAA,KAAQ,YAAY,CAAA;AAC5E,EAAA,OAAO,GAAA,GAAM,QAAA,CAAS,GAAG,CAAA,GAAI,IAAA;AAC/B,CAAA","file":"index.js","sourcesContent":["import {\n type CalendarDate,\n endOfWeek,\n fromDate,\n startOfWeek,\n toCalendarDate,\n} from \"@internationalized/date\"\nimport type { FirstDayOfWeek } from \"../schedule/schedule-types\"\n\n/**\n * The calendar heatmap's layout, kept free of React so every edge (week start,\n * a range starting mid-week, DST, time zones) is tested as plain data.\n *\n * All arithmetic is on `CalendarDate`, a zone-free wall-calendar day, so a\n * 23- or 25-hour DST day is still exactly one day. `timeZone` is only read at\n * the two crossings: bucketing the consumer's `Date` instants into days, and\n * turning each day back into the `Date` handed to callbacks and formatters.\n */\n\nexport type CalendarHeatmapDatum = { date: Date; value: number }\n\n/** Lower bounds of levels 1–4, ascending. A value below the first is level 0. */\nexport type CalendarHeatmapThresholds =\n | readonly [number]\n | readonly [number, number]\n | readonly [number, number, number]\n | readonly [number, number, number, number]\n\nexport type HeatmapDay = {\n /** Midnight of the day, in the heatmap's time zone. */\n date: Date\n /** `YYYY-MM-DD`: a stable key, and the cell's `data-date`. */\n key: string\n value: number\n /** 0 for nothing, else 1–4 on the four-step ramp (see `intensity`). */\n level: number\n}\n\nexport type HeatmapLayout = {\n /** One column per week, seven slots each. `null` pads the days outside the range. */\n weeks: (HeatmapDay | null)[][]\n /** The column each month label sits above. */\n months: { column: number; date: Date }[]\n /** The first week's seven days, one per row, for the weekday labels. */\n weekdays: Date[]\n /** The thresholds actually applied, after defaulting. */\n thresholds: readonly number[]\n first: CalendarDate\n last: CalendarDate\n}\n\n/** A month label needs this many columns before the next one, or it is dropped. */\nconst MONTH_LABEL_SPAN = 3\n\nexport const toDay = (date: Date, timeZone: string): CalendarDate =>\n toCalendarDate(fromDate(date, timeZone))\n\n/** The year ending on `now`'s day: 365 or 366 days, today last. */\nexport function defaultRange(now: Date, timeZone: string) {\n const last = toDay(now, timeZone)\n return {\n start: last.subtract({ years: 1 }).add({ days: 1 }).toDate(timeZone),\n end: last.toDate(timeZone),\n }\n}\n\n/**\n * GitHub's split: the busiest day's value cut into quarters, so each level\n * covers a quarter of the range. Duplicates collapse, so a sparse dataset\n * (a maximum of 2) gets two levels rather than four that all mean \"1 or 2\".\n * Counts are whole numbers, so the bounds are too: data on another scale\n * (hours, a score) passes its own `thresholds`.\n */\nexport function defaultThresholds(max: number): readonly number[] {\n return [...new Set([0, 1, 2, 3].map((quarter) => Math.floor((max * quarter) / 4) + 1))]\n}\n\n/** How many of `thresholds` the value reaches: 0 below the first. */\nexport const levelOf = (value: number, thresholds: readonly number[]) =>\n thresholds.filter((bound) => value >= bound).length\n\n/**\n * Which of the four color steps a level paints with. With fewer than four\n * levels they spread across the ramp, ending on the strongest, so the\n * busiest days always read as the full color.\n */\nexport const intensity = (level: number, levels: number) =>\n level === 0 ? 0 : Math.round((level * 4) / levels)\n\n/** Each level's value range, for the legend. `max` is `null` on the open top level. */\nexport function legendLevels(thresholds: readonly number[]) {\n return [0, ...thresholds].map((min, level) => {\n const next = thresholds[level]\n return { level, min, max: next === undefined ? null : next }\n })\n}\n\nexport function buildHeatmap(options: {\n data: readonly CalendarHeatmapDatum[]\n start: Date\n end: Date\n timeZone: string\n locale: string\n startOfWeek?: FirstDayOfWeek\n thresholds?: readonly number[]\n}): HeatmapLayout {\n const { data, timeZone, locale } = options\n const first = toDay(options.start, timeZone)\n const last = toDay(options.end, timeZone)\n\n // Same-day entries add up, so a raw event list works as well as daily totals.\n const totals = data.reduce((sums, { date, value }) => {\n const key = toDay(date, timeZone).toString()\n return sums.set(key, (sums.get(key) ?? 0) + value)\n }, new Map<string, number>())\n\n const inRange = [...totals].filter(([key]) => key >= first.toString() && key <= last.toString())\n const max = Math.max(0, ...inRange.map(([, value]) => value))\n const thresholds = options.thresholds ?? defaultThresholds(max)\n\n const gridStart = startOfWeek(first, locale, options.startOfWeek)\n const gridEnd = endOfWeek(last, locale, options.startOfWeek)\n const weekCount = (gridEnd.compare(gridStart) + 1) / 7\n\n const weeks = Array.from({ length: weekCount }, (_, column) =>\n Array.from({ length: 7 }, (_, row) => {\n const day = gridStart.add({ days: column * 7 + row })\n if (day.compare(first) < 0 || day.compare(last) > 0) return null\n const key = day.toString()\n const value = totals.get(key) ?? 0\n return { date: day.toDate(timeZone), key, value, level: levelOf(value, thresholds) }\n }),\n )\n\n // A month's label sits above the first column that opens in it, the way a\n // wall calendar reads. The earlier of two labels too close together is the\n // one dropped: that is the range's partial first month, whose name would\n // collide with the next.\n const opening = weeks.map((week) => week.find((day) => day !== null) ?? null)\n const starts = opening.flatMap((day, column) =>\n day && (column === 0 || day.key.slice(0, 7) !== opening[column - 1]?.key.slice(0, 7))\n ? [{ column, date: day.date }]\n : [],\n )\n const months = starts.filter(\n (label, index) => (starts[index + 1]?.column ?? Infinity) - label.column >= MONTH_LABEL_SPAN,\n )\n\n const weekdays = Array.from({ length: 7 }, (_, row) =>\n gridStart.add({ days: row }).toDate(timeZone),\n )\n\n return { weeks, months, weekdays, thresholds, first, last }\n}\n\n/**\n * Where an arrow key sends focus. Columns are weeks and rows are weekdays, so\n * the horizontal arrows move a week and the vertical ones a day. Every target\n * is clamped to the range, so focus never lands on a padding slot. `null` for\n * a key the grid doesn't handle.\n */\nexport function nextHeatmapDay(\n key: string,\n day: CalendarDate,\n options: {\n dir: \"ltr\" | \"rtl\"\n ctrlKey: boolean\n /** The day's week index (its column). */\n column: number\n columns: number\n first: CalendarDate\n last: CalendarDate\n },\n): CalendarDate | null {\n const { dir, ctrlKey, column, columns, first, last } = options\n const clamp = (target: CalendarDate) =>\n target.compare(first) < 0 ? first : target.compare(last) > 0 ? last : target\n const forward = dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\"\n const backward = dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\"\n const step: Record<string, () => CalendarDate> = {\n [forward]: () => day.add({ weeks: 1 }),\n [backward]: () => day.subtract({ weeks: 1 }),\n ArrowDown: () => day.add({ days: 1 }),\n ArrowUp: () => day.subtract({ days: 1 }),\n Home: () => (ctrlKey ? first : day.subtract({ weeks: column })),\n End: () => (ctrlKey ? last : day.add({ weeks: columns - 1 - column })),\n PageDown: () => day.add({ months: 1 }),\n PageUp: () => day.subtract({ months: 1 }),\n }\n const target = step[key]?.()\n return target ? clamp(target) : null\n}\n","\"use client\"\n\nimport { ark, type HTMLArkProps } from \"@ark-ui/react\"\nimport { useLocaleContext } from \"@ark-ui/react/locale\"\nimport { useTooltipContext } from \"@ark-ui/react/tooltip\"\nimport { parseDate } from \"@internationalized/date\"\nimport { type CSSProperties, type KeyboardEvent, useMemo, useRef, useState } from \"react\"\nimport type { NoAsChild } from \"../../lib/as-child\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { focusStyles } from \"../../lib/focus-styles\"\nimport { useLocale, useTimeZone } from \"../../lib/intl\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\nimport { useIsomorphicLayoutEffect } from \"../../lib/use-isomorphic-layout-effect\"\nimport { isNowPending, useNow } from \"../../lib/use-now\"\nimport type { FirstDayOfWeek } from \"../schedule/schedule-types\"\nimport { Tooltip } from \"../tooltip\"\nimport {\n buildHeatmap,\n type CalendarHeatmapDatum,\n type CalendarHeatmapThresholds,\n defaultRange,\n type HeatmapDay,\n intensity,\n legendLevels,\n nextHeatmapDay,\n} from \"./calendar-heatmap-grid\"\n\nexport type { CalendarHeatmapDatum, CalendarHeatmapThresholds }\n\n/**\n * Everything the heatmap says that `Intl` can't: the grid's name, the legend's\n * ends, and the sentence that names a day. Dates, weekdays, months and numbers\n * are never here, they come from the resolved locale.\n */\nexport type CalendarHeatmapTranslations = {\n /** The grid's accessible name. */\n label: string\n /** A day's tooltip and accessible name. One sentence, so word order is the\n * translation's own: \"3 activités le lundi 26 octobre 2026\". */\n day: (details: { value: number; formattedValue: string; formattedDate: string }) => string\n less: string\n more: string\n}\n\nexport const CALENDAR_HEATMAP_DEFAULT_TRANSLATIONS: CalendarHeatmapTranslations = {\n label: \"Activity\",\n day: ({ value, formattedValue, formattedDate }) =>\n value === 0\n ? `No activity on ${formattedDate}`\n : `${formattedValue} ${value === 1 ? \"activity\" : \"activities\"} on ${formattedDate}`,\n less: \"Less\",\n more: \"More\",\n}\n\nexport type CalendarHeatmapClassNames = {\n grid?: string\n cell?: string\n legend?: string\n tooltip?: string\n}\n\nexport type CalendarHeatmapProps = Omit<NoAsChild<HTMLArkProps<\"div\">>, \"color\" | \"children\"> &\n WithTestId & {\n /** One entry per day, or per event: entries on the same day add up. */\n data: readonly CalendarHeatmapDatum[]\n /** The first and last day shown, both included. Defaults to the year ending today. */\n range?: { start: Date; end: Date }\n /** The ramp's palette. Inherits the nearest `data-color` when omitted. */\n color?: Color\n /**\n * Lower bounds of levels 1 to 4, ascending: `[1, 5, 10, 20]` paints 1–4\n * at level 1 and 20 or more at level 4. One to four of them, never more:\n * past four steps a reader can't rank the shades. Defaults to the busiest\n * day split into quarters.\n */\n thresholds?: CalendarHeatmapThresholds\n /** The day each column starts on. Defaults to the locale's. */\n startOfWeek?: FirstDayOfWeek\n /** BCP-47 tag, or `\"auto\"`. Inherits `IntlProvider`'s when omitted. */\n locale?: \"auto\" | (string & {})\n /** IANA zone the data's instants are bucketed in, or `\"auto\"`. Inherits `IntlProvider`'s. */\n timeZone?: \"auto\" | (string & {})\n /** Makes days activatable, by click, Enter or Space. */\n onDayClick?: (date: Date, value: number) => void\n translations?: Partial<CalendarHeatmapTranslations>\n classNames?: CalendarHeatmapClassNames\n }\n\n/**\n * The four-step ramp, as whole class literals so Tailwind sees every one.\n * Each step is the palette's solid at a growing strength, so any `color`,\n * custom palettes included, makes its own ramp; step 0 is the kit's neutral\n * no-data ground.\n *\n * Forced colors drop every background, so there intensity becomes size: a\n * `Highlight` square that grows with the step inside a `CanvasText` frame.\n */\nconst RAMP = [\n \"bg-brand-900/6 dark:bg-white/8\",\n \"bg-(--c-solid)/30 before:inset-[35%]\",\n \"bg-(--c-solid)/55 before:inset-[24%]\",\n \"bg-(--c-solid)/80 before:inset-[12%]\",\n \"bg-(--c-solid) before:inset-0\",\n]\n\nconst swatch = cn(\n \"relative block aspect-square rounded-xxs\",\n \"forced-colors:border forced-colors:border-[CanvasText] forced-colors:bg-[Canvas]\",\n \"before:absolute before:hidden before:bg-[Highlight] forced-colors:before:block\",\n \"forced-colors:forced-color-adjust-none\",\n)\n\n/** `NumberFormat#formatRange` is ES2023, and the kit's `lib` stops at ES2022. */\ntype RangeNumberFormat = Intl.NumberFormat & { formatRange(start: number, end: number): string }\n\nconst caption = cn(\"text-xs leading-none\", TEXT_COLOR_CLASSES.muted)\n\n/**\n * Figma's cell and gap, as custom properties so a consumer can resize the\n * whole heatmap from `className`: `className=\"[--cell:10px] [--gap:3px]\"`.\n * The squares never stretch or shrink with the container; a range longer\n * than it has room for scrolls instead, whatever its length.\n */\nconst SIZE = \"[--cell:0.75rem] [--gap:0.25rem]\"\n\n/** The month row, then seven day rows: shared by the grid and the weekday labels beside it, which is what lines them up. */\nconst TRACKS = \"grid grid-rows-[auto_repeat(7,var(--cell))] gap-(--gap)\"\n\n/**\n * A GitHub-style activity grid: one square per day, a column per week, the\n * shade saying how much happened.\n *\n * <CalendarHeatmap data={commits} color=\"green\" />\n *\n * It is a real ARIA grid: one tab stop, arrows move a day (↑↓) or a week\n * (←→, mirrored in RTL), Home/End go along the row, Ctrl+Home/End to the\n * ends, PageUp/PageDown a month. Every day is named in full (\"3 activities on\n * Monday, October 26, 2026\"), and one shared tooltip follows hover and focus.\n *\n * The squares keep their size: a range wider than the container scrolls, the\n * latest week in view and the weekday labels pinned beside it.\n */\nexport const CalendarHeatmap = ({\n data,\n range,\n color,\n thresholds,\n startOfWeek,\n locale: localeProp,\n timeZone: timeZoneProp,\n onDayClick,\n translations,\n className,\n classNames,\n style,\n testId,\n ...rest\n}: CalendarHeatmapProps) => {\n const locale = useLocale(localeProp)\n const timeZone = useTimeZone(timeZoneProp)\n const { dir } = useLocaleContext()\n const t = { ...CALENDAR_HEATMAP_DEFAULT_TRANSLATIONS, ...translations }\n\n // The default range ends today, which the server can't know: until the\n // client clock arrives the grid renders empty, so the markup still matches.\n const now = useNow()\n const pending = !range && isNowPending(now)\n const { start, end } = range ?? defaultRange(now, timeZone)\n // Compared by instant, so an inline `range={{ start, end }}` or the default\n // range's minute tick doesn't rebuild an unchanged grid.\n const startTime = start.getTime()\n const endTime = end.getTime()\n\n const layout = useMemo(\n () =>\n buildHeatmap({\n data,\n start: new Date(startTime),\n end: new Date(endTime),\n timeZone,\n locale,\n startOfWeek,\n thresholds,\n }),\n [data, startTime, endTime, timeZone, locale, startOfWeek, thresholds],\n )\n const { weeks, months, weekdays, first, last } = layout\n const levels = layout.thresholds.length\n\n const format = useMemo(\n () => ({\n number: new Intl.NumberFormat(locale) as RangeNumberFormat,\n date: new Intl.DateTimeFormat(locale, { dateStyle: \"full\", timeZone }),\n month: new Intl.DateTimeFormat(locale, { month: \"short\", timeZone }),\n weekday: new Intl.DateTimeFormat(locale, { weekday: \"short\", timeZone }),\n weekdayLong: new Intl.DateTimeFormat(locale, { weekday: \"long\", timeZone }),\n }),\n [locale, timeZone],\n )\n const describe = (day: HeatmapDay) =>\n t.day({\n value: day.value,\n formattedValue: format.number.format(day.value),\n formattedDate: format.date.format(day.date),\n })\n\n // Roving tab stop: the last focused day, else the latest one.\n const [focused, setFocused] = useState<string | null>(null)\n const stop =\n focused && focused >= first.toString() && focused <= last.toString() ? focused : last.toString()\n\n const gridRef = useRef<HTMLDivElement>(null)\n const scrollerRef = useRef<HTMLDivElement>(null)\n\n // Open on the latest week when the grid is wider than its container. By\n // delta, not to an absolute position, so RTL's negative scroll works too.\n useIsomorphicLayoutEffect(() => {\n const scroller = scrollerRef.current\n if (!scroller) return\n scroller.scrollLeft += dir === \"rtl\" ? -scroller.scrollWidth : scroller.scrollWidth\n }, [dir, weeks.length, pending])\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>, day: HeatmapDay, column: number) => {\n if (onDayClick && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault()\n onDayClick(day.date, day.value)\n return\n }\n const target = nextHeatmapDay(event.key, parseDate(day.key), {\n dir,\n ctrlKey: event.ctrlKey || event.metaKey,\n column,\n columns: weeks.length,\n first,\n last,\n })\n if (!target) return\n // The scroller would scroll on an unhandled arrow.\n event.preventDefault()\n const key = target.toString()\n setFocused(key)\n gridRef.current?.querySelector<HTMLElement>(`[data-date=\"${key}\"]`)?.focus()\n }\n\n return (\n <ark.div\n data-color={color}\n // As wide as the weeks need and no wider, so the legend ends where they\n // do; capped at the container, past which the weeks scroll.\n className={cn(\"flex w-fit max-w-full min-w-0 flex-col gap-3\", SIZE, className)}\n style={{ \"--weeks\": weeks.length, ...style } as CSSProperties}\n {...props({ \"data-testid\": testId })}\n {...rest}\n >\n <div className=\"flex\">\n {/* The weekday labels sit outside the scroller, so they stay in view\n however far back the weeks are scrolled. Fixed tracks line them up\n with the rows; the screen-reader row headers live in the grid. */}\n <div aria-hidden className={cn(caption, TRACKS, \"shrink-0 grid-cols-[auto] py-1 pe-2\")}>\n <span> </span>\n {weekdays.map((weekday, row) => (\n <span key={weekday.getTime()} className=\"flex items-center\">\n {/* Every other row, like a paper calendar: seven labels crowd. */}\n {row % 2 === 1 && format.weekday.format(weekday)}\n </span>\n ))}\n </div>\n\n <Tooltip.Root openDelay={150} closeDelay={0}>\n {/* Padded so the focus ring isn't clipped by the scroll edge. */}\n <div ref={scrollerRef} className=\"min-w-0 overflow-x-auto p-1\">\n {/* biome-ignore lint/a11y/useSemanticElements: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes. */}\n <div\n ref={gridRef}\n role=\"grid\"\n aria-label={t.label}\n aria-busy={pending || undefined}\n className={cn(\n TRACKS,\n \"w-max grid-cols-[repeat(var(--weeks),var(--cell))]\",\n classNames?.grid,\n )}\n >\n {/* Each day's own name carries its date, so the month row is visual only. */}\n <div aria-hidden className={cn(caption, \"col-span-full grid grid-cols-subgrid\")}>\n <span> </span>\n {!pending &&\n months.map(({ column, date }) => (\n <span\n key={column}\n className=\"row-start-1 whitespace-nowrap\"\n style={{ gridColumnStart: column + 1 }}\n >\n {format.month.format(date)}\n </span>\n ))}\n </div>\n {weekdays.map((weekday, row) => (\n // biome-ignore lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes; only cells take focus in the grid pattern.\n <div\n key={weekday.getTime()}\n role=\"row\"\n className=\"col-span-full grid grid-cols-subgrid\"\n >\n {/* biome-ignore lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes; a header is read, not focused. */}\n <div role=\"rowheader\" className=\"sr-only\">\n {format.weekdayLong.format(weekday)}\n </div>\n {weeks.map((week, column) => {\n const day = week[row]\n // biome-ignore lint/suspicious/noArrayIndexKey lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: a padding slot has no date, so its column is its identity, and nothing to focus; ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes.\n if (!day || pending) return <div key={column} role=\"gridcell\" />\n return (\n <Tooltip.Trigger key={day.key} asChild value={day.key}>\n {/* biome-ignore lint/a11y/useSemanticElements: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes. */}\n <div\n role=\"gridcell\"\n tabIndex={day.key === stop ? 0 : -1}\n // The tooltip repeats the day's own name, so it mustn't describe it too.\n aria-describedby={undefined}\n data-date={day.key}\n data-level={day.level}\n className={cn(\n swatch,\n RAMP[intensity(day.level, levels)],\n focusStyles(),\n // Focus scrolls a cell into view: leave room for its ring.\n \"scroll-m-1\",\n onDayClick && \"cursor-pointer\",\n classNames?.cell,\n )}\n onFocus={() => setFocused(day.key)}\n onKeyDown={(event) => onKeyDown(event, day, column)}\n onClick={onDayClick && (() => onDayClick(day.date, day.value))}\n >\n <span className=\"sr-only\">{describe(day)}</span>\n </div>\n </Tooltip.Trigger>\n )\n })}\n </div>\n ))}\n </div>\n </div>\n <Tooltip.Content aria-hidden className={classNames?.tooltip}>\n <DayTooltip weeks={weeks} describe={describe} />\n </Tooltip.Content>\n </Tooltip.Root>\n </div>\n\n <div className={cn(caption, \"flex items-center justify-end gap-1\", classNames?.legend)}>\n <span className=\"me-1\">{t.less}</span>\n {legendLevels(layout.thresholds).map(({ level, min, max }) => (\n <span key={level} className={cn(swatch, \"size-(--cell)\", RAMP[intensity(level, levels)])}>\n <span className=\"sr-only\">\n {max === null\n ? `${format.number.format(min)}+`\n : max - min <= 1\n ? format.number.format(min)\n : // NFKC: server and browser ICU disagree on the dash's spacing.\n format.number.formatRange(min, max - 1).normalize(\"NFKC\")}\n </span>\n </span>\n ))}\n <span className=\"ms-1\">{t.more}</span>\n </div>\n </ark.div>\n )\n}\n\n/** The shared tooltip's text: whichever day's trigger it is showing for. */\nconst DayTooltip = ({\n weeks,\n describe,\n}: {\n weeks: (HeatmapDay | null)[][]\n describe: (day: HeatmapDay) => string\n}) => {\n const { triggerValue } = useTooltipContext()\n const day = weeks.flat().find((candidate) => candidate?.key === triggerValue)\n return day ? describe(day) : null\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/calendar-heatmap/calendar-heatmap-grid.ts","../../../src/components/calend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endarDate,\n} from \"@internationalized/date\"\nimport type { FirstDayOfWeek } from \"../schedule/schedule-types\"\n\n/**\n * The calendar heatmap's layout, kept free of React so every edge (week start,\n * a range starting mid-week, DST, time zones) is tested as plain data.\n *\n * All arithmetic is on `CalendarDate`, a zone-free wall-calendar day, so a\n * 23- or 25-hour DST day is still exactly one day. `timeZone` is only read at\n * the two crossings: bucketing the consumer's `Date` instants into days, and\n * turning each day back into the `Date` handed to callbacks and formatters.\n */\n\nexport type CalendarHeatmapDatum = { date: Date; value: number }\n\n/** Lower bounds of levels 1–4, ascending. A value below the first is level 0. */\nexport type CalendarHeatmapThresholds =\n | readonly [number]\n | readonly [number, number]\n | readonly [number, number, number]\n | readonly [number, number, number, number]\n\nexport type HeatmapDay = {\n /** Midnight of the day, in the heatmap's time zone. */\n date: Date\n /** `YYYY-MM-DD`: a stable key, and the cell's `data-date`. */\n key: string\n value: number\n /** 0 for nothing, else 1–4 on the four-step ramp (see `intensity`). */\n level: number\n}\n\nexport type HeatmapLayout = {\n /** One column per week, seven slots each. `null` pads the days outside the range. */\n weeks: (HeatmapDay | null)[][]\n /** The column each month label sits above. */\n months: { column: number; date: Date }[]\n /** The first week's seven days, one per row, for the weekday labels. */\n weekdays: Date[]\n /** The thresholds actually applied, after defaulting. */\n thresholds: readonly number[]\n first: CalendarDate\n last: CalendarDate\n}\n\n/** A month label needs this many columns before the next one, or it is dropped. */\nconst MONTH_LABEL_SPAN = 3\n\nexport const toDay = (date: Date, timeZone: string): CalendarDate =>\n toCalendarDate(fromDate(date, timeZone))\n\n/** The year ending on `now`'s day: 365 or 366 days, today last. */\nexport function defaultRange(now: Date, timeZone: string) {\n const last = toDay(now, timeZone)\n return {\n start: last.subtract({ years: 1 }).add({ days: 1 }).toDate(timeZone),\n end: last.toDate(timeZone),\n }\n}\n\n/**\n * GitHub's split: the busiest day's value cut into quarters, so each level\n * covers a quarter of the range. Duplicates collapse, so a sparse dataset\n * (a maximum of 2) gets two levels rather than four that all mean \"1 or 2\".\n * Counts are whole numbers, so the bounds are too: data on another scale\n * (hours, a score) passes its own `thresholds`.\n */\nexport function defaultThresholds(max: number): readonly number[] {\n return [...new Set([0, 1, 2, 3].map((quarter) => Math.floor((max * quarter) / 4) + 1))]\n}\n\n/** How many of `thresholds` the value reaches: 0 below the first. */\nexport const levelOf = (value: number, thresholds: readonly number[]) =>\n thresholds.filter((bound) => value >= bound).length\n\n/**\n * Which of the four color steps a level paints with. With fewer than four\n * levels they spread across the ramp, ending on the strongest, so the\n * busiest days always read as the full color.\n */\nexport const intensity = (level: number, levels: number) =>\n level === 0 ? 0 : Math.round((level * 4) / levels)\n\n/** Each level's value range, for the legend. `max` is `null` on the open top level. */\nexport function legendLevels(thresholds: readonly number[]) {\n return [0, ...thresholds].map((min, level) => {\n const next = thresholds[level]\n return { level, min, max: next === undefined ? null : next }\n })\n}\n\nexport function buildHeatmap(options: {\n data: readonly CalendarHeatmapDatum[]\n start: Date\n end: Date\n timeZone: string\n locale: string\n startOfWeek?: FirstDayOfWeek\n thresholds?: readonly number[]\n}): HeatmapLayout {\n const { data, timeZone, locale } = options\n const first = toDay(options.start, timeZone)\n const last = toDay(options.end, timeZone)\n\n // Same-day entries add up, so a raw event list works as well as daily totals.\n const totals = data.reduce((sums, { date, value }) => {\n const key = toDay(date, timeZone).toString()\n return sums.set(key, (sums.get(key) ?? 0) + value)\n }, new Map<string, number>())\n\n const inRange = [...totals].filter(([key]) => key >= first.toString() && key <= last.toString())\n const max = Math.max(0, ...inRange.map(([, value]) => value))\n const thresholds = options.thresholds ?? defaultThresholds(max)\n\n const gridStart = startOfWeek(first, locale, options.startOfWeek)\n const gridEnd = endOfWeek(last, locale, options.startOfWeek)\n const weekCount = (gridEnd.compare(gridStart) + 1) / 7\n\n const weeks = Array.from({ length: weekCount }, (_, column) =>\n Array.from({ length: 7 }, (_, row) => {\n const day = gridStart.add({ days: column * 7 + row })\n if (day.compare(first) < 0 || day.compare(last) > 0) return null\n const key = day.toString()\n const value = totals.get(key) ?? 0\n return { date: day.toDate(timeZone), key, value, level: levelOf(value, thresholds) }\n }),\n )\n\n // A month's label sits above the first column that opens in it, the way a\n // wall calendar reads. The earlier of two labels too close together is the\n // one dropped: that is the range's partial first month, whose name would\n // collide with the next.\n const opening = weeks.map((week) => week.find((day) => day !== null) ?? null)\n const starts = opening.flatMap((day, column) =>\n day && (column === 0 || day.key.slice(0, 7) !== opening[column - 1]?.key.slice(0, 7))\n ? [{ column, date: day.date }]\n : [],\n )\n const months = starts.filter(\n (label, index) => (starts[index + 1]?.column ?? Infinity) - label.column >= MONTH_LABEL_SPAN,\n )\n\n const weekdays = Array.from({ length: 7 }, (_, row) =>\n gridStart.add({ days: row }).toDate(timeZone),\n )\n\n return { weeks, months, weekdays, thresholds, first, last }\n}\n\n/**\n * Where an arrow key sends focus. Columns are weeks and rows are weekdays, so\n * the horizontal arrows move a week and the vertical ones a day. Every target\n * is clamped to the range, so focus never lands on a padding slot. `null` for\n * a key the grid doesn't handle.\n */\nexport function nextHeatmapDay(\n key: string,\n day: CalendarDate,\n options: {\n dir: \"ltr\" | \"rtl\"\n ctrlKey: boolean\n /** The day's week index (its column). */\n column: number\n columns: number\n first: CalendarDate\n last: CalendarDate\n },\n): CalendarDate | null {\n const { dir, ctrlKey, column, columns, first, last } = options\n const clamp = (target: CalendarDate) =>\n target.compare(first) < 0 ? first : target.compare(last) > 0 ? last : target\n const forward = dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\"\n const backward = dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\"\n const step: Record<string, () => CalendarDate> = {\n [forward]: () => day.add({ weeks: 1 }),\n [backward]: () => day.subtract({ weeks: 1 }),\n ArrowDown: () => day.add({ days: 1 }),\n ArrowUp: () => day.subtract({ days: 1 }),\n Home: () => (ctrlKey ? first : day.subtract({ weeks: column })),\n End: () => (ctrlKey ? last : day.add({ weeks: columns - 1 - column })),\n PageDown: () => day.add({ months: 1 }),\n PageUp: () => day.subtract({ months: 1 }),\n }\n const target = step[key]?.()\n return target ? clamp(target) : null\n}\n","\"use client\"\n\nimport { ark, type HTMLArkProps } from \"@ark-ui/react\"\nimport { useLocaleContext } from \"@ark-ui/react/locale\"\nimport { useTooltipContext } from \"@ark-ui/react/tooltip\"\nimport { parseDate } from \"@internationalized/date\"\nimport { type CSSProperties, type KeyboardEvent, useMemo, useRef, useState } from \"react\"\nimport type { NoAsChild } from \"../../lib/as-child\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { focusStyles } from \"../../lib/focus-styles\"\nimport { useLocale, useTimeZone } from \"../../lib/intl\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\nimport { useIsomorphicLayoutEffect } from \"../../lib/use-isomorphic-layout-effect\"\nimport { isNowPending, useNow } from \"../../lib/use-now\"\nimport type { FirstDayOfWeek } from \"../schedule/schedule-types\"\nimport { ScrollArea } from \"../scroll-area/scroll-area\"\nimport { Tooltip } from \"../tooltip\"\nimport {\n buildHeatmap,\n type CalendarHeatmapDatum,\n type CalendarHeatmapThresholds,\n defaultRange,\n type HeatmapDay,\n intensity,\n legendLevels,\n nextHeatmapDay,\n} from \"./calendar-heatmap-grid\"\n\nexport type { CalendarHeatmapDatum, CalendarHeatmapThresholds }\n\n/**\n * Everything the heatmap says that `Intl` can't: the grid's name, the legend's\n * ends, and the sentence that names a day. Dates, weekdays, months and numbers\n * are never here, they come from the resolved locale.\n */\nexport type CalendarHeatmapTranslations = {\n /** The grid's accessible name. */\n label: string\n /** A day's tooltip and accessible name. One sentence, so word order is the\n * translation's own: \"3 activités le lundi 26 octobre 2026\". */\n day: (details: { value: number; formattedValue: string; formattedDate: string }) => string\n less: string\n more: string\n}\n\nexport const CALENDAR_HEATMAP_DEFAULT_TRANSLATIONS: CalendarHeatmapTranslations = {\n label: \"Activity\",\n day: ({ value, formattedValue, formattedDate }) =>\n value === 0\n ? `No activity on ${formattedDate}`\n : `${formattedValue} ${value === 1 ? \"activity\" : \"activities\"} on ${formattedDate}`,\n less: \"Less\",\n more: \"More\",\n}\n\nexport type CalendarHeatmapClassNames = {\n grid?: string\n cell?: string\n legend?: string\n tooltip?: string\n}\n\nexport type CalendarHeatmapProps = Omit<NoAsChild<HTMLArkProps<\"div\">>, \"color\" | \"children\"> &\n WithTestId & {\n /** One entry per day, or per event: entries on the same day add up. */\n data: readonly CalendarHeatmapDatum[]\n /** The first and last day shown, both included. Defaults to the year ending today. */\n range?: { start: Date; end: Date }\n /** The ramp's palette. Inherits the nearest `data-color` when omitted. */\n color?: Color\n /**\n * Lower bounds of levels 1 to 4, ascending: `[1, 5, 10, 20]` paints 1–4\n * at level 1 and 20 or more at level 4. One to four of them, never more:\n * past four steps a reader can't rank the shades. Defaults to the busiest\n * day split into quarters.\n */\n thresholds?: CalendarHeatmapThresholds\n /** The day each column starts on. Defaults to the locale's. */\n startOfWeek?: FirstDayOfWeek\n /** BCP-47 tag, or `\"auto\"`. Inherits `IntlProvider`'s when omitted. */\n locale?: \"auto\" | (string & {})\n /** IANA zone the data's instants are bucketed in, or `\"auto\"`. Inherits `IntlProvider`'s. */\n timeZone?: \"auto\" | (string & {})\n /** Makes days activatable, by click, Enter or Space. */\n onDayClick?: (date: Date, value: number) => void\n translations?: Partial<CalendarHeatmapTranslations>\n classNames?: CalendarHeatmapClassNames\n }\n\n/**\n * The four-step ramp, as whole class literals so Tailwind sees every one.\n * Each step is the palette's solid at a growing strength, so any `color`,\n * custom palettes included, makes its own ramp; step 0 is the kit's neutral\n * no-data ground.\n *\n * Forced colors drop every background, so there intensity becomes size: a\n * `Highlight` square that grows with the step inside a `CanvasText` frame.\n */\nconst RAMP = [\n \"bg-brand-900/6 dark:bg-white/8\",\n \"bg-(--c-solid)/30 before:inset-[35%]\",\n \"bg-(--c-solid)/55 before:inset-[24%]\",\n \"bg-(--c-solid)/80 before:inset-[12%]\",\n \"bg-(--c-solid) before:inset-0\",\n]\n\nconst swatch = cn(\n \"relative block aspect-square rounded-xxs\",\n \"forced-colors:border forced-colors:border-[CanvasText] forced-colors:bg-[Canvas]\",\n \"before:absolute before:hidden before:bg-[Highlight] forced-colors:before:block\",\n \"forced-colors:forced-color-adjust-none\",\n)\n\n/** `NumberFormat#formatRange` is ES2023, and the kit's `lib` stops at ES2022. */\ntype RangeNumberFormat = Intl.NumberFormat & { formatRange(start: number, end: number): string }\n\nconst caption = cn(\"text-xs leading-none\", TEXT_COLOR_CLASSES.muted)\n\n/**\n * Figma's cell and gap, as custom properties so a consumer can resize the\n * whole heatmap from `className`: `className=\"[--cell:10px] [--gap:3px]\"`.\n * The squares never stretch or shrink with the container; a range longer\n * than it has room for scrolls instead, whatever its length.\n */\nconst SIZE = \"[--cell:0.75rem] [--gap:0.25rem]\"\n\n/** The month row, then seven day rows: shared by the grid and the weekday labels beside it, which is what lines them up. */\nconst TRACKS = \"grid grid-rows-[auto_repeat(7,var(--cell))] gap-(--gap)\"\n\n/**\n * A GitHub-style activity grid: one square per day, a column per week, the\n * shade saying how much happened.\n *\n * <CalendarHeatmap data={commits} color=\"green\" />\n *\n * It is a real ARIA grid: one tab stop, arrows move a day (↑↓) or a week\n * (←→, mirrored in RTL), Home/End go along the row, Ctrl+Home/End to the\n * ends, PageUp/PageDown a month. Every day is named in full (\"3 activities on\n * Monday, October 26, 2026\"), and one shared tooltip follows hover and focus.\n *\n * The squares keep their size: a range wider than the container scrolls, the\n * latest week in view and the weekday labels pinned beside it.\n */\nexport const CalendarHeatmap = ({\n data,\n range,\n color,\n thresholds,\n startOfWeek,\n locale: localeProp,\n timeZone: timeZoneProp,\n onDayClick,\n translations,\n className,\n classNames,\n style,\n testId,\n ...rest\n}: CalendarHeatmapProps) => {\n const locale = useLocale(localeProp)\n const timeZone = useTimeZone(timeZoneProp)\n const { dir } = useLocaleContext()\n const t = { ...CALENDAR_HEATMAP_DEFAULT_TRANSLATIONS, ...translations }\n\n // The default range ends today, which the server can't know: until the\n // client clock arrives the grid renders empty, so the markup still matches.\n const now = useNow()\n const pending = !range && isNowPending(now)\n const { start, end } = range ?? defaultRange(now, timeZone)\n // Compared by instant, so an inline `range={{ start, end }}` or the default\n // range's minute tick doesn't rebuild an unchanged grid.\n const startTime = start.getTime()\n const endTime = end.getTime()\n\n const layout = useMemo(\n () =>\n buildHeatmap({\n data,\n start: new Date(startTime),\n end: new Date(endTime),\n timeZone,\n locale,\n startOfWeek,\n thresholds,\n }),\n [data, startTime, endTime, timeZone, locale, startOfWeek, thresholds],\n )\n const { weeks, months, weekdays, first, last } = layout\n const levels = layout.thresholds.length\n\n const format = useMemo(\n () => ({\n number: new Intl.NumberFormat(locale) as RangeNumberFormat,\n date: new Intl.DateTimeFormat(locale, { dateStyle: \"full\", timeZone }),\n month: new Intl.DateTimeFormat(locale, { month: \"short\", timeZone }),\n weekday: new Intl.DateTimeFormat(locale, { weekday: \"short\", timeZone }),\n weekdayLong: new Intl.DateTimeFormat(locale, { weekday: \"long\", timeZone }),\n }),\n [locale, timeZone],\n )\n const describe = (day: HeatmapDay) =>\n t.day({\n value: day.value,\n formattedValue: format.number.format(day.value),\n formattedDate: format.date.format(day.date),\n })\n\n // Roving tab stop: the last focused day, else the latest one.\n const [focused, setFocused] = useState<string | null>(null)\n const stop =\n focused && focused >= first.toString() && focused <= last.toString() ? focused : last.toString()\n\n const gridRef = useRef<HTMLDivElement>(null)\n const scrollerRef = useRef<HTMLDivElement>(null)\n\n // Open on the latest week when the grid is wider than its container. By\n // delta, not to an absolute position, so RTL's negative scroll works too.\n useIsomorphicLayoutEffect(() => {\n const scroller = scrollerRef.current\n if (!scroller) return\n scroller.scrollLeft += dir === \"rtl\" ? -scroller.scrollWidth : scroller.scrollWidth\n }, [dir, weeks.length, pending])\n\n const onKeyDown = (event: KeyboardEvent<HTMLElement>, day: HeatmapDay, column: number) => {\n if (onDayClick && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault()\n onDayClick(day.date, day.value)\n return\n }\n const target = nextHeatmapDay(event.key, parseDate(day.key), {\n dir,\n ctrlKey: event.ctrlKey || event.metaKey,\n column,\n columns: weeks.length,\n first,\n last,\n })\n if (!target) return\n // The scroller would scroll on an unhandled arrow.\n event.preventDefault()\n const key = target.toString()\n setFocused(key)\n gridRef.current?.querySelector<HTMLElement>(`[data-date=\"${key}\"]`)?.focus()\n }\n\n return (\n <ark.div\n data-color={color}\n // As wide as the weeks need and no wider, so the legend ends where they\n // do; capped at the container, past which the weeks scroll.\n className={cn(\"flex w-fit max-w-full min-w-0 flex-col gap-3\", SIZE, className)}\n style={{ \"--weeks\": weeks.length, ...style } as CSSProperties}\n {...props({ \"data-testid\": testId })}\n {...rest}\n >\n <div className=\"flex\">\n {/* The weekday labels sit outside the scroller, so they stay in view\n however far back the weeks are scrolled. Fixed tracks line them up\n with the rows (`self-start`: the scroller's bar gutter mustn't stretch them); the\n screen-reader row headers live in the grid. */}\n <div\n aria-hidden\n className={cn(caption, TRACKS, \"shrink-0 self-start grid-cols-[auto] py-1 pe-2\")}\n >\n <span> </span>\n {weekdays.map((weekday, row) => (\n <span key={weekday.getTime()} className=\"flex items-center\">\n {/* Every other row, like a paper calendar: seven labels crowd. */}\n {row % 2 === 1 && format.weekday.format(weekday)}\n </span>\n ))}\n </div>\n\n <Tooltip.Root openDelay={150} closeDelay={0}>\n {/* The weeks scroll sideways in a ScrollArea, its bar in a gutter of its own under the\n rows when they overflow. The viewport stays out of the tab order: the grid's\n roving cell is the one stop, and focusing a cell scrolls it into view. The\n content is padded so the focus ring isn't clipped by the scroll edge. */}\n <ScrollArea.Root scrollbars=\"x\" size=\"sm\" offsetScrollbars=\"present\" className=\"min-w-0\">\n <ScrollArea.Viewport ref={scrollerRef} tabIndex={-1}>\n <ScrollArea.Content className=\"p-1\">\n {/* biome-ignore lint/a11y/useSemanticElements: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes. */}\n <div\n ref={gridRef}\n role=\"grid\"\n aria-label={t.label}\n aria-busy={pending || undefined}\n className={cn(\n TRACKS,\n \"w-max grid-cols-[repeat(var(--weeks),var(--cell))]\",\n classNames?.grid,\n )}\n >\n {/* Each day's own name carries its date, so the month row is visual only. */}\n <div aria-hidden className={cn(caption, \"col-span-full grid grid-cols-subgrid\")}>\n <span> </span>\n {!pending &&\n months.map(({ column, date }) => (\n <span\n key={column}\n className=\"row-start-1 whitespace-nowrap\"\n style={{ gridColumnStart: column + 1 }}\n >\n {format.month.format(date)}\n </span>\n ))}\n </div>\n {weekdays.map((weekday, row) => (\n // biome-ignore lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes; only cells take focus in the grid pattern.\n <div\n key={weekday.getTime()}\n role=\"row\"\n className=\"col-span-full grid grid-cols-subgrid\"\n >\n {/* biome-ignore lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes; a header is read, not focused. */}\n <div role=\"rowheader\" className=\"sr-only\">\n {format.weekdayLong.format(weekday)}\n </div>\n {weeks.map((week, column) => {\n const day = week[row]\n // biome-ignore lint/suspicious/noArrayIndexKey lint/a11y/useSemanticElements lint/a11y/useFocusableInteractive: a padding slot has no date, so its column is its identity, and nothing to focus; ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes.\n if (!day || pending) return <div key={column} role=\"gridcell\" />\n return (\n <Tooltip.Trigger key={day.key} asChild value={day.key}>\n {/* biome-ignore lint/a11y/useSemanticElements: ARIA grid on divs, not a <table>: the cells are laid out on CSS grid tracks (rows are subgrids), and table elements lose their implicit semantics in some engines once their display changes. */}\n <div\n role=\"gridcell\"\n tabIndex={day.key === stop ? 0 : -1}\n // The tooltip repeats the day's own name, so it mustn't describe it too.\n aria-describedby={undefined}\n data-date={day.key}\n data-level={day.level}\n className={cn(\n swatch,\n RAMP[intensity(day.level, levels)],\n focusStyles(),\n // Focus scrolls a cell into view: leave room for its ring.\n \"scroll-m-1\",\n onDayClick && \"cursor-pointer\",\n classNames?.cell,\n )}\n onFocus={() => setFocused(day.key)}\n onKeyDown={(event) => onKeyDown(event, day, column)}\n onClick={onDayClick && (() => onDayClick(day.date, day.value))}\n >\n <span className=\"sr-only\">{describe(day)}</span>\n </div>\n </Tooltip.Trigger>\n )\n })}\n </div>\n ))}\n </div>\n </ScrollArea.Content>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation=\"horizontal\">\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea.Root>\n <Tooltip.Content aria-hidden className={classNames?.tooltip}>\n <DayTooltip weeks={weeks} describe={describe} />\n </Tooltip.Content>\n </Tooltip.Root>\n </div>\n\n <div className={cn(caption, \"flex items-center justify-end gap-1\", classNames?.legend)}>\n <span className=\"me-1\">{t.less}</span>\n {legendLevels(layout.thresholds).map(({ level, min, max }) => (\n <span key={level} className={cn(swatch, \"size-(--cell)\", RAMP[intensity(level, levels)])}>\n <span className=\"sr-only\">\n {max === null\n ? `${format.number.format(min)}+`\n : max - min <= 1\n ? format.number.format(min)\n : // NFKC: server and browser ICU disagree on the dash's spacing.\n format.number.formatRange(min, max - 1).normalize(\"NFKC\")}\n </span>\n </span>\n ))}\n <span className=\"ms-1\">{t.more}</span>\n </div>\n </ark.div>\n )\n}\n\n/** The shared tooltip's text: whichever day's trigger it is showing for. */\nconst DayTooltip = ({\n weeks,\n describe,\n}: {\n weeks: (HeatmapDay | null)[][]\n describe: (day: HeatmapDay) => string\n}) => {\n const { triggerValue } = useTooltipContext()\n const day = weeks.flat().find((candidate) => candidate?.key === triggerValue)\n return day ? describe(day) : null\n}\n"]}
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Camera, useCamera, useCameraContext } from '../../chunk-
|
|
3
|
-
import '../../chunk-HX3LNK26.js';
|
|
2
|
+
export { Camera, useCamera, useCameraContext } from '../../chunk-JCNEW4WJ.js';
|
|
4
3
|
import '../../chunk-K6YASO4L.js';
|
|
5
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-HX3LNK26.js';
|
|
5
|
+
import '../../chunk-AUQPNDE5.js';
|
|
6
6
|
import '../../chunk-TWNIAF7K.js';
|
|
7
|
+
import '../../chunk-KZDMVOL6.js';
|
|
7
8
|
import '../../chunk-J43LSYQO.js';
|
|
8
9
|
import '../../chunk-7TDHT3QD.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-WJUY6YWF.js';
|
|
10
11
|
import '../../chunk-5FDOOG4J.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-HTVICHT4.js';
|
|
13
|
+
import '../../chunk-2RRTT4AF.js';
|
|
13
14
|
import '../../chunk-KNGSO7A3.js';
|
|
14
15
|
import '../../chunk-SKPM2FRX.js';
|
|
15
|
-
import '../../chunk-SP6LCCTZ.js';
|
|
16
16
|
import '../../chunk-WG3BCIU4.js';
|
|
17
17
|
import '../../chunk-CQ4M4BSF.js';
|
|
18
18
|
import '../../chunk-HDYORQZN.js';
|
|
19
|
-
import '../../chunk-HBWV5EPU.js';
|
|
20
19
|
import '../../chunk-AHM6SGEU.js';
|
|
20
|
+
import '../../chunk-YUVKROMA.js';
|
|
21
|
+
import '../../chunk-TPOV3OCC.js';
|
|
22
|
+
import '../../chunk-SI7C3W5M.js';
|
|
23
|
+
import '../../chunk-HBWV5EPU.js';
|
|
21
24
|
import '../../chunk-OBSZ4NE2.js';
|
|
22
|
-
import '../../chunk-RKCUXOU2.js';
|
|
23
|
-
import '../../chunk-HWBFRDX7.js';
|
|
24
25
|
import '../../chunk-V6PY7C6S.js';
|
|
25
26
|
import '../../chunk-SLUOF7XW.js';
|
|
26
|
-
import '../../chunk-
|
|
27
|
+
import '../../chunk-ALANKV5Y.js';
|
|
28
|
+
import '../../chunk-NDI4HLQE.js';
|
|
27
29
|
import '../../chunk-6B2GNPJP.js';
|
|
28
|
-
import '../../chunk-PQZSTI3R.js';
|
|
29
|
-
import '../../chunk-PMUCGFY5.js';
|
|
30
|
-
import '../../chunk-BUIHQJGE.js';
|
|
31
30
|
import '../../chunk-6YNLRQ25.js';
|
|
32
31
|
import '../../chunk-XXOR34T4.js';
|
|
33
32
|
import '../../chunk-W3XX7BYT.js';
|
|
33
|
+
import '../../chunk-PQZSTI3R.js';
|
|
34
|
+
import '../../chunk-PMUCGFY5.js';
|
|
35
|
+
import '../../chunk-BUIHQJGE.js';
|
|
34
36
|
import '../../chunk-R5LYFTHA.js';
|
|
35
37
|
import '../../chunk-WYCMIIRR.js';
|
|
36
38
|
import '../../chunk-C6NVU4F7.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../chunk-AZ2VUAGX.js';
|
|
3
|
-
import { Image } from '../../chunk-
|
|
3
|
+
import { Image } from '../../chunk-G3YOSG3U.js';
|
|
4
4
|
import { MEDIA_RADIUS } from '../../chunk-J43LSYQO.js';
|
|
5
5
|
import { useOpenIndexTrigger } from '../../chunk-RNRD6ER5.js';
|
|
6
6
|
import { useReducedMotion } from '../../chunk-CQ4M4BSF.js';
|
|
7
7
|
import '../../chunk-HDYORQZN.js';
|
|
8
|
-
import { useMergedRefs } from '../../chunk-HBWV5EPU.js';
|
|
9
8
|
import { ratioStyle } from '../../chunk-AHM6SGEU.js';
|
|
9
|
+
import { useMergedRefs } from '../../chunk-HBWV5EPU.js';
|
|
10
10
|
import { useLocale, useDirectionCheck } from '../../chunk-OBSZ4NE2.js';
|
|
11
|
+
import { iconStroke, mergeIcons } from '../../chunk-XXOR34T4.js';
|
|
11
12
|
import '../../chunk-PQZSTI3R.js';
|
|
12
13
|
import { useIsomorphicLayoutEffect } from '../../chunk-BUIHQJGE.js';
|
|
13
|
-
import { iconStroke, mergeIcons } from '../../chunk-XXOR34T4.js';
|
|
14
14
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
15
15
|
import { focusStyles } from '../../chunk-C6NVU4F7.js';
|
|
16
16
|
import { TEXT_COLOR_CLASSES } from '../../chunk-GIPQUKCN.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,KAAK,OAAO,EAA0B,MAAM,iBAAiB,CAAA;AAEtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,KAAK,OAAO,EAA0B,MAAM,iBAAiB,CAAA;AAEtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAWnD,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,WAAW,CAAA;AAE1E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,eAAe,CAAA;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB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SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,sDAAsD;QACtD,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAeD,eAAO,MAAM,QAAQ,yNAuBlB,aAAa,gCAoEf,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Checkbox } from '../../chunk-
|
|
2
|
+
export { Checkbox } from '../../chunk-FEPIHXVI.js';
|
|
3
3
|
import '../../chunk-NLOBBJAA.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-2RRTT4AF.js';
|
|
5
5
|
import '../../chunk-6YNLRQ25.js';
|
|
6
6
|
import '../../chunk-XXOR34T4.js';
|
|
7
7
|
import '../../chunk-WYCMIIRR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { controlIndicator } from '../../chunk-NLOBBJAA.js';
|
|
3
|
-
import { FieldShell, fieldA11yProps } from '../../chunk-
|
|
3
|
+
import { useInheritedInvalid, FieldShell, fieldA11yProps } from '../../chunk-2RRTT4AF.js';
|
|
4
4
|
import { CheckIcon } from '../../chunk-6YNLRQ25.js';
|
|
5
5
|
import '../../chunk-XXOR34T4.js';
|
|
6
6
|
import { props } from '../../chunk-WYCMIIRR.js';
|
|
@@ -151,7 +151,7 @@ var ChoiceCardGroup = (groupProps) => {
|
|
|
151
151
|
classNames,
|
|
152
152
|
testId
|
|
153
153
|
} = groupProps;
|
|
154
|
-
const isInvalid = invalid || error != null;
|
|
154
|
+
const isInvalid = useInheritedInvalid(invalid || error != null);
|
|
155
155
|
const normalized = data.map(normalize);
|
|
156
156
|
const isValue = (candidate) => normalized.some((item) => item.value === candidate);
|
|
157
157
|
const reactId = useId();
|