@rei/cedar 13.5.1 → 13.5.3
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.
- package/dist/cedar-compiled.css +1031 -1031
- package/dist/cedar.umd.js +2 -2
- package/dist/component-docgen.json +965 -937
- package/dist/icon-component-docgen.json +439 -439
- package/dist/src/components/accordion/CdrAccordion.vue.mjs +75 -80
- package/dist/src/components/accordion/CdrAccordionGroup.vue.mjs +27 -27
- package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +29 -29
- package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +2 -2
- package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +14 -14
- package/dist/src/components/breadcrumb/CdrBreadcrumb.vue.mjs +20 -19
- package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +7 -7
- package/dist/src/components/button/styles/CdrButton.module.scss.mjs +31 -31
- package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +2 -2
- package/dist/src/components/card/styles/CdrCard.module.scss.mjs +1 -1
- package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +25 -25
- package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +4 -4
- package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +4 -4
- package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +2 -2
- package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +2 -2
- package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +8 -8
- package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +21 -21
- package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +12 -12
- package/dist/src/components/image/styles/CdrImg.module.scss.mjs +8 -8
- package/dist/src/components/input/styles/CdrInput.module.scss.mjs +32 -32
- package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +12 -12
- package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +23 -23
- package/dist/src/components/link/styles/CdrLink.module.scss.mjs +3 -3
- package/dist/src/components/list/styles/CdrList.module.scss.mjs +5 -5
- package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +12 -12
- package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +53 -53
- package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +63 -63
- package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +14 -14
- package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +4 -4
- package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +25 -25
- package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +28 -28
- package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +42 -42
- package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +1 -1
- package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +7 -7
- package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +8 -8
- package/dist/src/components/table/styles/CdrTable.module.scss.mjs +13 -13
- package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +5 -5
- package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +28 -28
- package/dist/src/components/text/styles/CdrText.module.scss.mjs +1 -1
- package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +57 -57
- package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +2 -2
- package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +5 -5
- package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +16 -16
- package/dist/style/cdr-accordion-group.css +1 -1
- package/dist/style/cdr-accordion.css +1 -1
- package/dist/style/cdr-banner.css +1 -1
- package/dist/style/cdr-breadcrumb.css +1 -1
- package/dist/style/cdr-button.css +1 -1
- package/dist/style/cdr-caption.css +1 -1
- package/dist/style/cdr-card.css +1 -1
- package/dist/style/cdr-checkbox.css +1 -1
- package/dist/style/cdr-chip-group.css +1 -1
- package/dist/style/cdr-chip.css +1 -1
- package/dist/style/cdr-container.css +1 -1
- package/dist/style/cdr-form-error.css +1 -1
- package/dist/style/cdr-form-group.css +1 -1
- package/dist/style/cdr-grid.css +1 -1
- package/dist/style/cdr-icon.css +1 -1
- package/dist/style/cdr-img.css +1 -1
- package/dist/style/cdr-input.css +1 -1
- package/dist/style/cdr-label-standalone.css +1 -1
- package/dist/style/cdr-label-wrapper.css +1 -1
- package/dist/style/cdr-link.css +1 -1
- package/dist/style/cdr-list.css +1 -1
- package/dist/style/cdr-modal.css +1 -1
- package/dist/style/cdr-pagination.css +1 -1
- package/dist/style/cdr-popover.css +1 -1
- package/dist/style/cdr-popup.css +1 -1
- package/dist/style/cdr-quote.css +1 -1
- package/dist/style/cdr-radio.css +1 -1
- package/dist/style/cdr-rating.css +1 -1
- package/dist/style/cdr-select.css +1 -1
- package/dist/style/cdr-skeleton-bone.css +1 -1
- package/dist/style/cdr-skeleton.css +1 -1
- package/dist/style/cdr-switch.css +1 -1
- package/dist/style/cdr-tab-panel.css +1 -1
- package/dist/style/cdr-table.css +1 -1
- package/dist/style/cdr-tabs.css +1 -1
- package/dist/style/cdr-text.css +1 -1
- package/dist/style/cdr-toast.css +1 -1
- package/dist/style/cdr-toggle-button.css +1 -1
- package/dist/style/cdr-toggle-group.css +1 -1
- package/dist/style/cdr-tooltip.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as F, inject as I, useCssModule as y, ref as u, computed as n, watch as P, onMounted as G, resolveComponent as J, openBlock as p, createElementBlock as K, normalizeClass as l, createBlock as m, resolveDynamicComponent as h, withCtx as v, mergeProps as L, toHandlers as Q, createElementVNode as C, renderSlot as b, createTextVNode as R, toDisplayString as W, createCommentVNode as X, normalizeStyle as Y } from "vue";
|
|
2
2
|
import Z from "../icon/comps/caret-down.vue.mjs";
|
|
3
|
-
import { modifyClassName as
|
|
3
|
+
import { modifyClassName as r } from "../../utils/buildClass.mjs";
|
|
4
4
|
import _ from "../../utils/mapClasses.mjs";
|
|
5
5
|
import x from "./styles/CdrAccordion.module.scss.mjs";
|
|
6
6
|
import ee from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const ne =
|
|
7
|
+
const ne = F({
|
|
8
8
|
name: "CdrAccordion",
|
|
9
9
|
components: {
|
|
10
10
|
IconCaretDown: Z
|
|
@@ -69,99 +69,94 @@ const ne = I({
|
|
|
69
69
|
*/
|
|
70
70
|
"accordion-toggle": null
|
|
71
71
|
},
|
|
72
|
-
setup(e,
|
|
73
|
-
const c =
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
click:
|
|
81
|
-
focus:
|
|
82
|
-
blur:
|
|
72
|
+
setup(e, f) {
|
|
73
|
+
const c = I("unwrap", !1), g = y(), t = u(null), i = u(!1), s = u(e.opened ? "none" : "0px"), w = `h${e.level}`, $ = "cdr-accordion__label", a = "cdr-accordion", S = "cdr-accordion__icon", B = "cdr-accordion__content-container", U = "cdr-accordion__content", o = n(() => c && c.isUnwrapped), k = n(() => o.value ? "div" : "button"), A = n(() => o.value ? "js-cdr-accordion-button" : [g["cdr-accordion__button"], "js-cdr-accordion-button"]), H = n(() => o.value ? "cdr-accordion__header--unwrapped" : "cdr-accordion__header"), N = n(() => e.compact ? r(a, "compact") : ""), T = n(() => e.borderAligned ? r(a, "border-aligned") : ""), z = n(() => i.value ? r(a, "focused") : null), E = n(() => o.value ? r(a, "unwrap") : null), M = n(() => e.contentSpacing ? null : r(a, "no-spacing")), O = n(() => e.opened || o.value ? "cdr-accordion--open" : "cdr-accordion--closed"), j = (d) => {
|
|
74
|
+
f.emit("accordion-toggle", d);
|
|
75
|
+
}, D = () => {
|
|
76
|
+
i.value = !0;
|
|
77
|
+
}, V = () => {
|
|
78
|
+
i.value = !1;
|
|
79
|
+
}, q = n(() => o.value ? {} : {
|
|
80
|
+
click: j,
|
|
81
|
+
focus: D,
|
|
82
|
+
blur: V
|
|
83
83
|
});
|
|
84
|
-
return P(() => e.opened, (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
return P(() => e.opened, (d) => {
|
|
85
|
+
s.value = d ? "0px" : `${t.value.clientHeight}px`, setTimeout(() => {
|
|
86
|
+
s.value = d ? `${t.value.clientHeight}px` : "0px", setTimeout(() => {
|
|
87
|
+
s.value = d ? "none" : "0px";
|
|
88
88
|
}, 350);
|
|
89
89
|
}, 50);
|
|
90
|
-
}),
|
|
91
|
-
e.opened &&
|
|
90
|
+
}), G(() => {
|
|
91
|
+
e.opened && t.value && (s.value = "none");
|
|
92
92
|
}), {
|
|
93
|
-
style:
|
|
94
|
-
headingTag:
|
|
95
|
-
headingClass:
|
|
93
|
+
style: y(),
|
|
94
|
+
headingTag: w,
|
|
95
|
+
headingClass: H,
|
|
96
96
|
headingContent: k,
|
|
97
|
-
headingContentStyle:
|
|
98
|
-
isGrouped: v,
|
|
97
|
+
headingContentStyle: A,
|
|
99
98
|
unwrap: c,
|
|
100
|
-
accordionContentEl:
|
|
101
|
-
focused:
|
|
102
|
-
maxHeight:
|
|
99
|
+
accordionContentEl: t,
|
|
100
|
+
focused: i,
|
|
101
|
+
maxHeight: s,
|
|
103
102
|
baseClass: a,
|
|
104
|
-
labelClass:
|
|
105
|
-
compactClass:
|
|
106
|
-
borderAlignedClass:
|
|
107
|
-
focusedClass:
|
|
108
|
-
iconClass:
|
|
109
|
-
containerClass:
|
|
110
|
-
isOpenClass:
|
|
111
|
-
contentClass:
|
|
112
|
-
noSpacingClass:
|
|
113
|
-
listeners:
|
|
114
|
-
unwrapClass:
|
|
115
|
-
isUnwrapped:
|
|
103
|
+
labelClass: $,
|
|
104
|
+
compactClass: N,
|
|
105
|
+
borderAlignedClass: T,
|
|
106
|
+
focusedClass: z,
|
|
107
|
+
iconClass: S,
|
|
108
|
+
containerClass: B,
|
|
109
|
+
isOpenClass: O,
|
|
110
|
+
contentClass: U,
|
|
111
|
+
noSpacingClass: M,
|
|
112
|
+
listeners: q,
|
|
113
|
+
unwrapClass: E,
|
|
114
|
+
isUnwrapped: o,
|
|
116
115
|
mapClasses: _
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
|
-
}), se = ["id"], oe = ["aria-hidden", "id"];
|
|
120
|
-
function
|
|
121
|
-
const
|
|
122
|
-
return p(),
|
|
118
|
+
}), se = ["id"], oe = ["id"], ae = ["aria-hidden", "id"];
|
|
119
|
+
function le(e, f, c, g, t, i) {
|
|
120
|
+
const s = J("icon-caret-down");
|
|
121
|
+
return p(), K("div", {
|
|
123
122
|
class: l(e.isUnwrapped ? null : e.mapClasses(e.style, e.baseClass, e.compactClass, e.borderAlignedClass, e.focusedClass, e.noSpacingClass)),
|
|
124
123
|
id: `${e.id}-accordion`
|
|
124
|
+
}, [(p(), m(h(e.headingTag), {
|
|
125
|
+
class: l(e.style[e.headingClass])
|
|
125
126
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
class:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}), {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
key: 0,
|
|
142
|
-
class: l(e.mapClasses(e.style, e.iconClass, e.isOpenClass)),
|
|
143
|
-
size: e.compact ? "small" : null
|
|
144
|
-
}, null, 8, ["class", "size"]))]),
|
|
145
|
-
_: 3
|
|
146
|
-
}, 16, ["class", "id", "aria-expanded", "aria-pressed", "aria-controls"]))]),
|
|
127
|
+
default: v(() => [(p(), m(h(e.headingContent), L({
|
|
128
|
+
class: e.headingContentStyle,
|
|
129
|
+
id: e.id
|
|
130
|
+
}, Q(e.listeners), {
|
|
131
|
+
"aria-expanded": e.isUnwrapped ? null : `${e.opened}`,
|
|
132
|
+
"aria-controls": e.isUnwrapped ? null : `${e.id}-collapsible`
|
|
133
|
+
}), {
|
|
134
|
+
default: v(() => [C("span", {
|
|
135
|
+
class: l(e.style[e.labelClass]),
|
|
136
|
+
id: `${e.id}-label`
|
|
137
|
+
}, [b(e.$slots, "label", {}, () => [R(W(e.label), 1)])], 10, oe), e.isUnwrapped ? X("", !0) : (p(), m(s, {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: l(e.mapClasses(e.style, e.iconClass, e.isOpenClass)),
|
|
140
|
+
size: e.compact ? "small" : null
|
|
141
|
+
}, null, 8, ["class", "size"]))]),
|
|
147
142
|
_: 3
|
|
148
|
-
},
|
|
149
|
-
class: l(e.mapClasses(e.style, e.containerClass, e.isOpenClass, e.unwrapClass)),
|
|
150
|
-
style: Y({
|
|
151
|
-
maxHeight: e.isUnwrapped ? "none" : e.maxHeight
|
|
152
|
-
})
|
|
153
|
-
}, [g("div", {
|
|
154
|
-
class: l(e.mapClasses(e.style, e.contentClass, e.isOpenClass, e.unwrapClass)),
|
|
155
|
-
"aria-hidden": e.isUnwrapped ? null : `${!e.opened}`,
|
|
156
|
-
id: `${e.id}-collapsible`,
|
|
157
|
-
ref: "accordionContentEl"
|
|
158
|
-
}, [$(e.$slots, "default")], 10, oe)], 6)]),
|
|
143
|
+
}, 16, ["class", "id", "aria-expanded", "aria-controls"]))]),
|
|
159
144
|
_: 3
|
|
160
|
-
}, 8, ["class", "
|
|
145
|
+
}, 8, ["class"])), C("div", {
|
|
146
|
+
class: l(e.mapClasses(e.style, e.containerClass, e.isOpenClass, e.unwrapClass)),
|
|
147
|
+
style: Y({
|
|
148
|
+
maxHeight: e.isUnwrapped ? "none" : e.maxHeight
|
|
149
|
+
})
|
|
150
|
+
}, [C("div", {
|
|
151
|
+
class: l(e.mapClasses(e.style, e.contentClass, e.isOpenClass, e.unwrapClass)),
|
|
152
|
+
"aria-hidden": e.isUnwrapped ? null : `${!e.opened}`,
|
|
153
|
+
id: `${e.id}-collapsible`,
|
|
154
|
+
ref: "accordionContentEl"
|
|
155
|
+
}, [b(e.$slots, "default")], 10, ae)], 6)], 10, se);
|
|
161
156
|
}
|
|
162
|
-
const
|
|
157
|
+
const te = {
|
|
163
158
|
$style: x
|
|
164
|
-
},
|
|
159
|
+
}, me = /* @__PURE__ */ ee(ne, [["render", le], ["__cssModules", te]]);
|
|
165
160
|
export {
|
|
166
|
-
|
|
161
|
+
me as default
|
|
167
162
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as l, reactive as w, provide as y, computed as c, onMounted as g, useCssModule as b, openBlock as D, createElementBlock as k, normalizeClass as C, renderSlot as x } from "vue";
|
|
2
2
|
import { debounce as A } from "lodash-es";
|
|
3
3
|
import $ from "../../utils/propValidator.mjs";
|
|
4
|
-
import
|
|
4
|
+
import d from "../../mixins/breakpoints.mjs";
|
|
5
5
|
import B from "./styles/CdrAccordionGroup.module.scss.mjs";
|
|
6
6
|
import E from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const U =
|
|
7
|
+
const U = m({
|
|
8
8
|
name: "CdrAccordionGroup",
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -18,60 +18,60 @@ const U = w({
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
21
|
+
const r = "cdr-accordion-group", t = l(0), n = l([]), u = l(null), a = w({
|
|
22
22
|
isUnwrapped: !!e.unwrap
|
|
23
23
|
});
|
|
24
|
-
|
|
25
|
-
const s =
|
|
24
|
+
y("unwrap", a);
|
|
25
|
+
const s = c(() => {
|
|
26
26
|
const o = t.value + 1;
|
|
27
|
-
return o >=
|
|
28
|
-
}),
|
|
27
|
+
return o >= n.value.length ? 0 : o;
|
|
28
|
+
}), p = c(() => {
|
|
29
29
|
const o = t.value - 1;
|
|
30
|
-
return o <= -1 ?
|
|
31
|
-
}),
|
|
30
|
+
return o <= -1 ? n.value.length - 1 : o;
|
|
31
|
+
}), i = (o) => {
|
|
32
32
|
if (t.value === -1)
|
|
33
33
|
return;
|
|
34
34
|
const {
|
|
35
|
-
key:
|
|
35
|
+
key: v
|
|
36
36
|
} = o;
|
|
37
|
-
switch (
|
|
37
|
+
switch (v) {
|
|
38
38
|
case "Home":
|
|
39
|
-
o.preventDefault(),
|
|
39
|
+
o.preventDefault(), n.value[0].focus();
|
|
40
40
|
break;
|
|
41
41
|
case "End":
|
|
42
|
-
o.preventDefault(),
|
|
42
|
+
o.preventDefault(), n.value[n.value.length - 1].focus();
|
|
43
43
|
break;
|
|
44
44
|
case "ArrowDown":
|
|
45
45
|
case "Down":
|
|
46
|
-
o.preventDefault(),
|
|
46
|
+
o.preventDefault(), n.value[s.value].focus();
|
|
47
47
|
break;
|
|
48
48
|
case "ArrowUp":
|
|
49
49
|
case "Up":
|
|
50
|
-
o.preventDefault(),
|
|
50
|
+
o.preventDefault(), n.value[p.value].focus();
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
t.value = Array.prototype.indexOf.call(
|
|
53
|
+
}, f = (o) => {
|
|
54
|
+
t.value = Array.prototype.indexOf.call(n.value, o.target);
|
|
55
55
|
};
|
|
56
56
|
return g(() => {
|
|
57
|
-
|
|
58
|
-
a.isUnwrapped = e.unwrap.indexOf(
|
|
57
|
+
n.value = u.value.querySelectorAll(".js-cdr-accordion-button"), typeof e.unwrap == "string" && (a.isUnwrapped = e.unwrap.indexOf(d()) !== -1, window.addEventListener("resize", A(() => {
|
|
58
|
+
a.isUnwrapped = e.unwrap.indexOf(d()) !== -1;
|
|
59
59
|
}, 300)));
|
|
60
60
|
}), {
|
|
61
61
|
style: b(),
|
|
62
|
-
handleKeyDown:
|
|
63
|
-
focusin:
|
|
64
|
-
baseClass:
|
|
62
|
+
handleKeyDown: i,
|
|
63
|
+
focusin: f,
|
|
64
|
+
baseClass: r,
|
|
65
65
|
accordionGroupEl: u
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
function h(e,
|
|
70
|
-
return D(), k("
|
|
69
|
+
function h(e, r, t, n, u, a) {
|
|
70
|
+
return D(), k("div", {
|
|
71
71
|
class: C(e.style[e.baseClass]),
|
|
72
72
|
ref: "accordionGroupEl",
|
|
73
|
-
onFocusin:
|
|
74
|
-
onKeydown:
|
|
73
|
+
onFocusin: r[0] || (r[0] = (...s) => e.focusin && e.focusin(...s)),
|
|
74
|
+
onKeydown: r[1] || (r[1] = (...s) => e.handleKeyDown && e.handleKeyDown(...s))
|
|
75
75
|
}, [x(e.$slots, "default")], 34);
|
|
76
76
|
}
|
|
77
77
|
const G = {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
const c = {
|
|
2
|
-
"cdr-icon": "cdr-icon_13-5-
|
|
3
|
-
"cdr-icon--small": "cdr-icon--small_13-5-
|
|
4
|
-
"cdr-icon--large": "cdr-icon--large_13-5-
|
|
5
|
-
"cdr-icon--small@xs": "cdr-icon--small@xs_13-5-
|
|
6
|
-
"cdr-icon--large@xs": "cdr-icon--large@xs_13-5-
|
|
7
|
-
"cdr-icon--small@sm": "cdr-icon--small@sm_13-5-
|
|
8
|
-
"cdr-icon--large@sm": "cdr-icon--large@sm_13-5-
|
|
9
|
-
"cdr-icon--small@md": "cdr-icon--small@md_13-5-
|
|
10
|
-
"cdr-icon--large@md": "cdr-icon--large@md_13-5-
|
|
11
|
-
"cdr-icon--small@lg": "cdr-icon--small@lg_13-5-
|
|
12
|
-
"cdr-icon--large@lg": "cdr-icon--large@lg_13-5-
|
|
13
|
-
"cdr-icon--inherit-color": "cdr-icon--inherit-color_13-5-
|
|
14
|
-
"cdr-accordion-group": "cdr-accordion-group_13-5-
|
|
15
|
-
"cdr-accordion": "cdr-accordion_13-5-
|
|
16
|
-
"cdr-accordion__button": "cdr-accordion__button_13-5-
|
|
17
|
-
"cdr-accordion__label": "cdr-accordion__label_13-5-
|
|
18
|
-
"cdr-accordion__header": "cdr-accordion__header_13-5-
|
|
19
|
-
"cdr-accordion__header--unwrapped": "cdr-accordion__header--unwrapped_13-5-
|
|
20
|
-
"cdr-accordion__icon": "cdr-accordion__icon_13-5-
|
|
21
|
-
"cdr-accordion--open": "cdr-accordion--open_13-5-
|
|
22
|
-
"cdr-accordion__content-container": "cdr-accordion__content-container_13-5-
|
|
23
|
-
"cdr-tabs--open": "cdr-tabs--open_13-5-
|
|
24
|
-
"cdr-accordion__content": "cdr-accordion__content_13-5-
|
|
25
|
-
"cdr-accordion--closed": "cdr-accordion--closed_13-5-
|
|
26
|
-
"cdr-accordion--unwrap": "cdr-accordion--unwrap_13-5-
|
|
27
|
-
"cdr-accordion--border-aligned": "cdr-accordion--border-aligned_13-5-
|
|
28
|
-
"cdr-accordion--no-spacing": "cdr-accordion--no-spacing_13-5-
|
|
29
|
-
"cdr-accordion--compact": "cdr-accordion--compact_13-5-
|
|
30
|
-
"cdr-accordion--focused": "cdr-accordion--focused_13-5-
|
|
2
|
+
"cdr-icon": "cdr-icon_13-5-3",
|
|
3
|
+
"cdr-icon--small": "cdr-icon--small_13-5-3",
|
|
4
|
+
"cdr-icon--large": "cdr-icon--large_13-5-3",
|
|
5
|
+
"cdr-icon--small@xs": "cdr-icon--small@xs_13-5-3",
|
|
6
|
+
"cdr-icon--large@xs": "cdr-icon--large@xs_13-5-3",
|
|
7
|
+
"cdr-icon--small@sm": "cdr-icon--small@sm_13-5-3",
|
|
8
|
+
"cdr-icon--large@sm": "cdr-icon--large@sm_13-5-3",
|
|
9
|
+
"cdr-icon--small@md": "cdr-icon--small@md_13-5-3",
|
|
10
|
+
"cdr-icon--large@md": "cdr-icon--large@md_13-5-3",
|
|
11
|
+
"cdr-icon--small@lg": "cdr-icon--small@lg_13-5-3",
|
|
12
|
+
"cdr-icon--large@lg": "cdr-icon--large@lg_13-5-3",
|
|
13
|
+
"cdr-icon--inherit-color": "cdr-icon--inherit-color_13-5-3",
|
|
14
|
+
"cdr-accordion-group": "cdr-accordion-group_13-5-3",
|
|
15
|
+
"cdr-accordion": "cdr-accordion_13-5-3",
|
|
16
|
+
"cdr-accordion__button": "cdr-accordion__button_13-5-3",
|
|
17
|
+
"cdr-accordion__label": "cdr-accordion__label_13-5-3",
|
|
18
|
+
"cdr-accordion__header": "cdr-accordion__header_13-5-3",
|
|
19
|
+
"cdr-accordion__header--unwrapped": "cdr-accordion__header--unwrapped_13-5-3",
|
|
20
|
+
"cdr-accordion__icon": "cdr-accordion__icon_13-5-3",
|
|
21
|
+
"cdr-accordion--open": "cdr-accordion--open_13-5-3",
|
|
22
|
+
"cdr-accordion__content-container": "cdr-accordion__content-container_13-5-3",
|
|
23
|
+
"cdr-tabs--open": "cdr-tabs--open_13-5-3",
|
|
24
|
+
"cdr-accordion__content": "cdr-accordion__content_13-5-3",
|
|
25
|
+
"cdr-accordion--closed": "cdr-accordion--closed_13-5-3",
|
|
26
|
+
"cdr-accordion--unwrap": "cdr-accordion--unwrap_13-5-3",
|
|
27
|
+
"cdr-accordion--border-aligned": "cdr-accordion--border-aligned_13-5-3",
|
|
28
|
+
"cdr-accordion--no-spacing": "cdr-accordion--no-spacing_13-5-3",
|
|
29
|
+
"cdr-accordion--compact": "cdr-accordion--compact_13-5-3",
|
|
30
|
+
"cdr-accordion--focused": "cdr-accordion--focused_13-5-3"
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
33
|
c as default
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
const n = {
|
|
2
|
-
"cdr-banner": "cdr-banner_13-5-
|
|
3
|
-
"cdr-banner__wrapper--prominence": "cdr-banner__wrapper--prominence_13-5-
|
|
4
|
-
"cdr-banner__main": "cdr-banner__main_13-5-
|
|
5
|
-
"cdr-banner__icon-left": "cdr-banner__icon-left_13-5-
|
|
6
|
-
"cdr-banner__message": "cdr-banner__message_13-5-
|
|
7
|
-
"cdr-banner__message-body": "cdr-banner__message-body_13-5-
|
|
8
|
-
"cdr-banner__icon-right": "cdr-banner__icon-right_13-5-
|
|
9
|
-
"cdr-banner__info-action": "cdr-banner__info-action_13-5-
|
|
10
|
-
"cdr-banner--default": "cdr-banner--default_13-5-
|
|
11
|
-
"cdr-banner__wrapper": "cdr-banner__wrapper_13-5-
|
|
12
|
-
"cdr-banner--info": "cdr-banner--info_13-5-
|
|
13
|
-
"cdr-banner--warning": "cdr-banner--warning_13-5-
|
|
14
|
-
"cdr-banner--success": "cdr-banner--success_13-5-
|
|
15
|
-
"cdr-banner--error": "cdr-banner--error_13-5-
|
|
2
|
+
"cdr-banner": "cdr-banner_13-5-3",
|
|
3
|
+
"cdr-banner__wrapper--prominence": "cdr-banner__wrapper--prominence_13-5-3",
|
|
4
|
+
"cdr-banner__main": "cdr-banner__main_13-5-3",
|
|
5
|
+
"cdr-banner__icon-left": "cdr-banner__icon-left_13-5-3",
|
|
6
|
+
"cdr-banner__message": "cdr-banner__message_13-5-3",
|
|
7
|
+
"cdr-banner__message-body": "cdr-banner__message-body_13-5-3",
|
|
8
|
+
"cdr-banner__icon-right": "cdr-banner__icon-right_13-5-3",
|
|
9
|
+
"cdr-banner__info-action": "cdr-banner__info-action_13-5-3",
|
|
10
|
+
"cdr-banner--default": "cdr-banner--default_13-5-3",
|
|
11
|
+
"cdr-banner__wrapper": "cdr-banner__wrapper_13-5-3",
|
|
12
|
+
"cdr-banner--info": "cdr-banner--info_13-5-3",
|
|
13
|
+
"cdr-banner--warning": "cdr-banner--warning_13-5-3",
|
|
14
|
+
"cdr-banner--success": "cdr-banner--success_13-5-3",
|
|
15
|
+
"cdr-banner--error": "cdr-banner--error_13-5-3"
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
18
|
n as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as h, ref as u, computed as b, watch as g, useCssModule as p, openBlock as r, createElementBlock as l, normalizeClass as s, createElementVNode as n, createCommentVNode as f, Fragment as k, renderList as C, withDirectives as _, renderSlot as $, toDisplayString as E, vShow as v, nextTick as L } from "vue";
|
|
2
|
+
import B from "../../utils/uid.mjs";
|
|
3
|
+
import w from "./styles/CdrBreadcrumb.module.scss.mjs";
|
|
4
|
+
import q from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const S = h({
|
|
6
6
|
name: "CdrBreadcrumb",
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
@@ -41,22 +41,23 @@ const q = y({
|
|
|
41
41
|
emits: {
|
|
42
42
|
/**
|
|
43
43
|
* Emits when a breadcrumb item is clicked. `e.preventDefault()` may be used to override the default link navigation.
|
|
44
|
+
* @param breadcrumb The breadcrumb data object
|
|
44
45
|
*/
|
|
45
46
|
navigate: null
|
|
46
47
|
},
|
|
47
48
|
setup(e) {
|
|
48
|
-
const t = e.id ? e.id :
|
|
49
|
+
const t = e.id ? e.id : B(), a = u(e.truncationEnabled && e.items.length > 2), o = u(null), d = b(() => {
|
|
49
50
|
const i = e.items.length - 2 > 1 ? "s" : "";
|
|
50
51
|
return `show ${e.items.length - 2} more navigation level${i}`;
|
|
51
52
|
}), m = () => {
|
|
52
|
-
a.value = !1,
|
|
53
|
+
a.value = !1, L(() => {
|
|
53
54
|
o.value.querySelector("li a").focus();
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
|
-
return
|
|
57
|
+
return g(() => e.items, () => {
|
|
57
58
|
a.value = e.truncationEnabled && e.items.length > 2;
|
|
58
59
|
}), {
|
|
59
|
-
style:
|
|
60
|
+
style: p(),
|
|
60
61
|
uniqueId: t,
|
|
61
62
|
truncate: a,
|
|
62
63
|
itemListEl: o,
|
|
@@ -64,8 +65,8 @@ const q = y({
|
|
|
64
65
|
handleEllipsisClick: m
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
}),
|
|
68
|
-
function
|
|
68
|
+
}), I = ["id"], M = ["id"], j = ["aria-controls", "aria-label"], D = ["href", "onClick"];
|
|
69
|
+
function N(e, t, a, o, d, m) {
|
|
69
70
|
return r(), l("nav", {
|
|
70
71
|
class: s(e.style["cdr-breadcrumb"]),
|
|
71
72
|
id: e.uniqueId,
|
|
@@ -86,10 +87,10 @@ function D(e, t, a, o, d, m) {
|
|
|
86
87
|
}, [n("span", {
|
|
87
88
|
class: s(e.style["cdr-breadcrumb__ellipses-icon"]),
|
|
88
89
|
"aria-hidden": "true"
|
|
89
|
-
}, " . . . ", 2)], 10,
|
|
90
|
+
}, " . . . ", 2)], 10, j), n("span", {
|
|
90
91
|
class: s(e.style["cdr-breadcrumb__delimiter"]),
|
|
91
92
|
"aria-hidden": "true"
|
|
92
|
-
}, " / ", 2)], 2)) : f("", !0), (r(!0), l(
|
|
93
|
+
}, " / ", 2)], 2)) : f("", !0), (r(!0), l(k, null, C(e.items, (i, c) => _((r(), l("li", {
|
|
93
94
|
class: s(e.style["cdr-breadcrumb__item"]),
|
|
94
95
|
key: i.item.id || i.item.name.replace(/ /g, "-").toLowerCase()
|
|
95
96
|
}, [$(e.$slots, "link", {
|
|
@@ -99,16 +100,16 @@ function D(e, t, a, o, d, m) {
|
|
|
99
100
|
}, () => [n("a", {
|
|
100
101
|
class: s(e.style["cdr-breadcrumb__link"]),
|
|
101
102
|
href: i.item.url,
|
|
102
|
-
onClick: (
|
|
103
|
-
}, E(i.item.name), 11,
|
|
103
|
+
onClick: (y) => e.$emit("navigate", i, y)
|
|
104
|
+
}, E(i.item.name), 11, D)]), c < e.items.length - 1 ? (r(), l("span", {
|
|
104
105
|
key: 0,
|
|
105
106
|
class: s(e.style["cdr-breadcrumb__delimiter"]),
|
|
106
107
|
"aria-hidden": "true"
|
|
107
|
-
}, " / ", 2)) : f("", !0)], 2)), [[
|
|
108
|
+
}, " / ", 2)) : f("", !0)], 2)), [[v, !e.truncate || c >= e.items.length - 2]])), 128))], 10, M)], 10, I);
|
|
108
109
|
}
|
|
109
|
-
const
|
|
110
|
-
$style:
|
|
111
|
-
}, P = /* @__PURE__ */
|
|
110
|
+
const O = {
|
|
111
|
+
$style: w
|
|
112
|
+
}, P = /* @__PURE__ */ q(S, [["render", N], ["__cssModules", O]]);
|
|
112
113
|
export {
|
|
113
114
|
P as default
|
|
114
115
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const r = {
|
|
2
|
-
"cdr-breadcrumb": "cdr-breadcrumb_13-5-
|
|
3
|
-
"cdr-breadcrumb__list": "cdr-breadcrumb__list_13-5-
|
|
4
|
-
"cdr-breadcrumb__item": "cdr-breadcrumb__item_13-5-
|
|
5
|
-
"cdr-breadcrumb__link": "cdr-breadcrumb__link_13-5-
|
|
6
|
-
"cdr-breadcrumb__delimiter": "cdr-breadcrumb__delimiter_13-5-
|
|
7
|
-
"cdr-breadcrumb__ellipses": "cdr-breadcrumb__ellipses_13-5-
|
|
8
|
-
"cdr-breadcrumb__ellipses-icon": "cdr-breadcrumb__ellipses-icon_13-5-
|
|
2
|
+
"cdr-breadcrumb": "cdr-breadcrumb_13-5-3",
|
|
3
|
+
"cdr-breadcrumb__list": "cdr-breadcrumb__list_13-5-3",
|
|
4
|
+
"cdr-breadcrumb__item": "cdr-breadcrumb__item_13-5-3",
|
|
5
|
+
"cdr-breadcrumb__link": "cdr-breadcrumb__link_13-5-3",
|
|
6
|
+
"cdr-breadcrumb__delimiter": "cdr-breadcrumb__delimiter_13-5-3",
|
|
7
|
+
"cdr-breadcrumb__ellipses": "cdr-breadcrumb__ellipses_13-5-3",
|
|
8
|
+
"cdr-breadcrumb__ellipses-icon": "cdr-breadcrumb__ellipses-icon_13-5-3"
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
r as default
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
const t = {
|
|
2
|
-
"cdr-button": "cdr-button_13-5-
|
|
3
|
-
"cdr-button--has-icon-left": "cdr-button--has-icon-left_13-5-
|
|
4
|
-
"cdr-button--has-icon-right": "cdr-button--has-icon-right_13-5-
|
|
5
|
-
"cdr-button--primary": "cdr-button--primary_13-5-
|
|
6
|
-
"cdr-button--secondary": "cdr-button--secondary_13-5-
|
|
7
|
-
"cdr-button--dark": "cdr-button--dark_13-5-
|
|
8
|
-
"cdr-button--sale": "cdr-button--sale_13-5-
|
|
9
|
-
"cdr-button--link": "cdr-button--link_13-5-
|
|
10
|
-
"cdr-button--large": "cdr-button--large_13-5-
|
|
11
|
-
"cdr-button--medium": "cdr-button--medium_13-5-
|
|
12
|
-
"cdr-button--small": "cdr-button--small_13-5-
|
|
13
|
-
"cdr-button--icon-only": "cdr-button--icon-only_13-5-
|
|
14
|
-
"cdr-button--icon-only-large": "cdr-button--icon-only-large_13-5-
|
|
15
|
-
"cdr-button--with-background": "cdr-button--with-background_13-5-
|
|
16
|
-
"cdr-button--full-width": "cdr-button--full-width_13-5-
|
|
17
|
-
"cdr-button--small@xs": "cdr-button--small@xs_13-5-
|
|
18
|
-
"cdr-button--medium@xs": "cdr-button--medium@xs_13-5-
|
|
19
|
-
"cdr-button--large@xs": "cdr-button--large@xs_13-5-
|
|
20
|
-
"cdr-button--full-width@xs": "cdr-button--full-width@xs_13-5-
|
|
21
|
-
"cdr-button--small@sm": "cdr-button--small@sm_13-5-
|
|
22
|
-
"cdr-button--medium@sm": "cdr-button--medium@sm_13-5-
|
|
23
|
-
"cdr-button--large@sm": "cdr-button--large@sm_13-5-
|
|
24
|
-
"cdr-button--full-width@sm": "cdr-button--full-width@sm_13-5-
|
|
25
|
-
"cdr-button--small@md": "cdr-button--small@md_13-5-
|
|
26
|
-
"cdr-button--medium@md": "cdr-button--medium@md_13-5-
|
|
27
|
-
"cdr-button--large@md": "cdr-button--large@md_13-5-
|
|
28
|
-
"cdr-button--full-width@md": "cdr-button--full-width@md_13-5-
|
|
29
|
-
"cdr-button--small@lg": "cdr-button--small@lg_13-5-
|
|
30
|
-
"cdr-button--medium@lg": "cdr-button--medium@lg_13-5-
|
|
31
|
-
"cdr-button--large@lg": "cdr-button--large@lg_13-5-
|
|
32
|
-
"cdr-button--full-width@lg": "cdr-button--full-width@lg_13-5-
|
|
2
|
+
"cdr-button": "cdr-button_13-5-3",
|
|
3
|
+
"cdr-button--has-icon-left": "cdr-button--has-icon-left_13-5-3",
|
|
4
|
+
"cdr-button--has-icon-right": "cdr-button--has-icon-right_13-5-3",
|
|
5
|
+
"cdr-button--primary": "cdr-button--primary_13-5-3",
|
|
6
|
+
"cdr-button--secondary": "cdr-button--secondary_13-5-3",
|
|
7
|
+
"cdr-button--dark": "cdr-button--dark_13-5-3",
|
|
8
|
+
"cdr-button--sale": "cdr-button--sale_13-5-3",
|
|
9
|
+
"cdr-button--link": "cdr-button--link_13-5-3",
|
|
10
|
+
"cdr-button--large": "cdr-button--large_13-5-3",
|
|
11
|
+
"cdr-button--medium": "cdr-button--medium_13-5-3",
|
|
12
|
+
"cdr-button--small": "cdr-button--small_13-5-3",
|
|
13
|
+
"cdr-button--icon-only": "cdr-button--icon-only_13-5-3",
|
|
14
|
+
"cdr-button--icon-only-large": "cdr-button--icon-only-large_13-5-3",
|
|
15
|
+
"cdr-button--with-background": "cdr-button--with-background_13-5-3",
|
|
16
|
+
"cdr-button--full-width": "cdr-button--full-width_13-5-3",
|
|
17
|
+
"cdr-button--small@xs": "cdr-button--small@xs_13-5-3",
|
|
18
|
+
"cdr-button--medium@xs": "cdr-button--medium@xs_13-5-3",
|
|
19
|
+
"cdr-button--large@xs": "cdr-button--large@xs_13-5-3",
|
|
20
|
+
"cdr-button--full-width@xs": "cdr-button--full-width@xs_13-5-3",
|
|
21
|
+
"cdr-button--small@sm": "cdr-button--small@sm_13-5-3",
|
|
22
|
+
"cdr-button--medium@sm": "cdr-button--medium@sm_13-5-3",
|
|
23
|
+
"cdr-button--large@sm": "cdr-button--large@sm_13-5-3",
|
|
24
|
+
"cdr-button--full-width@sm": "cdr-button--full-width@sm_13-5-3",
|
|
25
|
+
"cdr-button--small@md": "cdr-button--small@md_13-5-3",
|
|
26
|
+
"cdr-button--medium@md": "cdr-button--medium@md_13-5-3",
|
|
27
|
+
"cdr-button--large@md": "cdr-button--large@md_13-5-3",
|
|
28
|
+
"cdr-button--full-width@md": "cdr-button--full-width@md_13-5-3",
|
|
29
|
+
"cdr-button--small@lg": "cdr-button--small@lg_13-5-3",
|
|
30
|
+
"cdr-button--medium@lg": "cdr-button--medium@lg_13-5-3",
|
|
31
|
+
"cdr-button--large@lg": "cdr-button--large@lg_13-5-3",
|
|
32
|
+
"cdr-button--full-width@lg": "cdr-button--full-width@lg_13-5-3"
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
35
|
t as default
|