@weni/unnnic-system 3.2.5-alpha.0 → 3.2.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +1 -1
- package/dist/components/AudioRecorder/AudioPlayer.vue.d.ts +1 -1
- package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +3 -3
- 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/ButtonIcon.vue.d.ts +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 +20 -20
- package/dist/components/Card/CardCompany.vue.d.ts +7 -7
- package/dist/components/Card/CardData.vue.d.ts +1 -1
- package/dist/components/Card/CardStatusesContainer.vue.d.ts +3 -3
- 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 +2 -2
- package/dist/components/Card/StatusCard.vue.d.ts +2 -2
- package/dist/components/Card/TitleCard.vue.d.ts +1 -1
- package/dist/components/CardImage/CardImage.vue.d.ts +7 -7
- package/dist/components/CardInformation/CardInformation.vue.d.ts +3 -3
- package/dist/components/CardProject/CardProject.vue.d.ts +2 -2
- package/dist/components/Carousel/Carousel.vue.d.ts +10 -10
- package/dist/components/Carousel/TagCarousel.vue.d.ts +8 -8
- package/dist/components/ChartBar/ChartBar.vue.d.ts +7 -7
- package/dist/components/ChatText/ChatText.vue.d.ts +1 -1
- package/dist/components/ChatsContact/ChatsContact.vue.d.ts +14 -14
- 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 +4 -4
- 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 +1 -1
- 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 +182 -27
- package/dist/components/DatePicker/DatePicker.vue.d.ts +6 -6
- package/dist/components/Drawer/Drawer.vue.d.ts +7 -7
- 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 +38 -32
- package/dist/components/FormElement/FormElement.vue.d.ts.map +1 -1
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Icon/types.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 +10 -1
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +182 -27
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +31 -13
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +189 -34
- 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 +9 -9
- package/dist/components/ModalNext/ModalNext.vue.d.ts +189 -34
- package/dist/components/ModalUpload/ModalUpload.vue.d.ts +14 -14
- 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 +44 -26
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +7 -7
- package/dist/components/SelectSmart/SelectSmartOption.vue.d.ts +4 -4
- package/dist/components/SelectTime/index.vue.d.ts +31 -13
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +7 -7
- package/dist/components/TextArea/TextArea.vue.d.ts +38 -32
- package/dist/components/TextArea/TextArea.vue.d.ts.map +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 +2016 -752
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{es-e4a6e990.mjs → es-dc7f4ae0.mjs} +1 -1
- package/dist/{index-de083a7a.mjs → index-93c6d4e1.mjs} +3582 -3554
- package/dist/{pt-br-229e5ab3.mjs → pt-br-6c72f1f4.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +31 -31
- package/package.json +1 -1
- package/src/components/FormElement/FormElement.vue +50 -90
- package/src/components/Icon/types.ts +7 -0
- package/src/components/Icon.vue +7 -0
- package/src/components/Input/BaseInput.vue +10 -12
- package/src/components/Input/Input.scss +17 -20
- package/src/components/Input/Input.vue +86 -28
- package/src/components/Input/TextInput.vue +27 -35
- package/src/components/Input/__test__/TextInput.spec.js +5 -5
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +12 -3
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
- package/src/components/TextArea/TextArea.vue +14 -9
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +7 -2
- package/src/stories/Input.stories.js +17 -3
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
:class="[
|
|
4
4
|
'text-input',
|
|
5
5
|
`size--${size}`,
|
|
6
|
-
`text-input--icon-right-size-${iconRightSize}`,
|
|
7
6
|
]"
|
|
8
7
|
>
|
|
9
8
|
<BaseInput
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
class="input-itself"
|
|
19
18
|
:hasIconLeft="!!iconLeft"
|
|
20
19
|
:hasIconRight="!!iconRight || allowTogglePassword"
|
|
20
|
+
:maxlength="maxlength"
|
|
21
21
|
@focus="onFocus"
|
|
22
22
|
@blur="onBlur"
|
|
23
23
|
/>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
v-if="iconLeft"
|
|
27
27
|
:scheme="iconScheme"
|
|
28
28
|
:icon="iconLeft"
|
|
29
|
-
size="
|
|
29
|
+
size="ant"
|
|
30
30
|
:clickable="iconLeftClickable"
|
|
31
31
|
:class="['icon-left', { clickable: iconLeftClickable }]"
|
|
32
32
|
@click="onIconLeftClick"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
v-if="iconRightSvg"
|
|
37
37
|
:scheme="iconScheme"
|
|
38
38
|
:icon="iconRightSvg"
|
|
39
|
-
|
|
39
|
+
size="ant"
|
|
40
40
|
:clickable="iconRightClickable || allowTogglePassword"
|
|
41
41
|
:class="[
|
|
42
42
|
'icon-right',
|
|
@@ -92,10 +92,6 @@ export default {
|
|
|
92
92
|
type: Boolean,
|
|
93
93
|
default: null,
|
|
94
94
|
},
|
|
95
|
-
iconRightSize: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: 'sm',
|
|
98
|
-
},
|
|
99
95
|
allowTogglePassword: {
|
|
100
96
|
type: Boolean,
|
|
101
97
|
default: null,
|
|
@@ -108,6 +104,14 @@ export default {
|
|
|
108
104
|
type: String,
|
|
109
105
|
default: 'md',
|
|
110
106
|
},
|
|
107
|
+
maxlength: {
|
|
108
|
+
type: Number,
|
|
109
|
+
default: null,
|
|
110
|
+
},
|
|
111
|
+
disabled: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: false,
|
|
114
|
+
},
|
|
111
115
|
},
|
|
112
116
|
emits: ['icon-left-click', 'icon-right-click'],
|
|
113
117
|
data() {
|
|
@@ -118,7 +122,7 @@ export default {
|
|
|
118
122
|
},
|
|
119
123
|
computed: {
|
|
120
124
|
isDisabled() {
|
|
121
|
-
return this.$attrs.disabled;
|
|
125
|
+
return this.$attrs.disabled || this.disabled;
|
|
122
126
|
},
|
|
123
127
|
|
|
124
128
|
iconRightSvg() {
|
|
@@ -131,22 +135,22 @@ export default {
|
|
|
131
135
|
|
|
132
136
|
iconScheme() {
|
|
133
137
|
if (this.type === 'error') {
|
|
134
|
-
return '
|
|
138
|
+
return 'fg-critical';
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
if (this.isDisabled) {
|
|
138
|
-
return '
|
|
142
|
+
return 'fg-muted';
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
if (this.modelValue || this.isFocused) {
|
|
142
|
-
return '
|
|
146
|
+
return 'color-gray-700';
|
|
143
147
|
}
|
|
144
148
|
|
|
145
149
|
if (this.hasCloudyColor) {
|
|
146
|
-
return '
|
|
150
|
+
return 'fg-base';
|
|
147
151
|
}
|
|
148
152
|
|
|
149
|
-
return '
|
|
153
|
+
return 'fg-base';
|
|
150
154
|
},
|
|
151
155
|
|
|
152
156
|
attributes() {
|
|
@@ -183,6 +187,10 @@ export default {
|
|
|
183
187
|
<style lang="scss" scoped>
|
|
184
188
|
@use '@/assets/scss/unnnic' as *;
|
|
185
189
|
|
|
190
|
+
.text-input {
|
|
191
|
+
position: relative;
|
|
192
|
+
}
|
|
193
|
+
|
|
186
194
|
.icon {
|
|
187
195
|
&-left,
|
|
188
196
|
&-right {
|
|
@@ -193,32 +201,16 @@ export default {
|
|
|
193
201
|
|
|
194
202
|
&-left {
|
|
195
203
|
position: absolute;
|
|
196
|
-
top:
|
|
197
|
-
|
|
204
|
+
top: 50%;
|
|
205
|
+
transform: translateY(-50%);
|
|
206
|
+
left: $unnnic-space-4;
|
|
198
207
|
}
|
|
199
208
|
|
|
200
209
|
&-right {
|
|
201
210
|
position: absolute;
|
|
202
|
-
top:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
.text-input {
|
|
207
|
-
position: relative;
|
|
208
|
-
|
|
209
|
-
&.size--sm {
|
|
210
|
-
.icon-left,
|
|
211
|
-
.icon-right {
|
|
212
|
-
top: $unnnic-spacing-xs + 0.125 * $unnnic-font-size;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&.size--sm.text-input--icon-right-size-ant .icon-right {
|
|
217
|
-
top: 0.5625 * $unnnic-font-size;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&.size--md.text-input--icon-right-size-ant .icon-right {
|
|
221
|
-
top: 0.8125 * $unnnic-font-size;
|
|
211
|
+
top: 50%;
|
|
212
|
+
transform: translateY(-50%);
|
|
213
|
+
right: $unnnic-space-4;
|
|
222
214
|
}
|
|
223
215
|
}
|
|
224
216
|
</style>
|
|
@@ -74,22 +74,22 @@ describe('TextInput.vue', () => {
|
|
|
74
74
|
|
|
75
75
|
test('computes the correct iconScheme based on various states', async () => {
|
|
76
76
|
await wrapper.setProps({ type: 'error' });
|
|
77
|
-
expect(wrapper.vm.iconScheme).toBe('
|
|
77
|
+
expect(wrapper.vm.iconScheme).toBe('fg-critical');
|
|
78
78
|
|
|
79
79
|
await wrapper.setProps({ type: 'normal' });
|
|
80
80
|
await wrapper.setData({ isDisabled: true });
|
|
81
|
-
expect(wrapper.vm.iconScheme).toBe('
|
|
81
|
+
expect(wrapper.vm.iconScheme).toBe('fg-base');
|
|
82
82
|
|
|
83
83
|
await wrapper.setData({ isDisabled: false });
|
|
84
84
|
await wrapper.setProps({ modelValue: 'text' });
|
|
85
|
-
expect(wrapper.vm.iconScheme).toBe('
|
|
85
|
+
expect(wrapper.vm.iconScheme).toBe('color-gray-700');
|
|
86
86
|
|
|
87
87
|
await wrapper.setData({ isFocused: true });
|
|
88
|
-
expect(wrapper.vm.iconScheme).toBe('
|
|
88
|
+
expect(wrapper.vm.iconScheme).toBe('color-gray-700');
|
|
89
89
|
|
|
90
90
|
await wrapper.setProps({ hasCloudyColor: true, modelValue: '' });
|
|
91
91
|
await wrapper.setData({ isFocused: false });
|
|
92
|
-
expect(wrapper.vm.iconScheme).toBe('
|
|
92
|
+
expect(wrapper.vm.iconScheme).toBe('fg-base');
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
test('attributes computed property returns combined attributes and props', () => {
|
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Input.vue > matches the snapshot 1`] = `
|
|
4
4
|
"<div data-v-d890ad85="" class="unnnic-form md">
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<section data-v-d890ad85="" class="unnnic-form__label">
|
|
6
|
+
<p data-v-d890ad85="">Sample Label</p>
|
|
7
|
+
<!--v-if-->
|
|
8
|
+
</section>
|
|
9
|
+
<div data-v-a0d36167="" data-v-d890ad85="" class="text-input size--md unnnic-form-input" mask="####-####"><input data-v-86533b41="" data-v-a0d36167="" class="unnnic-form-input input-itself input size-md normal input--has-icon-left input--has-icon-right unnnic-form-input input-itself" placeholder="Enter text" iconleft="search" iconright="clear" iconleftclickable="true" iconrightclickable="true" hascloudycolor="false" type="text" value=""><span data-v-26446d8e="" data-v-a0d36167="" class="material-symbols-rounded unnnic-icon-scheme--fg-base unnnic-icon-size--ant unnnic--clickable icon-left clickable" data-testid="material-icon" translate="no">search</span><span data-v-26446d8e="" data-v-a0d36167="" class="material-symbols-rounded unnnic-icon-scheme--fg-base unnnic-icon-size--ant unnnic--clickable icon-right clickable" data-testid="material-icon" translate="no">clear</span></div>
|
|
10
|
+
<section data-v-d890ad85="" class="unnnic-form__hints-container">
|
|
11
|
+
<section data-v-d890ad85="" class="unnnic-form__message-container">
|
|
12
|
+
<p data-v-d890ad85="" class="unnnic-form__message">Error message</p>
|
|
13
|
+
<!--v-if-->
|
|
14
|
+
</section>
|
|
15
|
+
<!--v-if-->
|
|
16
|
+
</section>
|
|
8
17
|
</div>"
|
|
9
18
|
`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`TextInput.vue > matches the snapshot 1`] = `"<div data-v-a0d36167="" class="text-input size--md
|
|
3
|
+
exports[`TextInput.vue > matches the snapshot 1`] = `"<div data-v-a0d36167="" class="text-input size--md"><input data-v-86533b41="" data-v-a0d36167="" placeholder="Enter text" iconleft="search" iconright="clear" iconleftclickable="true" iconrightclickable="true" allowtogglepassword="false" hascloudycolor="false" class="input-itself input size-md normal input--has-icon-left input--has-icon-right input-itself" type="text" value=""><span data-v-26446d8e="" data-v-a0d36167="" class="material-symbols-rounded unnnic-icon-scheme--fg-base unnnic-icon-size--ant unnnic--clickable icon-left clickable" data-testid="material-icon" translate="no">search</span><span data-v-26446d8e="" data-v-a0d36167="" class="material-symbols-rounded unnnic-icon-scheme--fg-base unnnic-icon-size--ant unnnic--clickable icon-right clickable" data-testid="material-icon" translate="no">clear</span></div>"`;
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
:disabled="disabled"
|
|
19
19
|
:value="modelValue"
|
|
20
20
|
@input="$emit('update:modelValue', fullySanitize($event.target.value))"
|
|
21
|
-
|
|
21
|
+
/>
|
|
22
22
|
|
|
23
23
|
<template
|
|
24
24
|
v-if="maxLength"
|
|
25
25
|
#rightMessage
|
|
26
|
-
>{{ modelValue.length }}/{{ maxLength }}</template
|
|
27
26
|
>
|
|
27
|
+
{{ modelValue.length }}/{{ maxLength }}
|
|
28
|
+
</template>
|
|
28
29
|
</UnnnicFormElement>
|
|
29
30
|
</template>
|
|
30
31
|
|
|
@@ -96,6 +97,12 @@ export default {
|
|
|
96
97
|
@use '@/assets/scss/unnnic' as *;
|
|
97
98
|
@use '@/components/Input/Input' as *;
|
|
98
99
|
|
|
100
|
+
* {
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: 0;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
.unnnic-text-area {
|
|
100
107
|
&__textarea {
|
|
101
108
|
@include input-base;
|
|
@@ -103,24 +110,22 @@ export default {
|
|
|
103
110
|
display: block;
|
|
104
111
|
width: 100%;
|
|
105
112
|
resize: vertical;
|
|
106
|
-
box-sizing: border-box;
|
|
107
113
|
|
|
108
114
|
scrollbar-width: thin;
|
|
109
115
|
|
|
116
|
+
padding: $unnnic-space-3 $unnnic-space-4;
|
|
117
|
+
|
|
110
118
|
&--size-md {
|
|
111
119
|
@include input-md-font;
|
|
112
120
|
|
|
113
|
-
min-height:
|
|
114
|
-
|
|
115
|
-
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
121
|
+
min-height: 100px;
|
|
122
|
+
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
&--size-sm {
|
|
119
126
|
@include input-sm-font;
|
|
120
127
|
|
|
121
|
-
min-height:
|
|
122
|
-
padding: ($unnnic-spacing-xs)
|
|
123
|
-
($unnnic-spacing-sm - $unnnic-border-width-thinner);
|
|
128
|
+
min-height: $unnnic-space-20;
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
&.unnnic-text-area__textarea--type-error {
|
|
@@ -3,7 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
<section data-v-9f8d6c86="" class="unnnic-form-element__hints-container">
|
|
7
|
+
<section data-v-9f8d6c86="" class="unnnic-form-element__message-container">
|
|
8
|
+
<!--v-if-->
|
|
9
|
+
<!--v-if-->
|
|
10
|
+
</section>
|
|
11
|
+
<p data-v-9f8d6c86="">0/200</p>
|
|
12
|
+
</section>
|
|
8
13
|
</section>"
|
|
9
14
|
`;
|
|
@@ -35,9 +35,7 @@ export default {
|
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
template: `
|
|
38
|
-
|
|
39
|
-
<unnnic-input v-model="value" @icon-right-click="click" v-bind="args" />
|
|
40
|
-
</unnnic-form-element>
|
|
38
|
+
<unnnic-input v-model="value" @icon-right-click="click" v-bind="args" label="Label" />
|
|
41
39
|
`,
|
|
42
40
|
}),
|
|
43
41
|
};
|
|
@@ -156,4 +154,20 @@ export const Mask = {
|
|
|
156
154
|
placeholder: 'Text',
|
|
157
155
|
mask: ['###.###.###-##', '##.###.###/####-##'],
|
|
158
156
|
},
|
|
157
|
+
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export const LimitMaxLength = {
|
|
161
|
+
args: {
|
|
162
|
+
placeholder: 'Text',
|
|
163
|
+
maxlength: 10,
|
|
164
|
+
showMaxlengthCounter: true,
|
|
165
|
+
},
|
|
159
166
|
};
|
|
167
|
+
|
|
168
|
+
export const WithTooltip = {
|
|
169
|
+
args: {
|
|
170
|
+
placeholder: 'Text',
|
|
171
|
+
tooltip: 'Tooltip',
|
|
172
|
+
},
|
|
173
|
+
};
|