@contractspec/lib.ui-kit 1.46.2 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/alert-dialog.d.ts +11 -11
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.d.ts +5 -5
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +1 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button.d.ts +5 -5
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/collapsible.d.ts +9 -9
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts +10 -10
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/fab.d.ts +3 -3
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/link.d.ts +2 -2
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-overlay.d.ts +2 -2
- package/dist/ui/loading-screen.d.ts +2 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts +12 -12
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.js +0 -2
- package/dist/ui/organisms/ListPage/ListPage.js.map +1 -1
- package/dist/ui/page-header.d.ts +2 -2
- package/dist/ui/password-strength.d.ts +2 -2
- package/dist/ui/password-strength.js.map +1 -1
- package/dist/ui/popover.d.ts +8 -8
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/select.d.ts +13 -13
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/stack.d.ts +8 -8
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stepper.d.ts +4 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/table.d.ts +8 -8
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +11 -11
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle.d.ts +6 -6
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +6 -6
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/useColorScheme.d.ts +2 -2
- package/dist/ui/useListState.js.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/package.json +13 -10
package/dist/ui/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","names":[],"sources":["../../ui/form.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;cAqBM,4BAAI,kDAAA,qBAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,OAAA,CAAA,GAAA,CAAA;cAaJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;GAGjD,gBAAgB,cAAc,WAAM,
|
|
1
|
+
{"version":3,"file":"form.d.ts","names":[],"sources":["../../ui/form.tsx"],"sourcesContent":[],"mappings":";;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,cA5GnB,CAAA,GAAA,CAAA,CAAA,EA4GsC,kBAAA,CAAA,GAAA,CAAA,OAAA,GA5GtC,IAAA"}
|
package/dist/ui/hover-card.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_native0 from "react-native";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import * as _rn_primitives_hover_card0 from "@rn-primitives/hover-card";
|
|
5
5
|
|
|
6
6
|
//#region ui/hover-card.d.ts
|
|
7
|
-
declare const HoverCard: React$1.ForwardRefExoticComponent<
|
|
7
|
+
declare const HoverCard: React$1.ForwardRefExoticComponent<react_native0.ViewProps & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & {
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
11
|
openDelay?: number;
|
|
12
12
|
closeDelay?: number;
|
|
13
|
-
} & React$1.RefAttributes<
|
|
14
|
-
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
13
|
+
} & React$1.RefAttributes<react_native0.View>>;
|
|
14
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<Omit<react_native0.PressableProps & React$1.RefAttributes<react_native0.View>, "ref"> & {
|
|
15
15
|
asChild?: boolean;
|
|
16
16
|
} & {
|
|
17
17
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -24,7 +24,7 @@ declare function HoverCardContent({
|
|
|
24
24
|
...props
|
|
25
25
|
}: _rn_primitives_hover_card0.ContentProps & {
|
|
26
26
|
ref?: React$1.RefObject<_rn_primitives_hover_card0.ContentRef>;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
30
30
|
//# sourceMappingURL=hover-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.d.ts","names":[],"sources":["../../ui/hover-card.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,WAAS,OAAA,CAAA,0BAA0B,
|
|
1
|
+
{"version":3,"file":"hover-card.d.ts","names":[],"sources":["../../ui/hover-card.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,WAAS,OAAA,CAAA,0BAA0B,aAAA,CAA1B,SAAA;;;;EAAT,SAAA,CAAA,EAAmC,MAAA;EAAA,UAAA,CAA1B,EAAA,MAAA;CAAA,wBAAA,CAAA,aAAA,CAAA,IAAA,CAAA,CAAA;cAET,kBAAgB,OAAA,CAAA,0BAAA,KAA6B,aAAA,CAA7B,cAAA,GAAA,OAAA,CAAA,cAAA,aAAA,CAAA,IAAA;EAFP,OAAA,CAAA,EAAA,OAAA;CAAA,GAAA;EAET,SAAA,CAAA,EAAA,CAAA,EAAA,uBAA6C,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAA7B,EAAA,uBAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,uCAAA,CAAA;iBAEb,gBAAA,CAFa;EAAA,SAAA;EAAA,KAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAOnB,0BAAA,CAAmB,YAPA,GAAA;EAAA,GAAA,CAAA,EAQd,OAAA,CAAM,SARQ,CAQE,0BAAA,CAAmB,UARrB,CAAA;IASrB,kBAAA,CAAA,GAAA,CAAA"}
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { TextInput, TextInputProps } from "react-native";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/input.d.ts
|
|
6
6
|
declare function Input({
|
|
@@ -9,7 +9,7 @@ declare function Input({
|
|
|
9
9
|
...props
|
|
10
10
|
}: TextInputProps & {
|
|
11
11
|
ref?: React$1.RefObject<TextInput>;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime10.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Input };
|
|
15
15
|
//# sourceMappingURL=input.d.ts.map
|
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","names":[],"sources":["../../ui/input.tsx"],"sourcesContent":[],"mappings":";;;;;iBAIS,KAAA;;;;GAIN;QACK,OAAA,CAAM,UAAU;IACvB,
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../ui/input.tsx"],"sourcesContent":[],"mappings":";;;;;iBAIS,KAAA;;;;GAIN;QACK,OAAA,CAAM,UAAU;IACvB,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/ui/label.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
import * as LabelPrimitive from "@rn-primitives/label";
|
|
3
3
|
|
|
4
4
|
//#region ui/label.d.ts
|
|
@@ -10,7 +10,7 @@ declare function Label({
|
|
|
10
10
|
onPressOut,
|
|
11
11
|
disabled,
|
|
12
12
|
...props
|
|
13
|
-
}: LabelPrimitive.TextProps & React.RefAttributes<LabelPrimitive.TextRef>):
|
|
13
|
+
}: LabelPrimitive.TextProps & React.RefAttributes<LabelPrimitive.TextRef>): react_jsx_runtime19.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Label };
|
|
16
16
|
//# sourceMappingURL=label.d.ts.map
|
package/dist/ui/link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
import { Link as Link$1, LinkProps } from "expo-router";
|
|
4
4
|
|
|
5
5
|
//#region ui/link.d.ts
|
|
@@ -8,7 +8,7 @@ declare function Link({
|
|
|
8
8
|
...props
|
|
9
9
|
}: LinkProps & {
|
|
10
10
|
ref?: React$1.RefObject<typeof Link$1>;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime23.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Link };
|
|
14
14
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "./button.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/loading-button.d.ts
|
|
6
6
|
interface LoadingButtonProps extends ButtonProps {
|
|
@@ -14,7 +14,7 @@ declare function LoadingButton({
|
|
|
14
14
|
children,
|
|
15
15
|
disabled,
|
|
16
16
|
...props
|
|
17
|
-
}: LoadingButtonProps):
|
|
17
|
+
}: LoadingButtonProps): react_jsx_runtime24.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { LoadingButton };
|
|
20
20
|
//# sourceMappingURL=loading-button.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/loading-overlay.d.ts
|
|
4
4
|
interface LoadingOverlayProps {
|
|
@@ -10,7 +10,7 @@ declare function LoadingOverlay({
|
|
|
10
10
|
isVisible,
|
|
11
11
|
title,
|
|
12
12
|
subtitle
|
|
13
|
-
}: LoadingOverlayProps):
|
|
13
|
+
}: LoadingOverlayProps): react_jsx_runtime28.JSX.Element | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { LoadingOverlay };
|
|
16
16
|
//# sourceMappingURL=loading-overlay.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/loading-screen.d.ts
|
|
4
4
|
interface LoadingScreenProps {
|
|
@@ -8,7 +8,7 @@ interface LoadingScreenProps {
|
|
|
8
8
|
declare function LoadingScreen({
|
|
9
9
|
title,
|
|
10
10
|
variant
|
|
11
|
-
}: LoadingScreenProps):
|
|
11
|
+
}: LoadingScreenProps): react_jsx_runtime30.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { LoadingScreen };
|
|
14
14
|
//# sourceMappingURL=loading-screen.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime112 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/marketing/FeatureGrid.d.ts
|
|
5
5
|
interface FeatureItem {
|
|
@@ -15,7 +15,7 @@ declare function FeatureGrid({
|
|
|
15
15
|
items: FeatureItem[];
|
|
16
16
|
columns?: 2 | 3 | 4;
|
|
17
17
|
className?: string;
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime112.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { FeatureGrid, FeatureItem };
|
|
21
21
|
//# sourceMappingURL=FeatureGrid.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/marketing/Hero.d.ts
|
|
5
5
|
declare function Hero({
|
|
@@ -22,7 +22,7 @@ declare function Hero({
|
|
|
22
22
|
onClick?: () => void;
|
|
23
23
|
};
|
|
24
24
|
className?: string;
|
|
25
|
-
}):
|
|
25
|
+
}): react_jsx_runtime113.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { Hero };
|
|
28
28
|
//# sourceMappingURL=Hero.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/marketing/PricingTable.d.ts
|
|
4
4
|
interface PricingTier {
|
|
@@ -19,7 +19,7 @@ declare function PricingTable({
|
|
|
19
19
|
}: {
|
|
20
20
|
tiers: PricingTier[];
|
|
21
21
|
className?: string;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime114.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { PricingTable, PricingTier };
|
|
25
25
|
//# sourceMappingURL=PricingTable.d.ts.map
|
package/dist/ui/menubar.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native6 from "react-native";
|
|
3
3
|
import { TextProps, View } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
5
5
|
import * as MenubarPrimitive from "@rn-primitives/menubar";
|
|
6
6
|
|
|
7
7
|
//#region ui/menubar.d.ts
|
|
8
|
-
declare const MenubarMenu: React$1.ForwardRefExoticComponent<
|
|
8
|
+
declare const MenubarMenu: React$1.ForwardRefExoticComponent<react_native6.ViewProps & {
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
} & {
|
|
11
11
|
value: string | undefined;
|
|
12
12
|
} & React$1.RefAttributes<View>>;
|
|
13
|
-
declare const MenubarGroup: React$1.ForwardRefExoticComponent<
|
|
13
|
+
declare const MenubarGroup: React$1.ForwardRefExoticComponent<react_native6.ViewProps & {
|
|
14
14
|
asChild?: boolean;
|
|
15
15
|
} & React$1.RefAttributes<View>>;
|
|
16
16
|
declare const MenubarPortal: typeof MenubarPrimitive.Portal;
|
|
17
|
-
declare const MenubarSub: React$1.ForwardRefExoticComponent<
|
|
17
|
+
declare const MenubarSub: React$1.ForwardRefExoticComponent<react_native6.ViewProps & {
|
|
18
18
|
asChild?: boolean;
|
|
19
19
|
} & {
|
|
20
20
|
defaultOpen?: boolean;
|
|
21
21
|
open?: boolean;
|
|
22
22
|
onOpenChange?: (value: boolean) => void;
|
|
23
23
|
} & React$1.RefAttributes<View>>;
|
|
24
|
-
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<
|
|
24
|
+
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<react_native6.ViewProps & {
|
|
25
25
|
asChild?: boolean;
|
|
26
26
|
} & {
|
|
27
27
|
value: string | undefined;
|
|
@@ -32,13 +32,13 @@ declare function Menubar({
|
|
|
32
32
|
...props
|
|
33
33
|
}: MenubarPrimitive.RootProps & {
|
|
34
34
|
ref?: React$1.RefObject<MenubarPrimitive.RootRef>;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
36
36
|
declare function MenubarTrigger({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
39
|
}: MenubarPrimitive.TriggerProps & {
|
|
40
40
|
ref?: React$1.RefObject<MenubarPrimitive.TriggerRef>;
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
42
42
|
declare function MenubarSubTrigger({
|
|
43
43
|
className,
|
|
44
44
|
inset,
|
|
@@ -49,13 +49,13 @@ declare function MenubarSubTrigger({
|
|
|
49
49
|
className?: string;
|
|
50
50
|
inset?: boolean;
|
|
51
51
|
children?: React$1.ReactNode;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
53
53
|
declare function MenubarSubContent({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
56
|
}: MenubarPrimitive.SubContentProps & {
|
|
57
57
|
ref?: React$1.RefObject<MenubarPrimitive.SubContentRef>;
|
|
58
|
-
}):
|
|
58
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
59
59
|
declare function MenubarContent({
|
|
60
60
|
className,
|
|
61
61
|
portalHost,
|
|
@@ -64,7 +64,7 @@ declare function MenubarContent({
|
|
|
64
64
|
ref?: React$1.RefObject<MenubarPrimitive.ContentRef>;
|
|
65
65
|
className?: string;
|
|
66
66
|
portalHost?: string;
|
|
67
|
-
}):
|
|
67
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
68
68
|
declare function MenubarItem({
|
|
69
69
|
className,
|
|
70
70
|
inset,
|
|
@@ -73,7 +73,7 @@ declare function MenubarItem({
|
|
|
73
73
|
ref?: React$1.RefObject<MenubarPrimitive.ItemRef>;
|
|
74
74
|
className?: string;
|
|
75
75
|
inset?: boolean;
|
|
76
|
-
}):
|
|
76
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
77
77
|
declare function MenubarCheckboxItem({
|
|
78
78
|
className,
|
|
79
79
|
children,
|
|
@@ -82,7 +82,7 @@ declare function MenubarCheckboxItem({
|
|
|
82
82
|
}: MenubarPrimitive.CheckboxItemProps & {
|
|
83
83
|
ref?: React$1.RefObject<MenubarPrimitive.CheckboxItemRef>;
|
|
84
84
|
children?: React$1.ReactNode;
|
|
85
|
-
}):
|
|
85
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
86
86
|
declare function MenubarRadioItem({
|
|
87
87
|
className,
|
|
88
88
|
children,
|
|
@@ -90,7 +90,7 @@ declare function MenubarRadioItem({
|
|
|
90
90
|
}: MenubarPrimitive.RadioItemProps & {
|
|
91
91
|
ref?: React$1.RefObject<MenubarPrimitive.RadioItemRef>;
|
|
92
92
|
children?: React$1.ReactNode;
|
|
93
|
-
}):
|
|
93
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
94
94
|
declare function MenubarLabel({
|
|
95
95
|
className,
|
|
96
96
|
inset,
|
|
@@ -99,17 +99,17 @@ declare function MenubarLabel({
|
|
|
99
99
|
ref?: React$1.RefObject<MenubarPrimitive.LabelRef>;
|
|
100
100
|
className?: string;
|
|
101
101
|
inset?: boolean;
|
|
102
|
-
}):
|
|
102
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
103
103
|
declare function MenubarSeparator({
|
|
104
104
|
className,
|
|
105
105
|
...props
|
|
106
106
|
}: MenubarPrimitive.SeparatorProps & {
|
|
107
107
|
ref?: React$1.RefObject<MenubarPrimitive.SeparatorRef>;
|
|
108
|
-
}):
|
|
108
|
+
}): react_jsx_runtime38.JSX.Element;
|
|
109
109
|
declare function MenubarShortcut({
|
|
110
110
|
className,
|
|
111
111
|
...props
|
|
112
|
-
}: TextProps):
|
|
112
|
+
}: TextProps): react_jsx_runtime38.JSX.Element;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
115
115
|
//# sourceMappingURL=menubar.d.ts.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Button } from "../../button.js";
|
|
2
2
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../collapsible.js";
|
|
3
3
|
import { FilterSelect } from "../../atoms/FilterSelect/FilterSelect.js";
|
|
4
|
-
import "../../atoms/FilterSelect/index.js";
|
|
5
4
|
import { SearchInput } from "../../atoms/SearchInput/SearchInput.js";
|
|
6
|
-
import "../../atoms/SearchInput/index.js";
|
|
7
5
|
import React, { useState } from "react";
|
|
8
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
7
|
import { ChevronDown, ChevronUp, Filter } from "lucide-react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchAndFilter.js","names":[
|
|
1
|
+
{"version":3,"file":"SearchAndFilter.js","names":[],"sources":["../../../../ui/molecules/SearchAndFilter/SearchAndFilter.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { ChevronDown, ChevronUp, Filter } from 'lucide-react';\nimport { Button } from '../../button';\nimport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n} from '../../collapsible';\nimport { SearchInput } from '../../atoms/SearchInput';\nimport { FilterSelect } from '../../atoms/FilterSelect';\nimport type { SearchAndFilterProps } from './types';\n\nexport const SearchAndFilter: React.FC<SearchAndFilterProps> = ({\n searchValue,\n onSearchChange,\n searchPlaceholder,\n filters = [],\n isLoading = false,\n disabled = false,\n className = '',\n collapsible = true,\n defaultCollapsed = false,\n}) => {\n const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed);\n\n const hasFilters = filters.length > 0;\n const activeFiltersCount = filters.filter((f) => f.value).length;\n\n // On mobile, show collapsible by default; on desktop, always show filters\n const shouldUseCollapsible = collapsible && hasFilters;\n\n console.log('SearchAndFilter', { filters });\n\n const FilterComponents = () => (\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4\">\n {filters.map((filter) => (\n <FilterSelect\n key={filter.key}\n value={{ value: filter.value, label: filter.value }}\n options={filter.options}\n onChange={filter.onChange}\n label={filter.label}\n disabled={disabled || isLoading}\n showCounts={filter.showCounts}\n className=\"min-w-0\"\n />\n ))}\n </div>\n );\n\n return (\n <div className={`space-y-4 ${className}`}>\n {/* Search - Always visible */}\n <div className=\"flex flex-col gap-4 sm:flex-row\">\n <div className=\"flex-1\">\n <SearchInput\n value={searchValue}\n onChange={onSearchChange}\n placeholder={searchPlaceholder}\n disabled={disabled || isLoading}\n className=\"w-full\"\n />\n </div>\n\n {/* Filter toggle for mobile */}\n {shouldUseCollapsible && (\n <Collapsible\n open={!isCollapsed}\n onOpenChange={setIsCollapsed}\n className=\"sm:hidden\"\n >\n <CollapsibleTrigger asChild>\n <Button\n variant=\"outline\"\n className=\"sm:hidden\"\n disabled={disabled || isLoading}\n >\n <Filter className=\"mr-2 h-4 w-4\" />\n Filtres\n {activeFiltersCount > 0 && (\n <span className=\"bg-primary text-primary-foreground ml-2 flex h-5 w-5 items-center justify-center rounded-full text-sm\">\n {activeFiltersCount}\n </span>\n )}\n {isCollapsed ? (\n <ChevronDown className=\"ml-2 h-4 w-4\" />\n ) : (\n <ChevronUp className=\"ml-2 h-4 w-4\" />\n )}\n </Button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"mt-4 space-y-4\">\n <FilterComponents />\n </CollapsibleContent>\n </Collapsible>\n )}\n </div>\n\n {/* Filters - Always visible on desktop, collapsible on mobile */}\n {hasFilters && (\n <div className=\"hidden sm:block\">\n <FilterComponents />\n </div>\n )}\n\n {/* Active filters summary */}\n {activeFiltersCount > 0 && (\n <div className=\"flex flex-wrap items-center gap-2\">\n <span className=\"text-muted-foreground text-base\">\n Filtres actifs:\n </span>\n {filters\n .filter((f) => f.value)\n .map((filter) => {\n const selectedOption = filter.options.find(\n (opt) => opt.value === filter.value\n );\n return (\n <Button\n key={filter.key}\n variant=\"secondary\"\n size=\"sm\"\n onPress={() => filter.onChange(undefined)}\n disabled={disabled || isLoading}\n className=\"h-7 px-2 text-sm\"\n >\n {filter.label}: {selectedOption?.label}\n <span className=\"ml-1\">×</span>\n </Button>\n );\n })}\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;AAYA,MAAa,mBAAmD,EAC9D,aACA,gBACA,mBACA,UAAU,EAAE,EACZ,YAAY,OACZ,WAAW,OACX,YAAY,IACZ,cAAc,MACd,mBAAmB,YACf;CACJ,MAAM,CAAC,aAAa,kBAAkB,SAAS,iBAAiB;CAEhE,MAAM,aAAa,QAAQ,SAAS;CACpC,MAAM,qBAAqB,QAAQ,QAAQ,MAAM,EAAE,MAAM,CAAC;CAG1D,MAAM,uBAAuB,eAAe;AAE5C,SAAQ,IAAI,mBAAmB,EAAE,SAAS,CAAC;CAE3C,MAAM,yBACJ,oBAAC;EAAI,WAAU;YACZ,QAAQ,KAAK,WACZ,oBAAC;GAEC,OAAO;IAAE,OAAO,OAAO;IAAO,OAAO,OAAO;IAAO;GACnD,SAAS,OAAO;GAChB,UAAU,OAAO;GACjB,OAAO,OAAO;GACd,UAAU,YAAY;GACtB,YAAY,OAAO;GACnB,WAAU;KAPL,OAAO,IAQZ,CACF;GACE;AAGR,QACE,qBAAC;EAAI,WAAW,aAAa;;GAE3B,qBAAC;IAAI,WAAU;eACb,oBAAC;KAAI,WAAU;eACb,oBAAC;MACC,OAAO;MACP,UAAU;MACV,aAAa;MACb,UAAU,YAAY;MACtB,WAAU;OACV;MACE,EAGL,wBACC,qBAAC;KACC,MAAM,CAAC;KACP,cAAc;KACd,WAAU;gBAEV,oBAAC;MAAmB;gBAClB,qBAAC;OACC,SAAQ;OACR,WAAU;OACV,UAAU,YAAY;;QAEtB,oBAAC,UAAO,WAAU,iBAAiB;;QAElC,qBAAqB,KACpB,oBAAC;SAAK,WAAU;mBACb;UACI;QAER,cACC,oBAAC,eAAY,WAAU,iBAAiB,GAExC,oBAAC,aAAU,WAAU,iBAAiB;;QAEjC;OACU,EACrB,oBAAC;MAAmB,WAAU;gBAC5B,oBAAC,qBAAmB;OACD;MACT;KAEZ;GAGL,cACC,oBAAC;IAAI,WAAU;cACb,oBAAC,qBAAmB;KAChB;GAIP,qBAAqB,KACpB,qBAAC;IAAI,WAAU;eACb,oBAAC;KAAK,WAAU;eAAkC;MAE3C,EACN,QACE,QAAQ,MAAM,EAAE,MAAM,CACtB,KAAK,WAAW;KACf,MAAM,iBAAiB,OAAO,QAAQ,MACnC,QAAQ,IAAI,UAAU,OAAO,MAC/B;AACD,YACE,qBAAC;MAEC,SAAQ;MACR,MAAK;MACL,eAAe,OAAO,SAAS,OAAU;MACzC,UAAU,YAAY;MACtB,WAAU;;OAET,OAAO;OAAM;OAAG,gBAAgB;OACjC,oBAAC;QAAK,WAAU;kBAAO;SAAQ;;QAR1B,OAAO,IASL;MAEX;KACA;;GAEJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/molecules/SkeletonList.d.ts
|
|
4
4
|
interface Props {
|
|
@@ -10,7 +10,7 @@ declare function SkeletonList({
|
|
|
10
10
|
count,
|
|
11
11
|
className,
|
|
12
12
|
itemClassName
|
|
13
|
-
}: Props):
|
|
13
|
+
}: Props): react_jsx_runtime115.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SkeletonList };
|
|
16
16
|
//# sourceMappingURL=SkeletonList.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native10 from "react-native";
|
|
3
3
|
import { View } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
5
5
|
import * as NavigationMenuPrimitive from "@rn-primitives/navigation-menu";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region ui/navigation-menu.d.ts
|
|
9
9
|
declare function NavigationMenu({
|
|
@@ -12,19 +12,19 @@ declare function NavigationMenu({
|
|
|
12
12
|
...props
|
|
13
13
|
}: NavigationMenuPrimitive.RootProps & {
|
|
14
14
|
ref?: React$1.RefObject<NavigationMenuPrimitive.RootRef>;
|
|
15
|
-
}):
|
|
15
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
16
16
|
declare function NavigationMenuList({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
19
|
}: NavigationMenuPrimitive.ListProps & {
|
|
20
20
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ListRef>;
|
|
21
|
-
}):
|
|
22
|
-
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<
|
|
21
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
22
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<react_native10.ViewProps & {
|
|
23
23
|
asChild?: boolean;
|
|
24
24
|
} & {
|
|
25
25
|
value: string | undefined;
|
|
26
26
|
} & React$1.RefAttributes<View>>;
|
|
27
|
-
declare const navigationMenuTriggerStyle: (props?:
|
|
27
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types2.ClassProp | undefined) => string;
|
|
28
28
|
declare function NavigationMenuTrigger({
|
|
29
29
|
className,
|
|
30
30
|
children,
|
|
@@ -32,7 +32,7 @@ declare function NavigationMenuTrigger({
|
|
|
32
32
|
}: Omit<NavigationMenuPrimitive.TriggerProps, 'children'> & {
|
|
33
33
|
children?: React$1.ReactNode;
|
|
34
34
|
ref?: React$1.RefObject<NavigationMenuPrimitive.TriggerRef>;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
36
36
|
declare function NavigationMenuContent({
|
|
37
37
|
className,
|
|
38
38
|
children,
|
|
@@ -41,8 +41,8 @@ declare function NavigationMenuContent({
|
|
|
41
41
|
}: NavigationMenuPrimitive.ContentProps & {
|
|
42
42
|
portalHost?: string;
|
|
43
43
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ContentRef>;
|
|
44
|
-
}):
|
|
45
|
-
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<
|
|
44
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
45
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<react_native10.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
46
46
|
asChild?: boolean;
|
|
47
47
|
} & {
|
|
48
48
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -55,14 +55,14 @@ declare function NavigationMenuViewport({
|
|
|
55
55
|
...props
|
|
56
56
|
}: NavigationMenuPrimitive.ViewportProps & {
|
|
57
57
|
ref?: React$1.RefObject<NavigationMenuPrimitive.ViewportRef>;
|
|
58
|
-
}):
|
|
58
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
59
59
|
declare function NavigationMenuIndicator({
|
|
60
60
|
ref,
|
|
61
61
|
className,
|
|
62
62
|
...props
|
|
63
63
|
}: NavigationMenuPrimitive.IndicatorProps & {
|
|
64
64
|
ref?: React$1.RefObject<NavigationMenuPrimitive.IndicatorRef>;
|
|
65
|
-
}):
|
|
65
|
+
}): react_jsx_runtime56.JSX.Element;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
68
68
|
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../ui/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAgBS,cAAA;;;;GAIN,uBAAA,CAAwB;QACnB,OAAA,CAAM,UAAU,uBAAA,CAAwB;IAC/C,mBAAA,CAAA,GAAA,CAAA;iBAeQ,kBAAA;;;AAlCqC,GAqC3C,uBAAA,CAAwB;QACnB,OAAA,CAAM,UAAU,uBAAA,CAAwB;AAtCF,CAAA,CAAA,EAuC7C,mBAAA,CAAA,GAAA,CAAA,OA1BsB;cAsCjB,kBArCJ,EAqCsB,OAAA,CAAA,yBArCtB,CAqCqD,
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../ui/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAgBS,cAAA;;;;GAIN,uBAAA,CAAwB;QACnB,OAAA,CAAM,UAAU,uBAAA,CAAwB;IAC/C,mBAAA,CAAA,GAAA,CAAA;iBAeQ,kBAAA;;;AAlCqC,GAqC3C,uBAAA,CAAwB;QACnB,OAAA,CAAM,UAAU,uBAAA,CAAwB;AAtCF,CAAA,CAAA,EAuC7C,mBAAA,CAAA,GAAA,CAAA,OA1BsB;cAsCjB,kBArCJ,EAqCsB,OAAA,CAAA,yBArCtB,CAqCqD,cAAA,CAA/B,SAAA,GArCtB;EACA,OAAA,CAAA,EAAA,OAAA;CAEC,GAAA;EACqB,KAAA,EAAA,MAAA,GAAA,SAAwB;CAAxC,wBAAM,KAAA,CAAA,CAAA;cAmCR,0BAlCL,EAAA,CAAA,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B;iBAkGvB,uBAAA,CAlGN;EAAA,GAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAsGA,uBAAA,CAAwB,cAtGxB,GAAA;EACU,GAAA,CAAA,EAsGL,OAAA,CAAM,SAtGK,CAsGK,uBAAA,CAAwB,YAtG7B,CAAA;CACK,CAAA,EAsGvB,mBAAA,CAAA,GAAA,CAAA,OAtG+C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/organisms/ErrorBoundary/ErrorBoundary.d.ts
|
|
5
5
|
interface ErrorBoundaryState {
|
|
@@ -22,7 +22,7 @@ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBou
|
|
|
22
22
|
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
23
23
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
24
24
|
resetError: () => void;
|
|
25
|
-
render(): string | number | bigint | boolean |
|
|
25
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime73.JSX.Element | null | undefined;
|
|
26
26
|
}
|
|
27
27
|
declare const useErrorHandler: () => (error: Error) => never;
|
|
28
28
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","names":[],"sources":["../../../../ui/organisms/ErrorBoundary/ErrorBoundary.tsx"],"sourcesContent":[],"mappings":";;;;UAOU,kBAAA;;SAED;EAFC,OAAA,EAAA,MAAA,GAAA,IAAkB;AAEd;UAIJ,kBAAA,CACQ;EACe,QAAA,EADrB,KAAA,CAAM,SACe;EAApB,QAAM,CAAA,EAAN,KAAA,CAAM,aAAA,CAAc,kBAAd,CAAA;EACC,O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EmB,CAAA,CAAA;EASoB,WAAA,CAAA,KAAA,EATpB,kBASoB;EAAgB,OAAA,wBAAA,CAAA,KAAA,EAAhB,KAAgB,CAAA,EAAR,OAAQ,CAAA,kBAAA,CAAA;EAAR,iBAAA,CAAA,KAAA,EAOtB,KAPsB,EAAA,SAAA,EAOJ,KAAA,CAAM,SAPF,CAAA,EAAA,IAAA;EAOtB,UAAA,EAAA,GAAA,GAAA,IAAA;EAAkB,MAAM,CAAA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAgC3C,QAhC2C,CAgC3C,KAAA,CAAA,SAhC2C,CAAA,GAgC3C,OAhC2C,CAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAgC3C,KAAA,CAAA,WAhC2C,GAgC3C,KAAA,CAAA,YAhC2C,CAAA,OAAA,EAAA,MAAA,GAgC3C,KAAA,CAAA,qBAhC2C,CAAA,GAAA,CAAA,CAAA,GAgC3C,QAhC2C,CAgC3C,KAAA,CAAA,SAhC2C,CAAA,GAAA,IAAA,GAAA,SAAA,CAAA,GAgC3C,mBAAA,CAAA,GAAA,CAAA,OAAA,GAhC2C,IAAA,GAAA,SAAA;;AAgC3C,cAkBK,eAlBL,EAAA,GAAA,GAAA,CAAA,KAAA,EAmB2B,KAnB3B,EAAA,GAAA,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","names":[
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.js","names":[],"sources":["../../../../ui/organisms/ErrorBoundary/ErrorBoundary.tsx"],"sourcesContent":["'use client';\n\nimport React from 'react';\n// import * as Sentry from '@sentry/nextjs';\nimport { AlertTriangle, RefreshCw, Home } from 'lucide-react';\nimport { Button } from '../../button';\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n error: Error | null;\n errorId: string | null;\n}\n\ninterface ErrorBoundaryProps {\n children: React.ReactNode;\n fallback?: React.ComponentType<ErrorFallbackProps>;\n onError?: (error: Error, errorInfo: React.ErrorInfo) => void;\n}\n\ninterface ErrorFallbackProps {\n error: Error;\n errorId: string | null;\n resetError: () => void;\n}\n\nconst DefaultErrorFallback: React.FC<ErrorFallbackProps> = ({\n error,\n errorId,\n resetError,\n}) => {\n const isDevelopment = process.env.NODE_ENV === 'development';\n\n return (\n <div className=\"flex min-h-screen items-center justify-center bg-gray-50 px-4\">\n <div className=\"w-full max-w-md rounded-lg bg-white p-6 text-center shadow-lg\">\n <div className=\"mb-4 flex justify-center\">\n <AlertTriangle className=\"h-12 w-12 text-red-500\" />\n </div>\n\n <h1 className=\"mb-2 text-2xl font-semibold text-gray-900\">\n Une erreur s'est produite\n </h1>\n\n <p className=\"mb-6 text-gray-600\">\n Nous nous excusons pour ce désagrément. Notre équipe a été notifiée et\n travaille à résoudre le problème.\n </p>\n\n {isDevelopment && (\n <div className=\"mb-6 rounded-md bg-red-50 p-4 text-left\">\n <p className=\"mb-2 text-base font-medium text-red-800\">\n Erreur de développement:\n </p>\n <p className=\"font-mono text-sm break-all text-red-700\">\n {error.message}\n </p>\n {errorId && (\n <p className=\"mt-2 text-sm text-red-600\">ID: {errorId}</p>\n )}\n </div>\n )}\n\n <div className=\"flex flex-col justify-center gap-3 sm:flex-row\">\n <Button onPress={resetError} className=\"flex items-center gap-2\">\n <RefreshCw className=\"h-4 w-4\" />\n Réessayer\n </Button>\n\n <Button\n onPress={() => (window.location.href = '/')}\n variant=\"secondary\"\n className=\"flex items-center gap-2\"\n >\n <Home className=\"h-4 w-4\" />\n Accueil\n </Button>\n </div>\n\n {!isDevelopment && errorId && (\n <p className=\"mt-4 text-sm text-gray-500\">Code d'erreur: {errorId}</p>\n )}\n </div>\n </div>\n );\n};\n\nexport class ErrorBoundary extends React.Component<\n ErrorBoundaryProps,\n ErrorBoundaryState\n> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = {\n hasError: false,\n error: null,\n errorId: null,\n };\n }\n\n static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {\n return {\n hasError: true,\n error,\n };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {\n // Generate unique error ID\n const errorId = `err_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;\n\n // Log to Sentry with additional context\n // Sentry.withScope((scope) => {\n // scope.setTag('errorBoundary', true);\n // scope.setContext('errorInfo', { ...errorInfo });\n // scope.setContext('errorId', { errorId });\n // Sentry.captureException(error);\n // });\n\n // Update state with error ID\n this.setState({ errorId });\n\n // Call custom error handler if provided\n this.props.onError?.(error, errorInfo);\n\n // Log to console in development\n if (process.env.NODE_ENV === 'development') {\n console.error('ErrorBoundary caught an error:', error, errorInfo);\n }\n }\n\n resetError = () => {\n this.setState({\n hasError: false,\n error: null,\n errorId: null,\n });\n };\n\n render() {\n if (this.state.hasError && this.state.error) {\n const FallbackComponent = this.props.fallback || DefaultErrorFallback;\n\n return (\n <FallbackComponent\n error={this.state.error}\n errorId={this.state.errorId}\n resetError={this.resetError}\n />\n );\n }\n\n return this.props.children;\n }\n}\n\n// Hook for functional components to trigger error boundary\nexport const useErrorHandler = () => {\n return React.useCallback((error: Error) => {\n // This will be caught by the nearest error boundary\n throw error;\n }, []);\n};\n\nexport type { ErrorBoundaryProps, ErrorFallbackProps };\n"],"mappings":";;;;;;;;AAyBA,MAAM,wBAAsD,EAC1D,OACA,SACA,iBACI;AAGJ,QACE,oBAAC;EAAI,WAAU;YACb,qBAAC;GAAI,WAAU;;IACb,oBAAC;KAAI,WAAU;eACb,oBAAC,iBAAc,WAAU,2BAA2B;MAChD;IAEN,oBAAC;KAAG,WAAU;eAA4C;MAErD;IAEL,oBAAC;KAAE,WAAU;eAAqB;MAG9B;IAGF,qBAAC;KAAI,WAAU;;MACb,oBAAC;OAAE,WAAU;iBAA0C;QAEnD;MACJ,oBAAC;OAAE,WAAU;iBACV,MAAM;QACL;MACH,WACC,qBAAC;OAAE,WAAU;kBAA4B,QAAK;QAAY;;MAExD;IAGR,qBAAC;KAAI,WAAU;gBACb,qBAAC;MAAO,SAAS;MAAY,WAAU;iBACrC,oBAAC,aAAU,WAAU,YAAY;OAE1B,EAET,qBAAC;MACC,eAAgB,OAAO,SAAS,OAAO;MACvC,SAAQ;MACR,WAAU;iBAEV,oBAAC,QAAK,WAAU,YAAY;OAErB;MACL;IAEL;;IAGG;GACF;;AAIV,IAAa,gBAAb,cAAmC,MAAM,UAGvC;CACA,YAAY,OAA2B;AACrC,QAAM,MAAM;AACZ,OAAK,QAAQ;GACX,UAAU;GACV,OAAO;GACP,SAAS;GACV;;CAGH,OAAO,yBAAyB,OAA2C;AACzE,SAAO;GACL,UAAU;GACV;GACD;;CAGH,kBAAkB,OAAc,WAA4B;EAE1D,MAAM,UAAU,OAAO,KAAK,KAAK,CAAC,GAAG,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,OAAO,GAAG,EAAE;AAW5E,OAAK,SAAS,EAAE,SAAS,CAAC;AAG1B,OAAK,MAAM,UAAU,OAAO,UAAU;AAIpC,UAAQ,MAAM,kCAAkC,OAAO,UAAU;;CAIrE,mBAAmB;AACjB,OAAK,SAAS;GACZ,UAAU;GACV,OAAO;GACP,SAAS;GACV,CAAC;;CAGJ,SAAS;AACP,MAAI,KAAK,MAAM,YAAY,KAAK,MAAM,MAGpC,QACE,oBAHwB,KAAK,MAAM,YAAY;GAI7C,OAAO,KAAK,MAAM;GAClB,SAAS,KAAK,MAAM;GACpB,YAAY,KAAK;IACjB;AAIN,SAAO,KAAK,MAAM;;;AAKtB,MAAa,wBAAwB;AACnC,QAAO,MAAM,aAAa,UAAiB;AAEzC,QAAM;IACL,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListPageProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/organisms/ListPage/ListPage.d.ts
|
|
5
5
|
declare function ListPage<T>({
|
|
@@ -23,7 +23,7 @@ declare function ListPage<T>({
|
|
|
23
23
|
renderStats,
|
|
24
24
|
className,
|
|
25
25
|
itemClassName
|
|
26
|
-
}: ListPageProps<T>):
|
|
26
|
+
}: ListPageProps<T>): react_jsx_runtime76.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ListPage };
|
|
29
29
|
//# sourceMappingURL=ListPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPage.d.ts","names":[],"sources":["../../../../ui/organisms/ListPage/ListPage.tsx"],"sourcesContent":[],"mappings":";;;;iBAYgB;;;;;;;;;;;;;;;;;;;;;GAqBb,cAAc,KAAE,
|
|
1
|
+
{"version":3,"file":"ListPage.d.ts","names":[],"sources":["../../../../ui/organisms/ListPage/ListPage.tsx"],"sourcesContent":[],"mappings":";;;;iBAYgB;;;;;;;;;;;;;;;;;;;;;GAqBb,cAAc,KAAE,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -3,9 +3,7 @@ import { Card, CardContent } from "../../card.js";
|
|
|
3
3
|
import { HStack, VStack } from "../../stack.js";
|
|
4
4
|
import { Separator } from "../../separator.js";
|
|
5
5
|
import { Pagination } from "../../atoms/Pagination/Pagination.js";
|
|
6
|
-
import "../../atoms/Pagination/index.js";
|
|
7
6
|
import { SearchAndFilter } from "../../molecules/SearchAndFilter/SearchAndFilter.js";
|
|
8
|
-
import "../../molecules/SearchAndFilter/index.js";
|
|
9
7
|
import React from "react";
|
|
10
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
import { AlertTriangle, Loader2, Plus, RefreshCcw } from "lucide-react";
|