@servicetitan/anvil2 3.13.7 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/{AiMark-D8dx3b1Q.js → AiMark-CWufA6pV.js} +7 -62
- package/dist/{AiMark-D8dx3b1Q.js.map → AiMark-CWufA6pV.js.map} +1 -1
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-N-Es76Om.js → Alert-RkvFtmRP.js} +2 -2
- package/dist/{Alert-N-Es76Om.js.map → Alert-RkvFtmRP.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{AnvilProvider-D8msiELo.js → AnvilProvider-DagOuc9c.js} +2 -3
- package/dist/AnvilProvider-DagOuc9c.js.map +1 -0
- package/dist/AnvilProvider.js +1 -1
- package/dist/Avatar-DZxHhMTP.js.map +1 -1
- package/dist/{Breadcrumbs-Di0HJmcH.js → Breadcrumbs-DbOrdao2.js} +2 -2
- package/dist/{Breadcrumbs-Di0HJmcH.js.map → Breadcrumbs-DbOrdao2.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button-Dwh_Nd4l.js.map +1 -1
- package/dist/{Calendar-kSH8F7gx.js → Calendar-CK-AAaSG.js} +2 -2
- package/dist/Calendar-CK-AAaSG.js.map +1 -0
- package/dist/{Calendar-DV149Rqb.js → Calendar-DLnn6dJE.js} +2 -2
- package/dist/{Calendar-DV149Rqb.js.map → Calendar-DLnn6dJE.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/Card-Bt0F6RTq.js.map +1 -1
- package/dist/{Checkbox-CknwM231.js → Checkbox-CboZhOtU.js} +3 -3
- package/dist/{Checkbox-CknwM231.js.map → Checkbox-CboZhOtU.js.map} +1 -1
- package/dist/{Checkbox-FvMXGsgi.js → Checkbox-Cn4iNLW_.js} +2 -2
- package/dist/{Checkbox-FvMXGsgi.js.map → Checkbox-Cn4iNLW_.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-COkotNvt.js → Chip-UbrxYEqs.js} +2 -2
- package/dist/{Chip-COkotNvt.js.map → Chip-UbrxYEqs.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-D0YlJ7IA.js → DataTable-COExZbOC.js} +10 -22
- package/dist/DataTable-COExZbOC.js.map +1 -0
- package/dist/{DateFieldRange-B7-z7KXC.js → DateFieldRange-CpTxlASD.js} +5 -5
- package/dist/{DateFieldRange-B7-z7KXC.js.map → DateFieldRange-CpTxlASD.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-B3aY-9vO.js → DateFieldSingle-DR2kfrzh.js} +5 -5
- package/dist/{DateFieldSingle-B3aY-9vO.js.map → DateFieldSingle-DR2kfrzh.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-BYwWvHXD.js → DateFieldYearless-4mS_2Mgw.js} +5 -5
- package/dist/{DateFieldYearless-BYwWvHXD.js.map → DateFieldYearless-4mS_2Mgw.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-cyDptr2S.js → DateFieldYearlessRange-C-yvKBkJ.js} +4 -4
- package/dist/{DateFieldYearlessRange-cyDptr2S.js.map → DateFieldYearlessRange-C-yvKBkJ.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-Re26vN8g.js → DaysOfTheWeek-Bo4w8SsT.js} +2 -2
- package/dist/{DaysOfTheWeek-Re26vN8g.js.map → DaysOfTheWeek-Bo4w8SsT.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-BMPFoRQh.js → Dialog-Ds25dKQp.js} +4 -4
- package/dist/{Dialog-BMPFoRQh.js.map → Dialog-Ds25dKQp.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-BCw_ZHSD.js → Drawer-Da-bj_6o.js} +4 -4
- package/dist/{Drawer-BCw_ZHSD.js.map → Drawer-Da-bj_6o.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-CTEk64eN.js → EditCard-CocV93gS.js} +2 -2
- package/dist/{EditCard-CTEk64eN.js.map → EditCard-CocV93gS.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-CYCk2rz-.js → FieldLabel-6aFKQfyD.js} +2 -2
- package/dist/FieldLabel-6aFKQfyD.js.map +1 -0
- package/dist/FieldLabel.js +1 -1
- package/dist/{FilterBar-CrIPZKvL.js → FilterBar-CZT1ryz_.js} +6 -7
- package/dist/FilterBar-CZT1ryz_.js.map +1 -0
- package/dist/FilterBar.js +1 -1
- package/dist/Helper-BHpOgh7k.js.map +1 -1
- package/dist/Icon-B5zwN7GD.js.map +1 -1
- package/dist/{InputMask-Bm7ZYtQy.js → InputMask-CNV0Ucli.js} +3 -3
- package/dist/{InputMask-Bm7ZYtQy.js.map → InputMask-CNV0Ucli.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/Layout-C2Q2hyLG.js.map +1 -1
- package/dist/{ListView-Bkv1ZCSu.js → ListView-DFAWrwzi.js} +2 -2
- package/dist/ListView-DFAWrwzi.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-BWy_uBqm.js → Listbox-BErqErNN.js} +2 -2
- package/dist/Listbox-BErqErNN.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/{MenuFooter--lBF8OjJ.js → MenuFooter-fGSZYh8e.js} +2 -2
- package/dist/MenuFooter-fGSZYh8e.js.map +1 -0
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-gH-TQnq3.js → MultiSelectFieldSync-CqWUidCm.js} +8 -8
- package/dist/MultiSelectFieldSync-CqWUidCm.js.map +1 -0
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-QmhjWA05.js → MultiSelectMenuSync-DG3rKyQc.js} +6 -6
- package/dist/{MultiSelectMenuSync-QmhjWA05.js.map → MultiSelectMenuSync-DG3rKyQc.js.map} +1 -1
- package/dist/{NumberField-BOLMhpdk.js → NumberField-DRYYJHec.js} +3 -3
- package/dist/{NumberField-BOLMhpdk.js.map → NumberField-DRYYJHec.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/{Page-D4RYSd8t.js → Page-pfK5iSmv.js} +9 -9
- package/dist/Page-pfK5iSmv.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/{Pagination-Hjalx9ZX.js → Pagination-Bc4fhdNm.js} +3 -3
- package/dist/{Pagination-Hjalx9ZX.js.map → Pagination-Bc4fhdNm.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-BQ-R2hs0.js → Popover-BgVOsP4J.js} +2 -2
- package/dist/{Popover-BQ-R2hs0.js.map → Popover-BgVOsP4J.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
- package/dist/{ProgressBar-BUmYFa81.js → ProgressBar-Chb0uKfL.js} +2 -2
- package/dist/{ProgressBar-BUmYFa81.js.map → ProgressBar-Chb0uKfL.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BgbBIhPS.js → Radio-DcNlFfSu.js} +3 -3
- package/dist/{Radio-BgbBIhPS.js.map → Radio-DcNlFfSu.js.map} +1 -1
- package/dist/{Radio-C2pWQ84U.js → Radio-gpMEsFss.js} +2 -2
- package/dist/{Radio-C2pWQ84U.js.map → Radio-gpMEsFss.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-Chzl-zeW.js → RichTextEditor-DeO4p-S-.js} +8 -8
- package/dist/{RichTextEditor-Chzl-zeW.js.map → RichTextEditor-DeO4p-S-.js.map} +1 -1
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-D0J5KTsI.js → SavedFiltersButton-Cvf1mJk8.js} +10 -10
- package/dist/{SavedFiltersButton-D0J5KTsI.js.map → SavedFiltersButton-Cvf1mJk8.js.map} +1 -1
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SelectCard-BGTB3ay0.js → SelectCard-bp5hRyHK.js} +3 -3
- package/dist/{SelectCard-BGTB3ay0.js.map → SelectCard-bp5hRyHK.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-CcX2GAym.js → SelectFieldLabel-DZqxaZsp.js} +2 -2
- package/dist/SelectFieldLabel-DZqxaZsp.js.map +1 -0
- package/dist/{SelectFieldSync-BjJN7FC3.js → SelectFieldSync-Wkx6DGpg.js} +7 -7
- package/dist/{SelectFieldSync-BjJN7FC3.js.map → SelectFieldSync-Wkx6DGpg.js.map} +1 -1
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-iZsNTote.js → SelectMenuSync-O55TODxn.js} +6 -6
- package/dist/{SelectMenuSync-iZsNTote.js.map → SelectMenuSync-O55TODxn.js.map} +1 -1
- package/dist/{SelectOptions-BeehD5VV.js → SelectOptions-0A8BYx1q.js} +2 -2
- package/dist/SelectOptions-0A8BYx1q.js.map +1 -0
- package/dist/{SelectTrigger-BQAVMm3E.js → SelectTrigger-BfJ7DWYq.js} +2 -2
- package/dist/{SelectTrigger-BQAVMm3E.js.map → SelectTrigger-BfJ7DWYq.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-BV-QNhII.js → SelectTriggerBase-DvsI-kSG.js} +3 -3
- package/dist/{SelectTriggerBase-BV-QNhII.js.map → SelectTriggerBase-DvsI-kSG.js.map} +1 -1
- package/dist/StatusIcon-BqorkNJf.js.map +1 -1
- package/dist/{Switch-DWaFomvP.js → Switch-CrDmBj4D.js} +2 -2
- package/dist/{Switch-DWaFomvP.js.map → Switch-CrDmBj4D.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-D2TIPmZ2.js → Text-CZccJAnm.js} +2 -2
- package/dist/{Text-D2TIPmZ2.js.map → Text-CZccJAnm.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-wIc7ic0E.js → TextField-D0f9LwgQ.js} +3 -3
- package/dist/{TextField-wIc7ic0E.js.map → TextField-D0f9LwgQ.js.map} +1 -1
- package/dist/{TextField-DJaBZ4Je.js → TextField-DX5qyWPo.js} +2 -2
- package/dist/{TextField-DJaBZ4Je.js.map → TextField-DX5qyWPo.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-D4c6VjNs.js → Textarea-CdTcekFd.js} +3 -3
- package/dist/{Textarea-D4c6VjNs.js.map → Textarea-CdTcekFd.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/ThemeProvider-DW-Mflv6.js.map +1 -1
- package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
- package/dist/{TimeField-DpnX_t31.js → TimeField-BxNglWQt.js} +4 -4
- package/dist/TimeField-BxNglWQt.js.map +1 -0
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-Cl9BSxHs.js → Toaster-C-Z_FMbW.js} +3 -3
- package/dist/{Toaster-Cl9BSxHs.js.map → Toaster-C-Z_FMbW.js.map} +1 -1
- package/dist/{Toaster-11pmgwx5.js → Toaster-nyQgF9Ki.js} +2 -2
- package/dist/{Toaster-11pmgwx5.js.map → Toaster-nyQgF9Ki.js.map} +1 -1
- package/dist/{Toolbar-C9_Z1wAt.js → Toolbar-BUbMtBVz.js} +4 -4
- package/dist/{Toolbar-C9_Z1wAt.js.map → Toolbar-BUbMtBVz.js.map} +1 -1
- package/dist/{Toolbar-Dq9KOJoH.js → Toolbar-BxAFPvbn.js} +5 -5
- package/dist/{Toolbar-Dq9KOJoH.js.map → Toolbar-BxAFPvbn.js.map} +1 -1
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-BGnYIt6-.js → ToolbarButtonToggle-NSJ2XfXT.js} +2 -2
- package/dist/{ToolbarButtonToggle-BGnYIt6-.js.map → ToolbarButtonToggle-NSJ2XfXT.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-CoWxg7tA.js → TreeSelectFieldSync-DpvwlM7B.js} +6 -6
- package/dist/{TreeSelectFieldSync-CoWxg7tA.js.map → TreeSelectFieldSync-DpvwlM7B.js.map} +1 -1
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-CmJa0lyW.js → TreeSelectMenuSync-BDitYX_k.js} +5 -5
- package/dist/{TreeSelectMenuSync-CmJa0lyW.js.map → TreeSelectMenuSync-BDitYX_k.js.map} +1 -1
- package/dist/{TypeaheadTextField-2kW-oCMo.js → TypeaheadTextField-Cj09sEji.js} +3 -3
- package/dist/{TypeaheadTextField-2kW-oCMo.js.map → TypeaheadTextField-Cj09sEji.js.map} +1 -1
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js → YearlessDateInputWithPicker-CoomgSEK.js} +3 -3
- package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js.map → YearlessDateInputWithPicker-CoomgSEK.js.map} +1 -1
- package/dist/anvParts-DFVq7-Cm.js +25 -0
- package/dist/anvParts-DFVq7-Cm.js.map +1 -0
- package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -1
- package/dist/assets/icons/st/gnav_automations_active.svg +1 -0
- package/dist/assets/icons/st/gnav_automations_inactive.svg +1 -0
- package/dist/assets/icons/st/gnav_command_center_active.svg +1 -0
- package/dist/assets/icons/st/gnav_command_center_inactive.svg +1 -0
- package/dist/assets/icons/st.ts +4 -0
- package/dist/beta.js +17 -17
- package/dist/{bulkActionTypes-Ct2cwT7b.js → bulkActionTypes-DAo3_ECS.js} +2 -2
- package/dist/bulkActionTypes-DAo3_ECS.js.map +1 -0
- package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
- package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -1
- package/dist/{downshift.esm-xtSnQp44.js → downshift.esm-U4VMqrF-.js} +3 -1
- package/dist/downshift.esm-U4VMqrF-.js.map +1 -0
- package/dist/{filter-state-lWKlYjeQ.js → filter-state-CZcczj37.js} +21 -21
- package/dist/{filter-state-lWKlYjeQ.js.map → filter-state-CZcczj37.js.map} +1 -1
- package/dist/floating-ui.react-dom-BIKT960u.js.map +1 -1
- package/dist/getActiveElement-BcSyVE7S.js.map +1 -1
- package/dist/getKeyboardFocusableElements-B_U9rt6y.js.map +1 -1
- package/dist/{index-BHztJ8H6.js → index-BFxzUzoz.js} +2 -2
- package/dist/{index-BHztJ8H6.js.map → index-BFxzUzoz.js.map} +1 -1
- package/dist/index.js +43 -44
- package/dist/index.js.map +1 -1
- package/dist/portalScopeClassNames-DA28LrXe.js.map +1 -1
- package/dist/src/beta/components/Page/Page.d.ts +1 -1
- package/dist/src/beta/components/Page/PageHeader.d.ts +7 -3
- package/dist/src/components/Card/Card.d.ts +5 -12
- package/dist/src/components/Layout/Layout.d.ts +15 -3
- package/dist/src/components/Page/Page.d.ts +1 -1
- package/dist/src/components/Page/PageHeader.d.ts +7 -3
- package/dist/src/hooks/useAccessibleColor/useAccessibleColor.d.ts +3 -28
- package/dist/src/hooks/useBreakpoint/useBreakpoint.d.ts +15 -60
- package/dist/src/hooks/useMergeRefs/useMergeRefs.d.ts +3 -20
- package/dist/src/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts +2 -11
- package/dist/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +2 -10
- package/dist/src/hooks/useSize/index.d.ts +2 -13
- package/dist/src/hooks/useSwipe/useSwipe.d.ts +3 -20
- package/dist/src/hooks/useTrackingId/index.d.ts +6 -17
- package/dist/src/internal/components/AddNewItemButton.d.ts +4 -30
- package/dist/src/internal/components/Helper/Helper.d.ts +12 -8
- package/dist/src/internal/components/InView.d.ts +4 -24
- package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +2 -19
- package/dist/src/internal/components/Label/Label.d.ts +12 -51
- package/dist/src/internal/components/ManualTestLayout/ManualTestLayout.d.ts +3 -2
- package/dist/src/internal/components/MenuFooter/MenuFooter.d.ts +11 -17
- package/dist/src/internal/components/MultiSelectOptions.d.ts +15 -0
- package/dist/src/internal/components/OptionCheckbox.d.ts +2 -0
- package/dist/src/internal/components/OptionContentArea.d.ts +4 -0
- package/dist/src/internal/components/OptionRow.d.ts +4 -0
- package/dist/src/internal/components/OptionsDialog/OptionsDialog.d.ts +13 -1
- package/dist/src/internal/components/OptionsPanel.d.ts +16 -0
- package/dist/src/internal/components/OptionsPopover/OptionsPopover.d.ts +9 -14
- package/dist/src/internal/components/Popover/Popover.d.ts +45 -180
- package/dist/src/internal/components/Popover/PopoverButton.d.ts +0 -20
- package/dist/src/internal/components/Popover/PopoverClose.d.ts +0 -20
- package/dist/src/internal/components/Popover/PopoverContent.d.ts +4 -25
- package/dist/src/internal/components/Popover/PopoverTrigger.d.ts +1 -23
- package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +0 -21
- package/dist/src/internal/components/Popover/internal/usePopoverContext.d.ts +1 -3
- package/dist/src/internal/components/SelectOption.d.ts +8 -0
- package/dist/src/internal/components/SelectOptions.d.ts +15 -0
- package/dist/src/internal/components/Shadow/Shadow.d.ts +1 -0
- package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +4 -33
- package/dist/src/internal/components/Surface/Surface.d.ts +40 -73
- package/dist/src/internal/components/Surface/surfaceGeometry.d.ts +12 -0
- package/dist/src/internal/components/VirtualizedOptionsPanel.d.ts +1 -0
- package/dist/src/internal/components/YearSelector/YearSelector.d.ts +14 -48
- package/dist/src/internal/components/YearSelector/internal/YearItem.d.ts +1 -0
- package/dist/src/internal/components/YearSelector/internal/useYearSelectorKeys.d.ts +4 -0
- package/dist/src/internal/constants/anvParts.d.ts +3 -55
- package/dist/src/internal/flubber/a2c.d.ts +0 -4
- package/dist/src/internal/flubber/arc.d.ts +0 -4
- package/dist/src/internal/flubber/bezier.d.ts +0 -4
- package/dist/src/internal/flubber/errors.d.ts +0 -4
- package/dist/src/internal/flubber/index.d.ts +0 -4
- package/dist/src/internal/flubber/interpolate.d.ts +3 -0
- package/dist/src/internal/flubber/linear.d.ts +0 -4
- package/dist/src/internal/flubber/parse.d.ts +0 -4
- package/dist/src/internal/flubber/path-properties.d.ts +0 -4
- package/dist/src/internal/functions/areOptionsValueEqual.d.ts +2 -5
- package/dist/src/internal/functions/buildSelectItems.d.ts +2 -4
- package/dist/src/internal/functions/childrenToString.d.ts +3 -21
- package/dist/src/internal/functions/getActiveElement.d.ts +4 -0
- package/dist/src/internal/functions/getInitial.d.ts +3 -13
- package/dist/src/internal/functions/getKeyboardFocusableElements.d.ts +6 -30
- package/dist/src/internal/functions/inlineMarkdown.d.ts +3 -16
- package/dist/src/internal/functions/isThenable.d.ts +1 -1
- package/dist/src/internal/functions/kebabize.d.ts +3 -13
- package/dist/src/internal/functions/mapOrder.d.ts +4 -0
- package/dist/src/internal/functions/popoverTargetDomProps.d.ts +1 -1
- package/dist/src/internal/functions/portalScopeClassNames.d.ts +6 -13
- package/dist/src/internal/functions/safePopover.d.ts +2 -0
- package/dist/src/internal/functions/sizeToToken.d.ts +1 -0
- package/dist/src/internal/functions/stripInlineMarkdown.d.ts +3 -5
- package/dist/src/internal/functions/syncFilterUtils.d.ts +4 -2
- package/dist/src/internal/functions/warnOnce.d.ts +1 -2
- package/dist/src/internal/hooks/useBulkActionRunner.d.ts +4 -27
- package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +7 -14
- package/dist/src/internal/hooks/useConfirmationDraft.d.ts +4 -4
- package/dist/src/internal/hooks/useContainerQuery/useContainerQuery.d.ts +2 -33
- package/dist/src/internal/hooks/useDebouncedCallback/useDebouncedCallback.d.ts +3 -25
- package/dist/src/internal/hooks/useDialogScrollLock/useDialogScrollLock.d.ts +6 -31
- package/dist/src/internal/hooks/useDialogTransitionStates/useDialogTransitionStates.d.ts +2 -27
- package/dist/src/internal/hooks/useDownshiftEnvironment/useDownshiftEnvironment.d.ts +8 -24
- package/dist/src/internal/hooks/useFocusWithin/useFocusWithin.d.ts +3 -14
- package/dist/src/internal/hooks/useGroupedOptions.d.ts +4 -22
- package/dist/src/internal/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +4 -47
- package/dist/src/internal/hooks/useInvalidateOnOptionsChange.d.ts +2 -7
- package/dist/src/internal/hooks/useIsScrollable/useIsScrollable.d.ts +1 -5
- package/dist/src/internal/hooks/useKeyboardFocusables/useKeyboardFocusables.d.ts +1 -38
- package/dist/src/internal/hooks/useLayoutPropsUtil/useLayoutPropsUtil.d.ts +2 -38
- package/dist/src/internal/hooks/useNumberField/internal/createNumberMaskOptions.d.ts +2 -5
- package/dist/src/internal/hooks/useNumberField/internal/createTrailingZerosHandlers.d.ts +1 -2
- package/dist/src/internal/hooks/useNumberField/internal/numberMaskUtils.d.ts +0 -6
- package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldInputMode.d.ts +2 -17
- package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldKeys.d.ts +4 -30
- package/dist/src/internal/hooks/useNumberField/useNumberField.d.ts +19 -65
- package/dist/src/internal/hooks/useOnClickOutside/useOnClickOutside.d.ts +5 -33
- package/dist/src/internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates.d.ts +4 -28
- package/dist/src/internal/hooks/useOptionallyControlledState/useOptionallyControlledState.d.ts +2 -46
- package/dist/src/internal/hooks/useOptionsSections.d.ts +4 -9
- package/dist/src/internal/hooks/usePinnedOptions.d.ts +4 -24
- package/dist/src/internal/hooks/usePlatform/usePlatform.d.ts +3 -50
- package/dist/src/internal/hooks/usePopoverCloseDelayWorkaround/usePopoverCloseDelayWorkaround.d.ts +4 -0
- package/dist/src/internal/hooks/usePopoverTransitionStates/usePopoverTransitionStates.d.ts +1 -21
- package/dist/src/internal/hooks/usePrevious/usePrevious.d.ts +1 -0
- package/dist/src/internal/hooks/useProcessedOptions.d.ts +2 -3
- package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +18 -61
- package/dist/src/internal/hooks/useSelectOrchestration.d.ts +4 -3
- package/dist/src/internal/hooks/useToggleSelection.d.ts +3 -3
- package/dist/src/internal/hooks/useTypeAhead/useTypeAhead.d.ts +3 -11
- package/dist/src/internal/testing/anvPartsContract.d.ts +9 -9
- package/dist/src/internal/testing/reactHostProps.d.ts +2 -2
- package/dist/src/internal/types/addNewItemTypes.d.ts +14 -16
- package/dist/src/internal/types/argTypes.d.ts +2 -0
- package/dist/src/internal/types/bulkActionTypes.d.ts +12 -41
- package/dist/src/internal/types/confirmationTypes.d.ts +6 -7
- package/dist/src/internal/types/optionContent.d.ts +6 -9
- package/dist/src/internal/types/props.d.ts +6 -1
- package/dist/src/internal/types/selectFieldInternalTypes.d.ts +10 -12
- package/dist/src/internal/utils/arrayIdsEqual.d.ts +1 -5
- package/dist/src/internal/utils/generateChromaticStickersheetProps.d.ts +4 -8
- package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +0 -4
- package/dist/src/internal/utils/layerManager.d.ts +5 -28
- package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +0 -2
- package/dist/src/providers/AnvilProvider/AnvilProvider.d.ts +4 -0
- package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +16 -6
- package/dist/src/providers/LocalizationProvider/LocalizationContext.d.ts +7 -0
- package/dist/src/providers/LocalizationProvider/LocalizationProvider.d.ts +6 -0
- package/dist/src/providers/LocalizationProvider/LocalizationStoryWrapper.d.ts +1 -0
- package/dist/src/providers/LocalizationProvider/useTranslations.d.ts +6 -0
- package/dist/src/providers/PortalProvider/PortalProvider.d.ts +1 -0
- package/dist/src/providers/PortalProvider/PortalProviderContext.d.ts +3 -0
- package/dist/src/providers/ThemeProvider/ThemeProvider.d.ts +16 -0
- package/dist/src/providers/ThemeProvider/index.d.ts +1 -1
- package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +2 -0
- package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +3 -4
- package/dist/src/providers/ThemeProvider/useTheme.d.ts +5 -0
- package/dist/src/providers/TrackingProvider/TrackingProvider.d.ts +1 -0
- package/dist/src/providers/TrackingProvider/TrackingProviderContext.d.ts +7 -0
- package/dist/src/providers/TrackingProvider/useTrackingContext.d.ts +5 -0
- package/dist/src/themes/carto.d.ts +3 -43
- package/dist/src/types/DataTrackingId.d.ts +1 -0
- package/dist/src/types/DistributiveOmit.d.ts +1 -14
- package/dist/src/types/MaxLengthCounterProps.d.ts +4 -0
- package/dist/src/types/PassThroughProps.d.ts +3 -0
- package/dist/src/types/ai-marks.d.ts +14 -45
- package/dist/src/types/ianaZones.d.ts +2 -0
- package/dist/src/types/locales.d.ts +1 -0
- package/dist/src/types/props.d.ts +14 -16
- package/dist/{stripInlineMarkdown-82hVO9EP.js → stripInlineMarkdown-CosQSmBr.js} +2 -2
- package/dist/stripInlineMarkdown-CosQSmBr.js.map +1 -0
- package/dist/{syncFilterUtils-CKXbRZG8.js → syncFilterUtils-_uwyt6FD.js} +20 -19
- package/dist/syncFilterUtils-_uwyt6FD.js.map +1 -0
- package/dist/themes.js.map +1 -1
- package/dist/token/core/component-variables.scss +234 -0
- package/dist/token/core/component.d.ts +117 -0
- package/dist/token/core/component.js +1525 -0
- package/dist/token/core/component.scss +121 -0
- package/dist/token.js +1642 -0
- package/dist/token.js.map +1 -1
- package/dist/{treeSync-ONC4TbTR.js → treeSync-Bp80Xduj.js} +4 -4
- package/dist/{treeSync-ONC4TbTR.js.map → treeSync-Bp80Xduj.js.map} +1 -1
- package/dist/useAccessibleColor-BYKjkGRg.js.map +1 -1
- package/dist/useBreakpoint-BBNRlMGZ.js.map +1 -1
- package/dist/useDebouncedCallback-DLkapjcP.js.map +1 -1
- package/dist/useDialogScrollLock-BW-aVboo.js.map +1 -1
- package/dist/{useDrilldown-CicFEJpD.js → useDrilldown-D5XGfAUT.js} +3 -3
- package/dist/{useDrilldown-CicFEJpD.js.map → useDrilldown-D5XGfAUT.js.map} +1 -1
- package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
- package/dist/{useInfiniteCombobox-DJoVEIk6.js → useInfiniteCombobox-ORhH44Rp.js} +6 -6
- package/dist/{useInfiniteCombobox-DJoVEIk6.js.map → useInfiniteCombobox-ORhH44Rp.js.map} +1 -1
- package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-CGybEc6x.js} +2 -6
- package/dist/useInitialFocus-CGybEc6x.js.map +1 -0
- package/dist/useIntersectionObserver-BEmMDO3P.js.map +1 -1
- package/dist/{useInvalidateOnOptionsChange-C6tF7696.js → useInvalidateOnOptionsChange-ieSgbkwT.js} +4 -4
- package/dist/useInvalidateOnOptionsChange-ieSgbkwT.js.map +1 -0
- package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
- package/dist/useMergeRefs-Dfmtq9cI.js.map +1 -1
- package/dist/useNumberField-CXFYUZ_n.js.map +1 -1
- package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -1
- package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
- package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
- package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +1 -0
- package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -1
- package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +1 -1
- package/dist/usePrevious-Bvq-5auG.js.map +1 -1
- package/dist/useSize.js.map +1 -1
- package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
- package/dist/useTheme-B4i6a3bM.js.map +1 -1
- package/dist/useTrackingContext-C522P4sv.js.map +1 -1
- package/dist/useTrackingId.js.map +1 -1
- package/dist/warnOnce-Y9PRHcU4.js.map +1 -1
- package/package.json +2 -2
- package/dist/AnvilProvider-D8msiELo.js.map +0 -1
- package/dist/Calendar-kSH8F7gx.js.map +0 -1
- package/dist/DataTable-D0YlJ7IA.js.map +0 -1
- package/dist/FieldLabel-CYCk2rz-.js.map +0 -1
- package/dist/FilterBar-CrIPZKvL.js.map +0 -1
- package/dist/ListView-Bkv1ZCSu.js.map +0 -1
- package/dist/Listbox-BWy_uBqm.js.map +0 -1
- package/dist/MenuFooter--lBF8OjJ.js.map +0 -1
- package/dist/MultiSelectFieldSync-gH-TQnq3.js.map +0 -1
- package/dist/Page-D4RYSd8t.js.map +0 -1
- package/dist/SelectFieldLabel-CcX2GAym.js.map +0 -1
- package/dist/SelectOptions-BeehD5VV.js.map +0 -1
- package/dist/TimeField-DpnX_t31.js.map +0 -1
- package/dist/anvParts-BGg5dgfl.js +0 -43
- package/dist/anvParts-BGg5dgfl.js.map +0 -1
- package/dist/bulkActionTypes-Ct2cwT7b.js.map +0 -1
- package/dist/downshift.esm-xtSnQp44.js.map +0 -1
- package/dist/stripInlineMarkdown-82hVO9EP.js.map +0 -1
- package/dist/syncFilterUtils-CKXbRZG8.js.map +0 -1
- package/dist/useInitialFocus-BIvXK1Rp.js.map +0 -1
- package/dist/useInvalidateOnOptionsChange-C6tF7696.js.map +0 -1
- package/dist/usePopoverTransitionStates-B1opfxxn.js.map +0 -1
|
@@ -1,15 +1,11 @@
|
|
|
1
|
+
/** Maps each prop to the values included in stickersheet combinations. */
|
|
1
2
|
export type OptionsObject<P extends Record<string, unknown>> = {
|
|
2
3
|
[K in keyof P]: P[K][];
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @param props - The component props used to generate variations for the stickersheet.
|
|
10
|
-
* @param labelFormatter - A function to format the label for the prop.
|
|
11
|
-
* @param propsFormatter - A function to format the props. Return `false` to exclude a variation.
|
|
12
|
-
* @returns An array of props that can be used to create a stickersheet for Chromatic.
|
|
6
|
+
* Builds the Cartesian product of prop options for a Chromatic stickersheet.
|
|
7
|
+
* Labels omit `false` and `undefined` options; a props formatter can reshape or
|
|
8
|
+
* exclude each variation.
|
|
13
9
|
*/
|
|
14
10
|
export declare const generateChromaticStickersheetProps: <P extends Record<string, unknown>, T extends OptionsObject<P> = OptionsObject<P>>(props?: Partial<T>, labelFormatter?: (values: Record<keyof T, unknown>) => string, propsFormatter?: (values: Record<keyof T, unknown>) => Record<string, unknown> | false) => (P & {
|
|
15
11
|
label: string;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global layer manager for tracking overlay component stacking order.
|
|
3
|
-
* Uses window-level state to support cross-bundle communication (e.g., MFEs).
|
|
4
|
-
*
|
|
5
|
-
* When multiple Dialog/Drawer components are open, only the topmost layer
|
|
6
|
-
* should respond to outside click events. This manager tracks the z-order
|
|
7
|
-
* to enable that behavior.
|
|
8
|
-
*/
|
|
1
|
+
/** Window key shared by separately bundled Anvil2 instances. */
|
|
9
2
|
declare const WINDOW_PROPERTY_LAYER_STACK: "__ANVIL_LAYER_MANAGER__";
|
|
10
3
|
declare global {
|
|
11
4
|
interface Window {
|
|
@@ -13,31 +6,15 @@ declare global {
|
|
|
13
6
|
}
|
|
14
7
|
}
|
|
15
8
|
/**
|
|
16
|
-
*
|
|
17
|
-
* If the layer is already registered, this is a no-op.
|
|
18
|
-
*
|
|
19
|
-
* @param id - Unique identifier for the layer
|
|
9
|
+
* Adds an unregistered layer to the top of the global stack.
|
|
20
10
|
*/
|
|
21
11
|
export declare const registerLayer: (id: string) => void;
|
|
22
12
|
/**
|
|
23
|
-
*
|
|
24
|
-
* If the layer is not found, this is a no-op.
|
|
25
|
-
*
|
|
26
|
-
* @param id - Unique identifier for the layer
|
|
13
|
+
* Removes a registered layer without disturbing the remaining order.
|
|
27
14
|
*/
|
|
28
15
|
export declare const unregisterLayer: (id: string) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Check if a layer is the topmost layer in the stack.
|
|
31
|
-
*
|
|
32
|
-
* @param id - Unique identifier for the layer
|
|
33
|
-
* @returns True if the layer is on top, false otherwise
|
|
34
|
-
*/
|
|
16
|
+
/** Checks whether a layer is currently at the top of the global stack. */
|
|
35
17
|
export declare const isTopLayer: (id: string) => boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Get all registered layers in order (bottom to top).
|
|
38
|
-
* Returns a readonly copy for debugging purposes.
|
|
39
|
-
*
|
|
40
|
-
* @returns Readonly array of layer IDs
|
|
41
|
-
*/
|
|
18
|
+
/** Returns a bottom-to-top snapshot of the registered layer IDs. */
|
|
42
19
|
export declare const getLayers: () => readonly string[];
|
|
43
20
|
export {};
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* `svgRoot` so multiple instances of the same SVG do not collide in the
|
|
4
4
|
* document. Idempotent when called again with the same `idPrefix`.
|
|
5
5
|
*
|
|
6
|
-
* Fast path: returns immediately when the SVG has no `[id]` attributes.
|
|
7
|
-
*
|
|
8
6
|
* Walks elements and reads attributes directly instead of building attribute
|
|
9
7
|
* selectors — namespaced attrs like `xlink:href` are not valid in
|
|
10
8
|
* `querySelectorAll('[xlink:href]')`.
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { AnvilProviderProps } from './AnvilProviderContext';
|
|
2
|
+
/**
|
|
3
|
+
* Root provider for an Anvil2 application subtree. Establishes the scoped
|
|
4
|
+
* styles and shared defaults expected by Anvil2 components.
|
|
5
|
+
*/
|
|
2
6
|
export declare const AnvilProvider: (props: AnvilProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,8 @@ import { LayoutUtilProps } from '../../types';
|
|
|
4
4
|
import { ITranslations } from '../LocalizationProvider/LocalizationProvider';
|
|
5
5
|
import { BreakpointReturnProps } from '../../hooks/useBreakpoint';
|
|
6
6
|
/**
|
|
7
|
-
* @deprecated No longer has any effect.
|
|
8
|
-
*
|
|
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.
|
|
7
|
+
* @deprecated No longer has any effect. Import the required
|
|
8
|
+
* `@servicetitan/anvil2/assets/css-utils/*.css` files directly.
|
|
12
9
|
*/
|
|
13
10
|
export type CssUtilsOptions = boolean | {
|
|
14
11
|
spacing?: boolean;
|
|
@@ -18,34 +15,47 @@ export type CssUtilsOptions = boolean | {
|
|
|
18
15
|
};
|
|
19
16
|
export type AnvilProviderProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
|
|
20
17
|
children?: ReactNode;
|
|
18
|
+
/** Configures the nested theme provider; omitted values inherit. */
|
|
21
19
|
themeData?: {
|
|
20
|
+
/** Custom token values. Inherits the nearest theme when omitted. */
|
|
22
21
|
theme?: ThemeProviderProps["theme"];
|
|
22
|
+
/** Color mode. Inherits the nearest mode when omitted. */
|
|
23
23
|
mode?: ThemeProviderProps["mode"];
|
|
24
24
|
};
|
|
25
|
+
/** Establishes locale, direction, and messages for localized descendants. */
|
|
25
26
|
localizationData?: {
|
|
27
|
+
/** Language tag exposed to localized descendants. Defaults to `"en"`. */
|
|
26
28
|
locale?: ITranslations["locale"];
|
|
29
|
+
/** Text direction applied to the provider wrapper. Defaults to `"ltr"`. */
|
|
27
30
|
dir?: ITranslations["dir"];
|
|
31
|
+
/** Messages resolved by localized descendants. Defaults to an empty map. */
|
|
28
32
|
translations?: ITranslations["translations"];
|
|
29
33
|
};
|
|
30
34
|
/**
|
|
31
35
|
* @deprecated No longer has any effect. Import the
|
|
32
36
|
* `@servicetitan/anvil2/assets/css-utils/*.css` file(s) you need
|
|
33
|
-
* directly instead.
|
|
37
|
+
* directly instead.
|
|
34
38
|
*/
|
|
35
39
|
cssUtils?: CssUtilsOptions;
|
|
36
40
|
} & {
|
|
41
|
+
/** Controls the scope and opt-out policy for descendant tracking IDs. */
|
|
37
42
|
trackingIdData?: {
|
|
43
|
+
/** Prefix included in generated tracking IDs. Defaults to `"ST"`. */
|
|
38
44
|
scope?: string;
|
|
45
|
+
/** Whether descendants should omit tracking IDs. Defaults to `false`. */
|
|
39
46
|
optOut?: boolean;
|
|
40
47
|
};
|
|
41
48
|
};
|
|
42
49
|
export type AnvilProviderContextProps = {
|
|
50
|
+
/** Current viewport breakpoint, or `undefined` when unavailable. */
|
|
43
51
|
breakpoint?: BreakpointReturnProps;
|
|
44
52
|
};
|
|
53
|
+
/** Breakpoint context populated by {@link AnvilProvider}. */
|
|
45
54
|
export declare const AnvilProviderContext: import('react').Context<AnvilProviderContextProps>;
|
|
46
55
|
export declare const TooltipLegacyGroupContext: import('react').Context<{
|
|
47
56
|
disableDelayGroup: Dispatch<SetStateAction<boolean>>;
|
|
48
57
|
} | null>;
|
|
58
|
+
/** Reads legacy tooltip delay-group controls from {@link AnvilProvider}. */
|
|
49
59
|
export declare const useTooltipLegacyGroup: () => {
|
|
50
60
|
disableDelayGroup: Dispatch<SetStateAction<boolean>>;
|
|
51
61
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export type TranslationContext = {
|
|
2
|
+
/** Language tag published to descendants. */
|
|
2
3
|
locale: string;
|
|
4
|
+
/** Resolves a dotted key; returns the key when missing or not a string. */
|
|
3
5
|
t(value: string): string;
|
|
4
6
|
};
|
|
7
|
+
/** Locale and `t` published by the nearest {@link LocalizationProvider}. */
|
|
5
8
|
export declare const LocalizationContext: import('react').Context<TranslationContext>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns locale and `t` from the nearest {@link LocalizationContext}.
|
|
11
|
+
* Outside a provider, `locale` is `"en"` and `t` echoes the key.
|
|
12
|
+
*/
|
|
6
13
|
export declare const useLocalizationContext: () => TranslationContext;
|
|
@@ -2,16 +2,22 @@ import { default as React, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import { LayoutUtilProps } from '../../types';
|
|
3
3
|
type LocalizationProviderProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
/** Locale, text direction, and message map for this subtree. */
|
|
5
6
|
translationData: ITranslations;
|
|
6
7
|
};
|
|
8
|
+
/** Intermediate node while walking a dotted key through {@link Translations}. */
|
|
7
9
|
export type TranslationResult = string | Translations | undefined;
|
|
8
10
|
export interface Translations {
|
|
9
11
|
[key: string]: TranslationResult;
|
|
10
12
|
}
|
|
11
13
|
export interface ITranslations {
|
|
14
|
+
/** Text direction applied to the provider wrapper. */
|
|
12
15
|
dir: "ltr" | "rtl";
|
|
16
|
+
/** Language tag exposed to descendants. Defaults to `"en"` when omitted. */
|
|
13
17
|
locale?: string;
|
|
18
|
+
/** Message tree walked by dotted keys (`"x.y.z"`). */
|
|
14
19
|
translations: Translations;
|
|
15
20
|
}
|
|
21
|
+
/** Applies `dir` on a wrapper and publishes locale plus `t()` to descendants. */
|
|
16
22
|
export declare const LocalizationProvider: React.FC<LocalizationProviderProps>;
|
|
17
23
|
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ITranslations } from './LocalizationProvider';
|
|
2
|
+
/**
|
|
3
|
+
* Builds a `t` that walks dotted keys (`"x.y.z"`) through `translations`.
|
|
4
|
+
* Missing paths and non-string nodes return the key.
|
|
5
|
+
*
|
|
6
|
+
* @returns `{ translations }` where `translations` is that lookup function.
|
|
7
|
+
*/
|
|
2
8
|
export declare const useTranslations: (translations: ITranslations["translations"]) => {
|
|
3
9
|
translations: (key: string) => string;
|
|
4
10
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type PortalProviderProps = {
|
|
3
|
+
/** Element or mutable ref published as the portal destination. */
|
|
3
4
|
root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null;
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
};
|
|
6
7
|
export type PortalProviderContextProps = {
|
|
8
|
+
/** Published portal destination, or `undefined` when none is configured. */
|
|
7
9
|
root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null;
|
|
8
10
|
};
|
|
11
|
+
/** Destination published by {@link PortalProvider}; empty outside a provider. */
|
|
9
12
|
export declare const PortalProviderContext: import('react').Context<PortalProviderContextProps>;
|
|
@@ -2,14 +2,30 @@ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
|
2
2
|
import { LayoutUtilProps } from '../../types';
|
|
3
3
|
import { Token } from '@servicetitan/hammer-token';
|
|
4
4
|
export type CustomThemeType = {
|
|
5
|
+
/** Overrides foundational token values. */
|
|
5
6
|
primitive?: Partial<Token["primitive"]>;
|
|
7
|
+
/** Overrides semantic token values consumed across components. */
|
|
6
8
|
semantic?: Partial<Token["semantic"]>;
|
|
9
|
+
/** Overrides tokens scoped to individual components. */
|
|
7
10
|
component?: Partial<Token["component"]>;
|
|
8
11
|
};
|
|
9
12
|
export type ThemeProviderProps = Omit<ComponentPropsWithoutRef<"div">, "prefix"> & LayoutUtilProps & {
|
|
13
|
+
/**
|
|
14
|
+
* Partial Hammer token values emitted as CSS custom properties. Inherits
|
|
15
|
+
* the nearest theme when omitted.
|
|
16
|
+
*/
|
|
10
17
|
theme?: CustomThemeType;
|
|
18
|
+
/**
|
|
19
|
+
* Color mode for this subtree. Inherits the nearest mode; otherwise no
|
|
20
|
+
* mode class is applied.
|
|
21
|
+
*/
|
|
11
22
|
mode?: "light" | "dark";
|
|
12
23
|
children?: ReactNode;
|
|
24
|
+
/** Prefix for generated CSS custom properties. Defaults to `"a2"`. */
|
|
13
25
|
prefix?: string;
|
|
14
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Scopes Hammer token overrides and color mode to a wrapper element. Nested
|
|
29
|
+
* providers inherit an omitted theme or mode.
|
|
30
|
+
*/
|
|
15
31
|
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ThemeProvider, type ThemeProviderProps, type CustomThemeType, } from './ThemeProvider';
|
|
2
2
|
export type {
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated
|
|
4
|
+
* @deprecated Internal context contract; may change without notice.
|
|
5
5
|
*/
|
|
6
6
|
ThemeProviderContextProps, } from './internal/ThemeProviderContext';
|
|
7
7
|
export { useTheme } from './useTheme';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CustomThemeType } from '../ThemeProvider';
|
|
2
2
|
export type ThemeProviderContextProps = {
|
|
3
|
+
/** Effective custom theme after provider inheritance. */
|
|
3
4
|
theme?: CustomThemeType;
|
|
5
|
+
/** Effective color mode after provider inheritance. */
|
|
4
6
|
mode?: "light" | "dark";
|
|
5
7
|
/**
|
|
6
8
|
* CSS custom properties derived from `theme`. Top-layer surfaces that
|
|
@@ -5,10 +5,9 @@ type ThemeTokenBags = {
|
|
|
5
5
|
component?: Record<string, TokenObj>;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* re-apply `.theme-core` (which otherwise resets tokens to core defaults).
|
|
8
|
+
* Converts custom theme tokens into CSS custom properties, including
|
|
9
|
+
* `light-dark()` pairs when a dark appearance is available.
|
|
10
|
+
* Returns `undefined` when no theme is provided.
|
|
12
11
|
*/
|
|
13
12
|
export declare function themeToCssVars(theme: ThemeTokenBags | undefined, prefix?: string): {
|
|
14
13
|
[key: string]: string;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/** Builds `_scope_component_` plus a truncated cipher of `data`. */
|
|
2
3
|
export declare const getTrackingIdHelper: (data: string, component: string, scope: string) => Promise<string>;
|
|
3
4
|
export interface TrackingProviderContextProps {
|
|
5
|
+
/** Prefix included in generated tracking IDs. */
|
|
4
6
|
scope: string;
|
|
7
|
+
/** Deterministic id; same `data` + `component` + `scope` always match. */
|
|
5
8
|
getTrackingId: (data: string, component: string) => Promise<string>;
|
|
9
|
+
/** When true, {@link useTrackingId} skips the lookup. */
|
|
6
10
|
optOut: boolean;
|
|
7
11
|
}
|
|
8
12
|
export interface TrackingProviderProps {
|
|
9
13
|
children: ReactNode;
|
|
14
|
+
/** Prefix included in generated tracking IDs. */
|
|
10
15
|
scope: string;
|
|
16
|
+
/** Skip descendant tracking-id lookups. Defaults to `false`. */
|
|
11
17
|
optOut?: boolean;
|
|
12
18
|
}
|
|
19
|
+
/** Tracking-id config published by the nearest {@link TrackingProvider}. */
|
|
13
20
|
export declare const TrackingContext: import('react').Context<TrackingProviderContextProps>;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `scope`, `optOut`, and `getTrackingId` from the nearest
|
|
3
|
+
* {@link TrackingProvider}. Outside a provider, `scope` is `"ST"` and
|
|
4
|
+
* `optOut` is `false`.
|
|
5
|
+
*/
|
|
1
6
|
export declare const useTrackingContext: () => import('./TrackingProviderContext').TrackingProviderContextProps;
|
|
@@ -1,47 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Radius (Carto → Anvil2):
|
|
6
|
-
* - `radius.sharp` → `BorderRadiusNone` (`0`)
|
|
7
|
-
* - `radius.100` → `BorderRadiusSmall` (`0.25rem`, checkboxes)
|
|
8
|
-
* - `radius.trim` → `BorderRadiusMedium` (`0.75rem`, buttons / inputs)
|
|
9
|
-
* - `radius.moderate` → `BorderRadiusLarge` (`1rem`, cards / menus)
|
|
10
|
-
* - `radius.generous` → `BorderRadiusXlarge` (`1.5rem`, panels)
|
|
11
|
-
* - `radius.full` → `BorderRadiusCircular` (`50%`)
|
|
12
|
-
*
|
|
13
|
-
* Typography (Carto → Anvil2):
|
|
14
|
-
* - `typography.fontFamily.functional` → base / paragraph / label family (Inter)
|
|
15
|
-
* - `typography.fontFamily.expressive` → display / heading family (Sofia Pro)
|
|
16
|
-
* - `typography.weight.neutral` → paragraph weight (`400`)
|
|
17
|
-
* - `typography.weight.structured` → `FontWeightSemibold` (`500`; buttons, chips, labels)
|
|
18
|
-
* - `typography.weight.emphatic` → heading weight (`700`)
|
|
19
|
-
* - Bold UI emphasis → `FontWeightBold` (`600`; calendar selection, stepper, avatar, etc.)
|
|
20
|
-
*
|
|
21
|
-
* Components keep `$font-weight-semibold` / `$font-weight-bold` (and semantic
|
|
22
|
-
* typography tokens for real text roles). Carto retunes those primitives so
|
|
23
|
-
* existing component CSS picks up the new weights without per-component remaps.
|
|
24
|
-
*
|
|
25
|
-
* Surfaces (Carto → Anvil2):
|
|
26
|
-
* - Popover / Menu content and arrow fills → `BackgroundColorDefault`
|
|
27
|
-
* (`var(--a2-background-color-default)`, which resolves via `light-dark()`).
|
|
28
|
-
* Applies anywhere that consumes `$popover-content-background-color` /
|
|
29
|
-
* `$popover-arrow-fill-color` (public Popover, internal Popover,
|
|
30
|
-
* OptionsPopover) or `$menu-content-background-color` /
|
|
31
|
-
* `$menu-arrow-background-color` (Menu). Tooltip uses a separate token and
|
|
32
|
-
* is unaffected.
|
|
33
|
-
*
|
|
34
|
-
* Consumers still need to load Inter (and Sofia Pro when using headings). The
|
|
35
|
-
* kit loads Inter from Google Fonts; AnvilProvider already pulls in Sofia Pro
|
|
36
|
-
* via `@servicetitan/anvil-fonts`.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* import { ThemeProvider } from "@servicetitan/anvil2";
|
|
41
|
-
* import { carto } from "@servicetitan/anvil2/themes";
|
|
42
|
-
*
|
|
43
|
-
* <ThemeProvider theme={carto}>{children}</ThemeProvider>
|
|
44
|
-
* ```
|
|
2
|
+
* Carto-aligned {@link CustomThemeType}: Inter/Sofia Pro, retuned radius and
|
|
3
|
+
* weights, and default-background Popover/Menu surfaces. Tooltip tokens are
|
|
4
|
+
* unchanged. Load Inter yourself; {@link AnvilProvider} already loads Sofia Pro.
|
|
45
5
|
*/
|
|
46
6
|
export declare const carto: {
|
|
47
7
|
readonly primitive: {
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use to Omit props from types that include unions.
|
|
3
|
-
*
|
|
4
|
-
* Example:
|
|
5
|
-
* type A = {
|
|
6
|
-
* prop?: string;
|
|
7
|
-
* otherProp?: false;
|
|
8
|
-
* } | {
|
|
9
|
-
* prop: string;
|
|
10
|
-
* otherProp: true;
|
|
11
|
-
* };
|
|
12
|
-
* type B = A & { thirdProp: boolean; };
|
|
13
|
-
* type C = DistributiveOmit<C, "thirdProp">;
|
|
14
|
-
*/
|
|
1
|
+
/** `Omit` that distributes over unions so unused-branch keys are not required. */
|
|
15
2
|
export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { HelperProps } from '../internal/components/Helper';
|
|
2
|
+
/**
|
|
3
|
+
* When `showCounter` is `true`, `maxLength` is required for the visible
|
|
4
|
+
* `inputLength/maxLength` counter.
|
|
5
|
+
*/
|
|
2
6
|
export type MaxLengthCounterProps = {
|
|
3
7
|
showCounter: true;
|
|
4
8
|
maxLength: HelperProps["maxLength"];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
2
|
+
/** String-valued `data-*` attributes. */
|
|
2
3
|
export type DataAttributes = Record<`data-${string}`, string>;
|
|
4
|
+
/** Native element props plus `data-*` attributes. */
|
|
3
5
|
export type PassThroughProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T> & DataAttributes;
|
|
6
|
+
/** {@link PassThroughProps} including `ref`. */
|
|
4
7
|
export type PassThroughPropsWithRef<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithRef<T> & DataAttributes;
|
|
@@ -1,72 +1,41 @@
|
|
|
1
1
|
import { PopoverContentProps, PopoverDialogRoleProps } from '../internal/components/Popover';
|
|
2
2
|
import { TooltipProps } from '../components';
|
|
3
|
-
/**
|
|
4
|
-
* Minimal props for showing an AI mark as a boolean flag (for example on `Chip`).
|
|
5
|
-
* For the standalone icon component, use `AiMarkProps` on `AiMark` instead.
|
|
6
|
-
*/
|
|
3
|
+
/** Sparkle-only mark; no tooltip or popover. */
|
|
7
4
|
export type AiMarkBooleanProps = {
|
|
8
|
-
/**
|
|
9
|
-
* When `true`, displays the AI indicator icon with no additional context.
|
|
10
|
-
*/
|
|
5
|
+
/** When `true`, shows the indicator with no extra context. */
|
|
11
6
|
aiMark?: boolean;
|
|
12
7
|
};
|
|
13
8
|
/**
|
|
14
|
-
*
|
|
15
|
-
* Discriminated union: set `type` to `"tooltip"` or `"popover"` to select the corresponding configuration shape.
|
|
9
|
+
* `type` selects tooltip vs popover.
|
|
16
10
|
*/
|
|
17
11
|
export type AiMarkWithTooltipOrPopoverConfig = {
|
|
18
|
-
/** Discriminant for the popover variant. */
|
|
19
12
|
type: "popover";
|
|
20
|
-
/**
|
|
21
|
-
* The content displayed inside the popover. When omitted, defaults to the standard AI disclaimer message and a Learn more link to the privacy policy.
|
|
22
|
-
*/
|
|
13
|
+
/** Popover body. Defaults to the AI disclaimer plus a privacy-policy link. */
|
|
23
14
|
content?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Additional props passed to the underlying `Popover` component.
|
|
26
|
-
*/
|
|
15
|
+
/** Forwarded to the popover; the mark owns `children`. */
|
|
27
16
|
props?: Omit<PopoverDialogRoleProps, "children">;
|
|
28
|
-
/**
|
|
29
|
-
* Accessible label for the trigger button that opens the popover.
|
|
30
|
-
*/
|
|
17
|
+
/** Accessible name for the trigger. */
|
|
31
18
|
triggerLabel: string;
|
|
32
|
-
/**
|
|
33
|
-
* Additional props passed to the popover content container.
|
|
34
|
-
*/
|
|
19
|
+
/** Forwarded to popover content. */
|
|
35
20
|
contentProps?: Pick<PopoverContentProps, "hideWhileClosed" | "scrollerRef">;
|
|
36
21
|
} | {
|
|
37
|
-
/** Discriminant for the tooltip variant. */
|
|
38
22
|
type: "tooltip";
|
|
39
|
-
/**
|
|
40
|
-
* The text content displayed inside the tooltip. When omitted, defaults to "AI can make mistakes."
|
|
41
|
-
*/
|
|
23
|
+
/** Tooltip text. Defaults to `"AI can make mistakes."`. */
|
|
42
24
|
content?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Additional props passed to the underlying `Tooltip` component.
|
|
45
|
-
*/
|
|
25
|
+
/** Forwarded to the tooltip; the mark owns `children`. */
|
|
46
26
|
props?: Omit<TooltipProps, "children">;
|
|
47
|
-
/**
|
|
48
|
-
* Accessible label for the trigger button that opens the tooltip.
|
|
49
|
-
*/
|
|
27
|
+
/** Accessible name for the trigger. */
|
|
50
28
|
triggerLabel: string;
|
|
51
29
|
};
|
|
52
|
-
/**
|
|
53
|
-
* Props that include an optional AI mark on a label or field.
|
|
54
|
-
*/
|
|
55
30
|
export type AiMarkWithTooltipOrPopoverProps = {
|
|
56
31
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* - `AiMarkWithTooltipOrPopoverConfig` — Displays the AI indicator icon with a tooltip or popover for additional context.
|
|
32
|
+
* `true` is sparkle-only; pass {@link AiMarkWithTooltipOrPopoverConfig} for
|
|
33
|
+
* tooltip or popover context.
|
|
60
34
|
*/
|
|
61
35
|
aiMark?: boolean | AiMarkWithTooltipOrPopoverConfig;
|
|
62
36
|
};
|
|
63
37
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* the ghost button's hit area is unchanged; for non-interactive variants, padding
|
|
67
|
-
* is added to the non-collapsed axes.
|
|
68
|
-
* - `"inline"` — collapse the inline axis (left/right)
|
|
69
|
-
* - `"block"` — collapse the block axis (top/bottom)
|
|
70
|
-
* - `"all"` — collapse both axes
|
|
38
|
+
* Axes whose padding collapses so the mark lays out like a plain icon.
|
|
39
|
+
* Interactive variants keep the ghost-button hit area; others pad remaining axes.
|
|
71
40
|
*/
|
|
72
41
|
export type AiMarkCollapsePadding = "inline" | "block" | "all";
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
/** IANA timezone names accepted by date/calendar timezone props. */
|
|
1
2
|
export declare const IANA_TIMEZONES: readonly ["Pacific/Kiritimati", "Pacific/Apia", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Tongatapu", "Pacific/Chatham", "Antarctica/McMurdo", "Asia/Anadyr", "Asia/Kamchatka", "Pacific/Auckland", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Nauru", "Pacific/Tarawa", "Pacific/Wake", "Pacific/Wallis", "Antarctica/Casey", "Antarctica/Macquarie", "Asia/Magadan", "Asia/Sakhalin", "Asia/Srednekolymsk", "Pacific/Bougainville", "Pacific/Efate", "Pacific/Guadalcanal", "Pacific/Kosrae", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pohnpei", "Australia/Lord_Howe", "Antarctica/DumontDUrville", "Asia/Ust-Nera", "Asia/Vladivostok", "Australia/Brisbane", "Australia/Currie", "Australia/Hobart", "Australia/Lindeman", "Australia/Melbourne", "Australia/Sydney", "Pacific/Chuuk", "Pacific/Guam", "Pacific/Port_Moresby", "Pacific/Saipan", "Australia/Adelaide", "Australia/Broken_Hill", "Australia/Darwin", "Asia/Chita", "Asia/Dili", "Asia/Jayapura", "Asia/Khandyga", "Asia/Seoul", "Asia/Tokyo", "Asia/Yakutsk", "Pacific/Palau", "Australia/Eucla", "Asia/Pyongyang", "Asia/Brunei", "Asia/Choibalsan", "Asia/Hong_Kong", "Asia/Irkutsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Macau", "Asia/Makassar", "Asia/Manila", "Asia/Shanghai", "Asia/Singapore", "Asia/Taipei", "Asia/Ulaanbaatar", "Australia/Perth", "Antarctica/Davis", "Asia/Bangkok", "Asia/Barnaul", "Asia/Ho_Chi_Minh", "Asia/Hovd", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Tomsk", "Asia/Vientiane", "Indian/Christmas", "Asia/Yangon", "Indian/Cocos", "Antarctica/Vostok", "Asia/Almaty", "Asia/Bishkek", "Asia/Dhaka", "Asia/Omsk", "Asia/Qyzylorda", "Asia/Thimphu", "Asia/Urumqi", "Indian/Chagos", "Asia/Kathmandu", "Asia/Colombo", "Asia/Kolkata", "Antarctica/Mawson", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Dushanbe", "Asia/Karachi", "Asia/Oral", "Asia/Samarkand", "Asia/Tashkent", "Asia/Yekaterinburg", "Indian/Kerguelen", "Indian/Maldives", "Asia/Kabul", "Asia/Tehran", "Asia/Baku", "Asia/Dubai", "Asia/Muscat", "Asia/Tbilisi", "Asia/Yerevan", "Europe/Astrakhan", "Europe/Samara", "Europe/Saratov", "Europe/Ulyanovsk", "Indian/Mahe", "Indian/Mauritius", "Indian/Reunion", "Africa/Addis_Ababa", "Africa/Asmara", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Mogadishu", "Africa/Nairobi", "Antarctica/Syowa", "Asia/Aden", "Asia/Amman", "Asia/Baghdad", "Asia/Bahrain", "Asia/Beirut", "Asia/Damascus", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Jerusalem", "Asia/Kuwait", "Asia/Nicosia", "Asia/Qatar", "Asia/Riyadh", "Europe/Athens", "Europe/Bucharest", "Europe/Chisinau", "Europe/Helsinki", "Europe/Istanbul", "Europe/Kiev", "Europe/Kirov", "Europe/Mariehamn", "Europe/Minsk", "Europe/Moscow", "Europe/Riga", "Europe/Simferopol", "Europe/Sofia", "Europe/Tallinn", "Europe/Uzhgorod", "Europe/Vilnius", "Europe/Volgograd", "Europe/Zaporozhye", "Indian/Antananarivo", "Indian/Comoro", "Indian/Mayotte", "Africa/Blantyre", "Africa/Bujumbura", "Africa/Cairo", "Africa/Ceuta", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Kigali", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Tripoli", "Antarctica/Troll", "Arctic/Longyearbyen", "Europe/Amsterdam", "Europe/Andorra", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Budapest", "Europe/Busingen", "Europe/Copenhagen", "Europe/Gibraltar", "Europe/Kaliningrad", "Europe/Ljubljana", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Monaco", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Rome", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Skopje", "Europe/Stockholm", "Europe/Tirane", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "Africa/Algiers", "Africa/Bangui", "Africa/Brazzaville", "Africa/Casablanca", "Africa/Douala", "Africa/El_Aaiun", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Luanda", "Africa/Malabo", "Africa/Ndjamena", "Africa/Niamey", "Africa/Porto-Novo", "Africa/Tunis", "Africa/Windhoek", "Atlantic/Canary", "Atlantic/Faroe", "Atlantic/Madeira", "Europe/Dublin", "Europe/Guernsey", "Europe/Isle_of_Man", "Europe/Jersey", "Europe/Lisbon", "Europe/London", "Africa/Abidjan", "Africa/Accra", "Africa/Bamako", "Africa/Banjul", "Africa/Bissau", "Africa/Conakry", "Africa/Dakar", "Africa/Freetown", "Africa/Lome", "Africa/Monrovia", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Sao_Tome", "America/Danmarkshavn", "America/Scoresbysund", "Atlantic/Azores", "Atlantic/Reykjavik", "Atlantic/St_Helena", "UTC", "Atlantic/Cape_Verde", "America/Godthab", "America/Miquelon", "America/Noronha", "Atlantic/South_Georgia", "America/St_Johns", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Bahia", "America/Belem", "America/Cayenne", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Halifax", "America/Maceio", "America/Moncton", "America/Montevideo", "America/Paramaribo", "America/Punta_Arenas", "America/Recife", "America/Santarem", "America/Sao_Paulo", "America/Thule", "Antarctica/Palmer", "Antarctica/Rothera", "Atlantic/Bermuda", "Atlantic/Stanley", "America/Anguilla", "America/Antigua", "America/Aruba", "America/Asuncion", "America/Barbados", "America/Blanc-Sablon", "America/Boa_Vista", "America/Campo_Grande", "America/Caracas", "America/Cuiaba", "America/Curacao", "America/Detroit", "America/Dominica", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guyana", "America/Havana", "America/Indiana/Indianapolis", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Iqaluit", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lower_Princes", "America/Manaus", "America/Marigot", "America/Martinique", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Pangnirtung", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Santiago", "America/Santo_Domingo", "America/St_Barthelemy", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Thunder_Bay", "America/Toronto", "America/Tortola", "America/Atikokan", "America/Bahia_Banderas", "America/Bogota", "America/Cancun", "America/Cayman", "America/Chicago", "America/Eirunepe", "America/Guayaquil", "America/Indiana/Knox", "America/Indiana/Tell_City", "America/Jamaica", "America/Lima", "America/Matamoros", "America/Menominee", "America/Merida", "America/Mexico_City", "America/Monterrey", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Panama", "America/Rainy_River", "America/Rankin_Inlet", "America/Resolute", "America/Rio_Branco", "America/Winnipeg", "America/Belize", "America/Boise", "America/Cambridge_Bay", "America/Chihuahua", "America/Costa_Rica", "America/Denver", "America/Edmonton", "America/El_Salvador", "America/Guatemala", "America/Inuvik", "America/Managua", "America/Mazatlan", "America/Ojinaga", "America/Regina", "America/Swift_Current", "America/Tegucigalpa", "America/Yellowknife", "Pacific/Easter", "Pacific/Galapagos", "America/Creston", "America/Dawson", "America/Dawson_Creek", "America/Fort_Nelson", "America/Hermosillo", "America/Los_Angeles", "America/Phoenix", "America/Tijuana", "America/Vancouver", "America/Whitehorse", "America/Anchorage", "America/Juneau", "America/Metlakatla", "America/Nome", "America/Sitka", "America/Yakutat", "Pacific/Pitcairn", "America/Adak", "Pacific/Gambier", "Pacific/Marquesas", "Pacific/Honolulu", "Pacific/Rarotonga", "Pacific/Tahiti", "Pacific/Midway", "Pacific/Niue", "Pacific/Pago_Pago"];
|
|
3
|
+
/** Member of {@link IANA_TIMEZONES}. */
|
|
2
4
|
export type IanaZone = (typeof IANA_TIMEZONES)[number];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const _locales: readonly ["af-ZA", "sq-AL", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE", "hy-AM", "az-AZ", "eu-ES", "be-BY", "bn-IN", "bs-BA", "bg-BG", "ca-ES", "zh-CN", "zh-HK", "zh-MO", "zh-SG", "zh-TW", "hr-HR", "cs-CZ", "da-DK", "nl-BE", "nl-NL", "en-AU", "en-BZ", "en-CA", "en-IE", "en-JM", "en-NZ", "en-PH", "en-ZA", "en-TT", "en-VI", "en-GB", "en-US", "en-ZW", "et-EE", "fo-FO", "fi-FI", "fr-BE", "fr-CA", "fr-FR", "fr-LU", "fr-MC", "fr-CH", "gl-ES", "ka-GE", "de-AT", "de-DE", "de-LI", "de-LU", "de-CH", "el-GR", "gu-IN", "he-IL", "hi-IN", "hu-HU", "is-IS", "id-ID", "it-IT", "it-CH", "ja-JP", "kn-IN", "kk-KZ", "kok-IN", "ko-KR", "lv-LV", "lt-LT", "mk-MK", "ms-BN", "ms-MY", "ml-IN", "mt-MT", "mr-IN", "mn-MN", "se-NO", "nb-NO", "nn-NO", "fa-IR", "pl-PL", "pt-BR", "pt-PT", "pa-IN", "ro-RO", "ru-RU", "sr-BA", "sr-CS", "sk-SK", "sl-SI", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-SV", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PY", "es-PE", "es-PR", "es-ES", "es-UY", "es-VE", "sw-KE", "sv-FI", "sv-SE", "syr-SY", "ta-IN", "te-IN", "th-TH", "tn-ZA", "tr-TR", "uk-UA", "uz-UZ", "vi-VN", "cy-GB", "xh-ZA", "zu-ZA"];
|
|
2
|
+
/** BCP 47 language tags used by locale-typed props. */
|
|
2
3
|
export type Locale = (typeof _locales)[number];
|
|
3
4
|
export {};
|