@leaflink/stash 49.5.0 → 50.0.1

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 (418) hide show
  1. package/assets/icons/circle-empty.svg +1 -0
  2. package/assets/spritesheet.svg +1 -1
  3. package/dist/Accordion.js +25 -28
  4. package/dist/Accordion.js.map +1 -1
  5. package/dist/Accordion.vue.d.ts +16 -16
  6. package/dist/ActionsDropdown.js +14 -26
  7. package/dist/ActionsDropdown.js.map +1 -1
  8. package/dist/ActionsDropdown.vue.d.ts +12 -12
  9. package/dist/AddressSelect.js +22 -47
  10. package/dist/AddressSelect.js.map +1 -1
  11. package/dist/AddressSelect.vue.d.ts +45 -45
  12. package/dist/Alert.js +4 -6
  13. package/dist/Alert.js.map +1 -1
  14. package/dist/Alert.vue.d.ts +18 -18
  15. package/dist/AppNavigationItem.js +16 -19
  16. package/dist/AppNavigationItem.js.map +1 -1
  17. package/dist/AppNavigationItem.vue.d.ts +4 -4
  18. package/dist/AppSidebar.js +27 -28
  19. package/dist/AppSidebar.js.map +1 -1
  20. package/dist/AppSidebar.vue.d.ts +7 -7
  21. package/dist/AppTopbar.js +12 -17
  22. package/dist/AppTopbar.js.map +1 -1
  23. package/dist/AppTopbar.vue.d.ts +8 -8
  24. package/dist/Avatar.js +1 -1
  25. package/dist/Avatar.vue.d.ts +22 -22
  26. package/dist/Backdrop.js +1 -1
  27. package/dist/Backdrop.vue.d.ts +1 -1
  28. package/dist/Badge.js +1 -1
  29. package/dist/Badge.js.map +1 -1
  30. package/dist/Badge.vue.d.ts +36 -36
  31. package/dist/Box.js +2 -3
  32. package/dist/Box.js.map +1 -1
  33. package/dist/Box.vue.d.ts +12 -12
  34. package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js} +1 -1
  35. package/dist/{Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map → Box.vue_vue_type_script_setup_true_lang-DgJHq-09.js.map} +1 -1
  36. package/dist/Button.js +40 -27
  37. package/dist/Button.js.map +1 -1
  38. package/dist/Button.vue.d.ts +34 -27
  39. package/dist/ButtonGroup.js +1 -1
  40. package/dist/ButtonGroup.vue.d.ts +14 -14
  41. package/dist/Card.vue.d.ts +3 -3
  42. package/dist/CardContent.js +1 -1
  43. package/dist/CardContent.vue.d.ts +1 -1
  44. package/dist/CardFooter.js +1 -1
  45. package/dist/CardFooter.vue.d.ts +1 -1
  46. package/dist/CardMedia.js +11 -14
  47. package/dist/CardMedia.js.map +1 -1
  48. package/dist/Carousel.js +179 -180
  49. package/dist/Carousel.js.map +1 -1
  50. package/dist/Carousel.vue.d.ts +33 -11
  51. package/dist/Checkbox.js +38 -35
  52. package/dist/Checkbox.js.map +1 -1
  53. package/dist/Checkbox.vue.d.ts +31 -31
  54. package/dist/ChevronToggle.js +2 -10
  55. package/dist/ChevronToggle.js.map +1 -1
  56. package/dist/ChevronToggle.vue.d.ts +5 -5
  57. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js} +1 -1
  58. package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-DuvluoTi.js.map} +1 -1
  59. package/dist/Chip.js +17 -20
  60. package/dist/Chip.js.map +1 -1
  61. package/dist/Chip.vue.d.ts +32 -32
  62. package/dist/ConfirmationCodeInput.js +1 -1
  63. package/dist/ConfirmationCodeInput.js.map +1 -1
  64. package/dist/ConfirmationCodeInput.vue.d.ts +29 -29
  65. package/dist/ContextSwitcher.js +8 -14
  66. package/dist/ContextSwitcher.js.map +1 -1
  67. package/dist/ContextSwitcher.vue.d.ts +32 -32
  68. package/dist/Copy.js +23 -34
  69. package/dist/Copy.js.map +1 -1
  70. package/dist/Copy.vue.d.ts +9 -9
  71. package/dist/CurrencyInput.js +117 -128
  72. package/dist/CurrencyInput.js.map +1 -1
  73. package/dist/CurrencyInput.vue.d.ts +26 -21
  74. package/dist/CustomRender.vue.d.ts +12 -1
  75. package/dist/DataView.js +70 -73
  76. package/dist/DataView.js.map +1 -1
  77. package/dist/{DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js → DataView.keys-C7eaZg2G.js} +5 -8
  78. package/dist/DataView.keys-C7eaZg2G.js.map +1 -0
  79. package/dist/DataView.vue.d.ts +51 -51
  80. package/dist/DataViewFilters.js +76 -90
  81. package/dist/DataViewFilters.js.map +1 -1
  82. package/dist/{DataViewFilters.keys-c80ffabe.js → DataViewFilters.keys-BLu07FiP.js} +1 -1
  83. package/dist/{DataViewFilters.keys-c80ffabe.js.map → DataViewFilters.keys-BLu07FiP.js.map} +1 -1
  84. package/dist/DataViewFilters.vue.d.ts +39 -39
  85. package/dist/DataViewSortButton.js +30 -43
  86. package/dist/DataViewSortButton.js.map +1 -1
  87. package/dist/DataViewSortButton.vue.d.ts +3 -3
  88. package/dist/DataViewToolbar.js +27 -36
  89. package/dist/DataViewToolbar.js.map +1 -1
  90. package/dist/DataViewToolbar.vue.d.ts +17 -17
  91. package/dist/DatePicker.js +649 -662
  92. package/dist/DatePicker.js.map +1 -1
  93. package/dist/DatePicker.vue.d.ts +73 -73
  94. package/dist/DescriptionList.js +1 -1
  95. package/dist/{DescriptionList.keys-c906ce05.js → DescriptionList.keys-BHlHYV6b.js} +1 -1
  96. package/dist/{DescriptionList.keys-c906ce05.js.map → DescriptionList.keys-BHlHYV6b.js.map} +1 -1
  97. package/dist/DescriptionList.vue.d.ts +6 -6
  98. package/dist/DescriptionListDetail.js +1 -1
  99. package/dist/DescriptionListDetail.vue.d.ts +1 -1
  100. package/dist/DescriptionListGroup.js +1 -1
  101. package/dist/DescriptionListGroup.vue.d.ts +1 -1
  102. package/dist/DescriptionListTerm.js +1 -1
  103. package/dist/DescriptionListTerm.vue.d.ts +1 -1
  104. package/dist/Dialog.js +26 -30
  105. package/dist/Dialog.js.map +1 -1
  106. package/dist/Dialog.vue.d.ts +34 -34
  107. package/dist/Divider.js +1 -1
  108. package/dist/Divider.js.map +1 -1
  109. package/dist/Divider.vue.d.ts +1 -1
  110. package/dist/Dropdown.js +21 -28
  111. package/dist/Dropdown.js.map +1 -1
  112. package/dist/Dropdown.vue.d.ts +28 -28
  113. package/dist/EmptyState.js +32 -33
  114. package/dist/EmptyState.js.map +1 -1
  115. package/dist/EmptyState.vue.d.ts +36 -36
  116. package/dist/Expand.js +2 -3
  117. package/dist/Expand.js.map +1 -1
  118. package/dist/Expand.vue.d.ts +14 -14
  119. package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js} +1 -1
  120. package/dist/{Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map → Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map} +1 -1
  121. package/dist/Field.js +2 -7
  122. package/dist/Field.js.map +1 -1
  123. package/dist/Field.vue.d.ts +30 -30
  124. package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js} +2 -2
  125. package/dist/{Field.vue_vue_type_script_setup_true_lang-fded4f75.js.map → Field.vue_vue_type_script_setup_true_lang-DjxUvSRF.js.map} +1 -1
  126. package/dist/FileUpload.js +58 -57
  127. package/dist/FileUpload.js.map +1 -1
  128. package/dist/FileUpload.vue.d.ts +28 -28
  129. package/dist/FilterChip.js +12 -17
  130. package/dist/FilterChip.js.map +1 -1
  131. package/dist/FilterChip.vue.d.ts +19 -19
  132. package/dist/FilterDrawerItem.js +24 -30
  133. package/dist/FilterDrawerItem.js.map +1 -1
  134. package/dist/FilterDrawerItem.vue.d.ts +2 -2
  135. package/dist/FilterDropdown.js +41 -57
  136. package/dist/FilterDropdown.js.map +1 -1
  137. package/dist/FilterDropdown.vue.d.ts +9 -9
  138. package/dist/FilterSelect.js +36 -45
  139. package/dist/FilterSelect.js.map +1 -1
  140. package/dist/FilterSelect.vue.d.ts +5 -5
  141. package/dist/Filters.js +60 -96
  142. package/dist/Filters.js.map +1 -1
  143. package/dist/Filters.vue.d.ts +2005 -2294
  144. package/dist/HttpError.js +16 -23
  145. package/dist/HttpError.js.map +1 -1
  146. package/dist/HttpError.vue.d.ts +18 -18
  147. package/dist/Icon.js +28 -22
  148. package/dist/Icon.js.map +1 -1
  149. package/dist/Icon.vue.d.ts +13 -13
  150. package/dist/IconLabel.js +9 -12
  151. package/dist/IconLabel.js.map +1 -1
  152. package/dist/IconLabel.vue.d.ts +17 -17
  153. package/dist/Illustration.js +8 -11
  154. package/dist/Illustration.js.map +1 -1
  155. package/dist/Illustration.vue.d.ts +21 -21
  156. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js} +2 -2
  157. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map → Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map} +1 -1
  158. package/dist/Image.js.map +1 -1
  159. package/dist/Image.vue.d.ts +18 -18
  160. package/dist/InlineEdit.js +19 -30
  161. package/dist/InlineEdit.js.map +1 -1
  162. package/dist/InlineEdit.vue.d.ts +26 -26
  163. package/dist/Input.js +58 -64
  164. package/dist/Input.js.map +1 -1
  165. package/dist/Input.vue.d.ts +44 -36
  166. package/dist/InputOptions.js +66 -93
  167. package/dist/InputOptions.js.map +1 -1
  168. package/dist/InputOptions.vue.d.ts +66 -58
  169. package/dist/IntegrationIcon.js +2 -2
  170. package/dist/IntegrationIcon.js.map +1 -1
  171. package/dist/IntegrationIcon.vue.d.ts +12 -12
  172. package/dist/Label.js +2 -5
  173. package/dist/Label.js.map +1 -1
  174. package/dist/Label.vue.d.ts +17 -17
  175. package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js} +1 -1
  176. package/dist/{Label.vue_vue_type_script_setup_true_lang-b6ba2f02.js.map → Label.vue_vue_type_script_setup_true_lang-C4JKdqvC.js.map} +1 -1
  177. package/dist/LicenseChip.js +10 -16
  178. package/dist/LicenseChip.js.map +1 -1
  179. package/dist/LicenseChip.vue.d.ts +3 -3
  180. package/dist/ListItem.js +5 -8
  181. package/dist/ListItem.js.map +1 -1
  182. package/dist/ListItem.vue.d.ts +275 -225
  183. package/dist/ListItemCell.js +1 -1
  184. package/dist/ListItemCell.js.map +1 -1
  185. package/dist/ListItemCell.vue.d.ts +13 -2
  186. package/dist/ListView.js +57 -101
  187. package/dist/ListView.js.map +1 -1
  188. package/dist/ListView.vue.d.ts +5185 -5430
  189. package/dist/Loading.js +12 -10
  190. package/dist/Loading.js.map +1 -1
  191. package/dist/Loading.vue.d.ts +1 -1
  192. package/dist/Logo.js +2 -4
  193. package/dist/Logo.js.map +1 -1
  194. package/dist/Logo.vue.d.ts +17 -17
  195. package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js} +1 -1
  196. package/dist/{Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map → Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map} +1 -1
  197. package/dist/Menu.js +1 -1
  198. package/dist/Menu.vue.d.ts +1 -1
  199. package/dist/MenuItem.js +1 -1
  200. package/dist/MenuItem.vue.d.ts +1 -1
  201. package/dist/{MenusPlugin-9288029a.js → MenusPlugin-Bk6UW6o9.js} +1 -1
  202. package/dist/{MenusPlugin-9288029a.js.map → MenusPlugin-Bk6UW6o9.js.map} +1 -1
  203. package/dist/Metric.vue.d.ts +10 -10
  204. package/dist/Modal.js +27 -32
  205. package/dist/Modal.js.map +1 -1
  206. package/dist/Modal.vue.d.ts +42 -42
  207. package/dist/Modals.js +14 -16
  208. package/dist/Modals.js.map +1 -1
  209. package/dist/Modals.vue.d.ts +1 -1
  210. package/dist/ModalsPlugin.js +9 -12
  211. package/dist/ModalsPlugin.js.map +1 -1
  212. package/dist/Module.js +3 -3
  213. package/dist/{Module.keys-2cc7d830.js → Module.keys-CEsrW2f0.js} +1 -1
  214. package/dist/{Module.keys-2cc7d830.js.map → Module.keys-CEsrW2f0.js.map} +1 -1
  215. package/dist/{Module.types-3f78f2a0.js → Module.types-B1FfGGac.js} +1 -1
  216. package/dist/{Module.types-3f78f2a0.js.map → Module.types-B1FfGGac.js.map} +1 -1
  217. package/dist/Module.vue.d.ts +3 -3
  218. package/dist/ModuleContent.js +2 -2
  219. package/dist/ModuleContent.vue.d.ts +1 -1
  220. package/dist/ModuleFooter.js +2 -2
  221. package/dist/ModuleFooter.vue.d.ts +1 -1
  222. package/dist/ModuleHeader.js +3 -3
  223. package/dist/ModuleHeader.vue.d.ts +15 -15
  224. package/dist/ObfuscateText.js +8 -13
  225. package/dist/ObfuscateText.js.map +1 -1
  226. package/dist/ObfuscateText.vue.d.ts +18 -18
  227. package/dist/PageContent.js +1 -1
  228. package/dist/PageContent.vue.d.ts +1 -1
  229. package/dist/PageHeader.js +26 -23
  230. package/dist/PageHeader.js.map +1 -1
  231. package/dist/PageHeader.vue.d.ts +7 -4
  232. package/dist/PageNavigation.js +41 -64
  233. package/dist/PageNavigation.js.map +1 -1
  234. package/dist/PageNavigation.vue.d.ts +10 -10
  235. package/dist/Paginate.js +36 -34
  236. package/dist/Paginate.js.map +1 -1
  237. package/dist/Paginate.vue.d.ts +11 -11
  238. package/dist/PlaidLink.js +3 -5
  239. package/dist/PlaidLink.js.map +1 -1
  240. package/dist/PlaidLink.vue.d.ts +29 -29
  241. package/dist/QuickAction.js +12 -15
  242. package/dist/QuickAction.js.map +1 -1
  243. package/dist/QuickAction.vue.d.ts +1 -1
  244. package/dist/Radio.js +1 -1
  245. package/dist/Radio.js.map +1 -1
  246. package/dist/Radio.vue.d.ts +83 -12
  247. package/dist/RadioGroup.js +41 -45
  248. package/dist/RadioGroup.js.map +1 -1
  249. package/dist/{RadioGroup.keys-974818d6.js → RadioGroup.keys-CqfiKkNz.js} +1 -1
  250. package/dist/{RadioGroup.keys-974818d6.js.map → RadioGroup.keys-CqfiKkNz.js.map} +1 -1
  251. package/dist/RadioGroup.vue.d.ts +30 -30
  252. package/dist/RadioNew.js +2 -2
  253. package/dist/RadioNew.js.map +1 -1
  254. package/dist/RadioNew.vue.d.ts +26 -26
  255. package/dist/RangeInput.js +10 -14
  256. package/dist/RangeInput.js.map +1 -1
  257. package/dist/RangeInput.vue.d.ts +1 -1
  258. package/dist/SearchBar.js +31 -41
  259. package/dist/SearchBar.js.map +1 -1
  260. package/dist/SearchBar.vue.d.ts +22 -22
  261. package/dist/Select.js +66 -78
  262. package/dist/Select.js.map +1 -1
  263. package/dist/Select.vue.d.ts +123 -123
  264. package/dist/SelectStatus.js +47 -69
  265. package/dist/SelectStatus.js.map +1 -1
  266. package/dist/SelectStatus.vue.d.ts +33 -26
  267. package/dist/Skeleton.js +1 -1
  268. package/dist/Skeleton.js.map +1 -1
  269. package/dist/Skeleton.vue.d.ts +9 -9
  270. package/dist/Step.js +10 -14
  271. package/dist/Step.js.map +1 -1
  272. package/dist/Step.vue.d.ts +21 -21
  273. package/dist/Stepper.js +37 -40
  274. package/dist/Stepper.js.map +1 -1
  275. package/dist/Stepper.vue.d.ts +34 -29
  276. package/dist/Switch.js +1 -1
  277. package/dist/Switch.vue.d.ts +23 -23
  278. package/dist/Tab.js +21 -36
  279. package/dist/Tab.js.map +1 -1
  280. package/dist/Table.js +38 -55
  281. package/dist/Table.js.map +1 -1
  282. package/dist/Table.keys-LHQf6FEH.js +7 -0
  283. package/dist/{Table.keys-83e4f09b.js.map → Table.keys-LHQf6FEH.js.map} +1 -1
  284. package/dist/Table.vue.d.ts +36 -36
  285. package/dist/TableCell.js +26 -26
  286. package/dist/TableCell.js.map +1 -1
  287. package/dist/TableCell.vue.d.ts +6 -6
  288. package/dist/TableHeaderCell.js +6 -13
  289. package/dist/TableHeaderCell.js.map +1 -1
  290. package/dist/TableHeaderCell.vue.d.ts +3 -3
  291. package/dist/TableHeaderRow.js +22 -32
  292. package/dist/TableHeaderRow.js.map +1 -1
  293. package/dist/TableHeaderRow.vue.d.ts +8 -8
  294. package/dist/TableRow.js +59 -59
  295. package/dist/TableRow.js.map +1 -1
  296. package/dist/TableRow.vue.d.ts +26 -26
  297. package/dist/Tabs.js +10 -24
  298. package/dist/Tabs.js.map +1 -1
  299. package/dist/Tabs.vue.d.ts +5 -5
  300. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js → Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js} +31 -34
  301. package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -0
  302. package/dist/TextEditor.js +1269 -1364
  303. package/dist/TextEditor.js.map +1 -1
  304. package/dist/TextEditor.vue.d.ts +46 -46
  305. package/dist/Textarea.js +30 -31
  306. package/dist/Textarea.js.map +1 -1
  307. package/dist/Textarea.vue.d.ts +34 -26
  308. package/dist/Timeline.js +9 -10
  309. package/dist/Timeline.js.map +1 -1
  310. package/dist/Timeline.vue.d.ts +6 -6
  311. package/dist/TimelineItem.js +1 -1
  312. package/dist/TimelineItem.vue.d.ts +1 -1
  313. package/dist/Toast.js +5 -9
  314. package/dist/Toast.js.map +1 -1
  315. package/dist/Toast.vue.d.ts +3 -3
  316. package/dist/Toasts.js +15 -25
  317. package/dist/Toasts.js.map +1 -1
  318. package/dist/Toasts.vue.d.ts +1 -1
  319. package/dist/ToastsPlugin.js +11 -23
  320. package/dist/ToastsPlugin.js.map +1 -1
  321. package/dist/Tooltip.js +1 -1
  322. package/dist/Tooltip.js.map +1 -1
  323. package/dist/Tooltip.vue.d.ts +15 -15
  324. package/dist/{_commonjsHelpers-10dfc225.js → _commonjsHelpers-DaMA6jEr.js} +1 -1
  325. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  326. package/dist/{_plugin-vue_export-helper-dad06003.js → _plugin-vue_export-helper-CHgC5LLL.js} +1 -1
  327. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  328. package/dist/{colors-8d9b9429.js → colors-DDDVvqfQ.js} +1 -1
  329. package/dist/{colors-8d9b9429.js.map → colors-DDDVvqfQ.js.map} +1 -1
  330. package/dist/components.css +2 -2
  331. package/dist/directives/observe.js.map +1 -1
  332. package/dist/directives/sticky.js.map +1 -1
  333. package/dist/directives/tooltip.js +21 -27
  334. package/dist/directives/tooltip.js.map +1 -1
  335. package/dist/directives/viewable.js +1 -1
  336. package/dist/directives/viewable.js.map +1 -1
  337. package/dist/{floating-ui.vue-8d7f7932.js → floating-ui.vue-BmfQDqE-.js} +2 -3
  338. package/dist/{floating-ui.vue-8d7f7932.js.map → floating-ui.vue-BmfQDqE-.js.map} +1 -1
  339. package/dist/{formatDateTime-a5e70901.js → formatDateTime-C8CYECpd.js} +8 -12
  340. package/dist/{formatDateTime-a5e70901.js.map → formatDateTime-C8CYECpd.js.map} +1 -1
  341. package/dist/{index-9e1095ef.js → index-D6bxWkZ1.js} +2 -3
  342. package/dist/{index-9e1095ef.js.map → index-D6bxWkZ1.js.map} +1 -1
  343. package/dist/index.d.ts +1 -1
  344. package/dist/index.js +90 -112
  345. package/dist/index.js.map +1 -1
  346. package/dist/{isDefined-2ce6cde4.js → isDefined-DzVx0B6k.js} +1 -1
  347. package/dist/{isDefined-2ce6cde4.js.map → isDefined-DzVx0B6k.js.map} +1 -1
  348. package/dist/{isValid-4b2b7a54.js → isValid-DN-HkCoi.js} +1 -1
  349. package/dist/{isValid-4b2b7a54.js.map → isValid-DN-HkCoi.js.map} +1 -1
  350. package/dist/{keys-241d03b7.js → keys-BEdEsanp.js} +1 -1
  351. package/dist/{keys-241d03b7.js.map → keys-BEdEsanp.js.map} +1 -1
  352. package/dist/{keys-7ecef029.js → keys-C8Zfr_By.js} +1 -1
  353. package/dist/{keys-7ecef029.js.map → keys-C8Zfr_By.js.map} +1 -1
  354. package/dist/{misc-76697f61.js → misc-CHQs-G03.js} +1 -1
  355. package/dist/{misc-76697f61.js.map → misc-CHQs-G03.js.map} +1 -1
  356. package/dist/{parseISO-ed4094c1.js → parseISO-wlfIB_QJ.js} +12 -18
  357. package/dist/{parseISO-ed4094c1.js.map → parseISO-wlfIB_QJ.js.map} +1 -1
  358. package/dist/{searchFuzzy-9b74ec4e.js → searchFuzzy-DKooyZM8.js} +110 -149
  359. package/dist/{searchFuzzy-9b74ec4e.js.map → searchFuzzy-DKooyZM8.js.map} +1 -1
  360. package/dist/{statusLevels-a8b041f4.js → statusLevels-D8EgtE_L.js} +1 -1
  361. package/dist/{statusLevels-a8b041f4.js.map → statusLevels-D8EgtE_L.js.map} +1 -1
  362. package/dist/storage.js +8 -15
  363. package/dist/storage.js.map +1 -1
  364. package/dist/tailwind-base.js.map +1 -1
  365. package/dist/{toTimeZone-a2ed6470.js → toTimeZone-CVE1ZmsS.js} +1 -1
  366. package/dist/{toTimeZone-a2ed6470.js.map → toTimeZone-CVE1ZmsS.js.map} +1 -1
  367. package/dist/useDialog.js +7 -7
  368. package/dist/useGoogleMaps.js +18 -28
  369. package/dist/useGoogleMaps.js.map +1 -1
  370. package/dist/useModals.js +1 -2
  371. package/dist/useModals.js.map +1 -1
  372. package/dist/useScriptTag.js.map +1 -1
  373. package/dist/useSearch.js +14 -19
  374. package/dist/useSearch.js.map +1 -1
  375. package/dist/useStepper.js.map +1 -1
  376. package/dist/useValidation.js +1 -1
  377. package/dist/useValidation.js.map +1 -1
  378. package/dist/utils/calculateElementOverflow.js +9 -13
  379. package/dist/utils/calculateElementOverflow.js.map +1 -1
  380. package/dist/utils/colorScheme.js.map +1 -1
  381. package/dist/utils/createQueryString.js +4 -5
  382. package/dist/utils/createQueryString.js.map +1 -1
  383. package/dist/utils/createValidDate.js +2 -2
  384. package/dist/utils/formatDateTime.js +4 -5
  385. package/dist/utils/formatDateTime.js.map +1 -1
  386. package/dist/utils/getContrastingTextColor.js +1 -1
  387. package/dist/utils/getContrastingTextColor.js.map +1 -1
  388. package/dist/utils/helpers.js.map +1 -1
  389. package/dist/utils/i18n.js +25 -26
  390. package/dist/utils/i18n.js.map +1 -1
  391. package/dist/utils/normalizeDate.js +1 -1
  392. package/dist/utils/searchFuzzy.js +3 -10
  393. package/dist/utils/searchFuzzy.js.map +1 -1
  394. package/dist/utils/storage.js +6 -11
  395. package/dist/utils/storage.js.map +1 -1
  396. package/dist/utils/toTimeZone.js +2 -3
  397. package/dist/utils/toTimeZone.js.map +1 -1
  398. package/package.json +13 -14
  399. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js +0 -17
  400. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js.map +0 -1
  401. package/dist/Carousel.types.d.ts +0 -33
  402. package/dist/Carousel.types.js +0 -2
  403. package/dist/Carousel.types.js.map +0 -1
  404. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js +0 -9
  405. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js.map +0 -1
  406. package/dist/DataView.vue_used_vue_type_style_index_0_lang.module-5c180dba.js.map +0 -1
  407. package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js +0 -8
  408. package/dist/EmptyState.vue_used_vue_type_style_index_0_lang.module-f5d89366.js.map +0 -1
  409. package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js +0 -11
  410. package/dist/Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js.map +0 -1
  411. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js +0 -8
  412. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js.map +0 -1
  413. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js +0 -11
  414. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js.map +0 -1
  415. package/dist/Table.keys-83e4f09b.js +0 -27
  416. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-d7530989.js.map +0 -1
  417. package/dist/_commonjsHelpers-10dfc225.js.map +0 -1
  418. package/dist/_plugin-vue_export-helper-dad06003.js.map +0 -1
package/dist/HttpError.js CHANGED
@@ -1,16 +1,9 @@
1
- import { defineComponent as B, useCssModule as b, useSlots as z, computed as s, resolveComponent as S, openBlock as m, createElementBlock as _, normalizeClass as n, unref as i, createElementVNode as o, createVNode as p, withCtx as h, toDisplayString as a, createTextVNode as c, renderSlot as V, createCommentVNode as X } from "vue";
1
+ import { defineComponent as B, useCssModule as b, useSlots as z, computed as l, resolveComponent as S, openBlock as _, createElementBlock as m, normalizeClass as n, unref as s, createElementVNode as o, createVNode as p, withCtx as h, toDisplayString as a, createTextVNode as c, renderSlot as V, createCommentVNode as X } from "vue";
2
2
  import { t } from "./locale.js";
3
3
  import I from "./Button.js";
4
- import { _ as N, I as $, V as M } from "./Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js";
5
- import { _ as T } from "./Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js";
6
- import { _ as D } from "./_plugin-vue_export-helper-dad06003.js";
7
- import "lodash-es/get";
8
- import "./Icon.js";
9
- import "lodash-es/uniqueId";
10
- import "./index-9e1095ef.js";
11
- import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
12
- import "./Button.vue_used_vue_type_style_index_0_lang.module-4dabc2a9.js";
13
- import "@leaflink/snitch";
4
+ import { _ as N, I as $, V as M } from "./Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js";
5
+ import { _ as T } from "./Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js";
6
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
7
  const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class: "tw-mb-8 tw-text-white" }, F = { class: "tw-mb-4 tw-text-white" }, R = ["href"], Y = {
15
8
  key: 0,
16
9
  class: "tw-flex tw-items-start tw-gap-6"
@@ -58,15 +51,15 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
58
51
  title: t("ll.httpError.504.title"),
59
52
  description: t("ll.httpError.504.description")
60
53
  }
61
- }, r = f, l = b(), w = z(), E = s(() => r.errorCode.toString()), g = s(() => parseInt(E.value, 10)), u = s(() => d[g.value] || d[500]), v = s(() => r.title || u.value.title), y = s(() => r.description || u.value.description), k = s(() => !r.hideLogoutButton && r.onLogout), C = s(() => r.retryLink || window.location.href);
54
+ }, r = f, i = b(), w = z(), E = l(() => r.errorCode.toString()), g = l(() => parseInt(E.value, 10)), u = l(() => d[g.value] || d[500]), v = l(() => r.title || u.value.title), y = l(() => r.description || u.value.description), k = l(() => !r.hideLogoutButton && r.onLogout), C = l(() => r.retryLink || window.location.href);
62
55
  return (x, e) => {
63
56
  const L = S("router-link");
64
- return m(), _("div", {
65
- class: n(["stash-http-error tw-px-6 tw-py-12", i(l).root]),
57
+ return _(), m("div", {
58
+ class: n(["stash-http-error tw-px-6 tw-py-12", s(i).root]),
66
59
  "data-test": "stash-http-error"
67
60
  }, [
68
61
  o("div", {
69
- class: n(i(l).wrapper)
62
+ class: n(s(i).wrapper)
70
63
  }, [
71
64
  p(L, {
72
65
  to: "/",
@@ -81,10 +74,10 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
81
74
  _: 1
82
75
  }),
83
76
  o("div", {
84
- class: n(["tw-mb-8 tw-gap-6", i(l).content])
77
+ class: n(["tw-mb-8 tw-gap-6", s(i).content])
85
78
  }, [
86
79
  o("div", {
87
- class: n(["tw-order-2 lg:tw-order-1", i(l).content__text])
80
+ class: n(["tw-order-2 lg:tw-order-1", s(i).content__text])
88
81
  }, [
89
82
  o("h1", H, a(v.value), 1),
90
83
  o("h2", j, "Error Code: " + a(r.errorCode), 1),
@@ -103,16 +96,16 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
103
96
  ])
104
97
  ], 2),
105
98
  o("div", {
106
- class: n(["tw-order-1 lg:tw-order-2", i(l).illustration])
99
+ class: n(["tw-order-1 lg:tw-order-2", s(i).illustration])
107
100
  }, [
108
101
  p(N, {
109
102
  size: 300,
110
- type: i($).Vignette,
111
- name: i(M).SearchStorefront
103
+ type: s($).Vignette,
104
+ name: s(M).SearchStorefront
112
105
  }, null, 8, ["type", "name"])
113
106
  ], 2)
114
107
  ], 2),
115
- i(w).actions || k.value ? (m(), _("div", Y, [
108
+ s(w).actions || k.value ? (_(), m("div", Y, [
116
109
  V(x.$slots, "actions", {}, () => [
117
110
  p(I, {
118
111
  tertiary: "",
@@ -137,8 +130,8 @@ const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class:
137
130
  content__text: O
138
131
  }, Q = {
139
132
  $style: P
140
- }, at = /* @__PURE__ */ D(q, [["__cssModules", Q]]);
133
+ }, et = /* @__PURE__ */ D(q, [["__cssModules", Q]]);
141
134
  export {
142
- at as default
135
+ et as default
143
136
  };
144
137
  //# sourceMappingURL=HttpError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HttpError.js","sources":["../src/components/HttpError/HttpError.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, useCssModule, useSlots } from 'vue';\n\n import { t } from '../../locale';\n import Button from '../Button/Button.vue';\n import { IllustrationType, VignetteName } from '../Illustration/Illustration.models';\n import Illustration from '../Illustration/Illustration.vue';\n import Logo from '../Logo/Logo.vue';\n\n type ErrorCodes = 401 | 403 | 404 | 405 | 500 | 502 | 503 | 504;\n const errors: Record<ErrorCodes, { title: string; description: string }> = {\n 401: {\n title: t('ll.httpError.401.title'),\n description: t('ll.httpError.401.description'),\n },\n 403: {\n title: t('ll.httpError.403.title'),\n description: t('ll.httpError.403.description'),\n },\n 404: {\n title: t('ll.httpError.404.title'),\n description: t('ll.httpError.404.description'),\n },\n 405: {\n title: t('ll.httpError.405.title'),\n description: t('ll.httpError.405.description'),\n },\n 500: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 502: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 503: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 504: {\n title: t('ll.httpError.504.title'),\n description: t('ll.httpError.504.description'),\n },\n };\n\n export interface HttpErrorProps {\n /**\n * A description of what possibly happened.\n */\n description?: string;\n\n /**\n * The error code.\n */\n errorCode: keyof typeof errors | `${keyof typeof errors}`;\n\n /**\n * By default, the logout button is visible unless content is provided to the `actions` slot or\n * this prop is `true`.\n */\n hideLogoutButton?: boolean;\n\n /**\n * A callback that will be called when the user clicks the logout button. If not provided,\n * a `logout` event will be emitted.\n */\n onLogout?: () => void;\n\n /**\n * A link to redirect the user to see if a hard refresh fixes the issue.\n */\n retryLink?: string;\n\n /**\n * The error title.\n */\n title?: string;\n }\n\n const props = withDefaults(defineProps<HttpErrorProps>(), {\n description: '',\n errorCode: '404',\n onLogout: undefined,\n hideLogoutButton: false,\n retryLink: undefined,\n title: '',\n });\n\n const classes = useCssModule();\n const slots = useSlots();\n\n const errorCodeStr = computed(() => props.errorCode.toString());\n const errorCodeInt = computed(() => parseInt(errorCodeStr.value, 10));\n const defaultInfoByErrorCode = computed(() => errors[errorCodeInt.value] || errors['500']);\n const errorTitle = computed(() => props.title || defaultInfoByErrorCode.value.title);\n const errorDescription = computed(() => props.description || defaultInfoByErrorCode.value.description);\n\n const showLogoutButton = computed(() => !props.hideLogoutButton && props.onLogout);\n const computedRetryLink = computed(() => props.retryLink || window.location.href);\n</script>\n\n<template>\n <div class=\"stash-http-error tw-px-6 tw-py-12\" :class=\"classes.root\" data-test=\"stash-http-error\">\n <div :class=\"classes.wrapper\">\n <router-link to=\"/\" class=\"tw-mb-8 tw-block\">\n <Logo color=\"white\" width=\"192\" />\n </router-link>\n\n <div class=\"tw-mb-8 tw-gap-6\" :class=\"classes.content\">\n <div class=\"tw-order-2 lg:tw-order-1\" :class=\"classes.content__text\">\n <h1 class=\"heading-jumbo tw-m-0 tw-mb-3 !tw-text-white\">\n {{ errorTitle }}\n </h1>\n <h2 class=\"tw-mb-8 tw-text-white\">Error Code: {{ props.errorCode }}</h2>\n <p class=\"tw-mb-4 tw-text-white\">\n {{ errorDescription }} You can <a :href=\"computedRetryLink\" class=\"link\">try again</a> or reach out to\n <a href=\"mailto:support@leaflink.com\" class=\"link\">support@leaflink.com</a> for assistance.\n </p>\n </div>\n <div class=\"tw-order-1 lg:tw-order-2\" :class=\"classes.illustration\">\n <Illustration :size=\"300\" :type=\"IllustrationType.Vignette\" :name=\"VignetteName.SearchStorefront\" />\n </div>\n </div>\n\n <div v-if=\"slots.actions || showLogoutButton\" class=\"tw-flex tw-items-start tw-gap-6\">\n <slot name=\"actions\">\n <Button tertiary @click=\"props.onLogout\">Logout</Button>\n </slot>\n </div>\n </div>\n </div>\n</template>\n\n<style module>\n .root {\n background-color: var(--color-purple-500);\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n max-width: 100vw;\n }\n\n .wrapper {\n max-width: 100%;\n width: 56rem;\n }\n\n .content {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .illustration {\n /* width and height similar to figma. */\n width: 300px;\n height: 193px;\n }\n\n @media screen and (width < 1024px) {\n .content {\n flex-wrap: wrap;\n gap: 0;\n }\n\n .illustration {\n margin-bottom: 30px;\n }\n }\n\n @media screen and (width >= 1024px) {\n .content__text {\n max-width: 50vw;\n }\n }\n\n .illustration svg {\n /*\n * We cannot use the same sizes from figma because the illustration would be smaller\n * and it would break alignment. The specified height in figma is 193px but the\n * illustration is 300px, so, (300 - 193) / 2 ~= 53, which keeps it aligned.\n */\n margin-top: -53px;\n }\n</style>\n"],"names":["errors","props","__props","classes","useCssModule","slots","useSlots","errorCodeStr","computed","errorCodeInt","defaultInfoByErrorCode","errorTitle","errorDescription","showLogoutButton","computedRetryLink"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAUE,UAAMA,IAAqE;AAAA,MACzE,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,IAAA,GAqCIC,IAAQC,GASRC,IAAUC,KACVC,IAAQC,KAERC,IAAeC,EAAS,MAAMP,EAAM,UAAU,UAAU,GACxDQ,IAAeD,EAAS,MAAM,SAASD,EAAa,OAAO,EAAE,CAAC,GAC9DG,IAAyBF,EAAS,MAAMR,EAAOS,EAAa,KAAK,KAAKT,EAAO,GAAK,CAAC,GACnFW,IAAaH,EAAS,MAAMP,EAAM,SAASS,EAAuB,MAAM,KAAK,GAC7EE,IAAmBJ,EAAS,MAAMP,EAAM,eAAeS,EAAuB,MAAM,WAAW,GAE/FG,IAAmBL,EAAS,MAAM,CAACP,EAAM,oBAAoBA,EAAM,QAAQ,GAC3Ea,IAAoBN,EAAS,MAAMP,EAAM,aAAa,OAAO,SAAS,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"HttpError.js","sources":["../src/components/HttpError/HttpError.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, useCssModule, useSlots } from 'vue';\n\n import { t } from '../../locale';\n import Button from '../Button/Button.vue';\n import { IllustrationType, VignetteName } from '../Illustration/Illustration.models';\n import Illustration from '../Illustration/Illustration.vue';\n import Logo from '../Logo/Logo.vue';\n\n type ErrorCodes = 401 | 403 | 404 | 405 | 500 | 502 | 503 | 504;\n const errors: Record<ErrorCodes, { title: string; description: string }> = {\n 401: {\n title: t('ll.httpError.401.title'),\n description: t('ll.httpError.401.description'),\n },\n 403: {\n title: t('ll.httpError.403.title'),\n description: t('ll.httpError.403.description'),\n },\n 404: {\n title: t('ll.httpError.404.title'),\n description: t('ll.httpError.404.description'),\n },\n 405: {\n title: t('ll.httpError.405.title'),\n description: t('ll.httpError.405.description'),\n },\n 500: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 502: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 503: {\n title: t('ll.httpError.50X.title'),\n description: t('ll.httpError.50X.description'),\n },\n 504: {\n title: t('ll.httpError.504.title'),\n description: t('ll.httpError.504.description'),\n },\n };\n\n export interface HttpErrorProps {\n /**\n * A description of what possibly happened.\n */\n description?: string;\n\n /**\n * The error code.\n */\n errorCode: keyof typeof errors | `${keyof typeof errors}`;\n\n /**\n * By default, the logout button is visible unless content is provided to the `actions` slot or\n * this prop is `true`.\n */\n hideLogoutButton?: boolean;\n\n /**\n * A callback that will be called when the user clicks the logout button. If not provided,\n * a `logout` event will be emitted.\n */\n onLogout?: () => void;\n\n /**\n * A link to redirect the user to see if a hard refresh fixes the issue.\n */\n retryLink?: string;\n\n /**\n * The error title.\n */\n title?: string;\n }\n\n const props = withDefaults(defineProps<HttpErrorProps>(), {\n description: '',\n errorCode: '404',\n onLogout: undefined,\n hideLogoutButton: false,\n retryLink: undefined,\n title: '',\n });\n\n const classes = useCssModule();\n const slots = useSlots();\n\n const errorCodeStr = computed(() => props.errorCode.toString());\n const errorCodeInt = computed(() => parseInt(errorCodeStr.value, 10));\n const defaultInfoByErrorCode = computed(() => errors[errorCodeInt.value] || errors['500']);\n const errorTitle = computed(() => props.title || defaultInfoByErrorCode.value.title);\n const errorDescription = computed(() => props.description || defaultInfoByErrorCode.value.description);\n\n const showLogoutButton = computed(() => !props.hideLogoutButton && props.onLogout);\n const computedRetryLink = computed(() => props.retryLink || window.location.href);\n</script>\n\n<template>\n <div class=\"stash-http-error tw-px-6 tw-py-12\" :class=\"classes.root\" data-test=\"stash-http-error\">\n <div :class=\"classes.wrapper\">\n <router-link to=\"/\" class=\"tw-mb-8 tw-block\">\n <Logo color=\"white\" width=\"192\" />\n </router-link>\n\n <div class=\"tw-mb-8 tw-gap-6\" :class=\"classes.content\">\n <div class=\"tw-order-2 lg:tw-order-1\" :class=\"classes.content__text\">\n <h1 class=\"heading-jumbo tw-m-0 tw-mb-3 !tw-text-white\">\n {{ errorTitle }}\n </h1>\n <h2 class=\"tw-mb-8 tw-text-white\">Error Code: {{ props.errorCode }}</h2>\n <p class=\"tw-mb-4 tw-text-white\">\n {{ errorDescription }} You can <a :href=\"computedRetryLink\" class=\"link\">try again</a> or reach out to\n <a href=\"mailto:support@leaflink.com\" class=\"link\">support@leaflink.com</a> for assistance.\n </p>\n </div>\n <div class=\"tw-order-1 lg:tw-order-2\" :class=\"classes.illustration\">\n <Illustration :size=\"300\" :type=\"IllustrationType.Vignette\" :name=\"VignetteName.SearchStorefront\" />\n </div>\n </div>\n\n <div v-if=\"slots.actions || showLogoutButton\" class=\"tw-flex tw-items-start tw-gap-6\">\n <slot name=\"actions\">\n <Button tertiary @click=\"props.onLogout\">Logout</Button>\n </slot>\n </div>\n </div>\n </div>\n</template>\n\n<style module>\n .root {\n background-color: var(--color-purple-500);\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n max-width: 100vw;\n }\n\n .wrapper {\n max-width: 100%;\n width: 56rem;\n }\n\n .content {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .illustration {\n /* width and height similar to figma. */\n width: 300px;\n height: 193px;\n }\n\n @media screen and (width < 1024px) {\n .content {\n flex-wrap: wrap;\n gap: 0;\n }\n\n .illustration {\n margin-bottom: 30px;\n }\n }\n\n @media screen and (width >= 1024px) {\n .content__text {\n max-width: 50vw;\n }\n }\n\n .illustration svg {\n /*\n * We cannot use the same sizes from figma because the illustration would be smaller\n * and it would break alignment. The specified height in figma is 193px but the\n * illustration is 300px, so, (300 - 193) / 2 ~= 53, which keeps it aligned.\n */\n margin-top: -53px;\n }\n</style>\n"],"names":["errors","props","__props","classes","useCssModule","slots","useSlots","errorCodeStr","computed","errorCodeInt","defaultInfoByErrorCode","errorTitle","errorDescription","showLogoutButton","computedRetryLink"],"mappings":";;;;;;;;;;;;;;;;;;;;AAUE,UAAMA,IAAqE;AAAA,MACzE,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,MACA,KAAK;AAAA,QACH,OAAO,EAAE,wBAAwB;AAAA,QACjC,aAAa,EAAE,8BAA8B;AAAA,MAC/C;AAAA,IAAA,GAqCIC,IAAQC,GASRC,IAAUC,KACVC,IAAQC,KAERC,IAAeC,EAAS,MAAMP,EAAM,UAAU,UAAU,GACxDQ,IAAeD,EAAS,MAAM,SAASD,EAAa,OAAO,EAAE,CAAC,GAC9DG,IAAyBF,EAAS,MAAMR,EAAOS,EAAa,KAAK,KAAKT,EAAO,GAAK,CAAC,GACnFW,IAAaH,EAAS,MAAMP,EAAM,SAASS,EAAuB,MAAM,KAAK,GAC7EE,IAAmBJ,EAAS,MAAMP,EAAM,eAAeS,EAAuB,MAAM,WAAW,GAE/FG,IAAmBL,EAAS,MAAM,CAACP,EAAM,oBAAoBA,EAAM,QAAQ,GAC3Ea,IAAoBN,EAAS,MAAMP,EAAM,aAAa,OAAO,SAAS,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -33,26 +33,26 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
33
33
  };
34
34
 
35
35
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HttpErrorProps>, {
36
- description: string;
37
- errorCode: string;
38
- onLogout: undefined;
39
- hideLogoutButton: boolean;
40
- retryLink: undefined;
41
- title: string;
36
+ description: string;
37
+ errorCode: string;
38
+ onLogout: undefined;
39
+ hideLogoutButton: boolean;
40
+ retryLink: undefined;
41
+ title: string;
42
42
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<HttpErrorProps>, {
43
- description: string;
44
- errorCode: string;
45
- onLogout: undefined;
46
- hideLogoutButton: boolean;
47
- retryLink: undefined;
48
- title: string;
43
+ description: string;
44
+ errorCode: string;
45
+ onLogout: undefined;
46
+ hideLogoutButton: boolean;
47
+ retryLink: undefined;
48
+ title: string;
49
49
  }>>> & Readonly<{}>, {
50
- title: string;
51
- description: string;
52
- errorCode: ErrorCodes | "500" | "401" | "403" | "404" | "405" | "502" | "503" | "504";
53
- hideLogoutButton: boolean;
54
- onLogout: () => void;
55
- retryLink: string;
50
+ title: string;
51
+ description: string;
52
+ errorCode: ErrorCodes | "500" | "401" | "403" | "404" | "405" | "502" | "503" | "504";
53
+ hideLogoutButton: boolean;
54
+ onLogout: () => void;
55
+ retryLink: string;
56
56
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
57
57
  actions?(_: {}): any;
58
58
  }>;
package/dist/Icon.js CHANGED
@@ -1,9 +1,8 @@
1
- import { defineComponent as p, useCssModule as m, inject as h, computed as i, openBlock as f, createBlock as g, unref as a, normalizeClass as b } from "vue";
1
+ import { defineComponent as p, useCssModule as m, inject as h, computed as i, openBlock as f, createBlock as g, unref as r, normalizeClass as b } from "vue";
2
2
  import k from "lodash-es/uniqueId";
3
- import { I as w } from "./index-9e1095ef.js";
4
- import { s as v } from "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
5
- import { _ as y } from "./_plugin-vue_export-helper-dad06003.js";
6
- const _ = [
3
+ import { I as w } from "./index-D6bxWkZ1.js";
4
+ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const v = [
7
6
  "action-dots",
8
7
  "activity",
9
8
  "alert-bell",
@@ -32,6 +31,7 @@ const _ = [
32
31
  "circle-check",
33
32
  "circle-close",
34
33
  "circle-dollar",
34
+ "circle-empty",
35
35
  "circle-info",
36
36
  "circle-partial",
37
37
  "circle-percent",
@@ -193,8 +193,8 @@ const _ = [
193
193
  "warehouse",
194
194
  "working"
195
195
  ];
196
- var q = /* @__PURE__ */ ((r) => (r.Standard = "standard", r.Dense = "dense", r.Small = "small", r.Large = "large", r))(q || {});
197
- const z = /* @__PURE__ */ p({
196
+ var y = /* @__PURE__ */ ((a) => (a.Standard = "standard", a.Dense = "dense", a.Small = "small", a.Large = "large", a))(y || {});
197
+ const x = /* @__PURE__ */ p({
198
198
  name: "ll-icon",
199
199
  __name: "Icon",
200
200
  props: {
@@ -206,10 +206,10 @@ const z = /* @__PURE__ */ p({
206
206
  small: { type: Boolean },
207
207
  staticPath: { default: "" }
208
208
  },
209
- setup(r) {
210
- const e = r, o = m(), n = h("stashOptions", {
209
+ setup(a) {
210
+ const e = a, o = m(), n = h("stashOptions", {
211
211
  staticPath: "/static"
212
- }), s = i(() => _.includes(e.name) ? e.name : "mj-leaf"), d = i(() => e.staticPath || (n == null ? void 0 : n.staticPath)), u = (t) => {
212
+ }), s = i(() => v.includes(e.name) ? e.name : "mj-leaf"), d = i(() => e.staticPath || (n == null ? void 0 : n.staticPath)), u = (t) => {
213
213
  if (!t)
214
214
  return t;
215
215
  const l = document.createElement("use");
@@ -217,18 +217,18 @@ const z = /* @__PURE__ */ p({
217
217
  const c = t.querySelector(`#${s.value}`);
218
218
  return c ? (t.replaceChildren(c, l), t) : (t.insertBefore(l, t.firstChild), t);
219
219
  };
220
- return (t, l) => (f(), g(a(w), {
220
+ return (t, l) => (f(), g(r(w), {
221
221
  id: e.id,
222
222
  role: "presentation",
223
223
  "aria-labelledby": e.id,
224
224
  class: b(["stash-icon", [
225
- a(o).icon,
225
+ r(o).icon,
226
226
  `icon--${e.name}`,
227
227
  {
228
- [a(o).standard]: e.size === "standard",
229
- [a(o).dense]: e.size === "dense" || e.dense,
230
- [a(o).small]: e.size === "small" || e.small,
231
- [a(o).large]: e.size === "large"
228
+ [r(o).standard]: e.size === "standard",
229
+ [r(o).dense]: e.size === "dense" || e.dense,
230
+ [r(o).small]: e.size === "small" || e.small,
231
+ [r(o).large]: e.size === "large"
232
232
  }
233
233
  ]]),
234
234
  "data-test": "stash-icon",
@@ -237,12 +237,18 @@ const z = /* @__PURE__ */ p({
237
237
  "transform-source": u
238
238
  }, null, 8, ["id", "aria-labelledby", "class", "src", "title"]));
239
239
  }
240
- }), x = {
241
- $style: v
242
- }, S = /* @__PURE__ */ y(z, [["__cssModules", x]]);
240
+ }), q = "_icon_1x7lf_2", z = "_standard_1x7lf_8", B = "_dense_1x7lf_15", C = "_small_1x7lf_22", P = "_large_1x7lf_29", $ = {
241
+ icon: q,
242
+ standard: z,
243
+ dense: B,
244
+ small: C,
245
+ large: P
246
+ }, N = {
247
+ $style: $
248
+ }, A = /* @__PURE__ */ _(x, [["__cssModules", N]]);
243
249
  export {
244
- q as IconSizes,
245
- S as default,
246
- _ as iconNames
250
+ y as IconSizes,
251
+ A as default,
252
+ v as iconNames
247
253
  };
248
254
  //# sourceMappingURL=Icon.js.map
package/dist/Icon.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sources":["../src/components/Icon/Icon.types.ts","../src/components/Icon/Icon.vue"],"sourcesContent":["export const iconNames = [\n 'action-dots',\n 'activity',\n 'alert-bell',\n 'archive',\n 'arrow-down',\n 'arrow-left',\n 'arrow-right',\n 'arrow-up',\n 'badge-discount',\n 'badge-seller-elite',\n 'badge-seller-power',\n 'badge-seller-verified',\n 'book-customer',\n 'building-office',\n 'bulk-add',\n 'calendar-reschedule',\n 'calendar',\n 'caret-down',\n 'caret-up',\n 'change-log',\n 'check',\n 'chevron-down',\n 'chevron-left',\n 'chevron-right',\n 'chevron-up',\n 'circle-check',\n 'circle-close',\n 'circle-dollar',\n 'circle-info',\n 'circle-partial',\n 'circle-percent',\n 'circle-question-mark',\n 'circle-status',\n 'circle-warning',\n 'clipboard-checkmark',\n 'clipboard-inventory',\n 'close',\n 'combine',\n 'compass',\n 'contact',\n 'contract',\n 'copy',\n 'credit-card',\n 'credit-profile',\n 'dashboard',\n 'document-accept',\n 'document-invoice',\n 'document-recieved',\n 'document-sent',\n 'document-view',\n 'document',\n 'dolly',\n 'download',\n 'edit',\n 'ellipsis',\n 'envelope-open',\n 'envelope',\n 'equals',\n 'export',\n 'figma',\n 'file-csv',\n 'file',\n 'filter-funnel',\n 'filter-line',\n 'flag',\n 'folder',\n 'folder-bar-graph',\n 'folder-orders',\n 'font-bold',\n 'font-clear-format',\n 'font-italic',\n 'font-underline',\n 'gear',\n 'github',\n 'globe',\n 'graph-bar-chart',\n 'graph-line-chart',\n 'graph-pie-chart',\n 'hazard',\n 'hazard-outline',\n 'headset-agent',\n 'headset-mic',\n 'heart-filled',\n 'heart-outline',\n 'help-question-mark',\n 'hide',\n 'history',\n 'image',\n 'import',\n 'keyboard-return',\n 'license-approved',\n 'license-certificate',\n 'lightbulb',\n 'link-add',\n 'link-unlink',\n 'link',\n 'list-bulleted',\n 'list-items',\n 'list-numbered',\n 'loading-big',\n 'loading-empty',\n 'loading-small',\n 'location',\n 'lock-unlock',\n 'lock',\n 'logo-facebook',\n 'logo-instagram',\n 'logo-linkedin',\n 'logo-ll',\n 'logo-metrc',\n 'logo-plaid',\n 'logo-x',\n 'logo-youtube',\n 'logout',\n 'medical',\n 'megaphone-sound',\n 'megaphone',\n 'menu',\n 'message-dispute',\n 'message-reply',\n 'message',\n 'minus',\n 'mj-leaf',\n 'money',\n 'note-add',\n 'note',\n 'open-in-new',\n 'paperclip',\n 'paper-plane',\n 'performance',\n 'phone',\n 'plus',\n 'preview',\n 'print',\n 'product-menu-manage',\n 'product-menu-search',\n 'product-menu',\n 'queue-add',\n 'queue',\n 'recent',\n 'refresh',\n 'register',\n 'reply',\n 'report-download',\n 'sample',\n 'save',\n 'scale-law',\n 'scale-weight',\n 'search',\n 'seed-cycle',\n 'share',\n 'shop-bag-browse',\n 'shop-bag-reorder',\n 'shop-bag',\n 'shop-basket',\n 'shop-cart-add',\n 'shop-cart',\n 'show',\n 'sign-dollar',\n 'sign-percent',\n 'sort',\n 'split',\n 'star-filled',\n 'star-outline',\n 'storefront',\n 'submit',\n 'swap-horizontal',\n 'swap-vertical',\n 'tag-star',\n 'tag',\n 'test-results',\n 'ticket-star',\n 'ticket',\n 'tool-dropper',\n 'tool-wrench',\n 'transfer',\n 'trashcan',\n 'truck',\n 'upload',\n 'user-add',\n 'user-admin',\n 'user-check',\n 'user',\n 'view-card',\n 'view-detailed',\n 'view-list',\n 'warehouse',\n 'working',\n] as const;\n\nexport type IconName = (typeof iconNames)[number];\n\nexport enum IconSizes {\n Standard = 'standard',\n Dense = 'dense',\n Small = 'small',\n Large = 'large',\n}\n\nexport type IconSize = `${IconSizes}`;\n","<script lang=\"ts\">\n export * from './Icon.types';\n</script>\n\n<script lang=\"ts\" setup>\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, inject, useCssModule } from 'vue';\n import InlineSvg from 'vue-inline-svg';\n\n import { StashProvideState } from '../../../types/misc';\n import { IconName, iconNames, IconSize } from './Icon.types';\n\n export interface IconProps {\n id?: string;\n\n /**\n * The filename of the icon that should be displayed\n */\n name: IconName;\n\n /**\n * Accessible, short-text description for the icon. Not rendered as part of the graphic, but\n * browsers usually display it as a tooltip and screen readers use this.\n */\n title?: string;\n\n /**\n * The size of the icon\n * Options: large (32x32px), default (24x24px), dense (20x20px), small (14x14px).\n */\n size?: IconSize;\n\n /**\n * @deprecated Use the `size` prop with value \"dense\" instead\n */\n dense?: boolean;\n\n /**\n` * @deprecated Use the `size` prop with value \"small\" instead\n */\n small?: boolean;\n\n /**\n * Icon's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided.\n */\n staticPath?: string;\n }\n\n defineOptions({\n name: 'll-icon',\n });\n\n const props = withDefaults(defineProps<IconProps>(), {\n id: () => uniqueId('ll-icon-'),\n size: 'standard',\n title: '',\n staticPath: '',\n });\n const classes = useCssModule();\n const stashOptions = inject<Partial<StashProvideState>>('stashOptions', {\n staticPath: '/static',\n });\n\n const computedName = computed<IconName>(() => {\n if (iconNames.includes(props.name)) {\n return props.name;\n }\n\n return 'mj-leaf';\n });\n\n const computedStaticPath = computed(() => {\n return props.staticPath || stashOptions?.staticPath;\n });\n\n /**\n * Event handler to add the use tag for the specific icon we need to the svg\n */\n const transformSvgSource = (svgElem: SVGElement) => {\n if (!svgElem) {\n return svgElem;\n }\n\n const useNode = document.createElement('use');\n useNode.setAttribute('href', `#${computedName.value}`);\n\n // Grab icon from sprite\n const symbolNode = svgElem.querySelector(`#${computedName.value}`);\n\n // This really shouldn't happen but if the spritesheet gets out of sync with the `IconName` type it could\n if (!symbolNode) {\n // still insert <use> element but it will not be found (this is more for tests than anything else)\n svgElem.insertBefore(useNode, svgElem.firstChild);\n return svgElem;\n }\n\n /**\n * Repeatedly inlining the entire spritesheet was causing failures in mobile Safari, and also\n * performance issues on long list pages where the svg was being inlined over and over.\n * Since the SVG is cached after the first request, this callback is just removing the unnecessary\n * <symbol> nodes to slim down the DOM manipulation and insertion.\n */\n // Replace all children with just the one <symbol> element and <use> element\n svgElem.replaceChildren(symbolNode, useNode);\n\n return svgElem;\n };\n</script>\n\n<!-- Use inline svg so that requests to pull the spritesheet are done via JS and avoid\n browser restrictions for different domains for svgs. inline svg also caches the requests\n so we don't load the spritesheet multiple times\n Reference: https://oreillymedia.github.io/Using_SVG/extras/ch10-cors.html -->\n<template>\n <InlineSvg\n :id=\"props.id\"\n role=\"presentation\"\n :aria-labelledby=\"props.id\"\n class=\"stash-icon\"\n :class=\"[\n classes.icon,\n `icon--${props.name}`,\n {\n [classes.standard]: props.size === 'standard',\n [classes.dense]: props.size === 'dense' || props.dense,\n [classes.small]: props.size === 'small' || props.small,\n [classes.large]: props.size === 'large',\n },\n ]\"\n data-test=\"stash-icon\"\n :src=\"`${computedStaticPath}/spritesheet.svg`\"\n :title=\"props.title\"\n :transform-source=\"transformSvgSource\"\n />\n</template>\n\n<style module>\n .icon {\n display: inline-block;\n fill: currentcolor;\n vertical-align: middle;\n }\n\n .standard {\n height: 24px;\n min-height: 24px;\n min-width: 24px;\n width: 24px;\n }\n\n .dense {\n height: 20px;\n min-height: 20px;\n min-width: 20px;\n width: 20px;\n }\n\n .small {\n height: 14px;\n min-height: 14px;\n min-width: 14px;\n width: 14px;\n }\n\n .large {\n height: 32px;\n min-height: 32px;\n min-width: 32px;\n width: 32px;\n }\n</style>\n"],"names":["iconNames","IconSizes","props","__props","classes","useCssModule","stashOptions","inject","computedName","computed","computedStaticPath","transformSvgSource","svgElem","useNode","symbolNode"],"mappings":";;;;;AAAO,MAAMA,IAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIY,IAAAC,sBAAAA,OACVA,EAAA,WAAW,YACXA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SAJEA,IAAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;AC7IV,UAAMC,IAAQC,GAMRC,IAAUC,KACVC,IAAeC,EAAmC,gBAAgB;AAAA,MACtE,YAAY;AAAA,IAAA,CACb,GAEKC,IAAeC,EAAmB,MAClCT,EAAU,SAASE,EAAM,IAAI,IACxBA,EAAM,OAGR,SACR,GAEKQ,IAAqBD,EAAS,MAC3BP,EAAM,eAAcI,KAAA,gBAAAA,EAAc,WAC1C,GAKKK,IAAqB,CAACC,MAAwB;AAClD,UAAI,CAACA;AACI,eAAAA;AAGH,YAAAC,IAAU,SAAS,cAAc,KAAK;AAC5C,MAAAA,EAAQ,aAAa,QAAQ,IAAIL,EAAa,OAAO;AAGrD,YAAMM,IAAaF,EAAQ,cAAc,IAAIJ,EAAa,OAAO;AAGjE,aAAKM,KAaGF,EAAA,gBAAgBE,GAAYD,CAAO,GAEpCD,MAbGA,EAAA,aAAaC,GAASD,EAAQ,UAAU,GACzCA;AAAA,IAYF;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Icon.js","sources":["../src/components/Icon/Icon.types.ts","../src/components/Icon/Icon.vue"],"sourcesContent":["export const iconNames = [\n 'action-dots',\n 'activity',\n 'alert-bell',\n 'archive',\n 'arrow-down',\n 'arrow-left',\n 'arrow-right',\n 'arrow-up',\n 'badge-discount',\n 'badge-seller-elite',\n 'badge-seller-power',\n 'badge-seller-verified',\n 'book-customer',\n 'building-office',\n 'bulk-add',\n 'calendar-reschedule',\n 'calendar',\n 'caret-down',\n 'caret-up',\n 'change-log',\n 'check',\n 'chevron-down',\n 'chevron-left',\n 'chevron-right',\n 'chevron-up',\n 'circle-check',\n 'circle-close',\n 'circle-dollar',\n 'circle-empty',\n 'circle-info',\n 'circle-partial',\n 'circle-percent',\n 'circle-question-mark',\n 'circle-status',\n 'circle-warning',\n 'clipboard-checkmark',\n 'clipboard-inventory',\n 'close',\n 'combine',\n 'compass',\n 'contact',\n 'contract',\n 'copy',\n 'credit-card',\n 'credit-profile',\n 'dashboard',\n 'document-accept',\n 'document-invoice',\n 'document-recieved',\n 'document-sent',\n 'document-view',\n 'document',\n 'dolly',\n 'download',\n 'edit',\n 'ellipsis',\n 'envelope-open',\n 'envelope',\n 'equals',\n 'export',\n 'figma',\n 'file-csv',\n 'file',\n 'filter-funnel',\n 'filter-line',\n 'flag',\n 'folder',\n 'folder-bar-graph',\n 'folder-orders',\n 'font-bold',\n 'font-clear-format',\n 'font-italic',\n 'font-underline',\n 'gear',\n 'github',\n 'globe',\n 'graph-bar-chart',\n 'graph-line-chart',\n 'graph-pie-chart',\n 'hazard',\n 'hazard-outline',\n 'headset-agent',\n 'headset-mic',\n 'heart-filled',\n 'heart-outline',\n 'help-question-mark',\n 'hide',\n 'history',\n 'image',\n 'import',\n 'keyboard-return',\n 'license-approved',\n 'license-certificate',\n 'lightbulb',\n 'link-add',\n 'link-unlink',\n 'link',\n 'list-bulleted',\n 'list-items',\n 'list-numbered',\n 'loading-big',\n 'loading-empty',\n 'loading-small',\n 'location',\n 'lock-unlock',\n 'lock',\n 'logo-facebook',\n 'logo-instagram',\n 'logo-linkedin',\n 'logo-ll',\n 'logo-metrc',\n 'logo-plaid',\n 'logo-x',\n 'logo-youtube',\n 'logout',\n 'medical',\n 'megaphone-sound',\n 'megaphone',\n 'menu',\n 'message-dispute',\n 'message-reply',\n 'message',\n 'minus',\n 'mj-leaf',\n 'money',\n 'note-add',\n 'note',\n 'open-in-new',\n 'paperclip',\n 'paper-plane',\n 'performance',\n 'phone',\n 'plus',\n 'preview',\n 'print',\n 'product-menu-manage',\n 'product-menu-search',\n 'product-menu',\n 'queue-add',\n 'queue',\n 'recent',\n 'refresh',\n 'register',\n 'reply',\n 'report-download',\n 'sample',\n 'save',\n 'scale-law',\n 'scale-weight',\n 'search',\n 'seed-cycle',\n 'share',\n 'shop-bag-browse',\n 'shop-bag-reorder',\n 'shop-bag',\n 'shop-basket',\n 'shop-cart-add',\n 'shop-cart',\n 'show',\n 'sign-dollar',\n 'sign-percent',\n 'sort',\n 'split',\n 'star-filled',\n 'star-outline',\n 'storefront',\n 'submit',\n 'swap-horizontal',\n 'swap-vertical',\n 'tag-star',\n 'tag',\n 'test-results',\n 'ticket-star',\n 'ticket',\n 'tool-dropper',\n 'tool-wrench',\n 'transfer',\n 'trashcan',\n 'truck',\n 'upload',\n 'user-add',\n 'user-admin',\n 'user-check',\n 'user',\n 'view-card',\n 'view-detailed',\n 'view-list',\n 'warehouse',\n 'working',\n] as const;\n\nexport type IconName = (typeof iconNames)[number];\n\nexport enum IconSizes {\n Standard = 'standard',\n Dense = 'dense',\n Small = 'small',\n Large = 'large',\n}\n\nexport type IconSize = `${IconSizes}`;\n","<script lang=\"ts\">\n export * from './Icon.types';\n</script>\n\n<script lang=\"ts\" setup>\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, inject, useCssModule } from 'vue';\n import InlineSvg from 'vue-inline-svg';\n\n import { StashProvideState } from '../../../types/misc';\n import { IconName, iconNames, IconSize } from './Icon.types';\n\n export interface IconProps {\n id?: string;\n\n /**\n * The filename of the icon that should be displayed\n */\n name: IconName;\n\n /**\n * Accessible, short-text description for the icon. Not rendered as part of the graphic, but\n * browsers usually display it as a tooltip and screen readers use this.\n */\n title?: string;\n\n /**\n * The size of the icon\n * Options: large (32x32px), default (24x24px), dense (20x20px), small (14x14px).\n */\n size?: IconSize;\n\n /**\n * @deprecated Use the `size` prop with value \"dense\" instead\n */\n dense?: boolean;\n\n /**\n` * @deprecated Use the `size` prop with value \"small\" instead\n */\n small?: boolean;\n\n /**\n * Icon's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided.\n */\n staticPath?: string;\n }\n\n defineOptions({\n name: 'll-icon',\n });\n\n const props = withDefaults(defineProps<IconProps>(), {\n id: () => uniqueId('ll-icon-'),\n size: 'standard',\n title: '',\n staticPath: '',\n });\n const classes = useCssModule();\n const stashOptions = inject<Partial<StashProvideState>>('stashOptions', {\n staticPath: '/static',\n });\n\n const computedName = computed<IconName>(() => {\n if (iconNames.includes(props.name)) {\n return props.name;\n }\n\n return 'mj-leaf';\n });\n\n const computedStaticPath = computed(() => {\n return props.staticPath || stashOptions?.staticPath;\n });\n\n /**\n * Event handler to add the use tag for the specific icon we need to the svg\n */\n const transformSvgSource = (svgElem: SVGElement) => {\n if (!svgElem) {\n return svgElem;\n }\n\n const useNode = document.createElement('use');\n useNode.setAttribute('href', `#${computedName.value}`);\n\n // Grab icon from sprite\n const symbolNode = svgElem.querySelector(`#${computedName.value}`);\n\n // This really shouldn't happen but if the spritesheet gets out of sync with the `IconName` type it could\n if (!symbolNode) {\n // still insert <use> element but it will not be found (this is more for tests than anything else)\n svgElem.insertBefore(useNode, svgElem.firstChild);\n return svgElem;\n }\n\n /**\n * Repeatedly inlining the entire spritesheet was causing failures in mobile Safari, and also\n * performance issues on long list pages where the svg was being inlined over and over.\n * Since the SVG is cached after the first request, this callback is just removing the unnecessary\n * <symbol> nodes to slim down the DOM manipulation and insertion.\n */\n // Replace all children with just the one <symbol> element and <use> element\n svgElem.replaceChildren(symbolNode, useNode);\n\n return svgElem;\n };\n</script>\n\n<!-- Use inline svg so that requests to pull the spritesheet are done via JS and avoid\n browser restrictions for different domains for svgs. inline svg also caches the requests\n so we don't load the spritesheet multiple times\n Reference: https://oreillymedia.github.io/Using_SVG/extras/ch10-cors.html -->\n<template>\n <InlineSvg\n :id=\"props.id\"\n role=\"presentation\"\n :aria-labelledby=\"props.id\"\n class=\"stash-icon\"\n :class=\"[\n classes.icon,\n `icon--${props.name}`,\n {\n [classes.standard]: props.size === 'standard',\n [classes.dense]: props.size === 'dense' || props.dense,\n [classes.small]: props.size === 'small' || props.small,\n [classes.large]: props.size === 'large',\n },\n ]\"\n data-test=\"stash-icon\"\n :src=\"`${computedStaticPath}/spritesheet.svg`\"\n :title=\"props.title\"\n :transform-source=\"transformSvgSource\"\n />\n</template>\n\n<style module>\n .icon {\n display: inline-block;\n fill: currentcolor;\n vertical-align: middle;\n }\n\n .standard {\n height: 24px;\n min-height: 24px;\n min-width: 24px;\n width: 24px;\n }\n\n .dense {\n height: 20px;\n min-height: 20px;\n min-width: 20px;\n width: 20px;\n }\n\n .small {\n height: 14px;\n min-height: 14px;\n min-width: 14px;\n width: 14px;\n }\n\n .large {\n height: 32px;\n min-height: 32px;\n min-width: 32px;\n width: 32px;\n }\n</style>\n"],"names":["iconNames","IconSizes","props","__props","classes","useCssModule","stashOptions","inject","computedName","computed","computedStaticPath","transformSvgSource","svgElem","useNode","symbolNode"],"mappings":";;;;AAAO,MAAMA,IAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIY,IAAAC,sBAAAA,OACVA,EAAA,WAAW,YACXA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SAJEA,IAAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;AC9IV,UAAMC,IAAQC,GAMRC,IAAUC,KACVC,IAAeC,EAAmC,gBAAgB;AAAA,MACtE,YAAY;AAAA,IAAA,CACb,GAEKC,IAAeC,EAAmB,MAClCT,EAAU,SAASE,EAAM,IAAI,IACxBA,EAAM,OAGR,SACR,GAEKQ,IAAqBD,EAAS,MAC3BP,EAAM,eAAcI,KAAA,gBAAAA,EAAc,WAC1C,GAKKK,IAAqB,CAACC,MAAwB;AAClD,UAAI,CAACA;AACI,eAAAA;AAGH,YAAAC,IAAU,SAAS,cAAc,KAAK;AAC5C,MAAAA,EAAQ,aAAa,QAAQ,IAAIL,EAAa,KAAK,EAAE;AAGrD,YAAMM,IAAaF,EAAQ,cAAc,IAAIJ,EAAa,KAAK,EAAE;AAGjE,aAAKM,KAaGF,EAAA,gBAAgBE,GAAYD,CAAO,GAEpCD,MAbGA,EAAA,aAAaC,GAASD,EAAQ,UAAU,GACzCA;AAAA,IAYF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -27,26 +27,26 @@ declare type __VLS_WithDefaults<P, D> = {
27
27
  };
28
28
 
29
29
  declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconProps>, {
30
- id: () => string;
31
- size: string;
32
- title: string;
33
- staticPath: string;
30
+ id: () => string;
31
+ size: string;
32
+ title: string;
33
+ staticPath: string;
34
34
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconProps>, {
35
- id: () => string;
36
- size: string;
37
- title: string;
38
- staticPath: string;
35
+ id: () => string;
36
+ size: string;
37
+ title: string;
38
+ staticPath: string;
39
39
  }>>> & Readonly<{}>, {
40
- title: string;
41
- id: string;
42
- size: "small" | "standard" | "dense" | "large";
43
- staticPath: string;
40
+ title: string;
41
+ id: string;
42
+ size: "small" | "standard" | "dense" | "large";
43
+ staticPath: string;
44
44
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
45
45
  export default _default;
46
46
 
47
47
  export declare type IconName = (typeof iconNames)[number];
48
48
 
49
- export declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "equals", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-empty", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "paper-plane", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
49
+ export declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-empty", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "equals", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "import", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-empty", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "paper-plane", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
50
50
 
51
51
  export declare interface IconProps {
52
52
  id?: string;
package/dist/IconLabel.js CHANGED
@@ -1,9 +1,6 @@
1
- import { defineComponent as a, computed as o, openBlock as c, createBlock as i, resolveDynamicComponent as f, mergeProps as u, withCtx as d, createVNode as m, normalizeClass as r, createElementVNode as p, renderSlot as w } from "vue";
1
+ import { defineComponent as a, computed as o, openBlock as c, createBlock as i, resolveDynamicComponent as f, mergeProps as u, withCtx as d, createVNode as m, normalizeClass as s, createElementVNode as p, renderSlot as w } from "vue";
2
2
  import _ from "./Icon.js";
3
- import { _ as v } from "./_plugin-vue_export-helper-dad06003.js";
4
- import "lodash-es/uniqueId";
5
- import "./index-9e1095ef.js";
6
- import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
3
+ import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
4
  const h = /* @__PURE__ */ a({
8
5
  name: "ll-icon-label",
9
6
  __name: "IconLabel",
@@ -15,23 +12,23 @@ const h = /* @__PURE__ */ a({
15
12
  stacked: { type: Boolean, default: !1 },
16
13
  truncate: { type: Boolean, default: !1 }
17
14
  },
18
- setup(s) {
19
- const e = s, n = o(() => e.to ? "router-link" : e.href ? "a" : "div"), l = o(() => e.to ? {
15
+ setup(n) {
16
+ const e = n, r = o(() => e.to ? "router-link" : e.href ? "a" : "div"), l = o(() => e.to ? {
20
17
  to: e.to
21
18
  } : e.href ? {
22
19
  href: e.href
23
20
  } : {});
24
- return (t, b) => (c(), i(f(n.value), u(l.value, {
21
+ return (t, b) => (c(), i(f(r.value), u(l.value, {
25
22
  class: ["tw-flex", { "tw-flex-col tw-items-center": e.stacked }]
26
23
  }), {
27
24
  default: d(() => [
28
25
  m(_, {
29
26
  name: e.icon,
30
27
  size: "dense",
31
- class: r([t.$style.icon, { [`tw-text-${t.color}`]: !!t.color }])
28
+ class: s([t.$style.icon, { [`tw-text-${t.color}`]: !!t.color }])
32
29
  }, null, 8, ["name", "class"]),
33
30
  p("div", {
34
- class: r({
31
+ class: s({
35
32
  "tw-ml-1.5 tw-flex-1": !e.stacked,
36
33
  "tw-mt-1.5 tw-text-xs tw-leading-3": e.stacked,
37
34
  "tw-truncate": t.truncate
@@ -47,8 +44,8 @@ const h = /* @__PURE__ */ a({
47
44
  icon: k
48
45
  }, x = {
49
46
  $style: y
50
- }, L = /* @__PURE__ */ v(h, [["__cssModules", x]]);
47
+ }, g = /* @__PURE__ */ v(h, [["__cssModules", x]]);
51
48
  export {
52
- L as default
49
+ g as default
53
50
  };
54
51
  //# sourceMappingURL=IconLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconLabel.js","sources":["../src/components/IconLabel/IconLabel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue';\n\n import { StashCommonColor } from '../../../types/colors';\n import { IconName } from '../Icon/Icon.types';\n import Icon from '../Icon/Icon.vue';\n\n export interface IconLabelProps {\n /**\n * Name of the icon to use. All design system icons are supported.\n */\n icon: IconName;\n\n /**\n * Color to apply to the icon. Common Stash colors are supported (100, 500, & 700 shades).\n */\n color?: StashCommonColor;\n\n /**\n * Valid hyperlink.\n */\n href?: string;\n\n /**\n * Valid vue-router route.\n */\n to?: string | object;\n\n /**\n * If true, renders the label below the icon instead of to the right\n */\n stacked?: boolean;\n\n /**\n * If true, truncates overflowing text with an ellipsis when it's unable to wrap\n */\n truncate?: boolean;\n }\n\n const props = withDefaults(defineProps<IconLabelProps>(), {\n color: undefined,\n href: undefined,\n to: undefined,\n stacked: false,\n truncate: false,\n });\n\n defineOptions({\n name: 'll-icon-label',\n });\n\n const is = computed(() => {\n if (props.to) {\n return 'router-link';\n }\n\n if (props.href) {\n return 'a';\n }\n\n return 'div';\n });\n\n const attributes = computed(() => {\n if (props.to) {\n return {\n to: props.to,\n };\n }\n\n if (props.href) {\n return {\n href: props.href,\n };\n }\n\n return {};\n });\n</script>\n\n<template>\n <component :is=\"is\" v-bind=\"attributes\" class=\"tw-flex\" :class=\"{ 'tw-flex-col tw-items-center': props.stacked }\">\n <Icon :name=\"props.icon\" size=\"dense\" :class=\"[$style.icon, { [`tw-text-${color}`]: !!color }]\" />\n\n <div\n :class=\"{\n 'tw-ml-1.5 tw-flex-1': !props.stacked,\n 'tw-mt-1.5 tw-text-xs tw-leading-3': props.stacked,\n 'tw-truncate': truncate,\n }\"\n >\n <!-- @slot Label text -->\n <slot></slot>\n </div>\n </component>\n</template>\n\n<style module>\n .icon {\n margin-top: -1px;\n }\n</style>\n"],"names":["props","__props","is","computed","attributes"],"mappings":";;;;;;;;;;;;;;;;;;AAuCE,UAAMA,IAAQC,GAYRC,IAAKC,EAAS,MACdH,EAAM,KACD,gBAGLA,EAAM,OACD,MAGF,KACR,GAEKI,IAAaD,EAAS,MACtBH,EAAM,KACD;AAAA,MACL,IAAIA,EAAM;AAAA,IAAA,IAIVA,EAAM,OACD;AAAA,MACL,MAAMA,EAAM;AAAA,IAAA,IAIT,EACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"IconLabel.js","sources":["../src/components/IconLabel/IconLabel.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue';\n\n import { StashCommonColor } from '../../../types/colors';\n import { IconName } from '../Icon/Icon.types';\n import Icon from '../Icon/Icon.vue';\n\n export interface IconLabelProps {\n /**\n * Name of the icon to use. All design system icons are supported.\n */\n icon: IconName;\n\n /**\n * Color to apply to the icon. Common Stash colors are supported (100, 500, & 700 shades).\n */\n color?: StashCommonColor;\n\n /**\n * Valid hyperlink.\n */\n href?: string;\n\n /**\n * Valid vue-router route.\n */\n to?: string | object;\n\n /**\n * If true, renders the label below the icon instead of to the right\n */\n stacked?: boolean;\n\n /**\n * If true, truncates overflowing text with an ellipsis when it's unable to wrap\n */\n truncate?: boolean;\n }\n\n const props = withDefaults(defineProps<IconLabelProps>(), {\n color: undefined,\n href: undefined,\n to: undefined,\n stacked: false,\n truncate: false,\n });\n\n defineOptions({\n name: 'll-icon-label',\n });\n\n const is = computed(() => {\n if (props.to) {\n return 'router-link';\n }\n\n if (props.href) {\n return 'a';\n }\n\n return 'div';\n });\n\n const attributes = computed(() => {\n if (props.to) {\n return {\n to: props.to,\n };\n }\n\n if (props.href) {\n return {\n href: props.href,\n };\n }\n\n return {};\n });\n</script>\n\n<template>\n <component :is=\"is\" v-bind=\"attributes\" class=\"tw-flex\" :class=\"{ 'tw-flex-col tw-items-center': props.stacked }\">\n <Icon :name=\"props.icon\" size=\"dense\" :class=\"[$style.icon, { [`tw-text-${color}`]: !!color }]\" />\n\n <div\n :class=\"{\n 'tw-ml-1.5 tw-flex-1': !props.stacked,\n 'tw-mt-1.5 tw-text-xs tw-leading-3': props.stacked,\n 'tw-truncate': truncate,\n }\"\n >\n <!-- @slot Label text -->\n <slot></slot>\n </div>\n </component>\n</template>\n\n<style module>\n .icon {\n margin-top: -1px;\n }\n</style>\n"],"names":["props","__props","is","computed","attributes"],"mappings":";;;;;;;;;;;;;;;AAuCE,UAAMA,IAAQC,GAYRC,IAAKC,EAAS,MACdH,EAAM,KACD,gBAGLA,EAAM,OACD,MAGF,KACR,GAEKI,IAAaD,EAAS,MACtBH,EAAM,KACD;AAAA,MACL,IAAIA,EAAM;AAAA,IAAA,IAIVA,EAAM,OACD;AAAA,MACL,MAAMA,EAAM;AAAA,IAAA,IAIT,EACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -33,23 +33,23 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
33
33
  };
34
34
 
35
35
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconLabelProps>, {
36
- color: undefined;
37
- href: undefined;
38
- to: undefined;
39
- stacked: boolean;
40
- truncate: boolean;
36
+ color: undefined;
37
+ href: undefined;
38
+ to: undefined;
39
+ stacked: boolean;
40
+ truncate: boolean;
41
41
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconLabelProps>, {
42
- color: undefined;
43
- href: undefined;
44
- to: undefined;
45
- stacked: boolean;
46
- truncate: boolean;
42
+ color: undefined;
43
+ href: undefined;
44
+ to: undefined;
45
+ stacked: boolean;
46
+ truncate: boolean;
47
47
  }>>> & Readonly<{}>, {
48
- to: string | object;
49
- href: string;
50
- color: "ice-700" | "purple-700" | "purple-500" | "purple-100" | "royal-700" | "royal-500" | "royal-100" | "blue-700" | "blue-500" | "blue-100" | "teal-700" | "teal-500" | "teal-100" | "green-700" | "green-500" | "green-100" | "seafoam-700" | "seafoam-500" | "seafoam-100" | "yellow-700" | "yellow-500" | "yellow-100" | "orange-700" | "orange-500" | "orange-100" | "red-700" | "red-500" | "red-100" | "ice-500" | "ice-200" | "ice-100" | "white" | "black";
51
- stacked: boolean;
52
- truncate: boolean;
48
+ to: string | object;
49
+ href: string;
50
+ color: "ice-700" | "purple-700" | "purple-500" | "purple-100" | "royal-700" | "royal-500" | "royal-100" | "blue-700" | "blue-500" | "blue-100" | "teal-700" | "teal-500" | "teal-100" | "green-700" | "green-500" | "green-100" | "seafoam-700" | "seafoam-500" | "seafoam-100" | "yellow-700" | "yellow-500" | "yellow-100" | "orange-700" | "orange-500" | "orange-100" | "red-700" | "red-500" | "red-100" | "ice-500" | "ice-200" | "ice-100" | "white" | "black";
51
+ stacked: boolean;
52
+ truncate: boolean;
53
53
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
54
54
  default?(_: {}): any;
55
55
  }>;
@@ -84,7 +84,7 @@ export declare interface IconLabelProps {
84
84
 
85
85
  declare type IconName = (typeof iconNames)[number];
86
86
 
87
- declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "equals", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-empty", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "paper-plane", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
87
+ declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-empty", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "equals", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "import", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-empty", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "paper-plane", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
88
88
 
89
89
  declare type StashCommonColor = `${StashCommonColors}`;
90
90
 
@@ -121,7 +121,7 @@ declare enum StashCommonColors {
121
121
  Red100 = "red-100",
122
122
  Ice700 = "ice-700",
123
123
  Ice500 = "ice-500",
124
- Ice200 = "ice-200",
124
+ Ice200 = "ice-200",// This is the one outlier, but it's used purposefully in a few places
125
125
  Ice100 = "ice-100",
126
126
  White = "white",
127
127
  Black = "black"
@@ -1,14 +1,11 @@
1
- import { _ as a } from "./Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js";
2
- import { I as r, S as i, V as f, s as n, v as N } from "./Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js";
3
- import "vue";
4
- import "lodash-es/uniqueId";
5
- import "./index-9e1095ef.js";
1
+ import { _ as s } from "./Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js";
2
+ import { I as m, S as o, V as p, s as r, v as i } from "./Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js";
6
3
  export {
7
- r as IllustrationType,
8
- i as SpotName,
9
- f as VignetteName,
10
- a as default,
11
- n as spotNames,
12
- N as vignetteNames
4
+ m as IllustrationType,
5
+ o as SpotName,
6
+ p as VignetteName,
7
+ s as default,
8
+ r as spotNames,
9
+ i as vignetteNames
13
10
  };
14
11
  //# sourceMappingURL=Illustration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Illustration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"Illustration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -27,29 +27,29 @@ declare type __VLS_WithDefaults<P, D> = {
27
27
  };
28
28
 
29
29
  declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IllustrationProps>, {
30
- id: string;
31
- title: string;
32
- size: number;
33
- type: IllustrationType;
34
- fillColor: string;
35
- strokeColor: string;
36
- staticPath: string;
30
+ id: string;
31
+ title: string;
32
+ size: number;
33
+ type: IllustrationType;
34
+ fillColor: string;
35
+ strokeColor: string;
36
+ staticPath: string;
37
37
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IllustrationProps>, {
38
- id: string;
39
- title: string;
40
- size: number;
41
- type: IllustrationType;
42
- fillColor: string;
43
- strokeColor: string;
44
- staticPath: string;
38
+ id: string;
39
+ title: string;
40
+ size: number;
41
+ type: IllustrationType;
42
+ fillColor: string;
43
+ strokeColor: string;
44
+ staticPath: string;
45
45
  }>>> & Readonly<{}>, {
46
- type: "spot" | "vignette" | "scene";
47
- title: string;
48
- id: string;
49
- size: number;
50
- staticPath: string;
51
- fillColor: StashPrimaryColorGroup;
52
- strokeColor: "purple-500" | "royal-500" | "blue-500" | "teal-500" | "green-500" | "seafoam-500" | "yellow-500" | "orange-500" | "red-500" | "ice-500";
46
+ type: "spot" | "vignette" | "scene";
47
+ title: string;
48
+ id: string;
49
+ size: number;
50
+ staticPath: string;
51
+ fillColor: StashPrimaryColorGroup;
52
+ strokeColor: "purple-500" | "royal-500" | "blue-500" | "teal-500" | "green-500" | "seafoam-500" | "yellow-500" | "orange-500" | "red-500" | "ice-500";
53
53
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
54
54
  export default _default;
55
55