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
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <component
3
3
  :is="tag"
4
+ v-contrast
4
5
  :class="listSubheaderClasses"
5
6
  :style="listSubheaderStyles"
6
7
  >
@@ -18,7 +19,7 @@
18
19
  </component>
19
20
  </template>
20
21
 
21
- <script setup>
22
+ <script lang="ts" setup>
22
23
  import { computed, StyleValue, toRef, useSlots } from "vue";
23
24
  import {
24
25
  useBorder,
@@ -27,8 +28,10 @@ import {
27
28
  usePadding,
28
29
  useProps,
29
30
  useRounded,
30
- useStyle
31
+ useStyle,
32
+ useTypography
31
33
  } from "../../composables";
34
+ import { vContrast } from "../../directives";
32
35
  const props = defineProps({
33
36
  inset: { type: Boolean, required: false },
34
37
  sticky: { type: Boolean, required: false },
@@ -66,7 +69,12 @@ const props = defineProps({
66
69
  roundedTopRight: { type: [Boolean, Number, String], required: false },
67
70
  roundedTopLeft: { type: [Boolean, Number, String], required: false },
68
71
  roundedBottomLeft: { type: [Boolean, Number, String], required: false },
69
- roundedBottomRight: { type: [Boolean, Number, String], required: false }
72
+ roundedBottomRight: { type: [Boolean, Number, String], required: false },
73
+ fontFamily: { type: String, required: false },
74
+ fontSize: { type: String, required: false },
75
+ fontWeight: { type: String, required: false },
76
+ lineHeight: { type: String, required: false },
77
+ letterSpacing: { type: String, required: false }
70
78
  });
71
79
  const { filterProps } = useProps(props);
72
80
  const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
@@ -74,6 +82,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
74
82
  const { borderClasses, borderStyles } = useBorder(props);
75
83
  const { paddingClasses, paddingStyles } = usePadding(props);
76
84
  const { marginClasses, marginStyles } = useMargin(props);
85
+ const { typographyStyles } = useTypography(props, "list-subheader");
77
86
  const slots = useSlots();
78
87
  const hasText = computed(() => {
79
88
  return slots.default || props.title;
@@ -85,6 +94,7 @@ const listSubheaderStyles = computed(() => {
85
94
  borderStyles.value,
86
95
  paddingStyles.value,
87
96
  marginStyles.value,
97
+ typographyStyles.value,
88
98
  props.style
89
99
  ];
90
100
  });
@@ -24,7 +24,7 @@
24
24
  </component>
25
25
  </template>
26
26
 
27
- <script setup>
27
+ <script lang="ts" setup>
28
28
  import { computed, StyleValue } from "vue";
29
29
  import { OrigamProgress } from "../../components";
30
30
  import { useProps, useStyle } from "../../composables";
@@ -13,7 +13,7 @@
13
13
  </component>
14
14
  </template>
15
15
 
16
- <script setup>
16
+ <script lang="ts" setup>
17
17
  import { computed, StyleValue, toRef } from "vue";
18
18
  import {
19
19
  useBorder,
@@ -12,7 +12,7 @@
12
12
  <template v-else>
13
13
  <div
14
14
  v-for="(child, idx) in childrenVNodes"
15
- :key="(child as any)?.key ?? idx"
15
+ :key="child?.key ?? idx"
16
16
  :ref="(el) => bindItemRef(idx, el)"
17
17
  class="origam-masonry__item"
18
18
  role="listitem"
@@ -26,7 +26,7 @@
26
26
  </component>
27
27
  </template>
28
28
 
29
- <script setup>
29
+ <script lang="ts" setup>
30
30
  import {
31
31
  computed,
32
32
  onMounted,
@@ -160,7 +160,7 @@
160
160
  </div>
161
161
  </template>
162
162
 
163
- <script setup>
163
+ <script lang="ts" setup>
164
164
  import { computed, ref, useSlots, watch } from "vue";
165
165
  import { OrigamBtn } from "../Btn";
166
166
  import { OrigamMenu } from "../Menu";
@@ -57,7 +57,7 @@
57
57
  </div>
58
58
  </template>
59
59
 
60
- <script setup>
60
+ <script lang="ts" setup>
61
61
  import {
62
62
  computed,
63
63
  ref,
@@ -78,8 +78,9 @@ const props = defineProps({
78
78
  showThumbOnHoverOnly: { type: Boolean, required: false, default: false },
79
79
  showHoverTooltip: { type: Boolean, required: false, default: false },
80
80
  formatHoverTooltip: { type: Function, required: false, default: (value) => String(value) },
81
- ariaLabel: { type: String, required: true },
81
+ ariaLabel: { type: String, required: false },
82
82
  ariaValueText: { type: String, required: false, default: void 0 },
83
+ dataCy: { type: String, required: false },
83
84
  id: { type: String, required: false },
84
85
  class: { type: [String, Array, Object], required: false },
85
86
  style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
@@ -11,7 +11,7 @@
11
11
  type="button"
12
12
  class="origam-media-volume-control__btn"
13
13
  :class="rootClasses"
14
- :style="style"
14
+ :style="rootStyle"
15
15
  :aria-label="muted ? unmuteLabel : muteLabel"
16
16
  :data-cy="btnDataCy"
17
17
  @click="onToggleMute"
@@ -42,7 +42,7 @@
42
42
  </origam-tooltip>
43
43
  </template>
44
44
 
45
- <script setup>
45
+ <script lang="ts" setup>
46
46
  import { computed } from "vue";
47
47
  import { OrigamIcon } from "../Icon";
48
48
  import { OrigamTooltip } from "../Tooltip";
@@ -67,6 +67,7 @@ const ICONS = {
67
67
  VOLUME_OFF: MDI_ICONS.VOLUME_OFF
68
68
  };
69
69
  const rootClasses = computed(() => [props.class]);
70
+ const rootStyle = computed(() => props.style);
70
71
  const btnDataCy = computed(() => `${props.dataCy}-mute`);
71
72
  const wrapperDataCy = computed(() => `${props.dataCy}-wrapper`);
72
73
  const scrubberDataCy = computed(() => props.dataCy);
@@ -69,7 +69,7 @@
69
69
  </origam-overlay>
70
70
  </template>
71
71
 
72
- <script setup>
72
+ <script lang="ts" setup>
73
73
  import { computed, inject, mergeProps, nextTick, provide, ref, shallowRef, StyleValue, toRef, watch } from "vue";
74
74
  import {
75
75
  OrigamList,
@@ -197,7 +197,12 @@ const props = defineProps({
197
197
  appendIcon: { type: null, required: false },
198
198
  prependAvatar: { type: String, required: false },
199
199
  prependIcon: { type: null, required: false },
200
- hover: { type: [Boolean, Object], required: false }
200
+ hover: { type: [Boolean, Object], required: false },
201
+ fontFamily: { type: String, required: false },
202
+ fontSize: { type: String, required: false },
203
+ fontWeight: { type: String, required: false },
204
+ lineHeight: { type: String, required: false },
205
+ letterSpacing: { type: String, required: false }
201
206
  });
202
207
  defineEmits(["contextmenu", "update:modelValue"]);
203
208
  const { filterProps } = useProps(props);
@@ -351,6 +356,8 @@ defineExpose(forwardRefs({
351
356
 
352
357
  .origam-menu__content {
353
358
  background: var(--origam-menu---background, var(--origam-color__surface---raised));
359
+ backdrop-filter: var(--origam-menu---backdrop-filter, none);
360
+ -webkit-backdrop-filter: var(--origam-menu---backdrop-filter, none);
354
361
  color: var(--origam-menu---color, var(--origam-color__text---primary));
355
362
  border-radius: var(--origam-menu---border-radius, 8px);
356
363
  box-shadow: var(--origam-menu---box-shadow);
@@ -6,7 +6,7 @@
6
6
  <component
7
7
  :is="tag"
8
8
  :class="messagesClasses"
9
- :style="messagesStyles"
9
+ :style="[messagesStyles, rootTypographyStyles]"
10
10
  aria-live="polite"
11
11
  role="status"
12
12
  >
@@ -16,6 +16,7 @@
16
16
  >
17
17
  <div
18
18
  :id="`${index}-${toKebabCase(message)}`"
19
+ :style="childTypographyStyles"
19
20
  class="origam-messages__message"
20
21
  >
21
22
  <slot
@@ -30,7 +31,7 @@
30
31
  </origam-transition>
31
32
  </template>
32
33
 
33
- <script setup>
34
+ <script lang="ts" setup>
34
35
  import { computed, StyleValue, toRef } from "vue";
35
36
  import { OrigamSlideY, OrigamTransition } from "../../components";
36
37
  import {
@@ -43,7 +44,8 @@ import {
43
44
  useRounded,
44
45
  useSsrBoot,
45
46
  useStyle,
46
- useTextColor
47
+ useTextColor,
48
+ useTypography
47
49
  } from "../../composables";
48
50
  import { DENSITY } from "../../enums";
49
51
  import { toKebabCase, wrapInArray } from "../../utils";
@@ -86,7 +88,12 @@ const _props = defineProps({
86
88
  roundedBottomLeft: { type: [Boolean, Number, String], required: false },
87
89
  roundedBottomRight: { type: [Boolean, Number, String], required: false },
88
90
  density: { type: null, required: false, default: DENSITY.DEFAULT },
89
- elevation: { type: [Number, String], required: false }
91
+ elevation: { type: [Number, String], required: false },
92
+ fontFamily: { type: String, required: false },
93
+ fontSize: { type: String, required: false },
94
+ fontWeight: { type: String, required: false },
95
+ lineHeight: { type: String, required: false },
96
+ letterSpacing: { type: String, required: false }
90
97
  });
91
98
  const props = useDefaults(_props);
92
99
  defineSlots();
@@ -95,6 +102,8 @@ const messages = computed(() => {
95
102
  return wrapInArray(props.messages);
96
103
  });
97
104
  const { textColorClasses, textColorStyles } = useTextColor(toRef(props, "color"));
105
+ const { typographyStyles: rootTypographyStyles } = useTypography(props, "messages");
106
+ const { typographyStyles: childTypographyStyles } = useTypography(props, "messages__message");
98
107
  const { roundedClasses, roundedStyles } = useRounded(props);
99
108
  const { borderClasses, borderStyles } = useBorder(props);
100
109
  const { paddingClasses, paddingStyles } = usePadding(props);
@@ -1,41 +1,59 @@
1
1
  <template>
2
- <template v-if="compact">
3
- <div
4
- :class="compactClasses"
5
- :style="numberFieldStyles"
6
- role="group"
7
- :aria-label="label"
8
- >
9
- <origam-btn
10
- :icon="MDI_ICONS.MINUS"
11
- :disabled="!canDecrease"
12
- size="small"
13
- data-cy="numberfield-compact-decrement"
14
- aria-label="Decrement"
15
- @click="handleCompactDecrement"
16
- />
17
- <input
18
- v-model="compactInputText"
19
- type="text"
20
- inputmode="numeric"
21
- class="origam-number-field__compact-input"
2
+ <origam-input
3
+ v-if="compact"
4
+ ref="origamCompactInputRef"
5
+ v-model="model"
6
+ :validation-value="model"
7
+ :focused="isFocused"
8
+ :rules="rules"
9
+ :error="error"
10
+ :error-messages="errorMessages"
11
+ :hide-details="hideDetails"
12
+ :validate-on="validateOn"
13
+ :max-errors="maxErrors"
14
+ :name="name"
15
+ :disabled="disabled"
16
+ :readonly="readonly"
17
+ :class="compactInputWrapperClasses"
18
+ :style="numberFieldStyles"
19
+ >
20
+ <template #default>
21
+ <div
22
+ :class="compactClasses"
23
+ role="group"
22
24
  :aria-label="label"
23
- data-cy="numberfield-compact-input"
24
- @blur="handleBlur"
25
- @focus="handleFocus"
26
- @beforeinput="handleBeforeInput"
27
- @keydown="handleKeydown"
28
- />
29
- <origam-btn
30
- :icon="MDI_ICONS.PLUS"
31
- :disabled="!canIncrease"
32
- size="small"
33
- data-cy="numberfield-compact-increment"
34
- aria-label="Increment"
35
- @click="handleCompactIncrement"
36
- />
37
- </div>
38
- </template>
25
+ >
26
+ <origam-btn
27
+ :icon="MDI_ICONS.MINUS"
28
+ :disabled="!canDecrease"
29
+ size="small"
30
+ data-cy="numberfield-compact-decrement"
31
+ aria-label="Decrement"
32
+ @click="handleCompactDecrement"
33
+ />
34
+ <input
35
+ v-model="compactInputText"
36
+ type="text"
37
+ inputmode="numeric"
38
+ class="origam-number-field__compact-input"
39
+ :aria-label="label"
40
+ data-cy="numberfield-compact-input"
41
+ @blur="handleBlur"
42
+ @focus="handleFocus"
43
+ @beforeinput="handleBeforeInput"
44
+ @keydown="handleKeydown"
45
+ />
46
+ <origam-btn
47
+ :icon="MDI_ICONS.PLUS"
48
+ :disabled="!canIncrease"
49
+ size="small"
50
+ data-cy="numberfield-compact-increment"
51
+ aria-label="Increment"
52
+ @click="handleCompactIncrement"
53
+ />
54
+ </div>
55
+ </template>
56
+ </origam-input>
39
57
  <origam-text-field
40
58
  v-else
41
59
  ref="origamTextFieldRef"
@@ -248,9 +266,9 @@
248
266
  </origam-text-field>
249
267
  </template>
250
268
 
251
- <script setup>
269
+ <script lang="ts" setup>
252
270
  import { computed, nextTick, onMounted, ref, shallowRef, StyleValue, useSlots, watch } from "vue";
253
- import { OrigamBtn, OrigamDivider, OrigamTextField } from "../../components";
271
+ import { OrigamBtn, OrigamDivider, OrigamInput, OrigamTextField } from "../../components";
254
272
  import { useAdjacentInner, useFocus, useHold, useProps, useVModel, useStyle } from "../../composables";
255
273
  import { DIRECTION, MDI_ICONS, TEXT_FIELD_TYPE } from "../../enums";
256
274
  import { clamp, forwardRefs } from "../../utils";
@@ -287,6 +305,8 @@ const props = defineProps({
287
305
  reverse: { type: Boolean, required: false },
288
306
  singleLine: { type: Boolean, required: false },
289
307
  required: { type: Boolean, required: false },
308
+ activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
309
+ activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
290
310
  id: { type: String, required: false },
291
311
  class: { type: [String, Array, Object], required: false },
292
312
  style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
@@ -334,6 +354,11 @@ const props = defineProps({
334
354
  roundedTopLeft: { type: [Boolean, Number, String], required: false },
335
355
  roundedBottomLeft: { type: [Boolean, Number, String], required: false },
336
356
  roundedBottomRight: { type: [Boolean, Number, String], required: false },
357
+ fontFamily: { type: String, required: false },
358
+ fontSize: { type: String, required: false },
359
+ fontWeight: { type: String, required: false },
360
+ lineHeight: { type: String, required: false },
361
+ letterSpacing: { type: String, required: false },
337
362
  active: { type: [Boolean, Object], required: false },
338
363
  activeClass: { type: String, required: false },
339
364
  variant: { type: null, required: false },
@@ -367,6 +392,7 @@ defineSlots();
367
392
  const { filterProps } = useProps(props);
368
393
  const slots = useSlots();
369
394
  const origamTextFieldRef = ref();
395
+ const origamCompactInputRef = ref();
370
396
  const controlsDisabled = computed(() => !!(props.disabled || props.readonly));
371
397
  const model = useVModel(
372
398
  props,
@@ -582,7 +608,12 @@ const numberFieldStyles = computed(() => {
582
608
  const compactClasses = computed(() => {
583
609
  return [
584
610
  "origam-number-field",
585
- "origam-number-field--compact",
611
+ "origam-number-field--compact"
612
+ ];
613
+ });
614
+ const compactInputWrapperClasses = computed(() => {
615
+ return [
616
+ "origam-number-field__compact-wrapper",
586
617
  props.class
587
618
  ];
588
619
  });
@@ -611,7 +642,7 @@ defineExpose(forwardRefs({
611
642
  load,
612
643
  unload,
613
644
  isLoaded
614
- }, origamTextFieldRef));
645
+ }, origamTextFieldRef, origamCompactInputRef));
615
646
  </script>
616
647
 
617
648
  <style lang="scss" scoped>
@@ -707,4 +738,13 @@ defineExpose(forwardRefs({
707
738
  }
708
739
  }
709
740
  }
741
+
742
+ .origam-number-field__compact-wrapper {
743
+ display: inline-grid;
744
+ width: fit-content;
745
+
746
+ :deep(.origam-input__control) {
747
+ display: inline-flex;
748
+ }
749
+ }
710
750
  </style>
@@ -15,7 +15,7 @@
15
15
  </component>
16
16
  </template>
17
17
 
18
- <script setup>
18
+ <script lang="ts" setup>
19
19
  import {
20
20
  computed
21
21
  } from "vue";
@@ -66,6 +66,7 @@
66
66
  :value="model[i]"
67
67
  autocomplete="one-time-code"
68
68
  class="origam-otp-input-field__field"
69
+ :style="typographyStyles"
69
70
  @blur="handleBlur"
70
71
  @focus="handleFocus($event, i)"
71
72
  @input="handleInput"
@@ -113,7 +114,7 @@
113
114
  <template #loader>
114
115
  <slot name="loader">
115
116
  <origam-progress
116
- :color="typeof loading === 'boolean' ? undefined : loading"
117
+ :color="typeof loading === 'string' ? loading : undefined"
117
118
  :size="24"
118
119
  :type="PROGRESS_TYPE.CIRCULAR"
119
120
  indeterminate
@@ -125,15 +126,27 @@
125
126
 
126
127
  <slot name="default"/>
127
128
  </div>
129
+
130
+ <div
131
+ v-if="hasDetails"
132
+ class="origam-otp-input-field__details"
133
+ >
134
+ <origam-messages
135
+ :id="messagesId"
136
+ :active="hasMessages"
137
+ :messages="validationMessages"
138
+ />
139
+ </div>
128
140
  </div>
129
141
  </template>
130
142
 
131
- <script setup>
143
+ <script lang="ts" setup>
132
144
  import { computed, nextTick, ref, StyleValue, useAttrs, useSlots, watch } from "vue";
133
145
  import { OrigamField, OrigamOverlay, OrigamProgress } from "../../components";
134
- import { useDimension, useFocus, useLocale, useProps, useVModel, useStyle } from "../../composables";
146
+ import { OrigamMessages } from "../../components/Messages";
147
+ import { useDimension, useFocus, useLocale, useProps, useTypography, useValidation, useVModel, useStyle } from "../../composables";
135
148
  import { OTP_INPUT_FIELD_TYPE, PROGRESS_TYPE } from "../../enums";
136
- import { filterInputAttrs, focusChild, forwardRefs } from "../../utils";
149
+ import { filterInputAttrs, focusChild, forwardRefs, getUid, wrapInArray } from "../../utils";
137
150
  const props = defineProps({
138
151
  autofocus: { type: Boolean, required: false },
139
152
  divider: { type: String, required: false },
@@ -157,6 +170,8 @@ const props = defineProps({
157
170
  reverse: { type: Boolean, required: false },
158
171
  singleLine: { type: Boolean, required: false },
159
172
  required: { type: Boolean, required: false },
173
+ activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
174
+ activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
160
175
  id: { type: String, required: false },
161
176
  class: { type: [String, Array, Object], required: false },
162
177
  style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
@@ -204,6 +219,11 @@ const props = defineProps({
204
219
  roundedTopLeft: { type: [Boolean, Number, String], required: false },
205
220
  roundedBottomLeft: { type: [Boolean, Number, String], required: false },
206
221
  roundedBottomRight: { type: [Boolean, Number, String], required: false },
222
+ fontFamily: { type: String, required: false },
223
+ fontSize: { type: String, required: false },
224
+ fontWeight: { type: String, required: false },
225
+ lineHeight: { type: String, required: false },
226
+ letterSpacing: { type: String, required: false },
207
227
  active: { type: [Boolean, Object], required: false },
208
228
  activeClass: { type: String, required: false },
209
229
  variant: { type: null, required: false },
@@ -238,6 +258,9 @@ const { filterProps } = useProps(props);
238
258
  const { t } = useLocale();
239
259
  const attrs = useAttrs();
240
260
  const slots = useSlots();
261
+ const uid = getUid();
262
+ const id = computed(() => props.id || `otp-input-field-${uid}`);
263
+ const messagesId = computed(() => `${id.value}-messages`);
241
264
  const { dimensionStyles } = useDimension(props);
242
265
  const { isFocused, onFocus: focus, onBlur: blur } = useFocus(props);
243
266
  const model = useVModel(
@@ -253,6 +276,41 @@ const length = computed(() => {
253
276
  const fields = computed(() => {
254
277
  return Array(length.value).fill(0);
255
278
  });
279
+ const otpStringValue = computed(() => model.value.join(""));
280
+ const {
281
+ errorMessages,
282
+ isPristine,
283
+ isValid,
284
+ isValidating,
285
+ reset: resetValidation,
286
+ validate,
287
+ validationClasses
288
+ } = useValidation(
289
+ new Proxy(props, {
290
+ get(target, key) {
291
+ if (key === "modelValue" || key === "validationValue") {
292
+ return otpStringValue.value;
293
+ }
294
+ return target[key];
295
+ }
296
+ }),
297
+ "origam-otp-input-field",
298
+ id
299
+ );
300
+ const validationMessages = computed(() => {
301
+ if (props.errorMessages?.length || !isPristine.value && errorMessages.value.length) {
302
+ return errorMessages.value;
303
+ } else if (props.hint && (props.persistentHint || isFocused.value)) {
304
+ return wrapInArray(props.hint);
305
+ }
306
+ return wrapInArray(props.messages ?? []);
307
+ });
308
+ const hasMessages = computed(() => validationMessages.value.length > 0);
309
+ const hasDetails = computed(() => {
310
+ if (props.hideDetails === true) return false;
311
+ if (props.hideDetails === "auto") return hasMessages.value;
312
+ return true;
313
+ });
256
314
  const focusIndex = ref(-1);
257
315
  const contentRef = ref();
258
316
  const inputRef = ref([]);
@@ -337,7 +395,10 @@ const isInvalidValue = (value) => {
337
395
  return props.type === OTP_INPUT_FIELD_TYPE.NUMBER && /[^0-9]/g.test(value);
338
396
  };
339
397
  watch(model, (val) => {
340
- if (val.length === length.value) emits("finish", val.join(""));
398
+ if (val.length === length.value) {
399
+ emits("finish", val.join(""));
400
+ validate();
401
+ }
341
402
  }, { deep: true });
342
403
  watch(focusIndex, (val) => {
343
404
  if (val < 0) return;
@@ -345,6 +406,7 @@ watch(focusIndex, (val) => {
345
406
  inputRef.value[val]?.select();
346
407
  });
347
408
  });
409
+ const { typographyStyles } = useTypography(props, "otp-input-field__cell");
348
410
  const otpInputFieldStyles = computed(() => {
349
411
  return [
350
412
  props.style
@@ -356,23 +418,32 @@ const otpInputFieldClasses = computed(() => {
356
418
  {
357
419
  "origam-otp-input-field--divided": !!props.divider
358
420
  },
421
+ validationClasses.value,
359
422
  props.class
360
423
  ];
361
424
  });
362
- const { id, css, load, isLoaded, unload } = useStyle(otpInputFieldStyles);
425
+ const { id: styleId, css, load, isLoaded, unload } = useStyle(otpInputFieldStyles);
363
426
  defineExpose(forwardRefs({
364
427
  blur: () => {
365
- inputRef.value?.some((input) => {
366
- input.blur();
367
- return true, css, id, load, unload, isLoaded;
368
- });
428
+ inputRef.value?.forEach((input) => input.blur());
369
429
  },
370
430
  focus: () => {
371
431
  inputRef.value?.[0]?.focus();
372
432
  },
373
433
  reset,
434
+ resetValidation,
435
+ validate,
436
+ isValid,
437
+ isValidating,
438
+ errorMessages,
374
439
  isFocused,
375
- filterProps
440
+ filterProps,
441
+ css,
442
+ id,
443
+ styleId,
444
+ load,
445
+ unload,
446
+ isLoaded
376
447
  }));
377
448
  </script>
378
449
 
@@ -382,6 +453,7 @@ defineExpose(forwardRefs({
382
453
 
383
454
  align-items: center;
384
455
  display: flex;
456
+ flex-direction: column;
385
457
  justify-content: center;
386
458
  padding: var(--origam-otp-input-field---padding-block, .5rem) 0;
387
459
  position: relative;
@@ -442,6 +514,30 @@ defineExpose(forwardRefs({
442
514
  }
443
515
  }
444
516
 
517
+ &__details {
518
+ align-items: flex-end;
519
+ display: flex;
520
+ font-size: 0.75rem;
521
+ font-weight: 400;
522
+ letter-spacing: 0.0333333333em;
523
+ line-height: 1;
524
+ min-height: 22px;
525
+ padding-top: 6px;
526
+ overflow: hidden;
527
+ justify-content: space-between;
528
+ width: 100%;
529
+ padding-inline: var(--origam-otp-input-field__details---padding-inline, 4px);
530
+ }
531
+
532
+ &--error {
533
+ #{$this}__details {
534
+ > .origam-messages {
535
+ color: var(--origam-otp-input-field---error-color, var(--origam-color__feedback--danger---fg-subtle));
536
+ opacity: 1;
537
+ }
538
+ }
539
+ }
540
+
445
541
  &--divided {
446
542
  #{$this}__content {
447
543
  max-width: var(--origam-otp-input-field__content---max-width-divided, 360px);
@@ -46,7 +46,7 @@
46
46
  </template>
47
47
  </template>
48
48
 
49
- <script setup>
49
+ <script lang="ts" setup>
50
50
  import { computed, mergeProps, onBeforeUnmount, ref, StyleValue, toRef, watch } from "vue";
51
51
  import { OrigamFade, OrigamOverlayScrim, OrigamTransition } from "../../components";
52
52
  import {
@@ -13,7 +13,7 @@
13
13
  </origam-transition>
14
14
  </template>
15
15
 
16
- <script setup>
16
+ <script lang="ts" setup>
17
17
  import { computed, StyleValue } from "vue";
18
18
  import { OrigamFade, OrigamTransition } from "../../components";
19
19
  import {