tide-design-system 2.1.14 → 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/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';
@@ -183,7 +183,6 @@ export {
183
183
  export {
184
184
  TideAccordionItem,
185
185
  TideAlert,
186
- TideBackgroundImage,
187
186
  TideBadge,
188
187
  TideBadgeTrustedPartner,
189
188
  TideBreadCrumbs,
@@ -200,6 +199,7 @@ export {
200
199
  TideDivider,
201
200
  TideIcon,
202
201
  TideImage,
202
+ TideImageBackground,
203
203
  TideIndicator,
204
204
  TideInputCheckbox,
205
205
  TideInputRadio,
package/package.json CHANGED
@@ -61,7 +61,7 @@
61
61
  "main": "dist/tide-design-system.cjs",
62
62
  "module": "dist/tide-design-system.esm.js",
63
63
  "types": "dist/tide-design-system.esm.d.ts",
64
- "version": "2.1.14",
64
+ "version": "2.2.0",
65
65
  "dependencies": {
66
66
  "@floating-ui/vue": "^1.1.6"
67
67
  }
@@ -26,7 +26,7 @@
26
26
  CSS.BG.SURFACE.VARIANT,
27
27
  CSS.DISPLAY.FLEX,
28
28
  CSS.GAP.QUARTER,
29
- CSS.BORDER.RADIUS.HALF,
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.RADIUS.QUARTER,
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.LABEL_1_SEMIBOLD]">
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.LABEL_1_SEMIBOLD]"
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: 1px solid var(--tide-surface-variant);
79
+ border-color: var(--tide-surface-variant);
79
80
  }
80
81
 
81
82
  .inactive:hover {
82
- border: 1px solid var(--tide-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-rec.tilabs.io/image-coming-soon-512.png';
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-image', CSS.WIDTH.FULL, CSS.HEIGHT.FULL]"
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-image {
48
+ .tide-image-background {
49
49
  z-index: -1;
50
50
  }
51
51
 
52
- :deep(.tide-background-image img) {
52
+ :deep(.tide-image-background img) {
53
53
  width: 100%;
54
54
  height: 100%;
55
55
  object-fit: cover;
@@ -1,4 +1,4 @@
1
- import TideBackgroundImage from '@/components/TideBackgroundImage.vue';
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 `<TideBackgroundImage ${argsWithValues.join(' ')} />`;
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: { TideBackgroundImage },
32
+ components: { TideImageBackground },
33
33
  setup() {
34
34
  return { args };
35
35
  },
36
36
  template: `
37
- <TideBackgroundImage v-bind="args">
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
- </TideBackgroundImage>
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: TideBackgroundImage,
102
+ component: TideImageBackground,
103
103
  parameters,
104
104
  render,
105
105
  tags: ['autodocs'],
106
- title: 'Basic Components/TideBackgroundImage',
106
+ title: 'Basic Components/TideImageBackground',
107
107
  };
108
108
 
109
109
  export const Demo = {};