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
@@ -153,20 +153,78 @@ export function useStateEffect(props, isHover = noopRef, isActive = noopRef, hov
153
153
  }
154
154
  })
155
155
  );
156
- const { roundedClasses, roundedStyles } = useRounded(rounded);
156
+ const { roundedClasses, roundedStyles } = useRounded(
157
+ reactive({
158
+ get rounded() {
159
+ return rounded.value;
160
+ },
161
+ get roundedTopLeft() {
162
+ return props.roundedTopLeft;
163
+ },
164
+ get roundedTopRight() {
165
+ return props.roundedTopRight;
166
+ },
167
+ get roundedBottomLeft() {
168
+ return props.roundedBottomLeft;
169
+ },
170
+ get roundedBottomRight() {
171
+ return props.roundedBottomRight;
172
+ }
173
+ })
174
+ );
157
175
  const { elevationClasses, elevationStyles } = useElevation(
158
176
  elevation,
159
177
  flat
160
178
  );
161
179
  const { paddingClasses, paddingStyles } = usePadding(
162
- reactive({ get padding() {
163
- return padding.value;
164
- } })
180
+ reactive({
181
+ get padding() {
182
+ return padding.value;
183
+ },
184
+ get paddingTop() {
185
+ return props.paddingTop;
186
+ },
187
+ get paddingRight() {
188
+ return props.paddingRight;
189
+ },
190
+ get paddingBottom() {
191
+ return props.paddingBottom;
192
+ },
193
+ get paddingLeft() {
194
+ return props.paddingLeft;
195
+ },
196
+ get paddingBlock() {
197
+ return props.paddingBlock;
198
+ },
199
+ get paddingInline() {
200
+ return props.paddingInline;
201
+ }
202
+ })
165
203
  );
166
204
  const { marginClasses, marginStyles } = useMargin(
167
- reactive({ get margin() {
168
- return margin.value;
169
- } })
205
+ reactive({
206
+ get margin() {
207
+ return margin.value;
208
+ },
209
+ get marginTop() {
210
+ return props.marginTop;
211
+ },
212
+ get marginRight() {
213
+ return props.marginRight;
214
+ },
215
+ get marginBottom() {
216
+ return props.marginBottom;
217
+ },
218
+ get marginLeft() {
219
+ return props.marginLeft;
220
+ },
221
+ get marginBlock() {
222
+ return props.marginBlock;
223
+ },
224
+ get marginInline() {
225
+ return props.marginInline;
226
+ }
227
+ })
170
228
  );
171
229
  const gapStyles = computed(() => {
172
230
  const v = gap.value;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.installThemePropsResolver = installThemePropsResolver;
7
+ exports.themedPropKeysUnion = themedPropKeysUnion;
8
+ var _vue = require("vue");
9
+ var _consts = require("../../consts/index.cjs");
10
+ var _utils = require("../../utils/index.cjs");
11
+ var _defaults = require("./defaults.composable.cjs");
12
+ function themedPropKeysUnion(themes) {
13
+ const union = /* @__PURE__ */new Map();
14
+ for (const componentDefaults of themes) {
15
+ for (const componentName in componentDefaults) {
16
+ const propsForComponent = componentDefaults[componentName];
17
+ if (!propsForComponent) continue;
18
+ let keys = union.get(componentName);
19
+ if (!keys) {
20
+ keys = /* @__PURE__ */new Set();
21
+ union.set(componentName, keys);
22
+ }
23
+ for (const propKey in propsForComponent) {
24
+ keys.add(propKey);
25
+ }
26
+ }
27
+ }
28
+ return union;
29
+ }
30
+ function passedPropValue(vnodeProps, key) {
31
+ if (!vnodeProps) return void 0;
32
+ for (const rawKey in vnodeProps) {
33
+ if (rawKey === key || (0, _defaults.camelize)(rawKey) === key) return vnodeProps[rawKey];
34
+ }
35
+ return void 0;
36
+ }
37
+ function installThemePropsResolver(app, themedKeysUnion) {
38
+ app.mixin({
39
+ beforeCreate() {
40
+ const instance = (0, _vue.getCurrentInstance)();
41
+ if (!instance) return;
42
+ const name = (0, _utils.getCurrentInstanceName)("theme-props-resolver");
43
+ const defaults = (0, _vue.inject)(_consts.ORIGAM_DEFAULTS_KEY, (0, _vue.ref)({}));
44
+ const ownKeys = themedKeysUnion.get(name);
45
+ const globalKeys = themedKeysUnion.get("global");
46
+ const providerOwnKeys = defaults.value?.[name];
47
+ const providerGlobalKeys = defaults.value?.global;
48
+ if (!ownKeys?.size && !globalKeys?.size && !providerOwnKeys && !providerGlobalKeys) return;
49
+ const rawProps = instance.props;
50
+ const targetKeys = ownKeys ? new Set(ownKeys) : /* @__PURE__ */new Set();
51
+ if (globalKeys) for (const key of globalKeys) targetKeys.add(key);
52
+ if (providerOwnKeys) for (const key in providerOwnKeys) targetKeys.add(key);
53
+ if (providerGlobalKeys) for (const key in providerGlobalKeys) targetKeys.add(key);
54
+ for (const key of targetKeys) {
55
+ if (!(key in rawProps)) continue;
56
+ const fallbackValue = (0, _vue.shallowRef)(rawProps[key]);
57
+ let passedValue = passedPropValue(instance.vnode.props, key);
58
+ Object.defineProperty(rawProps, key, {
59
+ configurable: true,
60
+ enumerable: true,
61
+ get() {
62
+ const fallback = fallbackValue.value;
63
+ if (passedValue !== void 0) return passedValue;
64
+ const componentDefaults = defaults.value?.[name];
65
+ if (componentDefaults && componentDefaults[key] !== void 0) {
66
+ return componentDefaults[key];
67
+ }
68
+ const globalDefaults = defaults.value?.global;
69
+ if (globalDefaults && globalDefaults[key] !== void 0) {
70
+ return globalDefaults[key];
71
+ }
72
+ return fallback;
73
+ },
74
+ set(value) {
75
+ passedValue = passedPropValue(instance.vnode.props, key);
76
+ fallbackValue.value = value;
77
+ }
78
+ });
79
+ }
80
+ }
81
+ });
82
+ }
@@ -0,0 +1,38 @@
1
+ import { type App } from 'vue';
2
+ import type { IDefault } from '../../interfaces';
3
+ /**
4
+ * Compute the set of prop keys, per component name (plus the special
5
+ * `'global'` key), that AT LEAST ONE registered theme names in its
6
+ * `components` block.
7
+ *
8
+ * Scoped to the UNION across every theme `createOrigam` installs — not just
9
+ * the brand×mode active at mount. A prop named only by a theme that becomes
10
+ * active LATER (via a runtime brand switch) still needs interception wired
11
+ * up from the start, or it will never update after the switch (verified gap
12
+ * in ADR-005: `rounded` stayed `'none'` after swapping to a theme that was
13
+ * the first to name it).
14
+ *
15
+ * Pure — no Vue/DOM access — so it is called once, synchronously, at
16
+ * `createOrigam()` install time.
17
+ */
18
+ export declare function themedPropKeysUnion(themes: IDefault[]): Map<string, Set<string>>;
19
+ /**
20
+ * Install the global `beforeCreate` hook described at the top of this file.
21
+ * Called once by `createOrigam()` per app instance.
22
+ *
23
+ * ⚠️ ALWAYS calls `app.mixin()`, even for an empty `themedKeysUnion`.
24
+ *
25
+ * It used to early-out on an empty union, on the grounds that a theme naming
26
+ * nothing means nothing to intercept. That stopped being true once this hook
27
+ * also resolves the `provideDefaults` cascade (see "Two key sources" in the
28
+ * hook body): a `<origam-defaults-provider>` — or any group component that
29
+ * forwards props to its children — populates the very same defaults map at
30
+ * RUNTIME, long after install time. There is no install-time way to know
31
+ * whether one will ever mount, so the union being empty no longer implies
32
+ * there is nothing to do.
33
+ *
34
+ * The per-instance early-out inside the hook is unchanged in spirit and still
35
+ * carries the cost argument: an instance that neither a theme nor an ancestor
36
+ * provider names returns after a Map lookup and one property lookup.
37
+ */
38
+ export declare function installThemePropsResolver(app: App, themedKeysUnion: Map<string, Set<string>>): void;
@@ -0,0 +1,75 @@
1
+ import { getCurrentInstance, inject, ref, shallowRef } from "vue";
2
+ import { ORIGAM_DEFAULTS_KEY } from "../../consts/index.js";
3
+ import { getCurrentInstanceName } from "../../utils/index.js";
4
+ import { camelize } from "./defaults.composable.js";
5
+ export function themedPropKeysUnion(themes) {
6
+ const union = /* @__PURE__ */ new Map();
7
+ for (const componentDefaults of themes) {
8
+ for (const componentName in componentDefaults) {
9
+ const propsForComponent = componentDefaults[componentName];
10
+ if (!propsForComponent) continue;
11
+ let keys = union.get(componentName);
12
+ if (!keys) {
13
+ keys = /* @__PURE__ */ new Set();
14
+ union.set(componentName, keys);
15
+ }
16
+ for (const propKey in propsForComponent) {
17
+ keys.add(propKey);
18
+ }
19
+ }
20
+ }
21
+ return union;
22
+ }
23
+ function passedPropValue(vnodeProps, key) {
24
+ if (!vnodeProps) return void 0;
25
+ for (const rawKey in vnodeProps) {
26
+ if (rawKey === key || camelize(rawKey) === key) return vnodeProps[rawKey];
27
+ }
28
+ return void 0;
29
+ }
30
+ export function installThemePropsResolver(app, themedKeysUnion) {
31
+ app.mixin({
32
+ beforeCreate() {
33
+ const instance = getCurrentInstance();
34
+ if (!instance) return;
35
+ const name = getCurrentInstanceName("theme-props-resolver");
36
+ const defaults = inject(ORIGAM_DEFAULTS_KEY, ref({}));
37
+ const ownKeys = themedKeysUnion.get(name);
38
+ const globalKeys = themedKeysUnion.get("global");
39
+ const providerOwnKeys = defaults.value?.[name];
40
+ const providerGlobalKeys = defaults.value?.global;
41
+ if (!ownKeys?.size && !globalKeys?.size && !providerOwnKeys && !providerGlobalKeys) return;
42
+ const rawProps = instance.props;
43
+ const targetKeys = ownKeys ? new Set(ownKeys) : /* @__PURE__ */ new Set();
44
+ if (globalKeys) for (const key of globalKeys) targetKeys.add(key);
45
+ if (providerOwnKeys) for (const key in providerOwnKeys) targetKeys.add(key);
46
+ if (providerGlobalKeys) for (const key in providerGlobalKeys) targetKeys.add(key);
47
+ for (const key of targetKeys) {
48
+ if (!(key in rawProps)) continue;
49
+ const fallbackValue = shallowRef(rawProps[key]);
50
+ let passedValue = passedPropValue(instance.vnode.props, key);
51
+ Object.defineProperty(rawProps, key, {
52
+ configurable: true,
53
+ enumerable: true,
54
+ get() {
55
+ const fallback = fallbackValue.value;
56
+ if (passedValue !== void 0) return passedValue;
57
+ const componentDefaults = defaults.value?.[name];
58
+ if (componentDefaults && componentDefaults[key] !== void 0) {
59
+ return componentDefaults[key];
60
+ }
61
+ const globalDefaults = defaults.value?.global;
62
+ if (globalDefaults && globalDefaults[key] !== void 0) {
63
+ return globalDefaults[key];
64
+ }
65
+ return fallback;
66
+ },
67
+ set(value) {
68
+ passedValue = passedPropValue(instance.vnode.props, key);
69
+ fallbackValue.value = value;
70
+ }
71
+ });
72
+ }
73
+ }
74
+ });
75
+ }
@@ -1,37 +1,8 @@
1
- import { type ComputedRef, type Ref } from 'vue';
2
- import { FEATURE_QUERIES } from '../../consts/CssSupport/css-support.const';
3
- export type TCssFeatureName = keyof typeof FEATURE_QUERIES;
4
- export type TCssSupportMap = Readonly<Record<TCssFeatureName, boolean>>;
5
- export interface IUseCssSupport {
6
- /**
7
- * Reactive map of feature → `boolean`. Computed once on first browser-
8
- * side call; subsequent calls share the same frozen snapshot.
9
- */
10
- css: Readonly<Ref<TCssSupportMap>>;
11
- /**
12
- * Free-form query support. Pass any string accepted by `CSS.supports()`.
13
- * Result is cached per-query.
14
- *
15
- * @example
16
- * supports('display: grid') // true on modern browsers
17
- * supports('selector(:has(*))') // selector query
18
- * supports('width: clamp(1px, 50%, 100px)') // math function
19
- */
20
- supports: (query: string) => boolean;
21
- /**
22
- * `true` if at least ONE of the queries is supported.
23
- */
24
- supportsAny: (...queries: string[]) => boolean;
25
- /**
26
- * `true` if EVERY query is supported.
27
- */
28
- supportsAll: (...queries: string[]) => boolean;
29
- /**
30
- * Reactive `ComputedRef<boolean>` for a single named feature. Useful in
31
- * templates: `<div v-if="hasGrid">…`.
32
- */
33
- has: (feature: TCssFeatureName) => ComputedRef<boolean>;
34
- }
1
+ import { type Ref } from 'vue';
2
+ import type { IUseCssSupport, IUseCssSupportClientOptions } from '../../interfaces';
3
+ import type { TCssFeatureName } from '../../types';
4
+ export type { TCssFeatureName, TCssSupportMap } from '../../types';
5
+ export type { IUseCssSupport, IUseCssSupportClientOptions } from '../../interfaces';
35
6
  /*********************************************************
36
7
  * useCssSupport
37
8
  ********************************************************/
@@ -46,15 +17,6 @@ export declare function useCssSupport(): IUseCssSupport;
46
17
  * _resetCssSupportCache
47
18
  ********************************************************/
48
19
  export declare function _resetCssSupportCache(): void;
49
- export interface IUseCssSupportClientOptions {
50
- /**
51
- * Value returned during SSR and on the first client render (before
52
- * `onMounted` fires). Pick the side of the branch that produces the
53
- * smaller / safer markup — typically `false` (= JS fallback) so the
54
- * server output stays universally compatible.
55
- */
56
- defaultValue?: boolean;
57
- }
58
20
  /*********************************************************
59
21
  * useCssSupportClient
60
22
  *
@@ -1,26 +1,6 @@
1
- import { MaybeRef, Ref } from 'vue';
2
- import type { IMaskOptions, IResolvedMaskConfig } from '../../interfaces';
1
+ import { MaybeRef } from 'vue';
2
+ import type { IMaskOptions, IUseMaskReturn } from '../../interfaces';
3
3
  import type { TMask } from '../../types';
4
- /**
5
- * Public return shape of `useMask`.
6
- */
7
- export interface IUseMaskReturn {
8
- masked: Ref<string>;
9
- unmasked: Ref<string>;
10
- isValid: Ref<boolean>;
11
- complete: Ref<boolean>;
12
- /**
13
- * Imperatively re-run the formatter on a raw value
14
- * (used by paste / external sync). Returns the new
15
- * `unmasked` so callers can keep their model in sync.
16
- */
17
- setRaw: (raw: string) => string;
18
- /**
19
- * Currently resolved config (pattern + validator +
20
- * required). `null` when no mask is active.
21
- */
22
- config: Ref<IResolvedMaskConfig | null>;
23
- }
24
4
  /**
25
5
  * Reactive mask engine — keeps `masked`, `unmasked`,
26
6
  * `isValid` and `complete` in sync with a source string
@@ -36,4 +16,4 @@ export interface IUseMaskReturn {
36
16
  * the current value.
37
17
  */
38
18
  export declare function useMask(modelValue: MaybeRef<string | null | undefined>, mask: MaybeRef<TMask | undefined>): IUseMaskReturn;
39
- export type { IMaskOptions };
19
+ export type { IMaskOptions, IUseMaskReturn };
@@ -1,60 +1,6 @@
1
- import { type Ref } from 'vue';
2
1
  import type { TMasonryAlign } from '../../types';
3
- import type { TMasonryColumnBreakpoints } from '../../interfaces';
4
- /**
5
- * Internal layout descriptor produced by the bucket-fill algorithm.
6
- * One entry per measured item. Coordinates are expressed in CSS px,
7
- * relative to the masonry container's content box.
8
- */
9
- export interface IMasonryItemRect {
10
- /** Index of the item in the original DOM order. */
11
- index: number;
12
- /** `left` (px) of the item inside the container's content box. */
13
- left: number;
14
- /** `top` (px) of the item inside the container's content box. */
15
- top: number;
16
- /** Computed width (px) — same for every item in a given pass. */
17
- width: number;
18
- /** Measured height (px) — preserved from the natural item flow. */
19
- height: number;
20
- /** Zero-based column index the item was placed into. */
21
- column: number;
22
- }
23
- /**
24
- * Public layout result. The caller uses `containerHeight` to size the
25
- * container (absolute-positioned children would otherwise collapse it),
26
- * and `items` to read per-item coordinates for inline-style assignment.
27
- */
28
- export interface IMasonryLayoutResult {
29
- /** Final container height (px) — `max(column heights)`. */
30
- containerHeight: number;
31
- /** Per-item position record. Index matches the original DOM order. */
32
- items: IMasonryItemRect[];
33
- /** Effective column count used for this layout (post-breakpoint). */
34
- columns: number;
35
- }
36
- /**
37
- * Options consumed by `useMasonry`. All inputs are refs so the
38
- * composable can react to prop changes from its consumer.
39
- */
40
- export interface IUseMasonryOptions {
41
- /** Default column count. Used when no breakpoint matches. */
42
- columnsRef: Ref<number>;
43
- /**
44
- * Gap in **px** between items, both axes. The composable expects an
45
- * already-resolved pixel value — string-token resolution happens in
46
- * the component wrapper.
47
- */
48
- gapRef: Ref<number>;
49
- /** Optional container-query breakpoints. */
50
- breakpointsRef?: Ref<TMasonryColumnBreakpoints | undefined>;
51
- /**
52
- * Vertical alignment of items inside a column. `'top'` packs to the
53
- * top; `'center'` shifts each column's content down by half the
54
- * unused space.
55
- */
56
- alignRef?: Ref<TMasonryAlign>;
57
- }
2
+ import type { IMasonryLayoutResult, IUseMasonryOptions, TMasonryColumnBreakpoints } from '../../interfaces';
3
+ export type { IMasonryItemRect, IMasonryLayoutResult, IUseMasonryOptions } from '../../interfaces';
58
4
  /**
59
5
  * Decide how many columns to use given a container width and a
60
6
  * breakpoint map. Picks the LARGEST key ≤ width. Falls back to
@@ -104,9 +50,9 @@ export declare function bucketFill(heights: ReadonlyArray<number>, containerWidt
104
50
  * - On unmount: disconnect observers.
105
51
  */
106
52
  export declare function useMasonry(options: IUseMasonryOptions): {
107
- containerRef: Ref<HTMLElement | null, HTMLElement | null>;
53
+ containerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
108
54
  setItem: (index: number, el: HTMLElement | null) => void;
109
- layout: Ref<{
55
+ layout: import("vue").Ref<{
110
56
  containerHeight: number;
111
57
  items: {
112
58
  index: number;
@@ -1,24 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import type { IParallaxLayerRegistry } from '../../interfaces';
3
- import type { TParallaxDirection, TParallaxEasing } from '../../types';
4
- /*********************************************************
5
- * Internal options consumed by `useParallaxRuntime`.
6
- ********************************************************/
7
- export interface IUseParallaxRuntimeOptions {
8
- target: Ref<HTMLElement | undefined>;
9
- direction: Ref<TParallaxDirection>;
10
- easing: Ref<TParallaxEasing | string>;
11
- threshold: Ref<number>;
12
- disabled: Ref<boolean>;
13
- /**
14
- * Fallback speed used when `slot=default` carries raw content (no
15
- * `<OrigamParallaxLayer>`). Mirrors `IParallaxProps.speed`.
16
- */
17
- speed: Ref<number>;
18
- onEnter?: () => void;
19
- onLeave?: () => void;
20
- onProgress?: (progress: number) => void;
21
- }
2
+ import type { IParallaxLayerRegistry, IUseParallaxRuntimeOptions } from '../../interfaces';
3
+ export type { IUseParallaxRuntimeOptions } from '../../interfaces';
22
4
  /*********************************************************
23
5
  * useParallaxRuntime
24
6
  *
@@ -10,13 +10,14 @@ Object.defineProperty(exports, "DEFAULT_PASSWORD_REQUIREMENTS", {
10
10
  }
11
11
  });
12
12
  exports.computeStrength = computeStrength;
13
+ var _enums = require("../../enums/index.cjs");
13
14
  var _consts = require("../../consts/index.cjs");
14
15
  function computeStrength(value) {
15
16
  const v = (value ?? "").toString();
16
17
  if (v.length === 0) {
17
18
  return {
18
19
  score: 0,
19
- level: "weak"
20
+ level: _enums.PASSWORD_STRENGTH_LEVEL.WEAK
20
21
  };
21
22
  }
22
23
  let raw = 0;
@@ -27,7 +28,7 @@ function computeStrength(value) {
27
28
  if (/[^A-Za-z0-9]/.test(v)) raw += 1;
28
29
  const score = raw > 4 ? 4 : raw;
29
30
  let level;
30
- if (score <= 1) level = "weak";else if (score === 2) level = "fair";else if (score === 3) level = "good";else level = "strong";
31
+ if (score <= 1) level = _enums.PASSWORD_STRENGTH_LEVEL.WEAK;else if (score === 2) level = _enums.PASSWORD_STRENGTH_LEVEL.FAIR;else if (score === 3) level = _enums.PASSWORD_STRENGTH_LEVEL.GOOD;else level = _enums.PASSWORD_STRENGTH_LEVEL.STRONG;
31
32
  return {
32
33
  score,
33
34
  level
@@ -1,7 +1,8 @@
1
+ import { PASSWORD_STRENGTH_LEVEL } from "../../enums/index.js";
1
2
  export function computeStrength(value) {
2
3
  const v = (value ?? "").toString();
3
4
  if (v.length === 0) {
4
- return { score: 0, level: "weak" };
5
+ return { score: 0, level: PASSWORD_STRENGTH_LEVEL.WEAK };
5
6
  }
6
7
  let raw = 0;
7
8
  if (v.length >= 8) raw += 1;
@@ -11,10 +12,10 @@ export function computeStrength(value) {
11
12
  if (/[^A-Za-z0-9]/.test(v)) raw += 1;
12
13
  const score = raw > 4 ? 4 : raw;
13
14
  let level;
14
- if (score <= 1) level = "weak";
15
- else if (score === 2) level = "fair";
16
- else if (score === 3) level = "good";
17
- else level = "strong";
15
+ if (score <= 1) level = PASSWORD_STRENGTH_LEVEL.WEAK;
16
+ else if (score === 2) level = PASSWORD_STRENGTH_LEVEL.FAIR;
17
+ else if (score === 3) level = PASSWORD_STRENGTH_LEVEL.GOOD;
18
+ else level = PASSWORD_STRENGTH_LEVEL.STRONG;
18
19
  return { score, level };
19
20
  }
20
21
  export { DEFAULT_PASSWORD_REQUIREMENTS } from "../../consts/index.js";
@@ -17,7 +17,8 @@ const getStore = id => {
17
17
  timers: /* @__PURE__ */new Map(),
18
18
  counter: {
19
19
  current: 0
20
- }
20
+ },
21
+ defaultDuration: (0, _vue.ref)(_consts.SNACKBAR_GROUP_DEFAULT_DURATION)
21
22
  };
22
23
  STORES.set(id, store);
23
24
  }
@@ -54,7 +55,7 @@ function useSnackbarGroup(options = {}) {
54
55
  };
55
56
  const notify = opts => {
56
57
  const itemId = generateId(state);
57
- const duration = opts.duration ?? options.defaultDuration ?? _consts.SNACKBAR_GROUP_DEFAULT_DURATION;
58
+ const duration = opts.duration ?? options.defaultDuration ?? state.defaultDuration.value;
58
59
  const item = {
59
60
  ...opts,
60
61
  id: itemId,
@@ -84,9 +85,13 @@ function useSnackbarGroup(options = {}) {
84
85
  }
85
86
  function useSnackbarGroupInternal(id = _consts.SNACKBAR_GROUP_DEFAULT_ID) {
86
87
  const state = getStore(id);
88
+ const registerDefaultDuration = duration => {
89
+ state.defaultDuration.value = duration;
90
+ };
87
91
  return {
88
92
  rawItems: state.items,
89
- itemCount: (0, _vue.computed)(() => state.items.value.length)
93
+ itemCount: (0, _vue.computed)(() => state.items.value.length),
94
+ registerDefaultDuration
90
95
  };
91
96
  }
92
97
  function resetSnackbarGroupForTesting() {
@@ -1,5 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
- import type { ISnackbarGroupItem, ISnackbarGroupItemOptions } from '../../interfaces';
2
+ import type { ISnackbarGroupItem, IUseSnackbarGroupOptions, IUseSnackbarGroupReturn } from '../../interfaces';
3
+ export type { IUseSnackbarGroupOptions, IUseSnackbarGroupReturn } from '../../interfaces';
3
4
  /*********************************************************
4
5
  * useSnackbarGroup
5
6
  *
@@ -10,27 +11,6 @@ import type { ISnackbarGroupItem, ISnackbarGroupItemOptions } from '../../interf
10
11
  * `<OrigamSnackbarGroup id="…">` instance, so direct
11
12
  * mutation outside of `notify` / `dismiss` is discouraged.
12
13
  ********************************************************/
13
- export interface IUseSnackbarGroupOptions {
14
- id?: string;
15
- /**
16
- * Maximum number of items kept in the stack. When `notify` would
17
- * push past this number, the oldest item is evicted FIFO. When
18
- * undefined, the stack is unbounded (the rendering component
19
- * still caps the visible count via its `max` prop).
20
- */
21
- max?: number;
22
- /**
23
- * Fallback `duration` applied to items that omit their own.
24
- * Defaults to `SNACKBAR_GROUP_DEFAULT_DURATION` (5 000 ms).
25
- */
26
- defaultDuration?: number;
27
- }
28
- export interface IUseSnackbarGroupReturn {
29
- items: Readonly<Ref<ReadonlyArray<ISnackbarGroupItem>>>;
30
- notify: (opts: ISnackbarGroupItemOptions) => string;
31
- dismiss: (itemId: string) => void;
32
- dismissAll: () => void;
33
- }
34
14
  export declare function useSnackbarGroup(options?: IUseSnackbarGroupOptions): IUseSnackbarGroupReturn;
35
15
  /*********************************************************
36
16
  * Internal helper for the host component
@@ -46,6 +26,7 @@ export declare function useSnackbarGroup(options?: IUseSnackbarGroupOptions): IU
46
26
  export declare function useSnackbarGroupInternal(id?: string): {
47
27
  rawItems: Ref<ISnackbarGroupItem[], ISnackbarGroupItem[]>;
48
28
  itemCount: import("vue").ComputedRef<number>;
29
+ registerDefaultDuration: (duration: number) => void;
49
30
  };
50
31
  /*********************************************************
51
32
  * Test helper
@@ -7,7 +7,8 @@ const getStore = (id) => {
7
7
  store = {
8
8
  items: ref([]),
9
9
  timers: /* @__PURE__ */ new Map(),
10
- counter: { current: 0 }
10
+ counter: { current: 0 },
11
+ defaultDuration: ref(SNACKBAR_GROUP_DEFAULT_DURATION)
11
12
  };
12
13
  STORES.set(id, store);
13
14
  }
@@ -44,7 +45,7 @@ export function useSnackbarGroup(options = {}) {
44
45
  };
45
46
  const notify = (opts) => {
46
47
  const itemId = generateId(state);
47
- const duration = opts.duration ?? options.defaultDuration ?? SNACKBAR_GROUP_DEFAULT_DURATION;
48
+ const duration = opts.duration ?? options.defaultDuration ?? state.defaultDuration.value;
48
49
  const item = {
49
50
  ...opts,
50
51
  id: itemId,
@@ -74,9 +75,13 @@ export function useSnackbarGroup(options = {}) {
74
75
  }
75
76
  export function useSnackbarGroupInternal(id = SNACKBAR_GROUP_DEFAULT_ID) {
76
77
  const state = getStore(id);
78
+ const registerDefaultDuration = (duration) => {
79
+ state.defaultDuration.value = duration;
80
+ };
77
81
  return {
78
82
  rawItems: state.items,
79
- itemCount: computed(() => state.items.value.length)
83
+ itemCount: computed(() => state.items.value.length),
84
+ registerDefaultDuration
80
85
  };
81
86
  }
82
87
  export function resetSnackbarGroupForTesting() {
@@ -34,7 +34,7 @@ export declare function useTheme(): {
34
34
  resolved: Readonly<Ref<TThemeResolved, TThemeResolved>>;
35
35
  setTheme: (next: TTheme) => void;
36
36
  toggle: () => void;
37
- mode: Readonly<Ref<TMode, TMode>>;
37
+ mode: Readonly<Ref<"auto" | "light" | "dark", "auto" | "light" | "dark">>;
38
38
  resolvedMode: Readonly<Ref<TModeResolved, TModeResolved>>;
39
39
  setMode: (next: TMode) => void;
40
40
  toggleMode: () => void;
@@ -26,7 +26,7 @@ function useCssTransition(props) {
26
26
  name,
27
27
  isDisabled
28
28
  } = useTransition(props);
29
- const tag = props.group ? (0, _vue.shallowRef)(_vue.TransitionGroup) : (0, _vue.shallowRef)(_vue.Transition);
29
+ const tag = (0, _vue.computed)(() => props.group ? _vue.TransitionGroup : _vue.Transition);
30
30
  const handleBeforeEnter = el => {
31
31
  if (props.origin) {
32
32
  el.style.transformOrigin = props.origin;
@@ -100,7 +100,7 @@ function useWindowTransition(props) {
100
100
  name,
101
101
  isDisabled
102
102
  } = useTransition(props);
103
- const tag = props.group ? (0, _vue.shallowRef)(_vue.TransitionGroup) : (0, _vue.shallowRef)(_vue.Transition);
103
+ const tag = (0, _vue.computed)(() => props.group ? _vue.TransitionGroup : _vue.Transition);
104
104
  const window = (0, _vue.inject)(_consts.ORIGAM_WINDOW_KEY);
105
105
  const isTransitioning = (0, _vue.shallowRef)(false);
106
106
  const handleAfterTransition = () => {