origam 2.5.0 → 2.6.2

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 (532) hide show
  1. package/dist/src/assets/css/tokens/dark.css +3788 -3768
  2. package/dist/src/assets/css/tokens/light.css +1894 -1884
  3. package/dist/src/assets/css/tokens/primitive.css +2 -0
  4. package/dist/src/assets/css/tokens/themes-all.css +44226 -0
  5. package/dist/src/assets/locales/en.json +34 -2
  6. package/dist/src/assets/locales/fr.json +34 -2
  7. package/dist/src/assets/scss/tokens/_dark.scss +1894 -1884
  8. package/dist/src/assets/scss/tokens/_light.scss +1894 -1884
  9. package/dist/src/assets/scss/tokens/_primitive.scss +2 -0
  10. package/dist/src/assets/scss/tokens/_themes-all.scss +44241 -0
  11. package/dist/src/components/Alert/OrigamAlert.vue +16 -21
  12. package/dist/src/components/App/OrigamApp.vue +7 -38
  13. package/dist/src/components/App/OrigamAppBar.vue +35 -17
  14. package/dist/src/components/Audio/OrigamAudio.vue +77 -6
  15. package/dist/src/components/Avatar/OrigamAvatar.vue +11 -9
  16. package/dist/src/components/Avatar/OrigamAvatarGroup.vue +26 -8
  17. package/dist/src/components/Badge/OrigamBadge.vue +13 -3
  18. package/dist/src/components/Blockquote/OrigamBlockquote.vue +137 -13
  19. package/dist/src/components/BottomNav/OrigamBottomNav.vue +34 -4
  20. package/dist/src/components/Bracket/OrigamBracket.vue +386 -64
  21. package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +190 -13
  22. package/dist/src/components/Bracket/OrigamBracketMatch.vue +197 -42
  23. package/dist/src/components/Bracket/OrigamBracketRound.vue +11 -3
  24. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +14 -12
  25. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +4 -1
  26. package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +3 -5
  27. package/dist/src/components/Btn/OrigamBtn.vue +69 -30
  28. package/dist/src/components/Btn/OrigamBtnGroup.vue +33 -7
  29. package/dist/src/components/Btn/OrigamBtnToggle.vue +4 -7
  30. package/dist/src/components/Calendar/OrigamCalendar.vue +785 -658
  31. package/dist/src/components/Card/OrigamCard.vue +24 -3
  32. package/dist/src/components/Card/OrigamCardHeader.vue +17 -3
  33. package/dist/src/components/Card/OrigamCardText.vue +29 -7
  34. package/dist/src/components/Carousel/OrigamCarousel.vue +29 -9
  35. package/dist/src/components/Carousel/OrigamCarouselItem.vue +2 -2
  36. package/dist/src/components/Chart/OrigamChart.vue +3 -1
  37. package/dist/src/components/Chart/OrigamChartAxis.vue +1 -1
  38. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +7 -3
  39. package/dist/src/components/Chart/OrigamChartBullet.vue +7 -3
  40. package/dist/src/components/Chart/OrigamChartCandlestick.vue +7 -3
  41. package/dist/src/components/Chart/OrigamChartCartesian.vue +14 -10
  42. package/dist/src/components/Chart/OrigamChartGauge.vue +7 -3
  43. package/dist/src/components/Chart/OrigamChartHeatmap.vue +7 -3
  44. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +7 -3
  45. package/dist/src/components/Chart/OrigamChartLegend.vue +1 -2
  46. package/dist/src/components/Chart/OrigamChartMap.vue +7 -3
  47. package/dist/src/components/Chart/OrigamChartPareto.vue +7 -3
  48. package/dist/src/components/Chart/OrigamChartPictorial.vue +9 -6
  49. package/dist/src/components/Chart/OrigamChartPolar.vue +13 -6
  50. package/dist/src/components/Chart/OrigamChartPolarBar.vue +7 -3
  51. package/dist/src/components/Chart/OrigamChartPyramid.vue +7 -3
  52. package/dist/src/components/Chart/OrigamChartRadar.vue +7 -5
  53. package/dist/src/components/Chart/OrigamChartRangeSelector.vue +3 -4
  54. package/dist/src/components/Chart/OrigamChartSankey.vue +7 -3
  55. package/dist/src/components/Chart/OrigamChartSparkline.vue +5 -3
  56. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +9 -5
  57. package/dist/src/components/Chart/OrigamChartSunburst.vue +7 -3
  58. package/dist/src/components/Chart/OrigamChartTooltip.vue +1 -1
  59. package/dist/src/components/Chart/OrigamChartTreemap.vue +7 -3
  60. package/dist/src/components/Chart/OrigamChartVariwide.vue +7 -3
  61. package/dist/src/components/Chart/OrigamChartWordCloud.vue +3 -2
  62. package/dist/src/components/Checkbox/OrigamCheckbox.vue +18 -3
  63. package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +4 -2
  64. package/dist/src/components/Chip/OrigamChip.vue +25 -12
  65. package/dist/src/components/Chip/OrigamChipGroup.vue +5 -5
  66. package/dist/src/components/ClientOnly/OrigamClientOnly.vue +1 -1
  67. package/dist/src/components/Clipboard/OrigamClipboard.vue +12 -4
  68. package/dist/src/components/Code/OrigamCode.vue +144 -39
  69. package/dist/src/components/ColorPicker/OrigamColorPicker.vue +7 -2
  70. package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +3 -2
  71. package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +2 -2
  72. package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -1
  73. package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -1
  74. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +15 -5
  75. package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +13 -3
  76. package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +1 -1
  77. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +7 -2
  78. package/dist/src/components/Counter/OrigamCounter.vue +2 -1
  79. package/dist/src/components/DataList/OrigamDataList.vue +21 -5
  80. package/dist/src/components/DataList/OrigamDataText.vue +5 -1
  81. package/dist/src/components/DataList/OrigamDataTitle.vue +5 -1
  82. package/dist/src/components/DataTable/OrigamDataTable.vue +15 -7
  83. package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +1 -1
  84. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +1 -1
  85. package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -1
  86. package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +3 -2
  87. package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -1
  88. package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +1 -1
  89. package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
  90. package/dist/src/components/DataTable/OrigamDataTableRow.vue +5 -3
  91. package/dist/src/components/DataTable/OrigamDataTableRows.vue +3 -3
  92. package/dist/src/components/DatePicker/OrigamDatePicker.vue +21 -30
  93. package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +2 -2
  94. package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +1 -1
  95. package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +16 -28
  96. package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +3 -3
  97. package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +3 -3
  98. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +27 -16
  99. package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +1 -1
  100. package/dist/src/components/Dialog/OrigamDialog.vue +1 -1
  101. package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
  102. package/dist/src/components/Divider/OrigamDivider.vue +2 -2
  103. package/dist/src/components/Drawer/OrigamDrawer.vue +5 -11
  104. package/dist/src/components/EmptyState/OrigamEmptyState.vue +14 -4
  105. package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +12 -2
  106. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +4 -2
  107. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +14 -5
  108. package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +2 -1
  109. package/dist/src/components/Field/OrigamField.vue +26 -9
  110. package/dist/src/components/FileField/OrigamFileField.vue +8 -3
  111. package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +14 -4
  112. package/dist/src/components/FileField/OrigamFileFieldListItem.vue +14 -4
  113. package/dist/src/components/Form/OrigamForm.vue +10 -2
  114. package/dist/src/components/Grid/OrigamGrid.vue +1 -1
  115. package/dist/src/components/Grid/OrigamGridItem.vue +1 -1
  116. package/dist/src/components/Grids/OrigamCol.vue +1 -1
  117. package/dist/src/components/Grids/OrigamContainer.vue +1 -1
  118. package/dist/src/components/Grids/OrigamRow.vue +6 -2
  119. package/dist/src/components/Grids/OrigamSpacer.vue +1 -1
  120. package/dist/src/components/Icon/OrigamClassIcon.vue +1 -1
  121. package/dist/src/components/Icon/OrigamComponentIcon.vue +1 -1
  122. package/dist/src/components/Icon/OrigamIcon.vue +1 -1
  123. package/dist/src/components/Icon/OrigamLigatureIcon.vue +1 -1
  124. package/dist/src/components/Icon/OrigamSvgIcon.vue +2 -2
  125. package/dist/src/components/Img/OrigamImg.vue +10 -9
  126. package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +14 -7
  127. package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +3 -2
  128. package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +13 -4
  129. package/dist/src/components/Input/OrigamInput.vue +17 -3
  130. package/dist/src/components/ItemGroup/OrigamItem.vue +1 -1
  131. package/dist/src/components/ItemGroup/OrigamItemGroup.vue +1 -1
  132. package/dist/src/components/Kbd/OrigamKbd.vue +18 -8
  133. package/dist/src/components/Label/OrigamLabel.vue +14 -3
  134. package/dist/src/components/Layout/OrigamLayout.vue +1 -1
  135. package/dist/src/components/Lazy/OrigamLazy.vue +1 -1
  136. package/dist/src/components/List/OrigamList.vue +1 -1
  137. package/dist/src/components/List/OrigamListChildren.vue +1 -1
  138. package/dist/src/components/List/OrigamListGroup.vue +4 -1
  139. package/dist/src/components/List/OrigamListGroupActivator.vue +1 -1
  140. package/dist/src/components/List/OrigamListItem.vue +14 -4
  141. package/dist/src/components/List/OrigamListSubheader.vue +13 -3
  142. package/dist/src/components/Loader/OrigamLoader.vue +1 -1
  143. package/dist/src/components/Main/OrigamMain.vue +1 -1
  144. package/dist/src/components/Masonry/OrigamMasonry.vue +2 -2
  145. package/dist/src/components/Media/OrigamMediaController.vue +1 -1
  146. package/dist/src/components/Media/OrigamMediaScrubber.vue +3 -2
  147. package/dist/src/components/Media/OrigamMediaVolumeControl.vue +3 -2
  148. package/dist/src/components/Menu/OrigamMenu.vue +9 -2
  149. package/dist/src/components/Messages/OrigamMessages.vue +13 -4
  150. package/dist/src/components/NumberField/OrigamNumberField.vue +80 -40
  151. package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +1 -1
  152. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +107 -11
  153. package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
  154. package/dist/src/components/Overlay/OrigamOverlayScrim.vue +1 -1
  155. package/dist/src/components/Pagination/OrigamPagination.vue +16 -4
  156. package/dist/src/components/Parallax/OrigamParallax.vue +9 -2
  157. package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -1
  158. package/dist/src/components/Parallax/OrigamParallaxLayer.vue +2 -2
  159. package/dist/src/components/PasswordField/OrigamPasswordField.vue +9 -2
  160. package/dist/src/components/Picker/OrigamPicker.vue +8 -3
  161. package/dist/src/components/Picker/OrigamPickerTitle.vue +10 -3
  162. package/dist/src/components/Progress/OrigamProgress.vue +6 -3
  163. package/dist/src/components/Progress/OrigamProgressCircular.vue +3 -1
  164. package/dist/src/components/Progress/OrigamProgressLinear.vue +5 -6
  165. package/dist/src/components/{QRCode → QrCode}/OrigamQrCode.vue +1 -1
  166. package/dist/src/components/QrCode/index.d.ts +1 -0
  167. package/dist/src/components/Radio/OrigamRadio.vue +20 -11
  168. package/dist/src/components/Radio/OrigamRadioBtn.vue +4 -2
  169. package/dist/src/components/Radio/OrigamRadioGroup.vue +48 -41
  170. package/dist/src/components/RatingField/OrigamRatingField.vue +9 -13
  171. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +3 -6
  172. package/dist/src/components/Responsive/OrigamResponsive.vue +1 -1
  173. package/dist/src/components/Section/OrigamSection.vue +1 -1
  174. package/dist/src/components/Select/OrigamSelect.vue +19 -10
  175. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +12 -6
  176. package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +2 -2
  177. package/dist/src/components/Sheet/OrigamSheet.vue +11 -3
  178. package/dist/src/components/Skeleton/OrigamSkeleton.vue +2 -4
  179. package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
  180. package/dist/src/components/SliderField/OrigamSliderField.vue +7 -6
  181. package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -1
  182. package/dist/src/components/Snackbar/OrigamSnackbar.vue +5 -4
  183. package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +1 -1
  184. package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +27 -26
  185. package/dist/src/components/Stepper/OrigamStepper.vue +6 -2
  186. package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -3
  187. package/dist/src/components/Switch/OrigamSwitch.vue +35 -37
  188. package/dist/src/components/Switch/OrigamSwitchTrack.vue +9 -15
  189. package/dist/src/components/SystemBar/OrigamSystemBar.vue +14 -4
  190. package/dist/src/components/Table/OrigamTable.vue +15 -3
  191. package/dist/src/components/Tabs/OrigamTab.vue +13 -3
  192. package/dist/src/components/Tabs/OrigamTabPanel.vue +1 -1
  193. package/dist/src/components/Tabs/OrigamTabPanels.vue +1 -1
  194. package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
  195. package/dist/src/components/TextField/OrigamTextField.vue +8 -1
  196. package/dist/src/components/TextMask/OrigamTextMask.vue +17 -27
  197. package/dist/src/components/TextareaField/OrigamRichToolbar.vue +15 -11
  198. package/dist/src/components/TextareaField/OrigamTextareaField.vue +11 -1
  199. package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +4 -1
  200. package/dist/src/components/Timeline/OrigamTimeline.vue +3 -3
  201. package/dist/src/components/Timeline/OrigamTimelineItem.vue +3 -1
  202. package/dist/src/components/Title/OrigamTitle.vue +20 -8
  203. package/dist/src/components/Toolbar/OrigamToolbar.vue +17 -5
  204. package/dist/src/components/Tooltip/OrigamTooltip.vue +12 -3
  205. package/dist/src/components/Transition/OrigamExpandX.vue +1 -1
  206. package/dist/src/components/Transition/OrigamExpandY.vue +1 -1
  207. package/dist/src/components/Transition/OrigamFade.vue +1 -1
  208. package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +1 -1
  209. package/dist/src/components/Transition/OrigamScaleRotate.vue +1 -1
  210. package/dist/src/components/Transition/OrigamSlideX.vue +1 -1
  211. package/dist/src/components/Transition/OrigamSlideY.vue +1 -1
  212. package/dist/src/components/Transition/OrigamSnack.vue +1 -1
  213. package/dist/src/components/Transition/OrigamTransition.vue +1 -1
  214. package/dist/src/components/Transition/OrigamTranslateBottom.vue +1 -1
  215. package/dist/src/components/Transition/OrigamTranslatePicker.vue +1 -1
  216. package/dist/src/components/Transition/OrigamTranslateScale.vue +1 -1
  217. package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +1 -1
  218. package/dist/src/components/Transition/OrigamWindowXTranslate.vue +1 -1
  219. package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +1 -1
  220. package/dist/src/components/Transition/OrigamWindowYTranslate.vue +1 -1
  221. package/dist/src/components/Treeview/OrigamTreeview.vue +1 -1
  222. package/dist/src/components/Treeview/OrigamTreeviewNode.vue +7 -5
  223. package/dist/src/components/Video/OrigamVideo.vue +56 -63
  224. package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +1 -1
  225. package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +1 -6
  226. package/dist/src/components/Watermark/OrigamWatermark.vue +1 -1
  227. package/dist/src/components/Window/OrigamWindow.vue +32 -2
  228. package/dist/src/components/Window/OrigamWindowItem.vue +1 -1
  229. package/dist/src/components/index.cjs +1 -1
  230. package/dist/src/components/index.js +1 -1
  231. package/dist/src/composables/Chart/chart-gauge.composable.cjs +1 -1
  232. package/dist/src/composables/Chart/chart-gauge.composable.js +1 -1
  233. package/dist/src/composables/Chart/chart-header-typography.composable.cjs +20 -0
  234. package/dist/src/composables/Chart/chart-header-typography.composable.d.ts +27 -0
  235. package/dist/src/composables/Chart/chart-header-typography.composable.js +11 -0
  236. package/dist/src/composables/Chart/chart-zoom.composable.cjs +0 -1
  237. package/dist/src/composables/Chart/chart-zoom.composable.js +0 -1
  238. package/dist/src/composables/Chart/chart.composable.cjs +0 -11
  239. package/dist/src/composables/Chart/chart.composable.js +0 -11
  240. package/dist/src/composables/Code/code.composable.js +4 -1
  241. package/dist/src/composables/Commons/audio.composable.d.ts +97 -31
  242. package/dist/src/composables/Commons/border.composable.cjs +10 -0
  243. package/dist/src/composables/Commons/border.composable.js +7 -0
  244. package/dist/src/composables/Commons/color.composable.cjs +42 -42
  245. package/dist/src/composables/Commons/color.composable.d.ts +8 -3
  246. package/dist/src/composables/Commons/color.composable.js +2 -2
  247. package/dist/src/composables/Commons/date-picker-calendar.composable.cjs +1 -1
  248. package/dist/src/composables/Commons/date-picker-calendar.composable.d.ts +1 -1
  249. package/dist/src/composables/Commons/date-picker-calendar.composable.js +1 -1
  250. package/dist/src/composables/Commons/defaults.composable.cjs +10 -9
  251. package/dist/src/composables/Commons/defaults.composable.js +10 -9
  252. package/dist/src/composables/Commons/delay.composable.cjs +8 -3
  253. package/dist/src/composables/Commons/delay.composable.js +7 -4
  254. package/dist/src/composables/Commons/density.composable.cjs +1 -1
  255. package/dist/src/composables/Commons/density.composable.js +2 -2
  256. package/dist/src/composables/Commons/dragResizer.composable.cjs +7 -9
  257. package/dist/src/composables/Commons/dragResizer.composable.js +8 -9
  258. package/dist/src/composables/Commons/focus.composable.cjs +1 -1
  259. package/dist/src/composables/Commons/focus.composable.js +1 -1
  260. package/dist/src/composables/Commons/layout.composable.cjs +12 -0
  261. package/dist/src/composables/Commons/layout.composable.js +14 -0
  262. package/dist/src/composables/Commons/message.composable.cjs +1 -1
  263. package/dist/src/composables/Commons/message.composable.d.ts +1 -1
  264. package/dist/src/composables/Commons/message.composable.js +1 -1
  265. package/dist/src/composables/Commons/rounded.composable.cjs +15 -4
  266. package/dist/src/composables/Commons/rounded.composable.d.ts +1 -1
  267. package/dist/src/composables/Commons/rounded.composable.js +17 -6
  268. package/dist/src/composables/Commons/scroll.composable.cjs +2 -2
  269. package/dist/src/composables/Commons/scroll.composable.js +2 -2
  270. package/dist/src/composables/Commons/size.composable.d.ts +1 -1
  271. package/dist/src/composables/Commons/stateEffect.composable.cjs +36 -14
  272. package/dist/src/composables/Commons/stateEffect.composable.js +38 -14
  273. package/dist/src/composables/Commons/status.composable.cjs +11 -1
  274. package/dist/src/composables/Commons/status.composable.d.ts +2 -0
  275. package/dist/src/composables/Commons/status.composable.js +10 -1
  276. package/dist/src/composables/Commons/sticky.composable.d.ts +2 -14
  277. package/dist/src/composables/Commons/style.composable.cjs +5 -3
  278. package/dist/src/composables/Commons/style.composable.js +5 -3
  279. package/dist/src/composables/Commons/typography.composable.cjs +23 -0
  280. package/dist/src/composables/Commons/typography.composable.d.ts +7 -0
  281. package/dist/src/composables/Commons/typography.composable.js +21 -0
  282. package/dist/src/composables/DataTable/headers.composable.d.ts +4 -364
  283. package/dist/src/composables/Icon/icon.composable.cjs +6 -1
  284. package/dist/src/composables/Icon/icon.composable.js +4 -1
  285. package/dist/src/composables/InlineEdit/inline-edit.composable.cjs +16 -2
  286. package/dist/src/composables/InlineEdit/inline-edit.composable.js +16 -2
  287. package/dist/src/composables/Masonry/masonry.composable.d.ts +2 -1
  288. package/dist/src/composables/Parallax/transform.composable.d.ts +1 -1
  289. package/dist/src/composables/Responsive/aspect.composable.cjs +9 -1
  290. package/dist/src/composables/Responsive/aspect.composable.d.ts +1 -1
  291. package/dist/src/composables/Responsive/aspect.composable.js +9 -1
  292. package/dist/src/composables/Theme/installed-themes.composable.cjs +11 -0
  293. package/dist/src/composables/Theme/installed-themes.composable.d.ts +19 -0
  294. package/dist/src/composables/Theme/installed-themes.composable.js +5 -0
  295. package/dist/src/composables/Theme/theme.composable.cjs +86 -15
  296. package/dist/src/composables/Theme/theme.composable.d.ts +55 -10
  297. package/dist/src/composables/Theme/theme.composable.js +88 -17
  298. package/dist/src/composables/index.cjs +36 -0
  299. package/dist/src/composables/index.d.ts +3 -0
  300. package/dist/src/composables/index.js +3 -0
  301. package/dist/src/consts/Bracket/bracket.const.cjs +4 -2
  302. package/dist/src/consts/Bracket/bracket.const.d.ts +12 -0
  303. package/dist/src/consts/Bracket/bracket.const.js +2 -0
  304. package/dist/src/consts/Commons/density.const.cjs +2 -2
  305. package/dist/src/consts/Commons/density.const.d.ts +1 -1
  306. package/dist/src/consts/Commons/density.const.js +1 -1
  307. package/dist/src/consts/Commons/rounded.const.cjs +4 -2
  308. package/dist/src/consts/Commons/rounded.const.d.ts +22 -2
  309. package/dist/src/consts/Commons/rounded.const.js +3 -1
  310. package/dist/src/consts/DataTable/select.const.cjs +1 -1
  311. package/dist/src/consts/DataTable/select.const.js +1 -1
  312. package/dist/src/consts/Icon/mdi.const.cjs +6 -1
  313. package/dist/src/consts/Icon/mdi.const.js +10 -2
  314. package/dist/src/consts/Theme/theme.const.cjs +11 -1
  315. package/dist/src/consts/Theme/theme.const.d.ts +16 -0
  316. package/dist/src/consts/Theme/theme.const.js +10 -0
  317. package/dist/src/directives/Contrast/contrast.directive.cjs +150 -0
  318. package/dist/src/directives/Contrast/contrast.directive.d.ts +5 -0
  319. package/dist/src/directives/Contrast/contrast.directive.js +131 -0
  320. package/dist/src/directives/index.cjs +7 -0
  321. package/dist/src/directives/index.d.ts +1 -0
  322. package/dist/src/directives/index.js +1 -0
  323. package/dist/src/enums/BottomNav/bottom-nav-position.enum.cjs +12 -0
  324. package/dist/src/enums/BottomNav/bottom-nav-position.enum.d.ts +10 -0
  325. package/dist/src/enums/BottomNav/bottom-nav-position.enum.js +6 -0
  326. package/dist/src/enums/Toolbar/toolbar.enum.cjs +1 -0
  327. package/dist/src/enums/Toolbar/toolbar.enum.d.ts +2 -1
  328. package/dist/src/enums/Toolbar/toolbar.enum.js +1 -0
  329. package/dist/src/enums/index.cjs +22 -0
  330. package/dist/src/enums/index.d.ts +2 -0
  331. package/dist/src/enums/index.js +2 -0
  332. package/dist/src/interfaces/Alert/alert.interface.d.ts +2 -3
  333. package/dist/src/interfaces/App/app-bar.interface.d.ts +19 -1
  334. package/dist/src/interfaces/App/app.interface.cjs +1 -0
  335. package/dist/src/interfaces/App/app.interface.d.ts +24 -0
  336. package/dist/src/interfaces/Audio/audio-player.interface.d.ts +23 -2
  337. package/dist/src/interfaces/Avatar/avatar.interface.d.ts +2 -4
  338. package/dist/src/interfaces/Badge/badge.interface.d.ts +2 -2
  339. package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +23 -21
  340. package/dist/src/interfaces/BottomNav/bottom-nav.interface.d.ts +12 -4
  341. package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +17 -6
  342. package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +13 -6
  343. package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +22 -0
  344. package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +2 -2
  345. package/dist/src/interfaces/Bracket/bracket.interface.d.ts +17 -2
  346. package/dist/src/interfaces/Breadcrumb/breadcrumb-divider.interface.d.ts +2 -2
  347. package/dist/src/interfaces/Breadcrumb/breadcrumb.interface.d.ts +2 -3
  348. package/dist/src/interfaces/Btn/btn-group.interface.d.ts +2 -2
  349. package/dist/src/interfaces/Btn/btn.interface.d.ts +11 -3
  350. package/dist/src/interfaces/Calendar/calendar.interface.d.ts +7 -2
  351. package/dist/src/interfaces/Card/card-header.interface.d.ts +2 -2
  352. package/dist/src/interfaces/Card/card-text.interface.d.ts +2 -2
  353. package/dist/src/interfaces/Carousel/carousel.interface.d.ts +2 -2
  354. package/dist/src/interfaces/Chart/chart-base.interface.d.ts +9 -8
  355. package/dist/src/interfaces/Chart/chart-word-cloud.interface.d.ts +1 -1
  356. package/dist/src/interfaces/Chart/chart.interface.d.ts +12 -1
  357. package/dist/src/interfaces/Checkbox/checkbox-btn.interface.d.ts +3 -3
  358. package/dist/src/interfaces/Checkbox/checkbox.interface.d.ts +10 -9
  359. package/dist/src/interfaces/Chip/chip-group.interface.d.ts +3 -1
  360. package/dist/src/interfaces/Chip/chip.interface.d.ts +2 -2
  361. package/dist/src/interfaces/Clipboard/clipboard.interface.d.ts +2 -2
  362. package/dist/src/interfaces/Code/code.interface.d.ts +19 -2
  363. package/dist/src/interfaces/ColorPickerField/color-picker-field.interface.d.ts +2 -2
  364. package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +2 -1
  365. package/dist/src/interfaces/Commons/calendar.interface.d.ts +3 -3
  366. package/dist/src/interfaces/Commons/commons.interface.d.ts +34 -1
  367. package/dist/src/interfaces/Commons/filters.interface.d.ts +2 -2
  368. package/dist/src/interfaces/Commons/hover.interface.d.ts +18 -3
  369. package/dist/src/interfaces/Commons/scroll.interface.d.ts +8 -1
  370. package/dist/src/interfaces/Commons/typography.interface.cjs +1 -0
  371. package/dist/src/interfaces/Commons/typography.interface.d.ts +52 -0
  372. package/dist/src/interfaces/Commons/typography.interface.js +0 -0
  373. package/dist/src/interfaces/Commons/validation.interface.d.ts +3 -1
  374. package/dist/src/interfaces/Counter/counter.interface.d.ts +2 -2
  375. package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -2
  376. package/dist/src/interfaces/DataList/data-text.interface.d.ts +5 -0
  377. package/dist/src/interfaces/DataList/data-title.interface.d.ts +5 -0
  378. package/dist/src/interfaces/DataTable/headers.interface.d.ts +5 -5
  379. package/dist/src/interfaces/DataTable/row.interface.d.ts +2 -2
  380. package/dist/src/interfaces/DatePicker/date-picker-controls.interface.d.ts +16 -8
  381. package/dist/src/interfaces/DatePicker/date-picker-header.interface.d.ts +6 -3
  382. package/dist/src/interfaces/DatePicker/date-picker-months.interface.d.ts +2 -2
  383. package/dist/src/interfaces/DatePicker/date-picker-years.interface.d.ts +1 -1
  384. package/dist/src/interfaces/DatePicker/date-picker.interface.d.ts +1 -1
  385. package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
  386. package/dist/src/interfaces/EmptyState/empty-state.interface.d.ts +9 -2
  387. package/dist/src/interfaces/ExpensionPanel/expansion-panel-header.interface.d.ts +2 -2
  388. package/dist/src/interfaces/Field/field.interface.d.ts +7 -2
  389. package/dist/src/interfaces/FileField/file-field-dragndrop-item.interface.d.ts +2 -2
  390. package/dist/src/interfaces/FileField/file-field-list-item.interface.d.ts +2 -2
  391. package/dist/src/interfaces/FileField/file-field.interface.d.ts +1 -1
  392. package/dist/src/interfaces/Form/form.interface.d.ts +2 -2
  393. package/dist/src/interfaces/Grids/row.interface.d.ts +2 -2
  394. package/dist/src/interfaces/InfiniteScroll/infinite-scroll.interface.d.ts +2 -2
  395. package/dist/src/interfaces/InlineEdit/inline-edit.interface.d.ts +31 -2
  396. package/dist/src/interfaces/Input/input.interface.d.ts +4 -3
  397. package/dist/src/interfaces/Kbd/kbd.interface.d.ts +2 -2
  398. package/dist/src/interfaces/Label/label.interface.d.ts +2 -2
  399. package/dist/src/interfaces/List/list-group.interface.d.ts +4 -1
  400. package/dist/src/interfaces/List/list-item.interface.d.ts +2 -2
  401. package/dist/src/interfaces/List/list-subheader.interface.d.ts +2 -2
  402. package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +10 -2
  403. package/dist/src/interfaces/Messages/messages.interface.d.ts +2 -2
  404. package/dist/src/interfaces/NumberField/number-field.interface.d.ts +1 -1
  405. package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +55 -15
  406. package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +4 -2
  407. package/dist/src/interfaces/Pagination/pagination.interface.d.ts +18 -3
  408. package/dist/src/interfaces/Parallax/parallax.interface.d.ts +2 -2
  409. package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +1 -1
  410. package/dist/src/interfaces/Picker/picker-title.interface.d.ts +2 -2
  411. package/dist/src/interfaces/Progress/progress.interface.d.ts +8 -2
  412. package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +2 -1
  413. package/dist/src/interfaces/SelectionControl/selection-control-group.interface.d.ts +2 -1
  414. package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +23 -5
  415. package/dist/src/interfaces/Sheet/sheet.interface.d.ts +2 -2
  416. package/dist/src/interfaces/Snackbar/snackbar-item.interface.d.ts +2 -2
  417. package/dist/src/interfaces/SystemBar/system-bar.interface.d.ts +2 -2
  418. package/dist/src/interfaces/Table/table.interface.d.ts +2 -2
  419. package/dist/src/interfaces/Tabs/tab.interface.d.ts +7 -2
  420. package/dist/src/interfaces/TextField/text-field.interface.d.ts +1 -1
  421. package/dist/src/interfaces/TextMask/text-mask.interface.d.ts +7 -33
  422. package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +3 -3
  423. package/dist/src/interfaces/Theme/origam-theme.interface.cjs +1 -0
  424. package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +114 -0
  425. package/dist/src/interfaces/Theme/origam-theme.interface.js +0 -0
  426. package/dist/src/interfaces/Timeline/timeline.interface.d.ts +1 -1
  427. package/dist/src/interfaces/Title/title.interface.d.ts +2 -2
  428. package/dist/src/interfaces/Toolbar/toolbar.interface.d.ts +2 -2
  429. package/dist/src/interfaces/Tooltip/tooltip.interface.d.ts +2 -2
  430. package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
  431. package/dist/src/interfaces/Window/window.interface.d.ts +2 -2
  432. package/dist/src/interfaces/index.cjs +33 -0
  433. package/dist/src/interfaces/index.d.ts +3 -0
  434. package/dist/src/interfaces/index.js +3 -0
  435. package/dist/src/nuxt/module.cjs +78 -8
  436. package/dist/src/nuxt/module.js +81 -9
  437. package/dist/src/nuxt/plugin.client.cjs +28 -10
  438. package/dist/src/nuxt/plugin.client.js +28 -10
  439. package/dist/src/nuxt/plugin.server.cjs +52 -12
  440. package/dist/src/nuxt/plugin.server.js +55 -13
  441. package/dist/src/origam.cjs +39 -2
  442. package/dist/src/origam.d.ts +19 -1
  443. package/dist/src/origam.js +46 -5
  444. package/dist/src/services/Commons/date-adapter.service.d.ts +1 -1
  445. package/dist/src/themes/index.cjs +24 -0
  446. package/dist/src/themes/index.d.ts +1 -0
  447. package/dist/src/themes/index.js +1 -0
  448. package/dist/src/themes/origam.theme.cjs +906 -0
  449. package/dist/src/themes/origam.theme.d.ts +4 -0
  450. package/dist/src/themes/origam.theme.js +379 -0
  451. package/dist/src/types/BottomNav/bottom-nav.type.d.ts +2 -0
  452. package/dist/src/types/Commons/font-family.type.cjs +1 -0
  453. package/dist/src/types/Commons/font-family.type.d.ts +5 -0
  454. package/dist/src/types/Commons/font-family.type.js +0 -0
  455. package/dist/src/types/Commons/font-size.type.cjs +1 -0
  456. package/dist/src/types/Commons/font-size.type.d.ts +6 -0
  457. package/dist/src/types/Commons/font-size.type.js +0 -0
  458. package/dist/src/types/Commons/font-weight.type.cjs +1 -0
  459. package/dist/src/types/Commons/font-weight.type.d.ts +5 -0
  460. package/dist/src/types/Commons/font-weight.type.js +0 -0
  461. package/dist/src/types/Commons/letter-spacing.type.cjs +1 -0
  462. package/dist/src/types/Commons/letter-spacing.type.d.ts +5 -0
  463. package/dist/src/types/Commons/letter-spacing.type.js +0 -0
  464. package/dist/src/types/Commons/line-height.type.cjs +1 -0
  465. package/dist/src/types/Commons/line-height.type.d.ts +5 -0
  466. package/dist/src/types/Commons/line-height.type.js +0 -0
  467. package/dist/src/types/Commons/mode.type.d.ts +1 -1
  468. package/dist/src/types/Theme/installed-theme.type.cjs +1 -0
  469. package/dist/src/types/Theme/installed-theme.type.d.ts +31 -0
  470. package/dist/src/types/Theme/installed-theme.type.js +0 -0
  471. package/dist/src/types/Theme/semantic-tree.type.cjs +1 -0
  472. package/dist/src/types/Theme/semantic-tree.type.d.ts +48 -0
  473. package/dist/src/types/Theme/semantic-tree.type.js +0 -0
  474. package/dist/src/types/Theme/theme.type.d.ts +27 -6
  475. package/dist/src/types/Theme/token-tree.type.cjs +1 -0
  476. package/dist/src/types/Theme/token-tree.type.d.ts +10 -0
  477. package/dist/src/types/Theme/token-tree.type.js +0 -0
  478. package/dist/src/types/index.cjs +88 -0
  479. package/dist/src/types/index.d.ts +8 -0
  480. package/dist/src/types/index.js +8 -0
  481. package/dist/src/types/tokens.type.d.ts +1 -1
  482. package/dist/src/utils/Bracket/bracket-surface.util.cjs +106 -0
  483. package/dist/src/utils/Bracket/bracket-surface.util.d.ts +47 -0
  484. package/dist/src/utils/Bracket/bracket-surface.util.js +88 -0
  485. package/dist/src/utils/Commons/border.util.d.ts +1 -1
  486. package/dist/src/utils/Commons/color.util.cjs +4 -2
  487. package/dist/src/utils/Commons/color.util.js +4 -2
  488. package/dist/src/utils/Commons/commons.util.cjs +3 -2
  489. package/dist/src/utils/Commons/commons.util.d.ts +1 -1
  490. package/dist/src/utils/Commons/commons.util.js +3 -2
  491. package/dist/src/utils/Commons/date.util.d.ts +1 -1
  492. package/dist/src/utils/Commons/dom.util.d.ts +1 -1
  493. package/dist/src/utils/Commons/elevation.util.cjs +1 -1
  494. package/dist/src/utils/Commons/elevation.util.js +1 -1
  495. package/dist/src/utils/Commons/forwardRefs.util.cjs +1 -1
  496. package/dist/src/utils/Commons/forwardRefs.util.js +1 -1
  497. package/dist/src/utils/Commons/gradient.util.cjs +3 -3
  498. package/dist/src/utils/Commons/gradient.util.js +1 -1
  499. package/dist/src/utils/Commons/hover.util.cjs +5 -1
  500. package/dist/src/utils/Commons/hover.util.js +5 -1
  501. package/dist/src/utils/Commons/margin.util.d.ts +1 -1
  502. package/dist/src/utils/Commons/padding.util.d.ts +1 -1
  503. package/dist/src/utils/Commons/ripple.util.cjs +1 -2
  504. package/dist/src/utils/Commons/ripple.util.js +2 -3
  505. package/dist/src/utils/Commons/rounded.util.cjs +5 -0
  506. package/dist/src/utils/Commons/rounded.util.d.ts +10 -1
  507. package/dist/src/utils/Commons/rounded.util.js +4 -0
  508. package/dist/src/utils/DataTable/headers.util.cjs +1 -1
  509. package/dist/src/utils/DataTable/headers.util.js +1 -1
  510. package/dist/src/utils/DataTable/sort.util.cjs +2 -2
  511. package/dist/src/utils/DataTable/sort.util.js +2 -2
  512. package/dist/src/utils/List/list-item.util.d.ts +7 -0
  513. package/dist/src/utils/Theme/apply-theme.util.cjs +148 -0
  514. package/dist/src/utils/Theme/apply-theme.util.d.ts +65 -0
  515. package/dist/src/utils/Theme/apply-theme.util.js +125 -0
  516. package/dist/src/utils/Theme/token-name.util.cjs +47 -0
  517. package/dist/src/utils/Theme/token-name.util.d.ts +54 -0
  518. package/dist/src/utils/Theme/token-name.util.js +55 -0
  519. package/dist/src/utils/Transition/transition.util.d.ts +1 -1
  520. package/dist/src/utils/index.cjs +22 -0
  521. package/dist/src/utils/index.d.ts +2 -0
  522. package/dist/src/utils/index.js +2 -0
  523. package/package.json +22 -63
  524. package/CHANGELOG.md +0 -807
  525. package/README.md +0 -275
  526. package/dist/src/App.vue +0 -25
  527. package/dist/src/main.cjs +0 -7
  528. package/dist/src/main.d.ts +0 -1
  529. package/dist/src/main.js +0 -4
  530. /package/dist/src/components/{QRCode → QrCode}/index.cjs +0 -0
  531. /package/dist/src/components/{QRCode → QrCode}/index.js +0 -0
  532. /package/dist/src/{components/QRCode/index.d.ts → interfaces/App/app.interface.js} +0 -0
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useDelay = useDelay;
7
7
  var _utils = require("../../utils/index.cjs");
8
8
  function useDelay(props, cb) {
9
- let clearDelay = () => {};
9
+ const cancelRef = {
10
+ current: () => {}
11
+ };
10
12
  const runDelay = isOpening => {
11
- clearDelay?.();
13
+ cancelRef.current();
12
14
  const delay = Number(isOpening ? props.openDelay : props.closeDelay);
13
15
  return new Promise(resolve => {
14
- clearDelay = (0, _utils.defer)(delay, () => {
16
+ cancelRef.current = (0, _utils.defer)(delay, () => {
15
17
  cb?.(isOpening);
16
18
  resolve(isOpening);
17
19
  });
@@ -23,6 +25,9 @@ function useDelay(props, cb) {
23
25
  const runCloseDelay = () => {
24
26
  return runDelay(false);
25
27
  };
28
+ const clearDelay = () => {
29
+ cancelRef.current();
30
+ };
26
31
  return {
27
32
  clearDelay,
28
33
  runOpenDelay,
@@ -1,12 +1,12 @@
1
1
  import { defer } from "../../utils/index.js";
2
2
  export function useDelay(props, cb) {
3
- let clearDelay = () => {
4
- };
3
+ const cancelRef = { current: () => {
4
+ } };
5
5
  const runDelay = (isOpening) => {
6
- clearDelay?.();
6
+ cancelRef.current();
7
7
  const delay = Number(isOpening ? props.openDelay : props.closeDelay);
8
8
  return new Promise((resolve) => {
9
- clearDelay = defer(delay, () => {
9
+ cancelRef.current = defer(delay, () => {
10
10
  cb?.(isOpening);
11
11
  resolve(isOpening);
12
12
  });
@@ -18,6 +18,9 @@ export function useDelay(props, cb) {
18
18
  const runCloseDelay = () => {
19
19
  return runDelay(false);
20
20
  };
21
+ const clearDelay = () => {
22
+ cancelRef.current();
23
+ };
21
24
  return {
22
25
  clearDelay,
23
26
  runOpenDelay,
@@ -12,7 +12,7 @@ function useDensity(props, name = (0, _utils.getCurrentInstanceName)()) {
12
12
  const density = (0, _vue.isRef)(props) ? props.value : props.density;
13
13
  const classes = [];
14
14
  if (density == null) return classes;
15
- if (density && _consts.PREDIFINED_DENSITY.includes(density)) {
15
+ if (density && _consts.PREDEFINED_DENSITY.includes(density)) {
16
16
  classes.push(`${name}--density-${density}`);
17
17
  }
18
18
  return classes;
@@ -1,12 +1,12 @@
1
1
  import { computed, isRef } from "vue";
2
- import { PREDIFINED_DENSITY } from "../../consts/index.js";
2
+ import { PREDEFINED_DENSITY } from "../../consts/index.js";
3
3
  import { getCurrentInstanceName } from "../../utils/index.js";
4
4
  export function useDensity(props, name = getCurrentInstanceName()) {
5
5
  const densityClasses = computed(() => {
6
6
  const density = isRef(props) ? props.value : props.density;
7
7
  const classes = [];
8
8
  if (density == null) return classes;
9
- if (density && PREDIFINED_DENSITY.includes(density)) {
9
+ if (density && PREDEFINED_DENSITY.includes(density)) {
10
10
  classes.push(`${name}--density-${density}`);
11
11
  }
12
12
  return classes;
@@ -18,6 +18,10 @@ function useDragResizer(el, value, min, max, axis) {
18
18
  const isHorizontal = (0, _vue.computed)(() => {
19
19
  return axis === _enums.AXIS.X;
20
20
  });
21
+ const onDragEnd = () => {
22
+ removeListeners.forEach(fn => fn());
23
+ resizing.value = false;
24
+ };
21
25
  const onMouseDown = e => {
22
26
  e.preventDefault();
23
27
  e.stopPropagation();
@@ -29,10 +33,7 @@ function useDragResizer(el, value, min, max, axis) {
29
33
  const delta = clickOffset - start;
30
34
  value.value = (0, _utils.clamp)(initialStart + delta, min, max);
31
35
  };
32
- const onMouseUp = () => {
33
- removeListeners.forEach(fn => fn());
34
- resizing.value = false;
35
- };
36
+ const onMouseUp = onDragEnd;
36
37
  removeListeners.push(...[(0, _utils.addWindowListener)("mousemove", onMouseMove, onUnmountedCleanupFns), (0, _utils.addWindowListener)("mouseup", onMouseUp, onUnmountedCleanupFns)]);
37
38
  };
38
39
  const onTouchStart = e => {
@@ -46,11 +47,8 @@ function useDragResizer(el, value, min, max, axis) {
46
47
  const delta = clickOffset - start;
47
48
  value.value = Math.max(min, Math.min(max, initialStart + delta));
48
49
  };
49
- const onTouchEnd = () => {
50
- removeListeners.forEach(fn => fn());
51
- resizing.value = false;
52
- };
53
- removeListeners.push(...[(0, _utils.addWindowListener)("touchmove", onTouchMove, onUnmountedCleanupFns), (0, _utils.addWindowListener)("touchend touchcancel", onTouchEnd, onUnmountedCleanupFns)]);
50
+ const onTouchEnd = onDragEnd;
51
+ removeListeners.push(...[(0, _utils.addWindowListener)("touchmove", onTouchMove, onUnmountedCleanupFns), (0, _utils.addWindowListener)("touchend", onTouchEnd, onUnmountedCleanupFns), (0, _utils.addWindowListener)("touchcancel", onTouchEnd, onUnmountedCleanupFns)]);
54
52
  };
55
53
  if (el) {
56
54
  (0, _composables.useEventListener)(el, "mousedown", onMouseDown);
@@ -12,6 +12,10 @@ export function useDragResizer(el, value, min, max, axis) {
12
12
  const isHorizontal = computed(() => {
13
13
  return axis === AXIS.X;
14
14
  });
15
+ const onDragEnd = () => {
16
+ removeListeners.forEach((fn) => fn());
17
+ resizing.value = false;
18
+ };
15
19
  const onMouseDown = (e) => {
16
20
  e.preventDefault();
17
21
  e.stopPropagation();
@@ -23,10 +27,7 @@ export function useDragResizer(el, value, min, max, axis) {
23
27
  const delta = clickOffset - start;
24
28
  value.value = clamp(initialStart + delta, min, max);
25
29
  };
26
- const onMouseUp = () => {
27
- removeListeners.forEach((fn) => fn());
28
- resizing.value = false;
29
- };
30
+ const onMouseUp = onDragEnd;
30
31
  removeListeners.push(...[
31
32
  addWindowListener("mousemove", onMouseMove, onUnmountedCleanupFns),
32
33
  addWindowListener("mouseup", onMouseUp, onUnmountedCleanupFns)
@@ -43,13 +44,11 @@ export function useDragResizer(el, value, min, max, axis) {
43
44
  const delta = clickOffset - start;
44
45
  value.value = Math.max(min, Math.min(max, initialStart + delta));
45
46
  };
46
- const onTouchEnd = () => {
47
- removeListeners.forEach((fn) => fn());
48
- resizing.value = false;
49
- };
47
+ const onTouchEnd = onDragEnd;
50
48
  removeListeners.push(...[
51
49
  addWindowListener("touchmove", onTouchMove, onUnmountedCleanupFns),
52
- addWindowListener("touchend touchcancel", onTouchEnd, onUnmountedCleanupFns)
50
+ addWindowListener("touchend", onTouchEnd, onUnmountedCleanupFns),
51
+ addWindowListener("touchcancel", onTouchEnd, onUnmountedCleanupFns)
53
52
  ]);
54
53
  };
55
54
  if (el) {
@@ -8,7 +8,7 @@ var _vue = require("vue");
8
8
  var _composables = require("../../composables/index.cjs");
9
9
  var _utils = require("../../utils/index.cjs");
10
10
  function useFocus(props, name = (0, _utils.getCurrentInstanceName)()) {
11
- const isFocused = (0, _composables.useVModel)(props, "focused");
11
+ const isFocused = (0, _composables.useVModel)(props, "focused", false);
12
12
  const focusClasses = (0, _vue.computed)(() => {
13
13
  return {
14
14
  [`${name}--focused`]: isFocused.value
@@ -2,7 +2,7 @@ import { computed } from "vue";
2
2
  import { useVModel } from "../../composables/index.js";
3
3
  import { getCurrentInstanceName } from "../../utils/index.js";
4
4
  export function useFocus(props, name = getCurrentInstanceName()) {
5
- const isFocused = useVModel(props, "focused");
5
+ const isFocused = useVModel(props, "focused", false);
6
6
  const focusClasses = computed(() => {
7
7
  return {
8
8
  [`${name}--focused`]: isFocused.value
@@ -176,6 +176,18 @@ function useCreateLayout(props) {
176
176
  if (disableTransitions) {
177
177
  disabledTransitions.set(id, disableTransitions);
178
178
  }
179
+ const staleIds = registered.value.filter(existingId => existingId !== id && priorities.get(existingId)?.value === order.value && positions.get(existingId)?.value === position.value);
180
+ if (staleIds.length > 0) {
181
+ const staleSet = new Set(staleIds);
182
+ for (const staleId of staleIds) {
183
+ priorities.delete(staleId);
184
+ positions.delete(staleId);
185
+ layoutSizes.delete(staleId);
186
+ activeItems.delete(staleId);
187
+ disabledTransitions.delete(staleId);
188
+ }
189
+ registered.value = registered.value.filter(v => !staleSet.has(v));
190
+ }
179
191
  const instances = (0, _utils.findChildrenWithProvide)(_consts.ORIGAM_LAYOUT_KEY, rootVm?.vnode);
180
192
  const instanceIndex = instances.indexOf(vm);
181
193
  if (instanceIndex > -1) registered.value.splice(instanceIndex, 0, id);else registered.value.push(id);
@@ -162,6 +162,20 @@ export function useCreateLayout(props) {
162
162
  if (disableTransitions) {
163
163
  disabledTransitions.set(id, disableTransitions);
164
164
  }
165
+ const staleIds = registered.value.filter(
166
+ (existingId) => existingId !== id && priorities.get(existingId)?.value === order.value && positions.get(existingId)?.value === position.value
167
+ );
168
+ if (staleIds.length > 0) {
169
+ const staleSet = new Set(staleIds);
170
+ for (const staleId of staleIds) {
171
+ priorities.delete(staleId);
172
+ positions.delete(staleId);
173
+ layoutSizes.delete(staleId);
174
+ activeItems.delete(staleId);
175
+ disabledTransitions.delete(staleId);
176
+ }
177
+ registered.value = registered.value.filter((v) => !staleSet.has(v));
178
+ }
165
179
  const instances = findChildrenWithProvide(ORIGAM_LAYOUT_KEY, rootVm?.vnode);
166
180
  const instanceIndex = instances.indexOf(vm);
167
181
  if (instanceIndex > -1) registered.value.splice(instanceIndex, 0, id);
@@ -8,7 +8,7 @@ var _vue = require("vue");
8
8
  function useMessage(props, otherMessages = (0, _vue.ref)([])) {
9
9
  const $slots = (0, _vue.useSlots)();
10
10
  const hasMessages = (0, _vue.computed)(() => {
11
- return Boolean(props.messages) || Boolean(props.errorMessages) || Boolean(otherMessages.value) || $slots.message;
11
+ return Boolean(props.messages) || Boolean(props.errorMessages) || otherMessages.value.length > 0 || Boolean($slots.message);
12
12
  });
13
13
  const messages = (0, _vue.computed)(() => {
14
14
  if (props.errorMessages?.length || otherMessages.value.length) {
@@ -3,6 +3,6 @@ import { ComputedRef, Ref } from 'vue';
3
3
  * useMessage
4
4
  ********************************************************/
5
5
  export declare function useMessage(props: any, otherMessages?: Ref<Array<any>> | ComputedRef<Array<any>>): {
6
- hasMessages: ComputedRef<true | import("vue").Slot<any> | undefined>;
6
+ hasMessages: ComputedRef<boolean>;
7
7
  messages: ComputedRef<any>;
8
8
  };
@@ -2,7 +2,7 @@ import { computed, ref, useSlots } from "vue";
2
2
  export function useMessage(props, otherMessages = ref([])) {
3
3
  const $slots = useSlots();
4
4
  const hasMessages = computed(() => {
5
- return Boolean(props.messages) || Boolean(props.errorMessages) || Boolean(otherMessages.value) || $slots.message;
5
+ return Boolean(props.messages) || Boolean(props.errorMessages) || otherMessages.value.length > 0 || Boolean($slots.message);
6
6
  });
7
7
  const messages = computed(() => {
8
8
  if (props.errorMessages?.length || otherMessages.value.length) {
@@ -20,7 +20,7 @@ function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
20
20
  classes.push(`origam--rounded-${rounded}`);
21
21
  return classes;
22
22
  }
23
- if (typeof rounded === "string" && _consts.PREDIFINED_ROUNDED.includes(rounded)) {
23
+ if (typeof rounded === "string" && _consts.PREDEFINED_ROUNDED.includes(rounded)) {
24
24
  classes.push(`${name}--rounded-${rounded}`);
25
25
  return classes;
26
26
  }
@@ -38,20 +38,29 @@ function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
38
38
  "large": "var(--origam-radius---xl, 16px)",
39
39
  "x-large": "var(--origam-radius---2xl, 24px)"
40
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
+ };
41
50
  const roundedStyles = (0, _vue.computed)(() => {
42
51
  const rounded = (0, _vue.isRef)(props) ? props.value : props.rounded;
43
52
  const styles = [];
44
53
  if (rounded == null || rounded === false) return styles;
45
54
  if (isUtilityRounded(rounded)) {
46
- styles.push(`border-radius: var(--origam-radius---${rounded})`);
55
+ styles.push(`border-radius: var(--origam-radius---${rounded}, ${UTILITY_RADIUS_FALLBACK[rounded]})`);
47
56
  return styles;
48
57
  }
49
- if (typeof rounded === "string" && _consts.PREDIFINED_ROUNDED.includes(rounded) && rounded !== "shaped" && rounded !== "shaped-invert") {
58
+ if (typeof rounded === "string" && _consts.PREDEFINED_ROUNDED.includes(rounded) && rounded !== "shaped" && rounded !== "shaped-invert") {
50
59
  const token = NAMED_RADIUS_TOKEN[rounded];
51
60
  if (token) styles.push(`border-radius: ${token}`);
52
61
  return styles;
53
62
  }
54
- if (rounded === true || rounded === "") {
63
+ if (rounded === true || typeof rounded === "string" && rounded === "") {
55
64
  styles.push(`border-radius: var(--origam-radius---md, 8px)`);
56
65
  return styles;
57
66
  }
@@ -62,6 +71,8 @@ function useRounded(props, name = (0, _utils.getCurrentInstanceName)()) {
62
71
  const values = String(match[key]).split(" ");
63
72
  styles.push(...(0, _utils.formatRoundedStylesVar)(values));
64
73
  });
74
+ } else if ((0, _utils.isCustomBorderRadius)(rounded)) {
75
+ styles.push(`border-radius: ${rounded.trim()}`);
65
76
  }
66
77
  } else if (typeof rounded === "number") {
67
78
  styles.push(`border-radius: ${(0, _utils.convertToUnit)(rounded)}`);
@@ -5,7 +5,7 @@ import type { TRounded } from '../../types';
5
5
  * Resolve the consumer's `rounded` prop into either a class (named variant
6
6
  * or legacy boolean) or an inline `border-radius` declaration (free-form
7
7
  * CSS value). Mirrors the origam-design-system implementation but uses a
8
- * static `PREDIFINED_ROUNDED` whitelist instead of the origam
8
+ * static `PREDEFINED_ROUNDED` whitelist instead of the origam
9
9
  * theme-driven `useTheme().current.value.variables.rounded`, since origam
10
10
  * ships its radius rungs as fixed primitive tokens.
11
11
  *
@@ -1,6 +1,6 @@
1
1
  import { computed, isRef } from "vue";
2
- import { BORDER_RADIUS_REGEX, PREDIFINED_ROUNDED } from "../../consts/index.js";
3
- import { convertToUnit, formatRoundedStylesVar, getCurrentInstanceName } from "../../utils/index.js";
2
+ import { BORDER_RADIUS_REGEX, PREDEFINED_ROUNDED } from "../../consts/index.js";
3
+ import { convertToUnit, formatRoundedStylesVar, getCurrentInstanceName, isCustomBorderRadius } from "../../utils/index.js";
4
4
  const UTILITY_ROUNDED = /* @__PURE__ */ new Set([
5
5
  "none",
6
6
  "xs",
@@ -22,7 +22,7 @@ export function useRounded(props, name = getCurrentInstanceName()) {
22
22
  classes.push(`origam--rounded-${rounded}`);
23
23
  return classes;
24
24
  }
25
- if (typeof rounded === "string" && PREDIFINED_ROUNDED.includes(rounded)) {
25
+ if (typeof rounded === "string" && PREDEFINED_ROUNDED.includes(rounded)) {
26
26
  classes.push(`${name}--rounded-${rounded}`);
27
27
  return classes;
28
28
  }
@@ -40,20 +40,29 @@ export function useRounded(props, name = getCurrentInstanceName()) {
40
40
  "large": "var(--origam-radius---xl, 16px)",
41
41
  "x-large": "var(--origam-radius---2xl, 24px)"
42
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
+ };
43
52
  const roundedStyles = computed(() => {
44
53
  const rounded = isRef(props) ? props.value : props.rounded;
45
54
  const styles = [];
46
55
  if (rounded == null || rounded === false) return styles;
47
56
  if (isUtilityRounded(rounded)) {
48
- styles.push(`border-radius: var(--origam-radius---${rounded})`);
57
+ styles.push(`border-radius: var(--origam-radius---${rounded}, ${UTILITY_RADIUS_FALLBACK[rounded]})`);
49
58
  return styles;
50
59
  }
51
- if (typeof rounded === "string" && PREDIFINED_ROUNDED.includes(rounded) && rounded !== "shaped" && rounded !== "shaped-invert") {
60
+ if (typeof rounded === "string" && PREDEFINED_ROUNDED.includes(rounded) && rounded !== "shaped" && rounded !== "shaped-invert") {
52
61
  const token = NAMED_RADIUS_TOKEN[rounded];
53
62
  if (token) styles.push(`border-radius: ${token}`);
54
63
  return styles;
55
64
  }
56
- if (rounded === true || rounded === "") {
65
+ if (rounded === true || typeof rounded === "string" && rounded === "") {
57
66
  styles.push(`border-radius: var(--origam-radius---md, 8px)`);
58
67
  return styles;
59
68
  }
@@ -64,6 +73,8 @@ export function useRounded(props, name = getCurrentInstanceName()) {
64
73
  const values = String(match[key]).split(" ");
65
74
  styles.push(...formatRoundedStylesVar(values));
66
75
  });
76
+ } else if (isCustomBorderRadius(rounded)) {
77
+ styles.push(`border-radius: ${rounded.trim()}`);
67
78
  }
68
79
  } else if (typeof rounded === "number") {
69
80
  styles.push(`border-radius: ${convertToUnit(rounded)}`);
@@ -21,7 +21,7 @@ function useScroll(props, args = {}) {
21
21
  const isScrollActive = (0, _vue.shallowRef)(false);
22
22
  const isScrollingUp = (0, _vue.shallowRef)(false);
23
23
  const scrollThreshold = (0, _vue.computed)(() => {
24
- return Number(props.scrollThreshold);
24
+ return Number(props.scrollThreshold ?? 0);
25
25
  });
26
26
  const scrollRatio = (0, _vue.computed)(() => {
27
27
  return (0, _utils.clamp)((scrollThreshold.value - currentScroll.value) / scrollThreshold.value || 0);
@@ -30,7 +30,7 @@ function useScroll(props, args = {}) {
30
30
  const targetEl = target.value;
31
31
  if (!targetEl || canScroll && !canScroll.value) return;
32
32
  previousScroll = currentScroll.value;
33
- currentScroll.value = "window" in targetEl ? targetEl.pageYOffset : targetEl.scrollTop;
33
+ currentScroll.value = "window" in targetEl ? targetEl.scrollY : targetEl.scrollTop;
34
34
  isScrollingUp.value = currentScroll.value < previousScroll;
35
35
  currentThreshold.value = Math.abs(currentScroll.value - scrollThreshold.value);
36
36
  };
@@ -22,7 +22,7 @@ export function useScroll(props, args = {}) {
22
22
  const isScrollActive = shallowRef(false);
23
23
  const isScrollingUp = shallowRef(false);
24
24
  const scrollThreshold = computed(() => {
25
- return Number(props.scrollThreshold);
25
+ return Number(props.scrollThreshold ?? 0);
26
26
  });
27
27
  const scrollRatio = computed(() => {
28
28
  return clamp((scrollThreshold.value - currentScroll.value) / scrollThreshold.value || 0);
@@ -31,7 +31,7 @@ export function useScroll(props, args = {}) {
31
31
  const targetEl = target.value;
32
32
  if (!targetEl || canScroll && !canScroll.value) return;
33
33
  previousScroll = currentScroll.value;
34
- currentScroll.value = "window" in targetEl ? targetEl.pageYOffset : targetEl.scrollTop;
34
+ currentScroll.value = "window" in targetEl ? targetEl.scrollY : targetEl.scrollTop;
35
35
  isScrollingUp.value = currentScroll.value < previousScroll;
36
36
  currentThreshold.value = Math.abs(currentScroll.value - scrollThreshold.value);
37
37
  };
@@ -3,6 +3,6 @@ import type { ISizeProps } from "../../interfaces";
3
3
  * useSize
4
4
  ********************************************************/
5
5
  export declare function useSize(props: ISizeProps, name?: string): {
6
- sizeStyles: import("vue").ComputedRef<never[]>;
6
+ sizeStyles: import("vue").ComputedRef<string[]>;
7
7
  sizeClasses: import("vue").ComputedRef<string[]>;
8
8
  };
@@ -13,25 +13,37 @@ var _rounded = require("./rounded.composable.cjs");
13
13
  var _utils = require("../../utils/index.cjs");
14
14
  function pickEffective(rest, isHover, isActive, hoverState, activeState, key) {
15
15
  return (0, _vue.computed)(() => {
16
- if (isActive.value && activeState.value?.[key] != null) {
17
- return activeState.value[key];
18
- }
19
16
  if (isHover.value && hoverState.value?.[key] != null) {
20
17
  return hoverState.value[key];
21
18
  }
22
- return rest;
19
+ if (isActive.value && activeState.value?.[key] != null) {
20
+ return activeState.value[key];
21
+ }
22
+ return rest();
23
23
  });
24
24
  }
25
25
  const noopRef = (0, _vue.computed)(() => false);
26
26
  function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState = (0, _vue.computed)(() => void 0), activeState = (0, _vue.computed)(() => void 0), isDisabled = noopRef, flat = noopRef) {
27
- const color = pickEffective(props.color, isHover, isActive, hoverState, activeState, "color");
28
- const bgColor = pickEffective(props.bgColor, isHover, isActive, hoverState, activeState, "bgColor");
29
- const border = pickEffective(props.border, isHover, isActive, hoverState, activeState, "border");
30
- const rounded = pickEffective(props.rounded, isHover, isActive, hoverState, activeState, "rounded");
31
- const elevation = pickEffective(props.elevation, isHover, isActive, hoverState, activeState, "elevation");
32
- const padding = pickEffective(props.padding, isHover, isActive, hoverState, activeState, "padding");
33
- const margin = pickEffective(props.margin, isHover, isActive, hoverState, activeState, "margin");
34
- const gap = pickEffective(props.gap, isHover, isActive, hoverState, activeState, "gap");
27
+ const statusToIntent = {
28
+ success: "success",
29
+ info: "info",
30
+ warning: "warning",
31
+ error: "danger"
32
+ };
33
+ const statusIntent = (0, _vue.computed)(() => {
34
+ const status = props.status;
35
+ return status ? statusToIntent[status] ?? status : void 0;
36
+ });
37
+ const baseColor = pickEffective(() => props.color, isHover, isActive, hoverState, activeState, "color");
38
+ const baseBgColor = pickEffective(() => props.bgColor, isHover, isActive, hoverState, activeState, "bgColor");
39
+ const color = (0, _vue.computed)(() => statusIntent.value ? void 0 : baseColor.value);
40
+ const bgColor = (0, _vue.computed)(() => statusIntent.value ?? baseBgColor.value);
41
+ const border = pickEffective(() => props.border, isHover, isActive, hoverState, activeState, "border");
42
+ const rounded = pickEffective(() => props.rounded, isHover, isActive, hoverState, activeState, "rounded");
43
+ const elevation = pickEffective(() => props.elevation, isHover, isActive, hoverState, activeState, "elevation");
44
+ const padding = pickEffective(() => props.padding, isHover, isActive, hoverState, activeState, "padding");
45
+ const margin = pickEffective(() => props.margin, isHover, isActive, hoverState, activeState, "margin");
46
+ const gap = pickEffective(() => props.gap, isHover, isActive, hoverState, activeState, "gap");
35
47
  const sameIntent = (a, b) => {
36
48
  return !!a && !!b && a === b && (0, _utils.isIntent)(a);
37
49
  };
@@ -48,7 +60,7 @@ function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState
48
60
  void isDisabled.value;
49
61
  const hoverHasOwnBg = hoverState.value?.bgColor != null && !sameIntent(hoverState.value.bgColor, props.bgColor);
50
62
  const activeHasOwnBg = activeState.value?.bgColor != null && !sameIntent(activeState.value.bgColor, props.bgColor);
51
- const bgRole = isActive.value && !activeHasOwnBg ? "active" : isHover.value && !hoverHasOwnBg ? "hover" : "default";
63
+ const bgRole = isHover.value && !hoverHasOwnBg ? "hover" : isActive.value && !activeHasOwnBg ? "active" : "default";
52
64
  let bgDecl = null;
53
65
  let fgDecl = null;
54
66
  let bgIntentFg = null;
@@ -88,7 +100,17 @@ function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState
88
100
  const {
89
101
  borderClasses,
90
102
  borderStyles
91
- } = (0, _border.useBorder)(border);
103
+ } = (0, _border.useBorder)((0, _vue.reactive)({
104
+ get border() {
105
+ return border.value;
106
+ },
107
+ get borderColor() {
108
+ return props.borderColor;
109
+ },
110
+ get borderStyle() {
111
+ return props.borderStyle;
112
+ }
113
+ }));
92
114
  const {
93
115
  roundedClasses,
94
116
  roundedStyles
@@ -19,26 +19,38 @@ import {
19
19
  } from "../../utils/index.js";
20
20
  function pickEffective(rest, isHover, isActive, hoverState, activeState, key) {
21
21
  return computed(() => {
22
- if (isActive.value && activeState.value?.[key] != null) {
23
- return activeState.value[key];
24
- }
25
22
  if (isHover.value && hoverState.value?.[key] != null) {
26
23
  return hoverState.value[key];
27
24
  }
28
- return rest;
25
+ if (isActive.value && activeState.value?.[key] != null) {
26
+ return activeState.value[key];
27
+ }
28
+ return rest();
29
29
  });
30
30
  }
31
31
  const noopRef = computed(() => false);
32
32
  export function useStateEffect(props, isHover = noopRef, isActive = noopRef, hoverState = computed(() => void 0), activeState = computed(() => void 0), isDisabled = noopRef, flat = noopRef) {
33
- const color = pickEffective(props.color, isHover, isActive, hoverState, activeState, "color");
34
- const bgColor = pickEffective(props.bgColor, isHover, isActive, hoverState, activeState, "bgColor");
35
- const border = pickEffective(props.border, isHover, isActive, hoverState, activeState, "border");
36
- const rounded = pickEffective(props.rounded, isHover, isActive, hoverState, activeState, "rounded");
37
- const elevation = pickEffective(props.elevation, isHover, isActive, hoverState, activeState, "elevation");
38
- const padding = pickEffective(props.padding, isHover, isActive, hoverState, activeState, "padding");
39
- const margin = pickEffective(props.margin, isHover, isActive, hoverState, activeState, "margin");
33
+ const statusToIntent = {
34
+ success: "success",
35
+ info: "info",
36
+ warning: "warning",
37
+ error: "danger"
38
+ };
39
+ const statusIntent = computed(() => {
40
+ const status = props.status;
41
+ return status ? statusToIntent[status] ?? status : void 0;
42
+ });
43
+ const baseColor = pickEffective(() => props.color, isHover, isActive, hoverState, activeState, "color");
44
+ const baseBgColor = pickEffective(() => props.bgColor, isHover, isActive, hoverState, activeState, "bgColor");
45
+ const color = computed(() => statusIntent.value ? void 0 : baseColor.value);
46
+ const bgColor = computed(() => statusIntent.value ?? baseBgColor.value);
47
+ const border = pickEffective(() => props.border, isHover, isActive, hoverState, activeState, "border");
48
+ const rounded = pickEffective(() => props.rounded, isHover, isActive, hoverState, activeState, "rounded");
49
+ const elevation = pickEffective(() => props.elevation, isHover, isActive, hoverState, activeState, "elevation");
50
+ const padding = pickEffective(() => props.padding, isHover, isActive, hoverState, activeState, "padding");
51
+ const margin = pickEffective(() => props.margin, isHover, isActive, hoverState, activeState, "margin");
40
52
  const gap = pickEffective(
41
- props.gap,
53
+ () => props.gap,
42
54
  isHover,
43
55
  isActive,
44
56
  hoverState,
@@ -61,7 +73,7 @@ export function useStateEffect(props, isHover = noopRef, isActive = noopRef, hov
61
73
  void isDisabled.value;
62
74
  const hoverHasOwnBg = hoverState.value?.bgColor != null && !sameIntent(hoverState.value.bgColor, props.bgColor);
63
75
  const activeHasOwnBg = activeState.value?.bgColor != null && !sameIntent(activeState.value.bgColor, props.bgColor);
64
- const bgRole = isActive.value && !activeHasOwnBg ? "active" : isHover.value && !hoverHasOwnBg ? "hover" : "default";
76
+ const bgRole = isHover.value && !hoverHasOwnBg ? "hover" : isActive.value && !activeHasOwnBg ? "active" : "default";
65
77
  let bgDecl = null;
66
78
  let fgDecl = null;
67
79
  let bgIntentFg = null;
@@ -98,7 +110,19 @@ export function useStateEffect(props, isHover = noopRef, isActive = noopRef, hov
98
110
  return styles;
99
111
  });
100
112
  void intentBgExpr;
101
- const { borderClasses, borderStyles } = useBorder(border);
113
+ const { borderClasses, borderStyles } = useBorder(
114
+ reactive({
115
+ get border() {
116
+ return border.value;
117
+ },
118
+ get borderColor() {
119
+ return props.borderColor;
120
+ },
121
+ get borderStyle() {
122
+ return props.borderStyle;
123
+ }
124
+ })
125
+ );
102
126
  const { roundedClasses, roundedStyles } = useRounded(rounded);
103
127
  const { elevationClasses, elevationStyles } = useElevation(
104
128
  elevation,
@@ -7,10 +7,19 @@ exports.useStatus = useStatus;
7
7
  var _enums = require("../../enums/index.cjs");
8
8
  var _utils = require("../../utils/index.cjs");
9
9
  var _vue = require("vue");
10
+ const STATUS_TO_INTENT = {
11
+ success: "success",
12
+ info: "info",
13
+ warning: "warning",
14
+ error: "danger"
15
+ };
10
16
  function useStatus(props, name = (0, _utils.getCurrentInstanceName)()) {
11
17
  const statusIcon = (0, _vue.computed)(() => {
12
18
  return `$${props.status}`;
13
19
  });
20
+ const statusIntent = (0, _vue.computed)(() => {
21
+ return props.status ? STATUS_TO_INTENT[props.status] ?? props.status : void 0;
22
+ });
14
23
  const effectivePosition = (0, _vue.computed)(() => {
15
24
  return props.statusIconPosition ?? `${_enums.STATUS_POSITION.PREPEND}`;
16
25
  });
@@ -37,6 +46,7 @@ function useStatus(props, name = (0, _utils.getCurrentInstanceName)()) {
37
46
  icon,
38
47
  appendIcon,
39
48
  prependIcon,
40
- statusClasses
49
+ statusClasses,
50
+ statusIntent
41
51
  };
42
52
  }
@@ -1,4 +1,5 @@
1
1
  import type { IAdjacentProps, IStatusProps } from "../../interfaces";
2
+ import type { TColor } from "../../types";
2
3
  /*********************************************************
3
4
  * useStatus
4
5
  ********************************************************/
@@ -7,4 +8,5 @@ export declare function useStatus(props: IStatusProps & IAdjacentProps, name?: s
7
8
  appendIcon: import("vue").ComputedRef<import("../../types").TIcon | undefined>;
8
9
  prependIcon: import("vue").ComputedRef<import("../../types").TIcon | undefined>;
9
10
  statusClasses: import("vue").ComputedRef<string[]>;
11
+ statusIntent: import("vue").ComputedRef<TColor>;
10
12
  };
@@ -1,10 +1,19 @@
1
1
  import { STATUS_POSITION } from "../../enums/index.js";
2
2
  import { getCurrentInstanceName } from "../../utils/index.js";
3
3
  import { computed } from "vue";
4
+ const STATUS_TO_INTENT = {
5
+ success: "success",
6
+ info: "info",
7
+ warning: "warning",
8
+ error: "danger"
9
+ };
4
10
  export function useStatus(props, name = getCurrentInstanceName()) {
5
11
  const statusIcon = computed(() => {
6
12
  return `$${props.status}`;
7
13
  });
14
+ const statusIntent = computed(() => {
15
+ return props.status ? STATUS_TO_INTENT[props.status] ?? props.status : void 0;
16
+ });
8
17
  const effectivePosition = computed(() => {
9
18
  return props.statusIconPosition ?? `${STATUS_POSITION.PREPEND}`;
10
19
  });
@@ -27,5 +36,5 @@ export function useStatus(props, name = getCurrentInstanceName()) {
27
36
  }
28
37
  return classes;
29
38
  });
30
- return { icon, appendIcon, prependIcon, statusClasses };
39
+ return { icon, appendIcon, prependIcon, statusClasses, statusIntent };
31
40
  }