origam 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/README.md +22 -0
  3. package/dist/src/assets/css/tokens/dark.css +318 -0
  4. package/dist/src/assets/css/tokens/light.css +159 -0
  5. package/dist/src/assets/locales/index.js +2 -2
  6. package/dist/src/assets/scss/tokens/_dark.scss +159 -0
  7. package/dist/src/assets/scss/tokens/_light.scss +159 -0
  8. package/dist/src/components/Bracket/OrigamBracket.vue +530 -0
  9. package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +210 -0
  10. package/dist/src/components/Bracket/OrigamBracketMatch.vue +288 -0
  11. package/dist/src/components/Bracket/OrigamBracketRound.vue +150 -0
  12. package/dist/src/components/Bracket/index.cjs +34 -0
  13. package/dist/src/components/Bracket/index.d.ts +4 -0
  14. package/dist/src/components/Bracket/index.js +4 -0
  15. package/dist/src/components/ClientOnly/OrigamClientOnly.vue +28 -0
  16. package/dist/src/components/ClientOnly/index.cjs +13 -0
  17. package/dist/src/components/ClientOnly/index.d.ts +1 -0
  18. package/dist/src/components/ClientOnly/index.js +1 -0
  19. package/dist/src/components/Code/OrigamCode.vue +449 -0
  20. package/dist/src/components/Code/index.cjs +13 -0
  21. package/dist/src/components/Code/index.d.ts +1 -0
  22. package/dist/src/components/Code/index.js +1 -0
  23. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +1 -0
  24. package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +614 -0
  25. package/dist/src/components/CommandPalette/index.cjs +13 -0
  26. package/dist/src/components/CommandPalette/index.d.ts +1 -0
  27. package/dist/src/components/CommandPalette/index.js +1 -0
  28. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -0
  29. package/dist/src/components/Parallax/OrigamParallax.vue +65 -34
  30. package/dist/src/components/Parallax/OrigamParallaxLayer.vue +119 -0
  31. package/dist/src/components/Parallax/index.cjs +7 -0
  32. package/dist/src/components/Parallax/index.d.ts +1 -0
  33. package/dist/src/components/Parallax/index.js +1 -0
  34. package/dist/src/components/PasswordField/OrigamPasswordField.vue +1 -0
  35. package/dist/src/components/Select/OrigamSelect.vue +1 -0
  36. package/dist/src/components/SnackbarStack/OrigamSnackbarStack.vue +457 -0
  37. package/dist/src/components/SnackbarStack/index.cjs +13 -0
  38. package/dist/src/components/SnackbarStack/index.d.ts +1 -0
  39. package/dist/src/components/SnackbarStack/index.js +1 -0
  40. package/dist/src/components/Tabs/OrigamTab.vue +263 -0
  41. package/dist/src/components/Tabs/OrigamTabPanel.vue +112 -0
  42. package/dist/src/components/Tabs/OrigamTabPanels.vue +139 -0
  43. package/dist/src/components/Tabs/OrigamTabs.vue +242 -0
  44. package/dist/src/components/Tabs/index.cjs +34 -0
  45. package/dist/src/components/Tabs/index.d.ts +4 -0
  46. package/dist/src/components/Tabs/index.js +4 -0
  47. package/dist/src/components/TextField/OrigamTextField.vue +75 -5
  48. package/dist/src/components/TextareaField/OrigamRichToolbar.vue +284 -0
  49. package/dist/src/components/TextareaField/OrigamTextareaField.vue +192 -5
  50. package/dist/src/components/TextareaField/index.cjs +7 -0
  51. package/dist/src/components/TextareaField/index.d.ts +1 -0
  52. package/dist/src/components/TextareaField/index.js +1 -0
  53. package/dist/src/components/index.cjs +66 -0
  54. package/dist/src/components/index.d.ts +6 -0
  55. package/dist/src/components/index.js +6 -0
  56. package/dist/src/composables/Code/code.composable.cjs +98 -0
  57. package/dist/src/composables/Code/code.composable.d.ts +10 -0
  58. package/dist/src/composables/Code/code.composable.js +82 -0
  59. package/dist/src/composables/CommandPalette/command.composable.cjs +53 -0
  60. package/dist/src/composables/CommandPalette/command.composable.d.ts +37 -0
  61. package/dist/src/composables/CommandPalette/command.composable.js +46 -0
  62. package/dist/src/composables/Commons/virtual.composable.cjs +1 -0
  63. package/dist/src/composables/Commons/virtual.composable.js +1 -0
  64. package/dist/src/composables/CssSupport/cssSupport.composable.cjs +12 -0
  65. package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +25 -0
  66. package/dist/src/composables/CssSupport/cssSupport.composable.js +10 -1
  67. package/dist/src/composables/DataTable/headers.composable.d.ts +36 -36
  68. package/dist/src/composables/Mask/index.cjs +16 -0
  69. package/dist/src/composables/Mask/index.d.ts +1 -0
  70. package/dist/src/composables/Mask/index.js +1 -0
  71. package/dist/src/composables/Mask/mask.composable.cjs +57 -0
  72. package/dist/src/composables/Mask/mask.composable.d.ts +39 -0
  73. package/dist/src/composables/Mask/mask.composable.js +51 -0
  74. package/dist/src/composables/Parallax/parallax.composable.cjs +232 -0
  75. package/dist/src/composables/Parallax/parallax.composable.d.ts +60 -0
  76. package/dist/src/composables/Parallax/parallax.composable.js +219 -0
  77. package/dist/src/composables/Responsive/aspect.composable.cjs +6 -1
  78. package/dist/src/composables/Responsive/aspect.composable.d.ts +10 -0
  79. package/dist/src/composables/Responsive/aspect.composable.js +6 -1
  80. package/dist/src/composables/SnackbarStack/snackbar-stack.composable.cjs +102 -0
  81. package/dist/src/composables/SnackbarStack/snackbar-stack.composable.d.ts +58 -0
  82. package/dist/src/composables/SnackbarStack/snackbar-stack.composable.js +92 -0
  83. package/dist/src/composables/Textarea/textarea-rich.composable.cjs +263 -0
  84. package/dist/src/composables/Textarea/textarea-rich.composable.d.ts +41 -0
  85. package/dist/src/composables/Textarea/textarea-rich.composable.js +257 -0
  86. package/dist/src/composables/index.cjs +66 -0
  87. package/dist/src/composables/index.d.ts +6 -0
  88. package/dist/src/composables/index.js +6 -0
  89. package/dist/src/consts/Bracket/bracket.const.cjs +12 -0
  90. package/dist/src/consts/Bracket/bracket.const.d.ts +34 -0
  91. package/dist/src/consts/Bracket/bracket.const.js +15 -0
  92. package/dist/src/consts/Code/code.const.cjs +26 -0
  93. package/dist/src/consts/Code/code.const.d.ts +40 -0
  94. package/dist/src/consts/Code/code.const.js +35 -0
  95. package/dist/src/consts/CommandPalette/command-palette.const.cjs +10 -0
  96. package/dist/src/consts/CommandPalette/command-palette.const.d.ts +16 -0
  97. package/dist/src/consts/CommandPalette/command-palette.const.js +7 -0
  98. package/dist/src/consts/Mask/built-in-patterns.const.cjs +66 -0
  99. package/dist/src/consts/Mask/built-in-patterns.const.d.ts +20 -0
  100. package/dist/src/consts/Mask/built-in-patterns.const.js +60 -0
  101. package/dist/src/consts/Parallax/parallax-layer.const.cjs +7 -0
  102. package/dist/src/consts/Parallax/parallax-layer.const.d.ts +3 -0
  103. package/dist/src/consts/Parallax/parallax-layer.const.js +1 -0
  104. package/dist/src/consts/SnackbarStack/snackbar-stack.const.cjs +12 -0
  105. package/dist/src/consts/SnackbarStack/snackbar-stack.const.d.ts +33 -0
  106. package/dist/src/consts/SnackbarStack/snackbar-stack.const.js +18 -0
  107. package/dist/src/consts/Tabs/tabs.const.cjs +9 -0
  108. package/dist/src/consts/Tabs/tabs.const.d.ts +23 -0
  109. package/dist/src/consts/Tabs/tabs.const.js +3 -0
  110. package/dist/src/consts/Textarea/textarea.const.cjs +28 -0
  111. package/dist/src/consts/Textarea/textarea.const.d.ts +38 -0
  112. package/dist/src/consts/Textarea/textarea.const.js +65 -0
  113. package/dist/src/consts/Theme/theme.const.cjs +15 -0
  114. package/dist/src/consts/Theme/theme.const.d.ts +9 -0
  115. package/dist/src/consts/Theme/theme.const.js +9 -0
  116. package/dist/src/consts/index.cjs +99 -0
  117. package/dist/src/consts/index.d.ts +9 -0
  118. package/dist/src/consts/index.js +9 -0
  119. package/dist/src/enums/Bracket/bracket-match-status.enum.cjs +13 -0
  120. package/dist/src/enums/Bracket/bracket-match-status.enum.d.ts +6 -0
  121. package/dist/src/enums/Bracket/bracket-match-status.enum.js +7 -0
  122. package/dist/src/enums/Bracket/bracket-variant.enum.cjs +12 -0
  123. package/dist/src/enums/Bracket/bracket-variant.enum.d.ts +5 -0
  124. package/dist/src/enums/Bracket/bracket-variant.enum.js +6 -0
  125. package/dist/src/enums/Code/code-lang.enum.cjs +23 -0
  126. package/dist/src/enums/Code/code-lang.enum.d.ts +25 -0
  127. package/dist/src/enums/Code/code-lang.enum.js +17 -0
  128. package/dist/src/enums/Code/code-theme.enum.cjs +12 -0
  129. package/dist/src/enums/Code/code-theme.enum.d.ts +12 -0
  130. package/dist/src/enums/Code/code-theme.enum.js +6 -0
  131. package/dist/src/enums/Mask/mask.enum.cjs +28 -0
  132. package/dist/src/enums/Mask/mask.enum.d.ts +36 -0
  133. package/dist/src/enums/Mask/mask.enum.js +22 -0
  134. package/dist/src/enums/Parallax/parallax-direction.enum.cjs +12 -0
  135. package/dist/src/enums/Parallax/parallax-direction.enum.d.ts +5 -0
  136. package/dist/src/enums/Parallax/parallax-direction.enum.js +6 -0
  137. package/dist/src/enums/Parallax/parallax-easing.enum.cjs +12 -0
  138. package/dist/src/enums/Parallax/parallax-easing.enum.d.ts +5 -0
  139. package/dist/src/enums/Parallax/parallax-easing.enum.js +6 -0
  140. package/dist/src/enums/Tabs/tab-variant.enum.cjs +12 -0
  141. package/dist/src/enums/Tabs/tab-variant.enum.d.ts +5 -0
  142. package/dist/src/enums/Tabs/tab-variant.enum.js +6 -0
  143. package/dist/src/enums/Textarea/textarea-mode.enum.cjs +11 -0
  144. package/dist/src/enums/Textarea/textarea-mode.enum.d.ts +13 -0
  145. package/dist/src/enums/Textarea/textarea-mode.enum.js +5 -0
  146. package/dist/src/enums/Textarea/textarea-output.enum.cjs +11 -0
  147. package/dist/src/enums/Textarea/textarea-output.enum.d.ts +14 -0
  148. package/dist/src/enums/Textarea/textarea-output.enum.js +5 -0
  149. package/dist/src/enums/Textarea/textarea-toolbar-command.enum.cjs +21 -0
  150. package/dist/src/enums/Textarea/textarea-toolbar-command.enum.d.ts +20 -0
  151. package/dist/src/enums/Textarea/textarea-toolbar-command.enum.js +15 -0
  152. package/dist/src/enums/Textarea/textarea-toolbar-position.enum.cjs +12 -0
  153. package/dist/src/enums/Textarea/textarea-toolbar-position.enum.d.ts +10 -0
  154. package/dist/src/enums/Textarea/textarea-toolbar-position.enum.js +6 -0
  155. package/dist/src/enums/index.cjs +132 -0
  156. package/dist/src/enums/index.d.ts +12 -0
  157. package/dist/src/enums/index.js +12 -0
  158. package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.cjs +1 -0
  159. package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +53 -0
  160. package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.js +0 -0
  161. package/dist/src/interfaces/Bracket/bracket-competitor.interface.cjs +1 -0
  162. package/dist/src/interfaces/Bracket/bracket-competitor.interface.d.ts +25 -0
  163. package/dist/src/interfaces/Bracket/bracket-competitor.interface.js +0 -0
  164. package/dist/src/interfaces/Bracket/bracket-match-component.interface.cjs +1 -0
  165. package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +45 -0
  166. package/dist/src/interfaces/Bracket/bracket-match-component.interface.js +0 -0
  167. package/dist/src/interfaces/Bracket/bracket-match.interface.cjs +1 -0
  168. package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +51 -0
  169. package/dist/src/interfaces/Bracket/bracket-match.interface.js +0 -0
  170. package/dist/src/interfaces/Bracket/bracket-round-component.interface.cjs +1 -0
  171. package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +26 -0
  172. package/dist/src/interfaces/Bracket/bracket-round-component.interface.js +0 -0
  173. package/dist/src/interfaces/Bracket/bracket-round.interface.cjs +1 -0
  174. package/dist/src/interfaces/Bracket/bracket-round.interface.d.ts +27 -0
  175. package/dist/src/interfaces/Bracket/bracket-round.interface.js +0 -0
  176. package/dist/src/interfaces/Bracket/bracket.interface.cjs +1 -0
  177. package/dist/src/interfaces/Bracket/bracket.interface.d.ts +71 -0
  178. package/dist/src/interfaces/Bracket/bracket.interface.js +0 -0
  179. package/dist/src/interfaces/Code/code.interface.cjs +1 -0
  180. package/dist/src/interfaces/Code/code.interface.d.ts +99 -0
  181. package/dist/src/interfaces/Code/code.interface.js +0 -0
  182. package/dist/src/interfaces/CommandPalette/command-palette.interface.cjs +1 -0
  183. package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +57 -0
  184. package/dist/src/interfaces/CommandPalette/command-palette.interface.js +0 -0
  185. package/dist/src/interfaces/CommandPalette/command.interface.cjs +1 -0
  186. package/dist/src/interfaces/CommandPalette/command.interface.d.ts +51 -0
  187. package/dist/src/interfaces/CommandPalette/command.interface.js +0 -0
  188. package/dist/src/interfaces/Mask/mask-options.interface.cjs +1 -0
  189. package/dist/src/interfaces/Mask/mask-options.interface.d.ts +48 -0
  190. package/dist/src/interfaces/Mask/mask-options.interface.js +0 -0
  191. package/dist/src/interfaces/Nuxt/nuxt-module.interface.cjs +1 -0
  192. package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +73 -0
  193. package/dist/src/interfaces/Nuxt/nuxt-module.interface.js +0 -0
  194. package/dist/src/interfaces/Parallax/parallax-layer.interface.cjs +1 -0
  195. package/dist/src/interfaces/Parallax/parallax-layer.interface.d.ts +39 -0
  196. package/dist/src/interfaces/Parallax/parallax-layer.interface.js +0 -0
  197. package/dist/src/interfaces/Parallax/parallax.interface.d.ts +83 -3
  198. package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.cjs +1 -0
  199. package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.d.ts +60 -0
  200. package/dist/src/interfaces/SnackbarStack/snackbar-stack-item.interface.js +0 -0
  201. package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.cjs +1 -0
  202. package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.d.ts +60 -0
  203. package/dist/src/interfaces/SnackbarStack/snackbar-stack.interface.js +0 -0
  204. package/dist/src/interfaces/Tabs/tab-panel.interface.cjs +1 -0
  205. package/dist/src/interfaces/Tabs/tab-panel.interface.d.ts +12 -0
  206. package/dist/src/interfaces/Tabs/tab-panel.interface.js +0 -0
  207. package/dist/src/interfaces/Tabs/tab-panels.interface.cjs +1 -0
  208. package/dist/src/interfaces/Tabs/tab-panels.interface.d.ts +28 -0
  209. package/dist/src/interfaces/Tabs/tab-panels.interface.js +0 -0
  210. package/dist/src/interfaces/Tabs/tab.interface.cjs +1 -0
  211. package/dist/src/interfaces/Tabs/tab.interface.d.ts +18 -0
  212. package/dist/src/interfaces/Tabs/tab.interface.js +0 -0
  213. package/dist/src/interfaces/Tabs/tabs.interface.cjs +1 -0
  214. package/dist/src/interfaces/Tabs/tabs.interface.d.ts +26 -0
  215. package/dist/src/interfaces/Tabs/tabs.interface.js +0 -0
  216. package/dist/src/interfaces/TextField/text-field.interface.d.ts +21 -1
  217. package/dist/src/interfaces/Textarea/textarea-rich.interface.cjs +1 -0
  218. package/dist/src/interfaces/Textarea/textarea-rich.interface.d.ts +41 -0
  219. package/dist/src/interfaces/Textarea/textarea-rich.interface.js +0 -0
  220. package/dist/src/interfaces/Textarea/textarea-toolbar.interface.cjs +1 -0
  221. package/dist/src/interfaces/Textarea/textarea-toolbar.interface.d.ts +31 -0
  222. package/dist/src/interfaces/Textarea/textarea-toolbar.interface.js +0 -0
  223. package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +38 -1
  224. package/dist/src/interfaces/index.cjs +231 -0
  225. package/dist/src/interfaces/index.d.ts +21 -0
  226. package/dist/src/interfaces/index.js +21 -0
  227. package/dist/src/nuxt/index.cjs +13 -0
  228. package/dist/src/nuxt/index.d.ts +2 -0
  229. package/dist/src/nuxt/index.js +1 -0
  230. package/dist/src/nuxt/module.cjs +74 -0
  231. package/dist/src/nuxt/module.d.ts +31 -0
  232. package/dist/src/nuxt/module.js +68 -0
  233. package/dist/src/nuxt/plugin.client.cjs +44 -0
  234. package/dist/src/nuxt/plugin.client.d.ts +2 -0
  235. package/dist/src/nuxt/plugin.client.js +36 -0
  236. package/dist/src/nuxt/plugin.server.cjs +51 -0
  237. package/dist/src/nuxt/plugin.server.d.ts +2 -0
  238. package/dist/src/nuxt/plugin.server.js +45 -0
  239. package/dist/src/types/Bracket/bracket-direction.type.cjs +1 -0
  240. package/dist/src/types/Bracket/bracket-direction.type.d.ts +13 -0
  241. package/dist/src/types/Bracket/bracket-direction.type.js +0 -0
  242. package/dist/src/types/Bracket/bracket-match-status.type.cjs +1 -0
  243. package/dist/src/types/Bracket/bracket-match-status.type.d.ts +2 -0
  244. package/dist/src/types/Bracket/bracket-match-status.type.js +0 -0
  245. package/dist/src/types/Bracket/bracket-round-side.type.cjs +1 -0
  246. package/dist/src/types/Bracket/bracket-round-side.type.d.ts +12 -0
  247. package/dist/src/types/Bracket/bracket-round-side.type.js +0 -0
  248. package/dist/src/types/Bracket/bracket-variant.type.cjs +1 -0
  249. package/dist/src/types/Bracket/bracket-variant.type.d.ts +2 -0
  250. package/dist/src/types/Bracket/bracket-variant.type.js +0 -0
  251. package/dist/src/types/Code/code-lang.type.cjs +1 -0
  252. package/dist/src/types/Code/code-lang.type.d.ts +2 -0
  253. package/dist/src/types/Code/code-lang.type.js +0 -0
  254. package/dist/src/types/Code/code-theme.type.cjs +1 -0
  255. package/dist/src/types/Code/code-theme.type.d.ts +2 -0
  256. package/dist/src/types/Code/code-theme.type.js +0 -0
  257. package/dist/src/types/CommandPalette/command-palette-hotkey.type.cjs +1 -0
  258. package/dist/src/types/CommandPalette/command-palette-hotkey.type.d.ts +5 -0
  259. package/dist/src/types/CommandPalette/command-palette-hotkey.type.js +0 -0
  260. package/dist/src/types/Mask/built-in-pattern.type.cjs +1 -0
  261. package/dist/src/types/Mask/built-in-pattern.type.d.ts +7 -0
  262. package/dist/src/types/Mask/built-in-pattern.type.js +0 -0
  263. package/dist/src/types/Mask/mask.type.cjs +1 -0
  264. package/dist/src/types/Mask/mask.type.d.ts +19 -0
  265. package/dist/src/types/Mask/mask.type.js +0 -0
  266. package/dist/src/types/Mask/pattern-validator.type.cjs +1 -0
  267. package/dist/src/types/Mask/pattern-validator.type.d.ts +16 -0
  268. package/dist/src/types/Mask/pattern-validator.type.js +0 -0
  269. package/dist/src/types/Parallax/parallax-direction.type.cjs +1 -0
  270. package/dist/src/types/Parallax/parallax-direction.type.d.ts +2 -0
  271. package/dist/src/types/Parallax/parallax-direction.type.js +0 -0
  272. package/dist/src/types/Parallax/parallax-easing.type.cjs +1 -0
  273. package/dist/src/types/Parallax/parallax-easing.type.d.ts +2 -0
  274. package/dist/src/types/Parallax/parallax-easing.type.js +0 -0
  275. package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.cjs +1 -0
  276. package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.d.ts +11 -0
  277. package/dist/src/types/SnackbarStack/snackbar-stack-direction.type.js +0 -0
  278. package/dist/src/types/SnackbarStack/snackbar-stack-location.type.cjs +1 -0
  279. package/dist/src/types/SnackbarStack/snackbar-stack-location.type.d.ts +9 -0
  280. package/dist/src/types/SnackbarStack/snackbar-stack-location.type.js +0 -0
  281. package/dist/src/types/SnackbarStack/snackbar-stack.type.cjs +1 -0
  282. package/dist/src/types/SnackbarStack/snackbar-stack.type.d.ts +2 -0
  283. package/dist/src/types/SnackbarStack/snackbar-stack.type.js +0 -0
  284. package/dist/src/types/Tabs/tab-panel.type.cjs +1 -0
  285. package/dist/src/types/Tabs/tab-panel.type.d.ts +2 -0
  286. package/dist/src/types/Tabs/tab-panel.type.js +0 -0
  287. package/dist/src/types/Tabs/tab-panels.type.cjs +1 -0
  288. package/dist/src/types/Tabs/tab-panels.type.d.ts +2 -0
  289. package/dist/src/types/Tabs/tab-panels.type.js +0 -0
  290. package/dist/src/types/Tabs/tab-variant.type.cjs +1 -0
  291. package/dist/src/types/Tabs/tab-variant.type.d.ts +2 -0
  292. package/dist/src/types/Tabs/tab-variant.type.js +0 -0
  293. package/dist/src/types/Tabs/tab.type.cjs +1 -0
  294. package/dist/src/types/Tabs/tab.type.d.ts +2 -0
  295. package/dist/src/types/Tabs/tab.type.js +0 -0
  296. package/dist/src/types/Tabs/tabs.type.cjs +1 -0
  297. package/dist/src/types/Tabs/tabs.type.d.ts +2 -0
  298. package/dist/src/types/Tabs/tabs.type.js +0 -0
  299. package/dist/src/types/Textarea/textarea-mode.type.cjs +1 -0
  300. package/dist/src/types/Textarea/textarea-mode.type.d.ts +2 -0
  301. package/dist/src/types/Textarea/textarea-mode.type.js +0 -0
  302. package/dist/src/types/Textarea/textarea-output.type.cjs +1 -0
  303. package/dist/src/types/Textarea/textarea-output.type.d.ts +2 -0
  304. package/dist/src/types/Textarea/textarea-output.type.js +0 -0
  305. package/dist/src/types/Textarea/textarea-toolbar-command.type.cjs +1 -0
  306. package/dist/src/types/Textarea/textarea-toolbar-command.type.d.ts +2 -0
  307. package/dist/src/types/Textarea/textarea-toolbar-command.type.js +0 -0
  308. package/dist/src/types/Textarea/textarea-toolbar-position.type.cjs +1 -0
  309. package/dist/src/types/Textarea/textarea-toolbar-position.type.d.ts +2 -0
  310. package/dist/src/types/Textarea/textarea-toolbar-position.type.js +0 -0
  311. package/dist/src/types/index.cjs +264 -0
  312. package/dist/src/types/index.d.ts +24 -0
  313. package/dist/src/types/index.js +24 -0
  314. package/dist/src/types/tokens.type.d.ts +1 -1
  315. package/dist/src/utils/Code/parse-highlight-lines.util.cjs +34 -0
  316. package/dist/src/utils/Code/parse-highlight-lines.util.d.ts +24 -0
  317. package/dist/src/utils/Code/parse-highlight-lines.util.js +28 -0
  318. package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +84 -0
  319. package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +51 -0
  320. package/dist/src/utils/CommandPalette/fuzzy-match.util.js +62 -0
  321. package/dist/src/utils/Mask/apply-mask.util.cjs +120 -0
  322. package/dist/src/utils/Mask/apply-mask.util.d.ts +13 -0
  323. package/dist/src/utils/Mask/apply-mask.util.js +91 -0
  324. package/dist/src/utils/Mask/index.cjs +38 -0
  325. package/dist/src/utils/Mask/index.d.ts +3 -0
  326. package/dist/src/utils/Mask/index.js +3 -0
  327. package/dist/src/utils/Mask/resolve-mask-config.util.cjs +31 -0
  328. package/dist/src/utils/Mask/resolve-mask-config.util.d.ts +15 -0
  329. package/dist/src/utils/Mask/resolve-mask-config.util.js +21 -0
  330. package/dist/src/utils/Mask/validate-pattern.util.cjs +92 -0
  331. package/dist/src/utils/Mask/validate-pattern.util.d.ts +41 -0
  332. package/dist/src/utils/Mask/validate-pattern.util.js +81 -0
  333. package/dist/src/utils/Textarea/html-to-markdown.util.cjs +85 -0
  334. package/dist/src/utils/Textarea/html-to-markdown.util.d.ts +21 -0
  335. package/dist/src/utils/Textarea/html-to-markdown.util.js +78 -0
  336. package/dist/src/utils/Textarea/sanitize-html.util.cjs +82 -0
  337. package/dist/src/utils/Textarea/sanitize-html.util.d.ts +17 -0
  338. package/dist/src/utils/Textarea/sanitize-html.util.js +83 -0
  339. package/dist/src/utils/index.cjs +77 -0
  340. package/dist/src/utils/index.d.ts +7 -0
  341. package/dist/src/utils/index.js +7 -0
  342. package/package.json +13 -3
  343. package/dist/src/globals.d.ts +0 -172
  344. package/dist/src/shims.d.ts +0 -36
  345. package/dist/src/vite-env.d.ts +0 -1
@@ -0,0 +1,15 @@
1
+ export var TEXTAREA_TOOLBAR_COMMAND = /* @__PURE__ */ ((TEXTAREA_TOOLBAR_COMMAND2) => {
2
+ TEXTAREA_TOOLBAR_COMMAND2["BOLD"] = "bold";
3
+ TEXTAREA_TOOLBAR_COMMAND2["ITALIC"] = "italic";
4
+ TEXTAREA_TOOLBAR_COMMAND2["UNDERLINE"] = "underline";
5
+ TEXTAREA_TOOLBAR_COMMAND2["LINK"] = "link";
6
+ TEXTAREA_TOOLBAR_COMMAND2["LIST_BULLET"] = "list-bullet";
7
+ TEXTAREA_TOOLBAR_COMMAND2["LIST_ORDERED"] = "list-ordered";
8
+ TEXTAREA_TOOLBAR_COMMAND2["HEADING_1"] = "heading-1";
9
+ TEXTAREA_TOOLBAR_COMMAND2["HEADING_2"] = "heading-2";
10
+ TEXTAREA_TOOLBAR_COMMAND2["HEADING_3"] = "heading-3";
11
+ TEXTAREA_TOOLBAR_COMMAND2["HEADING"] = "heading";
12
+ TEXTAREA_TOOLBAR_COMMAND2["CODE_INLINE"] = "code-inline";
13
+ TEXTAREA_TOOLBAR_COMMAND2["CLEAR_FORMAT"] = "clear-format";
14
+ return TEXTAREA_TOOLBAR_COMMAND2;
15
+ })(TEXTAREA_TOOLBAR_COMMAND || {});
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TEXTAREA_TOOLBAR_POSITION = void 0;
7
+ var TEXTAREA_TOOLBAR_POSITION = exports.TEXTAREA_TOOLBAR_POSITION = /* @__PURE__ */(TEXTAREA_TOOLBAR_POSITION2 => {
8
+ TEXTAREA_TOOLBAR_POSITION2["TOP"] = "top";
9
+ TEXTAREA_TOOLBAR_POSITION2["BOTTOM"] = "bottom";
10
+ TEXTAREA_TOOLBAR_POSITION2["FLOATING"] = "floating";
11
+ return TEXTAREA_TOOLBAR_POSITION2;
12
+ })(TEXTAREA_TOOLBAR_POSITION || {});
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Where the rich-text toolbar is rendered relative to the editable
3
+ * surface. `FLOATING` pins it to the viewport via `position: sticky`
4
+ * inside the Field shell so it stays visible while the surface scrolls.
5
+ */
6
+ export declare enum TEXTAREA_TOOLBAR_POSITION {
7
+ TOP = "top",
8
+ BOTTOM = "bottom",
9
+ FLOATING = "floating"
10
+ }
@@ -0,0 +1,6 @@
1
+ export var TEXTAREA_TOOLBAR_POSITION = /* @__PURE__ */ ((TEXTAREA_TOOLBAR_POSITION2) => {
2
+ TEXTAREA_TOOLBAR_POSITION2["TOP"] = "top";
3
+ TEXTAREA_TOOLBAR_POSITION2["BOTTOM"] = "bottom";
4
+ TEXTAREA_TOOLBAR_POSITION2["FLOATING"] = "floating";
5
+ return TEXTAREA_TOOLBAR_POSITION2;
6
+ })(TEXTAREA_TOOLBAR_POSITION || {});
@@ -36,6 +36,28 @@ Object.keys(_chart).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _codeLang = require("./Code/code-lang.enum.cjs");
40
+ Object.keys(_codeLang).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _codeLang[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _codeLang[key];
47
+ }
48
+ });
49
+ });
50
+ var _codeTheme = require("./Code/code-theme.enum.cjs");
51
+ Object.keys(_codeTheme).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _codeTheme[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _codeTheme[key];
58
+ }
59
+ });
60
+ });
39
61
  var _colorPicker = require("./ColorPicker/color-picker.enum.cjs");
40
62
  Object.keys(_colorPicker).forEach(function (key) {
41
63
  if (key === "default" || key === "__esModule") return;
@@ -421,6 +443,28 @@ Object.keys(_transition).forEach(function (key) {
421
443
  }
422
444
  });
423
445
  });
446
+ var _bracketVariant = require("./Bracket/bracket-variant.enum.cjs");
447
+ Object.keys(_bracketVariant).forEach(function (key) {
448
+ if (key === "default" || key === "__esModule") return;
449
+ if (key in exports && exports[key] === _bracketVariant[key]) return;
450
+ Object.defineProperty(exports, key, {
451
+ enumerable: true,
452
+ get: function () {
453
+ return _bracketVariant[key];
454
+ }
455
+ });
456
+ });
457
+ var _bracketMatchStatus = require("./Bracket/bracket-match-status.enum.cjs");
458
+ Object.keys(_bracketMatchStatus).forEach(function (key) {
459
+ if (key === "default" || key === "__esModule") return;
460
+ if (key in exports && exports[key] === _bracketMatchStatus[key]) return;
461
+ Object.defineProperty(exports, key, {
462
+ enumerable: true,
463
+ get: function () {
464
+ return _bracketMatchStatus[key];
465
+ }
466
+ });
467
+ });
424
468
  var _card = require("./Card/card.enum.cjs");
425
469
  Object.keys(_card).forEach(function (key) {
426
470
  if (key === "default" || key === "__esModule") return;
@@ -454,6 +498,50 @@ Object.keys(_textField).forEach(function (key) {
454
498
  }
455
499
  });
456
500
  });
501
+ var _textareaMode = require("./Textarea/textarea-mode.enum.cjs");
502
+ Object.keys(_textareaMode).forEach(function (key) {
503
+ if (key === "default" || key === "__esModule") return;
504
+ if (key in exports && exports[key] === _textareaMode[key]) return;
505
+ Object.defineProperty(exports, key, {
506
+ enumerable: true,
507
+ get: function () {
508
+ return _textareaMode[key];
509
+ }
510
+ });
511
+ });
512
+ var _textareaOutput = require("./Textarea/textarea-output.enum.cjs");
513
+ Object.keys(_textareaOutput).forEach(function (key) {
514
+ if (key === "default" || key === "__esModule") return;
515
+ if (key in exports && exports[key] === _textareaOutput[key]) return;
516
+ Object.defineProperty(exports, key, {
517
+ enumerable: true,
518
+ get: function () {
519
+ return _textareaOutput[key];
520
+ }
521
+ });
522
+ });
523
+ var _textareaToolbarCommand = require("./Textarea/textarea-toolbar-command.enum.cjs");
524
+ Object.keys(_textareaToolbarCommand).forEach(function (key) {
525
+ if (key === "default" || key === "__esModule") return;
526
+ if (key in exports && exports[key] === _textareaToolbarCommand[key]) return;
527
+ Object.defineProperty(exports, key, {
528
+ enumerable: true,
529
+ get: function () {
530
+ return _textareaToolbarCommand[key];
531
+ }
532
+ });
533
+ });
534
+ var _textareaToolbarPosition = require("./Textarea/textarea-toolbar-position.enum.cjs");
535
+ Object.keys(_textareaToolbarPosition).forEach(function (key) {
536
+ if (key === "default" || key === "__esModule") return;
537
+ if (key in exports && exports[key] === _textareaToolbarPosition[key]) return;
538
+ Object.defineProperty(exports, key, {
539
+ enumerable: true,
540
+ get: function () {
541
+ return _textareaToolbarPosition[key];
542
+ }
543
+ });
544
+ });
457
545
  var _parallax = require("./Parallax/parallax.enum.cjs");
458
546
  Object.keys(_parallax).forEach(function (key) {
459
547
  if (key === "default" || key === "__esModule") return;
@@ -476,6 +564,28 @@ Object.keys(_parallaxElement).forEach(function (key) {
476
564
  }
477
565
  });
478
566
  });
567
+ var _parallaxDirection = require("./Parallax/parallax-direction.enum.cjs");
568
+ Object.keys(_parallaxDirection).forEach(function (key) {
569
+ if (key === "default" || key === "__esModule") return;
570
+ if (key in exports && exports[key] === _parallaxDirection[key]) return;
571
+ Object.defineProperty(exports, key, {
572
+ enumerable: true,
573
+ get: function () {
574
+ return _parallaxDirection[key];
575
+ }
576
+ });
577
+ });
578
+ var _parallaxEasing = require("./Parallax/parallax-easing.enum.cjs");
579
+ Object.keys(_parallaxEasing).forEach(function (key) {
580
+ if (key === "default" || key === "__esModule") return;
581
+ if (key in exports && exports[key] === _parallaxEasing[key]) return;
582
+ Object.defineProperty(exports, key, {
583
+ enumerable: true,
584
+ get: function () {
585
+ return _parallaxEasing[key];
586
+ }
587
+ });
588
+ });
479
589
  var _dataTable = require("./DataTable/data-table.enum.cjs");
480
590
  Object.keys(_dataTable).forEach(function (key) {
481
591
  if (key === "default" || key === "__esModule") return;
@@ -497,4 +607,26 @@ Object.keys(_datePicker).forEach(function (key) {
497
607
  return _datePicker[key];
498
608
  }
499
609
  });
610
+ });
611
+ var _tabVariant = require("./Tabs/tab-variant.enum.cjs");
612
+ Object.keys(_tabVariant).forEach(function (key) {
613
+ if (key === "default" || key === "__esModule") return;
614
+ if (key in exports && exports[key] === _tabVariant[key]) return;
615
+ Object.defineProperty(exports, key, {
616
+ enumerable: true,
617
+ get: function () {
618
+ return _tabVariant[key];
619
+ }
620
+ });
621
+ });
622
+ var _mask = require("./Mask/mask.enum.cjs");
623
+ Object.keys(_mask).forEach(function (key) {
624
+ if (key === "default" || key === "__esModule") return;
625
+ if (key in exports && exports[key] === _mask[key]) return;
626
+ Object.defineProperty(exports, key, {
627
+ enumerable: true,
628
+ get: function () {
629
+ return _mask[key];
630
+ }
631
+ });
500
632
  });
@@ -1,6 +1,8 @@
1
1
  export * from './Icon/mdi.enum';
2
2
  export * from './Img/img.enum';
3
3
  export * from './Charts/chart.enum';
4
+ export * from './Code/code-lang.enum';
5
+ export * from './Code/code-theme.enum';
4
6
  export * from './ColorPicker/color-picker.enum';
5
7
  export * from './Commons/commons.enum';
6
8
  export * from './Commons/align.enum';
@@ -36,10 +38,20 @@ export * from './Progress/progress.enum';
36
38
  export * from './Grids/row.enum';
37
39
  export * from './Grids/col.enum';
38
40
  export * from './Transition/transition.enum';
41
+ export * from './Bracket/bracket-variant.enum';
42
+ export * from './Bracket/bracket-match-status.enum';
39
43
  export * from './Card/card.enum';
40
44
  export * from './InfiniteScroll/infinite-scroll.enum';
41
45
  export * from './TextField/text-field.enum';
46
+ export * from './Textarea/textarea-mode.enum';
47
+ export * from './Textarea/textarea-output.enum';
48
+ export * from './Textarea/textarea-toolbar-command.enum';
49
+ export * from './Textarea/textarea-toolbar-position.enum';
42
50
  export * from './Parallax/parallax.enum';
43
51
  export * from './Parallax/parallax-element.enum';
52
+ export * from './Parallax/parallax-direction.enum';
53
+ export * from './Parallax/parallax-easing.enum';
44
54
  export * from './DataTable/data-table.enum';
45
55
  export * from './DatePicker/date-picker.enum';
56
+ export * from './Tabs/tab-variant.enum';
57
+ export * from './Mask/mask.enum';
@@ -1,6 +1,8 @@
1
1
  export * from "./Icon/mdi.enum.js";
2
2
  export * from "./Img/img.enum.js";
3
3
  export * from "./Charts/chart.enum.js";
4
+ export * from "./Code/code-lang.enum.js";
5
+ export * from "./Code/code-theme.enum.js";
4
6
  export * from "./ColorPicker/color-picker.enum.js";
5
7
  export * from "./Commons/commons.enum.js";
6
8
  export * from "./Commons/align.enum.js";
@@ -36,10 +38,20 @@ export * from "./Progress/progress.enum.js";
36
38
  export * from "./Grids/row.enum.js";
37
39
  export * from "./Grids/col.enum.js";
38
40
  export * from "./Transition/transition.enum.js";
41
+ export * from "./Bracket/bracket-variant.enum.js";
42
+ export * from "./Bracket/bracket-match-status.enum.js";
39
43
  export * from "./Card/card.enum.js";
40
44
  export * from "./InfiniteScroll/infinite-scroll.enum.js";
41
45
  export * from "./TextField/text-field.enum.js";
46
+ export * from "./Textarea/textarea-mode.enum.js";
47
+ export * from "./Textarea/textarea-output.enum.js";
48
+ export * from "./Textarea/textarea-toolbar-command.enum.js";
49
+ export * from "./Textarea/textarea-toolbar-position.enum.js";
42
50
  export * from "./Parallax/parallax.enum.js";
43
51
  export * from "./Parallax/parallax-element.enum.js";
52
+ export * from "./Parallax/parallax-direction.enum.js";
53
+ export * from "./Parallax/parallax-easing.enum.js";
44
54
  export * from "./DataTable/data-table.enum.js";
45
55
  export * from "./DatePicker/date-picker.enum.js";
56
+ export * from "./Tabs/tab-variant.enum.js";
57
+ export * from "./Mask/mask.enum.js";
@@ -0,0 +1,53 @@
1
+ import type { ICommonsComponentProps, ITagProps } from '../../interfaces';
2
+ import type { TIntent } from '../../types';
3
+ import type { IBracketCompetitor } from './bracket-competitor.interface';
4
+ /**
5
+ * Props for `<OrigamBracketCompetitor>` — a single competitor row.
6
+ * Exported so consumers can render a competitor row standalone (e.g.
7
+ * inside a custom match slot).
8
+ */
9
+ export interface IBracketCompetitorProps extends ICommonsComponentProps, ITagProps {
10
+ /**
11
+ * The competitor payload. `null` renders a "TBD" placeholder — used
12
+ * when the match's participant is not yet determined (winner of an
13
+ * earlier round, byes, …).
14
+ */
15
+ competitor: IBracketCompetitor | null;
16
+ /** Optional score — accepts string for non-numeric markers. */
17
+ score?: number | string;
18
+ /**
19
+ * Whether to apply the `--winner` modifier class (bolder text,
20
+ * intent-tinted background).
21
+ *
22
+ * @default false
23
+ */
24
+ isWinner?: boolean;
25
+ /**
26
+ * Mirror the player-is-loser state. Used to lighten the row when
27
+ * the match is completed and the consumer wants to de-emphasize
28
+ * the losing side.
29
+ *
30
+ * @default false
31
+ */
32
+ isLoser?: boolean;
33
+ /**
34
+ * Toggle the score column.
35
+ *
36
+ * @default true
37
+ */
38
+ showScore?: boolean;
39
+ /**
40
+ * Toggle the seed prefix.
41
+ *
42
+ * @default false
43
+ */
44
+ showSeed?: boolean;
45
+ /**
46
+ * Whether the row advertises interactivity (hover state, cursor).
47
+ *
48
+ * @default true
49
+ */
50
+ interactive?: boolean;
51
+ /** Intent color driving the winner highlight. */
52
+ color?: TIntent;
53
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * A single competitor / team in a bracket match.
3
+ *
4
+ * Kept intentionally generic — neither e-sport-specific (no `team` /
5
+ * `player` distinction) nor sport-specific. Consumers can stash any
6
+ * extra payload under `metadata`.
7
+ */
8
+ export interface IBracketCompetitor {
9
+ /** Stable identifier — used to detect the winner via `winnerId`. */
10
+ id: string | number;
11
+ /** Display name (team name, player tag, …). */
12
+ name: string;
13
+ /**
14
+ * Optional seed number (`1` = top seed). When `showSeed` is enabled
15
+ * on `OrigamBracket`, the seed is rendered before the name.
16
+ */
17
+ seed?: number;
18
+ /**
19
+ * Optional avatar URL (team logo, country flag, player portrait).
20
+ * Rendered as a small `<img>` left of the name.
21
+ */
22
+ avatar?: string;
23
+ /** Free-form payload — never read by the component. */
24
+ metadata?: Record<string, unknown>;
25
+ }
@@ -0,0 +1,45 @@
1
+ import type { ICommonsComponentProps, ITagProps } from '../../interfaces';
2
+ import type { TBracketMatchStatus, TIntent } from '../../types';
3
+ import type { IBracketMatch } from './bracket-match.interface';
4
+ /**
5
+ * Props for `<OrigamBracketMatch>` — a single match card rendered
6
+ * inside `<OrigamBracket>`. Exported so consumers can render a match
7
+ * card outside the full bracket (e.g. on a match-details page).
8
+ */
9
+ export interface IBracketMatchProps extends ICommonsComponentProps, ITagProps {
10
+ /** The match payload to render. */
11
+ match: IBracketMatch;
12
+ /**
13
+ * Override of the per-match status — useful when the caller wants
14
+ * to force a status (e.g. preview a "live" badge from a story).
15
+ */
16
+ status?: TBracketMatchStatus;
17
+ /**
18
+ * Hoists the match into the "final" visual treatment — bigger
19
+ * card, shadow, and rounded corners.
20
+ *
21
+ * @default false
22
+ */
23
+ isFinal?: boolean;
24
+ /**
25
+ * Hides the score column when `false`.
26
+ *
27
+ * @default true
28
+ */
29
+ showScores?: boolean;
30
+ /**
31
+ * Shows the seed prefix on competitor names.
32
+ *
33
+ * @default false
34
+ */
35
+ showSeed?: boolean;
36
+ /**
37
+ * Whether the card advertises interactivity (hover state, cursor,
38
+ * keyboard focus, `role="button"`).
39
+ *
40
+ * @default true
41
+ */
42
+ interactive?: boolean;
43
+ /** Intent color for the winner highlight. */
44
+ color?: TIntent;
45
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,51 @@
1
+ import type { TBracketMatchStatus } from '../../types';
2
+ import type { IBracketCompetitor } from './bracket-competitor.interface';
3
+ /**
4
+ * A single match between two competitors.
5
+ *
6
+ * `competitorA` / `competitorB` are nullable so the bracket can render
7
+ * "TBD" placeholders for matches whose participants are not yet
8
+ * determined (e.g. winner of an earlier round).
9
+ *
10
+ * `scoreA` / `scoreB` accept `string` to allow non-numeric markers
11
+ * (`'—'`, `'DSQ'`, `'W/O'`, …) without forcing the consumer to coerce.
12
+ *
13
+ * `nextMatchId` lets `OrigamBracket` draw a connector from this match
14
+ * to the next round automatically. If `undefined`, the layout falls
15
+ * back to positional mapping (match `i` of round `n` connects to match
16
+ * `floor(i / 2)` of round `n + 1`).
17
+ */
18
+ export interface IBracketMatch {
19
+ /** Stable identifier — required for connector linking. */
20
+ id: string | number;
21
+ /** Left-side / top-side competitor. `null` = TBD or bye. */
22
+ competitorA: IBracketCompetitor | null;
23
+ /** Right-side / bottom-side competitor. `null` = TBD or bye. */
24
+ competitorB: IBracketCompetitor | null;
25
+ /** Score of `competitorA`. Accepts `string` for non-numeric markers. */
26
+ scoreA?: number | string;
27
+ /** Score of `competitorB`. Accepts `string` for non-numeric markers. */
28
+ scoreB?: number | string;
29
+ /**
30
+ * Identifier of the declared winner. Falls back to `null` /
31
+ * `undefined` when the match is not yet completed. Used by the
32
+ * component to apply the `--winner` modifier class on the
33
+ * relevant competitor row.
34
+ */
35
+ winnerId?: string | number | null;
36
+ /**
37
+ * Optional lifecycle marker. Drives the visual `--status-{value}`
38
+ * modifier on the match card (e.g. live pulse, completed grey out).
39
+ */
40
+ status?: TBracketMatchStatus;
41
+ /**
42
+ * Optional id of the downstream match this one feeds into. Used
43
+ * by the connector layout to draw a path. If omitted, positional
44
+ * mapping is used.
45
+ */
46
+ nextMatchId?: string | number;
47
+ /** ISO date string — informative only, displayed when present. */
48
+ scheduledAt?: string;
49
+ /** Free-form payload — never read by the component. */
50
+ metadata?: Record<string, unknown>;
51
+ }
@@ -0,0 +1,26 @@
1
+ import type { ICommonsComponentProps, IDirectionProps, ITagProps } from '../../interfaces';
2
+ import type { TIntent } from '../../types';
3
+ import type { IBracketRound } from './bracket-round.interface';
4
+ /**
5
+ * Props for `<OrigamBracketRound>` — a single round (column in
6
+ * horizontal mode, row in vertical mode). Exported so consumers can
7
+ * render a round standalone (e.g. inside a custom layout).
8
+ */
9
+ export interface IBracketRoundProps extends ICommonsComponentProps, ITagProps, IDirectionProps {
10
+ /** The round payload to render. */
11
+ round: IBracketRound;
12
+ /** Index of the round inside its bracket — drives the vertical offset. */
13
+ index: number;
14
+ /** Total number of rounds — used to flag the last round as final. */
15
+ totalRounds: number;
16
+ /** Toggle the round title heading. */
17
+ showRoundTitle?: boolean;
18
+ /** Forward to children — toggles score column. */
19
+ showScores?: boolean;
20
+ /** Forward to children — toggles seed prefix. */
21
+ showSeed?: boolean;
22
+ /** Forward to children — toggles match-card interactivity. */
23
+ interactive?: boolean;
24
+ /** Forward intent color. */
25
+ color?: TIntent;
26
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,27 @@
1
+ import type { TBracketRoundSide } from '../../types';
2
+ import type { IBracketMatch } from './bracket-match.interface';
3
+ /**
4
+ * A round (column in horizontal mode, row in vertical mode) of the
5
+ * tournament tree.
6
+ *
7
+ * Title is required — `OrigamBracket` renders it above (or beside) the
8
+ * matches list when `showRoundTitles` is enabled. Consumers should
9
+ * pre-translate the label (the component does not call `useT`).
10
+ *
11
+ * `side` is only meaningful for double-elimination — single-elim
12
+ * tournaments leave it `undefined`.
13
+ */
14
+ export interface IBracketRound {
15
+ /** Stable identifier — used as key and in slot scopes. */
16
+ id: string | number;
17
+ /** Pre-translated label ("Quarter-finals", "Semi-finals", "Final"). */
18
+ title: string;
19
+ /** Ordered list of matches that belong to this round. */
20
+ matches: IBracketMatch[];
21
+ /**
22
+ * Optional bracket-side marker for double-elimination layouts.
23
+ * Drives grouping into Winner Bracket / Loser Bracket / Grand
24
+ * Final sections.
25
+ */
26
+ side?: TBracketRoundSide;
27
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,71 @@
1
+ import type { ICommonsComponentProps, IDensityProps, IRoundedProps, ITagProps } from '../../interfaces';
2
+ import type { TBracketVariant, TIntent } from '../../types';
3
+ import type { IBracketRound } from './bracket-round.interface';
4
+ /**
5
+ * Props for `<OrigamBracket>` — a tournament tree renderer supporting
6
+ * single-elimination, double-elimination and round-robin layouts.
7
+ *
8
+ * The component is purely presentational: it accepts an immutable
9
+ * `rounds` payload and emits user-interaction events (`match-click`,
10
+ * `winner-click`, `competitor-click`) so the consumer can update the
11
+ * data and re-render. No internal state is held about scores or
12
+ * winners — the data passed in is the source of truth.
13
+ */
14
+ export interface IBracketProps extends ICommonsComponentProps, ITagProps, IDensityProps, IRoundedProps {
15
+ /**
16
+ * Required. Pre-ordered list of rounds. For single-elimination,
17
+ * the rounds are laid out from earliest (e.g. round-of-16) to
18
+ * final. For double-elimination, segregate by `IBracketRound.side`
19
+ * (`'winner'`, `'loser'`, `'grand-final'`).
20
+ */
21
+ rounds: IBracketRound[];
22
+ /**
23
+ * Tournament shape. Single-elimination is the default.
24
+ * Round-robin renders a NxN matrix instead of a tree.
25
+ *
26
+ * @default 'single-elimination'
27
+ */
28
+ variant?: TBracketVariant;
29
+ /**
30
+ * Layout axis. Horizontal stacks rounds as columns (the classic
31
+ * tournament tree look). Vertical stacks rounds as rows — useful
32
+ * for narrow viewports. Ignored when `variant === 'round-robin'`
33
+ * (the matrix layout has its own grid axis).
34
+ *
35
+ * @default 'horizontal'
36
+ */
37
+ direction?: 'horizontal' | 'vertical';
38
+ /**
39
+ * Toggle round headers (`<h3>Quarter-finals</h3>`).
40
+ *
41
+ * @default true
42
+ */
43
+ showRoundTitles?: boolean;
44
+ /**
45
+ * Toggle the score column on each competitor row.
46
+ *
47
+ * @default true
48
+ */
49
+ showScores?: boolean;
50
+ /**
51
+ * Toggle the seed prefix on competitor names (e.g. `1. Team Liquid`).
52
+ *
53
+ * @default false
54
+ */
55
+ showSeed?: boolean;
56
+ /**
57
+ * Semantic intent driving the winner highlight color, the connector
58
+ * "winner" stroke, and any focus rings.
59
+ *
60
+ * @default 'primary'
61
+ */
62
+ color?: TIntent;
63
+ /**
64
+ * Whether match cards should be interactive (cursor, hover state,
65
+ * keyboard focus). When `false`, click handlers still fire but the
66
+ * cards do not advertise affordance.
67
+ *
68
+ * @default true
69
+ */
70
+ interactive?: boolean;
71
+ }
@@ -0,0 +1 @@
1
+ "use strict";