tide-design-system 2.2.15 → 2.3.0

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 (50) hide show
  1. package/.storybook/preview.ts +8 -1
  2. package/dist/css/main.css +0 -6
  3. package/dist/css/reset.css +1 -1
  4. package/dist/css/utilities-base.css +541 -0
  5. package/dist/css/utilities-responsive.css +2717 -0
  6. package/dist/css/utilities.css +2 -442
  7. package/dist/css/variables.css +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/tide-design-system.cjs +2 -2
  10. package/dist/tide-design-system.esm.d.ts +16 -99
  11. package/dist/tide-design-system.esm.js +1177 -1169
  12. package/dist/utilities/storybook.ts +12 -3
  13. package/dist/utilities/validation.ts +5 -1
  14. package/index.ts +3 -18
  15. package/package.json +1 -1
  16. package/src/assets/css/main.css +0 -6
  17. package/src/assets/css/reset.css +1 -1
  18. package/src/assets/css/utilities-base.css +541 -0
  19. package/src/assets/css/utilities-responsive.css +2717 -0
  20. package/src/assets/css/utilities.css +2 -442
  21. package/src/assets/css/variables.css +1 -1
  22. package/src/components/TideImage.vue +7 -1
  23. package/src/components/TideInputCheckbox.vue +3 -5
  24. package/src/components/TideInputRadio.vue +18 -5
  25. package/src/components/TideInputText.vue +50 -50
  26. package/src/components/TideInputTextarea.vue +17 -22
  27. package/src/components/TidePopover.vue +8 -3
  28. package/src/contexts/sandbox/AppSandbox.vue +3 -1
  29. package/src/docs/integration-partial.md +0 -7
  30. package/src/stories/TideInputRadio.stories.ts +9 -0
  31. package/src/types/Styles.ts +5 -0
  32. package/src/utilities/storybook.ts +12 -3
  33. package/src/utilities/validation.ts +5 -1
  34. package/dist/css/dynamic-buttons.css +0 -346
  35. package/dist/css/dynamic-utilities.css +0 -152
  36. package/dist/css/utilities-lg.css +0 -444
  37. package/dist/css/utilities-md.css +0 -444
  38. package/dist/css/utilities-sm.css +0 -444
  39. package/dist/css/utilities-xl.css +0 -444
  40. package/src/assets/css/dynamic-buttons.css +0 -346
  41. package/src/assets/css/dynamic-utilities.css +0 -152
  42. package/src/assets/css/utilities-lg.css +0 -444
  43. package/src/assets/css/utilities-md.css +0 -444
  44. package/src/assets/css/utilities-sm.css +0 -444
  45. package/src/assets/css/utilities-xl.css +0 -444
  46. package/src/types/Detail.ts +0 -4
  47. package/src/types/FacetRange.ts +0 -84
  48. package/src/types/ListingMedia.ts +0 -43
  49. package/src/types/Raw.ts +0 -5
  50. package/src/types/RealmConfig.ts +0 -14
@@ -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.
@@ -1,11 +1,15 @@
1
1
  import { priceToNumber } from '@/utilities/format';
2
2
 
3
- import type { RangeData } from '@/types/FacetRange';
4
3
  import type { StringInput } from '@/types/Form';
5
4
  import type { SelectOption } from '@/types/Select';
6
5
  import type { ValidationError, ValidationLength, ValidationResult, Validator } from '@/types/Validation';
7
6
  import type { Ref } from 'vue';
8
7
 
8
+ type RangeData = {
9
+ min: number | null;
10
+ max: number | null;
11
+ };
12
+
9
13
  export const errorMessageDefault = 'Please enter a valid value.';
10
14
 
11
15
  export const noError = {
package/index.ts CHANGED
@@ -32,14 +32,13 @@ import TideSeoLinks from '@/components/TideSeoLinks.vue';
32
32
  import TideSheet from '@/components/TideSheet.vue';
33
33
  import TideSwitch from '@/components/TideSwitch.vue';
34
34
  import { ALERT } from '@/types/Alert';
35
- import { BADGE_TRUSTED } from '@/types/Badge';
35
+ import { BADGE_COLOR, BADGE_COLOR_DETAILS, BADGE_TRUSTED } from '@/types/Badge';
36
36
  import { BREAKPOINT, MEDIA } from '@/types/Breakpoint';
37
37
  import { TYPE_CARD } from '@/types/Card';
38
38
  import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
39
39
  import { FORMAT, FORMAT_REGEX } from '@/types/Formatted';
40
40
  import { ICON, ICON_REALM } from '@/types/Icon';
41
41
  import { OBJECT_FIT } from '@/types/Image';
42
- import { MEDIA_SLIDE_TYPES } from '@/types/ListingMedia';
43
42
  import { ORIENTATION } from '@/types/Orientation';
44
43
  import { PRIORITY } from '@/types/Priority';
45
44
  import { REALM } from '@/types/Realm';
@@ -54,9 +53,7 @@ import type { BadgeTrustedYears } from '@/types/Badge';
54
53
  import type { BreadCrumb } from '@/types/BreadCrumb';
55
54
  import type { Breakpoint, Media } from '@/types/Breakpoint';
56
55
  import type { CardType } from '@/types/Card';
57
- import type { Detail } from '@/types/Detail';
58
56
  import type { Element, ElementTextAsIcon } from '@/types/Element';
59
- import type { FacetComponentIdRange, RangeData } from '@/types/FacetRange';
60
57
  import type {
61
58
  BooleanField,
62
59
  BooleanValue,
@@ -84,12 +81,9 @@ import type { Formatted } from '@/types/Formatted';
84
81
  import type { Icon } from '@/types/Icon';
85
82
  import type { ObjectFit } from '@/types/Image';
86
83
  import type { Link } from '@/types/Link';
87
- import type { ImageSlideType, ListingMedia, MediaSlideType, VideoSlideType, VrSlideType } from '@/types/ListingMedia';
88
84
  import type { Orientation } from '@/types/Orientation';
89
85
  import type { Priority } from '@/types/Priority';
90
- import type { Raw } from '@/types/Raw';
91
86
  import type { Realm } from '@/types/Realm';
92
- import type { RealmConfig } from '@/types/RealmConfig';
93
87
  import type { SelectOption, SelectOptionGroup } from '@/types/Select';
94
88
  import type { Size, SizeButton } from '@/types/Size';
95
89
  import type { Source } from '@/types/Source';
@@ -111,29 +105,21 @@ export type {
111
105
  CardType,
112
106
  CheckboxField,
113
107
  CheckboxInput,
114
- Detail,
115
108
  Element,
116
109
  ElementTextAsIcon,
117
- FacetComponentIdRange,
118
110
  Field,
119
111
  FormValueTransformer,
120
112
  Formatted,
121
113
  GenericField,
122
114
  GenericInput,
123
115
  Icon,
124
- ImageSlideType,
125
116
  Input,
126
117
  Link,
127
- ListingMedia,
128
118
  Media,
129
- MediaSlideType,
130
119
  ObjectFit,
131
120
  Orientation,
132
121
  Priority,
133
- RangeData,
134
- Raw,
135
122
  Realm,
136
- RealmConfig,
137
123
  SelectField,
138
124
  SelectInput,
139
125
  SelectOptionGroup,
@@ -155,12 +141,12 @@ export type {
155
141
  ValidationLength,
156
142
  ValidationResult,
157
143
  Validator,
158
- VideoSlideType,
159
- VrSlideType,
160
144
  };
161
145
 
162
146
  export {
163
147
  ALERT,
148
+ BADGE_COLOR,
149
+ BADGE_COLOR_DETAILS,
164
150
  BADGE_TRUSTED,
165
151
  BREAKPOINT,
166
152
  CSS,
@@ -171,7 +157,6 @@ export {
171
157
  ICON,
172
158
  ICON_REALM,
173
159
  MEDIA,
174
- MEDIA_SLIDE_TYPES,
175
160
  OBJECT_FIT,
176
161
  ORIENTATION,
177
162
  PRIORITY,
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.15",
64
+ "version": "2.3.0",
65
65
  "dependencies": {
66
66
  "@floating-ui/vue": "^1.1.6"
67
67
  }
@@ -2,10 +2,4 @@
2
2
  @import './reset.css';
3
3
  @import './variables.css';
4
4
  @import './utilities.css';
5
- @import './utilities-sm.css';
6
- @import './utilities-md.css';
7
- @import './utilities-lg.css';
8
- @import './utilities-xl.css';
9
- @import './dynamic-buttons.css';
10
- @import './dynamic-utilities.css';
11
5
  @import './grid-layout.css';
@@ -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