@leaflink/stash 52.0.3 → 53.1.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 (273) hide show
  1. package/README.md +51 -52
  2. package/dist/Accordion.js +16 -16
  3. package/dist/Accordion.js.map +1 -1
  4. package/dist/AccordionGroup.js +7 -7
  5. package/dist/AccordionGroup.js.map +1 -1
  6. package/dist/ActionsDropdown.js +16 -16
  7. package/dist/ActionsDropdown.js.map +1 -1
  8. package/dist/AddressSelect.js.map +1 -1
  9. package/dist/AddressSelect.vue.d.ts +1 -1
  10. package/dist/Alert.js +34 -34
  11. package/dist/Alert.js.map +1 -1
  12. package/dist/AppNavigationItem.js +31 -31
  13. package/dist/AppNavigationItem.js.map +1 -1
  14. package/dist/AppSidebar.js +19 -19
  15. package/dist/AppSidebar.js.map +1 -1
  16. package/dist/AppTopbar.js +32 -32
  17. package/dist/AppTopbar.js.map +1 -1
  18. package/dist/Avatar.js +18 -18
  19. package/dist/Avatar.js.map +1 -1
  20. package/dist/Backdrop.js +5 -5
  21. package/dist/Backdrop.js.map +1 -1
  22. package/dist/Badge.js +38 -38
  23. package/dist/Badge.js.map +1 -1
  24. package/dist/Box.js +1 -1
  25. package/dist/{Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js → Box.vue_vue_type_script_setup_true_lang-dFFZN40_.js} +6 -6
  26. package/dist/{Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map → Box.vue_vue_type_script_setup_true_lang-dFFZN40_.js.map} +1 -1
  27. package/dist/Button.js +21 -21
  28. package/dist/Button.js.map +1 -1
  29. package/dist/ButtonGroup.js +26 -26
  30. package/dist/ButtonGroup.js.map +1 -1
  31. package/dist/Card.js +14 -14
  32. package/dist/Card.js.map +1 -1
  33. package/dist/CardContent.js +1 -1
  34. package/dist/CardContent.js.map +1 -1
  35. package/dist/CardFooter.js +1 -1
  36. package/dist/CardFooter.js.map +1 -1
  37. package/dist/CardHeader.js +4 -4
  38. package/dist/CardHeader.js.map +1 -1
  39. package/dist/CardMedia.js +20 -20
  40. package/dist/CardMedia.js.map +1 -1
  41. package/dist/Carousel.js +60 -60
  42. package/dist/Carousel.js.map +1 -1
  43. package/dist/Checkbox.js +30 -30
  44. package/dist/Checkbox.js.map +1 -1
  45. package/dist/Checkbox.vue.d.ts +0 -3
  46. package/dist/Chip.js +33 -33
  47. package/dist/Chip.js.map +1 -1
  48. package/dist/ConfirmationCodeInput.js +72 -72
  49. package/dist/ConfirmationCodeInput.js.map +1 -1
  50. package/dist/ContextSwitcher.js +27 -27
  51. package/dist/ContextSwitcher.js.map +1 -1
  52. package/dist/Copy.js +47 -48
  53. package/dist/Copy.js.map +1 -1
  54. package/dist/CurrencyInput.js +1 -1
  55. package/dist/CurrencyInput.js.map +1 -1
  56. package/dist/CurrencyInput.vue.d.ts +5 -5
  57. package/dist/DataView.js +23 -23
  58. package/dist/DataView.js.map +1 -1
  59. package/dist/DataViewFilters.js +26 -26
  60. package/dist/DataViewFilters.js.map +1 -1
  61. package/dist/DataViewSortButton.js +22 -22
  62. package/dist/DataViewSortButton.js.map +1 -1
  63. package/dist/DataViewToolbar.js +52 -52
  64. package/dist/DataViewToolbar.js.map +1 -1
  65. package/dist/DatePicker.js +10 -10
  66. package/dist/DatePicker.js.map +1 -1
  67. package/dist/DescriptionList.js +2 -2
  68. package/dist/DescriptionList.js.map +1 -1
  69. package/dist/DescriptionListDetail.js +2 -2
  70. package/dist/DescriptionListDetail.js.map +1 -1
  71. package/dist/DescriptionListGroup.js +9 -9
  72. package/dist/DescriptionListGroup.js.map +1 -1
  73. package/dist/DescriptionListTerm.js +8 -8
  74. package/dist/DescriptionListTerm.js.map +1 -1
  75. package/dist/Dialog.js +47 -47
  76. package/dist/Dialog.js.map +1 -1
  77. package/dist/Divider.js +6 -6
  78. package/dist/Divider.js.map +1 -1
  79. package/dist/Dropdown.js +20 -20
  80. package/dist/Dropdown.js.map +1 -1
  81. package/dist/EmptyState.js +26 -26
  82. package/dist/EmptyState.js.map +1 -1
  83. package/dist/Field.js +1 -1
  84. package/dist/{Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js → Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js} +17 -17
  85. package/dist/Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js.map +1 -0
  86. package/dist/FileUpload.js +47 -49
  87. package/dist/FileUpload.js.map +1 -1
  88. package/dist/FilterChip.js +20 -20
  89. package/dist/FilterChip.js.map +1 -1
  90. package/dist/FilterDrawerItem.js +13 -13
  91. package/dist/FilterDrawerItem.js.map +1 -1
  92. package/dist/FilterDropdown.js +27 -27
  93. package/dist/FilterDropdown.js.map +1 -1
  94. package/dist/FilterSelect.js +33 -33
  95. package/dist/FilterSelect.js.map +1 -1
  96. package/dist/Filters.js +29 -29
  97. package/dist/Filters.js.map +1 -1
  98. package/dist/Filters.vue.d.ts +2 -8
  99. package/dist/HttpError.js +29 -29
  100. package/dist/HttpError.js.map +1 -1
  101. package/dist/HttpError.vue.d.ts +0 -3
  102. package/dist/Icon.js +12 -12
  103. package/dist/Icon.js.map +1 -1
  104. package/dist/IconLabel.js +19 -19
  105. package/dist/IconLabel.js.map +1 -1
  106. package/dist/IconLabel.vue.d.ts +1 -1
  107. package/dist/Illustration.js +2 -2
  108. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js → Illustration.vue_vue_type_script_setup_true_lang-C1bPkWZZ.js} +4 -4
  109. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js.map → Illustration.vue_vue_type_script_setup_true_lang-C1bPkWZZ.js.map} +1 -1
  110. package/dist/Image.js +2 -2
  111. package/dist/Image.vue.d.ts +0 -3
  112. package/dist/{Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js → Image.vue_vue_type_script_setup_true_lang-CAj0FH9h.js} +11 -11
  113. package/dist/Image.vue_vue_type_script_setup_true_lang-CAj0FH9h.js.map +1 -0
  114. package/dist/InlineEdit.js +8 -8
  115. package/dist/InlineEdit.js.map +1 -1
  116. package/dist/Input.js +29 -29
  117. package/dist/Input.js.map +1 -1
  118. package/dist/InputOptions.js +87 -84
  119. package/dist/InputOptions.js.map +1 -1
  120. package/dist/InputOptions.vue.d.ts +2 -2
  121. package/dist/IntegrationIcon.js +11 -11
  122. package/dist/IntegrationIcon.js.map +1 -1
  123. package/dist/Label.js +1 -1
  124. package/dist/{Label.vue_vue_type_script_setup_true_lang-CNquF3AP.js → Label.vue_vue_type_script_setup_true_lang-xwY3X-iV.js} +16 -16
  125. package/dist/{Label.vue_vue_type_script_setup_true_lang-CNquF3AP.js.map → Label.vue_vue_type_script_setup_true_lang-xwY3X-iV.js.map} +1 -1
  126. package/dist/ListItem.js +14 -14
  127. package/dist/ListItem.js.map +1 -1
  128. package/dist/ListItem.vue.d.ts +0 -6
  129. package/dist/ListItemCell.js +9 -9
  130. package/dist/ListItemCell.js.map +1 -1
  131. package/dist/ListView.js +138 -141
  132. package/dist/ListView.js.map +1 -1
  133. package/dist/ListView.vue.d.ts +6 -40
  134. package/dist/Loading.js +8 -8
  135. package/dist/Loading.js.map +1 -1
  136. package/dist/Logo.js +1 -1
  137. package/dist/{Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js → Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js} +3 -3
  138. package/dist/{Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map → Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js.map} +1 -1
  139. package/dist/Menu.js +5 -5
  140. package/dist/Menu.js.map +1 -1
  141. package/dist/MenuItem.js +12 -12
  142. package/dist/MenuItem.js.map +1 -1
  143. package/dist/Metric.js +24 -24
  144. package/dist/Metric.js.map +1 -1
  145. package/dist/Modal.js +60 -60
  146. package/dist/Modal.js.map +1 -1
  147. package/dist/Modals.js +1 -1
  148. package/dist/Modals.js.map +1 -1
  149. package/dist/Module.js +6 -6
  150. package/dist/Module.js.map +1 -1
  151. package/dist/ModuleContent.js +16 -16
  152. package/dist/ModuleContent.js.map +1 -1
  153. package/dist/ModuleFooter.js +13 -13
  154. package/dist/ModuleFooter.js.map +1 -1
  155. package/dist/ModuleHeader.js +29 -29
  156. package/dist/ModuleHeader.js.map +1 -1
  157. package/dist/MoreActions.js +81 -84
  158. package/dist/MoreActions.js.map +1 -1
  159. package/dist/ObfuscateText.js +4 -4
  160. package/dist/ObfuscateText.js.map +1 -1
  161. package/dist/PageContent.js +13 -13
  162. package/dist/PageContent.js.map +1 -1
  163. package/dist/PageHeader.js +28 -28
  164. package/dist/PageHeader.js.map +1 -1
  165. package/dist/PageNavigation.js +1 -1
  166. package/dist/Paginate.js +45 -45
  167. package/dist/Paginate.js.map +1 -1
  168. package/dist/QuickAction.js +18 -18
  169. package/dist/QuickAction.js.map +1 -1
  170. package/dist/Radio.js +17 -17
  171. package/dist/Radio.js.map +1 -1
  172. package/dist/RadioGroup.js +121 -121
  173. package/dist/RadioGroup.js.map +1 -1
  174. package/dist/RadioNew.js +80 -80
  175. package/dist/RadioNew.js.map +1 -1
  176. package/dist/RadioNew.vue.d.ts +0 -3
  177. package/dist/RangeInput.js +2 -2
  178. package/dist/RangeInput.js.map +1 -1
  179. package/dist/SearchBar.js +9 -9
  180. package/dist/SearchBar.js.map +1 -1
  181. package/dist/SectionHeader.js +14 -14
  182. package/dist/SectionHeader.js.map +1 -1
  183. package/dist/Select.js +369 -366
  184. package/dist/Select.js.map +1 -1
  185. package/dist/SelectStatus.js +26 -26
  186. package/dist/SelectStatus.js.map +1 -1
  187. package/dist/Skeleton.js +20 -20
  188. package/dist/Skeleton.js.map +1 -1
  189. package/dist/Step.js +37 -40
  190. package/dist/Step.js.map +1 -1
  191. package/dist/Stepper.js +17 -17
  192. package/dist/Stepper.js.map +1 -1
  193. package/dist/Switch.js +57 -57
  194. package/dist/Switch.js.map +1 -1
  195. package/dist/Tab.js +17 -19
  196. package/dist/Tab.js.map +1 -1
  197. package/dist/TabPanel.js +1 -1
  198. package/dist/TabPanel.js.map +1 -1
  199. package/dist/Table.js +22 -22
  200. package/dist/Table.js.map +1 -1
  201. package/dist/TableCell.js +32 -32
  202. package/dist/TableCell.js.map +1 -1
  203. package/dist/TableHeaderCell.js +35 -35
  204. package/dist/TableHeaderCell.js.map +1 -1
  205. package/dist/TableHeaderRow.js +10 -10
  206. package/dist/TableHeaderRow.js.map +1 -1
  207. package/dist/TableRow.js +51 -51
  208. package/dist/TableRow.js.map +1 -1
  209. package/dist/Tabs.js +2 -2
  210. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-B3Irnlcd.js → Tabs.vue_vue_type_script_setup_true_lang-BVTCcK6M.js} +33 -33
  211. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BVTCcK6M.js.map +1 -0
  212. package/dist/TextEditor.js +8 -8
  213. package/dist/TextEditor.js.map +1 -1
  214. package/dist/Textarea.js +15 -15
  215. package/dist/Textarea.js.map +1 -1
  216. package/dist/Thumbnail.js +41 -41
  217. package/dist/Thumbnail.js.map +1 -1
  218. package/dist/ThumbnailEmpty.js +3 -3
  219. package/dist/ThumbnailEmpty.js.map +1 -1
  220. package/dist/ThumbnailGroup.js +22 -22
  221. package/dist/ThumbnailGroup.js.map +1 -1
  222. package/dist/Timeline.js +6 -6
  223. package/dist/Timeline.js.map +1 -1
  224. package/dist/Timeline.vue.d.ts +2 -2
  225. package/dist/TimelineItem.js +22 -22
  226. package/dist/TimelineItem.js.map +1 -1
  227. package/dist/Toast.js +29 -29
  228. package/dist/Toast.js.map +1 -1
  229. package/dist/Toast.vue.d.ts +3 -0
  230. package/dist/Toasts.js +11 -11
  231. package/dist/Toasts.js.map +1 -1
  232. package/dist/Tooltip.js +2 -81
  233. package/dist/Tooltip.js.map +1 -1
  234. package/dist/Tooltip.vue.d.ts +1 -1
  235. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-mzBLSXy3.js +84 -0
  236. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-mzBLSXy3.js.map +1 -0
  237. package/dist/components.css +2 -2
  238. package/dist/constants.d.ts +9 -9
  239. package/dist/constants.js +17 -17
  240. package/dist/constants.js.map +1 -1
  241. package/dist/directives/tooltip.js +2 -2
  242. package/dist/directives/tooltip.js.map +1 -1
  243. package/dist/floating-ui.vue-CuGrC-z8.js.map +1 -1
  244. package/dist/formatDateTime-Dz8bXV0R.js.map +1 -1
  245. package/dist/index-D6bxWkZ1.js.map +1 -1
  246. package/dist/{index-C14LhAwV.js → index-DBV9Uz0C.js} +3 -3
  247. package/dist/index-DBV9Uz0C.js.map +1 -0
  248. package/dist/index.js.map +1 -1
  249. package/dist/isValid-DN-HkCoi.js.map +1 -1
  250. package/dist/parseISO-wlfIB_QJ.js.map +1 -1
  251. package/dist/searchFuzzy-B3TsUO-V.js.map +1 -1
  252. package/dist/tailwind-base.js +4 -4
  253. package/dist/tailwind-base.js.d.ts +12 -0
  254. package/dist/tailwind-base.js.map +1 -1
  255. package/dist/toTimeZone-Coq1oPTt.js.map +1 -1
  256. package/dist/useGoogleMaps.js.map +1 -1
  257. package/dist/useSortable.js +1 -1
  258. package/dist/useValidation.js.map +1 -1
  259. package/dist/utils/helpers.js +15 -15
  260. package/dist/utils/helpers.js.map +1 -1
  261. package/package.json +12 -82
  262. package/styles/backwards-compat.css +375 -2854
  263. package/styles/main.css +8 -0
  264. package/styles/sofia-font.css +23 -27
  265. package/styles/theme.css +1033 -0
  266. package/LICENSE +0 -21
  267. package/dist/Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js.map +0 -1
  268. package/dist/Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map +0 -1
  269. package/dist/Tabs.vue_vue_type_script_setup_true_lang-B3Irnlcd.js.map +0 -1
  270. package/dist/index-C14LhAwV.js.map +0 -1
  271. package/dist/tailwind-base.d.ts +0 -333
  272. package/styles/base.css +0 -902
  273. package/tailwind-base.ts +0 -455
package/dist/CardMedia.js CHANGED
@@ -1,42 +1,42 @@
1
1
  import { defineComponent as u, ref as a, useCssModule as m, createElementBlock as l, openBlock as c, createCommentVNode as _, createElementVNode as p, normalizeClass as n, unref as d, createVNode as f } from "vue";
2
- import w from "./Icon.js";
3
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const h = {
2
+ import h from "./Icon.js";
3
+ import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const C = {
5
5
  class: "stash-card-media",
6
6
  "data-test": "stash-card-media"
7
- }, v = ["src", "alt"], C = /* @__PURE__ */ u({
7
+ }, z = ["src", "alt"], M = /* @__PURE__ */ u({
8
8
  __name: "CardMedia",
9
9
  props: {
10
10
  src: {},
11
11
  alt: {}
12
12
  },
13
13
  setup(i) {
14
- const s = a(!0), t = a(!1), o = i, r = m();
15
- return (E, e) => (c(), l("div", h, [
16
- s.value || t.value ? (c(), l("div", {
14
+ const s = a(!0), o = a(!1), t = i, r = m();
15
+ return (S, e) => (c(), l("div", C, [
16
+ s.value || o.value ? (c(), l("div", {
17
17
  key: 0,
18
- class: n([d(r).placeholder, "tw-flex tw-w-full tw-items-center tw-justify-center tw-rounded-t tw-bg-ice-200"])
18
+ class: n([d(r).placeholder, "flex w-full items-center justify-center rounded-t bg-ice-200"])
19
19
  }, [
20
- f(w, {
20
+ f(h, {
21
21
  name: "image",
22
22
  class: n(d(r).iconSize)
23
23
  }, null, 8, ["class"])
24
24
  ], 2)) : _("", !0),
25
25
  p("img", {
26
- src: o.src,
27
- class: "tw-w-full tw-rounded-t",
28
- alt: o.alt,
26
+ src: t.src,
27
+ class: "w-full rounded-t",
28
+ alt: t.alt,
29
29
  onLoad: e[0] || (e[0] = () => s.value = !1),
30
- onError: e[1] || (e[1] = () => t.value = !0)
31
- }, null, 40, v)
30
+ onError: e[1] || (e[1] = () => o.value = !0)
31
+ }, null, 40, z)
32
32
  ]));
33
33
  }
34
- }), M = "_placeholder_z4275_2", g = "_iconSize_z4275_7", x = {
35
- placeholder: M,
36
- iconSize: g
37
- }, y = {
38
- $style: x
39
- }, V = /* @__PURE__ */ z(C, [["__cssModules", y]]);
34
+ }), g = "_placeholder_1cqb9_3", x = "_iconSize_1cqb9_8", y = {
35
+ placeholder: g,
36
+ iconSize: x
37
+ }, E = {
38
+ $style: y
39
+ }, V = /* @__PURE__ */ v(M, [["__cssModules", E]]);
40
40
  export {
41
41
  V as default
42
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CardMedia.js","sources":["../src/components/CardMedia/CardMedia.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, useCssModule } from 'vue';\n\n import Icon from '../Icon/Icon.vue';\n\n export interface CardMediaProps {\n /**\n * The image source.\n */\n src: string;\n /**\n * The image alternative text.\n */\n alt?: string;\n }\n\n const isLoading = ref(true);\n\n const hasErrored = ref(false);\n\n const props = defineProps<CardMediaProps>();\n\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"stash-card-media\" data-test=\"stash-card-media\">\n <div\n v-if=\"isLoading || hasErrored\"\n :class=\"classes.placeholder\"\n class=\"tw-flex tw-w-full tw-items-center tw-justify-center tw-rounded-t tw-bg-ice-200\"\n >\n <Icon name=\"image\" :class=\"classes.iconSize\" />\n </div>\n <img\n :src=\"props.src\"\n class=\"tw-w-full tw-rounded-t\"\n :alt=\"props.alt\"\n @load=\"() => (isLoading = false)\"\n @error=\"() => (hasErrored = true)\"\n />\n </div>\n</template>\n\n<style module>\n .placeholder {\n height: 300px;\n width: 100%;\n }\n\n .iconSize {\n width: 189px;\n height: 189px;\n }\n</style>\n"],"names":["isLoading","ref","hasErrored","props","__props","classes","useCssModule"],"mappings":";;;;;;;;;;;;;AAgBE,UAAMA,IAAYC,EAAI,EAAI,GAEpBC,IAAaD,EAAI,EAAK,GAEtBE,IAAQC,GAERC,IAAUC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CardMedia.js","sources":["../src/components/CardMedia/CardMedia.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { ref, useCssModule } from 'vue';\n\n import Icon from '../Icon/Icon.vue';\n\n export interface CardMediaProps {\n /**\n * The image source.\n */\n src: string;\n /**\n * The image alternative text.\n */\n alt?: string;\n }\n\n const isLoading = ref(true);\n\n const hasErrored = ref(false);\n\n const props = defineProps<CardMediaProps>();\n\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"stash-card-media\" data-test=\"stash-card-media\">\n <div\n v-if=\"isLoading || hasErrored\"\n :class=\"classes.placeholder\"\n class=\"flex w-full items-center justify-center rounded-t bg-ice-200\"\n >\n <Icon name=\"image\" :class=\"classes.iconSize\" />\n </div>\n <img\n :src=\"props.src\"\n class=\"w-full rounded-t\"\n :alt=\"props.alt\"\n @load=\"() => (isLoading = false)\"\n @error=\"() => (hasErrored = true)\"\n />\n </div>\n</template>\n\n<style module>\n @layer utilities {\n .placeholder {\n height: 300px;\n width: 100%;\n }\n\n .iconSize {\n width: 189px;\n height: 189px;\n }\n }\n</style>\n"],"names":["isLoading","ref","hasErrored","props","__props","classes","useCssModule"],"mappings":";;;;;;;;;;;;;AAgBE,UAAMA,IAAYC,EAAI,EAAI,GAEpBC,IAAaD,EAAI,EAAK,GAEtBE,IAAQC,GAERC,IAAUC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/Carousel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, inject as b, reactive as j, ref as d, h as S, provide as M, onMounted as Ie, nextTick as Le, onUnmounted as Ee, computed as D, watch as ae, cloneVNode as ke, Fragment as B, useAttrs as je, useCssModule as Be, createElementBlock as E, openBlock as _, createVNode as De, createCommentVNode as _e, mergeProps as Re, unref as N, withCtx as G, renderList as le, createBlock as W, renderSlot as Pe, createElementVNode as Ve, normalizeClass as ie } from "vue";
1
+ import { defineComponent as F, inject as S, reactive as j, ref as d, h as w, provide as M, onMounted as Ie, nextTick as Le, onUnmounted as Ee, computed as D, watch as ae, cloneVNode as _e, Fragment as B, useAttrs as je, useCssModule as Be, createElementBlock as E, openBlock as k, createVNode as De, createCommentVNode as ke, mergeProps as Re, unref as N, withCtx as G, renderList as le, createBlock as W, renderSlot as Pe, createElementVNode as Ve, normalizeClass as ie } from "vue";
2
2
  import { t as V } from "./locale.js";
3
3
  import Ue from "./Thumbnail.js";
4
4
  import $e from "./ThumbnailGroup.js";
@@ -220,8 +220,8 @@ function Fe(e = "", n = {}) {
220
220
  var qe = F({
221
221
  name: "ARIA",
222
222
  setup() {
223
- const e = b("config", j(Object.assign({}, p))), n = b("currentSlide", d(0)), t = b("slidesCount", d(0));
224
- return () => S("div", {
223
+ const e = S("config", j(Object.assign({}, p))), n = S("currentSlide", d(0)), t = S("slidesCount", d(0));
224
+ return () => w("div", {
225
225
  class: ["carousel__liveregion", "carousel__sr-only"],
226
226
  "aria-live": "polite",
227
227
  "aria-atomic": "true"
@@ -237,9 +237,9 @@ var qe = F({
237
237
  var r;
238
238
  const i = d(null), v = d([]), m = d(0), s = d(0), l = j(Object.assign({}, p));
239
239
  let g = Object.assign({}, p), y;
240
- const c = d((r = e.modelValue) !== null && r !== void 0 ? r : 0), A = d(0), u = d(0), x = d(0), w = d(0);
241
- let k, q;
242
- M("config", l), M("slidesCount", s), M("currentSlide", c), M("maxSlide", x), M("minSlide", w), M("slideWidth", m);
240
+ const c = d((r = e.modelValue) !== null && r !== void 0 ? r : 0), A = d(0), u = d(0), x = d(0), b = d(0);
241
+ let _, q;
242
+ M("config", l), M("slidesCount", s), M("currentSlide", c), M("maxSlide", x), M("minSlide", b), M("slideWidth", m);
243
243
  function J() {
244
244
  y = Object.assign({}, e.breakpoints), g = Object.assign(Object.assign(Object.assign({}, g), e), { i18n: Object.assign(Object.assign({}, g.i18n), e.i18n), breakpoints: void 0 }), de(g);
245
245
  }
@@ -266,16 +266,16 @@ var qe = F({
266
266
  m.value = o.width / l.itemsToShow;
267
267
  }
268
268
  function $() {
269
- s.value <= 0 || (u.value = Math.ceil((s.value - 1) / 2), x.value = Xe({ config: l, slidesCount: s.value }), w.value = He({ config: l, slidesCount: s.value }), l.wrapAround || (c.value = re({
269
+ s.value <= 0 || (u.value = Math.ceil((s.value - 1) / 2), x.value = Xe({ config: l, slidesCount: s.value }), b.value = He({ config: l, slidesCount: s.value }), l.wrapAround || (c.value = re({
270
270
  val: c.value,
271
271
  max: x.value,
272
- min: w.value
272
+ min: b.value
273
273
  })));
274
274
  }
275
275
  Ie(() => {
276
276
  Le(() => R()), setTimeout(() => R(), 1e3), U(), ge(), window.addEventListener("resize", ve, { passive: !0 }), t("init");
277
277
  }), Ee(() => {
278
- q && clearTimeout(q), k && clearInterval(k), window.removeEventListener("resize", ve, {
278
+ q && clearTimeout(q), _ && clearInterval(_), window.removeEventListener("resize", ve, {
279
279
  passive: !0
280
280
  });
281
281
  });
@@ -304,19 +304,19 @@ var qe = F({
304
304
  L(c.value - f), O.x = 0, O.y = 0, K.value = !1, document.removeEventListener(T ? "touchmove" : "mousemove", pe, !0), document.removeEventListener(T ? "touchend" : "mouseup", me, !0);
305
305
  }
306
306
  function ge() {
307
- !l.autoplay || l.autoplay <= 0 || (k = setInterval(() => {
307
+ !l.autoplay || l.autoplay <= 0 || (_ = setInterval(() => {
308
308
  l.pauseAutoplayOnHover && H.value || Y();
309
309
  }, l.autoplay));
310
310
  }
311
311
  function he() {
312
- k && (clearInterval(k), k = null), ge();
312
+ _ && (clearInterval(_), _ = null), ge();
313
313
  }
314
314
  const I = d(!1);
315
315
  function L(o) {
316
316
  const h = l.wrapAround ? o : re({
317
317
  val: o,
318
318
  max: x.value,
319
- min: w.value
319
+ min: b.value
320
320
  });
321
321
  c.value === h || I.value || (t("slide-start", {
322
322
  slidingToIndex: o,
@@ -348,16 +348,16 @@ var qe = F({
348
348
  function Q() {
349
349
  L(c.value - l.itemsToScroll);
350
350
  }
351
- const we = { slideTo: L, next: Y, prev: Q };
352
- M("nav", we), M("isSliding", I);
353
- const be = D(() => Ye({
351
+ const be = { slideTo: L, next: Y, prev: Q };
352
+ M("nav", be), M("isSliding", I);
353
+ const Se = D(() => Ye({
354
354
  config: l,
355
355
  currentSlide: c.value,
356
356
  slidesCount: s.value
357
357
  }));
358
- M("slidesToScroll", be);
358
+ M("slidesToScroll", Se);
359
359
  const Oe = D(() => {
360
- const o = l.dir === "rtl" ? -1 : 1, h = be.value * m.value * o;
360
+ const o = l.dir === "rtl" ? -1 : 1, h = Se.value * m.value * o;
361
361
  return {
362
362
  transform: `translateX(${O.x - h}px)`,
363
363
  transition: `${I.value ? l.transition : 0}ms`,
@@ -365,11 +365,11 @@ var qe = F({
365
365
  width: "100%"
366
366
  };
367
367
  });
368
- function Se() {
368
+ function we() {
369
369
  J(), U(), $(), R(), he();
370
370
  }
371
371
  Object.keys(Ae).forEach((o) => {
372
- ["modelValue"].includes(o) || ae(() => e[o], Se);
372
+ ["modelValue"].includes(o) || ae(() => e[o], we);
373
373
  }), ae(() => e.modelValue, (o) => {
374
374
  o !== c.value && L(Number(o));
375
375
  }), ae(s, $), t("before-init"), J();
@@ -382,7 +382,7 @@ var qe = F({
382
382
  slideTo: L,
383
383
  currentSlide: c,
384
384
  maxSlide: x,
385
- minSlide: w,
385
+ minSlide: b,
386
386
  middleSlide: u
387
387
  };
388
388
  a({
@@ -390,11 +390,11 @@ var qe = F({
390
390
  updateSlidesData: $,
391
391
  updateSlideWidth: R,
392
392
  initDefaultConfigs: J,
393
- restartCarousel: Se,
393
+ restartCarousel: we,
394
394
  slideTo: L,
395
395
  next: Y,
396
396
  prev: Q,
397
- nav: we,
397
+ nav: be,
398
398
  data: ye
399
399
  });
400
400
  const Z = n.default || n.slides, ee = n.addons, xe = j(ye);
@@ -403,11 +403,11 @@ var qe = F({
403
403
  o.forEach((te, ne) => te.props.index = ne);
404
404
  let f = o;
405
405
  if (l.wrapAround) {
406
- const te = o.map((oe, P) => ke(oe, {
406
+ const te = o.map((oe, P) => _e(oe, {
407
407
  index: -o.length + P,
408
408
  isClone: !0,
409
409
  key: `clone-before-${P}`
410
- })), ne = o.map((oe, P) => ke(oe, {
410
+ })), ne = o.map((oe, P) => _e(oe, {
411
411
  index: o.length + P,
412
412
  isClone: !0,
413
413
  key: `clone-after-${P}`
@@ -415,13 +415,13 @@ var qe = F({
415
415
  f = [...te, ...o, ...ne];
416
416
  }
417
417
  v.value = o, s.value = Math.max(o.length, 1);
418
- const C = S("ol", {
418
+ const C = w("ol", {
419
419
  class: "carousel__track",
420
420
  style: Oe.value,
421
421
  onMousedownCapture: l.mouseDrag ? fe : null,
422
422
  onTouchstartPassiveCapture: l.touchDrag ? fe : null
423
- }, f), Te = S("div", { class: "carousel__viewport" }, C);
424
- return S("section", {
423
+ }, f), Te = w("div", { class: "carousel__viewport" }, C);
424
+ return w("section", {
425
425
  ref: i,
426
426
  class: {
427
427
  carousel: !0,
@@ -435,7 +435,7 @@ var qe = F({
435
435
  tabindex: "0",
436
436
  onMouseenter: Me,
437
437
  onMouseleave: Ne
438
- }, [Te, h, S(qe)]);
438
+ }, [Te, h, w(qe)]);
439
439
  };
440
440
  }
441
441
  }), ue;
@@ -452,11 +452,11 @@ function Qe(e) {
452
452
  return e in ue;
453
453
  }
454
454
  const ce = (e) => {
455
- const n = b("config", j(Object.assign({}, p))), t = String(e.name), a = `icon${t.charAt(0).toUpperCase() + t.slice(1)}`;
455
+ const n = S("config", j(Object.assign({}, p))), t = String(e.name), a = `icon${t.charAt(0).toUpperCase() + t.slice(1)}`;
456
456
  if (!t || typeof t != "string" || !Qe(t))
457
457
  return;
458
- const r = Ke[t], i = S("path", { d: r }), v = n.i18n[a] || e.title || t, m = S("title", v);
459
- return S("svg", {
458
+ const r = Ke[t], i = w("path", { d: r }), v = n.i18n[a] || e.title || t, m = w("title", v);
459
+ return w("svg", {
460
460
  class: "carousel__icon",
461
461
  viewBox: "0 0 24 24",
462
462
  role: "img",
@@ -465,7 +465,7 @@ const ce = (e) => {
465
465
  };
466
466
  ce.props = { name: String, title: String };
467
467
  const Ze = (e, { slots: n, attrs: t }) => {
468
- const { next: a, prev: r } = n || {}, i = b("config", j(Object.assign({}, p))), v = b("maxSlide", d(1)), m = b("minSlide", d(1)), s = b("currentSlide", d(1)), l = b("nav", {}), { dir: g, wrapAround: y, i18n: c } = i, A = g === "rtl", u = S("button", {
468
+ const { next: a, prev: r } = n || {}, i = S("config", j(Object.assign({}, p))), v = S("maxSlide", d(1)), m = S("minSlide", d(1)), s = S("currentSlide", d(1)), l = S("nav", {}), { dir: g, wrapAround: y, i18n: c } = i, A = g === "rtl", u = w("button", {
469
469
  type: "button",
470
470
  class: [
471
471
  "carousel__prev",
@@ -474,7 +474,7 @@ const Ze = (e, { slots: n, attrs: t }) => {
474
474
  ],
475
475
  "aria-label": c.ariaPreviousSlide,
476
476
  onClick: l.prev
477
- }, (r == null ? void 0 : r()) || S(ce, { name: A ? "arrowRight" : "arrowLeft" })), x = S("button", {
477
+ }, (r == null ? void 0 : r()) || w(ce, { name: A ? "arrowRight" : "arrowLeft" })), x = w("button", {
478
478
  type: "button",
479
479
  class: [
480
480
  "carousel__next",
@@ -483,7 +483,7 @@ const Ze = (e, { slots: n, attrs: t }) => {
483
483
  ],
484
484
  "aria-label": c.ariaNextSlide,
485
485
  onClick: l.next
486
- }, (a == null ? void 0 : a()) || S(ce, { name: A ? "arrowLeft" : "arrowRight" }));
486
+ }, (a == null ? void 0 : a()) || w(ce, { name: A ? "arrowLeft" : "arrowRight" }));
487
487
  return [u, x];
488
488
  };
489
489
  var et = F({
@@ -499,13 +499,13 @@ var et = F({
499
499
  }
500
500
  },
501
501
  setup(e, { slots: n }) {
502
- const t = b("config", j(Object.assign({}, p))), a = b("currentSlide", d(0)), r = b("slidesToScroll", d(0)), i = b("isSliding", d(!1)), v = D(() => e.index === a.value), m = D(() => e.index === a.value - 1), s = D(() => e.index === a.value + 1), l = D(() => {
502
+ const t = S("config", j(Object.assign({}, p))), a = S("currentSlide", d(0)), r = S("slidesToScroll", d(0)), i = S("isSliding", d(!1)), v = D(() => e.index === a.value), m = D(() => e.index === a.value - 1), s = D(() => e.index === a.value + 1), l = D(() => {
503
503
  const g = Math.floor(r.value), y = Math.ceil(r.value + t.itemsToShow - 1);
504
504
  return e.index >= g && e.index <= y;
505
505
  });
506
506
  return () => {
507
507
  var g;
508
- return S("li", {
508
+ return w("li", {
509
509
  style: { width: `${100 / t.itemsToShow}%` },
510
510
  class: {
511
511
  carousel__slide: !0,
@@ -532,7 +532,7 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
532
532
  inheritAttrs: !1,
533
533
  __name: "Carousel",
534
534
  props: {
535
- slides: { default: () => [] },
535
+ slides: {},
536
536
  autoplayInterval: { default: 0 },
537
537
  hideNavigation: { type: Boolean, default: !1 },
538
538
  hidePagination: { type: Boolean, default: !1 },
@@ -576,14 +576,14 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
576
576
  return (u = v.value) == null ? void 0 : u.prev();
577
577
  },
578
578
  slideTo: g
579
- }), (u, x) => (_(), E(B, null, [
579
+ }), (u, x) => (k(), E(B, null, [
580
580
  De(Je, Re({
581
581
  ref_key: "carouselRef",
582
582
  ref: v,
583
583
  "model-value": s.value,
584
584
  "aria-live": "polite",
585
585
  "aria-roledescription": "carousel",
586
- class: ["stash-carousel tw-mb-6", N(i).root],
586
+ class: ["stash-carousel mb-6", N(i).root],
587
587
  "data-test": "stash-carousel",
588
588
  autoplay: u.autoplayInterval,
589
589
  i18n: {
@@ -602,25 +602,25 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
602
602
  "onUpdate:modelValue": l
603
603
  }), {
604
604
  addons: G(() => [
605
- a.slides.length > 1 && !a.hideNavigation ? (_(), W(Ze, { key: 0 })) : _e("", !0)
605
+ a.slides.length > 1 && !a.hideNavigation ? (k(), W(Ze, { key: 0 })) : ke("", !0)
606
606
  ]),
607
607
  default: G(() => [
608
- (_(!0), E(B, null, le(a.slides, (w, k) => (_(), W(et, {
609
- key: w.id,
608
+ (k(!0), E(B, null, le(a.slides, (b, _) => (k(), W(et, {
609
+ key: b.id,
610
610
  "data-test": "stash-carousel|slide",
611
- class: "tw-cursor-pointer",
611
+ class: "cursor-pointer",
612
612
  onClick: c
613
613
  }, {
614
614
  default: G(() => [
615
615
  Pe(u.$slots, "slide", {
616
- slide: w,
617
- index: k
616
+ slide: b,
617
+ index: _
618
618
  }, () => [
619
619
  Ve("img", {
620
- class: ie(["tw-size-full", [{ "tw-rounded": a.roundBorders }]]),
621
- src: w.imageUrl,
620
+ class: ie(["size-full", [{ rounded: a.roundBorders }]]),
621
+ src: b.imageUrl,
622
622
  title: N(V)("ll.carousel.imageLabel", {
623
- index: k + 1,
623
+ index: _ + 1,
624
624
  total: u.slides.length
625
625
  })
626
626
  }, null, 10, tt)
@@ -631,8 +631,8 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
631
631
  ]),
632
632
  _: 3
633
633
  }, 16, ["model-value", "autoplay", "class", "i18n", "items-to-scroll", "items-to-show", "pause-autoplay-on-hover", "wrap-around"]),
634
- a.hidePagination ? _e("", !0) : (_(), E(B, { key: 0 }, [
635
- a.pagination === "tile" ? (_(), W($e, {
634
+ a.hidePagination ? ke("", !0) : (k(), E(B, { key: 0 }, [
635
+ a.pagination === "tile" ? (k(), W($e, {
636
636
  key: 0,
637
637
  "active-thumbnail": s.value,
638
638
  thumbnails: u.slides,
@@ -640,29 +640,29 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
640
640
  "onUpdate:activeThumbnail": g
641
641
  }, {
642
642
  default: G(() => [
643
- (_(!0), E(B, null, le(u.slides, (w) => (_(), W(Ue, {
644
- key: w.id,
645
- thumbnail: w,
643
+ (k(!0), E(B, null, le(u.slides, (b) => (k(), W(Ue, {
644
+ key: b.id,
645
+ thumbnail: b,
646
646
  variant: "translucent"
647
647
  }, null, 8, ["thumbnail"]))), 128))
648
648
  ]),
649
649
  _: 1
650
- }, 8, ["active-thumbnail", "thumbnails", "radius"])) : (_(), E("ul", {
650
+ }, 8, ["active-thumbnail", "thumbnails", "radius"])) : (k(), E("ul", {
651
651
  key: 1,
652
- class: ie(["tw-text-center", [!u.staticPaginationDots && "lg:tw-hidden"]]),
652
+ class: ie(["text-center", [!u.staticPaginationDots && "lg:hidden"]]),
653
653
  "data-test": "stash-carousel|pagination-dots"
654
654
  }, [
655
- (_(!0), E(B, null, le(u.slides, (w, k) => (_(), E("li", {
656
- key: w.imageUrl,
657
- class: ie(["tw-inline-block tw-rounded-full", [N(i)["pagination-dot"], [s.value === k ? "tw-bg-blue-500" : "tw-bg-blue-100"]]])
655
+ (k(!0), E(B, null, le(u.slides, (b, _) => (k(), E("li", {
656
+ key: b.imageUrl,
657
+ class: ie(["inline-block rounded-full", [N(i)["pagination-dot"], [s.value === _ ? "bg-blue-500" : "bg-blue-100"]]])
658
658
  }, null, 2))), 128))
659
659
  ], 2))
660
660
  ], 64))
661
661
  ], 64));
662
662
  }
663
- }), ot = "_root_15vkg_2", at = {
663
+ }), ot = "_root_gpzha_5", at = {
664
664
  root: ot,
665
- "pagination-dot": "_pagination-dot_15vkg_34"
665
+ "pagination-dot": "_pagination-dot_gpzha_37"
666
666
  }, lt = {
667
667
  $style: at
668
668
  }, dt = /* @__PURE__ */ ze(nt, [["__cssModules", lt]]);