tenara-ui-components 0.2.10 → 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 +32 -37
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-typography-system.d.ts","sourceRoot":"","sources":["../../../src/themes/core/new-typography-system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EAChB,MAAM,+BAA+B,CAAC;AAMvC,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAsDxE,CAAC;AAMF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CA+FjF,CAAC;AAMF,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CA2BjF,CAAC;AAMF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC"}
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Component Library Style Variable Schema
3
+ *
4
+ * This schema defines the structure for style variables used across the design system.
5
+ * It supports three-tier naming conventions for colors and typography.
6
+ */
7
+ type Tier = 'tier1' | 'tier2' | 'tier3';
8
+ type BackgroundColor = 'theme' | 'white' | 'grey' | 'idigo' | 'cobalt';
9
+ type ColorCategory = 'color';
10
+ type ColorName = 'coral' | 'purple' | 'blue' | 'neutral' | 'alert' | 'warning' | 'success';
11
+ type ColorShade = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
12
+ type ColorProperty = 'background' | 'content' | 'border';
13
+ type ColorIntention = 'default' | 'disabled' | 'utility' | 'focus' | 'dataviz' | 'accent' | 'transparent' | 'title' | 'subtitle' | 'body' | 'label' | 'meta' | 'data' | 'text' | 'icon';
14
+ type ColorVariant = 'default' | 'subtle' | 'strong' | 'error' | 'success' | 'warning' | 'info' | 'knockout' | 'primary' | 'secondary' | 'tertiary' | 'link';
15
+ type ColorState = 'default' | 'hover' | 'active' | 'focus' | 'pressed' | 'disabled';
16
+ type Component = 'link' | 'table' | 'header' | 'form' | 'button' | 'focus_ring';
17
+ type ComponentVariant = 'primary' | 'secondary' | 'tertiary' | 'link' | 'knockout';
18
+ type TypographyCategory = 'typography';
19
+ type TypographyProperty = 'font_family' | 'font_weight' | 'font_style' | 'font_size' | 'line_height' | 'letter_spacing' | 'text_transform';
20
+ type TypographyIntention = 'headline' | 'title' | 'subtitle' | 'body' | 'label' | 'meta' | 'data';
21
+ type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'b1' | 'b2' | 'b3';
22
+ type Breakpoint = 'desktop' | 'tablet' | 'mobile';
23
+ /**
24
+ * Tier 1 Naming: Simple property values
25
+ * Format: {category}-{color|property}-{shade|value}
26
+ * Example: color-blue-100, typography-font_size-1
27
+ */
28
+ type Tier1ColorName = `${ColorCategory}-${ColorName}-${ColorShade}`;
29
+ type Tier1TypographyName = `${TypographyCategory}-${TypographyProperty}-${string}`;
30
+ /**
31
+ * Tier 2 Naming: Theme-level semantic tokens
32
+ *
33
+ * Color Format: tier1-{bg_color}-{category}-{property}-{intention}-{variant}-{state}
34
+ * Example: tier1-theme-color-content-default-subtle-hover
35
+ *
36
+ * Typography Format: tier1-{bg_color}-{category}-{intention}-{variant}-{breakpoint}-{property}
37
+ * Example: tier1-theme-typography-headline-h1-mobile-font_family
38
+ */
39
+ type Tier2ColorName = `${Extract<Tier, 'tier1'>}-${BackgroundColor}-${ColorCategory}-${ColorProperty}-${ColorIntention}-${ColorVariant}-${ColorState}`;
40
+ type Tier2TypographyName = `${Extract<Tier, 'tier1'>}-${BackgroundColor}-${TypographyCategory}-${TypographyIntention}-${TypographyVariant}-${Breakpoint}-${TypographyProperty}`;
41
+ /**
42
+ * Tier 3 Naming: Component-specific tokens
43
+ *
44
+ * Color Format: tier3-{bg_color}-{component}-{variant}-{property}-{state}
45
+ * Example: tier3-theme-button-primary-content-state
46
+ *
47
+ * Typography Format: tier2-{bg_color}-{component}-{variant}-{property}
48
+ * Example: tier2-theme-button-primary-font_family
49
+ */
50
+ type Tier3ColorName = `tier3-${BackgroundColor}-${Component}-${ComponentVariant}-${ColorProperty}-${ColorState}`;
51
+ type Tier3TypographyName = `tier2-${BackgroundColor}-${Component}-${ComponentVariant}-${TypographyProperty}`;
52
+ type ColorVariable = Tier1ColorName | Tier2ColorName | Tier3ColorName;
53
+ type TypographyVariable = Tier1TypographyName | Tier2TypographyName | Tier3TypographyName;
54
+ type StyleVariable = ColorVariable | TypographyVariable;
55
+ interface ColorValue {
56
+ value: string;
57
+ type: 'color';
58
+ }
59
+ interface TypographyValue {
60
+ value: string | number;
61
+ type: 'typography';
62
+ unit?: 'px' | 'rem' | 'em' | '%' | 'none';
63
+ }
64
+ interface StyleToken<T extends StyleVariable = StyleVariable> {
65
+ name: T;
66
+ value: T extends ColorVariable ? ColorValue : TypographyValue;
67
+ description?: string;
68
+ deprecated?: boolean;
69
+ }
70
+ interface DesignTokens {
71
+ colors: {
72
+ tier1: Partial<Record<Tier1ColorName, ColorValue>>;
73
+ tier2: Partial<Record<Tier2ColorName, ColorValue>>;
74
+ tier3: Partial<Record<Tier3ColorName, ColorValue>>;
75
+ };
76
+ typography: {
77
+ tier1: Partial<Record<Tier1TypographyName, TypographyValue>>;
78
+ tier2: Partial<Record<Tier2TypographyName, TypographyValue>>;
79
+ tier3: Partial<Record<Tier3TypographyName, TypographyValue>>;
80
+ };
81
+ }
82
+ /**
83
+ * Parses a style variable name into its constituent parts
84
+ */
85
+ declare function parseStyleVariable(variable: string): {
86
+ tier?: Tier;
87
+ backgroundColo?: BackgroundColor;
88
+ category: string;
89
+ property?: string;
90
+ intention?: string;
91
+ variant?: string;
92
+ state?: string;
93
+ breakpoint?: string;
94
+ value?: string;
95
+ };
96
+ /**
97
+ * Type guard to check if a variable is a color variable
98
+ */
99
+ declare function isColorVariable(variable: StyleVariable): variable is ColorVariable;
100
+ /**
101
+ * Type guard to check if a variable is a typography variable
102
+ */
103
+ declare function isTypographyVariable(variable: StyleVariable): variable is TypographyVariable;
104
+ declare const exampleTokens: Partial<DesignTokens>;
105
+ export type { Tier, BackgroundColor, ColorCategory, ColorName, ColorShade, ColorProperty, ColorIntention, ColorVariant, ColorState, Component, ComponentVariant, TypographyCategory, TypographyProperty, TypographyIntention, TypographyVariant, Breakpoint, Tier1ColorName, Tier1TypographyName, Tier2ColorName, Tier2TypographyName, Tier3ColorName, Tier3TypographyName, ColorVariable, TypographyVariable, StyleVariable, ColorValue, TypographyValue, StyleToken, DesignTokens, };
106
+ export { parseStyleVariable, isColorVariable, isTypographyVariable, exampleTokens, };
107
+ //# sourceMappingURL=style-variable-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-variable-schema.d.ts","sourceRoot":"","sources":["../../../src/themes/core/style-variable-schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAExC,KAAK,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAMvE,KAAK,aAAa,GAAG,OAAO,CAAC;AAE7B,KAAK,SAAS,GACV,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd,KAAK,UAAU,GACX,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,KAAK,aAAa,GACd,YAAY,GACZ,SAAS,GACT,QAAQ,CAAC;AAEb,KAAK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UAAU,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EAGV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,aAAa,EAGb,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,GACb,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,aAAa,GACd,CAAC"}
@@ -1,14 +1,16 @@
1
1
  /**
2
2
  * Core TypeScript interfaces for theme configuration schema
3
3
  * Defines the structure and types for all theme properties
4
+ * Updated for three-tier naming convention
4
5
  */
5
6
  import { ColorPrimitives, SemanticColorTokens } from './color-system';
6
7
  /**
7
- * Two-level color system integrated into theme
8
- * Level 1: Primitives (raw colors - the palette)
9
- * Level 2: Semantic tokens (purpose-based colors)
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
10
12
  *
11
- * Components use semantic tokens directly in their CSS
13
+ * Components use semantic and component tokens directly in their CSS
12
14
  */
13
15
  export interface ThemeColors {
14
16
  primitives: ColorPrimitives;
@@ -58,50 +60,37 @@ export interface TypographyVariant extends TypographyVariantDefault {
58
60
  export interface ThemeTypography {
59
61
  fontFamily: string;
60
62
  fontFamilyHeading: string;
63
+ fontFamilyMono?: string;
61
64
  fontSizeXs: string;
62
65
  fontSizeSm: string;
63
66
  fontSizeMd: string;
64
67
  fontSizeLg: string;
65
68
  fontSizeXl: string;
66
- fontWeightNormal: string;
67
- fontWeightMedium: string;
69
+ fontSize2xl?: string;
70
+ fontWeightLight?: string;
71
+ fontWeightRegular: string;
72
+ fontWeightSemibold?: string;
68
73
  fontWeightBold: string;
74
+ fontWeightBlack?: string;
69
75
  lineHeightTight: string;
76
+ lineHeightSnug?: string;
70
77
  lineHeightNormal: string;
71
78
  lineHeightRelaxed: string;
79
+ lineHeightLoose?: string;
80
+ letterSpacingTighter?: string;
81
+ letterSpacingTight?: string;
82
+ letterSpacingNormal?: string;
83
+ letterSpacingWide?: string;
84
+ letterSpacingWider?: string;
85
+ letterSpacingWidest?: string;
72
86
  variants?: Record<string, TypographyVariant>;
73
87
  }
74
- export interface ButtonVariant {
75
- background: string;
76
- backgroundHover?: string;
77
- backgroundActive?: string;
78
- color: string;
79
- colorHover?: string;
80
- colorActive?: string;
81
- border?: string;
82
- borderHover?: string;
83
- borderActive?: string;
84
- focusOutline?: string;
85
- shadow?: string;
86
- }
87
- export interface ThemeButtons {
88
- borderRadius: string;
89
- padding: string;
90
- fontSize: string;
91
- fontWeight: string;
92
- lineHeight: string;
93
- general: ButtonVariant;
94
- cta: ButtonVariant;
95
- secondary: ButtonVariant;
96
- outline: ButtonVariant;
97
- ghost: ButtonVariant;
98
- video?: ButtonVariant;
99
- subscribe?: ButtonVariant;
100
- twitter?: ButtonVariant;
101
- linkedIn?: ButtonVariant;
102
- facebook?: ButtonVariant;
103
- secondaryDarkMode?: ButtonVariant;
104
- }
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;
105
94
  export interface ThemeComponents {
106
95
  card: {
107
96
  background: string;
@@ -135,6 +124,53 @@ export interface ColorPalette {
135
124
  bg: string;
136
125
  text: string;
137
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
+ }
138
174
  export interface ThemeConfig {
139
175
  name: string;
140
176
  fontImportUrl?: string | string[];
@@ -145,8 +181,8 @@ export interface ThemeConfig {
145
181
  shadows: ThemeShadows;
146
182
  breakpoints: ThemeBreakpoints;
147
183
  typography: ThemeTypography;
148
- buttons: ThemeButtons;
149
184
  components: ThemeComponents;
185
+ componentTokens?: ComponentTokens;
150
186
  }
151
187
  export type ThemeVariant = 'default' | 'advisors-plus' | 'primax' | string;
152
188
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/themes/core/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEtE;;;;;;GAMG;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,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,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,wBAAwB;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UA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AM,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"}
@@ -2,7 +2,7 @@
2
2
  * Main theme system exports
3
3
  * Central entry point for all theming functionality
4
4
  */
5
- export type { ThemeConfig, ThemeColors, ThemeSpacing, ThemeBorderRadius, ThemeShadows, ThemeBreakpoints, ThemeTypography, ThemeButtons, ThemeComponents, ThemeVariant, ButtonVariant } from './core/types';
5
+ export type { ThemeConfig, ThemeColors, ThemeSpacing, ThemeBorderRadius, ThemeShadows, ThemeBreakpoints, ThemeTypography, ThemeComponents, ThemeVariant, ButtonVariantType, ComponentTokens } from './core/types';
6
6
  export type { ColorPrimitives, SemanticColorTokens, } from './core/color-system';
7
7
  export { defaultTheme } from './presets/default';
8
8
  export { advisorsPlusTheme } from './presets/advisors-plus';
@@ -1 +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,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,aAAa,EACd,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,eAAe,EACf,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAG7B,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"}
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,EAChB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,eAAe,EACf,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAG7B,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"}
@@ -1 +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,WAgD/B,CAAC"}
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,WA4D/B,CAAC"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * ColorTokenBuilder - Fluent API for building color token configurations
3
+ *
4
+ * This class provides a builder pattern interface for creating color token
5
+ * configurations with type safety and method chaining support. It supports
6
+ * all color categories defined in the design system.
7
+ */
8
+ import type { DynamicColorTokens, ColorTokenParams } from '../../core/dynamic-types';
9
+ import type { ColorPropertySurface, Intention, ColorVariant, State, ColorTokenKey } from '../../core/design-system-types';
10
+ /**
11
+ * Builder class for creating color token configurations using a fluent API
12
+ * Supports method chaining and provides type-safe token construction
13
+ */
14
+ export declare class ColorTokenBuilder {
15
+ private tokens;
16
+ /**
17
+ * Content color tokens (text colors)
18
+ * Replaces old text-* tokens with tier1-theme-color-content-* pattern
19
+ */
20
+ content(variant: ColorVariant, state?: State): {
21
+ set: (value: string) => ColorTokenBuilder;
22
+ };
23
+ /**
24
+ * Surface color tokens (background colors)
25
+ * Replaces old bg-* tokens with tier1-theme-color-background-* pattern
26
+ */
27
+ surface(variant: ColorVariant, state?: State): {
28
+ set: (value: string) => ColorTokenBuilder;
29
+ };
30
+ /**
31
+ * Border color tokens
32
+ * Creates tier1-theme-color-border-* tokens
33
+ */
34
+ border(variant: ColorVariant, state?: State): {
35
+ set: (value: string) => ColorTokenBuilder;
36
+ };
37
+ /**
38
+ * Brand color tokens
39
+ * Creates tier1-theme-color-background-brand-* tokens for brand colors
40
+ */
41
+ brand(variant: ColorVariant, state?: State): {
42
+ set: (value: string) => ColorTokenBuilder;
43
+ };
44
+ /**
45
+ * State color tokens (error, success, warning, info)
46
+ * Creates tier1-theme-color-background-utility-* tokens for state colors
47
+ */
48
+ state(variant: ColorVariant, state?: State): {
49
+ set: (value: string) => ColorTokenBuilder;
50
+ };
51
+ /**
52
+ * Interactive color tokens (for interactive elements)
53
+ * Creates tier1-theme-color-background-default-* tokens for interactive elements
54
+ */
55
+ interactive(variant: ColorVariant, state?: State): {
56
+ set: (value: string) => ColorTokenBuilder;
57
+ };
58
+ /**
59
+ * Custom color token with full parameter control
60
+ * Allows building any color token with complete flexibility
61
+ */
62
+ custom(params: ColorTokenParams): {
63
+ set: (value: string) => ColorTokenBuilder;
64
+ };
65
+ /**
66
+ * Set multiple tokens at once from an object
67
+ * Useful for bulk token assignment
68
+ */
69
+ setTokens(tokens: Partial<DynamicColorTokens>): this;
70
+ /**
71
+ * Clear all tokens from the builder
72
+ * Useful for resetting the builder state
73
+ */
74
+ clear(): this;
75
+ /**
76
+ * Get the current token count
77
+ * Useful for validation and debugging
78
+ */
79
+ getTokenCount(): number;
80
+ /**
81
+ * Check if a specific token exists
82
+ * Useful for conditional token building
83
+ */
84
+ hasToken(key: ColorTokenKey): boolean;
85
+ /**
86
+ * Get a specific token value
87
+ * Useful for referencing existing tokens
88
+ */
89
+ getToken(key: ColorTokenKey): string | undefined;
90
+ /**
91
+ * Build and return the completed color token configuration
92
+ * Returns a partial DynamicColorTokens object with all defined tokens
93
+ */
94
+ build(): Partial<DynamicColorTokens>;
95
+ }
96
+ /**
97
+ * Factory function for creating a new ColorTokenBuilder instance
98
+ * Provides a convenient way to start building color tokens
99
+ */
100
+ export declare function createColorTokenBuilder(): ColorTokenBuilder;
101
+ /**
102
+ * Helper function for creating color tokens with validation
103
+ * Validates parameters before creating the token
104
+ */
105
+ export declare function createColorToken(surface: ColorPropertySurface, intention: Intention, variant: ColorVariant, state: State | undefined, value: string): {
106
+ key: ColorTokenKey;
107
+ value: string;
108
+ };
109
+ //# sourceMappingURL=color-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-builder.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/builders/color-builder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAEV,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,aAAa,EACd,MAAM,gCAAgC,CAAC;AAGxC;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAmC;IAEjD;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,GAAE,KAAiB,GAAG;QAAE,GAAG,EAAE,CAAC,KAAK,EAAE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,kBAAkB,CAAC;CAGrC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAE3D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,oBAAoB,EAC7B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,KAAK,YAAY,EACxB,KAAK,EAAE,MAAM,GACZ;IAAE,GAAG,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAGvC"}
@@ -0,0 +1,154 @@
1
+ /**
2
+ * ComponentTokenBuilder - Fluent API for building component-specific token configurations
3
+ *
4
+ * This class provides a builder pattern interface for creating component-specific token
5
+ * configurations with type safety and method chaining support. It supports flexible
6
+ * component names and property combinations with validation.
7
+ */
8
+ import type { DynamicComponentTokens, ComponentTokenParams } from '../../core/dynamic-types';
9
+ import type { ComponentVariant, State } from '../../core/design-system-types';
10
+ /**
11
+ * Interface for component token definition
12
+ */
13
+ export interface ComponentTokenDefinition {
14
+ component: string;
15
+ variant?: string;
16
+ property: string;
17
+ state?: State;
18
+ value: string | number;
19
+ }
20
+ /**
21
+ * Interface for component style definition
22
+ * Allows defining multiple properties for a component variant
23
+ */
24
+ export interface ComponentStyleDefinition {
25
+ [property: string]: string | number | {
26
+ [state: string]: string | number;
27
+ };
28
+ }
29
+ /**
30
+ * Builder class for creating component token configurations using a fluent API
31
+ * Supports method chaining, flexible component definitions, and validation
32
+ */
33
+ export declare class ComponentTokenBuilder {
34
+ private tokens;
35
+ /**
36
+ * Define tokens for a specific component
37
+ * Creates a scoped builder for the component
38
+ */
39
+ component(componentName: string): {
40
+ /**
41
+ * Set a property value for the component
42
+ */
43
+ property: (propertyName: string, value: string | number) => /*elided*/ any;
44
+ /**
45
+ * Set multiple properties for the component
46
+ */
47
+ properties: (properties: ComponentStyleDefinition) => /*elided*/ any;
48
+ /**
49
+ * Set a property with state variations
50
+ */
51
+ statefulProperty: (propertyName: string, states: {
52
+ [state: string]: string | number;
53
+ }) => /*elided*/ any;
54
+ };
55
+ /**
56
+ * Define tokens for a button component with variant support
57
+ * Provides specialized methods for button token creation
58
+ */
59
+ button(variant: ComponentVariant): {
60
+ /**
61
+ * Set background color with state support
62
+ */
63
+ background: (states: {
64
+ [state: string]: string;
65
+ } | string) => /*elided*/ any;
66
+ /**
67
+ * Set text color with state support
68
+ */
69
+ color: (states: {
70
+ [state: string]: string;
71
+ } | string) => /*elided*/ any;
72
+ /**
73
+ * Set border with state support
74
+ */
75
+ border: (states: {
76
+ [state: string]: string;
77
+ } | string) => /*elided*/ any;
78
+ /**
79
+ * Set multiple button properties at once
80
+ */
81
+ properties: (properties: ComponentStyleDefinition) => /*elided*/ any;
82
+ };
83
+ /**
84
+ * Define tokens using the structured component token format
85
+ * Uses the design system component token builder
86
+ */
87
+ structuredToken(params: ComponentTokenParams, value: string | number): this;
88
+ /**
89
+ * Set multiple component tokens from definitions
90
+ * Useful for bulk token assignment
91
+ */
92
+ setTokenDefinitions(definitions: ComponentTokenDefinition[]): this;
93
+ /**
94
+ * Set multiple tokens at once from an object
95
+ * Useful for bulk token assignment
96
+ */
97
+ setTokens(tokens: DynamicComponentTokens): this;
98
+ /**
99
+ * Clear all tokens from the builder
100
+ * Useful for resetting the builder state
101
+ */
102
+ clear(): this;
103
+ /**
104
+ * Remove a specific component
105
+ * Useful for selective token removal
106
+ */
107
+ removeComponent(componentName: string): this;
108
+ /**
109
+ * Get the current component count
110
+ * Useful for validation and debugging
111
+ */
112
+ getComponentCount(): number;
113
+ /**
114
+ * Get the total token count across all components
115
+ * Useful for validation and debugging
116
+ */
117
+ getTotalTokenCount(): number;
118
+ /**
119
+ * Check if a specific component exists
120
+ * Useful for conditional token building
121
+ */
122
+ hasComponent(componentName: string): boolean;
123
+ /**
124
+ * Get tokens for a specific component
125
+ * Useful for component-specific validation
126
+ */
127
+ getComponentTokens(componentName: string): {
128
+ [property: string]: string | number;
129
+ } | undefined;
130
+ /**
131
+ * Validate component token structure
132
+ * Ensures all tokens follow expected patterns
133
+ */
134
+ validate(): {
135
+ isValid: boolean;
136
+ errors: string[];
137
+ };
138
+ /**
139
+ * Build and return the completed component token configuration
140
+ * Returns a DynamicComponentTokens object with all defined tokens
141
+ */
142
+ build(): DynamicComponentTokens;
143
+ }
144
+ /**
145
+ * Factory function for creating a new ComponentTokenBuilder instance
146
+ * Provides a convenient way to start building component tokens
147
+ */
148
+ export declare function createComponentTokenBuilder(): ComponentTokenBuilder;
149
+ /**
150
+ * Helper function for creating component tokens with validation
151
+ * Validates parameters before creating the token
152
+ */
153
+ export declare function createComponentToken(component: string, property: string, value: string | number, variant?: string, state?: State): ComponentTokenDefinition;
154
+ //# sourceMappingURL=component-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-builder.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/builders/component-builder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAGV,gBAAgB,EAEhB,KAAK,EACN,MAAM,gCAAgC,CAAC;AAGxC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG;QACpC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;KAClC,CAAC;CACH;AAED;;;GAGG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAA8B;IAE5C;;;OAGG;IACH,SAAS,CAAC,aAAa,EAAE,MA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AAK,IAAI,sBAAsB;CAShC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,qBAAqB,CAEnE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,KAAK,GACZ,wBAAwB,CAQ1B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Theme Preset Builders - Fluent API for building theme configurations
3
+ *
4
+ * This module exports all theme preset builder classes and their factory functions.
5
+ * These builders provide a fluent API for creating theme configurations with
6
+ * type safety and method chaining support.
7
+ */
8
+ export { ColorTokenBuilder, createColorTokenBuilder, createColorToken } from './color-builder';
9
+ export { TypographyTokenBuilder, createTypographyTokenBuilder, createTypographyToken, createResponsiveTypographyTokens, type ResponsiveTypographyValue } from './typography-builder';
10
+ export { ComponentTokenBuilder, createComponentTokenBuilder, createComponentToken, type ComponentTokenDefinition, type ComponentStyleDefinition } from './component-builder';
11
+ export type { DynamicColorTokens, DynamicTypographyTokens, DynamicComponentTokens, ColorTokenParams, TypographyTokenParams, ComponentTokenParams } from '../../core/dynamic-types';
12
+ export type { ColorTokenKey, TypographyTokenKey, Tier, ColorPropertySurface, Intention, ColorVariant, State, TypographyIntention, TypographyDesignVariant, Breakpoint, TypographyProperty, Component, ComponentVariant, ComponentProperty } from '../../core/design-system-types';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/themes/presets/builders/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,gCAAgC,EAChC,KAAK,yBAAyB,EAC/B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,IAAI,EACJ,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,gCAAgC,CAAC"}