tenara-ui-components 0.2.9 → 0.3.0

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.
Files changed (191) hide show
  1. package/README.md +48 -18
  2. package/dist/components/atoms/Breadcrumb/Breadcrumb.d.ts +14 -0
  3. package/dist/components/atoms/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  4. package/dist/components/atoms/Breadcrumb/index.d.ts +3 -0
  5. package/dist/components/atoms/Breadcrumb/index.d.ts.map +1 -0
  6. package/dist/components/atoms/BulletList/BulletList.d.ts +22 -0
  7. package/dist/components/atoms/BulletList/BulletList.d.ts.map +1 -0
  8. package/dist/components/atoms/BulletList/index.d.ts +3 -0
  9. package/dist/components/atoms/BulletList/index.d.ts.map +1 -0
  10. package/dist/components/atoms/Button/Button.d.ts +8 -3
  11. package/dist/components/atoms/Button/Button.d.ts.map +1 -1
  12. package/dist/components/atoms/Button/buttonIcons.d.ts +5 -1
  13. package/dist/components/atoms/Button/buttonIcons.d.ts.map +1 -1
  14. package/dist/components/atoms/Button/index.d.ts +3 -0
  15. package/dist/components/atoms/Button/index.d.ts.map +1 -0
  16. package/dist/components/atoms/ButtonLink/ButtonLink.d.ts +5 -1
  17. package/dist/components/atoms/ButtonLink/ButtonLink.d.ts.map +1 -1
  18. package/dist/components/atoms/ColorTable/ColorTable.d.ts +3 -3
  19. package/dist/components/atoms/ColorTable/ColorTable.d.ts.map +1 -1
  20. package/dist/components/atoms/Container/Container.d.ts +15 -0
  21. package/dist/components/atoms/Container/Container.d.ts.map +1 -0
  22. package/dist/components/atoms/Container/index.d.ts +3 -0
  23. package/dist/components/atoms/Container/index.d.ts.map +1 -0
  24. package/dist/components/atoms/Divider/Divider.d.ts +20 -0
  25. package/dist/components/atoms/Divider/Divider.d.ts.map +1 -0
  26. package/dist/components/atoms/Divider/index.d.ts +3 -0
  27. package/dist/components/atoms/Divider/index.d.ts.map +1 -0
  28. package/dist/components/atoms/Grid/Grid.d.ts +41 -18
  29. package/dist/components/atoms/Grid/Grid.d.ts.map +1 -1
  30. package/dist/components/atoms/Heading/Heading.d.ts +8 -0
  31. package/dist/components/atoms/Heading/Heading.d.ts.map +1 -1
  32. package/dist/components/atoms/Icon/Icon.d.ts +42 -0
  33. package/dist/components/atoms/Icon/Icon.d.ts.map +1 -0
  34. package/dist/components/atoms/Icon/index.d.ts +3 -0
  35. package/dist/components/atoms/Icon/index.d.ts.map +1 -0
  36. package/dist/components/atoms/Media/Media.d.ts +63 -0
  37. package/dist/components/atoms/Media/Media.d.ts.map +1 -0
  38. package/dist/components/atoms/Media/index.d.ts +3 -0
  39. package/dist/components/atoms/Media/index.d.ts.map +1 -0
  40. package/dist/components/atoms/Modal/Modal.d.ts +24 -0
  41. package/dist/components/atoms/Modal/Modal.d.ts.map +1 -0
  42. package/dist/components/atoms/Modal/index.d.ts +3 -0
  43. package/dist/components/atoms/Modal/index.d.ts.map +1 -0
  44. package/dist/components/atoms/Paragraph/Paragraph.d.ts +41 -0
  45. package/dist/components/atoms/Paragraph/Paragraph.d.ts.map +1 -0
  46. package/dist/components/atoms/Paragraph/index.d.ts +3 -0
  47. package/dist/components/atoms/Paragraph/index.d.ts.map +1 -0
  48. package/dist/components/atoms/PlayButton/PlayButton.d.ts +26 -0
  49. package/dist/components/atoms/PlayButton/PlayButton.d.ts.map +1 -0
  50. package/dist/components/atoms/PlayButton/index.d.ts +3 -0
  51. package/dist/components/atoms/PlayButton/index.d.ts.map +1 -0
  52. package/dist/components/atoms/RichText/RichText.d.ts +21 -0
  53. package/dist/components/atoms/RichText/RichText.d.ts.map +1 -0
  54. package/dist/components/atoms/RichText/index.d.ts +3 -0
  55. package/dist/components/atoms/RichText/index.d.ts.map +1 -0
  56. package/dist/components/atoms/TestTierVariables/TestTierVariables.d.ts +11 -0
  57. package/dist/components/atoms/TestTierVariables/TestTierVariables.d.ts.map +1 -0
  58. package/dist/components/atoms/TestTierVariables/index.d.ts +3 -0
  59. package/dist/components/atoms/TestTierVariables/index.d.ts.map +1 -0
  60. package/dist/components/atoms/TextInput/TextInput.d.ts +44 -0
  61. package/dist/components/atoms/TextInput/TextInput.d.ts.map +1 -0
  62. package/dist/components/atoms/TextInput/index.d.ts +3 -0
  63. package/dist/components/atoms/TextInput/index.d.ts.map +1 -0
  64. package/dist/components/atoms/TextLink/TextLink.d.ts +1 -0
  65. package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -1
  66. package/dist/components/atoms/TextLink/index.d.ts +3 -0
  67. package/dist/components/atoms/TextLink/index.d.ts.map +1 -0
  68. package/dist/components/index.d.ts +36 -0
  69. package/dist/components/index.d.ts.map +1 -1
  70. package/dist/components/molecules/Card/Card.d.ts +2 -0
  71. package/dist/components/molecules/Card/Card.d.ts.map +1 -1
  72. package/dist/components/molecules/Card/index.d.ts +3 -0
  73. package/dist/components/molecules/Card/index.d.ts.map +1 -0
  74. package/dist/components/molecules/Header/Header.d.ts +1 -0
  75. package/dist/components/molecules/Header/Header.d.ts.map +1 -1
  76. package/dist/components/molecules/Header/index.d.ts +3 -0
  77. package/dist/components/molecules/Header/index.d.ts.map +1 -0
  78. package/dist/components/molecules/Modal/Modal.d.ts +24 -0
  79. package/dist/components/molecules/Modal/Modal.d.ts.map +1 -0
  80. package/dist/components/molecules/Modal/index.d.ts +3 -0
  81. package/dist/components/molecules/Modal/index.d.ts.map +1 -0
  82. package/dist/components/molecules/VideoPlayer/VideoPlayer.d.ts +29 -0
  83. package/dist/components/molecules/VideoPlayer/VideoPlayer.d.ts.map +1 -0
  84. package/dist/components/molecules/VideoPlayer/index.d.ts +3 -0
  85. package/dist/components/molecules/VideoPlayer/index.d.ts.map +1 -0
  86. package/dist/components/molecules/primax/Banner/Banner.d.ts +42 -0
  87. package/dist/components/molecules/primax/Banner/Banner.d.ts.map +1 -0
  88. package/dist/components/molecules/primax/Banner/index.d.ts +3 -0
  89. package/dist/components/molecules/primax/Banner/index.d.ts.map +1 -0
  90. package/dist/components/molecules/primax/CTA/CTA.d.ts +28 -0
  91. package/dist/components/molecules/primax/CTA/CTA.d.ts.map +1 -0
  92. package/dist/components/molecules/primax/CTA/index.d.ts +3 -0
  93. package/dist/components/molecules/primax/CTA/index.d.ts.map +1 -0
  94. package/dist/components/molecules/primax/Card/Card.d.ts +46 -0
  95. package/dist/components/molecules/primax/Card/Card.d.ts.map +1 -0
  96. package/dist/components/molecules/primax/Card/index.d.ts +3 -0
  97. package/dist/components/molecules/primax/Card/index.d.ts.map +1 -0
  98. package/dist/components/molecules/primax/HalfColumn/HalfColumn.d.ts +60 -0
  99. package/dist/components/molecules/primax/HalfColumn/HalfColumn.d.ts.map +1 -0
  100. package/dist/components/molecules/primax/HalfColumn/index.d.ts +3 -0
  101. package/dist/components/molecules/primax/HalfColumn/index.d.ts.map +1 -0
  102. package/dist/components/molecules/primax/MediaBlock/MediaBlock.d.ts +45 -0
  103. package/dist/components/molecules/primax/MediaBlock/MediaBlock.d.ts.map +1 -0
  104. package/dist/components/molecules/primax/MediaBlock/index.d.ts +3 -0
  105. package/dist/components/molecules/primax/MediaBlock/index.d.ts.map +1 -0
  106. package/dist/components/molecules/primax/MediaPresentation/MediaPresentation.d.ts +8 -0
  107. package/dist/components/molecules/primax/MediaPresentation/MediaPresentation.d.ts.map +1 -0
  108. package/dist/components/molecules/primax/MediaPresentation/index.d.ts +2 -0
  109. package/dist/components/molecules/primax/MediaPresentation/index.d.ts.map +1 -0
  110. package/dist/components/molecules/primax/PlayIcon/PlayIcon.d.ts +11 -0
  111. package/dist/components/molecules/primax/PlayIcon/PlayIcon.d.ts.map +1 -0
  112. package/dist/components/molecules/primax/PlayIcon/index.d.ts +2 -0
  113. package/dist/components/molecules/primax/PlayIcon/index.d.ts.map +1 -0
  114. package/dist/components/molecules/primax/Subscribe/Subscribe.d.ts +42 -0
  115. package/dist/components/molecules/primax/Subscribe/Subscribe.d.ts.map +1 -0
  116. package/dist/components/molecules/primax/Subscribe/index.d.ts +3 -0
  117. package/dist/components/molecules/primax/Subscribe/index.d.ts.map +1 -0
  118. package/dist/components/molecules/primax/TwoColumn/TwoColumn.d.ts +37 -0
  119. package/dist/components/molecules/primax/TwoColumn/TwoColumn.d.ts.map +1 -0
  120. package/dist/components/molecules/primax/TwoColumn/index.d.ts +3 -0
  121. package/dist/components/molecules/primax/TwoColumn/index.d.ts.map +1 -0
  122. package/dist/components/molecules/primax/VideoSection/VideoSection.d.ts +31 -0
  123. package/dist/components/molecules/primax/VideoSection/VideoSection.d.ts.map +1 -0
  124. package/dist/components/molecules/primax/VideoSection/index.d.ts +3 -0
  125. package/dist/components/molecules/primax/VideoSection/index.d.ts.map +1 -0
  126. package/dist/components/pages/Page.d.ts +1 -0
  127. package/dist/components/pages/Page.d.ts.map +1 -1
  128. package/dist/components/pages/index.d.ts +2 -0
  129. package/dist/components/pages/index.d.ts.map +1 -0
  130. package/dist/components/utilities/ThemeInitializer.d.ts +2 -0
  131. package/dist/components/utilities/ThemeInitializer.d.ts.map +1 -0
  132. package/dist/components/utilities/index.d.ts +2 -0
  133. package/dist/components/utilities/index.d.ts.map +1 -0
  134. package/dist/index.css +1 -1
  135. package/dist/index.esm.css +1 -1
  136. package/dist/index.esm.js +1 -1
  137. package/dist/index.esm.js.map +1 -1
  138. package/dist/index.js +1 -1
  139. package/dist/index.js.map +1 -1
  140. package/dist/themes/core/client-provider.d.ts +2 -2
  141. package/dist/themes/core/client-provider.d.ts.map +1 -1
  142. package/dist/themes/core/color-system.d.ts +58 -57
  143. package/dist/themes/core/color-system.d.ts.map +1 -1
  144. package/dist/themes/core/design-system-types.d.ts +42 -0
  145. package/dist/themes/core/design-system-types.d.ts.map +1 -0
  146. package/dist/themes/core/dynamic-types.d.ts +80 -0
  147. package/dist/themes/core/dynamic-types.d.ts.map +1 -0
  148. package/dist/themes/core/new-color-system.d.ts +17 -0
  149. package/dist/themes/core/new-color-system.d.ts.map +1 -0
  150. package/dist/themes/core/new-typography-system.d.ts +17 -0
  151. package/dist/themes/core/new-typography-system.d.ts.map +1 -0
  152. package/dist/themes/core/style-variable-schema.d.ts +107 -0
  153. package/dist/themes/core/style-variable-schema.d.ts.map +1 -0
  154. package/dist/themes/core/types.d.ts +74 -38
  155. package/dist/themes/core/types.d.ts.map +1 -1
  156. package/dist/themes/index.d.ts +1 -1
  157. package/dist/themes/index.d.ts.map +1 -1
  158. package/dist/themes/presets/advisors-plus.d.ts.map +1 -1
  159. package/dist/themes/presets/builders/color-builder.d.ts +109 -0
  160. package/dist/themes/presets/builders/color-builder.d.ts.map +1 -0
  161. package/dist/themes/presets/builders/component-builder.d.ts +154 -0
  162. package/dist/themes/presets/builders/component-builder.d.ts.map +1 -0
  163. package/dist/themes/presets/builders/index.d.ts +13 -0
  164. package/dist/themes/presets/builders/index.d.ts.map +1 -0
  165. package/dist/themes/presets/builders/typography-builder.d.ts +149 -0
  166. package/dist/themes/presets/builders/typography-builder.d.ts.map +1 -0
  167. package/dist/themes/presets/color-systems/advisors-plus-colors.d.ts.map +1 -1
  168. package/dist/themes/presets/color-systems/default-colors.d.ts +1 -1
  169. package/dist/themes/presets/color-systems/default-colors.d.ts.map +1 -1
  170. package/dist/themes/presets/color-systems/primax-colors.d.ts.map +1 -1
  171. package/dist/themes/presets/default.d.ts.map +1 -1
  172. package/dist/themes/presets/dynamic-advisors-plus.d.ts +40 -0
  173. package/dist/themes/presets/dynamic-advisors-plus.d.ts.map +1 -0
  174. package/dist/themes/presets/dynamic-default.d.ts +41 -0
  175. package/dist/themes/presets/dynamic-default.d.ts.map +1 -0
  176. package/dist/themes/presets/dynamic-primax.d.ts +38 -0
  177. package/dist/themes/presets/dynamic-primax.d.ts.map +1 -0
  178. package/dist/themes/presets/new-default.d.ts +7 -0
  179. package/dist/themes/presets/new-default.d.ts.map +1 -0
  180. package/dist/themes/presets/primax.d.ts.map +1 -1
  181. package/dist/themes/theme-loader.d.ts +15 -0
  182. package/dist/themes/theme-loader.d.ts.map +1 -0
  183. package/dist/themes/utils/generator.d.ts +2 -1
  184. package/dist/themes/utils/generator.d.ts.map +1 -1
  185. package/dist/themes/utils/helpers.d.ts +4 -2
  186. package/dist/themes/utils/helpers.d.ts.map +1 -1
  187. package/dist/themes/utils/migration.d.ts +94 -0
  188. package/dist/themes/utils/migration.d.ts.map +1 -0
  189. package/dist/themes/utils/new-generator.d.ts +27 -0
  190. package/dist/themes/utils/new-generator.d.ts.map +1 -0
  191. package/package.json +33 -38
@@ -0,0 +1,42 @@
1
+ type ColorCategory = 'color' | 'typography';
2
+ type ColorName = 'coral' | 'purple' | 'blue' | 'neutral' | 'alert' | 'warning' | 'success';
3
+ type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
4
+ type ColorTier1 = `${ColorCategory}-${ColorName}-${ColorShade}`;
5
+ type Tier = 'tier1' | 'tier2' | 'tier3';
6
+ type BackgroundColor = 'white' | 'grey' | 'idigo' | 'cobalt' | 'theme';
7
+ type ColorPropertySurface = 'background' | 'content' | 'border' | 'color' | 'interactive';
8
+ type Intention = 'default' | 'disabled' | 'utility' | 'dataviz' | 'accent' | 'transparent' | 'brand' | 'state' | 'interactive' | 'link';
9
+ type ColorVariant = 'strong' | 'error' | 'success' | 'warning' | 'info' | 'knockout' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'accent' | 'inverse' | 'link' | 'default';
10
+ type State = 'default' | 'focus' | 'hover' | 'active' | 'pressed' | 'disabled' | 'background';
11
+ type ColorTier2 = `${Tier}-${BackgroundColor}-color-${ColorPropertySurface}-${Intention}-${ColorVariant}-${State}`;
12
+ type Component = 'link' | 'table' | 'header' | 'form' | 'focus-ring' | 'button';
13
+ type ComponentVariant = 'secondary' | 'tertiary' | 'link' | 'knockout' | 'primary' | 'general' | 'cta' | 'outline' | 'ghost' | 'twitter' | 'linkedin' | 'facebook';
14
+ type ComponentProperty = 'text' | 'icon' | 'border' | 'content';
15
+ type ColorTier3 = `${Tier}-${BackgroundColor}-${Component}-${ComponentVariant}-${ComponentProperty}-${State}`;
16
+ type TypographyProperty = 'font-family' | 'font-weight' | 'font-style' | 'line-height' | 'text-transform' | 'letter-spacing' | 'font-size';
17
+ type TypographyValue = '1' | '1.25' | '1.5' | '2' | '2.5' | '3';
18
+ type TypographyTier1 = `typography-${TypographyProperty}-${TypographyValue}`;
19
+ type TypographyIntention = 'title' | 'subtitle' | 'body' | 'label' | 'meta' | 'data' | 'headline' | 'heading';
20
+ type TypographyDesignVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'b1' | 'b2' | 'b3';
21
+ type Breakpoint = 'desktop' | 'tablet' | 'mobile';
22
+ type TypographyTier2 = `${Tier}-${BackgroundColor}-typography-${TypographyIntention}-${TypographyDesignVariant}-${Breakpoint}-${TypographyProperty}`;
23
+ type TypographyTier3 = `${Tier}-${BackgroundColor}-${Component}-${ComponentVariant}-${TypographyProperty}`;
24
+ export type DesignToken = ColorTier1 | ColorTier2 | ColorTier3 | TypographyTier1 | TypographyTier2 | TypographyTier3;
25
+ export interface ColorToken {
26
+ tier: Tier;
27
+ category: 'color';
28
+ value: string;
29
+ }
30
+ export interface TypographyToken {
31
+ tier: Tier;
32
+ category: 'typography';
33
+ value: string | number;
34
+ }
35
+ export interface Theme {
36
+ colors: Record<string, ColorToken>;
37
+ typography: Record<string, TypographyToken>;
38
+ }
39
+ export type ColorTokenKey = ColorTier1 | ColorTier2 | ColorTier3;
40
+ export type TypographyTokenKey = TypographyTier1 | TypographyTier2 | TypographyTier3;
41
+ export type { Tier, ColorCategory, ColorName, ColorShade, BackgroundColor, ColorPropertySurface, Intention, ColorVariant, State, ColorTier1, ColorTier2, ColorTier3, TypographyProperty, TypographyValue, TypographyIntention, TypographyDesignVariant, Breakpoint, TypographyTier1, TypographyTier2, TypographyTier3, Component, ComponentVariant, ComponentProperty };
42
+ //# sourceMappingURL=design-system-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-system-types.d.ts","sourceRoot":"","sources":["../../../src/themes/core/design-system-types.ts"],"names":[],"mappings":"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CAAC;AAM3G,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,UAAU,GACV,UAAU,GACV,eAAe,GACf,eAAe,GACf,eAAe,CAAC;AAMpB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC7C;AAMD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AACjE,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,eAAe,GAAG,eAAe,CAAC;AAMrF,YAAY,EAEV,IAAI,EACJ,aAAa,EAGb,SAAS,EACT,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,UAAU,EACV,UAAU,EACV,UAAU,EAGV,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,EACV,eAAe,EACf,eAAe,EACf,eAAe,EAGf,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EAClB,CAAC"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Dynamic Token Interfaces for Theme System
3
+ *
4
+ * This module defines dynamic interfaces that use mapped types to generate
5
+ * all possible token combinations from the design system types. These interfaces
6
+ * extend the existing theme system while maintaining full backward compatibility.
7
+ */
8
+ import type { Tier, ColorPropertySurface, Intention, ColorVariant, State, TypographyIntention, TypographyDesignVariant, Breakpoint, TypographyProperty, Component, ComponentVariant, ComponentProperty, ColorTokenKey, TypographyTokenKey } from './design-system-types';
9
+ import type { ThemeConfig } from './types';
10
+ /**
11
+ * Dynamic color token interface that maps all possible color token combinations
12
+ * to string values. Uses mapped types to generate tokens from design system types.
13
+ *
14
+ * Supports tokens in the format:
15
+ * - tier1-theme-color-{surface}-{intention}-{variant}-{state}
16
+ * - tier3-theme-{component}-{variant}-{property}-{state}
17
+ */
18
+ export type DynamicColorTokens = {
19
+ [K in ColorTokenKey]?: string;
20
+ };
21
+ /**
22
+ * Dynamic typography token interface that maps all possible typography token
23
+ * combinations to string or number values. Uses mapped types for type safety.
24
+ *
25
+ * Supports tokens in the format:
26
+ * - tier1-theme-typography-{intention}-{variant}-{breakpoint}-{property}
27
+ * - tier3-theme-{component}-{variant}-{property}
28
+ */
29
+ export type DynamicTypographyTokens = {
30
+ [K in TypographyTokenKey]?: string | number;
31
+ };
32
+ /**
33
+ * Dynamic component token interface that supports flexible component-specific
34
+ * token definitions. Extends the existing ThemeComponents interface while
35
+ * allowing arbitrary component names and property combinations.
36
+ */
37
+ export interface DynamicComponentTokens {
38
+ [component: string]: {
39
+ [property: string]: string | number;
40
+ };
41
+ }
42
+ /**
43
+ * Helper type for color token parameters
44
+ */
45
+ export interface ColorTokenParams {
46
+ tier: Tier;
47
+ surface: ColorPropertySurface;
48
+ intention: Intention;
49
+ variant: ColorVariant;
50
+ state?: State;
51
+ }
52
+ /**
53
+ * Helper type for typography token parameters
54
+ */
55
+ export interface TypographyTokenParams {
56
+ tier: Tier;
57
+ intention: TypographyIntention;
58
+ variant: TypographyDesignVariant;
59
+ breakpoint: Breakpoint;
60
+ property: TypographyProperty;
61
+ }
62
+ /**
63
+ * Helper type for component token parameters
64
+ */
65
+ export interface ComponentTokenParams {
66
+ tier: Tier;
67
+ component: Component;
68
+ variant: ComponentVariant;
69
+ property: ComponentProperty;
70
+ state?: State;
71
+ }
72
+ /**
73
+ * Type guard to check if a theme config is a dynamic theme config
74
+ */
75
+ export declare function isDynamicThemeConfig(config: any): config is import('./types').DynamicThemeConfig;
76
+ /**
77
+ * Type guard to check if a theme config is a legacy theme config
78
+ */
79
+ export declare function isLegacyThemeConfig(config: any): config is ThemeConfig;
80
+ //# sourceMappingURL=dynamic-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-types.d.ts","sourceRoot":"","sources":["../../../src/themes/core/dynamic-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,IAAI,EACJ,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,SAAS,CAAC;AAUjB;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG;KAE9B,CAAC,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM;CAC9B,CAAC;AAMF;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG;KAEnC,CAAC,IAAI,kBAAkB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;CAC5C,CAAC;AAMF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IAErC,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;KACrC,CAAC;CACH;AAaD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,oBAAoB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,mBAAmB,CAAC;IAC/B,O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