hrm_ui_lib 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (240) hide show
  1. package/{Alert-w8FkRd9I.js → Alert--0rz5XL1.js} +22 -14
  2. package/assets/images/under-construction.svg +9 -0
  3. package/assets/styles/styles.css +4459 -4533
  4. package/assets/styles/styles.scss +1 -3
  5. package/components/Alert/Alert.js +12 -10
  6. package/components/Alert/index.js +6 -4
  7. package/components/Avatar/Avatar.js +7 -5
  8. package/components/Avatar/AvatarGroup.js +6 -4
  9. package/components/Avatar/index.js +6 -4
  10. package/components/BadgeV2/BadgeV2.d.ts +2 -2
  11. package/components/BadgeV2/BadgeV2.js +20 -8
  12. package/components/BadgeV2/types.d.ts +5 -2
  13. package/components/Button/Button.js +6 -4
  14. package/components/Button/index.js +6 -4
  15. package/components/ButtonGroup/ButtonGroup.d.ts +2 -0
  16. package/components/ButtonGroup/ButtonGroup.js +46 -0
  17. package/components/ButtonGroup/ButtonGroupItem.d.ts +2 -0
  18. package/components/ButtonGroup/ButtonGroupItem.js +52 -0
  19. package/components/ButtonGroup/consts.d.ts +8 -0
  20. package/components/ButtonGroup/consts.js +12 -0
  21. package/components/ButtonGroup/index.d.ts +1 -0
  22. package/components/ButtonGroup/index.js +10 -0
  23. package/components/ButtonGroup/types.d.ts +23 -0
  24. package/components/ButtonGroup/types.js +1 -0
  25. package/components/Card/Card.d.ts +5 -2
  26. package/components/Card/Card.js +58 -7
  27. package/components/Card/CardComponent/Card.js +4 -3
  28. package/components/Card/CardComponent/CardBody.d.ts +1 -1
  29. package/components/Card/CardComponent/CardBody.js +5 -5
  30. package/components/Card/CardComponent/CardFooter.d.ts +4 -0
  31. package/components/Card/CardComponent/CardFooter.js +13 -0
  32. package/components/Card/CardComponent/CardHead.js +67 -5
  33. package/components/Card/index.js +48 -2
  34. package/components/Card/types.d.ts +3 -0
  35. package/components/CardGroup/CardGroup.d.ts +10 -0
  36. package/components/CardGroup/CardGroup.js +27 -0
  37. package/components/CardGroup/CardGroupComponent/CardBody.d.ts +4 -0
  38. package/components/CardGroup/CardGroupComponent/CardBody.js +19 -0
  39. package/components/CardGroup/CardGroupComponent/CardGroup.d.ts +4 -0
  40. package/components/CardGroup/CardGroupComponent/CardGroup.js +28 -0
  41. package/components/CardGroup/CardGroupComponent/CardHead.d.ts +4 -0
  42. package/components/CardGroup/CardGroupComponent/CardHead.js +19 -0
  43. package/components/CardGroup/CardGroupContext.d.ts +6 -0
  44. package/components/CardGroup/CardGroupContext.js +8 -0
  45. package/components/CardGroup/index.d.ts +1 -0
  46. package/components/CardGroup/index.js +11 -0
  47. package/components/CardGroup/types.d.ts +14 -0
  48. package/components/CardGroup/types.js +1 -0
  49. package/components/Checkbox/Checkbox.js +11 -9
  50. package/components/Checkbox/index.js +6 -4
  51. package/components/Checkbox/types.d.ts +1 -0
  52. package/components/Collapse/Collapse/Collapse.js +2 -2
  53. package/components/Collapse/CollapseGroup/CollapseGroup.js +1 -1
  54. package/components/Collapse/CollapseItem/CollapseItem.js +1 -1
  55. package/components/Collapse/index.js +1 -1
  56. package/components/Collapse/types.d.ts +1 -1
  57. package/components/Copy/Copy.js +6 -4
  58. package/components/Copy/index.js +6 -4
  59. package/components/Counter/Counter.js +6 -4
  60. package/components/Counter/index.js +6 -4
  61. package/components/DatePicker/CustomHeader/CustomHeader.js +7 -5
  62. package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +12 -4
  63. package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +12 -4
  64. package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +12 -4
  65. package/components/DatePicker/RangeDatePicker/index.js +12 -4
  66. package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +12 -4
  67. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +12 -4
  68. package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +12 -4
  69. package/components/DatePicker/SimpleDatePicker/index.js +12 -4
  70. package/components/DatePicker/TimePicker/MobileModalContent.js +7 -4
  71. package/components/DatePicker/TimePicker/TimePicker.js +14 -5
  72. package/components/DatePicker/TimePicker/TimePickerDesktop.js +13 -7
  73. package/components/DatePicker/TimePicker/TimePickerMobile.js +8 -5
  74. package/components/DatePicker/TimePicker/index.js +14 -5
  75. package/components/DatePicker/hooks.js +8 -2139
  76. package/components/DatePicker/index.js +14 -5
  77. package/components/Divider/Divider.js +6 -3
  78. package/components/Divider/types.d.ts +1 -0
  79. package/components/Empty/Empty.js +6 -4
  80. package/components/Empty/index.js +6 -4
  81. package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +6 -4
  82. package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +6 -4
  83. package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +14 -12
  84. package/components/FileUpload/DropzoneFileUpload/helpers.js +6 -4
  85. package/components/FileUpload/DropzoneFileUpload/index.js +6 -4
  86. package/components/FileUpload/FileUpload.js +7 -5
  87. package/components/FileUpload/UploadItems.js +7 -5
  88. package/components/FileUpload/index.js +7 -5
  89. package/components/FormContainer/FormContainer.js +22 -12
  90. package/components/FormContainer/index.js +7 -5
  91. package/components/FormContainer/types.d.ts +1 -0
  92. package/components/FormField/FormField.js +6 -4
  93. package/components/FormField/index.js +7 -5
  94. package/components/IconDynamicComponent/IconDynamicComponent.d.ts +8 -0
  95. package/components/IconDynamicComponent/IconDynamicComponent.js +39 -0
  96. package/{helperComponents → components}/IconDynamicComponent/index.js +1 -1
  97. package/components/Input/Input.js +6 -4
  98. package/components/Input/index.js +6 -4
  99. package/components/Menu/Menu.js +7 -5
  100. package/components/Menu/NestedMenu.js +7 -5
  101. package/components/Menu/index.js +7 -5
  102. package/components/Modal/Modal.js +6 -4
  103. package/components/Modal/ModalConfirmation.js +6 -4
  104. package/components/Modal/ModalContent.js +6 -4
  105. package/components/Modal/index.js +6 -4
  106. package/components/More/More.js +6 -4
  107. package/components/More/index.js +6 -4
  108. package/components/Popover/Popover.js +6 -4
  109. package/components/Popover/PopoverDesktop.js +1 -1
  110. package/components/Popover/PopoverMobile.js +6 -4
  111. package/components/Popover/index.js +6 -4
  112. package/components/Popover/types.d.ts +2 -1
  113. package/components/Radio/RadioGroup.js +7 -5
  114. package/components/Radio/index.js +7 -5
  115. package/components/SVGIcons/IconAirplaneTakeOff.d.ts +4 -0
  116. package/components/SVGIcons/IconAirplaneTakeOff.js +29 -0
  117. package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +4 -0
  118. package/components/SVGIcons/IconAirplaneTakeOffFilled.js +29 -0
  119. package/components/SVGIcons/IconChartPerson.d.ts +4 -0
  120. package/components/SVGIcons/IconChartPerson.js +29 -0
  121. package/components/SVGIcons/IconChartPersonFilled.d.ts +4 -0
  122. package/components/SVGIcons/IconChartPersonFilled.js +29 -0
  123. package/components/SVGIcons/IconFastAcceleration.d.ts +4 -0
  124. package/components/SVGIcons/IconFastAcceleration.js +29 -0
  125. package/components/SVGIcons/IconFastAccelerationFilled.d.ts +4 -0
  126. package/components/SVGIcons/IconFastAccelerationFilled.js +29 -0
  127. package/components/SVGIcons/IconFeed.d.ts +4 -0
  128. package/components/SVGIcons/IconFeed.js +29 -0
  129. package/components/SVGIcons/IconFeedFilled.d.ts +4 -0
  130. package/components/SVGIcons/IconFeedFilled.js +29 -0
  131. package/components/SVGIcons/IconLibrary.d.ts +4 -0
  132. package/components/SVGIcons/IconLibrary.js +29 -0
  133. package/components/SVGIcons/IconLibraryFilled.d.ts +4 -0
  134. package/components/SVGIcons/IconLibraryFilled.js +29 -0
  135. package/components/SVGIcons/IconPeopleList.d.ts +4 -0
  136. package/components/SVGIcons/IconPeopleList.js +29 -0
  137. package/components/SVGIcons/IconPeopleListFilled.d.ts +4 -0
  138. package/components/SVGIcons/IconPeopleListFilled.js +29 -0
  139. package/components/SVGIcons/IconPeopleTeam.d.ts +4 -0
  140. package/components/SVGIcons/IconPeopleTeam.js +29 -0
  141. package/components/SVGIcons/IconPeopleTeamFilled.d.ts +4 -0
  142. package/components/SVGIcons/IconPeopleTeamFilled.js +29 -0
  143. package/components/SVGIcons/IconTrophy.d.ts +4 -0
  144. package/components/SVGIcons/IconTrophy.js +29 -0
  145. package/components/SVGIcons/IconTrophyFilled.d.ts +4 -0
  146. package/components/SVGIcons/IconTrophyFilled.js +29 -0
  147. package/components/SVGIcons/IconUs.d.ts +4 -0
  148. package/components/SVGIcons/IconUs.js +72 -0
  149. package/components/SVGIcons/icon-names.d.ts +2 -0
  150. package/components/SVGIcons/icon-names.js +3 -0
  151. package/components/SVGIcons/index.d.ts +19 -2
  152. package/components/SVGIcons/index.js +19 -2
  153. package/components/Select/ButtonSelect/ButtonSelect.js +7 -5
  154. package/components/Select/FilterSelect/FilterDropdown.js +7 -5
  155. package/components/Select/FilterSelect/FilterGroupDropdown.js +6 -4
  156. package/components/Select/FilterSelect/FilterSelect.js +6 -4
  157. package/components/Select/MultiSelect/MobileWrapper.js +6 -4
  158. package/components/Select/MultiSelect/MultiBase/MultiBase.js +7 -5
  159. package/components/Select/MultiSelect/MultiSelect.js +6 -4
  160. package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -5
  161. package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -5
  162. package/components/Select/MultiSelect/OptionsWrapper.js +6 -4
  163. package/components/Select/NestedSelect/NestedSelect.js +7 -5
  164. package/components/Select/Select/Select.js +6 -4
  165. package/components/Select/Select/SelectDesktop/index.js +7 -5
  166. package/components/Select/Select/SelectMobile/MobileTopContent.js +6 -4
  167. package/components/Select/Select/SelectMobile/index.js +7 -5
  168. package/components/Select/SharedComponents/Actions.js +7 -5
  169. package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +8 -6
  170. package/components/Select/SharedComponents/ContentTop.js +6 -4
  171. package/components/Select/SharedComponents/Footer.js +6 -4
  172. package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +6 -4
  173. package/components/Select/SharedComponents/index.js +6 -4
  174. package/components/Select/index.js +6 -4
  175. package/components/SideSheet/Footer/Footer.js +6 -4
  176. package/components/SideSheet/SideSheet.js +6 -4
  177. package/components/SideSheet/index.js +6 -4
  178. package/components/Snackbar/Snackbar.js +14 -12
  179. package/components/Snackbar/index.js +6 -4
  180. package/components/Switcher/Switcher.js +27 -19
  181. package/components/Switcher/index.js +7 -6
  182. package/components/Switcher/types.d.ts +2 -0
  183. package/components/Tab/Tab.js +4 -2
  184. package/components/Table/Header.d.ts +2 -1
  185. package/components/Table/Header.js +19 -8
  186. package/components/Table/IndeterminateCheckbox.d.ts +1 -0
  187. package/components/Table/IndeterminateCheckbox.js +12 -6
  188. package/components/Table/Row.d.ts +2 -1
  189. package/components/Table/Row.js +24 -9
  190. package/components/Table/Table.d.ts +1 -1
  191. package/components/Table/Table.js +60 -17
  192. package/components/Table/index.js +8 -4
  193. package/components/Table/localization.d.ts +5 -0
  194. package/components/Table/localization.js +13 -0
  195. package/components/Table/types.d.ts +6 -0
  196. package/components/Table/utils.js +36 -8
  197. package/components/TableV2/AdvancedPagination.js +9 -7
  198. package/components/TableV2/ColumnSettings.js +8 -6
  199. package/components/TableV2/IndeterminateCheckbox.js +6 -4
  200. package/components/TableV2/Table.js +7 -4
  201. package/components/TableV2/hooks/useTableControl.js +20 -15
  202. package/components/TableV2/index.js +8 -5
  203. package/components/Text/types.d.ts +1 -1
  204. package/components/Textarea/Textarea.js +6 -4
  205. package/components/Textarea/index.js +6 -4
  206. package/components/Tooltip/types.d.ts +0 -1
  207. package/components/UnderConstruction/UnderConstruction.d.ts +3 -0
  208. package/components/UnderConstruction/UnderConstruction.js +38 -0
  209. package/components/UnderConstruction/index.d.ts +1 -0
  210. package/components/UnderConstruction/index.js +8 -0
  211. package/components/UnderConstruction/localization.d.ts +4 -0
  212. package/components/UnderConstruction/localization.js +16 -0
  213. package/components/UnderConstruction/types.d.ts +12 -0
  214. package/components/UnderConstruction/types.js +1 -0
  215. package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +1 -1
  216. package/helperComponents/AnimatePresenceWrapper/index.js +1 -1
  217. package/helperComponents/CodeBlock/CodeBlock.js +1 -154
  218. package/helperComponents/CodeBlock/index.js +1 -0
  219. package/helperComponents/ErrorMessage/ErrorMessage.js +2 -2
  220. package/helperComponents/ErrorMessage/index.js +2 -2
  221. package/helperComponents/GoToWebPage/GoToWebPage.js +6 -4
  222. package/helperComponents/OptionItem/OptionItem.js +7 -5
  223. package/helperComponents/OptionItem/index.js +6 -4
  224. package/helperComponents/index.d.ts +0 -1
  225. package/helperComponents/index.js +7 -5
  226. package/helpers/check-authorization.js +8 -6
  227. package/helpers/format-date.js +1 -22
  228. package/helpers/index.js +6 -4
  229. package/hooks/useHideOnScroll.d.ts +1 -1
  230. package/hooks/useHideOnScroll.js +5 -4
  231. package/i18n.d.ts +4 -0
  232. package/i18n.js +50 -0
  233. package/index.d.ts +3 -0
  234. package/index.js +46 -7
  235. package/package.json +6 -5
  236. package/helperComponents/IconDynamicComponent/IconDynamicComponent.d.ts +0 -9
  237. package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +0 -26
  238. package/helperComponents/IconDynamicComponent/constants.d.ts +0 -3
  239. package/helperComponents/IconDynamicComponent/constants.js +0 -33
  240. /package/{helperComponents → components}/IconDynamicComponent/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export * from './UnderConstruction';
@@ -0,0 +1,8 @@
1
+ export { UnderConstruction } from './UnderConstruction.js';
2
+ import 'react';
3
+ import '../Text/Text.js';
4
+ import 'classnames';
5
+ import '../../utils/helpers.js';
6
+ import 'dayjs';
7
+ import '../Image/Image.js';
8
+ import './localization.js';
@@ -0,0 +1,4 @@
1
+ import { TUnderConstructionProps } from './types';
2
+ export declare const SELECT_TRANSLATIONS: {
3
+ [key: string]: TUnderConstructionProps;
4
+ };
@@ -0,0 +1,16 @@
1
+ var SELECT_TRANSLATIONS = {
2
+ en: {
3
+ mainMessage: 'We will be back soon',
4
+ paragraphMessage: 'We’re currently performing scheduled maintenance to make your experience even better. Please check back soon — we’ll be up and running shortly!'
5
+ },
6
+ ru: {
7
+ mainMessage: 'Скоро вернёмся',
8
+ paragraphMessage: 'В настоящее время мы проводим плановое техническое обслуживание, чтобы сделать ваш опыт ещё лучше. Пожалуйста, зайдите позже — скоро мы возобновим работу!'
9
+ },
10
+ hy: {
11
+ mainMessage: 'Շուտով կվերադառնանք',
12
+ paragraphMessage: 'Մենք աշխատում ենք ձեր փորձառությունը էլ ավելի բարելավելու համար։ Խնդրում ենք վերադառնալ ավելի ուշ, շուտով կլինենք հասանելի։'
13
+ }
14
+ };
15
+
16
+ export { SELECT_TRANSLATIONS };
@@ -0,0 +1,12 @@
1
+ export interface TUnderConstructionProps {
2
+ size?: string;
3
+ className?: string;
4
+ mainMessage?: string;
5
+ paragraphMessage?: string;
6
+ illustration?: string;
7
+ language?: string;
8
+ }
9
+ export type TUnderConstructionTranslations = {
10
+ mainMessage: string;
11
+ paragraphMessage: string;
12
+ };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnimatePresence } from 'framer-motion';
2
+ import { AnimatePresence } from 'motion/react';
3
3
 
4
4
  // This component is for exit animation
5
5
  function AnimatePresenceWrapper(_ref) {
@@ -1,3 +1,3 @@
1
1
  export { AnimatePresenceWrapper } from './AnimatePresenceWrapper.js';
2
2
  import 'react';
3
- import 'framer-motion';
3
+ import 'motion/react';
@@ -1,159 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Prism } from 'react-syntax-highlighter';
3
-
4
- var atomDark = {
5
- "code[class*=\"language-\"]": {
6
- "color": "#c5c8c6",
7
- "textShadow": "0 1px rgba(0, 0, 0, 0.3)",
8
- "fontFamily": "Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",
9
- "direction": "ltr",
10
- "textAlign": "left",
11
- "whiteSpace": "pre",
12
- "wordSpacing": "normal",
13
- "wordBreak": "normal",
14
- "lineHeight": "1.5",
15
- "MozTabSize": "4",
16
- "OTabSize": "4",
17
- "tabSize": "4",
18
- "WebkitHyphens": "none",
19
- "MozHyphens": "none",
20
- "msHyphens": "none",
21
- "hyphens": "none"
22
- },
23
- "pre[class*=\"language-\"]": {
24
- "color": "#c5c8c6",
25
- "textShadow": "0 1px rgba(0, 0, 0, 0.3)",
26
- "fontFamily": "Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",
27
- "direction": "ltr",
28
- "textAlign": "left",
29
- "whiteSpace": "pre",
30
- "wordSpacing": "normal",
31
- "wordBreak": "normal",
32
- "lineHeight": "1.5",
33
- "MozTabSize": "4",
34
- "OTabSize": "4",
35
- "tabSize": "4",
36
- "WebkitHyphens": "none",
37
- "MozHyphens": "none",
38
- "msHyphens": "none",
39
- "hyphens": "none",
40
- "padding": "1em",
41
- "margin": ".5em 0",
42
- "overflow": "auto",
43
- "borderRadius": "0.3em",
44
- "background": "#1d1f21"
45
- },
46
- ":not(pre) > code[class*=\"language-\"]": {
47
- "background": "#1d1f21",
48
- "padding": ".1em",
49
- "borderRadius": ".3em"
50
- },
51
- "comment": {
52
- "color": "#7C7C7C"
53
- },
54
- "prolog": {
55
- "color": "#7C7C7C"
56
- },
57
- "doctype": {
58
- "color": "#7C7C7C"
59
- },
60
- "cdata": {
61
- "color": "#7C7C7C"
62
- },
63
- "punctuation": {
64
- "color": "#c5c8c6"
65
- },
66
- ".namespace": {
67
- "Opacity": ".7"
68
- },
69
- "property": {
70
- "color": "#96CBFE"
71
- },
72
- "keyword": {
73
- "color": "#96CBFE"
74
- },
75
- "tag": {
76
- "color": "#96CBFE"
77
- },
78
- "class-name": {
79
- "color": "#FFFFB6",
80
- "textDecoration": "underline"
81
- },
82
- "boolean": {
83
- "color": "#99CC99"
84
- },
85
- "constant": {
86
- "color": "#99CC99"
87
- },
88
- "symbol": {
89
- "color": "#f92672"
90
- },
91
- "deleted": {
92
- "color": "#f92672"
93
- },
94
- "number": {
95
- "color": "#FF73FD"
96
- },
97
- "selector": {
98
- "color": "#A8FF60"
99
- },
100
- "attr-name": {
101
- "color": "#A8FF60"
102
- },
103
- "string": {
104
- "color": "#A8FF60"
105
- },
106
- "char": {
107
- "color": "#A8FF60"
108
- },
109
- "builtin": {
110
- "color": "#A8FF60"
111
- },
112
- "inserted": {
113
- "color": "#A8FF60"
114
- },
115
- "variable": {
116
- "color": "#C6C5FE"
117
- },
118
- "operator": {
119
- "color": "#EDEDED"
120
- },
121
- "entity": {
122
- "color": "#FFFFB6",
123
- "cursor": "help"
124
- },
125
- "url": {
126
- "color": "#96CBFE"
127
- },
128
- ".language-css .token.string": {
129
- "color": "#87C38A"
130
- },
131
- ".style .token.string": {
132
- "color": "#87C38A"
133
- },
134
- "atrule": {
135
- "color": "#F9EE98"
136
- },
137
- "attr-value": {
138
- "color": "#F9EE98"
139
- },
140
- "function": {
141
- "color": "#DAD085"
142
- },
143
- "regex": {
144
- "color": "#E9C062"
145
- },
146
- "important": {
147
- "color": "#fd971f",
148
- "fontWeight": "bold"
149
- },
150
- "bold": {
151
- "fontWeight": "bold"
152
- },
153
- "italic": {
154
- "fontStyle": "italic"
155
- }
156
- };
3
+ import { atomDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
157
4
 
158
5
  var CodeBlock = function CodeBlock(_ref) {
159
6
  var title = _ref.title,
@@ -1,3 +1,4 @@
1
1
  export { CodeBlock } from './CodeBlock.js';
2
2
  import 'react';
3
3
  import 'react-syntax-highlighter';
4
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Text } from '../../components/Text/Text.js';
3
- import { IconDynamicComponent } from '../IconDynamicComponent/IconDynamicComponent.js';
3
+ import { IconDynamicComponent } from '../../components/IconDynamicComponent/IconDynamicComponent.js';
4
4
  import { generateDataTestId } from '../../utils/helpers.js';
5
5
  import classNames from 'classnames';
6
6
  import 'dayjs';
7
- import '../IconDynamicComponent/constants.js';
7
+ import '@babel/runtime/helpers/objectWithoutProperties';
8
8
 
9
9
  var ErrorMessage = function ErrorMessage(_ref) {
10
10
  var message = _ref.message,
@@ -4,5 +4,5 @@ import '../../components/Text/Text.js';
4
4
  import 'classnames';
5
5
  import '../../utils/helpers.js';
6
6
  import 'dayjs';
7
- import '../IconDynamicComponent/IconDynamicComponent.js';
8
- import '../IconDynamicComponent/constants.js';
7
+ import '../../components/IconDynamicComponent/IconDynamicComponent.js';
8
+ import '@babel/runtime/helpers/objectWithoutProperties';
@@ -6,7 +6,7 @@ import 'classnames';
6
6
  import '../../utils/helpers.js';
7
7
  import 'dayjs';
8
8
  import '../../components/Image/Image.js';
9
- import '../../Alert-w8FkRd9I.js';
9
+ import '../../Alert--0rz5XL1.js';
10
10
  import '../../components/Alert/consts.js';
11
11
  import '@babel/runtime/helpers/defineProperty';
12
12
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -21,12 +21,13 @@ import 'react-dropzone';
21
21
  import '../../components/SVGIcons/IconUpload.js';
22
22
  import '../../components/FileUpload/types.js';
23
23
  import '../../helpers/format-date.js';
24
+ import 'dayjs/plugin/utc';
24
25
  import '../../helpers/locale.js';
25
26
  import '../../type/locale.js';
26
27
  import '../../helpers/storage.js';
27
28
  import 'react-toastify';
28
29
  import '../../hooks/useGetIsMobile.js';
29
- import 'framer-motion';
30
+ import 'motion/react';
30
31
  import '../AnimatePresenceWrapper/AnimatePresenceWrapper.js';
31
32
  import '../../hooks/useOnOutsideClick.js';
32
33
  import '../../hooks/useHideBodyScroll.js';
@@ -39,11 +40,12 @@ import '../../hooks/useGetElemPositions.js';
39
40
  import '../../hooks/useGetTooltipPosition.js';
40
41
  import '../../hooks/useHideOnScroll.js';
41
42
  import 'react-syntax-highlighter';
43
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
42
44
  import '../../components/Link/Link.js';
43
45
  import '../../components/Popover/PopoverDesktop.js';
44
46
  import '../../components/SVGIcons/IconInfo.js';
45
- import '../IconDynamicComponent/IconDynamicComponent.js';
46
- import '../IconDynamicComponent/constants.js';
47
+ import '../../components/IconDynamicComponent/IconDynamicComponent.js';
48
+ import 'react-toastify/dist/ReactToastify.css';
47
49
  import '@babel/runtime/helpers/typeof';
48
50
  import '../../components/SVGIcons/IconDismissFilled.js';
49
51
  import '../../components/SVGIcons/IconDelete.js';
@@ -9,7 +9,7 @@ import '../../hooks/useScreenSize.js';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import 'react-hook-form';
11
11
  import '@babel/runtime/helpers/defineProperty';
12
- import { C as Checkbox } from '../../Alert-w8FkRd9I.js';
12
+ import { C as Checkbox } from '../../Alert--0rz5XL1.js';
13
13
  import { IconCheckmark } from '../../components/SVGIcons/IconCheckmark.js';
14
14
  import '../../components/FileUpload/FileUpload.js';
15
15
  import '@babel/runtime/helpers/toConsumableArray';
@@ -17,27 +17,28 @@ import '../../components/FileUpload/types.js';
17
17
  import '../Label/Label.js';
18
18
  import '../../components/Text/Text.js';
19
19
  import '../../utils/helpers.js';
20
+ import '@babel/runtime/helpers/objectWithoutProperties';
20
21
  import 'react-syntax-highlighter';
22
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
21
23
  import '../../components/FileUpload/UploadItems.js';
22
24
  import '../../hooks/useFormProps.js';
23
25
  import '../../context/types.js';
24
26
  import '../ErrorMessage/ErrorMessage.js';
25
- import '../IconDynamicComponent/IconDynamicComponent.js';
26
- import '../IconDynamicComponent/constants.js';
27
+ import '../../components/IconDynamicComponent/IconDynamicComponent.js';
27
28
  import '../../components/SVGIcons/IconDelete.js';
28
29
  import '../../type/file-upload.js';
29
30
  import '../../components/Alert/consts.js';
30
- import '@babel/runtime/helpers/objectWithoutProperties';
31
31
  import '../Loader/Loader.js';
32
32
  import 'react-dropzone';
33
33
  import '../../components/SVGIcons/IconUpload.js';
34
34
  import '../../helpers/format-date.js';
35
+ import 'dayjs/plugin/utc';
35
36
  import '../../helpers/locale.js';
36
37
  import '../../type/locale.js';
37
38
  import '../../helpers/storage.js';
38
39
  import 'react-toastify';
39
40
  import '../../hooks/useGetIsMobile.js';
40
- import 'framer-motion';
41
+ import 'motion/react';
41
42
  import '../AnimatePresenceWrapper/AnimatePresenceWrapper.js';
42
43
  import '../../hooks/useOnOutsideClick.js';
43
44
  import '../../hooks/useHideBodyScroll.js';
@@ -51,6 +52,7 @@ import '../../hooks/useHideOnScroll.js';
51
52
  import '../../components/Link/Link.js';
52
53
  import '../../components/Popover/PopoverDesktop.js';
53
54
  import '../../components/SVGIcons/IconInfo.js';
55
+ import 'react-toastify/dist/ReactToastify.css';
54
56
  import '@babel/runtime/helpers/typeof';
55
57
  import '../../components/SVGIcons/IconDismissFilled.js';
56
58
  import '../../components/FileUpload/DropzoneFileUpload/FilePreview.js';
@@ -7,7 +7,7 @@ import '@babel/runtime/helpers/slicedToArray';
7
7
  import '../../components/FileUpload/FileUpload.js';
8
8
  import '@babel/runtime/helpers/toConsumableArray';
9
9
  import '../../components/FileUpload/types.js';
10
- import '../../Alert-w8FkRd9I.js';
10
+ import '../../Alert--0rz5XL1.js';
11
11
  import '../../components/Alert/consts.js';
12
12
  import '../../components/Text/Text.js';
13
13
  import '../../utils/helpers.js';
@@ -22,12 +22,13 @@ import 'react-hook-form';
22
22
  import 'react-dropzone';
23
23
  import '../../components/SVGIcons/IconUpload.js';
24
24
  import '../../helpers/format-date.js';
25
+ import 'dayjs/plugin/utc';
25
26
  import '../../helpers/locale.js';
26
27
  import '../../type/locale.js';
27
28
  import '../../helpers/storage.js';
28
29
  import 'react-toastify';
29
30
  import '../../hooks/useGetIsMobile.js';
30
- import 'framer-motion';
31
+ import 'motion/react';
31
32
  import '../AnimatePresenceWrapper/AnimatePresenceWrapper.js';
32
33
  import '../../hooks/useOnOutsideClick.js';
33
34
  import '../../hooks/useHideBodyScroll.js';
@@ -40,11 +41,12 @@ import '../../hooks/useGetElemPositions.js';
40
41
  import '../../hooks/useGetTooltipPosition.js';
41
42
  import '../../hooks/useHideOnScroll.js';
42
43
  import 'react-syntax-highlighter';
44
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
43
45
  import '../../components/Link/Link.js';
44
46
  import '../../components/Popover/PopoverDesktop.js';
45
47
  import '../../components/SVGIcons/IconInfo.js';
46
- import '../IconDynamicComponent/IconDynamicComponent.js';
47
- import '../IconDynamicComponent/constants.js';
48
+ import '../../components/IconDynamicComponent/IconDynamicComponent.js';
49
+ import 'react-toastify/dist/ReactToastify.css';
48
50
  import '@babel/runtime/helpers/typeof';
49
51
  import '../../components/SVGIcons/IconDismissFilled.js';
50
52
  import '../../components/SVGIcons/IconDelete.js';
@@ -2,5 +2,4 @@ export * from './Label';
2
2
  export * from './ErrorMessage';
3
3
  export * from './Loader';
4
4
  export * from './OptionItem';
5
- export * from './IconDynamicComponent';
6
5
  export * from './CodeBlock';
@@ -2,23 +2,23 @@ export { Label } from './Label/Label.js';
2
2
  export { ErrorMessage } from './ErrorMessage/ErrorMessage.js';
3
3
  export { Loader } from './Loader/Loader.js';
4
4
  export { OptionItem } from './OptionItem/OptionItem.js';
5
- export { IconDynamicComponent } from './IconDynamicComponent/IconDynamicComponent.js';
6
5
  export { CodeBlock } from './CodeBlock/CodeBlock.js';
7
6
  import 'react';
8
7
  import '../components/Text/Text.js';
9
8
  import 'classnames';
10
9
  import '../utils/helpers.js';
11
10
  import 'dayjs';
11
+ import '../components/IconDynamicComponent/IconDynamicComponent.js';
12
+ import '@babel/runtime/helpers/objectWithoutProperties';
12
13
  import '@babel/runtime/helpers/extends';
13
14
  import '../components/Avatar/Avatar.js';
14
15
  import '@babel/runtime/helpers/slicedToArray';
15
16
  import '../components/FileUpload/FileUpload.js';
16
17
  import '@babel/runtime/helpers/toConsumableArray';
17
18
  import '../components/FileUpload/types.js';
18
- import '../Alert-w8FkRd9I.js';
19
+ import '../Alert--0rz5XL1.js';
19
20
  import '../components/Alert/consts.js';
20
21
  import '@babel/runtime/helpers/defineProperty';
21
- import '@babel/runtime/helpers/objectWithoutProperties';
22
22
  import '../consts/index.js';
23
23
  import '../type/file-upload.js';
24
24
  import '../hooks/useScreenSize.js';
@@ -26,12 +26,13 @@ import 'react-hook-form';
26
26
  import 'react-dropzone';
27
27
  import '../components/SVGIcons/IconUpload.js';
28
28
  import '../helpers/format-date.js';
29
+ import 'dayjs/plugin/utc';
29
30
  import '../helpers/locale.js';
30
31
  import '../type/locale.js';
31
32
  import '../helpers/storage.js';
32
33
  import 'react-toastify';
33
34
  import '../hooks/useGetIsMobile.js';
34
- import 'framer-motion';
35
+ import 'motion/react';
35
36
  import './AnimatePresenceWrapper/AnimatePresenceWrapper.js';
36
37
  import '../hooks/useOnOutsideClick.js';
37
38
  import '../hooks/useHideBodyScroll.js';
@@ -44,9 +45,11 @@ import '../hooks/useGetElemPositions.js';
44
45
  import '../hooks/useGetTooltipPosition.js';
45
46
  import '../hooks/useHideOnScroll.js';
46
47
  import 'react-syntax-highlighter';
48
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
47
49
  import '../components/Link/Link.js';
48
50
  import '../components/Popover/PopoverDesktop.js';
49
51
  import '../components/SVGIcons/IconInfo.js';
52
+ import 'react-toastify/dist/ReactToastify.css';
50
53
  import '@babel/runtime/helpers/typeof';
51
54
  import '../components/SVGIcons/IconDismissFilled.js';
52
55
  import '../components/SVGIcons/IconDelete.js';
@@ -62,4 +65,3 @@ import '../components/SVGIcons/IconEditFilled.js';
62
65
  import '../components/SVGIcons/IconEdit.js';
63
66
  import '../components/SVGIcons/IconAttach.js';
64
67
  import '../components/SVGIcons/IconCheckmark.js';
65
- import './IconDynamicComponent/constants.js';
@@ -10,7 +10,7 @@ import '../components/Text/Text.js';
10
10
  import 'classnames';
11
11
  import '../utils/helpers.js';
12
12
  import 'dayjs';
13
- import '../Alert-w8FkRd9I.js';
13
+ import '../Alert--0rz5XL1.js';
14
14
  import '../components/Alert/consts.js';
15
15
  import '@babel/runtime/helpers/defineProperty';
16
16
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -25,8 +25,11 @@ import 'react-dropzone';
25
25
  import '../components/SVGIcons/IconUpload.js';
26
26
  import '../components/FileUpload/types.js';
27
27
  import './format-date.js';
28
+ import 'dayjs/plugin/utc';
29
+ import '../type/locale.js';
30
+ import './storage.js';
28
31
  import '../hooks/useGetIsMobile.js';
29
- import 'framer-motion';
32
+ import 'motion/react';
30
33
  import '../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
31
34
  import '../hooks/useOnOutsideClick.js';
32
35
  import '../hooks/useHideBodyScroll.js';
@@ -39,11 +42,12 @@ import '../hooks/useGetElemPositions.js';
39
42
  import '../hooks/useGetTooltipPosition.js';
40
43
  import '../hooks/useHideOnScroll.js';
41
44
  import 'react-syntax-highlighter';
45
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
42
46
  import '../components/Link/Link.js';
43
47
  import '../components/Popover/PopoverDesktop.js';
44
48
  import '../components/SVGIcons/IconInfo.js';
45
- import '../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
46
- import '../helperComponents/IconDynamicComponent/constants.js';
49
+ import '../components/IconDynamicComponent/IconDynamicComponent.js';
50
+ import 'react-toastify/dist/ReactToastify.css';
47
51
  import '@babel/runtime/helpers/typeof';
48
52
  import '../components/SVGIcons/IconDismissFilled.js';
49
53
  import '../components/SVGIcons/IconDelete.js';
@@ -53,8 +57,6 @@ import '../components/SVGIcons/IconArrowDownloadFilled.js';
53
57
  import './download-file.js';
54
58
  import '../components/Button/consts.js';
55
59
  import '../components/Snackbar/consts.js';
56
- import '../type/locale.js';
57
- import './storage.js';
58
60
 
59
61
  var ROUTE_CONFIGS = {
60
62
  authorization: {
@@ -1,30 +1,9 @@
1
1
  import dayjs from 'dayjs';
2
+ import utc from 'dayjs/plugin/utc';
2
3
  import { getDayJSLocale } from './locale.js';
3
4
  import '../type/locale.js';
4
5
  import './storage.js';
5
6
 
6
- function getDefaultExportFromCjs (x) {
7
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8
- }
9
-
10
- var utc$2 = {exports: {}};
11
-
12
- var utc$1 = utc$2.exports;
13
-
14
- var hasRequiredUtc;
15
-
16
- function requireUtc () {
17
- if (hasRequiredUtc) return utc$2.exports;
18
- hasRequiredUtc = 1;
19
- (function (module, exports) {
20
- !function(t,i){module.exports=i();}(utc$1,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:true,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:true});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:false})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=true),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){ void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
21
- } (utc$2));
22
- return utc$2.exports;
23
- }
24
-
25
- var utcExports = requireUtc();
26
- var utc = /*@__PURE__*/getDefaultExportFromCjs(utcExports);
27
-
28
7
  dayjs.extend(utc);
29
8
  var formatDate = function formatDate(value, format) {
30
9
  var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
package/helpers/index.js CHANGED
@@ -6,6 +6,7 @@ export { checkAuthorization } from './check-authorization.js';
6
6
  export { isDeepEqual } from './isDeepEqual.js';
7
7
  export { getModulePrefix } from './get-module-prefix.js';
8
8
  import 'dayjs';
9
+ import 'dayjs/plugin/utc';
9
10
  import '../type/locale.js';
10
11
  import '../components/Snackbar/Snackbar.js';
11
12
  import '@babel/runtime/helpers/extends';
@@ -14,7 +15,7 @@ import 'react-toastify';
14
15
  import '../components/Text/Text.js';
15
16
  import 'classnames';
16
17
  import '../utils/helpers.js';
17
- import '../Alert-w8FkRd9I.js';
18
+ import '../Alert--0rz5XL1.js';
18
19
  import '../components/Alert/consts.js';
19
20
  import '@babel/runtime/helpers/defineProperty';
20
21
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -29,7 +30,7 @@ import 'react-dropzone';
29
30
  import '../components/SVGIcons/IconUpload.js';
30
31
  import '../components/FileUpload/types.js';
31
32
  import '../hooks/useGetIsMobile.js';
32
- import 'framer-motion';
33
+ import 'motion/react';
33
34
  import '../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
34
35
  import '../hooks/useOnOutsideClick.js';
35
36
  import '../hooks/useHideBodyScroll.js';
@@ -42,11 +43,12 @@ import '../hooks/useGetElemPositions.js';
42
43
  import '../hooks/useGetTooltipPosition.js';
43
44
  import '../hooks/useHideOnScroll.js';
44
45
  import 'react-syntax-highlighter';
46
+ import 'react-syntax-highlighter/dist/esm/styles/prism';
45
47
  import '../components/Link/Link.js';
46
48
  import '../components/Popover/PopoverDesktop.js';
47
49
  import '../components/SVGIcons/IconInfo.js';
48
- import '../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
49
- import '../helperComponents/IconDynamicComponent/constants.js';
50
+ import '../components/IconDynamicComponent/IconDynamicComponent.js';
51
+ import 'react-toastify/dist/ReactToastify.css';
50
52
  import '@babel/runtime/helpers/typeof';
51
53
  import '../components/SVGIcons/IconDismissFilled.js';
52
54
  import '../components/SVGIcons/IconDelete.js';
@@ -1 +1 @@
1
- export declare const useHideOnScroll: (hide: () => void) => null;
1
+ export declare const useHideOnScroll: (hide: () => void, parent?: HTMLElement | null) => null;
@@ -3,15 +3,16 @@ import { CUSTOM_SCROLL_NAME, CUSTOM_SCROLL_MESSAGE } from '../consts/index.js';
3
3
  import '@babel/runtime/helpers/defineProperty';
4
4
  import '../type/file-upload.js';
5
5
 
6
- var useHideOnScroll = function useHideOnScroll(hide) {
6
+ var useHideOnScroll = function useHideOnScroll(hide, parent) {
7
+ var scrollElement = parent !== null && parent !== void 0 ? parent : document;
7
8
  useEffect(function () {
8
- document.addEventListener('scroll', hide);
9
+ scrollElement.addEventListener('scroll', hide);
9
10
  return function () {
10
- document.removeEventListener('scroll', hide);
11
+ scrollElement.removeEventListener('scroll', hide);
11
12
  };
12
13
  }, []);
13
14
  useEffect(function () {
14
- document.addEventListener(CUSTOM_SCROLL_NAME, function (event) {
15
+ scrollElement.addEventListener(CUSTOM_SCROLL_NAME, function (event) {
15
16
  var customEvent = event;
16
17
  // Check the event type
17
18
  if (customEvent.detail === CUSTOM_SCROLL_MESSAGE) {
package/i18n.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
3
+ export declare const loadTranslations: (language: string) => Promise<unknown>;
4
+ export declare function translate(key: string, options?: any): string;