diff --git a/CHANGELOG.md b/CHANGELOG.md index bcc69113a..470d8ca89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,19 @@ Changelog is rather internal in nature. See release notes for the public overvie ## Version 2.0.0 +- [#464] + - **Description:** Add KTextTruncator + - **Products impact:** new API + - **Addresses:** https://github.com/learningequality/kolibri-design-system/issues/450 + - **Components:** KTextTruncator + - **Breaking:** no + - **Impacts a11y:** no + - **Guidance:** - + +[#464]: https://github.com/learningequality/kolibri-design-system/pull/464 + - [#460] - - **Description:** Implement KLogo + - **Description:** Add KLogo - **Products impact:** new API - **Addresses:** https://github.com/learningequality/kolibri-design-system/issues/373 - **Components:** KLogo diff --git a/docs/pages/ktexttruncator.vue b/docs/pages/ktexttruncator.vue new file mode 100644 index 000000000..82751e2ca --- /dev/null +++ b/docs/pages/ktexttruncator.vue @@ -0,0 +1,18 @@ + diff --git a/docs/tableOfContents.js b/docs/tableOfContents.js index e19b8b4eb..55d4d5670 100644 --- a/docs/tableOfContents.js +++ b/docs/tableOfContents.js @@ -392,6 +392,11 @@ export default [ isCode: true, keywords: ['transition'], }), + new Page({ + path: '/ktexttruncator', + title: 'KTextTruncator', + isCode: true, + }), ], }), ]; diff --git a/lib/KTextTruncator.vue b/lib/KTextTruncator.vue new file mode 100644 index 000000000..8a972257c --- /dev/null +++ b/lib/KTextTruncator.vue @@ -0,0 +1,149 @@ + + + + diff --git a/lib/KThemePlugin.js b/lib/KThemePlugin.js index fe1cd996c..7c7315ba1 100644 --- a/lib/KThemePlugin.js +++ b/lib/KThemePlugin.js @@ -31,6 +31,7 @@ import KTabsPanel from './tabs/KTabsPanel'; import KTextbox from './KTextbox'; import KTooltip from './KTooltip'; import KTransition from './KTransition'; +import KTextTruncator from './KTextTruncator'; import KLogo from './KLogo'; import { themeTokens, themeBrand, themePalette, themeOutlineStyle } from './styles/theme'; @@ -123,4 +124,5 @@ export default function KThemePlugin(Vue) { Vue.component('KTextbox', KTextbox); Vue.component('KTooltip', KTooltip); Vue.component('KTransition', KTransition); + Vue.component('KTextTruncator', KTextTruncator); }