react-luminus-components 1.3.213 → 1.3.215
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 +52 -52
- package/dist/{Loading-DuLgnQ2I.js → Loading-BoJjAzWf.js} +1 -1
- package/dist/Loading-KVIIRls8.cjs +1 -0
- package/dist/{nivo-bar.es-DZ4VU2jA.js → ShortcutLinksContext-DzfphCu1.js} +6590 -6588
- package/dist/{nivo-bar.es-jWuvqw9Y.cjs → ShortcutLinksContext-quiVpTmR.cjs} +6 -6
- package/dist/components/Form/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
- package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +2 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +30 -30
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +33 -33
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +22 -22
- package/dist/main.cjs.js +47 -47
- package/dist/main.es.js +5639 -5638
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -0
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +1 -0
- package/dist/models/prop-types/MiniDetailComponentProps.d.ts +1 -0
- package/dist/searchUtils-B2D3GrPW.cjs +1 -0
- package/dist/{searchUtils-BsCd2hJS.js → searchUtils-CT79l-ew.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useGetApiData-2F1aGcu6.cjs +1 -0
- package/dist/{useGetApiData-D9yWD6tn.js → useGetApiData-YEm7lmsw.js} +4 -4
- package/dist/usePermissions-BUSAoqoR.js +21 -0
- package/dist/usePermissions-Bt-U0tyQ.cjs +1 -0
- package/dist/{useRenderDraggableInPortal-B7wUirq_.js → useRenderDraggableInPortal-BuERxmg5.js} +1 -1
- package/dist/useRenderDraggableInPortal-C7DO4NtL.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +19 -19
- package/dist/variables.scss +165 -165
- package/package.json +120 -120
- package/dist/Loading-BHSN3kz4.cjs +0 -1
- package/dist/searchUtils-DzNl1kFt.cjs +0 -1
- package/dist/useGetApiData-Cmn4D8m2.cjs +0 -1
- package/dist/usePermissions-D-byaRUU.cjs +0 -1
- package/dist/usePermissions-gjBM7vmg.js +0 -21
- package/dist/useRenderDraggableInPortal-D1OghDQ8.cjs +0 -1
package/dist/variables.scss
CHANGED
|
@@ -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,120 +1,120 @@
|
|
|
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-dom": ">=18",
|
|
65
|
-
"react-flexmonster": "^2.9.86",
|
|
66
|
-
"react-hook-form": ">=7",
|
|
67
|
-
"react-icons": "^5.0.1",
|
|
68
|
-
"react-responsive": "^10.0.0",
|
|
69
|
-
"react-router-dom": ">=6",
|
|
70
|
-
"zod": ">=3.22.4"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@nivo/bar": "^0.87.0",
|
|
74
|
-
"@nivo/core": "^0.87.0",
|
|
75
|
-
"@nivo/pie": "^0.87.0",
|
|
76
|
-
"classnames": "^2.5.1",
|
|
77
|
-
"date-fns": "^3.6.0",
|
|
78
|
-
"latinize": "^2.0.0",
|
|
79
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
80
|
-
"react-cookie": "^7.1.4",
|
|
81
|
-
"react-helmet-async": "^2.0.5",
|
|
82
|
-
"react-hot-toast": "^2.4.1",
|
|
83
|
-
"react-number-format": "^5.4.0",
|
|
84
|
-
"react-portal": "^4.2.2",
|
|
85
|
-
"react-swipeable": "^7.0.2",
|
|
86
|
-
"use-debounce": "^10.0.0",
|
|
87
|
-
"uuid": "^9.0.1"
|
|
88
|
-
},
|
|
89
|
-
"devDependencies": {
|
|
90
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
91
|
-
"@types/latinize": "^0.2.18",
|
|
92
|
-
"@types/node": "^20.11.29",
|
|
93
|
-
"@types/react": "^18.2.56",
|
|
94
|
-
"@types/react-beautiful-dnd": "^13.1.8",
|
|
95
|
-
"@types/react-dom": "^18.2.19",
|
|
96
|
-
"@types/react-portal": "^4.0.7",
|
|
97
|
-
"@types/uuid": "^9.0.8",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
99
|
-
"@typescript-eslint/parser": "^7.3.1",
|
|
100
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
101
|
-
"eslint": "^8.57.0",
|
|
102
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
103
|
-
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
104
|
-
"eslint-config-prettier": "^9.1.0",
|
|
105
|
-
"eslint-plugin-import": "^2.29.1",
|
|
106
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
107
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
108
|
-
"eslint-plugin-react": "^7.34.1",
|
|
109
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
110
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
111
|
-
"prettier": "^3.2.5",
|
|
112
|
-
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
113
|
-
"sass-embedded": "^1.81.0",
|
|
114
|
-
"sass-loader": "^14.1.1",
|
|
115
|
-
"tslib": "^2.6.2",
|
|
116
|
-
"typescript": "^5.2.2",
|
|
117
|
-
"vite": "^5.1.4",
|
|
118
|
-
"vite-plugin-dts": "^3.7.3"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-luminus-components",
|
|
3
|
+
"version": "1.3.215",
|
|
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-dom": ">=18",
|
|
65
|
+
"react-flexmonster": "^2.9.86",
|
|
66
|
+
"react-hook-form": ">=7",
|
|
67
|
+
"react-icons": "^5.0.1",
|
|
68
|
+
"react-responsive": "^10.0.0",
|
|
69
|
+
"react-router-dom": ">=6",
|
|
70
|
+
"zod": ">=3.22.4"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@nivo/bar": "^0.87.0",
|
|
74
|
+
"@nivo/core": "^0.87.0",
|
|
75
|
+
"@nivo/pie": "^0.87.0",
|
|
76
|
+
"classnames": "^2.5.1",
|
|
77
|
+
"date-fns": "^3.6.0",
|
|
78
|
+
"latinize": "^2.0.0",
|
|
79
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
80
|
+
"react-cookie": "^7.1.4",
|
|
81
|
+
"react-helmet-async": "^2.0.5",
|
|
82
|
+
"react-hot-toast": "^2.4.1",
|
|
83
|
+
"react-number-format": "^5.4.0",
|
|
84
|
+
"react-portal": "^4.2.2",
|
|
85
|
+
"react-swipeable": "^7.0.2",
|
|
86
|
+
"use-debounce": "^10.0.0",
|
|
87
|
+
"uuid": "^9.0.1"
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
91
|
+
"@types/latinize": "^0.2.18",
|
|
92
|
+
"@types/node": "^20.11.29",
|
|
93
|
+
"@types/react": "^18.2.56",
|
|
94
|
+
"@types/react-beautiful-dnd": "^13.1.8",
|
|
95
|
+
"@types/react-dom": "^18.2.19",
|
|
96
|
+
"@types/react-portal": "^4.0.7",
|
|
97
|
+
"@types/uuid": "^9.0.8",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
99
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
100
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
101
|
+
"eslint": "^8.57.0",
|
|
102
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
103
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
104
|
+
"eslint-config-prettier": "^9.1.0",
|
|
105
|
+
"eslint-plugin-import": "^2.29.1",
|
|
106
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
107
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
108
|
+
"eslint-plugin-react": "^7.34.1",
|
|
109
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
110
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
111
|
+
"prettier": "^3.2.5",
|
|
112
|
+
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
113
|
+
"sass-embedded": "^1.81.0",
|
|
114
|
+
"sass-loader": "^14.1.1",
|
|
115
|
+
"tslib": "^2.6.2",
|
|
116
|
+
"typescript": "^5.2.2",
|
|
117
|
+
"vite": "^5.1.4",
|
|
118
|
+
"vite-plugin-dts": "^3.7.3"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./nivo-bar.es-jWuvqw9Y.cjs"),o="_loading_obchl_1",i="_spinner-grow_obchl_10",e="_second_obchl_14",r="_third_obchl_17",l="_loadingBlock_obchl_21",c="_sizeLine_obchl_29",t="_sizeFill_obchl_36",n={loading:o,"spinner-grow":"_spinner-grow_obchl_10",spinnerGrow:i,second:e,third:r,loadingBlock:l,sizeLine:c,sizeFill: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("./nivo-bar.es-jWuvqw9Y.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 i=require("./nivo-bar.es-jWuvqw9Y.cjs"),e=require("react");require("react-router-dom");require("react-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},w=(a,{loadOnInit:c=t.loadOnInit,enabled:f=t.enabled,silent:n=t.silent,nullStateBeforeLoad:d=t.nullStateBeforeLoad,nullStateOnFail:q=t.nullStateOnFail,customApiUrl:h,customBearerToken:p,dataTransformer:u}=t)=>{const D=i.useAxios({silent:n,customToken:p,differentBaseUrl:h}),{startLoading:A,stopLoading:b}=e.useContext(i.LoadingContext),x=e.useRef(0),{isAuthenticated:g}=i.useAuth(),[L,r]=e.useState(null),l=e.useCallback(async(o,C)=>{if(g()&&f!==!1){!n&&A(`loadData-${a}-${C}`),d&&r(null);try{const s=await D.get(a,{signal:o}),$=u?u(s.data):s.data;r($)}catch(s){throw q&&r(null),s}finally{!n&&b(`loadData-${a}-${C}`)}}},[g,f,n,A,a,d,D,u,q,b]);return e.useEffect(()=>{if(c===!1)return;const o=new AbortController;return l(o.signal,++x.current),()=>{o.abort()}},[l,c]),{data:L,setData:r,reloadData:l}};exports.useGetApiData=w;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./nivo-bar.es-jWuvqw9Y.cjs"),n=require("react");require("react-router-dom");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");require("react-hook-form");require("react-flexmonster");const c=()=>{const{user:e}=n.useContext(u.UserContext);return{checkUserHasPermissions:n.useCallback((s,t="all")=>s.length===0?!0:t==="any"?s.some(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}):s.every(i=>{var r;return(r=e==null?void 0:e.permissions)==null?void 0:r.includes(i)}),[e])}};exports.usePermissions=c;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { as as i } from "./nivo-bar.es-DZ4VU2jA.js";
|
|
2
|
-
import { useContext as n, useCallback as m } from "react";
|
|
3
|
-
import "react-router-dom";
|
|
4
|
-
import "@azure/msal-browser";
|
|
5
|
-
import "@azure/msal-react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "react-hook-form";
|
|
8
|
-
import "react-flexmonster";
|
|
9
|
-
const C = () => {
|
|
10
|
-
const { user: r } = n(i);
|
|
11
|
-
return { checkUserHasPermissions: m((e, o = "all") => e.length === 0 ? !0 : o === "any" ? e.some((t) => {
|
|
12
|
-
var s;
|
|
13
|
-
return (s = r == null ? void 0 : r.permissions) == null ? void 0 : s.includes(t);
|
|
14
|
-
}) : e.every((t) => {
|
|
15
|
-
var s;
|
|
16
|
-
return (s = r == null ? void 0 : r.permissions) == null ? void 0 : s.includes(t);
|
|
17
|
-
}), [r]) };
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
C as u
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react"),p=require("react-router-dom"),b=require("./nivo-bar.es-jWuvqw9Y.cjs");require("@azure/msal-browser");require("@azure/msal-react");const y=require("react-dom");require("react-hook-form");require("react-flexmonster");const P=t=>{s.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t])},g=()=>{const[t,e]=p.useSearchParams(),r=s.useCallback((c,n)=>{t.get(c)!==n&&e(u=>(n===null&&u.delete(c),u.get(c)===n||u.set(c,n??""),u),{replace:!0})},[e,t]);return{searchParams:t,setSearch:r}},f="\0",C=(t,e,r)=>{const{searchParams:c,setSearch:n}=g(),u=s.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=s.useMemo(()=>u(e),[e,u]),m=s.useMemo(()=>c.get(t),[t,c]),h=s.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]),d=s.useCallback(o=>{let i;typeof o=="function"?i=o(h):i=o;const a=u(i);if(e===i||a===l){n(t,null);return}if(i===null){n(t,f);return}n(t,a)},[e,l,u,t,n,h]);return[h,d]},S=t=>{const e=s.useMemo(()=>Math.floor(Math.random()*900)+100,[]),r=s.useMemo(()=>btoa(t.toString()??""),[t]),c=s.useMemo(()=>`employeePhotos?personalNumber=${e}${r}&small=false`,[e,r]),n=s.useMemo(()=>`employeePhotos?personalNumber=${e}${r}&small=true`,[e,r]);return{photoPath:c,photoPathSm:n}},E=()=>{const{addNotification:t}=b.useNotifications(),{texts:{clipboard:e}}=s.useContext(b.LuminusComponentsContext);return{copyToClipboard:s.useCallback(async c=>{var n;try{await((n=navigator.clipboard)==null?void 0:n.writeText(c)),t(e.copySuccess(c),"prompt")}catch(u){console.error(u),t(e.copyError,"danger")}},[t,e])}},N=()=>{const t=s.useRef({}).current;return s.useEffect(()=>{const e=document.createElement("div");return e.style.position="absolute",e.style.pointerEvents="none",e.style.top="0",e.style.width="100%",e.style.height="100%",t.elt=e,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[t]),e=>(r,...c)=>{const n=e(r,...c);return r.draggableProps.style.position==="fixed"?y.createPortal(n,t.elt):n}};exports.useClipboard=E;exports.useEmployeePhotoPath=S;exports.useKeyPress=P;exports.useRenderDraggableInPortal=N;exports.useSearchQuery=g;exports.useSearchQueryState=C;
|