@rei/cedar 13.5.0-alpha.1 → 13.5.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 (121) hide show
  1. package/dist/cedar-compiled.css +1031 -1031
  2. package/dist/cedar.umd.js +2 -0
  3. package/dist/component-docgen.json +3298 -0
  4. package/dist/icon-component-docgen.json +4094 -0
  5. package/dist/src/components/accordion/CdrAccordion.vue.mjs +13 -1
  6. package/dist/src/components/accordion/CdrAccordionGroup.vue.mjs +4 -0
  7. package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +29 -29
  8. package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +2 -2
  9. package/dist/src/components/banner/CdrBanner.vue.mjs +5 -0
  10. package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +14 -14
  11. package/dist/src/components/breadcrumb/CdrBreadcrumb.vue.mjs +21 -8
  12. package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +7 -7
  13. package/dist/src/components/button/CdrButton.vue.mjs +29 -0
  14. package/dist/src/components/button/styles/CdrButton.module.scss.mjs +31 -31
  15. package/dist/src/components/caption/CdrCaption.vue.mjs +8 -0
  16. package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +4 -4
  17. package/dist/src/components/card/CdrCard.vue.mjs +3 -0
  18. package/dist/src/components/card/styles/CdrCard.module.scss.mjs +3 -3
  19. package/dist/src/components/checkbox/CdrCheckbox.vue.mjs +53 -28
  20. package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +27 -27
  21. package/dist/src/components/chip/CdrChipGroup.vue.mjs +6 -0
  22. package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +4 -4
  23. package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +6 -6
  24. package/dist/src/components/container/CdrContainer.vue.mjs +6 -1
  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/CdrGrid.vue.mjs +4 -3
  29. package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +21 -21
  30. package/dist/src/components/icon/CdrIcon.vue.mjs +8 -5
  31. package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +12 -12
  32. package/dist/src/components/image/CdrImg.vue.mjs +16 -5
  33. package/dist/src/components/image/styles/CdrImg.module.scss.mjs +10 -10
  34. package/dist/src/components/input/CdrInput.vue.mjs +38 -10
  35. package/dist/src/components/input/styles/CdrInput.module.scss.mjs +34 -34
  36. package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +14 -14
  37. package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +25 -25
  38. package/dist/src/components/link/CdrLink.vue.mjs +14 -0
  39. package/dist/src/components/link/styles/CdrLink.module.scss.mjs +5 -5
  40. package/dist/src/components/list/CdrList.vue.mjs +7 -1
  41. package/dist/src/components/list/styles/CdrList.module.scss.mjs +5 -5
  42. package/dist/src/components/modal/CdrModal.vue.mjs +28 -1
  43. package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +14 -14
  44. package/dist/src/components/pagination/CdrPagination.vue.mjs +53 -24
  45. package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +55 -55
  46. package/dist/src/components/popover/CdrPopover.vue.mjs +33 -11
  47. package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +63 -63
  48. package/dist/src/components/popup/CdrPopup.vue.mjs +14 -14
  49. package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +14 -14
  50. package/dist/src/components/quote/CdrQuote.vue.mjs +11 -2
  51. package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +4 -4
  52. package/dist/src/components/radio/CdrRadio.vue.mjs +26 -7
  53. package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +27 -27
  54. package/dist/src/components/rating/CdrRating.vue.mjs +8 -3
  55. package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +30 -30
  56. package/dist/src/components/select/CdrSelect.vue.mjs +41 -15
  57. package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +42 -42
  58. package/dist/src/components/skeleton/CdrSkeleton.vue.mjs +6 -0
  59. package/dist/src/components/skeleton/CdrSkeletonBone.vue.mjs +5 -0
  60. package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +1 -1
  61. package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +7 -7
  62. package/dist/src/components/switch/CdrSwitch.vue.mjs +21 -1
  63. package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +8 -8
  64. package/dist/src/components/table/CdrTable.vue.mjs +12 -0
  65. package/dist/src/components/table/styles/CdrTable.module.scss.mjs +13 -13
  66. package/dist/src/components/tabs/CdrTabPanel.vue.mjs +22 -11
  67. package/dist/src/components/tabs/CdrTabs.vue.mjs +20 -0
  68. package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +7 -7
  69. package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +30 -30
  70. package/dist/src/components/text/CdrText.vue.mjs +23 -17
  71. package/dist/src/components/text/styles/CdrText.module.scss.mjs +1 -1
  72. package/dist/src/components/toast/CdrToast.vue.mjs +17 -1
  73. package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +57 -57
  74. package/dist/src/components/toggleButton/CdrToggleButton.vue.mjs +3 -0
  75. package/dist/src/components/toggleButton/CdrToggleGroup.vue.mjs +13 -1
  76. package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +2 -2
  77. package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +5 -5
  78. package/dist/src/components/tooltip/CdrTooltip.vue.mjs +22 -1
  79. package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +16 -16
  80. package/dist/style/cdr-accordion-group.css +1 -1
  81. package/dist/style/cdr-accordion.css +1 -1
  82. package/dist/style/cdr-banner.css +1 -1
  83. package/dist/style/cdr-breadcrumb.css +1 -1
  84. package/dist/style/cdr-button.css +1 -1
  85. package/dist/style/cdr-caption.css +1 -1
  86. package/dist/style/cdr-card.css +1 -1
  87. package/dist/style/cdr-checkbox.css +1 -1
  88. package/dist/style/cdr-chip-group.css +1 -1
  89. package/dist/style/cdr-chip.css +1 -1
  90. package/dist/style/cdr-container.css +1 -1
  91. package/dist/style/cdr-form-error.css +1 -1
  92. package/dist/style/cdr-form-group.css +1 -1
  93. package/dist/style/cdr-grid.css +1 -1
  94. package/dist/style/cdr-icon.css +1 -1
  95. package/dist/style/cdr-img.css +1 -1
  96. package/dist/style/cdr-input.css +1 -1
  97. package/dist/style/cdr-label-standalone.css +1 -1
  98. package/dist/style/cdr-label-wrapper.css +1 -1
  99. package/dist/style/cdr-link.css +1 -1
  100. package/dist/style/cdr-list.css +1 -1
  101. package/dist/style/cdr-modal.css +1 -1
  102. package/dist/style/cdr-pagination.css +1 -1
  103. package/dist/style/cdr-popover.css +1 -1
  104. package/dist/style/cdr-popup.css +1 -1
  105. package/dist/style/cdr-quote.css +1 -1
  106. package/dist/style/cdr-radio.css +1 -1
  107. package/dist/style/cdr-rating.css +1 -1
  108. package/dist/style/cdr-select.css +1 -1
  109. package/dist/style/cdr-skeleton-bone.css +1 -1
  110. package/dist/style/cdr-skeleton.css +1 -1
  111. package/dist/style/cdr-switch.css +1 -1
  112. package/dist/style/cdr-tab-panel.css +1 -1
  113. package/dist/style/cdr-table.css +1 -1
  114. package/dist/style/cdr-tabs.css +1 -1
  115. package/dist/style/cdr-text.css +1 -1
  116. package/dist/style/cdr-toast.css +1 -1
  117. package/dist/style/cdr-toggle-button.css +1 -1
  118. package/dist/style/cdr-toggle-group.css +1 -1
  119. package/dist/style/cdr-tooltip.css +1 -1
  120. package/dist/style.css +1 -1
  121. package/package.json +7 -3
@@ -1,5 +1,5 @@
1
1
  import "core-js/modules/es.array.push.js";
2
- import { defineComponent as L, computed as o, useCssModule as j, resolveComponent as h, openBlock as a, createBlock as S, createSlots as F, withCtx as n, createElementVNode as q, normalizeClass as u, createElementBlock as m, renderSlot as i, createCommentVNode as g, withDirectives as H, mergeProps as R, toDisplayString as I, Fragment as U, renderList as T, vModelSelect as G, createVNode as J } from "vue";
2
+ import { defineComponent as L, computed as o, useCssModule as j, resolveComponent as h, openBlock as a, createBlock as S, createSlots as F, withCtx as n, createElementVNode as I, normalizeClass as u, createElementBlock as m, renderSlot as i, createCommentVNode as g, withDirectives as H, mergeProps as R, toDisplayString as q, Fragment as U, renderList as T, vModelSelect as G, createVNode as J } from "vue";
3
3
  import K from "../icon/comps/caret-down.vue.mjs";
4
4
  import Q from "../labelStandalone/CdrLabelStandalone.vue.mjs";
5
5
  import W from "../formError/CdrFormError.vue.mjs";
@@ -19,21 +19,23 @@ const re = L({
19
19
  inheritAttrs: !1,
20
20
  props: {
21
21
  /**
22
- * `id` for the select that is mapped to the label `for` attribute. If one is not provided, it will be generated.
22
+ * Custom ID that is mapped to the label for attribute. If this value is not set, it will be auto-generated.
23
23
  */
24
24
  id: {
25
25
  type: String
26
26
  },
27
27
  /**
28
- * Label text. This is required for a11y even if hiding the label with `hideLabel`.
28
+ * Sets the text value for the select label.
29
+ * Required for accessibility compliance. Use ‘hideLabel’ to
30
+ * visually hide the label but keep it available to screenreaders.
29
31
  */
30
32
  label: {
31
33
  type: String,
32
34
  required: !0
33
35
  },
34
36
  /**
35
- * Removes the label element but sets the select `aria-label` to `label` text for a11y.
36
- */
37
+ * Visually hides the label element, but leaves it available to screen readers for accessibility compliance.
38
+ */
37
39
  hideLabel: {
38
40
  type: Boolean,
39
41
  default: !1
@@ -43,36 +45,60 @@ const re = L({
43
45
  */
44
46
  prompt: String,
45
47
  /**
46
- * Build options programatically with data. Array of objects [{ text: String, value: String}] to give greater control. Array of strings ['String'] for simpler setup (value and text will be the same).
48
+ * Build options programmatically with data.
49
+ * Provide an array of objects [{ text: String, value: String}] for greater control
50
+ * or provide an array of strings ['String'] for simpler setup (value and text will be the same).
47
51
  */
48
52
  options: {
49
53
  type: Array
50
54
  },
51
- // Set which background type the select renders on
55
+ /**
56
+ * Sets the background color the radio button is rendered on
57
+ * @values primary, secondary
58
+ */
52
59
  background: Y,
60
+ /**
61
+ * Sets the component's size; values can target responsive breakpoints. Example `small@lg`
62
+ * @demoSelectMultiple false
63
+ * @values small, medium, large
64
+ */
53
65
  size: X,
54
- // Set error styling
66
+ /** Sets the select to an error state, displays the `error` slot if one is present. */
55
67
  error: {
56
68
  type: [Boolean, String],
57
69
  default: !1
58
70
  },
59
71
  /**
60
- * Override the error message role, default is `status`.
72
+ * Sets the `role` attribute for the embedded error state messaging.
61
73
  */
62
74
  errorRole: {
63
75
  type: String,
64
- required: !1
76
+ default: "status"
65
77
  },
78
+ /** @ignore */
66
79
  modelValue: {
67
80
  type: [String, Number, Boolean, Object, Array, Symbol, Function]
68
81
  },
82
+ /** Disables the input and sets appropriate styling */
69
83
  disabled: Boolean,
84
+ /** Sets aria-required on the input field and displays an asterisk next to the select label */
70
85
  required: Boolean,
86
+ /** Displays '(optional)' text next to the select label. */
71
87
  optional: Boolean,
88
+ /** Turns CdrSelect into a multi-select element. */
72
89
  multiple: Boolean,
90
+ /** Sets the height of the CdrSelect when using the multiple option.
91
+ * This number corresponds to the number of select options that will be visible without scrolling.
92
+ */
73
93
  multipleSize: Number
74
94
  },
75
- emits: ["update:modelValue"],
95
+ emits: {
96
+ /**
97
+ * Event emitted by v-model on the radio's <input> element
98
+ * @param modelValue
99
+ */
100
+ "update:modelValue": null
101
+ },
76
102
  customOptions: {},
77
103
  setup(e, r) {
78
104
  const p = "cdr-select", $ = r.slots["helper-text"], k = r.slots.info, v = r.slots["info-action"], d = r.slots["pre-icon"], c = e.id ? e.id : _(), f = o(() => e.multiple && "cdr-select--multiple"), l = o(() => !e.modelValue && "cdr-select__prompt"), z = o(() => d && "cdr-select--preicon"), B = o(() => e.error && "cdr-select--error"), V = o(() => `cdr-select--${e.background}`), M = o(() => e.size && `${p}--${e.size}`), w = o(() => e.disabled && "cdr-select__caret--disabled"), A = o(() => {
@@ -134,12 +160,12 @@ function se(e, r, p, $, k, v) {
134
160
  optional: e.optional,
135
161
  disabled: e.disabled
136
162
  }, F({
137
- default: n(() => [q("div", {
163
+ default: n(() => [I("div", {
138
164
  class: u(e.style["cdr-select-wrap"])
139
165
  }, [e.hasPreIcon ? (a(), m("span", {
140
166
  key: 0,
141
167
  class: u(e.style["cdr-select__pre-icon"])
142
- }, [i(e.$slots, "pre-icon")], 2)) : g("", !0), H(q("select", R({
168
+ }, [i(e.$slots, "pre-icon")], 2)) : g("", !0), H(I("select", R({
143
169
  id: e.uniqueId,
144
170
  class: e.mapClasses(e.style, e.baseClass, e.sizeClass, e.promptClass, e.multipleClass, e.backgroundClass, e.errorClass, e.preIconClass),
145
171
  multiple: e.multiple,
@@ -157,10 +183,10 @@ function se(e, r, p, $, k, v) {
157
183
  class: u(e.style["cdr-select__prompt"]),
158
184
  value: "",
159
185
  disabled: ""
160
- }, I(e.prompt), 3)) : g("", !0), (a(!0), m(U, null, T(e.computedOpts, (l) => (a(), m("option", {
186
+ }, q(e.prompt), 3)) : g("", !0), (a(!0), m(U, null, T(e.computedOpts, (l) => (a(), m("option", {
161
187
  key: l.text,
162
188
  value: l.value
163
- }, I(l.text), 9, le))), 128)), i(e.$slots, "default")], 16, oe), [[G, e.selectModel]]), J(d, {
189
+ }, q(l.text), 9, le))), 128)), i(e.$slots, "default")], 16, oe), [[G, e.selectModel]]), J(d, {
164
190
  class: u(e.mapClasses(e.style, "cdr-select__caret", e.caretDisabledClass))
165
191
  }, null, 8, ["class"])], 2)]),
166
192
  _: 2
@@ -1,46 +1,46 @@
1
1
  const l = {
2
- "cdr-icon": "cdr-icon_13-5-0-alpha-1",
3
- "cdr-icon--small": "cdr-icon--small_13-5-0-alpha-1",
4
- "cdr-icon--large": "cdr-icon--large_13-5-0-alpha-1",
5
- "cdr-icon--small@xs": "cdr-icon--small@xs_13-5-0-alpha-1",
6
- "cdr-icon--large@xs": "cdr-icon--large@xs_13-5-0-alpha-1",
7
- "cdr-icon--small@sm": "cdr-icon--small@sm_13-5-0-alpha-1",
8
- "cdr-icon--large@sm": "cdr-icon--large@sm_13-5-0-alpha-1",
9
- "cdr-icon--small@md": "cdr-icon--small@md_13-5-0-alpha-1",
10
- "cdr-icon--large@md": "cdr-icon--large@md_13-5-0-alpha-1",
11
- "cdr-icon--small@lg": "cdr-icon--small@lg_13-5-0-alpha-1",
12
- "cdr-icon--large@lg": "cdr-icon--large@lg_13-5-0-alpha-1",
13
- "cdr-icon--inherit-color": "cdr-icon--inherit-color_13-5-0-alpha-1",
14
- "cdr-label-standalone": "cdr-label-standalone_13-5-0-alpha-1",
15
- "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_13-5-0-alpha-1",
16
- "cdr-label-standalone__label": "cdr-label-standalone__label_13-5-0-alpha-1",
17
- "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_13-5-0-alpha-1",
18
- "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_13-5-0-alpha-1",
19
- "cdr-label-standalone__optional": "cdr-label-standalone__optional_13-5-0-alpha-1",
20
- "cdr-label-standalone__helper": "cdr-label-standalone__helper_13-5-0-alpha-1",
21
- "cdr-label-standalone__info": "cdr-label-standalone__info_13-5-0-alpha-1",
22
- "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_13-5-0-alpha-1",
23
- "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_13-5-0-alpha-1",
24
- "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_13-5-0-alpha-1",
25
- "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_13-5-0-alpha-1",
26
- "cdr-form-error": "cdr-form-error_13-5-0-alpha-1",
27
- "cdr-form-error__icon": "cdr-form-error__icon_13-5-0-alpha-1",
28
- "cdr-select": "cdr-select_13-5-0-alpha-1",
29
- "cdr-select--primary": "cdr-select--primary_13-5-0-alpha-1",
30
- "cdr-select--secondary": "cdr-select--secondary_13-5-0-alpha-1",
31
- "cdr-select--error": "cdr-select--error_13-5-0-alpha-1",
32
- "cdr-select--preicon": "cdr-select--preicon_13-5-0-alpha-1",
33
- "cdr-select__prompt": "cdr-select__prompt_13-5-0-alpha-1",
34
- "cdr-select__caret": "cdr-select__caret_13-5-0-alpha-1",
35
- "cdr-select__caret--disabled": "cdr-select__caret--disabled_13-5-0-alpha-1",
36
- "cdr-select__pre-icon": "cdr-select__pre-icon_13-5-0-alpha-1",
37
- "cdr-select--multiple": "cdr-select--multiple_13-5-0-alpha-1",
38
- "cdr-select--large@xs": "cdr-select--large@xs_13-5-0-alpha-1",
39
- "cdr-select--large": "cdr-select--large_13-5-0-alpha-1",
40
- "cdr-select--large@sm": "cdr-select--large@sm_13-5-0-alpha-1",
41
- "cdr-select--large@md": "cdr-select--large@md_13-5-0-alpha-1",
42
- "cdr-select--large@lg": "cdr-select--large@lg_13-5-0-alpha-1",
43
- "cdr-select-wrap": "cdr-select-wrap_13-5-0-alpha-1"
2
+ "cdr-icon": "cdr-icon_13-5-0",
3
+ "cdr-icon--small": "cdr-icon--small_13-5-0",
4
+ "cdr-icon--large": "cdr-icon--large_13-5-0",
5
+ "cdr-icon--small@xs": "cdr-icon--small@xs_13-5-0",
6
+ "cdr-icon--large@xs": "cdr-icon--large@xs_13-5-0",
7
+ "cdr-icon--small@sm": "cdr-icon--small@sm_13-5-0",
8
+ "cdr-icon--large@sm": "cdr-icon--large@sm_13-5-0",
9
+ "cdr-icon--small@md": "cdr-icon--small@md_13-5-0",
10
+ "cdr-icon--large@md": "cdr-icon--large@md_13-5-0",
11
+ "cdr-icon--small@lg": "cdr-icon--small@lg_13-5-0",
12
+ "cdr-icon--large@lg": "cdr-icon--large@lg_13-5-0",
13
+ "cdr-icon--inherit-color": "cdr-icon--inherit-color_13-5-0",
14
+ "cdr-label-standalone": "cdr-label-standalone_13-5-0",
15
+ "cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_13-5-0",
16
+ "cdr-label-standalone__label": "cdr-label-standalone__label_13-5-0",
17
+ "cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_13-5-0",
18
+ "cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_13-5-0",
19
+ "cdr-label-standalone__optional": "cdr-label-standalone__optional_13-5-0",
20
+ "cdr-label-standalone__helper": "cdr-label-standalone__helper_13-5-0",
21
+ "cdr-label-standalone__info": "cdr-label-standalone__info_13-5-0",
22
+ "cdr-label-standalone__post-content": "cdr-label-standalone__post-content_13-5-0",
23
+ "cdr-label-standalone__info-action": "cdr-label-standalone__info-action_13-5-0",
24
+ "cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_13-5-0",
25
+ "cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_13-5-0",
26
+ "cdr-form-error": "cdr-form-error_13-5-0",
27
+ "cdr-form-error__icon": "cdr-form-error__icon_13-5-0",
28
+ "cdr-select": "cdr-select_13-5-0",
29
+ "cdr-select--primary": "cdr-select--primary_13-5-0",
30
+ "cdr-select--secondary": "cdr-select--secondary_13-5-0",
31
+ "cdr-select--error": "cdr-select--error_13-5-0",
32
+ "cdr-select--preicon": "cdr-select--preicon_13-5-0",
33
+ "cdr-select__prompt": "cdr-select__prompt_13-5-0",
34
+ "cdr-select__caret": "cdr-select__caret_13-5-0",
35
+ "cdr-select__caret--disabled": "cdr-select__caret--disabled_13-5-0",
36
+ "cdr-select__pre-icon": "cdr-select__pre-icon_13-5-0",
37
+ "cdr-select--multiple": "cdr-select--multiple_13-5-0",
38
+ "cdr-select--large@xs": "cdr-select--large@xs_13-5-0",
39
+ "cdr-select--large": "cdr-select--large_13-5-0",
40
+ "cdr-select--large@sm": "cdr-select--large@sm_13-5-0",
41
+ "cdr-select--large@md": "cdr-select--large@md_13-5-0",
42
+ "cdr-select--large@lg": "cdr-select--large@lg_13-5-0",
43
+ "cdr-select-wrap": "cdr-select-wrap_13-5-0"
44
44
  };
45
45
  export {
46
46
  l as default
@@ -4,6 +4,12 @@ import m from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const u = t({
5
5
  name: "CdrSkeleton",
6
6
  props: {
7
+ /**
8
+ * Toggle animation on/off.
9
+ * When `true`, animated gradient will be used while loading.
10
+ * When `false` a static background color will be used.
11
+ * Automatically disabled if `prefers-reduced-motion` is set by user.
12
+ */
7
13
  motion: {
8
14
  type: Boolean,
9
15
  default: !0
@@ -6,6 +6,11 @@ import C from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
6
  const y = a({
7
7
  name: "CdrSkeletonBone",
8
8
  props: {
9
+ /**
10
+ * Sets the type of content placeholder
11
+ * @demoSelectMultiple false
12
+ * @values default, heading, line, rectangle, square
13
+ */
9
14
  type: {
10
15
  type: String,
11
16
  required: !1,
@@ -1,5 +1,5 @@
1
1
  const e = {
2
- "cdr-skeleton": "cdr-skeleton_13-5-0-alpha-1"
2
+ "cdr-skeleton": "cdr-skeleton_13-5-0"
3
3
  };
4
4
  export {
5
5
  e as default
@@ -1,11 +1,11 @@
1
- const e = "shimmer_13-5-0-alpha-1", n = {
2
- "cdr-skeleton-bone": "cdr-skeleton-bone_13-5-0-alpha-1",
3
- "cdr-skeleton-bone__shimmer": "cdr-skeleton-bone__shimmer_13-5-0-alpha-1",
1
+ const e = "shimmer_13-5-0", n = {
2
+ "cdr-skeleton-bone": "cdr-skeleton-bone_13-5-0",
3
+ "cdr-skeleton-bone__shimmer": "cdr-skeleton-bone__shimmer_13-5-0",
4
4
  shimmer: e,
5
- "cdr-skeleton-bone--line": "cdr-skeleton-bone--line_13-5-0-alpha-1",
6
- "cdr-skeleton-bone--heading": "cdr-skeleton-bone--heading_13-5-0-alpha-1",
7
- "cdr-skeleton-bone--rectangle": "cdr-skeleton-bone--rectangle_13-5-0-alpha-1",
8
- "cdr-skeleton-bone--square": "cdr-skeleton-bone--square_13-5-0-alpha-1"
5
+ "cdr-skeleton-bone--line": "cdr-skeleton-bone--line_13-5-0",
6
+ "cdr-skeleton-bone--heading": "cdr-skeleton-bone--heading_13-5-0",
7
+ "cdr-skeleton-bone--rectangle": "cdr-skeleton-bone--rectangle_13-5-0",
8
+ "cdr-skeleton-bone--square": "cdr-skeleton-bone--square_13-5-0"
9
9
  };
10
10
  export {
11
11
  n as default,
@@ -14,24 +14,44 @@ const B = h({
14
14
  IconXSm: $
15
15
  },
16
16
  props: {
17
+ /**
18
+ * Sets a custom ID for the switch. If this value is not set, it will be auto-generated.
19
+ */
17
20
  id: {
18
21
  type: String
19
22
  },
23
+ /**
24
+ * Sets the size of the switch
25
+ * @demoSelectMultiple false
26
+ * @values medium, large
27
+ */
20
28
  size: {
21
29
  type: String,
22
30
  default: "medium",
23
31
  validator: (e) => b(e, ["medium", "large"])
24
32
  },
33
+ /**
34
+ * Sets the label and switch to expand to the full width of its container with `space-between`
35
+ */
25
36
  fullWidth: {
26
37
  type: Boolean,
27
38
  default: !1
28
39
  },
40
+ /**
41
+ * @demoIgnore true
42
+ */
29
43
  modelValue: {
30
44
  type: Boolean,
31
45
  required: !0
32
46
  }
33
47
  },
34
- emits: ["update:modelValue"],
48
+ emits: {
49
+ /**
50
+ * Event emitted by v-model on switch
51
+ * @param modelValue
52
+ */
53
+ "update:modelValue": null
54
+ },
35
55
  setup(e, l) {
36
56
  const d = p(), a = e.id ? e.id : S(), c = (r) => {
37
57
  l.emit("update:modelValue", !r);
@@ -1,12 +1,12 @@
1
1
  const c = {
2
- "cdr-switch": "cdr-switch_13-5-0-alpha-1",
3
- "cdr-switch__button": "cdr-switch__button_13-5-0-alpha-1",
4
- "cdr-switch__button-icon": "cdr-switch__button-icon_13-5-0-alpha-1",
5
- "cdr-switch__handle": "cdr-switch__handle_13-5-0-alpha-1",
6
- "cdr-switch__label": "cdr-switch__label_13-5-0-alpha-1",
7
- "cdr-switch--full-width": "cdr-switch--full-width_13-5-0-alpha-1",
8
- "cdr-switch--large": "cdr-switch--large_13-5-0-alpha-1",
9
- "cdr-switch--medium": "cdr-switch--medium_13-5-0-alpha-1"
2
+ "cdr-switch": "cdr-switch_13-5-0",
3
+ "cdr-switch__button": "cdr-switch__button_13-5-0",
4
+ "cdr-switch__button-icon": "cdr-switch__button-icon_13-5-0",
5
+ "cdr-switch__handle": "cdr-switch__handle_13-5-0",
6
+ "cdr-switch__label": "cdr-switch__label_13-5-0",
7
+ "cdr-switch--full-width": "cdr-switch--full-width_13-5-0",
8
+ "cdr-switch--large": "cdr-switch--large_13-5-0",
9
+ "cdr-switch--medium": "cdr-switch--medium_13-5-0"
10
10
  };
11
11
  export {
12
12
  c as default
@@ -7,26 +7,38 @@ import z from "../../../_virtual/_plugin-vue_export-helper.mjs";
7
7
  const W = u({
8
8
  name: "CdrTable",
9
9
  props: {
10
+ /** Sets row colors to alternate between darker and lighter backgrounds.
11
+ * Striping will not apply when `border` is true
12
+ */
10
13
  striped: {
11
14
  type: Boolean,
12
15
  default: !1
13
16
  },
17
+ /** Adds borders between rows. Will disable `striped` if both are true */
14
18
  border: {
15
19
  type: Boolean,
16
20
  default: !0
17
21
  },
22
+ /** Sets the width to 100%. Also accepts space separated strings for breakpoints that it should be full width: { '@xs' | '@sm' | '@md' | '@lg' } */
18
23
  fullWidth: {
19
24
  type: [Boolean, String],
20
25
  default: !0
21
26
  },
27
+ /** Makes the table scroll horizontally when it would overflow its container */
22
28
  responsive: {
23
29
  type: Boolean,
24
30
  default: !0
25
31
  },
32
+ /** Adds a darker background on row hover */
26
33
  hover: {
27
34
  type: Boolean,
28
35
  default: !1
29
36
  },
37
+ /**
38
+ * Sets the table size (cell padding); values can target responsive breakpoints. Example `small@lg`.
39
+ * @demoSelectMultiple false
40
+ * @values small, medium, large
41
+ */
30
42
  size: {
31
43
  type: String,
32
44
  default: "medium",
@@ -1,17 +1,17 @@
1
1
  const l = {
2
- "cdr-table": "cdr-table_13-5-0-alpha-1",
3
- "cdr-table--small": "cdr-table--small_13-5-0-alpha-1",
4
- "cdr-table--medium": "cdr-table--medium_13-5-0-alpha-1",
5
- "cdr-table--large": "cdr-table--large_13-5-0-alpha-1",
6
- "cdr-table--striped": "cdr-table--striped_13-5-0-alpha-1",
7
- "cdr-table--border": "cdr-table--border_13-5-0-alpha-1",
8
- "cdr-table--full-width": "cdr-table--full-width_13-5-0-alpha-1",
9
- "cdr-table--responsive": "cdr-table--responsive_13-5-0-alpha-1",
10
- "cdr-table--hover": "cdr-table--hover_13-5-0-alpha-1",
11
- "cdr-table--full-width@xs": "cdr-table--full-width@xs_13-5-0-alpha-1",
12
- "cdr-table--full-width@sm": "cdr-table--full-width@sm_13-5-0-alpha-1",
13
- "cdr-table--full-width@md": "cdr-table--full-width@md_13-5-0-alpha-1",
14
- "cdr-table--full-width@lg": "cdr-table--full-width@lg_13-5-0-alpha-1"
2
+ "cdr-table": "cdr-table_13-5-0",
3
+ "cdr-table--small": "cdr-table--small_13-5-0",
4
+ "cdr-table--medium": "cdr-table--medium_13-5-0",
5
+ "cdr-table--large": "cdr-table--large_13-5-0",
6
+ "cdr-table--striped": "cdr-table--striped_13-5-0",
7
+ "cdr-table--border": "cdr-table--border_13-5-0",
8
+ "cdr-table--full-width": "cdr-table--full-width_13-5-0",
9
+ "cdr-table--responsive": "cdr-table--responsive_13-5-0",
10
+ "cdr-table--hover": "cdr-table--hover_13-5-0",
11
+ "cdr-table--full-width@xs": "cdr-table--full-width@xs_13-5-0",
12
+ "cdr-table--full-width@sm": "cdr-table--full-width@sm_13-5-0",
13
+ "cdr-table--full-width@md": "cdr-table--full-width@md_13-5-0",
14
+ "cdr-table--full-width@lg": "cdr-table--full-width@lg_13-5-0"
15
15
  };
16
16
  export {
17
17
  l as default
@@ -1,15 +1,26 @@
1
- import { defineComponent as r, inject as c, computed as i, useCssModule as d, watch as m, withDirectives as p, openBlock as u, createElementBlock as b, normalizeClass as f, renderSlot as h, vShow as v } from "vue";
2
- import { kebabCase as $ } from "lodash-es";
3
- import y from "./styles/CdrTabPanel.module.scss.mjs";
1
+ import { defineComponent as r, inject as d, computed as i, useCssModule as c, watch as m, withDirectives as p, openBlock as b, createElementBlock as u, normalizeClass as f, renderSlot as h, vShow as v } from "vue";
2
+ import { kebabCase as y } from "lodash-es";
3
+ import $ from "./styles/CdrTabPanel.module.scss.mjs";
4
4
  import C from "../../../_virtual/_plugin-vue_export-helper.mjs";
5
5
  const _ = r({
6
6
  name: "CdrTabPanel",
7
7
  props: {
8
- name: String
8
+ /** Sets reference identifier for tab content. This property is required and is necessary for accessibility. Must be unique for each tabPanel, and cannot be the same as the `aria-labelledby` property. */
9
+ id: String,
10
+ /** Sets tab display name. Required and must be unique for each tab. If `id` is not provided, this value will be used as the reference identifier. */
11
+ name: String,
12
+ /** Sets reference identifier for tab header. This property is required and is necessary for accessibility. Must be unique for each tabPanel, and cannot be the same as the `id` property. */
13
+ ariaLabelledby: String
14
+ },
15
+ emits: {
16
+ /**
17
+ * Emits when active tab is changed
18
+ * @params state, panelId
19
+ */
20
+ "tab-change": null
9
21
  },
10
- emits: ["tab-change"],
11
22
  setup(e, s) {
12
- const a = c("selectedTabName"), t = i(() => e.name === (a == null ? void 0 : a.value)), n = i(() => `${$(e.name)}-panel`), o = d();
23
+ const a = d("selectedTabName"), t = i(() => e.name === (a == null ? void 0 : a.value)), n = i(() => `${y(e.name)}-panel`), o = c();
13
24
  return m(t, (l) => {
14
25
  s.emit("tab-change", l, n.value);
15
26
  }), {
@@ -20,8 +31,8 @@ const _ = r({
20
31
  };
21
32
  }
22
33
  }), g = ["aria-hidden", "id", "aria-labelledby"];
23
- function k(e, s, a, t, n, o) {
24
- return p((u(), b("section", {
34
+ function S(e, s, a, t, n, o) {
35
+ return p((b(), u("section", {
25
36
  tabindex: "0",
26
37
  "aria-hidden": !e.isActive,
27
38
  role: "tabpanel",
@@ -30,9 +41,9 @@ function k(e, s, a, t, n, o) {
30
41
  "aria-labelledby": e.name
31
42
  }, [h(e.$slots, "default")], 10, g)), [[v, e.isActive]]);
32
43
  }
33
- const w = {
34
- $style: y
35
- }, I = /* @__PURE__ */ C(_, [["render", k], ["__cssModules", w]]);
44
+ const k = {
45
+ $style: $
46
+ }, I = /* @__PURE__ */ C(_, [["render", S], ["__cssModules", k]]);
36
47
  export {
37
48
  I as default
38
49
  };
@@ -8,16 +8,36 @@ import ne from "../../../_virtual/_plugin-vue_export-helper.mjs";
8
8
  const ie = V({
9
9
  name: "CdrTabs",
10
10
  props: {
11
+ /**
12
+ * Sets height of the tabs container element.
13
+ * Passing a `px` value will render tabs with a static height,
14
+ * passing `auto` will render tabs with variable height based on content size.
15
+ */
11
16
  height: {
12
17
  type: String,
13
18
  default: "240px"
14
19
  },
20
+ /** Sets the index of the tab that should be active on initial page load. Note that this property is zero-indexed. */
15
21
  activeTab: {
16
22
  type: Number,
17
23
  default: 0
18
24
  },
25
+ /**
26
+ * Modifies the style variants for this component
27
+ * @values centered, compact, full-width, no-border
28
+ */
19
29
  modifier: String,
30
+ /**
31
+ * Use `small` to reduce spacing around the tabs for a denser visual design
32
+ * @demoSelectMultiple true
33
+ * @values small
34
+ */
20
35
  size: String,
36
+ /**
37
+ * Sets the background color of the tab.
38
+ * For CdrTabs that are rendered on non-primary backgrounds.
39
+ * Pass the background-color into the component to ensure that the scrolling gradients render correctly.
40
+ */
21
41
  backgroundColor: {
22
42
  type: String,
23
43
  default: te
@@ -1,10 +1,10 @@
1
- const a = {
2
- "cdr-tab-panel": "cdr-tab-panel_13-5-0-alpha-1",
3
- "cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-5-0-alpha-1",
4
- "cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-5-0-alpha-1",
5
- "cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-5-0-alpha-1",
6
- "cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-5-0-alpha-1"
1
+ const t = {
2
+ "cdr-tab-panel": "cdr-tab-panel_13-5-0",
3
+ "cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-5-0",
4
+ "cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-5-0",
5
+ "cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-5-0",
6
+ "cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-5-0"
7
7
  };
8
8
  export {
9
- a as default
9
+ t as default
10
10
  };
@@ -1,33 +1,33 @@
1
- const a = {
2
- "cdr-tab-panel": "cdr-tab-panel_13-5-0-alpha-1",
3
- "cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-5-0-alpha-1",
4
- "cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-5-0-alpha-1",
5
- "cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-5-0-alpha-1",
6
- "cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-5-0-alpha-1",
7
- "cdr-tabs": "cdr-tabs_13-5-0-alpha-1",
8
- "cdr-tabs__header-container": "cdr-tabs__header-container_13-5-0-alpha-1",
9
- "cdr-tabs__header": "cdr-tabs__header_13-5-0-alpha-1",
10
- "cdr-tabs__header-item": "cdr-tabs__header-item_13-5-0-alpha-1",
11
- "cdr-tabs__header-item-active": "cdr-tabs__header-item-active_13-5-0-alpha-1",
12
- "cdr-tabs__header-item--disabled": "cdr-tabs__header-item--disabled_13-5-0-alpha-1",
13
- "cdr-tabs__gradient-container": "cdr-tabs__gradient-container_13-5-0-alpha-1",
14
- "cdr-tabs__gradient": "cdr-tabs__gradient_13-5-0-alpha-1",
15
- "cdr-tabs__gradient--left": "cdr-tabs__gradient--left_13-5-0-alpha-1",
16
- "cdr-tabs__gradient--right": "cdr-tabs__gradient--right_13-5-0-alpha-1",
17
- "cdr-tabs__gradient--active": "cdr-tabs__gradient--active_13-5-0-alpha-1",
18
- "cdr-tabs__underline": "cdr-tabs__underline_13-5-0-alpha-1",
19
- "cdr-tabs__content-container": "cdr-tabs__content-container_13-5-0-alpha-1",
20
- "fade-enter-active": "fade-enter-active_13-5-0-alpha-1",
21
- "fade-leave-active": "fade-leave-active_13-5-0-alpha-1",
22
- "fade-enter": "fade-enter_13-5-0-alpha-1",
23
- "fade-leave-to": "fade-leave-to_13-5-0-alpha-1",
24
- "cdr-tabs--compact": "cdr-tabs--compact_13-5-0-alpha-1",
25
- "cdr-tabs__header-item-label": "cdr-tabs__header-item-label_13-5-0-alpha-1",
26
- "cdr-tabs--small": "cdr-tabs--small_13-5-0-alpha-1",
27
- "cdr-tabs--no-border": "cdr-tabs--no-border_13-5-0-alpha-1",
28
- "cdr-tabs--full-width": "cdr-tabs--full-width_13-5-0-alpha-1",
29
- "cdr-tabs--centered": "cdr-tabs--centered_13-5-0-alpha-1"
1
+ const e = {
2
+ "cdr-tab-panel": "cdr-tab-panel_13-5-0",
3
+ "cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-5-0",
4
+ "cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-5-0",
5
+ "cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-5-0",
6
+ "cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-5-0",
7
+ "cdr-tabs": "cdr-tabs_13-5-0",
8
+ "cdr-tabs__header-container": "cdr-tabs__header-container_13-5-0",
9
+ "cdr-tabs__header": "cdr-tabs__header_13-5-0",
10
+ "cdr-tabs__header-item": "cdr-tabs__header-item_13-5-0",
11
+ "cdr-tabs__header-item-active": "cdr-tabs__header-item-active_13-5-0",
12
+ "cdr-tabs__header-item--disabled": "cdr-tabs__header-item--disabled_13-5-0",
13
+ "cdr-tabs__gradient-container": "cdr-tabs__gradient-container_13-5-0",
14
+ "cdr-tabs__gradient": "cdr-tabs__gradient_13-5-0",
15
+ "cdr-tabs__gradient--left": "cdr-tabs__gradient--left_13-5-0",
16
+ "cdr-tabs__gradient--right": "cdr-tabs__gradient--right_13-5-0",
17
+ "cdr-tabs__gradient--active": "cdr-tabs__gradient--active_13-5-0",
18
+ "cdr-tabs__underline": "cdr-tabs__underline_13-5-0",
19
+ "cdr-tabs__content-container": "cdr-tabs__content-container_13-5-0",
20
+ "fade-enter-active": "fade-enter-active_13-5-0",
21
+ "fade-leave-active": "fade-leave-active_13-5-0",
22
+ "fade-enter": "fade-enter_13-5-0",
23
+ "fade-leave-to": "fade-leave-to_13-5-0",
24
+ "cdr-tabs--compact": "cdr-tabs--compact_13-5-0",
25
+ "cdr-tabs__header-item-label": "cdr-tabs__header-item-label_13-5-0",
26
+ "cdr-tabs--small": "cdr-tabs--small_13-5-0",
27
+ "cdr-tabs--no-border": "cdr-tabs--no-border_13-5-0",
28
+ "cdr-tabs--full-width": "cdr-tabs--full-width_13-5-0",
29
+ "cdr-tabs--centered": "cdr-tabs--centered_13-5-0"
30
30
  };
31
31
  export {
32
- a as default
32
+ e as default
33
33
  };