@nextelco/common-ui 2.1.98 → 2.1.100
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/index.js +222 -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 +36 -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/atoms/Tooltip/Tooltip.css +17 -0
- package/dist/esm/legacy/components/atoms/Tooltip/Tooltip.js +41 -0
- package/dist/esm/legacy/components/atoms/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/legacy/components/charts/Charts.js +259 -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 +92 -0
- package/dist/esm/legacy/components/layout/Layout/Layout.js.map +1 -0
- package/dist/esm/legacy/components/layout/Sidebar/Sidebar.js +227 -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 +179 -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 +1145 -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 +107 -0
- package/dist/esm/legacy/components/molecules/PhotoAvatar/PhotoAvatar.js.map +1 -0
- package/dist/esm/legacy/components/molecules/Search/Search.css +18 -0
- package/dist/esm/legacy/components/molecules/Search/Search.js +30 -0
- package/dist/esm/legacy/components/molecules/Search/Search.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 +105 -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 +206 -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 +68 -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 +86 -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 +32 -0
- package/dist/esm/legacy/components/ui/CabecalhoPagina.js.map +1 -0
- package/dist/esm/legacy/components/ui/CaixaPesquisa.js +57 -0
- package/dist/esm/legacy/components/ui/CaixaPesquisa.js.map +1 -0
- package/dist/esm/legacy/components/ui/Confirmacao.js +52 -0
- package/dist/esm/legacy/components/ui/Confirmacao.js.map +1 -0
- package/dist/esm/legacy/components/ui/Escolha.js +157 -0
- package/dist/esm/legacy/components/ui/Escolha.js.map +1 -0
- package/dist/esm/legacy/components/ui/FaixaAviso.js +17 -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 +52 -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 +360 -0
- package/dist/esm/legacy/components/ui/Ui.js.map +1 -0
- package/dist/esm/legacy/components/ui/painelFlutuante.js +52 -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/hooks/useTheme.js +39 -0
- package/dist/esm/legacy/hooks/useTheme.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/components/documents/DocumentDropzone/DocumentDropzone.js +307 -0
- package/dist/esm/v1/components/documents/DocumentDropzone/DocumentDropzone.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/overlays/Dialog/Dialog.js +87 -0
- package/dist/esm/v1/components/overlays/Dialog/Dialog.js.map +1 -0
- package/dist/esm/v1/foundations/icons/icons.js +76 -0
- package/dist/esm/v1/foundations/icons/icons.js.map +1 -0
- package/dist/esm/v1/primitives/buttons/Button/Button.js +27 -0
- package/dist/esm/v1/primitives/buttons/Button/Button.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/LookupInput/LookupInput.js +37 -0
- package/dist/esm/v1/primitives/forms/LookupInput/LookupInput.js.map +1 -0
- package/dist/esm/v1/primitives/forms/SelectInput/SelectInput.js +29 -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 +12 -0
- package/dist/esm/v1/primitives/forms/field.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/types/index.d.ts +14 -13
- package/dist/types/{components → legacy/components}/atoms/Acronym/Acronym.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/BreadCrumb/BreadCrumb.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Button/variants/ActionButton.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Button/variants/FilterButton.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Button/variants/IconButton.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Button/variants/MainButton.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Button/variants/TabButton.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Field/Field.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/IconText/IconText.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Icone/Icone.d.ts +2 -0
- package/dist/types/{components → legacy/components}/atoms/Input/Input.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/InputData/InputData.d.ts +4 -0
- package/dist/types/{components → legacy/components}/atoms/Label/Label.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Select/Select.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Stack/Stack.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Switch/CustomSwitch.d.ts +1 -0
- package/dist/types/{components → legacy/components}/atoms/Tooltip/Tooltip.d.ts +1 -0
- package/dist/types/{components → legacy/components}/charts/Charts.d.ts +29 -6
- package/dist/types/{components → legacy/components}/layout/AppLauncher/AppLauncher.d.ts +3 -0
- package/dist/types/{components → legacy/components}/layout/Error/Error.d.ts +1 -0
- package/dist/types/{components → legacy/components}/layout/Footer/Footer.d.ts +1 -0
- package/dist/types/{components → legacy/components}/layout/Header/Header.d.ts +1 -0
- package/dist/types/{components → legacy/components}/layout/Layout/Layout.d.ts +2 -0
- package/dist/types/{components → legacy/components}/layout/Sidebar/Sidebar.d.ts +5 -0
- package/dist/types/{components → legacy/components}/layout/Spinner/Spinner.d.ts +1 -0
- package/dist/types/{components → legacy/components}/layout/TopBar/TopBar.d.ts +2 -0
- package/dist/types/{components → legacy/components}/layout/TopNavLayout/TopNavLayout.d.ts +3 -0
- package/dist/types/{components → legacy/components}/molecules/BarraValor/BarraValor.d.ts +3 -0
- package/dist/types/{components → legacy/components}/molecules/ColumnPicker/ColumnPicker.d.ts +8 -1
- package/dist/types/{components → legacy/components}/molecules/ConfirmModal/ConfirmModal.d.ts +2 -0
- package/dist/types/{components → legacy/components}/molecules/DataTable/DataTable.d.ts +6 -0
- package/dist/types/{components → legacy/components}/molecules/FileDropzone/FileDropzone.d.ts +3 -0
- package/dist/types/{components → legacy/components}/molecules/LanguageSwitcher/LanguageSwitcher.d.ts +3 -0
- package/dist/types/{components → legacy/components}/molecules/Modal/Modal.d.ts +2 -0
- package/dist/types/{components → legacy/components}/molecules/MultiTagPicker/MultiTagPicker.d.ts +2 -0
- package/dist/types/{components → legacy/components}/molecules/PhotoAvatar/PhotoAvatar.d.ts +1 -0
- package/dist/types/{components → legacy/components}/molecules/SeletorPesquisa/SeletorPesquisa.d.ts +3 -0
- package/dist/types/{components → legacy/components}/molecules/Sidebar/Sidebar.d.ts +1 -0
- package/dist/types/{components → legacy/components}/molecules/UserAvatar/UserAvatar.d.ts +1 -0
- package/dist/types/{components → legacy/components}/organisms/GanttChart/GanttChart.d.ts +8 -1
- package/dist/types/{components → legacy/components}/organisms/Kanban/Kanban.d.ts +3 -0
- package/dist/types/{components → legacy/components}/organisms/LazyLoader/LazyLoader.d.ts +1 -0
- package/dist/types/{components → legacy/components}/organisms/MapaPontos/MapaPontos.d.ts +12 -2
- package/dist/types/{components → legacy/components}/organisms/PainelFiltros/PainelFiltros.d.ts +7 -0
- package/dist/types/{components → legacy/components}/organisms/PesquisaRapida/PesquisaRapida.d.ts +5 -0
- package/dist/types/{components → legacy/components}/organisms/Profile/Profile.d.ts +1 -0
- package/dist/types/{components → legacy/components}/organisms/RoleGuard/RoleGuard.d.ts +6 -1
- package/dist/types/{components → legacy/components}/organisms/Selector/Selector.d.ts +1 -0
- package/dist/types/{components → legacy/components}/organisms/StatusMatrix/StatusMatrix.d.ts +6 -0
- package/dist/types/{components → legacy/components}/ui/Avisos.d.ts +9 -1
- package/dist/types/{components → legacy/components}/ui/BarraAcoes.d.ts +2 -0
- package/dist/types/{components → legacy/components}/ui/CabecalhoPagina.d.ts +6 -1
- package/dist/types/{components → legacy/components}/ui/Confirmacao.d.ts +2 -0
- package/dist/types/{components → legacy/components}/ui/FaixaAviso.d.ts +3 -0
- package/dist/types/{components → legacy/components}/ui/Passos.d.ts +3 -0
- package/dist/types/{components → legacy/components}/ui/Separadores.d.ts +3 -0
- package/dist/types/{components → legacy/components}/ui/TextoAuto.d.ts +2 -0
- package/dist/types/{components → legacy/components}/ui/Ui.d.ts +41 -7
- package/dist/types/{constants → legacy/constants}/FontWeight.d.ts +1 -0
- package/dist/types/{contexts → legacy/contexts}/apiContext.d.ts +1 -0
- package/dist/types/{contexts → legacy/contexts}/authContext.d.ts +2 -0
- package/dist/types/{contexts → legacy/contexts}/socketContext.d.ts +2 -0
- package/dist/types/{exports → legacy/exports}/hooks.d.ts +1 -1
- package/dist/types/{exports → legacy/exports}/molecules.d.ts +2 -1
- package/dist/types/legacy/exports/types.d.ts +7 -0
- package/dist/types/{hooks → legacy/hooks}/useApi.d.ts +2 -0
- package/dist/types/{hooks → legacy/hooks}/useTheme.d.ts +2 -0
- package/dist/types/{pages → legacy/pages}/Error/ErrorPage.d.ts +1 -0
- package/dist/types/{pages → legacy/pages}/Loading/Loading.d.ts +1 -0
- package/dist/types/{pages → legacy/pages}/Login/LoginScreen.d.ts +2 -0
- package/dist/types/{pages → legacy/pages}/NotFound/NotFound.d.ts +1 -0
- package/dist/types/legacy/styles/utils/utils.d.ts +2 -0
- package/dist/types/{types → legacy/types}/Fetcher.d.ts +1 -0
- package/dist/types/{types → legacy/types}/LoggedUser.d.ts +1 -0
- package/dist/types/{types → legacy/types}/SidebarMenu.d.ts +2 -0
- package/dist/types/legacy/types/themes/AcronymThemes.d.ts +4 -0
- package/dist/types/{types → legacy/types}/themes/ButtonThemes.d.ts +3 -0
- package/dist/types/legacy/types/themes/CustomSwitchThemes.d.ts +4 -0
- package/dist/types/{types → legacy/types}/themes/IconTextThemes.d.ts +1 -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/components/documents/DocumentDropzone/DocumentDropzone.d.ts +60 -0
- package/dist/types/v1/components/forms/FormField/FormField.d.ts +44 -0
- package/dist/types/v1/components/forms/FormGrid/FormGrid.d.ts +21 -0
- package/dist/types/v1/components/overlays/Dialog/Dialog.d.ts +55 -0
- package/dist/types/v1/foundations/icons/icons.d.ts +24 -0
- package/dist/types/v1/index.d.ts +25 -0
- package/dist/types/v1/primitives/buttons/Button/Button.d.ts +18 -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/LookupInput/LookupInput.d.ts +25 -0
- package/dist/types/v1/primitives/forms/SelectInput/SelectInput.d.ts +19 -0
- package/dist/types/v1/primitives/forms/TextArea/TextArea.d.ts +37 -0
- package/dist/types/v1/primitives/forms/TextInput/TextInput.d.ts +16 -0
- package/dist/types/v1/primitives/forms/field.d.ts +20 -0
- package/package.json +38 -33
- package/dist/bundle.js +0 -2
- package/dist/bundle.js.LICENSE.txt +0 -80
- package/dist/types/components/atoms/Icone/Icone.test.d.ts +0 -1
- package/dist/types/components/layout/Sidebar/Sidebar.test.d.ts +0 -1
- package/dist/types/components/molecules/BarraValor/BarraValor.test.d.ts +0 -1
- package/dist/types/components/molecules/DataTable/DataTable.test.d.ts +0 -1
- package/dist/types/components/molecules/SeletorPesquisa/SeletorPesquisa.test.d.ts +0 -1
- package/dist/types/components/organisms/Kanban/Kanban.test.d.ts +0 -1
- package/dist/types/components/organisms/RoleGuard/RoleGuard.test.d.ts +0 -1
- package/dist/types/components/ui/CaixaPesquisa.test.d.ts +0 -1
- package/dist/types/components/ui/Escolha.test.d.ts +0 -1
- package/dist/types/components/ui/Paginas.test.d.ts +0 -1
- package/dist/types/exports/types.d.ts +0 -7
- package/dist/types/styles/utils/utils.d.ts +0 -1
- package/dist/types/test/setup.d.ts +0 -1
- package/dist/types/types/themes/AcronymThemes.d.ts +0 -3
- package/dist/types/types/themes/CustomSwitchThemes.d.ts +0 -3
- package/dist/types/utils/stringUtils.d.ts +0 -3
- /package/dist/types/{components → legacy/components}/atoms/MultiTagPickerTag/MultiTagPickerTag.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/atoms/SearchSelect/SearchSelect.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/molecules/Search/Search.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/ui/CaixaPesquisa.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/ui/Escolha.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/ui/MenuAcoes.d.ts +0 -0
- /package/dist/types/{components → legacy/components}/ui/painelFlutuante.d.ts +0 -0
- /package/dist/types/{constants → legacy/constants}/Colors.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/assets.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/atoms.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/charts.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/constants.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/contexts.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/layout.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/organisms.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/pages.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/styles.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/ui.d.ts +0 -0
- /package/dist/types/{exports → legacy/exports}/utils.d.ts +0 -0
- /package/dist/types/{styles → legacy/styles}/themes/ButtonThemes.d.ts +0 -0
- /package/dist/types/{types → legacy/types}/SelectableElement.d.ts +0 -0
- /package/dist/types/{utils → legacy/utils}/keycloak.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Field.css';/* empty css */
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faChevronUp, faChevronDown } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
const Field = ({
|
|
6
|
+
type,
|
|
7
|
+
placeholder = "Enter text...",
|
|
8
|
+
disabled,
|
|
9
|
+
readOnly,
|
|
10
|
+
iconPrev,
|
|
11
|
+
value,
|
|
12
|
+
onChange
|
|
13
|
+
}) => {
|
|
14
|
+
const handleIncrement = () => {
|
|
15
|
+
if (onChange) {
|
|
16
|
+
onChange({
|
|
17
|
+
target: { value: String(Number(value || 0) + 1) }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const handleDecrement = () => {
|
|
22
|
+
if (onChange) {
|
|
23
|
+
onChange({
|
|
24
|
+
target: { value: String(Math.max(Number(value || 0) - 1, 0)) }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: `cui-field ${type ? type : ""}`, children: [
|
|
29
|
+
iconPrev && /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: iconPrev, className: "cui-icon" }),
|
|
30
|
+
/* @__PURE__ */ jsxs("div", { className: "cui-inputWrapper", children: [
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
"input",
|
|
33
|
+
{
|
|
34
|
+
className: `cui-input ${iconPrev ? "cui-with-icon" : ""} ${type ? type : ""}`,
|
|
35
|
+
type: type === "cui-number" ? "number" : "text",
|
|
36
|
+
placeholder: iconPrev ? "" : placeholder,
|
|
37
|
+
disabled,
|
|
38
|
+
readOnly,
|
|
39
|
+
value,
|
|
40
|
+
onChange
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
type === "cui-number" && /* @__PURE__ */ jsxs("div", { className: "cui-number_controls", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
"button",
|
|
46
|
+
{
|
|
47
|
+
type: "button",
|
|
48
|
+
className: "cui-increment",
|
|
49
|
+
onClick: handleIncrement,
|
|
50
|
+
children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faChevronUp })
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
"button",
|
|
55
|
+
{
|
|
56
|
+
type: "button",
|
|
57
|
+
className: "cui-decrement",
|
|
58
|
+
onClick: handleDecrement,
|
|
59
|
+
children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faChevronDown })
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }),
|
|
63
|
+
iconPrev && /* @__PURE__ */ jsx("span", { className: "cui-placeholder", children: placeholder })
|
|
64
|
+
] })
|
|
65
|
+
] });
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
Field as default
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.js","sources":["../../../../../../src/legacy/components/atoms/Field/Field.tsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport './Field.scss'\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\nimport { faChevronUp, faChevronDown } from '@fortawesome/free-solid-svg-icons'\r\n\r\ntype Props = {\r\n iconPrev?: IconProp\r\n type?: 'cui-added' | 'cui-adding' | 'cui-adding_operator_name' | 'cui-number'\r\n placeholder?: string\r\n disabled: boolean\r\n readOnly: boolean\r\n value?: string\r\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst Field = ({\r\n type,\r\n placeholder = 'Enter text...',\r\n disabled,\r\n readOnly,\r\n iconPrev,\r\n value,\r\n onChange,\r\n}: Props) => {\r\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (onChange) onChange(e)\r\n }\r\n\r\n const handleIncrement = () => {\r\n if (onChange) {\r\n onChange({\r\n target: { value: String(Number(value || 0) + 1) },\r\n } as React.ChangeEvent<HTMLInputElement>)\r\n }\r\n }\r\n\r\n const handleDecrement = () => {\r\n if (onChange) {\r\n onChange({\r\n target: { value: String(Math.max(Number(value || 0) - 1, 0)) },\r\n } as React.ChangeEvent<HTMLInputElement>)\r\n }\r\n }\r\n\r\n return (\r\n <div className={`cui-field ${type ? type : ''}`}>\r\n {iconPrev && <FontAwesomeIcon icon={iconPrev} className=\"cui-icon\" />}\r\n\r\n <div className=\"cui-inputWrapper\">\r\n <input\r\n className={`cui-input ${iconPrev ? 'cui-with-icon' : ''} ${\r\n type ? type : ''\r\n }`}\r\n type={type === 'cui-number' ? 'number' : 'text'}\r\n placeholder={iconPrev ? '' : placeholder}\r\n disabled={disabled}\r\n readOnly={readOnly}\r\n value={value}\r\n onChange={onChange}\r\n />\r\n\r\n {type === 'cui-number' && (\r\n <div className=\"cui-number_controls\">\r\n <button\r\n type=\"button\"\r\n className=\"cui-increment\"\r\n onClick={handleIncrement}\r\n >\r\n <FontAwesomeIcon icon={faChevronUp} />\r\n </button>\r\n <button\r\n type=\"button\"\r\n className=\"cui-decrement\"\r\n onClick={handleDecrement}\r\n >\r\n <FontAwesomeIcon icon={faChevronDown} />\r\n </button>\r\n </div>\r\n )}\r\n\r\n {iconPrev && <span className=\"cui-placeholder\">{placeholder}</span>}\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Field\r\n"],"names":[],"mappings":";;;;AAiBA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAa;AAKX,QAAM,kBAAkB,MAAM;AAC5B,QAAI,UAAU;AACZ,eAAS;AAAA,QACP,QAAQ,EAAE,OAAO,OAAO,OAAO,SAAS,CAAC,IAAI,CAAC,EAAA;AAAA,MAAE,CACV;AAAA,IAC1C;AAAA,EACF;AAEA,QAAM,kBAAkB,MAAM;AAC5B,QAAI,UAAU;AACZ,eAAS;AAAA,QACP,QAAQ,EAAE,OAAO,OAAO,KAAK,IAAI,OAAO,SAAS,CAAC,IAAI,GAAG,CAAC,CAAC,EAAA;AAAA,MAAE,CACvB;AAAA,IAC1C;AAAA,EACF;AAEA,8BACG,OAAA,EAAI,WAAW,aAAa,OAAO,OAAO,EAAE,IAC1C,UAAA;AAAA,IAAA,YAAY,oBAAC,iBAAA,EAAgB,MAAM,UAAU,WAAU,YAAW;AAAA,IAEnE,qBAAC,OAAA,EAAI,WAAU,oBACb,UAAA;AAAA,MAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW,aAAa,WAAW,kBAAkB,EAAE,IACrD,OAAO,OAAO,EAChB;AAAA,UACA,MAAM,SAAS,eAAe,WAAW;AAAA,UACzC,aAAa,WAAW,KAAK;AAAA,UAC7B;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QAAA;AAAA,MAAA;AAAA,MAGD,SAAS,gBACR,qBAAC,OAAA,EAAI,WAAU,uBACb,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAS;AAAA,YAET,UAAA,oBAAC,iBAAA,EAAgB,MAAM,YAAA,CAAa;AAAA,UAAA;AAAA,QAAA;AAAA,QAEtC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAS;AAAA,YAET,UAAA,oBAAC,iBAAA,EAAgB,MAAM,cAAA,CAAe;AAAA,UAAA;AAAA,QAAA;AAAA,MACxC,GACF;AAAA,MAGD,YAAY,oBAAC,QAAA,EAAK,WAAU,mBAAmB,UAAA,YAAA,CAAY;AAAA,IAAA,EAAA,CAC9D;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { WeightValue, FontWeight } from "../../../constants/FontWeight.js";
|
|
4
|
+
import './IconText.css';/* empty css */
|
|
5
|
+
const IconText = ({ icon, text, theme }) => {
|
|
6
|
+
const { color, fontWeight } = theme;
|
|
7
|
+
return /* @__PURE__ */ jsxs(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "cui-icon-text",
|
|
11
|
+
style: {
|
|
12
|
+
color,
|
|
13
|
+
fontWeight: WeightValue[fontWeight || FontWeight.MEDIUM]
|
|
14
|
+
},
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx(FontAwesomeIcon, { icon, className: "cui-icon" }),
|
|
17
|
+
/* @__PURE__ */ jsx("p", { title: text, children: text })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
IconText as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=IconText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconText.js","sources":["../../../../../../src/legacy/components/atoms/IconText/IconText.tsx"],"sourcesContent":["import React from 'react'\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\nimport { FontWeight, WeightValue } from '../../../constants/FontWeight'\r\n\r\nimport './IconText.scss'\r\nimport { IconTextTheme } from '../../../types/themes/IconTextThemes'\r\n\r\ninterface IconTextProps {\r\n icon: IconProp\r\n text: string\r\n theme: IconTextTheme\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst IconText: React.FC<IconTextProps> = ({ icon, text, theme }) => {\r\n const { color, fontWeight } = theme\r\n\r\n return (\r\n <div\r\n className={'cui-icon-text'}\r\n style={{\r\n color,\r\n fontWeight: WeightValue[fontWeight || FontWeight.MEDIUM],\r\n }}\r\n >\r\n <FontAwesomeIcon icon={icon} className=\"cui-icon\" />\r\n <p title={text}>{text}</p>\r\n </div>\r\n )\r\n}\r\n\r\nexport default IconText\r\n"],"names":[],"mappings":";;;;AAeA,MAAM,WAAoC,CAAC,EAAE,MAAM,MAAM,YAAY;AACnE,QAAM,EAAE,OAAO,WAAA,IAAe;AAE9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,OAAO;AAAA,QACL;AAAA,QACA,YAAY,YAAY,cAAc,WAAW,MAAM;AAAA,MAAA;AAAA,MAGzD,UAAA;AAAA,QAAA,oBAAC,iBAAA,EAAgB,MAAY,WAAU,WAAA,CAAW;AAAA,QAClD,oBAAC,KAAA,EAAE,OAAO,MAAO,UAAA,KAAA,CAAK;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5B;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement } from "react";
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
function Icone({ icone, tamanho, cor, className }) {
|
|
5
|
+
if (icone === null || icone === void 0) return null;
|
|
6
|
+
if (isValidElement(icone)) return /* @__PURE__ */ jsx(Fragment, { children: icone });
|
|
7
|
+
if (typeof icone === "function") {
|
|
8
|
+
const Componente = icone;
|
|
9
|
+
return /* @__PURE__ */ jsx(Componente, { size: tamanho, className, color: cor });
|
|
10
|
+
}
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
FontAwesomeIcon,
|
|
13
|
+
{
|
|
14
|
+
icon: icone,
|
|
15
|
+
color: cor,
|
|
16
|
+
className,
|
|
17
|
+
style: tamanho ? { fontSize: tamanho } : void 0
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
Icone as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Icone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icone.js","sources":["../../../../../../src/legacy/components/atoms/Icone/Icone.tsx"],"sourcesContent":["import React, { type ReactNode, isValidElement } from 'react'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\nimport type { IconProp } from '@fortawesome/fontawesome-svg-core'\r\n\r\n/**\r\n * Ícone agnóstico da biblioteca de ícones.\r\n *\r\n * A biblioteca nasceu em FontAwesome, mas todos os portais usam lucide — e o\r\n * `Sidebar` sempre aceitou componentes ao estilo lucide. Resultado: metade da\r\n * API pedia `IconProp` e obrigava um portal a instalar o FontAwesome só para\r\n * pôr um ícone num botão.\r\n *\r\n * Este componente aceita as três formas, para a API poder ser uniformizada sem\r\n * partir quem já passa `IconProp`:\r\n * - `IconProp` (FontAwesome), como antes;\r\n * - um elemento React já construído (`<Play size={14} />`);\r\n * - um componente de ícone (lucide: `Play`), que recebe `size` e `className`.\r\n * @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy.\r\n */\r\nexport type IconeQualquer =\r\n | IconProp\r\n | ReactNode\r\n | React.ComponentType<{ size?: number; className?: string }>\r\n\r\ninterface Props {\r\n icone: IconeQualquer\r\n /** Só aplicado às formas que o aceitam (componente de ícone e FontAwesome). */\r\n tamanho?: number\r\n cor?: string\r\n className?: string\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nexport default function Icone({ icone, tamanho, cor, className }: Props): React.JSX.Element | null {\r\n if (icone === null || icone === undefined) return null\r\n\r\n // Elemento já construído: devolve-se tal e qual, para não sobrepor as props\r\n // que quem o escreveu já escolheu.\r\n if (isValidElement(icone)) return <>{icone}</>\r\n\r\n if (typeof icone === 'function') {\r\n const Componente = icone as React.ComponentType<{\r\n size?: number\r\n className?: string\r\n color?: string\r\n }>\r\n return <Componente size={tamanho} className={className} color={cor} />\r\n }\r\n\r\n return (\r\n <FontAwesomeIcon\r\n icon={icone as IconProp}\r\n color={cor}\r\n className={className}\r\n style={tamanho ? { fontSize: tamanho } : undefined}\r\n />\r\n )\r\n}\r\n"],"names":[],"mappings":";;;AAiCA,SAAwB,MAAM,EAAE,OAAO,SAAS,KAAK,aAA8C;AACjG,MAAI,UAAU,QAAQ,UAAU,OAAW,QAAO;AAIlD,MAAI,eAAe,KAAK,EAAG,wCAAU,UAAA,OAAM;AAE3C,MAAI,OAAO,UAAU,YAAY;AAC/B,UAAM,aAAa;AAKnB,+BAAQ,YAAA,EAAW,MAAM,SAAS,WAAsB,OAAO,KAAK;AAAA,EACtE;AAEA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAM;AAAA,MACN,OAAO;AAAA,MACP;AAAA,MACA,OAAO,UAAU,EAAE,UAAU,YAAY;AAAA,IAAA;AAAA,EAAA;AAG/C;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Input.css';/* empty css */
|
|
3
|
+
const Input = ({
|
|
4
|
+
placeholder,
|
|
5
|
+
onChange,
|
|
6
|
+
onBlur,
|
|
7
|
+
type,
|
|
8
|
+
value,
|
|
9
|
+
disabled
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
"input",
|
|
13
|
+
{
|
|
14
|
+
type,
|
|
15
|
+
value: value ?? "",
|
|
16
|
+
className: "cui-input",
|
|
17
|
+
placeholder,
|
|
18
|
+
onChange,
|
|
19
|
+
onBlur,
|
|
20
|
+
disabled,
|
|
21
|
+
autoComplete: "off"
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
Input as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../../../src/legacy/components/atoms/Input/Input.tsx"],"sourcesContent":["import React, { ChangeEvent } from 'react'\r\n\r\nimport './Input.scss'\r\n\r\ntype Props = {\r\n placeholder?: string\r\n onChange: (e: ChangeEvent<HTMLInputElement>) => void\r\n onBlur?: (e: ChangeEvent<HTMLInputElement>) => void\r\n type?: 'number' | 'text'\r\n value?: string | number | null\r\n disabled?: boolean\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst Input = ({\r\n placeholder,\r\n onChange,\r\n onBlur,\r\n type,\r\n value,\r\n disabled,\r\n}: Props) => {\r\n return (\r\n <input\r\n type={type}\r\n value={value ?? ''}\r\n className={'cui-input'}\r\n placeholder={placeholder}\r\n onChange={onChange}\r\n onBlur={onBlur}\r\n disabled={disabled}\r\n autoComplete=\"off\"\r\n />\r\n )\r\n}\r\n\r\nexport default Input\r\n"],"names":[],"mappings":";;AAcA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAa;AACX,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,OAAO,SAAS;AAAA,MAChB,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,cAAa;AAAA,IAAA;AAAA,EAAA;AAGnB;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const classes = "cui-input-data w-full border border-slate-200 px-2 py-2 text-sm rounded-lg outline-none focus:border-proef-turquoise disabled:bg-slate-50 disabled:text-slate-400";
|
|
3
|
+
function InputData({ value, onChange, disabled, id, min, max }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"input",
|
|
6
|
+
{
|
|
7
|
+
id,
|
|
8
|
+
type: "date",
|
|
9
|
+
value,
|
|
10
|
+
min,
|
|
11
|
+
max,
|
|
12
|
+
disabled,
|
|
13
|
+
onChange: (e) => onChange(e.target.value),
|
|
14
|
+
className: classes
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function InputHora({ value, onChange, disabled, id, step }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"input",
|
|
21
|
+
{
|
|
22
|
+
id,
|
|
23
|
+
type: "time",
|
|
24
|
+
value,
|
|
25
|
+
step,
|
|
26
|
+
disabled,
|
|
27
|
+
onChange: (e) => onChange(e.target.value),
|
|
28
|
+
className: classes
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
InputData,
|
|
34
|
+
InputHora
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=InputData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputData.js","sources":["../../../../../../src/legacy/components/atoms/InputData/InputData.tsx"],"sourcesContent":["import React from 'react'\r\n\r\n/**\r\n * Campo de data e campo de hora.\r\n *\r\n * Deliberadamente em cima do `<input type=\"date|time\">` do browser: o calendário\r\n * nativo é acessível, traduzido e com teclado, e um calendário próprio seria\r\n * centenas de linhas para ficar pior. O que a biblioteca acrescenta é o aspeto\r\n * uniforme e a mesma API dos restantes campos.\r\n *\r\n * O valor é sempre `yyyy-mm-dd` (data) e `hh:mm` (hora) — os formatos que o\r\n * input devolve, independentemente do que o browser mostra ao utilizador.\r\n */\r\n\r\ninterface PropsBase {\r\n value: string\r\n onChange: (valor: string) => void\r\n disabled?: boolean\r\n /** Para associar a uma etiqueta externa. */\r\n id?: string\r\n}\r\n\r\nconst classes =\r\n 'cui-input-data w-full border border-slate-200 px-2 py-2 text-sm rounded-lg outline-none focus:border-proef-turquoise disabled:bg-slate-50 disabled:text-slate-400'\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nexport interface InputDataProps extends PropsBase {\r\n /** Limites, no mesmo formato do valor (yyyy-mm-dd). */\r\n min?: string\r\n max?: string\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nexport function InputData({ value, onChange, disabled, id, min, max }: InputDataProps) {\r\n return (\r\n <input\r\n id={id}\r\n type=\"date\"\r\n value={value}\r\n min={min}\r\n max={max}\r\n disabled={disabled}\r\n onChange={(e) => onChange(e.target.value)}\r\n className={classes}\r\n />\r\n )\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nexport interface InputHoraProps extends PropsBase {\r\n /** Passo em segundos; 60 esconde os segundos (o default do browser). */\r\n step?: number\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nexport function InputHora({ value, onChange, disabled, id, step }: InputHoraProps) {\r\n return (\r\n <input\r\n id={id}\r\n type=\"time\"\r\n value={value}\r\n step={step}\r\n disabled={disabled}\r\n onChange={(e) => onChange(e.target.value)}\r\n className={classes}\r\n />\r\n )\r\n}\r\n\r\nexport default InputData\r\n"],"names":[],"mappings":";AAsBA,MAAM,UACJ;AAUK,SAAS,UAAU,EAAE,OAAO,UAAU,UAAU,IAAI,KAAK,OAAuB;AACrF,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,MACxC,WAAW;AAAA,IAAA;AAAA,EAAA;AAGjB;AASO,SAAS,UAAU,EAAE,OAAO,UAAU,UAAU,IAAI,QAAwB;AACjF,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,MACxC,WAAW;AAAA,IAAA;AAAA,EAAA;AAGjB;"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* Intencionalmente VAZIO.
|
|
3
|
+
*
|
|
4
|
+
* As atoms antigas faziam `@import url('.../styles/index.scss')`, e este ficheiro
|
|
5
|
+
* injetava no CONSUMIDOR (via style-loader do bundle) um reset global agressivo
|
|
6
|
+
* (`* { margin:0; padding:0 }`), `@font-face` Urbanist (.ttf → 404 sob subpaths),
|
|
7
|
+
* `canvas { height:auto }` (partia o sizing dos charts) e `body { font-family;
|
|
8
|
+
* background }`. Uma LIB não pode impor nada disto — nukeava o spacing/fonte/fundo
|
|
9
|
+
* de qualquer app que importasse o common-ui (visível sobretudo em apps com
|
|
10
|
+
* utilities layered, que perdem ao `*` injetado).
|
|
11
|
+
*
|
|
12
|
+
* Cada app define o seu próprio reset/fonte/fundo. Mantido como no-op p/ os
|
|
13
|
+
* imports existentes não partirem. */
|
|
14
|
+
/*responsiveness___*/
|
|
15
|
+
@media (max-width: 768px) {
|
|
16
|
+
.cui-label {
|
|
17
|
+
font-size: 72%;
|
|
18
|
+
white-space: normal;
|
|
19
|
+
}
|
|
20
|
+
.cui-label span,
|
|
21
|
+
.cui-label p,
|
|
22
|
+
.cui-label div {
|
|
23
|
+
font-size: 72%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 769px) and (max-width: 1529px) {
|
|
27
|
+
.cui-label {
|
|
28
|
+
font-size: 80%;
|
|
29
|
+
white-space: normal;
|
|
30
|
+
}
|
|
31
|
+
.cui-label span,
|
|
32
|
+
.cui-label p,
|
|
33
|
+
.cui-label div {
|
|
34
|
+
font-size: 80%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@media (min-width: 1530px) {
|
|
38
|
+
.cui-label {
|
|
39
|
+
max-width: initial;
|
|
40
|
+
max-height: initial;
|
|
41
|
+
font-size: initial;
|
|
42
|
+
width: initial;
|
|
43
|
+
height: initial;
|
|
44
|
+
line-height: initial;
|
|
45
|
+
white-space: initial;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.cui-label {
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.cui-label.cui-main_options {
|
|
53
|
+
margin-left: 0.1rem;
|
|
54
|
+
font-size: 1rem;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
line-height: 0.9rem;
|
|
57
|
+
color: var(--dark-blue);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cui-label.cui-mode {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
margin-left: 0.1rem;
|
|
63
|
+
font-size: 1rem;
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
line-height: 0.9rem;
|
|
66
|
+
color: var(--dark-blue);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cui-label.cui-breadcrumb {
|
|
70
|
+
margin-left: 0.1rem;
|
|
71
|
+
font-size: 0.9rem;
|
|
72
|
+
font-weight: 300;
|
|
73
|
+
line-height: 0.9rem;
|
|
74
|
+
color: var(--dark-blue);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cui-label.cui-breadcrumb .breadcrumb-link {
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
color: var(--dark-blue);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cui-label.cui-breadcrumb .breadcrumb-link:hover {
|
|
83
|
+
text-decoration: underline;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cui-label.cui-breadcrumb .breadcrumb-last {
|
|
87
|
+
font-weight: 300;
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cui-label.cui-mode .cui-icon {
|
|
92
|
+
font-size: 1rem;
|
|
93
|
+
margin-right: 0.5rem;
|
|
94
|
+
color: var(--dark-blue);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cui-label.cui-added {
|
|
98
|
+
margin-left: 0.1rem;
|
|
99
|
+
font-size: 1rem;
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
line-height: 0.9rem;
|
|
102
|
+
color: var(--dark-blue);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cui-label.cui-adding {
|
|
106
|
+
margin-left: 0.1rem;
|
|
107
|
+
font-size: 0.9rem;
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
line-height: 0.9rem;
|
|
110
|
+
color: var(--medium-gray-01);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cui-label.cui-form_title {
|
|
114
|
+
margin-left: 0.1rem;
|
|
115
|
+
font-size: 0.9rem;
|
|
116
|
+
font-weight: 700;
|
|
117
|
+
line-height: 0.9rem;
|
|
118
|
+
color: var(--dark-blue);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.cui-label.cui-title {
|
|
122
|
+
margin-left: 0.1rem;
|
|
123
|
+
font-size: 1.2rem;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
line-height: 0.9rem;
|
|
126
|
+
color: var(--dark-blue);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cui-label.cui-choose_operator_title {
|
|
130
|
+
font-size: 0.9rem;
|
|
131
|
+
font-weight: 300;
|
|
132
|
+
line-height: 0.9rem;
|
|
133
|
+
color: var(--dark-blue);
|
|
134
|
+
position: relative; /* Allows absolute positioning for the line */
|
|
135
|
+
padding-bottom: 0.5rem; /* Adds spacing between text and line */
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cui-label.cui-choose_operator_title::after {
|
|
139
|
+
content: "";
|
|
140
|
+
position: absolute;
|
|
141
|
+
left: 0;
|
|
142
|
+
bottom: 0;
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 0.04rem; /* Thin line */
|
|
145
|
+
background-color: var(--dark-blue); /* Same as text color */
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cui-label.cui-choose_operator_title .cui-icon {
|
|
149
|
+
font-size: 0.9rem;
|
|
150
|
+
margin-right: 0.3rem;
|
|
151
|
+
color: var(--dark-blue); /* Ensures icon follows theme color */
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.cui-label.cui-add_operator_title {
|
|
155
|
+
font-size: 0.9rem;
|
|
156
|
+
font-weight: 300;
|
|
157
|
+
line-height: 0.9rem;
|
|
158
|
+
color: var(--medium-gray-01);
|
|
159
|
+
position: relative; /* Allows absolute positioning for the line */
|
|
160
|
+
padding-bottom: 0.5rem; /* Adds spacing between text and line */
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.cui-label.cui-add_operator_title::after {
|
|
164
|
+
content: "";
|
|
165
|
+
position: absolute;
|
|
166
|
+
left: 0;
|
|
167
|
+
bottom: 0;
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 0.04rem; /* Thin line */
|
|
170
|
+
background-color: var(--medium-gray-01); /* Same as text color */
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cui-label.cui-add_operator_title .cui-icon {
|
|
174
|
+
font-size: 0.9rem;
|
|
175
|
+
margin-right: 0.3rem;
|
|
176
|
+
color: var(--medium-gray-01); /* Ensures icon follows theme color */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.cui-label.cui-add_operator_name {
|
|
180
|
+
padding: 0.5rem;
|
|
181
|
+
font-size: 0.75rem;
|
|
182
|
+
font-weight: 700;
|
|
183
|
+
line-height: 0.8rem;
|
|
184
|
+
color: var(--dark-blue);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.cui-content {
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Label.css';/* empty css */
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
const Label = ({ title, type, iconPrev }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", { className: `cui-label ${type ? type : ""}`, children: [
|
|
6
|
+
(type === "cui-choose_operator_title" || type === "cui-add_operator_title" || type === "cui-mode") && iconPrev && /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: iconPrev, className: "cui-icon" }),
|
|
7
|
+
title
|
|
8
|
+
] });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
Label as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../../../../src/legacy/components/atoms/Label/Label.tsx"],"sourcesContent":["import React, { CSSProperties } from 'react'\r\nimport './Label.scss'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\r\n\r\ntype Props = {\r\n title: string\r\n type:\r\n | 'cui-main_options'\r\n | 'cui-added'\r\n | 'cui-adding'\r\n | 'cui-form_title'\r\n | 'cui-choose_operator_title'\r\n | 'cui-add_operator_title'\r\n | 'cui-choose_operator_name'\r\n | 'cui-add_operator_name'\r\n | 'cui-title'\r\n | 'cui-mode'\r\n | 'cui-breadcrumb'\r\n iconPrev?: IconProp\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst Label = ({ title, type, iconPrev }: Props) => {\r\n return (\r\n <div className={`cui-label ${type ? type : ''}`}>\r\n {/* Show the icon only if type is: */}\r\n {(type === 'cui-choose_operator_title' ||\r\n type === 'cui-add_operator_title' ||\r\n type === 'cui-mode') &&\r\n iconPrev && <FontAwesomeIcon icon={iconPrev} className=\"cui-icon\" />}\r\n {title}\r\n </div>\r\n )\r\n}\r\n\r\nexport default Label\r\n"],"names":[],"mappings":";;;AAuBA,MAAM,QAAQ,CAAC,EAAE,OAAO,MAAM,eAAsB;AAClD,8BACG,OAAA,EAAI,WAAW,aAAa,OAAO,OAAO,EAAE,IAEzC,UAAA;AAAA,KAAA,SAAS,+BACT,SAAS,4BACT,SAAS,eACT,YAAY,oBAAC,iBAAA,EAAgB,MAAM,UAAU,WAAU,WAAA,CAAW;AAAA,IACnE;AAAA,EAAA,GACH;AAEJ;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.cui-multitag-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 45px;
|
|
6
|
+
background-color: var(--light-gray-01);
|
|
7
|
+
border-radius: 100px;
|
|
8
|
+
gap: 10px;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
|
|
11
|
+
}
|
|
12
|
+
.cui-multitag-container.selected {
|
|
13
|
+
background-color: var(--dark-blue);
|
|
14
|
+
}
|
|
15
|
+
.cui-multitag-container .cui-icon {
|
|
16
|
+
margin-right: 20px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cui-multitag-name-container {
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
padding-left: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cui-multitag-name {
|
|
27
|
+
color: var(--dark-blue);
|
|
28
|
+
font-family: var(--primary-font);
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
width: 100%;
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
text-wrap: nowrap;
|
|
33
|
+
text-align: start;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
.cui-multitag-name.selected {
|
|
39
|
+
color: var(--almost-white);
|
|
40
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import './MultiTagPickerTag.css';/* empty css */
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faMinus, faPlus } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
const Select = (props) => {
|
|
6
|
+
const { id, label, selected, handleTagChange } = props;
|
|
7
|
+
if (selected)
|
|
8
|
+
return /* @__PURE__ */ jsxs("div", { title: label, className: "cui-multitag-container selected", children: [
|
|
9
|
+
/* @__PURE__ */ jsx("div", { className: "cui-multitag-name-container", children: /* @__PURE__ */ jsx("p", { className: "cui-multitag-name selected", children: label }) }),
|
|
10
|
+
/* @__PURE__ */ jsx(FontAwesomeIcon, { size: "xl", icon: faMinus, className: "cui-icon", color: "#F8F8F8", onClick: () => handleTagChange(false) })
|
|
11
|
+
] });
|
|
12
|
+
else
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { title: label, className: "cui-multitag-container", children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", { className: "cui-multitag-name-container", children: /* @__PURE__ */ jsx("p", { className: "cui-multitag-name", children: label }) }),
|
|
15
|
+
/* @__PURE__ */ jsx(FontAwesomeIcon, { size: "xl", icon: faPlus, className: "cui-icon", color: "#010060", onClick: () => handleTagChange(true) })
|
|
16
|
+
] });
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
Select as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=MultiTagPickerTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiTagPickerTag.js","sources":["../../../../../../src/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.tsx"],"sourcesContent":["import React from 'react'\r\nimport './MultiTagPickerTag.scss'\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\r\nimport { faMinus, faPlus } from '@fortawesome/free-solid-svg-icons'\r\n\r\ninterface TagProps {\r\n id: string,\r\n label: string,\r\n selected: boolean,\r\n handleTagChange: (changedTo: boolean) => void\r\n}\r\n\r\nconst Select: React.FC<TagProps> = (props: TagProps) => {\r\n\r\n const { id, label, selected, handleTagChange } = props\r\n\r\n if (selected)\r\n return (\r\n <div title={label} className='cui-multitag-container selected'>\r\n <div className='cui-multitag-name-container'>\r\n <p className='cui-multitag-name selected'>{label}</p>\r\n </div>\r\n <FontAwesomeIcon size='xl' icon={faMinus} className=\"cui-icon\" color='#F8F8F8' onClick={() => handleTagChange(false)}/>\r\n </div>\r\n )\r\n else\r\n return (\r\n <div title={label} className=\"cui-multitag-container\">\r\n <div className='cui-multitag-name-container'>\r\n <p className='cui-multitag-name'>{label}</p>\r\n </div>\r\n <FontAwesomeIcon size='xl' icon={faPlus} className=\"cui-icon\" color='#010060' onClick={() => handleTagChange(true)}/>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Select\r\n"],"names":[],"mappings":";;;;AAYA,MAAM,SAA6B,CAAC,UAAoB;AAEpD,QAAM,EAAE,IAAI,OAAO,UAAU,oBAAoB;AAEjD,MAAI;AACA,WACI,qBAAC,OAAA,EAAI,OAAO,OAAO,WAAU,mCACzB,UAAA;AAAA,MAAA,oBAAC,OAAA,EAAI,WAAU,+BACX,UAAA,oBAAC,OAAE,WAAU,8BAA8B,iBAAM,EAAA,CACrD;AAAA,MACA,oBAAC,iBAAA,EAAgB,MAAK,MAAK,MAAM,SAAS,WAAU,YAAW,OAAM,WAAU,SAAS,MAAM,gBAAgB,KAAK,EAAA,CAAE;AAAA,IAAA,GACzH;AAAA;AAGJ,WACI,qBAAC,OAAA,EAAI,OAAO,OAAO,WAAU,0BACzB,UAAA;AAAA,MAAA,oBAAC,OAAA,EAAI,WAAU,+BACX,UAAA,oBAAC,OAAE,WAAU,qBAAqB,iBAAM,EAAA,CAC5C;AAAA,MACA,oBAAC,iBAAA,EAAgB,MAAK,MAAK,MAAM,QAAQ,WAAU,YAAW,OAAM,WAAU,SAAS,MAAM,gBAAgB,IAAI,EAAA,CAAE;AAAA,IAAA,GACvH;AAEZ;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.cui-select {
|
|
2
|
+
padding: clamp(6px, 1vw, 8px);
|
|
3
|
+
border: 1px solid var(--light-gray-02);
|
|
4
|
+
border-radius: clamp(8px, 2vw, 12px);
|
|
5
|
+
font-size: clamp(14px, 1.5vw, 16px);
|
|
6
|
+
background-color: var(--almost-white);
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
width: 100%; /* Takes full width of container */
|
|
9
|
+
max-width: clamp(150px, 20vw, 300px); /* Optional max-width constraint */
|
|
10
|
+
box-sizing: border-box; /* Ensures padding/border don't add to width */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cui-select:disabled {
|
|
14
|
+
background-color: var(--almost-gray);
|
|
15
|
+
cursor: not-allowed;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Select.css';/* empty css */
|
|
3
|
+
const Select = ({
|
|
4
|
+
placeholder,
|
|
5
|
+
options,
|
|
6
|
+
value,
|
|
7
|
+
onChange,
|
|
8
|
+
disabled = false
|
|
9
|
+
}) => {
|
|
10
|
+
return /* @__PURE__ */ jsxs(
|
|
11
|
+
"select",
|
|
12
|
+
{
|
|
13
|
+
value,
|
|
14
|
+
onChange: (e) => onChange(e.target.value),
|
|
15
|
+
disabled,
|
|
16
|
+
className: "cui-select",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx("option", { value: "", disabled: true, children: placeholder }),
|
|
19
|
+
options.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
Select as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../../../../src/legacy/components/atoms/Select/Select.tsx"],"sourcesContent":["import React from 'react'\r\nimport './Select.scss'\r\n\r\ninterface SelectOption {\r\n value: string\r\n label: string\r\n}\r\n\r\ninterface SelectProps {\r\n placeholder: string\r\n options: SelectOption[]\r\n value: string\r\n onChange: (value: string) => void\r\n disabled?: boolean\r\n}\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst Select: React.FC<SelectProps> = ({\r\n placeholder,\r\n options,\r\n value,\r\n onChange,\r\n disabled = false,\r\n}) => {\r\n return (\r\n <select\r\n value={value}\r\n onChange={(e) => onChange(e.target.value)}\r\n disabled={disabled}\r\n className=\"cui-select\"\r\n >\r\n <option value=\"\" disabled>\r\n {placeholder}\r\n </option>\r\n {options.map((option) => (\r\n <option key={option.value} value={option.value}>\r\n {option.label}\r\n </option>\r\n ))}\r\n </select>\r\n )\r\n}\r\n\r\nexport default Select\r\n"],"names":[],"mappings":";;AAiBA,MAAM,SAAgC,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,MAAM;AACJ,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,UAAU,CAAC,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,MACxC;AAAA,MACA,WAAU;AAAA,MAEV,UAAA;AAAA,QAAA,oBAAC,UAAA,EAAO,OAAM,IAAG,UAAQ,MACtB,UAAA,aACH;AAAA,QACC,QAAQ,IAAI,CAAC,WACZ,oBAAC,UAAA,EAA0B,OAAO,OAAO,OACtC,UAAA,OAAO,MAAA,GADG,OAAO,KAEpB,CACD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const Stack = ({
|
|
3
|
+
children,
|
|
4
|
+
spacing = 2,
|
|
5
|
+
direction = "row",
|
|
6
|
+
wrap = false
|
|
7
|
+
}) => {
|
|
8
|
+
const style = {
|
|
9
|
+
display: "flex",
|
|
10
|
+
gap: `${spacing * 0.25}rem`,
|
|
11
|
+
flexDirection: direction,
|
|
12
|
+
flexWrap: wrap ? "wrap" : "nowrap",
|
|
13
|
+
justifyContent: "center"
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { style, children });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
Stack as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.js","sources":["../../../../../../src/legacy/components/atoms/Stack/Stack.tsx"],"sourcesContent":["import React, { CSSProperties, PropsWithChildren } from 'react'\r\n\r\ntype Props = PropsWithChildren<{\r\n spacing?: number\r\n direction: 'row' | 'column'\r\n wrap: boolean\r\n}>\r\n\r\n/** @deprecated Legacy — não usar em código novo. Ver Storybook › Legacy. */\r\nconst Stack = ({\r\n children,\r\n spacing = 2,\r\n direction = 'row',\r\n wrap = false,\r\n}: Props) => {\r\n const style: CSSProperties = {\r\n display: 'flex',\r\n gap: `${spacing * 0.25}rem`,\r\n flexDirection: direction,\r\n flexWrap: wrap ? 'wrap' : 'nowrap',\r\n justifyContent: 'center',\r\n }\r\n\r\n return <div style={style}>{children}</div>\r\n}\r\n\r\nexport default Stack\r\n"],"names":[],"mappings":";AASA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AACT,MAAa;AACX,QAAM,QAAuB;AAAA,IAC3B,SAAS;AAAA,IACT,KAAK,GAAG,UAAU,IAAI;AAAA,IACtB,eAAe;AAAA,IACf,UAAU,OAAO,SAAS;AAAA,IAC1B,gBAAgB;AAAA,EAAA;AAGlB,SAAO,oBAAC,OAAA,EAAI,OAAe,SAAA,CAAS;AACtC;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.cui-container {
|
|
2
|
+
color: var(--dark-blue);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
.cui-container .cui-label {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cui-switch {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cui-switch-size-default {
|
|
15
|
+
font-size: 0.95rem;
|
|
16
|
+
gap: 0.4rem;
|
|
17
|
+
}
|
|
18
|
+
.cui-switch-size-default .cui-switch {
|
|
19
|
+
transform: scale(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cui-switch-size-compact {
|
|
23
|
+
font-size: 0.85rem;
|
|
24
|
+
gap: 0.2rem;
|
|
25
|
+
}
|
|
26
|
+
.cui-switch-size-compact .cui-switch {
|
|
27
|
+
transform: scale(0.85);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cui-switch-size-large {
|
|
31
|
+
font-size: 1.1rem;
|
|
32
|
+
gap: 0.7rem;
|
|
33
|
+
}
|
|
34
|
+
.cui-switch-size-large .cui-switch {
|
|
35
|
+
transform: scale(1.15);
|
|
36
|
+
}
|