tide-design-system 2.5.8 → 2.5.9
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/README.md +1 -0
- package/dist/IconCalculate-Bbp4hHOW.js +16 -0
- package/dist/IconCalculate-CGwDSRuU.cjs +2 -0
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.js +1255 -1211
- package/dist/utilities/storybook.ts +0 -2
- package/docs/images.md +50 -0
- package/package.json +2 -2
- package/src/assets/svg/icons/IconCalculate.svg +3 -0
- package/src/components/TideAlert.vue +19 -1
- package/src/components/TideBadge.vue +16 -0
- package/src/components/TideBadgeTrustedPartner.vue +10 -0
- package/src/components/TideBadgeVerifiedVehicle.vue +9 -0
- package/src/components/TideBreadCrumbs.vue +10 -0
- package/src/components/TideButton.vue +9 -0
- package/src/components/TideButtonIcon.vue +9 -0
- package/src/components/TideButtonPagination.vue +16 -0
- package/src/components/TideButtonSave.vue +9 -0
- package/src/components/TideButtonSegmented.vue +10 -0
- package/src/components/TideCard.vue +21 -1
- package/src/components/TideCarousel.vue +24 -0
- package/src/components/TideChipAction.vue +1 -0
- package/src/components/TideChipFilter.vue +10 -0
- package/src/components/TideChipInput.vue +10 -0
- package/src/components/TideColumns.vue +10 -0
- package/src/components/TideDivider.vue +10 -0
- package/src/components/TideForm.vue +9 -0
- package/src/components/TideIcon.vue +12 -0
- package/src/components/TideImage.vue +34 -4
- package/src/components/TideImageBackground.vue +16 -0
- package/src/components/TideIndicator.vue +10 -0
- package/src/components/TideInputCheckbox.vue +24 -0
- package/src/components/TideInputRadio.vue +20 -0
- package/src/components/TideInputSelect.vue +2 -2
- package/src/components/TideInputSupportingText.vue +9 -0
- package/src/components/TideInputText.vue +47 -1
- package/src/components/TideInputTextarea.vue +30 -0
- package/src/components/TideLink.vue +24 -0
- package/src/components/TideModal.vue +9 -0
- package/src/components/TidePopover.vue +12 -0
- package/src/components/TideRating.vue +16 -0
- package/src/components/TideRealmLogo.vue +9 -0
- package/src/components/TideSheet.vue +9 -0
- package/src/components/TideSwitch.vue +10 -0
- package/src/components/TideTabs.vue +10 -0
- package/src/components/TideToaster.vue +9 -0
- package/src/stories/TideAccordionItem.stories.ts +4 -12
- package/src/stories/TideAlert.stories.ts +2 -11
- package/src/stories/TideBadge.stories.ts +0 -4
- package/src/stories/TideBadgeTrustedPartner.stories.ts +0 -1
- package/src/stories/TideBreadCrumbs.stories.ts +0 -1
- package/src/stories/TideButtonPagination.stories.ts +0 -4
- package/src/stories/TideButtonSegmented.stories.ts +0 -1
- package/src/stories/TideCard.stories.ts +9 -8
- package/src/stories/TideCarousel.stories.ts +0 -7
- package/src/stories/TideChipAction.stories.ts +2 -2
- package/src/stories/TideChipFilter.stories.ts +0 -1
- package/src/stories/TideChipInput.stories.ts +0 -1
- package/src/stories/TideColumns.stories.ts +0 -1
- package/src/stories/TideDivider.stories.ts +0 -1
- package/src/stories/TideIcon.stories.ts +0 -2
- package/src/stories/TideImage.stories.ts +1 -11
- package/src/stories/TideImageBackground.stories.ts +1 -7
- package/src/stories/TideIndicator.stories.ts +0 -1
- package/src/stories/TideInputCheckbox.stories.ts +2 -14
- package/src/stories/TideInputRadio.stories.ts +1 -9
- package/src/stories/TideInputSelect.stories.ts +2 -8
- package/src/stories/TideInputText.stories.ts +1 -22
- package/src/stories/TideInputTextarea.stories.ts +1 -14
- package/src/stories/TideLink.stories.ts +1 -10
- package/src/stories/TidePopover.stories.ts +0 -2
- package/src/stories/TideRating.stories.ts +1 -7
- package/src/stories/TideSwitch.stories.ts +1 -4
- package/src/stories/TideTabs.stories.ts +0 -1
- package/src/types/Icon.ts +1 -0
- package/src/utilities/storybook.ts +0 -2
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
disabledArgType: disabledArgType, // Force updated() trigger when orientation is set to undefined.
|
|
33
33
|
orientation: {
|
|
34
34
|
...formatArgType({ ORIENTATION }),
|
|
35
|
-
description: 'Determines whether Divider is horizontal or vertical',
|
|
36
35
|
},
|
|
37
36
|
},
|
|
38
37
|
args: {
|
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
argTypes: {
|
|
65
65
|
alt: {
|
|
66
66
|
control: 'text',
|
|
67
|
-
description: `Text display when image can't be loaded.`,
|
|
68
67
|
table: {
|
|
69
68
|
defaultValue: { summary: 'None' },
|
|
70
69
|
type: { summary: 'string' },
|
|
@@ -72,27 +71,20 @@ export default {
|
|
|
72
71
|
},
|
|
73
72
|
height: {
|
|
74
73
|
control: 'text',
|
|
75
|
-
description: 'Apply a "height" attribute to the internal image tag (including unit).',
|
|
76
74
|
table: {
|
|
77
75
|
defaultValue: { summary: 'None' },
|
|
78
76
|
type: { summary: 'string' },
|
|
79
77
|
},
|
|
80
78
|
},
|
|
81
|
-
isLazy:
|
|
82
|
-
...argTypeBooleanUnrequired,
|
|
83
|
-
description: `Determines whether to delay loading until image is in viewport.`,
|
|
84
|
-
},
|
|
79
|
+
isLazy: argTypeBooleanUnrequired,
|
|
85
80
|
objectFit: {
|
|
86
81
|
...formatArgType({ OBJECT_FIT_OPTIONS }),
|
|
87
|
-
description:
|
|
88
|
-
'Controls how the image scales within its box, effective only when image size differs from its intrinsic dimensions.',
|
|
89
82
|
table: {
|
|
90
83
|
defaultValue: { summary: 'None' },
|
|
91
84
|
},
|
|
92
85
|
},
|
|
93
86
|
sources: {
|
|
94
87
|
control: 'object',
|
|
95
|
-
description: `Determines image sources by breakpoint.`,
|
|
96
88
|
isCustom: true,
|
|
97
89
|
table: {
|
|
98
90
|
defaultValue: { summary: 'None' },
|
|
@@ -101,7 +93,6 @@ export default {
|
|
|
101
93
|
},
|
|
102
94
|
src: {
|
|
103
95
|
control: 'text',
|
|
104
|
-
description: `Image URL.`,
|
|
105
96
|
table: {
|
|
106
97
|
defaultValue: { summary: 'None' },
|
|
107
98
|
type: { summary: 'string' },
|
|
@@ -109,7 +100,6 @@ export default {
|
|
|
109
100
|
},
|
|
110
101
|
width: {
|
|
111
102
|
control: 'text',
|
|
112
|
-
description: 'Apply a "width" attribute to the internal image tag (including unit).',
|
|
113
103
|
table: {
|
|
114
104
|
defaultValue: { summary: 'None' },
|
|
115
105
|
type: { summary: 'string' },
|
|
@@ -68,7 +68,6 @@ export default {
|
|
|
68
68
|
argTypes: {
|
|
69
69
|
alt: {
|
|
70
70
|
control: 'text',
|
|
71
|
-
description: `Text display when image can't be loaded.`,
|
|
72
71
|
table: {
|
|
73
72
|
defaultValue: { summary: 'None' },
|
|
74
73
|
type: { summary: 'string' },
|
|
@@ -82,13 +81,9 @@ export default {
|
|
|
82
81
|
type: { summary: 'HTML' },
|
|
83
82
|
},
|
|
84
83
|
},
|
|
85
|
-
isLazy:
|
|
86
|
-
...argTypeBooleanUnrequired,
|
|
87
|
-
description: `Determines whether to delay loading until image is in viewport.`,
|
|
88
|
-
},
|
|
84
|
+
isLazy: argTypeBooleanUnrequired,
|
|
89
85
|
sources: {
|
|
90
86
|
control: 'object',
|
|
91
|
-
description: `Determines image sources by breakpoint.`,
|
|
92
87
|
table: {
|
|
93
88
|
defaultValue: { summary: 'None' },
|
|
94
89
|
type: { summary: 'Source[]' },
|
|
@@ -96,7 +91,6 @@ export default {
|
|
|
96
91
|
},
|
|
97
92
|
src: {
|
|
98
93
|
control: 'text',
|
|
99
|
-
description: `Image URL.`,
|
|
100
94
|
table: {
|
|
101
95
|
defaultValue: { summary: 'None' },
|
|
102
96
|
type: { summary: 'string' },
|
|
@@ -52,13 +52,9 @@ const render = (args: Args) => ({
|
|
|
52
52
|
export default {
|
|
53
53
|
argTypes: {
|
|
54
54
|
dataTrack,
|
|
55
|
-
disabled:
|
|
56
|
-
...argTypeBooleanUnrequired,
|
|
57
|
-
description: 'Determines whether Checkbox state is interactable',
|
|
58
|
-
},
|
|
55
|
+
disabled: argTypeBooleanUnrequired,
|
|
59
56
|
error: {
|
|
60
57
|
control: 'text',
|
|
61
|
-
description: 'Overrides the default error message and valid state',
|
|
62
58
|
table: {
|
|
63
59
|
defaultValue: { summary: 'None' },
|
|
64
60
|
type: { summary: 'string' },
|
|
@@ -77,12 +73,10 @@ export default {
|
|
|
77
73
|
},
|
|
78
74
|
indeterminate: {
|
|
79
75
|
...argTypeBooleanUnrequired,
|
|
80
|
-
description: 'Determines whether Checkbox is indeterminate',
|
|
81
76
|
if: { arg: 'checked', eq: true },
|
|
82
77
|
},
|
|
83
78
|
inputId: {
|
|
84
79
|
control: 'text',
|
|
85
|
-
description: 'Unique ID attribute<br />(to bind Checkbox label to input)',
|
|
86
80
|
table: {
|
|
87
81
|
defaultValue: { summary: 'None' },
|
|
88
82
|
type: { summary: 'string' },
|
|
@@ -90,7 +84,6 @@ export default {
|
|
|
90
84
|
},
|
|
91
85
|
label: {
|
|
92
86
|
control: 'text',
|
|
93
|
-
description: 'Label content',
|
|
94
87
|
table: {
|
|
95
88
|
defaultValue: { summary: 'None' },
|
|
96
89
|
type: { summary: 'string' },
|
|
@@ -98,7 +91,6 @@ export default {
|
|
|
98
91
|
},
|
|
99
92
|
name: {
|
|
100
93
|
control: 'text',
|
|
101
|
-
description: 'Name attribute',
|
|
102
94
|
table: {
|
|
103
95
|
defaultValue: { summary: 'None' },
|
|
104
96
|
type: { summary: 'string' },
|
|
@@ -106,16 +98,12 @@ export default {
|
|
|
106
98
|
},
|
|
107
99
|
number: {
|
|
108
100
|
control: 'text',
|
|
109
|
-
description: 'Parenthetical response count',
|
|
110
101
|
table: {
|
|
111
102
|
defaultValue: { summary: 'None' },
|
|
112
103
|
type: { summary: 'number' },
|
|
113
104
|
},
|
|
114
105
|
},
|
|
115
|
-
required:
|
|
116
|
-
...argTypeBooleanUnrequired,
|
|
117
|
-
description: 'Determines whether input is required',
|
|
118
|
-
},
|
|
106
|
+
required: argTypeBooleanUnrequired,
|
|
119
107
|
vModel: {
|
|
120
108
|
control: 'boolean',
|
|
121
109
|
description: 'Data binding to Vue ref',
|
|
@@ -34,13 +34,9 @@ const render = (args: Args, context: StoryContext) => ({
|
|
|
34
34
|
export default {
|
|
35
35
|
argTypes: {
|
|
36
36
|
dataTrack,
|
|
37
|
-
disabled:
|
|
38
|
-
...argTypeBooleanUnrequired,
|
|
39
|
-
description: 'Determines whether input is interactable',
|
|
40
|
-
},
|
|
37
|
+
disabled: argTypeBooleanUnrequired,
|
|
41
38
|
inputId: {
|
|
42
39
|
control: 'text',
|
|
43
|
-
description: 'Unique ID attribute<br />(to bind input label to input)',
|
|
44
40
|
table: {
|
|
45
41
|
defaultValue: { summary: 'None' },
|
|
46
42
|
type: { summary: 'string' },
|
|
@@ -48,7 +44,6 @@ export default {
|
|
|
48
44
|
},
|
|
49
45
|
label: {
|
|
50
46
|
control: 'text',
|
|
51
|
-
description: 'Label content',
|
|
52
47
|
table: {
|
|
53
48
|
defaultValue: { summary: 'None' },
|
|
54
49
|
type: { summary: 'string' },
|
|
@@ -56,7 +51,6 @@ export default {
|
|
|
56
51
|
},
|
|
57
52
|
name: {
|
|
58
53
|
control: 'text',
|
|
59
|
-
description: 'Name attribute',
|
|
60
54
|
table: {
|
|
61
55
|
defaultValue: { summary: 'None' },
|
|
62
56
|
type: { summary: 'string' },
|
|
@@ -64,7 +58,6 @@ export default {
|
|
|
64
58
|
},
|
|
65
59
|
number: {
|
|
66
60
|
control: 'text',
|
|
67
|
-
description: 'Parenthetical response count',
|
|
68
61
|
table: {
|
|
69
62
|
defaultValue: { summary: 'None' },
|
|
70
63
|
type: { summary: 'number' },
|
|
@@ -81,7 +74,6 @@ export default {
|
|
|
81
74
|
},
|
|
82
75
|
value: {
|
|
83
76
|
control: 'text',
|
|
84
|
-
description: 'Value attribute',
|
|
85
77
|
table: {
|
|
86
78
|
defaultValue: { summary: 'None' },
|
|
87
79
|
type: { summary: 'string' },
|
|
@@ -121,10 +121,7 @@ export default {
|
|
|
121
121
|
argTypes: {
|
|
122
122
|
change,
|
|
123
123
|
dataTrack,
|
|
124
|
-
disabled:
|
|
125
|
-
...argTypeBooleanUnrequired,
|
|
126
|
-
description: 'Determines whether Select is interactable',
|
|
127
|
-
},
|
|
124
|
+
disabled: argTypeBooleanUnrequired,
|
|
128
125
|
error: {
|
|
129
126
|
control: 'text',
|
|
130
127
|
table: {
|
|
@@ -193,10 +190,7 @@ export default {
|
|
|
193
190
|
type: { summary: 'string' },
|
|
194
191
|
},
|
|
195
192
|
},
|
|
196
|
-
required:
|
|
197
|
-
...argTypeBooleanUnrequired,
|
|
198
|
-
description: 'Determines whether Select is required',
|
|
199
|
-
},
|
|
193
|
+
required: argTypeBooleanUnrequired,
|
|
200
194
|
suffix: {
|
|
201
195
|
control: 'text',
|
|
202
196
|
table: {
|
|
@@ -52,14 +52,10 @@ const render = (args: Args) => ({
|
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
54
|
argTypes: {
|
|
55
|
-
autocomplete:
|
|
56
|
-
...argTypeBooleanUnrequired,
|
|
57
|
-
description: 'Determines whether browser attempts to autocomplete',
|
|
58
|
-
},
|
|
55
|
+
autocomplete: argTypeBooleanUnrequired,
|
|
59
56
|
dataTrack,
|
|
60
57
|
disabled: {
|
|
61
58
|
...argTypeBooleanUnrequired,
|
|
62
|
-
description: 'Determines whether input is interactable',
|
|
63
59
|
table: {
|
|
64
60
|
...argTypeBooleanUnrequired.table,
|
|
65
61
|
category: 'Native',
|
|
@@ -67,7 +63,6 @@ export default {
|
|
|
67
63
|
},
|
|
68
64
|
error: {
|
|
69
65
|
control: 'text',
|
|
70
|
-
description: 'Overrides the default error message and valid state',
|
|
71
66
|
table: {
|
|
72
67
|
defaultValue: { summary: 'None' },
|
|
73
68
|
type: { summary: 'string' },
|
|
@@ -75,7 +70,6 @@ export default {
|
|
|
75
70
|
},
|
|
76
71
|
errorDisplay: {
|
|
77
72
|
...formatArgType({ ERROR_DISPLAY }),
|
|
78
|
-
description: 'Determines whether errors display prior to blur',
|
|
79
73
|
},
|
|
80
74
|
handleValid: {
|
|
81
75
|
control: 'text',
|
|
@@ -90,16 +84,13 @@ export default {
|
|
|
90
84
|
},
|
|
91
85
|
hasClear: {
|
|
92
86
|
...argTypeBooleanUnrequired,
|
|
93
|
-
description: 'Determines whether browser attempts to autocomplete',
|
|
94
87
|
if: { arg: 'type', neq: TEXT_INPUT_TYPE.PASSWORD },
|
|
95
88
|
},
|
|
96
89
|
iconLeading: {
|
|
97
90
|
...formatArgType({ ICON }),
|
|
98
|
-
description: 'Icon at left of input value',
|
|
99
91
|
},
|
|
100
92
|
inputId: {
|
|
101
93
|
control: 'text',
|
|
102
|
-
description: 'Unique ID attribute<br />(to bind input label to input)',
|
|
103
94
|
table: {
|
|
104
95
|
defaultValue: { summary: 'None' },
|
|
105
96
|
type: { summary: 'string' },
|
|
@@ -107,7 +98,6 @@ export default {
|
|
|
107
98
|
},
|
|
108
99
|
inputmode: {
|
|
109
100
|
...formatArgType({ INPUT_MODE }),
|
|
110
|
-
description: 'Determines the input editing features offered by the browser',
|
|
111
101
|
table: {
|
|
112
102
|
category: 'Native',
|
|
113
103
|
defaultValue: { summary: 'None' },
|
|
@@ -116,7 +106,6 @@ export default {
|
|
|
116
106
|
},
|
|
117
107
|
label: {
|
|
118
108
|
control: 'text',
|
|
119
|
-
description: 'Label content',
|
|
120
109
|
table: {
|
|
121
110
|
defaultValue: { summary: 'None' },
|
|
122
111
|
type: { summary: 'string' },
|
|
@@ -124,7 +113,6 @@ export default {
|
|
|
124
113
|
},
|
|
125
114
|
maxlength: {
|
|
126
115
|
control: 'text',
|
|
127
|
-
description: 'Applies a maximum character count to the input',
|
|
128
116
|
table: {
|
|
129
117
|
category: 'Native',
|
|
130
118
|
defaultValue: { summary: 'None' },
|
|
@@ -133,7 +121,6 @@ export default {
|
|
|
133
121
|
},
|
|
134
122
|
minlength: {
|
|
135
123
|
control: 'text',
|
|
136
|
-
description: 'Applies a minimum character count to the input',
|
|
137
124
|
table: {
|
|
138
125
|
category: 'Native',
|
|
139
126
|
defaultValue: { summary: 'None' },
|
|
@@ -142,7 +129,6 @@ export default {
|
|
|
142
129
|
},
|
|
143
130
|
name: {
|
|
144
131
|
control: 'text',
|
|
145
|
-
description: 'Name attribute',
|
|
146
132
|
table: {
|
|
147
133
|
category: 'Native',
|
|
148
134
|
defaultValue: { summary: 'None' },
|
|
@@ -151,7 +137,6 @@ export default {
|
|
|
151
137
|
},
|
|
152
138
|
prefix: {
|
|
153
139
|
control: 'text',
|
|
154
|
-
description: 'input prefix',
|
|
155
140
|
table: {
|
|
156
141
|
defaultValue: { summary: 'None' },
|
|
157
142
|
type: { summary: 'string' },
|
|
@@ -159,7 +144,6 @@ export default {
|
|
|
159
144
|
},
|
|
160
145
|
required: {
|
|
161
146
|
...argTypeBooleanUnrequired,
|
|
162
|
-
description: 'Determines whether input is required',
|
|
163
147
|
table: {
|
|
164
148
|
...argTypeBooleanUnrequired.table,
|
|
165
149
|
category: 'Native',
|
|
@@ -167,7 +151,6 @@ export default {
|
|
|
167
151
|
},
|
|
168
152
|
suffix: {
|
|
169
153
|
control: 'text',
|
|
170
|
-
description: 'input suffix<br />(i.e. units)',
|
|
171
154
|
table: {
|
|
172
155
|
defaultValue: { summary: 'None' },
|
|
173
156
|
type: { summary: 'string' },
|
|
@@ -175,7 +158,6 @@ export default {
|
|
|
175
158
|
},
|
|
176
159
|
supportingText: {
|
|
177
160
|
control: 'text',
|
|
178
|
-
description: 'Explainer text beneath input',
|
|
179
161
|
table: {
|
|
180
162
|
defaultValue: { summary: 'None' },
|
|
181
163
|
type: { summary: 'string' },
|
|
@@ -183,11 +165,9 @@ export default {
|
|
|
183
165
|
},
|
|
184
166
|
transformValue: {
|
|
185
167
|
...formatArgType({ FORMAT }),
|
|
186
|
-
description: 'Determines text formatting applied to input value upon invoking relevant listener event(s)',
|
|
187
168
|
},
|
|
188
169
|
type: {
|
|
189
170
|
...formatArgType({ TEXT_INPUT_TYPE }),
|
|
190
|
-
description: 'Determines the type(s) of values expected by the input',
|
|
191
171
|
table: {
|
|
192
172
|
...formatArgType({ TEXT_INPUT_TYPE }).table,
|
|
193
173
|
category: 'Native',
|
|
@@ -205,7 +185,6 @@ export default {
|
|
|
205
185
|
valid: disabledArgType,
|
|
206
186
|
validators: {
|
|
207
187
|
...formatArgTypeCheck({ VALIDATOR }),
|
|
208
|
-
description: 'Determines method(s) used to check for valid input value upon invoking relevant listener event(s)',
|
|
209
188
|
},
|
|
210
189
|
},
|
|
211
190
|
args: {
|
|
@@ -48,7 +48,6 @@ export default {
|
|
|
48
48
|
dataTrack,
|
|
49
49
|
error: {
|
|
50
50
|
control: 'text',
|
|
51
|
-
description: 'Overrides the default error message and valid state',
|
|
52
51
|
table: {
|
|
53
52
|
defaultValue: { summary: 'None' },
|
|
54
53
|
type: { summary: 'string' },
|
|
@@ -56,7 +55,6 @@ export default {
|
|
|
56
55
|
},
|
|
57
56
|
errorDisplay: {
|
|
58
57
|
...formatArgType({ ERROR_DISPLAY }),
|
|
59
|
-
description: 'Determines whether errors display prior to blur',
|
|
60
58
|
},
|
|
61
59
|
handleValid: {
|
|
62
60
|
control: 'text',
|
|
@@ -71,7 +69,6 @@ export default {
|
|
|
71
69
|
},
|
|
72
70
|
inputId: {
|
|
73
71
|
control: 'text',
|
|
74
|
-
description: 'Unique ID attribute<br />(to bind input label to input)',
|
|
75
72
|
table: {
|
|
76
73
|
defaultValue: { summary: 'None' },
|
|
77
74
|
type: { summary: 'string' },
|
|
@@ -79,7 +76,6 @@ export default {
|
|
|
79
76
|
},
|
|
80
77
|
label: {
|
|
81
78
|
control: 'text',
|
|
82
|
-
description: 'Label content',
|
|
83
79
|
table: {
|
|
84
80
|
defaultValue: { summary: 'None' },
|
|
85
81
|
type: { summary: 'string' },
|
|
@@ -87,7 +83,6 @@ export default {
|
|
|
87
83
|
},
|
|
88
84
|
maxlength: {
|
|
89
85
|
control: 'text',
|
|
90
|
-
description: 'Applies a maximum character count to the input',
|
|
91
86
|
table: {
|
|
92
87
|
defaultValue: { summary: 'None' },
|
|
93
88
|
type: { summary: 'number' },
|
|
@@ -95,7 +90,6 @@ export default {
|
|
|
95
90
|
},
|
|
96
91
|
minlength: {
|
|
97
92
|
control: 'text',
|
|
98
|
-
description: 'Applies a minimum character count to the input',
|
|
99
93
|
table: {
|
|
100
94
|
defaultValue: { summary: 'None' },
|
|
101
95
|
type: { summary: 'number' },
|
|
@@ -103,19 +97,14 @@ export default {
|
|
|
103
97
|
},
|
|
104
98
|
name: {
|
|
105
99
|
control: 'text',
|
|
106
|
-
description: 'Name attribute',
|
|
107
100
|
table: {
|
|
108
101
|
defaultValue: { summary: 'None' },
|
|
109
102
|
type: { summary: 'string' },
|
|
110
103
|
},
|
|
111
104
|
},
|
|
112
|
-
required:
|
|
113
|
-
...argTypeBooleanUnrequired,
|
|
114
|
-
description: 'Determines whether input is required',
|
|
115
|
-
},
|
|
105
|
+
required: argTypeBooleanUnrequired,
|
|
116
106
|
rows: {
|
|
117
107
|
control: 'text',
|
|
118
|
-
description: 'Determines the height of the input',
|
|
119
108
|
table: {
|
|
120
109
|
defaultValue: { summary: 'None' },
|
|
121
110
|
type: { summary: 'number' },
|
|
@@ -123,7 +112,6 @@ export default {
|
|
|
123
112
|
},
|
|
124
113
|
supportingText: {
|
|
125
114
|
control: 'text',
|
|
126
|
-
description: 'Explainer text beneath input',
|
|
127
115
|
table: {
|
|
128
116
|
defaultValue: { summary: 'None' },
|
|
129
117
|
type: { summary: 'string' },
|
|
@@ -141,7 +129,6 @@ export default {
|
|
|
141
129
|
valid: disabledArgType,
|
|
142
130
|
validators: {
|
|
143
131
|
...formatArgTypeCheck({ VALIDATOR }),
|
|
144
|
-
description: 'Determines method(s) used to check for valid input value upon invoking relevant listener event(s)',
|
|
145
132
|
},
|
|
146
133
|
},
|
|
147
134
|
args: {
|
|
@@ -75,14 +75,12 @@ export default {
|
|
|
75
75
|
dataTrack,
|
|
76
76
|
element: {
|
|
77
77
|
...formatArgType({ ELEMENT }),
|
|
78
|
-
description: 'HTML tag type',
|
|
79
78
|
table: {
|
|
80
79
|
defaultValue: { summary: 'LINK' },
|
|
81
80
|
type: { summary: 'Element' },
|
|
82
81
|
},
|
|
83
82
|
},
|
|
84
83
|
href: {
|
|
85
|
-
description: 'URL to open<br />(Link only)',
|
|
86
84
|
if: { arg: 'element', eq: ELEMENT.LINK },
|
|
87
85
|
table: {
|
|
88
86
|
defaultValue: { summary: 'None' },
|
|
@@ -91,29 +89,22 @@ export default {
|
|
|
91
89
|
},
|
|
92
90
|
iconLeading: {
|
|
93
91
|
...formatArgType({ ICON }),
|
|
94
|
-
description: 'Icon to left of label',
|
|
95
92
|
},
|
|
96
93
|
iconTrailing: {
|
|
97
94
|
...formatArgType({ ICON }),
|
|
98
|
-
description: 'Icon to right of label',
|
|
99
95
|
},
|
|
100
96
|
isNewTab: {
|
|
101
97
|
...argTypeBooleanUnrequired,
|
|
102
|
-
description: 'Determines whether to target a new browser tab<br />(Link only)',
|
|
103
98
|
if: { arg: 'element', eq: ELEMENT.LINK },
|
|
104
99
|
},
|
|
105
100
|
label: {
|
|
106
101
|
control: 'text',
|
|
107
|
-
description: 'Link text',
|
|
108
102
|
table: {
|
|
109
103
|
defaultValue: { summary: 'None' },
|
|
110
104
|
type: { summary: 'string' },
|
|
111
105
|
},
|
|
112
106
|
},
|
|
113
|
-
subtle:
|
|
114
|
-
...argTypeBooleanUnrequired,
|
|
115
|
-
description: 'Hides the underline until hovered, de-emphasizing the link',
|
|
116
|
-
},
|
|
107
|
+
subtle: argTypeBooleanUnrequired,
|
|
117
108
|
},
|
|
118
109
|
args: {
|
|
119
110
|
click: 'doSomething',
|
|
@@ -65,7 +65,6 @@ export default {
|
|
|
65
65
|
argTypes: {
|
|
66
66
|
anchorId: {
|
|
67
67
|
control: 'text',
|
|
68
|
-
description: 'Determines the HTML node over which the Popover will appear',
|
|
69
68
|
table: {
|
|
70
69
|
defaultValue: { summary: 'None' },
|
|
71
70
|
type: { summary: 'string' },
|
|
@@ -81,7 +80,6 @@ export default {
|
|
|
81
80
|
},
|
|
82
81
|
offset: {
|
|
83
82
|
control: 'text',
|
|
84
|
-
description: 'Determines spacing between Popover and anchor node',
|
|
85
83
|
table: {
|
|
86
84
|
defaultValue: { summary: '16' },
|
|
87
85
|
type: { summary: 'number' },
|
|
@@ -51,7 +51,6 @@ export default {
|
|
|
51
51
|
argTypes: {
|
|
52
52
|
description: {
|
|
53
53
|
control: 'text',
|
|
54
|
-
description: 'Determines the text displayed below the title',
|
|
55
54
|
table: {
|
|
56
55
|
defaultValue: { summary: 'None' },
|
|
57
56
|
type: { summary: 'string' },
|
|
@@ -70,19 +69,14 @@ export default {
|
|
|
70
69
|
},
|
|
71
70
|
maxRating: {
|
|
72
71
|
control: 'text',
|
|
73
|
-
description: 'Maximum rating value / Number of segments',
|
|
74
72
|
table: {
|
|
75
73
|
defaultValue: { summary: 10 },
|
|
76
74
|
type: { summary: 'number' },
|
|
77
75
|
},
|
|
78
76
|
},
|
|
79
|
-
showRating:
|
|
80
|
-
...argTypeBooleanUnrequired,
|
|
81
|
-
description: 'Determines whether to display the current rating value',
|
|
82
|
-
},
|
|
77
|
+
showRating: argTypeBooleanUnrequired,
|
|
83
78
|
title: {
|
|
84
79
|
control: 'text',
|
|
85
|
-
description: 'Determines the title text displayed above the rating component',
|
|
86
80
|
table: {
|
|
87
81
|
defaultValue: { summary: 'None' },
|
|
88
82
|
type: { summary: 'string' },
|
|
@@ -42,10 +42,7 @@ const render = (args: Args, context: StoryContext) => ({
|
|
|
42
42
|
export default {
|
|
43
43
|
argTypes: {
|
|
44
44
|
dataTrack,
|
|
45
|
-
disabled:
|
|
46
|
-
...argTypeBooleanUnrequired,
|
|
47
|
-
description: 'Determines clickability',
|
|
48
|
-
},
|
|
45
|
+
disabled: argTypeBooleanUnrequired,
|
|
49
46
|
isActive: {
|
|
50
47
|
...argTypeBooleanUnrequired,
|
|
51
48
|
description: 'Determines whether toggle is active',
|
package/src/types/Icon.ts
CHANGED
|
@@ -24,7 +24,6 @@ export const tab = ' ';
|
|
|
24
24
|
|
|
25
25
|
export const argTypeBoolean = {
|
|
26
26
|
control: 'select',
|
|
27
|
-
description: 'Determines whether CSS utility is present',
|
|
28
27
|
options: BOOLEAN,
|
|
29
28
|
table: {
|
|
30
29
|
defaultValue: { summary: 'False' },
|
|
@@ -34,7 +33,6 @@ export const argTypeBoolean = {
|
|
|
34
33
|
|
|
35
34
|
export const argTypeBooleanUnrequired = {
|
|
36
35
|
control: 'select',
|
|
37
|
-
description: 'True, False, or undefined<br />(for demonstration purposes)',
|
|
38
36
|
options: BOOLEAN_UNREQUIRED,
|
|
39
37
|
table: {
|
|
40
38
|
defaultValue: { summary: 'None' },
|