tide-design-system 2.2.4 → 2.2.6

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 (83) hide show
  1. package/.storybook/main.ts +3 -1
  2. package/.storybook/preview.ts +4 -3
  3. package/README.md +35 -5
  4. package/dist/css/realm/rv.css +2 -2
  5. package/dist/css/utilities-lg.css +4 -11
  6. package/dist/css/utilities-md.css +4 -11
  7. package/dist/css/utilities-sm.css +4 -11
  8. package/dist/css/utilities-xl.css +300 -307
  9. package/dist/css/utilities.css +4 -11
  10. package/dist/style.css +1 -1
  11. package/dist/tide-design-system.cjs +2 -2
  12. package/dist/tide-design-system.esm.d.ts +23 -6
  13. package/dist/tide-design-system.esm.js +1591 -1592
  14. package/dist/utilities/storybook.ts +12 -0
  15. package/dist/utilities/viewport.ts +2 -1
  16. package/package.json +1 -1
  17. package/src/assets/css/realm/rv.css +2 -2
  18. package/src/assets/css/utilities-lg.css +4 -11
  19. package/src/assets/css/utilities-md.css +4 -11
  20. package/src/assets/css/utilities-sm.css +4 -11
  21. package/src/assets/css/utilities-xl.css +300 -307
  22. package/src/assets/css/utilities.css +4 -11
  23. package/src/components/TideAlert.vue +27 -33
  24. package/src/components/TideButton.vue +1 -1
  25. package/src/components/TideButtonIcon.vue +1 -1
  26. package/src/components/TideButtonPagination.vue +1 -1
  27. package/src/components/TideChipAction.vue +1 -1
  28. package/src/components/TideLink.vue +10 -1
  29. package/src/components/TideModal.vue +1 -1
  30. package/src/components/TideSeoLinks.vue +1 -1
  31. package/src/docs/development.md +125 -18
  32. package/src/docs/figma.md +43 -0
  33. package/src/docs/integration-full.md +80 -0
  34. package/src/docs/integration-partial.md +42 -0
  35. package/src/docs/migration.md +65 -0
  36. package/src/docs/storybook.md +29 -24
  37. package/src/docs/style-guide.md +22 -0
  38. package/src/docs/workflows.md +20 -0
  39. package/src/stories/FoundationsBorder.stories.ts +1 -1
  40. package/src/stories/FoundationsColor.stories.ts +1 -1
  41. package/src/stories/FoundationsGap.stories.ts +1 -1
  42. package/src/stories/FoundationsGrid.stories.ts +1 -1
  43. package/src/stories/FoundationsMargin.stories.ts +1 -1
  44. package/src/stories/FoundationsPadding.stories.ts +1 -1
  45. package/src/stories/FoundationsShadow.stories.ts +1 -1
  46. package/src/stories/FoundationsTransparency.stories.ts +1 -1
  47. package/src/stories/FoundationsTypography.stories.ts +1 -1
  48. package/src/stories/TideAccordionItem.stories.ts +1 -1
  49. package/src/stories/TideAlert.stories.ts +47 -3
  50. package/src/stories/TideBadge.stories.ts +1 -1
  51. package/src/stories/TideBadgeTrustedPartner.stories.ts +1 -1
  52. package/src/stories/TideBadgeVerifiedVehicle.stories.ts +1 -1
  53. package/src/stories/TideBreadCrumbs.stories.ts +1 -1
  54. package/src/stories/TideButton.stories.ts +1 -1
  55. package/src/stories/TideButtonIcon.stories.ts +1 -1
  56. package/src/stories/TideButtonPagination.stories.ts +1 -1
  57. package/src/stories/TideButtonSegmented.stories.ts +1 -1
  58. package/src/stories/TideCard.stories.ts +1 -1
  59. package/src/stories/TideCarousel.stories.ts +1 -1
  60. package/src/stories/TideChipAction.stories.ts +1 -1
  61. package/src/stories/TideChipFilter.stories.ts +1 -1
  62. package/src/stories/TideChipInput.stories.ts +1 -1
  63. package/src/stories/TideColumns.stories.ts +1 -1
  64. package/src/stories/TideDivider.stories.ts +1 -1
  65. package/src/stories/TideIcon.stories.ts +1 -1
  66. package/src/stories/TideImage.stories.ts +1 -1
  67. package/src/stories/TideImageBackground.stories.ts +1 -1
  68. package/src/stories/TideIndicator.stories.ts +1 -1
  69. package/src/stories/TideInputCheckbox.stories.ts +1 -1
  70. package/src/stories/TideInputRadio.stories.ts +1 -1
  71. package/src/stories/TideInputSelect.stories.ts +1 -1
  72. package/src/stories/TideInputText.stories.ts +1 -1
  73. package/src/stories/TideInputTextarea.stories.ts +1 -1
  74. package/src/stories/TideLink.stories.ts +8 -2
  75. package/src/stories/TideModal.stories.ts +1 -1
  76. package/src/stories/TidePagination.stories.ts +1 -1
  77. package/src/stories/TidePopover.stories.ts +1 -1
  78. package/src/stories/TideSeoLinks.stories.ts +1 -1
  79. package/src/stories/TideSwitch.stories.ts +1 -1
  80. package/src/types/Styles.ts +8 -202
  81. package/src/utilities/storybook.ts +12 -0
  82. package/src/utilities/viewport.ts +2 -1
  83. package/src/docs/integration.md +0 -79
@@ -1,3 +1,5 @@
1
+ import { isProduction } from '../src/utilities/storybook';
2
+
1
3
  import type { StorybookConfig } from '@storybook/vue3-vite';
2
4
 
3
5
  const config: StorybookConfig = {
@@ -16,7 +18,7 @@ const config: StorybookConfig = {
16
18
  '../src/stories/Welcome.mdx',
17
19
  // '../src/stories/*.stories.ts',
18
20
 
19
- '../src/stories/Demo*.stories.ts',
21
+ isProduction ? '' : '../src/stories/Demo*.stories.ts',
20
22
  '../src/stories/Foundations*.stories.ts',
21
23
 
22
24
  '../src/stories/TideAccordionItem.stories.ts',
@@ -10,8 +10,9 @@ import DemoCssUtilities from '../src/stories/DemoCssUtilities.stories';
10
10
  import DemoCssUtilitiesByTextInput from '../src/stories/DemoCssUtilitiesByTextInput.stories';
11
11
  import FoundationsGrid from '../src/stories/FoundationsGrid.stories';
12
12
  import FoundationsMargin from '../src/stories/FoundationsMargin.stories';
13
+ import { isProduction } from '../src/utilities/storybook';
13
14
 
14
- const cssRoot = import.meta.env.PROD ? '/assets/css/realm' : '/src/assets/css/realm';
15
+ const cssRoot = isProduction ? '/assets/css/realm' : '/src/assets/css/realm';
15
16
 
16
17
  const replaceRealmStyles = (realm: string) => {
17
18
  document.getElementById('realmStyles')?.remove();
@@ -177,8 +178,8 @@ const preview: Preview = {
177
178
  storySort: {
178
179
  order: [
179
180
  'Welcome',
180
- 'Foundations',
181
- 'Basic Components',
181
+ 'Utilities',
182
+ 'Components',
182
183
  'Proof of Concept', [
183
184
  'CSS Utilities Demo',
184
185
  'CSS Utilities By Text Input',
package/README.md CHANGED
@@ -1,13 +1,43 @@
1
1
  # TIDE Design System
2
-
3
- TIDE (**T**rader **I**nteractive **D**esign and **E**ngineering) is a design system created and maintained by the TIDE Task Force of Trader Interactive's All-in Marketplace group, encompassing members of the Design, Development, and Product departments. It was initially developed for use in the `marketplace` repository, but can potentially be incorporated into further Trader projects, subject to the following technical restrictions:
2
+ TIDE (*T*rader *I*nteractive *D*esign and *E*ngineering) is a design system created and maintained by the TIDE Design System product group at Trader Interactive. It was initially developed for use in the `marketplace` repository, but is available for integration into other Trader Interactive projects, subject to the following technical restrictions:
4
3
 
5
4
  1. CSS utilities can be leveraged by any Node-compiled project.
6
5
  2. Types can be leveraged by any TypeScript project.
7
6
  3. Basic components can be leveraged by any Vue 3 project.
8
7
 
9
8
  ## Guides
9
+ - [Figma](./src/docs/figma.md): Explore `TIDE` standards, tokens, and components as maintained by the `TIDE team`.
10
+ - [Storybook](./src/docs/storybook.md): Explore `TIDE` utilities and components to generate working code implementations.
11
+ - [Marketplace Style Guides](./src/docs/style-guide.md): Explore `TIDE` utilities and components in a realm-specific production environment.
12
+ - [Full Integration (Vue 3)](./src/docs/integration-full.md): Leverage `TIDE` utilities and components from a compatible `consumer repository`.
13
+ - [Partial Integration (CSS only)](./src/docs/integration-partial.md): Leverage `TIDE` utilties from any `consumer repository`.
14
+ - [Migration](./src/docs/development.md): Replace local structures with `TIDE` utilities and components.
15
+ - [Workflows](./src/docs/workflows.md): Collaborate with the `TIDE team` on feature enhancements.
16
+ - [Development](./src/docs/development.md): Contribute to the `tide-design-system` NPM package.
17
+
18
+ ## Glossary
19
+ - **TIDE**: the design system itself - a series of conceptual, agreed-upon standards and guidelines meant to emphasize a consistent, scalable user experience across the suite of Trader Interactive websites
20
+ - **TIDE 1.0**: an unofficial designation that describes the *initial, deprecated* set of standards and guidelines integrated into the redesign of the `marketplace` repository
21
+ - **TIDE 2.0**: an unofficial designation that describes the *revised* set of standards and guidelines implemented as its own GitHub repository (and NPM package), separate from any specific `consumer repository`
22
+ - **TIDE migration**: the process, still underway, of replacing `TIDE 1.0` implementations with those of `TIDE 2.0` within the `marketplace` repository
23
+ - **TIDE team**: the Trader Interactive product group tasked with managing `TIDE` and assisting other Trader Interactive product groups with integrating it into the various `consumer repositories`
24
+ - **Figma**: a third-party design platform that hosts `TIDE`, featuring the ability to create tokens and components to be leveraged across designs
25
+ - **Figma token**: a reusable structure that enables dynamically referencing a stored value (like a color, font, or spacing standard) *within Figma*
26
+ - **Figma component**: a reusable structure that enables dynamically referencing a stored interface element (like a button, form field, or carousel) *within Figma*
27
+ - **TIDE repository**: the GitHub project that stores the code implementing TIDE as a series of utilities and components to be leveraged from within a `consumer repository`
28
+ - **TIDE utility**: a reusable structure that enables dynamically referencing a CSS declaration (like a color, font, or spacing standard) from within the `TIDE repository` or a `consumer repository`
29
+ - **TIDE component**: a reusable structure that enables dynamically referencing a stored interface element (like a button, form field, or carousel) from within the `TIDE repository` or a `consumer repository`
30
+ - **tide-design-system**: the `TIDE` [NPM](https://www.npmjs.com/package/tide-design-system) package that can be added as a dependency to a `consumer repository`
31
+ - **Consumer repository**: any project to which the `tide-design-system` package has been added as a dependency
32
+ - **Storybook**: a third-party library implemented within the `TIDE repository` that aids in generating interactive demonstrations of the design and functionality of `TIDE` utilities and components
33
+ - **Netlify**: a third-party platform that hosts the [TIDE Storybook website](https://tide-design-system.netlify.app)
34
+
35
+ Note: the `TIDE Figma` and `TIDE repository` are not programmatically bound together, so some structures that exist as designs may not yet have been developed as code, but should be reflected in the [TIDE Jira backlog](https://traderinteractive.atlassian.net/jira/software/c/projects/TIDE/boards/1092/backlog).
10
36
 
11
- - [Storybook](./src/docs/storybook.md): Explore TIDE utilities and components via the Storybook UI.
12
- - [Integration](./src/docs/integration.md): Leverage TIDE as a dependency from the NPM Registry.
13
- - [Development](./src/docs/development.md): Contribute to TIDE (TIDE Task Force only).
37
+ ## Known consumer repositories:
38
+ (List may not be comprehensive.)
39
+ - [marketplace](https://github.com/traderinteractive/marketplace) (partial integration)
40
+ - [marketplace/frontend](https://github.com/traderinteractive/marketplace/tree/qa/frontend)
41
+ - [marketplace-ssr](https://github.com/traderinteractive/marketplace-ssr)
42
+ - [aim-myt](https://github.com/traderinteractive/aim-myt)
43
+ - [aim-paa](https://github.com/traderinteractive/aim-paa)
@@ -25,8 +25,8 @@
25
25
  /* top */
26
26
  radial-gradient(
27
27
  157.36% 151.94% at 19.69% -3.53%,
28
- color-mix(in srgb, var(--tide-realm-pistachio) 42%, transparent) 28.37%,
29
- color-mix(in srgb, var(--tide-realm-pistachio) 0%, transparent) 100%
28
+ color-mix(in srgb, var(--tide-realm-mint) 42%, transparent) 28.37%,
29
+ color-mix(in srgb, var(--tide-realm-mint) 0%, transparent) 100%
30
30
  ),
31
31
  /* bottom left */
32
32
  radial-gradient(
@@ -370,17 +370,10 @@
370
370
  .lg-tide-text-transform-none {text-transform: none;}
371
371
  .lg-tide-text-transform-upper {text-transform: uppercase;}
372
372
 
373
- .lg-tide-underline,
374
- .lg-tide-underline:hover,
375
- .lg-tide-underline-hover:hover {
376
- text-decoration: underline;
377
- }
378
-
379
- .lg-tide-underline-none,
380
- .lg-tide-underline-none:hover,
381
- .lg-tide-underline-hover {
382
- text-decoration: none;
383
- }
373
+ .lg-tide-underline {text-decoration: underline;}
374
+ .lg-tide-underline-none {text-decoration: none;}
375
+ .lg-tide-underline-hover:hover {text-decoration: underline;}
376
+ .lg-tide-underline-hover-none:hover {text-decoration: none;}
384
377
 
385
378
  .lg-tide-visible {visibility: visible;}
386
379
  .lg-tide-visible-none {visibility: hidden;}
@@ -371,17 +371,10 @@
371
371
  .md-tide-text-transform-none {text-transform: none;}
372
372
  .md-tide-text-transform-upper {text-transform: uppercase;}
373
373
 
374
- .md-tide-underline,
375
- .md-tide-underline:hover,
376
- .md-tide-underline-hover:hover {
377
- text-decoration: underline;
378
- }
379
-
380
- .md-tide-underline-none,
381
- .md-tide-underline-none:hover,
382
- .md-tide-underline-hover {
383
- text-decoration: none;
384
- }
374
+ .md-tide-underline {text-decoration: underline;}
375
+ .md-tide-underline-none {text-decoration: none;}
376
+ .md-tide-underline-hover:hover {text-decoration: underline;}
377
+ .md-tide-underline-hover-none:hover {text-decoration: none;}
385
378
 
386
379
  .md-tide-visible {visibility: visible;}
387
380
  .md-tide-visible-none {visibility: hidden;}
@@ -370,17 +370,10 @@
370
370
  .sm-tide-text-transform-none {text-transform: none;}
371
371
  .sm-tide-text-transform-upper {text-transform: uppercase;}
372
372
 
373
- .sm-tide-underline,
374
- .sm-tide-underline:hover,
375
- .sm-tide-underline-hover:hover {
376
- text-decoration: underline;
377
- }
378
-
379
- .sm-tide-underline-none,
380
- .sm-tide-underline-none:hover,
381
- .sm-tide-underline-hover {
382
- text-decoration: none;
383
- }
373
+ .sm-tide-underline {text-decoration: underline;}
374
+ .sm-tide-underline-none {text-decoration: none;}
375
+ .sm-tide-underline-hover:hover {text-decoration: underline;}
376
+ .sm-tide-underline-hover-none:hover {text-decoration: none;}
384
377
 
385
378
  .sm-tide-visible {visibility: visible;}
386
379
  .sm-tide-visible-none {visibility: hidden;}