cortex-react-ui 0.1.181 → 0.2.0

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 (222) hide show
  1. package/lib/cjs/{types/BarLoader → BarLoader}/BarLoader.d.ts +0 -1
  2. package/lib/cjs/{types/Camera → Camera}/Camera.d.ts +7 -3
  3. package/lib/{esm/types → cjs}/DatePicker/DatePicker.d.ts +1 -1
  4. package/lib/cjs/{types/DomContainer → DomContainer}/DomContainer.d.ts +1 -1
  5. package/lib/cjs/Map/App.d.ts +15 -0
  6. package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -0
  7. package/lib/cjs/Map/components/DrawTools.d.ts +16 -0
  8. package/lib/cjs/Map/components/LocationContext.d.ts +7 -0
  9. package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -0
  10. package/lib/cjs/Map/components/Maps.d.ts +19 -0
  11. package/lib/cjs/Map/config/appConfig.d.ts +4 -0
  12. package/lib/cjs/Map/config/config.d.ts +6 -0
  13. package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -0
  14. package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -0
  15. package/lib/cjs/Map/index.d.ts +1 -0
  16. package/lib/cjs/Map/models/index.d.ts +2 -0
  17. package/lib/cjs/Map/models/location.d.ts +6 -0
  18. package/lib/cjs/Map/models/locationSearch.d.ts +4 -0
  19. package/lib/cjs/Map/models/point.d.ts +6 -0
  20. package/lib/cjs/Map/utils/httpService.d.ts +16 -0
  21. package/lib/cjs/Map/utils/logger.d.ts +17 -0
  22. package/lib/cjs/Map/utils/toolkit.d.ts +129 -0
  23. package/lib/cjs/{types/Menu → Menu}/index.d.ts +1 -1
  24. package/lib/cjs/{types/Popper → Popper}/Popper.d.ts +1 -1
  25. package/lib/cjs/Scanner/Dialog.d.ts +8 -0
  26. package/lib/cjs/Scanner/DialogBody.d.ts +3 -0
  27. package/lib/cjs/Scanner/DialogMask.d.ts +3 -0
  28. package/lib/{esm/types → cjs}/Scanner/ScanConfirmationDialog.d.ts +4 -3
  29. package/lib/cjs/{types/Scanner → Scanner}/Scanner.d.ts +4 -3
  30. package/lib/{esm/types → cjs}/Transition/CSSTransition.d.ts +1 -1
  31. package/lib/cjs/{types/Transition → Transition}/Fade.d.ts +1 -1
  32. package/lib/cjs/{types/index.d.ts → index.d.ts} +8 -1
  33. package/lib/cjs/index.js +26 -14
  34. package/lib/cjs/index.js.map +1 -1
  35. package/lib/cjs/{types/utils → utils}/setRef.d.ts +1 -0
  36. package/lib/esm/{types/BarLoader → BarLoader}/BarLoader.d.ts +0 -1
  37. package/lib/esm/{types/Camera → Camera}/Camera.d.ts +7 -3
  38. package/lib/{cjs/types → esm}/DatePicker/DatePicker.d.ts +1 -1
  39. package/lib/esm/{types/DomContainer → DomContainer}/DomContainer.d.ts +1 -1
  40. package/lib/esm/Map/App.d.ts +15 -0
  41. package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -0
  42. package/lib/esm/Map/components/DrawTools.d.ts +16 -0
  43. package/lib/esm/Map/components/LocationContext.d.ts +7 -0
  44. package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -0
  45. package/lib/esm/Map/components/Maps.d.ts +19 -0
  46. package/lib/esm/Map/config/appConfig.d.ts +4 -0
  47. package/lib/esm/Map/config/config.d.ts +6 -0
  48. package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -0
  49. package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -0
  50. package/lib/esm/Map/index.d.ts +1 -0
  51. package/lib/esm/Map/models/index.d.ts +2 -0
  52. package/lib/esm/Map/models/location.d.ts +6 -0
  53. package/lib/esm/Map/models/locationSearch.d.ts +4 -0
  54. package/lib/esm/Map/models/point.d.ts +6 -0
  55. package/lib/esm/Map/utils/httpService.d.ts +16 -0
  56. package/lib/esm/Map/utils/logger.d.ts +17 -0
  57. package/lib/esm/Map/utils/toolkit.d.ts +129 -0
  58. package/lib/esm/{types/Menu → Menu}/index.d.ts +1 -1
  59. package/lib/esm/{types/Popper → Popper}/Popper.d.ts +1 -1
  60. package/lib/esm/Scanner/Dialog.d.ts +8 -0
  61. package/lib/esm/Scanner/DialogBody.d.ts +3 -0
  62. package/lib/esm/Scanner/DialogMask.d.ts +3 -0
  63. package/lib/{cjs/types → esm}/Scanner/ScanConfirmationDialog.d.ts +4 -3
  64. package/lib/esm/{types/Scanner → Scanner}/Scanner.d.ts +4 -3
  65. package/lib/{cjs/types → esm}/Transition/CSSTransition.d.ts +1 -1
  66. package/lib/esm/{types/Transition → Transition}/Fade.d.ts +1 -1
  67. package/lib/esm/{types/index.d.ts → index.d.ts} +8 -1
  68. package/lib/esm/index.js +15 -17
  69. package/lib/esm/index.js.map +1 -1
  70. package/lib/esm/{types/utils → utils}/setRef.d.ts +1 -0
  71. package/lib/images/layers-2x.png +0 -0
  72. package/lib/images/layers.png +0 -0
  73. package/lib/images/marker-icon-2x.png +0 -0
  74. package/lib/images/marker-icon.png +0 -0
  75. package/lib/images/marker-shadow.png +0 -0
  76. package/lib/index.d.ts +108 -29
  77. package/lib/styles/BarLoader/index.scss +4 -4
  78. package/lib/styles/Button/index.scss +33 -33
  79. package/lib/styles/Camera/index.css +192 -0
  80. package/lib/styles/Camera/index.scss +31 -13
  81. package/lib/styles/Dialog/index.scss +42 -42
  82. package/lib/styles/Icons/index.scss +1 -1
  83. package/lib/styles/Input/index.scss +4 -4
  84. package/lib/styles/Map/index.scss +50 -0
  85. package/lib/styles/Menu/index.scss +23 -23
  86. package/lib/styles/Popper/index.scss +4 -4
  87. package/lib/styles/Scanner/index.css +75 -0
  88. package/lib/styles/Selected/index.scss +4 -4
  89. package/lib/styles/Spinner/index.scss +10 -10
  90. package/lib/styles/TagInput/index.scss +31 -31
  91. package/lib/styles/TextField/index.scss +4 -4
  92. package/lib/styles/ToggleButton/index.scss +20 -20
  93. package/lib/styles/Tooltip/index.scss +8 -8
  94. package/lib/styles/global.scss +20 -16
  95. package/lib/styles/index.scss +32 -30
  96. package/lib/typings/typings/css.d.ts +15 -0
  97. package/package.json +41 -13
  98. package/lib/cjs/types/Scanner/Dialog.d.ts +0 -13
  99. package/lib/cjs/types/Scanner/DialogBody.d.ts +0 -3
  100. package/lib/cjs/types/Scanner/DialogMask.d.ts +0 -3
  101. package/lib/esm/types/Scanner/Dialog.d.ts +0 -13
  102. package/lib/esm/types/Scanner/DialogBody.d.ts +0 -3
  103. package/lib/esm/types/Scanner/DialogMask.d.ts +0 -3
  104. package/lib/styles/Scanner/index.scss +0 -110
  105. /package/lib/cjs/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  106. /package/lib/cjs/{types/Button → Button}/Button.d.ts +0 -0
  107. /package/lib/cjs/{types/Button → Button}/index.d.ts +0 -0
  108. /package/lib/cjs/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  109. /package/lib/cjs/{types/Camera → Camera}/index.d.ts +0 -0
  110. /package/lib/cjs/{types/Camera → Camera}/useTimer.d.ts +0 -0
  111. /package/lib/cjs/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  112. /package/lib/cjs/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  113. /package/lib/cjs/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  114. /package/lib/cjs/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  115. /package/lib/cjs/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  116. /package/lib/cjs/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  117. /package/lib/cjs/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  118. /package/lib/cjs/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  119. /package/lib/cjs/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  120. /package/lib/cjs/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  121. /package/lib/cjs/{types/Dialog → Dialog}/index.d.ts +0 -0
  122. /package/lib/cjs/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  123. /package/lib/cjs/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  124. /package/lib/cjs/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  125. /package/lib/cjs/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  126. /package/lib/cjs/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  127. /package/lib/cjs/{types/Icons → Icons}/index.d.ts +0 -0
  128. /package/lib/cjs/{types/Input → Input}/Input.d.ts +0 -0
  129. /package/lib/cjs/{types/Input → Input}/index.d.ts +0 -0
  130. /package/lib/cjs/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  131. /package/lib/cjs/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  132. /package/lib/cjs/{types/Menu → Menu}/Divider.d.ts +0 -0
  133. /package/lib/cjs/{types/Menu → Menu}/Menu.d.ts +0 -0
  134. /package/lib/cjs/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  135. /package/lib/cjs/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  136. /package/lib/cjs/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  137. /package/lib/cjs/{types/Popper → Popper}/index.d.ts +0 -0
  138. /package/lib/cjs/{types/Scanner → Scanner}/index.d.ts +0 -0
  139. /package/lib/cjs/{types/Select → Select}/Select.d.ts +0 -0
  140. /package/lib/cjs/{types/Select → Select}/index.d.ts +0 -0
  141. /package/lib/cjs/{types/Selected → Selected}/Selected.d.ts +0 -0
  142. /package/lib/cjs/{types/Selected → Selected}/index.d.ts +0 -0
  143. /package/lib/cjs/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  144. /package/lib/cjs/{types/Spinner → Spinner}/index.d.ts +0 -0
  145. /package/lib/cjs/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  146. /package/lib/cjs/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  147. /package/lib/cjs/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  148. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  149. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  150. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  151. /package/lib/cjs/{types/TagInput → TagInput}/index.d.ts +0 -0
  152. /package/lib/cjs/{types/TagInput → TagInput}/types.d.ts +0 -0
  153. /package/lib/cjs/{types/TextField → TextField}/TextField.d.ts +0 -0
  154. /package/lib/cjs/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  155. /package/lib/cjs/{types/TextField → TextField}/index.d.ts +0 -0
  156. /package/lib/cjs/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  157. /package/lib/cjs/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  158. /package/lib/cjs/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  159. /package/lib/cjs/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  160. /package/lib/cjs/{types/utils → utils}/classNames.d.ts +0 -0
  161. /package/lib/cjs/{types/utils → utils}/useClickOutside.d.ts +0 -0
  162. /package/lib/cjs/{types/utils → utils}/useElement.d.ts +0 -0
  163. /package/lib/cjs/{types/utils → utils}/useForkRef.d.ts +0 -0
  164. /package/lib/esm/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  165. /package/lib/esm/{types/Button → Button}/Button.d.ts +0 -0
  166. /package/lib/esm/{types/Button → Button}/index.d.ts +0 -0
  167. /package/lib/esm/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  168. /package/lib/esm/{types/Camera → Camera}/index.d.ts +0 -0
  169. /package/lib/esm/{types/Camera → Camera}/useTimer.d.ts +0 -0
  170. /package/lib/esm/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  171. /package/lib/esm/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  172. /package/lib/esm/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  173. /package/lib/esm/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  174. /package/lib/esm/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  175. /package/lib/esm/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  176. /package/lib/esm/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  177. /package/lib/esm/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  178. /package/lib/esm/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  179. /package/lib/esm/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  180. /package/lib/esm/{types/Dialog → Dialog}/index.d.ts +0 -0
  181. /package/lib/esm/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  182. /package/lib/esm/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  183. /package/lib/esm/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  184. /package/lib/esm/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  185. /package/lib/esm/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  186. /package/lib/esm/{types/Icons → Icons}/index.d.ts +0 -0
  187. /package/lib/esm/{types/Input → Input}/Input.d.ts +0 -0
  188. /package/lib/esm/{types/Input → Input}/index.d.ts +0 -0
  189. /package/lib/esm/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  190. /package/lib/esm/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  191. /package/lib/esm/{types/Menu → Menu}/Divider.d.ts +0 -0
  192. /package/lib/esm/{types/Menu → Menu}/Menu.d.ts +0 -0
  193. /package/lib/esm/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  194. /package/lib/esm/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  195. /package/lib/esm/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  196. /package/lib/esm/{types/Popper → Popper}/index.d.ts +0 -0
  197. /package/lib/esm/{types/Scanner → Scanner}/index.d.ts +0 -0
  198. /package/lib/esm/{types/Select → Select}/Select.d.ts +0 -0
  199. /package/lib/esm/{types/Select → Select}/index.d.ts +0 -0
  200. /package/lib/esm/{types/Selected → Selected}/Selected.d.ts +0 -0
  201. /package/lib/esm/{types/Selected → Selected}/index.d.ts +0 -0
  202. /package/lib/esm/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  203. /package/lib/esm/{types/Spinner → Spinner}/index.d.ts +0 -0
  204. /package/lib/esm/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  205. /package/lib/esm/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  206. /package/lib/esm/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  207. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  208. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  209. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  210. /package/lib/esm/{types/TagInput → TagInput}/index.d.ts +0 -0
  211. /package/lib/esm/{types/TagInput → TagInput}/types.d.ts +0 -0
  212. /package/lib/esm/{types/TextField → TextField}/TextField.d.ts +0 -0
  213. /package/lib/esm/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  214. /package/lib/esm/{types/TextField → TextField}/index.d.ts +0 -0
  215. /package/lib/esm/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  216. /package/lib/esm/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  217. /package/lib/esm/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  218. /package/lib/esm/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  219. /package/lib/esm/{types/utils → utils}/classNames.d.ts +0 -0
  220. /package/lib/esm/{types/utils → utils}/useClickOutside.d.ts +0 -0
  221. /package/lib/esm/{types/utils → utils}/useElement.d.ts +0 -0
  222. /package/lib/esm/{types/utils → utils}/useForkRef.d.ts +0 -0
@@ -1,7 +1,7 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin taginput($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: (
7
7
  line-height: 1.5,
@@ -28,26 +28,26 @@
28
28
  )
29
29
  );
30
30
 
31
- $internal-props: safe-map-merge($internal-props, $props);
32
- $internal-options: safe-map-merge($internal-options, $options);
31
+ $internal-props: global.safe-map-merge($internal-props, $props);
32
+ $internal-options: global.safe-map-merge($internal-options, $options);
33
33
 
34
34
  .ui-taginput {
35
- @if showProps($internal-options) {
35
+ @if global.showProps($internal-options) {
36
36
  display: block;
37
37
  width: 100%;
38
38
  padding: 0.375rem 0.75rem;
39
39
  font-size: 0.9375rem;
40
- line-height: get-map-deep($internal-props, "line-height");
40
+ line-height: global.get-map-deep($internal-props, "line-height");
41
41
  user-select: none;
42
42
  }
43
- @if showColors($internal-options) {
44
- background-color: get-map-deep($internal-props, "background-color");
45
- border-bottom: get-map-deep($internal-props, "border-bottom")
43
+ @if global.showColors($internal-options) {
44
+ background-color: global.get-map-deep($internal-props, "background-color");
45
+ border-bottom: global.get-map-deep($internal-props, "border-bottom")
46
46
  }
47
47
  }
48
48
 
49
49
  .ui-taginputItem {
50
- @if showProps($internal-options) {
50
+ @if global.showProps($internal-options) {
51
51
  display: inline-block;
52
52
  line-height: 1;
53
53
  text-align: center;
@@ -56,32 +56,32 @@
56
56
  border-radius: 0.25rem;
57
57
  margin: 2px;
58
58
  }
59
- @if showColors($internal-options) {
60
- border: get-map-deep($internal-props, "item.border");
61
- color: get-map-deep($internal-props, "item.color");
59
+ @if global.showColors($internal-options) {
60
+ border: global.get-map-deep($internal-props, "item.border");
61
+ color: global.get-map-deep($internal-props, "item.color");
62
62
  }
63
63
  }
64
64
 
65
65
  .ui-taginputItemLabel {
66
- @if showProps($internal-options) {
66
+ @if global.showProps($internal-options) {
67
67
  padding: 2px;
68
68
  }
69
69
  }
70
70
 
71
71
  .ui-taginputItemRemove {
72
- @if showProps($internal-options) {
72
+ @if global.showProps($internal-options) {
73
73
  appearance: none;
74
74
  border: 0;
75
75
  cursor: pointer;
76
76
  }
77
- @if showColors($internal-options) {
78
- background: get-map-deep($internal-props, "item.remove.background-color");
79
- color: get-map-deep($internal-props, "item.remove.color");
77
+ @if global.showColors($internal-options) {
78
+ background: global.get-map-deep($internal-props, "item.remove.background-color");
79
+ color: global.get-map-deep($internal-props, "item.remove.color");
80
80
  }
81
81
  }
82
82
 
83
83
  .ui-taginputFilter {
84
- @if showProps($internal-options) {
84
+ @if global.showProps($internal-options) {
85
85
  outline: none;
86
86
  border: 0;
87
87
  overflow: visible;
@@ -90,18 +90,18 @@
90
90
  }
91
91
 
92
92
  .ui-taginputSelect {
93
- @if showProps($internal-options) {
93
+ @if global.showProps($internal-options) {
94
94
  box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
95
95
  min-width: 180px;
96
96
  user-select: none;
97
97
  }
98
- @if showColors($internal-options) {
99
- background-color: get-map-deep($internal-props, "filter.background-color");
98
+ @if global.showColors($internal-options) {
99
+ background-color: global.get-map-deep($internal-props, "filter.background-color");
100
100
  }
101
101
  }
102
102
 
103
103
  .ui-taginputSelectItem {
104
- @if showProps($internal-options) {
104
+ @if global.showProps($internal-options) {
105
105
  display: block;
106
106
  white-space: nowrap;
107
107
  overflow: hidden;
@@ -109,9 +109,9 @@
109
109
  padding: 0 16px;
110
110
  cursor: pointer;
111
111
  }
112
- @if showColors($internal-options) {
113
- color: get-map-deep($internal-props, "filter.item.color");
114
- background-color: get-map-deep($internal-props, "filter.item.background-color");
112
+ @if global.showColors($internal-options) {
113
+ color: global.get-map-deep($internal-props, "filter.item.color");
114
+ background-color: global.get-map-deep($internal-props, "filter.item.background-color");
115
115
  }
116
116
  }
117
117
 
@@ -120,21 +120,21 @@
120
120
  }
121
121
 
122
122
  .ui-taginputSelectGroupLabel {
123
- @if showProps($internal-options) {
123
+ @if global.showProps($internal-options) {
124
124
  display: block;
125
125
  white-space: nowrap;
126
126
  overflow: hidden;
127
127
  line-height: 48px;
128
128
  padding: 0 16px;
129
129
  }
130
- @if showColors($internal-options) {
131
- background-color: get-map-deep($internal-props, "filter.group.background-color");
132
- color: get-map-deep($internal-props, "filter.group.color");
130
+ @if global.showColors($internal-options) {
131
+ background-color: global.get-map-deep($internal-props, "filter.group.background-color");
132
+ color: global.get-map-deep($internal-props, "filter.group.color");
133
133
  }
134
134
  }
135
135
 
136
136
  .ui-taginputSelectGroupItems {
137
- @if showProps($internal-options) {
137
+ @if global.showProps($internal-options) {
138
138
  padding-left: 10px;
139
139
  }
140
140
  }
@@ -1,14 +1,14 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin textfield($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: (
7
7
  color: blue,
8
8
  );
9
9
 
10
- $internal-props: safe-map-merge($internal-props, $props);
11
- $internal-options: safe-map-merge($internal-options, $options);
10
+ $internal-props: global.safe-map-merge($internal-props, $props);
11
+ $internal-options: global.safe-map-merge($internal-options, $options);
12
12
 
13
13
  .ui-textfield-input {
14
14
  border: none;
@@ -1,60 +1,60 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin toggleButton($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: ();
7
7
 
8
- $internal-props: safe-map-merge($internal-props, $props);
9
- $internal-options: safe-map-merge($internal-options, $options);
8
+ $internal-props: global.safe-map-merge($internal-props, $props);
9
+ $internal-options: global.safe-map-merge($internal-options, $options);
10
10
 
11
11
  .ui-toggleBtn {
12
12
  background: none;
13
13
  appearance: none;
14
- border: 1px solid $color-grey;
15
- border-radius: $border-radius-xs;
16
- font-family: $font-family;
17
- font-size: $font-size-md;
18
- color: $color-grey-darker;
19
- padding: $spacer-sm;
14
+ border: 1px solid global.$color-grey;
15
+ border-radius: global.$border-radius-xs;
16
+ font-family: global.$font-family;
17
+ font-size: global.$font-size-md;
18
+ color: global.$color-grey-darker;
19
+ padding: global.$spacer-sm;
20
20
  cursor: pointer;
21
21
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
22
22
  color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
23
23
 
24
24
  &:hover {
25
25
  text-decoration: none;
26
- background-color: rgba($color: $color-blue-grey-light, $alpha: 0.2);
26
+ background-color: rgba($color: global.$color-blue-grey-light, $alpha: 0.2);
27
27
  }
28
28
  }
29
29
 
30
30
  .ui-toggleBtn-selected {
31
- background-color: $color-blue;
32
- border-color: $color-blue;
33
- color: $color-white;
31
+ background-color: global.$color-blue;
32
+ border-color: global.$color-blue;
33
+ color: global.$color-white;
34
34
 
35
35
  &:hover {
36
36
  text-decoration: none;
37
- background-color: rgba($color: $color-blue, $alpha: 0.8);
37
+ background-color: rgba($color: global.$color-blue, $alpha: 0.8);
38
38
  }
39
39
  }
40
40
 
41
41
  .ui-toggleBtn-size-xs {
42
- font-size: $font-size-xs;
42
+ font-size: global.$font-size-xs;
43
43
  }
44
44
 
45
45
  .ui-toggleBtn-size-sm {
46
- font-size: $font-size-sm;
46
+ font-size: global.$font-size-sm;
47
47
  }
48
48
 
49
49
  .ui-toggleBtn-size-md {
50
- font-size: $font-size-md;
50
+ font-size: global.$font-size-md;
51
51
  }
52
52
 
53
53
  .ui-toggleBtn-size-lg {
54
- font-size: $font-size-lg;
54
+ font-size: global.$font-size-lg;
55
55
  }
56
56
 
57
57
  .ui-toggleBtn-size-xl {
58
- font-size: $font-size-xl;
58
+ font-size: global.$font-size-xl;
59
59
  }
60
60
  }
@@ -1,25 +1,25 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin tooltip($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: (
7
7
  bgColor: red,
8
8
  fgColor: #fff
9
9
  );
10
10
 
11
- $internal-props: safe-map-merge($internal-props, $props);
12
- $internal-options: safe-map-merge($internal-options, $options);
11
+ $internal-props: global.safe-map-merge($internal-props, $props);
12
+ $internal-options: global.safe-map-merge($internal-options, $options);
13
13
 
14
14
  .ui-tooltip-content {
15
- @if get-map-deep($internal-options, "properties") == true {
15
+ @if global.get-map-deep($internal-options, "properties") == true {
16
16
  padding: 8px;
17
17
  border-radius: 4px;
18
18
  box-shadow: 0 3px 6px rgba(#000, 0.16), 0 3px 6px rgba(#000, 0.23);
19
19
  }
20
- @if get-map-deep($internal-options, "colors") == true {
21
- background-color: get-map-deep($internal-props, "bgColor");
22
- color: get-map-deep($internal-props, "fgColor");
20
+ @if global.get-map-deep($internal-options, "colors") == true {
21
+ background-color: global.get-map-deep($internal-props, "bgColor");
22
+ color: global.get-map-deep($internal-props, "fgColor");
23
23
  }
24
24
  }
25
25
  }
@@ -1,4 +1,8 @@
1
+ @use "sass:list";
2
+ @use "sass:meta";
3
+ @use "sass:string";
1
4
  @use "sass:math";
5
+ @use "sass:map";
2
6
 
3
7
  $default-options: (
4
8
  properties: true,
@@ -41,11 +45,11 @@ $spacers: (
41
45
  4: $spacer * 1.5,
42
46
  5: $spacer * 3,
43
47
  ) !default;
44
- $spacer-xs: map-get($spacers, 1); //4px
45
- $spacer-sm: map-get($spacers, 2); //8px
46
- $spacer: map-get($spacers, 3); //16px
47
- $spacer-md: map-get($spacers, 4); //24px
48
- $spacer-lg: map-get($spacers, 5); //48px
48
+ $spacer-xs: map.get($spacers, 1); //4px
49
+ $spacer-sm: map.get($spacers, 2); //8px
50
+ $spacer: map.get($spacers, 3); //16px
51
+ $spacer-md: map.get($spacers, 4); //24px
52
+ $spacer-lg: map.get($spacers, 5); //48px
49
53
 
50
54
  // Color
51
55
  $color-white: #fff;
@@ -121,38 +125,38 @@ $color-purple-darker: #54008b;
121
125
 
122
126
  @function str-split($input-string, $separator: " ") {
123
127
  $result: ();
124
- $index: str-index($input-string, $separator);
125
- $indent: str-length($separator);
128
+ $index: string.index($input-string, $separator);
129
+ $indent: string.length($separator);
126
130
 
127
131
  @while ($index != null) {
128
- $item: str-slice($input-string, 1, $index - 1);
129
- $input-string: str-slice($input-string, $index + $indent);
130
- $index: str-index($input-string, $separator);
132
+ $item: string.slice($input-string, 1, $index - 1);
133
+ $input-string: string.slice($input-string, $index + $indent);
134
+ $index: string.index($input-string, $separator);
131
135
 
132
- @if (str-length($item) != 0) {
133
- $result: append($result, $item);
136
+ @if (string.length($item) != 0) {
137
+ $result: list.append($result, $item);
134
138
  }
135
139
  }
136
140
 
137
- $result: append($result, $input-string);
141
+ $result: list.append($result, $input-string);
138
142
 
139
143
  @return $result;
140
144
  }
141
145
 
142
146
  @function get-map-deep($map, $keys) {
143
147
  @each $key in str-split($keys, ".") {
144
- $map: map-get($map, $key);
148
+ $map: map.get($map, $key);
145
149
  }
146
150
  @return $map;
147
151
  }
148
152
 
149
153
  @function is-map($map) {
150
- @return type-of($map) == "map";
154
+ @return meta.type-of($map) == "map";
151
155
  }
152
156
 
153
157
  @function safe-map-merge($map, $map2) {
154
158
  @if is-map($map) == true and is-map($map2) == true {
155
- @return map-merge($map, $map2);
159
+ @return map.merge($map, $map2);
156
160
  }
157
161
  @return $map;
158
162
  }
@@ -1,34 +1,36 @@
1
- @import "Icons";
2
- @import "Transition";
3
- @import "Popper";
4
- @import "Tooltip";
5
- @import "Spinner";
6
- @import "TagInput";
7
- @import "Input";
8
- @import "TextField";
9
- @import "Menu";
10
- @import "Dialog";
11
- @import "Scanner";
12
- @import "Button";
13
- @import "ToggleButton";
14
- @import "Selected";
15
- @import "BarLoader";
16
- @import "Camera";
1
+ @use "Icons";
2
+ @use "Transition";
3
+ @use "Popper";
4
+ @use "Tooltip";
5
+ @use "Spinner";
6
+ @use "TagInput";
7
+ @use "Input";
8
+ @use "TextField";
9
+ @use "Menu";
10
+ @use "Dialog";
11
+ @use "Scanner";
12
+ @use "Button";
13
+ @use "ToggleButton";
14
+ @use "Selected";
15
+ @use "BarLoader";
16
+ @use "Camera";
17
+ @use "Map";
17
18
 
18
- @include icons();
19
- @include popper();
20
- @include tooltip();
21
- @include spinner();
22
- @include taginput();
23
- @include input();
24
- @include menu();
25
- @include scanner();
26
- @include dialog();
27
- @include button();
28
- @include toggleButton();
29
- @include selected();
30
- @include barLoader();
31
- @include camera();
19
+ @include Icons.icons();
20
+ @include Popper.popper();
21
+ @include Tooltip.tooltip();
22
+ @include Spinner.spinner();
23
+ @include TagInput.taginput();
24
+ @include Input.input();
25
+ @include Menu.menu();
26
+ @include Scanner.scanner();
27
+ @include Dialog.dialog();
28
+ @include Button.button();
29
+ @include ToggleButton.toggleButton();
30
+ @include Selected.selected();
31
+ @include BarLoader.barLoader();
32
+ @include Camera.camera();
33
+ @include Map.map();
32
34
 
33
35
  // @include popper();
34
36
  // @include popper(
@@ -0,0 +1,15 @@
1
+ declare module '*.css' {
2
+ const content: { [className: string]: string };
3
+ export default content;
4
+ }
5
+
6
+ declare module '*.scss' {
7
+ const content: { [className: string]: string };
8
+ export default content;
9
+ }
10
+
11
+ // Add specific CSS module declarations
12
+ declare module 'leaflet/dist/leaflet.css';
13
+ declare module 'leaflet-draw/dist/leaflet.draw.css';
14
+ declare module 'leaflet.fullscreen/Control.FullScreen.css';
15
+ declare module './css/center-active-control.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.1.181",
3
+ "version": "0.2.0",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "build": "rd /s/q \"./lib\" && yarn rollup",
19
19
  "test": "",
20
20
  "prepare": "yarn build",
21
- "storybook": "start-storybook -p 6006 -s public",
22
- "build-storybook": "build-storybook -s public",
21
+ "storybook": "storybook dev -p 6006",
22
+ "build-storybook": "storybook build",
23
23
  "rollup": "rollup -c"
24
24
  },
25
25
  "eslintConfig": {
@@ -56,22 +56,38 @@
56
56
  "react-dom": "^18.1.0"
57
57
  },
58
58
  "devDependencies": {
59
+ "@babel/core": "^7.26.0",
60
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
61
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
62
+ "@babel/preset-env": "^7.26.0",
63
+ "@babel/preset-react": "^7.26.3",
64
+ "@babel/preset-typescript": "^7.26.0",
65
+ "@chromatic-com/storybook": "3",
59
66
  "@dateam/ark": "^0.2.19",
67
+ "@mdx-js/react": "^1.6.22",
68
+ "@rollup/plugin-babel": "^6.0.4",
60
69
  "@rollup/plugin-commonjs": "^21.0.1",
61
70
  "@rollup/plugin-node-resolve": "^13.0.6",
62
71
  "@rollup/plugin-typescript": "^8.3.0",
63
- "@storybook/addon-actions": "^6.4.22",
64
- "@storybook/addon-essentials": "^6.4.22",
65
- "@storybook/addon-links": "^6.4.22",
66
- "@storybook/node-logger": "^6.4.22",
67
- "@storybook/preset-create-react-app": "^3.2.0",
72
+ "@rollup/plugin-url": "^8.0.2",
73
+ "@storybook/addon-actions": "^8.4.7",
74
+ "@storybook/addon-essentials": "^8.4.7",
75
+ "@storybook/addon-links": "^8.4.7",
76
+ "@storybook/addon-mdx-gfm": "8.4.7",
77
+ "@storybook/cli": "^8.4.7",
78
+ "@storybook/node-logger": "^8.4.7",
79
+ "@storybook/preset-create-react-app": "^8.4.7",
68
80
  "@storybook/preset-scss": "^1.0.3",
69
- "@storybook/react": "^6.4.22",
81
+ "@storybook/react": "^8.4.7",
82
+ "@storybook/react-webpack5": "8.4.7",
70
83
  "@testing-library/jest-dom": "^5.11.4",
71
84
  "@testing-library/react": "^11.1.0",
72
85
  "@testing-library/user-event": "^12.1.10",
73
86
  "@types/jest": "^26.0.15",
74
- "@types/node": "^12.0.0",
87
+ "@types/leaflet": "^1.7.10",
88
+ "@types/leaflet-draw": "^1.0.11",
89
+ "@types/leaflet.fullscreen": "^1.6.1",
90
+ "@types/node": "^22.10.5",
75
91
  "@types/react": "^17.0.0",
76
92
  "@types/react-dom": "^17.0.0",
77
93
  "@yudiel/react-qr-scanner": "^2.0.2",
@@ -81,23 +97,35 @@
81
97
  "eslint-plugin-json": "^3.1.0",
82
98
  "eslint-plugin-jsx-a11y": "^6.4.1",
83
99
  "eslint-plugin-react": "^7.26.1",
100
+ "file-loader": "^6.2.0",
101
+ "leaflet": "^1.8.0",
102
+ "leaflet-active-area": "^1.2.1",
103
+ "leaflet-draw": "^1.0.4",
104
+ "leaflet.fullscreen": "^2.4.0",
84
105
  "lodash": "^4.17.21",
85
106
  "react": "^18.1.0",
86
107
  "react-dom": "^18.1.0",
87
108
  "react-icons": "^5.3.0",
88
- "react-scripts": "^4.0.3",
109
+ "react-leaflet": "^4.0.0",
110
+ "react-leaflet-draw": "^0.20.4",
111
+ "react-scripts": "^5.0.1",
89
112
  "react-webcam": "^7.2.0",
90
113
  "rollup": "^2.60.2",
91
114
  "rollup-plugin-copy": "^3.4.0",
115
+ "rollup-plugin-css-only": "^4.5.2",
92
116
  "rollup-plugin-dts": "^4.0.1",
93
117
  "rollup-plugin-node-resolve": "^5.2.0",
118
+ "rollup-plugin-peer-deps-external": "^2.2.4",
119
+ "rollup-plugin-postcss": "^4.0.2",
94
120
  "rollup-plugin-sourcemaps": "^0.6.3",
95
121
  "rollup-plugin-terser": "^7.0.2",
96
122
  "sass": "^1.44.0",
97
123
  "sass-loader": "10.1.1",
98
- "storybook-dark-mode": "^1.0.9",
124
+ "storybook": "^8.4.7",
125
+ "storybook-dark-mode": "^4.0.2",
99
126
  "style-loader": "2.0.0",
100
- "typescript": "^4.1.2"
127
+ "typescript": "^4.1.2",
128
+ "url-loader": "^4.1.1"
101
129
  },
102
130
  "dependencies": {
103
131
  "@rollup/plugin-replace": "^5.0.2"
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare const Dialog: (props: DialogProps) => JSX.Element;
3
- export declare type DialogTitleProps = {
4
- title?: string;
5
- };
6
- export declare type DialogProps = DialogTitleProps & {
7
- open: boolean;
8
- className?: string;
9
- message?: string;
10
- confirmation?: boolean;
11
- children?: React.ReactNode;
12
- onClose?: () => void;
13
- };
@@ -1,3 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export declare const DialogBody: (props: DialogBodyProps) => JSX.Element;
3
- export declare type DialogBodyProps = HTMLAttributes<HTMLDivElement>;
@@ -1,3 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export declare const DialogMask: (props: DialogMaskProps) => JSX.Element;
3
- export declare type DialogMaskProps = HTMLAttributes<HTMLDivElement>;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare const Dialog: (props: DialogProps) => JSX.Element;
3
- export declare type DialogTitleProps = {
4
- title?: string;
5
- };
6
- export declare type DialogProps = DialogTitleProps & {
7
- open: boolean;
8
- className?: string;
9
- message?: string;
10
- confirmation?: boolean;
11
- children?: React.ReactNode;
12
- onClose?: () => void;
13
- };
@@ -1,3 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export declare const DialogBody: (props: DialogBodyProps) => JSX.Element;
3
- export declare type DialogBodyProps = HTMLAttributes<HTMLDivElement>;
@@ -1,3 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- export declare const DialogMask: (props: DialogMaskProps) => JSX.Element;
3
- export declare type DialogMaskProps = HTMLAttributes<HTMLDivElement>;