@cloudoperators/juno-ui-components 2.31.0 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/AppBody.component-C9lIZEeC.js +5 -0
- package/build/AppBody.js +1 -1
- package/build/AppShell.component-Hk_XAW1E.js +1 -0
- package/build/AppShell.js +1 -1
- package/build/{AppShellProvider.component-CoGCOuox.js → AppShellProvider.component-Be1Q5mjZ.js} +1 -1
- package/build/AppShellProvider.js +1 -1
- package/build/Badge.component-CLaF9Up0.js +15 -0
- package/build/Badge.js +1 -1
- package/build/Box.component-V4TDnAgb.js +10 -0
- package/build/Box.js +1 -1
- package/build/Breadcrumb.component-BSGoKK2S.js +1 -0
- package/build/Breadcrumb.js +1 -1
- package/build/BreadcrumbItem.component-C99Dj0IW.js +14 -0
- package/build/BreadcrumbItem.js +1 -1
- package/build/Button.component-liw0UuGT.js +56 -0
- package/build/Button.js +1 -1
- package/build/ButtonRow.component-CzhKhK_N.js +1 -0
- package/build/ButtonRow.js +1 -1
- package/build/Checkbox.component-DgDvGt3W.js +77 -0
- package/build/Checkbox.js +1 -1
- package/build/CheckboxGroup.component-B_uoXPNo.js +33 -0
- package/build/CheckboxGroup.js +1 -1
- package/build/CheckboxRow.component-DzLTV4cd.js +1 -0
- package/build/CheckboxRow.js +1 -1
- package/build/Code.component-mlP3SwWy.js +4 -0
- package/build/Code.js +1 -1
- package/build/CodeBlock.component-CZxYJPlk.js +45 -0
- package/build/CodeBlock.js +1 -1
- package/build/ComboBox.component-CVfbabwk.js +115 -0
- package/build/ComboBox.js +1 -1
- package/build/ComboBoxOption.js +39 -1
- package/build/Container.component-xJsCyUG8.js +4 -0
- package/build/Container.js +1 -1
- package/build/ContentAreaToolbar.component-HPXE3xVK.js +8 -0
- package/build/ContentAreaToolbar.js +1 -1
- package/build/ContentContainer.component-8A2F9nlM.js +8 -0
- package/build/ContentContainer.js +1 -1
- package/build/ContentHeading.component-iyxxB3V8.js +6 -0
- package/build/ContentHeading.js +1 -1
- package/build/ContextMenu.component-B24LaAwt.js +16 -0
- package/build/ContextMenu.js +1 -1
- package/build/DataGrid.component-Dt5OQxY5.js +4 -0
- package/build/DataGrid.js +1 -1
- package/build/DataGridCell.component-Gy81mVxf.js +13 -0
- package/build/DataGridCell.js +1 -1
- package/build/DataGridCheckboxCell.js +1 -1
- package/build/DataGridFoot.js +1 -1
- package/build/DataGridHeadCell.component-4DKn7eQ9.js +6 -0
- package/build/DataGridHeadCell.js +1 -1
- package/build/DataGridRow.component-CBEnaLYU.js +3 -0
- package/build/DataGridRow.js +1 -1
- package/build/DataGridToolbar.component-BfgKal7m.js +10 -0
- package/build/DataGridToolbar.js +1 -1
- package/build/{DateTimePicker.component-BMkIzxY0.js → DateTimePicker.component-BysBjc0a.js} +3 -3
- package/build/DateTimePicker.js +1 -1
- package/build/Form.component-C-FIXwo-.js +7 -0
- package/build/Form.js +1 -1
- package/build/FormHint.component-C7TZlbwG.js +10 -0
- package/build/FormHint.js +1 -1
- package/build/FormRow.component-CbFLRaDK.js +3 -0
- package/build/FormRow.component-OkQblu_q.js +3 -0
- package/build/FormRow.js +1 -1
- package/build/FormSection.component-DDGHfPV5.js +8 -0
- package/build/FormSection.js +1 -1
- package/build/FormattedText.component-Oc4b8IPi.js +1 -0
- package/build/FormattedText.js +1 -1
- package/build/Grid.component-BG4AMsb5.js +1 -0
- package/build/Grid.js +1 -1
- package/build/GridColumn.component-BmzNy9N0.js +4 -0
- package/build/GridColumn.js +1 -1
- package/build/GridRow.component-Cf7FxOjh.js +5 -0
- package/build/GridRow.js +1 -1
- package/build/HeaderContainer.component-CWj3SLQY.js +13 -0
- package/build/HeaderContainer.js +1 -0
- package/build/Icon.component-ClhnejN0.js +20 -0
- package/build/Icon.js +1 -1
- package/build/InputGroup.component-Cjl_JYFs.js +4 -0
- package/build/InputGroup.js +1 -1
- package/build/IntroBox.component-BmoEq45u.js +31 -0
- package/build/IntroBox.js +1 -1
- package/build/JsonViewer.component-lHoI-LCD.js +1 -0
- package/build/JsonViewer.js +1 -1
- package/build/Label.component-BYZfB1oK.js +37 -0
- package/build/Label.js +1 -1
- package/build/LoadingIndicator.component-CsNzFwe2.js +1 -0
- package/build/LoadingIndicator.js +1 -1
- package/build/MainContainer.component-DV_tQlek.js +5 -0
- package/build/MainContainer.js +1 -1
- package/build/MainContainerInner.component-DhiRjgBx.js +14 -0
- package/build/MainContainerInner.js +1 -1
- package/build/MainTabs.component-DtTHcxTg.js +1 -0
- package/build/MainTabs.js +1 -1
- package/build/Menu.component-vFmV6jCc.js +17 -0
- package/build/Menu.js +1 -1
- package/build/MenuItem.component-ddsy5_so.js +32 -0
- package/build/MenuItem.js +1 -1
- package/build/MenuSection.component-CteHwLJX.js +11 -0
- package/build/MenuSection.js +1 -1
- package/build/Message.component-A7V1Flcl.js +27 -0
- package/build/Message.js +1 -1
- package/build/Modal.js +31 -1
- package/build/ModalFooter.component-BK0doJJO.js +11 -0
- package/build/ModalFooter.js +1 -1
- package/build/NativeSelect.component-BaWaK11P.js +63 -0
- package/build/NativeSelect.js +1 -1
- package/build/NativeSelectOption.component-BWRxjRz0.js +1 -0
- package/build/NativeSelectOption.js +1 -1
- package/build/NativeSelectOptionGroup.component-GFuGvLsz.js +1 -0
- package/build/NativeSelectOptionGroup.js +1 -1
- package/build/Navigation.component-DaabNHev.js +3 -0
- package/build/Navigation.js +1 -1
- package/build/NavigationItem.component-DI0SMWsi.js +19 -0
- package/build/NavigationItem.js +1 -1
- package/build/PageFooter.component-CeD5DCjY.js +18 -0
- package/build/PageFooter.js +1 -1
- package/build/PageHeader.component-DqYR6Yyo.js +33 -0
- package/build/PageHeader.js +1 -1
- package/build/Pagination.js +5 -1
- package/build/Panel.js +33 -1
- package/build/PanelBody.js +4 -1
- package/build/PanelFooter.js +11 -1
- package/build/Pill.component-BjuSYnxs.js +28 -0
- package/build/Pill.js +1 -1
- package/build/PortalProvider.component-CVldWJIG.js +1 -0
- package/build/PortalProvider.js +1 -1
- package/build/Radio.component-DiZc-eBh.js +67 -0
- package/build/Radio.js +1 -1
- package/build/RadioGroup.component-XH90kWYR.js +33 -0
- package/build/RadioGroup.js +1 -1
- package/build/RadioRow.component-B-HE4xRC.js +1 -0
- package/build/RadioRow.js +1 -1
- package/build/SearchInput.component-QwymruVn.js +1 -0
- package/build/SearchInput.js +1 -1
- package/build/SecretText.component-jsJWpOK1.js +40 -0
- package/build/SecretText.js +1 -40
- package/build/Select.component-B61pnCf7.js +64 -0
- package/build/Select.js +1 -1
- package/build/SelectOption.component-GxWRy28M.js +42 -0
- package/build/SelectOption.js +1 -1
- package/build/{Select.component-DNPTrdQs.js → SelectRow.component-DKK8MJOk.js} +2 -2
- package/build/SelectRow.js +1 -1
- package/build/ShadowRoot.component-DU_Ra-K3.js +1 -0
- package/build/ShadowRoot.js +1 -1
- package/build/SideNavigation.component-D9IErRcv.js +4 -0
- package/build/SideNavigation.js +1 -1
- package/build/SideNavigationItem.component-5ChkLMgz.js +17 -0
- package/build/SideNavigationItem.js +1 -1
- package/build/Spinner.component-CO095KvL.js +16 -0
- package/build/Spinner.js +1 -1
- package/build/Stack.component-Pe-1jf3W.js +5 -0
- package/build/Stack.js +1 -1
- package/build/{StyleProvider.component-DpOVgdlo.js → StyleProvider.component-CqbWBDF7.js} +1 -1
- package/build/StyleProvider.js +1 -1
- package/build/Switch.component-1reoDymi.js +54 -0
- package/build/Switch.js +1 -1
- package/build/{SwitchRow.component-BNceFC47.js → SwitchRow.component-CmboUtfc.js} +1 -1
- package/build/SwitchRow.js +1 -1
- package/build/Tab.component-SEUcCOS8.js +16 -0
- package/build/Tab.js +1 -1
- package/build/TabList.component-sHDWBb5I.js +12 -0
- package/build/TabList.js +1 -1
- package/build/TabNavigation.component-Cc2F9AVl.js +8 -0
- package/build/TabNavigation.js +1 -1
- package/build/TabNavigationItem.component-D9KvESL0.js +22 -0
- package/build/TabNavigationItem.js +1 -1
- package/build/TabPanel.component-DlnS5hSa.js +1 -0
- package/build/TabPanel.js +1 -1
- package/build/Tabs.component-BRM3cTLV.js +1 -0
- package/build/Tabs.js +1 -1
- package/build/TextInput.component-AyfJ3U8z.js +59 -0
- package/build/TextInput.js +1 -1
- package/build/TextInputRow.component-fXXdeFjF.js +1 -0
- package/build/TextInputRow.js +1 -1
- package/build/Textarea.component-DgYR9jem.js +58 -0
- package/build/Textarea.js +1 -1
- package/build/{Textarea.component-4fIvQVeJ.js → TextareaRow.component-DcyMqrAg.js} +2 -2
- package/build/TextareaRow.js +1 -1
- package/build/{ThemeToggle.component-CNb4Nbso.js → ThemeToggle.component-C15TCL63.js} +1 -1
- package/build/ThemeToggle.js +1 -1
- package/build/Toast.component-x0WA9szy.js +12 -0
- package/build/Toast.js +1 -1
- package/build/Tooltip.component-AWJGzfXT.js +1 -0
- package/build/Tooltip.js +1 -1
- package/build/TooltipContent.component-Go8u2Bz4.js +14 -0
- package/build/TooltipContent.js +1 -1
- package/build/TooltipTrigger.component-CYpGzL4I.js +1 -0
- package/build/TooltipTrigger.js +1 -1
- package/build/TopNavigation.component-CkGidYsu.js +5 -0
- package/build/TopNavigation.js +1 -1
- package/build/TopNavigationItem.component-CqIlCTjB.js +26 -0
- package/build/TopNavigationItem.js +1 -1
- package/build/components/AppShell/AppShell.component.d.ts.map +1 -1
- package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts +17 -0
- package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts.map +1 -0
- package/build/components/ContentAreaToolbar/index.d.ts +2 -0
- package/build/components/ContentAreaToolbar/index.d.ts.map +1 -0
- package/build/components/ContentContainer/ContentContainer.component.d.ts +14 -7
- package/build/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
- package/build/components/ContentHeading/ContentHeading.component.d.ts +18 -9
- package/build/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
- package/build/components/HeaderContainer/HeaderContainer.component.d.ts +10 -0
- package/build/components/HeaderContainer/HeaderContainer.component.d.ts.map +1 -0
- package/build/components/HeaderContainer/index.d.ts +2 -0
- package/build/components/HeaderContainer/index.d.ts.map +1 -0
- package/build/components/Pagination/Pagination.component.d.ts +72 -0
- package/build/components/Pagination/Pagination.component.d.ts.map +1 -0
- package/build/components/Pagination/index.d.ts +2 -0
- package/build/components/Pagination/index.d.ts.map +1 -0
- package/build/components/Panel/Panel.component.d.ts +39 -0
- package/build/components/Panel/Panel.component.d.ts.map +1 -0
- package/build/components/Panel/index.d.ts +2 -0
- package/build/components/Panel/index.d.ts.map +1 -0
- package/build/components/PanelBody/PanelBody.component.d.ts +23 -0
- package/build/components/PanelBody/PanelBody.component.d.ts.map +1 -0
- package/build/components/PanelBody/index.d.ts +2 -0
- package/build/components/PanelBody/index.d.ts.map +1 -0
- package/build/components/PanelFooter/PanelFooter.component.d.ts +19 -0
- package/build/components/PanelFooter/PanelFooter.component.d.ts.map +1 -0
- package/build/components/PanelFooter/index.d.ts +2 -0
- package/build/components/PanelFooter/index.d.ts.map +1 -0
- package/build/components/SecretText/SecretText.component.d.ts +78 -0
- package/build/components/SecretText/SecretText.component.d.ts.map +1 -0
- package/build/components/SecretText/index.d.ts +2 -0
- package/build/components/SecretText/index.d.ts.map +1 -0
- package/build/components/Select/Select.component.d.ts +2 -2
- package/build/components/Select/Select.component.d.ts.map +1 -1
- package/build/components/TextInput/TextInput.component.d.ts +1 -1
- package/build/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/build/hooks/useEndlessScrollList.d.ts +17 -0
- package/build/hooks/useEndlessScrollList.d.ts.map +1 -0
- package/build/hooks/useEndlessScrollList.js +60 -0
- package/build/hooks/useLocalStorage.d.ts.map +1 -1
- package/build/ibm-plex-DkmjUb78.js +1 -0
- package/build/index.js +184 -17
- package/build/withDeprecationWarning.component-CsAFJ740.js +1 -0
- package/build/withDeprecationWarning.js +1 -1
- package/package.json +1 -1
- package/build/AppBody.component-DMNphrA9.js +0 -1
- package/build/AppShell.component-kPo9ejh-.js +0 -1
- package/build/Badge.component-Bw_Sw1Jl.js +0 -1
- package/build/Box.component-B-zlG37z.js +0 -1
- package/build/Breadcrumb.component-DmLZCJ80.js +0 -1
- package/build/BreadcrumbItem.component-himz8R38.js +0 -1
- package/build/Button.component-Ck0-XKMD.js +0 -1
- package/build/ButtonRow.component-CgfANnke.js +0 -1
- package/build/ButtonRow.component-CnJPyZ99.js +0 -1
- package/build/Checkbox.component-DxULmNji.js +0 -1
- package/build/CheckboxGroup.component-DJN7waSM.js +0 -1
- package/build/CheckboxRow.component-CrN2DXEm.js +0 -1
- package/build/Code.component-CIzbcpEn.js +0 -1
- package/build/CodeBlock.component-CXDUnHIb.js +0 -1
- package/build/ComboBox.component-Bv_9h8jb.js +0 -1
- package/build/Container.component-B8M3UgGG.js +0 -1
- package/build/ContentArea.component-VS-3jOgO.js +0 -5
- package/build/ContentArea.js +0 -1
- package/build/ContentAreaToolbar.component-Cr9XddQc.js +0 -8
- package/build/ContentAreaWrapper.component-D6yksmzo.js +0 -7
- package/build/ContentAreaWrapper.js +0 -1
- package/build/ContentContainer.component-rfZz78lB.js +0 -1
- package/build/ContentHeading.component-Io-M-spm.js +0 -1
- package/build/ContextMenu.component-DH-m8O-z.js +0 -1
- package/build/DataGrid.component-BBT0bs34.js +0 -1
- package/build/DataGridCell.component-DTZCr2iq.js +0 -1
- package/build/DataGridHeadCell.component-Ce2yeOu8.js +0 -1
- package/build/DataGridRow.component-D0MKrB0t.js +0 -1
- package/build/DataGridToolbar.component-BxGtUy7D.js +0 -1
- package/build/Form.component-D-BE29tV.js +0 -1
- package/build/FormHint.component-B30ehV71.js +0 -1
- package/build/FormRow.component--LSv8Yz8.js +0 -1
- package/build/FormRow.component-5oxVn9c0.js +0 -3
- package/build/FormSection.component-D-txM2wI.js +0 -1
- package/build/FormattedText.component-Dv5KRlOH.js +0 -1
- package/build/Grid.component-DhdNobry.js +0 -1
- package/build/GridColumn.component-Dn_zRSnd.js +0 -1
- package/build/GridRow.component-DP4HP_Ai.js +0 -1
- package/build/Icon.component-7-ap-6Ys.js +0 -1
- package/build/InputGroup.component-BKBRJie5.js +0 -1
- package/build/IntroBox.component-BuW5vo-r.js +0 -1
- package/build/JsonViewer.component-i75ln2HG.js +0 -1
- package/build/Label.component-TbF3yilt.js +0 -1
- package/build/LoadingIndicator.component-CjUcoOtA.js +0 -1
- package/build/MainContainer.component-beO5Qib0.js +0 -1
- package/build/MainContainerInner.component-Dp6YCm8D.js +0 -1
- package/build/MainTabs.component-C4jnzeW8.js +0 -1
- package/build/Menu.component-B2zPLmdP.js +0 -1
- package/build/MenuItem.component-2A91klk9.js +0 -1
- package/build/MenuSection.component-CXCYKlVr.js +0 -1
- package/build/Message.component-COHT30fL.js +0 -1
- package/build/ModalFooter.component-vqu5JEqH.js +0 -1
- package/build/NativeSelect.component-BeYgemsP.js +0 -1
- package/build/NativeSelectOption.component-CLFcWbs7.js +0 -1
- package/build/NativeSelectOptionGroup.component-B9j74Fm2.js +0 -1
- package/build/Navigation.component-Q2fi8-qR.js +0 -1
- package/build/NavigationItem.component-DcH7SF-F.js +0 -1
- package/build/PageFooter.component-CrlDnfPd.js +0 -1
- package/build/PageHeader.component-QuQOQj_P.js +0 -1
- package/build/Pagination.component-D7vw3gPl.js +0 -50
- package/build/Panel.component-DW6z1JGn.js +0 -35
- package/build/PanelBody.component-ejsCohbW.js +0 -6
- package/build/PanelFooter.component-B3HXAhmg.js +0 -11
- package/build/Pill.component-CLGgHKga.js +0 -1
- package/build/PortalProvider.component-nShveTMU.js +0 -1
- package/build/Radio.component-qjlCYiuP.js +0 -1
- package/build/RadioGroup.component-Cj0bQHOM.js +0 -1
- package/build/RadioRow.component-CqrB8Bvr.js +0 -1
- package/build/SearchInput.component-CMboCbvO.js +0 -1
- package/build/Select.component-zF_9SDqa.js +0 -1
- package/build/SelectRow.component-D0F2VY1t.js +0 -1
- package/build/ShadowRoot.component-DZn4gLKB.js +0 -1
- package/build/SideNavigation.component-D9A0_YjX.js +0 -1
- package/build/SideNavigationItem.component-EiOe7rV_.js +0 -1
- package/build/Spinner.component-B_OKKh5D.js +0 -1
- package/build/Stack.component-BNRLhyTo.js +0 -1
- package/build/Stack.component-fYvcWRNi.js +0 -60
- package/build/Switch.component-BxCFYGD_.js +0 -1
- package/build/Tab.component-o-IJCaGX.js +0 -1
- package/build/TabList.component-DeI4QJVH.js +0 -1
- package/build/TabNavigation.component-DlfET9Dg.js +0 -1
- package/build/TabNavigationItem.component-CgTEvAMf.js +0 -1
- package/build/TabPanel.component-CSMpnrRv.js +0 -1
- package/build/Tabs.component-NQTjUypo.js +0 -1
- package/build/TextInput.component-D1qpmHfA.js +0 -1
- package/build/TextInputRow.component-DEWfa_NF.js +0 -1
- package/build/Textarea.component-BrJM-k2b.js +0 -1
- package/build/TextareaRow.component-DfVYxpvo.js +0 -1
- package/build/Toast.component-Ck1OSJRg.js +0 -1
- package/build/Tooltip.component-pZQW88UK.js +0 -1
- package/build/TooltipContent.component-Cfo0dBzg.js +0 -1
- package/build/TooltipTrigger.component-Cp9J4Mh7.js +0 -1
- package/build/TopNavigation.component-gPpoiPKf.js +0 -1
- package/build/TopNavigationItem.component-C99GMBgq.js +0 -1
- package/build/ibm-plex-BfDpQmIi.js +0 -1
- package/build/tslib.es6-bjGg6Bxl.js +0 -1
- package/build/withDeprecationWarning.component-DQTD5UdI.js +0 -1
- package/build/withDeprecationWarning.component-fIFVSC34.js +0 -1
package/build/TopNavigation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as TopNavigation}from"./TopNavigation.component-
|
|
1
|
+
export{T as TopNavigation}from"./TopNavigation.component-CkGidYsu.js";import"react";import"./Navigation.component-DaabNHev.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default from"react";import{N as NavigationItem}from"./NavigationItem.component-DI0SMWsi.js";const topNavItemStyles=`
|
|
2
|
+
jn-flex
|
|
3
|
+
jn-items-center
|
|
4
|
+
jn-grow-0
|
|
5
|
+
jn-box-border
|
|
6
|
+
jn-justify-start
|
|
7
|
+
jn-text-theme-default
|
|
8
|
+
jn-font-bold
|
|
9
|
+
jn-leading-6
|
|
10
|
+
jn-py-[0.875rem]
|
|
11
|
+
jn-px-[1.9rem]
|
|
12
|
+
jn-text-theme-default
|
|
13
|
+
jn-bg-theme-topnavigation-item
|
|
14
|
+
hover:jn-text-theme-high
|
|
15
|
+
hover:jn-bg-theme-topnavigation-item-active
|
|
16
|
+
active:jn-text-theme-high
|
|
17
|
+
active:jn-bg-theme-topnavigation-item-active
|
|
18
|
+
focus-visible:jn-outline-none
|
|
19
|
+
focus-visible:jn-ring-2
|
|
20
|
+
focus-visible:jn-ring-theme-focus
|
|
21
|
+
`,topNavActiveItemStyles=`
|
|
22
|
+
jn-font-bold
|
|
23
|
+
jn-text-theme-high
|
|
24
|
+
jn-bg-theme-topnavigation-item-active
|
|
25
|
+
jn-border-b-[3px]
|
|
26
|
+
`,TopNavigationItem=a=>{let{active:d=!1,ariaLabel:b,children:e=null,className:f="",disabled:g=!1,href:h="",icon:i=null,label:j="",onClick:k=void 0,value:l="",...c}=a;return React__default.createElement(NavigationItem,{active:d,activeItemStyles:topNavActiveItemStyles,ariaLabel:b,className:`juno-topnavigation-item ${topNavItemStyles} ${f}`,disabled:g,icon:i,label:j,href:h,onClick:k,value:l,...c},e)};export{TopNavigationItem as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as TopNavigationItem}from"./TopNavigationItem.component-
|
|
1
|
+
export{T as TopNavigationItem}from"./TopNavigationItem.component-CqIlCTjB.js";import"react";import"./NavigationItem.component-DI0SMWsi.js";import"./Navigation.component-DaabNHev.js";import"./Icon.component-ClhnejN0.js";import"./widgets-njngpHa5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.component.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"AppShell.component.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB;;GAEG;AACH,eAAO,MAAM,QAAQ,yIAWlB,aAAa,sBA+Df,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gLAAgL;IAChL,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IACrC,uGAAuG;IACvG,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,gHAAgH;IAChH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC/B,kHAAkH;IAClH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAChC,qMAAqM;IACrM,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;sJACkJ;IAClJ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2YAA2Y;IAC3Y,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ContentAreaToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Additional CSS classes for custom styling.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Custom content to render within the content area toolbar.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ContentAreaToolbar represents the main toolbar within the content area.
|
|
14
|
+
* It is designed to hold main actions relevant to the current page.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContentAreaToolbar: React.FC<ContentAreaToolbarProps>;
|
|
17
|
+
//# sourceMappingURL=ContentAreaToolbar.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentAreaToolbar.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentAreaToolbar/ContentAreaToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAMhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ContentAreaToolbar/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const ContentContainer: ({ className, children, ...props }: ContentContainerProps) => React.JSX.Element;
|
|
7
|
-
export interface ContentContainerProps {
|
|
8
|
-
/** Add custom class name */
|
|
2
|
+
export interface ContentContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Additional CSS classes for custom styling.
|
|
5
|
+
*/
|
|
9
6
|
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Custom content to render within the container.
|
|
9
|
+
*/
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* ContentContainer serves as a wrapper for app content.
|
|
14
|
+
* It is intended for manual app scaffold creation. In most cases, using the AppShell component instead is recommended.
|
|
15
|
+
*
|
|
16
|
+
* Note: When the browser window is wider than the max breakpoint width, the content within this container will be centered on the screen.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ContentContainer: React.FC<ContentContainerProps>;
|
|
12
19
|
//# sourceMappingURL=ContentContainer.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB
|
|
1
|
+
{"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAM5D,CAAA"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface ContentHeadingProps {
|
|
8
|
-
/** Optionally render children. If children are present, heading will be ignored */
|
|
2
|
+
export interface ContentHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Custom content to render within the container heading.
|
|
5
|
+
* Takes precedence over the heading prop.
|
|
6
|
+
*/
|
|
9
7
|
children?: React.ReactNode;
|
|
10
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Text for the heading. Used if children is not provided.
|
|
10
|
+
* Children prop takes precedence.
|
|
11
|
+
*/
|
|
11
12
|
heading?: string;
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Additional CSS classes for custom styling.
|
|
15
|
+
*/
|
|
13
16
|
className?: string;
|
|
14
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* ContentHeading represents the main heading of a page or view.
|
|
20
|
+
* It can be used within an `<AppShell>` component or, if scaffolding manually, within a `<ContentContainer>` component.
|
|
21
|
+
* The heading text can be provided either via the `heading` prop or by passing it as `children`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ContentHeading: React.FC<ContentHeadingProps>;
|
|
15
24
|
//# sourceMappingURL=ContentHeading.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB
|
|
1
|
+
{"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const HeaderContainer: React.FC<HeaderContainerProps>;
|
|
3
|
+
export interface HeaderContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Whether the page/view content will stretch over the full width of the viewport or not. Default is `false`. */
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
/** Add custom class name */
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=HeaderContainer.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderContainer/HeaderContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkB1D,CAAA;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF,iHAAiH;IACjH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderContainer/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type PaginationProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onBlur"> & {
|
|
3
|
+
/**
|
|
4
|
+
* The variant determines the style and user interaction method of the Pagination component:
|
|
5
|
+
* - "default": Renders previous and next buttons only.
|
|
6
|
+
* - "number": Displays the current page number between next and previous buttons.
|
|
7
|
+
* - "select": Provides a dropdown menu between next and previous buttons for specific page selection.
|
|
8
|
+
* - "input": Provides an input field for specific page entry.
|
|
9
|
+
*/
|
|
10
|
+
variant?: "default" | "number" | "select" | "input";
|
|
11
|
+
/**
|
|
12
|
+
* The current page number.
|
|
13
|
+
*/
|
|
14
|
+
currentPage?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The total number of pages available.
|
|
17
|
+
*/
|
|
18
|
+
totalPages?: number;
|
|
19
|
+
/**
|
|
20
|
+
* A fallback property for providing the total number of pages, maintained for backward compatibility.
|
|
21
|
+
*/
|
|
22
|
+
pages?: number;
|
|
23
|
+
/**
|
|
24
|
+
* When true, disables the entire pagination component, preventing any interaction.
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When true, simulates the component being on the first page, disabling the previous button.
|
|
29
|
+
*/
|
|
30
|
+
isFirstPage?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* When true, simulates the component being on the last page, disabling the next button.
|
|
33
|
+
*/
|
|
34
|
+
isLastPage?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Callback function triggered when the previous button is pressed.
|
|
37
|
+
*/
|
|
38
|
+
onPressPrevious?: (newPage?: number) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Callback function triggered when the next button is pressed.
|
|
41
|
+
*/
|
|
42
|
+
onPressNext?: (newPage?: number) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback function triggered when a new page is selected from the dropdown, applicable when variant is "select".
|
|
45
|
+
*/
|
|
46
|
+
onSelectChange?: (selected: number) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Callback function triggered when the input field value changes, applicable when variant is "input".
|
|
49
|
+
*/
|
|
50
|
+
onInputChange?: (inputValue?: number) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Callback function triggered when a key is pressed in the input field, applicable when variant is "input".
|
|
53
|
+
*/
|
|
54
|
+
onKeyPress?: (controlCurrentPage?: number) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Callback function triggered when the input field loses focus, applicable when variant is "input".
|
|
57
|
+
*/
|
|
58
|
+
onBlur?: (controlCurrentPage?: number) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Displays a loading spinner and disables interaction when true.
|
|
61
|
+
*/
|
|
62
|
+
progress?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Additional CSS classes for custom styling.
|
|
65
|
+
*/
|
|
66
|
+
className?: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* The Pagination component provides navigation controls for paginated content.
|
|
70
|
+
*/
|
|
71
|
+
export declare const Pagination: React.FC<PaginationProps>;
|
|
72
|
+
//# sourceMappingURL=Pagination.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.component.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.component.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAkBlD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuMhD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode, MouseEvent } from "react";
|
|
2
|
+
type PanelSize = "default" | "large";
|
|
3
|
+
export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the panel.
|
|
6
|
+
*/
|
|
7
|
+
heading?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the opened panel.
|
|
10
|
+
*/
|
|
11
|
+
size?: PanelSize;
|
|
12
|
+
/**
|
|
13
|
+
* Controls whether the panel is open and visible.
|
|
14
|
+
*/
|
|
15
|
+
opened?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Determines whether the panel can be closed using a close button.
|
|
18
|
+
*/
|
|
19
|
+
closeable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Handler called when the close button is clicked.
|
|
22
|
+
*/
|
|
23
|
+
onClose?: (event: MouseEvent<HTMLElement>) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Additional CSS classes to apply to the panel for custom styling.
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Content to be rendered inside the main body of the panel.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A Panel component that slides in from the right side of the screen.
|
|
35
|
+
* It can be used to display additional content/controls for the content area.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Panel: FC<PanelProps>;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=Panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.component.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+B,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAsDrG,KAAK,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IAEH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAA;IAClD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA8DhC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from "react";
|
|
2
|
+
export interface PanelBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Additional CSS classes to apply to the panel body for custom styling.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The content to be rendered inside the panel body.
|
|
9
|
+
* Typically, this will include form elements and other interactive content.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Optional footer component to be rendered below the main content.
|
|
14
|
+
* The footer can include buttons or other control elements.
|
|
15
|
+
*/
|
|
16
|
+
footer?: React.ReactElement;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A PanelBody component is used to encapsulate the main content of a panel.
|
|
20
|
+
* The primary content for the panel, such as forms or information, is rendered here.
|
|
21
|
+
*/
|
|
22
|
+
export declare const PanelBody: React.FC<PanelBodyProps>;
|
|
23
|
+
//# sourceMappingURL=PanelBody.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelBody.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelBody/PanelBody.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAOxD,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAO9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PanelBody/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from "react";
|
|
2
|
+
export interface PanelFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Additional CSS classes to apply to the panel footer for custom styling.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The content to render inside the panel footer.
|
|
9
|
+
* Typically, this will include buttons or other control elements.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The PanelFooter component renders the footer section of a panel.
|
|
15
|
+
* Typically used to contain footer elements like buttons, which can be added to the PanelBody component via its `footer` property.
|
|
16
|
+
* Buttons placed inside will be automatically aligned to the right.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PanelFooter: React.FC<PanelFooterProps>;
|
|
19
|
+
//# sourceMappingURL=PanelFooter.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelFooter/PanelFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAcxD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAMlD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PanelFooter/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** A component to hold a secret text, e.g. an SSH key, and conceal or reveal as needed. */
|
|
3
|
+
export declare const SecretText: React.FC<SecretTextProps>;
|
|
4
|
+
type ValueChangeHandler = (value: string) => void;
|
|
5
|
+
export interface SecretTextProps extends Omit<React.HTMLAttributes<HTMLTextAreaElement>, "onCopy" | "onPaste"> {
|
|
6
|
+
/** Whether the secret field should autocomplete. */
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
/** Pass a custom className to the Secret input field. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Whether the Clear button is rendered. */
|
|
11
|
+
clear?: boolean;
|
|
12
|
+
/** Whether the Copy button is rendered. */
|
|
13
|
+
copy?: boolean;
|
|
14
|
+
/** A small text to display for a second to confirm the secret's content was copied to the clipboard. */
|
|
15
|
+
copyConfirmtext?: string;
|
|
16
|
+
/** Disable the Clear button */
|
|
17
|
+
disableClear?: boolean;
|
|
18
|
+
/** Disable the Copy button */
|
|
19
|
+
disableCopy?: boolean;
|
|
20
|
+
/** Whether the Secret's input is disabled. */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Disable the Paste button */
|
|
23
|
+
disablePaste?: boolean;
|
|
24
|
+
/** Disable the Hide/Reveal button */
|
|
25
|
+
disableToggle?: boolean;
|
|
26
|
+
/** A small text to display information regarding any errors in the context of the Secret. */
|
|
27
|
+
errortext?: string;
|
|
28
|
+
/** A small text to display giving more information and context about the Secret. */
|
|
29
|
+
helptext?: string;
|
|
30
|
+
/** Pass an id */
|
|
31
|
+
id?: string;
|
|
32
|
+
/** Whether the Secret's content is invalid. */
|
|
33
|
+
invalid?: boolean;
|
|
34
|
+
/** A label to display above the SecretText's textarea. */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** The name of the SecretText's textarea. */
|
|
37
|
+
name?: string;
|
|
38
|
+
/** A handler to execute when the Secret's input area looses focus. */
|
|
39
|
+
onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
40
|
+
/** A handler to execute when the Secret's content changes. */
|
|
41
|
+
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
42
|
+
/** A handler to execute when the user clears the Secret's content using the Clear button. */
|
|
43
|
+
onClear?: () => void;
|
|
44
|
+
/** A handler to execute when the user copies the Secret's content to the clipboard. */
|
|
45
|
+
onCopy?: ValueChangeHandler;
|
|
46
|
+
/** A handler to execute when the SecretText textarea receives focus */
|
|
47
|
+
onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
48
|
+
/** A handler to execute when the user hides the Secret's content. */
|
|
49
|
+
onHide?: () => void;
|
|
50
|
+
/** A handler to execute when the user pastes text from the clipboard into the SecretText. */
|
|
51
|
+
onPaste?: ValueChangeHandler;
|
|
52
|
+
/** A handler to execute when the user reveals the Secret's content. */
|
|
53
|
+
onReveal?: () => void;
|
|
54
|
+
/** A handler to execute when the visibility of the SecretText's content is toggled, i.e. this will be run when the content is revealed and when it is hidden. */
|
|
55
|
+
onToggle?: () => void;
|
|
56
|
+
/** Whether a button to paste text content even in hidden mode is rendered. */
|
|
57
|
+
paste?: boolean;
|
|
58
|
+
/** Pass a placeholder to the SecretText's textarea */
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
/** Whether the SecretText content is read only, i.e. can not be edited..*/
|
|
61
|
+
readOnly?: boolean;
|
|
62
|
+
/** Whether the SecretText is required. Passing `true` will render a small required marker to the label. This will only have an effect when a label is passed, too. */
|
|
63
|
+
required?: boolean;
|
|
64
|
+
/** Whether the secret's content is revealed / legible. */
|
|
65
|
+
reveal?: boolean;
|
|
66
|
+
/** A small text to display giving information in the context of the secret, e.g. when it was successfully validated or matches specific requirements, etc. */
|
|
67
|
+
successtext?: string;
|
|
68
|
+
/** Whether a button to toggle visibility of the SecretText's content should be rendered. */
|
|
69
|
+
toggle?: boolean;
|
|
70
|
+
/** Whether the Secret's content was successfully validated. */
|
|
71
|
+
valid?: boolean;
|
|
72
|
+
/** The value of the SecretText, i.e. the Secret's content. */
|
|
73
|
+
value?: string;
|
|
74
|
+
/** Pass a className to the outer wrapper element */
|
|
75
|
+
wrapperClassName?: string;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=SecretText.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecretText.component.d.ts","sourceRoot":"","sources":["../../../src/components/SecretText/SecretText.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqC,MAAM,OAAO,CAAA;AAuDzD,2FAA2F;AAC3F,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgPhD,CAAA;AAGD,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5G,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,wGAAwG;IACxG,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAA;IACrD,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IACxD,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,uFAAuF;IACvF,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,uEAAuE;IACvE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAA;IACtD,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,6FAA6F;IAC7F,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iKAAiK;IACjK,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uKAAuK;IACvK,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+JAA+J;IAC/J,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SecretText/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -5,7 +5,7 @@ export type SelectContextProps = {
|
|
|
5
5
|
addOptionValueAndLabel: (value: unknown, label: unknown, children: unknown) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const SelectContext: React.Context<SelectContextProps | undefined>;
|
|
8
|
-
export interface SelectProps {
|
|
8
|
+
export interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value" | "defaultValue" | "onChange"> {
|
|
9
9
|
/** Pass an aria-label to the Select toggle button */
|
|
10
10
|
ariaLabel?: string;
|
|
11
11
|
/** The children to render as options. Use the SelectOption component, and SelectDivider if needed. */
|
|
@@ -35,7 +35,7 @@ export interface SelectProps {
|
|
|
35
35
|
/** Pass a name attribute to the Select to be transmitted when used in a form. */
|
|
36
36
|
name?: string;
|
|
37
37
|
/** Handler to be executed when the selected value changes */
|
|
38
|
-
onChange?: (
|
|
38
|
+
onChange?: (value?: string | number | string[]) => void;
|
|
39
39
|
/** Handle for openning of select */
|
|
40
40
|
open?: boolean;
|
|
41
41
|
/** LEGACY: Handler to be executed when the Select value changes. Here for backwards compatibility with apps based on older versions of Select. Use onChange instead. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.component.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6D,MAAM,OAAO,CAAA;AAUjF,OAAO,eAAe,CAAA;AAwDtB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,OAAO,CAAA;IAExB,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACpF,CAAA;AACD,eAAO,MAAM,aAAa,+CAA2D,CAAA;AAErF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Select.component.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6D,MAAM,OAAO,CAAA;AAUjF,OAAO,eAAe,CAAA;AAwDtB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,OAAO,CAAA;IAExB,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACpF,CAAA;AACD,eAAO,MAAM,aAAa,+CAA2D,CAAA;AAErF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC;IAClG,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2KAA2K;IAC3K,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oEAAoE;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,uHAAuH;IACvH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4KAA4K;IAC5K,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6DAA6D;IAE7D,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IACvD,oCAAoC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,wKAAwK;IAExK,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAA;IAC/C,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4IAA4I;IAC5I,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qKAAqK;IACrK,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,2IAA2I;IAC3I,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,8GAA8G;IAC9G,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,+JAA+J;IAC/J,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;2KACuK;IACvK,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAAA;IAC9D,wMAAwM;IACxM,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;EAGE;AACF,eAAO,MAAM,MAAM,4RA4BhB,WAAW,sBA2Ob,CAAA"}
|
|
@@ -7,7 +7,7 @@ Also covers email, telephone, password, url derivates.
|
|
|
7
7
|
export declare const TextInput: ({ value, id, name, placeholder, disabled, readOnly, required, invalid, valid, autoFocus, className, autoComplete, helptext, successtext, errortext, onChange, onFocus, onBlur, type, label, width, wrapperClassName, ...props }: TextInputProps) => React.JSX.Element;
|
|
8
8
|
type TextInputType = "text" | "email" | "password" | "tel" | "url" | "number";
|
|
9
9
|
type TextInputWidth = "full" | "auto";
|
|
10
|
-
export interface TextInputProps {
|
|
10
|
+
export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
11
11
|
/** Pass a name attribute */
|
|
12
12
|
name?: string;
|
|
13
13
|
/** Pass a value */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAI1E,OAAO,kBAAkB,CAAA;AAoEzB;;;EAGE;AACF,eAAO,MAAM,SAAS,oOAwBnB,cAAc,sBAyIhB,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC7E,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAI1E,OAAO,kBAAkB,CAAA;AAoEzB;;;EAGE;AACF,eAAO,MAAM,SAAS,oOAwBnB,cAAc,sBAyIhB,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC7E,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACjF,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC7C,0IAA0I;IAC1I,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAC/B,qEAAqE;IACrE,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAClC,iFAAiF;IACjF,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAA;IAChC,sEAAsE;IACtE,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UseEndlessScrollListOptions {
|
|
3
|
+
delay?: number;
|
|
4
|
+
showLoading?: boolean;
|
|
5
|
+
loadingObject?: React.ReactNode;
|
|
6
|
+
showRef?: boolean;
|
|
7
|
+
refFunction?: RefFunction;
|
|
8
|
+
}
|
|
9
|
+
type RefFunction = (node: Element) => void;
|
|
10
|
+
export declare const useEndlessScrollList: (items: unknown[], options?: UseEndlessScrollListOptions) => {
|
|
11
|
+
scrollListItems: unknown[] | undefined;
|
|
12
|
+
iterator: {
|
|
13
|
+
map: (elements: (value: unknown, index: number, array: unknown[]) => React.JSX.Element) => React.JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=useEndlessScrollList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEndlessScrollList.d.ts","sourceRoot":"","sources":["../src/hooks/useEndlessScrollList.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAuE,MAAM,OAAO,CAAA;AAgB3F,UAAU,2BAA2B;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AACD,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;AAE1C,eAAO,MAAM,oBAAoB,UAAW,OAAO,EAAE,YAAW,2BAA2B;;;wBA4CrE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO;;CA0B3F,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Juno contributors
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
const useEndlessScrollList = (items, options = {}) => {
|
|
8
|
+
const [visibleAmount, setVisibleAmount] = useState(20);
|
|
9
|
+
const [isAddingItems, setIsAddingItems] = useState(false);
|
|
10
|
+
const timeoutRef = useRef(null);
|
|
11
|
+
const observer = useRef();
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
// clear when component is unmounted
|
|
14
|
+
// fix type issue
|
|
15
|
+
return () => clearTimeout(timeoutRef.current);
|
|
16
|
+
}, []);
|
|
17
|
+
// recalculate if items change
|
|
18
|
+
const scrollListItems = useMemo(() => {
|
|
19
|
+
if (items) {
|
|
20
|
+
return items.slice(0, visibleAmount);
|
|
21
|
+
}
|
|
22
|
+
}, [items, visibleAmount]);
|
|
23
|
+
// recalculate if items change
|
|
24
|
+
const lastLisItemRef = useCallback((node) => {
|
|
25
|
+
// skip if already adding items
|
|
26
|
+
if (isAddingItems)
|
|
27
|
+
return;
|
|
28
|
+
// disconnect previous observer
|
|
29
|
+
if (observer.current)
|
|
30
|
+
observer.current.disconnect();
|
|
31
|
+
// create new observer
|
|
32
|
+
observer.current = new IntersectionObserver((entries) => {
|
|
33
|
+
// if the last element is intersecting and there are still items to show
|
|
34
|
+
if (entries[0].isIntersecting && visibleAmount <= items.length) {
|
|
35
|
+
clearTimeout(timeoutRef.current);
|
|
36
|
+
setIsAddingItems(true);
|
|
37
|
+
timeoutRef.current = setTimeout(() => {
|
|
38
|
+
setIsAddingItems(false);
|
|
39
|
+
setVisibleAmount((prev) => prev + 10);
|
|
40
|
+
}, options?.delay || 500);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (node)
|
|
44
|
+
return observer.current.observe(node);
|
|
45
|
+
}, [items, isAddingItems]);
|
|
46
|
+
const iterator = useMemo(() => {
|
|
47
|
+
return {
|
|
48
|
+
map: (elements) => {
|
|
49
|
+
const content = scrollListItems?.map(elements);
|
|
50
|
+
return (React.createElement(React.Fragment, null,
|
|
51
|
+
content,
|
|
52
|
+
isAddingItems && options?.showLoading !== false && (React.createElement(React.Fragment, null, options?.loadingObject ? options.loadingObject : React.createElement("span", { id: "endlessScrollListLoading" }, "Loading..."))),
|
|
53
|
+
options?.showRef !== false && (React.createElement(React.Fragment, null, options?.refFunction ? (options.refFunction(lastLisItemRef)) : (React.createElement("span", { id: "endlessScrollListLastItemRef", ref: lastLisItemRef }))))));
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}, [scrollListItems, lastLisItemRef]);
|
|
57
|
+
return { scrollListItems, iterator };
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { useEndlessScrollList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../src/hooks/useLocalStorage.ts"],"names":[],"mappings":"AAGA,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;AACpD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;AAE3D;;;;;;;EAOE;AACF,iBAAS,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CA0BnF;AAED,eAAe,eAAe,CAAA"}
|