@bethinkpl/design-system 31.0.2 → 32.0.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/dist/design-system.css +1 -1
- package/dist/design-system.js +14296 -10517
- package/dist/design-system.js.map +1 -1
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +2 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +4 -0
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +2 -0
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +8 -0
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +6 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +2 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +4 -0
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +4 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +2 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +2 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +4 -0
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +4 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +6 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +2 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +2 -0
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +146 -262
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +2 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +2 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +2 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +6 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +6 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +2 -0
- package/dist/lib/js/components/TextGroup/TextGroup.consts.d.ts +4 -3
- package/dist/lib/js/components/TextGroup/TextGroup.vue.d.ts +58 -302
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +2 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +2 -0
- package/dist/lib/js/icons/fontawesome.d.ts +2 -0
- package/lib/js/components/TextGroup/TextGroup.consts.ts +5 -3
- package/lib/js/components/TextGroup/TextGroup.stories.ts +13 -6
- package/lib/js/components/TextGroup/TextGroup.vue +172 -105
- package/lib/js/icons/fontawesome.ts +4 -0
- package/lib/styles/mixins/_background-mask.scss +2 -2
- package/package.json +4 -1
|
@@ -1,304 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TextGroupColor, TextGroupLoadingSize, TextGroupSize, TextGroupState } from './TextGroup.consts';
|
|
1
|
+
import { TextGroupProminence, TextGroupLoadingSize, TextGroupSize, TextGroupState } from './TextGroup.consts';
|
|
3
2
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
isSelected: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
state: {
|
|
54
|
-
type: PropType<TextGroupState>;
|
|
55
|
-
default: "default";
|
|
56
|
-
};
|
|
57
|
-
isSupportingTextTooltipEnabled: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
isSupportingTextTooltipEnabledOnMobile: {
|
|
62
|
-
type: BooleanConstructor;
|
|
63
|
-
default: boolean;
|
|
64
|
-
};
|
|
65
|
-
isSupportingTextTooltipAutoFilledWithContent: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
supportingTextTooltipContent: {
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
default: null;
|
|
72
|
-
};
|
|
73
|
-
}>, {}, {
|
|
74
|
-
TEXT_GROUP_SIZES: Readonly<{
|
|
75
|
-
SMALL: string;
|
|
76
|
-
MEDIUM: string;
|
|
77
|
-
}>;
|
|
78
|
-
TEXT_GROUP_STATES: Readonly<{
|
|
79
|
-
readonly DEFAULT: "default";
|
|
80
|
-
readonly HOVERED: "hovered";
|
|
81
|
-
readonly DISABLED: "disabled";
|
|
82
|
-
readonly LOADING: "loading";
|
|
83
|
-
}>;
|
|
84
|
-
}, {
|
|
85
|
-
colorClassName(): string;
|
|
86
|
-
isLoading(): boolean;
|
|
87
|
-
loadingSizeClassName(): string;
|
|
88
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
89
|
-
size: {
|
|
90
|
-
type: PropType<TextGroupSize>;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
|
-
color: {
|
|
94
|
-
type: PropType<TextGroupColor>;
|
|
95
|
-
default: "neutral";
|
|
96
|
-
};
|
|
97
|
-
eyebrowText: {
|
|
98
|
-
type: PropType<string | null>;
|
|
99
|
-
default: null;
|
|
100
|
-
};
|
|
101
|
-
eyebrowTextEllipsis: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
};
|
|
105
|
-
isEyebrowTextUppercase: {
|
|
106
|
-
type: BooleanConstructor;
|
|
107
|
-
default: boolean;
|
|
108
|
-
};
|
|
109
|
-
mainText: {
|
|
110
|
-
type: PropType<string | null>;
|
|
111
|
-
default: null;
|
|
112
|
-
};
|
|
113
|
-
mainTextEllipsis: {
|
|
114
|
-
type: BooleanConstructor;
|
|
115
|
-
default: boolean;
|
|
116
|
-
};
|
|
117
|
-
supportingText: {
|
|
118
|
-
type: PropType<string | null>;
|
|
119
|
-
default: null;
|
|
120
|
-
};
|
|
121
|
-
supportingTextEllipsis: {
|
|
122
|
-
type: BooleanConstructor;
|
|
123
|
-
default: boolean;
|
|
124
|
-
};
|
|
125
|
-
isInteractive: {
|
|
126
|
-
type: BooleanConstructor;
|
|
127
|
-
default: boolean;
|
|
128
|
-
};
|
|
129
|
-
skeletonLoadingSize: {
|
|
130
|
-
type: PropType<TextGroupLoadingSize>;
|
|
131
|
-
default: string;
|
|
132
|
-
};
|
|
133
|
-
isSelected: {
|
|
134
|
-
type: BooleanConstructor;
|
|
135
|
-
default: boolean;
|
|
136
|
-
};
|
|
137
|
-
state: {
|
|
138
|
-
type: PropType<TextGroupState>;
|
|
139
|
-
default: "default";
|
|
140
|
-
};
|
|
141
|
-
isSupportingTextTooltipEnabled: {
|
|
142
|
-
type: BooleanConstructor;
|
|
143
|
-
default: boolean;
|
|
144
|
-
};
|
|
145
|
-
isSupportingTextTooltipEnabledOnMobile: {
|
|
146
|
-
type: BooleanConstructor;
|
|
147
|
-
default: boolean;
|
|
148
|
-
};
|
|
149
|
-
isSupportingTextTooltipAutoFilledWithContent: {
|
|
150
|
-
type: BooleanConstructor;
|
|
151
|
-
default: boolean;
|
|
152
|
-
};
|
|
153
|
-
supportingTextTooltipContent: {
|
|
154
|
-
type: StringConstructor;
|
|
155
|
-
default: null;
|
|
156
|
-
};
|
|
157
|
-
}>> & Readonly<{}>, {
|
|
158
|
-
size: string;
|
|
159
|
-
color: "neutral";
|
|
160
|
-
state: TextGroupState;
|
|
161
|
-
isInteractive: boolean;
|
|
162
|
-
eyebrowText: string | null;
|
|
163
|
-
isEyebrowTextUppercase: boolean;
|
|
164
|
-
supportingText: string | null;
|
|
165
|
-
isSelected: boolean;
|
|
166
|
-
eyebrowTextEllipsis: boolean;
|
|
167
|
-
mainText: string | null;
|
|
168
|
-
mainTextEllipsis: boolean;
|
|
169
|
-
supportingTextEllipsis: boolean;
|
|
170
|
-
skeletonLoadingSize: string;
|
|
171
|
-
isSupportingTextTooltipEnabled: boolean;
|
|
172
|
-
isSupportingTextTooltipEnabledOnMobile: boolean;
|
|
173
|
-
isSupportingTextTooltipAutoFilledWithContent: boolean;
|
|
174
|
-
supportingTextTooltipContent: string;
|
|
175
|
-
}, {}, {
|
|
176
|
-
DsSkeleton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
177
|
-
height: {
|
|
178
|
-
type: StringConstructor;
|
|
179
|
-
default: string;
|
|
180
|
-
};
|
|
181
|
-
radius: {
|
|
182
|
-
type: PropType<import('../..').SkeletonRadiusSize>;
|
|
183
|
-
default: string;
|
|
184
|
-
};
|
|
185
|
-
width: {
|
|
186
|
-
type: StringConstructor;
|
|
187
|
-
default: string;
|
|
188
|
-
};
|
|
189
|
-
}>, {}, {
|
|
190
|
-
designTokens: {
|
|
191
|
-
animation: {
|
|
192
|
-
background: string;
|
|
193
|
-
};
|
|
194
|
-
background: string;
|
|
195
|
-
};
|
|
196
|
-
}, {
|
|
197
|
-
radiusTranslated(): string;
|
|
198
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
199
|
-
height: {
|
|
200
|
-
type: StringConstructor;
|
|
201
|
-
default: string;
|
|
202
|
-
};
|
|
203
|
-
radius: {
|
|
204
|
-
type: PropType<import('../..').SkeletonRadiusSize>;
|
|
205
|
-
default: string;
|
|
206
|
-
};
|
|
207
|
-
width: {
|
|
208
|
-
type: StringConstructor;
|
|
209
|
-
default: string;
|
|
210
|
-
};
|
|
211
|
-
}>> & Readonly<{}>, {
|
|
212
|
-
radius: string;
|
|
213
|
-
width: string;
|
|
214
|
-
height: string;
|
|
215
|
-
}, {}, {
|
|
216
|
-
PrimeSkeleton: import('@primevue/core').DefineComponent<import('primevue/skeleton').SkeletonProps, import('primevue/skeleton').SkeletonSlots, (e: string, ...args: any[]) => void>;
|
|
217
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
218
|
-
DsTooltip: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
219
|
-
placement: {
|
|
220
|
-
type: PropType<import('../Tooltip').TooltipPlacement>;
|
|
221
|
-
default: "bottom";
|
|
222
|
-
validator(placement: import('../Tooltip').TooltipPlacement): boolean;
|
|
223
|
-
};
|
|
224
|
-
text: {
|
|
225
|
-
type: StringConstructor;
|
|
226
|
-
default: string;
|
|
227
|
-
};
|
|
228
|
-
isDisabled: {
|
|
229
|
-
type: BooleanConstructor;
|
|
230
|
-
default: boolean;
|
|
231
|
-
};
|
|
232
|
-
isPointerVisible: {
|
|
233
|
-
type: BooleanConstructor;
|
|
234
|
-
default: boolean;
|
|
235
|
-
};
|
|
236
|
-
inline: {
|
|
237
|
-
type: BooleanConstructor;
|
|
238
|
-
default: boolean;
|
|
239
|
-
};
|
|
240
|
-
isHiddenOnMobile: {
|
|
241
|
-
type: BooleanConstructor;
|
|
242
|
-
default: boolean;
|
|
243
|
-
};
|
|
244
|
-
}>, {}, {}, {
|
|
245
|
-
tooltipParams(): {
|
|
246
|
-
position: any;
|
|
247
|
-
event: string;
|
|
248
|
-
};
|
|
249
|
-
options(): {
|
|
250
|
-
value: any;
|
|
251
|
-
disabled: any;
|
|
252
|
-
dt: {
|
|
253
|
-
shadow: string;
|
|
254
|
-
padding: string;
|
|
255
|
-
background: string;
|
|
256
|
-
color: string;
|
|
257
|
-
borderRadius: string;
|
|
258
|
-
maxWidth: string;
|
|
259
|
-
};
|
|
260
|
-
class: string | null;
|
|
261
|
-
ptOptions: {
|
|
262
|
-
mergeProps: boolean;
|
|
263
|
-
};
|
|
264
|
-
pt: {
|
|
265
|
-
text: string;
|
|
266
|
-
arrow: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
270
|
-
placement: {
|
|
271
|
-
type: PropType<import('../Tooltip').TooltipPlacement>;
|
|
272
|
-
default: "bottom";
|
|
273
|
-
validator(placement: import('../Tooltip').TooltipPlacement): boolean;
|
|
274
|
-
};
|
|
275
|
-
text: {
|
|
276
|
-
type: StringConstructor;
|
|
277
|
-
default: string;
|
|
278
|
-
};
|
|
279
|
-
isDisabled: {
|
|
280
|
-
type: BooleanConstructor;
|
|
281
|
-
default: boolean;
|
|
282
|
-
};
|
|
283
|
-
isPointerVisible: {
|
|
284
|
-
type: BooleanConstructor;
|
|
285
|
-
default: boolean;
|
|
286
|
-
};
|
|
287
|
-
inline: {
|
|
288
|
-
type: BooleanConstructor;
|
|
289
|
-
default: boolean;
|
|
290
|
-
};
|
|
291
|
-
isHiddenOnMobile: {
|
|
292
|
-
type: BooleanConstructor;
|
|
293
|
-
default: boolean;
|
|
294
|
-
};
|
|
295
|
-
}>> & Readonly<{}>, {
|
|
296
|
-
text: string;
|
|
297
|
-
placement: import('../Tooltip').TooltipPlacement;
|
|
298
|
-
isDisabled: boolean;
|
|
299
|
-
isPointerVisible: boolean;
|
|
300
|
-
inline: boolean;
|
|
301
|
-
isHiddenOnMobile: boolean;
|
|
302
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
303
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
mainText?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
size?: TextGroupSize;
|
|
8
|
+
prominence?: TextGroupProminence;
|
|
9
|
+
eyebrowText?: string | null;
|
|
10
|
+
eyebrowTextEllipsis?: boolean;
|
|
11
|
+
isEyebrowTextUppercase?: boolean;
|
|
12
|
+
hasEyebrowMask?: boolean;
|
|
13
|
+
mainText?: string | null;
|
|
14
|
+
mainTextEllipsis?: boolean;
|
|
15
|
+
supportingText?: string | null;
|
|
16
|
+
supportingTextEllipsis?: boolean;
|
|
17
|
+
isInteractive?: boolean;
|
|
18
|
+
skeletonLoadingSize?: TextGroupLoadingSize;
|
|
19
|
+
isSelected?: boolean;
|
|
20
|
+
state?: TextGroupState;
|
|
21
|
+
isSupportingTextTooltipEnabled?: boolean;
|
|
22
|
+
isSupportingTextTooltipEnabledOnMobile?: boolean;
|
|
23
|
+
isSupportingTextTooltipAutoFilledWithContent?: boolean;
|
|
24
|
+
supportingTextTooltipContent?: string;
|
|
25
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
26
|
+
size?: TextGroupSize;
|
|
27
|
+
prominence?: TextGroupProminence;
|
|
28
|
+
eyebrowText?: string | null;
|
|
29
|
+
eyebrowTextEllipsis?: boolean;
|
|
30
|
+
isEyebrowTextUppercase?: boolean;
|
|
31
|
+
hasEyebrowMask?: boolean;
|
|
32
|
+
mainText?: string | null;
|
|
33
|
+
mainTextEllipsis?: boolean;
|
|
34
|
+
supportingText?: string | null;
|
|
35
|
+
supportingTextEllipsis?: boolean;
|
|
36
|
+
isInteractive?: boolean;
|
|
37
|
+
skeletonLoadingSize?: TextGroupLoadingSize;
|
|
38
|
+
isSelected?: boolean;
|
|
39
|
+
state?: TextGroupState;
|
|
40
|
+
isSupportingTextTooltipEnabled?: boolean;
|
|
41
|
+
isSupportingTextTooltipEnabledOnMobile?: boolean;
|
|
42
|
+
isSupportingTextTooltipAutoFilledWithContent?: boolean;
|
|
43
|
+
supportingTextTooltipContent?: string;
|
|
44
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
304
46
|
export default _default;
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -173,8 +173,10 @@ export declare const data: () => {
|
|
|
173
173
|
readonly FA_LIST: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
174
174
|
readonly FA_LOCATION_DOT: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
175
175
|
readonly FA_LOCK_KEYHOLE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
176
|
+
readonly FA_MAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
176
177
|
readonly FA_MAGNIFYING_GLASS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
177
178
|
readonly FA_MEDAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
179
|
+
readonly FA_MEMO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
178
180
|
readonly FA_MEMO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
179
181
|
readonly FA_MEMO_CIRCLE_INFO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
180
182
|
readonly FA_MEMO_CIRCLE_INFO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -229,8 +229,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
229
229
|
readonly FA_LIST: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
230
230
|
readonly FA_LOCATION_DOT: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
231
231
|
readonly FA_LOCK_KEYHOLE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
232
|
+
readonly FA_MAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
232
233
|
readonly FA_MAGNIFYING_GLASS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
233
234
|
readonly FA_MEDAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
235
|
+
readonly FA_MEMO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
234
236
|
readonly FA_MEMO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
235
237
|
readonly FA_MEMO_CIRCLE_INFO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
236
238
|
readonly FA_MEMO_CIRCLE_INFO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -160,8 +160,10 @@ export declare const FONTAWESOME_ICONS: {
|
|
|
160
160
|
readonly FA_LIST: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
161
161
|
readonly FA_LOCATION_DOT: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
162
162
|
readonly FA_LOCK_KEYHOLE: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
163
|
+
readonly FA_MAP: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
163
164
|
readonly FA_MAGNIFYING_GLASS: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
164
165
|
readonly FA_MEDAL: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
166
|
+
readonly FA_MEMO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
165
167
|
readonly FA_MEMO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
166
168
|
readonly FA_MEMO_CIRCLE_INFO_SOLID: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
167
169
|
readonly FA_MEMO_CIRCLE_INFO: import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
1
|
+
export const TEXT_GROUP_PROMINENCE = {
|
|
2
|
+
DEFAULT: 'default',
|
|
3
|
+
STRONG: 'strong',
|
|
3
4
|
} as const;
|
|
4
5
|
|
|
5
6
|
export const TEXT_GROUP_LOADING_SIZES = {
|
|
@@ -20,7 +21,8 @@ export const TEXT_GROUP_STATES = {
|
|
|
20
21
|
LOADING: 'loading',
|
|
21
22
|
} as const;
|
|
22
23
|
|
|
23
|
-
export type
|
|
24
|
+
export type TextGroupProminence =
|
|
25
|
+
(typeof TEXT_GROUP_PROMINENCE)[keyof typeof TEXT_GROUP_PROMINENCE];
|
|
24
26
|
export type TextGroupLoadingSize =
|
|
25
27
|
(typeof TEXT_GROUP_LOADING_SIZES)[keyof typeof TEXT_GROUP_LOADING_SIZES];
|
|
26
28
|
export type TextGroupSize = (typeof TEXT_GROUP_SIZES)[keyof typeof TEXT_GROUP_SIZES];
|
|
@@ -2,8 +2,8 @@ import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
|
2
2
|
import DsDivider from '../Divider/Divider.vue';
|
|
3
3
|
import DsTextGroup from './TextGroup.vue';
|
|
4
4
|
import {
|
|
5
|
-
TEXT_GROUP_COLORS,
|
|
6
5
|
TEXT_GROUP_LOADING_SIZES,
|
|
6
|
+
TEXT_GROUP_PROMINENCE,
|
|
7
7
|
TEXT_GROUP_SIZES,
|
|
8
8
|
TEXT_GROUP_STATES,
|
|
9
9
|
} from './TextGroup.consts';
|
|
@@ -21,7 +21,7 @@ const StoryTemplate: StoryFn<typeof DsTextGroup> = (args) => ({
|
|
|
21
21
|
template: `
|
|
22
22
|
<ds-text-group
|
|
23
23
|
:size="size"
|
|
24
|
-
:
|
|
24
|
+
:prominence="prominence"
|
|
25
25
|
:eyebrow-text="eyebrowText === 'null' ? null : eyebrowText"
|
|
26
26
|
:eyebrow-text-ellipsis="eyebrowTextEllipsis"
|
|
27
27
|
:is-eyebrow-text-uppercase="isEyebrowTextUppercase"
|
|
@@ -37,8 +37,11 @@ const StoryTemplate: StoryFn<typeof DsTextGroup> = (args) => ({
|
|
|
37
37
|
:is-supporting-text-tooltip-enabled-on-mobile="isSupportingTextTooltipEnabledOnMobile"
|
|
38
38
|
:is-supporting-text-tooltip-auto-filled-with-content="isSupportingTextTooltipAutoFilledWithContent"
|
|
39
39
|
:supporting-text-tooltip-content="supportingTextTooltipContent"
|
|
40
|
+
:has-eyebrow-mask="hasEyebrowMask"
|
|
40
41
|
>
|
|
41
|
-
<template v-if="mainTextSlot" #mainText
|
|
42
|
+
<template v-if="mainTextSlot" #mainText>
|
|
43
|
+
<div v-html="mainTextSlot" />
|
|
44
|
+
</template>
|
|
42
45
|
</ds-text-group>
|
|
43
46
|
<div style="margin-top: 100px; color: #888">
|
|
44
47
|
<ds-divider />
|
|
@@ -51,10 +54,11 @@ export const Interactive = StoryTemplate.bind({});
|
|
|
51
54
|
Interactive.args = {
|
|
52
55
|
mainTextSlot: '',
|
|
53
56
|
size: TEXT_GROUP_SIZES.MEDIUM,
|
|
54
|
-
|
|
57
|
+
prominence: TEXT_GROUP_PROMINENCE.DEFAULT,
|
|
55
58
|
eyebrowText: 'Eyebrow Uppercase Veritatis aspernatur cupiditate magnam quidem',
|
|
56
59
|
eyebrowTextEllipsis: false,
|
|
57
60
|
isEyebrowTextUppercase: true,
|
|
61
|
+
hasEyebrowMask: false,
|
|
58
62
|
mainText: 'Main text Veritatis aspernatur cupiditate magnam quidem',
|
|
59
63
|
mainTextEllipsis: false,
|
|
60
64
|
supportingText:
|
|
@@ -75,9 +79,9 @@ Interactive.argTypes = {
|
|
|
75
79
|
control: 'select',
|
|
76
80
|
options: Object.values(TEXT_GROUP_SIZES),
|
|
77
81
|
},
|
|
78
|
-
|
|
82
|
+
prominence: {
|
|
79
83
|
control: 'select',
|
|
80
|
-
options: Object.values(
|
|
84
|
+
options: Object.values(TEXT_GROUP_PROMINENCE),
|
|
81
85
|
},
|
|
82
86
|
eyebrowText: {
|
|
83
87
|
control: 'text',
|
|
@@ -88,6 +92,9 @@ Interactive.argTypes = {
|
|
|
88
92
|
isEyebrowTextUppercase: {
|
|
89
93
|
control: 'boolean',
|
|
90
94
|
},
|
|
95
|
+
hasEyebrowMask: {
|
|
96
|
+
control: 'boolean',
|
|
97
|
+
},
|
|
91
98
|
mainText: {
|
|
92
99
|
control: 'text',
|
|
93
100
|
},
|