@tartaguti/ui-components 0.0.0-stage → 0.1.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 (392) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +192 -2
  4. package/THIRD-PARTY-NOTICES.md +29 -0
  5. package/custom-elements.json +16731 -0
  6. package/dist/accordion/tt-accordion-item.d.ts +32 -0
  7. package/dist/accordion/tt-accordion-item.d.ts.map +1 -0
  8. package/dist/accordion/tt-accordion-item.js +247 -0
  9. package/dist/accordion/tt-accordion-item.js.map +1 -0
  10. package/dist/accordion/tt-accordion.d.ts +28 -0
  11. package/dist/accordion/tt-accordion.d.ts.map +1 -0
  12. package/dist/accordion/tt-accordion.js +148 -0
  13. package/dist/accordion/tt-accordion.js.map +1 -0
  14. package/dist/bento/tt-bento-item.d.ts +35 -0
  15. package/dist/bento/tt-bento-item.d.ts.map +1 -0
  16. package/dist/bento/tt-bento-item.js +201 -0
  17. package/dist/bento/tt-bento-item.js.map +1 -0
  18. package/dist/bento/tt-bento.d.ts +25 -0
  19. package/dist/bento/tt-bento.d.ts.map +1 -0
  20. package/dist/bento/tt-bento.js +314 -0
  21. package/dist/bento/tt-bento.js.map +1 -0
  22. package/dist/floating.d.ts +61 -0
  23. package/dist/floating.d.ts.map +1 -0
  24. package/dist/floating.js +120 -0
  25. package/dist/floating.js.map +1 -0
  26. package/dist/index.d.ts +92 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +96 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/interaction/tt-draggable.d.ts +29 -0
  31. package/dist/interaction/tt-draggable.d.ts.map +1 -0
  32. package/dist/interaction/tt-draggable.js +66 -0
  33. package/dist/interaction/tt-draggable.js.map +1 -0
  34. package/dist/interaction/tt-droppable.d.ts +37 -0
  35. package/dist/interaction/tt-droppable.d.ts.map +1 -0
  36. package/dist/interaction/tt-droppable.js +108 -0
  37. package/dist/interaction/tt-droppable.js.map +1 -0
  38. package/dist/interaction/tt-resizable.d.ts +45 -0
  39. package/dist/interaction/tt-resizable.d.ts.map +1 -0
  40. package/dist/interaction/tt-resizable.js +210 -0
  41. package/dist/interaction/tt-resizable.js.map +1 -0
  42. package/dist/interaction/tt-reveal.d.ts +54 -0
  43. package/dist/interaction/tt-reveal.d.ts.map +1 -0
  44. package/dist/interaction/tt-reveal.js +302 -0
  45. package/dist/interaction/tt-reveal.js.map +1 -0
  46. package/dist/motion.d.ts +8 -0
  47. package/dist/motion.d.ts.map +1 -0
  48. package/dist/motion.js +49 -0
  49. package/dist/motion.js.map +1 -0
  50. package/dist/overlay.d.ts +7 -0
  51. package/dist/overlay.d.ts.map +1 -0
  52. package/dist/overlay.js +121 -0
  53. package/dist/overlay.js.map +1 -0
  54. package/dist/safe-url.d.ts +14 -0
  55. package/dist/safe-url.d.ts.map +1 -0
  56. package/dist/safe-url.js +46 -0
  57. package/dist/safe-url.js.map +1 -0
  58. package/dist/scroll-lock.d.ts +22 -0
  59. package/dist/scroll-lock.d.ts.map +1 -0
  60. package/dist/scroll-lock.js +56 -0
  61. package/dist/scroll-lock.js.map +1 -0
  62. package/dist/sidebar/tt-menu-group.d.ts +69 -0
  63. package/dist/sidebar/tt-menu-group.d.ts.map +1 -0
  64. package/dist/sidebar/tt-menu-group.js +358 -0
  65. package/dist/sidebar/tt-menu-group.js.map +1 -0
  66. package/dist/sidebar/tt-menu-item.d.ts +70 -0
  67. package/dist/sidebar/tt-menu-item.d.ts.map +1 -0
  68. package/dist/sidebar/tt-menu-item.js +502 -0
  69. package/dist/sidebar/tt-menu-item.js.map +1 -0
  70. package/dist/sidebar/tt-sidebar-footer.d.ts +39 -0
  71. package/dist/sidebar/tt-sidebar-footer.d.ts.map +1 -0
  72. package/dist/sidebar/tt-sidebar-footer.js +205 -0
  73. package/dist/sidebar/tt-sidebar-footer.js.map +1 -0
  74. package/dist/sidebar/tt-sidebar-header.d.ts +31 -0
  75. package/dist/sidebar/tt-sidebar-header.d.ts.map +1 -0
  76. package/dist/sidebar/tt-sidebar-header.js +150 -0
  77. package/dist/sidebar/tt-sidebar-header.js.map +1 -0
  78. package/dist/sidebar/tt-sidebar.d.ts +72 -0
  79. package/dist/sidebar/tt-sidebar.d.ts.map +1 -0
  80. package/dist/sidebar/tt-sidebar.js +539 -0
  81. package/dist/sidebar/tt-sidebar.js.map +1 -0
  82. package/dist/sr-only.d.ts +15 -0
  83. package/dist/sr-only.d.ts.map +1 -0
  84. package/dist/sr-only.js +27 -0
  85. package/dist/sr-only.js.map +1 -0
  86. package/dist/tokens.css +1124 -0
  87. package/dist/tt-alert.d.ts +26 -0
  88. package/dist/tt-alert.d.ts.map +1 -0
  89. package/dist/tt-alert.js +165 -0
  90. package/dist/tt-alert.js.map +1 -0
  91. package/dist/tt-aspect-ratio.d.ts +40 -0
  92. package/dist/tt-aspect-ratio.d.ts.map +1 -0
  93. package/dist/tt-aspect-ratio.js +98 -0
  94. package/dist/tt-aspect-ratio.js.map +1 -0
  95. package/dist/tt-auth.d.ts +75 -0
  96. package/dist/tt-auth.d.ts.map +1 -0
  97. package/dist/tt-auth.js +520 -0
  98. package/dist/tt-auth.js.map +1 -0
  99. package/dist/tt-avatar.d.ts +26 -0
  100. package/dist/tt-avatar.d.ts.map +1 -0
  101. package/dist/tt-avatar.js +169 -0
  102. package/dist/tt-avatar.js.map +1 -0
  103. package/dist/tt-badge.d.ts +36 -0
  104. package/dist/tt-badge.d.ts.map +1 -0
  105. package/dist/tt-badge.js +135 -0
  106. package/dist/tt-badge.js.map +1 -0
  107. package/dist/tt-breadcrumbs.d.ts +22 -0
  108. package/dist/tt-breadcrumbs.d.ts.map +1 -0
  109. package/dist/tt-breadcrumbs.js +144 -0
  110. package/dist/tt-breadcrumbs.js.map +1 -0
  111. package/dist/tt-button-group.d.ts +32 -0
  112. package/dist/tt-button-group.d.ts.map +1 -0
  113. package/dist/tt-button-group.js +132 -0
  114. package/dist/tt-button-group.js.map +1 -0
  115. package/dist/tt-button.d.ts +31 -0
  116. package/dist/tt-button.d.ts.map +1 -0
  117. package/dist/tt-button.js +483 -0
  118. package/dist/tt-button.js.map +1 -0
  119. package/dist/tt-card.d.ts +26 -0
  120. package/dist/tt-card.d.ts.map +1 -0
  121. package/dist/tt-card.js +429 -0
  122. package/dist/tt-card.js.map +1 -0
  123. package/dist/tt-chart.d.ts +36 -0
  124. package/dist/tt-chart.d.ts.map +1 -0
  125. package/dist/tt-chart.js +332 -0
  126. package/dist/tt-chart.js.map +1 -0
  127. package/dist/tt-checkbox-group.d.ts +38 -0
  128. package/dist/tt-checkbox-group.d.ts.map +1 -0
  129. package/dist/tt-checkbox-group.js +243 -0
  130. package/dist/tt-checkbox-group.js.map +1 -0
  131. package/dist/tt-checkbox.d.ts +35 -0
  132. package/dist/tt-checkbox.d.ts.map +1 -0
  133. package/dist/tt-checkbox.js +354 -0
  134. package/dist/tt-checkbox.js.map +1 -0
  135. package/dist/tt-code-block.d.ts +37 -0
  136. package/dist/tt-code-block.d.ts.map +1 -0
  137. package/dist/tt-code-block.js +409 -0
  138. package/dist/tt-code-block.js.map +1 -0
  139. package/dist/tt-collapsible.d.ts +71 -0
  140. package/dist/tt-collapsible.d.ts.map +1 -0
  141. package/dist/tt-collapsible.js +206 -0
  142. package/dist/tt-collapsible.js.map +1 -0
  143. package/dist/tt-combobox.d.ts +107 -0
  144. package/dist/tt-combobox.d.ts.map +1 -0
  145. package/dist/tt-combobox.js +816 -0
  146. package/dist/tt-combobox.js.map +1 -0
  147. package/dist/tt-company-card.d.ts +30 -0
  148. package/dist/tt-company-card.d.ts.map +1 -0
  149. package/dist/tt-company-card.js +382 -0
  150. package/dist/tt-company-card.js.map +1 -0
  151. package/dist/tt-comparison-table.d.ts +59 -0
  152. package/dist/tt-comparison-table.d.ts.map +1 -0
  153. package/dist/tt-comparison-table.js +441 -0
  154. package/dist/tt-comparison-table.js.map +1 -0
  155. package/dist/tt-component-doc.d.ts +63 -0
  156. package/dist/tt-component-doc.d.ts.map +1 -0
  157. package/dist/tt-component-doc.js +585 -0
  158. package/dist/tt-component-doc.js.map +1 -0
  159. package/dist/tt-confirm.d.ts +45 -0
  160. package/dist/tt-confirm.d.ts.map +1 -0
  161. package/dist/tt-confirm.js +151 -0
  162. package/dist/tt-confirm.js.map +1 -0
  163. package/dist/tt-contact-list.d.ts +18 -0
  164. package/dist/tt-contact-list.d.ts.map +1 -0
  165. package/dist/tt-contact-list.js +101 -0
  166. package/dist/tt-contact-list.js.map +1 -0
  167. package/dist/tt-copy-button.d.ts +25 -0
  168. package/dist/tt-copy-button.d.ts.map +1 -0
  169. package/dist/tt-copy-button.js +194 -0
  170. package/dist/tt-copy-button.js.map +1 -0
  171. package/dist/tt-data-table.d.ts +69 -0
  172. package/dist/tt-data-table.d.ts.map +1 -0
  173. package/dist/tt-data-table.js +542 -0
  174. package/dist/tt-data-table.js.map +1 -0
  175. package/dist/tt-divider.d.ts +19 -0
  176. package/dist/tt-divider.d.ts.map +1 -0
  177. package/dist/tt-divider.js +104 -0
  178. package/dist/tt-divider.js.map +1 -0
  179. package/dist/tt-drawer.d.ts +38 -0
  180. package/dist/tt-drawer.d.ts.map +1 -0
  181. package/dist/tt-drawer.js +433 -0
  182. package/dist/tt-drawer.js.map +1 -0
  183. package/dist/tt-dropdown-menu.d.ts +57 -0
  184. package/dist/tt-dropdown-menu.d.ts.map +1 -0
  185. package/dist/tt-dropdown-menu.js +631 -0
  186. package/dist/tt-dropdown-menu.js.map +1 -0
  187. package/dist/tt-empty-state.d.ts +13 -0
  188. package/dist/tt-empty-state.d.ts.map +1 -0
  189. package/dist/tt-empty-state.js +94 -0
  190. package/dist/tt-empty-state.js.map +1 -0
  191. package/dist/tt-example.d.ts +33 -0
  192. package/dist/tt-example.d.ts.map +1 -0
  193. package/dist/tt-example.js +250 -0
  194. package/dist/tt-example.js.map +1 -0
  195. package/dist/tt-file-upload.d.ts +85 -0
  196. package/dist/tt-file-upload.d.ts.map +1 -0
  197. package/dist/tt-file-upload.js +662 -0
  198. package/dist/tt-file-upload.js.map +1 -0
  199. package/dist/tt-filter.d.ts +62 -0
  200. package/dist/tt-filter.d.ts.map +1 -0
  201. package/dist/tt-filter.js +393 -0
  202. package/dist/tt-filter.js.map +1 -0
  203. package/dist/tt-form.d.ts +33 -0
  204. package/dist/tt-form.d.ts.map +1 -0
  205. package/dist/tt-form.js +202 -0
  206. package/dist/tt-form.js.map +1 -0
  207. package/dist/tt-grid.d.ts +22 -0
  208. package/dist/tt-grid.d.ts.map +1 -0
  209. package/dist/tt-grid.js +106 -0
  210. package/dist/tt-grid.js.map +1 -0
  211. package/dist/tt-icon.d.ts +20 -0
  212. package/dist/tt-icon.d.ts.map +1 -0
  213. package/dist/tt-icon.js +510 -0
  214. package/dist/tt-icon.js.map +1 -0
  215. package/dist/tt-image.d.ts +59 -0
  216. package/dist/tt-image.d.ts.map +1 -0
  217. package/dist/tt-image.js +314 -0
  218. package/dist/tt-image.js.map +1 -0
  219. package/dist/tt-inbox.d.ts +45 -0
  220. package/dist/tt-inbox.d.ts.map +1 -0
  221. package/dist/tt-inbox.js +275 -0
  222. package/dist/tt-inbox.js.map +1 -0
  223. package/dist/tt-input.d.ts +43 -0
  224. package/dist/tt-input.d.ts.map +1 -0
  225. package/dist/tt-input.js +476 -0
  226. package/dist/tt-input.js.map +1 -0
  227. package/dist/tt-kbd.d.ts +39 -0
  228. package/dist/tt-kbd.d.ts.map +1 -0
  229. package/dist/tt-kbd.js +145 -0
  230. package/dist/tt-kbd.js.map +1 -0
  231. package/dist/tt-key-values.d.ts +17 -0
  232. package/dist/tt-key-values.d.ts.map +1 -0
  233. package/dist/tt-key-values.js +126 -0
  234. package/dist/tt-key-values.js.map +1 -0
  235. package/dist/tt-knowledge-doc.d.ts +24 -0
  236. package/dist/tt-knowledge-doc.d.ts.map +1 -0
  237. package/dist/tt-knowledge-doc.js +120 -0
  238. package/dist/tt-knowledge-doc.js.map +1 -0
  239. package/dist/tt-layout.d.ts +36 -0
  240. package/dist/tt-layout.d.ts.map +1 -0
  241. package/dist/tt-layout.js +318 -0
  242. package/dist/tt-layout.js.map +1 -0
  243. package/dist/tt-modal.d.ts +32 -0
  244. package/dist/tt-modal.d.ts.map +1 -0
  245. package/dist/tt-modal.js +553 -0
  246. package/dist/tt-modal.js.map +1 -0
  247. package/dist/tt-navbar.d.ts +33 -0
  248. package/dist/tt-navbar.d.ts.map +1 -0
  249. package/dist/tt-navbar.js +390 -0
  250. package/dist/tt-navbar.js.map +1 -0
  251. package/dist/tt-page-header.d.ts +28 -0
  252. package/dist/tt-page-header.d.ts.map +1 -0
  253. package/dist/tt-page-header.js +166 -0
  254. package/dist/tt-page-header.js.map +1 -0
  255. package/dist/tt-page.d.ts +14 -0
  256. package/dist/tt-page.d.ts.map +1 -0
  257. package/dist/tt-page.js +163 -0
  258. package/dist/tt-page.js.map +1 -0
  259. package/dist/tt-pagination.d.ts +27 -0
  260. package/dist/tt-pagination.d.ts.map +1 -0
  261. package/dist/tt-pagination.js +194 -0
  262. package/dist/tt-pagination.js.map +1 -0
  263. package/dist/tt-preview.d.ts +11 -0
  264. package/dist/tt-preview.d.ts.map +1 -0
  265. package/dist/tt-preview.js +68 -0
  266. package/dist/tt-preview.js.map +1 -0
  267. package/dist/tt-product.d.ts +40 -0
  268. package/dist/tt-product.d.ts.map +1 -0
  269. package/dist/tt-product.js +590 -0
  270. package/dist/tt-product.js.map +1 -0
  271. package/dist/tt-profile-card.d.ts +23 -0
  272. package/dist/tt-profile-card.d.ts.map +1 -0
  273. package/dist/tt-profile-card.js +199 -0
  274. package/dist/tt-profile-card.js.map +1 -0
  275. package/dist/tt-progress.d.ts +26 -0
  276. package/dist/tt-progress.d.ts.map +1 -0
  277. package/dist/tt-progress.js +156 -0
  278. package/dist/tt-progress.js.map +1 -0
  279. package/dist/tt-quantity.d.ts +36 -0
  280. package/dist/tt-quantity.d.ts.map +1 -0
  281. package/dist/tt-quantity.js +396 -0
  282. package/dist/tt-quantity.js.map +1 -0
  283. package/dist/tt-radio-group.d.ts +50 -0
  284. package/dist/tt-radio-group.d.ts.map +1 -0
  285. package/dist/tt-radio-group.js +372 -0
  286. package/dist/tt-radio-group.js.map +1 -0
  287. package/dist/tt-rating.d.ts +54 -0
  288. package/dist/tt-rating.d.ts.map +1 -0
  289. package/dist/tt-rating.js +312 -0
  290. package/dist/tt-rating.js.map +1 -0
  291. package/dist/tt-search.d.ts +47 -0
  292. package/dist/tt-search.d.ts.map +1 -0
  293. package/dist/tt-search.js +360 -0
  294. package/dist/tt-search.js.map +1 -0
  295. package/dist/tt-section.d.ts +13 -0
  296. package/dist/tt-section.d.ts.map +1 -0
  297. package/dist/tt-section.js +98 -0
  298. package/dist/tt-section.js.map +1 -0
  299. package/dist/tt-select.d.ts +62 -0
  300. package/dist/tt-select.d.ts.map +1 -0
  301. package/dist/tt-select.js +662 -0
  302. package/dist/tt-select.js.map +1 -0
  303. package/dist/tt-skeleton.d.ts +20 -0
  304. package/dist/tt-skeleton.d.ts.map +1 -0
  305. package/dist/tt-skeleton.js +143 -0
  306. package/dist/tt-skeleton.js.map +1 -0
  307. package/dist/tt-slider.d.ts +74 -0
  308. package/dist/tt-slider.d.ts.map +1 -0
  309. package/dist/tt-slider.js +426 -0
  310. package/dist/tt-slider.js.map +1 -0
  311. package/dist/tt-social-links.d.ts +34 -0
  312. package/dist/tt-social-links.d.ts.map +1 -0
  313. package/dist/tt-social-links.js +242 -0
  314. package/dist/tt-social-links.js.map +1 -0
  315. package/dist/tt-sparkline.d.ts +19 -0
  316. package/dist/tt-sparkline.d.ts.map +1 -0
  317. package/dist/tt-sparkline.js +191 -0
  318. package/dist/tt-sparkline.js.map +1 -0
  319. package/dist/tt-spinner.d.ts +19 -0
  320. package/dist/tt-spinner.d.ts.map +1 -0
  321. package/dist/tt-spinner.js +93 -0
  322. package/dist/tt-spinner.js.map +1 -0
  323. package/dist/tt-stack.d.ts +42 -0
  324. package/dist/tt-stack.d.ts.map +1 -0
  325. package/dist/tt-stack.js +158 -0
  326. package/dist/tt-stack.js.map +1 -0
  327. package/dist/tt-stat.d.ts +17 -0
  328. package/dist/tt-stat.d.ts.map +1 -0
  329. package/dist/tt-stat.js +134 -0
  330. package/dist/tt-stat.js.map +1 -0
  331. package/dist/tt-switch.d.ts +39 -0
  332. package/dist/tt-switch.d.ts.map +1 -0
  333. package/dist/tt-switch.js +254 -0
  334. package/dist/tt-switch.js.map +1 -0
  335. package/dist/tt-switcher.d.ts +23 -0
  336. package/dist/tt-switcher.d.ts.map +1 -0
  337. package/dist/tt-switcher.js +203 -0
  338. package/dist/tt-switcher.js.map +1 -0
  339. package/dist/tt-table-cell.d.ts +26 -0
  340. package/dist/tt-table-cell.d.ts.map +1 -0
  341. package/dist/tt-table-cell.js +121 -0
  342. package/dist/tt-table-cell.js.map +1 -0
  343. package/dist/tt-table-row.d.ts +31 -0
  344. package/dist/tt-table-row.d.ts.map +1 -0
  345. package/dist/tt-table-row.js +72 -0
  346. package/dist/tt-table-row.js.map +1 -0
  347. package/dist/tt-table.d.ts +44 -0
  348. package/dist/tt-table.d.ts.map +1 -0
  349. package/dist/tt-table.js +270 -0
  350. package/dist/tt-table.js.map +1 -0
  351. package/dist/tt-tabs.d.ts +31 -0
  352. package/dist/tt-tabs.d.ts.map +1 -0
  353. package/dist/tt-tabs.js +223 -0
  354. package/dist/tt-tabs.js.map +1 -0
  355. package/dist/tt-tag-list.d.ts +19 -0
  356. package/dist/tt-tag-list.d.ts.map +1 -0
  357. package/dist/tt-tag-list.js +136 -0
  358. package/dist/tt-tag-list.js.map +1 -0
  359. package/dist/tt-text.d.ts +52 -0
  360. package/dist/tt-text.d.ts.map +1 -0
  361. package/dist/tt-text.js +337 -0
  362. package/dist/tt-text.js.map +1 -0
  363. package/dist/tt-textarea.d.ts +43 -0
  364. package/dist/tt-textarea.d.ts.map +1 -0
  365. package/dist/tt-textarea.js +356 -0
  366. package/dist/tt-textarea.js.map +1 -0
  367. package/dist/tt-thread.d.ts +62 -0
  368. package/dist/tt-thread.d.ts.map +1 -0
  369. package/dist/tt-thread.js +374 -0
  370. package/dist/tt-thread.js.map +1 -0
  371. package/dist/tt-toast.d.ts +49 -0
  372. package/dist/tt-toast.d.ts.map +1 -0
  373. package/dist/tt-toast.js +440 -0
  374. package/dist/tt-toast.js.map +1 -0
  375. package/dist/tt-toggle-group.d.ts +73 -0
  376. package/dist/tt-toggle-group.d.ts.map +1 -0
  377. package/dist/tt-toggle-group.js +273 -0
  378. package/dist/tt-toggle-group.js.map +1 -0
  379. package/dist/tt-toggle.d.ts +54 -0
  380. package/dist/tt-toggle.d.ts.map +1 -0
  381. package/dist/tt-toggle.js +232 -0
  382. package/dist/tt-toggle.js.map +1 -0
  383. package/dist/tt-toolbar.d.ts +26 -0
  384. package/dist/tt-toolbar.d.ts.map +1 -0
  385. package/dist/tt-toolbar.js +164 -0
  386. package/dist/tt-toolbar.js.map +1 -0
  387. package/dist/tt-tooltip.d.ts +42 -0
  388. package/dist/tt-tooltip.d.ts.map +1 -0
  389. package/dist/tt-tooltip.js +299 -0
  390. package/dist/tt-tooltip.js.map +1 -0
  391. package/package.json +84 -4
  392. package/vscode.html-custom-data.json +2907 -0
@@ -0,0 +1,136 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from "lit";
8
+ import { property, state, customElement } from "lit/decorators.js";
9
+ import "./tt-badge.js";
10
+ let TTTagList = class TTTagList extends LitElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.tags = [];
14
+ // How many to show before collapsing the rest. 0 means show all.
15
+ // A fixed count rather than measuring the container: predictable, and
16
+ // it cannot flicker or give a different answer on every resize.
17
+ this.max = 0;
18
+ // Whether the overflow indicator can be clicked to reveal the rest.
19
+ this.expandable = false;
20
+ // Purely visual, nobody outside needs it, so @state not @property.
21
+ this.expanded = false;
22
+ }
23
+ get visibleTags() {
24
+ if (this.max === 0 || this.expanded) {
25
+ return this.tags;
26
+ }
27
+ // slice returns a new array; it does not modify the original.
28
+ return this.tags.slice(0, this.max);
29
+ }
30
+ get hiddenCount() {
31
+ return this.tags.length - this.visibleTags.length;
32
+ }
33
+ expand() {
34
+ this.expanded = true;
35
+ }
36
+ static { this.styles = css `
37
+ /* The browser's own [hidden] rule loses to any :host display, so a
38
+ hidden element would still show. Important, so it always wins. */
39
+ :host([hidden]) {
40
+ display: none !important;
41
+ }
42
+
43
+ :host {
44
+ display: block;
45
+ font-family: var(--tt-font-sans);
46
+ }
47
+
48
+ .list {
49
+ display: flex;
50
+ flex-wrap: wrap;
51
+ align-items: center;
52
+ gap: var(--tt-space-1);
53
+ }
54
+
55
+ /*
56
+ A button, not a badge, because it is interactive: it has to be
57
+ focusable and reachable by keyboard. Styled to match a badge so it
58
+ does not look foreign next to them.
59
+ */
60
+ .more {
61
+ border: none;
62
+ background: transparent;
63
+
64
+ padding: 2px var(--tt-space-2);
65
+ border-radius: var(--tt-radius-full);
66
+
67
+ color: var(--tt-muted-foreground);
68
+
69
+ font: inherit;
70
+ font-size: var(--tt-text-xs);
71
+ font-weight: var(--tt-weight-semibold);
72
+ white-space: nowrap;
73
+
74
+ cursor: pointer;
75
+ }
76
+
77
+ .more:hover {
78
+ color: var(--tt-foreground);
79
+ background: var(--tt-accent);
80
+ }
81
+
82
+ .more:focus-visible {
83
+ outline: var(--tt-ring-width) solid var(--tt-ring);
84
+ outline-offset: var(--tt-ring-offset);
85
+ }
86
+
87
+ /* Not interactive, so it renders as plain text rather than a button. */
88
+ .more-static {
89
+ padding: 2px var(--tt-space-2);
90
+ color: var(--tt-muted-foreground);
91
+ font-size: var(--tt-text-xs);
92
+ font-weight: var(--tt-weight-semibold);
93
+ white-space: nowrap;
94
+ }
95
+ `; }
96
+ render() {
97
+ const hidden = this.hiddenCount;
98
+ return html `
99
+ <div class="list" part="list">
100
+ ${this.visibleTags.map((tag) => html `<tt-badge>${tag}</tt-badge>`)}
101
+
102
+ ${hidden > 0
103
+ ? this.expandable
104
+ ? html `
105
+ <button
106
+ class="more"
107
+ part="more"
108
+ @click=${this.expand}
109
+ aria-label=${`Show ${hidden} more`}
110
+ >
111
+ +${hidden} more
112
+ </button>
113
+ `
114
+ : html `<span class="more-static" part="more">+${hidden}</span>`
115
+ : ""}
116
+ </div>
117
+ `;
118
+ }
119
+ };
120
+ __decorate([
121
+ property({ type: Array })
122
+ ], TTTagList.prototype, "tags", void 0);
123
+ __decorate([
124
+ property({ type: Number })
125
+ ], TTTagList.prototype, "max", void 0);
126
+ __decorate([
127
+ property({ type: Boolean })
128
+ ], TTTagList.prototype, "expandable", void 0);
129
+ __decorate([
130
+ state()
131
+ ], TTTagList.prototype, "expanded", void 0);
132
+ TTTagList = __decorate([
133
+ customElement("tt-tag-list")
134
+ ], TTTagList);
135
+ export { TTTagList };
136
+ //# sourceMappingURL=tt-tag-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tt-tag-list.js","sourceRoot":"","sources":["../src/tt-tag-list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,eAAe,CAAC;AAGhB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QACsB,SAAI,GAAa,EAAE,CAAC;QAE/C,iEAAiE;QACjE,sEAAsE;QACtE,gEAAgE;QACpC,QAAG,GAAG,CA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3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCAAS;AAGP;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CAAoB;AAG/B;IAAhB,KAAK,EAAE;2CAA0B;AAZvB,SAAS;IADrB,aAAa,CAAC,aAAa,CAAC;GAChB,SAAS,CAoHrB"}
@@ -0,0 +1,52 @@
1
+ import { LitElement } from "lit";
2
+ export type TextAs = "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
3
+ export type TextSize = "auto" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
4
+ export type TextWeight = "auto" | "regular" | "medium" | "semibold" | "bold";
5
+ export type TextTone = "default" | "muted" | "brand" | "success" | "warning" | "danger";
6
+ export type TextAlign = "start" | "center" | "end" | "justify";
7
+ /**
8
+ * A heading, a paragraph or a run of text, on the type scale.
9
+ *
10
+ * Every component styles its own text, so the library had no general
11
+ * one, and the apps wrote `<h2 style="font-size: ...">` by hand with a
12
+ * size that matched no token. This one can only take a step of the
13
+ * scale, a weight token and a colour token, so it follows the theme,
14
+ * dark mode included, and never drifts.
15
+ *
16
+ * ---------------------------------------------------------------------
17
+ * TWO SEPARATE QUESTIONS: WHAT IT IS, AND HOW IT LOOKS.
18
+ *
19
+ * `as` is meaning. It picks the real element in the shadow root, so an
20
+ * h2 is an h2 to a screen reader and in the page outline. `size` and
21
+ * `weight` are looks. They stay separate because the two disagree all
22
+ * the time: the heading of a small card is an h3 for the outline but
23
+ * should not be drawn at h3 size.
24
+ *
25
+ * Left on "auto", size and weight follow the tag: h1 is 3xl bold down
26
+ * to h6 at sm semibold, a paragraph is md regular. Setting either one
27
+ * overrides only that one.
28
+ *
29
+ * ---------------------------------------------------------------------
30
+ * THE TYPE IS SET ON THE HOST.
31
+ *
32
+ * Every rule below is a :host rule, and the element inside only
33
+ * inherits. So a consumer's own `font-size` or `color` on the element
34
+ * simply wins, because a rule from outside beats :host, the same reason
35
+ * tt-stack keeps its layout on the host.
36
+ */
37
+ export declare class TTText extends LitElement {
38
+ as: TextAs;
39
+ size: TextSize;
40
+ weight: TextWeight;
41
+ tone: TextTone;
42
+ align: TextAlign;
43
+ maxLines: number;
44
+ static styles: import("lit").CSSResult;
45
+ render(): import("lit-html").TemplateResult;
46
+ }
47
+ declare global {
48
+ interface HTMLElementTagNameMap {
49
+ "tt-text": TTText;
50
+ }
51
+ }
52
+ //# sourceMappingURL=tt-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tt-text.d.ts","sourceRoot":"","sources":["../src/tt-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,KAAK,CAAC;AAK/C,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AACjF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AACxF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAmB/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACa,MAAO,SAAQ,UAAU;IAKO,EAAE,EAAE,MAAM,CAAO;IAGjB,IAAI,EAAE,QAAQ,CAAU;IAExB,MAAM,EAAE,UAAU,CAAU;IAI5B,IAAI,EAAE,QAAQ,CAAa;IAE3B,KAAK,EAAE,SAAS,CAAW;IAKlB,QAAQ,SAAK;IAEjE,MAAM,CAAC,MAAM,0BA8NX;IAEF,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -0,0 +1,337 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, css, nothing } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import { html as staticHtml, literal } from "lit/static-html.js";
10
+ /*
11
+ The tags `as` may render. `literal` makes each one a constant written
12
+ in this file, which is what lets the tag be dynamic without
13
+ unsafeStatic: nothing a consumer passes ever becomes markup. A value
14
+ not in the list falls back to a paragraph.
15
+ */
16
+ const TAGS = {
17
+ p: literal `p`,
18
+ span: literal `span`,
19
+ h1: literal `h1`,
20
+ h2: literal `h2`,
21
+ h3: literal `h3`,
22
+ h4: literal `h4`,
23
+ h5: literal `h5`,
24
+ h6: literal `h6`,
25
+ };
26
+ /**
27
+ * A heading, a paragraph or a run of text, on the type scale.
28
+ *
29
+ * Every component styles its own text, so the library had no general
30
+ * one, and the apps wrote `<h2 style="font-size: ...">` by hand with a
31
+ * size that matched no token. This one can only take a step of the
32
+ * scale, a weight token and a colour token, so it follows the theme,
33
+ * dark mode included, and never drifts.
34
+ *
35
+ * ---------------------------------------------------------------------
36
+ * TWO SEPARATE QUESTIONS: WHAT IT IS, AND HOW IT LOOKS.
37
+ *
38
+ * `as` is meaning. It picks the real element in the shadow root, so an
39
+ * h2 is an h2 to a screen reader and in the page outline. `size` and
40
+ * `weight` are looks. They stay separate because the two disagree all
41
+ * the time: the heading of a small card is an h3 for the outline but
42
+ * should not be drawn at h3 size.
43
+ *
44
+ * Left on "auto", size and weight follow the tag: h1 is 3xl bold down
45
+ * to h6 at sm semibold, a paragraph is md regular. Setting either one
46
+ * overrides only that one.
47
+ *
48
+ * ---------------------------------------------------------------------
49
+ * THE TYPE IS SET ON THE HOST.
50
+ *
51
+ * Every rule below is a :host rule, and the element inside only
52
+ * inherits. So a consumer's own `font-size` or `color` on the element
53
+ * simply wins, because a rule from outside beats :host, the same reason
54
+ * tt-stack keeps its layout on the host.
55
+ */
56
+ let TTText = class TTText extends LitElement {
57
+ constructor() {
58
+ super(...arguments);
59
+ /*
60
+ Reflected, all of them. Each style is a :host([attr]) rule, and a
61
+ selector matches an attribute, never a property.
62
+ */
63
+ this.as = "p";
64
+ // A step of the type scale, named like its token: "2xl" is --tt-text-2xl.
65
+ this.size = "auto";
66
+ this.weight = "auto";
67
+ // Colour from the theme only. "default" is the foreground, or for a
68
+ // span, the colour of the text around it.
69
+ this.tone = "default";
70
+ this.align = "start";
71
+ // Cuts the text off after this many lines, with an ellipsis. 0 shows
72
+ // it all. Not reflected: the number reaches the CSS as a custom
73
+ // property, so no attribute rule needs to see it.
74
+ this.maxLines = 0;
75
+ }
76
+ static { this.styles = css `
77
+ /*
78
+ The paragraph, which is also the fallback for a value it does not
79
+ know.
80
+ */
81
+ :host {
82
+ display: block;
83
+
84
+ font-family: var(--tt-font-sans);
85
+ font-size: var(--tt-text-md);
86
+ font-weight: var(--tt-weight-regular);
87
+ line-height: var(--tt-leading-normal);
88
+ letter-spacing: normal;
89
+ color: var(--tt-foreground);
90
+
91
+ /*
92
+ align is also an old HTML attribute, and Chrome turns it into a
93
+ text-align of its own on any element. Setting it here, from the
94
+ start value up, keeps that leftover rule out.
95
+ */
96
+ text-align: start;
97
+
98
+ -webkit-font-smoothing: antialiased;
99
+
100
+ /* Avoids a single word left alone on the last line. */
101
+ text-wrap: pretty;
102
+ }
103
+
104
+ /* ---- The tag's own look, used while size and weight are "auto" ----
105
+
106
+ These come BEFORE the size and weight rules on purpose. Both sets
107
+ have the same specificity, so source order decides, and an
108
+ explicit size has to beat the tag's. */
109
+
110
+ :host([as^="h"]) {
111
+ font-weight: var(--tt-weight-semibold);
112
+ line-height: var(--tt-leading-snug);
113
+
114
+ /* Balanced lines: a two-line heading splits near the middle
115
+ instead of leaving one word on the second line. */
116
+ text-wrap: balance;
117
+ }
118
+
119
+ /* Page-level headings take the display face, which a theme can
120
+ change; h4 and below are component-level and stay in the sans. */
121
+ :host([as="h1"]),
122
+ :host([as="h2"]),
123
+ :host([as="h3"]) {
124
+ font-family: var(--tt-font-display);
125
+ }
126
+
127
+ :host([as="h1"]) {
128
+ font-size: var(--tt-text-3xl);
129
+ font-weight: var(--tt-weight-bold);
130
+ line-height: var(--tt-leading-tight);
131
+ letter-spacing: -0.02em;
132
+ }
133
+
134
+ :host([as="h2"]) {
135
+ font-size: var(--tt-text-2xl);
136
+ font-weight: var(--tt-weight-bold);
137
+ line-height: var(--tt-leading-tight);
138
+ letter-spacing: -0.02em;
139
+ }
140
+
141
+ :host([as="h3"]) {
142
+ font-size: var(--tt-text-xl);
143
+ letter-spacing: -0.01em;
144
+ }
145
+
146
+ :host([as="h4"]) {
147
+ font-size: var(--tt-text-lg);
148
+ }
149
+
150
+ :host([as="h5"]) {
151
+ font-size: var(--tt-text-md);
152
+ }
153
+
154
+ :host([as="h6"]) {
155
+ font-size: var(--tt-text-sm);
156
+ }
157
+
158
+ /*
159
+ A span is a run inside other text, so it takes everything from the
160
+ text around it: "Total <tt-text as="span" weight="bold">" changes
161
+ the weight and nothing else.
162
+ */
163
+ :host([as="span"]) {
164
+ display: inline;
165
+
166
+ font: inherit;
167
+ letter-spacing: inherit;
168
+ color: inherit;
169
+ }
170
+
171
+ /* ---- Explicit size ----
172
+
173
+ Each step brings its own line height and tracking, because large
174
+ text needs less of both. Every rule sets all three, so a step
175
+ chosen on a heading also undoes the tag's values. */
176
+
177
+ :host([size="xs"]) {
178
+ font-size: var(--tt-text-xs);
179
+ line-height: var(--tt-leading-normal);
180
+ letter-spacing: normal;
181
+ }
182
+ :host([size="sm"]) {
183
+ font-size: var(--tt-text-sm);
184
+ line-height: var(--tt-leading-normal);
185
+ letter-spacing: normal;
186
+ }
187
+ :host([size="md"]) {
188
+ font-size: var(--tt-text-md);
189
+ line-height: var(--tt-leading-normal);
190
+ letter-spacing: normal;
191
+ }
192
+ :host([size="lg"]) {
193
+ font-size: var(--tt-text-lg);
194
+ line-height: var(--tt-leading-snug);
195
+ letter-spacing: normal;
196
+ }
197
+ :host([size="xl"]) {
198
+ font-size: var(--tt-text-xl);
199
+ line-height: var(--tt-leading-snug);
200
+ letter-spacing: -0.01em;
201
+ }
202
+ :host([size="2xl"]) {
203
+ font-size: var(--tt-text-2xl);
204
+ line-height: var(--tt-leading-tight);
205
+ letter-spacing: -0.02em;
206
+ }
207
+ :host([size="3xl"]) {
208
+ font-size: var(--tt-text-3xl);
209
+ line-height: var(--tt-leading-tight);
210
+ letter-spacing: -0.02em;
211
+ }
212
+
213
+ /* ---- Explicit weight ---- */
214
+
215
+ :host([weight="regular"]) {
216
+ font-weight: var(--tt-weight-regular);
217
+ }
218
+ :host([weight="medium"]) {
219
+ font-weight: var(--tt-weight-medium);
220
+ }
221
+ :host([weight="semibold"]) {
222
+ font-weight: var(--tt-weight-semibold);
223
+ }
224
+ :host([weight="bold"]) {
225
+ font-weight: var(--tt-weight-bold);
226
+ }
227
+
228
+ /* ---- Tone ----
229
+
230
+ Tokens only. Each one is checked by the theme to read at 4.5:1 on
231
+ the page and on a card, in both themes, so no tone here can fail
232
+ contrast however it is combined. */
233
+
234
+ :host([tone="muted"]) {
235
+ color: var(--tt-muted-foreground);
236
+ }
237
+ :host([tone="brand"]) {
238
+ color: var(--tt-brand);
239
+ }
240
+ :host([tone="success"]) {
241
+ color: var(--tt-success);
242
+ }
243
+ :host([tone="warning"]) {
244
+ color: var(--tt-warning);
245
+ }
246
+ :host([tone="danger"]) {
247
+ color: var(--tt-destructive);
248
+ }
249
+
250
+ /* ---- Alignment ---- */
251
+
252
+ :host([align="center"]) {
253
+ text-align: center;
254
+ }
255
+ :host([align="end"]) {
256
+ text-align: end;
257
+ }
258
+ :host([align="justify"]) {
259
+ text-align: justify;
260
+ }
261
+
262
+ /*
263
+ Last, so it beats the display: inline of a span as well. The
264
+ browser's own [hidden] rule is weaker than any author style.
265
+ */
266
+ :host([hidden]) {
267
+ display: none;
268
+ }
269
+
270
+ /*
271
+ The real element only inherits: margin 0 and font: inherit undo the
272
+ browser's own heading and paragraph styles, so the host's rules are
273
+ the only ones that count. Colour, tracking and alignment inherit
274
+ on their own.
275
+
276
+ break-word, not anywhere: it still breaks a long URL, but leaves
277
+ the text's minimum width at its longest word, so a flex row cannot
278
+ squeeze it into a column of single letters.
279
+ */
280
+ .text {
281
+ margin: 0;
282
+ font: inherit;
283
+
284
+ overflow-wrap: break-word;
285
+ }
286
+
287
+ /*
288
+ The clamp. line-clamp needs the -webkit-box display, which also
289
+ makes a clamped span behave as a block.
290
+ */
291
+ .clamped {
292
+ display: -webkit-box;
293
+ -webkit-box-orient: vertical;
294
+ -webkit-line-clamp: var(--_lines);
295
+ line-clamp: var(--_lines);
296
+ overflow: hidden;
297
+ }
298
+ `; }
299
+ render() {
300
+ const tag = TAGS[this.as] ?? TAGS.p;
301
+ const lines = Math.max(0, Math.floor(this.maxLines || 0));
302
+ /*
303
+ The line count goes on the inner element's own style rather than
304
+ into the stylesheet, which is shared by every instance: two texts
305
+ with different counts would otherwise share whichever rendered
306
+ last.
307
+ */
308
+ return staticHtml `<${tag}
309
+ class=${lines > 0 ? "text clamped" : "text"}
310
+ part="text"
311
+ style=${lines > 0 ? `--_lines: ${lines}` : nothing}
312
+ ><slot></slot></${tag}>`;
313
+ }
314
+ };
315
+ __decorate([
316
+ property({ type: String, reflect: true })
317
+ ], TTText.prototype, "as", void 0);
318
+ __decorate([
319
+ property({ type: String, reflect: true })
320
+ ], TTText.prototype, "size", void 0);
321
+ __decorate([
322
+ property({ type: String, reflect: true })
323
+ ], TTText.prototype, "weight", void 0);
324
+ __decorate([
325
+ property({ type: String, reflect: true })
326
+ ], TTText.prototype, "tone", void 0);
327
+ __decorate([
328
+ property({ type: String, reflect: true })
329
+ ], TTText.prototype, "align", void 0);
330
+ __decorate([
331
+ property({ type: Number, attribute: "max-lines" })
332
+ ], TTText.prototype, "maxLines", void 0);
333
+ TTText = __decorate([
334
+ customElement("tt-text")
335
+ ], TTText);
336
+ export { TTText };
337
+ //# sourceMappingURL=tt-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tt-text.js","sourceRoot":"","sources":["../src/tt-text.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AASjE;;;;;EAKE;AACF,MAAM,IAAI,GAAgC;IACxC,CAAC,EAAE,OAAO,CAAA,GAAG;IACb,IAAI,EAAE,OAAO,CAAA,MAAM;IACnB,EAAE,EAAE,OAAO,CAAA,IAAI;IACf,EAAE,EAAE,OAAO,CAAA,IAAI;IACf,EAAE,EAAE,OAAO,CAAA,IAAI;IACf,EAAE,EAAE,OAAO,CAAA,IAAI;IACf,EAAE,EAAE,OAAO,CAAA,IAAI;IACf,EAAE,EAAE,OAAO,CAAA,IAAI;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QACL;;;UAGE;QACyC,OAAE,GAAW,GAAG,CAAC;QAE5D,0EAA0E;QAC/B,SAAI,GAAa,MAAM,CAAC;QAExB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,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCAA6B;AAI5B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCAA4B;AAE3B;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAA4B;AAKlB;IAAnD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;wCAAc;AArBtD,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CAuQlB"}
@@ -0,0 +1,43 @@
1
+ import { LitElement } from "lit";
2
+ import type { PropertyValues } from "lit";
3
+ import type { AutoCompleteToken } from "./tt-input.js";
4
+ export declare class TTTextarea extends LitElement {
5
+ static formAssociated: boolean;
6
+ private internals;
7
+ label: string;
8
+ placeholder: string;
9
+ value: string;
10
+ name: string;
11
+ autocomplete?: AutoCompleteToken;
12
+ error: string;
13
+ labelHidden: boolean;
14
+ rows: number;
15
+ maxlength: number;
16
+ disabled: boolean;
17
+ required: boolean;
18
+ fullWidth: boolean;
19
+ autoGrow: boolean;
20
+ private field;
21
+ private fieldId;
22
+ get form(): HTMLFormElement | null;
23
+ get validity(): ValidityState;
24
+ checkValidity(): boolean;
25
+ reportValidity(): boolean;
26
+ connectedCallback(): void;
27
+ formResetCallback(): void;
28
+ formStateRestoreCallback(state: string): void;
29
+ updated(changed: PropertyValues): void;
30
+ private syncFormState;
31
+ private resize;
32
+ private handleInput;
33
+ private handleChange;
34
+ focus(options?: FocusOptions): void;
35
+ static styles: import("lit").CSSResult[];
36
+ render(): import("lit-html").TemplateResult<1>;
37
+ }
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ "tt-textarea": TTTextarea;
41
+ }
42
+ }
43
+ //# sourceMappingURL=tt-textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {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