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
@@ -76,6 +76,16 @@ export const click = {
76
76
  },
77
77
  };
78
78
 
79
+ export const close = {
80
+ control: 'text',
81
+ description: 'JS code or function to execute on close event',
82
+ isEmit: true,
83
+ table: {
84
+ defaultValue: { summary: 'None' },
85
+ type: { summary: '() => void' },
86
+ },
87
+ };
88
+
79
89
  export const dataTrack = {
80
90
  control: 'text',
81
91
  description: 'Data attribute for external tracking',
@@ -91,6 +101,8 @@ export const disabledArgType = {
91
101
  },
92
102
  };
93
103
 
104
+ export const isProduction = process.env.NODE_ENV === 'production';
105
+
94
106
  export const doSomething = () => {
95
107
  alert('Did something.');
96
108
  };
@@ -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';
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.2.4",
64
+ "version": "2.2.6",
65
65
  "dependencies": {
66
66
  "@floating-ui/vue": "^1.1.6"
67
67
  }
@@ -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;}