@rei/cedar 14.1.1 → 15.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 (166) hide show
  1. package/dist/cedar.umd.js +14 -14
  2. package/dist/component-docgen.json +2728 -2262
  3. package/dist/icon-component-docgen.json +591 -591
  4. package/dist/lib.d.ts +788 -411
  5. package/dist/node_modules/@rei/cdr-tokens/dist/rei-dot-com/js/cdr-tokens.mjs +10 -7
  6. package/dist/reset.css +0 -5
  7. package/dist/src/components/abstract/CdrAbstract.vue.mjs +9 -0
  8. package/dist/src/components/abstract/CdrAbstract.vue2.mjs +24 -0
  9. package/dist/src/components/abstract/styles/CdrAbstract.module.scss.mjs +6 -0
  10. package/dist/src/components/accordion/CdrAccordion.vue2.mjs +29 -29
  11. package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +29 -29
  12. package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +2 -2
  13. package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +14 -14
  14. package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +7 -7
  15. package/dist/src/components/button/styles/CdrButton.module.scss.mjs +31 -31
  16. package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +4 -4
  17. package/dist/src/components/card/styles/CdrCard.module.scss.mjs +3 -3
  18. package/dist/src/components/checkbox/CdrCheckbox.vue2.mjs +21 -21
  19. package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +29 -29
  20. package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +4 -4
  21. package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +6 -6
  22. package/dist/src/components/choreographer/CdrChoreographer.vue.mjs +9 -0
  23. package/dist/src/components/choreographer/CdrChoreographer.vue2.mjs +48 -0
  24. package/dist/src/components/choreographer/styles/CdrChoreographer.module.scss.mjs +9 -0
  25. package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +4 -4
  26. package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +2 -2
  27. package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +8 -8
  28. package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +21 -21
  29. package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +12 -12
  30. package/dist/src/components/image/CdrImg.vue2.mjs +32 -96
  31. package/dist/src/components/image/styles/CdrImg.module.scss.mjs +3 -10
  32. package/dist/src/components/input/CdrInput.vue2.mjs +29 -29
  33. package/dist/src/components/input/styles/CdrInput.module.scss.mjs +34 -34
  34. package/dist/src/components/kicker/CdrKicker.vue.mjs +9 -0
  35. package/dist/src/components/kicker/CdrKicker.vue2.mjs +14 -0
  36. package/dist/src/components/kicker/styles/CdrKicker.module.scss.mjs +6 -0
  37. package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +14 -14
  38. package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +27 -27
  39. package/dist/src/components/lead/CdrHeadingSubheadingBlock.vue.mjs +9 -0
  40. package/dist/src/components/lead/CdrHeadingSubheadingBlock.vue2.mjs +33 -0
  41. package/dist/src/components/lead/CdrLead.vue.mjs +9 -0
  42. package/dist/src/components/lead/CdrLead.vue2.mjs +55 -0
  43. package/dist/src/components/lead/styles/CdrHeadingSubheadingBlock.module.scss.mjs +7 -0
  44. package/dist/src/components/lead/styles/CdrLead.module.scss.mjs +11 -0
  45. package/dist/src/components/link/styles/CdrLink.module.scss.mjs +5 -5
  46. package/dist/src/components/list/styles/CdrList.module.scss.mjs +5 -5
  47. package/dist/src/components/modal/CdrModal.vue2.mjs +110 -90
  48. package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +14 -14
  49. package/dist/src/components/pagination/CdrPagination.vue2.mjs +79 -79
  50. package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +55 -55
  51. package/dist/src/components/picture/CdrPicture.vue.mjs +9 -0
  52. package/dist/src/components/picture/CdrPicture.vue2.mjs +42 -0
  53. package/dist/src/components/picture/styles/CdrPicture.module.scss.mjs +6 -0
  54. package/dist/src/components/popover/CdrPopover.vue2.mjs +38 -38
  55. package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +63 -63
  56. package/dist/src/components/popup/CdrPopup.vue2.mjs +28 -28
  57. package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +14 -14
  58. package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +4 -4
  59. package/dist/src/components/radio/CdrRadio.vue2.mjs +23 -23
  60. package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +29 -29
  61. package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +46 -46
  62. package/dist/src/components/select/CdrSelect.vue2.mjs +30 -30
  63. package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +42 -42
  64. package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +1 -1
  65. package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +7 -7
  66. package/dist/src/components/switch/CdrSwitch.vue2.mjs +25 -25
  67. package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +8 -8
  68. package/dist/src/components/table/styles/CdrTable.module.scss.mjs +13 -13
  69. package/dist/src/components/tabs/CdrTabPanel.vue2.mjs +12 -12
  70. package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +7 -7
  71. package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +30 -30
  72. package/dist/src/components/text/presets/CdrBody.vue.mjs +9 -0
  73. package/dist/src/components/text/presets/CdrBody.vue2.mjs +39 -0
  74. package/dist/src/components/text/presets/CdrBody.vue3.mjs +6 -0
  75. package/dist/src/components/text/presets/CdrEyebrow.vue.mjs +9 -0
  76. package/dist/src/components/text/presets/CdrEyebrow.vue2.mjs +18 -0
  77. package/dist/src/components/text/presets/CdrEyebrow.vue3.mjs +6 -0
  78. package/dist/src/components/text/presets/CdrHeadingDisplay.vue.mjs +9 -0
  79. package/dist/src/components/text/presets/CdrHeadingDisplay.vue2.mjs +33 -0
  80. package/dist/src/components/text/presets/CdrHeadingDisplay.vue3.mjs +6 -0
  81. package/dist/src/components/text/presets/CdrHeadingSans.vue.mjs +9 -0
  82. package/dist/src/components/text/presets/CdrHeadingSans.vue2.mjs +33 -0
  83. package/dist/src/components/text/presets/CdrHeadingSans.vue3.mjs +6 -0
  84. package/dist/src/components/text/presets/CdrHeadingSerif.vue.mjs +9 -0
  85. package/dist/src/components/text/presets/CdrHeadingSerif.vue2.mjs +39 -0
  86. package/dist/src/components/text/presets/CdrHeadingSerif.vue3.mjs +6 -0
  87. package/dist/src/components/text/presets/CdrSubheadingSans.vue.mjs +9 -0
  88. package/dist/src/components/text/presets/CdrSubheadingSans.vue2.mjs +33 -0
  89. package/dist/src/components/text/presets/CdrSubheadingSans.vue3.mjs +6 -0
  90. package/dist/src/components/text/presets/CdrUtilitySans.vue.mjs +9 -0
  91. package/dist/src/components/text/presets/CdrUtilitySans.vue2.mjs +39 -0
  92. package/dist/src/components/text/presets/CdrUtilitySans.vue3.mjs +6 -0
  93. package/dist/src/components/text/presets/CdrUtilitySerif.vue.mjs +9 -0
  94. package/dist/src/components/text/presets/CdrUtilitySerif.vue2.mjs +39 -0
  95. package/dist/src/components/text/presets/CdrUtilitySerif.vue3.mjs +6 -0
  96. package/dist/src/components/text/styles/CdrText.module.scss.mjs +1 -1
  97. package/dist/src/components/title/CdrTitle.vue.mjs +9 -0
  98. package/dist/src/components/title/CdrTitle.vue2.mjs +23 -0
  99. package/dist/src/components/title/styles/CdrTitle.module.scss.mjs +6 -0
  100. package/dist/src/components/toast/CdrToast.vue2.mjs +21 -21
  101. package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +57 -57
  102. package/dist/src/components/toggleButton/CdrToggleGroup.vue2.mjs +27 -27
  103. package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +2 -2
  104. package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +5 -5
  105. package/dist/src/components/tooltip/CdrTooltip.vue2.mjs +25 -25
  106. package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +16 -16
  107. package/dist/src/lib.mjs +468 -440
  108. package/dist/style/cdr-abstract.css +1 -0
  109. package/dist/style/cdr-accordion-group.css +1 -1
  110. package/dist/style/cdr-accordion.css +1 -1
  111. package/dist/style/cdr-banner.css +1 -1
  112. package/dist/style/cdr-body.css +1 -0
  113. package/dist/style/cdr-breadcrumb.css +1 -1
  114. package/dist/style/cdr-button.css +1 -1
  115. package/dist/style/cdr-caption.css +1 -1
  116. package/dist/style/cdr-card.css +1 -1
  117. package/dist/style/cdr-checkbox.css +1 -1
  118. package/dist/style/cdr-chip-group.css +1 -1
  119. package/dist/style/cdr-chip.css +1 -1
  120. package/dist/style/cdr-choreographer.css +1 -0
  121. package/dist/style/cdr-container.css +1 -1
  122. package/dist/style/cdr-eyebrow.css +1 -0
  123. package/dist/style/cdr-form-error.css +1 -1
  124. package/dist/style/cdr-form-group.css +1 -1
  125. package/dist/style/cdr-grid.css +1 -1
  126. package/dist/style/cdr-heading-display.css +1 -0
  127. package/dist/style/cdr-heading-sans.css +1 -0
  128. package/dist/style/cdr-heading-serif.css +1 -0
  129. package/dist/style/cdr-heading-subheading-block.css +1 -0
  130. package/dist/style/cdr-icon.css +1 -1
  131. package/dist/style/cdr-img.css +1 -1
  132. package/dist/style/cdr-input.css +1 -1
  133. package/dist/style/cdr-kicker.css +1 -0
  134. package/dist/style/cdr-label-standalone.css +1 -1
  135. package/dist/style/cdr-label-wrapper.css +1 -1
  136. package/dist/style/cdr-lead.css +1 -0
  137. package/dist/style/cdr-link.css +1 -1
  138. package/dist/style/cdr-list.css +1 -1
  139. package/dist/style/cdr-modal.css +1 -1
  140. package/dist/style/cdr-pagination.css +1 -1
  141. package/dist/style/cdr-picture.css +1 -0
  142. package/dist/style/cdr-popover.css +1 -1
  143. package/dist/style/cdr-popup.css +1 -1
  144. package/dist/style/cdr-quote.css +1 -1
  145. package/dist/style/cdr-radio.css +1 -1
  146. package/dist/style/cdr-rating.css +1 -1
  147. package/dist/style/cdr-select.css +1 -1
  148. package/dist/style/cdr-skeleton-bone.css +1 -1
  149. package/dist/style/cdr-skeleton.css +1 -1
  150. package/dist/style/cdr-subheading-sans.css +1 -0
  151. package/dist/style/cdr-switch.css +1 -1
  152. package/dist/style/cdr-tab-panel.css +1 -1
  153. package/dist/style/cdr-table.css +1 -1
  154. package/dist/style/cdr-tabs.css +1 -1
  155. package/dist/style/cdr-text.css +1 -1
  156. package/dist/style/cdr-title.css +1 -0
  157. package/dist/style/cdr-toast.css +1 -1
  158. package/dist/style/cdr-toggle-button.css +1 -1
  159. package/dist/style/cdr-toggle-group.css +1 -1
  160. package/dist/style/cdr-tooltip.css +1 -1
  161. package/dist/style/cdr-utility-sans.css +1 -0
  162. package/dist/style/cdr-utility-serif.css +1 -0
  163. package/dist/style.css +1 -1
  164. package/package.json +6 -12
  165. package/dist/cedar-compiled.css +0 -2332
  166. package/dist/style/cedar-full.css +0 -41
@@ -0,0 +1,14 @@
1
+ import { defineComponent as r, useCssModule as n, openBlock as o, createElementBlock as t, normalizeClass as a, unref as c, renderSlot as l } from "vue";
2
+ const d = "cdr-kicker", i = /* @__PURE__ */ r({
3
+ name: "CdrKicker",
4
+ __name: "CdrKicker",
5
+ setup(m) {
6
+ const e = n();
7
+ return (s, p) => (o(), t("span", {
8
+ class: a(c(e)[d])
9
+ }, [l(s.$slots, "default")], 2));
10
+ }
11
+ });
12
+ export {
13
+ i as default
14
+ };
@@ -0,0 +1,6 @@
1
+ const c = {
2
+ "cdr-kicker": "cdr-kicker_15-0-0-alpha-0"
3
+ };
4
+ export {
5
+ c as default
6
+ };
@@ -1,17 +1,17 @@
1
- const l = {
2
- "cdr-label-standalone": "cdr-label-standalone_14-1-1",
3
- "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_14-1-1",
4
- "cdr-label-standalone__label": "cdr-label-standalone__label_14-1-1",
5
- "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_14-1-1",
6
- "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_14-1-1",
7
- "cdr-label-standalone__optional": "cdr-label-standalone__optional_14-1-1",
8
- "cdr-label-standalone__helper": "cdr-label-standalone__helper_14-1-1",
9
- "cdr-label-standalone__info": "cdr-label-standalone__info_14-1-1",
10
- "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_14-1-1",
11
- "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_14-1-1",
12
- "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_14-1-1",
13
- "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_14-1-1"
1
+ const a = {
2
+ "cdr-label-standalone": "cdr-label-standalone_15-0-0-alpha-0",
3
+ "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_15-0-0-alpha-0",
4
+ "cdr-label-standalone__label": "cdr-label-standalone__label_15-0-0-alpha-0",
5
+ "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_15-0-0-alpha-0",
6
+ "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_15-0-0-alpha-0",
7
+ "cdr-label-standalone__optional": "cdr-label-standalone__optional_15-0-0-alpha-0",
8
+ "cdr-label-standalone__helper": "cdr-label-standalone__helper_15-0-0-alpha-0",
9
+ "cdr-label-standalone__info": "cdr-label-standalone__info_15-0-0-alpha-0",
10
+ "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_15-0-0-alpha-0",
11
+ "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_15-0-0-alpha-0",
12
+ "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_15-0-0-alpha-0",
13
+ "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_15-0-0-alpha-0"
14
14
  };
15
15
  export {
16
- l as default
16
+ a as default
17
17
  };
@@ -1,30 +1,30 @@
1
- const r = {
2
- "cdr-label-wrapper": "cdr-label-wrapper_14-1-1",
3
- "cdr-label-wrapper__container": "cdr-label-wrapper__container_14-1-1",
4
- "cdr-label-wrapper--primary": "cdr-label-wrapper--primary_14-1-1",
5
- "cdr-label-wrapper--secondary": "cdr-label-wrapper--secondary_14-1-1",
6
- "cdr-label-wrapper--disabled": "cdr-label-wrapper--disabled_14-1-1",
7
- "cdr-label-wrapper__figure": "cdr-label-wrapper__figure_14-1-1",
8
- "cdr-label-wrapper__content": "cdr-label-wrapper__content_14-1-1",
9
- "cdr-label-wrapper--hide-figure": "cdr-label-wrapper--hide-figure_14-1-1",
10
- "cdr-checkbox__svg-box": "cdr-checkbox__svg-box_14-1-1",
11
- "cdr-label-wrapper--small": "cdr-label-wrapper--small_14-1-1",
12
- "cdr-label-wrapper--medium": "cdr-label-wrapper--medium_14-1-1",
13
- "cdr-label-wrapper--large": "cdr-label-wrapper--large_14-1-1",
14
- "cdr-checkbox__checkbox-box": "cdr-checkbox__checkbox-box_14-1-1",
15
- "cdr-label-wrapper--small@xs": "cdr-label-wrapper--small@xs_14-1-1",
16
- "cdr-label-wrapper--medium@xs": "cdr-label-wrapper--medium@xs_14-1-1",
17
- "cdr-label-wrapper--large@xs": "cdr-label-wrapper--large@xs_14-1-1",
18
- "cdr-label-wrapper--small@sm": "cdr-label-wrapper--small@sm_14-1-1",
19
- "cdr-label-wrapper--medium@sm": "cdr-label-wrapper--medium@sm_14-1-1",
20
- "cdr-label-wrapper--large@sm": "cdr-label-wrapper--large@sm_14-1-1",
21
- "cdr-label-wrapper--small@md": "cdr-label-wrapper--small@md_14-1-1",
22
- "cdr-label-wrapper--medium@md": "cdr-label-wrapper--medium@md_14-1-1",
23
- "cdr-label-wrapper--large@md": "cdr-label-wrapper--large@md_14-1-1",
24
- "cdr-label-wrapper--small@lg": "cdr-label-wrapper--small@lg_14-1-1",
25
- "cdr-label-wrapper--medium@lg": "cdr-label-wrapper--medium@lg_14-1-1",
26
- "cdr-label-wrapper--large@lg": "cdr-label-wrapper--large@lg_14-1-1"
1
+ const a = {
2
+ "cdr-label-wrapper": "cdr-label-wrapper_15-0-0-alpha-0",
3
+ "cdr-label-wrapper__container": "cdr-label-wrapper__container_15-0-0-alpha-0",
4
+ "cdr-label-wrapper--primary": "cdr-label-wrapper--primary_15-0-0-alpha-0",
5
+ "cdr-label-wrapper--secondary": "cdr-label-wrapper--secondary_15-0-0-alpha-0",
6
+ "cdr-label-wrapper--disabled": "cdr-label-wrapper--disabled_15-0-0-alpha-0",
7
+ "cdr-label-wrapper__figure": "cdr-label-wrapper__figure_15-0-0-alpha-0",
8
+ "cdr-label-wrapper__content": "cdr-label-wrapper__content_15-0-0-alpha-0",
9
+ "cdr-label-wrapper--hide-figure": "cdr-label-wrapper--hide-figure_15-0-0-alpha-0",
10
+ "cdr-checkbox__svg-box": "cdr-checkbox__svg-box_15-0-0-alpha-0",
11
+ "cdr-label-wrapper--small": "cdr-label-wrapper--small_15-0-0-alpha-0",
12
+ "cdr-label-wrapper--medium": "cdr-label-wrapper--medium_15-0-0-alpha-0",
13
+ "cdr-label-wrapper--large": "cdr-label-wrapper--large_15-0-0-alpha-0",
14
+ "cdr-checkbox__checkbox-box": "cdr-checkbox__checkbox-box_15-0-0-alpha-0",
15
+ "cdr-label-wrapper--small@xs": "cdr-label-wrapper--small@xs_15-0-0-alpha-0",
16
+ "cdr-label-wrapper--medium@xs": "cdr-label-wrapper--medium@xs_15-0-0-alpha-0",
17
+ "cdr-label-wrapper--large@xs": "cdr-label-wrapper--large@xs_15-0-0-alpha-0",
18
+ "cdr-label-wrapper--small@sm": "cdr-label-wrapper--small@sm_15-0-0-alpha-0",
19
+ "cdr-label-wrapper--medium@sm": "cdr-label-wrapper--medium@sm_15-0-0-alpha-0",
20
+ "cdr-label-wrapper--large@sm": "cdr-label-wrapper--large@sm_15-0-0-alpha-0",
21
+ "cdr-label-wrapper--small@md": "cdr-label-wrapper--small@md_15-0-0-alpha-0",
22
+ "cdr-label-wrapper--medium@md": "cdr-label-wrapper--medium@md_15-0-0-alpha-0",
23
+ "cdr-label-wrapper--large@md": "cdr-label-wrapper--large@md_15-0-0-alpha-0",
24
+ "cdr-label-wrapper--small@lg": "cdr-label-wrapper--small@lg_15-0-0-alpha-0",
25
+ "cdr-label-wrapper--medium@lg": "cdr-label-wrapper--medium@lg_15-0-0-alpha-0",
26
+ "cdr-label-wrapper--large@lg": "cdr-label-wrapper--large@lg_15-0-0-alpha-0"
27
27
  };
28
28
  export {
29
- r as default
29
+ a as default
30
30
  };
@@ -0,0 +1,9 @@
1
+ import o from "./CdrHeadingSubheadingBlock.vue2.mjs";
2
+ import s from "./styles/CdrHeadingSubheadingBlock.module.scss.mjs";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const e = {
5
+ $style: s
6
+ }, d = /* @__PURE__ */ t(o, [["__cssModules", e]]);
7
+ export {
8
+ d as default
9
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as i, useCssModule as c, openBlock as g, createElementBlock as u, normalizeClass as s, unref as e, createVNode as d, withCtx as l, renderSlot as o } from "vue";
2
+ import h from "../text/presets/CdrHeadingDisplay.vue.mjs";
3
+ import f from "../text/presets/CdrSubheadingSans.vue.mjs";
4
+ const n = "cdr-heading-subheading-block", b = /* @__PURE__ */ i({
5
+ __name: "CdrHeadingSubheadingBlock",
6
+ props: {
7
+ headingTag: {
8
+ type: String,
9
+ default: "h1"
10
+ }
11
+ },
12
+ setup(r) {
13
+ const a = c();
14
+ return (t, m) => (g(), u("header", {
15
+ class: s(e(a)[n])
16
+ }, [d(e(h), {
17
+ tag: r.headingTag,
18
+ scale: "4",
19
+ class: s(e(a)[`${n}__heading`])
20
+ }, {
21
+ default: l(() => [o(t.$slots, "default")]),
22
+ _: 3
23
+ }, 8, ["tag", "class"]), d(e(f), {
24
+ class: s(e(a)[`${n}__subheading`])
25
+ }, {
26
+ default: l(() => [o(t.$slots, "subheading")]),
27
+ _: 3
28
+ }, 8, ["class"])], 2));
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./CdrLead.vue2.mjs";
2
+ import o from "./styles/CdrLead.module.scss.mjs";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const r = {
5
+ $style: o
6
+ }, f = /* @__PURE__ */ t(s, [["__cssModules", r]]);
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as u, useCssModule as f, openBlock as s, createElementBlock as d, normalizeClass as a, unref as e, createElementVNode as i, createVNode as r, createCommentVNode as C, renderSlot as S, withCtx as c, createTextVNode as o, toDisplayString as m } from "vue";
2
+ import h from "../image/CdrImg.vue.mjs";
3
+ import p from "./CdrHeadingSubheadingBlock.vue.mjs";
4
+ const l = "cdr-lead", $ = /* @__PURE__ */ u({
5
+ name: "CdrLead",
6
+ __name: "CdrLead",
7
+ props: {
8
+ /** Sets the lead's image source */
9
+ imgSrc: {
10
+ type: String,
11
+ default: void 0
12
+ },
13
+ /** Sets the lead's image alt */
14
+ imgAlt: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ /** Sets the lead's heading */
19
+ heading: {
20
+ type: String,
21
+ default: void 0
22
+ },
23
+ /** Sets the lead's subheading */
24
+ subheading: {
25
+ type: String,
26
+ default: void 0
27
+ }
28
+ },
29
+ setup(n) {
30
+ const t = f();
31
+ return (g, y) => (s(), d("div", {
32
+ class: a(e(t)[l])
33
+ }, [i("div", {
34
+ class: a(e(t)[`${l}__top`])
35
+ }, null, 2), n.imgSrc ? (s(), d("div", {
36
+ key: 0,
37
+ class: a(e(t)[`${l}__image-container`])
38
+ }, [r(e(h), {
39
+ src: n.imgSrc,
40
+ alt: n.imgAlt,
41
+ class: a(e(t)[`${l}__image`])
42
+ }, null, 8, ["src", "alt", "class"])], 2)) : C("", !0), i("div", {
43
+ class: a(e(t)[`${l}__lower`])
44
+ }, [S(g.$slots, "content", {}, () => [r(p, {
45
+ class: a(e(t)[`${l}__copy-block`])
46
+ }, {
47
+ subheading: c(() => [o(m(n.subheading), 1)]),
48
+ default: c(() => [o(m(n.heading) + " ", 1)]),
49
+ _: 1
50
+ }, 8, ["class"])])], 2)], 2));
51
+ }
52
+ });
53
+ export {
54
+ $ as default
55
+ };
@@ -0,0 +1,7 @@
1
+ const a = {
2
+ "cdr-heading-subheading-block__heading": "cdr-heading-subheading-block__heading_15-0-0-alpha-0",
3
+ "cdr-heading-subheading-block__subheading": "cdr-heading-subheading-block__subheading_15-0-0-alpha-0"
4
+ };
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,11 @@
1
+ const a = {
2
+ "cdr-lead": "cdr-lead_15-0-0-alpha-0",
3
+ "cdr-lead__top": "cdr-lead__top_15-0-0-alpha-0",
4
+ "cdr-lead__image-container": "cdr-lead__image-container_15-0-0-alpha-0",
5
+ "cdr-lead__image": "cdr-lead__image_15-0-0-alpha-0",
6
+ "cdr-lead__lower": "cdr-lead__lower_15-0-0-alpha-0",
7
+ "cdr-lead__copy-block": "cdr-lead__copy-block_15-0-0-alpha-0"
8
+ };
9
+ export {
10
+ a as default
11
+ };
@@ -1,8 +1,8 @@
1
- const n = {
2
- "cdr-link": "cdr-link_14-1-1",
3
- "cdr-link--standalone": "cdr-link--standalone_14-1-1",
4
- "cdr-link--inherit-color": "cdr-link--inherit-color_14-1-1"
1
+ const l = {
2
+ "cdr-link": "cdr-link_15-0-0-alpha-0",
3
+ "cdr-link--standalone": "cdr-link--standalone_15-0-0-alpha-0",
4
+ "cdr-link--inherit-color": "cdr-link--inherit-color_15-0-0-alpha-0"
5
5
  };
6
6
  export {
7
- n as default
7
+ l as default
8
8
  };
@@ -1,9 +1,9 @@
1
1
  const d = {
2
- "cdr-list": "cdr-list_14-1-1",
3
- "cdr-list--compact": "cdr-list--compact_14-1-1",
4
- "cdr-list--ordered": "cdr-list--ordered_14-1-1",
5
- "cdr-list--unordered": "cdr-list--unordered_14-1-1",
6
- "cdr-list--inline": "cdr-list--inline_14-1-1"
2
+ "cdr-list": "cdr-list_15-0-0-alpha-0",
3
+ "cdr-list--compact": "cdr-list--compact_15-0-0-alpha-0",
4
+ "cdr-list--ordered": "cdr-list--ordered_15-0-0-alpha-0",
5
+ "cdr-list--unordered": "cdr-list--unordered_15-0-0-alpha-0",
6
+ "cdr-list--inline": "cdr-list--inline_15-0-0-alpha-0"
7
7
  };
8
8
  export {
9
9
  d as default
@@ -1,12 +1,13 @@
1
- import { defineComponent as le, useAttrs as oe, useCssModule as ne, ref as l, computed as v, watch as ae, onMounted as se, onUnmounted as re, openBlock as de, createElementBlock as ce, normalizeClass as r, unref as o, createElementVNode as n, mergeProps as ie, renderSlot as E, normalizeStyle as z, toDisplayString as ue, createCommentVNode as me, createVNode as O, withCtx as fe, nextTick as A } from "vue";
2
- import { debounce as ve } from "../../utils/debounce.mjs";
3
- import R from "tabbable";
4
- import { CdrSpaceTwoX as X, CdrSpaceOneX as pe, CdrBreakpointSm as he } from "../../../node_modules/@rei/cdr-tokens/dist/rei-dot-com/js/cdr-tokens.mjs";
5
- import ye from "./onTransitionEnd.mjs";
6
- import be from "../button/CdrButton.vue.mjs";
7
- import ge from "../icon/comps/x-lg.vue.mjs";
8
- import P from "../../utils/mapClasses.mjs";
9
- const we = ["tabIndex"], xe = ["role", "aria-label"], Ce = ["tabIndex"], Ee = "cdr-modal", We = /* @__PURE__ */ le({
1
+ import "core-js/modules/es.array.push.js";
2
+ import { defineComponent as de, useAttrs as ce, useCssModule as ie, ref as o, computed as h, watch as ue, onMounted as me, onUnmounted as fe, openBlock as ve, createBlock as he, Teleport as pe, createElementVNode as l, normalizeClass as d, unref as n, mergeProps as ye, renderSlot as S, normalizeStyle as O, toDisplayString as be, createCommentVNode as ge, createVNode as P, withCtx as Ce, nextTick as R } from "vue";
3
+ import { debounce as we } from "../../utils/debounce.mjs";
4
+ import V from "tabbable";
5
+ import { CdrSpaceTwoX as X, CdrSpaceOneX as Ee, CdrBreakpointSm as xe } from "../../../node_modules/@rei/cdr-tokens/dist/rei-dot-com/js/cdr-tokens.mjs";
6
+ import Se from "./onTransitionEnd.mjs";
7
+ import _e from "../button/CdrButton.vue.mjs";
8
+ import ke from "../icon/comps/x-lg.vue.mjs";
9
+ import j from "../../utils/mapClasses.mjs";
10
+ const Be = ["tabIndex"], He = ["role", "aria-label"], Le = ["tabIndex"], Ne = "cdr-modal", Oe = /* @__PURE__ */ de({
10
11
  name: "CdrModal",
11
12
  inheritAttrs: !1,
12
13
  __name: "CdrModal",
@@ -75,151 +76,170 @@ const we = ["tabIndex"], xe = ["role", "aria-label"], Ce = ["tabIndex"], Ee = "c
75
76
  closed: null
76
77
  },
77
78
  setup(a, {
78
- emit: V
79
+ emit: F
79
80
  }) {
80
- const i = a, F = oe(), s = ne();
81
+ const u = a, K = F, U = ce(), s = ie();
81
82
  let y, b;
82
- const g = l(!i.opened), w = l(!1), d = l({
83
+ const g = o(!u.opened), C = o(!1), i = o({
83
84
  x: void 0,
84
85
  y: void 0
85
- }), _ = l(0), S = l(0), k = l(0), L = l(0), H = l(0), T = l(0), N = l(!1), u = l(null), p = l(null), m = l(null), B = l(null), x = () => {
86
- A(() => {
87
- var e, t, f, c, h;
88
- S.value = window.innerHeight, N.value = window.innerWidth < +he, _.value = ((e = B.value) == null ? void 0 : e.offsetHeight) || 0, k.value = ((t = m.value) == null ? void 0 : t.scrollHeight) || 0, L.value = ((f = m.value) == null ? void 0 : f.offsetHeight) || 0, H.value = ((c = m.value) == null ? void 0 : c.offsetWidth) || 0, T.value = ((h = m.value) == null ? void 0 : h.clientWidth) || 0;
86
+ }), _ = o(0), k = o(0), B = o(0), H = o(0), L = o(0), N = o(0), T = o(!1), m = o(null), f = o(null), v = o(null), A = o(null), w = () => {
87
+ R(() => {
88
+ var e, t, r, c, p;
89
+ k.value = window.innerHeight, T.value = window.innerWidth < +xe, _.value = ((e = A.value) == null ? void 0 : e.offsetHeight) || 0, B.value = ((t = v.value) == null ? void 0 : t.scrollHeight) || 0, H.value = ((r = v.value) == null ? void 0 : r.offsetHeight) || 0, L.value = ((c = v.value) == null ? void 0 : c.offsetWidth) || 0, N.value = ((p = v.value) == null ? void 0 : p.clientWidth) || 0;
89
90
  });
90
- }, C = (e) => {
91
- V("closed", e);
91
+ }, E = (e) => {
92
+ K("closed", e);
92
93
  }, W = ({
93
94
  key: e
94
95
  }) => {
95
96
  switch (e) {
96
97
  case "Escape":
97
98
  case "Esc":
98
- C();
99
+ E();
99
100
  break;
100
101
  }
101
102
  }, $ = (e) => {
102
- var M;
103
+ var z;
103
104
  const {
104
105
  documentElement: t
105
106
  } = document;
106
- if ((M = u.value) != null && M.contains(e.target) || !t)
107
+ if ((z = m.value) != null && z.contains(e.target) || !t)
107
108
  return;
108
- const f = R(t), c = R(u.value), h = f.indexOf(e.target), te = f.indexOf(c[0]), D = h < te ? c[c.length - 1] : c[0];
109
- D && D.focus();
110
- }, I = ve(() => {
111
- x();
112
- }, 300), K = () => {
109
+ const r = V(t), c = V(m.value), p = r.indexOf(e.target), re = r.indexOf(c[0]), M = p < re ? c[c.length - 1] : c[0];
110
+ M && M.focus();
111
+ }, q = we(() => {
112
+ w();
113
+ }, 300), Y = () => {
113
114
  const {
114
115
  documentElement: e,
115
116
  body: t
116
117
  } = document;
117
- d.value = {
118
+ i.value = {
118
119
  x: window.scrollX || (e || {}).scrollLeft || (t || {}).scrollLeft || 0,
119
120
  y: window.scrollY || (e || {}).scrollTop || (t || {}).scrollTop || 0
120
- }, e && (e.classList.add("cdr-modal__noscroll"), e.style.top = `-${d.value.y}px`, e.style.left = `-${d.value.x}px`), t && t.classList.add("cdr-modal__noscroll");
121
- }, U = () => {
121
+ }, e && (e.classList.add("cdr-modal__noscroll"), e.style.top = `-${i.value.y}px`, e.style.left = `-${i.value.x}px`), t && t.classList.add("cdr-modal__noscroll");
122
+ }, G = () => {
122
123
  const {
123
124
  documentElement: e,
124
125
  body: t
125
126
  } = document;
126
127
  t && t.classList.remove("cdr-modal__noscroll"), e && (e.classList.remove("cdr-modal__noscroll"), e.style.top = "", e.style.left = "");
127
- }, Y = () => {
128
+ }, J = () => {
128
129
  document.addEventListener("focusin", $, !0), document.addEventListener("keydown", W);
129
- }, q = () => {
130
+ }, x = [];
131
+ let D = !1;
132
+ const Q = () => {
133
+ const e = ["body > *", ":not(script)", ":not(style)", ":not([aria-hidden=true])"];
134
+ document.querySelectorAll(e.join("")).forEach((r) => {
135
+ r !== f.value && getComputedStyle(r).getPropertyValue("display") !== "none" && x.push(r);
136
+ }), D = !0;
137
+ }, Z = () => {
138
+ D || Q(), x.forEach((e) => {
139
+ e.setAttribute("aria-hidden", "true");
140
+ });
141
+ }, ee = () => {
142
+ x.forEach((e) => {
143
+ e.removeAttribute("aria-hidden");
144
+ });
145
+ }, I = () => {
146
+ Z();
130
147
  const {
131
148
  activeElement: e
132
149
  } = document;
133
- K(), w.value = !0, g.value = !1, b = e, A(() => {
134
- u.value && u.value.focus(), x(), Y(), setTimeout(() => {
135
- p.value && (p.value.scrollTop = 0), x();
150
+ Y(), C.value = !0, g.value = !1, b = e, R(() => {
151
+ m.value && m.value.focus(), w(), J(), setTimeout(() => {
152
+ f.value && (f.value.scrollTop = 0), w();
136
153
  });
137
154
  });
138
- }, j = () => {
155
+ }, te = () => {
156
+ ee();
139
157
  const {
140
158
  documentElement: e
141
159
  } = document;
142
- document.removeEventListener("keydown", W), document.removeEventListener("focusin", $, !0), w.value = !1, y = ye(p.value, () => {
143
- w.value || (y && y(), U(), g.value = !0, e && (e.style.scrollBehavior = "auto"), d.value.x !== void 0 && d.value.y !== void 0 && window.scrollTo(d.value.x, d.value.y), e && (e.style.scrollBehavior = ""), b && b.focus());
144
- }, i.animationDuration + 16);
145
- }, G = v(() => ({
146
- ...F,
147
- "aria-describedby": i.ariaDescribedby,
148
- id: i.id
149
- })), J = v(() => {
150
- const e = Number(X), t = Number(X) + Number(pe);
151
- return N.value ? e : t + e;
152
- }), Q = v(() => S.value - _.value - J.value), Z = v(() => {
153
- const e = k.value > L.value, t = H.value - T.value > 0;
160
+ document.removeEventListener("keydown", W), document.removeEventListener("focusin", $, !0), C.value = !1, y = Se(f.value, () => {
161
+ C.value || (y && y(), G(), g.value = !0, e && (e.style.scrollBehavior = "auto"), i.value.x !== void 0 && i.value.y !== void 0 && window.scrollTo(i.value.x, i.value.y), e && (e.style.scrollBehavior = ""), b && b.focus());
162
+ }, u.animationDuration + 16);
163
+ }, oe = h(() => ({
164
+ ...U,
165
+ "aria-describedby": u.ariaDescribedby,
166
+ id: u.id
167
+ })), le = h(() => {
168
+ const e = Number(X), t = Number(X) + Number(Ee);
169
+ return T.value ? e : t + e;
170
+ }), ne = h(() => k.value - _.value - le.value), ae = h(() => {
171
+ const e = B.value > H.value, t = L.value - N.value > 0;
154
172
  return e && t ? 4 : e ? 12 : 0;
155
- }), ee = v(() => ({
156
- maxHeight: `${Q.value}px`,
157
- paddingRight: `${Z.value}px`
173
+ }), se = h(() => ({
174
+ maxHeight: `${ne.value}px`,
175
+ paddingRight: `${ae.value}px`
158
176
  }));
159
- return ae(() => i.opened, (e, t) => {
160
- !!e != !!t && (e ? q() : j());
161
- }), se(() => {
162
- i.opened && q(), window.addEventListener("resize", I);
163
- }), re(() => {
164
- window.removeEventListener("resize", I);
165
- }), (e, t) => (de(), ce("div", {
166
- class: r(o(P)(o(s), Ee, a.opened ? "" : "cdr-modal--closed")),
177
+ return ue(() => u.opened, (e, t) => {
178
+ !!e != !!t && (e ? I() : te());
179
+ }), me(() => {
180
+ u.opened && I(), window.addEventListener("resize", q);
181
+ }), fe(() => {
182
+ window.removeEventListener("resize", q);
183
+ }), (e, t) => (ve(), he(pe, {
184
+ to: "body"
185
+ }, [l("div", {
186
+ class: d(n(j)(n(s), Ne, a.opened ? "" : "cdr-modal--closed")),
167
187
  ref_key: "wrapperEl",
168
- ref: p
169
- }, [n("div", {
170
- class: r([o(s)["cdr-modal__outerWrap"], a.wrapperClass])
171
- }, [n("div", {
188
+ ref: f
189
+ }, [l("div", {
190
+ class: d([n(s)["cdr-modal__outerWrap"], a.wrapperClass])
191
+ }, [l("div", {
172
192
  "aria-hidden": "true",
173
- onClick: C,
174
- class: r([o(s)["cdr-modal__overlay"], a.overlayClass])
175
- }, null, 2), n("div", {
193
+ onClick: E,
194
+ class: d([n(s)["cdr-modal__overlay"], a.overlayClass])
195
+ }, null, 2), l("div", {
176
196
  tabIndex: a.opened ? "0" : void 0
177
- }, null, 8, we), n("div", ie({
197
+ }, null, 8, Be), l("div", ye({
178
198
  ref_key: "modalEl",
179
- ref: u,
180
- class: o(P)(o(s), "cdr-modal__contentWrap", "cdr-modal__dialog"),
199
+ ref: m,
200
+ class: n(j)(n(s), "cdr-modal__contentWrap", "cdr-modal__dialog"),
181
201
  tabIndex: "-1",
182
202
  role: a.role,
183
203
  "aria-modal": "true",
184
204
  "aria-label": a.label
185
- }, G.value), [E(e.$slots, "modal", {}, () => [n("div", {
186
- class: r([o(s)["cdr-modal__innerWrap"], a.contentClass]),
187
- style: z(g.value ? {
205
+ }, oe.value), [S(e.$slots, "modal", {}, () => [l("div", {
206
+ class: d([n(s)["cdr-modal__innerWrap"], a.contentClass]),
207
+ style: O(g.value ? {
188
208
  display: "none"
189
209
  } : void 0)
190
- }, [n("section", null, [n("div", {
191
- class: r(o(s)["cdr-modal__content"])
192
- }, [n("div", {
193
- class: r(o(s)["cdr-modal__header"]),
210
+ }, [l("section", null, [l("div", {
211
+ class: d(n(s)["cdr-modal__content"])
212
+ }, [l("div", {
213
+ class: d(n(s)["cdr-modal__header"]),
194
214
  ref_key: "headerEl",
195
- ref: B
196
- }, [n("div", {
197
- class: r(o(s)["cdr-modal__title"])
198
- }, [a.showTitle ? E(e.$slots, "title", {
215
+ ref: A
216
+ }, [l("div", {
217
+ class: d(n(s)["cdr-modal__title"])
218
+ }, [a.showTitle ? S(e.$slots, "title", {
199
219
  key: 0
200
- }, () => [n("h1", null, ue(a.label), 1)]) : me("", !0)], 2), O(be, {
201
- class: r(o(s)["cdr-modal__close-button"]),
220
+ }, () => [l("h1", null, be(a.label), 1)]) : ge("", !0)], 2), P(_e, {
221
+ class: d(n(s)["cdr-modal__close-button"]),
202
222
  "icon-only": "",
203
223
  "with-background": !0,
204
- onClick: C,
224
+ onClick: E,
205
225
  "aria-label": "Close"
206
226
  }, {
207
- icon: fe(() => [O(ge, {
227
+ icon: Ce(() => [P(ke, {
208
228
  "inherit-color": ""
209
229
  })]),
210
230
  _: 1
211
- }, 8, ["class"])], 2), n("div", {
212
- class: r(o(s)["cdr-modal__text-content"]),
213
- style: z(ee.value),
231
+ }, 8, ["class"])], 2), l("div", {
232
+ class: d(n(s)["cdr-modal__text-content"]),
233
+ style: O(se.value),
214
234
  role: "document",
215
235
  ref_key: "contentEl",
216
- ref: m,
236
+ ref: v,
217
237
  tabindex: "0"
218
- }, [E(e.$slots, "default")], 6)], 2)])], 6)])], 16, xe), n("div", {
238
+ }, [S(e.$slots, "default")], 6)], 2)])], 6)])], 16, He), l("div", {
219
239
  tabIndex: a.opened ? "0" : void 0
220
- }, null, 8, Ce)], 2)], 2));
240
+ }, null, 8, Le)], 2)], 2)]));
221
241
  }
222
242
  });
223
243
  export {
224
- We as default
244
+ Oe as default
225
245
  };
@@ -1,17 +1,17 @@
1
- const d = {
2
- "cdr-modal": "cdr-modal_14-1-1",
3
- "cdr-modal__overlay": "cdr-modal__overlay_14-1-1",
4
- "cdr-modal__outerWrap": "cdr-modal__outerWrap_14-1-1",
5
- "cdr-modal__contentWrap": "cdr-modal__contentWrap_14-1-1",
6
- "cdr-modal__innerWrap": "cdr-modal__innerWrap_14-1-1",
7
- "cdr-modal__dialog": "cdr-modal__dialog_14-1-1",
8
- "cdr-modal__content": "cdr-modal__content_14-1-1",
9
- "cdr-modal__header": "cdr-modal__header_14-1-1",
10
- "cdr-modal__title": "cdr-modal__title_14-1-1",
11
- "cdr-modal__close-button": "cdr-modal__close-button_14-1-1",
12
- "cdr-modal__text-content": "cdr-modal__text-content_14-1-1",
13
- "cdr-modal--closed": "cdr-modal--closed_14-1-1"
1
+ const a = {
2
+ "cdr-modal": "cdr-modal_15-0-0-alpha-0",
3
+ "cdr-modal__overlay": "cdr-modal__overlay_15-0-0-alpha-0",
4
+ "cdr-modal__outerWrap": "cdr-modal__outerWrap_15-0-0-alpha-0",
5
+ "cdr-modal__contentWrap": "cdr-modal__contentWrap_15-0-0-alpha-0",
6
+ "cdr-modal__innerWrap": "cdr-modal__innerWrap_15-0-0-alpha-0",
7
+ "cdr-modal__dialog": "cdr-modal__dialog_15-0-0-alpha-0",
8
+ "cdr-modal__content": "cdr-modal__content_15-0-0-alpha-0",
9
+ "cdr-modal__header": "cdr-modal__header_15-0-0-alpha-0",
10
+ "cdr-modal__title": "cdr-modal__title_15-0-0-alpha-0",
11
+ "cdr-modal__close-button": "cdr-modal__close-button_15-0-0-alpha-0",
12
+ "cdr-modal__text-content": "cdr-modal__text-content_15-0-0-alpha-0",
13
+ "cdr-modal--closed": "cdr-modal--closed_15-0-0-alpha-0"
14
14
  };
15
15
  export {
16
- d as default
16
+ a as default
17
17
  };