@rei/cedar 11.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/dist/cdr-fonts.css +21 -0
  4. package/dist/cedar-compiled.css +4788 -0
  5. package/dist/cedar.js +11677 -0
  6. package/dist/cedar.mjs +9944 -0
  7. package/dist/lib/assets/cedar-compiled-fccbce00.css +4714 -0
  8. package/dist/lib/node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.esm.mjs +9 -0
  9. package/dist/lib/src/components/accordion/CdrAccordion.mjs +206 -0
  10. package/dist/lib/src/components/accordion/CdrAccordionGroup.mjs +124 -0
  11. package/dist/lib/src/components/accordion/styles/CdrAccordion.mjs +3 -0
  12. package/dist/lib/src/components/accordion/styles/CdrAccordionGroup.mjs +3 -0
  13. package/dist/lib/src/components/banner/CdrBanner.mjs +75 -0
  14. package/dist/lib/src/components/banner/styles/CdrBanner.mjs +3 -0
  15. package/dist/lib/src/components/breadcrumb/CdrBreadcrumb.mjs +170 -0
  16. package/dist/lib/src/components/breadcrumb/styles/CdrBreadcrumb.mjs +3 -0
  17. package/dist/lib/src/components/button/CdrButton.mjs +128 -0
  18. package/dist/lib/src/components/button/styles/CdrButton.mjs +3 -0
  19. package/dist/lib/src/components/caption/CdrCaption.mjs +38 -0
  20. package/dist/lib/src/components/caption/styles/CdrCaption.mjs +3 -0
  21. package/dist/lib/src/components/card/CdrCard.mjs +35 -0
  22. package/dist/lib/src/components/card/styles/CdrCard.mjs +3 -0
  23. package/dist/lib/src/components/checkbox/CdrCheckbox.mjs +182 -0
  24. package/dist/lib/src/components/checkbox/styles/CdrCheckbox.mjs +3 -0
  25. package/dist/lib/src/components/chip/CdrChip.mjs +36 -0
  26. package/dist/lib/src/components/chip/CdrChipGroup.mjs +108 -0
  27. package/dist/lib/src/components/chip/styles/CdrChip.mjs +3 -0
  28. package/dist/lib/src/components/chip/styles/CdrChipGroup.mjs +3 -0
  29. package/dist/lib/src/components/container/CdrContainer.mjs +51 -0
  30. package/dist/lib/src/components/container/styles/CdrContainer.mjs +3 -0
  31. package/dist/lib/src/components/flex-grid/CdrCol.mjs +189 -0
  32. package/dist/lib/src/components/flex-grid/CdrRow.mjs +231 -0
  33. package/dist/lib/src/components/flex-grid/styles/CdrCol.mjs +3 -0
  34. package/dist/lib/src/components/flex-grid/styles/CdrRow.mjs +3 -0
  35. package/dist/lib/src/components/formError/CdrFormError.mjs +31 -0
  36. package/dist/lib/src/components/formError/styles/CdrFormError.mjs +3 -0
  37. package/dist/lib/src/components/formGroup/CdrFormGroup.mjs +95 -0
  38. package/dist/lib/src/components/formGroup/styles/CdrFormGroup.mjs +3 -0
  39. package/dist/lib/src/components/grid/CdrGrid.mjs +59 -0
  40. package/dist/lib/src/components/grid/styles/CdrGrid.mjs +3 -0
  41. package/dist/lib/src/components/icon/CdrIcon.mjs +76 -0
  42. package/dist/lib/src/components/icon/comps/account-profile-fill.mjs +32 -0
  43. package/dist/lib/src/components/icon/comps/account-profile.mjs +32 -0
  44. package/dist/lib/src/components/icon/comps/arrow-down.mjs +32 -0
  45. package/dist/lib/src/components/icon/comps/arrow-left.mjs +32 -0
  46. package/dist/lib/src/components/icon/comps/arrow-right.mjs +32 -0
  47. package/dist/lib/src/components/icon/comps/arrow-up.mjs +32 -0
  48. package/dist/lib/src/components/icon/comps/atv.mjs +32 -0
  49. package/dist/lib/src/components/icon/comps/bed-outline.mjs +32 -0
  50. package/dist/lib/src/components/icon/comps/bike-shop.mjs +32 -0
  51. package/dist/lib/src/components/icon/comps/binoculars.mjs +32 -0
  52. package/dist/lib/src/components/icon/comps/birding.mjs +32 -0
  53. package/dist/lib/src/components/icon/comps/boat.mjs +32 -0
  54. package/dist/lib/src/components/icon/comps/boating.mjs +32 -0
  55. package/dist/lib/src/components/icon/comps/bookmark-fill.mjs +32 -0
  56. package/dist/lib/src/components/icon/comps/bookmark-stroke.mjs +32 -0
  57. package/dist/lib/src/components/icon/comps/brand-abstract.mjs +32 -0
  58. package/dist/lib/src/components/icon/comps/brand-code-sandbox.mjs +32 -0
  59. package/dist/lib/src/components/icon/comps/brand-github.mjs +32 -0
  60. package/dist/lib/src/components/icon/comps/brand-linkedin.mjs +32 -0
  61. package/dist/lib/src/components/icon/comps/brand-rei-ice-axes.mjs +32 -0
  62. package/dist/lib/src/components/icon/comps/brand-sketch.mjs +32 -0
  63. package/dist/lib/src/components/icon/comps/buddies.mjs +32 -0
  64. package/dist/lib/src/components/icon/comps/bus.mjs +32 -0
  65. package/dist/lib/src/components/icon/comps/calendar.mjs +32 -0
  66. package/dist/lib/src/components/icon/comps/camera.mjs +32 -0
  67. package/dist/lib/src/components/icon/comps/canoe.mjs +32 -0
  68. package/dist/lib/src/components/icon/comps/car.mjs +32 -0
  69. package/dist/lib/src/components/icon/comps/caret-down.mjs +32 -0
  70. package/dist/lib/src/components/icon/comps/caret-left.mjs +32 -0
  71. package/dist/lib/src/components/icon/comps/caret-right.mjs +32 -0
  72. package/dist/lib/src/components/icon/comps/caret-up.mjs +32 -0
  73. package/dist/lib/src/components/icon/comps/cart-fill.mjs +32 -0
  74. package/dist/lib/src/components/icon/comps/cart.mjs +32 -0
  75. package/dist/lib/src/components/icon/comps/chain-link.mjs +32 -0
  76. package/dist/lib/src/components/icon/comps/chat.mjs +32 -0
  77. package/dist/lib/src/components/icon/comps/check-fill.mjs +32 -0
  78. package/dist/lib/src/components/icon/comps/check-lg.mjs +32 -0
  79. package/dist/lib/src/components/icon/comps/check-sm.mjs +32 -0
  80. package/dist/lib/src/components/icon/comps/check-stroke.mjs +32 -0
  81. package/dist/lib/src/components/icon/comps/climb.mjs +32 -0
  82. package/dist/lib/src/components/icon/comps/clipboard.mjs +32 -0
  83. package/dist/lib/src/components/icon/comps/clock.mjs +32 -0
  84. package/dist/lib/src/components/icon/comps/code-html.mjs +32 -0
  85. package/dist/lib/src/components/icon/comps/code-js.mjs +32 -0
  86. package/dist/lib/src/components/icon/comps/compass.mjs +32 -0
  87. package/dist/lib/src/components/icon/comps/copy.mjs +32 -0
  88. package/dist/lib/src/components/icon/comps/coupon-fill.mjs +32 -0
  89. package/dist/lib/src/components/icon/comps/coupon-stroke.mjs +32 -0
  90. package/dist/lib/src/components/icon/comps/credit-card.mjs +32 -0
  91. package/dist/lib/src/components/icon/comps/curbside-pickup.mjs +32 -0
  92. package/dist/lib/src/components/icon/comps/day.mjs +32 -0
  93. package/dist/lib/src/components/icon/comps/diving.mjs +32 -0
  94. package/dist/lib/src/components/icon/comps/dog.mjs +32 -0
  95. package/dist/lib/src/components/icon/comps/download.mjs +32 -0
  96. package/dist/lib/src/components/icon/comps/edit.mjs +32 -0
  97. package/dist/lib/src/components/icon/comps/elevation.mjs +32 -0
  98. package/dist/lib/src/components/icon/comps/error-fill.mjs +32 -0
  99. package/dist/lib/src/components/icon/comps/error-stroke.mjs +32 -0
  100. package/dist/lib/src/components/icon/comps/expand.mjs +32 -0
  101. package/dist/lib/src/components/icon/comps/experiences-backpacking.mjs +32 -0
  102. package/dist/lib/src/components/icon/comps/experiences-camping.mjs +32 -0
  103. package/dist/lib/src/components/icon/comps/experiences-climbing.mjs +32 -0
  104. package/dist/lib/src/components/icon/comps/experiences-clothing.mjs +32 -0
  105. package/dist/lib/src/components/icon/comps/experiences-cycling.mjs +32 -0
  106. package/dist/lib/src/components/icon/comps/experiences-family.mjs +32 -0
  107. package/dist/lib/src/components/icon/comps/experiences-fitness.mjs +32 -0
  108. package/dist/lib/src/components/icon/comps/experiences-hiking.mjs +32 -0
  109. package/dist/lib/src/components/icon/comps/experiences-outdoor-basics.mjs +32 -0
  110. package/dist/lib/src/components/icon/comps/experiences-paddling.mjs +32 -0
  111. package/dist/lib/src/components/icon/comps/experiences-rentals.mjs +32 -0
  112. package/dist/lib/src/components/icon/comps/experiences-snowsports.mjs +32 -0
  113. package/dist/lib/src/components/icon/comps/experiences-travel.mjs +32 -0
  114. package/dist/lib/src/components/icon/comps/external-link.mjs +32 -0
  115. package/dist/lib/src/components/icon/comps/eye-hide.mjs +32 -0
  116. package/dist/lib/src/components/icon/comps/eye-show.mjs +32 -0
  117. package/dist/lib/src/components/icon/comps/facebook.mjs +32 -0
  118. package/dist/lib/src/components/icon/comps/filter-alt.mjs +32 -0
  119. package/dist/lib/src/components/icon/comps/filter.mjs +32 -0
  120. package/dist/lib/src/components/icon/comps/find-location.mjs +32 -0
  121. package/dist/lib/src/components/icon/comps/fire.mjs +32 -0
  122. package/dist/lib/src/components/icon/comps/fishing.mjs +32 -0
  123. package/dist/lib/src/components/icon/comps/free-product.mjs +32 -0
  124. package/dist/lib/src/components/icon/comps/grid-view.mjs +32 -0
  125. package/dist/lib/src/components/icon/comps/heart-fill.mjs +32 -0
  126. package/dist/lib/src/components/icon/comps/heart-stroke.mjs +32 -0
  127. package/dist/lib/src/components/icon/comps/hike.mjs +32 -0
  128. package/dist/lib/src/components/icon/comps/history.mjs +32 -0
  129. package/dist/lib/src/components/icon/comps/home.mjs +32 -0
  130. package/dist/lib/src/components/icon/comps/horse.mjs +32 -0
  131. package/dist/lib/src/components/icon/comps/horseshoe.mjs +32 -0
  132. package/dist/lib/src/components/icon/comps/image.mjs +32 -0
  133. package/dist/lib/src/components/icon/comps/information-fill.mjs +32 -0
  134. package/dist/lib/src/components/icon/comps/information-stroke.mjs +32 -0
  135. package/dist/lib/src/components/icon/comps/instagram.mjs +32 -0
  136. package/dist/lib/src/components/icon/comps/kayak.mjs +32 -0
  137. package/dist/lib/src/components/icon/comps/list-ragged.mjs +32 -0
  138. package/dist/lib/src/components/icon/comps/list-view.mjs +32 -0
  139. package/dist/lib/src/components/icon/comps/location-pin-fill.mjs +32 -0
  140. package/dist/lib/src/components/icon/comps/location-pin-stroke.mjs +32 -0
  141. package/dist/lib/src/components/icon/comps/lock-locked-fill.mjs +32 -0
  142. package/dist/lib/src/components/icon/comps/lock-locked-stroke.mjs +32 -0
  143. package/dist/lib/src/components/icon/comps/lock-unlocked-stroke.mjs +32 -0
  144. package/dist/lib/src/components/icon/comps/mail.mjs +32 -0
  145. package/dist/lib/src/components/icon/comps/map.mjs +32 -0
  146. package/dist/lib/src/components/icon/comps/member-card.mjs +32 -0
  147. package/dist/lib/src/components/icon/comps/microphone.mjs +32 -0
  148. package/dist/lib/src/components/icon/comps/minus-fill.mjs +32 -0
  149. package/dist/lib/src/components/icon/comps/minus-lg.mjs +32 -0
  150. package/dist/lib/src/components/icon/comps/minus-sm.mjs +32 -0
  151. package/dist/lib/src/components/icon/comps/minus-stroke.mjs +32 -0
  152. package/dist/lib/src/components/icon/comps/more-functions.mjs +32 -0
  153. package/dist/lib/src/components/icon/comps/my-location.mjs +32 -0
  154. package/dist/lib/src/components/icon/comps/navigation-menu.mjs +32 -0
  155. package/dist/lib/src/components/icon/comps/night.mjs +32 -0
  156. package/dist/lib/src/components/icon/comps/paddle.mjs +32 -0
  157. package/dist/lib/src/components/icon/comps/pause-fill.mjs +32 -0
  158. package/dist/lib/src/components/icon/comps/pause-stroke.mjs +32 -0
  159. package/dist/lib/src/components/icon/comps/pause.mjs +32 -0
  160. package/dist/lib/src/components/icon/comps/photography.mjs +32 -0
  161. package/dist/lib/src/components/icon/comps/picnic.mjs +32 -0
  162. package/dist/lib/src/components/icon/comps/pinterest.mjs +32 -0
  163. package/dist/lib/src/components/icon/comps/plane.mjs +32 -0
  164. package/dist/lib/src/components/icon/comps/play-fill.mjs +32 -0
  165. package/dist/lib/src/components/icon/comps/play-stroke.mjs +32 -0
  166. package/dist/lib/src/components/icon/comps/play.mjs +32 -0
  167. package/dist/lib/src/components/icon/comps/playground.mjs +32 -0
  168. package/dist/lib/src/components/icon/comps/plugin.mjs +32 -0
  169. package/dist/lib/src/components/icon/comps/plus-fill.mjs +32 -0
  170. package/dist/lib/src/components/icon/comps/plus-lg.mjs +32 -0
  171. package/dist/lib/src/components/icon/comps/plus-sm.mjs +32 -0
  172. package/dist/lib/src/components/icon/comps/plus-stroke.mjs +32 -0
  173. package/dist/lib/src/components/icon/comps/print.mjs +32 -0
  174. package/dist/lib/src/components/icon/comps/protection-fill.mjs +32 -0
  175. package/dist/lib/src/components/icon/comps/protection-stroke.mjs +32 -0
  176. package/dist/lib/src/components/icon/comps/question-fill.mjs +32 -0
  177. package/dist/lib/src/components/icon/comps/question-stroke.mjs +32 -0
  178. package/dist/lib/src/components/icon/comps/refresh.mjs +32 -0
  179. package/dist/lib/src/components/icon/comps/reload.mjs +32 -0
  180. package/dist/lib/src/components/icon/comps/returns.mjs +32 -0
  181. package/dist/lib/src/components/icon/comps/run.mjs +32 -0
  182. package/dist/lib/src/components/icon/comps/scan-barcode.mjs +32 -0
  183. package/dist/lib/src/components/icon/comps/search.mjs +32 -0
  184. package/dist/lib/src/components/icon/comps/service-shop.mjs +32 -0
  185. package/dist/lib/src/components/icon/comps/shipping.mjs +32 -0
  186. package/dist/lib/src/components/icon/comps/shopping-bag-fill.mjs +32 -0
  187. package/dist/lib/src/components/icon/comps/shopping-bag.mjs +32 -0
  188. package/dist/lib/src/components/icon/comps/shrink.mjs +32 -0
  189. package/dist/lib/src/components/icon/comps/size-chart.mjs +32 -0
  190. package/dist/lib/src/components/icon/comps/ski-boot.mjs +32 -0
  191. package/dist/lib/src/components/icon/comps/ski.mjs +32 -0
  192. package/dist/lib/src/components/icon/comps/snow-shop.mjs +32 -0
  193. package/dist/lib/src/components/icon/comps/snow.mjs +32 -0
  194. package/dist/lib/src/components/icon/comps/sort.mjs +32 -0
  195. package/dist/lib/src/components/icon/comps/star-100.mjs +32 -0
  196. package/dist/lib/src/components/icon/comps/star-25.mjs +32 -0
  197. package/dist/lib/src/components/icon/comps/star-50.mjs +32 -0
  198. package/dist/lib/src/components/icon/comps/star-75.mjs +32 -0
  199. package/dist/lib/src/components/icon/comps/star-stroke.mjs +32 -0
  200. package/dist/lib/src/components/icon/comps/storefront.mjs +32 -0
  201. package/dist/lib/src/components/icon/comps/swim.mjs +32 -0
  202. package/dist/lib/src/components/icon/comps/telephone.mjs +32 -0
  203. package/dist/lib/src/components/icon/comps/tent.mjs +32 -0
  204. package/dist/lib/src/components/icon/comps/trash.mjs +32 -0
  205. package/dist/lib/src/components/icon/comps/twitter.mjs +32 -0
  206. package/dist/lib/src/components/icon/comps/upload.mjs +32 -0
  207. package/dist/lib/src/components/icon/comps/verified-purchaser.mjs +32 -0
  208. package/dist/lib/src/components/icon/comps/virtual-outfitting.mjs +32 -0
  209. package/dist/lib/src/components/icon/comps/warning-fill.mjs +32 -0
  210. package/dist/lib/src/components/icon/comps/warning-stroke.mjs +32 -0
  211. package/dist/lib/src/components/icon/comps/water.mjs +32 -0
  212. package/dist/lib/src/components/icon/comps/wilderness.mjs +32 -0
  213. package/dist/lib/src/components/icon/comps/x-fill.mjs +32 -0
  214. package/dist/lib/src/components/icon/comps/x-lg.mjs +32 -0
  215. package/dist/lib/src/components/icon/comps/x-sm.mjs +32 -0
  216. package/dist/lib/src/components/icon/comps/x-stroke.mjs +32 -0
  217. package/dist/lib/src/components/icon/comps/youtube.mjs +32 -0
  218. package/dist/lib/src/components/icon/comps/zoom-in.mjs +32 -0
  219. package/dist/lib/src/components/icon/comps/zoom-out.mjs +32 -0
  220. package/dist/lib/src/components/icon/styles/CdrIcon.mjs +3 -0
  221. package/dist/lib/src/components/image/CdrImg.mjs +151 -0
  222. package/dist/lib/src/components/image/styles/CdrImg.mjs +3 -0
  223. package/dist/lib/src/components/input/CdrInput.mjs +296 -0
  224. package/dist/lib/src/components/input/styles/CdrInput.mjs +3 -0
  225. package/dist/lib/src/components/labelStandalone/CdrLabelStandalone.mjs +85 -0
  226. package/dist/lib/src/components/labelStandalone/styles/CdrLabelStandalone.mjs +3 -0
  227. package/dist/lib/src/components/labelWrapper/CdrLabelWrapper.mjs +56 -0
  228. package/dist/lib/src/components/labelWrapper/styles/CdrLabelWrapper.mjs +3 -0
  229. package/dist/lib/src/components/link/CdrLink.mjs +77 -0
  230. package/dist/lib/src/components/link/styles/CdrLink.mjs +3 -0
  231. package/dist/lib/src/components/list/CdrList.mjs +44 -0
  232. package/dist/lib/src/components/list/styles/CdrList.mjs +3 -0
  233. package/dist/lib/src/components/modal/CdrModal.mjs +375 -0
  234. package/dist/lib/src/components/modal/onTransitionEnd.mjs +42 -0
  235. package/dist/lib/src/components/modal/styles/CdrModal.mjs +3 -0
  236. package/dist/lib/src/components/pagination/CdrPagination.mjs +479 -0
  237. package/dist/lib/src/components/pagination/styles/CdrPagination.mjs +3 -0
  238. package/dist/lib/src/components/popover/CdrPopover.mjs +158 -0
  239. package/dist/lib/src/components/popover/styles/CdrPopover.mjs +3 -0
  240. package/dist/lib/src/components/popup/CdrPopup.mjs +284 -0
  241. package/dist/lib/src/components/popup/styles/CdrPopup.mjs +3 -0
  242. package/dist/lib/src/components/quote/CdrQuote.mjs +68 -0
  243. package/dist/lib/src/components/quote/styles/CdrQuote.mjs +3 -0
  244. package/dist/lib/src/components/radio/CdrRadio.mjs +154 -0
  245. package/dist/lib/src/components/radio/styles/CdrRadio.mjs +3 -0
  246. package/dist/lib/src/components/rating/CdrRating.mjs +200 -0
  247. package/dist/lib/src/components/rating/styles/CdrRating.mjs +3 -0
  248. package/dist/lib/src/components/select/CdrSelect.mjs +285 -0
  249. package/dist/lib/src/components/select/styles/CdrSelect.mjs +3 -0
  250. package/dist/lib/src/components/table/CdrTable.mjs +79 -0
  251. package/dist/lib/src/components/table/styles/CdrTable.mjs +3 -0
  252. package/dist/lib/src/components/tabs/CdrTabPanel.mjs +107 -0
  253. package/dist/lib/src/components/tabs/CdrTabs.mjs +385 -0
  254. package/dist/lib/src/components/tabs/styles/CdrTabPanel.mjs +3 -0
  255. package/dist/lib/src/components/tabs/styles/CdrTabs.mjs +3 -0
  256. package/dist/lib/src/components/text/CdrText.mjs +44 -0
  257. package/dist/lib/src/components/text/styles/CdrText.mjs +3 -0
  258. package/dist/lib/src/components/toast/CdrToast.mjs +129 -0
  259. package/dist/lib/src/components/toast/styles/CdrToast.mjs +3 -0
  260. package/dist/lib/src/components/tooltip/CdrTooltip.mjs +126 -0
  261. package/dist/lib/src/components/tooltip/styles/CdrTooltip.mjs +3 -0
  262. package/dist/lib/src/index.mjs +211 -0
  263. package/dist/lib/src/mixins/breakpoints.mjs +26 -0
  264. package/dist/lib/src/mixins/buildClass.mjs +97 -0
  265. package/dist/lib/src/mixins/fullWidth.mjs +47 -0
  266. package/dist/lib/src/mixins/modifier.mjs +22 -0
  267. package/dist/lib/src/mixins/size.mjs +39 -0
  268. package/dist/lib/src/utils/propValidator.mjs +27 -0
  269. package/dist/style/cdr-accordion-group.css +1 -0
  270. package/dist/style/cdr-accordion.css +1 -0
  271. package/dist/style/cdr-banner-vars.css +0 -0
  272. package/dist/style/cdr-banner.css +1 -0
  273. package/dist/style/cdr-breadcrumb.css +1 -0
  274. package/dist/style/cdr-button.css +1 -0
  275. package/dist/style/cdr-caption.css +1 -0
  276. package/dist/style/cdr-card.css +1 -0
  277. package/dist/style/cdr-checkbox.css +1 -0
  278. package/dist/style/cdr-chip-group.css +1 -0
  279. package/dist/style/cdr-chip.css +1 -0
  280. package/dist/style/cdr-col.css +1 -0
  281. package/dist/style/cdr-container.css +1 -0
  282. package/dist/style/cdr-form-error.css +1 -0
  283. package/dist/style/cdr-form-group.css +1 -0
  284. package/dist/style/cdr-grid.css +1 -0
  285. package/dist/style/cdr-icon.css +1 -0
  286. package/dist/style/cdr-img.css +1 -0
  287. package/dist/style/cdr-input.css +1 -0
  288. package/dist/style/cdr-label-standalone.css +1 -0
  289. package/dist/style/cdr-label-wrapper.css +1 -0
  290. package/dist/style/cdr-link.css +1 -0
  291. package/dist/style/cdr-list.css +1 -0
  292. package/dist/style/cdr-modal.css +1 -0
  293. package/dist/style/cdr-pagination.css +1 -0
  294. package/dist/style/cdr-popover.css +1 -0
  295. package/dist/style/cdr-popup.css +1 -0
  296. package/dist/style/cdr-quote.css +1 -0
  297. package/dist/style/cdr-radio.css +1 -0
  298. package/dist/style/cdr-rating.css +1 -0
  299. package/dist/style/cdr-row.css +1 -0
  300. package/dist/style/cdr-select.css +1 -0
  301. package/dist/style/cdr-tab-panel.css +1 -0
  302. package/dist/style/cdr-table.css +1 -0
  303. package/dist/style/cdr-tabs.css +1 -0
  304. package/dist/style/cdr-text.css +1 -0
  305. package/dist/style/cdr-toast.css +1 -0
  306. package/dist/style/cdr-tooltip.css +1 -0
  307. package/dist/style/cedar-full.css +39 -0
  308. package/dist/style/reset.css +1 -0
  309. package/dist/svg/icon-error.svg +5 -0
  310. package/dist/svg/star-0.svg +6 -0
  311. package/dist/svg/star-100.svg +6 -0
  312. package/dist/svg/star-25.svg +7 -0
  313. package/dist/svg/star-50.svg +7 -0
  314. package/dist/svg/star-75.svg +7 -0
  315. package/dist/svg/star-null.svg +6 -0
  316. package/package.json +162 -0
@@ -0,0 +1,284 @@
1
+ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
2
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
3
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
4
+ import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
5
+ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
6
+ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
7
+ import clsx from 'clsx';
8
+ import debounce from 'lodash-es/debounce';
9
+ import modules_5ecd7efb from './styles/CdrPopup.mjs';
10
+ import validateProp from '../../utils/propValidator.mjs';
11
+
12
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
13
+
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
+ var CdrPopup = {
16
+ name: 'CdrPopup',
17
+ inheritAttrs: false,
18
+ props: {
19
+ opened: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ position: {
24
+ type: String,
25
+ required: false,
26
+ default: 'top',
27
+ validator: function validator(value) {
28
+ return validateProp(value, ['top', 'bottom', 'left', 'right']);
29
+ }
30
+ },
31
+ autoPosition: {
32
+ type: Boolean,
33
+ default: true
34
+ },
35
+ contentClass: {
36
+ type: String
37
+ }
38
+ },
39
+
40
+ data() {
41
+ return {
42
+ style: modules_5ecd7efb,
43
+ keyHandler: undefined,
44
+ clickHandler: undefined,
45
+ resizeHandler: undefined,
46
+ pos: this.position,
47
+ corner: undefined,
48
+ exiting: false,
49
+ popupRect: undefined,
50
+ closed: !this.opened
51
+ };
52
+ },
53
+
54
+ computed: {
55
+ positionClass() {
56
+ return this.opened || this.exiting ? this.style["cdr-popup--".concat(this.pos)] : undefined;
57
+ },
58
+
59
+ cornerClass() {
60
+ return this.corner ? this.style["cdr-popup--corner-".concat(this.corner)] : undefined;
61
+ },
62
+
63
+ openClass() {
64
+ return this.opened ? this.style['cdr-popup--open'] : undefined;
65
+ },
66
+
67
+ closedClass() {
68
+ return this.closed && !this.exiting ? this.style['cdr-popup--closed'] : undefined;
69
+ },
70
+
71
+ exitingClass() {
72
+ return this.exiting ? this.style['cdr-popup--exit'] : undefined;
73
+ }
74
+
75
+ },
76
+ watch: {
77
+ position() {
78
+ this.pos = this.position;
79
+ },
80
+
81
+ opened(newValue, oldValue) {
82
+ if (!!newValue === !!oldValue) return;
83
+
84
+ if (newValue) {
85
+ this.handleOpened();
86
+ } else {
87
+ this.handleClosed();
88
+ }
89
+ }
90
+
91
+ },
92
+
93
+ mounted() {
94
+ this.measurePopup();
95
+ this.resizeHandler = this.handleResize.bind(this);
96
+ window.addEventListener('resize', this.resizeHandler);
97
+ },
98
+
99
+ destroyed() {
100
+ document.removeEventListener('keydown', this.keyHandler);
101
+ document.removeEventListener('click', this.clickHandler);
102
+ window.removeEventListener('resize', this.resizeHandler);
103
+ },
104
+
105
+ methods: {
106
+ closePopup(e) {
107
+ this.$emit('closed', e);
108
+ },
109
+
110
+ handleKeyDown(e) {
111
+ switch (e.key) {
112
+ case 'Escape':
113
+ case 'Esc':
114
+ this.closePopup(e);
115
+ break;
116
+ }
117
+ },
118
+
119
+ handleClick(e) {
120
+ var _this = this;
121
+
122
+ this.$nextTick(function () {
123
+ if (e.target !== _this.$refs.popup && !_this.$refs.popup.contains(e.target)) {
124
+ _this.closePopup(e);
125
+ }
126
+ });
127
+ },
128
+
129
+ handleResize() {
130
+ var _this2 = this;
131
+
132
+ debounce(function () {
133
+ _this2.measurePopup();
134
+ }, 300);
135
+ },
136
+
137
+ addHandlers() {
138
+ this.keyHandler = this.handleKeyDown.bind(this);
139
+ document.addEventListener('keydown', this.keyHandler);
140
+ this.clickHandler = this.handleClick.bind(this);
141
+ document.addEventListener('click', this.clickHandler);
142
+ },
143
+
144
+ measurePopup() {
145
+ var _this3 = this;
146
+
147
+ this.closed = false;
148
+ this.$nextTick(function () {
149
+ _this3.popupRect = _this3.$refs.popup.getBoundingClientRect();
150
+ _this3.closed = true;
151
+ });
152
+ },
153
+
154
+ calculatePlacement(triggerRect, popupRect, screenWidth, screenHeight) {
155
+ var _context, _context2;
156
+
157
+ var offset = 14; // 10px for arrow 4px for spacing
158
+
159
+ var borderSize = 2; // need to include border for corner calculations
160
+
161
+ var triggerCenterY = triggerRect.top + triggerRect.height / 2;
162
+ var triggerCenterX = triggerRect.left + triggerRect.width / 2;
163
+ var dirs = {
164
+ top: triggerRect.top - popupRect.height - offset,
165
+ bottom: screenHeight - triggerRect.bottom - popupRect.height - offset,
166
+ left: triggerRect.left - popupRect.width - offset,
167
+ right: screenWidth - triggerRect.right - popupRect.width - offset
168
+ };
169
+ var corners = {
170
+ left: triggerCenterX - popupRect.width / 2 - borderSize <= 0,
171
+ right: triggerCenterX + popupRect.width / 2 + borderSize >= screenWidth,
172
+ top: triggerCenterY - popupRect.height / 2 - borderSize <= 0,
173
+ bottom: triggerCenterY + popupRect.height / 2 + borderSize >= screenHeight
174
+ };
175
+ var invert = {
176
+ top: 'bottom',
177
+ bottom: 'top',
178
+ left: 'right',
179
+ right: 'left'
180
+ };
181
+ var inverse = invert[this.position];
182
+
183
+ var validDirs = _filterInstanceProperty(_context = Object.keys(dirs)).call(_context, function (dir) {
184
+ return dirs[dir] > 0;
185
+ });
186
+
187
+ var sortedDirs = _sortInstanceProperty(_context2 = Object.keys(dirs)).call(_context2, function (a, b) {
188
+ if (dirs[a] > dirs[b]) {
189
+ return -1;
190
+ }
191
+
192
+ if (dirs[a] < dirs[b]) {
193
+ return 1;
194
+ }
195
+
196
+ return 0;
197
+ });
198
+
199
+ if (dirs[this.position] > 0) {
200
+ // selected position is valid, or no positions are valid
201
+ this.pos = this.position;
202
+ } else if (dirs[inverse] > 0) {
203
+ // inverted position is valid
204
+ this.pos = inverse;
205
+ } else if (validDirs.length) {
206
+ // try the angles
207
+ var _validDirs = _slicedToArray(validDirs, 1);
208
+
209
+ this.pos = _validDirs[0];
210
+ } else {
211
+ // use whichever direction has the most space
212
+ var _sortedDirs = _slicedToArray(sortedDirs, 1);
213
+
214
+ this.pos = _sortedDirs[0];
215
+ }
216
+
217
+ if (this.pos === 'bottom' || this.pos === 'top') {
218
+ if (corners.left) {
219
+ this.corner = 'left';
220
+ } else if (corners.right) {
221
+ this.corner = 'right';
222
+ }
223
+ } else if (corners.top) {
224
+ this.corner = 'top';
225
+ } else if (corners.bottom) {
226
+ this.corner = 'bottom';
227
+ }
228
+ },
229
+
230
+ handleOpened() {
231
+ var _this4 = this;
232
+
233
+ this.closed = false;
234
+ this.pos = this.position;
235
+ this.corner = undefined;
236
+
237
+ if (this.autoPosition) {
238
+ this.$nextTick(function () {
239
+ var triggerRect = _this4.$el.parentElement.getBoundingClientRect();
240
+
241
+ var popupRect = _this4.popupRect;
242
+ var _window = window,
243
+ innerHeight = _window.innerHeight,
244
+ innerWidth = _window.innerWidth;
245
+
246
+ _this4.calculatePlacement(triggerRect, popupRect, innerWidth, innerHeight);
247
+ });
248
+ }
249
+
250
+ setTimeout(function () {
251
+ _this4.addHandlers();
252
+ }, 1);
253
+ },
254
+
255
+ handleClosed() {
256
+ var _this5 = this;
257
+
258
+ this.closed = true;
259
+ document.removeEventListener('keydown', this.keyHandler);
260
+ document.removeEventListener('click', this.clickHandler);
261
+ this.exiting = true;
262
+ setTimeout(function () {
263
+ _this5.exiting = false;
264
+ }, 200); // $cdr-duration-2;
265
+ }
266
+
267
+ },
268
+
269
+ render() {
270
+ var h = arguments[0];
271
+ return h("div", {
272
+ "class": clsx(this.style['cdr-popup'], this.openClass, this.exitingClass, this.positionClass, this.cornerClass, this.closedClass)
273
+ }, [h("div", {
274
+ "class": clsx(this.style['cdr-popup__content'], this.contentClass),
275
+ "ref": "popup",
276
+ "attrs": _objectSpread({}, this.$attrs)
277
+ }, [this.$slots.default]), h("div", {
278
+ "class": this.style['cdr-popup__arrow']
279
+ })]);
280
+ }
281
+
282
+ };
283
+
284
+ export default CdrPopup;
@@ -0,0 +1,3 @@
1
+ var modules_5ecd7efb = {"cdr-popup":"cdr-popup_11-0-0-alpha-0","cdr-popup--open":"cdr-popup--open_11-0-0-alpha-0","cdr-popup--closed":"cdr-popup--closed_11-0-0-alpha-0","cdr-popup__content":"cdr-popup__content_11-0-0-alpha-0","cdr-popup__arrow":"cdr-popup__arrow_11-0-0-alpha-0","cdr-popup--top":"cdr-popup--top_11-0-0-alpha-0","cdr-popup--bottom":"cdr-popup--bottom_11-0-0-alpha-0","cdr-popup--exit":"cdr-popup--exit_11-0-0-alpha-0","cdr-popup--corner-left":"cdr-popup--corner-left_11-0-0-alpha-0","cdr-popup--corner-right":"cdr-popup--corner-right_11-0-0-alpha-0","cdr-popup--left":"cdr-popup--left_11-0-0-alpha-0","cdr-popup--right":"cdr-popup--right_11-0-0-alpha-0","cdr-popup--corner-top":"cdr-popup--corner-top_11-0-0-alpha-0","cdr-popup--corner-bottom":"cdr-popup--corner-bottom_11-0-0-alpha-0"};
2
+
3
+ export default modules_5ecd7efb;
@@ -0,0 +1,68 @@
1
+ import clsx from 'clsx';
2
+ import CdrText from '../text/CdrText.mjs';
3
+ import modifier from '../../mixins/modifier.mjs';
4
+ import modules_b1efd5d7 from './styles/CdrQuote.mjs';
5
+
6
+ var CdrQuote = {
7
+ name: 'CdrQuote',
8
+ components: {
9
+ CdrText
10
+ },
11
+ mixins: [modifier],
12
+ props: {
13
+ tag: {
14
+ type: String,
15
+ default: 'blockquote',
16
+ validator: function validator(value) {
17
+ return ['blockquote', 'aside', 'q', 'div'].indexOf(value) >= 0 || false;
18
+ }
19
+ },
20
+
21
+ /** Caption summary text */
22
+ summary: String,
23
+
24
+ /** Caption credit text */
25
+ citation: String
26
+ },
27
+
28
+ data() {
29
+ return {
30
+ style: modules_b1efd5d7
31
+ };
32
+ },
33
+
34
+ computed: {
35
+ baseClass() {
36
+ return 'cdr-quote';
37
+ },
38
+
39
+ summaryBlock() {
40
+ var h = this.$createElement;
41
+ return this.summary ? h("p", {
42
+ "class": this.style['cdr-quote__summary']
43
+ }, [this.summary]) : '';
44
+ },
45
+
46
+ citationBlock() {
47
+ var h = this.$createElement;
48
+ return this.citation ? h("cdr-text", {
49
+ "attrs": {
50
+ "tag": "cite"
51
+ },
52
+ "class": this.style['cdr-quote__citation']
53
+ }, [this.citation]) : '';
54
+ }
55
+
56
+ },
57
+
58
+ render() {
59
+ var h = arguments[0];
60
+ var Component = this.tag;
61
+ return h(Component, {
62
+ "class": clsx(this.style[this.baseClass], this.modifierClass)
63
+ }, [this.summaryBlock, this.$slots.default, this.citationBlock]);
64
+ }
65
+
66
+ };
67
+
68
+ export default CdrQuote;
@@ -0,0 +1,3 @@
1
+ var modules_b1efd5d7 = {"cdr-quote":"cdr-quote_11-0-0-alpha-0","cdr-quote__summary":"cdr-quote__summary_11-0-0-alpha-0","cdr-quote--pull":"cdr-quote--pull_11-0-0-alpha-0"};
2
+
3
+ export default modules_b1efd5d7;
@@ -0,0 +1,154 @@
1
+ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
2
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
3
+ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
4
+ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
5
+ import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
6
+ import _Symbol from '@babel/runtime-corejs3/core-js-stable/symbol';
7
+ import clsx from 'clsx';
8
+ import modifier from '../../mixins/modifier.mjs';
9
+ import size from '../../mixins/size.mjs';
10
+ import validateProp from '../../utils/propValidator.mjs';
11
+ import modules_f3ed737b from './styles/CdrRadio.mjs';
12
+ import CdrLabelWrapper from '../labelWrapper/CdrLabelWrapper.mjs';
13
+
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
15
+
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
+ var CdrRadio = {
18
+ name: 'CdrRadio',
19
+ components: {
20
+ CdrLabelWrapper
21
+ },
22
+ mixins: [modifier, size],
23
+ inheritAttrs: false,
24
+ props: {
25
+ /**
26
+ * Class that is added to the label for custom styles
27
+ */
28
+ labelClass: String,
29
+
30
+ /**
31
+ * Class that is added to the input for custom styles
32
+ */
33
+ inputClass: String,
34
+
35
+ /**
36
+ * Class that is added to the slot wrapper for custom styles
37
+ */
38
+ contentClass: String,
39
+
40
+ /**
41
+ * Sets the name of the radio. Required.
42
+ */
43
+ name: {
44
+ type: String,
45
+ required: true
46
+ },
47
+ // Set which background type the input renders on
48
+ background: {
49
+ type: [String],
50
+ default: 'primary',
51
+ validator: function validator(value) {
52
+ return validateProp(value, ['primary', 'secondary']);
53
+ }
54
+ },
55
+
56
+ /**
57
+ * Sets the value of the radio. Required.
58
+ */
59
+ customValue: {
60
+ type: [String, Number, Boolean, Object, Array, _Symbol, Function]
61
+ },
62
+
63
+ /** @ignore v-model binding */
64
+ value: {
65
+ type: [String, Number, Boolean, Object, Array, _Symbol, Function]
66
+ }
67
+ },
68
+
69
+ data() {
70
+ return {
71
+ newValue: this.value,
72
+ style: modules_f3ed737b
73
+ };
74
+ },
75
+
76
+ computed: {
77
+ baseClass() {
78
+ return 'cdr-radio';
79
+ }
80
+
81
+ },
82
+ watch: {
83
+ value(val) {
84
+ this.newValue = val;
85
+ },
86
+
87
+ newValue(val) {
88
+ /**
89
+ * `v-model` value. Fires on check/uncheck.
90
+ * @event input
91
+ * @type value | event
92
+ * */
93
+ this.$emit('input', val);
94
+ }
95
+
96
+ },
97
+ methods: {
98
+ updateValue(newValue, e) {
99
+ /**
100
+ * Selected radio value. Fires on section.
101
+ * @event change
102
+ * @type boolean|array
103
+ */
104
+ this.$emit('change', newValue, e);
105
+ }
106
+
107
+ },
108
+
109
+ render() {
110
+ var _this = this;
111
+
112
+ var h = arguments[0];
113
+ return h("cdr-label-wrapper", {
114
+ "class": this.style['cdr-radio'],
115
+ "ref": "label",
116
+ "attrs": {
117
+ "size": this.size,
118
+ "modifier": this.modifier,
119
+ "labelClass": this.labelClass,
120
+ "contentClass": this.contentClass,
121
+ "background": this.background,
122
+ "disabled": this.$attrs.disabled
123
+ }
124
+ }, [h("input", _mergeJSXProps([{
125
+ "on": {
126
+ "change": [function ($event) {
127
+ _this.newValue = _this.customValue;
128
+ }, function (e) {
129
+ return _this.updateValue(_this.newValue, e);
130
+ }]
131
+ },
132
+ "class": clsx(this.style['cdr-radio__input'], this.inputClass),
133
+ "attrs": _objectSpread(_objectSpread({
134
+ "type": "radio"
135
+ }, this.$attrs), {}, {
136
+ "name": this.name
137
+ }),
138
+ "ref": "radio",
139
+ "slot": "input",
140
+ "domProps": {
141
+ "checked": this._q(_this.newValue, _this.customValue)
142
+ }
143
+ }, {
144
+ directives: [{
145
+ name: "model",
146
+ value: _this.newValue,
147
+ modifiers: {}
148
+ }]
149
+ }])), this.$slots.default]);
150
+ }
151
+
152
+ };
153
+
154
+ export default CdrRadio;
@@ -0,0 +1,3 @@
1
+ var modules_f3ed737b = {"cdr-radio":"cdr-radio_11-0-0-alpha-0","cdr-label-wrapper__figure":"cdr-label-wrapper__figure_11-0-0-alpha-0","cdr-radio__input":"cdr-radio__input_11-0-0-alpha-0"};
2
+
3
+ export default modules_f3ed737b;