@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,38 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="threeColumnLayout">
|
|
2
|
+
<div class="ds-threeColumnLayout">
|
|
3
3
|
<div
|
|
4
|
-
class="threeColumnLayout__overlay"
|
|
4
|
+
class="ds-threeColumnLayout__overlay"
|
|
5
5
|
:class="{
|
|
6
|
-
'-visible': rightColumnVisibleMobile || leftColumnVisibleMobile,
|
|
6
|
+
'-ds-visible': rightColumnVisibleMobile || leftColumnVisibleMobile,
|
|
7
7
|
}"
|
|
8
8
|
@click="$emit('overlay-clicked')"
|
|
9
9
|
/>
|
|
10
10
|
<div
|
|
11
|
-
class="threeColumnLayout__leftColumn"
|
|
11
|
+
class="ds-threeColumnLayout__leftColumn"
|
|
12
12
|
:class="{
|
|
13
|
-
'-desktopVisible': leftColumnVisible || leftColumnVisibleMobile,
|
|
14
|
-
'-mobileVisible': leftColumnVisibleMobile,
|
|
13
|
+
'-ds-desktopVisible': leftColumnVisible || leftColumnVisibleMobile,
|
|
14
|
+
'-ds-mobileVisible': leftColumnVisibleMobile,
|
|
15
15
|
}"
|
|
16
16
|
>
|
|
17
17
|
<slot name="leftColumn" />
|
|
18
18
|
</div>
|
|
19
|
-
<div class="threeColumnLayout__contentColumn">
|
|
19
|
+
<div class="ds-threeColumnLayout__contentColumn">
|
|
20
20
|
<div
|
|
21
|
-
class="threeColumnLayout__content"
|
|
21
|
+
class="ds-threeColumnLayout__content"
|
|
22
22
|
:class="{
|
|
23
|
-
'-noPadding': contentWithoutPadding,
|
|
23
|
+
'-ds-noPadding': contentWithoutPadding,
|
|
24
24
|
}"
|
|
25
25
|
>
|
|
26
26
|
<slot />
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
<div
|
|
30
|
-
class="threeColumnLayout__rightColumn"
|
|
30
|
+
class="ds-threeColumnLayout__rightColumn"
|
|
31
31
|
:class="{
|
|
32
|
-
'-medium': rightColumnSize === THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.MEDIUM,
|
|
33
|
-
'-large': rightColumnSize === THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.LARGE,
|
|
34
|
-
'-desktopVisible': rightColumnVisible || rightColumnVisibleMobile,
|
|
35
|
-
'-mobileVisible': rightColumnVisibleMobile,
|
|
32
|
+
'-ds-medium': rightColumnSize === THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.MEDIUM,
|
|
33
|
+
'-ds-large': rightColumnSize === THREE_COLUMN_LAYOUT_RIGHT_COLUMN_SIZE.LARGE,
|
|
34
|
+
'-ds-desktopVisible': rightColumnVisible || rightColumnVisibleMobile,
|
|
35
|
+
'-ds-mobileVisible': rightColumnVisibleMobile,
|
|
36
36
|
}"
|
|
37
37
|
>
|
|
38
38
|
<slot name="rightColumn" />
|
|
@@ -63,7 +63,7 @@ $right-column-large-l-width: 30vw;
|
|
|
63
63
|
$right-column-large-l-min-width: $right-column-min-width;
|
|
64
64
|
$right-column-large-l-max-width: $right-column-large-max-width;
|
|
65
65
|
|
|
66
|
-
.threeColumnLayout {
|
|
66
|
+
.ds-threeColumnLayout {
|
|
67
67
|
$root: &;
|
|
68
68
|
|
|
69
69
|
display: flex;
|
|
@@ -84,13 +84,13 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
84
84
|
z-index: $z-index-overlay;
|
|
85
85
|
|
|
86
86
|
@media #{breakpoint-s()} {
|
|
87
|
-
&.-visible {
|
|
87
|
+
&.-ds-visible {
|
|
88
88
|
display: block;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@media #{breakpoint-l()} {
|
|
93
|
-
&.-visible {
|
|
93
|
+
&.-ds-visible {
|
|
94
94
|
display: none;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -117,12 +117,12 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
117
117
|
position: initial;
|
|
118
118
|
top: initial;
|
|
119
119
|
|
|
120
|
-
&.-desktopVisible {
|
|
120
|
+
&.-ds-desktopVisible {
|
|
121
121
|
display: initial;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
&.-mobileVisible {
|
|
125
|
+
&.-ds-mobileVisible {
|
|
126
126
|
display: initial;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -138,7 +138,7 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
138
138
|
max-width: $content-column-max-width;
|
|
139
139
|
padding: $space-s;
|
|
140
140
|
|
|
141
|
-
&.-noPadding {
|
|
141
|
+
&.-ds-noPadding {
|
|
142
142
|
padding: 0;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -159,16 +159,16 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
159
159
|
top: initial;
|
|
160
160
|
z-index: initial;
|
|
161
161
|
|
|
162
|
-
&.-desktopVisible {
|
|
162
|
+
&.-ds-desktopVisible {
|
|
163
163
|
display: initial;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
&.-mobileVisible {
|
|
167
|
+
&.-ds-mobileVisible {
|
|
168
168
|
display: initial;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
&.-medium {
|
|
171
|
+
&.-ds-medium {
|
|
172
172
|
@media #{breakpoint-s()} {
|
|
173
173
|
max-width: $right-column-medium-max-width;
|
|
174
174
|
}
|
|
@@ -180,7 +180,7 @@ $right-column-large-l-max-width: $right-column-large-max-width;
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
&.-large {
|
|
183
|
+
&.-ds-large {
|
|
184
184
|
@media #{breakpoint-s()} {
|
|
185
185
|
max-width: $right-column-large-max-width;
|
|
186
186
|
}
|
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
@import '../../../styles/settings/colors/tokens';
|
|
34
34
|
@import '../../../styles/settings/typography/tokens';
|
|
35
35
|
|
|
36
|
+
// Deprecated component, no need to prefix class names.
|
|
37
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
36
38
|
.m-modal {
|
|
37
39
|
@include text-l-default-regular;
|
|
38
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ds-modal" @click.self="$emit('close-modal')">
|
|
3
|
-
<div class="ds-modal__wrapper" :class="{ '-small': size === MODAL_SIZES.SMALL }">
|
|
3
|
+
<div class="ds-modal__wrapper" :class="{ '-ds-small': size === MODAL_SIZES.SMALL }">
|
|
4
4
|
<wnl-icon-button
|
|
5
5
|
touchable
|
|
6
6
|
:icon="ICONS.FA_XMARK"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/>
|
|
13
13
|
<div class="ds-modal__scrollableWrapper">
|
|
14
14
|
<img v-if="headerImage" class="ds-modal__image" :src="headerImage" alt="" />
|
|
15
|
-
<div class="ds-modal__content" :class="{ '-centered': contentCentered }">
|
|
15
|
+
<div class="ds-modal__content" :class="{ '-ds-centered': contentCentered }">
|
|
16
16
|
<div class="ds-modal__header">
|
|
17
17
|
<feature-icon
|
|
18
18
|
v-if="headerFeatureIcon"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<h4
|
|
26
26
|
class="ds-modal__headerTitle"
|
|
27
27
|
:class="{
|
|
28
|
-
'-small': headerTitleSize === MODAL_HEADER_TITLE_SIZES.SMALL,
|
|
28
|
+
'-ds-small': headerTitleSize === MODAL_HEADER_TITLE_SIZES.SMALL,
|
|
29
29
|
}"
|
|
30
30
|
>{{ headerTitle }}</h4
|
|
31
31
|
>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<div
|
|
40
40
|
v-if="displayFooter"
|
|
41
41
|
class="ds-modal__footer"
|
|
42
|
-
:class="{ '-singleColumn': calcSingleColumn }"
|
|
42
|
+
:class="{ '-ds-singleColumn': calcSingleColumn }"
|
|
43
43
|
>
|
|
44
44
|
<div
|
|
45
45
|
v-if="footerTertiaryButtonText || footerCheckboxText"
|
|
@@ -146,7 +146,7 @@ $image-height-small: 140px;
|
|
|
146
146
|
position: relative;
|
|
147
147
|
width: 100%;
|
|
148
148
|
|
|
149
|
-
&.-small {
|
|
149
|
+
&.-ds-small {
|
|
150
150
|
max-width: $modal-small-width;
|
|
151
151
|
|
|
152
152
|
@media #{breakpoint-s()} {
|
|
@@ -178,7 +178,7 @@ $image-height-small: 140px;
|
|
|
178
178
|
padding: $space-l $space-xl;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
&.-centered {
|
|
181
|
+
&.-ds-centered {
|
|
182
182
|
#{$self}__header,
|
|
183
183
|
#{$self}__slotContent {
|
|
184
184
|
text-align: center;
|
|
@@ -208,7 +208,7 @@ $image-height-small: 140px;
|
|
|
208
208
|
@include displayHeading-xs-default-bold;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
&.-small {
|
|
211
|
+
&.-ds-small {
|
|
212
212
|
@include heading-xl-default-bold;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -263,7 +263,7 @@ $image-height-small: 140px;
|
|
|
263
263
|
flex-direction: row;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
&.-singleColumn {
|
|
266
|
+
&.-ds-singleColumn {
|
|
267
267
|
#{$self}__footerCtaPrimary {
|
|
268
268
|
justify-content: center;
|
|
269
269
|
width: 100%;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="
|
|
3
|
+
class="ds-numberInCircle"
|
|
4
4
|
:class="{
|
|
5
|
-
'-medium': medium,
|
|
5
|
+
'-ds-medium': medium,
|
|
6
6
|
[colorClass]: true,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@import '../../../styles/settings/colors/tokens';
|
|
18
18
|
@import '../../../styles/settings/typography/tokens';
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
.ds-numberInCircle {
|
|
21
21
|
@include label-2xl-default-regular;
|
|
22
22
|
|
|
23
23
|
align-items: center;
|
|
@@ -36,47 +36,47 @@
|
|
|
36
36
|
min-width: $icon-xxl;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
&.-is1,
|
|
40
|
-
&.-is6,
|
|
41
|
-
&.-primary {
|
|
39
|
+
&.-ds-is1,
|
|
40
|
+
&.-ds-is6,
|
|
41
|
+
&.-ds-primary {
|
|
42
42
|
border-color: $color-primary-border;
|
|
43
43
|
color: $color-primary-text;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
&.-is5,
|
|
47
|
-
&.-is10,
|
|
48
|
-
&.-neutral {
|
|
46
|
+
&.-ds-is5,
|
|
47
|
+
&.-ds-is10,
|
|
48
|
+
&.-ds-neutral {
|
|
49
49
|
border-color: $color-neutral-border-heavy;
|
|
50
50
|
color: $color-neutral-text;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
&.-is2,
|
|
54
|
-
&.-is7,
|
|
55
|
-
&.-success {
|
|
53
|
+
&.-ds-is2,
|
|
54
|
+
&.-ds-is7,
|
|
55
|
+
&.-ds-success {
|
|
56
56
|
border-color: $color-success-border;
|
|
57
57
|
color: $color-success-text;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
&.-danger {
|
|
60
|
+
&.-ds-danger {
|
|
61
61
|
border-color: $color-danger-border;
|
|
62
62
|
color: $color-danger-text;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&.-is4,
|
|
66
|
-
&.-is9,
|
|
67
|
-
&.-info {
|
|
65
|
+
&.-ds-is4,
|
|
66
|
+
&.-ds-is9,
|
|
67
|
+
&.-ds-info {
|
|
68
68
|
border-color: $color-info-border;
|
|
69
69
|
color: $color-info-text;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
&.-is3,
|
|
73
|
-
&.-is8,
|
|
74
|
-
&.-accent {
|
|
72
|
+
&.-ds-is3,
|
|
73
|
+
&.-ds-is8,
|
|
74
|
+
&.-ds-accent {
|
|
75
75
|
border-color: $color-accent-border;
|
|
76
76
|
color: $color-accent-text;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
&.-medium {
|
|
79
|
+
&.-ds-medium {
|
|
80
80
|
@include label-m-default-regular;
|
|
81
81
|
|
|
82
82
|
height: $icon-l;
|
|
@@ -110,13 +110,13 @@ export default {
|
|
|
110
110
|
computed: {
|
|
111
111
|
colorClass() {
|
|
112
112
|
const colorToClassMap = {
|
|
113
|
-
[NUMBER_IN_CIRCLE_COLORS.DEFAULT]: `-is${this.index}`,
|
|
114
|
-
[NUMBER_IN_CIRCLE_COLORS.PRIMARY]: '-primary',
|
|
115
|
-
[NUMBER_IN_CIRCLE_COLORS.NEUTRAL]: '-neutral',
|
|
116
|
-
[NUMBER_IN_CIRCLE_COLORS.SUCCESS]: '-success',
|
|
117
|
-
[NUMBER_IN_CIRCLE_COLORS.DANGER]: '-danger',
|
|
118
|
-
[NUMBER_IN_CIRCLE_COLORS.INFO]: '-info',
|
|
119
|
-
[NUMBER_IN_CIRCLE_COLORS.ACCENT]: '-accent',
|
|
113
|
+
[NUMBER_IN_CIRCLE_COLORS.DEFAULT]: `-ds-is${this.index}`,
|
|
114
|
+
[NUMBER_IN_CIRCLE_COLORS.PRIMARY]: '-ds-primary',
|
|
115
|
+
[NUMBER_IN_CIRCLE_COLORS.NEUTRAL]: '-ds-neutral',
|
|
116
|
+
[NUMBER_IN_CIRCLE_COLORS.SUCCESS]: '-ds-success',
|
|
117
|
+
[NUMBER_IN_CIRCLE_COLORS.DANGER]: '-ds-danger',
|
|
118
|
+
[NUMBER_IN_CIRCLE_COLORS.INFO]: '-ds-info',
|
|
119
|
+
[NUMBER_IN_CIRCLE_COLORS.ACCENT]: '-ds-accent',
|
|
120
120
|
};
|
|
121
121
|
return colorToClassMap[this.color];
|
|
122
122
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="outlineDivider">
|
|
2
|
+
<div class="ds-outlineDivider">
|
|
3
3
|
<ds-divider :prominence="prominence" :size="size" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<style scoped lang="scss">
|
|
8
8
|
@import '../../../../styles/settings/spacings';
|
|
9
9
|
|
|
10
|
-
.outlineDivider {
|
|
10
|
+
.ds-outlineDivider {
|
|
11
11
|
padding: $space-3xs 0;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -1,55 +1,58 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="outlineItem"
|
|
3
|
+
class="ds-outlineItem"
|
|
4
4
|
:class="{
|
|
5
|
-
'-disabled': isDisabled,
|
|
6
|
-
'-medium': size === OUTLINE_ITEM_SIZES.MEDIUM,
|
|
7
|
-
'-selected': isSelected,
|
|
8
|
-
'-hoverable': !isSelected || isSelectedInteractive,
|
|
9
|
-
'-backgroundNeutral': backgroundColor === OUTLINE_ITEM_BACKGROUND_COLORS.NEUTRAL,
|
|
5
|
+
'-ds-disabled': isDisabled,
|
|
6
|
+
'-ds-medium': size === OUTLINE_ITEM_SIZES.MEDIUM,
|
|
7
|
+
'-ds-selected': isSelected,
|
|
8
|
+
'-ds-hoverable': !isSelected || isSelectedInteractive,
|
|
9
|
+
'-ds-backgroundNeutral': backgroundColor === OUTLINE_ITEM_BACKGROUND_COLORS.NEUTRAL,
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
|
-
<div class="outlineItem__content" :class="{ '-centeredContent': $slots.default }">
|
|
12
|
+
<div class="ds-outlineItem__content" :class="{ '-ds-centeredContent': $slots.default }">
|
|
13
13
|
<span
|
|
14
14
|
v-if="index !== null"
|
|
15
|
-
class="outlineItem__index"
|
|
16
|
-
:class="{ '-active': isSelected }"
|
|
15
|
+
class="ds-outlineItem__index"
|
|
16
|
+
:class="{ '-ds-active': isSelected }"
|
|
17
17
|
>
|
|
18
18
|
{{ index }}.
|
|
19
19
|
</span>
|
|
20
20
|
<ds-icon
|
|
21
21
|
v-if="iconLeft"
|
|
22
|
-
class="outlineItem__icon"
|
|
22
|
+
class="ds-outlineItem__icon"
|
|
23
23
|
:class="{
|
|
24
|
-
'-active': isSelected && hasSelectedIconsColorPrimary,
|
|
24
|
+
'-ds-active': isSelected && hasSelectedIconsColorPrimary,
|
|
25
25
|
}"
|
|
26
26
|
:icon="iconLeft"
|
|
27
27
|
:size="ICON_SIZES.X_SMALL"
|
|
28
28
|
/>
|
|
29
|
-
<span class="outlineItem__text">
|
|
30
|
-
<span class="outlineItem__label" :class="{ '-uppercase': isLabelUppercase }">
|
|
29
|
+
<span class="ds-outlineItem__text">
|
|
30
|
+
<span class="ds-outlineItem__label" :class="{ '-ds-uppercase': isLabelUppercase }">
|
|
31
31
|
{{ label }}
|
|
32
32
|
</span>
|
|
33
|
-
<span v-if="additionalText" class="outlineItem__additionalText">
|
|
33
|
+
<span v-if="additionalText" class="ds-outlineItem__additionalText">
|
|
34
34
|
{{ additionalText }}
|
|
35
35
|
</span>
|
|
36
36
|
</span>
|
|
37
37
|
</div>
|
|
38
|
-
<div
|
|
38
|
+
<div
|
|
39
|
+
class="ds-outlineItem__rightContent"
|
|
40
|
+
:class="{ '-ds-centeredContent': $slots.default }"
|
|
41
|
+
>
|
|
39
42
|
<template v-if="$slots.default">
|
|
40
43
|
<slot />
|
|
41
44
|
</template>
|
|
42
45
|
<ds-icon
|
|
43
46
|
v-if="isDone"
|
|
44
|
-
class="outlineItem__icon -active"
|
|
47
|
+
class="ds-outlineItem__icon -ds-active"
|
|
45
48
|
:icon="ICONS.FA_CHECK_SOLID"
|
|
46
49
|
:size="ICON_SIZES.X_SMALL"
|
|
47
50
|
/>
|
|
48
51
|
<ds-icon
|
|
49
52
|
v-else-if="iconRight"
|
|
50
|
-
class="outlineItem__icon"
|
|
53
|
+
class="ds-outlineItem__icon"
|
|
51
54
|
:class="{
|
|
52
|
-
'-active': isSelected && hasSelectedIconsColorPrimary,
|
|
55
|
+
'-ds-active': isSelected && hasSelectedIconsColorPrimary,
|
|
53
56
|
}"
|
|
54
57
|
:icon="iconRight"
|
|
55
58
|
:size="ICON_SIZES.X_SMALL"
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
@import '../../../../styles/settings/colors/tokens';
|
|
66
69
|
@import '../../../../styles/settings/typography/tokens';
|
|
67
70
|
|
|
68
|
-
.outlineItem {
|
|
71
|
+
.ds-outlineItem {
|
|
69
72
|
$root: &;
|
|
70
73
|
$border-width: 2px;
|
|
71
74
|
|
|
@@ -82,7 +85,7 @@
|
|
|
82
85
|
column-gap: $space-2xs;
|
|
83
86
|
display: flex;
|
|
84
87
|
|
|
85
|
-
&.-centeredContent {
|
|
88
|
+
&.-ds-centeredContent {
|
|
86
89
|
align-items: center;
|
|
87
90
|
}
|
|
88
91
|
}
|
|
@@ -92,7 +95,7 @@
|
|
|
92
95
|
|
|
93
96
|
color: $color-neutral-text-weak;
|
|
94
97
|
|
|
95
|
-
&.-active {
|
|
98
|
+
&.-ds-active {
|
|
96
99
|
color: $color-primary-text;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
@@ -106,7 +109,7 @@
|
|
|
106
109
|
|
|
107
110
|
color: $color-neutral-text-heavy;
|
|
108
111
|
|
|
109
|
-
&.-uppercase {
|
|
112
|
+
&.-ds-uppercase {
|
|
110
113
|
@include label-l-default-regular-uppercase;
|
|
111
114
|
}
|
|
112
115
|
}
|
|
@@ -121,34 +124,34 @@
|
|
|
121
124
|
&__icon {
|
|
122
125
|
color: $color-neutral-icon-weak;
|
|
123
126
|
|
|
124
|
-
&.-active {
|
|
127
|
+
&.-ds-active {
|
|
125
128
|
color: $color-primary-icon;
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
&.-hoverable:hover {
|
|
132
|
+
&.-ds-hoverable:hover {
|
|
130
133
|
background-color: $color-neutral-background-weak-hovered;
|
|
131
134
|
cursor: pointer;
|
|
132
135
|
}
|
|
133
136
|
|
|
134
|
-
&.-selected {
|
|
137
|
+
&.-ds-selected {
|
|
135
138
|
background-color: $color-neutral-background;
|
|
136
139
|
border-left: $border-width solid $color-primary-border;
|
|
137
140
|
border-radius: $radius-xs $radius-s $radius-s $radius-xs;
|
|
138
141
|
padding-left: $space-xs - $border-width;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
&.-disabled {
|
|
144
|
+
&.-ds-disabled {
|
|
142
145
|
pointer-events: none;
|
|
143
146
|
|
|
144
|
-
&.-selected {
|
|
147
|
+
&.-ds-selected {
|
|
145
148
|
border-left: $border-width solid $color-primary-border-disabled;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
#{$root}__icon {
|
|
149
152
|
color: $color-neutral-icon-weak-disabled;
|
|
150
153
|
|
|
151
|
-
&.-active {
|
|
154
|
+
&.-ds-active {
|
|
152
155
|
color: $color-primary-icon-disabled;
|
|
153
156
|
}
|
|
154
157
|
}
|
|
@@ -156,7 +159,7 @@
|
|
|
156
159
|
#{$root}__index {
|
|
157
160
|
color: $color-neutral-text-weak-disabled;
|
|
158
161
|
|
|
159
|
-
&.-active {
|
|
162
|
+
&.-ds-active {
|
|
160
163
|
color: $color-primary-text-disabled;
|
|
161
164
|
}
|
|
162
165
|
}
|
|
@@ -166,7 +169,7 @@
|
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
&.-medium {
|
|
172
|
+
&.-ds-medium {
|
|
170
173
|
padding: $space-s $space-xs;
|
|
171
174
|
|
|
172
175
|
#{$root}__content {
|
|
@@ -176,20 +179,20 @@
|
|
|
176
179
|
#{$root}__label {
|
|
177
180
|
@include label-l-default-bold;
|
|
178
181
|
|
|
179
|
-
&.-uppercase {
|
|
182
|
+
&.-ds-uppercase {
|
|
180
183
|
@include label-l-default-bold-uppercase;
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
186
|
|
|
184
|
-
&.-selected {
|
|
187
|
+
&.-ds-selected {
|
|
185
188
|
padding-left: $space-xs - $border-width;
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
|
|
189
|
-
&.-backgroundNeutral {
|
|
192
|
+
&.-ds-backgroundNeutral {
|
|
190
193
|
background-color: $color-neutral-background;
|
|
191
194
|
|
|
192
|
-
&.-hoverable:hover {
|
|
195
|
+
&.-ds-hoverable:hover {
|
|
193
196
|
background-color: $color-neutral-background-hovered;
|
|
194
197
|
}
|
|
195
198
|
}
|
|
@@ -204,6 +207,7 @@ import {
|
|
|
204
207
|
OUTLINE_ITEM_SIZES,
|
|
205
208
|
OUTLINE_ITEM_STATES,
|
|
206
209
|
} from './OutlineItem.consts';
|
|
210
|
+
|
|
207
211
|
export default {
|
|
208
212
|
name: 'OutlineItem',
|
|
209
213
|
components: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="outlineSectionHeader">{{ title }}</div>
|
|
2
|
+
<div class="ds-outlineSectionHeader">{{ title }}</div>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<style scoped lang="scss">
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@import '../../../../styles/settings/colors/tokens';
|
|
8
8
|
@import '../../../../styles/settings/typography/tokens';
|
|
9
9
|
|
|
10
|
-
.outlineSectionHeader {
|
|
10
|
+
.ds-outlineSectionHeader {
|
|
11
11
|
@include info-s-extensive-bold-uppercase;
|
|
12
12
|
|
|
13
13
|
color: $color-neutral-text-weak;
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="ds-pagination"
|
|
4
4
|
:class="{
|
|
5
|
-
'-forceCompact': forceCompact,
|
|
6
|
-
'-centered': isCentered && !$slots.accessory,
|
|
5
|
+
'-ds-forceCompact': forceCompact,
|
|
6
|
+
'-ds-centered': isCentered && !$slots.accessory,
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<div class="ds-pagination__itemsWrapper">
|
|
10
10
|
<div
|
|
11
11
|
v-if="navigationItems.length > 1 && !forceCompact"
|
|
12
|
-
class="ds-pagination__items -default"
|
|
12
|
+
class="ds-pagination__items -ds-default"
|
|
13
13
|
>
|
|
14
14
|
<template v-for="(navigationItem, index) in navigationItems">
|
|
15
15
|
<div
|
|
16
16
|
v-if="isPage(navigationItem)"
|
|
17
17
|
:key="index"
|
|
18
18
|
class="ds-pagination__itemWrapper"
|
|
19
|
-
:class="{ '-touchable': currentPage !== navigationItem }"
|
|
19
|
+
:class="{ '-ds-touchable': currentPage !== navigationItem }"
|
|
20
20
|
role="link"
|
|
21
21
|
@click="changePage(navigationItem)"
|
|
22
22
|
>
|
|
23
23
|
<span
|
|
24
24
|
class="ds-pagination__item"
|
|
25
|
-
:class="{ '-selected': currentPage === navigationItem }"
|
|
25
|
+
:class="{ '-ds-selected': currentPage === navigationItem }"
|
|
26
26
|
>
|
|
27
27
|
{{ navigationItem }}
|
|
28
28
|
</span>
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"
|
|
39
39
|
>
|
|
40
40
|
<template #reference="{ isOpened }">
|
|
41
|
-
<div class="ds-pagination__itemWrapper -touchable">
|
|
41
|
+
<div class="ds-pagination__itemWrapper -ds-touchable">
|
|
42
42
|
<span
|
|
43
43
|
class="ds-pagination__item"
|
|
44
|
-
:class="{ '-selected': isOpened }"
|
|
44
|
+
:class="{ '-ds-selected': isOpened }"
|
|
45
45
|
>…</span
|
|
46
46
|
>
|
|
47
47
|
</div>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</template>
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
|
-
<div v-if="navigationItems.length > 1" class="ds-pagination__items -compact">
|
|
70
|
+
<div v-if="navigationItems.length > 1" class="ds-pagination__items -ds-compact">
|
|
71
71
|
<icon-button
|
|
72
72
|
:size="ICON_BUTTON_SIZES.MEDIUM"
|
|
73
73
|
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
@@ -142,7 +142,7 @@ $pagination-input-height: 32px;
|
|
|
142
142
|
justify-content: center;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
&.-centered {
|
|
145
|
+
&.-ds-centered {
|
|
146
146
|
#{$self}__itemsWrapper {
|
|
147
147
|
align-items: center;
|
|
148
148
|
flex-grow: 1;
|
|
@@ -154,25 +154,25 @@ $pagination-input-height: 32px;
|
|
|
154
154
|
flex-direction: row;
|
|
155
155
|
padding: 0;
|
|
156
156
|
|
|
157
|
-
&.-default {
|
|
157
|
+
&.-ds-default {
|
|
158
158
|
display: none;
|
|
159
159
|
|
|
160
160
|
@media #{breakpoint-s()} {
|
|
161
161
|
display: flex;
|
|
162
162
|
|
|
163
|
-
#{$self}.-forceCompact & {
|
|
163
|
+
#{$self}.-ds-forceCompact & {
|
|
164
164
|
display: none;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
&.-compact {
|
|
169
|
+
&.-ds-compact {
|
|
170
170
|
display: flex;
|
|
171
171
|
|
|
172
172
|
@media #{breakpoint-s()} {
|
|
173
173
|
display: none;
|
|
174
174
|
|
|
175
|
-
#{$self}.-forceCompact & {
|
|
175
|
+
#{$self}.-ds-forceCompact & {
|
|
176
176
|
display: flex;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -217,10 +217,10 @@ $pagination-input-height: 32px;
|
|
|
217
217
|
padding: $space-4xs;
|
|
218
218
|
text-align: center;
|
|
219
219
|
|
|
220
|
-
&.-touchable:hover {
|
|
220
|
+
&.-ds-touchable:hover {
|
|
221
221
|
cursor: pointer;
|
|
222
222
|
|
|
223
|
-
#{$self}__item:not(.-selected) {
|
|
223
|
+
#{$self}__item:not(.-ds-selected) {
|
|
224
224
|
background: $color-neutral-background-weak-hovered;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
@@ -237,14 +237,14 @@ $pagination-input-height: 32px;
|
|
|
237
237
|
min-width: $pagination-item-min-width;
|
|
238
238
|
padding: $space-2xs;
|
|
239
239
|
|
|
240
|
-
&.-selected {
|
|
240
|
+
&.-ds-selected {
|
|
241
241
|
@include label-l-default-bold;
|
|
242
242
|
|
|
243
243
|
background: $color-neutral-background-medium;
|
|
244
244
|
color: $color-neutral-text-heavy;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
&:active:not(.-selected) {
|
|
247
|
+
&:active:not(.-ds-selected) {
|
|
248
248
|
background: $color-neutral-background-weak-hovered;
|
|
249
249
|
box-shadow: $shadow-inset-s;
|
|
250
250
|
}
|