react-luminus-components 1.3.184 → 1.3.185

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 (32) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +52 -52
  3. package/dist/Loading-C4Zoc7RU.cjs +1 -0
  4. package/dist/{Loading-B4je8S-e.js → Loading-ClfDUtqs.js} +1 -1
  5. package/dist/contexts.cjs.js +1 -1
  6. package/dist/contexts.es.js +48 -48
  7. package/dist/hooks.cjs.js +1 -1
  8. package/dist/hooks.es.js +20 -20
  9. package/dist/layout.cjs.js +1 -1
  10. package/dist/layout.es.js +8 -8
  11. package/dist/main.cjs.js +2 -2
  12. package/dist/main.es.js +2722 -2722
  13. package/dist/{ShortcutLinksContext-BwGYXGO6.cjs → nivo-bar.es-CbxxQBpL.cjs} +5 -5
  14. package/dist/{ShortcutLinksContext-BU8EEAxv.js → nivo-bar.es-dpxJHky8.js} +9972 -9974
  15. package/dist/searchUtils-CsX2wi5_.cjs +1 -0
  16. package/dist/{searchUtils-DtwPe7Fi.js → searchUtils-D3hbf2-a.js} +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/{useClipboard-DzqY3ual.js → useClipboard-B-kckvnR.js} +1 -1
  19. package/dist/useClipboard-CZ_hcUoH.cjs +1 -0
  20. package/dist/useLocalStorageState-Dk99sIDN.cjs +1 -0
  21. package/dist/{useLocalStorageState-eavHUAXf.js → useLocalStorageState-UeBFsOvS.js} +5 -5
  22. package/dist/{usePermissions-BFLauTCy.js → usePermissions-CQBhLlye.js} +3 -3
  23. package/dist/usePermissions-lUbVOzMf.cjs +1 -0
  24. package/dist/utils.cjs.js +1 -1
  25. package/dist/utils.es.js +24 -24
  26. package/dist/variables.scss +165 -165
  27. package/package.json +116 -116
  28. package/dist/Loading-CqwJLxrt.cjs +0 -1
  29. package/dist/searchUtils-D2VF4fZJ.cjs +0 -1
  30. package/dist/useClipboard-E93qAl2u.cjs +0 -1
  31. package/dist/useLocalStorageState-BPSmbE8f.cjs +0 -1
  32. package/dist/usePermissions-CV4qKyE9.cjs +0 -1
@@ -1,165 +1,165 @@
1
- @use 'sass:color';
2
- @use 'pkg:bootstrap/scss/functions' as bs-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: bs-functions.tint-color($blue, 80%) !default;
59
- $blue-200: bs-functions.tint-color($blue, 60%) !default;
60
- $blue-300: bs-functions.tint-color($blue, 40%) !default;
61
- $blue-400: bs-functions.tint-color($blue, 20%) !default;
62
- $blue-500: $blue !default;
63
- $blue-600: bs-functions.shade-color($blue, 20%) !default;
64
- $blue-700: bs-functions.shade-color($blue, 40%) !default;
65
- $blue-800: bs-functions.shade-color($blue, 60%) !default;
66
- $blue-900: bs-functions.shade-color($blue, 80%) !default;
67
- $indigo-100: bs-functions.tint-color($indigo, 80%) !default;
68
- $indigo-200: bs-functions.tint-color($indigo, 60%) !default;
69
- $indigo-300: bs-functions.tint-color($indigo, 40%) !default;
70
- $indigo-400: bs-functions.tint-color($indigo, 20%) !default;
71
- $indigo-500: $indigo !default;
72
- $indigo-600: bs-functions.shade-color($indigo, 20%) !default;
73
- $indigo-700: bs-functions.shade-color($indigo, 40%) !default;
74
- $indigo-800: bs-functions.shade-color($indigo, 60%) !default;
75
- $indigo-900: bs-functions.shade-color($indigo, 80%) !default;
76
- $purple-100: bs-functions.tint-color($purple, 80%) !default;
77
- $purple-200: bs-functions.tint-color($purple, 60%) !default;
78
- $purple-300: bs-functions.tint-color($purple, 40%) !default;
79
- $purple-400: bs-functions.tint-color($purple, 20%) !default;
80
- $purple-500: $purple !default;
81
- $purple-600: bs-functions.shade-color($purple, 20%) !default;
82
- $purple-700: bs-functions.shade-color($purple, 40%) !default;
83
- $purple-800: bs-functions.shade-color($purple, 60%) !default;
84
- $purple-900: bs-functions.shade-color($purple, 80%) !default;
85
- $pink-100: bs-functions.tint-color($pink, 80%) !default;
86
- $pink-200: bs-functions.tint-color($pink, 60%) !default;
87
- $pink-300: bs-functions.tint-color($pink, 40%) !default;
88
- $pink-400: bs-functions.tint-color($pink, 20%) !default;
89
- $pink-500: $pink !default;
90
- $pink-600: bs-functions.shade-color($pink, 20%) !default;
91
- $pink-700: bs-functions.shade-color($pink, 40%) !default;
92
- $pink-800: bs-functions.shade-color($pink, 60%) !default;
93
- $pink-900: bs-functions.shade-color($pink, 80%) !default;
94
- $red-100: bs-functions.tint-color($red, 80%) !default;
95
- $red-200: bs-functions.tint-color($red, 60%) !default;
96
- $red-300: bs-functions.tint-color($red, 40%) !default;
97
- $red-400: bs-functions.tint-color($red, 20%) !default;
98
- $red-500: $red !default;
99
- $red-600: bs-functions.shade-color($red, 20%) !default;
100
- $red-700: bs-functions.shade-color($red, 40%) !default;
101
- $red-800: bs-functions.shade-color($red, 60%) !default;
102
- $red-900: bs-functions.shade-color($red, 80%) !default;
103
- $orange-100: bs-functions.tint-color($orange, 80%) !default;
104
- $orange-200: bs-functions.tint-color($orange, 60%) !default;
105
- $orange-300: bs-functions.tint-color($orange, 40%) !default;
106
- $orange-400: bs-functions.tint-color($orange, 20%) !default;
107
- $orange-500: $orange !default;
108
- $orange-600: bs-functions.shade-color($orange, 20%) !default;
109
- $orange-700: bs-functions.shade-color($orange, 40%) !default;
110
- $orange-800: bs-functions.shade-color($orange, 60%) !default;
111
- $orange-900: bs-functions.shade-color($orange, 80%) !default;
112
- $yellow-100: bs-functions.tint-color($yellow, 80%) !default;
113
- $yellow-200: bs-functions.tint-color($yellow, 60%) !default;
114
- $yellow-300: bs-functions.tint-color($yellow, 40%) !default;
115
- $yellow-400: bs-functions.tint-color($yellow, 20%) !default;
116
- $yellow-500: $yellow !default;
117
- $yellow-600: bs-functions.shade-color($yellow, 20%) !default;
118
- $yellow-700: bs-functions.shade-color($yellow, 40%) !default;
119
- $yellow-800: bs-functions.shade-color($yellow, 60%) !default;
120
- $yellow-900: bs-functions.shade-color($yellow, 80%) !default;
121
- $green-100: bs-functions.tint-color($green, 80%) !default;
122
- $green-200: bs-functions.tint-color($green, 60%) !default;
123
- $green-300: bs-functions.tint-color($green, 40%) !default;
124
- $green-400: bs-functions.tint-color($green, 20%) !default;
125
- $green-500: $green !default;
126
- $green-600: bs-functions.shade-color($green, 20%) !default;
127
- $green-700: bs-functions.shade-color($green, 40%) !default;
128
- $green-800: bs-functions.shade-color($green, 60%) !default;
129
- $green-900: bs-functions.shade-color($green, 80%) !default;
130
- $teal-100: bs-functions.tint-color($teal, 80%) !default;
131
- $teal-200: bs-functions.tint-color($teal, 60%) !default;
132
- $teal-300: bs-functions.tint-color($teal, 40%) !default;
133
- $teal-400: bs-functions.tint-color($teal, 20%) !default;
134
- $teal-500: $teal !default;
135
- $teal-600: bs-functions.shade-color($teal, 20%) !default;
136
- $teal-700: bs-functions.shade-color($teal, 40%) !default;
137
- $teal-800: bs-functions.shade-color($teal, 60%) !default;
138
- $teal-900: bs-functions.shade-color($teal, 80%) !default;
139
- $cyan-100: bs-functions.tint-color($cyan, 80%) !default;
140
- $cyan-200: bs-functions.tint-color($cyan, 60%) !default;
141
- $cyan-300: bs-functions.tint-color($cyan, 40%) !default;
142
- $cyan-400: bs-functions.tint-color($cyan, 20%) !default;
143
- $cyan-500: $cyan !default;
144
- $cyan-600: bs-functions.shade-color($cyan, 20%) !default;
145
- $cyan-700: bs-functions.shade-color($cyan, 40%) !default;
146
- $cyan-800: bs-functions.shade-color($cyan, 60%) !default;
147
- $cyan-900: bs-functions.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;
1
+ @use 'sass:color';
2
+ @use 'pkg:bootstrap/scss/functions' as bs-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: bs-functions.tint-color($blue, 80%) !default;
59
+ $blue-200: bs-functions.tint-color($blue, 60%) !default;
60
+ $blue-300: bs-functions.tint-color($blue, 40%) !default;
61
+ $blue-400: bs-functions.tint-color($blue, 20%) !default;
62
+ $blue-500: $blue !default;
63
+ $blue-600: bs-functions.shade-color($blue, 20%) !default;
64
+ $blue-700: bs-functions.shade-color($blue, 40%) !default;
65
+ $blue-800: bs-functions.shade-color($blue, 60%) !default;
66
+ $blue-900: bs-functions.shade-color($blue, 80%) !default;
67
+ $indigo-100: bs-functions.tint-color($indigo, 80%) !default;
68
+ $indigo-200: bs-functions.tint-color($indigo, 60%) !default;
69
+ $indigo-300: bs-functions.tint-color($indigo, 40%) !default;
70
+ $indigo-400: bs-functions.tint-color($indigo, 20%) !default;
71
+ $indigo-500: $indigo !default;
72
+ $indigo-600: bs-functions.shade-color($indigo, 20%) !default;
73
+ $indigo-700: bs-functions.shade-color($indigo, 40%) !default;
74
+ $indigo-800: bs-functions.shade-color($indigo, 60%) !default;
75
+ $indigo-900: bs-functions.shade-color($indigo, 80%) !default;
76
+ $purple-100: bs-functions.tint-color($purple, 80%) !default;
77
+ $purple-200: bs-functions.tint-color($purple, 60%) !default;
78
+ $purple-300: bs-functions.tint-color($purple, 40%) !default;
79
+ $purple-400: bs-functions.tint-color($purple, 20%) !default;
80
+ $purple-500: $purple !default;
81
+ $purple-600: bs-functions.shade-color($purple, 20%) !default;
82
+ $purple-700: bs-functions.shade-color($purple, 40%) !default;
83
+ $purple-800: bs-functions.shade-color($purple, 60%) !default;
84
+ $purple-900: bs-functions.shade-color($purple, 80%) !default;
85
+ $pink-100: bs-functions.tint-color($pink, 80%) !default;
86
+ $pink-200: bs-functions.tint-color($pink, 60%) !default;
87
+ $pink-300: bs-functions.tint-color($pink, 40%) !default;
88
+ $pink-400: bs-functions.tint-color($pink, 20%) !default;
89
+ $pink-500: $pink !default;
90
+ $pink-600: bs-functions.shade-color($pink, 20%) !default;
91
+ $pink-700: bs-functions.shade-color($pink, 40%) !default;
92
+ $pink-800: bs-functions.shade-color($pink, 60%) !default;
93
+ $pink-900: bs-functions.shade-color($pink, 80%) !default;
94
+ $red-100: bs-functions.tint-color($red, 80%) !default;
95
+ $red-200: bs-functions.tint-color($red, 60%) !default;
96
+ $red-300: bs-functions.tint-color($red, 40%) !default;
97
+ $red-400: bs-functions.tint-color($red, 20%) !default;
98
+ $red-500: $red !default;
99
+ $red-600: bs-functions.shade-color($red, 20%) !default;
100
+ $red-700: bs-functions.shade-color($red, 40%) !default;
101
+ $red-800: bs-functions.shade-color($red, 60%) !default;
102
+ $red-900: bs-functions.shade-color($red, 80%) !default;
103
+ $orange-100: bs-functions.tint-color($orange, 80%) !default;
104
+ $orange-200: bs-functions.tint-color($orange, 60%) !default;
105
+ $orange-300: bs-functions.tint-color($orange, 40%) !default;
106
+ $orange-400: bs-functions.tint-color($orange, 20%) !default;
107
+ $orange-500: $orange !default;
108
+ $orange-600: bs-functions.shade-color($orange, 20%) !default;
109
+ $orange-700: bs-functions.shade-color($orange, 40%) !default;
110
+ $orange-800: bs-functions.shade-color($orange, 60%) !default;
111
+ $orange-900: bs-functions.shade-color($orange, 80%) !default;
112
+ $yellow-100: bs-functions.tint-color($yellow, 80%) !default;
113
+ $yellow-200: bs-functions.tint-color($yellow, 60%) !default;
114
+ $yellow-300: bs-functions.tint-color($yellow, 40%) !default;
115
+ $yellow-400: bs-functions.tint-color($yellow, 20%) !default;
116
+ $yellow-500: $yellow !default;
117
+ $yellow-600: bs-functions.shade-color($yellow, 20%) !default;
118
+ $yellow-700: bs-functions.shade-color($yellow, 40%) !default;
119
+ $yellow-800: bs-functions.shade-color($yellow, 60%) !default;
120
+ $yellow-900: bs-functions.shade-color($yellow, 80%) !default;
121
+ $green-100: bs-functions.tint-color($green, 80%) !default;
122
+ $green-200: bs-functions.tint-color($green, 60%) !default;
123
+ $green-300: bs-functions.tint-color($green, 40%) !default;
124
+ $green-400: bs-functions.tint-color($green, 20%) !default;
125
+ $green-500: $green !default;
126
+ $green-600: bs-functions.shade-color($green, 20%) !default;
127
+ $green-700: bs-functions.shade-color($green, 40%) !default;
128
+ $green-800: bs-functions.shade-color($green, 60%) !default;
129
+ $green-900: bs-functions.shade-color($green, 80%) !default;
130
+ $teal-100: bs-functions.tint-color($teal, 80%) !default;
131
+ $teal-200: bs-functions.tint-color($teal, 60%) !default;
132
+ $teal-300: bs-functions.tint-color($teal, 40%) !default;
133
+ $teal-400: bs-functions.tint-color($teal, 20%) !default;
134
+ $teal-500: $teal !default;
135
+ $teal-600: bs-functions.shade-color($teal, 20%) !default;
136
+ $teal-700: bs-functions.shade-color($teal, 40%) !default;
137
+ $teal-800: bs-functions.shade-color($teal, 60%) !default;
138
+ $teal-900: bs-functions.shade-color($teal, 80%) !default;
139
+ $cyan-100: bs-functions.tint-color($cyan, 80%) !default;
140
+ $cyan-200: bs-functions.tint-color($cyan, 60%) !default;
141
+ $cyan-300: bs-functions.tint-color($cyan, 40%) !default;
142
+ $cyan-400: bs-functions.tint-color($cyan, 20%) !default;
143
+ $cyan-500: $cyan !default;
144
+ $cyan-600: bs-functions.shade-color($cyan, 20%) !default;
145
+ $cyan-700: bs-functions.shade-color($cyan, 40%) !default;
146
+ $cyan-800: bs-functions.shade-color($cyan, 60%) !default;
147
+ $cyan-900: bs-functions.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.184",
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-embedded": "^1.81.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.185",
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-embedded": "^1.81.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 s=require("./ShortcutLinksContext-BwGYXGO6.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 n=require("./ShortcutLinksContext-BwGYXGO6.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"),S=require("react-router-dom"),b=require("./ShortcutLinksContext-BwGYXGO6.cjs");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const C=t=>{n.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t])},g=()=>{const[t,e]=S.useSearchParams(),r=n.useCallback((c,s)=>{t.get(c)!==s&&e(u=>(s===null&&u.delete(c),u.get(c)===s||u.set(c,s??""),u),{replace:!0})},[e,t]);return{searchParams:t,setSearch:r}},f="\0",P=(t,e,r)=>{const{searchParams:c,setSearch:s}=g(),u=n.useCallback(o=>{if(typeof o=="object"){if(r&&r==="date"||!r&&o instanceof Date){if(!(o instanceof Date))throw new Error("Tried to setQueryState of type Date to non-date.");return o.toISOString()}return JSON.stringify(o)}return o.toString()},[r]),l=n.useMemo(()=>u(e),[e,u]),m=n.useMemo(()=>c.get(t),[t,c]),h=n.useMemo(()=>{const o=m;if(o===f)return null;const i=o?Number(o):e;let a=Number.isNaN(i)?typeof e:"number";switch(a==="object"&&e instanceof Date&&(a="date"),r??a){case"number":return i;case"string":return o??e;case"boolean":return o==="true";case"object":return o?JSON.parse(o):e;case"date":return console.log(`---${o}---`),console.log(e),console.log(o?new Date(decodeURIComponent(o)):e),o?new Date(o):e;default:throw console.error(r,a),new Error(`useSearchQueryState is not implemented for type ${typeof(r??a)}.`)}},[e,m,r]),p=n.useCallback(o=>{let i;typeof o=="function"?i=o(h):i=o;const a=u(i);if(e===i||a===l){s(t,null);return}if(i===null){s(t,f);return}s(t,a)},[e,l,u,t,s,h]);return[h,p]},y=t=>{const e=n.useMemo(()=>Math.floor(Math.random()*900)+100,[]),r=n.useMemo(()=>btoa(t.toString()??""),[t]),c=n.useMemo(()=>`employeePhotos?personalNumber=${e}${r}&small=false`,[e,r]),s=n.useMemo(()=>`employeePhotos?personalNumber=${e}${r}&small=true`,[e,r]);return{photoPath:c,photoPathSm:s}},N=()=>{const{addNotification:t}=b.useNotifications(),{texts:{clipboard:e}}=n.useContext(b.LuminusComponentsContext);return{copyToClipboard:n.useCallback(async c=>{var s;try{await((s=navigator.clipboard)==null?void 0:s.writeText(c)),t(e.copySuccess(c),"prompt")}catch(u){console.error(u),t(e.copyError,"danger")}},[t,e])}};exports.useClipboard=N;exports.useEmployeePhotoPath=y;exports.useKeyPress=C;exports.useSearchQuery=g;exports.useSearchQueryState=P;
@@ -1 +0,0 @@
1
- "use strict";const g=require("./ShortcutLinksContext-BwGYXGO6.cjs"),e=require("react");require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const s={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},I=(t,{loadOnInit:r=s.loadOnInit,enabled:o=s.enabled,silent:a=s.silent,nullStateBeforeLoad:l=s.nullStateBeforeLoad,nullStateOnFail:u=s.nullStateOnFail,customApiUrl:n,customBearerToken:A,dataTransformer:d}=s)=>{const C=g.useAxios({silent:a,customToken:A,differentBaseUrl:n}),{startLoading:D,stopLoading:b}=e.useContext(g.LoadingContext),h=e.useRef(0),{isAuthenticated:q}=g.useAuth(),[p,c]=e.useState(null),S=e.useCallback(async(i,L)=>{if(q()&&o!==!1){!a&&D(`loadData-${t}-${L}`),l&&c(null);try{const f=await C.get(t,{signal:i}),x=d?d(f.data):f.data;c(x)}catch(f){throw u&&c(null),f}finally{!a&&b(`loadData-${t}-${L}`)}}},[q,o,a,D,t,l,C,d,u,b]);return e.useEffect(()=>{if(r===!1)return;const i=new AbortController;return S(i.signal,++h.current),()=>{i.abort()}},[S,r]),{data:p,setData:c,reloadData:S}},O=(t,r)=>{const o=e.useCallback(()=>{const n=localStorage.getItem(t);return n!=null&&n!=="undefined"?JSON.parse(n):r},[r,t]),[a,l]=e.useState(o);e.useEffect(()=>{localStorage.setItem(t,JSON.stringify(a))},[t,a]);const u=e.useCallback(()=>{l(o)},[o]);return[a,l,u]};exports.useGetApiData=I;exports.useLocalStorageState=O;
@@ -1 +0,0 @@
1
- "use strict";const u=require("./ShortcutLinksContext-BwGYXGO6.cjs"),i=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-hook-form");require("react-flexmonster");const c=()=>{const{user:e}=i.useContext(u.UserContext);return{checkUserHasPermissions:i.useCallback((s,n="all")=>s.length===0?!0:n==="any"?s.some(t=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(t)}):s.every(t=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(t)}),[e])}};exports.usePermissions=c;