@papillonarts/components 0.48.0 → 0.49.1

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 (378) hide show
  1. package/LICENSE +1 -1
  2. package/build/Legacy/Alert/Alert.const.d.ts +4 -0
  3. package/build/Legacy/Alert/Alert.const.d.ts.map +1 -0
  4. package/build/Legacy/Alert/Alert.const.js +26 -0
  5. package/build/Legacy/Alert/Alert.d.ts +3 -2
  6. package/build/Legacy/Alert/Alert.d.ts.map +1 -1
  7. package/build/Legacy/Alert/Alert.js +47 -49
  8. package/build/Legacy/Alert/Alert.type.d.ts +7 -8
  9. package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
  10. package/build/Legacy/Alert/Alert.type.js +1 -24
  11. package/build/Legacy/Alert/__tests__/Alert.doc.md +2 -2
  12. package/build/Legacy/Alert/index.d.ts +2 -2
  13. package/build/Legacy/Alert/index.d.ts.map +1 -1
  14. package/build/Legacy/Alert/index.js +3 -3
  15. package/build/Legacy/Blankslate/Blankslate.const.d.ts +4 -0
  16. package/build/Legacy/Blankslate/Blankslate.const.d.ts.map +1 -0
  17. package/build/Legacy/Blankslate/Blankslate.const.js +18 -0
  18. package/build/Legacy/Blankslate/Blankslate.d.ts +3 -2
  19. package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
  20. package/build/Legacy/Blankslate/Blankslate.js +17 -14
  21. package/build/Legacy/Blankslate/Blankslate.type.d.ts +2 -4
  22. package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
  23. package/build/Legacy/Blankslate/Blankslate.type.js +1 -14
  24. package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +1 -1
  25. package/build/Legacy/Blankslate/index.d.ts +1 -1
  26. package/build/Legacy/Blankslate/index.d.ts.map +1 -1
  27. package/build/Legacy/Blankslate/index.js +3 -3
  28. package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts +4 -0
  29. package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts.map +1 -0
  30. package/build/Legacy/Breadcrumb/Breadcrumb.const.js +14 -0
  31. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +3 -2
  32. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  33. package/build/Legacy/Breadcrumb/Breadcrumb.js +50 -46
  34. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +9 -6
  35. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
  36. package/build/Legacy/Breadcrumb/Breadcrumb.type.js +1 -10
  37. package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +2 -2
  38. package/build/Legacy/Breadcrumb/index.d.ts +1 -1
  39. package/build/Legacy/Breadcrumb/index.d.ts.map +1 -1
  40. package/build/Legacy/Breadcrumb/index.js +3 -3
  41. package/build/Legacy/Button/Button.const.d.ts +9 -0
  42. package/build/Legacy/Button/Button.const.d.ts.map +1 -0
  43. package/build/Legacy/Button/Button.const.js +48 -0
  44. package/build/Legacy/Button/Button.d.ts +3 -2
  45. package/build/Legacy/Button/Button.d.ts.map +1 -1
  46. package/build/Legacy/Button/Button.js +84 -94
  47. package/build/Legacy/Button/Button.type.d.ts +12 -19
  48. package/build/Legacy/Button/Button.type.d.ts.map +1 -1
  49. package/build/Legacy/Button/Button.type.js +1 -44
  50. package/build/Legacy/Button/__tests__/Button.doc.md +6 -6
  51. package/build/Legacy/Button/index.d.ts +2 -1
  52. package/build/Legacy/Button/index.d.ts.map +1 -1
  53. package/build/Legacy/Button/index.js +8 -8
  54. package/build/Legacy/Dropdown/Dropdown.const.d.ts +4 -0
  55. package/build/Legacy/Dropdown/Dropdown.const.d.ts.map +1 -0
  56. package/build/Legacy/Dropdown/Dropdown.const.js +18 -0
  57. package/build/Legacy/Dropdown/Dropdown.d.ts +3 -2
  58. package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
  59. package/build/Legacy/Dropdown/Dropdown.js +49 -50
  60. package/build/Legacy/Dropdown/Dropdown.type.d.ts +10 -7
  61. package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
  62. package/build/Legacy/Dropdown/Dropdown.type.js +1 -14
  63. package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +1 -1
  64. package/build/Legacy/Dropdown/index.d.ts +2 -1
  65. package/build/Legacy/Dropdown/index.d.ts.map +1 -1
  66. package/build/Legacy/Dropdown/index.js +3 -3
  67. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +7 -8
  68. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  69. package/build/Legacy/ErrorBoundary/ErrorBoundary.js +32 -48
  70. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts +5 -1
  71. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
  72. package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +5 -1
  73. package/build/Legacy/ErrorBoundary/index.d.ts +1 -0
  74. package/build/Legacy/ErrorBoundary/index.d.ts.map +1 -1
  75. package/build/Legacy/ErrorBoundary/index.js +1 -1
  76. package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts +5 -0
  77. package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts.map +1 -0
  78. package/build/Legacy/Form/Checkbox/Checkbox.const.js +22 -0
  79. package/build/Legacy/Form/Checkbox/Checkbox.d.ts +3 -2
  80. package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
  81. package/build/Legacy/Form/Checkbox/Checkbox.js +22 -25
  82. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +2 -4
  83. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
  84. package/build/Legacy/Form/Checkbox/Checkbox.type.js +1 -18
  85. package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +1 -1
  86. package/build/Legacy/Form/Checkbox/index.d.ts +1 -1
  87. package/build/Legacy/Form/Checkbox/index.d.ts.map +1 -1
  88. package/build/Legacy/Form/Checkbox/index.js +3 -3
  89. package/build/Legacy/Form/Input/Input.const.d.ts +5 -0
  90. package/build/Legacy/Form/Input/Input.const.d.ts.map +1 -0
  91. package/build/Legacy/Form/Input/Input.const.js +30 -0
  92. package/build/Legacy/Form/Input/Input.d.ts +3 -2
  93. package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
  94. package/build/Legacy/Form/Input/Input.js +25 -32
  95. package/build/Legacy/Form/Input/Input.type.d.ts +5 -7
  96. package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
  97. package/build/Legacy/Form/Input/Input.type.js +1 -26
  98. package/build/Legacy/Form/Input/__tests__/Input.doc.md +4 -4
  99. package/build/Legacy/Form/Input/index.d.ts +1 -1
  100. package/build/Legacy/Form/Input/index.d.ts.map +1 -1
  101. package/build/Legacy/Form/Input/index.js +4 -4
  102. package/build/Legacy/Form/Radio/Radio.const.d.ts +5 -0
  103. package/build/Legacy/Form/Radio/Radio.const.d.ts.map +1 -0
  104. package/build/Legacy/Form/Radio/Radio.const.js +22 -0
  105. package/build/Legacy/Form/Radio/Radio.d.ts +3 -2
  106. package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
  107. package/build/Legacy/Form/Radio/Radio.js +19 -24
  108. package/build/Legacy/Form/Radio/Radio.type.d.ts +2 -4
  109. package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
  110. package/build/Legacy/Form/Radio/Radio.type.js +1 -18
  111. package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +1 -1
  112. package/build/Legacy/Form/Radio/index.d.ts +1 -1
  113. package/build/Legacy/Form/Radio/index.d.ts.map +1 -1
  114. package/build/Legacy/Form/Radio/index.js +3 -3
  115. package/build/Legacy/Form/index.js +1 -1
  116. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts +3 -0
  117. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts.map +1 -0
  118. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.js +11 -0
  119. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +3 -2
  120. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
  121. package/build/Legacy/Grid/DisplayTable/DisplayTable.js +26 -31
  122. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +7 -7
  123. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
  124. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.js +1 -7
  125. package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +3 -3
  126. package/build/Legacy/Grid/DisplayTable/index.js +1 -1
  127. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts +5 -0
  128. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts.map +1 -0
  129. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.js +28 -0
  130. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +3 -2
  131. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
  132. package/build/Legacy/Grid/FlexGrid/FlexGrid.js +148 -167
  133. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +16 -11
  134. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
  135. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.js +1 -24
  136. package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +3 -3
  137. package/build/Legacy/Grid/FlexGrid/index.d.ts +1 -1
  138. package/build/Legacy/Grid/FlexGrid/index.d.ts.map +1 -1
  139. package/build/Legacy/Grid/FlexGrid/index.js +4 -4
  140. package/build/Legacy/Grid/index.js +1 -1
  141. package/build/Legacy/Icon/Icon.const.d.ts +656 -0
  142. package/build/Legacy/Icon/Icon.const.d.ts.map +1 -0
  143. package/build/Legacy/Icon/Icon.const.js +678 -0
  144. package/build/Legacy/Icon/Icon.d.ts +3 -2
  145. package/build/Legacy/Icon/Icon.d.ts.map +1 -1
  146. package/build/Legacy/Icon/Icon.js +33 -44
  147. package/build/Legacy/Icon/Icon.part.js +645 -645
  148. package/build/Legacy/Icon/Icon.type.d.ts +0 -654
  149. package/build/Legacy/Icon/Icon.type.d.ts.map +1 -1
  150. package/build/Legacy/Icon/Icon.type.js +1 -674
  151. package/build/Legacy/Icon/index.d.ts +1 -1
  152. package/build/Legacy/Icon/index.d.ts.map +1 -1
  153. package/build/Legacy/Icon/index.js +4 -4
  154. package/build/Legacy/Label/Label.const.d.ts +6 -0
  155. package/build/Legacy/Label/Label.const.d.ts.map +1 -0
  156. package/build/Legacy/Label/Label.const.js +26 -0
  157. package/build/Legacy/Label/Label.d.ts +3 -2
  158. package/build/Legacy/Label/Label.d.ts.map +1 -1
  159. package/build/Legacy/Label/Label.js +16 -15
  160. package/build/Legacy/Label/Label.type.d.ts +0 -4
  161. package/build/Legacy/Label/Label.type.d.ts.map +1 -1
  162. package/build/Legacy/Label/Label.type.js +1 -22
  163. package/build/Legacy/Label/index.js +1 -1
  164. package/build/Legacy/Loader/Loader.const.d.ts +4 -0
  165. package/build/Legacy/Loader/Loader.const.d.ts.map +1 -0
  166. package/build/Legacy/Loader/Loader.const.js +15 -0
  167. package/build/Legacy/Loader/Loader.d.ts +3 -2
  168. package/build/Legacy/Loader/Loader.d.ts.map +1 -1
  169. package/build/Legacy/Loader/Loader.js +19 -19
  170. package/build/Legacy/Loader/Loader.type.d.ts +0 -2
  171. package/build/Legacy/Loader/Loader.type.d.ts.map +1 -1
  172. package/build/Legacy/Loader/Loader.type.js +1 -11
  173. package/build/Legacy/Loader/index.d.ts +1 -1
  174. package/build/Legacy/Loader/index.d.ts.map +1 -1
  175. package/build/Legacy/Loader/index.js +3 -3
  176. package/build/Legacy/Markdown/Markdown.const.d.ts +4 -0
  177. package/build/Legacy/Markdown/Markdown.const.d.ts.map +1 -0
  178. package/build/Legacy/Markdown/Markdown.const.js +14 -0
  179. package/build/Legacy/Markdown/Markdown.d.ts +3 -2
  180. package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
  181. package/build/Legacy/Markdown/Markdown.js +22 -14
  182. package/build/Legacy/Markdown/Markdown.type.d.ts +0 -2
  183. package/build/Legacy/Markdown/Markdown.type.d.ts.map +1 -1
  184. package/build/Legacy/Markdown/Markdown.type.js +1 -10
  185. package/build/Legacy/Markdown/index.js +1 -1
  186. package/build/Legacy/Navigation/Menu/Menu.const.d.ts +3 -0
  187. package/build/Legacy/Navigation/Menu/Menu.const.d.ts.map +1 -0
  188. package/build/Legacy/Navigation/Menu/Menu.const.js +10 -0
  189. package/build/Legacy/Navigation/Menu/Menu.d.ts +3 -2
  190. package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
  191. package/build/Legacy/Navigation/Menu/Menu.js +40 -42
  192. package/build/Legacy/Navigation/Menu/Menu.type.d.ts +2 -2
  193. package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
  194. package/build/Legacy/Navigation/Menu/Menu.type.js +1 -6
  195. package/build/Legacy/Navigation/Menu/index.js +1 -1
  196. package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts +4 -0
  197. package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts.map +1 -0
  198. package/build/Legacy/Navigation/TabNav/TabNav.const.js +16 -0
  199. package/build/Legacy/Navigation/TabNav/TabNav.d.ts +3 -2
  200. package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
  201. package/build/Legacy/Navigation/TabNav/TabNav.js +79 -79
  202. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +6 -7
  203. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
  204. package/build/Legacy/Navigation/TabNav/TabNav.type.js +1 -12
  205. package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +2 -2
  206. package/build/Legacy/Navigation/TabNav/index.d.ts +1 -1
  207. package/build/Legacy/Navigation/TabNav/index.d.ts.map +1 -1
  208. package/build/Legacy/Navigation/TabNav/index.js +3 -3
  209. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts +5 -0
  210. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts.map +1 -0
  211. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.js +20 -0
  212. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +3 -2
  213. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  214. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.js +64 -63
  215. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +4 -6
  216. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
  217. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.js +1 -16
  218. package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +1 -1
  219. package/build/Legacy/Navigation/UnderlineNav/index.d.ts +1 -1
  220. package/build/Legacy/Navigation/UnderlineNav/index.d.ts.map +1 -1
  221. package/build/Legacy/Navigation/UnderlineNav/index.js +4 -4
  222. package/build/Legacy/Navigation/index.js +1 -1
  223. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts +4 -0
  224. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts.map +1 -0
  225. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.js +30 -0
  226. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +3 -2
  227. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
  228. package/build/Legacy/Pagination/PreviousNext/PreviousNext.js +46 -40
  229. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts +0 -2
  230. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts.map +1 -1
  231. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.js +1 -26
  232. package/build/Legacy/Pagination/PreviousNext/index.d.ts +1 -1
  233. package/build/Legacy/Pagination/PreviousNext/index.d.ts.map +1 -1
  234. package/build/Legacy/Pagination/PreviousNext/index.js +3 -3
  235. package/build/Legacy/Pagination/index.js +1 -1
  236. package/build/Legacy/Popover/Popover.const.d.ts +5 -0
  237. package/build/Legacy/Popover/Popover.const.d.ts.map +1 -0
  238. package/build/Legacy/Popover/Popover.const.js +29 -0
  239. package/build/Legacy/Popover/Popover.d.ts +3 -2
  240. package/build/Legacy/Popover/Popover.d.ts.map +1 -1
  241. package/build/Legacy/Popover/Popover.js +41 -25
  242. package/build/Legacy/Popover/Popover.type.d.ts +0 -3
  243. package/build/Legacy/Popover/Popover.type.d.ts.map +1 -1
  244. package/build/Legacy/Popover/Popover.type.js +1 -25
  245. package/build/Legacy/Popover/index.d.ts +1 -1
  246. package/build/Legacy/Popover/index.d.ts.map +1 -1
  247. package/build/Legacy/Popover/index.js +4 -4
  248. package/build/Legacy/Progress/Progress.const.d.ts +4 -0
  249. package/build/Legacy/Progress/Progress.const.d.ts.map +1 -0
  250. package/build/Legacy/Progress/Progress.const.js +15 -0
  251. package/build/Legacy/Progress/Progress.d.ts +3 -2
  252. package/build/Legacy/Progress/Progress.d.ts.map +1 -1
  253. package/build/Legacy/Progress/Progress.js +15 -14
  254. package/build/Legacy/Progress/Progress.type.d.ts +0 -2
  255. package/build/Legacy/Progress/Progress.type.d.ts.map +1 -1
  256. package/build/Legacy/Progress/Progress.type.js +1 -11
  257. package/build/Legacy/Progress/index.d.ts +1 -1
  258. package/build/Legacy/Progress/index.d.ts.map +1 -1
  259. package/build/Legacy/Progress/index.js +3 -3
  260. package/build/Legacy/Select/Select.const.d.ts +4 -0
  261. package/build/Legacy/Select/Select.const.d.ts.map +1 -0
  262. package/build/Legacy/Select/Select.const.js +15 -0
  263. package/build/Legacy/Select/Select.d.ts +3 -2
  264. package/build/Legacy/Select/Select.d.ts.map +1 -1
  265. package/build/Legacy/Select/Select.js +31 -35
  266. package/build/Legacy/Select/Select.type.d.ts +0 -2
  267. package/build/Legacy/Select/Select.type.d.ts.map +1 -1
  268. package/build/Legacy/Select/Select.type.js +1 -11
  269. package/build/Legacy/Select/index.d.ts +1 -1
  270. package/build/Legacy/Select/index.d.ts.map +1 -1
  271. package/build/Legacy/Select/index.js +3 -3
  272. package/build/Legacy/SelectMenu/SelectMenu.const.d.ts +3 -0
  273. package/build/Legacy/SelectMenu/SelectMenu.const.d.ts.map +1 -0
  274. package/build/Legacy/SelectMenu/SelectMenu.const.js +10 -0
  275. package/build/Legacy/SelectMenu/SelectMenu.d.ts +3 -2
  276. package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
  277. package/build/Legacy/SelectMenu/SelectMenu.js +42 -46
  278. package/build/Legacy/SelectMenu/SelectMenu.type.d.ts +0 -1
  279. package/build/Legacy/SelectMenu/SelectMenu.type.d.ts.map +1 -1
  280. package/build/Legacy/SelectMenu/SelectMenu.type.js +1 -6
  281. package/build/Legacy/SelectMenu/index.js +1 -1
  282. package/build/Legacy/Subhead/Subhead.const.d.ts +3 -0
  283. package/build/Legacy/Subhead/Subhead.const.d.ts.map +1 -0
  284. package/build/Legacy/Subhead/Subhead.const.js +10 -0
  285. package/build/Legacy/Subhead/Subhead.d.ts +3 -2
  286. package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
  287. package/build/Legacy/Subhead/Subhead.js +12 -12
  288. package/build/Legacy/Subhead/Subhead.type.d.ts +0 -1
  289. package/build/Legacy/Subhead/Subhead.type.d.ts.map +1 -1
  290. package/build/Legacy/Subhead/Subhead.type.js +1 -6
  291. package/build/Legacy/Subhead/index.js +1 -1
  292. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts +6 -0
  293. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts.map +1 -0
  294. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.js +25 -0
  295. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +3 -2
  296. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
  297. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +12 -9
  298. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts +0 -4
  299. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts.map +1 -1
  300. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.js +1 -21
  301. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +3 -2
  302. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
  303. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.js +9 -10
  304. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +3 -2
  305. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
  306. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.js +10 -11
  307. package/build/Legacy/SyntaxHighlighter/index.d.ts +1 -1
  308. package/build/Legacy/SyntaxHighlighter/index.d.ts.map +1 -1
  309. package/build/Legacy/SyntaxHighlighter/index.js +5 -5
  310. package/build/Legacy/Toast/Toast.const.d.ts +4 -0
  311. package/build/Legacy/Toast/Toast.const.d.ts.map +1 -0
  312. package/build/Legacy/Toast/Toast.const.js +18 -0
  313. package/build/Legacy/Toast/Toast.d.ts +3 -2
  314. package/build/Legacy/Toast/Toast.d.ts.map +1 -1
  315. package/build/Legacy/Toast/Toast.js +23 -23
  316. package/build/Legacy/Toast/Toast.type.d.ts +0 -2
  317. package/build/Legacy/Toast/Toast.type.d.ts.map +1 -1
  318. package/build/Legacy/Toast/Toast.type.js +1 -14
  319. package/build/Legacy/Toast/index.d.ts +1 -1
  320. package/build/Legacy/Toast/index.d.ts.map +1 -1
  321. package/build/Legacy/Toast/index.js +3 -3
  322. package/build/Legacy/index.js +1 -1
  323. package/build/Legacy/type.d.ts +25 -2
  324. package/build/Legacy/type.d.ts.map +1 -1
  325. package/build/Modern/Avatar/Avatar.d.ts +1 -1
  326. package/build/Modern/Avatar/Avatar.d.ts.map +1 -1
  327. package/build/Modern/Avatar/Avatar.js +23 -30
  328. package/build/Modern/Avatar/index.js +1 -1
  329. package/build/Modern/AvatarStack/AvatarStack.d.ts +2 -2
  330. package/build/Modern/AvatarStack/AvatarStack.d.ts.map +1 -1
  331. package/build/Modern/AvatarStack/AvatarStack.js +53 -57
  332. package/build/Modern/AvatarStack/index.js +1 -1
  333. package/build/Modern/Flash/Flash.d.ts +1 -1
  334. package/build/Modern/Flash/Flash.d.ts.map +1 -1
  335. package/build/Modern/Flash/Flash.js +13 -17
  336. package/build/Modern/Flash/index.js +1 -1
  337. package/build/Modern/Link/Link.d.ts +5 -5
  338. package/build/Modern/Link/Link.d.ts.map +1 -1
  339. package/build/Modern/Link/Link.js +21 -25
  340. package/build/Modern/Link/index.js +1 -1
  341. package/build/Modern/Pagination/Pagination.d.ts +6 -6
  342. package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
  343. package/build/Modern/Pagination/Pagination.js +69 -82
  344. package/build/Modern/Pagination/Pagination.model.d.ts +3 -2
  345. package/build/Modern/Pagination/Pagination.model.d.ts.map +1 -1
  346. package/build/Modern/Pagination/Pagination.model.js +31 -34
  347. package/build/Modern/Pagination/__tests__/Pagination.doc.md +2 -2
  348. package/build/Modern/Pagination/index.js +1 -1
  349. package/build/Modern/hooks/index.js +2 -2
  350. package/build/Modern/hooks/useMedia.d.ts +3 -3
  351. package/build/Modern/hooks/useMedia.d.ts.map +1 -1
  352. package/build/Modern/hooks/useMedia.js +30 -41
  353. package/build/Modern/hooks/useRefObjectAsForwardedRef.js +1 -3
  354. package/build/Modern/hooks/useResponsiveValue.js +6 -10
  355. package/build/Modern/index.d.ts +2 -2
  356. package/build/Modern/index.js +1 -1
  357. package/build/Modern/type.d.ts +1 -0
  358. package/build/Modern/type.d.ts.map +1 -1
  359. package/build/Modern/utils/environment.js +1 -2
  360. package/build/Modern/utils/hasInteractiveNodes.js +11 -15
  361. package/build/Modern/utils/modern-polymorphic.d.ts +2 -2
  362. package/build/Modern/utils/modern-polymorphic.d.ts.map +1 -1
  363. package/build/Modern/utils/modern-polymorphic.js +1 -1
  364. package/build/Modern/utils/polymorphic.d.ts +1 -1
  365. package/build/Modern/utils/polymorphic.d.ts.map +1 -1
  366. package/build/Modern/utils/testing.d.ts +2 -1
  367. package/build/Modern/utils/testing.d.ts.map +1 -1
  368. package/build/Modern/utils/testing.js +2 -2
  369. package/build/Modern/utils/types/ComponentProps.d.ts +2 -1
  370. package/build/Modern/utils/types/ComponentProps.d.ts.map +1 -1
  371. package/build/Modern/utils/types/Slots.d.ts +2 -1
  372. package/build/Modern/utils/types/Slots.d.ts.map +1 -1
  373. package/build/Modern/utils/types/index.js +3 -3
  374. package/build/Modern/utils/warning.js +4 -7
  375. package/build/index.d.ts +2 -2
  376. package/build/index.d.ts.map +1 -1
  377. package/build/index.js +2 -2
  378. package/package.json +4 -4
@@ -2,47 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.IconAlignment = exports.ButtonVariant = exports.ButtonState = exports.ButtonSize = exports.ButtonInputType = exports.ButtonElement = exports.ButtonDefault = void 0;
7
- var ButtonElement = exports.ButtonElement = {
8
- Button: 'button',
9
- A: 'a'
10
- };
11
- var ButtonSize = exports.ButtonSize = {
12
- Small: 'small',
13
- Normal: 'normal',
14
- Large: 'large'
15
- };
16
- var ButtonState = exports.ButtonState = {
17
- Active: 'active',
18
- Inactive: 'inactive'
19
- };
20
- var IconAlignment = exports.IconAlignment = {
21
- Left: 'left',
22
- Right: 'Right'
23
- };
24
- var ButtonInputType = exports.ButtonInputType = {
25
- File: 'file',
26
- Submit: 'submit'
27
- };
28
- var ButtonVariant = exports.ButtonVariant = {
29
- Default: 'default',
30
- Primary: 'primary',
31
- Danger: 'danger',
32
- Outline: 'outline',
33
- Blue: 'blue',
34
- Orange: 'orange'
35
- };
36
- var ButtonDefault = exports.ButtonDefault = {
37
- DataTestId: null,
38
- Id: null,
39
- ClassName: null,
40
- Element: ButtonElement.Button,
41
- Href: null,
42
- Variant: ButtonVariant.Default,
43
- Size: ButtonSize.Normal,
44
- State: ButtonState.Active,
45
- Icon: null,
46
- InputType: null,
47
- AutoFocus: false
48
- };
5
+ });
@@ -10,18 +10,18 @@ Button all props and variants
10
10
 
11
11
  ```typescript
12
12
  export interface IButton {
13
- dataTestId?: string
14
- id?: string
15
- className?: string
13
+ dataTestId?: string | null
14
+ id?: string | null
15
+ className?: string | null
16
16
  element?: string
17
- href?: string
17
+ href?: string | null
18
18
  text: string
19
19
  variant?: string
20
20
  size?: string
21
21
  state?: string
22
22
  icon?: IIcon
23
- onClick: (value?: string) => void
24
- inputType?: string
23
+ onClick?: ((value?: FileList | null) => void) | ((value?: string) => void) | (() => void)
24
+ inputType?: string | null
25
25
  autoFocus?: boolean
26
26
  }
27
27
  ```
@@ -1,3 +1,4 @@
1
1
  export { Button } from './Button';
2
- export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.type';
2
+ export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.const';
3
+ export type { IButton, IButtonDefault, IIcon } from './Button.type';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACtH,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA"}
@@ -5,45 +5,45 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Button", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Button.Button;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "ButtonElement", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Button2.ButtonElement;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "ButtonInputType", {
19
19
  enumerable: true,
20
- get: function get() {
20
+ get: function () {
21
21
  return _Button2.ButtonInputType;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "ButtonSize", {
25
25
  enumerable: true,
26
- get: function get() {
26
+ get: function () {
27
27
  return _Button2.ButtonSize;
28
28
  }
29
29
  });
30
30
  Object.defineProperty(exports, "ButtonState", {
31
31
  enumerable: true,
32
- get: function get() {
32
+ get: function () {
33
33
  return _Button2.ButtonState;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "ButtonVariant", {
37
37
  enumerable: true,
38
- get: function get() {
38
+ get: function () {
39
39
  return _Button2.ButtonVariant;
40
40
  }
41
41
  });
42
42
  Object.defineProperty(exports, "IconAlignment", {
43
43
  enumerable: true,
44
- get: function get() {
44
+ get: function () {
45
45
  return _Button2.IconAlignment;
46
46
  }
47
47
  });
48
48
  var _Button = require("./Button");
49
- var _Button2 = require("./Button.type");
49
+ var _Button2 = require("./Button.const");
@@ -0,0 +1,4 @@
1
+ import type { IDropdownDefault, IDropdownState } from './Dropdown.type';
2
+ export declare const DropdownState: IDropdownState;
3
+ export declare const DropdownDefault: IDropdownDefault;
4
+ //# sourceMappingURL=Dropdown.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEvE,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAO7B,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DropdownState = exports.DropdownDefault = void 0;
7
+ const DropdownState = exports.DropdownState = {
8
+ Active: 'active',
9
+ Inactive: 'inactive'
10
+ };
11
+ const DropdownDefault = exports.DropdownDefault = {
12
+ ClassName: null,
13
+ AriaAttr: {
14
+ hasPopup: false,
15
+ current: 'page'
16
+ },
17
+ State: DropdownState.Active
18
+ };
@@ -1,3 +1,4 @@
1
- import { IDropdown } from './Dropdown.type';
2
- export declare function Dropdown({ className, summary, ariaAttr, items, onClick, state, }: IDropdown): import("react/jsx-runtime").JSX.Element;
1
+ import type { JSX } from 'react';
2
+ import type { IDropdown } from './Dropdown.type';
3
+ export declare function Dropdown({ className, summary, ariaAttr, items, onClick, state, }: IDropdown): JSX.Element | null;
3
4
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAkC,SAAS,EAAuB,MAAM,iBAAiB,CAAA;AAEhG,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,OAAO,EACP,QAAmC,EACnC,KAAK,EACL,OAAO,EACP,KAA6B,GAC9B,EAAE,SAAS,2CAkFX"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAKhC,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,iBAAiB,CAAA;AAErE,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,OAAO,EACP,QAAmC,EACnC,KAAK,EACL,OAAO,EACP,KAA6B,GAC9B,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAkFhC"}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.Dropdown = Dropdown;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _details = _interopRequireDefault(require("@papillonarts/css/utilities/details.scss"));
10
9
  var _flexbox = _interopRequireDefault(require("@papillonarts/css/utilities/flexbox.scss"));
11
10
  var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
@@ -15,79 +14,79 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
14
  var _react = require("react");
16
15
  var _uuid = require("uuid");
17
16
  var _Button = _interopRequireDefault(require("../Button/Button.scss"));
18
- var _Dropdown = _interopRequireDefault(require("./Dropdown.scss"));
19
- var _Dropdown2 = require("./Dropdown.type");
17
+ var _Dropdown = require("./Dropdown.const");
18
+ var _Dropdown2 = _interopRequireDefault(require("./Dropdown.scss"));
20
19
  var _jsxRuntime = require("react/jsx-runtime");
21
- function Dropdown(_ref) {
22
- var _ariaAttr$hasPopup;
23
- var _ref$className = _ref.className,
24
- className = _ref$className === void 0 ? _Dropdown2.DropdownDefault.ClassName : _ref$className,
25
- summary = _ref.summary,
26
- _ref$ariaAttr = _ref.ariaAttr,
27
- ariaAttr = _ref$ariaAttr === void 0 ? _Dropdown2.DropdownDefault.AriaAttr : _ref$ariaAttr,
28
- items = _ref.items,
29
- _onClick = _ref.onClick,
30
- _ref$state = _ref.state,
31
- state = _ref$state === void 0 ? _Dropdown2.DropdownDefault.State : _ref$state;
32
- var details = (0, _react.useRef)(null);
20
+ function Dropdown({
21
+ className = _Dropdown.DropdownDefault.ClassName,
22
+ summary,
23
+ ariaAttr = _Dropdown.DropdownDefault.AriaAttr,
24
+ items,
25
+ onClick,
26
+ state = _Dropdown.DropdownDefault.State
27
+ }) {
28
+ const details = (0, _react.useRef)(null);
33
29
  if (!items) {
34
30
  return null;
35
31
  }
36
- var indexItems = (0, _array.getIndexItems)(items);
32
+ const indexItems = (0, _array.getIndexItems)(items);
37
33
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
38
34
  className: className,
39
35
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("details", {
40
36
  ref: details,
41
- className: (0, _classnames["default"])(_Dropdown["default"].dropdown, _details["default"]['details-reset'], _details["default"]['details-overlay'], _visibilityDisplay["default"]['d-inline-block'], (0, _defineProperty2["default"])({}, _Dropdown["default"]['dropdown-inactive'], state === _Dropdown2.DropdownState.Inactive)),
37
+ className: (0, _classnames.default)(_Dropdown2.default.dropdown, _details.default['details-reset'], _details.default['details-overlay'], _visibilityDisplay.default['d-inline-block'], {
38
+ [_Dropdown2.default['dropdown-inactive']]: state === _Dropdown.DropdownState.Inactive
39
+ }),
42
40
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("summary", {
43
- className: (0, _classnames["default"])(_Button["default"].btn),
44
- "aria-haspopup": (_ariaAttr$hasPopup = ariaAttr === null || ariaAttr === void 0 ? void 0 : ariaAttr.hasPopup) !== null && _ariaAttr$hasPopup !== void 0 ? _ariaAttr$hasPopup : false,
41
+ className: (0, _classnames.default)(_Button.default.btn),
42
+ "aria-haspopup": ariaAttr?.hasPopup ?? false,
45
43
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
46
- className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-justify-between'], _flexbox["default"]['flex-items-center'], (0, _defineProperty2["default"])({}, _Dropdown["default"]['dropdown-inactive'], state === _Dropdown2.DropdownState.Inactive)),
44
+ className: (0, _classnames.default)(_visibilityDisplay.default['d-flex'], _flexbox.default['flex-justify-between'], _flexbox.default['flex-items-center'], {
45
+ [_Dropdown2.default['dropdown-inactive']]: state === _Dropdown.DropdownState.Inactive
46
+ }),
47
47
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
48
  children: summary
49
49
  }), " ", /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
- className: _Dropdown["default"]['dropdown-caret']
50
+ className: _Dropdown2.default['dropdown-caret']
51
51
  })]
52
52
  })
53
53
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
54
- className: (0, _classnames["default"])(_Dropdown["default"]['dropdown-menu'], _Dropdown["default"]['dropdown-menu-se'], _layout["default"]['width-full']),
55
- children: indexItems.map(function (indexItem) {
56
- var href = indexItem.href,
57
- text = indexItem.text;
54
+ className: (0, _classnames.default)(_Dropdown2.default['dropdown-menu'], _Dropdown2.default['dropdown-menu-se'], _layout.default['width-full']),
55
+ children: indexItems.map(indexItem => {
56
+ const {
57
+ href,
58
+ text /* isSelected */
59
+ } = indexItem;
58
60
 
59
61
  // const itemOtherProps = isSelected ? { ...{ 'aria-current': ariaAttr?.Current } } : null
60
62
 
61
63
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
62
64
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
63
- onClick: function onClick(e) {
65
+ onClick: e => {
64
66
  e.preventDefault();
65
- var newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
66
- _onClick({
67
+ const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
68
+ onClick({
67
69
  summary: text,
68
- ariaAttr: ariaAttr,
69
- items: newIndexItems.map(function (newIndexItem) {
70
- return function (_ref2) {
71
- var newIndexItemId = _ref2.id,
72
- newIndexItemHref = _ref2.href,
73
- newIndexItemText = _ref2.text,
74
- dateModified = _ref2['date-modified'],
75
- dateCreated = _ref2['date-created'],
76
- newIndexItemIsSelected = _ref2.isSelected;
77
- return {
78
- id: newIndexItemId,
79
- href: newIndexItemHref,
80
- text: newIndexItemText,
81
- 'date-modified': dateModified,
82
- 'date-created': dateCreated,
83
- isSelected: newIndexItemIsSelected
84
- };
85
- }(newIndexItem);
86
- })
70
+ ariaAttr,
71
+ items: newIndexItems.map(newIndexItem => (({
72
+ id: newIndexItemId,
73
+ href: newIndexItemHref,
74
+ text: newIndexItemText,
75
+ 'date-modified': dateModified,
76
+ 'date-created': dateCreated,
77
+ isSelected: newIndexItemIsSelected
78
+ }) => ({
79
+ id: newIndexItemId,
80
+ href: newIndexItemHref,
81
+ text: newIndexItemText,
82
+ 'date-modified': dateModified,
83
+ 'date-created': dateCreated,
84
+ isSelected: newIndexItemIsSelected
85
+ }))(newIndexItem))
87
86
  });
88
- details.current.removeAttribute('open');
87
+ details.current?.removeAttribute('open');
89
88
  },
90
- className: _Dropdown["default"]['dropdown-item'],
89
+ className: _Dropdown2.default['dropdown-item'],
91
90
  href: href
92
91
  // @ts-ignore
93
92
  // {...itemOtherProps}
@@ -3,13 +3,11 @@ export interface IDropdownState {
3
3
  Active: string;
4
4
  Inactive: string;
5
5
  }
6
- export declare const DropdownState: IDropdownState;
7
6
  export interface IDropdownDefault {
8
- ClassName: string;
7
+ ClassName: string | null;
9
8
  AriaAttr: IAriaAttr;
10
9
  State: string;
11
10
  }
12
- export declare const DropdownDefault: IDropdownDefault;
13
11
  export interface IAriaAttr {
14
12
  hasPopup: boolean;
15
13
  current: string;
@@ -18,18 +16,23 @@ export interface IItem {
18
16
  href: string;
19
17
  text: string;
20
18
  isSelected: boolean;
21
- id: string;
22
- 'date-modified': string;
23
- 'date-created': string;
19
+ id?: string;
20
+ 'date-modified'?: string;
21
+ 'date-created'?: string;
24
22
  }
25
23
  export interface IIndexedItem extends IIndexed, IItem {
26
24
  }
25
+ export interface IDropdownOnClickValue {
26
+ summary: string;
27
+ ariaAttr?: IAriaAttr;
28
+ items: IItem[];
29
+ }
27
30
  export interface IDropdown {
28
31
  className?: string;
29
32
  summary: string;
30
33
  ariaAttr?: IAriaAttr;
31
34
  items: IItem[];
32
- onClick: (value: any) => void;
35
+ onClick: (value: IDropdownOnClickValue) => void;
33
36
  state?: string;
34
37
  }
35
38
  //# sourceMappingURL=Dropdown.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,gBAO7B,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AAExD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
1
+ {"version":3,"file":"Dropdown.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AACD,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AACxD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;CACf;AACD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -2,17 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.DropdownState = exports.DropdownDefault = void 0;
7
- var DropdownState = exports.DropdownState = {
8
- Active: 'active',
9
- Inactive: 'inactive'
10
- };
11
- var DropdownDefault = exports.DropdownDefault = {
12
- ClassName: null,
13
- AriaAttr: {
14
- hasPopup: false,
15
- current: 'page'
16
- },
17
- State: DropdownState.Active
18
- };
5
+ });
@@ -14,7 +14,7 @@ export interface IDropdown {
14
14
  summary: string
15
15
  ariaAttr?: IAriaAttr
16
16
  items: IItem[]
17
- onClick: (value) => void
17
+ onClick: (value: IDropdownOnClickValue) => void
18
18
  state?: string
19
19
  }
20
20
  ```
@@ -1,3 +1,4 @@
1
1
  export { Dropdown } from './Dropdown';
2
- export { DropdownState } from './Dropdown.type';
2
+ export { DropdownState } from './Dropdown.const';
3
+ export { type IDropdown, type IDropdownDefault, type IItem, type IAriaAttr, type IDropdownOnClickValue } from './Dropdown.type';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Dropdown", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Dropdown.Dropdown;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "DropdownState", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Dropdown2.DropdownState;
16
16
  }
17
17
  });
18
18
  var _Dropdown = require("./Dropdown");
19
- var _Dropdown2 = require("./Dropdown.type");
19
+ var _Dropdown2 = require("./Dropdown.const");
@@ -1,11 +1,10 @@
1
+ import type { ErrorInfo, ReactNode } from 'react';
1
2
  import { Component } from 'react';
2
- import { IErrorBoundary } from './ErrorBoundary.type';
3
- export declare class ErrorBoundary extends Component<IErrorBoundary> {
4
- constructor(props: any);
5
- static getDerivedStateFromError(error: any): {
6
- hasError: boolean;
7
- };
8
- componentDidCatch(error: any, errorInfo: any): void;
9
- render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>;
3
+ import type { IErrorBoundary, IErrorBoundaryState } from './ErrorBoundary.type';
4
+ export declare class ErrorBoundary extends Component<IErrorBoundary, IErrorBoundaryState> {
5
+ constructor(props: IErrorBoundary);
6
+ static getDerivedStateFromError(error: Error): IErrorBoundaryState;
7
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
8
+ render(): ReactNode;
10
9
  }
11
10
  //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,qBAAa,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;gBAC9C,KAAK,KAAA;IAMjB,MAAM,CAAC,wBAAwB,CAAC,KAAK,KAAA;;;IAKrC,iBAAiB,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAMlC,MAAM;CAaP"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/E,qBAAa,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;gBACnE,KAAK,EAAE,cAAc;IAMjC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKlE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAM3D,MAAM,IAAI,SAAS;CAWpB"}
@@ -1,61 +1,45 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.ErrorBoundary = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
7
  var _react = require("react");
14
8
  var _jsxRuntime = require("react/jsx-runtime");
15
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
16
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
- var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_Component) {
18
- function ErrorBoundary(props) {
19
- var _this;
20
- (0, _classCallCheck2["default"])(this, ErrorBoundary);
21
- _this = _callSuper(this, ErrorBoundary, [props]);
22
- _this.state = {
9
+ class ErrorBoundary extends _react.Component {
10
+ constructor(props) {
11
+ super(props);
12
+ this.state = {
23
13
  hasError: false
24
14
  };
25
- return _this;
26
15
  }
27
16
 
28
- // eslint-disable-next-line
29
- (0, _inherits2["default"])(ErrorBoundary, _Component);
30
- return (0, _createClass2["default"])(ErrorBoundary, [{
31
- key: "componentDidCatch",
32
- value: function componentDidCatch(error, errorInfo) {
33
- // You can also log the error to an error reporting service
34
- console.log('~error~', error);
35
- console.log('~errorInfo~', errorInfo);
36
- }
37
- }, {
38
- key: "render",
39
- value: function render() {
40
- // @ts-ignore
41
- var hasError = this.state.hasError;
42
- // @ts-ignore
43
- var children = this.props.children;
44
- if (hasError) {
45
- // You can render any custom fallback UI
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
47
- children: "Something went wrong."
48
- });
49
- }
50
- return children;
51
- }
52
- }], [{
53
- key: "getDerivedStateFromError",
54
- value: function getDerivedStateFromError(error) {
55
- // Update state so the next render will show the fallback UI.
56
- return {
57
- hasError: true
58
- };
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ static getDerivedStateFromError(error) {
19
+ // Update state so the next render will show the fallback UI.
20
+ return {
21
+ hasError: true
22
+ };
23
+ }
24
+ componentDidCatch(error, errorInfo) {
25
+ // You can also log the error to an error reporting service
26
+ console.log('~error~', error);
27
+ console.log('~errorInfo~', errorInfo);
28
+ }
29
+ render() {
30
+ const {
31
+ hasError
32
+ } = this.state;
33
+ const {
34
+ children
35
+ } = this.props;
36
+ if (hasError) {
37
+ // You can render any custom fallback UI
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
39
+ children: "Something went wrong."
40
+ });
59
41
  }
60
- }]);
61
- }(_react.Component);
42
+ return children;
43
+ }
44
+ }
45
+ exports.ErrorBoundary = ErrorBoundary;
@@ -1,4 +1,8 @@
1
+ import type { ReactNode } from 'react';
1
2
  export interface IErrorBoundary {
2
- children: React.ReactNode;
3
+ children: ReactNode;
4
+ }
5
+ export interface IErrorBoundaryState {
6
+ hasError: boolean;
3
7
  }
4
8
  //# sourceMappingURL=ErrorBoundary.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B"}
1
+ {"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAA;CAClB"}
@@ -12,7 +12,11 @@ ErrorBoundary all props and variants
12
12
 
13
13
  ```typescript
14
14
  export interface IErrorBoundary {
15
- children: React.ReactNode
15
+ children: ReactNode
16
+ }
17
+
18
+ export interface IErrorBoundaryState {
19
+ hasError: boolean
16
20
  }
17
21
  ```
18
22
 
@@ -1,2 +1,3 @@
1
1
  export { ErrorBoundary } from './ErrorBoundary';
2
+ export { type IErrorBoundary, type IErrorBoundaryState } from './ErrorBoundary.type';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "ErrorBoundary", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _ErrorBoundary.ErrorBoundary;
10
10
  }
11
11
  });
@@ -0,0 +1,5 @@
1
+ import type { ICheckboxDefault, ICheckboxState, IInputType } from './Checkbox.type';
2
+ export declare const CheckboxState: ICheckboxState;
3
+ export declare const InputType: IInputType;
4
+ export declare const CheckboxDefault: ICheckboxDefault;
5
+ //# sourceMappingURL=Checkbox.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.const.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Form/Checkbox/Checkbox.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEnF,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,UAEvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAQ7B,CAAA"}