@revotech-group/revotech-ui-kit 0.2.3 → 0.2.5

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 (456) hide show
  1. package/dist/library.css +12398 -0
  2. package/dist/rtg-ui-kit.js +15194 -0
  3. package/dist/rtg-ui-kit.umd.cjs +5439 -0
  4. package/dist/src/assets/icons/anchor.icon.d.ts +2 -0
  5. package/dist/src/assets/icons/app-window.icon.d.ts +2 -0
  6. package/dist/src/assets/icons/arrow-right.icon.d.ts +2 -0
  7. package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
  8. package/dist/src/assets/icons/arrow-up-right.icon.d.ts +2 -0
  9. package/dist/src/assets/icons/arrow-up.icon.d.ts +2 -0
  10. package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
  11. package/dist/src/assets/icons/asterisk.icon.d.ts +2 -0
  12. package/dist/src/assets/icons/badge-alert.icon.d.ts +2 -0
  13. package/dist/src/assets/icons/badge-check.icon.d.ts +2 -0
  14. package/dist/src/assets/icons/badge-info.icon.d.ts +2 -0
  15. package/dist/src/assets/icons/badge-x.icon.d.ts +2 -0
  16. package/dist/src/assets/icons/bell.icon.d.ts +2 -0
  17. package/dist/src/assets/icons/bookmark.icon.d.ts +2 -0
  18. package/dist/src/assets/icons/brand-javascript.icon.d.ts +2 -0
  19. package/dist/src/assets/icons/captions.icon.d.ts +2 -0
  20. package/dist/src/assets/icons/carousel-arrow-left.d.ts +1 -0
  21. package/dist/src/assets/icons/carousel-arrow-right.d.ts +1 -0
  22. package/dist/src/assets/icons/chart.icon.d.ts +1 -0
  23. package/dist/src/assets/icons/check.icon.d.ts +2 -0
  24. package/dist/src/assets/icons/chevron-right.icon.d.ts +2 -0
  25. package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
  26. package/dist/src/assets/icons/circle-alert.icon.d.ts +2 -0
  27. package/dist/src/assets/icons/circle-check.icon.d.ts +2 -0
  28. package/dist/src/assets/icons/circle-fading-arrow-up.icon.d.ts +2 -0
  29. package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
  30. package/dist/src/assets/icons/circle.icon.d.ts +1 -0
  31. package/dist/src/assets/icons/close.icon.d.ts +1 -0
  32. package/dist/src/assets/icons/cloud.icon.d.ts +2 -0
  33. package/dist/src/assets/icons/code.icon.d.ts +2 -0
  34. package/dist/src/assets/icons/copy.icon.d.ts +2 -0
  35. package/dist/src/assets/icons/corner-down-left.icon.d.ts +2 -0
  36. package/dist/src/assets/icons/credit-card.icon.d.ts +2 -0
  37. package/dist/src/assets/icons/decrease.icon.d.ts +1 -0
  38. package/dist/src/assets/icons/dot.icon.d.ts +1 -0
  39. package/dist/src/assets/icons/external-link.icon.d.ts +2 -0
  40. package/dist/src/assets/icons/eye-off.d.ts +1 -0
  41. package/dist/src/assets/icons/eye-off.icon.d.ts +2 -0
  42. package/dist/src/assets/icons/eye-on.d.ts +1 -0
  43. package/dist/src/assets/icons/file-code.icon.d.ts +2 -0
  44. package/dist/src/assets/icons/folder-code.icon.d.ts +2 -0
  45. package/dist/src/assets/icons/git-branch-minus.icon.d.ts +2 -0
  46. package/dist/src/assets/icons/git-branch-plus.icon.d.ts +2 -0
  47. package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
  48. package/dist/src/assets/icons/house.icon.d.ts +2 -0
  49. package/dist/src/assets/icons/inbox.icon.d.ts +2 -0
  50. package/dist/src/assets/icons/index.d.ts +64 -0
  51. package/dist/src/assets/icons/info.icon.d.ts +2 -0
  52. package/dist/src/assets/icons/loader-circle.icon.d.ts +2 -0
  53. package/dist/src/assets/icons/mail-warning.icon.d.ts +2 -0
  54. package/dist/src/assets/icons/mail.icon.d.ts +2 -0
  55. package/dist/src/assets/icons/minus.icon.d.ts +2 -0
  56. package/dist/src/assets/icons/plus.icon.d.ts +1 -0
  57. package/dist/src/assets/icons/rabbit.icon.d.ts +2 -0
  58. package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
  59. package/dist/src/assets/icons/radio.icon.d.ts +1 -0
  60. package/dist/src/assets/icons/refresh-ccw.icon.d.ts +2 -0
  61. package/dist/src/assets/icons/refresh-cw.icon.d.ts +2 -0
  62. package/dist/src/assets/icons/search.icon.d.ts +2 -0
  63. package/dist/src/assets/icons/settings.icon.d.ts +2 -0
  64. package/dist/src/assets/icons/shield-alert.icon.d.ts +2 -0
  65. package/dist/src/assets/icons/shopping-bag.icon.d.ts +2 -0
  66. package/dist/src/assets/icons/star.icon.d.ts +2 -0
  67. package/dist/src/assets/icons/tick.icon.d.ts +1 -0
  68. package/dist/src/assets/icons/wand.icon.d.ts +2 -0
  69. package/dist/src/components/index.d.ts +2 -0
  70. package/dist/src/components/ui/accordion/accordion-content.d.ts +20 -0
  71. package/dist/src/components/ui/accordion/accordion-item.d.ts +21 -0
  72. package/dist/src/components/ui/accordion/accordion-trigger.d.ts +17 -0
  73. package/dist/src/components/ui/accordion/accordion.d.ts +25 -0
  74. package/dist/src/components/ui/accordion/accordion.defs.d.ts +10 -0
  75. package/dist/src/components/ui/accordion/accordion.stories.d.ts +10 -0
  76. package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
  77. package/dist/src/components/ui/alert/_alert-action.d.ts +21 -0
  78. package/dist/src/components/ui/alert/_alert-description.d.ts +21 -0
  79. package/dist/src/components/ui/alert/_alert-title.d.ts +20 -0
  80. package/dist/src/components/ui/alert/_alert.d.ts +25 -0
  81. package/dist/src/components/ui/alert/alert.d.ts +16 -0
  82. package/dist/src/components/ui/alert/alert.defs.d.ts +4 -0
  83. package/dist/src/components/ui/alert/alert.stories.d.ts +12 -0
  84. package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +16 -0
  85. package/dist/src/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +4 -0
  86. package/dist/src/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +4 -0
  87. package/dist/src/components/ui/avatar/_avatar-badge.d.ts +21 -0
  88. package/dist/src/components/ui/avatar/_avatar-fallback.d.ts +21 -0
  89. package/dist/src/components/ui/avatar/_avatar-group-count.d.ts +21 -0
  90. package/dist/src/components/ui/avatar/_avatar-group.d.ts +21 -0
  91. package/dist/src/components/ui/avatar/_avatar-image.d.ts +28 -0
  92. package/dist/src/components/ui/avatar/_avatar.d.ts +65 -0
  93. package/dist/src/components/ui/avatar/avatar.d.ts +20 -0
  94. package/dist/src/components/ui/avatar/avatar.defs.d.ts +8 -0
  95. package/dist/src/components/ui/avatar/avatar.stories.d.ts +13 -0
  96. package/dist/src/components/ui/badge/_badge.d.ts +43 -0
  97. package/dist/src/components/ui/badge/badge.d.ts +10 -0
  98. package/dist/src/components/ui/badge/badge.defs.d.ts +8 -0
  99. package/dist/src/components/ui/badge/badge.stories.d.ts +10 -0
  100. package/dist/src/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +11 -0
  101. package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +14 -0
  102. package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +15 -0
  103. package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +14 -0
  104. package/dist/src/components/ui/breadcrumb/breadcrumb-separator.d.ts +11 -0
  105. package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +14 -0
  106. package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +21 -0
  107. package/dist/src/components/ui/breadcrumb/breadcrumb.stories.d.ts +4 -0
  108. package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -0
  109. package/dist/src/components/ui/button/_button.d.ts +62 -0
  110. package/dist/src/components/ui/button/button.d.ts +10 -0
  111. package/dist/src/components/ui/button/button.defs.d.ts +14 -0
  112. package/dist/src/components/ui/button/button.stories.d.ts +13 -0
  113. package/dist/src/components/ui/button/button.style.d.ts +4 -0
  114. package/dist/src/components/ui/calendar/calendar.d.ts +24 -0
  115. package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
  116. package/dist/src/components/ui/calendar/calendar.stories.d.ts +4 -0
  117. package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -0
  118. package/dist/src/components/ui/card/_card-action.d.ts +21 -0
  119. package/dist/src/components/ui/card/_card-content.d.ts +20 -0
  120. package/dist/src/components/ui/card/_card-description.d.ts +21 -0
  121. package/dist/src/components/ui/card/_card-footer.d.ts +26 -0
  122. package/dist/src/components/ui/card/_card-header.d.ts +26 -0
  123. package/dist/src/components/ui/card/_card-title.d.ts +20 -0
  124. package/dist/src/components/ui/card/_card.d.ts +25 -0
  125. package/dist/src/components/ui/card/card.d.ts +22 -0
  126. package/dist/src/components/ui/card/card.defs.d.ts +10 -0
  127. package/dist/src/components/ui/card/card.stories.d.ts +11 -0
  128. package/dist/src/components/ui/carousel/carousel.d.ts +24 -0
  129. package/dist/src/components/ui/carousel/carousel.stories.d.ts +6 -0
  130. package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
  131. package/dist/src/components/ui/checkbox/_checkbox.d.ts +92 -0
  132. package/dist/src/components/ui/checkbox/checkbox.d.ts +10 -0
  133. package/dist/src/components/ui/checkbox/checkbox.defs.d.ts +11 -0
  134. package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +13 -0
  135. package/dist/src/components/ui/collapsible/collapsible-content.d.ts +17 -0
  136. package/dist/src/components/ui/collapsible/collapsible-trigger.d.ts +17 -0
  137. package/dist/src/components/ui/collapsible/collapsible.d.ts +23 -0
  138. package/dist/src/components/ui/collapsible/collapsible.stories.d.ts +5 -0
  139. package/dist/src/components/ui/combobox/combo-box-empty.d.ts +14 -0
  140. package/dist/src/components/ui/combobox/combo-box-group.d.ts +37 -0
  141. package/dist/src/components/ui/combobox/combo-box-input.d.ts +17 -0
  142. package/dist/src/components/ui/combobox/combo-box-item.d.ts +25 -0
  143. package/dist/src/components/ui/combobox/combo-box-trigger.d.ts +18 -0
  144. package/dist/src/components/ui/combobox/combo-box-value.d.ts +18 -0
  145. package/dist/src/components/ui/combobox/combo-box.d.ts +35 -0
  146. package/dist/src/components/ui/combobox/combo-box.stories.d.ts +10 -0
  147. package/dist/src/components/ui/combobox/combo-box.styles.d.ts +14 -0
  148. package/dist/src/components/ui/command/command-empty.atom.d.ts +18 -0
  149. package/dist/src/components/ui/command/command-group.atom.d.ts +19 -0
  150. package/dist/src/components/ui/command/command-input.atom.d.ts +15 -0
  151. package/dist/src/components/ui/command/command-item.atom.d.ts +24 -0
  152. package/dist/src/components/ui/command/command-list.atom.d.ts +15 -0
  153. package/dist/src/components/ui/command/command-separator.atom.d.ts +14 -0
  154. package/dist/src/components/ui/command/command.d.ts +22 -0
  155. package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
  156. package/dist/src/components/ui/command/command.stories.d.ts +6 -0
  157. package/dist/src/components/ui/command/command.styles.d.ts +15 -0
  158. package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +16 -0
  159. package/dist/src/components/ui/context-menu/context-menu-content.d.ts +14 -0
  160. package/dist/src/components/ui/context-menu/context-menu-group.d.ts +10 -0
  161. package/dist/src/components/ui/context-menu/context-menu-item.d.ts +13 -0
  162. package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +16 -0
  163. package/dist/src/components/ui/context-menu/context-menu-seperator.d.ts +6 -0
  164. package/dist/src/components/ui/context-menu/context-menu-shortcut.d.ts +9 -0
  165. package/dist/src/components/ui/context-menu/context-menu-trigger.d.ts +5 -0
  166. package/dist/src/components/ui/context-menu/context-menu.d.ts +40 -0
  167. package/dist/src/components/ui/context-menu/context-menu.helpers.d.ts +1 -0
  168. package/dist/src/components/ui/context-menu/context-menu.styles.d.ts +20 -0
  169. package/dist/src/components/ui/context-menu/contextMenu.stories.d.ts +4 -0
  170. package/dist/src/components/ui/data-table/data-table.d.ts +39 -0
  171. package/dist/src/components/ui/data-table/data-table.stories.d.ts +5 -0
  172. package/dist/src/components/ui/date-picker/date-picker.d.ts +12 -0
  173. package/dist/src/components/ui/date-picker/date-picker.stories.d.ts +4 -0
  174. package/dist/src/components/ui/date-picker/date-picker.styles.d.ts +6 -0
  175. package/dist/src/components/ui/dialog/dialog-close.d.ts +15 -0
  176. package/dist/src/components/ui/dialog/dialog-content.d.ts +15 -0
  177. package/dist/src/components/ui/dialog/dialog-footer.d.ts +9 -0
  178. package/dist/src/components/ui/dialog/dialog-header.d.ts +7 -0
  179. package/dist/src/components/ui/dialog/dialog-overly.d.ts +5 -0
  180. package/dist/src/components/ui/dialog/dialog-trigger.d.ts +11 -0
  181. package/dist/src/components/ui/dialog/dialog.d.ts +30 -0
  182. package/dist/src/components/ui/dialog/dialog.stories.d.ts +6 -0
  183. package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -0
  184. package/dist/src/components/ui/drawer/drawer-close.d.ts +15 -0
  185. package/dist/src/components/ui/drawer/drawer-content.d.ts +14 -0
  186. package/dist/src/components/ui/drawer/drawer-description.d.ts +9 -0
  187. package/dist/src/components/ui/drawer/drawer-footer.d.ts +9 -0
  188. package/dist/src/components/ui/drawer/drawer-header.d.ts +8 -0
  189. package/dist/src/components/ui/drawer/drawer-overlay.d.ts +5 -0
  190. package/dist/src/components/ui/drawer/drawer-title.d.ts +9 -0
  191. package/dist/src/components/ui/drawer/drawer-trigger.d.ts +11 -0
  192. package/dist/src/components/ui/drawer/drawer.d.ts +40 -0
  193. package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
  194. package/dist/src/components/ui/drawer/drawer.stories.d.ts +4 -0
  195. package/dist/src/components/ui/drawer/drawer.styles.d.ts +14 -0
  196. package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +17 -0
  197. package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +13 -0
  198. package/dist/src/components/ui/dropdown-menu/dropdown-menu-group.d.ts +11 -0
  199. package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +17 -0
  200. package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +16 -0
  201. package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +8 -0
  202. package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +8 -0
  203. package/dist/src/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +5 -0
  204. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -0
  205. package/dist/src/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +3 -0
  206. package/dist/src/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +20 -0
  207. package/dist/src/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +6 -0
  208. package/dist/src/components/ui/empty/_empty-content.d.ts +23 -0
  209. package/dist/src/components/ui/empty/_empty-description.d.ts +23 -0
  210. package/dist/src/components/ui/empty/_empty-header.d.ts +23 -0
  211. package/dist/src/components/ui/empty/_empty-media.d.ts +29 -0
  212. package/dist/src/components/ui/empty/_empty-title.d.ts +22 -0
  213. package/dist/src/components/ui/empty/_empty.d.ts +28 -0
  214. package/dist/src/components/ui/empty/empty.d.ts +20 -0
  215. package/dist/src/components/ui/empty/empty.defs.d.ts +7 -0
  216. package/dist/src/components/ui/empty/empty.stories.d.ts +10 -0
  217. package/dist/src/components/ui/field/_field-content.d.ts +23 -0
  218. package/dist/src/components/ui/field/_field-description.d.ts +23 -0
  219. package/dist/src/components/ui/field/_field-error.d.ts +25 -0
  220. package/dist/src/components/ui/field/_field-group.d.ts +28 -0
  221. package/dist/src/components/ui/field/_field-label.d.ts +27 -0
  222. package/dist/src/components/ui/field/_field-legend.d.ts +30 -0
  223. package/dist/src/components/ui/field/_field-separator.d.ts +42 -0
  224. package/dist/src/components/ui/field/_field-set.d.ts +22 -0
  225. package/dist/src/components/ui/field/_field-title.d.ts +22 -0
  226. package/dist/src/components/ui/field/_field.d.ts +36 -0
  227. package/dist/src/components/ui/field/field.d.ts +29 -0
  228. package/dist/src/components/ui/field/field.defs.d.ts +23 -0
  229. package/dist/src/components/ui/field/field.stories.d.ts +16 -0
  230. package/dist/src/components/ui/form/form-context.d.ts +4 -0
  231. package/dist/src/components/ui/form/form-controller.d.ts +28 -0
  232. package/dist/src/components/ui/form/form-field-context.d.ts +3 -0
  233. package/dist/src/components/ui/form/form-item-context.d.ts +7 -0
  234. package/dist/src/components/ui/form/form.stories.d.ts +5 -0
  235. package/dist/src/components/ui/form/form.styles.d.ts +7 -0
  236. package/dist/src/components/ui/form/rtg-form-controller.d.ts +16 -0
  237. package/dist/src/components/ui/form/rtg-form-description.d.ts +13 -0
  238. package/dist/src/components/ui/form/rtg-form-field.d.ts +19 -0
  239. package/dist/src/components/ui/form/rtg-form-item.d.ts +16 -0
  240. package/dist/src/components/ui/form/rtg-form-label.d.ts +19 -0
  241. package/dist/src/components/ui/form/rtg-form-message.d.ts +17 -0
  242. package/dist/src/components/ui/form/rtg-form.d.ts +23 -0
  243. package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +15 -0
  244. package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +9 -0
  245. package/dist/src/components/ui/hoverCard/hover-card.d.ts +28 -0
  246. package/dist/src/components/ui/hoverCard/hover-card.stories.d.ts +4 -0
  247. package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -0
  248. package/dist/src/components/ui/index.d.ts +49 -0
  249. package/dist/src/components/ui/input/_input.d.ts +163 -0
  250. package/dist/src/components/ui/input/input.d.ts +11 -0
  251. package/dist/src/components/ui/input/input.defs.d.ts +28 -0
  252. package/dist/src/components/ui/input/input.stories.d.ts +16 -0
  253. package/dist/src/components/ui/input-group/_input-group-addon.d.ts +32 -0
  254. package/dist/src/components/ui/input-group/_input-group-button.d.ts +59 -0
  255. package/dist/src/components/ui/input-group/_input-group-input.d.ts +140 -0
  256. package/dist/src/components/ui/input-group/_input-group-text.d.ts +22 -0
  257. package/dist/src/components/ui/input-group/_input-group-textarea.d.ts +114 -0
  258. package/dist/src/components/ui/input-group/_input-group.d.ts +22 -0
  259. package/dist/src/components/ui/input-group/input-group.d.ts +20 -0
  260. package/dist/src/components/ui/input-group/input-group.defs.d.ts +16 -0
  261. package/dist/src/components/ui/input-group/input-group.stories.d.ts +15 -0
  262. package/dist/src/components/ui/input-otp/_input-otp-group.d.ts +25 -0
  263. package/dist/src/components/ui/input-otp/_input-otp-separator.d.ts +15 -0
  264. package/dist/src/components/ui/input-otp/_input-otp-slot.d.ts +34 -0
  265. package/dist/src/components/ui/input-otp/_input-otp.d.ts +212 -0
  266. package/dist/src/components/ui/input-otp/input-otp.d.ts +16 -0
  267. package/dist/src/components/ui/input-otp/input-otp.defs.d.ts +28 -0
  268. package/dist/src/components/ui/input-otp/input-otp.stories.d.ts +12 -0
  269. package/dist/src/components/ui/item/_item-actions.d.ts +22 -0
  270. package/dist/src/components/ui/item/_item-content.d.ts +22 -0
  271. package/dist/src/components/ui/item/_item-description.d.ts +22 -0
  272. package/dist/src/components/ui/item/_item-footer.d.ts +22 -0
  273. package/dist/src/components/ui/item/_item-group.d.ts +22 -0
  274. package/dist/src/components/ui/item/_item-header.d.ts +22 -0
  275. package/dist/src/components/ui/item/_item-media.d.ts +28 -0
  276. package/dist/src/components/ui/item/_item-separator.d.ts +22 -0
  277. package/dist/src/components/ui/item/_item-title.d.ts +22 -0
  278. package/dist/src/components/ui/item/_item.d.ts +42 -0
  279. package/dist/src/components/ui/item/item.d.ts +29 -0
  280. package/dist/src/components/ui/item/item.defs.d.ts +13 -0
  281. package/dist/src/components/ui/item/item.stories.d.ts +13 -0
  282. package/dist/src/components/ui/kbd/_kbd-group.d.ts +22 -0
  283. package/dist/src/components/ui/kbd/_kbd.d.ts +22 -0
  284. package/dist/src/components/ui/kbd/kbd.d.ts +12 -0
  285. package/dist/src/components/ui/kbd/kbd.stories.d.ts +8 -0
  286. package/dist/src/components/ui/label/_label.d.ts +26 -0
  287. package/dist/src/components/ui/label/label.d.ts +10 -0
  288. package/dist/src/components/ui/label/label.defs.d.ts +3 -0
  289. package/dist/src/components/ui/label/label.stories.d.ts +10 -0
  290. package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +19 -0
  291. package/dist/src/components/ui/menubar/menubar-content.d.ts +19 -0
  292. package/dist/src/components/ui/menubar/menubar-group.d.ts +14 -0
  293. package/dist/src/components/ui/menubar/menubar-item.d.ts +17 -0
  294. package/dist/src/components/ui/menubar/menubar-menu.d.ts +30 -0
  295. package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +19 -0
  296. package/dist/src/components/ui/menubar/menubar-separator.d.ts +13 -0
  297. package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +9 -0
  298. package/dist/src/components/ui/menubar/menubar-trigger.d.ts +9 -0
  299. package/dist/src/components/ui/menubar/menubar.d.ts +33 -0
  300. package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
  301. package/dist/src/components/ui/menubar/menubar.stories.d.ts +4 -0
  302. package/dist/src/components/ui/menubar/menubar.styles.d.ts +21 -0
  303. package/dist/src/components/ui/navigation-menu/navigation-menu-content.d.ts +19 -0
  304. package/dist/src/components/ui/navigation-menu/navigation-menu-item.d.ts +23 -0
  305. package/dist/src/components/ui/navigation-menu/navigation-menu-link.d.ts +9 -0
  306. package/dist/src/components/ui/navigation-menu/navigation-menu-list.d.ts +8 -0
  307. package/dist/src/components/ui/navigation-menu/navigation-menu-trigger.d.ts +9 -0
  308. package/dist/src/components/ui/navigation-menu/navigation-menu.d.ts +24 -0
  309. package/dist/src/components/ui/navigation-menu/navigation-menu.stories.d.ts +4 -0
  310. package/dist/src/components/ui/navigation-menu/navigation-menu.styles.d.ts +9 -0
  311. package/dist/src/components/ui/pagination/pagination-content.d.ts +8 -0
  312. package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +8 -0
  313. package/dist/src/components/ui/pagination/pagination-item.d.ts +14 -0
  314. package/dist/src/components/ui/pagination/pagination-link.d.ts +14 -0
  315. package/dist/src/components/ui/pagination/pagination-next.d.ts +9 -0
  316. package/dist/src/components/ui/pagination/pagination-previous.d.ts +9 -0
  317. package/dist/src/components/ui/pagination/pagination.d.ts +26 -0
  318. package/dist/src/components/ui/pagination/pagination.stories.d.ts +4 -0
  319. package/dist/src/components/ui/pagination/pagination.styles.d.ts +22 -0
  320. package/dist/src/components/ui/pagination/pagination.type.d.ts +2 -0
  321. package/dist/src/components/ui/password-input/_password-input.d.ts +122 -0
  322. package/dist/src/components/ui/password-input/password-input.d.ts +10 -0
  323. package/dist/src/components/ui/password-input/password-input.defs.d.ts +3 -0
  324. package/dist/src/components/ui/password-input/password-input.stories.d.ts +8 -0
  325. package/dist/src/components/ui/popover/popover-content.d.ts +18 -0
  326. package/dist/src/components/ui/popover/popover-trigger.d.ts +12 -0
  327. package/dist/src/components/ui/popover/popover.d.ts +21 -0
  328. package/dist/src/components/ui/popover/popover.stories.d.ts +4 -0
  329. package/dist/src/components/ui/popover/popover.style.d.ts +5 -0
  330. package/dist/src/components/ui/popover/popover.types.d.ts +2 -0
  331. package/dist/src/components/ui/progress/progress.d.ts +11 -0
  332. package/dist/src/components/ui/progress/progress.stories.d.ts +4 -0
  333. package/dist/src/components/ui/progress/progress.styles.d.ts +4 -0
  334. package/dist/src/components/ui/radio-group/radio-group-item.d.ts +21 -0
  335. package/dist/src/components/ui/radio-group/radio-group.d.ts +19 -0
  336. package/dist/src/components/ui/radio-group/radio-group.stories.d.ts +4 -0
  337. package/dist/src/components/ui/radio-group/radio-group.styles.d.ts +9 -0
  338. package/dist/src/components/ui/radio-group/radio-group.types.d.ts +2 -0
  339. package/dist/src/components/ui/sample-demo/sample-demo.d.ts +23 -0
  340. package/dist/src/components/ui/sample-demo/sample.style.d.ts +4 -0
  341. package/dist/src/components/ui/sample-demo/sample.type.d.ts +3 -0
  342. package/dist/src/components/ui/scroll-area/scroll-area.d.ts +12 -0
  343. package/dist/src/components/ui/scroll-area/scroll-area.stories.d.ts +4 -0
  344. package/dist/src/components/ui/scroll-area/scroll-area.style.d.ts +1 -0
  345. package/dist/src/components/ui/select/select-controller.d.ts +16 -0
  346. package/dist/src/components/ui/select/select-group.d.ts +25 -0
  347. package/dist/src/components/ui/select/select-item.d.ts +26 -0
  348. package/dist/src/components/ui/select/select-label.d.ts +13 -0
  349. package/dist/src/components/ui/select/select-list.d.ts +10 -0
  350. package/dist/src/components/ui/select/select-seperator.d.ts +8 -0
  351. package/dist/src/components/ui/select/select-trigger.d.ts +24 -0
  352. package/dist/src/components/ui/select/select-value.d.ts +20 -0
  353. package/dist/src/components/ui/select/select.d.ts +25 -0
  354. package/dist/src/components/ui/select/select.stories.d.ts +4 -0
  355. package/dist/src/components/ui/select/select.styles.d.ts +20 -0
  356. package/dist/src/components/ui/separator/_separator.d.ts +21 -0
  357. package/dist/src/components/ui/separator/separator.d.ts +10 -0
  358. package/dist/src/components/ui/separator/separator.defs.d.ts +5 -0
  359. package/dist/src/components/ui/separator/separator.stories.d.ts +9 -0
  360. package/dist/src/components/ui/skeleton/skeleton.d.ts +10 -0
  361. package/dist/src/components/ui/skeleton/skeleton.stories.d.ts +4 -0
  362. package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -0
  363. package/dist/src/components/ui/spinner/_spinner.d.ts +19 -0
  364. package/dist/src/components/ui/spinner/spinner.d.ts +10 -0
  365. package/dist/src/components/ui/spinner/spinner.defs.d.ts +4 -0
  366. package/dist/src/components/ui/spinner/spinner.stories.d.ts +11 -0
  367. package/dist/src/components/ui/switch/switch.d.ts +13 -0
  368. package/dist/src/components/ui/switch/switch.stories.d.ts +4 -0
  369. package/dist/src/components/ui/switch/switch.style.d.ts +4 -0
  370. package/dist/src/components/ui/switch/switch.type.d.ts +4 -0
  371. package/dist/src/components/ui/table/table.d.ts +17 -0
  372. package/dist/src/components/ui/table/table.stories.d.ts +4 -0
  373. package/dist/src/components/ui/table/table.styles.d.ts +39 -0
  374. package/dist/src/components/ui/tabs/_tabs-content.d.ts +29 -0
  375. package/dist/src/components/ui/tabs/_tabs-list.d.ts +29 -0
  376. package/dist/src/components/ui/tabs/_tabs-trigger.d.ts +46 -0
  377. package/dist/src/components/ui/tabs/_tabs.d.ts +98 -0
  378. package/dist/src/components/ui/tabs/tabs.d.ts +17 -0
  379. package/dist/src/components/ui/tabs/tabs.defs.d.ts +22 -0
  380. package/dist/src/components/ui/tabs/tabs.helpers.d.ts +24 -0
  381. package/dist/src/components/ui/tabs/tabs.stories.d.ts +12 -0
  382. package/dist/src/components/ui/textarea/_textarea.d.ts +131 -0
  383. package/dist/src/components/ui/textarea/textarea.d.ts +10 -0
  384. package/dist/src/components/ui/textarea/textarea.defs.d.ts +23 -0
  385. package/dist/src/components/ui/textarea/textarea.stories.d.ts +9 -0
  386. package/dist/src/components/ui/toast/toast-action.d.ts +26 -0
  387. package/dist/src/components/ui/toast/toast-description.d.ts +13 -0
  388. package/dist/src/components/ui/toast/toast-title.d.ts +13 -0
  389. package/dist/src/components/ui/toast/toast-trigger.d.ts +17 -0
  390. package/dist/src/components/ui/toast/toast-view-port.d.ts +23 -0
  391. package/dist/src/components/ui/toast/toast.d.ts +24 -0
  392. package/dist/src/components/ui/toast/toast.stories.d.ts +9 -0
  393. package/dist/src/components/ui/toast/toast.style.d.ts +19 -0
  394. package/dist/src/components/ui/toast/toast.type.d.ts +1 -0
  395. package/dist/src/components/ui/toggle/toggle.d.ts +28 -0
  396. package/dist/src/components/ui/toggle/toggle.defs.d.ts +27 -0
  397. package/dist/src/components/ui/toggle/toggle.stories.d.ts +5 -0
  398. package/dist/src/components/ui/toggle/toggle.style.d.ts +4 -0
  399. package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +42 -0
  400. package/dist/src/components/ui/toggle-group/toggle-group.d.ts +24 -0
  401. package/dist/src/components/ui/toggle-group/toggle-group.defs.d.ts +37 -0
  402. package/dist/src/components/ui/toggle-group/toggle-group.stories.d.ts +4 -0
  403. package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +5 -0
  404. package/dist/src/components/ui/typography/_typography-blockquote.d.ts +22 -0
  405. package/dist/src/components/ui/typography/_typography-code.d.ts +22 -0
  406. package/dist/src/components/ui/typography/_typography-h.d.ts +27 -0
  407. package/dist/src/components/ui/typography/_typography-large.d.ts +22 -0
  408. package/dist/src/components/ui/typography/_typography-lead.d.ts +22 -0
  409. package/dist/src/components/ui/typography/_typography-list.d.ts +22 -0
  410. package/dist/src/components/ui/typography/_typography-muted.d.ts +22 -0
  411. package/dist/src/components/ui/typography/_typography-p.d.ts +22 -0
  412. package/dist/src/components/ui/typography/_typography-small.d.ts +22 -0
  413. package/dist/src/components/ui/typography/_typography-table.d.ts +13 -0
  414. package/dist/src/components/ui/typography/typography.d.ts +28 -0
  415. package/dist/src/components/ui/typography/typography.defs.d.ts +4 -0
  416. package/dist/src/components/ui/typography/typography.stories.d.ts +18 -0
  417. package/dist/src/components/widgets/index.d.ts +1 -0
  418. package/dist/src/components/widgets/light-sample-demo/light-sample.demo.d.ts +13 -0
  419. package/dist/src/helpers/base-element.d.ts +20 -0
  420. package/dist/src/helpers/country-codes.d.ts +5 -0
  421. package/dist/src/helpers/genrate-uuid.helper.d.ts +1 -0
  422. package/dist/src/helpers/index.d.ts +7 -0
  423. package/dist/src/helpers/mouse-conroller.helper.d.ts +14 -0
  424. package/dist/src/helpers/shadow-wrapper.d.ts +7 -0
  425. package/dist/src/helpers/style.helpers.d.ts +2 -0
  426. package/dist/src/helpers/widget-controller.d.ts +12 -0
  427. package/dist/src/index.d.ts +2 -0
  428. package/dist/src/interfaces/actionable.interface.d.ts +5 -0
  429. package/dist/src/interfaces/atomic.interface.d.ts +6 -0
  430. package/dist/src/interfaces/changeable.interface.d.ts +7 -0
  431. package/dist/src/interfaces/child-support-atomic.interface.d.ts +4 -0
  432. package/dist/src/interfaces/index.d.ts +6 -0
  433. package/dist/src/interfaces/intractable.interface.d.ts +6 -0
  434. package/dist/src/interfaces/variant.interface.d.ts +3 -0
  435. package/dist/src/lib/index.d.ts +0 -0
  436. package/dist/src/lib/react/react.lib.d.ts +4 -0
  437. package/dist/src/styles/index.d.ts +1 -0
  438. package/dist/src/styles/tw.styles.d.ts +1 -0
  439. package/dist/src/tokens/tailwind/animation.d.ts +7 -0
  440. package/dist/src/tokens/tailwind/border-radius.d.ts +49 -0
  441. package/dist/src/tokens/tailwind/border-width.d.ts +27 -0
  442. package/dist/src/tokens/tailwind/box-shadow.d.ts +12 -0
  443. package/dist/src/tokens/tailwind/color.d.ts +232 -0
  444. package/dist/src/tokens/tailwind/font-size.d.ts +90 -0
  445. package/dist/src/tokens/tailwind/font-weight.d.ts +27 -0
  446. package/dist/src/tokens/tailwind/index.d.ts +841 -0
  447. package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
  448. package/dist/src/tokens/tailwind/opacity.d.ts +31 -0
  449. package/dist/src/tokens/tailwind/ring-offset-width.d.ts +6 -0
  450. package/dist/src/tokens/tailwind/ring-width.d.ts +16 -0
  451. package/dist/src/tokens/tailwind/spacing.d.ts +287 -0
  452. package/dist/src/tokens/tailwind/transition-duration.d.ts +5 -0
  453. package/dist/src/tokens/tailwind/transition-timing-function.d.ts +4 -0
  454. package/dist/src/tokens/tailwind/translate.d.ts +5 -0
  455. package/dist/src/wc-ui-app.d.ts +6 -0
  456. package/package.json +26 -39
@@ -0,0 +1,39 @@
1
+ export declare const tableStyles: {
2
+ preview: string[];
3
+ container: string[];
4
+ table: string[];
5
+ caption: string[];
6
+ head: {
7
+ root: string[];
8
+ row: string[];
9
+ cell: {
10
+ base: string[];
11
+ align: {
12
+ left: string;
13
+ right: string;
14
+ };
15
+ };
16
+ };
17
+ body: {
18
+ root: string[];
19
+ row: string[];
20
+ cell: {
21
+ base: string[];
22
+ align: {
23
+ right: string;
24
+ left: string;
25
+ };
26
+ };
27
+ };
28
+ footer: {
29
+ root: string[];
30
+ row: string[];
31
+ cell: {
32
+ base: string[];
33
+ align: {
34
+ right: string;
35
+ left: string;
36
+ };
37
+ };
38
+ };
39
+ };
@@ -0,0 +1,29 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { TabsContentProps } from './tabs.defs';
3
+ /**
4
+ * The `<rtg-tabs-content>` component contains the content associated with each
5
+ * trigger.
6
+ *
7
+ * @element rtg-tabs-content
8
+ * @slot tabs-content
9
+ */
10
+ export declare class TabsContent extends LitElement implements TabsContentProps {
11
+ /**
12
+ * A unique value that associates the content with a trigger.
13
+ */
14
+ value: string;
15
+ /**
16
+ * Overrides the default behaviour to render into the light DOM.
17
+ */
18
+ protected createRenderRoot(): this;
19
+ /**
20
+ * The slot of the tabs content.
21
+ */
22
+ get _contentSlot(): HTMLElement | null;
23
+ /**
24
+ * Handles the first updated callback, appending the children to the content
25
+ * slot.
26
+ */
27
+ protected firstUpdated(_changedProperties: PropertyValues): void;
28
+ render(): import('lit-html').TemplateResult<1>;
29
+ }
@@ -0,0 +1,29 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { TabsListProps, TabsListVariant } from './tabs.defs';
3
+ /**
4
+ * The `<rtg-tabs-list>` component contains the triggers that are aligned along
5
+ * the edge of the active content.
6
+ *
7
+ * @element rtg-tabs-list
8
+ * @slot tabs-list
9
+ */
10
+ export declare class TabsList extends LitElement implements TabsListProps {
11
+ /**
12
+ * The visual style of the tabs list.
13
+ */
14
+ variant: TabsListVariant;
15
+ /**
16
+ * Overrides the default behaviour to render into the light DOM.
17
+ */
18
+ protected createRenderRoot(): this;
19
+ /**
20
+ * The slot of the tabs list.
21
+ */
22
+ get _listSlot(): HTMLElement | null;
23
+ /**
24
+ * Handles the first updated callback, appending the children to the list
25
+ * slot.
26
+ */
27
+ protected firstUpdated(_changedProperties: PropertyValues): void;
28
+ render(): import('lit-html').TemplateResult<1>;
29
+ }
@@ -0,0 +1,46 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { TabsTriggerProps } from './tabs.defs';
3
+ /**
4
+ * The `<rtg-tabs-trigger>` component is the button that activates its
5
+ * associated content.
6
+ *
7
+ * @element rtg-tabs-trigger
8
+ * @slot tabs-trigger
9
+ */
10
+ export declare class TabsTrigger extends LitElement implements TabsTriggerProps {
11
+ /**
12
+ * A unique value that associates the trigger with a content.
13
+ */
14
+ value: string;
15
+ /**
16
+ * When `true`, prevents the user from interacting with the tab.
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Overrides the default behaviour to render into the light DOM.
21
+ */
22
+ protected createRenderRoot(): this;
23
+ /**
24
+ * The slot of the tabs trigger.
25
+ */
26
+ get _triggerSlot(): HTMLButtonElement | null;
27
+ /**
28
+ * Handles the first updated callback, appending the children to the trigger
29
+ * slot.
30
+ */
31
+ protected firstUpdated(_changedProperties: PropertyValues): void;
32
+ /**
33
+ * Sends the trigger select event object, invoking the parent tabs' event
34
+ * listener.
35
+ */
36
+ private _emitSelect;
37
+ /**
38
+ * Handles the click event of the trigger button, invoking `_emitSelect`.
39
+ */
40
+ private _onClick;
41
+ /**
42
+ * Handles the keydown event of the trigger button, invoking `_emitSelect`.
43
+ */
44
+ private _onKeyDown;
45
+ render(): import('lit-html').TemplateResult<1>;
46
+ }
@@ -0,0 +1,98 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { TabsProps, TabsOrientation, TabsDir, TabsActivationMode } from './tabs.defs';
3
+ /**
4
+ * The `<rtg-tabs>` component is the 'root' and contains all the tabs component
5
+ * parts.
6
+ *
7
+ * @element rtg-tabs
8
+ * @slot tabs
9
+ */
10
+ export declare class Tabs extends LitElement implements TabsProps {
11
+ /**
12
+ * The value of the tab that should be active when initially rendered. Use
13
+ * when you do not need to control the state of the tabs.
14
+ */
15
+ defaultValue?: string;
16
+ /**
17
+ * The controlled value of the tab to activate. Should be used in conjunction
18
+ * with `onValueChange`.
19
+ */
20
+ value?: string;
21
+ /**
22
+ * Event handler called when the value changes.
23
+ */
24
+ onValueChange?: (value: string) => void;
25
+ /**
26
+ * The orientation of the tabs.
27
+ */
28
+ orientation: TabsOrientation;
29
+ /**
30
+ * The reading direction of the tabs.
31
+ */
32
+ dir: TabsDir;
33
+ /**
34
+ * When `automatic`, tabs are activated when receiving focus. When `manual`,
35
+ * tabs are activated when clicked.
36
+ */
37
+ activationMode: TabsActivationMode;
38
+ /**
39
+ * The active tab's value - the value props of the trigger/content pair.
40
+ */
41
+ private _activeValue?;
42
+ /**
43
+ * The tabs root's base ID, generated by `generatedId`, and used to construct
44
+ * the trigger and contents children's ids.
45
+ */
46
+ private _baseId;
47
+ /**
48
+ * Overrides the default behaviour to render into the light DOM.
49
+ */
50
+ protected createRenderRoot(): this;
51
+ /**
52
+ * The slot of the tabs root.
53
+ */
54
+ private get _rootSlot();
55
+ /**
56
+ * The tabs list child.
57
+ */
58
+ private get _list();
59
+ /**
60
+ * The tabs trigger children.
61
+ */
62
+ private get _triggers();
63
+ /**
64
+ * The tabs content children.
65
+ */
66
+ private get _contents();
67
+ /**
68
+ * Whether or not the tabs element is 'controlled' - determined by whether or
69
+ * not the value prop was provided by the user.
70
+ */
71
+ private get _isControlled();
72
+ /**
73
+ * The value of the active tab: user-provided value if controlled, otherwise,
74
+ * the internal state value.
75
+ */
76
+ private get _currentValue();
77
+ /**
78
+ * The event listener callback used for the trigger select event.
79
+ */
80
+ private _onTriggerSelect;
81
+ /**
82
+ * Sync all the tabs children (list, triggers, and contents), setting their
83
+ * 'parent-controlled' attributes.
84
+ */
85
+ private _sync;
86
+ /**
87
+ * Handles the first updated callback, appending the children to the root
88
+ * slot, determining the active tab, adding the trigger select event listener
89
+ * and syncing the tabs children.
90
+ */
91
+ protected firstUpdated(): void;
92
+ /**
93
+ * Handles the updated callback, updating the active tab if changed (and
94
+ * controlled), and syncing the tabs children.
95
+ */
96
+ protected updated(changed: PropertyValues): void;
97
+ render(): import('lit-html').TemplateResult<1>;
98
+ }
@@ -0,0 +1,17 @@
1
+ import { Tabs } from './_tabs';
2
+ import { TabsList } from './_tabs-list';
3
+ import { TabsTrigger } from './_tabs-trigger';
4
+ import { TabsContent } from './_tabs-content';
5
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
6
+ /**
7
+ * A set of layered sections of content—known as tab panels—that are displayed
8
+ * one at a time.
9
+ */
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'rtg-tabs': Tabs;
13
+ 'rtg-tabs-list': TabsList;
14
+ 'rtg-tabs-trigger': TabsTrigger;
15
+ 'rtg-tabs-content': TabsContent;
16
+ }
17
+ }
@@ -0,0 +1,22 @@
1
+ export type TabsOrientation = 'horizontal' | 'vertical';
2
+ export type TabsDir = 'ltr' | 'rtl';
3
+ export type TabsActivationMode = 'automatic' | 'manual';
4
+ export interface TabsProps {
5
+ defaultValue?: string;
6
+ value?: string;
7
+ onValueChange?: (value: string) => void;
8
+ orientation: TabsOrientation;
9
+ dir: TabsDir;
10
+ activationMode: TabsActivationMode;
11
+ }
12
+ export type TabsListVariant = 'default' | 'line';
13
+ export interface TabsListProps {
14
+ variant: TabsListVariant;
15
+ }
16
+ export interface TabsTriggerProps {
17
+ value: string;
18
+ disabled?: boolean;
19
+ }
20
+ export interface TabsContentProps {
21
+ value: string;
22
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Generates a unique ID for Tabs to use as its baseId value.
3
+ * The ID is prefixed with 'rtg-', and consists of a time component as well as a
4
+ * random component.
5
+ *
6
+ * @returns A unique, ~13 char ID for a Tabs baseId value.
7
+ */
8
+ export declare function generateId(): string;
9
+ /**
10
+ * Constructs a unique ID for a TabsTrigger slot element.
11
+ *
12
+ * @param baseId The ID of the TabsTrigger's Tabs parent.
13
+ * @param value The value of the TabsTrigger.
14
+ * @returns The ID of the TabsTrigger's slot.
15
+ */
16
+ export declare function makeTriggerId(baseId: string, value: string): string;
17
+ /**
18
+ * Constructs a unique ID for a TabsContent slot element.
19
+ *
20
+ * @param baseId The ID of the TabsContent's Tabs parent.
21
+ * @param value The value of the TabsContent.
22
+ * @returns The ID of the TabsContent's slot.
23
+ */
24
+ export declare function makeContentId(baseId: string, value: string): string;
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components-vite';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const Demo: Story;
6
+ export declare const Basic: Story;
7
+ export declare const Line: Story;
8
+ export declare const Vertical: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const Icons: Story;
11
+ export declare const IconOnly: Story;
12
+ export declare const WithContent: Story;
@@ -0,0 +1,131 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ import { TextareaProps, TextareaAutocomplete, TextareaWrap } from './textarea.defs';
3
+ /**
4
+ * Displays a form textarea or a component that looks like a textarea.
5
+ *
6
+ * @element rtg-textarea
7
+ * @slot textarea
8
+ */
9
+ export declare class Textarea extends LitElement implements TextareaProps {
10
+ /**
11
+ * Controls whether entered text can be automatically completed by the
12
+ * browser.
13
+ */
14
+ autocomplete?: TextareaAutocomplete;
15
+ /**
16
+ * The visible width of the text control, in average character widths.
17
+ */
18
+ cols?: number;
19
+ /**
20
+ * When `true`, prevents the user from interacting with the textarea.
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * The form name that the textarea is associated with.
25
+ */
26
+ form?: string;
27
+ /**
28
+ * A unique id for the textarea element.
29
+ */
30
+ id: string;
31
+ /**
32
+ * When `true`, sets the `aria-invalid` attribute and styles the textarea
33
+ * accordingly.
34
+ */
35
+ invalid?: boolean;
36
+ /**
37
+ * The maximum string length that the user can enter into the field.
38
+ */
39
+ maxlength?: number;
40
+ /**
41
+ * The minimum string length that the user can enter into the field.
42
+ */
43
+ minlength?: number;
44
+ /**
45
+ * The name of the textarea. Submitted with its owning form as part of a
46
+ * name/value pair.
47
+ */
48
+ name?: string;
49
+ /**
50
+ * The value of the placeholder text, providing a brief hint to the user.
51
+ */
52
+ placeholder?: string;
53
+ /**
54
+ * When `true`, indicates that the user should not be able to edit the value
55
+ * of the textarea.
56
+ */
57
+ readonly?: boolean;
58
+ /**
59
+ * When `true`, indicates that the user must fill the textarea before the
60
+ * owning form can be submitted.
61
+ */
62
+ required?: boolean;
63
+ /**
64
+ * The number of visible text lines for the control.
65
+ */
66
+ rows?: number;
67
+ /**
68
+ * Indicates how the control should wrap the value for form submission.
69
+ */
70
+ wrap?: TextareaWrap;
71
+ /**
72
+ * The value of the textarea. When specified as a prop, it is the initial
73
+ * value.
74
+ */
75
+ value?: string;
76
+ /**
77
+ * The user-defined "on input" handler for the textarea.
78
+ */
79
+ onInput?: (event: Event) => void;
80
+ /**
81
+ * The user-defined "on change" handler for the textarea.
82
+ */
83
+ onChange?: (event: Event) => void;
84
+ /**
85
+ * The user-defined "on focus" handler for the textarea.
86
+ */
87
+ onFocus?: (event: FocusEvent) => void;
88
+ /**
89
+ * The user-defined "on blur" handler for the textarea.
90
+ */
91
+ onBlur?: (event: FocusEvent) => void;
92
+ /**
93
+ * The id of the textarea element, determined by the provided `id` prop.
94
+ */
95
+ private _textareaId?;
96
+ /**
97
+ * Overrides the default behaviour to render into the light DOM.
98
+ */
99
+ protected createRenderRoot(): this;
100
+ /**
101
+ * Handles the updated callback, transferring the `id` prop's value to
102
+ * `_textareaId` and removing it from the parent (if changed).
103
+ */
104
+ protected updated(changed: PropertyValues): void;
105
+ /**
106
+ * Handles the first updated callback, transferring the `id` prop's value to
107
+ * `_textareaId` and removing it from the parent.
108
+ */
109
+ protected firstUpdated(): void;
110
+ /**
111
+ * Handles the input event of the textarea, updating the stored `value` and
112
+ * invoking the user-provided event handler (if provided).
113
+ */
114
+ private _onInput;
115
+ /**
116
+ * Handles the change event of the textarea, updating the stored `value` and
117
+ * invoking the user-provided event handler (if provided).
118
+ */
119
+ private _onChange;
120
+ /**
121
+ * Handles the focus event of the textarea, dispatching the focus event (so it
122
+ * bubbles) and invoking the user-provided event handler (if provided).
123
+ */
124
+ private _onFocus;
125
+ /**
126
+ * Handles the blur event of the textarea, dispatching the focus event (so it
127
+ * bubbles) and invoking the user-provided event handler (if provided).
128
+ */
129
+ private _onBlur;
130
+ render(): import('lit-html').TemplateResult<1>;
131
+ }
@@ -0,0 +1,10 @@
1
+ import { Textarea } from './_textarea';
2
+ export { Textarea };
3
+ /**
4
+ * Displays a form textarea or a component that looks like a textarea.
5
+ */
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'rtg-textarea': Textarea;
9
+ }
10
+ }
@@ -0,0 +1,23 @@
1
+ export type TextareaAutocomplete = 'off' | 'on' | string;
2
+ export type TextareaWrap = 'hard' | 'soft' | 'off';
3
+ export interface TextareaProps {
4
+ autocomplete?: TextareaAutocomplete;
5
+ cols?: number;
6
+ disabled?: boolean;
7
+ form?: string;
8
+ id: string;
9
+ invalid?: boolean;
10
+ maxlength?: number;
11
+ minlength?: number;
12
+ name?: string;
13
+ placeholder?: string;
14
+ readonly?: boolean;
15
+ required?: boolean;
16
+ rows?: number;
17
+ wrap?: TextareaWrap;
18
+ value?: string;
19
+ onInput?: (event: Event) => void;
20
+ onChange?: (event: Event) => void;
21
+ onFocus?: (event: FocusEvent) => void;
22
+ onBlur?: (event: FocusEvent) => void;
23
+ }
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components-vite';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const Demo: Story;
6
+ export declare const Field: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const Invalid: Story;
9
+ export declare const Button: Story;
@@ -0,0 +1,26 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { BaseElement } from '../../../helpers';
3
+ import * as toastType from './toast.type';
4
+ export declare class ToastAction extends BaseElement {
5
+ static toastVariants: {
6
+ base: string[];
7
+ variants: {
8
+ default: string[];
9
+ destructive: string[];
10
+ };
11
+ };
12
+ get _containerElement(): HTMLButtonElement | null;
13
+ variant: toastType.ToastVariant;
14
+ getAttributesToExclude(): string[];
15
+ protected firstUpdated(_changedProperties: PropertyValues): void;
16
+ protected getFilteredAttributes(): {
17
+ [key: string]: string;
18
+ };
19
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
20
+ render(): import('lit-html').TemplateResult<1>;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'rtg-toast-action': ToastAction;
25
+ }
26
+ }
@@ -0,0 +1,13 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { BaseElement } from '../../../helpers';
3
+ export declare class ToastDescription extends BaseElement {
4
+ get _containerElement(): HTMLDivElement | null;
5
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
6
+ protected firstUpdated(_changedProperties: PropertyValues): void;
7
+ render(): import('lit-html').TemplateResult<1>;
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ 'rtg-toast-description': ToastDescription;
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { BaseElement } from '../../../helpers';
3
+ export declare class ToastTitle extends BaseElement {
4
+ get _containerElement(): HTMLDivElement | null;
5
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
6
+ protected firstUpdated(_changedProperties: PropertyValues): void;
7
+ render(): import('lit-html').TemplateResult<1>;
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ 'rtg-toast-title': ToastTitle;
12
+ }
13
+ }
@@ -0,0 +1,17 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { BaseElement } from '../../../helpers';
3
+ import { Toast } from './toast';
4
+ export declare class ToastTrigger extends BaseElement {
5
+ constructor();
6
+ get _containerElement(): HTMLDivElement | null;
7
+ get _toast(): Toast;
8
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
9
+ protected firstUpdated(_changedProperties: PropertyValues): void;
10
+ handleClick(e: Event): void;
11
+ render(): import('lit-html').TemplateResult<1>;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'rtg-toast-trigger': ToastTrigger;
16
+ }
17
+ }
@@ -0,0 +1,23 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { BaseElement } from '../../../helpers';
3
+ import * as toastType from './toast.type';
4
+ export declare class ToastViewPort extends BaseElement {
5
+ static toastVariants: {
6
+ base: string[];
7
+ variants: {
8
+ default: string[];
9
+ destructive: string[];
10
+ };
11
+ };
12
+ get _containerElement(): HTMLLIElement | null;
13
+ variant: toastType.ToastVariant;
14
+ state: string;
15
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
16
+ protected firstUpdated(_changedProperties: PropertyValues): void;
17
+ render(): import('lit-html').TemplateResult<1>;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'rtg-toast-view-port': ToastViewPort;
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { ToastViewPort } from './toast-view-port';
3
+ import { BaseElement } from '../../../helpers';
4
+ import { ToastAction } from './toast-action';
5
+ import { ToastDescription } from './toast-description';
6
+ import { ToastTitle } from './toast-title';
7
+ import { ToastTrigger } from './toast-trigger';
8
+ declare class Toast extends BaseElement {
9
+ isOpen: boolean;
10
+ get _containerElement(): HTMLDivElement | null;
11
+ onClick(): void;
12
+ connectedCallback(): void;
13
+ private get _content();
14
+ protected updated(_changedProperties: PropertyValues): void;
15
+ protected firstUpdated(_changedProperties: PropertyValues): void;
16
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
17
+ render(): import('lit-html').TemplateResult<1>;
18
+ }
19
+ export { Toast, ToastAction, ToastDescription, ToastTitle, ToastTrigger, ToastViewPort, };
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'rtg-toast': Toast;
23
+ }
24
+ }
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components-vite';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ /** ===== Toast With Action Variants ===== **/
5
+ export declare const ToastWithActionDefault: StoryFn;
6
+ export declare const ToastWithActionDestructive: StoryFn;
7
+ /** ===== Toast Without Action Variants ===== **/
8
+ export declare const ToastWithoutActionDefault: StoryFn;
9
+ export declare const ToastWithoutActionDestructive: StoryFn;
@@ -0,0 +1,19 @@
1
+ export declare const toastStyles: {
2
+ viewportRoot: string[];
3
+ viewportItem: {
4
+ base: string[];
5
+ variants: {
6
+ default: string[];
7
+ destructive: string[];
8
+ };
9
+ };
10
+ action: {
11
+ base: string[];
12
+ variants: {
13
+ default: string[];
14
+ destructive: string[];
15
+ };
16
+ };
17
+ title: string[];
18
+ description: string[];
19
+ };
@@ -0,0 +1 @@
1
+ export type ToastVariant = 'default' | 'destructive';