@bethinkpl/design-system 21.0.2 → 22.0.1
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 +2 -4
- package/dist/design-system.umd.js +1533 -1485
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +3 -284
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +3 -230
- package/dist/lib/js/components/PopOver/PopOver.consts.d.ts +1 -0
- package/dist/lib/js/components/SelectList/SelectList.vue.d.ts +3 -4
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +3 -260
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -1
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +2 -1
- package/docs/iframe.html +1 -1
- package/docs/main.3376b2f2.iframe.bundle.js +1 -0
- package/docs/project.json +1 -1
- package/lib/js/components/BadgeScore/BadgeScore.spec.ts +40 -40
- package/lib/js/components/BadgeScore/BadgeScore.vue +20 -20
- package/lib/js/components/Banner/Banner.vue +28 -29
- package/lib/js/components/Buttons/Button/Button.spec.ts +22 -22
- package/lib/js/components/Buttons/Button/Button.vue +17 -17
- package/lib/js/components/Buttons/IconButton/IconButton.vue +47 -47
- package/lib/js/components/Cards/Card/Card.spec.ts +9 -7
- package/lib/js/components/Cards/Card/Card.vue +10 -9
- package/lib/js/components/Cards/CardExpandable/CardExpandable.spec.ts +6 -6
- package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +7 -7
- package/lib/js/components/Chip/Chip.spec.ts +24 -25
- package/lib/js/components/Chip/Chip.vue +19 -19
- package/lib/js/components/Divider/Divider.vue +16 -16
- package/lib/js/components/Drawer/Drawer.vue +16 -16
- package/lib/js/components/Drawer/DrawerContent/DrawerContent.vue +2 -2
- package/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue +2 -2
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +19 -19
- package/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue +5 -5
- package/lib/js/components/Drawer/DrawerListItemGroup/DrawerListItemGroup.vue +2 -2
- package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +1 -1
- package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +2 -2
- package/lib/js/components/Dropdown/Dropdown.vue +10 -10
- package/lib/js/components/Form/SelectionControl/SelectionControl.vue +27 -27
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +18 -18
- package/lib/js/components/Headers/PageHeader/PageHeader.vue +11 -11
- package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +40 -38
- package/lib/js/components/IconText/IconText.vue +22 -22
- package/lib/js/components/Icons/FeatureIcon/FeatureIcon.vue +22 -22
- package/lib/js/components/Icons/Icon/Icon.vue +7 -7
- package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +24 -24
- package/lib/js/components/Modal/Modal.vue +2 -0
- package/lib/js/components/Modals/Modal/Modal.vue +8 -8
- package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +1 -1
- package/lib/js/components/NumberInCircle/NumberInCircle.vue +27 -27
- package/lib/js/components/Outline/OutlineDivider/OutlineDivider.vue +2 -2
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +38 -34
- package/lib/js/components/Outline/OutlineSectionHeader/OutlineSectionHeader.vue +2 -2
- package/lib/js/components/Pagination/Pagination.vue +17 -17
- package/lib/js/components/PopOver/PopOver.consts.ts +1 -0
- package/lib/js/components/PopOver/PopOver.vue +64 -50
- package/lib/js/components/ProgressBar/ProgressBar.vue +32 -32
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.spec.ts +6 -6
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +14 -18
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +9 -9
- package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.vue +11 -11
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +52 -52
- package/lib/js/components/SectionTitle/SectionTitle.vue +4 -4
- package/lib/js/components/SelectList/SelectList.vue +2 -2
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +23 -23
- package/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue +2 -2
- package/lib/js/components/SelectList/SelectListItemTile/SelectListItemTile.vue +2 -2
- package/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue +3 -3
- package/lib/js/components/SelectList/SelectListSectionTitle/SelectListSectionTitle.vue +5 -3
- package/lib/js/components/SelectionTile/SelectionTile.vue +21 -21
- package/lib/js/components/Statuses/AccessStatus/AccessStatus.vue +9 -10
- package/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue +7 -8
- package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +8 -8
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.spec.ts +8 -6
- package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +24 -24
- package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +2 -2
- package/lib/js/components/SurveyToggle/SurveyToggle.spec.ts +4 -4
- package/lib/js/components/SurveyToggle/SurveyToggle.vue +23 -19
- package/lib/js/components/Switch/Switch.vue +53 -44
- package/lib/js/components/TabItem/TabItem.spec.ts +2 -2
- package/lib/js/components/TabItem/TabItem.vue +11 -11
- package/lib/js/components/Tile/Tile.spec.ts +39 -39
- package/lib/js/components/Tile/Tile.vue +32 -29
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.spec.ts +8 -8
- package/lib/js/components/Toggles/CounterToggle/CounterToggle.vue +16 -16
- package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +39 -39
- package/lib/js/components/Well/Well.vue +6 -6
- package/lib/js/styles/ColorsThemes/ColorsThemes.stories.ts +2 -2
- package/lib/js/styles/ColorsTokensPrimaryBodywork/ColorsTokensPrimaryBodywork.stories.ts +1 -1
- package/lib/js/styles/ColorsTokensPrimaryWnl/ColorsTokensPrimaryWnl.stories.ts +1 -1
- package/lib/js/styles/ItemsList.vue +3 -1
- package/lib/js/styles/TypographyTokensLms/TypographyTokensLms.stories.ts +1 -1
- package/lib/js/styles/TypographyVariables/TypographyVariables.stories.ts +1 -1
- package/lib/styles/components/_buttons.scss +38 -38
- package/lib/styles/components/_icons.scss +43 -25
- package/lib/styles/components/_items-list-item.scss +3 -0
- package/lib/styles/design-system.scss +1 -5
- package/lib/styles/modifiers/_typography.scss +14 -28
- package/lib/styles/settings/_icons.scss +1 -1
- package/lib/styles/settings/colors/_raw-bodywork.scss +1 -1
- package/lib/styles/settings/colors/_raw-wnl.scss +1 -1
- package/lib/styles/settings/colors/_tokens-bodywork-variables.scss +1 -1
- package/lib/styles/settings/colors/_tokens-wnl-variables.scss +1 -1
- package/lib/styles/storybook.scss +2 -1
- package/package.json +1 -1
- package/stylelint.config.js +1 -0
- package/tools/importers/SynchronizeColorsTokens.ts +4 -4
- package/tools/importers/helpers/modifiers.ts +1 -1
- package/docs/main.147130f0.iframe.bundle.js +0 -1
- package/lib/styles/components/_links.scss +0 -21
- package/lib/styles/modifiers/_layout.scss +0 -12
- package/lib/styles/modifiers/_media-queries.scss +0 -17
- package/lib/styles/modifiers/_shadows.scss +0 -7
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="toggleButtonWrapper"
|
|
3
|
+
class="ds-toggleButtonWrapper"
|
|
4
4
|
:class="{
|
|
5
5
|
'-rounded': radius === TOGGLE_BUTTON_RADIUSES.ROUNDED,
|
|
6
6
|
}"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="toggleButton"
|
|
9
|
+
class="ds-toggleButton"
|
|
10
10
|
:class="{
|
|
11
|
-
'-small': size === TOGGLE_BUTTON_SIZES.SMALL,
|
|
12
|
-
'-medium': size === TOGGLE_BUTTON_SIZES.MEDIUM,
|
|
13
|
-
'-large': size === TOGGLE_BUTTON_SIZES.LARGE,
|
|
11
|
+
'-ds-small': size === TOGGLE_BUTTON_SIZES.SMALL,
|
|
12
|
+
'-ds-medium': size === TOGGLE_BUTTON_SIZES.MEDIUM,
|
|
13
|
+
'-ds-large': size === TOGGLE_BUTTON_SIZES.LARGE,
|
|
14
14
|
|
|
15
|
-
'-hasSmallHorizontalPadding': hasSmallHorizontalPadding,
|
|
15
|
+
'-ds-hasSmallHorizontalPadding': hasSmallHorizontalPadding,
|
|
16
16
|
|
|
17
|
-
'-rounded': radius === TOGGLE_BUTTON_RADIUSES.ROUNDED,
|
|
17
|
+
'-ds-rounded': radius === TOGGLE_BUTTON_RADIUSES.ROUNDED,
|
|
18
18
|
|
|
19
19
|
[colorClassName]: true,
|
|
20
20
|
|
|
21
|
-
'-disabled': state === TOGGLE_BUTTON_STATES.DISABLED,
|
|
22
|
-
'-loading': state === TOGGLE_BUTTON_STATES.LOADING,
|
|
23
|
-
'-interactive': isInteractiveComputed,
|
|
24
|
-
'-selected': isSelected,
|
|
21
|
+
'-ds-disabled': state === TOGGLE_BUTTON_STATES.DISABLED,
|
|
22
|
+
'-ds-loading': state === TOGGLE_BUTTON_STATES.LOADING,
|
|
23
|
+
'-ds-interactive': isInteractiveComputed,
|
|
24
|
+
'-ds-selected': isSelected,
|
|
25
25
|
}"
|
|
26
26
|
@click="isInteractiveComputed && $emit('click')"
|
|
27
27
|
>
|
|
28
|
-
<div class="toggleButton__contentWrapper">
|
|
28
|
+
<div class="ds-toggleButton__contentWrapper">
|
|
29
29
|
<ds-icon
|
|
30
30
|
v-if="iconLeft"
|
|
31
|
-
class="toggleButton__icon"
|
|
31
|
+
class="ds-toggleButton__icon"
|
|
32
32
|
:icon="iconLeft"
|
|
33
33
|
:size="iconSize"
|
|
34
34
|
/>
|
|
35
35
|
<span
|
|
36
36
|
v-if="label"
|
|
37
|
-
class="toggleButton__content"
|
|
37
|
+
class="ds-toggleButton__content"
|
|
38
38
|
:class="{
|
|
39
|
-
'-small': labelSize === TOGGLE_BUTTON_LABEL_SIZES.SMALL,
|
|
40
|
-
'-uppercase': isLabelUppercase,
|
|
39
|
+
'-ds-small': labelSize === TOGGLE_BUTTON_LABEL_SIZES.SMALL,
|
|
40
|
+
'-ds-uppercase': isLabelUppercase,
|
|
41
41
|
}"
|
|
42
42
|
>
|
|
43
43
|
{{ label }}
|
|
44
44
|
</span>
|
|
45
45
|
<ds-icon
|
|
46
46
|
v-if="iconRight"
|
|
47
|
-
class="toggleButton__icon"
|
|
47
|
+
class="ds-toggleButton__icon"
|
|
48
48
|
:icon="iconRight"
|
|
49
49
|
:size="iconSize"
|
|
50
50
|
/>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
<ds-icon
|
|
54
54
|
v-if="state === TOGGLE_BUTTON_STATES.LOADING"
|
|
55
|
-
class="toggleButton__icon toggleButton__loadingSpinner"
|
|
55
|
+
class="ds-toggleButton__icon ds-toggleButton__loadingSpinner"
|
|
56
56
|
:icon="ICONS.FAD_SPINNER_THIRD"
|
|
57
57
|
:size="iconSize"
|
|
58
58
|
spinning
|
|
@@ -233,15 +233,15 @@ $toggle-button-colors: (
|
|
|
233
233
|
@return $padding - map-get($size-map, $size);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
.toggleButtonWrapper {
|
|
236
|
+
.ds-toggleButtonWrapper {
|
|
237
237
|
display: inline-block;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.toggleButton {
|
|
240
|
+
.ds-toggleButton {
|
|
241
241
|
$root: &;
|
|
242
242
|
|
|
243
243
|
@each $color-name, $color-map in $toggle-button-colors {
|
|
244
|
-
&.-color-#{$color-name} {
|
|
244
|
+
&.-ds-color-#{$color-name} {
|
|
245
245
|
background-color: map-get($color-map, 'background');
|
|
246
246
|
border-color: map-get($color-map, 'border');
|
|
247
247
|
color: map-get($color-map, 'color');
|
|
@@ -258,7 +258,7 @@ $toggle-button-colors: (
|
|
|
258
258
|
outline-color: map-get($color-map, 'outline-focused');
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
&.-selected {
|
|
261
|
+
&.-ds-selected {
|
|
262
262
|
background-color: map-get($color-map, 'selected', 'background');
|
|
263
263
|
border-color: map-get($color-map, 'selected', 'border');
|
|
264
264
|
color: map-get($color-map, 'selected', 'color');
|
|
@@ -280,7 +280,7 @@ $toggle-button-colors: (
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
&.-disabled {
|
|
283
|
+
&.-ds-disabled {
|
|
284
284
|
background-color: map-get($color-map, 'disabled', 'background');
|
|
285
285
|
border-color: map-get($color-map, 'disabled', 'border');
|
|
286
286
|
color: map-get($color-map, 'disabled', 'color');
|
|
@@ -290,7 +290,7 @@ $toggle-button-colors: (
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
&.-disabled.-selected {
|
|
293
|
+
&.-ds-disabled.-ds-selected {
|
|
294
294
|
background-color: map-get($color-map, 'selected', 'disabled', 'background');
|
|
295
295
|
border-color: map-get($color-map, 'selected', 'disabled', 'border');
|
|
296
296
|
color: map-get($color-map, 'selected', 'disabled', 'color');
|
|
@@ -335,69 +335,69 @@ $toggle-button-colors: (
|
|
|
335
335
|
text-overflow: ellipsis;
|
|
336
336
|
white-space: nowrap;
|
|
337
337
|
|
|
338
|
-
&.-uppercase {
|
|
338
|
+
&.-ds-uppercase {
|
|
339
339
|
@include label-l-default-bold-uppercase;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
&.-rounded {
|
|
343
|
+
&.-ds-rounded {
|
|
344
344
|
border-radius: $radius-s;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
&.-interactive {
|
|
347
|
+
&.-ds-interactive {
|
|
348
348
|
cursor: pointer;
|
|
349
349
|
pointer-events: initial;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
&.-loading {
|
|
352
|
+
&.-ds-loading {
|
|
353
353
|
#{$root}__contentWrapper {
|
|
354
354
|
opacity: 0;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
&.-small {
|
|
358
|
+
&.-ds-small {
|
|
359
359
|
min-height: $toggle-button-size-small;
|
|
360
360
|
min-width: $toggle-button-size-small;
|
|
361
361
|
padding: substract-border($space-3xs, 'small') substract-border($space-xs, 'small');
|
|
362
362
|
|
|
363
|
-
&.-hasSmallHorizontalPadding {
|
|
363
|
+
&.-ds-hasSmallHorizontalPadding {
|
|
364
364
|
padding: substract-border($space-3xs, 'small') substract-border($space-5xs, 'small');
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
#{$root}__content.-small {
|
|
367
|
+
#{$root}__content.-ds-small {
|
|
368
368
|
@include label-s-default-bold;
|
|
369
369
|
|
|
370
|
-
&.-uppercase {
|
|
370
|
+
&.-ds-uppercase {
|
|
371
371
|
@include label-s-default-bold-uppercase;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
&.-medium {
|
|
376
|
+
&.-ds-medium {
|
|
377
377
|
min-height: $toggle-button-size-medium;
|
|
378
378
|
min-width: $toggle-button-size-medium;
|
|
379
379
|
padding: substract-border($space-2xs, 'medium') substract-border($space-xs, 'medium');
|
|
380
380
|
|
|
381
|
-
&.-hasSmallHorizontalPadding {
|
|
381
|
+
&.-ds-hasSmallHorizontalPadding {
|
|
382
382
|
padding: substract-border($space-2xs, 'medium') substract-border($space-5xs, 'medium');
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
#{$root}__content.-small {
|
|
385
|
+
#{$root}__content.-ds-small {
|
|
386
386
|
@include label-m-default-bold;
|
|
387
387
|
|
|
388
|
-
&.-uppercase {
|
|
388
|
+
&.-ds-uppercase {
|
|
389
389
|
@include label-m-default-bold-uppercase;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
&.-large {
|
|
394
|
+
&.-ds-large {
|
|
395
395
|
border-width: $toggle-button-border-size-large;
|
|
396
396
|
min-height: $toggle-button-size-large;
|
|
397
397
|
min-width: $toggle-button-size-large;
|
|
398
398
|
padding: substract-border($space-xs, 'large') substract-border($space-s, 'large');
|
|
399
399
|
|
|
400
|
-
&.-hasSmallHorizontalPadding {
|
|
400
|
+
&.-ds-hasSmallHorizontalPadding {
|
|
401
401
|
padding: substract-border($space-2xs, 'large') substract-border($space-5xs, 'large');
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -515,7 +515,7 @@ export default {
|
|
|
515
515
|
},
|
|
516
516
|
computed: {
|
|
517
517
|
colorClassName(): string {
|
|
518
|
-
return `-color-${this.color}`;
|
|
518
|
+
return `-ds-color-${this.color}`;
|
|
519
519
|
},
|
|
520
520
|
iconSize(): IconSize {
|
|
521
521
|
return this.size === TOGGLE_BUTTON_SIZES.LARGE
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="well"
|
|
3
|
+
class="ds-well"
|
|
4
4
|
:class="{
|
|
5
|
-
'-medium': WELL_PADDINGS.MEDIUM === padding,
|
|
6
|
-
'-small': WELL_PADDINGS.SMALL === padding,
|
|
5
|
+
'-ds-medium': WELL_PADDINGS.MEDIUM === padding,
|
|
6
|
+
'-ds-small': WELL_PADDINGS.SMALL === padding,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<slot />
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
@import '../../../styles/settings/radiuses';
|
|
16
16
|
@import '../../../styles/settings/colors/tokens';
|
|
17
17
|
|
|
18
|
-
.well {
|
|
18
|
+
.ds-well {
|
|
19
19
|
background-color: $color-neutral-background;
|
|
20
20
|
border-radius: $radius-m;
|
|
21
21
|
|
|
22
|
-
&.-medium {
|
|
22
|
+
&.-ds-medium {
|
|
23
23
|
padding: $space-s;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
&.-small {
|
|
26
|
+
&.-ds-small {
|
|
27
27
|
padding: $space-xs;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -23,11 +23,11 @@ export const Theme = StoryTemplate.bind({});
|
|
|
23
23
|
|
|
24
24
|
const args = {
|
|
25
25
|
itemsLists: [
|
|
26
|
-
{ title: 'WNL', list: rawWnlColorsList, class: 'theme-wnl', disabled: 'default' },
|
|
26
|
+
{ title: 'WNL', list: rawWnlColorsList, class: '-ds-theme-wnl', disabled: 'default' },
|
|
27
27
|
{
|
|
28
28
|
title: 'Bodywork',
|
|
29
29
|
list: rawBodyworkColorsList,
|
|
30
|
-
class: 'theme-bodywork',
|
|
30
|
+
class: '-ds-theme-bodywork',
|
|
31
31
|
disabled: 'default',
|
|
32
32
|
},
|
|
33
33
|
],
|
|
@@ -21,7 +21,7 @@ const StoryTemplate: StoryFn<typeof ItemsList> = (args) => ({
|
|
|
21
21
|
export const PrimaryBodywork = StoryTemplate.bind({});
|
|
22
22
|
|
|
23
23
|
const args = {
|
|
24
|
-
itemsLists: [{ title: 'Primary Bodywork', list: tokensList, class: 'theme-bodywork' }],
|
|
24
|
+
itemsLists: [{ title: 'Primary Bodywork', list: tokensList, class: '-ds-theme-bodywork' }],
|
|
25
25
|
type: TOKENS_TYPES.COLORS,
|
|
26
26
|
} as Args;
|
|
27
27
|
|
|
@@ -21,7 +21,7 @@ const StoryTemplate: StoryFn<typeof ItemsList> = (args) => ({
|
|
|
21
21
|
export const PrimaryWNL = StoryTemplate.bind({});
|
|
22
22
|
|
|
23
23
|
const args = {
|
|
24
|
-
itemsLists: [{ title: 'Primary WNL', list: tokensList, class: 'theme-wnl' }],
|
|
24
|
+
itemsLists: [{ title: 'Primary WNL', list: tokensList, class: '-ds-theme-wnl' }],
|
|
25
25
|
type: TOKENS_TYPES.COLORS,
|
|
26
26
|
} as Args;
|
|
27
27
|
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
|
|
33
33
|
<style lang="scss" scoped>
|
|
34
34
|
@import '../../styles/settings/spacings';
|
|
35
|
-
|
|
35
|
+
// This component isn't exported. It's only used in Storybook => no need to prefix class names.
|
|
36
|
+
/* stylelint-disable selector-class-pattern */
|
|
36
37
|
.itemsList {
|
|
37
38
|
margin: 0 auto;
|
|
38
39
|
width: 80%;
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
line-height: var(--typography-line-height-xl);
|
|
58
59
|
}
|
|
59
60
|
}
|
|
61
|
+
/* stylelint-enable */
|
|
60
62
|
</style>
|
|
61
63
|
|
|
62
64
|
<script lang="ts">
|
|
@@ -21,7 +21,7 @@ const StoryTemplate: StoryFn<typeof ItemsList> = (args) => ({
|
|
|
21
21
|
export const LMS = StoryTemplate.bind({});
|
|
22
22
|
|
|
23
23
|
const args = {
|
|
24
|
-
itemsLists: [{ title: 'LMS', list: source, class: 'theme-wnl' }],
|
|
24
|
+
itemsLists: [{ title: 'LMS', list: source, class: '-ds-theme-wnl' }],
|
|
25
25
|
type: TOKENS_TYPES.TYPOGRAPHY,
|
|
26
26
|
} as Args;
|
|
27
27
|
|
|
@@ -21,7 +21,7 @@ const StoryTemplate: StoryFn<typeof ItemsList> = (args) => ({
|
|
|
21
21
|
export const Variables = StoryTemplate.bind({});
|
|
22
22
|
|
|
23
23
|
const args = {
|
|
24
|
-
itemsLists: [{ title: 'Variables', list: source, class: 'theme-wnl' }],
|
|
24
|
+
itemsLists: [{ title: 'Variables', list: source, class: '-ds-theme-wnl' }],
|
|
25
25
|
type: TOKENS_TYPES.TYPOGRAPHY,
|
|
26
26
|
} as Args;
|
|
27
27
|
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
color: $color;
|
|
11
11
|
|
|
12
12
|
&:hover,
|
|
13
|
-
&.-hovered,
|
|
13
|
+
&.-ds-hovered,
|
|
14
14
|
&:active,
|
|
15
|
-
&.-active {
|
|
15
|
+
&.-ds-active {
|
|
16
16
|
color: $color-hovered;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:focus,
|
|
20
|
-
&.-focused {
|
|
20
|
+
&.-ds-focused {
|
|
21
21
|
color: $color-focused;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
&.-disabled {
|
|
24
|
+
&.-ds-disabled {
|
|
25
25
|
color: $color-disabled;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
background-color: $background;
|
|
40
40
|
|
|
41
41
|
&:hover,
|
|
42
|
-
&.-hovered,
|
|
42
|
+
&.-ds-hovered,
|
|
43
43
|
&:active,
|
|
44
|
-
&.-active {
|
|
44
|
+
&.-ds-active {
|
|
45
45
|
background-color: $background-hover;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&:focus,
|
|
49
|
-
&.-focused {
|
|
49
|
+
&.-ds-focused {
|
|
50
50
|
background-color: $background-focus;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&:disabled,
|
|
54
|
-
&.-disabled {
|
|
54
|
+
&.-ds-disabled {
|
|
55
55
|
background-color: $background-disabled;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
$disabled-border: null
|
|
64
64
|
) {
|
|
65
65
|
&:disabled,
|
|
66
|
-
&.-disabled {
|
|
66
|
+
&.-ds-disabled {
|
|
67
67
|
background-color: $disabled-background;
|
|
68
68
|
border-color: $disabled-border;
|
|
69
69
|
color: $disabled-color;
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
.ds-button__icon {
|
|
72
72
|
color: $disabled-icon;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -85,16 +85,16 @@
|
|
|
85
85
|
border: 1px solid $border;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
.ds-button {
|
|
89
89
|
&__icon,
|
|
90
90
|
&__loadingIcon {
|
|
91
91
|
color: $icon;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
&.-hovered,
|
|
95
|
+
&.-ds-hovered,
|
|
96
96
|
&:hover {
|
|
97
|
-
.
|
|
97
|
+
.ds-button {
|
|
98
98
|
&__icon,
|
|
99
99
|
&__loadingIcon {
|
|
100
100
|
color: $icon-hovered;
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&.-focused,
|
|
105
|
+
&.-ds-focused,
|
|
106
106
|
&:focus {
|
|
107
|
-
.
|
|
107
|
+
.ds-button {
|
|
108
108
|
&__icon,
|
|
109
109
|
&__loadingIcon {
|
|
110
110
|
color: $icon-focused;
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
&.-disabled {
|
|
116
|
-
.
|
|
115
|
+
&.-ds-disabled {
|
|
116
|
+
.ds-button {
|
|
117
117
|
&__icon,
|
|
118
118
|
&__loadingIcon {
|
|
119
119
|
color: $icon-disabled;
|
|
@@ -130,13 +130,13 @@ $button-hover-alpha: 0.12;
|
|
|
130
130
|
$button-focus-alpha: 0.24;
|
|
131
131
|
$button-disabled-alpha: 0.6;
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.ds-button {
|
|
134
134
|
$self: &;
|
|
135
135
|
|
|
136
136
|
@include button-m-default-bold-uppercase;
|
|
137
137
|
|
|
138
138
|
@each $color-name, $color-map in $icon-button-colors {
|
|
139
|
-
&.-color-#{$color-name} {
|
|
139
|
+
&.-ds-color-#{$color-name} {
|
|
140
140
|
@include setButtonColor(map-get($color-map, 'filled', 'color'));
|
|
141
141
|
@include setButtonBackground(
|
|
142
142
|
map-get($color-map, 'filled', 'background'),
|
|
@@ -171,14 +171,14 @@ $button-disabled-alpha: 0.6;
|
|
|
171
171
|
user-select: none;
|
|
172
172
|
|
|
173
173
|
&:disabled,
|
|
174
|
-
&.-disabled {
|
|
174
|
+
&.-ds-disabled {
|
|
175
175
|
cursor: not-allowed;
|
|
176
176
|
pointer-events: none;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
&.-outlined {
|
|
179
|
+
&.-ds-outlined {
|
|
180
180
|
@each $color-name, $color-map in $icon-button-colors {
|
|
181
|
-
&.-color-#{$color-name} {
|
|
181
|
+
&.-ds-color-#{$color-name} {
|
|
182
182
|
@include setButtonColor(map-get($color-map, 'outlined', 'color'));
|
|
183
183
|
@include setButtonBackground(
|
|
184
184
|
map-get($color-map, 'outlined', 'background'),
|
|
@@ -200,7 +200,7 @@ $button-disabled-alpha: 0.6;
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
&.-large {
|
|
203
|
+
&.-ds-large {
|
|
204
204
|
@include button-l-default-bold-uppercase;
|
|
205
205
|
|
|
206
206
|
min-height: $button-large-min-height;
|
|
@@ -208,9 +208,9 @@ $button-disabled-alpha: 0.6;
|
|
|
208
208
|
padding-right: $space-m;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
&.-text {
|
|
211
|
+
&.-ds-text {
|
|
212
212
|
@each $color-name, $color-map in $icon-button-colors {
|
|
213
|
-
&.-color-#{$color-name} {
|
|
213
|
+
&.-ds-color-#{$color-name} {
|
|
214
214
|
@include setButtonColor(
|
|
215
215
|
map-get($color-map, 'text', 'color'),
|
|
216
216
|
map-get($color-map, 'text', 'color-hovered'),
|
|
@@ -238,28 +238,28 @@ $button-disabled-alpha: 0.6;
|
|
|
238
238
|
padding-right: 0;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
&:not(.-text) {
|
|
241
|
+
&:not(.-ds-text) {
|
|
242
242
|
min-width: 100px;
|
|
243
243
|
|
|
244
|
-
&.-rounded {
|
|
244
|
+
&.-ds-rounded {
|
|
245
245
|
border-radius: $radius-s;
|
|
246
246
|
padding-left: $space-xs;
|
|
247
247
|
padding-right: $space-xs;
|
|
248
248
|
|
|
249
|
-
&.-large {
|
|
249
|
+
&.-ds-large {
|
|
250
250
|
padding-left: $space-s;
|
|
251
251
|
padding-right: $space-s;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
&.-small {
|
|
256
|
+
&.-ds-small {
|
|
257
257
|
@include button-s-default-bold-uppercase;
|
|
258
258
|
|
|
259
259
|
min-height: $button-small-min-height;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
&.-loading {
|
|
262
|
+
&.-ds-loading {
|
|
263
263
|
pointer-events: none;
|
|
264
264
|
|
|
265
265
|
#{$self}__content {
|
|
@@ -267,9 +267,9 @@ $button-disabled-alpha: 0.6;
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
&.-elevation-x-small,
|
|
271
|
-
&.-elevation-small {
|
|
272
|
-
&.-outlined {
|
|
270
|
+
&.-ds-elevation-x-small,
|
|
271
|
+
&.-ds-elevation-small {
|
|
272
|
+
&.-ds-outlined {
|
|
273
273
|
&::before {
|
|
274
274
|
background: $color-default-background;
|
|
275
275
|
border-radius: 100px;
|
|
@@ -284,15 +284,15 @@ $button-disabled-alpha: 0.6;
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
&.-rounded {
|
|
287
|
+
&.-ds-rounded {
|
|
288
288
|
&::before {
|
|
289
289
|
border-radius: $radius-s;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
&.-elevation-small {
|
|
295
|
-
&:not(.-text) {
|
|
294
|
+
&.-ds-elevation-small {
|
|
295
|
+
&:not(.-ds-text) {
|
|
296
296
|
box-shadow: $shadow-l;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
@@ -303,11 +303,11 @@ $button-disabled-alpha: 0.6;
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
&__icon {
|
|
306
|
-
&.-left {
|
|
306
|
+
&.-ds-left {
|
|
307
307
|
margin-right: $space-4xs;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
&.-right {
|
|
310
|
+
&.-ds-right {
|
|
311
311
|
margin-left: $space-4xs;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@import '../settings/icons';
|
|
2
2
|
|
|
3
|
-
.
|
|
3
|
+
.ds-icon {
|
|
4
4
|
align-items: center;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
transition: transform 0.15s;
|
|
7
7
|
|
|
8
|
-
&.-touchable {
|
|
8
|
+
&.-ds-touchable {
|
|
9
9
|
align-items: center;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
display: flex;
|
|
@@ -14,85 +14,103 @@
|
|
|
14
14
|
min-width: $min-touchable-size;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
&.-rotate90 {
|
|
17
|
+
&.-ds-rotate90 {
|
|
18
18
|
transform: rotate(90deg);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
&.-rotate180 {
|
|
21
|
+
&.-ds-rotate180 {
|
|
22
22
|
transform: rotate(180deg);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&.-rotate270 {
|
|
25
|
+
&.-ds-rotate270 {
|
|
26
26
|
transform: rotate(270deg);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
&.-no-transtition {
|
|
29
|
+
&.-ds-no-transtition {
|
|
30
30
|
transition: initial;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&.-spin {
|
|
33
|
+
&.-ds-spin {
|
|
34
34
|
animation: $animation-fade-in, $animation-spin;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
&.-flipped-vertical {
|
|
37
|
+
&.-ds-flipped-vertical {
|
|
38
38
|
transform: rotateX(180deg);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
&.-flipped-horizontal {
|
|
41
|
+
&.-ds-flipped-horizontal {
|
|
42
42
|
transform: rotateY(180deg);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* stylelint-disable selector-class-pattern */
|
|
45
46
|
svg,
|
|
46
47
|
// We need this class to override FontAwesome styles
|
|
47
48
|
.svg-inline--fa {
|
|
49
|
+
/* stylelint-enable */
|
|
48
50
|
height: $icon-m;
|
|
49
51
|
width: $icon-m;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
&.-xx-large
|
|
54
|
+
/* stylelint-disable selector-class-pattern */
|
|
55
|
+
&.-ds-xx-large svg,
|
|
56
|
+
&.-ds-xx-large .svg-inline--fa {
|
|
57
|
+
/* stylelint-enable */
|
|
54
58
|
height: $icon-xxl;
|
|
55
59
|
width: $icon-xxl;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
&.-x-large
|
|
62
|
+
/* stylelint-disable selector-class-pattern */
|
|
63
|
+
&.-ds-x-large svg,
|
|
64
|
+
&.-ds-x-large .svg-inline--fa {
|
|
65
|
+
/* stylelint-enable */
|
|
60
66
|
height: $icon-xl;
|
|
61
67
|
width: $icon-xl;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
|
-
|
|
65
|
-
&.-large
|
|
70
|
+
/* stylelint-disable selector-class-pattern */
|
|
71
|
+
&.-ds-large svg,
|
|
72
|
+
&.-ds-large .svg-inline--fa {
|
|
73
|
+
/* stylelint-enable */
|
|
66
74
|
height: $icon-l;
|
|
67
75
|
width: $icon-l;
|
|
68
76
|
}
|
|
69
77
|
|
|
70
|
-
|
|
71
|
-
&.-medium
|
|
78
|
+
/* stylelint-disable selector-class-pattern */
|
|
79
|
+
&.-ds-medium svg,
|
|
80
|
+
&.-ds-medium .svg-inline--fa {
|
|
81
|
+
/* stylelint-enable */
|
|
72
82
|
height: $icon-m;
|
|
73
83
|
width: $icon-m;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
|
-
|
|
77
|
-
&.-small
|
|
86
|
+
/* stylelint-disable selector-class-pattern */
|
|
87
|
+
&.-ds-small svg,
|
|
88
|
+
&.-ds-small .svg-inline--fa {
|
|
89
|
+
/* stylelint-enable */
|
|
78
90
|
height: $icon-s;
|
|
79
91
|
width: $icon-s;
|
|
80
92
|
}
|
|
81
93
|
|
|
82
|
-
|
|
83
|
-
&.-x-small
|
|
94
|
+
/* stylelint-disable selector-class-pattern */
|
|
95
|
+
&.-ds-x-small svg,
|
|
96
|
+
&.-ds-x-small .svg-inline--fa {
|
|
97
|
+
/* stylelint-enable */
|
|
84
98
|
height: $icon-xs;
|
|
85
99
|
width: $icon-xs;
|
|
86
100
|
}
|
|
87
101
|
|
|
88
|
-
|
|
89
|
-
&.-xx-small
|
|
102
|
+
/* stylelint-disable selector-class-pattern */
|
|
103
|
+
&.-ds-xx-small svg,
|
|
104
|
+
&.-ds-xx-small .svg-inline--fa {
|
|
105
|
+
/* stylelint-enable */
|
|
90
106
|
height: $icon-xxs;
|
|
91
107
|
width: $icon-xxs;
|
|
92
108
|
}
|
|
93
109
|
|
|
94
|
-
|
|
95
|
-
&.-xxx-small
|
|
110
|
+
/* stylelint-disable selector-class-pattern */
|
|
111
|
+
&.-ds-xxx-small svg,
|
|
112
|
+
&.-ds-xxx-small .svg-inline--fa {
|
|
113
|
+
/* stylelint-enable */
|
|
96
114
|
height: $icon-xxxs;
|
|
97
115
|
width: $icon-xxxs;
|
|
98
116
|
}
|