From 7c299f55f91e460a54d1b0a542bc1acc02449f47 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 1 Apr 2024 14:08:53 +0100 Subject: [PATCH] Theming API: Add `dt` props to all component --- components/lib/base/style/BaseStyle.js | 3 ++ .../lib/basecomponent/BaseComponent.vue | 28 +++++++++++++- components/lib/themes/config/index.js | 5 +++ components/lib/themes/utils/themeUtils.js | 37 +++++++++---------- components/lib/utils/DomHandler.js | 2 +- components/lib/utils/UniqueComponentId.js | 10 +++-- 6 files changed, 61 insertions(+), 24 deletions(-) diff --git a/components/lib/base/style/BaseStyle.js b/components/lib/base/style/BaseStyle.js index c62de86c7..1ac7d44f4 100644 --- a/components/lib/base/style/BaseStyle.js +++ b/components/lib/base/style/BaseStyle.js @@ -49,6 +49,9 @@ export default { getDirectiveThemeCSS(params) { return Theme.getDirectiveCSS(this.name, params); }, + getPresetThemeCSS(preset, selector, params) { + return Theme.getPresetCSS(this.name, preset, selector, params); + }, getLayerOrderThemeCSS() { return Theme.getLayerOrderCSS(this.name); }, diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 366346eb8..12699061c 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -1,7 +1,7 @@