tide-design-system 2.1.13 → 2.2.0
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/.storybook/main.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +124 -82
- package/dist/tide-design-system.esm.js +2090 -990
- package/index.ts +4 -2
- package/package.json +1 -1
- package/src/components/TideButtonSegmented.vue +8 -6
- package/src/components/TideImage.vue +1 -1
- package/src/components/{TideBackgroundImage.vue → TideImageBackground.vue} +3 -3
- package/src/components/TideInputCheckbox.vue +1 -1
- package/src/components/TideInputSelect.vue +7 -1
- package/src/components/TideInputText.vue +1 -1
- package/src/components/TideInputTextarea.vue +1 -1
- package/src/stories/{TideBackgroundImage.stories.ts → TideImageBackground.stories.ts} +7 -7
package/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import TideAccordionItem from '@/components/TideAccordionItem.vue';
|
|
2
2
|
import TideAlert from '@/components/TideAlert.vue';
|
|
3
|
-
import TideBackgroundImage from '@/components/TideBackgroundImage.vue';
|
|
4
3
|
import TideBadge from '@/components/TideBadge.vue';
|
|
5
4
|
import TideBadgeTrustedPartner from '@/components/TideBadgeTrustedPartner.vue';
|
|
6
5
|
import TideBreadCrumbs from '@/components/TideBreadCrumbs.vue';
|
|
@@ -17,6 +16,7 @@ import TideColumns from '@/components/TideColumns.vue';
|
|
|
17
16
|
import TideDivider from '@/components/TideDivider.vue';
|
|
18
17
|
import TideIcon from '@/components/TideIcon.vue';
|
|
19
18
|
import TideImage from '@/components/TideImage.vue';
|
|
19
|
+
import TideImageBackground from '@/components/TideImageBackground.vue';
|
|
20
20
|
import TideIndicator from '@/components/TideIndicator.vue';
|
|
21
21
|
import TideInputCheckbox from '@/components/TideInputCheckbox.vue';
|
|
22
22
|
import TideInputRadio from '@/components/TideInputRadio.vue';
|
|
@@ -26,6 +26,7 @@ import TideInputTextarea from '@/components/TideInputTextarea.vue';
|
|
|
26
26
|
import TideLink from '@/components/TideLink.vue';
|
|
27
27
|
import TideModal from '@/components/TideModal.vue';
|
|
28
28
|
import TidePagination from '@/components/TidePagination.vue';
|
|
29
|
+
import TidePopover from '@/components/TidePopover.vue';
|
|
29
30
|
import TideSeoLinks from '@/components/TideSeoLinks.vue';
|
|
30
31
|
import TideSwitch from '@/components/TideSwitch.vue';
|
|
31
32
|
import { ALERT } from '@/types/Alert';
|
|
@@ -182,7 +183,6 @@ export {
|
|
|
182
183
|
export {
|
|
183
184
|
TideAccordionItem,
|
|
184
185
|
TideAlert,
|
|
185
|
-
TideBackgroundImage,
|
|
186
186
|
TideBadge,
|
|
187
187
|
TideBadgeTrustedPartner,
|
|
188
188
|
TideBreadCrumbs,
|
|
@@ -199,6 +199,7 @@ export {
|
|
|
199
199
|
TideDivider,
|
|
200
200
|
TideIcon,
|
|
201
201
|
TideImage,
|
|
202
|
+
TideImageBackground,
|
|
202
203
|
TideIndicator,
|
|
203
204
|
TideInputCheckbox,
|
|
204
205
|
TideInputRadio,
|
|
@@ -208,6 +209,7 @@ export {
|
|
|
208
209
|
TideLink,
|
|
209
210
|
TideModal,
|
|
210
211
|
TidePagination,
|
|
212
|
+
TidePopover,
|
|
211
213
|
TideSeoLinks,
|
|
212
214
|
TideSwitch,
|
|
213
215
|
};
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
CSS.BG.SURFACE.VARIANT,
|
|
27
27
|
CSS.DISPLAY.FLEX,
|
|
28
28
|
CSS.GAP.QUARTER,
|
|
29
|
-
CSS.BORDER.RADIUS.
|
|
29
|
+
CSS.BORDER.RADIUS.FULL,
|
|
30
30
|
CSS.PADDING.FULL.QUARTER,
|
|
31
31
|
CSS.OVERFLOW.XY.HIDDEN,
|
|
32
32
|
CSS.WIDTH.FULL,
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
? [CSS.BG.SURFACE.DEFAULT, CSS.FONT.COLOR.SURFACE.DEFAULT, CSS.SHADOW.BOTTOM]
|
|
40
40
|
: ['inactive', CSS.FONT.COLOR.SURFACE.VARIANT],
|
|
41
41
|
CSS.FLEX.GROW.ON,
|
|
42
|
-
CSS.BORDER.
|
|
42
|
+
CSS.BORDER.FULL.TWO,
|
|
43
|
+
CSS.BORDER.RADIUS.FULL,
|
|
43
44
|
CSS.PADDING.Y.QUARTER,
|
|
44
45
|
CSS.WIDTH.FULL,
|
|
45
46
|
CSS.FONT.ROLE.BUTTON_1,
|
|
@@ -50,12 +51,12 @@
|
|
|
50
51
|
@click="handleClick(index)"
|
|
51
52
|
v-for="(tab, index) in props.tabs"
|
|
52
53
|
>
|
|
53
|
-
<span :class="[CSS.FONT.ROLE.
|
|
54
|
+
<span :class="[CSS.FONT.ROLE.LABEL_2_SEMIBOLD]">
|
|
54
55
|
{{ tab.label }}
|
|
55
56
|
</span>
|
|
56
57
|
|
|
57
58
|
<span
|
|
58
|
-
:class="[CSS.FONT.ROLE.
|
|
59
|
+
:class="[CSS.FONT.ROLE.LABEL_2_SEMIBOLD]"
|
|
59
60
|
v-if="tab.count && tab.count > 0"
|
|
60
61
|
>
|
|
61
62
|
({{ tab.count }})
|
|
@@ -75,10 +76,11 @@
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.inactive:not(:hover) {
|
|
78
|
-
border:
|
|
79
|
+
border-color: var(--tide-surface-variant);
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.inactive:hover {
|
|
82
|
-
border:
|
|
83
|
+
border-color: var(--tide-border);
|
|
84
|
+
color: var(--tide-surface-default);
|
|
83
85
|
}
|
|
84
86
|
</style>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
const picture = ref();
|
|
27
27
|
const img = ref();
|
|
28
28
|
|
|
29
|
-
const imageDefault = 'https://cdn-static
|
|
29
|
+
const imageDefault = 'https://cdn-static.tilabs.io/marketplace/common/image-coming-soon.svg';
|
|
30
30
|
|
|
31
31
|
const setImageFromDefault = () => {
|
|
32
32
|
const currentSrc = img.value?.currentSrc;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]"
|
|
33
33
|
>
|
|
34
34
|
<TideImage
|
|
35
|
-
:class="['tide-background
|
|
35
|
+
:class="['tide-image-background', CSS.WIDTH.FULL, CSS.HEIGHT.FULL]"
|
|
36
36
|
:is-lazy="props.isLazy"
|
|
37
37
|
:sources="props.sources"
|
|
38
38
|
:src="props.src"
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<style scoped lang="scss">
|
|
48
|
-
.tide-background
|
|
48
|
+
.tide-image-background {
|
|
49
49
|
z-index: -1;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:deep(.tide-background
|
|
52
|
+
:deep(.tide-image-background img) {
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 100%;
|
|
55
55
|
object-fit: cover;
|
|
@@ -105,7 +105,13 @@
|
|
|
105
105
|
</label>
|
|
106
106
|
|
|
107
107
|
<select
|
|
108
|
-
:class="[
|
|
108
|
+
:class="[
|
|
109
|
+
CSS.PADDING.BOTTOM.HALF,
|
|
110
|
+
CSS.PADDING.X.ONE,
|
|
111
|
+
CSS.WIDTH.FULL,
|
|
112
|
+
disabled && CSS.CURSOR.NOT_ALLOWED,
|
|
113
|
+
CSS.FONT.ROLE.BODY_1,
|
|
114
|
+
]"
|
|
109
115
|
:disabled="disabled"
|
|
110
116
|
:name="name"
|
|
111
117
|
ref="input"
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
|
|
200
200
|
<input
|
|
201
201
|
:autocomplete="autocomplete ? 'on' : 'off'"
|
|
202
|
-
:class="[CSS.WIDTH.FULL, disabled && CSS.CURSOR.NOT_ALLOWED]"
|
|
202
|
+
:class="[CSS.WIDTH.FULL, disabled && CSS.CURSOR.NOT_ALLOWED, CSS.FONT.ROLE.BODY_1]"
|
|
203
203
|
:data-track="props.dataTrack"
|
|
204
204
|
:disabled="props.disabled"
|
|
205
205
|
:maxlength="props.maxlength"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import TideImageBackground from '@/components/TideImageBackground.vue';
|
|
2
2
|
import { MEDIA } from '@/types/Breakpoint';
|
|
3
3
|
import { argTypeBooleanUnrequired, disabledArgType } from '@/utilities/storybook';
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ const formatSnippet = (_code: string, context: StoryContext) => {
|
|
|
15
15
|
if (hasSources && hasSourcesLength) argsWithValues.push(`:sources="sources"`);
|
|
16
16
|
if (args.src) argsWithValues.push(`:src="${args.src}"`);
|
|
17
17
|
|
|
18
|
-
return `<
|
|
18
|
+
return `<TideImageBackground ${argsWithValues.join(' ')} />`;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
const parameters = {
|
|
@@ -29,16 +29,16 @@ const parameters = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
const render = (args: any) => ({
|
|
32
|
-
components: {
|
|
32
|
+
components: { TideImageBackground },
|
|
33
33
|
setup() {
|
|
34
34
|
return { args };
|
|
35
35
|
},
|
|
36
36
|
template: `
|
|
37
|
-
<
|
|
37
|
+
<TideImageBackground v-bind="args">
|
|
38
38
|
<div class="tide-padding-4 tide-font-700 tide-font-20">
|
|
39
39
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque est nibh, convallis vel aliquam non, elementum a lorem.
|
|
40
40
|
</div>
|
|
41
|
-
</
|
|
41
|
+
</TideImageBackground>
|
|
42
42
|
`,
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -99,11 +99,11 @@ export default {
|
|
|
99
99
|
sources,
|
|
100
100
|
src: 'https://placedog.net/375/400',
|
|
101
101
|
},
|
|
102
|
-
component:
|
|
102
|
+
component: TideImageBackground,
|
|
103
103
|
parameters,
|
|
104
104
|
render,
|
|
105
105
|
tags: ['autodocs'],
|
|
106
|
-
title: 'Basic Components/
|
|
106
|
+
title: 'Basic Components/TideImageBackground',
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
export const Demo = {};
|