@designcrowd/fe-shared-lib 1.0.1-2.eng2594 → 1.0.1-6.eng2594

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.0.1-2.eng2594",
3
+ "version": "1.0.1-6.eng2594",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -2,10 +2,11 @@
2
2
  <div
3
3
  v-show="visible"
4
4
  :aria-hidden="visible ? 'false' : 'true'"
5
- class="tw-bg-black tw-bg-opacity-75 tw-flex tw-items-center tw-justify-center tw-fixed tw-w-full tw-h-full tw-top-0 tw-left-0 tw-z-50"
5
+ class="tw-bg-black tw-flex tw-items-center tw-justify-center tw-fixed tw-w-full tw-h-full tw-top-0 tw-left-0 tw-z-50"
6
6
  :class="{
7
7
  'tw-px-4': fullScreenBreakpoint === undefined && !isImageMode,
8
8
  'sm:tw-px-4': fullScreenBreakpoint === 'sm' && !isImageMode,
9
+ 'tw-bg-opacity-75': !darkOverlay,
9
10
  }"
10
11
  @mousedown.self="close"
11
12
  >
@@ -23,6 +24,7 @@
23
24
  'tw-rounded-md': fullScreenBreakpoint !== 'sm',
24
25
  'modal-bg': !simple && !isImageMode && showModalBackgroundImage,
25
26
  'modal-image': isImageMode,
27
+ 'tw-bg-transparent': transparentModal,
26
28
  },
27
29
  classes,
28
30
  ]"
@@ -144,6 +146,16 @@ export default {
144
146
  required: false,
145
147
  default: false,
146
148
  },
149
+ darkOverlay: {
150
+ type: Boolean,
151
+ required: false,
152
+ default: false,
153
+ },
154
+ transparentModal: {
155
+ type: Boolean,
156
+ required: false,
157
+ default: false,
158
+ },
147
159
  },
148
160
  computed: {
149
161
  isImageMode() {
@@ -38,3 +38,21 @@ export const SampleExternallyInvoked = () => {
38
38
  `,
39
39
  };
40
40
  };
41
+
42
+ export const SampleSearchbar = () => {
43
+ window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
44
+ console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
45
+ });
46
+
47
+ return {
48
+ components: {
49
+ UploadYourLogoDropzone,
50
+ },
51
+ template: `
52
+ <div>
53
+ <UploadYourLogoDropzone
54
+ :should-use-compact-layout="true" />
55
+ </div>
56
+ `,
57
+ };
58
+ };
@@ -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-items-center tw-justify-center tw-flex-col tw-py-8 tw-cursor-pointer"
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-4 md: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-text-center tw-px-2"
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-w-full tw-mx-auto tw-mb-2"
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 tw-mb-2"
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,6 +66,7 @@
59
66
  :class="{
60
67
  'tw-mb-0': !isDesignCom,
61
68
  'tw-mb-3': isDesignCom,
69
+ 'md:tw-hidden': shouldUseCompactLayout
62
70
  }"
63
71
  >
64
72
  Drop your file here or
@@ -66,7 +74,7 @@
66
74
  </p>
67
75
 
68
76
  <p
69
- v-if="!smallLayout"
77
+ v-if="!smallLayout && !shouldUseCompactLayout"
70
78
  class="tw-text-sm"
71
79
  :class="{
72
80
  'tw-text-secondary-600': !isDesignCom,
@@ -125,6 +133,10 @@ export default {
125
133
  required: false,
126
134
  default: false,
127
135
  },
136
+ shouldUseCompactLayout: {
137
+ type: Boolean,
138
+ default: false,
139
+ },
128
140
  isDesignCom: {
129
141
  type: Boolean,
130
142
  required: false,