@eturnity/eturnity_reusable_components 8.34.0-EPDM-13618.2 → 8.34.0-EPDM-16204.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/dist/main.es100.js +19 -9
- package/dist/main.es101.js +8 -11
- package/dist/main.es102.js +15 -11
- package/dist/main.es103.js +8 -8
- package/dist/main.es104.js +8 -13
- package/dist/main.es105.js +6 -8
- package/dist/main.es106.js +8 -7
- package/dist/main.es107.js +14 -9
- package/dist/main.es108.js +16 -8
- package/dist/main.es109.js +9 -12
- package/dist/main.es110.js +5 -7
- package/dist/main.es111.js +6 -6
- package/dist/main.es112.js +9 -9
- package/dist/main.es113.js +17 -9
- package/dist/main.es114.js +13 -8
- package/dist/main.es115.js +9 -23
- package/dist/main.es116.js +9 -17
- package/dist/main.es117.js +9 -21
- package/dist/main.es118.js +9 -7
- package/dist/main.es119.js +13 -9
- package/dist/main.es12.js +2 -2
- package/dist/main.es120.js +10 -23
- package/dist/main.es121.js +9 -13
- package/dist/main.es122.js +7 -24
- package/dist/main.es123.js +22 -9
- package/dist/main.es124.js +27 -9
- package/dist/main.es125.js +22 -11
- package/dist/main.es126.js +19 -9
- package/dist/main.es127.js +8 -11
- package/dist/main.es128.js +4 -4
- package/dist/main.es129.js +8 -6
- package/dist/main.es13.js +5 -5
- package/dist/main.es130.js +8 -9
- package/dist/main.es131.js +6 -6
- package/dist/main.es132.js +9 -15
- package/dist/main.es133.js +5 -7
- package/dist/main.es134.js +9 -6
- package/dist/main.es135.js +8 -13
- package/dist/main.es136.js +15 -11
- package/dist/main.es137.js +12 -26
- package/dist/main.es138.js +8 -22
- package/dist/main.es139.js +14 -9
- package/dist/main.es14.js +3 -3
- package/dist/main.es140.js +5 -5
- package/dist/main.es141.js +26 -10
- package/dist/main.es142.js +18 -12
- package/dist/main.es143.js +5 -5
- package/dist/main.es144.js +7 -5
- package/dist/main.es145.js +5 -5
- package/dist/main.es146.js +16 -8
- package/dist/main.es147.js +5 -5
- package/dist/main.es148.js +5 -5
- package/dist/main.es149.js +5 -5
- package/dist/main.es15.js +62 -22
- package/dist/main.es150.js +4 -4
- package/dist/main.es151.js +4 -4
- package/dist/main.es152.js +4 -4
- package/dist/main.es153.js +3 -3
- package/dist/main.es154.js +5 -5
- package/dist/main.es155.js +3 -3
- package/dist/main.es156.js +4 -4
- package/dist/main.es157.js +4 -4
- package/dist/main.es158.js +5 -5
- package/dist/main.es159.js +3 -3
- package/dist/main.es16.js +174 -1031
- package/dist/main.es160.js +3 -3
- package/dist/main.es161.js +4 -4
- package/dist/main.es162.js +4 -4
- package/dist/main.es163.js +5 -5
- package/dist/main.es164.js +5 -5
- package/dist/main.es165.js +4 -4
- package/dist/main.es166.js +5 -5
- package/dist/main.es167.js +5 -5
- package/dist/main.es168.js +5 -5
- package/dist/main.es169.js +5 -5
- package/dist/main.es17.js +21 -224
- package/dist/main.es170.js +3 -3
- package/dist/main.es171.js +8 -15
- package/dist/main.es172.js +4 -4
- package/dist/main.es173.js +6 -13
- package/dist/main.es174.js +8 -15
- package/dist/main.es175.js +15 -8
- package/dist/main.es176.js +5 -5
- package/dist/main.es177.js +15 -8
- package/dist/main.es178.js +15 -8
- package/dist/main.es179.js +5 -5
- package/dist/main.es18.js +1046 -89
- package/dist/main.es180.js +5 -5
- package/dist/main.es181.js +3 -3
- package/dist/main.es182.js +5 -5
- package/dist/main.es183.js +5 -5
- package/dist/main.es184.js +5 -5
- package/dist/main.es185.js +5 -5
- package/dist/main.es186.js +4 -4
- package/dist/main.es187.js +4 -4
- package/dist/main.es188.js +5 -5
- package/dist/main.es189.js +5 -5
- package/dist/main.es19.js +195 -68
- package/dist/main.es190.js +5 -5
- package/dist/main.es191.js +8 -18
- package/dist/main.es192.js +4 -4
- package/dist/main.es193.js +4 -5
- package/dist/main.es194.js +5 -5
- package/dist/main.es195.js +19 -9
- package/dist/main.es196.js +6 -6
- package/dist/main.es197.js +8 -8
- package/dist/main.es198.js +6 -6
- package/dist/main.es199.js +6 -8
- package/dist/main.es20.js +77 -172
- package/dist/main.es200.js +5 -5
- package/dist/main.es201.js +7 -8
- package/dist/main.es202.js +4 -6
- package/dist/main.es203.js +9 -14
- package/dist/main.es204.js +6 -8
- package/dist/main.es205.js +12 -16
- package/dist/main.es206.js +12 -17
- package/dist/main.es207.js +15 -8
- package/dist/main.es208.js +5 -5
- package/dist/main.es209.js +16 -10
- package/dist/main.es21.js +100 -2
- package/dist/main.es210.js +15 -5
- package/dist/main.es211.js +8 -15
- package/dist/main.es212.js +6 -6
- package/dist/main.es213.js +7 -8
- package/dist/main.es214.js +5 -13
- package/dist/main.es215.js +14 -9
- package/dist/main.es216.js +7 -7
- package/dist/main.es217.js +11 -17
- package/dist/main.es218.js +13 -8
- package/dist/main.es219.js +11 -8
- package/dist/main.es22.js +158 -505
- package/dist/main.es220.js +11 -5
- package/dist/main.es221.js +18 -10
- package/dist/main.es222.js +5 -5
- package/dist/main.es223.js +6 -11
- package/dist/main.es224.js +6 -10
- package/dist/main.es225.js +10 -16
- package/dist/main.es226.js +9 -21
- package/dist/main.es227.js +8 -8
- package/dist/main.es228.js +8 -10
- package/dist/main.es229.js +13 -10
- package/dist/main.es23.js +2 -24
- package/dist/main.es230.js +19 -9
- package/dist/main.es231.js +8 -6
- package/dist/main.es232.js +11 -27
- package/dist/main.es233.js +11 -27
- package/dist/main.es234.js +6 -6
- package/dist/main.es235.js +4 -6
- package/dist/main.es236.js +26 -10
- package/dist/main.es237.js +26 -10
- package/dist/main.es238.js +8 -6
- package/dist/main.es239.js +6 -6
- package/dist/main.es24.js +530 -188
- package/dist/main.es240.js +5 -5
- package/dist/main.es241.js +8 -6
- package/dist/main.es242.js +6 -6
- package/dist/main.es243.js +4 -4
- package/dist/main.es244.js +8 -6
- package/dist/main.es245.js +9 -14
- package/dist/main.es246.js +9 -16
- package/dist/main.es247.js +8 -6
- package/dist/main.es248.js +11 -8
- package/dist/main.es249.js +8 -8
- package/dist/main.es25.js +21 -61
- package/dist/main.es250.js +10 -8
- package/dist/main.es251.js +9 -14
- package/dist/main.es252.js +7 -15
- package/dist/main.es253.js +14 -11
- package/dist/main.es254.js +14 -11
- package/dist/main.es255.js +14 -9
- package/dist/main.es256.js +14 -9
- package/dist/main.es257.js +13 -8
- package/dist/main.es258.js +13 -8
- package/dist/main.es259.js +6 -6
- package/dist/main.es26.js +3 -3
- package/dist/main.es260.js +9 -4
- package/dist/main.es261.js +8 -11
- package/dist/main.es262.js +5 -5
- package/dist/main.es263.js +4 -6
- package/dist/main.es264.js +4 -11
- package/dist/main.es265.js +5 -5
- package/dist/main.es266.js +8 -11
- package/dist/main.es267.js +13 -8
- package/dist/main.es268.js +6 -4
- package/dist/main.es269.js +6 -6
- package/dist/main.es27.js +370 -26
- package/dist/main.es270.js +9 -18
- package/dist/main.es271.js +8 -11
- package/dist/main.es272.js +9 -18
- package/dist/main.es273.js +9 -23
- package/dist/main.es274.js +15 -8
- package/dist/main.es275.js +10 -19
- package/dist/main.es276.js +15 -6
- package/dist/main.es277.js +23 -9
- package/dist/main.es278.js +7 -5
- package/dist/main.es279.js +19 -10
- package/dist/main.es28.js +9 -31
- package/dist/main.es280.js +9 -25
- package/dist/main.es281.js +7 -12
- package/dist/main.es282.js +11 -8
- package/dist/main.es283.js +11 -8
- package/dist/main.es284.js +25 -11
- package/dist/main.es285.js +14 -9
- package/dist/main.es286.js +7 -27
- package/dist/main.es287.js +8 -11
- package/dist/main.es288.js +13 -9
- package/dist/main.es289.js +9 -5
- package/dist/main.es29.js +4 -34
- package/dist/main.es290.js +27 -7
- package/dist/main.es291.js +6 -8
- package/dist/main.es292.js +8 -12
- package/dist/main.es293.js +8 -9
- package/dist/main.es294.js +9 -22
- package/dist/main.es295.js +8 -6
- package/dist/main.es296.js +11 -7
- package/dist/main.es297.js +7 -10
- package/dist/main.es298.js +14 -9
- package/dist/main.es299.js +5 -5
- package/dist/main.es30.js +100 -38
- package/dist/main.es300.js +7 -9
- package/dist/main.es301.js +9 -7
- package/dist/main.es302.js +8 -8
- package/dist/main.es303.js +3 -3
- package/dist/main.es304.js +5 -7
- package/dist/main.es305.js +10 -17
- package/dist/main.es306.js +14 -9
- package/dist/main.es307.js +5 -7
- package/dist/main.es308.js +4 -4
- package/dist/main.es309.js +13 -10
- package/dist/main.es31.js +18 -8
- package/dist/main.es310.js +5 -7
- package/dist/main.es311.js +13 -8
- package/dist/main.es312.js +5 -5
- package/dist/main.es313.js +6 -6
- package/dist/main.es314.js +11 -15
- package/dist/main.es315.js +9 -24
- package/dist/main.es316.js +7 -10
- package/dist/main.es317.js +11 -14
- package/dist/main.es318.js +12 -9
- package/dist/main.es319.js +21 -11
- package/dist/main.es32.js +10 -11
- package/dist/main.es320.js +14 -15
- package/dist/main.es321.js +13 -9
- package/dist/main.es322.js +9 -6
- package/dist/main.es323.js +11 -14
- package/dist/main.es324.js +15 -11
- package/dist/main.es325.js +6 -6
- package/dist/main.es326.js +4 -4
- package/dist/main.es327.js +17 -9
- package/dist/main.es328.js +13 -8
- package/dist/main.es329.js +7 -6
- package/dist/main.es33.js +25 -9
- package/dist/main.es330.js +5 -5
- package/dist/main.es331.js +8 -13
- package/dist/main.es332.js +9 -27
- package/dist/main.es333.js +7 -14
- package/dist/main.es334.js +9 -14
- package/dist/main.es335.js +7 -8
- package/dist/main.es336.js +21 -6
- package/dist/main.es337.js +17 -9
- package/dist/main.es338.js +13 -8
- package/dist/main.es339.js +13 -15
- package/dist/main.es34.js +30 -9
- package/dist/main.es340.js +6 -6
- package/dist/main.es341.js +6 -7
- package/dist/main.es342.js +12 -26
- package/dist/main.es343.js +17 -7
- package/dist/main.es344.js +6 -6
- package/dist/main.es345.js +6 -6
- package/dist/main.es346.js +26 -14
- package/dist/main.es347.js +4 -9
- package/dist/main.es348.js +5 -5
- package/dist/main.es349.js +6 -6
- package/dist/main.es35.js +5 -11
- package/dist/main.es350.js +8 -7
- package/dist/main.es351.js +6 -8
- package/dist/main.es352.js +6 -6
- package/dist/main.es353.js +4 -4
- package/dist/main.es354.js +8 -7
- package/dist/main.es355.js +8 -6
- package/dist/main.es356.js +6 -8
- package/dist/main.es357.js +6 -6
- package/dist/main.es358.js +10 -17
- package/dist/main.es359.js +7 -7
- package/dist/main.es36.js +19 -12
- package/dist/main.es360.js +9 -14
- package/dist/main.es361.js +6 -6
- package/dist/main.es362.js +17 -10
- package/dist/main.es363.js +10 -15
- package/dist/main.es364.js +15 -8
- package/dist/main.es365.js +4 -4
- package/dist/main.es366.js +6 -6
- package/dist/main.es367.js +7 -7
- package/dist/main.es368.js +9 -19
- package/dist/main.es369.js +7 -12
- package/dist/main.es37.js +9 -17
- package/dist/main.es370.js +9 -14
- package/dist/main.es371.js +14 -11
- package/dist/main.es372.js +19 -9
- package/dist/main.es373.js +14 -11
- package/dist/main.es374.js +14 -11
- package/dist/main.es375.js +12 -17
- package/dist/main.es376.js +6 -8
- package/dist/main.es377.js +10 -22
- package/dist/main.es378.js +7 -5
- package/dist/main.es379.js +16 -9
- package/dist/main.es38.js +8 -11
- package/dist/main.es380.js +8 -6
- package/dist/main.es381.js +22 -8
- package/dist/main.es382.js +18 -52
- package/dist/main.es383.js +20 -370
- package/dist/main.es384.js +20 -9
- package/dist/main.es385.js +21 -4
- package/dist/main.es386.js +51 -97
- package/dist/main.es39.js +10 -29
- package/dist/main.es40.js +11 -21
- package/dist/main.es41.js +15 -10
- package/dist/main.es42.js +6 -6
- package/dist/main.es43.js +31 -11
- package/dist/main.es44.js +17 -14
- package/dist/main.es45.js +10 -17
- package/dist/main.es46.js +9 -20
- package/dist/main.es47.js +13 -9
- package/dist/main.es48.js +24 -9
- package/dist/main.es49.js +16 -9
- package/dist/main.es5.js +3 -3
- package/dist/main.es50.js +17 -11
- package/dist/main.es51.js +9 -17
- package/dist/main.es52.js +8 -11
- package/dist/main.es53.js +6 -6
- package/dist/main.es54.js +8 -8
- package/dist/main.es55.js +14 -9
- package/dist/main.es559.js +1 -1
- package/dist/main.es56.js +9 -14
- package/dist/main.es57.js +6 -8
- package/dist/main.es58.js +14 -10
- package/dist/main.es59.js +4 -6
- package/dist/main.es6.js +4 -4
- package/dist/main.es60.js +14 -9
- package/dist/main.es61.js +6 -6
- package/dist/main.es62.js +7 -6
- package/dist/main.es63.js +7 -5
- package/dist/main.es64.js +5 -7
- package/dist/main.es65.js +13 -8
- package/dist/main.es66.js +5 -5
- package/dist/main.es67.js +6 -6
- package/dist/main.es68.js +11 -7
- package/dist/main.es69.js +7 -7
- package/dist/main.es70.js +6 -6
- package/dist/main.es708.js +1 -1
- package/dist/main.es71.js +6 -11
- package/dist/main.es72.js +10 -17
- package/dist/main.es73.js +8 -11
- package/dist/main.es74.js +6 -6
- package/dist/main.es742.js +60 -21
- package/dist/main.es743.js +21 -60
- package/dist/main.es75.js +12 -7
- package/dist/main.es76.js +13 -8
- package/dist/main.es77.js +12 -20
- package/dist/main.es78.js +10 -20
- package/dist/main.es79.js +4 -4
- package/dist/main.es8.js +66 -103
- package/dist/main.es80.js +6 -6
- package/dist/main.es81.js +20 -17
- package/dist/main.es82.js +18 -15
- package/dist/main.es83.js +9 -19
- package/dist/main.es84.js +9 -15
- package/dist/main.es85.js +7 -9
- package/dist/main.es86.js +9 -8
- package/dist/main.es87.js +19 -9
- package/dist/main.es88.js +14 -7
- package/dist/main.es89.js +17 -12
- package/dist/main.es9.js +1 -1
- package/dist/main.es90.js +9 -8
- package/dist/main.es91.js +8 -20
- package/dist/main.es92.js +9 -10
- package/dist/main.es93.js +8 -8
- package/dist/main.es94.js +14 -9
- package/dist/main.es95.js +21 -12
- package/dist/main.es96.js +9 -19
- package/dist/main.es97.js +13 -8
- package/dist/main.es98.js +8 -13
- package/dist/main.es99.js +9 -11
- package/package.json +1 -1
- package/src/assets/svgIcons/electricity_tariff.svg +2 -2
- package/src/assets/svgIcons/suitcase.svg +2 -2
- package/src/assets/theme.js +63 -90
- package/src/components/buttons/mainButton/MainButton.stories.js +0 -6
- package/src/components/buttons/mainButton/index.vue +1 -9
- package/src/components/dropdown/Dropdown.stories.js +39 -111
- package/src/components/dropdown/index.vue +21 -30
- package/src/components/progressBar/index.vue +56 -28
- package/src/components/sideMenu/index.vue +32 -27
- package/src/components/tables/mainTable/index.vue +1 -2
- package/src/components/dropdown/defaultProps.js +0 -7
- package/src/components/dropdown/dropdown.spec.js +0 -55
- package/src/components/progressBar/ProgressBar.stories.js +0 -62
- package/src/components/progressBar/defaultProps.js +0 -5
- package/src/components/progressBar/progressBar.spec.js +0 -52
package/src/assets/theme.js
CHANGED
@@ -26,6 +26,8 @@ const theme = (() => {
|
|
26
26
|
red2: '#de5959',
|
27
27
|
red3: '#FFCCCC',
|
28
28
|
red4: '#FF9A9A',
|
29
|
+
red6: '#FFEBEB',
|
30
|
+
red5: '#CC4545',
|
29
31
|
pureRed: '#ff0000',
|
30
32
|
darkRed: '#d00000',
|
31
33
|
cornellRed: '#a52019',
|
@@ -66,6 +68,8 @@ const theme = (() => {
|
|
66
68
|
purple4: '#D0D6F5',
|
67
69
|
purple5: '#533181',
|
68
70
|
purple6: '#6F20DC',
|
71
|
+
purple7: '#F5EEFF',
|
72
|
+
purple8: '#B17BFA',
|
69
73
|
orange: '#ffc338',
|
70
74
|
disabled: '#dfe1e1',
|
71
75
|
transparentWhite2: '#ffffff32',
|
@@ -180,25 +184,9 @@ const theme = (() => {
|
|
180
184
|
},
|
181
185
|
}
|
182
186
|
|
183
|
-
const chartGradients = {
|
184
|
-
simple: {
|
185
|
-
from: semanticColors.purple[500],
|
186
|
-
to: semanticColors.purple[400],
|
187
|
-
},
|
188
|
-
stacked: [
|
189
|
-
{ from: '#F5EDFF', to: '#DEC5FF' },
|
190
|
-
{ from: '#CAA2FF', to: '#F2E8FF' },
|
191
|
-
{ from: '#B987FC', to: '#904AEF' },
|
192
|
-
{ from: '#8B40F2', to: '#4A1394' },
|
193
|
-
{ from: '#6A05F2', to: '#4905A5' },
|
194
|
-
{ from: '#5402C3', to: '#2B0362' },
|
195
|
-
],
|
196
|
-
}
|
197
|
-
|
198
187
|
return {
|
199
188
|
colors,
|
200
189
|
semanticColors,
|
201
|
-
chartGradients,
|
202
190
|
fonts: {
|
203
191
|
mainFont: '"Figtree", sans-serif',
|
204
192
|
},
|
@@ -217,18 +205,6 @@ const theme = (() => {
|
|
217
205
|
boxShadow: {
|
218
206
|
card: '0px 2px 8px 2px rgba(0, 0, 0, 0.15)',
|
219
207
|
},
|
220
|
-
progressBar: {
|
221
|
-
light: {
|
222
|
-
fillColor: semanticColors.purple[500],
|
223
|
-
backgroundColor: semanticColors.grey[200],
|
224
|
-
labelColor: semanticColors.grey[700],
|
225
|
-
},
|
226
|
-
dark: {
|
227
|
-
fillColor: colors.white,
|
228
|
-
backgroundColor: semanticColors.grey[700],
|
229
|
-
labelColor: semanticColors.grey[200],
|
230
|
-
},
|
231
|
-
},
|
232
208
|
mainButton: {
|
233
209
|
light: {
|
234
210
|
// theme
|
@@ -427,28 +403,26 @@ const theme = (() => {
|
|
427
403
|
borderColor: '',
|
428
404
|
},
|
429
405
|
},
|
430
|
-
|
431
|
-
protag: {
|
432
|
-
main: {
|
406
|
+
tertiary: {
|
433
407
|
default: {
|
434
|
-
backgroundColor:
|
408
|
+
backgroundColor: 'transparent',
|
435
409
|
textColor: semanticColors.teal[800],
|
436
|
-
borderColor:
|
410
|
+
borderColor: semanticColors.teal[100],
|
437
411
|
},
|
438
412
|
hover: {
|
439
|
-
backgroundColor: semanticColors.
|
413
|
+
backgroundColor: semanticColors.grey[200],
|
440
414
|
textColor: semanticColors.teal[800],
|
441
|
-
borderColor:
|
415
|
+
borderColor: semanticColors.teal[100],
|
442
416
|
},
|
443
417
|
active: {
|
444
|
-
backgroundColor: semanticColors.
|
418
|
+
backgroundColor: semanticColors.grey[400],
|
445
419
|
textColor: semanticColors.teal[800],
|
446
|
-
borderColor:
|
420
|
+
borderColor: semanticColors.teal[100],
|
447
421
|
},
|
448
422
|
disabled: {
|
449
|
-
|
450
|
-
|
451
|
-
borderColor:
|
423
|
+
textColor: semanticColors.grey[600],
|
424
|
+
backgroundColor: semanticColors.grey[500],
|
425
|
+
borderColor: semanticColors.grey[800],
|
452
426
|
},
|
453
427
|
},
|
454
428
|
},
|
@@ -476,153 +450,152 @@ const theme = (() => {
|
|
476
450
|
},
|
477
451
|
},
|
478
452
|
},
|
479
|
-
|
480
|
-
dark: {
|
481
|
-
// theme
|
482
|
-
primary: {
|
483
|
-
// type
|
453
|
+
protag: {
|
484
454
|
main: {
|
485
|
-
// variant: this is the default variant
|
486
455
|
default: {
|
487
|
-
backgroundColor:
|
456
|
+
backgroundColor: semanticColors.yellow[200],
|
488
457
|
textColor: semanticColors.teal[800],
|
489
458
|
borderColor: '',
|
490
459
|
},
|
491
460
|
hover: {
|
492
|
-
backgroundColor: semanticColors.
|
461
|
+
backgroundColor: semanticColors.yellow[200],
|
493
462
|
textColor: semanticColors.teal[800],
|
494
463
|
borderColor: '',
|
495
464
|
},
|
496
465
|
active: {
|
497
|
-
backgroundColor: semanticColors.
|
466
|
+
backgroundColor: semanticColors.yellow[200],
|
498
467
|
textColor: semanticColors.teal[800],
|
499
468
|
borderColor: '',
|
500
469
|
},
|
501
470
|
disabled: {
|
502
|
-
|
503
|
-
|
471
|
+
backgroundColor: semanticColors.yellow[200],
|
472
|
+
textColor: semanticColors.teal[400],
|
504
473
|
borderColor: '',
|
505
474
|
},
|
506
475
|
},
|
507
|
-
|
508
|
-
|
476
|
+
},
|
477
|
+
freeTrialTag: {
|
478
|
+
main: {
|
509
479
|
default: {
|
510
|
-
backgroundColor: semanticColors.
|
480
|
+
backgroundColor: semanticColors.blue[200],
|
511
481
|
textColor: semanticColors.teal[800],
|
512
482
|
borderColor: '',
|
513
483
|
},
|
514
484
|
hover: {
|
515
|
-
backgroundColor: semanticColors.
|
485
|
+
backgroundColor: semanticColors.blue[200],
|
516
486
|
textColor: semanticColors.teal[800],
|
517
487
|
borderColor: '',
|
518
488
|
},
|
519
489
|
active: {
|
520
|
-
backgroundColor: semanticColors.
|
490
|
+
backgroundColor: semanticColors.blue[200],
|
521
491
|
textColor: semanticColors.teal[800],
|
522
492
|
borderColor: '',
|
523
493
|
},
|
524
494
|
disabled: {
|
525
|
-
backgroundColor: semanticColors.
|
526
|
-
textColor: semanticColors.
|
495
|
+
backgroundColor: semanticColors.blue[200],
|
496
|
+
textColor: semanticColors.teal[400],
|
527
497
|
borderColor: '',
|
528
498
|
},
|
529
499
|
},
|
530
500
|
},
|
531
|
-
|
501
|
+
},
|
502
|
+
dark: {
|
503
|
+
// theme
|
504
|
+
primary: {
|
532
505
|
// type
|
533
506
|
main: {
|
534
507
|
// variant: this is the default variant
|
535
508
|
default: {
|
536
|
-
backgroundColor:
|
537
|
-
textColor: semanticColors.
|
509
|
+
backgroundColor: colors.white,
|
510
|
+
textColor: semanticColors.teal[800],
|
538
511
|
borderColor: '',
|
539
512
|
},
|
540
513
|
hover: {
|
541
|
-
backgroundColor: semanticColors.
|
542
|
-
textColor: semanticColors.
|
514
|
+
backgroundColor: semanticColors.purple[100],
|
515
|
+
textColor: semanticColors.teal[800],
|
543
516
|
borderColor: '',
|
544
517
|
},
|
545
518
|
active: {
|
546
|
-
backgroundColor: semanticColors.
|
547
|
-
textColor: semanticColors.
|
519
|
+
backgroundColor: semanticColors.purple[100],
|
520
|
+
textColor: semanticColors.teal[800],
|
548
521
|
borderColor: '',
|
549
522
|
},
|
550
523
|
disabled: {
|
551
|
-
textColor: semanticColors.grey[
|
552
|
-
backgroundColor: semanticColors.grey[
|
524
|
+
textColor: semanticColors.grey[800],
|
525
|
+
backgroundColor: semanticColors.grey[400],
|
553
526
|
borderColor: '',
|
554
527
|
},
|
555
528
|
},
|
556
529
|
cancel: {
|
557
530
|
// variant
|
558
531
|
default: {
|
559
|
-
backgroundColor: semanticColors.red[
|
560
|
-
textColor: semanticColors.
|
532
|
+
backgroundColor: semanticColors.red[400],
|
533
|
+
textColor: semanticColors.teal[800],
|
561
534
|
borderColor: '',
|
562
535
|
},
|
563
536
|
hover: {
|
564
|
-
backgroundColor: semanticColors.red[
|
565
|
-
textColor: semanticColors.
|
537
|
+
backgroundColor: semanticColors.red[100],
|
538
|
+
textColor: semanticColors.teal[800],
|
566
539
|
borderColor: '',
|
567
540
|
},
|
568
541
|
active: {
|
569
|
-
backgroundColor: semanticColors.red[
|
570
|
-
textColor: semanticColors.
|
542
|
+
backgroundColor: semanticColors.red[200],
|
543
|
+
textColor: semanticColors.teal[800],
|
571
544
|
borderColor: '',
|
572
545
|
},
|
573
546
|
disabled: {
|
574
|
-
|
575
|
-
|
547
|
+
backgroundColor: semanticColors.grey[300],
|
548
|
+
textColor: semanticColors.grey[800],
|
576
549
|
borderColor: '',
|
577
550
|
},
|
578
551
|
},
|
579
552
|
},
|
580
|
-
|
553
|
+
secondary: {
|
581
554
|
// type
|
582
555
|
main: {
|
583
556
|
// variant: this is the default variant
|
584
557
|
default: {
|
585
|
-
backgroundColor:
|
558
|
+
backgroundColor: semanticColors.teal[800],
|
586
559
|
textColor: semanticColors.purple[50],
|
587
|
-
borderColor:
|
560
|
+
borderColor: '',
|
588
561
|
},
|
589
562
|
hover: {
|
590
563
|
backgroundColor: semanticColors.teal[600],
|
591
564
|
textColor: semanticColors.purple[50],
|
592
|
-
borderColor:
|
565
|
+
borderColor: '',
|
593
566
|
},
|
594
567
|
active: {
|
595
568
|
backgroundColor: semanticColors.teal[700],
|
596
569
|
textColor: semanticColors.purple[50],
|
597
|
-
borderColor:
|
570
|
+
borderColor: '',
|
598
571
|
},
|
599
572
|
disabled: {
|
600
573
|
textColor: semanticColors.grey[600],
|
601
574
|
backgroundColor: semanticColors.grey[500],
|
602
|
-
borderColor:
|
575
|
+
borderColor: '',
|
603
576
|
},
|
604
577
|
},
|
605
578
|
cancel: {
|
606
579
|
// variant
|
607
580
|
default: {
|
608
|
-
backgroundColor: semanticColors.
|
581
|
+
backgroundColor: semanticColors.red[800],
|
609
582
|
textColor: semanticColors.red[400],
|
610
|
-
borderColor:
|
583
|
+
borderColor: '',
|
611
584
|
},
|
612
585
|
hover: {
|
613
586
|
backgroundColor: semanticColors.red[700],
|
614
|
-
textColor: semanticColors.red[
|
615
|
-
borderColor:
|
587
|
+
textColor: semanticColors.red[300],
|
588
|
+
borderColor: '',
|
616
589
|
},
|
617
590
|
active: {
|
618
591
|
backgroundColor: semanticColors.red[600],
|
619
592
|
textColor: semanticColors.red[200],
|
620
|
-
borderColor:
|
593
|
+
borderColor: '',
|
621
594
|
},
|
622
595
|
disabled: {
|
623
596
|
textColor: semanticColors.grey[600],
|
624
597
|
backgroundColor: semanticColors.grey[500],
|
625
|
-
borderColor:
|
598
|
+
borderColor: '',
|
626
599
|
},
|
627
600
|
},
|
628
601
|
},
|
@@ -766,9 +739,9 @@ const theme = (() => {
|
|
766
739
|
iconWidth: '26px',
|
767
740
|
},
|
768
741
|
tiny: {
|
769
|
-
padding: '
|
770
|
-
fontSize: '
|
771
|
-
iconWidth: '
|
742
|
+
padding: '3px 5px',
|
743
|
+
fontSize: '11px',
|
744
|
+
iconWidth: '14px',
|
772
745
|
},
|
773
746
|
},
|
774
747
|
},
|
@@ -104,12 +104,6 @@ WithIcon.args = {
|
|
104
104
|
appTheme: 'light',
|
105
105
|
}
|
106
106
|
|
107
|
-
export const WithIconLast = Template.bind({})
|
108
|
-
WithIconLast.args = {
|
109
|
-
...WithIcon.args,
|
110
|
-
iconLast: true,
|
111
|
-
}
|
112
|
-
|
113
107
|
export const Disabled = Template.bind({})
|
114
108
|
Disabled.args = {
|
115
109
|
type: 'primary',
|
@@ -15,7 +15,7 @@
|
|
15
15
|
:variant="variant"
|
16
16
|
:width="width"
|
17
17
|
>
|
18
|
-
<LabelComponent :has-icon="Boolean(icon)"
|
18
|
+
<LabelComponent :has-icon="Boolean(icon)">
|
19
19
|
<Icon
|
20
20
|
v-if="icon"
|
21
21
|
:color="getIconColor"
|
@@ -146,13 +146,10 @@
|
|
146
146
|
|
147
147
|
const LabelAttrs = {
|
148
148
|
hasIcon: Boolean,
|
149
|
-
reverseDirection: Boolean,
|
150
149
|
}
|
151
150
|
|
152
151
|
const LabelComponent = styled('span', LabelAttrs)`
|
153
152
|
display: flex;
|
154
|
-
flex-direction: ${(props) =>
|
155
|
-
props.reverseDirection ? 'row-reverse' : 'row'};
|
156
153
|
align-items: center;
|
157
154
|
justify-content: center;
|
158
155
|
gap: ${(props) => (props.hasIcon ? '5px' : '0')};
|
@@ -215,11 +212,6 @@
|
|
215
212
|
default: '',
|
216
213
|
type: String,
|
217
214
|
},
|
218
|
-
iconLast: {
|
219
|
-
required: false,
|
220
|
-
default: false,
|
221
|
-
type: Boolean,
|
222
|
-
},
|
223
215
|
iconAltStyle: {
|
224
216
|
required: false,
|
225
217
|
default: false,
|
@@ -1,125 +1,53 @@
|
|
1
|
-
import defaultDropdownProps from './defaultProps'
|
2
1
|
import Dropdown from './index.vue'
|
3
|
-
import theme from '@/assets/theme'
|
4
2
|
|
5
3
|
export default {
|
6
4
|
title: 'Dropdown',
|
7
5
|
component: Dropdown,
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
backgroundColor: {
|
29
|
-
description: 'Backbround color of dropdown content',
|
30
|
-
control: {
|
31
|
-
type: 'color',
|
32
|
-
presetColors: [
|
33
|
-
theme.colors.white,
|
34
|
-
theme.colors.grey3,
|
35
|
-
theme.colors.grey4,
|
36
|
-
theme.colors.red,
|
37
|
-
],
|
38
|
-
},
|
39
|
-
},
|
40
|
-
|
41
|
-
// slots
|
42
|
-
trigger: {
|
43
|
-
description: 'Trigger button slot',
|
44
|
-
},
|
45
|
-
dropdown: {
|
46
|
-
description: 'Dropdown content slot',
|
47
|
-
},
|
48
|
-
},
|
49
|
-
}
|
50
|
-
|
51
|
-
// To use:
|
52
|
-
// import Dropdown from '@eturnity/eturnity_reusable_components/src/components/dropdown'
|
53
|
-
// <Dropdown
|
54
|
-
// width="fit-content"
|
55
|
-
// gap="20px"
|
56
|
-
// justify="right"
|
57
|
-
// opening-mode="click"
|
58
|
-
// background-color="red"
|
59
|
-
// >
|
60
|
-
// <template #trigger>
|
61
|
-
// TRIGGER BUTTON
|
62
|
-
// </template>
|
63
|
-
// <template #dropdown>
|
64
|
-
// <div>
|
65
|
-
// <div>OPTION 1</div>
|
66
|
-
// <div>OPTION 2</div>
|
67
|
-
// </div>
|
68
|
-
// </template>
|
69
|
-
// <Dropdown/>
|
70
|
-
|
71
|
-
const Template = (args) => {
|
72
|
-
return {
|
73
|
-
components: { Dropdown },
|
74
|
-
setup() {
|
75
|
-
return { args }
|
76
|
-
},
|
77
|
-
template: `
|
78
|
-
<div style="margin-left: 30px;">
|
79
|
-
<Dropdown v-bind="args">
|
80
|
-
<template #trigger>
|
81
|
-
{{ args.trigger }}
|
82
|
-
</template>
|
83
|
-
<template #dropdown>
|
84
|
-
<div v-html="args.dropdown"></div>
|
85
|
-
</template>
|
86
|
-
</Dropdown>
|
6
|
+
// argTypes: {},
|
7
|
+
}
|
8
|
+
|
9
|
+
const Template = (args, { argTypes }) => ({
|
10
|
+
// Components used in your story `template` are defined in the `components` object
|
11
|
+
components: { Dropdown },
|
12
|
+
// The story's `args` need to be mapped into the template through the `setup()` method
|
13
|
+
props: Object.keys(argTypes),
|
14
|
+
template: `<Dropdown v-bind="$props">
|
15
|
+
<template #trigger>
|
16
|
+
trigger button
|
17
|
+
</template>
|
18
|
+
<template #dropdown>
|
19
|
+
<div>
|
20
|
+
<h3>fully customizable dropdown</h3>
|
21
|
+
<ul>
|
22
|
+
<li>item</li>
|
23
|
+
<li>item</li>
|
24
|
+
<li>item</li>
|
25
|
+
</ul>
|
87
26
|
</div>
|
88
|
-
|
89
|
-
|
90
|
-
|
27
|
+
</template>
|
28
|
+
</Dropdown>`,
|
29
|
+
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
30
|
+
// How to use:
|
31
|
+
//<icon
|
32
|
+
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
33
|
+
// color="red"
|
34
|
+
// hoveredColor="blue"
|
35
|
+
// size="60px" by default, this is 30px
|
36
|
+
// />
|
37
|
+
})
|
91
38
|
|
92
39
|
export const Default = Template.bind({})
|
93
40
|
Default.args = {
|
94
|
-
|
95
|
-
}
|
96
|
-
|
97
|
-
export const DropdownWidth = Template.bind({})
|
98
|
-
DropdownWidth.args = {
|
99
|
-
...defaultDropdownProps,
|
100
|
-
width: 'max-content',
|
101
|
-
}
|
102
|
-
|
103
|
-
export const DropdownGap = Template.bind({})
|
104
|
-
DropdownGap.args = {
|
105
|
-
...defaultDropdownProps,
|
41
|
+
openingMode: 'click',
|
106
42
|
gap: '0px',
|
43
|
+
justify: 'left',
|
44
|
+
width: '150px',
|
107
45
|
}
|
108
46
|
|
109
|
-
export const
|
110
|
-
|
111
|
-
|
47
|
+
export const withHover = Template.bind({})
|
48
|
+
withHover.args = {
|
49
|
+
openingMode: 'hover',
|
50
|
+
gap: '20px',
|
112
51
|
justify: 'right',
|
113
|
-
|
114
|
-
|
115
|
-
export const DropdownOpeningModeClick = Template.bind({})
|
116
|
-
DropdownOpeningModeClick.args = {
|
117
|
-
...defaultDropdownProps,
|
118
|
-
openingMode: 'click',
|
119
|
-
}
|
120
|
-
|
121
|
-
export const DropdownBackgroundColor = Template.bind({})
|
122
|
-
DropdownBackgroundColor.args = {
|
123
|
-
...defaultDropdownProps,
|
124
|
-
backgroundColor: theme.colors.red,
|
52
|
+
width: '250px',
|
125
53
|
}
|
@@ -1,26 +1,18 @@
|
|
1
1
|
<template>
|
2
|
-
<Wrapper
|
3
|
-
|
4
|
-
ref="dropdown"
|
5
|
-
:opening-mode="openingMode"
|
6
|
-
>
|
7
|
-
<WrapperButton
|
8
|
-
data-test-id="dropdown_trigger"
|
9
|
-
@click="toggleIsOpenByClick(!isOpenByClick)"
|
10
|
-
>
|
2
|
+
<Wrapper ref="dropdown" :opening-mode="openingMode">
|
3
|
+
<WrapperButton @click="isOpenByClick = !isOpenByClick">
|
11
4
|
<slot name="trigger"></slot>
|
12
5
|
</WrapperButton>
|
13
6
|
<WrapperDropdown
|
14
7
|
:background-color="backgroundColor"
|
15
8
|
class="dropdown-content"
|
16
|
-
:class="{ openDropdown: isOpenByClick && openingMode
|
17
|
-
data-test-id="dropdown_dropdown_wrapper"
|
9
|
+
:class="{ openDropdown: isOpenByClick && openingMode == 'click' }"
|
18
10
|
:justify="justify"
|
11
|
+
:position="position"
|
19
12
|
:width="width"
|
20
13
|
>
|
21
14
|
<DropdownWindow
|
22
15
|
:background-color="backgroundColor"
|
23
|
-
data-test-id="dropdown_dropdown_content"
|
24
16
|
:gap="gap"
|
25
17
|
:width="width"
|
26
18
|
>
|
@@ -31,6 +23,14 @@
|
|
31
23
|
</template>
|
32
24
|
|
33
25
|
<script>
|
26
|
+
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
27
|
+
// How to use:
|
28
|
+
//<DropdownComponent
|
29
|
+
// width="300px"
|
30
|
+
// backgroundColor="red">
|
31
|
+
|
32
|
+
// <DropdownComponent/>
|
33
|
+
|
34
34
|
import styled from 'vue3-styled-components'
|
35
35
|
|
36
36
|
const wrapperAttrs = {
|
@@ -45,11 +45,11 @@
|
|
45
45
|
position: relative;
|
46
46
|
|
47
47
|
&:hover .dropdown-content {
|
48
|
-
${(props) => (props.openingMode
|
48
|
+
${(props) => (props.openingMode == 'hover' ? 'display:block' : '')}
|
49
49
|
}
|
50
50
|
& .openDropdown {
|
51
51
|
${(props) =>
|
52
|
-
props.openingMode
|
52
|
+
props.openingMode == 'click' ? 'display:block !important' : ''}
|
53
53
|
}
|
54
54
|
`
|
55
55
|
const WrapperDropdown = styled('div', wrapperAttrs)`
|
@@ -57,7 +57,7 @@
|
|
57
57
|
display: none;
|
58
58
|
position: absolute;
|
59
59
|
z-index: 1;
|
60
|
-
${(props) => (props.justify
|
60
|
+
${(props) => (props.justify == 'right' ? 'right:0;' : '')}
|
61
61
|
`
|
62
62
|
const DropdownWindow = styled('div', wrapperAttrs)`
|
63
63
|
width: ${(props) => props.width};
|
@@ -86,27 +86,26 @@
|
|
86
86
|
props: {
|
87
87
|
width: {
|
88
88
|
required: false,
|
89
|
-
type: String,
|
90
89
|
default: '300px',
|
91
90
|
},
|
92
91
|
gap: {
|
93
92
|
required: false,
|
94
|
-
type: String,
|
95
93
|
default: '10px',
|
96
94
|
},
|
95
|
+
position: {
|
96
|
+
required: false,
|
97
|
+
default: 'bottom',
|
98
|
+
},
|
97
99
|
justify: {
|
98
100
|
required: false,
|
99
|
-
type: String,
|
100
101
|
default: 'left',
|
101
102
|
},
|
102
103
|
openingMode: {
|
103
104
|
required: false,
|
104
|
-
type: String,
|
105
105
|
default: 'hover',
|
106
106
|
},
|
107
107
|
backgroundColor: {
|
108
108
|
required: false,
|
109
|
-
type: String,
|
110
109
|
default: 'white',
|
111
110
|
},
|
112
111
|
},
|
@@ -122,26 +121,18 @@
|
|
122
121
|
document.removeEventListener('click', this.clickOutside)
|
123
122
|
},
|
124
123
|
methods: {
|
125
|
-
toggleIsOpenByClick(value) {
|
126
|
-
this.isOpenByClick = value
|
127
|
-
},
|
128
124
|
clickOutside(event) {
|
129
125
|
if (this.openingMode != 'click') return
|
130
126
|
if (
|
131
127
|
this.$refs.dropdown &&
|
132
|
-
(this.$refs.dropdown.$el
|
128
|
+
(this.$refs.dropdown.$el == event.target ||
|
133
129
|
this.$refs.dropdown.$el.contains(event.target))
|
134
130
|
) {
|
135
131
|
return
|
136
132
|
} else {
|
137
|
-
this.
|
133
|
+
this.isOpenByClick = false
|
138
134
|
}
|
139
135
|
},
|
140
136
|
},
|
141
|
-
watch: {
|
142
|
-
isOpenByClick(newVal) {
|
143
|
-
this.$emit('on-dropdown-toggle', newVal)
|
144
|
-
},
|
145
|
-
},
|
146
137
|
}
|
147
138
|
</script>
|