tide-design-system 2.2.15 → 2.2.16

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.
@@ -2,6 +2,8 @@ import { useArgs } from '@storybook/preview-api';
2
2
 
3
3
  import type { Preview } from '@storybook/vue3';
4
4
 
5
+ import { setup } from '@storybook/vue3';
6
+
5
7
  import '@/assets/css/main.css';
6
8
  import '@/assets/css/reset.css';
7
9
  import '@/assets/css/storybook.css';
@@ -11,6 +13,7 @@ import DemoCssUtilitiesByTextInput from '../src/stories/DemoCssUtilitiesByTextIn
11
13
  import FoundationsGrid from '../src/stories/FoundationsGrid.stories';
12
14
  import FoundationsMargin from '../src/stories/FoundationsMargin.stories';
13
15
  import { isProduction } from '../src/utilities/storybook';
16
+ import TideAlert from '../src/components/TideAlert.vue';
14
17
 
15
18
  const cssRoot = isProduction ? '/assets/css/realm' : '/src/assets/css/realm';
16
19
 
@@ -42,7 +45,7 @@ const preview: Preview = {
42
45
 
43
46
  return {
44
47
  components: { story },
45
- template: `<div class="${decoratorCss} tide-padding-bottom-4 ${context.globals.surfaceBg} ${context.globals.surfaceFg}"><story /></div>`
48
+ template: `<div class="${decoratorCss} tide-padding-bottom-4 ${context.globals.surfaceBg} ${context.globals.surfaceFg}"><story /></div><div class="tide-position-absolute tide-display-flex tide-axis1-end tide-right-0 tide-top-0 tide-width-full tide-pointer-events-none"><TideAlert :class="['tide-margin-1 tide-width-full']" id="do-something-alert" is-dismissible="false" is-toast="true" heading="Did something." style="opacity: 0; transition: opacity ease-in-out 300ms;" /></div>`
46
49
  };
47
50
  },
48
51
  (story, context) => {
@@ -246,4 +249,8 @@ const preview: Preview = {
246
249
  },
247
250
  };
248
251
 
252
+ setup((app) => {
253
+ app.component('TideAlert', TideAlert);
254
+ });
255
+
249
256
  export default preview;
@@ -78,7 +78,7 @@ button:disabled {
78
78
 
79
79
  /* cross-browser normalization */
80
80
  input::placeholder {
81
- color: var(--tide-gray); /* TODO: replace with an accessible light text color from design system */
81
+ color: var(--tide-gray-700);
82
82
  opacity: 1;
83
83
  }
84
84
 
@@ -411,9 +411,13 @@
411
411
  .lg-tide-shadow-top {box-shadow: var(--tide-shadow-top);}
412
412
  .lg-tide-shadow-text {text-shadow: var(--tide-shadow-text);}
413
413
 
414
- .lg-tide-text-center {text-align: center;}
415
- .lg-tide-text-left {text-align: left;}
416
- .lg-tide-text-right {text-align: right;}
414
+ .lg-tide-strikethrough {text-decoration: line-through;}
415
+ .lg-tide-strikethrough-none {text-decoration: none;}
416
+
417
+ .lg-tide-text-center {text-align: center;}
418
+ .lg-tide-text-justify {text-align: justify;}
419
+ .lg-tide-text-left {text-align: left;}
420
+ .lg-tide-text-right {text-align: right;}
417
421
 
418
422
  .lg-tide-text-transform-lower {text-transform: lowercase;}
419
423
  .lg-tide-text-transform-none {text-transform: none;}
@@ -411,9 +411,13 @@
411
411
  .md-tide-shadow-top {box-shadow: var(--tide-shadow-top);}
412
412
  .md-tide-shadow-text {text-shadow: var(--tide-shadow-text);}
413
413
 
414
- .md-tide-text-center {text-align: center;}
415
- .md-tide-text-left {text-align: left;}
416
- .md-tide-text-right {text-align: right;}
414
+ .md-tide-strikethrough {text-decoration: line-through;}
415
+ .md-tide-strikethrough-none {text-decoration: none;}
416
+
417
+ .md-tide-text-center {text-align: center;}
418
+ .md-tide-text-justify {text-align: justify;}
419
+ .md-tide-text-left {text-align: left;}
420
+ .md-tide-text-right {text-align: right;}
417
421
 
418
422
  .md-tide-text-transform-lower {text-transform: lowercase;}
419
423
  .md-tide-text-transform-none {text-transform: none;}
@@ -411,9 +411,13 @@
411
411
  .sm-tide-shadow-top {box-shadow: var(--tide-shadow-top);}
412
412
  .sm-tide-shadow-text {text-shadow: var(--tide-shadow-text);}
413
413
 
414
- .sm-tide-text-center {text-align: center;}
415
- .sm-tide-text-left {text-align: left;}
416
- .sm-tide-text-right {text-align: right;}
414
+ .sm-tide-strikethrough {text-decoration: line-through;}
415
+ .sm-tide-strikethrough-none {text-decoration: none;}
416
+
417
+ .sm-tide-text-center {text-align: center;}
418
+ .sm-tide-text-justify {text-align: justify;}
419
+ .sm-tide-text-left {text-align: left;}
420
+ .sm-tide-text-right {text-align: right;}
417
421
 
418
422
  .sm-tide-text-transform-lower {text-transform: lowercase;}
419
423
  .sm-tide-text-transform-none {text-transform: none;}
@@ -411,9 +411,13 @@
411
411
  .xl-tide-shadow-top {box-shadow: var(--tide-shadow-top);}
412
412
  .xl-tide-shadow-text {text-shadow: var(--tide-shadow-text);}
413
413
 
414
- .xl-tide-text-center {text-align: center;}
415
- .xl-tide-text-left {text-align: left;}
416
- .xl-tide-text-right {text-align: right;}
414
+ .xl-tide-strikethrough {text-decoration: line-through;}
415
+ .xl-tide-strikethrough-none {text-decoration: none;}
416
+
417
+ .xl-tide-text-center {text-align: center;}
418
+ .xl-tide-text-justify {text-align: justify;}
419
+ .xl-tide-text-left {text-align: left;}
420
+ .xl-tide-text-right {text-align: right;}
417
421
 
418
422
  .xl-tide-text-transform-lower {text-transform: lowercase;}
419
423
  .xl-tide-text-transform-none {text-transform: none;}
@@ -410,9 +410,13 @@
410
410
  .tide-shadow-top {box-shadow: var(--tide-shadow-top);}
411
411
  .tide-shadow-text {text-shadow: var(--tide-shadow-text);}
412
412
 
413
- .tide-text-center {text-align: center;}
414
- .tide-text-left {text-align: left;}
415
- .tide-text-right {text-align: right;}
413
+ .tide-strikethrough {text-decoration: line-through;}
414
+ .tide-strikethrough-none {text-decoration: none;}
415
+
416
+ .tide-text-center {text-align: center;}
417
+ .tide-text-justify {text-align: justify;}
418
+ .tide-text-left {text-align: left;}
419
+ .tide-text-right {text-align: right;}
416
420
 
417
421
  .tide-text-transform-lower {text-transform: lowercase;}
418
422
  .tide-text-transform-none {text-transform: none;}
@@ -53,7 +53,7 @@
53
53
  --tide-transparent-400: color-mix(in srgb, black 50%, transparent);
54
54
 
55
55
  /* Blur */
56
- --tide-bg-blur: var(--tide-bg-blur);
56
+ --tide-bg-blur: 8px;
57
57
 
58
58
  /* Global tonal palette */
59
59
  --tide-gray-100: #FFFFFF;