@rei/cedar 13.4.0-alpha.1 → 13.4.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 (325) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
  2. package/dist/cedar-compiled.css +1031 -1145
  3. package/dist/node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.mjs +10 -0
  4. package/dist/src/components/accordion/CdrAccordion.vue.mjs +155 -0
  5. package/dist/src/components/accordion/CdrAccordionGroup.vue.mjs +78 -0
  6. package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +34 -0
  7. package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +7 -0
  8. package/dist/src/components/banner/CdrBanner.vue.mjs +56 -0
  9. package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +19 -0
  10. package/dist/src/components/breadcrumb/CdrBreadcrumb.vue.mjs +101 -0
  11. package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +12 -0
  12. package/dist/src/components/button/CdrButton.vue.mjs +75 -0
  13. package/dist/src/components/button/styles/CdrButton.module.scss.mjs +36 -0
  14. package/dist/src/components/caption/CdrCaption.vue.mjs +39 -0
  15. package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +7 -0
  16. package/dist/src/components/card/CdrCard.vue.mjs +32 -0
  17. package/dist/src/components/card/styles/CdrCard.module.scss.mjs +6 -0
  18. package/dist/src/components/checkbox/CdrCheckbox.vue.mjs +130 -0
  19. package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +30 -0
  20. package/dist/src/components/chip/CdrChip.vue.mjs +31 -0
  21. package/dist/src/components/chip/CdrChipGroup.vue.mjs +79 -0
  22. package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +9 -0
  23. package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +9 -0
  24. package/dist/src/components/container/CdrContainer.vue.mjs +43 -0
  25. package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +7 -0
  26. package/dist/src/components/formError/CdrFormError.vue.mjs +38 -0
  27. package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +7 -0
  28. package/dist/src/components/formGroup/CdrFormGroup.vue.mjs +72 -0
  29. package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +13 -0
  30. package/dist/src/components/grid/CdrGrid.vue.mjs +48 -0
  31. package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +26 -0
  32. package/dist/src/components/icon/CdrIcon.vue.mjs +57 -0
  33. package/dist/src/components/icon/comps/account-profile-fill.vue.mjs +28 -0
  34. package/dist/src/components/icon/comps/account-profile.vue.mjs +28 -0
  35. package/dist/src/components/icon/comps/arrow-down.vue.mjs +28 -0
  36. package/dist/src/components/icon/comps/arrow-left.vue.mjs +28 -0
  37. package/dist/src/components/icon/comps/arrow-right.vue.mjs +28 -0
  38. package/dist/src/components/icon/comps/arrow-up.vue.mjs +28 -0
  39. package/dist/src/components/icon/comps/atv.vue.mjs +28 -0
  40. package/dist/src/components/icon/comps/bed-outline.vue.mjs +28 -0
  41. package/dist/src/components/icon/comps/bike-shop.vue.mjs +28 -0
  42. package/dist/src/components/icon/comps/binoculars.vue.mjs +28 -0
  43. package/dist/src/components/icon/comps/birding.vue.mjs +28 -0
  44. package/dist/src/components/icon/comps/boat.vue.mjs +28 -0
  45. package/dist/src/components/icon/comps/boating.vue.mjs +28 -0
  46. package/dist/src/components/icon/comps/bookmark-fill.vue.mjs +28 -0
  47. package/dist/src/components/icon/comps/bookmark-stroke.vue.mjs +28 -0
  48. package/dist/src/components/icon/comps/brand-abstract.vue.mjs +28 -0
  49. package/dist/src/components/icon/comps/brand-code-sandbox.vue.mjs +28 -0
  50. package/dist/src/components/icon/comps/brand-github.vue.mjs +28 -0
  51. package/dist/src/components/icon/comps/brand-linkedin.vue.mjs +28 -0
  52. package/dist/src/components/icon/comps/brand-rei-ice-axes.vue.mjs +28 -0
  53. package/dist/src/components/icon/comps/brand-sketch.vue.mjs +28 -0
  54. package/dist/src/components/icon/comps/brand-tiktok.vue.mjs +29 -0
  55. package/dist/src/components/icon/comps/buddies.vue.mjs +28 -0
  56. package/dist/src/components/icon/comps/bus.vue.mjs +28 -0
  57. package/dist/src/components/icon/comps/calendar.vue.mjs +28 -0
  58. package/dist/src/components/icon/comps/camera.vue.mjs +28 -0
  59. package/dist/src/components/icon/comps/canoe.vue.mjs +28 -0
  60. package/dist/src/components/icon/comps/car.vue.mjs +28 -0
  61. package/dist/src/components/icon/comps/caret-down.vue.mjs +28 -0
  62. package/dist/src/components/icon/comps/caret-left.vue.mjs +28 -0
  63. package/dist/src/components/icon/comps/caret-right.vue.mjs +28 -0
  64. package/dist/src/components/icon/comps/caret-up.vue.mjs +28 -0
  65. package/dist/src/components/icon/comps/cart-fill.vue.mjs +28 -0
  66. package/dist/src/components/icon/comps/cart.vue.mjs +28 -0
  67. package/dist/src/components/icon/comps/chain-link.vue.mjs +28 -0
  68. package/dist/src/components/icon/comps/chat.vue.mjs +28 -0
  69. package/dist/src/components/icon/comps/check-fill.vue.mjs +28 -0
  70. package/dist/src/components/icon/comps/check-lg.vue.mjs +28 -0
  71. package/dist/src/components/icon/comps/check-sm.vue.mjs +28 -0
  72. package/dist/src/components/icon/comps/check-stroke.vue.mjs +28 -0
  73. package/dist/src/components/icon/comps/climb.vue.mjs +28 -0
  74. package/dist/src/components/icon/comps/clipboard.vue.mjs +28 -0
  75. package/dist/src/components/icon/comps/clock.vue.mjs +28 -0
  76. package/dist/src/components/icon/comps/code-html.vue.mjs +28 -0
  77. package/dist/src/components/icon/comps/code-js.vue.mjs +28 -0
  78. package/dist/src/components/icon/comps/compass.vue.mjs +28 -0
  79. package/dist/src/components/icon/comps/copy.vue.mjs +28 -0
  80. package/dist/src/components/icon/comps/coupon-fill.vue.mjs +28 -0
  81. package/dist/src/components/icon/comps/coupon-stroke.vue.mjs +28 -0
  82. package/dist/src/components/icon/comps/credit-card.vue.mjs +28 -0
  83. package/dist/src/components/icon/comps/curbside-pickup.vue.mjs +28 -0
  84. package/dist/src/components/icon/comps/day.vue.mjs +28 -0
  85. package/dist/src/components/icon/comps/diving.vue.mjs +28 -0
  86. package/dist/src/components/icon/comps/dog.vue.mjs +28 -0
  87. package/dist/src/components/icon/comps/download.vue.mjs +28 -0
  88. package/dist/src/components/icon/comps/duplicate.vue.mjs +29 -0
  89. package/dist/src/components/icon/comps/edit.vue.mjs +28 -0
  90. package/dist/src/components/icon/comps/elevation.vue.mjs +28 -0
  91. package/dist/src/components/icon/comps/error-fill.vue.mjs +30 -0
  92. package/dist/src/components/icon/comps/error-stroke.vue.mjs +32 -0
  93. package/dist/src/components/icon/comps/expand.vue.mjs +28 -0
  94. package/dist/src/components/icon/comps/experiences-backpacking.vue.mjs +28 -0
  95. package/dist/src/components/icon/comps/experiences-camping.vue.mjs +28 -0
  96. package/dist/src/components/icon/comps/experiences-climbing.vue.mjs +28 -0
  97. package/dist/src/components/icon/comps/experiences-clothing.vue.mjs +28 -0
  98. package/dist/src/components/icon/comps/experiences-cycling.vue.mjs +28 -0
  99. package/dist/src/components/icon/comps/experiences-family.vue.mjs +28 -0
  100. package/dist/src/components/icon/comps/experiences-fitness.vue.mjs +28 -0
  101. package/dist/src/components/icon/comps/experiences-hiking.vue.mjs +28 -0
  102. package/dist/src/components/icon/comps/experiences-outdoor-basics.vue.mjs +28 -0
  103. package/dist/src/components/icon/comps/experiences-paddling.vue.mjs +28 -0
  104. package/dist/src/components/icon/comps/experiences-rentals.vue.mjs +28 -0
  105. package/dist/src/components/icon/comps/experiences-running.vue.mjs +29 -0
  106. package/dist/src/components/icon/comps/experiences-snowsports.vue.mjs +28 -0
  107. package/dist/src/components/icon/comps/experiences-travel.vue.mjs +28 -0
  108. package/dist/src/components/icon/comps/external-link-alt.vue.mjs +29 -0
  109. package/dist/src/components/icon/comps/external-link.vue.mjs +28 -0
  110. package/dist/src/components/icon/comps/eye-hide.vue.mjs +28 -0
  111. package/dist/src/components/icon/comps/eye-show.vue.mjs +28 -0
  112. package/dist/src/components/icon/comps/facebook.vue.mjs +28 -0
  113. package/dist/src/components/icon/comps/filter-alt.vue.mjs +28 -0
  114. package/dist/src/components/icon/comps/filter.vue.mjs +28 -0
  115. package/dist/src/components/icon/comps/find-location.vue.mjs +28 -0
  116. package/dist/src/components/icon/comps/fire.vue.mjs +28 -0
  117. package/dist/src/components/icon/comps/fishing.vue.mjs +28 -0
  118. package/dist/src/components/icon/comps/free-product.vue.mjs +28 -0
  119. package/dist/src/components/icon/comps/grid-view.vue.mjs +28 -0
  120. package/dist/src/components/icon/comps/heart-fill.vue.mjs +28 -0
  121. package/dist/src/components/icon/comps/heart-stroke.vue.mjs +28 -0
  122. package/dist/src/components/icon/comps/hike.vue.mjs +28 -0
  123. package/dist/src/components/icon/comps/history.vue.mjs +28 -0
  124. package/dist/src/components/icon/comps/home.vue.mjs +28 -0
  125. package/dist/src/components/icon/comps/horse.vue.mjs +28 -0
  126. package/dist/src/components/icon/comps/horseshoe.vue.mjs +28 -0
  127. package/dist/src/components/icon/comps/image.vue.mjs +28 -0
  128. package/dist/src/components/icon/comps/information-fill.vue.mjs +28 -0
  129. package/dist/src/components/icon/comps/information-stroke.vue.mjs +28 -0
  130. package/dist/src/components/icon/comps/instagram.vue.mjs +28 -0
  131. package/dist/src/components/icon/comps/kayak.vue.mjs +28 -0
  132. package/dist/src/components/icon/comps/link-alt.vue.mjs +29 -0
  133. package/dist/src/components/icon/comps/list-ragged.vue.mjs +28 -0
  134. package/dist/src/components/icon/comps/list-view.vue.mjs +28 -0
  135. package/dist/src/components/icon/comps/location-pin-fill.vue.mjs +28 -0
  136. package/dist/src/components/icon/comps/location-pin-stroke.vue.mjs +28 -0
  137. package/dist/src/components/icon/comps/lock-locked-fill.vue.mjs +28 -0
  138. package/dist/src/components/icon/comps/lock-locked-stroke.vue.mjs +28 -0
  139. package/dist/src/components/icon/comps/lock-unlocked-stroke.vue.mjs +28 -0
  140. package/dist/src/components/icon/comps/mail.vue.mjs +28 -0
  141. package/dist/src/components/icon/comps/map.vue.mjs +28 -0
  142. package/dist/src/components/icon/comps/member-card.vue.mjs +28 -0
  143. package/dist/src/components/icon/comps/membership.vue.mjs +29 -0
  144. package/dist/src/components/icon/comps/microphone.vue.mjs +28 -0
  145. package/dist/src/components/icon/comps/minus-fill.vue.mjs +28 -0
  146. package/dist/src/components/icon/comps/minus-lg.vue.mjs +28 -0
  147. package/dist/src/components/icon/comps/minus-sm.vue.mjs +28 -0
  148. package/dist/src/components/icon/comps/minus-stroke.vue.mjs +28 -0
  149. package/dist/src/components/icon/comps/more-functions.vue.mjs +28 -0
  150. package/dist/src/components/icon/comps/my-location.vue.mjs +28 -0
  151. package/dist/src/components/icon/comps/navigation-menu.vue.mjs +28 -0
  152. package/dist/src/components/icon/comps/night.vue.mjs +28 -0
  153. package/dist/src/components/icon/comps/paddle.vue.mjs +28 -0
  154. package/dist/src/components/icon/comps/pause-fill.vue.mjs +28 -0
  155. package/dist/src/components/icon/comps/pause-stroke.vue.mjs +28 -0
  156. package/dist/src/components/icon/comps/pause.vue.mjs +28 -0
  157. package/dist/src/components/icon/comps/photography.vue.mjs +28 -0
  158. package/dist/src/components/icon/comps/picnic.vue.mjs +28 -0
  159. package/dist/src/components/icon/comps/pinterest.vue.mjs +28 -0
  160. package/dist/src/components/icon/comps/plane.vue.mjs +28 -0
  161. package/dist/src/components/icon/comps/play-fill.vue.mjs +28 -0
  162. package/dist/src/components/icon/comps/play-stroke.vue.mjs +28 -0
  163. package/dist/src/components/icon/comps/play.vue.mjs +28 -0
  164. package/dist/src/components/icon/comps/playground.vue.mjs +28 -0
  165. package/dist/src/components/icon/comps/plugin.vue.mjs +28 -0
  166. package/dist/src/components/icon/comps/plus-fill.vue.mjs +28 -0
  167. package/dist/src/components/icon/comps/plus-lg.vue.mjs +28 -0
  168. package/dist/src/components/icon/comps/plus-sm.vue.mjs +28 -0
  169. package/dist/src/components/icon/comps/plus-stroke.vue.mjs +28 -0
  170. package/dist/src/components/icon/comps/print.vue.mjs +28 -0
  171. package/dist/src/components/icon/comps/protection-fill.vue.mjs +28 -0
  172. package/dist/src/components/icon/comps/protection-stroke.vue.mjs +28 -0
  173. package/dist/src/components/icon/comps/question-fill.vue.mjs +28 -0
  174. package/dist/src/components/icon/comps/question-stroke.vue.mjs +28 -0
  175. package/dist/src/components/icon/comps/refresh.vue.mjs +28 -0
  176. package/dist/src/components/icon/comps/reload.vue.mjs +28 -0
  177. package/dist/src/components/icon/comps/returns.vue.mjs +29 -0
  178. package/dist/src/components/icon/comps/run.vue.mjs +28 -0
  179. package/dist/src/components/icon/comps/scan-barcode.vue.mjs +28 -0
  180. package/dist/src/components/icon/comps/search.vue.mjs +28 -0
  181. package/dist/src/components/icon/comps/service-shop.vue.mjs +28 -0
  182. package/dist/src/components/icon/comps/shipping-prep.vue.mjs +29 -0
  183. package/dist/src/components/icon/comps/shipping-truck.vue.mjs +29 -0
  184. package/dist/src/components/icon/comps/shipping.vue.mjs +28 -0
  185. package/dist/src/components/icon/comps/shopping-bag-fill.vue.mjs +28 -0
  186. package/dist/src/components/icon/comps/shopping-bag.vue.mjs +28 -0
  187. package/dist/src/components/icon/comps/shrink.vue.mjs +28 -0
  188. package/dist/src/components/icon/comps/size-chart.vue.mjs +28 -0
  189. package/dist/src/components/icon/comps/ski-boot.vue.mjs +28 -0
  190. package/dist/src/components/icon/comps/ski.vue.mjs +28 -0
  191. package/dist/src/components/icon/comps/snow-shop.vue.mjs +28 -0
  192. package/dist/src/components/icon/comps/snow.vue.mjs +28 -0
  193. package/dist/src/components/icon/comps/sort.vue.mjs +28 -0
  194. package/dist/src/components/icon/comps/star-100.vue.mjs +28 -0
  195. package/dist/src/components/icon/comps/star-25.vue.mjs +28 -0
  196. package/dist/src/components/icon/comps/star-50.vue.mjs +28 -0
  197. package/dist/src/components/icon/comps/star-75.vue.mjs +28 -0
  198. package/dist/src/components/icon/comps/star-stroke.vue.mjs +28 -0
  199. package/dist/src/components/icon/comps/storefront.vue.mjs +28 -0
  200. package/dist/src/components/icon/comps/swim.vue.mjs +28 -0
  201. package/dist/src/components/icon/comps/telephone.vue.mjs +28 -0
  202. package/dist/src/components/icon/comps/tent.vue.mjs +28 -0
  203. package/dist/src/components/icon/comps/trash.vue.mjs +28 -0
  204. package/dist/src/components/icon/comps/twitter.vue.mjs +28 -0
  205. package/dist/src/components/icon/comps/upload.vue.mjs +28 -0
  206. package/dist/src/components/icon/comps/verified-purchaser.vue.mjs +28 -0
  207. package/dist/src/components/icon/comps/virtual-outfitting.vue.mjs +28 -0
  208. package/dist/src/components/icon/comps/warning-fill.vue.mjs +28 -0
  209. package/dist/src/components/icon/comps/warning-stroke.vue.mjs +28 -0
  210. package/dist/src/components/icon/comps/water.vue.mjs +28 -0
  211. package/dist/src/components/icon/comps/wilderness.vue.mjs +28 -0
  212. package/dist/src/components/icon/comps/x-fill.vue.mjs +28 -0
  213. package/dist/src/components/icon/comps/x-lg.vue.mjs +28 -0
  214. package/dist/src/components/icon/comps/x-sm.vue.mjs +28 -0
  215. package/dist/src/components/icon/comps/x-stroke.vue.mjs +28 -0
  216. package/dist/src/components/icon/comps/youtube.vue.mjs +28 -0
  217. package/dist/src/components/icon/comps/zoom-in.vue.mjs +28 -0
  218. package/dist/src/components/icon/comps/zoom-out.vue.mjs +28 -0
  219. package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +17 -0
  220. package/dist/src/components/image/CdrImg.vue.mjs +114 -0
  221. package/dist/src/components/image/styles/CdrImg.module.scss.mjs +13 -0
  222. package/dist/src/components/input/CdrInput.vue.mjs +219 -0
  223. package/dist/src/components/input/styles/CdrInput.module.scss.mjs +37 -0
  224. package/dist/src/components/labelStandalone/CdrLabelStandalone.vue.mjs +70 -0
  225. package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +17 -0
  226. package/dist/src/components/labelWrapper/CdrLabelWrapper.vue.mjs +44 -0
  227. package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +28 -0
  228. package/dist/src/components/link/CdrLink.vue.mjs +60 -0
  229. package/dist/src/components/link/styles/CdrLink.module.scss.mjs +8 -0
  230. package/dist/src/components/list/CdrList.vue.mjs +44 -0
  231. package/dist/src/components/list/styles/CdrList.module.scss.mjs +10 -0
  232. package/dist/src/components/modal/CdrModal.vue.mjs +214 -0
  233. package/dist/src/components/modal/onTransitionEnd.mjs +29 -0
  234. package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +17 -0
  235. package/dist/src/components/pagination/CdrPagination.vue.mjs +199 -0
  236. package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +58 -0
  237. package/dist/src/components/popover/CdrPopover.vue.mjs +130 -0
  238. package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +68 -0
  239. package/dist/src/components/popup/CdrPopup.vue.mjs +111 -0
  240. package/dist/src/components/popup/calculatePlacement.mjs +27 -0
  241. package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +19 -0
  242. package/dist/src/components/quote/CdrQuote.vue.mjs +56 -0
  243. package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +9 -0
  244. package/dist/src/components/radio/CdrRadio.vue.mjs +99 -0
  245. package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +30 -0
  246. package/dist/src/components/rating/CdrRating.vue.mjs +103 -0
  247. package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +33 -0
  248. package/dist/src/components/select/CdrSelect.vue.mjs +198 -0
  249. package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +47 -0
  250. package/dist/src/components/skeleton/CdrSkeleton.vue.mjs +32 -0
  251. package/dist/src/components/skeleton/CdrSkeletonBone.vue.mjs +38 -0
  252. package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +6 -0
  253. package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +13 -0
  254. package/dist/src/components/switch/CdrSwitch.vue.mjs +76 -0
  255. package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +13 -0
  256. package/dist/src/components/table/CdrTable.vue.mjs +63 -0
  257. package/dist/src/components/table/styles/CdrTable.module.scss.mjs +18 -0
  258. package/dist/src/components/tabs/CdrTabPanel.vue.mjs +38 -0
  259. package/dist/src/components/tabs/CdrTabs.vue.mjs +168 -0
  260. package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +10 -0
  261. package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +33 -0
  262. package/dist/src/components/text/CdrText.vue.mjs +31 -0
  263. package/dist/src/components/text/styles/CdrText.module.scss.mjs +6 -0
  264. package/dist/src/components/toast/CdrToast.vue.mjs +110 -0
  265. package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +62 -0
  266. package/dist/src/components/toggleButton/CdrToggleButton.vue.mjs +38 -0
  267. package/dist/src/components/toggleButton/CdrToggleGroup.vue.mjs +75 -0
  268. package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +7 -0
  269. package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +10 -0
  270. package/dist/src/components/tooltip/CdrTooltip.vue.mjs +94 -0
  271. package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +21 -0
  272. package/dist/src/lib.mjs +446 -0
  273. package/dist/src/mixins/breakpoints.mjs +8 -0
  274. package/dist/src/props/background.mjs +9 -0
  275. package/dist/src/props/size.mjs +9 -0
  276. package/dist/src/utils/buildClass.mjs +6 -0
  277. package/dist/src/utils/mapClasses.mjs +6 -0
  278. package/dist/src/utils/propValidator.mjs +9 -0
  279. package/dist/src/utils/uid.mjs +6 -0
  280. package/dist/style/cdr-accordion-group.css +1 -1
  281. package/dist/style/cdr-accordion.css +1 -1
  282. package/dist/style/cdr-banner.css +1 -1
  283. package/dist/style/cdr-breadcrumb.css +1 -1
  284. package/dist/style/cdr-button.css +1 -1
  285. package/dist/style/cdr-caption.css +1 -1
  286. package/dist/style/cdr-card.css +1 -1
  287. package/dist/style/cdr-checkbox.css +1 -1
  288. package/dist/style/cdr-chip-group.css +1 -1
  289. package/dist/style/cdr-chip.css +1 -1
  290. package/dist/style/cdr-container.css +1 -1
  291. package/dist/style/cdr-form-error.css +1 -1
  292. package/dist/style/cdr-form-group.css +1 -1
  293. package/dist/style/cdr-grid.css +1 -1
  294. package/dist/style/cdr-icon.css +1 -1
  295. package/dist/style/cdr-img.css +1 -1
  296. package/dist/style/cdr-input.css +1 -1
  297. package/dist/style/cdr-label-standalone.css +1 -1
  298. package/dist/style/cdr-label-wrapper.css +1 -1
  299. package/dist/style/cdr-link.css +1 -1
  300. package/dist/style/cdr-list.css +1 -1
  301. package/dist/style/cdr-modal.css +1 -1
  302. package/dist/style/cdr-pagination.css +1 -1
  303. package/dist/style/cdr-popover.css +1 -1
  304. package/dist/style/cdr-popup.css +1 -1
  305. package/dist/style/cdr-quote.css +1 -1
  306. package/dist/style/cdr-radio.css +1 -1
  307. package/dist/style/cdr-rating.css +1 -1
  308. package/dist/style/cdr-select.css +1 -1
  309. package/dist/style/cdr-skeleton-bone.css +1 -1
  310. package/dist/style/cdr-skeleton.css +1 -1
  311. package/dist/style/cdr-switch.css +1 -1
  312. package/dist/style/cdr-tab-panel.css +1 -1
  313. package/dist/style/cdr-table.css +1 -1
  314. package/dist/style/cdr-tabs.css +1 -1
  315. package/dist/style/cdr-text.css +1 -1
  316. package/dist/style/cdr-toast.css +1 -1
  317. package/dist/style/cdr-toggle-button.css +1 -1
  318. package/dist/style/cdr-toggle-group.css +1 -1
  319. package/dist/style/cdr-tooltip.css +1 -1
  320. package/dist/style.css +1 -1
  321. package/package.json +7 -15
  322. package/dist/cedar.mjs +0 -10590
  323. package/dist/cedar.umd.js +0 -5
  324. package/dist/component-docgen.json +0 -3178
  325. package/dist/icon-component-docgen.json +0 -3536
@@ -0,0 +1,68 @@
1
+ const r = {
2
+ "cdr-popup": "cdr-popup_13-4-1",
3
+ "cdr-popup--open": "cdr-popup--open_13-4-1",
4
+ "cdr-popup--closed": "cdr-popup--closed_13-4-1",
5
+ "cdr-popup__content": "cdr-popup__content_13-4-1",
6
+ "cdr-popup__arrow": "cdr-popup__arrow_13-4-1",
7
+ "cdr-popup--top": "cdr-popup--top_13-4-1",
8
+ "cdr-popup--bottom": "cdr-popup--bottom_13-4-1",
9
+ "cdr-popup--exit": "cdr-popup--exit_13-4-1",
10
+ "cdr-popup--corner-left": "cdr-popup--corner-left_13-4-1",
11
+ "cdr-popup--corner-right": "cdr-popup--corner-right_13-4-1",
12
+ "cdr-popup--left": "cdr-popup--left_13-4-1",
13
+ "cdr-popup--right": "cdr-popup--right_13-4-1",
14
+ "cdr-popup--corner-top": "cdr-popup--corner-top_13-4-1",
15
+ "cdr-popup--corner-bottom": "cdr-popup--corner-bottom_13-4-1",
16
+ "cdr-button": "cdr-button_13-4-1",
17
+ "cdr-button--has-icon-left": "cdr-button--has-icon-left_13-4-1",
18
+ "cdr-button--has-icon-right": "cdr-button--has-icon-right_13-4-1",
19
+ "cdr-button--primary": "cdr-button--primary_13-4-1",
20
+ "cdr-button--secondary": "cdr-button--secondary_13-4-1",
21
+ "cdr-button--dark": "cdr-button--dark_13-4-1",
22
+ "cdr-button--sale": "cdr-button--sale_13-4-1",
23
+ "cdr-button--link": "cdr-button--link_13-4-1",
24
+ "cdr-button--large": "cdr-button--large_13-4-1",
25
+ "cdr-button--medium": "cdr-button--medium_13-4-1",
26
+ "cdr-button--small": "cdr-button--small_13-4-1",
27
+ "cdr-button--icon-only": "cdr-button--icon-only_13-4-1",
28
+ "cdr-button--icon-only-large": "cdr-button--icon-only-large_13-4-1",
29
+ "cdr-button--with-background": "cdr-button--with-background_13-4-1",
30
+ "cdr-button--full-width": "cdr-button--full-width_13-4-1",
31
+ "cdr-button--small@xs": "cdr-button--small@xs_13-4-1",
32
+ "cdr-button--medium@xs": "cdr-button--medium@xs_13-4-1",
33
+ "cdr-button--large@xs": "cdr-button--large@xs_13-4-1",
34
+ "cdr-button--full-width@xs": "cdr-button--full-width@xs_13-4-1",
35
+ "cdr-button--small@sm": "cdr-button--small@sm_13-4-1",
36
+ "cdr-button--medium@sm": "cdr-button--medium@sm_13-4-1",
37
+ "cdr-button--large@sm": "cdr-button--large@sm_13-4-1",
38
+ "cdr-button--full-width@sm": "cdr-button--full-width@sm_13-4-1",
39
+ "cdr-button--small@md": "cdr-button--small@md_13-4-1",
40
+ "cdr-button--medium@md": "cdr-button--medium@md_13-4-1",
41
+ "cdr-button--large@md": "cdr-button--large@md_13-4-1",
42
+ "cdr-button--full-width@md": "cdr-button--full-width@md_13-4-1",
43
+ "cdr-button--small@lg": "cdr-button--small@lg_13-4-1",
44
+ "cdr-button--medium@lg": "cdr-button--medium@lg_13-4-1",
45
+ "cdr-button--large@lg": "cdr-button--large@lg_13-4-1",
46
+ "cdr-button--full-width@lg": "cdr-button--full-width@lg_13-4-1",
47
+ "cdr-icon": "cdr-icon_13-4-1",
48
+ "cdr-icon--small": "cdr-icon--small_13-4-1",
49
+ "cdr-icon--large": "cdr-icon--large_13-4-1",
50
+ "cdr-icon--small@xs": "cdr-icon--small@xs_13-4-1",
51
+ "cdr-icon--large@xs": "cdr-icon--large@xs_13-4-1",
52
+ "cdr-icon--small@sm": "cdr-icon--small@sm_13-4-1",
53
+ "cdr-icon--large@sm": "cdr-icon--large@sm_13-4-1",
54
+ "cdr-icon--small@md": "cdr-icon--small@md_13-4-1",
55
+ "cdr-icon--large@md": "cdr-icon--large@md_13-4-1",
56
+ "cdr-icon--small@lg": "cdr-icon--small@lg_13-4-1",
57
+ "cdr-icon--large@lg": "cdr-icon--large@lg_13-4-1",
58
+ "cdr-icon--inherit-color": "cdr-icon--inherit-color_13-4-1",
59
+ "cdr-popover--position": "cdr-popover--position_13-4-1",
60
+ "cdr-popover--wrapper": "cdr-popover--wrapper_13-4-1",
61
+ "cdr-popover__title": "cdr-popover__title_13-4-1",
62
+ "cdr-popover__container": "cdr-popover__container_13-4-1",
63
+ "cdr-popover__content": "cdr-popover__content_13-4-1",
64
+ "cdr-popover__close-button": "cdr-popover__close-button_13-4-1"
65
+ };
66
+ export {
67
+ r as default
68
+ };
@@ -0,0 +1,111 @@
1
+ import { defineComponent as H, ref as n, computed as i, watch as w, onMounted as O, onUnmounted as q, useCssModule as A, openBlock as K, createElementBlock as N, normalizeClass as h, createElementVNode as k, mergeProps as U, renderSlot as V, nextTick as m } from "vue";
2
+ import { debounce as W } from "lodash-es";
3
+ import j from "../../utils/propValidator.mjs";
4
+ import D from "./calculatePlacement.mjs";
5
+ import F from "../../utils/mapClasses.mjs";
6
+ import G from "./styles/CdrPopup.module.scss.mjs";
7
+ import I from "../../../_virtual/_plugin-vue_export-helper.mjs";
8
+ const J = H({
9
+ name: "CdrPopup",
10
+ inheritAttrs: !1,
11
+ customOptions: {},
12
+ props: {
13
+ opened: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ position: {
18
+ type: String,
19
+ required: !1,
20
+ default: "top",
21
+ validator: (e) => j(e, ["top", "bottom", "left", "right"])
22
+ },
23
+ autoPosition: {
24
+ type: Boolean,
25
+ default: !0
26
+ },
27
+ contentClass: {
28
+ type: String
29
+ }
30
+ },
31
+ emits: ["closed"],
32
+ setup(e, v) {
33
+ const f = "cdr-popup", s = n(e.position), l = n(void 0), t = n(!1), C = n(void 0), a = n(!e.opened), d = n(null), E = n(null), P = i(() => e.opened || t.value ? `cdr-popup--${s.value}` : void 0), $ = i(() => l.value ? `cdr-popup--corner-${l.value}` : void 0), L = i(() => e.opened ? "cdr-popup--open" : void 0), B = i(() => a.value && !t.value ? "cdr-popup--closed" : void 0), b = i(() => t.value ? "cdr-popup--exit" : void 0), c = (o) => {
34
+ v.emit("closed", o);
35
+ }, r = (o) => {
36
+ switch (o.key) {
37
+ case "Escape":
38
+ case "Esc":
39
+ c(o);
40
+ break;
41
+ }
42
+ }, u = (o) => {
43
+ m(() => {
44
+ o.target !== d.value && !d.value.contains(o.target) && c(o);
45
+ });
46
+ }, g = () => {
47
+ a.value = !1, m(() => {
48
+ C.value = d.value.getBoundingClientRect(), a.value = !0;
49
+ });
50
+ }, p = () => {
51
+ W(() => {
52
+ g();
53
+ }, 300);
54
+ }, R = () => {
55
+ document.addEventListener("keydown", r), document.addEventListener("click", u);
56
+ }, z = () => {
57
+ s.value = e.position, l.value = void 0, e.autoPosition && m(() => {
58
+ const o = E.value.parentElement.getBoundingClientRect(), {
59
+ innerHeight: S,
60
+ innerWidth: T
61
+ } = window, y = D(o, C.value, T, S, e.position);
62
+ s.value = y.pos, l.value = y.corner;
63
+ }), a.value = !1, setTimeout(() => {
64
+ R();
65
+ }, 1);
66
+ }, M = () => {
67
+ a.value = !0, document.removeEventListener("keydown", r), document.removeEventListener("click", u), t.value = !0, setTimeout(() => {
68
+ t.value = !1;
69
+ }, 200);
70
+ };
71
+ return w(() => e.position, () => s.value = e.position), w(() => e.opened, () => {
72
+ e.opened ? z() : M();
73
+ }), O(() => {
74
+ g(), window.addEventListener("resize", p);
75
+ }), q(() => {
76
+ document.removeEventListener("keydown", r), document.removeEventListener("click", u), window.removeEventListener("resize", p);
77
+ }), {
78
+ style: A(),
79
+ mapClasses: F,
80
+ baseClass: f,
81
+ positionClass: P,
82
+ cornerClass: $,
83
+ openClass: L,
84
+ closedClass: B,
85
+ exitingClass: b,
86
+ closePopup: c,
87
+ handleClick: u,
88
+ handleKeydown: r,
89
+ handleResize: p,
90
+ popupEl: d,
91
+ rootEl: E
92
+ };
93
+ }
94
+ });
95
+ function Q(e, v, f, s, l, t) {
96
+ return K(), N("div", {
97
+ ref: "rootEl",
98
+ class: h(e.mapClasses(e.style, e.baseClass, e.openClass, e.exitingClass, e.positionClass, e.cornerClass, e.closedClass))
99
+ }, [k("div", U(e.$attrs, {
100
+ class: e.mapClasses(e.style, "cdr-popup__content", e.contentClass),
101
+ ref: "popupEl"
102
+ }), [V(e.$slots, "default")], 16), k("div", {
103
+ class: h(e.style["cdr-popup__arrow"])
104
+ }, null, 2)], 2);
105
+ }
106
+ const X = {
107
+ $style: G
108
+ }, te = /* @__PURE__ */ I(J, [["render", Q], ["__cssModules", X]]);
109
+ export {
110
+ te as default
111
+ };
@@ -0,0 +1,27 @@
1
+ function j(e, o, l, n, h) {
2
+ const b = e.top + e.height / 2, d = e.left + e.width / 2;
3
+ let f, s;
4
+ const t = {
5
+ top: e.top - o.height - 14,
6
+ bottom: n - e.bottom - o.height - 14,
7
+ left: e.left - o.width - 14,
8
+ right: l - e.right - o.width - 14
9
+ }, r = {
10
+ left: d - o.width / 2 - 2 <= 0,
11
+ right: d + o.width / 2 + 2 >= l,
12
+ top: b - o.height / 2 - 2 <= 0,
13
+ bottom: b + o.height / 2 + 2 >= n
14
+ }, m = {
15
+ top: "bottom",
16
+ bottom: "top",
17
+ left: "right",
18
+ right: "left"
19
+ }[h], w = Object.keys(t).filter((i) => t[i] > 0), S = Object.keys(t).sort((i, z) => t[i] > t[z] ? -1 : t[i] < t[z] ? 1 : 0);
20
+ return t[h] > 0 ? f = h : t[m] > 0 ? f = m : w.length ? [f] = w : [f] = S, f === "bottom" || f === "top" ? r.left ? s = "left" : r.right && (s = "right") : r.top ? s = "top" : r.bottom && (s = "bottom"), {
21
+ pos: f,
22
+ corner: s
23
+ };
24
+ }
25
+ export {
26
+ j as default
27
+ };
@@ -0,0 +1,19 @@
1
+ const p = {
2
+ "cdr-popup": "cdr-popup_13-4-1",
3
+ "cdr-popup--open": "cdr-popup--open_13-4-1",
4
+ "cdr-popup--closed": "cdr-popup--closed_13-4-1",
5
+ "cdr-popup__content": "cdr-popup__content_13-4-1",
6
+ "cdr-popup__arrow": "cdr-popup__arrow_13-4-1",
7
+ "cdr-popup--top": "cdr-popup--top_13-4-1",
8
+ "cdr-popup--bottom": "cdr-popup--bottom_13-4-1",
9
+ "cdr-popup--exit": "cdr-popup--exit_13-4-1",
10
+ "cdr-popup--corner-left": "cdr-popup--corner-left_13-4-1",
11
+ "cdr-popup--corner-right": "cdr-popup--corner-right_13-4-1",
12
+ "cdr-popup--left": "cdr-popup--left_13-4-1",
13
+ "cdr-popup--right": "cdr-popup--right_13-4-1",
14
+ "cdr-popup--corner-top": "cdr-popup--corner-top_13-4-1",
15
+ "cdr-popup--corner-bottom": "cdr-popup--corner-bottom_13-4-1"
16
+ };
17
+ export {
18
+ p as default
19
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as d, computed as c, useCssModule as p, openBlock as t, createBlock as f, resolveDynamicComponent as y, normalizeClass as o, withCtx as C, createElementBlock as l, toDisplayString as m, createCommentVNode as n, renderSlot as g } from "vue";
2
+ import $ from "../../utils/mapClasses.mjs";
3
+ import u from "../../utils/propValidator.mjs";
4
+ import k from "./styles/CdrQuote.module.scss.mjs";
5
+ import q from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const S = d({
7
+ name: "CdrQuote",
8
+ props: {
9
+ tag: {
10
+ type: String,
11
+ default: "blockquote",
12
+ validator: (s) => u(s, ["blockquote", "aside", "q", "div"])
13
+ },
14
+ modifier: {
15
+ type: String,
16
+ default: "",
17
+ validator: (s) => u(s, ["", "pull"])
18
+ },
19
+ /** Caption summary text */
20
+ summary: String,
21
+ /** Caption credit text */
22
+ citation: String
23
+ },
24
+ setup(s) {
25
+ const e = "cdr-quote", a = "cdr-quote__summary", r = "cdr-quote__citation", i = c(() => s.modifier && `${e}--${s.modifier}`);
26
+ return {
27
+ style: p(),
28
+ mapClasses: $,
29
+ baseClass: e,
30
+ summaryClass: a,
31
+ citationClass: r,
32
+ modifierClass: i
33
+ };
34
+ }
35
+ });
36
+ function v(s, e, a, r, i, B) {
37
+ return t(), f(y(s.tag), {
38
+ class: o(s.mapClasses(s.style, s.baseClass, s.modifierClass))
39
+ }, {
40
+ default: C(() => [s.summary ? (t(), l("p", {
41
+ key: 0,
42
+ class: o(s.style[s.summaryClass])
43
+ }, m(s.summary), 3)) : n("", !0), g(s.$slots, "default"), s.citation ? (t(), l("cite", {
44
+ key: 1,
45
+ class: o(s.style[s.citationClass]),
46
+ tag: "cite"
47
+ }, m(s.citation), 3)) : n("", !0)]),
48
+ _: 3
49
+ }, 8, ["class"]);
50
+ }
51
+ const b = {
52
+ $style: k
53
+ }, z = /* @__PURE__ */ q(S, [["render", v], ["__cssModules", b]]);
54
+ export {
55
+ z as default
56
+ };
@@ -0,0 +1,9 @@
1
+ const t = {
2
+ "cdr-text": "cdr-text_13-4-1",
3
+ "cdr-quote": "cdr-quote_13-4-1",
4
+ "cdr-quote__summary": "cdr-quote__summary_13-4-1",
5
+ "cdr-quote--pull": "cdr-quote--pull_13-4-1"
6
+ };
7
+ export {
8
+ t as default
9
+ };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as i, computed as d, useCssModule as u, resolveComponent as m, openBlock as p, createBlock as c, normalizeClass as b, withCtx as t, withDirectives as f, createElementVNode as C, mergeProps as g, vModelRadio as y, renderSlot as S } from "vue";
2
+ import V from "../../utils/propValidator.mjs";
3
+ import $ from "../labelWrapper/CdrLabelWrapper.vue.mjs";
4
+ import k from "../../props/size.mjs";
5
+ import v from "../../props/background.mjs";
6
+ import M from "./styles/CdrRadio.module.scss.mjs";
7
+ import z from "../../../_virtual/_plugin-vue_export-helper.mjs";
8
+ const h = i({
9
+ name: "CdrRadio",
10
+ components: {
11
+ CdrLabelWrapper: $
12
+ },
13
+ inheritAttrs: !1,
14
+ customOptions: {},
15
+ props: {
16
+ /**
17
+ * Class that is added to the label for custom styles
18
+ */
19
+ labelClass: String,
20
+ /**
21
+ * Class that is added to the input for custom styles
22
+ */
23
+ inputClass: String,
24
+ /**
25
+ * Class that is added to the slot wrapper for custom styles
26
+ */
27
+ contentClass: String,
28
+ /**
29
+ * Sets the name of the radio. Required.
30
+ */
31
+ name: {
32
+ type: String,
33
+ required: !0
34
+ },
35
+ modifier: {
36
+ type: String,
37
+ default: "",
38
+ validator: (e) => V(e, ["", "hide-figure"])
39
+ },
40
+ size: k,
41
+ // Set which background type the input renders on
42
+ background: v,
43
+ /**
44
+ * Sets the value of the radio. Required.
45
+ */
46
+ customValue: {
47
+ type: [String, Number, Boolean, Object, Array, Symbol, Function]
48
+ },
49
+ /** @ignore v-model binding */
50
+ modelValue: {
51
+ type: [String, Number, Boolean, Object, Array, Symbol, Function]
52
+ }
53
+ },
54
+ emits: ["update:modelValue"],
55
+ setup(e, o) {
56
+ const s = "cdr-radio", r = d({
57
+ get() {
58
+ return e.modelValue;
59
+ },
60
+ set(a) {
61
+ o.emit("update:modelValue", a);
62
+ }
63
+ });
64
+ return {
65
+ style: u(),
66
+ baseClass: s,
67
+ radioModel: r
68
+ };
69
+ }
70
+ }), w = ["name", "value"];
71
+ function B(e, o, s, r, a, A) {
72
+ const l = m("cdr-label-wrapper");
73
+ return p(), c(l, {
74
+ class: b(e.style[e.baseClass]),
75
+ size: e.size,
76
+ modifier: e.modifier,
77
+ "label-class": e.labelClass,
78
+ "content-class": e.contentClass,
79
+ background: e.background,
80
+ disabled: e.$attrs.disabled
81
+ }, {
82
+ input: t(() => [f(C("input", g({
83
+ class: [e.style["cdr-radio__input"], e.inputClass],
84
+ type: "radio",
85
+ name: e.name,
86
+ value: e.customValue
87
+ }, e.$attrs, {
88
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => e.radioModel = n)
89
+ }), null, 16, w), [[y, e.radioModel]])]),
90
+ default: t(() => [S(e.$slots, "default")]),
91
+ _: 3
92
+ }, 8, ["class", "size", "modifier", "label-class", "content-class", "background", "disabled"]);
93
+ }
94
+ const P = {
95
+ $style: M
96
+ }, E = /* @__PURE__ */ z(h, [["render", B], ["__cssModules", P]]);
97
+ export {
98
+ E as default
99
+ };
@@ -0,0 +1,30 @@
1
+ const r = {
2
+ "cdr-label-wrapper": "cdr-label-wrapper_13-4-1",
3
+ "cdr-label-wrapper__container": "cdr-label-wrapper__container_13-4-1",
4
+ "cdr-label-wrapper--primary": "cdr-label-wrapper--primary_13-4-1",
5
+ "cdr-label-wrapper--secondary": "cdr-label-wrapper--secondary_13-4-1",
6
+ "cdr-label-wrapper--disabled": "cdr-label-wrapper--disabled_13-4-1",
7
+ "cdr-label-wrapper__figure": "cdr-label-wrapper__figure_13-4-1",
8
+ "cdr-label-wrapper__content": "cdr-label-wrapper__content_13-4-1",
9
+ "cdr-label-wrapper--hide-figure": "cdr-label-wrapper--hide-figure_13-4-1",
10
+ "cdr-label-wrapper--small": "cdr-label-wrapper--small_13-4-1",
11
+ "cdr-label-wrapper--medium": "cdr-label-wrapper--medium_13-4-1",
12
+ "cdr-label-wrapper--large": "cdr-label-wrapper--large_13-4-1",
13
+ "cdr-label-wrapper--small@xs": "cdr-label-wrapper--small@xs_13-4-1",
14
+ "cdr-label-wrapper--medium@xs": "cdr-label-wrapper--medium@xs_13-4-1",
15
+ "cdr-label-wrapper--large@xs": "cdr-label-wrapper--large@xs_13-4-1",
16
+ "cdr-label-wrapper--small@sm": "cdr-label-wrapper--small@sm_13-4-1",
17
+ "cdr-label-wrapper--medium@sm": "cdr-label-wrapper--medium@sm_13-4-1",
18
+ "cdr-label-wrapper--large@sm": "cdr-label-wrapper--large@sm_13-4-1",
19
+ "cdr-label-wrapper--small@md": "cdr-label-wrapper--small@md_13-4-1",
20
+ "cdr-label-wrapper--medium@md": "cdr-label-wrapper--medium@md_13-4-1",
21
+ "cdr-label-wrapper--large@md": "cdr-label-wrapper--large@md_13-4-1",
22
+ "cdr-label-wrapper--small@lg": "cdr-label-wrapper--small@lg_13-4-1",
23
+ "cdr-label-wrapper--medium@lg": "cdr-label-wrapper--medium@lg_13-4-1",
24
+ "cdr-label-wrapper--large@lg": "cdr-label-wrapper--large@lg_13-4-1",
25
+ "cdr-radio": "cdr-radio_13-4-1",
26
+ "cdr-radio__input": "cdr-radio__input_13-4-1"
27
+ };
28
+ export {
29
+ r as default
30
+ };
@@ -0,0 +1,103 @@
1
+ import { defineComponent as p, computed as t, useCssModule as _, openBlock as r, createBlock as b, resolveDynamicComponent as z, normalizeClass as n, withCtx as M, createElementVNode as u, createElementBlock as s, Fragment as v, renderList as C, createCommentVNode as l, toDisplayString as d } from "vue";
2
+ import R from "../../utils/propValidator.mjs";
3
+ import N from "../../utils/mapClasses.mjs";
4
+ import S from "./styles/CdrRating.module.scss.mjs";
5
+ import B from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const V = p({
7
+ name: "CdrRating",
8
+ props: {
9
+ /**
10
+ * Rating value (out of 5)
11
+ */
12
+ rating: {
13
+ required: !0,
14
+ type: [String, Number],
15
+ default: 0
16
+ },
17
+ /**
18
+ * Total number of ratings
19
+ */
20
+ count: {
21
+ required: !1,
22
+ type: [String, Number],
23
+ default: null
24
+ },
25
+ /**
26
+ * Hides the word 'reviews' if true
27
+ */
28
+ compact: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ /**
33
+ * Allows the ratings to act as a link
34
+ */
35
+ href: {
36
+ type: String
37
+ },
38
+ size: {
39
+ type: String,
40
+ default: "medium",
41
+ validator: (e) => R(e, ["small", "medium", "large"])
42
+ }
43
+ },
44
+ setup(e) {
45
+ const i = "cdr-rating", c = t(() => e.size && `${i}--${e.size}`), m = t(() => e.href && `${i}--linked`), f = t(() => e.rounded > 0 || e.count > 0 ? "cdr-rating__placeholder" : "cdr-rating__placeholder--no-reviews"), g = t(() => e.href ? "a" : "div"), a = t(() => (Math.round(e.rating * 10) / 10).toFixed(1)), o = t(() => Math.round(e.rating * 4) / 4), y = t(() => Math.floor(o.value)), h = t(() => o.value.toFixed(2).split(".")[1]), $ = t(() => 5 - y.value - (h.value > 0 ? 1 : 0)), w = t(() => e.compact ? `(${e.count})` : `${e.count}`), k = t(() => e.href ? e.count === 0 || e.count === "0" ? "No reviews yet; be the first!" : e.count === null ? `View the reviews with an average rating of ${a.value} out of 5 stars` : `View the ${e.count} reviews with an average rating of ${a.value} out of 5 stars` : e.count === 0 || e.count === "0" ? "0 reviews" : e.count === null ? `Rated ${a.value} out of 5 stars` : `${e.count} reviews with an average rating of ${a.value} out of 5 stars`);
46
+ return {
47
+ style: _(),
48
+ mapClasses: N,
49
+ baseClass: i,
50
+ sizeClass: c,
51
+ linkedClass: m,
52
+ emptyClass: f,
53
+ empties: $,
54
+ formattedCount: w,
55
+ srText: k,
56
+ tag: g,
57
+ displayRating: a,
58
+ whole: y,
59
+ remainder: h,
60
+ rounded: o
61
+ };
62
+ }
63
+ }), F = {
64
+ key: 1
65
+ };
66
+ function q(e, i, c, m, f, g) {
67
+ return r(), b(z(e.tag), {
68
+ href: e.href,
69
+ class: n(e.mapClasses(e.style, e.baseClass, e.sizeClass, e.linkedClass))
70
+ }, {
71
+ default: M(() => [u("div", {
72
+ class: n(e.style["cdr-rating__ratings"])
73
+ }, [(r(!0), s(v, null, C(Array(e.whole).keys(), (a) => (r(), s("span", {
74
+ class: n(e.mapClasses(e.style, "cdr-rating__icon", "cdr-rating__100")),
75
+ key: `rating-whole-${a}`,
76
+ "aria-hidden": "true"
77
+ }, null, 2))), 128)), e.remainder !== "00" ? (r(), s("span", {
78
+ key: 0,
79
+ class: n(e.mapClasses(e.style, "cdr-rating__icon", `cdr-rating__${e.remainder}`)),
80
+ "aria-hidden": "true"
81
+ }, null, 2)) : l("", !0), (r(!0), s(v, null, C(Array(e.empties).keys(), (a) => (r(), s("span", {
82
+ class: n(e.mapClasses(e.style, "cdr-rating__icon", e.emptyClass)),
83
+ key: `rating-empty-${a}`,
84
+ "aria-hidden": "true"
85
+ }, null, 2))), 128))], 2), e.count !== null ? (r(), s("span", {
86
+ key: 0,
87
+ "aria-hidden": "true",
88
+ class: n(e.style["cdr-rating__count"])
89
+ }, [e.href ? (r(), s("span", {
90
+ key: 0,
91
+ class: n(e.style["cdr-rating__number"])
92
+ }, d(e.displayRating), 3)) : l("", !0), u("span", null, d(e.formattedCount), 1), e.compact ? l("", !0) : (r(), s("span", F, "  Reviews "))], 2)) : l("", !0), u("span", {
93
+ class: n(e.style["cdr-rating__caption-sr"])
94
+ }, d(e.srText), 3)]),
95
+ _: 1
96
+ }, 8, ["href", "class"]);
97
+ }
98
+ const A = {
99
+ $style: S
100
+ }, j = /* @__PURE__ */ B(V, [["render", q], ["__cssModules", A]]);
101
+ export {
102
+ j as default
103
+ };
@@ -0,0 +1,33 @@
1
+ const r = {
2
+ "cdr-rating__icon": "cdr-rating__icon_13-4-1",
3
+ "cdr-rating__count": "cdr-rating__count_13-4-1",
4
+ "cdr-rating": "cdr-rating_13-4-1",
5
+ "cdr-rating__number": "cdr-rating__number_13-4-1",
6
+ "cdr-rating__ratings": "cdr-rating__ratings_13-4-1",
7
+ "cdr-rating__caption-sr": "cdr-rating__caption-sr_13-4-1",
8
+ "cdr-rating__placeholder": "cdr-rating__placeholder_13-4-1",
9
+ "cdr-rating__placeholder--no-reviews": "cdr-rating__placeholder--no-reviews_13-4-1",
10
+ "cdr-rating__100": "cdr-rating__100_13-4-1",
11
+ "cdr-rating__75": "cdr-rating__75_13-4-1",
12
+ "cdr-rating__50": "cdr-rating__50_13-4-1",
13
+ "cdr-rating__25": "cdr-rating__25_13-4-1",
14
+ "cdr-rating--linked": "cdr-rating--linked_13-4-1",
15
+ "cdr-rating--large": "cdr-rating--large_13-4-1",
16
+ "cdr-rating--medium": "cdr-rating--medium_13-4-1",
17
+ "cdr-rating--small": "cdr-rating--small_13-4-1",
18
+ "cdr-rating--small@xs": "cdr-rating--small@xs_13-4-1",
19
+ "cdr-rating--medium@xs": "cdr-rating--medium@xs_13-4-1",
20
+ "cdr-rating--large@xs": "cdr-rating--large@xs_13-4-1",
21
+ "cdr-rating--small@sm": "cdr-rating--small@sm_13-4-1",
22
+ "cdr-rating--medium@sm": "cdr-rating--medium@sm_13-4-1",
23
+ "cdr-rating--large@sm": "cdr-rating--large@sm_13-4-1",
24
+ "cdr-rating--small@md": "cdr-rating--small@md_13-4-1",
25
+ "cdr-rating--medium@md": "cdr-rating--medium@md_13-4-1",
26
+ "cdr-rating--large@md": "cdr-rating--large@md_13-4-1",
27
+ "cdr-rating--small@lg": "cdr-rating--small@lg_13-4-1",
28
+ "cdr-rating--medium@lg": "cdr-rating--medium@lg_13-4-1",
29
+ "cdr-rating--large@lg": "cdr-rating--large@lg_13-4-1"
30
+ };
31
+ export {
32
+ r as default
33
+ };