react-luminus-components 2.0.6 → 2.0.7
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/README.md +349 -349
- package/dist/.vite/manifest.json +42 -42
- package/dist/FormDisabledProvider-BLZtwahl.cjs +1 -0
- package/dist/{FormDisabledProvider-CQ3lr_vU.js → FormDisabledProvider-qhIyJB5D.js} +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +95 -95
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +44 -44
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +84 -84
- package/dist/{localStorageUtils-CZ4HDRzi.js → localStorageUtils-D2opn367.js} +2 -2
- package/dist/main.cjs.js +15 -15
- package/dist/main.es.js +10687 -10687
- package/dist/{ShortcutLinksContext-DGg3i3jj.js → nivo-bar-BkM6-FGM.js} +21433 -21429
- package/dist/nivo-bar-CMNxTtSc.cjs +285 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-AcJxAiGV.cjs +1 -0
- package/dist/{useIsFormDirty-ebfGUdgb.js → useIsFormDirty-Clr-emgm.js} +5 -5
- package/dist/useLocalStorageState-B8x3R1dU.cjs +1 -0
- package/dist/{useLocalStorageState-9W8xZxsD.js → useLocalStorageState-D-LKqvel.js} +20 -20
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +23 -23
- package/dist/variables.scss +165 -165
- package/package.json +127 -127
- package/dist/FormDisabledProvider--0DdMCBK.cjs +0 -1
- package/dist/ShortcutLinksContext-CzUA0Bw_.cjs +0 -285
- package/dist/useIsFormDirty-CLUo8jl7.cjs +0 -1
- package/dist/useLocalStorageState-nJ8QPdoa.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-luminus-components",
|
|
3
|
-
"version": "2.0.
|
|
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
|
-
"@nivo/bar": "^0.99.0",
|
|
79
|
-
"@nivo/core": "^0.99.0",
|
|
80
|
-
"@nivo/line": "^0.99.0",
|
|
81
|
-
"@nivo/pie": "^0.99.0",
|
|
82
|
-
"classnames": "^2.5.1",
|
|
83
|
-
"date-fns": "^3.6.0",
|
|
84
|
-
"latinize": "^2.0.0",
|
|
85
|
-
"react-cookie": "^7.1.4",
|
|
86
|
-
"react-hot-toast": "^2.4.1",
|
|
87
|
-
"react-number-format": "^5.4.0",
|
|
88
|
-
"react-portal": "^4.2.2",
|
|
89
|
-
"react-swipeable": "^7.0.2",
|
|
90
|
-
"use-debounce": "^10.0.6",
|
|
91
|
-
"uuid": "^9.0.1"
|
|
92
|
-
},
|
|
93
|
-
"devDependencies": {
|
|
94
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
95
|
-
"@types/latinize": "^0.2.18",
|
|
96
|
-
"@types/node": "^20.11.29",
|
|
97
|
-
"@types/react": "19.x",
|
|
98
|
-
"@types/react-dom": "19.x",
|
|
99
|
-
"@types/react-portal": "^4.0.7",
|
|
100
|
-
"@types/uuid": "^9.0.8",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
102
|
-
"@typescript-eslint/parser": "^7.3.1",
|
|
103
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
104
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
105
|
-
"eslint": "^8.57.0",
|
|
106
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
107
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
108
|
-
"eslint-config-prettier": "^9.1.0",
|
|
109
|
-
"eslint-plugin-import": "^2.29.1",
|
|
110
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
111
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
112
|
-
"eslint-plugin-react": "^7.34.1",
|
|
113
|
-
"eslint-plugin-react-hook-form": "^0.3.1",
|
|
114
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
115
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
116
|
-
"glob": "^11.0.3",
|
|
117
|
-
"path": "^0.12.7",
|
|
118
|
-
"prettier": "^3.2.5",
|
|
119
|
-
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
120
|
-
"sass-embedded": "^1.81.0",
|
|
121
|
-
"sass-loader": "^14.1.1",
|
|
122
|
-
"tslib": "^2.6.2",
|
|
123
|
-
"typescript": "^5.2.2",
|
|
124
|
-
"vite": "^5.1.4",
|
|
125
|
-
"vite-plugin-dts": "^3.7.3"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-luminus-components",
|
|
3
|
+
"version": "2.0.7",
|
|
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
|
+
"@nivo/bar": "^0.99.0",
|
|
79
|
+
"@nivo/core": "^0.99.0",
|
|
80
|
+
"@nivo/line": "^0.99.0",
|
|
81
|
+
"@nivo/pie": "^0.99.0",
|
|
82
|
+
"classnames": "^2.5.1",
|
|
83
|
+
"date-fns": "^3.6.0",
|
|
84
|
+
"latinize": "^2.0.0",
|
|
85
|
+
"react-cookie": "^7.1.4",
|
|
86
|
+
"react-hot-toast": "^2.4.1",
|
|
87
|
+
"react-number-format": "^5.4.0",
|
|
88
|
+
"react-portal": "^4.2.2",
|
|
89
|
+
"react-swipeable": "^7.0.2",
|
|
90
|
+
"use-debounce": "^10.0.6",
|
|
91
|
+
"uuid": "^9.0.1"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
95
|
+
"@types/latinize": "^0.2.18",
|
|
96
|
+
"@types/node": "^20.11.29",
|
|
97
|
+
"@types/react": "19.x",
|
|
98
|
+
"@types/react-dom": "19.x",
|
|
99
|
+
"@types/react-portal": "^4.0.7",
|
|
100
|
+
"@types/uuid": "^9.0.8",
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
102
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
103
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
104
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
105
|
+
"eslint": "^8.57.0",
|
|
106
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
107
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
108
|
+
"eslint-config-prettier": "^9.1.0",
|
|
109
|
+
"eslint-plugin-import": "^2.29.1",
|
|
110
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
111
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
112
|
+
"eslint-plugin-react": "^7.34.1",
|
|
113
|
+
"eslint-plugin-react-hook-form": "^0.3.1",
|
|
114
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
115
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
116
|
+
"glob": "^11.0.3",
|
|
117
|
+
"path": "^0.12.7",
|
|
118
|
+
"prettier": "^3.2.5",
|
|
119
|
+
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
120
|
+
"sass-embedded": "^1.81.0",
|
|
121
|
+
"sass-loader": "^14.1.1",
|
|
122
|
+
"tslib": "^2.6.2",
|
|
123
|
+
"typescript": "^5.2.2",
|
|
124
|
+
"vite": "^5.1.4",
|
|
125
|
+
"vite-plugin-dts": "^3.7.3"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),t=require("./ShortcutLinksContext-CzUA0Bw_.cjs"),d="_loading_obchl_1",m="_spinner-grow_obchl_10",u="_second_obchl_14",_="_third_obchl_17",h="_loadingBlock_obchl_21",g="_sizeLine_obchl_29",p="_sizeFill_obchl_36",r={loading:d,spinnerGrow:m,second:u,third:_,loadingBlock:h,sizeLine:g,sizeFill:p},x=()=>{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 b(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=x;exports.addMonths=l;exports.addYears=b;exports.classes=r;
|