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.
- package/.storybook/preview.ts +8 -1
- package/dist/css/main.css +0 -6
- package/dist/css/reset.css +1 -1
- package/dist/css/utilities-base.css +541 -0
- package/dist/css/utilities-responsive.css +2717 -0
- package/dist/css/utilities.css +2 -442
- package/dist/css/variables.css +1 -1
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +16 -99
- package/dist/tide-design-system.esm.js +1177 -1169
- package/dist/utilities/storybook.ts +12 -3
- package/dist/utilities/validation.ts +5 -1
- package/index.ts +3 -18
- package/package.json +1 -1
- package/src/assets/css/main.css +0 -6
- package/src/assets/css/reset.css +1 -1
- package/src/assets/css/utilities-base.css +541 -0
- package/src/assets/css/utilities-responsive.css +2717 -0
- package/src/assets/css/utilities.css +2 -442
- package/src/assets/css/variables.css +1 -1
- package/src/components/TideImage.vue +7 -1
- package/src/components/TideInputCheckbox.vue +3 -5
- package/src/components/TideInputRadio.vue +18 -5
- package/src/components/TideInputText.vue +50 -50
- package/src/components/TideInputTextarea.vue +17 -22
- package/src/components/TidePopover.vue +8 -3
- package/src/contexts/sandbox/AppSandbox.vue +3 -1
- package/src/docs/integration-partial.md +0 -7
- package/src/stories/TideInputRadio.stories.ts +9 -0
- package/src/types/Styles.ts +5 -0
- package/src/utilities/storybook.ts +12 -3
- package/src/utilities/validation.ts +5 -1
- package/dist/css/dynamic-buttons.css +0 -346
- package/dist/css/dynamic-utilities.css +0 -152
- package/dist/css/utilities-lg.css +0 -444
- package/dist/css/utilities-md.css +0 -444
- package/dist/css/utilities-sm.css +0 -444
- package/dist/css/utilities-xl.css +0 -444
- package/src/assets/css/dynamic-buttons.css +0 -346
- package/src/assets/css/dynamic-utilities.css +0 -152
- package/src/assets/css/utilities-lg.css +0 -444
- package/src/assets/css/utilities-md.css +0 -444
- package/src/assets/css/utilities-sm.css +0 -444
- package/src/assets/css/utilities-xl.css +0 -444
- package/src/types/Detail.ts +0 -4
- package/src/types/FacetRange.ts +0 -84
- package/src/types/ListingMedia.ts +0 -43
- package/src/types/Raw.ts +0 -5
- 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
|
-
|
|
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
|
-
|
|
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
package/src/assets/css/main.css
CHANGED
|
@@ -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';
|
package/src/assets/css/reset.css
CHANGED