@weni/unnnic-system 3.9.3-alpha.0 → 3.9.3
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 +6 -0
- 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 +46 -256
- 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 +6 -6
- 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 -26
- 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 -10
- 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 +33 -78
- 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 +7710 -6271
- 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/{es-61b41785.mjs → es-8146fb1b.mjs} +1 -1
- package/dist/{index-10160248.mjs → index-724ed422.mjs} +8813 -9353
- 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-31a68683.mjs → pt-br-af294ec9.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +151 -158
- package/dist/unnnic.umd.js +36 -35
- 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 +223 -309
- 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 +7 -11
- package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +1 -1
- package/src/components/Button/Button.vue +117 -67
- 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/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 +22 -22
- package/src/components/Input/Input.vue +56 -79
- package/src/components/Input/TextInput.vue +65 -81
- 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 +4 -17
- 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/Radio/Radio.vue +66 -118
- package/src/components/Radio/__test__/Radio.spec.js +20 -14
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +3 -4
- 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 +6 -5
- 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 -51
- 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 +12 -41
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +3 -11
- package/src/components/index.ts +18 -33
- 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/Radio.stories.js +1 -28
- package/src/stories/Switch.stories.js +5 -10
- package/src/stories/Tab.stories.js +4 -11
- package/src/stories/Tag.stories.js +43 -24
- package/src/stories/TextArea.stories.js +2 -14
- 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/PageHeader/PageHeader.vue.d.ts +0 -28
- package/dist/components/PageHeader/PageHeader.vue.d.ts.map +0 -1
- package/dist/components/PageHeader/index.d.ts +0 -3
- package/dist/components/PageHeader/index.d.ts.map +0 -1
- package/dist/components/PageHeader/types.d.ts +0 -9
- package/dist/components/PageHeader/types.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/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/CheckboxGroup/CheckboxGroup.vue +0 -96
- package/src/components/MultiSelectV2/MultSelectOption.vue +0 -67
- package/src/components/MultiSelectV2/__tests__/MultiSelect.spec.js +0 -556
- package/src/components/MultiSelectV2/__tests__/MultiSelectOption.spec.js +0 -229
- package/src/components/MultiSelectV2/__tests__/__snapshots__/MultiSelect.spec.js.snap +0 -121
- package/src/components/MultiSelectV2/__tests__/__snapshots__/MultiSelectOption.spec.js.snap +0 -51
- package/src/components/MultiSelectV2/index.vue +0 -221
- package/src/components/PageHeader/PageHeader.vue +0 -148
- package/src/components/PageHeader/index.ts +0 -2
- package/src/components/PageHeader/types.ts +0 -10
- 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 -249
- 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 -291
- package/src/components/Toast/__tests__/ToastManager.spec.js +0 -294
- package/src/components/Toast/types.ts +0 -57
- package/src/stories/CheckboxGroup.stories.js +0 -105
- package/src/stories/MultiSelectV2.stories.js +0 -158
- package/src/stories/PageHeader.stories.js +0 -330
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import UnnnicTag from '../components/Tag/Tag.vue';
|
|
2
|
+
import colorsList from '../utils/colorsList';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Data Display/Tag',
|
|
@@ -7,30 +8,13 @@ export default {
|
|
|
7
8
|
argTypes: {
|
|
8
9
|
text: { control: { type: 'text' } },
|
|
9
10
|
type: {
|
|
10
|
-
control: 'select',
|
|
11
|
-
options: ['default', 'brand', 'next'],
|
|
11
|
+
control: { type: 'select', options: ['default', 'indicator', 'brand'] },
|
|
12
12
|
},
|
|
13
13
|
scheme: {
|
|
14
|
-
control:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'purple',
|
|
19
|
-
'red',
|
|
20
|
-
'orange',
|
|
21
|
-
'yellow',
|
|
22
|
-
'gray',
|
|
23
|
-
'teal',
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
control: 'select',
|
|
28
|
-
options: ['small', 'medium'],
|
|
29
|
-
},
|
|
30
|
-
hasCloseIcon: { control: 'boolean' },
|
|
31
|
-
leftIcon: {
|
|
32
|
-
control: 'select',
|
|
33
|
-
options: [null, 'check_circle', 'sentiment_satisfied'],
|
|
14
|
+
control: {
|
|
15
|
+
type: 'select',
|
|
16
|
+
options: colorsList,
|
|
17
|
+
},
|
|
34
18
|
},
|
|
35
19
|
},
|
|
36
20
|
};
|
|
@@ -50,10 +34,45 @@ export const LeftIcon = {
|
|
|
50
34
|
},
|
|
51
35
|
};
|
|
52
36
|
|
|
53
|
-
export const
|
|
37
|
+
export const RightIcon = {
|
|
54
38
|
args: {
|
|
55
39
|
text: 'Label',
|
|
56
40
|
type: 'default',
|
|
57
|
-
|
|
41
|
+
rightIcon: 'check_circle',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const CloseIcon = {
|
|
46
|
+
args: {
|
|
47
|
+
text: 'Label',
|
|
48
|
+
type: 'default',
|
|
49
|
+
hasCloseIcon: true,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const Next = {
|
|
54
|
+
args: {
|
|
55
|
+
text: 'Label',
|
|
56
|
+
type: 'next',
|
|
57
|
+
scheme: 'weni',
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const Indicator = {
|
|
62
|
+
args: {
|
|
63
|
+
text: 'Tag Name',
|
|
64
|
+
type: 'indicator',
|
|
65
|
+
count: 100,
|
|
66
|
+
clickable: true,
|
|
67
|
+
hasBackButton: false,
|
|
68
|
+
enableTooltip: true,
|
|
69
|
+
tooltipText: 'This is the amount',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const Brand = {
|
|
74
|
+
args: {
|
|
75
|
+
text: 'Settings',
|
|
76
|
+
type: 'brand',
|
|
58
77
|
},
|
|
59
78
|
};
|
|
@@ -37,7 +37,6 @@ export const Default = {
|
|
|
37
37
|
errors: [],
|
|
38
38
|
size: 'md',
|
|
39
39
|
message: 'Helper text',
|
|
40
|
-
tooltip: 'Tooltip',
|
|
41
40
|
},
|
|
42
41
|
};
|
|
43
42
|
|
|
@@ -48,7 +47,7 @@ export const Error = {
|
|
|
48
47
|
maxLength: 150,
|
|
49
48
|
disabled: false,
|
|
50
49
|
type: 'error',
|
|
51
|
-
|
|
50
|
+
error: 'Error text',
|
|
52
51
|
size: 'md',
|
|
53
52
|
},
|
|
54
53
|
};
|
|
@@ -85,7 +84,7 @@ export const ErrorSm = {
|
|
|
85
84
|
maxLength: 150,
|
|
86
85
|
disabled: false,
|
|
87
86
|
type: 'error',
|
|
88
|
-
|
|
87
|
+
error: 'Error text',
|
|
89
88
|
size: 'sm',
|
|
90
89
|
},
|
|
91
90
|
};
|
|
@@ -101,14 +100,3 @@ export const DisabledSm = {
|
|
|
101
100
|
message: 'Helper text',
|
|
102
101
|
},
|
|
103
102
|
};
|
|
104
|
-
|
|
105
|
-
export const ResizeNone = {
|
|
106
|
-
args: {
|
|
107
|
-
label: 'Label',
|
|
108
|
-
placeholder: 'Placeholder',
|
|
109
|
-
maxLength: 150,
|
|
110
|
-
disabled: false,
|
|
111
|
-
type: 'normal',
|
|
112
|
-
resize: 'none',
|
|
113
|
-
},
|
|
114
|
-
};
|
package/src/utils/call.js
CHANGED
|
@@ -1,58 +1,30 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import Alert from '../components/Alert/Alert.vue';
|
|
3
3
|
import Modal from '../components/Modal/Modal.vue';
|
|
4
|
-
import ToastInstance from '../components/Toast/ToastManager';
|
|
5
4
|
import mitt from 'mitt';
|
|
6
5
|
|
|
7
6
|
const emitter = mitt();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
|
|
8
|
+
const callAlert = ({ props, containerRef }) => {
|
|
9
|
+
const AlertComponent = createApp(Alert, {
|
|
10
|
+
...props,
|
|
11
|
+
onClose: () => {
|
|
12
|
+
instance.$el.remove();
|
|
13
|
+
},
|
|
14
|
+
created() {
|
|
15
|
+
emitter.on(['close'], () => {
|
|
15
16
|
instance.$el.remove();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
const element = document.createElement('div');
|
|
24
|
-
const instance = AlertComponent.mount(element);
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const element = document.createElement('div');
|
|
21
|
+
const instance = AlertComponent.mount(element);
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} else {
|
|
30
|
-
document.body.appendChild(instance.$el);
|
|
31
|
-
}
|
|
23
|
+
if (containerRef) {
|
|
24
|
+
instance.$el.style.position = 'absolute';
|
|
25
|
+
containerRef.appendChild(instance.$el);
|
|
32
26
|
} else {
|
|
33
|
-
|
|
34
|
-
success: 'success',
|
|
35
|
-
error: 'error',
|
|
36
|
-
attention: 'attention',
|
|
37
|
-
default: 'informational',
|
|
38
|
-
'feedback-green': 'success',
|
|
39
|
-
'feedback-red': 'error',
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const toastProps = {
|
|
43
|
-
timeout: seconds ? seconds * 1000 : 5000,
|
|
44
|
-
type: typeMap[props.scheme || props.type] || typeMap.default,
|
|
45
|
-
|
|
46
|
-
onClose: () => {
|
|
47
|
-
emitter.emit(['close']);
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
ToastInstance.show({
|
|
52
|
-
title: props.text,
|
|
53
|
-
description: '',
|
|
54
|
-
...toastProps,
|
|
55
|
-
});
|
|
27
|
+
document.body.appendChild(instance.$el);
|
|
56
28
|
}
|
|
57
29
|
};
|
|
58
30
|
|
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"color": {
|
|
3
|
-
"white": {
|
|
4
|
-
"value": "#FFFFFF"
|
|
5
|
-
},
|
|
6
|
-
"black": {
|
|
7
|
-
"value": "#000000"
|
|
8
|
-
},
|
|
9
|
-
"gray": {
|
|
10
|
-
"50": {
|
|
11
|
-
"value": "#F6F7F9"
|
|
12
|
-
},
|
|
13
|
-
"100": {
|
|
14
|
-
"value": "#ECEEF2"
|
|
15
|
-
},
|
|
16
|
-
"200": {
|
|
17
|
-
"value": "#D6D9E1"
|
|
18
|
-
},
|
|
19
|
-
"300": {
|
|
20
|
-
"value": "#B2B9C7"
|
|
21
|
-
},
|
|
22
|
-
"400": {
|
|
23
|
-
"value": "#8893A8"
|
|
24
|
-
},
|
|
25
|
-
"500": {
|
|
26
|
-
"value": "#67738B"
|
|
27
|
-
},
|
|
28
|
-
"600": {
|
|
29
|
-
"value": "#545E75"
|
|
30
|
-
},
|
|
31
|
-
"700": {
|
|
32
|
-
"value": "#454D5F"
|
|
33
|
-
},
|
|
34
|
-
"800": {
|
|
35
|
-
"value": "#3B4151"
|
|
36
|
-
},
|
|
37
|
-
"900": {
|
|
38
|
-
"value": "#353945"
|
|
39
|
-
},
|
|
40
|
-
"950": {
|
|
41
|
-
"value": "#23262E"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"teal": {
|
|
45
|
-
"50": {
|
|
46
|
-
"value": "#EFFEFC"
|
|
47
|
-
},
|
|
48
|
-
"100": {
|
|
49
|
-
"value": "#C7FFF7"
|
|
50
|
-
},
|
|
51
|
-
"200": {
|
|
52
|
-
"value": "#90FFEF"
|
|
53
|
-
},
|
|
54
|
-
"300": {
|
|
55
|
-
"value": "#51F7E7"
|
|
56
|
-
},
|
|
57
|
-
"400": {
|
|
58
|
-
"value": "#1DE4D7"
|
|
59
|
-
},
|
|
60
|
-
"500": {
|
|
61
|
-
"value": "#04C8BD"
|
|
62
|
-
},
|
|
63
|
-
"600": {
|
|
64
|
-
"value": "#00A49F"
|
|
65
|
-
},
|
|
66
|
-
"700": {
|
|
67
|
-
"value": "#05807D"
|
|
68
|
-
},
|
|
69
|
-
"800": {
|
|
70
|
-
"value": "#0A6564"
|
|
71
|
-
},
|
|
72
|
-
"900": {
|
|
73
|
-
"value": "#0D5453"
|
|
74
|
-
},
|
|
75
|
-
"950": {
|
|
76
|
-
"value": "#003133"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"green": {
|
|
80
|
-
"50": {
|
|
81
|
-
"value": "#F0F9F3"
|
|
82
|
-
},
|
|
83
|
-
"100": {
|
|
84
|
-
"value": "#DAF1E0"
|
|
85
|
-
},
|
|
86
|
-
"200": {
|
|
87
|
-
"value": "#B7E3C6"
|
|
88
|
-
},
|
|
89
|
-
"300": {
|
|
90
|
-
"value": "#88CDA4"
|
|
91
|
-
},
|
|
92
|
-
"400": {
|
|
93
|
-
"value": "#56B17E"
|
|
94
|
-
},
|
|
95
|
-
"500": {
|
|
96
|
-
"value": "#38A169"
|
|
97
|
-
},
|
|
98
|
-
"600": {
|
|
99
|
-
"value": "#24774C"
|
|
100
|
-
},
|
|
101
|
-
"700": {
|
|
102
|
-
"value": "#1D5F3F"
|
|
103
|
-
},
|
|
104
|
-
"800": {
|
|
105
|
-
"value": "#194C34"
|
|
106
|
-
},
|
|
107
|
-
"900": {
|
|
108
|
-
"value": "#153F2C"
|
|
109
|
-
},
|
|
110
|
-
"950": {
|
|
111
|
-
"value": "#0B2318"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"blue": {
|
|
115
|
-
"50": {
|
|
116
|
-
"value": "#F2F7FD"
|
|
117
|
-
},
|
|
118
|
-
"100": {
|
|
119
|
-
"value": "#E5EEF9"
|
|
120
|
-
},
|
|
121
|
-
"200": {
|
|
122
|
-
"value": "#C4DBF3"
|
|
123
|
-
},
|
|
124
|
-
"300": {
|
|
125
|
-
"value": "#90BDE9"
|
|
126
|
-
},
|
|
127
|
-
"400": {
|
|
128
|
-
"value": "#559BDB"
|
|
129
|
-
},
|
|
130
|
-
"500": {
|
|
131
|
-
"value": "#3182CE"
|
|
132
|
-
},
|
|
133
|
-
"600": {
|
|
134
|
-
"value": "#2062A9"
|
|
135
|
-
},
|
|
136
|
-
"700": {
|
|
137
|
-
"value": "#1B4F89"
|
|
138
|
-
},
|
|
139
|
-
"800": {
|
|
140
|
-
"value": "#1A4472"
|
|
141
|
-
},
|
|
142
|
-
"900": {
|
|
143
|
-
"value": "#1B3A5F"
|
|
144
|
-
},
|
|
145
|
-
"950": {
|
|
146
|
-
"value": "#12253F"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"purple": {
|
|
150
|
-
"50": {
|
|
151
|
-
"value": "#F6F5FD"
|
|
152
|
-
},
|
|
153
|
-
"100": {
|
|
154
|
-
"value": "#EEECFB"
|
|
155
|
-
},
|
|
156
|
-
"200": {
|
|
157
|
-
"value": "#DFDCF8"
|
|
158
|
-
},
|
|
159
|
-
"300": {
|
|
160
|
-
"value": "#C7BFF3"
|
|
161
|
-
},
|
|
162
|
-
"400": {
|
|
163
|
-
"value": "#AA9BEA"
|
|
164
|
-
},
|
|
165
|
-
"500": {
|
|
166
|
-
"value": "#8D72E0"
|
|
167
|
-
},
|
|
168
|
-
"600": {
|
|
169
|
-
"value": "#805AD5"
|
|
170
|
-
},
|
|
171
|
-
"700": {
|
|
172
|
-
"value": "#6B41C0"
|
|
173
|
-
},
|
|
174
|
-
"800": {
|
|
175
|
-
"value": "#5A36A1"
|
|
176
|
-
},
|
|
177
|
-
"900": {
|
|
178
|
-
"value": "#4B2E84"
|
|
179
|
-
},
|
|
180
|
-
"950": {
|
|
181
|
-
"value": "#2E1C59"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"red": {
|
|
185
|
-
"50": {
|
|
186
|
-
"value": "#FDF3F3"
|
|
187
|
-
},
|
|
188
|
-
"100": {
|
|
189
|
-
"value": "#FDE3E3"
|
|
190
|
-
},
|
|
191
|
-
"200": {
|
|
192
|
-
"value": "#FCCCCC"
|
|
193
|
-
},
|
|
194
|
-
"300": {
|
|
195
|
-
"value": "#F8A9A9"
|
|
196
|
-
},
|
|
197
|
-
"400": {
|
|
198
|
-
"value": "#F27777"
|
|
199
|
-
},
|
|
200
|
-
"500": {
|
|
201
|
-
"value": "#E53E3E"
|
|
202
|
-
},
|
|
203
|
-
"600": {
|
|
204
|
-
"value": "#D32F2F"
|
|
205
|
-
},
|
|
206
|
-
"700": {
|
|
207
|
-
"value": "#B22323"
|
|
208
|
-
},
|
|
209
|
-
"800": {
|
|
210
|
-
"value": "#932121"
|
|
211
|
-
},
|
|
212
|
-
"900": {
|
|
213
|
-
"value": "#7A2222"
|
|
214
|
-
},
|
|
215
|
-
"950": {
|
|
216
|
-
"value": "#420D0D"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"orange": {
|
|
220
|
-
"50": {
|
|
221
|
-
"value": "#FDF8EF"
|
|
222
|
-
},
|
|
223
|
-
"100": {
|
|
224
|
-
"value": "#FBEED9"
|
|
225
|
-
},
|
|
226
|
-
"200": {
|
|
227
|
-
"value": "#F7DAB1"
|
|
228
|
-
},
|
|
229
|
-
"300": {
|
|
230
|
-
"value": "#F1C080"
|
|
231
|
-
},
|
|
232
|
-
"400": {
|
|
233
|
-
"value": "#EB9D4C"
|
|
234
|
-
},
|
|
235
|
-
"500": {
|
|
236
|
-
"value": "#E5812A"
|
|
237
|
-
},
|
|
238
|
-
"600": {
|
|
239
|
-
"value": "#DD6B20"
|
|
240
|
-
},
|
|
241
|
-
"700": {
|
|
242
|
-
"value": "#B2501C"
|
|
243
|
-
},
|
|
244
|
-
"800": {
|
|
245
|
-
"value": "#8E401E"
|
|
246
|
-
},
|
|
247
|
-
"900": {
|
|
248
|
-
"value": "#73361B"
|
|
249
|
-
},
|
|
250
|
-
"950": {
|
|
251
|
-
"value": "#3E1A0C"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"yellow": {
|
|
255
|
-
"50": {
|
|
256
|
-
"value": "#FBF7EB"
|
|
257
|
-
},
|
|
258
|
-
"100": {
|
|
259
|
-
"value": "#F5EDCC"
|
|
260
|
-
},
|
|
261
|
-
"200": {
|
|
262
|
-
"value": "#EDD89B"
|
|
263
|
-
},
|
|
264
|
-
"300": {
|
|
265
|
-
"value": "#E2BC62"
|
|
266
|
-
},
|
|
267
|
-
"400": {
|
|
268
|
-
"value": "#D69E2E"
|
|
269
|
-
},
|
|
270
|
-
"500": {
|
|
271
|
-
"value": "#C88D2A"
|
|
272
|
-
},
|
|
273
|
-
"600": {
|
|
274
|
-
"value": "#AC6E22"
|
|
275
|
-
},
|
|
276
|
-
"700": {
|
|
277
|
-
"value": "#8A501E"
|
|
278
|
-
},
|
|
279
|
-
"800": {
|
|
280
|
-
"value": "#734120"
|
|
281
|
-
},
|
|
282
|
-
"900": {
|
|
283
|
-
"value": "#633720"
|
|
284
|
-
},
|
|
285
|
-
"950": {
|
|
286
|
-
"value": "#391B0F"
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"bg": {
|
|
290
|
-
"base": {
|
|
291
|
-
"value": "{color.white}"
|
|
292
|
-
},
|
|
293
|
-
"soft": {
|
|
294
|
-
"value": "{color.gray.50}"
|
|
295
|
-
},
|
|
296
|
-
"muted": {
|
|
297
|
-
"value": "{color.gray.100}"
|
|
298
|
-
},
|
|
299
|
-
"active": {
|
|
300
|
-
"value": "{color.teal.600}"
|
|
301
|
-
},
|
|
302
|
-
"info": {
|
|
303
|
-
"value": "{color.blue.50}"
|
|
304
|
-
},
|
|
305
|
-
"success": {
|
|
306
|
-
"value": "{color.green.50}"
|
|
307
|
-
},
|
|
308
|
-
"warning": {
|
|
309
|
-
"value": "{color.yellow.50}"
|
|
310
|
-
},
|
|
311
|
-
"critical": {
|
|
312
|
-
"value": "{color.red.50}"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
"fg": {
|
|
316
|
-
"base": {
|
|
317
|
-
"value": "{color.gray.500}"
|
|
318
|
-
},
|
|
319
|
-
"muted": {
|
|
320
|
-
"value": "{color.gray.300}"
|
|
321
|
-
},
|
|
322
|
-
"emphasized": {
|
|
323
|
-
"value": "{color.gray.900}"
|
|
324
|
-
},
|
|
325
|
-
"inverted": {
|
|
326
|
-
"value": "{color.white}"
|
|
327
|
-
},
|
|
328
|
-
"active": {
|
|
329
|
-
"value": "{color.teal.600}"
|
|
330
|
-
},
|
|
331
|
-
"info": {
|
|
332
|
-
"value": "{color.blue.500}"
|
|
333
|
-
},
|
|
334
|
-
"success": {
|
|
335
|
-
"value": "{color.green.500}"
|
|
336
|
-
},
|
|
337
|
-
"warning": {
|
|
338
|
-
"value": "{color.yellow.500}"
|
|
339
|
-
},
|
|
340
|
-
"critical": {
|
|
341
|
-
"value": "{color.red.500}"
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
"border": {
|
|
345
|
-
"base": {
|
|
346
|
-
"value": "{color.gray.200}"
|
|
347
|
-
},
|
|
348
|
-
"soft": {
|
|
349
|
-
"value": "{color.gray.100}"
|
|
350
|
-
},
|
|
351
|
-
"muted": {
|
|
352
|
-
"value": "{color.gray.200}"
|
|
353
|
-
},
|
|
354
|
-
"emphasized": {
|
|
355
|
-
"value": "{color.gray.400}"
|
|
356
|
-
},
|
|
357
|
-
"active": {
|
|
358
|
-
"value": "{color.teal.600}"
|
|
359
|
-
},
|
|
360
|
-
"info": {
|
|
361
|
-
"value": "{color.blue.300}"
|
|
362
|
-
},
|
|
363
|
-
"success": {
|
|
364
|
-
"value": "{color.green.300}"
|
|
365
|
-
},
|
|
366
|
-
"warning": {
|
|
367
|
-
"value": "{color.yellow.300}"
|
|
368
|
-
},
|
|
369
|
-
"critical": {
|
|
370
|
-
"value": "{color.red.300}"
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
-
export default _default;
|
|
3
|
-
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
-
$slots: S;
|
|
5
|
-
});
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
-
state: string;
|
|
8
|
-
labelUseHtmlTooltip: boolean;
|
|
9
|
-
label?: string | undefined;
|
|
10
|
-
helper?: string | undefined;
|
|
11
|
-
labelTooltip?: string | undefined;
|
|
12
|
-
$props: {
|
|
13
|
-
readonly state?: string | undefined;
|
|
14
|
-
readonly labelUseHtmlTooltip?: boolean | undefined;
|
|
15
|
-
readonly label?: string | undefined;
|
|
16
|
-
readonly helper?: string | undefined;
|
|
17
|
-
readonly labelTooltip?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
20
|
-
type __VLS_TemplateResult = {
|
|
21
|
-
attrs: Partial<{}>;
|
|
22
|
-
slots: {
|
|
23
|
-
default?(_: {}): any;
|
|
24
|
-
};
|
|
25
|
-
refs: {};
|
|
26
|
-
rootEl: HTMLElement;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=CheckboxGroup.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.vue"],"names":[],"mappings":"AA0BA;wBAkNqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;mPAQG"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PageHeaderProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
tag?(_: {}): any;
|
|
6
|
-
actions?(_: {}): any;
|
|
7
|
-
tabs?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: HTMLElement;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<PageHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
-
back: () => any;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<PageHeaderProps> & Readonly<{
|
|
16
|
-
onBack?: (() => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
description: string;
|
|
19
|
-
hasBackButton: boolean;
|
|
20
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=PageHeader.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.vue"],"names":[],"mappings":"AAsDA;AAwJA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,SAAS,CAAC;AAqBhE,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;qBAZzB,GAAG;yBACC,GAAG;sBACN,GAAG;;;;EAe5B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;qFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type TagType = 'default' | 'brand' | 'next';
|
|
2
|
-
export type TagSize = 'small' | 'medium';
|
|
3
|
-
export interface TagProps {
|
|
4
|
-
type?: TagType;
|
|
5
|
-
size?: TagSize;
|
|
6
|
-
text?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
scheme?: string;
|
|
9
|
-
leftIcon?: string;
|
|
10
|
-
hasCloseIcon?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface DefaultTagProps {
|
|
13
|
-
text?: string;
|
|
14
|
-
size?: TagSize;
|
|
15
|
-
scheme?: string;
|
|
16
|
-
leftIcon?: string;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=types.d.ts.map
|