@designcrowd/fe-shared-lib 1.4.5-eng-3440 → 1.4.5

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.
Files changed (55) hide show
  1. package/dist/css/tailwind-brandCrowd.css +3 -6
  2. package/dist/css/tailwind-brandPage.css +3 -6
  3. package/dist/css/tailwind-crazyDomains.css +3 -6
  4. package/dist/css/tailwind-designCom.css +3 -6
  5. package/dist/css/tailwind-designCrowd.css +3 -6
  6. package/package.json +2 -1
  7. package/src/atoms/components/Checkbox/Checkbox.stories.js +1 -134
  8. package/src/atoms/components/Checkbox/Checkbox.vue +8 -2
  9. package/src/atoms/components/Dropdown/DropdownItem.vue +1 -1
  10. package/src/atoms/components/Icon/Icon.stories.js +0 -2
  11. package/src/atoms/components/Icon/Icon.vue +97 -102
  12. package/src/atoms/components/TextInput/TextInput.vue +1 -2
  13. package/src/atoms/components/Textarea/Textarea.vue +1 -4
  14. package/src/experiences/clients/brand-crowd-api.client.js +1 -12
  15. package/src/experiences/clients/brand-page-api.client.js +0 -15
  16. package/src/experiences/components/AuthFlow/AuthModal.vue +1 -1
  17. package/src/experiences/components/AuthFlow/ForgotPassword.vue +1 -1
  18. package/src/experiences/components/AuthFlow/ResetPassword.vue +1 -1
  19. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +1 -1
  20. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +1 -1
  21. package/src/experiences/components/AuthFlow/SubmissionButton.vue +1 -1
  22. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +0 -20
  23. package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +5 -7
  24. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +39 -77
  25. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +0 -45
  26. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +3 -3
  27. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +1 -2
  28. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +1 -2
  29. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-CA.json +1 -2
  30. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +1 -2
  31. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +1 -2
  32. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-BR.json +1 -2
  33. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +1 -2
  34. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -1
  35. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +0 -6
  36. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +3 -3
  37. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +1 -1
  38. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +1 -1
  39. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +1 -6
  40. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +0 -6
  41. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +1 -1
  42. package/src/atoms/components/Icon/icons/file.vue +0 -7
  43. package/src/atoms/components/Icon/icons/pen-tool.vue +0 -7
  44. package/src/atoms/components/SparkleIcon/SparkleIcon.stories.js +0 -182
  45. package/src/atoms/components/SparkleIcon/SparkleIcon.vue +0 -105
  46. package/src/atoms/components/SparkleIcon/assets/animations/state-01.svg +0 -5
  47. package/src/atoms/components/SparkleIcon/assets/animations/state-02.svg +0 -5
  48. package/src/atoms/components/SparkleIcon/assets/animations/state-03.svg +0 -5
  49. package/src/atoms/components/SparkleIcon/assets/animations/state-04.svg +0 -5
  50. package/src/atoms/components/SparkleIcon/assets/animations/state-05.svg +0 -5
  51. package/src/atoms/components/SparkleIcon/assets/animations/state-06.svg +0 -5
  52. package/src/atoms/components/SparkleIcon/assets/animations/state-07.svg +0 -5
  53. package/src/atoms/components/SparkleIcon/assets/animations/state-08.svg +0 -5
  54. package/src/atoms/components/SparkleIcon/assets/sparkle.svg +0 -3
  55. package/src/atoms/components/SparkleIcon/index.ts +0 -3
@@ -738,6 +738,9 @@ video {
738
738
  .tw-mt-0 {
739
739
  margin-top: 0px;
740
740
  }
741
+ .tw-mt-0\.5 {
742
+ margin-top: 0.125rem;
743
+ }
741
744
  .tw-mt-1 {
742
745
  margin-top: 0.25rem;
743
746
  }
@@ -750,9 +753,6 @@ video {
750
753
  .tw-mt-4 {
751
754
  margin-top: 1rem;
752
755
  }
753
- .tw-mt-6 {
754
- margin-top: 1.5rem;
755
- }
756
756
  .tw-mt-8 {
757
757
  margin-top: 2rem;
758
758
  }
@@ -926,9 +926,6 @@ video {
926
926
  .tw-flex-none {
927
927
  flex: none;
928
928
  }
929
- .tw-flex-shrink-0 {
930
- flex-shrink: 0;
931
- }
932
929
  .tw-grow {
933
930
  flex-grow: 1;
934
931
  }
@@ -738,6 +738,9 @@ video {
738
738
  .tw-mt-0 {
739
739
  margin-top: 0px;
740
740
  }
741
+ .tw-mt-0\.5 {
742
+ margin-top: 0.125rem;
743
+ }
741
744
  .tw-mt-1 {
742
745
  margin-top: 0.25rem;
743
746
  }
@@ -750,9 +753,6 @@ video {
750
753
  .tw-mt-4 {
751
754
  margin-top: 1rem;
752
755
  }
753
- .tw-mt-6 {
754
- margin-top: 1.5rem;
755
- }
756
756
  .tw-mt-8 {
757
757
  margin-top: 2rem;
758
758
  }
@@ -926,9 +926,6 @@ video {
926
926
  .tw-flex-none {
927
927
  flex: none;
928
928
  }
929
- .tw-flex-shrink-0 {
930
- flex-shrink: 0;
931
- }
932
929
  .tw-grow {
933
930
  flex-grow: 1;
934
931
  }
@@ -738,6 +738,9 @@ video {
738
738
  .tw-mt-0 {
739
739
  margin-top: 0px;
740
740
  }
741
+ .tw-mt-0\.5 {
742
+ margin-top: 0.125rem;
743
+ }
741
744
  .tw-mt-1 {
742
745
  margin-top: 0.25rem;
743
746
  }
@@ -750,9 +753,6 @@ video {
750
753
  .tw-mt-4 {
751
754
  margin-top: 1rem;
752
755
  }
753
- .tw-mt-6 {
754
- margin-top: 1.5rem;
755
- }
756
756
  .tw-mt-8 {
757
757
  margin-top: 2rem;
758
758
  }
@@ -926,9 +926,6 @@ video {
926
926
  .tw-flex-none {
927
927
  flex: none;
928
928
  }
929
- .tw-flex-shrink-0 {
930
- flex-shrink: 0;
931
- }
932
929
  .tw-grow {
933
930
  flex-grow: 1;
934
931
  }
@@ -738,6 +738,9 @@ video {
738
738
  .tw-mt-0 {
739
739
  margin-top: 0px;
740
740
  }
741
+ .tw-mt-0\.5 {
742
+ margin-top: 0.125rem;
743
+ }
741
744
  .tw-mt-1 {
742
745
  margin-top: 0.25rem;
743
746
  }
@@ -750,9 +753,6 @@ video {
750
753
  .tw-mt-4 {
751
754
  margin-top: 1rem;
752
755
  }
753
- .tw-mt-6 {
754
- margin-top: 1.5rem;
755
- }
756
756
  .tw-mt-8 {
757
757
  margin-top: 2rem;
758
758
  }
@@ -926,9 +926,6 @@ video {
926
926
  .tw-flex-none {
927
927
  flex: none;
928
928
  }
929
- .tw-flex-shrink-0 {
930
- flex-shrink: 0;
931
- }
932
929
  .tw-grow {
933
930
  flex-grow: 1;
934
931
  }
@@ -738,6 +738,9 @@ video {
738
738
  .tw-mt-0 {
739
739
  margin-top: 0px;
740
740
  }
741
+ .tw-mt-0\.5 {
742
+ margin-top: 0.125rem;
743
+ }
741
744
  .tw-mt-1 {
742
745
  margin-top: 0.25rem;
743
746
  }
@@ -750,9 +753,6 @@ video {
750
753
  .tw-mt-4 {
751
754
  margin-top: 1rem;
752
755
  }
753
- .tw-mt-6 {
754
- margin-top: 1.5rem;
755
- }
756
756
  .tw-mt-8 {
757
757
  margin-top: 2rem;
758
758
  }
@@ -926,9 +926,6 @@ video {
926
926
  .tw-flex-none {
927
927
  flex: none;
928
928
  }
929
- .tw-flex-shrink-0 {
930
- flex-shrink: 0;
931
- }
932
929
  .tw-grow {
933
930
  flex-grow: 1;
934
931
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.4.5-eng-3440",
3
+ "version": "1.4.5",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@nuxtjs/i18n": "9.5.4",
23
+ "@storybook/react": "^9.0.4",
23
24
  "autoprefixer": "10.4.17",
24
25
  "axios": "1.6.7",
25
26
  "click-outside-vue3": "4.0.1",
@@ -3,139 +3,6 @@ import Checkbox from './Checkbox.vue';
3
3
  export default {
4
4
  title: 'Components/Checkbox',
5
5
  component: Checkbox,
6
- argTypes: {
7
- modelValue: {
8
- control: 'boolean',
9
- description: 'The checked state of the checkbox',
10
- table: {
11
- type: { summary: 'boolean' },
12
- defaultValue: { summary: false },
13
- },
14
- },
15
- id: {
16
- control: 'text',
17
- description: 'Unique identifier for the checkbox',
18
- table: {
19
- type: { summary: 'string' },
20
- },
21
- },
22
- label: {
23
- control: 'text',
24
- description: 'Label text for the checkbox',
25
- table: {
26
- type: { summary: 'string' },
27
- defaultValue: { summary: 'undefined' },
28
- },
29
- },
30
- showLabelScreenReaderOnly: {
31
- control: 'boolean',
32
- description: 'Whether to show the label only to screen readers',
33
- table: {
34
- type: { summary: 'boolean' },
35
- defaultValue: { summary: false },
36
- },
37
- },
38
- inline: {
39
- control: 'boolean',
40
- description: 'Display checkbox and label inline',
41
- table: {
42
- type: { summary: 'boolean' },
43
- defaultValue: { summary: false },
44
- },
45
- },
46
- required: {
47
- control: 'boolean',
48
- description: 'Show required asterisk on label',
49
- table: {
50
- type: { summary: 'boolean' },
51
- defaultValue: { summary: false },
52
- },
53
- },
54
- disabled: {
55
- control: 'boolean',
56
- description: 'Disable the checkbox',
57
- table: {
58
- type: { summary: 'boolean' },
59
- defaultValue: { summary: false },
60
- },
61
- },
62
- color: {
63
- control: 'select',
64
- options: ['primary', 'success', 'error', 'info', 'warning'],
65
- description: 'Color scheme for the checkbox',
66
- table: {
67
- type: { summary: 'string' },
68
- defaultValue: { summary: 'success' },
69
- },
70
- },
71
- size: {
72
- control: 'select',
73
- options: ['sm', 'md'],
74
- description: 'Size of the checkbox',
75
- table: {
76
- type: { summary: 'string' },
77
- defaultValue: { summary: 'md' },
78
- },
79
- },
80
- showBorder: {
81
- control: 'boolean',
82
- description: 'Show border around the checkbox',
83
- table: {
84
- type: { summary: 'boolean' },
85
- defaultValue: { summary: false },
86
- },
87
- },
88
- classes: {
89
- control: 'text',
90
- description: 'Additional CSS classes',
91
- table: {
92
- type: { summary: 'string | object' },
93
- defaultValue: { summary: '""' },
94
- },
95
- },
96
- },
97
- };
98
-
99
- // Interactive story with all controls
100
- export const Interactive = (args) => ({
101
- components: { Checkbox },
102
- setup() {
103
- return { args };
104
- },
105
- data() {
106
- return {
107
- checked: args.modelValue,
108
- };
109
- },
110
- template: `
111
- <Checkbox
112
- v-model="checked"
113
- :id="args.id"
114
- :label="args.label"
115
- :showLabelScreenReaderOnly="args.showLabelScreenReaderOnly"
116
- :inline="args.inline"
117
- :required="args.required"
118
- :disabled="args.disabled"
119
- :color="args.color"
120
- :size="args.size"
121
- :showBorder="args.showBorder"
122
- :classes="args.classes"
123
- />
124
- `,
125
- });
126
-
127
- Interactive.args = {
128
- modelValue: true,
129
- id: 'interactive-checkbox',
130
- label: 'Do you love checkboxes?',
131
- showLabelScreenReaderOnly: false,
132
- inline: false,
133
- required: false,
134
- disabled: false,
135
- color: 'success',
136
- size: 'md',
137
- showBorder: true,
138
- classes: '',
139
6
  };
140
7
 
141
8
  export const Sample = () => {
@@ -337,4 +204,4 @@ export const NoBorder = () => {
337
204
  </div>
338
205
  `,
339
206
  };
340
- };
207
+ };
@@ -48,7 +48,13 @@
48
48
  }"
49
49
  :classes="classes"
50
50
  >
51
- <Icon v-show="modelValue" name="check" color="white" :size="iconSize" />
51
+ <Icon
52
+ v-show="modelValue"
53
+ :class="{ 'tw-mt-1': size === 'md', 'tw-mt-0.5': size === 'sm' }"
54
+ name="check"
55
+ color="white"
56
+ :size="iconSize"
57
+ />
52
58
  </div>
53
59
  </div>
54
60
  </label>
@@ -81,4 +87,4 @@ export default {
81
87
  },
82
88
  },
83
89
  };
84
- </script>
90
+ </script>
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <div
4
4
  class="tw-flex tw-items-center tw-px-2 tw-py-2 tw-cursor-pointer"
5
- @click.stop="onClick"
5
+ @click="onClick"
6
6
  :class="{
7
7
  'dropdown-item-hover': backgroundHover,
8
8
  }"
@@ -84,7 +84,6 @@ export const IconSample = () => {
84
84
  { name: 'eye-crossed' },
85
85
  { name: 'eye-open' },
86
86
  { name: 'fees' },
87
- { name: 'file' },
88
87
  { name: 'filter' },
89
88
  { name: 'filter-crazy-domains' },
90
89
  { name: 'flag' },
@@ -190,7 +189,6 @@ export const IconSample = () => {
190
189
  { name: 'payments-featured' },
191
190
  { name: 'payments-textonly' },
192
191
  { name: 'payments-thumbnail' },
193
- { name: 'pen-tool' },
194
192
  { name: 'phone' },
195
193
  { name: 'plus' },
196
194
  { name: 'plus-circle' },