@lssm/lib.ui-kit 1.7.4 → 1.9.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/README.md +82 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +27 -16
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -1
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -2
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.js +4 -4
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +11 -11
- package/dist/ui/alert-dialog.js +9 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -3
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +3 -3
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +1 -1
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +6 -6
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/collapsible.d.ts +8 -8
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/context-menu.js.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/dialog.d.ts +10 -10
- package/dist/ui/dialog.js +7 -7
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +9 -9
- package/dist/ui/dropdown-menu.js.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/empty.js +6 -6
- package/dist/ui/empty.js.map +1 -1
- 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/field.js +10 -11
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +5 -6
- 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/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/link.d.ts +2 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +1 -1
- package/dist/ui/loading-button.js.map +1 -1
- package/dist/ui/loading-overlay.d.ts +2 -2
- package/dist/ui/loading-overlay.d.ts.map +1 -1
- 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/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +11 -11
- package/dist/ui/menubar.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.js +6 -6
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- 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 +6 -6
- package/dist/ui/popover.js +1 -1
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.js +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +2 -2
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/select.d.ts +13 -13
- package/dist/ui/select.js +7 -7
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.js +1 -1
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/stack.d.ts +4 -4
- package/dist/ui/stack.js +3 -3
- package/dist/ui/stack.js.map +1 -1
- package/dist/ui/stepper.d.ts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +8 -8
- package/dist/ui/table.js +7 -7
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +11 -11
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +1 -1
- package/dist/ui/text.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.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-group.js +3 -3
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +6 -6
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts +6 -6
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +11 -11
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/useColorScheme.d.ts +2 -2
- package/dist/ui/useColorScheme.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/ui/card.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Text, TextProps, View, ViewProps } from "react-native";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime132 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/card.d.ts
|
|
6
6
|
declare function Card({
|
|
@@ -8,37 +8,37 @@ declare function Card({
|
|
|
8
8
|
...props
|
|
9
9
|
}: ViewProps & {
|
|
10
10
|
ref?: React$1.RefObject<View>;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
12
12
|
declare function CardHeader({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
15
|
}: ViewProps & {
|
|
16
16
|
ref?: React$1.RefObject<View>;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
18
18
|
declare function CardTitle({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
21
|
}: TextProps & {
|
|
22
22
|
ref?: React$1.RefObject<Text>;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
24
24
|
declare function CardDescription({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
27
|
}: TextProps & {
|
|
28
28
|
ref?: React$1.RefObject<Text>;
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
30
30
|
declare function CardContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
33
|
}: ViewProps & {
|
|
34
34
|
ref?: React$1.RefObject<View>;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
36
36
|
declare function CardFooter({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
39
|
}: ViewProps & {
|
|
40
40
|
ref?: React$1.RefObject<View>;
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime132.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
44
44
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/ui/card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","names":[],"sources":["../../ui/card.tsx"],"sourcesContent":[],"mappings":";;;;;iBAMS,IAAA;;;AAJiC,GAOvC;QACK,OAAA,CAAM,UAAU;AARkB,CAAA,CAAA,EASzC,
|
|
1
|
+
{"version":3,"file":"card.d.ts","names":[],"sources":["../../ui/card.tsx"],"sourcesContent":[],"mappings":";;;;;iBAMS,IAAA;;;AAJiC,GAOvC;QACK,OAAA,CAAM,UAAU;AARkB,CAAA,CAAA,EASzC,oBAAA,CAAA,GAAA,CAAA,OALY;iBAiBJ,UAAA,CAhBP;EAAA,SAAA;EAAA,GAAA;CAAA,EAmBC,SAnBD,GAAA;EAEC,GAAA,CAAA,EAkBK,OAAA,CAAM,SAlBX,CAkBqB,IAlBrB,CAAA;CACqB,CAAA,EAkBvB,oBAAA,CAAA,GAAA,CAAA,OAlBuB;iBAwBf,SAAA,CAxBK;EAAA,SAAA;EAAA,GAAA;CAAA,EA2BX,SA3BW,GAAA;EACb,GAAA,CAAA,EA2BO,OAAA,CAAM,SA3Bb,CA2BuB,IA3BvB,CAAA;CAAA,CAAA,EA4BA,oBAAA,CAAA,GAAA,CAAA,OA5BA;AAAA,iBA0CQ,eAAA,CA9BU;EAAA,SAAA;EAAA,GAAA;CAAA,EAiChB,SAjCgB,GAAA;EACjB,GAAA,CAAA,EAiCM,OAAA,CAAM,SAjCZ,CAiCsB,IAjCtB,CAAA;CAEC,CAAA,EAgCF,oBAAA,CAAA,GAAA,CAAA,OAhCE;iBAyCM,WAAA,CAxCe;EAAA,SAAA;EAAA,GAAA;CAAA,EA2CrB,SA3CqB,GAAA;EAAhB,GAAA,CAAA,EA4CA,OAAA,CAAM,SA5CA,CA4CU,IA5CV,CAAA;CACb,CAAA,EA4CA,oBAAA,CAAA,GAAA,CAAA,OA5CA;iBAoDQ,UAAA,CApDR;EAAA,SAAA;EAAA,GAAA;CAAA,EAuDE,SAvDF,GAAA;EAMQ,GAAA,CAAA,EAkDD,OAAA,CAAM,SAlDI,CAkDM,IAlDN,CAAA;CAChB,CAAA,EAkDD,oBAAA,CAAA,GAAA,CAAA,OAlDC"}
|
package/dist/ui/card.js
CHANGED
|
@@ -5,19 +5,19 @@ import { Text, View } from "react-native";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region ui/card.tsx
|
|
8
|
-
function Card({ className
|
|
8
|
+
function Card({ className, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(View, {
|
|
10
10
|
className: cn("border-border bg-card shadow-foreground/10 rounded-lg border shadow-2xs", className),
|
|
11
11
|
...props
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function CardHeader({ className
|
|
14
|
+
function CardHeader({ className, ...props }) {
|
|
15
15
|
return /* @__PURE__ */ jsx(View, {
|
|
16
16
|
className: cn("flex flex-col gap-y-1.5 p-6", className),
|
|
17
17
|
...props
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function CardTitle({ className
|
|
20
|
+
function CardTitle({ className, ...props }) {
|
|
21
21
|
return /* @__PURE__ */ jsx(Text, {
|
|
22
22
|
role: "heading",
|
|
23
23
|
"aria-level": 3,
|
|
@@ -25,13 +25,13 @@ function CardTitle({ className,...props }) {
|
|
|
25
25
|
...props
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function CardDescription({ className
|
|
28
|
+
function CardDescription({ className, ...props }) {
|
|
29
29
|
return /* @__PURE__ */ jsx(Text, {
|
|
30
30
|
className: cn("text-muted-foreground text-sm", className),
|
|
31
31
|
...props
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function CardContent({ className
|
|
34
|
+
function CardContent({ className, ...props }) {
|
|
35
35
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
36
36
|
value: "text-card-foreground",
|
|
37
37
|
children: /* @__PURE__ */ jsx(View, {
|
|
@@ -40,7 +40,7 @@ function CardContent({ className,...props }) {
|
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function CardFooter({ className
|
|
43
|
+
function CardFooter({ className, ...props }) {
|
|
44
44
|
return /* @__PURE__ */ jsx(View, {
|
|
45
45
|
className: cn("flex flex-row items-center p-6 pt-0", className),
|
|
46
46
|
...props
|
package/dist/ui/card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../ui/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { TextProps, ViewProps } from 'react-native';\nimport { Text, View } from 'react-native';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nfunction Card({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View\n className={cn(\n 'border-border bg-card shadow-foreground/10 rounded-lg border shadow-2xs',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View className={cn('flex flex-col gap-y-1.5 p-6', className)} {...props} />\n );\n}\n\nfunction CardTitle({\n className,\n ...props\n}: TextProps & {\n ref?: React.RefObject<Text>;\n}) {\n return (\n <Text\n role=\"heading\"\n aria-level={3}\n className={cn(\n 'text-card-foreground text-2xl leading-none font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardDescription({\n className,\n ...props\n}: TextProps & {\n ref?: React.RefObject<Text>;\n}) {\n return (\n <Text\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <TextClassContext.Provider value=\"text-card-foreground\">\n <View className={cn('p-6 pt-0', className)} {...props} />\n </TextClassContext.Provider>\n );\n}\n\nfunction CardFooter({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View\n className={cn('flex flex-row items-center p-6 pt-0', className)}\n {...props}\n />\n );\n}\n\nexport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n};\n"],"mappings":";;;;;;;AAMA,SAAS,KAAK,EACZ,
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../ui/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { TextProps, ViewProps } from 'react-native';\nimport { Text, View } from 'react-native';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nfunction Card({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View\n className={cn(\n 'border-border bg-card shadow-foreground/10 rounded-lg border shadow-2xs',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View className={cn('flex flex-col gap-y-1.5 p-6', className)} {...props} />\n );\n}\n\nfunction CardTitle({\n className,\n ...props\n}: TextProps & {\n ref?: React.RefObject<Text>;\n}) {\n return (\n <Text\n role=\"heading\"\n aria-level={3}\n className={cn(\n 'text-card-foreground text-2xl leading-none font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction CardDescription({\n className,\n ...props\n}: TextProps & {\n ref?: React.RefObject<Text>;\n}) {\n return (\n <Text\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <TextClassContext.Provider value=\"text-card-foreground\">\n <View className={cn('p-6 pt-0', className)} {...props} />\n </TextClassContext.Provider>\n );\n}\n\nfunction CardFooter({\n className,\n ...props\n}: ViewProps & {\n ref?: React.RefObject<View>;\n}) {\n return (\n <View\n className={cn('flex flex-row items-center p-6 pt-0', className)}\n {...props}\n />\n );\n}\n\nexport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n};\n"],"mappings":";;;;;;;AAMA,SAAS,KAAK,EACZ,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,WAAW,GACT,2EACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EAAK,WAAW,GAAG,+BAA+B,UAAU;EAAE,GAAI;GAAS;;AAIhF,SAAS,UAAU,EACjB,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,MAAK;EACL,cAAY;EACZ,WAAW,GACT,2EACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,gBAAgB,EACvB,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,WACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC;GAAK,WAAW,GAAG,YAAY,UAAU;GAAE,GAAI;IAAS;GAC/B;;AAIhC,SAAS,WAAW,EAClB,WACA,GAAG,SAGF;AACD,QACE,oBAAC;EACC,WAAW,GAAG,uCAAuC,UAAU;EAC/D,GAAI;GACJ"}
|
package/dist/ui/checkbox.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native35 from "react-native";
|
|
3
3
|
|
|
4
4
|
//#region ui/checkbox.d.ts
|
|
5
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<
|
|
5
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<react_native35.PressableProps & React$1.RefAttributes<react_native35.View>, "ref"> & {
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
} & {
|
|
8
8
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -11,7 +11,7 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<react_native
|
|
|
11
11
|
checked: boolean;
|
|
12
12
|
onCheckedChange: (checked: boolean) => void;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
-
} & React$1.RefAttributes<
|
|
14
|
+
} & React$1.RefAttributes<react_native35.View>, "ref"> & React$1.RefAttributes<react_native35.View>>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Checkbox };
|
|
17
17
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","names":[],"sources":["../../ui/checkbox.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,UAAQ,OAAA,CAAA,0BAAA,KAAA,KAkBZ,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","names":[],"sources":["../../ui/checkbox.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,UAAQ,OAAA,CAAA,0BAAA,KAAA,KAkBZ,cAAA,CAlBY,cAAA,GAAA,OAAA,CAAA,cAAA,cAAA,CAAA,IAAA;;;EAAR,SAAA,CAAA,EAkBJ,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAlBY,uBAAA,EAAA,GAAA,IAAA;CAAA,GAAA;EAAA,OAAA,EAAA,OAAA;EAAA,eAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;;+EAAA,cAAA,CAAA,IAAA"}
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import * as CheckboxPrimitive from "@rn-primitives/checkbox";
|
|
6
6
|
|
|
7
7
|
//#region ui/checkbox.tsx
|
|
8
|
-
const Checkbox = React$1.forwardRef(({ className
|
|
8
|
+
const Checkbox = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
9
9
|
ref,
|
|
10
10
|
className: cn("web:peer border-primary web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-xs border disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
11
11
|
...props,
|
package/dist/ui/checkbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":["React"],"sources":["../../ui/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from '@rn-primitives/checkbox';\nimport * as React from 'react';\nimport { cn } from './utils';\nimport { Check } from 'lucide-react-native';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'web:peer border-primary web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-xs border disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"mappings":";;;;;;;AAKA,MAAM,WAAWA,QAAM,YAGpB,EAAE,
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":["React"],"sources":["../../ui/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from '@rn-primitives/checkbox';\nimport * as React from 'react';\nimport { cn } from './utils';\nimport { Check } from 'lucide-react-native';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'web:peer border-primary web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-xs border disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"mappings":";;;;;;;AAKA,MAAM,WAAWA,QAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,kBAAkB;CACZ;CACL,WAAW,GACT,+PACA,UACD;CACD,GAAI;WAEJ,oBAAC,kBAAkB;EACjB,WAAW,GAAG,gDAAgD;YAE9D,oBAAC,SAAM,WAAU,YAAY;GACD;EACP,CACzB;AACF,SAAS,cAAc,kBAAkB,KAAK"}
|
package/dist/ui/collapsible.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as react1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_native39 from "react-native";
|
|
3
|
+
import * as _rn_primitives_types1 from "@rn-primitives/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/collapsible.d.ts
|
|
6
|
-
declare const Collapsible: react1.ForwardRefExoticComponent<
|
|
6
|
+
declare const Collapsible: react1.ForwardRefExoticComponent<react_native39.ViewProps & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
} & {
|
|
9
9
|
open?: boolean;
|
|
10
10
|
defaultOpen?: boolean;
|
|
11
11
|
onOpenChange?: (open: boolean) => void;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
} & react1.RefAttributes<
|
|
14
|
-
declare const CollapsibleTrigger: react1.ForwardRefExoticComponent<Omit<
|
|
13
|
+
} & react1.RefAttributes<react_native39.View>>;
|
|
14
|
+
declare const CollapsibleTrigger: react1.ForwardRefExoticComponent<Omit<react_native39.PressableProps & react1.RefAttributes<react_native39.View>, "ref"> & {
|
|
15
15
|
asChild?: boolean;
|
|
16
16
|
} & {
|
|
17
17
|
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
18
18
|
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
19
|
-
} & react1.RefAttributes<
|
|
20
|
-
declare const CollapsibleContent: react1.ForwardRefExoticComponent<
|
|
19
|
+
} & react1.RefAttributes<react_native39.View>>;
|
|
20
|
+
declare const CollapsibleContent: react1.ForwardRefExoticComponent<_rn_primitives_types1.ForceMountable & react_native39.ViewProps & {
|
|
21
21
|
asChild?: boolean;
|
|
22
|
-
} & react1.RefAttributes<
|
|
22
|
+
} & react1.RefAttributes<react_native39.View>>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
25
25
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;cAEM,oBAAW,0BAA4B,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;cAEM,oBAAW,0BAA4B,cAAA,CAA5B,SAAA;;;;;EAAX,YAAA,CAAA,EAAuC,CAAA,IAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,QAAA,CAAA,EAAA,OAA5B;CAAA,uBAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA;cAEX,2BAAkB,0BAAA,KAA+B,cAAA,CAA/B,cAAA,GAAA,MAAA,CAAA,cAAA,cAAA,CAAA,IAAA;SAFP,CAAA,EAAA,OAAA;CAAA,GAAA;EAEX,SAAA,CAAA,EAAA,CAAA,EAAA,qBAAiD,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAA/B,qBAAA,EAAA,GAAA,IAAA;CAAA,uBAAA,qBAAA,CAAA;cAElB,kBAFkB,SAEA,yBAFA,CAE+B,qBAAA,CAA/B,cAAA,GAAA,cAAA,CAAA,SAAA,GAFA;EAAA,OAAA,CAAA,EAAA,OAAA;yBAEA,cAAA,CAAA,IAAA"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native30 from "react-native";
|
|
3
3
|
import { StyleProp, TextProps, View, ViewStyle } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
5
5
|
import * as _rn_primitives_context_menu0 from "@rn-primitives/context-menu";
|
|
6
6
|
|
|
7
7
|
//#region ui/context-menu.d.ts
|
|
8
|
-
declare const ContextMenu: React$1.ForwardRefExoticComponent<
|
|
8
|
+
declare const ContextMenu: React$1.ForwardRefExoticComponent<react_native30.ViewProps & {
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
} & {
|
|
11
11
|
onOpenChange?: (open: boolean) => void;
|
|
12
12
|
relativeTo?: "longPress" | "trigger";
|
|
13
13
|
} & React$1.RefAttributes<View>>;
|
|
14
|
-
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
14
|
+
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<Omit<react_native30.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
15
15
|
asChild?: boolean;
|
|
16
16
|
} & {
|
|
17
17
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
18
18
|
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
19
19
|
} & React$1.RefAttributes<_rn_primitives_context_menu0.TriggerRef>>;
|
|
20
|
-
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<
|
|
20
|
+
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<react_native30.ViewProps & {
|
|
21
21
|
asChild?: boolean;
|
|
22
22
|
} & React$1.RefAttributes<View>>;
|
|
23
|
-
declare const ContextMenuSub: React$1.ForwardRefExoticComponent<
|
|
23
|
+
declare const ContextMenuSub: React$1.ForwardRefExoticComponent<react_native30.ViewProps & {
|
|
24
24
|
asChild?: boolean;
|
|
25
25
|
} & {
|
|
26
26
|
defaultOpen?: boolean;
|
|
27
27
|
open?: boolean;
|
|
28
28
|
onOpenChange?: (value: boolean) => void;
|
|
29
29
|
} & React$1.RefAttributes<View>>;
|
|
30
|
-
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<
|
|
30
|
+
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<react_native30.ViewProps & {
|
|
31
31
|
asChild?: boolean;
|
|
32
32
|
} & {
|
|
33
33
|
value: string | undefined;
|
|
@@ -42,13 +42,13 @@ declare function ContextMenuSubTrigger({
|
|
|
42
42
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.SubTriggerRef>;
|
|
43
43
|
children?: React$1.ReactNode;
|
|
44
44
|
inset?: boolean;
|
|
45
|
-
}):
|
|
45
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
46
46
|
declare function ContextMenuSubContent({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
49
|
}: _rn_primitives_context_menu0.SubContentProps & {
|
|
50
50
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.SubContentRef>;
|
|
51
|
-
}):
|
|
51
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
52
52
|
declare function ContextMenuContent({
|
|
53
53
|
className,
|
|
54
54
|
overlayClassName,
|
|
@@ -60,7 +60,7 @@ declare function ContextMenuContent({
|
|
|
60
60
|
overlayStyle?: StyleProp<ViewStyle>;
|
|
61
61
|
overlayClassName?: string;
|
|
62
62
|
portalHost?: string;
|
|
63
|
-
}):
|
|
63
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
64
64
|
declare function ContextMenuItem({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -69,7 +69,7 @@ declare function ContextMenuItem({
|
|
|
69
69
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.ItemRef>;
|
|
70
70
|
className?: string;
|
|
71
71
|
inset?: boolean;
|
|
72
|
-
}):
|
|
72
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
73
73
|
declare function ContextMenuCheckboxItem({
|
|
74
74
|
className,
|
|
75
75
|
children,
|
|
@@ -77,7 +77,7 @@ declare function ContextMenuCheckboxItem({
|
|
|
77
77
|
}: _rn_primitives_context_menu0.CheckboxItemProps & {
|
|
78
78
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.CheckboxItemRef>;
|
|
79
79
|
children?: React$1.ReactNode;
|
|
80
|
-
}):
|
|
80
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
81
81
|
declare function ContextMenuRadioItem({
|
|
82
82
|
className,
|
|
83
83
|
children,
|
|
@@ -85,7 +85,7 @@ declare function ContextMenuRadioItem({
|
|
|
85
85
|
}: _rn_primitives_context_menu0.RadioItemProps & {
|
|
86
86
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.RadioItemRef>;
|
|
87
87
|
children?: React$1.ReactNode;
|
|
88
|
-
}):
|
|
88
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
89
89
|
declare function ContextMenuLabel({
|
|
90
90
|
className,
|
|
91
91
|
inset,
|
|
@@ -94,17 +94,17 @@ declare function ContextMenuLabel({
|
|
|
94
94
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.LabelRef>;
|
|
95
95
|
className?: string;
|
|
96
96
|
inset?: boolean;
|
|
97
|
-
}):
|
|
97
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
98
98
|
declare function ContextMenuSeparator({
|
|
99
99
|
className,
|
|
100
100
|
...props
|
|
101
101
|
}: _rn_primitives_context_menu0.SeparatorProps & {
|
|
102
102
|
ref?: React$1.RefObject<_rn_primitives_context_menu0.SeparatorRef>;
|
|
103
|
-
}):
|
|
103
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
104
104
|
declare function ContextMenuShortcut({
|
|
105
105
|
className,
|
|
106
106
|
...props
|
|
107
|
-
}: TextProps):
|
|
107
|
+
}: TextProps): react_jsx_runtime79.JSX.Element;
|
|
108
108
|
//#endregion
|
|
109
109
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
110
110
|
//# sourceMappingURL=context-menu.d.ts.map
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -15,7 +15,7 @@ const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
|
15
15
|
const ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
16
16
|
const ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
17
17
|
const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
18
|
-
function ContextMenuSubTrigger({ className, inset, children
|
|
18
|
+
function ContextMenuSubTrigger({ className, inset, children, ...props }) {
|
|
19
19
|
const { open } = ContextMenuPrimitive.useSubContext();
|
|
20
20
|
const Icon = Platform.OS === "web" ? ChevronRight : open ? ChevronUp : ChevronDown;
|
|
21
21
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
@@ -30,14 +30,14 @@ function ContextMenuSubTrigger({ className, inset, children,...props }) {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function ContextMenuSubContent({ className
|
|
33
|
+
function ContextMenuSubContent({ className, ...props }) {
|
|
34
34
|
const { open } = ContextMenuPrimitive.useSubContext();
|
|
35
35
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, {
|
|
36
36
|
className: cn("border-border bg-popover shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md", open ? "web:animate-in web:fade-in-0 web:zoom-in-95" : "web:animate-out web:fade-out-0 web:zoom-out", className),
|
|
37
37
|
...props
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function ContextMenuContent({ className, overlayClassName, overlayStyle, portalHost
|
|
40
|
+
function ContextMenuContent({ className, overlayClassName, overlayStyle, portalHost, ...props }) {
|
|
41
41
|
const { open } = ContextMenuPrimitive.useRootContext();
|
|
42
42
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, {
|
|
43
43
|
hostName: portalHost,
|
|
@@ -51,7 +51,7 @@ function ContextMenuContent({ className, overlayClassName, overlayStyle, portalH
|
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function ContextMenuItem({ className, inset
|
|
54
|
+
function ContextMenuItem({ className, inset, ...props }) {
|
|
55
55
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
56
56
|
value: "select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground",
|
|
57
57
|
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
|
|
@@ -60,7 +60,7 @@ function ContextMenuItem({ className, inset,...props }) {
|
|
|
60
60
|
})
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function ContextMenuCheckboxItem({ className, children
|
|
63
|
+
function ContextMenuCheckboxItem({ className, children, ...props }) {
|
|
64
64
|
return /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, {
|
|
65
65
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
66
66
|
...props,
|
|
@@ -74,7 +74,7 @@ function ContextMenuCheckboxItem({ className, children,...props }) {
|
|
|
74
74
|
}), children]
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
function ContextMenuRadioItem({ className, children
|
|
77
|
+
function ContextMenuRadioItem({ className, children, ...props }) {
|
|
78
78
|
return /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, {
|
|
79
79
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
80
80
|
...props,
|
|
@@ -84,19 +84,19 @@ function ContextMenuRadioItem({ className, children,...props }) {
|
|
|
84
84
|
}), children]
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function ContextMenuLabel({ className, inset
|
|
87
|
+
function ContextMenuLabel({ className, inset, ...props }) {
|
|
88
88
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, {
|
|
89
89
|
className: cn("native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
90
90
|
...props
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function ContextMenuSeparator({ className
|
|
93
|
+
function ContextMenuSeparator({ className, ...props }) {
|
|
94
94
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
|
|
95
95
|
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
96
96
|
...props
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function ContextMenuShortcut({ className
|
|
99
|
+
function ContextMenuShortcut({ className, ...props }) {
|
|
100
100
|
return /* @__PURE__ */ jsx(Text, {
|
|
101
101
|
className: cn("native:text-sm text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
102
102
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.js","names":[],"sources":["../../ui/context-menu.tsx"],"sourcesContent":["import * as ContextMenuPrimitive from '@rn-primitives/context-menu';\nimport * as React from 'react';\nimport {\n Platform,\n type StyleProp,\n StyleSheet,\n Text,\n type TextProps,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst ContextMenu = ContextMenuPrimitive.Root;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nfunction ContextMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: ContextMenuPrimitive.SubTriggerProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SubTriggerRef>;\n children?: React.ReactNode;\n inset?: boolean;\n}) {\n const { open } = ContextMenuPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <ContextMenuPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </ContextMenuPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: ContextMenuPrimitive.SubContentProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SubContentRef>;\n}) {\n const { open } = ContextMenuPrimitive.useSubContext();\n return (\n <ContextMenuPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuContent({\n className,\n overlayClassName,\n overlayStyle,\n portalHost,\n ...props\n}: ContextMenuPrimitive.ContentProps & {\n ref?: React.RefObject<ContextMenuPrimitive.ContentRef>;\n overlayStyle?: StyleProp<ViewStyle>;\n overlayClassName?: string;\n portalHost?: string;\n}) {\n const { open } = ContextMenuPrimitive.useRootContext();\n return (\n <ContextMenuPrimitive.Portal hostName={portalHost}>\n <ContextMenuPrimitive.Overlay\n style={\n overlayStyle\n ? StyleSheet.flatten([\n Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,\n overlayStyle as typeof StyleSheet.absoluteFill,\n ])\n : Platform.OS !== 'web'\n ? StyleSheet.absoluteFill\n : undefined\n }\n className={overlayClassName}\n >\n <ContextMenuPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </ContextMenuPrimitive.Overlay>\n </ContextMenuPrimitive.Portal>\n );\n}\n\nfunction ContextMenuItem({\n className,\n inset,\n ...props\n}: ContextMenuPrimitive.ItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <ContextMenuPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction ContextMenuCheckboxItem({\n className,\n children,\n ...props\n}: ContextMenuPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <ContextMenuPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </ContextMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction ContextMenuRadioItem({\n className,\n children,\n ...props\n}: ContextMenuPrimitive.RadioItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <ContextMenuPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </ContextMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </ContextMenuPrimitive.RadioItem>\n );\n}\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: ContextMenuPrimitive.LabelProps & {\n ref?: React.RefObject<ContextMenuPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <ContextMenuPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: ContextMenuPrimitive.SeparatorProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SeparatorRef>;\n}) {\n return (\n <ContextMenuPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction ContextMenuShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ContextMenu,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,cAAc,qBAAqB;AACzC,MAAM,qBAAqB,qBAAqB;AAChD,MAAM,mBAAmB,qBAAqB;AAC9C,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,wBAAwB,qBAAqB;AAEnD,SAAS,sBAAsB,EAC7B,WACA,OACA,SACA,GAAG,SAKF;CACD,MAAM,EAAE,SAAS,qBAAqB,eAAe;CACrD,MAAM,OACJ,SAAS,OAAO,QAAQ,eAAe,OAAO,YAAY;AAC5D,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mDACA,QAAQ,gCACT;YAED,qBAAC,qBAAqB;GACpB,WAAW,GACT,sLACA,QAAQ,aACR,SAAS,QACT,UACD;GACD,GAAI;cAEH,UACD,oBAAC;IAAK,MAAM;IAAI,WAAU;KAA4B;IACtB;GACR;;AAIhC,SAAS,sBAAsB,EAC7B,UACA,GAAG,SAGF;CACD,MAAM,EAAE,SAAS,qBAAqB,eAAe;AACrD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,+QACA,OACI,gDACA,+CACJ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,mBAAmB,EAC1B,WACA,kBACA,cACA,WACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AACtD,QACE,oBAAC,qBAAqB;EAAO,UAAU;YACrC,oBAAC,qBAAqB;GACpB,OACE,eACI,WAAW,QAAQ,CACjB,SAAS,OAAO,QAAQ,WAAW,eAAe,QAClD,aACD,CAAC,GACF,SAAS,OAAO,QACd,WAAW,eACX;GAER,WAAW;aAEX,oBAAC,qBAAqB;IACpB,WAAW,GACT,0RACA,OACI,gDACA,kDACJ,UACD;IACD,GAAI;KACJ;IAC2B;GACH;;AAIlC,SAAS,gBAAgB,EACvB,WACA,MACA,GAAG,SAKF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,qBAAqB;GACpB,WAAW,GACT,qLACA,SAAS,QACT,MAAM,YAAY,sCAClB,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,wBAAwB,EAC/B,WACA,SACA,GAAG,SAIF;AACD,QACE,qBAAC,qBAAqB;EACpB,WAAW,GACT,oKACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC;IAAM,MAAM;IAAI,aAAa;IAAG,WAAU;KAAoB,GAC5B;IAChC,EACN;GACiC;;AAIxC,SAAS,qBAAqB,EAC5B,WACA,SACA,GAAG,SAIF;AACD,QACE,qBAAC,qBAAqB;EACpB,WAAW,GACT,oKACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC,QAAK,WAAU,uCAAuC,GACpB;IAChC,EACN;GAC8B;;AAIrC,SAAS,iBAAiB,EACxB,WACA,MACA,GAAG,SAKF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,yFACA,SAAS,QACT,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAC5B,UACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAAE,UAAW,GAAG,SAAoB;AAC/D,QACE,oBAAC;EACC,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
|
|
1
|
+
{"version":3,"file":"context-menu.js","names":[],"sources":["../../ui/context-menu.tsx"],"sourcesContent":["import * as ContextMenuPrimitive from '@rn-primitives/context-menu';\nimport * as React from 'react';\nimport {\n Platform,\n type StyleProp,\n StyleSheet,\n Text,\n type TextProps,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst ContextMenu = ContextMenuPrimitive.Root;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nfunction ContextMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: ContextMenuPrimitive.SubTriggerProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SubTriggerRef>;\n children?: React.ReactNode;\n inset?: boolean;\n}) {\n const { open } = ContextMenuPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <ContextMenuPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </ContextMenuPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: ContextMenuPrimitive.SubContentProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SubContentRef>;\n}) {\n const { open } = ContextMenuPrimitive.useSubContext();\n return (\n <ContextMenuPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuContent({\n className,\n overlayClassName,\n overlayStyle,\n portalHost,\n ...props\n}: ContextMenuPrimitive.ContentProps & {\n ref?: React.RefObject<ContextMenuPrimitive.ContentRef>;\n overlayStyle?: StyleProp<ViewStyle>;\n overlayClassName?: string;\n portalHost?: string;\n}) {\n const { open } = ContextMenuPrimitive.useRootContext();\n return (\n <ContextMenuPrimitive.Portal hostName={portalHost}>\n <ContextMenuPrimitive.Overlay\n style={\n overlayStyle\n ? StyleSheet.flatten([\n Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,\n overlayStyle as typeof StyleSheet.absoluteFill,\n ])\n : Platform.OS !== 'web'\n ? StyleSheet.absoluteFill\n : undefined\n }\n className={overlayClassName}\n >\n <ContextMenuPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </ContextMenuPrimitive.Overlay>\n </ContextMenuPrimitive.Portal>\n );\n}\n\nfunction ContextMenuItem({\n className,\n inset,\n ...props\n}: ContextMenuPrimitive.ItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <ContextMenuPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction ContextMenuCheckboxItem({\n className,\n children,\n ...props\n}: ContextMenuPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <ContextMenuPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </ContextMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction ContextMenuRadioItem({\n className,\n children,\n ...props\n}: ContextMenuPrimitive.RadioItemProps & {\n ref?: React.RefObject<ContextMenuPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <ContextMenuPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </ContextMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </ContextMenuPrimitive.RadioItem>\n );\n}\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: ContextMenuPrimitive.LabelProps & {\n ref?: React.RefObject<ContextMenuPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <ContextMenuPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: ContextMenuPrimitive.SeparatorProps & {\n ref?: React.RefObject<ContextMenuPrimitive.SeparatorRef>;\n}) {\n return (\n <ContextMenuPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction ContextMenuShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ContextMenu,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,cAAc,qBAAqB;AACzC,MAAM,qBAAqB,qBAAqB;AAChD,MAAM,mBAAmB,qBAAqB;AAC9C,MAAM,iBAAiB,qBAAqB;AAC5C,MAAM,wBAAwB,qBAAqB;AAEnD,SAAS,sBAAsB,EAC7B,WACA,OACA,UACA,GAAG,SAKF;CACD,MAAM,EAAE,SAAS,qBAAqB,eAAe;CACrD,MAAM,OACJ,SAAS,OAAO,QAAQ,eAAe,OAAO,YAAY;AAC5D,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mDACA,QAAQ,gCACT;YAED,qBAAC,qBAAqB;GACpB,WAAW,GACT,sLACA,QAAQ,aACR,SAAS,QACT,UACD;GACD,GAAI;cAEH,UACD,oBAAC;IAAK,MAAM;IAAI,WAAU;KAA4B;IACtB;GACR;;AAIhC,SAAS,sBAAsB,EAC7B,WACA,GAAG,SAGF;CACD,MAAM,EAAE,SAAS,qBAAqB,eAAe;AACrD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,+QACA,OACI,gDACA,+CACJ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,mBAAmB,EAC1B,WACA,kBACA,cACA,YACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,qBAAqB,gBAAgB;AACtD,QACE,oBAAC,qBAAqB;EAAO,UAAU;YACrC,oBAAC,qBAAqB;GACpB,OACE,eACI,WAAW,QAAQ,CACjB,SAAS,OAAO,QAAQ,WAAW,eAAe,QAClD,aACD,CAAC,GACF,SAAS,OAAO,QACd,WAAW,eACX;GAER,WAAW;aAEX,oBAAC,qBAAqB;IACpB,WAAW,GACT,0RACA,OACI,gDACA,kDACJ,UACD;IACD,GAAI;KACJ;IAC2B;GACH;;AAIlC,SAAS,gBAAgB,EACvB,WACA,OACA,GAAG,SAKF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,qBAAqB;GACpB,WAAW,GACT,qLACA,SAAS,QACT,MAAM,YAAY,sCAClB,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,wBAAwB,EAC/B,WACA,UACA,GAAG,SAIF;AACD,QACE,qBAAC,qBAAqB;EACpB,WAAW,GACT,oKACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC;IAAM,MAAM;IAAI,aAAa;IAAG,WAAU;KAAoB,GAC5B;IAChC,EACN;GACiC;;AAIxC,SAAS,qBAAqB,EAC5B,WACA,UACA,GAAG,SAIF;AACD,QACE,qBAAC,qBAAqB;EACpB,WAAW,GACT,oKACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,qBAAqB,2BACpB,oBAAC,QAAK,WAAU,uCAAuC,GACpB;IAChC,EACN;GAC8B;;AAIrC,SAAS,iBAAiB,EACxB,WACA,OACA,GAAG,SAKF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,yFACA,SAAS,QACT,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAC5B,WACA,GAAG,SAGF;AACD,QACE,oBAAC,qBAAqB;EACpB,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAAE,WAAW,GAAG,SAAoB;AAC/D,QACE,oBAAC;EACC,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
|
package/dist/ui/date-picker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/date-picker.d.ts
|
|
4
4
|
interface DatePickerProps {
|
|
@@ -18,7 +18,7 @@ declare function DatePicker({
|
|
|
18
18
|
maxDate,
|
|
19
19
|
placeholder,
|
|
20
20
|
className
|
|
21
|
-
}: DatePickerProps):
|
|
21
|
+
}: DatePickerProps): react_jsx_runtime88.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { DatePicker, DatePickerProps };
|
|
24
24
|
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime90 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/date-range-picker.d.ts
|
|
4
4
|
interface DateRange {
|
|
@@ -25,7 +25,7 @@ declare function DateRangePicker({
|
|
|
25
25
|
maxDate,
|
|
26
26
|
placeholders,
|
|
27
27
|
className
|
|
28
|
-
}: DateRangePickerProps):
|
|
28
|
+
}: DateRangePickerProps): react_jsx_runtime90.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { DateRange, DateRangePicker, DateRangePickerProps };
|
|
31
31
|
//# sourceMappingURL=date-range-picker.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/datetime-picker.d.ts
|
|
4
4
|
interface DateTimePickerProps {
|
|
@@ -22,7 +22,7 @@ declare function DateTimePicker({
|
|
|
22
22
|
timePlaceholder,
|
|
23
23
|
is24Hour,
|
|
24
24
|
className
|
|
25
|
-
}: DateTimePickerProps):
|
|
25
|
+
}: DateTimePickerProps): react_jsx_runtime89.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { DateTimePicker, DateTimePickerProps };
|
|
28
28
|
//# sourceMappingURL=datetime-picker.d.ts.map
|
package/dist/ui/dialog.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native46 from "react-native";
|
|
3
3
|
import { View, ViewProps } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
5
5
|
import * as DialogPrimitive from "@rn-primitives/dialog";
|
|
6
6
|
|
|
7
7
|
//#region ui/dialog.d.ts
|
|
@@ -12,14 +12,14 @@ declare const Dialog: React$1.ForwardRefExoticComponent<ViewProps & {
|
|
|
12
12
|
defaultOpen?: boolean;
|
|
13
13
|
onOpenChange?: (value: boolean) => void;
|
|
14
14
|
} & React$1.RefAttributes<View>>;
|
|
15
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
15
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<react_native46.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & {
|
|
18
18
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
19
19
|
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
20
20
|
} & React$1.RefAttributes<View>>;
|
|
21
21
|
declare const DialogPortal: typeof DialogPrimitive.Portal;
|
|
22
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<
|
|
22
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<react_native46.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
23
23
|
asChild?: boolean;
|
|
24
24
|
} & {
|
|
25
25
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -32,7 +32,7 @@ declare function DialogOverlayNative({
|
|
|
32
32
|
}: DialogPrimitive.OverlayProps & {
|
|
33
33
|
ref?: React$1.RefObject<DialogPrimitive.OverlayRef>;
|
|
34
34
|
children?: React$1.ReactNode;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
36
36
|
declare const DialogOverlay: typeof DialogOverlayNative;
|
|
37
37
|
declare function DialogContent({
|
|
38
38
|
className,
|
|
@@ -43,27 +43,27 @@ declare function DialogContent({
|
|
|
43
43
|
ref?: React$1.RefObject<DialogPrimitive.ContentRef>;
|
|
44
44
|
className?: string;
|
|
45
45
|
portalHost?: string;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
47
47
|
declare function DialogHeader({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: ViewProps):
|
|
50
|
+
}: ViewProps): react_jsx_runtime91.JSX.Element;
|
|
51
51
|
declare function DialogFooter({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: ViewProps):
|
|
54
|
+
}: ViewProps): react_jsx_runtime91.JSX.Element;
|
|
55
55
|
declare function DialogTitle({
|
|
56
56
|
className,
|
|
57
57
|
...props
|
|
58
58
|
}: DialogPrimitive.TitleProps & {
|
|
59
59
|
ref?: React$1.RefObject<DialogPrimitive.TitleRef>;
|
|
60
|
-
}):
|
|
60
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
61
61
|
declare function DialogDescription({
|
|
62
62
|
className,
|
|
63
63
|
...props
|
|
64
64
|
}: DialogPrimitive.DescriptionProps & {
|
|
65
65
|
ref?: React$1.RefObject<DialogPrimitive.DescriptionRef>;
|
|
66
|
-
}):
|
|
66
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
69
69
|
//# sourceMappingURL=dialog.d.ts.map
|
package/dist/ui/dialog.js
CHANGED
|
@@ -11,14 +11,14 @@ const Dialog = DialogPrimitive.Root;
|
|
|
11
11
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
12
12
|
const DialogPortal = DialogPrimitive.Portal;
|
|
13
13
|
const DialogClose = DialogPrimitive.Close;
|
|
14
|
-
function DialogOverlayWeb({ className
|
|
14
|
+
function DialogOverlayWeb({ className, ...props }) {
|
|
15
15
|
const { open } = DialogPrimitive.useRootContext();
|
|
16
16
|
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
17
17
|
className: cn("absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black/80 p-2", open ? "web:animate-in web:fade-in-0" : "web:animate-out web:fade-out-0", className),
|
|
18
18
|
...props
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function DialogOverlayNative({ className, children
|
|
21
|
+
function DialogOverlayNative({ className, children, ...props }) {
|
|
22
22
|
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
23
23
|
style: StyleSheet.absoluteFill,
|
|
24
24
|
className: cn("flex items-center justify-center bg-black/80 p-2", className),
|
|
@@ -34,7 +34,7 @@ const DialogOverlay = Platform.select({
|
|
|
34
34
|
web: DialogOverlayWeb,
|
|
35
35
|
default: DialogOverlayNative
|
|
36
36
|
});
|
|
37
|
-
function DialogContent({ className, children, portalHost
|
|
37
|
+
function DialogContent({ className, children, portalHost, ...props }) {
|
|
38
38
|
const { open } = DialogPrimitive.useRootContext();
|
|
39
39
|
return /* @__PURE__ */ jsx(DialogPortal, {
|
|
40
40
|
hostName: portalHost,
|
|
@@ -51,25 +51,25 @@ function DialogContent({ className, children, portalHost,...props }) {
|
|
|
51
51
|
}) })
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function DialogHeader({ className
|
|
54
|
+
function DialogHeader({ className, ...props }) {
|
|
55
55
|
return /* @__PURE__ */ jsx(View, {
|
|
56
56
|
className: cn("flex flex-col gap-1.5 text-center sm:text-left", className),
|
|
57
57
|
...props
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function DialogFooter({ className
|
|
60
|
+
function DialogFooter({ className, ...props }) {
|
|
61
61
|
return /* @__PURE__ */ jsx(View, {
|
|
62
62
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
63
63
|
...props
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function DialogTitle({ className
|
|
66
|
+
function DialogTitle({ className, ...props }) {
|
|
67
67
|
return /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
68
68
|
className: cn("native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight", className),
|
|
69
69
|
...props
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function DialogDescription({ className
|
|
72
|
+
function DialogDescription({ className, ...props }) {
|
|
73
73
|
return /* @__PURE__ */ jsx(DialogPrimitive.Description, {
|
|
74
74
|
className: cn("native:text-base text-muted-foreground text-sm", className),
|
|
75
75
|
...props
|