react-luminus-components 1.3.33 → 1.3.34

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 (165) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +64 -64
  3. package/dist/{FromToDatePickerDropdownToggle-BcOIaLyQ.cjs → FromToDatePickerDropdownToggle-DhzBIJXw.cjs} +1 -1
  4. package/dist/{FromToDatePickerDropdownToggle-CGnDN_zs.js → FromToDatePickerDropdownToggle-Dk7MFcJp.js} +59 -59
  5. package/dist/{PrimaryButton-B6qFyVVD.js → PrimaryButton-Bbl06m-g.js} +1 -1
  6. package/dist/{PrimaryButton-Dow_5lBe.cjs → PrimaryButton-D33g-RWP.cjs} +1 -1
  7. package/dist/{SimpleTooltip-CpLiAgNs.cjs → SimpleTooltip-Bz22xxXa.cjs} +1 -1
  8. package/dist/{SimpleTooltip-B0I1MS-L.js → SimpleTooltip-C32Faxrc.js} +1 -1
  9. package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +2 -1
  10. package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +1 -0
  11. package/dist/components/Dropdown/Dropdown.d.ts +1 -0
  12. package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +2 -1
  13. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +1 -0
  14. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +2 -1
  15. package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +2 -1
  16. package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -1
  17. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +2 -1
  18. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +2 -1
  19. package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -1
  20. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +2 -1
  21. package/dist/components/Form/TextInput/TextInput.d.ts +2 -1
  22. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +2 -1
  23. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +2 -1
  24. package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +3 -2
  25. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +2 -1
  26. package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +1 -0
  27. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +2 -1
  28. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +2 -1
  29. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +2 -1
  30. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +2 -1
  31. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +2 -1
  32. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +2 -2
  33. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +2 -1
  34. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +2 -2
  35. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +2 -2
  36. package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +2 -1
  37. package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +2 -1
  38. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +2 -1
  39. package/dist/components/NewTabs/Tab/Tab.d.ts +1 -0
  40. package/dist/components/NewTabs/Tabs/Tabs.d.ts +2 -1
  41. package/dist/components/Tabs/Tabs.d.ts +1 -0
  42. package/dist/components/Tabs/comps/Tab/Tab.d.ts +1 -0
  43. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +1 -0
  44. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -0
  45. package/dist/components/common/Alert/Alert.d.ts +1 -0
  46. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -1
  47. package/dist/components/common/AppSearch/AppSearch.d.ts +2 -1
  48. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +2 -1
  49. package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +3 -2
  50. package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +2 -1
  51. package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +2 -1
  52. package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -1
  53. package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +3 -2
  54. package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +2 -1
  55. package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +2 -1
  56. package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +1 -0
  57. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +3 -2
  58. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +2 -1
  59. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +2 -1
  60. package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +2 -1
  61. package/dist/components/common/ImgApi/ImgApi.d.ts +2 -1
  62. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +2 -1
  63. package/dist/components/common/ImgDirect/ImgDirect.d.ts +2 -1
  64. package/dist/components/common/Loading/LoadingBlock.d.ts +1 -0
  65. package/dist/components/common/MonthPicker/MonthPicker.d.ts +1 -0
  66. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +2 -1
  67. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +2 -1
  68. package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
  69. package/dist/components/common/Timeline/Timeline.d.ts +2 -1
  70. package/dist/components/common/Widget/WidgetCard.d.ts +1 -0
  71. package/dist/components/common/Widget/WidgetWrapper.d.ts +1 -0
  72. package/dist/contexts/auth/AuthContext.d.ts +3 -2
  73. package/dist/contexts/auth/AuthProvider.d.ts +2 -1
  74. package/dist/contexts/confirm/ConfirmContext.d.ts +1 -1
  75. package/dist/contexts/delegation/DelegationContext.d.ts +3 -2
  76. package/dist/contexts/loading/LoadingContext.d.ts +1 -1
  77. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -2
  78. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -2
  79. package/dist/contexts/prompt/PromptContext.d.ts +3 -2
  80. package/dist/contexts/prompt/PromptProvider.d.ts +1 -0
  81. package/dist/contexts/user/UserContext.d.ts +4 -3
  82. package/dist/contexts.cjs.js +1 -1
  83. package/dist/contexts.d.ts +1 -240
  84. package/dist/contexts.es.js +9 -9
  85. package/dist/{dateUtils-Bc53BdYm.js → dateUtils-B9-rf1Eh.js} +1 -1
  86. package/dist/{dateUtils-Y_XPaYyg.cjs → dateUtils-Bs39Qj7k.cjs} +1 -1
  87. package/dist/hooks/useAxios/useAxios.d.ts +2 -1
  88. package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
  89. package/dist/hooks/useGetApiData/useGetApiData.d.ts +3 -2
  90. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +1 -1
  91. package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
  92. package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +2 -1
  93. package/dist/hooks.cjs.js +1 -1
  94. package/dist/hooks.d.ts +1 -160
  95. package/dist/hooks.es.js +6 -6
  96. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +2 -1
  97. package/dist/layout/MainContainer/MainContainer.d.ts +2 -1
  98. package/dist/layout/PageTitle/PageTitle.d.ts +1 -0
  99. package/dist/layout/SideContentBar/SideContentBar.d.ts +1 -0
  100. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -1
  101. package/dist/layout/SideMenu/SideMenu.d.ts +2 -1
  102. package/dist/layout.cjs.js +1 -1
  103. package/dist/layout.d.ts +1 -54
  104. package/dist/layout.es.js +3 -3
  105. package/dist/main.cjs.js +1 -1
  106. package/dist/main.d.ts +1 -1
  107. package/dist/main.es.js +1467 -1467
  108. package/dist/models/luminus-context-types/ILocalizationContext.d.ts +1 -0
  109. package/dist/models/prop-types/ContainerProps.d.ts +1 -0
  110. package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +1 -0
  111. package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +2 -1
  112. package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +2 -1
  113. package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +2 -1
  114. package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +2 -1
  115. package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +2 -1
  116. package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +2 -1
  117. package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +2 -1
  118. package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +3 -2
  119. package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +3 -2
  120. package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +3 -2
  121. package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +2 -1
  122. package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +2 -1
  123. package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +3 -2
  124. package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +3 -2
  125. package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +3 -2
  126. package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +3 -2
  127. package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +3 -2
  128. package/dist/models/prop-types/ImgProps.d.ts +1 -0
  129. package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +2 -1
  130. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +5 -4
  131. package/dist/models/prop-types/InputProps/FileInputProps.d.ts +2 -1
  132. package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -1
  133. package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +2 -1
  134. package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +3 -2
  135. package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +3 -2
  136. package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -1
  137. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -1
  138. package/dist/models/texts/ComponentsContextTexts.d.ts +12 -11
  139. package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
  140. package/dist/models/types/ApiErrorResult.d.ts +2 -1
  141. package/dist/models/types/DashboardConfig.d.ts +2 -1
  142. package/dist/models/types/DashboardWidget.d.ts +2 -1
  143. package/dist/models/types/DropdownPickerOption.d.ts +2 -1
  144. package/dist/models/types/HookFormInputProps.d.ts +2 -1
  145. package/dist/models/types/MenuItemTypeExtended.d.ts +2 -1
  146. package/dist/models/types/SearchResultGroupModel.d.ts +3 -2
  147. package/dist/models/types/SearchResultModel.d.ts +2 -1
  148. package/dist/models/types/TimelineStep.d.ts +2 -1
  149. package/dist/models/types/UserLoginState.d.ts +3 -2
  150. package/dist/models/types/UserModel.d.ts +2 -1
  151. package/dist/{searchUtils-kismAHZM.js → searchUtils-BCxOKHVq.js} +1 -1
  152. package/dist/{searchUtils-qxu0IgEU.cjs → searchUtils-CxNriHg_.cjs} +1 -1
  153. package/dist/style.css +1 -1
  154. package/dist/{useFormControlType-BAFqxupC.js → useFormControlType-oJGqgThz.js} +3 -3
  155. package/dist/{useLocalStorageState-BxKcArKF.cjs → useLocalStorageState-3ebV2Hf5.cjs} +1 -1
  156. package/dist/{useLocalStorageState-HYmARj_B.js → useLocalStorageState-Cs1tOpr1.js} +1 -1
  157. package/dist/{usePermissions-yx-0zHae.cjs → usePermissions-BZPN1OT2.cjs} +1 -1
  158. package/dist/{usePermissions-Dl5tlwwt.js → usePermissions-CfJgVLTi.js} +3 -3
  159. package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +2 -1
  160. package/dist/utils/hookForm/hookFormUtils.d.ts +2 -1
  161. package/dist/utils.cjs.js +1 -1
  162. package/dist/utils.d.ts +1 -151
  163. package/dist/utils.es.js +6 -6
  164. package/dist/variables.scss +171 -171
  165. package/package.json +106 -106
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "name": "react-luminus-components",
3
- "version": "1.3.33",
4
- "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
- "type": "module",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/BenefitCZ/react-luminus-components.git"
9
- },
10
- "author": "triskacik",
11
- "homepage": "https://github.com/BenefitCZ/react-luminus-components#readme",
12
- "main": "./dist/main.cjs.js",
13
- "module": "./dist/main.es.js",
14
- "typings": "./dist/main.d.ts",
15
- "exports": {
16
- ".": {
17
- "import": "./dist/main.es.js",
18
- "require": "./dist/main.cjs.js",
19
- "types": "./dist/main.d.ts"
20
- },
21
- "./layout": {
22
- "import": "./dist/layout.es.js",
23
- "require": "./dist/layout.cjs.js",
24
- "types": "./dist/layout.d.ts"
25
- },
26
- "./contexts": {
27
- "import": "./dist/contexts.es.js",
28
- "require": "./dist/contexts.cjs.js",
29
- "types": "./dist/contexts.d.ts"
30
- },
31
- "./hooks": {
32
- "import": "./dist/hooks.es.js",
33
- "require": "./dist/hooks.cjs.js",
34
- "types": "./dist/hooks.d.ts"
35
- },
36
- "./utils": {
37
- "import": "./dist/utils.es.js",
38
- "require": "./dist/utils.cjs.js",
39
- "types": "./dist/utils.d.ts"
40
- },
41
- "./types": "./dist/models/index.d.ts",
42
- "./styles": "./dist/style.css"
43
- },
44
- "files": [
45
- "dist"
46
- ],
47
- "scripts": {
48
- "build": "tsc && vite build",
49
- "build:watch": "tsc && vite build --watch",
50
- "dev": "vite",
51
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --cache",
52
- "compile": "tsc --noEmit"
53
- },
54
- "peerDependencies": {
55
- "@azure/msal-browser": "^3.14.0",
56
- "@azure/msal-react": "^2.0.16",
57
- "axios": "^1.6.8",
58
- "bootstrap": "^5.3.3",
59
- "react": ">=18",
60
- "react-icons": "^5.0.1",
61
- "react-bootstrap": ">=2",
62
- "react-hook-form": ">=7",
63
- "react-router-dom": ">=6",
64
- "zod": ">=3.22.4"
65
- },
66
- "dependencies": {
67
- "classnames": "^2.5.1",
68
- "date-fns": "^3.6.0",
69
- "latinize": "^2.0.0",
70
- "react-cookie": "^7.1.4",
71
- "react-hot-toast": "^2.4.1",
72
- "react-portal": "^4.2.2",
73
- "use-debounce": "^10.0.0",
74
- "uuid": "^9.0.1"
75
- },
76
- "devDependencies": {
77
- "@rollup/plugin-typescript": "^11.1.6",
78
- "@types/latinize": "^0.2.18",
79
- "@types/node": "^20.11.29",
80
- "@types/react": "^18.2.56",
81
- "@types/react-dom": "^18.2.19",
82
- "@types/react-portal": "^4.0.7",
83
- "@types/uuid": "^9.0.8",
84
- "@typescript-eslint/eslint-plugin": "^7.3.1",
85
- "@typescript-eslint/parser": "^7.3.1",
86
- "@vitejs/plugin-react": "^4.2.1",
87
- "eslint": "^8.57.0",
88
- "eslint-config-airbnb": "^19.0.4",
89
- "eslint-config-airbnb-typescript": "^18.0.0",
90
- "eslint-config-prettier": "^9.1.0",
91
- "eslint-plugin-import": "^2.29.1",
92
- "eslint-plugin-jsx-a11y": "^6.8.0",
93
- "eslint-plugin-prettier": "^5.1.3",
94
- "eslint-plugin-react": "^7.34.1",
95
- "eslint-plugin-react-hooks": "^4.6.0",
96
- "eslint-plugin-react-refresh": "^0.4.6",
97
- "prettier": "^3.2.5",
98
- "rollup-plugin-typescript-paths": "^1.5.0",
99
- "sass": "^1.72.0",
100
- "sass-loader": "^14.1.1",
101
- "tslib": "^2.6.2",
102
- "typescript": "^5.2.2",
103
- "vite": "^5.1.4",
104
- "vite-plugin-dts": "^3.7.3"
105
- }
106
- }
1
+ {
2
+ "name": "react-luminus-components",
3
+ "version": "1.3.34",
4
+ "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
+ "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/BenefitCZ/react-luminus-components.git"
9
+ },
10
+ "author": "triskacik",
11
+ "homepage": "https://github.com/BenefitCZ/react-luminus-components#readme",
12
+ "main": "./dist/main.cjs.js",
13
+ "module": "./dist/main.es.js",
14
+ "typings": "./dist/main.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/main.es.js",
18
+ "require": "./dist/main.cjs.js",
19
+ "types": "./dist/main.d.ts"
20
+ },
21
+ "./layout": {
22
+ "import": "./dist/layout.es.js",
23
+ "require": "./dist/layout.cjs.js",
24
+ "types": "./dist/layout.d.ts"
25
+ },
26
+ "./contexts": {
27
+ "import": "./dist/contexts.es.js",
28
+ "require": "./dist/contexts.cjs.js",
29
+ "types": "./dist/contexts.d.ts"
30
+ },
31
+ "./hooks": {
32
+ "import": "./dist/hooks.es.js",
33
+ "require": "./dist/hooks.cjs.js",
34
+ "types": "./dist/hooks.d.ts"
35
+ },
36
+ "./utils": {
37
+ "import": "./dist/utils.es.js",
38
+ "require": "./dist/utils.cjs.js",
39
+ "types": "./dist/utils.d.ts"
40
+ },
41
+ "./types": "./dist/models/index.d.ts",
42
+ "./styles": "./dist/style.css"
43
+ },
44
+ "files": [
45
+ "dist"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsc && vite build",
49
+ "build:watch": "tsc && vite build --watch",
50
+ "dev": "vite",
51
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --cache",
52
+ "compile": "tsc --noEmit"
53
+ },
54
+ "peerDependencies": {
55
+ "@azure/msal-browser": "^3.14.0",
56
+ "@azure/msal-react": "^2.0.16",
57
+ "axios": "^1.6.8",
58
+ "bootstrap": "^5.3.3",
59
+ "react": ">=18",
60
+ "react-icons": "^5.0.1",
61
+ "react-bootstrap": ">=2",
62
+ "react-hook-form": ">=7",
63
+ "react-router-dom": ">=6",
64
+ "zod": ">=3.22.4"
65
+ },
66
+ "dependencies": {
67
+ "classnames": "^2.5.1",
68
+ "date-fns": "^3.6.0",
69
+ "latinize": "^2.0.0",
70
+ "react-cookie": "^7.1.4",
71
+ "react-hot-toast": "^2.4.1",
72
+ "react-portal": "^4.2.2",
73
+ "use-debounce": "^10.0.0",
74
+ "uuid": "^9.0.1"
75
+ },
76
+ "devDependencies": {
77
+ "@rollup/plugin-typescript": "^11.1.6",
78
+ "@types/latinize": "^0.2.18",
79
+ "@types/node": "^20.11.29",
80
+ "@types/react": "^18.2.56",
81
+ "@types/react-dom": "^18.2.19",
82
+ "@types/react-portal": "^4.0.7",
83
+ "@types/uuid": "^9.0.8",
84
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
85
+ "@typescript-eslint/parser": "^7.3.1",
86
+ "@vitejs/plugin-react": "^4.2.1",
87
+ "eslint": "^8.57.0",
88
+ "eslint-config-airbnb": "^19.0.4",
89
+ "eslint-config-airbnb-typescript": "^18.0.0",
90
+ "eslint-config-prettier": "^9.1.0",
91
+ "eslint-plugin-import": "^2.29.1",
92
+ "eslint-plugin-jsx-a11y": "^6.8.0",
93
+ "eslint-plugin-prettier": "^5.1.3",
94
+ "eslint-plugin-react": "^7.34.1",
95
+ "eslint-plugin-react-hooks": "^4.6.0",
96
+ "eslint-plugin-react-refresh": "^0.4.6",
97
+ "prettier": "^3.2.5",
98
+ "rollup-plugin-typescript-paths": "^1.5.0",
99
+ "sass": "^1.72.0",
100
+ "sass-loader": "^14.1.1",
101
+ "tslib": "^2.6.2",
102
+ "typescript": "^5.2.2",
103
+ "vite": "^5.1.4",
104
+ "vite-plugin-dts": "^3.7.3"
105
+ }
106
+ }