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,614 @@
1
+ <template>
2
+ <teleport to="body">
3
+ <transition name="origam-command-palette--fade">
4
+ <div
5
+ v-if="isActive"
6
+ ref="rootRef"
7
+ :class="rootClasses"
8
+ :style="rootStyles"
9
+ :data-cy="dataCy"
10
+ @click.self="handleBackdropClick"
11
+ @keydown="handleKeydown"
12
+ >
13
+ <div
14
+ ref="dialogRef"
15
+ :aria-labelledby="inputId"
16
+ :class="dialogClasses"
17
+ :style="dialogStyles"
18
+ aria-modal="true"
19
+ role="dialog"
20
+ tabindex="-1"
21
+ >
22
+ <div class="origam-command-palette__search">
23
+ <origam-icon
24
+ :icon="MDI_ICONS.MAGNIFY"
25
+ :size="20"
26
+ aria-hidden="true"
27
+ class="origam-command-palette__search-icon"
28
+ />
29
+ <input
30
+ :id="inputId"
31
+ ref="inputRef"
32
+ v-model="query"
33
+ :aria-activedescendant="activeOptionId"
34
+ :aria-controls="listboxId"
35
+ :aria-expanded="String(hasResults)"
36
+ :placeholder="placeholder"
37
+ aria-autocomplete="list"
38
+ autocomplete="off"
39
+ class="origam-command-palette__input"
40
+ role="combobox"
41
+ spellcheck="false"
42
+ type="text"
43
+ @input="handleInput"
44
+ @keydown.down.prevent="moveActive(1)"
45
+ @keydown.up.prevent="moveActive(-1)"
46
+ @keydown.enter.prevent="handleEnter"
47
+ @keydown.escape.prevent="handleEscape"
48
+ />
49
+ </div>
50
+
51
+ <div
52
+ :id="listboxId"
53
+ :aria-label="placeholder"
54
+ :style="listStyles"
55
+ class="origam-command-palette__list"
56
+ role="listbox"
57
+ >
58
+ <div
59
+ v-if="loading"
60
+ class="origam-command-palette__loading"
61
+ >
62
+ <origam-icon
63
+ :icon="MDI_ICONS.LOADING"
64
+ :size="20"
65
+ class="origam-command-palette__loading-icon"
66
+ />
67
+ </div>
68
+
69
+ <template
70
+ v-else-if="hasResults"
71
+ >
72
+ <template
73
+ v-for="group in groupedResults"
74
+ :key="group.label || '__default__'"
75
+ >
76
+ <div
77
+ v-if="group.label"
78
+ class="origam-command-palette__group-title"
79
+ >
80
+ {{ group.label }}
81
+ </div>
82
+
83
+ <button
84
+ v-for="entry in group.items"
85
+ :id="optionDomId(entry.command.id)"
86
+ :key="entry.command.id"
87
+ :aria-disabled="entry.command.disabled ? 'true' : 'false'"
88
+ :aria-selected="entry.command.id === activeCommandId ? 'true' : 'false'"
89
+ :class="itemClasses(entry.command)"
90
+ :disabled="entry.command.disabled"
91
+ role="option"
92
+ tabindex="-1"
93
+ type="button"
94
+ @click="handleItemClick(entry.command)"
95
+ @mousemove="handleItemHover(entry.command)"
96
+ >
97
+ <slot
98
+ name="item"
99
+ v-bind="{ command: entry.command, isActive: entry.command.id === activeCommandId }"
100
+ >
101
+ <origam-icon
102
+ v-if="entry.command.icon"
103
+ :icon="entry.command.icon"
104
+ :size="18"
105
+ class="origam-command-palette__item-icon"
106
+ />
107
+
108
+ <span class="origam-command-palette__item-text">
109
+ <span class="origam-command-palette__item-label">{{ entry.command.label }}</span>
110
+ <span
111
+ v-if="entry.command.description"
112
+ class="origam-command-palette__item-description"
113
+ >
114
+ {{ entry.command.description }}
115
+ </span>
116
+ </span>
117
+
118
+ <origam-kbd
119
+ v-if="entry.command.kbd && entry.command.kbd.length > 0"
120
+ :combination="[...entry.command.kbd]"
121
+ class="origam-command-palette__item-kbd"
122
+ variant="outlined"
123
+ />
124
+ </slot>
125
+ </button>
126
+ </template>
127
+ </template>
128
+
129
+ <div
130
+ v-else
131
+ class="origam-command-palette__empty"
132
+ >
133
+ <slot name="empty">
134
+ {{ emptyText }}
135
+ </slot>
136
+ </div>
137
+ </div>
138
+
139
+ <div
140
+ v-if="slots.footer || hasDefaultFooter"
141
+ class="origam-command-palette__footer"
142
+ >
143
+ <slot name="footer">
144
+ <span class="origam-command-palette__footer-hint">
145
+ <origam-kbd :combination="['arrowup', 'arrowdown']" variant="tonal"/>
146
+ {{ navigateText }}
147
+ </span>
148
+ <span class="origam-command-palette__footer-hint">
149
+ <origam-kbd :combination="['enter']" variant="tonal"/>
150
+ {{ selectText }}
151
+ </span>
152
+ <span class="origam-command-palette__footer-hint">
153
+ <origam-kbd :combination="['esc']" variant="tonal"/>
154
+ {{ closeText }}
155
+ </span>
156
+ </slot>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </transition>
161
+ </teleport>
162
+ </template>
163
+
164
+ <script setup>
165
+ import { computed, nextTick, ref, StyleValue, useSlots, watch } from "vue";
166
+ import { OrigamIcon, OrigamKbd } from "../../components";
167
+ import { useCommand } from "../../composables/CommandPalette/command.composable";
168
+ import { useHotkey } from "../../composables/Commons/hotkey.composable";
169
+ import { useVModel } from "../../composables/Commons/vModel.composable";
170
+ import {
171
+ COMMAND_PALETTE_DEFAULT_HOTKEY,
172
+ COMMAND_PALETTE_DEFAULT_MAX_HEIGHT,
173
+ COMMAND_PALETTE_DEFAULT_WIDTH,
174
+ IN_BROWSER
175
+ } from "../../consts";
176
+ import { MDI_ICONS } from "../../enums";
177
+ import { getUid } from "../../utils";
178
+ import { fuzzyMatch } from "../../utils/CommandPalette/fuzzy-match.util";
179
+ const props = defineProps({
180
+ modelValue: { type: Boolean, required: false, default: false },
181
+ hotkey: { type: [Array, null], required: false, default: () => COMMAND_PALETTE_DEFAULT_HOTKEY },
182
+ commands: { type: Array, required: false },
183
+ placeholder: { type: String, required: false, default: "Search\u2026" },
184
+ emptyText: { type: String, required: false, default: "No results" },
185
+ maxHeight: { type: [Number, String], required: false, default: COMMAND_PALETTE_DEFAULT_MAX_HEIGHT },
186
+ width: { type: [Number, String], required: false, default: COMMAND_PALETTE_DEFAULT_WIDTH },
187
+ loading: { type: Boolean, required: false, default: false },
188
+ closeOnSelect: { type: Boolean, required: false, default: true },
189
+ closeOnEscape: { type: Boolean, required: false, default: true },
190
+ closeOnBackdrop: { type: Boolean, required: false, default: true },
191
+ id: { type: String, required: false },
192
+ class: { type: [String, Array, Object], required: false },
193
+ style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true }
194
+ });
195
+ const emit = defineEmits(["update:modelValue", "select", "query"]);
196
+ defineSlots();
197
+ const slots = useSlots();
198
+ const isActive = useVModel(props, "modelValue");
199
+ const { commands: registryCommands, isOpen: registryOpen } = useCommand();
200
+ watch(registryOpen, (next) => {
201
+ if (next !== isActive.value) isActive.value = next;
202
+ });
203
+ watch(isActive, (next) => {
204
+ if (next !== registryOpen.value) registryOpen.value = next;
205
+ });
206
+ const uid = getUid();
207
+ const inputId = computed(() => `origam-command-palette-input-${uid}`);
208
+ const listboxId = computed(() => `origam-command-palette-listbox-${uid}`);
209
+ const dataCy = computed(() => "origam-command-palette");
210
+ const rootRef = ref();
211
+ const dialogRef = ref();
212
+ const inputRef = ref();
213
+ const normalizedHotkeys = computed(() => {
214
+ const raw = props.hotkey;
215
+ if (!raw) return [];
216
+ if (raw.length === 0) return [];
217
+ if (Array.isArray(raw[0])) {
218
+ return raw;
219
+ }
220
+ return [raw];
221
+ });
222
+ const toggle = () => {
223
+ isActive.value = !isActive.value;
224
+ };
225
+ if (IN_BROWSER) {
226
+ const installed = [];
227
+ watch(normalizedHotkeys, (next) => {
228
+ while (installed.length > 0) {
229
+ const dispose = installed.pop();
230
+ try {
231
+ dispose?.();
232
+ } catch {
233
+ }
234
+ }
235
+ next.forEach((combo) => {
236
+ const keysAsString = combo.join("+");
237
+ const cleanup = useHotkey(keysAsString, () => toggle());
238
+ installed.push(cleanup);
239
+ });
240
+ }, { immediate: true });
241
+ }
242
+ const sourceCommands = computed(() => {
243
+ if (props.commands && props.commands.length > 0) return props.commands;
244
+ return registryCommands.value;
245
+ });
246
+ const query = ref("");
247
+ const filtered = computed(() => {
248
+ return fuzzyMatch(sourceCommands.value, query.value, (cmd) => ({
249
+ label: cmd.label,
250
+ haystack: [
251
+ cmd.label,
252
+ ...cmd.keywords ?? [],
253
+ cmd.description ?? ""
254
+ ].join(" ")
255
+ }));
256
+ });
257
+ const hasResults = computed(() => filtered.value.length > 0);
258
+ const groupedResults = computed(() => {
259
+ if (query.value.trim().length > 0) {
260
+ return [{ label: null, items: filtered.value }];
261
+ }
262
+ const buckets = /* @__PURE__ */ new Map();
263
+ const order = [];
264
+ filtered.value.forEach((entry) => {
265
+ const key = entry.item.group ?? null;
266
+ if (!buckets.has(key)) {
267
+ buckets.set(key, []);
268
+ order.push(key);
269
+ }
270
+ buckets.get(key).push(entry);
271
+ });
272
+ return order.map((key) => ({
273
+ label: key,
274
+ items: buckets.get(key) ?? []
275
+ }));
276
+ });
277
+ const flatResults = computed(() => {
278
+ const flat = [];
279
+ groupedResults.value.forEach((g) => {
280
+ g.items.forEach((entry) => flat.push(entry.item));
281
+ });
282
+ return flat;
283
+ });
284
+ const activeIndex = ref(0);
285
+ const activeCommandId = computed(() => {
286
+ return flatResults.value[activeIndex.value]?.id;
287
+ });
288
+ const activeOptionId = computed(() => {
289
+ if (!activeCommandId.value) return void 0;
290
+ return optionDomId(activeCommandId.value);
291
+ });
292
+ function optionDomId(commandId) {
293
+ return `origam-command-palette-option-${uid}-${commandId}`;
294
+ }
295
+ watch(filtered, () => {
296
+ activeIndex.value = 0;
297
+ nextTick(() => scrollActiveIntoView());
298
+ });
299
+ function moveActive(delta) {
300
+ const len = flatResults.value.length;
301
+ if (len === 0) return;
302
+ let next = activeIndex.value;
303
+ for (let i = 0; i < len; i++) {
304
+ next = (next + delta + len) % len;
305
+ if (!flatResults.value[next].disabled) break;
306
+ }
307
+ activeIndex.value = next;
308
+ nextTick(() => scrollActiveIntoView());
309
+ }
310
+ function scrollActiveIntoView() {
311
+ if (!IN_BROWSER) return;
312
+ const id = activeCommandId.value;
313
+ if (!id) return;
314
+ const el = document.getElementById(optionDomId(id));
315
+ el?.scrollIntoView({ block: "nearest" });
316
+ }
317
+ async function selectCommand(cmd) {
318
+ if (cmd.disabled) return;
319
+ emit("select", cmd);
320
+ try {
321
+ await cmd.perform();
322
+ } finally {
323
+ if (props.closeOnSelect) {
324
+ isActive.value = false;
325
+ }
326
+ }
327
+ }
328
+ function handleItemClick(cmd) {
329
+ void selectCommand(cmd);
330
+ }
331
+ function handleItemHover(cmd) {
332
+ const idx = flatResults.value.findIndex((item) => item.id === cmd.id);
333
+ if (idx !== -1) activeIndex.value = idx;
334
+ }
335
+ function handleEnter() {
336
+ const cmd = flatResults.value[activeIndex.value];
337
+ if (cmd) void selectCommand(cmd);
338
+ }
339
+ function handleEscape() {
340
+ if (props.closeOnEscape) isActive.value = false;
341
+ }
342
+ function handleBackdropClick() {
343
+ if (props.closeOnBackdrop) isActive.value = false;
344
+ }
345
+ function handleKeydown(e) {
346
+ if (e.key === "Tab") {
347
+ e.preventDefault();
348
+ inputRef.value?.focus();
349
+ }
350
+ }
351
+ function handleInput() {
352
+ emit("query", query.value);
353
+ }
354
+ let returnFocusEl = null;
355
+ watch(isActive, async (next) => {
356
+ if (next) {
357
+ if (IN_BROWSER) {
358
+ returnFocusEl = document.activeElement;
359
+ }
360
+ query.value = "";
361
+ activeIndex.value = 0;
362
+ await nextTick();
363
+ inputRef.value?.focus({ preventScroll: true });
364
+ } else {
365
+ returnFocusEl?.focus?.({ preventScroll: true });
366
+ returnFocusEl = null;
367
+ }
368
+ });
369
+ const navigateText = "Navigate";
370
+ const selectText = "Select";
371
+ const closeText = "Close";
372
+ const hasDefaultFooter = computed(() => true);
373
+ function itemClasses(cmd) {
374
+ return [
375
+ "origam-command-palette__item",
376
+ {
377
+ "origam-command-palette__item--active": cmd.id === activeCommandId.value,
378
+ "origam-command-palette__item--disabled": cmd.disabled
379
+ }
380
+ ];
381
+ }
382
+ function toUnit(value) {
383
+ if (value === void 0) return void 0;
384
+ if (typeof value === "number") return `${value}px`;
385
+ return value;
386
+ }
387
+ const rootClasses = computed(() => {
388
+ return [
389
+ "origam-command-palette",
390
+ props.class
391
+ ];
392
+ });
393
+ const rootStyles = computed(() => {
394
+ return [props.style];
395
+ });
396
+ const dialogClasses = computed(() => {
397
+ return ["origam-command-palette__dialog"];
398
+ });
399
+ const dialogStyles = computed(() => {
400
+ return [
401
+ { "--origam-command-palette---width": toUnit(props.width) }
402
+ ];
403
+ });
404
+ const listStyles = computed(() => {
405
+ return [
406
+ { "--origam-command-palette---max-height": toUnit(props.maxHeight) }
407
+ ];
408
+ });
409
+ defineExpose({
410
+ query,
411
+ filtered,
412
+ activeIndex,
413
+ isActive
414
+ });
415
+ </script>
416
+
417
+ <style lang="scss" scoped>
418
+ .origam-command-palette {
419
+ position: fixed;
420
+ inset: 0;
421
+ display: flex;
422
+ flex-direction: column;
423
+ align-items: center;
424
+ justify-content: flex-start;
425
+ padding-top: var(--origam-command-palette---padding-top, 18vh);
426
+ z-index: var(--origam-command-palette---z-index, 2500);
427
+ background-color: var(--origam-command-palette--backdrop---background-color, rgba(0, 0, 0, 0.45));
428
+ backdrop-filter: var(--origam-command-palette--backdrop---backdrop-filter, blur(6px));
429
+
430
+ &__dialog {
431
+ display: flex;
432
+ flex-direction: column;
433
+ width: min(var(--origam-command-palette---width, 640px), calc(100vw - 32px));
434
+ max-height: calc(100vh - 96px);
435
+ background-color: var(--origam-command-palette---background-color, var(--origam-color__surface---elevated, #fff));
436
+ border: var(--origam-command-palette---border-width, 1px) solid var(--origam-command-palette---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.12)));
437
+ border-radius: var(--origam-command-palette---border-radius, 12px);
438
+ box-shadow: var(--origam-command-palette---box-shadow, 0 24px 48px rgba(0, 0, 0, 0.18));
439
+ overflow: hidden;
440
+ color: var(--origam-command-palette---color, var(--origam-color__text---primary, #171717));
441
+ }
442
+
443
+ &__search {
444
+ display: flex;
445
+ align-items: center;
446
+ gap: 10px;
447
+ padding: var(--origam-command-palette__input---padding, 12px 16px);
448
+ border-bottom: 1px solid var(--origam-command-palette__input---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.08)));
449
+ }
450
+
451
+ &__search-icon {
452
+ flex: 0 0 auto;
453
+ color: var(--origam-command-palette__input---icon-color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.55)));
454
+ }
455
+
456
+ &__input {
457
+ flex: 1 1 auto;
458
+ background: transparent;
459
+ border: 0;
460
+ outline: none;
461
+ color: inherit;
462
+ font: inherit;
463
+ font-size: var(--origam-command-palette__input---font-size, 1rem);
464
+ padding: 0;
465
+
466
+ &::placeholder {
467
+ color: var(--origam-command-palette__input---placeholder-color, var(--origam-color__text---tertiary, rgba(0, 0, 0, 0.4)));
468
+ }
469
+ }
470
+
471
+ &__list {
472
+ max-height: var(--origam-command-palette---max-height, 480px);
473
+ overflow-y: auto;
474
+ padding: var(--origam-command-palette__list---padding, 6px);
475
+ }
476
+
477
+ &__group-title {
478
+ padding: var(--origam-command-palette__group-title---padding, 10px 12px 6px);
479
+ color: var(--origam-command-palette__group-title---color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.55)));
480
+ font-size: var(--origam-command-palette__group-title---font-size, 0.75rem);
481
+ text-transform: uppercase;
482
+ letter-spacing: 0.04em;
483
+ font-weight: 600;
484
+ user-select: none;
485
+ }
486
+
487
+ &__item {
488
+ display: flex;
489
+ align-items: center;
490
+ gap: 12px;
491
+ width: 100%;
492
+ background: transparent;
493
+ border: 0;
494
+ text-align: start;
495
+ cursor: pointer;
496
+ color: inherit;
497
+ font: inherit;
498
+ padding: var(--origam-command-palette__item---padding, 8px 12px);
499
+ min-height: var(--origam-command-palette__item---height, 40px);
500
+ border-radius: var(--origam-command-palette__item---border-radius, 8px);
501
+ background-color: var(--origam-command-palette__item---background-color, transparent);
502
+ transition: background-color 80ms ease;
503
+
504
+ &--active {
505
+ background-color: var(--origam-command-palette__item---background-color-active, var(--origam-color__action--neutral---bgSubtle, rgba(0, 0, 0, 0.06)));
506
+ color: var(--origam-command-palette__item---color-active, var(--origam-color__text---primary, #171717));
507
+ }
508
+
509
+ &--disabled {
510
+ cursor: not-allowed;
511
+ opacity: 0.45;
512
+ }
513
+
514
+ &:focus-visible {
515
+ outline: 2px solid currentColor;
516
+ outline-offset: 2px;
517
+ }
518
+ }
519
+
520
+ &__item-icon {
521
+ flex: 0 0 auto;
522
+ color: var(--origam-command-palette__item---icon-color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.6)));
523
+ }
524
+
525
+ &__item-text {
526
+ display: flex;
527
+ flex-direction: column;
528
+ gap: 2px;
529
+ flex: 1 1 auto;
530
+ min-width: 0;
531
+ }
532
+
533
+ &__item-label {
534
+ font-weight: 500;
535
+ line-height: 1.3;
536
+ white-space: nowrap;
537
+ overflow: hidden;
538
+ text-overflow: ellipsis;
539
+ }
540
+
541
+ &__item-description {
542
+ font-size: 0.8125rem;
543
+ color: var(--origam-command-palette__item---description-color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.55)));
544
+ line-height: 1.2;
545
+ white-space: nowrap;
546
+ overflow: hidden;
547
+ text-overflow: ellipsis;
548
+ }
549
+
550
+ &__item-kbd {
551
+ flex: 0 0 auto;
552
+ margin-inline-start: auto;
553
+ gap: var(--origam-command-palette__item-kbd---gap, 4px);
554
+ }
555
+
556
+ &__empty {
557
+ padding: 32px 16px;
558
+ text-align: center;
559
+ color: var(--origam-command-palette__empty---color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.55)));
560
+ font-size: 0.875rem;
561
+ }
562
+
563
+ &__loading {
564
+ display: flex;
565
+ justify-content: center;
566
+ align-items: center;
567
+ padding: 24px;
568
+ }
569
+
570
+ &__loading-icon {
571
+ animation: origam-command-palette-spin 800ms linear infinite;
572
+ }
573
+
574
+ &__footer {
575
+ display: flex;
576
+ align-items: center;
577
+ justify-content: flex-end;
578
+ gap: 16px;
579
+ padding: var(--origam-command-palette__footer---padding, 8px 12px);
580
+ border-top: 1px solid var(--origam-command-palette__footer---border-color, var(--origam-color__border---subtle, rgba(0, 0, 0, 0.08)));
581
+ color: var(--origam-command-palette__footer---color, var(--origam-color__text---secondary, rgba(0, 0, 0, 0.55)));
582
+ font-size: 0.75rem;
583
+ }
584
+
585
+ &__footer-hint {
586
+ display: inline-flex;
587
+ align-items: center;
588
+ gap: 6px;
589
+ }
590
+ }
591
+
592
+ @keyframes origam-command-palette-spin {
593
+ to {
594
+ transform: rotate(360deg);
595
+ }
596
+ }
597
+
598
+ .origam-command-palette--fade-enter-active,
599
+ .origam-command-palette--fade-leave-active {
600
+ transition: opacity 140ms ease;
601
+ }
602
+
603
+ .origam-command-palette--fade-enter-from,
604
+ .origam-command-palette--fade-leave-to {
605
+ opacity: 0;
606
+ }
607
+
608
+ @media (prefers-reduced-motion: reduce) {
609
+ .origam-command-palette--fade-enter-active,
610
+ .origam-command-palette--fade-leave-active {
611
+ transition: opacity 60ms ease;
612
+ }
613
+ }
614
+ </style>
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "OrigamCommandPalette", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _OrigamCommandPalette.default;
10
+ }
11
+ });
12
+ var _OrigamCommandPalette = _interopRequireDefault(require("./OrigamCommandPalette.vue"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -0,0 +1 @@
1
+ export { default as OrigamCommandPalette } from './OrigamCommandPalette.vue';
@@ -0,0 +1 @@
1
+ export { default as OrigamCommandPalette } from "./OrigamCommandPalette.vue";
@@ -210,6 +210,7 @@ const props = defineProps({
210
210
  role: { type: String, required: false },
211
211
  type: { type: null, required: false, default: TEXT_FIELD_TYPE.TEXT },
212
212
  modelModifiers: { type: [String, Boolean], required: false },
213
+ mask: { type: null, required: false },
213
214
  density: { type: null, required: false, default: DENSITY.DEFAULT },
214
215
  centerAffix: { type: Boolean, required: false, default: true },
215
216
  dirty: { type: Boolean, required: false },