@weni/unnnic-system 3.8.2-alpha.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -1
- package/dist/components/Alert/Alert.vue.d.ts +116 -17
- 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 +3 -3
- 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 +1 -1
- 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 +5 -5
- package/dist/components/Card/BlankCard.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts +27 -27
- package/dist/components/Card/CardCompany.vue.d.ts +414 -11
- package/dist/components/Card/CardData.vue.d.ts +1 -1
- package/dist/components/Card/CardStatusesContainer.vue.d.ts +5 -5
- package/dist/components/Card/ContentCard.vue.d.ts +3 -3
- package/dist/components/Card/DashCard.vue.d.ts +5 -5
- 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 +3 -3
- package/dist/components/CardImage/CardImage.vue.d.ts +31 -24
- package/dist/components/CardInformation/CardInformation.vue.d.ts +5 -5
- package/dist/components/CardProject/CardProject.vue.d.ts +3 -3
- package/dist/components/Carousel/Carousel.vue.d.ts +416 -13
- package/dist/components/Carousel/TagCarousel.vue.d.ts +415 -12
- package/dist/components/ChartBar/ChartBar.vue.d.ts +5 -5
- 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 +446 -21
- 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 +26 -19
- package/dist/components/Checkbox/Checkbox.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 +41 -251
- package/dist/components/DatePicker/DatePicker.vue.d.ts +4 -4
- package/dist/components/Drawer/Drawer.vue.d.ts +4 -4
- 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 +28 -51
- 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 +4 -4
- package/dist/components/Input/BaseInput.vue.d.ts +2 -33
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +41 -251
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +25 -85
- package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +47 -257
- package/dist/components/InputNext/InputNext.vue.d.ts +5 -5
- 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 +34 -199
- package/dist/components/ModalDialog/ModalDialog.vue.d.ts.map +1 -1
- package/dist/components/ModalNext/ModalNext.vue.d.ts +46 -256
- package/dist/components/ModalUpload/ModalUpload.vue.d.ts +9 -9
- 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 +3 -3
- 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 +470 -120
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +414 -11
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +28 -21
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts.map +1 -1
- package/dist/components/SelectTime/index.vue.d.ts +25 -85
- 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 +21 -55
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/TabsExpanded/TabsExpanded.vue.d.ts +1 -1
- package/dist/components/Tag/BrandTag.vue.d.ts +51 -0
- package/dist/components/Tag/BrandTag.vue.d.ts.map +1 -0
- package/dist/components/Tag/DefaultTag.vue.d.ts +83 -4
- package/dist/components/Tag/DefaultTag.vue.d.ts.map +1 -1
- package/dist/components/Tag/IndicatorTag.vue.d.ts +151 -0
- package/dist/components/Tag/IndicatorTag.vue.d.ts.map +1 -0
- package/dist/components/Tag/Tag.vue.d.ts +414 -12
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Tag/TagNext.vue.d.ts +24 -0
- package/dist/components/Tag/TagNext.vue.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.vue.d.ts +30 -66
- 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 +3 -3
- package/dist/components/Tour/TourPopover.vue.d.ts +3 -3
- package/dist/components/UploadArea/UploadArea.vue.d.ts +4 -4
- package/dist/components/index.d.ts +6701 -5734
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/components/ui/{dialog/Dialog.vue.d.ts → tabs/Tabs.vue.d.ts} +7 -6
- package/dist/components/ui/tabs/Tabs.vue.d.ts.map +1 -0
- package/dist/components/ui/{dialog/DialogTitle.vue.d.ts → tabs/TabsContent.vue.d.ts} +3 -3
- package/dist/components/ui/tabs/TabsContent.vue.d.ts.map +1 -0
- package/dist/components/ui/{dialog/DialogFooter.vue.d.ts → tabs/TabsList.vue.d.ts} +5 -7
- package/dist/components/ui/tabs/TabsList.vue.d.ts.map +1 -0
- package/dist/components/ui/{dialog/DialogHeader.vue.d.ts → tabs/TabsTrigger.vue.d.ts} +5 -11
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/tabs/index.d.ts +5 -0
- package/dist/components/ui/tabs/index.d.ts.map +1 -0
- package/dist/{es-4f3d094b.mjs → es-4b7090cd.mjs} +1 -1
- package/dist/{index-43281ff3.mjs → index-65c23d9a.mjs} +15222 -15709
- 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-8a34ccb7.mjs → pt-br-6324858c.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +185 -194
- package/dist/unnnic.umd.js +39 -39
- 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/tailwind.scss +0 -8
- 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__/Alert.spec.js +45 -2
- 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__/Version1dot1.spec.js +21 -0
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +1 -1
- package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +3 -3
- package/src/components/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +1 -1
- package/src/components/Button/Button.vue +117 -68
- package/src/components/Button/types.ts +1 -0
- package/src/components/ChatsContact/ChatsContact.vue +6 -10
- package/src/components/Checkbox/Checkbox.vue +65 -117
- package/src/components/Checkbox/__tests__/Checkbox.spec.js +21 -6
- package/src/components/Collapse/__tests__/__snapshots__/Collapse.spec.js.snap +1 -3
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +3 -3
- package/src/components/FormElement/FormElement.vue +93 -63
- package/src/components/Icon.vue +0 -2
- package/src/components/Input/BaseInput.vue +14 -33
- package/src/components/Input/Input.scss +21 -20
- package/src/components/Input/Input.vue +56 -79
- package/src/components/Input/TextInput.vue +68 -80
- package/src/components/Input/__test__/Input.spec.js +33 -13
- package/src/components/Input/__test__/TextInput.spec.js +8 -6
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +1 -1
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
- package/src/components/Label/Label.vue +21 -52
- package/src/components/Label/__tests__/Label.spec.js +1 -1
- package/src/components/ModalDialog/ModalDialog.vue +146 -60
- package/src/components/ModalDialog/__tests__/__snapshots__/ModalDialog.spec.js.snap +22 -1
- package/src/components/Radio/Radio.vue +67 -98
- package/src/components/Radio/__test__/Radio.spec.js +20 -14
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +1 -1
- package/src/components/SelectSmart/SelectSmart.vue +3 -4
- package/src/components/Switch/Switch.vue +91 -132
- package/src/components/Switch/__tests__/Switch.spec.js +75 -8
- package/src/components/Switch/__tests__/__snapshots__/Switch.spec.js.snap +1 -1
- 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/Tag/BrandTag.vue +96 -0
- package/src/components/Tag/DefaultTag.vue +107 -46
- package/src/components/Tag/IndicatorTag.vue +107 -0
- package/src/components/Tag/Tag.vue +79 -32
- package/src/components/Tag/TagNext.vue +60 -0
- package/src/components/TextArea/TextArea.vue +11 -34
- package/src/components/index.ts +27 -48
- package/src/components/ui/tabs/Tabs.vue +19 -0
- package/src/components/ui/tabs/TabsContent.vue +22 -0
- package/src/components/ui/tabs/TabsList.vue +34 -0
- package/src/components/ui/tabs/TabsTrigger.vue +79 -0
- package/src/components/ui/tabs/index.ts +4 -0
- 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 +39 -29
- package/src/stories/Checkbox.stories.js +4 -11
- package/src/stories/Input.stories.js +76 -71
- package/src/stories/Label.stories.js +0 -7
- package/src/stories/ModalDialog.mdx +0 -3
- package/src/stories/ModalDialog.stories.js +1 -1
- package/src/stories/Switch.stories.js +5 -10
- package/src/stories/Tab.stories.js +4 -11
- package/src/stories/Tabs.stories.js +125 -0
- package/src/stories/Tag.stories.js +43 -24
- package/src/stories/TextArea.stories.js +2 -13
- package/src/types/scheme-colors.d.ts +0 -1
- package/src/utils/call.js +18 -46
- package/dist/assets/tokens/colors.json.d.ts +0 -376
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts +0 -28
- package/dist/components/CheckboxGroup/CheckboxGroup.vue.d.ts.map +0 -1
- package/dist/components/Tag/types.d.ts +0 -18
- package/dist/components/Tag/types.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/dist/components/ui/dialog/Dialog.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -19
- package/dist/components/ui/dialog/DialogClose.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -40
- package/dist/components/ui/dialog/DialogContent.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -19
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts.map +0 -1
- package/dist/components/ui/dialog/index.d.ts +0 -8
- package/dist/components/ui/dialog/index.d.ts.map +0 -1
- package/src/assets/icons/checkbox-checked-disabled.svg +0 -3
- package/src/assets/icons/checkbox-checked.svg +0 -3
- package/src/assets/icons/checkbox-less-disabled.svg +0 -3
- package/src/assets/icons/checkbox-less.svg +0 -3
- package/src/assets/icons/radio-checked.svg +0 -3
- package/src/assets/icons/switch-checked-disabled.svg +0 -3
- package/src/assets/icons/switch-checked.svg +0 -3
- package/src/components/Alert/SIMPLE_MIGRATION_GUIDE.md +0 -152
- package/src/components/CheckboxGroup/CheckboxGroup.vue +0 -96
- 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 -142
- 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/Tag/types.ts +0 -19
- package/src/components/Toast/Toast.vue +0 -246
- package/src/components/Toast/ToastManager.ts +0 -110
- package/src/components/Toast/__tests__/Toast.spec.js +0 -284
- package/src/components/Toast/__tests__/ToastManager.spec.js +0 -294
- package/src/components/Toast/types.ts +0 -57
- package/src/components/ui/dialog/Dialog.vue +0 -15
- package/src/components/ui/dialog/DialogClose.vue +0 -25
- package/src/components/ui/dialog/DialogContent.vue +0 -114
- package/src/components/ui/dialog/DialogFooter.vue +0 -46
- package/src/components/ui/dialog/DialogHeader.vue +0 -78
- package/src/components/ui/dialog/DialogTitle.vue +0 -34
- package/src/components/ui/dialog/DialogTrigger.vue +0 -12
- package/src/components/ui/dialog/index.ts +0 -7
- package/src/stories/CheckboxGroup.stories.js +0 -105
- package/src/stories/Dialog.stories.js +0 -832
- package/src/stories/RadioGroup.stories.js +0 -144
- package/src/stories/Select.stories.js +0 -158
- package/src/stories/Toast.mdx +0 -123
- package/src/stories/Toast.stories.js +0 -126
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="{
|
|
4
|
+
'unnnic-brand-tag': true,
|
|
5
|
+
'unnnic-brand-tag--disabled': !disabled,
|
|
6
|
+
'unnnic-brand-tag--clickable': clickable,
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<span class="unnnic-brand-tag__label">{{ text }}</span>
|
|
10
|
+
<UnnnicIcon
|
|
11
|
+
:icon="disabled ? 'close-1' : 'add-1'"
|
|
12
|
+
:scheme="disabled ? 'neutral-snow' : 'brand-weni-dark'"
|
|
13
|
+
class="unnnic-brand-tag__icon"
|
|
14
|
+
size="xs"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import UnnnicIcon from '../Icon.vue';
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'UnnnicBrandTag',
|
|
24
|
+
components: {
|
|
25
|
+
UnnnicIcon,
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
text: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: null,
|
|
31
|
+
},
|
|
32
|
+
clickable: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false,
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
closeClicked() {
|
|
43
|
+
if (!this.closeClicked) return;
|
|
44
|
+
this.$emit('close-click');
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style lang="scss" scoped>
|
|
51
|
+
@use '@/assets/scss/unnnic' as *;
|
|
52
|
+
|
|
53
|
+
.unnnic-brand-tag {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
border-radius: $unnnic-border-radius-pill;
|
|
58
|
+
border: 1px solid $unnnic-color-brand-weni-soft;
|
|
59
|
+
height: 1.875 * $unnnic-font-size;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
transition: 0.2s;
|
|
62
|
+
|
|
63
|
+
color: $unnnic-color-neutral-snow;
|
|
64
|
+
background-color: $unnnic-color-brand-weni-dark;
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: $unnnic-color-brand-weni-soft;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--disabled {
|
|
70
|
+
color: $unnnic-color-brand-weni-dark;
|
|
71
|
+
background-color: $unnnic-color-background-snow;
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: rgba(
|
|
74
|
+
$unnnic-color-brand-weni,
|
|
75
|
+
$unnnic-opacity-level-extra-light
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&--clickable {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__label {
|
|
84
|
+
font-family: $unnnic-font-family-secondary;
|
|
85
|
+
font-size: $unnnic-font-size-body-md;
|
|
86
|
+
font-weight: $unnnic-font-weight-regular;
|
|
87
|
+
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
88
|
+
padding: $unnnic-spacing-stack-nano $unnnic-inline-ant;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__icon {
|
|
92
|
+
margin-right: $unnnic-inline-ant;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -1,83 +1,144 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section
|
|
2
|
+
<section
|
|
3
|
+
:class="`unnnic-tag
|
|
4
|
+
${!disabled ? `unnnic-tag-scheme--${scheme}` : `unnnic-tag--disabled`}
|
|
5
|
+
${clickable ? 'unnnic-tag--clickable' : ''}`"
|
|
6
|
+
>
|
|
3
7
|
<section
|
|
4
8
|
v-if="leftIcon"
|
|
5
9
|
class="unnnic-tag__icon"
|
|
6
10
|
>
|
|
7
11
|
<UnnnicIcon
|
|
8
12
|
:icon="leftIcon"
|
|
9
|
-
scheme="
|
|
13
|
+
:scheme="scheme"
|
|
14
|
+
size="sm"
|
|
15
|
+
/>
|
|
16
|
+
</section>
|
|
17
|
+
<span
|
|
18
|
+
:class="`unnnic-tag__label
|
|
19
|
+
${disabled ? 'unnnic-tag__label--disabled' : ''}`"
|
|
20
|
+
>{{ text }}</span
|
|
21
|
+
>
|
|
22
|
+
<section
|
|
23
|
+
v-if="rightIcon || hasCloseIcon"
|
|
24
|
+
:class="{ 'unnnic-tag__icon': true, clickable: !rightIcon }"
|
|
25
|
+
@click.stop="hasCloseIcon ? emitClose() : () => {}"
|
|
26
|
+
>
|
|
27
|
+
<UnnnicIcon
|
|
28
|
+
:icon="rightIcon || 'close'"
|
|
29
|
+
:scheme="rightIcon ? scheme : 'neutral-darkest'"
|
|
10
30
|
size="sm"
|
|
11
31
|
/>
|
|
12
32
|
</section>
|
|
13
|
-
<p :class="`unnnic-tag__label`">{{ text }}</p>
|
|
14
33
|
</section>
|
|
15
34
|
</template>
|
|
16
35
|
|
|
17
|
-
<script
|
|
18
|
-
import { computed } from 'vue';
|
|
19
|
-
|
|
20
|
-
import { color as colors } from '@/assets/tokens/colors.json';
|
|
21
|
-
|
|
36
|
+
<script>
|
|
22
37
|
import UnnnicIcon from '../Icon.vue';
|
|
23
38
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
export default {
|
|
40
|
+
name: 'UnnnicTag',
|
|
41
|
+
components: {
|
|
42
|
+
UnnnicIcon,
|
|
43
|
+
},
|
|
44
|
+
props: {
|
|
45
|
+
text: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: null,
|
|
48
|
+
},
|
|
49
|
+
clickable: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: false,
|
|
52
|
+
},
|
|
53
|
+
disabled: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false,
|
|
56
|
+
},
|
|
57
|
+
hasCloseIcon: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false,
|
|
60
|
+
},
|
|
61
|
+
scheme: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'aux-purple',
|
|
64
|
+
},
|
|
65
|
+
leftIcon: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: null,
|
|
68
|
+
},
|
|
69
|
+
rightIcon: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: null,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
closeClicked() {
|
|
76
|
+
if (!this.closeClicked) return;
|
|
77
|
+
this.$emit('close-click');
|
|
78
|
+
},
|
|
79
|
+
emitClose() {
|
|
80
|
+
this.$emit('close');
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
53
84
|
</script>
|
|
54
85
|
|
|
55
86
|
<style lang="scss" scoped>
|
|
56
87
|
@use '@/assets/scss/unnnic' as *;
|
|
57
88
|
|
|
89
|
+
@each $name, $color in $scheme-colors {
|
|
90
|
+
.unnnic-tag-scheme--#{$name} {
|
|
91
|
+
background-color: rgba($color, $unnnic-opacity-level-light);
|
|
92
|
+
outline-style: solid;
|
|
93
|
+
outline-color: rgba($color, $unnnic-opacity-level-extra-light);
|
|
94
|
+
outline-width: $unnnic-border-width-thinner;
|
|
95
|
+
outline-offset: -$unnnic-border-width-thinner;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
58
99
|
.unnnic-tag {
|
|
59
100
|
display: flex;
|
|
60
101
|
align-items: center;
|
|
61
102
|
justify-content: center;
|
|
62
|
-
gap: $unnnic-space-1;
|
|
63
103
|
border-radius: $unnnic-border-radius-pill;
|
|
64
|
-
padding:
|
|
104
|
+
padding: 0 $unnnic-spacing-xs;
|
|
65
105
|
|
|
66
|
-
|
|
106
|
+
&--disabled {
|
|
107
|
+
background-color: $unnnic-color-background-sky;
|
|
108
|
+
}
|
|
67
109
|
|
|
68
|
-
&--
|
|
69
|
-
|
|
110
|
+
&--clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
|
|
113
|
+
@each $name, $color in $scheme-colors {
|
|
114
|
+
&.unnnic-tag-scheme--#{$name}:hover {
|
|
115
|
+
outline-style: solid;
|
|
116
|
+
outline-color: $unnnic-color-neutral-cleanest;
|
|
117
|
+
outline-width: $unnnic-border-width-thinner;
|
|
118
|
+
outline-offset: -$unnnic-border-width-thinner;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
70
121
|
}
|
|
71
122
|
|
|
72
123
|
&__label {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
font: $unnnic-font-
|
|
76
|
-
|
|
124
|
+
font-family: $unnnic-font-family-secondary;
|
|
125
|
+
font-size: $unnnic-font-size-body-md;
|
|
126
|
+
font-weight: $unnnic-font-weight-regular;
|
|
127
|
+
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
128
|
+
padding: $unnnic-spacing-stack-nano;
|
|
129
|
+
color: $unnnic-color-neutral-darkest;
|
|
130
|
+
|
|
131
|
+
&--disabled {
|
|
132
|
+
color: $unnnic-color-neutral-cloudy;
|
|
133
|
+
}
|
|
77
134
|
}
|
|
78
135
|
|
|
79
136
|
&__icon {
|
|
80
137
|
display: flex;
|
|
81
138
|
}
|
|
139
|
+
|
|
140
|
+
.clickable {
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
82
143
|
}
|
|
83
144
|
</style>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="`unnnic-tag
|
|
4
|
+
${clickable ? 'unnnic-tag--clickable' : ''}`"
|
|
5
|
+
>
|
|
6
|
+
<ToolTip
|
|
7
|
+
:enabled="enableTooltip"
|
|
8
|
+
:text="tooltipText"
|
|
9
|
+
side="bottom"
|
|
10
|
+
>
|
|
11
|
+
<span class="unnnic-tag__count">{{ count }}</span>
|
|
12
|
+
</ToolTip>
|
|
13
|
+
<span class="unnnic-tag__label">{{ text }}</span>
|
|
14
|
+
<UnnnicIcon
|
|
15
|
+
v-if="hasBackButton"
|
|
16
|
+
icon="arrow-right-1-1"
|
|
17
|
+
class="unnnic-tag__icon"
|
|
18
|
+
scheme="neutral-darkest"
|
|
19
|
+
size="xs"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import UnnnicIcon from '../Icon.vue';
|
|
26
|
+
import ToolTip from '../ToolTip/ToolTip.vue';
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
name: 'UnnnicTag',
|
|
30
|
+
components: {
|
|
31
|
+
UnnnicIcon,
|
|
32
|
+
ToolTip,
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
text: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
tooltipText: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: null,
|
|
42
|
+
},
|
|
43
|
+
count: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 0,
|
|
46
|
+
},
|
|
47
|
+
clickable: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false,
|
|
50
|
+
},
|
|
51
|
+
hasBackButton: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
enableTooltip: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style lang="scss" scoped>
|
|
64
|
+
@use '@/assets/scss/unnnic' as *;
|
|
65
|
+
|
|
66
|
+
.unnnic-tag {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
border-radius: $unnnic-border-radius-sm;
|
|
71
|
+
background-color: $unnnic-color-background-sky;
|
|
72
|
+
padding: $unnnic-inset-nano;
|
|
73
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-background-sky;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--clickable {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__count {
|
|
84
|
+
background-color: $unnnic-color-neutral-soft;
|
|
85
|
+
border-radius: $unnnic-border-radius-sm;
|
|
86
|
+
padding: $unnnic-inline-nano;
|
|
87
|
+
font-family: $unnnic-font-family-secondary;
|
|
88
|
+
font-size: $unnnic-font-size-body-md;
|
|
89
|
+
font-weight: $unnnic-font-weight-regular;
|
|
90
|
+
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
91
|
+
color: $unnnic-color-neutral-darkest;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__label {
|
|
95
|
+
padding: 0 $unnnic-inline-xs;
|
|
96
|
+
font-family: $unnnic-font-family-secondary;
|
|
97
|
+
font-size: $unnnic-font-size-body-md;
|
|
98
|
+
font-weight: $unnnic-font-weight-regular;
|
|
99
|
+
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
100
|
+
color: $unnnic-color-neutral-darkest;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__icon {
|
|
104
|
+
margin-right: $unnnic-inline-ant;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -1,43 +1,90 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
:isSelected="disabled || hasCloseIcon"
|
|
7
|
-
isClickable
|
|
8
|
-
@click="hasCloseIcon ? $emit('close') : $emit('click')"
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
<DefaultTag
|
|
12
|
-
v-else
|
|
13
|
-
:size="type === 'next' ? 'small' : size"
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
class="unnnic-tag-content"
|
|
5
|
+
v-bind="$attrs"
|
|
14
6
|
:text="text"
|
|
7
|
+
:disabled="disabled"
|
|
8
|
+
:hasCloseIcon="hasCloseIcon"
|
|
15
9
|
:scheme="scheme"
|
|
10
|
+
:count="count"
|
|
11
|
+
:hasBackButton="hasBackButton"
|
|
12
|
+
:clickable="clickable"
|
|
13
|
+
:tooltipText="tooltipText"
|
|
14
|
+
:enableTooltip="enableTooltip"
|
|
16
15
|
:leftIcon="leftIcon"
|
|
16
|
+
:rightIcon="rightIcon"
|
|
17
17
|
/>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
|
-
<script
|
|
21
|
-
import UnnnicChip from '../Chip/Chip.vue';
|
|
20
|
+
<script>
|
|
22
21
|
import DefaultTag from './DefaultTag.vue';
|
|
23
|
-
import
|
|
22
|
+
import IndicatorTag from './IndicatorTag.vue';
|
|
23
|
+
import BrandTag from './BrandTag.vue';
|
|
24
|
+
import TagNext from './TagNext.vue';
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
export default {
|
|
26
27
|
name: 'UnnnicTag',
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
28
|
+
props: {
|
|
29
|
+
type: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: 'default',
|
|
32
|
+
validator(value) {
|
|
33
|
+
return ['default', 'indicator', 'brand', 'next'].indexOf(value) !== -1;
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
text: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: null,
|
|
39
|
+
},
|
|
40
|
+
tooltipText: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: null,
|
|
43
|
+
},
|
|
44
|
+
clickable: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
48
|
+
count: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 0,
|
|
51
|
+
},
|
|
52
|
+
disabled: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false,
|
|
55
|
+
},
|
|
56
|
+
hasCloseIcon: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
scheme: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: 'aux-purple',
|
|
63
|
+
},
|
|
64
|
+
hasBackButton: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false,
|
|
67
|
+
},
|
|
68
|
+
enableTooltip: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false,
|
|
71
|
+
},
|
|
72
|
+
leftIcon: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: '',
|
|
75
|
+
},
|
|
76
|
+
rightIcon: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: '',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
computed: {
|
|
82
|
+
currentComponent() {
|
|
83
|
+
if (this.type === 'indicator') return IndicatorTag;
|
|
84
|
+
if (this.type === 'brand') return BrandTag;
|
|
85
|
+
if (this.type === 'next') return TagNext;
|
|
86
|
+
return DefaultTag;
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
43
90
|
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section :class="['unnnic-tag-next', `unnnic-tag-next--${scheme}`]">
|
|
3
|
+
<p class="unnnic-tag-next__text">
|
|
4
|
+
{{ text }}
|
|
5
|
+
</p>
|
|
6
|
+
</section>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
name: 'TagNext',
|
|
12
|
+
props: {
|
|
13
|
+
text: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: null,
|
|
16
|
+
},
|
|
17
|
+
scheme: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: 'weni',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style lang="scss" scoped>
|
|
26
|
+
@use '@/assets/scss/unnnic' as *;
|
|
27
|
+
|
|
28
|
+
.unnnic-tag-next {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
width: auto;
|
|
33
|
+
|
|
34
|
+
border-radius: $unnnic-border-radius-pill;
|
|
35
|
+
padding: 0 $unnnic-spacing-xs;
|
|
36
|
+
|
|
37
|
+
font-family: $unnnic-font-family-secondary;
|
|
38
|
+
font-size: $unnnic-font-size-body-md;
|
|
39
|
+
font-weight: $unnnic-font-weight-regular;
|
|
40
|
+
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
41
|
+
|
|
42
|
+
&__text {
|
|
43
|
+
margin: 0;
|
|
44
|
+
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--aux-purple {
|
|
51
|
+
background-color: $unnnic-color-aux-purple-100;
|
|
52
|
+
color: $unnnic-color-aux-purple-500;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--weni {
|
|
56
|
+
background-color: $unnnic-color-weni-100;
|
|
57
|
+
color: $unnnic-color-weni-600;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:size="size"
|
|
5
5
|
:disabled="disabled"
|
|
6
6
|
:message="message"
|
|
7
|
-
:error="
|
|
7
|
+
:error="errors.join(', ') || type === 'error'"
|
|
8
8
|
>
|
|
9
9
|
<textarea
|
|
10
10
|
ref="textarea"
|
|
@@ -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
|
|
|
@@ -44,14 +43,6 @@ export default {
|
|
|
44
43
|
default: 'md',
|
|
45
44
|
},
|
|
46
45
|
|
|
47
|
-
resize: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: 'vertical',
|
|
50
|
-
validator(value) {
|
|
51
|
-
return ['none', 'vertical'].indexOf(value) !== -1;
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
|
|
55
46
|
label: {
|
|
56
47
|
type: String,
|
|
57
48
|
},
|
|
@@ -92,16 +83,6 @@ export default {
|
|
|
92
83
|
},
|
|
93
84
|
emits: ['update:modelValue'],
|
|
94
85
|
|
|
95
|
-
computed: {
|
|
96
|
-
computedError() {
|
|
97
|
-
if (Array.isArray(this.errors)) {
|
|
98
|
-
return this.errors.join(', ') || this.type === 'error';
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return this.errors || this.type === 'error';
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
|
|
105
86
|
methods: {
|
|
106
87
|
fullySanitize,
|
|
107
88
|
focus() {
|
|
@@ -115,35 +96,31 @@ export default {
|
|
|
115
96
|
@use '@/assets/scss/unnnic' as *;
|
|
116
97
|
@use '@/components/Input/Input' as *;
|
|
117
98
|
|
|
118
|
-
* {
|
|
119
|
-
margin: 0;
|
|
120
|
-
padding: 0;
|
|
121
|
-
box-sizing: border-box;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
99
|
.unnnic-text-area {
|
|
125
100
|
&__textarea {
|
|
126
101
|
@include input-base;
|
|
127
102
|
|
|
128
103
|
display: block;
|
|
129
104
|
width: 100%;
|
|
130
|
-
|
|
131
|
-
|
|
105
|
+
resize: vertical;
|
|
106
|
+
box-sizing: border-box;
|
|
132
107
|
|
|
133
108
|
scrollbar-width: thin;
|
|
134
109
|
|
|
135
|
-
padding: $unnnic-space-3 $unnnic-space-4;
|
|
136
|
-
|
|
137
110
|
&--size-md {
|
|
138
111
|
@include input-md-font;
|
|
139
112
|
|
|
140
|
-
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);
|
|
141
116
|
}
|
|
142
117
|
|
|
143
118
|
&--size-sm {
|
|
144
119
|
@include input-sm-font;
|
|
145
120
|
|
|
146
|
-
min-height: $unnnic-
|
|
121
|
+
min-height: 5 * $unnnic-font-size;
|
|
122
|
+
padding: ($unnnic-spacing-xs)
|
|
123
|
+
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
147
124
|
}
|
|
148
125
|
|
|
149
126
|
&.unnnic-text-area__textarea--type-error {
|