@pine-ds/core 0.0.2-alpha.0

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 (665) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/index-13500e25.js +2468 -0
  3. package/dist/cjs/index-13500e25.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +4 -0
  5. package/dist/cjs/index.cjs.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/cjs/loader.cjs.js.map +1 -0
  8. package/dist/cjs/pds-avatar.cjs.entry.js +70 -0
  9. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -0
  10. package/dist/cjs/pds-button.cjs.entry.js +57 -0
  11. package/dist/cjs/pds-button.cjs.entry.js.map +1 -0
  12. package/dist/cjs/pds-checkbox.cjs.entry.js +57 -0
  13. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
  14. package/dist/cjs/pds-chip.cjs.entry.js +49 -0
  15. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -0
  16. package/dist/cjs/pds-copytext.cjs.entry.js +68 -0
  17. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -0
  18. package/dist/cjs/pds-divider.cjs.entry.js +35 -0
  19. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -0
  20. package/dist/cjs/pds-icon.cjs.entry.js +277 -0
  21. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
  22. package/dist/cjs/pds-image.cjs.entry.js +31 -0
  23. package/dist/cjs/pds-image.cjs.entry.js.map +1 -0
  24. package/dist/cjs/pds-input.cjs.entry.js +44 -0
  25. package/dist/cjs/pds-input.cjs.entry.js.map +1 -0
  26. package/dist/cjs/pds-label-71ea2cad.js +44 -0
  27. package/dist/cjs/pds-label-71ea2cad.js.map +1 -0
  28. package/dist/cjs/pds-link.cjs.entry.js +37 -0
  29. package/dist/cjs/pds-link.cjs.entry.js.map +1 -0
  30. package/dist/cjs/pds-progress.cjs.entry.js +27 -0
  31. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -0
  32. package/dist/cjs/pds-radio.cjs.entry.js +53 -0
  33. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -0
  34. package/dist/cjs/pds-sortable-item.cjs.entry.js +24 -0
  35. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -0
  36. package/dist/cjs/pds-sortable.cjs.entry.js +2706 -0
  37. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -0
  38. package/dist/cjs/pds-switch.cjs.entry.js +55 -0
  39. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -0
  40. package/dist/cjs/pds-tab.cjs.entry.js +33 -0
  41. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -0
  42. package/dist/cjs/pds-tabpanel.cjs.entry.js +26 -0
  43. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -0
  44. package/dist/cjs/pds-tabs.cjs.entry.js +98 -0
  45. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -0
  46. package/dist/cjs/pds-textarea.cjs.entry.js +54 -0
  47. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -0
  48. package/dist/cjs/pds-tooltip.cjs.entry.js +151 -0
  49. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -0
  50. package/dist/cjs/pine-core.cjs.js +25 -0
  51. package/dist/cjs/pine-core.cjs.js.map +1 -0
  52. package/dist/collection/collection-manifest.json +37 -0
  53. package/dist/collection/components/_internal/pds-label/pds-label.js +7 -0
  54. package/dist/collection/components/_internal/pds-label/pds-label.js.map +1 -0
  55. package/dist/collection/components/pds-avatar/pds-avatar.css +59 -0
  56. package/dist/collection/components/pds-avatar/pds-avatar.js +217 -0
  57. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -0
  58. package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +65 -0
  59. package/dist/collection/components/pds-button/pds-button.css +122 -0
  60. package/dist/collection/components/pds-button/pds-button.js +187 -0
  61. package/dist/collection/components/pds-button/pds-button.js.map +1 -0
  62. package/dist/collection/components/pds-button/stories/pds-button.stories.js +65 -0
  63. package/dist/collection/components/pds-checkbox/pds-checkbox.css +106 -0
  64. package/dist/collection/components/pds-checkbox/pds-checkbox.js +266 -0
  65. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -0
  66. package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +80 -0
  67. package/dist/collection/components/pds-chip/pds-chip.css +245 -0
  68. package/dist/collection/components/pds-chip/pds-chip.js +188 -0
  69. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -0
  70. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +79 -0
  71. package/dist/collection/components/pds-copytext/pds-copytext.css +85 -0
  72. package/dist/collection/components/pds-copytext/pds-copytext.js +186 -0
  73. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -0
  74. package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +57 -0
  75. package/dist/collection/components/pds-divider/pds-divider.css +92 -0
  76. package/dist/collection/components/pds-divider/pds-divider.js +94 -0
  77. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -0
  78. package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +25 -0
  79. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +16 -0
  80. package/dist/collection/components/pds-image/pds-image.css +13 -0
  81. package/dist/collection/components/pds-image/pds-image.js +173 -0
  82. package/dist/collection/components/pds-image/pds-image.js.map +1 -0
  83. package/dist/collection/components/pds-image/stories/pds-image.stories.js +35 -0
  84. package/dist/collection/components/pds-input/pds-input.css +88 -0
  85. package/dist/collection/components/pds-input/pds-input.js +279 -0
  86. package/dist/collection/components/pds-input/pds-input.js.map +1 -0
  87. package/dist/collection/components/pds-input/stories/pds-input.stories.js +110 -0
  88. package/dist/collection/components/pds-link/pds-link.css +67 -0
  89. package/dist/collection/components/pds-link/pds-link.js +138 -0
  90. package/dist/collection/components/pds-link/pds-link.js.map +1 -0
  91. package/dist/collection/components/pds-link/stories/pds-link.stories.js +49 -0
  92. package/dist/collection/components/pds-progress/pds-progress.css +77 -0
  93. package/dist/collection/components/pds-progress/pds-progress.js +148 -0
  94. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -0
  95. package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +65 -0
  96. package/dist/collection/components/pds-radio/pds-radio.css +101 -0
  97. package/dist/collection/components/pds-radio/pds-radio.js +261 -0
  98. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -0
  99. package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +71 -0
  100. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +63 -0
  101. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +90 -0
  102. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -0
  103. package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +24 -0
  104. package/dist/collection/components/pds-sortable/pds-sortable.css +10 -0
  105. package/dist/collection/components/pds-sortable/pds-sortable.js +150 -0
  106. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -0
  107. package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +130 -0
  108. package/dist/collection/components/pds-switch/pds-switch.css +134 -0
  109. package/dist/collection/components/pds-switch/pds-switch.js +277 -0
  110. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -0
  111. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +102 -0
  112. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +158 -0
  113. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +154 -0
  114. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +1 -0
  115. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +12 -0
  116. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +107 -0
  117. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +1 -0
  118. package/dist/collection/components/pds-tabs/pds-tabs.css +33 -0
  119. package/dist/collection/components/pds-tabs/pds-tabs.js +209 -0
  120. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -0
  121. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +63 -0
  122. package/dist/collection/components/pds-textarea/pds-textarea.css +84 -0
  123. package/dist/collection/components/pds-textarea/pds-textarea.js +303 -0
  124. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -0
  125. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +111 -0
  126. package/dist/collection/components/pds-textarea/textarea-interface.js +2 -0
  127. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -0
  128. package/dist/collection/components/pds-tooltip/pds-tooltip.css +143 -0
  129. package/dist/collection/components/pds-tooltip/pds-tooltip.js +287 -0
  130. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -0
  131. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +114 -0
  132. package/dist/collection/global/pine-ui-global.js +2 -0
  133. package/dist/collection/global/pine-ui-global.js.map +1 -0
  134. package/dist/collection/index.js +2 -0
  135. package/dist/collection/index.js.map +1 -0
  136. package/dist/collection/stories/_helpers/index.js +15 -0
  137. package/dist/collection/stories/_helpers/index.js.map +1 -0
  138. package/dist/collection/utils/form.js +28 -0
  139. package/dist/collection/utils/form.js.map +1 -0
  140. package/dist/collection/utils/overlay.js +68 -0
  141. package/dist/collection/utils/overlay.js.map +1 -0
  142. package/dist/collection/utils/types.js +2 -0
  143. package/dist/collection/utils/types.js.map +1 -0
  144. package/dist/collection/utils/utils.js +7 -0
  145. package/dist/collection/utils/utils.js.map +1 -0
  146. package/dist/docs.d.ts +421 -0
  147. package/dist/docs.json +3718 -0
  148. package/dist/esm/index-a58668b3.js +2438 -0
  149. package/dist/esm/index-a58668b3.js.map +1 -0
  150. package/dist/esm/index.js +3 -0
  151. package/dist/esm/index.js.map +1 -0
  152. package/dist/esm/loader.js +11 -0
  153. package/dist/esm/loader.js.map +1 -0
  154. package/dist/esm/pds-avatar.entry.js +66 -0
  155. package/dist/esm/pds-avatar.entry.js.map +1 -0
  156. package/dist/esm/pds-button.entry.js +53 -0
  157. package/dist/esm/pds-button.entry.js.map +1 -0
  158. package/dist/esm/pds-checkbox.entry.js +53 -0
  159. package/dist/esm/pds-checkbox.entry.js.map +1 -0
  160. package/dist/esm/pds-chip.entry.js +45 -0
  161. package/dist/esm/pds-chip.entry.js.map +1 -0
  162. package/dist/esm/pds-copytext.entry.js +64 -0
  163. package/dist/esm/pds-copytext.entry.js.map +1 -0
  164. package/dist/esm/pds-divider.entry.js +31 -0
  165. package/dist/esm/pds-divider.entry.js.map +1 -0
  166. package/dist/esm/pds-icon.entry.js +273 -0
  167. package/dist/esm/pds-icon.entry.js.map +1 -0
  168. package/dist/esm/pds-image.entry.js +27 -0
  169. package/dist/esm/pds-image.entry.js.map +1 -0
  170. package/dist/esm/pds-input.entry.js +40 -0
  171. package/dist/esm/pds-input.entry.js.map +1 -0
  172. package/dist/esm/pds-label-a26dd876.js +39 -0
  173. package/dist/esm/pds-label-a26dd876.js.map +1 -0
  174. package/dist/esm/pds-link.entry.js +33 -0
  175. package/dist/esm/pds-link.entry.js.map +1 -0
  176. package/dist/esm/pds-progress.entry.js +23 -0
  177. package/dist/esm/pds-progress.entry.js.map +1 -0
  178. package/dist/esm/pds-radio.entry.js +49 -0
  179. package/dist/esm/pds-radio.entry.js.map +1 -0
  180. package/dist/esm/pds-sortable-item.entry.js +20 -0
  181. package/dist/esm/pds-sortable-item.entry.js.map +1 -0
  182. package/dist/esm/pds-sortable.entry.js +2702 -0
  183. package/dist/esm/pds-sortable.entry.js.map +1 -0
  184. package/dist/esm/pds-switch.entry.js +51 -0
  185. package/dist/esm/pds-switch.entry.js.map +1 -0
  186. package/dist/esm/pds-tab.entry.js +29 -0
  187. package/dist/esm/pds-tab.entry.js.map +1 -0
  188. package/dist/esm/pds-tabpanel.entry.js +22 -0
  189. package/dist/esm/pds-tabpanel.entry.js.map +1 -0
  190. package/dist/esm/pds-tabs.entry.js +94 -0
  191. package/dist/esm/pds-tabs.entry.js.map +1 -0
  192. package/dist/esm/pds-textarea.entry.js +50 -0
  193. package/dist/esm/pds-textarea.entry.js.map +1 -0
  194. package/dist/esm/pds-tooltip.entry.js +147 -0
  195. package/dist/esm/pds-tooltip.entry.js.map +1 -0
  196. package/dist/esm/pine-core.js +20 -0
  197. package/dist/esm/pine-core.js.map +1 -0
  198. package/dist/esm/polyfills/core-js.js +11 -0
  199. package/dist/esm/polyfills/dom.js +79 -0
  200. package/dist/esm/polyfills/es5-html-element.js +1 -0
  201. package/dist/esm/polyfills/index.js +34 -0
  202. package/dist/esm/polyfills/system.js +6 -0
  203. package/dist/esm-es5/index-a58668b3.js +3 -0
  204. package/dist/esm-es5/index-a58668b3.js.map +1 -0
  205. package/dist/esm-es5/index.js +2 -0
  206. package/dist/esm-es5/index.js.map +1 -0
  207. package/dist/esm-es5/loader.js +2 -0
  208. package/dist/esm-es5/loader.js.map +1 -0
  209. package/dist/esm-es5/pds-avatar.entry.js +2 -0
  210. package/dist/esm-es5/pds-avatar.entry.js.map +1 -0
  211. package/dist/esm-es5/pds-button.entry.js +2 -0
  212. package/dist/esm-es5/pds-button.entry.js.map +1 -0
  213. package/dist/esm-es5/pds-checkbox.entry.js +2 -0
  214. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
  215. package/dist/esm-es5/pds-chip.entry.js +2 -0
  216. package/dist/esm-es5/pds-chip.entry.js.map +1 -0
  217. package/dist/esm-es5/pds-copytext.entry.js +2 -0
  218. package/dist/esm-es5/pds-copytext.entry.js.map +1 -0
  219. package/dist/esm-es5/pds-divider.entry.js +2 -0
  220. package/dist/esm-es5/pds-divider.entry.js.map +1 -0
  221. package/dist/esm-es5/pds-icon.entry.js +2 -0
  222. package/dist/esm-es5/pds-icon.entry.js.map +1 -0
  223. package/dist/esm-es5/pds-image.entry.js +2 -0
  224. package/dist/esm-es5/pds-image.entry.js.map +1 -0
  225. package/dist/esm-es5/pds-input.entry.js +2 -0
  226. package/dist/esm-es5/pds-input.entry.js.map +1 -0
  227. package/dist/esm-es5/pds-label-a26dd876.js +2 -0
  228. package/dist/esm-es5/pds-label-a26dd876.js.map +1 -0
  229. package/dist/esm-es5/pds-link.entry.js +2 -0
  230. package/dist/esm-es5/pds-link.entry.js.map +1 -0
  231. package/dist/esm-es5/pds-progress.entry.js +2 -0
  232. package/dist/esm-es5/pds-progress.entry.js.map +1 -0
  233. package/dist/esm-es5/pds-radio.entry.js +2 -0
  234. package/dist/esm-es5/pds-radio.entry.js.map +1 -0
  235. package/dist/esm-es5/pds-sortable-item.entry.js +2 -0
  236. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -0
  237. package/dist/esm-es5/pds-sortable.entry.js +8 -0
  238. package/dist/esm-es5/pds-sortable.entry.js.map +1 -0
  239. package/dist/esm-es5/pds-switch.entry.js +2 -0
  240. package/dist/esm-es5/pds-switch.entry.js.map +1 -0
  241. package/dist/esm-es5/pds-tab.entry.js +2 -0
  242. package/dist/esm-es5/pds-tab.entry.js.map +1 -0
  243. package/dist/esm-es5/pds-tabpanel.entry.js +2 -0
  244. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -0
  245. package/dist/esm-es5/pds-tabs.entry.js +2 -0
  246. package/dist/esm-es5/pds-tabs.entry.js.map +1 -0
  247. package/dist/esm-es5/pds-textarea.entry.js +2 -0
  248. package/dist/esm-es5/pds-textarea.entry.js.map +1 -0
  249. package/dist/esm-es5/pds-tooltip.entry.js +2 -0
  250. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -0
  251. package/dist/esm-es5/pine-core.js +2 -0
  252. package/dist/esm-es5/pine-core.js.map +1 -0
  253. package/dist/index.cjs.js +1 -0
  254. package/dist/index.js +1 -0
  255. package/dist/pine-core/index.esm.js +2 -0
  256. package/dist/pine-core/index.esm.js.map +1 -0
  257. package/dist/pine-core/p-0a776a7b.entry.js +2 -0
  258. package/dist/pine-core/p-0a776a7b.entry.js.map +1 -0
  259. package/dist/pine-core/p-0adb4b48.entry.js +2 -0
  260. package/dist/pine-core/p-0adb4b48.entry.js.map +1 -0
  261. package/dist/pine-core/p-0c26a00d.entry.js +2 -0
  262. package/dist/pine-core/p-0c26a00d.entry.js.map +1 -0
  263. package/dist/pine-core/p-1c0ffcab.entry.js +2 -0
  264. package/dist/pine-core/p-1c0ffcab.entry.js.map +1 -0
  265. package/dist/pine-core/p-22bd3102.system.entry.js +9 -0
  266. package/dist/pine-core/p-22bd3102.system.entry.js.map +1 -0
  267. package/dist/pine-core/p-22dd8116.entry.js +2 -0
  268. package/dist/pine-core/p-22dd8116.entry.js.map +1 -0
  269. package/dist/pine-core/p-23fb6af2.system.entry.js +2 -0
  270. package/dist/pine-core/p-23fb6af2.system.entry.js.map +1 -0
  271. package/dist/pine-core/p-24077dcd.entry.js +2 -0
  272. package/dist/pine-core/p-24077dcd.entry.js.map +1 -0
  273. package/dist/pine-core/p-27fd7f08.system.entry.js +2 -0
  274. package/dist/pine-core/p-27fd7f08.system.entry.js.map +1 -0
  275. package/dist/pine-core/p-331cbf1d.entry.js +2 -0
  276. package/dist/pine-core/p-331cbf1d.entry.js.map +1 -0
  277. package/dist/pine-core/p-3386bfe1.system.entry.js +2 -0
  278. package/dist/pine-core/p-3386bfe1.system.entry.js.map +1 -0
  279. package/dist/pine-core/p-401cd4bc.entry.js +2 -0
  280. package/dist/pine-core/p-401cd4bc.entry.js.map +1 -0
  281. package/dist/pine-core/p-4a804680.entry.js +2 -0
  282. package/dist/pine-core/p-4a804680.entry.js.map +1 -0
  283. package/dist/pine-core/p-4fc42ff3.system.entry.js +2 -0
  284. package/dist/pine-core/p-4fc42ff3.system.entry.js.map +1 -0
  285. package/dist/pine-core/p-50ea2036.system.js +2 -0
  286. package/dist/pine-core/p-50ea2036.system.js.map +1 -0
  287. package/dist/pine-core/p-5b37a4a2.system.entry.js +2 -0
  288. package/dist/pine-core/p-5b37a4a2.system.entry.js.map +1 -0
  289. package/dist/pine-core/p-643f5378.entry.js +2 -0
  290. package/dist/pine-core/p-643f5378.entry.js.map +1 -0
  291. package/dist/pine-core/p-669d948a.system.entry.js +2 -0
  292. package/dist/pine-core/p-669d948a.system.entry.js.map +1 -0
  293. package/dist/pine-core/p-73262287.system.entry.js +2 -0
  294. package/dist/pine-core/p-73262287.system.entry.js.map +1 -0
  295. package/dist/pine-core/p-79d7e0b1.system.entry.js +2 -0
  296. package/dist/pine-core/p-79d7e0b1.system.entry.js.map +1 -0
  297. package/dist/pine-core/p-7bc01826.entry.js +2 -0
  298. package/dist/pine-core/p-7bc01826.entry.js.map +1 -0
  299. package/dist/pine-core/p-7fcd5f0b.entry.js +8 -0
  300. package/dist/pine-core/p-7fcd5f0b.entry.js.map +1 -0
  301. package/dist/pine-core/p-85f6a94e.system.entry.js +2 -0
  302. package/dist/pine-core/p-85f6a94e.system.entry.js.map +1 -0
  303. package/dist/pine-core/p-8f62c812.entry.js +2 -0
  304. package/dist/pine-core/p-8f62c812.entry.js.map +1 -0
  305. package/dist/pine-core/p-930ab8a3.system.entry.js +2 -0
  306. package/dist/pine-core/p-930ab8a3.system.entry.js.map +1 -0
  307. package/dist/pine-core/p-938886d8.system.entry.js +2 -0
  308. package/dist/pine-core/p-938886d8.system.entry.js.map +1 -0
  309. package/dist/pine-core/p-97cb4285.entry.js +2 -0
  310. package/dist/pine-core/p-97cb4285.entry.js.map +1 -0
  311. package/dist/pine-core/p-abdca153.js +3 -0
  312. package/dist/pine-core/p-abdca153.js.map +1 -0
  313. package/dist/pine-core/p-ac31a7c8.system.entry.js +2 -0
  314. package/dist/pine-core/p-ac31a7c8.system.entry.js.map +1 -0
  315. package/dist/pine-core/p-af75cc15.entry.js +2 -0
  316. package/dist/pine-core/p-af75cc15.entry.js.map +1 -0
  317. package/dist/pine-core/p-b17b818b.entry.js +2 -0
  318. package/dist/pine-core/p-b17b818b.entry.js.map +1 -0
  319. package/dist/pine-core/p-b79a8b07.entry.js +2 -0
  320. package/dist/pine-core/p-b79a8b07.entry.js.map +1 -0
  321. package/dist/pine-core/p-bce2d5b5.system.entry.js +2 -0
  322. package/dist/pine-core/p-bce2d5b5.system.entry.js.map +1 -0
  323. package/dist/pine-core/p-bff583bd.system.js +2 -0
  324. package/dist/pine-core/p-bff583bd.system.js.map +1 -0
  325. package/dist/pine-core/p-c0f9dbe1.system.entry.js +2 -0
  326. package/dist/pine-core/p-c0f9dbe1.system.entry.js.map +1 -0
  327. package/dist/pine-core/p-c4dbae0e.system.js +2 -0
  328. package/dist/pine-core/p-c4dbae0e.system.js.map +1 -0
  329. package/dist/pine-core/p-c6d878f8.entry.js +2 -0
  330. package/dist/pine-core/p-c6d878f8.entry.js.map +1 -0
  331. package/dist/pine-core/p-c8a41b43.system.entry.js +2 -0
  332. package/dist/pine-core/p-c8a41b43.system.entry.js.map +1 -0
  333. package/dist/pine-core/p-d3e173ea.system.entry.js +2 -0
  334. package/dist/pine-core/p-d3e173ea.system.entry.js.map +1 -0
  335. package/dist/pine-core/p-f09892d3.system.entry.js +2 -0
  336. package/dist/pine-core/p-f09892d3.system.entry.js.map +1 -0
  337. package/dist/pine-core/p-f168654a.entry.js +2 -0
  338. package/dist/pine-core/p-f168654a.entry.js.map +1 -0
  339. package/dist/pine-core/p-f1d7f16f.js +2 -0
  340. package/dist/pine-core/p-f1d7f16f.js.map +1 -0
  341. package/dist/pine-core/p-f2c3035d.system.entry.js +2 -0
  342. package/dist/pine-core/p-f2c3035d.system.entry.js.map +1 -0
  343. package/dist/pine-core/p-f3af6d74.system.entry.js +2 -0
  344. package/dist/pine-core/p-f3af6d74.system.entry.js.map +1 -0
  345. package/dist/pine-core/p-fa5d4e73.system.js +3 -0
  346. package/dist/pine-core/p-fa5d4e73.system.js.map +1 -0
  347. package/dist/pine-core/p-fba29e90.entry.js +2 -0
  348. package/dist/pine-core/p-fba29e90.entry.js.map +1 -0
  349. package/dist/pine-core/pine-core.css +1 -0
  350. package/dist/pine-core/pine-core.esm.js +2 -0
  351. package/dist/pine-core/pine-core.esm.js.map +1 -0
  352. package/dist/pine-core/pine-core.js +127 -0
  353. package/dist/pine-core/svg/access-key.svg +1 -0
  354. package/dist/pine-core/svg/add-circle.svg +1 -0
  355. package/dist/pine-core/svg/add-image.svg +1 -0
  356. package/dist/pine-core/svg/add-small.svg +1 -0
  357. package/dist/pine-core/svg/add.svg +1 -0
  358. package/dist/pine-core/svg/ai-sparkle.svg +1 -0
  359. package/dist/pine-core/svg/ai-writer-filled.svg +1 -0
  360. package/dist/pine-core/svg/ai-writer.svg +1 -0
  361. package/dist/pine-core/svg/align-center.svg +1 -0
  362. package/dist/pine-core/svg/align-justify.svg +1 -0
  363. package/dist/pine-core/svg/align-left.svg +1 -0
  364. package/dist/pine-core/svg/align-right.svg +1 -0
  365. package/dist/pine-core/svg/analytics-filled.svg +1 -0
  366. package/dist/pine-core/svg/analytics-outline.svg +1 -0
  367. package/dist/pine-core/svg/app-store.svg +1 -0
  368. package/dist/pine-core/svg/archive.svg +1 -0
  369. package/dist/pine-core/svg/arrow-corner.svg +1 -0
  370. package/dist/pine-core/svg/arrow-down.svg +1 -0
  371. package/dist/pine-core/svg/arrow-left.svg +1 -0
  372. package/dist/pine-core/svg/arrow-right.svg +1 -0
  373. package/dist/pine-core/svg/arrow-up.svg +1 -0
  374. package/dist/pine-core/svg/assessment.svg +1 -0
  375. package/dist/pine-core/svg/at-sign.svg +1 -0
  376. package/dist/pine-core/svg/attach.svg +1 -0
  377. package/dist/pine-core/svg/automations.svg +1 -0
  378. package/dist/pine-core/svg/ban.svg +1 -0
  379. package/dist/pine-core/svg/bank.svg +1 -0
  380. package/dist/pine-core/svg/bell.svg +1 -0
  381. package/dist/pine-core/svg/blog-filled.svg +1 -0
  382. package/dist/pine-core/svg/blog.svg +1 -0
  383. package/dist/pine-core/svg/bold.svg +1 -0
  384. package/dist/pine-core/svg/broadcast.svg +1 -0
  385. package/dist/pine-core/svg/calendar-date.svg +1 -0
  386. package/dist/pine-core/svg/calendar-schedule.svg +1 -0
  387. package/dist/pine-core/svg/calendar-simple.svg +1 -0
  388. package/dist/pine-core/svg/card-bw-amex.svg +1 -0
  389. package/dist/pine-core/svg/card-bw-apple-card.svg +1 -0
  390. package/dist/pine-core/svg/card-bw-diners-club.svg +1 -0
  391. package/dist/pine-core/svg/card-bw-discover.svg +1 -0
  392. package/dist/pine-core/svg/card-bw-gpay-card.svg +1 -0
  393. package/dist/pine-core/svg/card-bw-mastercard.svg +1 -0
  394. package/dist/pine-core/svg/card-bw-paypal.svg +1 -0
  395. package/dist/pine-core/svg/card-bw-stripe.svg +1 -0
  396. package/dist/pine-core/svg/card-bw-visa.svg +1 -0
  397. package/dist/pine-core/svg/card-update.svg +1 -0
  398. package/dist/pine-core/svg/caret-down.svg +1 -0
  399. package/dist/pine-core/svg/caret-left.svg +1 -0
  400. package/dist/pine-core/svg/caret-right.svg +1 -0
  401. package/dist/pine-core/svg/caret-up.svg +1 -0
  402. package/dist/pine-core/svg/cart-add.svg +1 -0
  403. package/dist/pine-core/svg/cart.svg +1 -0
  404. package/dist/pine-core/svg/certificate.svg +1 -0
  405. package/dist/pine-core/svg/check-circle-filled.svg +1 -0
  406. package/dist/pine-core/svg/check-circle.svg +1 -0
  407. package/dist/pine-core/svg/check.svg +1 -0
  408. package/dist/pine-core/svg/circle-1.svg +1 -0
  409. package/dist/pine-core/svg/circle-2.svg +1 -0
  410. package/dist/pine-core/svg/circle-3.svg +1 -0
  411. package/dist/pine-core/svg/circle-4.svg +1 -0
  412. package/dist/pine-core/svg/circle-5.svg +1 -0
  413. package/dist/pine-core/svg/circle-6.svg +1 -0
  414. package/dist/pine-core/svg/circle-7.svg +1 -0
  415. package/dist/pine-core/svg/circle-8.svg +1 -0
  416. package/dist/pine-core/svg/circle-9.svg +1 -0
  417. package/dist/pine-core/svg/clock.svg +1 -0
  418. package/dist/pine-core/svg/closed-captions.svg +1 -0
  419. package/dist/pine-core/svg/cloud-upload.svg +1 -0
  420. package/dist/pine-core/svg/code.svg +1 -0
  421. package/dist/pine-core/svg/color.svg +1 -0
  422. package/dist/pine-core/svg/columns.svg +1 -0
  423. package/dist/pine-core/svg/comment.svg +1 -0
  424. package/dist/pine-core/svg/connect.svg +1 -0
  425. package/dist/pine-core/svg/contact.svg +1 -0
  426. package/dist/pine-core/svg/contacts-filled.svg +1 -0
  427. package/dist/pine-core/svg/contacts-outline.svg +1 -0
  428. package/dist/pine-core/svg/conversation.svg +1 -0
  429. package/dist/pine-core/svg/copy.svg +1 -0
  430. package/dist/pine-core/svg/coupon.svg +1 -0
  431. package/dist/pine-core/svg/course.svg +1 -0
  432. package/dist/pine-core/svg/creator-studio-filled.svg +1 -0
  433. package/dist/pine-core/svg/creator-studio.svg +1 -0
  434. package/dist/pine-core/svg/credit-card.svg +1 -0
  435. package/dist/pine-core/svg/custom-field.svg +1 -0
  436. package/dist/pine-core/svg/customize.svg +1 -0
  437. package/dist/pine-core/svg/danger-filled.svg +1 -0
  438. package/dist/pine-core/svg/danger.svg +1 -0
  439. package/dist/pine-core/svg/dashboard-filled.svg +1 -0
  440. package/dist/pine-core/svg/dashboard-outline.svg +1 -0
  441. package/dist/pine-core/svg/delete-circle.svg +1 -0
  442. package/dist/pine-core/svg/delete-key.svg +1 -0
  443. package/dist/pine-core/svg/delete-x.svg +1 -0
  444. package/dist/pine-core/svg/dollar-sign.svg +1 -0
  445. package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -0
  446. package/dist/pine-core/svg/down-small.svg +1 -0
  447. package/dist/pine-core/svg/download.svg +1 -0
  448. package/dist/pine-core/svg/downsell.svg +1 -0
  449. package/dist/pine-core/svg/draft.svg +1 -0
  450. package/dist/pine-core/svg/drop.svg +1 -0
  451. package/dist/pine-core/svg/duplicate.svg +1 -0
  452. package/dist/pine-core/svg/email-activity.svg +1 -0
  453. package/dist/pine-core/svg/emoji.svg +1 -0
  454. package/dist/pine-core/svg/enlarge-vertical.svg +1 -0
  455. package/dist/pine-core/svg/enlarge.svg +1 -0
  456. package/dist/pine-core/svg/expand.svg +1 -0
  457. package/dist/pine-core/svg/facebook-2.svg +1 -0
  458. package/dist/pine-core/svg/facebook.svg +1 -0
  459. package/dist/pine-core/svg/favorite.svg +1 -0
  460. package/dist/pine-core/svg/feedback.svg +1 -0
  461. package/dist/pine-core/svg/file-money.svg +1 -0
  462. package/dist/pine-core/svg/file.svg +1 -0
  463. package/dist/pine-core/svg/filter.svg +1 -0
  464. package/dist/pine-core/svg/flag.svg +1 -0
  465. package/dist/pine-core/svg/flash-filled.svg +1 -0
  466. package/dist/pine-core/svg/flash.svg +1 -0
  467. package/dist/pine-core/svg/folder-group.svg +1 -0
  468. package/dist/pine-core/svg/folder.svg +1 -0
  469. package/dist/pine-core/svg/form-field.svg +1 -0
  470. package/dist/pine-core/svg/form-filled.svg +1 -0
  471. package/dist/pine-core/svg/form.svg +1 -0
  472. package/dist/pine-core/svg/fullscreen.svg +1 -0
  473. package/dist/pine-core/svg/funnel.svg +1 -0
  474. package/dist/pine-core/svg/grant-offer.svg +1 -0
  475. package/dist/pine-core/svg/handle-2-vertical.svg +1 -0
  476. package/dist/pine-core/svg/handle-2.svg +1 -0
  477. package/dist/pine-core/svg/handle.svg +1 -0
  478. package/dist/pine-core/svg/hashtag.svg +1 -0
  479. package/dist/pine-core/svg/hd-video.svg +1 -0
  480. package/dist/pine-core/svg/heading-large.svg +1 -0
  481. package/dist/pine-core/svg/heading-small.svg +1 -0
  482. package/dist/pine-core/svg/headset.svg +1 -0
  483. package/dist/pine-core/svg/help-filled.svg +1 -0
  484. package/dist/pine-core/svg/help-outline.svg +1 -0
  485. package/dist/pine-core/svg/home-alt.svg +1 -0
  486. package/dist/pine-core/svg/horizontal-line.svg +1 -0
  487. package/dist/pine-core/svg/image.svg +1 -0
  488. package/dist/pine-core/svg/info-circle-filled.svg +1 -0
  489. package/dist/pine-core/svg/info-circle.svg +1 -0
  490. package/dist/pine-core/svg/instagram.svg +1 -0
  491. package/dist/pine-core/svg/ios-battery.svg +1 -0
  492. package/dist/pine-core/svg/ios-data.svg +1 -0
  493. package/dist/pine-core/svg/ios-wifi.svg +1 -0
  494. package/dist/pine-core/svg/italic.svg +1 -0
  495. package/dist/pine-core/svg/kajabi-filled.svg +1 -0
  496. package/dist/pine-core/svg/kajabi-outlined.svg +1 -0
  497. package/dist/pine-core/svg/lab.svg +1 -0
  498. package/dist/pine-core/svg/launch.svg +1 -0
  499. package/dist/pine-core/svg/layout-grid.svg +1 -0
  500. package/dist/pine-core/svg/layout-list.svg +1 -0
  501. package/dist/pine-core/svg/left-small.svg +1 -0
  502. package/dist/pine-core/svg/linkedin.svg +1 -0
  503. package/dist/pine-core/svg/list-bullet.svg +1 -0
  504. package/dist/pine-core/svg/list-numbers.svg +1 -0
  505. package/dist/pine-core/svg/location.svg +1 -0
  506. package/dist/pine-core/svg/lock-alt.svg +1 -0
  507. package/dist/pine-core/svg/lock.svg +1 -0
  508. package/dist/pine-core/svg/logo-afterpay.svg +1 -0
  509. package/dist/pine-core/svg/loop.svg +1 -0
  510. package/dist/pine-core/svg/mail-filled.svg +1 -0
  511. package/dist/pine-core/svg/mail.svg +1 -0
  512. package/dist/pine-core/svg/map.svg +1 -0
  513. package/dist/pine-core/svg/mapped.svg +1 -0
  514. package/dist/pine-core/svg/margin-left.svg +1 -0
  515. package/dist/pine-core/svg/margin-right.svg +1 -0
  516. package/dist/pine-core/svg/marker-filled.svg +1 -0
  517. package/dist/pine-core/svg/marker.svg +1 -0
  518. package/dist/pine-core/svg/marketing-filled.svg +1 -0
  519. package/dist/pine-core/svg/marketing-outline.svg +1 -0
  520. package/dist/pine-core/svg/menu-2.svg +1 -0
  521. package/dist/pine-core/svg/menu-alt.svg +1 -0
  522. package/dist/pine-core/svg/menu.svg +1 -0
  523. package/dist/pine-core/svg/merge.svg +1 -0
  524. package/dist/pine-core/svg/microphone-off.svg +1 -0
  525. package/dist/pine-core/svg/microphone.svg +1 -0
  526. package/dist/pine-core/svg/move-left.svg +1 -0
  527. package/dist/pine-core/svg/move-right.svg +1 -0
  528. package/dist/pine-core/svg/multi-pay.svg +1 -0
  529. package/dist/pine-core/svg/newsletter.svg +1 -0
  530. package/dist/pine-core/svg/one-off-session.svg +1 -0
  531. package/dist/pine-core/svg/one-time.svg +1 -0
  532. package/dist/pine-core/svg/partners-filled.svg +1 -0
  533. package/dist/pine-core/svg/partners-outline.svg +1 -0
  534. package/dist/pine-core/svg/pause-circle.svg +1 -0
  535. package/dist/pine-core/svg/pause.svg +1 -0
  536. package/dist/pine-core/svg/payout.svg +1 -0
  537. package/dist/pine-core/svg/pen.svg +1 -0
  538. package/dist/pine-core/svg/phone-portrait.svg +1 -0
  539. package/dist/pine-core/svg/phone-toolbar.svg +1 -0
  540. package/dist/pine-core/svg/play-circle.svg +1 -0
  541. package/dist/pine-core/svg/play-outline.svg +1 -0
  542. package/dist/pine-core/svg/play-store.svg +1 -0
  543. package/dist/pine-core/svg/play.svg +1 -0
  544. package/dist/pine-core/svg/plug.svg +1 -0
  545. package/dist/pine-core/svg/premium.svg +1 -0
  546. package/dist/pine-core/svg/present.svg +1 -0
  547. package/dist/pine-core/svg/preview-off.svg +1 -0
  548. package/dist/pine-core/svg/preview-on.svg +1 -0
  549. package/dist/pine-core/svg/products-filled.svg +1 -0
  550. package/dist/pine-core/svg/products-outline.svg +1 -0
  551. package/dist/pine-core/svg/question-circle.svg +1 -0
  552. package/dist/pine-core/svg/quote.svg +1 -0
  553. package/dist/pine-core/svg/redo.svg +1 -0
  554. package/dist/pine-core/svg/refresh.svg +1 -0
  555. package/dist/pine-core/svg/remove-circle.svg +1 -0
  556. package/dist/pine-core/svg/remove.svg +1 -0
  557. package/dist/pine-core/svg/rename.svg +1 -0
  558. package/dist/pine-core/svg/reset-password.svg +1 -0
  559. package/dist/pine-core/svg/restore.svg +1 -0
  560. package/dist/pine-core/svg/right-small.svg +1 -0
  561. package/dist/pine-core/svg/round-dollar.svg +1 -0
  562. package/dist/pine-core/svg/rows.svg +1 -0
  563. package/dist/pine-core/svg/sales-filled.svg +1 -0
  564. package/dist/pine-core/svg/sales-outline.svg +1 -0
  565. package/dist/pine-core/svg/scissor.svg +1 -0
  566. package/dist/pine-core/svg/screen-share-off.svg +1 -0
  567. package/dist/pine-core/svg/screen-share-on.svg +1 -0
  568. package/dist/pine-core/svg/search-small.svg +1 -0
  569. package/dist/pine-core/svg/search.svg +1 -0
  570. package/dist/pine-core/svg/send-message.svg +1 -0
  571. package/dist/pine-core/svg/sequences.svg +1 -0
  572. package/dist/pine-core/svg/series.svg +1 -0
  573. package/dist/pine-core/svg/settings-filled.svg +1 -0
  574. package/dist/pine-core/svg/settings-outline.svg +1 -0
  575. package/dist/pine-core/svg/share.svg +1 -0
  576. package/dist/pine-core/svg/skipped.svg +1 -0
  577. package/dist/pine-core/svg/slash-divider.svg +1 -0
  578. package/dist/pine-core/svg/sparkle-filled.svg +1 -0
  579. package/dist/pine-core/svg/sparkle.svg +1 -0
  580. package/dist/pine-core/svg/speaker.svg +1 -0
  581. package/dist/pine-core/svg/stack.svg +1 -0
  582. package/dist/pine-core/svg/star.svg +1 -0
  583. package/dist/pine-core/svg/stop.svg +1 -0
  584. package/dist/pine-core/svg/stopwatch.svg +1 -0
  585. package/dist/pine-core/svg/strikethrough.svg +1 -0
  586. package/dist/pine-core/svg/subscript.svg +1 -0
  587. package/dist/pine-core/svg/subscriptions.svg +1 -0
  588. package/dist/pine-core/svg/super-admin.svg +1 -0
  589. package/dist/pine-core/svg/superscript.svg +1 -0
  590. package/dist/pine-core/svg/sync.svg +1 -0
  591. package/dist/pine-core/svg/tablet-landscape.svg +1 -0
  592. package/dist/pine-core/svg/tablet-portrait.svg +1 -0
  593. package/dist/pine-core/svg/text-styles.svg +1 -0
  594. package/dist/pine-core/svg/theme-store-filled.svg +1 -0
  595. package/dist/pine-core/svg/theme-store.svg +1 -0
  596. package/dist/pine-core/svg/thumbs-down-filled.svg +1 -0
  597. package/dist/pine-core/svg/thumbs-down.svg +1 -0
  598. package/dist/pine-core/svg/thumbs-up-filled.svg +1 -0
  599. package/dist/pine-core/svg/thumbs-up.svg +1 -0
  600. package/dist/pine-core/svg/tiktok.svg +1 -0
  601. package/dist/pine-core/svg/trash.svg +1 -0
  602. package/dist/pine-core/svg/twitter.svg +1 -0
  603. package/dist/pine-core/svg/underline.svg +1 -0
  604. package/dist/pine-core/svg/undo.svg +1 -0
  605. package/dist/pine-core/svg/unlock.svg +1 -0
  606. package/dist/pine-core/svg/unmapped.svg +1 -0
  607. package/dist/pine-core/svg/up-small.svg +1 -0
  608. package/dist/pine-core/svg/upload.svg +1 -0
  609. package/dist/pine-core/svg/url.svg +1 -0
  610. package/dist/pine-core/svg/user-filled.svg +1 -0
  611. package/dist/pine-core/svg/user.svg +1 -0
  612. package/dist/pine-core/svg/users-wm.svg +1 -0
  613. package/dist/pine-core/svg/users.svg +1 -0
  614. package/dist/pine-core/svg/video-off.svg +1 -0
  615. package/dist/pine-core/svg/video-on.svg +1 -0
  616. package/dist/pine-core/svg/warning-filled.svg +1 -0
  617. package/dist/pine-core/svg/warning.svg +1 -0
  618. package/dist/pine-core/svg/website-filled.svg +1 -0
  619. package/dist/pine-core/svg/website-outline.svg +1 -0
  620. package/dist/pine-core/svg/window-paragraph.svg +1 -0
  621. package/dist/pine-core/svg/world.svg +1 -0
  622. package/dist/pine-core/svg/wrench.svg +1 -0
  623. package/dist/pine-core/svg/youtube.svg +1 -0
  624. package/dist/scripts/build-tokens.js +160 -0
  625. package/dist/scripts/build-tokens.js.map +1 -0
  626. package/dist/types/components/_internal/pds-label/pds-label.d.ts +22 -0
  627. package/dist/types/components/pds-avatar/pds-avatar.d.ts +42 -0
  628. package/dist/types/components/pds-button/pds-button.d.ts +36 -0
  629. package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +55 -0
  630. package/dist/types/components/pds-chip/pds-chip.d.ts +39 -0
  631. package/dist/types/components/pds-copytext/pds-copytext.d.ts +34 -0
  632. package/dist/types/components/pds-divider/pds-divider.d.ts +17 -0
  633. package/dist/types/components/pds-image/pds-image.d.ts +42 -0
  634. package/dist/types/components/pds-input/pds-input.d.ts +59 -0
  635. package/dist/types/components/pds-link/pds-link.d.ts +34 -0
  636. package/dist/types/components/pds-progress/pds-progress.d.ts +31 -0
  637. package/dist/types/components/pds-radio/pds-radio.d.ts +54 -0
  638. package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +20 -0
  639. package/dist/types/components/pds-sortable/pds-sortable.d.ts +28 -0
  640. package/dist/types/components/pds-switch/pds-switch.d.ts +59 -0
  641. package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +35 -0
  642. package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +23 -0
  643. package/dist/types/components/pds-tabs/pds-tabs.d.ts +40 -0
  644. package/dist/types/components/pds-textarea/pds-textarea.d.ts +64 -0
  645. package/dist/types/components/pds-textarea/textarea-interface.d.ts +8 -0
  646. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +68 -0
  647. package/dist/types/components.d.ts +1566 -0
  648. package/dist/types/global/pine-ui-global.d.ts +1 -0
  649. package/dist/types/home/runner/work/pine/pine/libs/core/.stencil/scripts/build-tokens.d.ts +1 -0
  650. package/dist/types/index.d.ts +1 -0
  651. package/dist/types/interface.d.ts +17 -0
  652. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  653. package/dist/types/stories/_helpers/index.d.ts +12 -0
  654. package/dist/types/utils/form.d.ts +12 -0
  655. package/dist/types/utils/overlay.d.ts +8 -0
  656. package/dist/types/utils/types.d.ts +1 -0
  657. package/dist/types/utils/utils.d.ts +2 -0
  658. package/loader/cdn.js +3 -0
  659. package/loader/index.cjs.js +3 -0
  660. package/loader/index.d.ts +21 -0
  661. package/loader/index.es2017.js +3 -0
  662. package/loader/index.js +4 -0
  663. package/loader/package.json +11 -0
  664. package/package.json +115 -0
  665. package/readme.md +75 -0
@@ -0,0 +1,154 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class PdsTab {
3
+ constructor() {
4
+ this.name = undefined;
5
+ this.parentComponentId = undefined;
6
+ this.variant = undefined;
7
+ this.index = undefined;
8
+ this.selected = false;
9
+ }
10
+ onTabClick(index, parentComponentId) {
11
+ this.pdsTabClick.emit([index, parentComponentId]);
12
+ }
13
+ render() {
14
+ const availabilityTabEdgeInlineStart = (h("span", { class: "pds-tab-edge", role: "presentation" }));
15
+ const availabilityTabEdgeInlineEnd = (h("span", { class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
16
+ return (h(Host, { variant: this.variant, slot: "tabs", index: this.index }, h("button", { role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { class: "pds-tab__content" }, h("slot", null)))));
17
+ }
18
+ static get is() { return "pds-tab"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["pds-tab.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["pds-tab.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "name": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "string",
36
+ "resolved": "string",
37
+ "references": {}
38
+ },
39
+ "required": true,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": "Sets the related tab name, this name must match a `pds-tabpanel`'s tab name property"
44
+ },
45
+ "attribute": "name",
46
+ "reflect": false
47
+ },
48
+ "parentComponentId": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": false,
58
+ "docs": {
59
+ "tags": [{
60
+ "name": "internal",
61
+ "text": undefined
62
+ }],
63
+ "text": ""
64
+ },
65
+ "attribute": "parent-component-id",
66
+ "reflect": false
67
+ },
68
+ "variant": {
69
+ "type": "string",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "string",
73
+ "resolved": "string",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [{
80
+ "name": "internal",
81
+ "text": undefined
82
+ }],
83
+ "text": ""
84
+ },
85
+ "attribute": "variant",
86
+ "reflect": false
87
+ },
88
+ "index": {
89
+ "type": "number",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "number",
93
+ "resolved": "number",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [{
100
+ "name": "internal",
101
+ "text": undefined
102
+ }],
103
+ "text": ""
104
+ },
105
+ "attribute": "index",
106
+ "reflect": false
107
+ },
108
+ "selected": {
109
+ "type": "boolean",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "boolean",
113
+ "resolved": "boolean",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": false,
118
+ "docs": {
119
+ "tags": [{
120
+ "name": "internal",
121
+ "text": undefined
122
+ }],
123
+ "text": ""
124
+ },
125
+ "attribute": "selected",
126
+ "reflect": false,
127
+ "defaultValue": "false"
128
+ }
129
+ };
130
+ }
131
+ static get events() {
132
+ return [{
133
+ "method": "pdsTabClick",
134
+ "name": "pdsTabClick",
135
+ "bubbles": true,
136
+ "cancelable": true,
137
+ "composed": true,
138
+ "docs": {
139
+ "tags": [{
140
+ "name": "internal",
141
+ "text": undefined
142
+ }],
143
+ "text": ""
144
+ },
145
+ "complexType": {
146
+ "original": "object",
147
+ "resolved": "object",
148
+ "references": {}
149
+ }
150
+ }];
151
+ }
152
+ static get elementRef() { return "el"; }
153
+ }
154
+ //# sourceMappingURL=pds-tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-tab.js","sourceRoot":"","sources":["../../../../../src/components/pds-tabs/pds-tab/pds-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAOvF,MAAM,OAAO,MAAM;;;;;;wBA8BE,KAAK;;IAOhB,UAAU,CAAC,KAAK,EAAE,iBAAiB;QACzC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACJ,MAAM,8BAA8B,GAAG,CACrC,YAAM,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,cAAc,GAAQ,CACvD,CAAA;QAED,MAAM,4BAA4B,GAAG,CACnC,YAAM,KAAK,EAAC,gCAAgC,EAAC,IAAI,EAAC,cAAc,GAAQ,CACzE,CAAA;QAED,OAAO,CACL,EAAC,IAAI,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK;YACxD,cACE,IAAI,EAAC,KAAK,EACV,EAAE,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,mBAC9B,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,QAAQ,EACnE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,mBACrB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC/C,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EACtD,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC;gBAEtE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,8BAA8B;gBACjE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,4BAA4B;gBAChE,WAAK,KAAK,EAAC,kBAAkB;oBAAC,eAAO,CAAM,CACpC,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'pds-tab',\n styleUrl: 'pds-tab.scss',\n shadow: false,\n})\nexport class PdsTab {\n @Element() el: HTMLPdsTabElement;\n\n /**\n * Sets the related tab name, this name must match a `pds-tabpanel`'s tab name property\n */\n @Prop() name!: string;\n\n /**\n * Keeps track of the parentComponentId unique id, this property is passed by parent component\n */\n /** @internal */\n @Prop() parentComponentId: string;\n\n /**\n * Keeps track of if the expected tab variant, this property is passed by parent component\n */\n /** @internal */\n @Prop() variant: string;\n\n /**\n * Keeps track of if the tab index number, this property is passed by parent component\n */\n /** @internal */\n @Prop() index: number;\n\n /**\n * Keeps track of the tabpanel selected state, this property is passed by parent component\n */\n /** @internal */\n @Prop() selected = false;\n\n /**\n * Emits an event upon tab click for `pds-tab` and `pds-tabpanel` to listen for\n */\n /** @internal */\n @Event() pdsTabClick: EventEmitter<object>;\n private onTabClick(index, parentComponentId) {\n this.pdsTabClick.emit([index, parentComponentId]);\n }\n\n render() {\n const availabilityTabEdgeInlineStart = (\n <span class=\"pds-tab-edge\" role=\"presentation\"></span>\n )\n\n const availabilityTabEdgeInlineEnd = (\n <span class=\"pds-tab-edge pds-tab-edge--end\" role=\"presentation\"></span>\n )\n\n return (\n <Host variant={this.variant} slot=\"tabs\" index={this.index}>\n <button\n role=\"tab\"\n id={this.parentComponentId + \"__\" + this.name}\n aria-controls={this.parentComponentId + \"__\" + this.name + \"-panel\"}\n tabindex={this.selected ? \"0\" : \"-1\"}\n aria-selected={this.selected ? \"true\" : \"false\"}\n class={this.selected ? \"pds-tab is-active\" : \"pds-tab\"}\n onClick={this.onTabClick.bind(this, this.index, this.parentComponentId)}\n >\n {this.variant === \"availability\" && availabilityTabEdgeInlineStart}\n {this.variant === \"availability\" && availabilityTabEdgeInlineEnd}\n <div class=\"pds-tab__content\"><slot/></div>\n </button>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,12 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .pds-tabpanel {
6
+ display: none;
7
+ margin-top: var(--panel-margin-top);
8
+ padding: var(--panel-padding);
9
+ }
10
+ .pds-tabpanel.is-active {
11
+ display: block;
12
+ }
@@ -0,0 +1,107 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class PdsTabpanel {
3
+ constructor() {
4
+ this.name = undefined;
5
+ this.parentComponentId = undefined;
6
+ this.variant = undefined;
7
+ this.selected = false;
8
+ }
9
+ render() {
10
+ return (h(Host, { slot: "tabpanels" }, h("div", { role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", null))));
11
+ }
12
+ static get is() { return "pds-tabpanel"; }
13
+ static get originalStyleUrls() {
14
+ return {
15
+ "$": ["pds-tabpanel.scss"]
16
+ };
17
+ }
18
+ static get styleUrls() {
19
+ return {
20
+ "$": ["pds-tabpanel.css"]
21
+ };
22
+ }
23
+ static get properties() {
24
+ return {
25
+ "name": {
26
+ "type": "string",
27
+ "mutable": false,
28
+ "complexType": {
29
+ "original": "string",
30
+ "resolved": "string",
31
+ "references": {}
32
+ },
33
+ "required": true,
34
+ "optional": false,
35
+ "docs": {
36
+ "tags": [],
37
+ "text": "Sets the related tab name, this name must match a `pds-tab`'s tab name property"
38
+ },
39
+ "attribute": "name",
40
+ "reflect": false
41
+ },
42
+ "parentComponentId": {
43
+ "type": "string",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": false,
52
+ "docs": {
53
+ "tags": [{
54
+ "name": "internal",
55
+ "text": undefined
56
+ }],
57
+ "text": ""
58
+ },
59
+ "attribute": "parent-component-id",
60
+ "reflect": false
61
+ },
62
+ "variant": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [{
74
+ "name": "internal",
75
+ "text": undefined
76
+ }],
77
+ "text": ""
78
+ },
79
+ "attribute": "variant",
80
+ "reflect": false
81
+ },
82
+ "selected": {
83
+ "type": "boolean",
84
+ "mutable": true,
85
+ "complexType": {
86
+ "original": "boolean",
87
+ "resolved": "boolean",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [{
94
+ "name": "internal",
95
+ "text": undefined
96
+ }],
97
+ "text": ""
98
+ },
99
+ "attribute": "selected",
100
+ "reflect": false,
101
+ "defaultValue": "false"
102
+ }
103
+ };
104
+ }
105
+ static get elementRef() { return "el"; }
106
+ }
107
+ //# sourceMappingURL=pds-tabpanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-tabpanel.js","sourceRoot":"","sources":["../../../../../src/components/pds-tabs/pds-tabpanel/pds-tabpanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,WAAW;;;;;wBAwBY,KAAK;;IAEvC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,IAAC,IAAI,EAAC,WAAW;YACpB,WACE,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,QAAQ,EACxD,QAAQ,EAAC,GAAG,qBACK,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EAC1D,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,cAAc;gBAEhE,eAAQ,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-tabpanel',\n styleUrl: 'pds-tabpanel.scss',\n shadow: false,\n})\nexport class PdsTabpanel {\n @Element() el: HTMLPdsTabpanelElement;\n\n /**\n * Sets the related tab name, this name must match a `pds-tab`'s tab name property\n */\n @Prop() name!: string;\n\n /**\n * Keeps track of the parentComponentId unique id, this property is passed by parent component\n */\n /** @internal */\n @Prop() parentComponentId: string;\n\n /**\n * Keeps track of if the expected tab variant, this property is passed by parent component\n */\n /** @internal */\n @Prop() variant: string;\n\n /**\n * Keeps track of the tabpanel selected state, this property is passed by parent component\n */\n /** @internal */\n @Prop({mutable: true}) selected = false; // eslint-disable-line @stencil-community/strict-mutable\n\n render() {\n return (\n <Host slot=\"tabpanels\">\n <div\n role=\"tabpanel\"\n id={this.parentComponentId + \"__\" + this.name + '-panel'}\n tabindex=\"0\"\n aria-labelledby={this.parentComponentId + \"__\" + this.name}\n class={this.selected ? \"pds-tabpanel is-active\" : \"pds-tabpanel\"}\n >\n <slot />\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,33 @@
1
+ :host {
2
+ /**
3
+ * @prop --panel-margin-top: Optional margin-top for panels
4
+ */
5
+ --panel-margin-top: 0;
6
+ /**
7
+ * @prop --panel-padding: Optional padding for panels
8
+ */
9
+ --panel-padding: 0;
10
+ --gap-md: var(--pine-spacing-md);
11
+ --gap-xs: var(--pine-spacing-xs);
12
+ --gap-sm: 16px var(--pine-spacing-sm);
13
+ --outline: 2px solid var(--pine-color-primary-200);
14
+ display: block;
15
+ }
16
+
17
+ *:focus {
18
+ outline: var(--outline);
19
+ }
20
+
21
+ .pds-tabs__tablist {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ gap: var(--gap-md);
25
+ }
26
+
27
+ :host(.pds-tabs--availability) .pds-tabs__tablist {
28
+ gap: var(--gap-xs);
29
+ }
30
+
31
+ :host(.pds-tabs--filter) .pds-tabs__tablist {
32
+ gap: var(--gap-sm);
33
+ }
@@ -0,0 +1,209 @@
1
+ import { Host, h } from "@stencil/core";
2
+ /**
3
+ * @slot tabs - Content is placed within the `div[role="tablist"]` element as children
4
+ * @slot tabpanels - Content is placed directly after the `div[role="tablist"]` element as siblings
5
+ */
6
+ export class PdsTabs {
7
+ constructor() {
8
+ this.tablistLabel = undefined;
9
+ this.componentId = undefined;
10
+ this.variant = undefined;
11
+ this.activeTabName = undefined;
12
+ this.activeTabIndex = undefined;
13
+ }
14
+ tabClickHandler(event) {
15
+ if (this.componentId === event.detail[1]) {
16
+ this.activeTabIndex = event.detail[0];
17
+ this.activeTabName = this.tabs[this.activeTabIndex].name;
18
+ }
19
+ }
20
+ handleKeyDown(ev) {
21
+ const keySet = ["ArrowLeft", "ArrowRight", "Home", "End"];
22
+ if (keySet.includes(ev.key)) {
23
+ ev.preventDefault();
24
+ this.moveActiveTab(ev.key);
25
+ }
26
+ }
27
+ moveActiveTab(key) {
28
+ const firstTabNumber = 0;
29
+ const lastTabNumber = this.tabs.length - 1;
30
+ let moveFocusTo = null;
31
+ switch (key) {
32
+ case 'ArrowLeft':
33
+ moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));
34
+ break;
35
+ case 'ArrowRight':
36
+ moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);
37
+ break;
38
+ case 'Home':
39
+ moveFocusTo = firstTabNumber;
40
+ break;
41
+ case 'End':
42
+ moveFocusTo = lastTabNumber;
43
+ break;
44
+ }
45
+ // Move focus to the button element within `pds-tab`
46
+ this.tabs[moveFocusTo].children[0].focus();
47
+ this.activeTabName = this.tabs[moveFocusTo].name;
48
+ this.activeTabIndex = moveFocusTo;
49
+ }
50
+ findAllChildren() {
51
+ this.tabs = this.el.querySelectorAll('pds-tab');
52
+ this.tabPanels = this.el.querySelectorAll('pds-tabpanel');
53
+ }
54
+ propGeneration(child, index = 0) {
55
+ child.parentComponentId = this.componentId.toString();
56
+ child.variant = this.variant.toString();
57
+ child.selected = (this.activeTabName === child.name) ? true : false;
58
+ child['index'] = index;
59
+ }
60
+ passPropsToChildren() {
61
+ this.tabs.forEach((child, index) => {
62
+ if (this.activeTabName === child.name)
63
+ this.activeTabIndex = index;
64
+ this.propGeneration(child, index);
65
+ });
66
+ this.tabPanels.forEach((child) => {
67
+ this.propGeneration(child);
68
+ });
69
+ }
70
+ classNames() {
71
+ let className = `pds-tabs`;
72
+ if (this.variant && this.variant != 'primary') {
73
+ const variantClassName = `pds-tabs--${this.variant}`;
74
+ className += ' ' + variantClassName;
75
+ }
76
+ return className;
77
+ }
78
+ ;
79
+ componentWillLoad() {
80
+ this.findAllChildren();
81
+ }
82
+ componentWillRender() {
83
+ this.passPropsToChildren();
84
+ }
85
+ render() {
86
+ return (h(Host, { "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { name: "tabs" })), h("slot", { name: "tabpanels" })));
87
+ }
88
+ static get is() { return "pds-tabs"; }
89
+ static get encapsulation() { return "shadow"; }
90
+ static get originalStyleUrls() {
91
+ return {
92
+ "$": ["pds-tabs.scss"]
93
+ };
94
+ }
95
+ static get styleUrls() {
96
+ return {
97
+ "$": ["pds-tabs.css"]
98
+ };
99
+ }
100
+ static get properties() {
101
+ return {
102
+ "tablistLabel": {
103
+ "type": "string",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "string",
107
+ "resolved": "string",
108
+ "references": {}
109
+ },
110
+ "required": true,
111
+ "optional": false,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": "Sets the aria-label attached to the tablist element"
115
+ },
116
+ "attribute": "tablist-label",
117
+ "reflect": false
118
+ },
119
+ "componentId": {
120
+ "type": "string",
121
+ "mutable": false,
122
+ "complexType": {
123
+ "original": "string",
124
+ "resolved": "string",
125
+ "references": {}
126
+ },
127
+ "required": true,
128
+ "optional": false,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": "A unique identifier used for the underlying component `id` attribute."
132
+ },
133
+ "attribute": "component-id",
134
+ "reflect": false
135
+ },
136
+ "variant": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "'primary' | 'availability' | 'filter'",
141
+ "resolved": "\"availability\" | \"filter\" | \"primary\"",
142
+ "references": {}
143
+ },
144
+ "required": true,
145
+ "optional": false,
146
+ "docs": {
147
+ "tags": [],
148
+ "text": "Sets tabs variant styles as outlined in Figma documentation"
149
+ },
150
+ "attribute": "variant",
151
+ "reflect": false
152
+ },
153
+ "activeTabName": {
154
+ "type": "string",
155
+ "mutable": true,
156
+ "complexType": {
157
+ "original": "string",
158
+ "resolved": "string",
159
+ "references": {}
160
+ },
161
+ "required": true,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [],
165
+ "text": "Sets the starting active tab name and maintains the name as the component re-renders"
166
+ },
167
+ "attribute": "active-tab-name",
168
+ "reflect": false
169
+ },
170
+ "activeTabIndex": {
171
+ "type": "number",
172
+ "mutable": true,
173
+ "complexType": {
174
+ "original": "number",
175
+ "resolved": "number",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [{
182
+ "name": "internal",
183
+ "text": undefined
184
+ }],
185
+ "text": ""
186
+ },
187
+ "attribute": "active-tab-index",
188
+ "reflect": false
189
+ }
190
+ };
191
+ }
192
+ static get elementRef() { return "el"; }
193
+ static get listeners() {
194
+ return [{
195
+ "name": "pdsTabClick",
196
+ "method": "tabClickHandler",
197
+ "target": "body",
198
+ "capture": false,
199
+ "passive": false
200
+ }, {
201
+ "name": "keydown",
202
+ "method": "handleKeyDown",
203
+ "target": undefined,
204
+ "capture": false,
205
+ "passive": false
206
+ }];
207
+ }
208
+ }
209
+ //# sourceMappingURL=pds-tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-tabs.js","sourceRoot":"","sources":["../../../../src/components/pds-tabs/pds-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAExE;;;EAGC;AAMH,MAAM,OAAO,OAAO;;;;;;;;IAmClB,eAAe,CAAC,KAAuB;QACrC,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACxC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACtC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC;SAC1D;IACH,CAAC;IAGD,aAAa,CAAC,EAAiB;QAC7B,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE1D,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;YAC3B,EAAE,CAAC,cAAc,EAAE,CAAC;YACpB,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;SAC5B;IACH,CAAC;IAEO,aAAa,CAAC,GAAW;QAC/B,MAAM,cAAc,GAAG,CAAC,CAAC;QACzB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAE3C,IAAI,WAAW,GAAG,IAAI,CAAC;QAEvB,QAAQ,GAAG,EAAE;YACX,KAAK,WAAW;gBACd,WAAW,GAAG,CAAC,IAAI,CAAC,cAAc,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtG,MAAM;YACR,KAAK,YAAY;gBACf,WAAW,GAAG,CAAC,IAAI,CAAC,cAAc,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;gBACnG,MAAM;YACR,KAAK,MAAM;gBACT,WAAW,GAAG,cAAc,CAAC;gBAC7B,MAAM;YACR,KAAK,KAAK;gBACR,WAAW,GAAG,aAAa,CAAC;gBAC5B,MAAM;SACT;QAED,oDAAoD;QACpD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC;IACpC,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC5D,CAAC;IAEO,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC;QACrC,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QACtD,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACxC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACpE,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;IACzB,CAAC;IAEO,mBAAmB;QACzB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACjC,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,IAAI;gBAAE,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;YACnE,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/B,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,UAAU;QAChB,IAAI,SAAS,GAAG,UAAU,CAAC;QAC3B,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE;YAC7C,MAAM,gBAAgB,GAAG,aAAa,IAAI,CAAC,OAAO,EAAE,CAAC;YACrD,SAAS,IAAI,GAAG,GAAG,gBAAgB,CAAC;SACrC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAAA,CAAC;IAEF,iBAAiB;QACf,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED,mBAAmB;QACjB,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,uBAAkB,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,WAAW;YACvF,WAAK,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,SAAS,gBAAa,IAAI,CAAC,YAAY;gBACzE,YAAM,IAAI,EAAC,MAAM,GAAG,CAChB;YACN,YAAM,IAAI,EAAC,WAAW,GAAG,CACpB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop, Listen } from '@stencil/core';\n\n /**\n * @slot tabs - Content is placed within the `div[role=\"tablist\"]` element as children\n * @slot tabpanels - Content is placed directly after the `div[role=\"tablist\"]` element as siblings\n */\n@Component({\n tag: 'pds-tabs',\n styleUrl: 'pds-tabs.scss',\n shadow: true,\n})\nexport class PdsTabs {\n private tabs;\n private tabPanels;\n\n @Element() el: HTMLPdsTabsElement;\n\n /**\n * Sets the aria-label attached to the tablist element\n */\n @Prop() tablistLabel!: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets tabs variant styles as outlined in Figma documentation\n */\n @Prop() variant!: 'primary' | 'availability' | 'filter';\n\n /**\n * Sets the starting active tab name and maintains the name as the component re-renders\n */\n @Prop({mutable: true}) activeTabName!: string;\n\n /**\n * Sets the starting active tab index number and maintains the index number as the component re-renders\n */\n /** @internal */\n @Prop({mutable: true}) activeTabIndex: number;\n\n @Listen('pdsTabClick', {\n target: 'body',\n })\n tabClickHandler(event: CustomEvent<any>) {\n if (this.componentId === event.detail[1]) {\n this.activeTabIndex = event.detail[0];\n this.activeTabName = this.tabs[this.activeTabIndex].name;\n }\n }\n\n @Listen('keydown', {})\n handleKeyDown(ev: KeyboardEvent) {\n const keySet = [\"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"];\n\n if (keySet.includes(ev.key)) {\n ev.preventDefault();\n this.moveActiveTab(ev.key);\n }\n }\n\n private moveActiveTab(key: string) {\n const firstTabNumber = 0;\n const lastTabNumber = this.tabs.length - 1;\n\n let moveFocusTo = null;\n\n switch (key) {\n case 'ArrowLeft':\n moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));\n break;\n case 'ArrowRight':\n moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);\n break;\n case 'Home':\n moveFocusTo = firstTabNumber;\n break;\n case 'End':\n moveFocusTo = lastTabNumber;\n break;\n }\n\n // Move focus to the button element within `pds-tab`\n this.tabs[moveFocusTo].children[0].focus();\n this.activeTabName = this.tabs[moveFocusTo].name;\n this.activeTabIndex = moveFocusTo;\n }\n\n private findAllChildren() {\n this.tabs = this.el.querySelectorAll('pds-tab');\n this.tabPanels = this.el.querySelectorAll('pds-tabpanel');\n }\n\n private propGeneration(child, index = 0) {\n child.parentComponentId = this.componentId.toString();\n child.variant = this.variant.toString();\n child.selected = (this.activeTabName === child.name) ? true : false;\n child['index'] = index;\n }\n\n private passPropsToChildren() {\n this.tabs.forEach((child, index) => {\n if (this.activeTabName === child.name) this.activeTabIndex = index;\n this.propGeneration(child, index);\n });\n\n this.tabPanels.forEach((child) => {\n this.propGeneration(child);\n });\n }\n\n private classNames() {\n let className = `pds-tabs`;\n if (this.variant && this.variant != 'primary') {\n const variantClassName = `pds-tabs--${this.variant}`;\n className += ' ' + variantClassName;\n }\n\n return className;\n };\n\n componentWillLoad() {\n this.findAllChildren();\n }\n\n componentWillRender() {\n this.passPropsToChildren();\n }\n\n render() {\n return (\n <Host active-tab-name={this.activeTabName} class={this.classNames()} id={this.componentId}>\n <div class=\"pds-tabs__tablist\" role=\"tablist\" aria-label={this.tablistLabel}>\n <slot name=\"tabs\" />\n </div>\n <slot name=\"tabpanels\" />\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,63 @@
1
+ import { html, render } from 'lit';
2
+ import { withActions } from '@storybook/addon-actions/decorator';
3
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
4
+
5
+ export default {
6
+ argTypes: extractArgTypes('pds-tabs'),
7
+ component: 'pds-tabs',
8
+ decorators: [withActions],
9
+ parameters: {
10
+ actions: {
11
+ handles: ['pdsTabClick', 'keydown']
12
+ },
13
+ },
14
+ title: 'components/Tabs',
15
+ }
16
+
17
+ const BaseTemplate = (args) => html`
18
+ <pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
19
+ <pds-tab name="Sturdy">Sturdy</pds-tab>
20
+ <pds-tab name="Dollop">Dollop</pds-tab>
21
+ <pds-tab name="Waffle">Waffle</pds-tab>
22
+ <pds-tabpanel name="Sturdy">Content Sturdy</pds-tabpanel>
23
+ <pds-tabpanel name="Dollop">Content Dollop</pds-tabpanel>
24
+ <pds-tabpanel name="Waffle">Content Waffle</pds-tabpanel>
25
+ </pds-tabs>
26
+ `;
27
+
28
+ const AvailabilityTemplate = (args) => html`
29
+ <div style="background-color: #ddd; padding: 20px;">
30
+ <pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
31
+ <pds-tab name="monday">Monday</pds-tab>
32
+ <pds-tab name="tuesday">Tuesday</pds-tab>
33
+ <pds-tab name="wednesday">Wednesday</pds-tab>
34
+ <pds-tabpanel name="tuesday">Content Tuesday</pds-tabpanel>
35
+ <pds-tabpanel name="wednesday">Content Wednesday</pds-tabpanel>
36
+ <pds-tabpanel name="monday">Content Monday</pds-tabpanel>
37
+ </pds-tabs>
38
+ </div>
39
+ `;
40
+
41
+ export const Primary = BaseTemplate.bind({});
42
+ Primary.args = {
43
+ activeTabName: "Dollop",
44
+ componentId: "primary",
45
+ variant: "primary",
46
+ tablistLabel: "Foo",
47
+ }
48
+
49
+ export const Availability = AvailabilityTemplate.bind({});
50
+ Availability.args = {
51
+ activeTabName: "tuesday",
52
+ componentId: "availability",
53
+ variant: 'availability',
54
+ tablistLabel: "Foo",
55
+ }
56
+
57
+ export const Filter = BaseTemplate.bind({});
58
+ Filter.args = {
59
+ activeTabName: "Sturdy",
60
+ componentId: "filter",
61
+ variant: 'filter',
62
+ tablistLabel: "Foo",
63
+ }