@umodeapporg/ui 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +78 -0
  2. package/dist/components/Form/ControlledSelect.js +1 -1
  3. package/dist/components/Form/ControlledTabs.js +4 -4
  4. package/dist/components/Form/ControlledTabs.js.map +1 -1
  5. package/dist/components/Form/ControlledViewToggle.js +2 -2
  6. package/dist/components/Form/ControlledViewToggle.js.map +1 -1
  7. package/dist/components/Navigation/ControlledBreadcrumb.js +3 -2
  8. package/dist/components/Navigation/ControlledBreadcrumb.js.map +1 -1
  9. package/dist/components/Navigation/PageTitle.js +3 -6
  10. package/dist/components/Navigation/PageTitle.js.map +1 -1
  11. package/dist/components/Navigation/ReactRouterNavigationAdapter.d.ts +7 -0
  12. package/dist/components/Navigation/ReactRouterNavigationAdapter.js +26 -0
  13. package/dist/components/Navigation/ReactRouterNavigationAdapter.js.map +1 -0
  14. package/dist/components/Navigation/UiNavigationContext.d.ts +38 -0
  15. package/dist/components/Navigation/UiNavigationContext.js +43 -0
  16. package/dist/components/Navigation/UiNavigationContext.js.map +1 -0
  17. package/dist/components/Search/filters/useFilters.js +2 -2
  18. package/dist/components/Search/filters/useFilters.js.map +1 -1
  19. package/dist/components/UI/BaseDataCard.js +3 -2
  20. package/dist/components/UI/BaseDataCard.js.map +1 -1
  21. package/dist/components/UI/DataTable/DataTable.js +1 -1
  22. package/dist/components/UI/DataTable/DataTableBulkEditDialog.js +1 -1
  23. package/dist/components/UI/DataTable/DataTableFilters.js +1 -1
  24. package/dist/components/UI/DataTable/DataTableToolbar.js +1 -1
  25. package/dist/components/UI/DataTable/applyDataTableFilters.js +1 -1
  26. package/dist/components/UI/UserMenu.d.ts +48 -0
  27. package/dist/components/UI/UserMenu.js +196 -0
  28. package/dist/components/UI/UserMenu.js.map +1 -0
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.js +5 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/locales/en/ui.json.d.ts +7 -0
  33. package/dist/locales/en/ui.json.js +3 -0
  34. package/dist/locales/en/ui.json.js.map +1 -1
  35. package/dist/locales/index.d.ts +14 -0
  36. package/dist/locales/pt/ui.json.d.ts +7 -0
  37. package/dist/locales/pt/ui.json.js +3 -0
  38. package/dist/locales/pt/ui.json.js.map +1 -1
  39. package/package.json +6 -3
  40. package/src/assets/styles/base.css +0 -1
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ import { default as default13 } from "./components/Navigation/ControlledBreadcru
14
14
  import { default as default14 } from "./components/Navigation/ErrorPage.js";
15
15
  import { default as default15 } from "./components/Navigation/PageTitle.js";
16
16
  import { PageTitleNavigationProvider, usePageTitleNavigation } from "./components/Navigation/PageTitleNavigationContext.js";
17
+ import { UiNavigationProvider, useUiNavigation } from "./components/Navigation/UiNavigationContext.js";
17
18
  import { default as default16 } from "./components/Search/UnifiedSearchBar.js";
18
19
  import { UiAccessProvider, useUiAccess } from "./components/UI/access/UiAccessContext.js";
19
20
  import { default as default17 } from "./components/UI/BaseDataCard.js";
@@ -34,6 +35,7 @@ import { default as default31 } from "./components/UI/LoadingSpinner.js";
34
35
  import { MaterialSymbol, combineClasses } from "./components/UI/MaterialSymbol/index.js";
35
36
  import { default as default32 } from "./components/UI/NoDataFound/index.js";
36
37
  import { default as default33 } from "./components/UI/SkeletonLoading.js";
38
+ import { default as default34 } from "./components/UI/UserMenu.js";
37
39
  import { composeRefs } from "./helpers/composeRefs.js";
38
40
  import { isPressOnLayeredSurface } from "./helpers/layeredSurfaces.js";
39
41
  import { readThemeToken, useThemeChartTokens } from "./helpers/themeTokens.js";
@@ -87,7 +89,9 @@ export {
87
89
  PageTitleNavigationProvider,
88
90
  default33 as SkeletonLoading,
89
91
  UiAccessProvider,
92
+ UiNavigationProvider,
90
93
  default16 as UnifiedSearchBar,
94
+ default34 as UserMenu,
91
95
  collapseVariants,
92
96
  combineClasses,
93
97
  composeRefs,
@@ -120,6 +124,7 @@ export {
120
124
  useResolvedTheme,
121
125
  useThemeChartTokens,
122
126
  useUiAccess,
127
+ useUiNavigation,
123
128
  writeUiPreference
124
129
  };
125
130
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -459,6 +459,13 @@ declare const _default: {
459
459
  "urlLinkCell": {
460
460
  "clickToAccess": "Click to access"
461
461
  },
462
+ "userMenu": {
463
+ "loading": "Loading...",
464
+ "yourAccounts": "Your Accounts",
465
+ "searchAccount": "Search account",
466
+ "noAccounts": "No active accounts available",
467
+ "logout": "Sign out"
468
+ },
462
469
  "voiceInput": {
463
470
  "start": "Transcribe by voice",
464
471
  "stop": "Stop transcription",
@@ -28,6 +28,7 @@ const toast = { "learnMore": "Learn more" };
28
28
  const unifiedSearchBar = { "clearFilter": "Clear filter" };
29
29
  const uploader = { "dragOr": "Drag or", "selectFile": "select a file", "orPaste": "or paste (Ctrl+V)", "allowedFormats": "Allowed formats:", "upTo": "up to", "megabytesSuffix": "MB", "sendFiles": "Send file(s)", "filesIgnoredMaxSize": "Some files were ignored because they exceeded the maximum size of {{size}}MB", "invalidFormat": "Please add files in the allowed formats", "allowedFormatsTooltip": "Allowed formats: {{formats}} up to {{size}}MB" };
30
30
  const urlLinkCell = { "clickToAccess": "Click to access" };
31
+ const userMenu = { "loading": "Loading...", "yourAccounts": "Your Accounts", "searchAccount": "Search account", "noAccounts": "No active accounts available", "logout": "Sign out" };
31
32
  const voiceInput = { "start": "Transcribe by voice", "stop": "Stop transcription", "commandsHint": "Voice commands: say {{commands}} to insert punctuation or delete the last word." };
32
33
  const en = {
33
34
  accordion,
@@ -60,6 +61,7 @@ const en = {
60
61
  unifiedSearchBar,
61
62
  uploader,
62
63
  urlLinkCell,
64
+ userMenu,
63
65
  voiceInput
64
66
  };
65
67
  export {
@@ -94,6 +96,7 @@ export {
94
96
  unifiedSearchBar,
95
97
  uploader,
96
98
  urlLinkCell,
99
+ userMenu,
97
100
  voiceInput
98
101
  };
99
102
  //# sourceMappingURL=ui.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ui.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -461,6 +461,13 @@ export declare const uiLocales: {
461
461
  urlLinkCell: {
462
462
  clickToAccess: string;
463
463
  };
464
+ userMenu: {
465
+ loading: string;
466
+ yourAccounts: string;
467
+ searchAccount: string;
468
+ noAccounts: string;
469
+ logout: string;
470
+ };
464
471
  voiceInput: {
465
472
  start: string;
466
473
  stop: string;
@@ -928,6 +935,13 @@ export declare const uiLocales: {
928
935
  urlLinkCell: {
929
936
  clickToAccess: string;
930
937
  };
938
+ userMenu: {
939
+ loading: string;
940
+ yourAccounts: string;
941
+ searchAccount: string;
942
+ noAccounts: string;
943
+ logout: string;
944
+ };
931
945
  voiceInput: {
932
946
  start: string;
933
947
  stop: string;
@@ -459,6 +459,13 @@ declare const _default: {
459
459
  "urlLinkCell": {
460
460
  "clickToAccess": "Clique para acessar"
461
461
  },
462
+ "userMenu": {
463
+ "loading": "Carregando...",
464
+ "yourAccounts": "Suas Contas",
465
+ "searchAccount": "Buscar conta",
466
+ "noAccounts": "Nenhuma conta ativa disponível",
467
+ "logout": "Sair"
468
+ },
462
469
  "voiceInput": {
463
470
  "start": "Transcrever por voz",
464
471
  "stop": "Parar transcrição",
@@ -28,6 +28,7 @@ const toast = { "learnMore": "Saiba Mais" };
28
28
  const unifiedSearchBar = { "clearFilter": "Limpar Filtro" };
29
29
  const uploader = { "dragOr": "Arraste ou", "selectFile": "selecione um arquivo", "orPaste": "ou cole (Ctrl+V)", "allowedFormats": "Formatos permitidos:", "upTo": "até", "megabytesSuffix": "MB", "sendFiles": "Enviar arquivo(s)", "filesIgnoredMaxSize": "Alguns arquivos foram ignorados porque excederam o tamanho máximo de {{size}}MB", "invalidFormat": "Por favor, insira arquivos nos formatos permitidos", "allowedFormatsTooltip": "Formatos permitidos: {{formats}} até {{size}}MB" };
30
30
  const urlLinkCell = { "clickToAccess": "Clique para acessar" };
31
+ const userMenu = { "loading": "Carregando...", "yourAccounts": "Suas Contas", "searchAccount": "Buscar conta", "noAccounts": "Nenhuma conta ativa disponível", "logout": "Sair" };
31
32
  const voiceInput = { "start": "Transcrever por voz", "stop": "Parar transcrição", "commandsHint": "Comandos de voz: diga {{commands}} para inserir pontuação ou apagar a última palavra." };
32
33
  const pt = {
33
34
  accordion,
@@ -60,6 +61,7 @@ const pt = {
60
61
  unifiedSearchBar,
61
62
  uploader,
62
63
  urlLinkCell,
64
+ userMenu,
63
65
  voiceInput
64
66
  };
65
67
  export {
@@ -94,6 +96,7 @@ export {
94
96
  unifiedSearchBar,
95
97
  uploader,
96
98
  urlLinkCell,
99
+ userMenu,
97
100
  voiceInput
98
101
  };
99
102
  //# sourceMappingURL=ui.json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ui.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umodeapporg/ui",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -104,10 +104,10 @@
104
104
  "i18next": ">=23",
105
105
  "konva": "^9.3.22",
106
106
  "motion": "^13.1.0",
107
- "react": "^18.3.1",
107
+ "react": "^18.3.1 || ^19.0.0",
108
108
  "react-apexcharts": ">=1.4.1 <2",
109
109
  "react-day-picker": "^9.3.0",
110
- "react-dom": "^18.3.1",
110
+ "react-dom": "^18.3.1 || ^19.0.0",
111
111
  "react-i18next": ">=14",
112
112
  "react-infinite-scroll-component": "^6.1.0",
113
113
  "react-konva": "^18.2.16",
@@ -163,6 +163,9 @@
163
163
  },
164
164
  "remark-gfm": {
165
165
  "optional": true
166
+ },
167
+ "react-router-dom": {
168
+ "optional": true
166
169
  }
167
170
  },
168
171
  "devDependencies": {
@@ -1,6 +1,5 @@
1
1
  @import './theme.css';
2
2
 
3
-
4
3
  @tailwind base;
5
4
  @tailwind components;
6
5
  @tailwind utilities;