@bethinkpl/design-system 21.0.2 → 22.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/README.md +2 -4
- package/dist/design-system.umd.js +1450 -1418
- 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/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/docs/iframe.html +1 -1
- package/docs/main.f922fbbf.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.vue +27 -20
- 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 +38 -38
- 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,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="richListItem" :class="classList" @click="$emit('click', $event)">
|
|
3
|
-
<div class="richListItem__container -dimmable">
|
|
4
|
-
<div v-if="isDraggable && hasDraggableHandler" class="richListItem__dragAndDrop">
|
|
2
|
+
<div class="ds-richListItem" :class="classList" @click="$emit('click', $event)">
|
|
3
|
+
<div class="ds-richListItem__container -ds-dimmable">
|
|
4
|
+
<div v-if="isDraggable && hasDraggableHandler" class="ds-richListItem__dragAndDrop">
|
|
5
5
|
<ds-icon
|
|
6
6
|
:icon="ICONS.FA_BARS"
|
|
7
|
-
class="richListItem__dragAndDropIcon"
|
|
7
|
+
class="ds-richListItem__dragAndDropIcon"
|
|
8
8
|
:class="{ [draggableIconClassName]: !!draggableIconClassName }"
|
|
9
9
|
:size="
|
|
10
10
|
size === RICH_LIST_ITEM_SIZE.SMALL
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
@click.stop
|
|
15
15
|
/>
|
|
16
16
|
</div>
|
|
17
|
-
<div v-if="icon" class="richListItem__iconWrapper">
|
|
17
|
+
<div v-if="icon" class="ds-richListItem__iconWrapper">
|
|
18
18
|
<ds-icon
|
|
19
19
|
:icon="icon"
|
|
20
|
-
class="richListItem__icon"
|
|
20
|
+
class="ds-richListItem__icon"
|
|
21
21
|
:size="
|
|
22
22
|
size === RICH_LIST_ITEM_SIZE.SMALL
|
|
23
23
|
? ICON_SIZES.XX_SMALL
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
@click.prevent="$emit('icon-click')"
|
|
29
29
|
/>
|
|
30
30
|
</div>
|
|
31
|
-
<div class="richListItem__content">
|
|
31
|
+
<div class="ds-richListItem__content">
|
|
32
32
|
<slot name="content" />
|
|
33
33
|
</div>
|
|
34
|
-
<div class="richListItem__rightContainer">
|
|
35
|
-
<div v-if="$slots.meta" class="richListItem__metaData -hideOnMobile">
|
|
34
|
+
<div class="ds-richListItem__rightContainer">
|
|
35
|
+
<div v-if="$slots.meta" class="ds-richListItem__metaData -ds-hideOnMobile">
|
|
36
36
|
<slot name="meta" />
|
|
37
37
|
</div>
|
|
38
|
-
<div v-if="$slots.actions" class="richListItem__actionSlot" @click.stop>
|
|
38
|
+
<div v-if="$slots.actions" class="ds-richListItem__actionSlot" @click.stop>
|
|
39
39
|
<ds-divider
|
|
40
40
|
v-if="$slots.actions && hasActionsSlotDivider"
|
|
41
41
|
is-vertical
|
|
42
|
-
class="-hideOnMobile"
|
|
42
|
+
class="-ds-hideOnMobile"
|
|
43
43
|
/>
|
|
44
44
|
<slot name="actions" />
|
|
45
45
|
</div>
|
|
46
|
-
<div v-if="isSelectable" class="richListItem__checkbox">
|
|
47
|
-
<ds-divider is-vertical class="-hideOnMobile" />
|
|
46
|
+
<div v-if="isSelectable" class="ds-richListItem__checkbox">
|
|
47
|
+
<ds-divider is-vertical class="-ds-hideOnMobile" />
|
|
48
48
|
<ds-checkbox
|
|
49
49
|
:is-selected="isSelected"
|
|
50
50
|
@update:is-selected="$emit('update:isSelected', $event)"
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
|
-
<div v-if="$slots.meta" class="richListItem__metaData -dimmable -visibleOnMobile">
|
|
57
|
+
<div v-if="$slots.meta" class="ds-richListItem__metaData -ds-dimmable -ds-visibleOnMobile">
|
|
58
58
|
<slot name="meta" />
|
|
59
59
|
</div>
|
|
60
60
|
<div
|
|
61
61
|
v-if="borderColorClass || borderColorStyle"
|
|
62
|
-
class="richListItem__border"
|
|
62
|
+
class="ds-richListItem__border"
|
|
63
63
|
:class="borderColorClass"
|
|
64
64
|
:style="borderColorStyle"
|
|
65
65
|
/>
|
|
@@ -89,14 +89,14 @@ $rich-list-item-background-colors: (
|
|
|
89
89
|
),
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
-
.richListItem {
|
|
92
|
+
.ds-richListItem {
|
|
93
93
|
$root: &;
|
|
94
94
|
|
|
95
95
|
@each $color, $value in $rich-list-item-background-colors {
|
|
96
|
-
&.-background-#{$color} {
|
|
96
|
+
&.-ds-background-#{$color} {
|
|
97
97
|
background-color: map-get($value, 'default');
|
|
98
98
|
|
|
99
|
-
&.-loading {
|
|
99
|
+
&.-ds-loading {
|
|
100
100
|
background-color: map-get($value, 'loading');
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -118,50 +118,50 @@ $rich-list-item-background-colors: (
|
|
|
118
118
|
padding: 0 $space-4xs;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
&.-dimmed {
|
|
122
|
-
.-dimmable {
|
|
121
|
+
&.-ds-dimmed {
|
|
122
|
+
.-ds-dimmable {
|
|
123
123
|
opacity: 0.65;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
&.-loading {
|
|
127
|
+
&.-ds-loading {
|
|
128
128
|
cursor: initial;
|
|
129
129
|
pointer-events: none;
|
|
130
130
|
|
|
131
|
-
.-dimmable {
|
|
131
|
+
.-ds-dimmable {
|
|
132
132
|
opacity: 0.5;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
&.-interactive {
|
|
136
|
+
&.-ds-interactive {
|
|
137
137
|
cursor: pointer;
|
|
138
138
|
pointer-events: initial;
|
|
139
139
|
|
|
140
|
-
&.-flat {
|
|
140
|
+
&.-ds-flat {
|
|
141
141
|
&:hover {
|
|
142
142
|
opacity: 1;
|
|
143
143
|
|
|
144
|
-
.-dimmable {
|
|
144
|
+
.-ds-dimmable {
|
|
145
145
|
opacity: 1;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
&:not(.-dimmed):hover {
|
|
151
|
-
&.-default {
|
|
150
|
+
&:not(.-ds-dimmed):hover {
|
|
151
|
+
&.-ds-default {
|
|
152
152
|
@each $color, $value in $rich-list-item-background-colors {
|
|
153
|
-
&.-background-#{$color} {
|
|
153
|
+
&.-ds-background-#{$color} {
|
|
154
154
|
background-color: map-get($value, 'hover');
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
&.-flat {
|
|
159
|
+
&.-ds-flat {
|
|
160
160
|
background: $color-neutral-background-ghost-hovered;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
&.-draggable {
|
|
164
|
+
&.-ds-draggable {
|
|
165
165
|
&:hover {
|
|
166
166
|
cursor: grab;
|
|
167
167
|
}
|
|
@@ -172,14 +172,14 @@ $rich-list-item-background-colors: (
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
&.-elevation-small {
|
|
175
|
+
&.-ds-elevation-small {
|
|
176
176
|
box-shadow: $shadow-s;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
&.-flat {
|
|
179
|
+
&.-ds-flat {
|
|
180
180
|
background: $color-neutral-background-ghost;
|
|
181
181
|
|
|
182
|
-
&.-loading {
|
|
182
|
+
&.-ds-loading {
|
|
183
183
|
background: $color-neutral-background-ghost;
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -188,19 +188,19 @@ $rich-list-item-background-colors: (
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
&.-default {
|
|
191
|
+
&.-ds-default {
|
|
192
192
|
border: 1px solid $color-neutral-border-weak;
|
|
193
193
|
border-radius: $radius-s;
|
|
194
194
|
|
|
195
|
-
&.-interactive:hover {
|
|
196
|
-
.-dimmable {
|
|
195
|
+
&.-ds-interactive:hover {
|
|
196
|
+
.-ds-dimmable {
|
|
197
197
|
opacity: 1;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
#{$root}__border {
|
|
202
202
|
@each $color, $value in $rich-list-item-border-colors {
|
|
203
|
-
&.-border-#{$color} {
|
|
203
|
+
&.-ds-border-#{$color} {
|
|
204
204
|
background-color: $value;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
@@ -262,7 +262,7 @@ $rich-list-item-background-colors: (
|
|
|
262
262
|
padding-left: $space-4xs;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
&.-hideOnMobile {
|
|
265
|
+
&.-ds-hideOnMobile {
|
|
266
266
|
display: none;
|
|
267
267
|
|
|
268
268
|
@media #{breakpoint-s()} {
|
|
@@ -270,7 +270,7 @@ $rich-list-item-background-colors: (
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
&.-visibleOnMobile {
|
|
273
|
+
&.-ds-visibleOnMobile {
|
|
274
274
|
display: flex;
|
|
275
275
|
|
|
276
276
|
@media #{breakpoint-s()} {
|
|
@@ -340,7 +340,7 @@ $rich-list-item-background-colors: (
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
&.-small {
|
|
343
|
+
&.-ds-small {
|
|
344
344
|
padding: $space-4xs;
|
|
345
345
|
|
|
346
346
|
@media #{breakpoint-s()} {
|
|
@@ -398,7 +398,7 @@ $rich-list-item-background-colors: (
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
.-hideOnMobile {
|
|
401
|
+
.-ds-hideOnMobile {
|
|
402
402
|
display: none;
|
|
403
403
|
|
|
404
404
|
@media #{breakpoint-s()} {
|
|
@@ -546,28 +546,28 @@ export default {
|
|
|
546
546
|
computed: {
|
|
547
547
|
classList() {
|
|
548
548
|
return {
|
|
549
|
-
'-default': this.type === RICH_LIST_ITEM_TYPE.DEFAULT,
|
|
550
|
-
'-flat': this.type === RICH_LIST_ITEM_TYPE.FLAT,
|
|
551
|
-
'-loading': this.state === RICH_LIST_ITEM_STATE.LOADING,
|
|
552
|
-
'-dimmed': this.isDimmed,
|
|
553
|
-
'-interactive': this.isInteractive,
|
|
554
|
-
'-small': this.size === RICH_LIST_ITEM_SIZE.SMALL,
|
|
549
|
+
'-ds-default': this.type === RICH_LIST_ITEM_TYPE.DEFAULT,
|
|
550
|
+
'-ds-flat': this.type === RICH_LIST_ITEM_TYPE.FLAT,
|
|
551
|
+
'-ds-loading': this.state === RICH_LIST_ITEM_STATE.LOADING,
|
|
552
|
+
'-ds-dimmed': this.isDimmed,
|
|
553
|
+
'-ds-interactive': this.isInteractive,
|
|
554
|
+
'-ds-small': this.size === RICH_LIST_ITEM_SIZE.SMALL,
|
|
555
555
|
...(this.backgroundColor &&
|
|
556
556
|
this.type !== RICH_LIST_ITEM_TYPE.FLAT && {
|
|
557
|
-
[`-background-${this.backgroundColor}`]: true,
|
|
557
|
+
[`-ds-background-${this.backgroundColor}`]: true,
|
|
558
558
|
}),
|
|
559
559
|
...(this.elevation &&
|
|
560
560
|
this.type !== RICH_LIST_ITEM_TYPE.FLAT && {
|
|
561
|
-
[`-elevation-${this.elevation}`]: true,
|
|
561
|
+
[`-ds-elevation-${this.elevation}`]: true,
|
|
562
562
|
}),
|
|
563
|
-
'-draggable': this.isDraggable && !this.hasDraggableHandler,
|
|
563
|
+
'-ds-draggable': this.isDraggable && !this.hasDraggableHandler,
|
|
564
564
|
};
|
|
565
565
|
},
|
|
566
566
|
iconColorClass() {
|
|
567
567
|
if (!this.iconColor || (this.iconColor && this.iconColorHex)) {
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
return
|
|
570
|
+
return `-ds-${this.iconColor}`;
|
|
571
571
|
},
|
|
572
572
|
iconColorStyle() {
|
|
573
573
|
if (!this.iconColor || !this.iconColorHex) {
|
|
@@ -581,7 +581,7 @@ export default {
|
|
|
581
581
|
if (!this.borderColor || (this.borderColor && this.borderColorHex)) {
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
|
-
return `-border-${this.borderColor}`;
|
|
584
|
+
return `-ds-border-${this.borderColor}`;
|
|
585
585
|
},
|
|
586
586
|
borderColorStyle() {
|
|
587
587
|
if (!this.borderColor || !this.borderColorHex) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="sectionTitle">
|
|
3
|
-
<div class="sectionTitle__title">{{ titleText }}</div>
|
|
4
|
-
<div class="sectionTitle__supportingText">{{ supportingText }}</div>
|
|
2
|
+
<div class="ds-sectionTitle">
|
|
3
|
+
<div class="ds-sectionTitle__title">{{ titleText }}</div>
|
|
4
|
+
<div class="ds-sectionTitle__supportingText">{{ supportingText }}</div>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@import '../../../styles/settings/typography/tokens';
|
|
11
11
|
@import '../../../styles/settings/spacings';
|
|
12
12
|
|
|
13
|
-
.sectionTitle {
|
|
13
|
+
.ds-sectionTitle {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
gap: $space-4xs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="selectList">
|
|
2
|
+
<div class="ds-selectList">
|
|
3
3
|
<slot></slot>
|
|
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
|
-
.selectList {
|
|
10
|
+
.ds-selectList {
|
|
11
11
|
padding: $space-2xs 0;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="selectListItem"
|
|
3
|
+
class="ds-selectListItem"
|
|
4
4
|
:class="{
|
|
5
|
-
'-disabled': isDisabled,
|
|
6
|
-
'-loading': isLoading,
|
|
7
|
-
'-selected': isSelected,
|
|
8
|
-
[
|
|
9
|
-
[
|
|
5
|
+
'-ds-disabled': isDisabled,
|
|
6
|
+
'-ds-loading': isLoading,
|
|
7
|
+
'-ds-selected': isSelected,
|
|
8
|
+
[`-ds-${size}`]: true,
|
|
9
|
+
[`-ds-${selectionMode}`]: true,
|
|
10
10
|
}"
|
|
11
11
|
:title="label"
|
|
12
12
|
>
|
|
13
13
|
<ds-icon
|
|
14
14
|
v-if="iconLeft || isLoading"
|
|
15
|
-
class="selectListItem__iconLeft"
|
|
15
|
+
class="ds-selectListItem__iconLeft"
|
|
16
16
|
:icon="isLoading ? ICONS.FAD_SPINNER_THIRD : iconLeft"
|
|
17
17
|
:size="ICON_SIZES.X_SMALL"
|
|
18
18
|
:spinning="isLoading"
|
|
19
19
|
/>
|
|
20
20
|
|
|
21
|
-
<span class="selectListItem__textWrapper">
|
|
21
|
+
<span class="ds-selectListItem__textWrapper">
|
|
22
22
|
<span
|
|
23
23
|
v-if="eyebrowText"
|
|
24
|
-
class="selectListItem__eyebrowText"
|
|
25
|
-
:class="{ '-uppercase': isEyebrowTextUppercase }"
|
|
24
|
+
class="ds-selectListItem__eyebrowText"
|
|
25
|
+
:class="{ '-ds-uppercase': isEyebrowTextUppercase }"
|
|
26
26
|
>{{ eyebrowText }}</span
|
|
27
27
|
>
|
|
28
|
-
<span class="selectListItem__text">{{ label }}</span>
|
|
28
|
+
<span class="ds-selectListItem__text">{{ label }}</span>
|
|
29
29
|
</span>
|
|
30
30
|
|
|
31
31
|
<ds-icon
|
|
32
32
|
v-if="isSelected"
|
|
33
|
-
class="selectListItem__iconRight"
|
|
33
|
+
class="ds-selectListItem__iconRight"
|
|
34
34
|
:icon="ICONS.FA_CHECK_SOLID"
|
|
35
35
|
:size="ICON_SIZES.XX_SMALL"
|
|
36
36
|
/>
|
|
37
|
-
<div v-else class="selectListItem__placeholderRight" />
|
|
37
|
+
<div v-else class="ds-selectListItem__placeholderRight" />
|
|
38
38
|
</div>
|
|
39
39
|
</template>
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@import '../../../../styles/settings/typography/tokens';
|
|
45
45
|
@import '../../../../styles/settings/spacings';
|
|
46
46
|
|
|
47
|
-
.selectListItem {
|
|
47
|
+
.ds-selectListItem {
|
|
48
48
|
$self: &;
|
|
49
49
|
$minHeight: 40px;
|
|
50
50
|
|
|
@@ -65,15 +65,15 @@
|
|
|
65
65
|
background-color: $color-neutral-background-ghost-hovered;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
&.-loading,
|
|
69
|
-
&.-disabled {
|
|
68
|
+
&.-ds-loading,
|
|
69
|
+
&.-ds-disabled {
|
|
70
70
|
pointer-events: none;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
&.-selected {
|
|
73
|
+
&.-ds-selected {
|
|
74
74
|
background-color: $color-neutral-background;
|
|
75
75
|
|
|
76
|
-
&.-disabled {
|
|
76
|
+
&.-ds-disabled {
|
|
77
77
|
background-color: $color-neutral-background-disabled;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -85,16 +85,16 @@
|
|
|
85
85
|
background-color: $color-neutral-background-hovered;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
&.-selectOnly {
|
|
88
|
+
&.-ds-selectOnly {
|
|
89
89
|
pointer-events: none;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
&.-xSmall {
|
|
93
|
+
&.-ds-xSmall {
|
|
94
94
|
@include label-m-default-regular;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&.-medium {
|
|
97
|
+
&.-ds-medium {
|
|
98
98
|
@include label-xl-default-regular;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
text-overflow: ellipsis;
|
|
137
137
|
|
|
138
|
-
&.-uppercase {
|
|
138
|
+
&.-ds-uppercase {
|
|
139
139
|
@include info-s-extensive-bold-uppercase;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
&.-disabled {
|
|
143
|
+
&.-ds-disabled {
|
|
144
144
|
#{$self}__iconLeft {
|
|
145
145
|
color: $color-neutral-icon-disabled;
|
|
146
146
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="selectListItemDivider">
|
|
2
|
+
<div class="ds-selectListItemDivider">
|
|
3
3
|
<divider />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@import '../../../../styles/settings/colors/tokens';
|
|
9
9
|
@import '../../../../styles/settings/spacings';
|
|
10
10
|
|
|
11
|
-
.selectListItemDivider {
|
|
11
|
+
.ds-selectListItemDivider {
|
|
12
12
|
background-color: $color-neutral-background-ghost;
|
|
13
13
|
padding: $space-2xs 0;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="selectListItemTile">
|
|
2
|
+
<div class="ds-selectListItemTile">
|
|
3
3
|
<ds-tile
|
|
4
4
|
:interactive="interactive"
|
|
5
5
|
:icon-left="iconLeft"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<style scoped lang="scss">
|
|
20
20
|
@import '../../../../styles/settings/spacings';
|
|
21
21
|
|
|
22
|
-
.selectListItemTile {
|
|
22
|
+
.ds-selectListItemTile {
|
|
23
23
|
padding: $space-xs;
|
|
24
24
|
}
|
|
25
25
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<select-list-item
|
|
3
|
-
class="selectListItemToggle"
|
|
3
|
+
class="ds-selectListItemToggle"
|
|
4
4
|
:icon-left="icon"
|
|
5
5
|
:state="state"
|
|
6
6
|
:label="label"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
<script lang="ts">
|
|
13
13
|
import {
|
|
14
|
-
SELECT_LIST_ITEM_STATES,
|
|
15
|
-
SELECT_LIST_ITEM_SIZES,
|
|
16
14
|
SELECT_LIST_ITEM_SELECTION_MODE,
|
|
15
|
+
SELECT_LIST_ITEM_SIZES,
|
|
16
|
+
SELECT_LIST_ITEM_STATES,
|
|
17
17
|
} from '../SelectListItem/SelectListItem.consts';
|
|
18
18
|
import { IconItem, ICONS } from '../../Icons/Icon';
|
|
19
19
|
import SelectListItem from '../SelectListItem/SelectListItem.vue';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="selectListSectionTitle" :class="{ '-isUppercase': isUppercase }">{{
|
|
2
|
+
<div class="ds-selectListSectionTitle" :class="{ '-ds-isUppercase': isUppercase }">{{
|
|
3
|
+
label
|
|
4
|
+
}}</div>
|
|
3
5
|
</template>
|
|
4
6
|
|
|
5
7
|
<style scoped lang="scss">
|
|
@@ -7,13 +9,13 @@
|
|
|
7
9
|
@import '../../../../styles/settings/colors/tokens';
|
|
8
10
|
@import '../../../../styles/settings/typography/tokens';
|
|
9
11
|
|
|
10
|
-
.selectListSectionTitle {
|
|
12
|
+
.ds-selectListSectionTitle {
|
|
11
13
|
@include info-m-default-regular;
|
|
12
14
|
|
|
13
15
|
color: $color-neutral-text;
|
|
14
16
|
padding: $space-3xs $space-xs;
|
|
15
17
|
|
|
16
|
-
&.-isUppercase {
|
|
18
|
+
&.-ds-isUppercase {
|
|
17
19
|
@include info-m-extensive-bold-uppercase;
|
|
18
20
|
|
|
19
21
|
padding: $space-xs $space-xs;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="selectionTile"
|
|
3
|
+
class="ds-selectionTile"
|
|
4
4
|
:class="[
|
|
5
5
|
{
|
|
6
|
-
'-selected': isSelected,
|
|
7
|
-
'-default': state === SELECTION_TILE_STATE.DEFAULT,
|
|
8
|
-
'-disabled': state === SELECTION_TILE_STATE.DISABLED,
|
|
9
|
-
'-loading': isLoading,
|
|
10
|
-
'-focused': inputIsFocused && !isLoading,
|
|
6
|
+
'-ds-selected': isSelected,
|
|
7
|
+
'-ds-default': state === SELECTION_TILE_STATE.DEFAULT,
|
|
8
|
+
'-ds-disabled': state === SELECTION_TILE_STATE.DISABLED,
|
|
9
|
+
'-ds-loading': isLoading,
|
|
10
|
+
'-ds-focused': inputIsFocused && !isLoading,
|
|
11
11
|
},
|
|
12
12
|
]"
|
|
13
13
|
@click="updateIsSelected(!isSelected)"
|
|
14
14
|
>
|
|
15
|
-
<div class="selectionTile__wrapper">
|
|
15
|
+
<div class="ds-selectionTile__wrapper">
|
|
16
16
|
<component
|
|
17
17
|
:is="type === SELECTION_TILE_TYPE.RADIO_BUTTON ? 'radio-button' : 'checkbox'"
|
|
18
18
|
:size="SELECTION_CONTROL_SIZE.X_SMALL"
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
@input:focus="onInputFocus"
|
|
23
23
|
@input:blur="onInputBlur"
|
|
24
24
|
/>
|
|
25
|
-
<div class="selectionTile__textWrapper">
|
|
26
|
-
<div class="selectionTile__title">{{ title }}</div>
|
|
25
|
+
<div class="ds-selectionTile__textWrapper">
|
|
26
|
+
<div class="ds-selectionTile__title">{{ title }}</div>
|
|
27
27
|
|
|
28
|
-
<div v-if="supportingText" class="selectionTile__supportingText"
|
|
28
|
+
<div v-if="supportingText" class="ds-selectionTile__supportingText"
|
|
29
29
|
>{{ supportingText }}
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
<icon
|
|
34
34
|
v-if="icon || isLoading"
|
|
35
|
-
class="selectionTile__icon"
|
|
35
|
+
class="ds-selectionTile__icon"
|
|
36
36
|
:icon="isLoading ? ICONS.FAD_SPINNER_THIRD : icon"
|
|
37
37
|
:size="ICON_SIZES.X_SMALL"
|
|
38
38
|
:spinning="isLoading"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
$selection-tile-min-height: 48px;
|
|
52
52
|
|
|
53
|
-
.selectionTile {
|
|
53
|
+
.ds-selectionTile {
|
|
54
54
|
$root: &;
|
|
55
55
|
|
|
56
56
|
align-items: center;
|
|
@@ -68,7 +68,7 @@ $selection-tile-min-height: 48px;
|
|
|
68
68
|
background-color ease-in-out $default-transition-time;
|
|
69
69
|
width: 100%;
|
|
70
70
|
|
|
71
|
-
&.-loading {
|
|
71
|
+
&.-ds-loading {
|
|
72
72
|
cursor: initial;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -101,18 +101,18 @@ $selection-tile-min-height: 48px;
|
|
|
101
101
|
display: flex;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
&:hover:not(.-loading),
|
|
105
|
-
&.-focused {
|
|
104
|
+
&:hover:not(.-ds-loading),
|
|
105
|
+
&.-ds-focused {
|
|
106
106
|
background-color: $color-neutral-background-weak-hovered;
|
|
107
107
|
outline-color: $color-neutral-border-hovered;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
&.-selected {
|
|
110
|
+
&.-ds-selected {
|
|
111
111
|
background-color: $color-primary-background;
|
|
112
112
|
outline-color: $color-primary-border;
|
|
113
113
|
|
|
114
|
-
&:hover:not(.-loading),
|
|
115
|
-
&.-focused {
|
|
114
|
+
&:hover:not(.-ds-loading),
|
|
115
|
+
&.-ds-focused {
|
|
116
116
|
background-color: $color-primary-background-hovered;
|
|
117
117
|
outline-color: $color-primary-border-hovered;
|
|
118
118
|
}
|
|
@@ -122,8 +122,8 @@ $selection-tile-min-height: 48px;
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
&.-disabled,
|
|
126
|
-
&.-disabled:hover {
|
|
125
|
+
&.-ds-disabled,
|
|
126
|
+
&.-ds-disabled:hover {
|
|
127
127
|
background-color: $color-neutral-background-weak-disabled;
|
|
128
128
|
cursor: initial;
|
|
129
129
|
outline-color: $color-neutral-border-disabled;
|
|
@@ -140,7 +140,7 @@ $selection-tile-min-height: 48px;
|
|
|
140
140
|
color: $color-neutral-icon-disabled;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
&.-selected {
|
|
143
|
+
&.-ds-selected {
|
|
144
144
|
background-color: $color-primary-background-disabled;
|
|
145
145
|
outline-color: $color-primary-border-disabled;
|
|
146
146
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="accessStatus" :class="statusClass">
|
|
3
|
-
<icon :size="ICON_SIZES.X_SMALL" :icon="icon" class="accessStatus__icon" />
|
|
4
|
-
<span class="accessStatus__text">{{ text }}</span>
|
|
2
|
+
<div class="ds-accessStatus" :class="statusClass">
|
|
3
|
+
<icon :size="ICON_SIZES.X_SMALL" :icon="icon" class="ds-accessStatus__icon" />
|
|
4
|
+
<span class="ds-accessStatus__text">{{ text }}</span>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@import '../../../../styles/settings/colors/tokens';
|
|
11
11
|
@import '../../../../styles/settings/typography/tokens';
|
|
12
12
|
|
|
13
|
-
.accessStatus {
|
|
13
|
+
.ds-accessStatus {
|
|
14
14
|
$self: &;
|
|
15
15
|
|
|
16
16
|
align-items: center;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
margin-right: $space-4xs;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&.-active {
|
|
25
|
+
&.-ds-active {
|
|
26
26
|
color: $color-success-text;
|
|
27
27
|
|
|
28
28
|
#{$self}__icon {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&.-suspended {
|
|
33
|
+
&.-ds-suspended {
|
|
34
34
|
color: $color-danger-text;
|
|
35
35
|
|
|
36
36
|
#{$self}__icon {
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
</style>
|
|
46
46
|
|
|
47
47
|
<script lang="ts">
|
|
48
|
-
import Icon from '../../Icons/Icon';
|
|
49
|
-
import { ICONS, ICON_SIZES } from '../../Icons/Icon';
|
|
48
|
+
import Icon, { ICON_SIZES, ICONS } from '../../Icons/Icon';
|
|
50
49
|
import { COURSE_ACCESS_STATUS } from '../../../consts/user';
|
|
51
50
|
|
|
52
51
|
export default {
|
|
@@ -78,10 +77,10 @@ export default {
|
|
|
78
77
|
},
|
|
79
78
|
statusClass() {
|
|
80
79
|
if (this.status === COURSE_ACCESS_STATUS.ACTIVE) {
|
|
81
|
-
return '-active';
|
|
80
|
+
return '-ds-active';
|
|
82
81
|
}
|
|
83
82
|
if (this.status === COURSE_ACCESS_STATUS.SUSPENDED) {
|
|
84
|
-
return '-suspended';
|
|
83
|
+
return '-ds-suspended';
|
|
85
84
|
}
|
|
86
85
|
return '';
|
|
87
86
|
},
|