diff --git a/.gitignore b/.gitignore index b81f07174..9e4bc7763 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ docs/jsdocs.js # IDE .idea kolibri-design-system.iml +docs/pages/playground.vue diff --git a/docs/pages/kfocustrap.vue b/docs/pages/kfocustrap.vue new file mode 100644 index 000000000..ea663f8e2 --- /dev/null +++ b/docs/pages/kfocustrap.vue @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/docs/tableOfContents.js b/docs/tableOfContents.js index ae7ab9ee1..58877cc87 100644 --- a/docs/tableOfContents.js +++ b/docs/tableOfContents.js @@ -443,6 +443,11 @@ export default [ isCode: true, keywords: cardRelatedKeywords, }), + new Page({ + path: '/kfocustrap', + title: 'KFocusTrap', + isCode: true, + }), ], }), ]; diff --git a/lib/KFocusTrap.vue b/lib/KFocusTrap.vue new file mode 100644 index 000000000..9fadf7eae --- /dev/null +++ b/lib/KFocusTrap.vue @@ -0,0 +1,114 @@ + + + + + + + diff --git a/lib/KModal.vue b/lib/KModal.vue index 71bb228b2..88728c450 100644 --- a/lib/KModal.vue +++ b/lib/KModal.vue @@ -3,98 +3,100 @@ - + + - + diff --git a/lib/KThemePlugin.js b/lib/KThemePlugin.js index d220b9958..affdb6b5b 100644 --- a/lib/KThemePlugin.js +++ b/lib/KThemePlugin.js @@ -41,6 +41,7 @@ import KTransition from './KTransition'; import KTextTruncator from './KTextTruncator'; import KLogo from './KLogo'; import KRadioButtonGroup from './KRadioButtonGroup.vue'; +import KFocusTrap from './KFocusTrap.vue'; import { themeTokens, themeBrand, themePalette, themeOutlineStyle } from './styles/theme'; import globalThemeState from './styles/globalThemeState'; @@ -163,4 +164,5 @@ export default function KThemePlugin(Vue) { Vue.component('KTransition', KTransition); Vue.component('KTextTruncator', KTextTruncator); Vue.component('KRadioButtonGroup', KRadioButtonGroup); + Vue.component('KFocusTrap', KFocusTrap); }