tide-design-system 2.2.9 → 2.2.10

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 (46) hide show
  1. package/dist/css/dynamic-utilities.css +1 -0
  2. package/dist/css/realm/aero.css +8 -20
  3. package/dist/css/realm/atv.css +8 -20
  4. package/dist/css/realm/boatmart.css +7 -19
  5. package/dist/css/realm/cycle.css +8 -20
  6. package/dist/css/realm/equipment.css +7 -19
  7. package/dist/css/realm/pwc.css +7 -19
  8. package/dist/css/realm/rv.css +7 -19
  9. package/dist/css/realm/snow.css +7 -19
  10. package/dist/css/realm/truck.css +8 -20
  11. package/dist/css/utilities-lg.css +3 -0
  12. package/dist/css/utilities-md.css +3 -0
  13. package/dist/css/utilities-sm.css +3 -0
  14. package/dist/css/utilities-xl.css +3 -0
  15. package/dist/css/utilities.css +3 -0
  16. package/dist/css/variables.css +103 -14
  17. package/dist/style.css +1 -1
  18. package/dist/tide-design-system.cjs +2 -2
  19. package/dist/tide-design-system.esm.d.ts +6 -0
  20. package/dist/tide-design-system.esm.js +921 -887
  21. package/index.ts +2 -0
  22. package/package.json +1 -1
  23. package/src/assets/css/dynamic-utilities.css +1 -0
  24. package/src/assets/css/realm/aero.css +8 -20
  25. package/src/assets/css/realm/atv.css +8 -20
  26. package/src/assets/css/realm/boatmart.css +7 -19
  27. package/src/assets/css/realm/cycle.css +8 -20
  28. package/src/assets/css/realm/equipment.css +7 -19
  29. package/src/assets/css/realm/pwc.css +7 -19
  30. package/src/assets/css/realm/rv.css +7 -19
  31. package/src/assets/css/realm/snow.css +7 -19
  32. package/src/assets/css/realm/truck.css +8 -20
  33. package/src/assets/css/utilities-lg.css +3 -0
  34. package/src/assets/css/utilities-md.css +3 -0
  35. package/src/assets/css/utilities-sm.css +3 -0
  36. package/src/assets/css/utilities-xl.css +3 -0
  37. package/src/assets/css/utilities.css +3 -0
  38. package/src/assets/css/variables.css +103 -14
  39. package/src/components/TideBadgeVerifiedVehicle.vue +1 -1
  40. package/src/components/TideImageBackground.vue +5 -11
  41. package/src/stories/FoundationsBorder.stories.ts +31 -1
  42. package/src/stories/FoundationsTypography.stories.ts +3 -3
  43. package/src/stories/TideCarousel.stories.ts +1 -0
  44. package/src/stories/TideImageBackground.stories.ts +11 -3
  45. package/src/types/Storybook.ts +5 -0
  46. package/src/types/Styles.ts +4 -0
@@ -5,6 +5,7 @@ import type { StoryContext } from '@storybook/vue3';
5
5
 
6
6
  const BORDER_RADIUS = prependNoneAsEmpty(STYLES.BORDER_RADIUS);
7
7
  const BORDER_SIDE = prependNoneAsEmpty(STYLES.BORDER_SIDE);
8
+ const BORDER_STYLE = prependNoneAsEmpty(STYLES.BORDER_STYLE);
8
9
  const BORDER_WIDTH = prependNoneAsEmpty(STYLES.BORDER_WIDTH);
9
10
 
10
11
  const formatArgs = (args: any) => {
@@ -16,7 +17,7 @@ const formatArgs = (args: any) => {
16
17
  const formatClassNames = (args: any) => {
17
18
  const classNames: string[] = [];
18
19
 
19
- if (args.borderSide === BORDER_SIDE.Full && args.borderWidth !== BORDER_WIDTH.None && args.borderRadius) {
20
+ if (args.borderSide === BORDER_SIDE.Full && args.borderWidth && args.borderRadius) {
20
21
  classNames.push(args.borderRadius);
21
22
  }
22
23
 
@@ -24,6 +25,10 @@ const formatClassNames = (args: any) => {
24
25
  classNames.push(`${args.borderSide}-${args.borderWidth}`);
25
26
  }
26
27
 
28
+ if (args.borderSide && args.borderWidth && args.borderStyle) {
29
+ classNames.push(args.borderStyle);
30
+ }
31
+
27
32
  return classNames;
28
33
  };
29
34
 
@@ -74,6 +79,12 @@ export default {
74
79
  if: { arg: 'borderWidth', neq: BORDER_WIDTH.None },
75
80
  name: 'Border Side',
76
81
  },
82
+ borderStyle: {
83
+ ...formatArgType({ BORDER_STYLE }),
84
+ description: 'Applies a border style',
85
+ if: { arg: 'borderWidth', neq: BORDER_STYLE.None },
86
+ name: 'Border Style',
87
+ },
77
88
  borderWidth: {
78
89
  ...formatArgType({ BORDER_WIDTH }),
79
90
  description: 'Applies a border width',
@@ -83,6 +94,7 @@ export default {
83
94
  args: {
84
95
  borderRadius: BORDER_RADIUS.None,
85
96
  borderSide: BORDER_SIDE.None,
97
+ borderStyle: BORDER_STYLE.None,
86
98
  borderWidth: BORDER_WIDTH.None,
87
99
  },
88
100
  parameters,
@@ -133,6 +145,15 @@ export const BorderFull1px = {
133
145
  name: 'Border Full 1px',
134
146
  };
135
147
 
148
+ export const BorderFullDashed1px = {
149
+ args: {
150
+ borderSide: BORDER_SIDE.Full,
151
+ borderStyle: BORDER_STYLE.Dashed,
152
+ borderWidth: BORDER_WIDTH['1px'],
153
+ },
154
+ name: 'Border Full Dashed 1px',
155
+ };
156
+
136
157
  export const BorderTop2px = {
137
158
  args: {
138
159
  borderSide: BORDER_SIDE.Top,
@@ -173,6 +194,15 @@ export const BorderFull2px = {
173
194
  name: 'Border Full 2px',
174
195
  };
175
196
 
197
+ export const BorderFullDashed2px = {
198
+ args: {
199
+ borderSide: BORDER_SIDE.Full,
200
+ borderStyle: BORDER_STYLE.Dashed,
201
+ borderWidth: BORDER_WIDTH['2px'],
202
+ },
203
+ name: 'Border Full Dashed 1px',
204
+ };
205
+
176
206
  export const RadiusQuarter = {
177
207
  args: {
178
208
  borderRadius: BORDER_RADIUS['0.25 REM'],
@@ -105,7 +105,7 @@ export const Headline2 = {
105
105
 
106
106
  export const Headline3 = {
107
107
  args: {
108
- type: TYPOGRAPHY['Headline 1'],
108
+ type: TYPOGRAPHY['Headline 3'],
109
109
  },
110
110
  };
111
111
 
@@ -117,7 +117,7 @@ export const Title1 = {
117
117
 
118
118
  export const Title2 = {
119
119
  args: {
120
- type: TYPOGRAPHY['Title 1'],
120
+ type: TYPOGRAPHY['Title 2'],
121
121
  },
122
122
  };
123
123
 
@@ -129,7 +129,7 @@ export const Body1 = {
129
129
 
130
130
  export const Body2 = {
131
131
  args: {
132
- type: TYPOGRAPHY['Body 1'],
132
+ type: TYPOGRAPHY['Body 2'],
133
133
  },
134
134
  };
135
135
 
@@ -13,6 +13,7 @@ const formatSnippet = (code: string, context: StoryContext) => {
13
13
  const hasBleed = args.bleed !== '';
14
14
 
15
15
  if (hasBleed) argsWithValues.push(`bleed="${args.bleed}"`);
16
+ if (args.isFloating !== undefined) argsWithValues.push(`:is-floating="${args.isFloating}"`);
16
17
  if (args.isHideawayButtons !== undefined) argsWithValues.push(`:is-hideaway-buttons="${args.isHideawayButtons}"`);
17
18
  if (args.isTouchscreen !== undefined) argsWithValues.push(`:is-touchscreen="${args.isTouchscreen}"`);
18
19
  if (args.subtitle !== '') argsWithValues.push(`subtitle="${args.subtitle}"`);
@@ -1,6 +1,6 @@
1
1
  import TideImageBackground from '@/components/TideImageBackground.vue';
2
2
  import { MEDIA } from '@/types/Breakpoint';
3
- import { argTypeBooleanUnrequired, disabledArgType } from '@/utilities/storybook';
3
+ import { argTypeBooleanUnrequired } from '@/utilities/storybook';
4
4
 
5
5
  import type { Source } from '@/types/Source';
6
6
  import type { StoryContext } from '@storybook/vue3';
@@ -36,7 +36,7 @@ const render = (args: any) => ({
36
36
  template: `
37
37
  <TideImageBackground v-bind="args">
38
38
  <div class="tide-padding-4 tide-font-700 tide-font-20">
39
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque est nibh, convallis vel aliquam non, elementum a lorem.
39
+ {{ args.default }}
40
40
  </div>
41
41
  </TideImageBackground>
42
42
  `,
@@ -71,7 +71,14 @@ export default {
71
71
  type: { summary: 'string' },
72
72
  },
73
73
  },
74
- default: disabledArgType,
74
+ default: {
75
+ control: 'text',
76
+ description: 'Content exposed when expanded',
77
+ table: {
78
+ defaultValue: { summary: 'None' },
79
+ type: { summary: 'HTML' },
80
+ },
81
+ },
75
82
  isLazy: {
76
83
  ...argTypeBooleanUnrequired,
77
84
  description: `Determines whether to delay loading until image is in viewport.`,
@@ -95,6 +102,7 @@ export default {
95
102
  },
96
103
  args: {
97
104
  alt: '',
105
+ default: 'Lorem Ipsum',
98
106
  isLazy: undefined,
99
107
  sources,
100
108
  src: 'https://placedog.net/375/400',
@@ -45,6 +45,11 @@ export const BORDER_SIDE = {
45
45
  Left: 'tide-border-left',
46
46
  };
47
47
 
48
+ export const BORDER_STYLE = {
49
+ Solid: CSS.BORDER.STYLE.SOLID,
50
+ Dashed: CSS.BORDER.STYLE.DASHED,
51
+ };
52
+
48
53
  export const BORDER_WIDTH = {
49
54
  '1px': '1',
50
55
  '2px': '2',
@@ -87,6 +87,10 @@ export const CSS = {
87
87
  ONE: 'tide-radius-1',
88
88
  FULL: 'tide-radius-full',
89
89
  },
90
+ STYLE: {
91
+ DASHED: 'tide-border-dashed',
92
+ SOLID: 'tide-border-solid',
93
+ },
90
94
  BOTTOM: {
91
95
  ZERO: 'tide-border-bottom-0',
92
96
  ONE: 'tide-border-bottom-1',