From 3e0c68734f34f07610841e5eee74bdd994705c58 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Fri, 3 May 2024 23:10:39 +0100 Subject: [PATCH] Add `css` helper to themes --- components/lib/themes/helpers/css.js | 3 +++ components/lib/themes/helpers/index.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 components/lib/themes/helpers/css.js diff --git a/components/lib/themes/helpers/css.js b/components/lib/themes/helpers/css.js new file mode 100644 index 000000000..eaf052ad8 --- /dev/null +++ b/components/lib/themes/helpers/css.js @@ -0,0 +1,3 @@ +import { dt, SharedUtils } from 'primevue/themes'; + +export const css = (style) => SharedUtils.object.getItemValue(style, { dt }); diff --git a/components/lib/themes/helpers/index.js b/components/lib/themes/helpers/index.js index 4795c147f..f96847ed9 100644 --- a/components/lib/themes/helpers/index.js +++ b/components/lib/themes/helpers/index.js @@ -1,3 +1,4 @@ export * from './color/index.js'; +export * from './css'; export * from './dt'; export { default as toVariables } from './toVariables';