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
@@ -1,6 +1,43 @@
1
1
  import type { IMarginProps } from '../../interfaces';
2
2
  /*********************************************************
3
3
  * useMargin
4
+ *
5
+ * @description
6
+ * Precedence rule — SPECIFIC beats GLOBAL, always in this order, enforced
7
+ * purely by PUSH ORDER onto the `styles` array (later declarations win
8
+ * within the same inline `style` attribute — this holds even across
9
+ * logical vs physical property syntax for the same box edge). Mirrors
10
+ * `useBorder` / `usePadding` exactly:
11
+ *
12
+ * 1. global `margin` shorthand (1/2/4-value, logical properties)
13
+ * 2. logical-axis `marginBlock` / `marginInline`
14
+ * 3. physical per-side `marginTop` / `marginRight` / `marginBottom` /
15
+ * `marginLeft`
16
+ *
17
+ * So `marginBlock` beats `margin` for the top+bottom edges, and
18
+ * `marginTop` beats both `margin` and `marginBlock` for the top edge
19
+ * specifically.
20
+ *
21
+ * ⚠️ The 4-value `margin` shorthand distributes in the DS's
22
+ * **Haut/Gauche/Bas/Droite** order, NOT the CSS clockwise order — an
23
+ * intentional convention arbitrated in issue #216 (see
24
+ * `formatMarginStylesVar`). The per-side props exist precisely so a
25
+ * consumer never has to know that.
26
+ *
27
+ * NOTE ON THE UTILITY CLASSES — the scale steps
28
+ * (`SPACING_SCALE_STEPS`) are mirrored by global utility classes
29
+ * (`.origam--m-0` … `.origam--m-12`) that a STRING value opts into
30
+ * (`margin="4"` → `var(--origam-space---4)`); the NUMBER form keeps its
31
+ * legacy raw-pixel meaning (`margin={4}` → `4px`). Axis-specific
32
+ * utilities (`mx`, `my`, `mt`, …) do NOT exist in the manifest, so the
33
+ * directional props resolve through the INLINE-STYLE path below.
34
+ *
35
+ * (An earlier version of this comment claimed `marginTop` / `marginInline`
36
+ * "continue to fall through to the inline style path until Phase 1.5
37
+ * lands". That was false in a way worth naming: no such path existed —
38
+ * the props were parsed by nothing at all and emitted nothing. They now
39
+ * genuinely do fall through to the inline path, which is what rungs 2
40
+ * and 3 below implement.)
4
41
  ********************************************************/
5
42
  export declare function useMargin(props: IMarginProps, name?: string): {
6
43
  marginClasses: import("vue").ComputedRef<string[]>;
@@ -1,20 +1,8 @@
1
1
  import { computed } from "vue";
2
- import { MARGIN_REGEX } from "../../consts/index.js";
3
- import { convertToUnit, formatMarginStylesVar, getCurrentInstanceName } from "../../utils/index.js";
4
- const UTILITY_MARGIN_SCALE = /* @__PURE__ */ new Set([
5
- "0",
6
- "1",
7
- "2",
8
- "3",
9
- "4",
10
- "5",
11
- "6",
12
- "8",
13
- "10",
14
- "12"
15
- ]);
2
+ import { MARGIN_LOGICAL_AXIS_MAP, MARGIN_POSITION_MAP, MARGIN_REGEX, SPACING_SCALE_STEPS } from "../../consts/index.js";
3
+ import { convertToUnit, formatMarginStylesVar, getCurrentInstanceName, resolveSpacingValue } from "../../utils/index.js";
16
4
  function isUtilityMarginScale(value) {
17
- return typeof value === "string" && UTILITY_MARGIN_SCALE.has(value);
5
+ return typeof value === "string" && SPACING_SCALE_STEPS.includes(value);
18
6
  }
19
7
  export function useMargin(props, name = getCurrentInstanceName()) {
20
8
  const marginClasses = computed(() => {
@@ -31,18 +19,27 @@ export function useMargin(props, name = getCurrentInstanceName()) {
31
19
  const marginStyles = computed(() => {
32
20
  const margin = props.margin;
33
21
  const styles = [];
34
- if (isUtilityMarginScale(margin)) return styles;
35
- if (typeof margin === "string" && margin !== "") {
36
- const match = MARGIN_REGEX.exec(margin)?.groups;
37
- if (match) {
38
- Object.keys(match).forEach((key) => {
39
- const values = String(match[key]).split(" ");
40
- styles.push(...formatMarginStylesVar(values));
41
- });
22
+ if (!isUtilityMarginScale(margin)) {
23
+ if (typeof margin === "string" && margin !== "") {
24
+ const match = MARGIN_REGEX.exec(margin)?.groups;
25
+ if (match) {
26
+ Object.keys(match).forEach((key) => {
27
+ const values = String(match[key]).split(" ");
28
+ styles.push(...formatMarginStylesVar(values));
29
+ });
30
+ }
31
+ } else if (typeof margin === "number") {
32
+ styles.push(`margin: ${convertToUnit(margin)}`);
42
33
  }
43
- } else if (typeof margin === "number") {
44
- styles.push(`margin: ${convertToUnit(margin)}`);
45
34
  }
35
+ MARGIN_LOGICAL_AXIS_MAP.forEach(({ axis, prop }) => {
36
+ const resolved = resolveSpacingValue(props[prop]);
37
+ if (resolved) styles.push(`margin-${axis}: ${resolved}`);
38
+ });
39
+ MARGIN_POSITION_MAP.forEach(({ side, prop }) => {
40
+ const resolved = resolveSpacingValue(props[prop]);
41
+ if (resolved) styles.push(`margin-${side}: ${resolved}`);
42
+ });
46
43
  return styles;
47
44
  });
48
45
  return {
@@ -7,9 +7,8 @@ exports.usePadding = usePadding;
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_PADDING_SCALE = /* @__PURE__ */new Set(["0", "1", "2", "3", "4", "5", "6", "8", "10", "12"]);
11
10
  function isUtilityPaddingScale(value) {
12
- return typeof value === "string" && UTILITY_PADDING_SCALE.has(value);
11
+ return typeof value === "string" && _consts.SPACING_SCALE_STEPS.includes(value);
13
12
  }
14
13
  function usePadding(props, name = (0, _utils.getCurrentInstanceName)()) {
15
14
  const paddingClasses = (0, _vue.computed)(() => {
@@ -26,18 +25,33 @@ function usePadding(props, name = (0, _utils.getCurrentInstanceName)()) {
26
25
  const paddingStyles = (0, _vue.computed)(() => {
27
26
  const padding = props.padding;
28
27
  const styles = [];
29
- if (isUtilityPaddingScale(padding)) return styles;
30
- if (typeof padding === "string" && padding !== "") {
31
- const match = _consts.PADDING_REGEX.exec(padding)?.groups;
32
- if (match) {
33
- Object.keys(match).forEach(key => {
34
- const values = String(match[key]).split(" ");
35
- styles.push(...(0, _utils.formatPaddingStylesVar)(values));
36
- });
28
+ if (!isUtilityPaddingScale(padding)) {
29
+ if (typeof padding === "string" && padding !== "") {
30
+ const match = _consts.PADDING_REGEX.exec(padding)?.groups;
31
+ if (match) {
32
+ Object.keys(match).forEach(key => {
33
+ const values = String(match[key]).split(" ");
34
+ styles.push(...(0, _utils.formatPaddingStylesVar)(values));
35
+ });
36
+ }
37
+ } else if (typeof padding === "number") {
38
+ styles.push(`padding: ${(0, _utils.convertToUnit)(padding)}`);
37
39
  }
38
- } else if (typeof padding === "number") {
39
- styles.push(`padding: ${(0, _utils.convertToUnit)(padding)}`);
40
40
  }
41
+ _consts.PADDING_LOGICAL_AXIS_MAP.forEach(({
42
+ axis,
43
+ prop
44
+ }) => {
45
+ const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
46
+ if (resolved) styles.push(`padding-${axis}: ${resolved}`);
47
+ });
48
+ _consts.PADDING_POSITION_MAP.forEach(({
49
+ side,
50
+ prop
51
+ }) => {
52
+ const resolved = (0, _utils.resolveSpacingValue)(props[prop]);
53
+ if (resolved) styles.push(`padding-${side}: ${resolved}`);
54
+ });
41
55
  return styles;
42
56
  });
43
57
  return {
@@ -1,6 +1,32 @@
1
1
  import type { IPaddingProps } from '../../interfaces';
2
2
  /*********************************************************
3
3
  * usePadding
4
+ *
5
+ * @description
6
+ * Precedence rule — SPECIFIC beats GLOBAL, always in this order, enforced
7
+ * purely by PUSH ORDER onto the `styles` array (later declarations win
8
+ * within the same inline `style` attribute — this holds even across
9
+ * logical vs physical property syntax for the same box edge). Mirrors
10
+ * `useBorder`'s table exactly, so the three spacing-ish surfaces
11
+ * (border / padding / margin) share ONE grammar:
12
+ *
13
+ * 1. global `padding` shorthand (1/2/4-value, logical properties)
14
+ * 2. logical-axis `paddingBlock` / `paddingInline`
15
+ * 3. physical per-side `paddingTop` / `paddingRight` / `paddingBottom` /
16
+ * `paddingLeft`
17
+ *
18
+ * So `paddingBlock` beats `padding` for the top+bottom edges, and
19
+ * `paddingTop` beats both `padding` and `paddingBlock` for the top edge
20
+ * specifically — each rung only overrides the edge(s) it actually
21
+ * targets, everything else keeps cascading from the rung below.
22
+ *
23
+ * ⚠️ The 4-value `padding` shorthand distributes in the DS's
24
+ * **Haut/Gauche/Bas/Droite** order, NOT the CSS clockwise order — an
25
+ * intentional convention arbitrated in issue #216 (see
26
+ * `formatPaddingStylesVar`). The per-side props exist precisely so a
27
+ * consumer never has to know that: `paddingLeft="8px"` is unambiguous.
28
+ *
29
+ * Accepted per-side value forms are documented on `resolveSpacingValue`.
4
30
  ********************************************************/
5
31
  export declare function usePadding(props: IPaddingProps, name?: string): {
6
32
  paddingClasses: import("vue").ComputedRef<string[]>;
@@ -1,20 +1,8 @@
1
1
  import { computed } from "vue";
2
- import { PADDING_REGEX } from "../../consts/index.js";
3
- import { convertToUnit, formatPaddingStylesVar, getCurrentInstanceName } from "../../utils/index.js";
4
- const UTILITY_PADDING_SCALE = /* @__PURE__ */ new Set([
5
- "0",
6
- "1",
7
- "2",
8
- "3",
9
- "4",
10
- "5",
11
- "6",
12
- "8",
13
- "10",
14
- "12"
15
- ]);
2
+ import { PADDING_LOGICAL_AXIS_MAP, PADDING_POSITION_MAP, PADDING_REGEX, SPACING_SCALE_STEPS } from "../../consts/index.js";
3
+ import { convertToUnit, formatPaddingStylesVar, getCurrentInstanceName, resolveSpacingValue } from "../../utils/index.js";
16
4
  function isUtilityPaddingScale(value) {
17
- return typeof value === "string" && UTILITY_PADDING_SCALE.has(value);
5
+ return typeof value === "string" && SPACING_SCALE_STEPS.includes(value);
18
6
  }
19
7
  export function usePadding(props, name = getCurrentInstanceName()) {
20
8
  const paddingClasses = computed(() => {
@@ -31,18 +19,27 @@ export function usePadding(props, name = getCurrentInstanceName()) {
31
19
  const paddingStyles = computed(() => {
32
20
  const padding = props.padding;
33
21
  const styles = [];
34
- if (isUtilityPaddingScale(padding)) return styles;
35
- if (typeof padding === "string" && padding !== "") {
36
- const match = PADDING_REGEX.exec(padding)?.groups;
37
- if (match) {
38
- Object.keys(match).forEach((key) => {
39
- const values = String(match[key]).split(" ");
40
- styles.push(...formatPaddingStylesVar(values));
41
- });
22
+ if (!isUtilityPaddingScale(padding)) {
23
+ if (typeof padding === "string" && padding !== "") {
24
+ const match = PADDING_REGEX.exec(padding)?.groups;
25
+ if (match) {
26
+ Object.keys(match).forEach((key) => {
27
+ const values = String(match[key]).split(" ");
28
+ styles.push(...formatPaddingStylesVar(values));
29
+ });
30
+ }
31
+ } else if (typeof padding === "number") {
32
+ styles.push(`padding: ${convertToUnit(padding)}`);
42
33
  }
43
- } else if (typeof padding === "number") {
44
- styles.push(`padding: ${convertToUnit(padding)}`);
45
34
  }
35
+ PADDING_LOGICAL_AXIS_MAP.forEach(({ axis, prop }) => {
36
+ const resolved = resolveSpacingValue(props[prop]);
37
+ if (resolved) styles.push(`padding-${axis}: ${resolved}`);
38
+ });
39
+ PADDING_POSITION_MAP.forEach(({ side, prop }) => {
40
+ const resolved = resolveSpacingValue(props[prop]);
41
+ if (resolved) styles.push(`padding-${side}: ${resolved}`);
42
+ });
46
43
  return styles;
47
44
  });
48
45
  return {
@@ -1,5 +1,50 @@
1
1
  import type { IFilterPropsOptions } from "../../interfaces";
2
2
  /*********************************************************
3
3
  * useProps
4
+ *
5
+ * ## The template-ref forwarding pattern, and its one-tick delta
6
+ *
7
+ * 39 components (68 call sites, re-derive with
8
+ * grep -rlE "Ref\.value\??\.filterProps" packages/ds/src/components/
9
+ * ) forward their resolved props to an INTERNAL ROOT component through that
10
+ * child's own exposed `filterProps`, reached via a TEMPLATE REF:
11
+ *
12
+ * const childRef = ref<TOrigamChild>()
13
+ * const childProps = computed(() => childRef.value?.filterProps(props, […]))
14
+ *
15
+ * A template ref is `undefined` during the first render — it is assigned while
16
+ * that very render is being patched. So render 1 binds NOTHING and the child
17
+ * paints with its OWN resolved value; assigning the ref invalidates the
18
+ * computed, and render 2 delivers the parent's. Before ADR-005's theme-props
19
+ * resolver landed, the parent's value often never arrived at all, so the
20
+ * mismatch was PERMANENT and read as an ordinary bug; the resolver turned it
21
+ * into a one-tick transient.
22
+ *
23
+ * ## Measured: the transient is real, and it is NOT observable
24
+ *
25
+ * The delta is real. Reading `wrapper.html()` synchronously after `mount()`
26
+ * and again after `nextTick()` differs on 13 of the 16 sampled mountable
27
+ * components (Switch, TextField, Checkbox, Radio, Select, NumberField,
28
+ * PasswordField, RatingField, TextareaField, FileField, Carousel, ColorPicker,
29
+ * DatePicker; Btn, Field and SliderField are stable). On OrigamSwitch the
30
+ * difference is one class: `origam-input--density-default` (the child's own
31
+ * themed value) becomes `origam-input--density-compact` (the parent's).
32
+ *
33
+ * It is nevertheless invisible, because Vue flushes the invalidated re-render
34
+ * on a MICROTASK, and the browser paints only at the end of a task — after the
35
+ * microtask checkpoint. Measured in Chromium against the built Histoire with a
36
+ * per-animation-frame sampler (rAF callbacks run immediately before that
37
+ * frame's paint, so the sample sequence IS the sequence a user could see):
38
+ * 10 cold loads × 40 frames = 400 painted frames of the OrigamSwitch root,
39
+ * sampling both the density class and `offsetHeight` (density moves geometry).
40
+ * Every one of the 400: `compact@76`. Zero frames carried the stale value, and
41
+ * the height never jumped.
42
+ *
43
+ * ⛔ So do NOT refactor these 68 sites to avoid the template ref on
44
+ * "flash" grounds — there is no flash to fix, and the change would touch 39
45
+ * components at once. If you have a DIFFERENT reason to move off template refs
46
+ * (SSR, or a `watch`/`computed` in a consumer observing the intermediate
47
+ * value, which IS reachable unlike the paint), state that reason: it is not
48
+ * this one.
4
49
  ********************************************************/
5
50
  export declare function useProps<T extends Record<string, any>>(props: T): IFilterPropsOptions<T>;
@@ -7,9 +7,8 @@ exports.useRounded = useRounded;
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_ROUNDED = /* @__PURE__ */new Set(["none", "xs", "sm", "md", "lg", "xl", "full"]);
11
10
  function isUtilityRounded(value) {
12
- return typeof value === "string" && UTILITY_ROUNDED.has(value);
11
+ return typeof value === "string" && Object.hasOwn(_consts.UTILITY_RADIUS_FALLBACK, value);
13
12
  }
14
13
  function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
15
14
  const roundedClasses = (0, _vue.computed)(() => {
@@ -30,33 +29,15 @@ function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
30
29
  }
31
30
  return classes;
32
31
  });
33
- const NAMED_RADIUS_TOKEN = {
34
- "x-small": "var(--origam-radius---xs, 2px)",
35
- "small": "var(--origam-radius---sm, 4px)",
36
- "default": "var(--origam-radius---md, 8px)",
37
- "medium": "var(--origam-radius---lg, 12px)",
38
- "large": "var(--origam-radius---xl, 16px)",
39
- "x-large": "var(--origam-radius---2xl, 24px)"
40
- };
41
- const UTILITY_RADIUS_FALLBACK = {
42
- none: "0",
43
- xs: "2px",
44
- sm: "4px",
45
- md: "8px",
46
- lg: "12px",
47
- xl: "16px",
48
- full: "9999px"
49
- };
50
- const roundedStyles = (0, _vue.computed)(() => {
51
- const rounded = (0, _vue.isRef)(props) ? props.value : props.rounded;
32
+ const shorthandStyles = rounded => {
52
33
  const styles = [];
53
34
  if (rounded == null || rounded === false) return styles;
54
35
  if (isUtilityRounded(rounded)) {
55
- styles.push(`border-radius: var(--origam-radius---${rounded}, ${UTILITY_RADIUS_FALLBACK[rounded]})`);
36
+ styles.push(`border-radius: var(--origam-radius---${rounded}, ${_consts.UTILITY_RADIUS_FALLBACK[rounded]})`);
56
37
  return styles;
57
38
  }
58
39
  if (typeof rounded === "string" && _consts.PREDEFINED_ROUNDED.includes(rounded) && rounded !== "shaped" && rounded !== "shaped-invert") {
59
- const token = NAMED_RADIUS_TOKEN[rounded];
40
+ const token = _consts.NAMED_RADIUS_TOKEN[rounded];
60
41
  if (token) styles.push(`border-radius: ${token}`);
61
42
  return styles;
62
43
  }
@@ -78,6 +59,20 @@ function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
78
59
  styles.push(`border-radius: ${(0, _utils.convertToUnit)(rounded)}`);
79
60
  }
80
61
  return styles;
62
+ };
63
+ const roundedStyles = (0, _vue.computed)(() => {
64
+ const rounded = (0, _vue.isRef)(props) ? props.value : props.rounded;
65
+ const styles = shorthandStyles(rounded);
66
+ if (!(0, _vue.isRef)(props)) {
67
+ _consts.ROUNDED_CORNER_MAP.forEach(({
68
+ corner,
69
+ prop
70
+ }) => {
71
+ const resolved = (0, _utils.resolveRoundedCornerValue)(props[prop]);
72
+ if (resolved) styles.push(`border-${corner}-radius: ${resolved}`);
73
+ });
74
+ }
75
+ return styles;
81
76
  });
82
77
  return {
83
78
  roundedClasses,
@@ -1,30 +1,48 @@
1
1
  import { Ref } from 'vue';
2
2
  import type { IRoundedProps } from '../../interfaces';
3
3
  import type { TRounded } from '../../types';
4
- /**
4
+ /*********************************************************
5
+ * useRounded
6
+ *
7
+ * @description
5
8
  * Resolve the consumer's `rounded` prop into either a class (named variant
6
9
  * or legacy boolean) or an inline `border-radius` declaration (free-form
7
- * CSS value). Mirrors the origam-design-system implementation but uses a
8
- * static `PREDEFINED_ROUNDED` whitelist instead of the origam
9
- * theme-driven `useTheme().current.value.variables.rounded`, since origam
10
- * ships its radius rungs as fixed primitive tokens.
10
+ * CSS value), then layer the per-corner overrides on top.
11
+ *
12
+ * Precedence rule — SPECIFIC beats GLOBAL, enforced by PUSH ORDER onto the
13
+ * `styles` array (later declarations win within the same inline `style`
14
+ * attribute — this holds even across logical vs physical corner syntax for
15
+ * the same corner). Mirrors `useBorder` / `usePadding` / `useMargin`:
16
+ *
17
+ * 1. global `rounded` (utility rung, named variant, legacy boolean, or
18
+ * free-form 1/4-value CSS)
19
+ * 2. per-corner `roundedTopLeft` / `roundedTopRight` /
20
+ * `roundedBottomLeft` / `roundedBottomRight`
11
21
  *
12
- * Behaviour matrix:
22
+ * So `roundedTopLeft="0"` beats `rounded="lg"` for the top-left corner
23
+ * only; the other three keep the `lg` rung.
24
+ *
25
+ * ⚠️ The per-corner props are only reachable through the PROPS-OBJECT
26
+ * overload. The `Ref` overload carries a single scalar — the `rounded`
27
+ * shorthand — by construction, so a caller that needs the corners must
28
+ * pass an object (see `useStateEffect`, which builds a `reactive` getter
29
+ * bag for exactly this reason).
30
+ *
31
+ * Behaviour matrix for the shorthand:
13
32
  *
14
33
  * | `rounded` value | output |
15
34
  * |---------------------------|---------------------------------------------|
16
35
  * | unset / `false` / `null` | nothing — component default radius wins |
17
- * | `'small'`, `'large'`, … | class `${name}--rounded-${value}` |
36
+ * | `'small'`, `'large'`, … | class `${name}--rounded-${value}` + token |
18
37
  * | `true` or `''` | class `${name}--rounded` (legacy) |
19
38
  * | `4` (number) | inline `border-radius: 4px` |
20
39
  * | `'4px'` | inline `border-radius: 4px` |
21
40
  * | `'4px 0 4px 0'` | inline 4-corner radii |
22
41
  *
23
42
  * Free-form strings are parsed by `BORDER_RADIUS_REGEX`. Anything that
24
- * doesn't match is silently dropped (no inline style emitted).
25
- */
26
- /*********************************************************
27
- * useRounded
43
+ * doesn't match (and isn't a `var()`/`calc()`) is silently dropped.
44
+ * Accepted per-corner value forms are documented on
45
+ * `resolveRoundedCornerValue`.
28
46
  ********************************************************/
29
47
  export declare function useRounded(props: IRoundedProps | Ref<boolean | number | string | TRounded | null | undefined>, name?: string): {
30
48
  roundedClasses: import("vue").ComputedRef<string[]>;
@@ -1,17 +1,20 @@
1
1
  import { computed, isRef } from "vue";
2
- import { BORDER_RADIUS_REGEX, PREDEFINED_ROUNDED } from "../../consts/index.js";
3
- import { convertToUnit, formatRoundedStylesVar, getCurrentInstanceName, isCustomBorderRadius } from "../../utils/index.js";
4
- const UTILITY_ROUNDED = /* @__PURE__ */ new Set([
5
- "none",
6
- "xs",
7
- "sm",
8
- "md",
9
- "lg",
10
- "xl",
11
- "full"
12
- ]);
2
+ import {
3
+ BORDER_RADIUS_REGEX,
4
+ NAMED_RADIUS_TOKEN,
5
+ PREDEFINED_ROUNDED,
6
+ ROUNDED_CORNER_MAP,
7
+ UTILITY_RADIUS_FALLBACK
8
+ } from "../../consts/index.js";
9
+ import {
10
+ convertToUnit,
11
+ formatRoundedStylesVar,
12
+ getCurrentInstanceName,
13
+ isCustomBorderRadius,
14
+ resolveRoundedCornerValue
15
+ } from "../../utils/index.js";
13
16
  function isUtilityRounded(value) {
14
- return typeof value === "string" && UTILITY_ROUNDED.has(value);
17
+ return typeof value === "string" && Object.hasOwn(UTILITY_RADIUS_FALLBACK, value);
15
18
  }
16
19
  export function useRounded(props, name = getCurrentInstanceName()) {
17
20
  const roundedClasses = computed(() => {
@@ -32,25 +35,7 @@ export function useRounded(props, name = getCurrentInstanceName()) {
32
35
  }
33
36
  return classes;
34
37
  });
35
- const NAMED_RADIUS_TOKEN = {
36
- "x-small": "var(--origam-radius---xs, 2px)",
37
- "small": "var(--origam-radius---sm, 4px)",
38
- "default": "var(--origam-radius---md, 8px)",
39
- "medium": "var(--origam-radius---lg, 12px)",
40
- "large": "var(--origam-radius---xl, 16px)",
41
- "x-large": "var(--origam-radius---2xl, 24px)"
42
- };
43
- const UTILITY_RADIUS_FALLBACK = {
44
- none: "0",
45
- xs: "2px",
46
- sm: "4px",
47
- md: "8px",
48
- lg: "12px",
49
- xl: "16px",
50
- full: "9999px"
51
- };
52
- const roundedStyles = computed(() => {
53
- const rounded = isRef(props) ? props.value : props.rounded;
38
+ const shorthandStyles = (rounded) => {
54
39
  const styles = [];
55
40
  if (rounded == null || rounded === false) return styles;
56
41
  if (isUtilityRounded(rounded)) {
@@ -80,6 +65,17 @@ export function useRounded(props, name = getCurrentInstanceName()) {
80
65
  styles.push(`border-radius: ${convertToUnit(rounded)}`);
81
66
  }
82
67
  return styles;
68
+ };
69
+ const roundedStyles = computed(() => {
70
+ const rounded = isRef(props) ? props.value : props.rounded;
71
+ const styles = shorthandStyles(rounded);
72
+ if (!isRef(props)) {
73
+ ROUNDED_CORNER_MAP.forEach(({ corner, prop }) => {
74
+ const resolved = resolveRoundedCornerValue(props[prop]);
75
+ if (resolved) styles.push(`border-${corner}-radius: ${resolved}`);
76
+ });
77
+ }
78
+ return styles;
83
79
  });
84
80
  return {
85
81
  roundedClasses,
@@ -144,7 +144,23 @@ function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState
144
144
  const {
145
145
  roundedClasses,
146
146
  roundedStyles
147
- } = (0, _rounded.useRounded)(rounded);
147
+ } = (0, _rounded.useRounded)((0, _vue.reactive)({
148
+ get rounded() {
149
+ return rounded.value;
150
+ },
151
+ get roundedTopLeft() {
152
+ return props.roundedTopLeft;
153
+ },
154
+ get roundedTopRight() {
155
+ return props.roundedTopRight;
156
+ },
157
+ get roundedBottomLeft() {
158
+ return props.roundedBottomLeft;
159
+ },
160
+ get roundedBottomRight() {
161
+ return props.roundedBottomRight;
162
+ }
163
+ }));
148
164
  const {
149
165
  elevationClasses,
150
166
  elevationStyles
@@ -155,6 +171,24 @@ function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState
155
171
  } = (0, _padding.usePadding)((0, _vue.reactive)({
156
172
  get padding() {
157
173
  return padding.value;
174
+ },
175
+ get paddingTop() {
176
+ return props.paddingTop;
177
+ },
178
+ get paddingRight() {
179
+ return props.paddingRight;
180
+ },
181
+ get paddingBottom() {
182
+ return props.paddingBottom;
183
+ },
184
+ get paddingLeft() {
185
+ return props.paddingLeft;
186
+ },
187
+ get paddingBlock() {
188
+ return props.paddingBlock;
189
+ },
190
+ get paddingInline() {
191
+ return props.paddingInline;
158
192
  }
159
193
  }));
160
194
  const {
@@ -163,6 +197,24 @@ function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState
163
197
  } = (0, _margin.useMargin)((0, _vue.reactive)({
164
198
  get margin() {
165
199
  return margin.value;
200
+ },
201
+ get marginTop() {
202
+ return props.marginTop;
203
+ },
204
+ get marginRight() {
205
+ return props.marginRight;
206
+ },
207
+ get marginBottom() {
208
+ return props.marginBottom;
209
+ },
210
+ get marginLeft() {
211
+ return props.marginLeft;
212
+ },
213
+ get marginBlock() {
214
+ return props.marginBlock;
215
+ },
216
+ get marginInline() {
217
+ return props.marginInline;
166
218
  }
167
219
  }));
168
220
  const gapStyles = (0, _vue.computed)(() => {
@@ -1,9 +1,6 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
- import type { IActiveState, IBgColorProps, IBorderProps, IColorProps, IElevationProps, IHoverState, IMarginProps, IPaddingProps, IRoundedProps } from '../../interfaces';
3
- import type { TColor } from '../../types';
4
- type TStateEffectProps = IColorProps & IBgColorProps & IBorderProps & IRoundedProps & IElevationProps & IPaddingProps & IMarginProps & {
5
- gap?: boolean | number | string;
6
- };
2
+ import type { IActiveState, IHoverState } from '../../interfaces';
3
+ import type { TColor, TStateEffectProps } from '../../types';
7
4
  /*********************************************************
8
5
  * useStateEffect
9
6
  ********************************************************/
@@ -38,4 +35,3 @@ flat?: Ref<boolean> | ComputedRef<boolean>): {
38
35
  gapClasses: ComputedRef<string[]>;
39
36
  gapStyles: ComputedRef<string[]>;
40
37
  };
41
- export {};