linear-react-components-ui 1.1.24-beta.1 → 1.1.24-beta.11

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 (270) hide show
  1. package/lib/BaseMask-0c14ef51.d.ts +24 -0
  2. package/lib/Cnpj-bde01dd0.d.ts +18 -0
  3. package/lib/Cpf-3fa496ad.d.ts +18 -0
  4. package/lib/Phone-2bb0b397.d.ts +18 -0
  5. package/lib/ZipCode-09460e18.d.ts +13 -0
  6. package/lib/alerts/AlertProvider.js +1 -2
  7. package/lib/alerts/BaseAlert.js +1 -1
  8. package/lib/alerts/Message.js +2 -3
  9. package/lib/alerts/withAlert.js +1 -2
  10. package/lib/assets/styles/button.scss +1 -1
  11. package/lib/assets/styles/calendar.scss +137 -32
  12. package/lib/assets/styles/datepicker2.scss +8 -10
  13. package/lib/assets/styles/dialog.scss +1 -1
  14. package/lib/assets/styles/fieldset.scss +1 -1
  15. package/lib/assets/styles/file.scss +8 -0
  16. package/lib/assets/styles/filefield.scss +42 -0
  17. package/lib/assets/styles/gridlayout.scss +20 -19
  18. package/lib/assets/styles/multiSelect.scss +6 -6
  19. package/lib/assets/styles/numberfield.scss +18 -0
  20. package/lib/assets/styles/radiofield.scss +185 -0
  21. package/lib/assets/styles/selectfield.scss +6 -4
  22. package/lib/assets/styles/table.scss +6 -0
  23. package/lib/assets/styles/tabs.scss +6 -2
  24. package/lib/assets/styles/textfield.scss +66 -28
  25. package/lib/avatar/index.js +9 -11
  26. package/lib/badge/index.js +4 -4
  27. package/lib/buttons/Button.js +1 -2
  28. package/lib/buttons/DangerButton.js +1 -1
  29. package/lib/buttons/DefaultButton.js +6 -15
  30. package/lib/buttons/InfoButton.js +1 -1
  31. package/lib/buttons/PrimaryButton.js +1 -1
  32. package/lib/buttons/SuccessButton.js +1 -1
  33. package/lib/buttons/WarningButton.js +1 -1
  34. package/lib/buttons/button_container/index.js +1 -1
  35. package/lib/buttons/split_button/index.js +2 -2
  36. package/lib/calendar/base/helpers.js +2 -2
  37. package/lib/calendar/base/index.js +123 -44
  38. package/lib/checkbox/index.js +2 -3
  39. package/lib/dialog/Custom.js +2 -3
  40. package/lib/dialog/Question.js +5 -4
  41. package/lib/dialog/base/Content.js +5 -6
  42. package/lib/dialog/base/Header.js +3 -4
  43. package/lib/dialog/base/index.js +33 -23
  44. package/lib/dialog/form/index.js +52 -12
  45. package/lib/dialog/types.d.ts +4 -0
  46. package/lib/dialog/wizard/index.js +1 -2
  47. package/lib/dialog/wizard/progressbar.js +1 -1
  48. package/lib/dialog/wizard/step.js +1 -1
  49. package/lib/dialog/wizard/useWizard.js +1 -2
  50. package/lib/drawer/Content.js +1 -2
  51. package/lib/drawer/Drawer.js +6 -7
  52. package/lib/drawer/Header.js +2 -3
  53. package/lib/dropdown/Popup.js +7 -7
  54. package/lib/dropdown/helper.js +1 -1
  55. package/lib/dropdown/withDropdown.js +3 -4
  56. package/lib/fieldset/index.js +8 -9
  57. package/lib/form/Field.js +2 -3
  58. package/lib/form/FieldArray.js +2 -3
  59. package/lib/form/FieldNumber.js +4 -5
  60. package/lib/form/FieldPeriod.js +3 -4
  61. package/lib/form/index.js +3 -4
  62. package/lib/form/withFieldHOC.js +1 -2
  63. package/lib/form/withFormSecurity.js +1 -2
  64. package/lib/form2/helpers.js +1 -1
  65. package/lib/form2/index.d.ts +1 -1
  66. package/lib/form2/types.d.ts +7 -3
  67. package/lib/form2/useForm/index.js +22 -15
  68. package/lib/gridlayout/GridCol.js +5 -5
  69. package/lib/gridlayout/GridRow.js +1 -4
  70. package/lib/hint/index.js +1 -7
  71. package/lib/icons/helper.d.ts +16 -0
  72. package/lib/icons/helper.js +16 -0
  73. package/lib/icons/index.js +9 -9
  74. package/lib/index-19761a50.d.ts +26 -0
  75. package/lib/index-208e7f62.d.ts +44 -0
  76. package/lib/index-35ba9ed8.d.ts +15 -0
  77. package/lib/index-3b70931d.d.ts +44 -0
  78. package/lib/index-7dfa8924.d.ts +22 -0
  79. package/lib/index-9e576346.d.ts +23 -0
  80. package/lib/index-ecafc8c6.d.ts +30 -0
  81. package/lib/index-efe0a0e4.d.ts +41 -0
  82. package/lib/inputs/base/InputTextBase.js +9 -8
  83. package/lib/inputs/base/helpers.js +3 -7
  84. package/lib/inputs/base/types.d.ts +1 -1
  85. package/lib/inputs/color/index.js +2 -3
  86. package/lib/inputs/date/Dropdown.js +6 -4
  87. package/lib/inputs/date/index.js +31 -19
  88. package/lib/inputs/errorMessage/index.js +2 -3
  89. package/lib/inputs/file/DefaultFile.js +31 -31
  90. package/lib/inputs/file/DragDropFile.js +18 -17
  91. package/lib/inputs/file/File.js +6 -5
  92. package/lib/inputs/file/FileButtonSettings.js +0 -1
  93. package/lib/inputs/file/index.js +0 -1
  94. package/lib/inputs/inputHOC.js +1 -2
  95. package/lib/inputs/mask/BaseMask.js +1 -2
  96. package/lib/inputs/mask/Cnpj.js +1 -2
  97. package/lib/inputs/mask/Cpf.js +1 -2
  98. package/lib/inputs/multiSelect/ActionButtons.js +1 -2
  99. package/lib/inputs/multiSelect/Dropdown.js +12 -12
  100. package/lib/inputs/multiSelect/helper.js +2 -1
  101. package/lib/inputs/multiSelect/index.js +28 -11
  102. package/lib/inputs/number/BaseNumber.js +1 -1
  103. package/lib/inputs/number/index.js +3 -3
  104. package/lib/inputs/period/Dropdown.js +7 -4
  105. package/lib/inputs/period/PeriodList.js +1 -1
  106. package/lib/inputs/period/helper.js +1 -3
  107. package/lib/inputs/period/index.js +66 -40
  108. package/lib/inputs/period/types.d.ts +4 -1
  109. package/lib/inputs/search/index.js +8 -5
  110. package/lib/inputs/select/ActionButtons.js +1 -1
  111. package/lib/inputs/select/Dropdown.js +3 -4
  112. package/lib/inputs/select/helper.js +13 -10
  113. package/lib/inputs/select/multiple/Selecteds.js +2 -2
  114. package/lib/inputs/select/multiple/index.js +14 -11
  115. package/lib/inputs/select/simple/index.js +19 -13
  116. package/lib/inputs/textarea/index.js +1 -1
  117. package/lib/inputs/types.d.ts +1 -0
  118. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  119. package/lib/inputs2/checkboxfield/index.js +18 -15
  120. package/lib/inputs2/colorfield/index.d.ts +2 -2
  121. package/lib/inputs2/colorfield/index.js +5 -5
  122. package/lib/inputs2/date/base/constants.js +2 -1
  123. package/lib/inputs2/date/base/index.js +6 -8
  124. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  125. package/lib/inputs2/date/datefield/calendarbox.js +3 -2
  126. package/lib/inputs2/date/datefield/context.d.ts +1 -0
  127. package/lib/inputs2/date/datefield/index.d.ts +1 -0
  128. package/lib/inputs2/date/datefield/index.js +44 -33
  129. package/lib/inputs2/date/datefield/triggers.js +1 -2
  130. package/lib/inputs2/date/datefield/types.d.ts +2 -0
  131. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  132. package/lib/inputs2/date/dateperiodfield/calendarbox.js +8 -6
  133. package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
  134. package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
  135. package/lib/inputs2/date/dateperiodfield/index.js +66 -48
  136. package/lib/inputs2/date/dateperiodfield/triggers.js +19 -14
  137. package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
  138. package/lib/inputs2/date/helpers.d.ts +1 -0
  139. package/lib/inputs2/date/types.d.ts +2 -1
  140. package/lib/inputs2/{number/Number.d.ts → filefield/index.d.ts} +2 -2
  141. package/lib/inputs2/filefield/index.js +174 -0
  142. package/lib/inputs2/index.d.ts +20 -14
  143. package/lib/inputs2/index.js +10 -11
  144. package/lib/inputs2/mask/BaseMask.d.ts +2 -2
  145. package/lib/inputs2/mask/BaseMask.js +7 -7
  146. package/lib/inputs2/mask/Cnpj.d.ts +3 -3
  147. package/lib/inputs2/mask/Cnpj.js +4 -5
  148. package/lib/inputs2/mask/Cpf.d.ts +3 -3
  149. package/lib/inputs2/mask/Cpf.js +4 -5
  150. package/lib/inputs2/mask/Phone.d.ts +3 -3
  151. package/lib/inputs2/mask/Phone.js +1 -2
  152. package/lib/inputs2/mask/ZipCode.d.ts +3 -3
  153. package/lib/inputs2/mask/ZipCode.js +1 -2
  154. package/lib/inputs2/numberfield/currency.d.ts +13 -0
  155. package/lib/inputs2/numberfield/currency.js +91 -0
  156. package/lib/inputs2/numberfield/decimal.d.ts +13 -0
  157. package/lib/inputs2/{number/BaseNumber.js → numberfield/decimal.js} +57 -58
  158. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  159. package/lib/inputs2/numberfield/helpers.js +53 -0
  160. package/lib/inputs2/numberfield/index.d.ts +12 -0
  161. package/lib/inputs2/numberfield/index.js +104 -0
  162. package/lib/inputs2/numberfield/types.d.ts +36 -0
  163. package/lib/inputs2/numberfield/types.js +5 -0
  164. package/lib/inputs2/{number/BaseNumber.d.ts → radiofield/index.d.ts} +4 -5
  165. package/lib/inputs2/radiofield/index.js +144 -0
  166. package/lib/inputs2/radiofield/types.d.ts +33 -0
  167. package/lib/inputs2/radiofield/types.js +5 -0
  168. package/lib/inputs2/selectfield/context.d.ts +1 -0
  169. package/lib/inputs2/selectfield/index.d.ts +2 -1
  170. package/lib/inputs2/selectfield/index.js +118 -58
  171. package/lib/inputs2/selectfield/item.d.ts +2 -1
  172. package/lib/inputs2/selectfield/item.js +8 -4
  173. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  174. package/lib/inputs2/selectfield/listbox.js +24 -10
  175. package/lib/inputs2/selectfield/options.d.ts +9 -0
  176. package/lib/inputs2/selectfield/options.js +26 -0
  177. package/lib/inputs2/selectfield/search.d.ts +1 -1
  178. package/lib/inputs2/selectfield/search.js +3 -4
  179. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  180. package/lib/inputs2/selectfield/selections.js +3 -2
  181. package/lib/inputs2/selectfield/triggers.js +17 -8
  182. package/lib/inputs2/selectfield/types.d.ts +0 -1
  183. package/lib/inputs2/slot/index.d.ts +2 -2
  184. package/lib/inputs2/{number/Decimal.d.ts → textareafield/index.d.ts} +2 -5
  185. package/lib/inputs2/textareafield/index.js +194 -0
  186. package/lib/inputs2/textfield/index.d.ts +1 -1
  187. package/lib/inputs2/textfield/index.js +18 -17
  188. package/lib/labelMessages/index.js +4 -6
  189. package/lib/labels/DefaultLabel.js +2 -6
  190. package/lib/labels/label_container/index.js +1 -1
  191. package/lib/list/Header.js +1 -1
  192. package/lib/list/Item.js +10 -12
  193. package/lib/list/index.js +2 -4
  194. package/lib/menus/float/MenuItem.js +3 -4
  195. package/lib/menus/float/SubMenuContainer.js +2 -3
  196. package/lib/menus/float/index.js +1 -1
  197. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  198. package/lib/menus/sidenav/MenuLink.js +1 -2
  199. package/lib/menus/sidenav/NavMenuGroup.js +2 -3
  200. package/lib/menus/sidenav/NavMenuItem.js +10 -9
  201. package/lib/menus/sidenav/NavSubMenuItem.js +2 -3
  202. package/lib/menus/sidenav/helpers.js +1 -1
  203. package/lib/menus/sidenav/index.js +6 -7
  204. package/lib/menus/sidenav/popup_menu_search/index.js +1 -2
  205. package/lib/panel/Content.js +9 -8
  206. package/lib/panel/Default.js +3 -4
  207. package/lib/panel/Header.js +4 -5
  208. package/lib/permissionValidations.js +1 -1
  209. package/lib/popover/PopoverText.js +1 -2
  210. package/lib/popover/index.js +1 -1
  211. package/lib/progress/Bar.js +6 -6
  212. package/lib/radio/index.js +3 -4
  213. package/lib/shortcuts/index.js +1 -1
  214. package/lib/skeleton/SkeletonContainer.js +1 -2
  215. package/lib/skeleton/index.js +1 -4
  216. package/lib/spinner/index.js +3 -4
  217. package/lib/split/Split.js +2 -3
  218. package/lib/split/SplitSide.js +4 -5
  219. package/lib/table/Body.js +4 -5
  220. package/lib/table/Header.js +9 -7
  221. package/lib/table/HeaderColumn.js +2 -3
  222. package/lib/table/Row.js +4 -5
  223. package/lib/table/RowColumn.js +2 -3
  224. package/lib/table/index.js +20 -16
  225. package/lib/table/types.d.ts +1 -0
  226. package/lib/tabs/DropdownTabs.js +2 -3
  227. package/lib/tabs/Menu.js +1 -1
  228. package/lib/tabs/MenuTabs.js +4 -9
  229. package/lib/tabs/Panel.js +8 -7
  230. package/lib/tabs/context.js +7 -5
  231. package/lib/tabs/index.js +3 -4
  232. package/lib/textContent/index.js +2 -3
  233. package/lib/toolbar/ButtonBar.js +2 -3
  234. package/lib/toolbar/LabelBar.js +1 -2
  235. package/lib/toolbar/index.js +1 -1
  236. package/lib/tooltip/TooltipContent.js +8 -9
  237. package/lib/tooltip/useTooltip.js +8 -8
  238. package/lib/treetable/Body.js +2 -3
  239. package/lib/treetable/Header.js +3 -4
  240. package/lib/treetable/Row.js +9 -10
  241. package/lib/treeview/Header.js +1 -1
  242. package/lib/treeview/Node.js +5 -6
  243. package/lib/treeview/index.js +5 -6
  244. package/lib/uitour/index.js +9 -8
  245. package/package.json +1 -1
  246. package/lib/BaseMask-04df8f20.d.ts +0 -24
  247. package/lib/BaseNumber-c609c5a0.d.ts +0 -23
  248. package/lib/Cnpj-5471cb1f.d.ts +0 -18
  249. package/lib/Cpf-71c4f0f4.d.ts +0 -18
  250. package/lib/Currency-38d14ff7.d.ts +0 -18
  251. package/lib/Decimal-85d45244.d.ts +0 -13
  252. package/lib/Number-db3c092d.d.ts +0 -20
  253. package/lib/Phone-4c4142e4.d.ts +0 -18
  254. package/lib/ZipCode-dc7dd4da.d.ts +0 -13
  255. package/lib/calendar/base/Day.d.ts +0 -8
  256. package/lib/calendar/base/Day.js +0 -36
  257. package/lib/calendar/base/Month.d.ts +0 -8
  258. package/lib/calendar/base/Month.js +0 -39
  259. package/lib/calendar/base/Week.d.ts +0 -8
  260. package/lib/calendar/base/Week.js +0 -35
  261. package/lib/index-379b7504.d.ts +0 -44
  262. package/lib/index-7cb5e8b3.d.ts +0 -41
  263. package/lib/index-809a7899.d.ts +0 -23
  264. package/lib/index-de21a05e.d.ts +0 -23
  265. package/lib/inputs2/number/Currency.d.ts +0 -11
  266. package/lib/inputs2/number/Currency.js +0 -47
  267. package/lib/inputs2/number/Decimal.js +0 -36
  268. package/lib/inputs2/number/Number.js +0 -49
  269. package/lib/inputs2/number/format_number.d.ts +0 -5
  270. package/lib/inputs2/number/format_number.js +0 -29
@@ -0,0 +1,24 @@
1
+ import React__default from 'react';
2
+ import { T as TextFieldInputProps } from './index-3b70931d.js';
3
+ import { FactoryOpts } from 'imask';
4
+
5
+ interface MaskFieldProps extends TextFieldInputProps {
6
+ maskOptions?: FactoryOpts;
7
+ onAccept?: (value: string) => void;
8
+ onComplete?: (value: string, maskRef: any, e?: InputEvent) => void;
9
+ onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
10
+ autoCompleteMask?: string;
11
+ value?: string;
12
+ }
13
+ declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
14
+
15
+ declare const BaseMask_Input: typeof Input;
16
+ type BaseMask_MaskFieldProps = MaskFieldProps;
17
+ declare namespace BaseMask {
18
+ export {
19
+ BaseMask_Input as Input,
20
+ BaseMask_MaskFieldProps as MaskFieldProps,
21
+ };
22
+ }
23
+
24
+ export { BaseMask as B, Input as I, MaskFieldProps as M };
@@ -0,0 +1,18 @@
1
+ import React__default from 'react';
2
+ import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
3
+
4
+ interface CnpjFieldProps extends MaskFieldProps {
5
+ onValidate?: (errors: string[]) => void;
6
+ }
7
+ declare const Input: React__default.ForwardRefExoticComponent<CnpjFieldProps & React__default.RefAttributes<HTMLInputElement>>;
8
+
9
+ type Cnpj_CnpjFieldProps = CnpjFieldProps;
10
+ declare const Cnpj_Input: typeof Input;
11
+ declare namespace Cnpj {
12
+ export {
13
+ Cnpj_CnpjFieldProps as CnpjFieldProps,
14
+ Cnpj_Input as Input,
15
+ };
16
+ }
17
+
18
+ export { Cnpj as C, Input as I, CnpjFieldProps as a };
@@ -0,0 +1,18 @@
1
+ import React__default from 'react';
2
+ import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
3
+
4
+ interface CpfFieldProps extends MaskFieldProps {
5
+ onValidate?: (errors: string[]) => void;
6
+ }
7
+ declare const Input: React__default.ForwardRefExoticComponent<CpfFieldProps & React__default.RefAttributes<HTMLInputElement>>;
8
+
9
+ type Cpf_CpfFieldProps = CpfFieldProps;
10
+ declare const Cpf_Input: typeof Input;
11
+ declare namespace Cpf {
12
+ export {
13
+ Cpf_CpfFieldProps as CpfFieldProps,
14
+ Cpf_Input as Input,
15
+ };
16
+ }
17
+
18
+ export { Cpf as C, Input as I, CpfFieldProps as a };
@@ -0,0 +1,18 @@
1
+ import React__default from 'react';
2
+ import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
3
+
4
+ interface PhoneFieldProps extends MaskFieldProps {
5
+ isCellphone?: boolean;
6
+ }
7
+ declare const Input: React__default.ForwardRefExoticComponent<PhoneFieldProps & React__default.RefAttributes<HTMLInputElement>>;
8
+
9
+ declare const Phone_Input: typeof Input;
10
+ type Phone_PhoneFieldProps = PhoneFieldProps;
11
+ declare namespace Phone {
12
+ export {
13
+ Phone_Input as Input,
14
+ Phone_PhoneFieldProps as PhoneFieldProps,
15
+ };
16
+ }
17
+
18
+ export { Input as I, Phone as P, PhoneFieldProps as a };
@@ -0,0 +1,13 @@
1
+ import React__default from 'react';
2
+ import { M as MaskFieldProps } from './BaseMask-0c14ef51.js';
3
+
4
+ declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
5
+
6
+ declare const ZipCode_Input: typeof Input;
7
+ declare namespace ZipCode {
8
+ export {
9
+ ZipCode_Input as Input,
10
+ };
11
+ }
12
+
13
+ export { Input as I, ZipCode as Z };
@@ -11,8 +11,7 @@ var _AlertContainer = _interopRequireDefault(require("./AlertContainer"));
11
11
  var _Message = _interopRequireDefault(require("./Message"));
12
12
  var _helpers = _interopRequireDefault(require("./helpers"));
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
15
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -26,7 +26,7 @@ const BaseAlert = _ref => {
26
26
  alert.appendChild(messageContainerEl);
27
27
  }
28
28
  return () => {
29
- alert?.removeChild(messageContainerEl);
29
+ alert === null || alert === void 0 ? void 0 : alert.removeChild(messageContainerEl);
30
30
  };
31
31
  }, []);
32
32
  return /*#__PURE__*/_reactDom.default.createPortal(children, messageContainerEl);
@@ -8,14 +8,13 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _icons = _interopRequireDefault(require("../icons"));
9
9
  var _progress = _interopRequireDefault(require("../progress"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
12
  const getClass = _ref => {
14
13
  let {
15
14
  customClass,
16
15
  className
17
16
  } = _ref;
18
- return `${className} ${customClass}`;
17
+ return "".concat(className, " ").concat(customClass);
19
18
  };
20
19
  const getIcon = (icon, iconName, color) => {
21
20
  if (icon !== null) {
@@ -7,8 +7,7 @@ exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _helpers = _interopRequireDefault(require("./helpers"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
11
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
12
  const withAlert = WrapperComponent => {
14
13
  const GetAlert = props => {
@@ -366,7 +366,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
366
366
  border-color: transparent !important;
367
367
  transition: none;
368
368
 
369
- > svg {
369
+ svg {
370
370
  opacity: 0;
371
371
  visibility: hidden;
372
372
  }
@@ -1,9 +1,9 @@
1
-
2
1
  @import "colors.scss";
3
2
  @import "commons.scss";
4
3
 
5
4
  $padding-size: 10px;
6
5
  $border-radius-size: 5px;
6
+
7
7
  .calendar-component {
8
8
  width: auto;
9
9
  height: 100%;
@@ -13,8 +13,9 @@ $border-radius-size: 5px;
13
13
  flex-direction: column;
14
14
  border-radius: $border-radius-size;
15
15
  border: 1px solid $component-border-color;
16
- > .calendarheader,
17
- > .daynames {
16
+
17
+ >.calendarheader,
18
+ >.daynames {
18
19
  width: auto;
19
20
  height: 1.85rem;
20
21
  display: grid;
@@ -22,7 +23,8 @@ $border-radius-size: 5px;
22
23
  background-color: #f0f0f0;
23
24
  grid-template-columns: 20px 1fr 30px;
24
25
  }
25
- > .calendarheader {
26
+
27
+ >.calendarheader {
26
28
  width: auto;
27
29
  height: 32px;
28
30
  padding-top: 4px;
@@ -31,7 +33,8 @@ $border-radius-size: 5px;
31
33
  justify-content: space-between;
32
34
  border-top-left-radius: $border-radius-size;
33
35
  border-top-right-radius: $border-radius-size;
34
- > .navbutton {
36
+
37
+ >.navbutton {
35
38
  width: 2rem;
36
39
  height: 2rem;
37
40
  padding: 0;
@@ -42,21 +45,26 @@ $border-radius-size: 5px;
42
45
  background-color: transparent;
43
46
  font-weight: bold;
44
47
  border: none;
48
+
45
49
  svg {
46
50
  margin: 0;
47
51
  }
52
+
48
53
  &:hover {
49
54
  background-color: $component-border-color;
50
55
  }
56
+
51
57
  &:focus {
52
58
  -webkit-box-shadow: none !important;
53
59
  box-shadow: none !important;
54
60
  border: 1px solid $default-border-color;
55
61
  background-color: $component-border-color;
56
62
  }
63
+
57
64
  transition: none;
58
65
  }
59
- > .monthname {
66
+
67
+ >.monthname {
60
68
  font-weight: bold;
61
69
  vertical-align: middle;
62
70
  text-align: center;
@@ -64,117 +72,209 @@ $border-radius-size: 5px;
64
72
  font-size: 14px;
65
73
  }
66
74
  }
67
- > .daynames {
75
+
76
+ >.daynames {
68
77
  padding-top: 4px;
69
78
  border-bottom: 1px solid $component-border-color;
70
79
  grid-template-columns: repeat(7, 1fr);
71
80
  text-align: center;
72
81
  }
73
- > .calendarmonth {
82
+
83
+ >.calendarmonth {
74
84
  width: 100%;
75
85
  height: 100%;
76
86
  flex: 1;
77
87
  display: grid;
78
- grid-template-rows: repeat(6, 1fr);
79
88
  padding: 2px;
80
89
  background-color: $font-color-second;
81
90
  border-bottom-left-radius: $border-radius-size;
82
91
  border-bottom-right-radius: $border-radius-size;
83
92
  }
84
- > .calendarmonth > .monthweek {
93
+
94
+ >.calendarmonth>.monthweek {
85
95
  text-align: center;
86
96
  display: grid;
87
97
  grid-template-columns: repeat(7, 1fr)
88
98
  }
89
- .calendarmonth > .monthweek > .monthday {
99
+
100
+ .calendarmonth>.monthweek>.monthday {
90
101
  height: auto;
91
102
  width: auto;
92
103
  text-align: center;
93
104
  border-right: 0;
94
105
  border-bottom: 0;
95
106
  transition: all 0.2s ease-in-out;
96
- > .daybutton {
107
+
108
+ >.daybutton {
97
109
  height: 100%;
98
110
  width: 100%;
99
111
  padding: 0;
100
112
  font-size: 13px;
101
113
  border: none;
102
114
  background-color: transparent;
115
+
103
116
  &.-nowday {
104
117
  font-weight: bold
105
118
  }
119
+
106
120
  &.-outmonth {
107
121
  color: #777;
108
122
  }
123
+
109
124
  &:focus {
110
125
  -webkit-box-shadow: none !important;
111
126
  box-shadow: none !important;
112
127
  border: 2px solid $default-border-color;
113
128
  }
129
+
114
130
  transition: none;
115
131
  }
132
+
116
133
  &:hover {
117
134
  background-color: $component-border-color;
118
135
  border-radius: 4px;
119
136
  }
137
+
120
138
  &.-selectedday {
121
139
  background-color: $font-selected-color;
122
140
  border-radius: 4px;
123
141
  }
124
- &.-selectedday > .daybutton {
142
+
143
+ &.-selectedday>.daybutton {
125
144
  color: $font-color-second;
126
145
  }
127
146
  }
128
147
  }
129
148
 
130
149
  .calendar-component {
131
- &.-success, &.-primary, &.-info, &.-warning, &.-danger {
132
- > .calendarheader, >.daynames {
150
+
151
+ &.-success,
152
+ &.-primary,
153
+ &.-info,
154
+ &.-warning,
155
+ &.-danger {
156
+
157
+ >.calendarheader,
158
+ >.daynames {
133
159
  color: $font-color-second;
134
160
  }
161
+
162
+ .navbutton {
163
+ svg {
164
+ fill: $font-color-second;
165
+ }
166
+ }
135
167
  }
168
+
136
169
  &.-success {
137
- border: none;
138
- > .calendarheader, >.daynames {
170
+
171
+ >.calendarheader,
172
+ >.daynames {
139
173
  background-color: $success-color;
140
174
  }
175
+
176
+ .navbutton {
177
+ &:focus {
178
+ background-color: $success-actived-color;
179
+ border-color: $success-border-color;
180
+ }
181
+
182
+ &:hover {
183
+ background-color: $success-hover-color;
184
+ }
185
+ }
141
186
  }
187
+
142
188
  &.-primary {
143
- border: none;
144
- > .calendarheader, >.daynames {
189
+
190
+ >.calendarheader,
191
+ >.daynames {
145
192
  background-color: $primary-color;
146
193
  }
194
+
195
+ .navbutton {
196
+ &:focus {
197
+ background-color: $primary-actived-color;
198
+ border-color: $primary-border-color;
199
+ }
200
+
201
+ &:hover {
202
+ background-color: $primary-hover-color;
203
+ }
204
+ }
147
205
  }
206
+
148
207
  &.-info {
149
- border: none;
150
- > .calendarheader, >.daynames {
208
+
209
+ >.calendarheader,
210
+ >.daynames {
151
211
  background-color: $info-color;
152
212
  }
213
+
214
+ .navbutton {
215
+ &:focus {
216
+ background-color: $info-actived-color;
217
+ border-color: $info-border-color;
218
+ }
219
+
220
+ &:hover {
221
+ background-color: $info-hover-color;
222
+ }
223
+ }
153
224
  }
225
+
154
226
  &.-warning {
155
- border: none;
156
- > .calendarheader, >.daynames {
227
+
228
+ >.calendarheader,
229
+ >.daynames {
157
230
  background-color: $warning-color;
158
231
  }
232
+
233
+ .navbutton {
234
+ &:focus {
235
+ background-color: $warning-actived-color;
236
+ border-color: $warning-border-color;
237
+ }
238
+
239
+ &:hover {
240
+ background-color: $warning-hover-color;
241
+ }
242
+ }
159
243
  }
244
+
160
245
  &.-danger {
161
- border: none;
162
- > .calendarheader, >.daynames {
246
+
247
+ >.calendarheader,
248
+ >.daynames {
163
249
  background-color: $danger-color;
164
250
  }
251
+
252
+ .navbutton {
253
+ &:focus {
254
+ background-color: $danger-actived-color;
255
+ border-color: $danger-border-color;
256
+ }
257
+
258
+ &:hover {
259
+ background-color: $danger-hover-color;
260
+ }
261
+ }
165
262
  }
166
263
  }
167
264
 
168
265
  //Add border to days container
169
266
  .calendar-component.-draw-grid-lines {
170
- > .calendarmonth > .monthweek {
267
+ >.calendarmonth>.monthweek {
171
268
  border-bottom: 1px solid $component-border-color;
269
+
172
270
  &:first-child {
173
271
  border-top: 1px solid $component-border-color;
174
272
  }
175
273
  }
176
- > .calendarmonth > .monthweek > .monthday {
274
+
275
+ >.calendarmonth>.monthweek>.monthday {
177
276
  border-left: 1px solid $component-border-color;
277
+
178
278
  &:last-child {
179
279
  border-right: 1px solid $component-border-color;
180
280
  }
@@ -183,24 +283,29 @@ $border-radius-size: 5px;
183
283
 
184
284
  //Remove padding
185
285
  .calendar-component.-unpadding {
186
- > .calendarmonth, > .daynames {
286
+
287
+ >.calendarmonth,
288
+ >.daynames {
187
289
  padding: 0;
188
290
  }
189
- > .calendarmonth > .monthweek {
291
+
292
+ >.calendarmonth>.monthweek {
190
293
  &:first-child {
191
294
  border-top: 0px;
192
295
  }
296
+
193
297
  &:last-child {
194
298
  border-bottom: 0px;
195
299
  }
196
300
  }
197
- > .calendarmonth > .monthweek > .monthday {
301
+
302
+ >.calendarmonth>.monthweek>.monthday {
198
303
  &:last-child {
199
304
  border-right: 0px
200
305
  }
306
+
201
307
  &:first-child {
202
308
  border-left: 0;
203
309
  }
204
310
  }
205
- }
206
-
311
+ }
@@ -48,9 +48,6 @@ input::-webkit-inner-spin-button {
48
48
  font-size: 0.875rem;
49
49
  margin-left: 1px;
50
50
  }
51
- &[data-state-read-only=true], &[data-state-disabled=true] {
52
- pointer-events: none;
53
- }
54
51
  }
55
52
  >button {
56
53
  width: 20px;
@@ -85,10 +82,9 @@ input::-webkit-inner-spin-button {
85
82
  }
86
83
  &:has(input[data-state-read-only=true]) {
87
84
  cursor: default;
88
- pointer-events: none;
89
85
  background-color: $input-read-only-bg-color;
90
86
  }
91
- &:has(input:focus) {
87
+ &:has(input:focus:not([data-state-read-only=true])) {
92
88
  box-shadow: 0 3px 0 $component-selected-color;
93
89
  transition: box-shadow 250ms cubic-bezier(.19, .62, .58, .98) 100ms;
94
90
  }
@@ -110,13 +106,18 @@ input::-webkit-inner-spin-button {
110
106
  .input {
111
107
  @extend %input-placeholder;
112
108
  @extend %component-fonts;
113
- flex-grow: 1;
109
+ flex: 1;
110
+ height: 100%;
111
+ width: 100%;
114
112
  padding: 6px;
115
113
  font-size: 0.875rem;
116
114
  text-indent: 0.375rem;
117
115
  line-height: 0.875rem;
118
116
  border: none;
119
117
  background-color: transparent;
118
+ overflow: hidden;
119
+ text-overflow: ellipsis;
120
+ white-space: nowrap;
120
121
  &[data-state-text-align=left] {
121
122
  text-align: left;
122
123
  }
@@ -159,7 +160,7 @@ input::-webkit-inner-spin-button {
159
160
  width: 22px;
160
161
  height: 100%;
161
162
  padding: 0;
162
- margin: 0px 4px;
163
+ margin: 0px 2px;
163
164
  outline: none;
164
165
  border: none;
165
166
  vertical-align: bottom;
@@ -178,9 +179,6 @@ input::-webkit-inner-spin-button {
178
179
  &[data-state-valid-date-selected=false] {
179
180
  visibility: hidden;
180
181
  }
181
- &[data-state-valid-date-selected=true] {
182
- visibility: visible;
183
- }
184
182
  }
185
183
  &[data-state-read-only=true],
186
184
  &[data-state-disabled=true] {
@@ -96,7 +96,7 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
96
96
  }
97
97
  }
98
98
  }
99
- .footer {
99
+ > .footer {
100
100
  bottom: 0px;
101
101
  background: #ffffff;
102
102
  padding: 10px 0 8px 8px;
@@ -64,7 +64,7 @@
64
64
  background-color: $fieldset-default;
65
65
  text-transform: uppercase;
66
66
  border-radius: 0px 10px 0px 0px;
67
- z-index: 9;
67
+ z-index: 0;
68
68
  display: flex;
69
69
  align-items: center;
70
70
  gap: 8px;
@@ -170,6 +170,14 @@
170
170
  }
171
171
 
172
172
  .input-simple-file-container {
173
+ .file-content {
174
+ flex: 1;
175
+ }
176
+
177
+ .file-wrapper {
178
+ align-items: center;
179
+ }
180
+
173
181
  .-disabledVisualApply {
174
182
  background: #fff5e5 !important;
175
183
  > .size-position-icon {
@@ -0,0 +1,42 @@
1
+ @import "colors.scss";
2
+ @import "effects";
3
+ @import "commons.scss";
4
+
5
+ ::-webkit-file-upload-button {
6
+ display: none;
7
+ }
8
+
9
+ .file-container {
10
+ &:has(input[type="text"], input.file-input) {
11
+ background-color: $input-read-only-bg-color;
12
+ }
13
+
14
+ .file-input[type="text"] {
15
+ line-height: normal;
16
+ caret-color: transparent;
17
+ &::selection {
18
+ color: inherit;
19
+ }
20
+ }
21
+
22
+ .file-right-slot {
23
+ display: flex;
24
+ flex-direction: row;
25
+
26
+ .show-files-selected-list,
27
+ .clear-files-selected,
28
+ .select-files {
29
+ padding: 8px;
30
+
31
+ svg {
32
+ margin: 0px;
33
+ }
34
+
35
+ &.select-files {
36
+ border-radius: 0;
37
+ border: 0px;
38
+ border-left: 1px solid $component-border-color;
39
+ }
40
+ }
41
+ }
42
+ }