@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/modal/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,iBAAiB,EACjB,UAAU,EACV,qBAAqB,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/modal/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,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
closeOnOverlayClick?: boolean;
|
|
10
|
+
closeOnEscape?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
13
|
+
export interface ModalWithActionsProps extends Omit<ModalProps, "children"> {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ModalWithActions: React.FC<ModalWithActionsProps>;
|
|
18
|
+
export interface ConfirmModalProps {
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onConfirm: () => void;
|
|
22
|
+
title: string;
|
|
23
|
+
message: string;
|
|
24
|
+
confirmText?: string;
|
|
25
|
+
cancelText?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const ConfirmModal: React.FC<ConfirmModalProps>;
|
|
28
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../../src/features/modal/ui/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAiBD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwGtC,CAAC;AAGF,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAC1E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAa5D,CAAC;AAGF,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0BpD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select Feature
|
|
3
|
+
* Reusable form select/dropdown component
|
|
4
|
+
*/
|
|
5
|
+
export type { SelectHelperTextVariantProps, SelectLabelVariantProps, SelectVariantProps, } from "./lib/select-variants";
|
|
6
|
+
export { selectHelperTextVariants, selectLabelVariants, selectVariants, } from "./lib/select-variants";
|
|
7
|
+
export type { SelectOption, SelectProps } from "./ui/select";
|
|
8
|
+
export { Select } from "./ui/select";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/select/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,GACd,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select Component Variants
|
|
3
|
+
* CVA-based styling for select components
|
|
4
|
+
*/
|
|
5
|
+
import { type VariantProps } from "class-variance-authority";
|
|
6
|
+
export declare const selectVariants: (props?: ({
|
|
7
|
+
variant?: "success" | "error" | "default" | null | undefined;
|
|
8
|
+
selectSize?: "default" | "sm" | "lg" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const selectLabelVariants: (props?: ({
|
|
11
|
+
variant?: "success" | "error" | "default" | null | undefined;
|
|
12
|
+
required?: boolean | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
+
export declare const selectHelperTextVariants: (props?: ({
|
|
15
|
+
variant?: "success" | "error" | "default" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
|
+
export type SelectVariantProps = VariantProps<typeof selectVariants>;
|
|
18
|
+
export type SelectLabelVariantProps = VariantProps<typeof selectLabelVariants>;
|
|
19
|
+
export type SelectHelperTextVariantProps = VariantProps<typeof selectHelperTextVariants>;
|
|
20
|
+
//# sourceMappingURL=select-variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-variants.d.ts","sourceRoot":"","sources":["../../../../../src/features/select/lib/select-variants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,cAAc;;;8EA2B1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;8EAmB/B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;8EAWnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC/E,MAAM,MAAM,4BAA4B,GAAG,YAAY,CACtD,OAAO,wBAAwB,CAC/B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select Component
|
|
3
|
+
* A reusable form select/dropdown component with label and helper text support
|
|
4
|
+
*/
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { type SelectVariantProps } from "../lib/select-variants";
|
|
7
|
+
export interface SelectOption {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size">, SelectVariantProps {
|
|
13
|
+
/** Label text for the select */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Helper text displayed below the select */
|
|
16
|
+
helperText?: string;
|
|
17
|
+
/** Error message (overrides helperText when present) */
|
|
18
|
+
error?: string;
|
|
19
|
+
/** Whether the select is required */
|
|
20
|
+
required?: boolean;
|
|
21
|
+
/** Select options */
|
|
22
|
+
options: SelectOption[];
|
|
23
|
+
/** Placeholder option text */
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
/** Container class name */
|
|
26
|
+
containerClassName?: string;
|
|
27
|
+
/** Label class name */
|
|
28
|
+
labelClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
31
|
+
export { Select };
|
|
32
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/features/select/ui/select.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACN,KAAK,kBAAkB,EAIvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,WAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,EAClE,kBAAkB;IACnB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,MAAM,uFAsFX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/text/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/text/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,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "body" | "body-sm" | "body-lg" | "caption" | "label";
|
|
3
|
+
export type TextColor = "primary" | "secondary" | "muted" | "error" | "success" | "warning";
|
|
4
|
+
export interface TextProps {
|
|
5
|
+
variant?: TextVariant;
|
|
6
|
+
color?: TextColor;
|
|
7
|
+
weight?: "light" | "normal" | "medium" | "semibold" | "bold";
|
|
8
|
+
align?: "left" | "center" | "right" | "justify";
|
|
9
|
+
truncate?: boolean;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
}
|
|
14
|
+
export declare const Text: React.FC<TextProps>;
|
|
15
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../src/features/text/ui/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,WAAW,GACpB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,CAAC;AAEX,MAAM,MAAM,SAAS,GAClB,SAAS,GACT,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEb,MAAM,WAAW,SAAS;IACzB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACvB;AAkFD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4BpC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HomLista Design System
|
|
3
|
+
* @architecture Feature-Sliced Design (FSD)
|
|
4
|
+
* @description Public API exports following FSD layer structure
|
|
5
|
+
*/
|
|
6
|
+
export type { Entity, EntityCategory, EntityDirectoryColumn, EntitySort, } from "./entities/entity";
|
|
7
|
+
export { countEntitiesByCategory, filterEntitiesByCategory, sortEntities, } from "./entities/entity";
|
|
8
|
+
export type { LoanProgram, LoanProgramOption, MortgageInput, MortgageResult, } from "./entities/mortgage";
|
|
9
|
+
export { calculateMortgage, formatCurrency, formatPercentage, validateMortgageInput, } from "./entities/mortgage";
|
|
10
|
+
export type { BadgeVariant, Property, PropertyCoordinates, PropertyFeatures, PropertyLocation, PropertyPrice, PropertyTransactionType, TransactionType as PropertyTransactionTypeEnum, } from "./entities/property";
|
|
11
|
+
export type { ButtonProps } from "./features/button";
|
|
12
|
+
export { Button } from "./features/button";
|
|
13
|
+
export type { CardProps } from "./features/card";
|
|
14
|
+
export { Card, CompoundCard } from "./features/card";
|
|
15
|
+
export type { ChartSegment, DonutChartProps } from "./features/donut-chart";
|
|
16
|
+
export { DonutChart } from "./features/donut-chart";
|
|
17
|
+
export type { CategoryChipsProps, EntityFilterOptions, UseEntityFilterReturn, } from "./features/entity-filtering";
|
|
18
|
+
export { CategoryChips, useEntityFilter } from "./features/entity-filtering";
|
|
19
|
+
export type { InputProps } from "./features/input";
|
|
20
|
+
export { Input } from "./features/input";
|
|
21
|
+
export type { ConfirmModalProps, ModalProps, ModalWithActionsProps, } from "./features/modal";
|
|
22
|
+
export { ConfirmModal, Modal, ModalWithActions } from "./features/modal";
|
|
23
|
+
export type { SelectOption, SelectProps } from "./features/select";
|
|
24
|
+
export { Select } from "./features/select";
|
|
25
|
+
export type { TextProps } from "./features/text";
|
|
26
|
+
export { Text } from "./features/text";
|
|
27
|
+
export type { PageLayoutProps } from "./pages/layouts";
|
|
28
|
+
export { AuthLayout, DashboardLayout, MarketingLayout, PageLayout, } from "./pages/layouts";
|
|
29
|
+
export type { EntityDirectoryProps } from "./widgets/entity-directory";
|
|
30
|
+
export { EntityDirectory } from "./widgets/entity-directory";
|
|
31
|
+
export type { HeaderProps } from "./widgets/header";
|
|
32
|
+
export { Header } from "./widgets/header";
|
|
33
|
+
export type { HeroBannerContent, HeroBannerLayout, HeroBannerProps, HeroBannerTemplate, HeroBannerTheme, HeroMetric, } from "./widgets/hero-banner";
|
|
34
|
+
export { HeroBanner } from "./widgets/hero-banner";
|
|
35
|
+
export type { MortgageCalculatorProps } from "./widgets/mortgage-calculator";
|
|
36
|
+
export { MortgageCalculator } from "./widgets/mortgage-calculator";
|
|
37
|
+
export type { PropertyCardProps } from "./widgets/property-card";
|
|
38
|
+
export { PropertyCard } from "./widgets/property-card";
|
|
39
|
+
export type { PropertyGalleryProps } from "./widgets/property-gallery";
|
|
40
|
+
export { PropertyGallery } from "./widgets/property-gallery";
|
|
41
|
+
export type { SearchCriteria, SearchFeatureProps, SearchFormData, SearchOption, SearchSubmitHandler, } from "./widgets/search-feature";
|
|
42
|
+
export { SearchFeature } from "./widgets/search-feature";
|
|
43
|
+
export type { AvailableThemes } from "./shared/config/themes";
|
|
44
|
+
export * from "./shared/lib/a11y";
|
|
45
|
+
export * from "./shared/lib/design-system";
|
|
46
|
+
export { useTheme } from "./shared/lib/theme/use-theme";
|
|
47
|
+
export { cn } from "./shared/lib/utils";
|
|
48
|
+
export { $theme, $themeColors, $themeName, resetTheme, setCustomTheme, setTheme, } from "./shared/model/theme-store";
|
|
49
|
+
export type { Theme, ThemeName } from "./shared/types/theme";
|
|
50
|
+
export type { ChipProps } from "./shared/ui/chip";
|
|
51
|
+
export { Chip } from "./shared/ui/chip";
|
|
52
|
+
export { ThemeProvider } from "./shared/ui/theme/theme-provider";
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACX,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,UAAU,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,GACZ,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,GACrB,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EACX,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACvB,eAAe,IAAI,2BAA2B,GAC9C,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EACX,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC7E,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAk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M,4BAA4B,CAAC;AAC7D,YAAY,EACX,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,mBAAmB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMzD,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/layouts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACN,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,GACV,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/pages/layouts/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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page Layouts
|
|
3
|
+
* @layer pages
|
|
4
|
+
* @description Page-level layout components for different application contexts
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
export interface PageLayoutProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
header?: React.ReactNode;
|
|
10
|
+
sidebar?: React.ReactNode;
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
padding?: "none" | "sm" | "md" | "lg";
|
|
13
|
+
}
|
|
14
|
+
export declare const PageLayout: React.FC<PageLayoutProps>;
|
|
15
|
+
export declare const DashboardLayout: React.FC<{
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
header: React.ReactNode;
|
|
18
|
+
sidebar: React.ReactNode;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const AuthLayout: React.FC<{
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
title?: string;
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const MarketingLayout: React.FC<{
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
header?: React.ReactNode;
|
|
28
|
+
footer?: React.ReactNode;
|
|
29
|
+
}>;
|
|
30
|
+
//# sourceMappingURL=page-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../../../src/pages/layouts/ui/page-layout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACtC;AAeD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoChD,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAIA,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAkBA,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAIA,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Theme } from "../types/theme";
|
|
2
|
+
export declare const lightTheme: Theme;
|
|
3
|
+
export declare const darkTheme: Theme;
|
|
4
|
+
export declare const corporateTheme: Theme;
|
|
5
|
+
export declare const minimalTheme: Theme;
|
|
6
|
+
export declare const themes: {
|
|
7
|
+
readonly light: Theme;
|
|
8
|
+
readonly dark: Theme;
|
|
9
|
+
readonly corporate: Theme;
|
|
10
|
+
readonly minimal: Theme;
|
|
11
|
+
};
|
|
12
|
+
export type AvailableThemes = typeof themes;
|
|
13
|
+
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../src/shared/config/themes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,eAAO,MAAM,UAAU,EAAE,KAmExB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAmEvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAkE5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAkE1B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,MAAM,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Tokens System - Industry Best Practice
|
|
3
|
+
* Centralized design tokens for consistent, scalable design systems
|
|
4
|
+
* Following Material Design, IBM Carbon, and Chakra UI patterns
|
|
5
|
+
*/
|
|
6
|
+
export interface DesignTokens {
|
|
7
|
+
colors: {
|
|
8
|
+
brand: {
|
|
9
|
+
primary: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
accent: string;
|
|
12
|
+
};
|
|
13
|
+
semantic: {
|
|
14
|
+
success: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
error: string;
|
|
17
|
+
info: string;
|
|
18
|
+
};
|
|
19
|
+
neutral: {
|
|
20
|
+
gray: {
|
|
21
|
+
50: string;
|
|
22
|
+
100: string;
|
|
23
|
+
200: string;
|
|
24
|
+
300: string;
|
|
25
|
+
400: string;
|
|
26
|
+
500: string;
|
|
27
|
+
600: string;
|
|
28
|
+
700: string;
|
|
29
|
+
800: string;
|
|
30
|
+
900: string;
|
|
31
|
+
};
|
|
32
|
+
white: string;
|
|
33
|
+
black: string;
|
|
34
|
+
};
|
|
35
|
+
transaction: {
|
|
36
|
+
venta: string;
|
|
37
|
+
desarrollo: string;
|
|
38
|
+
renta: string;
|
|
39
|
+
remate: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
typography: {
|
|
43
|
+
fontFamily: {
|
|
44
|
+
primary: string;
|
|
45
|
+
secondary: string;
|
|
46
|
+
mono: string;
|
|
47
|
+
};
|
|
48
|
+
fontSize: {
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
xl: string;
|
|
54
|
+
"2xl": string;
|
|
55
|
+
"3xl": string;
|
|
56
|
+
"4xl": string;
|
|
57
|
+
"5xl": string;
|
|
58
|
+
};
|
|
59
|
+
fontWeight: {
|
|
60
|
+
thin: number;
|
|
61
|
+
light: number;
|
|
62
|
+
regular: number;
|
|
63
|
+
medium: number;
|
|
64
|
+
semibold: number;
|
|
65
|
+
bold: number;
|
|
66
|
+
extrabold: number;
|
|
67
|
+
black: number;
|
|
68
|
+
};
|
|
69
|
+
lineHeight: {
|
|
70
|
+
tight: number;
|
|
71
|
+
snug: number;
|
|
72
|
+
normal: number;
|
|
73
|
+
relaxed: number;
|
|
74
|
+
loose: number;
|
|
75
|
+
};
|
|
76
|
+
letterSpacing: {
|
|
77
|
+
tighter: string;
|
|
78
|
+
tight: string;
|
|
79
|
+
normal: string;
|
|
80
|
+
wide: string;
|
|
81
|
+
wider: string;
|
|
82
|
+
widest: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
spacing: {
|
|
86
|
+
0: string;
|
|
87
|
+
px: string;
|
|
88
|
+
0.5: string;
|
|
89
|
+
1: string;
|
|
90
|
+
1.5: string;
|
|
91
|
+
2: string;
|
|
92
|
+
2.5: string;
|
|
93
|
+
3: string;
|
|
94
|
+
3.5: string;
|
|
95
|
+
4: string;
|
|
96
|
+
5: string;
|
|
97
|
+
6: string;
|
|
98
|
+
7: string;
|
|
99
|
+
8: string;
|
|
100
|
+
9: string;
|
|
101
|
+
10: string;
|
|
102
|
+
12: string;
|
|
103
|
+
16: string;
|
|
104
|
+
20: string;
|
|
105
|
+
24: string;
|
|
106
|
+
32: string;
|
|
107
|
+
40: string;
|
|
108
|
+
48: string;
|
|
109
|
+
56: string;
|
|
110
|
+
64: string;
|
|
111
|
+
};
|
|
112
|
+
borderRadius: {
|
|
113
|
+
none: string;
|
|
114
|
+
sm: string;
|
|
115
|
+
md: string;
|
|
116
|
+
lg: string;
|
|
117
|
+
xl: string;
|
|
118
|
+
"2xl": string;
|
|
119
|
+
"3xl": string;
|
|
120
|
+
full: string;
|
|
121
|
+
};
|
|
122
|
+
shadows: {
|
|
123
|
+
none: string;
|
|
124
|
+
sm: string;
|
|
125
|
+
md: string;
|
|
126
|
+
lg: string;
|
|
127
|
+
xl: string;
|
|
128
|
+
"2xl": string;
|
|
129
|
+
inner: string;
|
|
130
|
+
outline: string;
|
|
131
|
+
};
|
|
132
|
+
borderWidth: {
|
|
133
|
+
0: string;
|
|
134
|
+
1: string;
|
|
135
|
+
2: string;
|
|
136
|
+
4: string;
|
|
137
|
+
8: string;
|
|
138
|
+
};
|
|
139
|
+
breakpoints: {
|
|
140
|
+
sm: string;
|
|
141
|
+
md: string;
|
|
142
|
+
lg: string;
|
|
143
|
+
xl: string;
|
|
144
|
+
"2xl": string;
|
|
145
|
+
};
|
|
146
|
+
zIndex: {
|
|
147
|
+
0: number;
|
|
148
|
+
10: number;
|
|
149
|
+
20: number;
|
|
150
|
+
30: number;
|
|
151
|
+
40: number;
|
|
152
|
+
50: number;
|
|
153
|
+
auto: string;
|
|
154
|
+
};
|
|
155
|
+
transition: {
|
|
156
|
+
duration: {
|
|
157
|
+
75: string;
|
|
158
|
+
100: string;
|
|
159
|
+
150: string;
|
|
160
|
+
200: string;
|
|
161
|
+
300: string;
|
|
162
|
+
500: string;
|
|
163
|
+
700: string;
|
|
164
|
+
1000: string;
|
|
165
|
+
};
|
|
166
|
+
timing: {
|
|
167
|
+
linear: string;
|
|
168
|
+
in: string;
|
|
169
|
+
out: string;
|
|
170
|
+
"in-out": string;
|
|
171
|
+
bounce: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
export declare const designTokens: DesignTokens;
|
|
176
|
+
export declare const getColor: (path: string) => Record<string, unknown>;
|
|
177
|
+
export declare const getSpacing: (key: keyof DesignTokens["spacing"]) => string;
|
|
178
|
+
export declare const getTypography: (category: keyof DesignTokens["typography"], key: string) => string | number;
|
|
179
|
+
export declare const getShadow: (key: keyof DesignTokens["shadows"]) => string;
|
|
180
|
+
export declare const getBorderRadius: (key: keyof DesignTokens["borderRadius"]) => string;
|
|
181
|
+
export declare const generateCSSCustomProperties: (tokens?: DesignTokens) => Record<string, string>;
|
|
182
|
+
export type ColorToken = keyof typeof designTokens.colors.brand | keyof typeof designTokens.colors.semantic;
|
|
183
|
+
export type SpacingToken = keyof typeof designTokens.spacing;
|
|
184
|
+
export type TypographyToken = keyof typeof designTokens.typography.fontSize;
|
|
185
|
+
export type ShadowToken = keyof typeof designTokens.shadows;
|
|
186
|
+
export type BorderRadiusToken = keyof typeof designTokens.borderRadius;
|
|
187
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/config/tokens/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,YAAY;IAE5B,MAAM,EAAE;QAEP,KAAK,EAAE;YACN,OAAO,EAAE,MAAM,CAAC;YAChB,SAAS,EAAE,MAAM,CAAC;YAClB,MAAM,EAAE,MAAM,CAAC;SACf,CAAC;QAGF,QAAQ,EAAE;YACT,OAAO,EAAE,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;QAGF,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,EAAE,EAAE,MAAM,CAAC;gBACX,GAAG,EAAE,MAAM,CAAC;gBACZ,GAAG,EAAE,MAAM,CAAC;gBACZ,GAAG,EAAE,MAAM,CAAC;gB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
+
export * from "./lib/a11y";
|
|
8
|
+
export * from "./lib/design-system";
|
|
9
|
+
export * from "./lib/performance";
|
|
10
|
+
export { useTheme } from "./lib/theme/use-theme";
|
|
11
|
+
export { cn } from "./lib/utils";
|
|
12
|
+
export { $theme, $themeColors, $themeName, $themeShadows, $themeShapes, $themeSpacing, $themeTypography, resetTheme, setCustomTheme, setTheme, } from "./model/theme-store";
|
|
13
|
+
export type { Theme, ThemeName } from "./types/theme";
|
|
14
|
+
export { ThemeProvider } from "./ui/theme/theme-provider";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,UAAU,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,GACR,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/a11y/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAOA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/a11y/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessibility Utilities - Industry Best Practice
|
|
3
|
+
* WCAG 2.1 AA Compliance - Screen reader support, keyboard navigation, focus management
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
export declare const useFocusTrap: (isActive: boolean) => React.RefObject<HTMLElement | null>;
|
|
7
|
+
export declare const getAriaProps: (props: {
|
|
8
|
+
label?: string;
|
|
9
|
+
labelledBy?: string;
|
|
10
|
+
describedBy?: string;
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
hasPopup?: boolean | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
13
|
+
current?: boolean | "page" | "step" | "location" | "date" | "time";
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
checked?: boolean | "mixed";
|
|
16
|
+
pressed?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
invalid?: boolean;
|
|
20
|
+
busy?: boolean;
|
|
21
|
+
live?: "off" | "assertive" | "polite";
|
|
22
|
+
atomic?: boolean;
|
|
23
|
+
relevant?: "additions" | "removals" | "text" | "all";
|
|
24
|
+
}) => Record<string, string | number | boolean>;
|
|
25
|
+
export declare const announceToScreenReader: (message: string, priority?: "polite" | "assertive") => void;
|
|
26
|
+
export declare const useKeyboardNavigation: <T>(items: T[], onSelect: (item: T, index: number) => void, loop?: boolean) => {
|
|
27
|
+
handleKeyDown: (e: React.KeyboardEvent, currentIndex: number) => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const useFocusVisible: () => boolean;
|
|
30
|
+
export declare const getContrastRatio: (foreground: string, background: string) => number;
|
|
31
|
+
export declare const hasMinimumContrast: (foreground: string, background: string, level?: "AA" | "AAA") => boolean;
|
|
32
|
+
export declare const usePrefersReducedMotion: () => boolean;
|
|
33
|
+
export declare const usePrefersHighContrast: () => boolean;
|
|
34
|
+
export declare const useFormField: (props: {
|
|
35
|
+
id?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
error?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
required?: boolean;
|
|
40
|
+
}) => {
|
|
41
|
+
fieldId: string;
|
|
42
|
+
labelId: string;
|
|
43
|
+
errorId: string | undefined;
|
|
44
|
+
descriptionId: string | undefined;
|
|
45
|
+
ariaDescribedBy: string | undefined;
|
|
46
|
+
fieldProps: {
|
|
47
|
+
id: string;
|
|
48
|
+
"aria-labelledby": string;
|
|
49
|
+
"aria-describedby": string | undefined;
|
|
50
|
+
"aria-required": boolean | undefined;
|
|
51
|
+
"aria-invalid": boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/shared/lib/a11y/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,eAAO,MAAM,YAAY,GAAI,UAAU,OAAO,wCAkD7C,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,OAAO;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAA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