@weni/unnnic-system 3.3.1-alpha.3 → 3.3.2
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/CHANGELOG.md +9 -1
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -1
- package/dist/components/Alert/Alert.vue.d.ts +119 -18
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Alert/Version1dot1.vue.d.ts +38 -2
- package/dist/components/Alert/Version1dot1.vue.d.ts.map +1 -1
- package/dist/components/AudioRecorder/AudioHandler.vue.d.ts +2 -2
- package/dist/components/AudioRecorder/AudioPlayer.vue.d.ts +1 -1
- package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +5 -5
- package/dist/components/AvatarIcon/AvatarIcon.vue.d.ts +2 -2
- package/dist/components/Banner/Banner.vue.d.ts +1 -1
- package/dist/components/Banner/InfoBanner.vue.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/dist/components/Button/Button.vue.d.ts +2 -2
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/ButtonIcon.vue.d.ts +1 -1
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/AccountCard.vue.d.ts +3 -3
- package/dist/components/Card/BlankCard.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts +21 -21
- package/dist/components/Card/CardCompany.vue.d.ts +8 -8
- package/dist/components/Card/CardData.vue.d.ts +1 -1
- package/dist/components/Card/CardStatusesContainer.vue.d.ts +4 -4
- package/dist/components/Card/ContentCard.vue.d.ts +2 -2
- package/dist/components/Card/DashCard.vue.d.ts +4 -4
- package/dist/components/Card/DefaultCard.vue.d.ts +1 -1
- package/dist/components/Card/MarketplaceCard.vue.d.ts +2 -2
- package/dist/components/Card/SimpleCard.vue.d.ts +3 -3
- package/dist/components/Card/StatusCard.vue.d.ts +2 -2
- package/dist/components/Card/TitleCard.vue.d.ts +2 -2
- package/dist/components/CardImage/CardImage.vue.d.ts +8 -8
- package/dist/components/CardInformation/CardInformation.vue.d.ts +4 -4
- package/dist/components/CardProject/CardProject.vue.d.ts +3 -3
- package/dist/components/Carousel/Carousel.vue.d.ts +11 -11
- package/dist/components/Carousel/TagCarousel.vue.d.ts +9 -9
- package/dist/components/ChartBar/ChartBar.vue.d.ts +8 -8
- package/dist/components/ChartLine/ChartLine.vue.d.ts +1 -1
- package/dist/components/ChatText/ChatText.vue.d.ts +2 -2
- package/dist/components/ChatsContact/ChatsContact.vue.d.ts +15 -15
- package/dist/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue.d.ts +1 -1
- package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts +1 -1
- package/dist/components/ChatsHeader/ChatsHeader.vue.d.ts.map +1 -1
- package/dist/components/ChatsMessage/ChatsMessage.vue.d.ts +5 -5
- package/dist/components/ChatsMessage/ChatsMessageStatusBackdrop.vue.d.ts +2 -2
- package/dist/components/ChatsNavbar/ChatsNavbar.vue.d.ts +1 -1
- package/dist/components/ChatsUserAvatar/ChatsUserAvatar.vue.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.vue.d.ts +3 -3
- package/dist/components/Comment/Comment.vue.d.ts +1 -1
- package/dist/components/DataArea/DataArea.vue.d.ts +2 -2
- package/dist/components/DataTable/index.vue.d.ts +1 -1
- package/dist/components/DataTable/index.vue.d.ts.map +1 -1
- package/dist/components/DateFilter/DateFilter.vue.d.ts +29 -176
- package/dist/components/DatePicker/DatePicker.vue.d.ts +8 -8
- package/dist/components/Drawer/Drawer.vue.d.ts +7 -7
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/LanguageSelect.vue.d.ts +3 -3
- package/dist/components/Flag.vue.d.ts +2 -2
- package/dist/components/FormElement/FormElement.vue.d.ts +32 -38
- package/dist/components/FormElement/FormElement.vue.d.ts.map +1 -1
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/IconLoading/IconLoading.vue.d.ts +1 -1
- package/dist/components/ImportCard/ImportCard.vue.d.ts +7 -7
- package/dist/components/Input/BaseInput.vue.d.ts +1 -32
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +29 -176
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +14 -83
- package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +39 -186
- package/dist/components/InputNext/InputNext.vue.d.ts +4 -4
- package/dist/components/Label/Label.vue.d.ts +15 -9
- package/dist/components/Label/Label.vue.d.ts.map +1 -1
- package/dist/components/Modal/Modal.vue.d.ts +2 -2
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts +9 -9
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
- package/dist/components/ModalNext/ModalNext.vue.d.ts +37 -184
- package/dist/components/ModalUpload/ModalUpload.vue.d.ts +14 -14
- package/dist/components/MoodRating/MoodRating.vue.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.vue.d.ts +14 -20
- package/dist/components/Pagination/Pagination.vue.d.ts +6 -6
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/dist/components/Radio/Radio.vue.d.ts +6 -8
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +28 -97
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +8 -8
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +4 -4
- package/dist/components/SelectTime/index.vue.d.ts +14 -83
- package/dist/components/SkeletonLoading/skeletonTheme.vue.d.ts +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +2 -2
- package/dist/components/StarRating/StarRating.vue.d.ts +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +2 -2
- package/dist/components/Tab/Tab.vue.d.ts +2 -13
- package/dist/components/TableNext/TableBodyCell.vue.d.ts +2 -2
- package/dist/components/TableNext/TablePagination.vue.d.ts +6 -6
- package/dist/components/TabsExpanded/TabsExpanded.vue.d.ts +1 -1
- package/dist/components/Tag/BrandTag.vue.d.ts +2 -2
- package/dist/components/Tag/DefaultTag.vue.d.ts +2 -2
- package/dist/components/Tag/IndicatorTag.vue.d.ts +2 -2
- package/dist/components/Tag/Tag.vue.d.ts +8 -8
- package/dist/components/TextArea/TextArea.vue.d.ts +32 -38
- package/dist/components/TextArea/TextArea.vue.d.ts.map +1 -1
- package/dist/components/ToolTip/ToolTip.vue.d.ts +1 -1
- package/dist/components/Tour/Tour.vue.d.ts +6 -6
- package/dist/components/Tour/TourPopover.vue.d.ts +6 -6
- package/dist/components/UploadArea/UploadArea.vue.d.ts +7 -7
- package/dist/components/index.d.ts +1110 -2132
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{es-94ab560e.mjs → es-54ddaf5a.mjs} +1 -1
- package/dist/{index-5caf403e.mjs → index-a34da30f.mjs} +8094 -8447
- package/dist/locales/en.json.d.ts +1 -2
- package/dist/locales/es.json.d.ts +1 -2
- package/dist/locales/pt_br.json.d.ts +1 -2
- package/dist/{pt-br-3002df05.mjs → pt-br-ff00f945.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +120 -126
- package/dist/unnnic.umd.js +41 -42
- package/dist/utils/call.d.ts +1 -2
- package/dist/utils/call.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/assets/scss/scheme-colors.scss +238 -115
- package/src/components/Alert/Alert.vue +135 -26
- package/src/components/Alert/AlertBanner.vue +182 -0
- package/src/components/Alert/AlertCaller.vue +49 -0
- package/src/components/Alert/Version1dot1.vue +36 -0
- package/src/components/Alert/__tests__/AlertBanner.spec.js +89 -0
- package/src/components/Alert/__tests__/AlertCaller.spec.js +98 -0
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +7 -11
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +2 -2
- package/src/components/Button/Button.vue +108 -60
- package/src/components/Button/types.ts +1 -0
- package/src/components/FormElement/FormElement.vue +91 -51
- package/src/components/Input/BaseInput.vue +14 -31
- package/src/components/Input/Input.scss +21 -19
- package/src/components/Input/Input.vue +30 -94
- package/src/components/Input/TextInput.vue +58 -82
- package/src/components/Input/__test__/TextInput.spec.js +5 -5
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +3 -16
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -7
- package/src/components/Label/Label.vue +21 -52
- package/src/components/Label/__tests__/Label.spec.js +1 -1
- package/src/components/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
- package/src/components/ModalDialog/ModalDialog.vue +0 -1
- package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -1
- package/src/components/Radio/Radio.vue +67 -80
- package/src/components/Radio/__test__/Radio.spec.js +20 -14
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +3 -3
- package/src/components/Tab/Tab.vue +23 -37
- package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +1 -1
- package/src/components/TableNext/__test__/__snapshots__/TableNext.spec.js.snap +2 -2
- package/src/components/TableNext/__test__/__snapshots__/TablePagination.spec.js.snap +2 -2
- package/src/components/TextArea/TextArea.vue +9 -13
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +2 -7
- package/src/components/index.ts +4 -18
- package/src/locales/en.json +1 -2
- package/src/locales/es.json +1 -2
- package/src/locales/pt_br.json +1 -2
- package/src/stories/Alert.stories.js +67 -6
- package/src/stories/Button.stories.js +17 -2
- package/src/stories/Input.stories.js +3 -22
- package/src/stories/Label.stories.js +0 -7
- package/src/stories/Tab.stories.js +4 -11
- package/src/types/scheme-colors.d.ts +0 -1
- package/src/utils/call.js +18 -46
- package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts +0 -9
- package/dist/components/TemplatePreview/TemplatePreview.vue.d.ts.map +0 -1
- package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts +0 -15
- package/dist/components/TemplatePreview/TemplatePreviewModal.vue.d.ts.map +0 -1
- package/dist/components/Toast/Toast.vue.d.ts +0 -16
- package/dist/components/Toast/Toast.vue.d.ts.map +0 -1
- package/dist/components/Toast/ToastManager.d.ts +0 -14
- package/dist/components/Toast/ToastManager.d.ts.map +0 -1
- package/dist/components/Toast/types.d.ts +0 -35
- package/dist/components/Toast/types.d.ts.map +0 -1
- package/src/assets/icons/radio-checked.svg +0 -3
- package/src/assets/img/previews/doc-preview.png +0 -0
- package/src/assets/img/previews/image-preview.png +0 -0
- package/src/assets/img/previews/video-preview.png +0 -0
- package/src/components/Popover/__tests__/Popover.spec.js +0 -147
- package/src/components/Popover/__tests__/__snapshots__/Popover.spec.js.snap +0 -8
- package/src/components/Popover/index.vue +0 -146
- package/src/components/RadioGroup/RadioGroup.vue +0 -110
- package/src/components/Select/SelectOption.vue +0 -65
- package/src/components/Select/__tests__/Select.spec.js +0 -412
- package/src/components/Select/__tests__/SelectItem.spec.js +0 -330
- package/src/components/Select/__tests__/SelectOption.spec.js +0 -174
- package/src/components/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -97
- package/src/components/Select/__tests__/__snapshots__/SelectItem.spec.js.snap +0 -15
- package/src/components/Select/__tests__/__snapshots__/SelectOption.spec.js.snap +0 -25
- package/src/components/Select/index.vue +0 -245
- package/src/components/TemplatePreview/TemplatePreview.vue +0 -252
- package/src/components/TemplatePreview/TemplatePreviewModal.vue +0 -51
- package/src/components/TemplatePreview/types.d.ts +0 -16
- package/src/components/Toast/Toast.vue +0 -236
- package/src/components/Toast/ToastManager.ts +0 -110
- package/src/components/Toast/types.ts +0 -57
- package/src/stories/Popover.stories.js +0 -39
- package/src/stories/RadioGroup.stories.js +0 -139
- package/src/stories/Select.stories.js +0 -158
- package/src/stories/TemplatePreview.stories.js +0 -94
- package/src/stories/TemplatePreviewModal.stories.js +0 -110
- package/src/stories/Toast.mdx +0 -123
- package/src/stories/Toast.stories.js +0 -126
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
2
2
|
<template>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<slot />
|
|
23
|
-
</p>
|
|
24
|
-
</label>
|
|
25
|
-
</section>
|
|
3
|
+
<div
|
|
4
|
+
:class="[
|
|
5
|
+
'unnnic-radio-container',
|
|
6
|
+
`unnnic-radio-container--${size}`,
|
|
7
|
+
disabled ? 'disabled' : null,
|
|
8
|
+
]"
|
|
9
|
+
@click="click"
|
|
10
|
+
>
|
|
11
|
+
<UnnnicIcon
|
|
12
|
+
class="unnnic-radio"
|
|
13
|
+
:icon="icon"
|
|
14
|
+
:scheme="color"
|
|
15
|
+
:size="size"
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
<span class="label">
|
|
19
|
+
<slot />
|
|
20
|
+
</span>
|
|
21
|
+
</div>
|
|
26
22
|
</template>
|
|
27
23
|
|
|
28
24
|
<script setup>
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
25
|
+
import { computed } from 'vue';
|
|
26
|
+
import UnnnicIcon from '../Icon.vue';
|
|
31
27
|
|
|
32
28
|
const props = defineProps({
|
|
33
29
|
modelValue: {
|
|
@@ -42,88 +38,79 @@ const props = defineProps({
|
|
|
42
38
|
type: Boolean,
|
|
43
39
|
default: false,
|
|
44
40
|
},
|
|
45
|
-
|
|
41
|
+
size: {
|
|
46
42
|
type: String,
|
|
47
|
-
default: '',
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
default: '',
|
|
43
|
+
default: 'md',
|
|
44
|
+
validator(value) {
|
|
45
|
+
return ['md', 'sm'].includes(value);
|
|
46
|
+
},
|
|
52
47
|
},
|
|
53
48
|
});
|
|
54
49
|
|
|
55
50
|
const emit = defineEmits(['update:modelValue']);
|
|
56
51
|
|
|
57
|
-
const
|
|
58
|
-
|
|
52
|
+
const valueName = computed(() =>
|
|
53
|
+
props.modelValue === props.value ? 'selected' : 'default',
|
|
54
|
+
);
|
|
55
|
+
const icon = computed(
|
|
56
|
+
() =>
|
|
57
|
+
({
|
|
58
|
+
selected: 'radio-selected',
|
|
59
|
+
default: props.disabled ? 'radio-disable' : 'radio-default',
|
|
60
|
+
})[valueName.value],
|
|
61
|
+
);
|
|
62
|
+
const color = computed(() => {
|
|
63
|
+
if (props.disabled) {
|
|
64
|
+
return 'brand-sec';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return valueName.value === 'selected' ? 'brand-weni' : 'neutral-cleanest';
|
|
68
|
+
});
|
|
59
69
|
|
|
60
70
|
function click() {
|
|
61
71
|
if (!props.disabled) {
|
|
62
72
|
emit('update:modelValue', props.value);
|
|
63
|
-
|
|
64
|
-
if (contextModelValue) {
|
|
65
|
-
contextModelValue.value = props.value;
|
|
66
|
-
}
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
|
-
|
|
70
|
-
const computedModelValue = computed(() => {
|
|
71
|
-
return contextModelValue?.value || props.modelValue;
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
const computedName = computed(() => {
|
|
75
|
-
return contextName?.value || props.name;
|
|
76
|
-
});
|
|
77
75
|
</script>
|
|
78
76
|
|
|
79
77
|
<style lang="scss" scoped>
|
|
80
78
|
@use '@/assets/scss/unnnic' as *;
|
|
81
79
|
|
|
82
|
-
$radio-size: 21px;
|
|
83
|
-
|
|
84
80
|
.unnnic-radio-container {
|
|
85
81
|
display: inline-flex;
|
|
86
|
-
|
|
82
|
+
align-items: center;
|
|
87
83
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: $unnnic-space-2;
|
|
84
|
+
&:not(.disabled) {
|
|
85
|
+
cursor: pointer;
|
|
92
86
|
}
|
|
93
87
|
|
|
94
|
-
.unnnic-radio {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
height: $radio-size;
|
|
98
|
-
margin: 0;
|
|
99
|
-
background-color: $unnnic-color-bg-base;
|
|
100
|
-
border: 1px solid $unnnic-color-border-base;
|
|
101
|
-
border-radius: $unnnic-radius-full;
|
|
102
|
-
box-sizing: border-box;
|
|
103
|
-
outline: none;
|
|
88
|
+
&--sm .unnnic-radio {
|
|
89
|
+
margin: $unnnic-spacing-stack-nano $unnnic-spacing-inline-nano;
|
|
90
|
+
}
|
|
104
91
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
background-repeat: no-repeat;
|
|
111
|
-
}
|
|
92
|
+
&--md .unnnic-radio {
|
|
93
|
+
margin: $unnnic-spacing-stack-nano 0;
|
|
94
|
+
margin-left: $unnnic-spacing-inline-nano;
|
|
95
|
+
margin-right: $unnnic-spacing-inline-xs;
|
|
96
|
+
}
|
|
112
97
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
98
|
+
.label {
|
|
99
|
+
font-family: $unnnic-font-family-secondary;
|
|
100
|
+
font-weight: $unnnic-font-weight-regular;
|
|
101
|
+
color: $unnnic-color-neutral-darkest;
|
|
102
|
+
margin: $unnnic-spacing-stack-nano 0;
|
|
103
|
+
margin-right: $unnnic-spacing-inline-nano;
|
|
117
104
|
}
|
|
118
105
|
|
|
119
|
-
.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
&--sm .label {
|
|
107
|
+
font-size: $unnnic-font-size-body-md;
|
|
108
|
+
line-height: $unnnic-font-size-body-md + $unnnic-line-height-md;
|
|
109
|
+
}
|
|
123
110
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
111
|
+
&--md .label {
|
|
112
|
+
font-size: $unnnic-font-size-body-gt;
|
|
113
|
+
line-height: $unnnic-font-size-body-gt + $unnnic-line-height-md;
|
|
127
114
|
}
|
|
128
115
|
}
|
|
129
116
|
</style>
|
|
@@ -33,35 +33,41 @@ describe('Radio.vue', () => {
|
|
|
33
33
|
expect(wrapper.exists()).toBe(true);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
test('renders
|
|
37
|
-
const
|
|
38
|
-
expect(
|
|
39
|
-
expect(
|
|
40
|
-
expect(
|
|
41
|
-
expect(
|
|
36
|
+
test('renders UnnnicIcon component with correct props', () => {
|
|
37
|
+
const unnnicIcon = wrapper.findComponent(UnnnicIcon);
|
|
38
|
+
expect(unnnicIcon.exists()).toBe(true);
|
|
39
|
+
expect(unnnicIcon.props('icon')).toBe('radio-default');
|
|
40
|
+
expect(unnnicIcon.props('scheme')).toBe('neutral-cleanest');
|
|
41
|
+
expect(unnnicIcon.props('size')).toBe('md');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('applies the correct size class', async () => {
|
|
45
|
+
expect(wrapper.classes()).toContain('unnnic-radio-container--md');
|
|
46
|
+
|
|
47
|
+
await wrapper.setProps({ size: 'sm' });
|
|
48
|
+
expect(wrapper.classes()).toContain('unnnic-radio-container--sm');
|
|
42
49
|
});
|
|
43
50
|
|
|
44
51
|
test('applies disabled class when disabled prop is true', async () => {
|
|
45
52
|
await wrapper.setProps({ disabled: true });
|
|
46
|
-
expect(wrapper.
|
|
47
|
-
'unnnic-radio__label--disabled',
|
|
48
|
-
);
|
|
53
|
+
expect(wrapper.classes()).toContain('disabled');
|
|
49
54
|
});
|
|
50
55
|
|
|
51
56
|
test('icon changes based on valueName', async () => {
|
|
52
57
|
await wrapper.setProps({ modelValue: 'option1' });
|
|
53
|
-
const
|
|
54
|
-
expect(
|
|
58
|
+
const unnnicIcon = wrapper.findComponent(UnnnicIcon);
|
|
59
|
+
expect(unnnicIcon.props('icon')).toBe('radio-selected');
|
|
55
60
|
});
|
|
56
61
|
|
|
57
62
|
test('icon and color change when disabled is true', async () => {
|
|
58
63
|
await wrapper.setProps({ disabled: true });
|
|
59
|
-
const
|
|
60
|
-
expect(
|
|
64
|
+
const unnnicIcon = wrapper.findComponent(UnnnicIcon);
|
|
65
|
+
expect(unnnicIcon.props('icon')).toBe('radio-disable');
|
|
66
|
+
expect(unnnicIcon.props('scheme')).toBe('brand-sec');
|
|
61
67
|
});
|
|
62
68
|
|
|
63
69
|
test('emits update:modelValue with correct value when clicked and not disabled', async () => {
|
|
64
|
-
await wrapper.
|
|
70
|
+
await wrapper.trigger('click');
|
|
65
71
|
expect(wrapper.emitted('update:modelValue')).toBeTruthy();
|
|
66
72
|
expect(wrapper.emitted('update:modelValue')[0]).toEqual(['option1']);
|
|
67
73
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`Radio.vue > matches the snapshot 1`] = `
|
|
4
|
-
"<
|
|
5
|
-
<
|
|
6
|
-
</label></
|
|
4
|
+
"<div data-v-38c6bf5e="" class="unnnic-radio-container unnnic-radio-container--md"><svg data-v-26446d8e="" data-v-38c6bf5e="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--md unnnic-icon-scheme--neutral-cleanest unnnic-radio" data-testid="old-map-icons">
|
|
5
|
+
<circle cx="20" cy="20.0005" r="14.5" stroke="#3B414D" class="primary-stroke"></circle>
|
|
6
|
+
</svg><span data-v-38c6bf5e="" class="label">Option 1</span></div>"
|
|
7
7
|
`;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
class="tab-head"
|
|
10
10
|
:class="{
|
|
11
11
|
'tab-head--active': localValue === tab,
|
|
12
|
-
'tab-head--disabled': disabledTabs?.includes(tab),
|
|
13
12
|
}"
|
|
14
13
|
@click="change(tab)"
|
|
15
14
|
>
|
|
@@ -21,9 +20,10 @@
|
|
|
21
20
|
side="bottom"
|
|
22
21
|
>
|
|
23
22
|
<UnnnicIcon
|
|
24
|
-
icon="
|
|
23
|
+
icon="info"
|
|
25
24
|
:size="size === 'sm' ? 'xs' : 'sm'"
|
|
26
|
-
|
|
25
|
+
filled
|
|
26
|
+
scheme="neutral-cleanest"
|
|
27
27
|
/>
|
|
28
28
|
</UnnnicToolTip>
|
|
29
29
|
</li>
|
|
@@ -65,13 +65,6 @@ export default {
|
|
|
65
65
|
tabs: {
|
|
66
66
|
type: Array,
|
|
67
67
|
default: null,
|
|
68
|
-
validator: (tabs) => {
|
|
69
|
-
return tabs.every((tab) => typeof tab === 'string') && tabs.length <= 5;
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
disabledTabs: {
|
|
73
|
-
type: Array,
|
|
74
|
-
default: null,
|
|
75
68
|
},
|
|
76
69
|
},
|
|
77
70
|
emits: ['change'],
|
|
@@ -112,10 +105,6 @@ export default {
|
|
|
112
105
|
return '';
|
|
113
106
|
},
|
|
114
107
|
change(value) {
|
|
115
|
-
if (this.disabledTabs?.includes(value)) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
108
|
this.localValue = value;
|
|
120
109
|
this.$emit('change', this.localValue);
|
|
121
110
|
},
|
|
@@ -130,15 +119,18 @@ export default {
|
|
|
130
119
|
display: flex;
|
|
131
120
|
align-items: flex-start;
|
|
132
121
|
justify-content: space-between;
|
|
133
|
-
color: $unnnic-color-
|
|
134
|
-
font: $unnnic-font-
|
|
135
|
-
|
|
136
|
-
|
|
122
|
+
color: $unnnic-color-neutral-cloudy;
|
|
123
|
+
font-family: $unnnic-font-family-secondary;
|
|
124
|
+
font-weight: $unnnic-font-weight-bold;
|
|
125
|
+
font-size: $unnnic-font-size-body-lg;
|
|
126
|
+
line-height: ($unnnic-font-size-body-lg + $unnnic-line-height-medium);
|
|
127
|
+
margin-bottom: $unnnic-inset-sm;
|
|
128
|
+
border-bottom: $unnnic-border-width-thinner solid $unnnic-color-neutral-soft;
|
|
137
129
|
}
|
|
138
130
|
|
|
139
131
|
.tab-content {
|
|
140
132
|
display: flex;
|
|
141
|
-
gap: $unnnic-
|
|
133
|
+
gap: $unnnic-spacing-sm;
|
|
142
134
|
|
|
143
135
|
margin: 0;
|
|
144
136
|
padding: 0;
|
|
@@ -147,24 +139,27 @@ export default {
|
|
|
147
139
|
|
|
148
140
|
.tab-head {
|
|
149
141
|
display: flex;
|
|
150
|
-
gap: $unnnic-
|
|
142
|
+
gap: $unnnic-spacing-xs;
|
|
151
143
|
align-items: center;
|
|
152
144
|
|
|
153
145
|
cursor: pointer;
|
|
154
|
-
|
|
146
|
+
margin: $unnnic-spacing-xs $unnnic-spacing-sm;
|
|
155
147
|
|
|
156
148
|
.unnnic-tooltip {
|
|
157
149
|
display: flex;
|
|
158
150
|
}
|
|
159
151
|
|
|
160
152
|
&:hover {
|
|
161
|
-
color: $unnnic-color-
|
|
153
|
+
color: $unnnic-color-neutral-black;
|
|
162
154
|
}
|
|
163
155
|
}
|
|
164
156
|
|
|
165
157
|
.tab-head--active {
|
|
166
|
-
|
|
167
|
-
font: $unnnic-font-
|
|
158
|
+
font-family: $unnnic-font-family-secondary;
|
|
159
|
+
font-weight: $unnnic-font-weight-bold;
|
|
160
|
+
color: $unnnic-color-neutral-black;
|
|
161
|
+
font-size: $unnnic-font-size-body-lg;
|
|
162
|
+
line-height: ($unnnic-font-size-body-lg + $unnnic-line-height-medium);
|
|
168
163
|
transition: 0.4s;
|
|
169
164
|
|
|
170
165
|
position: relative;
|
|
@@ -173,23 +168,14 @@ export default {
|
|
|
173
168
|
content: '';
|
|
174
169
|
|
|
175
170
|
position: absolute;
|
|
176
|
-
bottom:
|
|
177
|
-
left:
|
|
171
|
+
bottom: -$unnnic-spacing-xs;
|
|
172
|
+
left: -$unnnic-spacing-sm;
|
|
178
173
|
|
|
179
174
|
display: block;
|
|
180
175
|
|
|
181
|
-
width: 100
|
|
176
|
+
width: calc(100% + (#{$unnnic-spacing-sm} * 2));
|
|
182
177
|
|
|
183
|
-
border-bottom: $unnnic-border-width-thin solid $unnnic-color-
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.tab-head--disabled {
|
|
188
|
-
color: $unnnic-color-fg-muted;
|
|
189
|
-
cursor: default;
|
|
190
|
-
|
|
191
|
-
&:hover {
|
|
192
|
-
color: $unnnic-color-fg-muted;
|
|
178
|
+
border-bottom: $unnnic-border-width-thin solid $unnnic-color-weni-600;
|
|
193
179
|
}
|
|
194
180
|
}
|
|
195
181
|
|
|
@@ -4,7 +4,7 @@ exports[`Tab.vue > matches the snapshot 1`] = `
|
|
|
4
4
|
"<div data-v-b4e39fac="" class="tab size-md">
|
|
5
5
|
<header data-v-b4e39fac="" class="tab-header">
|
|
6
6
|
<ul data-v-b4e39fac="" class="tab-content">
|
|
7
|
-
<li data-v-b4e39fac="" class="tab-head">tab1<div data-v-bf0cf546="" data-v-b4e39fac="" class="unnnic-tooltip"><span data-v-26446d8e="" data-v-b4e39fac="" class="material-symbols-rounded unnnic-icon-scheme--
|
|
7
|
+
<li data-v-b4e39fac="" class="tab-head">tab1<div data-v-bf0cf546="" data-v-b4e39fac="" class="unnnic-tooltip"><span data-v-26446d8e="" data-v-b4e39fac="" class="material-symbols-rounded unnnic-icon-scheme--neutral-cleanest unnnic-icon-size--sm material-symbols-rounded--filled" data-testid="material-icon" translate="no">info</span><span data-v-bf0cf546="" class="unnnic-tooltip-label unnnic-tooltip-label-bottom" data-testid="tooltip-label" style="left: 0px; top: 8px;">Tooltip text <br data-v-bf0cf546=""><!--v-if--></span></div>
|
|
8
8
|
</li>
|
|
9
9
|
<li data-v-b4e39fac="" class="tab-head tab-head--active">tab2
|
|
10
10
|
<!--v-if-->
|
|
@@ -42,7 +42,7 @@ exports[`TableNext.vue > matches the snapshot 1`] = `
|
|
|
42
42
|
<p data-v-e29458bb="" class="table-pagination__count" data-testid="count">1 - 1 of 1</p>
|
|
43
43
|
<div data-v-0eeff8cb="" data-v-e29458bb="" class="pagination"><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="previous-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
44
44
|
<!--v-if-->
|
|
45
|
-
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--
|
|
45
|
+
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--sm unnnic-icon-scheme--neutral-clean" data-testid="icon-center" style="visibility: visible;">
|
|
46
46
|
<path d="M26.8368 35.0005C26.5868 35.0005 26.3506 34.903 26.1743 34.7255L12.7743 21.3255C12.4206 20.9717 12.2256 20.5017 12.2256 20.0017C12.2256 19.5017 12.4193 19.0305 12.7731 18.6767L26.1743 5.27549C26.3506 5.09799 26.5868 5.00049 26.8368 5.00049C27.0868 5.00049 27.3231 5.09799 27.4993 5.27549C27.6768 5.45174 27.7743 5.68799 27.7743 5.93799C27.7743 6.18799 27.6768 6.42424 27.4993 6.60049L14.0993 20.0005L27.4993 33.4005C27.6768 33.578 27.7743 33.813 27.7743 34.063C27.7743 34.313 27.6768 34.5492 27.4993 34.7255C27.3218 34.9017 27.0868 35.0005 26.8368 35.0005Z" fill="#3B414D" class="primary"></path>
|
|
47
47
|
</svg><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
48
48
|
<!--v-if-->
|
|
@@ -53,7 +53,7 @@ exports[`TableNext.vue > matches the snapshot 1`] = `
|
|
|
53
53
|
<!--v-if-->
|
|
54
54
|
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="next-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
55
55
|
<!--v-if-->
|
|
56
|
-
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--
|
|
56
|
+
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--sm unnnic-icon-scheme--neutral-clean" data-testid="icon-center" style="visibility: visible;">
|
|
57
57
|
<path d="M13.1635 35.0005C12.9135 35.0005 12.6772 34.903 12.501 34.7255C12.136 34.3605 12.136 33.7655 12.501 33.3992L25.901 20.0005L12.501 6.60049C12.3235 6.42424 12.226 6.18799 12.226 5.93799C12.226 5.68799 12.3235 5.45174 12.501 5.27549C12.6772 5.09799 12.9135 5.00049 13.1635 5.00049C13.4135 5.00049 13.6497 5.09799 13.826 5.27549L27.226 18.6755C27.956 19.4055 27.9572 20.5942 27.2272 21.3242L13.826 34.7255C13.6497 34.903 13.4135 35.0005 13.1635 35.0005Z" fill="#3B414D" class="primary"></path>
|
|
58
58
|
</svg><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
59
59
|
<!--v-if-->
|
|
@@ -5,7 +5,7 @@ exports[`TablePagination.vue > matches the snapshot 1`] = `
|
|
|
5
5
|
<p data-v-e29458bb="" class="table-pagination__count" data-testid="count">1 - 10 of 100</p>
|
|
6
6
|
<div data-v-0eeff8cb="" data-v-e29458bb="" class="pagination"><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="previous-button" disabled="" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
7
7
|
<!--v-if-->
|
|
8
|
-
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--
|
|
8
|
+
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--sm unnnic-icon-scheme--neutral-clean" data-testid="icon-center" style="visibility: visible;">
|
|
9
9
|
<path d="M26.8368 35.0005C26.5868 35.0005 26.3506 34.903 26.1743 34.7255L12.7743 21.3255C12.4206 20.9717 12.2256 20.5017 12.2256 20.0017C12.2256 19.5017 12.4193 19.0305 12.7731 18.6767L26.1743 5.27549C26.3506 5.09799 26.5868 5.00049 26.8368 5.00049C27.0868 5.00049 27.3231 5.09799 27.4993 5.27549C27.6768 5.45174 27.7743 5.68799 27.7743 5.93799C27.7743 6.18799 27.6768 6.42424 27.4993 6.60049L14.0993 20.0005L27.4993 33.4005C27.6768 33.578 27.7743 33.813 27.7743 34.063C27.7743 34.313 27.6768 34.5492 27.4993 34.7255C27.3218 34.9017 27.0868 35.0005 26.8368 35.0005Z" fill="#3B414D" class="primary"></path>
|
|
10
10
|
</svg><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
11
11
|
<!--v-if-->
|
|
@@ -36,7 +36,7 @@ exports[`TablePagination.vue > matches the snapshot 1`] = `
|
|
|
36
36
|
<!--v-if-->
|
|
37
37
|
</button><button data-v-ceff2a60="" data-v-0eeff8cb="" data-test="next-button" class="unnnic-button unnnic-button--size-small unnnic-button--tertiary unnnic-button--icon-on-center">
|
|
38
38
|
<!--v-if-->
|
|
39
|
-
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--
|
|
39
|
+
<!--v-if--><svg data-v-26446d8e="" data-v-ceff2a60="" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="unnnic-icon unnnic-icon__size--sm unnnic-icon-scheme--neutral-dark" data-testid="icon-center" style="visibility: visible;">
|
|
40
40
|
<path d="M13.1635 35.0005C12.9135 35.0005 12.6772 34.903 12.501 34.7255C12.136 34.3605 12.136 33.7655 12.501 33.3992L25.901 20.0005L12.501 6.60049C12.3235 6.42424 12.226 6.18799 12.226 5.93799C12.226 5.68799 12.3235 5.45174 12.501 5.27549C12.6772 5.09799 12.9135 5.00049 13.1635 5.00049C13.4135 5.00049 13.6497 5.09799 13.826 5.27549L27.226 18.6755C27.956 19.4055 27.9572 20.5942 27.2272 21.3242L13.826 34.7255C13.6497 34.903 13.4135 35.0005 13.1635 35.0005Z" fill="#3B414D" class="primary"></path>
|
|
41
41
|
</svg><span data-v-ceff2a60="" class="unnnic-button__label" style="visibility: visible;" data-testid="button-label"> </span>
|
|
42
42
|
<!--v-if-->
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
:disabled="disabled"
|
|
19
19
|
:value="modelValue"
|
|
20
20
|
@input="$emit('update:modelValue', fullySanitize($event.target.value))"
|
|
21
|
-
|
|
21
|
+
></textarea>
|
|
22
22
|
|
|
23
23
|
<template
|
|
24
24
|
v-if="maxLength"
|
|
25
25
|
#rightMessage
|
|
26
|
+
>{{ modelValue.length }}/{{ maxLength }}</template
|
|
26
27
|
>
|
|
27
|
-
{{ modelValue.length }}/{{ maxLength }}
|
|
28
|
-
</template>
|
|
29
28
|
</UnnnicFormElement>
|
|
30
29
|
</template>
|
|
31
30
|
|
|
@@ -97,12 +96,6 @@ export default {
|
|
|
97
96
|
@use '@/assets/scss/unnnic' as *;
|
|
98
97
|
@use '@/components/Input/Input' as *;
|
|
99
98
|
|
|
100
|
-
* {
|
|
101
|
-
margin: 0;
|
|
102
|
-
padding: 0;
|
|
103
|
-
box-sizing: border-box;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
99
|
.unnnic-text-area {
|
|
107
100
|
&__textarea {
|
|
108
101
|
@include input-base;
|
|
@@ -110,21 +103,24 @@ export default {
|
|
|
110
103
|
display: block;
|
|
111
104
|
width: 100%;
|
|
112
105
|
resize: vertical;
|
|
106
|
+
box-sizing: border-box;
|
|
113
107
|
|
|
114
108
|
scrollbar-width: thin;
|
|
115
109
|
|
|
116
|
-
padding: $unnnic-space-3 $unnnic-space-4;
|
|
117
|
-
|
|
118
110
|
&--size-md {
|
|
119
111
|
@include input-md-font;
|
|
120
112
|
|
|
121
|
-
min-height:
|
|
113
|
+
min-height: 6.25 * $unnnic-font-size;
|
|
114
|
+
padding: ($unnnic-spacing-ant - $unnnic-border-width-thinner)
|
|
115
|
+
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
&--size-sm {
|
|
125
119
|
@include input-sm-font;
|
|
126
120
|
|
|
127
|
-
min-height: $unnnic-
|
|
121
|
+
min-height: 5 * $unnnic-font-size;
|
|
122
|
+
padding: ($unnnic-spacing-xs)
|
|
123
|
+
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
128
124
|
}
|
|
129
125
|
|
|
130
126
|
&.unnnic-text-area__textarea--type-error {
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
exports[`TextArea.vue > matches the snapshot 1`] = `
|
|
4
4
|
"<section data-v-9f8d6c86="" data-v-735b3c51="" class="unnnic-form-element">
|
|
5
5
|
<p data-v-9f8d6c86="" class="unnnic-form-element__label">Description</p><textarea data-v-735b3c51="" class="unnnic-text-area__textarea unnnic-text-area__textarea--size-md unnnic-text-area__textarea--type-normal" placeholder="Enter text" maxlength="200" value=""></textarea>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<!--v-if-->
|
|
9
|
-
<!--v-if-->
|
|
10
|
-
</section>
|
|
11
|
-
<p data-v-9f8d6c86="">0/200</p>
|
|
12
|
-
</section>
|
|
6
|
+
<!--v-if-->
|
|
7
|
+
<p data-v-9f8d6c86="" class="unnnic-form-element__message"> <span data-v-9f8d6c86="" class="unnnic-form-element__right-message">0/200</span></p>
|
|
13
8
|
</section>"
|
|
14
9
|
`;
|
package/src/components/index.ts
CHANGED
|
@@ -88,12 +88,8 @@ import ModalDialog from './ModalDialog/ModalDialog.vue';
|
|
|
88
88
|
import Tour from './Tour/Tour.vue';
|
|
89
89
|
import Navigator from './Navigator/index.vue';
|
|
90
90
|
import SelectTime from './SelectTime/index.vue';
|
|
91
|
-
import TemplatePreview from './TemplatePreview/TemplatePreview.vue';
|
|
92
|
-
import TemplatePreviewModal from './TemplatePreview/TemplatePreviewModal.vue';
|
|
93
91
|
import DataTable from './DataTable/index.vue';
|
|
94
92
|
import Chip from './Chip/Chip.vue';
|
|
95
|
-
import Toast from './Toast/Toast.vue';
|
|
96
|
-
import { toast } from './Toast/ToastManager';
|
|
97
93
|
|
|
98
94
|
type VueComponent = Component;
|
|
99
95
|
|
|
@@ -192,12 +188,8 @@ export const components: ComponentsMap = {
|
|
|
192
188
|
unnnicTour: Tour,
|
|
193
189
|
unnnicNavigator: Navigator,
|
|
194
190
|
unnnicSelectTime: SelectTime,
|
|
195
|
-
unnnicTemplatePreview: TemplatePreview,
|
|
196
|
-
unnnicTemplatePreviewModal: TemplatePreviewModal,
|
|
197
191
|
unnnicDataTable: DataTable,
|
|
198
192
|
unnnicChip: Chip,
|
|
199
|
-
unnnicToast: Toast,
|
|
200
|
-
unnnicToastManager: toast,
|
|
201
193
|
};
|
|
202
194
|
|
|
203
195
|
export const unnnicFontSize = fontSize;
|
|
@@ -249,7 +241,7 @@ export const unnnicAccordion = accordion;
|
|
|
249
241
|
export const unnnicIndicator = indicator;
|
|
250
242
|
export const unnnicSkeletonLoading = skeletonLoading;
|
|
251
243
|
export const unnnicCarousel = carousel;
|
|
252
|
-
export const unnnicLabel = label
|
|
244
|
+
export const unnnicLabel = label;
|
|
253
245
|
export const unnnicTab = tab;
|
|
254
246
|
export const unnnicTabsExpanded = tabsExpanded;
|
|
255
247
|
export const unnnicBanner = banner;
|
|
@@ -290,10 +282,8 @@ export const unnnicDrawer = Drawer;
|
|
|
290
282
|
export const unnnicTableNext = TableNext;
|
|
291
283
|
export const unnnicTour = Tour;
|
|
292
284
|
export const unnnicNavigator = Navigator;
|
|
293
|
-
export const unnnicSelectTime = SelectTime as VueComponent;
|
|
294
|
-
export const unnnicTemplatePreview = TemplatePreview as VueComponent;
|
|
295
|
-
export const unnnicTemplatePreviewModal = TemplatePreviewModal as VueComponent;
|
|
296
285
|
export const unnnicDataTable = DataTable as VueComponent;
|
|
286
|
+
export const unnnicSelectTime = SelectTime as VueComponent;
|
|
297
287
|
export const unnnicChip = Chip;
|
|
298
288
|
|
|
299
289
|
export const UnnnicFontSize = fontSize;
|
|
@@ -345,7 +335,7 @@ export const UnnnicAccordion = accordion;
|
|
|
345
335
|
export const UnnnicIndicator = indicator;
|
|
346
336
|
export const UnnnicSkeletonLoading = skeletonLoading;
|
|
347
337
|
export const UnnnicCarousel = carousel;
|
|
348
|
-
export const UnnnicLabel = label
|
|
338
|
+
export const UnnnicLabel = label;
|
|
349
339
|
export const UnnnicTab = tab;
|
|
350
340
|
export const UnnnicTabsExpanded = tabsExpanded;
|
|
351
341
|
export const UnnnicBanner = banner;
|
|
@@ -386,10 +376,6 @@ export const UnnnicDrawer = Drawer;
|
|
|
386
376
|
export const UnnnicTableNext = TableNext;
|
|
387
377
|
export const UnnnicTour = Tour;
|
|
388
378
|
export const UnnnicNavigator = Navigator;
|
|
389
|
-
export const UnnnicSelectTime = SelectTime as VueComponent;
|
|
390
|
-
export const UnnnicTemplatePreview = TemplatePreview as VueComponent;
|
|
391
|
-
export const UnnnicTemplatePreviewModal = TemplatePreviewModal as VueComponent;
|
|
392
379
|
export const UnnnicDataTable = DataTable as VueComponent;
|
|
380
|
+
export const UnnnicSelectTime = SelectTime as VueComponent;
|
|
393
381
|
export const UnnnicChip = Chip;
|
|
394
|
-
export const UnnnicToast = Toast;
|
|
395
|
-
export const UnnnicToastManager = toast;
|
package/src/locales/en.json
CHANGED
package/src/locales/es.json
CHANGED