@servicetitan/anvil2 3.4.2 → 3.6.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-BLBxE1Oj.js → AiMark-voHPSerQ.js} +27 -12
- package/dist/{AiMark-BLBxE1Oj.js.map → AiMark-voHPSerQ.js.map} +1 -1
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-nwycCmiL.js → Alert-CPe0yh6A.js} +3 -3
- package/dist/{Alert-nwycCmiL.js.map → Alert-CPe0yh6A.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-4w6XjLcB.js → Announcement-DU0J4111.js} +3 -3
- package/dist/{Announcement-4w6XjLcB.js.map → Announcement-DU0J4111.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-BQsp0VPq.js → AnvilProvider-b3gvW6Md.js} +4 -39
- package/dist/AnvilProvider-b3gvW6Md.js.map +1 -0
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Breadcrumbs-DbV4ld8s.js → Breadcrumbs-VzOM2nBU.js} +4 -4
- package/dist/{Breadcrumbs-DbV4ld8s.js.map → Breadcrumbs-VzOM2nBU.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-CjeF1Agb.js → Button-BNzCI47m.js} +2 -2
- package/dist/{Button-CjeF1Agb.js.map → Button-BNzCI47m.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ButtonLink-BSReBbc3.js → ButtonLink-PlW08u41.js} +2 -2
- package/dist/{ButtonLink-BSReBbc3.js.map → ButtonLink-PlW08u41.js.map} +1 -1
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-CnOsM7-u.js → ButtonToggle-DBGc7dIn.js} +2 -2
- package/dist/{ButtonToggle-CnOsM7-u.js.map → ButtonToggle-DBGc7dIn.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-DqQczZgw.js → Calendar-CekTYzdT.js} +8 -3
- package/dist/Calendar-CekTYzdT.js.map +1 -0
- package/dist/{Calendar-B6DqiqoX.js → Calendar-MRUB0XU7.js} +2 -2
- package/dist/Calendar-MRUB0XU7.js.map +1 -0
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-sgpRzk6a.js → Checkbox-C3rtd-Xe.js} +4 -4
- package/dist/{Checkbox-sgpRzk6a.js.map → Checkbox-C3rtd-Xe.js.map} +1 -1
- package/dist/{Checkbox-BkjA8p3F.js → Checkbox-zz9TyZWn.js} +2 -2
- package/dist/{Checkbox-BkjA8p3F.js.map → Checkbox-zz9TyZWn.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-DvmMbb5g.js → Chip-CxgryK86.js} +3 -3
- package/dist/{Chip-DvmMbb5g.js.map → Chip-CxgryK86.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-DUTfew48.js → DataTable-BpqLvU92.js} +23 -9
- package/dist/{DataTable-DUTfew48.js.map → DataTable-BpqLvU92.js.map} +1 -1
- package/dist/{DateFieldRange-CjjqTRNu.js → DateFieldRange-CP7QgS6P.js} +5 -5
- package/dist/{DateFieldRange-CjjqTRNu.js.map → DateFieldRange-CP7QgS6P.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-dSrWge6Y.js → DateFieldSingle-CgMPTi1v.js} +5 -5
- package/dist/{DateFieldSingle-dSrWge6Y.js.map → DateFieldSingle-CgMPTi1v.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-CuYYEkOz.js → DateFieldYearless-DYjvqxRb.js} +4 -4
- package/dist/{DateFieldYearless-CuYYEkOz.js.map → DateFieldYearless-DYjvqxRb.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-CHj9OXZK.js → DateFieldYearlessRange-lQdJGOaS.js} +4 -4
- package/dist/DateFieldYearlessRange-lQdJGOaS.js.map +1 -0
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-DXzW04I1.js → DaysOfTheWeek-Ci-SKebP.js} +3 -3
- package/dist/{DaysOfTheWeek-DXzW04I1.js.map → DaysOfTheWeek-Ci-SKebP.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-Xb49PJ-r.js → Details-DkteVZbk.js} +2 -2
- package/dist/{Details-Xb49PJ-r.js.map → Details-DkteVZbk.js.map} +1 -1
- package/dist/Details.js +1 -1
- package/dist/{Dialog-l0UzKEU0.js → Dialog-BxulNN8n.js} +22 -22
- package/dist/{Dialog-l0UzKEU0.js.map → Dialog-BxulNN8n.js.map} +1 -1
- package/dist/Dialog.css +32 -31
- package/dist/Dialog.js +1 -1
- package/dist/{DialogCancelButton-CIGGMaOE.js → DialogCancelButton-DmSUPuCR.js} +2 -2
- package/dist/{DialogCancelButton-CIGGMaOE.js.map → DialogCancelButton-DmSUPuCR.js.map} +1 -1
- package/dist/Dnd.js +2 -2
- package/dist/{DndHandleButton-B_Geiaeb.js → DndHandleButton-Ck5nc8w2.js} +2 -2
- package/dist/{DndHandleButton-B_Geiaeb.js.map → DndHandleButton-Ck5nc8w2.js.map} +1 -1
- package/dist/DndSort.js +2 -2
- package/dist/{Drawer-DaE-1UgB.js → Drawer-_spmOgwH.js} +5 -5
- package/dist/{Drawer-DaE-1UgB.js.map → Drawer-_spmOgwH.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-2Qt5-k2B.js → EditCard-ZpF032WP.js} +4 -4
- package/dist/{EditCard-2Qt5-k2B.js.map → EditCard-ZpF032WP.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-BgVl8hnF.js → FieldLabel-Cm5A1Jcx.js} +3 -3
- package/dist/{FieldLabel-BgVl8hnF.js.map → FieldLabel-Cm5A1Jcx.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FilterBar-CryC93pB.js → FilterBar-CvyMubuw.js} +29 -8
- package/dist/FilterBar-CvyMubuw.js.map +1 -0
- package/dist/FilterBar.js +1 -1
- package/dist/Icon-B4uCvMU9.js +107 -0
- package/dist/Icon-B4uCvMU9.js.map +1 -0
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-Bc0nDHzb.js → InputMask-CX6XiOOm.js} +3 -3
- package/dist/{InputMask-Bc0nDHzb.js.map → InputMask-CX6XiOOm.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{InteractiveCard-CyUR_VLW.js → InteractiveCard-C0g5PxB6.js} +5 -2
- package/dist/InteractiveCard-C0g5PxB6.js.map +1 -0
- package/dist/InteractiveCard.js +1 -1
- package/dist/{Link-DI4eVVdI.js → Link-C7dtI5K6.js} +2 -2
- package/dist/{Link-DI4eVVdI.js.map → Link-C7dtI5K6.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/LinkButton-C0wps8r1.js.map +1 -1
- package/dist/{ListView-Blmts4nT.js → ListView-DpveXOsN.js} +2 -2
- package/dist/{ListView-Blmts4nT.js.map → ListView-DpveXOsN.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-DkzL11gb.js → Listbox-Cdwaofd2.js} +21 -21
- package/dist/Listbox-Cdwaofd2.js.map +1 -0
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-BAya9Qnd.js → Menu-DmEXQLXt.js} +3 -3
- package/dist/{Menu-BAya9Qnd.js.map → Menu-DmEXQLXt.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{MenuFooter-BZTsAaOz.js → MenuFooter-Ck9L599M.js} +2 -2
- package/dist/{MenuFooter-BZTsAaOz.js.map → MenuFooter-Ck9L599M.js.map} +1 -1
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-CSIU43BR.js → MultiSelectFieldSync-BHST0FEe.js} +14 -12
- package/dist/MultiSelectFieldSync-BHST0FEe.js.map +1 -0
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-CkjXjnXp.js → MultiSelectMenuSync-BaKxbMLu.js} +24 -11
- package/dist/MultiSelectMenuSync-BaKxbMLu.js.map +1 -0
- package/dist/{NumberField-Dp5tJkMC.js → NumberField-CjC6KHKl.js} +5 -5
- package/dist/NumberField-CjC6KHKl.js.map +1 -0
- package/dist/NumberField.js +1 -1
- package/dist/Overflow.js.map +1 -1
- package/dist/{Page-gMaR1lF5.js → Page-BreBQ3pG.js} +12 -12
- package/dist/{Page-gMaR1lF5.js.map → Page-BreBQ3pG.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Pagination-CfCUqyzB.js → Pagination-CmqAut6y.js} +5 -5
- package/dist/{Pagination-CfCUqyzB.js.map → Pagination-CmqAut6y.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-80nFjp83.js → Popover-CdRuNv3C.js} +3 -3
- package/dist/{Popover-80nFjp83.js.map → Popover-CdRuNv3C.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-3TSTcvbU.js → ProgressBar-065vjsQ0.js} +3 -3
- package/dist/{ProgressBar-3TSTcvbU.js.map → ProgressBar-065vjsQ0.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-Dk7dH0oM.js → Radio-D9w_-JYw.js} +2 -2
- package/dist/{Radio-Dk7dH0oM.js.map → Radio-D9w_-JYw.js.map} +1 -1
- package/dist/{Radio-B30z0TdG.js → Radio-dyLcVmUw.js} +4 -4
- package/dist/{Radio-B30z0TdG.js.map → Radio-dyLcVmUw.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-DLIh_mzJ.js → RichTextEditor-byoMZaJy.js} +14172 -7454
- package/dist/RichTextEditor-byoMZaJy.js.map +1 -0
- package/dist/RichTextEditor.css +42 -40
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-Cd_cOR1F.js → SavedFiltersButton-DlzfvW03.js} +10 -10
- package/dist/{SavedFiltersButton-Cd_cOR1F.js.map → SavedFiltersButton-DlzfvW03.js.map} +1 -1
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SearchField-BfOMhmIc.js → SearchField-B7fIOJf-.js} +2 -2
- package/dist/{SearchField-BfOMhmIc.js.map → SearchField-B7fIOJf-.js.map} +1 -1
- package/dist/{SearchField-D9ZMOcbo.js → SearchField-X4B7f23E.js} +3 -3
- package/dist/{SearchField-D9ZMOcbo.js.map → SearchField-X4B7f23E.js.map} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-fBjqazBR.js → SegmentedControl-Be6jCglV.js} +2 -2
- package/dist/{SegmentedControl-fBjqazBR.js.map → SegmentedControl-Be6jCglV.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-BXXKD4Iy.js → SelectCard-CMSG_ba1.js} +4 -4
- package/dist/{SelectCard-BXXKD4Iy.js.map → SelectCard-CMSG_ba1.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-Dfdv0DQp.js → SelectFieldLabel-dKVBaki2.js} +2 -2
- package/dist/{SelectFieldLabel-Dfdv0DQp.js.map → SelectFieldLabel-dKVBaki2.js.map} +1 -1
- package/dist/{SelectFieldSync-BQIbfdka.js → SelectFieldSync-BqL3zlbZ.js} +8 -8
- package/dist/SelectFieldSync-BqL3zlbZ.js.map +1 -0
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-nFfKdEiV.js → SelectMenuSync-BRvi9YTw.js} +6 -6
- package/dist/{SelectMenuSync-nFfKdEiV.js.map → SelectMenuSync-BRvi9YTw.js.map} +1 -1
- package/dist/{SelectOptions-BjJ0JoQX.js → SelectOptions-LUHWLYgJ.js} +2 -2
- package/dist/{SelectOptions-BjJ0JoQX.js.map → SelectOptions-LUHWLYgJ.js.map} +1 -1
- package/dist/{SelectTrigger-BgzPogSC.js → SelectTrigger-APxYfL3V.js} +3 -3
- package/dist/SelectTrigger-APxYfL3V.js.map +1 -0
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-CnyyaWl-.js → SelectTriggerBase-lYieONTb.js} +4 -4
- package/dist/{SelectTriggerBase-CnyyaWl-.js.map → SelectTriggerBase-lYieONTb.js.map} +1 -1
- package/dist/{SideNav-BFkruKa4.js → SideNav-DoxX8Vi-.js} +6 -3
- package/dist/{SideNav-BFkruKa4.js.map → SideNav-DoxX8Vi-.js.map} +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/{Stepper-Bp5XkY2q.js → Stepper-CvaR7OoT.js} +3 -3
- package/dist/{Stepper-Bp5XkY2q.js.map → Stepper-CvaR7OoT.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-BlIZayq6.js → Switch-Bm3qqjd6.js} +3 -3
- package/dist/{Switch-BlIZayq6.js.map → Switch-Bm3qqjd6.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-FOIali7o.js → Tab-Cy4G562A.js} +2 -2
- package/dist/{Tab-FOIali7o.js.map → Tab-Cy4G562A.js.map} +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-LXIB1J3C.js → Text-mDcQHC2U.js} +2 -2
- package/dist/{Text-LXIB1J3C.js.map → Text-mDcQHC2U.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-Syedf1LW.js → TextField-CUVsDfWo.js} +3 -3
- package/dist/{TextField-Syedf1LW.js.map → TextField-CUVsDfWo.js.map} +1 -1
- package/dist/{TextField-fE3_0jQJ.js → TextField-WQTlqKso.js} +2 -2
- package/dist/TextField-WQTlqKso.js.map +1 -0
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CIAHsoWa.js → Textarea-CW3KGuB9.js} +3 -3
- package/dist/{Textarea-CIAHsoWa.js.map → Textarea-CW3KGuB9.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{TimeField-B3yhtYZm.js → TimeField-JA3gXyS7.js} +5 -5
- package/dist/{TimeField-B3yhtYZm.js.map → TimeField-JA3gXyS7.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-BM998ekj.js → Toaster-DMZng3Im.js} +4 -4
- package/dist/{Toaster-BM998ekj.js.map → Toaster-DMZng3Im.js.map} +1 -1
- package/dist/{Toaster-DDKuhPXX.js → Toaster-fPcgIF7Q.js} +2 -2
- package/dist/{Toaster-DDKuhPXX.js.map → Toaster-fPcgIF7Q.js.map} +1 -1
- package/dist/{Toolbar-DMUTGhNa.js → Toolbar-BfGcDXgC.js} +8 -8
- package/dist/{Toolbar-DMUTGhNa.js.map → Toolbar-BfGcDXgC.js.map} +1 -1
- package/dist/{Toolbar-DD1ieJNQ.js → Toolbar-Dlu39v69.js} +6 -6
- package/dist/{Toolbar-DD1ieJNQ.js.map → Toolbar-Dlu39v69.js.map} +1 -1
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-DsaG1BWZ.js → ToolbarButtonToggle-3xbnm1Qr.js} +7 -4
- package/dist/ToolbarButtonToggle-3xbnm1Qr.js.map +1 -0
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-C-mUoPrS.js → TreeSelectFieldSync-CdtC8d3Q.js} +6 -6
- package/dist/{TreeSelectFieldSync-C-mUoPrS.js.map → TreeSelectFieldSync-CdtC8d3Q.js.map} +1 -1
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-BWVk3vWK.js → TreeSelectMenuSync-CPuQWUNU.js} +5 -5
- package/dist/{TreeSelectMenuSync-BWVk3vWK.js.map → TreeSelectMenuSync-CPuQWUNU.js.map} +1 -1
- package/dist/{TypeaheadTextField-DX3MZTgl.js → TypeaheadTextField-BkLECKZY.js} +3 -3
- package/dist/TypeaheadTextField-BkLECKZY.js.map +1 -0
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-KRKpi1-s.js → YearlessDateInputWithPicker-Bd8JnTaZ.js} +3 -3
- package/dist/{YearlessDateInputWithPicker-KRKpi1-s.js.map → YearlessDateInputWithPicker-Bd8JnTaZ.js.map} +1 -1
- package/dist/beta.js +17 -17
- package/dist/{useToggleSelection-B8OnmX8Q.js → bulkActionTypes-DPC382hi.js} +8 -3
- package/dist/bulkActionTypes-DPC382hi.js.map +1 -0
- package/dist/{filter-state-6m-E0d1i.js → filter-state-BdfBSXYO.js} +346 -68
- package/dist/filter-state-BdfBSXYO.js.map +1 -0
- package/dist/{index-BxdhXRLp.js → index-B7BIlotN.js} +289 -1074
- package/dist/index-B7BIlotN.js.map +1 -0
- package/dist/{index-Bg9IAYMO.js → index-SZMmvI3D.js} +2 -2
- package/dist/{index-Bg9IAYMO.js.map → index-SZMmvI3D.js.map} +1 -1
- package/dist/index.js +55 -55
- package/dist/src/beta/components/Calendar/Calendar.d.ts +19 -0
- package/dist/src/beta/components/Calendar/Calendar.figma.d.ts +1 -0
- package/dist/src/beta/components/FilterBar/FilterSearchField.d.ts +28 -0
- package/dist/src/beta/components/FilterBar/index.d.ts +1 -1
- package/dist/src/beta/components/FilterBar/internal/adapters/search.d.ts +3 -0
- package/dist/src/beta/components/FilterBar/internal/adapters/types.d.ts +2 -1
- package/dist/src/beta/components/FilterBar/internal/types.d.ts +72 -6
- package/dist/src/beta/components/FilterBar/internal/utils/dateConstraints.d.ts +38 -0
- package/dist/src/beta/components/FilterBar/internal/utils/test.d.ts +2 -1
- package/dist/src/beta/components/InteractiveCard/InteractiveCard.figma.d.ts +1 -0
- package/dist/src/beta/components/InteractiveCard/types.d.ts +3 -3
- package/dist/src/beta/components/RichTextEditor/RichTextEditor.d.ts +4 -2
- package/dist/src/beta/components/RichTextEditor/RichTextEditor.figma.d.ts +1 -0
- package/dist/src/beta/components/RichTextEditor/internal/RichTextEditorProvider.d.ts +1 -1
- package/dist/src/beta/components/RichTextEditor/internal/extensions/SafeImageExtension.d.ts +13 -0
- package/dist/src/beta/components/RichTextEditor/internal/useRichTextEditor.d.ts +2 -2
- package/dist/src/beta/components/RichTextEditor/types.d.ts +42 -1
- package/dist/src/beta/components/Table/DataTable/DataTable.figma.d.ts +1 -0
- package/dist/src/beta/components/Toolbar/Toolbar.figma.d.ts +1 -0
- package/dist/src/beta/components/TypeaheadTextField/TypeaheadTextField.d.ts +19 -0
- package/dist/src/components/AiMark/AiMark.figma.d.ts +1 -0
- package/dist/src/components/ButtonLink/ButtonLink.figma.d.ts +1 -0
- package/dist/src/components/ButtonToggle/ButtonToggle.figma.d.ts +1 -0
- package/dist/src/components/Combobox/Combobox.d.ts +8 -4
- package/dist/src/components/Combobox/ComboboxSelect.d.ts +2 -2
- package/dist/src/components/DateFieldRange/DateFieldRange.d.ts +21 -0
- package/dist/src/components/DateFieldRange/DateFieldRange.figma.d.ts +1 -0
- package/dist/src/components/DateFieldSingle/DateFieldSingle.d.ts +20 -0
- package/dist/src/components/DateFieldSingle/DateFieldSingle.figma.d.ts +1 -0
- package/dist/src/components/DateFieldYearless/DateFieldYearless.figma.d.ts +1 -0
- package/dist/src/components/DateFieldYearlessRange/DateFieldYearlessRange.d.ts +19 -0
- package/dist/src/components/DateFieldYearlessRange/DateFieldYearlessRange.figma.d.ts +1 -0
- package/dist/src/components/DaysOfTheWeek/DaysOfTheWeek.figma.d.ts +1 -0
- package/dist/src/components/Details/Details.figma.d.ts +1 -0
- package/dist/src/components/Dialog/Dialog.figma.d.ts +1 -0
- package/dist/src/components/Dnd/Dnd.figma.d.ts +1 -0
- package/dist/src/components/DndSort/DndSort.figma.d.ts +1 -0
- package/dist/src/components/Drawer/Drawer.figma.d.ts +1 -0
- package/dist/src/components/FieldLabel/FieldLabel.d.ts +36 -0
- package/dist/src/components/Layout/Layout.figma.d.ts +1 -0
- package/dist/src/components/LinkButton/LinkButton.d.ts +13 -0
- package/dist/src/components/LinkButton/LinkButton.figma.d.ts +1 -0
- package/dist/src/components/ListView/ListView.figma.d.ts +1 -0
- package/dist/src/components/Listbox/Listbox.d.ts +3 -3
- package/dist/src/components/Listbox/Listbox.figma.d.ts +1 -0
- package/dist/src/components/Menu/Menu.figma.d.ts +1 -0
- package/dist/src/components/MultiSelectField/MultiSelectField.figma.d.ts +1 -0
- package/dist/src/components/MultiSelectField/types.d.ts +3 -0
- package/dist/src/components/MultiSelectMenu/MultiSelectMenu.figma.d.ts +1 -0
- package/dist/src/components/MultiSelectMenu/types.d.ts +5 -0
- package/dist/src/components/NumberField/NumberField.d.ts +21 -0
- package/dist/src/components/NumberField/NumberField.figma.d.ts +1 -0
- package/dist/src/components/Overflow/Overflow.d.ts +22 -0
- package/dist/src/components/Overflow/Overflow.figma.d.ts +1 -0
- package/dist/src/components/Page/Page.figma.d.ts +1 -0
- package/dist/src/components/Pagination/Pagination.figma.d.ts +1 -0
- package/dist/src/components/Popover/Popover.figma.d.ts +1 -0
- package/dist/src/components/SearchField/SearchField.figma.d.ts +1 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.figma.d.ts +1 -0
- package/dist/src/components/SelectCard/SelectCard.figma.d.ts +1 -0
- package/dist/src/components/SelectField/SelectField.figma.d.ts +1 -0
- package/dist/src/components/SelectMenu/SelectMenu.figma.d.ts +1 -0
- package/dist/src/components/SelectTrigger/SelectTrigger.d.ts +19 -0
- package/dist/src/components/SideNav/SideNav.figma.d.ts +1 -0
- package/dist/src/components/Skeleton/Skeleton.figma.d.ts +1 -0
- package/dist/src/components/Stepper/Stepper.figma.d.ts +1 -0
- package/dist/src/components/Tab/Tab.figma.d.ts +1 -0
- package/dist/src/components/Text/Text.figma.d.ts +1 -0
- package/dist/src/components/TextField/TextField.d.ts +14 -0
- package/dist/src/components/TextField/TextField.figma.d.ts +1 -0
- package/dist/src/components/Textarea/Textarea.figma.d.ts +1 -0
- package/dist/src/components/TimeField/TimeField.figma.d.ts +1 -0
- package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +4 -0
- package/dist/src/internal/types/bulkActionTypes.d.ts +27 -2
- package/dist/src/internal/utils/index.d.ts +1 -0
- package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +12 -0
- package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +12 -0
- package/dist/{stripInlineMarkdown-mQ10Z5JU.js → stripInlineMarkdown-BZzgG-Zm.js} +2 -2
- package/dist/{stripInlineMarkdown-mQ10Z5JU.js.map → stripInlineMarkdown-BZzgG-Zm.js.map} +1 -1
- package/dist/{syncFilterUtils-DqvgB5sn.js → syncFilterUtils-Cec5y3hY.js} +5 -5
- package/dist/{syncFilterUtils-DqvgB5sn.js.map → syncFilterUtils-Cec5y3hY.js.map} +1 -1
- package/dist/{treeSync-BaEYV24N.js → treeSync-oC-VZpP0.js} +4 -4
- package/dist/{treeSync-BaEYV24N.js.map → treeSync-oC-VZpP0.js.map} +1 -1
- package/dist/{useAdaptiveView-BO9xU7Ym.js → useAdaptiveView-AvsDkChF.js} +9 -9
- package/dist/{useAdaptiveView-BO9xU7Ym.js.map → useAdaptiveView-AvsDkChF.js.map} +1 -1
- package/dist/useAdaptiveView.css +6 -4
- package/dist/{useDrilldown-22X8jHs_.js → useDrilldown-PmrZ4BXn.js} +4 -4
- package/dist/{useDrilldown-22X8jHs_.js.map → useDrilldown-PmrZ4BXn.js.map} +1 -1
- package/dist/{useInfiniteCombobox-COnx-GhH.js → useInfiniteCombobox-C78WQZx4.js} +9 -7
- package/dist/useInfiniteCombobox-C78WQZx4.js.map +1 -0
- package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-BUxEDMEG.js} +2 -2
- package/dist/{useInitialFocus-BIvXK1Rp.js.map → useInitialFocus-BUxEDMEG.js.map} +1 -1
- package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
- package/dist/{usePopoverTransitionStates-B1opfxxn.js.map → usePopoverTransitionStates-CDXCdyKa.js.map} +1 -1
- package/package.json +17 -16
- package/dist/AnvilProvider-BQsp0VPq.js.map +0 -1
- package/dist/Calendar-B6DqiqoX.js.map +0 -1
- package/dist/Calendar-DqQczZgw.js.map +0 -1
- package/dist/DateFieldYearlessRange-CHj9OXZK.js.map +0 -1
- package/dist/FilterBar-CryC93pB.js.map +0 -1
- package/dist/Icon-BEwHECSM.js +0 -56
- package/dist/Icon-BEwHECSM.js.map +0 -1
- package/dist/InteractiveCard-CyUR_VLW.js.map +0 -1
- package/dist/Listbox-DkzL11gb.js.map +0 -1
- package/dist/MultiSelectFieldSync-CSIU43BR.js.map +0 -1
- package/dist/MultiSelectMenuSync-CkjXjnXp.js.map +0 -1
- package/dist/NumberField-Dp5tJkMC.js.map +0 -1
- package/dist/RichTextEditor-DLIh_mzJ.js.map +0 -1
- package/dist/SelectFieldSync-BQIbfdka.js.map +0 -1
- package/dist/SelectTrigger-BgzPogSC.js.map +0 -1
- package/dist/TextField-fE3_0jQJ.js.map +0 -1
- package/dist/ToolbarButtonToggle-DsaG1BWZ.js.map +0 -1
- package/dist/TypeaheadTextField-DX3MZTgl.js.map +0 -1
- package/dist/filter-state-6m-E0d1i.js.map +0 -1
- package/dist/index-BxdhXRLp.js.map +0 -1
- package/dist/useInfiniteCombobox-COnx-GhH.js.map +0 -1
- package/dist/useToggleSelection-B8OnmX8Q.js.map +0 -1
|
@@ -60,6 +60,25 @@ export type TypeaheadTextFieldProps<T = string> = DistributiveOmit<TextFieldProp
|
|
|
60
60
|
*/
|
|
61
61
|
openOnEmptyFocus?: boolean;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* TypeaheadTextField component — a text input that shows an async
|
|
65
|
+
* suggestion menu as the user types.
|
|
66
|
+
*
|
|
67
|
+
* Features:
|
|
68
|
+
* - `loadOptions` fetches suggestions (sync or async) for the current input
|
|
69
|
+
* - Debounced fetching via `debounceMs`
|
|
70
|
+
* - Custom suggestion rendering via `renderOption`
|
|
71
|
+
* - Configurable open-on-focus behavior, including for an empty input
|
|
72
|
+
* - Loading and no-suggestions states with customizable labels
|
|
73
|
+
* - All standard TextField props (label, hint, error, prefix, etc.)
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* <TypeaheadTextField
|
|
77
|
+
* label="City"
|
|
78
|
+
* loadOptions={(search) => fetchCities(search)}
|
|
79
|
+
* onSelectOption={(option) => console.log(option)}
|
|
80
|
+
* />
|
|
81
|
+
*/
|
|
63
82
|
export declare function TypeaheadTextField<T = string>({ value: valueProp, defaultValue, onChange, loadOptions, onSelectOption, debounceMs, noSuggestionsLabel, loadingLabel, renderOption, openOnFocus, openOnEmptyFocus, onFocus, onBlur, onKeyDown, onClick, disabled, readOnly, loading: loadingProp, ...textFieldProps }: TypeaheadTextFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
64
83
|
export declare namespace TypeaheadTextField {
|
|
65
84
|
var displayName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -54,8 +54,10 @@ export declare const Combobox: (<Item>(props: ComboboxProps<Item>) => import("re
|
|
|
54
54
|
* - Layout utility props for positioning and spacing
|
|
55
55
|
* - Automatic tracking ID generation for analytics
|
|
56
56
|
*
|
|
57
|
+
* @deprecated Use the standalone `ComboboxSelect` export instead of `Combobox.Select`.
|
|
58
|
+
*
|
|
57
59
|
* @example
|
|
58
|
-
* <
|
|
60
|
+
* <ComboboxSelect
|
|
59
61
|
* items={items}
|
|
60
62
|
* itemToString={(item) => item.name}
|
|
61
63
|
* onChange={setSelectedItem}
|
|
@@ -72,7 +74,7 @@ export declare const Combobox: (<Item>(props: ComboboxProps<Item>) => import("re
|
|
|
72
74
|
* </Combobox.List>
|
|
73
75
|
* )}
|
|
74
76
|
* </Combobox.Content>
|
|
75
|
-
* </
|
|
77
|
+
* </ComboboxSelect>
|
|
76
78
|
*/
|
|
77
79
|
Select: <Item>(props: import('./ComboboxTypes').ComboboxSelectProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
78
80
|
/**
|
|
@@ -226,8 +228,10 @@ export declare const ComboboxElement: (<Item>(props: ComboboxProps<Item>) => imp
|
|
|
226
228
|
* - Layout utility props for positioning and spacing
|
|
227
229
|
* - Automatic tracking ID generation for analytics
|
|
228
230
|
*
|
|
231
|
+
* @deprecated Use the standalone `ComboboxSelect` export instead of `Combobox.Select`.
|
|
232
|
+
*
|
|
229
233
|
* @example
|
|
230
|
-
* <
|
|
234
|
+
* <ComboboxSelect
|
|
231
235
|
* items={items}
|
|
232
236
|
* itemToString={(item) => item.name}
|
|
233
237
|
* onChange={setSelectedItem}
|
|
@@ -244,7 +248,7 @@ export declare const ComboboxElement: (<Item>(props: ComboboxProps<Item>) => imp
|
|
|
244
248
|
* </Combobox.List>
|
|
245
249
|
* )}
|
|
246
250
|
* </Combobox.Content>
|
|
247
|
-
* </
|
|
251
|
+
* </ComboboxSelect>
|
|
248
252
|
*/
|
|
249
253
|
Select: <Item>(props: import('./ComboboxTypes').ComboboxSelectProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
250
254
|
/**
|
|
@@ -37,7 +37,7 @@ export declare const SelectSingle: <Item>(props: SelectSingleProps<Item>) => imp
|
|
|
37
37
|
* - Automatic tracking ID generation for analytics
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* <
|
|
40
|
+
* <ComboboxSelect
|
|
41
41
|
* items={items}
|
|
42
42
|
* itemToString={(item) => item.name}
|
|
43
43
|
* onChange={setSelectedItem}
|
|
@@ -54,6 +54,6 @@ export declare const SelectSingle: <Item>(props: SelectSingleProps<Item>) => imp
|
|
|
54
54
|
* </Combobox.List>
|
|
55
55
|
* )}
|
|
56
56
|
* </Combobox.Content>
|
|
57
|
-
* </
|
|
57
|
+
* </ComboboxSelect>
|
|
58
58
|
*/
|
|
59
59
|
export declare const ComboboxSelect: <Item>(props: ComboboxSelectProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -62,6 +62,27 @@ export type DateFieldRangeProps = Omit<MaskedDateRangeInputProps, "onChange" | "
|
|
|
62
62
|
*/
|
|
63
63
|
timezone?: IanaZone;
|
|
64
64
|
} & DataTrackingId;
|
|
65
|
+
/**
|
|
66
|
+
* DateFieldRange component for entering a start and end date via a masked
|
|
67
|
+
* text input, with an optional popover calendar for picking the range
|
|
68
|
+
* visually.
|
|
69
|
+
*
|
|
70
|
+
* Features:
|
|
71
|
+
* - Masked start/end date input with configurable mm/dd/yyyy or dd/mm/yyyy mode
|
|
72
|
+
* - Optional popover range calendar
|
|
73
|
+
* - Min/max date and unavailable-date/day-of-week constraints applied to both ends
|
|
74
|
+
* - Reports input validity and range validity separately via `onChange`
|
|
75
|
+
* - Full keyboard support (arrow-down opens the calendar from the input)
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* <DateFieldRange
|
|
79
|
+
* label="Trip dates"
|
|
80
|
+
* value={{ startDate: "2025-07-02", endDate: "2025-07-10" }}
|
|
81
|
+
* onChange={({ startDate, endDate, isDateRangeValid }) =>
|
|
82
|
+
* console.log(startDate, endDate, isDateRangeValid)
|
|
83
|
+
* }
|
|
84
|
+
* />
|
|
85
|
+
*/
|
|
65
86
|
export declare const DateFieldRange: {
|
|
66
87
|
(props: DateFieldRangeProps): import("react/jsx-runtime").JSX.Element;
|
|
67
88
|
displayName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -60,6 +60,26 @@ export type DateFieldSingleChange = {
|
|
|
60
60
|
isDateValid: boolean;
|
|
61
61
|
};
|
|
62
62
|
export type DateFieldSingleChangeHandler = (change: DateFieldSingleChange) => void;
|
|
63
|
+
/**
|
|
64
|
+
* DateFieldSingle component for entering a single date via a masked text
|
|
65
|
+
* input, with an optional popover calendar for picking the date visually.
|
|
66
|
+
*
|
|
67
|
+
* Features:
|
|
68
|
+
* - Masked date input with configurable mm/dd/yyyy or dd/mm/yyyy mode
|
|
69
|
+
* - Optional popover calendar (disable with `disableCalendar`)
|
|
70
|
+
* - Min/max date and unavailable-date/day-of-week constraints
|
|
71
|
+
* - Timezone-aware "Today" navigation via `timezone`
|
|
72
|
+
* - Reports input validity and constraint validity separately via `onChange`
|
|
73
|
+
* - Full keyboard support (arrow-down opens the calendar from the input)
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* <DateFieldSingle
|
|
77
|
+
* label="Appointment date"
|
|
78
|
+
* value="2025-07-02"
|
|
79
|
+
* onChange={({ date, isDateValid }) => console.log(date, isDateValid)}
|
|
80
|
+
* minDate="2025-01-01"
|
|
81
|
+
* />
|
|
82
|
+
*/
|
|
63
83
|
export declare const DateFieldSingle: {
|
|
64
84
|
(props: DateFieldSingleProps): import("react/jsx-runtime").JSX.Element;
|
|
65
85
|
displayName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -74,4 +74,23 @@ export type DateFieldYearlessRangeProps = {
|
|
|
74
74
|
legendProps?: Omit<FieldLabelProps, "el">;
|
|
75
75
|
moreInfo?: FieldLabelProps["moreInfo"];
|
|
76
76
|
} & LayoutUtilProps;
|
|
77
|
+
/**
|
|
78
|
+
* DateFieldYearlessRange component for entering a start and end month/day
|
|
79
|
+
* pair — a date range with no year, e.g. recurring events or anniversaries.
|
|
80
|
+
*
|
|
81
|
+
* Features:
|
|
82
|
+
* - Two masked month/day inputs (mm/dd or dd/mm mode) with a picker toggle
|
|
83
|
+
* - Separate `startLabel`/`endLabel` under a shared field-group `label`
|
|
84
|
+
* - Optional error, warning, hint, and description messaging
|
|
85
|
+
* - `disablePicker` and `disableHint` to trim the UI down when not needed
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* <DateFieldYearlessRange
|
|
89
|
+
* label="Recurring event"
|
|
90
|
+
* startLabel="Start"
|
|
91
|
+
* endLabel="End"
|
|
92
|
+
* value={{ startDate: { month: 7, day: 2 }, endDate: { month: 7, day: 10 } }}
|
|
93
|
+
* onChange={(change) => console.log(change)}
|
|
94
|
+
* />
|
|
95
|
+
*/
|
|
77
96
|
export declare const DateFieldYearlessRange: (props: DateFieldYearlessRangeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,42 @@ type FieldLabelOwnProps<E extends ElementType = ElementType> = AiMarkWithTooltip
|
|
|
27
27
|
* Props for the FieldLabel component.
|
|
28
28
|
*/
|
|
29
29
|
export type FieldLabelProps<E extends ElementType = ElementType> = FieldLabelOwnProps<E> & Omit<IntrinsicAttributes<E>, keyof FieldLabelOwnProps>;
|
|
30
|
+
/**
|
|
31
|
+
* FieldLabel component for form field labels with optional required indicator and help tooltip.
|
|
32
|
+
*
|
|
33
|
+
* Features:
|
|
34
|
+
* - Accessible form label with proper semantic HTML
|
|
35
|
+
* - Optional required field indicator with red asterisk
|
|
36
|
+
* - Help tooltip with info icon for additional context
|
|
37
|
+
* - Screen reader support for required field announcement
|
|
38
|
+
* - Keyboard-accessible info icon button for additional field context
|
|
39
|
+
* - Flexible content support for label text and help information
|
|
40
|
+
* - Proper ARIA attributes and semantic structure
|
|
41
|
+
* - Responsive design with consistent typography
|
|
42
|
+
* - Polymorphic element support for different HTML elements
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* <FieldLabel htmlFor="email" required>
|
|
46
|
+
* Email Address
|
|
47
|
+
* </FieldLabel>
|
|
48
|
+
* <input id="email" type="email" />
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* <FieldLabel
|
|
52
|
+
* el="label"
|
|
53
|
+
* htmlFor="password"
|
|
54
|
+
* required
|
|
55
|
+
* moreInfo="Password must be at least 8 characters long"
|
|
56
|
+
* >
|
|
57
|
+
* Password
|
|
58
|
+
* </FieldLabel>
|
|
59
|
+
* <input id="password" type="password" />
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* <FieldLabel el="legend" required>
|
|
63
|
+
* Form Section
|
|
64
|
+
* </FieldLabel>
|
|
65
|
+
*/
|
|
30
66
|
export declare const FieldLabel: <E extends ElementType = "label">(props: FieldLabelProps<E> & {
|
|
31
67
|
ref?: React.Ref<any>;
|
|
32
68
|
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -28,4 +28,17 @@ export type LinkButtonProps = Omit<ComponentPropsWithoutRef<"button">, "type" |
|
|
|
28
28
|
*/
|
|
29
29
|
ghost?: false;
|
|
30
30
|
}) & DataTrackingId;
|
|
31
|
+
/**
|
|
32
|
+
* LinkButton component — a `<button>` styled to look like a text link,
|
|
33
|
+
* for triggering actions (not navigation; use `Link` for navigation).
|
|
34
|
+
*
|
|
35
|
+
* Features:
|
|
36
|
+
* - Primary appearance with an optional quieter `ghost` variant
|
|
37
|
+
* - Secondary appearance (cannot be combined with `ghost`)
|
|
38
|
+
* - Supports layout utility props for positioning and spacing
|
|
39
|
+
* - Automatic tracking ID generation for analytics
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <LinkButton onClick={() => console.log('clicked')}>Learn more</LinkButton>
|
|
43
|
+
*/
|
|
31
44
|
export declare const LinkButton: import('react').ForwardRefExoticComponent<LinkButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -42,7 +42,7 @@ type MultipleWithoutItems = {
|
|
|
42
42
|
/** Default selected items (uncontrolled) */
|
|
43
43
|
defaultSelected?: string[];
|
|
44
44
|
/** Callback when selection changes */
|
|
45
|
-
onSelectionChange?: (selected: string[]
|
|
45
|
+
onSelectionChange?: (selected: string[]) => void;
|
|
46
46
|
/** Items array - not allowed in this mode */
|
|
47
47
|
items?: never;
|
|
48
48
|
/** Child elements to render */
|
|
@@ -76,7 +76,7 @@ type SingleWithItems<T> = {
|
|
|
76
76
|
*/
|
|
77
77
|
type MultipleWithItems<T> = {
|
|
78
78
|
/** Selection mode for multiple item selection */
|
|
79
|
-
selectionMode
|
|
79
|
+
selectionMode: "multiple";
|
|
80
80
|
/** Auto-select on focus is not available in multiple mode */
|
|
81
81
|
disableAutoSelectOnFocus?: never;
|
|
82
82
|
/** Currently selected items (controlled) */
|
|
@@ -84,7 +84,7 @@ type MultipleWithItems<T> = {
|
|
|
84
84
|
/** Default selected items (uncontrolled) */
|
|
85
85
|
defaultSelected?: ListboxItemType<T>[];
|
|
86
86
|
/** Callback when selection changes */
|
|
87
|
-
onSelectionChange?: (selected: ListboxItemType<T>[]
|
|
87
|
+
onSelectionChange?: (selected: ListboxItemType<T>[]) => void;
|
|
88
88
|
/** Array of items to render */
|
|
89
89
|
items: ListboxItemType<T>[];
|
|
90
90
|
/** Optional render function for items */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -228,6 +228,9 @@ type MultiSelectFieldCommonProps = {
|
|
|
228
228
|
* While a `compute` promise is pending, the bulk row shows a loading state,
|
|
229
229
|
* all option rows are disabled, and stale resolutions are silently discarded.
|
|
230
230
|
*
|
|
231
|
+
* `checkState` may be a static value or a function of the current selection,
|
|
232
|
+
* so the row's checkbox can reflect how much of the set is selected.
|
|
233
|
+
*
|
|
231
234
|
* Select All and Select Filtered are mutually exclusive:
|
|
232
235
|
* - Select All is shown when the search input is empty.
|
|
233
236
|
* - Select Filtered (if provided) is shown when a search term is active.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -139,6 +139,11 @@ type MultiSelectMenuCommonProps = {
|
|
|
139
139
|
* `compute` is required when you want the action to participate in the
|
|
140
140
|
* confirmation draft. While a `compute` promise is pending, the menu shows
|
|
141
141
|
* a loading state, disables all options, and disables Apply.
|
|
142
|
+
*
|
|
143
|
+
* `checkState` may be a static value or a function of the current selection
|
|
144
|
+
* (the confirmation draft when confirmation is enabled, otherwise the
|
|
145
|
+
* committed value), so the row's checkbox can reflect how much of the set is
|
|
146
|
+
* selected.
|
|
142
147
|
*/
|
|
143
148
|
selectAll?: MultiSelectMenuBulkActionConfig;
|
|
144
149
|
/**
|
|
@@ -58,6 +58,27 @@ export type NumberFieldProps = Omit<ComponentPropsWithoutRef<"input">, "size" |
|
|
|
58
58
|
*/
|
|
59
59
|
isHighlighted?: boolean;
|
|
60
60
|
} & DataTrackingId;
|
|
61
|
+
/**
|
|
62
|
+
* NumberField component for entering numeric values, with optional
|
|
63
|
+
* increment/decrement stepper controls.
|
|
64
|
+
*
|
|
65
|
+
* Features:
|
|
66
|
+
* - Min/max value constraints and configurable `step`
|
|
67
|
+
* - Fraction-digit formatting via `minimumFractionDigits`/`maximumFractionDigits`
|
|
68
|
+
* - Optional `hideControls` to hide the +/- stepper buttons
|
|
69
|
+
* - Label, hint, description, error, and warning messaging
|
|
70
|
+
* - Loading state with spinner, and a highlighted-field variant
|
|
71
|
+
* - Optional prefix/suffix content
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* <NumberField
|
|
75
|
+
* label="Quantity"
|
|
76
|
+
* value={quantity}
|
|
77
|
+
* onChange={setQuantity}
|
|
78
|
+
* minValue={0}
|
|
79
|
+
* maxValue={99}
|
|
80
|
+
* />
|
|
81
|
+
*/
|
|
61
82
|
export declare const NumberField: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "defaultValue" | "prefix" | "inputMode" | "onFocus" | "onBlur" | "onChange" | "size" | "value" | "type"> & LayoutUtilProps & Pick<import('../../internal').LabelProps, "required" | "moreInfo"> & {
|
|
62
83
|
labelProps?: Omit<import('../../internal').LabelProps, "children" | "moreInfo" | "required" | "id" | "htmlFor"> & import('../..').AiMarkWithTooltipOrPopoverProps;
|
|
63
84
|
} & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -63,4 +63,26 @@ export type OverflowProps = ComponentPropsWithoutRef<"div"> & Omit<LayoutUtilPro
|
|
|
63
63
|
onCollapse?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
64
64
|
};
|
|
65
65
|
}) & DataTrackingId;
|
|
66
|
+
/**
|
|
67
|
+
* Overflow component for a scrollable container with edge shadow
|
|
68
|
+
* indicators, and optional truncate-with-expand/collapse behavior.
|
|
69
|
+
*
|
|
70
|
+
* Features:
|
|
71
|
+
* - Scrolls content that exceeds the configured `height`/`width`
|
|
72
|
+
* - Shows shadow indicators on whichever edges have more content to scroll to
|
|
73
|
+
* - Optional `truncate` mode (column direction only) with expand/collapse
|
|
74
|
+
* buttons and customizable button text
|
|
75
|
+
* - `contentRef` exposes the actual scrolling element, separate from the
|
|
76
|
+
* outer wrapper `ref`, for integrations like virtualizers or IntersectionObserver
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* <Overflow height={200}>
|
|
80
|
+
* <LongContent />
|
|
81
|
+
* </Overflow>
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* <Overflow direction="column" truncate={{ expandText: "Show more", collapseText: "Show less" }}>
|
|
85
|
+
* <LongContent />
|
|
86
|
+
* </Overflow>
|
|
87
|
+
*/
|
|
66
88
|
export declare const Overflow: import('react').ForwardRefExoticComponent<OverflowProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -22,4 +22,23 @@ export type SelectTriggerProps<Item> = DistributiveOmit<SelectTriggerBaseProps<I
|
|
|
22
22
|
selectedItem?: never;
|
|
23
23
|
selectedItems: UseDownshiftMultipleSelectionProps<Item>["selectedItems"];
|
|
24
24
|
});
|
|
25
|
+
/**
|
|
26
|
+
* SelectTrigger component — a field-styled button for opening a custom
|
|
27
|
+
* select-like menu (e.g. paired with `Combobox.Content` or a custom
|
|
28
|
+
* popover), for building select components that need a trigger different
|
|
29
|
+
* from `SelectMenu`'s built-in one.
|
|
30
|
+
*
|
|
31
|
+
* Features:
|
|
32
|
+
* - Single (`selectedItem`) or multiple (`selectedItems`) selection display
|
|
33
|
+
* - Optional prefix as text, an icon, or an avatar
|
|
34
|
+
* - Label, hint, description, error, and required-field messaging
|
|
35
|
+
* - Full accessibility support via `FieldLabel`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* <SelectTrigger
|
|
39
|
+
* label="Assignee"
|
|
40
|
+
* selectedItem={selected}
|
|
41
|
+
* itemToString={(item) => item?.name ?? ""}
|
|
42
|
+
* />
|
|
43
|
+
*/
|
|
25
44
|
export declare const SelectTrigger: <Item = any>(props: SelectTriggerProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,4 +3,18 @@ import { MaxLengthCounterProps } from '../../types';
|
|
|
3
3
|
export type TextFieldProps = Omit<CoreTextFieldProps, "prefix"> & {
|
|
4
4
|
prefix?: string;
|
|
5
5
|
} & MaxLengthCounterProps;
|
|
6
|
+
/**
|
|
7
|
+
* TextField component for single-line text input.
|
|
8
|
+
*
|
|
9
|
+
* Features:
|
|
10
|
+
* - Label, hint, description, error, and warning messaging
|
|
11
|
+
* - Optional prefix/suffix content (text, icon, or element)
|
|
12
|
+
* - Character counter via `showCounter`/`maxLength`
|
|
13
|
+
* - Loading state with spinner, and disabled/read-only states
|
|
14
|
+
* - Configurable `size` and native input `type`
|
|
15
|
+
* - Full accessibility support via `FieldLabel`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <TextField label="Email" type="email" placeholder="you@example.com" />
|
|
19
|
+
*/
|
|
6
20
|
export declare const TextField: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -33,6 +33,10 @@ export type PopoverContextProps = {
|
|
|
33
33
|
arrowRef: RefObject<HTMLSpanElement>;
|
|
34
34
|
/** Whether the most recent close was keyboard-driven (e.g. Escape); drives the focus ring on the returned-to trigger. */
|
|
35
35
|
closedViaKeyboardRef: RefObject<boolean>;
|
|
36
|
+
/** Whether the most recent close was FloatingFocusManager's non-modal Tab-out guard (reported via a FocusEvent); tells the focus-return effect to reclaim focus even though the browser's native Tab has already moved it past the trigger. */
|
|
37
|
+
closedViaTabOutRef: RefObject<boolean>;
|
|
38
|
+
/** Clears closedViaKeyboardRef/closedViaTabOutRef. Call once the focus-return effect has reacted to a close event, so a later unrelated re-run of that effect (while still closed) doesn't reuse a stale close-reason signal. */
|
|
39
|
+
clearCloseReasonRefs: () => void;
|
|
36
40
|
/** Whether the popover traps focus (modal) or closes on Tab-out (non-modal). Only applies when role is "dialog". */
|
|
37
41
|
modal?: boolean;
|
|
38
42
|
/** Whether the popover opens on hover/focus instead of click. Only applies when role is "dialog". */
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { CheckState } from '../../types';
|
|
2
2
|
import { SelectFieldOption } from '../../components/SelectField/types';
|
|
3
|
+
/**
|
|
4
|
+
* The check state of a "Select All" / "Select Filtered" row.
|
|
5
|
+
*
|
|
6
|
+
* Accepts a static value (`boolean` shorthand or a full `CheckState`) or a
|
|
7
|
+
* function that derives the state from the current selection. The function
|
|
8
|
+
* form is resolved against the live selection (the confirmation draft when
|
|
9
|
+
* confirmation is enabled, otherwise the committed value), so the row's
|
|
10
|
+
* checkbox can reflect how much of the set is currently selected — e.g.
|
|
11
|
+
* `checked` when everything is selected, `indeterminate` when some is, and
|
|
12
|
+
* `unchecked` when none is. This is the async equivalent of the automatic
|
|
13
|
+
* check-state behavior the `*Sync` variants provide.
|
|
14
|
+
*/
|
|
15
|
+
export type BulkActionCheckState = boolean | CheckState | ((current: SelectFieldOption[]) => boolean | CheckState);
|
|
3
16
|
/**
|
|
4
17
|
* Configuration for the "Select All" / "Select Filtered" rows in a
|
|
5
18
|
* MultiSelectMenu or MultiSelectField.
|
|
@@ -15,15 +28,19 @@ import { SelectFieldOption } from '../../components/SelectField/types';
|
|
|
15
28
|
* may return a `Promise<SelectFieldOption[]>`; while the promise is pending
|
|
16
29
|
* the menu shows a loading state, disables all option rows, and disables
|
|
17
30
|
* Apply.
|
|
31
|
+
*
|
|
32
|
+
* `checkState` accepts a static value (a `boolean` shorthand or a full
|
|
33
|
+
* `CheckState`) or a function that derives the state from the current
|
|
34
|
+
* selection, so the row's checkbox can reflect how much of the set is selected.
|
|
18
35
|
*/
|
|
19
36
|
export type BulkActionConfig = {
|
|
20
37
|
label?: string;
|
|
21
|
-
checkState:
|
|
38
|
+
checkState: BulkActionCheckState;
|
|
22
39
|
onClick: () => void;
|
|
23
40
|
compute?: never;
|
|
24
41
|
} | {
|
|
25
42
|
label?: string;
|
|
26
|
-
checkState:
|
|
43
|
+
checkState: BulkActionCheckState;
|
|
27
44
|
compute: (current: SelectFieldOption[]) => SelectFieldOption[] | Promise<SelectFieldOption[]>;
|
|
28
45
|
onClick?: never;
|
|
29
46
|
};
|
|
@@ -37,3 +54,11 @@ export type ResolvedBulkAction = {
|
|
|
37
54
|
onClick?: () => void;
|
|
38
55
|
compute?: (current: SelectFieldOption[]) => SelectFieldOption[] | Promise<SelectFieldOption[]>;
|
|
39
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Resolves a `BulkActionCheckState` into a concrete `CheckState`.
|
|
59
|
+
*
|
|
60
|
+
* When `checkState` is a function it is invoked with the current selection.
|
|
61
|
+
* The `boolean` shorthand maps `true → "checked"` and `false → "unchecked"`;
|
|
62
|
+
* a `CheckState` is passed through, defaulting to `"indeterminate"`.
|
|
63
|
+
*/
|
|
64
|
+
export declare function resolveBulkActionCheckState(checkState: BulkActionCheckState, current: SelectFieldOption[]): CheckState;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prefixes SVG `id` attributes and matching `url(#…)` / `#…` references under
|
|
3
|
+
* `svgRoot` so multiple instances of the same SVG do not collide in the
|
|
4
|
+
* document. Idempotent when called again with the same `idPrefix`.
|
|
5
|
+
*
|
|
6
|
+
* Fast path: returns immediately when the SVG has no `[id]` attributes.
|
|
7
|
+
*
|
|
8
|
+
* Walks elements and reads attributes directly instead of building attribute
|
|
9
|
+
* selectors — namespaced attrs like `xlink:href` are not valid in
|
|
10
|
+
* `querySelectorAll('[xlink:href]')`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function uniquifySvgDomIds(svgRoot: SVGElement, idPrefix: string): void;
|
|
@@ -3,6 +3,13 @@ import { ComponentPropsWithoutRef, Dispatch, ReactNode, SetStateAction } from 'r
|
|
|
3
3
|
import { LayoutUtilProps } from '../../types';
|
|
4
4
|
import { ITranslations } from '../LocalizationProvider/LocalizationProvider';
|
|
5
5
|
import { BreakpointReturnProps } from '../../hooks/useBreakpoint';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated No longer has any effect. Automatically loading these
|
|
8
|
+
* stylesheets through a dynamic import broke CSS delivery when
|
|
9
|
+
* `AnvilProvider` is shared between a host application and its
|
|
10
|
+
* micro-frontends. Import the `@servicetitan/anvil2/assets/css-utils/*.css`
|
|
11
|
+
* file(s) you need directly instead. See the CSS Utilities docs.
|
|
12
|
+
*/
|
|
6
13
|
export type CssUtilsOptions = boolean | {
|
|
7
14
|
spacing?: boolean;
|
|
8
15
|
color?: boolean;
|
|
@@ -20,6 +27,11 @@ export type AnvilProviderProps = ComponentPropsWithoutRef<"div"> & LayoutUtilPro
|
|
|
20
27
|
dir?: ITranslations["dir"];
|
|
21
28
|
translations?: ITranslations["translations"];
|
|
22
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated No longer has any effect. Import the
|
|
32
|
+
* `@servicetitan/anvil2/assets/css-utils/*.css` file(s) you need
|
|
33
|
+
* directly instead. See the CSS Utilities docs.
|
|
34
|
+
*/
|
|
23
35
|
cssUtils?: CssUtilsOptions;
|
|
24
36
|
} & {
|
|
25
37
|
trackingIdData?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as INLINE_MARKDOWN_REGEX } from './FieldLabel-
|
|
1
|
+
import { I as INLINE_MARKDOWN_REGEX } from './FieldLabel-Cm5A1Jcx.js';
|
|
2
2
|
|
|
3
3
|
const stripInlineMarkdown = (str) => {
|
|
4
4
|
const parts = [];
|
|
@@ -22,4 +22,4 @@ const stripInlineMarkdown = (str) => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export { stripInlineMarkdown as s };
|
|
25
|
-
//# sourceMappingURL=stripInlineMarkdown-
|
|
25
|
+
//# sourceMappingURL=stripInlineMarkdown-BZzgG-Zm.js.map
|