linear-react-components-ui 0.4.77-beta.25 → 0.4.77-beta.26

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 (366) hide show
  1. package/.eslintrc.json +2 -0
  2. package/.vscode/settings.json +2 -2
  3. package/babel.config.json +11 -0
  4. package/dist/main.js +14 -0
  5. package/lib/@types/Align.d.ts +3 -0
  6. package/lib/@types/ButtonTypes.d.ts +3 -0
  7. package/lib/@types/ColorStyles.d.ts +3 -0
  8. package/lib/@types/DataCombo.d.ts +3 -0
  9. package/lib/@types/Icon.d.ts +5 -0
  10. package/lib/@types/LabelStyles.d.ts +3 -0
  11. package/lib/@types/Period.d.ts +6 -0
  12. package/lib/@types/PermissionAttr.d.ts +14 -0
  13. package/lib/@types/PointerEvents.d.ts +3 -0
  14. package/lib/@types/Position.d.ts +3 -0
  15. package/lib/@types/PositionAlert.d.ts +3 -0
  16. package/lib/@types/Size.d.ts +3 -0
  17. package/lib/@types/SizePixels.d.ts +3 -0
  18. package/lib/@types/StorageMock.d.ts +5 -0
  19. package/lib/alerts/AlertContainer.d.ts +16 -0
  20. package/lib/alerts/AlertProvider.d.ts +7 -0
  21. package/lib/alerts/AlertProvider.js +1 -1
  22. package/lib/alerts/BaseAlert.d.ts +7 -0
  23. package/lib/alerts/Message.d.ts +7 -0
  24. package/lib/alerts/alert.spec.js +27 -54
  25. package/lib/alerts/helpers.d.ts +7 -0
  26. package/lib/alerts/index.d.ts +6 -0
  27. package/lib/alerts/types.d.ts +48 -0
  28. package/lib/alerts/withAlert.d.ts +7 -0
  29. package/lib/alerts/withAlert.js +5 -3
  30. package/lib/avatar/avatar.spec.js +38 -72
  31. package/lib/avatar/index.d.ts +12 -0
  32. package/lib/avatar/types.d.ts +31 -0
  33. package/lib/badge/badge.spec.js +29 -51
  34. package/lib/badge/index.d.ts +6 -0
  35. package/lib/badge/types.d.ts +13 -0
  36. package/lib/buttons/ActivateButton.d.ts +9 -0
  37. package/lib/buttons/AddButton.d.ts +9 -0
  38. package/lib/buttons/Button.d.ts +12 -0
  39. package/lib/buttons/ButtonGroups.d.ts +8 -0
  40. package/lib/buttons/CancelButton.d.ts +9 -0
  41. package/lib/buttons/DangerButton.d.ts +9 -0
  42. package/lib/buttons/DefaultButton.d.ts +12 -0
  43. package/lib/buttons/DefaultButton.js +5 -3
  44. package/lib/buttons/DestroyButton.d.ts +9 -0
  45. package/lib/buttons/EditButton.d.ts +9 -0
  46. package/lib/buttons/InactivateButton.d.ts +9 -0
  47. package/lib/buttons/InfoButton.d.ts +9 -0
  48. package/lib/buttons/PrimaryButton.d.ts +9 -0
  49. package/lib/buttons/RestoreButton.d.ts +9 -0
  50. package/lib/buttons/SaveButton.d.ts +9 -0
  51. package/lib/buttons/SpinnerLoading.js +230 -0
  52. package/lib/buttons/SuccessButton.d.ts +9 -0
  53. package/lib/buttons/WarningButton.d.ts +9 -0
  54. package/lib/buttons/button_container/index.d.ts +12 -0
  55. package/lib/buttons/buttons.spec.js +135 -209
  56. package/lib/buttons/index.d.ts +21 -0
  57. package/lib/buttons/split_button/index.d.ts +9 -0
  58. package/lib/buttons/split_button/index.js +22 -2
  59. package/lib/buttons/types.d.ts +44 -0
  60. package/lib/calendar/DangerCalendar.d.ts +7 -0
  61. package/lib/calendar/InfoCalendar.d.ts +7 -0
  62. package/lib/calendar/PrimaryCalendar.d.ts +7 -0
  63. package/lib/calendar/SuccessCalendar.d.ts +7 -0
  64. package/lib/calendar/WarningCalendar.d.ts +7 -0
  65. package/lib/calendar/base/Day.d.ts +7 -0
  66. package/lib/calendar/base/Month.d.ts +7 -0
  67. package/lib/calendar/base/Week.d.ts +7 -0
  68. package/lib/calendar/base/helpers.d.ts +62 -0
  69. package/lib/calendar/base/helpers.js +1 -1
  70. package/lib/calendar/base/index.d.ts +7 -0
  71. package/lib/calendar/calendar.spec.js +27 -60
  72. package/lib/calendar/index.d.ts +10 -0
  73. package/lib/calendar/types.d.ts +25 -0
  74. package/lib/checkbox/Label.d.ts +11 -0
  75. package/lib/checkbox/checkbox.spec.js +14 -56
  76. package/lib/checkbox/index.d.ts +13 -0
  77. package/lib/checkbox/index.js +1 -1
  78. package/lib/checkbox/types.d.ts +42 -0
  79. package/lib/dialog/Alert.d.ts +6 -0
  80. package/lib/dialog/Custom.d.ts +6 -0
  81. package/lib/dialog/Custom.js +4 -4
  82. package/lib/dialog/Error.d.ts +6 -0
  83. package/lib/dialog/Information.d.ts +6 -0
  84. package/lib/dialog/Question.d.ts +6 -0
  85. package/lib/dialog/Warning.d.ts +6 -0
  86. package/lib/dialog/base/Content.d.ts +6 -0
  87. package/lib/dialog/base/Footer.d.ts +6 -0
  88. package/lib/dialog/base/Header.d.ts +6 -0
  89. package/lib/dialog/base/index.d.ts +6 -0
  90. package/lib/dialog/dialog.spec.js +60 -138
  91. package/lib/dialog/form/index.d.ts +6 -0
  92. package/lib/dialog/index.d.ts +10 -0
  93. package/lib/dialog/types.d.ts +68 -0
  94. package/lib/drawer/Content.d.ts +7 -0
  95. package/lib/drawer/Drawer.d.ts +7 -0
  96. package/lib/drawer/Drawer.js +1 -1
  97. package/lib/drawer/Drawer.spec.js +35 -81
  98. package/lib/drawer/Header.d.ts +7 -0
  99. package/lib/drawer/helpers.d.ts +7 -0
  100. package/lib/drawer/index.d.ts +9 -0
  101. package/lib/drawer/types.d.ts +34 -0
  102. package/lib/dropdown/Popup.d.ts +6 -0
  103. package/lib/dropdown/Popup.js +4 -2
  104. package/lib/dropdown/dropdown.spec.js +11 -47
  105. package/lib/dropdown/helper.d.ts +4 -0
  106. package/lib/dropdown/types.d.ts +43 -0
  107. package/lib/dropdown/withDropdown.d.ts +10 -0
  108. package/lib/dropdown/withDropdown.js +3 -1
  109. package/lib/fieldset/fieldset.spec.js +77 -123
  110. package/lib/fieldset/index.d.ts +8 -0
  111. package/lib/fieldset/index.js +1 -1
  112. package/lib/fieldset/types.d.ts +28 -0
  113. package/lib/form/Field.d.ts +6 -0
  114. package/lib/form/Field.js +11 -38
  115. package/lib/form/FieldArray.d.ts +6 -0
  116. package/lib/form/FieldArray.js +18 -48
  117. package/lib/form/FieldNumber.d.ts +6 -0
  118. package/lib/form/FieldNumber.js +2 -26
  119. package/lib/form/FieldPeriod.d.ts +6 -0
  120. package/lib/form/FieldPeriod.js +18 -40
  121. package/lib/form/form.spec.js +43 -87
  122. package/lib/form/helpers.d.ts +11 -0
  123. package/lib/form/helpers.js +10 -16
  124. package/lib/form/index.d.ts +9 -0
  125. package/lib/form/index.js +50 -85
  126. package/lib/form/types.d.ts +168 -0
  127. package/lib/form/types.js +5 -0
  128. package/lib/form/withFieldHOC.d.ts +6 -0
  129. package/lib/form/withFieldHOC.js +38 -118
  130. package/lib/form/withFormSecurity.d.ts +7 -0
  131. package/lib/form/withFormSecurity.js +13 -34
  132. package/lib/gridlayout/GridCol.d.ts +6 -0
  133. package/lib/gridlayout/GridRow.d.ts +6 -0
  134. package/lib/gridlayout/gridLayout.spec.js +41 -68
  135. package/lib/gridlayout/index.d.ts +5 -0
  136. package/lib/gridlayout/types.d.ts +20 -0
  137. package/lib/icons/helper.d.ts +560 -0
  138. package/lib/icons/icons.spec.js +19 -35
  139. package/lib/icons/index.d.ts +8 -0
  140. package/lib/icons/types.d.ts +28 -0
  141. package/lib/index.d.ts +35 -0
  142. package/lib/inputs/base/InputTextBase.d.ts +8 -0
  143. package/lib/inputs/base/InputTextBase.js +2 -2
  144. package/lib/inputs/base/base.spec.js +154 -270
  145. package/lib/inputs/base/helpers.d.ts +14 -0
  146. package/lib/inputs/base/helpers.js +1 -1
  147. package/lib/inputs/base/index.js +1 -0
  148. package/lib/inputs/base/types.d.ts +68 -0
  149. package/lib/inputs/color/color_input.spec.js +29 -63
  150. package/lib/inputs/color/index.d.ts +7 -0
  151. package/lib/inputs/color/types.d.ts +14 -0
  152. package/lib/inputs/date/Dialog.d.ts +10 -0
  153. package/lib/inputs/date/Dropdown.d.ts +10 -0
  154. package/lib/inputs/date/date.spec.js +70 -149
  155. package/lib/inputs/date/helpers.d.ts +14 -0
  156. package/lib/inputs/date/index.d.ts +10 -0
  157. package/lib/inputs/date/types.d.ts +53 -0
  158. package/lib/inputs/inputHOC.d.ts +11 -0
  159. package/lib/inputs/mask/BaseMask.d.ts +12 -0
  160. package/lib/inputs/mask/Cnpj.d.ts +12 -0
  161. package/lib/inputs/mask/Cnpj.js +3 -1
  162. package/lib/inputs/mask/Cpf.d.ts +12 -0
  163. package/lib/inputs/mask/Cpf.js +5 -2
  164. package/lib/inputs/mask/Phone.d.ts +9 -0
  165. package/lib/inputs/mask/ZipCode.d.ts +9 -0
  166. package/lib/inputs/mask/helpers.d.ts +14 -0
  167. package/lib/inputs/mask/imaskHOC.d.ts +14 -0
  168. package/lib/inputs/mask/imaskHOC.js +9 -10
  169. package/lib/inputs/mask/index.d.ts +11 -0
  170. package/lib/inputs/mask/input_mask.spec.js +128 -218
  171. package/lib/inputs/mask/types.d.ts +66 -0
  172. package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
  173. package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
  174. package/lib/inputs/multiSelect/helper.d.ts +9 -0
  175. package/lib/inputs/multiSelect/index.d.ts +10 -0
  176. package/lib/inputs/multiSelect/index.js +13 -6
  177. package/lib/inputs/multiSelect/types.d.ts +49 -0
  178. package/lib/inputs/number/BaseNumber.d.ts +12 -0
  179. package/lib/inputs/number/BaseNumber.js +1 -1
  180. package/lib/inputs/number/Currency.d.ts +12 -0
  181. package/lib/inputs/number/Decimal.d.ts +12 -0
  182. package/lib/inputs/number/format_number.d.ts +4 -0
  183. package/lib/inputs/number/index.d.ts +14 -0
  184. package/lib/inputs/number/numberfield.spec.js +40 -82
  185. package/lib/inputs/number/types.d.ts +30 -0
  186. package/lib/inputs/period/Dialog.d.ts +11 -0
  187. package/lib/inputs/period/Dropdown.d.ts +11 -0
  188. package/lib/inputs/period/PeriodList.d.ts +11 -0
  189. package/lib/inputs/period/helper.d.ts +19 -0
  190. package/lib/inputs/period/index.d.ts +11 -0
  191. package/lib/inputs/period/index.js +7 -5
  192. package/lib/inputs/period/types.d.ts +58 -0
  193. package/lib/inputs/search/index.d.ts +11 -0
  194. package/lib/inputs/search/index.js +0 -3
  195. package/lib/inputs/search/search_input.spec.js +36 -82
  196. package/lib/inputs/select/ActionButtons.d.ts +11 -0
  197. package/lib/inputs/select/Dropdown.d.ts +11 -0
  198. package/lib/inputs/select/helper.d.ts +25 -0
  199. package/lib/inputs/select/index.d.ts +10 -0
  200. package/lib/inputs/select/index.js +3 -1
  201. package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
  202. package/lib/inputs/select/multiple/index.d.ts +10 -0
  203. package/lib/inputs/select/select.spec.js +74 -142
  204. package/lib/inputs/select/simple/index.d.ts +10 -0
  205. package/lib/inputs/select/types.d.ts +94 -0
  206. package/lib/inputs/text/index.d.ts +11 -0
  207. package/lib/inputs/text/textfield.spec.js +40 -81
  208. package/lib/inputs/text/types.d.ts +25 -0
  209. package/lib/inputs/textarea/index.d.ts +9 -0
  210. package/lib/inputs/textarea/textarea.spec.js +10 -23
  211. package/lib/inputs/textarea/types.d.ts +13 -0
  212. package/lib/inputs/types.d.ts +146 -0
  213. package/lib/internals/colorStyles.d.ts +9 -0
  214. package/lib/internals/constants.d.ts +11 -0
  215. package/lib/internals/types.d.ts +21 -0
  216. package/lib/internals/withTooltip.d.ts +11 -0
  217. package/lib/labelMessages/index.d.ts +7 -0
  218. package/lib/labelMessages/labelMessages.spec.js +28 -61
  219. package/lib/labelMessages/types.d.ts +18 -0
  220. package/lib/labels/DangerLabel.d.ts +9 -0
  221. package/lib/labels/DefaultLabel.d.ts +12 -0
  222. package/lib/labels/DefaultLabel.js +1 -1
  223. package/lib/labels/InfoLabel.d.ts +9 -0
  224. package/lib/labels/PrimaryLabel.d.ts +9 -0
  225. package/lib/labels/SuccessLabel.d.ts +9 -0
  226. package/lib/labels/WarningLabel.d.ts +9 -0
  227. package/lib/labels/index.d.ts +13 -0
  228. package/lib/labels/label.spec.js +40 -67
  229. package/lib/labels/label_container/index.d.ts +12 -0
  230. package/lib/labels/types.d.ts +24 -0
  231. package/lib/list/Header.d.ts +7 -0
  232. package/lib/list/Item.d.ts +7 -0
  233. package/lib/list/Item.js +8 -6
  234. package/lib/list/Separator.d.ts +3 -0
  235. package/lib/list/helpers.d.ts +12 -0
  236. package/lib/list/helpers.js +8 -3
  237. package/lib/list/index.d.ts +10 -0
  238. package/lib/list/index.js +87 -18
  239. package/lib/list/list.spec.js +167 -284
  240. package/lib/list/types.d.ts +64 -0
  241. package/lib/menus/float/MenuItem.d.ts +7 -0
  242. package/lib/menus/float/float-menu.spec.js +4 -44
  243. package/lib/menus/float/helpers.d.ts +7 -0
  244. package/lib/menus/float/index.d.ts +8 -0
  245. package/lib/menus/float/types.d.ts +27 -0
  246. package/lib/menus/index.d.ts +6 -0
  247. package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
  248. package/lib/menus/sidenav/MenuLink.d.ts +13 -0
  249. package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
  250. package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
  251. package/lib/menus/sidenav/NavMenuItem.js +1 -1
  252. package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
  253. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  254. package/lib/menus/sidenav/helpers.d.ts +12 -0
  255. package/lib/menus/sidenav/index.d.ts +14 -0
  256. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
  257. package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
  258. package/lib/menus/sidenav/sidenav.spec.js +16 -69
  259. package/lib/menus/sidenav/types.d.ts +82 -0
  260. package/lib/noPermission/index.d.ts +3 -0
  261. package/lib/panel/Content.d.ts +8 -0
  262. package/lib/panel/DangerPanel.d.ts +8 -0
  263. package/lib/panel/Default.d.ts +8 -0
  264. package/lib/panel/Default.js +1 -1
  265. package/lib/panel/Header.d.ts +8 -0
  266. package/lib/panel/InfoPanel.d.ts +8 -0
  267. package/lib/panel/PrimaryPanel.d.ts +8 -0
  268. package/lib/panel/SuccessPanel.d.ts +8 -0
  269. package/lib/panel/ToolBar.d.ts +8 -0
  270. package/lib/panel/WarningPanel.d.ts +8 -0
  271. package/lib/panel/helpers.d.ts +4 -0
  272. package/lib/panel/index.d.ts +13 -0
  273. package/lib/panel/panel.spec.js +63 -100
  274. package/lib/panel/types.d.ts +4 -0
  275. package/lib/permissionValidations.d.ts +14 -0
  276. package/lib/permissionValidations.js +14 -12
  277. package/lib/popover/PopoverText.d.ts +8 -0
  278. package/lib/popover/PopoverTitle.d.ts +8 -0
  279. package/lib/popover/index.d.ts +13 -0
  280. package/lib/popover/popover.spec.js +29 -59
  281. package/lib/popover/types.d.ts +21 -0
  282. package/lib/progress/Bar.d.ts +6 -0
  283. package/lib/progress/index.d.ts +7 -0
  284. package/lib/progress/progress.spec.js +18 -34
  285. package/lib/progress/types.d.ts +37 -0
  286. package/lib/radio/index.d.ts +12 -0
  287. package/lib/radio/index.js +1 -1
  288. package/lib/radio/radio.spec.js +34 -63
  289. package/lib/radio/types.d.ts +18 -0
  290. package/lib/skeleton/SkeletonContainer.d.ts +7 -0
  291. package/lib/skeleton/SkeletonContainer.js +0 -13
  292. package/lib/skeleton/index.d.ts +8 -0
  293. package/lib/skeleton/index.js +6 -25
  294. package/lib/skeleton/types.d.ts +21 -0
  295. package/lib/skeleton/types.js +5 -0
  296. package/lib/spinner/SpinnerLoading.d.ts +7 -0
  297. package/lib/spinner/index.d.ts +7 -0
  298. package/lib/spinner/spinner.spec.js +38 -64
  299. package/lib/spinner/types.d.ts +20 -0
  300. package/lib/split/Split.d.ts +6 -0
  301. package/lib/split/SplitSide.d.ts +6 -0
  302. package/lib/split/helpers.d.ts +10 -0
  303. package/lib/split/index.d.ts +5 -0
  304. package/lib/split/split.spec.js +17 -47
  305. package/lib/split/types.d.ts +34 -0
  306. package/lib/table/Body.d.ts +6 -0
  307. package/lib/table/Header.d.ts +6 -0
  308. package/lib/table/Header.js +34 -6
  309. package/lib/table/HeaderColumn.d.ts +6 -0
  310. package/lib/table/HeaderColumn.js +1 -1
  311. package/lib/table/Row.d.ts +6 -0
  312. package/lib/table/Row.js +4 -9
  313. package/lib/table/RowColumn.d.ts +6 -0
  314. package/lib/table/RowColumn.js +2 -2
  315. package/lib/table/helpers.d.ts +8 -0
  316. package/lib/table/index.d.ts +11 -0
  317. package/lib/table/table.spec.js +72 -128
  318. package/lib/table/types.d.ts +84 -0
  319. package/lib/tabs/DropdownItems.d.ts +9 -0
  320. package/lib/tabs/Menu.d.ts +9 -0
  321. package/lib/tabs/MenuItems.d.ts +9 -0
  322. package/lib/tabs/MenuItems.js +1 -1
  323. package/lib/tabs/Panel.d.ts +9 -0
  324. package/lib/tabs/Panel.js +1 -1
  325. package/lib/tabs/index.d.ts +10 -0
  326. package/lib/tabs/tabHelpers.d.ts +21 -0
  327. package/lib/tabs/tabs.spec.js +81 -137
  328. package/lib/tabs/types.d.ts +63 -0
  329. package/lib/toolbar/ButtonBar.d.ts +10 -0
  330. package/lib/toolbar/LabelBar.d.ts +10 -0
  331. package/lib/toolbar/LabelBar.js +1 -1
  332. package/lib/toolbar/Separator.d.ts +3 -0
  333. package/lib/toolbar/ToolBarGroup.d.ts +10 -0
  334. package/lib/toolbar/helpers.d.ts +10 -0
  335. package/lib/toolbar/index.d.ts +14 -0
  336. package/lib/toolbar/index.js +2 -3
  337. package/lib/toolbar/toolbar.spec.js +123 -171
  338. package/lib/toolbar/types.d.ts +43 -0
  339. package/lib/tooltip/index.d.ts +6 -0
  340. package/lib/tooltip/tooltip.spec.js +3 -37
  341. package/lib/tooltip/types.d.ts +16 -0
  342. package/lib/treetable/Body.js +7 -25
  343. package/lib/treetable/Header.js +1 -11
  344. package/lib/treetable/Row.js +47 -103
  345. package/lib/treetable/helpers.js +0 -10
  346. package/lib/treetable/index.js +0 -11
  347. package/lib/treeview/Header.d.ts +7 -0
  348. package/lib/treeview/Node.d.ts +7 -0
  349. package/lib/treeview/Node.js +30 -18
  350. package/lib/treeview/constants.d.ts +7 -0
  351. package/lib/treeview/constants.js +0 -1
  352. package/lib/treeview/index.d.ts +9 -0
  353. package/lib/treeview/index.js +28 -21
  354. package/lib/treeview/treeview.spec.js +34 -81
  355. package/lib/treeview/types.d.ts +104 -0
  356. package/lib/types-3c6f1c20.d.ts +46 -0
  357. package/lib/uitour/helpers.d.ts +8 -0
  358. package/lib/uitour/index.d.ts +6 -0
  359. package/lib/uitour/index.js +11 -28
  360. package/lib/uitour/types.d.ts +30 -0
  361. package/lib/uitour/types.js +5 -0
  362. package/lib/uitour/uitour.spec.js +54 -76
  363. package/package.json +15 -5
  364. package/tsconfig.json +24 -9
  365. package/tsup.config.ts +10 -0
  366. package/images.d.ts +0 -3
@@ -0,0 +1,560 @@
1
+ declare const _default: {
2
+ paperplane: {
3
+ viewbox: string;
4
+ paths: string[];
5
+ };
6
+ city: {
7
+ viewbox: string;
8
+ paths: string[];
9
+ };
10
+ user_group: {
11
+ viewbox: string;
12
+ paths: string[];
13
+ };
14
+ padlock: {
15
+ viewbox: string;
16
+ paths: string[];
17
+ };
18
+ user: {
19
+ viewbox: string;
20
+ paths: string[];
21
+ };
22
+ mail: {
23
+ viewbox: string;
24
+ paths: string[];
25
+ };
26
+ envelop: {
27
+ viewbox: string;
28
+ paths: string[];
29
+ };
30
+ key: {
31
+ viewbox: string;
32
+ paths: string[];
33
+ };
34
+ mail2: {
35
+ viewbox: string;
36
+ paths: string[];
37
+ };
38
+ pencil: {
39
+ viewbox: string;
40
+ paths: string[];
41
+ };
42
+ calendar: {
43
+ viewbox: string;
44
+ paths: string[];
45
+ };
46
+ block: {
47
+ viewbox: string;
48
+ paths: string[];
49
+ };
50
+ warning: {
51
+ viewbox: string;
52
+ paths: string[];
53
+ };
54
+ exclamation: {
55
+ viewbox: string;
56
+ paths: string[];
57
+ };
58
+ question: {
59
+ viewbox: string;
60
+ paths: string[];
61
+ };
62
+ information: {
63
+ viewbox: string;
64
+ paths: string[];
65
+ };
66
+ grid: {
67
+ viewbox: string;
68
+ paths: string[];
69
+ };
70
+ grid2: {
71
+ viewbox: string;
72
+ paths: string[];
73
+ };
74
+ grid3: {
75
+ viewbox: string;
76
+ paths: string[];
77
+ };
78
+ home: {
79
+ viewbox: string;
80
+ paths: string[];
81
+ };
82
+ folder_close: {
83
+ viewbox: string;
84
+ paths: string[];
85
+ };
86
+ code: {
87
+ viewbox: string;
88
+ paths: string[];
89
+ };
90
+ up: {
91
+ viewbox: string;
92
+ paths: string[];
93
+ };
94
+ down: {
95
+ viewbox: string;
96
+ paths: string[];
97
+ };
98
+ arrow_left: {
99
+ viewbox: string;
100
+ paths: string[];
101
+ };
102
+ arrow_right: {
103
+ viewbox: string;
104
+ paths: string[];
105
+ };
106
+ config: {
107
+ viewbox: string;
108
+ paths: string[];
109
+ };
110
+ file_download: {
111
+ viewbox: string;
112
+ paths: string[];
113
+ };
114
+ search: {
115
+ viewbox: string;
116
+ paths: string[];
117
+ };
118
+ close: {
119
+ viewbox: string;
120
+ paths: string[];
121
+ };
122
+ box: {
123
+ viewbox: string;
124
+ paths: string[];
125
+ };
126
+ dollar: {
127
+ viewbox: string;
128
+ paths: string[];
129
+ };
130
+ coin_dollar: {
131
+ viewbox: string;
132
+ paths: string[];
133
+ };
134
+ file_lock: {
135
+ viewbox: string;
136
+ paths: string[];
137
+ };
138
+ new_file: {
139
+ viewbox: string;
140
+ paths: string[];
141
+ };
142
+ folder_plus: {
143
+ viewbox: string;
144
+ paths: string[];
145
+ };
146
+ cube: {
147
+ viewbox: string;
148
+ paths: string[];
149
+ };
150
+ stats: {
151
+ viewbox: string;
152
+ paths: string[];
153
+ };
154
+ user_lock: {
155
+ viewbox: string;
156
+ paths: string[];
157
+ };
158
+ stack: {
159
+ viewbox: string;
160
+ paths: string[];
161
+ };
162
+ cash: {
163
+ viewbox: string;
164
+ paths: string[];
165
+ };
166
+ calc: {
167
+ viewbox: string;
168
+ paths: string[];
169
+ };
170
+ bell: {
171
+ viewbox: string;
172
+ paths: string[];
173
+ };
174
+ bell_alert: {
175
+ viewbox: string;
176
+ paths: string[];
177
+ };
178
+ cabinet: {
179
+ viewbox: string;
180
+ paths: string[];
181
+ };
182
+ checkmark: {
183
+ viewbox: string;
184
+ paths: string[];
185
+ };
186
+ power: {
187
+ viewbox: string;
188
+ paths: string[];
189
+ };
190
+ arroba: {
191
+ viewbox: string;
192
+ paths: string[];
193
+ };
194
+ store: {
195
+ viewbox: string;
196
+ paths: string[];
197
+ };
198
+ mini_up: {
199
+ viewbox: string;
200
+ paths: string[];
201
+ };
202
+ mini_down: {
203
+ viewbox: string;
204
+ paths: string[];
205
+ };
206
+ bin: {
207
+ viewbox: string;
208
+ paths: string[];
209
+ };
210
+ print: {
211
+ viewbox: string;
212
+ paths: string[];
213
+ };
214
+ print2: {
215
+ viewbox: string;
216
+ paths: string[];
217
+ };
218
+ print3: {
219
+ viewbox: string;
220
+ paths: string[];
221
+ };
222
+ stackCheck: {
223
+ viewbox: string;
224
+ paths: string[];
225
+ };
226
+ checkboxChecked: {
227
+ viewbox: string;
228
+ paths: string[];
229
+ };
230
+ checkboxUnchecked: {
231
+ viewbox: string;
232
+ paths: string[];
233
+ };
234
+ checkboxChecked2: {
235
+ viewbox: string;
236
+ paths: string[];
237
+ };
238
+ checkboxUnchecked2: {
239
+ viewbox: string;
240
+ paths: string[];
241
+ };
242
+ plus2: {
243
+ viewbox: string;
244
+ paths: string[];
245
+ };
246
+ plus3: {
247
+ viewbox: string;
248
+ paths: string[];
249
+ };
250
+ plusCircle: {
251
+ viewbox: string;
252
+ paths: string[];
253
+ };
254
+ menu: {
255
+ viewbox: string;
256
+ paths: string[];
257
+ };
258
+ menu2: {
259
+ viewbox: string;
260
+ paths: string[];
261
+ };
262
+ menu3: {
263
+ viewbox: string;
264
+ paths: string[];
265
+ };
266
+ menu4: {
267
+ viewbox: string;
268
+ paths: string[];
269
+ };
270
+ more1: {
271
+ viewbox: string;
272
+ paths: string[];
273
+ };
274
+ more2: {
275
+ viewbox: string;
276
+ paths: string[];
277
+ };
278
+ cog3: {
279
+ viewbox: string;
280
+ paths: string[];
281
+ };
282
+ exit3: {
283
+ viewbox: string;
284
+ paths: string[];
285
+ };
286
+ cancel: {
287
+ viewbox: string;
288
+ paths: string[];
289
+ };
290
+ cancel2: {
291
+ viewbox: string;
292
+ paths: string[];
293
+ };
294
+ filter1: {
295
+ viewbox: string;
296
+ paths: string[];
297
+ };
298
+ filter2: {
299
+ viewbox: string;
300
+ paths: string[];
301
+ };
302
+ filterFlat: {
303
+ viewbox: string;
304
+ paths: string[];
305
+ };
306
+ equalize: {
307
+ viewbox: string;
308
+ paths: string[];
309
+ };
310
+ eyeblocked: {
311
+ viewbox: string;
312
+ paths: string[];
313
+ };
314
+ eyeblocked2: {
315
+ viewbox: string;
316
+ paths: string[];
317
+ };
318
+ spinner: {
319
+ viewbox: string;
320
+ paths: string[];
321
+ };
322
+ barcode1: {
323
+ viewbox: string;
324
+ paths: string[];
325
+ };
326
+ barcode2: {
327
+ viewbox: string;
328
+ paths: string[];
329
+ };
330
+ basket: {
331
+ viewbox: string;
332
+ paths: string[];
333
+ };
334
+ bag: {
335
+ viewbox: string;
336
+ paths: string[];
337
+ };
338
+ cart: {
339
+ viewbox: string;
340
+ paths: string[];
341
+ };
342
+ cart2: {
343
+ viewbox: string;
344
+ paths: string[];
345
+ };
346
+ fileeye: {
347
+ viewbox: string;
348
+ paths: string[];
349
+ };
350
+ priceTag: {
351
+ viewbox: string;
352
+ paths: string[];
353
+ };
354
+ fileText: {
355
+ viewbox: string;
356
+ paths: string[];
357
+ };
358
+ drawer: {
359
+ viewbox: string;
360
+ paths: string[];
361
+ };
362
+ drawer3: {
363
+ viewbox: string;
364
+ paths: string[];
365
+ };
366
+ asterisk: {
367
+ viewbox: string;
368
+ paths: string[];
369
+ };
370
+ pdf: {
371
+ viewbox: string;
372
+ paths: string[];
373
+ };
374
+ stackPicture: {
375
+ viewbox: string;
376
+ paths: string[];
377
+ };
378
+ image: {
379
+ viewbox: string;
380
+ paths: string[];
381
+ };
382
+ reset: {
383
+ viewbox: string;
384
+ paths: string[];
385
+ };
386
+ upload4: {
387
+ viewbox: string;
388
+ paths: string[];
389
+ };
390
+ percent: {
391
+ viewbox: string;
392
+ paths: string[];
393
+ };
394
+ mobile: {
395
+ viewbox: string;
396
+ paths: string[];
397
+ };
398
+ refresh: {
399
+ viewbox: string;
400
+ paths: string[];
401
+ };
402
+ radioChecked: {
403
+ viewbox: string;
404
+ paths: string[];
405
+ };
406
+ radioUnchecked: {
407
+ viewbox: string;
408
+ paths: string[];
409
+ };
410
+ circle: {
411
+ viewbox: string;
412
+ paths: string[];
413
+ };
414
+ circleSelected: {
415
+ viewbox: string;
416
+ paths: string[];
417
+ };
418
+ play4: {
419
+ viewbox: string;
420
+ paths: string[];
421
+ };
422
+ pause2: {
423
+ viewbox: string;
424
+ paths: string[];
425
+ };
426
+ xmlFile: {
427
+ viewbox: string;
428
+ paths: string[];
429
+ };
430
+ table: {
431
+ viewbox: string;
432
+ paths: string[];
433
+ };
434
+ database1: {
435
+ viewbox: string;
436
+ paths: string[];
437
+ };
438
+ certificate: {
439
+ viewbox: string;
440
+ paths: string[];
441
+ };
442
+ starEmpty: {
443
+ viewbox: string;
444
+ paths: string[];
445
+ };
446
+ starFull: {
447
+ viewbox: string;
448
+ paths: string[];
449
+ };
450
+ clock: {
451
+ viewbox: string;
452
+ paths: string[];
453
+ };
454
+ hourGlass: {
455
+ viewbox: string;
456
+ paths: string[];
457
+ };
458
+ boxAdd: {
459
+ viewbox: string;
460
+ paths: string[];
461
+ };
462
+ attachment: {
463
+ viewbox: string;
464
+ paths: string[];
465
+ };
466
+ chart: {
467
+ viewbox: string;
468
+ paths: string[];
469
+ };
470
+ spreadsheet: {
471
+ viewbox: string;
472
+ paths: string[];
473
+ };
474
+ consult: {
475
+ viewbox: string;
476
+ paths: string[];
477
+ };
478
+ bubbles: {
479
+ viewbox: string;
480
+ paths: string[];
481
+ };
482
+ fileInfo: {
483
+ viewbox: string;
484
+ paths: string[];
485
+ };
486
+ popup: {
487
+ viewbox: string;
488
+ paths: string[];
489
+ };
490
+ enlarge7: {
491
+ viewbox: string;
492
+ paths: string[];
493
+ };
494
+ emoji: {
495
+ viewbox: string;
496
+ paths: string[];
497
+ };
498
+ stackCancel: {
499
+ viewbox: string;
500
+ paths: string[];
501
+ };
502
+ pallete: {
503
+ viewbox: string;
504
+ paths: string[];
505
+ };
506
+ profile: {
507
+ viewbox: string;
508
+ paths: string[];
509
+ };
510
+ arrowBack: {
511
+ viewbox: string;
512
+ paths: string[];
513
+ };
514
+ bullhorn: {
515
+ viewbox: string;
516
+ paths: string[];
517
+ };
518
+ loop: {
519
+ viewbox: string;
520
+ paths: string[];
521
+ };
522
+ question2: {
523
+ viewbox: string;
524
+ paths: string[];
525
+ };
526
+ undo: {
527
+ viewbox: string;
528
+ paths: string[];
529
+ };
530
+ minusCircle: {
531
+ viewbox: string;
532
+ paths: string[];
533
+ };
534
+ zoomIn: {
535
+ viewbox: string;
536
+ paths: string[];
537
+ };
538
+ zoomOut: {
539
+ viewbox: string;
540
+ paths: string[];
541
+ };
542
+ flipVertical3: {
543
+ viewbox: string;
544
+ paths: string[];
545
+ };
546
+ flipVertical4: {
547
+ viewbox: string;
548
+ paths: string[];
549
+ };
550
+ tools: {
551
+ viewbox: string;
552
+ paths: string[];
553
+ };
554
+ checkmarkCircle: {
555
+ viewbox: string;
556
+ paths: string[];
557
+ };
558
+ };
559
+
560
+ export { _default as default };
@@ -1,23 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _react = _interopRequireDefault(require("react"));
4
-
5
4
  var _react2 = require("@testing-library/react");
6
-
7
5
  require("@testing-library/jest-dom/extend-expect");
8
-
9
6
  var _index = _interopRequireDefault(require("./index"));
10
-
11
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
8
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
-
15
9
  var IconMock = function IconMock(props) {
16
10
  return /*#__PURE__*/_react.default.createElement(_index.default, _extends({
17
11
  name: "user"
18
12
  }, props));
19
13
  };
20
-
21
14
  var mockSvgStruct = {
22
15
  viewbox: '0 0 18 18',
23
16
  paths: ['M17.064,4.656l-2.05-2.035C14.936,2.544,14.831,2.5,14.721,2.5H3.854c-0.229,0-0.417,0.188-0.417,417v14.167c0,0.229,0.188,0.417,0.417,0.417h12.917c0.229,0,0.416-0.188,0.416-0.417V4.952C17.188,4.84,17.144,4.733,17.064,4.656M6.354,3.333h7.917V10H6.354V3.333z M16.354,16.667H4.271V3.333h1.25v7.083c0,0.229,0.188,0.417,0.417,0.417h8.75c0.229,0,0.416-0.188,0.416-0.417V3.886l1.25,1.239V16.667z M13.402,4.688v3.958c0,0.229-0.186,0.417-0.417,0.417c-0.229,0-0.417-0.188-0.417-0.417V4.688c0-0.229,0.188-0.417,0.417-0.417C13.217,4.271,13.402,4.458,13.402,4.688']
@@ -25,61 +18,52 @@ var mockSvgStruct = {
25
18
  describe('Icons', function () {
26
19
  it('should render correctly', function () {
27
20
  var _render = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, null)),
28
- getByTestId = _render.getByTestId;
29
-
21
+ getByTestId = _render.getByTestId;
30
22
  expect(getByTestId('icon')).toBeTruthy();
31
23
  });
32
24
  it('should change icon size', function () {
33
25
  var _render2 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, {
34
- size: 64
35
- })),
36
- getByTestId = _render2.getByTestId;
37
-
26
+ size: 64
27
+ })),
28
+ getByTestId = _render2.getByTestId;
38
29
  expect(getByTestId('icon')).toHaveAttribute('width', '64px');
39
30
  expect(getByTestId('icon')).toHaveAttribute('height', '64px');
40
31
  });
41
32
  it('should change icon color', function () {
42
33
  var _render3 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, {
43
- color: "red"
44
- })),
45
- getByTestId = _render3.getByTestId;
46
-
34
+ color: "red"
35
+ })),
36
+ getByTestId = _render3.getByTestId;
47
37
  expect(getByTestId('icon')).toHaveAttribute('fill', 'red');
48
38
  });
49
39
  it('should change pointer-events', function () {
50
40
  var _render4 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, {
51
- pointerEvents: "all"
52
- })),
53
- getByTestId = _render4.getByTestId;
54
-
41
+ pointerEvents: "all"
42
+ })),
43
+ getByTestId = _render4.getByTestId;
55
44
  expect(getByTestId('icon')).toHaveAttribute('pointer-events', 'all');
56
45
  });
57
46
  it('should fire click on icon', function () {
58
47
  var mockOnClick = jest.fn();
59
-
60
48
  var _render5 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, {
61
- onClick: mockOnClick
62
- })),
63
- getByTestId = _render5.getByTestId;
64
-
49
+ onClick: mockOnClick
50
+ })),
51
+ getByTestId = _render5.getByTestId;
65
52
  _react2.fireEvent.click(getByTestId('icon'));
66
-
67
53
  expect(mockOnClick).toHaveBeenCalled();
68
54
  });
69
55
  it('should hide component when visible is false', function () {
70
56
  var _render6 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(IconMock, {
71
- visible: false
72
- })),
73
- container = _render6.container;
74
-
57
+ visible: false
58
+ })),
59
+ container = _render6.container;
75
60
  expect(container.firstChild).not.toBeInTheDocument();
76
61
  });
77
62
  it('should render icon when use svgStruct', function () {
78
63
  var _render7 = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.default, {
79
- svgStruct: mockSvgStruct
80
- })),
81
- getByTestId = _render7.getByTestId;
82
-
64
+ svgStruct: mockSvgStruct
65
+ })),
66
+ getByTestId = _render7.getByTestId;
83
67
  expect(getByTestId('icon')).toHaveAttribute('viewBox', mockSvgStruct.viewbox);
84
68
  expect(getByTestId('icon-path')).toHaveAttribute('d', mockSvgStruct.paths[0]);
85
69
  });
@@ -0,0 +1,8 @@
1
+ import { IIconProps } from './types.js';
2
+ import 'react';
3
+ import '../@types/PointerEvents.js';
4
+ import '../@types/SizePixels.js';
5
+
6
+ declare const Icon: ({ name, onClick, svgStruct, size, style, visible, disabled, customClass, color, pointerEvents, }: IIconProps) => JSX.Element | null;
7
+
8
+ export { Icon as default };
@@ -0,0 +1,28 @@
1
+ import { CSSProperties } from 'react';
2
+ import { PointerEvents } from '../@types/PointerEvents.js';
3
+ import { SizePixels } from '../@types/SizePixels.js';
4
+
5
+ declare type ListIconType = {
6
+ [name: string]: {
7
+ viewbox: string;
8
+ paths: Array<string>;
9
+ };
10
+ };
11
+ interface IIconProps {
12
+ size?: SizePixels;
13
+ color?: string;
14
+ customClass?: string;
15
+ style?: CSSProperties;
16
+ visible?: boolean;
17
+ disabled?: boolean;
18
+ pointerEvents?: PointerEvents;
19
+ name?: string;
20
+ viewBox?: string;
21
+ svgStruct?: {
22
+ viewbox: string;
23
+ paths: Array<string>;
24
+ };
25
+ onClick?: () => void;
26
+ }
27
+
28
+ export { IIconProps, ListIconType };