react-luminus-components 2.1.1 → 2.1.3

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 (34) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +46 -46
  3. package/dist/{FormDisabledProvider-faatkj2d.js → FormDisabledProvider-9PRnBdWU.js} +4 -4
  4. package/dist/FormDisabledProvider-BC1rYj84.cjs +1 -0
  5. package/dist/{nivo-bar-Dvo_C4bb.js → ShortcutLinksContext-BY-R5-zs.js} +23256 -23256
  6. package/dist/ShortcutLinksContext-BrP3e2lp.cjs +293 -0
  7. package/dist/contexts.cjs.js +1 -1
  8. package/dist/contexts.es.js +77 -77
  9. package/dist/hooks.cjs.js +1 -1
  10. package/dist/hooks.es.js +56 -56
  11. package/dist/layout.cjs.js +1 -1
  12. package/dist/layout.es.js +76 -76
  13. package/dist/localStorageUtils-CVwJ9FKd.cjs +1 -0
  14. package/dist/localStorageUtils-TeLq8MHE.js +59 -0
  15. package/dist/main.cjs.js +7 -7
  16. package/dist/main.es.js +11851 -11836
  17. package/dist/models/texts/DocumentsTexts.d.ts +1 -0
  18. package/dist/models/texts/NotifCentrumTexts.d.ts +1 -0
  19. package/dist/models/types/notifCenter/NotificationTemplate.d.ts +1 -0
  20. package/dist/style.css +1 -1
  21. package/dist/{useIsFormDirty-DrM6JmtY.js → useIsFormDirty-COyiQoVZ.js} +5 -5
  22. package/dist/useIsFormDirty-CXJBlN5Q.cjs +1 -0
  23. package/dist/{useLocalStorageState-CzdQutCi.js → useLocalStorageState-BC8nJ4qt.js} +1 -1
  24. package/dist/useLocalStorageState-DzGRXMpR.cjs +1 -0
  25. package/dist/utils.cjs.js +1 -1
  26. package/dist/utils.es.js +42 -42
  27. package/dist/variables.scss +165 -165
  28. package/package.json +128 -128
  29. package/dist/FormDisabledProvider-BmGT82vd.cjs +0 -1
  30. package/dist/localStorageUtils-CmHKDfSh.cjs +0 -1
  31. package/dist/localStorageUtils-Dm59KUwC.js +0 -48
  32. package/dist/nivo-bar-CYwXuVs2.cjs +0 -293
  33. package/dist/useIsFormDirty-C53Kh2XN.cjs +0 -1
  34. package/dist/useLocalStorageState-hUZJI1T5.cjs +0 -1
package/package.json CHANGED
@@ -1,128 +1,128 @@
1
- {
2
- "name": "react-luminus-components",
3
- "version": "2.1.1",
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
- "lint-fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --cache --fix",
53
- "compile": "tsc --noEmit",
54
- "deploy": "npm version patch -m \"chore: bump version to %s\" && npm i && npm run build && npm publish && git push && git push --tags"
55
- },
56
- "peerDependencies": {
57
- "@azure/msal-browser": "^4.23.0",
58
- "@azure/msal-react": "^3.0.19",
59
- "@hookform/resolvers": "^3.3.4",
60
- "axios": "^1.6.8",
61
- "bootstrap": "^5.3.5",
62
- "flexmonster": ">=2.9.107",
63
- "react": "19.x",
64
- "react-bootstrap": ">=2",
65
- "react-dom": "19.x",
66
- "react-flexmonster": ">=2.9.107",
67
- "react-hook-form": "^7.66.0",
68
- "react-icons": "^5.0.1",
69
- "react-qrcode-logo": "^3.0.0",
70
- "react-responsive": "^10.0.0",
71
- "react-router": "7.x",
72
- "tanstack-bnf-table": "^0.4.4",
73
- "zod": "^3.25.76"
74
- },
75
- "dependencies": {
76
- "@atlaskit/pragmatic-drag-and-drop": "^1.7.7",
77
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
78
- "@microsoft/signalr": "^10.0.0",
79
- "@nivo/bar": "^0.99.0",
80
- "@nivo/core": "^0.99.0",
81
- "@nivo/line": "^0.99.0",
82
- "@nivo/pie": "^0.99.0",
83
- "classnames": "^2.5.1",
84
- "date-fns": "^3.6.0",
85
- "latinize": "^2.0.0",
86
- "react-cookie": "^7.1.4",
87
- "react-hot-toast": "^2.4.1",
88
- "react-number-format": "^5.4.0",
89
- "react-portal": "^4.2.2",
90
- "react-swipeable": "^7.0.2",
91
- "use-debounce": "^10.0.6",
92
- "uuid": "^9.0.1"
93
- },
94
- "devDependencies": {
95
- "@rollup/plugin-typescript": "^11.1.6",
96
- "@types/latinize": "^0.2.18",
97
- "@types/node": "^20.11.29",
98
- "@types/react": "19.x",
99
- "@types/react-dom": "19.x",
100
- "@types/react-portal": "^4.0.7",
101
- "@types/uuid": "^9.0.8",
102
- "@typescript-eslint/eslint-plugin": "^7.3.1",
103
- "@typescript-eslint/parser": "^7.3.1",
104
- "@vitejs/plugin-react": "^4.2.1",
105
- "babel-plugin-react-compiler": "^1.0.0",
106
- "eslint": "^8.57.0",
107
- "eslint-config-airbnb": "^19.0.4",
108
- "eslint-config-airbnb-typescript": "^18.0.0",
109
- "eslint-config-prettier": "^9.1.0",
110
- "eslint-plugin-import": "^2.29.1",
111
- "eslint-plugin-jsx-a11y": "^6.8.0",
112
- "eslint-plugin-prettier": "^5.1.3",
113
- "eslint-plugin-react": "^7.34.1",
114
- "eslint-plugin-react-hook-form": "^0.3.1",
115
- "eslint-plugin-react-hooks": "^4.6.0",
116
- "eslint-plugin-react-refresh": "^0.4.6",
117
- "glob": "^11.0.3",
118
- "path": "^0.12.7",
119
- "prettier": "^3.2.5",
120
- "rollup-plugin-typescript-paths": "^1.5.0",
121
- "sass-embedded": "^1.81.0",
122
- "sass-loader": "^14.1.1",
123
- "tslib": "^2.6.2",
124
- "typescript": "^5.2.2",
125
- "vite": "^5.1.4",
126
- "vite-plugin-dts": "^3.7.3"
127
- }
128
- }
1
+ {
2
+ "name": "react-luminus-components",
3
+ "version": "2.1.3",
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
+ "lint-fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --cache --fix",
53
+ "compile": "tsc --noEmit",
54
+ "deploy": "npm version patch -m \"chore: bump version to %s\" && npm i && npm run build && npm publish && git push && git push --tags"
55
+ },
56
+ "peerDependencies": {
57
+ "@azure/msal-browser": "^4.23.0",
58
+ "@azure/msal-react": "^3.0.19",
59
+ "@hookform/resolvers": "^3.3.4",
60
+ "axios": "^1.6.8",
61
+ "bootstrap": "^5.3.5",
62
+ "flexmonster": ">=2.9.107",
63
+ "react": "19.x",
64
+ "react-bootstrap": ">=2",
65
+ "react-dom": "19.x",
66
+ "react-flexmonster": ">=2.9.107",
67
+ "react-hook-form": "^7.66.0",
68
+ "react-icons": "^5.0.1",
69
+ "react-qrcode-logo": "^3.0.0",
70
+ "react-responsive": "^10.0.0",
71
+ "react-router": "7.x",
72
+ "tanstack-bnf-table": "^0.4.4",
73
+ "zod": "^3.25.76"
74
+ },
75
+ "dependencies": {
76
+ "@atlaskit/pragmatic-drag-and-drop": "^1.7.7",
77
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
78
+ "@microsoft/signalr": "^10.0.0",
79
+ "@nivo/bar": "^0.99.0",
80
+ "@nivo/core": "^0.99.0",
81
+ "@nivo/line": "^0.99.0",
82
+ "@nivo/pie": "^0.99.0",
83
+ "classnames": "^2.5.1",
84
+ "date-fns": "^3.6.0",
85
+ "latinize": "^2.0.0",
86
+ "react-cookie": "^7.1.4",
87
+ "react-hot-toast": "^2.4.1",
88
+ "react-number-format": "^5.4.0",
89
+ "react-portal": "^4.2.2",
90
+ "react-swipeable": "^7.0.2",
91
+ "use-debounce": "^10.0.6",
92
+ "uuid": "^9.0.1"
93
+ },
94
+ "devDependencies": {
95
+ "@rollup/plugin-typescript": "^11.1.6",
96
+ "@types/latinize": "^0.2.18",
97
+ "@types/node": "^20.11.29",
98
+ "@types/react": "19.x",
99
+ "@types/react-dom": "19.x",
100
+ "@types/react-portal": "^4.0.7",
101
+ "@types/uuid": "^9.0.8",
102
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
103
+ "@typescript-eslint/parser": "^7.3.1",
104
+ "@vitejs/plugin-react": "^4.2.1",
105
+ "babel-plugin-react-compiler": "^1.0.0",
106
+ "eslint": "^8.57.0",
107
+ "eslint-config-airbnb": "^19.0.4",
108
+ "eslint-config-airbnb-typescript": "^18.0.0",
109
+ "eslint-config-prettier": "^9.1.0",
110
+ "eslint-plugin-import": "^2.29.1",
111
+ "eslint-plugin-jsx-a11y": "^6.8.0",
112
+ "eslint-plugin-prettier": "^5.1.3",
113
+ "eslint-plugin-react": "^7.34.1",
114
+ "eslint-plugin-react-hook-form": "^0.3.1",
115
+ "eslint-plugin-react-hooks": "^4.6.0",
116
+ "eslint-plugin-react-refresh": "^0.4.6",
117
+ "glob": "^11.0.3",
118
+ "path": "^0.12.7",
119
+ "prettier": "^3.2.5",
120
+ "rollup-plugin-typescript-paths": "^1.5.0",
121
+ "sass-embedded": "^1.81.0",
122
+ "sass-loader": "^14.1.1",
123
+ "tslib": "^2.6.2",
124
+ "typescript": "^5.2.2",
125
+ "vite": "^5.1.4",
126
+ "vite-plugin-dts": "^3.7.3"
127
+ }
128
+ }
@@ -1 +0,0 @@
1
- "use strict";const c=require("react/jsx-runtime"),t=require("./nivo-bar-CYwXuVs2.cjs"),d="_loading_obchl_1",m="_spinner-grow_obchl_10",_="_second_obchl_14",u="_third_obchl_17",h="_loadingBlock_obchl_21",g="_sizeLine_obchl_29",p="_sizeFill_obchl_36",r={loading:d,spinnerGrow:m,second:_,third:u,loadingBlock:h,sizeLine:g,sizeFill:p},b=()=>{const e=t.compilerRuntimeExports.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsxs("div",{className:t.classNames("luminus-loading",r.loading),children:[c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary"),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.second),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.third),role:"status"})]}),e[0]=s):s=e[0],s};function l(e,s){const n=t.toDate(e);if(isNaN(s))return t.constructFrom(e,NaN);if(!s)return n;const i=n.getDate(),o=t.constructFrom(e,n.getTime());o.setMonth(n.getMonth()+s+1,0);const a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function x(e,s){return l(e,s*12)}const N=e=>{const s=t.compilerRuntimeExports.c(3),{children:n,disabled:i}=e;let o;return s[0]!==n||s[1]!==i?(o=c.jsx(t.FormDisabledContext.Provider,{value:i,children:n}),s[0]=n,s[1]=i,s[2]=o):o=s[2],o};exports.FormDisabledProvider=N;exports.Loading=b;exports.addMonths=l;exports.addYears=x;exports.classes=r;
@@ -1 +0,0 @@
1
- "use strict";const l=(r,t,o)=>{let e=r;return t!==void 0&&(e=Math.max(e,t)),o!==void 0&&(e=Math.min(e,o)),e},n=[{key:"msal",mode:"includes"},{key:"token",mode:"exact"},{key:"user",mode:"exact"},{key:"user-delegation",mode:"exact"}],s=(r=!0)=>{const t={};for(let o=0;o<localStorage.length;o++){const e=localStorage.key(o);if(e&&!(r&&n.some(({key:a,mode:c})=>c==="includes"?e.includes(a):e===a)))try{t[e]=JSON.parse(localStorage.getItem(e))}catch{t[e]=localStorage.getItem(e)}}return t},i=r=>{try{const t=JSON.parse(r);if(typeof t!="object"||t===null)return!1;Object.entries(t).forEach(([o,e])=>{localStorage.setItem(o,JSON.stringify(e))})}catch{return!1}return localStorage.removeItem("BnfTable-SettingsMigration"),!0};exports.dumpLocalStorage=s;exports.limitNumber=l;exports.restoreLocalStorage=i;
@@ -1,48 +0,0 @@
1
- const n = (r, t, o) => {
2
- let e = r;
3
- return t !== void 0 && (e = Math.max(e, t)), o !== void 0 && (e = Math.min(e, o)), e;
4
- }, l = [{
5
- key: "msal",
6
- mode: "includes"
7
- }, {
8
- key: "token",
9
- mode: "exact"
10
- }, {
11
- key: "user",
12
- mode: "exact"
13
- }, {
14
- key: "user-delegation",
15
- mode: "exact"
16
- }], s = (r = !0) => {
17
- const t = {};
18
- for (let o = 0; o < localStorage.length; o++) {
19
- const e = localStorage.key(o);
20
- if (e && !(r && l.some(({
21
- key: a,
22
- mode: c
23
- }) => c === "includes" ? e.includes(a) : e === a)))
24
- try {
25
- t[e] = JSON.parse(localStorage.getItem(e));
26
- } catch {
27
- t[e] = localStorage.getItem(e);
28
- }
29
- }
30
- return t;
31
- }, i = (r) => {
32
- try {
33
- const t = JSON.parse(r);
34
- if (typeof t != "object" || t === null)
35
- return !1;
36
- Object.entries(t).forEach(([o, e]) => {
37
- localStorage.setItem(o, JSON.stringify(e));
38
- });
39
- } catch {
40
- return !1;
41
- }
42
- return localStorage.removeItem("BnfTable-SettingsMigration"), !0;
43
- };
44
- export {
45
- s as d,
46
- n as l,
47
- i as r
48
- };