@designcrowd/fe-shared-lib 1.0.9-ast-modal → 1.0.9-ast-card

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.9-ast-modal",
3
+ "version": "1.0.9-ast-card",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -679,6 +679,9 @@ video {
679
679
  .theme-brandCrowd .tw-mb-1 {
680
680
  margin-bottom: 0.25rem;
681
681
  }
682
+ .theme-brandCrowd .tw-mb-10 {
683
+ margin-bottom: 2.5rem;
684
+ }
682
685
  .theme-brandCrowd .tw-mb-2 {
683
686
  margin-bottom: 0.5rem;
684
687
  }
@@ -1715,6 +1718,9 @@ video {
1715
1718
  .theme-brandCrowd .tw-text-center {
1716
1719
  text-align: center;
1717
1720
  }
1721
+ .theme-brandCrowd .tw-align-top {
1722
+ vertical-align: top;
1723
+ }
1718
1724
  .theme-brandCrowd .tw-align-middle {
1719
1725
  vertical-align: middle;
1720
1726
  }
@@ -2209,12 +2215,21 @@ video {
2209
2215
  .theme-brandCrowd .md\:tw-w-10 {
2210
2216
  width: 2.5rem;
2211
2217
  }
2218
+ .theme-brandCrowd .md\:tw-w-24 {
2219
+ width: 6rem;
2220
+ }
2212
2221
  .theme-brandCrowd .md\:tw-w-auto {
2213
2222
  width: auto;
2214
2223
  }
2215
2224
  .theme-brandCrowd .md\:tw-w-full {
2216
2225
  width: 100%;
2217
2226
  }
2227
+ .theme-brandCrowd .md\:tw-max-w-full {
2228
+ max-width: 100%;
2229
+ }
2230
+ .theme-brandCrowd .md\:tw-grow {
2231
+ flex-grow: 1;
2232
+ }
2218
2233
  .theme-brandCrowd .md\:tw-grid-cols-2 {
2219
2234
  grid-template-columns: repeat(2, minmax(0, 1fr));
2220
2235
  }
@@ -2236,6 +2251,9 @@ video {
2236
2251
  .theme-brandCrowd .md\:tw-justify-start {
2237
2252
  justify-content: flex-start;
2238
2253
  }
2254
+ .theme-brandCrowd .md\:tw-justify-end {
2255
+ justify-content: flex-end;
2256
+ }
2239
2257
  .theme-brandCrowd .md\:tw-justify-center {
2240
2258
  justify-content: center;
2241
2259
  }
@@ -2278,6 +2296,9 @@ video {
2278
2296
  padding-top: 0.5rem;
2279
2297
  padding-bottom: 0.5rem;
2280
2298
  }
2299
+ .theme-brandCrowd .md\:tw-pl-4 {
2300
+ padding-left: 1rem;
2301
+ }
2281
2302
  .theme-brandCrowd .md\:tw-pr-2 {
2282
2303
  padding-right: 0.5rem;
2283
2304
  }
@@ -679,6 +679,9 @@ video {
679
679
  .theme-brandPage .tw-mb-1 {
680
680
  margin-bottom: 0.25rem;
681
681
  }
682
+ .theme-brandPage .tw-mb-10 {
683
+ margin-bottom: 2.5rem;
684
+ }
682
685
  .theme-brandPage .tw-mb-2 {
683
686
  margin-bottom: 0.5rem;
684
687
  }
@@ -1563,6 +1566,9 @@ video {
1563
1566
  .theme-brandPage .tw-text-center {
1564
1567
  text-align: center;
1565
1568
  }
1569
+ .theme-brandPage .tw-align-top {
1570
+ vertical-align: top;
1571
+ }
1566
1572
  .theme-brandPage .tw-align-middle {
1567
1573
  vertical-align: middle;
1568
1574
  }
@@ -1897,12 +1903,21 @@ video {
1897
1903
  .theme-brandPage .md\:tw-w-10 {
1898
1904
  width: 2.5rem;
1899
1905
  }
1906
+ .theme-brandPage .md\:tw-w-24 {
1907
+ width: 6rem;
1908
+ }
1900
1909
  .theme-brandPage .md\:tw-w-auto {
1901
1910
  width: auto;
1902
1911
  }
1903
1912
  .theme-brandPage .md\:tw-w-full {
1904
1913
  width: 100%;
1905
1914
  }
1915
+ .theme-brandPage .md\:tw-max-w-full {
1916
+ max-width: 100%;
1917
+ }
1918
+ .theme-brandPage .md\:tw-grow {
1919
+ flex-grow: 1;
1920
+ }
1906
1921
  .theme-brandPage .md\:tw-grid-cols-2 {
1907
1922
  grid-template-columns: repeat(2, minmax(0, 1fr));
1908
1923
  }
@@ -1924,6 +1939,9 @@ video {
1924
1939
  .theme-brandPage .md\:tw-justify-start {
1925
1940
  justify-content: flex-start;
1926
1941
  }
1942
+ .theme-brandPage .md\:tw-justify-end {
1943
+ justify-content: flex-end;
1944
+ }
1927
1945
  .theme-brandPage .md\:tw-justify-center {
1928
1946
  justify-content: center;
1929
1947
  }
@@ -1966,6 +1984,9 @@ video {
1966
1984
  padding-top: 0.5rem;
1967
1985
  padding-bottom: 0.5rem;
1968
1986
  }
1987
+ .theme-brandPage .md\:tw-pl-4 {
1988
+ padding-left: 1rem;
1989
+ }
1969
1990
  .theme-brandPage .md\:tw-pr-2 {
1970
1991
  padding-right: 0.5rem;
1971
1992
  }
@@ -679,6 +679,9 @@ video {
679
679
  .theme-crazyDomains .tw-mb-1 {
680
680
  margin-bottom: 0.25rem;
681
681
  }
682
+ .theme-crazyDomains .tw-mb-10 {
683
+ margin-bottom: 2.5rem;
684
+ }
682
685
  .theme-crazyDomains .tw-mb-2 {
683
686
  margin-bottom: 0.5rem;
684
687
  }
@@ -1715,6 +1718,9 @@ video {
1715
1718
  .theme-crazyDomains .tw-text-center {
1716
1719
  text-align: center;
1717
1720
  }
1721
+ .theme-crazyDomains .tw-align-top {
1722
+ vertical-align: top;
1723
+ }
1718
1724
  .theme-crazyDomains .tw-align-middle {
1719
1725
  vertical-align: middle;
1720
1726
  }
@@ -2209,12 +2215,21 @@ video {
2209
2215
  .theme-crazyDomains .md\:tw-w-10 {
2210
2216
  width: 2.5rem;
2211
2217
  }
2218
+ .theme-crazyDomains .md\:tw-w-24 {
2219
+ width: 6rem;
2220
+ }
2212
2221
  .theme-crazyDomains .md\:tw-w-auto {
2213
2222
  width: auto;
2214
2223
  }
2215
2224
  .theme-crazyDomains .md\:tw-w-full {
2216
2225
  width: 100%;
2217
2226
  }
2227
+ .theme-crazyDomains .md\:tw-max-w-full {
2228
+ max-width: 100%;
2229
+ }
2230
+ .theme-crazyDomains .md\:tw-grow {
2231
+ flex-grow: 1;
2232
+ }
2218
2233
  .theme-crazyDomains .md\:tw-grid-cols-2 {
2219
2234
  grid-template-columns: repeat(2, minmax(0, 1fr));
2220
2235
  }
@@ -2236,6 +2251,9 @@ video {
2236
2251
  .theme-crazyDomains .md\:tw-justify-start {
2237
2252
  justify-content: flex-start;
2238
2253
  }
2254
+ .theme-crazyDomains .md\:tw-justify-end {
2255
+ justify-content: flex-end;
2256
+ }
2239
2257
  .theme-crazyDomains .md\:tw-justify-center {
2240
2258
  justify-content: center;
2241
2259
  }
@@ -2278,6 +2296,9 @@ video {
2278
2296
  padding-top: 0.5rem;
2279
2297
  padding-bottom: 0.5rem;
2280
2298
  }
2299
+ .theme-crazyDomains .md\:tw-pl-4 {
2300
+ padding-left: 1rem;
2301
+ }
2281
2302
  .theme-crazyDomains .md\:tw-pr-2 {
2282
2303
  padding-right: 0.5rem;
2283
2304
  }
@@ -679,6 +679,9 @@ video {
679
679
  .theme-designCom .tw-mb-1 {
680
680
  margin-bottom: 0.25rem;
681
681
  }
682
+ .theme-designCom .tw-mb-10 {
683
+ margin-bottom: 2.5rem;
684
+ }
682
685
  .theme-designCom .tw-mb-2 {
683
686
  margin-bottom: 0.5rem;
684
687
  }
@@ -1715,6 +1718,9 @@ video {
1715
1718
  .theme-designCom .tw-text-center {
1716
1719
  text-align: center;
1717
1720
  }
1721
+ .theme-designCom .tw-align-top {
1722
+ vertical-align: top;
1723
+ }
1718
1724
  .theme-designCom .tw-align-middle {
1719
1725
  vertical-align: middle;
1720
1726
  }
@@ -2209,12 +2215,21 @@ video {
2209
2215
  .theme-designCom .md\:tw-w-10 {
2210
2216
  width: 2.5rem;
2211
2217
  }
2218
+ .theme-designCom .md\:tw-w-24 {
2219
+ width: 6rem;
2220
+ }
2212
2221
  .theme-designCom .md\:tw-w-auto {
2213
2222
  width: auto;
2214
2223
  }
2215
2224
  .theme-designCom .md\:tw-w-full {
2216
2225
  width: 100%;
2217
2226
  }
2227
+ .theme-designCom .md\:tw-max-w-full {
2228
+ max-width: 100%;
2229
+ }
2230
+ .theme-designCom .md\:tw-grow {
2231
+ flex-grow: 1;
2232
+ }
2218
2233
  .theme-designCom .md\:tw-grid-cols-2 {
2219
2234
  grid-template-columns: repeat(2, minmax(0, 1fr));
2220
2235
  }
@@ -2236,6 +2251,9 @@ video {
2236
2251
  .theme-designCom .md\:tw-justify-start {
2237
2252
  justify-content: flex-start;
2238
2253
  }
2254
+ .theme-designCom .md\:tw-justify-end {
2255
+ justify-content: flex-end;
2256
+ }
2239
2257
  .theme-designCom .md\:tw-justify-center {
2240
2258
  justify-content: center;
2241
2259
  }
@@ -2278,6 +2296,9 @@ video {
2278
2296
  padding-top: 0.5rem;
2279
2297
  padding-bottom: 0.5rem;
2280
2298
  }
2299
+ .theme-designCom .md\:tw-pl-4 {
2300
+ padding-left: 1rem;
2301
+ }
2281
2302
  .theme-designCom .md\:tw-pr-2 {
2282
2303
  padding-right: 0.5rem;
2283
2304
  }
@@ -679,6 +679,9 @@ video {
679
679
  .theme-designCrowd .tw-mb-1 {
680
680
  margin-bottom: 0.25rem;
681
681
  }
682
+ .theme-designCrowd .tw-mb-10 {
683
+ margin-bottom: 2.5rem;
684
+ }
682
685
  .theme-designCrowd .tw-mb-2 {
683
686
  margin-bottom: 0.5rem;
684
687
  }
@@ -1715,6 +1718,9 @@ video {
1715
1718
  .theme-designCrowd .tw-text-center {
1716
1719
  text-align: center;
1717
1720
  }
1721
+ .theme-designCrowd .tw-align-top {
1722
+ vertical-align: top;
1723
+ }
1718
1724
  .theme-designCrowd .tw-align-middle {
1719
1725
  vertical-align: middle;
1720
1726
  }
@@ -2209,12 +2215,21 @@ video {
2209
2215
  .theme-designCrowd .md\:tw-w-10 {
2210
2216
  width: 2.5rem;
2211
2217
  }
2218
+ .theme-designCrowd .md\:tw-w-24 {
2219
+ width: 6rem;
2220
+ }
2212
2221
  .theme-designCrowd .md\:tw-w-auto {
2213
2222
  width: auto;
2214
2223
  }
2215
2224
  .theme-designCrowd .md\:tw-w-full {
2216
2225
  width: 100%;
2217
2226
  }
2227
+ .theme-designCrowd .md\:tw-max-w-full {
2228
+ max-width: 100%;
2229
+ }
2230
+ .theme-designCrowd .md\:tw-grow {
2231
+ flex-grow: 1;
2232
+ }
2218
2233
  .theme-designCrowd .md\:tw-grid-cols-2 {
2219
2234
  grid-template-columns: repeat(2, minmax(0, 1fr));
2220
2235
  }
@@ -2236,6 +2251,9 @@ video {
2236
2251
  .theme-designCrowd .md\:tw-justify-start {
2237
2252
  justify-content: flex-start;
2238
2253
  }
2254
+ .theme-designCrowd .md\:tw-justify-end {
2255
+ justify-content: flex-end;
2256
+ }
2239
2257
  .theme-designCrowd .md\:tw-justify-center {
2240
2258
  justify-content: center;
2241
2259
  }
@@ -2278,6 +2296,9 @@ video {
2278
2296
  padding-top: 0.5rem;
2279
2297
  padding-bottom: 0.5rem;
2280
2298
  }
2299
+ .theme-designCrowd .md\:tw-pl-4 {
2300
+ padding-left: 1rem;
2301
+ }
2281
2302
  .theme-designCrowd .md\:tw-pr-2 {
2282
2303
  padding-right: 0.5rem;
2283
2304
  }
@@ -0,0 +1,30 @@
1
+ import Card from './Card.vue';
2
+
3
+ export default {
4
+ title: 'Components/Card',
5
+ component: Card,
6
+ };
7
+
8
+ const data = {
9
+ components: {
10
+ Card,
11
+ },
12
+ };
13
+
14
+ export const Sample = () => {
15
+ return {
16
+ ...data,
17
+ template: `
18
+ <Card
19
+ :imgUrl="'https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/publish/dcom-free-url.svg'"
20
+ title="Purchase Domain"
21
+ description="Find the perfect domain name for your brand"
22
+ is-design-com="true"
23
+ >
24
+ <template #slug>
25
+ test
26
+ </template>
27
+ </Card>
28
+ `,
29
+ };
30
+ };
@@ -0,0 +1,81 @@
1
+ <template>
2
+ <div
3
+ class="tw-bg-white tw-border tw-border-grayscale-500 tw-rounded tw-p-4"
4
+ >
5
+ <div class="tw-flex tw-flex-col md:tw-flex-row tw-items-center">
6
+ <div
7
+ class="tw-flex tw-flex-col tw-mx-auto tw-max-w-1/3 tw-text-center tw-align-top tw-px-2"
8
+ >
9
+ <img
10
+ :src="imgUrl"
11
+ alt="icon"
12
+ class="md:tw-max-w-full"
13
+ />
14
+ </div>
15
+ <div class="tw-flex tw-flex-col tw-px-2 tw-w-full">
16
+ <div
17
+ class="tw-flex tw-flex-col md:tw-flex-row tw-text-center md:tw-text-left tw-items-center"
18
+ >
19
+ <div
20
+ class="tw-flex tw-flex-col tw-w-full md:tw-grow tw-text-center md:tw-text-left"
21
+ >
22
+ <div>
23
+ <h6
24
+ class="tw-font-bold"
25
+ :class="{ 'tw-text-grayscale-800': isDesignCom }"
26
+ >
27
+ {{ title }}
28
+ </h6>
29
+ <p class="tw-text-grayscale-600">
30
+ {{ description }}
31
+ </p>
32
+ <slot name="slug" />
33
+ </div>
34
+ </div>
35
+
36
+ <div class="tw-w-full md:tw-w-auto md:tw-justify-end md:tw-pl-4">
37
+ <button
38
+ class="tw-font-sans tw-border-2 tw-border-solid tw-font-bold tw-text-success-500 tw-uppercase tw-transition-colors tw-duration-300 tw-text-sm tw-py-3 tw-px-4 tw-w-full tw-rounded tw-cursor-pointer tw-border-success-500 tw-bg-white hover:tw-bg-success-100 tw-text-success-500 tw-w-full md:tw-w-24"
39
+ @click="onClick"
40
+ >
41
+ Search
42
+ </button>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </template>
49
+ <script>
50
+ import Icon from '../Icon/Icon.vue';
51
+
52
+ export default {
53
+ components: {
54
+ Icon,
55
+ },
56
+ props: {
57
+ title: {
58
+ type: String,
59
+ default: '',
60
+ },
61
+ description: {
62
+ type: String,
63
+ default: '',
64
+ },
65
+ imgUrl: {
66
+ type: Boolean,
67
+ default: true,
68
+ },
69
+ isDesignCom: {
70
+ type: Boolean,
71
+ default: false,
72
+ },
73
+ },
74
+ methods: {
75
+ onClick() {
76
+ this.$emit('on-show-domain-list-modal');
77
+ },
78
+ },
79
+ };
80
+ </script>
81
+
@@ -2,11 +2,10 @@
2
2
  <div
3
3
  v-show="visible"
4
4
  :aria-hidden="visible ? 'false' : 'true'"
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"
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"
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,
10
9
  }"
11
10
  @mousedown.self="close"
12
11
  >
@@ -24,7 +23,6 @@
24
23
  'tw-rounded-md': fullScreenBreakpoint !== 'sm',
25
24
  'modal-bg': !simple && !isImageMode && showModalBackgroundImage,
26
25
  'modal-image': isImageMode,
27
- 'tw-bg-transparent': transparentModal,
28
26
  },
29
27
  classes,
30
28
  ]"
@@ -146,16 +144,6 @@ export default {
146
144
  required: false,
147
145
  default: false,
148
146
  },
149
- darkOverlay: {
150
- type: Boolean,
151
- required: false,
152
- default: false,
153
- },
154
- transparentModal: {
155
- type: Boolean,
156
- required: false,
157
- default: false,
158
- },
159
147
  },
160
148
  computed: {
161
149
  isImageMode() {
@@ -54,7 +54,7 @@
54
54
  :prefix-text="`${brandPageBaseUrl}/`"
55
55
  :error="!!slugValidationError"
56
56
  :disabled="isPublishing || domainTypeValue === DOMAIN_TYPES.purchased"
57
- placeholder="your-brand-name"
57
+ :placeholder="your-brand-name"
58
58
  data-test-brand-page-slug-input
59
59
  :attrs="{ 'data-test-set-url-text-field': '' }"
60
60
  @input="onSlugChanged"