@carbon/vue 3.0.20 → 3.0.22
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 +4420 -4885
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.umd.js +4422 -4887
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +4 -4
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/dist/web-types.json +14 -1
- package/package.json +4 -4
- package/src/components/CvAspectRatio/CvAspectRatio.stories.js +2 -5
- package/src/components/CvBreadcrumb/CvBreadcrumb.stories.js +2 -5
- package/src/components/CvButton/CvButton.stories.js +1 -3
- package/src/components/CvButton/CvButtonSet.stories.js +2 -6
- package/src/components/CvButton/CvButtonSkeleton.stories.js +1 -3
- package/src/components/CvButton/CvIconButton.stories.js +1 -3
- package/src/components/CvCheckbox/CvCheckbox.stories.js +5 -4
- package/src/components/CvCodeSnippet/CvCodeSnippet.stories.js +1 -2
- package/src/components/CvComboBox/CvComboBox.stories.js +2 -5
- package/src/components/CvCopyButton/CvCopyButton.stories.js +2 -5
- package/src/components/CvDataTable/CvDataTable.stories.mdx +82 -12
- package/src/components/CvDataTable/CvDataTable.vue +71 -96
- package/src/components/CvDataTable/CvDataTableHeading.vue +25 -45
- package/src/components/CvDataTable/CvDataTableRow.vue +50 -49
- package/src/components/CvDataTable/_CvDataTableRowInner.vue +9 -18
- package/src/components/CvDatePicker/CvDatePicker.stories.js +101 -27
- package/src/components/CvDatePicker/CvDatePicker.vue +4 -2
- package/src/components/CvLink/CvLink.stories.js +1 -2
- package/src/components/CvList/CvList.stories.js +2 -5
- package/src/components/CvLoading/CvLoading.stories.js +2 -5
- package/src/components/CvMultiSelect/CvMultiSelect.vue +4 -1
- package/src/components/CvNotification/CvInlineNotification.stories.js +2 -2
- package/src/components/CvNotification/CvToastNotification.stories.js +2 -2
- package/src/components/CvNumberInput/CvNumberInput.stories.js +2 -6
- package/src/components/CvNumberInput/CvNumberInputSkeleton.stories.js +2 -6
- package/src/components/CvRadioButton/CvRadioButton.stories.js +2 -5
- package/src/components/CvSkeletonText/CvSkeletonText.stories.js +2 -5
- package/src/components/CvSlider/CvSlider.stories.js +2 -6
- package/src/components/CvSlider/CvSliderSkeleton.stories.js +2 -6
- package/src/components/CvStructuredList/CvStructuredList.stories.js +2 -5
- package/src/components/CvTag/CvTag.stories.js +2 -5
- package/src/components/CvTag/CvTagSkeleton.stories.js +2 -5
- package/src/components/CvTextArea/CvTextArea.stories.js +2 -6
- package/src/components/CvTextArea/CvTextAreaSkeleton.stories.js +2 -6
- package/src/components/CvTextInput/CvTextInput.stories.js +2 -5
- package/src/components/CvToggle/CvToggle.stories.js +2 -5
- package/src/components/CvTooltip/CvDefinitionTooltip.stories.js +2 -6
- package/src/components/CvTooltip/CvInteractiveTooltip.stories.js +2 -6
- package/src/components/CvTooltip/CvTooltip.stories.js +2 -6
- package/src/use/overflow.js +2 -2
- package/src/components/CvDataTable/cvDataTableStore.js +0 -314
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
5
2
|
|
|
6
3
|
import { CvDatePicker } from '.';
|
|
7
4
|
import { CvDatePickerSkeleton } from '.';
|
|
@@ -20,7 +17,7 @@ tomorrow.setDate(now.getDate() + 1);
|
|
|
20
17
|
nextWeek.setDate(now.getDate() + 7);
|
|
21
18
|
|
|
22
19
|
export default {
|
|
23
|
-
title:
|
|
20
|
+
title: 'Component/CvDatePicker',
|
|
24
21
|
component: CvDatePicker,
|
|
25
22
|
parameters: {
|
|
26
23
|
a11y: {
|
|
@@ -44,7 +41,7 @@ export default {
|
|
|
44
41
|
|
|
45
42
|
const template = `
|
|
46
43
|
<div>
|
|
47
|
-
<cv-date-picker v-bind="args"
|
|
44
|
+
<cv-date-picker v-bind="args" :value="now" @change="onChange">
|
|
48
45
|
</cv-date-picker>
|
|
49
46
|
</div>
|
|
50
47
|
`;
|
|
@@ -64,7 +61,12 @@ export const Default = Template.bind({});
|
|
|
64
61
|
Default.args = initArgs;
|
|
65
62
|
Default.parameters = {
|
|
66
63
|
controls: {
|
|
67
|
-
exclude: [
|
|
64
|
+
exclude: [
|
|
65
|
+
'update:modelValue',
|
|
66
|
+
'invalid-message',
|
|
67
|
+
'modelValue',
|
|
68
|
+
'dateChange',
|
|
69
|
+
],
|
|
68
70
|
},
|
|
69
71
|
};
|
|
70
72
|
Default.parameters = storyParametersObject(
|
|
@@ -78,14 +80,13 @@ Default.parameters = storyParametersObject(
|
|
|
78
80
|
const modelValue = ref(now);
|
|
79
81
|
const templateVModel = `
|
|
80
82
|
<div>
|
|
81
|
-
<cv-date-picker v-bind="args"
|
|
83
|
+
<cv-date-picker v-bind="args" v-model="modelValue">
|
|
82
84
|
</cv-date-picker>
|
|
83
85
|
</div>
|
|
84
86
|
<div style="margin-top:2rem; background-color: #888888; padding:1rem">
|
|
85
87
|
<div style="font-size: 150%;">Sample interaction</div>
|
|
86
88
|
<label for="date-model" style='margin-right: 0.5rem'>V-model:</label>
|
|
87
|
-
<input id="date-model" type="text" :value="modelValue
|
|
88
|
-
<input v-if="args.kind === 'range'" id="date-model" type="text" :value="modelValue.endDate" @change="ev => modelValue.endDate = ev.currentTarget.value"/>
|
|
89
|
+
<input id="date-model" type="text" :value="modelValue" @change="ev => { modelValue = ev.currentTarget.value }"/>
|
|
89
90
|
</div>
|
|
90
91
|
`;
|
|
91
92
|
|
|
@@ -96,7 +97,6 @@ const TemplateVModel = args => {
|
|
|
96
97
|
args,
|
|
97
98
|
modelValue,
|
|
98
99
|
now,
|
|
99
|
-
onChange: action('change'),
|
|
100
100
|
}),
|
|
101
101
|
template: templateVModel,
|
|
102
102
|
};
|
|
@@ -106,7 +106,14 @@ export const vModel = TemplateVModel.bind({});
|
|
|
106
106
|
vModel.args = initArgs;
|
|
107
107
|
vModel.parameters = {
|
|
108
108
|
controls: {
|
|
109
|
-
exclude: [
|
|
109
|
+
exclude: [
|
|
110
|
+
'update:modelValue',
|
|
111
|
+
'invalid-message',
|
|
112
|
+
'modelValue',
|
|
113
|
+
'kind',
|
|
114
|
+
'value',
|
|
115
|
+
'dateChange',
|
|
116
|
+
],
|
|
110
117
|
},
|
|
111
118
|
};
|
|
112
119
|
vModel.parameters = storyParametersObject(
|
|
@@ -115,11 +122,58 @@ vModel.parameters = storyParametersObject(
|
|
|
115
122
|
vModel.args
|
|
116
123
|
);
|
|
117
124
|
|
|
125
|
+
/* range v-model */
|
|
126
|
+
const rangeValue = ref({ startDate: now, endDate: now });
|
|
127
|
+
const templateRangeVModel = `
|
|
128
|
+
<div>
|
|
129
|
+
<cv-date-picker v-bind="args" kind="range" v-model="rangeValue">
|
|
130
|
+
</cv-date-picker>
|
|
131
|
+
</div>
|
|
132
|
+
<div style="margin-top:2rem; background-color: #888888; padding:1rem">
|
|
133
|
+
<div style="font-size: 150%;">Sample range interaction</div>
|
|
134
|
+
<label for="date-model-1" style='margin-right: 0.5rem'>V-model:</label>
|
|
135
|
+
<input id="date-model-1" type="text" :value="rangeValue.startDate" @change="ev => { rangeValue.startDate = ev.currentTarget.value }"/>
|
|
136
|
+
<input id="date-model-2" type="text" :value="rangeValue.endDate" @change="ev => rangeValue.endDate = ev.currentTarget.value"/>
|
|
137
|
+
</div>
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
const TemplateRangeVModel = args => {
|
|
141
|
+
return {
|
|
142
|
+
components: { CvDatePicker },
|
|
143
|
+
setup: () => ({
|
|
144
|
+
args,
|
|
145
|
+
rangeValue,
|
|
146
|
+
now,
|
|
147
|
+
}),
|
|
148
|
+
template: templateRangeVModel,
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export const rangeVmodel = TemplateRangeVModel.bind({});
|
|
153
|
+
rangeVmodel.args = initArgs;
|
|
154
|
+
rangeVmodel.parameters = {
|
|
155
|
+
controls: {
|
|
156
|
+
exclude: [
|
|
157
|
+
'update:modelValue',
|
|
158
|
+
'invalid-message',
|
|
159
|
+
'modelValue',
|
|
160
|
+
'kind',
|
|
161
|
+
'value',
|
|
162
|
+
'dateChange',
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
rangeVmodel.parameters = storyParametersObject(
|
|
167
|
+
rangeVmodel.parameters,
|
|
168
|
+
templateRangeVModel,
|
|
169
|
+
rangeVmodel.args
|
|
170
|
+
);
|
|
171
|
+
|
|
118
172
|
/* INVALID MESSAGE STORY */
|
|
119
173
|
|
|
120
174
|
const templateInvalidMessage = `
|
|
121
175
|
<div>
|
|
122
|
-
<cv-date-picker v-bind="args"
|
|
176
|
+
<cv-date-picker v-bind="args" :value="now" @change="onChange">
|
|
123
177
|
</cv-date-picker>
|
|
124
178
|
</div>
|
|
125
179
|
`;
|
|
@@ -153,7 +207,7 @@ InvalidMessage.parameters = storyParametersObject(
|
|
|
153
207
|
|
|
154
208
|
const templateInvalidMessageSlot = `
|
|
155
209
|
<div>
|
|
156
|
-
<cv-date-picker v-bind="args"
|
|
210
|
+
<cv-date-picker v-bind="args" :value="now" @change="onChange">
|
|
157
211
|
<template #invalid-message>Invalid date slot</template>
|
|
158
212
|
</cv-date-picker>
|
|
159
213
|
</div>
|
|
@@ -194,7 +248,7 @@ InvalidMessageSlot.parameters = storyParametersObject(
|
|
|
194
248
|
const singleValue = ref(now);
|
|
195
249
|
const templateSingleUsingDate = `
|
|
196
250
|
<div>
|
|
197
|
-
<cv-date-picker v-bind="args"
|
|
251
|
+
<cv-date-picker v-bind="args" kind="single" v-model="singleValue" @dateChange="onDateChange">
|
|
198
252
|
</cv-date-picker>
|
|
199
253
|
</div>`;
|
|
200
254
|
const templateSingleUsingDateVModel = `
|
|
@@ -212,7 +266,7 @@ const TemplateSingleUsingDate = args => {
|
|
|
212
266
|
args,
|
|
213
267
|
now,
|
|
214
268
|
singleValue,
|
|
215
|
-
|
|
269
|
+
onDateChange: action('dateChange'),
|
|
216
270
|
}),
|
|
217
271
|
template: templateSingleUsingDate + templateSingleUsingDateVModel,
|
|
218
272
|
};
|
|
@@ -258,7 +312,7 @@ function changeMaxDate(inc) {
|
|
|
258
312
|
}
|
|
259
313
|
const templateSingleUsingMinMax = `
|
|
260
314
|
<div>
|
|
261
|
-
<cv-date-picker v-bind='args'
|
|
315
|
+
<cv-date-picker v-bind='args' kind="single" :value="now" :cal-options="calOptions" @dateChange="onDateChange">
|
|
262
316
|
</cv-date-picker>
|
|
263
317
|
<div style="margin-top:2rem; background-color: #888888; padding:1rem; width:fit-content">
|
|
264
318
|
<div>Reactive updates</div>
|
|
@@ -280,7 +334,7 @@ const TemplateSingleUsingMinMax = args => {
|
|
|
280
334
|
toggleDateFormat,
|
|
281
335
|
buttonLabel,
|
|
282
336
|
changeMaxDate,
|
|
283
|
-
|
|
337
|
+
onDateChange: action('dateChange'),
|
|
284
338
|
}),
|
|
285
339
|
template: templateSingleUsingMinMax,
|
|
286
340
|
};
|
|
@@ -303,7 +357,14 @@ SingleUsingMinMax.args = initArgs;
|
|
|
303
357
|
|
|
304
358
|
SingleUsingMinMax.parameters = {
|
|
305
359
|
controls: {
|
|
306
|
-
exclude: [
|
|
360
|
+
exclude: [
|
|
361
|
+
'update:modelValue',
|
|
362
|
+
'invalid-message',
|
|
363
|
+
'modelValue',
|
|
364
|
+
'kind',
|
|
365
|
+
'dateChange',
|
|
366
|
+
'value',
|
|
367
|
+
],
|
|
307
368
|
},
|
|
308
369
|
docs: {
|
|
309
370
|
source: { code: codeMinMax },
|
|
@@ -317,8 +378,10 @@ SingleUsingMinMax.parameters = {
|
|
|
317
378
|
|
|
318
379
|
const templateRangeUsingDate = `
|
|
319
380
|
<div>
|
|
320
|
-
<cv-date-picker v-bind="args"
|
|
321
|
-
|
|
381
|
+
<cv-date-picker v-bind="args"
|
|
382
|
+
kind="range"
|
|
383
|
+
:value="{startDate: now.toLocaleDateString(), endDate: tomorrow.toLocaleDateString()}"
|
|
384
|
+
@dateChange="onDateChange">
|
|
322
385
|
</cv-date-picker>
|
|
323
386
|
</div>
|
|
324
387
|
`;
|
|
@@ -330,7 +393,7 @@ const TemplateRangeUsingDate = args => {
|
|
|
330
393
|
args,
|
|
331
394
|
now,
|
|
332
395
|
tomorrow,
|
|
333
|
-
|
|
396
|
+
onDateChange: action('dateChange'),
|
|
334
397
|
}),
|
|
335
398
|
template: templateRangeUsingDate,
|
|
336
399
|
};
|
|
@@ -340,7 +403,14 @@ export const RangeUsingDate = TemplateRangeUsingDate.bind({});
|
|
|
340
403
|
RangeUsingDate.args = initArgs;
|
|
341
404
|
RangeUsingDate.parameters = {
|
|
342
405
|
controls: {
|
|
343
|
-
exclude: [
|
|
406
|
+
exclude: [
|
|
407
|
+
'update:modelValue',
|
|
408
|
+
'invalid-message',
|
|
409
|
+
'kind',
|
|
410
|
+
'modelValue',
|
|
411
|
+
'dateChange',
|
|
412
|
+
'value',
|
|
413
|
+
],
|
|
344
414
|
},
|
|
345
415
|
};
|
|
346
416
|
RangeUsingDate.parameters = storyParametersObject(
|
|
@@ -353,8 +423,7 @@ RangeUsingDate.parameters = storyParametersObject(
|
|
|
353
423
|
|
|
354
424
|
const templateMinimal = `
|
|
355
425
|
<div>
|
|
356
|
-
<cv-date-picker v-bind="args"
|
|
357
|
-
</cv-date-picker>
|
|
426
|
+
<cv-date-picker v-bind="args" :value="now" @change="onChange"/>
|
|
358
427
|
</div>
|
|
359
428
|
`;
|
|
360
429
|
|
|
@@ -373,7 +442,13 @@ const TemplateMinimal = args => {
|
|
|
373
442
|
export const Minimal = TemplateMinimal.bind({});
|
|
374
443
|
Minimal.parameters = {
|
|
375
444
|
controls: {
|
|
376
|
-
exclude: [
|
|
445
|
+
exclude: [
|
|
446
|
+
'update:modelValue',
|
|
447
|
+
'invalid-message',
|
|
448
|
+
'modelValue',
|
|
449
|
+
'dateChange',
|
|
450
|
+
'value',
|
|
451
|
+
],
|
|
377
452
|
},
|
|
378
453
|
};
|
|
379
454
|
Minimal.parameters = storyParametersObject(
|
|
@@ -395,7 +470,6 @@ const TemplateSkeleton = args => {
|
|
|
395
470
|
components: { CvDatePicker, CvDatePickerSkeleton },
|
|
396
471
|
setup: () => ({
|
|
397
472
|
args,
|
|
398
|
-
onChange: action('change'),
|
|
399
473
|
}),
|
|
400
474
|
template: templateSkeleton,
|
|
401
475
|
};
|
|
@@ -179,7 +179,7 @@ const props = defineProps({
|
|
|
179
179
|
const cvId = useCvId(props, true, 'date-picker-');
|
|
180
180
|
const isLight = useIsLight(props);
|
|
181
181
|
|
|
182
|
-
const emit = defineEmits(['update:modelValue']);
|
|
182
|
+
const emit = defineEmits(['update:modelValue', 'dateChange']);
|
|
183
183
|
|
|
184
184
|
const getKind = computed({
|
|
185
185
|
get() {
|
|
@@ -311,7 +311,7 @@ watch(
|
|
|
311
311
|
() => props.calOptions,
|
|
312
312
|
() => {
|
|
313
313
|
for (const [key, value] of Object.entries(props.calOptions)) {
|
|
314
|
-
calendar.value
|
|
314
|
+
calendar.value?.set(key, value);
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
{ deep: true }
|
|
@@ -332,6 +332,7 @@ const handleDatePick = (selectedDates, dateStr, instance) => {
|
|
|
332
332
|
});
|
|
333
333
|
|
|
334
334
|
emit('update:modelValue', temp);
|
|
335
|
+
emit('dateChange', selectedDates);
|
|
335
336
|
} else if (isRange.value && selectedDates[0] && selectedDates[1]) {
|
|
336
337
|
const startDate = dateToString(selectedDates[0]);
|
|
337
338
|
const endDate = dateToString(selectedDates[1]);
|
|
@@ -345,6 +346,7 @@ const handleDatePick = (selectedDates, dateStr, instance) => {
|
|
|
345
346
|
startDate: startDate,
|
|
346
347
|
endDate: endDate,
|
|
347
348
|
});
|
|
349
|
+
emit('dateChange', selectedDates);
|
|
348
350
|
}
|
|
349
351
|
};
|
|
350
352
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
2
|
storybookControlsFromProps,
|
|
4
3
|
storyParametersObject,
|
|
5
4
|
} from '../../global/storybook-utils';
|
|
@@ -9,7 +8,7 @@ import { Download16 } from '@carbon/icons-vue';
|
|
|
9
8
|
import { props as propsCvLink, linkSizes } from '../../use/cvLink';
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
|
-
title:
|
|
11
|
+
title: 'Component/CvLink',
|
|
13
12
|
component: CvLink,
|
|
14
13
|
argTypes: {
|
|
15
14
|
...storybookControlsFromProps(propsCvLink),
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { CvList, CvListItem } from '.';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
sbCompPrefix,
|
|
5
|
-
storyParametersObject,
|
|
6
|
-
} from '../../global/storybook-utils';
|
|
3
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
7
4
|
|
|
8
5
|
export default {
|
|
9
|
-
title:
|
|
6
|
+
title: 'Component/CvList',
|
|
10
7
|
component: CvList,
|
|
11
8
|
argTypes: {
|
|
12
9
|
ordered: {
|
|
@@ -2,14 +2,11 @@ import CvLoading from '.';
|
|
|
2
2
|
|
|
3
3
|
import { ref, computed } from 'vue';
|
|
4
4
|
import { action } from '@storybook/addon-actions';
|
|
5
|
-
import {
|
|
6
|
-
sbCompPrefix,
|
|
7
|
-
storyParametersObject,
|
|
8
|
-
} from '../../global/storybook-utils';
|
|
5
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
9
6
|
import './CvLoading.stories.scss';
|
|
10
7
|
|
|
11
8
|
export default {
|
|
12
|
-
title:
|
|
9
|
+
title: 'Component/CvLoading',
|
|
13
10
|
component: CvLoading,
|
|
14
11
|
argTypes: {
|
|
15
12
|
'loading-end': {
|
|
@@ -163,7 +163,10 @@
|
|
|
163
163
|
@mousemove="onMousemove(item.value)"
|
|
164
164
|
@mousedown.prevent
|
|
165
165
|
>
|
|
166
|
-
<div
|
|
166
|
+
<div
|
|
167
|
+
:class="`${carbonPrefix}--list-box__menu-item__option`"
|
|
168
|
+
:title="item.label"
|
|
169
|
+
>
|
|
167
170
|
<cv-checkbox
|
|
168
171
|
v-model="data.selectedItems"
|
|
169
172
|
tabindex="-1"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import {
|
|
2
|
+
import { storySourceCode } from '../../global/storybook-utils';
|
|
3
3
|
|
|
4
4
|
import { CvInlineNotification, CvNotificationConsts } from '.';
|
|
5
5
|
import DocumentationTemplate from './CvInlineNotificationTemplate.mdx';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
|
-
title:
|
|
8
|
+
title: 'Component/CvInlineNotification',
|
|
9
9
|
component: CvInlineNotification,
|
|
10
10
|
argTypes: {
|
|
11
11
|
kind: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import DocumentationTemplate from './CvToastNotificationTemplate.mdx';
|
|
3
|
-
import {
|
|
3
|
+
import { storySourceCode } from '../../global/storybook-utils';
|
|
4
4
|
import { CvToastNotification, CvNotificationConsts } from '.';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title:
|
|
7
|
+
title: 'Component/CvToastNotification',
|
|
8
8
|
component: CvToastNotification,
|
|
9
9
|
argTypes: {
|
|
10
10
|
kind: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { ref } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
sbCompPrefix,
|
|
4
|
-
storyParametersObject,
|
|
5
|
-
} from '../../global/storybook-utils';
|
|
6
|
-
import { StorybookGroupConst } from './StorybookGroupConst';
|
|
2
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
7
3
|
import CvNumberInput from './CvNumberInput.vue';
|
|
8
4
|
|
|
9
5
|
export default {
|
|
10
|
-
title:
|
|
6
|
+
title: 'Component/CvNumberInput',
|
|
11
7
|
component: CvNumberInput,
|
|
12
8
|
argTypes: {
|
|
13
9
|
// attrs
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
5
|
-
import { StorybookGroupConst } from './StorybookGroupConst';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
2
|
import CvNumberInputSkeleton from './CvNumberInputSkeleton.vue';
|
|
7
3
|
|
|
8
4
|
export default {
|
|
9
|
-
title:
|
|
5
|
+
title: 'Component/CvNumberInputSkeleton',
|
|
10
6
|
component: CvNumberInputSkeleton,
|
|
11
7
|
};
|
|
12
8
|
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import { CvRadioButton, CvRadioGroup } from '.';
|
|
3
|
-
import {
|
|
4
|
-
sbCompPrefix,
|
|
5
|
-
storyParametersObject,
|
|
6
|
-
} from '../../global/storybook-utils';
|
|
3
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
7
4
|
import { ref } from 'vue';
|
|
8
5
|
|
|
9
6
|
export default {
|
|
10
|
-
title:
|
|
7
|
+
title: 'Component/CvRadioButton',
|
|
11
8
|
component: CvRadioButton,
|
|
12
9
|
argTypes: {
|
|
13
10
|
checked: {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
5
2
|
|
|
6
3
|
import { CvSkeletonText } from '.';
|
|
7
4
|
|
|
8
5
|
export default {
|
|
9
|
-
title:
|
|
6
|
+
title: 'Component/CvSkeletonText',
|
|
10
7
|
component: CvSkeletonText,
|
|
11
8
|
argTypes: {
|
|
12
9
|
heading: { control: { type: 'boolean' } },
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { ref } from 'vue';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import {
|
|
4
|
-
sbCompPrefix,
|
|
5
|
-
storyParametersObject,
|
|
6
|
-
} from '../../global/storybook-utils';
|
|
7
|
-
import { sbSliderPrefix } from './sbSliderPrefix';
|
|
3
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
8
4
|
import { CvSlider } from '.';
|
|
9
5
|
|
|
10
6
|
export default {
|
|
11
|
-
title:
|
|
7
|
+
title: 'Component/CvSlider',
|
|
12
8
|
component: CvSlider,
|
|
13
9
|
argTypes: {
|
|
14
10
|
disabled: {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
5
|
-
import { sbSliderPrefix } from './sbSliderPrefix';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
2
|
import { CvSliderSkeleton } from '.';
|
|
7
3
|
|
|
8
4
|
export default {
|
|
9
|
-
title:
|
|
5
|
+
title: 'Component/CvSliderSkeleton',
|
|
10
6
|
component: CvSliderSkeleton,
|
|
11
7
|
};
|
|
12
8
|
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import { ref } from 'vue';
|
|
3
|
-
import {
|
|
4
|
-
sbCompPrefix,
|
|
5
|
-
storyParametersObject,
|
|
6
|
-
} from '../../global/storybook-utils';
|
|
3
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
7
4
|
import {
|
|
8
5
|
CvStructuredList,
|
|
9
6
|
CvStructuredListHeading,
|
|
@@ -12,7 +9,7 @@ import {
|
|
|
12
9
|
} from '.';
|
|
13
10
|
|
|
14
11
|
export default {
|
|
15
|
-
title:
|
|
12
|
+
title: 'Component/CvStructuredList',
|
|
16
13
|
component: CvStructuredList,
|
|
17
14
|
argTypes: {
|
|
18
15
|
selectable: {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import CvTag from './CvTag.vue';
|
|
2
2
|
import { tagKinds } from './consts.js';
|
|
3
3
|
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import {
|
|
5
|
-
sbCompPrefix,
|
|
6
|
-
storyParametersObject,
|
|
7
|
-
} from '../../global/storybook-utils';
|
|
4
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
8
5
|
import {
|
|
9
6
|
DataDefinition20,
|
|
10
7
|
Bee20,
|
|
@@ -27,7 +24,7 @@ const icons = {
|
|
|
27
24
|
};
|
|
28
25
|
|
|
29
26
|
export default {
|
|
30
|
-
title:
|
|
27
|
+
title: 'Component/CvTag',
|
|
31
28
|
component: CvTag,
|
|
32
29
|
argTypes: {
|
|
33
30
|
kind: { control: 'select', options: tagKinds },
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
5
2
|
import CvTagSkeleton from './CvTagSkeleton.vue';
|
|
6
3
|
|
|
7
4
|
export default {
|
|
8
|
-
title:
|
|
5
|
+
title: 'Component/CvTagSkeleton',
|
|
9
6
|
component: CvTagSkeleton,
|
|
10
7
|
};
|
|
11
8
|
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
5
|
-
import { StorybookGroupConst } from './StorybookGroupConst';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
2
|
import CvTextArea from '.';
|
|
7
3
|
import { ref } from 'vue';
|
|
8
4
|
|
|
9
5
|
export default {
|
|
10
|
-
title:
|
|
6
|
+
title: 'Component/CvTextArea',
|
|
11
7
|
component: CvTextArea,
|
|
12
8
|
argTypes: {
|
|
13
9
|
// attrs
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
5
|
-
import { StorybookGroupConst } from './StorybookGroupConst';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
2
|
import { CvTextAreaSkeleton } from './';
|
|
7
3
|
|
|
8
4
|
export default {
|
|
9
|
-
title:
|
|
5
|
+
title: 'Component/CvTextAreaSkeleton',
|
|
10
6
|
component: CvTextAreaSkeleton,
|
|
11
7
|
};
|
|
12
8
|
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
5
2
|
|
|
6
3
|
import { CvTextInput, CvTextInputSkeleton } from '.';
|
|
7
4
|
import { ref } from 'vue';
|
|
8
5
|
|
|
9
6
|
export default {
|
|
10
|
-
title:
|
|
7
|
+
title: 'Component/CvTextInput',
|
|
11
8
|
component: CvTextInput,
|
|
12
9
|
argTypes: {
|
|
13
10
|
// attrs
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sbCompPrefix,
|
|
3
|
-
storyParametersObject,
|
|
4
|
-
} from '../../global/storybook-utils';
|
|
1
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
5
2
|
|
|
6
3
|
import { CvToggle } from '.';
|
|
7
4
|
import { CvToggleSkeleton } from '.';
|
|
@@ -20,7 +17,7 @@ const initArgsMinimal = {
|
|
|
20
17
|
};
|
|
21
18
|
|
|
22
19
|
export default {
|
|
23
|
-
title:
|
|
20
|
+
title: 'Component/CvToggle',
|
|
24
21
|
component: CvToggle,
|
|
25
22
|
parameters: {
|
|
26
23
|
a11y: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import CvDefinitionTooltip from './CvDefinitionTooltip.vue';
|
|
2
|
-
import {
|
|
3
|
-
sbCompPrefix,
|
|
4
|
-
storyParametersObject,
|
|
5
|
-
} from '../../global/storybook-utils';
|
|
2
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
3
|
import { alignments, directions } from './consts';
|
|
7
|
-
import { sbTooltipPrefix } from './sbTooltipPrefix';
|
|
8
4
|
|
|
9
5
|
export default {
|
|
10
|
-
title:
|
|
6
|
+
title: 'Component/CvDefinitionTooltip',
|
|
11
7
|
component: CvDefinitionTooltip,
|
|
12
8
|
argTypes: {
|
|
13
9
|
alignment: {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import CvInteractiveTooltip from './CvInteractiveTooltip.vue';
|
|
2
|
-
import {
|
|
3
|
-
sbCompPrefix,
|
|
4
|
-
storyParametersObject,
|
|
5
|
-
} from '../../global/storybook-utils';
|
|
2
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
3
|
import { alignments, directions } from './consts';
|
|
7
|
-
import { sbTooltipPrefix } from './sbTooltipPrefix';
|
|
8
4
|
import Filter16 from '@carbon/icons-vue/es/filter/16';
|
|
9
5
|
|
|
10
6
|
export default {
|
|
11
|
-
title:
|
|
7
|
+
title: 'Component/CvInteractiveTooltip',
|
|
12
8
|
component: CvInteractiveTooltip,
|
|
13
9
|
argTypes: {
|
|
14
10
|
alignment: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import CvTooltip from './CvTooltip.vue';
|
|
2
|
-
import {
|
|
3
|
-
sbCompPrefix,
|
|
4
|
-
storyParametersObject,
|
|
5
|
-
} from '../../global/storybook-utils';
|
|
2
|
+
import { storyParametersObject } from '../../global/storybook-utils';
|
|
6
3
|
import { alignments, directions } from './consts';
|
|
7
|
-
import { sbTooltipPrefix } from './sbTooltipPrefix';
|
|
8
4
|
|
|
9
5
|
export default {
|
|
10
|
-
title:
|
|
6
|
+
title: 'Component/CvTooltip',
|
|
11
7
|
component: CvTooltip,
|
|
12
8
|
argTypes: {
|
|
13
9
|
alignment: {
|