@designcrowd/fe-shared-lib 1.5.31 → 1.5.32-ast-website-rename
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/dist/css/tailwind-brandPage.css +2 -318
- package/dist/css/tailwind-crazyDomains.css +100 -100
- package/dist/css/tailwind-designCom.css +110 -110
- package/dist/css/tailwind-designCrowd.css +78 -78
- package/index.js +1 -1
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +17 -4
- package/public/css/tailwind-brandPage.css +16 -3
- package/public/css/tailwind-crazyDomains.css +17 -4
- package/public/css/tailwind-designCom.css +17 -4
- package/public/css/tailwind-designCrowd.css +17 -4
- package/src/atoms/components/BrandNameEditor/BrandNameEditor.stories.js +75 -0
- package/src/atoms/components/BrandNameEditor/BrandNameEditor.vue +143 -0
- package/src/atoms/components/Icon/Icon.stories.js +1 -0
- package/src/atoms/components/Icon/Icon.vue +2 -0
- package/src/atoms/components/Icon/icons/question-alt.vue +20 -0
- package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +0 -5
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +1 -8
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +0 -17
- package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +1 -10
- package/.storybook-static/favicon.svg +0 -1
- package/.storybook-static/index.html +0 -156
- package/.storybook-static/index.json +0 -1
- package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +0 -5
- package/.storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
- package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -188
- package/.storybook-static/sb-addons/themes-3/manager-bundle.js +0 -3
- package/.storybook-static/sb-common-assets/favicon.svg +0 -1
- package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/sb-manager/globals-module-info.js +0 -797
- package/.storybook-static/sb-manager/globals-runtime.js +0 -72062
- package/.storybook-static/sb-manager/globals.js +0 -34
- package/.storybook-static/sb-manager/runtime.js +0 -13002
- package/src/atoms/components/AiPoweredLoader/AiPoweredLoader.vue +0 -146
|
@@ -744,6 +744,9 @@ video {
|
|
|
744
744
|
.theme-designCom .tw-mt-0 {
|
|
745
745
|
margin-top: 0px;
|
|
746
746
|
}
|
|
747
|
+
.theme-designCom .tw-mt-0\.5 {
|
|
748
|
+
margin-top: 0.125rem;
|
|
749
|
+
}
|
|
747
750
|
.theme-designCom .tw-mt-1 {
|
|
748
751
|
margin-top: 0.25rem;
|
|
749
752
|
}
|
|
@@ -980,6 +983,9 @@ video {
|
|
|
980
983
|
.theme-designCom .tw-flex-shrink-0 {
|
|
981
984
|
flex-shrink: 0;
|
|
982
985
|
}
|
|
986
|
+
.theme-designCom .tw-shrink-0 {
|
|
987
|
+
flex-shrink: 0;
|
|
988
|
+
}
|
|
983
989
|
.theme-designCom .tw-grow {
|
|
984
990
|
flex-grow: 1;
|
|
985
991
|
}
|
|
@@ -1210,6 +1216,9 @@ video {
|
|
|
1210
1216
|
.theme-designCom .tw-rounded-full {
|
|
1211
1217
|
border-radius: 9999px;
|
|
1212
1218
|
}
|
|
1219
|
+
.theme-designCom .tw-rounded-lg {
|
|
1220
|
+
border-radius: 0.75rem;
|
|
1221
|
+
}
|
|
1213
1222
|
.theme-designCom .tw-rounded-md {
|
|
1214
1223
|
border-radius: 0.375rem;
|
|
1215
1224
|
}
|
|
@@ -2062,6 +2071,10 @@ video {
|
|
|
2062
2071
|
--tw-border-opacity: 1;
|
|
2063
2072
|
border-color: rgb(227 227 227 / var(--tw-border-opacity));
|
|
2064
2073
|
}
|
|
2074
|
+
.theme-designCom .hover\:tw-border-grayscale-500:hover {
|
|
2075
|
+
--tw-border-opacity: 1;
|
|
2076
|
+
border-color: rgb(209 209 209 / var(--tw-border-opacity));
|
|
2077
|
+
}
|
|
2065
2078
|
.theme-designCom .hover\:tw-border-info-600:hover {
|
|
2066
2079
|
--tw-border-opacity: 1;
|
|
2067
2080
|
border-color: rgb(50 71 197 / var(--tw-border-opacity));
|
|
@@ -2098,6 +2111,10 @@ video {
|
|
|
2098
2111
|
--tw-bg-opacity: 1;
|
|
2099
2112
|
background-color: rgb(227 227 227 / var(--tw-bg-opacity));
|
|
2100
2113
|
}
|
|
2114
|
+
.theme-designCom .hover\:tw-bg-grayscale-500:hover {
|
|
2115
|
+
--tw-bg-opacity: 1;
|
|
2116
|
+
background-color: rgb(209 209 209 / var(--tw-bg-opacity));
|
|
2117
|
+
}
|
|
2101
2118
|
.theme-designCom .hover\:tw-bg-info-100:hover {
|
|
2102
2119
|
--tw-bg-opacity: 1;
|
|
2103
2120
|
background-color: rgb(236 238 254 / var(--tw-bg-opacity));
|
|
@@ -2150,10 +2167,6 @@ video {
|
|
|
2150
2167
|
--tw-bg-opacity: 1;
|
|
2151
2168
|
background-color: rgb(182 128 6 / var(--tw-bg-opacity));
|
|
2152
2169
|
}
|
|
2153
|
-
.theme-designCom .hover\:tw-text-grayscale-800:hover {
|
|
2154
|
-
--tw-text-opacity: 1;
|
|
2155
|
-
color: rgb(23 23 23 / var(--tw-text-opacity));
|
|
2156
|
-
}
|
|
2157
2170
|
.theme-designCom .hover\:tw-text-primary-600:hover {
|
|
2158
2171
|
--tw-text-opacity: 1;
|
|
2159
2172
|
color: rgb(50 71 197 / var(--tw-text-opacity));
|
|
@@ -744,6 +744,9 @@ video {
|
|
|
744
744
|
.theme-designCrowd .tw-mt-0 {
|
|
745
745
|
margin-top: 0px;
|
|
746
746
|
}
|
|
747
|
+
.theme-designCrowd .tw-mt-0\.5 {
|
|
748
|
+
margin-top: 0.125rem;
|
|
749
|
+
}
|
|
747
750
|
.theme-designCrowd .tw-mt-1 {
|
|
748
751
|
margin-top: 0.25rem;
|
|
749
752
|
}
|
|
@@ -980,6 +983,9 @@ video {
|
|
|
980
983
|
.theme-designCrowd .tw-flex-shrink-0 {
|
|
981
984
|
flex-shrink: 0;
|
|
982
985
|
}
|
|
986
|
+
.theme-designCrowd .tw-shrink-0 {
|
|
987
|
+
flex-shrink: 0;
|
|
988
|
+
}
|
|
983
989
|
.theme-designCrowd .tw-grow {
|
|
984
990
|
flex-grow: 1;
|
|
985
991
|
}
|
|
@@ -1210,6 +1216,9 @@ video {
|
|
|
1210
1216
|
.theme-designCrowd .tw-rounded-full {
|
|
1211
1217
|
border-radius: 9999px;
|
|
1212
1218
|
}
|
|
1219
|
+
.theme-designCrowd .tw-rounded-lg {
|
|
1220
|
+
border-radius: 0.5rem;
|
|
1221
|
+
}
|
|
1213
1222
|
.theme-designCrowd .tw-rounded-md {
|
|
1214
1223
|
border-radius: 0.375rem;
|
|
1215
1224
|
}
|
|
@@ -2062,6 +2071,10 @@ video {
|
|
|
2062
2071
|
--tw-border-opacity: 1;
|
|
2063
2072
|
border-color: rgb(230 230 230 / var(--tw-border-opacity));
|
|
2064
2073
|
}
|
|
2074
|
+
.theme-designCrowd .hover\:tw-border-grayscale-500:hover {
|
|
2075
|
+
--tw-border-opacity: 1;
|
|
2076
|
+
border-color: rgb(204 204 204 / var(--tw-border-opacity));
|
|
2077
|
+
}
|
|
2065
2078
|
.theme-designCrowd .hover\:tw-border-info-600:hover {
|
|
2066
2079
|
--tw-border-opacity: 1;
|
|
2067
2080
|
border-color: rgb(14 121 188 / var(--tw-border-opacity));
|
|
@@ -2098,6 +2111,10 @@ video {
|
|
|
2098
2111
|
--tw-bg-opacity: 1;
|
|
2099
2112
|
background-color: rgb(230 230 230 / var(--tw-bg-opacity));
|
|
2100
2113
|
}
|
|
2114
|
+
.theme-designCrowd .hover\:tw-bg-grayscale-500:hover {
|
|
2115
|
+
--tw-bg-opacity: 1;
|
|
2116
|
+
background-color: rgb(204 204 204 / var(--tw-bg-opacity));
|
|
2117
|
+
}
|
|
2101
2118
|
.theme-designCrowd .hover\:tw-bg-info-100:hover {
|
|
2102
2119
|
--tw-bg-opacity: 1;
|
|
2103
2120
|
background-color: rgb(207 234 251 / var(--tw-bg-opacity));
|
|
@@ -2150,10 +2167,6 @@ video {
|
|
|
2150
2167
|
--tw-bg-opacity: 1;
|
|
2151
2168
|
background-color: rgb(194 140 34 / var(--tw-bg-opacity));
|
|
2152
2169
|
}
|
|
2153
|
-
.theme-designCrowd .hover\:tw-text-grayscale-800:hover {
|
|
2154
|
-
--tw-text-opacity: 1;
|
|
2155
|
-
color: rgb(39 52 56 / var(--tw-text-opacity));
|
|
2156
|
-
}
|
|
2157
2170
|
.theme-designCrowd .hover\:tw-text-primary-600:hover {
|
|
2158
2171
|
--tw-text-opacity: 1;
|
|
2159
2172
|
color: rgb(14 121 188 / var(--tw-text-opacity));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import BrandNameEditor from './BrandNameEditor.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Brand Name Editor',
|
|
5
|
+
component: BrandNameEditor,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const data = {
|
|
9
|
+
components: {
|
|
10
|
+
BrandNameEditor,
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
value: 'My Website',
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const Default = () => {
|
|
20
|
+
return {
|
|
21
|
+
...data,
|
|
22
|
+
template: `
|
|
23
|
+
<div class="tw-bg-gray-800 tw-p-4">
|
|
24
|
+
<BrandNameEditor v-model="value" />
|
|
25
|
+
</div>
|
|
26
|
+
`,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const DarkMode = () => {
|
|
31
|
+
return {
|
|
32
|
+
...data,
|
|
33
|
+
template: `
|
|
34
|
+
<div class="tw-bg-gray-800 tw-p-4">
|
|
35
|
+
<BrandNameEditor v-model="value" :dark-mode="true" />
|
|
36
|
+
</div>
|
|
37
|
+
`,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const WithPlaceholder = () => {
|
|
42
|
+
return {
|
|
43
|
+
components: {
|
|
44
|
+
BrandNameEditor,
|
|
45
|
+
},
|
|
46
|
+
data() {
|
|
47
|
+
return {
|
|
48
|
+
value: '',
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
template: `
|
|
52
|
+
<div class="tw-bg-gray-800 tw-p-4">
|
|
53
|
+
<BrandNameEditor v-model="value" :dark-mode="true" placeholder="Enter website name..." />
|
|
54
|
+
</div>
|
|
55
|
+
`,
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const Empty = () => {
|
|
60
|
+
return {
|
|
61
|
+
components: {
|
|
62
|
+
BrandNameEditor,
|
|
63
|
+
},
|
|
64
|
+
data() {
|
|
65
|
+
return {
|
|
66
|
+
value: '',
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
template: `
|
|
70
|
+
<div class="tw-bg-gray-800 tw-p-4">
|
|
71
|
+
<BrandNameEditor v-model="value" />
|
|
72
|
+
</div>
|
|
73
|
+
`,
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
data-component="brand-name-editor"
|
|
4
|
+
class="tw-relative tw-flex tw-gap-2 tw-flex-grow tw-items-center"
|
|
5
|
+
:class="{
|
|
6
|
+
'tw-text-white': darkMode,
|
|
7
|
+
'tw-text-black': !darkMode,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<button
|
|
11
|
+
v-if="displayMode"
|
|
12
|
+
class="dynamic-width-input tw-truncate tw-border-transparent tw-bg-transparent tw-px-2 tw-font-bold"
|
|
13
|
+
@click="onEditClick"
|
|
14
|
+
>
|
|
15
|
+
{{ modelValue?.trim() || placeholder }}
|
|
16
|
+
</button>
|
|
17
|
+
<input
|
|
18
|
+
v-if="!displayMode"
|
|
19
|
+
ref="brandNameInput"
|
|
20
|
+
:value="modelValue"
|
|
21
|
+
type="text"
|
|
22
|
+
maxlength="256"
|
|
23
|
+
class="dynamic-width-input tw-px-2 tw-bg-transparent"
|
|
24
|
+
:class="{
|
|
25
|
+
'focus:tw-border-white focus:tw-shadow-md': darkMode,
|
|
26
|
+
}"
|
|
27
|
+
:placeholder="placeholder"
|
|
28
|
+
@input="onInput"
|
|
29
|
+
@blur="save"
|
|
30
|
+
@focus="focus"
|
|
31
|
+
@keyup.enter="($event.target as HTMLInputElement).blur()"
|
|
32
|
+
@keyup.esc="revert"
|
|
33
|
+
/>
|
|
34
|
+
<span
|
|
35
|
+
ref="textWidthSpan"
|
|
36
|
+
class="tw-absolute tw-invisible tw-max-w-full -tw-z-50 tw-top-4 tw-left-4 tw-whitespace-nowrap tw-pointer-events-none dynamic-width-input"
|
|
37
|
+
>
|
|
38
|
+
{{ modelValue.replace(/ /g, ' ') }}
|
|
39
|
+
</span>
|
|
40
|
+
<Button
|
|
41
|
+
icon="Edit"
|
|
42
|
+
variant="no-border"
|
|
43
|
+
:white="darkMode"
|
|
44
|
+
icon-size="sm"
|
|
45
|
+
@on-click="onPencilIconClick"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<script setup lang="ts">
|
|
51
|
+
import { ref, watch, nextTick, onMounted } from 'vue';
|
|
52
|
+
import Button from '../Button/Button.vue';
|
|
53
|
+
|
|
54
|
+
const props = withDefaults(
|
|
55
|
+
defineProps<{
|
|
56
|
+
modelValue: string;
|
|
57
|
+
darkMode?: boolean;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
}>(),
|
|
60
|
+
{
|
|
61
|
+
darkMode: false,
|
|
62
|
+
placeholder: '',
|
|
63
|
+
},
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
const emit = defineEmits<{
|
|
67
|
+
'update:model-value': [value: string];
|
|
68
|
+
save: [];
|
|
69
|
+
}>();
|
|
70
|
+
|
|
71
|
+
const brandNameInput = ref<HTMLInputElement | null>(null);
|
|
72
|
+
const textWidthSpan = ref<HTMLSpanElement | null>(null);
|
|
73
|
+
const displayMode = ref(true);
|
|
74
|
+
const revertValue = ref(props.modelValue);
|
|
75
|
+
const inputOffsetPx = 22;
|
|
76
|
+
|
|
77
|
+
function resizeInput() {
|
|
78
|
+
nextTick(() => {
|
|
79
|
+
if (props.modelValue && brandNameInput.value && textWidthSpan.value) {
|
|
80
|
+
brandNameInput.value.style.width = `${textWidthSpan.value.offsetWidth + inputOffsetPx}px`;
|
|
81
|
+
} else if (brandNameInput.value) {
|
|
82
|
+
brandNameInput.value.style.width = 'auto';
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
watch(() => displayMode.value, resizeInput);
|
|
88
|
+
watch(() => props.modelValue, resizeInput);
|
|
89
|
+
|
|
90
|
+
onMounted(() => {
|
|
91
|
+
nextTick(() => {
|
|
92
|
+
revertValue.value = props.modelValue;
|
|
93
|
+
resizeInput();
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
function focus() {
|
|
98
|
+
displayMode.value = false;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function save() {
|
|
102
|
+
displayMode.value = true;
|
|
103
|
+
if (
|
|
104
|
+
props.modelValue.trim() === '' ||
|
|
105
|
+
props.modelValue !== revertValue.value
|
|
106
|
+
) {
|
|
107
|
+
emit('save');
|
|
108
|
+
revertValue.value = props.modelValue;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function revert() {
|
|
113
|
+
emit('update:model-value', revertValue.value);
|
|
114
|
+
brandNameInput.value?.blur();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function onInput(event: Event) {
|
|
118
|
+
emit('update:model-value', (event.target as HTMLInputElement).value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function onEditClick() {
|
|
122
|
+
displayMode.value = !displayMode.value;
|
|
123
|
+
if (!displayMode.value) {
|
|
124
|
+
nextTick(() => {
|
|
125
|
+
brandNameInput.value?.focus();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function onPencilIconClick() {
|
|
131
|
+
onEditClick();
|
|
132
|
+
}
|
|
133
|
+
</script>
|
|
134
|
+
<style scoped>
|
|
135
|
+
.dynamic-width-input {
|
|
136
|
+
@apply tw-border tw-outline-none tw-truncate tw-rounded tw-w-auto tw-py-0.5 tw-my-auto tw-text-base tw-text-white tw-max-w-xs;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
input.dynamic-width-input:focus {
|
|
140
|
+
-webkit-box-shadow: 0 0 5px #d1d1d1;
|
|
141
|
+
box-shadow: 0 0 5px #d1d1d1;
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
@@ -258,6 +258,7 @@ import IconPreview from './icons/preview.vue';
|
|
|
258
258
|
import IconPrinting from './icons/printing.vue';
|
|
259
259
|
import IconProcessing from './icons/processing.vue';
|
|
260
260
|
import IconQuestion from './icons/question.vue';
|
|
261
|
+
import IconQuestionAlt from './icons/question-alt.vue';
|
|
261
262
|
import IconQuote from './icons/quote.vue';
|
|
262
263
|
import IconReload from './icons/reload.vue';
|
|
263
264
|
import IconReorderable from './icons/reorderable.vue';
|
|
@@ -654,6 +655,7 @@ export default {
|
|
|
654
655
|
IconPrinting,
|
|
655
656
|
IconProcessing,
|
|
656
657
|
IconQuestion,
|
|
658
|
+
IconQuestionAlt,
|
|
657
659
|
IconQuote,
|
|
658
660
|
IconReload,
|
|
659
661
|
IconReorderable,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<g clip-path="url(#clip0_7564_61184)">
|
|
3
|
+
<path
|
|
4
|
+
d="M13.9163 8.00032C13.9163 4.73274 11.2679 2.0835 8.00033 2.08333C4.73264 2.08333 2.08333 4.73264 2.08333 8.00032C2.08351 11.2679 4.73275 13.9163 8.00033 13.9163C11.2678 13.9162 13.9162 11.2677 13.9163 8.00032ZM15.4163 8.00032C15.4162 12.0962 12.0962 15.4162 8.00033 15.4163C3.90432 15.4163 0.583509 12.0963 0.583333 8.00032C0.583333 3.90421 3.90421 0.583328 8.00033 0.583328C12.0963 0.583504 15.4163 3.90432 15.4163 8.00032Z"
|
|
5
|
+
/>
|
|
6
|
+
<path
|
|
7
|
+
fill-rule="evenodd"
|
|
8
|
+
clip-rule="evenodd"
|
|
9
|
+
d="M8.28027 4.12499C9.55525 4.12524 10.617 5.14367 10.6172 6.38183V6.44921C10.6172 7.22797 10.1949 7.93241 9.54004 8.35351L9.53906 8.35449L8.80469 8.80957L8.79981 8.8125C8.7132 8.8604 8.65932 8.95921 8.65918 9.06152V9.0791C8.65892 9.4428 8.34663 9.71769 8 9.71777C7.63391 9.71761 7.34106 9.44078 7.34082 9.0791V9.06152C7.34096 8.52121 7.62165 8.01722 8.08789 7.72949L8.82129 7.27441C9.11072 7.08774 9.29883 6.78069 9.29883 6.44921V6.38183C9.29869 5.85081 8.83996 5.40356 8.28027 5.40332H7.7207C7.14437 5.40332 6.70228 5.84966 6.70215 6.38183C6.70215 6.74567 6.38964 7.02126 6.04297 7.02148C5.67659 7.02148 5.38379 6.74383 5.38379 6.38183C5.38393 5.14401 6.42753 4.12499 7.7207 4.12499H8.28027Z"
|
|
10
|
+
/>
|
|
11
|
+
<path
|
|
12
|
+
d="M8.75 11.1C8.75 11.5142 8.41421 11.85 8 11.85C7.58579 11.85 7.25 11.5142 7.25 11.1C7.25 10.6858 7.58579 10.35 8 10.35C8.41421 10.35 8.75 10.6858 8.75 11.1Z"
|
|
13
|
+
/>
|
|
14
|
+
</g>
|
|
15
|
+
<defs>
|
|
16
|
+
<clipPath id="clip0_7564_61184">
|
|
17
|
+
<rect width="16" height="16" fill="white" />
|
|
18
|
+
</clipPath>
|
|
19
|
+
</defs>
|
|
20
|
+
</template>
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
:custom-upload-data="customUploadData"
|
|
7
7
|
:use-dropzone="useDropzone"
|
|
8
8
|
:is-post-purchase-user-upload="isPostPurchaseUserUpload"
|
|
9
|
-
:is-ai-powered="isAiPowered"
|
|
10
9
|
@on-exit="onExit"
|
|
11
10
|
@on-upload-error="onUploadError"
|
|
12
11
|
@on-file-change="onFileChange"
|
|
@@ -43,10 +42,6 @@ export default {
|
|
|
43
42
|
required: false,
|
|
44
43
|
default: null,
|
|
45
44
|
},
|
|
46
|
-
isAiPowered: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
45
|
},
|
|
51
46
|
data() {
|
|
52
47
|
return {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LogoUploadingLoader
|
|
3
|
-
:loading-text="uploadYourLogoTr('uploadingAndConverting')"
|
|
4
|
-
:is-ai-powered="isAiPowered"
|
|
5
|
-
/>
|
|
2
|
+
<LogoUploadingLoader :loading-text="uploadYourLogoTr('uploadingAndConverting')" />
|
|
6
3
|
</template>
|
|
7
4
|
<script>
|
|
8
5
|
import brandCrowdClient from '../../clients/brand-crowd-api.client';
|
|
@@ -31,10 +28,6 @@ export default {
|
|
|
31
28
|
type: String,
|
|
32
29
|
required: true,
|
|
33
30
|
},
|
|
34
|
-
isAiPowered: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false,
|
|
37
|
-
},
|
|
38
31
|
},
|
|
39
32
|
setup() {
|
|
40
33
|
return {
|
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-pt-12 tw-pb-16 tw-flex tw-flex-col tw-items-center tw-justify-center">
|
|
3
|
-
<!-- AI-powered sparkle animation -->
|
|
4
|
-
<div v-if="isAiPowered" class="tw-mb-8">
|
|
5
|
-
<AiPoweredLoader alt="AI-powered loading" />
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<!-- Traditional GIF loader -->
|
|
9
3
|
<img
|
|
10
|
-
v-else
|
|
11
4
|
src="https://dcstatic.com/images/brandcrowd/on-boarding/loading/preloader-1-d1cc0b885f.gif"
|
|
12
5
|
alt="Loading"
|
|
13
6
|
class="tw-block tw-mb-8"
|
|
14
7
|
/>
|
|
15
|
-
|
|
16
8
|
<p class="tw-text-black tw-text-2xl tw-font-bold tw-text-center">
|
|
17
9
|
{{ loadingText }}
|
|
18
10
|
</p>
|
|
19
11
|
</div>
|
|
20
12
|
</template>
|
|
21
13
|
<script>
|
|
22
|
-
import AiPoweredLoader from '../../../atoms/components/AiPoweredLoader/AiPoweredLoader.vue';
|
|
23
|
-
|
|
24
14
|
export default {
|
|
25
|
-
components: {
|
|
26
|
-
AiPoweredLoader,
|
|
27
|
-
},
|
|
28
15
|
props: {
|
|
29
16
|
loadingText: {
|
|
30
17
|
type: String,
|
|
31
18
|
required: true,
|
|
32
19
|
},
|
|
33
|
-
isAiPowered: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false,
|
|
36
|
-
},
|
|
37
20
|
},
|
|
38
21
|
};
|
|
39
22
|
</script>
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
:logo-file="logoFile"
|
|
23
23
|
:custom-upload-data="customUploadData"
|
|
24
24
|
:event-category="eventCategory"
|
|
25
|
-
:is-ai-powered="isAiPowered"
|
|
26
25
|
@on-upload-success="onUploadSuccess"
|
|
27
26
|
@on-upload-error="onUploadError"
|
|
28
27
|
/>
|
|
@@ -72,11 +71,7 @@
|
|
|
72
71
|
@on-logo-file-change="onLogoFileChange"
|
|
73
72
|
/>
|
|
74
73
|
|
|
75
|
-
<LogoUploadingLoader
|
|
76
|
-
v-if="isCurrentlySaving"
|
|
77
|
-
:loading-text="uploadYourLogoTr('generatingDesigns')"
|
|
78
|
-
:is-ai-powered="isAiPowered"
|
|
79
|
-
/>
|
|
74
|
+
<LogoUploadingLoader v-if="isCurrentlySaving" :loading-text="uploadYourLogoTr('generatingDesigns')" />
|
|
80
75
|
|
|
81
76
|
<LogoUploadExitConfirmation
|
|
82
77
|
v-if="isAttemptingToExit && currentStep > 1"
|
|
@@ -138,10 +133,6 @@ export default {
|
|
|
138
133
|
required: false,
|
|
139
134
|
default: undefined,
|
|
140
135
|
},
|
|
141
|
-
isAiPowered: {
|
|
142
|
-
type: Boolean,
|
|
143
|
-
default: false,
|
|
144
|
-
},
|
|
145
136
|
},
|
|
146
137
|
setup() {
|
|
147
138
|
return {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" width="164" height="164" version="1.1"><svg xmlns="http://www.w3.org/2000/svg" width="164" height="164" fill="none" viewBox="0 0 164 164"><path fill="#FF4785" d="M22.467 147.762 17.5 15.402a8.062 8.062 0 0 1 7.553-8.35L137.637.016a8.061 8.061 0 0 1 8.565 8.047v144.23a8.063 8.063 0 0 1-8.424 8.054l-107.615-4.833a8.062 8.062 0 0 1-7.695-7.752Z"/><path fill="#fff" fill-rule="evenodd" d="m128.785.57-15.495.968-.755 18.172a1.203 1.203 0 0 0 1.928 1.008l7.06-5.354 5.962 4.697a1.202 1.202 0 0 0 1.946-.987L128.785.569Zm-12.059 60.856c-2.836 2.203-23.965 3.707-23.965.57.447-11.969-4.912-12.494-7.889-12.494-2.828 0-7.59.855-7.59 7.267 0 6.534 6.96 10.223 15.13 14.553 11.607 6.15 25.654 13.594 25.654 32.326 0 17.953-14.588 27.871-33.194 27.871-19.201 0-35.981-7.769-34.086-34.702.744-3.163 25.156-2.411 25.156 0-.298 11.114 2.232 14.383 8.633 14.383 4.912 0 7.144-2.708 7.144-7.267 0-6.9-7.252-10.973-15.595-15.657C64.827 81.933 51.53 74.468 51.53 57.34c0-17.098 11.76-28.497 32.747-28.497 20.988 0 32.449 11.224 32.449 32.584Z" clip-rule="evenodd"/></svg><style>@media (prefers-color-scheme:light){:root{filter:none}}</style></svg>
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
|
|
6
|
-
<title>storybook - Storybook</title>
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
11
|
-
|
|
12
|
-
<style>
|
|
13
|
-
@font-face {
|
|
14
|
-
font-family: 'Nunito Sans';
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
font-display: swap;
|
|
18
|
-
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@font-face {
|
|
22
|
-
font-family: 'Nunito Sans';
|
|
23
|
-
font-style: italic;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
font-display: swap;
|
|
26
|
-
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Nunito Sans';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 700;
|
|
33
|
-
font-display: swap;
|
|
34
|
-
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Nunito Sans';
|
|
39
|
-
font-style: italic;
|
|
40
|
-
font-weight: 700;
|
|
41
|
-
font-display: swap;
|
|
42
|
-
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
45
|
-
|
|
46
|
-
<link href="./sb-manager/runtime.js" rel="modulepreload" />
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<link href="./sb-addons/storybook-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
|
-
|
|
51
|
-
<link href="./sb-addons/a11y-1/manager-bundle.js" rel="modulepreload" />
|
|
52
|
-
|
|
53
|
-
<link href="./sb-addons/links-2/manager-bundle.js" rel="modulepreload" />
|
|
54
|
-
|
|
55
|
-
<link href="./sb-addons/themes-3/manager-bundle.js" rel="modulepreload" />
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<style>
|
|
59
|
-
#storybook-root[hidden] {
|
|
60
|
-
display: none !important;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</head>
|
|
66
|
-
<body>
|
|
67
|
-
<div id="root"></div>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<script>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
window['FEATURES'] = {
|
|
74
|
-
"argTypeTargetsV7": true,
|
|
75
|
-
"legacyDecoratorFileOrder": false,
|
|
76
|
-
"disallowImplicitActionsInRenderV8": true,
|
|
77
|
-
"viewport": true,
|
|
78
|
-
"highlight": true,
|
|
79
|
-
"controls": true,
|
|
80
|
-
"interactions": true,
|
|
81
|
-
"actions": true,
|
|
82
|
-
"backgrounds": true,
|
|
83
|
-
"outline": true,
|
|
84
|
-
"measure": true
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
window['REFS'] = {};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
window['LOGLEVEL'] = "info";
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
window['DOCS_OPTIONS'] = {
|
|
98
|
-
"autodocs": true
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
window['CONFIG_TYPE'] = "PRODUCTION";
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
window['TAGS_OPTIONS'] = {
|
|
112
|
-
"dev-only": {
|
|
113
|
-
"excludeFromDocsStories": true
|
|
114
|
-
},
|
|
115
|
-
"docs-only": {
|
|
116
|
-
"excludeFromSidebar": true
|
|
117
|
-
},
|
|
118
|
-
"test-only": {
|
|
119
|
-
"excludeFromSidebar": true,
|
|
120
|
-
"excludeFromDocsStories": true
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
window['STORYBOOK_RENDERER'] = "vue3";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
window['STORYBOOK_BUILDER'] = "@storybook/builder-vite";
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
window['STORYBOOK_FRAMEWORK'] = "@storybook/vue3-vite";
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</script>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<script type="module">
|
|
141
|
-
import './sb-manager/globals-runtime.js';
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
import './sb-addons/storybook-core-server-presets-0/common-manager-bundle.js';
|
|
145
|
-
|
|
146
|
-
import './sb-addons/a11y-1/manager-bundle.js';
|
|
147
|
-
|
|
148
|
-
import './sb-addons/links-2/manager-bundle.js';
|
|
149
|
-
|
|
150
|
-
import './sb-addons/themes-3/manager-bundle.js';
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
import './sb-manager/runtime.js';
|
|
154
|
-
</script>
|
|
155
|
-
</body>
|
|
156
|
-
</html>
|