@weni/unnnic-system 3.2.7-alpha.0 → 3.2.8
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 +24 -0
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -1
- package/dist/components/Alert/Alert.vue.d.ts +5 -5
- package/dist/components/Alert/Version1dot1.vue.d.ts +2 -2
- 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/ChatsMessage/ChatsMessageText.vue.d.ts.map +1 -1
- 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/Chip/Chip.vue.d.ts.map +1 -1
- 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 +27 -182
- package/dist/components/DatePicker/DatePicker.vue.d.ts +8 -8
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +7 -7
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/LanguageSelect.vue.d.ts +3 -3
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
- 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/Icon.vue.d.ts.map +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 -10
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +27 -182
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +13 -31
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +37 -192
- package/dist/components/InputNext/InputNext.vue.d.ts +3 -3
- package/dist/components/Modal/Modal.vue.d.ts +2 -2
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts +10 -10
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
- package/dist/components/ModalNext/ModalNext.vue.d.ts +34 -189
- 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 +7 -7
- 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 +2 -2
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +27 -45
- 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 +13 -31
- 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 -2
- 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/Tag/TagNext.vue.d.ts.map +1 -1
- 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 +890 -2158
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{es-a147ef18.mjs → es-b3e51efa.js} +1 -1
- package/dist/{index-802ab669.mjs → index-b9e3c5e9.js} +7649 -7812
- package/dist/{pt-br-cdc64aa4.mjs → pt-br-20887b32.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.js +182 -0
- package/dist/{unnnic.umd.js → unnnic.umd.cjs} +41 -42
- package/package.json +10 -9
- package/src/assets/icons/script-to-convert-svg-to-vue.js +4 -7
- package/src/components/AudioRecorder/AudioRecorder.vue +3 -2
- package/src/components/Button/Button.vue +109 -58
- package/src/components/Button/__tests__/Button.spec.js +2 -2
- package/src/components/Button/types.ts +2 -1
- package/src/components/Card/Card.vue +4 -1
- package/src/components/ChartMultiLine/Line/Line.vue +2 -1
- package/src/components/ChatsContact/ChatsContact.vue +1 -1
- package/src/components/ChatsHeader/ChatsHeader.vue +4 -2
- package/src/components/ChatsMessage/ChatsMessageText.vue +5 -5
- package/src/components/Chip/Chip.vue +62 -57
- package/src/components/Chip/__tests__/Chip.spec.js +18 -18
- package/src/components/DataTable/index.vue +8 -5
- package/src/components/DatePicker/DatePicker.vue +29 -16
- package/src/components/Drawer/Drawer.vue +4 -1
- package/src/components/Drawer/__tests__/Drawer.spec.js +9 -3
- package/src/components/DropArea/DropArea.vue +1 -1
- package/src/components/Dropdown/__tests__/Dropdown.spec.js +17 -17
- package/src/components/EmojiPicker/EmojiPicker.vue +57 -48
- package/src/components/EmojiPicker/__tests__/EmojiPicker.spec.js +84 -23
- package/src/components/Flag.vue +0 -1
- package/src/components/FormElement/FormElement.vue +91 -51
- package/src/components/Icon/types.ts +2 -2
- package/src/components/Icon.vue +3 -1
- package/src/components/Input/BaseInput.vue +12 -10
- package/src/components/Input/Input.scss +20 -17
- package/src/components/Input/Input.vue +28 -86
- package/src/components/Input/TextInput.vue +35 -27
- package/src/components/Input/__test__/TextInput.spec.js +5 -5
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +3 -12
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
- package/src/components/InputDatePicker/InputDatePicker.vue +1 -1
- package/src/components/Label/Label.vue +2 -2
- package/src/components/ModalDialog/ModalDialog.vue +29 -27
- package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +1 -1
- package/src/components/ModalNext/ModalNext.vue +2 -2
- package/src/components/SelectSmart/SelectSmart.vue +15 -4
- package/src/components/SelectSmart/__tests__/SelectSmart.spec.js +2 -2
- package/src/components/Switch/__tests__/Switch.spec.js +6 -2
- 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/Tag/TagNext.vue +2 -8
- package/src/components/TextArea/TextArea.vue +9 -14
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +2 -7
- package/src/components/Tour/TourPopover.vue +1 -1
- package/src/components/__tests__/Icon.spec.js +2 -2
- package/src/components/index.ts +88 -96
- package/src/index.ts +1 -1
- package/src/main.ts +1 -1
- package/src/stories/Button.stories.js +11 -2
- package/src/stories/ChatsHeader.stories.js +1 -1
- package/src/stories/ChatsMessage.stories.js +0 -1
- package/src/stories/Chip.stories.js +7 -4
- package/src/stories/Input.stories.js +3 -17
- package/src/stories/SelectSmart.stories.js +1 -1
- package/src/stories/TableNext.stories.js +1 -1
- package/src/types/index.d.ts +2 -2
- package/src/types/scheme-colors.d.ts +1 -2
- package/src/types/unnnic-utils.d.ts +87 -87
- package/src/types/vue-shims.d.ts +1 -1
- package/src/types/vueuse-overrides.d.ts +2 -2
- package/src/utils/plugins/i18n.js +0 -1
- 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/unnnic.mjs +0 -186
- 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/TemplatePreview/TemplatePreview.vue +0 -249
- package/src/components/TemplatePreview/TemplatePreviewModal.vue +0 -51
- package/src/components/TemplatePreview/types.d.ts +0 -16
- package/src/stories/TemplatePreview.stories.js +0 -94
- package/src/stories/TemplatePreviewModal.stories.js +0 -110
|
@@ -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-->
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section
|
|
3
|
-
:class="[
|
|
4
|
-
'unnnic-tag-next',
|
|
5
|
-
`unnnic-tag-next--${scheme}`
|
|
6
|
-
]"
|
|
7
|
-
>
|
|
2
|
+
<section :class="['unnnic-tag-next', `unnnic-tag-next--${scheme}`]">
|
|
8
3
|
<p class="unnnic-tag-next__text">
|
|
9
4
|
{{ text }}
|
|
10
5
|
</p>
|
|
@@ -61,6 +56,5 @@ export default {
|
|
|
61
56
|
background-color: $unnnic-color-weni-100;
|
|
62
57
|
color: $unnnic-color-weni-600;
|
|
63
58
|
}
|
|
64
|
-
|
|
65
59
|
}
|
|
66
|
-
</style>
|
|
60
|
+
</style>
|
|
@@ -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,22 +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:
|
|
122
|
-
|
|
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);
|
|
123
116
|
}
|
|
124
117
|
|
|
125
118
|
&--size-sm {
|
|
126
119
|
@include input-sm-font;
|
|
127
120
|
|
|
128
|
-
min-height: $unnnic-
|
|
121
|
+
min-height: 5 * $unnnic-font-size;
|
|
122
|
+
padding: ($unnnic-spacing-xs)
|
|
123
|
+
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
129
124
|
}
|
|
130
125
|
|
|
131
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
|
`;
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
128
128
|
left: attachedTop - popoverHeight / 2 + attachedHeight / 2,
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
const style = {
|
|
132
132
|
transform: `translate(${translateXMap[step.popoverPosition]}px, ${translateYMap[step.popoverPosition]}px)`,
|
|
133
133
|
transition: 'transform .3s ease',
|
|
134
134
|
};
|
|
@@ -35,8 +35,8 @@ const commonTests = async (wrapper) => {
|
|
|
35
35
|
describe('Icon', () => {
|
|
36
36
|
it('should accept valid lineHeight props', () => {
|
|
37
37
|
const validValues = ['sm', 'md', 'lg', null];
|
|
38
|
-
|
|
39
|
-
validValues.forEach(value => {
|
|
38
|
+
|
|
39
|
+
validValues.forEach((value) => {
|
|
40
40
|
const wrapper = createWrapper({ lineHeight: value });
|
|
41
41
|
expect(wrapper.exists()).toBe(true);
|
|
42
42
|
});
|
package/src/components/index.ts
CHANGED
|
@@ -1,97 +1,95 @@
|
|
|
1
|
-
import type { Component } from
|
|
2
|
-
import { unnnicFontSize as fontSize } from
|
|
3
|
-
import formElement from
|
|
4
|
-
import input from
|
|
5
|
-
import inputNext from
|
|
6
|
-
import inputDatePicker from
|
|
7
|
-
import button from
|
|
8
|
-
import buttonIcon from
|
|
9
|
-
import sidebar from
|
|
10
|
-
import sidebarItem from
|
|
11
|
-
import table from
|
|
12
|
-
import tableRow from
|
|
13
|
-
import dropdown from
|
|
14
|
-
import dropdownItem from
|
|
15
|
-
import avatarIcon from
|
|
16
|
-
import icon from
|
|
17
|
-
import iconLoading from
|
|
18
|
-
import toolTip from
|
|
19
|
-
import card from
|
|
20
|
-
import cardSimple from
|
|
21
|
-
import cardCompany from
|
|
22
|
-
import cardData from
|
|
23
|
-
import cardImage from
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import { unnnicFontSize as fontSize } from './config';
|
|
3
|
+
import formElement from './FormElement/FormElement.vue';
|
|
4
|
+
import input from './Input/Input.vue';
|
|
5
|
+
import inputNext from './InputNext/InputNext.vue';
|
|
6
|
+
import inputDatePicker from './InputDatePicker/InputDatePicker.vue';
|
|
7
|
+
import button from './Button/Button.vue';
|
|
8
|
+
import buttonIcon from './Button/ButtonIcon.vue';
|
|
9
|
+
import sidebar from './Sidebar/index.vue';
|
|
10
|
+
import sidebarItem from './Sidebar/SidebarItem.vue';
|
|
11
|
+
import table from './Table/Table.vue';
|
|
12
|
+
import tableRow from './Table/TableRow.vue';
|
|
13
|
+
import dropdown from './Dropdown/Dropdown.vue';
|
|
14
|
+
import dropdownItem from './Dropdown/DropdownItem.vue';
|
|
15
|
+
import avatarIcon from './AvatarIcon/AvatarIcon.vue';
|
|
16
|
+
import icon from './Icon.vue';
|
|
17
|
+
import iconLoading from './IconLoading/IconLoading.vue';
|
|
18
|
+
import toolTip from './ToolTip/ToolTip.vue';
|
|
19
|
+
import card from './Card/Card.vue';
|
|
20
|
+
import cardSimple from './Card/SimpleCard.vue';
|
|
21
|
+
import cardCompany from './Card/CardCompany.vue';
|
|
22
|
+
import cardData from './Card/CardData.vue';
|
|
23
|
+
import cardImage from './CardImage/CardImage.vue';
|
|
24
24
|
// import cardFlow from './CardFlow/CardFlow.vue';
|
|
25
|
-
import cardProject from
|
|
26
|
-
import cardInformation from
|
|
27
|
-
import checkbox from
|
|
28
|
-
import collapse from
|
|
29
|
-
import radio from
|
|
30
|
-
import languageSelect from
|
|
31
|
-
import modal from
|
|
32
|
-
import modalUpload from
|
|
33
|
-
import { callAlert, callModal } from
|
|
34
|
-
import selectSmart from
|
|
25
|
+
import cardProject from './CardProject/CardProject.vue';
|
|
26
|
+
import cardInformation from './CardInformation/CardInformation.vue';
|
|
27
|
+
import checkbox from './Checkbox/Checkbox.vue';
|
|
28
|
+
import collapse from './Collapse/Collapse.vue';
|
|
29
|
+
import radio from './Radio/Radio.vue';
|
|
30
|
+
import languageSelect from './Dropdown/LanguageSelect.vue';
|
|
31
|
+
import modal from './Modal/Modal.vue';
|
|
32
|
+
import modalUpload from './ModalUpload/ModalUpload.vue';
|
|
33
|
+
import { callAlert, callModal } from '../utils/call';
|
|
34
|
+
import selectSmart from './SelectSmart/SelectSmart.vue';
|
|
35
35
|
// import select from './Select/Select.vue';
|
|
36
|
-
import selectItem from
|
|
36
|
+
import selectItem from './Select/SelectItem.vue';
|
|
37
37
|
// import selectListItem from './SelectListItem/SelectListItem.vue';
|
|
38
|
-
import multiSelect from
|
|
39
|
-
import alert from
|
|
38
|
+
import multiSelect from './MultiSelect/MultiSelect.vue';
|
|
39
|
+
import alert from './Alert/Alert.vue';
|
|
40
40
|
// import autocomplete from './Input/Autocomplete.vue';
|
|
41
41
|
// import autocompleteSelect from './AutocompleteSelect/AutocompleteSelect.vue';
|
|
42
|
-
import tag from
|
|
43
|
-
import accordion from
|
|
44
|
-
import indicator from
|
|
45
|
-
import skeletonLoading from
|
|
46
|
-
import carousel from
|
|
47
|
-
import label from
|
|
48
|
-
import tab from
|
|
49
|
-
import tabsExpanded from
|
|
50
|
-
import banner from
|
|
51
|
-
import comment from
|
|
52
|
-
import datePicker from
|
|
53
|
-
import breadcrumb from
|
|
54
|
-
import Switch from
|
|
55
|
-
import Slider from
|
|
56
|
-
import DataArea from
|
|
57
|
-
import Pagination from
|
|
58
|
-
import DropArea from
|
|
59
|
-
import UploadArea from
|
|
60
|
-
import ImportCard from
|
|
61
|
-
import DateFilter from
|
|
62
|
-
import ChatText from
|
|
63
|
-
import TextArea from
|
|
64
|
-
import CardNumber from
|
|
65
|
-
import chartRainbow from
|
|
66
|
-
import chartBar from
|
|
67
|
-
import chartLine from
|
|
68
|
-
import moodRating from
|
|
69
|
-
import starRating from
|
|
70
|
-
import audioRecorder from
|
|
71
|
-
import circleProgressBar from
|
|
72
|
-
import progressBar from
|
|
73
|
-
import ChatsContact from
|
|
74
|
-
import ChatsDashboardTagLive from
|
|
75
|
-
import ChatsHeader from
|
|
76
|
-
import ChatsMessage from
|
|
77
|
-
import ReplyMessage from
|
|
78
|
-
import ChatsNavbar from
|
|
79
|
-
import ChatsUserAvatar from
|
|
80
|
-
import ChartMultiLine from
|
|
81
|
-
import EmojiPicker from
|
|
82
|
-
import ChartFunnel from
|
|
83
|
-
import Disclaimer from
|
|
84
|
-
import Drawer from
|
|
85
|
-
import TableNext from
|
|
86
|
-
import ModalNext from
|
|
87
|
-
import ModalDialog from
|
|
88
|
-
import Tour from
|
|
89
|
-
import Navigator from
|
|
90
|
-
import SelectTime from
|
|
91
|
-
import TemplatePreview from "./TemplatePreview/TemplatePreview.vue";
|
|
92
|
-
import TemplatePreviewModal from "./TemplatePreview/TemplatePreviewModal.vue";
|
|
42
|
+
import tag from './Tag/Tag.vue';
|
|
43
|
+
import accordion from './Accordion/Accordion.vue';
|
|
44
|
+
import indicator from './Indicator/Indicator.vue';
|
|
45
|
+
import skeletonLoading from './SkeletonLoading/SkeletonLoading.vue'; // TODO: Unbreak this component
|
|
46
|
+
import carousel from './Carousel/Carousel.vue';
|
|
47
|
+
import label from './Label/Label.vue';
|
|
48
|
+
import tab from './Tab/Tab.vue';
|
|
49
|
+
import tabsExpanded from './TabsExpanded/TabsExpanded.vue';
|
|
50
|
+
import banner from './Banner/Banner.vue';
|
|
51
|
+
import comment from './Comment/Comment.vue';
|
|
52
|
+
import datePicker from './DatePicker/DatePicker.vue';
|
|
53
|
+
import breadcrumb from './Breadcrumb/Breadcrumb.vue';
|
|
54
|
+
import Switch from './Switch/Switch.vue';
|
|
55
|
+
import Slider from './Slider/Slider.vue';
|
|
56
|
+
import DataArea from './DataArea/DataArea.vue';
|
|
57
|
+
import Pagination from './Pagination/Pagination.vue';
|
|
58
|
+
import DropArea from './DropArea/DropArea.vue';
|
|
59
|
+
import UploadArea from './UploadArea/UploadArea.vue';
|
|
60
|
+
import ImportCard from './ImportCard/ImportCard.vue';
|
|
61
|
+
import DateFilter from './DateFilter/DateFilter.vue';
|
|
62
|
+
import ChatText from './ChatText/ChatText.vue';
|
|
63
|
+
import TextArea from './TextArea/TextArea.vue';
|
|
64
|
+
import CardNumber from './CardNumber/CardNumber.vue';
|
|
65
|
+
import chartRainbow from './ChartRainbow/ChartRainbow.vue';
|
|
66
|
+
import chartBar from './ChartBar/ChartBar.vue';
|
|
67
|
+
import chartLine from './ChartLine/ChartLine.vue';
|
|
68
|
+
import moodRating from './MoodRating/MoodRating.vue';
|
|
69
|
+
import starRating from './StarRating/StarRating.vue';
|
|
70
|
+
import audioRecorder from './AudioRecorder/AudioRecorder.vue';
|
|
71
|
+
import circleProgressBar from './CircleProgressBar/CircleProgressBar.vue';
|
|
72
|
+
import progressBar from './ProgressBar/ProgressBar.vue';
|
|
73
|
+
import ChatsContact from './ChatsContact/ChatsContact.vue';
|
|
74
|
+
import ChatsDashboardTagLive from './ChatsDashboardTagLive/ChatsDashboardTagLive.vue';
|
|
75
|
+
import ChatsHeader from './ChatsHeader/ChatsHeader.vue';
|
|
76
|
+
import ChatsMessage from './ChatsMessage/ChatsMessage.vue';
|
|
77
|
+
import ReplyMessage from './ChatsMessage/ReplyMessage.vue';
|
|
78
|
+
import ChatsNavbar from './ChatsNavbar/ChatsNavbar.vue';
|
|
79
|
+
import ChatsUserAvatar from './ChatsUserAvatar/ChatsUserAvatar.vue';
|
|
80
|
+
import ChartMultiLine from './ChartMultiLine/ChartMultiLine.vue';
|
|
81
|
+
import EmojiPicker from './EmojiPicker/EmojiPicker.vue';
|
|
82
|
+
import ChartFunnel from './ChartFunnel/ChartFunnel.vue';
|
|
83
|
+
import Disclaimer from './Disclaimer/Disclaimer.vue';
|
|
84
|
+
import Drawer from './Drawer/Drawer.vue';
|
|
85
|
+
import TableNext from './TableNext/TableNext.vue';
|
|
86
|
+
import ModalNext from './ModalNext/ModalNext.vue';
|
|
87
|
+
import ModalDialog from './ModalDialog/ModalDialog.vue';
|
|
88
|
+
import Tour from './Tour/Tour.vue';
|
|
89
|
+
import Navigator from './Navigator/index.vue';
|
|
90
|
+
import SelectTime from './SelectTime/index.vue';
|
|
93
91
|
import DataTable from './DataTable/index.vue';
|
|
94
|
-
import Chip from
|
|
92
|
+
import Chip from './Chip/Chip.vue';
|
|
95
93
|
|
|
96
94
|
type VueComponent = Component;
|
|
97
95
|
|
|
@@ -190,8 +188,6 @@ export const components: ComponentsMap = {
|
|
|
190
188
|
unnnicTour: Tour,
|
|
191
189
|
unnnicNavigator: Navigator,
|
|
192
190
|
unnnicSelectTime: SelectTime,
|
|
193
|
-
unnnicTemplatePreview: TemplatePreview,
|
|
194
|
-
unnnicTemplatePreviewModal: TemplatePreviewModal,
|
|
195
191
|
unnnicDataTable: DataTable,
|
|
196
192
|
unnnicChip: Chip,
|
|
197
193
|
};
|
|
@@ -286,10 +282,8 @@ export const unnnicDrawer = Drawer;
|
|
|
286
282
|
export const unnnicTableNext = TableNext;
|
|
287
283
|
export const unnnicTour = Tour;
|
|
288
284
|
export const unnnicNavigator = Navigator;
|
|
289
|
-
export const unnnicSelectTime = SelectTime as VueComponent;
|
|
290
|
-
export const unnnicTemplatePreview = TemplatePreview as VueComponent;
|
|
291
|
-
export const unnnicTemplatePreviewModal = TemplatePreviewModal as VueComponent;
|
|
292
285
|
export const unnnicDataTable = DataTable as VueComponent;
|
|
286
|
+
export const unnnicSelectTime = SelectTime as VueComponent;
|
|
293
287
|
export const unnnicChip = Chip;
|
|
294
288
|
|
|
295
289
|
export const UnnnicFontSize = fontSize;
|
|
@@ -382,8 +376,6 @@ export const UnnnicDrawer = Drawer;
|
|
|
382
376
|
export const UnnnicTableNext = TableNext;
|
|
383
377
|
export const UnnnicTour = Tour;
|
|
384
378
|
export const UnnnicNavigator = Navigator;
|
|
385
|
-
export const UnnnicSelectTime = SelectTime as VueComponent;
|
|
386
|
-
export const UnnnicTemplatePreview = TemplatePreview as VueComponent;
|
|
387
|
-
export const UnnnicTemplatePreviewModal = TemplatePreviewModal as VueComponent;
|
|
388
379
|
export const UnnnicDataTable = DataTable as VueComponent;
|
|
380
|
+
export const UnnnicSelectTime = SelectTime as VueComponent;
|
|
389
381
|
export const UnnnicChip = Chip;
|
package/src/index.ts
CHANGED
package/src/main.ts
CHANGED
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
description: {
|
|
9
9
|
component: `Allows users to perform an action or navigate to another page.
|
|
10
10
|
It has styles for various needs and are ideal for directing the user's attention.
|
|
11
|
-
It is divided into
|
|
11
|
+
It is divided into 6 types: Primary, Secondary, Tertiary, Alternative, Warning, Attention.
|
|
12
12
|
Each of these types has its states.
|
|
13
13
|
<br/>
|
|
14
14
|
<br/>
|
|
@@ -40,6 +40,7 @@ export default {
|
|
|
40
40
|
'primary',
|
|
41
41
|
'secondary',
|
|
42
42
|
'tertiary',
|
|
43
|
+
'alternative',
|
|
43
44
|
'warning',
|
|
44
45
|
'attention',
|
|
45
46
|
],
|
|
@@ -103,7 +104,7 @@ export const FilledIcon = {
|
|
|
103
104
|
args: {
|
|
104
105
|
text: 'Button Text',
|
|
105
106
|
iconLeft: 'play_arrow',
|
|
106
|
-
iconsFilled: true,
|
|
107
|
+
iconsFilled: true,
|
|
107
108
|
},
|
|
108
109
|
};
|
|
109
110
|
|
|
@@ -113,6 +114,14 @@ export const OnlyIcon = {
|
|
|
113
114
|
},
|
|
114
115
|
};
|
|
115
116
|
|
|
117
|
+
export const Alternative = {
|
|
118
|
+
args: {
|
|
119
|
+
type: 'alternative',
|
|
120
|
+
iconLeft: 'add',
|
|
121
|
+
text: 'Text',
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
|
|
116
125
|
export const Warning = {
|
|
117
126
|
parameters: {
|
|
118
127
|
docs: {
|
|
@@ -25,7 +25,8 @@ export default {
|
|
|
25
25
|
type: {
|
|
26
26
|
control: { type: 'select' },
|
|
27
27
|
options: ['single', 'multiple'],
|
|
28
|
-
description:
|
|
28
|
+
description:
|
|
29
|
+
'The type of chip - single for basic display, multiple for selection with icons',
|
|
29
30
|
},
|
|
30
31
|
text: {
|
|
31
32
|
control: { type: 'text' },
|
|
@@ -33,7 +34,8 @@ export default {
|
|
|
33
34
|
},
|
|
34
35
|
isSelected: {
|
|
35
36
|
control: { type: 'boolean' },
|
|
36
|
-
description:
|
|
37
|
+
description:
|
|
38
|
+
'Whether the chip is in selected state (affects styling and icons)',
|
|
37
39
|
},
|
|
38
40
|
count: {
|
|
39
41
|
control: { type: 'number' },
|
|
@@ -41,7 +43,8 @@ export default {
|
|
|
41
43
|
},
|
|
42
44
|
isClickable: {
|
|
43
45
|
control: { type: 'boolean' },
|
|
44
|
-
description:
|
|
46
|
+
description:
|
|
47
|
+
'Whether the chip should show clickable styling (cursor pointer)',
|
|
45
48
|
},
|
|
46
49
|
},
|
|
47
50
|
};
|
|
@@ -170,4 +173,4 @@ export const Interactive = {
|
|
|
170
173
|
/>
|
|
171
174
|
`,
|
|
172
175
|
}),
|
|
173
|
-
};
|
|
176
|
+
};
|
|
@@ -35,7 +35,9 @@ export default {
|
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
template: `
|
|
38
|
-
|
|
38
|
+
<unnnic-form-element label="Label" message="Helper text">
|
|
39
|
+
<unnnic-input v-model="value" @icon-right-click="click" v-bind="args" />
|
|
40
|
+
</unnnic-form-element>
|
|
39
41
|
`,
|
|
40
42
|
}),
|
|
41
43
|
};
|
|
@@ -154,20 +156,4 @@ export const Mask = {
|
|
|
154
156
|
placeholder: 'Text',
|
|
155
157
|
mask: ['###.###.###-##', '##.###.###/####-##'],
|
|
156
158
|
},
|
|
157
|
-
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
export const LimitMaxLength = {
|
|
161
|
-
args: {
|
|
162
|
-
placeholder: 'Text',
|
|
163
|
-
maxlength: 10,
|
|
164
|
-
showMaxlengthCounter: true,
|
|
165
|
-
},
|
|
166
159
|
};
|
|
167
|
-
|
|
168
|
-
export const WithTooltip = {
|
|
169
|
-
args: {
|
|
170
|
-
placeholder: 'Text',
|
|
171
|
-
tooltip: 'Tooltip',
|
|
172
|
-
},
|
|
173
|
-
};
|
package/src/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { App, Component } from
|
|
1
|
+
import type { App, Component } from 'vue';
|
|
2
2
|
|
|
3
|
-
export type { IconProps } from
|
|
3
|
+
export type { IconProps } from '../components/Icon.vue';
|
|
4
4
|
|
|
5
5
|
export interface UnnnicPlugin {
|
|
6
6
|
install(app: App): void;
|