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.
@@ -9,6 +9,7 @@ export const CSS = {
9
9
  ALIGN: {
10
10
  X: {
11
11
  CENTER: 'tide-text-center',
12
+ JUSTIFY: 'tide-text-justify',
12
13
  LEFT: 'tide-text-left',
13
14
  RIGHT: 'tide-text-right',
14
15
  },
@@ -478,6 +479,10 @@ export const CSS = {
478
479
  SNAP_ALIGN: {
479
480
  START: 'tide-scroll-snap-start',
480
481
  },
482
+ STRIKETHROUGH: {
483
+ OFF: 'tide-strikethrough-none',
484
+ ON: 'tide-strikethrough',
485
+ },
481
486
  TEXT_TRANSFORM: {
482
487
  LOWER: 'tide-text-transform-lower',
483
488
  NONE: 'tide-text-transform-none',
@@ -103,12 +103,21 @@ export const disabledArgType = {
103
103
 
104
104
  export const isProduction = process.env.NODE_ENV === 'production';
105
105
 
106
- export const doSomething = () => {
107
- alert('Did something.');
106
+ export const doSomething = (message: string = 'Did something.') => {
107
+ const doSomethingAlert = document.getElementById('do-something-alert');
108
+
109
+ if (!doSomethingAlert) return;
110
+
111
+ doSomethingAlert.innerHTML = message;
112
+ doSomethingAlert.style.opacity = '1';
113
+
114
+ setTimeout(() => {
115
+ doSomethingAlert.style.opacity = '0';
116
+ }, 1000);
108
117
  };
109
118
 
110
119
  export const doSomethingElse = () => {
111
- alert('Did something else.');
120
+ doSomething('Did something else.');
112
121
  };
113
122
 
114
123
  // Flatten a nested constant into a simple constant.