@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,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="divider"
|
|
3
|
+
class="ds-divider"
|
|
4
4
|
:class="{
|
|
5
|
-
'-vertical': isVertical,
|
|
6
|
-
'-horizontal': !isVertical,
|
|
7
|
-
'-strong': prominence === DIVIDER_PROMINENCES.STRONG,
|
|
8
|
-
'-weak': prominence === DIVIDER_PROMINENCES.WEAK,
|
|
5
|
+
'-ds-vertical': isVertical,
|
|
6
|
+
'-ds-horizontal': !isVertical,
|
|
7
|
+
'-ds-strong': prominence === DIVIDER_PROMINENCES.STRONG,
|
|
8
|
+
'-ds-weak': prominence === DIVIDER_PROMINENCES.WEAK,
|
|
9
9
|
[sizeClass]: true,
|
|
10
10
|
}"
|
|
11
11
|
/>
|
|
@@ -14,40 +14,40 @@
|
|
|
14
14
|
<style lang="scss" scoped>
|
|
15
15
|
@import '../../../styles/settings/colors/tokens';
|
|
16
16
|
|
|
17
|
-
.divider {
|
|
17
|
+
.ds-divider {
|
|
18
18
|
background-color: $color-neutral-divider;
|
|
19
19
|
|
|
20
|
-
&.-strong {
|
|
20
|
+
&.-ds-strong {
|
|
21
21
|
background-color: $color-neutral-divider-strong;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
&.-weak {
|
|
24
|
+
&.-ds-weak {
|
|
25
25
|
background-color: $color-neutral-divider-weak;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
&.-vertical {
|
|
28
|
+
&.-ds-vertical {
|
|
29
29
|
height: 100%;
|
|
30
30
|
width: 1px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&.-horizontal {
|
|
33
|
+
&.-ds-horizontal {
|
|
34
34
|
height: 1px;
|
|
35
35
|
width: auto;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&.-medium-vertical {
|
|
38
|
+
&.-ds-medium-vertical {
|
|
39
39
|
width: 2px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
&.-large-vertical {
|
|
42
|
+
&.-ds-large-vertical {
|
|
43
43
|
width: 4px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
&.-medium-horizontal {
|
|
46
|
+
&.-ds-medium-horizontal {
|
|
47
47
|
height: 2px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
&.-large-horizontal {
|
|
50
|
+
&.-ds-large-horizontal {
|
|
51
51
|
height: 4px;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -83,8 +83,8 @@ export default {
|
|
|
83
83
|
sizeClass() {
|
|
84
84
|
return {
|
|
85
85
|
[DIVIDER_SIZES.S]: '',
|
|
86
|
-
[DIVIDER_SIZES.M]: '-medium-' + (this.isVertical ? 'vertical' : 'horizontal'),
|
|
87
|
-
[DIVIDER_SIZES.L]: '-large-' + (this.isVertical ? 'vertical' : 'horizontal'),
|
|
86
|
+
[DIVIDER_SIZES.M]: '-ds-medium-' + (this.isVertical ? 'vertical' : 'horizontal'),
|
|
87
|
+
[DIVIDER_SIZES.L]: '-ds-large-' + (this.isVertical ? 'vertical' : 'horizontal'),
|
|
88
88
|
}[this.size];
|
|
89
89
|
},
|
|
90
90
|
},
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawer scrollable-container" :class="{ [positionClassName]: true }">
|
|
3
|
-
<div v-if="$slots.header && stickyHeader" class="drawer__header -sticky">
|
|
2
|
+
<div class="ds-drawer scrollable-container" :class="{ [positionClassName]: true }">
|
|
3
|
+
<div v-if="$slots.header && stickyHeader" class="ds-drawer__header -ds-sticky">
|
|
4
4
|
<slot name="header" />
|
|
5
5
|
</div>
|
|
6
6
|
<div
|
|
7
|
-
class="drawer__content"
|
|
7
|
+
class="ds-drawer__content"
|
|
8
8
|
:class="{
|
|
9
9
|
'scrollable-container': stickyHeader || stickyFooter,
|
|
10
|
-
'-scrollable': stickyHeader || stickyFooter,
|
|
11
|
-
'-fullHeight': stickyFooter,
|
|
10
|
+
'-ds-scrollable': stickyHeader || stickyFooter,
|
|
11
|
+
'-ds-fullHeight': stickyFooter,
|
|
12
12
|
}"
|
|
13
13
|
>
|
|
14
|
-
<div v-if="$slots.header && !stickyHeader" class="drawer__header">
|
|
14
|
+
<div v-if="$slots.header && !stickyHeader" class="ds-drawer__header">
|
|
15
15
|
<slot name="header" />
|
|
16
16
|
</div>
|
|
17
17
|
<slot />
|
|
18
|
-
<div v-if="$slots.footer && !stickyFooter" class="drawer__footer">
|
|
18
|
+
<div v-if="$slots.footer && !stickyFooter" class="ds-drawer__footer">
|
|
19
19
|
<slot name="footer" />
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
|
-
<div v-if="$slots.footer && stickyFooter" class="drawer__footer -sticky">
|
|
22
|
+
<div v-if="$slots.footer && stickyFooter" class="ds-drawer__footer -ds-sticky">
|
|
23
23
|
<slot name="footer" />
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@import '../../../styles/settings/colors/tokens';
|
|
30
30
|
@import '../../../styles/settings/media-queries';
|
|
31
31
|
|
|
32
|
-
.drawer {
|
|
32
|
+
.ds-drawer {
|
|
33
33
|
border-color: $color-neutral-border-weak;
|
|
34
34
|
border-style: solid;
|
|
35
35
|
border-width: 0;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
overflow-y: auto;
|
|
40
40
|
|
|
41
41
|
@media #{breakpoint-s()} {
|
|
42
|
-
&.-positionLeft {
|
|
42
|
+
&.-ds-positionLeft {
|
|
43
43
|
border-right-width: 1px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
&.-positionRight {
|
|
46
|
+
&.-ds-positionRight {
|
|
47
47
|
border-left-width: 1px;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
&__footer {
|
|
53
53
|
flex-shrink: 0;
|
|
54
54
|
|
|
55
|
-
&.-sticky {
|
|
55
|
+
&.-ds-sticky {
|
|
56
56
|
// Display above __content to correctly show shadows in __header and __footer
|
|
57
57
|
z-index: 1;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&__content {
|
|
62
|
-
&.-scrollable {
|
|
62
|
+
&.-ds-scrollable {
|
|
63
63
|
overflow-y: auto;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
&.-fullHeight {
|
|
66
|
+
&.-ds-fullHeight {
|
|
67
67
|
flex-grow: 1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -97,10 +97,10 @@ export default {
|
|
|
97
97
|
computed: {
|
|
98
98
|
positionClassName(): string {
|
|
99
99
|
if (this.position === DRAWER_POSITIONS.LEFT) {
|
|
100
|
-
return '-positionLeft';
|
|
100
|
+
return '-ds-positionLeft';
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
return '-positionRight';
|
|
103
|
+
return '-ds-positionRight';
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerContent">
|
|
2
|
+
<div class="ds-drawerContent">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<style lang="scss" scoped>
|
|
8
8
|
@import '../../../../styles/settings/spacings';
|
|
9
9
|
|
|
10
|
-
.drawerContent {
|
|
10
|
+
.ds-drawerContent {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
gap: $space-s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerDivider">
|
|
2
|
+
<div class="ds-drawerDivider">
|
|
3
3
|
<ds-divider :prominence="prominence" :size="size" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<style lang="scss" scoped>
|
|
8
8
|
@import '../../../../styles/settings/spacings';
|
|
9
9
|
|
|
10
|
-
.drawerDivider {
|
|
10
|
+
.ds-drawerDivider {
|
|
11
11
|
padding: $space-2xs 0;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerHeader">
|
|
3
|
-
<div class="drawerHeader__titleWrapper">
|
|
2
|
+
<div class="ds-drawerHeader">
|
|
3
|
+
<div class="ds-drawerHeader__titleWrapper">
|
|
4
4
|
<ds-button
|
|
5
5
|
v-if="isSecondLevel"
|
|
6
6
|
:icon-left="ICONS.FA_CHEVRON_LEFT"
|
|
7
7
|
:type="BUTTON_TYPES.TEXT"
|
|
8
|
-
class="drawerHeader__secondLevel"
|
|
8
|
+
class="ds-drawerHeader__secondLevel"
|
|
9
9
|
@click="$emit('backClicked')"
|
|
10
10
|
>
|
|
11
11
|
Wróć
|
|
12
12
|
</ds-button>
|
|
13
|
-
<div :class="{ '-hidden': isSecondLevel }" class="drawerHeader__firstLevel">
|
|
13
|
+
<div :class="{ '-ds-hidden': isSecondLevel }" class="ds-drawerHeader__firstLevel">
|
|
14
14
|
<span
|
|
15
15
|
v-if="eyebrowText"
|
|
16
16
|
:class="{
|
|
17
|
-
'-isInteractive': isInteractiveEyebrow,
|
|
18
|
-
'-ellipsis': eyebrowEllipsis,
|
|
17
|
+
'-ds-isInteractive': isInteractiveEyebrow,
|
|
18
|
+
'-ds-ellipsis': eyebrowEllipsis,
|
|
19
19
|
}"
|
|
20
|
-
class="drawerHeader__eyebrow"
|
|
20
|
+
class="ds-drawerHeader__eyebrow"
|
|
21
21
|
@click="isInteractiveEyebrow && $emit('eyebrowClicked')"
|
|
22
22
|
>
|
|
23
23
|
{{ eyebrowText }}
|
|
24
24
|
</span>
|
|
25
|
-
<div class="drawerHeader__title">
|
|
25
|
+
<div class="ds-drawerHeader__title">
|
|
26
26
|
<icon
|
|
27
27
|
v-if="leftIcon"
|
|
28
28
|
:icon="leftIcon"
|
|
29
29
|
:size="ICON_SIZES.X_SMALL"
|
|
30
|
-
class="drawerHeader__leftIcon"
|
|
30
|
+
class="ds-drawerHeader__leftIcon"
|
|
31
31
|
/>
|
|
32
32
|
<span
|
|
33
33
|
v-if="title"
|
|
34
|
-
class="drawerHeader__titleText"
|
|
35
|
-
:class="{ '-ellipsis': titleEllipsis, [
|
|
34
|
+
class="ds-drawerHeader__titleText"
|
|
35
|
+
:class="{ '-ds-ellipsis': titleEllipsis, [`-ds-${titleColor}`]: true }"
|
|
36
36
|
:title="titleEllipsis ? title : undefined"
|
|
37
37
|
>{{ title }}</span
|
|
38
38
|
>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
|
-
<div v-if="$slots.actions" class="drawerHeader__actions">
|
|
45
|
+
<div v-if="$slots.actions" class="ds-drawerHeader__actions">
|
|
46
46
|
<slot name="actions" />
|
|
47
47
|
</div>
|
|
48
48
|
<icon-button
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
$minimal-drawer-header-height: 82px;
|
|
66
66
|
|
|
67
|
-
.drawerHeader {
|
|
67
|
+
.ds-drawerHeader {
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
|
|
@@ -82,7 +82,7 @@ $minimal-drawer-header-height: 82px;
|
|
|
82
82
|
min-width: 0;
|
|
83
83
|
row-gap: $space-4xs;
|
|
84
84
|
|
|
85
|
-
&.-hidden {
|
|
85
|
+
&.-ds-hidden {
|
|
86
86
|
visibility: hidden; //by this we make sure that height does not change when switching to second level
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -92,12 +92,12 @@ $minimal-drawer-header-height: 82px;
|
|
|
92
92
|
|
|
93
93
|
color: $color-neutral-text-weak;
|
|
94
94
|
|
|
95
|
-
&.-isInteractive:hover {
|
|
95
|
+
&.-ds-isInteractive:hover {
|
|
96
96
|
color: $color-neutral-text-weak-hovered;
|
|
97
97
|
cursor: pointer;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
&.-ellipsis {
|
|
100
|
+
&.-ds-ellipsis {
|
|
101
101
|
overflow: hidden;
|
|
102
102
|
text-overflow: ellipsis;
|
|
103
103
|
white-space: nowrap;
|
|
@@ -113,15 +113,15 @@ $minimal-drawer-header-height: 82px;
|
|
|
113
113
|
&__titleText {
|
|
114
114
|
@include heading-s-default-bold-uppercase;
|
|
115
115
|
|
|
116
|
-
&.-neutralStrong {
|
|
116
|
+
&.-ds-neutralStrong {
|
|
117
117
|
color: $color-neutral-text-strong;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
&.-neutralWeak {
|
|
120
|
+
&.-ds-neutralWeak {
|
|
121
121
|
color: $color-neutral-text-weak;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
&.-ellipsis {
|
|
124
|
+
&.-ds-ellipsis {
|
|
125
125
|
overflow: hidden;
|
|
126
126
|
text-overflow: ellipsis;
|
|
127
127
|
white-space: nowrap;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerListItem">
|
|
3
|
-
<div class="drawerListItem__label">{{ label }}</div>
|
|
2
|
+
<div class="ds-drawerListItem">
|
|
3
|
+
<div class="ds-drawerListItem__label">{{ label }}</div>
|
|
4
4
|
<ds-icon
|
|
5
5
|
v-if="state === DRAWER_LIST_ITEM_STATES.LOADING"
|
|
6
6
|
:icon="ICONS.FAD_SPINNER_THIRD"
|
|
7
7
|
:size="ICON_SIZES.XX_SMALL"
|
|
8
8
|
spinning
|
|
9
9
|
/>
|
|
10
|
-
<div v-else class="drawerListItem__value">
|
|
10
|
+
<div v-else class="ds-drawerListItem__value">
|
|
11
11
|
{{ valueText }}
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@import '../../../../styles/settings/spacings';
|
|
19
19
|
@import '../../../../styles/settings/typography/tokens';
|
|
20
20
|
|
|
21
|
-
.drawerListItem {
|
|
21
|
+
.ds-drawerListItem {
|
|
22
22
|
align-items: center;
|
|
23
23
|
color: $color-neutral-text-strong;
|
|
24
24
|
display: flex;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
import { PropType } from 'vue';
|
|
49
49
|
|
|
50
50
|
import { DRAWER_LIST_ITEM_STATES, DrawerListItemState } from './DrawerListItem.consts';
|
|
51
|
-
import Icon, {
|
|
51
|
+
import Icon, { ICON_SIZES, ICONS } from '../../Icons/Icon';
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
54
|
name: 'DrawerListItem',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerListItemGroup">
|
|
2
|
+
<div class="ds-drawerListItemGroup">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<style lang="scss" scoped>
|
|
8
8
|
@import '../../../../styles/settings/spacings';
|
|
9
9
|
|
|
10
|
-
.drawerListItemGroup {
|
|
10
|
+
.ds-drawerListItemGroup {
|
|
11
11
|
padding: 0 0 $space-3xs;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drawerTile">
|
|
2
|
+
<div class="ds-drawerTile">
|
|
3
3
|
<ds-tile v-bind="$props" @click="$emit('click')" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<style lang="scss" scoped>
|
|
8
8
|
@import '../../../../styles/settings/spacings';
|
|
9
9
|
|
|
10
|
-
.drawerTile {
|
|
10
|
+
.ds-drawerTile {
|
|
11
11
|
padding: $space-2xs 0;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
@show="onShow"
|
|
14
14
|
>
|
|
15
15
|
<div
|
|
16
|
-
class="popper
|
|
16
|
+
class="popper ds-dropdown"
|
|
17
17
|
:class="{
|
|
18
|
-
'-radiusBottom': radius === DROPDOWN_RADIUSES.BOTTOM,
|
|
19
|
-
'-radiusTop': radius === DROPDOWN_RADIUSES.TOP,
|
|
20
|
-
'-radiusBottom -radiusTop': radius === DROPDOWN_RADIUSES.BOTH,
|
|
18
|
+
'-ds-radiusBottom': radius === DROPDOWN_RADIUSES.BOTTOM,
|
|
19
|
+
'-ds-radiusTop': radius === DROPDOWN_RADIUSES.TOP,
|
|
20
|
+
'-ds-radiusBottom -ds-radiusTop': radius === DROPDOWN_RADIUSES.BOTH,
|
|
21
21
|
}"
|
|
22
22
|
>
|
|
23
23
|
<div
|
|
24
|
-
class="
|
|
25
|
-
:class="{ '-heightLimited': !!maxHeight }"
|
|
24
|
+
class="ds-dropdown__scrollableWrapper"
|
|
25
|
+
:class="{ '-ds-heightLimited': !!maxHeight }"
|
|
26
26
|
:style="scrollableWrapperStyles"
|
|
27
27
|
>
|
|
28
28
|
<slot :close="close" />
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@import '../../../../lib/styles/settings/spacings';
|
|
42
42
|
@import '../../../../lib/styles/settings/shadows';
|
|
43
43
|
|
|
44
|
-
.
|
|
44
|
+
.ds-dropdown {
|
|
45
45
|
background-color: $color-default-background;
|
|
46
46
|
border: 0;
|
|
47
47
|
border-radius: 0;
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
padding: 0;
|
|
53
53
|
text-align: left;
|
|
54
54
|
|
|
55
|
-
&.-radiusBottom {
|
|
55
|
+
&.-ds-radiusBottom {
|
|
56
56
|
border-bottom-left-radius: $radius-s;
|
|
57
57
|
border-bottom-right-radius: $radius-s;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
&.-radiusTop {
|
|
60
|
+
&.-ds-radiusTop {
|
|
61
61
|
border-top-left-radius: $radius-s;
|
|
62
62
|
border-top-right-radius: $radius-s;
|
|
63
63
|
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__scrollableWrapper {
|
|
74
|
-
&.-heightLimited {
|
|
74
|
+
&.-ds-heightLimited {
|
|
75
75
|
overflow-y: auto;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<label
|
|
3
|
-
class="selectionControl"
|
|
3
|
+
class="ds-selectionControl"
|
|
4
4
|
:class="[
|
|
5
|
-
|
|
5
|
+
`-ds-${size}`,
|
|
6
6
|
{
|
|
7
|
-
'-selected': isSelected,
|
|
8
|
-
'-default': state === SELECTION_CONTROL_STATE.DEFAULT,
|
|
9
|
-
'-disabled': state === SELECTION_CONTROL_STATE.DISABLED,
|
|
10
|
-
'-loading': state === SELECTION_CONTROL_STATE.LOADING,
|
|
11
|
-
'-focused': isFocused,
|
|
7
|
+
'-ds-selected': isSelected,
|
|
8
|
+
'-ds-default': state === SELECTION_CONTROL_STATE.DEFAULT,
|
|
9
|
+
'-ds-disabled': state === SELECTION_CONTROL_STATE.DISABLED,
|
|
10
|
+
'-ds-loading': state === SELECTION_CONTROL_STATE.LOADING,
|
|
11
|
+
'-ds-focused': isFocused,
|
|
12
12
|
},
|
|
13
13
|
]"
|
|
14
14
|
>
|
|
15
|
-
<span class="selectionControl__iconWrapper">
|
|
16
|
-
<icon :icon="icon" :size="iconSize" class="selectionControl__icon" />
|
|
15
|
+
<span class="ds-selectionControl__iconWrapper">
|
|
16
|
+
<icon :icon="icon" :size="iconSize" class="ds-selectionControl__icon" />
|
|
17
17
|
</span>
|
|
18
|
-
<span v-if="label" class="selectionControl__labelWrapper">
|
|
19
|
-
<span class="selectionControl__label">{{ label }}</span>
|
|
18
|
+
<span v-if="label" class="ds-selectionControl__labelWrapper">
|
|
19
|
+
<span class="ds-selectionControl__label">{{ label }}</span>
|
|
20
20
|
</span>
|
|
21
21
|
<input
|
|
22
22
|
:type="type === SELECTION_CONTROL_TYPE.CHECKBOX ? 'checkbox' : 'radio'"
|
|
23
|
-
class="selectionControl__checkbox"
|
|
23
|
+
class="ds-selectionControl__checkbox"
|
|
24
24
|
:value="isSelected"
|
|
25
25
|
@change="onToggle"
|
|
26
26
|
@focus="onFocus"
|
|
@@ -56,11 +56,11 @@ $selection-control-sizes: (
|
|
|
56
56
|
),
|
|
57
57
|
);
|
|
58
58
|
|
|
59
|
-
.selectionControl {
|
|
59
|
+
.ds-selectionControl {
|
|
60
60
|
$root: &;
|
|
61
61
|
|
|
62
62
|
@each $size, $map in $selection-control-sizes {
|
|
63
|
-
|
|
63
|
+
&.-ds-#{$size} {
|
|
64
64
|
column-gap: map-get($map, 'gap');
|
|
65
65
|
|
|
66
66
|
#{$root}__iconWrapper {
|
|
@@ -77,9 +77,9 @@ $selection-control-sizes: (
|
|
|
77
77
|
display: inline-flex;
|
|
78
78
|
position: relative;
|
|
79
79
|
|
|
80
|
-
&.-default {
|
|
80
|
+
&.-ds-default {
|
|
81
81
|
@each $size, $map in $selection-control-sizes {
|
|
82
|
-
|
|
82
|
+
&.-ds-#{$size} {
|
|
83
83
|
#{$root}__icon::before {
|
|
84
84
|
bottom: -#{map-get($map, 'iconOutlinePadding')};
|
|
85
85
|
left: -#{map-get($map, 'iconOutlinePadding')};
|
|
@@ -103,7 +103,7 @@ $selection-control-sizes: (
|
|
|
103
103
|
&:hover,
|
|
104
104
|
&:focus,
|
|
105
105
|
&:active,
|
|
106
|
-
&.-focused {
|
|
106
|
+
&.-ds-focused {
|
|
107
107
|
#{$root}__icon::before {
|
|
108
108
|
transform: scale(1);
|
|
109
109
|
// see https://cubic-bezier.com/#.23,1,.32,1
|
|
@@ -116,7 +116,7 @@ $selection-control-sizes: (
|
|
|
116
116
|
background-color: $color-neutral-background-ghost-hovered;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
&.-selected {
|
|
119
|
+
&.-ds-selected {
|
|
120
120
|
#{$root}__icon::before {
|
|
121
121
|
background-color: $color-primary-background-ghost-hovered;
|
|
122
122
|
}
|
|
@@ -124,12 +124,12 @@ $selection-control-sizes: (
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&:focus,
|
|
127
|
-
&.-focused {
|
|
127
|
+
&.-ds-focused {
|
|
128
128
|
#{$root}__icon::before {
|
|
129
129
|
background-color: $color-neutral-background-ghost-focused;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
&.-selected {
|
|
132
|
+
&.-ds-selected {
|
|
133
133
|
#{$root}__icon::before {
|
|
134
134
|
background-color: $color-primary-background-ghost-focused;
|
|
135
135
|
}
|
|
@@ -141,7 +141,7 @@ $selection-control-sizes: (
|
|
|
141
141
|
background-color: $color-neutral-background-ghost-pressed;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
&.-selected {
|
|
144
|
+
&.-ds-selected {
|
|
145
145
|
#{$root}__icon::before {
|
|
146
146
|
background-color: $color-primary-background-ghost-pressed;
|
|
147
147
|
}
|
|
@@ -167,7 +167,7 @@ $selection-control-sizes: (
|
|
|
167
167
|
position: relative;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
&.-selected {
|
|
170
|
+
&.-ds-selected {
|
|
171
171
|
#{$root}__label {
|
|
172
172
|
color: $color-neutral-text-heavy;
|
|
173
173
|
}
|
|
@@ -177,25 +177,25 @@ $selection-control-sizes: (
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
&.-x-small {
|
|
180
|
+
&.-ds-x-small {
|
|
181
181
|
#{$root}__label {
|
|
182
182
|
@include formLabel-s-default-regular;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
&.-small {
|
|
186
|
+
&.-ds-small {
|
|
187
187
|
#{$root}__label {
|
|
188
188
|
@include formLabel-m-default-regular;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
&.-medium {
|
|
192
|
+
&.-ds-medium {
|
|
193
193
|
#{$root}__label {
|
|
194
194
|
@include formLabel-l-default-regular;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
&.-disabled {
|
|
198
|
+
&.-ds-disabled {
|
|
199
199
|
#{$root}__label {
|
|
200
200
|
color: $color-neutral-text-heavy-disabled;
|
|
201
201
|
}
|
|
@@ -204,7 +204,7 @@ $selection-control-sizes: (
|
|
|
204
204
|
color: $color-neutral-icon-disabled;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
&.-selected {
|
|
207
|
+
&.-ds-selected {
|
|
208
208
|
#{$root}__label {
|
|
209
209
|
color: $color-neutral-text-heavy-disabled;
|
|
210
210
|
}
|