@rei/cedar 14.1.0 → 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 (167) hide show
  1. package/README.md +3 -0
  2. package/dist/cedar.umd.js +14 -14
  3. package/dist/component-docgen.json +2159 -1694
  4. package/dist/icon-component-docgen.json +632 -632
  5. package/dist/lib.d.ts +788 -412
  6. package/dist/node_modules/@rei/cdr-tokens/dist/rei-dot-com/js/cdr-tokens.mjs +10 -7
  7. package/dist/reset.css +0 -5
  8. package/dist/src/components/abstract/CdrAbstract.vue.mjs +9 -0
  9. package/dist/src/components/abstract/CdrAbstract.vue2.mjs +24 -0
  10. package/dist/src/components/abstract/styles/CdrAbstract.module.scss.mjs +6 -0
  11. package/dist/src/components/accordion/CdrAccordion.vue2.mjs +29 -29
  12. package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +29 -29
  13. package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +2 -2
  14. package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +14 -14
  15. package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +7 -7
  16. package/dist/src/components/button/styles/CdrButton.module.scss.mjs +31 -31
  17. package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +4 -4
  18. package/dist/src/components/card/styles/CdrCard.module.scss.mjs +3 -3
  19. package/dist/src/components/checkbox/CdrCheckbox.vue2.mjs +21 -21
  20. package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +29 -29
  21. package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +4 -4
  22. package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +6 -6
  23. package/dist/src/components/choreographer/CdrChoreographer.vue.mjs +9 -0
  24. package/dist/src/components/choreographer/CdrChoreographer.vue2.mjs +48 -0
  25. package/dist/src/components/choreographer/styles/CdrChoreographer.module.scss.mjs +9 -0
  26. package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +4 -4
  27. package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +2 -2
  28. package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +8 -8
  29. package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +21 -21
  30. package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +12 -12
  31. package/dist/src/components/image/CdrImg.vue2.mjs +32 -96
  32. package/dist/src/components/image/styles/CdrImg.module.scss.mjs +3 -10
  33. package/dist/src/components/input/CdrInput.vue2.mjs +29 -29
  34. package/dist/src/components/input/styles/CdrInput.module.scss.mjs +34 -34
  35. package/dist/src/components/kicker/CdrKicker.vue.mjs +9 -0
  36. package/dist/src/components/kicker/CdrKicker.vue2.mjs +14 -0
  37. package/dist/src/components/kicker/styles/CdrKicker.module.scss.mjs +6 -0
  38. package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +14 -14
  39. package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +27 -27
  40. package/dist/src/components/lead/CdrHeadingSubheadingBlock.vue.mjs +9 -0
  41. package/dist/src/components/lead/CdrHeadingSubheadingBlock.vue2.mjs +33 -0
  42. package/dist/src/components/lead/CdrLead.vue.mjs +9 -0
  43. package/dist/src/components/lead/CdrLead.vue2.mjs +55 -0
  44. package/dist/src/components/lead/styles/CdrHeadingSubheadingBlock.module.scss.mjs +7 -0
  45. package/dist/src/components/lead/styles/CdrLead.module.scss.mjs +11 -0
  46. package/dist/src/components/link/styles/CdrLink.module.scss.mjs +5 -5
  47. package/dist/src/components/list/styles/CdrList.module.scss.mjs +5 -5
  48. package/dist/src/components/modal/CdrModal.vue2.mjs +112 -92
  49. package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +14 -14
  50. package/dist/src/components/pagination/CdrPagination.vue2.mjs +79 -79
  51. package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +55 -55
  52. package/dist/src/components/picture/CdrPicture.vue.mjs +9 -0
  53. package/dist/src/components/picture/CdrPicture.vue2.mjs +42 -0
  54. package/dist/src/components/picture/styles/CdrPicture.module.scss.mjs +6 -0
  55. package/dist/src/components/popover/CdrPopover.vue2.mjs +38 -38
  56. package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +63 -63
  57. package/dist/src/components/popup/CdrPopup.vue2.mjs +28 -28
  58. package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +14 -14
  59. package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +4 -4
  60. package/dist/src/components/radio/CdrRadio.vue2.mjs +23 -23
  61. package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +29 -29
  62. package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +46 -46
  63. package/dist/src/components/select/CdrSelect.vue2.mjs +30 -30
  64. package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +42 -42
  65. package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +1 -1
  66. package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +7 -7
  67. package/dist/src/components/switch/CdrSwitch.vue2.mjs +25 -25
  68. package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +8 -8
  69. package/dist/src/components/table/styles/CdrTable.module.scss.mjs +13 -13
  70. package/dist/src/components/tabs/CdrTabPanel.vue2.mjs +12 -12
  71. package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +7 -7
  72. package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +30 -30
  73. package/dist/src/components/text/presets/CdrBody.vue.mjs +9 -0
  74. package/dist/src/components/text/presets/CdrBody.vue2.mjs +39 -0
  75. package/dist/src/components/text/presets/CdrBody.vue3.mjs +6 -0
  76. package/dist/src/components/text/presets/CdrEyebrow.vue.mjs +9 -0
  77. package/dist/src/components/text/presets/CdrEyebrow.vue2.mjs +18 -0
  78. package/dist/src/components/text/presets/CdrEyebrow.vue3.mjs +6 -0
  79. package/dist/src/components/text/presets/CdrHeadingDisplay.vue.mjs +9 -0
  80. package/dist/src/components/text/presets/CdrHeadingDisplay.vue2.mjs +33 -0
  81. package/dist/src/components/text/presets/CdrHeadingDisplay.vue3.mjs +6 -0
  82. package/dist/src/components/text/presets/CdrHeadingSans.vue.mjs +9 -0
  83. package/dist/src/components/text/presets/CdrHeadingSans.vue2.mjs +33 -0
  84. package/dist/src/components/text/presets/CdrHeadingSans.vue3.mjs +6 -0
  85. package/dist/src/components/text/presets/CdrHeadingSerif.vue.mjs +9 -0
  86. package/dist/src/components/text/presets/CdrHeadingSerif.vue2.mjs +39 -0
  87. package/dist/src/components/text/presets/CdrHeadingSerif.vue3.mjs +6 -0
  88. package/dist/src/components/text/presets/CdrSubheadingSans.vue.mjs +9 -0
  89. package/dist/src/components/text/presets/CdrSubheadingSans.vue2.mjs +33 -0
  90. package/dist/src/components/text/presets/CdrSubheadingSans.vue3.mjs +6 -0
  91. package/dist/src/components/text/presets/CdrUtilitySans.vue.mjs +9 -0
  92. package/dist/src/components/text/presets/CdrUtilitySans.vue2.mjs +39 -0
  93. package/dist/src/components/text/presets/CdrUtilitySans.vue3.mjs +6 -0
  94. package/dist/src/components/text/presets/CdrUtilitySerif.vue.mjs +9 -0
  95. package/dist/src/components/text/presets/CdrUtilitySerif.vue2.mjs +39 -0
  96. package/dist/src/components/text/presets/CdrUtilitySerif.vue3.mjs +6 -0
  97. package/dist/src/components/text/styles/CdrText.module.scss.mjs +1 -1
  98. package/dist/src/components/title/CdrTitle.vue.mjs +9 -0
  99. package/dist/src/components/title/CdrTitle.vue2.mjs +23 -0
  100. package/dist/src/components/title/styles/CdrTitle.module.scss.mjs +6 -0
  101. package/dist/src/components/toast/CdrToast.vue2.mjs +21 -21
  102. package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +57 -57
  103. package/dist/src/components/toggleButton/CdrToggleGroup.vue2.mjs +27 -27
  104. package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +2 -2
  105. package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +5 -5
  106. package/dist/src/components/tooltip/CdrTooltip.vue2.mjs +25 -25
  107. package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +16 -16
  108. package/dist/src/lib.mjs +468 -440
  109. package/dist/style/cdr-abstract.css +1 -0
  110. package/dist/style/cdr-accordion-group.css +1 -1
  111. package/dist/style/cdr-accordion.css +1 -1
  112. package/dist/style/cdr-banner.css +1 -1
  113. package/dist/style/cdr-body.css +1 -0
  114. package/dist/style/cdr-breadcrumb.css +1 -1
  115. package/dist/style/cdr-button.css +1 -1
  116. package/dist/style/cdr-caption.css +1 -1
  117. package/dist/style/cdr-card.css +1 -1
  118. package/dist/style/cdr-checkbox.css +1 -1
  119. package/dist/style/cdr-chip-group.css +1 -1
  120. package/dist/style/cdr-chip.css +1 -1
  121. package/dist/style/cdr-choreographer.css +1 -0
  122. package/dist/style/cdr-container.css +1 -1
  123. package/dist/style/cdr-eyebrow.css +1 -0
  124. package/dist/style/cdr-form-error.css +1 -1
  125. package/dist/style/cdr-form-group.css +1 -1
  126. package/dist/style/cdr-grid.css +1 -1
  127. package/dist/style/cdr-heading-display.css +1 -0
  128. package/dist/style/cdr-heading-sans.css +1 -0
  129. package/dist/style/cdr-heading-serif.css +1 -0
  130. package/dist/style/cdr-heading-subheading-block.css +1 -0
  131. package/dist/style/cdr-icon.css +1 -1
  132. package/dist/style/cdr-img.css +1 -1
  133. package/dist/style/cdr-input.css +1 -1
  134. package/dist/style/cdr-kicker.css +1 -0
  135. package/dist/style/cdr-label-standalone.css +1 -1
  136. package/dist/style/cdr-label-wrapper.css +1 -1
  137. package/dist/style/cdr-lead.css +1 -0
  138. package/dist/style/cdr-link.css +1 -1
  139. package/dist/style/cdr-list.css +1 -1
  140. package/dist/style/cdr-modal.css +1 -1
  141. package/dist/style/cdr-pagination.css +1 -1
  142. package/dist/style/cdr-picture.css +1 -0
  143. package/dist/style/cdr-popover.css +1 -1
  144. package/dist/style/cdr-popup.css +1 -1
  145. package/dist/style/cdr-quote.css +1 -1
  146. package/dist/style/cdr-radio.css +1 -1
  147. package/dist/style/cdr-rating.css +1 -1
  148. package/dist/style/cdr-select.css +1 -1
  149. package/dist/style/cdr-skeleton-bone.css +1 -1
  150. package/dist/style/cdr-skeleton.css +1 -1
  151. package/dist/style/cdr-subheading-sans.css +1 -0
  152. package/dist/style/cdr-switch.css +1 -1
  153. package/dist/style/cdr-tab-panel.css +1 -1
  154. package/dist/style/cdr-table.css +1 -1
  155. package/dist/style/cdr-tabs.css +1 -1
  156. package/dist/style/cdr-text.css +1 -1
  157. package/dist/style/cdr-title.css +1 -0
  158. package/dist/style/cdr-toast.css +1 -1
  159. package/dist/style/cdr-toggle-button.css +1 -1
  160. package/dist/style/cdr-toggle-group.css +1 -1
  161. package/dist/style/cdr-tooltip.css +1 -1
  162. package/dist/style/cdr-utility-sans.css +1 -0
  163. package/dist/style/cdr-utility-serif.css +1 -0
  164. package/dist/style.css +1 -1
  165. package/package.json +7 -12
  166. package/dist/cedar-compiled.css +0 -2332
  167. package/dist/style/cedar-full.css +0 -41
@@ -1,23 +1,23 @@
1
1
  import "core-js/modules/es.array.push.js";
2
2
  import "core-js/modules/es.array.unshift.js";
3
- import { defineComponent as H, useCssModule as z, ref as O, computed as f, onMounted as A, watch as F, openBlock as u, createElementBlock as p, createElementVNode as y, normalizeClass as g, unref as r, createBlock as D, resolveDynamicComponent as L, withCtx as b, createVNode as v, createTextVNode as m, Fragment as S, renderList as I, toDisplayString as M, withModifiers as R, nextTick as W } from "vue";
3
+ import { defineComponent as z, useCssModule as A, ref as S, computed as f, onMounted as F, watch as R, openBlock as u, createElementBlock as c, createElementVNode as y, normalizeClass as g, unref as i, createBlock as $, resolveDynamicComponent as D, withCtx as b, createVNode as v, createTextVNode as m, Fragment as I, renderList as B, toDisplayString as L, withModifiers as W, nextTick as J } from "vue";
4
4
  import k from "../../utils/mapClasses.mjs";
5
- import J from "../../utils/propValidator.mjs";
6
- import B from "../icon/comps/caret-left.vue.mjs";
7
- import G from "../icon/comps/caret-right.vue.mjs";
8
- import K from "../select/CdrSelect.vue.mjs";
9
- import Q from "../../utils/uid.mjs";
10
- const X = ["aria-label"], Y = {
5
+ import K from "../../utils/propValidator.mjs";
6
+ import G from "../icon/comps/caret-left.vue.mjs";
7
+ import U from "../icon/comps/caret-right.vue.mjs";
8
+ import Q from "../select/CdrSelect.vue.mjs";
9
+ import X from "../../utils/uid.mjs";
10
+ const Y = ["aria-label"], Z = {
11
11
  key: 0
12
- }, Z = {
12
+ }, j = {
13
13
  key: 1,
14
14
  "aria-hidden": "true"
15
- }, j = ["value"], ee = {
15
+ }, ee = ["value"], ae = {
16
16
  key: 2
17
- }, ae = {
17
+ }, te = {
18
18
  key: 3,
19
19
  "aria-hidden": "true"
20
- }, pe = /* @__PURE__ */ H({
20
+ }, pe = /* @__PURE__ */ z({
21
21
  name: "CdrPagination",
22
22
  __name: "CdrPagination",
23
23
  props: {
@@ -53,7 +53,7 @@ const X = ["aria-label"], Y = {
53
53
  linkTag: {
54
54
  type: String,
55
55
  default: "a",
56
- validator: (n) => J(n, ["a", "button"])
56
+ validator: (n) => K(n, ["a", "button"])
57
57
  },
58
58
  /**
59
59
  * Used to customize the aria-label for the root pagination element.
@@ -86,23 +86,23 @@ const X = ["aria-label"], Y = {
86
86
  navigate: null
87
87
  },
88
88
  setup(n, {
89
- emit: x
89
+ emit: M
90
90
  }) {
91
- const t = n, s = z(), _ = O(0), N = O([]), h = t.id ? t.id : Q(), C = (i) => {
92
- _.value = t.pages.map((a) => a.page).indexOf(i);
91
+ const t = n, N = M, s = A(), _ = S(0), w = S([]), h = t.id ? t.id : X(), x = (r) => {
92
+ _.value = t.pages.map((a) => a.page).indexOf(r);
93
93
  }, o = f({
94
94
  get: () => t.modelValue,
95
- set: (i) => {
96
- C(i), x("update:modelValue", i);
95
+ set: (r) => {
96
+ x(r), N("update:modelValue", r);
97
97
  }
98
- }), U = f(() => t.pages[_.value].url), P = (i, a) => {
99
- var l, c;
100
- const e = ((l = a.target) == null ? void 0 : l.offsetWidth) > 0 && ((c = a.target) == null ? void 0 : c.offsetHeight) > 0;
101
- if (i === o.value && e) {
98
+ }), q = f(() => t.pages[_.value].url), C = (r, a) => {
99
+ var l, p;
100
+ const e = ((l = a.target) == null ? void 0 : l.offsetWidth) > 0 && ((p = a.target) == null ? void 0 : p.offsetHeight) > 0;
101
+ if (r === o.value && e) {
102
102
  a.preventDefault();
103
103
  return;
104
104
  }
105
- o.value = i, x("navigate", i, U.value, a), W(() => {
105
+ o.value = r, N("navigate", r, q.value, a), J(() => {
106
106
  try {
107
107
  const d = a.currentTarget || a.target;
108
108
  d == null || d.blur();
@@ -110,112 +110,112 @@ const X = ["aria-label"], Y = {
110
110
  console.error(d);
111
111
  }
112
112
  });
113
- }, q = (i) => {
114
- const a = N.value.find((e) => {
113
+ }, E = (r) => {
114
+ const a = w.value.find((e) => {
115
115
  var l;
116
- return (e == null ? void 0 : e.innerHTML) === ((l = i.target) == null ? void 0 : l.value);
116
+ return (e == null ? void 0 : e.innerHTML) === ((l = r.target) == null ? void 0 : l.value);
117
117
  });
118
118
  a && a.click();
119
- }, E = f(() => t.forLabel || "Pagination"), T = f(() => t.pages[_.value - 1]), V = f(() => t.pages[_.value + 1]), w = f(() => {
120
- const i = t.pages.length, a = o.value, e = 1;
121
- let l = [], c = !0, d = !0;
122
- if (i <= 7)
119
+ }, H = f(() => t.forLabel || "Pagination"), P = f(() => t.pages[_.value - 1]), T = f(() => t.pages[_.value + 1]), O = f(() => {
120
+ const r = t.pages.length, a = o.value, e = 1;
121
+ let l = [], p = !0, d = !0;
122
+ if (r <= 7)
123
123
  return t.pages;
124
124
  if (a) {
125
125
  if (a < 5)
126
- c = !1, l = t.pages.slice(1, 5);
127
- else if (i - a < 4)
126
+ p = !1, l = t.pages.slice(1, 5);
127
+ else if (r - a < 4)
128
128
  d = !1, l = t.pages.slice(-5, -1);
129
129
  else
130
- for (let $ = Math.max(2, a - e); $ <= Math.min(i - 1, a + e); $ += 1)
131
- l.push(t.pages[$ - 1]);
132
- return a - e > 2 && c && l.unshift({
130
+ for (let V = Math.max(2, a - e); V <= Math.min(r - 1, a + e); V += 1)
131
+ l.push(t.pages[V - 1]);
132
+ return a - e > 2 && p && l.unshift({
133
133
  page: 0,
134
134
  url: "",
135
135
  ellip: !0
136
- }), a + e < i - 1 && d && l.push({
136
+ }), a + e < r - 1 && d && l.push({
137
137
  page: 0,
138
138
  url: "",
139
139
  ellip: !0
140
- }), l.unshift(t.pages[0]), l.push(t.pages[i - 1]), l;
140
+ }), l.unshift(t.pages[0]), l.push(t.pages[r - 1]), l;
141
141
  }
142
142
  });
143
- return A(() => C(o.value)), F(() => t.pages, () => C(o.value)), (i, a) => (u(), p("nav", {
144
- "aria-label": E.value
143
+ return F(() => x(o.value)), R(() => t.pages, () => x(o.value)), (r, a) => (u(), c("nav", {
144
+ "aria-label": H.value
145
145
  }, [y("ol", {
146
- class: g(r(s)["cdr-pagination"])
147
- }, [o.value && o.value > n.pages[0].page ? (u(), p("li", Y, [(u(), D(L(n.linkTag), {
146
+ class: g(i(s)["cdr-pagination"])
147
+ }, [o.value && o.value > n.pages[0].page ? (u(), c("li", Z, [(u(), $(D(n.linkTag), {
148
148
  "aria-label": "Go to previous page",
149
- href: n.linkTag === "a" && T.value && T.value.url || void 0,
150
- class: g(r(k)(r(s), "cdr-pagination__link", "cdr-pagination__prev")),
151
- onClick: a[0] || (a[0] = (e) => P(T.value.page, e))
149
+ href: n.linkTag === "a" && P.value && P.value.url || void 0,
150
+ class: g(i(k)(i(s), "cdr-pagination__link", "cdr-pagination__prev")),
151
+ onClick: a[0] || (a[0] = (e) => C(P.value.page, e))
152
152
  }, {
153
- default: b(() => [v(B, {
154
- class: g(r(s)["cdr-pagination_caret--prev"])
153
+ default: b(() => [v(G, {
154
+ class: g(i(s)["cdr-pagination_caret--prev"])
155
155
  }, null, 8, ["class"]), m(" Prev ")]),
156
156
  _: 1
157
- }, 8, ["href", "class"]))])) : (u(), p("li", Z, [y("span", {
157
+ }, 8, ["href", "class"]))])) : (u(), c("li", j, [y("span", {
158
158
  "aria-disabled": "true",
159
- class: g(r(k)(r(s), "cdr-pagination__link", "cdr-pagination__prev", "cdr-pagination__link--disabled"))
160
- }, [v(B, {
161
- class: g(r(s)["cdr-pagination_caret--prev"]),
159
+ class: g(i(k)(i(s), "cdr-pagination__link", "cdr-pagination__prev", "cdr-pagination__link--disabled"))
160
+ }, [v(G, {
161
+ class: g(i(s)["cdr-pagination_caret--prev"]),
162
162
  "inherit-color": ""
163
- }, null, 8, ["class"]), m(" Prev ")], 2)])), (u(!0), p(S, null, I(w.value, (e, l) => (u(), p("li", {
164
- key: `pagination-${r(h)}-li-${e.page}`,
165
- class: g(r(s)["cdr-pagination__li--links"])
166
- }, [e.ellip ? (u(), p("span", {
163
+ }, null, 8, ["class"]), m(" Prev ")], 2)])), (u(!0), c(I, null, B(O.value, (e, l) => (u(), c("li", {
164
+ key: `pagination-${i(h)}-li-${e.page}`,
165
+ class: g(i(s)["cdr-pagination__li--links"])
166
+ }, [e.ellip ? (u(), c("span", {
167
167
  key: 1,
168
- class: g(r(s)["cdr-pagination__ellipse"])
169
- }, " … ", 2)) : (u(), D(L(n.linkTag), {
168
+ class: g(i(s)["cdr-pagination__ellipse"])
169
+ }, " … ", 2)) : (u(), $(D(n.linkTag), {
170
170
  key: 0,
171
- id: `pagination-${r(h)}-link-${e.page}`,
172
- class: g(r(k)(r(s), "cdr-pagination__link", e.page === o.value ? "cdr-pagination__link--current" : "")),
171
+ id: `pagination-${i(h)}-link-${e.page}`,
172
+ class: g(i(k)(i(s), "cdr-pagination__link", e.page === o.value ? "cdr-pagination__link--current" : "")),
173
173
  "aria-label": e.page === o.value ? `Current page, page ${e.page}` : `Go to page ${e.page}`,
174
174
  "aria-current": e.page === o.value ? "page" : null,
175
175
  href: n.linkTag === "a" && e.url || void 0,
176
176
  ref_for: !0,
177
- ref: (c) => {
178
- N.value[l] = c;
177
+ ref: (p) => {
178
+ w.value[l] = p;
179
179
  },
180
- onClick: (c) => P(e.page, c)
180
+ onClick: (p) => C(e.page, p)
181
181
  }, {
182
- default: b(() => [m(M(e.page), 1)]),
182
+ default: b(() => [m(L(e.page), 1)]),
183
183
  _: 2
184
184
  }, 1032, ["id", "class", "aria-label", "aria-current", "href", "onClick"]))], 2))), 128)), y("li", {
185
- class: g(r(s)["cdr-pagination__li--select"])
186
- }, [v(K, {
187
- id: `pagination-select-${r(h)}`,
185
+ class: g(i(s)["cdr-pagination__li--select"])
186
+ }, [v(Q, {
187
+ id: `pagination-select-${i(h)}`,
188
188
  modelValue: o.value,
189
189
  "onUpdate:modelValue": a[1] || (a[1] = (e) => o.value = e),
190
190
  label: "Navigate to page",
191
191
  "hide-label": "",
192
- onChange: a[2] || (a[2] = R((e) => q(e), ["prevent"]))
192
+ onChange: a[2] || (a[2] = W((e) => E(e), ["prevent"]))
193
193
  }, {
194
194
  default: b(() => {
195
195
  var e;
196
- return [(u(!0), p(S, null, I((e = w.value) == null ? void 0 : e.filter((l) => l.page), (l) => (u(), p("option", {
197
- key: `pagination-${r(h)}-select-${l.page}`,
196
+ return [(u(!0), c(I, null, B((e = O.value) == null ? void 0 : e.filter((l) => l.page), (l) => (u(), c("option", {
197
+ key: `pagination-${i(h)}-select-${l.page}`,
198
198
  value: l.page
199
- }, " Page " + M(l.page) + M(n.totalPages === null ? "" : ` of ${n.totalPages}`), 9, j))), 128))];
199
+ }, " Page " + L(l.page) + L(n.totalPages === null ? "" : ` of ${n.totalPages}`), 9, ee))), 128))];
200
200
  }),
201
201
  _: 1
202
- }, 8, ["id", "modelValue"])], 2), o.value && o.value < n.pages[n.pages.length - 1].page ? (u(), p("li", ee, [(u(), D(L(n.linkTag), {
202
+ }, 8, ["id", "modelValue"])], 2), o.value && o.value < n.pages[n.pages.length - 1].page ? (u(), c("li", ae, [(u(), $(D(n.linkTag), {
203
203
  "aria-label": "Go to next page",
204
- href: n.linkTag === "a" && V.value && V.value.url || void 0,
205
- class: g(r(k)(r(s), "cdr-pagination__link", "cdr-pagination__next")),
206
- onClick: a[3] || (a[3] = (e) => P(V.value.page, e))
204
+ href: n.linkTag === "a" && T.value && T.value.url || void 0,
205
+ class: g(i(k)(i(s), "cdr-pagination__link", "cdr-pagination__next")),
206
+ onClick: a[3] || (a[3] = (e) => C(T.value.page, e))
207
207
  }, {
208
- default: b(() => [m(" Next "), v(G, {
209
- class: g(r(s)["cdr-pagination_caret--next"])
208
+ default: b(() => [m(" Next "), v(U, {
209
+ class: g(i(s)["cdr-pagination_caret--next"])
210
210
  }, null, 8, ["class"])]),
211
211
  _: 1
212
- }, 8, ["href", "class"]))])) : (u(), p("li", ae, [y("span", {
212
+ }, 8, ["href", "class"]))])) : (u(), c("li", te, [y("span", {
213
213
  "aria-disabled": "true",
214
- class: g(r(k)(r(s), "cdr-pagination__link", "cdr-pagination__next", "cdr-pagination__link--disabled"))
215
- }, [m(" Next "), v(G, {
216
- class: g(r(s)["cdr-pagination_caret--next"]),
214
+ class: g(i(k)(i(s), "cdr-pagination__link", "cdr-pagination__next", "cdr-pagination__link--disabled"))
215
+ }, [m(" Next "), v(U, {
216
+ class: g(i(s)["cdr-pagination_caret--next"]),
217
217
  "inherit-color": ""
218
- }, null, 8, ["class"])], 2)]))], 2)], 8, X));
218
+ }, null, 8, ["class"])], 2)]))], 2)], 8, Y));
219
219
  }
220
220
  });
221
221
  export {
@@ -1,58 +1,58 @@
1
- const l = {
2
- "cdr-icon": "cdr-icon_14-1-0",
3
- "cdr-icon--small": "cdr-icon--small_14-1-0",
4
- "cdr-icon--large": "cdr-icon--large_14-1-0",
5
- "cdr-icon--small@xs": "cdr-icon--small@xs_14-1-0",
6
- "cdr-icon--large@xs": "cdr-icon--large@xs_14-1-0",
7
- "cdr-icon--small@sm": "cdr-icon--small@sm_14-1-0",
8
- "cdr-icon--large@sm": "cdr-icon--large@sm_14-1-0",
9
- "cdr-icon--small@md": "cdr-icon--small@md_14-1-0",
10
- "cdr-icon--large@md": "cdr-icon--large@md_14-1-0",
11
- "cdr-icon--small@lg": "cdr-icon--small@lg_14-1-0",
12
- "cdr-icon--large@lg": "cdr-icon--large@lg_14-1-0",
13
- "cdr-icon--inherit-color": "cdr-icon--inherit-color_14-1-0",
14
- "cdr-label-standalone": "cdr-label-standalone_14-1-0",
15
- "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_14-1-0",
16
- "cdr-label-standalone__label": "cdr-label-standalone__label_14-1-0",
17
- "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_14-1-0",
18
- "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_14-1-0",
19
- "cdr-label-standalone__optional": "cdr-label-standalone__optional_14-1-0",
20
- "cdr-label-standalone__helper": "cdr-label-standalone__helper_14-1-0",
21
- "cdr-label-standalone__info": "cdr-label-standalone__info_14-1-0",
22
- "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_14-1-0",
23
- "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_14-1-0",
24
- "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_14-1-0",
25
- "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_14-1-0",
26
- "cdr-form-error": "cdr-form-error_14-1-0",
27
- "cdr-form-error__icon": "cdr-form-error__icon_14-1-0",
28
- "cdr-select": "cdr-select_14-1-0",
29
- "cdr-select--primary": "cdr-select--primary_14-1-0",
30
- "cdr-select--secondary": "cdr-select--secondary_14-1-0",
31
- "cdr-select--error": "cdr-select--error_14-1-0",
32
- "cdr-select--preicon": "cdr-select--preicon_14-1-0",
33
- "cdr-select__prompt": "cdr-select__prompt_14-1-0",
34
- "cdr-select__caret": "cdr-select__caret_14-1-0",
35
- "cdr-select__caret--disabled": "cdr-select__caret--disabled_14-1-0",
36
- "cdr-select__pre-icon": "cdr-select__pre-icon_14-1-0",
37
- "cdr-select--multiple": "cdr-select--multiple_14-1-0",
38
- "cdr-select--large@xs": "cdr-select--large@xs_14-1-0",
39
- "cdr-select--large": "cdr-select--large_14-1-0",
40
- "cdr-select--large@sm": "cdr-select--large@sm_14-1-0",
41
- "cdr-select--large@md": "cdr-select--large@md_14-1-0",
42
- "cdr-select--large@lg": "cdr-select--large@lg_14-1-0",
43
- "cdr-select-wrap": "cdr-select-wrap_14-1-0",
44
- "cdr-pagination": "cdr-pagination_14-1-0",
45
- "cdr-pagination__li--links": "cdr-pagination__li--links_14-1-0",
46
- "cdr-pagination__li--select": "cdr-pagination__li--select_14-1-0",
47
- "cdr-pagination__link": "cdr-pagination__link_14-1-0",
48
- "cdr-pagination__link--current": "cdr-pagination__link--current_14-1-0",
49
- "cdr-pagination__link--disabled": "cdr-pagination__link--disabled_14-1-0",
50
- "cdr-pagination__ellipse": "cdr-pagination__ellipse_14-1-0",
51
- "cdr-pagination__prev": "cdr-pagination__prev_14-1-0",
52
- "cdr-pagination__next": "cdr-pagination__next_14-1-0",
53
- "cdr-pagination__caret--prev": "cdr-pagination__caret--prev_14-1-0",
54
- "cdr-pagination__caret--next": "cdr-pagination__caret--next_14-1-0"
1
+ const a = {
2
+ "cdr-icon": "cdr-icon_15-0-0-alpha-0",
3
+ "cdr-icon--small": "cdr-icon--small_15-0-0-alpha-0",
4
+ "cdr-icon--large": "cdr-icon--large_15-0-0-alpha-0",
5
+ "cdr-icon--small@xs": "cdr-icon--small@xs_15-0-0-alpha-0",
6
+ "cdr-icon--large@xs": "cdr-icon--large@xs_15-0-0-alpha-0",
7
+ "cdr-icon--small@sm": "cdr-icon--small@sm_15-0-0-alpha-0",
8
+ "cdr-icon--large@sm": "cdr-icon--large@sm_15-0-0-alpha-0",
9
+ "cdr-icon--small@md": "cdr-icon--small@md_15-0-0-alpha-0",
10
+ "cdr-icon--large@md": "cdr-icon--large@md_15-0-0-alpha-0",
11
+ "cdr-icon--small@lg": "cdr-icon--small@lg_15-0-0-alpha-0",
12
+ "cdr-icon--large@lg": "cdr-icon--large@lg_15-0-0-alpha-0",
13
+ "cdr-icon--inherit-color": "cdr-icon--inherit-color_15-0-0-alpha-0",
14
+ "cdr-label-standalone": "cdr-label-standalone_15-0-0-alpha-0",
15
+ "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_15-0-0-alpha-0",
16
+ "cdr-label-standalone__label": "cdr-label-standalone__label_15-0-0-alpha-0",
17
+ "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_15-0-0-alpha-0",
18
+ "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_15-0-0-alpha-0",
19
+ "cdr-label-standalone__optional": "cdr-label-standalone__optional_15-0-0-alpha-0",
20
+ "cdr-label-standalone__helper": "cdr-label-standalone__helper_15-0-0-alpha-0",
21
+ "cdr-label-standalone__info": "cdr-label-standalone__info_15-0-0-alpha-0",
22
+ "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_15-0-0-alpha-0",
23
+ "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_15-0-0-alpha-0",
24
+ "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_15-0-0-alpha-0",
25
+ "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_15-0-0-alpha-0",
26
+ "cdr-form-error": "cdr-form-error_15-0-0-alpha-0",
27
+ "cdr-form-error__icon": "cdr-form-error__icon_15-0-0-alpha-0",
28
+ "cdr-select": "cdr-select_15-0-0-alpha-0",
29
+ "cdr-select--primary": "cdr-select--primary_15-0-0-alpha-0",
30
+ "cdr-select--secondary": "cdr-select--secondary_15-0-0-alpha-0",
31
+ "cdr-select--error": "cdr-select--error_15-0-0-alpha-0",
32
+ "cdr-select--preicon": "cdr-select--preicon_15-0-0-alpha-0",
33
+ "cdr-select__prompt": "cdr-select__prompt_15-0-0-alpha-0",
34
+ "cdr-select__caret": "cdr-select__caret_15-0-0-alpha-0",
35
+ "cdr-select__caret--disabled": "cdr-select__caret--disabled_15-0-0-alpha-0",
36
+ "cdr-select__pre-icon": "cdr-select__pre-icon_15-0-0-alpha-0",
37
+ "cdr-select--multiple": "cdr-select--multiple_15-0-0-alpha-0",
38
+ "cdr-select--large@xs": "cdr-select--large@xs_15-0-0-alpha-0",
39
+ "cdr-select--large": "cdr-select--large_15-0-0-alpha-0",
40
+ "cdr-select--large@sm": "cdr-select--large@sm_15-0-0-alpha-0",
41
+ "cdr-select--large@md": "cdr-select--large@md_15-0-0-alpha-0",
42
+ "cdr-select--large@lg": "cdr-select--large@lg_15-0-0-alpha-0",
43
+ "cdr-select-wrap": "cdr-select-wrap_15-0-0-alpha-0",
44
+ "cdr-pagination": "cdr-pagination_15-0-0-alpha-0",
45
+ "cdr-pagination__li--links": "cdr-pagination__li--links_15-0-0-alpha-0",
46
+ "cdr-pagination__li--select": "cdr-pagination__li--select_15-0-0-alpha-0",
47
+ "cdr-pagination__link": "cdr-pagination__link_15-0-0-alpha-0",
48
+ "cdr-pagination__link--current": "cdr-pagination__link--current_15-0-0-alpha-0",
49
+ "cdr-pagination__link--disabled": "cdr-pagination__link--disabled_15-0-0-alpha-0",
50
+ "cdr-pagination__ellipse": "cdr-pagination__ellipse_15-0-0-alpha-0",
51
+ "cdr-pagination__prev": "cdr-pagination__prev_15-0-0-alpha-0",
52
+ "cdr-pagination__next": "cdr-pagination__next_15-0-0-alpha-0",
53
+ "cdr-pagination__caret--prev": "cdr-pagination__caret--prev_15-0-0-alpha-0",
54
+ "cdr-pagination__caret--next": "cdr-pagination__caret--next_15-0-0-alpha-0"
55
55
  };
56
56
  export {
57
- l as default
57
+ a as default
58
58
  };
@@ -0,0 +1,9 @@
1
+ import s from "./CdrPicture.vue2.mjs";
2
+ import o from "./styles/CdrPicture.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,42 @@
1
+ import { defineComponent as n, useCssModule as a, openBlock as r, createElementBlock as i, normalizeClass as l, unref as d, Fragment as c, renderList as p, mergeProps as u, createVNode as f } from "vue";
2
+ import m from "../image/CdrImg.vue.mjs";
3
+ const g = "cdr-picture", P = /* @__PURE__ */ n({
4
+ name: "CdrPicture",
5
+ __name: "CdrPicture",
6
+ props: {
7
+ sources: {},
8
+ src: {},
9
+ alt: {
10
+ default: ""
11
+ },
12
+ srcset: {},
13
+ sizes: {},
14
+ ratio: {},
15
+ position: {},
16
+ fit: {},
17
+ radius: {},
18
+ loading: {},
19
+ decoding: {},
20
+ fetchpriority: {}
21
+ },
22
+ setup(C) {
23
+ const t = a();
24
+ return (e, y) => (r(), i("picture", {
25
+ class: l(d(t)[g])
26
+ }, [(r(!0), i(c, null, p(e.sources, (o, s) => (r(), i("source", u({
27
+ key: `${o.media}--${s}`
28
+ }, o), null, 16))), 128)), f(m, {
29
+ src: e.src,
30
+ alt: e.alt,
31
+ ratio: e.ratio,
32
+ fit: e.fit,
33
+ position: e.position,
34
+ loading: e.loading,
35
+ fetchpriority: e.fetchpriority,
36
+ decoding: e.decoding
37
+ }, null, 8, ["src", "alt", "ratio", "fit", "position", "loading", "fetchpriority", "decoding"])], 2));
38
+ }
39
+ });
40
+ export {
41
+ P as default
42
+ };
@@ -0,0 +1,6 @@
1
+ const t = {
2
+ "cdr-picture": "cdr-picture_15-0-0-alpha-0"
3
+ };
4
+ export {
5
+ t as default
6
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as _, useSlots as B, useCssModule as N, ref as u, watch as T, onMounted as V, openBlock as E, createElementBlock as P, normalizeClass as i, unref as r, createElementVNode as f, renderSlot as a, createVNode as m, withCtx as k, createTextVNode as w, toDisplayString as A, createCommentVNode as x } from "vue";
2
- import z from "tabbable";
3
- import M from "../icon/comps/x-sm.vue.mjs";
4
- import D from "../button/CdrButton.vue.mjs";
5
- import H from "../popup/CdrPopup.vue.mjs";
6
- import L from "../../utils/propValidator.mjs";
7
- import O from "../../utils/mapClasses.mjs";
8
- const R = /* @__PURE__ */ _({
1
+ import { defineComponent as B, useSlots as N, useCssModule as T, ref as u, watch as V, onMounted as w, openBlock as E, createElementBlock as P, normalizeClass as i, unref as r, createElementVNode as f, renderSlot as a, createVNode as m, withCtx as k, createTextVNode as A, toDisplayString as x, createCommentVNode as z } from "vue";
2
+ import M from "tabbable";
3
+ import D from "../icon/comps/x-sm.vue.mjs";
4
+ import H from "../button/CdrButton.vue.mjs";
5
+ import L from "../popup/CdrPopup.vue.mjs";
6
+ import O from "../../utils/propValidator.mjs";
7
+ import j from "../../utils/mapClasses.mjs";
8
+ const U = /* @__PURE__ */ B({
9
9
  name: "CdrPopover",
10
10
  __name: "CdrPopover",
11
11
  props: {
@@ -18,7 +18,7 @@ const R = /* @__PURE__ */ _({
18
18
  type: String,
19
19
  required: !1,
20
20
  default: "top",
21
- validator: (o) => L(o, ["top", "bottom", "left", "right"])
21
+ validator: (t) => O(t, ["top", "bottom", "left", "right"])
22
22
  },
23
23
  /**
24
24
  * If set to `true`, popover will attempt to dynamically set it's position to
@@ -61,68 +61,68 @@ const R = /* @__PURE__ */ _({
61
61
  /** Emits when popover is closed */
62
62
  closed: null
63
63
  },
64
- setup(o, {
65
- emit: v
64
+ setup(t, {
65
+ emit: S
66
66
  }) {
67
- const n = o, g = B(), l = N(), s = u(!1);
68
- let d;
69
- const c = u(null), C = u(null), S = g.trigger, $ = g.title || n.label, b = (e) => {
67
+ const n = t, v = S, g = N(), l = T(), s = u(!1);
68
+ let c;
69
+ const d = u(null), C = u(null), $ = g.trigger, q = g.title || n.label, b = (e) => {
70
70
  if (s.value === !0)
71
71
  return;
72
72
  const {
73
- activeElement: t
73
+ activeElement: o
74
74
  } = document;
75
- d = t, s.value = !0, v("opened", e), setTimeout(() => {
75
+ c = o, s.value = !0, v("opened", e), setTimeout(() => {
76
76
  var h;
77
- const y = z((h = C.value) == null ? void 0 : h.$el);
77
+ const y = M((h = C.value) == null ? void 0 : h.$el);
78
78
  y[0] && y[0].focus();
79
79
  }, 50);
80
80
  }, p = (e) => {
81
- s.value = !1, v("closed", e), d && d.focus();
82
- }, q = () => {
83
- var t;
84
- const e = (t = c.value) == null ? void 0 : t.children[0];
81
+ s.value = !1, v("closed", e), c && c.focus();
82
+ }, _ = () => {
83
+ var o;
84
+ const e = (o = d.value) == null ? void 0 : o.children[0];
85
85
  e && e.addEventListener("click", b);
86
86
  };
87
- return T(() => n.open, () => {
87
+ return V(() => n.open, () => {
88
88
  n.open ? b() : p();
89
- }), V(() => {
90
- var t;
91
- q();
92
- const e = (t = c.value) == null ? void 0 : t.children[0];
89
+ }), w(() => {
90
+ var o;
91
+ _();
92
+ const e = (o = d.value) == null ? void 0 : o.children[0];
93
93
  e && (e.setAttribute("aria-controls", n.id), e.setAttribute("aria-haspopup", "dialog"));
94
- }), (e, t) => (E(), P("div", {
95
- class: i(r(O)(r(l), "cdr-popover--wrapper", r(S) ? "cdr-popover--position" : ""))
94
+ }), (e, o) => (E(), P("div", {
95
+ class: i(r(j)(r(l), "cdr-popover--wrapper", r($) ? "cdr-popover--position" : ""))
96
96
  }, [f("div", {
97
97
  ref_key: "triggerEl",
98
- ref: c
99
- }, [a(e.$slots, "trigger")], 512), m(H, {
98
+ ref: d
99
+ }, [a(e.$slots, "trigger")], 512), m(L, {
100
100
  role: "dialog",
101
101
  ref_key: "popupEl",
102
102
  ref: C,
103
103
  onClosed: p,
104
- position: o.position,
105
- "auto-position": o.autoPosition,
104
+ position: t.position,
105
+ "auto-position": t.autoPosition,
106
106
  opened: s.value,
107
107
  "aria-expanded": `${s.value}`,
108
- id: o.id,
109
- "content-class": o.contentClass
108
+ id: t.id,
109
+ "content-class": t.contentClass
110
110
  }, {
111
111
  default: k(() => [f("div", {
112
112
  class: i(r(l)["cdr-popover__container"])
113
113
  }, [f("div", {
114
114
  class: i(r(l)["cdr-popover__content"])
115
- }, [r($) ? (E(), P("div", {
115
+ }, [r(q) ? (E(), P("div", {
116
116
  key: 0,
117
117
  class: i(r(l)["cdr-popover__title"])
118
- }, [a(e.$slots, "title", {}, () => [w(A(o.label), 1)])], 2)) : x("", !0), a(e.$slots, "default")], 2), m(D, {
118
+ }, [a(e.$slots, "title", {}, () => [A(x(t.label), 1)])], 2)) : z("", !0), a(e.$slots, "default")], 2), m(H, {
119
119
  class: i(r(l)["cdr-popover__close-button"]),
120
120
  "icon-only": "",
121
121
  onClick: p,
122
122
  "aria-label": "Close",
123
123
  size: "small"
124
124
  }, {
125
- default: k(() => [a(e.$slots, "icon", {}, () => [m(M, {
125
+ default: k(() => [a(e.$slots, "icon", {}, () => [m(D, {
126
126
  "inherit-color": ""
127
127
  })])]),
128
128
  _: 3
@@ -132,5 +132,5 @@ const R = /* @__PURE__ */ _({
132
132
  }
133
133
  });
134
134
  export {
135
- R as default
135
+ U as default
136
136
  };