@weni/unnnic-system 3.2.9-alpha.1 → 3.2.9-alpha.11
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 +18 -0
- package/dist/components/ChartFunnel/DefaultFunnel/ChartDefaultFunnelBase.vue.d.ts.map +1 -1
- package/dist/components/ChartFunnel/SvgFunnel/ChartFunnelTwoRows.vue.d.ts +43 -0
- package/dist/components/ChartFunnel/SvgFunnel/ChartFunnelTwoRows.vue.d.ts.map +1 -0
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/DataTable/index.vue.d.ts +7 -0
- package/dist/components/DataTable/index.vue.d.ts.map +1 -1
- package/dist/components/DateFilter/DateFilter.vue.d.ts +87 -95
- package/dist/components/Input/BaseInput.vue.d.ts +22 -0
- package/dist/components/Input/BaseInput.vue.d.ts.map +1 -1
- package/dist/components/Input/Input.vue.d.ts +87 -95
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/TextInput.vue.d.ts +52 -1
- package/dist/components/Input/TextInput.vue.d.ts.map +1 -1
- package/dist/components/InputDatePicker/InputDatePicker.vue.d.ts +87 -95
- package/dist/components/InputNext/InputNext.vue.d.ts +1 -1
- package/dist/components/Label/Label.vue.d.ts +2 -2
- package/dist/components/Label/Label.vue.d.ts.map +1 -1
- package/dist/components/ModalNext/ModalNext.vue.d.ts +87 -95
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +52 -1
- package/dist/components/SelectTime/index.vue.d.ts +52 -1
- package/dist/components/Tab/Tab.vue.d.ts +11 -0
- package/dist/components/index.d.ts +895 -937
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{es-2735a8fb.js → es-dcef703d.js} +1 -1
- package/dist/{index-e012fa52.js → index-6ddf8580.js} +4673 -4567
- package/dist/locales/en.json.d.ts +2 -1
- package/dist/locales/es.json.d.ts +2 -1
- package/dist/locales/pt_br.json.d.ts +2 -1
- package/dist/{pt-br-f38a8b9c.js → pt-br-485ef253.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.js +1 -1
- package/dist/unnnic.umd.cjs +39 -39
- package/package.json +1 -1
- package/src/assets/scss/scheme-colors.scss +115 -238
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +11 -7
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +2 -2
- package/src/components/ChartFunnel/ChartFunnel.vue +4 -0
- package/src/components/ChartFunnel/DefaultFunnel/ChartDefaultFunnelBase.vue +8 -2
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelBaseRow.vue +1 -1
- package/src/components/ChartFunnel/SvgFunnel/ChartFunnelTwoRows.vue +64 -0
- package/src/components/Chip/Chip.vue +3 -2
- package/src/components/DataTable/index.vue +25 -10
- package/src/components/Input/BaseInput.vue +21 -2
- package/src/components/Input/Input.scss +2 -1
- package/src/components/Input/Input.vue +26 -30
- package/src/components/Input/TextInput.vue +59 -22
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +7 -3
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +7 -1
- package/src/components/Label/Label.vue +2 -2
- package/src/components/Popover/__tests__/Popover.spec.js +147 -0
- package/src/components/Popover/__tests__/__snapshots__/Popover.spec.js.snap +8 -0
- package/src/components/Popover/index.vue +146 -0
- package/src/components/Select/SelectOption.vue +65 -0
- package/src/components/Select/__tests__/Select.spec.js +412 -0
- package/src/components/Select/__tests__/SelectItem.spec.js +330 -0
- package/src/components/Select/__tests__/SelectOption.spec.js +174 -0
- package/src/components/Select/__tests__/__snapshots__/Select.spec.js.snap +97 -0
- package/src/components/Select/__tests__/__snapshots__/SelectItem.spec.js.snap +15 -0
- package/src/components/Select/__tests__/__snapshots__/SelectOption.spec.js.snap +25 -0
- package/src/components/Select/index.vue +245 -0
- package/src/components/Tab/Tab.vue +37 -23
- package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +1 -1
- package/src/locales/en.json +2 -1
- package/src/locales/es.json +2 -1
- package/src/locales/pt_br.json +2 -1
- package/src/stories/ChartFunnel.stories.js +19 -0
- package/src/stories/DataTable.stories.js +60 -0
- package/src/stories/Input.stories.js +6 -0
- package/src/stories/Popover.stories.js +39 -0
- package/src/stories/Select.stories.js +91 -0
- package/src/stories/Tab.stories.js +11 -4
package/package.json
CHANGED
|
@@ -3,242 +3,118 @@
|
|
|
3
3
|
|
|
4
4
|
// Global scheme colors mapping for all components
|
|
5
5
|
|
|
6
|
-
$unnnic-scheme-colors:
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
'
|
|
10
|
-
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'green
|
|
41
|
-
'
|
|
42
|
-
|
|
43
|
-
'green-
|
|
44
|
-
'green-
|
|
45
|
-
'green-
|
|
46
|
-
|
|
47
|
-
'
|
|
48
|
-
'blue-100'
|
|
49
|
-
'blue-
|
|
50
|
-
'blue-
|
|
51
|
-
'blue-
|
|
52
|
-
'blue-
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
|
|
116
|
-
'
|
|
117
|
-
'
|
|
118
|
-
'fg-emphasized' $unnnic-color-fg-emphasized,
|
|
119
|
-
'fg-inverted' $unnnic-color-fg-inverted,
|
|
120
|
-
'fg-active' $unnnic-color-fg-active,
|
|
121
|
-
'fg-info' $unnnic-color-fg-info,
|
|
122
|
-
'fg-success' $unnnic-color-fg-success,
|
|
123
|
-
'fg-warning' $unnnic-color-fg-warning,
|
|
124
|
-
'fg-critical' $unnnic-color-fg-critical,
|
|
125
|
-
|
|
126
|
-
'border-base' $unnnic-color-border-base,
|
|
127
|
-
'border-soft' $unnnic-color-border-soft,
|
|
128
|
-
'border-muted' $unnnic-color-border-muted,
|
|
129
|
-
'border-emphasized' $unnnic-color-border-emphasized,
|
|
130
|
-
'border-active' $unnnic-color-border-active,
|
|
131
|
-
'border-info' $unnnic-color-border-info,
|
|
132
|
-
'border-success' $unnnic-color-border-success,
|
|
133
|
-
'border-warning' $unnnic-color-border-warning,
|
|
134
|
-
'border-critical' $unnnic-color-border-critical,
|
|
135
|
-
|
|
136
|
-
// Deprecated
|
|
137
|
-
'background-solo' $unnnic-color-teal-50,
|
|
138
|
-
'background-sky' $unnnic-color-gray-50,
|
|
139
|
-
'background-grass' $unnnic-color-green-50,
|
|
140
|
-
'background-carpet' $unnnic-color-gray-50,
|
|
141
|
-
'background-snow' $unnnic-color-white,
|
|
142
|
-
'background-lightest' $unnnic-color-gray-50,
|
|
143
|
-
'background-white' $unnnic-color-white,
|
|
144
|
-
|
|
145
|
-
'neutral-black' $unnnic-color-gray-900,
|
|
146
|
-
'neutral-darkest' $unnnic-color-gray-800,
|
|
147
|
-
'neutral-dark' $unnnic-color-gray-700,
|
|
148
|
-
'neutral-cloudy' $unnnic-color-gray-500,
|
|
149
|
-
'neutral-cleanest' $unnnic-color-gray-200,
|
|
150
|
-
'neutral-clean' $unnnic-color-gray-300,
|
|
151
|
-
'neutral-soft' $unnnic-color-gray-100,
|
|
152
|
-
'neutral-lightest' $unnnic-color-gray-50,
|
|
153
|
-
'neutral-light' $unnnic-color-gray-50,
|
|
154
|
-
'neutral-white' $unnnic-color-white,
|
|
155
|
-
'neutral-snow' $unnnic-color-white,
|
|
156
|
-
|
|
157
|
-
'feedback-red' $unnnic-color-red-500,
|
|
158
|
-
'feedback-green' $unnnic-color-green-500,
|
|
159
|
-
'feedback-yellow' $unnnic-color-yellow-500,
|
|
160
|
-
'feedback-blue' $unnnic-color-blue-500,
|
|
161
|
-
'feedback-grey' $unnnic-color-gray-500,
|
|
162
|
-
|
|
163
|
-
'aux-blue' $unnnic-color-blue-500,
|
|
164
|
-
'aux-purple' $unnnic-color-purple-500,
|
|
165
|
-
'aux-orange' $unnnic-color-orange-500,
|
|
166
|
-
'aux-lemon' $unnnic-color-yellow-400,
|
|
167
|
-
'aux-pink' $unnnic-color-red-300,
|
|
168
|
-
'aux-baby-blue' $unnnic-color-blue-200,
|
|
169
|
-
'aux-baby-yellow' $unnnic-color-yellow-200,
|
|
170
|
-
'aux-baby-red' $unnnic-color-red-200,
|
|
171
|
-
'aux-baby-green' $unnnic-color-green-200,
|
|
172
|
-
'aux-baby-pink' $unnnic-color-red-100,
|
|
173
|
-
|
|
174
|
-
'aux-green-100' $unnnic-color-green-100,
|
|
175
|
-
'aux-green-300' $unnnic-color-green-300,
|
|
176
|
-
'aux-green-500' $unnnic-color-green-500,
|
|
177
|
-
'aux-green-700' $unnnic-color-green-700,
|
|
178
|
-
'aux-green-900' $unnnic-color-green-900,
|
|
179
|
-
'aux-blue-100' $unnnic-color-blue-100,
|
|
180
|
-
'aux-blue-300' $unnnic-color-blue-300,
|
|
181
|
-
'aux-blue-500' $unnnic-color-blue-500,
|
|
182
|
-
'aux-blue-700' $unnnic-color-blue-700,
|
|
183
|
-
'aux-blue-900' $unnnic-color-blue-900,
|
|
184
|
-
'aux-purple-100' $unnnic-color-purple-100,
|
|
185
|
-
'aux-purple-300' $unnnic-color-purple-300,
|
|
186
|
-
'aux-purple-500' $unnnic-color-purple-500,
|
|
187
|
-
'aux-purple-700' $unnnic-color-purple-700,
|
|
188
|
-
'aux-purple-900' $unnnic-color-purple-900,
|
|
189
|
-
'aux-red-100' $unnnic-color-red-100,
|
|
190
|
-
'aux-red-300' $unnnic-color-red-300,
|
|
191
|
-
'aux-red-500' $unnnic-color-red-500,
|
|
192
|
-
'aux-red-700' $unnnic-color-red-700,
|
|
193
|
-
'aux-red-900' $unnnic-color-red-900,
|
|
194
|
-
'aux-orange-100' $unnnic-color-orange-100,
|
|
195
|
-
'aux-orange-300' $unnnic-color-orange-300,
|
|
196
|
-
'aux-orange-500' $unnnic-color-orange-500,
|
|
197
|
-
'aux-orange-700' $unnnic-color-orange-700,
|
|
198
|
-
'aux-orange-900' $unnnic-color-orange-900,
|
|
199
|
-
'aux-yellow-100' $unnnic-color-yellow-100,
|
|
200
|
-
'aux-yellow-300' $unnnic-color-yellow-300,
|
|
201
|
-
'aux-yellow-500' $unnnic-color-yellow-500,
|
|
202
|
-
'aux-yellow-700' $unnnic-color-yellow-700,
|
|
203
|
-
'aux-yellow-900' $unnnic-color-yellow-900,
|
|
204
|
-
|
|
205
|
-
'floweditor-blue' $unnnic-color-blue-600,
|
|
206
|
-
'floweditor-purple' $unnnic-color-purple-600,
|
|
207
|
-
'floweditor-wine' $unnnic-color-red-800,
|
|
208
|
-
'floweditor-orange' $unnnic-color-orange-600,
|
|
209
|
-
'floweditor-pink' $unnnic-color-red-400,
|
|
210
|
-
'floweditor-turquoise' $unnnic-color-teal-500,
|
|
211
|
-
'floweditor-green' $unnnic-color-green-600,
|
|
212
|
-
|
|
213
|
-
'weni-50' $unnnic-color-teal-50,
|
|
214
|
-
'weni-100' $unnnic-color-teal-100,
|
|
215
|
-
'weni-200' $unnnic-color-teal-200,
|
|
216
|
-
'weni-300' $unnnic-color-teal-300,
|
|
217
|
-
'weni-400' $unnnic-color-teal-400,
|
|
218
|
-
'weni-500' $unnnic-color-teal-500,
|
|
219
|
-
'weni-600' $unnnic-color-teal-600,
|
|
220
|
-
'weni-700' $unnnic-color-teal-700,
|
|
221
|
-
'weni-800' $unnnic-color-teal-800,
|
|
222
|
-
'weni-900' $unnnic-color-teal-900,
|
|
223
|
-
'weni-950' $unnnic-color-teal-950,
|
|
224
|
-
'brand-weni' $unnnic-color-teal-600,
|
|
225
|
-
'brand-weni-dark' $unnnic-color-teal-800,
|
|
226
|
-
'brand-weni-soft' $unnnic-color-teal-100,
|
|
227
|
-
'brand-sec-dark' $unnnic-color-blue-800,
|
|
228
|
-
'brand-sec-soft' $unnnic-color-blue-100,
|
|
229
|
-
'brand-sec' $unnnic-color-blue-600,
|
|
230
|
-
|
|
231
|
-
'teal-50' $unnnic-color-teal-50,
|
|
232
|
-
'teal-100' $unnnic-color-teal-100,
|
|
233
|
-
'teal-200' $unnnic-color-teal-200,
|
|
234
|
-
'teal-300' $unnnic-color-teal-300,
|
|
235
|
-
'teal-400' $unnnic-color-teal-400,
|
|
236
|
-
'teal-500' $unnnic-color-teal-500,
|
|
237
|
-
'teal-600' $unnnic-color-teal-600,
|
|
238
|
-
'teal-700' $unnnic-color-teal-700,
|
|
239
|
-
'teal-800' $unnnic-color-teal-800,
|
|
240
|
-
'teal-900' $unnnic-color-teal-900,
|
|
241
|
-
'teal-950' $unnnic-color-teal-950;
|
|
6
|
+
$unnnic-scheme-colors: 'background-solo'$unnnic-color-teal-50,
|
|
7
|
+
'background-sky'$unnnic-color-gray-50,
|
|
8
|
+
'background-grass'$unnnic-color-green-50,
|
|
9
|
+
'background-carpet'$unnnic-color-gray-50,
|
|
10
|
+
'background-snow'$unnnic-color-white,
|
|
11
|
+
'background-lightest'$unnnic-color-gray-50,
|
|
12
|
+
'background-white'$unnnic-color-white,
|
|
13
|
+
|
|
14
|
+
'neutral-black'$unnnic-color-gray-900,
|
|
15
|
+
'neutral-darkest'$unnnic-color-gray-800,
|
|
16
|
+
'neutral-dark'$unnnic-color-gray-700,
|
|
17
|
+
'neutral-cloudy'$unnnic-color-gray-500,
|
|
18
|
+
'neutral-cleanest'$unnnic-color-gray-200,
|
|
19
|
+
'neutral-clean'$unnnic-color-gray-300,
|
|
20
|
+
'neutral-soft'$unnnic-color-gray-100,
|
|
21
|
+
'neutral-lightest'$unnnic-color-gray-50,
|
|
22
|
+
'neutral-light'$unnnic-color-gray-50,
|
|
23
|
+
'neutral-white'$unnnic-color-white,
|
|
24
|
+
'neutral-snow'$unnnic-color-white,
|
|
25
|
+
|
|
26
|
+
'feedback-red'$unnnic-color-red-500,
|
|
27
|
+
'feedback-green'$unnnic-color-green-500,
|
|
28
|
+
'feedback-yellow'$unnnic-color-yellow-500,
|
|
29
|
+
'feedback-blue'$unnnic-color-blue-500,
|
|
30
|
+
'feedback-grey'$unnnic-color-gray-500,
|
|
31
|
+
|
|
32
|
+
'aux-blue'$unnnic-color-blue-500,
|
|
33
|
+
'aux-purple'$unnnic-color-purple-500,
|
|
34
|
+
'aux-orange'$unnnic-color-orange-500,
|
|
35
|
+
'aux-lemon'$unnnic-color-yellow-400,
|
|
36
|
+
'aux-pink'$unnnic-color-red-300,
|
|
37
|
+
'aux-baby-blue'$unnnic-color-blue-200,
|
|
38
|
+
'aux-baby-yellow'$unnnic-color-yellow-200,
|
|
39
|
+
'aux-baby-red'$unnnic-color-red-200,
|
|
40
|
+
'aux-baby-green'$unnnic-color-green-200,
|
|
41
|
+
'aux-baby-pink'$unnnic-color-red-100,
|
|
42
|
+
|
|
43
|
+
'aux-green-100'$unnnic-color-green-100,
|
|
44
|
+
'aux-green-300'$unnnic-color-green-300,
|
|
45
|
+
'aux-green-500'$unnnic-color-green-500,
|
|
46
|
+
'aux-green-700'$unnnic-color-green-700,
|
|
47
|
+
'aux-green-900'$unnnic-color-green-900,
|
|
48
|
+
'aux-blue-100'$unnnic-color-blue-100,
|
|
49
|
+
'aux-blue-300'$unnnic-color-blue-300,
|
|
50
|
+
'aux-blue-500'$unnnic-color-blue-500,
|
|
51
|
+
'aux-blue-700'$unnnic-color-blue-700,
|
|
52
|
+
'aux-blue-900'$unnnic-color-blue-900,
|
|
53
|
+
'aux-purple-100'$unnnic-color-purple-100,
|
|
54
|
+
'aux-purple-300'$unnnic-color-purple-300,
|
|
55
|
+
'aux-purple-500'$unnnic-color-purple-500,
|
|
56
|
+
'aux-purple-700'$unnnic-color-purple-700,
|
|
57
|
+
'aux-purple-900'$unnnic-color-purple-900,
|
|
58
|
+
'aux-red-100'$unnnic-color-red-100,
|
|
59
|
+
'aux-red-300'$unnnic-color-red-300,
|
|
60
|
+
'aux-red-500'$unnnic-color-red-500,
|
|
61
|
+
'aux-red-700'$unnnic-color-red-700,
|
|
62
|
+
'aux-red-900'$unnnic-color-red-900,
|
|
63
|
+
'aux-orange-100'$unnnic-color-orange-100,
|
|
64
|
+
'aux-orange-300'$unnnic-color-orange-300,
|
|
65
|
+
'aux-orange-500'$unnnic-color-orange-500,
|
|
66
|
+
'aux-orange-700'$unnnic-color-orange-700,
|
|
67
|
+
'aux-orange-900'$unnnic-color-orange-900,
|
|
68
|
+
'aux-yellow-100'$unnnic-color-yellow-100,
|
|
69
|
+
'aux-yellow-300'$unnnic-color-yellow-300,
|
|
70
|
+
'aux-yellow-500'$unnnic-color-yellow-500,
|
|
71
|
+
'aux-yellow-700'$unnnic-color-yellow-700,
|
|
72
|
+
'aux-yellow-900'$unnnic-color-yellow-900,
|
|
73
|
+
|
|
74
|
+
"fg-critical"$unnnic-color-fg-critical,
|
|
75
|
+
"fg-muted"$unnnic-color-fg-muted,
|
|
76
|
+
"fg-base"$unnnic-color-fg-base,
|
|
77
|
+
|
|
78
|
+
'floweditor-blue'$unnnic-color-blue-600,
|
|
79
|
+
'floweditor-purple'$unnnic-color-purple-600,
|
|
80
|
+
'floweditor-wine'$unnnic-color-red-800,
|
|
81
|
+
'floweditor-orange'$unnnic-color-orange-600,
|
|
82
|
+
'floweditor-pink'$unnnic-color-red-400,
|
|
83
|
+
'floweditor-turquoise'$unnnic-color-teal-500,
|
|
84
|
+
'floweditor-green'$unnnic-color-green-600,
|
|
85
|
+
|
|
86
|
+
'weni-50'$unnnic-color-teal-50,
|
|
87
|
+
'weni-100'$unnnic-color-teal-100,
|
|
88
|
+
'weni-200'$unnnic-color-teal-200,
|
|
89
|
+
'weni-300'$unnnic-color-teal-300,
|
|
90
|
+
'weni-400'$unnnic-color-teal-400,
|
|
91
|
+
'weni-500'$unnnic-color-teal-500,
|
|
92
|
+
'weni-600'$unnnic-color-teal-600,
|
|
93
|
+
'weni-700'$unnnic-color-teal-700,
|
|
94
|
+
'weni-800'$unnnic-color-teal-800,
|
|
95
|
+
'weni-900'$unnnic-color-teal-900,
|
|
96
|
+
'weni-950'$unnnic-color-teal-950,
|
|
97
|
+
'brand-weni'$unnnic-color-teal-600,
|
|
98
|
+
'brand-weni-dark'$unnnic-color-teal-800,
|
|
99
|
+
'brand-weni-soft'$unnnic-color-teal-100,
|
|
100
|
+
'brand-sec-dark'$unnnic-color-blue-800,
|
|
101
|
+
'brand-sec-soft'$unnnic-color-blue-100,
|
|
102
|
+
'brand-sec'$unnnic-color-blue-600,
|
|
103
|
+
|
|
104
|
+
'bg-base'$unnnic-color-bg-base,
|
|
105
|
+
'bg-soft'$unnnic-color-bg-soft,
|
|
106
|
+
|
|
107
|
+
'teal-50'$unnnic-color-teal-50,
|
|
108
|
+
'teal-100'$unnnic-color-teal-100,
|
|
109
|
+
'teal-200'$unnnic-color-teal-200,
|
|
110
|
+
'teal-300'$unnnic-color-teal-300,
|
|
111
|
+
'teal-400'$unnnic-color-teal-400,
|
|
112
|
+
'teal-500'$unnnic-color-teal-500,
|
|
113
|
+
'teal-600'$unnnic-color-teal-600,
|
|
114
|
+
'teal-700'$unnnic-color-teal-700,
|
|
115
|
+
'teal-800'$unnnic-color-teal-800,
|
|
116
|
+
'teal-900'$unnnic-color-teal-900,
|
|
117
|
+
'teal-950'$unnnic-color-teal-950;
|
|
242
118
|
|
|
243
119
|
@mixin generate-scheme-classes($component-name, $property: 'background-color') {
|
|
244
120
|
@each $name, $color in $unnnic-scheme-colors {
|
|
@@ -250,10 +126,11 @@ $unnnic-scheme-colors:
|
|
|
250
126
|
|
|
251
127
|
@function get-scheme-color($name) {
|
|
252
128
|
@each $scheme-name, $color in $unnnic-scheme-colors {
|
|
253
|
-
@if $scheme-name
|
|
129
|
+
@if $scheme-name ==$name {
|
|
254
130
|
@return $color;
|
|
255
131
|
}
|
|
256
132
|
}
|
|
133
|
+
|
|
257
134
|
@warn "Scheme color '#{$name}' not found in $unnnic-scheme-colors";
|
|
258
135
|
@return null;
|
|
259
|
-
}
|
|
136
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`UnnnicAlert.vue > matches the snapshot 1`] = `
|
|
4
|
-
"<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
"<transition-stub data-v-c3231c18="" name="toast-slide" appear="true" persisted="false" css="true" icon="alert-icon" position="top-right" closetext="Close">
|
|
5
|
+
<aside data-v-c3231c18="" class="unnnic-toast unnnic-toast--informational" role="status" aria-live="polite" data-testid="unnnic-toast">
|
|
6
|
+
<section data-v-c3231c18="" class="unnnic-toast__content">
|
|
7
|
+
<header data-v-c3231c18="" class="unnnic-toast__header"><span data-v-26446d8e="" data-v-c3231c18="" class="material-symbols-rounded unnnic-icon-scheme--blue-500 unnnic-icon-size--ant" data-testid="toast-type-icon" translate="no">info</span>
|
|
8
|
+
<h3 data-v-c3231c18="" class="unnnic-toast__title">Test Alert</h3><span data-v-26446d8e="" data-v-c3231c18="" class="material-symbols-rounded unnnic-icon-scheme--neutral-dark unnnic-icon-size--ant unnnic--clickable unnnic-toast__close" data-testid="toast-close-button" translate="no">close</span>
|
|
9
|
+
</header>
|
|
10
|
+
<!--v-if-->
|
|
11
|
+
</section>
|
|
12
|
+
<!--v-if-->
|
|
13
|
+
</aside>
|
|
14
|
+
</transition-stub>"
|
|
11
15
|
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`Alert.vue > matches snapshot 1`] = `
|
|
4
|
-
"<div data-v-fb94f284="" class="alert-container">
|
|
4
|
+
"<div data-v-fb94f284="" class="alert-container" version="1.0" linkhref="https://example.com" linktarget="_blank" linktext="Learn more">
|
|
5
5
|
<div data-v-fb94f284="" class="alert alert--scheme-aux-green">
|
|
6
6
|
<div data-v-fb94f284="" class="alert__progress"></div>
|
|
7
|
-
<div data-v-fb94f284="" class="alert__text">Test Alert</div
|
|
7
|
+
<div data-v-fb94f284="" class="alert__text">Test Alert</div>
|
|
8
8
|
<div data-v-fb94f284="" class="alert__close">
|
|
9
9
|
<unnnic-icon-stub data-v-fb94f284="" filled="false" next="false" icon="close-1" clickable="false" size="sm" scheme="neutral-white"></unnnic-icon-stub>
|
|
10
10
|
</div>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
9
|
+
import ChartFunnelTwoRows from './SvgFunnel/ChartFunnelTwoRows.vue';
|
|
9
10
|
import ChartFunnelThreeRows from './SvgFunnel/ChartFunnelThreeRows.vue';
|
|
10
11
|
import ChartFunnelFourRows from './SvgFunnel/ChartFunnelFourRows.vue';
|
|
11
12
|
import ChartFunnelFiveRows from './SvgFunnel/ChartFunnelFiveRows.vue';
|
|
@@ -15,6 +16,7 @@ export default {
|
|
|
15
16
|
name: 'UnnnicChartFunnel',
|
|
16
17
|
|
|
17
18
|
components: {
|
|
19
|
+
ChartFunnelTwoRows,
|
|
18
20
|
ChartFunnelThreeRows,
|
|
19
21
|
ChartFunnelFourRows,
|
|
20
22
|
ChartFunnelFiveRows,
|
|
@@ -36,11 +38,13 @@ export default {
|
|
|
36
38
|
chartComponent() {
|
|
37
39
|
const componentMap = {
|
|
38
40
|
default: {
|
|
41
|
+
2: ChartDefaultFunnelBase,
|
|
39
42
|
3: ChartDefaultFunnelBase,
|
|
40
43
|
4: ChartDefaultFunnelBase,
|
|
41
44
|
5: ChartDefaultFunnelBase,
|
|
42
45
|
},
|
|
43
46
|
basic: {
|
|
47
|
+
2: 'ChartFunnelTwoRows',
|
|
44
48
|
3: 'ChartFunnelThreeRows',
|
|
45
49
|
4: 'ChartFunnelFourRows',
|
|
46
50
|
5: 'ChartFunnelFiveRows',
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script setup lang="ts">
|
|
47
|
+
import { computed } from 'vue';
|
|
48
|
+
|
|
47
49
|
interface FunnelStep {
|
|
48
50
|
percentage: number | string;
|
|
49
51
|
value: number | string;
|
|
@@ -52,9 +54,13 @@ interface FunnelStep {
|
|
|
52
54
|
color: string;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
defineProps<{
|
|
57
|
+
const props = defineProps<{
|
|
56
58
|
data: FunnelStep[];
|
|
57
59
|
}>();
|
|
60
|
+
|
|
61
|
+
const calculatedTransform = computed(() => {
|
|
62
|
+
return `skew(${props.data.length === 2 ? '-8deg' : '-12deg'}, 0deg) translateX(-20px)`;
|
|
63
|
+
});
|
|
58
64
|
</script>
|
|
59
65
|
|
|
60
66
|
<style lang="scss" scoped>
|
|
@@ -76,7 +82,7 @@ defineProps<{
|
|
|
76
82
|
&__card {
|
|
77
83
|
height: 100%;
|
|
78
84
|
transition: background-color 0.3s ease;
|
|
79
|
-
transform:
|
|
85
|
+
transform: v-bind(calculatedTransform);
|
|
80
86
|
border-radius: 0 0 $unnnic-spacing-xs 0;
|
|
81
87
|
|
|
82
88
|
&.first-item {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ChartFunnelBaseRow
|
|
3
|
+
class="unnnic-chart-funnel-two-rows"
|
|
4
|
+
:rows="rows"
|
|
5
|
+
viewBox="0 0 250 148"
|
|
6
|
+
/>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import ChartFunnelBaseRow from './ChartFunnelBaseRow.vue';
|
|
11
|
+
export default {
|
|
12
|
+
name: 'UnnnicChartFunnelTwoRows',
|
|
13
|
+
|
|
14
|
+
components: {
|
|
15
|
+
ChartFunnelBaseRow,
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
props: {
|
|
19
|
+
data: {
|
|
20
|
+
type: Array,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
computed: {
|
|
26
|
+
rows() {
|
|
27
|
+
const { data } = this;
|
|
28
|
+
return [
|
|
29
|
+
{
|
|
30
|
+
pathD:
|
|
31
|
+
'M362.938 0H12.025C6.30976 0 2.43799 5.81972 4.64626 11.0911L31 74H343.75L370.307 11.1122C372.535 5.83818 368.663 0 362.938 0Z',
|
|
32
|
+
titleX: '50%',
|
|
33
|
+
titleY: '32',
|
|
34
|
+
descriptionX: '50%',
|
|
35
|
+
descriptionY: '52',
|
|
36
|
+
title: data[0].title,
|
|
37
|
+
description: data[0].description,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
pathD: 'M344 74H31L63.4654 148H311.535L344 74Z',
|
|
41
|
+
titleX: '50%',
|
|
42
|
+
titleY: '106',
|
|
43
|
+
descriptionX: '50%',
|
|
44
|
+
descriptionY: '126',
|
|
45
|
+
title: data[1].title,
|
|
46
|
+
description: data[1].description,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<style lang="scss">
|
|
55
|
+
@use '@/assets/scss/unnnic' as *;
|
|
56
|
+
.unnnic-chart-funnel-two-rows {
|
|
57
|
+
[class$='row']:nth-child(1) {
|
|
58
|
+
fill: $unnnic-color-weni-950;
|
|
59
|
+
}
|
|
60
|
+
[class$='row']:nth-child(2) {
|
|
61
|
+
fill: $unnnic-color-weni-800;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -71,7 +71,7 @@ const chipClass = computed(() => {
|
|
|
71
71
|
|
|
72
72
|
.chip {
|
|
73
73
|
display: inline-flex;
|
|
74
|
-
height:
|
|
74
|
+
height: 22px;
|
|
75
75
|
padding: $unnnic-space-1 $unnnic-space-3;
|
|
76
76
|
justify-content: center;
|
|
77
77
|
align-items: center;
|
|
@@ -79,6 +79,7 @@ const chipClass = computed(() => {
|
|
|
79
79
|
flex-shrink: 0;
|
|
80
80
|
border-radius: 600px;
|
|
81
81
|
background-color: $unnnic-color-bg-base;
|
|
82
|
+
border: 1px solid transparent;
|
|
82
83
|
|
|
83
84
|
&:hover {
|
|
84
85
|
background-color: $unnnic-color-bg-soft;
|
|
@@ -96,7 +97,7 @@ const chipClass = computed(() => {
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
&--border {
|
|
99
|
-
border:
|
|
100
|
+
border-color: $unnnic-color-border-base;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
&__text {
|