linear-react-components-ui 1.1.24-beta.2 → 1.1.25-rc.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 (260) hide show
  1. package/lib/@types/ColorStyles.d.ts +1 -2
  2. package/lib/@types/Position.d.ts +1 -2
  3. package/lib/assets/styles/calendar.scss +137 -32
  4. package/lib/assets/styles/colorpicker.scss +6 -1
  5. package/lib/assets/styles/colors.scss +12 -48
  6. package/lib/assets/styles/file.scss +8 -0
  7. package/lib/buttons/ActivateButton.d.ts +0 -1
  8. package/lib/buttons/AddButton.d.ts +0 -1
  9. package/lib/buttons/Button.d.ts +0 -1
  10. package/lib/buttons/CancelButton.d.ts +0 -1
  11. package/lib/buttons/DangerButton.d.ts +0 -1
  12. package/lib/buttons/DefaultButton.d.ts +0 -1
  13. package/lib/buttons/DefaultButton.js +11 -16
  14. package/lib/buttons/DestroyButton.d.ts +0 -1
  15. package/lib/buttons/EditButton.d.ts +0 -1
  16. package/lib/buttons/InactivateButton.d.ts +0 -1
  17. package/lib/buttons/InfoButton.d.ts +0 -1
  18. package/lib/buttons/PrimaryButton.d.ts +0 -1
  19. package/lib/buttons/RestoreButton.d.ts +0 -1
  20. package/lib/buttons/SaveButton.d.ts +0 -1
  21. package/lib/buttons/SuccessButton.d.ts +0 -1
  22. package/lib/buttons/WarningButton.d.ts +0 -1
  23. package/lib/buttons/index.d.ts +0 -1
  24. package/lib/buttons/split_button/index.d.ts +0 -1
  25. package/lib/buttons/types.d.ts +5 -2
  26. package/lib/calendar/base/index.js +113 -40
  27. package/lib/dialog/base/index.js +1 -1
  28. package/lib/form/Field.d.ts +1 -1
  29. package/lib/form/FieldArray.d.ts +1 -1
  30. package/lib/form/FieldNumber.d.ts +1 -1
  31. package/lib/form/FieldPeriod.d.ts +1 -1
  32. package/lib/form/helpers.d.ts +1 -1
  33. package/lib/form/index.d.ts +1 -1
  34. package/lib/form/types.d.ts +1 -1
  35. package/lib/form/withFieldHOC.d.ts +1 -1
  36. package/lib/form/withFormSecurity.d.ts +1 -1
  37. package/lib/icons/index.d.ts +6 -4
  38. package/lib/icons/index.js +9 -14
  39. package/lib/icons/types.d.ts +6 -3
  40. package/lib/index.d.ts +0 -1
  41. package/lib/inputs/base/InputTextBase.d.ts +1 -1
  42. package/lib/inputs/base/InputTextBase.js +6 -14
  43. package/lib/inputs/base/Label.d.ts +14 -0
  44. package/lib/inputs/base/Label.js +35 -0
  45. package/lib/inputs/base/helpers.d.ts +1 -1
  46. package/lib/inputs/base/types.d.ts +16 -5
  47. package/lib/inputs/color/index.js +1 -1
  48. package/lib/inputs/date/Dialog.d.ts +1 -1
  49. package/lib/inputs/date/Dropdown.d.ts +1 -1
  50. package/lib/inputs/date/index.d.ts +1 -1
  51. package/lib/inputs/date/types.d.ts +1 -1
  52. package/lib/inputs/errorMessage/index.d.ts +1 -1
  53. package/lib/inputs/file/DefaultFile.d.ts +1 -1
  54. package/lib/inputs/file/DefaultFile.js +26 -26
  55. package/lib/inputs/file/DragDropFile.d.ts +1 -1
  56. package/lib/inputs/file/File.d.ts +1 -1
  57. package/lib/inputs/file/File.js +1 -0
  58. package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
  59. package/lib/inputs/file/FileButtonSettings.js +0 -1
  60. package/lib/inputs/file/helpers.d.ts +1 -1
  61. package/lib/inputs/file/index.d.ts +1 -1
  62. package/lib/inputs/file/types.d.ts +1 -1
  63. package/lib/inputs/inputHOC.d.ts +1 -1
  64. package/lib/inputs/mask/BaseMask.d.ts +1 -1
  65. package/lib/inputs/mask/Cnpj.d.ts +1 -1
  66. package/lib/inputs/mask/Cpf.d.ts +1 -1
  67. package/lib/inputs/mask/Phone.d.ts +1 -1
  68. package/lib/inputs/mask/ZipCode.d.ts +1 -1
  69. package/lib/inputs/mask/helpers.d.ts +1 -1
  70. package/lib/inputs/mask/index.d.ts +1 -1
  71. package/lib/inputs/mask/types.d.ts +1 -1
  72. package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
  73. package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
  74. package/lib/inputs/multiSelect/helper.d.ts +1 -1
  75. package/lib/inputs/multiSelect/index.d.ts +1 -1
  76. package/lib/inputs/multiSelect/types.d.ts +1 -1
  77. package/lib/inputs/number/BaseNumber.d.ts +1 -1
  78. package/lib/inputs/number/Currency.d.ts +1 -1
  79. package/lib/inputs/number/Decimal.d.ts +1 -1
  80. package/lib/inputs/number/index.d.ts +1 -1
  81. package/lib/inputs/number/types.d.ts +1 -1
  82. package/lib/inputs/period/Dialog.d.ts +1 -1
  83. package/lib/inputs/period/Dropdown.d.ts +1 -1
  84. package/lib/inputs/period/PeriodList.d.ts +1 -1
  85. package/lib/inputs/period/helper.d.ts +1 -1
  86. package/lib/inputs/period/index.d.ts +1 -1
  87. package/lib/inputs/period/index.js +10 -8
  88. package/lib/inputs/period/types.d.ts +5 -2
  89. package/lib/inputs/search/index.d.ts +1 -1
  90. package/lib/inputs/select/ActionButtons.d.ts +1 -1
  91. package/lib/inputs/select/Dropdown.d.ts +1 -1
  92. package/lib/inputs/select/helper.d.ts +1 -1
  93. package/lib/inputs/select/index.d.ts +1 -1
  94. package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
  95. package/lib/inputs/select/multiple/index.d.ts +1 -1
  96. package/lib/inputs/select/simple/index.d.ts +1 -1
  97. package/lib/inputs/select/types.d.ts +1 -1
  98. package/lib/inputs/text/index.d.ts +1 -1
  99. package/lib/inputs/text/types.d.ts +3 -2
  100. package/lib/inputs/textarea/index.d.ts +1 -1
  101. package/lib/inputs/textarea/types.d.ts +1 -1
  102. package/lib/inputs/types.d.ts +1 -1
  103. package/lib/internals/types.d.ts +17 -1
  104. package/lib/internals/withTooltip.d.ts +12 -0
  105. package/lib/internals/withTooltip.js +172 -0
  106. package/lib/labels/DangerLabel.d.ts +0 -1
  107. package/lib/labels/DefaultLabel.d.ts +5 -3
  108. package/lib/labels/DefaultLabel.js +7 -15
  109. package/lib/labels/InfoLabel.d.ts +0 -1
  110. package/lib/labels/PrimaryLabel.d.ts +0 -1
  111. package/lib/labels/SuccessLabel.d.ts +0 -1
  112. package/lib/labels/WarningLabel.d.ts +0 -1
  113. package/lib/labels/index.d.ts +2 -3
  114. package/lib/labels/types.d.ts +5 -2
  115. package/lib/list/Header.d.ts +0 -1
  116. package/lib/list/Item.d.ts +5 -3
  117. package/lib/list/Item.js +12 -17
  118. package/lib/list/helpers.d.ts +0 -1
  119. package/lib/list/index.d.ts +0 -1
  120. package/lib/list/types.d.ts +6 -4
  121. package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
  122. package/lib/menus/sidenav/MenuLink.d.ts +7 -4
  123. package/lib/menus/sidenav/MenuLink.js +11 -20
  124. package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
  125. package/lib/menus/sidenav/NavMenuItem.d.ts +7 -4
  126. package/lib/menus/sidenav/NavMenuItem.js +12 -16
  127. package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
  128. package/lib/menus/sidenav/helpers.d.ts +2 -2
  129. package/lib/menus/sidenav/index.d.ts +2 -2
  130. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
  131. package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
  132. package/lib/menus/sidenav/types.d.ts +6 -6
  133. package/lib/textContent/index.d.ts +11 -6
  134. package/lib/textContent/index.js +11 -20
  135. package/lib/tooltip/index.d.ts +3 -4
  136. package/lib/tooltip/index.js +53 -36
  137. package/lib/tooltip/types.d.ts +3 -25
  138. package/package.json +2 -3
  139. package/lib/BaseMask-4885b7c4.d.ts +0 -24
  140. package/lib/BaseNumber-ba047ec3.d.ts +0 -23
  141. package/lib/Cnpj-501f8fed.d.ts +0 -18
  142. package/lib/Cpf-0e03d85a.d.ts +0 -18
  143. package/lib/Currency-d8dae30c.d.ts +0 -18
  144. package/lib/Decimal-deda637f.d.ts +0 -13
  145. package/lib/Number-4783f0de.d.ts +0 -20
  146. package/lib/Phone-99e92c22.d.ts +0 -18
  147. package/lib/ZipCode-3d092264.d.ts +0 -13
  148. package/lib/assets/styles/checkbox2.scss +0 -199
  149. package/lib/assets/styles/datepicker2.scss +0 -338
  150. package/lib/assets/styles/radiofield.scss +0 -185
  151. package/lib/assets/styles/selectfield.scss +0 -409
  152. package/lib/assets/styles/slot.scss +0 -34
  153. package/lib/assets/styles/textfield.scss +0 -147
  154. package/lib/calendar/base/Day.d.ts +0 -8
  155. package/lib/calendar/base/Day.js +0 -36
  156. package/lib/calendar/base/Month.d.ts +0 -8
  157. package/lib/calendar/base/Month.js +0 -39
  158. package/lib/calendar/base/Week.d.ts +0 -8
  159. package/lib/calendar/base/Week.js +0 -35
  160. package/lib/form2/helpers.d.ts +0 -8
  161. package/lib/form2/helpers.js +0 -41
  162. package/lib/form2/index.d.ts +0 -9
  163. package/lib/form2/index.js +0 -36
  164. package/lib/form2/types.d.ts +0 -125
  165. package/lib/form2/types.js +0 -5
  166. package/lib/form2/useForm/index.d.ts +0 -5
  167. package/lib/form2/useForm/index.js +0 -203
  168. package/lib/index-368f781f.d.ts +0 -15
  169. package/lib/index-6f287e6c.d.ts +0 -23
  170. package/lib/index-a0c1207e.d.ts +0 -15
  171. package/lib/index-a68cfaf7.d.ts +0 -23
  172. package/lib/index-c9247c1f.d.ts +0 -15
  173. package/lib/index-f6f0d3a8.d.ts +0 -44
  174. package/lib/index-f9981b49.d.ts +0 -41
  175. package/lib/inputs2/checkboxfield/index.d.ts +0 -7
  176. package/lib/inputs2/checkboxfield/index.js +0 -142
  177. package/lib/inputs2/colorfield/index.d.ts +0 -9
  178. package/lib/inputs2/colorfield/index.js +0 -119
  179. package/lib/inputs2/date/base/constants.d.ts +0 -7
  180. package/lib/inputs2/date/base/constants.js +0 -43
  181. package/lib/inputs2/date/base/index.d.ts +0 -12
  182. package/lib/inputs2/date/base/index.js +0 -175
  183. package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
  184. package/lib/inputs2/date/datefield/calendarbox.js +0 -115
  185. package/lib/inputs2/date/datefield/context.d.ts +0 -14
  186. package/lib/inputs2/date/datefield/context.js +0 -15
  187. package/lib/inputs2/date/datefield/index.d.ts +0 -10
  188. package/lib/inputs2/date/datefield/index.js +0 -336
  189. package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
  190. package/lib/inputs2/date/datefield/triggers.js +0 -47
  191. package/lib/inputs2/date/datefield/types.d.ts +0 -63
  192. package/lib/inputs2/date/datefield/types.js +0 -5
  193. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
  194. package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -164
  195. package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
  196. package/lib/inputs2/date/dateperiodfield/context.js +0 -17
  197. package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
  198. package/lib/inputs2/date/dateperiodfield/index.js +0 -593
  199. package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
  200. package/lib/inputs2/date/dateperiodfield/triggers.js +0 -120
  201. package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
  202. package/lib/inputs2/date/dateperiodfield/types.js +0 -19
  203. package/lib/inputs2/date/helpers.d.ts +0 -21
  204. package/lib/inputs2/date/helpers.js +0 -62
  205. package/lib/inputs2/date/types.d.ts +0 -60
  206. package/lib/inputs2/date/types.js +0 -19
  207. package/lib/inputs2/index.d.ts +0 -32
  208. package/lib/inputs2/index.js +0 -40
  209. package/lib/inputs2/mask/BaseMask.d.ts +0 -10
  210. package/lib/inputs2/mask/BaseMask.js +0 -95
  211. package/lib/inputs2/mask/Cnpj.d.ts +0 -11
  212. package/lib/inputs2/mask/Cnpj.js +0 -57
  213. package/lib/inputs2/mask/Cpf.d.ts +0 -11
  214. package/lib/inputs2/mask/Cpf.js +0 -53
  215. package/lib/inputs2/mask/Phone.d.ts +0 -11
  216. package/lib/inputs2/mask/Phone.js +0 -26
  217. package/lib/inputs2/mask/ZipCode.d.ts +0 -11
  218. package/lib/inputs2/mask/ZipCode.js +0 -23
  219. package/lib/inputs2/mask/helpers.d.ts +0 -4
  220. package/lib/inputs2/mask/helpers.js +0 -57
  221. package/lib/inputs2/number/BaseNumber.d.ts +0 -10
  222. package/lib/inputs2/number/BaseNumber.js +0 -86
  223. package/lib/inputs2/number/Currency.d.ts +0 -11
  224. package/lib/inputs2/number/Currency.js +0 -47
  225. package/lib/inputs2/number/Decimal.d.ts +0 -11
  226. package/lib/inputs2/number/Decimal.js +0 -36
  227. package/lib/inputs2/number/Number.d.ts +0 -9
  228. package/lib/inputs2/number/Number.js +0 -49
  229. package/lib/inputs2/number/format_number.d.ts +0 -5
  230. package/lib/inputs2/number/format_number.js +0 -29
  231. package/lib/inputs2/radiofield/index.d.ts +0 -9
  232. package/lib/inputs2/radiofield/index.js +0 -143
  233. package/lib/inputs2/radiofield/types.d.ts +0 -33
  234. package/lib/inputs2/radiofield/types.js +0 -5
  235. package/lib/inputs2/selectfield/context.d.ts +0 -38
  236. package/lib/inputs2/selectfield/context.js +0 -15
  237. package/lib/inputs2/selectfield/helpers.d.ts +0 -6
  238. package/lib/inputs2/selectfield/helpers.js +0 -25
  239. package/lib/inputs2/selectfield/index.d.ts +0 -10
  240. package/lib/inputs2/selectfield/index.js +0 -489
  241. package/lib/inputs2/selectfield/item.d.ts +0 -11
  242. package/lib/inputs2/selectfield/item.js +0 -85
  243. package/lib/inputs2/selectfield/listbox.d.ts +0 -7
  244. package/lib/inputs2/selectfield/listbox.js +0 -103
  245. package/lib/inputs2/selectfield/search.d.ts +0 -7
  246. package/lib/inputs2/selectfield/search.js +0 -71
  247. package/lib/inputs2/selectfield/selections.d.ts +0 -10
  248. package/lib/inputs2/selectfield/selections.js +0 -86
  249. package/lib/inputs2/selectfield/triggers.d.ts +0 -8
  250. package/lib/inputs2/selectfield/triggers.js +0 -100
  251. package/lib/inputs2/selectfield/types.d.ts +0 -54
  252. package/lib/inputs2/selectfield/types.js +0 -21
  253. package/lib/inputs2/slot/index.d.ts +0 -14
  254. package/lib/inputs2/slot/index.js +0 -47
  255. package/lib/inputs2/textfield/index.d.ts +0 -8
  256. package/lib/inputs2/textfield/index.js +0 -156
  257. package/lib/tooltip/TooltipContent.d.ts +0 -7
  258. package/lib/tooltip/TooltipContent.js +0 -65
  259. package/lib/tooltip/useTooltip.d.ts +0 -30
  260. package/lib/tooltip/useTooltip.js +0 -128
@@ -1,8 +1,8 @@
1
- import { MouseEvent, KeyboardEvent, DragEvent, MutableRefObject, RefObject, CSSProperties } from 'react';
1
+ import { MutableRefObject, MouseEvent, KeyboardEvent, DragEvent, RefObject, CSSProperties } from 'react';
2
2
  import { TextAlign } from '../../@types/Align.js';
3
3
  import { Period } from '../../@types/Period.js';
4
4
  import { PermissionAttr, OnDenied } from '../../@types/PermissionAttr.js';
5
- import { ITooltipCommonProps } from '../../tooltip/types.js';
5
+ import { WithTooltipProps } from '../../internals/types.js';
6
6
  import '../../@types/Position.js';
7
7
 
8
8
  interface CustomInputEvent {
@@ -20,7 +20,17 @@ interface CustomInputEvent {
20
20
  files?: FileList | null;
21
21
  };
22
22
  }
23
- interface IBaseProps extends ITooltipCommonProps {
23
+ interface InputLabelProps extends WithTooltipProps {
24
+ label?: string | string[];
25
+ customClassForLabel?: string;
26
+ styleForLabel?: object;
27
+ labelUppercase?: boolean;
28
+ required?: boolean;
29
+ targetRef?: (ref: HTMLSpanElement | null) => void;
30
+ labelRef?: MutableRefObject<HTMLSpanElement | null>;
31
+ onHoverLabel?: React.MouseEventHandler<HTMLSpanElement>;
32
+ }
33
+ interface IBaseProps {
24
34
  inputHasFocus?: boolean;
25
35
  onInputReceiveFocus?: () => void;
26
36
  onInputLostFocus?: () => void;
@@ -54,7 +64,7 @@ interface IBaseProps extends ITooltipCommonProps {
54
64
  onDragLeave?: (e: DragEvent) => void;
55
65
  leftElements?: JSX.Element | JSX.Element[];
56
66
  rightElements?: JSX.Element | JSX.Element[];
57
- children?: JSX.Element | JSX.Element[];
67
+ children?: React.ReactNode;
58
68
  customClass?: string;
59
69
  customClassForWrapper?: string;
60
70
  customClassForInputContent?: string;
@@ -72,6 +82,7 @@ interface IBaseProps extends ITooltipCommonProps {
72
82
  permissionAttr?: PermissionAttr;
73
83
  onDeniedActions?: OnDenied;
74
84
  handlerSetOnDenied?: (onDenied: OnDenied) => void;
85
+ targetRef?: (ref: HTMLDivElement | HTMLInputElement | HTMLTextAreaElement | null) => void;
75
86
  gridLayout?: string;
76
87
  skeletonize?: boolean;
77
88
  style?: CSSProperties;
@@ -89,4 +100,4 @@ interface IBaseProps extends ITooltipCommonProps {
89
100
  defaultValue?: string | string[];
90
101
  }
91
102
 
92
- export { CustomInputEvent, IBaseProps };
103
+ export { CustomInputEvent, IBaseProps, InputLabelProps };
@@ -71,7 +71,7 @@ const ColorPicker = props => {
71
71
  ref: inputRef,
72
72
  type: "color",
73
73
  defaultValue: color,
74
- name: name,
74
+ name: `${name}-hidden`,
75
75
  onClick: e => onButtonClick ? onButtonClick(e) : undefined,
76
76
  onInput: onInputChangeDefault
77
77
  })],
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const Dialog: ({ handlerClose, children, dialogSize }: IDateDialogProps) => JSX.Element;
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const Dropdown: (props: IDateDropdownProps) => React.ReactPortal;
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const DatePicker: (props: IDatePickerProps) => JSX.Element | null;
@@ -4,7 +4,7 @@ import { PermissionAttr } from '../../@types/PermissionAttr.js';
4
4
  import { CustomInputEvent } from '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  interface IDatePickerProps {
@@ -5,7 +5,7 @@ import '../../@types/DataCombo.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
  import '../../drawer/types.js';
11
11
  import '../../@types/Icon.js';
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const DefaultFile: (props: IDefaultFileProps) => JSX.Element;
@@ -25,12 +25,35 @@ const DefaultFile = props => {
25
25
  inputRef,
26
26
  defaultFiles,
27
27
  hint = [],
28
+ multiple,
28
29
  onChange
29
30
  } = props;
30
31
  const getFilesList = files => !files?.length ? [] : _lodash.default.map(files, file => file);
31
32
  const [fileList, setFileList] = (0, _react.useState)(defaultFiles);
32
33
  const ifExistFiles = fileList instanceof Array && fileList.length > 0;
33
- const popUpDescription = () => /*#__PURE__*/_react.default.createElement("div", {
34
+ const handleChange = e => {
35
+ e.preventDefault?.();
36
+ const files = getFilesList(e.target.files);
37
+ setFileList(files);
38
+ onChange?.(files, e);
39
+ };
40
+ return /*#__PURE__*/_react.default.createElement("div", {
41
+ className: "input-simple-file-container"
42
+ }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
43
+ hint: hint,
44
+ readOnlyClass: "-disabledVisualApply",
45
+ customClassForWrapper: "file-wrapper",
46
+ customClassForInputContent: "file-content -absolute -pointEventDisabled -disabledVisualApply",
47
+ type: "file",
48
+ id: id,
49
+ accept: accept,
50
+ inputRef: inputRef,
51
+ onChange: handleChange,
52
+ rightElements: /*#__PURE__*/_react.default.createElement(_FileButtonSettings.default, {
53
+ id: id,
54
+ onBtnClickInsert: () => onBtnClickInsert()
55
+ })
56
+ }), multiple && /*#__PURE__*/_react.default.createElement("div", {
34
57
  className: `size-position-icon ${!ifExistFiles ? '-disabled-popover' : ''}`
35
58
  }, /*#__PURE__*/_react.default.createElement(_popover.default, {
36
59
  iconSize: 16
@@ -39,8 +62,7 @@ const DefaultFile = props => {
39
62
  key: `${file.name}${file.size}`
40
63
  }, /*#__PURE__*/_react.default.createElement("div", {
41
64
  className: "file-name"
42
- }, /*#__PURE__*/_react.default.createElement("span", null, file.name)))))));
43
- const buttonRemoveFile = () => /*#__PURE__*/_react.default.createElement(_buttons.default, {
65
+ }, /*#__PURE__*/_react.default.createElement("span", null, file.name))))))), /*#__PURE__*/_react.default.createElement(_buttons.default, {
44
66
  disabled: !ifExistFiles,
45
67
  className: "-pointerEventsRemove",
46
68
  transparent: true,
@@ -53,28 +75,6 @@ const DefaultFile = props => {
53
75
  customClass: "colorIconUpload",
54
76
  name: "close"
55
77
  })
56
- });
57
- const handleChange = e => {
58
- e.preventDefault?.();
59
- const files = getFilesList(e.target.files);
60
- setFileList(files);
61
- onChange?.(files, e);
62
- };
63
- return /*#__PURE__*/_react.default.createElement("div", {
64
- className: "input-simple-file-container"
65
- }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
66
- hint: hint,
67
- readOnlyClass: "-disabledVisualApply",
68
- customClassForInputContent: "-absolute -pointEventDisabled -disabledVisualApply",
69
- type: "file",
70
- id: id,
71
- accept: accept,
72
- inputRef: inputRef,
73
- onChange: handleChange,
74
- rightElements: /*#__PURE__*/_react.default.createElement(_FileButtonSettings.default, {
75
- id: id,
76
- onBtnClickInsert: onBtnClickInsert
77
- })
78
- }), popUpDescription(), buttonRemoveFile()));
78
+ })));
79
79
  };
80
80
  var _default = exports.default = DefaultFile;
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const DragDropFile: (props: IDragDropFileProps) => JSX.Element;
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, 'onBtnClickInsert'>) => JSX.Element;
@@ -31,6 +31,7 @@ const File = _ref => {
31
31
  const onBtnClickRemove = () => {
32
32
  if (inputFileRef.current) {
33
33
  inputFileRef.current.value = '';
34
+ if (onBtnClickRemoveProp) onBtnClickRemoveProp();
34
35
  }
35
36
  if (onBtnClickRemoveProp) onBtnClickRemoveProp();
36
37
  };
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const FileButtonSettings: (props: IFileButtonSettingsProps) => JSX.Element;
@@ -16,7 +16,6 @@ const FileButtonSettings = props => {
16
16
  onBtnClickInsert
17
17
  } = props;
18
18
  return /*#__PURE__*/_react.default.createElement("label", {
19
- id: "",
20
19
  htmlFor: id
21
20
  }, /*#__PURE__*/_react.default.createElement(_buttons.default, {
22
21
  className: "uploadButton simple-search-file-button -shadowsdisabled -transparent",
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const transformFilesToFileList: (files: CustomFile) => FileList;
@@ -8,7 +8,7 @@ import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
9
  import '../../@types/Period.js';
10
10
  import '../../@types/PermissionAttr.js';
11
- import '../../tooltip/types.js';
11
+ import '../../internals/types.js';
12
12
  import '../../@types/Position.js';
13
13
 
14
14
 
@@ -4,7 +4,7 @@ import { CustomInputEvent } from '../base/types.js';
4
4
  import '../../@types/Align.js';
5
5
  import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  type CustomFile = FileList | File | File[];
@@ -5,7 +5,7 @@ import '../@types/DataCombo.js';
5
5
  import './base/types.js';
6
6
  import '../@types/Align.js';
7
7
  import '../@types/Period.js';
8
- import '../tooltip/types.js';
8
+ import '../internals/types.js';
9
9
  import '../@types/Position.js';
10
10
  import '../drawer/types.js';
11
11
  import '../@types/Icon.js';
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
4
4
  import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  declare const BaseMask: ({ value: valueProp, defaultValue, inputRef, onChange, onComplete, permissionAttr, mask, isDateTimeField, ...rest }: IBaseMaskProps) => JSX.Element;
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
4
4
  import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  declare const CnpjField: {
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
4
4
  import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  declare const CpfField: {
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
4
4
  import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  declare const PhoneField: (props: IPhoneFieldProps) => JSX.Element;
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
4
4
  import '../../@types/PermissionAttr.js';
5
5
  import '../base/types.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  declare const ZipCodeField: (props: IZipCode) => JSX.Element;
@@ -5,7 +5,7 @@ import '../../@types/Align.js';
5
5
  import '../../@types/PermissionAttr.js';
6
6
  import '../base/types.js';
7
7
  import '../../@types/Period.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, pattern, radix, thousandsSeparator, mapToRadix, scale, normalizeZeros, padFractionalZeros, rightElements, leftElements, isDateTimeField, ...rest }: IBaseMaskProps) => ReactMaskOpts;
@@ -9,7 +9,7 @@ import '../../@types/Align.js';
9
9
  import '../../@types/PermissionAttr.js';
10
10
  import '../base/types.js';
11
11
  import '../../@types/Period.js';
12
- import '../../tooltip/types.js';
12
+ import '../../internals/types.js';
13
13
  import '../../@types/Position.js';
14
14
 
15
15
 
@@ -3,7 +3,7 @@ import { TextAlign } from '../../@types/Align.js';
3
3
  import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
4
4
  import { CustomInputEvent } from '../base/types.js';
5
5
  import '../../@types/Period.js';
6
- import '../../tooltip/types.js';
6
+ import '../../internals/types.js';
7
7
  import '../../@types/Position.js';
8
8
 
9
9
  type IBaseMaskProps = {
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const ActionButtons: ({ disabled, dropdownOpened, handleOpenClose, handleCheckAll, handleUncheckAll, dropdownAlignButton, }: IActionButtonsProps) => JSX.Element;
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const Dropdown: (props: IDropdownMultiSelectProps) => JSX.Element;
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const getFilteredDataCombo: ({ dataSource, descriptionKey, inputText, }: GetFilteredParams) => any[];
@@ -5,7 +5,7 @@ import '../base/types.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
7
  import '../../@types/PermissionAttr.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  declare const MultiSelectField: (props: IMultiSelectProps) => JSX.Element;
@@ -4,7 +4,7 @@ import { CustomInputEvent } from '../base/types.js';
4
4
  import '../../@types/Align.js';
5
5
  import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
 
10
10
  type DescriptionKey = string | ((dataSelected: DataCombo) => string);
@@ -4,7 +4,7 @@ import '../base/types.js';
4
4
  import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
  import '../types.js';
10
10
  import '../../@types/DataCombo.js';
@@ -4,7 +4,7 @@ import '../base/types.js';
4
4
  import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
  import '../types.js';
10
10
  import '../../@types/DataCombo.js';
@@ -4,7 +4,7 @@ import '../base/types.js';
4
4
  import 'react';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
  import '../types.js';
10
10
  import '../../@types/DataCombo.js';
@@ -6,7 +6,7 @@ import '../base/types.js';
6
6
  import 'react';
7
7
  import '../../@types/Align.js';
8
8
  import '../../@types/Period.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
  import '../types.js';
12
12
  import '../../@types/DataCombo.js';
@@ -4,7 +4,7 @@ import { IMaskHOCProps } from '../types.js';
4
4
  import { TextAlign } from '../../@types/Align.js';
5
5
  import 'react';
6
6
  import '../../@types/Period.js';
7
- import '../../tooltip/types.js';
7
+ import '../../internals/types.js';
8
8
  import '../../@types/Position.js';
9
9
  import '../../@types/DataCombo.js';
10
10
  import '../../drawer/types.js';
@@ -6,7 +6,7 @@ import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
7
  import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
 
12
12
  declare const Dialog: ({ onOpenChange, handlerClose, children, dialogSize }: IDialogProps) => JSX.Element;
@@ -6,7 +6,7 @@ import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
7
  import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
 
12
12
  declare const Dropdown: (props: IPeriodDropdownProps) => React.ReactPortal;
@@ -6,7 +6,7 @@ import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
7
  import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
 
12
12
  declare const PeriodList: ({ selected, handleOnSelect }: IPeriodListProps) => JSX.Element;
@@ -6,7 +6,7 @@ import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
7
  import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
 
12
12
  declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
@@ -6,7 +6,7 @@ import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
7
  import '../base/types.js';
8
8
  import '../../@types/Align.js';
9
- import '../../tooltip/types.js';
9
+ import '../../internals/types.js';
10
10
  import '../../@types/Position.js';
11
11
 
12
12
  declare const PeriodPicker: (props: IPeriodPickerProps) => JSX.Element | null;
@@ -43,7 +43,9 @@ const PeriodPicker = props => {
43
43
  hintPosition = 'below',
44
44
  themePopover = 'light',
45
45
  popoverAlign = 'left',
46
- gridLayout
46
+ gridLayout,
47
+ nameDateInitial = 'valueInitial',
48
+ nameDateFinal = 'valueFinal'
47
49
  } = props;
48
50
  const idValueInitial = (0, _react.useId)();
49
51
  const idValueFinal = (0, _react.useId)();
@@ -244,7 +246,7 @@ const PeriodPicker = props => {
244
246
  name: changingAux
245
247
  } = event.target;
246
248
  if (value && value.replace(/\D/g, '').trim().length !== 0) {
247
- if (changingAux === 'valueInitial') {
249
+ if (changingAux === nameDateInitial) {
248
250
  setValueInitial(undefined);
249
251
  } else {
250
252
  setValueFinal(undefined);
@@ -268,21 +270,21 @@ const PeriodPicker = props => {
268
270
  const dateObj = (0, _moment.default)(value, 'DD/MM/YYYY');
269
271
  if (showCalendarValueInitial) inputInitialRef.current?.focus();
270
272
  if (showCalendarValueFinal) inputFinalRef.current?.focus();
271
- if (valueDateName === 'valueFinal' && valueInitial && dateObj.isBefore(valueInitial)) {
273
+ if (valueDateName === nameDateFinal && valueInitial && dateObj.isBefore(valueInitial)) {
272
274
  setValueInitial(dateObj);
273
275
  setValueFinal(valueInitial);
274
276
  onDateChange({
275
277
  initial: dateObj,
276
278
  final: valueInitial
277
279
  });
278
- } else if (valueDateName === 'valueInitial' && valueFinal && dateObj.isAfter(valueFinal)) {
280
+ } else if (valueDateName === nameDateInitial && valueFinal && dateObj.isAfter(valueFinal)) {
279
281
  setValueInitial(valueFinal);
280
282
  setValueFinal(dateObj);
281
283
  onDateChange({
282
284
  initial: valueFinal,
283
285
  final: dateObj
284
286
  });
285
- } else if (valueDateName === 'valueInitial') {
287
+ } else if (valueDateName === nameDateInitial) {
286
288
  setValueInitial(dateObj);
287
289
  onDateChange({
288
290
  initial: dateObj,
@@ -295,7 +297,7 @@ const PeriodPicker = props => {
295
297
  final: dateObj
296
298
  });
297
299
  }
298
- if (valueDateName === 'valueInitial' && !valueFinal && shouldOpenDropdown) {
300
+ if (valueDateName === nameDateInitial && !valueFinal && shouldOpenDropdown) {
299
301
  inputFinalRef.current?.focus();
300
302
  setTimeout(() => setShowCalendarValueFinal(true), 100);
301
303
  }
@@ -405,7 +407,7 @@ const PeriodPicker = props => {
405
407
  handlerClose: () => onCloseDateDialog('valueInitial'),
406
408
  dialogSize: dialogSize,
407
409
  onOpenChange: setShowCalendarValueInitial
408
- }, getCalendar(valueInitial, calendarColorStyle, 'valueInitial'));
410
+ }, getCalendar(valueInitial, calendarColorStyle, nameDateInitial));
409
411
  }
410
412
  return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
411
413
  containerRef: wrapperBaseInputPeriodRef,
@@ -424,7 +426,7 @@ const PeriodPicker = props => {
424
426
  handlerClose: () => onCloseDateDialog('valueFinal'),
425
427
  dialogSize: dialogSize,
426
428
  onOpenChange: setShowCalendarValueFinal
427
- }, getCalendar(valueFinal, calendarColorStyle, 'valueFinal'));
429
+ }, getCalendar(valueFinal, calendarColorStyle, nameDateFinal));
428
430
  }
429
431
  return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
430
432
  containerRef: wrapperBaseInputPeriodRef,
@@ -1,11 +1,11 @@
1
1
  import { Moment } from 'moment';
2
- import { ReactNode, RefObject } from 'react';
2
+ import { ReactNode, RefObject, MouseEvent } from 'react';
3
3
  import { ColorStyles } from '../../@types/ColorStyles.js';
4
4
  import { Period } from '../../@types/Period.js';
5
5
  import { PermissionAttr } from '../../@types/PermissionAttr.js';
6
6
  import { CustomInputEvent } from '../base/types.js';
7
7
  import '../../@types/Align.js';
8
- import '../../tooltip/types.js';
8
+ import '../../internals/types.js';
9
9
  import '../../@types/Position.js';
10
10
 
11
11
  type DateTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
@@ -55,11 +55,14 @@ interface IPeriodPickerProps {
55
55
  calendarColorStyle?: ColorStyles;
56
56
  required?: boolean;
57
57
  onChange?: (event?: CustomInputEvent, maskValue?: string, date?: Period) => void;
58
+ onClick?: (event?: MouseEvent) => void;
58
59
  disabled?: boolean;
59
60
  permissionAttr?: PermissionAttr;
60
61
  errorMessages?: string[];
61
62
  name?: string;
62
63
  hint?: string;
64
+ nameDateInitial?: string;
65
+ nameDateFinal?: string;
63
66
  hintPosition?: 'below' | 'onLabelRight';
64
67
  onBlur?: (e: CustomInputEvent) => void;
65
68
  onFocus?: (e: CustomInputEvent) => void;