tide-design-system 2.2.5 → 2.2.7

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.
@@ -40,6 +40,7 @@
40
40
  .tide-axis1-between {justify-content: space-between;}
41
41
  .tide-axis1-center {justify-content: center;}
42
42
  .tide-axis1-end {justify-content: end;}
43
+ .tide-axis1-start {justify-content: start;}
43
44
 
44
45
  .tide-axis2-around {align-items: space-around;}
45
46
  .tide-axis2-center {align-items: center;}
@@ -68,6 +69,7 @@
68
69
  .tide-margin-1 {margin: var(--tide-spacing-1);}
69
70
  .tide-margin-2 {margin: var(--tide-spacing-2);}
70
71
  .tide-margin-4 {margin: var(--tide-spacing-4);}
72
+ .tide-margin-auto {margin: auto;}
71
73
 
72
74
  .tide-margin-x-0 {margin-left: 0; margin-right: 0;}
73
75
  .tide-margin-x-1\/4 {margin-left: var(--tide-spacing-1\/4); margin-right: var(--tide-spacing-1\/4);}
@@ -83,7 +85,7 @@
83
85
  .tide-margin-y-1 {margin-top: var(--tide-spacing-1); margin-bottom: var(--tide-spacing-1);}
84
86
  .tide-margin-y-2 {margin-top: var(--tide-spacing-2); margin-bottom: var(--tide-spacing-2);}
85
87
  .tide-margin-y-4 {margin-top: var(--tide-spacing-4); margin-bottom: var(--tide-spacing-4);}
86
- .tide-margin-y-auto {margin-top: var(--tide-spacing-auto); margin-bottom: var(--tide-spacing-auto);}
88
+ .tide-margin-y-auto {margin-top: auto; margin-bottom: auto;}
87
89
 
88
90
  .tide-margin-top-0 {margin-top: 0;}
89
91
  .tide-margin-top-1\/4 {margin-top: var(--tide-spacing-1\/4);}
@@ -91,7 +93,7 @@
91
93
  .tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
92
94
  .tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
93
95
  .tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
94
- .tide-margin-top-auto {margin-top: var(--tide-spacing-auto);}
96
+ .tide-margin-top-auto {margin-top: auto;}
95
97
 
96
98
  .tide-margin-right-0 {margin-right: 0;}
97
99
  .tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
@@ -107,7 +109,7 @@
107
109
  .tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
108
110
  .tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
109
111
  .tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
110
- .tide-margin-bottom-auto {margin-bottom: var(--tide-spacing-auto);}
112
+ .tide-margin-bottom-auto {margin-bottom: auto;}
111
113
 
112
114
  .tide-margin-left-0 {margin-left: 0;}
113
115
  .tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
@@ -221,8 +223,6 @@
221
223
  .tide-max-height-full {max-height: 100%;}
222
224
  .tide-min-height-0 {min-height: 0;}
223
225
 
224
- .tide-width-container {max-width: 1168px;}
225
-
226
226
  .tide-width-auto {width: auto;}
227
227
  .tide-width-0 {width: 0;}
228
228
  .tide-width-full {width: 100%;}
@@ -231,6 +231,9 @@
231
231
  .tide-height-0 {height: 0;}
232
232
  .tide-height-full {height: 100%;}
233
233
 
234
+ /* Deprecated */
235
+ .tide-width-container {max-width: 1168px;}
236
+
234
237
  /* Background */
235
238
  .tide-bg-initial {background-color: initial;}
236
239
 
@@ -319,6 +322,7 @@
319
322
 
320
323
  .tide-isolate {isolation: isolate;}
321
324
 
325
+ /* Deprecated */
322
326
  .tide-leading-default {line-height: 1.4;}
323
327
  .tide-leading-normal {line-height: normal;}
324
328
 
@@ -60,13 +60,18 @@
60
60
  4. Serve the Sandbox App locally:
61
61
 
62
62
  `npm run dev`
63
+
63
64
  3. Via NPM Link
65
+
66
+ Note: If using Windows Subsystem for Linux (WSL), both the TIDE repository and the consumer repository need to be pulled down into the Linux environment.
67
+
64
68
  1. From the local instance of TIDE repository, create local package alias:
65
69
 
66
70
  `npm link`
67
71
  2. From the local instance of the consumer repository, leverage local package alias:
68
72
 
69
- `npm link tide-design-system`
73
+ `npm link tide-design-system`
74
+
70
75
  3. Run the local instance of `tide-design-system`.
71
76
  4. Run the local instance of the consumer repository.
72
77
  5. Visit the local instance of the consumer repository in the browser as normal. All structures imported from the `tide-design-system` dependency will now reflect the local instance.
@@ -1,7 +1,9 @@
1
1
  # TIDE Full Integration
2
2
  1. Install dependency from NPM registry:
3
3
 
4
- `npm install tide-design-system`
4
+ `npm install tide-design-system --save-exact`
5
+
6
+ Note: This will install TIDE **without a caret range**, which requires that the dependency be **upgraded manually**, as our [custom semantic versioning](./development.md#publication-tide-tech-lead-only) rules and distribution of QA resources dictate that consumer repositories must thoroughly test for breaking changes during the upgrade process.
5
7
 
6
8
  2. Use CSS utilities:
7
9
  1. Import global utilities:
@@ -22,6 +24,8 @@
22
24
 
23
25
  `import { CSS } from 'tide-design-system';`
24
26
 
27
+ Note: See the [TypeScript CSS constant](../types/Styles.ts) for full details.
28
+
25
29
  4. Leverage CSS utilities via TypeScript CSS constant:
26
30
 
27
31
  `<div :class="[CSS.POSITION.ABSOLUTE]" />`
@@ -1,7 +1,9 @@
1
1
  # TIDE Partial Integration
2
2
  1. Install dependency from NPM registry:
3
3
 
4
- `npm install tide-design-system`
4
+ `npm install tide-design-system --save-exact`
5
+
6
+ Note: This will install TIDE **without a caret range**, which requires that the dependency be **upgraded manually**, as our [custom semantic versioning](./development.md#publication-tide-tech-lead-only) rules and distribution of QA resources dictate that consumer repositories must thoroughly test for breaking changes during the upgrade process.
5
7
 
6
8
  2. Use CSS utilities:
7
9
  1. Import global utilities one of two ways:
@@ -36,6 +38,8 @@
36
38
 
37
39
  `<div class="tide-position-absolute" />`
38
40
 
41
+ Note: See the [CSS utilities](../assets/css/utilities.ts) for full details.
42
+
39
43
  4. Leverage responsive CSS utilities:
40
44
 
41
45
  `<div class="tide-position-relative md-tide-position-absolute" />`
@@ -10,6 +10,14 @@ The first implementation of the TIDE Design System was developed directly within
10
10
  4. CSS utilities
11
11
  5. Unit tests
12
12
 
13
+ ## Status
14
+ 1. The [legacy code](https://github.com/traderinteractive/marketplace) at the top level of the `marketplace` repository uses a [partial integration](./integration-partial.md) of TIDE, making the CSS utilities available globally.
15
+ 1. Dependency controlled by the top level config: [package.json](https://github.com/traderinteractive/marketplace/blob/qa/package.json). **Version must be upgraded manually.**
16
+ 2. Integration controlled by the [Gulp build](https://github.com/search?q=repo%3Atraderinteractive%2Fmarketplace%20tide%20path%3Agulpfile.js&type=code).
17
+ 2. The [redesign code](https://github.com/traderinteractive/marketplace/tree/qa/frontend) within the `/frontend` subdirectory of the `marketplace` repository uses a [full integration](./integration-full.md) of TIDE, making both the CSS utilities and Vue 3 components available for import from any Vue 3 file.
18
+ 1. Dependency controlled by the nested config: [/frontend/package.json](https://github.com/traderinteractive/marketplace/blob/qa/frontend/package.json). **Version must be upgraded manually.**
19
+ 2. Integration controlled by the [Vite build](https://github.com/search?q=repo%3Atraderinteractive%2Fmarketplace%20tide%20path%3Afrontend%2Fvite.config.ts&type=code).
20
+
13
21
  ## Workflow
14
22
  As TIDE structures become available in the TIDE repository, the TIDE team will work to identify redundant structures within the `marketplace` repository, create tickets detailing the work to reimplement these structures, and work with the relevant product teams to determine priority and ownership of these tasks.
15
23
 
@@ -63,3 +71,4 @@ As TIDE structures become available in the TIDE repository, the TIDE team will w
63
71
 
64
72
  7. Delete unused [JS constants](https://github.com/traderinteractive/marketplace/blob/qa/frontend/src/types/Styles.ts) (CSS_OLD)
65
73
  8. Delete unused [CSS utilities](https://github.com/traderinteractive/marketplace/blob/qa/frontend/src/assets/css/utilities.css)
74
+ 9. Run `npm run precommit` from the `/frontend` directory to identify (and potentially autofix) any ESLint, TypeScript, and/or Vitest issues, as the build server will reject any source branch that contains syntax violations or failing unit tests.
@@ -1,7 +1,7 @@
1
1
  /* eslint vue/sort-keys: 0 */
2
2
 
3
3
  import Border from '@/stories/FoundationsBorder.stories';
4
- import Gap from '@/stories/FoundationsGap.stories';
4
+ import Flexbox from '@/stories/FoundationsFlexbox.stories';
5
5
  import Margin from '@/stories/FoundationsMargin.stories';
6
6
  import Padding from '@/stories/FoundationsPadding.stories';
7
7
  import Shadow from '@/stories/FoundationsShadow.stories';
@@ -93,7 +93,7 @@ export default {
93
93
  argTypes: {
94
94
  ...Border.argTypes,
95
95
  ...Shadow.argTypes,
96
- ...Gap.argTypes,
96
+ ...Flexbox.argTypes,
97
97
  ...Padding.argTypes,
98
98
  children: {
99
99
  control: 'text',
@@ -69,13 +69,13 @@ export default {
69
69
  argTypes: {
70
70
  flexAxis1: {
71
71
  ...formatArgType({ FLEX_AXIS1 }),
72
- description: 'Dictates alignment of children along primary axis',
73
- name: 'Flex Axis Primary',
72
+ description: 'Dictates alignment of children along main axis',
73
+ name: 'Main Axis',
74
74
  },
75
75
  flexAxis2: {
76
76
  ...formatArgType({ FLEX_AXIS2 }),
77
- description: 'Dictates alignment of children along secondary axis',
78
- name: 'Flex Axis Secondary',
77
+ description: 'Dictates alignment of children along cross axis',
78
+ name: 'Cross Axis',
79
79
  },
80
80
  flexDirection: {
81
81
  ...formatArgType({ FLEX_DIRECTION }),
@@ -84,7 +84,7 @@ export default {
84
84
  },
85
85
  flexGap: {
86
86
  ...formatArgType({ GAP }),
87
- description: 'Dictates vertical and/or horizontal spacing between elements within a flexbox container',
87
+ description: 'Dictates spacing between elements along the main axis',
88
88
  name: 'Flex Gap',
89
89
  },
90
90
  flexWrap: {
@@ -103,7 +103,7 @@ export default {
103
103
  parameters,
104
104
  render,
105
105
  tags: ['autodocs'],
106
- title: 'Utilities/Gap',
106
+ title: 'Utilities/Flexbox',
107
107
  };
108
108
 
109
109
  export const Default = {};
@@ -29,6 +29,7 @@ export const CSS = {
29
29
  CENTER: 'tide-axis2-center',
30
30
  END: 'tide-axis2-end',
31
31
  START: 'tide-axis2-start',
32
+ STRETCH: 'tide-axis2-stretch',
32
33
  },
33
34
  BG: {
34
35
  GLOBAL: {
@@ -240,6 +241,7 @@ export const CSS = {
240
241
  ZERO: 'tide-height-0',
241
242
  FULL: 'tide-height-full',
242
243
  MAX_FULL: 'tide-max-height-full',
244
+ MIN_ZERO: 'tide-min-height-0',
243
245
  },
244
246
  ISOLATION: {
245
247
  ISOLATE: 'tide-isolate',
@@ -457,6 +459,7 @@ export const CSS = {
457
459
  ZERO: 'tide-width-0',
458
460
  FULL: 'tide-width-full',
459
461
  MAX_FULL: 'tide-max-width-full',
462
+ MIN_ZERO: 'tide-min-width-0',
460
463
  },
461
464
  Z_INDEX: {
462
465
  INITIAL: 'tide-z-index-initial',
@@ -49,13 +49,14 @@ export const setScrollLock = async (isLocked: boolean) => {
49
49
  }
50
50
  };
51
51
 
52
- export const TOP_LAYER_ID = 'tideTopLayer';
52
+ export const TOP_LAYER_ID = 'tide-top-layer';
53
53
 
54
54
  export const initFauxTopLayer = () => {
55
55
  let topLayer = document.getElementById(TOP_LAYER_ID);
56
56
  if (!topLayer) {
57
57
  topLayer = document.createElement('div');
58
58
  topLayer.id = TOP_LAYER_ID;
59
+ topLayer.setAttribute('data-css-scope', '');
59
60
  document.body.appendChild(topLayer);
60
61
  }
61
62
  topLayer.style.isolation = 'isolate';