@rei/cedar 9.1.1-beta.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 (313) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -0
  3. package/dist/cdr-fonts.css +21 -0
  4. package/dist/cedar-compiled.css +4568 -0
  5. package/dist/cedar.js +11525 -0
  6. package/dist/cedar.mjs +9793 -0
  7. package/dist/lib/assets/cedar-compiled-4bf87549.css +4494 -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 +45 -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 +377 -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/tooltip/CdrTooltip.mjs +126 -0
  259. package/dist/lib/src/components/tooltip/styles/CdrTooltip.mjs +3 -0
  260. package/dist/lib/src/index.mjs +210 -0
  261. package/dist/lib/src/mixins/breakpoints.mjs +26 -0
  262. package/dist/lib/src/mixins/buildClass.mjs +97 -0
  263. package/dist/lib/src/mixins/fullWidth.mjs +47 -0
  264. package/dist/lib/src/mixins/modifier.mjs +22 -0
  265. package/dist/lib/src/mixins/size.mjs +39 -0
  266. package/dist/lib/src/utils/propValidator.mjs +27 -0
  267. package/dist/style/cdr-accordion-group.css +1 -0
  268. package/dist/style/cdr-accordion.css +1 -0
  269. package/dist/style/cdr-banner-vars.css +0 -0
  270. package/dist/style/cdr-banner.css +1 -0
  271. package/dist/style/cdr-breadcrumb.css +1 -0
  272. package/dist/style/cdr-button.css +1 -0
  273. package/dist/style/cdr-caption.css +1 -0
  274. package/dist/style/cdr-card.css +1 -0
  275. package/dist/style/cdr-checkbox.css +1 -0
  276. package/dist/style/cdr-chip-group.css +1 -0
  277. package/dist/style/cdr-chip.css +1 -0
  278. package/dist/style/cdr-col.css +1 -0
  279. package/dist/style/cdr-container.css +1 -0
  280. package/dist/style/cdr-form-error.css +1 -0
  281. package/dist/style/cdr-form-group.css +1 -0
  282. package/dist/style/cdr-grid.css +1 -0
  283. package/dist/style/cdr-icon.css +1 -0
  284. package/dist/style/cdr-img.css +1 -0
  285. package/dist/style/cdr-input.css +1 -0
  286. package/dist/style/cdr-label-standalone.css +1 -0
  287. package/dist/style/cdr-label-wrapper.css +1 -0
  288. package/dist/style/cdr-link.css +1 -0
  289. package/dist/style/cdr-list.css +1 -0
  290. package/dist/style/cdr-modal.css +1 -0
  291. package/dist/style/cdr-pagination.css +1 -0
  292. package/dist/style/cdr-popover.css +1 -0
  293. package/dist/style/cdr-popup.css +1 -0
  294. package/dist/style/cdr-quote.css +1 -0
  295. package/dist/style/cdr-radio.css +1 -0
  296. package/dist/style/cdr-rating.css +1 -0
  297. package/dist/style/cdr-row.css +1 -0
  298. package/dist/style/cdr-select.css +1 -0
  299. package/dist/style/cdr-tab-panel.css +1 -0
  300. package/dist/style/cdr-table.css +1 -0
  301. package/dist/style/cdr-tabs.css +1 -0
  302. package/dist/style/cdr-text.css +1 -0
  303. package/dist/style/cdr-tooltip.css +1 -0
  304. package/dist/style/cedar-full.css +38 -0
  305. package/dist/style/reset.css +1 -0
  306. package/dist/svg/icon-error.svg +5 -0
  307. package/dist/svg/star-0.svg +6 -0
  308. package/dist/svg/star-100.svg +6 -0
  309. package/dist/svg/star-25.svg +7 -0
  310. package/dist/svg/star-50.svg +7 -0
  311. package/dist/svg/star-75.svg +7 -0
  312. package/dist/svg/star-null.svg +6 -0
  313. package/package.json +162 -0
@@ -0,0 +1,200 @@
1
+ import _toConsumableArray from '@babel/runtime-corejs3/helpers/esm/toConsumableArray';
2
+ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
3
+ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
4
+ import _keysInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/keys';
5
+ import clsx from 'clsx';
6
+ import size from '../../mixins/size.mjs';
7
+ import modules_73dd06e5 from './styles/CdrRating.mjs';
8
+
9
+ var CdrRating = {
10
+ name: 'CdrRating',
11
+ mixins: [size],
12
+ props: {
13
+ /**
14
+ * Rating value (out of 5)
15
+ */
16
+ rating: {
17
+ required: true,
18
+ type: [String, Number],
19
+ default: 0
20
+ },
21
+
22
+ /**
23
+ * Total number of ratings
24
+ */
25
+ count: {
26
+ required: false,
27
+ type: [String, Number],
28
+ default: null
29
+ },
30
+
31
+ /**
32
+ * Hides the word 'reviews' if true
33
+ */
34
+ compact: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+
39
+ /**
40
+ * Allows the ratings to act as a link
41
+ */
42
+ href: {
43
+ type: String
44
+ }
45
+ },
46
+
47
+ data() {
48
+ return {
49
+ style: modules_73dd06e5
50
+ };
51
+ },
52
+
53
+ computed: {
54
+ baseClass() {
55
+ return 'cdr-rating';
56
+ },
57
+
58
+ displayRating() {
59
+ return (Math.round(this.rating * 10) / 10).toFixed(1);
60
+ },
61
+
62
+ rounded() {
63
+ return Math.round(this.rating * 4) / 4;
64
+ },
65
+
66
+ whole() {
67
+ return Math.floor(this.rounded);
68
+ },
69
+
70
+ remainder() {
71
+ return this.rounded.toFixed(2).split('.')[1];
72
+ },
73
+
74
+ empties() {
75
+ return 5 - this.whole - (this.remainder > 0 ? 1 : 0);
76
+ },
77
+
78
+ formattedCount() {
79
+ return this.compact ? "(".concat(this.count, ")") : "".concat(this.count);
80
+ },
81
+
82
+ remainderEl() {
83
+ var h = this.$createElement;
84
+ var remainder;
85
+
86
+ if (this.remainder === '25') {
87
+ remainder = h("span", {
88
+ "class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__25']),
89
+ "attrs": {
90
+ "aria-hidden": "true"
91
+ }
92
+ });
93
+ } else if (this.remainder === '50') {
94
+ remainder = h("span", {
95
+ "class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__50']),
96
+ "attrs": {
97
+ "aria-hidden": "true"
98
+ }
99
+ });
100
+ } else if (this.remainder === '75') {
101
+ remainder = h("span", {
102
+ "class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__75']),
103
+ "attrs": {
104
+ "aria-hidden": "true"
105
+ }
106
+ });
107
+ }
108
+
109
+ return remainder;
110
+ },
111
+
112
+ srText() {
113
+ var _context2;
114
+
115
+ // linked
116
+ if (this.href) {
117
+ var _context;
118
+
119
+ // no reviews
120
+ if (this.count === 0 || this.count === '0') {
121
+ return 'No reviews yet; be the first!';
122
+ } // no count
123
+
124
+
125
+ if (this.count === null) {
126
+ return "View the reviews with an average rating of ".concat(this.displayRating, " out of 5 stars");
127
+ } // default
128
+
129
+
130
+ return _concatInstanceProperty(_context = "View the ".concat(this.count, " reviews with an average rating of ")).call(_context, this.displayRating, " out of 5 stars"); // eslint-disable-line max-len
131
+ } // non-linked
132
+ // no reviews
133
+
134
+
135
+ if (this.count === 0 || this.count === '0') {
136
+ return '0 reviews';
137
+ } // no count
138
+
139
+
140
+ if (this.count === null) {
141
+ return "Rated ".concat(this.displayRating, " out of 5 stars");
142
+ } // default
143
+
144
+
145
+ return _concatInstanceProperty(_context2 = "".concat(this.count, " reviews with an average rating of ")).call(_context2, this.displayRating, " out of 5 stars");
146
+ }
147
+
148
+ },
149
+
150
+ render() {
151
+ var _context3,
152
+ _context4,
153
+ _this = this,
154
+ _context6,
155
+ _context7;
156
+
157
+ var h = arguments[0];
158
+ var Component = this.href ? 'a' : 'div';
159
+ return h(Component, {
160
+ "attrs": {
161
+ "href": this.href
162
+ },
163
+ "class": clsx(this.style[this.baseClass], this.sizeClass, this.href ? this.style['cdr-rating--linked'] : '')
164
+ }, [h("div", {
165
+ "class": this.style['cdr-rating__ratings']
166
+ }, [_mapInstanceProperty(_context3 = _toConsumableArray(_keysInstanceProperty(_context4 = Array(this.whole)).call(_context4))).call(_context3, function (n) {
167
+ var _context5;
168
+
169
+ return h("span", {
170
+ "class": clsx(_this.style['cdr-rating__icon'], _this.style['cdr-rating__100']),
171
+ "key": _concatInstanceProperty(_context5 = "rating-whole-".concat(n, "-")).call(_context5, _this._uid),
172
+ "attrs": {
173
+ "aria-hidden": "true"
174
+ }
175
+ });
176
+ }), this.remainderEl, _mapInstanceProperty(_context6 = _toConsumableArray(_keysInstanceProperty(_context7 = Array(this.empties)).call(_context7))).call(_context6, function (n) {
177
+ var _context8;
178
+
179
+ return h("span", {
180
+ "class": clsx(_this.style['cdr-rating__icon'], _this.rounded > 0 || _this.count > 0 ? _this.style['cdr-rating__placeholder'] : _this.style['cdr-rating__placeholder--no-reviews']),
181
+ "key": _concatInstanceProperty(_context8 = "rating-empty-".concat(n, "-")).call(_context8, _this._uid),
182
+ "attrs": {
183
+ "aria-hidden": "true"
184
+ }
185
+ });
186
+ })]), this.count !== null ? h("span", {
187
+ "attrs": {
188
+ "aria-hidden": "true"
189
+ },
190
+ "class": this.style['cdr-rating__count']
191
+ }, [this.href && h("span", {
192
+ "class": this.style['cdr-rating__number']
193
+ }, [this.displayRating]), h("span", [this.formattedCount]), !this.compact && h("span", ["\xA0Reviews"])]) : '', h("span", {
194
+ "class": this.style['cdr-rating__caption-sr']
195
+ }, [this.srText])]);
196
+ }
197
+
198
+ };
199
+
200
+ export default CdrRating;
@@ -0,0 +1,3 @@
1
+ var modules_73dd06e5 = {"cdr-rating__icon":"cdr-rating__icon_9-1-1-beta-0","cdr-rating__count":"cdr-rating__count_9-1-1-beta-0","cdr-rating":"cdr-rating_9-1-1-beta-0","cdr-rating__number":"cdr-rating__number_9-1-1-beta-0","cdr-rating__ratings":"cdr-rating__ratings_9-1-1-beta-0","cdr-rating__caption-sr":"cdr-rating__caption-sr_9-1-1-beta-0","cdr-rating__placeholder":"cdr-rating__placeholder_9-1-1-beta-0","cdr-rating__placeholder--no-reviews":"cdr-rating__placeholder--no-reviews_9-1-1-beta-0","cdr-rating__100":"cdr-rating__100_9-1-1-beta-0","cdr-rating__75":"cdr-rating__75_9-1-1-beta-0","cdr-rating__50":"cdr-rating__50_9-1-1-beta-0","cdr-rating__25":"cdr-rating__25_9-1-1-beta-0","cdr-rating--linked":"cdr-rating--linked_9-1-1-beta-0","cdr-rating--large":"cdr-rating--large_9-1-1-beta-0","cdr-rating--medium":"cdr-rating--medium_9-1-1-beta-0","cdr-rating--small":"cdr-rating--small_9-1-1-beta-0","cdr-rating--small@xs":"cdr-rating--small@xs_9-1-1-beta-0","cdr-rating--medium@xs":"cdr-rating--medium@xs_9-1-1-beta-0","cdr-rating--large@xs":"cdr-rating--large@xs_9-1-1-beta-0","cdr-rating--small@sm":"cdr-rating--small@sm_9-1-1-beta-0","cdr-rating--medium@sm":"cdr-rating--medium@sm_9-1-1-beta-0","cdr-rating--large@sm":"cdr-rating--large@sm_9-1-1-beta-0","cdr-rating--small@md":"cdr-rating--small@md_9-1-1-beta-0","cdr-rating--medium@md":"cdr-rating--medium@md_9-1-1-beta-0","cdr-rating--large@md":"cdr-rating--large@md_9-1-1-beta-0","cdr-rating--small@lg":"cdr-rating--small@lg_9-1-1-beta-0","cdr-rating--medium@lg":"cdr-rating--medium@lg_9-1-1-beta-0","cdr-rating--large@lg":"cdr-rating--large@lg_9-1-1-beta-0"};
2
+
3
+ export default modules_73dd06e5;
@@ -0,0 +1,285 @@
1
+ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
2
+ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
3
+ import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
4
+ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
5
+ import _Symbol from '@babel/runtime-corejs3/core-js-stable/symbol';
6
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
7
+ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
8
+ import clsx from 'clsx';
9
+ import toArray from 'lodash-es/toArray';
10
+ import validateProp from '../../utils/propValidator.mjs';
11
+ import IconCaretDown from '../icon/comps/caret-down.mjs';
12
+ import CdrLabelStandalone from '../labelStandalone/CdrLabelStandalone.mjs';
13
+ import CdrFormError from '../formError/CdrFormError.mjs';
14
+ import size from '../../mixins/size.mjs';
15
+ import modules_b8df9d41 from './styles/CdrSelect.mjs';
16
+
17
+ 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; }
18
+
19
+ 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; }
20
+ var CdrSelect = {
21
+ name: 'CdrSelect',
22
+ components: {
23
+ IconCaretDown,
24
+ CdrLabelStandalone,
25
+ CdrFormError
26
+ },
27
+ mixins: [size],
28
+ inheritAttrs: false,
29
+ model: {
30
+ prop: 'value',
31
+ event: 'change'
32
+ },
33
+ props: {
34
+ /**
35
+ * `id` for the select that is mapped to the label `for` attribute. If one is not provided, it will be generated.
36
+ */
37
+ id: String,
38
+
39
+ /**
40
+ * Label text. This is required for a11y even if hiding the label with `hideLabel`.
41
+ */
42
+ label: {
43
+ type: String,
44
+ required: true
45
+ },
46
+
47
+ /**
48
+ * Removes the label element but sets the select `aria-label` to `label` text for a11y.
49
+ */
50
+ hideLabel: Boolean,
51
+
52
+ /**
53
+ * Adds an option that is disabled and selected by default to serve as a `placeholder` for the select.
54
+ */
55
+ prompt: String,
56
+
57
+ /**
58
+ * Build options programatically with data. Array of objects [{ text: String, value: String}] to give greater control. Array of strings ['String'] for simpler setup (value and text will be the same).
59
+ */
60
+ options: {
61
+ type: Array
62
+ },
63
+ // Set which background type the select renders on
64
+ background: {
65
+ type: [String],
66
+ default: 'primary',
67
+ validator: function validator(value) {
68
+ return validateProp(value, ['primary', 'secondary']);
69
+ }
70
+ },
71
+ // Set error styling
72
+ error: {
73
+ type: [Boolean, String],
74
+ default: false
75
+ },
76
+
77
+ /**
78
+ * Override the error message role, default is `status`.
79
+ */
80
+ errorRole: {
81
+ type: String,
82
+ required: false,
83
+ default: 'status'
84
+ },
85
+ value: {
86
+ type: [String, Number, Boolean, Object, Array, _Symbol, Function]
87
+ },
88
+ disabled: Boolean,
89
+ required: Boolean,
90
+ optional: Boolean,
91
+ multiple: Boolean,
92
+ multipleSize: Number
93
+ },
94
+
95
+ data() {
96
+ return {
97
+ style: modules_b8df9d41
98
+ };
99
+ },
100
+
101
+ computed: {
102
+ // Use given id or generate one
103
+ selectId() {
104
+ return this.id ? this.id : this._uid; // eslint-disable-line no-underscore-dangle
105
+ },
106
+
107
+ baseClass() {
108
+ return 'cdr-select';
109
+ },
110
+
111
+ selectClass() {
112
+ return {
113
+ [this.style['cdr-select']]: true,
114
+ [this.style['cdr-select__prompt']]: !this.value,
115
+ [this.style['cdr-select--multiple']]: this.multiple,
116
+ [this.style["cdr-select--".concat(this.background)]]: true,
117
+ [this.style['cdr-select--error']]: this.error,
118
+ [this.style['cdr-select--preicon']]: this.$slots['pre-icon']
119
+ };
120
+ },
121
+
122
+ caretClass() {
123
+ return {
124
+ [this.style['cdr-select__caret']]: true,
125
+ [this.style['cdr-select__caret--disabled']]: this.disabled
126
+ };
127
+ },
128
+
129
+ describedby() {
130
+ var _context;
131
+
132
+ return _filterInstanceProperty(_context = [this.$slots['helper-text'] ? "".concat(this.selectId, "-helper-text-top") : '', this.$attrs['aria-describedby']]).call(_context, function (x) {
133
+ return x;
134
+ }).join(' ');
135
+ },
136
+
137
+ inputListeners() {
138
+ // https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components
139
+ // handles conflict between v-model and v-on="$listeners"
140
+ var vm = this;
141
+ return _objectSpread(_objectSpread({}, this.$listeners), {}, {
142
+ change(event) {
143
+ if (vm.multiple) {
144
+ var _context2;
145
+
146
+ var optArr = toArray(event.target.options);
147
+
148
+ var selected = _mapInstanceProperty(_context2 = _filterInstanceProperty(optArr).call(optArr, function (o) {
149
+ return o.selected === true;
150
+ })).call(_context2, function (o) {
151
+ return o.value;
152
+ });
153
+
154
+ vm.$emit('change', selected, event);
155
+ } else {
156
+ vm.$emit('change', event.target.value, event);
157
+ }
158
+ }
159
+
160
+ });
161
+ },
162
+
163
+ selectEl() {
164
+ var _this = this,
165
+ _context4;
166
+
167
+ var h = this.$createElement;
168
+ return h("select", _mergeJSXProps([{
169
+ "on": _objectSpread({
170
+ "change": function change($event) {
171
+ var _context3;
172
+
173
+ var $$selectedVal = _mapInstanceProperty(_context3 = _filterInstanceProperty(Array.prototype).call($event.target.options, function (o) {
174
+ return o.selected;
175
+ })).call(_context3, function (o) {
176
+ return "_value" in o ? o._value : o.value;
177
+ });
178
+
179
+ _this.value = $event.target.multiple ? $$selectedVal : $$selectedVal[0];
180
+ }
181
+ }, this.inputListeners),
182
+ "class": clsx(this.sizeClass, this.selectClass),
183
+ "attrs": _objectSpread(_objectSpread({
184
+ "id": this.selectId,
185
+ "multiple": this.multiple,
186
+ "size": this.multipleSize,
187
+ "disabled": this.disabled,
188
+ "aria-required": this.required,
189
+ "aria-invalid": !!this.error,
190
+ "aria-errormessage": !!this.error && "".concat(this.selectId, "-error")
191
+ }, this.$attrs), {}, {
192
+ "aria-describedby": this.describedby || false
193
+ }),
194
+ "ref": "select"
195
+ }, {
196
+ directives: [{
197
+ name: "model",
198
+ value: _this.value,
199
+ modifiers: {}
200
+ }]
201
+ }]), [this.prompt && h("option", {
202
+ "class": "cdr-select__prompt",
203
+ "attrs": {
204
+ "value": "",
205
+ "disabled": true
206
+ },
207
+ "ref": "prompt"
208
+ }, [this.prompt]), _mapInstanceProperty(_context4 = this.computedOpts).call(_context4, function (option) {
209
+ return h("option", {
210
+ "key": option.text,
211
+ "domProps": {
212
+ "value": option.value
213
+ }
214
+ }, [option.text]);
215
+ }), this.$slots.default]);
216
+ },
217
+
218
+ computedOpts() {
219
+ var optsArr = [];
220
+
221
+ if (this.options) {
222
+ this.options.forEach(function (o) {
223
+ var optObj = {};
224
+ var text = '';
225
+ var val = '';
226
+
227
+ if (typeof o === 'string') {
228
+ text = o;
229
+ val = o;
230
+ } else {
231
+ var t = o.text,
232
+ v = o.value;
233
+ text = t;
234
+ val = v;
235
+ }
236
+
237
+ optObj.text = text;
238
+ optObj.value = val;
239
+ optsArr.push(optObj);
240
+ });
241
+ }
242
+
243
+ return optsArr;
244
+ }
245
+
246
+ },
247
+
248
+ render() {
249
+ var h = arguments[0];
250
+ return h("cdr-label-standalone", {
251
+ "attrs": {
252
+ "for-id": "".concat(this.selectId),
253
+ "label": this.label,
254
+ "hide-label": this.hideLabel,
255
+ "required": this.required,
256
+ "optional": this.optional,
257
+ "disabled": this.disabled
258
+ }
259
+ }, [this.$slots['helper-text'] && h("template", {
260
+ "slot": "helper"
261
+ }, [this.$slots['helper-text']]), this.$slots.info && h("template", {
262
+ "slot": "info"
263
+ }, [this.$slots.info]), this.$slots['info-action'] && h("template", {
264
+ "slot": "info-action"
265
+ }, [this.$slots['info-action']]), this.error && h("cdr-form-error", {
266
+ "attrs": {
267
+ "role": this.errorRole,
268
+ "error": this.error,
269
+ "id": "".concat(this.selectId, "-error")
270
+ },
271
+ "slot": "error"
272
+ }, [h("template", {
273
+ "slot": "error"
274
+ }, [this.$slots.error])]), h("div", {
275
+ "class": this.style['cdr-select-wrap']
276
+ }, [this.$slots['pre-icon'] && h("span", {
277
+ "class": this.style['cdr-select__pre-icon']
278
+ }, [this.$slots['pre-icon']]), this.selectEl, h("icon-caret-down", {
279
+ "class": this.caretClass
280
+ })])]);
281
+ }
282
+
283
+ };
284
+
285
+ export default CdrSelect;
@@ -0,0 +1,3 @@
1
+ var modules_b8df9d41 = {"cdr-select":"cdr-select_9-1-1-beta-0","cdr-select--primary":"cdr-select--primary_9-1-1-beta-0","cdr-select--secondary":"cdr-select--secondary_9-1-1-beta-0","cdr-select--error":"cdr-select--error_9-1-1-beta-0","cdr-select--preicon":"cdr-select--preicon_9-1-1-beta-0","cdr-select__prompt":"cdr-select__prompt_9-1-1-beta-0","cdr-select__caret":"cdr-select__caret_9-1-1-beta-0","cdr-select__caret--disabled":"cdr-select__caret--disabled_9-1-1-beta-0","cdr-select__pre-icon":"cdr-select__pre-icon_9-1-1-beta-0","cdr-select--multiple":"cdr-select--multiple_9-1-1-beta-0","cdr-select--large@xs":"cdr-select--large@xs_9-1-1-beta-0","cdr-select--large":"cdr-select--large_9-1-1-beta-0","cdr-select--large@sm":"cdr-select--large@sm_9-1-1-beta-0","cdr-select--large@md":"cdr-select--large@md_9-1-1-beta-0","cdr-select--large@lg":"cdr-select--large@lg_9-1-1-beta-0","cdr-select-wrap":"cdr-select-wrap_9-1-1-beta-0"};
2
+
3
+ export default modules_b8df9d41;
@@ -0,0 +1,79 @@
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 clsx from 'clsx';
6
+ import modifier from '../../mixins/modifier.mjs';
7
+ import size from '../../mixins/size.mjs';
8
+ import modules_6c94c1d4 from './styles/CdrTable.mjs';
9
+
10
+ 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; }
11
+
12
+ 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; }
13
+ var CdrTable = {
14
+ name: 'CdrTable',
15
+ mixins: [modifier, size],
16
+ props: {
17
+ striped: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ border: {
22
+ type: Boolean,
23
+ default: true
24
+ },
25
+ // can't use fullWidth mixin because its default is false :(
26
+ fullWidth: {
27
+ type: [Boolean, String],
28
+ default: true
29
+ },
30
+ responsive: {
31
+ type: Boolean,
32
+ default: true
33
+ },
34
+ hover: {
35
+ type: Boolean,
36
+ default: false
37
+ }
38
+ },
39
+
40
+ data() {
41
+ return {
42
+ style: modules_6c94c1d4,
43
+ baseClass: 'cdr-table'
44
+ };
45
+ },
46
+
47
+ computed: {
48
+ tableClasses() {
49
+ return {
50
+ [this.style[this.baseClass]]: true,
51
+ [this.sizeClass]: true,
52
+ [this.modifyClassName(this.baseClass, 'striped')]: this.striped,
53
+ [this.modifyClassName(this.baseClass, 'hover')]: this.hover,
54
+ [this.modifyClassName(this.baseClass, 'border')]: this.border && !this.striped,
55
+ [this.responsiveModifyClass(this.baseClass, 'full-width', this.fullWidth)]: this.fullWidth
56
+ };
57
+ },
58
+
59
+ wrapperClasses() {
60
+ return {
61
+ [this.modifyClassName(this.baseClass, 'responsive')]: this.responsive
62
+ };
63
+ }
64
+
65
+ },
66
+
67
+ render() {
68
+ var h = arguments[0];
69
+ return h("div", {
70
+ "class": clsx(this.wrapperClasses)
71
+ }, [h("table", {
72
+ "class": clsx(this.tableClasses),
73
+ "attrs": _objectSpread({}, this.$attrs)
74
+ }, [this.$slots.default])]);
75
+ }
76
+
77
+ };
78
+
79
+ export default CdrTable;
@@ -0,0 +1,3 @@
1
+ var modules_6c94c1d4 = {"cdr-table":"cdr-table_9-1-1-beta-0","cdr-table--small":"cdr-table--small_9-1-1-beta-0","cdr-table--medium":"cdr-table--medium_9-1-1-beta-0","cdr-table--large":"cdr-table--large_9-1-1-beta-0","cdr-table--striped":"cdr-table--striped_9-1-1-beta-0","cdr-table--border":"cdr-table--border_9-1-1-beta-0","cdr-table--full-width":"cdr-table--full-width_9-1-1-beta-0","cdr-table--responsive":"cdr-table--responsive_9-1-1-beta-0","cdr-table--hover":"cdr-table--hover_9-1-1-beta-0","cdr-table--full-width@xs":"cdr-table--full-width@xs_9-1-1-beta-0","cdr-table--full-width@sm":"cdr-table--full-width@sm_9-1-1-beta-0","cdr-table--full-width@md":"cdr-table--full-width@md_9-1-1-beta-0","cdr-table--full-width@lg":"cdr-table--full-width@lg_9-1-1-beta-0"};
2
+
3
+ export default modules_6c94c1d4;
@@ -0,0 +1,107 @@
1
+ import clsx from 'clsx';
2
+ import modifier from '../../mixins/modifier.mjs';
3
+ import modules_7f8cc96c from './styles/CdrTabPanel.mjs';
4
+
5
+ var CdrTabPanel = {
6
+ name: 'CdrTabPanel',
7
+ mixins: [modifier],
8
+ props: {
9
+ /**
10
+ * Required string value that shows up on tab header
11
+ */
12
+ name: {
13
+ type: String,
14
+ required: true
15
+ },
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ ariaLabelledby: {
21
+ type: String,
22
+ required: true
23
+ },
24
+ id: {
25
+ type: String,
26
+ required: true
27
+ }
28
+ },
29
+
30
+ data() {
31
+ return {
32
+ active: false,
33
+ hidden: true,
34
+ offsetX: 0,
35
+ animationDirection: null,
36
+ style: modules_7f8cc96c
37
+ };
38
+ },
39
+
40
+ computed: {
41
+ baseClass() {
42
+ return 'cdr-tab-panel';
43
+ },
44
+
45
+ animationClass() {
46
+ return this.animationDirection ? modules_7f8cc96c["cdr-tab-panel-".concat(this.animationDirection)] : null;
47
+ }
48
+
49
+ },
50
+ methods: {
51
+ setActive(state) {
52
+ if (state) this.hidden = false;
53
+ this.active = state;
54
+ this.$emit('tab-change', state, this.id);
55
+ },
56
+
57
+ setAnimationDirection(direction) {
58
+ this.animationDirection = direction;
59
+ },
60
+
61
+ setOffsetX(x) {
62
+ this.offsetX = x;
63
+ },
64
+
65
+ handleUpArrowNav() {
66
+ this.$parent.setFocusToActiveTabHeader();
67
+ },
68
+
69
+ animationEnd(event) {
70
+ if (event.animationName.split('-')[0] === 'exit') {
71
+ this.hidden = true;
72
+ this.animationDirection = null;
73
+ }
74
+ }
75
+
76
+ },
77
+
78
+ render() {
79
+ var _this = this;
80
+
81
+ var h = arguments[0];
82
+ return h("div", {
83
+ "attrs": {
84
+ "aria-hidden": !this.active,
85
+ "aria-labelledby": this.ariaLabelledby,
86
+ "hidden": this.hidden,
87
+ "id": this.id,
88
+ "tabindex": "0",
89
+ "role": "tabpanel"
90
+ },
91
+ "class": clsx(this.style[this.baseClass], this.modifierClass, this.animationClass),
92
+ "ref": "cdrTabPanelContainer",
93
+ "key": this.name,
94
+ "on": {
95
+ "keydown": function keydown($event) {
96
+ if (!("button" in $event) && _this._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])) return null;
97
+ $event.preventDefault();
98
+ return _this.handleUpArrowNav($event);
99
+ },
100
+ "animationend": this.animationEnd
101
+ }
102
+ }, [this.$slots.default]);
103
+ }
104
+
105
+ };
106
+
107
+ export default CdrTabPanel;