@designcrowd/fe-shared-lib 1.1.10 → 1.1.11
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-brandCrowd.css +4 -0
- package/dist/css/tailwind-crazyDomains.css +4 -0
- package/dist/css/tailwind-designCom.css +4 -0
- package/dist/css/tailwind-designCrowd.css +4 -0
- package/package.json +1 -1
- package/src/atoms/components/Button/Button.vue +3 -0
- package/src/atoms/components/Button/Buttons.stories.js +24 -0
- package/src/atoms/components/Button/variants/ButtonOutlinePrimary.vue +53 -0
|
@@ -2041,6 +2041,10 @@ video {
|
|
|
2041
2041
|
--tw-bg-opacity: 1;
|
|
2042
2042
|
background-color: rgb(0 121 172 / var(--tw-bg-opacity));
|
|
2043
2043
|
}
|
|
2044
|
+
.hover\:tw-bg-primary-100:hover {
|
|
2045
|
+
--tw-bg-opacity: 1;
|
|
2046
|
+
background-color: rgb(252 209 217 / var(--tw-bg-opacity));
|
|
2047
|
+
}
|
|
2044
2048
|
.hover\:tw-bg-primary-400:hover {
|
|
2045
2049
|
--tw-bg-opacity: 1;
|
|
2046
2050
|
background-color: rgb(245 73 101 / var(--tw-bg-opacity));
|
|
@@ -2041,6 +2041,10 @@ video {
|
|
|
2041
2041
|
--tw-bg-opacity: 1;
|
|
2042
2042
|
background-color: rgb(0 129 191 / var(--tw-bg-opacity));
|
|
2043
2043
|
}
|
|
2044
|
+
.hover\:tw-bg-primary-100:hover {
|
|
2045
|
+
--tw-bg-opacity: 1;
|
|
2046
|
+
background-color: rgb(226 238 213 / var(--tw-bg-opacity));
|
|
2047
|
+
}
|
|
2044
2048
|
.hover\:tw-bg-primary-400:hover {
|
|
2045
2049
|
--tw-bg-opacity: 1;
|
|
2046
2050
|
background-color: rgb(140 189 89 / var(--tw-bg-opacity));
|
|
@@ -2041,6 +2041,10 @@ video {
|
|
|
2041
2041
|
--tw-bg-opacity: 1;
|
|
2042
2042
|
background-color: rgb(50 71 197 / var(--tw-bg-opacity));
|
|
2043
2043
|
}
|
|
2044
|
+
.hover\:tw-bg-primary-100:hover {
|
|
2045
|
+
--tw-bg-opacity: 1;
|
|
2046
|
+
background-color: rgb(236 238 254 / var(--tw-bg-opacity));
|
|
2047
|
+
}
|
|
2044
2048
|
.hover\:tw-bg-primary-400:hover {
|
|
2045
2049
|
--tw-bg-opacity: 1;
|
|
2046
2050
|
background-color: rgb(121 139 249 / var(--tw-bg-opacity));
|
|
@@ -2041,6 +2041,10 @@ video {
|
|
|
2041
2041
|
--tw-bg-opacity: 1;
|
|
2042
2042
|
background-color: rgb(14 121 188 / var(--tw-bg-opacity));
|
|
2043
2043
|
}
|
|
2044
|
+
.hover\:tw-bg-primary-100:hover {
|
|
2045
|
+
--tw-bg-opacity: 1;
|
|
2046
|
+
background-color: rgb(207 234 251 / var(--tw-bg-opacity));
|
|
2047
|
+
}
|
|
2044
2048
|
.hover\:tw-bg-primary-400:hover {
|
|
2045
2049
|
--tw-bg-opacity: 1;
|
|
2046
2050
|
background-color: rgb(65 172 239 / var(--tw-bg-opacity));
|
package/package.json
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
<script>
|
|
85
85
|
import ButtonOutline from './variants/ButtonOutline.vue';
|
|
86
86
|
import ButtonPrimary from './variants/ButtonPrimary.vue';
|
|
87
|
+
import ButtonOutlinePrimary from './variants/ButtonOutlinePrimary.vue';
|
|
87
88
|
import ButtonWarning from './variants/ButtonWarning.vue';
|
|
88
89
|
import ButtonSecondary from './variants/ButtonSecondary.vue';
|
|
89
90
|
import ButtonInfoFilled from './variants/ButtonInfoFilled.vue';
|
|
@@ -107,6 +108,7 @@ export default {
|
|
|
107
108
|
name: 'Button',
|
|
108
109
|
components: {
|
|
109
110
|
'button-crazyDomains-primary': ButtonCrazyDomainsPrimary,
|
|
111
|
+
'button-crazyDomains-outline-primary': ButtonOutlinePrimary,
|
|
110
112
|
'button-crazyDomains-outline': ButtonCrazyDomainsOutline,
|
|
111
113
|
'button-crazyDomains-secondary': ButtonSecondary,
|
|
112
114
|
'button-crazyDomains-primary-with-icon': ButtonPrimaryWithIcon,
|
|
@@ -118,6 +120,7 @@ export default {
|
|
|
118
120
|
'button-crazyDomains-pill': ButtonPill,
|
|
119
121
|
|
|
120
122
|
'button-brandCrowd-primary': ButtonPrimary,
|
|
123
|
+
'button-brandCrowd-outline-primary': ButtonOutlinePrimary,
|
|
121
124
|
'button-brandCrowd-warning': ButtonWarning,
|
|
122
125
|
'button-brandCrowd-info-filled': ButtonInfoFilled,
|
|
123
126
|
'button-brandCrowd-outline': ButtonOutline,
|
|
@@ -278,6 +278,30 @@ export const PrimarySamples = (args, { argTypes }) => {
|
|
|
278
278
|
PrimarySamples.args = controlArgs;
|
|
279
279
|
PrimarySamples.argTypes = controlArgTypes;
|
|
280
280
|
|
|
281
|
+
export const OutlinePrimarySamples = (args, { argTypes }) => {
|
|
282
|
+
return {
|
|
283
|
+
components: {
|
|
284
|
+
StorybookButtonComponent,
|
|
285
|
+
},
|
|
286
|
+
props: Object.keys(argTypes),
|
|
287
|
+
data() {
|
|
288
|
+
return {
|
|
289
|
+
variants: generateSampleButtonVariants('outline-primary'),
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
template: `
|
|
293
|
+
<StorybookButtonComponent
|
|
294
|
+
:disabled="disabled"
|
|
295
|
+
:full-width="fullWidth"
|
|
296
|
+
:grey-out-left="greyOutLeft"
|
|
297
|
+
:justify="justify"
|
|
298
|
+
:variants="variants"/>
|
|
299
|
+
`,
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
OutlinePrimarySamples.args = controlArgs;
|
|
303
|
+
OutlinePrimarySamples.argTypes = controlArgTypes;
|
|
304
|
+
|
|
281
305
|
export const SecondarySamples = (args, { argTypes }) => {
|
|
282
306
|
return {
|
|
283
307
|
components: {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
v-if="!url"
|
|
4
|
+
class="tw-font-sans tw-border-2 tw-border-solid tw-font-bold tw-text-primary-500 tw-uppercase tw-transition-colors tw-duration-300"
|
|
5
|
+
:class="[
|
|
6
|
+
classes,
|
|
7
|
+
computedClasses,
|
|
8
|
+
{
|
|
9
|
+
'tw-border-grayscale-500 tw-bg-grayscale-400 tw-text-grayscale-600 tw-cursor-not-allowed': disabled,
|
|
10
|
+
'tw-cursor-pointer': !disabled,
|
|
11
|
+
'tw-border-primary-500 tw-bg-white hover:tw-bg-primary-100 tw-text-primary-500': !isBusy && !disabled,
|
|
12
|
+
'tw-border-grayscale-500 tw-bg-grayscale-400 hover:tw-bg-grayscale-300 hover:tw-border-grayscale-400 tw-text-grayscale-600':
|
|
13
|
+
isBusy,
|
|
14
|
+
},
|
|
15
|
+
]"
|
|
16
|
+
:disabled="disabled"
|
|
17
|
+
:type="type"
|
|
18
|
+
v-bind="attrs"
|
|
19
|
+
@click="onClick"
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
</button>
|
|
23
|
+
<a
|
|
24
|
+
v-else
|
|
25
|
+
:href="computedUrl"
|
|
26
|
+
class="tw-justify-center tw-font-sans tw-inline-flex tw-border-2 tw-border-solid tw-font-bold tw-uppercase tw-transition-colors tw-duration-300"
|
|
27
|
+
:class="[
|
|
28
|
+
commonUrlButtonClasses,
|
|
29
|
+
classes,
|
|
30
|
+
computedClasses,
|
|
31
|
+
{
|
|
32
|
+
'tw-cursor-wait': disabled,
|
|
33
|
+
'tw-cursor-pointer': !disabled,
|
|
34
|
+
'tw-border-primary-500 tw-bg-white hover:tw-bg-primary-100 tw-text-primary-500': !isBusy,
|
|
35
|
+
'tw-border-grayscale-500 tw-bg-grayscale-400 hover:tw-bg-grayscale-300 hover:tw-border-grayscale-400 tw-text-grayscale-600':
|
|
36
|
+
isBusy,
|
|
37
|
+
},
|
|
38
|
+
]"
|
|
39
|
+
:download="download"
|
|
40
|
+
v-bind="attrs"
|
|
41
|
+
:target="target"
|
|
42
|
+
@click="onClick"
|
|
43
|
+
>
|
|
44
|
+
<slot />
|
|
45
|
+
</a>
|
|
46
|
+
</template>
|
|
47
|
+
<script>
|
|
48
|
+
import ButtonVariant from '../ButtonVariant.mixin.vue';
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
mixins: [ButtonVariant],
|
|
52
|
+
};
|
|
53
|
+
</script>
|