@lssm/lib.ui-kit 1.7.1 → 1.7.3
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/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/aspect-ratio.d.ts +5 -5
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.ts +5 -5
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button.d.ts +7 -7
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/collapsible.d.ts +8 -8
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts +2 -2
- 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/fab.d.ts +3 -3
- package/dist/ui/fab.d.ts.map +1 -1
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/form.d.ts +11 -8
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +5 -3
- package/dist/ui/form.js.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/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/marketing/PricingTable.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
- package/dist/ui/navigation-menu.d.ts +12 -12
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/page-header.d.ts +4 -4
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/password-strength.d.ts +2 -2
- package/dist/ui/popover.d.ts +8 -8
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/select.d.ts +13 -13
- 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 +2 -2
- 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/tabs.d.ts +9 -9
- package/dist/ui/text.d.ts +2 -2
- 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/tooltip.d.ts +6 -6
- package/dist/ui/tooltip.d.ts.map +1 -1
- 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/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -28
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -101
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
package/dist/ui/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
3
3
|
import * as TablePrimitive from "@rn-primitives/table";
|
|
4
4
|
|
|
5
5
|
//#region ui/table.d.ts
|
|
@@ -8,44 +8,44 @@ declare function Table({
|
|
|
8
8
|
...props
|
|
9
9
|
}: TablePrimitive.RootProps & {
|
|
10
10
|
ref?: React$1.RefObject<TablePrimitive.RootRef>;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
12
12
|
declare function TableHeader({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
15
|
}: TablePrimitive.HeaderProps & {
|
|
16
16
|
ref?: React$1.RefObject<TablePrimitive.HeaderRef>;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
18
18
|
declare function TableBody({
|
|
19
19
|
className,
|
|
20
20
|
style,
|
|
21
21
|
...props
|
|
22
22
|
}: TablePrimitive.BodyProps & {
|
|
23
23
|
ref?: React$1.RefObject<TablePrimitive.BodyRef>;
|
|
24
|
-
}):
|
|
24
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
25
25
|
declare function TableFooter({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
28
|
}: TablePrimitive.FooterProps & {
|
|
29
29
|
ref?: React$1.RefObject<TablePrimitive.FooterRef>;
|
|
30
|
-
}):
|
|
30
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
31
31
|
declare function TableRow({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
34
|
}: TablePrimitive.RowProps & {
|
|
35
35
|
ref?: React$1.RefObject<TablePrimitive.RowRef>;
|
|
36
|
-
}):
|
|
36
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
37
37
|
declare function TableHead({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
40
|
}: TablePrimitive.HeadProps & {
|
|
41
41
|
ref?: React$1.RefObject<TablePrimitive.HeadRef>;
|
|
42
|
-
}):
|
|
42
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
43
43
|
declare function TableCell({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
46
|
}: TablePrimitive.CellProps & {
|
|
47
47
|
ref?: React$1.RefObject<TablePrimitive.CellRef>;
|
|
48
|
-
}):
|
|
48
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
51
51
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native48 from "react-native";
|
|
3
3
|
import * as _rn_primitives_types1 from "@rn-primitives/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/tabs.d.ts
|
|
6
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<
|
|
6
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<react_native48.ViewProps & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
} & {
|
|
9
9
|
value: string;
|
|
@@ -11,23 +11,23 @@ declare const Tabs: React$1.ForwardRefExoticComponent<react_native25.ViewProps &
|
|
|
11
11
|
orientation?: "horizontal" | "vertical";
|
|
12
12
|
dir?: "ltr" | "rtl";
|
|
13
13
|
activationMode?: "automatic" | "manual";
|
|
14
|
-
} & React$1.RefAttributes<
|
|
15
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<
|
|
14
|
+
} & React$1.RefAttributes<react_native48.View>>;
|
|
15
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<react_native48.ViewProps & {
|
|
16
16
|
asChild?: boolean;
|
|
17
|
-
} & React$1.RefAttributes<
|
|
18
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<
|
|
17
|
+
} & React$1.RefAttributes<react_native48.View>, "ref"> & React$1.RefAttributes<react_native48.View>>;
|
|
18
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<react_native48.PressableProps & React$1.RefAttributes<react_native48.View>, "ref"> & {
|
|
19
19
|
asChild?: boolean;
|
|
20
20
|
} & {
|
|
21
21
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
22
22
|
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
23
23
|
} & {
|
|
24
24
|
value: string;
|
|
25
|
-
} & React$1.RefAttributes<
|
|
26
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<
|
|
25
|
+
} & React$1.RefAttributes<react_native48.View>, "ref"> & React$1.RefAttributes<react_native48.View>>;
|
|
26
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<react_native48.ViewProps & {
|
|
27
27
|
asChild?: boolean;
|
|
28
28
|
} & _rn_primitives_types1.ForceMountable & {
|
|
29
29
|
value: string;
|
|
30
|
-
} & React$1.RefAttributes<
|
|
30
|
+
} & React$1.RefAttributes<react_native48.View>, "ref"> & React$1.RefAttributes<react_native48.View>>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
33
33
|
//# sourceMappingURL=tabs.d.ts.map
|
package/dist/ui/text.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Text as Text$1 } from "react-native";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/text.d.ts
|
|
6
6
|
declare const TextClassContext: React$1.Context<string | undefined>;
|
|
@@ -15,7 +15,7 @@ declare function Text({
|
|
|
15
15
|
}: React$1.ComponentProps<typeof Text$1> & {
|
|
16
16
|
ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
|
|
17
17
|
asChild?: boolean;
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime118.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Text, TextClassContext, TextProps };
|
|
21
21
|
//# sourceMappingURL=text.d.ts.map
|
package/dist/ui/time-picker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/time-picker.d.ts
|
|
4
4
|
interface TimePickerProps {
|
|
@@ -16,7 +16,7 @@ declare function TimePicker({
|
|
|
16
16
|
placeholder,
|
|
17
17
|
is24Hour,
|
|
18
18
|
className
|
|
19
|
-
}: TimePickerProps):
|
|
19
|
+
}: TimePickerProps): react_jsx_runtime114.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { TimePicker, TimePickerProps };
|
|
22
22
|
//# sourceMappingURL=time-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-picker.d.ts","names":[],"sources":["../../ui/time-picker.tsx"],"sourcesContent":[],"mappings":";;;UAUiB,eAAA;SACR;mBACU;EAFF,QAAA,CAAA,EAAA,OAAe;EAsBhB,WAAA,CAAA,EAAU,MAAA;EACxB,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,UAAA,CAId;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,eAHD,CAAA,EAGgB,
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","names":[],"sources":["../../ui/time-picker.tsx"],"sourcesContent":[],"mappings":";;;UAUiB,eAAA;SACR;mBACU;EAFF,QAAA,CAAA,EAAA,OAAe;EAsBhB,WAAA,CAAA,EAAU,MAAA;EACxB,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,UAAA,CAId;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,eAHD,CAAA,EAGgB,oBAAA,CAAA,GAAA,CAAA,OAHhB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toggleVariants } from "./toggle.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { LucideIcon } from "lucide-react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
5
5
|
import { VariantProps } from "class-variance-authority";
|
|
6
6
|
import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ declare function ToggleGroup({
|
|
|
14
14
|
...props
|
|
15
15
|
}: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & {
|
|
16
16
|
ref?: React$1.RefObject<ToggleGroupPrimitive.RootRef>;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime115.JSX.Element;
|
|
18
18
|
declare function ToggleGroupItem({
|
|
19
19
|
className,
|
|
20
20
|
children,
|
|
@@ -23,14 +23,14 @@ declare function ToggleGroupItem({
|
|
|
23
23
|
...props
|
|
24
24
|
}: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & {
|
|
25
25
|
ref?: React$1.RefObject<ToggleGroupPrimitive.ItemRef>;
|
|
26
|
-
}):
|
|
26
|
+
}): react_jsx_runtime115.JSX.Element;
|
|
27
27
|
declare function ToggleGroupIcon({
|
|
28
28
|
className,
|
|
29
29
|
icon: Icon,
|
|
30
30
|
...props
|
|
31
31
|
}: React$1.ComponentPropsWithoutRef<LucideIcon> & {
|
|
32
32
|
icon: LucideIcon;
|
|
33
|
-
}):
|
|
33
|
+
}): react_jsx_runtime115.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
|
|
36
36
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAYS,WAAA;;;;;;GAMN,oBAAA,CAAqB,YACtB,oBAAoB;QACZ,OAAA,CAAM,UAAU,oBAAA,CAAqB;IAC5C,
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAYS,WAAA;;;;;;GAMN,oBAAA,CAAqB,YACtB,oBAAoB;QACZ,OAAA,CAAM,UAAU,oBAAA,CAAqB;IAC5C,oBAAA,CAAA,GAAA,CAAA;AAhBiE,iBA0C3D,eAAA,CAnCW;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAyCjB,oBAAA,CAAqB,SAzCJ,GA0ClB,YA1CkB,CAAA,OA0CE,cA1CF,CAAA,GAAA;EAClB,GAAA,CAAA,EA0CQ,OAAA,CAAM,SA1Cd,CA0CwB,oBAAA,CAAqB,OA1C7C,CAAA;CACA,CAAA,EA0CC,oBAAA,CAAA,GAAA,CAAA,OA1CD;iBA0EO,eAAA,CAzEP;EAAA,SAAA;EAAA,IAAA,EA2EM,IA3EN;EAAA,GAAA;CAAA,EA6EC,OAAA,CAAM,wBA7EP,CA6EgC,UA7EhC,CAAA,GAAA;EACA,IAAA,EA6EM,UA7EN;CAEC,CAAA,EA4EF,oBAAA,CAAA,GAAA,CAAA,OA5EuB"}
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { LucideIcon } from "lucide-react-native";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as TogglePrimitive from "@rn-primitives/toggle";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region ui/toggle.d.ts
|
|
9
9
|
declare const toggleVariants: (props?: ({
|
|
10
10
|
variant?: "default" | "outline" | null | undefined;
|
|
11
11
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
12
|
-
} &
|
|
12
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
13
13
|
declare const toggleTextVariants: (props?: ({
|
|
14
14
|
variant?: "default" | "outline" | null | undefined;
|
|
15
15
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
16
|
-
} &
|
|
16
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
17
17
|
declare function Toggle({
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
@@ -21,14 +21,14 @@ declare function Toggle({
|
|
|
21
21
|
...props
|
|
22
22
|
}: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & VariantProps<typeof toggleVariants> & {
|
|
23
23
|
ref?: React$1.RefObject<TogglePrimitive.RootRef>;
|
|
24
|
-
}):
|
|
24
|
+
}): react_jsx_runtime147.JSX.Element;
|
|
25
25
|
declare function ToggleIcon({
|
|
26
26
|
className,
|
|
27
27
|
icon: Icon,
|
|
28
28
|
...props
|
|
29
29
|
}: React$1.ComponentPropsWithoutRef<LucideIcon> & {
|
|
30
30
|
icon: LucideIcon;
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime147.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
|
|
34
34
|
//# sourceMappingURL=toggle.d.ts.map
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_native30 from "react-native";
|
|
3
|
+
import * as react_jsx_runtime130 from "react/jsx-runtime";
|
|
4
4
|
import * as _rn_primitives_tooltip0 from "@rn-primitives/tooltip";
|
|
5
5
|
|
|
6
6
|
//#region ui/tooltip.d.ts
|
|
7
|
-
declare const Tooltip: React$1.ForwardRefExoticComponent<
|
|
7
|
+
declare const Tooltip: React$1.ForwardRefExoticComponent<react_native30.ViewProps & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & {
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
11
|
delayDuration?: number;
|
|
12
12
|
skipDelayDuration?: number;
|
|
13
13
|
disableHoverableContent?: boolean;
|
|
14
|
-
} & React$1.RefAttributes<
|
|
15
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
14
|
+
} & React$1.RefAttributes<react_native30.View>>;
|
|
15
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<react_native30.PressableProps & React$1.RefAttributes<react_native30.View>, "ref"> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & {
|
|
18
18
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -26,7 +26,7 @@ declare function TooltipContent({
|
|
|
26
26
|
}: _rn_primitives_tooltip0.ContentProps & {
|
|
27
27
|
ref?: React$1.RefObject<_rn_primitives_tooltip0.ContentRef>;
|
|
28
28
|
portalHost?: string;
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Tooltip, TooltipContent, TooltipTrigger };
|
|
32
32
|
//# sourceMappingURL=tooltip.d.ts.map
|
package/dist/ui/tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,SAAO,OAAA,CAAA,0BAAwB,cAAA,CAAxB,SAAA;;;;EAAP,aAA+B,CAAA,EAAA,MAAA;EAAA,iBAAxB,CAAA,EAAA,MAAA;EAAA,uBAAA,CAAA,EAAA,OAAA;0BAAA,cAAA,CAAA,IAAA;cAEP,cAFO,EAEO,OAAA,CAAA,yBAFP,CAEO,IAFP,CAEkC,cAAA,CAA3B,cAAA,GAAA,OAAA,CAAA,aAFP,CAEO,cAAA,CAAA,IAAA,CAFP,EAAA,KAAA,CAAA,GAAA;EAAA,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA,GAEP;EAAyC,SAAA,CAAA,EAA3B,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,oCAAA,CAAA;iBAEX,cAAA,CAFW;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAOjB,uBAAA,CAAiB,YAPA,GAAA;QAQZ,OAAA,CAAM,UAAU,uBAAA,CAAiB;;IAExC,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,SAAO,OAAA,CAAA,0BAAwB,cAAA,CAAxB,SAAA;;;;EAAP,aAA+B,CAAA,EAAA,MAAA;EAAA,iBAAxB,CAAA,EAAA,MAAA;EAAA,uBAAA,CAAA,EAAA,OAAA;0BAAA,cAAA,CAAA,IAAA;cAEP,cAFO,EAEO,OAAA,CAAA,yBAFP,CAEO,IAFP,CAEkC,cAAA,CAA3B,cAAA,GAAA,OAAA,CAAA,aAFP,CAEO,cAAA,CAAA,IAAA,CAFP,EAAA,KAAA,CAAA,GAAA;EAAA,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA,GAEP;EAAyC,SAAA,CAAA,EAA3B,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,oCAAA,CAAA;iBAEX,cAAA,CAFW;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAOjB,uBAAA,CAAiB,YAPA,GAAA;QAQZ,OAAA,CAAM,UAAU,uBAAA,CAAiB;;IAExC,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/ui/typography.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextProps } from "./text.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/typography.d.ts
|
|
5
5
|
type TypographyProps = TextProps & {
|
|
@@ -9,57 +9,57 @@ declare function H1({
|
|
|
9
9
|
className,
|
|
10
10
|
asChild,
|
|
11
11
|
...props
|
|
12
|
-
}: TypographyProps):
|
|
12
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
13
13
|
declare function H2({
|
|
14
14
|
className,
|
|
15
15
|
asChild,
|
|
16
16
|
...props
|
|
17
|
-
}: TypographyProps):
|
|
17
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
18
18
|
declare function H3({
|
|
19
19
|
className,
|
|
20
20
|
asChild,
|
|
21
21
|
...props
|
|
22
|
-
}: TypographyProps):
|
|
22
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
23
23
|
declare function H4({
|
|
24
24
|
className,
|
|
25
25
|
asChild,
|
|
26
26
|
...props
|
|
27
|
-
}: TypographyProps):
|
|
27
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
28
28
|
declare function P({
|
|
29
29
|
className,
|
|
30
30
|
asChild,
|
|
31
31
|
...props
|
|
32
|
-
}: TypographyProps):
|
|
32
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
33
33
|
declare function BlockQuote({
|
|
34
34
|
className,
|
|
35
35
|
asChild,
|
|
36
36
|
...props
|
|
37
|
-
}: TypographyProps):
|
|
37
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
38
38
|
declare function Code({
|
|
39
39
|
className,
|
|
40
40
|
asChild,
|
|
41
41
|
...props
|
|
42
|
-
}: TypographyProps):
|
|
42
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
43
43
|
declare function Lead({
|
|
44
44
|
className,
|
|
45
45
|
asChild,
|
|
46
46
|
...props
|
|
47
|
-
}: TypographyProps):
|
|
47
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
48
48
|
declare function Large({
|
|
49
49
|
className,
|
|
50
50
|
asChild,
|
|
51
51
|
...props
|
|
52
|
-
}: TypographyProps):
|
|
52
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
53
53
|
declare function Small({
|
|
54
54
|
className,
|
|
55
55
|
asChild,
|
|
56
56
|
...props
|
|
57
|
-
}: TypographyProps):
|
|
57
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
58
58
|
declare function Muted({
|
|
59
59
|
className,
|
|
60
60
|
asChild,
|
|
61
61
|
...props
|
|
62
|
-
}: TypographyProps):
|
|
62
|
+
}: TypographyProps): react_jsx_runtime119.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small, TypographyProps };
|
|
65
65
|
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../ui/typography.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,eAAA,GAAkB;;;AAA9B,iBAIS,EAAA,CAJG;EAAe,SAAA;EAAA,OAAG;EAAA,GAAS;AAAA,CAAA,EAIe,eAJf,CAAA,EAI8B,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../ui/typography.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,eAAA,GAAkB;;;AAA9B,iBAIS,EAAA,CAJG;EAAe,SAAA;EAAA,OAAG;EAAA,GAAS;AAAA,CAAA,EAIe,eAJf,CAAA,EAI8B,oBAAA,CAAA,GAAA,CAAA,OAJ9B;AAErC,iBAiBO,EAAA,CAfE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAe2C,eAf3C,CAAA,EAe0D,oBAAA,CAAA,GAAA,CAAA,OAf1D;iBA8BF,EAAA,CA9BK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA8BwC,eA9BxC,CAAA,EA8BuD,oBAAA,CAAA,GAAA,CAAA,OA9BvD;iBA6CL,EAAA,CA7CgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA6C6B,eA7C7B,CAAA,EA6C4C,oBAAA,CAAA,GAAA,CAAA,OA7C5C;iBA4DhB,CAAA,CA5D6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4DD,eA5DC,CAAA,EA4Dc,oBAAA,CAAA,GAAA,CAAA,OA5Dd;iBAsE7C,UAAA,CAtE4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAsEP,eAtEO,CAAA,EAsEQ,oBAAA,CAAA,GAAA,CAAA,OAtER;iBAqF5D,IAAA,CArF4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqFb,eArFa,CAAA,EAqFE,oBAAA,CAAA,GAAA,CAAA,OArFF;AAAA,iBAoG5D,IAAA,CArFE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqF6C,eArF7C,CAAA,EAqF4D,oBAAA,CAAA,GAAA,CAAA,OArF5D;iBA+FF,KAAA,CA/FK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA+F2C,eA/F3C,CAAA,EA+F0D,oBAAA,CAAA,GAAA,CAAA,OA/F1D;iBA4GL,KAAA,CA5GgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4GgC,eA5GhC,CAAA,EA4G+C,oBAAA,CAAA,GAAA,CAAA,OA5G/C;iBAyHhB,KAAA,CAzH6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAyHG,eAzHH,CAAA,EAyHkB,oBAAA,CAAA,GAAA,CAAA,OAzHlB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_native34 from "react-native";
|
|
2
2
|
|
|
3
3
|
//#region ui/useColorScheme.d.ts
|
|
4
4
|
declare function useColorScheme(): {
|
|
5
5
|
colorScheme: "light" | "dark";
|
|
6
6
|
isDarkColorScheme: boolean;
|
|
7
|
-
setColorScheme: (scheme:
|
|
7
|
+
setColorScheme: (scheme: react_native34.ColorSchemeName) => void;
|
|
8
8
|
toggleColorScheme: () => void;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime58 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/usecases/UseCaseCard.d.ts
|
|
4
4
|
declare function UseCaseCard({
|
|
@@ -13,7 +13,7 @@ declare function UseCaseCard({
|
|
|
13
13
|
ctaHref?: string;
|
|
14
14
|
ctaLabel?: string;
|
|
15
15
|
onCtaClick?: () => void;
|
|
16
|
-
}):
|
|
16
|
+
}): react_jsx_runtime58.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { UseCaseCard };
|
|
19
19
|
//# sourceMappingURL=UseCaseCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseCaseCard.d.ts","names":[],"sources":["../../../ui/usecases/UseCaseCard.tsx"],"sourcesContent":[],"mappings":";;;iBAIgB,WAAA;;;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAW;EACzB,QAAA,CAAA,EAAA,MAAA;EACA,UAAA,CAAA,EAAA,GAAA,GAAA,IAAA;CACA,CAAA,EASD,
|
|
1
|
+
{"version":3,"file":"UseCaseCard.d.ts","names":[],"sources":["../../../ui/usecases/UseCaseCard.tsx"],"sourcesContent":[],"mappings":";;;iBAIgB,WAAA;;;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAW;EACzB,QAAA,CAAA,EAAA,MAAA;EACA,UAAA,CAAA,EAAA,GAAA,GAAA,IAAA;CACA,CAAA,EASD,mBAAA,CAAA,GAAA,CAAA,OATC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/usecases/UserStoryCard.d.ts
|
|
4
4
|
declare function UserStoryCard({
|
|
@@ -9,7 +9,7 @@ declare function UserStoryCard({
|
|
|
9
9
|
title: string;
|
|
10
10
|
body?: string;
|
|
11
11
|
outcome?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime57.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { UserStoryCard };
|
|
15
15
|
//# sourceMappingURL=UserStoryCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryCard.d.ts","names":[],"sources":["../../../ui/usecases/UserStoryCard.tsx"],"sourcesContent":[],"mappings":";;;iBAGgB,aAAA;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAa;CAC3B,CAAA,EAOD,
|
|
1
|
+
{"version":3,"file":"UserStoryCard.d.ts","names":[],"sources":["../../../ui/usecases/UserStoryCard.tsx"],"sourcesContent":[],"mappings":";;;iBAGgB,aAAA;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAa;CAC3B,CAAA,EAOD,mBAAA,CAAA,GAAA,CAAA,OAPC"}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4
|
-
function setRef(ref, value) {
|
|
5
|
-
if (typeof ref === "function") return ref(value);
|
|
6
|
-
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
7
|
-
}
|
|
8
|
-
function composeRefs(...refs) {
|
|
9
|
-
return (node) => {
|
|
10
|
-
let hasCleanup = false;
|
|
11
|
-
const cleanups = refs.map((ref) => {
|
|
12
|
-
const cleanup = setRef(ref, node);
|
|
13
|
-
if (!hasCleanup && typeof cleanup == "function") hasCleanup = true;
|
|
14
|
-
return cleanup;
|
|
15
|
-
});
|
|
16
|
-
if (hasCleanup) return () => {
|
|
17
|
-
for (let i = 0; i < cleanups.length; i++) {
|
|
18
|
-
const cleanup = cleanups[i];
|
|
19
|
-
if (typeof cleanup == "function") cleanup();
|
|
20
|
-
else setRef(refs[i], null);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { composeRefs };
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAS,OAAO,KAAK,OAAO;AAC1B,KAAI,OAAO,QAAQ,WACjB,QAAO,IAAI,MAAM;UACR,QAAQ,QAAQ,QAAQ,KAAK,EACtC,KAAI,UAAU;;AAGlB,SAAS,YAAY,GAAG,MAAM;AAC5B,SAAQ,SAAS;EACf,IAAI,aAAa;EACjB,MAAM,WAAW,KAAK,KAAK,QAAQ;GACjC,MAAM,UAAU,OAAO,KAAK,KAAK;AACjC,OAAI,CAAC,cAAc,OAAO,WAAW,WACnC,cAAa;AAEf,UAAO;IACP;AACF,MAAI,WACF,cAAa;AACX,QAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;IACxC,MAAM,UAAU,SAAS;AACzB,QAAI,OAAO,WAAW,WACpB,UAAS;QAET,QAAO,KAAK,IAAI,KAAK"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { composeRefs } from "../../react-compose-refs/dist/index.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region ../../../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
6
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
7
|
-
var use = React$1[" use ".trim().toString()];
|
|
8
|
-
function isPromiseLike(value) {
|
|
9
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
10
|
-
}
|
|
11
|
-
function isLazyComponent(element) {
|
|
12
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
13
|
-
}
|
|
14
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
15
|
-
function createSlot(ownerName) {
|
|
16
|
-
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
17
|
-
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
18
|
-
let { children,...slotProps } = props;
|
|
19
|
-
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
20
|
-
const childrenArray = React$1.Children.toArray(children);
|
|
21
|
-
const slottable = childrenArray.find(isSlottable);
|
|
22
|
-
if (slottable) {
|
|
23
|
-
const newElement = slottable.props.children;
|
|
24
|
-
const newChildren = childrenArray.map((child) => {
|
|
25
|
-
if (child === slottable) {
|
|
26
|
-
if (React$1.Children.count(newElement) > 1) return React$1.Children.only(null);
|
|
27
|
-
return React$1.isValidElement(newElement) ? newElement.props.children : null;
|
|
28
|
-
} else return child;
|
|
29
|
-
});
|
|
30
|
-
return /* @__PURE__ */ jsx(SlotClone, {
|
|
31
|
-
...slotProps,
|
|
32
|
-
ref: forwardedRef,
|
|
33
|
-
children: React$1.isValidElement(newElement) ? React$1.cloneElement(newElement, void 0, newChildren) : null
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ jsx(SlotClone, {
|
|
37
|
-
...slotProps,
|
|
38
|
-
ref: forwardedRef,
|
|
39
|
-
children
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
43
|
-
return Slot2;
|
|
44
|
-
}
|
|
45
|
-
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
46
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
47
|
-
function createSlotClone(ownerName) {
|
|
48
|
-
const SlotClone = React$1.forwardRef((props, forwardedRef) => {
|
|
49
|
-
let { children,...slotProps } = props;
|
|
50
|
-
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
51
|
-
if (React$1.isValidElement(children)) {
|
|
52
|
-
const childrenRef = getElementRef(children);
|
|
53
|
-
const props2 = mergeProps(slotProps, children.props);
|
|
54
|
-
if (children.type !== React$1.Fragment) props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
55
|
-
return React$1.cloneElement(children, props2);
|
|
56
|
-
}
|
|
57
|
-
return React$1.Children.count(children) > 1 ? React$1.Children.only(null) : null;
|
|
58
|
-
});
|
|
59
|
-
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
60
|
-
return SlotClone;
|
|
61
|
-
}
|
|
62
|
-
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
63
|
-
function isSlottable(child) {
|
|
64
|
-
return React$1.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
65
|
-
}
|
|
66
|
-
function mergeProps(slotProps, childProps) {
|
|
67
|
-
const overrideProps = { ...childProps };
|
|
68
|
-
for (const propName in childProps) {
|
|
69
|
-
const slotPropValue = slotProps[propName];
|
|
70
|
-
const childPropValue = childProps[propName];
|
|
71
|
-
if (/^on[A-Z]/.test(propName)) {
|
|
72
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
73
|
-
const result = childPropValue(...args);
|
|
74
|
-
slotPropValue(...args);
|
|
75
|
-
return result;
|
|
76
|
-
};
|
|
77
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
78
|
-
} else if (propName === "style") overrideProps[propName] = {
|
|
79
|
-
...slotPropValue,
|
|
80
|
-
...childPropValue
|
|
81
|
-
};
|
|
82
|
-
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
...slotProps,
|
|
86
|
-
...overrideProps
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function getElementRef(element) {
|
|
90
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
91
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
92
|
-
if (mayWarn) return element.ref;
|
|
93
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
95
|
-
if (mayWarn) return element.props.ref;
|
|
96
|
-
return element.props.ref || element.ref;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
//#endregion
|
|
100
|
-
export { Slot };
|
|
101
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React"],"sources":["../../../../../../../../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"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"}
|