@proef/common-ui 2.6.28 → 2.6.30
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/legacy/components/atoms/Acronym/Acronym.js.map +1 -1
- package/dist/esm/legacy/components/atoms/BreadCrumb/BreadCrumb.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Button/variants/ActionButton.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Button/variants/FilterButton.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Button/variants/IconButton.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Button/variants/MainButton.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Button/variants/TabButton.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Field/Field.js.map +1 -1
- package/dist/esm/legacy/components/atoms/IconText/IconText.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Icone/Icone.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Input/Input.js.map +1 -1
- package/dist/esm/legacy/components/atoms/InputData/InputData.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Label/Label.js.map +1 -1
- package/dist/esm/legacy/components/atoms/MultiTagPickerTag/MultiTagPickerTag.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Select/Select.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Stack/Stack.js.map +1 -1
- package/dist/esm/legacy/components/atoms/Switch/CustomSwitch.js.map +1 -1
- package/dist/esm/legacy/components/charts/Charts.js.map +1 -1
- package/dist/esm/legacy/components/layout/AppLauncher/AppLauncher.js.map +1 -1
- package/dist/esm/legacy/components/layout/Error/Error.js.map +1 -1
- package/dist/esm/legacy/components/layout/Footer/Footer.js.map +1 -1
- package/dist/esm/legacy/components/layout/Header/Header.js.map +1 -1
- package/dist/esm/legacy/components/layout/Layout/Layout.js.map +1 -1
- package/dist/esm/legacy/components/layout/Sidebar/Sidebar.js.map +1 -1
- package/dist/esm/legacy/components/layout/TopBar/TopBar.js.map +1 -1
- package/dist/esm/legacy/components/layout/TopNavLayout/TopNavLayout.js.map +1 -1
- package/dist/esm/legacy/components/molecules/BarraValor/BarraValor.js.map +1 -1
- package/dist/esm/legacy/components/molecules/ColumnPicker/ColumnPicker.js.map +1 -1
- package/dist/esm/legacy/components/molecules/ConfirmModal/ConfirmModal.js.map +1 -1
- package/dist/esm/legacy/components/molecules/DataTable/DataTable.js.map +1 -1
- package/dist/esm/legacy/components/molecules/FileDropzone/FileDropzone.js.map +1 -1
- package/dist/esm/legacy/components/molecules/LanguageSwitcher/LanguageSwitcher.js.map +1 -1
- package/dist/esm/legacy/components/molecules/Modal/Modal.js.map +1 -1
- package/dist/esm/legacy/components/molecules/MultiTagPicker/MultiTagPicker.js.map +1 -1
- package/dist/esm/legacy/components/molecules/PhotoAvatar/PhotoAvatar.js.map +1 -1
- package/dist/esm/legacy/components/molecules/PhotoAvatar/identidade.js.map +1 -1
- package/dist/esm/legacy/components/molecules/PhotoAvatar/pessoas.js.map +1 -1
- package/dist/esm/legacy/components/molecules/SeletorPesquisa/SeletorPesquisa.js.map +1 -1
- package/dist/esm/legacy/components/molecules/Sidebar/Sidebar.js.map +1 -1
- package/dist/esm/legacy/components/molecules/UserAvatar/UserAvatar.js.map +1 -1
- package/dist/esm/legacy/components/organisms/GanttChart/GanttChart.js.map +1 -1
- package/dist/esm/legacy/components/organisms/Kanban/Kanban.js.map +1 -1
- package/dist/esm/legacy/components/organisms/LazyLoader/LazyLoader.js.map +1 -1
- package/dist/esm/legacy/components/organisms/MapaPontos/MapaPontos.js.map +1 -1
- package/dist/esm/legacy/components/organisms/PainelFiltros/PainelFiltros.js.map +1 -1
- package/dist/esm/legacy/components/organisms/PesquisaRapida/PesquisaRapida.js.map +1 -1
- package/dist/esm/legacy/components/organisms/Profile/Profile.js.map +1 -1
- package/dist/esm/legacy/components/organisms/RoleGuard/RoleGuard.js.map +1 -1
- package/dist/esm/legacy/components/organisms/Selector/Selector.js.map +1 -1
- package/dist/esm/legacy/components/organisms/StatusMatrix/StatusMatrix.js.map +1 -1
- package/dist/esm/legacy/components/ui/Avisos.js.map +1 -1
- package/dist/esm/legacy/components/ui/BarraAcoes.js.map +1 -1
- package/dist/esm/legacy/components/ui/CabecalhoPagina.js.map +1 -1
- package/dist/esm/legacy/components/ui/CaixaPesquisa.js.map +1 -1
- package/dist/esm/legacy/components/ui/Confirmacao.js.map +1 -1
- package/dist/esm/legacy/components/ui/Escolha.js.map +1 -1
- package/dist/esm/legacy/components/ui/FaixaAviso.js.map +1 -1
- package/dist/esm/legacy/components/ui/MenuAcoes.js.map +1 -1
- package/dist/esm/legacy/components/ui/Passos.js.map +1 -1
- package/dist/esm/legacy/components/ui/Separadores.js.map +1 -1
- package/dist/esm/legacy/components/ui/TextoAuto.js.map +1 -1
- package/dist/esm/legacy/components/ui/Ui.js.map +1 -1
- package/dist/esm/legacy/components/ui/painelFlutuante.js.map +1 -1
- package/dist/esm/legacy/constants/Colors.js.map +1 -1
- package/dist/esm/legacy/constants/FontWeight.js.map +1 -1
- package/dist/esm/legacy/contexts/apiContext.js.map +1 -1
- package/dist/esm/legacy/contexts/authContext.js.map +1 -1
- package/dist/esm/legacy/contexts/socketContext.js.map +1 -1
- package/dist/esm/legacy/hooks/useApi.js.map +1 -1
- package/dist/esm/legacy/pages/Error/ErrorPage.js.map +1 -1
- package/dist/esm/legacy/pages/Loading/Loading.js.map +1 -1
- package/dist/esm/legacy/pages/Login/LoginScreen.js.map +1 -1
- package/dist/esm/legacy/pages/NotFound/NotFound.js.map +1 -1
- package/dist/esm/legacy/styles/themes/ButtonThemes.js.map +1 -1
- package/dist/esm/legacy/styles/utils/utils.js.map +1 -1
- package/dist/esm/legacy/utils/stringUtils.js.map +1 -1
- package/dist/esm/v1/capabilities/calendar/useDateSelection.js.map +1 -1
- package/dist/esm/v1/capabilities/documents/QRScanning/scanQRCodes.js.map +1 -1
- package/dist/esm/v1/capabilities/graph-photos/cacheDeFotos.js.map +1 -1
- package/dist/esm/v1/capabilities/graph-photos/loteDeFotos.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/bridge.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/dentroDaApp.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/onepoint.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/useBarraEstadoNaApp.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/useMenuLateralNaApp.js.map +1 -1
- package/dist/esm/v1/capabilities/onepoint-rn/useOrientacaoNaApp.js.map +1 -1
- package/dist/esm/v1/capabilities/overlay/useFloatingPanel.js.map +1 -1
- package/dist/esm/v1/capabilities/theme/useIsDark.js.map +1 -1
- package/dist/esm/v1/capabilities/theme/useTheme.js.map +1 -1
- package/dist/esm/v1/components/data/Charts/Charts.js.map +1 -1
- package/dist/esm/v1/components/data/DayTimeline/DayTimeline.js.map +1 -1
- package/dist/esm/v1/components/data/MonthCalendar/MonthCalendar.js.map +1 -1
- package/dist/esm/v1/components/data/Pagination/Pagination.js.map +1 -1
- package/dist/esm/v1/components/documents/DocumentDropzone/DocumentDropzone.js.map +1 -1
- package/dist/esm/v1/components/feedback/Toast/Toast.js.map +1 -1
- package/dist/esm/v1/components/forms/FormField/FormField.js.map +1 -1
- package/dist/esm/v1/components/forms/FormGrid/FormGrid.js.map +1 -1
- package/dist/esm/v1/components/layout/AppShell/AppShell.js.map +1 -1
- package/dist/esm/v1/components/layout/Page/Page.js.map +1 -1
- package/dist/esm/v1/components/layout/PageHeader/PageHeader.js.map +1 -1
- package/dist/esm/v1/components/layout/SideNav/SideNav.js +5 -5
- package/dist/esm/v1/components/layout/SideNav/SideNav.js.map +1 -1
- package/dist/esm/v1/components/layout/navTrail.js.map +1 -1
- package/dist/esm/v1/components/lists/ListFinder/ListFinder.js.map +1 -1
- package/dist/esm/v1/components/lists/ListFinder/labels.js.map +1 -1
- package/dist/esm/v1/components/overlays/ConfirmDialog/ConfirmDialog.js.map +1 -1
- package/dist/esm/v1/components/overlays/ContextMenu/ContextMenu.js.map +1 -1
- package/dist/esm/v1/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/esm/v1/components/overlays/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/esm/v1/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/v1/components/overlays/Tooltip/TooltipLayer.js.map +1 -1
- package/dist/esm/v1/components/overlays/Tooltip/TooltipPanel.js.map +1 -1
- package/dist/esm/v1/components/overlays/topLayer.js.map +1 -1
- package/dist/esm/v1/components/tables/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/esm/v1/components/tables/Table/ColumnFilter.js.map +1 -1
- package/dist/esm/v1/components/tables/Table/OverlayScrollbar.js.map +1 -1
- package/dist/esm/v1/components/tables/Table/Table.js +277 -67
- package/dist/esm/v1/components/tables/Table/Table.js.map +1 -1
- package/dist/esm/v1/components/tables/Table/labels.js.map +1 -1
- package/dist/esm/v1/foundations/icons/icons.js.map +1 -1
- package/dist/esm/v1/primitives/buttons/Button/Button.js.map +1 -1
- package/dist/esm/v1/primitives/buttons/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/esm/v1/primitives/buttons/SegmentedControl/segmentedStyles.js.map +1 -1
- package/dist/esm/v1/primitives/display/Avatar/Avatar.js.map +1 -1
- package/dist/esm/v1/primitives/display/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/esm/v1/primitives/display/Badge/Badge.js.map +1 -1
- package/dist/esm/v1/primitives/display/Card/Card.js.map +1 -1
- package/dist/esm/v1/primitives/display/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/esm/v1/primitives/display/FilterChips/FilterChips.js.map +1 -1
- package/dist/esm/v1/primitives/display/Kpi/Kpi.js.map +1 -1
- package/dist/esm/v1/primitives/display/Notice/Notice.js.map +1 -1
- package/dist/esm/v1/primitives/display/PeopleFilter/PeopleFilter.js.map +1 -1
- package/dist/esm/v1/primitives/display/Person/Person.js.map +1 -1
- package/dist/esm/v1/primitives/display/RichText/RichText.js.map +1 -1
- package/dist/esm/v1/primitives/display/RichText/utils.js.map +1 -1
- package/dist/esm/v1/primitives/documents/PdfPreview/PdfPreview.js.map +1 -1
- package/dist/esm/v1/primitives/documents/PdfPreview/pdfjs.js.map +1 -1
- package/dist/esm/v1/primitives/feedback/Spinner/Spinner.js.map +1 -1
- package/dist/esm/v1/primitives/forms/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/v1/primitives/forms/DateInput/DateInput.js.map +1 -1
- package/dist/esm/v1/primitives/forms/LookupInput/LookupInput.js.map +1 -1
- package/dist/esm/v1/primitives/forms/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/esm/v1/primitives/forms/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/v1/primitives/forms/SelectInput/SelectInput.js.map +1 -1
- package/dist/esm/v1/primitives/forms/Switch/Switch.js.map +1 -1
- package/dist/esm/v1/primitives/forms/TextArea/TextArea.js.map +1 -1
- package/dist/esm/v1/primitives/forms/TextInput/TextInput.js.map +1 -1
- package/dist/esm/v1/primitives/forms/field.js.map +1 -1
- package/dist/esm/v1/primitives/lists/ListItem/ListItem.js.map +1 -1
- package/dist/esm/v1/primitives/navigation/Steps/Steps.js.map +1 -1
- package/dist/esm/v1/primitives/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/style.components.css +2 -2
- package/dist/style.css +2 -2
- package/dist/style.layered.css +2 -2
- package/dist/tailwind.css +24 -24
- package/dist/theme.css +313 -313
- package/dist/tokens.css +131 -131
- package/dist/types/v1/components/tables/PaginatedTable/PaginatedTable.d.ts +4 -0
- package/dist/types/v1/components/tables/Table/Table.d.ts +50 -3
- package/dist/types/v1/index.d.ts +1 -1
- package/package.json +125 -125
package/dist/tokens.css
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
/* Tokens do V1: tamanhos, tipos de letra, sombras e cores partilhados pelos
|
|
2
|
-
* componentes. Mudar um valor aqui muda-o em todos os componentes que o usam.
|
|
3
|
-
*
|
|
4
|
-
* Cada token gera as classes do Tailwind com o seu nome (ex: --spacing-control
|
|
5
|
-
* → h-control, w-control; --text-control → text-control; --shadow-card →
|
|
6
|
-
* shadow-card). Uma app pode sobrepor qualquer um no seu próprio CSS
|
|
7
|
-
* (ex: `:root { --spacing-control: 38px }`).
|
|
8
|
-
*
|
|
9
|
-
* `static`: os tokens vão sempre para o CSS, mesmo os que só são usados
|
|
10
|
-
* dentro de outros valores (ex: a largura das etiquetas no FormGrid).
|
|
11
|
-
* Importado por tailwind.css e tailwind.layered.css. */
|
|
12
|
-
@theme static {
|
|
13
|
-
/* Cores */
|
|
14
|
-
--color-primary-strong: #00124a; /* navy mais escuro, para gradientes */
|
|
15
|
-
--color-scrollbar: #c1c1c1;
|
|
16
|
-
--color-scrollbar-hover: #a8a8a8;
|
|
17
|
-
/* Iniciais do Avatar (sem fotografia): o mesmo azul em todos os portais, salvo se o
|
|
18
|
-
portal os sobrepuser (ex: o Tickets usa cinzento). */
|
|
19
|
-
--color-avatar-from: oklch(74.6% 0.16 232.661); /* sky-400 */
|
|
20
|
-
--color-avatar-to: oklch(58.8% 0.158 241.966); /* sky-600 */
|
|
21
|
-
--color-avatar-fg: #ffffff;
|
|
22
|
-
|
|
23
|
-
/* Tipos de letra */
|
|
24
|
-
--text-page-title: 24px; /* título da página (PageHeader) — o mesmo em todos os portais e ecrãs */
|
|
25
|
-
--text-page-title--line-height: 2rem;
|
|
26
|
-
--text-title: 15px; /* títulos de caixas e janelas */
|
|
27
|
-
--text-control: 13px; /* texto dos campos e botões */
|
|
28
|
-
--text-caption: 11px; /* contadores, avisos, tamanhos de ficheiro */
|
|
29
|
-
--text-micro: 10px; /* dicas por baixo das etiquetas */
|
|
30
|
-
|
|
31
|
-
/* Tamanhos */
|
|
32
|
-
--spacing-control: 32px; /* altura de todos os controlos: botões, campos, pesquisa, seletores (iguais lado a lado) */
|
|
33
|
-
--spacing-form-label: 172px; /* coluna das etiquetas no FormGrid */
|
|
34
|
-
--spacing-form-label-narrow: 112px; /* a mesma coluna, em sítios estreitos */
|
|
35
|
-
--spacing-page-x: 48px; /* margem lateral da página (AppShell), a partir de 640px */
|
|
36
|
-
--spacing-page-x-narrow: 16px; /* a mesma margem em ecrãs estreitos */
|
|
37
|
-
--spacing-page-top: 32px; /* espaço por cima da página (AppShell), a partir de 1024px */
|
|
38
|
-
--spacing-page-top-narrow: 80px; /* o mesmo espaço abaixo de 1024px, com lugar para o botão do menu */
|
|
39
|
-
|
|
40
|
-
/* Larguras a partir das quais o FormGrid muda (container queries: @max-form-md, @max-form-sm) */
|
|
41
|
-
--container-form-md: 680px; /* etiquetas mais estreitas */
|
|
42
|
-
--container-form-sm: 500px; /* etiquetas por cima dos campos */
|
|
43
|
-
|
|
44
|
-
/* Larguras máximas das janelas (Dialog): max-w-dialog-sm, -md, -lg, -xl */
|
|
45
|
-
--container-dialog-sm: 480px;
|
|
46
|
-
--container-dialog-md: 720px;
|
|
47
|
-
--container-dialog-lg: 1000px;
|
|
48
|
-
/* Acompanha o ecrã: mapa e tabela lado a lado precisam de largura, mas o texto não deve atravessar o monitor todo */
|
|
49
|
-
--container-dialog-xl: min(1600px, 95vw);
|
|
50
|
-
/* Espaço mínimo entre a janela e as bordas do ecrã */
|
|
51
|
-
--spacing-dialog-margin: 24px;
|
|
52
|
-
|
|
53
|
-
/* Animações de entrada das janelas */
|
|
54
|
-
--animate-dialog-in: dialog-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
|
|
55
|
-
--animate-backdrop-in: backdrop-in 0.2s ease-out both;
|
|
56
|
-
/* Painel lateral (Dialog com placement="right"): entra pela direita */
|
|
57
|
-
--animate-panel-in: panel-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) both;
|
|
58
|
-
|
|
59
|
-
@keyframes dialog-in {
|
|
60
|
-
from { opacity: 0; transform: translateY(10px) scale(0.97); }
|
|
61
|
-
}
|
|
62
|
-
@keyframes panel-in {
|
|
63
|
-
from { opacity: 0.6; transform: translateX(32px); }
|
|
64
|
-
}
|
|
65
|
-
@keyframes backdrop-in {
|
|
66
|
-
from { opacity: 0; }
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Sombras (na cor primária, para seguirem a paleta) */
|
|
70
|
-
--shadow-card: 0 10px 30px color-mix(in srgb, var(--color-primary) 8%, transparent);
|
|
71
|
-
--shadow-card-hover: 0 14px 36px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
72
|
-
--shadow-card-active: 0 16px 40px color-mix(in srgb, var(--color-primary) 16%, transparent);
|
|
73
|
-
--shadow-popover: 0 6px 18px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
74
|
-
--shadow-tile: 0 10px 24px color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
75
|
-
--shadow-page: 0 1px 5px color-mix(in srgb, var(--color-primary) 10%, transparent);
|
|
76
|
-
--shadow-modal: 0 24px 60px color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/* Fundo do corpo das janelas: um brilho navy que desce do cabeçalho e
|
|
80
|
-
desvanece para a cor do cartão (branco no tema claro, escuro no tema
|
|
81
|
-
escuro). Na cor primária, para seguir a paleta. */
|
|
82
|
-
@utility bg-canvas {
|
|
83
|
-
background-image:
|
|
84
|
-
radial-gradient(125% 70% at 50% -12%, color-mix(in srgb, var(--color-primary) 7%, transparent) 0%, transparent 55%),
|
|
85
|
-
linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-card)) 0%, color-mix(in srgb, var(--color-primary) 2%, var(--color-card)) 55%, var(--color-card) 100%);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Esconde a barra de scroll do browser, mantendo o scroll (ex: quando há uma
|
|
89
|
-
barra desenhada por cima, como nas tabelas com `overlayScrollbars`). */
|
|
90
|
-
@utility scrollbar-none {
|
|
91
|
-
scrollbar-width: none;
|
|
92
|
-
&::-webkit-scrollbar {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* Sem o aspeto do browser dentro de `v1-reset` (ex: a Table): botões sem fundo,
|
|
98
|
-
borda nem margens, e com a letra de quem os rodeia; tabelas sem espaço entre
|
|
99
|
-
células. A biblioteca não traz o preflight do Tailwind, para não mexer nas
|
|
100
|
-
páginas da app; isto só toca no que está dentro da classe.
|
|
101
|
-
Em `@layer base` e com especificidade zero (`:where`): qualquer classe do
|
|
102
|
-
componente ganha-lhe. */
|
|
103
|
-
@layer base {
|
|
104
|
-
:where(.v1-reset) :where(button) {
|
|
105
|
-
appearance: none;
|
|
106
|
-
background: none;
|
|
107
|
-
border: 0;
|
|
108
|
-
padding: 0;
|
|
109
|
-
margin: 0;
|
|
110
|
-
font: inherit;
|
|
111
|
-
color: inherit;
|
|
112
|
-
letter-spacing: inherit;
|
|
113
|
-
text-transform: inherit;
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
}
|
|
116
|
-
:where(.v1-reset) :where(button:disabled) {
|
|
117
|
-
cursor: default;
|
|
118
|
-
}
|
|
119
|
-
:where(.v1-reset) :where(input, select) {
|
|
120
|
-
font: inherit;
|
|
121
|
-
color: inherit;
|
|
122
|
-
margin: 0;
|
|
123
|
-
}
|
|
124
|
-
:where(.v1-reset) :where(table) {
|
|
125
|
-
border-collapse: collapse;
|
|
126
|
-
}
|
|
127
|
-
:where(.v1-reset) :where(th) {
|
|
128
|
-
font-weight: inherit;
|
|
129
|
-
text-align: inherit;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
1
|
+
/* Tokens do V1: tamanhos, tipos de letra, sombras e cores partilhados pelos
|
|
2
|
+
* componentes. Mudar um valor aqui muda-o em todos os componentes que o usam.
|
|
3
|
+
*
|
|
4
|
+
* Cada token gera as classes do Tailwind com o seu nome (ex: --spacing-control
|
|
5
|
+
* → h-control, w-control; --text-control → text-control; --shadow-card →
|
|
6
|
+
* shadow-card). Uma app pode sobrepor qualquer um no seu próprio CSS
|
|
7
|
+
* (ex: `:root { --spacing-control: 38px }`).
|
|
8
|
+
*
|
|
9
|
+
* `static`: os tokens vão sempre para o CSS, mesmo os que só são usados
|
|
10
|
+
* dentro de outros valores (ex: a largura das etiquetas no FormGrid).
|
|
11
|
+
* Importado por tailwind.css e tailwind.layered.css. */
|
|
12
|
+
@theme static {
|
|
13
|
+
/* Cores */
|
|
14
|
+
--color-primary-strong: #00124a; /* navy mais escuro, para gradientes */
|
|
15
|
+
--color-scrollbar: #c1c1c1;
|
|
16
|
+
--color-scrollbar-hover: #a8a8a8;
|
|
17
|
+
/* Iniciais do Avatar (sem fotografia): o mesmo azul em todos os portais, salvo se o
|
|
18
|
+
portal os sobrepuser (ex: o Tickets usa cinzento). */
|
|
19
|
+
--color-avatar-from: oklch(74.6% 0.16 232.661); /* sky-400 */
|
|
20
|
+
--color-avatar-to: oklch(58.8% 0.158 241.966); /* sky-600 */
|
|
21
|
+
--color-avatar-fg: #ffffff;
|
|
22
|
+
|
|
23
|
+
/* Tipos de letra */
|
|
24
|
+
--text-page-title: 24px; /* título da página (PageHeader) — o mesmo em todos os portais e ecrãs */
|
|
25
|
+
--text-page-title--line-height: 2rem;
|
|
26
|
+
--text-title: 15px; /* títulos de caixas e janelas */
|
|
27
|
+
--text-control: 13px; /* texto dos campos e botões */
|
|
28
|
+
--text-caption: 11px; /* contadores, avisos, tamanhos de ficheiro */
|
|
29
|
+
--text-micro: 10px; /* dicas por baixo das etiquetas */
|
|
30
|
+
|
|
31
|
+
/* Tamanhos */
|
|
32
|
+
--spacing-control: 32px; /* altura de todos os controlos: botões, campos, pesquisa, seletores (iguais lado a lado) */
|
|
33
|
+
--spacing-form-label: 172px; /* coluna das etiquetas no FormGrid */
|
|
34
|
+
--spacing-form-label-narrow: 112px; /* a mesma coluna, em sítios estreitos */
|
|
35
|
+
--spacing-page-x: 48px; /* margem lateral da página (AppShell), a partir de 640px */
|
|
36
|
+
--spacing-page-x-narrow: 16px; /* a mesma margem em ecrãs estreitos */
|
|
37
|
+
--spacing-page-top: 32px; /* espaço por cima da página (AppShell), a partir de 1024px */
|
|
38
|
+
--spacing-page-top-narrow: 80px; /* o mesmo espaço abaixo de 1024px, com lugar para o botão do menu */
|
|
39
|
+
|
|
40
|
+
/* Larguras a partir das quais o FormGrid muda (container queries: @max-form-md, @max-form-sm) */
|
|
41
|
+
--container-form-md: 680px; /* etiquetas mais estreitas */
|
|
42
|
+
--container-form-sm: 500px; /* etiquetas por cima dos campos */
|
|
43
|
+
|
|
44
|
+
/* Larguras máximas das janelas (Dialog): max-w-dialog-sm, -md, -lg, -xl */
|
|
45
|
+
--container-dialog-sm: 480px;
|
|
46
|
+
--container-dialog-md: 720px;
|
|
47
|
+
--container-dialog-lg: 1000px;
|
|
48
|
+
/* Acompanha o ecrã: mapa e tabela lado a lado precisam de largura, mas o texto não deve atravessar o monitor todo */
|
|
49
|
+
--container-dialog-xl: min(1600px, 95vw);
|
|
50
|
+
/* Espaço mínimo entre a janela e as bordas do ecrã */
|
|
51
|
+
--spacing-dialog-margin: 24px;
|
|
52
|
+
|
|
53
|
+
/* Animações de entrada das janelas */
|
|
54
|
+
--animate-dialog-in: dialog-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
|
|
55
|
+
--animate-backdrop-in: backdrop-in 0.2s ease-out both;
|
|
56
|
+
/* Painel lateral (Dialog com placement="right"): entra pela direita */
|
|
57
|
+
--animate-panel-in: panel-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) both;
|
|
58
|
+
|
|
59
|
+
@keyframes dialog-in {
|
|
60
|
+
from { opacity: 0; transform: translateY(10px) scale(0.97); }
|
|
61
|
+
}
|
|
62
|
+
@keyframes panel-in {
|
|
63
|
+
from { opacity: 0.6; transform: translateX(32px); }
|
|
64
|
+
}
|
|
65
|
+
@keyframes backdrop-in {
|
|
66
|
+
from { opacity: 0; }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Sombras (na cor primária, para seguirem a paleta) */
|
|
70
|
+
--shadow-card: 0 10px 30px color-mix(in srgb, var(--color-primary) 8%, transparent);
|
|
71
|
+
--shadow-card-hover: 0 14px 36px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
72
|
+
--shadow-card-active: 0 16px 40px color-mix(in srgb, var(--color-primary) 16%, transparent);
|
|
73
|
+
--shadow-popover: 0 6px 18px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
74
|
+
--shadow-tile: 0 10px 24px color-mix(in srgb, var(--color-primary) 18%, transparent);
|
|
75
|
+
--shadow-page: 0 1px 5px color-mix(in srgb, var(--color-primary) 10%, transparent);
|
|
76
|
+
--shadow-modal: 0 24px 60px color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Fundo do corpo das janelas: um brilho navy que desce do cabeçalho e
|
|
80
|
+
desvanece para a cor do cartão (branco no tema claro, escuro no tema
|
|
81
|
+
escuro). Na cor primária, para seguir a paleta. */
|
|
82
|
+
@utility bg-canvas {
|
|
83
|
+
background-image:
|
|
84
|
+
radial-gradient(125% 70% at 50% -12%, color-mix(in srgb, var(--color-primary) 7%, transparent) 0%, transparent 55%),
|
|
85
|
+
linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 5%, var(--color-card)) 0%, color-mix(in srgb, var(--color-primary) 2%, var(--color-card)) 55%, var(--color-card) 100%);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Esconde a barra de scroll do browser, mantendo o scroll (ex: quando há uma
|
|
89
|
+
barra desenhada por cima, como nas tabelas com `overlayScrollbars`). */
|
|
90
|
+
@utility scrollbar-none {
|
|
91
|
+
scrollbar-width: none;
|
|
92
|
+
&::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Sem o aspeto do browser dentro de `v1-reset` (ex: a Table): botões sem fundo,
|
|
98
|
+
borda nem margens, e com a letra de quem os rodeia; tabelas sem espaço entre
|
|
99
|
+
células. A biblioteca não traz o preflight do Tailwind, para não mexer nas
|
|
100
|
+
páginas da app; isto só toca no que está dentro da classe.
|
|
101
|
+
Em `@layer base` e com especificidade zero (`:where`): qualquer classe do
|
|
102
|
+
componente ganha-lhe. */
|
|
103
|
+
@layer base {
|
|
104
|
+
:where(.v1-reset) :where(button) {
|
|
105
|
+
appearance: none;
|
|
106
|
+
background: none;
|
|
107
|
+
border: 0;
|
|
108
|
+
padding: 0;
|
|
109
|
+
margin: 0;
|
|
110
|
+
font: inherit;
|
|
111
|
+
color: inherit;
|
|
112
|
+
letter-spacing: inherit;
|
|
113
|
+
text-transform: inherit;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
:where(.v1-reset) :where(button:disabled) {
|
|
117
|
+
cursor: default;
|
|
118
|
+
}
|
|
119
|
+
:where(.v1-reset) :where(input, select) {
|
|
120
|
+
font: inherit;
|
|
121
|
+
color: inherit;
|
|
122
|
+
margin: 0;
|
|
123
|
+
}
|
|
124
|
+
:where(.v1-reset) :where(table) {
|
|
125
|
+
border-collapse: collapse;
|
|
126
|
+
}
|
|
127
|
+
:where(.v1-reset) :where(th) {
|
|
128
|
+
font-weight: inherit;
|
|
129
|
+
text-align: inherit;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -34,6 +34,10 @@ export interface PaginatedTableProps<T> extends TableProps<T> {
|
|
|
34
34
|
* páginas dela.
|
|
35
35
|
* - **Todas as linhas de uma vez** (só `data`): a tabela pagina-se a si mesma.
|
|
36
36
|
*
|
|
37
|
+
* Para listas grandes de mais para virem para o browser, `serverSide` passa
|
|
38
|
+
* também a ordenação e os filtros para o servidor: a tabela avisa por
|
|
39
|
+
* `onStateChange` e quem a alimenta vai buscar a página nova. Ver a `Table`.
|
|
40
|
+
*
|
|
37
41
|
* Por omissão ocupa a altura do pai (`fillHeight`), com as barras de scroll
|
|
38
42
|
* por cima das linhas, linhas-esqueleto a carregar e a aresta direita
|
|
39
43
|
* esbatida, e as colunas redimensionáveis. Qualquer uma pode ser desligada.
|
|
@@ -12,9 +12,9 @@ export interface TableColumn<T> {
|
|
|
12
12
|
* ele a coluna não ordena, não filtra e não agrupa.
|
|
13
13
|
*/
|
|
14
14
|
value?: (row: T) => string | number | null | undefined;
|
|
15
|
-
/** Por omissão `true` (quando há `value`). */
|
|
15
|
+
/** Por omissão `true` (quando há `value`). Com `serverSide`, opt-in: só com `true`. */
|
|
16
16
|
sortable?: boolean;
|
|
17
|
-
/** Por omissão `true` (quando há `value`). */
|
|
17
|
+
/** Por omissão `true` (quando há `value`). Com `serverSide`, opt-in: só com `true`. */
|
|
18
18
|
filterable?: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Como se filtra esta coluna:
|
|
@@ -43,6 +43,14 @@ export interface TableColumn<T> {
|
|
|
43
43
|
value: (row: T) => string | number | null | undefined;
|
|
44
44
|
filterType?: 'text' | 'date' | 'number';
|
|
45
45
|
}[];
|
|
46
|
+
/**
|
|
47
|
+
* Os valores do filtro desta coluna, quando é o servidor a filtrar
|
|
48
|
+
* (`serverSide`). Sem o conjunto completo no browser não há de onde os
|
|
49
|
+
* tirar: quem alimenta a tabela vai buscá-los a um endpoint próprio.
|
|
50
|
+
*
|
|
51
|
+
* Ignorado fora do `serverSide` — aí saem dos dados.
|
|
52
|
+
*/
|
|
53
|
+
filterOptions?: string[];
|
|
46
54
|
headerClassName?: string;
|
|
47
55
|
cellClassName?: string;
|
|
48
56
|
/** Conteúdo extra por baixo do título da coluna (ex: um total). Recebe as linhas já filtradas. */
|
|
@@ -71,7 +79,9 @@ export interface TableView<T> {
|
|
|
71
79
|
getState: () => TableState;
|
|
72
80
|
/** Repõe um estado guardado (ex: ao aplicar uma vista que a pessoa guardou). */
|
|
73
81
|
restore: (state: TableState | undefined) => void;
|
|
82
|
+
setFilters: (filters: TableFilters) => void;
|
|
74
83
|
}
|
|
84
|
+
export type TableFilters = Pick<TableState, 'columnFilters' | 'dateFilters' | 'numFilters'>;
|
|
75
85
|
/**
|
|
76
86
|
* O que uma vista guardada leva da tabela. Conjuntos viram arrays para se
|
|
77
87
|
* poder guardar em JSON.
|
|
@@ -125,11 +135,43 @@ export interface TableProps<T> {
|
|
|
125
135
|
onAllDataNeeded?: () => void;
|
|
126
136
|
/** Modo cliente sempre (paginação, ordenação e filtros sobre `allData`), mesmo sem interação. */
|
|
127
137
|
alwaysClient?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Ordenar e filtrar são do SERVIDOR: a tabela não lhes toca.
|
|
140
|
+
*
|
|
141
|
+
* Por omissão ordenar e filtrar são do lado do cliente, sobre o conjunto
|
|
142
|
+
* completo (`allData`), que a tabela pede com `onAllDataNeeded`. Isso resolve
|
|
143
|
+
* bem até às dezenas de milhar de linhas. Acima disso não há conjunto
|
|
144
|
+
* completo que se traga: uma listagem de 127 mil OTs ficava a rodar à espera
|
|
145
|
+
* de dados que ninguém pode entregar.
|
|
146
|
+
*
|
|
147
|
+
* Com `serverSide`, a tabela passa a:
|
|
148
|
+
* - mostrar `data` como vem, sem ordenar nem filtrar;
|
|
149
|
+
* - não pedir `allData`;
|
|
150
|
+
* - avisar por `onStateChange` sempre que a pessoa mexe na ordenação ou nos
|
|
151
|
+
* filtros, para quem a alimenta ir buscar a página nova.
|
|
152
|
+
*
|
|
153
|
+
* Os valores das listas de filtro deixam de sair dos dados — vêm do
|
|
154
|
+
* `filterOptions` de cada coluna.
|
|
155
|
+
*/
|
|
156
|
+
serverSide?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* A ordenação ou os filtros do cabeçalho mudaram.
|
|
159
|
+
*
|
|
160
|
+
* É o par do `onPageChange` para o resto do estado da vista. Sem ele, com
|
|
161
|
+
* `serverSide`, mexer no cabeçalho não faz nada.
|
|
162
|
+
*
|
|
163
|
+
* O estado vem no mesmo formato do `getState()` do `viewRef`, por isso pode
|
|
164
|
+
* ser guardado e reposto tal e qual.
|
|
165
|
+
*/
|
|
166
|
+
onStateChange?: (state: TableState) => void;
|
|
128
167
|
/** Ordenação inicial: a coluna. */
|
|
129
168
|
defaultSortColumn?: string;
|
|
130
169
|
defaultSortDirection?: 'asc' | 'desc';
|
|
131
170
|
/** Recebe o estado da vista (ordenação e filtros) para uso por fora. Ver `TableView`. */
|
|
132
171
|
viewRef?: React.MutableRefObject<TableView<T> | null>;
|
|
172
|
+
filterableColumns?: TableColumn<T>[];
|
|
173
|
+
onFiltersChange?: (filters: TableFilters) => void;
|
|
174
|
+
hideFilterChips?: boolean;
|
|
133
175
|
/**
|
|
134
176
|
* A tabela ocupa a ALTURA TODA que o pai lhe der, em vez de encolher com o
|
|
135
177
|
* número de linhas. O cabeçalho fica fixo e só as linhas rolam.
|
|
@@ -163,7 +205,12 @@ export interface TableProps<T> {
|
|
|
163
205
|
visible: number;
|
|
164
206
|
filtered: boolean;
|
|
165
207
|
selfPaginated: boolean;
|
|
208
|
+
pages: number;
|
|
166
209
|
}) => void;
|
|
210
|
+
clientPage?: {
|
|
211
|
+
page: number;
|
|
212
|
+
onPageChange: (page: number) => void;
|
|
213
|
+
};
|
|
167
214
|
/**
|
|
168
215
|
* Quantas colunas do início ficam congeladas no scroll horizontal. A caixa de
|
|
169
216
|
* seleção, quando existe, vai junto.
|
|
@@ -251,7 +298,7 @@ export interface PaginacaoNoTopo {
|
|
|
251
298
|
onPageSizeChange?: (pageSize: number) => void;
|
|
252
299
|
}
|
|
253
300
|
/** A tabela, com tudo. A `Table` e o `PaginatedTable` são predefinições dela. */
|
|
254
|
-
export declare function TableBase<T>({ paginacaoNoTopo, columns: colunasBase, data, allData, pageSize, rowKey, onRowClick, onRowDoubleClick, loading: isLoading, allDataLoading: isAllDataLoading, loadingLabel, emptyLabel, emptySubLabel, storageKey, selectable, onSelectionChange, clearSelectionTrigger, onAllDataNeeded: onDataNeeded, alwaysClient, defaultSortColumn: defaultSortCol, defaultSortDirection: defaultSortDir, viewRef, fillHeight: preencheAltura, onVisibleChange: onVista, frozenColumns: colunasFixas, onMoveColumn: onMoverColuna, measureAllData: larguraPeloConjunto, overlayScrollbars: barraSobreposta, headerRowClassName: classeCabecalho, scrollbarOnEdge: barraNaBorda, bordered: comCaixa, resizableColumns: redimensionavel, horizontalScrollbarBelow: barraHorizontalFora, skeleton: esqueletoAoCarregar, fadeRight: esbaterDireita, rowClassName, maxHeight, labels, }: TableProps<T> & {
|
|
301
|
+
export declare function TableBase<T>({ paginacaoNoTopo, columns: colunasBase, data, allData, pageSize, rowKey, onRowClick, onRowDoubleClick, loading: isLoading, allDataLoading: isAllDataLoading, loadingLabel, emptyLabel, emptySubLabel, storageKey, selectable, onSelectionChange, clearSelectionTrigger, onAllDataNeeded: onDataNeeded, alwaysClient, serverSide: noServidor, onStateChange: onEstadoMudou, defaultSortColumn: defaultSortCol, defaultSortDirection: defaultSortDir, viewRef, fillHeight: preencheAltura, filterableColumns: colunasFiltraveis, onFiltersChange: onFiltros, hideFilterChips: semFaixaFiltros, clientPage: paginaCliente, onVisibleChange: onVista, frozenColumns: colunasFixas, onMoveColumn: onMoverColuna, measureAllData: larguraPeloConjunto, overlayScrollbars: barraSobreposta, headerRowClassName: classeCabecalho, scrollbarOnEdge: barraNaBorda, bordered: comCaixa, resizableColumns: redimensionavel, horizontalScrollbarBelow: barraHorizontalFora, skeleton: esqueletoAoCarregar, fadeRight: esbaterDireita, rowClassName, maxHeight, labels, }: TableProps<T> & {
|
|
255
302
|
paginacaoNoTopo?: PaginacaoNoTopo;
|
|
256
303
|
}): React.JSX.Element;
|
|
257
304
|
/**
|
package/dist/types/v1/index.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ export { default as Steps, DEFAULT_STEPS_LABELS } from './primitives/navigation/
|
|
|
105
105
|
export type { StepsProps, StepItem, StepsLabels } from './primitives/navigation/Steps/Steps';
|
|
106
106
|
export type { SegmentedControlProps, SegmentedOption } from './primitives/buttons/SegmentedControl/SegmentedControl';
|
|
107
107
|
export { default as Table } from './components/tables/Table/Table';
|
|
108
|
-
export type { TableProps, TableColumn, TableView, TableState } from './components/tables/Table/Table';
|
|
108
|
+
export type { TableProps, TableColumn, TableView, TableState, TableFilters } from './components/tables/Table/Table';
|
|
109
109
|
export { default as PaginatedTable } from './components/tables/PaginatedTable/PaginatedTable';
|
|
110
110
|
export type { PaginatedTableProps } from './components/tables/PaginatedTable/PaginatedTable';
|
|
111
111
|
export { DEFAULT_TABLE_LABELS } from './components/tables/Table/labels';
|
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@proef/common-ui",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/esm/index.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/types/index.d.ts",
|
|
11
|
-
"default": "./dist/esm/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./tailwind.css": "./dist/tailwind.css",
|
|
14
|
-
"./dist/*": "./dist/*",
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
|
-
"sideEffects": [
|
|
18
|
-
"*.css",
|
|
19
|
-
"*.scss"
|
|
20
|
-
],
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
26
|
-
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json && tailwindcss -i src/styles/tailwind.css -o dist/style.css --minify && tailwindcss -i src/styles/tailwind.layered.css -o dist/style.layered.css --minify && node scripts/css-components-layer.mjs && node scripts/extrair-imagens-css.mjs && node scripts/gerar-tema.mjs && node -e \"const fs=require('fs');fs.copyFileSync('src/styles/tailwind.app.css','dist/tailwind.css');fs.copyFileSync('src/styles/tokens.css','dist/tokens.css')\" && node -e \"import('./dist/esm/v1/capabilities/theme/useTheme.js').then(m=>require('fs').writeFileSync('dist/theme-boot.js',m.themeBootScript))\"",
|
|
27
|
-
"storybook": "storybook dev -p 6006",
|
|
28
|
-
"build-storybook": "storybook build",
|
|
29
|
-
"pub": "git add . && git commit -m \"update\" && git push && npm test && npm version patch && npm run build && npm publish",
|
|
30
|
-
"pubOnly": "npm test && npm version patch && npm run build && npm publish",
|
|
31
|
-
"pubOnlySameVersion": "npm run build && npm publish",
|
|
32
|
-
"test": "vitest run",
|
|
33
|
-
"test:watch": "vitest",
|
|
34
|
-
"test:ci": "vitest run --coverage",
|
|
35
|
-
"release": "node scripts/release.mjs"
|
|
36
|
-
},
|
|
37
|
-
"keywords": [],
|
|
38
|
-
"author": "",
|
|
39
|
-
"license": "ISC",
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"@azure/msal-browser": ">=3",
|
|
42
|
-
"@azure/msal-react": ">=2",
|
|
43
|
-
"react": ">=18",
|
|
44
|
-
"react-dom": ">=18",
|
|
45
|
-
"react-router-dom": ">=6"
|
|
46
|
-
},
|
|
47
|
-
"peerDependenciesMeta": {
|
|
48
|
-
"@azure/msal-react": {
|
|
49
|
-
"optional": true
|
|
50
|
-
},
|
|
51
|
-
"@azure/msal-browser": {
|
|
52
|
-
"optional": true
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@azure/msal-browser": "^5.17.3",
|
|
57
|
-
"@azure/msal-react": "^5.5.4",
|
|
58
|
-
"@chromatic-com/storybook": "^5.5.1",
|
|
59
|
-
"@storybook/addon-docs": "^10.6.2",
|
|
60
|
-
"@storybook/addon-links": "^10.6.2",
|
|
61
|
-
"@storybook/addon-onboarding": "^10.6.2",
|
|
62
|
-
"@storybook/react-vite": "^10.6.2",
|
|
63
|
-
"@tailwindcss/cli": "^4.3.3",
|
|
64
|
-
"@tailwindcss/postcss": "^4.3.3",
|
|
65
|
-
"@testing-library/dom": "^10.4.2",
|
|
66
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
67
|
-
"@testing-library/react": "^16.3.3",
|
|
68
|
-
"@testing-library/user-event": "^14.6.8",
|
|
69
|
-
"@types/js-cookie": "^3.0.6",
|
|
70
|
-
"@types/leaflet": "^1.9.22",
|
|
71
|
-
"@types/leaflet.markercluster": "^1.5.6",
|
|
72
|
-
"@types/react": "^19.0.8",
|
|
73
|
-
"@types/react-dom": "^19.0.3",
|
|
74
|
-
"@types/socket.io-client": "^3.0.0",
|
|
75
|
-
"@types/storybook__react": "^5.2.1",
|
|
76
|
-
"@vitejs/plugin-react": "^4.7.0",
|
|
77
|
-
"@vitest/coverage-v8": "^3.2.7",
|
|
78
|
-
"jsdom": "^26.1.0",
|
|
79
|
-
"msw": "^2.7.3",
|
|
80
|
-
"qrcode": "^1.5.4",
|
|
81
|
-
"react-router-dom": "^6.30.4",
|
|
82
|
-
"sass": "^1.84.0",
|
|
83
|
-
"storybook": "^10.6.2",
|
|
84
|
-
"tailwindcss": "^4.3.3",
|
|
85
|
-
"typescript": "^5.7.3",
|
|
86
|
-
"vite": "^7.3.7",
|
|
87
|
-
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
88
|
-
"vitest": "^3.2.7"
|
|
89
|
-
},
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
92
|
-
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
93
|
-
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
94
|
-
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
95
|
-
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
96
|
-
"@tiptap/extension-image": "^3.32.0",
|
|
97
|
-
"@tiptap/pm": "^3.32.0",
|
|
98
|
-
"@tiptap/react": "^3.32.0",
|
|
99
|
-
"@tiptap/starter-kit": "^3.32.0",
|
|
100
|
-
"@zxing/library": "^0.23.0",
|
|
101
|
-
"axios": "^1.8.1",
|
|
102
|
-
"chart.js": "^4.5.1",
|
|
103
|
-
"chartjs-plugin-datalabels": "^2.2.0",
|
|
104
|
-
"dompurify": "^3.4.17",
|
|
105
|
-
"iconoir-react": "^7.11.0",
|
|
106
|
-
"js-cookie": "^3.0.5",
|
|
107
|
-
"keycloak-js": "^25.0.0",
|
|
108
|
-
"leaflet": "^1.9.4",
|
|
109
|
-
"leaflet.heat": "^0.2.0",
|
|
110
|
-
"leaflet.markercluster": "^1.5.3",
|
|
111
|
-
"pdfjs-dist": "^4.10.38",
|
|
112
|
-
"qr-scanner": "^1.4.2",
|
|
113
|
-
"react-chartjs-2": "^5.3.1",
|
|
114
|
-
"react-focus-lock": "^2.13.6",
|
|
115
|
-
"react-infinite-scroll-component": "^6.1.0",
|
|
116
|
-
"react-remove-scroll": "^2.6.3",
|
|
117
|
-
"react-switch": "^7.1.0",
|
|
118
|
-
"socket.io-client": "^4.8.1",
|
|
119
|
-
"tough-cookie": "^5.1.2",
|
|
120
|
-
"zxing-wasm": "^3.1.5"
|
|
121
|
-
},
|
|
122
|
-
"overrides": {
|
|
123
|
-
"storybook": "$storybook"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@proef/common-ui",
|
|
3
|
+
"version": "2.6.30",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/esm/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"default": "./dist/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./tailwind.css": "./dist/tailwind.css",
|
|
14
|
+
"./dist/*": "./dist/*",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"*.css",
|
|
19
|
+
"*.scss"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"prebuild": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
26
|
+
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json && tailwindcss -i src/styles/tailwind.css -o dist/style.css --minify && tailwindcss -i src/styles/tailwind.layered.css -o dist/style.layered.css --minify && node scripts/css-components-layer.mjs && node scripts/extrair-imagens-css.mjs && node scripts/gerar-tema.mjs && node -e \"const fs=require('fs');fs.copyFileSync('src/styles/tailwind.app.css','dist/tailwind.css');fs.copyFileSync('src/styles/tokens.css','dist/tokens.css')\" && node -e \"import('./dist/esm/v1/capabilities/theme/useTheme.js').then(m=>require('fs').writeFileSync('dist/theme-boot.js',m.themeBootScript))\"",
|
|
27
|
+
"storybook": "storybook dev -p 6006",
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"pub": "git add . && git commit -m \"update\" && git push && npm test && npm version patch && npm run build && npm publish",
|
|
30
|
+
"pubOnly": "npm test && npm version patch && npm run build && npm publish",
|
|
31
|
+
"pubOnlySameVersion": "npm run build && npm publish",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:watch": "vitest",
|
|
34
|
+
"test:ci": "vitest run --coverage",
|
|
35
|
+
"release": "node scripts/release.mjs"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [],
|
|
38
|
+
"author": "",
|
|
39
|
+
"license": "ISC",
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@azure/msal-browser": ">=3",
|
|
42
|
+
"@azure/msal-react": ">=2",
|
|
43
|
+
"react": ">=18",
|
|
44
|
+
"react-dom": ">=18",
|
|
45
|
+
"react-router-dom": ">=6"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"@azure/msal-react": {
|
|
49
|
+
"optional": true
|
|
50
|
+
},
|
|
51
|
+
"@azure/msal-browser": {
|
|
52
|
+
"optional": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@azure/msal-browser": "^5.17.3",
|
|
57
|
+
"@azure/msal-react": "^5.5.4",
|
|
58
|
+
"@chromatic-com/storybook": "^5.5.1",
|
|
59
|
+
"@storybook/addon-docs": "^10.6.2",
|
|
60
|
+
"@storybook/addon-links": "^10.6.2",
|
|
61
|
+
"@storybook/addon-onboarding": "^10.6.2",
|
|
62
|
+
"@storybook/react-vite": "^10.6.2",
|
|
63
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
64
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
65
|
+
"@testing-library/dom": "^10.4.2",
|
|
66
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
67
|
+
"@testing-library/react": "^16.3.3",
|
|
68
|
+
"@testing-library/user-event": "^14.6.8",
|
|
69
|
+
"@types/js-cookie": "^3.0.6",
|
|
70
|
+
"@types/leaflet": "^1.9.22",
|
|
71
|
+
"@types/leaflet.markercluster": "^1.5.6",
|
|
72
|
+
"@types/react": "^19.0.8",
|
|
73
|
+
"@types/react-dom": "^19.0.3",
|
|
74
|
+
"@types/socket.io-client": "^3.0.0",
|
|
75
|
+
"@types/storybook__react": "^5.2.1",
|
|
76
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
77
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
78
|
+
"jsdom": "^26.1.0",
|
|
79
|
+
"msw": "^2.7.3",
|
|
80
|
+
"qrcode": "^1.5.4",
|
|
81
|
+
"react-router-dom": "^6.30.4",
|
|
82
|
+
"sass": "^1.84.0",
|
|
83
|
+
"storybook": "^10.6.2",
|
|
84
|
+
"tailwindcss": "^4.3.3",
|
|
85
|
+
"typescript": "^5.7.3",
|
|
86
|
+
"vite": "^7.3.7",
|
|
87
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
88
|
+
"vitest": "^3.2.7"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
92
|
+
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
93
|
+
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
94
|
+
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
95
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
96
|
+
"@tiptap/extension-image": "^3.32.0",
|
|
97
|
+
"@tiptap/pm": "^3.32.0",
|
|
98
|
+
"@tiptap/react": "^3.32.0",
|
|
99
|
+
"@tiptap/starter-kit": "^3.32.0",
|
|
100
|
+
"@zxing/library": "^0.23.0",
|
|
101
|
+
"axios": "^1.8.1",
|
|
102
|
+
"chart.js": "^4.5.1",
|
|
103
|
+
"chartjs-plugin-datalabels": "^2.2.0",
|
|
104
|
+
"dompurify": "^3.4.17",
|
|
105
|
+
"iconoir-react": "^7.11.0",
|
|
106
|
+
"js-cookie": "^3.0.5",
|
|
107
|
+
"keycloak-js": "^25.0.0",
|
|
108
|
+
"leaflet": "^1.9.4",
|
|
109
|
+
"leaflet.heat": "^0.2.0",
|
|
110
|
+
"leaflet.markercluster": "^1.5.3",
|
|
111
|
+
"pdfjs-dist": "^4.10.38",
|
|
112
|
+
"qr-scanner": "^1.4.2",
|
|
113
|
+
"react-chartjs-2": "^5.3.1",
|
|
114
|
+
"react-focus-lock": "^2.13.6",
|
|
115
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
116
|
+
"react-remove-scroll": "^2.6.3",
|
|
117
|
+
"react-switch": "^7.1.0",
|
|
118
|
+
"socket.io-client": "^4.8.1",
|
|
119
|
+
"tough-cookie": "^5.1.2",
|
|
120
|
+
"zxing-wasm": "^3.1.5"
|
|
121
|
+
},
|
|
122
|
+
"overrides": {
|
|
123
|
+
"storybook": "$storybook"
|
|
124
|
+
}
|
|
125
|
+
}
|