@redvars/peacock 3.1.2 → 3.1.3

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 (346) hide show
  1. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/LoaderUtils.d.ts +0 -1
  2. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/LoaderUtils.js +0 -1
  3. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/LoaderUtils.js.map +1 -1
  4. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/avatar/avatar.d.ts +1 -1
  5. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/avatar/avatar.js +1 -1
  6. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/avatar/avatar.js.map +1 -1
  7. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/badge/badge.d.ts +1 -1
  8. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/badge/badge.js +1 -1
  9. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/badge/badge.js.map +1 -1
  10. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/button.d.ts +99 -0
  11. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/button.js +292 -0
  12. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/button.js.map +1 -0
  13. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/index.d.ts +1 -0
  14. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/index.js +2 -0
  15. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/button/index.js.map +1 -0
  16. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/ClockController.d.ts +10 -0
  17. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/ClockController.js +22 -0
  18. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/ClockController.js.map +1 -0
  19. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/clock.d.ts +4 -6
  20. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/clock.js +8 -25
  21. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/clock/clock.js.map +1 -1
  22. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/code-highlighter.d.ts +26 -0
  23. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/code-highlighter.js +60 -0
  24. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/code-highlighter.js.map +1 -0
  25. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/index.d.ts +1 -0
  26. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/index.js +2 -0
  27. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/index.js.map +1 -0
  28. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/local.d.ts +6 -0
  29. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/local.js +7 -0
  30. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/code-highlighter/local.js.map +1 -0
  31. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/divider/divider.d.ts +1 -2
  32. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/divider/divider.js +1 -8
  33. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/divider/divider.js.map +1 -1
  34. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.css.d.ts +1 -0
  35. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.css.js +47 -0
  36. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.css.js.map +1 -0
  37. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.d.ts +27 -0
  38. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.js +31 -0
  39. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/elevation.js.map +1 -0
  40. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/index.d.ts +1 -0
  41. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/index.js +2 -0
  42. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/elevation/index.js.map +1 -0
  43. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/FocusAttachableController.d.ts +9 -0
  44. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/FocusAttachableController.js +25 -0
  45. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/FocusAttachableController.js.map +1 -0
  46. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/focus-ring.d.ts +35 -0
  47. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/focus-ring.js +81 -0
  48. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/focus-ring.js.map +1 -0
  49. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/index.d.ts +1 -0
  50. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/index.js +2 -0
  51. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/focus-ring/index.js.map +1 -0
  52. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/icon/icon.d.ts +3 -2
  53. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/icon/icon.js +4 -4
  54. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/icon/icon.js.map +1 -1
  55. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/index.d.ts +4 -0
  56. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/index.js +4 -0
  57. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/index.js.map +1 -1
  58. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/peacock-loader.js +24 -18
  59. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/peacock-loader.js.map +1 -1
  60. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/index.d.ts +1 -0
  61. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/index.js +2 -0
  62. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/index.js.map +1 -0
  63. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/ripple.d.ts +9 -0
  64. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/ripple.js +125 -0
  65. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/ripple/ripple.js.map +1 -0
  66. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/utils.d.ts +4 -0
  67. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/utils.js +22 -1
  68. package/.rollup.cache/E/git/redvars/peacock/components/dist/src/utils.js.map +1 -1
  69. package/.rollup.cache/E/git/redvars/peacock/components/dist/tsconfig.tsbuildinfo +1 -1
  70. package/bin/typedoc-gen.mjs +3 -4
  71. package/demo/index.html +45 -41
  72. package/dist/LoaderUtils.d.ts +23 -0
  73. package/dist/LoaderUtils.d.ts.map +1 -0
  74. package/dist/assets/styles/tokens.css +21 -53
  75. package/dist/avatar/avatar.d.ts +28 -0
  76. package/dist/avatar/avatar.d.ts.map +1 -0
  77. package/dist/avatar/index.d.ts +2 -0
  78. package/dist/avatar/index.d.ts.map +1 -0
  79. package/dist/avatar/p-avatar.d.ts +4 -0
  80. package/dist/avatar/p-avatar.d.ts.map +1 -0
  81. package/dist/avatar.js +42 -40
  82. package/dist/avatar.js.map +1 -1
  83. package/dist/badge/badge.d.ts +24 -0
  84. package/dist/badge/badge.d.ts.map +1 -0
  85. package/dist/badge/index.d.ts +2 -0
  86. package/dist/badge/index.d.ts.map +1 -0
  87. package/dist/badge/p-badge.d.ts +4 -0
  88. package/dist/badge/p-badge.d.ts.map +1 -0
  89. package/dist/badge.js +37 -36
  90. package/dist/badge.js.map +1 -1
  91. package/dist/button/button.d.ts +103 -0
  92. package/dist/button/button.d.ts.map +1 -0
  93. package/dist/button/index.d.ts +2 -0
  94. package/dist/button/index.d.ts.map +1 -0
  95. package/dist/button.js +710 -0
  96. package/dist/button.js.map +1 -0
  97. package/dist/class-map-BzIzngvN.js +89 -0
  98. package/dist/class-map-BzIzngvN.js.map +1 -0
  99. package/dist/class-map-CBk4-iMN.js +11 -0
  100. package/dist/class-map-CBk4-iMN.js.map +1 -0
  101. package/dist/class-map-Cavm-B1S.js +11 -0
  102. package/dist/class-map-Cavm-B1S.js.map +1 -0
  103. package/dist/class-map-DL5vM0J2.js +11 -0
  104. package/dist/class-map-DL5vM0J2.js.map +1 -0
  105. package/dist/class-map-IbP5VjmB.js +11 -0
  106. package/dist/class-map-IbP5VjmB.js.map +1 -0
  107. package/dist/clock/ClockController.d.ts +11 -0
  108. package/dist/clock/ClockController.d.ts.map +1 -0
  109. package/dist/clock/clock.d.ts +26 -0
  110. package/dist/clock/clock.d.ts.map +1 -0
  111. package/dist/clock/index.d.ts +2 -0
  112. package/dist/clock/index.d.ts.map +1 -0
  113. package/dist/clock.js +42 -35
  114. package/dist/clock.js.map +1 -1
  115. package/dist/code-highlighter/code-highlighter.d.ts +27 -0
  116. package/dist/code-highlighter/code-highlighter.d.ts.map +1 -0
  117. package/dist/code-highlighter/index.d.ts +2 -0
  118. package/dist/code-highlighter/index.d.ts.map +1 -0
  119. package/dist/code-highlighter/local.d.ts +7 -0
  120. package/dist/code-highlighter/local.d.ts.map +1 -0
  121. package/dist/code-highlighter.js +66 -0
  122. package/dist/code-highlighter.js.map +1 -0
  123. package/dist/custom-elements-jsdocs.json +589 -34
  124. package/dist/directive-CkFJvUQK.js +45 -0
  125. package/dist/directive-CkFJvUQK.js.map +1 -0
  126. package/dist/divider/divider.d.ts +28 -0
  127. package/dist/divider/divider.d.ts.map +1 -0
  128. package/dist/divider/index.d.ts +2 -0
  129. package/dist/divider/index.d.ts.map +1 -0
  130. package/dist/divider.js +55 -61
  131. package/dist/divider.js.map +1 -1
  132. package/dist/elevation/elevation.d.ts +28 -0
  133. package/dist/elevation/elevation.d.ts.map +1 -0
  134. package/dist/elevation/index.d.ts +2 -0
  135. package/dist/elevation/index.d.ts.map +1 -0
  136. package/dist/elevation-Bl1N6qEq.js +100 -0
  137. package/dist/elevation-Bl1N6qEq.js.map +1 -0
  138. package/dist/elevation-CbF5he8B.js +103 -0
  139. package/dist/elevation-CbF5he8B.js.map +1 -0
  140. package/dist/elevation-D3F6Z1jU.js +100 -0
  141. package/dist/elevation-D3F6Z1jU.js.map +1 -0
  142. package/dist/elevation.js +77 -0
  143. package/dist/elevation.js.map +1 -0
  144. package/dist/focus-ring/FocusAttachableController.d.ts +10 -0
  145. package/dist/focus-ring/FocusAttachableController.d.ts.map +1 -0
  146. package/dist/focus-ring/focus-ring.d.ts +36 -0
  147. package/dist/focus-ring/focus-ring.d.ts.map +1 -0
  148. package/dist/focus-ring/index.d.ts +2 -0
  149. package/dist/focus-ring/index.d.ts.map +1 -0
  150. package/dist/focus-ring.js +105 -0
  151. package/dist/focus-ring.js.map +1 -0
  152. package/dist/icon/datasource.d.ts +3 -0
  153. package/dist/icon/datasource.d.ts.map +1 -0
  154. package/dist/icon/icon.d.ts +42 -0
  155. package/dist/icon/icon.d.ts.map +1 -0
  156. package/dist/icon/index.d.ts +2 -0
  157. package/dist/icon/index.d.ts.map +1 -0
  158. package/dist/icon/p-icon.d.ts +4 -0
  159. package/dist/icon/p-icon.d.ts.map +1 -0
  160. package/dist/icon.js +26 -26
  161. package/dist/icon.js.map +1 -1
  162. package/dist/index.d.ts +9 -0
  163. package/dist/index.d.ts.map +1 -0
  164. package/dist/index.js +9 -5
  165. package/dist/index.js.map +1 -1
  166. package/dist/link/link.css.d.ts +3 -0
  167. package/dist/link/link.css.d.ts.map +1 -0
  168. package/dist/lit-element-B7NX__Gq.js +2851 -0
  169. package/dist/lit-element-B7NX__Gq.js.map +1 -0
  170. package/dist/lit-element-Bq5B2QNv.js +28 -0
  171. package/dist/lit-element-Bq5B2QNv.js.map +1 -0
  172. package/dist/lit-element-CkD27PXL.js +28 -0
  173. package/dist/lit-element-CkD27PXL.js.map +1 -0
  174. package/dist/lit-element-DHH1_Q-3.js +28 -0
  175. package/dist/lit-element-DHH1_Q-3.js.map +1 -0
  176. package/dist/peacock-loader.d.ts +2 -0
  177. package/dist/peacock-loader.d.ts.map +1 -0
  178. package/dist/peacock-loader.js +465 -116
  179. package/dist/peacock-loader.js.map +1 -1
  180. package/dist/property-BXcRN0hQ.js +39 -0
  181. package/dist/property-BXcRN0hQ.js.map +1 -0
  182. package/dist/property-CR1ZrEd9.js +45 -0
  183. package/dist/property-CR1ZrEd9.js.map +1 -0
  184. package/dist/property-CqSbFxyM.js +45 -0
  185. package/dist/property-CqSbFxyM.js.map +1 -0
  186. package/dist/property-DNaigT7h.js +39 -0
  187. package/dist/property-DNaigT7h.js.map +1 -0
  188. package/dist/property-yt9tIYgR.js +39 -0
  189. package/dist/property-yt9tIYgR.js.map +1 -0
  190. package/dist/query-CV342L_h.js +189 -0
  191. package/dist/query-CV342L_h.js.map +1 -0
  192. package/dist/ripple-Blc5Rqhb.js +102 -0
  193. package/dist/ripple-Blc5Rqhb.js.map +1 -0
  194. package/dist/ripple-BqTcEQAP.js +102 -0
  195. package/dist/ripple-BqTcEQAP.js.map +1 -0
  196. package/dist/ripple-BqUjb18i.js +105 -0
  197. package/dist/ripple-BqUjb18i.js.map +1 -0
  198. package/dist/ripple-Buzs-MON.js +106 -0
  199. package/dist/ripple-Buzs-MON.js.map +1 -0
  200. package/dist/ripple-Bz5B_LoE.js +102 -0
  201. package/dist/ripple-Bz5B_LoE.js.map +1 -0
  202. package/dist/ripple-CAq7Ix6x.js +106 -0
  203. package/dist/ripple-CAq7Ix6x.js.map +1 -0
  204. package/dist/ripple-CDqSm_Vy.js +106 -0
  205. package/dist/ripple-CDqSm_Vy.js.map +1 -0
  206. package/dist/ripple-CJtPH28B.js +102 -0
  207. package/dist/ripple-CJtPH28B.js.map +1 -0
  208. package/dist/ripple-CKTd8obC.js +92 -0
  209. package/dist/ripple-CKTd8obC.js.map +1 -0
  210. package/dist/ripple-CKnDWTVQ.js +107 -0
  211. package/dist/ripple-CKnDWTVQ.js.map +1 -0
  212. package/dist/ripple-CeR8eLuc.js +93 -0
  213. package/dist/ripple-CeR8eLuc.js.map +1 -0
  214. package/dist/ripple-Czp3eR6w.js +127 -0
  215. package/dist/ripple-Czp3eR6w.js.map +1 -0
  216. package/dist/ripple-DIab1MaY.js +106 -0
  217. package/dist/ripple-DIab1MaY.js.map +1 -0
  218. package/dist/ripple-DUFMimxZ.js +120 -0
  219. package/dist/ripple-DUFMimxZ.js.map +1 -0
  220. package/dist/ripple-DVmDdoNV.js +102 -0
  221. package/dist/ripple-DVmDdoNV.js.map +1 -0
  222. package/dist/ripple-DYnhXK5d.js +118 -0
  223. package/dist/ripple-DYnhXK5d.js.map +1 -0
  224. package/dist/ripple-DnudV47f.js +102 -0
  225. package/dist/ripple-DnudV47f.js.map +1 -0
  226. package/dist/ripple-DsC-h31M.js +119 -0
  227. package/dist/ripple-DsC-h31M.js.map +1 -0
  228. package/dist/ripple-DvM0SPd9.js +128 -0
  229. package/dist/ripple-DvM0SPd9.js.map +1 -0
  230. package/dist/ripple-NWIiDgX2.js +128 -0
  231. package/dist/ripple-NWIiDgX2.js.map +1 -0
  232. package/dist/ripple-X3U_R8lT.js +106 -0
  233. package/dist/ripple-X3U_R8lT.js.map +1 -0
  234. package/dist/ripple.js +128 -0
  235. package/dist/ripple.js.map +1 -0
  236. package/dist/src/LoaderUtils.d.ts +0 -1
  237. package/dist/src/avatar/avatar.d.ts +1 -1
  238. package/dist/src/badge/badge.d.ts +1 -1
  239. package/dist/src/button/button.d.ts +99 -0
  240. package/dist/src/button/index.d.ts +1 -0
  241. package/dist/src/clock/ClockController.d.ts +10 -0
  242. package/dist/src/clock/clock.d.ts +4 -6
  243. package/dist/src/code-highlighter/code-highlighter.d.ts +26 -0
  244. package/dist/src/code-highlighter/index.d.ts +1 -0
  245. package/dist/src/code-highlighter/local.d.ts +6 -0
  246. package/dist/src/divider/divider.d.ts +1 -2
  247. package/dist/src/elevation/elevation.css.d.ts +1 -0
  248. package/dist/src/elevation/elevation.d.ts +27 -0
  249. package/dist/src/elevation/index.d.ts +1 -0
  250. package/dist/src/focus-ring/FocusAttachableController.d.ts +9 -0
  251. package/dist/src/focus-ring/focus-ring.d.ts +35 -0
  252. package/dist/src/focus-ring/index.d.ts +1 -0
  253. package/dist/src/icon/icon.d.ts +3 -2
  254. package/dist/src/index.d.ts +4 -0
  255. package/dist/src/ripple/index.d.ts +1 -0
  256. package/dist/src/ripple/ripple.d.ts +9 -0
  257. package/dist/src/utils.d.ts +4 -0
  258. package/dist/state-BXOdKkbT.js +10 -0
  259. package/dist/state-BXOdKkbT.js.map +1 -0
  260. package/dist/state-BfUul2Gq.js +10 -0
  261. package/dist/state-BfUul2Gq.js.map +1 -0
  262. package/dist/state-CNX6DhqO.js +10 -0
  263. package/dist/state-CNX6DhqO.js.map +1 -0
  264. package/dist/state-Cl3mjeR1.js +10 -0
  265. package/dist/state-Cl3mjeR1.js.map +1 -0
  266. package/dist/state-WDFgnqnd.js +36 -0
  267. package/dist/state-WDFgnqnd.js.map +1 -0
  268. package/dist/style-inject.es--nCJ9F_D.js +55 -0
  269. package/dist/style-inject.es--nCJ9F_D.js.map +1 -0
  270. package/dist/style-inject.es-tgCJW-Cu.js +29 -0
  271. package/dist/style-inject.es-tgCJW-Cu.js.map +1 -0
  272. package/dist/styleMixins.css-0Uq-6ouM.js +14 -0
  273. package/dist/styleMixins.css-0Uq-6ouM.js.map +1 -0
  274. package/dist/styleMixins.css-B8H9wDNA.js +17 -0
  275. package/dist/styleMixins.css-B8H9wDNA.js.map +1 -0
  276. package/dist/styleMixins.css-DrUsqddl.js +17 -0
  277. package/dist/styleMixins.css-DrUsqddl.js.map +1 -0
  278. package/dist/styleMixins.css-fokZCyF-.js +17 -0
  279. package/dist/styleMixins.css-fokZCyF-.js.map +1 -0
  280. package/dist/styleMixins.css.d.ts +10 -0
  281. package/dist/styleMixins.css.d.ts.map +1 -0
  282. package/dist/text/text.css.d.ts +3 -0
  283. package/dist/text/text.css.d.ts.map +1 -0
  284. package/dist/tsconfig.tsbuildinfo +1 -1
  285. package/dist/typedoc.json +340489 -0
  286. package/dist/utils-BVap5huR.js +157 -0
  287. package/dist/utils-BVap5huR.js.map +1 -0
  288. package/dist/utils-CY3RyfcA.js +157 -0
  289. package/dist/utils-CY3RyfcA.js.map +1 -0
  290. package/dist/utils-CdOdn2dW.js +149 -0
  291. package/dist/utils-CdOdn2dW.js.map +1 -0
  292. package/dist/utils-DD_cg6Ms.js +157 -0
  293. package/dist/utils-DD_cg6Ms.js.map +1 -0
  294. package/dist/utils.d.ts +8 -0
  295. package/dist/utils.d.ts.map +1 -0
  296. package/package.json +4 -2
  297. package/readme.md +1 -1
  298. package/rollup.config.js +9 -1
  299. package/scss/mixin.scss +50 -0
  300. package/src/LoaderUtils.ts +122 -122
  301. package/src/avatar/avatar.scss +38 -0
  302. package/src/avatar/avatar.ts +1 -1
  303. package/src/badge/badge.scss +31 -0
  304. package/src/badge/badge.ts +1 -1
  305. package/src/button/_button-sizes.scss +59 -0
  306. package/src/button/button.scss +430 -0
  307. package/src/button/button.ts +304 -0
  308. package/src/button/demo/index.html +42 -0
  309. package/src/button/index.ts +1 -0
  310. package/src/clock/ClockController.ts +32 -0
  311. package/src/clock/clock.scss +9 -0
  312. package/src/clock/clock.ts +39 -57
  313. package/src/code-highlighter/code-highlighter.scss +0 -0
  314. package/src/code-highlighter/code-highlighter.ts +58 -0
  315. package/src/code-highlighter/demo/index.html +58 -0
  316. package/src/code-highlighter/index.ts +1 -0
  317. package/src/code-highlighter/local.ts +11 -0
  318. package/src/divider/divider.scss +56 -0
  319. package/src/divider/divider.ts +1 -7
  320. package/src/elevation/demo/index.html +58 -0
  321. package/src/elevation/elevation.scss +61 -0
  322. package/src/elevation/elevation.ts +32 -0
  323. package/src/elevation/index.ts +1 -0
  324. package/src/focus-ring/FocusAttachableController.ts +36 -0
  325. package/src/focus-ring/demo/index.html +58 -0
  326. package/src/focus-ring/focus-ring.scss +22 -0
  327. package/src/focus-ring/focus-ring.ts +83 -0
  328. package/src/focus-ring/index.ts +1 -0
  329. package/src/icon/icon.scss +19 -0
  330. package/src/icon/icon.ts +131 -131
  331. package/src/index.ts +9 -5
  332. package/src/link/demo/index.html +34 -0
  333. package/src/link/link.scss +24 -0
  334. package/src/peacock-loader.ts +69 -64
  335. package/src/ripple/index.ts +1 -0
  336. package/src/ripple/ripple.ts +134 -0
  337. package/src/styles.d.ts +3 -1
  338. package/src/text/text.scss +48 -0
  339. package/src/utils.ts +29 -1
  340. package/tsconfig.json +23 -22
  341. package/demo/int.html +0 -31
  342. package/src/avatar/avatar.css.ts +0 -41
  343. package/src/badge/badge.css.ts +0 -34
  344. package/src/clock/clock.css.ts +0 -12
  345. package/src/divider/divider.css.ts +0 -58
  346. package/src/icon/icon.css.ts +0 -22
@@ -241,43 +241,49 @@
241
241
  }
242
242
  },
243
243
  {
244
- "rawTag": "clock",
245
- "label": "Clock",
244
+ "rawTag": "button",
245
+ "label": "Button",
246
246
  "jsdoc": {
247
247
  "@label": [
248
248
  {
249
249
  "kind": "text",
250
- "text": "Clock"
250
+ "text": "Button"
251
251
  }
252
252
  ],
253
253
  "@tag": [
254
254
  {
255
255
  "kind": "text",
256
- "text": "p-clock"
256
+ "text": "p-button"
257
257
  }
258
258
  ],
259
259
  "@rawTag": [
260
260
  {
261
261
  "kind": "text",
262
- "text": "clock"
262
+ "text": "button"
263
263
  }
264
264
  ],
265
265
  "@summary": [
266
266
  {
267
267
  "kind": "text",
268
- "text": "Displays the current time in a given timezone."
268
+ "text": "Buttons help people initiate actions, from sending an email, to sharing a document, to liking a post."
269
269
  }
270
270
  ],
271
271
  "@overview": [
272
272
  {
273
273
  "kind": "text",
274
- "text": "- Clocks are used to display the current time in a specified timezone.\n - They can be displayed in various formats, including 12-hour and 24-hour time."
274
+ "text": "<p>Buttons are clickable elements that are used to trigger actions. They communicate calls to action to the user and allow users to interact with pages in a variety of ways. Button labels express what action will occur when the user interacts with it.</p>"
275
+ }
276
+ ],
277
+ "@cssprop": [
278
+ {
279
+ "kind": "text",
280
+ "text": "--divider-padding - Controls the padding of the divider."
275
281
  }
276
282
  ],
277
283
  "@example": [
278
284
  {
279
285
  "kind": "code",
280
- "text": "```html\n<p-clock></p-clock>\n```"
286
+ "text": "```html\n<pc-button>Button</pc-button>\n```"
281
287
  }
282
288
  ],
283
289
  "@tags": [
@@ -290,35 +296,435 @@
290
296
  "customElement": {
291
297
  "kind": "class",
292
298
  "description": "",
293
- "name": "Clock",
299
+ "name": "Button",
300
+ "cssProperties": [
301
+ {
302
+ "description": "Controls the color of the divider.",
303
+ "name": "--divider-color"
304
+ },
305
+ {
306
+ "description": "Controls the padding of the divider.",
307
+ "name": "--divider-padding"
308
+ }
309
+ ],
294
310
  "members": [
295
311
  {
296
312
  "kind": "field",
297
- "name": "timezone",
313
+ "name": "#id",
314
+ "privacy": "private"
315
+ },
316
+ {
317
+ "kind": "field",
318
+ "name": "#tabindex",
319
+ "privacy": "private",
320
+ "type": {
321
+ "text": "number | undefined"
322
+ },
323
+ "default": "0"
324
+ },
325
+ {
326
+ "kind": "field",
327
+ "name": "buttonElement",
328
+ "type": {
329
+ "text": "HTMLElement | null"
330
+ },
331
+ "privacy": "private",
332
+ "readonly": true
333
+ },
334
+ {
335
+ "kind": "field",
336
+ "name": "htmlType",
337
+ "type": {
338
+ "text": "'button' | 'submit' | 'reset'"
339
+ },
340
+ "default": "'button'",
341
+ "attribute": "htmlType"
342
+ },
343
+ {
344
+ "kind": "field",
345
+ "name": "variant",
346
+ "type": {
347
+ "text": "| 'elevated'\n | 'filled'\n | 'tonal'\n | 'outlined'\n | 'text'\n | 'neo'"
348
+ },
349
+ "default": "'filled'",
350
+ "description": "The visual style of the button.\n\n Possible variant values:\n`\"filled\"` is a filled button.\n`\"outlined\"` is an outlined button.\n`\"text\"` is a transparent button.\n`\"tonal\"` is a light color button.",
351
+ "attribute": "variant"
352
+ },
353
+ {
354
+ "kind": "field",
355
+ "name": "size",
356
+ "type": {
357
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl'"
358
+ },
359
+ "default": "'sm'",
360
+ "description": "Button size.\nPossible values are `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
361
+ "attribute": "size"
362
+ },
363
+ {
364
+ "kind": "field",
365
+ "name": "disabled",
366
+ "type": {
367
+ "text": "boolean"
368
+ },
369
+ "default": "false",
370
+ "description": "If true, the user cannot interact with the button. Defaults to `false`.",
371
+ "attribute": "disabled",
372
+ "reflects": true
373
+ },
374
+ {
375
+ "kind": "field",
376
+ "name": "softDisabled",
377
+ "type": {
378
+ "text": "boolean"
379
+ },
380
+ "default": "false",
381
+ "description": "If true, the user cannot interact with the button and the button is visually styled as disabled. But the button is still focusable. Defaults to `false`.",
382
+ "attribute": "softDisabled",
383
+ "reflects": true
384
+ },
385
+ {
386
+ "kind": "field",
387
+ "name": "disabledReason",
388
+ "type": {
389
+ "text": "string"
390
+ },
391
+ "default": "''",
392
+ "description": "If button is disabled, the reason why it is disabled.",
393
+ "attribute": "disabledReason"
394
+ },
395
+ {
396
+ "kind": "field",
397
+ "name": "color",
398
+ "type": {
399
+ "text": "| 'primary'\n | 'secondary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'white'\n | 'black'"
400
+ },
401
+ "default": "'primary'",
402
+ "description": "Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.",
403
+ "attribute": "color",
404
+ "reflects": true
405
+ },
406
+ {
407
+ "kind": "field",
408
+ "name": "iconAlign",
409
+ "type": {
410
+ "text": "'start' | 'end'"
411
+ },
412
+ "default": "'end'",
413
+ "description": "Icon alignment.\nPossible values are `\"start\"`, `\"end\"`. Defaults to `\"end\"`.",
414
+ "attribute": "iconAlign"
415
+ },
416
+ {
417
+ "kind": "field",
418
+ "name": "href",
298
419
  "type": {
299
420
  "text": "string | undefined"
300
421
  },
301
- "attribute": "timezone"
422
+ "description": "Hyperlink to navigate to on click.",
423
+ "attribute": "href",
424
+ "reflects": true
302
425
  },
303
426
  {
304
427
  "kind": "field",
305
- "name": "currentTime",
428
+ "name": "configAria",
429
+ "type": {
430
+ "text": "{ [key: string]: any } | undefined"
431
+ },
432
+ "attribute": "configAria",
433
+ "reflects": true
434
+ },
435
+ {
436
+ "kind": "field",
437
+ "name": "target",
306
438
  "type": {
307
439
  "text": "string"
308
440
  },
309
- "default": "''"
441
+ "default": "'_self'",
442
+ "description": "Sets or retrieves the window or frame at which to target content.",
443
+ "attribute": "target"
310
444
  },
311
445
  {
312
446
  "kind": "field",
313
- "name": "_timerId",
447
+ "name": "selected",
314
448
  "type": {
315
- "text": "any"
449
+ "text": "boolean"
450
+ },
451
+ "default": "false",
452
+ "attribute": "selected"
453
+ },
454
+ {
455
+ "kind": "field",
456
+ "name": "throttleDelay",
457
+ "type": {
458
+ "text": "number"
459
+ },
460
+ "default": "200",
461
+ "description": "Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.",
462
+ "attribute": "throttleDelay"
463
+ },
464
+ {
465
+ "kind": "field",
466
+ "name": "isPressed",
467
+ "type": {
468
+ "text": "boolean"
469
+ },
470
+ "privacy": "private",
471
+ "default": "false",
472
+ "description": "States"
473
+ },
474
+ {
475
+ "kind": "field",
476
+ "name": "slotHasContent",
477
+ "type": {
478
+ "text": "boolean"
479
+ },
480
+ "privacy": "private",
481
+ "default": "false"
482
+ },
483
+ {
484
+ "kind": "method",
485
+ "name": "focus"
486
+ },
487
+ {
488
+ "kind": "method",
489
+ "name": "blur"
490
+ },
491
+ {
492
+ "kind": "field",
493
+ "name": "__dispatchClickWithThrottle",
494
+ "type": {
495
+ "text": "(\n event: MouseEvent | KeyboardEvent,\n ) => void"
316
496
  },
317
497
  "privacy": "private"
318
498
  },
499
+ {
500
+ "kind": "field",
501
+ "name": "__dispatchClick"
502
+ },
503
+ {
504
+ "kind": "method",
505
+ "name": "__renderDisabledReason"
506
+ },
507
+ {
508
+ "kind": "field",
509
+ "name": "__handlePress"
510
+ },
511
+ {
512
+ "kind": "method",
513
+ "name": "__isLink",
514
+ "privacy": "private"
515
+ },
516
+ {
517
+ "kind": "method",
518
+ "name": "getVariant"
519
+ },
520
+ {
521
+ "kind": "method",
522
+ "name": "renderButtonContent"
523
+ }
524
+ ],
525
+ "attributes": [
526
+ {
527
+ "name": "htmlType",
528
+ "type": {
529
+ "text": "'button' | 'submit' | 'reset'"
530
+ },
531
+ "default": "'button'",
532
+ "fieldName": "htmlType"
533
+ },
534
+ {
535
+ "name": "variant",
536
+ "type": {
537
+ "text": "| 'elevated'\n | 'filled'\n | 'tonal'\n | 'outlined'\n | 'text'\n | 'neo'"
538
+ },
539
+ "default": "'filled'",
540
+ "description": "The visual style of the button.\n\n Possible variant values:\n`\"filled\"` is a filled button.\n`\"outlined\"` is an outlined button.\n`\"text\"` is a transparent button.\n`\"tonal\"` is a light color button.",
541
+ "fieldName": "variant"
542
+ },
543
+ {
544
+ "name": "size",
545
+ "type": {
546
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl'"
547
+ },
548
+ "default": "'sm'",
549
+ "description": "Button size.\nPossible values are `\"sm\"`, `\"md\"`, `\"lg\"`. Defaults to `\"md\"`.",
550
+ "fieldName": "size"
551
+ },
552
+ {
553
+ "name": "disabled",
554
+ "type": {
555
+ "text": "boolean"
556
+ },
557
+ "default": "false",
558
+ "description": "If true, the user cannot interact with the button. Defaults to `false`.",
559
+ "fieldName": "disabled"
560
+ },
561
+ {
562
+ "name": "softDisabled",
563
+ "type": {
564
+ "text": "boolean"
565
+ },
566
+ "default": "false",
567
+ "description": "If true, the user cannot interact with the button and the button is visually styled as disabled. But the button is still focusable. Defaults to `false`.",
568
+ "fieldName": "softDisabled"
569
+ },
570
+ {
571
+ "name": "disabledReason",
572
+ "type": {
573
+ "text": "string"
574
+ },
575
+ "default": "''",
576
+ "description": "If button is disabled, the reason why it is disabled.",
577
+ "fieldName": "disabledReason"
578
+ },
579
+ {
580
+ "name": "color",
581
+ "type": {
582
+ "text": "| 'primary'\n | 'secondary'\n | 'success'\n | 'danger'\n | 'warning'\n | 'white'\n | 'black'"
583
+ },
584
+ "default": "'primary'",
585
+ "description": "Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.",
586
+ "fieldName": "color"
587
+ },
588
+ {
589
+ "name": "iconAlign",
590
+ "type": {
591
+ "text": "'start' | 'end'"
592
+ },
593
+ "default": "'end'",
594
+ "description": "Icon alignment.\nPossible values are `\"start\"`, `\"end\"`. Defaults to `\"end\"`.",
595
+ "fieldName": "iconAlign"
596
+ },
597
+ {
598
+ "name": "href",
599
+ "type": {
600
+ "text": "string | undefined"
601
+ },
602
+ "description": "Hyperlink to navigate to on click.",
603
+ "fieldName": "href"
604
+ },
605
+ {
606
+ "name": "configAria",
607
+ "type": {
608
+ "text": "{ [key: string]: any } | undefined"
609
+ },
610
+ "fieldName": "configAria"
611
+ },
612
+ {
613
+ "name": "target",
614
+ "type": {
615
+ "text": "string"
616
+ },
617
+ "default": "'_self'",
618
+ "description": "Sets or retrieves the window or frame at which to target content.",
619
+ "fieldName": "target"
620
+ },
621
+ {
622
+ "name": "selected",
623
+ "type": {
624
+ "text": "boolean"
625
+ },
626
+ "default": "false",
627
+ "fieldName": "selected"
628
+ },
629
+ {
630
+ "name": "throttleDelay",
631
+ "type": {
632
+ "text": "number"
633
+ },
634
+ "default": "200",
635
+ "description": "Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.",
636
+ "fieldName": "throttleDelay"
637
+ }
638
+ ],
639
+ "superclass": {
640
+ "name": "LitElement",
641
+ "package": "lit"
642
+ },
643
+ "tagName": "p-button",
644
+ "customElement": true,
645
+ "summary": "Buttons help people initiate actions, from sending an email, to sharing a document, to liking a post.",
646
+ "rawTag": {
647
+ "name": "button",
648
+ "description": ""
649
+ }
650
+ }
651
+ },
652
+ {
653
+ "rawTag": "clock",
654
+ "label": "Clock",
655
+ "jsdoc": {
656
+ "@label": [
657
+ {
658
+ "kind": "text",
659
+ "text": "Clock"
660
+ }
661
+ ],
662
+ "@tag": [
663
+ {
664
+ "kind": "text",
665
+ "text": "p-clock"
666
+ }
667
+ ],
668
+ "@rawTag": [
669
+ {
670
+ "kind": "text",
671
+ "text": "clock"
672
+ }
673
+ ],
674
+ "@summary": [
675
+ {
676
+ "kind": "text",
677
+ "text": "Displays the current time in a given timezone."
678
+ }
679
+ ],
680
+ "@overview": [
681
+ {
682
+ "kind": "text",
683
+ "text": "- Clocks are used to display the current time in a specified timezone.\r\n - They can be displayed in various formats, including 12-hour and 24-hour time."
684
+ }
685
+ ],
686
+ "@example": [
687
+ {
688
+ "kind": "code",
689
+ "text": "```html\r\n<p-clock></p-clock>\r\n```"
690
+ }
691
+ ],
692
+ "@tags": [
693
+ {
694
+ "kind": "text",
695
+ "text": "display"
696
+ }
697
+ ]
698
+ },
699
+ "customElement": {
700
+ "kind": "class",
701
+ "description": "",
702
+ "name": "Clock",
703
+ "members": [
704
+ {
705
+ "kind": "field",
706
+ "name": "clockController",
707
+ "default": "new ClockController(this, 100)"
708
+ },
709
+ {
710
+ "kind": "field",
711
+ "name": "timezone",
712
+ "type": {
713
+ "text": "string | undefined"
714
+ },
715
+ "attribute": "timezone"
716
+ },
319
717
  {
320
718
  "kind": "method",
321
- "name": "__updateCurrentTime"
719
+ "name": "__formatDate",
720
+ "parameters": [
721
+ {
722
+ "name": "date",
723
+ "type": {
724
+ "text": "Date"
725
+ }
726
+ }
727
+ ]
322
728
  }
323
729
  ],
324
730
  "attributes": [
@@ -428,19 +834,6 @@
428
834
  "text": "boolean"
429
835
  },
430
836
  "default": "false"
431
- },
432
- {
433
- "kind": "method",
434
- "name": "#handleSlotChange",
435
- "privacy": "private",
436
- "parameters": [
437
- {
438
- "name": "event",
439
- "type": {
440
- "text": "{ target: any }"
441
- }
442
- }
443
- ]
444
837
  }
445
838
  ],
446
839
  "attributes": [
@@ -466,6 +859,168 @@
466
859
  }
467
860
  }
468
861
  },
862
+ {
863
+ "rawTag": "elevation",
864
+ "label": "Elevation",
865
+ "jsdoc": {
866
+ "@label": [
867
+ {
868
+ "kind": "text",
869
+ "text": "Elevation"
870
+ }
871
+ ],
872
+ "@tag": [
873
+ {
874
+ "kind": "text",
875
+ "text": "p-elevation"
876
+ }
877
+ ],
878
+ "@rawTag": [
879
+ {
880
+ "kind": "text",
881
+ "text": "elevation"
882
+ }
883
+ ],
884
+ "@summary": [
885
+ {
886
+ "kind": "text",
887
+ "text": "Adds elevation to an element."
888
+ }
889
+ ],
890
+ "@overview": [
891
+ {
892
+ "kind": "text",
893
+ "text": "- Elevation adds a shadow effect to an element to give it depth.\n - It can be used to create a sense of hierarchy or to draw attention to a particular element."
894
+ }
895
+ ],
896
+ "@cssprop": [
897
+ {
898
+ "kind": "text",
899
+ "text": "--elevation-color - Controls the color of the shadow."
900
+ }
901
+ ],
902
+ "@example": [
903
+ {
904
+ "kind": "code",
905
+ "text": "```html\n <div style=\"position: relative; padding: var(--spacing-200); border-radius: var(--shape-corner-small);\">\n <p-elevation style='--elevation-level: 2'></p-elevation>\n Level 2\n </div>\n```"
906
+ }
907
+ ],
908
+ "@tags": [
909
+ {
910
+ "kind": "text",
911
+ "text": "display"
912
+ }
913
+ ]
914
+ },
915
+ "customElement": {
916
+ "kind": "class",
917
+ "description": "",
918
+ "name": "Elevation",
919
+ "cssProperties": [
920
+ {
921
+ "description": "Controls the elevation level of the shadow.",
922
+ "name": "--elevation-level"
923
+ },
924
+ {
925
+ "description": "Controls the color of the shadow.",
926
+ "name": "--elevation-color"
927
+ }
928
+ ],
929
+ "members": [],
930
+ "superclass": {
931
+ "name": "LitElement",
932
+ "package": "lit"
933
+ },
934
+ "tagName": "p-elevation",
935
+ "customElement": true,
936
+ "summary": "Adds elevation to an element.",
937
+ "rawTag": {
938
+ "name": "elevation",
939
+ "description": ""
940
+ }
941
+ }
942
+ },
943
+ {
944
+ "rawTag": "elevation",
945
+ "label": "Elevation",
946
+ "jsdoc": {
947
+ "@label": [
948
+ {
949
+ "kind": "text",
950
+ "text": "Elevation"
951
+ }
952
+ ],
953
+ "@tag": [
954
+ {
955
+ "kind": "text",
956
+ "text": "p-elevation"
957
+ }
958
+ ],
959
+ "@rawTag": [
960
+ {
961
+ "kind": "text",
962
+ "text": "elevation"
963
+ }
964
+ ],
965
+ "@summary": [
966
+ {
967
+ "kind": "text",
968
+ "text": "Adds elevation to an element."
969
+ }
970
+ ],
971
+ "@overview": [
972
+ {
973
+ "kind": "text",
974
+ "text": "- Elevation adds a shadow effect to an element to give it depth.\n - It can be used to create a sense of hierarchy or to draw attention to a particular element."
975
+ }
976
+ ],
977
+ "@cssprop": [
978
+ {
979
+ "kind": "text",
980
+ "text": "--elevation-color - Controls the color of the shadow."
981
+ }
982
+ ],
983
+ "@example": [
984
+ {
985
+ "kind": "code",
986
+ "text": "```html\n <div style=\"position: relative; padding: var(--spacing-200); border-radius: var(--shape-corner-small);\">\n <p-elevation style='--elevation-level: 2'></p-elevation>\n Level 2\n </div>\n```"
987
+ }
988
+ ],
989
+ "@tags": [
990
+ {
991
+ "kind": "text",
992
+ "text": "display"
993
+ }
994
+ ]
995
+ },
996
+ "customElement": {
997
+ "kind": "class",
998
+ "description": "",
999
+ "name": "Elevation",
1000
+ "cssProperties": [
1001
+ {
1002
+ "description": "Controls the elevation level of the shadow.",
1003
+ "name": "--elevation-level"
1004
+ },
1005
+ {
1006
+ "description": "Controls the color of the shadow.",
1007
+ "name": "--elevation-color"
1008
+ }
1009
+ ],
1010
+ "members": [],
1011
+ "superclass": {
1012
+ "name": "LitElement",
1013
+ "package": "lit"
1014
+ },
1015
+ "tagName": "p-elevation",
1016
+ "customElement": true,
1017
+ "summary": "Adds elevation to an element.",
1018
+ "rawTag": {
1019
+ "name": "elevation",
1020
+ "description": ""
1021
+ }
1022
+ }
1023
+ },
469
1024
  {
470
1025
  "rawTag": "icon",
471
1026
  "label": "Icon",
@@ -509,7 +1064,7 @@
509
1064
  "@example": [
510
1065
  {
511
1066
  "kind": "code",
512
- "text": "```html\n<p-icon name=\"home\"></p-icon>\n```"
1067
+ "text": "```html\r\n<p-icon name=\"home\"></p-icon>\r\n```"
513
1068
  }
514
1069
  ]
515
1070
  },
@@ -535,7 +1090,7 @@
535
1090
  "type": {
536
1091
  "text": "string | undefined"
537
1092
  },
538
- "description": "The identifier for the icon.\nThis name corresponds to a specific SVG asset in the icon set.",
1093
+ "description": "The identifier for the icon.\r\nThis name corresponds to a specific SVG asset in the icon set.",
539
1094
  "attribute": "name",
540
1095
  "reflects": true
541
1096
  },
@@ -552,7 +1107,7 @@
552
1107
  "kind": "field",
553
1108
  "name": "provider",
554
1109
  "type": {
555
- "text": "'material-symbols' | 'carbon'"
1110
+ "text": "IconProvider"
556
1111
  },
557
1112
  "default": "'material-symbols'",
558
1113
  "attribute": "provider"
@@ -621,7 +1176,7 @@
621
1176
  "type": {
622
1177
  "text": "string | undefined"
623
1178
  },
624
- "description": "The identifier for the icon.\nThis name corresponds to a specific SVG asset in the icon set.",
1179
+ "description": "The identifier for the icon.\r\nThis name corresponds to a specific SVG asset in the icon set.",
625
1180
  "fieldName": "name"
626
1181
  },
627
1182
  {
@@ -634,7 +1189,7 @@
634
1189
  {
635
1190
  "name": "provider",
636
1191
  "type": {
637
- "text": "'material-symbols' | 'carbon'"
1192
+ "text": "IconProvider"
638
1193
  },
639
1194
  "default": "'material-symbols'",
640
1195
  "fieldName": "provider"