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

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 (385) hide show
  1. package/dist/library.css +11342 -0
  2. package/dist/rtg-ui-kit.js +18504 -0
  3. package/dist/rtg-ui-kit.umd.cjs +5177 -0
  4. package/dist/src/assets/icons/anchor.icon.d.ts +3 -0
  5. package/dist/src/assets/icons/app-window.icon.d.ts +3 -0
  6. package/dist/src/assets/icons/arrow-right.icon.d.ts +3 -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 +3 -0
  9. package/dist/src/assets/icons/arrow-up.icon.d.ts +3 -0
  10. package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
  11. package/dist/src/assets/icons/asterisk.icon.d.ts +3 -0
  12. package/dist/src/assets/icons/badge-alert.icon.d.ts +3 -0
  13. package/dist/src/assets/icons/badge-check.icon.d.ts +3 -0
  14. package/dist/src/assets/icons/badge-info.icon.d.ts +3 -0
  15. package/dist/src/assets/icons/badge-x.icon.d.ts +3 -0
  16. package/dist/src/assets/icons/captions.icon.d.ts +3 -0
  17. package/dist/src/assets/icons/carousel-arrow-left.d.ts +1 -0
  18. package/dist/src/assets/icons/carousel-arrow-right.d.ts +1 -0
  19. package/dist/src/assets/icons/chart.icon.d.ts +1 -0
  20. package/dist/src/assets/icons/check.icon.d.ts +3 -0
  21. package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
  22. package/dist/src/assets/icons/circle-alert.icon.d.ts +3 -0
  23. package/dist/src/assets/icons/circle-check.icon.d.ts +3 -0
  24. package/dist/src/assets/icons/circle-fading-arrow-up.icon.d.ts +3 -0
  25. package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
  26. package/dist/src/assets/icons/circle.icon.d.ts +1 -0
  27. package/dist/src/assets/icons/close.icon.d.ts +1 -0
  28. package/dist/src/assets/icons/code.icon.d.ts +3 -0
  29. package/dist/src/assets/icons/decrease.icon.d.ts +1 -0
  30. package/dist/src/assets/icons/dot.icon.d.ts +1 -0
  31. package/dist/src/assets/icons/external-link.icon.d.ts +3 -0
  32. package/dist/src/assets/icons/eye-off.d.ts +1 -0
  33. package/dist/src/assets/icons/eye-on.d.ts +1 -0
  34. package/dist/src/assets/icons/git-branch-minus.icon.d.ts +3 -0
  35. package/dist/src/assets/icons/git-branch-plus.icon.d.ts +3 -0
  36. package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
  37. package/dist/src/assets/icons/house.icon.d.ts +3 -0
  38. package/dist/src/assets/icons/index.d.ts +48 -0
  39. package/dist/src/assets/icons/info.icon.d.ts +3 -0
  40. package/dist/src/assets/icons/loader-circle.icon.d.ts +3 -0
  41. package/dist/src/assets/icons/mail-warning.icon.d.ts +3 -0
  42. package/dist/src/assets/icons/minus.icon.d.ts +3 -0
  43. package/dist/src/assets/icons/plus.icon.d.ts +1 -0
  44. package/dist/src/assets/icons/rabbit.icon.d.ts +3 -0
  45. package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
  46. package/dist/src/assets/icons/radio.icon.d.ts +1 -0
  47. package/dist/src/assets/icons/refresh-cw.icon.d.ts +3 -0
  48. package/dist/src/assets/icons/search.icon.d.ts +3 -0
  49. package/dist/src/assets/icons/settings.icon.d.ts +3 -0
  50. package/dist/src/assets/icons/shopping-bag.icon.d.ts +3 -0
  51. package/dist/src/assets/icons/tick.icon.d.ts +1 -0
  52. package/dist/src/assets/icons/wand.icon.d.ts +3 -0
  53. package/dist/src/components/index.d.ts +2 -0
  54. package/dist/src/components/ui/accordion/accordion-content.d.ts +21 -0
  55. package/dist/src/components/ui/accordion/accordion-item.d.ts +22 -0
  56. package/dist/src/components/ui/accordion/accordion-trigger.d.ts +18 -0
  57. package/dist/src/components/ui/accordion/accordion.d.ts +26 -0
  58. package/dist/src/components/ui/accordion/accordion.defs.d.ts +10 -0
  59. package/dist/src/components/ui/accordion/accordion.stories.d.ts +11 -0
  60. package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
  61. package/dist/src/components/ui/alert/_alert-action.d.ts +22 -0
  62. package/dist/src/components/ui/alert/_alert-description.d.ts +22 -0
  63. package/dist/src/components/ui/alert/_alert-title.d.ts +21 -0
  64. package/dist/src/components/ui/alert/_alert.d.ts +26 -0
  65. package/dist/src/components/ui/alert/alert.d.ts +17 -0
  66. package/dist/src/components/ui/alert/alert.defs.d.ts +4 -0
  67. package/dist/src/components/ui/alert/alert.stories.d.ts +13 -0
  68. package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +17 -0
  69. package/dist/src/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +5 -0
  70. package/dist/src/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +4 -0
  71. package/dist/src/components/ui/avatar/_avatar-badge.d.ts +22 -0
  72. package/dist/src/components/ui/avatar/_avatar-fallback.d.ts +22 -0
  73. package/dist/src/components/ui/avatar/_avatar-group-count.d.ts +22 -0
  74. package/dist/src/components/ui/avatar/_avatar-group.d.ts +22 -0
  75. package/dist/src/components/ui/avatar/_avatar-image.d.ts +29 -0
  76. package/dist/src/components/ui/avatar/_avatar.d.ts +66 -0
  77. package/dist/src/components/ui/avatar/avatar.d.ts +21 -0
  78. package/dist/src/components/ui/avatar/avatar.defs.d.ts +8 -0
  79. package/dist/src/components/ui/avatar/avatar.stories.d.ts +14 -0
  80. package/dist/src/components/ui/badge/badge.d.ts +20 -0
  81. package/dist/src/components/ui/badge/badge.stories.d.ts +7 -0
  82. package/dist/src/components/ui/badge/badge.style.d.ts +3 -0
  83. package/dist/src/components/ui/badge/badge.type.d.ts +1 -0
  84. package/dist/src/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +12 -0
  85. package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +15 -0
  86. package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +16 -0
  87. package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +15 -0
  88. package/dist/src/components/ui/breadcrumb/breadcrumb-separator.d.ts +12 -0
  89. package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +15 -0
  90. package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +22 -0
  91. package/dist/src/components/ui/breadcrumb/breadcrumb.stories.d.ts +5 -0
  92. package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -0
  93. package/dist/src/components/ui/button/_button.d.ts +63 -0
  94. package/dist/src/components/ui/button/button.d.ts +11 -0
  95. package/dist/src/components/ui/button/button.defs.d.ts +14 -0
  96. package/dist/src/components/ui/button/button.stories.d.ts +14 -0
  97. package/dist/src/components/ui/button/button.style.d.ts +4 -0
  98. package/dist/src/components/ui/calendar/calendar.d.ts +25 -0
  99. package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
  100. package/dist/src/components/ui/calendar/calendar.stories.d.ts +5 -0
  101. package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -0
  102. package/dist/src/components/ui/card/_card-action.d.ts +22 -0
  103. package/dist/src/components/ui/card/_card-content.d.ts +21 -0
  104. package/dist/src/components/ui/card/_card-description.d.ts +22 -0
  105. package/dist/src/components/ui/card/_card-footer.d.ts +27 -0
  106. package/dist/src/components/ui/card/_card-header.d.ts +27 -0
  107. package/dist/src/components/ui/card/_card-title.d.ts +21 -0
  108. package/dist/src/components/ui/card/_card.d.ts +26 -0
  109. package/dist/src/components/ui/card/card.d.ts +23 -0
  110. package/dist/src/components/ui/card/card.defs.d.ts +10 -0
  111. package/dist/src/components/ui/card/card.stories.d.ts +12 -0
  112. package/dist/src/components/ui/carousel/carousel.d.ts +25 -0
  113. package/dist/src/components/ui/carousel/carousel.stories.d.ts +7 -0
  114. package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
  115. package/dist/src/components/ui/checkbox/_checkbox.d.ts +66 -0
  116. package/dist/src/components/ui/checkbox/checkbox.d.ts +11 -0
  117. package/dist/src/components/ui/checkbox/checkbox.defs.d.ts +11 -0
  118. package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +11 -0
  119. package/dist/src/components/ui/collapsible/collapsible-content.d.ts +18 -0
  120. package/dist/src/components/ui/collapsible/collapsible-trigger.d.ts +18 -0
  121. package/dist/src/components/ui/collapsible/collapsible.d.ts +24 -0
  122. package/dist/src/components/ui/collapsible/collapsible.stories.d.ts +6 -0
  123. package/dist/src/components/ui/combobox/combo-box-empty.d.ts +15 -0
  124. package/dist/src/components/ui/combobox/combo-box-group.d.ts +38 -0
  125. package/dist/src/components/ui/combobox/combo-box-input.d.ts +18 -0
  126. package/dist/src/components/ui/combobox/combo-box-item.d.ts +26 -0
  127. package/dist/src/components/ui/combobox/combo-box-trigger.d.ts +19 -0
  128. package/dist/src/components/ui/combobox/combo-box-value.d.ts +19 -0
  129. package/dist/src/components/ui/combobox/combo-box.d.ts +36 -0
  130. package/dist/src/components/ui/combobox/combo-box.stories.d.ts +11 -0
  131. package/dist/src/components/ui/combobox/combo-box.styles.d.ts +14 -0
  132. package/dist/src/components/ui/command/command-empty.atom.d.ts +19 -0
  133. package/dist/src/components/ui/command/command-group.atom.d.ts +20 -0
  134. package/dist/src/components/ui/command/command-input.atom.d.ts +16 -0
  135. package/dist/src/components/ui/command/command-item.atom.d.ts +25 -0
  136. package/dist/src/components/ui/command/command-list.atom.d.ts +16 -0
  137. package/dist/src/components/ui/command/command-separator.atom.d.ts +15 -0
  138. package/dist/src/components/ui/command/command.d.ts +23 -0
  139. package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
  140. package/dist/src/components/ui/command/command.stories.d.ts +7 -0
  141. package/dist/src/components/ui/command/command.styles.d.ts +15 -0
  142. package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +17 -0
  143. package/dist/src/components/ui/context-menu/context-menu-content.d.ts +15 -0
  144. package/dist/src/components/ui/context-menu/context-menu-group.d.ts +11 -0
  145. package/dist/src/components/ui/context-menu/context-menu-item.d.ts +14 -0
  146. package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +17 -0
  147. package/dist/src/components/ui/context-menu/context-menu-seperator.d.ts +7 -0
  148. package/dist/src/components/ui/context-menu/context-menu-shortcut.d.ts +10 -0
  149. package/dist/src/components/ui/context-menu/context-menu-trigger.d.ts +6 -0
  150. package/dist/src/components/ui/context-menu/context-menu.d.ts +41 -0
  151. package/dist/src/components/ui/context-menu/context-menu.helpers.d.ts +1 -0
  152. package/dist/src/components/ui/context-menu/context-menu.styles.d.ts +20 -0
  153. package/dist/src/components/ui/context-menu/contextMenu.stories.d.ts +5 -0
  154. package/dist/src/components/ui/data-table/data-table.d.ts +40 -0
  155. package/dist/src/components/ui/data-table/data-table.stories.d.ts +6 -0
  156. package/dist/src/components/ui/date-picker/date-picker.d.ts +13 -0
  157. package/dist/src/components/ui/date-picker/date-picker.stories.d.ts +5 -0
  158. package/dist/src/components/ui/date-picker/date-picker.styles.d.ts +6 -0
  159. package/dist/src/components/ui/dialog/dialog-close.d.ts +16 -0
  160. package/dist/src/components/ui/dialog/dialog-content.d.ts +16 -0
  161. package/dist/src/components/ui/dialog/dialog-footer.d.ts +10 -0
  162. package/dist/src/components/ui/dialog/dialog-header.d.ts +8 -0
  163. package/dist/src/components/ui/dialog/dialog-overly.d.ts +6 -0
  164. package/dist/src/components/ui/dialog/dialog-trigger.d.ts +12 -0
  165. package/dist/src/components/ui/dialog/dialog.d.ts +31 -0
  166. package/dist/src/components/ui/dialog/dialog.stories.d.ts +7 -0
  167. package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -0
  168. package/dist/src/components/ui/drawer/drawer-close.d.ts +16 -0
  169. package/dist/src/components/ui/drawer/drawer-content.d.ts +15 -0
  170. package/dist/src/components/ui/drawer/drawer-description.d.ts +10 -0
  171. package/dist/src/components/ui/drawer/drawer-footer.d.ts +10 -0
  172. package/dist/src/components/ui/drawer/drawer-header.d.ts +9 -0
  173. package/dist/src/components/ui/drawer/drawer-overlay.d.ts +6 -0
  174. package/dist/src/components/ui/drawer/drawer-title.d.ts +10 -0
  175. package/dist/src/components/ui/drawer/drawer-trigger.d.ts +12 -0
  176. package/dist/src/components/ui/drawer/drawer.d.ts +41 -0
  177. package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
  178. package/dist/src/components/ui/drawer/drawer.stories.d.ts +5 -0
  179. package/dist/src/components/ui/drawer/drawer.styles.d.ts +14 -0
  180. package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +18 -0
  181. package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +14 -0
  182. package/dist/src/components/ui/dropdown-menu/dropdown-menu-group.d.ts +12 -0
  183. package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +18 -0
  184. package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +17 -0
  185. package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +9 -0
  186. package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +9 -0
  187. package/dist/src/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +6 -0
  188. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +41 -0
  189. package/dist/src/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +3 -0
  190. package/dist/src/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +20 -0
  191. package/dist/src/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +7 -0
  192. package/dist/src/components/ui/field/_field-content.d.ts +24 -0
  193. package/dist/src/components/ui/field/_field-description.d.ts +24 -0
  194. package/dist/src/components/ui/field/_field-error.d.ts +24 -0
  195. package/dist/src/components/ui/field/_field-group.d.ts +29 -0
  196. package/dist/src/components/ui/field/_field-label.d.ts +28 -0
  197. package/dist/src/components/ui/field/_field-legend.d.ts +31 -0
  198. package/dist/src/components/ui/field/_field-separator.d.ts +39 -0
  199. package/dist/src/components/ui/field/_field-set.d.ts +23 -0
  200. package/dist/src/components/ui/field/_field-title.d.ts +23 -0
  201. package/dist/src/components/ui/field/_field.d.ts +37 -0
  202. package/dist/src/components/ui/field/field.d.ts +30 -0
  203. package/dist/src/components/ui/field/field.defs.d.ts +24 -0
  204. package/dist/src/components/ui/field/field.stories.d.ts +17 -0
  205. package/dist/src/components/ui/form/form-context.d.ts +5 -0
  206. package/dist/src/components/ui/form/form-controller.d.ts +28 -0
  207. package/dist/src/components/ui/form/form-field-context.d.ts +3 -0
  208. package/dist/src/components/ui/form/form-item-context.d.ts +7 -0
  209. package/dist/src/components/ui/form/form.stories.d.ts +6 -0
  210. package/dist/src/components/ui/form/form.styles.d.ts +7 -0
  211. package/dist/src/components/ui/form/rtg-form-controller.d.ts +17 -0
  212. package/dist/src/components/ui/form/rtg-form-description.d.ts +14 -0
  213. package/dist/src/components/ui/form/rtg-form-field.d.ts +20 -0
  214. package/dist/src/components/ui/form/rtg-form-item.d.ts +17 -0
  215. package/dist/src/components/ui/form/rtg-form-label.d.ts +20 -0
  216. package/dist/src/components/ui/form/rtg-form-message.d.ts +18 -0
  217. package/dist/src/components/ui/form/rtg-form.d.ts +24 -0
  218. package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +16 -0
  219. package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +10 -0
  220. package/dist/src/components/ui/hoverCard/hover-card.d.ts +29 -0
  221. package/dist/src/components/ui/hoverCard/hover-card.stories.d.ts +5 -0
  222. package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -0
  223. package/dist/src/components/ui/index.d.ts +42 -0
  224. package/dist/src/components/ui/input/_input.d.ts +164 -0
  225. package/dist/src/components/ui/input/input.d.ts +12 -0
  226. package/dist/src/components/ui/input/input.defs.d.ts +28 -0
  227. package/dist/src/components/ui/input/input.stories.d.ts +17 -0
  228. package/dist/src/components/ui/input-otp/_input-otp-group.d.ts +26 -0
  229. package/dist/src/components/ui/input-otp/_input-otp-separator.d.ts +16 -0
  230. package/dist/src/components/ui/input-otp/_input-otp-slot.d.ts +35 -0
  231. package/dist/src/components/ui/input-otp/_input-otp.d.ts +213 -0
  232. package/dist/src/components/ui/input-otp/input-otp.d.ts +17 -0
  233. package/dist/src/components/ui/input-otp/input-otp.defs.d.ts +28 -0
  234. package/dist/src/components/ui/input-otp/input-otp.stories.d.ts +13 -0
  235. package/dist/src/components/ui/label/_label.d.ts +27 -0
  236. package/dist/src/components/ui/label/label.d.ts +11 -0
  237. package/dist/src/components/ui/label/label.defs.d.ts +3 -0
  238. package/dist/src/components/ui/label/label.stories.d.ts +11 -0
  239. package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +20 -0
  240. package/dist/src/components/ui/menubar/menubar-content.d.ts +20 -0
  241. package/dist/src/components/ui/menubar/menubar-group.d.ts +15 -0
  242. package/dist/src/components/ui/menubar/menubar-item.d.ts +18 -0
  243. package/dist/src/components/ui/menubar/menubar-menu.d.ts +31 -0
  244. package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +20 -0
  245. package/dist/src/components/ui/menubar/menubar-separator.d.ts +14 -0
  246. package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +10 -0
  247. package/dist/src/components/ui/menubar/menubar-trigger.d.ts +10 -0
  248. package/dist/src/components/ui/menubar/menubar.d.ts +34 -0
  249. package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
  250. package/dist/src/components/ui/menubar/menubar.stories.d.ts +5 -0
  251. package/dist/src/components/ui/menubar/menubar.styles.d.ts +21 -0
  252. package/dist/src/components/ui/navigation-menu/navigation-menu-content.d.ts +20 -0
  253. package/dist/src/components/ui/navigation-menu/navigation-menu-item.d.ts +24 -0
  254. package/dist/src/components/ui/navigation-menu/navigation-menu-link.d.ts +10 -0
  255. package/dist/src/components/ui/navigation-menu/navigation-menu-list.d.ts +9 -0
  256. package/dist/src/components/ui/navigation-menu/navigation-menu-trigger.d.ts +10 -0
  257. package/dist/src/components/ui/navigation-menu/navigation-menu.d.ts +25 -0
  258. package/dist/src/components/ui/navigation-menu/navigation-menu.stories.d.ts +5 -0
  259. package/dist/src/components/ui/navigation-menu/navigation-menu.styles.d.ts +9 -0
  260. package/dist/src/components/ui/pagination/pagination-content.d.ts +9 -0
  261. package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +9 -0
  262. package/dist/src/components/ui/pagination/pagination-item.d.ts +15 -0
  263. package/dist/src/components/ui/pagination/pagination-link.d.ts +15 -0
  264. package/dist/src/components/ui/pagination/pagination-next.d.ts +10 -0
  265. package/dist/src/components/ui/pagination/pagination-previous.d.ts +10 -0
  266. package/dist/src/components/ui/pagination/pagination.d.ts +27 -0
  267. package/dist/src/components/ui/pagination/pagination.stories.d.ts +5 -0
  268. package/dist/src/components/ui/pagination/pagination.styles.d.ts +22 -0
  269. package/dist/src/components/ui/pagination/pagination.type.d.ts +2 -0
  270. package/dist/src/components/ui/popover/popover-content.d.ts +19 -0
  271. package/dist/src/components/ui/popover/popover-trigger.d.ts +13 -0
  272. package/dist/src/components/ui/popover/popover.d.ts +22 -0
  273. package/dist/src/components/ui/popover/popover.stories.d.ts +5 -0
  274. package/dist/src/components/ui/popover/popover.style.d.ts +5 -0
  275. package/dist/src/components/ui/popover/popover.types.d.ts +2 -0
  276. package/dist/src/components/ui/progress/progress.d.ts +12 -0
  277. package/dist/src/components/ui/progress/progress.stories.d.ts +5 -0
  278. package/dist/src/components/ui/progress/progress.styles.d.ts +4 -0
  279. package/dist/src/components/ui/radio-group/radio-group-item.d.ts +22 -0
  280. package/dist/src/components/ui/radio-group/radio-group.d.ts +20 -0
  281. package/dist/src/components/ui/radio-group/radio-group.stories.d.ts +5 -0
  282. package/dist/src/components/ui/radio-group/radio-group.styles.d.ts +9 -0
  283. package/dist/src/components/ui/radio-group/radio-group.types.d.ts +2 -0
  284. package/dist/src/components/ui/sample-demo/sample-demo.d.ts +24 -0
  285. package/dist/src/components/ui/sample-demo/sample.style.d.ts +4 -0
  286. package/dist/src/components/ui/sample-demo/sample.type.d.ts +3 -0
  287. package/dist/src/components/ui/scroll-area/scroll-area.d.ts +13 -0
  288. package/dist/src/components/ui/scroll-area/scroll-area.stories.d.ts +5 -0
  289. package/dist/src/components/ui/scroll-area/scroll-area.style.d.ts +1 -0
  290. package/dist/src/components/ui/select/select-controller.d.ts +16 -0
  291. package/dist/src/components/ui/select/select-group.d.ts +26 -0
  292. package/dist/src/components/ui/select/select-item.d.ts +27 -0
  293. package/dist/src/components/ui/select/select-label.d.ts +14 -0
  294. package/dist/src/components/ui/select/select-list.d.ts +11 -0
  295. package/dist/src/components/ui/select/select-seperator.d.ts +9 -0
  296. package/dist/src/components/ui/select/select-trigger.d.ts +25 -0
  297. package/dist/src/components/ui/select/select-value.d.ts +21 -0
  298. package/dist/src/components/ui/select/select.d.ts +26 -0
  299. package/dist/src/components/ui/select/select.stories.d.ts +5 -0
  300. package/dist/src/components/ui/select/select.styles.d.ts +20 -0
  301. package/dist/src/components/ui/separator/_separator.d.ts +22 -0
  302. package/dist/src/components/ui/separator/separator.d.ts +11 -0
  303. package/dist/src/components/ui/separator/separator.defs.d.ts +5 -0
  304. package/dist/src/components/ui/separator/separator.stories.d.ts +10 -0
  305. package/dist/src/components/ui/skeleton/skeleton.d.ts +11 -0
  306. package/dist/src/components/ui/skeleton/skeleton.stories.d.ts +5 -0
  307. package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -0
  308. package/dist/src/components/ui/switch/switch.d.ts +14 -0
  309. package/dist/src/components/ui/switch/switch.stories.d.ts +5 -0
  310. package/dist/src/components/ui/switch/switch.style.d.ts +4 -0
  311. package/dist/src/components/ui/switch/switch.type.d.ts +4 -0
  312. package/dist/src/components/ui/table/table.d.ts +18 -0
  313. package/dist/src/components/ui/table/table.stories.d.ts +5 -0
  314. package/dist/src/components/ui/table/table.styles.d.ts +39 -0
  315. package/dist/src/components/ui/tabs/_tabs-content.d.ts +30 -0
  316. package/dist/src/components/ui/tabs/_tabs-list.d.ts +30 -0
  317. package/dist/src/components/ui/tabs/_tabs-trigger.d.ts +47 -0
  318. package/dist/src/components/ui/tabs/_tabs.d.ts +99 -0
  319. package/dist/src/components/ui/tabs/tabs.d.ts +18 -0
  320. package/dist/src/components/ui/tabs/tabs.defs.d.ts +22 -0
  321. package/dist/src/components/ui/tabs/tabs.helpers.d.ts +24 -0
  322. package/dist/src/components/ui/tabs/tabs.stories.d.ts +13 -0
  323. package/dist/src/components/ui/textarea/textarea.d.ts +22 -0
  324. package/dist/src/components/ui/textarea/textarea.stories.d.ts +5 -0
  325. package/dist/src/components/ui/textarea/textarea.styles.d.ts +1 -0
  326. package/dist/src/components/ui/textarea/textarea.type.d.ts +11 -0
  327. package/dist/src/components/ui/toast/toast-action.d.ts +27 -0
  328. package/dist/src/components/ui/toast/toast-description.d.ts +14 -0
  329. package/dist/src/components/ui/toast/toast-title.d.ts +14 -0
  330. package/dist/src/components/ui/toast/toast-trigger.d.ts +18 -0
  331. package/dist/src/components/ui/toast/toast-view-port.d.ts +24 -0
  332. package/dist/src/components/ui/toast/toast.d.ts +25 -0
  333. package/dist/src/components/ui/toast/toast.stories.d.ts +10 -0
  334. package/dist/src/components/ui/toast/toast.style.d.ts +19 -0
  335. package/dist/src/components/ui/toast/toast.type.d.ts +1 -0
  336. package/dist/src/components/ui/toggle/toggle.d.ts +29 -0
  337. package/dist/src/components/ui/toggle/toggle.defs.d.ts +27 -0
  338. package/dist/src/components/ui/toggle/toggle.stories.d.ts +6 -0
  339. package/dist/src/components/ui/toggle/toggle.style.d.ts +4 -0
  340. package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +43 -0
  341. package/dist/src/components/ui/toggle-group/toggle-group.d.ts +25 -0
  342. package/dist/src/components/ui/toggle-group/toggle-group.defs.d.ts +37 -0
  343. package/dist/src/components/ui/toggle-group/toggle-group.stories.d.ts +5 -0
  344. package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +5 -0
  345. package/dist/src/components/widgets/index.d.ts +1 -0
  346. package/dist/src/components/widgets/light-sample-demo/light-sample.demo.d.ts +14 -0
  347. package/dist/src/helpers/base-element.d.ts +21 -0
  348. package/dist/src/helpers/country-codes.d.ts +5 -0
  349. package/dist/src/helpers/genrate-uuid.helper.d.ts +1 -0
  350. package/dist/src/helpers/index.d.ts +7 -0
  351. package/dist/src/helpers/mouse-conroller.helper.d.ts +15 -0
  352. package/dist/src/helpers/shadow-wrapper.d.ts +8 -0
  353. package/dist/src/helpers/style.helpers.d.ts +3 -0
  354. package/dist/src/helpers/widget-controller.d.ts +13 -0
  355. package/dist/src/index.d.ts +2 -0
  356. package/dist/src/interfaces/actionable.interface.d.ts +6 -0
  357. package/dist/src/interfaces/atomic.interface.d.ts +6 -0
  358. package/dist/src/interfaces/changeable.interface.d.ts +8 -0
  359. package/dist/src/interfaces/child-support-atomic.interface.d.ts +5 -0
  360. package/dist/src/interfaces/index.d.ts +6 -0
  361. package/dist/src/interfaces/intractable.interface.d.ts +6 -0
  362. package/dist/src/interfaces/variant.interface.d.ts +3 -0
  363. package/dist/src/lib/index.d.ts +0 -0
  364. package/dist/src/lib/react/react.lib.d.ts +5 -0
  365. package/dist/src/styles/index.d.ts +1 -0
  366. package/dist/src/styles/tw.styles.d.ts +1 -0
  367. package/dist/src/tokens/tailwind/animation.d.ts +7 -0
  368. package/dist/src/tokens/tailwind/basis.d.ts +5 -0
  369. package/dist/src/tokens/tailwind/border-radius.d.ts +52 -0
  370. package/dist/src/tokens/tailwind/border-width.d.ts +28 -0
  371. package/dist/src/tokens/tailwind/box-shadow.d.ts +17 -0
  372. package/dist/src/tokens/tailwind/color.d.ts +261 -0
  373. package/dist/src/tokens/tailwind/font-size.d.ts +98 -0
  374. package/dist/src/tokens/tailwind/font-weight.d.ts +28 -0
  375. package/dist/src/tokens/tailwind/index.d.ts +912 -0
  376. package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
  377. package/dist/src/tokens/tailwind/opacity.d.ts +34 -0
  378. package/dist/src/tokens/tailwind/ring-offset-width.d.ts +7 -0
  379. package/dist/src/tokens/tailwind/ring-width.d.ts +19 -0
  380. package/dist/src/tokens/tailwind/spacing.d.ts +299 -0
  381. package/dist/src/tokens/tailwind/transition-duration.d.ts +5 -0
  382. package/dist/src/tokens/tailwind/transition-timing-function.d.ts +4 -0
  383. package/dist/src/tokens/tailwind/translate.d.ts +5 -0
  384. package/dist/src/wc-ui-app.d.ts +7 -0
  385. package/package.json +26 -39
@@ -0,0 +1,18 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+ import { DropdownMenu } from './dropdown-menu';
4
+
5
+ export declare class DropdownMenuCheckboxItem extends BaseElement {
6
+ _id: string;
7
+ get value(): string;
8
+ get _containerElement(): HTMLDivElement | null;
9
+ get _dropdownMenu(): DropdownMenu | null;
10
+ selected: boolean;
11
+ private handleMouseEvent;
12
+ checked: boolean;
13
+ disabled: boolean;
14
+ toggleChecked(): void;
15
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
16
+ protected firstUpdated(_changedProperties: PropertyValues): void;
17
+ render(): import('lit-html').TemplateResult<1>;
18
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+ import { DropdownMenu } from './dropdown-menu';
4
+
5
+ export declare class DropdownMenuContent extends BaseElement {
6
+ state: string;
7
+ isOpen: boolean;
8
+ get _dropdownMenu(): DropdownMenu | null;
9
+ get _containerElement(): HTMLDivElement | null;
10
+ updated(changedProps: PropertyValues): void;
11
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
12
+ protected firstUpdated(_changedProperties: PropertyValues): void;
13
+ render(): import('lit-html').TemplateResult<1>;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+
4
+ export declare class DropdownMenuGroup extends BaseElement {
5
+ heading: string;
6
+ _id: string;
7
+ _hidden: string;
8
+ get _containerElement(): HTMLDivElement | null;
9
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
10
+ protected firstUpdated(_changedProperties: PropertyValues): void;
11
+ render(): import('lit-html').TemplateResult<1>;
12
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+ import { DropdownMenu } from './dropdown-menu';
4
+
5
+ export declare class DropdownMenuItem extends BaseElement {
6
+ _id: string;
7
+ _hidden: string;
8
+ get _containerElement(): HTMLDivElement | null;
9
+ get value(): string;
10
+ get _dropdownMenu(): DropdownMenu | null;
11
+ selected: boolean;
12
+ disabled: boolean;
13
+ private handleMouseEvent;
14
+ private handleClickDefault;
15
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
16
+ protected firstUpdated(_changedProperties: PropertyValues): void;
17
+ render(): import('lit-html').TemplateResult<1>;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+
4
+ export declare class DropdownMenuRadioItem extends BaseElement {
5
+ _id: string;
6
+ _hidden: string;
7
+ get value(): string;
8
+ get _containerElement(): HTMLDivElement | null;
9
+ selected: boolean;
10
+ private handleMouseEvent;
11
+ checked: boolean;
12
+ disabled: boolean;
13
+ toggleChecked(): void;
14
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
15
+ protected firstUpdated(_changedProperties: PropertyValues): void;
16
+ render(): import('lit-html').TemplateResult<1>;
17
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+
4
+ export declare class DropdownMenuSeparator extends BaseElement {
5
+ get _containerElement(): HTMLDivElement | null;
6
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
7
+ protected firstUpdated(_changedProperties: PropertyValues): void;
8
+ render(): import('lit-html').TemplateResult<1>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+
4
+ export declare class DropdownMenuShortcut extends BaseElement {
5
+ get _containerElement(): HTMLSpanElement | null;
6
+ protected firstUpdated(_changedProperties: PropertyValues): void;
7
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
8
+ render(): import('lit-html').TemplateResult<1>;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class DropdownMenuTrigger extends LitElement {
4
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
@@ -0,0 +1,41 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
+ import { DropdownMenuCheckboxItem } from './dropdown-menu-checkbox-Item';
4
+ import { DropdownMenuContent } from './dropdown-menu-content';
5
+ import { DropdownMenuGroup } from './dropdown-menu-group';
6
+ import { DropdownMenuItem } from './dropdown-menu-item';
7
+ import { DropdownMenuRadioItem } from './dropdown-menu-radio-item';
8
+ import { DropdownMenuSeparator } from './dropdown-menu-seperator';
9
+ import { DropdownMenuShortcut } from './dropdown-menu-shortcut';
10
+ import { DropdownMenuTrigger } from './dropdown-menu-trigger';
11
+
12
+ declare class DropdownMenu extends BaseElement {
13
+ isOpen: boolean;
14
+ private static _openInstance;
15
+ get _triggerElement(): DropdownMenuTrigger | null;
16
+ get _containerElement(): HTMLDivElement | null;
17
+ private get _content();
18
+ connectedCallback(): void;
19
+ toggleDropdown(e: MouseEvent): void;
20
+ disconnectedCallback(): void;
21
+ handleClickOutside: (e: MouseEvent) => void;
22
+ protected updated(_changedProperties: PropertyValues): void;
23
+ protected firstUpdated(_changedProperties: PropertyValues): void;
24
+ private _handleRadioSelected;
25
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
26
+ render(): import('lit-html').TemplateResult<1>;
27
+ }
28
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, };
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'rtg-dropdown-menu': DropdownMenu;
32
+ 'rtg-dropdown-menu-checkbox-item': DropdownMenuCheckboxItem;
33
+ 'rtg-dropdown-menu-group': DropdownMenuGroup;
34
+ 'rtg-dropdown-menu-content': DropdownMenuContent;
35
+ 'rtg-dropdown-menu-item': DropdownMenuItem;
36
+ 'rtg-dropdown-menu-radio-item': DropdownMenuRadioItem;
37
+ 'rtg-dropdown-menu-separator': DropdownMenuSeparator;
38
+ 'rtg-dropdown-menu-trigger': DropdownMenuTrigger;
39
+ 'rtg-dropdown-menu-shortcut': DropdownMenuShortcut;
40
+ }
41
+ }
@@ -0,0 +1,3 @@
1
+ export declare function gitHubIcon(): import('lit-html').TemplateResult<1>;
2
+ export declare function supportIcon(): import('lit-html').TemplateResult<1>;
3
+ export declare function apiIcon(): import('lit-html').TemplateResult<1>;
@@ -0,0 +1,20 @@
1
+ export declare const dropdownMenuStyles: {
2
+ root: string[];
3
+ trigger: string[];
4
+ content: string[];
5
+ group: string[];
6
+ item: string[];
7
+ checkboxItem: {
8
+ base: string[];
9
+ span: string[];
10
+ icon: string[];
11
+ };
12
+ radioItem: {
13
+ base: string[];
14
+ span: string[];
15
+ icon: string[];
16
+ };
17
+ label: string[];
18
+ separator: string[];
19
+ shortcut: string[];
20
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components-vite';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const DropdownMenu: StoryFn;
6
+ export declare const DropdownMenuCheckbox: StoryFn;
7
+ export declare const DropdownMenuRadio: StoryFn;
@@ -0,0 +1,24 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * Flex column that groups control and descriptions when the label sits beside
5
+ * the control. Not required if you have no description.
6
+ *
7
+ * @element rtg-field-content
8
+ * @slot field-content
9
+ */
10
+ export declare class FieldContent extends LitElement {
11
+ /**
12
+ * Overrides the default behaviour to render into the light DOM.
13
+ */
14
+ protected createRenderRoot(): this;
15
+ /**
16
+ * The slot of the field content.
17
+ */
18
+ private get _contentSlot();
19
+ /**
20
+ * Appends children to the field content slot.
21
+ */
22
+ protected firstUpdated(): void;
23
+ render(): import('lit-html').TemplateResult<1>;
24
+ }
@@ -0,0 +1,24 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * Helper text slot that automatically balances long lines in horizontal
5
+ * layouts.
6
+ *
7
+ * @element rtg-field-description
8
+ * @slot field-description
9
+ */
10
+ export declare class FieldDescription extends LitElement {
11
+ /**
12
+ * Overrides the default behaviour to render into the light DOM.
13
+ */
14
+ protected createRenderRoot(): this;
15
+ /**
16
+ * The slot of the field description.
17
+ */
18
+ private get _descriptionSlot();
19
+ /**
20
+ * Appends children to the field description slot.
21
+ */
22
+ protected firstUpdated(): void;
23
+ render(): import('lit-html').TemplateResult<1>;
24
+ }
@@ -0,0 +1,24 @@
1
+ import { LitElement, nothing } from 'lit';
2
+ import { FieldErrorProps, FieldErrorError } from './field.defs';
3
+
4
+ /**
5
+ * Accessible error container that accepts children or an `errors` array. When
6
+ * the `errors` array contains multiple messages, the component renders a list
7
+ * automatically.
8
+ *
9
+ * @element rtg-field-error
10
+ * @slot field-error
11
+ * @slot field-error-content
12
+ */
13
+ export declare class FieldError extends LitElement implements FieldErrorProps {
14
+ /**
15
+ * The array of error messages to render.
16
+ */
17
+ errors?: FieldErrorError[];
18
+ /**
19
+ * Overrides the default behaviour to render into the light DOM.
20
+ */
21
+ protected createRenderRoot(): this;
22
+ private _renderContent;
23
+ render(): typeof nothing | import('lit-html').TemplateResult<1>;
24
+ }
@@ -0,0 +1,29 @@
1
+ import { LitElement } from 'lit';
2
+ import { FieldGroupProps, FieldGroupType } from './field.defs';
3
+
4
+ /**
5
+ * Layout wrapper that stacks `rtg-field` components and enables container
6
+ * queries for responsive orientations.
7
+ *
8
+ * @element rtg-field-group
9
+ * @slot field-group
10
+ */
11
+ export declare class FieldGroup extends LitElement implements FieldGroupProps {
12
+ /**
13
+ * The type of field in the field group.
14
+ */
15
+ type: FieldGroupType;
16
+ /**
17
+ * Overrides the default behaviour to render into the light DOM.
18
+ */
19
+ protected createRenderRoot(): this;
20
+ /**
21
+ * The slot of the field group.
22
+ */
23
+ private get _groupSlot();
24
+ /**
25
+ * Appends children to the field group slot.
26
+ */
27
+ protected firstUpdated(): void;
28
+ render(): import('lit-html').TemplateResult<1>;
29
+ }
@@ -0,0 +1,28 @@
1
+ import { LitElement } from 'lit';
2
+ import { FieldLabelProps } from './field.defs';
3
+
4
+ /**
5
+ * Label styled for both direct inputs and nested `rtg-field` children.
6
+ *
7
+ * @element rtg-field-label
8
+ * @slot field-label
9
+ */
10
+ export declare class FieldLabel extends LitElement implements FieldLabelProps {
11
+ /**
12
+ * The id of the element the label is associated with.
13
+ */
14
+ for?: string;
15
+ /**
16
+ * Overrides the default behaviour to render into the light DOM.
17
+ */
18
+ protected createRenderRoot(): this;
19
+ /**
20
+ * The slot of the field label.
21
+ */
22
+ private get _labelSlot();
23
+ /**
24
+ * Appends children to the field label slot.
25
+ */
26
+ protected firstUpdated(): void;
27
+ render(): import('lit-html').TemplateResult<1>;
28
+ }
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ import { FieldLegendProps, FieldLegendVariant } from './field.defs';
3
+
4
+ /**
5
+ * Legend element for a `rtg-field-set`. Switch to the `label` variant to align
6
+ * with label sizing.
7
+ *
8
+ * @element rtg-field-legend
9
+ * @slot field-legend
10
+ */
11
+ export declare class FieldLegend extends LitElement implements FieldLegendProps {
12
+ /**
13
+ * The sizing and alignment variant of the field legend.
14
+ * The `label` variant applies label sizing and alignment. Handy if you have
15
+ * nested `rtg-field-set`.
16
+ */
17
+ variant: FieldLegendVariant;
18
+ /**
19
+ * Overrides the default behaviour to render into the light DOM.
20
+ */
21
+ protected createRenderRoot(): this;
22
+ /**
23
+ * The slot of the field legend.
24
+ */
25
+ private get _legendSlot();
26
+ /**
27
+ * Appends children to the field legend slot.
28
+ */
29
+ protected firstUpdated(): void;
30
+ render(): import('lit-html').TemplateResult<1>;
31
+ }
@@ -0,0 +1,39 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * Visual divider to separate sections inside a `rtg-field-group`. Accepts
5
+ * optional inline content.
6
+ *
7
+ * @element rtg-field-separator
8
+ * @slot field-separator
9
+ * @slot field-separator-content
10
+ */
11
+ export declare class FieldSeparator extends LitElement {
12
+ /**
13
+ * Initial user-provided children of field separator.
14
+ */
15
+ private _children;
16
+ /**
17
+ * Capture the user-provided children before field separator is rendered.
18
+ */
19
+ constructor();
20
+ /**
21
+ * Overrides the default behaviour to render into the light DOM.
22
+ */
23
+ protected createRenderRoot(): this;
24
+ /**
25
+ * The slot of the field separator.
26
+ */
27
+ private get _separatorSlot();
28
+ /**
29
+ * The slot of the field separator content.
30
+ */
31
+ private get _contentSlot();
32
+ /**
33
+ * Appends children to the field separator content slot and sets the parent
34
+ * slot's `data-content` attribute. If no children are provided, the content
35
+ * slot is removed.
36
+ */
37
+ protected firstUpdated(): void;
38
+ render(): import('lit-html').TemplateResult<1>;
39
+ }
@@ -0,0 +1,23 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * Container that renders a semantic `fieldset` with spacing presets.
5
+ *
6
+ * @element rtg-field-set
7
+ * @slot field-set
8
+ */
9
+ export declare class FieldSet extends LitElement {
10
+ /**
11
+ * Overrides the default behaviour to render into the light DOM.
12
+ */
13
+ protected createRenderRoot(): this;
14
+ /**
15
+ * The slot of the field set.
16
+ */
17
+ private get _setSlot();
18
+ /**
19
+ * Appends children to the field set slot.
20
+ */
21
+ protected firstUpdated(): void;
22
+ render(): import('lit-html').TemplateResult<1>;
23
+ }
@@ -0,0 +1,23 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ /**
4
+ * Renders a title with label styling inside `rtg-field-content`.
5
+ *
6
+ * @element rtg-field-title
7
+ * @slot field-label
8
+ */
9
+ export declare class FieldTitle extends LitElement {
10
+ /**
11
+ * Overrides the default behaviour to render into the light DOM.
12
+ */
13
+ protected createRenderRoot(): this;
14
+ /**
15
+ * The slot of the field title.
16
+ */
17
+ private get _titleSlot();
18
+ /**
19
+ * Appends children to the field title slot.
20
+ */
21
+ protected firstUpdated(): void;
22
+ render(): import('lit-html').TemplateResult<1>;
23
+ }
@@ -0,0 +1,37 @@
1
+ import { LitElement } from 'lit';
2
+ import { FieldProps, FieldOrientation } from './field.defs';
3
+
4
+ /**
5
+ * The core wrapper for a single field. Provides orientation control, invalid
6
+ * state styling, and spacing.
7
+ *
8
+ * @element rtg-field
9
+ * @slot field
10
+ */
11
+ export declare class Field extends LitElement implements FieldProps {
12
+ /**
13
+ * The orientation of the field contents.
14
+ */
15
+ orientation: FieldOrientation;
16
+ /**
17
+ * Indicates that a child of the field is disabled.
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Indicates that a child of the field is invalid.
22
+ */
23
+ invalid?: boolean;
24
+ /**
25
+ * Overrides the default behaviour to render into the light DOM.
26
+ */
27
+ protected createRenderRoot(): this;
28
+ /**
29
+ * The slot of the field root.
30
+ */
31
+ private get _rootSlot();
32
+ /**
33
+ * Appends children to the field group slot.
34
+ */
35
+ protected firstUpdated(): void;
36
+ render(): import('lit-html').TemplateResult<1>;
37
+ }
@@ -0,0 +1,30 @@
1
+ import { FieldSet } from './_field-set';
2
+ import { FieldLegend } from './_field-legend';
3
+ import { FieldGroup } from './_field-group';
4
+ import { Field } from './_field';
5
+ import { FieldContent } from './_field-content';
6
+ import { FieldLabel } from './_field-label';
7
+ import { FieldTitle } from './_field-title';
8
+ import { FieldDescription } from './_field-description';
9
+ import { FieldSeparator } from './_field-separator';
10
+ import { FieldError } from './_field-error';
11
+
12
+ export { FieldSet, FieldLegend, FieldGroup, Field, FieldContent, FieldLabel, FieldTitle, FieldDescription, FieldSeparator, FieldError, };
13
+ /**
14
+ * Combine labels, controls, and help text to compose accessible form fields and
15
+ * grouped inputs.
16
+ */
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'rtg-field-set': FieldSet;
20
+ 'rtg-field-legend': FieldLegend;
21
+ 'rtg-field-group': FieldGroup;
22
+ 'rtg-field': Field;
23
+ 'rtg-field-content': FieldContent;
24
+ 'rtg-field-label': FieldLabel;
25
+ 'rtg-field-title': FieldTitle;
26
+ 'rtg-field-description': FieldDescription;
27
+ 'rtg-field-separator': FieldSeparator;
28
+ 'rtg-field-error': FieldError;
29
+ }
30
+ }
@@ -0,0 +1,24 @@
1
+ import { LabelProps } from '../label/label.defs';
2
+
3
+ export type FieldLegendVariant = 'legend' | 'label';
4
+ export interface FieldLegendProps {
5
+ variant: FieldLegendVariant;
6
+ }
7
+ export type FieldGroupType = 'field' | 'checkbox' | 'radio';
8
+ export interface FieldGroupProps {
9
+ type: FieldGroupType;
10
+ }
11
+ export type FieldOrientation = 'vertical' | 'horizontal' | 'responsive';
12
+ export interface FieldProps {
13
+ orientation: FieldOrientation;
14
+ disabled?: boolean;
15
+ invalid?: boolean;
16
+ }
17
+ export interface FieldLabelProps extends LabelProps {
18
+ }
19
+ export type FieldErrorError = {
20
+ message?: string;
21
+ } | undefined;
22
+ export interface FieldErrorProps {
23
+ errors?: FieldErrorError[];
24
+ }
@@ -0,0 +1,17 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components-vite';
2
+
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj;
6
+ export declare const Demo: Story;
7
+ export declare const Input: Story;
8
+ export declare const Textarea: Story;
9
+ export declare const Select: Story;
10
+ export declare const Fieldset: Story;
11
+ export declare const Checkbox: Story;
12
+ export declare const Radio: Story;
13
+ export declare const Switch: Story;
14
+ export declare const ChoiceCard: Story;
15
+ export declare const FieldGroup: Story;
16
+ export declare const ResponsiveLayout: Story;
17
+ export declare const ValidationAndErrors: Story;
@@ -0,0 +1,5 @@
1
+ import { FormController } from './form-controller';
2
+
3
+ export declare const formContext: {
4
+ __context__: FormController;
5
+ };
@@ -0,0 +1,28 @@
1
+ type FieldValidator = (value: any) => string | null;
2
+ interface FieldConfig {
3
+ name: string;
4
+ defaultValue?: any;
5
+ validator?: FieldValidator;
6
+ }
7
+ export declare class FormController {
8
+ private values;
9
+ private errors;
10
+ private validators;
11
+ private subscribers;
12
+ registerField({ name, defaultValue, validator }: FieldConfig): void;
13
+ unregisterField(name: string): void;
14
+ setValue(name: string, value: any): void;
15
+ getValue(name: string): any;
16
+ getError(name: string): string | null;
17
+ validateField(name: string): boolean;
18
+ validateAll(): boolean;
19
+ subscribe(callback: () => void): () => boolean;
20
+ private notify;
21
+ getValues(): {
22
+ [x: string]: any;
23
+ };
24
+ getErrors(): {
25
+ [x: string]: string | null;
26
+ };
27
+ }
28
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const formFieldContext: {
2
+ __context__: string;
3
+ };
@@ -0,0 +1,7 @@
1
+ interface FormItemContextValue {
2
+ id: string;
3
+ }
4
+ export declare const formItemContext: {
5
+ __context__: FormItemContextValue;
6
+ };
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components-vite';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ type Story = StoryObj;
6
+ export declare const Forms: Story;
@@ -0,0 +1,7 @@
1
+ export declare const formStyles = "rtg-space-form-space-y";
2
+ export declare const formDescriptionStyles = "rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt";
3
+ export declare const formFieldStyles = "rtg-space-y-form-field-space-y";
4
+ export declare const formItemStyles = "rtg-space-y-form-item-space-y";
5
+ export declare const formLabelStyles = "rtg-text-form-label-font rtg-mb-form-label-space-mb rtg-font-form-label-font-weight rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-form-label-opacity-peer-disabled";
6
+ export declare const formErrorLabelStyles = "rtg-text-form-label-color-text-error";
7
+ export declare const formMessageStyles = "rtg-text-form-message-font-size rtg-text-form-message-color-text";
@@ -0,0 +1,17 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { FormController } from './form-controller';
3
+ import { BaseElement } from '../../../helpers';
4
+
5
+ export declare class RtgFormController extends BaseElement {
6
+ form: FormController;
7
+ private formElement;
8
+ protected createRenderRoot(): this;
9
+ private handleSubmit;
10
+ protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
11
+ render(): import('lit-html').TemplateResult<1>;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'rtg-form-controller': RtgFormController;
16
+ }
17
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseElement } from '../../../helpers';
2
+
3
+ export declare class RtgFormDescription extends BaseElement {
4
+ private itemContext;
5
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
6
+ get _desc(): HTMLParagraphElement | null;
7
+ protected firstUpdated(): void;
8
+ render(): import('lit-html').TemplateResult<1>;
9
+ }
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'rtg-form-description': RtgFormDescription;
13
+ }
14
+ }