@livestorm/ui-vue 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +3 -3
  2. package/components-vite.js +2 -2
  3. package/dist/UiButton-uyW8EHRJ.mjs +602 -0
  4. package/dist/UiTimelineItem-EiOEi1yF.mjs +7293 -0
  5. package/dist/UiTooltip-DZcPD6_N.mjs +158 -0
  6. package/dist/a11y-CaZxRWzo.mjs +6 -0
  7. package/dist/breakpoints.mjs +4 -9
  8. package/dist/bus.mjs +5 -5
  9. package/dist/components.mjs +236 -231
  10. package/dist/i18n-B8QOMuFD.mjs +46 -0
  11. package/dist/index.mjs +4 -91
  12. package/dist/integrations.mjs +3 -14
  13. package/dist/layouts.mjs +228 -236
  14. package/dist/responsive.mjs +31 -36
  15. package/dist/slot.mjs +11 -17
  16. package/dist/toastDSV2-D3xDZPe5.mjs +105 -0
  17. package/dist/types/index.d.ts +19 -1
  18. package/dist/types/src/components/Toast/ToastMessage.vue.d.ts +17 -7
  19. package/dist/types/src/components/Toast/toastDSV2.d.ts +89 -64
  20. package/dist/types/src/components/UiActionBar/types.d.ts +2 -0
  21. package/dist/types/src/components/UiAvatar/UiAvatar.vue.d.ts +4 -2
  22. package/dist/types/src/components/UiAvatarList/UiAvatarList.vue.d.ts +3 -2
  23. package/dist/types/src/components/UiBanner/UiBanner.vue.d.ts +13 -1
  24. package/dist/types/src/components/UiButton/UiButton.vue.d.ts +95 -35
  25. package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +8 -2
  26. package/dist/types/src/components/UiButtonGroup/types.d.ts +4 -0
  27. package/dist/types/src/components/UiChoice/UiChoice.vue.d.ts +71 -0
  28. package/dist/types/src/components/UiChoice/index.d.ts +2 -0
  29. package/dist/types/src/components/UiChoice/types.d.ts +7 -0
  30. package/dist/types/src/components/UiColorField/UiColorField.vue.d.ts +1 -1
  31. package/dist/types/src/components/UiColorPicker/UiColorPicker.vue.d.ts +2 -2
  32. package/dist/types/src/components/UiCombobox/UiCombobox.types.d.ts +47 -0
  33. package/dist/types/src/components/UiCombobox/UiCombobox.vue.d.ts +40 -0
  34. package/dist/types/src/components/UiCombobox/index.d.ts +2 -0
  35. package/dist/types/src/components/UiDataTable/UiDataTable.types.d.ts +46 -0
  36. package/dist/types/src/components/UiDataTable/UiDataTable.vue.d.ts +136 -0
  37. package/dist/types/src/components/UiDataTable/index.d.ts +5 -0
  38. package/dist/types/src/components/UiDrawer/UiDrawer.vue.d.ts +28 -0
  39. package/dist/types/src/components/UiDrawer/UiDrawerContent.vue.d.ts +18 -0
  40. package/dist/types/src/components/UiDrawer/UiDrawerTrigger.vue.d.ts +14 -0
  41. package/dist/types/src/components/UiDropdown/DropdownItemCheckbox.vue.d.ts +3 -0
  42. package/dist/types/src/components/UiDropdown/UiDropdownContent.vue.d.ts +10 -0
  43. package/dist/types/src/components/UiDropdown/UiDropdownGroup.vue.d.ts +17 -0
  44. package/dist/types/src/components/UiDropdown/UiDropdownItem.vue.d.ts +8 -5
  45. package/dist/types/src/components/UiDropdown/UiDropdownTrigger.vue.d.ts +21 -5
  46. package/dist/types/src/components/UiDropdown/index.d.ts +1 -0
  47. package/dist/types/src/components/UiEmojiPickerList/UiEmojiPickerList.vue.d.ts +22 -0
  48. package/dist/types/src/components/UiEmptyState/UiEmptyState.vue.d.ts +8 -3
  49. package/dist/types/src/components/UiFieldWrapper/UiFieldWrapper.vue.d.ts +2 -2
  50. package/dist/types/src/components/UiInputCheckbox/CheckboxGlyph.vue.d.ts +17 -0
  51. package/dist/types/src/components/UiInputCheckbox/UiInputCheckbox.vue.d.ts +35 -4
  52. package/dist/types/src/components/UiInputRadio/RadioGlyph.vue.d.ts +19 -0
  53. package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +21 -8
  54. package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +6 -1
  55. package/dist/types/src/components/UiInputRadio/types.d.ts +1 -1
  56. package/dist/types/src/components/UiInputSelect/UiInputSelect.vue.d.ts +5 -5
  57. package/dist/types/src/components/UiInputTextarea/UiInputTextarea.vue.d.ts +5 -5
  58. package/dist/types/src/components/UiListItem/UiListItem.vue.d.ts +18 -4
  59. package/dist/types/src/components/UiLoader/UiSpinnerIcon.vue.d.ts +3 -0
  60. package/dist/types/src/components/UiMenu/UiMenuContent.vue.d.ts +15 -2
  61. package/dist/types/src/components/UiMenu/UiMenuItem.vue.d.ts +9 -3
  62. package/dist/types/src/components/UiNestedOptions/UiNestedOptions.vue.d.ts +13 -0
  63. package/dist/types/src/components/UiPage/UiPage.vue.d.ts +79 -15
  64. package/dist/types/src/components/UiPagination/UiPagination.vue.d.ts +36 -0
  65. package/dist/types/src/components/UiPagination/index.d.ts +2 -0
  66. package/dist/types/src/components/UiPagination/types.d.ts +4 -0
  67. package/dist/types/src/components/UiPane/UiPane.vue.d.ts +22 -0
  68. package/dist/types/src/components/UiPane/UiPaneContent.vue.d.ts +75 -0
  69. package/dist/types/src/components/UiPane/UiPaneTrigger.vue.d.ts +14 -0
  70. package/dist/types/src/components/UiPane/index.d.ts +5 -0
  71. package/dist/types/src/components/UiRating/UiRating.vue.d.ts +62 -0
  72. package/dist/types/src/components/UiRating/types.d.ts +1 -0
  73. package/dist/types/src/components/UiRoomButton/UiRoomButton.vue.d.ts +5 -3
  74. package/dist/types/src/components/UiRoomCountdown/UiRoomCountdown.vue.d.ts +32 -0
  75. package/dist/types/src/components/UiShell/UiShell.vue.d.ts +3 -0
  76. package/dist/types/src/components/UiSideMenu/UiSideMenu.vue.d.ts +22 -1
  77. package/dist/types/src/components/UiSideMenu/UiSideMenuItemContent.vue.d.ts +2 -2
  78. package/dist/types/src/components/UiSwitch/UiSwitch.vue.d.ts +10 -5
  79. package/dist/types/src/components/UiTable/UiTable.vue.d.ts +13 -4
  80. package/dist/types/src/components/UiTable/UiTableActionsCell.vue.d.ts +49 -0
  81. package/dist/types/src/components/UiTable/UiTableActionsHeaderCell.vue.d.ts +3 -0
  82. package/dist/types/src/components/UiTable/UiTableBody.vue.d.ts +11 -1
  83. package/dist/types/src/components/UiTable/UiTableCell.vue.d.ts +16 -1
  84. package/dist/types/src/components/UiTable/UiTableHeaderCell.vue.d.ts +31 -2
  85. package/dist/types/src/components/UiTable/UiTableRow.vue.d.ts +32 -2
  86. package/dist/types/src/components/UiTable/context.d.ts +3 -0
  87. package/dist/types/src/components/UiTable/index.d.ts +4 -0
  88. package/dist/types/src/components/UiTabs/UiTabs.vue.d.ts +3 -0
  89. package/dist/types/src/components/UiTag/UiTag.types.d.ts +25 -0
  90. package/dist/types/src/components/UiTag/UiTag.vue.d.ts +5 -26
  91. package/dist/types/src/components/UiTag/index.d.ts +2 -1
  92. package/dist/types/src/components/UiTextField/UiTextField.vue.d.ts +10 -5
  93. package/dist/types/src/components/UiTooltip/UiTooltipProvider.vue.d.ts +1 -0
  94. package/dist/types/src/components/UiTooltip/UiTooltipTrigger.vue.d.ts +2 -2
  95. package/dist/types/src/composables/storedThemingApplies.d.ts +17 -0
  96. package/dist/types/src/composables/useButtonStyles.d.ts +1 -0
  97. package/dist/types/src/composables/useChoiceboxSurface.d.ts +11 -0
  98. package/dist/types/src/composables/useContentMode.d.ts +7 -9
  99. package/dist/types/src/composables/useControlModes.d.ts +7 -0
  100. package/dist/types/src/composables/useControlShape.d.ts +24 -0
  101. package/dist/types/src/composables/useFieldFocusEvents.d.ts +12 -0
  102. package/dist/types/src/composables/useIconSize.d.ts +2 -0
  103. package/dist/types/src/composables/usePullGesture.d.ts +42 -0
  104. package/dist/types/src/composables/useThemeAndModes.d.ts +4 -0
  105. package/dist/types/src/theming/colorScale.d.ts +165 -0
  106. package/dist/types/src/theming/legacyColorScale.d.ts +27 -0
  107. package/dist/types/src/theming/presetColors.d.ts +11 -0
  108. package/dist/types/src/theming/primitiveTokens.d.ts +2 -0
  109. package/dist/types/src/utils/effectiveOpacity.d.ts +2 -0
  110. package/dist/types/src/utils/numbers.d.ts +1 -2
  111. package/dist/types/src/utils/tokenColor.d.ts +2 -0
  112. package/dist/ui-vue.css +2 -1
  113. package/dist/utils.mjs +165 -194
  114. package/index.d.ts +18 -0
  115. package/index.js +36 -0
  116. package/package.json +26 -21
  117. package/src/components/Toast/LayoutToasts.vue +19 -11
  118. package/src/components/Toast/ToastMessage.vue +125 -68
  119. package/src/components/Toast/toastDSV2.ts +238 -67
  120. package/src/components/UiActionBar/UiActionBar.vue +4 -3
  121. package/src/components/UiActionBar/UiActionBarItem.vue +9 -6
  122. package/src/components/UiActionBar/types.ts +13 -0
  123. package/src/components/UiAvatar/UiAvatar.vue +8 -2
  124. package/src/components/UiAvatarList/UiAvatarList.vue +51 -20
  125. package/src/components/UiBadge/UiBadge.vue +1 -1
  126. package/src/components/UiBanner/UiBanner.vue +71 -21
  127. package/src/components/UiBreadcrumb/UiBreadcrumb.vue +1 -1
  128. package/src/components/UiButton/UiButton.vue +92 -25
  129. package/src/components/UiButtonGroup/UiButtonGroup.vue +21 -17
  130. package/src/components/UiButtonGroup/UiButtonGroupItem.vue +33 -15
  131. package/src/components/UiButtonGroup/types.ts +19 -0
  132. package/src/components/UiCard/UiCard.vue +20 -23
  133. package/src/components/UiChoice/UiChoice.vue +187 -0
  134. package/src/components/UiChoice/index.ts +2 -0
  135. package/src/components/UiChoice/types.ts +11 -0
  136. package/src/components/UiColorField/UiColorField.vue +2 -2
  137. package/src/components/UiColorPicker/UiColorPicker.vue +11 -8
  138. package/src/components/UiCombobox/UiCombobox.types.ts +52 -0
  139. package/src/components/UiCombobox/UiCombobox.vue +296 -0
  140. package/src/components/UiCombobox/index.ts +2 -0
  141. package/src/components/UiDataTable/UiDataTable.types.ts +47 -0
  142. package/src/components/UiDataTable/UiDataTable.vue +422 -0
  143. package/src/components/UiDataTable/index.ts +12 -0
  144. package/src/components/UiDialog/UiDialogContent.vue +22 -7
  145. package/src/components/UiDrawer/UiDrawer.vue +16 -0
  146. package/src/components/UiDrawer/UiDrawerContent.vue +42 -0
  147. package/src/components/UiDrawer/UiDrawerTrigger.vue +17 -0
  148. package/src/components/UiDropdown/DropdownItemCheckbox.vue +10 -0
  149. package/src/components/UiDropdown/UiDropdownContent.vue +32 -21
  150. package/src/components/UiDropdown/UiDropdownGroup.vue +23 -0
  151. package/src/components/UiDropdown/UiDropdownItem.vue +38 -18
  152. package/src/components/UiDropdown/UiDropdownSeparator.vue +1 -1
  153. package/src/components/UiDropdown/UiDropdownTrigger.vue +138 -43
  154. package/src/components/UiDropdown/index.ts +1 -0
  155. package/src/components/UiEmojiPickerList/UiEmojiPickerList.vue +122 -0
  156. package/src/components/UiEmptyState/UiEmptyState.vue +16 -4
  157. package/src/components/UiFieldWrapper/UiFieldWrapper.vue +9 -3
  158. package/src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue +2 -2
  159. package/src/components/UiInputCheckbox/CheckboxGlyph.vue +78 -0
  160. package/src/components/UiInputCheckbox/UiInputCheckbox.vue +213 -177
  161. package/src/components/UiInputEmoji/UiInputEmoji.vue +18 -95
  162. package/src/components/UiInputRadio/RadioGlyph.vue +45 -0
  163. package/src/components/UiInputRadio/UiInputRadio.vue +177 -169
  164. package/src/components/UiInputRadio/UiInputRadioGroup.vue +15 -5
  165. package/src/components/UiInputRadio/types.ts +1 -2
  166. package/src/components/UiInputSelect/UiInputSelect.vue +9 -7
  167. package/src/components/UiInputTextarea/UiInputTextarea.vue +20 -35
  168. package/src/components/UiLabel/UiLabel.vue +1 -1
  169. package/src/components/UiListItem/UiListItem.vue +55 -9
  170. package/src/components/UiLoader/UiLoader.vue +4 -20
  171. package/src/components/UiLoader/UiSpinnerIcon.vue +21 -0
  172. package/src/components/UiMenu/UiMenuContent.vue +24 -3
  173. package/src/components/UiMenu/UiMenuGroup.vue +1 -1
  174. package/src/components/UiMenu/UiMenuItem.vue +14 -3
  175. package/src/components/UiMenu/UiMenuSubContent.vue +1 -1
  176. package/src/components/UiMenu/UiMenuSubTrigger.vue +1 -1
  177. package/src/components/UiNestedOptions/UiNestedOptions.vue +6 -0
  178. package/src/components/UiPage/UiPage.vue +190 -32
  179. package/src/components/UiPagination/UiPagination.vue +99 -0
  180. package/src/components/UiPagination/index.ts +2 -0
  181. package/src/components/UiPagination/types.ts +28 -0
  182. package/src/components/UiPane/UiPane.vue +20 -0
  183. package/src/components/UiPane/UiPaneContent.vue +232 -0
  184. package/src/components/UiPane/UiPaneTrigger.vue +14 -0
  185. package/src/components/UiPane/index.ts +12 -0
  186. package/src/components/UiPopover/UiPopoverContent.vue +21 -1
  187. package/src/components/UiProgress/UiProgress.vue +2 -2
  188. package/src/components/UiRating/UiRating.vue +258 -0
  189. package/src/components/UiRating/types.ts +1 -0
  190. package/src/components/UiRoomButton/UiRoomButton.vue +10 -41
  191. package/src/components/UiRoomCountdown/UiRoomCountdown.vue +376 -0
  192. package/src/components/UiShell/UiShell.vue +9 -3
  193. package/src/components/UiSideMenu/UiSideMenu.vue +155 -18
  194. package/src/components/UiSideMenu/UiSideMenuItemContent.vue +20 -16
  195. package/src/components/UiStepper/UiStepper.vue +3 -16
  196. package/src/components/UiStepper/UiStepperDescription.vue +1 -13
  197. package/src/components/UiStepper/UiStepperIndicator.vue +11 -48
  198. package/src/components/UiStepper/UiStepperItem.vue +1 -8
  199. package/src/components/UiStepper/UiStepperSeparator.vue +5 -16
  200. package/src/components/UiStepper/UiStepperTitle.vue +1 -10
  201. package/src/components/UiSwitch/UiSwitch.vue +44 -28
  202. package/src/components/UiTable/UiTable.vue +98 -8
  203. package/src/components/UiTable/UiTableActionsCell.vue +135 -0
  204. package/src/components/UiTable/UiTableActionsHeaderCell.vue +19 -0
  205. package/src/components/UiTable/UiTableBody.vue +16 -1
  206. package/src/components/UiTable/UiTableCell.vue +33 -16
  207. package/src/components/UiTable/UiTableHeader.vue +6 -5
  208. package/src/components/UiTable/UiTableHeaderCell.vue +61 -9
  209. package/src/components/UiTable/UiTableRow.vue +46 -10
  210. package/src/components/UiTable/context.ts +5 -0
  211. package/src/components/UiTable/index.ts +4 -0
  212. package/src/components/UiTabs/UiTabs.vue +56 -61
  213. package/src/components/UiTag/UiTag.types.ts +28 -0
  214. package/src/components/UiTag/UiTag.vue +24 -42
  215. package/src/components/UiTag/index.ts +2 -0
  216. package/src/components/UiTextField/UiTextField.vue +21 -36
  217. package/src/components/UiTooltip/UiTooltipContent.vue +1 -1
  218. package/src/components/UiTooltip/UiTooltipProvider.vue +3 -0
  219. package/src/components/UiTooltip/UiTooltipTrigger.vue +16 -1
  220. package/src/composables/storedThemingApplies.ts +19 -0
  221. package/src/composables/useButtonStyles.ts +9 -13
  222. package/src/composables/useChoiceboxSurface.ts +36 -0
  223. package/src/composables/useContentMode.ts +29 -16
  224. package/src/composables/useControlModes.ts +11 -0
  225. package/src/composables/useControlShape.ts +34 -0
  226. package/src/composables/useFieldFocusEvents.ts +30 -0
  227. package/src/composables/useIconSize.ts +15 -0
  228. package/src/composables/usePullGesture.ts +142 -0
  229. package/src/composables/useThemeAndModes.ts +28 -1
  230. package/src/css/body.css +16 -1
  231. package/src/css/fonts.css +39 -5
  232. package/src/global.d.ts +36 -0
  233. package/src/theming/colorScale.ts +173 -0
  234. package/src/theming/legacyColorScale.ts +58 -0
  235. package/src/theming/presetColors.ts +33 -0
  236. package/src/theming/primitiveTokens.ts +71 -0
  237. package/src/utils/effectiveOpacity.ts +8 -0
  238. package/src/utils/i18n.ts +6 -0
  239. package/src/utils/numbers.ts +1 -1
  240. package/src/utils/responsive.d.ts +14 -0
  241. package/src/utils/tokenColor.ts +9 -0
  242. package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-LpdvGf5X.mjs +0 -6093
  243. package/dist/a11y-BhF_nl7L.mjs +0 -159
  244. package/dist/i18n-Cktw9hIu.mjs +0 -49
  245. package/dist/toastDSV2-wMh-UMzW.mjs +0 -74
  246. package/dist/types/src/components/UiAvatar/index.d.ts +0 -1
  247. package/dist/types/src/components/UiAvatarList/index.d.ts +0 -1
  248. package/dist/types/src/components/UiBadge/index.d.ts +0 -1
  249. package/dist/types/src/components/UiBanner/index.d.ts +0 -2
  250. package/dist/types/src/components/UiButtonGroup/index.d.ts +0 -3
  251. package/dist/types/src/components/UiCarousel/index.d.ts +0 -2
  252. package/dist/types/src/components/UiColorField/index.d.ts +0 -2
  253. package/dist/types/src/components/UiDialog/MarketplaceHeaderExample.vue.d.ts +0 -28
  254. package/dist/types/src/components/UiDialog/index.d.ts +0 -7
  255. package/dist/types/src/components/UiFieldWrapper/index.d.ts +0 -1
  256. package/dist/types/src/components/UiInputCheckbox/index.d.ts +0 -2
  257. package/dist/types/src/components/UiInputEmoji/index.d.ts +0 -1
  258. package/dist/types/src/components/UiInputRadio/index.d.ts +0 -3
  259. package/dist/types/src/components/UiInputSelect/index.d.ts +0 -2
  260. package/dist/types/src/components/UiInputTextarea/index.d.ts +0 -2
  261. package/dist/types/src/components/UiMenu/index.d.ts +0 -10
  262. package/dist/types/src/components/UiProgress/index.d.ts +0 -2
  263. package/dist/types/src/components/UiSwitch/index.d.ts +0 -2
  264. package/dist/types/src/components/UiTabs/index.d.ts +0 -2
  265. package/dist/types/src/components/UiTimeline/index.d.ts +0 -2
  266. package/dist/types/src/components/UiTooltip/index.d.ts +0 -4
  267. package/dist/types/src/mixins/DynamicAction.d.ts +0 -30
  268. package/dist/useThemeAndModes-BzYwSOEv.mjs +0 -108
  269. package/src/components/UiAvatar/index.js +0 -1
  270. package/src/components/UiAvatarList/index.js +0 -1
  271. package/src/components/UiBadge/index.ts +0 -2
  272. package/src/components/UiBanner/index.ts +0 -2
  273. package/src/components/UiButtonGroup/index.ts +0 -3
  274. package/src/components/UiCarousel/index.ts +0 -2
  275. package/src/components/UiColorField/index.ts +0 -2
  276. package/src/components/UiDialog/MarketplaceHeaderExample.vue +0 -217
  277. package/src/components/UiDialog/index.ts +0 -18
  278. package/src/components/UiFieldWrapper/index.ts +0 -1
  279. package/src/components/UiInputCheckbox/index.ts +0 -2
  280. package/src/components/UiInputEmoji/index.ts +0 -1
  281. package/src/components/UiInputRadio/index.ts +0 -3
  282. package/src/components/UiInputSelect/index.ts +0 -2
  283. package/src/components/UiInputTextarea/index.ts +0 -2
  284. package/src/components/UiMenu/index.ts +0 -10
  285. package/src/components/UiProgress/index.ts +0 -2
  286. package/src/components/UiSwitch/index.ts +0 -2
  287. package/src/components/UiTabs/index.ts +0 -5
  288. package/src/components/UiTag/index.js +0 -1
  289. package/src/components/UiTimeline/index.ts +0 -2
  290. package/src/components/UiTooltip/index.js +0 -4
  291. package/src/mixins/DynamicAction.js +0 -61
package/dist/index.mjs CHANGED
@@ -1,91 +1,4 @@
1
- import { _ as e, a as s, b as o, c as U, d as t, e as r, f as n, g as p, h as l, U as u, i as d, j as g, k as T, l as S, m, n as b, o as I, p as C, q as M, r as c, s as B, t as D, u as P, v as L, w as v, x as w, y as A, z as F, A as h, B as x, C as G, D as H, E as R, F as f, G as k, H as j, I as y, J as E, K as q, L as z, M as W, N as _, O as J, P as K, Q as N, R as O, S as Q, T as V, V as X, W as Y, X as Z, Y as $, Z as aa, $ as ia, a0 as ea, a1 as sa, a2 as oa, a3 as Ua, a4 as ta, a5 as ra, a6 as na, a7 as pa, a8 as la, a9 as ua, aa as da, ab as ga, ac as Ta, ad as Sa, ae as ma, af as ba, ag as Ia, ah as Ca, ai as Ma, aj as ca, ak as Ba, al as Da, am as Pa, an as La, ao as va, ap as wa, aq as Aa, ar as Fa, as as ha } from "./UiTimelineItem.vue_vue_type_style_index_0_lang-LpdvGf5X.mjs";
2
- import { _ as Ga, a as Ha, b as Ra, c as fa } from "./a11y-BhF_nl7L.mjs";
3
- export {
4
- e as UiActionBar,
5
- s as UiActionBarItem,
6
- o as UiActionBarSeparator,
7
- U as UiAnimatedLogo,
8
- t as UiAvatar,
9
- r as UiAvatarList,
10
- n as UiBadge,
11
- p as UiBanner,
12
- l as UiBreadcrumb,
13
- u as UiButton,
14
- d as UiButtonGroup,
15
- g as UiButtonGroupItem,
16
- T as UiCard,
17
- S as UiCarousel,
18
- m as UiColorField,
19
- b as UiColorPicker,
20
- I as UiDialog,
21
- C as UiDialogClose,
22
- M as UiDialogContent,
23
- c as UiDialogFooter,
24
- B as UiDialogTrigger,
25
- D as UiDropdown,
26
- P as UiDropdownContent,
27
- L as UiDropdownItem,
28
- v as UiDropdownSeparator,
29
- w as UiDropdownTrigger,
30
- A as UiEmptyState,
31
- F as UiFieldWrapper,
32
- h as UiFormField,
33
- x as UiHorizontalSeparator,
34
- G as UiInputCheckbox,
35
- H as UiInputEmoji,
36
- R as UiInputRadio,
37
- f as UiInputRadioGroup,
38
- k as UiInputSelect,
39
- j as UiInputTextarea,
40
- y as UiLabel,
41
- E as UiList,
42
- q as UiListItem,
43
- z as UiLoader,
44
- W as UiLogo,
45
- _ as UiMenu,
46
- J as UiMenuContent,
47
- K as UiMenuGroup,
48
- N as UiMenuItem,
49
- O as UiMenuLabel,
50
- Q as UiMenuSeparator,
51
- V as UiMenuSub,
52
- X as UiMenuSubContent,
53
- Y as UiMenuSubTrigger,
54
- Z as UiMenuTrigger,
55
- $ as UiPage,
56
- aa as UiPageHeader,
57
- ia as UiPopover,
58
- ea as UiPopoverAnchor,
59
- sa as UiPopoverContent,
60
- oa as UiPopoverTrigger,
61
- Ua as UiProgress,
62
- ta as UiRoomButton,
63
- ra as UiShell,
64
- na as UiSideMenu,
65
- pa as UiSideMenuBottom,
66
- la as UiSideMenuItem,
67
- ua as UiSideMenuItemContent,
68
- da as UiSideMenuTop,
69
- ga as UiStepper,
70
- Ta as UiStepperDescription,
71
- Sa as UiStepperIndicator,
72
- ma as UiStepperItem,
73
- ba as UiStepperSeparator,
74
- Ia as UiStepperTitle,
75
- Ca as UiSwitch,
76
- Ma as UiTable,
77
- ca as UiTableBody,
78
- Ba as UiTableCell,
79
- Da as UiTableHeader,
80
- Pa as UiTableHeaderCell,
81
- La as UiTableRow,
82
- va as UiTabs,
83
- wa as UiTag,
84
- Aa as UiTextField,
85
- Fa as UiTimeline,
86
- ha as UiTimelineItem,
87
- Ga as UiTooltip,
88
- Ha as UiTooltipContent,
89
- Ra as UiTooltipProvider,
90
- fa as UiTooltipTrigger
91
- };
1
+ import { a as e, r as t, s as n, t as r } from "./UiTooltip-DZcPD6_N.mjs";
2
+ import { $ as i, $n as a, $t as o, C as s, Cn as c, Cr as l, Ct as u, D as d, Dn as f, Dr as p, Dt as m, F as h, Fn as g, Ft as _, G as v, Gn as y, Gt as b, L as x, Ln as S, Lt as C, N as w, Nn as T, Nt as E, T as D, Tn as O, Tr as k, Tt as A, U as j, Un as M, Ut as N, V as P, Vn as F, Vt as I, Y as L, Yn as R, Yt as z, Z as B, Zn as V, Zt as H, _ as U, _n as W, _r as G, _t as K, a as q, an as J, ar as Y, at as X, d as Z, dn as Q, dr as $, dt as ee, h as te, hn as ne, hr as re, ht as ie, j as ae, jn as oe, jr as se, jt as ce, k as le, kn as ue, kr as de, kt as fe, l as pe, ln as me, lr as he, lt as ge, p as _e, pn as ve, pr as ye, pt as be, q as xe, qn as Se, qt as Ce, r as we, rn as Te, rr as Ee, rt as De, s as Oe, sn as ke, sr as Ae, st as je, t as Me, tn as Ne, tr as Pe, tt as Fe, x as Ie, xn as Le, xr as Re, xt as ze, y as Be, yn as Ve, yr as He, yt as Ue, z as We, zn as Ge, zt as Ke } from "./UiTimelineItem-EiOEi1yF.mjs";
3
+ import { a as qe, r as Je, t as Ye, u as Xe } from "./UiButton-uyW8EHRJ.mjs";
4
+ export { se as UiActionBar, de as UiActionBarItem, p as UiActionBarSeparator, k as UiAnimatedLogo, Xe as UiAvatar, l as UiAvatarList, Re as UiBadge, He as UiBanner, G as UiBreadcrumb, Ye as UiButton, re as UiButtonGroup, ye as UiButtonGroupItem, $ as UiCard, he as UiCarousel, Pe as UiChoice, ue as UiColorField, g as UiColorPicker, f as UiCombobox, me as UiDataTable, ke as UiDialog, J as UiDialogClose, Te as UiDialogContent, Ne as UiDialogFooter, o as UiDialogTrigger, H as UiDrawer, z as UiDrawerContent, Ce as UiDrawerTrigger, Se as UiDropdown, M as UiDropdownContent, Ge as UiDropdownGroup, F as UiDropdownItem, S as UiDropdownSeparator, y as UiDropdownTrigger, b as UiEmojiPickerList, N as UiEmptyState, T as UiFieldWrapper, I as UiFormField, Ke as UiHorizontalSeparator, Ae as UiInputCheckbox, C as UiInputEmoji, Y as UiInputRadio, _ as UiInputRadioGroup, E as UiInputSelect, ce as UiInputTextarea, fe as UiLabel, m as UiList, A as UiListItem, Je as UiLoader, u as UiLogo, ze as UiMenu, Ue as UiMenuContent, K as UiMenuGroup, ie as UiMenuItem, be as UiMenuLabel, ee as UiMenuSeparator, ge as UiMenuSub, je as UiMenuSubContent, X as UiMenuSubTrigger, De as UiMenuTrigger, Fe as UiNestedOptions, i as UiPage, B as UiPageHeader, L as UiPagination, xe as UiPane, v as UiPaneContent, j as UiPaneTrigger, a as UiPopover, P as UiPopoverAnchor, R as UiPopoverContent, V as UiPopoverTrigger, We as UiProgress, x as UiRating, h as UiRoomButton, w as UiRoomCountdown, ae as UiShell, D as UiSideMenu, s as UiSideMenuBottom, d as UiSideMenuItem, le as UiSideMenuItemContent, Ie as UiSideMenuTop, qe as UiSpinnerIcon, Be as UiStepper, U as UiStepperDescription, te as UiStepperIndicator, _e as UiStepperItem, Z as UiStepperSeparator, pe as UiStepperTitle, Ee as UiSwitch, O as UiTable, Q as UiTableActionsCell, Ve as UiTableActionsHeaderCell, W as UiTableBody, ve as UiTableCell, c as UiTableHeader, Le as UiTableHeaderCell, ne as UiTableRow, Oe as UiTabs, q as UiTag, oe as UiTextField, we as UiTimeline, Me as UiTimelineItem, r as UiTooltip, t as UiTooltipContent, n as UiTooltipProvider, e as UiTooltipTrigger };
@@ -1,14 +1,3 @@
1
- import { a as e, c as o, o as t, r, u as T } from "./toastDSV2-wMh-UMzW.mjs";
2
- import { B as n, U as _, s as c, t as u, u as L } from "./i18n-Cktw9hIu.mjs";
3
- export {
4
- n as BUILT_IN_LABEL_KEYS,
5
- _ as UI_VUE_TRANSLATOR,
6
- e as cancelCloseTimer,
7
- o as closeToast,
8
- t as openToast,
9
- r as resetToasts,
10
- c as setTranslator,
11
- u as translate,
12
- T as useToasts,
13
- L as useTranslate
14
- };
1
+ import { a as e, i as t, n, r, t as i } from "./i18n-B8QOMuFD.mjs";
2
+ import { a, c as o, i as s, n as c, o as l, r as u, s as d, t as f } from "./toastDSV2-D3xDZPe5.mjs";
3
+ export { i as BUILT_IN_LABEL_KEYS, f as MAX_ITEMS_DISPLAYED, n as UI_VUE_TRANSLATOR, c as cancelCloseTimer, u as closeToast, s as openToast, a as resetToasts, l as restartToast, r as setTranslator, t as translate, d as updateToast, o as useToasts, e as useTranslate };
package/dist/layouts.mjs CHANGED
@@ -1,237 +1,229 @@
1
- import { defineComponent as I, computed as w, ref as C, onMounted as M, resolveComponent as E, createElementBlock as n, openBlock as t, createElementVNode as v, createCommentVNode as a, createBlock as y, resolveDynamicComponent as P, normalizeProps as z, guardReactiveProps as H, Fragment as h, normalizeClass as b, normalizeStyle as N, toDisplayString as f, withKeys as S, withCtx as k, createTextVNode as B, getCurrentInstance as D, createVNode as L, Transition as V, TransitionGroup as A, renderList as R, unref as x, mergeProps as j } from "vue";
2
- import { useResponsive as K } from "./responsive.mjs";
3
- import { u as U } from "./toastDSV2-wMh-UMzW.mjs";
4
- import { u as F } from "./useThemeAndModes-BzYwSOEv.mjs";
5
- const G = ["data-testid"], O = {
6
- key: 1,
7
- class: "absolute h-1 bg-grey-100 top-0 left-0 w-full"
8
- }, W = { class: "shrink-0" }, X = { class: "flex flex-col flex-1 sm:row-start-1 min-w-0 wrap-break-word" }, Y = {
9
- key: 0,
10
- class: "text-content-text-md-bold text-text-neutral-base"
11
- }, q = {
12
- key: 1,
13
- class: "text-content-text-md-regular"
14
- }, J = {
15
- key: 2,
16
- class: "text-content-text-md-regular text-text-neutral-subtle mt-1"
17
- }, Q = { class: "row-start-1 h-4 w-8 justify-self-end" }, Z = {
18
- key: 2,
19
- class: "row-start-3 col-start-1 col-end-3 w-full grid sm:flex sm:col-start-2 mt-3 gap-2 justify-self-end"
20
- }, ee = /* @__PURE__ */ I({
21
- __name: "ToastMessage",
22
- props: {
23
- message: {},
24
- id: {},
25
- title: {},
26
- info: {},
27
- type: { default: "info" },
28
- time: { type: [Number, Boolean] },
29
- progessIndeterminate: { type: Boolean },
30
- customIcon: {},
31
- confirmLabel: {},
32
- confirmHref: {},
33
- confirmHrefTarget: { default: "_blank" },
34
- confirmTo: {},
35
- confirmIcon: {},
36
- confirmColor: {},
37
- cancelLabel: {},
38
- locked: { type: Boolean, default: !1 },
39
- closable: { type: Boolean, default: !0 },
40
- component: {},
41
- componentProps: {}
42
- },
43
- emits: [
44
- "close",
45
- "confirm",
46
- "cancel",
47
- "mouseenter",
48
- "mouseleave"
49
- ],
50
- setup(u, { emit: p }) {
51
- const e = u, l = p, g = w(() => {
52
- if (e.customIcon) return e.customIcon;
53
- switch (e.type) {
54
- case "alert":
55
- return "i-ph-x-circle !text-text-danger-base";
56
- case "warning":
57
- return "i-ph-warning !text-text-warning-base";
58
- case "info":
59
- return "i-ph-info text-text-primary-base";
60
- case "success":
61
- return "i-ph-check-circle text-text-success-base";
62
- default:
63
- return;
64
- }
65
- }), c = C(!1), m = C(!1), _ = w(() => e.progessIndeterminate || e.time && ["success", "info"].includes(e.type));
66
- function T() {
67
- m.value = !1, l("mouseleave"), e.time && (c.value = !1, setTimeout(() => {
68
- c.value = !0;
69
- }, 100));
70
- }
71
- e.time && setTimeout(() => {
72
- c.value = !0;
73
- }, 100);
74
- const r = C(), { addElementToWatch: i } = F();
75
- return M(() => {
76
- r.value && i(
77
- "content",
78
- {
79
- selector: '[data-name="ui-toast-message"]',
80
- element: r.value,
81
- modeOverride: "light"
82
- }
83
- );
84
- }), (s, o) => {
85
- const $ = E("UiButton");
86
- return t(), n("div", {
87
- class: "relative grid grid-flow-col grid-rows-[auto_auto_auto] sm:grid-rows-1 sm:grid-cols-[auto_1fr_auto] items-start p-4 bg-surface-neutral-bg-main shadow-shadows-drop-shadow-lg rounded-xl gap-x-0 overflow-hidden",
88
- "data-testid": `toast-message-${String(u.id)}`,
89
- "data-colors-semantic": "light",
90
- "data-name": "ui-toast-message",
91
- onMouseenter: o[4] || (o[4] = (d) => (m.value = !0, l("mouseenter"))),
92
- onMouseleave: T
93
- }, [
94
- e.component ? (t(), n("div", {
95
- key: 0,
96
- ref_key: "Toast",
97
- ref: r,
98
- class: "flex-1 min-w-0"
99
- }, [
100
- (t(), y(P({ ...e.component }), z(H(e.componentProps)), null, 16))
101
- ], 512)) : (t(), n(h, { key: 1 }, [
102
- _.value ? (t(), n(h, { key: 0 }, [
103
- u.time ? (t(), n("div", {
104
- key: 0,
105
- ref_key: "Toast",
106
- ref: r,
107
- class: b(["absolute opacity-100 transition-opacity duration-300 h-1 bg-grey-100 top-0 left-0 w-full", {
108
- "opacity-0!": m.value
109
- }])
110
- }, [
111
- u.time ? (t(), n("div", {
112
- key: 0,
113
- class: b(["h-full w-0 ease-linear duration-1000", [c.value ? "w-full transition-all" : "transition-none", {
114
- "bg-green-600": e.type === "success",
115
- "bg-livestorm-600": e.type === "info"
116
- }]]),
117
- style: N({
118
- transitionDuration: `${e.time / 1e3}s`
119
- })
120
- }, null, 6)) : a("", !0)
121
- ], 2)) : e.progessIndeterminate ? (t(), n("div", O, [...o[5] || (o[5] = [
122
- v("div", { class: "animate-progress-indeterminate w-full h-full bg-red-600 origin-left-right" }, null, -1)
123
- ])])) : a("", !0)
124
- ], 64)) : a("", !0),
125
- v("div", W, [
126
- g.value ? (t(), n("div", {
127
- key: 0,
128
- class: b(["size-5 mr-3 shrink-0 mb-2 sm:mb-0", g.value])
129
- }, null, 2)) : a("", !0)
130
- ]),
131
- v("div", X, [
132
- e.title || e.message ? (t(), n("span", Y, f(e.title || e.message), 1)) : a("", !0),
133
- e.title && e.message ? (t(), n("p", q, f(e.message), 1)) : a("", !0),
134
- e.info ? (t(), n("p", J, f(e.info), 1)) : a("", !0)
135
- ])
136
- ], 64)),
137
- v("div", Q, [
138
- !e.locked && e.closable ? (t(), y($, {
139
- key: 0,
140
- "data-testid": `toast-close-${String(e.id)}`,
141
- color: "neutral",
142
- variant: "tertiary",
143
- icon: "i-ph-x",
144
- size: "md",
145
- "aria-label": "close",
146
- class: "-top-[10px] -right-[2px] sm:row-start-1",
147
- onClick: o[0] || (o[0] = (d) => l("close")),
148
- onKeydown: o[1] || (o[1] = S((d) => l("close"), ["enter"]))
149
- }, null, 8, ["data-testid"])) : a("", !0)
150
- ]),
151
- e.confirmLabel || e.cancelLabel ? (t(), n("div", Z, [
152
- e.confirmLabel ? (t(), y($, {
153
- key: 0,
154
- href: e.confirmHref,
155
- to: e.confirmTo,
156
- target: e.confirmHrefTarget,
157
- icon: e.confirmIcon,
158
- color: "primary",
159
- variant: "cta",
160
- class: "w-full sm:w-auto",
161
- onClick: o[2] || (o[2] = (d) => s.$emit("confirm", d))
162
- }, {
163
- default: k(() => [
164
- B(f(e.confirmLabel), 1)
165
- ]),
166
- _: 1
167
- }, 8, ["href", "to", "target", "icon"])) : a("", !0),
168
- e.cancelLabel ? (t(), y($, {
169
- key: 1,
170
- color: "neutral-invert",
171
- variant: "cta",
172
- class: "w-full sm:w-auto",
173
- onClick: o[3] || (o[3] = (d) => s.$emit("cancel"))
174
- }, {
175
- default: k(() => [
176
- B(f(e.cancelLabel), 1)
177
- ]),
178
- _: 1
179
- })) : a("", !0)
180
- ])) : a("", !0)
181
- ], 40, G);
182
- };
183
- }
184
- }), te = {
185
- key: 0,
186
- "data-testid": "layout-toasts-locked",
187
- class: "bg-alpha-black-300 fixed inset-0 z-[8000]"
188
- }, oe = 3, le = /* @__PURE__ */ I({
189
- __name: "LayoutToasts",
190
- setup(u) {
191
- const p = D();
192
- if (!p)
193
- throw new Error("No current instance found");
194
- const e = w(() => p.appContext.config.globalProperties.$responsive ?? K()), { toasts: l, closeToast: g, cancelCloseTimer: c, openToast: m } = U(), _ = w(() => l.value.some((r) => r.locked));
195
- function T(r) {
196
- const i = r.getBoundingClientRect(), { style: s } = r;
197
- s.top = `${i.top}px`, s.left = `${i.left}px`, s.width = `${i.width}px`, s.height = `${i.height}px`;
198
- }
199
- return (r, i) => (t(), n(h, null, [
200
- L(V, {
201
- duration: 200,
202
- appear: ""
203
- }, {
204
- default: k(() => [
205
- _.value ? (t(), n("div", te)) : a("", !0)
206
- ]),
207
- _: 1
208
- }),
209
- L(A, {
210
- name: "list",
211
- tag: "div",
212
- class: b([e.value?.mobile ? "m-4 right-0" : "m-8 max-w-md w-full", "fixed left-0 bottom-0 flex flex-col gap-2 z-max"]),
213
- onBeforeLeave: T
214
- }, {
215
- default: k(() => [
216
- (t(!0), n(h, null, R(x(l).slice(0, oe), (s) => (t(), n("div", {
217
- key: s.id,
218
- class: "w-full sm:max-w-[400px]"
219
- }, [
220
- L(ee, j({ ref_for: !0 }, s, {
221
- class: "bg-surface-neutral-bg-main p-3 rounded-2xl",
222
- onClose: (o) => x(g)(s.id),
223
- onMouseenter: (o) => x(c)(s.id),
224
- onMouseleave: (o) => s.time ? x(m)({ id: s.id }) : null,
225
- onConfirm: (o) => s.confirmEventHook.trigger(void 0),
226
- onCancel: (o) => s.cancelEventHook.trigger(void 0)
227
- }), null, 16, ["onClose", "onMouseenter", "onMouseleave", "onConfirm", "onCancel"])
228
- ]))), 128))
229
- ]),
230
- _: 1
231
- }, 8, ["class"])
232
- ], 64));
233
- }
1
+ import { t as e, u as t } from "./UiButton-uyW8EHRJ.mjs";
2
+ import { useResponsive as n } from "./responsive.mjs";
3
+ import { c as r } from "./toastDSV2-D3xDZPe5.mjs";
4
+ import { Fragment as i, Transition as a, TransitionGroup as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, guardReactiveProps as g, mergeProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as S, renderList as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, watch as D, withCtx as O, withKeys as k } from "vue";
5
+ //#region src/components/Toast/ToastMessage.vue?vue&type=script&setup=true&lang.ts
6
+ var A = ["data-testid"], j = {
7
+ key: 0,
8
+ class: "flex-1 min-w-0 sm:col-start-2"
9
+ }, M = {
10
+ key: 1,
11
+ class: "absolute h-1 bg-actions-neutral-idle-alpha-light top-0 left-0 w-full"
12
+ }, N = { class: "flex flex-col flex-1 sm:row-start-1 min-w-0 wrap-break-word" }, P = {
13
+ key: 0,
14
+ class: "text-content-text-md-bold text-text-neutral-base"
15
+ }, F = {
16
+ key: 2,
17
+ class: "text-content-text-md-medium text-text-neutral-secondary mt-1"
18
+ }, I = {
19
+ key: 2,
20
+ class: "row-start-1 sm:col-start-3 h-4 w-8 justify-self-end"
21
+ }, L = {
22
+ key: 3,
23
+ class: "row-start-3 col-start-1 col-end-3 w-full grid sm:flex sm:col-start-2 mt-3 gap-2 justify-self-end"
24
+ }, R = /* @__PURE__ */ m({
25
+ __name: "ToastMessage",
26
+ props: {
27
+ message: {},
28
+ messageComponent: {},
29
+ messageComponentProps: {},
30
+ id: {},
31
+ title: {},
32
+ info: {},
33
+ type: { default: "info" },
34
+ avatar: {},
35
+ time: { type: [Number, Boolean] },
36
+ progressIndeterminate: { type: Boolean },
37
+ customIcon: {},
38
+ confirmLabel: {},
39
+ confirmHref: {},
40
+ confirmHrefTarget: { default: "_blank" },
41
+ confirmTo: {},
42
+ confirmIcon: {},
43
+ confirmColor: {},
44
+ actionsSize: { default: "md" },
45
+ cancelLabel: {},
46
+ locked: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ closable: {
51
+ type: Boolean,
52
+ default: !0
53
+ },
54
+ component: {},
55
+ componentProps: {},
56
+ timerStartedAt: { default: void 0 }
57
+ },
58
+ emits: [
59
+ "close",
60
+ "confirm",
61
+ "cancel",
62
+ "mouseenter",
63
+ "mouseleave"
64
+ ],
65
+ setup(n, { emit: r }) {
66
+ let a = {
67
+ info: "primary",
68
+ alert: "error",
69
+ warning: "warning",
70
+ success: "success"
71
+ }, o = {
72
+ info: "bg-actions-primary-idle",
73
+ alert: "bg-actions-danger-idle",
74
+ warning: "bg-actions-warning-idle",
75
+ success: "bg-actions-success-idle"
76
+ }, m = n, h = r, C = s(() => {
77
+ if (m.customIcon) return m.customIcon;
78
+ switch (m.type) {
79
+ case "alert": return "i-ph-x-circle !text-text-danger-base";
80
+ case "warning": return "i-ph-warning !text-text-warning-base";
81
+ case "info": return "i-ph-info text-text-primary-base";
82
+ case "success": return "i-ph-check-circle text-text-success-base";
83
+ default: return;
84
+ }
85
+ }), E = s(() => `toast-message-${String(m.id)}`), R = s(() => m.confirmHref ? m.confirmHrefTarget : void 0), z = s(() => !!(m.message || m.messageComponent)), B = s(() => m.messageComponent ? "div" : m.title ? "p" : "span"), V = s(() => m.title ? "text-content-text-md-medium text-text-neutral-secondary" : "text-content-text-md-bold text-text-neutral-base"), H = s(() => a[m.confirmColor ?? m.type]), U = s(() => o[m.type]), W = S(!1), G = S(!1), K = s(() => m.progressIndeterminate || !!m.time);
86
+ function q() {
87
+ m.time && (W.value = !1, setTimeout(() => {
88
+ W.value = !0;
89
+ }, 100));
90
+ }
91
+ D(() => m.timerStartedAt, q);
92
+ function J() {
93
+ G.value = !1, h("mouseleave"), m.timerStartedAt === void 0 && q();
94
+ }
95
+ return q(), (r, a) => (x(), u("div", {
96
+ class: "relative grid grid-flow-col grid-rows-[auto_auto_auto] sm:grid-rows-1 sm:grid-cols-[auto_1fr_auto] items-start p-4 bg-surface-neutral-bg-main shadow-shadows-drop-shadow-2xl rounded-container gap-x-0 overflow-hidden",
97
+ "data-testid": E.value,
98
+ "data-colors-semantic": "light",
99
+ "data-name": "ui-toast-message",
100
+ onMouseenter: a[4] ||= (e) => (G.value = !0, h("mouseenter")),
101
+ onMouseleave: J
102
+ }, [
103
+ m.component ? (x(), u("div", j, [(x(), c(w(m.component), y(g(m.componentProps)), null, 16))])) : (x(), u(i, { key: 1 }, [
104
+ K.value ? (x(), u(i, { key: 0 }, [n.time ? (x(), u("div", {
105
+ key: 0,
106
+ class: v(["absolute opacity-100 transition-opacity duration-150 h-1 bg-actions-neutral-idle-alpha-light top-0 left-0 w-full", { "opacity-0!": G.value }])
107
+ }, [n.time ? (x(), u("div", {
108
+ key: 0,
109
+ "data-testid": "toast-progress",
110
+ class: v(["h-full w-0 ease-linear duration-1000", [W.value ? "w-full transition-all" : "transition-none", U.value]]),
111
+ style: b({ transitionDuration: `${m.time / 1e3}s` })
112
+ }, null, 6)) : l("", !0)], 2)) : m.progressIndeterminate ? (x(), u("div", M, [d("div", { class: v(["animate-progress-indeterminate w-full h-full origin-left-right", U.value]) }, null, 2)])) : l("", !0)], 64)) : l("", !0),
113
+ d("div", { class: v(["shrink-0", { "pl-0.5 pt-0.5": !m.avatar }]) }, [m.avatar ? (x(), c(t, _({ key: 0 }, m.avatar, {
114
+ size: "xs",
115
+ class: "mr-3 mb-2 sm:mb-0"
116
+ }), null, 16)) : C.value ? (x(), u("div", {
117
+ key: 1,
118
+ class: v(["size-4 mr-3 shrink-0 mb-2 sm:mb-0", C.value])
119
+ }, null, 2)) : l("", !0)], 2),
120
+ d("div", N, [
121
+ m.title ? (x(), u("span", P, T(m.title), 1)) : l("", !0),
122
+ z.value ? (x(), c(w(B.value), {
123
+ key: 1,
124
+ class: v(V.value)
125
+ }, {
126
+ default: O(() => [m.messageComponent ? (x(), c(w(m.messageComponent), y(_({ key: 0 }, m.messageComponentProps)), null, 16)) : (x(), u(i, { key: 1 }, [f(T(m.message), 1)], 64))]),
127
+ _: 1
128
+ }, 8, ["class"])) : l("", !0),
129
+ m.info ? (x(), u("p", F, T(m.info), 1)) : l("", !0)
130
+ ])
131
+ ], 64)),
132
+ !m.locked && m.closable ? (x(), u("div", I, [p(e, {
133
+ "data-testid": `toast-close-${String(m.id)}`,
134
+ color: "neutral",
135
+ variant: "tertiary",
136
+ icon: "i-ph-x",
137
+ size: "md",
138
+ "aria-label": "close",
139
+ class: "-top-[10px] -right-[2px] sm:row-start-1",
140
+ onClick: a[0] ||= (e) => h("close"),
141
+ onKeydown: a[1] ||= k((e) => h("close"), ["enter"])
142
+ }, null, 8, ["data-testid"])])) : l("", !0),
143
+ m.confirmLabel || m.cancelLabel ? (x(), u("div", L, [m.confirmLabel ? (x(), c(e, {
144
+ key: 0,
145
+ href: m.confirmHref,
146
+ to: m.confirmTo,
147
+ target: R.value,
148
+ icon: m.confirmIcon,
149
+ color: H.value,
150
+ size: m.actionsSize,
151
+ variant: "cta",
152
+ class: "w-full sm:w-auto",
153
+ onClick: a[2] ||= (e) => r.$emit("confirm", e)
154
+ }, {
155
+ default: O(() => [f(T(m.confirmLabel), 1)]),
156
+ _: 1
157
+ }, 8, [
158
+ "href",
159
+ "to",
160
+ "target",
161
+ "icon",
162
+ "color",
163
+ "size"
164
+ ])) : l("", !0), m.cancelLabel ? (x(), c(e, {
165
+ key: 1,
166
+ color: "neutral",
167
+ variant: "secondary",
168
+ size: m.actionsSize,
169
+ class: "w-full sm:w-auto",
170
+ onClick: a[3] ||= (e) => r.$emit("cancel")
171
+ }, {
172
+ default: O(() => [f(T(m.cancelLabel), 1)]),
173
+ _: 1
174
+ }, 8, ["size"])) : l("", !0)])) : l("", !0)
175
+ ], 40, A));
176
+ }
177
+ }), z = {
178
+ key: 0,
179
+ "data-testid": "layout-toasts-locked",
180
+ class: "bg-alpha-black-300 fixed inset-0 z-blocking"
181
+ }, B = /* @__PURE__ */ m({
182
+ __name: "LayoutToasts",
183
+ setup(e) {
184
+ let t = h();
185
+ if (!t) throw Error("No current instance found");
186
+ let c = s(() => t.appContext.config.globalProperties.$responsive ?? n()), { toasts: d, closeToast: f, cancelCloseTimer: m, restartToast: g } = r(), y = s(() => d.value.slice(0, 3)), b = s(() => y.value.some((e) => e.options.locked));
187
+ function S(e) {
188
+ let t = e.getBoundingClientRect(), { style: n } = e;
189
+ n.top = `${t.top}px`, n.left = `${t.left}px`, n.width = `${t.width}px`, n.height = `${t.height}px`;
190
+ }
191
+ return (e, t) => (x(), u(i, null, [p(a, {
192
+ duration: 200,
193
+ appear: ""
194
+ }, {
195
+ default: O(() => [b.value ? (x(), u("div", z)) : l("", !0)]),
196
+ _: 1
197
+ }), p(o, {
198
+ name: "list",
199
+ tag: "div",
200
+ role: "status",
201
+ "aria-live": "polite",
202
+ "aria-atomic": "false",
203
+ class: v([c.value?.mobile ? "m-4 left-0 right-0" : "m-8 max-w-md w-full left-0 supports-[left:anchor(--a_right)]:left-[anchor(--ui-shell-side-menu_right,0px)]", "fixed bottom-0 flex flex-col gap-2 z-max [view-transition-name:layout-toasts]"]),
204
+ onBeforeLeave: S
205
+ }, {
206
+ default: O(() => [(x(!0), u(i, null, C(y.value, (e) => (x(), u("div", {
207
+ key: e.id,
208
+ class: "w-full sm:max-w-[400px]"
209
+ }, [p(R, _({ ref_for: !0 }, e.options, {
210
+ "timer-started-at": e.timerStartedAt,
211
+ onClose: (t) => E(f)(e.id),
212
+ onMouseenter: (t) => E(m)(e.id),
213
+ onMouseleave: (t) => E(g)(e.id),
214
+ onConfirm: (t) => e.confirmEventHook.trigger(void 0),
215
+ onCancel: (t) => e.cancelEventHook.trigger(void 0)
216
+ }), null, 16, [
217
+ "timer-started-at",
218
+ "onClose",
219
+ "onMouseenter",
220
+ "onMouseleave",
221
+ "onConfirm",
222
+ "onCancel"
223
+ ])]))), 128))]),
224
+ _: 1
225
+ }, 8, ["class"])], 64));
226
+ }
234
227
  });
235
- export {
236
- le as LayoutToasts
237
- };
228
+ //#endregion
229
+ export { B as LayoutToasts };