@designcrowd/fe-shared-lib 1.4.8-promocardv0 → 1.4.8-promocardv1

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.
@@ -2,6 +2,7 @@ import { mergeConfig } from 'vite';
2
2
 
3
3
  module.exports = {
4
4
  stories: ['../src/**/components/**/*.stories.@(js|jsx|ts|tsx)'],
5
+
5
6
  addons: [
6
7
  '@storybook/addon-a11y',
7
8
  '@storybook/addon-links',
@@ -12,14 +13,14 @@ module.exports = {
12
13
  },
13
14
  },
14
15
  ],
16
+
15
17
  framework: {
16
18
  name: '@storybook/vue3-vite',
17
19
  options: {},
18
20
  },
21
+
19
22
  staticDirs: ['../public'],
20
- docs: {
21
- autodocs: true,
22
- },
23
+
23
24
  async viteFinal(config, options) {
24
25
  const configExtension = {
25
26
  optimizeDeps: {
@@ -32,5 +33,5 @@ module.exports = {
32
33
  },
33
34
  };
34
35
  return mergeConfig(config, configExtension);
35
- },
36
+ }
36
37
  };
@@ -51,3 +51,4 @@ export const decorators = [
51
51
  ];
52
52
 
53
53
  export const loaders = [globalLocaleLoader];
54
+ export const tags = ['autodocs'];
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.4.8-promocardv0",
3
+ "version": "1.4.8-promocardv1",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
7
- "storybook": "export NODE_ENV=development && npm run storybook:css && npm run storybook:themes && storybook dev -p 6006 public",
7
+ "storybook": "export NODE_ENV=development && npm run storybook:css && npm run storybook:themes && storybook dev",
8
8
  "build:css": "node ./tailwind.build.js",
9
9
  "build:storybook": "mkdir -p public && mkdir -p public/css && npm run storybook:css && storybook build -c .storybook -o .storybook-static && cp -R ./public/css .storybook-static/",
10
10
  "bundle-translation": "node ./src/bundleTranslation.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@nuxtjs/i18n": "9.5.4",
23
- "@storybook/react": "^9.0.4",
23
+ "@storybook/react": "^10.0.1",
24
24
  "autoprefixer": "10.4.17",
25
25
  "axios": "1.6.7",
26
26
  "click-outside-vue3": "4.0.1",
@@ -44,11 +44,10 @@
44
44
  "yargs": "17.7.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@storybook/addon-a11y": "9.0.4",
48
- "@storybook/addon-links": "9.0.4",
49
- "@storybook/addon-themes": "9.0.4",
50
- "@storybook/vue3": "9.0.4",
51
- "@storybook/vue3-vite": "9.0.4",
47
+ "@storybook/addon-a11y": "10.0.1",
48
+ "@storybook/addon-links": "10.0.1",
49
+ "@storybook/addon-themes": "10.0.1",
50
+ "@storybook/vue3-vite": "10.0.1",
52
51
  "@vitejs/plugin-vue": "5.2.4",
53
52
  "@vue/cli-plugin-eslint": "5.0.8",
54
53
  "@vue/cli-service": "5.0.8",
@@ -61,7 +60,7 @@
61
60
  "cssnano": "6.0.3",
62
61
  "eslint": "8.56.0",
63
62
  "eslint-plugin-prettier": "5.1.3",
64
- "eslint-plugin-storybook": "0.8.0",
63
+ "eslint-plugin-storybook": "10.0.1",
65
64
  "eslint-plugin-vue": "9.21.1",
66
65
  "husky": "9.0.10",
67
66
  "lint-staged": "15.2.1",
@@ -72,7 +71,7 @@
72
71
  "postcss-import": "16.0.0",
73
72
  "postcss-nested": "6.0.1",
74
73
  "prettier": "3.2.4",
75
- "storybook": "9.0.4",
74
+ "storybook": "10.0.1",
76
75
  "stylelint": "16.2.1",
77
76
  "stylelint-config-standard": "36.0.0",
78
77
  "tailwindcss": "3.4.1",
@@ -113,4 +112,4 @@
113
112
  "overrides": {
114
113
  "storybook": "$storybook"
115
114
  }
116
- }
115
+ }
@@ -684,6 +684,9 @@ video {
684
684
  .theme-brandCrowd .tw-mb-0 {
685
685
  margin-bottom: 0px;
686
686
  }
687
+ .theme-brandCrowd .tw-mb-0\.5 {
688
+ margin-bottom: 0.125rem;
689
+ }
687
690
  .theme-brandCrowd .tw-mb-1 {
688
691
  margin-bottom: 0.25rem;
689
692
  }
@@ -1668,10 +1671,6 @@ video {
1668
1671
  padding-left: 0.125rem;
1669
1672
  padding-right: 0.125rem;
1670
1673
  }
1671
- .theme-brandCrowd .tw-px-10 {
1672
- padding-left: 2.5rem;
1673
- padding-right: 2.5rem;
1674
- }
1675
1674
  .theme-brandCrowd .tw-px-2 {
1676
1675
  padding-left: 0.5rem;
1677
1676
  padding-right: 0.5rem;
@@ -2429,18 +2428,12 @@ video {
2429
2428
  .theme-brandCrowd .lg\:tw-mr-8 {
2430
2429
  margin-right: 2rem;
2431
2430
  }
2432
- .theme-brandCrowd .lg\:tw-mt-0 {
2433
- margin-top: 0px;
2434
- }
2435
2431
  .theme-brandCrowd .lg\:tw-flex {
2436
2432
  display: flex;
2437
2433
  }
2438
2434
  .theme-brandCrowd .lg\:tw-h-auto {
2439
2435
  height: auto;
2440
2436
  }
2441
- .theme-brandCrowd .lg\:tw-w-auto {
2442
- width: auto;
2443
- }
2444
2437
  .theme-brandCrowd .lg\:tw-max-w-xl {
2445
2438
  max-width: 36rem;
2446
2439
  }
@@ -684,6 +684,9 @@ video {
684
684
  .theme-brandPage .tw-mb-0 {
685
685
  margin-bottom: 0px;
686
686
  }
687
+ .theme-brandPage .tw-mb-0\.5 {
688
+ margin-bottom: 0.125rem;
689
+ }
687
690
  .theme-brandPage .tw-mb-1 {
688
691
  margin-bottom: 0.25rem;
689
692
  }
@@ -1516,10 +1519,6 @@ video {
1516
1519
  padding-left: 0.125rem;
1517
1520
  padding-right: 0.125rem;
1518
1521
  }
1519
- .theme-brandPage .tw-px-10 {
1520
- padding-left: 2.5rem;
1521
- padding-right: 2.5rem;
1522
- }
1523
1522
  .theme-brandPage .tw-px-2 {
1524
1523
  padding-left: 0.5rem;
1525
1524
  padding-right: 0.5rem;
@@ -2113,18 +2112,12 @@ video {
2113
2112
  .theme-brandPage .lg\:tw-mr-8 {
2114
2113
  margin-right: 2rem;
2115
2114
  }
2116
- .theme-brandPage .lg\:tw-mt-0 {
2117
- margin-top: 0px;
2118
- }
2119
2115
  .theme-brandPage .lg\:tw-flex {
2120
2116
  display: flex;
2121
2117
  }
2122
2118
  .theme-brandPage .lg\:tw-h-auto {
2123
2119
  height: auto;
2124
2120
  }
2125
- .theme-brandPage .lg\:tw-w-auto {
2126
- width: auto;
2127
- }
2128
2121
  .theme-brandPage .lg\:tw-max-w-xl {
2129
2122
  max-width: 36rem;
2130
2123
  }
@@ -684,6 +684,9 @@ video {
684
684
  .theme-crazyDomains .tw-mb-0 {
685
685
  margin-bottom: 0px;
686
686
  }
687
+ .theme-crazyDomains .tw-mb-0\.5 {
688
+ margin-bottom: 0.125rem;
689
+ }
687
690
  .theme-crazyDomains .tw-mb-1 {
688
691
  margin-bottom: 0.25rem;
689
692
  }
@@ -1668,10 +1671,6 @@ video {
1668
1671
  padding-left: 0.125rem;
1669
1672
  padding-right: 0.125rem;
1670
1673
  }
1671
- .theme-crazyDomains .tw-px-10 {
1672
- padding-left: 2.5rem;
1673
- padding-right: 2.5rem;
1674
- }
1675
1674
  .theme-crazyDomains .tw-px-2 {
1676
1675
  padding-left: 0.5rem;
1677
1676
  padding-right: 0.5rem;
@@ -2429,18 +2428,12 @@ video {
2429
2428
  .theme-crazyDomains .lg\:tw-mr-8 {
2430
2429
  margin-right: 2rem;
2431
2430
  }
2432
- .theme-crazyDomains .lg\:tw-mt-0 {
2433
- margin-top: 0px;
2434
- }
2435
2431
  .theme-crazyDomains .lg\:tw-flex {
2436
2432
  display: flex;
2437
2433
  }
2438
2434
  .theme-crazyDomains .lg\:tw-h-auto {
2439
2435
  height: auto;
2440
2436
  }
2441
- .theme-crazyDomains .lg\:tw-w-auto {
2442
- width: auto;
2443
- }
2444
2437
  .theme-crazyDomains .lg\:tw-max-w-xl {
2445
2438
  max-width: 36rem;
2446
2439
  }
@@ -684,6 +684,9 @@ video {
684
684
  .theme-designCom .tw-mb-0 {
685
685
  margin-bottom: 0px;
686
686
  }
687
+ .theme-designCom .tw-mb-0\.5 {
688
+ margin-bottom: 0.125rem;
689
+ }
687
690
  .theme-designCom .tw-mb-1 {
688
691
  margin-bottom: 0.25rem;
689
692
  }
@@ -1668,10 +1671,6 @@ video {
1668
1671
  padding-left: 0.125rem;
1669
1672
  padding-right: 0.125rem;
1670
1673
  }
1671
- .theme-designCom .tw-px-10 {
1672
- padding-left: 2.5rem;
1673
- padding-right: 2.5rem;
1674
- }
1675
1674
  .theme-designCom .tw-px-2 {
1676
1675
  padding-left: 0.5rem;
1677
1676
  padding-right: 0.5rem;
@@ -2429,18 +2428,12 @@ video {
2429
2428
  .theme-designCom .lg\:tw-mr-8 {
2430
2429
  margin-right: 2rem;
2431
2430
  }
2432
- .theme-designCom .lg\:tw-mt-0 {
2433
- margin-top: 0px;
2434
- }
2435
2431
  .theme-designCom .lg\:tw-flex {
2436
2432
  display: flex;
2437
2433
  }
2438
2434
  .theme-designCom .lg\:tw-h-auto {
2439
2435
  height: auto;
2440
2436
  }
2441
- .theme-designCom .lg\:tw-w-auto {
2442
- width: auto;
2443
- }
2444
2437
  .theme-designCom .lg\:tw-max-w-xl {
2445
2438
  max-width: 36rem;
2446
2439
  }
@@ -684,6 +684,9 @@ video {
684
684
  .theme-designCrowd .tw-mb-0 {
685
685
  margin-bottom: 0px;
686
686
  }
687
+ .theme-designCrowd .tw-mb-0\.5 {
688
+ margin-bottom: 0.125rem;
689
+ }
687
690
  .theme-designCrowd .tw-mb-1 {
688
691
  margin-bottom: 0.25rem;
689
692
  }
@@ -1668,10 +1671,6 @@ video {
1668
1671
  padding-left: 0.125rem;
1669
1672
  padding-right: 0.125rem;
1670
1673
  }
1671
- .theme-designCrowd .tw-px-10 {
1672
- padding-left: 2.5rem;
1673
- padding-right: 2.5rem;
1674
- }
1675
1674
  .theme-designCrowd .tw-px-2 {
1676
1675
  padding-left: 0.5rem;
1677
1676
  padding-right: 0.5rem;
@@ -2429,18 +2428,12 @@ video {
2429
2428
  .theme-designCrowd .lg\:tw-mr-8 {
2430
2429
  margin-right: 2rem;
2431
2430
  }
2432
- .theme-designCrowd .lg\:tw-mt-0 {
2433
- margin-top: 0px;
2434
- }
2435
2431
  .theme-designCrowd .lg\:tw-flex {
2436
2432
  display: flex;
2437
2433
  }
2438
2434
  .theme-designCrowd .lg\:tw-h-auto {
2439
2435
  height: auto;
2440
2436
  }
2441
- .theme-designCrowd .lg\:tw-w-auto {
2442
- width: auto;
2443
- }
2444
2437
  .theme-designCrowd .lg\:tw-max-w-xl {
2445
2438
  max-width: 36rem;
2446
2439
  }
@@ -30,7 +30,7 @@ export const Standard = {
30
30
  args: {
31
31
  title: 'Special Offer',
32
32
  description: 'Get 20% off your next purchase. Limited time offer!',
33
- imageUrl: 'https://bcassetcdn.com/assets/images/promo/brandpage-design-support.png',
33
+ imageUrl: 'https://bcassetcdn.com/assets/images/promo/legalzoom-symbol.svg',
34
34
  altText: 'Promotional image',
35
35
  buttonLabel: 'Learn More',
36
36
  horizontalLayout: false,
@@ -7,7 +7,7 @@
7
7
  'tw-px-4': !shouldShowImageOnTop,
8
8
  }"
9
9
  >
10
- <img :src="imageUrl" :alt="altText" />
10
+ <img class="tw-w-full" :src="imageUrl" :alt="altText" />
11
11
  </div>
12
12
  <div
13
13
  class="tw-flex tw-bg-white tw-w-full tw-p-4 tw-grow dcom-rounded-tr dcom-rounded-br tw-flex-col tw-justify-between"
@@ -15,7 +15,7 @@
15
15
  'lg:tw-flex-row lg:tw-items-center lg:tw-justify-normal': horizontalLayout,
16
16
  }"
17
17
  >
18
- <div class="tw-text-left tw-overflow-hidden tw-text-ellipsis" :class="lineClampStyle">
18
+ <div class="tw-text-left tw-overflow-hidden tw-text-ellipsis tw-text-base" :class="lineClampStyle">
19
19
  <div class="tw-font-bold tw-text-black tw-mb-0.5">
20
20
  {{ title }}
21
21
  </div>