@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
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/** One heading the spy watches. */
|
|
3
|
+
export type ScrollSpyHeading = {
|
|
4
|
+
/** The heading element's `id`: its `#hash`, and the spy's `active` value. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Its text, from `getLabel` (by default the element's text). */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Its level: `2` for an `<h2>`, from `getDepth`. */
|
|
9
|
+
depth: number;
|
|
10
|
+
/** The element. `null` on the server, before mount, and for a `data` entry whose id isn't on the page. */
|
|
11
|
+
node: HTMLElement | null;
|
|
12
|
+
};
|
|
13
|
+
/** A heading you already know, passed as `data` instead of collected from the page. */
|
|
14
|
+
export type ScrollSpyEntry = {
|
|
15
|
+
/** The heading element's `id`. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Its text. Defaults to the element's text once mounted, `""` before. */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Its level. Defaults to the element's own (`2` for an `<h2>`) once mounted, `1` before. */
|
|
20
|
+
depth?: number;
|
|
21
|
+
};
|
|
22
|
+
export type UseScrollSpyOptions = {
|
|
23
|
+
/**
|
|
24
|
+
* Where to collect headings from: a ref, or a CSS selector for one
|
|
25
|
+
* element. The whole document without it. Ignored when `data` is set.
|
|
26
|
+
*/
|
|
27
|
+
container?: RefObject<Element | null> | string;
|
|
28
|
+
/** Which elements count as headings. @default "h1, h2, h3, h4, h5, h6" */
|
|
29
|
+
selector?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The headings to watch, in order, instead of collecting them. They are
|
|
32
|
+
* returned as `data` straight away, so a server render already has them.
|
|
33
|
+
*/
|
|
34
|
+
data?: readonly ScrollSpyEntry[];
|
|
35
|
+
/** A heading's level. By default its tag's (`h3` is `3`), else its `aria-level`, else `1`. */
|
|
36
|
+
getDepth?: (element: HTMLElement) => number;
|
|
37
|
+
/** A heading's label. By default its trimmed text. */
|
|
38
|
+
getLabel?: (element: HTMLElement) => string;
|
|
39
|
+
/** The scrolling ancestor the headings move in. The window without it. */
|
|
40
|
+
root?: RefObject<HTMLElement | null>;
|
|
41
|
+
/**
|
|
42
|
+
* The height, in px, of whatever covers the top of `root` (a sticky
|
|
43
|
+
* header). A heading becomes active when it reaches this line, and
|
|
44
|
+
* `scrollTo` stops it just below it. @default 0
|
|
45
|
+
*/
|
|
46
|
+
offset?: number;
|
|
47
|
+
};
|
|
48
|
+
/** How `scrollTo` moves. */
|
|
49
|
+
export type ScrollSpyScrollOptions = {
|
|
50
|
+
/** `"smooth"` by default, or `"instant"` when the reader prefers reduced motion. */
|
|
51
|
+
behavior?: ScrollBehavior;
|
|
52
|
+
};
|
|
53
|
+
export type UseScrollSpyReturnValue = {
|
|
54
|
+
/** The `id` of the heading being read, `null` before the first measure or with no headings. */
|
|
55
|
+
active: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The `id`s of every section in view, in order: from the one being read
|
|
58
|
+
* (whose heading is at or above the line) to the last heading above the
|
|
59
|
+
* bottom of `root`. Never empty once `active` is set. A table of contents
|
|
60
|
+
* highlights this range; `active` is the one entry that gets
|
|
61
|
+
* `aria-current`.
|
|
62
|
+
*/
|
|
63
|
+
visible: string[];
|
|
64
|
+
/** The headings, in document order. Empty until mount unless `data` was passed. */
|
|
65
|
+
data: ScrollSpyHeading[];
|
|
66
|
+
/** `true` once the headings have been read from the page. */
|
|
67
|
+
initialized: boolean;
|
|
68
|
+
/** Reads the headings again, for content that changed after mount. */
|
|
69
|
+
reinitialize: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Scrolls `root` so the heading sits just under `offset`, and makes it
|
|
72
|
+
* active until the scroll settles. Returns `false` when the heading isn't
|
|
73
|
+
* on the page.
|
|
74
|
+
*/
|
|
75
|
+
scrollTo: (id: string, options?: ScrollSpyScrollOptions) => boolean;
|
|
76
|
+
};
|
|
77
|
+
export declare const DEFAULT_SCROLL_SPY_SELECTOR = "h1, h2, h3, h4, h5, h6";
|
|
78
|
+
/**
|
|
79
|
+
* The sections in view, as `[first, last]` indices: from the section the
|
|
80
|
+
* line sits in (the last heading at or above it, else the first) to the
|
|
81
|
+
* last heading above `bottom`. `[-1, -1]` with no headings.
|
|
82
|
+
*/
|
|
83
|
+
export declare function pickVisibleRange(tops: readonly number[], { line, bottom }: {
|
|
84
|
+
line: number;
|
|
85
|
+
bottom: number;
|
|
86
|
+
}): [number, number];
|
|
87
|
+
/**
|
|
88
|
+
* Picks the heading being read from each heading's top edge (viewport
|
|
89
|
+
* coordinates): the last one that has reached `line`, or the first one
|
|
90
|
+
* before any has. At the end of the scroll the last headings can never
|
|
91
|
+
* reach the line, so there the last one still in view (`top < bottom`) wins
|
|
92
|
+
* instead. `-1` only with no headings.
|
|
93
|
+
*/
|
|
94
|
+
export declare function pickActiveHeading(tops: readonly number[], { line, bottom, end }: {
|
|
95
|
+
line: number;
|
|
96
|
+
bottom: number;
|
|
97
|
+
end: boolean;
|
|
98
|
+
}): number;
|
|
99
|
+
/**
|
|
100
|
+
* Scroll-spy: collects the headings on a page (or takes the ones you pass)
|
|
101
|
+
* and tracks which one is being read (`active`) and which sections are in
|
|
102
|
+
* view (`visible`), for a table of contents.
|
|
103
|
+
*
|
|
104
|
+
* A heading is active once its top has scrolled up to `offset` (the height
|
|
105
|
+
* of a sticky header), and stays active until the next one gets there. At
|
|
106
|
+
* the bottom of the page, where the last sections are too short to reach
|
|
107
|
+
* the line, the last heading in view wins, so the last entry can light up.
|
|
108
|
+
*
|
|
109
|
+
* `scrollTo` scrolls by the distance between the heading and that line
|
|
110
|
+
* (`scrollBy`), never to an absolute position, so it works in any scroller
|
|
111
|
+
* and any writing direction. While the scroll it started is running, the
|
|
112
|
+
* clicked heading stays active instead of every heading it passes.
|
|
113
|
+
*
|
|
114
|
+
* Headings are read on mount. Call `reinitialize` when the content changes.
|
|
115
|
+
* A collected heading without an `id` is skipped (it couldn't be linked to),
|
|
116
|
+
* with a warning in development.
|
|
117
|
+
*
|
|
118
|
+
* const spy = useScrollSpy({ container: "#article", selector: "h2, h3", offset: 64 })
|
|
119
|
+
* spy.data.map((h) => (
|
|
120
|
+
* <a key={h.id} href={`#${h.id}`} aria-current={h.id === spy.active ? "location" : undefined}>
|
|
121
|
+
* {h.label}
|
|
122
|
+
* </a>
|
|
123
|
+
* ))
|
|
124
|
+
*/
|
|
125
|
+
export declare function useScrollSpy({ container, selector, data: entries, getDepth, getLabel, root, offset, }?: UseScrollSpyOptions): UseScrollSpyReturnValue;
|
|
126
|
+
//# sourceMappingURL=use-scroll-spy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scroll-spy.d.ts","sourceRoot":"","sources":["../../src/lib/use-scroll-spy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAIhF,mCAAmC;AACnC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAA;IACV,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,0GAA0G;IAC1G,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;CACzB,CAAA;AAED,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG;IAC3B,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,MAAM,CAAA;IAC9C,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IAChC,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAA;IAC3C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAA;IAC3C,0EAA0E;IAC1E,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,4BAA4B;AAC5B,MAAM,MAAM,sBAAsB,GAAG;IACnC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,cAAc,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,+FAA+F;IAC/F,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,mFAAmF;IACnF,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,6DAA6D;IAC7D,WAAW,EAAE,OAAO,CAAA;IACpB,sEAAsE;IACtE,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAA;CACpE,CAAA;AAED,eAAO,MAAM,2BAA2B,2BAA2B,CAAA;AAoCnE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjD,CAAC,MAAM,EAAE,MAAM,CAAC,CAalB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GACpE,MAAM,CASR;AASD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,QAAsC,EACtC,IAAI,EAAE,OAAO,EACb,QAAuB,EACvB,QAAuB,EACvB,IAAI,EACJ,MAAU,GACX,GAAE,mBAAwB,GAAG,uBAAuB,CAgIpD"}
|
package/dist/theme.css
CHANGED
|
@@ -1298,6 +1298,8 @@ body {
|
|
|
1298
1298
|
--overlay-z popover, menu, hover-card, select, combobox, date-picker
|
|
1299
1299
|
--toast-z the notifier region
|
|
1300
1300
|
--modal-z modal + drawer + lightbox (backdrop and positioner)
|
|
1301
|
+
--tour-z tour (backdrop, spotlight, card); a floating panel
|
|
1302
|
+
opened while a tour runs is raised into this band
|
|
1301
1303
|
--toast-raised-z the notifier region, while it holds a toast created
|
|
1302
1304
|
with a modal open (feedback on what was done in it)
|
|
1303
1305
|
--tooltip-z tooltip
|
|
@@ -1346,8 +1348,9 @@ body {
|
|
|
1346
1348
|
--overlay-z: 50;
|
|
1347
1349
|
--toast-z: 100;
|
|
1348
1350
|
--modal-z: 150;
|
|
1349
|
-
--
|
|
1350
|
-
--
|
|
1351
|
+
--tour-z: 200;
|
|
1352
|
+
--toast-raised-z: 250;
|
|
1353
|
+
--tooltip-z: 300;
|
|
1351
1354
|
}
|
|
1352
1355
|
|
|
1353
1356
|
[data-scope="popover"][data-part="content"],
|
|
@@ -1359,10 +1362,43 @@ body {
|
|
|
1359
1362
|
z-index: calc(var(--overlay-z, 50) + var(--layer-index, 0));
|
|
1360
1363
|
}
|
|
1361
1364
|
|
|
1365
|
+
/* A tour sits above modals: a step may highlight something inside one. zag
|
|
1366
|
+
tags its three layers with `--tour-layer` (0 backdrop, 1 spotlight, 2 the
|
|
1367
|
+
card's positioner) and expects `--tour-z-index` as their base, which it
|
|
1368
|
+
never defines. All three take theirs here, the positioner included: zag's
|
|
1369
|
+
`syncZIndex` hoists the content's z-index onto the positioner only once,
|
|
1370
|
+
when the tour opens, and the card's positioner is a new element on later
|
|
1371
|
+
steps, so it was left at `auto` and its isolated card painted under the
|
|
1372
|
+
backdrop. */
|
|
1373
|
+
[data-scope="tour"] {
|
|
1374
|
+
--tour-z-index: var(--tour-z, 200);
|
|
1375
|
+
}
|
|
1376
|
+
[data-scope="tour"][data-part="backdrop"],
|
|
1377
|
+
[data-scope="tour"][data-part="spotlight"],
|
|
1378
|
+
[data-scope="tour"][data-part="positioner"] {
|
|
1379
|
+
z-index: calc(var(--tour-z, 200) + var(--tour-layer, 0));
|
|
1380
|
+
}
|
|
1381
|
+
[data-scope="tour"][data-part="content"] {
|
|
1382
|
+
z-index: calc(var(--tour-z, 200) + 2);
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
/* A floating panel opened while a tour runs (a Select or Menu on the
|
|
1386
|
+
highlighted element) would paint under the tour's backdrop. Such a panel
|
|
1387
|
+
carries `data-raised` (`useTourRaised` in `lib/overlay-layer.tsx`) and is
|
|
1388
|
+
lifted into the tour band, above the card's three layers. */
|
|
1389
|
+
[data-scope="popover"][data-part="content"][data-raised],
|
|
1390
|
+
[data-scope="menu"][data-part="content"][data-raised],
|
|
1391
|
+
[data-scope="hover-card"][data-part="content"][data-raised],
|
|
1392
|
+
[data-scope="select"][data-part="content"][data-raised],
|
|
1393
|
+
[data-scope="combobox"][data-part="content"][data-raised],
|
|
1394
|
+
[data-scope="date-picker"][data-part="content"][data-raised] {
|
|
1395
|
+
z-index: calc(var(--tour-z, 200) + 10 + var(--layer-index, 0));
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1362
1398
|
/* A tooltip can show up over anything hoverable, an open picker included. It
|
|
1363
1399
|
isn't a dismissable layer, so there's no `--layer-index` to add. */
|
|
1364
1400
|
[data-scope="tooltip"][data-part="content"] {
|
|
1365
|
-
z-index: var(--tooltip-z,
|
|
1401
|
+
z-index: var(--tooltip-z, 300);
|
|
1366
1402
|
}
|
|
1367
1403
|
|
|
1368
1404
|
/* ==========================================
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import * as accordion from "./components/accordion"
|
|
|
7
7
|
import * as actionIcon from "./components/action-icon"
|
|
8
8
|
import * as alert from "./components/alert"
|
|
9
9
|
import * as ambientBackground from "./components/ambient-background"
|
|
10
|
+
import * as anchor from "./components/anchor"
|
|
10
11
|
import * as appShell from "./components/app-shell"
|
|
11
12
|
import * as aspectRatio from "./components/aspect-ratio"
|
|
12
13
|
import * as autocomplete from "./components/autocomplete"
|
|
@@ -34,12 +35,15 @@ import * as combobox from "./components/combobox"
|
|
|
34
35
|
import * as comboboxList from "./components/combobox-list"
|
|
35
36
|
import * as compare from "./components/compare"
|
|
36
37
|
import * as container from "./components/container"
|
|
38
|
+
import * as dataList from "./components/data-list"
|
|
37
39
|
import * as dataTable from "./components/data-table"
|
|
38
40
|
import * as datePicker from "./components/date-picker"
|
|
39
41
|
import * as divider from "./components/divider"
|
|
40
42
|
import * as downloadButton from "./components/download-button"
|
|
41
43
|
import * as drawer from "./components/drawer"
|
|
44
|
+
import * as emptyState from "./components/empty-state"
|
|
42
45
|
import * as field from "./components/field"
|
|
46
|
+
import * as fieldset from "./components/fieldset"
|
|
43
47
|
import * as figure from "./components/figure"
|
|
44
48
|
import * as fileItem from "./components/file-item"
|
|
45
49
|
import * as filePreview from "./components/file-preview"
|
|
@@ -68,6 +72,7 @@ import * as navigationProgress from "./components/navigation-progress"
|
|
|
68
72
|
import * as notification from "./components/notification"
|
|
69
73
|
import * as numberInput from "./components/number-input"
|
|
70
74
|
import * as overlays from "./components/overlays"
|
|
75
|
+
import * as pagination from "./components/pagination"
|
|
71
76
|
import * as passwordInput from "./components/password-input"
|
|
72
77
|
import * as phoneInput from "./components/phone-input"
|
|
73
78
|
import * as photoCapture from "./components/photo-capture"
|
|
@@ -76,17 +81,22 @@ import * as pillsInput from "./components/pills-input"
|
|
|
76
81
|
import * as pinInput from "./components/pin-input"
|
|
77
82
|
import * as popover from "./components/popover"
|
|
78
83
|
import * as progress from "./components/progress"
|
|
84
|
+
import * as prose from "./components/prose"
|
|
79
85
|
import * as radioGroup from "./components/radio-group"
|
|
80
86
|
import * as rating from "./components/rating"
|
|
81
87
|
import * as schedule from "./components/schedule"
|
|
88
|
+
import * as scrollArea from "./components/scroll-area"
|
|
82
89
|
import * as segmentGroup from "./components/segment-group"
|
|
83
90
|
import * as select from "./components/select"
|
|
84
91
|
import * as skeleton from "./components/skeleton"
|
|
85
92
|
import * as slider from "./components/slider"
|
|
86
93
|
import * as spinner from "./components/spinner"
|
|
94
|
+
import * as splitter from "./components/splitter"
|
|
87
95
|
import * as spotlight from "./components/spotlight"
|
|
96
|
+
import * as steps from "./components/steps"
|
|
88
97
|
import * as switchToggle from "./components/switch"
|
|
89
98
|
import * as table from "./components/table"
|
|
99
|
+
import * as tableOfContents from "./components/table-of-contents"
|
|
90
100
|
import * as tabs from "./components/tabs"
|
|
91
101
|
import * as tagsInput from "./components/tags-input"
|
|
92
102
|
import * as text from "./components/text"
|
|
@@ -98,8 +108,11 @@ import * as timeInput from "./components/time-input"
|
|
|
98
108
|
import * as timeline from "./components/timeline"
|
|
99
109
|
import * as title from "./components/title"
|
|
100
110
|
import * as tooltip from "./components/tooltip"
|
|
111
|
+
import * as tour from "./components/tour"
|
|
112
|
+
import * as tree from "./components/tree"
|
|
101
113
|
import * as treeMultiSelect from "./components/tree-multi-select"
|
|
102
114
|
import * as treeSelect from "./components/tree-select"
|
|
115
|
+
import { type UseScrollSpyReturnValue, useScrollSpy } from "./lib/use-scroll-spy"
|
|
103
116
|
|
|
104
117
|
/**
|
|
105
118
|
* The `asChild` contract (see `lib/as-child.ts`): every public part that
|
|
@@ -124,17 +137,25 @@ const { Modal } = modal
|
|
|
124
137
|
const { Popover } = popover
|
|
125
138
|
const { Tabs } = tabs
|
|
126
139
|
const { Tooltip } = tooltip
|
|
140
|
+
const { Tree } = tree
|
|
127
141
|
const { Alert } = alert
|
|
142
|
+
const { EmptyState } = emptyState
|
|
143
|
+
const { Fieldset } = fieldset
|
|
128
144
|
const { FileItem } = fileItem
|
|
129
145
|
const { FilePreview } = filePreview
|
|
130
146
|
const { Breadcrumb } = breadcrumb
|
|
147
|
+
const { Pagination } = pagination
|
|
131
148
|
const { Pill } = pill
|
|
132
149
|
const { ScheduleToolbar } = schedule
|
|
150
|
+
const { ScrollArea } = scrollArea
|
|
133
151
|
const { Timeline } = timeline
|
|
134
152
|
const { Spotlight } = spotlight
|
|
153
|
+
const { Splitter } = splitter
|
|
154
|
+
const { Steps } = steps
|
|
135
155
|
const { Lightbox } = lightbox
|
|
136
156
|
const { ImageCropper } = imageCropper
|
|
137
157
|
const { Camera, useCamera } = camera
|
|
158
|
+
const { TableOfContents } = tableOfContents
|
|
138
159
|
const { PhotoCapture, usePhotoCapture } = photoCapture
|
|
139
160
|
|
|
140
161
|
/**
|
|
@@ -147,6 +168,7 @@ const modules = {
|
|
|
147
168
|
actionIcon,
|
|
148
169
|
alert,
|
|
149
170
|
ambientBackground,
|
|
171
|
+
anchor,
|
|
150
172
|
appShell,
|
|
151
173
|
aspectRatio,
|
|
152
174
|
autocomplete,
|
|
@@ -174,12 +196,15 @@ const modules = {
|
|
|
174
196
|
comboboxList,
|
|
175
197
|
compare,
|
|
176
198
|
container,
|
|
199
|
+
dataList,
|
|
177
200
|
dataTable,
|
|
178
201
|
datePicker,
|
|
179
202
|
divider,
|
|
180
203
|
downloadButton,
|
|
181
204
|
drawer,
|
|
205
|
+
emptyState,
|
|
182
206
|
field,
|
|
207
|
+
fieldset,
|
|
183
208
|
figure,
|
|
184
209
|
fileItem,
|
|
185
210
|
filePreview,
|
|
@@ -207,6 +232,7 @@ const modules = {
|
|
|
207
232
|
notification,
|
|
208
233
|
numberInput,
|
|
209
234
|
overlays,
|
|
235
|
+
pagination,
|
|
210
236
|
passwordInput,
|
|
211
237
|
phoneInput,
|
|
212
238
|
photoCapture,
|
|
@@ -215,17 +241,22 @@ const modules = {
|
|
|
215
241
|
pinInput,
|
|
216
242
|
popover,
|
|
217
243
|
progress,
|
|
244
|
+
prose,
|
|
218
245
|
radioGroup,
|
|
219
246
|
rating,
|
|
220
247
|
schedule,
|
|
248
|
+
scrollArea,
|
|
221
249
|
segmentGroup,
|
|
222
250
|
select,
|
|
223
251
|
skeleton,
|
|
224
252
|
slider,
|
|
225
253
|
spinner,
|
|
254
|
+
splitter,
|
|
226
255
|
spotlight,
|
|
256
|
+
steps,
|
|
227
257
|
switch: switchToggle,
|
|
228
258
|
table,
|
|
259
|
+
tableOfContents,
|
|
229
260
|
tabs,
|
|
230
261
|
tagsInput,
|
|
231
262
|
text,
|
|
@@ -237,6 +268,8 @@ const modules = {
|
|
|
237
268
|
timeline,
|
|
238
269
|
title,
|
|
239
270
|
tooltip,
|
|
271
|
+
tour,
|
|
272
|
+
tree,
|
|
240
273
|
treeMultiSelect,
|
|
241
274
|
treeSelect,
|
|
242
275
|
navLinkTanstack,
|
|
@@ -315,6 +348,10 @@ const emptyCollection = createListCollection<string>({ items: [] })
|
|
|
315
348
|
const CameraProbe = ({ children }: { children: (root: camera.UseCameraResult) => ReactElement }) =>
|
|
316
349
|
children(useCamera())
|
|
317
350
|
|
|
351
|
+
/** A `TableOfContents.Root` around a spy with one known heading. */
|
|
352
|
+
const TocProbe = ({ children }: { children: (spy: UseScrollSpyReturnValue) => ReactElement }) =>
|
|
353
|
+
children(useScrollSpy({ data: [{ id: "probe", label: "Probe" }] }))
|
|
354
|
+
|
|
318
355
|
/** A `PhotoCapture.Root` around its own `usePhotoCapture()`, at its source step. */
|
|
319
356
|
const PhotoCaptureProbe = ({
|
|
320
357
|
children,
|
|
@@ -365,6 +402,33 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
365
402
|
</Alert>
|
|
366
403
|
),
|
|
367
404
|
"Alert.Root": bare,
|
|
405
|
+
Anchor: bare,
|
|
406
|
+
EmptyState: (c) => (
|
|
407
|
+
<EmptyState asChild title="t">
|
|
408
|
+
{c}
|
|
409
|
+
</EmptyState>
|
|
410
|
+
),
|
|
411
|
+
"EmptyState.Root": bare,
|
|
412
|
+
"EmptyState.Icon": bare,
|
|
413
|
+
"EmptyState.Title": bare,
|
|
414
|
+
"EmptyState.Description": bare,
|
|
415
|
+
"EmptyState.Actions": bare,
|
|
416
|
+
"Fieldset.Legend": (c) => (
|
|
417
|
+
<Fieldset.Root>
|
|
418
|
+
<Fieldset.Legend asChild>{c}</Fieldset.Legend>
|
|
419
|
+
</Fieldset.Root>
|
|
420
|
+
),
|
|
421
|
+
"Fieldset.Description": (c) => (
|
|
422
|
+
<Fieldset.Root>
|
|
423
|
+
<Fieldset.Description asChild>{c}</Fieldset.Description>
|
|
424
|
+
</Fieldset.Root>
|
|
425
|
+
),
|
|
426
|
+
// The error renders only while the group is invalid.
|
|
427
|
+
"Fieldset.Error": (c) => (
|
|
428
|
+
<Fieldset.Root invalid>
|
|
429
|
+
<Fieldset.Error asChild>{c}</Fieldset.Error>
|
|
430
|
+
</Fieldset.Root>
|
|
431
|
+
),
|
|
368
432
|
FileItem: (c) => (
|
|
369
433
|
<FileItem asChild file={probeFile}>
|
|
370
434
|
{c}
|
|
@@ -465,6 +529,50 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
465
529
|
</Breadcrumb.Root>
|
|
466
530
|
),
|
|
467
531
|
"Breadcrumb.Item": bare,
|
|
532
|
+
"Pagination.Root": (c) => (
|
|
533
|
+
<Pagination.Root asChild pages={5}>
|
|
534
|
+
{c}
|
|
535
|
+
</Pagination.Root>
|
|
536
|
+
),
|
|
537
|
+
"Pagination.Item": (c) => (
|
|
538
|
+
<Pagination.Root pages={5}>
|
|
539
|
+
<Pagination.Item asChild value={2}>
|
|
540
|
+
{c}
|
|
541
|
+
</Pagination.Item>
|
|
542
|
+
</Pagination.Root>
|
|
543
|
+
),
|
|
544
|
+
"Pagination.Ellipsis": (c) => (
|
|
545
|
+
<Pagination.Root pages={5}>
|
|
546
|
+
<Pagination.Ellipsis asChild index={1}>
|
|
547
|
+
{c}
|
|
548
|
+
</Pagination.Ellipsis>
|
|
549
|
+
</Pagination.Root>
|
|
550
|
+
),
|
|
551
|
+
"Pagination.First": (c) => (
|
|
552
|
+
<Pagination.Root pages={5}>
|
|
553
|
+
<Pagination.First asChild>{c}</Pagination.First>
|
|
554
|
+
</Pagination.Root>
|
|
555
|
+
),
|
|
556
|
+
"Pagination.Prev": (c) => (
|
|
557
|
+
<Pagination.Root pages={5}>
|
|
558
|
+
<Pagination.Prev asChild>{c}</Pagination.Prev>
|
|
559
|
+
</Pagination.Root>
|
|
560
|
+
),
|
|
561
|
+
"Pagination.Next": (c) => (
|
|
562
|
+
<Pagination.Root pages={5}>
|
|
563
|
+
<Pagination.Next asChild>{c}</Pagination.Next>
|
|
564
|
+
</Pagination.Root>
|
|
565
|
+
),
|
|
566
|
+
"Pagination.Last": (c) => (
|
|
567
|
+
<Pagination.Root pages={5}>
|
|
568
|
+
<Pagination.Last asChild>{c}</Pagination.Last>
|
|
569
|
+
</Pagination.Root>
|
|
570
|
+
),
|
|
571
|
+
"Pagination.Label": (c) => (
|
|
572
|
+
<Pagination.Root pages={5}>
|
|
573
|
+
<Pagination.Label asChild>{c}</Pagination.Label>
|
|
574
|
+
</Pagination.Root>
|
|
575
|
+
),
|
|
468
576
|
Button: bare,
|
|
469
577
|
ButtonGroup: bare,
|
|
470
578
|
"ButtonMultiSelect.Root": bare,
|
|
@@ -507,6 +615,10 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
507
615
|
"Card.Footer": bare,
|
|
508
616
|
"Card.Header": bare,
|
|
509
617
|
"Card.Title": bare,
|
|
618
|
+
DataList: bare,
|
|
619
|
+
"DataList.Item": bare,
|
|
620
|
+
"DataList.Label": bare,
|
|
621
|
+
"DataList.Value": bare,
|
|
510
622
|
"Clipboard.Root": bare,
|
|
511
623
|
"Clipboard.Control": (c) => (
|
|
512
624
|
<Clipboard.Root defaultValue="x">
|
|
@@ -826,6 +938,7 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
826
938
|
<Popover.Anchor asChild>{c}</Popover.Anchor>
|
|
827
939
|
</Popover.Root>
|
|
828
940
|
),
|
|
941
|
+
Prose: bare,
|
|
829
942
|
"Schedule.Toolbar": bare,
|
|
830
943
|
ScheduleToolbar: alias("Schedule.Toolbar"),
|
|
831
944
|
"ScheduleToolbar.Title": (c) => (
|
|
@@ -833,6 +946,47 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
833
946
|
{c}
|
|
834
947
|
</ScheduleToolbar.Title>
|
|
835
948
|
),
|
|
949
|
+
"ScrollArea.Root": bare,
|
|
950
|
+
"ScrollArea.Content": (c) => (
|
|
951
|
+
<ScrollArea.Root>
|
|
952
|
+
<ScrollArea.Content asChild>{c}</ScrollArea.Content>
|
|
953
|
+
</ScrollArea.Root>
|
|
954
|
+
),
|
|
955
|
+
"ScrollArea.Scrollbar": (c) => (
|
|
956
|
+
<ScrollArea.Root>
|
|
957
|
+
<ScrollArea.Scrollbar asChild>{c}</ScrollArea.Scrollbar>
|
|
958
|
+
</ScrollArea.Root>
|
|
959
|
+
),
|
|
960
|
+
"ScrollArea.Thumb": (c) => (
|
|
961
|
+
<ScrollArea.Root>
|
|
962
|
+
<ScrollArea.Scrollbar>
|
|
963
|
+
<ScrollArea.Thumb asChild>{c}</ScrollArea.Thumb>
|
|
964
|
+
</ScrollArea.Scrollbar>
|
|
965
|
+
</ScrollArea.Root>
|
|
966
|
+
),
|
|
967
|
+
"ScrollArea.Corner": (c) => (
|
|
968
|
+
<ScrollArea.Root>
|
|
969
|
+
<ScrollArea.Corner asChild>{c}</ScrollArea.Corner>
|
|
970
|
+
</ScrollArea.Root>
|
|
971
|
+
),
|
|
972
|
+
"Splitter.Panel": (c) => (
|
|
973
|
+
<Splitter>
|
|
974
|
+
<Splitter.Panel asChild id="a">
|
|
975
|
+
{c}
|
|
976
|
+
</Splitter.Panel>
|
|
977
|
+
<Splitter.Panel id="b" />
|
|
978
|
+
</Splitter>
|
|
979
|
+
),
|
|
980
|
+
"Splitter.Toggle": (c) => (
|
|
981
|
+
<Splitter>
|
|
982
|
+
<Splitter.Panel id="a" collapsible min={20}>
|
|
983
|
+
<Splitter.Toggle asChild panel="a">
|
|
984
|
+
{c}
|
|
985
|
+
</Splitter.Toggle>
|
|
986
|
+
</Splitter.Panel>
|
|
987
|
+
<Splitter.Panel id="b" />
|
|
988
|
+
</Splitter>
|
|
989
|
+
),
|
|
836
990
|
"Spotlight.Empty": (c) => (
|
|
837
991
|
<nothingFound.SpotlightProvider>
|
|
838
992
|
<Spotlight.Root>
|
|
@@ -866,6 +1020,46 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
866
1020
|
"Table.Row": bare,
|
|
867
1021
|
"Table.HeaderCell": bare,
|
|
868
1022
|
"Table.Cell": bare,
|
|
1023
|
+
"TableOfContents.Root": (c) => (
|
|
1024
|
+
<TocProbe>
|
|
1025
|
+
{(spy) => (
|
|
1026
|
+
<TableOfContents.Root asChild spy={spy}>
|
|
1027
|
+
{c}
|
|
1028
|
+
</TableOfContents.Root>
|
|
1029
|
+
)}
|
|
1030
|
+
</TocProbe>
|
|
1031
|
+
),
|
|
1032
|
+
"TableOfContents.Title": (c) => (
|
|
1033
|
+
<TocProbe>
|
|
1034
|
+
{(spy) => (
|
|
1035
|
+
<TableOfContents.Root spy={spy}>
|
|
1036
|
+
<TableOfContents.Title asChild>{c}</TableOfContents.Title>
|
|
1037
|
+
</TableOfContents.Root>
|
|
1038
|
+
)}
|
|
1039
|
+
</TocProbe>
|
|
1040
|
+
),
|
|
1041
|
+
"TableOfContents.List": (c) => (
|
|
1042
|
+
<TocProbe>
|
|
1043
|
+
{(spy) => (
|
|
1044
|
+
<TableOfContents.Root spy={spy}>
|
|
1045
|
+
<TableOfContents.List asChild>{c}</TableOfContents.List>
|
|
1046
|
+
</TableOfContents.Root>
|
|
1047
|
+
)}
|
|
1048
|
+
</TocProbe>
|
|
1049
|
+
),
|
|
1050
|
+
"TableOfContents.Item": (c) => (
|
|
1051
|
+
<TocProbe>
|
|
1052
|
+
{(spy) => (
|
|
1053
|
+
<TableOfContents.Root spy={spy}>
|
|
1054
|
+
<TableOfContents.List>
|
|
1055
|
+
<TableOfContents.Item asChild value="probe">
|
|
1056
|
+
{c}
|
|
1057
|
+
</TableOfContents.Item>
|
|
1058
|
+
</TableOfContents.List>
|
|
1059
|
+
</TableOfContents.Root>
|
|
1060
|
+
)}
|
|
1061
|
+
</TocProbe>
|
|
1062
|
+
),
|
|
869
1063
|
"Tabs.Root": bare,
|
|
870
1064
|
"Tabs.List": (c) => (
|
|
871
1065
|
<Tabs.Root>
|
|
@@ -895,6 +1089,68 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
895
1089
|
</Tabs.List>
|
|
896
1090
|
</Tabs.Root>
|
|
897
1091
|
),
|
|
1092
|
+
"Steps.List": (c) => (
|
|
1093
|
+
<Steps.Root count={2}>
|
|
1094
|
+
<Steps.List asChild>{c}</Steps.List>
|
|
1095
|
+
</Steps.Root>
|
|
1096
|
+
),
|
|
1097
|
+
"Steps.Item": (c) => (
|
|
1098
|
+
<Steps.Root count={2}>
|
|
1099
|
+
<Steps.Item asChild index={0}>
|
|
1100
|
+
{c}
|
|
1101
|
+
</Steps.Item>
|
|
1102
|
+
</Steps.Root>
|
|
1103
|
+
),
|
|
1104
|
+
"Steps.Trigger": (c) => (
|
|
1105
|
+
<Steps.Root count={2}>
|
|
1106
|
+
<Steps.Item index={0}>
|
|
1107
|
+
<Steps.Trigger asChild>{c}</Steps.Trigger>
|
|
1108
|
+
</Steps.Item>
|
|
1109
|
+
</Steps.Root>
|
|
1110
|
+
),
|
|
1111
|
+
"Steps.Title": (c) => (
|
|
1112
|
+
<Steps.Root count={2}>
|
|
1113
|
+
<Steps.Item index={0}>
|
|
1114
|
+
<Steps.Title asChild>{c}</Steps.Title>
|
|
1115
|
+
</Steps.Item>
|
|
1116
|
+
</Steps.Root>
|
|
1117
|
+
),
|
|
1118
|
+
"Steps.Description": (c) => (
|
|
1119
|
+
<Steps.Root count={2}>
|
|
1120
|
+
<Steps.Item index={0}>
|
|
1121
|
+
<Steps.Description asChild>{c}</Steps.Description>
|
|
1122
|
+
</Steps.Item>
|
|
1123
|
+
</Steps.Root>
|
|
1124
|
+
),
|
|
1125
|
+
"Steps.Separator": (c) => (
|
|
1126
|
+
<Steps.Root count={2}>
|
|
1127
|
+
<Steps.Item index={0}>
|
|
1128
|
+
<Steps.Separator asChild>{c}</Steps.Separator>
|
|
1129
|
+
</Steps.Item>
|
|
1130
|
+
</Steps.Root>
|
|
1131
|
+
),
|
|
1132
|
+
"Steps.Content": (c) => (
|
|
1133
|
+
<Steps.Root count={2}>
|
|
1134
|
+
<Steps.Content asChild index={0}>
|
|
1135
|
+
{c}
|
|
1136
|
+
</Steps.Content>
|
|
1137
|
+
</Steps.Root>
|
|
1138
|
+
),
|
|
1139
|
+
"Steps.CompletedContent": (c) => (
|
|
1140
|
+
<Steps.Root count={2} defaultStep={2}>
|
|
1141
|
+
<Steps.CompletedContent asChild>{c}</Steps.CompletedContent>
|
|
1142
|
+
</Steps.Root>
|
|
1143
|
+
),
|
|
1144
|
+
"Steps.PrevTrigger": (c) => (
|
|
1145
|
+
<Steps.Root count={2}>
|
|
1146
|
+
<Steps.PrevTrigger asChild>{c}</Steps.PrevTrigger>
|
|
1147
|
+
</Steps.Root>
|
|
1148
|
+
),
|
|
1149
|
+
"Steps.NextTrigger": (c) => (
|
|
1150
|
+
<Steps.Root count={2}>
|
|
1151
|
+
<Steps.NextTrigger asChild>{c}</Steps.NextTrigger>
|
|
1152
|
+
</Steps.Root>
|
|
1153
|
+
),
|
|
898
1154
|
Text: bare,
|
|
899
1155
|
TextInput: bare,
|
|
900
1156
|
Textarea: bare,
|
|
@@ -924,6 +1180,26 @@ const contract: Record<AsChildPart, Case> = {
|
|
|
924
1180
|
<Tooltip.Content asChild>{c}</Tooltip.Content>
|
|
925
1181
|
</Tooltip.Root>
|
|
926
1182
|
),
|
|
1183
|
+
"Tree.Root": (c) => (
|
|
1184
|
+
<Tree.Root asChild data={[]}>
|
|
1185
|
+
{c}
|
|
1186
|
+
</Tree.Root>
|
|
1187
|
+
),
|
|
1188
|
+
"Tree.Label": (c) => (
|
|
1189
|
+
<Tree.Root data={[]}>
|
|
1190
|
+
<Tree.Label asChild>{c}</Tree.Label>
|
|
1191
|
+
</Tree.Root>
|
|
1192
|
+
),
|
|
1193
|
+
"Tree.Text": (c) => (
|
|
1194
|
+
<Tree.Root data={[{ value: "a", label: "A" }]}>
|
|
1195
|
+
<Tree.List>{() => <Tree.Text asChild>{c}</Tree.Text>}</Tree.List>
|
|
1196
|
+
</Tree.Root>
|
|
1197
|
+
),
|
|
1198
|
+
"Tree.Actions": (c) => (
|
|
1199
|
+
<Tree.Root data={[{ value: "a", label: "A" }]}>
|
|
1200
|
+
<Tree.List>{() => <Tree.Actions asChild>{c}</Tree.Actions>}</Tree.List>
|
|
1201
|
+
</Tree.Root>
|
|
1202
|
+
),
|
|
927
1203
|
}
|
|
928
1204
|
|
|
929
1205
|
const PROBE_LABEL = "probe label"
|
|
@@ -1003,6 +1279,12 @@ describe("forbidden parts", () => {
|
|
|
1003
1279
|
<Slider key="slider" asChild />,
|
|
1004
1280
|
// @ts-expect-error the data form builds its own items.
|
|
1005
1281
|
<Tabs key="tabs" asChild data={[]} />,
|
|
1282
|
+
// @ts-expect-error the data form builds its own steps.
|
|
1283
|
+
<Steps key="steps" asChild data={[]} />,
|
|
1284
|
+
// @ts-expect-error the root renders its own announcer beside its children.
|
|
1285
|
+
<Steps.Root key="steps-root" asChild count={1} />,
|
|
1286
|
+
// @ts-expect-error the indicator picks its own content per state.
|
|
1287
|
+
<Steps.Indicator key="steps-indicator" asChild />,
|
|
1006
1288
|
// @ts-expect-error the Schedule root renders a toolbar and a grid.
|
|
1007
1289
|
<Schedule key="schedule" asChild data={[]} />,
|
|
1008
1290
|
]
|
|
@@ -1033,6 +1315,6 @@ describe("forbidden parts", () => {
|
|
|
1033
1315
|
]
|
|
1034
1316
|
// @ts-expect-error Notification's `type` and `color` stay exclusive.
|
|
1035
1317
|
const exclusive = <Notification type="info" color="red" title="t" />
|
|
1036
|
-
expect([...rejected, ...typed, exclusive]).toHaveLength(
|
|
1318
|
+
expect([...rejected, ...typed, exclusive]).toHaveLength(10)
|
|
1037
1319
|
})
|
|
1038
1320
|
})
|