tenara-ui-components 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/BackgroundMedia/BackgroundMedia.d.ts +18 -0
- package/dist/atoms/BackgroundMedia/index.d.ts +2 -0
- package/dist/atoms/Button/Button.d.ts +23 -0
- package/dist/atoms/Button.d.ts +2 -0
- package/dist/atoms/ButtonLink/ButtonLink.d.ts +27 -0
- package/dist/atoms/ButtonLink/index.d.ts +2 -0
- package/dist/atoms/Heading/Heading.d.ts +15 -0
- package/dist/atoms/Heading/index.d.ts +2 -0
- package/dist/atoms/TextLink/TextLink.d.ts +17 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.esm.css +1 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/molecules/CTA/CTA.d.ts +33 -0
- package/dist/molecules/CTA/index.d.ts +2 -0
- package/dist/molecules/Card/Card.d.ts +20 -0
- package/dist/molecules/Header/Header.d.ts +11 -0
- package/dist/themes/core/context.d.ts +23 -0
- package/dist/themes/core/types.d.ts +106 -0
- package/dist/themes/index.d.ts +19 -0
- package/dist/themes/presets/advisors-plus.d.ts +6 -0
- package/dist/themes/presets/default.d.ts +6 -0
- package/dist/themes/presets/primax.d.ts +6 -0
- package/dist/themes/tenant-config.example.d.ts +7 -0
- package/dist/themes/utils/generator.d.ts +17 -0
- package/package.json +3 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme CSS generation utilities
|
|
3
|
+
* Converts theme configurations to CSS custom properties and applies them
|
|
4
|
+
*/
|
|
5
|
+
import { ThemeConfig } from '../core/types';
|
|
6
|
+
/**
|
|
7
|
+
* Generates CSS custom properties from theme configuration
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateThemeCSS(theme: ThemeConfig, selector?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Applies theme to document by injecting CSS
|
|
12
|
+
*/
|
|
13
|
+
export declare function applyTheme(theme: ThemeConfig, themeName?: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Sets theme attribute on document element
|
|
16
|
+
*/
|
|
17
|
+
export declare function setThemeAttribute(themeName: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tenara-ui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"storybook": "storybook dev -p 6006",
|
|
18
18
|
"build-storybook": "storybook build",
|
|
19
19
|
"build:lib": "rollup -c",
|
|
20
|
+
|
|
20
21
|
"prepublishOnly": "npm run build:lib"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"playwright": "^1.54.1",
|
|
57
58
|
"rollup": "^4.50.0",
|
|
58
59
|
"rollup-plugin-postcss": "^4.0.2",
|
|
60
|
+
"sass": "^1.93.1",
|
|
59
61
|
"storybook": "^9.0.18",
|
|
60
62
|
"tailwindcss": "^4",
|
|
61
63
|
"typescript": "^5",
|