@proef/common-ui 0.0.0-stage → 2.2.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/dist/esm/assets/imagem-6ee08a37d9.png +0 -0
- package/dist/esm/assets/imagem-6fcae1b87b.png +0 -0
- package/dist/esm/index.js +301 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/legacy/assets/svgs/proef-footer-logo.svg.js +5 -0
- package/dist/esm/legacy/assets/svgs/proef-footer-logo.svg.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Acronym/Acronym.css +43 -0
- package/dist/esm/legacy/components/atoms/Acronym/Acronym.js +31 -0
- package/dist/esm/legacy/components/atoms/Acronym/Acronym.js.map +1 -0
- package/dist/esm/legacy/components/atoms/BreadCrumb/BreadCrumb.css +36 -0
- package/dist/esm/legacy/components/atoms/BreadCrumb/BreadCrumb.js +57 -0
- package/dist/esm/legacy/components/atoms/BreadCrumb/BreadCrumb.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Button/variants/ActionButton.css +218 -0
- package/dist/esm/legacy/components/atoms/Button/variants/ActionButton.js +50 -0
- package/dist/esm/legacy/components/atoms/Button/variants/ActionButton.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Button/variants/FilterButton.css +56 -0
- package/dist/esm/legacy/components/atoms/Button/variants/FilterButton.js +34 -0
- package/dist/esm/legacy/components/atoms/Button/variants/FilterButton.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Button/variants/IconButton.css +74 -0
- package/dist/esm/legacy/components/atoms/Button/variants/IconButton.js +29 -0
- package/dist/esm/legacy/components/atoms/Button/variants/IconButton.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Button/variants/MainButton.css +99 -0
- package/dist/esm/legacy/components/atoms/Button/variants/MainButton.js +36 -0
- package/dist/esm/legacy/components/atoms/Button/variants/MainButton.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Button/variants/TabButton.css +63 -0
- package/dist/esm/legacy/components/atoms/Button/variants/TabButton.js +21 -0
- package/dist/esm/legacy/components/atoms/Button/variants/TabButton.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Field/Field.css +171 -0
- package/dist/esm/legacy/components/atoms/Field/Field.js +70 -0
- package/dist/esm/legacy/components/atoms/Field/Field.js.map +1 -0
- package/dist/esm/legacy/components/atoms/IconText/IconText.css +10 -0
- package/dist/esm/legacy/components/atoms/IconText/IconText.js +25 -0
- package/dist/esm/legacy/components/atoms/IconText/IconText.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Icone/Icone.js +24 -0
- package/dist/esm/legacy/components/atoms/Icone/Icone.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Input/Input.css +12 -0
- package/dist/esm/legacy/components/atoms/Input/Input.js +28 -0
- package/dist/esm/legacy/components/atoms/Input/Input.js.map +1 -0
- package/dist/esm/legacy/components/atoms/InputData/InputData.js +25 -0
- package/dist/esm/legacy/components/atoms/InputData/InputData.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Label/Label.css +192 -0
- package/dist/esm/legacy/components/atoms/Label/Label.js +13 -0
- package/dist/esm/legacy/components/atoms/Label/Label.js.map +1 -0
- package/dist/esm/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.css +40 -0
- package/dist/esm/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.js +21 -0
- package/dist/esm/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Select/Select.css +16 -0
- package/dist/esm/legacy/components/atoms/Select/Select.js +27 -0
- package/dist/esm/legacy/components/atoms/Select/Select.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Stack/Stack.js +20 -0
- package/dist/esm/legacy/components/atoms/Stack/Stack.js.map +1 -0
- package/dist/esm/legacy/components/atoms/Switch/CustomSwitch.css +36 -0
- package/dist/esm/legacy/components/atoms/Switch/CustomSwitch.js +29 -0
- package/dist/esm/legacy/components/atoms/Switch/CustomSwitch.js.map +1 -0
- package/dist/esm/legacy/components/charts/Charts.js +349 -0
- package/dist/esm/legacy/components/charts/Charts.js.map +1 -0
- package/dist/esm/legacy/components/layout/AppLauncher/AppLauncher.js +100 -0
- package/dist/esm/legacy/components/layout/AppLauncher/AppLauncher.js.map +1 -0
- package/dist/esm/legacy/components/layout/Error/Error.css +20 -0
- package/dist/esm/legacy/components/layout/Error/Error.js +12 -0
- package/dist/esm/legacy/components/layout/Error/Error.js.map +1 -0
- package/dist/esm/legacy/components/layout/Footer/Footer.css +42 -0
- package/dist/esm/legacy/components/layout/Footer/Footer.js +23 -0
- package/dist/esm/legacy/components/layout/Footer/Footer.js.map +1 -0
- package/dist/esm/legacy/components/layout/Header/Header.css +66 -0
- package/dist/esm/legacy/components/layout/Header/Header.js +37 -0
- package/dist/esm/legacy/components/layout/Header/Header.js.map +1 -0
- package/dist/esm/legacy/components/layout/Layout/Layout.js +31 -0
- package/dist/esm/legacy/components/layout/Layout/Layout.js.map +1 -0
- package/dist/esm/legacy/components/layout/Sidebar/Sidebar.js +38 -0
- package/dist/esm/legacy/components/layout/Sidebar/Sidebar.js.map +1 -0
- package/dist/esm/legacy/components/layout/Spinner/Spinner.css +10 -0
- package/dist/esm/legacy/components/layout/Spinner/Spinner.js +19 -0
- package/dist/esm/legacy/components/layout/Spinner/Spinner.js.map +1 -0
- package/dist/esm/legacy/components/layout/TopBar/TopBar.js +34 -0
- package/dist/esm/legacy/components/layout/TopBar/TopBar.js.map +1 -0
- package/dist/esm/legacy/components/layout/TopNavLayout/TopNavLayout.js +82 -0
- package/dist/esm/legacy/components/layout/TopNavLayout/TopNavLayout.js.map +1 -0
- package/dist/esm/legacy/components/molecules/BarraValor/BarraValor.js +25 -0
- package/dist/esm/legacy/components/molecules/BarraValor/BarraValor.js.map +1 -0
- package/dist/esm/legacy/components/molecules/ColumnPicker/ColumnPicker.js +246 -0
- package/dist/esm/legacy/components/molecules/ColumnPicker/ColumnPicker.js.map +1 -0
- package/dist/esm/legacy/components/molecules/ConfirmModal/ConfirmModal.css +3 -0
- package/dist/esm/legacy/components/molecules/ConfirmModal/ConfirmModal.js +33 -0
- package/dist/esm/legacy/components/molecules/ConfirmModal/ConfirmModal.js.map +1 -0
- package/dist/esm/legacy/components/molecules/DataTable/DataTable.js +1259 -0
- package/dist/esm/legacy/components/molecules/DataTable/DataTable.js.map +1 -0
- package/dist/esm/legacy/components/molecules/FileDropzone/FileDropzone.js +68 -0
- package/dist/esm/legacy/components/molecules/FileDropzone/FileDropzone.js.map +1 -0
- package/dist/esm/legacy/components/molecules/LanguageSwitcher/LanguageSwitcher.js +96 -0
- package/dist/esm/legacy/components/molecules/LanguageSwitcher/LanguageSwitcher.js.map +1 -0
- package/dist/esm/legacy/components/molecules/Modal/Modal.css +54 -0
- package/dist/esm/legacy/components/molecules/Modal/Modal.js +64 -0
- package/dist/esm/legacy/components/molecules/Modal/Modal.js.map +1 -0
- package/dist/esm/legacy/components/molecules/MultiTagPicker/MultiTagPicker.css +97 -0
- package/dist/esm/legacy/components/molecules/MultiTagPicker/MultiTagPicker.js +113 -0
- package/dist/esm/legacy/components/molecules/MultiTagPicker/MultiTagPicker.js.map +1 -0
- package/dist/esm/legacy/components/molecules/PhotoAvatar/PhotoAvatar.js +114 -0
- package/dist/esm/legacy/components/molecules/PhotoAvatar/PhotoAvatar.js.map +1 -0
- package/dist/esm/legacy/components/molecules/SeletorPesquisa/SeletorPesquisa.js +116 -0
- package/dist/esm/legacy/components/molecules/SeletorPesquisa/SeletorPesquisa.js.map +1 -0
- package/dist/esm/legacy/components/molecules/Sidebar/Sidebar.css +69 -0
- package/dist/esm/legacy/components/molecules/Sidebar/Sidebar.js +62 -0
- package/dist/esm/legacy/components/molecules/Sidebar/Sidebar.js.map +1 -0
- package/dist/esm/legacy/components/molecules/UserAvatar/UserAvatar.js +23 -0
- package/dist/esm/legacy/components/molecules/UserAvatar/UserAvatar.js.map +1 -0
- package/dist/esm/legacy/components/organisms/GanttChart/GanttChart.js +162 -0
- package/dist/esm/legacy/components/organisms/GanttChart/GanttChart.js.map +1 -0
- package/dist/esm/legacy/components/organisms/Kanban/Kanban.js +88 -0
- package/dist/esm/legacy/components/organisms/Kanban/Kanban.js.map +1 -0
- package/dist/esm/legacy/components/organisms/LazyLoader/LazyLoader.js +87 -0
- package/dist/esm/legacy/components/organisms/LazyLoader/LazyLoader.js.map +1 -0
- package/dist/esm/legacy/components/organisms/MapaPontos/MapaPontos.js +427 -0
- package/dist/esm/legacy/components/organisms/MapaPontos/MapaPontos.js.map +1 -0
- package/dist/esm/legacy/components/organisms/PainelFiltros/PainelFiltros.js +218 -0
- package/dist/esm/legacy/components/organisms/PainelFiltros/PainelFiltros.js.map +1 -0
- package/dist/esm/legacy/components/organisms/PesquisaRapida/PesquisaRapida.js +147 -0
- package/dist/esm/legacy/components/organisms/PesquisaRapida/PesquisaRapida.js.map +1 -0
- package/dist/esm/legacy/components/organisms/Profile/Profile.css +26 -0
- package/dist/esm/legacy/components/organisms/Profile/Profile.js +26 -0
- package/dist/esm/legacy/components/organisms/Profile/Profile.js.map +1 -0
- package/dist/esm/legacy/components/organisms/RoleGuard/RoleGuard.js +79 -0
- package/dist/esm/legacy/components/organisms/RoleGuard/RoleGuard.js.map +1 -0
- package/dist/esm/legacy/components/organisms/Selector/Selector.css +87 -0
- package/dist/esm/legacy/components/organisms/Selector/Selector.js +181 -0
- package/dist/esm/legacy/components/organisms/Selector/Selector.js.map +1 -0
- package/dist/esm/legacy/components/organisms/StatusMatrix/StatusMatrix.js +115 -0
- package/dist/esm/legacy/components/organisms/StatusMatrix/StatusMatrix.js.map +1 -0
- package/dist/esm/legacy/components/ui/Avisos.js +33 -0
- package/dist/esm/legacy/components/ui/Avisos.js.map +1 -0
- package/dist/esm/legacy/components/ui/BarraAcoes.js +19 -0
- package/dist/esm/legacy/components/ui/BarraAcoes.js.map +1 -0
- package/dist/esm/legacy/components/ui/CabecalhoPagina.js +19 -0
- package/dist/esm/legacy/components/ui/CabecalhoPagina.js.map +1 -0
- package/dist/esm/legacy/components/ui/CaixaPesquisa.js +9 -0
- package/dist/esm/legacy/components/ui/CaixaPesquisa.js.map +1 -0
- package/dist/esm/legacy/components/ui/Confirmacao.js +34 -0
- package/dist/esm/legacy/components/ui/Confirmacao.js.map +1 -0
- package/dist/esm/legacy/components/ui/Escolha.js +41 -0
- package/dist/esm/legacy/components/ui/Escolha.js.map +1 -0
- package/dist/esm/legacy/components/ui/FaixaAviso.js +19 -0
- package/dist/esm/legacy/components/ui/FaixaAviso.js.map +1 -0
- package/dist/esm/legacy/components/ui/MenuAcoes.js +116 -0
- package/dist/esm/legacy/components/ui/MenuAcoes.js.map +1 -0
- package/dist/esm/legacy/components/ui/Passos.js +32 -0
- package/dist/esm/legacy/components/ui/Passos.js.map +1 -0
- package/dist/esm/legacy/components/ui/Separadores.js +17 -0
- package/dist/esm/legacy/components/ui/Separadores.js.map +1 -0
- package/dist/esm/legacy/components/ui/TextoAuto.js +33 -0
- package/dist/esm/legacy/components/ui/TextoAuto.js.map +1 -0
- package/dist/esm/legacy/components/ui/Ui.js +263 -0
- package/dist/esm/legacy/components/ui/Ui.js.map +1 -0
- package/dist/esm/legacy/components/ui/painelFlutuante.js +13 -0
- package/dist/esm/legacy/components/ui/painelFlutuante.js.map +1 -0
- package/dist/esm/legacy/constants/Colors.js +33 -0
- package/dist/esm/legacy/constants/Colors.js.map +1 -0
- package/dist/esm/legacy/constants/FontWeight.js +35 -0
- package/dist/esm/legacy/constants/FontWeight.js.map +1 -0
- package/dist/esm/legacy/contexts/apiContext.js +25 -0
- package/dist/esm/legacy/contexts/apiContext.js.map +1 -0
- package/dist/esm/legacy/contexts/authContext.js +85 -0
- package/dist/esm/legacy/contexts/authContext.js.map +1 -0
- package/dist/esm/legacy/contexts/socketContext.js +34 -0
- package/dist/esm/legacy/contexts/socketContext.js.map +1 -0
- package/dist/esm/legacy/hooks/useApi.js +62 -0
- package/dist/esm/legacy/hooks/useApi.js.map +1 -0
- package/dist/esm/legacy/pages/Error/ErrorPage.css +18 -0
- package/dist/esm/legacy/pages/Error/ErrorPage.js +50 -0
- package/dist/esm/legacy/pages/Error/ErrorPage.js.map +1 -0
- package/dist/esm/legacy/pages/Loading/Loading.css +46 -0
- package/dist/esm/legacy/pages/Loading/Loading.js +9 -0
- package/dist/esm/legacy/pages/Loading/Loading.js.map +1 -0
- package/dist/esm/legacy/pages/Login/LoginScreen.js +46 -0
- package/dist/esm/legacy/pages/Login/LoginScreen.js.map +1 -0
- package/dist/esm/legacy/pages/NotFound/NotFound.css +21 -0
- package/dist/esm/legacy/pages/NotFound/NotFound.js +24 -0
- package/dist/esm/legacy/pages/NotFound/NotFound.js.map +1 -0
- package/dist/esm/legacy/styles/themes/ButtonThemes.js +28 -0
- package/dist/esm/legacy/styles/themes/ButtonThemes.js.map +1 -0
- package/dist/esm/legacy/styles/utils/utils.js +7 -0
- package/dist/esm/legacy/styles/utils/utils.js.map +1 -0
- package/dist/esm/legacy/utils/stringUtils.js +35 -0
- package/dist/esm/legacy/utils/stringUtils.js.map +1 -0
- package/dist/esm/v1/capabilities/documents/QRScanning/scanQRCodes.js +157 -0
- package/dist/esm/v1/capabilities/documents/QRScanning/scanQRCodes.js.map +1 -0
- package/dist/esm/v1/capabilities/overlay/useFloatingPanel.js +52 -0
- package/dist/esm/v1/capabilities/overlay/useFloatingPanel.js.map +1 -0
- package/dist/esm/v1/capabilities/theme/useIsDark.js +15 -0
- package/dist/esm/v1/capabilities/theme/useIsDark.js.map +1 -0
- package/dist/esm/v1/capabilities/theme/useTheme.js +66 -0
- package/dist/esm/v1/capabilities/theme/useTheme.js.map +1 -0
- package/dist/esm/v1/components/data/Pagination/Pagination.js +66 -0
- package/dist/esm/v1/components/data/Pagination/Pagination.js.map +1 -0
- package/dist/esm/v1/components/documents/DocumentDropzone/DocumentDropzone.js +307 -0
- package/dist/esm/v1/components/documents/DocumentDropzone/DocumentDropzone.js.map +1 -0
- package/dist/esm/v1/components/feedback/Toast/Toast.js +105 -0
- package/dist/esm/v1/components/feedback/Toast/Toast.js.map +1 -0
- package/dist/esm/v1/components/forms/FormField/FormField.js +59 -0
- package/dist/esm/v1/components/forms/FormField/FormField.js.map +1 -0
- package/dist/esm/v1/components/forms/FormGrid/FormGrid.js +20 -0
- package/dist/esm/v1/components/forms/FormGrid/FormGrid.js.map +1 -0
- package/dist/esm/v1/components/layout/AppShell/AppShell.js +89 -0
- package/dist/esm/v1/components/layout/AppShell/AppShell.js.map +1 -0
- package/dist/esm/v1/components/layout/Page/Page.js +16 -0
- package/dist/esm/v1/components/layout/Page/Page.js.map +1 -0
- package/dist/esm/v1/components/layout/PageHeader/PageHeader.js +26 -0
- package/dist/esm/v1/components/layout/PageHeader/PageHeader.js.map +1 -0
- package/dist/esm/v1/components/layout/SideNav/SideNav.js +287 -0
- package/dist/esm/v1/components/layout/SideNav/SideNav.js.map +1 -0
- package/dist/esm/v1/components/layout/navTrail.js +19 -0
- package/dist/esm/v1/components/layout/navTrail.js.map +1 -0
- package/dist/esm/v1/components/lists/ListFinder/ListFinder.js +214 -0
- package/dist/esm/v1/components/lists/ListFinder/ListFinder.js.map +1 -0
- package/dist/esm/v1/components/lists/ListFinder/labels.js +18 -0
- package/dist/esm/v1/components/lists/ListFinder/labels.js.map +1 -0
- package/dist/esm/v1/components/overlays/ConfirmDialog/ConfirmDialog.js +95 -0
- package/dist/esm/v1/components/overlays/ConfirmDialog/ConfirmDialog.js.map +1 -0
- package/dist/esm/v1/components/overlays/Dialog/Dialog.js +141 -0
- package/dist/esm/v1/components/overlays/Dialog/Dialog.js.map +1 -0
- package/dist/esm/v1/components/overlays/Tooltip/Tooltip.js +98 -0
- package/dist/esm/v1/components/overlays/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/v1/components/overlays/Tooltip/TooltipLayer.js +84 -0
- package/dist/esm/v1/components/overlays/Tooltip/TooltipLayer.js.map +1 -0
- package/dist/esm/v1/components/overlays/Tooltip/TooltipPanel.js +33 -0
- package/dist/esm/v1/components/overlays/Tooltip/TooltipPanel.js.map +1 -0
- package/dist/esm/v1/components/overlays/topLayer.js +28 -0
- package/dist/esm/v1/components/overlays/topLayer.js.map +1 -0
- package/dist/esm/v1/components/tables/PaginatedTable/PaginatedTable.js +50 -0
- package/dist/esm/v1/components/tables/PaginatedTable/PaginatedTable.js.map +1 -0
- package/dist/esm/v1/components/tables/Table/ColumnFilter.js +292 -0
- package/dist/esm/v1/components/tables/Table/ColumnFilter.js.map +1 -0
- package/dist/esm/v1/components/tables/Table/OverlayScrollbar.js +129 -0
- package/dist/esm/v1/components/tables/Table/OverlayScrollbar.js.map +1 -0
- package/dist/esm/v1/components/tables/Table/Table.js +1410 -0
- package/dist/esm/v1/components/tables/Table/Table.js.map +1 -0
- package/dist/esm/v1/components/tables/Table/labels.js +44 -0
- package/dist/esm/v1/components/tables/Table/labels.js.map +1 -0
- package/dist/esm/v1/foundations/icons/icons.js +178 -0
- package/dist/esm/v1/foundations/icons/icons.js.map +1 -0
- package/dist/esm/v1/primitives/buttons/Button/Button.js +41 -0
- package/dist/esm/v1/primitives/buttons/Button/Button.js.map +1 -0
- package/dist/esm/v1/primitives/buttons/SegmentedControl/SegmentedControl.js +65 -0
- package/dist/esm/v1/primitives/buttons/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/esm/v1/primitives/buttons/SegmentedControl/segmentedStyles.js +10 -0
- package/dist/esm/v1/primitives/buttons/SegmentedControl/segmentedStyles.js.map +1 -0
- package/dist/esm/v1/primitives/display/Avatar/Avatar.js +120 -0
- package/dist/esm/v1/primitives/display/Avatar/Avatar.js.map +1 -0
- package/dist/esm/v1/primitives/display/Badge/Badge.js +23 -0
- package/dist/esm/v1/primitives/display/Badge/Badge.js.map +1 -0
- package/dist/esm/v1/primitives/display/Card/Card.js +22 -0
- package/dist/esm/v1/primitives/display/Card/Card.js.map +1 -0
- package/dist/esm/v1/primitives/display/FilterChips/FilterChips.js +45 -0
- package/dist/esm/v1/primitives/display/FilterChips/FilterChips.js.map +1 -0
- package/dist/esm/v1/primitives/display/Kpi/Kpi.js +103 -0
- package/dist/esm/v1/primitives/display/Kpi/Kpi.js.map +1 -0
- package/dist/esm/v1/primitives/display/Notice/Notice.js +71 -0
- package/dist/esm/v1/primitives/display/Notice/Notice.js.map +1 -0
- package/dist/esm/v1/primitives/display/Person/Person.js +14 -0
- package/dist/esm/v1/primitives/display/Person/Person.js.map +1 -0
- package/dist/esm/v1/primitives/documents/PdfPreview/PdfPreview.js +137 -0
- package/dist/esm/v1/primitives/documents/PdfPreview/PdfPreview.js.map +1 -0
- package/dist/esm/v1/primitives/documents/PdfPreview/pdfjs.js +26 -0
- package/dist/esm/v1/primitives/documents/PdfPreview/pdfjs.js.map +1 -0
- package/dist/esm/v1/primitives/forms/Checkbox/Checkbox.js +37 -0
- package/dist/esm/v1/primitives/forms/Checkbox/Checkbox.js.map +1 -0
- package/dist/esm/v1/primitives/forms/DateInput/DateInput.js +150 -0
- package/dist/esm/v1/primitives/forms/DateInput/DateInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/LookupInput/LookupInput.js +37 -0
- package/dist/esm/v1/primitives/forms/LookupInput/LookupInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/SearchInput/SearchInput.js +43 -0
- package/dist/esm/v1/primitives/forms/SearchInput/SearchInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/SelectInput/SelectInput.js +207 -0
- package/dist/esm/v1/primitives/forms/SelectInput/SelectInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/TextArea/TextArea.js +75 -0
- package/dist/esm/v1/primitives/forms/TextArea/TextArea.js.map +1 -0
- package/dist/esm/v1/primitives/forms/TextInput/TextInput.js +21 -0
- package/dist/esm/v1/primitives/forms/TextInput/TextInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/field.js +14 -0
- package/dist/esm/v1/primitives/forms/field.js.map +1 -0
- package/dist/esm/v1/primitives/lists/ListItem/ListItem.js +39 -0
- package/dist/esm/v1/primitives/lists/ListItem/ListItem.js.map +1 -0
- package/dist/esm/v1/primitives/navigation/Tabs/Tabs.js +96 -0
- package/dist/esm/v1/primitives/navigation/Tabs/Tabs.js.map +1 -0
- package/dist/style.components.css +3 -0
- package/dist/style.css +2 -0
- package/dist/style.layered.css +2 -0
- package/dist/tailwind.css +24 -0
- package/dist/theme-boot.js +1 -0
- package/dist/theme.css +265 -0
- package/dist/tokens.css +121 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/legacy/components/atoms/Acronym/Acronym.d.ts +11 -0
- package/dist/types/legacy/components/atoms/BreadCrumb/BreadCrumb.d.ts +9 -0
- package/dist/types/legacy/components/atoms/Button/variants/ActionButton.d.ts +14 -0
- package/dist/types/legacy/components/atoms/Button/variants/FilterButton.d.ts +12 -0
- package/dist/types/legacy/components/atoms/Button/variants/IconButton.d.ts +22 -0
- package/dist/types/legacy/components/atoms/Button/variants/MainButton.d.ts +17 -0
- package/dist/types/legacy/components/atoms/Button/variants/TabButton.d.ts +14 -0
- package/dist/types/legacy/components/atoms/Field/Field.d.ts +15 -0
- package/dist/types/legacy/components/atoms/IconText/IconText.d.ts +12 -0
- package/dist/types/legacy/components/atoms/Icone/Icone.d.ts +31 -0
- package/dist/types/legacy/components/atoms/Input/Input.d.ts +13 -0
- package/dist/types/legacy/components/atoms/InputData/InputData.d.ts +38 -0
- package/dist/types/legacy/components/atoms/Label/Label.d.ts +11 -0
- package/dist/types/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.d.ts +10 -0
- package/dist/types/legacy/components/atoms/SearchSelect/SearchSelect.d.ts +15 -0
- package/dist/types/legacy/components/atoms/Select/Select.d.ts +16 -0
- package/dist/types/legacy/components/atoms/Stack/Stack.d.ts +9 -0
- package/dist/types/legacy/components/atoms/Switch/CustomSwitch.d.ts +12 -0
- package/dist/types/legacy/components/charts/Charts.d.ts +149 -0
- package/dist/types/legacy/components/layout/AppLauncher/AppLauncher.d.ts +35 -0
- package/dist/types/legacy/components/layout/Error/Error.d.ts +8 -0
- package/dist/types/legacy/components/layout/Footer/Footer.d.ts +11 -0
- package/dist/types/legacy/components/layout/Header/Header.d.ts +16 -0
- package/dist/types/legacy/components/layout/Layout/Layout.d.ts +35 -0
- package/dist/types/legacy/components/layout/Sidebar/Sidebar.d.ts +56 -0
- package/dist/types/legacy/components/layout/Spinner/Spinner.d.ts +5 -0
- package/dist/types/legacy/components/layout/TopBar/TopBar.d.ts +10 -0
- package/dist/types/legacy/components/layout/TopNavLayout/TopNavLayout.d.ts +43 -0
- package/dist/types/legacy/components/molecules/BarraValor/BarraValor.d.ts +28 -0
- package/dist/types/legacy/components/molecules/ColumnPicker/ColumnPicker.d.ts +116 -0
- package/dist/types/legacy/components/molecules/ConfirmModal/ConfirmModal.d.ts +13 -0
- package/dist/types/legacy/components/molecules/DataTable/DataTable.d.ts +344 -0
- package/dist/types/legacy/components/molecules/FileDropzone/FileDropzone.d.ts +25 -0
- package/dist/types/legacy/components/molecules/LanguageSwitcher/LanguageSwitcher.d.ts +33 -0
- package/dist/types/legacy/components/molecules/Modal/Modal.d.ts +22 -0
- package/dist/types/legacy/components/molecules/MultiTagPicker/MultiTagPicker.d.ts +25 -0
- package/dist/types/legacy/components/molecules/PhotoAvatar/PhotoAvatar.d.ts +34 -0
- package/dist/types/legacy/components/molecules/SeletorPesquisa/SeletorPesquisa.d.ts +48 -0
- package/dist/types/legacy/components/molecules/Sidebar/Sidebar.d.ts +12 -0
- package/dist/types/legacy/components/molecules/UserAvatar/UserAvatar.d.ts +19 -0
- package/dist/types/legacy/components/organisms/GanttChart/GanttChart.d.ts +62 -0
- package/dist/types/legacy/components/organisms/Kanban/Kanban.d.ts +44 -0
- package/dist/types/legacy/components/organisms/LazyLoader/LazyLoader.d.ts +16 -0
- package/dist/types/legacy/components/organisms/MapaPontos/MapaPontos.d.ts +206 -0
- package/dist/types/legacy/components/organisms/PainelFiltros/PainelFiltros.d.ts +69 -0
- package/dist/types/legacy/components/organisms/PesquisaRapida/PesquisaRapida.d.ts +53 -0
- package/dist/types/legacy/components/organisms/Profile/Profile.d.ts +12 -0
- package/dist/types/legacy/components/organisms/RoleGuard/RoleGuard.d.ts +37 -0
- package/dist/types/legacy/components/organisms/Selector/Selector.d.ts +20 -0
- package/dist/types/legacy/components/organisms/StatusMatrix/StatusMatrix.d.ts +54 -0
- package/dist/types/legacy/components/ui/Avisos.d.ts +33 -0
- package/dist/types/legacy/components/ui/BarraAcoes.d.ts +19 -0
- package/dist/types/legacy/components/ui/CabecalhoPagina.d.ts +23 -0
- package/dist/types/legacy/components/ui/CaixaPesquisa.d.ts +14 -0
- package/dist/types/legacy/components/ui/Confirmacao.d.ts +24 -0
- package/dist/types/legacy/components/ui/Escolha.d.ts +35 -0
- package/dist/types/legacy/components/ui/FaixaAviso.d.ts +19 -0
- package/dist/types/legacy/components/ui/MenuAcoes.d.ts +31 -0
- package/dist/types/legacy/components/ui/Passos.d.ts +31 -0
- package/dist/types/legacy/components/ui/Separadores.d.ts +19 -0
- package/dist/types/legacy/components/ui/TextoAuto.d.ts +23 -0
- package/dist/types/legacy/components/ui/Ui.d.ts +181 -0
- package/dist/types/legacy/components/ui/painelFlutuante.d.ts +16 -0
- package/dist/types/legacy/constants/Colors.d.ts +28 -0
- package/dist/types/legacy/constants/FontWeight.d.ts +9 -0
- package/dist/types/legacy/contexts/apiContext.d.ts +10 -0
- package/dist/types/legacy/contexts/authContext.d.ts +31 -0
- package/dist/types/legacy/contexts/socketContext.d.ts +16 -0
- package/dist/types/legacy/exports/assets.d.ts +0 -0
- package/dist/types/legacy/exports/atoms.d.ts +19 -0
- package/dist/types/legacy/exports/charts.d.ts +2 -0
- package/dist/types/legacy/exports/constants.d.ts +0 -0
- package/dist/types/legacy/exports/contexts.d.ts +3 -0
- package/dist/types/legacy/exports/hooks.d.ts +4 -0
- package/dist/types/legacy/exports/layout.d.ts +14 -0
- package/dist/types/legacy/exports/molecules.d.ts +21 -0
- package/dist/types/legacy/exports/organisms.d.ts +17 -0
- package/dist/types/legacy/exports/pages.d.ts +5 -0
- package/dist/types/legacy/exports/styles.d.ts +2 -0
- package/dist/types/legacy/exports/types.d.ts +7 -0
- package/dist/types/legacy/exports/ui.d.ts +24 -0
- package/dist/types/legacy/exports/utils.d.ts +1 -0
- package/dist/types/legacy/hooks/useApi.d.ts +19 -0
- package/dist/types/legacy/pages/Error/ErrorPage.d.ts +16 -0
- package/dist/types/legacy/pages/Loading/Loading.d.ts +8 -0
- package/dist/types/legacy/pages/Login/LoginScreen.d.ts +42 -0
- package/dist/types/legacy/pages/NotFound/NotFound.d.ts +8 -0
- package/dist/types/legacy/styles/themes/ButtonThemes.d.ts +6 -0
- package/dist/types/legacy/styles/utils/utils.d.ts +2 -0
- package/dist/types/legacy/types/Fetcher.d.ts +5 -0
- package/dist/types/legacy/types/LoggedUser.d.ts +10 -0
- package/dist/types/legacy/types/SelectableElement.d.ts +6 -0
- package/dist/types/legacy/types/SidebarMenu.d.ts +12 -0
- package/dist/types/legacy/types/themes/AcronymThemes.d.ts +4 -0
- package/dist/types/legacy/types/themes/ButtonThemes.d.ts +21 -0
- package/dist/types/legacy/types/themes/CustomSwitchThemes.d.ts +4 -0
- package/dist/types/legacy/types/themes/IconTextThemes.d.ts +6 -0
- package/dist/types/legacy/utils/keycloak.d.ts +0 -0
- package/dist/types/legacy/utils/stringUtils.d.ts +6 -0
- package/dist/types/v1/capabilities/documents/QRScanning/scanQRCodes.d.ts +25 -0
- package/dist/types/v1/capabilities/overlay/useFloatingPanel.d.ts +20 -0
- package/dist/types/v1/capabilities/theme/useIsDark.d.ts +10 -0
- package/dist/types/v1/capabilities/theme/useTheme.d.ts +29 -0
- package/dist/types/v1/components/data/Pagination/Pagination.d.ts +33 -0
- package/dist/types/v1/components/documents/DocumentDropzone/DocumentDropzone.d.ts +60 -0
- package/dist/types/v1/components/feedback/Toast/Toast.d.ts +51 -0
- package/dist/types/v1/components/forms/FormField/FormField.d.ts +44 -0
- package/dist/types/v1/components/forms/FormGrid/FormGrid.d.ts +23 -0
- package/dist/types/v1/components/layout/AppShell/AppShell.d.ts +35 -0
- package/dist/types/v1/components/layout/Page/Page.d.ts +23 -0
- package/dist/types/v1/components/layout/PageHeader/PageHeader.d.ts +35 -0
- package/dist/types/v1/components/layout/SideNav/SideNav.d.ts +92 -0
- package/dist/types/v1/components/layout/navTrail.d.ts +15 -0
- package/dist/types/v1/components/lists/ListFinder/ListFinder.d.ts +60 -0
- package/dist/types/v1/components/lists/ListFinder/labels.d.ts +24 -0
- package/dist/types/v1/components/overlays/ConfirmDialog/ConfirmDialog.d.ts +59 -0
- package/dist/types/v1/components/overlays/Dialog/Dialog.d.ts +66 -0
- package/dist/types/v1/components/overlays/Tooltip/Tooltip.d.ts +34 -0
- package/dist/types/v1/components/overlays/Tooltip/TooltipLayer.d.ts +18 -0
- package/dist/types/v1/components/overlays/Tooltip/TooltipPanel.d.ts +23 -0
- package/dist/types/v1/components/overlays/topLayer.d.ts +23 -0
- package/dist/types/v1/components/tables/PaginatedTable/PaginatedTable.d.ts +41 -0
- package/dist/types/v1/components/tables/Table/ColumnFilter.d.ts +48 -0
- package/dist/types/v1/components/tables/Table/OverlayScrollbar.d.ts +34 -0
- package/dist/types/v1/components/tables/Table/Table.d.ts +250 -0
- package/dist/types/v1/components/tables/Table/labels.d.ts +54 -0
- package/dist/types/v1/foundations/icons/icons.d.ts +61 -0
- package/dist/types/v1/index.d.ts +81 -0
- package/dist/types/v1/primitives/buttons/Button/Button.d.ts +35 -0
- package/dist/types/v1/primitives/buttons/SegmentedControl/SegmentedControl.d.ts +28 -0
- package/dist/types/v1/primitives/buttons/SegmentedControl/segmentedStyles.d.ts +16 -0
- package/dist/types/v1/primitives/display/Avatar/Avatar.d.ts +30 -0
- package/dist/types/v1/primitives/display/Badge/Badge.d.ts +25 -0
- package/dist/types/v1/primitives/display/Card/Card.d.ts +22 -0
- package/dist/types/v1/primitives/display/FilterChips/FilterChips.d.ts +33 -0
- package/dist/types/v1/primitives/display/Kpi/Kpi.d.ts +68 -0
- package/dist/types/v1/primitives/display/Notice/Notice.d.ts +29 -0
- package/dist/types/v1/primitives/display/Person/Person.d.ts +15 -0
- package/dist/types/v1/primitives/documents/PdfPreview/PdfPreview.d.ts +17 -0
- package/dist/types/v1/primitives/documents/PdfPreview/pdfjs.d.ts +11 -0
- package/dist/types/v1/primitives/forms/Checkbox/Checkbox.d.ts +25 -0
- package/dist/types/v1/primitives/forms/DateInput/DateInput.d.ts +43 -0
- package/dist/types/v1/primitives/forms/LookupInput/LookupInput.d.ts +28 -0
- package/dist/types/v1/primitives/forms/SearchInput/SearchInput.d.ts +23 -0
- package/dist/types/v1/primitives/forms/SelectInput/SelectInput.d.ts +70 -0
- package/dist/types/v1/primitives/forms/TextArea/TextArea.d.ts +40 -0
- package/dist/types/v1/primitives/forms/TextInput/TextInput.d.ts +16 -0
- package/dist/types/v1/primitives/forms/field.d.ts +22 -0
- package/dist/types/v1/primitives/lists/ListItem/ListItem.d.ts +36 -0
- package/dist/types/v1/primitives/navigation/Tabs/Tabs.d.ts +58 -0
- package/package.json +120 -6
- package/README.md +0 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Select.scss';
|
|
3
|
+
interface SelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
interface SelectProps {
|
|
8
|
+
placeholder: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
value: string;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
15
|
+
declare const Select: React.FC<SelectProps>;
|
|
16
|
+
export default Select;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
type Props = PropsWithChildren<{
|
|
3
|
+
spacing?: number;
|
|
4
|
+
direction: 'row' | 'column';
|
|
5
|
+
wrap: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
8
|
+
declare const Stack: ({ children, spacing, direction, wrap, }: Props) => React.JSX.Element;
|
|
9
|
+
export default Stack;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CustomSwitchTheme } from '../../../types/themes/CustomSwitchThemes';
|
|
3
|
+
import './CustomSwitch.scss';
|
|
4
|
+
type CustomSwitchProps = {
|
|
5
|
+
label: string;
|
|
6
|
+
activated: boolean;
|
|
7
|
+
onChange: () => void;
|
|
8
|
+
theme: CustomSwitchTheme;
|
|
9
|
+
};
|
|
10
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
11
|
+
declare const CustomSwitch: React.FC<CustomSwitchProps>;
|
|
12
|
+
export default CustomSwitch;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Stacked series over a set of shared labels (e.g. a dimension over time).
|
|
4
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
5
|
+
*/
|
|
6
|
+
export interface SerieEmpilhada {
|
|
7
|
+
labels: string[];
|
|
8
|
+
series: {
|
|
9
|
+
nome: string;
|
|
10
|
+
valores: number[];
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A simple distribution: parallel arrays of labels and values.
|
|
15
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
16
|
+
*/
|
|
17
|
+
export interface Distribuicao {
|
|
18
|
+
labels: string[];
|
|
19
|
+
valores: number[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Clique num elemento do gráfico: a etiqueta (ex: "Incidente"), a posição dela
|
|
23
|
+
* e o nome da série (quando há várias). Serve para filtrar ao clicar.
|
|
24
|
+
*/
|
|
25
|
+
export type CliqueGrafico = (label: string, indice: number, serie?: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Categorical palette. Stable order so the same dimension always maps to the same color.
|
|
28
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PALETA: string[];
|
|
31
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
32
|
+
export declare function cor(i: number): string;
|
|
33
|
+
export interface BarrasProps {
|
|
34
|
+
labels: string[];
|
|
35
|
+
/** Uma ou várias séries (ex: "Atribuídos" e "Resolvidos"), lado a lado ou empilhadas. */
|
|
36
|
+
series: {
|
|
37
|
+
nome: string;
|
|
38
|
+
valores: number[];
|
|
39
|
+
cor?: string;
|
|
40
|
+
}[];
|
|
41
|
+
/** Barras deitadas, com as etiquetas à esquerda (bom para nomes compridos e rankings). */
|
|
42
|
+
horizontal?: boolean;
|
|
43
|
+
/** Séries empilhadas em vez de lado a lado. */
|
|
44
|
+
empilhado?: boolean;
|
|
45
|
+
/** Altura em px. Nas horizontais, por omissão cresce com o número de barras. */
|
|
46
|
+
altura?: number;
|
|
47
|
+
/** Só as primeiras N (ex: top 10). */
|
|
48
|
+
limite?: number;
|
|
49
|
+
/** Cor de cada barra, quando há uma só série (ex: a cor de cada estado). */
|
|
50
|
+
cores?: string[];
|
|
51
|
+
/** Formato dos valores no tooltip, nas etiquetas e no eixo (ex: minutos → "7h30"). */
|
|
52
|
+
formatar?: (v: number) => string;
|
|
53
|
+
/** Mostra o valor na ponta de cada barra. */
|
|
54
|
+
valores?: boolean;
|
|
55
|
+
/** Junta a percentagem do total ao valor (ex: "12 (34%)"); só com uma série. */
|
|
56
|
+
percentagem?: boolean;
|
|
57
|
+
/** Legenda das séries. Por omissão, só quando há mais do que uma. */
|
|
58
|
+
legenda?: boolean;
|
|
59
|
+
/** Formato das etiquetas do eixo (ex: datas). Por omissão, datas ISO ficam curtas. */
|
|
60
|
+
formatarEtiqueta?: (label: string) => string;
|
|
61
|
+
/** Clique numa barra: devolve a etiqueta, a posição e a série. */
|
|
62
|
+
onClick?: CliqueGrafico;
|
|
63
|
+
}
|
|
64
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
65
|
+
export declare function Barras({ labels: todas, series: todasSeries, horizontal, empilhado, altura, limite, cores, formatar, valores, percentagem, legenda, formatarEtiqueta, onClick, }: BarrasProps): React.JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* Stacked bars for a dimension over time.
|
|
68
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
69
|
+
*/
|
|
70
|
+
export declare function BarrasEmpilhadas({ serie, altura, onClick }: {
|
|
71
|
+
serie: SerieEmpilhada;
|
|
72
|
+
altura?: number;
|
|
73
|
+
onClick?: CliqueGrafico;
|
|
74
|
+
}): React.JSX.Element;
|
|
75
|
+
/**
|
|
76
|
+
* Horizontal bars of a distribution (top N).
|
|
77
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
78
|
+
*/
|
|
79
|
+
export declare function BarrasHorizontais({ dados, altura, limite, onClick, }: {
|
|
80
|
+
dados: Distribuicao;
|
|
81
|
+
altura?: number;
|
|
82
|
+
limite?: number;
|
|
83
|
+
onClick?: CliqueGrafico;
|
|
84
|
+
}): React.JSX.Element;
|
|
85
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
86
|
+
export declare function Anel({ dados, altura, cores, formatar, onClick, }: {
|
|
87
|
+
dados: Distribuicao;
|
|
88
|
+
altura?: number;
|
|
89
|
+
cores?: string[];
|
|
90
|
+
/** Formato dos valores no tooltip. */
|
|
91
|
+
formatar?: (v: number) => string;
|
|
92
|
+
/** Clique numa fatia: devolve a etiqueta e a posição. */
|
|
93
|
+
onClick?: CliqueGrafico;
|
|
94
|
+
}): React.JSX.Element;
|
|
95
|
+
/**
|
|
96
|
+
* Simple line chart — optionally formats values as currency.
|
|
97
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
98
|
+
*/
|
|
99
|
+
export declare function Linha({ dados, altura, euros: emEuros, onClick, }: {
|
|
100
|
+
dados: Distribuicao;
|
|
101
|
+
altura?: number;
|
|
102
|
+
euros?: boolean;
|
|
103
|
+
onClick?: CliqueGrafico;
|
|
104
|
+
}): React.JSX.Element;
|
|
105
|
+
/**
|
|
106
|
+
* Several lines over the same labels — NOT stacked.
|
|
107
|
+
*
|
|
108
|
+
* Separate from `BarrasEmpilhadas` on purpose: two series that measure the same
|
|
109
|
+
* thing at two moments (created vs closed) must be read against each other, and
|
|
110
|
+
* stacking them would draw their sum, which means nothing.
|
|
111
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
112
|
+
*/
|
|
113
|
+
export declare function Linhas({ serie, altura, area, cores, formatar, formatarEtiqueta, onClick, }: {
|
|
114
|
+
serie: SerieEmpilhada;
|
|
115
|
+
altura?: number;
|
|
116
|
+
area?: boolean;
|
|
117
|
+
/** Cor de cada série, pela ordem. */
|
|
118
|
+
cores?: string[];
|
|
119
|
+
/** Formato dos valores no tooltip e no eixo. */
|
|
120
|
+
formatar?: (v: number) => string;
|
|
121
|
+
/** Formato das etiquetas do eixo (ex: datas). */
|
|
122
|
+
formatarEtiqueta?: (label: string) => string;
|
|
123
|
+
/** Clique num ponto: devolve a etiqueta (ex: o dia) e a série. */
|
|
124
|
+
onClick?: CliqueGrafico;
|
|
125
|
+
}): React.JSX.Element;
|
|
126
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
127
|
+
export interface PontoRisco {
|
|
128
|
+
responsavel: string;
|
|
129
|
+
otsAtivas: number;
|
|
130
|
+
percentagemForaPrazo: number;
|
|
131
|
+
valorPenalizado: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Risk-map bubbles: x = active OTs, y = % overdue, r = penalized value.
|
|
135
|
+
* The radius is normalized against the max so bubbles stay readable at any scale.
|
|
136
|
+
*
|
|
137
|
+
* Axis titles and the tooltip formatter are exposed as optional props with
|
|
138
|
+
* neutral English defaults (previously hardcoded Portuguese) so the component
|
|
139
|
+
* carries no locale of its own.
|
|
140
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
141
|
+
*/
|
|
142
|
+
export declare function Bolhas({ pontos, altura, onClick, xTitle, yTitle, tooltipLabel, }: {
|
|
143
|
+
pontos: PontoRisco[];
|
|
144
|
+
altura?: number;
|
|
145
|
+
onClick?: (p: PontoRisco) => void;
|
|
146
|
+
xTitle?: string;
|
|
147
|
+
yTitle?: string;
|
|
148
|
+
tooltipLabel?: (p: PontoRisco) => string;
|
|
149
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
3
|
+
export interface LauncherApp {
|
|
4
|
+
/** Título da app (linha principal). */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Subtítulo opcional. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Ícone (ReactNode) — a app passa o seu (ex: <FontAwesomeIcon .../>). */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
/** Tooltip opcional; default = description || title. */
|
|
12
|
+
title2?: string;
|
|
13
|
+
}
|
|
14
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
15
|
+
export interface AppLauncherProps {
|
|
16
|
+
apps: LauncherApp[];
|
|
17
|
+
/** Cabeçalho (ex: <>Bem-vindo <strong>Vinst</strong></>). O <strong> fica turquesa. */
|
|
18
|
+
heading?: React.ReactNode;
|
|
19
|
+
/** Texto quando não há apps. */
|
|
20
|
+
emptyLabel?: string;
|
|
21
|
+
/** Fundo: cor sólida (default) ou imagem. */
|
|
22
|
+
bgColor?: string;
|
|
23
|
+
bgImage?: string | null;
|
|
24
|
+
accentColor1?: string;
|
|
25
|
+
accentColor2?: string;
|
|
26
|
+
/** Altura da nav do TopNavLayout para o cálculo de min-height. */
|
|
27
|
+
navHeight?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Ecrã de launcher de aplicações (grid centrado de cartões em vidro sobre fundo
|
|
31
|
+
* escuro). Feito para viver dentro do <main> do TopNavLayout — cancela o padding
|
|
32
|
+
* dele com margens negativas para ficar full-bleed. Ícones vêm da app (ReactNode).
|
|
33
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
34
|
+
*/
|
|
35
|
+
export default function AppLauncher({ apps, heading, emptyLabel, bgColor, bgImage, accentColor1, accentColor2, navHeight, }: AppLauncherProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Footer.scss';
|
|
3
|
+
export interface FooterProps {
|
|
4
|
+
/** Nome do responsável pelo tratamento de dados (aviso RGPD). */
|
|
5
|
+
companyName?: string;
|
|
6
|
+
/** Email de contacto para exercer direitos RGPD. */
|
|
7
|
+
contactEmail?: string;
|
|
8
|
+
}
|
|
9
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
10
|
+
declare const Footer: React.FC<FooterProps>;
|
|
11
|
+
export default Footer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './Header.scss';
|
|
3
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
4
|
+
type Props = {
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
icon?: IconProp;
|
|
8
|
+
sideBar: boolean;
|
|
9
|
+
handleSideBar: () => void;
|
|
10
|
+
profile: ReactNode;
|
|
11
|
+
handleHome: () => void;
|
|
12
|
+
background?: string;
|
|
13
|
+
};
|
|
14
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
15
|
+
declare const Header: ({ title, subTitle, icon, sideBar, handleSideBar, profile, handleHome, background, }: Props) => React.JSX.Element;
|
|
16
|
+
export default Header;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SidebarMenuItem, type SidebarLanguage, type SidebarTheme } from '../Sidebar/Sidebar';
|
|
3
|
+
/** @deprecated Legacy — usar `AppShellProps` do V1. */
|
|
4
|
+
export interface LayoutProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
menus: SidebarMenuItem[];
|
|
7
|
+
groupLabels?: Record<string, string>;
|
|
8
|
+
appTitle?: string;
|
|
9
|
+
/** Barra superior opcional (título/alertas), sticky acima do conteúdo. */
|
|
10
|
+
topBar?: React.ReactNode;
|
|
11
|
+
avatar?: React.ReactNode;
|
|
12
|
+
onLogout?: () => void;
|
|
13
|
+
logoutLabel?: string;
|
|
14
|
+
languages?: SidebarLanguage[];
|
|
15
|
+
currentLang?: string;
|
|
16
|
+
onLanguageChange?: (code: string) => void;
|
|
17
|
+
theme?: SidebarTheme;
|
|
18
|
+
onThemeChange?: (theme: SidebarTheme) => void;
|
|
19
|
+
themeLabels?: {
|
|
20
|
+
label?: string;
|
|
21
|
+
light?: string;
|
|
22
|
+
dark?: string;
|
|
23
|
+
system?: string;
|
|
24
|
+
};
|
|
25
|
+
footer?: (isExpanded: boolean) => React.ReactNode;
|
|
26
|
+
deployedAt?: string | number | Date;
|
|
27
|
+
deployedAtLabel?: string;
|
|
28
|
+
/** Estado inicial da sidebar (aberta/fechada). */
|
|
29
|
+
sidebarOpen?: boolean;
|
|
30
|
+
/** Chamado quando a pessoa abre/fecha a sidebar. */
|
|
31
|
+
onSidebarOpenChange?: (open: boolean) => void;
|
|
32
|
+
}
|
|
33
|
+
/** @deprecated Legacy — usar `AppShell` do V1. */
|
|
34
|
+
declare const Layout: ({ children, menus, currentLang, logoutLabel, themeLabels, deployedAtLabel, footer, sidebarOpen, onSidebarOpenChange, ...rest }: LayoutProps) => React.JSX.Element;
|
|
35
|
+
export default Layout;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SideNavItem, type SideNavLabels } from '../../../../v1/components/layout/SideNav/SideNav';
|
|
3
|
+
/** @deprecated Legacy — usar `SideNavTheme` do V1. */
|
|
4
|
+
export type SidebarTheme = 'light' | 'dark' | 'system';
|
|
5
|
+
/** @deprecated Legacy — usar `languages` do `SideNav` do V1. */
|
|
6
|
+
export interface SidebarLanguage {
|
|
7
|
+
code: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/** @deprecated Legacy — usar `SideNavItem` do V1. */
|
|
11
|
+
export interface SidebarMenuItem {
|
|
12
|
+
to: string;
|
|
13
|
+
icon: React.ComponentType<{
|
|
14
|
+
size?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
}>;
|
|
17
|
+
label: string;
|
|
18
|
+
group?: string;
|
|
19
|
+
end?: boolean;
|
|
20
|
+
/** Contador opcional (ex: aprovações pendentes). */
|
|
21
|
+
badge?: number;
|
|
22
|
+
/** Destino fora da aplicação: abre em separador novo. */
|
|
23
|
+
external?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** @deprecated Legacy — usar `SideNavProps` do V1. */
|
|
26
|
+
export interface SidebarProps {
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
29
|
+
menus: SidebarMenuItem[];
|
|
30
|
+
groupLabels?: Record<string, string>;
|
|
31
|
+
appTitle?: string;
|
|
32
|
+
avatar?: React.ReactNode;
|
|
33
|
+
onLogout?: () => void;
|
|
34
|
+
logoutLabel?: string;
|
|
35
|
+
languages?: SidebarLanguage[];
|
|
36
|
+
currentLang?: string;
|
|
37
|
+
onLanguageChange?: (code: string) => void;
|
|
38
|
+
theme?: SidebarTheme;
|
|
39
|
+
onThemeChange?: (theme: SidebarTheme) => void;
|
|
40
|
+
themeLabels?: {
|
|
41
|
+
label?: string;
|
|
42
|
+
light?: string;
|
|
43
|
+
dark?: string;
|
|
44
|
+
system?: string;
|
|
45
|
+
};
|
|
46
|
+
footer?: (isExpanded: boolean) => React.ReactNode;
|
|
47
|
+
deployedAt?: string | number | Date;
|
|
48
|
+
deployedAtLabel?: string;
|
|
49
|
+
}
|
|
50
|
+
/** Itens do menu antigo no formato do V1 (`badge` → `badges`). */
|
|
51
|
+
export declare const menuV1: (menus: SidebarMenuItem[]) => SideNavItem[];
|
|
52
|
+
/** Os textos por omissão do menu antigo, para não mudarem nas apps que ainda o usam. */
|
|
53
|
+
export declare const labelsV1: (p: Pick<SidebarProps, "logoutLabel" | "themeLabels" | "deployedAtLabel">) => Partial<SideNavLabels>;
|
|
54
|
+
/** @deprecated Legacy — usar `SideNav` (ou `AppShell`) do V1. */
|
|
55
|
+
declare const Sidebar: ({ isOpen, setIsOpen, menus, currentLang, logoutLabel, themeLabels, deployedAtLabel, ...rest }: SidebarProps) => React.JSX.Element;
|
|
56
|
+
export default Sidebar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
3
|
+
export interface TopBarProps {
|
|
4
|
+
searchPlaceholder?: string;
|
|
5
|
+
onSearch?: (value: string) => void;
|
|
6
|
+
right?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
9
|
+
declare const TopBar: ({ searchPlaceholder, onSearch, right }: TopBarProps) => React.JSX.Element;
|
|
10
|
+
export default TopBar;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SidebarLanguage, SidebarTheme } from '../Sidebar/Sidebar';
|
|
3
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
4
|
+
export interface TopNavItem {
|
|
5
|
+
to: string;
|
|
6
|
+
label: string;
|
|
7
|
+
end?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
10
|
+
export interface TopNavLayoutProps {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
menus: TopNavItem[];
|
|
13
|
+
appTitle: string;
|
|
14
|
+
appSubtitle?: string;
|
|
15
|
+
/** Logo custom à esquerda. Sem isto: barra turquesa + appTitle/appSubtitle. */
|
|
16
|
+
logo?: React.ReactNode;
|
|
17
|
+
avatar?: React.ReactNode;
|
|
18
|
+
userName?: string;
|
|
19
|
+
onLogout?: () => void;
|
|
20
|
+
logoutLabel?: string;
|
|
21
|
+
languages?: SidebarLanguage[];
|
|
22
|
+
currentLang?: string;
|
|
23
|
+
onLanguageChange?: (code: string) => void;
|
|
24
|
+
theme?: SidebarTheme;
|
|
25
|
+
onThemeChange?: (theme: SidebarTheme) => void;
|
|
26
|
+
themeLabels?: {
|
|
27
|
+
label?: string;
|
|
28
|
+
light?: string;
|
|
29
|
+
dark?: string;
|
|
30
|
+
system?: string;
|
|
31
|
+
};
|
|
32
|
+
/** Largura máxima do conteúdo/nav (px). Default 1400. */
|
|
33
|
+
maxWidth?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Layout com navegação HORIZONTAL no topo (design system proef) — para portais
|
|
37
|
+
* com muitas secções de topo. Alternativa ao `Layout` (sidebar). Parametrizado:
|
|
38
|
+
* `menus` (tabs), marca, avatar/logout e selectores de idioma/tema à direita.
|
|
39
|
+
* Requer o CSS do common-ui + react-router.
|
|
40
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
41
|
+
*/
|
|
42
|
+
declare const TopNavLayout: ({ children, menus, appTitle, appSubtitle, logo, avatar, userName, onLogout, logoutLabel, languages, currentLang, onLanguageChange, theme, onThemeChange, themeLabels, maxWidth, }: TopNavLayoutProps) => React.JSX.Element;
|
|
43
|
+
export default TopNavLayout;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Lista de barras horizontais — a forma mais legível de comparar poucas
|
|
4
|
+
* dezenas de valores (horas por pessoa, por plano, por etiqueta).
|
|
5
|
+
*
|
|
6
|
+
* Não é um gráfico: não traz eixos, escalas nem biblioteca de charts. A barra é
|
|
7
|
+
* proporcional ao maior valor da lista, que é o que se quer para comparar
|
|
8
|
+
* grandezas entre linhas.
|
|
9
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
10
|
+
*/
|
|
11
|
+
export interface LinhaBarra {
|
|
12
|
+
chave: string;
|
|
13
|
+
rotulo: string;
|
|
14
|
+
valor: number;
|
|
15
|
+
/** O que aparece à direita (ex: "3h20"). Sem isto mostra o número cru. */
|
|
16
|
+
texto?: string;
|
|
17
|
+
}
|
|
18
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
19
|
+
export interface BarraValorProps {
|
|
20
|
+
linhas: LinhaBarra[];
|
|
21
|
+
/** Máximo da escala. Sem isto usa o maior valor da lista. */
|
|
22
|
+
maximo?: number;
|
|
23
|
+
/** Classe de cor da barra. */
|
|
24
|
+
cor?: string;
|
|
25
|
+
vazio?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
28
|
+
export default function BarraValor({ linhas, maximo, cor, vazio, }: BarraValorProps): React.JSX.Element;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DataTableColumn } from '../DataTable/DataTable';
|
|
3
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
4
|
+
export interface ColumnPickerItem {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
/** Escondida por omissão — é assim que o "Repor" a deixa. */
|
|
8
|
+
defaultHidden?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
11
|
+
export interface ColumnPickerLabels {
|
|
12
|
+
/** Texto do botão (escondido em ecrãs estreitos — a contagem fica sempre). */
|
|
13
|
+
title: string;
|
|
14
|
+
all: string;
|
|
15
|
+
none: string;
|
|
16
|
+
/** @deprecated O botão repõe ordem e visibilidade — usar `reset`. Continua a servir de texto quando `reset` não vem. */
|
|
17
|
+
resetOrder: string;
|
|
18
|
+
/** Texto do botão que repõe ordem e colunas visíveis por omissão. */
|
|
19
|
+
reset?: string;
|
|
20
|
+
moveUp: string;
|
|
21
|
+
moveDown: string;
|
|
22
|
+
}
|
|
23
|
+
/** Layout de colunas guardável (ex.: numa API): chaves escondidas e ordem (vazia = ordem natural). */
|
|
24
|
+
export interface ColumnLayout {
|
|
25
|
+
hidden: string[];
|
|
26
|
+
order: string[];
|
|
27
|
+
}
|
|
28
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
29
|
+
export interface ColumnPickerProps {
|
|
30
|
+
/** Colunas pela ordem em que estão a ser desenhadas (já reordenadas). */
|
|
31
|
+
columns: ColumnPickerItem[];
|
|
32
|
+
hidden: Set<string>;
|
|
33
|
+
onHiddenChange: (v: Set<string>) => void;
|
|
34
|
+
/** Ordem atual das chaves. Vazia = ordem natural das colunas. */
|
|
35
|
+
order: string[];
|
|
36
|
+
onOrderChange: (v: string[]) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Nº de colunas iniciais que "Nenhuma" nunca esconde — uma tabela sem colunas
|
|
39
|
+
* nenhumas não é utilizável. Default 1.
|
|
40
|
+
*/
|
|
41
|
+
keepFirst?: number;
|
|
42
|
+
/** Chaves que ficam sempre à vista: a caixa aparece marcada e desativada, e "Nenhuma" não as esconde. */
|
|
43
|
+
alwaysVisible?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Substitui o "Repor". Por omissão chama `onOrderChange([])` e `onHiddenChange` com as `defaultHidden`;
|
|
46
|
+
* o `useColumnLayout` passa aqui o seu `reset`, para repor as duas coisas num só aviso.
|
|
47
|
+
*/
|
|
48
|
+
onReset?: () => void;
|
|
49
|
+
labels?: Partial<ColumnPickerLabels>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Escolha e ordenação das colunas de uma tabela.
|
|
53
|
+
*
|
|
54
|
+
* Vive fora do `DataTable` de propósito: a tabela recebe as colunas já filtradas e
|
|
55
|
+
* ordenadas e limita-se a desenhar o que lhe é dado. Quem decide (e quem guarda a
|
|
56
|
+
* escolha, se quiser) é o ecrã.
|
|
57
|
+
*
|
|
58
|
+
* As colunas escondidas continuam listadas, para poderem ser reordenadas antes de
|
|
59
|
+
* voltarem a aparecer.
|
|
60
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
61
|
+
*/
|
|
62
|
+
export default function ColumnPicker({ columns, hidden, onHiddenChange, order, onOrderChange, keepFirst, alwaysVisible, onReset, labels, }: ColumnPickerProps): React.JSX.Element;
|
|
63
|
+
/**
|
|
64
|
+
* Reordena as colunas por `order`. Chaves fora de `order` ficam no fim, pela ordem natural —
|
|
65
|
+
* assim uma ordem guardada antes de a tabela ganhar colunas novas continua a servir, em vez
|
|
66
|
+
* de as fazer desaparecer.
|
|
67
|
+
*
|
|
68
|
+
* É esta lista (com as escondidas incluídas) que o `ColumnPicker` recebe: uma coluna que
|
|
69
|
+
* deixasse de ser listada por estar escondida não tinha como voltar.
|
|
70
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
71
|
+
*/
|
|
72
|
+
export declare function orderColumns<C extends {
|
|
73
|
+
key: string;
|
|
74
|
+
}>(columns: C[], order: string[]): C[];
|
|
75
|
+
/**
|
|
76
|
+
* `orderColumns` + remoção das escondidas. É o que se passa à tabela.
|
|
77
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
78
|
+
*/
|
|
79
|
+
export declare function applyColumnLayout<C extends {
|
|
80
|
+
key: string;
|
|
81
|
+
}>(columns: C[], order: string[], hidden: Set<string>): C[];
|
|
82
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
83
|
+
export interface UseColumnLayoutOptions {
|
|
84
|
+
/**
|
|
85
|
+
* Layout guardado (ex.: vindo de uma API). Pode chegar depois de montar: aplica-se quando deixa de ser
|
|
86
|
+
* `undefined` — a não ser que a pessoa já tenha mexido entretanto. Sem layout guardado não se passa
|
|
87
|
+
* (ficam as `defaultHidden`).
|
|
88
|
+
*/
|
|
89
|
+
initial?: ColumnLayout;
|
|
90
|
+
/** Chamado a cada mudança feita pela pessoa (inclui o "Repor"). É aqui que a app guarda. */
|
|
91
|
+
onChange?: (layout: ColumnLayout) => void;
|
|
92
|
+
/** Chaves que nunca se escondem (ver `ColumnPicker.alwaysVisible`). */
|
|
93
|
+
alwaysVisible?: string[];
|
|
94
|
+
}
|
|
95
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
96
|
+
export interface UseColumnLayoutResult<C extends ColumnPickerItem> {
|
|
97
|
+
/** Colunas a passar à tabela: ordenadas e sem as escondidas. */
|
|
98
|
+
visibleColumns: C[];
|
|
99
|
+
layout: ColumnLayout;
|
|
100
|
+
/** Muda o layout (valor ou função do anterior) e avisa `onChange`. */
|
|
101
|
+
setLayout: (next: ColumnLayout | ((prev: ColumnLayout) => ColumnLayout)) => void;
|
|
102
|
+
/** Volta à ordem natural com as `defaultHidden` escondidas, e avisa `onChange`. */
|
|
103
|
+
reset: () => void;
|
|
104
|
+
/** Props prontas para `<ColumnPicker {...pickerProps} />`. */
|
|
105
|
+
pickerProps: Pick<ColumnPickerProps, 'hidden' | 'onHiddenChange' | 'order' | 'onOrderChange' | 'alwaysVisible' | 'onReset'> & {
|
|
106
|
+
columns: C[];
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Estado do layout de colunas (visibilidade + ordem) para ligar ao `ColumnPicker` e à tabela.
|
|
111
|
+
*
|
|
112
|
+
* Não guarda nada: quem persiste (sessão, API do servidor…) é a app, com `initial` + `onChange`. Arranca com
|
|
113
|
+
* as `defaultHidden` escondidas e as `alwaysVisible` nunca saem.
|
|
114
|
+
* @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.
|
|
115
|
+
*/
|
|
116
|
+
export declare function useColumnLayout<T, C extends ColumnPickerItem = DataTableColumn<T>>(columns: C[], { initial, onChange, alwaysVisible }?: UseColumnLayoutOptions): UseColumnLayoutResult<C>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './ConfirmModal.scss';
|
|
3
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
4
|
+
interface ConfirmModal {
|
|
5
|
+
title: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
handleCancel: () => void;
|
|
8
|
+
handleConfirm: () => void;
|
|
9
|
+
working: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */
|
|
12
|
+
declare function ConfirmModal({ title, children, handleCancel, handleConfirm, working, }: ConfirmModal): React.JSX.Element;
|
|
13
|
+
export default ConfirmModal;
|