placer-toolkit 0.5.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 (848) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +66 -0
  3. package/dist/animations/attention_seekers/bounce.d.ts +16 -0
  4. package/dist/animations/attention_seekers/bounce.js +45 -0
  5. package/dist/animations/attention_seekers/flash.d.ts +4 -0
  6. package/dist/animations/attention_seekers/flash.js +9 -0
  7. package/dist/animations/attention_seekers/headShake.d.ts +4 -0
  8. package/dist/animations/attention_seekers/headShake.js +10 -0
  9. package/dist/animations/attention_seekers/heartBeat.d.ts +4 -0
  10. package/dist/animations/attention_seekers/heartBeat.js +9 -0
  11. package/dist/animations/attention_seekers/jello.d.ts +4 -0
  12. package/dist/animations/attention_seekers/jello.js +17 -0
  13. package/dist/animations/attention_seekers/pulse.d.ts +4 -0
  14. package/dist/animations/attention_seekers/pulse.js +7 -0
  15. package/dist/animations/attention_seekers/rubberBand.d.ts +4 -0
  16. package/dist/animations/attention_seekers/rubberBand.js +11 -0
  17. package/dist/animations/attention_seekers/shake.d.ts +4 -0
  18. package/dist/animations/attention_seekers/shake.js +15 -0
  19. package/dist/animations/attention_seekers/shakeX.d.ts +4 -0
  20. package/dist/animations/attention_seekers/shakeX.js +15 -0
  21. package/dist/animations/attention_seekers/shakeY.d.ts +4 -0
  22. package/dist/animations/attention_seekers/shakeY.js +15 -0
  23. package/dist/animations/attention_seekers/swing.d.ts +4 -0
  24. package/dist/animations/attention_seekers/swing.js +9 -0
  25. package/dist/animations/attention_seekers/tada.d.ts +4 -0
  26. package/dist/animations/attention_seekers/tada.js +42 -0
  27. package/dist/animations/attention_seekers/wobble.d.ts +4 -0
  28. package/dist/animations/attention_seekers/wobble.js +26 -0
  29. package/dist/animations/back_entrances/backInDown.d.ts +5 -0
  30. package/dist/animations/back_entrances/backInDown.js +7 -0
  31. package/dist/animations/back_entrances/backInLeft.d.ts +5 -0
  32. package/dist/animations/back_entrances/backInLeft.js +7 -0
  33. package/dist/animations/back_entrances/backInRight.d.ts +5 -0
  34. package/dist/animations/back_entrances/backInRight.js +7 -0
  35. package/dist/animations/back_entrances/backInUp.d.ts +5 -0
  36. package/dist/animations/back_entrances/backInUp.js +7 -0
  37. package/dist/animations/back_exits/backOutDown.d.ts +5 -0
  38. package/dist/animations/back_exits/backOutDown.js +7 -0
  39. package/dist/animations/back_exits/backOutLeft.d.ts +5 -0
  40. package/dist/animations/back_exits/backOutLeft.js +7 -0
  41. package/dist/animations/back_exits/backOutRight.d.ts +5 -0
  42. package/dist/animations/back_exits/backOutRight.js +7 -0
  43. package/dist/animations/back_exits/backOutUp.d.ts +5 -0
  44. package/dist/animations/back_exits/backOutUp.js +7 -0
  45. package/dist/animations/bouncing_entrances/bounceIn.d.ts +16 -0
  46. package/dist/animations/bouncing_entrances/bounceIn.js +16 -0
  47. package/dist/animations/bouncing_entrances/bounceInDown.d.ts +16 -0
  48. package/dist/animations/bouncing_entrances/bounceInDown.js +22 -0
  49. package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +16 -0
  50. package/dist/animations/bouncing_entrances/bounceInLeft.js +22 -0
  51. package/dist/animations/bouncing_entrances/bounceInRight.d.ts +16 -0
  52. package/dist/animations/bouncing_entrances/bounceInRight.js +22 -0
  53. package/dist/animations/bouncing_entrances/bounceInUp.d.ts +16 -0
  54. package/dist/animations/bouncing_entrances/bounceInUp.js +22 -0
  55. package/dist/animations/bouncing_exits/bounceOut.d.ts +9 -0
  56. package/dist/animations/bouncing_exits/bounceOut.js +8 -0
  57. package/dist/animations/bouncing_exits/bounceOutDown.d.ts +9 -0
  58. package/dist/animations/bouncing_exits/bounceOutDown.js +20 -0
  59. package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +5 -0
  60. package/dist/animations/bouncing_exits/bounceOutLeft.js +14 -0
  61. package/dist/animations/bouncing_exits/bounceOutRight.d.ts +5 -0
  62. package/dist/animations/bouncing_exits/bounceOutRight.js +14 -0
  63. package/dist/animations/bouncing_exits/bounceOutUp.d.ts +9 -0
  64. package/dist/animations/bouncing_exits/bounceOutUp.js +20 -0
  65. package/dist/animations/easings/easings.d.ts +31 -0
  66. package/dist/animations/easings/easings.js +33 -0
  67. package/dist/animations/fading_entrances/fadeIn.d.ts +4 -0
  68. package/dist/animations/fading_entrances/fadeIn.js +6 -0
  69. package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +5 -0
  70. package/dist/animations/fading_entrances/fadeInBottomLeft.js +6 -0
  71. package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +5 -0
  72. package/dist/animations/fading_entrances/fadeInBottomRight.js +6 -0
  73. package/dist/animations/fading_entrances/fadeInDown.d.ts +5 -0
  74. package/dist/animations/fading_entrances/fadeInDown.js +6 -0
  75. package/dist/animations/fading_entrances/fadeInDownBig.d.ts +5 -0
  76. package/dist/animations/fading_entrances/fadeInDownBig.js +6 -0
  77. package/dist/animations/fading_entrances/fadeInLeft.d.ts +5 -0
  78. package/dist/animations/fading_entrances/fadeInLeft.js +6 -0
  79. package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +5 -0
  80. package/dist/animations/fading_entrances/fadeInLeftBig.js +6 -0
  81. package/dist/animations/fading_entrances/fadeInRight.d.ts +5 -0
  82. package/dist/animations/fading_entrances/fadeInRight.js +6 -0
  83. package/dist/animations/fading_entrances/fadeInRightBig.d.ts +5 -0
  84. package/dist/animations/fading_entrances/fadeInRightBig.js +6 -0
  85. package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +5 -0
  86. package/dist/animations/fading_entrances/fadeInTopLeft.js +6 -0
  87. package/dist/animations/fading_entrances/fadeInTopRight.d.ts +5 -0
  88. package/dist/animations/fading_entrances/fadeInTopRight.js +6 -0
  89. package/dist/animations/fading_entrances/fadeInUp.d.ts +5 -0
  90. package/dist/animations/fading_entrances/fadeInUp.js +6 -0
  91. package/dist/animations/fading_entrances/fadeInUpBig.d.ts +5 -0
  92. package/dist/animations/fading_entrances/fadeInUpBig.js +6 -0
  93. package/dist/animations/fading_exits/fadeOut.d.ts +4 -0
  94. package/dist/animations/fading_exits/fadeOut.js +6 -0
  95. package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +5 -0
  96. package/dist/animations/fading_exits/fadeOutBottomLeft.js +6 -0
  97. package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +5 -0
  98. package/dist/animations/fading_exits/fadeOutBottomRight.js +6 -0
  99. package/dist/animations/fading_exits/fadeOutDown.d.ts +9 -0
  100. package/dist/animations/fading_exits/fadeOutDown.js +6 -0
  101. package/dist/animations/fading_exits/fadeOutDownBig.d.ts +9 -0
  102. package/dist/animations/fading_exits/fadeOutDownBig.js +6 -0
  103. package/dist/animations/fading_exits/fadeOutLeft.d.ts +9 -0
  104. package/dist/animations/fading_exits/fadeOutLeft.js +6 -0
  105. package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +9 -0
  106. package/dist/animations/fading_exits/fadeOutLeftBig.js +6 -0
  107. package/dist/animations/fading_exits/fadeOutRight.d.ts +9 -0
  108. package/dist/animations/fading_exits/fadeOutRight.js +6 -0
  109. package/dist/animations/fading_exits/fadeOutRightBig.d.ts +9 -0
  110. package/dist/animations/fading_exits/fadeOutRightBig.js +6 -0
  111. package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +5 -0
  112. package/dist/animations/fading_exits/fadeOutTopLeft.js +6 -0
  113. package/dist/animations/fading_exits/fadeOutTopRight.d.ts +5 -0
  114. package/dist/animations/fading_exits/fadeOutTopRight.js +6 -0
  115. package/dist/animations/fading_exits/fadeOutUp.d.ts +9 -0
  116. package/dist/animations/fading_exits/fadeOutUp.js +6 -0
  117. package/dist/animations/fading_exits/fadeOutUpBig.d.ts +9 -0
  118. package/dist/animations/fading_exits/fadeOutUpBig.js +6 -0
  119. package/dist/animations/flippers/flip.d.ts +5 -0
  120. package/dist/animations/flippers/flip.js +29 -0
  121. package/dist/animations/flippers/flipInX.d.ts +21 -0
  122. package/dist/animations/flippers/flipInX.js +22 -0
  123. package/dist/animations/flippers/flipInY.d.ts +21 -0
  124. package/dist/animations/flippers/flipInY.js +22 -0
  125. package/dist/animations/flippers/flipOutX.d.ts +9 -0
  126. package/dist/animations/flippers/flipOutX.js +15 -0
  127. package/dist/animations/flippers/flipOutY.d.ts +9 -0
  128. package/dist/animations/flippers/flipOutY.js +15 -0
  129. package/dist/animations/index.d.ts +99 -0
  130. package/dist/animations/index.js +101 -0
  131. package/dist/animations/lightspeed/lightSpeedInLeft.d.ts +9 -0
  132. package/dist/animations/lightspeed/lightSpeedInLeft.js +12 -0
  133. package/dist/animations/lightspeed/lightSpeedInRight.d.ts +9 -0
  134. package/dist/animations/lightspeed/lightSpeedInRight.js +12 -0
  135. package/dist/animations/lightspeed/lightSpeedOutLeft.d.ts +9 -0
  136. package/dist/animations/lightspeed/lightSpeedOutLeft.js +10 -0
  137. package/dist/animations/lightspeed/lightSpeedOutRight.d.ts +9 -0
  138. package/dist/animations/lightspeed/lightSpeedOutRight.js +10 -0
  139. package/dist/animations/rotating_entrances/rotateIn.d.ts +5 -0
  140. package/dist/animations/rotating_entrances/rotateIn.js +6 -0
  141. package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +5 -0
  142. package/dist/animations/rotating_entrances/rotateInDownLeft.js +6 -0
  143. package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +5 -0
  144. package/dist/animations/rotating_entrances/rotateInDownRight.js +6 -0
  145. package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +5 -0
  146. package/dist/animations/rotating_entrances/rotateInUpLeft.js +6 -0
  147. package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +5 -0
  148. package/dist/animations/rotating_entrances/rotateInUpRight.js +6 -0
  149. package/dist/animations/rotating_exits/rotateOut.d.ts +9 -0
  150. package/dist/animations/rotating_exits/rotateOut.js +6 -0
  151. package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +9 -0
  152. package/dist/animations/rotating_exits/rotateOutDownLeft.js +6 -0
  153. package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +9 -0
  154. package/dist/animations/rotating_exits/rotateOutDownRight.js +6 -0
  155. package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +9 -0
  156. package/dist/animations/rotating_exits/rotateOutUpLeft.js +6 -0
  157. package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +9 -0
  158. package/dist/animations/rotating_exits/rotateOutUpRight.js +6 -0
  159. package/dist/animations/sliding_entrances/slideInDown.d.ts +9 -0
  160. package/dist/animations/sliding_entrances/slideInDown.js +6 -0
  161. package/dist/animations/sliding_entrances/slideInLeft.d.ts +9 -0
  162. package/dist/animations/sliding_entrances/slideInLeft.js +6 -0
  163. package/dist/animations/sliding_entrances/slideInRight.d.ts +9 -0
  164. package/dist/animations/sliding_entrances/slideInRight.js +6 -0
  165. package/dist/animations/sliding_entrances/slideInUp.d.ts +9 -0
  166. package/dist/animations/sliding_entrances/slideInUp.js +6 -0
  167. package/dist/animations/sliding_exits/slideOutDown.d.ts +9 -0
  168. package/dist/animations/sliding_exits/slideOutDown.js +6 -0
  169. package/dist/animations/sliding_exits/slideOutLeft.d.ts +9 -0
  170. package/dist/animations/sliding_exits/slideOutLeft.js +6 -0
  171. package/dist/animations/sliding_exits/slideOutRight.d.ts +9 -0
  172. package/dist/animations/sliding_exits/slideOutRight.js +6 -0
  173. package/dist/animations/sliding_exits/slideOutUp.d.ts +9 -0
  174. package/dist/animations/sliding_exits/slideOutUp.js +6 -0
  175. package/dist/animations/specials/hinge.d.ts +21 -0
  176. package/dist/animations/specials/hinge.js +28 -0
  177. package/dist/animations/specials/jackInTheBox.d.ts +16 -0
  178. package/dist/animations/specials/jackInTheBox.js +13 -0
  179. package/dist/animations/specials/rollIn.d.ts +5 -0
  180. package/dist/animations/specials/rollIn.js +10 -0
  181. package/dist/animations/specials/rollOut.d.ts +9 -0
  182. package/dist/animations/specials/rollOut.js +10 -0
  183. package/dist/animations/zooming_entrances/zoomIn.d.ts +9 -0
  184. package/dist/animations/zooming_entrances/zoomIn.js +6 -0
  185. package/dist/animations/zooming_entrances/zoomInDown.d.ts +6 -0
  186. package/dist/animations/zooming_entrances/zoomInDown.js +16 -0
  187. package/dist/animations/zooming_entrances/zoomInLeft.d.ts +6 -0
  188. package/dist/animations/zooming_entrances/zoomInLeft.js +16 -0
  189. package/dist/animations/zooming_entrances/zoomInRight.d.ts +6 -0
  190. package/dist/animations/zooming_entrances/zoomInRight.js +16 -0
  191. package/dist/animations/zooming_entrances/zoomInUp.d.ts +6 -0
  192. package/dist/animations/zooming_entrances/zoomInUp.js +16 -0
  193. package/dist/animations/zooming_exits/zoomOut.d.ts +9 -0
  194. package/dist/animations/zooming_exits/zoomOut.js +7 -0
  195. package/dist/animations/zooming_exits/zoomOutDown.d.ts +6 -0
  196. package/dist/animations/zooming_exits/zoomOutDown.js +16 -0
  197. package/dist/animations/zooming_exits/zoomOutLeft.d.ts +5 -0
  198. package/dist/animations/zooming_exits/zoomOutLeft.js +14 -0
  199. package/dist/animations/zooming_exits/zoomOutRight.d.ts +5 -0
  200. package/dist/animations/zooming_exits/zoomOutRight.js +14 -0
  201. package/dist/animations/zooming_exits/zoomOutUp.d.ts +6 -0
  202. package/dist/animations/zooming_exits/zoomOutUp.js +16 -0
  203. package/dist/components/animation/animation.component.d.ts +65 -0
  204. package/dist/components/animation/animation.component.js +247 -0
  205. package/dist/components/animation/animation.d.ts +8 -0
  206. package/dist/components/animation/animation.js +5 -0
  207. package/dist/components/animation/animation.styles.d.ts +1 -0
  208. package/dist/components/animation/animation.styles.js +9 -0
  209. package/dist/components/animation/animations.d.ts +4 -0
  210. package/dist/components/animation/animations.js +13 -0
  211. package/dist/components/avatar/avatar.component.d.ts +43 -0
  212. package/dist/components/avatar/avatar.component.js +137 -0
  213. package/dist/components/avatar/avatar.d.ts +8 -0
  214. package/dist/components/avatar/avatar.js +5 -0
  215. package/dist/components/avatar/avatar.styles.d.ts +1 -0
  216. package/dist/components/avatar/avatar.styles.js +68 -0
  217. package/dist/components/badge/badge.component.d.ts +21 -0
  218. package/dist/components/badge/badge.component.js +64 -0
  219. package/dist/components/badge/badge.d.ts +8 -0
  220. package/dist/components/badge/badge.js +5 -0
  221. package/dist/components/badge/badge.styles.d.ts +1 -0
  222. package/dist/components/badge/badge.styles.js +76 -0
  223. package/dist/components/button/button.component.d.ts +104 -0
  224. package/dist/components/button/button.component.js +346 -0
  225. package/dist/components/button/button.d.ts +8 -0
  226. package/dist/components/button/button.js +5 -0
  227. package/dist/components/button/button.styles.d.ts +1 -0
  228. package/dist/components/button/button.styles.js +322 -0
  229. package/dist/components/button-group/button-group.component.d.ts +26 -0
  230. package/dist/components/button-group/button-group.component.js +93 -0
  231. package/dist/components/button-group/button-group.d.ts +8 -0
  232. package/dist/components/button-group/button-group.js +5 -0
  233. package/dist/components/button-group/button-group.styles.d.ts +1 -0
  234. package/dist/components/button-group/button-group.styles.js +14 -0
  235. package/dist/components/callout/callout.component.d.ts +22 -0
  236. package/dist/components/callout/callout.component.js +63 -0
  237. package/dist/components/callout/callout.d.ts +8 -0
  238. package/dist/components/callout/callout.js +5 -0
  239. package/dist/components/callout/callout.styles.d.ts +1 -0
  240. package/dist/components/callout/callout.styles.js +68 -0
  241. package/dist/components/card/card.component.d.ts +29 -0
  242. package/dist/components/card/card.component.js +59 -0
  243. package/dist/components/card/card.d.ts +8 -0
  244. package/dist/components/card/card.js +5 -0
  245. package/dist/components/card/card.styles.d.ts +1 -0
  246. package/dist/components/card/card.styles.js +65 -0
  247. package/dist/components/checkbox/checkbox.component.d.ts +44 -0
  248. package/dist/components/checkbox/checkbox.component.js +287 -0
  249. package/dist/components/checkbox/checkbox.d.ts +8 -0
  250. package/dist/components/checkbox/checkbox.js +5 -0
  251. package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
  252. package/dist/components/checkbox/checkbox.styles.js +166 -0
  253. package/dist/components/comparer/comparer.component.d.ts +43 -0
  254. package/dist/components/comparer/comparer.component.js +181 -0
  255. package/dist/components/comparer/comparer.d.ts +8 -0
  256. package/dist/components/comparer/comparer.js +5 -0
  257. package/dist/components/comparer/comparer.styles.d.ts +1 -0
  258. package/dist/components/comparer/comparer.styles.js +75 -0
  259. package/dist/components/copy-button/copy-button.component.d.ts +75 -0
  260. package/dist/components/copy-button/copy-button.component.js +289 -0
  261. package/dist/components/copy-button/copy-button.d.ts +8 -0
  262. package/dist/components/copy-button/copy-button.js +5 -0
  263. package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
  264. package/dist/components/copy-button/copy-button.styles.js +61 -0
  265. package/dist/components/details/details.component.d.ts +25 -0
  266. package/dist/components/details/details.component.js +243 -0
  267. package/dist/components/details/details.d.ts +8 -0
  268. package/dist/components/details/details.js +5 -0
  269. package/dist/components/details/details.styles.d.ts +1 -0
  270. package/dist/components/details/details.styles.js +86 -0
  271. package/dist/components/dialog/dialog.component.d.ts +84 -0
  272. package/dist/components/dialog/dialog.component.js +362 -0
  273. package/dist/components/dialog/dialog.d.ts +8 -0
  274. package/dist/components/dialog/dialog.js +5 -0
  275. package/dist/components/dialog/dialog.styles.d.ts +1 -0
  276. package/dist/components/dialog/dialog.styles.js +123 -0
  277. package/dist/components/divider/divider.component.d.ts +20 -0
  278. package/dist/components/divider/divider.component.js +51 -0
  279. package/dist/components/divider/divider.d.ts +8 -0
  280. package/dist/components/divider/divider.js +5 -0
  281. package/dist/components/divider/divider.styles.d.ts +1 -0
  282. package/dist/components/divider/divider.styles.js +29 -0
  283. package/dist/components/drawer/drawer.component.d.ts +95 -0
  284. package/dist/components/drawer/drawer.component.js +509 -0
  285. package/dist/components/drawer/drawer.d.ts +8 -0
  286. package/dist/components/drawer/drawer.js +5 -0
  287. package/dist/components/drawer/drawer.styles.d.ts +1 -0
  288. package/dist/components/drawer/drawer.styles.js +157 -0
  289. package/dist/components/dropdown/dropdown.component.d.ts +44 -0
  290. package/dist/components/dropdown/dropdown.component.js +385 -0
  291. package/dist/components/dropdown/dropdown.d.ts +8 -0
  292. package/dist/components/dropdown/dropdown.js +5 -0
  293. package/dist/components/dropdown/dropdown.styles.d.ts +1 -0
  294. package/dist/components/dropdown/dropdown.styles.js +52 -0
  295. package/dist/components/icon/icon.component.d.ts +47 -0
  296. package/dist/components/icon/icon.component.js +225 -0
  297. package/dist/components/icon/icon.d.ts +8 -0
  298. package/dist/components/icon/icon.js +5 -0
  299. package/dist/components/icon/icon.styles.d.ts +1 -0
  300. package/dist/components/icon/icon.styles.js +49 -0
  301. package/dist/components/icon/library.d.ts +14 -0
  302. package/dist/components/icon/library.default.d.ts +3 -0
  303. package/dist/components/icon/library.default.js +8 -0
  304. package/dist/components/icon/library.js +34 -0
  305. package/dist/components/icon/library.system.d.ts +3 -0
  306. package/dist/components/icon/library.system.js +130 -0
  307. package/dist/components/icon-button/icon-button.component.d.ts +27 -0
  308. package/dist/components/icon-button/icon-button.component.js +151 -0
  309. package/dist/components/icon-button/icon-button.d.ts +8 -0
  310. package/dist/components/icon-button/icon-button.js +5 -0
  311. package/dist/components/icon-button/icon-button.styles.d.ts +1 -0
  312. package/dist/components/icon-button/icon-button.styles.js +53 -0
  313. package/dist/components/input/input.component.d.ts +78 -0
  314. package/dist/components/input/input.component.js +513 -0
  315. package/dist/components/input/input.d.ts +8 -0
  316. package/dist/components/input/input.js +5 -0
  317. package/dist/components/input/input.styles.d.ts +1 -0
  318. package/dist/components/input/input.styles.js +308 -0
  319. package/dist/components/menu/menu.component.d.ts +20 -0
  320. package/dist/components/menu/menu.component.js +123 -0
  321. package/dist/components/menu/menu.d.ts +8 -0
  322. package/dist/components/menu/menu.js +5 -0
  323. package/dist/components/menu/menu.styles.d.ts +1 -0
  324. package/dist/components/menu/menu.styles.js +20 -0
  325. package/dist/components/menu-item/menu-item.component.d.ts +34 -0
  326. package/dist/components/menu-item/menu-item.component.js +211 -0
  327. package/dist/components/menu-item/menu-item.d.ts +8 -0
  328. package/dist/components/menu-item/menu-item.js +5 -0
  329. package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
  330. package/dist/components/menu-item/menu-item.styles.js +157 -0
  331. package/dist/components/menu-item/submenu-controller.d.ts +34 -0
  332. package/dist/components/menu-item/submenu-controller.js +246 -0
  333. package/dist/components/menu-label/menu-label.component.d.ts +15 -0
  334. package/dist/components/menu-label/menu-label.component.js +25 -0
  335. package/dist/components/menu-label/menu-label.d.ts +8 -0
  336. package/dist/components/menu-label/menu-label.js +5 -0
  337. package/dist/components/menu-label/menu-label.styles.d.ts +1 -0
  338. package/dist/components/menu-label/menu-label.styles.js +22 -0
  339. package/dist/components/option/option.component.d.ts +42 -0
  340. package/dist/components/option/option.component.js +161 -0
  341. package/dist/components/option/option.d.ts +8 -0
  342. package/dist/components/option/option.js +5 -0
  343. package/dist/components/option/option.styles.d.ts +1 -0
  344. package/dist/components/option/option.styles.js +108 -0
  345. package/dist/components/popup/popup.component.d.ts +44 -0
  346. package/dist/components/popup/popup.component.js +483 -0
  347. package/dist/components/popup/popup.d.ts +8 -0
  348. package/dist/components/popup/popup.js +6 -0
  349. package/dist/components/popup/popup.styles.d.ts +1 -0
  350. package/dist/components/popup/popup.styles.js +64 -0
  351. package/dist/components/qr-code/qr-code.component.d.ts +16 -0
  352. package/dist/components/qr-code/qr-code.component.js +94 -0
  353. package/dist/components/qr-code/qr-code.d.ts +8 -0
  354. package/dist/components/qr-code/qr-code.js +5 -0
  355. package/dist/components/qr-code/qr-code.styles.d.ts +1 -0
  356. package/dist/components/qr-code/qr-code.styles.js +9 -0
  357. package/dist/components/radio/radio.component.d.ts +19 -0
  358. package/dist/components/radio/radio.component.js +120 -0
  359. package/dist/components/radio/radio.d.ts +8 -0
  360. package/dist/components/radio/radio.js +5 -0
  361. package/dist/components/radio/radio.styles.d.ts +1 -0
  362. package/dist/components/radio/radio.styles.js +132 -0
  363. package/dist/components/radio-button/radio-button.component.d.ts +22 -0
  364. package/dist/components/radio-button/radio-button.component.js +131 -0
  365. package/dist/components/radio-button/radio-button.d.ts +8 -0
  366. package/dist/components/radio-button/radio-button.js +5 -0
  367. package/dist/components/radio-button/radio-button.styles.d.ts +1 -0
  368. package/dist/components/radio-button/radio-button.styles.js +25 -0
  369. package/dist/components/radio-group/radio-group.component.d.ts +46 -0
  370. package/dist/components/radio-group/radio-group.component.js +379 -0
  371. package/dist/components/radio-group/radio-group.d.ts +8 -0
  372. package/dist/components/radio-group/radio-group.js +5 -0
  373. package/dist/components/radio-group/radio-group.styles.d.ts +1 -0
  374. package/dist/components/radio-group/radio-group.styles.js +42 -0
  375. package/dist/components/rating/rating.component.d.ts +37 -0
  376. package/dist/components/rating/rating.component.js +308 -0
  377. package/dist/components/rating/rating.d.ts +8 -0
  378. package/dist/components/rating/rating.js +5 -0
  379. package/dist/components/rating/rating.styles.d.ts +1 -0
  380. package/dist/components/rating/rating.styles.js +94 -0
  381. package/dist/components/resize-observer/resize-observer.component.d.ts +26 -0
  382. package/dist/components/resize-observer/resize-observer.component.js +89 -0
  383. package/dist/components/resize-observer/resize-observer.d.ts +8 -0
  384. package/dist/components/resize-observer/resize-observer.js +5 -0
  385. package/dist/components/resize-observer/resize-observer.styles.d.ts +1 -0
  386. package/dist/components/resize-observer/resize-observer.styles.js +9 -0
  387. package/dist/components/select/select.component.d.ts +174 -0
  388. package/dist/components/select/select.component.js +960 -0
  389. package/dist/components/select/select.d.ts +8 -0
  390. package/dist/components/select/select.js +5 -0
  391. package/dist/components/select/select.styles.d.ts +1 -0
  392. package/dist/components/select/select.styles.js +363 -0
  393. package/dist/components/spinner/spinner.component.d.ts +20 -0
  394. package/dist/components/spinner/spinner.component.js +47 -0
  395. package/dist/components/spinner/spinner.d.ts +8 -0
  396. package/dist/components/spinner/spinner.js +5 -0
  397. package/dist/components/spinner/spinner.styles.d.ts +1 -0
  398. package/dist/components/spinner/spinner.styles.js +61 -0
  399. package/dist/components/switch/switch.component.d.ts +84 -0
  400. package/dist/components/switch/switch.component.js +281 -0
  401. package/dist/components/switch/switch.d.ts +8 -0
  402. package/dist/components/switch/switch.js +5 -0
  403. package/dist/components/switch/switch.styles.d.ts +1 -0
  404. package/dist/components/switch/switch.styles.js +178 -0
  405. package/dist/components/tab/tab.component.d.ts +22 -0
  406. package/dist/components/tab/tab.component.js +112 -0
  407. package/dist/components/tab/tab.d.ts +8 -0
  408. package/dist/components/tab/tab.js +5 -0
  409. package/dist/components/tab/tab.styles.d.ts +1 -0
  410. package/dist/components/tab/tab.styles.js +85 -0
  411. package/dist/components/tab-group/tab-group.component.d.ts +51 -0
  412. package/dist/components/tab-group/tab-group.component.js +513 -0
  413. package/dist/components/tab-group/tab-group.d.ts +8 -0
  414. package/dist/components/tab-group/tab-group.js +5 -0
  415. package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
  416. package/dist/components/tab-group/tab-group.styles.js +219 -0
  417. package/dist/components/tab-panel/tab-panel.component.d.ts +12 -0
  418. package/dist/components/tab-panel/tab-panel.component.js +56 -0
  419. package/dist/components/tab-panel/tab-panel.d.ts +8 -0
  420. package/dist/components/tab-panel/tab-panel.js +5 -0
  421. package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
  422. package/dist/components/tab-panel/tab-panel.styles.js +18 -0
  423. package/dist/components/tag/tag.component.d.ts +38 -0
  424. package/dist/components/tag/tag.component.js +109 -0
  425. package/dist/components/tag/tag.d.ts +8 -0
  426. package/dist/components/tag/tag.js +5 -0
  427. package/dist/components/tag/tag.styles.d.ts +1 -0
  428. package/dist/components/tag/tag.styles.js +155 -0
  429. package/dist/components/tooltip/tooltip.component.d.ts +38 -0
  430. package/dist/components/tooltip/tooltip.component.js +267 -0
  431. package/dist/components/tooltip/tooltip.d.ts +8 -0
  432. package/dist/components/tooltip/tooltip.js +5 -0
  433. package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
  434. package/dist/components/tooltip/tooltip.styles.js +59 -0
  435. package/dist/default.css +1005 -0
  436. package/dist/events/events.d.ts +33 -0
  437. package/dist/events/events.js +1 -0
  438. package/dist/events/pc-after-collapse.d.ts +6 -0
  439. package/dist/events/pc-after-collapse.js +1 -0
  440. package/dist/events/pc-after-expand.d.ts +6 -0
  441. package/dist/events/pc-after-expand.js +1 -0
  442. package/dist/events/pc-after-hide.d.ts +6 -0
  443. package/dist/events/pc-after-hide.js +1 -0
  444. package/dist/events/pc-after-show.d.ts +6 -0
  445. package/dist/events/pc-after-show.js +1 -0
  446. package/dist/events/pc-blur.d.ts +6 -0
  447. package/dist/events/pc-blur.js +1 -0
  448. package/dist/events/pc-cancel.d.ts +6 -0
  449. package/dist/events/pc-cancel.js +1 -0
  450. package/dist/events/pc-change.d.ts +6 -0
  451. package/dist/events/pc-change.js +1 -0
  452. package/dist/events/pc-clear.d.ts +6 -0
  453. package/dist/events/pc-clear.js +1 -0
  454. package/dist/events/pc-close.d.ts +6 -0
  455. package/dist/events/pc-close.js +1 -0
  456. package/dist/events/pc-collapse.d.ts +6 -0
  457. package/dist/events/pc-collapse.js +1 -0
  458. package/dist/events/pc-copy.d.ts +8 -0
  459. package/dist/events/pc-copy.js +1 -0
  460. package/dist/events/pc-error.d.ts +8 -0
  461. package/dist/events/pc-error.js +1 -0
  462. package/dist/events/pc-expand.d.ts +6 -0
  463. package/dist/events/pc-expand.js +1 -0
  464. package/dist/events/pc-finish.d.ts +6 -0
  465. package/dist/events/pc-finish.js +1 -0
  466. package/dist/events/pc-focus.d.ts +6 -0
  467. package/dist/events/pc-focus.js +1 -0
  468. package/dist/events/pc-hide.d.ts +6 -0
  469. package/dist/events/pc-hide.js +1 -0
  470. package/dist/events/pc-hover.d.ts +9 -0
  471. package/dist/events/pc-hover.js +1 -0
  472. package/dist/events/pc-initial-focus.d.ts +6 -0
  473. package/dist/events/pc-initial-focus.js +1 -0
  474. package/dist/events/pc-input.d.ts +6 -0
  475. package/dist/events/pc-input.js +1 -0
  476. package/dist/events/pc-invalid.d.ts +6 -0
  477. package/dist/events/pc-invalid.js +1 -0
  478. package/dist/events/pc-lazy-change.d.ts +6 -0
  479. package/dist/events/pc-lazy-change.js +1 -0
  480. package/dist/events/pc-lazy-load.d.ts +6 -0
  481. package/dist/events/pc-lazy-load.js +1 -0
  482. package/dist/events/pc-load.d.ts +6 -0
  483. package/dist/events/pc-load.js +1 -0
  484. package/dist/events/pc-mutation.d.ts +8 -0
  485. package/dist/events/pc-mutation.js +1 -0
  486. package/dist/events/pc-remove.d.ts +6 -0
  487. package/dist/events/pc-remove.js +1 -0
  488. package/dist/events/pc-reposition.d.ts +6 -0
  489. package/dist/events/pc-reposition.js +1 -0
  490. package/dist/events/pc-request-close.d.ts +8 -0
  491. package/dist/events/pc-request-close.js +1 -0
  492. package/dist/events/pc-resize.d.ts +8 -0
  493. package/dist/events/pc-resize.js +1 -0
  494. package/dist/events/pc-select.d.ts +9 -0
  495. package/dist/events/pc-select.js +1 -0
  496. package/dist/events/pc-selection-change.js +1 -0
  497. package/dist/events/pc-show.d.ts +6 -0
  498. package/dist/events/pc-show.js +1 -0
  499. package/dist/events/pc-slide-change.js +1 -0
  500. package/dist/events/pc-start.d.ts +6 -0
  501. package/dist/events/pc-start.js +1 -0
  502. package/dist/events/pc-tab-hide.d.ts +8 -0
  503. package/dist/events/pc-tab-hide.js +1 -0
  504. package/dist/events/pc-tab-show.d.ts +8 -0
  505. package/dist/events/pc-tab-show.js +1 -0
  506. package/dist/global-shims.d.ts +18 -0
  507. package/dist/global-shims.js +96 -0
  508. package/dist/internal/active-elements.d.ts +2 -0
  509. package/dist/internal/active-elements.js +16 -0
  510. package/dist/internal/animate.d.ts +10 -0
  511. package/dist/internal/animate.js +45 -0
  512. package/dist/internal/close-active-element.d.ts +1 -0
  513. package/dist/internal/close-active-element.js +8 -0
  514. package/dist/internal/debounce.d.ts +1 -0
  515. package/dist/internal/debounce.js +14 -0
  516. package/dist/internal/default-value.d.ts +2 -0
  517. package/dist/internal/default-value.js +26 -0
  518. package/dist/internal/drag.d.ts +7 -0
  519. package/dist/internal/drag.js +27 -0
  520. package/dist/internal/emit.d.ts +1 -0
  521. package/dist/internal/emit.js +14 -0
  522. package/dist/internal/event.d.ts +1 -0
  523. package/dist/internal/event.js +13 -0
  524. package/dist/internal/form.d.ts +41 -0
  525. package/dist/internal/form.js +282 -0
  526. package/dist/internal/math.d.ts +1 -0
  527. package/dist/internal/math.js +12 -0
  528. package/dist/internal/modal.d.ts +19 -0
  529. package/dist/internal/modal.js +116 -0
  530. package/dist/internal/offset.d.ts +4 -0
  531. package/dist/internal/offset.js +10 -0
  532. package/dist/internal/scroll.d.ts +3 -0
  533. package/dist/internal/scroll.js +70 -0
  534. package/dist/internal/scrollend-polyfill.d.ts +1 -0
  535. package/dist/internal/scrollend-polyfill.js +65 -0
  536. package/dist/internal/slot.d.ts +14 -0
  537. package/dist/internal/slot.js +75 -0
  538. package/dist/internal/string.d.ts +1 -0
  539. package/dist/internal/string.js +5 -0
  540. package/dist/internal/tabbable.d.ts +5 -0
  541. package/dist/internal/tabbable.js +145 -0
  542. package/dist/internal/watch.d.ts +11 -0
  543. package/dist/internal/watch.js +32 -0
  544. package/dist/native-styles.css +261 -0
  545. package/dist/placer-autoloader.d.ts +1 -0
  546. package/dist/placer-autoloader.js +41 -0
  547. package/dist/placer.d.ts +44 -0
  548. package/dist/placer.js +43 -0
  549. package/dist/style-utilities/fouce.css +13 -0
  550. package/dist/style-utilities/style-utilities.css +2 -0
  551. package/dist/style-utilities/visually-hidden.css +12 -0
  552. package/dist/utilities/animation-registry.d.ts +14 -0
  553. package/dist/utilities/animation-registry.js +39 -0
  554. package/dist/utilities/animation.d.ts +1 -0
  555. package/dist/utilities/animation.js +1 -0
  556. package/dist/utilities/base-path.d.ts +2 -0
  557. package/dist/utilities/base-path.js +8 -0
  558. package/dist/utilities/form.d.ts +2 -0
  559. package/dist/utilities/form.js +39 -0
  560. package/dist/utilities/icon-library.d.ts +1 -0
  561. package/dist/utilities/icon-library.js +1 -0
  562. package/dist/utility.css +41 -0
  563. package/package.json +82 -0
  564. package/src/animations/attention_seekers/bounce.ts +43 -0
  565. package/src/animations/attention_seekers/flash.ts +7 -0
  566. package/src/animations/attention_seekers/headShake.ts +8 -0
  567. package/src/animations/attention_seekers/heartBeat.ts +7 -0
  568. package/src/animations/attention_seekers/jello.ts +15 -0
  569. package/src/animations/attention_seekers/pulse.ts +5 -0
  570. package/src/animations/attention_seekers/rubberBand.ts +9 -0
  571. package/src/animations/attention_seekers/shake.ts +13 -0
  572. package/src/animations/attention_seekers/shakeX.ts +13 -0
  573. package/src/animations/attention_seekers/shakeY.ts +13 -0
  574. package/src/animations/attention_seekers/swing.ts +7 -0
  575. package/src/animations/attention_seekers/tada.ts +40 -0
  576. package/src/animations/attention_seekers/wobble.ts +24 -0
  577. package/src/animations/back_entrances/backInDown.ts +5 -0
  578. package/src/animations/back_entrances/backInLeft.ts +5 -0
  579. package/src/animations/back_entrances/backInRight.ts +5 -0
  580. package/src/animations/back_entrances/backInUp.ts +5 -0
  581. package/src/animations/back_exits/backOutDown.ts +5 -0
  582. package/src/animations/back_exits/backOutLeft.ts +5 -0
  583. package/src/animations/back_exits/backOutRight.ts +5 -0
  584. package/src/animations/back_exits/backOutUp.ts +5 -0
  585. package/src/animations/bouncing_entrances/bounceIn.ts +14 -0
  586. package/src/animations/bouncing_entrances/bounceInDown.ts +20 -0
  587. package/src/animations/bouncing_entrances/bounceInLeft.ts +20 -0
  588. package/src/animations/bouncing_entrances/bounceInRight.ts +20 -0
  589. package/src/animations/bouncing_entrances/bounceInUp.ts +20 -0
  590. package/src/animations/bouncing_exits/bounceOut.ts +6 -0
  591. package/src/animations/bouncing_exits/bounceOutDown.ts +18 -0
  592. package/src/animations/bouncing_exits/bounceOutLeft.ts +12 -0
  593. package/src/animations/bouncing_exits/bounceOutRight.ts +12 -0
  594. package/src/animations/bouncing_exits/bounceOutUp.ts +18 -0
  595. package/src/animations/easings/easings.ts +31 -0
  596. package/src/animations/fading_entrances/fadeIn.ts +4 -0
  597. package/src/animations/fading_entrances/fadeInBottomLeft.ts +4 -0
  598. package/src/animations/fading_entrances/fadeInBottomRight.ts +4 -0
  599. package/src/animations/fading_entrances/fadeInDown.ts +4 -0
  600. package/src/animations/fading_entrances/fadeInDownBig.ts +4 -0
  601. package/src/animations/fading_entrances/fadeInLeft.ts +4 -0
  602. package/src/animations/fading_entrances/fadeInLeftBig.ts +4 -0
  603. package/src/animations/fading_entrances/fadeInRight.ts +4 -0
  604. package/src/animations/fading_entrances/fadeInRightBig.ts +4 -0
  605. package/src/animations/fading_entrances/fadeInTopLeft.ts +4 -0
  606. package/src/animations/fading_entrances/fadeInTopRight.ts +4 -0
  607. package/src/animations/fading_entrances/fadeInUp.ts +4 -0
  608. package/src/animations/fading_entrances/fadeInUpBig.ts +4 -0
  609. package/src/animations/fading_exits/fadeOut.ts +4 -0
  610. package/src/animations/fading_exits/fadeOutBottomLeft.ts +4 -0
  611. package/src/animations/fading_exits/fadeOutBottomRight.ts +4 -0
  612. package/src/animations/fading_exits/fadeOutDown.ts +4 -0
  613. package/src/animations/fading_exits/fadeOutDownBig.ts +4 -0
  614. package/src/animations/fading_exits/fadeOutLeft.ts +4 -0
  615. package/src/animations/fading_exits/fadeOutLeftBig.ts +4 -0
  616. package/src/animations/fading_exits/fadeOutRight.ts +4 -0
  617. package/src/animations/fading_exits/fadeOutRightBig.ts +4 -0
  618. package/src/animations/fading_exits/fadeOutTopLeft.ts +4 -0
  619. package/src/animations/fading_exits/fadeOutTopRight.ts +4 -0
  620. package/src/animations/fading_exits/fadeOutUp.ts +4 -0
  621. package/src/animations/fading_exits/fadeOutUpBig.ts +4 -0
  622. package/src/animations/flippers/flip.ts +32 -0
  623. package/src/animations/flippers/flipInX.ts +20 -0
  624. package/src/animations/flippers/flipInY.ts +20 -0
  625. package/src/animations/flippers/flipOutX.ts +13 -0
  626. package/src/animations/flippers/flipOutY.ts +13 -0
  627. package/src/animations/index.ts +101 -0
  628. package/src/animations/lightspeed/lightSpeedInLeft.ts +10 -0
  629. package/src/animations/lightspeed/lightSpeedInRight.ts +10 -0
  630. package/src/animations/lightspeed/lightSpeedOutLeft.ts +8 -0
  631. package/src/animations/lightspeed/lightSpeedOutRight.ts +8 -0
  632. package/src/animations/rotating_entrances/rotateIn.ts +4 -0
  633. package/src/animations/rotating_entrances/rotateInDownLeft.ts +4 -0
  634. package/src/animations/rotating_entrances/rotateInDownRight.ts +4 -0
  635. package/src/animations/rotating_entrances/rotateInUpLeft.ts +4 -0
  636. package/src/animations/rotating_entrances/rotateInUpRight.ts +4 -0
  637. package/src/animations/rotating_exits/rotateOut.ts +4 -0
  638. package/src/animations/rotating_exits/rotateOutDownLeft.ts +4 -0
  639. package/src/animations/rotating_exits/rotateOutDownRight.ts +4 -0
  640. package/src/animations/rotating_exits/rotateOutUpLeft.ts +4 -0
  641. package/src/animations/rotating_exits/rotateOutUpRight.ts +4 -0
  642. package/src/animations/sliding_entrances/slideInDown.ts +4 -0
  643. package/src/animations/sliding_entrances/slideInLeft.ts +4 -0
  644. package/src/animations/sliding_entrances/slideInRight.ts +4 -0
  645. package/src/animations/sliding_entrances/slideInUp.ts +4 -0
  646. package/src/animations/sliding_exits/slideOutDown.ts +4 -0
  647. package/src/animations/sliding_exits/slideOutLeft.ts +4 -0
  648. package/src/animations/sliding_exits/slideOutRight.ts +4 -0
  649. package/src/animations/sliding_exits/slideOutUp.ts +4 -0
  650. package/src/animations/specials/hinge.ts +26 -0
  651. package/src/animations/specials/jackInTheBox.ts +11 -0
  652. package/src/animations/specials/rollIn.ts +8 -0
  653. package/src/animations/specials/rollOut.ts +8 -0
  654. package/src/animations/zooming_entrances/zoomIn.ts +4 -0
  655. package/src/animations/zooming_entrances/zoomInDown.ts +14 -0
  656. package/src/animations/zooming_entrances/zoomInLeft.ts +14 -0
  657. package/src/animations/zooming_entrances/zoomInRight.ts +14 -0
  658. package/src/animations/zooming_entrances/zoomInUp.ts +14 -0
  659. package/src/animations/zooming_exits/zoomOut.ts +5 -0
  660. package/src/animations/zooming_exits/zoomOutDown.ts +14 -0
  661. package/src/animations/zooming_exits/zoomOutLeft.ts +12 -0
  662. package/src/animations/zooming_exits/zoomOutRight.ts +12 -0
  663. package/src/animations/zooming_exits/zoomOutUp.ts +14 -0
  664. package/src/components/animation/animation.component.ts +224 -0
  665. package/src/components/animation/animation.styles.ts +7 -0
  666. package/src/components/animation/animation.ts +10 -0
  667. package/src/components/animation/animations.ts +13 -0
  668. package/src/components/avatar/avatar.component.ts +113 -0
  669. package/src/components/avatar/avatar.styles.ts +66 -0
  670. package/src/components/avatar/avatar.ts +10 -0
  671. package/src/components/badge/badge.component.ts +54 -0
  672. package/src/components/badge/badge.styles.ts +74 -0
  673. package/src/components/badge/badge.ts +10 -0
  674. package/src/components/button/button.component.ts +335 -0
  675. package/src/components/button/button.styles.ts +320 -0
  676. package/src/components/button/button.ts +10 -0
  677. package/src/components/button-group/button-group.component.ts +101 -0
  678. package/src/components/button-group/button-group.styles.ts +12 -0
  679. package/src/components/button-group/button-group.ts +10 -0
  680. package/src/components/callout/callout.component.ts +60 -0
  681. package/src/components/callout/callout.styles.ts +66 -0
  682. package/src/components/callout/callout.ts +10 -0
  683. package/src/components/card/card.component.ts +59 -0
  684. package/src/components/card/card.styles.ts +63 -0
  685. package/src/components/card/card.ts +10 -0
  686. package/src/components/checkbox/checkbox.component.ts +244 -0
  687. package/src/components/checkbox/checkbox.styles.ts +164 -0
  688. package/src/components/checkbox/checkbox.ts +10 -0
  689. package/src/components/comparer/comparer.component.ts +188 -0
  690. package/src/components/comparer/comparer.styles.ts +73 -0
  691. package/src/components/comparer/comparer.ts +10 -0
  692. package/src/components/copy-button/copy-button.component.ts +272 -0
  693. package/src/components/copy-button/copy-button.styles.ts +59 -0
  694. package/src/components/copy-button/copy-button.ts +10 -0
  695. package/src/components/details/details.component.ts +259 -0
  696. package/src/components/details/details.styles.ts +84 -0
  697. package/src/components/details/details.ts +10 -0
  698. package/src/components/dialog/dialog.component.ts +403 -0
  699. package/src/components/dialog/dialog.styles.ts +121 -0
  700. package/src/components/dialog/dialog.ts +10 -0
  701. package/src/components/divider/divider.component.ts +42 -0
  702. package/src/components/divider/divider.styles.ts +27 -0
  703. package/src/components/divider/divider.ts +10 -0
  704. package/src/components/drawer/drawer.component.ts +565 -0
  705. package/src/components/drawer/drawer.styles.ts +155 -0
  706. package/src/components/drawer/drawer.ts +10 -0
  707. package/src/components/dropdown/dropdown.component.ts +430 -0
  708. package/src/components/dropdown/dropdown.styles.ts +50 -0
  709. package/src/components/dropdown/dropdown.ts +10 -0
  710. package/src/components/icon/icon.component.ts +239 -0
  711. package/src/components/icon/icon.styles.ts +47 -0
  712. package/src/components/icon/icon.ts +10 -0
  713. package/src/components/icon/library.default.ts +10 -0
  714. package/src/components/icon/library.system.ts +136 -0
  715. package/src/components/icon/library.ts +54 -0
  716. package/src/components/icon-button/icon-button.component.ts +129 -0
  717. package/src/components/icon-button/icon-button.styles.ts +51 -0
  718. package/src/components/icon-button/icon-button.ts +10 -0
  719. package/src/components/input/input.component.ts +496 -0
  720. package/src/components/input/input.styles.ts +306 -0
  721. package/src/components/input/input.ts +10 -0
  722. package/src/components/menu/menu.component.ts +161 -0
  723. package/src/components/menu/menu.styles.ts +18 -0
  724. package/src/components/menu/menu.ts +10 -0
  725. package/src/components/menu-item/menu-item.component.ts +190 -0
  726. package/src/components/menu-item/menu-item.styles.ts +155 -0
  727. package/src/components/menu-item/menu-item.ts +10 -0
  728. package/src/components/menu-item/submenu-controller.ts +337 -0
  729. package/src/components/menu-label/menu-label.component.ts +22 -0
  730. package/src/components/menu-label/menu-label.styles.ts +20 -0
  731. package/src/components/menu-label/menu-label.ts +10 -0
  732. package/src/components/option/option.component.ts +141 -0
  733. package/src/components/option/option.styles.ts +106 -0
  734. package/src/components/option/option.ts +10 -0
  735. package/src/components/popup/popup.component.ts +540 -0
  736. package/src/components/popup/popup.styles.ts +63 -0
  737. package/src/components/popup/popup.ts +12 -0
  738. package/src/components/qr-code/qr-code.component.ts +70 -0
  739. package/src/components/qr-code/qr-code.styles.ts +7 -0
  740. package/src/components/qr-code/qr-code.ts +10 -0
  741. package/src/components/radio/radio.component.ts +100 -0
  742. package/src/components/radio/radio.styles.ts +130 -0
  743. package/src/components/radio/radio.ts +10 -0
  744. package/src/components/radio-button/radio-button.component.ts +116 -0
  745. package/src/components/radio-button/radio-button.styles.ts +23 -0
  746. package/src/components/radio-button/radio-button.ts +10 -0
  747. package/src/components/radio-group/radio-group.component.ts +404 -0
  748. package/src/components/radio-group/radio-group.styles.ts +40 -0
  749. package/src/components/radio-group/radio-group.ts +10 -0
  750. package/src/components/rating/rating.component.ts +319 -0
  751. package/src/components/rating/rating.styles.ts +92 -0
  752. package/src/components/rating/rating.ts +10 -0
  753. package/src/components/resize-observer/resize-observer.component.ts +91 -0
  754. package/src/components/resize-observer/resize-observer.styles.ts +7 -0
  755. package/src/components/resize-observer/resize-observer.ts +10 -0
  756. package/src/components/select/select.component.ts +1013 -0
  757. package/src/components/select/select.styles.ts +361 -0
  758. package/src/components/select/select.ts +10 -0
  759. package/src/components/spinner/spinner.component.ts +38 -0
  760. package/src/components/spinner/spinner.styles.ts +59 -0
  761. package/src/components/spinner/spinner.ts +10 -0
  762. package/src/components/switch/switch.component.ts +253 -0
  763. package/src/components/switch/switch.styles.ts +176 -0
  764. package/src/components/switch/switch.ts +10 -0
  765. package/src/components/tab/tab.component.ts +87 -0
  766. package/src/components/tab/tab.styles.ts +83 -0
  767. package/src/components/tab/tab.ts +10 -0
  768. package/src/components/tab-group/tab-group.component.ts +607 -0
  769. package/src/components/tab-group/tab-group.styles.ts +217 -0
  770. package/src/components/tab-group/tab-group.ts +10 -0
  771. package/src/components/tab-panel/tab-panel.component.ts +43 -0
  772. package/src/components/tab-panel/tab-panel.styles.ts +16 -0
  773. package/src/components/tab-panel/tab-panel.ts +10 -0
  774. package/src/components/tag/tag.component.ts +94 -0
  775. package/src/components/tag/tag.styles.ts +153 -0
  776. package/src/components/tag/tag.ts +10 -0
  777. package/src/components/tooltip/tooltip.component.ts +276 -0
  778. package/src/components/tooltip/tooltip.styles.ts +57 -0
  779. package/src/components/tooltip/tooltip.ts +10 -0
  780. package/src/default.css +1005 -0
  781. package/src/events/events.ts +35 -0
  782. package/src/events/pc-after-collapse.ts +7 -0
  783. package/src/events/pc-after-expand.ts +7 -0
  784. package/src/events/pc-after-hide.ts +7 -0
  785. package/src/events/pc-after-show.ts +7 -0
  786. package/src/events/pc-blur.ts +7 -0
  787. package/src/events/pc-cancel.ts +7 -0
  788. package/src/events/pc-change.ts +7 -0
  789. package/src/events/pc-clear.ts +7 -0
  790. package/src/events/pc-close.ts +7 -0
  791. package/src/events/pc-collapse.ts +7 -0
  792. package/src/events/pc-copy.ts +7 -0
  793. package/src/events/pc-error.ts +7 -0
  794. package/src/events/pc-expand.ts +7 -0
  795. package/src/events/pc-finish.ts +7 -0
  796. package/src/events/pc-focus.ts +7 -0
  797. package/src/events/pc-hide.ts +7 -0
  798. package/src/events/pc-hover.ts +10 -0
  799. package/src/events/pc-initial-focus.ts +7 -0
  800. package/src/events/pc-input.ts +7 -0
  801. package/src/events/pc-invalid.ts +7 -0
  802. package/src/events/pc-lazy-change.ts +7 -0
  803. package/src/events/pc-lazy-load.ts +7 -0
  804. package/src/events/pc-load.ts +7 -0
  805. package/src/events/pc-mutation.ts +7 -0
  806. package/src/events/pc-remove.ts +7 -0
  807. package/src/events/pc-reposition.ts +7 -0
  808. package/src/events/pc-request-close.ts +9 -0
  809. package/src/events/pc-resize.ts +7 -0
  810. package/src/events/pc-select.ts +9 -0
  811. package/src/events/pc-selection-change.ts +10 -0
  812. package/src/events/pc-show.ts +7 -0
  813. package/src/events/pc-slide-change.ts +13 -0
  814. package/src/events/pc-start.ts +7 -0
  815. package/src/events/pc-tab-hide.ts +7 -0
  816. package/src/events/pc-tab-show.ts +7 -0
  817. package/src/global-shims.ts +126 -0
  818. package/src/global.d.ts +31 -0
  819. package/src/internal/active-elements.ts +21 -0
  820. package/src/internal/animate.ts +62 -0
  821. package/src/internal/close-active-element.ts +7 -0
  822. package/src/internal/debounce.ts +25 -0
  823. package/src/internal/default-value.ts +40 -0
  824. package/src/internal/drag.ts +36 -0
  825. package/src/internal/emit.ts +19 -0
  826. package/src/internal/event.ts +12 -0
  827. package/src/internal/form.ts +389 -0
  828. package/src/internal/math.ts +14 -0
  829. package/src/internal/modal.ts +157 -0
  830. package/src/internal/offset.ts +12 -0
  831. package/src/internal/scroll.ts +95 -0
  832. package/src/internal/scrollend-polyfill.ts +99 -0
  833. package/src/internal/slot.ts +110 -0
  834. package/src/internal/string.ts +3 -0
  835. package/src/internal/tabbable.ts +207 -0
  836. package/src/internal/watch.ts +58 -0
  837. package/src/native-styles.css +261 -0
  838. package/src/placer-autoloader.ts +53 -0
  839. package/src/placer.ts +53 -0
  840. package/src/style-utilities/fouce.css +13 -0
  841. package/src/style-utilities/style-utilities.css +2 -0
  842. package/src/style-utilities/visually-hidden.css +12 -0
  843. package/src/utilities/animation-registry.ts +72 -0
  844. package/src/utilities/animation.ts +4 -0
  845. package/src/utilities/base-path.ts +39 -0
  846. package/src/utilities/form.ts +41 -0
  847. package/src/utilities/icon-library.ts +4 -0
  848. package/src/utility.css +41 -0
@@ -0,0 +1,239 @@
1
+ import { getIconLibrary, unwatchIcon, watchIcon } from "./library.js";
2
+ import type { IconLibrary } from "./library.js";
3
+ import { LitElement, html } from "lit";
4
+ import type { CSSResultGroup, HTMLTemplateResult } from "lit";
5
+ import { customElement, property, state } from "lit/decorators.js";
6
+ import { isTemplateResult } from "lit/directive-helpers.js";
7
+ import { watch } from "../../internal/watch.js";
8
+ import { emit } from "../../internal/emit.js";
9
+ import { styles } from "./icon.styles.js";
10
+
11
+ const CACHEABLE_ERROR = Symbol();
12
+ const RETRYABLE_ERROR = Symbol();
13
+ type SVGResult =
14
+ | HTMLTemplateResult
15
+ | SVGSVGElement
16
+ | typeof RETRYABLE_ERROR
17
+ | typeof CACHEABLE_ERROR;
18
+
19
+ let parser: DOMParser;
20
+ const iconCache = new Map<string, Promise<SVGResult>>();
21
+
22
+ interface IconSource {
23
+ url?: string;
24
+ fromLibrary: boolean;
25
+ }
26
+
27
+ /**
28
+ * @summary Icons are visual symbols that represent actions, objects or ideas.
29
+ * @status experimental
30
+ * @since 0.1.0
31
+ *
32
+ * @event pc-load — Emitted when the icon has loaded. When using `spriteSheet: true`, this will not emit.
33
+ * @event pc-error — Emitted when the icon fails to load due to an error. When using `spriteSheet: true`, this will not emit.
34
+ *
35
+ * @csspart svg — The component’s internal SVG element.
36
+ * @csspart use — The `<use>` element generated when using `spriteSheet: true`.
37
+ *
38
+ * @cssproperty --fa-primary-color — The primary colour for the primary layer in duotone icons.
39
+ * @cssproperty --fa-secondary-color — The secondary colour for the secondary layer in duotone icons.
40
+ * @cssproperty --fa-primary-opacity — The primary opacity for the primary layer in duotone icons.
41
+ * @cssproperty --fa-secondary-opacity — The secondary opacity for the secondary layer in duotone icons.
42
+ */
43
+ @customElement("pc-icon")
44
+ export class PcIcon extends LitElement {
45
+ static styles: CSSResultGroup = styles;
46
+
47
+ private initialRender = false;
48
+
49
+ private async resolveIcon(
50
+ url: string,
51
+ library?: IconLibrary,
52
+ ): Promise<SVGResult> {
53
+ let fileData: Response;
54
+
55
+ if (library?.spriteSheet) {
56
+ this.svg = html`
57
+ <svg part="svg">
58
+ <use part="use" href=${url}></use>
59
+ </svg>
60
+ `;
61
+
62
+ return this.svg;
63
+ }
64
+
65
+ try {
66
+ fileData = await fetch(url, { mode: "cors" });
67
+ if (!fileData.ok) {
68
+ return fileData.status === 410
69
+ ? CACHEABLE_ERROR
70
+ : RETRYABLE_ERROR;
71
+ }
72
+ } catch {
73
+ return RETRYABLE_ERROR;
74
+ }
75
+
76
+ try {
77
+ const div = document.createElement("div");
78
+ div.innerHTML = await fileData.text();
79
+
80
+ const svg = div.firstElementChild;
81
+ if (svg?.tagName?.toLowerCase() !== "svg") {
82
+ return CACHEABLE_ERROR;
83
+ }
84
+
85
+ if (!parser) {
86
+ parser = new DOMParser();
87
+ }
88
+
89
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
90
+
91
+ const svgElement = doc.body.querySelector("svg");
92
+ if (!svgElement) {
93
+ return CACHEABLE_ERROR;
94
+ }
95
+
96
+ svgElement.part.add("svg");
97
+ return document.adoptNode(svgElement);
98
+ } catch {
99
+ return CACHEABLE_ERROR;
100
+ }
101
+ }
102
+
103
+ @state() private svg: SVGElement | HTMLTemplateResult | null = null;
104
+
105
+ /** The name of the icon to render. Available names depend on the icon library being used. */
106
+ @property({ reflect: true }) name?: string;
107
+
108
+ /** The icon style to use for the icon. If not configured, this only works for the default and Font Awesome Pro icon libraries. */
109
+ @property({ attribute: "icon-style", reflect: true }) iconStyle?: string;
110
+
111
+ /** Sets the width of the icon to 1.25em (20px) and centres it. It’s similar to the Font Awesome class `fa-fw`. */
112
+ @property({ attribute: "fixed-width", type: Boolean, reflect: true })
113
+ fixedWidth = false;
114
+
115
+ /** Swaps the opacity of duotone icons. Has no effect on icon libraries that aren’t the default one or Font Awesome Pro one. */
116
+ @property({ attribute: "swap-opacity", type: Boolean, reflect: true })
117
+ swapOpacity = false;
118
+
119
+ /** The external URL of an SVG file. Make sure you trust the content you are included, as it will be executed as code and can result in XSS attacks. */
120
+ @property() src?: string;
121
+
122
+ /** A label to include for assistive devices. If omitted, the icon will be considered presentational and ignored by assistive devices. */
123
+ @property() label = "";
124
+
125
+ /** The name of a registered icon library. */
126
+ @property({ reflect: true }) library = "default";
127
+
128
+ connectedCallback() {
129
+ super.connectedCallback();
130
+ watchIcon(this);
131
+ }
132
+
133
+ firstUpdated() {
134
+ this.initialRender = true;
135
+ this.setIcon();
136
+ }
137
+
138
+ disconnectedCallback() {
139
+ super.disconnectedCallback();
140
+ unwatchIcon(this);
141
+ }
142
+
143
+ private getIconSource(): IconSource {
144
+ const library = getIconLibrary(this.library);
145
+ if (this.name && library) {
146
+ return {
147
+ url: library.resolver(this.name, this.iconStyle),
148
+ fromLibrary: true,
149
+ };
150
+ }
151
+
152
+ return {
153
+ url: this.src,
154
+ fromLibrary: false,
155
+ };
156
+ }
157
+
158
+ /** @internal This is an internal property. */
159
+ @watch("label")
160
+ handleLabelChange() {
161
+ const hasLabel =
162
+ typeof this.label === "string" && this.label.length > 0;
163
+
164
+ if (hasLabel) {
165
+ this.setAttribute("role", "img");
166
+ this.setAttribute("aria-label", this.label);
167
+ this.removeAttribute("aria-hidden");
168
+ } else {
169
+ this.removeAttribute("role");
170
+ this.removeAttribute("aria-label");
171
+ this.setAttribute("aria-hidden", "true");
172
+ }
173
+ }
174
+
175
+ /** @internal This is an internal property. */
176
+ @watch(["library", "iconStyle", "name", "src"])
177
+ async setIcon() {
178
+ const { url, fromLibrary } = this.getIconSource();
179
+ const library = fromLibrary ? getIconLibrary(this.library) : undefined;
180
+
181
+ if (!url) {
182
+ this.svg = null;
183
+ return;
184
+ }
185
+
186
+ let iconResolver = iconCache.get(url);
187
+ if (!iconResolver) {
188
+ iconResolver = this.resolveIcon(url, library);
189
+ iconCache.set(url, iconResolver);
190
+ }
191
+
192
+ if (!this.initialRender) {
193
+ return;
194
+ }
195
+
196
+ const svg = await iconResolver;
197
+
198
+ if (svg === RETRYABLE_ERROR) {
199
+ iconCache.delete(url);
200
+ }
201
+
202
+ if (url !== this.getIconSource().url) {
203
+ return;
204
+ }
205
+
206
+ if (isTemplateResult(svg)) {
207
+ this.svg = svg;
208
+
209
+ if (library) {
210
+ await this.updateComplete;
211
+
212
+ const shadowSVG =
213
+ this.shadowRoot!.querySelector("[part='svg']")!;
214
+
215
+ if (typeof library.mutator === "function" && shadowSVG) {
216
+ library.mutator(shadowSVG as SVGElement);
217
+ }
218
+ }
219
+
220
+ return;
221
+ }
222
+
223
+ switch (svg) {
224
+ case RETRYABLE_ERROR:
225
+ case CACHEABLE_ERROR:
226
+ this.svg = null;
227
+ emit(this, "pc-error");
228
+ break;
229
+ default:
230
+ this.svg = svg.cloneNode(true) as SVGElement;
231
+ library?.mutator?.(this.svg);
232
+ emit(this, "pc-load");
233
+ }
234
+ }
235
+
236
+ render() {
237
+ return this.svg;
238
+ }
239
+ }
@@ -0,0 +1,47 @@
1
+ import { css } from "lit";
2
+
3
+ export const styles = css`
4
+ :host {
5
+ --fa-primary-color: currentColor;
6
+ --fa-secondary-color: currentColor;
7
+ --fa-primary-opacity: 1;
8
+ --fa-secondary-opacity: 0.4;
9
+
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ box-sizing: content-box !important;
14
+ width: 1em;
15
+ height: 1em;
16
+ }
17
+
18
+ :host([fixed-width]) {
19
+ width: 1.25em;
20
+ }
21
+
22
+ :host([swap-opacity]) .fa-primary {
23
+ opacity: var(--fa-secondary-opacity) !important;
24
+ }
25
+
26
+ :host([swap-opacity]) .fa-secondary {
27
+ opacity: var(--fa-primary-opacity) !important;
28
+ }
29
+
30
+ svg {
31
+ display: block;
32
+ width: 100%;
33
+ height: 100%;
34
+ fill: currentColor;
35
+ overflow: visible;
36
+ }
37
+
38
+ .fa-primary {
39
+ color: var(--fa-primary-color);
40
+ opacity: var(--fa-primary-opacity);
41
+ }
42
+
43
+ .fa-secondary {
44
+ color: var(--fa-secondary-color);
45
+ opacity: var(--fa-secondary-opacity);
46
+ }
47
+ `;
@@ -0,0 +1,10 @@
1
+ import { PcIcon } from "./icon.component.js";
2
+
3
+ export * from "./icon.component.js";
4
+ export default PcIcon;
5
+
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ "pc-icon": PcIcon;
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import type { IconLibrary } from "./library.js";
2
+
3
+ const library: IconLibrary = {
4
+ name: "default",
5
+ resolver: (name, iconStyle = "solid") => {
6
+ return `https://use.fontawesome.com/releases/v6.7.2/svgs/${iconStyle}/${name}.svg`;
7
+ },
8
+ };
9
+
10
+ export default library;
@@ -0,0 +1,136 @@
1
+ import type { IconLibrary } from "./library.js";
2
+
3
+ /* System icons are a separate library to ensure they’re always available,
4
+ regardless of how the default icon library is configured or whether its
5
+ icons resolve correctly.
6
+
7
+ All Placer Toolkit components must use the system library instead of the
8
+ default. For visual consistency, system icons are a subset of Font Awesome Free.
9
+
10
+ Note: Please keep the Font Awesome attribution comments and don’t remove them.
11
+ We don’t want to violate the Font Awesome Free licence. */
12
+ const icons = {
13
+ "check": `
14
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
15
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
16
+ <path
17
+ d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"
18
+ />
19
+ </svg>
20
+ `,
21
+ "chevron-down": `
22
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
23
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
24
+ <path
25
+ d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"
26
+ />
27
+ </svg>
28
+ `,
29
+ "chevron-left": `
30
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
31
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
32
+ <path
33
+ d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"
34
+ />
35
+ </svg>
36
+ `,
37
+ "chevron-right": `
38
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
39
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
40
+ <path
41
+ d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"
42
+ />
43
+ </svg>
44
+ `,
45
+ // circle-xmark is in the Regular style
46
+ "circle-xmark": `
47
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
48
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
49
+ <path
50
+ d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"
51
+ />
52
+ </svg>
53
+ `,
54
+ // copy is in the Regular style
55
+ "copy": `
56
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
57
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
58
+ <path
59
+ d="M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"
60
+ />
61
+ </svg>
62
+ `,
63
+ // eye is in the Regular style
64
+ "eye": `
65
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
66
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
67
+ <path
68
+ d="M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"
69
+ />
70
+ </svg>
71
+ `,
72
+ // eye-slash is in the Regular style
73
+ "eye-slash": `
74
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">
75
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
76
+ <path
77
+ d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
78
+ />
79
+ </svg>
80
+ `,
81
+ "grip-vertical": `
82
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
83
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
84
+ <path
85
+ d="M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"
86
+ />
87
+ </svg>
88
+ `,
89
+ "minus": `
90
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
91
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
92
+ <path
93
+ d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"
94
+ />
95
+ </svg>
96
+ `,
97
+ "star": `
98
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
99
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
100
+ <path
101
+ d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
102
+ />
103
+ </svg>
104
+ `,
105
+ "user": `
106
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
107
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
108
+ <path
109
+ d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"
110
+ />
111
+ </svg>
112
+ `,
113
+ "xmark": `
114
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
115
+ <!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. -->
116
+ <path
117
+ d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"
118
+ />
119
+ </svg>
120
+ `,
121
+ };
122
+
123
+ const systemLibrary: IconLibrary = {
124
+ name: "system",
125
+ resolver: (name) => {
126
+ if (name in icons) {
127
+ return `data:image/svg+xml,${encodeURIComponent(
128
+ icons[name as keyof typeof icons],
129
+ )}`;
130
+ }
131
+
132
+ return "";
133
+ },
134
+ };
135
+
136
+ export default systemLibrary;
@@ -0,0 +1,54 @@
1
+ import defaultLibrary from "./library.default.js";
2
+ import systemLibrary from "./library.system.js";
3
+ import type { PcIcon } from "./icon.js";
4
+
5
+ export type IconLibraryResolver = (name: string, iconStyle?: string) => string;
6
+ export type IconLibraryMutator = (svg: SVGElement) => void;
7
+
8
+ export interface IconLibrary {
9
+ name: string;
10
+ resolver: IconLibraryResolver;
11
+ mutator?: IconLibraryMutator;
12
+ spriteSheet?: boolean;
13
+ }
14
+
15
+ let registry: IconLibrary[] = [defaultLibrary, systemLibrary];
16
+ let watchedIcons: PcIcon[] = [];
17
+
18
+ export function watchIcon(icon: PcIcon) {
19
+ watchedIcons.push(icon);
20
+ }
21
+
22
+ export function unwatchIcon(icon: PcIcon) {
23
+ watchedIcons = watchedIcons.filter((element) => element !== icon);
24
+ }
25
+
26
+ export function getIconLibrary(name?: string) {
27
+ return (
28
+ registry.find((library) => library.name === name) ||
29
+ registry.find((library) => library.name === "default")
30
+ );
31
+ }
32
+
33
+ export function registerIconLibrary(
34
+ name: string,
35
+ options: Omit<IconLibrary, "name">,
36
+ ) {
37
+ unregisterIconLibrary(name);
38
+ registry.push({
39
+ name,
40
+ resolver: options.resolver,
41
+ mutator: options.mutator,
42
+ spriteSheet: options.spriteSheet,
43
+ });
44
+
45
+ watchedIcons.forEach((icon) => {
46
+ if (icon.library === name) {
47
+ icon.setIcon();
48
+ }
49
+ });
50
+ }
51
+
52
+ export function unregisterIconLibrary(name: string) {
53
+ registry = registry.filter((library) => library.name !== name);
54
+ }
@@ -0,0 +1,129 @@
1
+ import { LitElement, html } from "lit";
2
+ import type { CSSResultGroup } from "lit";
3
+ import { customElement, property, query, state } from "lit/decorators.js";
4
+ import { classMap } from "lit/directives/class-map.js";
5
+ import { ifDefined } from "lit/directives/if-defined.js";
6
+ import { emit } from "../../internal/emit.js";
7
+ import { PcIcon } from "../icon/icon.js";
8
+ import { styles } from "./icon-button.styles.js";
9
+
10
+ @customElement("pc-icon-button")
11
+ export class PcIconButton extends LitElement {
12
+ static styles: CSSResultGroup = styles;
13
+ static dependencies = { "pc-icon": PcIcon };
14
+
15
+ @query(".icon-button") button!: HTMLButtonElement | HTMLLinkElement;
16
+
17
+ @state() private hasFocus = false;
18
+
19
+ @property({ type: Boolean, reflect: true }) disabled = false;
20
+
21
+ @property() download?: string;
22
+
23
+ @property() href?: string;
24
+
25
+ @property({ attribute: "icon-style" }) iconStyle?: string;
26
+
27
+ @property() label = "";
28
+
29
+ @property() library?: string;
30
+
31
+ @property() name?: string;
32
+
33
+ @property() src?: string;
34
+
35
+ @property() target?: "_blank" | "_parent" | "_self" | "_top";
36
+
37
+ private handleClick(event: MouseEvent) {
38
+ if (this.disabled) {
39
+ event.preventDefault();
40
+ event.stopPropagation();
41
+ }
42
+ }
43
+
44
+ private handleFocus() {
45
+ this.hasFocus = true;
46
+ emit(this, "pc-focus");
47
+ }
48
+
49
+ private handleBlur() {
50
+ this.hasFocus = false;
51
+ emit(this, "pc-blur");
52
+ }
53
+
54
+ click() {
55
+ this.button.click();
56
+ }
57
+
58
+ focus(options?: FocusOptions) {
59
+ this.button.focus(options);
60
+ }
61
+
62
+ blur() {
63
+ this.button.blur();
64
+ }
65
+
66
+ render() {
67
+ const isLink = this.href ? true : false;
68
+
69
+ return html`
70
+ ${isLink
71
+ ? html`
72
+ <a
73
+ part="base"
74
+ class=${classMap({
75
+ "icon-button": true,
76
+ "icon-button-disabled": this.disabled === true,
77
+ "icon-button-focused": this.hasFocus === true,
78
+ })}
79
+ href=${ifDefined(this.href)}
80
+ target=${ifDefined(this.target)}
81
+ download=${ifDefined(this.download)}
82
+ rel=${ifDefined(
83
+ this.target ? "noreferrer noopener" : undefined,
84
+ )}
85
+ aria-label=${this.label}
86
+ tabindex=${this.disabled ? "-1" : "0"}
87
+ @click=${this.handleClick}
88
+ @focus=${this.handleFocus}
89
+ @blur=${this.handleBlur}
90
+ >
91
+ <pc-icon
92
+ class="icon"
93
+ library=${ifDefined(this.library)}
94
+ icon-style=${ifDefined(this.iconStyle)}
95
+ name=${ifDefined(this.name)}
96
+ src=${ifDefined(this.src)}
97
+ aria-hidden="true"
98
+ ></pc-icon>
99
+ </a>
100
+ `
101
+ : html`
102
+ <button
103
+ part="base"
104
+ class=${classMap({
105
+ "icon-button": true,
106
+ "icon-button-disabled": this.disabled === true,
107
+ "icon-button-focused": this.hasFocus === true,
108
+ })}
109
+ type="button"
110
+ aria-label=${this.label}
111
+ aria-disabled=${this.disabled ? "true" : "false"}
112
+ tabindex=${this.disabled ? "-1" : "0"}
113
+ @click=${this.handleClick}
114
+ @focus=${this.handleFocus}
115
+ @blur=${this.handleBlur}
116
+ >
117
+ <pc-icon
118
+ class="icon"
119
+ library=${ifDefined(this.library)}
120
+ icon-style=${ifDefined(this.iconStyle)}
121
+ name=${ifDefined(this.name)}
122
+ src=${ifDefined(this.src)}
123
+ aria-hidden="true"
124
+ ></pc-icon>
125
+ </button>
126
+ `}
127
+ `;
128
+ }
129
+ }
@@ -0,0 +1,51 @@
1
+ import { css } from "lit";
2
+
3
+ export const styles = css`
4
+ :host {
5
+ display: inline-flex;
6
+ color: var(--pc-color-neutral-600);
7
+ }
8
+
9
+ .icon-button {
10
+ display: flex;
11
+ align-items: center;
12
+ flex: 0 0 auto;
13
+ background: transparent;
14
+ border: none;
15
+ border-radius: var(--pc-border-radius-m);
16
+ font-size: inherit;
17
+ color: inherit;
18
+ padding: var(--pc-spacing-s);
19
+ cursor: pointer;
20
+ -webkit-appearance: none;
21
+ transition: all var(--pc-transition-fast) ease-in-out;
22
+ }
23
+
24
+ .icon-button:hover:not(.icon-button-disabled),
25
+ .icon-button:focus-visible:not(.icon-button-disabled) {
26
+ background-color: var(--pc-color-neutral-200);
27
+ }
28
+
29
+ .icon-button:active:not(.icon-button-disabled) {
30
+ background-color: var(--pc-color-neutral-100);
31
+ color: var(--pc-color-neutral-500);
32
+ }
33
+
34
+ .icon-button:focus {
35
+ outline: none;
36
+ }
37
+
38
+ .icon-button-disabled {
39
+ opacity: 0.6;
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ .icon-button:focus-visible {
44
+ outline: var(--pc-focus-ring);
45
+ outline-offset: var(--pc-focus-ring-offset);
46
+ }
47
+
48
+ .icon {
49
+ pointer-events: none;
50
+ }
51
+ `;