@designcrowd/fe-shared-lib 1.0.13 → 1.0.14
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/package.json
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
<dropzone
|
|
3
3
|
:id="`upload-your-logo-dropzone-${_uid}`"
|
|
4
4
|
ref="dropzone"
|
|
5
|
-
class="c-upload-your-logo tw-group tw-transition-colors tw-duration-200 tw-flex tw-
|
|
5
|
+
class="c-upload-your-logo tw-group tw-transition-colors tw-duration-200 tw-flex tw-justify-center tw-flex-col tw-cursor-pointer"
|
|
6
6
|
:class="{
|
|
7
|
+
'tw-items-center tw-py-8': !shouldUseCompactLayout,
|
|
7
8
|
'tw-w-full tw-bg-grayscale-400 tw-flex tw-items-center tw-justify-center tw-flex-col tw-cursor-pointer': isModal,
|
|
8
9
|
'hover:tw-bg-grayscale-200 tw-bg-white tw-border tw-border-dashed tw-border-secondary-300 tw-rounded': !isModal,
|
|
9
10
|
'md:tw-py-2 md:tw-pr-2 md:tw-items-start': useLandscapeTile,
|
|
11
|
+
'tw-py-2 tw-pr-2 tw-items-start': shouldUseCompactLayout,
|
|
10
12
|
}"
|
|
11
13
|
:options="options"
|
|
12
14
|
:include-styling="false"
|
|
@@ -15,19 +17,23 @@
|
|
|
15
17
|
@vdropzone-success="onUploadSuccess"
|
|
16
18
|
>
|
|
17
19
|
<div
|
|
18
|
-
class="tw-
|
|
20
|
+
class="tw-px-2"
|
|
19
21
|
:class="{
|
|
22
|
+
'tw-text-center': !shouldUseCompactLayout,
|
|
20
23
|
'md:tw-flex md:tw-flex-row md:tw-items-center md:tw-text-left md:tw-text-xs md:tw-px-4': useLandscapeTile,
|
|
21
24
|
'md:tw-px-8': smallLayout && !useLandscapeTile,
|
|
25
|
+
'tw-flex tw-flex-row tw-items-center tw-text-left tw-text-xs tw-px-4': shouldUseCompactLayout,
|
|
22
26
|
}"
|
|
23
27
|
>
|
|
24
28
|
<div
|
|
25
|
-
class="group-hover:tw-text-info-500 tw-flex tw-items-center tw-justify-center tw-
|
|
29
|
+
class="group-hover:tw-text-info-500 tw-flex tw-items-center tw-justify-center tw-mx-auto"
|
|
26
30
|
:class="{
|
|
31
|
+
'tw-w-full tw-mb-2': !shouldUseCompactLayout,
|
|
27
32
|
'tw-text-secondary-500': !isDesignCom,
|
|
28
33
|
'tw-text-secondary-400': isDesignCom,
|
|
29
34
|
'md:tw-mb-0': useLandscapeTile,
|
|
30
35
|
'md:tw-w-10 md:tw-h-10': smallLayout,
|
|
36
|
+
'tw-w-8 tw-h-8': shouldUseCompactLayout,
|
|
31
37
|
}"
|
|
32
38
|
>
|
|
33
39
|
<svg
|
|
@@ -44,12 +50,13 @@
|
|
|
44
50
|
<div
|
|
45
51
|
:class="{
|
|
46
52
|
'md:tw-flex md:tw-flex-col md:tw-ml-2': useLandscapeTile,
|
|
53
|
+
'tw-flex tw-flex-col tw-ml-4 md:tw-ml-2': shouldUseCompactLayout,
|
|
47
54
|
}"
|
|
48
55
|
>
|
|
49
56
|
<p
|
|
50
57
|
v-if="!isModal"
|
|
51
|
-
class="tw-font-bold tw-text-black tw-text-lg
|
|
52
|
-
:class="{ 'md:tw-text-sm md:tw-mb-0': smallLayout }"
|
|
58
|
+
class="tw-font-bold tw-text-black tw-text-lg"
|
|
59
|
+
:class="{ 'tw-mb-2': !shouldUseCompactLayout, 'md:tw-text-sm md:tw-mb-0': smallLayout, 'tw-text-sm tw-mb-0': shouldUseCompactLayout }"
|
|
53
60
|
>
|
|
54
61
|
Upload your logo
|
|
55
62
|
</p>
|
|
@@ -59,7 +66,7 @@
|
|
|
59
66
|
:class="{
|
|
60
67
|
'tw-mb-0': !isDesignCom,
|
|
61
68
|
'tw-mb-3': isDesignCom,
|
|
62
|
-
'md:tw-hidden':
|
|
69
|
+
'md:tw-hidden': shouldUseCompactLayout
|
|
63
70
|
}"
|
|
64
71
|
>
|
|
65
72
|
Drop your file here or
|
|
@@ -67,7 +74,7 @@
|
|
|
67
74
|
</p>
|
|
68
75
|
|
|
69
76
|
<p
|
|
70
|
-
v-if="!smallLayout"
|
|
77
|
+
v-if="!smallLayout && !shouldUseCompactLayout"
|
|
71
78
|
class="tw-text-sm"
|
|
72
79
|
:class="{
|
|
73
80
|
'tw-text-secondary-600': !isDesignCom,
|
|
@@ -126,7 +133,7 @@ export default {
|
|
|
126
133
|
required: false,
|
|
127
134
|
default: false,
|
|
128
135
|
},
|
|
129
|
-
|
|
136
|
+
shouldUseCompactLayout: {
|
|
130
137
|
type: Boolean,
|
|
131
138
|
default: false,
|
|
132
139
|
},
|