@servicetitan/anvil2 3.8.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/{AiMark-voHPSerQ.js → AiMark-2_O4tKv_.js} +4 -4
- package/dist/AiMark-2_O4tKv_.js.map +1 -0
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-CPe0yh6A.js → Alert-DtM7NDN9.js} +3 -3
- package/dist/Alert-DtM7NDN9.js.map +1 -0
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-DU0J4111.js → Announcement-CGglhMfd.js} +3 -3
- package/dist/Announcement-CGglhMfd.js.map +1 -0
- package/dist/Announcement.js +1 -1
- package/dist/AnvilProvider-b3gvW6Md.js.map +1 -1
- package/dist/Avatar-CoQcOHWU.js.map +1 -1
- package/dist/Avatar-DX96Mxe7.js.map +1 -1
- package/dist/Badge-BNrYBFiU.js.map +1 -1
- package/dist/Badge.css +2 -3
- package/dist/{Breadcrumbs-VzOM2nBU.js → Breadcrumbs-Bmqmw5F5.js} +4 -4
- package/dist/Breadcrumbs-Bmqmw5F5.js.map +1 -0
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-BNzCI47m.js → Button-Dwh_Nd4l.js} +6 -8
- package/dist/Button-Dwh_Nd4l.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/ButtonCompound-D7kA0qXr.js.map +1 -1
- package/dist/{ButtonLink-PlW08u41.js → ButtonLink-DOFAxNvC.js} +2 -2
- package/dist/ButtonLink-DOFAxNvC.js.map +1 -0
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-DBGc7dIn.js → ButtonToggle-DKDBD1g3.js} +2 -2
- package/dist/ButtonToggle-DKDBD1g3.js.map +1 -0
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-MRUB0XU7.js → Calendar-CUgFbnKj.js} +2 -2
- package/dist/Calendar-CUgFbnKj.js.map +1 -0
- package/dist/{Calendar-CekTYzdT.js → Calendar-D_fqe0-J.js} +11 -4
- package/dist/Calendar-D_fqe0-J.js.map +1 -0
- package/dist/Calendar.js +2 -2
- package/dist/Card-Bt0F6RTq.js.map +1 -1
- package/dist/{Checkbox-zz9TyZWn.js → Checkbox-4wRmrann.js} +2 -2
- package/dist/Checkbox-4wRmrann.js.map +1 -0
- package/dist/{Checkbox-C3rtd-Xe.js → Checkbox-DoxWcbfv.js} +5 -5
- package/dist/Checkbox-DoxWcbfv.js.map +1 -0
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-CxgryK86.js → Chip-D6Q0J0Xe.js} +3 -3
- package/dist/Chip-D6Q0J0Xe.js.map +1 -0
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-Bvsijiqn.js → DataTable-D-SKKt5w.js} +60 -23
- package/dist/DataTable-D-SKKt5w.js.map +1 -0
- package/dist/DataTable.css +2 -3
- package/dist/{DateFieldRange-CP7QgS6P.js → DateFieldRange-DUFfyknZ.js} +62 -35
- package/dist/DateFieldRange-DUFfyknZ.js.map +1 -0
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-CgMPTi1v.js → DateFieldSingle-BZjlO0hX.js} +60 -32
- package/dist/DateFieldSingle-BZjlO0hX.js.map +1 -0
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-BDSbVQx0.js → DateFieldYearless-TcKb9jE2.js} +7 -5
- package/dist/DateFieldYearless-TcKb9jE2.js.map +1 -0
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-Dk7HVYTA.js → DateFieldYearlessRange-D9XtRNWi.js} +19 -7
- package/dist/DateFieldYearlessRange-D9XtRNWi.js.map +1 -0
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-Ci-SKebP.js → DaysOfTheWeek--FBi44iw.js} +5 -5
- package/dist/DaysOfTheWeek--FBi44iw.js.map +1 -0
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-DkteVZbk.js → Details-CVA5zbrR.js} +2 -2
- package/dist/Details-CVA5zbrR.js.map +1 -0
- package/dist/Details.js +1 -1
- package/dist/{Dialog-BxulNN8n.js → Dialog-Clh3jaX8.js} +4 -4
- package/dist/Dialog-Clh3jaX8.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-DmSUPuCR.js → DialogCancelButton-DBL0aKTK.js} +2 -2
- package/dist/DialogCancelButton-DBL0aKTK.js.map +1 -0
- package/dist/DialogContext-DBgtApl9.js.map +1 -1
- package/dist/Divider-C7fp5Xb6.js.map +1 -1
- package/dist/Dnd.js +2 -2
- package/dist/{DndHandleButton-Ck5nc8w2.js → DndHandleButton-BRlodkDO.js} +2 -2
- package/dist/{DndHandleButton-Ck5nc8w2.js.map → DndHandleButton-BRlodkDO.js.map} +1 -1
- package/dist/DndSort.js +4 -4
- package/dist/DndSort.js.map +1 -1
- package/dist/{Drawer-DzvM9MRB.js → Drawer-h2Mut1lB.js} +5 -5
- package/dist/Drawer-h2Mut1lB.js.map +1 -0
- package/dist/Drawer.js +1 -1
- package/dist/DrawerContext-BSpnzXVZ.js.map +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/DrillDown.module-D1Bf9_yP.js.map +1 -1
- package/dist/{EditCard-ZpF032WP.js → EditCard-QohYSylF.js} +4 -4
- package/dist/EditCard-QohYSylF.js.map +1 -0
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-Cm5A1Jcx.js → FieldLabel-SzH61hCb.js} +3 -3
- package/dist/FieldLabel-SzH61hCb.js.map +1 -0
- package/dist/FieldLabel.js +1 -1
- package/dist/{FilterBar-DBVW3LL3.js → FilterBar-luqnJzAK.js} +32 -11
- package/dist/FilterBar-luqnJzAK.js.map +1 -0
- package/dist/FilterBar.js +1 -1
- package/dist/{Flex-Bb3iHExM.js → Flex-CRF7gj0_.js} +3 -3
- package/dist/Flex-CRF7gj0_.js.map +1 -0
- package/dist/Flex.css +2 -4
- package/dist/Flex.js +1 -1
- package/dist/{Grid-ho1pGJ5L.js → Grid-CvGQrIhE.js} +4 -4
- package/dist/Grid-CvGQrIhE.js.map +1 -0
- package/dist/Grid.css +3 -5
- package/dist/Grid.js +1 -1
- package/dist/{Helper-B_VAFgGd.js → Helper-Bq6Npkgh.js} +2 -2
- package/dist/Helper-Bq6Npkgh.js.map +1 -0
- package/dist/{Icon-B4uCvMU9.js → Icon-B5zwN7GD.js} +4 -4
- package/dist/Icon-B5zwN7GD.js.map +1 -0
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-CX6XiOOm.js → InputMask-CQONHcTq.js} +3 -3
- package/dist/InputMask-CQONHcTq.js.map +1 -0
- package/dist/InputMask.js +1 -1
- package/dist/InteractiveCard-C0g5PxB6.js.map +1 -1
- package/dist/Layout-C2Q2hyLG.js.map +1 -1
- package/dist/{Link-C7dtI5K6.js → Link-D7ycmfQ_.js} +2 -2
- package/dist/Link-D7ycmfQ_.js.map +1 -0
- package/dist/Link.css +2 -4
- package/dist/Link.js +1 -1
- package/dist/LinkButton-C0wps8r1.js.map +1 -1
- package/dist/List-BvzfZ9TW.js.map +1 -1
- package/dist/{ListView-DpveXOsN.js → ListView-BgGEwal3.js} +3 -3
- package/dist/ListView-BgGEwal3.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-Cdwaofd2.js → Listbox-Cw_2W62S.js} +4 -4
- package/dist/Listbox-Cw_2W62S.js.map +1 -0
- package/dist/Listbox.js +1 -1
- package/dist/LocalizationContext-UsmB5mnR.js.map +1 -1
- package/dist/LocalizationProvider-BPcOU7YX.js.map +1 -1
- package/dist/{Menu-DmEXQLXt.js → Menu-DNOOmDQC.js} +3 -3
- package/dist/Menu-DNOOmDQC.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/{MenuFooter-Ck9L599M.js → MenuFooter--lBF8OjJ.js} +6 -2
- package/dist/MenuFooter--lBF8OjJ.js.map +1 -0
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-B1tkEtft.js → MultiSelectFieldSync-HhFKGtQM.js} +74 -19
- package/dist/MultiSelectFieldSync-HhFKGtQM.js.map +1 -0
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-Deki_z-0.js → MultiSelectMenuSync-C3Y7jnJQ.js} +26 -10
- package/dist/MultiSelectMenuSync-C3Y7jnJQ.js.map +1 -0
- package/dist/{NumberField-CjC6KHKl.js → NumberField-B1761jkf.js} +7 -7
- package/dist/NumberField-B1761jkf.js.map +1 -0
- package/dist/NumberField.css +2 -3
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.js +1 -1
- package/dist/Overflow.js.map +1 -1
- package/dist/{Page-BreBQ3pG.js → Page-Pk0-Sxf_.js} +22 -21
- package/dist/Page-Pk0-Sxf_.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/{Pagination-CmqAut6y.js → Pagination-Bx_u6Uea.js} +37 -11
- package/dist/Pagination-Bx_u6Uea.js.map +1 -0
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CdRuNv3C.js → Popover-CjsE5FG0.js} +2 -2
- package/dist/Popover-CjsE5FG0.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
- package/dist/{ProgressBar-065vjsQ0.js → ProgressBar-Coh2nTJ1.js} +6 -6
- package/dist/ProgressBar-Coh2nTJ1.js.map +1 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-D9w_-JYw.js → Radio-BxSL1PoP.js} +2 -2
- package/dist/Radio-BxSL1PoP.js.map +1 -0
- package/dist/{Radio-dyLcVmUw.js → Radio-J4Iv3wbJ.js} +5 -5
- package/dist/Radio-J4Iv3wbJ.js.map +1 -0
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-byoMZaJy.js → RichTextEditor-CTIGe6xA.js} +13 -13
- package/dist/RichTextEditor-CTIGe6xA.js.map +1 -0
- package/dist/RichTextEditor.css +1 -2
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-BHgS4akL.js → SavedFiltersButton-CpnoAIrw.js} +256 -170
- package/dist/SavedFiltersButton-CpnoAIrw.js.map +1 -0
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SearchField-B7fIOJf-.js → SearchField-ChoNtw8w.js} +2 -2
- package/dist/SearchField-ChoNtw8w.js.map +1 -0
- package/dist/{SearchField-X4B7f23E.js → SearchField-DX8hZyo2.js} +2 -2
- package/dist/SearchField-DX8hZyo2.js.map +1 -0
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-Be6jCglV.js → SegmentedControl-CQ6DrbDc.js} +2 -2
- package/dist/SegmentedControl-CQ6DrbDc.js.map +1 -0
- package/dist/SegmentedControl.css +2 -3
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-CMSG_ba1.js → SelectCard-BTfhPyHH.js} +4 -4
- package/dist/SelectCard-BTfhPyHH.js.map +1 -0
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-dKVBaki2.js → SelectFieldLabel-CjY6zFJA.js} +2 -2
- package/dist/SelectFieldLabel-CjY6zFJA.js.map +1 -0
- package/dist/{SelectFieldSync-VShqP5J0.js → SelectFieldSync-Dyug8Fgk.js} +48 -10
- package/dist/SelectFieldSync-Dyug8Fgk.js.map +1 -0
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-BDx1yhZT.js → SelectMenuSync-BkC0FD5P.js} +23 -9
- package/dist/SelectMenuSync-BkC0FD5P.js.map +1 -0
- package/dist/{SelectOptions-BIVTviOh.js → SelectOptions-B3Vmtb_k.js} +2 -2
- package/dist/SelectOptions-B3Vmtb_k.js.map +1 -0
- package/dist/{SelectTrigger-APxYfL3V.js → SelectTrigger-Do1puyA_.js} +4 -4
- package/dist/SelectTrigger-Do1puyA_.js.map +1 -0
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-lYieONTb.js → SelectTriggerBase-rxHXMSb4.js} +12 -14
- package/dist/SelectTriggerBase-rxHXMSb4.js.map +1 -0
- package/dist/SelectTriggerBase.css +2 -3
- package/dist/{SideNav-DoxX8Vi-.js → SideNav-DZRXOYHs.js} +2 -2
- package/dist/SideNav-DZRXOYHs.js.map +1 -0
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Spinner-B7tTWcP6.js.map +1 -1
- package/dist/SrOnly-pnf8ajnh.js.map +1 -1
- package/dist/{Stepper-CvaR7OoT.js → Stepper-BX_gDWLE.js} +4 -4
- package/dist/Stepper-BX_gDWLE.js.map +1 -0
- package/dist/Stepper.css +1 -2
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-Bm3qqjd6.js → Switch-BpjBYm-U.js} +5 -5
- package/dist/Switch-BpjBYm-U.js.map +1 -0
- package/dist/Switch.js +1 -1
- package/dist/{Tab-Cy4G562A.js → Tab-Bqfvg8Ce.js} +53 -23
- package/dist/Tab-Bqfvg8Ce.js.map +1 -0
- package/dist/Tab.css +35 -31
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-mDcQHC2U.js → Text-CIoD_RK4.js} +2 -2
- package/dist/Text-CIoD_RK4.js.map +1 -0
- package/dist/Text.js +1 -1
- package/dist/{TextField-CUVsDfWo.js → TextField-CzzvLI5_.js} +4 -4
- package/dist/TextField-CzzvLI5_.js.map +1 -0
- package/dist/{TextField-WQTlqKso.js → TextField-D3sRS5q1.js} +2 -2
- package/dist/TextField-D3sRS5q1.js.map +1 -0
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CW3KGuB9.js → Textarea-B3C7AkPj.js} +4 -4
- package/dist/Textarea-B3C7AkPj.js.map +1 -0
- package/dist/Textarea.js +1 -1
- package/dist/ThemeProvider-Sd8LK0A9.js.map +1 -1
- package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
- package/dist/{TimeField-JA3gXyS7.js → TimeField-L9B_X6-H.js} +31 -9
- package/dist/TimeField-L9B_X6-H.js.map +1 -0
- package/dist/TimeField.js +1 -1
- package/dist/TimezoneMessage-BrKB_psP.js.map +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-DMZng3Im.js → Toaster-CAI7tX8q.js} +4 -4
- package/dist/Toaster-CAI7tX8q.js.map +1 -0
- package/dist/{Toaster-fPcgIF7Q.js → Toaster-DZxf0N9g.js} +2 -2
- package/dist/Toaster-DZxf0N9g.js.map +1 -0
- package/dist/{Toolbar-BfGcDXgC.js → Toolbar-BOgHhw7K.js} +19 -10
- package/dist/Toolbar-BOgHhw7K.js.map +1 -0
- package/dist/{Toolbar-Dlu39v69.js → Toolbar-DDWUuQm_.js} +30 -8
- package/dist/Toolbar-DDWUuQm_.js.map +1 -0
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-3xbnm1Qr.js → ToolbarButtonToggle-BbtKfezH.js} +19 -3
- package/dist/ToolbarButtonToggle-BbtKfezH.js.map +1 -0
- package/dist/Tooltip-BC8lnFhe.js.map +1 -1
- package/dist/TrackingProvider-Co4lyoI9.js.map +1 -1
- package/dist/TrackingProviderContext-CrVA7KHv.js.map +1 -1
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-CdtC8d3Q.js → TreeSelectFieldSync-Cd87uR6b.js} +51 -17
- package/dist/TreeSelectFieldSync-Cd87uR6b.js.map +1 -0
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-CPuQWUNU.js → TreeSelectMenuSync-88q0ydo5.js} +22 -10
- package/dist/TreeSelectMenuSync-88q0ydo5.js.map +1 -0
- package/dist/{TypeaheadTextField-BkLECKZY.js → TypeaheadTextField-9Nkkd4c4.js} +3 -3
- package/dist/TypeaheadTextField-9Nkkd4c4.js.map +1 -0
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-DLtMQhDw.js → YearlessDateInputWithPicker-BquY4bCd.js} +29 -8
- package/dist/YearlessDateInputWithPicker-BquY4bCd.js.map +1 -0
- package/dist/anvParts-BGg5dgfl.js +43 -0
- package/dist/anvParts-BGg5dgfl.js.map +1 -0
- package/dist/beta.js +16 -16
- package/dist/{bulkActionTypes-CTKwMpO7.js → bulkActionTypes-CWcUhKFS.js} +2 -2
- package/dist/bulkActionTypes-CWcUhKFS.js.map +1 -0
- package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
- package/dist/{filter-state-DKXF5MeW.js → filter-state-BQOX7_rO.js} +177 -101
- package/dist/filter-state-BQOX7_rO.js.map +1 -0
- package/dist/{index-SZMmvI3D.js → index-BwV_Pz7v.js} +2 -2
- package/dist/index-BwV_Pz7v.js.map +1 -0
- package/dist/{index-B7BIlotN.js → index-DjirBR0l.js} +2 -2
- package/dist/{index-B7BIlotN.js.map → index-DjirBR0l.js.map} +1 -1
- package/dist/index.js +56 -56
- package/dist/makeZeroShortcutPreprocessor-CxsiGTRW.js.map +1 -1
- package/dist/src/beta/components/FilterBar/FilterBar.d.ts +3 -3
- package/dist/src/beta/components/FilterBar/index.d.ts +1 -1
- package/dist/src/beta/components/FilterBar/internal/utils/dateListLibraryOptions.d.ts +17 -3
- package/dist/src/beta/components/FilterBar/parts.d.ts +38 -0
- package/dist/src/beta/components/SavedFiltersButton/parts.d.ts +37 -0
- package/dist/src/beta/components/SavedFiltersButton/types.d.ts +2 -1
- package/dist/src/beta/components/Table/DataTable/DataTable.d.ts +3 -2
- package/dist/src/beta/components/Table/DataTable/parts.d.ts +30 -0
- package/dist/src/beta/components/Table/internal/ResizeHandle.d.ts +3 -2
- package/dist/src/beta/components/Toolbar/Toolbar.d.ts +4 -4
- package/dist/src/beta/components/Toolbar/index.d.ts +1 -1
- package/dist/src/beta/components/Toolbar/parts.d.ts +19 -0
- package/dist/src/beta/components/TreeSelectField/TreeSelectField.d.ts +6 -5
- package/dist/src/beta/components/TreeSelectField/parts.d.ts +23 -0
- package/dist/src/beta/components/TreeSelectField/types.d.ts +11 -4
- package/dist/src/beta/components/TreeSelectMenu/TreeSelectMenu.d.ts +33 -2
- package/dist/src/beta/components/TreeSelectMenu/parts.d.ts +12 -0
- package/dist/src/beta/components/TreeSelectMenu/types.d.ts +3 -2
- package/dist/src/components/Alert/Alert.d.ts +2 -4
- package/dist/src/components/Announcement/Announcement.d.ts +2 -4
- package/dist/src/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/components/ButtonCompound/ButtonCompound.d.ts +2 -4
- package/dist/src/components/ButtonLink/ButtonLink.d.ts +2 -4
- package/dist/src/components/ButtonToggle/ButtonToggle.d.ts +2 -4
- package/dist/src/components/Calendar/Calendar.d.ts +3 -1
- package/dist/src/components/Calendar/index.d.ts +1 -1
- package/dist/src/components/Checkbox/index.d.ts +2 -2
- package/dist/src/components/Combobox/Combobox.d.ts +2 -2
- package/dist/src/components/Combobox/ComboboxEmpty.d.ts +1 -1
- package/dist/src/components/Combobox/ComboboxTypes.d.ts +2 -2
- package/dist/src/components/Combobox/index.d.ts +2 -2
- package/dist/src/components/Combobox/parts.d.ts +19 -0
- package/dist/src/components/DateFieldRange/DateFieldRange.d.ts +2 -2
- package/dist/src/components/DateFieldRange/parts.d.ts +16 -0
- package/dist/src/components/DateFieldSingle/DateFieldSingle.d.ts +2 -2
- package/dist/src/components/DateFieldSingle/index.d.ts +1 -1
- package/dist/src/components/DateFieldSingle/parts.d.ts +16 -0
- package/dist/src/components/DateFieldYearless/DateFieldYearless.d.ts +2 -2
- package/dist/src/components/DateFieldYearless/index.d.ts +1 -1
- package/dist/src/components/DateFieldYearless/parts.d.ts +15 -0
- package/dist/src/components/DateFieldYearlessRange/DateFieldYearlessRange.d.ts +2 -2
- package/dist/src/components/DateFieldYearlessRange/parts.d.ts +12 -0
- package/dist/src/components/Details/index.d.ts +2 -2
- package/dist/src/components/Dialog/index.d.ts +4 -4
- package/dist/src/components/DndSort/index.d.ts +3 -3
- package/dist/src/components/Drawer/index.d.ts +4 -4
- package/dist/src/components/DrillDown/DrillDown.d.ts +11 -0
- package/dist/src/components/Grid/index.d.ts +1 -1
- package/dist/src/components/List/index.d.ts +1 -1
- package/dist/src/components/Listbox/index.d.ts +2 -2
- package/dist/src/components/Menu/index.d.ts +1 -1
- package/dist/src/components/MultiSelectField/internal/MultiSelectFieldComboboxMode.d.ts +1 -1
- package/dist/src/components/MultiSelectField/internal/MultiSelectFieldSelectMode.d.ts +1 -1
- package/dist/src/components/MultiSelectField/internal/types.d.ts +3 -1
- package/dist/src/components/MultiSelectField/parts.d.ts +20 -0
- package/dist/src/components/MultiSelectField/types.d.ts +2 -2
- package/dist/src/components/MultiSelectMenu/parts.d.ts +12 -0
- package/dist/src/components/MultiSelectMenu/types.d.ts +3 -2
- package/dist/src/components/Overflow/index.d.ts +1 -1
- package/dist/src/components/Pagination/Pagination.d.ts +4 -3
- package/dist/src/components/Pagination/parts.d.ts +28 -0
- package/dist/src/components/Popover/index.d.ts +4 -4
- package/dist/src/components/Radio/index.d.ts +2 -2
- package/dist/src/components/SelectCard/index.d.ts +1 -1
- package/dist/src/components/SelectField/internal/SelectFieldComboboxMode.d.ts +1 -1
- package/dist/src/components/SelectField/internal/SelectFieldSelectMode.d.ts +1 -1
- package/dist/src/components/SelectField/parts.d.ts +18 -0
- package/dist/src/components/SelectField/types.d.ts +7 -2
- package/dist/src/components/SelectMenu/internal/useMenuInteraction.d.ts +15 -7
- package/dist/src/components/SelectMenu/parts.d.ts +12 -0
- package/dist/src/components/SelectMenu/types.d.ts +3 -2
- package/dist/src/components/SelectTrigger/internal/SelectTriggerBase.d.ts +6 -5
- package/dist/src/components/SideNav/index.d.ts +3 -3
- package/dist/src/components/Stepper/index.d.ts +6 -6
- package/dist/src/components/Tab/index.d.ts +3 -3
- package/dist/src/components/TimeField/index.d.ts +1 -1
- package/dist/src/components/Toolbar/Toolbar.d.ts +3 -3
- package/dist/src/components/Toolbar/index.d.ts +5 -5
- package/dist/src/components/Toolbar/parts.d.ts +18 -0
- package/dist/src/components/Tooltip/index.d.ts +2 -2
- package/dist/src/internal/components/Popover/index.d.ts +4 -4
- package/dist/src/internal/constants/anvParts.d.ts +81 -0
- package/dist/src/internal/testing/anvPartsContract.d.ts +24 -0
- package/dist/src/internal/types/selectFieldInternalTypes.d.ts +3 -1
- package/dist/src/providers/ThemeProvider/index.d.ts +2 -2
- package/dist/src/providers/TrackingProvider/index.d.ts +1 -1
- package/dist/src/types/index.d.ts +3 -3
- package/dist/{stripInlineMarkdown-BZzgG-Zm.js → stripInlineMarkdown-BfNNOWPk.js} +2 -2
- package/dist/{stripInlineMarkdown-BZzgG-Zm.js.map → stripInlineMarkdown-BfNNOWPk.js.map} +1 -1
- package/dist/{syncFilterUtils-BVclVovw.js → syncFilterUtils-YB6gRuuR.js} +14 -7
- package/dist/syncFilterUtils-YB6gRuuR.js.map +1 -0
- package/dist/{treeSync-oC-VZpP0.js → treeSync-DOen59wP.js} +26 -6
- package/dist/treeSync-DOen59wP.js.map +1 -0
- package/dist/{useAdaptiveView-AvsDkChF.js → useAdaptiveView-DmhhcX-B.js} +8 -6
- package/dist/useAdaptiveView-DmhhcX-B.js.map +1 -0
- package/dist/useChipLayout-BWZfKDgd.js.map +1 -1
- package/dist/{useDrilldown-PmrZ4BXn.js → useDrilldown-UAm0-l1l.js} +13 -6
- package/dist/{useDrilldown-PmrZ4BXn.js.map → useDrilldown-UAm0-l1l.js.map} +1 -1
- package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
- package/dist/{useInfiniteCombobox-C78WQZx4.js → useInfiniteCombobox-V94SoOiU.js} +128 -79
- package/dist/useInfiniteCombobox-V94SoOiU.js.map +1 -0
- package/dist/useInitialFocus-BUxEDMEG.js.map +1 -1
- package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
- package/dist/{useMenuInteraction-NEJXUD4I.js → useMenuInteraction-nNF1dsrp.js} +14 -5
- package/dist/useMenuInteraction-nNF1dsrp.js.map +1 -0
- package/dist/{useNumberField-D_ic9i2q.js → useNumberField-CXFYUZ_n.js} +4 -2
- package/dist/useNumberField-CXFYUZ_n.js.map +1 -0
- package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
- package/dist/useSize.js.map +1 -1
- package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
- package/package.json +8 -6
- package/dist/AiMark-voHPSerQ.js.map +0 -1
- package/dist/Alert-CPe0yh6A.js.map +0 -1
- package/dist/Announcement-DU0J4111.js.map +0 -1
- package/dist/Breadcrumbs-VzOM2nBU.js.map +0 -1
- package/dist/Button-BNzCI47m.js.map +0 -1
- package/dist/ButtonLink-PlW08u41.js.map +0 -1
- package/dist/ButtonToggle-DBGc7dIn.js.map +0 -1
- package/dist/Calendar-CekTYzdT.js.map +0 -1
- package/dist/Calendar-MRUB0XU7.js.map +0 -1
- package/dist/Checkbox-C3rtd-Xe.js.map +0 -1
- package/dist/Checkbox-zz9TyZWn.js.map +0 -1
- package/dist/Chip-CxgryK86.js.map +0 -1
- package/dist/DataTable-Bvsijiqn.js.map +0 -1
- package/dist/DateFieldRange-CP7QgS6P.js.map +0 -1
- package/dist/DateFieldSingle-CgMPTi1v.js.map +0 -1
- package/dist/DateFieldYearless-BDSbVQx0.js.map +0 -1
- package/dist/DateFieldYearlessRange-Dk7HVYTA.js.map +0 -1
- package/dist/DaysOfTheWeek-Ci-SKebP.js.map +0 -1
- package/dist/Details-DkteVZbk.js.map +0 -1
- package/dist/Dialog-BxulNN8n.js.map +0 -1
- package/dist/DialogCancelButton-DmSUPuCR.js.map +0 -1
- package/dist/Drawer-DzvM9MRB.js.map +0 -1
- package/dist/EditCard-ZpF032WP.js.map +0 -1
- package/dist/FieldLabel-Cm5A1Jcx.js.map +0 -1
- package/dist/FilterBar-DBVW3LL3.js.map +0 -1
- package/dist/Flex-Bb3iHExM.js.map +0 -1
- package/dist/Grid-ho1pGJ5L.js.map +0 -1
- package/dist/Helper-B_VAFgGd.js.map +0 -1
- package/dist/Icon-B4uCvMU9.js.map +0 -1
- package/dist/InputMask-CX6XiOOm.js.map +0 -1
- package/dist/Link-C7dtI5K6.js.map +0 -1
- package/dist/ListView-DpveXOsN.js.map +0 -1
- package/dist/Listbox-Cdwaofd2.js.map +0 -1
- package/dist/Menu-DmEXQLXt.js.map +0 -1
- package/dist/MenuFooter-Ck9L599M.js.map +0 -1
- package/dist/MultiSelectFieldSync-B1tkEtft.js.map +0 -1
- package/dist/MultiSelectMenuSync-Deki_z-0.js.map +0 -1
- package/dist/NumberField-CjC6KHKl.js.map +0 -1
- package/dist/Page-BreBQ3pG.js.map +0 -1
- package/dist/Pagination-CmqAut6y.js.map +0 -1
- package/dist/Popover-CdRuNv3C.js.map +0 -1
- package/dist/ProgressBar-065vjsQ0.js.map +0 -1
- package/dist/Radio-D9w_-JYw.js.map +0 -1
- package/dist/Radio-dyLcVmUw.js.map +0 -1
- package/dist/RichTextEditor-byoMZaJy.js.map +0 -1
- package/dist/SavedFiltersButton-BHgS4akL.js.map +0 -1
- package/dist/SearchField-B7fIOJf-.js.map +0 -1
- package/dist/SearchField-X4B7f23E.js.map +0 -1
- package/dist/SegmentedControl-Be6jCglV.js.map +0 -1
- package/dist/SelectCard-CMSG_ba1.js.map +0 -1
- package/dist/SelectFieldLabel-dKVBaki2.js.map +0 -1
- package/dist/SelectFieldSync-VShqP5J0.js.map +0 -1
- package/dist/SelectMenuSync-BDx1yhZT.js.map +0 -1
- package/dist/SelectOptions-BIVTviOh.js.map +0 -1
- package/dist/SelectTrigger-APxYfL3V.js.map +0 -1
- package/dist/SelectTriggerBase-lYieONTb.js.map +0 -1
- package/dist/SideNav-DoxX8Vi-.js.map +0 -1
- package/dist/Stepper-CvaR7OoT.js.map +0 -1
- package/dist/Switch-Bm3qqjd6.js.map +0 -1
- package/dist/Tab-Cy4G562A.js.map +0 -1
- package/dist/Text-mDcQHC2U.js.map +0 -1
- package/dist/TextField-CUVsDfWo.js.map +0 -1
- package/dist/TextField-WQTlqKso.js.map +0 -1
- package/dist/Textarea-CW3KGuB9.js.map +0 -1
- package/dist/TimeField-JA3gXyS7.js.map +0 -1
- package/dist/Toaster-DMZng3Im.js.map +0 -1
- package/dist/Toaster-fPcgIF7Q.js.map +0 -1
- package/dist/Toolbar-BfGcDXgC.js.map +0 -1
- package/dist/Toolbar-Dlu39v69.js.map +0 -1
- package/dist/ToolbarButtonToggle-3xbnm1Qr.js.map +0 -1
- package/dist/TreeSelectFieldSync-CdtC8d3Q.js.map +0 -1
- package/dist/TreeSelectMenuSync-CPuQWUNU.js.map +0 -1
- package/dist/TypeaheadTextField-BkLECKZY.js.map +0 -1
- package/dist/YearlessDateInputWithPicker-DLtMQhDw.js.map +0 -1
- package/dist/bulkActionTypes-CTKwMpO7.js.map +0 -1
- package/dist/filter-state-DKXF5MeW.js.map +0 -1
- package/dist/index-SZMmvI3D.js.map +0 -1
- package/dist/syncFilterUtils-BVclVovw.js.map +0 -1
- package/dist/treeSync-oC-VZpP0.js.map +0 -1
- package/dist/useAdaptiveView-AvsDkChF.js.map +0 -1
- package/dist/useInfiniteCombobox-C78WQZx4.js.map +0 -1
- package/dist/useMenuInteraction-NEJXUD4I.js.map +0 -1
- package/dist/useNumberField-D_ic9i2q.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, ReactElement, RefObject } from 'react';
|
|
2
|
+
import { DataAttributes } from '../../../types';
|
|
2
3
|
import { ConfirmationProp } from '../../../internal/types/confirmationTypes';
|
|
3
4
|
import { TreeSelectFieldNode as TreeSelectMenuNode, TreeSelectFieldValue as TreeSelectMenuValue, TreeSelectFieldValueConsistsOf as TreeSelectMenuValueConsistsOf, TreeSelectFieldHandle, TreeSelectFieldOptionContent as TreeSelectMenuOptionContent } from '../TreeSelectField/types';
|
|
4
5
|
/**
|
|
@@ -42,7 +43,7 @@ export type TreeSelectMenuTriggerProps = {
|
|
|
42
43
|
"aria-controls": string;
|
|
43
44
|
"aria-expanded": boolean;
|
|
44
45
|
"data-state": "open" | "close";
|
|
45
|
-
};
|
|
46
|
+
} & DataAttributes;
|
|
46
47
|
/**
|
|
47
48
|
* Props for the TreeSelectMenu component.
|
|
48
49
|
* @property id - Optional id for the menu; an internal id is generated when omitted.
|
|
@@ -100,4 +101,4 @@ export type TreeSelectMenuProps = {
|
|
|
100
101
|
initialLoad?: "auto" | "immediate" | "open";
|
|
101
102
|
confirmation?: ConfirmationProp;
|
|
102
103
|
clear?: TreeSelectMenuClearConfig;
|
|
103
|
-
};
|
|
104
|
+
} & DataAttributes;
|
|
@@ -22,11 +22,9 @@ export type AlertProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & OnC
|
|
|
22
22
|
* Use `true` for the sparkle only, or pass tooltip/popover configuration.
|
|
23
23
|
*/
|
|
24
24
|
aiMark?: boolean | AiMarkWithTooltipOrPopoverConfig;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
25
|
+
} /**
|
|
27
26
|
* Data tracking id
|
|
28
|
-
*/
|
|
29
|
-
DataTrackingId;
|
|
27
|
+
*/ & DataTrackingId;
|
|
30
28
|
/**
|
|
31
29
|
* Alert component for displaying an inline banner message that communicates status to users — errors, warnings, success, or important information within page content.
|
|
32
30
|
*
|
|
@@ -16,11 +16,9 @@ export type AnnouncementProps = ComponentPropsWithoutRef<"div"> & Omit<LayoutUti
|
|
|
16
16
|
* The title text displayed in the announcement.
|
|
17
17
|
*/
|
|
18
18
|
title: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
19
|
+
} /**
|
|
21
20
|
* Data tracking id
|
|
22
|
-
*/
|
|
23
|
-
DataTrackingId;
|
|
21
|
+
*/ & DataTrackingId;
|
|
24
22
|
/**
|
|
25
23
|
* Announcement component for displaying important messages to users.
|
|
26
24
|
*
|
|
@@ -11,11 +11,9 @@ export type ButtonCompoundProps = LayoutUtilProps & ComponentPropsWithoutRef<"bu
|
|
|
11
11
|
* @default rounded
|
|
12
12
|
*/
|
|
13
13
|
shape?: "pill" | "circular" | "rounded";
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
14
|
+
} /**
|
|
16
15
|
* Data tracking id
|
|
17
|
-
*/
|
|
18
|
-
DataTrackingId;
|
|
16
|
+
*/ & DataTrackingId;
|
|
19
17
|
/**
|
|
20
18
|
* ButtonCompound component for creating compound button layouts.
|
|
21
19
|
*
|
|
@@ -36,11 +36,9 @@ export type ButtonLinkProps = LayoutUtilProps & ComponentPropsWithoutRef<"a"> &
|
|
|
36
36
|
* @default false
|
|
37
37
|
*/
|
|
38
38
|
loading?: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
39
|
+
} /**
|
|
41
40
|
* Data tracking id
|
|
42
|
-
*/
|
|
43
|
-
DataTrackingId;
|
|
41
|
+
*/ & DataTrackingId;
|
|
44
42
|
/**
|
|
45
43
|
* ButtonLink component for creating clickable links that look like buttons.
|
|
46
44
|
*
|
|
@@ -27,11 +27,9 @@ export type ButtonToggleProps = Omit<ButtonProps, "appearance" | "loading"> & {
|
|
|
27
27
|
* Callback for when pressed(selected) changes.
|
|
28
28
|
*/
|
|
29
29
|
onChange?: (e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, state: ButtonToggleState) => void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
30
|
+
} /**
|
|
32
31
|
* Data tracking id
|
|
33
|
-
*/
|
|
34
|
-
DataTrackingId;
|
|
32
|
+
*/ & DataTrackingId;
|
|
35
33
|
/**
|
|
36
34
|
* ButtonToggle component for creating toggleable button states.
|
|
37
35
|
*
|
|
@@ -17,11 +17,13 @@ type CalendarCommonProps = Omit<ComponentPropsWithoutRef<"div">, "value" | "defa
|
|
|
17
17
|
*/
|
|
18
18
|
children?: ComponentPropsWithoutRef<"div">["children"];
|
|
19
19
|
/**
|
|
20
|
-
* The default focused date. Used to determine what month and year is shown.
|
|
20
|
+
* The default focused date. Used to determine what month and year is shown on initial render.
|
|
21
|
+
* Prefer this over `focusedDate`, which is deprecated.
|
|
21
22
|
*/
|
|
22
23
|
defaultFocusedDate?: string | null;
|
|
23
24
|
/**
|
|
24
25
|
* The focused date. Used to determine what month and year is currently shown.
|
|
26
|
+
* @deprecated Use `defaultFocusedDate` instead. `focusedDate` does not reliably control the initial view and will be removed in a future major release.
|
|
25
27
|
*/
|
|
26
28
|
focusedDate?: string | null;
|
|
27
29
|
/**
|
|
@@ -5,5 +5,5 @@ export { CalendarPrev, type CalendarPrevProps } from './CalendarPrevButton';
|
|
|
5
5
|
export { CalendarNext, type CalendarNextProps } from './CalendarNextButton';
|
|
6
6
|
export { CalendarMonthButton, type CalendarMonthButtonProps, } from './CalendarMonthButton';
|
|
7
7
|
export { CalendarMonth, type CalendarMonthProps } from './CalendarMonth';
|
|
8
|
-
export {
|
|
8
|
+
export type { CalendarContextProps } from './CalendarContext';
|
|
9
9
|
export type { LayoutUtilProps } from '../../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './Checkbox';
|
|
2
|
-
export {
|
|
2
|
+
export type { CheckboxGroupProps } from './CheckboxGroup';
|
|
3
3
|
export { Checkbox as default } from './Checkbox';
|
|
4
|
-
export {
|
|
4
|
+
export type { CheckboxState } from './types';
|
|
@@ -210,7 +210,7 @@ export declare const Combobox: (<Item>(props: ComboboxProps<Item>) => import("re
|
|
|
210
210
|
* <Text>No items found. Try adjusting your search.</Text>
|
|
211
211
|
* </Combobox.Empty>
|
|
212
212
|
*/
|
|
213
|
-
Empty: <Item = any>({ children
|
|
213
|
+
Empty: <Item = any>({ children }: import('./ComboboxEmpty').ComboboxEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
214
214
|
};
|
|
215
215
|
export declare const ComboboxElement: (<Item>(props: ComboboxProps<Item>) => import("react/jsx-runtime").JSX.Element) & {
|
|
216
216
|
/**
|
|
@@ -384,5 +384,5 @@ export declare const ComboboxElement: (<Item>(props: ComboboxProps<Item>) => imp
|
|
|
384
384
|
* <Text>No items found. Try adjusting your search.</Text>
|
|
385
385
|
* </Combobox.Empty>
|
|
386
386
|
*/
|
|
387
|
-
Empty: <Item = any>({ children
|
|
387
|
+
Empty: <Item = any>({ children }: import('./ComboboxEmpty').ComboboxEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
388
388
|
};
|
|
@@ -22,4 +22,4 @@ export type ComboboxEmptyProps = {
|
|
|
22
22
|
* <Text>No items found. Try a different search term.</Text>
|
|
23
23
|
* </ComboboxEmpty>
|
|
24
24
|
*/
|
|
25
|
-
export declare const ComboboxEmpty: <Item = any>({ children
|
|
25
|
+
export declare const ComboboxEmpty: <Item = any>({ children }: ComboboxEmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseComboboxProps as UseDownshiftComboboxProps, UseMultipleSelectionProps as UseDownshiftMultipleSelectionProps, UseComboboxReturnValue as UseDownshiftComboboxReturnValue, UseComboboxState as UseDownshiftComboboxState, UseMultipleSelectionState as UseDownshiftMultipleSelectionState, UseSelectProps as UseDownshiftSelectProps, UseSelectReturnValue as UseDownshiftSelectReturnValue, UseSelectState as UseDownshiftSelectState, UseMultipleSelectionReturnValue as UseDownshiftMultipleSelectionReturnValue } from 'downshift';
|
|
2
|
-
import { DataTrackingId, DistributiveOmit, LayoutUtilProps } from '../../types';
|
|
2
|
+
import { DataAttributes, DataTrackingId, DistributiveOmit, LayoutUtilProps } from '../../types';
|
|
3
3
|
import { CSSProperties, ComponentPropsWithoutRef, Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
4
4
|
import { ComboboxGroupByValue } from './internal/ComboboxGroupContext';
|
|
5
5
|
import { MatchSorterOptions } from 'match-sorter';
|
|
@@ -108,7 +108,7 @@ export type ComboboxContextProps<Item = any> = Required<Pick<UseDownshiftCombobo
|
|
|
108
108
|
* @extends LayoutUtilProps
|
|
109
109
|
* @extends Pick<ComponentPropsWithoutRef<"div">, "className" | "style">
|
|
110
110
|
*/
|
|
111
|
-
type SharedProps<Item> = LayoutUtilProps & Pick<ComponentPropsWithoutRef<"div">, "className" | "style"> & {
|
|
111
|
+
type SharedProps<Item> = LayoutUtilProps & DataAttributes & Pick<ComponentPropsWithoutRef<"div">, "className" | "style"> & {
|
|
112
112
|
children?: ReactNode;
|
|
113
113
|
/**
|
|
114
114
|
* @default false
|
|
@@ -2,6 +2,6 @@ export { Combobox as default, Combobox, ComboboxElement } from './Combobox';
|
|
|
2
2
|
export { useInfiniteCombobox } from './useInfiniteCombobox';
|
|
3
3
|
export { ComboboxSelect } from './ComboboxSelect';
|
|
4
4
|
export { ComboboxList } from './ComboboxList';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
5
|
+
export type { ComboboxEmptyProps } from './ComboboxEmpty';
|
|
6
|
+
export type { ComboboxSingleProps, ComboboxMultipleProps, ComboboxProps, ComboboxSelectProps, ComboboxContentProps, ComboboxSearchFieldProps, ComboboxSelectTriggerProps, ComboboxListProps, ComboboxItemProps, ComboboxItemAddNewProps, SelectSingleProps, SelectMultipleProps, UseInfiniteComboboxProps, } from './ComboboxTypes';
|
|
7
7
|
export type { LayoutUtilProps } from '../../types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for Combobox / Combobox.Select interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Scope a query by the consumer's `data-cy` on the Combobox root
|
|
5
|
+
* (`[data-cy="x"] [data-anv-part="input"]`). Portaled menu parts
|
|
6
|
+
* (`menu`, `option`, `popover`) render in the top layer — target them by
|
|
7
|
+
* part attribute directly. Repeated options also carry `data-id` from
|
|
8
|
+
* `itemToKey(item)`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PARTS: {
|
|
11
|
+
readonly input: "input";
|
|
12
|
+
readonly trigger: "trigger";
|
|
13
|
+
readonly clearButton: "clear-button";
|
|
14
|
+
readonly toggleButton: "toggle-button";
|
|
15
|
+
readonly chip: "chip";
|
|
16
|
+
readonly menu: "menu";
|
|
17
|
+
readonly option: "option";
|
|
18
|
+
readonly popover: "popover";
|
|
19
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTrackingId, IanaZone } from '../../types';
|
|
1
|
+
import { DataAttributes, DataTrackingId, IanaZone } from '../../types';
|
|
2
2
|
import { MaskedDateRangeInputProps } from './internal/MaskedDateRangeInput';
|
|
3
3
|
import { DateMode } from '../DateFieldSingle/types';
|
|
4
4
|
export type DateFieldRangeChange = {
|
|
@@ -61,7 +61,7 @@ export type DateFieldRangeProps = Omit<MaskedDateRangeInputProps, "onChange" | "
|
|
|
61
61
|
* @example "America/Los_Angeles"
|
|
62
62
|
*/
|
|
63
63
|
timezone?: IanaZone;
|
|
64
|
-
} & DataTrackingId;
|
|
64
|
+
} & DataTrackingId & DataAttributes;
|
|
65
65
|
/**
|
|
66
66
|
* DateFieldRange component for entering a start and end date via a masked
|
|
67
67
|
* text input, with an optional popover calendar for picking the range
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for DateFieldRange's interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Consumer `data-*` (e.g. `data-cy`) is forwarded to the masked text input —
|
|
5
|
+
* the one element present in every mode (including `disableCalendar`). The
|
|
6
|
+
* calendar and its popover render in the top layer, outside the input's
|
|
7
|
+
* subtree, so target them by part attribute directly or by the popover's
|
|
8
|
+
* `data-testid="calendar-popover"`.
|
|
9
|
+
*
|
|
10
|
+
* Every role is a shared one, so values come from `COMMON_PART`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PARTS: {
|
|
13
|
+
readonly input: "date-input";
|
|
14
|
+
readonly popover: "popover";
|
|
15
|
+
readonly calendar: "date-calendar";
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTrackingId, IanaZone } from '../../types';
|
|
1
|
+
import { DataAttributes, DataTrackingId, IanaZone } from '../../types';
|
|
2
2
|
import { MaskedDateInputProps } from './internal/MaskedDateInput';
|
|
3
3
|
import { DateMode } from './types';
|
|
4
4
|
export type DateFieldSingleProps = Omit<MaskedDateInputProps, "onChange" | "value" | "autoComplete" | "onClick" | "onKeyDown" | "ref" | "lastValidDate" | "setLastValidDate" | "required" | "onFocus" | "onBlur"> & {
|
|
@@ -32,7 +32,7 @@ export type DateFieldSingleProps = Omit<MaskedDateInputProps, "onChange" | "valu
|
|
|
32
32
|
* @example "America/Los_Angeles"
|
|
33
33
|
*/
|
|
34
34
|
timezone?: IanaZone;
|
|
35
|
-
} & DataTrackingId;
|
|
35
|
+
} & DataTrackingId & DataAttributes;
|
|
36
36
|
export type DateFieldSingleChange = {
|
|
37
37
|
/**
|
|
38
38
|
* The date in ISO 8601 format.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DateFieldSingle';
|
|
2
|
-
export {
|
|
2
|
+
export type { DateMode } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for DateFieldSingle's interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Consumer `data-*` (e.g. `data-cy`) is forwarded to the masked text input —
|
|
5
|
+
* the one element present in every mode (including `disableCalendar`). The
|
|
6
|
+
* calendar and its popover render in the top layer, outside the input's
|
|
7
|
+
* subtree, so target them by part attribute directly or by the popover's
|
|
8
|
+
* `data-testid="calendar-popover"`.
|
|
9
|
+
*
|
|
10
|
+
* Every role is a shared one, so values come from `COMMON_PART`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PARTS: {
|
|
13
|
+
readonly input: "date-input";
|
|
14
|
+
readonly popover: "popover";
|
|
15
|
+
readonly calendar: "date-calendar";
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTrackingId, LayoutUtilProps, Size } from '../../types';
|
|
1
|
+
import { DataAttributes, DataTrackingId, LayoutUtilProps, Size } from '../../types';
|
|
2
2
|
import { YearlessDate, YearlessDateMode } from './types';
|
|
3
3
|
import { ReactElement, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
import { FieldLabelProps } from '../FieldLabel';
|
|
@@ -105,7 +105,7 @@ export type DateFieldYearlessProps = Omit<ComponentPropsWithoutRef<"input">, "on
|
|
|
105
105
|
* Function to call when the field is blurred
|
|
106
106
|
*/
|
|
107
107
|
onBlur?: (event: React.FocusEvent) => void;
|
|
108
|
-
} & DataTrackingId;
|
|
108
|
+
} & DataTrackingId & DataAttributes;
|
|
109
109
|
/**
|
|
110
110
|
* Represents a change event for the DateFieldYearless component
|
|
111
111
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DateFieldYearless';
|
|
2
|
-
export {
|
|
2
|
+
export type { YearlessDate, YearlessDateMode } from './types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for DateFieldYearless interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Consumer `data-*` (e.g. `data-cy`) is forwarded to the masked text input —
|
|
5
|
+
* the one element present in every mode (including `disablePicker`). The
|
|
6
|
+
* picker popover and month/day lists render in the top layer, outside the
|
|
7
|
+
* input's subtree — target them by part attribute directly.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PARTS: {
|
|
10
|
+
readonly input: "date-input";
|
|
11
|
+
readonly popover: "popover";
|
|
12
|
+
readonly monthList: "month-list";
|
|
13
|
+
readonly dayList: "day-list";
|
|
14
|
+
readonly option: "option";
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { HelperProps } from '../../internal/components';
|
|
3
|
-
import { LayoutUtilProps, Size } from '../../types';
|
|
3
|
+
import { DataAttributes, LayoutUtilProps, Size } from '../../types';
|
|
4
4
|
import { FieldLabelProps } from '../FieldLabel';
|
|
5
5
|
import { YearlessDate, YearlessDateMode } from '../DateFieldYearless/types';
|
|
6
6
|
export type DateFieldYearlessRangeValue = {
|
|
@@ -73,7 +73,7 @@ export type DateFieldYearlessRangeProps = {
|
|
|
73
73
|
endLabel?: string;
|
|
74
74
|
legendProps?: Omit<FieldLabelProps, "el">;
|
|
75
75
|
moreInfo?: FieldLabelProps["moreInfo"];
|
|
76
|
-
} & LayoutUtilProps;
|
|
76
|
+
} & LayoutUtilProps & DataAttributes;
|
|
77
77
|
/**
|
|
78
78
|
* DateFieldYearlessRange component for entering a start and end month/day
|
|
79
79
|
* pair — a date range with no year, e.g. recurring events or anniversaries.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for DateFieldYearlessRange interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Consumer `data-*` is forwarded to the fieldset root. Scope start/end inputs
|
|
5
|
+
* under it (`[data-cy="x"] [data-anv-part="start-input"]`). Picker popover /
|
|
6
|
+
* month-list / day-list / option parts are stamped by the shared yearless
|
|
7
|
+
* picker internals — see DateFieldYearless `PARTS`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PARTS: {
|
|
10
|
+
readonly startInput: "start-input";
|
|
11
|
+
readonly endInput: "end-input";
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './Details';
|
|
2
2
|
export { Details as default } from './Details';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export type { DetailsSummaryProps } from './DetailsSummary';
|
|
4
|
+
export type { DetailsContentProps } from './DetailsContent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Dialog as default, Dialog, type DialogProps } from './Dialog';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
2
|
+
export type { DialogCancelButtonProps } from './DialogCancelButton';
|
|
3
|
+
export type { DialogContentProps } from './DialogContent';
|
|
4
|
+
export type { DialogFooterProps } from './DialogFooter';
|
|
5
|
+
export type { DialogHeaderProps } from './DialogHeader';
|
|
6
6
|
export type { LayoutUtilProps } from '../../types';
|
|
@@ -6,7 +6,7 @@ export declare const DndSort: typeof DndSortRoot & {
|
|
|
6
6
|
Zone: typeof DndSortZone;
|
|
7
7
|
};
|
|
8
8
|
export { DndSortCard, DndSortZone };
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
9
|
+
export type { DndSortProps } from './DndSort';
|
|
10
|
+
export type { DndSortCardProps } from './DndSortCard';
|
|
11
|
+
export type { DndSortZoneProps } from './DndSortZone';
|
|
12
12
|
export type { DndSortChangeEvent, DndSortZoneAdvancedRenderer } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Drawer as default, Drawer, type DrawerProps } from './Drawer';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
2
|
+
export type { DrawerCancelButtonProps } from './DrawerCancelButton';
|
|
3
|
+
export type { DrawerFooterProps } from './DrawerFooter';
|
|
4
|
+
export type { DrawerHeaderAction, DrawerHeaderProps, } from './DrawerHeader';
|
|
5
|
+
export type { DrawerContentProps } from './DrawerContent';
|
|
6
6
|
export type { LayoutUtilProps } from '../../types';
|
|
@@ -10,6 +10,17 @@ import { PassThroughPropsWithRef } from '../../types';
|
|
|
10
10
|
export type DrillDownProps = PassThroughPropsWithRef<"div"> & {
|
|
11
11
|
index: number;
|
|
12
12
|
onClose?: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Suspends this screen's focus trap while `false`, even though the screen
|
|
15
|
+
* stays mounted and visible. Use when a consumer opens an independent
|
|
16
|
+
* Dialog/Drawer of their own (not a nested `DrillDown` index — e.g. a
|
|
17
|
+
* `DateListDialog` triggered from a form field in this screen) that stacks
|
|
18
|
+
* on top: that overlay isn't a descendant of this screen's trap boundary,
|
|
19
|
+
* so without this escape hatch the trap treats every click inside it as
|
|
20
|
+
* "outside" and blocks it.
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
interactive?: boolean;
|
|
13
24
|
};
|
|
14
25
|
/**
|
|
15
26
|
* Multi-step, hierarchical drill-down navigation component for Dialog, Drawer, and Page.Panel — lets users drill down by selecting a category to go deeper into nested subcategories or screens, and navigate back up.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './Listbox';
|
|
2
2
|
export { Listbox as default, type ListboxProps } from './Listbox';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export type { ListboxOptionProps } from './ListboxOption';
|
|
4
|
+
export type { ListboxOptionGroupProps } from './ListboxOptionGroup';
|
|
@@ -2,4 +2,4 @@ import { MultiSelectFieldComboboxInternalProps } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Combobox mode: searchable multi-select using useCombobox.
|
|
4
4
|
*/
|
|
5
|
-
export declare const MultiSelectFieldComboboxMode: ({ labelAiMark, id, helperUid, selectedOptions, onSelectedOptionsChange, displayAs, isDisabledOrReadOnly, disabled, readOnly, isHighlighted, required, placeholder, size, error, hasHelperText, disableClearButton, prefix, suffix, label, hideLabel, hint, moreInfo, moreInfoId, errorMessages, warning, description, className, style, layoutStyles, pinned, groupToString, groupSorter, virtualize, options, loading, loadingMore, hasMore, loadOptions, loadMore, initialLoad, initialLoadPerformed, setInitialLoadPerformed, inputWrapperRef, debounceMs, selectAll, selectFiltered, bulkPending, onBulkActivate, singleRow, maxChips, getChipProps, onSearchChange, addItemLabel, onAddNewItem, handleRemoveOption, handleClear, }: MultiSelectFieldComboboxInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const MultiSelectFieldComboboxMode: ({ labelAiMark, id, helperUid, selectedOptions, onSelectedOptionsChange, displayAs, isDisabledOrReadOnly, disabled, readOnly, isHighlighted, required, placeholder, size, error, hasHelperText, disableClearButton, prefix, suffix, label, hideLabel, hint, moreInfo, moreInfoId, errorMessages, warning, description, className, style, layoutStyles, pinned, groupToString, groupSorter, virtualize, options, loading, loadingMore, hasMore, loadOptions, loadMore, initialLoad, initialLoadPerformed, setInitialLoadPerformed, inputWrapperRef, debounceMs, selectAll, selectFiltered, bulkPending, onBulkActivate, singleRow, maxChips, getChipProps, onSearchChange, addItemLabel, onAddNewItem, handleRemoveOption, handleClear, dataAttributes, }: MultiSelectFieldComboboxInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { MultiSelectFieldBaseInternalProps } from './types';
|
|
|
3
3
|
* Select mode: non-searchable multi-select using useSelect.
|
|
4
4
|
* Active when disableSearch is true.
|
|
5
5
|
*/
|
|
6
|
-
export declare const MultiSelectFieldSelectMode: ({ labelAiMark, id, helperUid, selectedOptions, onSelectedOptionsChange, displayAs, isDisabledOrReadOnly, disabled, readOnly, isHighlighted, required, placeholder, size, error, hasHelperText, disableClearButton, prefix, suffix, label, hideLabel, hint, moreInfo, moreInfoId, errorMessages, warning, description, className, style, layoutStyles, pinned, groupToString, groupSorter, virtualize, options, loading, loadingMore, hasMore, loadOptions, loadMore, initialLoad, initialLoadPerformed, setInitialLoadPerformed, inputWrapperRef, selectAll, bulkPending, onBulkActivate, singleRow, maxChips, getChipProps, addItemLabel, onAddNewItem, handleRemoveOption, handleClear, }: MultiSelectFieldBaseInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const MultiSelectFieldSelectMode: ({ labelAiMark, id, helperUid, selectedOptions, onSelectedOptionsChange, displayAs, isDisabledOrReadOnly, disabled, readOnly, isHighlighted, required, placeholder, size, error, hasHelperText, disableClearButton, prefix, suffix, label, hideLabel, hint, moreInfo, moreInfoId, errorMessages, warning, description, className, style, layoutStyles, pinned, groupToString, groupSorter, virtualize, options, loading, loadingMore, hasMore, loadOptions, loadMore, initialLoad, initialLoadPerformed, setInitialLoadPerformed, inputWrapperRef, selectAll, bulkPending, onBulkActivate, singleRow, maxChips, getChipProps, addItemLabel, onAddNewItem, handleRemoveOption, handleClear, dataAttributes, }: MultiSelectFieldBaseInternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
|
-
import { AiMarkWithTooltipOrPopoverProps, CheckState } from '../../../types';
|
|
2
|
+
import { AiMarkWithTooltipOrPopoverProps, CheckState, DataAttributes } from '../../../types';
|
|
3
3
|
import { AddNewItemProps } from '../../../internal/types/addNewItemTypes';
|
|
4
4
|
import { MultiSelectFieldChipProps, MultiSelectFieldOption, MultiSelectFieldProps } from '../types';
|
|
5
5
|
export type MultiSelectFieldBaseInternalProps = {
|
|
@@ -63,6 +63,8 @@ export type MultiSelectFieldBaseInternalProps = {
|
|
|
63
63
|
id: string | number;
|
|
64
64
|
}) => void;
|
|
65
65
|
handleClear: () => void;
|
|
66
|
+
/** Consumer-supplied `data-*` attributes forwarded to the field wrapper. */
|
|
67
|
+
dataAttributes?: DataAttributes;
|
|
66
68
|
} & AddNewItemProps;
|
|
67
69
|
export type MultiSelectFieldComboboxInternalProps = MultiSelectFieldBaseInternalProps & {
|
|
68
70
|
debounceMs: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for MultiSelectField's interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Scope a query by the consumer's `data-cy` on the field root
|
|
5
|
+
* (`[data-cy="x"] [data-anv-part="input"]`). Portaled parts (`menu`, `option`,
|
|
6
|
+
* `dialog`, `popover`) come from the shared option internals and render in the
|
|
7
|
+
* top layer — target them by part attribute or the field's `#{id}-popover` /
|
|
8
|
+
* `#{id}-dialog`.
|
|
9
|
+
*
|
|
10
|
+
* Every role MultiSelectField needs is a shared one, so all values come from
|
|
11
|
+
* `COMMON_PART`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PARTS: {
|
|
14
|
+
readonly trigger: "trigger";
|
|
15
|
+
readonly input: "input";
|
|
16
|
+
readonly chip: "chip";
|
|
17
|
+
readonly overflowChip: "overflow-chip";
|
|
18
|
+
readonly clearButton: "clear-button";
|
|
19
|
+
readonly toggleButton: "toggle-button";
|
|
20
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AriaAttributes, CSSProperties, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { AiMarkWithTooltipOrPopoverProps, LayoutUtilProps, Size } from '../../types';
|
|
2
|
+
import { AiMarkWithTooltipOrPopoverProps, DataAttributes, LayoutUtilProps, Size } from '../../types';
|
|
3
3
|
import { SelectFieldGroupByValue, SelectFieldOption, SelectFieldOptionContent } from '../SelectField/types';
|
|
4
4
|
import { ChipProps } from '../../components/Chip';
|
|
5
5
|
import { AddNewItemProps } from '../../internal/types/addNewItemTypes';
|
|
@@ -294,7 +294,7 @@ type MultiSelectFieldCommonProps = {
|
|
|
294
294
|
* @returns Partial chip props to merge onto the chip
|
|
295
295
|
*/
|
|
296
296
|
getChipProps?: (option: MultiSelectFieldOption) => MultiSelectFieldChipProps;
|
|
297
|
-
} & MultiSelectFieldSearchProps & LayoutUtilProps & AddNewItemProps;
|
|
297
|
+
} & MultiSelectFieldSearchProps & LayoutUtilProps & AddNewItemProps & DataAttributes;
|
|
298
298
|
type MultiSelectFieldGroupingProps = {
|
|
299
299
|
/**
|
|
300
300
|
* Function to convert a group value to a display label.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for MultiSelectMenu interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* There is no wrapper root — attach consumer `data-*` (e.g. `data-cy`) via
|
|
5
|
+
* props; they are merged into the trigger render-prop bag. Portaled
|
|
6
|
+
* `menu` / `option` / `popover` / `dialog` / footer buttons come from shared
|
|
7
|
+
* internals (not redeclared here).
|
|
8
|
+
*/
|
|
9
|
+
export declare const PARTS: {
|
|
10
|
+
readonly trigger: "trigger";
|
|
11
|
+
readonly input: "input";
|
|
12
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, ReactElement, RefObject } from 'react';
|
|
2
|
+
import { DataAttributes } from '../../types';
|
|
2
3
|
import { SelectFieldGroupByValue, SelectFieldOption, SelectFieldOptionContent } from '../SelectField/types';
|
|
3
4
|
import { MultiSelectFieldCacheOptions, MultiSelectFieldEagerLoader, MultiSelectFieldGroupLazyLoader, MultiSelectFieldOffsetLazyLoader, MultiSelectFieldPageLazyLoader, MultiSelectFieldPinnedOptions, MultiSelectFieldSearchProps } from '../MultiSelectField/types';
|
|
4
5
|
import { AddNewItemProps } from '../../internal/types/addNewItemTypes';
|
|
@@ -54,7 +55,7 @@ export type MultiSelectMenuTriggerProps = {
|
|
|
54
55
|
"aria-controls": string;
|
|
55
56
|
"aria-expanded": boolean;
|
|
56
57
|
"data-state": "open" | "close";
|
|
57
|
-
};
|
|
58
|
+
} & DataAttributes;
|
|
58
59
|
type MultiSelectMenuCommonProps = {
|
|
59
60
|
/**
|
|
60
61
|
* The id of the multi-select menu.
|
|
@@ -188,7 +189,7 @@ type MultiSelectMenuCommonProps = {
|
|
|
188
189
|
label?: string;
|
|
189
190
|
disabled?: boolean;
|
|
190
191
|
};
|
|
191
|
-
} & MultiSelectMenuSearchProps & AddNewItemProps;
|
|
192
|
+
} & MultiSelectMenuSearchProps & AddNewItemProps & DataAttributes;
|
|
192
193
|
type MultiSelectMenuGroupingProps = {
|
|
193
194
|
/**
|
|
194
195
|
* Function to convert a group value to a display label.
|
|
@@ -27,5 +27,5 @@ export declare const Overflow: import('react').ForwardRefExoticComponent<Overflo
|
|
|
27
27
|
Text: import('react').ForwardRefExoticComponent<OverflowTextProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
28
|
};
|
|
29
29
|
export default Overflow;
|
|
30
|
-
export {
|
|
30
|
+
export type { OverflowProps };
|
|
31
31
|
export { OverflowText, type OverflowTextProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTrackingId } from '../../types';
|
|
1
|
+
import { DataAttributes, DataTrackingId } from '../../types';
|
|
2
2
|
import { PaginationProps as BasePaginationProps } from './internal/Pagination';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the Pagination component
|
|
@@ -12,8 +12,9 @@ import { PaginationProps as BasePaginationProps } from './internal/Pagination';
|
|
|
12
12
|
* @property {string} [itemsPerPageLabel] - Custom label displayed before the items-per-page selector. Defaults to "Rows per page"
|
|
13
13
|
* @extends Omit<BasePaginationProps, "children">
|
|
14
14
|
* @extends DataTrackingId
|
|
15
|
+
* @extends DataAttributes
|
|
15
16
|
*/
|
|
16
|
-
export type PaginationProps = Omit<BasePaginationProps, "children"> & DataTrackingId & {
|
|
17
|
+
export type PaginationProps = Omit<BasePaginationProps, "children"> & DataTrackingId & DataAttributes & {
|
|
17
18
|
page: number;
|
|
18
19
|
itemsPerPage: number;
|
|
19
20
|
itemsPerPageOptions?: number[];
|
|
@@ -47,7 +48,7 @@ export type PaginationProps = Omit<BasePaginationProps, "children"> & DataTracki
|
|
|
47
48
|
* onItemsPerPageChange={(itemsPerPage) => console.log('Items per page:', itemsPerPage)}
|
|
48
49
|
* />
|
|
49
50
|
*/
|
|
50
|
-
export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & DataTrackingId & {
|
|
51
|
+
export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "children"> & DataTrackingId & DataAttributes & {
|
|
51
52
|
page: number;
|
|
52
53
|
itemsPerPage: number;
|
|
53
54
|
itemsPerPageOptions?: number[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `data-anv-part` names for Pagination's interactive sub-elements.
|
|
3
|
+
*
|
|
4
|
+
* Scope a query by the consumer's `data-cy` on the Pagination root
|
|
5
|
+
* (`[data-cy="x"] [data-anv-part="next-page-button"]`).
|
|
6
|
+
*
|
|
7
|
+
* Repeated parts use secondary discriminators:
|
|
8
|
+
* - page buttons / overflow options: `data-page`
|
|
9
|
+
* - items-per-page options: `data-items-per-page`
|
|
10
|
+
*
|
|
11
|
+
* Overflow and items-per-page menus render in the browser top layer — target
|
|
12
|
+
* `option` parts by attribute (or after opening the matching trigger), not as
|
|
13
|
+
* descendants of the Pagination root.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PARTS: {
|
|
16
|
+
/** Shared role for menu options (overflow pages + items-per-page). */
|
|
17
|
+
readonly option: "option";
|
|
18
|
+
/** Previous-page control. */
|
|
19
|
+
readonly prevPageButton: "prev-page-button";
|
|
20
|
+
/** Next-page control. */
|
|
21
|
+
readonly nextPageButton: "next-page-button";
|
|
22
|
+
/** Numbered page control. Narrow with `data-page`. */
|
|
23
|
+
readonly pageButton: "page-button";
|
|
24
|
+
/** Ellipsis control that opens the overflow page menu. */
|
|
25
|
+
readonly overflowTrigger: "overflow-trigger";
|
|
26
|
+
/** Control that opens the items-per-page menu. */
|
|
27
|
+
readonly itemsPerPageTrigger: "items-per-page-trigger";
|
|
28
|
+
};
|