@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.
- package/dist/design-system.cjs.js.map +1 -1
- package/dist/design-system.es.js.map +1 -1
- package/dist/types/App.d.ts +4 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/entities/entity/index.d.ts +7 -0
- package/dist/types/entities/entity/index.d.ts.map +1 -0
- package/dist/types/entities/entity/lib/entity-utils.d.ts +18 -0
- package/dist/types/entities/entity/lib/entity-utils.d.ts.map +1 -0
- package/dist/types/entities/entity/model/types.d.ts +71 -0
- package/dist/types/entities/entity/model/types.d.ts.map +1 -0
- package/dist/types/entities/mortgage/index.d.ts +7 -0
- package/dist/types/entities/mortgage/index.d.ts.map +1 -0
- package/dist/types/entities/mortgage/lib/calculations.d.ts +31 -0
- package/dist/types/entities/mortgage/lib/calculations.d.ts.map +1 -0
- package/dist/types/entities/mortgage/model/types.d.ts +43 -0
- package/dist/types/entities/mortgage/model/types.d.ts.map +1 -0
- package/dist/types/entities/property/index.d.ts +6 -0
- package/dist/types/entities/property/index.d.ts.map +1 -0
- package/dist/types/entities/property/model/types.d.ts +47 -0
- package/dist/types/entities/property/model/types.d.ts.map +1 -0
- package/dist/types/features/button/index.d.ts +8 -0
- package/dist/types/features/button/index.d.ts.map +1 -0
- package/dist/types/features/button/lib/button-variants.d.ts +7 -0
- package/dist/types/features/button/lib/button-variants.d.ts.map +1 -0
- package/dist/types/features/button/ui/button.d.ts +8 -0
- package/dist/types/features/button/ui/button.d.ts.map +1 -0
- package/dist/types/features/card/index.d.ts +7 -0
- package/dist/types/features/card/index.d.ts.map +1 -0
- package/dist/types/features/card/lib/utils.d.ts +3 -0
- package/dist/types/features/card/lib/utils.d.ts.map +1 -0
- package/dist/types/features/card/ui/card.d.ts +21 -0
- package/dist/types/features/card/ui/card.d.ts.map +1 -0
- package/dist/types/features/donut-chart/index.d.ts +9 -0
- package/dist/types/features/donut-chart/index.d.ts.map +1 -0
- package/dist/types/features/donut-chart/lib/donut-chart-utils.d.ts +31 -0
- package/dist/types/features/donut-chart/lib/donut-chart-utils.d.ts.map +1 -0
- package/dist/types/features/donut-chart/ui/donut-chart.d.ts +29 -0
- package/dist/types/features/donut-chart/ui/donut-chart.d.ts.map +1 -0
- package/dist/types/features/entity-filtering/index.d.ts +9 -0
- package/dist/types/features/entity-filtering/index.d.ts.map +1 -0
- package/dist/types/features/entity-filtering/model/use-entity-filter.d.ts +38 -0
- package/dist/types/features/entity-filtering/model/use-entity-filter.d.ts.map +1 -0
- package/dist/types/features/entity-filtering/ui/category-chips.d.ts +23 -0
- package/dist/types/features/entity-filtering/ui/category-chips.d.ts.map +1 -0
- package/dist/types/features/input/index.d.ts +9 -0
- package/dist/types/features/input/index.d.ts.map +1 -0
- package/dist/types/features/input/lib/input-variants.d.ts +20 -0
- package/dist/types/features/input/lib/input-variants.d.ts.map +1 -0
- package/dist/types/features/input/ui/input.d.ts +27 -0
- package/dist/types/features/input/ui/input.d.ts.map +1 -0
- package/dist/types/features/modal/index.d.ts +7 -0
- package/dist/types/features/modal/index.d.ts.map +1 -0
- package/dist/types/features/modal/lib/utils.d.ts +3 -0
- package/dist/types/features/modal/lib/utils.d.ts.map +1 -0
- package/dist/types/features/modal/ui/modal.d.ts +28 -0
- package/dist/types/features/modal/ui/modal.d.ts.map +1 -0
- package/dist/types/features/select/index.d.ts +9 -0
- package/dist/types/features/select/index.d.ts.map +1 -0
- package/dist/types/features/select/lib/select-variants.d.ts +20 -0
- package/dist/types/features/select/lib/select-variants.d.ts.map +1 -0
- package/dist/types/features/select/ui/select.d.ts +32 -0
- package/dist/types/features/select/ui/select.d.ts.map +1 -0
- package/dist/types/features/text/index.d.ts +7 -0
- package/dist/types/features/text/index.d.ts.map +1 -0
- package/dist/types/features/text/lib/utils.d.ts +3 -0
- package/dist/types/features/text/lib/utils.d.ts.map +1 -0
- package/dist/types/features/text/ui/text.d.ts +15 -0
- package/dist/types/features/text/ui/text.d.ts.map +1 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/pages/layouts/index.d.ts +7 -0
- package/dist/types/pages/layouts/index.d.ts.map +1 -0
- package/dist/types/pages/layouts/lib/utils.d.ts +3 -0
- package/dist/types/pages/layouts/lib/utils.d.ts.map +1 -0
- package/dist/types/pages/layouts/ui/page-layout.d.ts +30 -0
- package/dist/types/pages/layouts/ui/page-layout.d.ts.map +1 -0
- package/dist/types/shared/config/themes.d.ts +13 -0
- package/dist/types/shared/config/themes.d.ts.map +1 -0
- package/dist/types/shared/config/tokens/index.d.ts +187 -0
- package/dist/types/shared/config/tokens/index.d.ts.map +1 -0
- package/dist/types/shared/index.d.ts +15 -0
- package/dist/types/shared/index.d.ts.map +1 -0
- package/dist/types/shared/lib/a11y/components.d.ts +6 -0
- package/dist/types/shared/lib/a11y/components.d.ts.map +1 -0
- package/dist/types/shared/lib/a11y/index.d.ts +2 -0
- package/dist/types/shared/lib/a11y/index.d.ts.map +1 -0
- package/dist/types/shared/lib/a11y/utils.d.ts +54 -0
- package/dist/types/shared/lib/a11y/utils.d.ts.map +1 -0
- package/dist/types/shared/lib/design-system.d.ts +307 -0
- package/dist/types/shared/lib/design-system.d.ts.map +1 -0
- package/dist/types/shared/lib/governance/components.d.ts +10 -0
- package/dist/types/shared/lib/governance/components.d.ts.map +1 -0
- package/dist/types/shared/lib/governance/index.d.ts +110 -0
- package/dist/types/shared/lib/governance/index.d.ts.map +1 -0
- package/dist/types/shared/lib/governance/migrations.d.ts +2 -0
- package/dist/types/shared/lib/governance/migrations.d.ts.map +1 -0
- package/dist/types/shared/lib/governance/policies.d.ts +81 -0
- package/dist/types/shared/lib/governance/policies.d.ts.map +1 -0
- package/dist/types/shared/lib/governance/utils.d.ts +54 -0
- package/dist/types/shared/lib/governance/utils.d.ts.map +1 -0
- package/dist/types/shared/lib/i18n/index.d.ts +125 -0
- package/dist/types/shared/lib/i18n/index.d.ts.map +1 -0
- package/dist/types/shared/lib/performance/hooks.d.ts +35 -0
- package/dist/types/shared/lib/performance/hooks.d.ts.map +1 -0
- package/dist/types/shared/lib/performance/index.d.ts +40 -0
- package/dist/types/shared/lib/performance/index.d.ts.map +1 -0
- package/dist/types/shared/lib/theme/use-theme.d.ts +13 -0
- package/dist/types/shared/lib/theme/use-theme.d.ts.map +1 -0
- package/dist/types/shared/lib/utils.d.ts +3 -0
- package/dist/types/shared/lib/utils.d.ts.map +1 -0
- package/dist/types/shared/model/theme-store.d.ts +12 -0
- package/dist/types/shared/model/theme-store.d.ts.map +1 -0
- package/dist/types/shared/types/property.d.ts +47 -0
- package/dist/types/shared/types/property.d.ts.map +1 -0
- package/dist/types/shared/types/theme.d.ts +74 -0
- package/dist/types/shared/types/theme.d.ts.map +1 -0
- package/dist/types/shared/ui/chip/chip-variants.d.ts +7 -0
- package/dist/types/shared/ui/chip/chip-variants.d.ts.map +1 -0
- package/dist/types/shared/ui/chip/chip.d.ts +15 -0
- package/dist/types/shared/ui/chip/chip.d.ts.map +1 -0
- package/dist/types/shared/ui/chip/index.d.ts +9 -0
- package/dist/types/shared/ui/chip/index.d.ts.map +1 -0
- package/dist/types/shared/ui/theme/theme-provider.d.ts +12 -0
- package/dist/types/shared/ui/theme/theme-provider.d.ts.map +1 -0
- package/dist/types/test/setup.d.ts +2 -0
- package/dist/types/test/setup.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/index.d.ts +23 -0
- package/dist/types/widgets/entity-directory/index.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/empty-state.d.ts +20 -0
- package/dist/types/widgets/entity-directory/ui/empty-state.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/entity-directory.d.ts +70 -0
- package/dist/types/widgets/entity-directory/ui/entity-directory.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/error-state.d.ts +15 -0
- package/dist/types/widgets/entity-directory/ui/error-state.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/header.d.ts +15 -0
- package/dist/types/widgets/entity-directory/ui/header.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/list-item.d.ts +24 -0
- package/dist/types/widgets/entity-directory/ui/list-item.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/list.d.ts +34 -0
- package/dist/types/widgets/entity-directory/ui/list.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/loading-state.d.ts +13 -0
- package/dist/types/widgets/entity-directory/ui/loading-state.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/search-filter.d.ts +17 -0
- package/dist/types/widgets/entity-directory/ui/search-filter.d.ts.map +1 -0
- package/dist/types/widgets/entity-directory/ui/table-header.d.ts +34 -0
- package/dist/types/widgets/entity-directory/ui/table-header.d.ts.map +1 -0
- package/dist/types/widgets/header/index.d.ts +26 -0
- package/dist/types/widgets/header/index.d.ts.map +1 -0
- package/dist/types/widgets/header/ui/header.d.ts +52 -0
- package/dist/types/widgets/header/ui/header.d.ts.map +1 -0
- package/dist/types/widgets/hero-banner/index.d.ts +25 -0
- package/dist/types/widgets/hero-banner/index.d.ts.map +1 -0
- package/dist/types/widgets/hero-banner/model/create-hero-banner-model.d.ts +21 -0
- package/dist/types/widgets/hero-banner/model/create-hero-banner-model.d.ts.map +1 -0
- package/dist/types/widgets/hero-banner/model/index.d.ts +7 -0
- package/dist/types/widgets/hero-banner/model/index.d.ts.map +1 -0
- package/dist/types/widgets/hero-banner/model/types.d.ts +77 -0
- package/dist/types/widgets/hero-banner/model/types.d.ts.map +1 -0
- package/dist/types/widgets/hero-banner/ui/hero-banner.d.ts +30 -0
- package/dist/types/widgets/hero-banner/ui/hero-banner.d.ts.map +1 -0
- package/dist/types/widgets/mortgage-calculator/index.d.ts +8 -0
- package/dist/types/widgets/mortgage-calculator/index.d.ts.map +1 -0
- package/dist/types/widgets/mortgage-calculator/lib/constants.d.ts +22 -0
- package/dist/types/widgets/mortgage-calculator/lib/constants.d.ts.map +1 -0
- package/dist/types/widgets/mortgage-calculator/ui/mortgage-calculator.d.ts +27 -0
- package/dist/types/widgets/mortgage-calculator/ui/mortgage-calculator.d.ts.map +1 -0
- package/dist/types/widgets/property-card/index.d.ts +7 -0
- package/dist/types/widgets/property-card/index.d.ts.map +1 -0
- package/dist/types/widgets/property-card/ui/property-card.d.ts +19 -0
- package/dist/types/widgets/property-card/ui/property-card.d.ts.map +1 -0
- package/dist/types/widgets/property-gallery/index.d.ts +7 -0
- package/dist/types/widgets/property-gallery/index.d.ts.map +1 -0
- package/dist/types/widgets/property-gallery/ui/property-gallery.d.ts +16 -0
- package/dist/types/widgets/property-gallery/ui/property-gallery.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/index.d.ts +20 -0
- package/dist/types/widgets/search-feature/index.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/lib/constants.d.ts +14 -0
- package/dist/types/widgets/search-feature/lib/constants.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/lib/use-search.d.ts +32 -0
- package/dist/types/widgets/search-feature/lib/use-search.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/model/index.d.ts +6 -0
- package/dist/types/widgets/search-feature/model/index.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/model/types.d.ts +116 -0
- package/dist/types/widgets/search-feature/model/types.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-button.d.ts +22 -0
- package/dist/types/widgets/search-feature/ui/search-button.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-card-form.d.ts +9 -0
- package/dist/types/widgets/search-feature/ui/search-card-form.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-compact-form.d.ts +9 -0
- package/dist/types/widgets/search-feature/ui/search-compact-form.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-divider.d.ts +10 -0
- package/dist/types/widgets/search-feature/ui/search-divider.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-feature.d.ts +23 -0
- package/dist/types/widgets/search-feature/ui/search-feature.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-form-field.d.ts +34 -0
- package/dist/types/widgets/search-feature/ui/search-form-field.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-luxury-form.d.ts +16 -0
- package/dist/types/widgets/search-feature/ui/search-luxury-form.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-minimal-form.d.ts +10 -0
- package/dist/types/widgets/search-feature/ui/search-minimal-form.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-mobile-form.d.ts +9 -0
- package/dist/types/widgets/search-feature/ui/search-mobile-form.d.ts.map +1 -0
- package/dist/types/widgets/search-feature/ui/search-modern-form.d.ts +16 -0
- package/dist/types/widgets/search-feature/ui/search-modern-form.d.ts.map +1 -0
- package/package.json +2 -3
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internationalization (i18n) System - Industry Best Practice
|
|
3
|
+
* Multi-language support with React Context and TypeScript
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
export type SupportedLanguage = "en" | "es" | "fr" | "de" | "pt" | "it";
|
|
7
|
+
export interface TranslationMessages {
|
|
8
|
+
common: {
|
|
9
|
+
close: string;
|
|
10
|
+
open: string;
|
|
11
|
+
save: string;
|
|
12
|
+
cancel: string;
|
|
13
|
+
delete: string;
|
|
14
|
+
edit: string;
|
|
15
|
+
add: string;
|
|
16
|
+
remove: string;
|
|
17
|
+
search: string;
|
|
18
|
+
filter: string;
|
|
19
|
+
sort: string;
|
|
20
|
+
loading: string;
|
|
21
|
+
error: string;
|
|
22
|
+
success: string;
|
|
23
|
+
warning: string;
|
|
24
|
+
info: string;
|
|
25
|
+
next: string;
|
|
26
|
+
previous: string;
|
|
27
|
+
first: string;
|
|
28
|
+
last: string;
|
|
29
|
+
page: string;
|
|
30
|
+
of: string;
|
|
31
|
+
items: string;
|
|
32
|
+
selected: string;
|
|
33
|
+
clear: string;
|
|
34
|
+
apply: string;
|
|
35
|
+
reset: string;
|
|
36
|
+
confirm: string;
|
|
37
|
+
yes: string;
|
|
38
|
+
no: string;
|
|
39
|
+
ok: string;
|
|
40
|
+
};
|
|
41
|
+
components: {
|
|
42
|
+
button: {
|
|
43
|
+
loading: string;
|
|
44
|
+
submit: string;
|
|
45
|
+
clickHere: string;
|
|
46
|
+
};
|
|
47
|
+
propertyCard: {
|
|
48
|
+
bedrooms: string;
|
|
49
|
+
bathrooms: string;
|
|
50
|
+
parking: string;
|
|
51
|
+
area: string;
|
|
52
|
+
amenities: string;
|
|
53
|
+
location: string;
|
|
54
|
+
price: string;
|
|
55
|
+
viewDetails: string;
|
|
56
|
+
contact: string;
|
|
57
|
+
favorite: string;
|
|
58
|
+
unfavorite: string;
|
|
59
|
+
};
|
|
60
|
+
form: {
|
|
61
|
+
required: string;
|
|
62
|
+
optional: string;
|
|
63
|
+
invalid: string;
|
|
64
|
+
email: string;
|
|
65
|
+
phone: string;
|
|
66
|
+
name: string;
|
|
67
|
+
message: string;
|
|
68
|
+
submit: string;
|
|
69
|
+
};
|
|
70
|
+
navigation: {
|
|
71
|
+
home: string;
|
|
72
|
+
about: string;
|
|
73
|
+
services: string;
|
|
74
|
+
contact: string;
|
|
75
|
+
properties: string;
|
|
76
|
+
search: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
validation: {
|
|
80
|
+
required: string;
|
|
81
|
+
email: string;
|
|
82
|
+
phone: string;
|
|
83
|
+
minLength: string;
|
|
84
|
+
maxLength: string;
|
|
85
|
+
numeric: string;
|
|
86
|
+
positive: string;
|
|
87
|
+
};
|
|
88
|
+
errors: {
|
|
89
|
+
network: string;
|
|
90
|
+
server: string;
|
|
91
|
+
notFound: string;
|
|
92
|
+
unauthorized: string;
|
|
93
|
+
forbidden: string;
|
|
94
|
+
badRequest: string;
|
|
95
|
+
timeout: string;
|
|
96
|
+
unknown: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
declare const translations: Record<SupportedLanguage, TranslationMessages>;
|
|
100
|
+
interface I18nContextValue {
|
|
101
|
+
language: SupportedLanguage;
|
|
102
|
+
messages: TranslationMessages;
|
|
103
|
+
setLanguage: (language: SupportedLanguage) => void;
|
|
104
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
105
|
+
}
|
|
106
|
+
export declare const useI18n: () => I18nContextValue;
|
|
107
|
+
interface I18nProviderProps {
|
|
108
|
+
children: React.ReactNode;
|
|
109
|
+
defaultLanguage?: SupportedLanguage;
|
|
110
|
+
onLanguageChange?: (language: SupportedLanguage) => void;
|
|
111
|
+
}
|
|
112
|
+
export declare const I18nProvider: React.FC<I18nProviderProps>;
|
|
113
|
+
export declare const useTranslation: () => {
|
|
114
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
115
|
+
};
|
|
116
|
+
export declare const useLanguage: () => {
|
|
117
|
+
language: SupportedLanguage;
|
|
118
|
+
setLanguage: (language: SupportedLanguage) => void;
|
|
119
|
+
};
|
|
120
|
+
export declare const detectUserLanguage: () => SupportedLanguage;
|
|
121
|
+
export declare const formatNumber: (num: number, locale?: SupportedLanguage) => string;
|
|
122
|
+
export declare const formatCurrency: (amount: number, currency: string, locale?: SupportedLanguage) => string;
|
|
123
|
+
export declare const formatDate: (date: Date, options?: Intl.DateTimeFormatOptions, locale?: SupportedLanguage) => string;
|
|
124
|
+
export { translations };
|
|
125
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/i18n/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExE,MAAM,WAAW,mBAAmB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@@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Hooks - Industry Best Practice
|
|
3
|
+
* Custom hooks for performance monitoring and optimization
|
|
4
|
+
*/
|
|
5
|
+
export declare const usePerformanceMonitor: (componentName: string, enabled?: boolean) => {
|
|
6
|
+
renderCount: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
9
|
+
export declare const useThrottle: <T extends (...args: unknown[]) => unknown>(callback: T, delay: number) => T;
|
|
10
|
+
export declare const useIntersectionObserver: (ref: React.RefObject<Element>, options?: IntersectionObserverInit) => {
|
|
11
|
+
isIntersecting: boolean;
|
|
12
|
+
hasIntersected: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const useVirtualScroll: <T>(items: T[], itemHeight: number, containerHeight: number, overscan?: number) => {
|
|
15
|
+
visibleItems: T[];
|
|
16
|
+
totalHeight: number;
|
|
17
|
+
offsetY: number;
|
|
18
|
+
onScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const useResourcePreloader: () => {
|
|
21
|
+
preloadImage: (src: string) => Promise<void>;
|
|
22
|
+
preloadComponent: <T>(importFunc: () => Promise<T>) => Promise<T>;
|
|
23
|
+
};
|
|
24
|
+
export declare const useMemoryMonitor: (enabled?: boolean) => {
|
|
25
|
+
used: number;
|
|
26
|
+
total: number;
|
|
27
|
+
limit: number;
|
|
28
|
+
} | null;
|
|
29
|
+
export declare const useBundleMonitor: () => void;
|
|
30
|
+
export declare const useNetworkStatus: () => {
|
|
31
|
+
isOnline: boolean;
|
|
32
|
+
connection: unknown;
|
|
33
|
+
};
|
|
34
|
+
export declare const useWebVitals: () => void;
|
|
35
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/performance/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,qBAAqB,GACjC,eAAe,MAAM,EACrB,iBAAc;;CA+Bd,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,MAAM,KAAG,CAcxD,CAAC;AAGF,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EACpE,UAAU,CAAC,EACX,OAAO,MAAM,KACX,CA4BF,CAAC;AAGF,eAAO,MAAM,uBAAuB,GACnC,KAAK,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,UAAS,wBAA6B;;;CAgCtC,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,CAAC,EACjC,OAAO,CAAC,EAAE,EACV,YAAY,MAAM,EAClB,iBAAiB,MAAM,EACvB,WAAU,MAAU;;;;kBA0BiB,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;CAUlE,CAAC;AAGF,eAAO,MAAM,oBAAoB;wBACO,MAAM;uBAUrC,CAAC,cAAc,MAAM,OAAO,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,CAAC,CAAC;CAapD,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,iBAAe;UAExC,MAAM;WACL,MAAM;WACN,MAAM;QAsCd,CAAC;AAGF,eAAO,MAAM,gBAAgB,YAO5B,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;CA0C5B,CAAC;AAGF,eAAO,MAAM,YAAY,YAQxB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Optimization Utilities - Industry Best Practice
|
|
3
|
+
* Code splitting, lazy loading, caching, and performance monitoring
|
|
4
|
+
*/
|
|
5
|
+
import React, { type ComponentType } from "react";
|
|
6
|
+
interface LazyOptions {
|
|
7
|
+
fallback?: React.ComponentType<Record<string, never>> | React.ReactElement;
|
|
8
|
+
errorBoundary?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const createLazyComponent: <P extends object>(importFunc: () => Promise<{
|
|
11
|
+
default: ComponentType<P>;
|
|
12
|
+
}>, options?: LazyOptions) => React.FC<P>;
|
|
13
|
+
export declare const useMemoizedCallback: <T extends (...args: never[]) => unknown>(callback: T, deps: React.DependencyList) => T;
|
|
14
|
+
export declare const useMemoizedValue: <T>(value: T, deps: React.DependencyList) => T;
|
|
15
|
+
export declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
16
|
+
export declare const useThrottle: <T extends (...args: never[]) => unknown>(callback: T, delay: number) => T;
|
|
17
|
+
export declare const useIntersectionObserver: (ref: React.RefObject<Element>, options?: IntersectionObserverInit) => boolean;
|
|
18
|
+
interface LazyImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
19
|
+
src: string;
|
|
20
|
+
alt: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
rootMargin?: string;
|
|
23
|
+
threshold?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const LazyImage: React.FC<LazyImageProps>;
|
|
26
|
+
export declare const loadComponentDynamically: <T>(importFunc: () => Promise<T>) => Promise<T>;
|
|
27
|
+
export declare const preloadComponent: (importFunc: () => Promise<unknown>) => void;
|
|
28
|
+
export declare const preloadImage: (src: string) => void;
|
|
29
|
+
export declare const usePerformanceMonitor: (componentName: string) => void;
|
|
30
|
+
export declare const useVirtualScroll: <T>(items: T[], itemHeight: number, containerHeight: number, overscan?: number) => {
|
|
31
|
+
visibleItems: T[];
|
|
32
|
+
totalHeight: number;
|
|
33
|
+
offsetY: number;
|
|
34
|
+
onScroll: (e: React.UIEvent<HTMLDivElement>) => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const useResourceHints: () => void;
|
|
37
|
+
export declare const logBundleSize: () => void;
|
|
38
|
+
export declare const useMemoryMonitor: () => void;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":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CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6C9C,CAAC;AAGF,eAAO,MAAM,wBAAwB,GAAU,CAAC,EAC/C,YAAY,MAAM,OAAO,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAC,CAAC,CAQX,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,OAAO,CAAC,OAAO,CAAC,SAYlE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,SAGvC,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,eAAe,MAAM,SAkB1D,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,CAAC,EACjC,OAAO,CAAC,EAAE,EACV,YAAY,MAAM,EAClB,iBAAiB,MAAM,EACvB,WAAU,MAAU;;;;kBAkBL,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;CAI5C,CAAC;AAGF,eAAO,MAAM,gBAAgB,YAsB5B,CAAC;AAGF,eAAO,MAAM,aAAa,YAKzB,CAAC;AAGF,eAAO,MAAM,gBAAgB,YA4B5B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme Hook
|
|
3
|
+
* @layer shared
|
|
4
|
+
* @description Hook for accessing theme context
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import type { Theme } from "../../types/theme";
|
|
8
|
+
export interface ThemeContextValue {
|
|
9
|
+
theme: Theme;
|
|
10
|
+
}
|
|
11
|
+
export declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
12
|
+
export declare const useTheme: () => ThemeContextValue;
|
|
13
|
+
//# sourceMappingURL=use-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/theme/use-theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,KAAK,CAAC;CACb;AAED,eAAO,MAAM,YAAY,yCAAsD,CAAC;AAEhF,eAAO,MAAM,QAAQ,QAAO,iBAM3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/shared/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Theme } from "../types/theme";
|
|
2
|
+
export declare const setTheme: import("effector").EventCallable<string>;
|
|
3
|
+
export declare const setCustomTheme: import("effector").EventCallable<Theme>;
|
|
4
|
+
export declare const resetTheme: import("effector").EventCallable<void>;
|
|
5
|
+
export declare const $theme: import("effector").StoreWritable<Theme>;
|
|
6
|
+
export declare const $themeName: import("effector").Store<string>;
|
|
7
|
+
export declare const $themeColors: import("effector").Store<import("../types/theme").ThemeColors>;
|
|
8
|
+
export declare const $themeShapes: import("effector").Store<import("../types/theme").ThemeShapes>;
|
|
9
|
+
export declare const $themeTypography: import("effector").Store<import("../types/theme").ThemeTypography>;
|
|
10
|
+
export declare const $themeSpacing: import("effector").Store<import("../types/theme").ThemeSpacing>;
|
|
11
|
+
export declare const $themeShadows: import("effector").Store<import("../types/theme").ThemeShadows>;
|
|
12
|
+
//# sourceMappingURL=theme-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-store.d.ts","sourceRoot":"","sources":["../../../../src/shared/model/theme-store.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,QAAQ,0CAA2B,CAAC;AACjD,eAAO,MAAM,cAAc,yCAAuB,CAAC;AACnD,eAAO,MAAM,UAAU,wCAAgB,CAAC;AAGxC,eAAO,MAAM,MAAM,yCAMiB,CAAC;AAGrC,eAAO,MAAM,UAAU,kCAAoC,CAAC;AAC5D,eAAO,MAAM,YAAY,gEAAsC,CAAC;AAChE,eAAO,MAAM,YAAY,gEAAsC,CAAC;AAChE,eAAO,MAAM,gBAAgB,oEAA0C,CAAC;AACxE,eAAO,MAAM,aAAa,iEAAuC,CAAC;AAClE,eAAO,MAAM,aAAa,iEAAuC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface PropertyPrice {
|
|
2
|
+
amount: number;
|
|
3
|
+
currency: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PropertyLocation {
|
|
6
|
+
city: string;
|
|
7
|
+
state: string;
|
|
8
|
+
address?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PropertyCoordinates {
|
|
11
|
+
lat: number;
|
|
12
|
+
lng: number;
|
|
13
|
+
}
|
|
14
|
+
export type TransactionType = "Venta" | "Desarrollo" | "Renta" | "Remate";
|
|
15
|
+
export type BadgeVariant = "primary" | "secondary" | "success" | "warning" | "error" | "info";
|
|
16
|
+
export interface PropertyTransactionType {
|
|
17
|
+
type: TransactionType;
|
|
18
|
+
variant?: BadgeVariant;
|
|
19
|
+
}
|
|
20
|
+
export interface PropertyFeatures {
|
|
21
|
+
bedrooms: number;
|
|
22
|
+
bathrooms: number;
|
|
23
|
+
parking: number;
|
|
24
|
+
area: number;
|
|
25
|
+
}
|
|
26
|
+
export interface PropertyCardData {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
price: PropertyPrice;
|
|
30
|
+
location: PropertyLocation;
|
|
31
|
+
coordinates: PropertyCoordinates;
|
|
32
|
+
images: string[];
|
|
33
|
+
transactionTypes: PropertyTransactionType[];
|
|
34
|
+
features: PropertyFeatures;
|
|
35
|
+
amenities: string[];
|
|
36
|
+
href?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PropertyCardProps {
|
|
39
|
+
property: PropertyCardData;
|
|
40
|
+
className?: string;
|
|
41
|
+
onLike?: (propertyId: string, isLiked: boolean) => void;
|
|
42
|
+
onImageClick?: (imageIndex: number, propertyId: string) => void;
|
|
43
|
+
showLikeButton?: boolean;
|
|
44
|
+
showNavigation?: boolean;
|
|
45
|
+
imageAspectRatio?: "4/3" | "16/9" | "1/1";
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/property.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1E,MAAM,MAAM,YAAY,GACrB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAC;AAEV,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,mBAAmB,CAAC;IACjC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;IAC5C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;CAC1C"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export interface ThemeColors {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
success: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
error: string;
|
|
7
|
+
info: string;
|
|
8
|
+
background: string;
|
|
9
|
+
surface: string;
|
|
10
|
+
text: string;
|
|
11
|
+
textSecondary: string;
|
|
12
|
+
border: string;
|
|
13
|
+
borderLight: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ThemeShapes {
|
|
16
|
+
borderRadius: {
|
|
17
|
+
small: string;
|
|
18
|
+
medium: string;
|
|
19
|
+
large: string;
|
|
20
|
+
round: string;
|
|
21
|
+
};
|
|
22
|
+
borderWidth: {
|
|
23
|
+
thin: string;
|
|
24
|
+
medium: string;
|
|
25
|
+
thick: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface ThemeTypography {
|
|
29
|
+
fontFamily: string;
|
|
30
|
+
fontSize: {
|
|
31
|
+
xs: string;
|
|
32
|
+
sm: string;
|
|
33
|
+
md: string;
|
|
34
|
+
lg: string;
|
|
35
|
+
xl: string;
|
|
36
|
+
xxl: string;
|
|
37
|
+
};
|
|
38
|
+
fontWeight: {
|
|
39
|
+
light: number;
|
|
40
|
+
regular: number;
|
|
41
|
+
medium: number;
|
|
42
|
+
bold: number;
|
|
43
|
+
};
|
|
44
|
+
lineHeight: {
|
|
45
|
+
tight: number;
|
|
46
|
+
normal: number;
|
|
47
|
+
relaxed: number;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ThemeSpacing {
|
|
51
|
+
xs: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
xl: string;
|
|
56
|
+
xxl: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ThemeShadows {
|
|
59
|
+
none: string;
|
|
60
|
+
small: string;
|
|
61
|
+
medium: string;
|
|
62
|
+
large: string;
|
|
63
|
+
xl: string;
|
|
64
|
+
}
|
|
65
|
+
export interface Theme {
|
|
66
|
+
name: string;
|
|
67
|
+
colors: ThemeColors;
|
|
68
|
+
shapes: ThemeShapes;
|
|
69
|
+
typography: ThemeTypography;
|
|
70
|
+
spacing: ThemeSpacing;
|
|
71
|
+
shadows: ThemeShadows;
|
|
72
|
+
}
|
|
73
|
+
export type ThemeName = "light" | "dark" | "corporate" | "minimal" | string;
|
|
74
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/theme.ts"],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AY;IAC5B,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;CACZ;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
export declare const chipVariants: (props?: ({
|
|
3
|
+
variant?: "secondary" | "default" | "outline" | "ghost" | "selected" | null | undefined;
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type ChipVariantProps = VariantProps<typeof chipVariants>;
|
|
7
|
+
//# sourceMappingURL=chip-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-variants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/ui/chip/chip-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;;8EAyBxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ChipVariantProps } from "./chip-variants";
|
|
3
|
+
export interface ChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ChipVariantProps {
|
|
4
|
+
/** Icon to display before the label */
|
|
5
|
+
icon?: string | React.ReactNode;
|
|
6
|
+
/** Whether the chip is selected/active */
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
/** Whether the chip can be dismissed */
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
/** Callback when chip is dismissed */
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export { Chip };
|
|
15
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../../../src/shared/ui/chip/chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AAEtE,MAAM,WAAW,SAChB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACpD,gBAAgB;IACjB,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,IAAI,qFAoDT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chip Component - Public API
|
|
3
|
+
* @module shared/ui/chip
|
|
4
|
+
*/
|
|
5
|
+
export type { ChipProps } from "./chip";
|
|
6
|
+
export { Chip } from "./chip";
|
|
7
|
+
export type { ChipVariantProps } from "./chip-variants";
|
|
8
|
+
export { chipVariants } from "./chip-variants";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/ui/chip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme Provider
|
|
3
|
+
* @layer shared
|
|
4
|
+
* @description Cross-cutting theme management for the design system
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
interface ThemeProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/ui/theme/theme-provider.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,kBAAkB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAYtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/test/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EntityDirectory Widget - Public API
|
|
3
|
+
* @module widgets/entity-directory
|
|
4
|
+
*/
|
|
5
|
+
export type { EntityDirectoryEmptyStateProps } from "./ui/empty-state";
|
|
6
|
+
export { EntityDirectoryEmptyState } from "./ui/empty-state";
|
|
7
|
+
export type { EntityDirectoryProps } from "./ui/entity-directory";
|
|
8
|
+
export { EntityDirectory } from "./ui/entity-directory";
|
|
9
|
+
export type { EntityDirectoryErrorStateProps } from "./ui/error-state";
|
|
10
|
+
export { EntityDirectoryErrorState } from "./ui/error-state";
|
|
11
|
+
export type { EntityDirectoryHeaderProps } from "./ui/header";
|
|
12
|
+
export { EntityDirectoryHeader } from "./ui/header";
|
|
13
|
+
export type { EntityDirectoryListProps } from "./ui/list";
|
|
14
|
+
export { EntityDirectoryList } from "./ui/list";
|
|
15
|
+
export type { EntityDirectoryListItemProps } from "./ui/list-item";
|
|
16
|
+
export { EntityDirectoryListItem } from "./ui/list-item";
|
|
17
|
+
export type { EntityDirectoryLoadingStateProps } from "./ui/loading-state";
|
|
18
|
+
export { EntityDirectoryLoadingState } from "./ui/loading-state";
|
|
19
|
+
export type { EntityDirectorySearchFilterProps } from "./ui/search-filter";
|
|
20
|
+
export { EntityDirectorySearchFilter } from "./ui/search-filter";
|
|
21
|
+
export type { EntityDirectoryTableHeaderProps } from "./ui/table-header";
|
|
22
|
+
export { EntityDirectoryTableHeader } from "./ui/table-header";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widgets/entity-directory/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,YAAY,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EntityDirectory Empty State Subcomponent
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface EntityDirectoryEmptyStateProps {
|
|
6
|
+
/** Empty state message */
|
|
7
|
+
message?: string;
|
|
8
|
+
/** Optional icon */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
/** Optional action */
|
|
11
|
+
action?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
};
|
|
15
|
+
/** CSS class name */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const EntityDirectoryEmptyState: React.ForwardRefExoticComponent<EntityDirectoryEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export { EntityDirectoryEmptyState };
|
|
20
|
+
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/entity-directory/ui/empty-state.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,8BAA8B;IAC9C,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sBAAsB;IACtB,MAAM,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACpB,CAAC;IACF,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,yBAAyB,uGA6B7B,CAAC;AAGH,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EntityDirectory Widget - Main Composition
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import type { Entity, EntityCategory, EntitySort } from "../../../entities/entity";
|
|
6
|
+
export interface EntityDirectoryProps {
|
|
7
|
+
/** List of entities to display */
|
|
8
|
+
entities: Entity[];
|
|
9
|
+
/** Available categories for filtering */
|
|
10
|
+
categories?: EntityCategory[];
|
|
11
|
+
/** Directory title */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Optional description below title */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Currently active category filter (controlled) */
|
|
16
|
+
activeCategory?: string | null;
|
|
17
|
+
/** Callback when category changes */
|
|
18
|
+
onCategoryChange?: (categoryId: string | null) => void;
|
|
19
|
+
/** Show category count badges */
|
|
20
|
+
showCategoryCount?: boolean;
|
|
21
|
+
/** Function to get count for each category */
|
|
22
|
+
getCategoryCount?: (categoryId: string) => number;
|
|
23
|
+
/** Enable search functionality */
|
|
24
|
+
enableSearch?: boolean;
|
|
25
|
+
/** Search query (controlled) */
|
|
26
|
+
searchQuery?: string;
|
|
27
|
+
/** Callback when search query changes */
|
|
28
|
+
onSearchChange?: (query: string) => void;
|
|
29
|
+
/** Search placeholder text */
|
|
30
|
+
searchPlaceholder?: string;
|
|
31
|
+
/** Enable sorting */
|
|
32
|
+
sortable?: boolean;
|
|
33
|
+
/** Current sort state (controlled) */
|
|
34
|
+
sort?: EntitySort | null;
|
|
35
|
+
/** Callback when sort changes */
|
|
36
|
+
onSortChange?: (sort: EntitySort) => void;
|
|
37
|
+
/** Show icon column */
|
|
38
|
+
showIcons?: boolean;
|
|
39
|
+
/** Show category badges in list */
|
|
40
|
+
showCategoryBadges?: boolean;
|
|
41
|
+
/** Show metric column */
|
|
42
|
+
showMetric?: boolean;
|
|
43
|
+
/** Metric column label (e.g., "Distance") */
|
|
44
|
+
metricLabel?: string;
|
|
45
|
+
/** Compact mode (reduced spacing) */
|
|
46
|
+
compact?: boolean;
|
|
47
|
+
/** Loading state */
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
/** Error state */
|
|
50
|
+
error?: string | Error;
|
|
51
|
+
/** Empty state custom message */
|
|
52
|
+
emptyMessage?: string;
|
|
53
|
+
/** Error state retry callback */
|
|
54
|
+
onRetry?: () => void;
|
|
55
|
+
/** Custom empty state component */
|
|
56
|
+
emptyState?: React.ReactNode;
|
|
57
|
+
/** Custom error state component */
|
|
58
|
+
errorState?: React.ReactNode;
|
|
59
|
+
/** Custom loading state component */
|
|
60
|
+
loadingState?: React.ReactNode;
|
|
61
|
+
/** Custom list item renderer */
|
|
62
|
+
renderItem?: (entity: Entity) => React.ReactNode;
|
|
63
|
+
/** CSS class name */
|
|
64
|
+
className?: string;
|
|
65
|
+
/** Inline styles */
|
|
66
|
+
style?: React.CSSProperties;
|
|
67
|
+
}
|
|
68
|
+
declare const EntityDirectory: React.ForwardRefExoticComponent<EntityDirectoryProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
export { EntityDirectory };
|
|
70
|
+
//# sourceMappingURL=entity-directory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-directory.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/entity-directory/ui/entity-directory.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACX,MAAM,EACN,cAAc,EACd,UAAU,EACV,MAAM,0BAA0B,CAAC;AAUlC,MAAM,WAAW,oBAAoB;IAEpC,kCAAkC;IAClC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAEnB,yCAAyC;IACzC,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAG9B,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IAEd,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEvD,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAElD,kCAAkC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yCAAyC;IACzC,cAAc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,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EntityDirectory Error State Subcomponent
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface EntityDirectoryErrorStateProps {
|
|
6
|
+
/** Error message */
|
|
7
|
+
error: string | Error;
|
|
8
|
+
/** Optional retry callback */
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const EntityDirectoryErrorState: React.ForwardRefExoticComponent<EntityDirectoryErrorStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { EntityDirectoryErrorState };
|
|
15
|
+
//# sourceMappingURL=error-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-state.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/entity-directory/ui/error-state.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,8BAA8B;IAC9C,oBAAoB;IACpB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC;IACtB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,yBAAyB,uGAgC7B,CAAC;AAGH,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EntityDirectory Header Subcomponent
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
export interface EntityDirectoryHeaderProps {
|
|
6
|
+
/** Header title */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Optional description */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** CSS class name */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const EntityDirectoryHeader: React.ForwardRefExoticComponent<EntityDirectoryHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { EntityDirectoryHeader };
|
|
15
|
+
//# sourceMappingURL=header.d.ts.map
|