@papillonarts/components 0.49.0 → 0.49.2

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 (344) 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 +2 -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 +0 -2
  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/index.d.ts +1 -1
  12. package/build/Legacy/Alert/index.d.ts.map +1 -1
  13. package/build/Legacy/Alert/index.js +3 -3
  14. package/build/Legacy/Blankslate/Blankslate.const.d.ts +4 -0
  15. package/build/Legacy/Blankslate/Blankslate.const.d.ts.map +1 -0
  16. package/build/Legacy/Blankslate/Blankslate.const.js +18 -0
  17. package/build/Legacy/Blankslate/Blankslate.d.ts +1 -1
  18. package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
  19. package/build/Legacy/Blankslate/Blankslate.js +17 -14
  20. package/build/Legacy/Blankslate/Blankslate.type.d.ts +0 -2
  21. package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
  22. package/build/Legacy/Blankslate/Blankslate.type.js +1 -14
  23. package/build/Legacy/Blankslate/index.d.ts +1 -1
  24. package/build/Legacy/Blankslate/index.d.ts.map +1 -1
  25. package/build/Legacy/Blankslate/index.js +3 -3
  26. package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts +4 -0
  27. package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts.map +1 -0
  28. package/build/Legacy/Breadcrumb/Breadcrumb.const.js +14 -0
  29. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +1 -1
  30. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  31. package/build/Legacy/Breadcrumb/Breadcrumb.js +50 -46
  32. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +0 -2
  33. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
  34. package/build/Legacy/Breadcrumb/Breadcrumb.type.js +1 -10
  35. package/build/Legacy/Breadcrumb/index.d.ts +1 -1
  36. package/build/Legacy/Breadcrumb/index.d.ts.map +1 -1
  37. package/build/Legacy/Breadcrumb/index.js +3 -3
  38. package/build/Legacy/Button/Button.const.d.ts +9 -0
  39. package/build/Legacy/Button/Button.const.d.ts.map +1 -0
  40. package/build/Legacy/Button/Button.const.js +48 -0
  41. package/build/Legacy/Button/Button.d.ts +1 -1
  42. package/build/Legacy/Button/Button.d.ts.map +1 -1
  43. package/build/Legacy/Button/Button.js +60 -66
  44. package/build/Legacy/Button/Button.type.d.ts +0 -7
  45. package/build/Legacy/Button/Button.type.d.ts.map +1 -1
  46. package/build/Legacy/Button/Button.type.js +1 -44
  47. package/build/Legacy/Button/index.d.ts +1 -1
  48. package/build/Legacy/Button/index.d.ts.map +1 -1
  49. package/build/Legacy/Button/index.js +8 -8
  50. package/build/Legacy/Dropdown/Dropdown.const.d.ts +4 -0
  51. package/build/Legacy/Dropdown/Dropdown.const.d.ts.map +1 -0
  52. package/build/Legacy/Dropdown/Dropdown.const.js +18 -0
  53. package/build/Legacy/Dropdown/Dropdown.d.ts +1 -1
  54. package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
  55. package/build/Legacy/Dropdown/Dropdown.js +49 -51
  56. package/build/Legacy/Dropdown/Dropdown.type.d.ts +0 -2
  57. package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
  58. package/build/Legacy/Dropdown/Dropdown.type.js +1 -14
  59. package/build/Legacy/Dropdown/index.d.ts +2 -1
  60. package/build/Legacy/Dropdown/index.d.ts.map +1 -1
  61. package/build/Legacy/Dropdown/index.js +3 -3
  62. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +3 -2
  63. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  64. package/build/Legacy/ErrorBoundary/ErrorBoundary.js +31 -45
  65. package/build/Legacy/ErrorBoundary/index.js +1 -1
  66. package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts +5 -0
  67. package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts.map +1 -0
  68. package/build/Legacy/Form/Checkbox/Checkbox.const.js +22 -0
  69. package/build/Legacy/Form/Checkbox/Checkbox.d.ts +1 -1
  70. package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
  71. package/build/Legacy/Form/Checkbox/Checkbox.js +22 -25
  72. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +0 -3
  73. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
  74. package/build/Legacy/Form/Checkbox/Checkbox.type.js +1 -18
  75. package/build/Legacy/Form/Checkbox/index.d.ts +1 -1
  76. package/build/Legacy/Form/Checkbox/index.d.ts.map +1 -1
  77. package/build/Legacy/Form/Checkbox/index.js +3 -3
  78. package/build/Legacy/Form/Input/Input.const.d.ts +5 -0
  79. package/build/Legacy/Form/Input/Input.const.d.ts.map +1 -0
  80. package/build/Legacy/Form/Input/Input.const.js +30 -0
  81. package/build/Legacy/Form/Input/Input.d.ts +1 -1
  82. package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
  83. package/build/Legacy/Form/Input/Input.js +25 -32
  84. package/build/Legacy/Form/Input/Input.type.d.ts +0 -3
  85. package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
  86. package/build/Legacy/Form/Input/Input.type.js +1 -26
  87. package/build/Legacy/Form/Input/index.d.ts +1 -1
  88. package/build/Legacy/Form/Input/index.d.ts.map +1 -1
  89. package/build/Legacy/Form/Input/index.js +4 -4
  90. package/build/Legacy/Form/Radio/Radio.const.d.ts +5 -0
  91. package/build/Legacy/Form/Radio/Radio.const.d.ts.map +1 -0
  92. package/build/Legacy/Form/Radio/Radio.const.js +22 -0
  93. package/build/Legacy/Form/Radio/Radio.d.ts +1 -1
  94. package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
  95. package/build/Legacy/Form/Radio/Radio.js +19 -24
  96. package/build/Legacy/Form/Radio/Radio.type.d.ts +0 -3
  97. package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
  98. package/build/Legacy/Form/Radio/Radio.type.js +1 -18
  99. package/build/Legacy/Form/Radio/index.d.ts +1 -1
  100. package/build/Legacy/Form/Radio/index.d.ts.map +1 -1
  101. package/build/Legacy/Form/Radio/index.js +3 -3
  102. package/build/Legacy/Form/index.js +1 -1
  103. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts +3 -0
  104. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts.map +1 -0
  105. package/build/Legacy/Grid/DisplayTable/DisplayTable.const.js +11 -0
  106. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +1 -1
  107. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
  108. package/build/Legacy/Grid/DisplayTable/DisplayTable.js +26 -31
  109. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +0 -1
  110. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
  111. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.js +1 -7
  112. package/build/Legacy/Grid/DisplayTable/index.js +1 -1
  113. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts +5 -0
  114. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts.map +1 -0
  115. package/build/Legacy/Grid/FlexGrid/FlexGrid.const.js +28 -0
  116. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +1 -1
  117. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
  118. package/build/Legacy/Grid/FlexGrid/FlexGrid.js +148 -167
  119. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +1 -4
  120. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
  121. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.js +1 -24
  122. package/build/Legacy/Grid/FlexGrid/index.d.ts +1 -1
  123. package/build/Legacy/Grid/FlexGrid/index.d.ts.map +1 -1
  124. package/build/Legacy/Grid/FlexGrid/index.js +4 -4
  125. package/build/Legacy/Grid/index.js +1 -1
  126. package/build/Legacy/Icon/Icon.const.d.ts +656 -0
  127. package/build/Legacy/Icon/Icon.const.d.ts.map +1 -0
  128. package/build/Legacy/Icon/Icon.const.js +678 -0
  129. package/build/Legacy/Icon/Icon.d.ts +1 -1
  130. package/build/Legacy/Icon/Icon.d.ts.map +1 -1
  131. package/build/Legacy/Icon/Icon.js +33 -44
  132. package/build/Legacy/Icon/Icon.part.js +645 -645
  133. package/build/Legacy/Icon/Icon.type.d.ts +0 -654
  134. package/build/Legacy/Icon/Icon.type.d.ts.map +1 -1
  135. package/build/Legacy/Icon/Icon.type.js +1 -674
  136. package/build/Legacy/Icon/index.d.ts +1 -1
  137. package/build/Legacy/Icon/index.d.ts.map +1 -1
  138. package/build/Legacy/Icon/index.js +4 -4
  139. package/build/Legacy/Label/Label.const.d.ts +6 -0
  140. package/build/Legacy/Label/Label.const.d.ts.map +1 -0
  141. package/build/Legacy/Label/Label.const.js +26 -0
  142. package/build/Legacy/Label/Label.d.ts +1 -1
  143. package/build/Legacy/Label/Label.d.ts.map +1 -1
  144. package/build/Legacy/Label/Label.js +16 -15
  145. package/build/Legacy/Label/Label.type.d.ts +0 -4
  146. package/build/Legacy/Label/Label.type.d.ts.map +1 -1
  147. package/build/Legacy/Label/Label.type.js +1 -22
  148. package/build/Legacy/Label/index.js +1 -1
  149. package/build/Legacy/Loader/Loader.const.d.ts +4 -0
  150. package/build/Legacy/Loader/Loader.const.d.ts.map +1 -0
  151. package/build/Legacy/Loader/Loader.const.js +15 -0
  152. package/build/Legacy/Loader/Loader.d.ts +1 -1
  153. package/build/Legacy/Loader/Loader.d.ts.map +1 -1
  154. package/build/Legacy/Loader/Loader.js +19 -19
  155. package/build/Legacy/Loader/Loader.type.d.ts +0 -2
  156. package/build/Legacy/Loader/Loader.type.d.ts.map +1 -1
  157. package/build/Legacy/Loader/Loader.type.js +1 -11
  158. package/build/Legacy/Loader/index.d.ts +1 -1
  159. package/build/Legacy/Loader/index.d.ts.map +1 -1
  160. package/build/Legacy/Loader/index.js +3 -3
  161. package/build/Legacy/Markdown/Markdown.const.d.ts +4 -0
  162. package/build/Legacy/Markdown/Markdown.const.d.ts.map +1 -0
  163. package/build/Legacy/Markdown/Markdown.const.js +14 -0
  164. package/build/Legacy/Markdown/Markdown.d.ts +1 -1
  165. package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
  166. package/build/Legacy/Markdown/Markdown.js +20 -16
  167. package/build/Legacy/Markdown/Markdown.type.d.ts +0 -2
  168. package/build/Legacy/Markdown/Markdown.type.d.ts.map +1 -1
  169. package/build/Legacy/Markdown/Markdown.type.js +1 -10
  170. package/build/Legacy/Markdown/index.js +1 -1
  171. package/build/Legacy/Navigation/Menu/Menu.const.d.ts +3 -0
  172. package/build/Legacy/Navigation/Menu/Menu.const.d.ts.map +1 -0
  173. package/build/Legacy/Navigation/Menu/Menu.const.js +10 -0
  174. package/build/Legacy/Navigation/Menu/Menu.d.ts +1 -1
  175. package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
  176. package/build/Legacy/Navigation/Menu/Menu.js +40 -42
  177. package/build/Legacy/Navigation/Menu/Menu.type.d.ts +0 -1
  178. package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
  179. package/build/Legacy/Navigation/Menu/Menu.type.js +1 -6
  180. package/build/Legacy/Navigation/Menu/index.js +1 -1
  181. package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts +4 -0
  182. package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts.map +1 -0
  183. package/build/Legacy/Navigation/TabNav/TabNav.const.js +16 -0
  184. package/build/Legacy/Navigation/TabNav/TabNav.d.ts +1 -1
  185. package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
  186. package/build/Legacy/Navigation/TabNav/TabNav.js +79 -79
  187. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +1 -3
  188. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
  189. package/build/Legacy/Navigation/TabNav/TabNav.type.js +1 -12
  190. package/build/Legacy/Navigation/TabNav/index.d.ts +1 -1
  191. package/build/Legacy/Navigation/TabNav/index.d.ts.map +1 -1
  192. package/build/Legacy/Navigation/TabNav/index.js +3 -3
  193. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts +5 -0
  194. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts.map +1 -0
  195. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.js +20 -0
  196. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +1 -1
  197. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  198. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.js +64 -63
  199. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +0 -3
  200. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
  201. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.js +1 -16
  202. package/build/Legacy/Navigation/UnderlineNav/index.d.ts +1 -1
  203. package/build/Legacy/Navigation/UnderlineNav/index.d.ts.map +1 -1
  204. package/build/Legacy/Navigation/UnderlineNav/index.js +4 -4
  205. package/build/Legacy/Navigation/index.js +1 -1
  206. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts +4 -0
  207. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts.map +1 -0
  208. package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.js +30 -0
  209. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +1 -1
  210. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
  211. package/build/Legacy/Pagination/PreviousNext/PreviousNext.js +46 -40
  212. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts +0 -2
  213. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts.map +1 -1
  214. package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.js +1 -26
  215. package/build/Legacy/Pagination/PreviousNext/index.d.ts +1 -1
  216. package/build/Legacy/Pagination/PreviousNext/index.d.ts.map +1 -1
  217. package/build/Legacy/Pagination/PreviousNext/index.js +3 -3
  218. package/build/Legacy/Pagination/index.js +1 -1
  219. package/build/Legacy/Popover/Popover.const.d.ts +5 -0
  220. package/build/Legacy/Popover/Popover.const.d.ts.map +1 -0
  221. package/build/Legacy/Popover/Popover.const.js +29 -0
  222. package/build/Legacy/Popover/Popover.d.ts +1 -1
  223. package/build/Legacy/Popover/Popover.d.ts.map +1 -1
  224. package/build/Legacy/Popover/Popover.js +41 -25
  225. package/build/Legacy/Popover/Popover.type.d.ts +0 -3
  226. package/build/Legacy/Popover/Popover.type.d.ts.map +1 -1
  227. package/build/Legacy/Popover/Popover.type.js +1 -25
  228. package/build/Legacy/Popover/index.d.ts +1 -1
  229. package/build/Legacy/Popover/index.d.ts.map +1 -1
  230. package/build/Legacy/Popover/index.js +4 -4
  231. package/build/Legacy/Progress/Progress.const.d.ts +4 -0
  232. package/build/Legacy/Progress/Progress.const.d.ts.map +1 -0
  233. package/build/Legacy/Progress/Progress.const.js +15 -0
  234. package/build/Legacy/Progress/Progress.d.ts +1 -1
  235. package/build/Legacy/Progress/Progress.d.ts.map +1 -1
  236. package/build/Legacy/Progress/Progress.js +15 -14
  237. package/build/Legacy/Progress/Progress.type.d.ts +0 -2
  238. package/build/Legacy/Progress/Progress.type.d.ts.map +1 -1
  239. package/build/Legacy/Progress/Progress.type.js +1 -11
  240. package/build/Legacy/Progress/index.d.ts +1 -1
  241. package/build/Legacy/Progress/index.d.ts.map +1 -1
  242. package/build/Legacy/Progress/index.js +3 -3
  243. package/build/Legacy/Select/Select.const.d.ts +4 -0
  244. package/build/Legacy/Select/Select.const.d.ts.map +1 -0
  245. package/build/Legacy/Select/Select.const.js +15 -0
  246. package/build/Legacy/Select/Select.d.ts +1 -1
  247. package/build/Legacy/Select/Select.d.ts.map +1 -1
  248. package/build/Legacy/Select/Select.js +31 -35
  249. package/build/Legacy/Select/Select.type.d.ts +0 -2
  250. package/build/Legacy/Select/Select.type.d.ts.map +1 -1
  251. package/build/Legacy/Select/Select.type.js +1 -11
  252. package/build/Legacy/Select/index.d.ts +1 -1
  253. package/build/Legacy/Select/index.d.ts.map +1 -1
  254. package/build/Legacy/Select/index.js +3 -3
  255. package/build/Legacy/SelectMenu/SelectMenu.const.d.ts +3 -0
  256. package/build/Legacy/SelectMenu/SelectMenu.const.d.ts.map +1 -0
  257. package/build/Legacy/SelectMenu/SelectMenu.const.js +10 -0
  258. package/build/Legacy/SelectMenu/SelectMenu.d.ts +1 -1
  259. package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
  260. package/build/Legacy/SelectMenu/SelectMenu.js +42 -46
  261. package/build/Legacy/SelectMenu/SelectMenu.type.d.ts +0 -1
  262. package/build/Legacy/SelectMenu/SelectMenu.type.d.ts.map +1 -1
  263. package/build/Legacy/SelectMenu/SelectMenu.type.js +1 -6
  264. package/build/Legacy/SelectMenu/index.js +1 -1
  265. package/build/Legacy/Subhead/Subhead.const.d.ts +3 -0
  266. package/build/Legacy/Subhead/Subhead.const.d.ts.map +1 -0
  267. package/build/Legacy/Subhead/Subhead.const.js +10 -0
  268. package/build/Legacy/Subhead/Subhead.d.ts +1 -1
  269. package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
  270. package/build/Legacy/Subhead/Subhead.js +12 -12
  271. package/build/Legacy/Subhead/Subhead.type.d.ts +0 -1
  272. package/build/Legacy/Subhead/Subhead.type.d.ts.map +1 -1
  273. package/build/Legacy/Subhead/Subhead.type.js +1 -6
  274. package/build/Legacy/Subhead/index.js +1 -1
  275. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts +6 -0
  276. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts.map +1 -0
  277. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.js +25 -0
  278. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +1 -1
  279. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
  280. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +7 -9
  281. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts +0 -4
  282. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts.map +1 -1
  283. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.js +1 -21
  284. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +1 -1
  285. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
  286. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.js +9 -10
  287. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +1 -1
  288. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
  289. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.js +10 -11
  290. package/build/Legacy/SyntaxHighlighter/index.d.ts +1 -1
  291. package/build/Legacy/SyntaxHighlighter/index.d.ts.map +1 -1
  292. package/build/Legacy/SyntaxHighlighter/index.js +5 -5
  293. package/build/Legacy/Toast/Toast.const.d.ts +4 -0
  294. package/build/Legacy/Toast/Toast.const.d.ts.map +1 -0
  295. package/build/Legacy/Toast/Toast.const.js +18 -0
  296. package/build/Legacy/Toast/Toast.d.ts +1 -1
  297. package/build/Legacy/Toast/Toast.d.ts.map +1 -1
  298. package/build/Legacy/Toast/Toast.js +23 -23
  299. package/build/Legacy/Toast/Toast.type.d.ts +0 -2
  300. package/build/Legacy/Toast/Toast.type.d.ts.map +1 -1
  301. package/build/Legacy/Toast/Toast.type.js +1 -14
  302. package/build/Legacy/Toast/index.d.ts +1 -1
  303. package/build/Legacy/Toast/index.d.ts.map +1 -1
  304. package/build/Legacy/Toast/index.js +3 -3
  305. package/build/Legacy/index.js +1 -1
  306. package/build/Modern/Avatar/Avatar.d.ts +1 -1
  307. package/build/Modern/Avatar/Avatar.d.ts.map +1 -1
  308. package/build/Modern/Avatar/Avatar.js +23 -30
  309. package/build/Modern/Avatar/index.js +1 -1
  310. package/build/Modern/AvatarStack/AvatarStack.d.ts +2 -2
  311. package/build/Modern/AvatarStack/AvatarStack.d.ts.map +1 -1
  312. package/build/Modern/AvatarStack/AvatarStack.js +53 -57
  313. package/build/Modern/AvatarStack/index.js +1 -1
  314. package/build/Modern/Flash/Flash.d.ts +1 -1
  315. package/build/Modern/Flash/Flash.d.ts.map +1 -1
  316. package/build/Modern/Flash/Flash.js +13 -17
  317. package/build/Modern/Flash/index.js +1 -1
  318. package/build/Modern/Link/Link.d.ts +3 -3
  319. package/build/Modern/Link/Link.d.ts.map +1 -1
  320. package/build/Modern/Link/Link.js +20 -22
  321. package/build/Modern/Link/index.js +1 -1
  322. package/build/Modern/Pagination/Pagination.d.ts +2 -2
  323. package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
  324. package/build/Modern/Pagination/Pagination.js +68 -79
  325. package/build/Modern/Pagination/Pagination.model.js +30 -34
  326. package/build/Modern/Pagination/index.js +1 -1
  327. package/build/Modern/hooks/index.js +2 -2
  328. package/build/Modern/hooks/useMedia.d.ts +2 -2
  329. package/build/Modern/hooks/useMedia.d.ts.map +1 -1
  330. package/build/Modern/hooks/useMedia.js +29 -38
  331. package/build/Modern/hooks/useRefObjectAsForwardedRef.js +1 -3
  332. package/build/Modern/hooks/useResponsiveValue.js +6 -10
  333. package/build/Modern/index.d.ts +1 -1
  334. package/build/Modern/index.js +1 -1
  335. package/build/Modern/utils/environment.js +1 -2
  336. package/build/Modern/utils/hasInteractiveNodes.js +11 -15
  337. package/build/Modern/utils/modern-polymorphic.js +1 -1
  338. package/build/Modern/utils/polymorphic.d.ts +1 -1
  339. package/build/Modern/utils/polymorphic.d.ts.map +1 -1
  340. package/build/Modern/utils/testing.js +2 -2
  341. package/build/Modern/utils/types/index.js +3 -3
  342. package/build/Modern/utils/warning.js +4 -7
  343. package/build/index.js +2 -2
  344. package/package.json +4 -4
@@ -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.Popover = Popover;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _boxShadow = _interopRequireDefault(require("@papillonarts/css/utilities/box-shadow.scss"));
10
9
  var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
11
10
  var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
@@ -14,47 +13,64 @@ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/ty
14
13
  var _classnames = _interopRequireDefault(require("classnames"));
15
14
  var _box = _interopRequireDefault(require("../Box/box.scss"));
16
15
  var _Button = require("../Button");
17
- var _Popover = _interopRequireDefault(require("./Popover.scss"));
18
- var _Popover2 = require("./Popover.type");
16
+ var _Popover = require("./Popover.const");
17
+ var _Popover2 = _interopRequireDefault(require("./Popover.scss"));
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
- function Popover(_ref) {
21
- var _cx2;
22
- var _ref$className = _ref.className,
23
- className = _ref$className === void 0 ? _Popover2.PopoverDefault.ClassName : _ref$className,
24
- _ref$variant = _ref.variant,
25
- variant = _ref$variant === void 0 ? _Popover2.PopoverDefault.Variant : _ref$variant,
26
- _ref$size = _ref.size,
27
- size = _ref$size === void 0 ? _Popover2.PopoverDefault.Size : _ref$size,
28
- intro = _ref.intro,
29
- heading = _ref.heading,
30
- message = _ref.message,
31
- acknowledge = _ref.acknowledge,
32
- introOnClick = _ref.introOnClick,
33
- acknowledgeOnClick = _ref.acknowledgeOnClick;
19
+ function Popover({
20
+ className = _Popover.PopoverDefault.ClassName,
21
+ variant = _Popover.PopoverDefault.Variant,
22
+ size = _Popover.PopoverDefault.Size,
23
+ intro,
24
+ heading,
25
+ message,
26
+ acknowledge,
27
+ introOnClick,
28
+ acknowledgeOnClick
29
+ }) {
34
30
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
35
- className: (0, _classnames["default"])(className, _layout["default"]['position-relative'], (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _typography["default"]['text-center'], variant === _Popover2.PopoverVariant.Default || variant === _Popover2.PopoverVariant.Bottom), (0, _classnames["default"])(_typography["default"]['text-right'], _padding["default"]['pr-2']), variant === _Popover2.PopoverVariant.BottomRight)),
36
- children: [variant === _Popover2.PopoverVariant.Default && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
31
+ className: (0, _classnames.default)(className, _layout.default['position-relative'], {
32
+ [_typography.default['text-center']]: variant === _Popover.PopoverVariant.Default || variant === _Popover.PopoverVariant.Bottom,
33
+ [(0, _classnames.default)(_typography.default['text-right'], _padding.default['pr-2'])]: variant === _Popover.PopoverVariant.BottomRight
34
+ }),
35
+ children: [variant === _Popover.PopoverVariant.Default && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
37
36
  variant: _Button.ButtonVariant.Primary,
38
37
  text: intro,
39
38
  onClick: introOnClick
40
39
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
41
40
  // @ts-ignore
42
- className: ((0, _classnames["default"])(_Popover["default"].Popover, _layout["default"]['position-relative']), (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, (0, _classnames["default"])(_layout["default"]['right-0'], _layout["default"]['left-0']), variant === _Popover2.PopoverVariant.Default), _padding["default"]['pl-2'], variant === _Popover2.PopoverVariant.BottomLeft)),
41
+ className: ((0, _classnames.default)(_Popover2.default.Popover, _layout.default['position-relative']), {
42
+ [(0, _classnames.default)(_layout.default['right-0'], _layout.default['left-0'])]: variant === _Popover.PopoverVariant.Default,
43
+ [_padding.default['pl-2']]: variant === _Popover.PopoverVariant.BottomLeft
44
+ }),
43
45
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
44
- className: (0, _classnames["default"])(_Popover["default"]['Popover-message'], _typography["default"]['text-left'], _padding["default"]['p-4'], _box["default"].Box, _boxShadow["default"]['box-shadow-large'], (_cx2 = {}, (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_cx2, (0, _classnames["default"])(_margin["default"]['mx-auto'], _margin["default"]['mt-2']), variant === _Popover2.PopoverVariant.Default), (0, _classnames["default"])(_Popover["default"]['Popover-message--bottom'], _margin["default"]['mx-auto'], _margin["default"]['mb-2']), variant === _Popover2.PopoverVariant.Bottom), (0, _classnames["default"])(_Popover["default"]['Popover-message--bottom-right'], _margin["default"]['mb-2']), variant === _Popover2.PopoverVariant.BottomRight), (0, _classnames["default"])(_Popover["default"]['Popover-message--bottom-left'], _margin["default"]['mb-2']), variant === _Popover2.PopoverVariant.BottomLeft), _Popover["default"]['Popover-message--left'], variant === _Popover2.PopoverVariant.Left), _Popover["default"]['Popover-message--left-bottom'], variant === _Popover2.PopoverVariant.LeftBottom), _Popover["default"]['Popover-message--left-top'], variant === _Popover2.PopoverVariant.LeftTop), _Popover["default"]['Popover-message--right'], variant === _Popover2.PopoverVariant.Right), _Popover["default"]['Popover-message--right-bottom'], variant === _Popover2.PopoverVariant.RightBottom), _Popover["default"]['Popover-message--right-top'], variant === _Popover2.PopoverVariant.RightTop), (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])(_cx2, _Popover["default"]['Popover-message--top-left'], variant === _Popover2.PopoverVariant.TopLeft), _Popover["default"]['Popover-message--top-right'], variant === _Popover2.PopoverVariant.TopRight), _Popover["default"]['Popover-message--large'], size === _Popover2.PopoverSize.Large))),
46
+ className: (0, _classnames.default)(_Popover2.default['Popover-message'], _typography.default['text-left'], _padding.default['p-4'], _box.default.Box, _boxShadow.default['box-shadow-large'], {
47
+ [(0, _classnames.default)(_margin.default['mx-auto'], _margin.default['mt-2'])]: variant === _Popover.PopoverVariant.Default,
48
+ [(0, _classnames.default)(_Popover2.default['Popover-message--bottom'], _margin.default['mx-auto'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.Bottom,
49
+ [(0, _classnames.default)(_Popover2.default['Popover-message--bottom-right'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.BottomRight,
50
+ [(0, _classnames.default)(_Popover2.default['Popover-message--bottom-left'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.BottomLeft,
51
+ [_Popover2.default['Popover-message--left']]: variant === _Popover.PopoverVariant.Left,
52
+ [_Popover2.default['Popover-message--left-bottom']]: variant === _Popover.PopoverVariant.LeftBottom,
53
+ [_Popover2.default['Popover-message--left-top']]: variant === _Popover.PopoverVariant.LeftTop,
54
+ [_Popover2.default['Popover-message--right']]: variant === _Popover.PopoverVariant.Right,
55
+ [_Popover2.default['Popover-message--right-bottom']]: variant === _Popover.PopoverVariant.RightBottom,
56
+ [_Popover2.default['Popover-message--right-top']]: variant === _Popover.PopoverVariant.RightTop,
57
+ [_Popover2.default['Popover-message--top-left']]: variant === _Popover.PopoverVariant.TopLeft,
58
+ [_Popover2.default['Popover-message--top-right']]: variant === _Popover.PopoverVariant.TopRight,
59
+ [_Popover2.default['Popover-message--large']]: size === _Popover.PopoverSize.Large
60
+ }),
45
61
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
46
- className: _margin["default"]['mb-2'],
62
+ className: _margin.default['mb-2'],
47
63
  children: heading
48
64
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
49
65
  children: message
50
66
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
51
- className: (0, _classnames["default"])(_margin["default"]['mt-2'], _typography["default"]['text-bold']),
67
+ className: (0, _classnames.default)(_margin.default['mt-2'], _typography.default['text-bold']),
52
68
  text: acknowledge,
53
69
  variant: _Button.ButtonVariant.Outline,
54
70
  onClick: acknowledgeOnClick
55
71
  })]
56
72
  })
57
- }), (variant === _Popover2.PopoverVariant.Bottom || variant === _Popover2.PopoverVariant.BottomRight || variant === _Popover2.PopoverVariant.BottomLeft) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
73
+ }), (variant === _Popover.PopoverVariant.Bottom || variant === _Popover.PopoverVariant.BottomRight || variant === _Popover.PopoverVariant.BottomLeft) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
58
74
  variant: _Button.ButtonVariant.Primary,
59
75
  text: intro,
60
76
  onClick: introOnClick
@@ -12,18 +12,15 @@ export interface IPopoverVariant {
12
12
  TopLeft: string;
13
13
  TopRight: string;
14
14
  }
15
- export declare const PopoverVariant: IPopoverVariant;
16
15
  export interface IPopoverSize {
17
16
  Normal: string;
18
17
  Large: string;
19
18
  }
20
- export declare const PopoverSize: IPopoverSize;
21
19
  export interface IPopoverDefault {
22
20
  ClassName: string;
23
21
  Variant: string;
24
22
  Size: string;
25
23
  }
26
- export declare const PopoverDefault: IPopoverDefault;
27
24
  export interface IPopover {
28
25
  className?: string;
29
26
  variant?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,cAAc,EAAE,eAa5B,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,cAAc,EAAE,eAI5B,CAAA;AAED,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IAC7B,kBAAkB,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;CACpC"}
1
+ {"version":3,"file":"Popover.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IAC7B,kBAAkB,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;CACpC"}
@@ -2,28 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.PopoverVariant = exports.PopoverSize = exports.PopoverDefault = void 0;
7
- var PopoverVariant = exports.PopoverVariant = {
8
- Default: 'default',
9
- Bottom: 'bottom',
10
- BottomRight: 'bottomRight',
11
- BottomLeft: 'bottomLeft',
12
- Left: 'left',
13
- LeftBottom: 'leftBottom',
14
- LeftTop: 'leftTop',
15
- Right: 'right',
16
- RightBottom: 'rightBottom',
17
- RightTop: 'rightTop',
18
- TopLeft: 'topLeft',
19
- TopRight: 'topRight'
20
- };
21
- var PopoverSize = exports.PopoverSize = {
22
- Normal: 'normal',
23
- Large: 'large'
24
- };
25
- var PopoverDefault = exports.PopoverDefault = {
26
- ClassName: null,
27
- Variant: PopoverVariant.Default,
28
- Size: PopoverSize.Normal
29
- };
5
+ });
@@ -1,3 +1,3 @@
1
1
  export { Popover } from './Popover';
2
- export { PopoverVariant, PopoverSize } from './Popover.type';
2
+ export { PopoverVariant, PopoverSize } from './Popover.const';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
@@ -5,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Popover", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Popover.Popover;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "PopoverSize", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Popover2.PopoverSize;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "PopoverVariant", {
19
19
  enumerable: true,
20
- get: function get() {
20
+ get: function () {
21
21
  return _Popover2.PopoverVariant;
22
22
  }
23
23
  });
24
24
  var _Popover = require("./Popover");
25
- var _Popover2 = require("./Popover.type");
25
+ var _Popover2 = require("./Popover.const");
@@ -0,0 +1,4 @@
1
+ import type { IProgressDefault, IProgressVariant } from './Progress.type';
2
+ export declare const ProgressVariant: IProgressVariant;
3
+ export declare const ProgressDefault: IProgressDefault;
4
+ //# sourceMappingURL=Progress.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEzE,eAAO,MAAM,eAAe,EAAE,gBAI7B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ProgressVariant = exports.ProgressDefault = void 0;
7
+ const ProgressVariant = exports.ProgressVariant = {
8
+ Small: 'small',
9
+ Normal: 'normal',
10
+ Large: 'large'
11
+ };
12
+ const ProgressDefault = exports.ProgressDefault = {
13
+ ClassName: null,
14
+ Variant: ProgressVariant.Normal
15
+ };
@@ -1,4 +1,4 @@
1
1
  import type { JSX } from 'react';
2
- import { IProgress } from './Progress.type';
2
+ import type { IProgress } from './Progress.type';
3
3
  export declare function Progress({ className, variant, percentage }: IProgress): JSX.Element;
4
4
  //# sourceMappingURL=Progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,SAAS,EAAoC,MAAM,iBAAiB,CAAA;AAE7E,wBAAgB,QAAQ,CAAC,EAAE,SAAqC,EAAE,OAAiC,EAAE,UAAU,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAazI"}
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,wBAAgB,QAAQ,CAAC,EAAE,SAAqC,EAAE,OAAiC,EAAE,UAAU,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAazI"}
@@ -1,29 +1,30 @@
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.Progress = Progress;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
10
9
  var _classnames = _interopRequireDefault(require("classnames"));
11
- var _Progress = _interopRequireDefault(require("./Progress.scss"));
12
- var _Progress2 = require("./Progress.type");
10
+ var _Progress = require("./Progress.const");
11
+ var _Progress2 = _interopRequireDefault(require("./Progress.scss"));
13
12
  var _jsxRuntime = require("react/jsx-runtime");
14
- function Progress(_ref) {
15
- var _ref$className = _ref.className,
16
- className = _ref$className === void 0 ? _Progress2.ProgressDefault.ClassName : _ref$className,
17
- _ref$variant = _ref.variant,
18
- variant = _ref$variant === void 0 ? _Progress2.ProgressDefault.Variant : _ref$variant,
19
- percentage = _ref.percentage;
20
- var percentageStyle = {
21
- width: "".concat(percentage, "%")
13
+ function Progress({
14
+ className = _Progress.ProgressDefault.ClassName,
15
+ variant = _Progress.ProgressDefault.Variant,
16
+ percentage
17
+ }) {
18
+ const percentageStyle = {
19
+ width: `${percentage}%`
22
20
  };
23
21
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
24
- className: (0, _classnames["default"])(className, _Progress["default"].Progress, (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _Progress["default"]['Progress--large'], variant === _Progress2.ProgressVariant.Large), _Progress["default"]['Progress--small'], variant === _Progress2.ProgressVariant.Small === true)),
22
+ className: (0, _classnames.default)(className, _Progress2.default.Progress, {
23
+ [_Progress2.default['Progress--large']]: variant === _Progress.ProgressVariant.Large,
24
+ [_Progress2.default['Progress--small']]: variant === _Progress.ProgressVariant.Small === true
25
+ }),
25
26
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
26
- className: (0, _classnames["default"])(_Progress["default"]['Progress-item'], _colors["default"]['bg-green']),
27
+ className: (0, _classnames.default)(_Progress2.default['Progress-item'], _colors.default['bg-green']),
27
28
  style: percentageStyle
28
29
  })
29
30
  });
@@ -3,12 +3,10 @@ export interface IProgressVariant {
3
3
  Normal: string;
4
4
  Large: string;
5
5
  }
6
- export declare const ProgressVariant: IProgressVariant;
7
6
  export interface IProgressDefault {
8
7
  ClassName: string;
9
8
  Variant: string;
10
9
  }
11
- export declare const ProgressDefault: IProgressDefault;
12
10
  export interface IProgress {
13
11
  className?: string;
14
12
  variant?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,gBAI7B,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"Progress.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -2,14 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.ProgressVariant = exports.ProgressDefault = void 0;
7
- var ProgressVariant = exports.ProgressVariant = {
8
- Small: 'small',
9
- Normal: 'normal',
10
- Large: 'large'
11
- };
12
- var ProgressDefault = exports.ProgressDefault = {
13
- ClassName: null,
14
- Variant: ProgressVariant.Normal
15
- };
5
+ });
@@ -1,3 +1,3 @@
1
1
  export { Progress } from './Progress';
2
- export { ProgressVariant } from './Progress.type';
2
+ export { ProgressVariant } from './Progress.const';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA"}
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Progress", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Progress.Progress;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "ProgressVariant", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Progress2.ProgressVariant;
16
16
  }
17
17
  });
18
18
  var _Progress = require("./Progress");
19
- var _Progress2 = require("./Progress.type");
19
+ var _Progress2 = require("./Progress.const");
@@ -0,0 +1,4 @@
1
+ import type { ISelectDefault, ISelectState } from './Select.type';
2
+ export declare const SelectState: ISelectState;
3
+ export declare const SelectDefault: ISelectDefault;
4
+ //# sourceMappingURL=Select.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjE,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAI3B,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SelectState = exports.SelectDefault = void 0;
7
+ const SelectState = exports.SelectState = {
8
+ Active: 'active',
9
+ Inactive: 'inactive'
10
+ };
11
+ const SelectDefault = exports.SelectDefault = {
12
+ Id: null,
13
+ ClassName: null,
14
+ State: SelectState.Active
15
+ };
@@ -1,4 +1,4 @@
1
1
  import type { JSX } from 'react';
2
- import { ISelect } from './Select.type';
2
+ import type { ISelect } from './Select.type';
3
3
  export declare function Select({ id, className, selectedText, items, onChange, state, }: ISelect): JSX.Element;
4
4
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAuB,OAAO,EAA8B,MAAM,eAAe,CAAA;AAExF,wBAAgB,MAAM,CAAC,EACrB,EAAqB,EACrB,SAAmC,EACnC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,KAA2B,GAC5B,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CA2CvB"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAA;AAEjE,wBAAgB,MAAM,CAAC,EACrB,EAAqB,EACrB,SAAmC,EACnC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,KAA2B,GAC5B,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CA2CvB"}
@@ -1,61 +1,57 @@
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.Select = Select;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
10
9
  var _array = require("@papillonarts/library/array");
11
10
  var _classnames = _interopRequireDefault(require("classnames"));
12
11
  var _uuid = require("uuid");
13
- var _Select = _interopRequireDefault(require("./Select.scss"));
14
- var _Select2 = require("./Select.type");
12
+ var _Select = require("./Select.const");
13
+ var _Select2 = _interopRequireDefault(require("./Select.scss"));
15
14
  var _jsxRuntime = require("react/jsx-runtime");
16
- function Select(_ref) {
17
- var _ref$id = _ref.id,
18
- id = _ref$id === void 0 ? _Select2.SelectDefault.Id : _ref$id,
19
- _ref$className = _ref.className,
20
- className = _ref$className === void 0 ? _Select2.SelectDefault.ClassName : _ref$className,
21
- selectedText = _ref.selectedText,
22
- items = _ref.items,
23
- onChange = _ref.onChange,
24
- _ref$state = _ref.state,
25
- state = _ref$state === void 0 ? _Select2.SelectDefault.State : _ref$state;
26
- var indexItems = (0, _array.getIndexItems)(items);
27
- var handleOnChange = function handleOnChange(event) {
28
- var indexItem = indexItems.find(function (item) {
29
- return item.text === event.target.value;
30
- });
31
- var newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
15
+ function Select({
16
+ id = _Select.SelectDefault.Id,
17
+ className = _Select.SelectDefault.ClassName,
18
+ selectedText,
19
+ items,
20
+ onChange,
21
+ state = _Select.SelectDefault.State
22
+ }) {
23
+ const indexItems = (0, _array.getIndexItems)(items);
24
+ const handleOnChange = event => {
25
+ const indexItem = indexItems.find(item => item.text === event.target.value);
26
+ const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
32
27
  onChange({
33
28
  selectedText: indexItem.text,
34
- items: newIndexItems.map(function (newIndexItem) {
35
- return function (_ref2) {
36
- var newIndexItemText = _ref2.text,
37
- newIndexItemIsSelected = _ref2.isSelected;
38
- return {
39
- text: newIndexItemText,
40
- isSelected: newIndexItemIsSelected
41
- };
42
- }(newIndexItem);
43
- })
29
+ items: newIndexItems.map(newIndexItem => (({
30
+ text: newIndexItemText,
31
+ isSelected: newIndexItemIsSelected
32
+ }) => ({
33
+ text: newIndexItemText,
34
+ isSelected: newIndexItemIsSelected
35
+ }))(newIndexItem))
44
36
  });
45
37
  };
46
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
- className: (0, _classnames["default"])(className, _Select["default"].select),
39
+ className: (0, _classnames.default)(className, _Select2.default.select),
48
40
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("select", {
49
41
  id: id
50
42
  // @ts-ignore
51
43
  ,
52
44
  readOnly: false,
53
45
  onChange: handleOnChange,
54
- className: (0, _classnames["default"])(_Select["default"]['select-menu'], _layout["default"]['width-full'], (0, _defineProperty2["default"])({}, _Select["default"]['select-inactive'], state === _Select2.SelectState.Inactive)),
46
+ className: (0, _classnames.default)(_Select2.default['select-menu'], _layout.default['width-full'], {
47
+ [_Select2.default['select-inactive']]: state === _Select.SelectState.Inactive
48
+ }),
55
49
  value: selectedText,
56
- children: items && indexItems.map(function (indexItem) {
57
- var text = indexItem.text,
58
- isSelected = indexItem.isSelected;
50
+ children: items && indexItems.map(indexItem => {
51
+ const {
52
+ text,
53
+ isSelected
54
+ } = indexItem;
59
55
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
60
56
  value: text,
61
57
  selected: isSelected,
@@ -3,13 +3,11 @@ export interface ISelectState {
3
3
  Active: string;
4
4
  Inactive: string;
5
5
  }
6
- export declare const SelectState: ISelectState;
7
6
  export interface ISelectDefault {
8
7
  Id: string;
9
8
  ClassName: string;
10
9
  State: string;
11
10
  }
12
- export declare const SelectDefault: ISelectDefault;
13
11
  export interface IItem {
14
12
  text: string;
15
13
  isSelected: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,aAAa,EAAE,cAI3B,CAAA;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,EAAE,QAAQ;CAAG;AAExD,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
1
+ {"version":3,"file":"Select.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB;AACD,MAAM,WAAW,YAAa,SAAQ,KAAK,EAAE,QAAQ;CAAG;AACxD,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -2,14 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
- exports.SelectState = exports.SelectDefault = void 0;
7
- var SelectState = exports.SelectState = {
8
- Active: 'active',
9
- Inactive: 'inactive'
10
- };
11
- var SelectDefault = exports.SelectDefault = {
12
- Id: null,
13
- ClassName: null,
14
- State: SelectState.Active
15
- };
5
+ });
@@ -1,3 +1,3 @@
1
1
  export { Select } from './Select';
2
- export { SelectState } from './Select.type';
2
+ export { SelectState } from './Select.const';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Select", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Select.Select;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "SelectState", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Select2.SelectState;
16
16
  }
17
17
  });
18
18
  var _Select = require("./Select");
19
- var _Select2 = require("./Select.type");
19
+ var _Select2 = require("./Select.const");
@@ -0,0 +1,3 @@
1
+ import type { ISelectMenuDefault } from './SelectMenu.type';
2
+ export declare const SelectMenuDefault: ISelectMenuDefault;
3
+ //# sourceMappingURL=SelectMenu.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectMenu.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SelectMenuDefault = void 0;
7
+ const SelectMenuDefault = exports.SelectMenuDefault = {
8
+ ClassName: null,
9
+ Title: null
10
+ };
@@ -1,4 +1,4 @@
1
1
  import type { JSX } from 'react';
2
- import { ISelectMenu } from './SelectMenu.type';
2
+ import type { ISelectMenu } from './SelectMenu.type';
3
3
  export declare function SelectMenu({ className, summary, icon, title, ariaAttr, items, onClick, }: ISelectMenu): JSX.Element;
4
4
  //# sourceMappingURL=SelectMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAKhC,OAAO,EAAuB,WAAW,EAAqB,MAAM,mBAAmB,CAAA;AAEvF,wBAAgB,UAAU,CAAC,EACzB,SAAuC,EACvC,OAAO,EACP,IAAI,EACJ,KAA+B,EAC/B,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAgD3B"}
1
+ {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAMhC,OAAO,KAAK,EAAuB,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEzE,wBAAgB,UAAU,CAAC,EACzB,SAAuC,EACvC,OAAO,EACP,IAAI,EACJ,KAA+B,EAC/B,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAgD3B"}