Skip to content

Commit 7a44415

Browse files
authored
Merge pull request #12888 from learningequality/dependabot/npm_and_yarn/kolibri-design-system-5.0.0-rc10
Bump kolibri-design-system from 5.0.0-rc9 to 5.0.0-rc10
2 parents 0d22d5d + a5c9f72 commit 7a44415

File tree

10 files changed

+40
-65
lines changed

10 files changed

+40
-65
lines changed

kolibri/plugins/learn/assets/src/views/ChannelRenderer/ContentModal.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:style="bodyStyle"
1111
>
1212
<nav>
13-
<UiToolbar
13+
<KToolbar
1414
ref="toolbar"
1515
:showIcon="true"
1616
:style="toolbarStyle"
@@ -26,7 +26,7 @@
2626
<span :style="titleStyle">
2727
{{ title }}
2828
</span>
29-
</UiToolbar>
29+
</KToolbar>
3030
</nav>
3131

3232
<main>
@@ -40,7 +40,7 @@
4040

4141
<script>
4242
43-
import UiToolbar from 'kolibri-common/components/keen/UiToolbar';
43+
import KToolbar from 'kolibri-design-system/lib/KToolbar';
4444
import Backdrop from 'kolibri-common/components/Backdrop';
4545
import ContentItem from './ContentItem';
4646
@@ -49,7 +49,7 @@
4949
components: {
5050
Backdrop,
5151
ContentItem,
52-
UiToolbar,
52+
KToolbar,
5353
},
5454
props: {
5555
contentNode: {

kolibri/plugins/learn/assets/src/views/LearningActivityBar.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22

33
<nav :aria-label="$tr('optionsLabel')">
4-
<UiToolbar
4+
<KToolbar
55
style="z-index: 8"
66
:style="contentSpecificStyles"
77
class="toolbar"
@@ -171,7 +171,7 @@
171171
</CoreMenu>
172172
</span>
173173
</template>
174-
</UiToolbar>
174+
</KToolbar>
175175
</nav>
176176

177177
</template>
@@ -185,7 +185,7 @@
185185
import { ContentNodeKinds } from 'kolibri/constants';
186186
import CoreMenuOption from 'kolibri-common/components/CoreMenu/CoreMenuOption';
187187
import ProgressIcon from 'kolibri-common/components/labels/ProgressIcon';
188-
import UiToolbar from 'kolibri-common/components/keen/UiToolbar';
188+
import KToolbar from 'kolibri-design-system/lib/KToolbar';
189189
import { validateLearningActivity } from 'kolibri/utils/validators';
190190
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings';
191191
import TimeDuration from 'kolibri-common/components/TimeDuration';
@@ -203,7 +203,7 @@
203203
CoreMenuOption,
204204
LearningActivityIcon,
205205
ProgressIcon,
206-
UiToolbar,
206+
KToolbar,
207207
TimeDuration,
208208
SuggestedTime,
209209
DeviceConnectionStatus,
@@ -466,7 +466,7 @@
466466
return this.allActions.slice(this.numBarActions);
467467
},
468468
contentSpecificStyles() {
469-
// The prime difference is that Exercises won't have shadows under the UiToolbar
469+
// The prime difference is that Exercises won't have shadows under the KToolbar
470470
// because the LessonMasteryBar lives under it and has its own drop shadow.
471471
if (this.contentKind === ContentNodeKinds.EXERCISE) {
472472
return { border: `1px solid ${this.$themeTokens.fineLine}`, 'box-shadow': 'none' };

packages/kolibri-common/components/BaseToolbar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<script>
1717
1818
/**
19-
* A simple toolbar with appearance derived from UiToolbar.
19+
* A simple toolbar with appearance derived from KToolbar.
2020
* It behaves like a container that doesn't provide any implementation
2121
* of its internal content layout. Insted, its content area is expected
2222
* to be fully controlled from components that use this toolbar.
23-
* It is suitable for toolbar layouts that don't conform to typical UiToolbar
24-
* use-cases or when using UiToolbar may be possible but is complicated
23+
* It is suitable for toolbar layouts that don't conform to typical KToolbar
24+
* use-cases or when using KToolbar may be possible but is complicated
2525
* and requires many /deep/ overrides and fixes.
2626
*/
2727
export default {

packages/kolibri-common/components/keen/UiToolbar.vue

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/kolibri-tools/lib/moduleMapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
'kolibri.coreVue.components.CoreLogo': 'kolibri/components/CoreLogo',
5858
'kolibri.coreVue.components.UiAlert': 'kolibri-design-system/lib/keen/UiAlert',
5959
'kolibri.coreVue.components.UiIconButton': 'kolibri-design-system/lib/keen/UiIconButton',
60-
'kolibri.coreVue.components.UiToolbar': 'kolibri-common/components/keen/UiToolbar',
60+
'kolibri.coreVue.components.UiToolbar': 'kolibri-design-system/lib/KToolbar',
6161
'kolibri.coreVue.components.PrivacyInfoModal': 'kolibri-common/components/PrivacyInfoModal',
6262
'kolibri.coreVue.components.UserTypeDisplay': 'kolibri-common/components/UserTypeDisplay',
6363
'kolibri.coreVue.components.Draggable': 'kolibri-common/components/sortable/Draggable',

packages/kolibri/components/pages/AppBarPage/internal/AppBar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<header>
88
<SkipNavigationLink />
99

10-
<UiToolbar
10+
<KToolbar
1111
:removeNavIcon="showAppNavView"
1212
type="clear"
1313
textColor="black"
@@ -107,7 +107,7 @@
107107
</span>
108108
</div>
109109
</template>
110-
</UiToolbar>
110+
</KToolbar>
111111
</header>
112112
<div
113113
v-if="showNavigation && !windowIsLarge && !showAppNavView"
@@ -130,7 +130,7 @@
130130
import { get } from '@vueuse/core';
131131
import { computed, getCurrentInstance } from '@vue/composition-api';
132132
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings';
133-
import UiToolbar from 'kolibri-common/components/keen/UiToolbar';
133+
import KToolbar from 'kolibri-design-system/lib/KToolbar';
134134
import KIconButton from 'kolibri-design-system/lib/buttons-and-links/KIconButton';
135135
import themeConfig from 'kolibri/styles/themeConfig';
136136
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
@@ -145,7 +145,7 @@
145145
export default {
146146
name: 'AppBar',
147147
components: {
148-
UiToolbar,
148+
KToolbar,
149149
KIconButton,
150150
SkipNavigationLink,
151151
Navbar,

packages/kolibri/components/pages/AppBarPage/internal/SideNav.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@
528528
529529
@import '~kolibri-design-system/lib/styles/definitions';
530530
531-
// Matches the Keen-UI/UiToolbar box-shadow property
532-
%ui-toolbar-box-shadow {
531+
// Matches the KToolbar box-shadow property
532+
%k-toolbar-box-shadow {
533533
box-shadow:
534534
0 0 2px rgba(0, 0, 0, 0.12),
535535
0 2px 2px rgba(0, 0, 0, 0.2);
@@ -574,7 +574,7 @@
574574
}
575575
576576
.side-nav-header {
577-
@extend %ui-toolbar-box-shadow;
577+
@extend %k-toolbar-box-shadow;
578578
579579
position: fixed;
580580
top: 0;

packages/kolibri/components/pages/ImmersivePage/internal/ImmersiveToolbar.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22

33
<header>
4-
<UiToolbar
4+
<KToolbar
55
:title="appBarTitle"
66
:textColor="isFullscreen ? 'black' : 'white'"
77
type="clear"
@@ -56,23 +56,23 @@
5656
<template #actions>
5757
<slot name="actions"></slot>
5858
</template>
59-
</UiToolbar>
59+
</KToolbar>
6060
</header>
6161

6262
</template>
6363

6464

6565
<script>
6666
67-
import UiToolbar from 'kolibri-common/components/keen/UiToolbar';
67+
import KToolbar from 'kolibri-design-system/lib/KToolbar';
6868
import { validateLinkObject } from 'kolibri/utils/validators';
6969
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings';
7070
import useNav from 'kolibri/composables/useNav';
7171
7272
export default {
7373
name: 'ImmersiveToolbar',
7474
components: {
75-
UiToolbar,
75+
KToolbar,
7676
},
7777
mixins: [commonCoreStrings],
7878
setup() {
@@ -133,7 +133,7 @@
133133

134134
<style lang="scss" scoped>
135135
136-
// only used when using a link. Otherwise, uses UiToolbar's styles
136+
// only used when using a link. Otherwise, uses KToolbar's styles
137137
.icon {
138138
// copied from keen
139139
width: 3em;

packages/kolibri/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"frame-throttle": "^3.0.0",
6565
"intl": "^1.2.4",
6666
"kolibri-constants": "0.2.8",
67-
"kolibri-design-system": "5.0.0-rc9",
67+
"kolibri-design-system": "5.0.0-rc10",
6868
"lockr": "0.8.5",
6969
"lodash": "^4.17.21",
7070
"path-to-regexp": "1.9.0",

yarn.lock

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,6 +2936,15 @@ anymatch@^3.0.3, anymatch@~3.1.2:
29362936
normalize-path "^3.0.0"
29372937
picomatch "^2.0.4"
29382938

2939+
"aphrodite@git+https://github.com/learningequality/aphrodite.git":
2940+
version "2.2.3"
2941+
uid fdc8d7be8912a5cf17f74ff10f124013c52c3e32
2942+
resolved "git+https://github.com/learningequality/aphrodite.git#fdc8d7be8912a5cf17f74ff10f124013c52c3e32"
2943+
dependencies:
2944+
asap "^2.0.3"
2945+
inline-style-prefixer "^4.0.2"
2946+
string-hash "^1.1.3"
2947+
29392948
"aphrodite@https://github.com/learningequality/aphrodite/":
29402949
version "2.2.3"
29412950
resolved "https://github.com/learningequality/aphrodite/#fdc8d7be8912a5cf17f74ff10f124013c52c3e32"
@@ -7808,13 +7817,13 @@ [email protected]:
78087817
resolved "https://registry.yarnpkg.com/kolibri-constants/-/kolibri-constants-0.2.8.tgz#34ad2e2b87cf132ebe8dbaa9b64dc4a7bf261f8d"
78097818
integrity sha512-ycXeK+ePw7zkiNtf+nX/yF5BO52+onoYS2V3d9HZDIvx7X6CDJPtMcypkXrK9aZ0JbWAegRFMD/lAd8q21cf4Q==
78107819

7811-
7812-
version "5.0.0-rc9"
7813-
resolved "https://registry.yarnpkg.com/kolibri-design-system/-/kolibri-design-system-5.0.0-rc9.tgz#ee17c0bc230f4f8406e60b3b342de70987180893"
7814-
integrity sha512-KerRkQY9C98A+R1mPM+umzsA/bupDjNI/p0d54K6/CDPHueX6vuO2xWkH4/5wMzbO9dv1UkiMJ9hm3XxD7/Lmw==
7820+
7821+
version "5.0.0-rc10"
7822+
resolved "https://registry.yarnpkg.com/kolibri-design-system/-/kolibri-design-system-5.0.0-rc10.tgz#8c92a1b097878a2a8e2f67cda76771914f77b7b8"
7823+
integrity sha512-Dkk5D5PunIm+qPsIMmgo06rjA0BkPZOOpeABuPgZmtpXcFwhpAP07VrLs0LhvFBdSFri3aJDXj/kj7HskXLhWg==
78157824
dependencies:
78167825
"@vue/composition-api" "1.7.2"
7817-
aphrodite "https://github.com/learningequality/aphrodite/"
7826+
aphrodite "git+https://github.com/learningequality/aphrodite.git"
78187827
autosize "3.0.21"
78197828
color "3.2.1"
78207829
css-element-queries "1.2.0"

0 commit comments

Comments
 (0)