origam 2.15.0 → 2.16.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 (408) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/src/components/Alert/OrigamAlert.vue +13 -16
  3. package/dist/src/components/App/OrigamAppBar.vue +5 -5
  4. package/dist/src/components/Audio/OrigamAudio.vue +5 -5
  5. package/dist/src/components/Avatar/OrigamAvatar.vue +5 -5
  6. package/dist/src/components/Badge/OrigamBadge.vue +5 -5
  7. package/dist/src/components/Blockquote/OrigamBlockquote.vue +8 -8
  8. package/dist/src/components/BottomNav/OrigamBottomNav.vue +10 -8
  9. package/dist/src/components/Bracket/OrigamBracket.vue +12 -16
  10. package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +6 -6
  11. package/dist/src/components/Bracket/OrigamBracketMatch.vue +24 -6
  12. package/dist/src/components/Bracket/OrigamBracketRound.vue +5 -5
  13. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +11 -8
  14. package/dist/src/components/Btn/OrigamBtn.vue +7 -7
  15. package/dist/src/components/Calendar/OrigamCalendar.vue +25 -39
  16. package/dist/src/components/Card/OrigamCard.vue +4 -4
  17. package/dist/src/components/Card/OrigamCardHeader.vue +21 -5
  18. package/dist/src/components/Card/OrigamCardText.vue +27 -6
  19. package/dist/src/components/Chart/OrigamChart.vue +54 -2
  20. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +3 -3
  21. package/dist/src/components/Chart/OrigamChartBullet.vue +3 -3
  22. package/dist/src/components/Chart/OrigamChartCandlestick.vue +3 -3
  23. package/dist/src/components/Chart/OrigamChartCartesian.vue +5 -5
  24. package/dist/src/components/Chart/OrigamChartGauge.vue +3 -3
  25. package/dist/src/components/Chart/OrigamChartHeatmap.vue +3 -3
  26. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +3 -3
  27. package/dist/src/components/Chart/OrigamChartLegend.vue +1 -1
  28. package/dist/src/components/Chart/OrigamChartMap.vue +3 -3
  29. package/dist/src/components/Chart/OrigamChartPareto.vue +3 -3
  30. package/dist/src/components/Chart/OrigamChartPictorial.vue +4 -4
  31. package/dist/src/components/Chart/OrigamChartPolar.vue +4 -4
  32. package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -3
  33. package/dist/src/components/Chart/OrigamChartPyramid.vue +3 -3
  34. package/dist/src/components/Chart/OrigamChartRadar.vue +3 -3
  35. package/dist/src/components/Chart/OrigamChartSankey.vue +3 -3
  36. package/dist/src/components/Chart/OrigamChartSparkline.vue +2 -2
  37. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +4 -4
  38. package/dist/src/components/Chart/OrigamChartSunburst.vue +3 -3
  39. package/dist/src/components/Chart/OrigamChartTreemap.vue +4 -4
  40. package/dist/src/components/Chart/OrigamChartVariwide.vue +3 -3
  41. package/dist/src/components/Chart/OrigamChartWordCloud.vue +2 -2
  42. package/dist/src/components/Checkbox/OrigamCheckbox.vue +5 -5
  43. package/dist/src/components/Chip/OrigamChip.vue +18 -7
  44. package/dist/src/components/Chip/OrigamChipGroup.vue +9 -7
  45. package/dist/src/components/Clipboard/OrigamClipboard.vue +5 -5
  46. package/dist/src/components/Code/OrigamCode.vue +5 -5
  47. package/dist/src/components/ColorPicker/OrigamColorPicker.vue +6 -6
  48. package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +2 -2
  49. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +5 -5
  50. package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +5 -5
  51. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +5 -5
  52. package/dist/src/components/Counter/OrigamCounter.vue +42 -2
  53. package/dist/src/components/DataList/OrigamDataList.vue +6 -6
  54. package/dist/src/components/DataTable/OrigamDataTable.vue +5 -5
  55. package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -2
  56. package/dist/src/components/DataTable/OrigamDataTableRows.vue +2 -1
  57. package/dist/src/components/DatePicker/OrigamDatePicker.vue +6 -6
  58. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +5 -5
  59. package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
  60. package/dist/src/components/EmptyState/OrigamEmptyState.vue +7 -7
  61. package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +8 -8
  62. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +2 -2
  63. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +5 -5
  64. package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +12 -8
  65. package/dist/src/components/Field/OrigamField.vue +7 -7
  66. package/dist/src/components/FileField/OrigamFileField.vue +12 -12
  67. package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +5 -5
  68. package/dist/src/components/FileField/OrigamFileFieldListItem.vue +5 -5
  69. package/dist/src/components/Form/OrigamForm.vue +6 -6
  70. package/dist/src/components/Grid/OrigamGrid.vue +5 -5
  71. package/dist/src/components/Grid/OrigamGridItem.vue +2 -2
  72. package/dist/src/components/Icon/OrigamClassIcon.vue +28 -3
  73. package/dist/src/components/Icon/OrigamComponentIcon.vue +28 -3
  74. package/dist/src/components/Icon/OrigamIcon.vue +0 -1
  75. package/dist/src/components/Icon/OrigamLigatureIcon.vue +28 -3
  76. package/dist/src/components/Icon/OrigamSvgIcon.vue +28 -3
  77. package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +5 -5
  78. package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +5 -5
  79. package/dist/src/components/Input/OrigamInput.vue +25 -5
  80. package/dist/src/components/ItemGroup/OrigamItemGroup.vue +6 -3
  81. package/dist/src/components/Kbd/OrigamKbd.vue +8 -7
  82. package/dist/src/components/Label/OrigamLabel.vue +5 -5
  83. package/dist/src/components/List/OrigamList.vue +9 -7
  84. package/dist/src/components/List/OrigamListGroup.vue +7 -4
  85. package/dist/src/components/List/OrigamListItem.vue +5 -5
  86. package/dist/src/components/List/OrigamListSubheader.vue +5 -5
  87. package/dist/src/components/Masonry/OrigamMasonry.vue +7 -4
  88. package/dist/src/components/Media/OrigamMediaController.vue +0 -5
  89. package/dist/src/components/Media/OrigamMediaScrubber.vue +17 -13
  90. package/dist/src/components/Menu/OrigamMenu.vue +25 -12
  91. package/dist/src/components/Messages/OrigamMessages.vue +5 -5
  92. package/dist/src/components/NumberField/OrigamNumberField.vue +5 -5
  93. package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -7
  94. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +5 -5
  95. package/dist/src/components/Pagination/OrigamPagination.vue +33 -6
  96. package/dist/src/components/Parallax/OrigamParallax.vue +24 -6
  97. package/dist/src/components/Parallax/OrigamParallaxElement.vue +4 -4
  98. package/dist/src/components/PasswordField/OrigamPasswordField.vue +5 -5
  99. package/dist/src/components/Picker/OrigamPicker.vue +6 -6
  100. package/dist/src/components/Picker/OrigamPickerTitle.vue +5 -5
  101. package/dist/src/components/QrCode/OrigamQrCode.vue +1 -1
  102. package/dist/src/components/Radio/OrigamRadio.vue +5 -5
  103. package/dist/src/components/Radio/OrigamRadioGroup.vue +15 -12
  104. package/dist/src/components/RatingField/OrigamRatingField.vue +5 -5
  105. package/dist/src/components/Select/OrigamSelect.vue +5 -5
  106. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +4 -2
  107. package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +17 -15
  108. package/dist/src/components/Sheet/OrigamSheet.vue +2 -2
  109. package/dist/src/components/Skeleton/OrigamSkeleton.vue +1 -1
  110. package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
  111. package/dist/src/components/SliderField/OrigamSliderField.vue +5 -5
  112. package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -4
  113. package/dist/src/components/Snackbar/OrigamSnackbar.vue +1 -0
  114. package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +11 -7
  115. package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +16 -10
  116. package/dist/src/components/Stepper/OrigamStepper.vue +3 -3
  117. package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -10
  118. package/dist/src/components/Switch/OrigamSwitch.vue +11 -54
  119. package/dist/src/components/SystemBar/OrigamSystemBar.vue +5 -5
  120. package/dist/src/components/Table/OrigamTable.vue +5 -5
  121. package/dist/src/components/Tabs/OrigamTab.vue +5 -5
  122. package/dist/src/components/Tabs/OrigamTabPanels.vue +6 -3
  123. package/dist/src/components/Tabs/OrigamTabs.vue +9 -6
  124. package/dist/src/components/TextField/OrigamTextField.vue +5 -5
  125. package/dist/src/components/TextMask/OrigamTextMask.vue +7 -7
  126. package/dist/src/components/TextareaField/OrigamTextareaField.vue +8 -6
  127. package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +2 -2
  128. package/dist/src/components/Timeline/OrigamTimeline.vue +7 -5
  129. package/dist/src/components/Timeline/OrigamTimelineItem.vue +10 -9
  130. package/dist/src/components/Title/OrigamTitle.vue +5 -5
  131. package/dist/src/components/Toolbar/OrigamToolbar.vue +5 -5
  132. package/dist/src/components/Tooltip/OrigamTooltip.vue +5 -5
  133. package/dist/src/components/Treeview/OrigamTreeview.vue +8 -8
  134. package/dist/src/components/Treeview/OrigamTreeviewNode.vue +5 -4
  135. package/dist/src/components/Video/OrigamVideo.vue +8 -55
  136. package/dist/src/composables/Calendar/calendar.composable.cjs +11 -10
  137. package/dist/src/composables/Calendar/calendar.composable.d.ts +2 -26
  138. package/dist/src/composables/Calendar/calendar.composable.js +11 -10
  139. package/dist/src/composables/CommandPalette/command.composable.d.ts +2 -24
  140. package/dist/src/composables/Commons/defaults.composable.cjs +1 -0
  141. package/dist/src/composables/Commons/defaults.composable.d.ts +11 -0
  142. package/dist/src/composables/Commons/defaults.composable.js +1 -1
  143. package/dist/src/composables/Commons/loader.composable.cjs +2 -1
  144. package/dist/src/composables/Commons/loader.composable.d.ts +3 -24
  145. package/dist/src/composables/Commons/loader.composable.js +2 -1
  146. package/dist/src/composables/Commons/margin.composable.cjs +26 -12
  147. package/dist/src/composables/Commons/margin.composable.d.ts +37 -0
  148. package/dist/src/composables/Commons/margin.composable.js +22 -25
  149. package/dist/src/composables/Commons/padding.composable.cjs +26 -12
  150. package/dist/src/composables/Commons/padding.composable.d.ts +26 -0
  151. package/dist/src/composables/Commons/padding.composable.js +22 -25
  152. package/dist/src/composables/Commons/props.composable.d.ts +45 -0
  153. package/dist/src/composables/Commons/rounded.composable.cjs +18 -23
  154. package/dist/src/composables/Commons/rounded.composable.d.ts +29 -11
  155. package/dist/src/composables/Commons/rounded.composable.js +27 -31
  156. package/dist/src/composables/Commons/stateEffect.composable.cjs +53 -1
  157. package/dist/src/composables/Commons/stateEffect.composable.d.ts +2 -6
  158. package/dist/src/composables/Commons/stateEffect.composable.js +65 -7
  159. package/dist/src/composables/Commons/theme-props-resolver.composable.cjs +82 -0
  160. package/dist/src/composables/Commons/theme-props-resolver.composable.d.ts +38 -0
  161. package/dist/src/composables/Commons/theme-props-resolver.composable.js +75 -0
  162. package/dist/src/composables/CssSupport/cssSupport.composable.d.ts +5 -43
  163. package/dist/src/composables/Mask/mask.composable.d.ts +3 -23
  164. package/dist/src/composables/Masonry/masonry.composable.d.ts +4 -58
  165. package/dist/src/composables/Parallax/parallax.composable.d.ts +2 -20
  166. package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +3 -2
  167. package/dist/src/composables/PasswordField/passwordStrength.composable.js +6 -5
  168. package/dist/src/composables/Snackbar/snackbar-group.composable.cjs +8 -3
  169. package/dist/src/composables/Snackbar/snackbar-group.composable.d.ts +3 -22
  170. package/dist/src/composables/Snackbar/snackbar-group.composable.js +8 -3
  171. package/dist/src/composables/Theme/theme.composable.d.ts +1 -1
  172. package/dist/src/composables/Transition/transition.composable.cjs +2 -2
  173. package/dist/src/composables/Transition/transition.composable.d.ts +3 -3
  174. package/dist/src/composables/Transition/transition.composable.js +2 -2
  175. package/dist/src/composables/index.cjs +12 -0
  176. package/dist/src/composables/index.d.ts +1 -0
  177. package/dist/src/composables/index.js +1 -0
  178. package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -2
  179. package/dist/src/consts/Blockquote/blockquote.const.js +3 -14
  180. package/dist/src/consts/Bracket/bracket.const.cjs +3 -2
  181. package/dist/src/consts/Bracket/bracket.const.js +3 -11
  182. package/dist/src/consts/ColorPicker/color-picker.const.cjs +7 -7
  183. package/dist/src/consts/ColorPicker/color-picker.const.js +1 -1
  184. package/dist/src/consts/Commons/border.const.cjs +2 -2
  185. package/dist/src/consts/Commons/border.const.js +3 -3
  186. package/dist/src/consts/Commons/spacing.const.cjs +78 -0
  187. package/dist/src/consts/Commons/spacing.const.d.ts +102 -0
  188. package/dist/src/consts/Commons/spacing.const.js +56 -0
  189. package/dist/src/consts/EmptyState/empty-state.const.cjs +6 -6
  190. package/dist/src/consts/EmptyState/empty-state.const.js +7 -13
  191. package/dist/src/consts/Media/media.const.cjs +3 -2
  192. package/dist/src/consts/Media/media.const.d.ts +17 -0
  193. package/dist/src/consts/Media/media.const.js +1 -0
  194. package/dist/src/consts/QrCode/qr-code.const.cjs +2 -1
  195. package/dist/src/consts/QrCode/qr-code.const.js +2 -1
  196. package/dist/src/consts/index.cjs +11 -0
  197. package/dist/src/consts/index.d.ts +1 -0
  198. package/dist/src/consts/index.js +1 -0
  199. package/dist/src/enums/Bracket/bracket-round.enum.cjs +12 -0
  200. package/dist/src/enums/Bracket/bracket-round.enum.d.ts +10 -0
  201. package/dist/src/enums/Bracket/bracket-round.enum.js +6 -0
  202. package/dist/src/enums/Calendar/calendar.enum.cjs +24 -0
  203. package/dist/src/enums/Calendar/calendar.enum.d.ts +28 -0
  204. package/dist/src/enums/Calendar/calendar.enum.js +18 -0
  205. package/dist/src/enums/Chart/chart-sunburst.enum.cjs +12 -0
  206. package/dist/src/enums/Chart/chart-sunburst.enum.d.ts +12 -0
  207. package/dist/src/enums/Chart/chart-sunburst.enum.js +6 -0
  208. package/dist/src/enums/Chart/chart.enum.cjs +8 -2
  209. package/dist/src/enums/Chart/chart.enum.d.ts +21 -0
  210. package/dist/src/enums/Chart/chart.enum.js +6 -0
  211. package/dist/src/enums/Code/code.enum.cjs +9 -8
  212. package/dist/src/enums/Code/code.enum.d.ts +7 -5
  213. package/dist/src/enums/Code/code.enum.js +1 -6
  214. package/dist/src/enums/Commons/align.enum.cjs +8 -2
  215. package/dist/src/enums/Commons/align.enum.d.ts +14 -0
  216. package/dist/src/enums/Commons/align.enum.js +6 -0
  217. package/dist/src/enums/Commons/border.enum.cjs +7 -2
  218. package/dist/src/enums/Commons/border.enum.d.ts +9 -0
  219. package/dist/src/enums/Commons/border.enum.js +5 -0
  220. package/dist/src/enums/Commons/color.enum.cjs +13 -0
  221. package/dist/src/enums/Commons/color.enum.d.ts +17 -0
  222. package/dist/src/enums/Commons/color.enum.js +7 -0
  223. package/dist/src/enums/Commons/font-family.enum.cjs +12 -0
  224. package/dist/src/enums/Commons/font-family.enum.d.ts +10 -0
  225. package/dist/src/enums/Commons/font-family.enum.js +6 -0
  226. package/dist/src/enums/Commons/font-size.enum.cjs +18 -0
  227. package/dist/src/enums/Commons/font-size.enum.d.ts +21 -0
  228. package/dist/src/enums/Commons/font-size.enum.js +12 -0
  229. package/dist/src/enums/Commons/font-weight.enum.cjs +15 -0
  230. package/dist/src/enums/Commons/font-weight.enum.d.ts +12 -0
  231. package/dist/src/enums/Commons/font-weight.enum.js +9 -0
  232. package/dist/src/enums/Commons/letter-spacing.enum.cjs +14 -0
  233. package/dist/src/enums/Commons/letter-spacing.enum.d.ts +12 -0
  234. package/dist/src/enums/Commons/letter-spacing.enum.js +8 -0
  235. package/dist/src/enums/Commons/line-height.enum.cjs +15 -0
  236. package/dist/src/enums/Commons/line-height.enum.d.ts +12 -0
  237. package/dist/src/enums/Commons/line-height.enum.js +9 -0
  238. package/dist/src/enums/Commons/loader.enum.cjs +12 -0
  239. package/dist/src/enums/Commons/loader.enum.d.ts +14 -0
  240. package/dist/src/enums/Commons/loader.enum.js +6 -0
  241. package/dist/src/enums/Commons/theme.enum.cjs +12 -0
  242. package/dist/src/enums/Commons/theme.enum.d.ts +19 -0
  243. package/dist/src/enums/Commons/theme.enum.js +6 -0
  244. package/dist/src/enums/DataList/data-list.enum.cjs +11 -0
  245. package/dist/src/enums/DataList/data-list.enum.d.ts +15 -0
  246. package/dist/src/enums/DataList/data-list.enum.js +5 -0
  247. package/dist/src/enums/FileField/file-field.enum.cjs +12 -0
  248. package/dist/src/enums/FileField/file-field.enum.d.ts +9 -0
  249. package/dist/src/enums/FileField/file-field.enum.js +6 -0
  250. package/dist/src/enums/Grid/grid.enum.cjs +13 -0
  251. package/dist/src/enums/Grid/grid.enum.d.ts +15 -0
  252. package/dist/src/enums/Grid/grid.enum.js +7 -0
  253. package/dist/src/enums/Kbd/kbd.enum.cjs +12 -0
  254. package/dist/src/enums/Kbd/kbd.enum.d.ts +10 -0
  255. package/dist/src/enums/Kbd/kbd.enum.js +6 -0
  256. package/dist/src/enums/Masonry/masonry.enum.cjs +11 -0
  257. package/dist/src/enums/Masonry/masonry.enum.d.ts +10 -0
  258. package/dist/src/enums/Masonry/masonry.enum.js +5 -0
  259. package/dist/src/enums/NumberFormat/number-format.enum.cjs +55 -0
  260. package/dist/src/enums/NumberFormat/number-format.enum.d.ts +78 -0
  261. package/dist/src/enums/NumberFormat/number-format.enum.js +49 -0
  262. package/dist/src/enums/PasswordField/password-field.enum.cjs +13 -0
  263. package/dist/src/enums/PasswordField/password-field.enum.d.ts +12 -0
  264. package/dist/src/enums/PasswordField/password-field.enum.js +7 -0
  265. package/dist/src/enums/QrCode/qr-code.enum.cjs +13 -0
  266. package/dist/src/enums/QrCode/qr-code.enum.d.ts +11 -0
  267. package/dist/src/enums/QrCode/qr-code.enum.js +7 -0
  268. package/dist/src/enums/Sheet/sheet.enum.cjs +13 -0
  269. package/dist/src/enums/Sheet/sheet.enum.d.ts +14 -0
  270. package/dist/src/enums/Sheet/sheet.enum.js +7 -0
  271. package/dist/src/enums/Skeleton/skeleton.enum.cjs +14 -0
  272. package/dist/src/enums/Skeleton/skeleton.enum.d.ts +11 -0
  273. package/dist/src/enums/Skeleton/skeleton.enum.js +8 -0
  274. package/dist/src/enums/Snackbar/snackbar-group.enum.cjs +22 -0
  275. package/dist/src/enums/Snackbar/snackbar-group.enum.d.ts +22 -0
  276. package/dist/src/enums/Snackbar/snackbar-group.enum.js +16 -0
  277. package/dist/src/enums/Stepper/stepper.enum.cjs +13 -0
  278. package/dist/src/enums/Stepper/stepper.enum.d.ts +11 -0
  279. package/dist/src/enums/Stepper/stepper.enum.js +7 -0
  280. package/dist/src/enums/TextField/text-field.enum.cjs +8 -1
  281. package/dist/src/enums/TextField/text-field.enum.d.ts +12 -0
  282. package/dist/src/enums/TextField/text-field.enum.js +7 -0
  283. package/dist/src/enums/TextMask/text-mask.enum.cjs +13 -0
  284. package/dist/src/enums/TextMask/text-mask.enum.d.ts +11 -0
  285. package/dist/src/enums/TextMask/text-mask.enum.js +7 -0
  286. package/dist/src/enums/Timeline/timeline.enum.cjs +12 -0
  287. package/dist/src/enums/Timeline/timeline.enum.d.ts +10 -0
  288. package/dist/src/enums/Timeline/timeline.enum.js +6 -0
  289. package/dist/src/enums/Treeview/treeview.enum.cjs +17 -0
  290. package/dist/src/enums/Treeview/treeview.enum.d.ts +18 -0
  291. package/dist/src/enums/Treeview/treeview.enum.js +11 -0
  292. package/dist/src/enums/Video/video.enum.cjs +13 -0
  293. package/dist/src/enums/Video/video.enum.d.ts +12 -0
  294. package/dist/src/enums/Video/video.enum.js +7 -0
  295. package/dist/src/enums/index.cjs +297 -0
  296. package/dist/src/enums/index.d.ts +27 -0
  297. package/dist/src/enums/index.js +27 -0
  298. package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +2 -2
  299. package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +2 -2
  300. package/dist/src/interfaces/Bracket/bracket-surface.interface.cjs +1 -0
  301. package/dist/src/interfaces/Bracket/bracket-surface.interface.d.ts +56 -0
  302. package/dist/src/interfaces/Bracket/bracket-surface.interface.js +0 -0
  303. package/dist/src/interfaces/Calendar/calendar.interface.d.ts +25 -0
  304. package/dist/src/interfaces/Calendar/rrule.interface.cjs +1 -0
  305. package/dist/src/interfaces/Calendar/rrule.interface.d.ts +26 -0
  306. package/dist/src/interfaces/Calendar/rrule.interface.js +0 -0
  307. package/dist/src/interfaces/Chart/chart-sunburst.interface.d.ts +2 -8
  308. package/dist/src/interfaces/CommandPalette/command-palette-rendered-group.interface.d.ts +1 -2
  309. package/dist/src/interfaces/CommandPalette/command.interface.d.ts +47 -0
  310. package/dist/src/interfaces/Commons/loader.interface.d.ts +23 -1
  311. package/dist/src/interfaces/Commons/margin.interface.d.ts +30 -0
  312. package/dist/src/interfaces/Commons/padding.interface.d.ts +29 -0
  313. package/dist/src/interfaces/Commons/rounded.interface.d.ts +24 -0
  314. package/dist/src/interfaces/CssSupport/css-support.interface.cjs +1 -0
  315. package/dist/src/interfaces/CssSupport/css-support.interface.d.ts +43 -0
  316. package/dist/src/interfaces/CssSupport/css-support.interface.js +0 -0
  317. package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -15
  318. package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
  319. package/dist/src/interfaces/Form/form.interface.d.ts +9 -2
  320. package/dist/src/interfaces/Icon/icon.interface.d.ts +11 -1
  321. package/dist/src/interfaces/Mask/mask-options.interface.d.ts +23 -2
  322. package/dist/src/interfaces/Masonry/masonry.interface.d.ts +55 -0
  323. package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +25 -3
  324. package/dist/src/interfaces/Menu/menu.interface.d.ts +10 -2
  325. package/dist/src/interfaces/Parallax/parallax.interface.d.ts +18 -0
  326. package/dist/src/interfaces/QrCode/qr-code.interface.d.ts +15 -1
  327. package/dist/src/interfaces/Radio/radio-group.interface.d.ts +4 -1
  328. package/dist/src/interfaces/Sheet/sheet-emits.interface.d.ts +7 -1
  329. package/dist/src/interfaces/Snackbar/snackbar-group.interface.d.ts +62 -2
  330. package/dist/src/interfaces/Snackbar/snackbar.interface.d.ts +4 -1
  331. package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +16 -1
  332. package/dist/src/interfaces/Timeline/timeline.interface.d.ts +4 -4
  333. package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
  334. package/dist/src/interfaces/Watermark/watermark.interface.d.ts +19 -0
  335. package/dist/src/interfaces/index.cjs +33 -0
  336. package/dist/src/interfaces/index.d.ts +3 -0
  337. package/dist/src/interfaces/index.js +3 -0
  338. package/dist/src/origam.cjs +2 -0
  339. package/dist/src/origam.js +14 -1
  340. package/dist/src/types/Blockquote/blockquote.type.d.ts +4 -3
  341. package/dist/src/types/Bracket/bracket-round.type.d.ts +2 -1
  342. package/dist/src/types/Bracket/bracket.type.d.ts +50 -0
  343. package/dist/src/types/Calendar/calendar.type.d.ts +4 -3
  344. package/dist/src/types/Chart/chart-cartesian.type.d.ts +2 -1
  345. package/dist/src/types/Chart/chart-legend.type.d.ts +5 -1
  346. package/dist/src/types/Chart/chart-pictorial.type.d.ts +2 -1
  347. package/dist/src/types/Chart/chart-polar.type.d.ts +2 -1
  348. package/dist/src/types/Chart/chart-streamgraph.type.d.ts +2 -1
  349. package/dist/src/types/Chart/chart-sunburst.type.d.ts +8 -0
  350. package/dist/src/types/Chart/chart-treemap.type.d.ts +2 -1
  351. package/dist/src/types/Chart/chart.type.d.ts +14 -2
  352. package/dist/src/types/Code/code.type.d.ts +19 -0
  353. package/dist/src/types/Commons/align.type.d.ts +6 -1
  354. package/dist/src/types/Commons/border.type.d.ts +2 -2
  355. package/dist/src/types/Commons/color.type.d.ts +2 -1
  356. package/dist/src/types/Commons/css-support.type.cjs +1 -0
  357. package/dist/src/types/Commons/css-support.type.d.ts +26 -0
  358. package/dist/src/types/Commons/css-support.type.js +0 -0
  359. package/dist/src/types/Commons/font-family.type.d.ts +2 -1
  360. package/dist/src/types/Commons/font-size.type.d.ts +2 -1
  361. package/dist/src/types/Commons/font-weight.type.d.ts +2 -1
  362. package/dist/src/types/Commons/letter-spacing.type.d.ts +2 -1
  363. package/dist/src/types/Commons/line-height.type.d.ts +2 -1
  364. package/dist/src/types/Commons/loader.type.d.ts +5 -4
  365. package/dist/src/types/Commons/state-effect.type.cjs +1 -0
  366. package/dist/src/types/Commons/state-effect.type.d.ts +30 -0
  367. package/dist/src/types/Commons/state-effect.type.js +0 -0
  368. package/dist/src/types/DataList/data-list.type.d.ts +16 -0
  369. package/dist/src/types/EmptyState/empty-state.type.d.ts +8 -2
  370. package/dist/src/types/FileField/file-field.type.d.ts +2 -1
  371. package/dist/src/types/Grid/grid-item.type.d.ts +4 -2
  372. package/dist/src/types/Grid/grid.type.d.ts +13 -4
  373. package/dist/src/types/InlineEdit/inline-edit.type.d.ts +5 -1
  374. package/dist/src/types/Kbd/kbd.type.d.ts +2 -1
  375. package/dist/src/types/Masonry/masonry.type.d.ts +2 -1
  376. package/dist/src/types/NumberFormat/number-format.type.d.ts +8 -7
  377. package/dist/src/types/PasswordField/password-field.type.d.ts +2 -1
  378. package/dist/src/types/QrCode/qr-code.type.d.ts +2 -1
  379. package/dist/src/types/Sheet/sheet.type.d.ts +2 -1
  380. package/dist/src/types/Skeleton/skeleton.type.d.ts +2 -1
  381. package/dist/src/types/Snackbar/snackbar-group.type.d.ts +3 -2
  382. package/dist/src/types/Stepper/stepper.type.d.ts +2 -1
  383. package/dist/src/types/TextField/text-field.type.d.ts +2 -2
  384. package/dist/src/types/TextMask/text-mask.type.d.ts +2 -1
  385. package/dist/src/types/Theme/theme.type.d.ts +3 -2
  386. package/dist/src/types/Timeline/timeline.type.d.ts +2 -1
  387. package/dist/src/types/Treeview/treeview.type.d.ts +3 -2
  388. package/dist/src/types/Video/video.type.d.ts +2 -1
  389. package/dist/src/types/index.cjs +22 -0
  390. package/dist/src/types/index.d.ts +2 -0
  391. package/dist/src/types/index.js +2 -0
  392. package/dist/src/utils/Bracket/bracket-surface.util.cjs +26 -0
  393. package/dist/src/utils/Bracket/bracket-surface.util.d.ts +3 -24
  394. package/dist/src/utils/Bracket/bracket-surface.util.js +16 -0
  395. package/dist/src/utils/Calendar/rrule.util.d.ts +2 -10
  396. package/dist/src/utils/Chart/path.util.d.ts +2 -2
  397. package/dist/src/utils/CommandPalette/fuzzy-match.util.d.ts +2 -10
  398. package/dist/src/utils/Commons/color.util.cjs +2 -1
  399. package/dist/src/utils/Commons/color.util.js +2 -1
  400. package/dist/src/utils/Commons/spacing.util.cjs +34 -0
  401. package/dist/src/utils/Commons/spacing.util.d.ts +55 -0
  402. package/dist/src/utils/Commons/spacing.util.js +27 -0
  403. package/dist/src/utils/Mask/apply-mask.util.cjs +8 -7
  404. package/dist/src/utils/Mask/apply-mask.util.js +8 -7
  405. package/dist/src/utils/index.cjs +11 -0
  406. package/dist/src/utils/index.d.ts +1 -0
  407. package/dist/src/utils/index.js +1 -0
  408. package/package.json +5 -3
@@ -50,6 +50,7 @@ import {
50
50
  useStyle
51
51
  } from "../../composables";
52
52
  import { TIMELINE_CONTEXT_KEY } from "../../consts";
53
+ import { DIRECTION, TIMELINE_SIDE } from "../../enums";
53
54
  const props = defineProps({
54
55
  title: { type: String, required: false },
55
56
  subtitle: { type: String, required: false },
@@ -57,7 +58,7 @@ const props = defineProps({
57
58
  intent: { type: null, required: false },
58
59
  isLast: { type: Boolean, required: false, default: false },
59
60
  truncateLine: { type: Boolean, required: false, default: false },
60
- side: { type: String, required: false, default: "start" },
61
+ side: { type: null, required: false, default: "start" },
61
62
  orientation: { type: null, required: false, default: "vertical" },
62
63
  index: { type: Number, required: false, default: 0 },
63
64
  id: { type: String, required: false },
@@ -79,7 +80,7 @@ const effectiveSide = computed(() => {
79
80
  });
80
81
  const effectiveOrientation = computed(() => {
81
82
  if (timelineCtx?.orientation) return timelineCtx.orientation;
82
- return props.orientation ?? "vertical";
83
+ return props.orientation ?? DIRECTION.VERTICAL;
83
84
  });
84
85
  const effectiveTruncateLine = computed(() => {
85
86
  if (timelineCtx?.truncateLine !== void 0) return timelineCtx.truncateLine;
@@ -100,7 +101,7 @@ const dotStyles = computed(() => {
100
101
  };
101
102
  });
102
103
  const connectorStyles = computed(() => {
103
- const isH = effectiveOrientation.value === "horizontal";
104
+ const isH = effectiveOrientation.value === DIRECTION.HORIZONTAL;
104
105
  return {
105
106
  "background-color": "var(--origam-timeline---connector-color, var(--origam-color__border---subtle))",
106
107
  [isH ? "height" : "width"]: "var(--origam-timeline---connector-thickness, var(--origam-border__width---thin, 1px))"
@@ -126,8 +127,8 @@ function intentToFgToken(intent) {
126
127
  }
127
128
  const contentSide = computed(() => {
128
129
  const side = effectiveSide.value;
129
- if (side === "alternating") {
130
- return props.index % 2 === 0 ? "start" : "end";
130
+ if (side === TIMELINE_SIDE.ALTERNATING) {
131
+ return props.index % 2 === 0 ? TIMELINE_SIDE.START : TIMELINE_SIDE.END;
131
132
  }
132
133
  return side;
133
134
  });
@@ -135,10 +136,10 @@ const itemClasses = computed(() => [
135
136
  "origam-timeline-item",
136
137
  `origam-timeline-item--orientation-${effectiveOrientation.value}`,
137
138
  {
138
- "origam-timeline-item--side-start": effectiveSide.value === "start" || contentSide.value === "start",
139
- "origam-timeline-item--side-end": effectiveSide.value === "end" || contentSide.value === "end",
140
- "origam-timeline-item--alternating": effectiveSide.value === "alternating",
141
- "origam-timeline-item--content-end": contentSide.value === "end",
139
+ "origam-timeline-item--side-start": effectiveSide.value === TIMELINE_SIDE.START || contentSide.value === TIMELINE_SIDE.START,
140
+ "origam-timeline-item--side-end": effectiveSide.value === TIMELINE_SIDE.END || contentSide.value === TIMELINE_SIDE.END,
141
+ "origam-timeline-item--alternating": effectiveSide.value === TIMELINE_SIDE.ALTERNATING,
142
+ "origam-timeline-item--content-end": contentSide.value === TIMELINE_SIDE.END,
142
143
  "origam-timeline-item--last": props.isLast
143
144
  },
144
145
  densityClasses.value,
@@ -65,11 +65,11 @@ const _props = defineProps({
65
65
  borderRightColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
66
66
  borderBottomColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
67
67
  borderLeftColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
68
- fontFamily: { type: String, required: false },
69
- fontSize: { type: String, required: false },
70
- fontWeight: { type: String, required: false },
71
- lineHeight: { type: String, required: false },
72
- letterSpacing: { type: String, required: false }
68
+ fontFamily: { type: null, required: false },
69
+ fontSize: { type: null, required: false },
70
+ fontWeight: { type: null, required: false },
71
+ lineHeight: { type: null, required: false },
72
+ letterSpacing: { type: null, required: false }
73
73
  });
74
74
  const props = useDefaults(_props);
75
75
  const { filterProps } = useProps(props);
@@ -113,11 +113,11 @@ const props = defineProps({
113
113
  active: { type: [Boolean, Object], required: false },
114
114
  activeClass: { type: String, required: false },
115
115
  hover: { type: [Boolean, Object], required: false },
116
- fontFamily: { type: String, required: false },
117
- fontSize: { type: String, required: false },
118
- fontWeight: { type: String, required: false },
119
- lineHeight: { type: String, required: false },
120
- letterSpacing: { type: String, required: false }
116
+ fontFamily: { type: null, required: false },
117
+ fontSize: { type: null, required: false },
118
+ fontWeight: { type: null, required: false },
119
+ lineHeight: { type: null, required: false },
120
+ letterSpacing: { type: null, required: false }
121
121
  });
122
122
  defineSlots();
123
123
  const { filterProps } = useProps(props);
@@ -94,11 +94,11 @@ const props = defineProps({
94
94
  scrim: { type: [Boolean, String], required: false, default: false },
95
95
  color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
96
96
  bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
97
- fontFamily: { type: String, required: false },
98
- fontSize: { type: String, required: false },
99
- fontWeight: { type: String, required: false },
100
- lineHeight: { type: String, required: false },
101
- letterSpacing: { type: String, required: false }
97
+ fontFamily: { type: null, required: false },
98
+ fontSize: { type: null, required: false },
99
+ fontWeight: { type: null, required: false },
100
+ lineHeight: { type: null, required: false },
101
+ letterSpacing: { type: null, required: false }
102
102
  });
103
103
  defineEmits(["update:modelValue"]);
104
104
  defineSlots();
@@ -5,7 +5,7 @@
5
5
  :style="treeviewStyles"
6
6
  role="tree"
7
7
  :aria-label="ariaLabel || 'File tree'"
8
- :aria-multiselectable="selectMode === 'multiple' || undefined"
8
+ :aria-multiselectable="selectMode === TREEVIEW_SELECT_MODE.MULTIPLE || undefined"
9
9
  @keydown="handleKeydown"
10
10
  >
11
11
  <origam-treeview-node
@@ -22,7 +22,7 @@
22
22
  import { computed, provide, ref, watch } from "vue";
23
23
  import { OrigamTreeviewNode } from "../../components";
24
24
  import { ORIGAM_TREEVIEW_KEY } from "../../consts";
25
- import { DENSITY, SIZES } from "../../enums";
25
+ import { DENSITY, SIZES, TREEVIEW_SELECT_MODE, TREEVIEW_SELECTABLE_NODES } from "../../enums";
26
26
  import {
27
27
  useDensity,
28
28
  useProps,
@@ -34,8 +34,8 @@ const props = defineProps({
34
34
  items: { type: Array, required: true },
35
35
  modelValue: { type: [Array, String], required: false },
36
36
  expandedValue: { type: Array, required: false },
37
- selectMode: { type: String, required: false, default: "none" },
38
- selectableNodes: { type: String, required: false, default: "leaf" },
37
+ selectMode: { type: null, required: false, default: "none" },
38
+ selectableNodes: { type: null, required: false, default: "leaf" },
39
39
  showLines: { type: Boolean, required: false, default: true },
40
40
  expandOnClick: { type: Boolean, required: false, default: false },
41
41
  id: { type: String, required: false },
@@ -84,9 +84,9 @@ const toggleExpanded = (id2) => {
84
84
  };
85
85
  const toggleSelected = (id2) => {
86
86
  const mode = props.selectMode;
87
- if (mode === "none") return;
87
+ if (mode === TREEVIEW_SELECT_MODE.NONE) return;
88
88
  const next = new Set(selectedSet.value);
89
- if (mode === "single") {
89
+ if (mode === TREEVIEW_SELECT_MODE.SINGLE) {
90
90
  if (next.has(id2)) {
91
91
  next.clear();
92
92
  } else {
@@ -113,8 +113,8 @@ provide(ORIGAM_TREEVIEW_KEY, {
113
113
  toggleSelected,
114
114
  isExpanded,
115
115
  isSelected,
116
- selectMode: computed(() => props.selectMode ?? "none"),
117
- selectableNodes: computed(() => props.selectableNodes ?? "leaf"),
116
+ selectMode: computed(() => props.selectMode ?? TREEVIEW_SELECT_MODE.NONE),
117
+ selectableNodes: computed(() => props.selectableNodes ?? TREEVIEW_SELECTABLE_NODES.LEAF),
118
118
  showLines: computed(() => props.showLines !== false),
119
119
  expandOnClick: computed(() => props.expandOnClick === true),
120
120
  color: computed(() => {
@@ -93,6 +93,7 @@
93
93
  <script lang="ts" setup>
94
94
  import { computed, inject, useSlots } from "vue";
95
95
  import { ORIGAM_TREEVIEW_KEY } from "../../consts";
96
+ import { TREEVIEW_SELECT_MODE, TREEVIEW_SELECTABLE_NODES } from "../../enums";
96
97
  import {
97
98
  useProps,
98
99
  useStyle
@@ -117,10 +118,10 @@ const hasChildren = computed(() => {
117
118
  const isLeaf = computed(() => !hasChildren.value);
118
119
  const isSelectable = computed(() => {
119
120
  if (props.node.disabled) return false;
120
- const mode = treeview?.selectMode.value ?? "none";
121
- if (mode === "none") return false;
122
- const selectableNodes = treeview?.selectableNodes.value ?? "leaf";
123
- if (selectableNodes === "leaf") return isLeaf.value;
121
+ const mode = treeview?.selectMode.value ?? TREEVIEW_SELECT_MODE.NONE;
122
+ if (mode === TREEVIEW_SELECT_MODE.NONE) return false;
123
+ const selectableNodes = treeview?.selectableNodes.value ?? TREEVIEW_SELECTABLE_NODES.LEAF;
124
+ if (selectableNodes === TREEVIEW_SELECTABLE_NODES.LEAF) return isLeaf.value;
124
125
  return true;
125
126
  });
126
127
  const isNodeExpanded = computed(() => treeview?.isExpanded(props.node.id) ?? false);
@@ -230,7 +230,7 @@ import { OrigamIcon } from "../Icon";
230
230
  import { OrigamMediaController } from "../Media";
231
231
  import { OrigamResponsive } from "../Responsive";
232
232
  import { shouldSuppressAutoplay, useBorder, useColorEffect, useDimension, useElevation, useLocale, useMargin, usePadding, useRounded, useTypography, useVideoPlayer } from "../../composables";
233
- import { MDI_ICONS } from "../../enums";
233
+ import { MDI_ICONS, VIDEO_TRACK_KIND } from "../../enums";
234
234
  const { t } = useLocale();
235
235
  const props = defineProps({
236
236
  src: { type: [String, Array], required: true },
@@ -243,7 +243,7 @@ const props = defineProps({
243
243
  playsInline: { type: Boolean, required: false, default: true },
244
244
  preload: { type: String, required: false, default: "metadata" },
245
245
  aspectRatio: { type: String, required: false, default: "16/9" },
246
- crossorigin: { type: String, required: false, default: void 0 },
246
+ crossorigin: { type: null, required: false, default: void 0 },
247
247
  disablePictureInPicture: { type: Boolean, required: false, default: false },
248
248
  skipSeconds: { type: Number, required: false, default: 30 },
249
249
  showCenterControls: { type: Boolean, required: false, default: true },
@@ -298,11 +298,11 @@ const props = defineProps({
298
298
  paddingBlock: { type: [Boolean, Number, String], required: false },
299
299
  paddingInline: { type: [Boolean, Number, String], required: false },
300
300
  elevation: { type: [Number, String], required: false },
301
- fontFamily: { type: String, required: false },
302
- fontSize: { type: String, required: false },
303
- fontWeight: { type: String, required: false },
304
- lineHeight: { type: String, required: false },
305
- letterSpacing: { type: String, required: false }
301
+ fontFamily: { type: null, required: false },
302
+ fontSize: { type: null, required: false },
303
+ fontWeight: { type: null, required: false },
304
+ lineHeight: { type: null, required: false },
305
+ letterSpacing: { type: null, required: false }
306
306
  });
307
307
  const emit = defineEmits(["enterfullscreen", "exitfullscreen", "enterpip", "exitpip", "skip", "quality-change", "download", "play", "pause", "ended", "timeupdate", "volumechange", "loadedmetadata", "error", "update:playbackRate"]);
308
308
  defineSlots();
@@ -534,7 +534,7 @@ async function togglePipBtn() {
534
534
  }
535
535
  const captionsEnabled = ref(false);
536
536
  const hasCaptions = computed(() => props.tracks.some((track) => {
537
- return track.kind === "captions" || track.kind === "subtitles";
537
+ return track.kind === VIDEO_TRACK_KIND.CAPTIONS || track.kind === VIDEO_TRACK_KIND.SUBTITLES;
538
538
  }));
539
539
  function toggleCaptions() {
540
540
  const el = videoRef.value;
@@ -669,31 +669,9 @@ defineExpose({
669
669
  overflow: hidden;
670
670
  border-radius: var(--origam-video---border-radius, 0);
671
671
 
672
- /*
673
- * Force the chrome (MediaController play / volume / cog,
674
- * native `<button>`-based MediaVolumeControl) to white by
675
- * default — the controller's own SCSS reads `color:
676
- * var(--origam-media-controller---color, inherit)` which
677
- * defaults to the `#171717` text-primary token. On the dark
678
- * video overlay that produces near-invisible icons (the
679
- * user-reported "icons all black" symptom).
680
- *
681
- * The variable is overridden to `inherit` further down when
682
- * the consumer passes `color` / `bgColor`, so `useColorEffect`
683
- * gets to drive the tint through.
684
- */
685
672
  --origam-media-controller---color: #ffffff;
686
673
  }
687
674
 
688
- /*
689
- * Tint propagation when the consumer passes `color` or `bgColor`:
690
- * the MediaController + the white-by-default `.origam-video__btn`
691
- * icons need to inherit the host colour so the scrubber's
692
- * `currentColor` (set by `scrubberColorStyle`) AND the icons
693
- * track the user's intent. Without these overrides the
694
- * MediaController's own scoped `color: var(--origam-media-controller---color, inherit)`
695
- * pins the chrome back to the dark text-primary token.
696
- */
697
675
  .origam-video--has-color,
698
676
  .origam-video--has-bg-color {
699
677
  --origam-media-controller---color: inherit;
@@ -707,30 +685,10 @@ defineExpose({
707
685
  }
708
686
  }
709
687
 
710
- /*
711
- * Native `<button class="origam-media-volume-control__btn">` lives
712
- * inside OrigamMediaVolumeControl with its own scoped CSS that
713
- * doesn't honour `--origam-media-controller---color`. Force it
714
- * to inherit from the controller (which is now white by default)
715
- * so the volume icon matches the rest of the chrome.
716
- */
717
688
  :deep(.origam-media-volume-control__btn) {
718
689
  color: inherit;
719
690
  }
720
691
 
721
- /*
722
- * Scrubber track / buffer background — overrides the MediaController
723
- * defaults so the dark, semi-translucent track doesn't let the
724
- * video frame underneath bleed through with whatever hue the
725
- * picture has at the playhead position (the user-reported "pink
726
- * scrubber" symptom on a pastel-toned video frame). White-tinted
727
- * translucent backgrounds give a uniform light-grey track on
728
- * every video regardless of content.
729
- *
730
- * The :deep(.) reaches into the OrigamMediaScrubber scope to set
731
- * its internal slots; the consumer can still override per-instance
732
- * via `--origam-media-scrubber---track-background-color`.
733
- */
734
692
  :deep(.origam-media-controller__scrubber) {
735
693
  --origam-media-scrubber---track-background-color: rgba(255, 255, 255, 0.28);
736
694
  --origam-media-scrubber---buffer-background-color: rgba(255, 255, 255, 0.42);
@@ -826,11 +784,6 @@ defineExpose({
826
784
  font-size: var(--origam-video--error---icon-font-size, 32px);
827
785
  }
828
786
 
829
- /* State pulse — YouTube-style brief icon flash at the centre of
830
- * the video when play/pause toggles. PURELY cosmetic, never
831
- * absorbs clicks (pointer-events: none) so the underlying video
832
- * surface stays interactive. Fades in + scales up over ~600 ms
833
- * then disappears. */
834
787
  .origam-video__state-pulse {
835
788
  position: absolute;
836
789
  top: 50%;
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useCalendar = useCalendar;
7
7
  var _vue = require("vue");
8
+ var _enums = require("../../enums/index.cjs");
8
9
  var _date = require("../../utils/Calendar/date.util.cjs");
9
10
  var _rrule = require("../../utils/Calendar/rrule.util.cjs");
10
11
  const NAVIGATION_STEP = {
11
- month: (date, direction) => (0, _date.addMonths)(date, direction),
12
- week: (date, direction) => (0, _date.addWeeks)(date, direction),
13
- day: (date, direction) => (0, _date.addDays)(date, direction),
14
- agenda: (date, direction) => (0, _date.addMonths)(date, direction)
12
+ [_enums.CALENDAR_VIEW.MONTH]: (date, direction) => (0, _date.addMonths)(date, direction),
13
+ [_enums.CALENDAR_VIEW.WEEK]: (date, direction) => (0, _date.addWeeks)(date, direction),
14
+ [_enums.CALENDAR_VIEW.DAY]: (date, direction) => (0, _date.addDays)(date, direction),
15
+ [_enums.CALENDAR_VIEW.AGENDA]: (date, direction) => (0, _date.addMonths)(date, direction)
15
16
  };
16
17
  function useCalendar(options, setView, setCurrentDate) {
17
18
  const visibleDateRange = (0, _vue.computed)(() => {
@@ -19,8 +20,8 @@ function useCalendar(options, setView, setCurrentDate) {
19
20
  const date = options.currentDate();
20
21
  const firstDayOfWeek = options.firstDayOfWeek();
21
22
  switch (view) {
22
- case "month":
23
- case "agenda":
23
+ case _enums.CALENDAR_VIEW.MONTH:
24
+ case _enums.CALENDAR_VIEW.AGENDA:
24
25
  {
25
26
  const monthStart = (0, _date.startOfMonth)(date);
26
27
  const gridStart = (0, _date.startOfWeekFixed)(monthStart, firstDayOfWeek);
@@ -30,12 +31,12 @@ function useCalendar(options, setView, setCurrentDate) {
30
31
  end: gridEnd
31
32
  };
32
33
  }
33
- case "week":
34
+ case _enums.CALENDAR_VIEW.WEEK:
34
35
  return {
35
36
  start: (0, _date.startOfWeekFixed)(date, firstDayOfWeek),
36
37
  end: (0, _date.endOfWeekFixed)(date, firstDayOfWeek)
37
38
  };
38
- case "day":
39
+ case _enums.CALENDAR_VIEW.DAY:
39
40
  default:
40
41
  {
41
42
  const start = (0, _date.startOfDay)(date);
@@ -69,10 +70,10 @@ function useCalendar(options, setView, setCurrentDate) {
69
70
  const view = options.view();
70
71
  const current = options.currentDate();
71
72
  let next;
72
- if (direction === "today") {
73
+ if (direction === _enums.CALENDAR_NAVIGATE.TODAY) {
73
74
  next = /* @__PURE__ */new Date();
74
75
  } else {
75
- const step = direction === "next" ? 1 : -1;
76
+ const step = direction === _enums.CALENDAR_NAVIGATE.NEXT ? 1 : -1;
76
77
  next = NAVIGATION_STEP[view](current, step);
77
78
  }
78
79
  const min = options.minDate?.() ?? null;
@@ -1,32 +1,8 @@
1
1
  import { type ComputedRef } from 'vue';
2
- import type { IEvent, IUseCalendarOptions } from '../../interfaces';
2
+ import type { ICalendarAgendaEntry, ICalendarTimeSlot, IEvent, IUseCalendarOptions } from '../../interfaces';
3
3
  import type { TCalendarNavigate, TCalendarView } from '../../types';
4
4
  import { addDays, addMonths, addWeeks, diffMinutes, endOfMonth, isSameDay, isSameMonth, startOfDay, startOfMonth, toDate } from '../../utils/Calendar/date.util';
5
- /**
6
- * Time-slot descriptor returned by `buildDayGrid` / `buildWeekGrid`.
7
- *
8
- * The grid is **not** event-aware — events are positioned absolutely
9
- * on top of the timeline using `diffMinutes(dayStart, event.start)`.
10
- * Decoupling the grid from the events lets us re-use the grid output
11
- * for the drag-select overlay without re-computing.
12
- */
13
- export interface ICalendarTimeSlot {
14
- /** Top-of-slot Date (e.g. 09:30). */
15
- date: Date;
16
- /** Slot duration in minutes (mirror of `options.slotDuration`). */
17
- durationMin: number;
18
- /** True when the slot's hour mark falls on the hour. */
19
- isHourMark: boolean;
20
- }
21
- /**
22
- * Agenda entry — one per day that has at least one event in the
23
- * visible window. Agenda view skips empty days; the `#empty` slot
24
- * fires when *no* event is in range.
25
- */
26
- export interface ICalendarAgendaEntry {
27
- date: Date;
28
- events: Array<IEvent>;
29
- }
5
+ export type { ICalendarAgendaEntry, ICalendarTimeSlot } from '../../interfaces';
30
6
  /**
31
7
  * Public composable. Stateless over the inputs (every getter is a
32
8
  * `() => …` thunk), so `<OrigamCalendar>` can drive it from props or
@@ -1,4 +1,5 @@
1
1
  import { computed } from "vue";
2
+ import { CALENDAR_NAVIGATE, CALENDAR_VIEW } from "../../enums/index.js";
2
3
  import {
3
4
  addDays,
4
5
  addMonths,
@@ -18,10 +19,10 @@ import {
18
19
  } from "../../utils/Calendar/date.util.js";
19
20
  import { expandRecurrence } from "../../utils/Calendar/rrule.util.js";
20
21
  const NAVIGATION_STEP = {
21
- month: (date, direction) => addMonths(date, direction),
22
- week: (date, direction) => addWeeks(date, direction),
23
- day: (date, direction) => addDays(date, direction),
24
- agenda: (date, direction) => addMonths(date, direction)
22
+ [CALENDAR_VIEW.MONTH]: (date, direction) => addMonths(date, direction),
23
+ [CALENDAR_VIEW.WEEK]: (date, direction) => addWeeks(date, direction),
24
+ [CALENDAR_VIEW.DAY]: (date, direction) => addDays(date, direction),
25
+ [CALENDAR_VIEW.AGENDA]: (date, direction) => addMonths(date, direction)
25
26
  };
26
27
  export function useCalendar(options, setView, setCurrentDate) {
27
28
  const visibleDateRange = computed(() => {
@@ -29,19 +30,19 @@ export function useCalendar(options, setView, setCurrentDate) {
29
30
  const date = options.currentDate();
30
31
  const firstDayOfWeek = options.firstDayOfWeek();
31
32
  switch (view) {
32
- case "month":
33
- case "agenda": {
33
+ case CALENDAR_VIEW.MONTH:
34
+ case CALENDAR_VIEW.AGENDA: {
34
35
  const monthStart = startOfMonth(date);
35
36
  const gridStart = startOfWeekFixed(monthStart, firstDayOfWeek);
36
37
  const gridEnd = addDays(gridStart, 6 * 7 - 1);
37
38
  return { start: gridStart, end: gridEnd };
38
39
  }
39
- case "week":
40
+ case CALENDAR_VIEW.WEEK:
40
41
  return {
41
42
  start: startOfWeekFixed(date, firstDayOfWeek),
42
43
  end: endOfWeekFixed(date, firstDayOfWeek)
43
44
  };
44
- case "day":
45
+ case CALENDAR_VIEW.DAY:
45
46
  default: {
46
47
  const start = startOfDay(date);
47
48
  const end = new Date(start);
@@ -71,10 +72,10 @@ export function useCalendar(options, setView, setCurrentDate) {
71
72
  const view = options.view();
72
73
  const current = options.currentDate();
73
74
  let next;
74
- if (direction === "today") {
75
+ if (direction === CALENDAR_NAVIGATE.TODAY) {
75
76
  next = /* @__PURE__ */ new Date();
76
77
  } else {
77
- const step = direction === "next" ? 1 : -1;
78
+ const step = direction === CALENDAR_NAVIGATE.NEXT ? 1 : -1;
78
79
  next = NAVIGATION_STEP[view](current, step);
79
80
  }
80
81
  const min = options.minDate?.() ?? null;
@@ -1,30 +1,8 @@
1
- import { type ComputedRef, type Ref } from 'vue';
2
- import type { ICommand } from '../../interfaces';
1
+ import type { IUseCommandReturn } from '../../interfaces';
2
+ export type { IUseCommandReturn } from '../../interfaces';
3
3
  /*********************************************************
4
4
  * useCommand
5
5
  ********************************************************/
6
- export interface IUseCommandReturn {
7
- /**
8
- * Register a command. Returns an `unregister()` closure so callers
9
- * can drop the entry imperatively. When called from inside a Vue
10
- * effect scope, the entry is auto-unregistered on scope dispose
11
- * (component unmount, route leave, …) via `tryOnScopeDispose`.
12
- */
13
- register: (cmd: ICommand) => () => void;
14
- /** Drop the entry with the matching `id`. No-op if unknown. */
15
- unregister: (id: string) => void;
16
- /**
17
- * Reactive read-only view of every registered command, deduplicated
18
- * by id.
19
- */
20
- commands: ComputedRef<ReadonlyArray<ICommand>>;
21
- /** Open the global palette singleton. */
22
- open: () => void;
23
- /** Close the global palette singleton. */
24
- close: () => void;
25
- /** Reactive open/close state of the global palette singleton. */
26
- isOpen: Ref<boolean>;
27
- }
28
6
  export declare function useCommand(): IUseCommandReturn;
29
7
  /*********************************************************
30
8
  * Test helper
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.camelize = camelize;
6
7
  exports.createDefaults = createDefaults;
7
8
  exports.provideDefaults = provideDefaults;
8
9
  exports.useDefaults = useDefaults;
@@ -1,5 +1,16 @@
1
1
  import { type Ref } from 'vue';
2
2
  import type { IDefault } from '../../interfaces';
3
+ /**
4
+ * `kebab-case` → `camelCase`. Used to recognise prop names that were passed
5
+ * as kebab-case attributes on the parent vnode.
6
+ *
7
+ * Exported (not just used internally by `usePassedProps`/`useDefaults`) so
8
+ * `theme-props-resolver.composable.ts` can match `vnode.props` keys against
9
+ * declared prop names with the EXACT same rule — see ADR-005. Two independent
10
+ * implementations of this matching rule is exactly the kind of drift the
11
+ * "reuse before writing" policy exists to prevent.
12
+ */
13
+ export declare function camelize(str: string): string;
3
14
  /**
4
15
  * Was-prop-passed factory.
5
16
  *
@@ -1,7 +1,7 @@
1
1
  import { computed, inject, provide, ref } from "vue";
2
2
  import { ORIGAM_DEFAULTS_KEY } from "../../consts/index.js";
3
3
  import { getCurrentInstance, getCurrentInstanceName, mergeDeep } from "../../utils/index.js";
4
- function camelize(str) {
4
+ export function camelize(str) {
5
5
  return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
6
6
  }
7
7
  export function usePassedProps(_props, instanceLabel = "usePassedProps") {
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useLoader = useLoader;
7
7
  var _vue = require("vue");
8
+ var _enums = require("../../enums/index.cjs");
8
9
  var _utils = require("../../utils/index.cjs");
9
- function useLoader(props, defaultKind = "circular", name = (0, _utils.getCurrentInstanceName)()) {
10
+ function useLoader(props, defaultKind = _enums.LOADER_KIND.CIRCULAR, name = (0, _utils.getCurrentInstanceName)()) {
10
11
  const isLoading = (0, _vue.computed)(() => {
11
12
  const v = props.loading;
12
13
  if (v === false || v === void 0 || v === null) return false;
@@ -1,28 +1,7 @@
1
1
  import { type ComputedRef } from 'vue';
2
- import type { ILoaderProps } from '../../interfaces';
3
- import type { TLoaderConfig, TLoaderKind } from '../../types';
4
- /**
5
- * Resolved loader state — what each consumer component reads to decide
6
- * which renderer to mount and with which props.
7
- *
8
- * @remarks
9
- * `overrides` is intentionally typed as `Omit<TLoaderConfig, 'type'>`. After
10
- * the discriminant `type` is destructured at runtime, TypeScript can no
11
- * longer narrow the union. Consumer components must access optional fields
12
- * defensively (e.g. `(overrides as { modelValue?: number }).modelValue`).
13
- */
14
- export interface IResolvedLoader {
15
- /** Whether ANY loading state is active. */
16
- isActive: boolean;
17
- /** Which renderer to use ('line' / 'circular' / 'skeleton'). */
18
- kind: TLoaderKind;
19
- /** Determinate progress value (0..100) when the user passed a number; else undefined. */
20
- modelValue: number | undefined;
21
- /** Indeterminate when `true`, determinate when a number was passed. */
22
- indeterminate: boolean;
23
- /** Per-kind override props the consumer should v-bind on the renderer. */
24
- overrides: Omit<TLoaderConfig, 'type'>;
25
- }
2
+ import type { ILoaderProps, IResolvedLoader } from '../../interfaces';
3
+ import type { TLoaderKind } from '../../types';
4
+ export type { IResolvedLoader } from '../../interfaces';
26
5
  /**
27
6
  * Resolve the polymorphic `loading` prop into a normalised descriptor.
28
7
  *
@@ -1,6 +1,7 @@
1
1
  import { computed } from "vue";
2
+ import { LOADER_KIND } from "../../enums/index.js";
2
3
  import { getCurrentInstanceName } from "../../utils/index.js";
3
- export function useLoader(props, defaultKind = "circular", name = getCurrentInstanceName()) {
4
+ export function useLoader(props, defaultKind = LOADER_KIND.CIRCULAR, name = getCurrentInstanceName()) {
4
5
  const isLoading = computed(() => {
5
6
  const v = props.loading;
6
7
  if (v === false || v === void 0 || v === null) return false;
@@ -7,9 +7,8 @@ exports.useMargin = useMargin;
7
7
  var _vue = require("vue");
8
8
  var _consts = require("../../consts/index.cjs");
9
9
  var _utils = require("../../utils/index.cjs");
10
- const UTILITY_MARGIN_SCALE = /* @__PURE__ */new Set(["0", "1", "2", "3", "4", "5", "6", "8", "10", "12"]);
11
10
  function isUtilityMarginScale(value) {
12
- return typeof value === "string" && UTILITY_MARGIN_SCALE.has(value);
11
+ return typeof value === "string" && _consts.SPACING_SCALE_STEPS.includes(value);
13
12
  }
14
13
  function useMargin(props, name = (0, _utils.getCurrentInstanceName)()) {
15
14
  const marginClasses = (0, _vue.computed)(() => {
@@ -26,18 +25,33 @@ function useMargin(props, name = (0, _utils.getCurrentInstanceName)()) {
26
25
  const marginStyles = (0, _vue.computed)(() => {
27
26
  const margin = props.margin;
28
27
  const styles = [];
29
- if (isUtilityMarginScale(margin)) return styles;
30
- if (typeof margin === "string" && margin !== "") {
31
- const match = _consts.MARGIN_REGEX.exec(margin)?.groups;
32
- if (match) {
33
- Object.keys(match).forEach(key => {
34
- const values = String(match[key]).split(" ");
35
- styles.push(...(0, _utils.formatMarginStylesVar)(values));
36
- });
28
+ if (!isUtilityMarginScale(margin)) {
29
+ if (typeof margin === "string" && margin !== "") {
30
+ const match = _consts.MARGIN_REGEX.exec(margin)?.groups;
31
+ if (match) {
32
+ Object.keys(match).forEach(key => {
33
+ const values = String(match[key]).split(" ");
34
+ styles.push(...(0, _utils.formatMarginStylesVar)(values));
35
+ });
36
+ }
37
+ } else if (typeof margin === "number") {
38
+ styles.push(`margin: ${(0, _utils.convertToUnit)(margin)}`);
37
39
  }
38
- } else if (typeof margin === "number") {
39
- styles.push(`margin: ${(0, _utils.convertToUnit)(margin)}`);
40
40
  }
41
+ _consts.MARGIN_LOGICAL_AXIS_MAP.forEach(({
42
+ axis,
43
+ prop
44
+ }) => {
45
+ const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
46
+ if (resolved) styles.push(`margin-${axis}: ${resolved}`);
47
+ });
48
+ _consts.MARGIN_POSITION_MAP.forEach(({
49
+ side,
50
+ prop
51
+ }) => {
52
+ const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
53
+ if (resolved) styles.push(`margin-${side}: ${resolved}`);
54
+ });
41
55
  return styles;
42
56
  });
43
57
  return {