react-luminus-components 1.3.135 → 1.3.137
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 +71 -71
- package/dist/{FullScreenContainer-BtUbOHHR.js → FullScreenContainer-Cc46PVe2.js} +1 -1
- package/dist/FullScreenContainer-QZL25nwN.cjs +1 -0
- package/dist/{Loading-BS_MQVUj.js → Loading-CA7u4kBy.js} +1 -1
- package/dist/Loading-CMt3VG4t.cjs +1 -0
- package/dist/SimpleTooltip--ds7sp_S.cjs +1 -0
- package/dist/{SimpleTooltip-Bo1bUDYT.js → SimpleTooltip-Bs5BLZ5t.js} +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +6 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/TableColumnHead/TableColumnHead.d.ts +10 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/index.d.ts +1 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +44 -44
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +13 -13
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +5 -5
- package/dist/main.cjs.js +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +3241 -3216
- package/dist/models/types/dynamicForms/types/DynamicFormColumnDef.d.ts +0 -1
- package/dist/{ResponsiveContextDropdown-CpA-ddz3.cjs → nivo-bar.es-DBTZjPsB.cjs} +5 -5
- package/dist/{ResponsiveContextDropdown-CMGnzZXE.js → nivo-bar.es-Dum3I77T.js} +9963 -9964
- package/dist/{searchUtils-CKTOvaAv.js → searchUtils-B5DzQW59.js} +1 -1
- package/dist/searchUtils-NVr-jBP1.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{useClipboard-CyEMs4Ro.js → useClipboard-BotlCgQ1.js} +1 -1
- package/dist/useClipboard-CMfba8aV.cjs +1 -0
- package/dist/useGetApiData-DP6fnE--.cjs +1 -0
- package/dist/{useGetApiData-DBqvsfTD.js → useGetApiData-DzpRmCDp.js} +6 -6
- package/dist/usePermissions-DAmFUO7q.cjs +1 -0
- package/dist/{usePermissions-CrpSQvbM.js → usePermissions-DLkjF3C2.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +18 -18
- package/dist/variables.scss +165 -171
- package/package.json +116 -116
- package/dist/FullScreenContainer-C9CIob1-.cjs +0 -1
- package/dist/Loading-lqPUxoZo.cjs +0 -1
- package/dist/SimpleTooltip-oMF7ZO-a.cjs +0 -1
- package/dist/searchUtils-DjoM0pgn.cjs +0 -1
- package/dist/useClipboard-bBn2Cnmi.cjs +0 -1
- package/dist/useGetApiData-BfcsijhI.cjs +0 -1
- package/dist/usePermissions-h3eoc7k1.cjs +0 -1
package/dist/variables.scss
CHANGED
|
@@ -1,171 +1,165 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$eon-
|
|
7
|
-
$eon-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$palette-
|
|
11
|
-
$palette-
|
|
12
|
-
$palette-
|
|
13
|
-
$palette-
|
|
14
|
-
$palette-
|
|
15
|
-
$palette-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
|
|
27
|
-
$
|
|
28
|
-
|
|
29
|
-
$
|
|
30
|
-
|
|
31
|
-
$
|
|
32
|
-
|
|
33
|
-
$
|
|
34
|
-
|
|
35
|
-
$
|
|
36
|
-
|
|
37
|
-
$
|
|
38
|
-
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
$
|
|
42
|
-
|
|
43
|
-
$
|
|
44
|
-
$gray-
|
|
45
|
-
$gray-
|
|
46
|
-
$gray-
|
|
47
|
-
$
|
|
48
|
-
$
|
|
49
|
-
$
|
|
50
|
-
$
|
|
51
|
-
$
|
|
52
|
-
$
|
|
53
|
-
$
|
|
54
|
-
$
|
|
55
|
-
$
|
|
56
|
-
$
|
|
57
|
-
$
|
|
58
|
-
$
|
|
59
|
-
$
|
|
60
|
-
$
|
|
61
|
-
$
|
|
62
|
-
$
|
|
63
|
-
$
|
|
64
|
-
$blue-
|
|
65
|
-
$blue-
|
|
66
|
-
$blue-
|
|
67
|
-
$
|
|
68
|
-
$
|
|
69
|
-
$
|
|
70
|
-
$
|
|
71
|
-
$
|
|
72
|
-
$
|
|
73
|
-
$indigo-
|
|
74
|
-
$indigo-
|
|
75
|
-
$indigo-
|
|
76
|
-
$
|
|
77
|
-
$
|
|
78
|
-
$
|
|
79
|
-
$
|
|
80
|
-
$
|
|
81
|
-
$
|
|
82
|
-
$purple-
|
|
83
|
-
$purple-
|
|
84
|
-
$purple-
|
|
85
|
-
$
|
|
86
|
-
$
|
|
87
|
-
$
|
|
88
|
-
$
|
|
89
|
-
$
|
|
90
|
-
$
|
|
91
|
-
$pink-
|
|
92
|
-
$pink-
|
|
93
|
-
$pink-
|
|
94
|
-
$
|
|
95
|
-
$
|
|
96
|
-
$
|
|
97
|
-
$
|
|
98
|
-
$
|
|
99
|
-
$
|
|
100
|
-
$red-
|
|
101
|
-
$red-
|
|
102
|
-
$red-
|
|
103
|
-
$
|
|
104
|
-
$
|
|
105
|
-
$
|
|
106
|
-
$
|
|
107
|
-
$
|
|
108
|
-
$
|
|
109
|
-
$orange-
|
|
110
|
-
$orange-
|
|
111
|
-
$orange-
|
|
112
|
-
$
|
|
113
|
-
$
|
|
114
|
-
$
|
|
115
|
-
$
|
|
116
|
-
$
|
|
117
|
-
$
|
|
118
|
-
$yellow-
|
|
119
|
-
$yellow-
|
|
120
|
-
$yellow-
|
|
121
|
-
$
|
|
122
|
-
$
|
|
123
|
-
$
|
|
124
|
-
$
|
|
125
|
-
$
|
|
126
|
-
$
|
|
127
|
-
$green-
|
|
128
|
-
$green-
|
|
129
|
-
$green-
|
|
130
|
-
$
|
|
131
|
-
$
|
|
132
|
-
$
|
|
133
|
-
$
|
|
134
|
-
$
|
|
135
|
-
$
|
|
136
|
-
$teal-
|
|
137
|
-
$teal-
|
|
138
|
-
$teal-
|
|
139
|
-
$
|
|
140
|
-
$
|
|
141
|
-
$
|
|
142
|
-
$
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
$cyan-
|
|
146
|
-
$cyan-
|
|
147
|
-
$cyan-
|
|
148
|
-
|
|
149
|
-
$
|
|
150
|
-
$
|
|
151
|
-
$
|
|
152
|
-
|
|
153
|
-
$
|
|
154
|
-
|
|
155
|
-
$
|
|
156
|
-
$
|
|
157
|
-
$
|
|
158
|
-
|
|
159
|
-
$
|
|
160
|
-
|
|
161
|
-
$box-shadow: 0
|
|
162
|
-
$box-shadow-
|
|
163
|
-
|
|
164
|
-
$
|
|
165
|
-
$
|
|
166
|
-
$box-shadow-sm-success: 0 0rem 0.4rem rgba($success, 0.3) !default;
|
|
167
|
-
$box-shadow-lg: 0 1rem 3rem rgba($black, 0.175) !default;
|
|
168
|
-
$box-shadow-inset: inset 0 0.5rem 1rem rgba($black, 0.1) !default;
|
|
169
|
-
|
|
170
|
-
$modal-backdrop-bg: black;
|
|
171
|
-
$modal-backdrop-opacity: 0.3;
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@import '../node_modules/bootstrap/scss/functions';
|
|
3
|
+
|
|
4
|
+
$enable-negative-margins: true;
|
|
5
|
+
|
|
6
|
+
$eon-red: #ea1b0a;
|
|
7
|
+
$eon-yellow: #e3e000;
|
|
8
|
+
$eon-turquoise: #1ea2b1;
|
|
9
|
+
|
|
10
|
+
$palette-turkey-red: #b00402;
|
|
11
|
+
$palette-moonstone: #56b9c5;
|
|
12
|
+
$palette-light-cyan: #c7e8eb;
|
|
13
|
+
$palette-jet: #39393a;
|
|
14
|
+
$palette-battleship-gray: #8f9192;
|
|
15
|
+
$palette-alice-blue: #ebf2f4;
|
|
16
|
+
$palette-seasalt: #f6f7f7;
|
|
17
|
+
|
|
18
|
+
$bg: #f7fbfa;
|
|
19
|
+
$bg-darker: #ebf2f4;
|
|
20
|
+
|
|
21
|
+
$accent-darker: #e9edf2;
|
|
22
|
+
|
|
23
|
+
$danger: #f4254e;
|
|
24
|
+
$danger-100: color.adjust($danger, $lightness: 40%);
|
|
25
|
+
$danger-50: color.adjust($danger, $lightness: 43%);
|
|
26
|
+
|
|
27
|
+
$success: #00b77a;
|
|
28
|
+
|
|
29
|
+
$warning: #ffb000;
|
|
30
|
+
|
|
31
|
+
$info: #38b0e5;
|
|
32
|
+
|
|
33
|
+
$border-radius: 4px;
|
|
34
|
+
$border-width: 1px;
|
|
35
|
+
$border-color: $bg-darker;
|
|
36
|
+
|
|
37
|
+
$white: #fff !default;
|
|
38
|
+
$gray-100: #f8f9fa !default;
|
|
39
|
+
$gray-200: #e9ecef !default;
|
|
40
|
+
$gray-300: #dee2e6 !default;
|
|
41
|
+
$gray-400: #ced4da !default;
|
|
42
|
+
$gray-500: #adb5bd !default;
|
|
43
|
+
$gray-600: #6c757d !default;
|
|
44
|
+
$gray-700: #495057 !default;
|
|
45
|
+
$gray-800: #343a40 !default;
|
|
46
|
+
$gray-900: #212529 !default;
|
|
47
|
+
$black: #000 !default;
|
|
48
|
+
$blue: #0d6efd !default;
|
|
49
|
+
$indigo: #6610f2 !default;
|
|
50
|
+
$purple: #6f42c1 !default;
|
|
51
|
+
$pink: #d63384 !default;
|
|
52
|
+
$red: #dc3545 !default;
|
|
53
|
+
$orange: #fd7e14 !default;
|
|
54
|
+
$yellow: #ffc107 !default;
|
|
55
|
+
$green: #198754 !default;
|
|
56
|
+
$teal: #20c997 !default;
|
|
57
|
+
$cyan: #0dcaf0 !default;
|
|
58
|
+
$blue-100: tint-color($blue, 80%) !default;
|
|
59
|
+
$blue-200: tint-color($blue, 60%) !default;
|
|
60
|
+
$blue-300: tint-color($blue, 40%) !default;
|
|
61
|
+
$blue-400: tint-color($blue, 20%) !default;
|
|
62
|
+
$blue-500: $blue !default;
|
|
63
|
+
$blue-600: shade-color($blue, 20%) !default;
|
|
64
|
+
$blue-700: shade-color($blue, 40%) !default;
|
|
65
|
+
$blue-800: shade-color($blue, 60%) !default;
|
|
66
|
+
$blue-900: shade-color($blue, 80%) !default;
|
|
67
|
+
$indigo-100: tint-color($indigo, 80%) !default;
|
|
68
|
+
$indigo-200: tint-color($indigo, 60%) !default;
|
|
69
|
+
$indigo-300: tint-color($indigo, 40%) !default;
|
|
70
|
+
$indigo-400: tint-color($indigo, 20%) !default;
|
|
71
|
+
$indigo-500: $indigo !default;
|
|
72
|
+
$indigo-600: shade-color($indigo, 20%) !default;
|
|
73
|
+
$indigo-700: shade-color($indigo, 40%) !default;
|
|
74
|
+
$indigo-800: shade-color($indigo, 60%) !default;
|
|
75
|
+
$indigo-900: shade-color($indigo, 80%) !default;
|
|
76
|
+
$purple-100: tint-color($purple, 80%) !default;
|
|
77
|
+
$purple-200: tint-color($purple, 60%) !default;
|
|
78
|
+
$purple-300: tint-color($purple, 40%) !default;
|
|
79
|
+
$purple-400: tint-color($purple, 20%) !default;
|
|
80
|
+
$purple-500: $purple !default;
|
|
81
|
+
$purple-600: shade-color($purple, 20%) !default;
|
|
82
|
+
$purple-700: shade-color($purple, 40%) !default;
|
|
83
|
+
$purple-800: shade-color($purple, 60%) !default;
|
|
84
|
+
$purple-900: shade-color($purple, 80%) !default;
|
|
85
|
+
$pink-100: tint-color($pink, 80%) !default;
|
|
86
|
+
$pink-200: tint-color($pink, 60%) !default;
|
|
87
|
+
$pink-300: tint-color($pink, 40%) !default;
|
|
88
|
+
$pink-400: tint-color($pink, 20%) !default;
|
|
89
|
+
$pink-500: $pink !default;
|
|
90
|
+
$pink-600: shade-color($pink, 20%) !default;
|
|
91
|
+
$pink-700: shade-color($pink, 40%) !default;
|
|
92
|
+
$pink-800: shade-color($pink, 60%) !default;
|
|
93
|
+
$pink-900: shade-color($pink, 80%) !default;
|
|
94
|
+
$red-100: tint-color($red, 80%) !default;
|
|
95
|
+
$red-200: tint-color($red, 60%) !default;
|
|
96
|
+
$red-300: tint-color($red, 40%) !default;
|
|
97
|
+
$red-400: tint-color($red, 20%) !default;
|
|
98
|
+
$red-500: $red !default;
|
|
99
|
+
$red-600: shade-color($red, 20%) !default;
|
|
100
|
+
$red-700: shade-color($red, 40%) !default;
|
|
101
|
+
$red-800: shade-color($red, 60%) !default;
|
|
102
|
+
$red-900: shade-color($red, 80%) !default;
|
|
103
|
+
$orange-100: tint-color($orange, 80%) !default;
|
|
104
|
+
$orange-200: tint-color($orange, 60%) !default;
|
|
105
|
+
$orange-300: tint-color($orange, 40%) !default;
|
|
106
|
+
$orange-400: tint-color($orange, 20%) !default;
|
|
107
|
+
$orange-500: $orange !default;
|
|
108
|
+
$orange-600: shade-color($orange, 20%) !default;
|
|
109
|
+
$orange-700: shade-color($orange, 40%) !default;
|
|
110
|
+
$orange-800: shade-color($orange, 60%) !default;
|
|
111
|
+
$orange-900: shade-color($orange, 80%) !default;
|
|
112
|
+
$yellow-100: tint-color($yellow, 80%) !default;
|
|
113
|
+
$yellow-200: tint-color($yellow, 60%) !default;
|
|
114
|
+
$yellow-300: tint-color($yellow, 40%) !default;
|
|
115
|
+
$yellow-400: tint-color($yellow, 20%) !default;
|
|
116
|
+
$yellow-500: $yellow !default;
|
|
117
|
+
$yellow-600: shade-color($yellow, 20%) !default;
|
|
118
|
+
$yellow-700: shade-color($yellow, 40%) !default;
|
|
119
|
+
$yellow-800: shade-color($yellow, 60%) !default;
|
|
120
|
+
$yellow-900: shade-color($yellow, 80%) !default;
|
|
121
|
+
$green-100: tint-color($green, 80%) !default;
|
|
122
|
+
$green-200: tint-color($green, 60%) !default;
|
|
123
|
+
$green-300: tint-color($green, 40%) !default;
|
|
124
|
+
$green-400: tint-color($green, 20%) !default;
|
|
125
|
+
$green-500: $green !default;
|
|
126
|
+
$green-600: shade-color($green, 20%) !default;
|
|
127
|
+
$green-700: shade-color($green, 40%) !default;
|
|
128
|
+
$green-800: shade-color($green, 60%) !default;
|
|
129
|
+
$green-900: shade-color($green, 80%) !default;
|
|
130
|
+
$teal-100: tint-color($teal, 80%) !default;
|
|
131
|
+
$teal-200: tint-color($teal, 60%) !default;
|
|
132
|
+
$teal-300: tint-color($teal, 40%) !default;
|
|
133
|
+
$teal-400: tint-color($teal, 20%) !default;
|
|
134
|
+
$teal-500: $teal !default;
|
|
135
|
+
$teal-600: shade-color($teal, 20%) !default;
|
|
136
|
+
$teal-700: shade-color($teal, 40%) !default;
|
|
137
|
+
$teal-800: shade-color($teal, 60%) !default;
|
|
138
|
+
$teal-900: shade-color($teal, 80%) !default;
|
|
139
|
+
$cyan-100: tint-color($cyan, 80%) !default;
|
|
140
|
+
$cyan-200: tint-color($cyan, 60%) !default;
|
|
141
|
+
$cyan-300: tint-color($cyan, 40%) !default;
|
|
142
|
+
$cyan-400: tint-color($cyan, 20%) !default;
|
|
143
|
+
$cyan-500: $cyan !default;
|
|
144
|
+
$cyan-600: shade-color($cyan, 20%) !default;
|
|
145
|
+
$cyan-700: shade-color($cyan, 40%) !default;
|
|
146
|
+
$cyan-800: shade-color($cyan, 60%) !default;
|
|
147
|
+
$cyan-900: shade-color($cyan, 80%) !default;
|
|
148
|
+
|
|
149
|
+
$text: #1e2832;
|
|
150
|
+
$text-muted: #8a929c;
|
|
151
|
+
$text-light: $gray-200;
|
|
152
|
+
|
|
153
|
+
$dark: $text;
|
|
154
|
+
|
|
155
|
+
$box-shadow: 0 0.5rem 1rem rgba($black, 0.15) !default;
|
|
156
|
+
$box-shadow-sm: 0rem 0rem 0.5rem rgba($black, 0.1) !default;
|
|
157
|
+
// $box-shadow-sm-primary: 0 0rem 0.4rem rgba($primary, 0.3) !default;
|
|
158
|
+
$box-shadow-sm-danger: 0 0rem 0.4rem rgba($danger, 0.3) !default;
|
|
159
|
+
$box-shadow-sm-warning: 0 0rem 0.4rem rgba($warning, 0.3) !default;
|
|
160
|
+
$box-shadow-sm-success: 0 0rem 0.4rem rgba($success, 0.3) !default;
|
|
161
|
+
$box-shadow-lg: 0 1rem 3rem rgba($black, 0.175) !default;
|
|
162
|
+
$box-shadow-inset: inset 0 0.5rem 1rem rgba($black, 0.1) !default;
|
|
163
|
+
|
|
164
|
+
$modal-backdrop-bg: black;
|
|
165
|
+
$modal-backdrop-opacity: 0.3;
|
package/package.json
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-luminus-components",
|
|
3
|
-
"version": "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
|
-
"compile": "tsc --noEmit"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@azure/msal-browser": "^3.14.0",
|
|
56
|
-
"@azure/msal-react": "^2.0.16",
|
|
57
|
-
"@hookform/resolvers": "^3.3.4",
|
|
58
|
-
"axios": "^1.6.8",
|
|
59
|
-
"bootstrap": "^5.3.3",
|
|
60
|
-
"flexmonster": "^2.9.86",
|
|
61
|
-
"react": ">=18",
|
|
62
|
-
"react-bnf-table": "^1.3.66",
|
|
63
|
-
"react-bootstrap": ">=2",
|
|
64
|
-
"react-flexmonster": "^2.9.86",
|
|
65
|
-
"react-hook-form": ">=7",
|
|
66
|
-
"react-icons": "^5.0.1",
|
|
67
|
-
"react-responsive": "^10.0.0",
|
|
68
|
-
"react-router-dom": ">=6",
|
|
69
|
-
"zod": ">=3.22.4"
|
|
70
|
-
},
|
|
71
|
-
"dependencies": {
|
|
72
|
-
"@nivo/bar": "^0.87.0",
|
|
73
|
-
"@nivo/core": "^0.87.0",
|
|
74
|
-
"@nivo/pie": "^0.87.0",
|
|
75
|
-
"classnames": "^2.5.1",
|
|
76
|
-
"date-fns": "^3.6.0",
|
|
77
|
-
"latinize": "^2.0.0",
|
|
78
|
-
"react-cookie": "^7.1.4",
|
|
79
|
-
"react-helmet-async": "^2.0.5",
|
|
80
|
-
"react-hot-toast": "^2.4.1",
|
|
81
|
-
"react-number-format": "^5.4.0",
|
|
82
|
-
"react-portal": "^4.2.2",
|
|
83
|
-
"use-debounce": "^10.0.0",
|
|
84
|
-
"uuid": "^9.0.1"
|
|
85
|
-
},
|
|
86
|
-
"devDependencies": {
|
|
87
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
88
|
-
"@types/latinize": "^0.2.18",
|
|
89
|
-
"@types/node": "^20.11.29",
|
|
90
|
-
"@types/react": "^18.2.56",
|
|
91
|
-
"@types/react-dom": "^18.2.19",
|
|
92
|
-
"@types/react-portal": "^4.0.7",
|
|
93
|
-
"@types/uuid": "^9.0.8",
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
95
|
-
"@typescript-eslint/parser": "^7.3.1",
|
|
96
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
97
|
-
"eslint": "^8.57.0",
|
|
98
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
99
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
100
|
-
"eslint-config-prettier": "^9.1.0",
|
|
101
|
-
"eslint-plugin-import": "^2.29.1",
|
|
102
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
103
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
104
|
-
"eslint-plugin-react": "^7.34.1",
|
|
105
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
106
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
107
|
-
"prettier": "^3.2.5",
|
|
108
|
-
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
109
|
-
"sass": "^1.72.0",
|
|
110
|
-
"sass-loader": "^14.1.1",
|
|
111
|
-
"tslib": "^2.6.2",
|
|
112
|
-
"typescript": "^5.2.2",
|
|
113
|
-
"vite": "^5.1.4",
|
|
114
|
-
"vite-plugin-dts": "^3.7.3"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-luminus-components",
|
|
3
|
+
"version": "1.3.137",
|
|
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
|
+
"@hookform/resolvers": "^3.3.4",
|
|
58
|
+
"axios": "^1.6.8",
|
|
59
|
+
"bootstrap": "^5.3.3",
|
|
60
|
+
"flexmonster": "^2.9.86",
|
|
61
|
+
"react": ">=18",
|
|
62
|
+
"react-bnf-table": "^1.3.66",
|
|
63
|
+
"react-bootstrap": ">=2",
|
|
64
|
+
"react-flexmonster": "^2.9.86",
|
|
65
|
+
"react-hook-form": ">=7",
|
|
66
|
+
"react-icons": "^5.0.1",
|
|
67
|
+
"react-responsive": "^10.0.0",
|
|
68
|
+
"react-router-dom": ">=6",
|
|
69
|
+
"zod": ">=3.22.4"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@nivo/bar": "^0.87.0",
|
|
73
|
+
"@nivo/core": "^0.87.0",
|
|
74
|
+
"@nivo/pie": "^0.87.0",
|
|
75
|
+
"classnames": "^2.5.1",
|
|
76
|
+
"date-fns": "^3.6.0",
|
|
77
|
+
"latinize": "^2.0.0",
|
|
78
|
+
"react-cookie": "^7.1.4",
|
|
79
|
+
"react-helmet-async": "^2.0.5",
|
|
80
|
+
"react-hot-toast": "^2.4.1",
|
|
81
|
+
"react-number-format": "^5.4.0",
|
|
82
|
+
"react-portal": "^4.2.2",
|
|
83
|
+
"use-debounce": "^10.0.0",
|
|
84
|
+
"uuid": "^9.0.1"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
88
|
+
"@types/latinize": "^0.2.18",
|
|
89
|
+
"@types/node": "^20.11.29",
|
|
90
|
+
"@types/react": "^18.2.56",
|
|
91
|
+
"@types/react-dom": "^18.2.19",
|
|
92
|
+
"@types/react-portal": "^4.0.7",
|
|
93
|
+
"@types/uuid": "^9.0.8",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
95
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
96
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
97
|
+
"eslint": "^8.57.0",
|
|
98
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
99
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
100
|
+
"eslint-config-prettier": "^9.1.0",
|
|
101
|
+
"eslint-plugin-import": "^2.29.1",
|
|
102
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
103
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
104
|
+
"eslint-plugin-react": "^7.34.1",
|
|
105
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
106
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
107
|
+
"prettier": "^3.2.5",
|
|
108
|
+
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
109
|
+
"sass": "^1.72.0",
|
|
110
|
+
"sass-loader": "^14.1.1",
|
|
111
|
+
"tslib": "^2.6.2",
|
|
112
|
+
"typescript": "^5.2.2",
|
|
113
|
+
"vite": "^5.1.4",
|
|
114
|
+
"vite-plugin-dts": "^3.7.3"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),l=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const x="_full-screen-container_1rm4r_1",f={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:x},m=({title:r,children:o,sideContent:n,sideContentWidth:c=250,noPadding:u,className:a,helmet:s})=>{const{addHelmet:t,removeHelmet:i}=l.useContext(e.HelmetContext);return l.useEffect(()=>(s?t(s):typeof r=="string"&&r&&t(r),()=>i()),[s,t,i,r]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:e.classNames("overflow-hidden luminus-full-screen-container",u?"p-0":"p-3",a,f.fullScreenContainer),style:{width:n?`calc(100% - ${c}px)`:"100%"},children:[r?e.jsxRuntimeExports.jsx(e.PageTitle,{title:r}):null,o]}),n&&e.jsxRuntimeExports.jsx(e.SideContentBar,{width:c,children:n})]})};exports.FullScreenContainer=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),r="_loading_rgybp_1",o="_spinner-grow_rgybp_10",e="_second_rgybp_14",i="_third_rgybp_17",t="_loadingBlock_rgybp_21",n={loading:r,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:o,second:e,third:i,loadingBlock:t},a=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",n.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",n.spinnerGrow,"text-primary",n.third),role:"status"})]});exports.Loading=a;exports.classes=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),r=({text:e,placement:t,children:s,delay:i})=>o.jsxRuntimeExports.jsx(o.OverlayTrigger,{placement:t,overlay:o.jsxRuntimeExports.jsx(o.Tooltip,{className:"luminus-tooltip",children:e}),delay:i,children:s});exports.SimpleTooltip=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),c=(i,r,t)=>{let e=i;return r!==void 0&&(e=Math.max(e,r)),t!==void 0&&(e=Math.min(e,t)),e},o=(i,r)=>r?i?n.latinize(i).toLowerCase().includes(n.latinize(r.toLowerCase())):!1:!0,l=(i,r)=>r?i?n.latinize(i).toLowerCase().startsWith(n.latinize(r.toLowerCase())):!1:!0,u=(i,r,t)=>{const e=t!=null&&t.trimSpaces?r==null?void 0:r.replaceAll(" ",""):r,a=t!=null&&t.trimSpaces?i==null?void 0:i.replaceAll(" ",""):i;return e?e.startsWith("*")?o(a,e.substring(1)):l(a,e):!0};exports.limitNumber=c;exports.stringContains=o;exports.stringSearchWithin=u;exports.stringStartsWith=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react"),b=require("react-router-dom"),h=require("./ResponsiveContextDropdown-CpA-ddz3.cjs");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const y=e=>{n.useEffect(()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),[e])},m=()=>{const[e,t]=b.useSearchParams(),r=n.useCallback((s,o)=>{e.get(s)!==o&&t(c=>(o===null&&c.delete(s),c.get(s)===o||c.set(s,o??""),c),{replace:!0})},[t,e]);return{searchParams:e,setSearch:r}},f=(e,t,r)=>{const{searchParams:s,setSearch:o}=m(),c=n.useMemo(()=>s.get(e),[e,s]),i=n.useMemo(()=>{const u=c,a=u?Number(u):t,l=Number.isNaN(a)?typeof t:"number";switch(r??l){case"number":return a;case"string":return u??t;case"boolean":return u==="true";case"object":return u?JSON.parse(u):t;default:throw console.error(r,l),new Error(`useSearchQueryState is not implemented for type ${typeof(r??l)}.`)}},[t,c,r]),p=n.useCallback(u=>{let a;typeof u=="function"?a=u(i):a=u,typeof a=="object"?o(e,a===null?null:JSON.stringify(a)):o(e,a===null?null:a.toString())},[e,o,i]);return[i,p]},P=e=>{const t=n.useMemo(()=>Math.floor(Math.random()*900)+100,[]),r=n.useMemo(()=>btoa(e.toString()??""),[e]),s=n.useMemo(()=>`employeePhotos?personalNumber=${t}${r}&small=false`,[t,r]),o=n.useMemo(()=>`employeePhotos?personalNumber=${t}${r}&small=true`,[t,r]);return{photoPath:s,photoPathSm:o}},S=()=>{const{addNotification:e}=h.useNotifications(),{texts:{clipboard:t}}=n.useContext(h.LuminusComponentsContext);return{copyToClipboard:n.useCallback(async s=>{var o;try{await((o=navigator.clipboard)==null?void 0:o.writeText(s)),e(t.copySuccess(s),"prompt")}catch(c){console.error(c),e(t.copyError,"danger")}},[e,t])}};exports.useClipboard=S;exports.useEmployeePhotoPath=P;exports.useKeyPress=y;exports.useSearchQuery=m;exports.useSearchQueryState=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),e=require("react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const t={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},R=(a,{loadOnInit:c=t.loadOnInit,enabled:d=t.enabled,silent:n=t.silent,nullStateBeforeLoad:f=t.nullStateBeforeLoad,nullStateOnFail:D=t.nullStateOnFail,customApiUrl:g,customBearerToken:x,dataTransformer:u}=t)=>{const q=i.useAxios({silent:n,customToken:x,differentBaseUrl:g}),{startLoading:p,stopLoading:A}=e.useContext(i.LoadingContext),h=e.useRef(0),{isAuthenticated:C}=i.useAuth(),[w,o]=e.useState(null),l=e.useCallback(async(r,b)=>{if(C()&&d!==!1){!n&&p(`loadData-${a}-${b}`),f&&o(null);try{const s=await q.get(a,{signal:r}),L=u?u(s.data):s.data;o(L)}catch(s){throw D&&o(null),s}finally{!n&&A(`loadData-${a}-${b}`)}}},[C,d,n,p,a,f,q,u,D,A]);return e.useEffect(()=>{if(c===!1)return;const r=new AbortController;return l(r.signal,++h.current),()=>{r.abort()}},[l,c]),{data:w,setData:o,reloadData:l}};exports.useGetApiData=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./ResponsiveContextDropdown-CpA-ddz3.cjs"),i=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const u=()=>{const{user:e}=i.useContext(o.UserContext);return{checkUserHasPermissions:i.useCallback((s,t="all")=>s.length===0?!0:t==="any"?s.some(n=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(n)}):s.every(n=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(n)}),[e])}};exports.usePermissions=u;
|