tenara-ui-components 0.3.3 → 0.3.5
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/components/atoms/BackgroundMedia/BackgroundMedia.d.ts +19 -0
- package/dist/components/atoms/BackgroundMedia/BackgroundMedia.d.ts.map +1 -0
- package/dist/components/atoms/BackgroundMedia/index.d.ts +3 -0
- package/dist/components/atoms/BackgroundMedia/index.d.ts.map +1 -0
- package/dist/components/atoms/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/atoms/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/atoms/Breadcrumb/index.d.ts +3 -0
- package/dist/components/atoms/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/atoms/BulletList/BulletList.d.ts +22 -0
- package/dist/components/atoms/BulletList/BulletList.d.ts.map +1 -0
- package/dist/components/atoms/BulletList/index.d.ts +3 -0
- package/dist/components/atoms/BulletList/index.d.ts.map +1 -0
- package/dist/components/atoms/Button/Button.d.ts +36 -0
- package/dist/components/atoms/Button/Button.d.ts.map +1 -0
- package/dist/components/atoms/Button/buttonIcons.d.ts +24 -0
- package/dist/components/atoms/Button/buttonIcons.d.ts.map +1 -0
- package/dist/components/atoms/Button/index.d.ts +3 -0
- package/dist/components/atoms/Button/index.d.ts.map +1 -0
- package/dist/components/atoms/ButtonLink/ButtonLink.d.ts +34 -0
- package/dist/components/atoms/ButtonLink/ButtonLink.d.ts.map +1 -0
- package/dist/components/atoms/ButtonLink/index.d.ts +3 -0
- package/dist/components/atoms/ButtonLink/index.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +24 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox/index.d.ts +3 -0
- package/dist/components/atoms/Checkbox/index.d.ts.map +1 -0
- package/dist/components/atoms/ColorTable/ColorTable.d.ts +12 -0
- package/dist/components/atoms/ColorTable/ColorTable.d.ts.map +1 -0
- package/dist/components/atoms/ColorTable/index.d.ts +3 -0
- package/dist/components/atoms/ColorTable/index.d.ts.map +1 -0
- package/dist/components/atoms/Container/Container.d.ts +15 -0
- package/dist/components/atoms/Container/Container.d.ts.map +1 -0
- package/dist/components/atoms/Container/index.d.ts +3 -0
- package/dist/components/atoms/Container/index.d.ts.map +1 -0
- package/dist/components/atoms/Divider/Divider.d.ts +20 -0
- package/dist/components/atoms/Divider/Divider.d.ts.map +1 -0
- package/dist/components/atoms/Divider/index.d.ts +3 -0
- package/dist/components/atoms/Divider/index.d.ts.map +1 -0
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +32 -0
- package/dist/components/atoms/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/atoms/Dropdown/index.d.ts +3 -0
- package/dist/components/atoms/Dropdown/index.d.ts.map +1 -0
- package/dist/components/atoms/Grid/Grid.d.ts +113 -0
- package/dist/components/atoms/Grid/Grid.d.ts.map +1 -0
- package/dist/components/atoms/Grid/index.d.ts +3 -0
- package/dist/components/atoms/Grid/index.d.ts.map +1 -0
- package/dist/components/atoms/Heading/Heading.d.ts +37 -0
- package/dist/components/atoms/Heading/Heading.d.ts.map +1 -0
- package/dist/components/atoms/Heading/index.d.ts +3 -0
- package/dist/components/atoms/Heading/index.d.ts.map +1 -0
- package/dist/components/atoms/Icon/Icon.d.ts +42 -0
- package/dist/components/atoms/Icon/Icon.d.ts.map +1 -0
- package/dist/components/atoms/Icon/index.d.ts +3 -0
- package/dist/components/atoms/Icon/index.d.ts.map +1 -0
- package/dist/components/atoms/Media/Media.d.ts +63 -0
- package/dist/components/atoms/Media/Media.d.ts.map +1 -0
- package/dist/components/atoms/Media/index.d.ts +3 -0
- package/dist/components/atoms/Media/index.d.ts.map +1 -0
- package/dist/components/atoms/Paragraph/Paragraph.d.ts +41 -0
- package/dist/components/atoms/Paragraph/Paragraph.d.ts.map +1 -0
- package/dist/components/atoms/Paragraph/index.d.ts +3 -0
- package/dist/components/atoms/Paragraph/index.d.ts.map +1 -0
- package/dist/components/atoms/PlayButton/PlayButton.d.ts +26 -0
- package/dist/components/atoms/PlayButton/PlayButton.d.ts.map +1 -0
- package/dist/components/atoms/PlayButton/index.d.ts +3 -0
- package/dist/components/atoms/PlayButton/index.d.ts.map +1 -0
- package/dist/components/atoms/RichText/RichText.d.ts +21 -0
- package/dist/components/atoms/RichText/RichText.d.ts.map +1 -0
- package/dist/components/atoms/RichText/index.d.ts +3 -0
- package/dist/components/atoms/RichText/index.d.ts.map +1 -0
- package/dist/components/atoms/TextInput/TextInput.d.ts +44 -0
- package/dist/components/atoms/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/atoms/TextInput/index.d.ts +3 -0
- package/dist/components/atoms/TextInput/index.d.ts.map +1 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts +19 -0
- package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -0
- package/dist/components/atoms/TextLink/index.d.ts +3 -0
- package/dist/components/atoms/TextLink/index.d.ts.map +1 -0
- package/dist/components/molecules/CTA/CTA.d.ts +34 -0
- package/dist/components/molecules/CTA/CTA.d.ts.map +1 -0
- package/dist/components/molecules/CTA/index.d.ts +3 -0
- package/dist/components/molecules/CTA/index.d.ts.map +1 -0
- package/dist/components/molecules/Card/Card.d.ts +23 -0
- package/dist/components/molecules/Card/Card.d.ts.map +1 -0
- package/dist/components/molecules/Card/index.d.ts +3 -0
- package/dist/components/molecules/Card/index.d.ts.map +1 -0
- package/dist/components/molecules/Header/Header.d.ts +13 -0
- package/dist/components/molecules/Header/Header.d.ts.map +1 -0
- package/dist/components/molecules/Header/index.d.ts +3 -0
- package/dist/components/molecules/Header/index.d.ts.map +1 -0
- package/dist/components/molecules/Modal/Modal.d.ts +26 -0
- package/dist/components/molecules/Modal/Modal.d.ts.map +1 -0
- package/dist/components/molecules/Modal/index.d.ts +3 -0
- package/dist/components/molecules/Modal/index.d.ts.map +1 -0
- package/dist/components/molecules/VideoPlayer/VideoPlayer.d.ts +29 -0
- package/dist/components/molecules/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/molecules/VideoPlayer/index.d.ts +3 -0
- package/dist/components/molecules/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/Banner/Banner.d.ts.map +1 -1
- package/dist/components/molecules/primax/CTA/CTA.d.ts +28 -0
- package/dist/components/molecules/primax/CTA/CTA.d.ts.map +1 -0
- package/dist/components/molecules/primax/CTA/index.d.ts +3 -0
- package/dist/components/molecules/primax/CTA/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/Card/Card.d.ts +46 -0
- package/dist/components/molecules/primax/Card/Card.d.ts.map +1 -0
- package/dist/components/molecules/primax/Card/index.d.ts +3 -0
- package/dist/components/molecules/primax/Card/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/DropdownSelect/DropdownSelect.d.ts +50 -0
- package/dist/components/molecules/primax/DropdownSelect/DropdownSelect.d.ts.map +1 -0
- package/dist/components/molecules/primax/DropdownSelect/index.d.ts +3 -0
- package/dist/components/molecules/primax/DropdownSelect/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/HalfColumn/HalfColumn.d.ts +60 -0
- package/dist/components/molecules/primax/HalfColumn/HalfColumn.d.ts.map +1 -0
- package/dist/components/molecules/primax/HalfColumn/index.d.ts +3 -0
- package/dist/components/molecules/primax/HalfColumn/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/MediaBlock/MediaBlock.d.ts +45 -0
- package/dist/components/molecules/primax/MediaBlock/MediaBlock.d.ts.map +1 -0
- package/dist/components/molecules/primax/MediaBlock/assets.d.ts +11 -0
- package/dist/components/molecules/primax/MediaBlock/assets.d.ts.map +1 -0
- package/dist/components/molecules/primax/MediaBlock/index.d.ts +3 -0
- package/dist/components/molecules/primax/MediaBlock/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/PlayIcon/PlayIcon.d.ts +11 -0
- package/dist/components/molecules/primax/PlayIcon/PlayIcon.d.ts.map +1 -0
- package/dist/components/molecules/primax/PlayIcon/index.d.ts +2 -0
- package/dist/components/molecules/primax/PlayIcon/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/Subscribe/Subscribe.d.ts +58 -0
- package/dist/components/molecules/primax/Subscribe/Subscribe.d.ts.map +1 -0
- package/dist/components/molecules/primax/Subscribe/index.d.ts +3 -0
- package/dist/components/molecules/primax/Subscribe/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/TwoColumn/TwoColumn.d.ts +37 -0
- package/dist/components/molecules/primax/TwoColumn/TwoColumn.d.ts.map +1 -0
- package/dist/components/molecules/primax/TwoColumn/index.d.ts +3 -0
- package/dist/components/molecules/primax/TwoColumn/index.d.ts.map +1 -0
- package/dist/components/molecules/primax/VideoSection/VideoSection.d.ts +31 -0
- package/dist/components/molecules/primax/VideoSection/VideoSection.d.ts.map +1 -0
- package/dist/components/molecules/primax/VideoSection/index.d.ts +3 -0
- package/dist/components/molecules/primax/VideoSection/index.d.ts.map +1 -0
- package/dist/components/pages/Page.d.ts +4 -0
- package/dist/components/pages/Page.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +2 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/themes/core/client-provider.d.ts +8 -0
- package/dist/themes/core/client-provider.d.ts.map +1 -0
- package/dist/themes/core/color-system.d.ts +72 -0
- package/dist/themes/core/color-system.d.ts.map +1 -0
- package/dist/themes/core/context.d.ts +26 -0
- package/dist/themes/core/context.d.ts.map +1 -0
- package/dist/themes/core/types.d.ts +188 -0
- package/dist/themes/core/types.d.ts.map +1 -0
- package/dist/themes/hooks/useColorTokens.d.ts +26 -0
- package/dist/themes/hooks/useColorTokens.d.ts.map +1 -0
- package/dist/themes/index.d.ts +16 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/presets/advisors-plus.d.ts +7 -0
- package/dist/themes/presets/advisors-plus.d.ts.map +1 -0
- package/dist/themes/presets/color-systems/advisors-plus-colors.d.ts +7 -0
- package/dist/themes/presets/color-systems/advisors-plus-colors.d.ts.map +1 -0
- package/dist/themes/presets/color-systems/default-colors.d.ts +7 -0
- package/dist/themes/presets/color-systems/default-colors.d.ts.map +1 -0
- package/dist/themes/presets/color-systems/primax-colors.d.ts +7 -0
- package/dist/themes/presets/color-systems/primax-colors.d.ts.map +1 -0
- package/dist/themes/presets/default.d.ts +7 -0
- package/dist/themes/presets/default.d.ts.map +1 -0
- package/dist/themes/presets/primax.d.ts +7 -0
- package/dist/themes/presets/primax.d.ts.map +1 -0
- package/dist/themes/utils/generator.d.ts +20 -0
- package/dist/themes/utils/generator.d.ts.map +1 -0
- package/dist/themes/utils/helpers.d.ts +14 -0
- package/dist/themes/utils/helpers.d.ts.map +1 -0
- package/dist/themes/utils/index.d.ts +6 -0
- package/dist/themes/utils/index.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side theme provider wrapper
|
|
3
|
+
* This component can be used in any React application
|
|
4
|
+
*/
|
|
5
|
+
import { ThemeProvider as BaseThemeProvider } from './context';
|
|
6
|
+
export { useTheme } from './context';
|
|
7
|
+
export declare const ThemeProvider: typeof BaseThemeProvider;
|
|
8
|
+
//# sourceMappingURL=client-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-provider.d.ts","sourceRoot":"","sources":["../../../src/themes/core/client-provider.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGrC,eAAO,MAAM,aAAa,0BAAoB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multi-tier color management system (Three-tier naming convention)
|
|
3
|
+
*
|
|
4
|
+
* Tier 1: Base Colors - Raw color values (palette) with structured naming
|
|
5
|
+
* Tier 2: Semantic Tokens - Purpose-based colors referencing base colors
|
|
6
|
+
* Tier 3: Component Tokens - Component-specific colors referencing semantic tokens
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export interface ColorPrimitives {
|
|
10
|
+
'color-white': string;
|
|
11
|
+
'color-black': string;
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SemanticColorTokens {
|
|
15
|
+
[key: string]: string | undefined;
|
|
16
|
+
primary?: string;
|
|
17
|
+
primaryHover?: string;
|
|
18
|
+
primaryActive?: string;
|
|
19
|
+
primaryText?: string;
|
|
20
|
+
secondary?: string;
|
|
21
|
+
secondaryHover?: string;
|
|
22
|
+
secondaryActive?: string;
|
|
23
|
+
secondaryText?: string;
|
|
24
|
+
accent?: string;
|
|
25
|
+
accentHover?: string;
|
|
26
|
+
accentActive?: string;
|
|
27
|
+
accentText?: string;
|
|
28
|
+
tertiary?: string;
|
|
29
|
+
tertiaryHover?: string;
|
|
30
|
+
tertiaryActive?: string;
|
|
31
|
+
tertiaryText?: string;
|
|
32
|
+
textPrimary?: string;
|
|
33
|
+
textSecondary?: string;
|
|
34
|
+
textTertiary?: string;
|
|
35
|
+
textInverse?: string;
|
|
36
|
+
textDisabled?: string;
|
|
37
|
+
textLink?: string;
|
|
38
|
+
textLinkHover?: string;
|
|
39
|
+
bgPrimary?: string;
|
|
40
|
+
bgSecondary?: string;
|
|
41
|
+
bgTertiary?: string;
|
|
42
|
+
bgInverse?: string;
|
|
43
|
+
bgOverlay?: string;
|
|
44
|
+
borderDefault?: string;
|
|
45
|
+
borderSubtle?: string;
|
|
46
|
+
borderStrong?: string;
|
|
47
|
+
borderFocus?: string;
|
|
48
|
+
stateSuccess?: string;
|
|
49
|
+
stateSuccessHover?: string;
|
|
50
|
+
stateSuccessBg?: string;
|
|
51
|
+
stateWarning?: string;
|
|
52
|
+
stateWarningHover?: string;
|
|
53
|
+
stateWarningBg?: string;
|
|
54
|
+
stateError?: string;
|
|
55
|
+
stateErrorHover?: string;
|
|
56
|
+
stateErrorBg?: string;
|
|
57
|
+
stateInfo?: string;
|
|
58
|
+
stateInfoHover?: string;
|
|
59
|
+
stateInfoBg?: string;
|
|
60
|
+
interactivePrimary?: string;
|
|
61
|
+
interactivePrimaryHover?: string;
|
|
62
|
+
interactivePrimaryActive?: string;
|
|
63
|
+
interactiveSecondary?: string;
|
|
64
|
+
interactiveSecondaryHover?: string;
|
|
65
|
+
interactiveSecondaryActive?: string;
|
|
66
|
+
interactiveDisabled?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ColorSystem {
|
|
69
|
+
primitives: ColorPrimitives;
|
|
70
|
+
semantic: SemanticColorTokens;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=color-system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-system.d.ts","sourceRoot":"","sources":["../../../src/themes/core/color-system.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,MAAM,WAAW,eAAe;IAE9B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IAGtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAQD,MAAM,WAAW,mBAAmB;IAElC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAGlC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EA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C,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAMD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,mBAAmB,CAAC;CAC/B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React context for theme management
|
|
3
|
+
* Optimized for single-theme tenant sites
|
|
4
|
+
*/
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
import { ThemeConfig, ThemeVariant } from './types';
|
|
7
|
+
interface ThemeContextValue {
|
|
8
|
+
currentTheme: ThemeConfig;
|
|
9
|
+
themeName: ThemeVariant;
|
|
10
|
+
}
|
|
11
|
+
interface ThemeProviderProps {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
initialTheme?: ThemeConfig;
|
|
14
|
+
initialThemeName?: ThemeVariant;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Theme provider optimized for single-theme tenant sites
|
|
18
|
+
* Sets theme once on mount - no runtime switching needed
|
|
19
|
+
*/
|
|
20
|
+
export declare function ThemeProvider({ children, initialTheme, initialThemeName, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Hook to access current theme (read-only for tenant sites)
|
|
23
|
+
*/
|
|
24
|
+
export declare function useTheme(): ThemeContextValue;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/themes/core/context.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAc,EAAwC,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA+BpD,UAAU,iBAAiB;IACzB,YAAY,EAAE,WAAW,CAAC;IAC1B,SAAS,EAAE,YAAY,CAAC;CACzB;AAID,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,gBAAgB,CAAC,EAAE,YAAY,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAA2B,EAC3B,gBAA4B,GAC7B,EAAE,kBAAkB,2CAapB;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core TypeScript interfaces for theme configuration schema
|
|
3
|
+
* Defines the structure and types for all theme properties
|
|
4
|
+
* Updated for three-tier naming convention
|
|
5
|
+
*/
|
|
6
|
+
import { ColorPrimitives, SemanticColorTokens } from './color-system';
|
|
7
|
+
/**
|
|
8
|
+
* Three-tier color system integrated into theme
|
|
9
|
+
* Tier 1: Base Colors (raw colors - the palette) with structured naming
|
|
10
|
+
* Tier 2: Semantic tokens (purpose-based colors) with tier1-theme prefix
|
|
11
|
+
* Tier 3: Component tokens (component-specific colors) with tier3-theme prefix
|
|
12
|
+
*
|
|
13
|
+
* Components use semantic and component tokens directly in their CSS
|
|
14
|
+
*/
|
|
15
|
+
export interface ThemeColors {
|
|
16
|
+
primitives: ColorPrimitives;
|
|
17
|
+
semantic: SemanticColorTokens;
|
|
18
|
+
}
|
|
19
|
+
export interface ThemeSpacing {
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
xxl: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ThemeBorderRadius {
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
xl: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ThemeShadows {
|
|
34
|
+
sm: string;
|
|
35
|
+
md: string;
|
|
36
|
+
lg: string;
|
|
37
|
+
xl: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ThemeBreakpoints {
|
|
40
|
+
xs: string;
|
|
41
|
+
sm: string;
|
|
42
|
+
md: string;
|
|
43
|
+
lg: string;
|
|
44
|
+
xl: string;
|
|
45
|
+
xxl: string;
|
|
46
|
+
}
|
|
47
|
+
export interface TypographyVariantDefault {
|
|
48
|
+
fontSize?: string;
|
|
49
|
+
fontWeight?: string;
|
|
50
|
+
lineHeight?: string;
|
|
51
|
+
letterSpacing?: string;
|
|
52
|
+
textDecoration?: string;
|
|
53
|
+
textTransform?: string;
|
|
54
|
+
fontFamily?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface TypographyVariant extends TypographyVariantDefault {
|
|
57
|
+
mobile?: TypographyVariantDefault;
|
|
58
|
+
tablet?: TypographyVariantDefault;
|
|
59
|
+
}
|
|
60
|
+
export interface ThemeTypography {
|
|
61
|
+
fontFamily: string;
|
|
62
|
+
fontFamilyHeading: string;
|
|
63
|
+
fontFamilyMono?: string;
|
|
64
|
+
fontSizeXs: string;
|
|
65
|
+
fontSizeSm: string;
|
|
66
|
+
fontSizeMd: string;
|
|
67
|
+
fontSizeLg: string;
|
|
68
|
+
fontSizeXl: string;
|
|
69
|
+
fontSize2xl?: string;
|
|
70
|
+
fontWeightLight?: string;
|
|
71
|
+
fontWeightRegular: string;
|
|
72
|
+
fontWeightSemibold?: string;
|
|
73
|
+
fontWeightBold: string;
|
|
74
|
+
fontWeightBlack?: string;
|
|
75
|
+
lineHeightTight: string;
|
|
76
|
+
lineHeightSnug?: string;
|
|
77
|
+
lineHeightNormal: string;
|
|
78
|
+
lineHeightRelaxed: string;
|
|
79
|
+
lineHeightLoose?: string;
|
|
80
|
+
letterSpacingTighter?: string;
|
|
81
|
+
letterSpacingTight?: string;
|
|
82
|
+
letterSpacingNormal?: string;
|
|
83
|
+
letterSpacingWide?: string;
|
|
84
|
+
letterSpacingWider?: string;
|
|
85
|
+
letterSpacingWidest?: string;
|
|
86
|
+
variants?: Record<string, TypographyVariant>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Dynamically extract button variant types from componentTokens.button
|
|
90
|
+
* Supports both nested variants structure and legacy flat structure
|
|
91
|
+
* This ensures ButtonVariantType is always in sync with defined variants
|
|
92
|
+
*/
|
|
93
|
+
export type ButtonVariantType = string;
|
|
94
|
+
export interface ThemeComponents {
|
|
95
|
+
card: {
|
|
96
|
+
background: string;
|
|
97
|
+
border: string;
|
|
98
|
+
borderRadius: string;
|
|
99
|
+
shadow: string;
|
|
100
|
+
padding: string;
|
|
101
|
+
};
|
|
102
|
+
header: {
|
|
103
|
+
background: string;
|
|
104
|
+
borderBottom: string;
|
|
105
|
+
height: string;
|
|
106
|
+
padding: string;
|
|
107
|
+
};
|
|
108
|
+
cta: {
|
|
109
|
+
background: string;
|
|
110
|
+
borderRadius: string;
|
|
111
|
+
padding: string;
|
|
112
|
+
titleFontSize?: string;
|
|
113
|
+
titleFontWeight?: string;
|
|
114
|
+
titleMargin?: string;
|
|
115
|
+
titleLineHeight?: string;
|
|
116
|
+
descriptionFontSize?: string;
|
|
117
|
+
descriptionFontWeight?: string;
|
|
118
|
+
descriptionMargin?: string;
|
|
119
|
+
descriptionLineHeight?: string;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface ColorPalette {
|
|
123
|
+
name: string;
|
|
124
|
+
bg: string;
|
|
125
|
+
text: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Component token definition - flexible structure for any component
|
|
129
|
+
* Each component can define any properties it needs
|
|
130
|
+
* The generator will automatically create CSS variables for all properties
|
|
131
|
+
*
|
|
132
|
+
* Supports four patterns:
|
|
133
|
+
* 1. Flat structure with breakpoint-scoped properties via desktop/tablet/mobile keys
|
|
134
|
+
* 2. Nested variants structure: { borderRadius: "0px", variants: { general: {...}, secondary: {...} } }
|
|
135
|
+
* 3. Dark mode overrides: { bg: "white", dark: { bg: "black" } } or variants: { general: { bg: "white", dark: { bg: "black" } } }
|
|
136
|
+
* 4. Size variants: { sizes: { sm: { padding: "8px" }, md: { padding: "12px" }, lg: { padding: "16px" } } }
|
|
137
|
+
* 5. Animation tokens: { hoverAnimationEnabled: "true", hoverAnimationDuration: "0.3s", hoverAnimationTiming: "ease" }
|
|
138
|
+
*/
|
|
139
|
+
export type ComponentTokenDefinition = {
|
|
140
|
+
[key: string]: string | undefined | Record<string, any>;
|
|
141
|
+
desktop?: Record<string, string | undefined>;
|
|
142
|
+
tablet?: Record<string, string | undefined>;
|
|
143
|
+
mobile?: Record<string, string | undefined>;
|
|
144
|
+
sm?: Record<string, string | undefined>;
|
|
145
|
+
md?: Record<string, string | undefined>;
|
|
146
|
+
lg?: Record<string, string | undefined>;
|
|
147
|
+
xl?: Record<string, string | undefined>;
|
|
148
|
+
dark?: Record<string, string | undefined>;
|
|
149
|
+
sizes?: Record<string, Record<string, string | undefined>>;
|
|
150
|
+
variants?: Record<string, Record<string, any>>;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Component tokens interface - extensible for any component
|
|
154
|
+
* Add new components by simply adding a new key with ComponentTokenDefinition
|
|
155
|
+
* No need to modify generator.ts - it automatically handles all components
|
|
156
|
+
*
|
|
157
|
+
* Breakpoint-scoped structure:
|
|
158
|
+
* component: {
|
|
159
|
+
* property: 'value', // Base (applies to all unless overridden)
|
|
160
|
+
* tablet: { property: 'value' }, // Tablet overrides
|
|
161
|
+
* mobile: { property: 'value' }, // Mobile overrides
|
|
162
|
+
* }
|
|
163
|
+
*/
|
|
164
|
+
export interface ComponentTokens {
|
|
165
|
+
button?: ComponentTokenDefinition;
|
|
166
|
+
card?: ComponentTokenDefinition;
|
|
167
|
+
header?: ComponentTokenDefinition;
|
|
168
|
+
cta?: ComponentTokenDefinition;
|
|
169
|
+
input?: ComponentTokenDefinition;
|
|
170
|
+
modal?: ComponentTokenDefinition;
|
|
171
|
+
dropdown?: ComponentTokenDefinition;
|
|
172
|
+
[componentName: string]: ComponentTokenDefinition | undefined;
|
|
173
|
+
}
|
|
174
|
+
export interface ThemeConfig {
|
|
175
|
+
name: string;
|
|
176
|
+
fontImportUrl?: string | string[];
|
|
177
|
+
colors: ThemeColors;
|
|
178
|
+
colorPalettes?: ColorPalette[];
|
|
179
|
+
spacing: ThemeSpacing;
|
|
180
|
+
borderRadius: ThemeBorderRadius;
|
|
181
|
+
shadows: ThemeShadows;
|
|
182
|
+
breakpoints: ThemeBreakpoints;
|
|
183
|
+
typography: ThemeTypography;
|
|
184
|
+
components: ThemeComponents;
|
|
185
|
+
componentTokens?: ComponentTokens;
|
|
186
|
+
}
|
|
187
|
+
export type ThemeVariant = 'default' | 'advisors-plus' | 'primax' | string;
|
|
188
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/themes/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAi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CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IAEpC,CAAC,aAAa,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAAC;CAC/D;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,EAAE,iBAAiB,CAAC;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,eAAe,CAAC;IAC5B,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,eAAe,GAAG,QAAQ,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React hook for accessing color tokens programmatically
|
|
3
|
+
* Useful when you need to use colors in JavaScript/TypeScript
|
|
4
|
+
*/
|
|
5
|
+
export interface ColorTokens {
|
|
6
|
+
primitives: Record<string, string>;
|
|
7
|
+
semantic: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Hook to access color tokens from the current theme
|
|
11
|
+
* Returns resolved CSS variable values
|
|
12
|
+
*/
|
|
13
|
+
export declare function useColorTokens(): ColorTokens;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to get a specific color token value
|
|
16
|
+
* @param level - The color system level ('primitives' or 'semantic')
|
|
17
|
+
* @param tokenName - The name of the token
|
|
18
|
+
* @returns The resolved color value
|
|
19
|
+
*/
|
|
20
|
+
export declare function useColorToken(level: 'primitives' | 'semantic', tokenName: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Hook to get CSS variable name for a color token
|
|
23
|
+
* Useful for inline styles
|
|
24
|
+
*/
|
|
25
|
+
export declare function useColorVar(level: 'primitives' | 'semantic', tokenName: string): string;
|
|
26
|
+
//# sourceMappingURL=useColorTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColorTokens.d.ts","sourceRoot":"","sources":["../../../src/themes/hooks/useColorTokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,WAAW;IAE1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,WAAW,CA0B5C;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGzF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAOvF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main theme system exports
|
|
3
|
+
* Central entry point for all theming functionality
|
|
4
|
+
*/
|
|
5
|
+
export type { ThemeConfig, ThemeColors, ThemeSpacing, ThemeBorderRadius, ThemeShadows, ThemeBreakpoints, ThemeTypography, ThemeComponents, ThemeVariant, ButtonVariantType, ComponentTokens, } from './core/types';
|
|
6
|
+
export type { ColorPrimitives, SemanticColorTokens } from './core/color-system';
|
|
7
|
+
export { defaultTheme } from './presets/default';
|
|
8
|
+
export { advisorsPlusTheme } from './presets/advisors-plus';
|
|
9
|
+
export { primaxTheme } from './presets/primax';
|
|
10
|
+
export { defaultColorSystem } from './presets/color-systems/default-colors';
|
|
11
|
+
export { advisorsPlusColorSystem } from './presets/color-systems/advisors-plus-colors';
|
|
12
|
+
export { primaxColorSystem } from './presets/color-systems/primax-colors';
|
|
13
|
+
export { ThemeProvider, useTheme } from './core/client-provider';
|
|
14
|
+
export { useColorTokens, useColorToken, useColorVar } from './hooks/useColorTokens';
|
|
15
|
+
export { generateThemeCSS, applyTheme, setThemeAttribute } from './utils/generator';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAChB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGpF,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advisors-plus.d.ts","sourceRoot":"","sources":["../../../src/themes/presets/advisors-plus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,eAAO,MAAM,iBAAiB,EAAE,WAyD/B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advisors Plus color system
|
|
3
|
+
* Carnation (primary), Medium Purple (secondary), and Royal Blue (tertiary) color scheme
|
|
4
|
+
*/
|
|
5
|
+
import { ColorSystem } from '../../core/color-system';
|
|
6
|
+
export declare const advisorsPlusColorSystem: ColorSystem;
|
|
7
|
+
//# sourceMappingURL=advisors-plus-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advisors-plus-colors.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/color-systems/advisors-plus-colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,uBAAuB,EAAE,WAqTrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default color system implementation
|
|
3
|
+
* Demonstrates the three-tier color abstraction with new naming convention
|
|
4
|
+
*/
|
|
5
|
+
import { ColorSystem } from '../../core/color-system';
|
|
6
|
+
export declare const defaultColorSystem: ColorSystem;
|
|
7
|
+
//# sourceMappingURL=default-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-colors.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/color-systems/default-colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,EAAE,WA+PhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primax-colors.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/color-systems/primax-colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,iBAAiB,EAAE,WA0Z/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/presets/default.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,YAAY,EAAE,WA61B1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primax.d.ts","sourceRoot":"","sources":["../../../src/themes/presets/primax.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,eAAO,MAAM,WAAW,EAAE,WAupCzB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme CSS generation utilities
|
|
3
|
+
* Converts theme configurations to CSS custom properties and applies them
|
|
4
|
+
* Updated to support three-tier naming convention
|
|
5
|
+
*/
|
|
6
|
+
import { ThemeConfig } from '../core/types';
|
|
7
|
+
/**
|
|
8
|
+
* Generates CSS custom properties from theme configuration
|
|
9
|
+
* Uses the integrated three-tier system
|
|
10
|
+
*/
|
|
11
|
+
export declare function generateThemeCSS(theme: ThemeConfig, selector?: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Applies theme to document by injecting CSS
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyTheme(theme: ThemeConfig, themeName?: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Sets theme attribute on document element
|
|
18
|
+
*/
|
|
19
|
+
export declare function setThemeAttribute(themeName: string): void;
|
|
20
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/themes/utils/generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAuD,MAAM,eAAe,CAAC;AAqHjG;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,GAAE,MAAgB,GAAG,MAAM,CAgEvF;AA0MD;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAevE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEzD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme utility helper functions
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Converts camelCase to kebab-case:
|
|
6
|
+
* - textPrimary -> text-primary
|
|
7
|
+
* - blue500 -> blue-500
|
|
8
|
+
* - brandPrimary -> brand-primary
|
|
9
|
+
* - h1 -> h1
|
|
10
|
+
* - h2 -> h2
|
|
11
|
+
* - bodyLarge -> body-large
|
|
12
|
+
*/
|
|
13
|
+
export declare function toKebabCase(str: string): string;
|
|
14
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/themes/utils/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAS/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tenara-ui-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "A React component library with built-in theming system for multi-tenant applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"storybook": "storybook dev -p 6006",
|
|
44
44
|
"build-storybook": "storybook build",
|
|
45
|
-
"build": "rollup -c",
|
|
45
|
+
"build": "rollup -c && tsc --project tsconfig.lib.json",
|
|
46
46
|
"prepublishOnly": "npm run build",
|
|
47
47
|
"chromatic": "npx chromatic",
|
|
48
48
|
"lint": "eslint .",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
78
78
|
"@rollup/plugin-terser": "^0.4.4",
|
|
79
|
-
"@rollup/plugin-typescript": "^12.1.4",
|
|
80
79
|
"@rollup/plugin-url": "8.0.2",
|
|
81
80
|
"@storybook/addon-a11y": "10.2.1",
|
|
82
81
|
"@storybook/addon-docs": "10.2.1",
|
|
@@ -96,7 +95,8 @@
|
|
|
96
95
|
"prettier": "3.8.3",
|
|
97
96
|
"react": "19.1.0",
|
|
98
97
|
"react-dom": "19.1.0",
|
|
99
|
-
"rollup": "
|
|
98
|
+
"rollup": "4.60.3",
|
|
99
|
+
"rollup-plugin-esbuild": "6.2.1",
|
|
100
100
|
"rollup-plugin-postcss": "^4.0.2",
|
|
101
101
|
"sass": "^1.93.1",
|
|
102
102
|
"storybook": "10.2.1",
|