@carbon/vue 3.0.9 → 3.0.10
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/carbon-vue-3.common.js +19590 -19300
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.css +1 -1
- package/dist/carbon-vue-3.umd.js +19541 -19251
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +3 -3
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/dist/web-types.json +5477 -0
- package/package.json +10 -42
- package/src/components/CvAccordion/CvAccordionItem.vue +1 -1
- package/src/components/CvButton/CvButton.stories.js +1 -1
- package/src/components/CvButton/CvButton.vue +2 -2
- package/src/components/CvButton/CvIconButton.stories.js +14 -17
- package/src/components/CvButton/CvIconButton.vue +8 -7
- package/src/components/CvCheckbox/CvCheckbox.vue +4 -3
- package/src/components/CvCodeSnippet/CvCodeSnippet.vue +5 -5
- package/src/components/CvCodeSnippet/_CviCodeSnippetInline.vue +2 -2
- package/src/components/CvCodeSnippet/_CviCodeSnippetMultiline.vue +6 -6
- package/src/components/CvCodeSnippet/_CviCodeSnippetOneline.vue +3 -3
- package/src/components/CvComboBox/CvComboBox.vue +8 -8
- package/src/components/CvContentSwitcher/CvContentSwitcher.vue +1 -1
- package/src/components/CvContentSwitcher/CvContentSwitcherButton.vue +1 -1
- package/src/components/CvCopyButton/CvCopyButton.vue +1 -1
- package/src/components/CvCopyButton/_CviCopyButton.vue +2 -2
- package/src/components/CvDataTable/CvDataTable.vue +29 -27
- package/src/components/CvDataTable/CvDataTableHeading.vue +9 -9
- package/src/components/CvDataTable/CvDataTableRow.vue +6 -6
- package/src/components/CvDataTable/CvDataTableSkeleton.vue +3 -3
- package/src/components/CvDataTable/_CvDataTableRowInner.vue +9 -9
- package/src/components/CvDatePicker/CvDatePicker.vue +10 -10
- package/src/components/CvDatePicker/CvDatePickerSkeleton.vue +3 -3
- package/src/components/CvDropdown/CvDropdown.vue +7 -9
- package/src/components/CvDropdown/CvDropdownItem.vue +1 -1
- package/src/components/CvFileUploader/CvFileUploader.vue +7 -7
- package/src/components/CvFileUploader/CvFileUploaderItem.vue +1 -1
- package/src/components/CvForm/CvFormGroup.vue +2 -2
- package/src/components/CvGrid/CvColumn.vue +5 -0
- package/src/components/CvLink/CvLink.vue +1 -1
- package/src/components/CvLoading/CvLoading.stories.js +1 -1
- package/src/components/CvLoading/CvLoading.vue +1 -1
- package/src/components/CvModal/CvModal.vue +19 -19
- package/src/components/CvMultiSelect/CvMultiSelect.vue +4 -4
- package/src/components/CvNotification/CvToastNotification.stories.js +12 -15
- package/src/components/CvNotification/CvToastNotification.vue +1 -1
- package/src/components/CvNumberInput/CvNumberInput.vue +3 -6
- package/src/components/CvOverflowMenu/CvOverflowMenu.vue +11 -10
- package/src/components/CvOverflowMenu/CvOverflowMenuItem.vue +1 -1
- package/src/components/CvPagination/CvPagination.vue +11 -15
- package/src/components/CvProgress/CvProgress.vue +1 -1
- package/src/components/CvProgress/CvProgressStep.vue +5 -5
- package/src/components/CvRadioButton/CvRadioButton.vue +3 -3
- package/src/components/CvSearch/CvSearch.vue +11 -10
- package/src/components/CvSelect/CvSelect.vue +1 -1
- package/src/components/CvSlider/CvSlider.vue +7 -7
- package/src/components/CvSlider/__tests__/__snapshots__/CvSlider.spec.js.snap +1 -1
- package/src/components/CvStructuredList/CvStructuredListItem.vue +3 -3
- package/src/components/CvStructuredList/CvStructuredListItemSelectable.vue +1 -1
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredListItem.spec.js.snap +3 -3
- package/src/components/CvSvg/__tests__/_TestIcon.vue +2 -2
- package/src/components/CvTabs/CvTab.vue +1 -1
- package/src/components/CvTabs/CvTabs.vue +12 -12
- package/src/components/CvTabs/__tests__/__snapshots__/CvTabs.spec.js.snap +6 -6
- package/src/components/CvTag/CvTag.stories.js +1 -1
- package/src/components/CvTag/CvTag.vue +1 -1
- package/src/components/CvTextArea/CvTextArea.vue +6 -6
- package/src/components/CvTextInput/CvTextInput.stories.js +28 -16
- package/src/components/CvTextInput/CvTextInput.vue +37 -7
- package/src/components/CvTextInput/CvTextInputSkeleton.vue +17 -0
- package/src/components/CvTextInput/index.js +2 -1
- package/src/components/CvTile/CvTile.vue +3 -3
- package/src/components/CvTile/CvTileExpandable.vue +7 -7
- package/src/components/CvTile/CvTileSelectable.vue +2 -2
- package/src/components/CvTimePicker/CvTimePicker.vue +1 -1
- package/src/components/CvTooltip/CvDefinitionTooltip.vue +2 -2
- package/src/components/CvTooltip/CvInteractiveTooltip.vue +6 -6
- package/src/components/CvTooltip/__tests__/__snapshots__/CvTooltip.spec.js.snap +14 -14
- package/src/components/CvUIShell/CvHeader.vue +1 -1
- package/src/components/CvUIShell/CvHeaderGlobalAction.vue +7 -7
- package/src/components/CvUIShell/CvHeaderMenu.vue +3 -3
- package/src/components/CvUIShell/CvHeaderMenuButton.vue +2 -2
- package/src/components/CvUIShell/CvHeaderMenuItem.vue +2 -2
- package/src/components/CvUIShell/CvHeaderName.vue +1 -1
- package/src/components/CvUIShell/CvHeaderNav.vue +1 -1
- package/src/components/CvUIShell/CvHeaderPanel.vue +3 -2
- package/src/components/CvUIShell/CvSideNav.vue +5 -4
- package/src/components/CvUIShell/CvSideNavItems.vue +1 -1
- package/src/components/CvUIShell/CvSideNavLink.vue +1 -1
- package/src/components/CvUIShell/_CvSideNavFooter.vue +2 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="cv-interactive-tooltip"
|
|
2
|
+
<div ref="root" class="cv-interactive-tooltip">
|
|
3
3
|
<div :id="`${cvId}-label`" :class="`${carbonPrefix}--tooltip__label`">
|
|
4
4
|
<slot name="label"></slot>
|
|
5
5
|
|
|
6
6
|
<button
|
|
7
|
+
ref="trigger"
|
|
7
8
|
:aria-expanded="dataVisible ? 'true' : 'false'"
|
|
8
9
|
:aria-labelledby="`${cvId}-label`"
|
|
9
10
|
:class="`${carbonPrefix}--tooltip__trigger`"
|
|
10
11
|
:aria-controls="`${cvId}`"
|
|
11
12
|
aria-haspopup="true"
|
|
12
|
-
ref="trigger"
|
|
13
13
|
type="button"
|
|
14
14
|
@click="toggle(dataVisible)"
|
|
15
15
|
@keydown.tab="onTriggerTab"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<div
|
|
25
25
|
:id="cvId"
|
|
26
|
+
ref="popup"
|
|
26
27
|
:aria-hidden="!dataVisible"
|
|
27
28
|
:data-floating-menu-direction="direction"
|
|
28
29
|
:class="[
|
|
@@ -33,18 +34,17 @@
|
|
|
33
34
|
[`${carbonPrefix}--tooltip--align-${alignment}`]: alignment,
|
|
34
35
|
},
|
|
35
36
|
]"
|
|
36
|
-
ref="popup"
|
|
37
37
|
role="dialog"
|
|
38
38
|
:aria-describedby="`${cvId}-body`"
|
|
39
39
|
:aria-labelledby="`${cvId}-label`"
|
|
40
|
-
@focusout="checkFocusOut"
|
|
41
40
|
:style="{ left: left + 'px', top: top + 'px' }"
|
|
42
41
|
tabindex="-1"
|
|
42
|
+
@focusout="checkFocusOut"
|
|
43
43
|
@mousedown.prevent="preventFocusOut"
|
|
44
44
|
>
|
|
45
45
|
<div
|
|
46
|
-
class="cv-interactive-tooltip__before-content"
|
|
47
46
|
ref="beforeContent"
|
|
47
|
+
class="cv-interactive-tooltip__before-content"
|
|
48
48
|
tabindex="0"
|
|
49
49
|
style="position: absolute; left: -9999px; width: 1px; height: 1px"
|
|
50
50
|
@focus="focusBeforeContent"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
<slot name="content"></slot>
|
|
55
55
|
</div>
|
|
56
56
|
<div
|
|
57
|
-
class="cv-interactive-tooltip__after-content"
|
|
58
57
|
ref="afterContent"
|
|
58
|
+
class="cv-interactive-tooltip__after-content"
|
|
59
59
|
tabindex="0"
|
|
60
60
|
style="position: absolute; left: -9999px; width: 1px; height: 1px"
|
|
61
61
|
@focus="focusAfterContent"
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`CvDefinitionTooltip should render definition tooltip with aligment and direction set as expected 1`] = `
|
|
4
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
5
|
-
<div class="bx--assistive-text"
|
|
4
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--bottom bx--tooltip--align-end" type="button">A term needeing definition</button>
|
|
5
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
6
6
|
</div>
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`CvDefinitionTooltip should render definition tooltip with aligment set to \`center\` as expected 1`] = `
|
|
10
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
11
|
-
<div class="bx--assistive-text"
|
|
10
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--top bx--tooltip--align-center" type="button">A term needeing definition</button>
|
|
11
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
12
12
|
</div>
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
15
|
exports[`CvDefinitionTooltip should render definition tooltip with aligment set to \`end\` as expected 1`] = `
|
|
16
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
17
|
-
<div class="bx--assistive-text"
|
|
16
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--top bx--tooltip--align-end" type="button">A term needeing definition</button>
|
|
17
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
18
18
|
</div>
|
|
19
19
|
`;
|
|
20
20
|
|
|
21
21
|
exports[`CvDefinitionTooltip should render definition tooltip with aligment set to \`start\` as expected 1`] = `
|
|
22
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
23
|
-
<div class="bx--assistive-text"
|
|
22
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--top bx--tooltip--align-start" type="button">A term needeing definition</button>
|
|
23
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
24
24
|
</div>
|
|
25
25
|
`;
|
|
26
26
|
|
|
27
27
|
exports[`CvDefinitionTooltip should render definition tooltip with direction set to \`bottom\` as expected 1`] = `
|
|
28
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
29
|
-
<div class="bx--assistive-text"
|
|
28
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--bottom bx--tooltip--align-center" type="button">A term needeing definition</button>
|
|
29
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
30
30
|
</div>
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
33
|
exports[`CvDefinitionTooltip should render definition tooltip with direction set to \`top\` as expected 1`] = `
|
|
34
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
35
|
-
<div class="bx--assistive-text"
|
|
34
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--top bx--tooltip--align-center" type="button">A term needeing definition</button>
|
|
35
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
36
36
|
</div>
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
exports[`CvDefinitionTooltip should render definition tooltip: minimal as expected 1`] = `
|
|
40
|
-
<div class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"
|
|
41
|
-
<div class="bx--assistive-text"
|
|
40
|
+
<div id="test-1" class="cv-definition-tooltip bx--tooltip--definition bx--tooltip--a11y"><button aria-describedby="test-1-label" class="bx--tooltip__trigger bx--tooltip--a11y bx--tooltip__trigger--definition bx--tooltip--top bx--tooltip--align-center" type="button">A term needeing definition</button>
|
|
41
|
+
<div id="test-1-label" class="bx--assistive-text" role="tooltip">Brief description of the dotted, underlined term</div>
|
|
42
42
|
</div>
|
|
43
43
|
`;
|
|
44
44
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<header :class="`cv-header ${carbonPrefix}--header`" data-header
|
|
2
|
+
<header :id="uid" :class="`cv-header ${carbonPrefix}--header`" data-header>
|
|
3
3
|
<slot />
|
|
4
4
|
<div v-if="hasGlobalHeader" :class="`${carbonPrefix}--header__global`">
|
|
5
5
|
<slot name="header-global" />
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<cv-icon-button
|
|
3
|
+
:id="uid"
|
|
4
|
+
ref="el"
|
|
3
5
|
:class="[
|
|
4
6
|
`cv-header-global-action`,
|
|
5
7
|
`${carbonPrefix}--header__action`,
|
|
@@ -9,15 +11,13 @@
|
|
|
9
11
|
aria-haspopup="true"
|
|
10
12
|
:aria-controls="ariaControls"
|
|
11
13
|
:aria-expanded="active ? 'true' : 'false'"
|
|
14
|
+
:label="label"
|
|
15
|
+
:tip-alignment="tipAlignment"
|
|
16
|
+
:tip-position="tipPosition"
|
|
12
17
|
@click="gaToggle"
|
|
13
18
|
@focusout="gaFocusout"
|
|
14
|
-
:id="uid"
|
|
15
|
-
:label="label"
|
|
16
|
-
:tipAlignment="tipAlignment"
|
|
17
|
-
:tipPosition="tipPosition"
|
|
18
|
-
ref="el"
|
|
19
19
|
>
|
|
20
|
-
<template
|
|
20
|
+
<template #icon>
|
|
21
21
|
<slot />
|
|
22
22
|
</template>
|
|
23
23
|
</cv-icon-button>
|
|
@@ -39,7 +39,7 @@ import CvIconButton from '../CvButton/CvIconButton.vue';
|
|
|
39
39
|
|
|
40
40
|
const props = defineProps({
|
|
41
41
|
active: { type: Boolean, default: false },
|
|
42
|
-
ariaControls: { type: String },
|
|
42
|
+
ariaControls: { type: String, default: undefined },
|
|
43
43
|
label: { type: String, default: undefined },
|
|
44
44
|
tipPosition: {
|
|
45
45
|
type: String,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<li
|
|
3
|
+
ref="el"
|
|
3
4
|
:class="`cv-header-menu ${carbonPrefix}--header__submenu`"
|
|
4
5
|
@mouseenter="doHoverToggle(true)"
|
|
5
6
|
@mouseleave="doHoverToggle(false)"
|
|
6
|
-
ref="el"
|
|
7
7
|
>
|
|
8
8
|
<a
|
|
9
9
|
aria-haspopup="true"
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
/>
|
|
27
27
|
</a>
|
|
28
28
|
<ul
|
|
29
|
+
ref="menu"
|
|
29
30
|
:aria-label="$attrs.ariaLabel"
|
|
30
31
|
:aria-labelledby="$attrs.ariaLabelledBy"
|
|
31
32
|
:class="`${carbonPrefix}--header__menu`"
|
|
32
33
|
role="menu"
|
|
33
|
-
ref="menu"
|
|
34
34
|
@focusout="onFocusout"
|
|
35
35
|
>
|
|
36
36
|
<slot></slot>
|
|
@@ -44,7 +44,7 @@ import ChevronDownGlyph from '@carbon/icons-vue/es/chevron--down';
|
|
|
44
44
|
import { reactive, ref } from 'vue';
|
|
45
45
|
|
|
46
46
|
const props = defineProps({
|
|
47
|
-
title: String,
|
|
47
|
+
title: { type: String, default: undefined },
|
|
48
48
|
hoverToggle: { type: Boolean, default: true },
|
|
49
49
|
});
|
|
50
50
|
const data = reactive({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<button
|
|
3
|
+
:id="uid"
|
|
4
|
+
ref="el"
|
|
3
5
|
class="cv-header-menu-button"
|
|
4
6
|
:class="[
|
|
5
7
|
`${carbonPrefix}--header__action`,
|
|
@@ -16,8 +18,6 @@
|
|
|
16
18
|
:aria-expanded="active ? 'true' : 'false'"
|
|
17
19
|
@click="gaToggle"
|
|
18
20
|
@focusout="gaFocusout"
|
|
19
|
-
:id="uid"
|
|
20
|
-
ref="el"
|
|
21
21
|
>
|
|
22
22
|
<close20 v-if="dataActive" />
|
|
23
23
|
<menu20 v-if="!dataActive" />
|
|
@@ -16,7 +16,7 @@ import { carbonPrefix } from '../../global/settings';
|
|
|
16
16
|
import { useTagType, useLinkProps, props as propsLink } from '../../use/cvLink';
|
|
17
17
|
|
|
18
18
|
const props = defineProps({
|
|
19
|
-
prefix: String,
|
|
19
|
+
prefix: { type: String, default: undefined },
|
|
20
20
|
...propsLink,
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
:id="id"
|
|
4
|
+
ref="el"
|
|
3
5
|
:class="[
|
|
4
6
|
`cv-header-panel`,
|
|
5
7
|
`${carbonPrefix}--header-panel`,
|
|
6
8
|
{ [`${carbonPrefix}--header-panel--expanded`]: panelExpanded },
|
|
7
9
|
]"
|
|
8
10
|
:aria-hidden="!panelExpanded ? 'true' : 'false'"
|
|
9
|
-
:id="id"
|
|
10
11
|
@focusout="onFocusout"
|
|
11
12
|
@mousedown="onMouseDown"
|
|
12
|
-
ref="el"
|
|
13
13
|
>
|
|
14
14
|
<slot></slot>
|
|
15
15
|
</div>
|
|
@@ -39,6 +39,7 @@ const props = defineProps({
|
|
|
39
39
|
}
|
|
40
40
|
return true;
|
|
41
41
|
},
|
|
42
|
+
default: undefined,
|
|
42
43
|
},
|
|
43
44
|
expanded: Boolean,
|
|
44
45
|
id: { type: String, required: true },
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav
|
|
3
|
+
:id="id"
|
|
4
|
+
ref="el"
|
|
3
5
|
:class="[
|
|
4
6
|
`cv-side-nav`,
|
|
5
7
|
`${carbonPrefix}--side-nav`,
|
|
@@ -12,18 +14,16 @@
|
|
|
12
14
|
},
|
|
13
15
|
]"
|
|
14
16
|
:aria-hidden="!panelExpanded && !fixed ? 'true' : 'false'"
|
|
15
|
-
:id="id"
|
|
16
17
|
@focusout="onFocusout"
|
|
17
18
|
@mousedown="onMouseDown"
|
|
18
19
|
@mouseenter="onHoverToggle(true)"
|
|
19
20
|
@mouseleave="onHoverToggle(false)"
|
|
20
|
-
ref="el"
|
|
21
21
|
>
|
|
22
22
|
<slot></slot>
|
|
23
23
|
<cv-side-nav-footer
|
|
24
24
|
v-if="!fixed && !rail && !panelData.headerEmbedded"
|
|
25
25
|
:expanded="panelExpanded"
|
|
26
|
-
:
|
|
26
|
+
:assistive-text="assistiveToggleText"
|
|
27
27
|
@toggle-expand="toggleExpand"
|
|
28
28
|
/>
|
|
29
29
|
</nav>
|
|
@@ -55,11 +55,12 @@ const props = defineProps({
|
|
|
55
55
|
}
|
|
56
56
|
return true;
|
|
57
57
|
},
|
|
58
|
+
default: undefined,
|
|
58
59
|
},
|
|
59
60
|
expanded: Boolean,
|
|
60
61
|
fixed: Boolean,
|
|
61
62
|
id: { type: String, required: true },
|
|
62
|
-
assistiveToggleText: String,
|
|
63
|
+
assistiveToggleText: { type: String, default: undefined },
|
|
63
64
|
rail: Boolean,
|
|
64
65
|
});
|
|
65
66
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
:class="`${carbonPrefix}--side-nav__toggle`"
|
|
5
5
|
type="button"
|
|
6
6
|
v-bind="$attrs"
|
|
7
|
-
@click="$emit('toggle-expand')"
|
|
8
7
|
:title="assistiveText"
|
|
8
|
+
@click="$emit('toggle-expand')"
|
|
9
9
|
>
|
|
10
10
|
<div :class="`${carbonPrefix}--side-nav__icon`">
|
|
11
11
|
<close20
|
|
@@ -33,4 +33,5 @@ defineProps({
|
|
|
33
33
|
assistiveText: { type: String, default: 'Open / close side nav' },
|
|
34
34
|
expanded: Boolean,
|
|
35
35
|
});
|
|
36
|
+
defineEmits(['toggle-expand']);
|
|
36
37
|
</script>
|