@homlista-devs/ui 1.6.0 → 1.6.2

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 (207) hide show
  1. package/dist/design-system.cjs.js.map +1 -1
  2. package/dist/design-system.es.js.map +1 -1
  3. package/dist/types/App.d.ts +4 -0
  4. package/dist/types/App.d.ts.map +1 -0
  5. package/dist/types/entities/entity/index.d.ts +7 -0
  6. package/dist/types/entities/entity/index.d.ts.map +1 -0
  7. package/dist/types/entities/entity/lib/entity-utils.d.ts +18 -0
  8. package/dist/types/entities/entity/lib/entity-utils.d.ts.map +1 -0
  9. package/dist/types/entities/entity/model/types.d.ts +71 -0
  10. package/dist/types/entities/entity/model/types.d.ts.map +1 -0
  11. package/dist/types/entities/mortgage/index.d.ts +7 -0
  12. package/dist/types/entities/mortgage/index.d.ts.map +1 -0
  13. package/dist/types/entities/mortgage/lib/calculations.d.ts +31 -0
  14. package/dist/types/entities/mortgage/lib/calculations.d.ts.map +1 -0
  15. package/dist/types/entities/mortgage/model/types.d.ts +43 -0
  16. package/dist/types/entities/mortgage/model/types.d.ts.map +1 -0
  17. package/dist/types/entities/property/index.d.ts +6 -0
  18. package/dist/types/entities/property/index.d.ts.map +1 -0
  19. package/dist/types/entities/property/model/types.d.ts +47 -0
  20. package/dist/types/entities/property/model/types.d.ts.map +1 -0
  21. package/dist/types/features/button/index.d.ts +8 -0
  22. package/dist/types/features/button/index.d.ts.map +1 -0
  23. package/dist/types/features/button/lib/button-variants.d.ts +7 -0
  24. package/dist/types/features/button/lib/button-variants.d.ts.map +1 -0
  25. package/dist/types/features/button/ui/button.d.ts +8 -0
  26. package/dist/types/features/button/ui/button.d.ts.map +1 -0
  27. package/dist/types/features/card/index.d.ts +7 -0
  28. package/dist/types/features/card/index.d.ts.map +1 -0
  29. package/dist/types/features/card/lib/utils.d.ts +3 -0
  30. package/dist/types/features/card/lib/utils.d.ts.map +1 -0
  31. package/dist/types/features/card/ui/card.d.ts +21 -0
  32. package/dist/types/features/card/ui/card.d.ts.map +1 -0
  33. package/dist/types/features/donut-chart/index.d.ts +9 -0
  34. package/dist/types/features/donut-chart/index.d.ts.map +1 -0
  35. package/dist/types/features/donut-chart/lib/donut-chart-utils.d.ts +31 -0
  36. package/dist/types/features/donut-chart/lib/donut-chart-utils.d.ts.map +1 -0
  37. package/dist/types/features/donut-chart/ui/donut-chart.d.ts +29 -0
  38. package/dist/types/features/donut-chart/ui/donut-chart.d.ts.map +1 -0
  39. package/dist/types/features/entity-filtering/index.d.ts +9 -0
  40. package/dist/types/features/entity-filtering/index.d.ts.map +1 -0
  41. package/dist/types/features/entity-filtering/model/use-entity-filter.d.ts +38 -0
  42. package/dist/types/features/entity-filtering/model/use-entity-filter.d.ts.map +1 -0
  43. package/dist/types/features/entity-filtering/ui/category-chips.d.ts +23 -0
  44. package/dist/types/features/entity-filtering/ui/category-chips.d.ts.map +1 -0
  45. package/dist/types/features/input/index.d.ts +9 -0
  46. package/dist/types/features/input/index.d.ts.map +1 -0
  47. package/dist/types/features/input/lib/input-variants.d.ts +20 -0
  48. package/dist/types/features/input/lib/input-variants.d.ts.map +1 -0
  49. package/dist/types/features/input/ui/input.d.ts +27 -0
  50. package/dist/types/features/input/ui/input.d.ts.map +1 -0
  51. package/dist/types/features/modal/index.d.ts +7 -0
  52. package/dist/types/features/modal/index.d.ts.map +1 -0
  53. package/dist/types/features/modal/lib/utils.d.ts +3 -0
  54. package/dist/types/features/modal/lib/utils.d.ts.map +1 -0
  55. package/dist/types/features/modal/ui/modal.d.ts +28 -0
  56. package/dist/types/features/modal/ui/modal.d.ts.map +1 -0
  57. package/dist/types/features/select/index.d.ts +9 -0
  58. package/dist/types/features/select/index.d.ts.map +1 -0
  59. package/dist/types/features/select/lib/select-variants.d.ts +20 -0
  60. package/dist/types/features/select/lib/select-variants.d.ts.map +1 -0
  61. package/dist/types/features/select/ui/select.d.ts +32 -0
  62. package/dist/types/features/select/ui/select.d.ts.map +1 -0
  63. package/dist/types/features/text/index.d.ts +7 -0
  64. package/dist/types/features/text/index.d.ts.map +1 -0
  65. package/dist/types/features/text/lib/utils.d.ts +3 -0
  66. package/dist/types/features/text/lib/utils.d.ts.map +1 -0
  67. package/dist/types/features/text/ui/text.d.ts +15 -0
  68. package/dist/types/features/text/ui/text.d.ts.map +1 -0
  69. package/dist/types/index.d.ts +53 -0
  70. package/dist/types/index.d.ts.map +1 -0
  71. package/dist/types/main.d.ts +2 -0
  72. package/dist/types/main.d.ts.map +1 -0
  73. package/dist/types/pages/layouts/index.d.ts +7 -0
  74. package/dist/types/pages/layouts/index.d.ts.map +1 -0
  75. package/dist/types/pages/layouts/lib/utils.d.ts +3 -0
  76. package/dist/types/pages/layouts/lib/utils.d.ts.map +1 -0
  77. package/dist/types/pages/layouts/ui/page-layout.d.ts +30 -0
  78. package/dist/types/pages/layouts/ui/page-layout.d.ts.map +1 -0
  79. package/dist/types/shared/config/themes.d.ts +13 -0
  80. package/dist/types/shared/config/themes.d.ts.map +1 -0
  81. package/dist/types/shared/config/tokens/index.d.ts +187 -0
  82. package/dist/types/shared/config/tokens/index.d.ts.map +1 -0
  83. package/dist/types/shared/index.d.ts +15 -0
  84. package/dist/types/shared/index.d.ts.map +1 -0
  85. package/dist/types/shared/lib/a11y/components.d.ts +6 -0
  86. package/dist/types/shared/lib/a11y/components.d.ts.map +1 -0
  87. package/dist/types/shared/lib/a11y/index.d.ts +2 -0
  88. package/dist/types/shared/lib/a11y/index.d.ts.map +1 -0
  89. package/dist/types/shared/lib/a11y/utils.d.ts +54 -0
  90. package/dist/types/shared/lib/a11y/utils.d.ts.map +1 -0
  91. package/dist/types/shared/lib/design-system.d.ts +307 -0
  92. package/dist/types/shared/lib/design-system.d.ts.map +1 -0
  93. package/dist/types/shared/lib/governance/components.d.ts +10 -0
  94. package/dist/types/shared/lib/governance/components.d.ts.map +1 -0
  95. package/dist/types/shared/lib/governance/index.d.ts +110 -0
  96. package/dist/types/shared/lib/governance/index.d.ts.map +1 -0
  97. package/dist/types/shared/lib/governance/migrations.d.ts +2 -0
  98. package/dist/types/shared/lib/governance/migrations.d.ts.map +1 -0
  99. package/dist/types/shared/lib/governance/policies.d.ts +81 -0
  100. package/dist/types/shared/lib/governance/policies.d.ts.map +1 -0
  101. package/dist/types/shared/lib/governance/utils.d.ts +54 -0
  102. package/dist/types/shared/lib/governance/utils.d.ts.map +1 -0
  103. package/dist/types/shared/lib/i18n/index.d.ts +125 -0
  104. package/dist/types/shared/lib/i18n/index.d.ts.map +1 -0
  105. package/dist/types/shared/lib/performance/hooks.d.ts +35 -0
  106. package/dist/types/shared/lib/performance/hooks.d.ts.map +1 -0
  107. package/dist/types/shared/lib/performance/index.d.ts +40 -0
  108. package/dist/types/shared/lib/performance/index.d.ts.map +1 -0
  109. package/dist/types/shared/lib/theme/use-theme.d.ts +13 -0
  110. package/dist/types/shared/lib/theme/use-theme.d.ts.map +1 -0
  111. package/dist/types/shared/lib/utils.d.ts +3 -0
  112. package/dist/types/shared/lib/utils.d.ts.map +1 -0
  113. package/dist/types/shared/model/theme-store.d.ts +12 -0
  114. package/dist/types/shared/model/theme-store.d.ts.map +1 -0
  115. package/dist/types/shared/types/property.d.ts +47 -0
  116. package/dist/types/shared/types/property.d.ts.map +1 -0
  117. package/dist/types/shared/types/theme.d.ts +74 -0
  118. package/dist/types/shared/types/theme.d.ts.map +1 -0
  119. package/dist/types/shared/ui/chip/chip-variants.d.ts +7 -0
  120. package/dist/types/shared/ui/chip/chip-variants.d.ts.map +1 -0
  121. package/dist/types/shared/ui/chip/chip.d.ts +15 -0
  122. package/dist/types/shared/ui/chip/chip.d.ts.map +1 -0
  123. package/dist/types/shared/ui/chip/index.d.ts +9 -0
  124. package/dist/types/shared/ui/chip/index.d.ts.map +1 -0
  125. package/dist/types/shared/ui/theme/theme-provider.d.ts +12 -0
  126. package/dist/types/shared/ui/theme/theme-provider.d.ts.map +1 -0
  127. package/dist/types/test/setup.d.ts +2 -0
  128. package/dist/types/test/setup.d.ts.map +1 -0
  129. package/dist/types/widgets/entity-directory/index.d.ts +23 -0
  130. package/dist/types/widgets/entity-directory/index.d.ts.map +1 -0
  131. package/dist/types/widgets/entity-directory/ui/empty-state.d.ts +20 -0
  132. package/dist/types/widgets/entity-directory/ui/empty-state.d.ts.map +1 -0
  133. package/dist/types/widgets/entity-directory/ui/entity-directory.d.ts +70 -0
  134. package/dist/types/widgets/entity-directory/ui/entity-directory.d.ts.map +1 -0
  135. package/dist/types/widgets/entity-directory/ui/error-state.d.ts +15 -0
  136. package/dist/types/widgets/entity-directory/ui/error-state.d.ts.map +1 -0
  137. package/dist/types/widgets/entity-directory/ui/header.d.ts +15 -0
  138. package/dist/types/widgets/entity-directory/ui/header.d.ts.map +1 -0
  139. package/dist/types/widgets/entity-directory/ui/list-item.d.ts +24 -0
  140. package/dist/types/widgets/entity-directory/ui/list-item.d.ts.map +1 -0
  141. package/dist/types/widgets/entity-directory/ui/list.d.ts +34 -0
  142. package/dist/types/widgets/entity-directory/ui/list.d.ts.map +1 -0
  143. package/dist/types/widgets/entity-directory/ui/loading-state.d.ts +13 -0
  144. package/dist/types/widgets/entity-directory/ui/loading-state.d.ts.map +1 -0
  145. package/dist/types/widgets/entity-directory/ui/search-filter.d.ts +17 -0
  146. package/dist/types/widgets/entity-directory/ui/search-filter.d.ts.map +1 -0
  147. package/dist/types/widgets/entity-directory/ui/table-header.d.ts +34 -0
  148. package/dist/types/widgets/entity-directory/ui/table-header.d.ts.map +1 -0
  149. package/dist/types/widgets/header/index.d.ts +26 -0
  150. package/dist/types/widgets/header/index.d.ts.map +1 -0
  151. package/dist/types/widgets/header/ui/header.d.ts +52 -0
  152. package/dist/types/widgets/header/ui/header.d.ts.map +1 -0
  153. package/dist/types/widgets/hero-banner/index.d.ts +25 -0
  154. package/dist/types/widgets/hero-banner/index.d.ts.map +1 -0
  155. package/dist/types/widgets/hero-banner/model/create-hero-banner-model.d.ts +21 -0
  156. package/dist/types/widgets/hero-banner/model/create-hero-banner-model.d.ts.map +1 -0
  157. package/dist/types/widgets/hero-banner/model/index.d.ts +7 -0
  158. package/dist/types/widgets/hero-banner/model/index.d.ts.map +1 -0
  159. package/dist/types/widgets/hero-banner/model/types.d.ts +77 -0
  160. package/dist/types/widgets/hero-banner/model/types.d.ts.map +1 -0
  161. package/dist/types/widgets/hero-banner/ui/hero-banner.d.ts +30 -0
  162. package/dist/types/widgets/hero-banner/ui/hero-banner.d.ts.map +1 -0
  163. package/dist/types/widgets/mortgage-calculator/index.d.ts +8 -0
  164. package/dist/types/widgets/mortgage-calculator/index.d.ts.map +1 -0
  165. package/dist/types/widgets/mortgage-calculator/lib/constants.d.ts +22 -0
  166. package/dist/types/widgets/mortgage-calculator/lib/constants.d.ts.map +1 -0
  167. package/dist/types/widgets/mortgage-calculator/ui/mortgage-calculator.d.ts +27 -0
  168. package/dist/types/widgets/mortgage-calculator/ui/mortgage-calculator.d.ts.map +1 -0
  169. package/dist/types/widgets/property-card/index.d.ts +7 -0
  170. package/dist/types/widgets/property-card/index.d.ts.map +1 -0
  171. package/dist/types/widgets/property-card/ui/property-card.d.ts +19 -0
  172. package/dist/types/widgets/property-card/ui/property-card.d.ts.map +1 -0
  173. package/dist/types/widgets/property-gallery/index.d.ts +7 -0
  174. package/dist/types/widgets/property-gallery/index.d.ts.map +1 -0
  175. package/dist/types/widgets/property-gallery/ui/property-gallery.d.ts +16 -0
  176. package/dist/types/widgets/property-gallery/ui/property-gallery.d.ts.map +1 -0
  177. package/dist/types/widgets/search-feature/index.d.ts +20 -0
  178. package/dist/types/widgets/search-feature/index.d.ts.map +1 -0
  179. package/dist/types/widgets/search-feature/lib/constants.d.ts +14 -0
  180. package/dist/types/widgets/search-feature/lib/constants.d.ts.map +1 -0
  181. package/dist/types/widgets/search-feature/lib/use-search.d.ts +32 -0
  182. package/dist/types/widgets/search-feature/lib/use-search.d.ts.map +1 -0
  183. package/dist/types/widgets/search-feature/model/index.d.ts +6 -0
  184. package/dist/types/widgets/search-feature/model/index.d.ts.map +1 -0
  185. package/dist/types/widgets/search-feature/model/types.d.ts +116 -0
  186. package/dist/types/widgets/search-feature/model/types.d.ts.map +1 -0
  187. package/dist/types/widgets/search-feature/ui/search-button.d.ts +22 -0
  188. package/dist/types/widgets/search-feature/ui/search-button.d.ts.map +1 -0
  189. package/dist/types/widgets/search-feature/ui/search-card-form.d.ts +9 -0
  190. package/dist/types/widgets/search-feature/ui/search-card-form.d.ts.map +1 -0
  191. package/dist/types/widgets/search-feature/ui/search-compact-form.d.ts +9 -0
  192. package/dist/types/widgets/search-feature/ui/search-compact-form.d.ts.map +1 -0
  193. package/dist/types/widgets/search-feature/ui/search-divider.d.ts +10 -0
  194. package/dist/types/widgets/search-feature/ui/search-divider.d.ts.map +1 -0
  195. package/dist/types/widgets/search-feature/ui/search-feature.d.ts +23 -0
  196. package/dist/types/widgets/search-feature/ui/search-feature.d.ts.map +1 -0
  197. package/dist/types/widgets/search-feature/ui/search-form-field.d.ts +34 -0
  198. package/dist/types/widgets/search-feature/ui/search-form-field.d.ts.map +1 -0
  199. package/dist/types/widgets/search-feature/ui/search-luxury-form.d.ts +16 -0
  200. package/dist/types/widgets/search-feature/ui/search-luxury-form.d.ts.map +1 -0
  201. package/dist/types/widgets/search-feature/ui/search-minimal-form.d.ts +10 -0
  202. package/dist/types/widgets/search-feature/ui/search-minimal-form.d.ts.map +1 -0
  203. package/dist/types/widgets/search-feature/ui/search-mobile-form.d.ts +9 -0
  204. package/dist/types/widgets/search-feature/ui/search-mobile-form.d.ts.map +1 -0
  205. package/dist/types/widgets/search-feature/ui/search-modern-form.d.ts +16 -0
  206. package/dist/types/widgets/search-feature/ui/search-modern-form.d.ts.map +1 -0
  207. package/package.json +2 -3
@@ -0,0 +1,307 @@
1
+ /**
2
+ * Design System Utilities
3
+ *
4
+ * This file contains utility functions and constants for the design system,
5
+ * providing consistent styling and behavior across components.
6
+ */
7
+ import { type ClassValue } from "clsx";
8
+ /**
9
+ * Utility function to merge and conditionally apply CSS classes
10
+ * Combines clsx for conditional classes with tailwind-merge for proper precedence
11
+ */
12
+ export declare function cn(...inputs: ClassValue[]): string;
13
+ /**
14
+ * Design system constants
15
+ */
16
+ declare const designSystemConstants: {
17
+ readonly spacing: {
18
+ readonly xs: "0.25rem";
19
+ readonly sm: "0.5rem";
20
+ readonly md: "1rem";
21
+ readonly lg: "1.5rem";
22
+ readonly xl: "2rem";
23
+ readonly "2xl": "3rem";
24
+ readonly "3xl": "4rem";
25
+ };
26
+ readonly radius: {
27
+ readonly none: "0";
28
+ readonly sm: "0.125rem";
29
+ readonly DEFAULT: "0.25rem";
30
+ readonly md: "0.375rem";
31
+ readonly lg: "0.5rem";
32
+ readonly xl: "0.75rem";
33
+ readonly "2xl": "1rem";
34
+ readonly "3xl": "1.5rem";
35
+ readonly full: "9999px";
36
+ };
37
+ readonly typography: {
38
+ readonly fontSize: {
39
+ readonly xs: readonly ["0.75rem", {
40
+ readonly lineHeight: "1rem";
41
+ }];
42
+ readonly sm: readonly ["0.875rem", {
43
+ readonly lineHeight: "1.25rem";
44
+ }];
45
+ readonly base: readonly ["1rem", {
46
+ readonly lineHeight: "1.5rem";
47
+ }];
48
+ readonly lg: readonly ["1.125rem", {
49
+ readonly lineHeight: "1.75rem";
50
+ }];
51
+ readonly xl: readonly ["1.25rem", {
52
+ readonly lineHeight: "1.75rem";
53
+ }];
54
+ readonly "2xl": readonly ["1.5rem", {
55
+ readonly lineHeight: "2rem";
56
+ }];
57
+ readonly "3xl": readonly ["1.875rem", {
58
+ readonly lineHeight: "2.25rem";
59
+ }];
60
+ readonly "4xl": readonly ["2.25rem", {
61
+ readonly lineHeight: "2.5rem";
62
+ }];
63
+ };
64
+ readonly fontWeight: {
65
+ readonly thin: "100";
66
+ readonly light: "300";
67
+ readonly normal: "400";
68
+ readonly medium: "500";
69
+ readonly semibold: "600";
70
+ readonly bold: "700";
71
+ readonly extrabold: "800";
72
+ readonly black: "900";
73
+ };
74
+ };
75
+ readonly shadows: {
76
+ readonly none: "none";
77
+ readonly xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
78
+ readonly sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
79
+ readonly DEFAULT: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
80
+ readonly md: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
81
+ readonly lg: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
82
+ readonly xl: "0 25px 50px -12px rgb(0 0 0 / 0.25)";
83
+ };
84
+ readonly zIndex: {
85
+ readonly dropdown: 1000;
86
+ readonly sticky: 1020;
87
+ readonly fixed: 1030;
88
+ readonly modalBackdrop: 1040;
89
+ readonly modal: 1050;
90
+ readonly popover: 1060;
91
+ readonly tooltip: 1070;
92
+ readonly toast: 1080;
93
+ };
94
+ readonly duration: {
95
+ readonly instant: "0ms";
96
+ readonly fast: "150ms";
97
+ readonly normal: "300ms";
98
+ readonly slow: "500ms";
99
+ };
100
+ readonly easing: {
101
+ readonly linear: "linear";
102
+ readonly in: "ease-in";
103
+ readonly out: "ease-out";
104
+ readonly inOut: "ease-in-out";
105
+ };
106
+ };
107
+ /**
108
+ * Component variant utilities
109
+ */
110
+ export declare const componentVariants: {
111
+ readonly button: {
112
+ readonly size: {
113
+ readonly sm: "h-9 px-3 text-sm";
114
+ readonly md: "h-10 px-4 py-2";
115
+ readonly lg: "h-11 px-8";
116
+ readonly icon: "h-10 w-10";
117
+ };
118
+ readonly variant: {
119
+ readonly default: "bg-primary text-primary-foreground hover:bg-primary/90";
120
+ readonly secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80";
121
+ readonly destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90";
122
+ readonly outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground";
123
+ readonly ghost: "hover:bg-accent hover:text-accent-foreground";
124
+ readonly link: "text-primary underline-offset-4 hover:underline";
125
+ };
126
+ };
127
+ readonly input: {
128
+ readonly size: {
129
+ readonly sm: "h-9 px-3 text-sm";
130
+ readonly md: "h-10 px-3 py-2";
131
+ readonly lg: "h-11 px-3 py-2";
132
+ };
133
+ };
134
+ readonly card: {
135
+ readonly variant: {
136
+ readonly default: "bg-card text-card-foreground";
137
+ readonly elevated: "bg-card text-card-foreground shadow-lg";
138
+ readonly outlined: "bg-card text-card-foreground border-2";
139
+ };
140
+ };
141
+ };
142
+ /**
143
+ * Responsive breakpoint utilities
144
+ */
145
+ export declare const responsiveBreakpoints: {
146
+ readonly sm: "640px";
147
+ readonly md: "768px";
148
+ readonly lg: "1024px";
149
+ readonly xl: "1280px";
150
+ readonly "2xl": "1536px";
151
+ };
152
+ /**
153
+ * Color utility functions
154
+ */
155
+ export declare const colorUtils: {
156
+ /**
157
+ * Get a color value with opacity support
158
+ */
159
+ readonly withOpacity: (variable: string, opacity?: number) => string;
160
+ /**
161
+ * Get a color from the design system palette
162
+ */
163
+ readonly get: (color: string) => string;
164
+ };
165
+ /**
166
+ * Accessibility utilities
167
+ */
168
+ export declare const accessibilityUtils: {
169
+ /**
170
+ * Generate a unique ID for form elements and their labels
171
+ */
172
+ readonly generateId: (prefix?: string) => string;
173
+ /**
174
+ * Focus management utilities
175
+ */
176
+ readonly focus: {
177
+ readonly visible: "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2";
178
+ readonly within: "focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2";
179
+ };
180
+ /**
181
+ * Screen reader utilities
182
+ */
183
+ readonly sr: {
184
+ readonly only: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0";
185
+ readonly not: "not-sr-only";
186
+ };
187
+ };
188
+ /**
189
+ * Component size utilities
190
+ */
191
+ export declare const componentSizes: {
192
+ readonly icon: {
193
+ readonly xs: "w-3 h-3";
194
+ readonly sm: "w-4 h-4";
195
+ readonly md: "w-5 h-5";
196
+ readonly lg: "w-6 h-6";
197
+ readonly xl: "w-8 h-8";
198
+ };
199
+ readonly avatar: {
200
+ readonly xs: "w-6 h-6";
201
+ readonly sm: "w-8 h-8";
202
+ readonly md: "w-10 h-10";
203
+ readonly lg: "w-12 h-12";
204
+ readonly xl: "w-16 h-16";
205
+ };
206
+ };
207
+ /**
208
+ * Animation utilities
209
+ */
210
+ export declare const animationUtils: {
211
+ /**
212
+ * Fade animations
213
+ */
214
+ readonly fade: {
215
+ readonly in: "animate-in fade-in duration-200";
216
+ readonly out: "animate-out fade-out duration-200";
217
+ };
218
+ /**
219
+ * Slide animations
220
+ */
221
+ readonly slide: {
222
+ readonly inFromLeft: "animate-in slide-in-from-left duration-200";
223
+ readonly inFromRight: "animate-in slide-in-from-right duration-200";
224
+ readonly inFromTop: "animate-in slide-in-from-top duration-200";
225
+ readonly inFromBottom: "animate-in slide-in-from-bottom duration-200";
226
+ };
227
+ /**
228
+ * Scale animations
229
+ */
230
+ readonly scale: {
231
+ readonly in: "animate-in scale-in duration-200";
232
+ readonly out: "animate-out scale-out duration-200";
233
+ };
234
+ };
235
+ /**
236
+ * Layout utilities
237
+ */
238
+ export declare const layoutUtils: {
239
+ /**
240
+ * Container utilities
241
+ */
242
+ readonly container: {
243
+ readonly responsive: "container mx-auto px-4 sm:px-6 lg:px-8";
244
+ readonly fluid: "w-full max-w-none";
245
+ readonly centered: "container mx-auto px-4 flex items-center justify-center min-h-screen";
246
+ };
247
+ /**
248
+ * Grid utilities
249
+ */
250
+ readonly grid: {
251
+ readonly responsive: "grid gap-4 sm:gap-6 lg:gap-8";
252
+ readonly cols: {
253
+ readonly 1: "grid-cols-1";
254
+ readonly 2: "grid-cols-1 sm:grid-cols-2";
255
+ readonly 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3";
256
+ readonly 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4";
257
+ readonly 5: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5";
258
+ readonly 6: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6";
259
+ };
260
+ };
261
+ /**
262
+ * Flex utilities
263
+ */
264
+ readonly flex: {
265
+ readonly center: "flex items-center justify-center";
266
+ readonly between: "flex items-center justify-between";
267
+ readonly start: "flex items-center justify-start";
268
+ readonly end: "flex items-center justify-end";
269
+ readonly col: "flex flex-col";
270
+ readonly colCenter: "flex flex-col items-center justify-center";
271
+ };
272
+ };
273
+ /**
274
+ * Theme utilities
275
+ */
276
+ export declare const themeUtils: {
277
+ /**
278
+ * Check if dark mode is active
279
+ */
280
+ readonly isDark: () => boolean;
281
+ /**
282
+ * Toggle dark mode
283
+ */
284
+ readonly toggle: () => void;
285
+ /**
286
+ * Set theme explicitly
287
+ */
288
+ readonly set: (theme: "light" | "dark") => void;
289
+ };
290
+ /**
291
+ * Performance utilities
292
+ */
293
+ export declare const performanceUtils: {
294
+ /**
295
+ * Debounce function for performance optimization
296
+ */
297
+ readonly debounce: <T extends (...args: unknown[]) => unknown>(func: T, wait: number) => ((...args: Parameters<T>) => void);
298
+ /**
299
+ * Throttle function for performance optimization
300
+ */
301
+ readonly throttle: <T extends (...args: unknown[]) => unknown>(func: T, limit: number) => ((...args: Parameters<T>) => void);
302
+ };
303
+ /**
304
+ * Export all utilities
305
+ */
306
+ export { designSystemConstants as designSystem, componentVariants as variants, responsiveBreakpoints as breakpoints, colorUtils as colors, accessibilityUtils as a11y, componentSizes as sizes, animationUtils as animations, layoutUtils as layout, themeUtils as theme, performanceUtils as performance, };
307
+ //# sourceMappingURL=design-system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-system.d.ts","sourceRoot":"","sources":["../../../../src/shared/lib/design-system.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC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AAI,EAAE,OAAO,EAAE,KAAK,OAAO,QAC7C,CAAC,SACA,MAAM,KACX,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAU5B,CAAC;AAEX;;GAEG;AAEH,OAAO,EACN,qBAAqB,IAAI,YAAY,EACrC,iBAAiB,IAAI,QAAQ,EAC7B,qBAAqB,IAAI,WAAW,EACpC,UAAU,IAAI,MAAM,EACpB,kBAAkB,IAAI,IAAI,EAC1B,cAAc,IAAI,KAAK,EACvB,cAAc,IAAI,UAAU,EAC5B,WAAW,IAAI,MAAM,EACrB,UAAU,IAAI,KAAK,EACnB,gBAAgB,IAAI,WAAW,GAC/B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface DeprecationNoticeProps {
3
+ component: string;
4
+ replacement?: string;
5
+ removalVersion?: string;
6
+ migrationGuide?: string;
7
+ showInProduction?: boolean;
8
+ }
9
+ export declare const DeprecationNotice: React.FC<DeprecationNoticeProps>;
10
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/governance/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6C9D,CAAC"}
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Governance & Versioning Policies - Industry Best Practice
3
+ * Component lifecycle management, breaking change policies, and migration strategies
4
+ */
5
+ import React from "react";
6
+ export interface Version {
7
+ major: number;
8
+ minor: number;
9
+ patch: number;
10
+ prerelease?: string;
11
+ }
12
+ export declare const parseVersion: (versionString: string) => Version;
13
+ export declare const compareVersions: (v1: Version, v2: Version) => number;
14
+ export declare const isBreakingChange: (oldVersion: Version, newVersion: Version) => boolean;
15
+ export declare const isFeatureAddition: (oldVersion: Version, newVersion: Version) => boolean;
16
+ export declare const isPatchFix: (oldVersion: Version, newVersion: Version) => boolean;
17
+ export interface ComponentMetadata {
18
+ name: string;
19
+ version: string;
20
+ status: ComponentStatus;
21
+ breaking: boolean;
22
+ deprecated: boolean;
23
+ replacement?: string;
24
+ migrationGuide?: string;
25
+ lastUpdated: Date;
26
+ author: string;
27
+ reviewers: string[];
28
+ tags: string[];
29
+ dependencies: string[];
30
+ consumers: string[];
31
+ }
32
+ export type ComponentStatus = "experimental" | "stable" | "deprecated" | "removed";
33
+ declare class ComponentRegistry {
34
+ private components;
35
+ register(metadata: ComponentMetadata): void;
36
+ get(name: string): ComponentMetadata | undefined;
37
+ getAll(): ComponentMetadata[];
38
+ getByStatus(status: ComponentStatus): ComponentMetadata[];
39
+ getDeprecated(): ComponentMetadata[];
40
+ updateStatus(name: string, status: ComponentStatus): void;
41
+ deprecate(name: string, replacement?: string, migrationGuide?: string): void;
42
+ }
43
+ export declare const componentRegistry: ComponentRegistry;
44
+ export interface BreakingChangePolicy {
45
+ allowedIn: ("major" | "minor" | "patch")[];
46
+ requires: ("migration-guide" | "deprecation-period" | "communication")[];
47
+ reviewRequired: boolean;
48
+ testingRequired: boolean;
49
+ }
50
+ export declare const breakingChangePolicies: Record<string, BreakingChangePolicy>;
51
+ export interface MigrationStrategy {
52
+ fromVersion: string;
53
+ toVersion: string;
54
+ type: "automated" | "manual" | "hybrid";
55
+ codemod?: string;
56
+ guide: string;
57
+ breaking: boolean;
58
+ effort: "low" | "medium" | "high";
59
+ risk: "low" | "medium" | "high";
60
+ }
61
+ export declare const migrationStrategies: MigrationStrategy[];
62
+ export declare const DeprecationWarning: React.FC<{
63
+ component: string;
64
+ replacement?: string;
65
+ removalVersion?: string;
66
+ migrationGuide?: string;
67
+ }>;
68
+ export declare const checkCompatibility: (consumerVersion: string, componentVersion: string) => {
69
+ compatible: boolean;
70
+ warnings: string[];
71
+ errors: string[];
72
+ };
73
+ export interface ComponentUsage {
74
+ component: string;
75
+ consumer: string;
76
+ version: string;
77
+ timestamp: Date;
78
+ frequency: number;
79
+ context: string[];
80
+ }
81
+ declare class UsageTracker {
82
+ private usage;
83
+ track(usage: ComponentUsage): void;
84
+ getUsage(component: string): ComponentUsage[];
85
+ getTopConsumers(component: string, limit?: number): ComponentUsage[];
86
+ getAdoptionMetrics(): {
87
+ totalComponents: number;
88
+ totalConsumers: number;
89
+ averageUsage: number;
90
+ };
91
+ }
92
+ export declare const usageTracker: UsageTracker;
93
+ export interface GovernanceRule {
94
+ name: string;
95
+ description: string;
96
+ severity: "error" | "warning" | "info";
97
+ check: (component: ComponentMetadata) => boolean;
98
+ fix?: (component: ComponentMetadata) => ComponentMetadata;
99
+ }
100
+ export declare const governanceRules: GovernanceRule[];
101
+ export declare const checkGovernance: (component: ComponentMetadata) => {
102
+ passed: boolean;
103
+ violations: Array<{
104
+ rule: string;
105
+ severity: string;
106
+ message: string;
107
+ }>;
108
+ };
109
+ export {};
110
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/governance/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,eAAe,MAAM,KAAG,OAUpD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,EAAE,IAAI,OAAO,K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.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/governance/migrations.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Governance Policies - Industry Best Practice
3
+ * Component lifecycle management, usage policies, and contribution guidelines
4
+ */
5
+ import type { ComponentMetadata } from "./index";
6
+ export interface GovernancePolicy {
7
+ id: string;
8
+ name: string;
9
+ description: string;
10
+ category: "design" | "development" | "accessibility" | "performance" | "testing";
11
+ severity: "error" | "warning" | "info";
12
+ check: (component: ComponentMetadata) => boolean | Promise<boolean>;
13
+ fix?: (component: ComponentMetadata) => ComponentMetadata | Promise<ComponentMetadata>;
14
+ documentation?: string;
15
+ }
16
+ export declare const governancePolicies: GovernancePolicy[];
17
+ export interface VersioningPolicy {
18
+ type: "semantic" | "calendar" | "internal";
19
+ breakingChangePolicy: "major" | "minor" | "patch";
20
+ prereleaseFormat: string;
21
+ changelogRequired: boolean;
22
+ migrationGuideRequired: boolean;
23
+ }
24
+ export declare const versioningPolicy: VersioningPolicy;
25
+ export interface ContributionGuideline {
26
+ id: string;
27
+ title: string;
28
+ description: string;
29
+ category: "code" | "design" | "documentation" | "testing";
30
+ required: boolean;
31
+ checklist: string[];
32
+ }
33
+ export declare const contributionGuidelines: ContributionGuideline[];
34
+ export interface DeprecationPolicy {
35
+ noticePeriod: number;
36
+ removalPeriod: number;
37
+ communicationChannels: string[];
38
+ migrationSupport: boolean;
39
+ backwardCompatibility: boolean;
40
+ }
41
+ export declare const deprecationPolicy: DeprecationPolicy;
42
+ export interface QualityGate {
43
+ id: string;
44
+ name: string;
45
+ description: string;
46
+ check: (component: ComponentMetadata) => Promise<boolean>;
47
+ blocking: boolean;
48
+ }
49
+ export declare const qualityGates: QualityGate[];
50
+ export declare class GovernanceChecker {
51
+ checkComponent(component: ComponentMetadata): Promise<{
52
+ passed: boolean;
53
+ violations: Array<{
54
+ policy: string;
55
+ severity: string;
56
+ message: string;
57
+ category: string;
58
+ }>;
59
+ suggestions: string[];
60
+ }>;
61
+ checkAllComponents(components: ComponentMetadata[]): Promise<{
62
+ summary: {
63
+ total: number;
64
+ passed: number;
65
+ failed: number;
66
+ warnings: number;
67
+ };
68
+ results: Array<{
69
+ component: string;
70
+ passed: boolean;
71
+ violations: Array<{
72
+ policy: string;
73
+ severity: string;
74
+ message: string;
75
+ category: string;
76
+ }>;
77
+ }>;
78
+ }>;
79
+ }
80
+ export declare const governanceChecker: GovernanceChecker;
81
+ //# sourceMappingURL=policies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/governance/policies.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EACL,QAAQ,GACR,aAAa,GACb,eAAe,GACf,aAAa,GACb,SAAS,CAAC;IACb,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,GAAG,CAAC,EAAE,CACL,SAAS,EAAE,iBAAiB,KACxB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAwIhD,CAAC;AAGF,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAC3C,oBAAoB,EAAE,OAAO,GAAG,OAAO,GAAG,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ChB,QAAQ,EAAE,MAAM,CAAC;SACjB,CAAC,CAAC;QACH,WAAW,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;IAiDI,kBAAkB,CAAC,UAAU,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAClE,OAAO,EAAE;YACR,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,OAAO,EAAE,KAAK,CAAC;YACd,SAAS,EAAE,MAAM,CAAC;YAClB,MAAM,EAAE,OAAO,CAAC;YAChB,UAAU,EAAE,KAAK,CAAC;gBACjB,MAAM,EAAE,MAAM,CAAC;gBACf,QAAQ,EAAE,MAAM,CAAC;gBACjB,OAAO,EAAE,MAAM,CAAC;gBAChB,QAAQ,EAAE,MAAM,CAAC;aACjB,CAAC,CAAC;SACH,CAAC,CAAC;KACH,CAAC;CAyBF;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Migration & Deprecation Strategies - Industry Best Practice
3
+ * Safe component evolution and backward compatibility management
4
+ */
5
+ import React from "react";
6
+ import type { ComponentMetadata, Version } from "./index";
7
+ export interface MigrationStrategy {
8
+ id: string;
9
+ component: string;
10
+ fromVersion: Version;
11
+ toVersion: Version;
12
+ type: "automated" | "manual" | "hybrid";
13
+ codemod?: string;
14
+ guide: string;
15
+ breaking: boolean;
16
+ effort: "low" | "medium" | "high";
17
+ risk: "low" | "medium" | "high";
18
+ prerequisites?: string[];
19
+ postMigrationSteps?: string[];
20
+ rollbackStrategy?: string;
21
+ }
22
+ export declare const migrationStrategies: MigrationStrategy[];
23
+ export declare class MigrationManager {
24
+ private strategies;
25
+ constructor();
26
+ getMigrationStrategy(component: string, fromVersion: Version, toVersion: Version): MigrationStrategy | null;
27
+ getAvailableMigrations(component?: string): MigrationStrategy[];
28
+ executeMigration(strategy: MigrationStrategy, sourceCode: string): Promise<{
29
+ success: boolean;
30
+ result: string;
31
+ errors: string[];
32
+ }>;
33
+ private runCodemod;
34
+ validateMigrationPrerequisites(strategy: MigrationStrategy): {
35
+ valid: boolean;
36
+ missing: string[];
37
+ };
38
+ }
39
+ export declare const migrationManager: MigrationManager;
40
+ export interface CompatibilityLayer {
41
+ component: string;
42
+ version: Version;
43
+ wrapper: React.ComponentType<Record<string, unknown>>;
44
+ deprecationNotice: boolean;
45
+ }
46
+ export declare const compatibilityLayers: CompatibilityLayer[];
47
+ export declare const checkVersionCompatibility: (consumerVersion: string, componentVersion: string) => {
48
+ compatible: boolean;
49
+ warnings: string[];
50
+ errors: string[];
51
+ suggestedMigrations: MigrationStrategy[];
52
+ };
53
+ export declare const generateMigrationReport: (component: ComponentMetadata) => void;
54
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/governance/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG1D,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClC,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,CAAC,EAAE,MA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