@servicetitan/anvil2 3.13.0 → 3.13.2
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 +30 -0
- package/dist/{AiMark-Bf0x9FF3.js → AiMark-DvxF40mc.js} +6 -5
- package/dist/{AiMark-Bf0x9FF3.js.map → AiMark-DvxF40mc.js.map} +1 -1
- package/dist/AiMark.js +1 -1
- package/dist/{Alert-S4D2DGx7.js → Alert-jMcoYnn3.js} +4 -4
- package/dist/{Alert-S4D2DGx7.js.map → Alert-jMcoYnn3.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-CGglhMfd.js → Announcement-CGTv6M31.js} +6 -5
- package/dist/Announcement-CGTv6M31.js.map +1 -0
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-Deh-Vgep.js → AnvilProvider-CgYBk3YP.js} +2 -2
- package/dist/{AnvilProvider-Deh-Vgep.js.map → AnvilProvider-CgYBk3YP.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-lLiNUrxq.js → Avatar-D31JDNrs.js} +2 -2
- package/dist/{Avatar-lLiNUrxq.js.map → Avatar-D31JDNrs.js.map} +1 -1
- package/dist/{Avatar-ioIwH1KT.js → Avatar-DXI-w1Vi.js} +2 -2
- package/dist/{Avatar-ioIwH1KT.js.map → Avatar-DXI-w1Vi.js.map} +1 -1
- package/dist/Avatar.js +2 -2
- package/dist/{Breadcrumbs-CR1od1rZ.js → Breadcrumbs-lrFI8Kq5.js} +2 -2
- package/dist/{Breadcrumbs-CR1od1rZ.js.map → Breadcrumbs-lrFI8Kq5.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Calendar-B-K7eGua.js → Calendar-BDIucj98.js} +2 -2
- package/dist/{Calendar-B-K7eGua.js.map → Calendar-BDIucj98.js.map} +1 -1
- package/dist/{Calendar-DZnnO3m_.js → Calendar-PMw2HhYu.js} +2 -2
- package/dist/{Calendar-DZnnO3m_.js.map → Calendar-PMw2HhYu.js.map} +1 -1
- package/dist/Calendar.js +2 -2
- package/dist/{Checkbox-D5-HJC6_.js → Checkbox-D6F6szD5.js} +2 -2
- package/dist/{Checkbox-D5-HJC6_.js.map → Checkbox-D6F6szD5.js.map} +1 -1
- package/dist/{Checkbox-CXfrIo6I.js → Checkbox-laf_32U2.js} +5 -5
- package/dist/{Checkbox-CXfrIo6I.js.map → Checkbox-laf_32U2.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-DLK31FkK.js → Chip-DbmQFaSy.js} +4 -4
- package/dist/{Chip-DLK31FkK.js.map → Chip-DbmQFaSy.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DataTable-ZczGbHZT.js → DataTable-B3Nctek_.js} +53 -52
- package/dist/DataTable-B3Nctek_.js.map +1 -0
- package/dist/DataTable.css +96 -115
- package/dist/{DateFieldRange-8JO-rJm-.js → DateFieldRange-Babt-rTV.js} +4 -4
- package/dist/{DateFieldRange-8JO-rJm-.js.map → DateFieldRange-Babt-rTV.js.map} +1 -1
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-CrTMTL9v.js → DateFieldSingle-DMcfJwxk.js} +4 -4
- package/dist/{DateFieldSingle-CrTMTL9v.js.map → DateFieldSingle-DMcfJwxk.js.map} +1 -1
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldYearless-Bo1V-4K2.js → DateFieldYearless-cX9tklg3.js} +5 -5
- package/dist/{DateFieldYearless-Bo1V-4K2.js.map → DateFieldYearless-cX9tklg3.js.map} +1 -1
- package/dist/DateFieldYearless.js +1 -1
- package/dist/{DateFieldYearlessRange-rj36AQhR.js → DateFieldYearlessRange-B5q1JJ4o.js} +4 -4
- package/dist/{DateFieldYearlessRange-rj36AQhR.js.map → DateFieldYearlessRange-B5q1JJ4o.js.map} +1 -1
- package/dist/DateFieldYearlessRange.js +1 -1
- package/dist/{DaysOfTheWeek-B39FZ-TR.js → DaysOfTheWeek-BGeOcpvH.js} +4 -4
- package/dist/{DaysOfTheWeek-B39FZ-TR.js.map → DaysOfTheWeek-BGeOcpvH.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-PcuDCqK7.js → Dialog-DHheusQG.js} +3 -3
- package/dist/{Dialog-PcuDCqK7.js.map → Dialog-DHheusQG.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-CEsvth0Z.js → Drawer-ZpS1rSAo.js} +4 -4
- package/dist/{Drawer-CEsvth0Z.js.map → Drawer-ZpS1rSAo.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/DrillDown.js +1 -1
- package/dist/{EditCard-CtWVEAsA.js → EditCard-Cfi2Vz2n.js} +2 -2
- package/dist/{EditCard-CtWVEAsA.js.map → EditCard-Cfi2Vz2n.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{FieldLabel-BFJdJP_W.js → FieldLabel-8AZcbhoO.js} +3 -3
- package/dist/{FieldLabel-BFJdJP_W.js.map → FieldLabel-8AZcbhoO.js.map} +1 -1
- package/dist/FieldLabel.js +1 -1
- package/dist/{FieldMessage-mTGdycSA.js → FieldMessage-8c9yA_kw.js} +4 -4
- package/dist/{FieldMessage-mTGdycSA.js.map → FieldMessage-8c9yA_kw.js.map} +1 -1
- package/dist/FieldMessage.js +1 -1
- package/dist/{FilterBar-lIGh4xIl.js → FilterBar-BBG7xChV.js} +5 -6
- package/dist/FilterBar-BBG7xChV.js.map +1 -0
- package/dist/FilterBar.js +1 -1
- package/dist/{Helper-Bq6Npkgh.js → Helper-BHpOgh7k.js} +2 -2
- package/dist/{Helper-Bq6Npkgh.js.map → Helper-BHpOgh7k.js.map} +1 -1
- package/dist/{InputMask-DJTXKPmK.js → InputMask-l91oggrN.js} +3 -3
- package/dist/{InputMask-DJTXKPmK.js.map → InputMask-l91oggrN.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{ListView-CPDHEpD-.js → ListView-CZhtsHeq.js} +2 -2
- package/dist/{ListView-CPDHEpD-.js.map → ListView-CZhtsHeq.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-Of-WaRWI.js → Listbox-XzguYMmw.js} +2 -2
- package/dist/{Listbox-Of-WaRWI.js.map → Listbox-XzguYMmw.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{Menu-CM0EndhK.js → Menu-BjPE_ODh.js} +45 -38
- package/dist/Menu-BjPE_ODh.js.map +1 -0
- package/dist/Menu.css +21 -21
- package/dist/Menu.js +1 -1
- package/dist/Menu.module-CMDgSO9k.js +13 -0
- package/dist/Menu.module-CMDgSO9k.js.map +1 -0
- package/dist/MultiSelectField.js +1 -1
- package/dist/{MultiSelectFieldSync-CFw607cm.js → MultiSelectFieldSync-LbZxIXJ1.js} +58 -34
- package/dist/MultiSelectFieldSync-LbZxIXJ1.js.map +1 -0
- package/dist/MultiSelectMenu.js +1 -1
- package/dist/{MultiSelectMenuSync-C6afc80f.js → MultiSelectMenuSync-jlTj0prP.js} +6 -5
- package/dist/{MultiSelectMenuSync-C6afc80f.js.map → MultiSelectMenuSync-jlTj0prP.js.map} +1 -1
- package/dist/{NumberField-ASyiQu5l.js → NumberField-KO51fZ_O.js} +4 -4
- package/dist/{NumberField-ASyiQu5l.js.map → NumberField-KO51fZ_O.js.map} +1 -1
- package/dist/NumberField.js +1 -1
- package/dist/{Page-D5NbV2Y8.js → Page-Z_ttFQJZ.js} +219 -148
- package/dist/Page-Z_ttFQJZ.js.map +1 -0
- package/dist/Page.css +123 -88
- package/dist/Page.js +1 -1
- package/dist/{Pagination-B4HCZNYw.js → Pagination-C0x5v_yk.js} +3 -3
- package/dist/{Pagination-B4HCZNYw.js.map → Pagination-C0x5v_yk.js.map} +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/{Popover-CjsE5FG0.js → Popover-BPg2nwm3.js} +5 -5
- package/dist/Popover-BPg2nwm3.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-C_HXy_Hx.js → ProgressBar-Dc8PTakM.js} +4 -5
- package/dist/{ProgressBar-C_HXy_Hx.js.map → ProgressBar-Dc8PTakM.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-B5KxT85j.js → Radio-BDBjGCJR.js} +5 -5
- package/dist/{Radio-B5KxT85j.js.map → Radio-BDBjGCJR.js.map} +1 -1
- package/dist/{Radio-CBQpuxLP.js → Radio-kONDu2uD.js} +2 -2
- package/dist/{Radio-CBQpuxLP.js.map → Radio-kONDu2uD.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{RichTextEditor-C7CCeqGW.js → RichTextEditor-U5xv9w8O.js} +10 -10
- package/dist/{RichTextEditor-C7CCeqGW.js.map → RichTextEditor-U5xv9w8O.js.map} +1 -1
- package/dist/RichTextEditor.js +1 -1
- package/dist/{SavedFiltersButton-BwnP6fuk.js → SavedFiltersButton-LViLmMde.js} +9 -9
- package/dist/{SavedFiltersButton-BwnP6fuk.js.map → SavedFiltersButton-LViLmMde.js.map} +1 -1
- package/dist/SavedFiltersButton.js +1 -1
- package/dist/{SelectCard-DbWOdnuI.js → SelectCard-BhVmrXxS.js} +3 -3
- package/dist/{SelectCard-DbWOdnuI.js.map → SelectCard-BhVmrXxS.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/SelectField.js +1 -1
- package/dist/{SelectFieldLabel-CujwhWLB.js → SelectFieldLabel-hJwER0Gc.js} +2 -2
- package/dist/{SelectFieldLabel-CujwhWLB.js.map → SelectFieldLabel-hJwER0Gc.js.map} +1 -1
- package/dist/{SelectFieldSync-BdYCHwPd.js → SelectFieldSync-DDL_XnSP.js} +6 -6
- package/dist/{SelectFieldSync-BdYCHwPd.js.map → SelectFieldSync-DDL_XnSP.js.map} +1 -1
- package/dist/SelectMenu.js +1 -1
- package/dist/{SelectMenuSync-DlqmXr04.js → SelectMenuSync-BdrLS1Jg.js} +4 -4
- package/dist/{SelectMenuSync-DlqmXr04.js.map → SelectMenuSync-BdrLS1Jg.js.map} +1 -1
- package/dist/{SelectOptions-Cz4mU7WG.js → SelectOptions-BbQaDz-p.js} +2 -2
- package/dist/{SelectOptions-Cz4mU7WG.js.map → SelectOptions-BbQaDz-p.js.map} +1 -1
- package/dist/{SelectTrigger-QkI2I04A.js → SelectTrigger-CKiKG_Z_.js} +3 -3
- package/dist/{SelectTrigger-QkI2I04A.js.map → SelectTrigger-CKiKG_Z_.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-C5C6JmDF.js → SelectTriggerBase-C53mpZ6G.js} +4 -4
- package/dist/{SelectTriggerBase-C5C6JmDF.js.map → SelectTriggerBase-C53mpZ6G.js.map} +1 -1
- package/dist/{StatusIcon-BwULopyH.js → StatusIcon-BqorkNJf.js} +13 -9
- package/dist/{StatusIcon-BwULopyH.js.map → StatusIcon-BqorkNJf.js.map} +1 -1
- package/dist/StatusIcon.css +16 -10
- package/dist/{Switch-MfbL3JVk.js → Switch-BuIZ8Peh.js} +3 -3
- package/dist/{Switch-MfbL3JVk.js.map → Switch-BuIZ8Peh.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Text-CEJHoh0p.js → Text-Ci-L0y2z.js} +2 -2
- package/dist/{Text-CEJHoh0p.js.map → Text-Ci-L0y2z.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-DTbZOxwI.js → TextField-C5db78Nb.js} +4 -4
- package/dist/{TextField-DTbZOxwI.js.map → TextField-C5db78Nb.js.map} +1 -1
- package/dist/{TextField-DWbDQfHY.js → TextField-CIF-Ibkg.js} +2 -2
- package/dist/{TextField-DWbDQfHY.js.map → TextField-CIF-Ibkg.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CSXwaDf6.js → Textarea-90BDBw_L.js} +4 -4
- package/dist/{Textarea-CSXwaDf6.js.map → Textarea-90BDBw_L.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-BlEOL-sk.js → ThemeProvider-D4dbBfHd.js} +33 -24
- package/dist/ThemeProvider-D4dbBfHd.js.map +1 -0
- package/dist/ThemeProvider.js +1 -1
- package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
- package/dist/{TimeField-BZQP8KSf.js → TimeField-C_K-uPrE.js} +4 -4
- package/dist/{TimeField-BZQP8KSf.js.map → TimeField-C_K-uPrE.js.map} +1 -1
- package/dist/TimeField.js +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toaster-C2z5rCrc.js → Toaster-CC34KRD9.js} +60 -32
- package/dist/Toaster-CC34KRD9.js.map +1 -0
- package/dist/{Toaster-B1xZq1bs.js → Toaster-CRoqsuBq.js} +41 -30
- package/dist/Toaster-CRoqsuBq.js.map +1 -0
- package/dist/{Toolbar-BDjgSnCU.js → Toolbar-C1fBdJiE.js} +5 -5
- package/dist/{Toolbar-BDjgSnCU.js.map → Toolbar-C1fBdJiE.js.map} +1 -1
- package/dist/{Toolbar-neulke7h.js → Toolbar-CKgEX5iE.js} +4 -4
- package/dist/{Toolbar-neulke7h.js.map → Toolbar-CKgEX5iE.js.map} +1 -1
- package/dist/Toolbar.js +2 -2
- package/dist/{ToolbarButtonToggle-C_Dq_qyS.js → ToolbarButtonToggle-DEPfji6E.js} +2 -2
- package/dist/{ToolbarButtonToggle-C_Dq_qyS.js.map → ToolbarButtonToggle-DEPfji6E.js.map} +1 -1
- package/dist/{Tooltip-CzrJgl98.js → Tooltip-DM63W1Np.js} +6 -6
- package/dist/Tooltip-DM63W1Np.js.map +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/TreeSelectField.js +1 -1
- package/dist/{TreeSelectFieldSync-D7ntJmDF.js → TreeSelectFieldSync-D7ou3LDX.js} +6 -6
- package/dist/{TreeSelectFieldSync-D7ntJmDF.js.map → TreeSelectFieldSync-D7ou3LDX.js.map} +1 -1
- package/dist/TreeSelectMenu.js +1 -1
- package/dist/{TreeSelectMenuSync-CTm2n1vJ.js → TreeSelectMenuSync-DVbQ-6UN.js} +5 -4
- package/dist/{TreeSelectMenuSync-CTm2n1vJ.js.map → TreeSelectMenuSync-DVbQ-6UN.js.map} +1 -1
- package/dist/{TypeaheadTextField-CEWM_N-N.js → TypeaheadTextField-C1uO5wgs.js} +4 -4
- package/dist/{TypeaheadTextField-CEWM_N-N.js.map → TypeaheadTextField-C1uO5wgs.js.map} +1 -1
- package/dist/TypeaheadTextField.js +1 -1
- package/dist/{YearlessDateInputWithPicker-D6N_mYDe.js → YearlessDateInputWithPicker-Cav1QK7J.js} +2 -2
- package/dist/{YearlessDateInputWithPicker-D6N_mYDe.js.map → YearlessDateInputWithPicker-Cav1QK7J.js.map} +1 -1
- package/dist/arrayIdsEqual-DnevhwqN.js +13 -0
- package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -0
- package/dist/beta.js +17 -16
- package/dist/beta.js.map +1 -1
- package/dist/{bulkActionTypes-jKqcdwuO.js → bulkActionTypes-DHvrhDC5.js} +2 -2
- package/dist/{bulkActionTypes-jKqcdwuO.js.map → bulkActionTypes-DHvrhDC5.js.map} +1 -1
- package/dist/check_circle-C3DDoVXp.js +8 -0
- package/dist/check_circle-C3DDoVXp.js.map +1 -0
- package/dist/{confirmationTypes-CG7xl50f.js → confirmationTypes-DeRtO_Cw.js} +2 -13
- package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -0
- package/dist/{filter-state-TEgOgQVy.js → filter-state-CaOTUqh1.js} +25 -30
- package/dist/filter-state-CaOTUqh1.js.map +1 -0
- package/dist/filter-state.css +27 -14
- package/dist/{floating-ui.react-dom-CyrxPiI-.js → floating-ui.react-dom-BIKT960u.js} +2 -2
- package/dist/{floating-ui.react-dom-CyrxPiI-.js.map → floating-ui.react-dom-BIKT960u.js.map} +1 -1
- package/dist/{index-lV_kQQH8.js → index-BObnJSIh.js} +2 -2
- package/dist/{index-lV_kQQH8.js.map → index-BObnJSIh.js.map} +1 -1
- package/dist/index.js +916 -58
- package/dist/index.js.map +1 -1
- package/dist/index2.css +407 -0
- package/dist/portalScopeClassNames--sU7fdKW.js +16 -0
- package/dist/portalScopeClassNames--sU7fdKW.js.map +1 -0
- package/dist/settings-Bsahaln8.js +10 -0
- package/dist/settings-Bsahaln8.js.map +1 -0
- package/dist/src/beta/components/Page/Page.d.ts +231 -0
- package/dist/src/beta/components/Page/Page.figma.d.ts +1 -0
- package/dist/src/beta/components/Page/PageContent.d.ts +22 -0
- package/dist/src/beta/components/Page/PageContext.d.ts +6 -0
- package/dist/src/beta/components/Page/PageFooter.d.ts +25 -0
- package/dist/src/beta/components/Page/PageHeader.d.ts +157 -0
- package/dist/src/beta/components/Page/PagePanel.d.ts +145 -0
- package/dist/src/beta/components/Page/PagePanelContent.d.ts +46 -0
- package/dist/src/beta/components/Page/PagePanelFooter.d.ts +34 -0
- package/dist/src/beta/components/Page/PagePanelHeader.d.ts +21 -0
- package/dist/src/beta/components/Page/PageSidebar.d.ts +57 -0
- package/dist/src/beta/components/Page/PageSidebarContext.d.ts +5 -0
- package/dist/src/beta/components/Page/PageSidebarHeader.d.ts +23 -0
- package/dist/src/beta/components/Page/index.d.ts +11 -0
- package/dist/src/beta/components/Page/internal/PagePanelContext.d.ts +11 -0
- package/dist/src/beta/components/Page/pageBreakpoint.d.ts +25 -0
- package/dist/src/beta/components/index.d.ts +1 -0
- package/dist/src/components/Menu/internal/menuSelectors.d.ts +4 -0
- package/dist/src/components/Menu/types.d.ts +24 -4
- package/dist/src/components/Toast/Toaster.d.ts +5 -4
- package/dist/src/components/Toast/internal/Toaster.d.ts +21 -0
- package/dist/src/integration-testing/beta-page-native-scroll.spec.d.ts +1 -0
- package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/dist/src/internal/functions/portalScopeClassNames.d.ts +15 -0
- package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +20 -0
- package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +8 -0
- package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +16 -0
- package/dist/{stripInlineMarkdown-BGdIj-cj.js → stripInlineMarkdown-aIDVZDGr.js} +2 -2
- package/dist/{stripInlineMarkdown-BGdIj-cj.js.map → stripInlineMarkdown-aIDVZDGr.js.map} +1 -1
- package/dist/{syncFilterUtils-9Pqeq8J4.js → syncFilterUtils-BPuSOFJn.js} +3 -3
- package/dist/{syncFilterUtils-9Pqeq8J4.js.map → syncFilterUtils-BPuSOFJn.js.map} +1 -1
- package/dist/{treeSync-tEqZxxHQ.js → treeSync-IYtVu8Jq.js} +3 -3
- package/dist/{treeSync-tEqZxxHQ.js.map → treeSync-IYtVu8Jq.js.map} +1 -1
- package/dist/{useDrilldown-D5iDWSx7.js → useDrilldown-CHukLz7z.js} +2 -2
- package/dist/{useDrilldown-D5iDWSx7.js.map → useDrilldown-CHukLz7z.js.map} +1 -1
- package/dist/{useInfiniteCombobox-DRd_Fp1w.js → useInfiniteCombobox-DNXkXJN5.js} +5 -5
- package/dist/{useInfiniteCombobox-DRd_Fp1w.js.map → useInfiniteCombobox-DNXkXJN5.js.map} +1 -1
- package/dist/{useInvalidateOnOptionsChange-CC_6sRp9.js → useInvalidateOnOptionsChange-C92u1JZc.js} +8 -6
- package/dist/useInvalidateOnOptionsChange-C92u1JZc.js.map +1 -0
- package/dist/usePrefersColorScheme-CwOF0TjZ.js +31 -0
- package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -0
- package/dist/usePrefersColorScheme.js +1 -1
- package/package.json +2 -2
- package/dist/Announcement-CGglhMfd.js.map +0 -1
- package/dist/DataTable-ZczGbHZT.js.map +0 -1
- package/dist/FilterBar-lIGh4xIl.js.map +0 -1
- package/dist/Menu-CM0EndhK.js.map +0 -1
- package/dist/Menu.module-CoyI86tZ.js +0 -13
- package/dist/Menu.module-CoyI86tZ.js.map +0 -1
- package/dist/MultiSelectFieldSync-CFw607cm.js.map +0 -1
- package/dist/Page-D5NbV2Y8.js.map +0 -1
- package/dist/Popover-CjsE5FG0.js.map +0 -1
- package/dist/ThemeProvider-BlEOL-sk.js.map +0 -1
- package/dist/Toaster-B1xZq1bs.js.map +0 -1
- package/dist/Toaster-C2z5rCrc.js.map +0 -1
- package/dist/Tooltip-CzrJgl98.js.map +0 -1
- package/dist/check_circle-CM0ukqXv.js +0 -6
- package/dist/check_circle-CM0ukqXv.js.map +0 -1
- package/dist/confirmationTypes-CG7xl50f.js.map +0 -1
- package/dist/error-DR_wWdYY.js +0 -6
- package/dist/error-DR_wWdYY.js.map +0 -1
- package/dist/filter-state-TEgOgQVy.js.map +0 -1
- package/dist/portalScopeClassNames-BTyv0FY8.js +0 -7
- package/dist/portalScopeClassNames-BTyv0FY8.js.map +0 -1
- package/dist/useInvalidateOnOptionsChange-CC_6sRp9.js.map +0 -1
- package/dist/usePrefersColorScheme-_hT7dK7_.js +0 -31
- package/dist/usePrefersColorScheme-_hT7dK7_.js.map +0 -1
- package/dist/warning-c4Wj1rI4.js +0 -6
- package/dist/warning-c4Wj1rI4.js.map +0 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Page component
|
|
4
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
5
|
+
*/
|
|
6
|
+
export type PageProps = ComponentPropsWithoutRef<"div">;
|
|
7
|
+
/**
|
|
8
|
+
* Page component for creating full-page layouts with navigation and content areas.
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Container for complete page layouts
|
|
12
|
+
* - Supports sidebar navigation with collapsible state
|
|
13
|
+
* - Header with breadcrumbs, chips, and action buttons
|
|
14
|
+
* - Main content area with its own native scroll container
|
|
15
|
+
* - Optional slide-out panels with responsive dialog fallback
|
|
16
|
+
* - Footer with layout utilities
|
|
17
|
+
* - Responsive design with mobile adaptations
|
|
18
|
+
* - Accessibility support with proper landmarks
|
|
19
|
+
* - Automatic tracking ID generation for analytics
|
|
20
|
+
* - Local storage persistence for sidebar state
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <Page>
|
|
24
|
+
* <Page.Sidebar currentPageTitle="Navigation">
|
|
25
|
+
* <Page.SidebarHeader>
|
|
26
|
+
* <Text variant="headline" el="h2">Navigation</Text>
|
|
27
|
+
* </Page.SidebarHeader>
|
|
28
|
+
* <SideNav>
|
|
29
|
+
* <SideNavLink pathname="/">Home</SideNavLink>
|
|
30
|
+
* </SideNav>
|
|
31
|
+
* </Page.Sidebar>
|
|
32
|
+
* <Page.Header
|
|
33
|
+
* title="Page Title"
|
|
34
|
+
* breadcrumbs={[{ href: "/", children: "Home" }]}
|
|
35
|
+
* actions={{ primary: { label: "Save", onClick: handleSave } }}
|
|
36
|
+
* />
|
|
37
|
+
* <Page.Content>
|
|
38
|
+
* <Text>Main content</Text>
|
|
39
|
+
* </Page.Content>
|
|
40
|
+
* <Page.Panel open={isPanelOpen} size="medium">
|
|
41
|
+
* <Page.Panel.Content>
|
|
42
|
+
* <Text>Panel content</Text>
|
|
43
|
+
* </Page.Panel.Content>
|
|
44
|
+
* </Page.Panel>
|
|
45
|
+
* <Page.Footer>
|
|
46
|
+
* <Text>Footer content</Text>
|
|
47
|
+
* </Page.Footer>
|
|
48
|
+
* </Page>
|
|
49
|
+
*/
|
|
50
|
+
export declare const Page: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
51
|
+
/**
|
|
52
|
+
* PageSidebar component for creating collapsible navigation sidebars.
|
|
53
|
+
*
|
|
54
|
+
* Features:
|
|
55
|
+
* - Collapsible sidebar with localStorage persistence
|
|
56
|
+
* - Responsive design with adaptive popover on mobile
|
|
57
|
+
* - Automatic tracking ID generation for analytics
|
|
58
|
+
* - Keyboard navigation and accessibility support
|
|
59
|
+
* - Toggle button with tooltip
|
|
60
|
+
* - Context provider for sidebar state
|
|
61
|
+
* - Mobile-friendly popover navigation
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* <Page.Sidebar currentPageTitle="Navigation">
|
|
65
|
+
* <Page.SidebarHeader>
|
|
66
|
+
* <Text variant="headline" el="h2">Sidebar Title</Text>
|
|
67
|
+
* </Page.SidebarHeader>
|
|
68
|
+
* <SideNav>
|
|
69
|
+
* <SideNavLink pathname="/">Home</SideNavLink>
|
|
70
|
+
* </SideNav>
|
|
71
|
+
* </Page.Sidebar>
|
|
72
|
+
*/
|
|
73
|
+
Sidebar: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
74
|
+
localStorageKey?: string;
|
|
75
|
+
"data-tracking-id"?: string;
|
|
76
|
+
currentPageTitle?: string;
|
|
77
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
78
|
+
/**
|
|
79
|
+
* PageSidebarHeader component for creating header sections within sidebars.
|
|
80
|
+
*
|
|
81
|
+
* Features:
|
|
82
|
+
* - Container for sidebar header content
|
|
83
|
+
* - Automatic visibility handling based on sidebar collapsed state
|
|
84
|
+
* - Supports all standard div props
|
|
85
|
+
* - Context-aware styling
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* <Page.SidebarHeader>
|
|
89
|
+
* <Text variant="headline" el="h2" size="medium">
|
|
90
|
+
* Sidebar Title
|
|
91
|
+
* </Text>
|
|
92
|
+
* </Page.SidebarHeader>
|
|
93
|
+
*/
|
|
94
|
+
SidebarHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
95
|
+
/**
|
|
96
|
+
* PageHeader component for creating page headers with navigation and actions.
|
|
97
|
+
*
|
|
98
|
+
* Features:
|
|
99
|
+
* - Page title with semantic heading
|
|
100
|
+
* - Breadcrumb navigation support
|
|
101
|
+
* - Status chips display
|
|
102
|
+
* - Primary and secondary action buttons
|
|
103
|
+
* - Preference action button/link
|
|
104
|
+
* - Responsive layout with fluid grid
|
|
105
|
+
* - Accessibility support with proper ARIA labels
|
|
106
|
+
* - Flexible layout configuration
|
|
107
|
+
* - Description content support
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* <Page.Header
|
|
111
|
+
* title="Page Title"
|
|
112
|
+
* breadcrumbs={[
|
|
113
|
+
* { href: "/", children: "Home" },
|
|
114
|
+
* { children: "Current Page" }
|
|
115
|
+
* ]}
|
|
116
|
+
* chips={[{ label: "Status" }]}
|
|
117
|
+
* actions={{
|
|
118
|
+
* primary: { label: "Save", onClick: handleSave },
|
|
119
|
+
* secondary: [{ label: "Cancel", onClick: handleCancel }]
|
|
120
|
+
* }}
|
|
121
|
+
* />
|
|
122
|
+
*/
|
|
123
|
+
Header: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "title"> & {
|
|
124
|
+
title: string | {
|
|
125
|
+
text: string;
|
|
126
|
+
onChange?: (title: string) => void | boolean;
|
|
127
|
+
editButtonLabel?: string;
|
|
128
|
+
editFieldLabel?: string;
|
|
129
|
+
confirmButtonLabel?: string;
|
|
130
|
+
cancelButtonLabel?: string;
|
|
131
|
+
};
|
|
132
|
+
breadcrumbs?: import('../../..').BreadcrumbsLinkProps[];
|
|
133
|
+
chips?: import('../../..').ChipProps[];
|
|
134
|
+
description?: import('react').ReactNode;
|
|
135
|
+
actions?: {
|
|
136
|
+
primary?: (Omit<import('../../..').ButtonProps, "appearance"> & {
|
|
137
|
+
label: string;
|
|
138
|
+
}) | (Omit<Omit<import('../../..').ButtonProps, "appearance"> & {
|
|
139
|
+
label: string;
|
|
140
|
+
}, "onClick"> & {
|
|
141
|
+
items: (Omit<import('../../..').ButtonProps, "appearance"> & {
|
|
142
|
+
label: string;
|
|
143
|
+
})[];
|
|
144
|
+
});
|
|
145
|
+
secondary?: (Omit<import('../../..').ButtonProps, "appearance"> & {
|
|
146
|
+
label: string;
|
|
147
|
+
})[];
|
|
148
|
+
};
|
|
149
|
+
preferenceAction?: (Omit<import('../../..').ButtonProps, "className" | "aria-label" | "size" | "icon" | "appearance"> & {
|
|
150
|
+
"aria-label": string;
|
|
151
|
+
}) | (Omit<import('../../..').ButtonLinkProps, "className" | "aria-label" | "size" | "icon" | "appearance"> & {
|
|
152
|
+
"aria-label": string;
|
|
153
|
+
});
|
|
154
|
+
layout?: import('../../..').LayoutProps;
|
|
155
|
+
} & import('react').RefAttributes<HTMLHeadElement>>;
|
|
156
|
+
/**
|
|
157
|
+
* PageContent component for the main content area of a page.
|
|
158
|
+
*
|
|
159
|
+
* Features:
|
|
160
|
+
* - Renders as a section element inside Page's main landmark
|
|
161
|
+
* - Native scroll container for long content at desktop breakpoints
|
|
162
|
+
* - Keyboard operable (Page Up / Page Down) when focus is within Page.Content
|
|
163
|
+
* - Responsive design
|
|
164
|
+
* - Portals into Page's content wrapper via context
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* <Page.Content>
|
|
168
|
+
* <Text>Main page content goes here</Text>
|
|
169
|
+
* <Button>Action Button</Button>
|
|
170
|
+
* </Page.Content>
|
|
171
|
+
*/
|
|
172
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
173
|
+
/**
|
|
174
|
+
* PagePanel component for creating slide-out panels or dialogs.
|
|
175
|
+
*
|
|
176
|
+
* Features:
|
|
177
|
+
* - Responsive design with dialog fallback on mobile
|
|
178
|
+
* - Multiple size variants (small, medium, large)
|
|
179
|
+
* - Optional padding control
|
|
180
|
+
* - Persistent or controlled open state
|
|
181
|
+
* - Automatic mobile dialog conversion
|
|
182
|
+
* - Keyboard navigation and accessibility support
|
|
183
|
+
* - Smooth animations and transitions
|
|
184
|
+
* - Compound component structure with Header, Content, and Footer
|
|
185
|
+
* - Sticky header and optional sticky footer around a scrollable content area
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* <Page.Panel open={isOpen} size="medium">
|
|
189
|
+
* <Page.Panel.Header>
|
|
190
|
+
* <Text variant="headline" el="h3">Panel Title</Text>
|
|
191
|
+
* </Page.Panel.Header>
|
|
192
|
+
* <Page.Panel.Content>
|
|
193
|
+
* <Text>Panel content</Text>
|
|
194
|
+
* </Page.Panel.Content>
|
|
195
|
+
* <Page.Panel.Footer>
|
|
196
|
+
* <Button onClick={() => setIsOpen(false)}>Close</Button>
|
|
197
|
+
* </Page.Panel.Footer>
|
|
198
|
+
* </Page.Panel>
|
|
199
|
+
*/
|
|
200
|
+
Panel: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
201
|
+
open?: boolean;
|
|
202
|
+
size?: "small" | "medium" | "large";
|
|
203
|
+
noPadding?: boolean;
|
|
204
|
+
defaultDrillDownIndex?: import('../../../components/DrillDown/internal/DrillDownContext').DrillDownContextProps["index"];
|
|
205
|
+
onDrillDownContextChange?: (context: import('../../../components/DrillDown/internal/DrillDownContext').DrillDownContextProps) => void;
|
|
206
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
207
|
+
Header: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
208
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
209
|
+
sticky?: boolean;
|
|
210
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
211
|
+
Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
212
|
+
sticky?: boolean;
|
|
213
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* PageFooter component for creating page footers with layout utilities.
|
|
217
|
+
*
|
|
218
|
+
* Features:
|
|
219
|
+
* - Semantic footer element
|
|
220
|
+
* - Layout utility props support
|
|
221
|
+
* - Responsive design
|
|
222
|
+
* - Accessibility support with proper footer landmark
|
|
223
|
+
* - Flexible content positioning
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* <Page.Footer>
|
|
227
|
+
* <Text>Footer content with layout utilities</Text>
|
|
228
|
+
* </Page.Footer>
|
|
229
|
+
*/
|
|
230
|
+
Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('../../..').LayoutUtilProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
231
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the PageContent component
|
|
4
|
+
* @extends ComponentPropsWithoutRef<"section">
|
|
5
|
+
*/
|
|
6
|
+
export type PageContentProps = ComponentPropsWithoutRef<"section">;
|
|
7
|
+
/**
|
|
8
|
+
* PageContent component for the main content area of a page.
|
|
9
|
+
*
|
|
10
|
+
* Features:
|
|
11
|
+
* - Renders as a section element inside Page's main landmark
|
|
12
|
+
* - Portals into Page's content wrapper via context, which is the native scroll
|
|
13
|
+
* container at desktop breakpoints — sibling sections scroll together as one
|
|
14
|
+
* - Responsive design
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Page.Content>
|
|
18
|
+
* <Text>Main page content goes here</Text>
|
|
19
|
+
* <Button>Action Button</Button>
|
|
20
|
+
* </Page.Content>
|
|
21
|
+
*/
|
|
22
|
+
export declare const PageContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { LayoutUtilProps } from '../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the PageFooter component
|
|
5
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
6
|
+
* @extends LayoutUtilProps
|
|
7
|
+
*/
|
|
8
|
+
export type PageFooterProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps;
|
|
9
|
+
/**
|
|
10
|
+
* PageFooter component for creating page footers with layout utilities.
|
|
11
|
+
*
|
|
12
|
+
* Features:
|
|
13
|
+
* - Semantic footer element
|
|
14
|
+
* - Layout utility props support
|
|
15
|
+
* - Responsive design
|
|
16
|
+
* - Accessibility support with proper footer landmark
|
|
17
|
+
* - Flexible content positioning
|
|
18
|
+
* - Portals into Page's footer slot via context
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <Page.Footer>
|
|
22
|
+
* <Text>Footer content with layout utilities</Text>
|
|
23
|
+
* </Page.Footer>
|
|
24
|
+
*/
|
|
25
|
+
export declare const PageFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & LayoutUtilProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { ButtonProps, ButtonLinkProps, BreadcrumbsLinkProps, ChipProps } from '../../../components';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
import { LayoutProps } from '../../../components/Layout';
|
|
4
|
+
/**
|
|
5
|
+
* Props for page header action buttons
|
|
6
|
+
*/
|
|
7
|
+
type PageHeaderActionProps = Omit<ButtonProps, "appearance"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Label text for the action button
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Props for a page header action that opens a menu instead of invoking a single
|
|
15
|
+
* handler. `onClick` is omitted because the whole button opens the menu -- an
|
|
16
|
+
* action carrying both a handler and items would be a split button, which
|
|
17
|
+
* Anvil does not support.
|
|
18
|
+
*/
|
|
19
|
+
type PageHeaderMenuActionProps = Omit<PageHeaderActionProps, "onClick"> & {
|
|
20
|
+
/**
|
|
21
|
+
* Actions listed in the menu this button opens
|
|
22
|
+
*/
|
|
23
|
+
items: PageHeaderActionProps[];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Props for page header actions configuration
|
|
27
|
+
*/
|
|
28
|
+
type PageHeaderActionsProps = {
|
|
29
|
+
/**
|
|
30
|
+
* Primary action button. Pass `items` instead of `onClick` to render a
|
|
31
|
+
* primary button that opens a menu of actions.
|
|
32
|
+
*/
|
|
33
|
+
primary?: PageHeaderActionProps | PageHeaderMenuActionProps;
|
|
34
|
+
/**
|
|
35
|
+
* Array of secondary action buttons
|
|
36
|
+
*/
|
|
37
|
+
secondary?: PageHeaderActionProps[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Base props for preference actions
|
|
41
|
+
*/
|
|
42
|
+
type BasePreferenceProps = {
|
|
43
|
+
/**
|
|
44
|
+
* Accessible label for the preference action
|
|
45
|
+
*/
|
|
46
|
+
"aria-label": string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Props for preference button actions
|
|
50
|
+
*/
|
|
51
|
+
type PreferenceButtonProps = Omit<ButtonProps, "aria-label" | "icon" | "appearance" | "size" | "className"> & BasePreferenceProps;
|
|
52
|
+
/**
|
|
53
|
+
* Props for preference link actions
|
|
54
|
+
*/
|
|
55
|
+
type PreferenceLinkProps = Omit<ButtonLinkProps, "aria-label" | "icon" | "appearance" | "size" | "className"> & BasePreferenceProps;
|
|
56
|
+
type PageHeaderTitleConfig = {
|
|
57
|
+
text: string;
|
|
58
|
+
onChange?: (title: string) => void | boolean;
|
|
59
|
+
editButtonLabel?: string;
|
|
60
|
+
editFieldLabel?: string;
|
|
61
|
+
confirmButtonLabel?: string;
|
|
62
|
+
cancelButtonLabel?: string;
|
|
63
|
+
};
|
|
64
|
+
type PageHeaderTitle = PageHeaderTitleConfig["text"] | PageHeaderTitleConfig;
|
|
65
|
+
/**
|
|
66
|
+
* Props for the PageHeader component
|
|
67
|
+
* @extends ComponentPropsWithoutRef<"header">
|
|
68
|
+
*/
|
|
69
|
+
export type PageHeaderProps = Omit<ComponentPropsWithoutRef<"header">, "title"> & {
|
|
70
|
+
/**
|
|
71
|
+
* Main title of the page
|
|
72
|
+
*/
|
|
73
|
+
title: PageHeaderTitle;
|
|
74
|
+
/**
|
|
75
|
+
* Breadcrumb navigation links
|
|
76
|
+
*/
|
|
77
|
+
breadcrumbs?: BreadcrumbsLinkProps[];
|
|
78
|
+
/**
|
|
79
|
+
* Status chips to display
|
|
80
|
+
*/
|
|
81
|
+
chips?: ChipProps[];
|
|
82
|
+
/**
|
|
83
|
+
* Description text or content below the title
|
|
84
|
+
*/
|
|
85
|
+
description?: ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Primary and secondary action buttons
|
|
88
|
+
*/
|
|
89
|
+
actions?: PageHeaderActionsProps;
|
|
90
|
+
/**
|
|
91
|
+
* Preference action button or link
|
|
92
|
+
*/
|
|
93
|
+
preferenceAction?: PreferenceButtonProps | PreferenceLinkProps;
|
|
94
|
+
/**
|
|
95
|
+
* Layout configuration for the header
|
|
96
|
+
*/
|
|
97
|
+
layout?: LayoutProps;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* PageHeader component for creating page headers with navigation and actions.
|
|
101
|
+
*
|
|
102
|
+
* Features:
|
|
103
|
+
* - Page title with semantic heading
|
|
104
|
+
* - Breadcrumb navigation support
|
|
105
|
+
* - Status chips display
|
|
106
|
+
* - Primary and secondary action buttons
|
|
107
|
+
* - Preference action button/link
|
|
108
|
+
* - Responsive layout with fluid grid
|
|
109
|
+
* - Accessibility support with proper ARIA labels
|
|
110
|
+
* - Flexible layout configuration
|
|
111
|
+
* - Description content support
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* <Page.Header
|
|
115
|
+
* title="Page Title"
|
|
116
|
+
* breadcrumbs={[
|
|
117
|
+
* { href: "/", children: "Home" },
|
|
118
|
+
* { children: "Current Page" }
|
|
119
|
+
* ]}
|
|
120
|
+
* chips={[{ label: "Status" }]}
|
|
121
|
+
* actions={{
|
|
122
|
+
* primary: { label: "Save", onClick: handleSave },
|
|
123
|
+
* secondary: [{ label: "Cancel", onClick: handleCancel }]
|
|
124
|
+
* }}
|
|
125
|
+
* />
|
|
126
|
+
*/
|
|
127
|
+
export declare const PageHeader: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "title"> & {
|
|
128
|
+
/**
|
|
129
|
+
* Main title of the page
|
|
130
|
+
*/
|
|
131
|
+
title: PageHeaderTitle;
|
|
132
|
+
/**
|
|
133
|
+
* Breadcrumb navigation links
|
|
134
|
+
*/
|
|
135
|
+
breadcrumbs?: BreadcrumbsLinkProps[];
|
|
136
|
+
/**
|
|
137
|
+
* Status chips to display
|
|
138
|
+
*/
|
|
139
|
+
chips?: ChipProps[];
|
|
140
|
+
/**
|
|
141
|
+
* Description text or content below the title
|
|
142
|
+
*/
|
|
143
|
+
description?: ReactNode;
|
|
144
|
+
/**
|
|
145
|
+
* Primary and secondary action buttons
|
|
146
|
+
*/
|
|
147
|
+
actions?: PageHeaderActionsProps;
|
|
148
|
+
/**
|
|
149
|
+
* Preference action button or link
|
|
150
|
+
*/
|
|
151
|
+
preferenceAction?: PreferenceButtonProps | PreferenceLinkProps;
|
|
152
|
+
/**
|
|
153
|
+
* Layout configuration for the header
|
|
154
|
+
*/
|
|
155
|
+
layout?: LayoutProps;
|
|
156
|
+
} & import('react').RefAttributes<HTMLHeadElement>>;
|
|
157
|
+
export {};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { DrillDownContextProps } from '../../../components/DrillDown/internal/DrillDownContext';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the PagePanel component
|
|
5
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
6
|
+
*/
|
|
7
|
+
export type PagePanelProps = ComponentPropsWithoutRef<"div"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the panel is open
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Size of the panel
|
|
15
|
+
* @default "medium"
|
|
16
|
+
*/
|
|
17
|
+
size?: "small" | "medium" | "large";
|
|
18
|
+
/**
|
|
19
|
+
* Whether to remove default padding from the panel
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
noPadding?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the default DrillDown index when used in an uncontrolled way
|
|
25
|
+
*/
|
|
26
|
+
defaultDrillDownIndex?: DrillDownContextProps["index"];
|
|
27
|
+
/**
|
|
28
|
+
* Callback to pass context to useDrillDown hook
|
|
29
|
+
*/
|
|
30
|
+
onDrillDownContextChange?: (context: DrillDownContextProps) => void;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* PagePanel component for creating slide-out panels or dialogs.
|
|
34
|
+
*
|
|
35
|
+
* Features:
|
|
36
|
+
* - Responsive design with dialog fallback on mobile
|
|
37
|
+
* - Multiple size variants (small, medium, large)
|
|
38
|
+
* - Optional padding control
|
|
39
|
+
* - Persistent or controlled open state
|
|
40
|
+
* - Automatic mobile dialog conversion
|
|
41
|
+
* - Keyboard navigation and accessibility support
|
|
42
|
+
* - Smooth animations and transitions
|
|
43
|
+
* - Compound component structure with Header, Content, and Footer
|
|
44
|
+
* - Sticky header and optional sticky footer around a scrollable content area
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <Page.Panel open={isOpen} size="medium">
|
|
48
|
+
* <Page.Panel.Header>
|
|
49
|
+
* <Text variant="headline" el="h3">Panel Title</Text>
|
|
50
|
+
* </Page.Panel.Header>
|
|
51
|
+
* <Page.Panel.Content>
|
|
52
|
+
* <Text>Panel content goes here</Text>
|
|
53
|
+
* </Page.Panel.Content>
|
|
54
|
+
* <Page.Panel.Footer sticky>
|
|
55
|
+
* <Button appearance="primary" onClick={() => setIsOpen(false)}>Save</Button>
|
|
56
|
+
* </Page.Panel.Footer>
|
|
57
|
+
* </Page.Panel>
|
|
58
|
+
*/
|
|
59
|
+
export declare const PagePanel: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
/**
|
|
61
|
+
* Whether the panel is open
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
open?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Size of the panel
|
|
67
|
+
* @default "medium"
|
|
68
|
+
*/
|
|
69
|
+
size?: "small" | "medium" | "large";
|
|
70
|
+
/**
|
|
71
|
+
* Whether to remove default padding from the panel
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
noPadding?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the default DrillDown index when used in an uncontrolled way
|
|
77
|
+
*/
|
|
78
|
+
defaultDrillDownIndex?: DrillDownContextProps["index"];
|
|
79
|
+
/**
|
|
80
|
+
* Callback to pass context to useDrillDown hook
|
|
81
|
+
*/
|
|
82
|
+
onDrillDownContextChange?: (context: DrillDownContextProps) => void;
|
|
83
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
84
|
+
/**
|
|
85
|
+
* Header component for the panel that stays pinned to the top of the panel's scrollable area.
|
|
86
|
+
*
|
|
87
|
+
* Features:
|
|
88
|
+
* - Sticky positioning at the top of the panel's scrollable content
|
|
89
|
+
* - Proper semantic HTML structure
|
|
90
|
+
* - Consistent padding and styling with the design system
|
|
91
|
+
* - Supports all standard header element props
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* <Page.Panel.Header>
|
|
95
|
+
* <Text variant="headline" el="h3">Panel Title</Text>
|
|
96
|
+
* </Page.Panel.Header>
|
|
97
|
+
*/
|
|
98
|
+
Header: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
99
|
+
/**
|
|
100
|
+
* Content container for the panel that holds the main scrollable content area.
|
|
101
|
+
*
|
|
102
|
+
* Features:
|
|
103
|
+
* - Grows to fill the space between the panel's header and footer
|
|
104
|
+
* - Scrolls independently of the header and footer once content overflows
|
|
105
|
+
* - Optional sticky positioning below the header, for a second sticky region (e.g. a filter bar)
|
|
106
|
+
* - Proper semantic HTML structure
|
|
107
|
+
* - Consistent padding and styling with the design system
|
|
108
|
+
* - Supports all standard div element props
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* <Page.Panel.Content>
|
|
112
|
+
* <Text>Panel content goes here</Text>
|
|
113
|
+
* </Page.Panel.Content>
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* // A second, sticky Content region acting as a sub-header below Page.Panel.Header
|
|
117
|
+
* <Page.Panel.Content sticky>
|
|
118
|
+
* <TextField placeholder="Filter results..." />
|
|
119
|
+
* </Page.Panel.Content>
|
|
120
|
+
* <Page.Panel.Content>
|
|
121
|
+
* <Text>Scrollable results</Text>
|
|
122
|
+
* </Page.Panel.Content>
|
|
123
|
+
*/
|
|
124
|
+
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
125
|
+
sticky?: boolean;
|
|
126
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
127
|
+
/**
|
|
128
|
+
* Footer component for the panel that displays action buttons and controls.
|
|
129
|
+
*
|
|
130
|
+
* Features:
|
|
131
|
+
* - Flex layout that right-aligns action buttons and wraps on overflow
|
|
132
|
+
* - Optional sticky positioning at the bottom of the panel
|
|
133
|
+
* - Proper semantic HTML structure
|
|
134
|
+
* - Consistent padding and styling with the design system
|
|
135
|
+
* - Supports all standard footer element props
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* <Page.Panel.Footer sticky>
|
|
139
|
+
* <Button appearance="primary" onClick={handleSave}>Save</Button>
|
|
140
|
+
* </Page.Panel.Footer>
|
|
141
|
+
*/
|
|
142
|
+
Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
143
|
+
sticky?: boolean;
|
|
144
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
145
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the PagePanelContent component
|
|
4
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
5
|
+
*/
|
|
6
|
+
export type PagePanelContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
7
|
+
/**
|
|
8
|
+
* When true, the content will stick below the header during scroll, acting as a second header.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Content container for the panel that holds the main scrollable content area.
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Grows to fill the space between the panel's header and footer
|
|
18
|
+
* - Scrolls independently of the header and footer once content overflows
|
|
19
|
+
* - Optional sticky positioning below the header, for a second sticky region (e.g. a filter bar)
|
|
20
|
+
* - Proper semantic HTML structure
|
|
21
|
+
* - Consistent padding and styling with the design system
|
|
22
|
+
* - Supports all standard div element props
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // Basic content
|
|
26
|
+
* <Page.Panel.Content>
|
|
27
|
+
* <Text>Panel content goes here</Text>
|
|
28
|
+
* </Page.Panel.Content>
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Sticky content (e.g., a search field that remains visible while scrolling)
|
|
32
|
+
* <Page.Panel.Header>Panel Title</Page.Panel.Header>
|
|
33
|
+
* <Page.Panel.Content sticky>
|
|
34
|
+
* <TextField placeholder="Filter results..." />
|
|
35
|
+
* </Page.Panel.Content>
|
|
36
|
+
* <Page.Panel.Content>
|
|
37
|
+
* <Text>Scrollable results</Text>
|
|
38
|
+
* </Page.Panel.Content>
|
|
39
|
+
*/
|
|
40
|
+
export declare const PagePanelContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
41
|
+
/**
|
|
42
|
+
* When true, the content will stick below the header during scroll, acting as a second header.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
sticky?: boolean;
|
|
46
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the PagePanelFooter component
|
|
4
|
+
* @extends ComponentPropsWithoutRef<"footer">
|
|
5
|
+
*/
|
|
6
|
+
export type PagePanelFooterProps = ComponentPropsWithoutRef<"footer"> & {
|
|
7
|
+
/**
|
|
8
|
+
* When true, the footer will stick to the bottom of the panel's scrollable area.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Footer component for the panel that displays action buttons and controls.
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Flex layout that right-aligns action buttons and wraps on overflow
|
|
18
|
+
* - Optional sticky positioning at the bottom of the panel
|
|
19
|
+
* - Proper semantic HTML structure
|
|
20
|
+
* - Consistent padding and styling with the design system
|
|
21
|
+
* - Supports all standard footer element props
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <Page.Panel.Footer sticky>
|
|
25
|
+
* <Button appearance="primary" onClick={handleSave}>Save</Button>
|
|
26
|
+
* </Page.Panel.Footer>
|
|
27
|
+
*/
|
|
28
|
+
export declare const PagePanelFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
29
|
+
/**
|
|
30
|
+
* When true, the footer will stick to the bottom of the panel's scrollable area.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
sticky?: boolean;
|
|
34
|
+
} & import('react').RefAttributes<HTMLElement>>;
|